2533
|
1 Tue Nov 19 12:01:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2 |
2542
|
3 * lex.l (plot_style_token): Add new plot styles for gnuplot 3.6. |
2543
|
4 * pt-plot.cc (subplot_style::columns_ok): Rename from |
|
5 subplot_style::errorbars. Recognize more styles and do a better |
|
6 job of diagnosing column number/style mismatches. |
2542
|
7 |
2536
|
8 * sighandlers.cc (my_friendly_exit): If we are called twice, try |
|
9 to remove the signal handler for SIGABRT and the call abort (). |
|
10 |
2534
|
11 * help.cc (Ftype): If a function is defined from a file and |
|
12 transformed text has not been requested, just print the contents |
|
13 of the file. |
|
14 |
2533
|
15 * parse.y (fold): New functions for constant folding for binary |
|
16 and unary expressions. Keep track of original text even when |
|
17 transformations occur. |
|
18 (make_binary_op, make_boolean_op, make_unary_op): Use them. |
|
19 (finish_colon_expression, finish_matrix): Keep track of original |
|
20 text even when transformations occur. |
|
21 |
|
22 * help.cc (Ftype): Don't mess with Vps4. |
|
23 Handle new option `-transformed'. |
|
24 |
|
25 * pt-const.h, pt-const.cc (tree_constant::print): |
|
26 New arg, pr_orig_text. |
|
27 |
|
28 * pt-exp.h, pt-exp.cc (tree_colon_expression::is_range_constant): |
|
29 Delete. |
|
30 |
|
31 * pt-exp-base.h (tree_expression::original_text): New virtual function. |
|
32 pt-exp-base.cc (tree_expression::original_text): Default version. |
|
33 |
|
34 * pt-pr-code.h (tree_print_code::print_original_text, |
|
35 tree_print_code::prefix): New fields. |
|
36 * pt-pr-code.cc (tree_print_code::visit_constant): Pass |
|
37 print_original_text to tree_constant::print(). |
|
38 (tree_print_code::indent): Use prefix instead of Vps4. |
|
39 * pt-fcn.cc (tree_function::print_function_header, |
|
40 tree_function::print_function_trailer): Pass Vps4 to |
|
41 tree_print_code_constructor for prefix. |
|
42 * pt-misc.cc (tree_statement::maybe_echo_code): Pass Vps4 to |
|
43 tree_print_code_constructor for prefix. |
|
44 |
|
45 * pt-mat.h, pt-mat.cc (tree_matrix::all_elements_are_constant): |
|
46 Rename from is_matrix_constant. |
|
47 (tree_matrix_row::all_elements_are_constant): Likewise. |
|
48 Change all callers. |
|
49 |
|
50 Mon Nov 18 14:13:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
51 |
|
52 * Makefile.in (install-inc): Try harder to create the link from |
|
53 include/octave to include/octave-VERSION. |
|
54 |
2524
|
55 Sun Nov 17 14:14:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
56 |
2527
|
57 * Makefile.in (parse.cc): Expect 13 shift/reduce conflicts. |
2526
|
58 |
2525
|
59 * parse.y (set_stmt_print_flag): New function. |
|
60 (sep_type): New member for bison %union declaration. |
|
61 Simplify rules for statement lists keeping track of the type of |
|
62 the first separator in the values associated with the |
|
63 nonterminals for the separators. |
|
64 |
2524
|
65 * lex.l (handle_identifier): Set lexer_flags.doing_set if the |
|
66 token is "gset", not "set". |
|
67 |
|
68 Sat Nov 16 21:41:26 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
69 |
|
70 * Makefile.in (parse.cc, lex.cc): Add special rules for these files. |
|
71 Delete pattern rules for .y and .l files. |
|
72 |
2522
|
73 Fri Nov 15 13:48:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
74 |
2523
|
75 * pt-plot.cc: Put semicolons at the ends of all plot commands. |
|
76 |
2522
|
77 * defaults.cc (subst_octave_home): Start subsequent searchs from |
|
78 the end of the replaced text. |
|
79 |
|
80 * pr-output.cc (pr_any_float): Kluge for SCO systems. |
|
81 |
|
82 * pr-output.cc (pr_any_float, pr_complex): Don't declare inline. |
|
83 |
|
84 * mappers.cc: Include lo-ieee.h, for isinf and isnan on SCO |
|
85 systems. |
|
86 |
2512
|
87 Thu Nov 14 00:06:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
88 |
2520
|
89 * pt-plot.cc (Fgset, Fgshow): New commands. |
|
90 (Fshow): Print warning and call gshow. |
|
91 (Fset): Print warning and call gset. |
|
92 |
2517
|
93 * variables.cc (parse_fcn_file): Add unwind-protect for file |
|
94 pointer, so the file is always closed. |
|
95 (get_help_from_file): Likewise. |
|
96 * toplev.cc (parse_and_execute): Likewise. |
|
97 |
2516
|
98 * Makefile.in (install-oct): Depend on mk-oct-links. |
|
99 (mk-oct-links): New target. |
|
100 |
2512
|
101 * Version 1.92. |
|
102 |
2508
|
103 Wed Nov 13 11:13:22 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
104 |
2512
|
105 * sighandlers.cc (sys_siglist): [__EMX__]: Add definitions. |
|
106 |
|
107 * octave.cc (execute_startup_files): Allow init file name ot be |
|
108 specified by an environment variable. |
|
109 |
|
110 * dirfns.cc (make_absolute): [__EMX__]: Path is already absolute |
|
111 if it begins with any character followed by a colon. |
|
112 |
2511
|
113 * load-save.cc (read_mat_ascii_matrix, get_lines_and_columns, |
|
114 get_complete_line): New functions, for reading headless text files. |
|
115 (load_save_format): Add LS_MAT_ASCII, for headless text files. |
|
116 (do_load): Handle LS_MAT_ASCII files. |
|
117 Thanks to Mel Melchner <mjm@research.att.com> for initial version |
|
118 of this code. |
|
119 |
2508
|
120 * sysdep.cc: Conditionally include ieeefp.h. |
|
121 (BSD_init, SCO_init): New functions. |
|
122 (sysdep_init): Conditionally call them here. |
|
123 |
2499
|
124 Tue Nov 12 00:14:56 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
125 |
2508
|
126 * pt-plot.cc (open_plot_stream): Don't block SIGCHLD. |
|
127 |
2499
|
128 * load-save.cc (read_binary_data): When reading string arrays, be |
|
129 sure to create an octave_char_matrix_str object, not just an |
|
130 octave_char_matrix object. |
|
131 (read_ascii_data): Likewise. |
|
132 |
2497
|
133 Mon Nov 11 22:52:58 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
134 |
|
135 * load-save.cc (read_binary_data): Don't forget teminating NUL for |
|
136 string that we plan to insert. |
|
137 (read_ascii_data): Likewise. |
|
138 |
2495
|
139 Sun Nov 10 16:58:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
140 |
2496
|
141 * dirfns.cc (Ffnmatch): New function. |
|
142 |
2495
|
143 * octave.cc (intern_argv): Use new string_vector constructor. |
|
144 |
|
145 * ov-str-mat.cc (octave_char_matrix_str::all_strings): Have |
|
146 charMatrix::row_as_string() strip trailing whitespace. |
|
147 |
|
148 * dirfns.cc (Fglob): new function. |
|
149 |
|
150 * sysdep.cc (oct_tilde_expand): Provide version that works on |
|
151 string vectors too. |
|
152 (Ftilde_expand): Work on string vector args. |
|
153 |
|
154 * load-save.cc (save_binary_data): Call char_matrix_value() to |
|
155 extract charMatrix from octave_value object, not all_strings(). |
|
156 (save_ascii_data): Likewise. |
|
157 * pt-mat.cc (tree_matrix::eval): Likewise. |
|
158 |
|
159 * ov.h (octave_value::all_strings): Return string_vector, not |
|
160 charMatrix. |
|
161 * ov-base.cc (octave_base_value::all_strings): Likewise. |
|
162 * ov-str-mat.h, ov-str-mat.cc (octave_char_matrix_str::all_strings): |
|
163 Likewise. |
|
164 |
2487
|
165 Fri Nov 8 09:54:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
166 |
2492
|
167 * defaults.cc, dynamic-ld.cc, fn-cache.cc, help.cc, oct-hist.cc, |
|
168 octave.cc, pager.cc, pt-fcn.cc, toplev.cc, utils.cc, variables.cc, |
|
169 lex.l: Change #include "" to #include <> for defaults.h, |
|
170 oct-conf.h, oct-gperf.h, y.tab.h, and version.h, to avoid getting |
|
171 them from $srcdir when we really want the version from the build |
|
172 directory. (Maybe this should be done for all the include files, |
|
173 not just those that are auto-generated? Hmm.) |
|
174 |
2488
|
175 * defaults.h.in (CXXLIB_LIST, CXXLIB_PATH, FLIB_LIST, FLIB_PATH): |
|
176 Delete. |
|
177 |
2487
|
178 * Makefile.in (install-oct): Use $(INSTALL_PROGRAM) for .oct files. |
|
179 |
2477
|
180 Thu Nov 7 07:59:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
181 |
2487
|
182 * variables.cc (gobble_leading_white_space): New arg, update_pos. |
|
183 * (is_function_file): Don't update file position information here. |
|
184 |
2482
|
185 * Version 1.91. |
|
186 |
2479
|
187 * pt-fvc.cc (tree_indirect_ref::reference): If the lhs object is |
|
188 not a map, convert it to one. |
|
189 |
|
190 * ov-typeinfo.h (init_tab_sz): New static member. |
|
191 |
2477
|
192 * ov-struct.cc, ov-struct.h: Add hooks for custom memory management. |
|
193 * ov-scalar.cc, ov-scalar.h: Likewise. |
|
194 * ov-re-mat.cc, ov-re-mat.h: Likewise. |
|
195 * ov-range.cc, ov-range.h: Likewise. |
|
196 * ov-cx-mat.cc, ov-cx-mat.h: Likewise. |
|
197 * ov-complex.cc, ov-complex.h: Likewise. |
|
198 * ov-ch-mat.cc, ov-ch-mat.h: Likewise. |
|
199 |
2474
|
200 Wed Nov 6 12:32:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
201 |
2482
|
202 * pager.cc (do_sync): Don't call clear_external_pager() here. |
2476
|
203 |
2475
|
204 * pt-const.h (tree_constant::allocator) New static member. |
|
205 (tree_constant::operator new, tree_constant::operator delete): |
|
206 Implement with custom allocator. |
|
207 |
|
208 * syscalls.cc (Fgetgid, Fgetegid): New functions. |
|
209 |
|
210 * sighandlers.cc (sigchld_handler): If necessary, reinstall |
|
211 handler after call to waitpid(). |
|
212 |
|
213 * pager.cc (pager_death_handler): Don't use warning() to print |
|
214 message. |
|
215 |
|
216 * getgrent.cc: New file. |
|
217 * Makefile.in (DLD_SRC): Add it. |
|
218 |
|
219 * ov.cc (octave_value::print_with_name): Call is_map() instead of |
|
220 print_as_structure(). |
|
221 * ov-struct.cc (octave_struct::print): Likewise. |
|
222 |
|
223 * ov.h, ov.cc, pt-const.h: Delete force_numeric(), make_numeric(), |
|
224 convert_to_matrix_type(), print_as_structure() member functions. |
|
225 |
2474
|
226 * variables.cc (is_function_file): Call gobble_leading_whitespace |
|
227 here to strip all leading whitespace and comments. |
|
228 (parse_fcn_file): If reading a function file, call |
|
229 gobble_leading_whitespace again after resetting parser state to |
|
230 grab help text. |
|
231 |
2469
|
232 Tue Nov 5 13:00:35 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
233 |
2472
|
234 * syscalls.cc (Fgeteuid, Fgetuid): New functions. |
|
235 |
|
236 * getpwent.cc: Use gripe_not_supported from gripes.cc, instead of |
|
237 local gripe_not_implemented function. |
|
238 |
2470
|
239 * input.cc, sysdep.cc, variables.cc: Only include readline.h and |
|
240 history.h if USE_READLINE is defined. |
|
241 |
|
242 * help.cc: Make it compile without warnings even if USE_GNU_INFO |
|
243 is not defined. |
|
244 |
2469
|
245 * sighandlers.h (octave_child_list): Don't define |
|
246 HAVE_POSIX_SIGNALS HERE. |
|
247 |
|
248 * sighandlers.cc (SIGHANDLER_RETURN): New macro. |
|
249 (generic_sig_handler, sigchld_handler, sigfpe_handler, |
|
250 sigint_handler, sigpipe_handler): Use it. |
|
251 (sigchld_handler, sigfpe_handler, sigint_handler, sigpipe_handler): |
|
252 Only reinstall signal handler if MUST_REINSTALL_SIGHANDLER is defined. |
|
253 |
2463
|
254 Sun Nov 3 00:45:30 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
255 |
2466
|
256 * pt-const.cc (tree_constant::print): Just call val.print(). |
|
257 * ov-base.cc, ov-ch-mat.cc, ov-colon.cc, ov-complex.cc, |
|
258 ov-cx-mat.cc, ov-range.cc, ov-re-mat.cc, ov-scalar.cc, |
|
259 ov-str-mat.cc, ov-struct.cc ov-va-args.cc, ov.cc (print): |
|
260 Handle pr_as_read_syntax arg. |
|
261 |
|
262 * defaults.cc (subst_octave_home): Search for prefix repeatedly in |
|
263 retval, not s. |
|
264 |
|
265 * gripes.h: Make declaration of gripes_not_supported match |
|
266 definition. |
|
267 |
2465
|
268 * mk-oct-links.in: In sed command, match "DEFUN_DLD *( *", not |
|
269 "DEFUN_DLD_BUILTIN *( *". |
|
270 |
|
271 * chol.cc, colloc.cc, dassl.cc, det.cc, eig.cc, expm.cc, fft.cc, |
|
272 fft2.cc, filter.cc, find.cc, fsolve.cc, fsqp.cc, getpwent.cc, |
|
273 getrusage.cc, givens.cc, hess.cc, ifft.cc, ifft2.cc, inv.cc, |
|
274 log.cc, lpsolve.cc, lsode.cc, lu.cc, minmax.cc, npsol.cc, pinv.cc, |
|
275 qpsol.cc, qr.cc, quad.cc, qzval.cc, rand.cc, schur.cc, sort.cc, |
|
276 svd.cc, syl.cc, time.cc: Change all uses of DEFUN_DLD_BUILTIN to |
|
277 be just DEFUN_DLD. |
|
278 |
|
279 * defun-dld.h: Eliminate DEFUN_DLD_BUILTIN. |
|
280 |
2464
|
281 * syswait.h: Use #ifdef HAVE_SYS_WAIT_H, not #if HAVE_SYS_WAIT_H |
|
282 to decide whether to include sys/wait.h. |
|
283 |
|
284 * pt-exp-base.h (tree_expression): Declare oper() here as a |
|
285 virtual member function. |
|
286 |
2463
|
287 * pt-pr-code.cc (tree_print_code::visit_constant): Check for |
|
288 string before checking for char_matrix. |
|
289 |
|
290 * ov-ch-mat.cc (octave_char_matrix::print): Supply correct number |
|
291 of args to octave_print_internal(). |
|
292 |
2457
|
293 Sat Nov 2 20:44:55 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
294 |
2458
|
295 * file-io.cc (Ftmpnam): Rename from Foctave_temp_file_name. |
|
296 |
2457
|
297 * Makefile.in (DLD_SRC): Move time.cc and getrusage.cc here from |
|
298 SOURCES. Add getpwent.cc. |
|
299 |
|
300 * getrusage.cc: Rename from resource.cc. Make getrusage a |
|
301 loadable function. |
|
302 |
|
303 * time.cc: Rename from timefns.cc. Make time functions loadable. |
|
304 |
|
305 * getpwent.cc: New file. |
|
306 |
2439
|
307 Wed Oct 30 01:06:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
308 |
2452
|
309 * Version 1.90. |
|
310 |
|
311 * Makefile.in (DISTFILES): Add ChangeLog. |
|
312 |
2449
|
313 * ov-range.cc (octave_range::convert_to_str): New function. |
|
314 |
|
315 * ov-str-mat.h (octave_char_matrix_str::char_matrix_value): |
|
316 Delete function. Already handled by octave_char_matrix class. |
|
317 |
|
318 * ov-ch-mat.h (octave_char_matrix::convert_to_str): New function. |
|
319 |
2448
|
320 * pager.cc (Fmore): Set page_screen_output to 1.0 or 0.0, not |
|
321 "true" or "false". |
|
322 |
2447
|
323 * ov-ch-mat.cc, ov-struct.cc, ov-struct.h, pr-output.cc, |
|
324 pt-cmd.cc, pt-const.cc, pt-const.h, pt-fcn.cc, pt-fvc-base.cc, |
|
325 pt-fvc-base.h, pt-fvc.cc, pt-fvc.h, rand.cc, sighandlers.cc, |
|
326 variables.cc, variables.h: Delete unused code. |
|
327 |
2445
|
328 * octave.cc: Only include pwd.h if HAVE_PWD_H. |
|
329 |
|
330 * oct-strstrm.h: Include <string>, not <string.h>. |
|
331 |
2442
|
332 * defaults.cc, dirfns.cc, file-io.cc, help.cc, input.cc, |
|
333 oct-hist.cc, oct-procbuf.cc, oct-procbuf.h, octave.cc, pager.h, |
|
334 procstream.h, pt-misc.cc, pt-plot.cc, sighandlers.cc, strftime.c, |
|
335 syscalls.cc, sysdep.cc, syswait.h, toplev.cc, utils.cc, |
|
336 variables.cc: Only include sys/types.h if HAVE_SYS_TYPES_H. |
|
337 |
2440
|
338 * error.h (panic): Use GCC_ATTR_NORETURN macro, not NORETURN. |
|
339 * toplev.h (clean_up_and_exit): Likewise. |
|
340 * utils.h (jump_to_top_level): Likewise. |
|
341 |
2439
|
342 * derfaults.h.in, defaults.cc (local_arch_lib_dir): New variable. |
|
343 * defaults.cc (set_default_local_arch_lib_dir): New function. |
|
344 (install_defaults): Call it. |
|
345 (exec_path): Use Vlocal_arch_lib_dir here. |
|
346 * toplev.cc (octave_config_info): Add localarchlibdir to structure. |
|
347 |
2436
|
348 Tue Oct 29 15:54:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
349 |
2437
|
350 * Makefile.in (install-oct): Don't do anything if $(OCT_FILES) is |
|
351 empty. |
|
352 |
2436
|
353 * ov-range.cc (octave_range::index): New Function. |
|
354 (octave_range::all, octave_range::any, octave_range::is_true): |
|
355 Make these functions work. |
|
356 |
|
357 * ov.cc (octave_value::try_assignment_with_conversion): Remove |
|
358 left over debugging print statements. |
|
359 |
|
360 Mon Oct 28 10:49:03 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
361 |
|
362 * strftime.c: Add missing #endif for previous change. |
|
363 |
2435
|
364 Sun Oct 27 14:06:44 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
365 |
|
366 * oct-hist.cc (do_history): Rewite option parsing to avoid |
|
367 (probably bogus) errors from g++ on cygwin32 system. |
|
368 |
|
369 * strftime.c: Use autoconf macros TIME_WITH_SYS_TIME and |
|
370 HAVE_SYS_TIME_H to decide which time.h files to include. |
|
371 |
|
372 * oct-stream.h, oct-stream.cc (octave_stream::error, |
|
373 octave_base_stream::error): Rename errno => err_num. |
|
374 |
2432
|
375 Sat Oct 26 10:40:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
376 |
2434
|
377 * oct-hist.cc (do_history): Move declaration of file inside |
|
378 conditional. |
|
379 |
2432
|
380 * defun.h (DEFVAR_INT): Set eternal flag with (svc_fcn != 0) |
|
381 instead of (sv_fcn ? 1 : 0) |
|
382 |
2427
|
383 Fri Oct 25 01:10:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
384 |
2431
|
385 * ov-ch-mat.h (octave_char_matrix::any): Return 0.0 instead of false. |
|
386 (octave_char_matrix::all): Likewise. |
|
387 |
|
388 * input.cc (Fecho): When binding value of echo_executing_commands, |
|
389 cast ECHO_* to double. |
|
390 |
|
391 * sighandlers.cc (octave_child_list::do_remove): Delete unused |
|
392 variable `enlarge'. |
|
393 |
|
394 * pt-const.h (tree_constant::tree_constant (const tree_constant&)): |
|
395 Don't pass arg to tree_fvc constructor. |
|
396 |
2427
|
397 * resource.cc (getrusage): [HAVE_GETRUSAGE && RUSAGE_TIMES_ONLY]: |
|
398 Only fill in time values. |
|
399 |
|
400 Thu Oct 24 20:37:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
401 |
|
402 * parse.y: Comment out the %expect declaration so byacc can |
|
403 compile this file. |
|
404 (if_cmd_list): Add missing semicolon. |
|
405 Include <cstdlib> for getenv if using byacc. |
|
406 |
|
407 * ov.h: Move typedefs outside of octave_value class scope to avoid |
|
408 problem with cygwin32 beta16 compiler. |
|
409 |
2421
|
410 Fri Oct 18 13:44:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
411 |
2423
|
412 * ov.h (octave_value::index): Undo previous change. |
|
413 * ov.cc (octave_value constructors): Call maybe_mutate() in most |
|
414 cases. |
|
415 |
|
416 * ov-complex.cc (octave_complex::index): Avoid implicit type |
|
417 conversion back to scalar type. |
|
418 * ov-scalar.cc (octave_scalar::index): Likewise. |
|
419 |
2421
|
420 * ov.h (octave_value::index): Call maybe_mutate() on retval before |
|
421 returning it. |
|
422 |
2418
|
423 Wed Oct 16 12:00:11 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
424 |
2420
|
425 * ov.h (octave_value::struct_elt_val): New optional arg, silent. |
|
426 * ov-base.h, ov-base.cc, ov-struct.h, ov-struct.cc: Likewise, but |
|
427 for the derived classes the arg is required. |
|
428 |
|
429 * data.cc (Fstruct_contains): Require arguments to be struct and |
|
430 string, respectively. Call octave_value::struct_elt_val with |
|
431 silent flag set. |
|
432 |
2419
|
433 * pt-mat.cc (tm_row_const::tm_row_const_rep::eval_error, |
|
434 tm_row_const::tm_row_const_rep::eval_warning): New functions. |
|
435 (tm_row_const::tm_row_const (const tree_matrix_row&): Use them to |
|
436 give better error messages. |
|
437 |
2418
|
438 * pt-fvc.cc (tree_identifier::eval): Avoid dereferencing null |
|
439 object_to_eval. |
|
440 |
2412
|
441 Tue Oct 15 11:35:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
442 |
|
443 * op-cs-cm.cc, op-cs-cs.cc, op-cs-m.cc, op-cs-s.cc |
|
444 (complex_matrix_conv): New functions. |
|
445 Install preferred assignment conversion and widening ops. |
|
446 |
|
447 * op-s-cm.cc, op-s-cs.cc (complex_matrix_conv): New functions. |
|
448 Install preferred assignment conversion and widening ops. |
|
449 |
|
450 * op-s-m.cc, op-s-s.cc (matrix_conv): New functions. |
|
451 Install preferred assignment conversion and widening ops. |
|
452 |
|
453 * ov.cc (octave_value::try_assignment_with_conversion, |
|
454 octave_value::convert_and_assign, octave_value::try_assignment): |
|
455 New functions. |
|
456 (octave_value::assign): Use them to implement twisted logic for |
|
457 type conversions in assigments. |
|
458 |
|
459 * pt-const.h (tree_constant::maybe_mutate): New function. |
|
460 * ov.h (octave_value::maybe_mutate): New function. |
|
461 (octave_value::try_narrowing_conversion): New function. |
|
462 Use just one typedef for widening_op_fcn and numeric_conv_fcn. |
|
463 Change all uses. |
|
464 * ov-base.h, ov-complex.h, ov-complex.cc, ov-cx-mat.h, |
|
465 ov-cx-mat.cc, ov-range.h, ov-range.cc, ov-re-mat.h, ov-re-mat.cc, |
|
466 Provide derived class versions of try try_narrowing_conversion(). |
|
467 |
|
468 * pr-output.cc (octave_print_internal): Don't bother handing off |
|
469 to scalar/real versions, even when it would seem appropriate. |
|
470 |
|
471 * symtab.cc (symbol_def::define (tree_constant *)): Call |
|
472 maybe_mutate on constants here. |
|
473 |
2405
|
474 Mon Oct 14 11:05:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
475 |
2407
|
476 * pt-fvc.cc (tree_identifier::eval): If retval is undefined and |
|
477 the object to eval is a constant, print error message. |
2406
|
478 |
2405
|
479 * Makefile (distclean): Remove *.oct too. |
|
480 |
|
481 * defun-int.h: Include variables.h here. |
|
482 |
2403
|
483 Sun Oct 13 10:52:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
484 |
2404
|
485 * variables.cc (print_symbol_info_line): Never print negative |
|
486 diminsions. |
|
487 |
|
488 * symtab.h (octave_symbol_record_info): Store const_type as string. |
|
489 (octave_symbol_record_info::init): Delete. Fix constructors. |
|
490 (octave_symbol_record_info::type_name): Handle const_type as string. |
|
491 |
2403
|
492 * octave.cc (maximum_braindamage): Replace "true" with 1.0 and |
|
493 "false" with 0.0 in calls to bind_builtin_variable(). |
|
494 Include sun-utils.h here. |
2404
|
495 (intern_argv): Also bind __argv__. |
2403
|
496 |
2391
|
497 Sat Oct 12 13:40:21 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
498 |
2399
|
499 * Makefile.in (distclean): Also delete mk-oct-links. |
|
500 |
|
501 Fri Oct 11 13:13:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
502 |
2391
|
503 Changes for Octave's new type system: |
|
504 |
|
505 * arith-ops.cc: Delete. |
|
506 * pt-const.h, pt-const.cc: Massive changes. Most functionality |
|
507 moved to ov.h, ov.cc, and derived classes. |
|
508 |
|
509 * variables.h, variables.cc (octave_variable_reference): New class |
|
510 for getting references to variables and structure elements used in |
|
511 assignments or value contexts. |
|
512 |
|
513 * symtab.h, symtab.cc (symbol_record::define (const octave_value&), |
|
514 symbol_record::variable_value, symbol_record::variable_reference): |
|
515 New functions. |
|
516 (symbol_record_info::type_name): Rename from type_as_string. |
|
517 |
|
518 * pt-fvc-base.h, pt-fvc-base.cc (tree_fvc::increment, |
|
519 tree_fvc::decrement): New functions to replace |
|
520 tree_fvc::bump_value. |
|
521 #if 0 assign and lookup_map_element functions. |
|
522 |
|
523 * pt-mvr.cc (tree_multi_assignment_expression::eval): |
|
524 Generated RHS value is now a tree_constant. |
|
525 |
|
526 * pt-exp.h, pt-exp.cc (tree_boolean_expression): New class. |
|
527 (tree_unary_expression, tree_binary_expression, |
|
528 tree_boolean_expression): Move codes here from tree_expression. |
|
529 (tree_simple_assignment_expression): Cope with changes to way of |
|
530 doing assignments. |
|
531 |
|
532 * pt-exp-base.h, pt-exp-base.cc (enum type): Delete codes for |
|
533 unary and binary ops. |
|
534 (tree_expression::expression_type): Delete. |
|
535 (tree_expression::is_logically_true): Hand off to |
|
536 octave_value::is_true to do real work. |
|
537 |
|
538 * pr-output.h, pr-output.cc (any_element_is_inf_or_nan, |
|
539 all_elements_are_ints): Delete. Call member new functions for |
|
540 these operations. |
|
541 (free_format, plus_format, bank_format, hex_format, |
|
542 compact_format, print_e, print_big_e): Use bool, not int. |
|
543 (octave_print_internal): Hand off to scalar/real versions when |
|
544 appropriate. |
|
545 |
|
546 * octave.cc (main): Call initialize_types() and install_ops(). |
|
547 (verbose_usage): Add WWW address to output. |
|
548 |
|
549 * parse.y (indirect_ref): Handle by making a tree instead of a |
|
550 list using new version of tree_indirect_ref class. |
|
551 |
|
552 * parse.y (make_boolean_op): New function. Use it instead of |
|
553 make_binary_op to create trees for && and || ops. |
|
554 (make_binary_op): Codes come from tree_binary_expression now, |
|
555 instead of tree_expression. |
|
556 (make_unary_op): Codes come from tree_unary_expression now, |
|
557 instead of tree_expression. |
|
558 (make_boolean_op): Codes come from tree_boolean_expression. |
|
559 |
|
560 *parse.y (tree_constant_type): Change type to tree_constant* from |
|
561 octave_value*, and rename from octave_value_type. Change uses. |
|
562 |
|
563 * defun.h (DEFVAR_INT): Pass octave_value not pointer to |
|
564 octave_value for defn when creating builtin_variable. |
|
565 |
|
566 * gripes.h, gripes.cc (gripe_invalid_conversion): Args are |
|
567 strings, not char*. |
|
568 (gripe_implicit_conversion, gripe_divide_by_zero): New extern |
|
569 gripe functions. |
|
570 |
|
571 * mkbuiltins: For each file, create a separate static function to |
|
572 install builtins, then create another single extern function to |
|
573 call all of them. |
|
574 |
|
575 * pt-fcn.cc (tree_function::bind_nargin_and_nargout): |
|
576 Just pass doubles and let symbol_record::define handle creating |
|
577 new value. |
|
578 |
|
579 * pt-pr-code.cc, pt-pr-code.h (visit_constant): Renamed from |
|
580 visit_octave_value. |
|
581 (visit_unary_expression): Use tree_expression::is_prefix_op() |
|
582 instead of switch on op types. |
|
583 |
|
584 * pt-walk.h (visit_constant): Renamed from visit_octave_value. |
|
585 |
|
586 * pt-misc.cc (initialize_undefined_elements): Get reference to |
|
587 tmp, then assign. |
|
588 * pt-cmd.cc (do_for_loop_once): Likewise, for loop identifier. |
|
589 |
|
590 * input.cc (generate_struct_completions, looks_like_struct): Cast |
|
591 tmp_fvc to tree_constant*, not octave_value*. |
|
592 (get_user_input): Call print() on retval, not eval(1). |
|
593 |
|
594 * help.cc (Ftype): Cast defn to tree_constant*, not octave_value*. |
|
595 |
|
596 * balance.cc: Fix docstring. |
|
597 |
|
598 * dassl.cc, fsolve.cc, load-save.cc, lsode.cc, npsol.cc, qpsol.cc, |
|
599 quad.cc: |
|
600 Include pt-fvc.h. |
|
601 |
|
602 * data.cc (Fstruct_contains): call octave_value::struct_elt_val, |
|
603 not octave_value::lookup_map_element. |
|
604 |
|
605 * dirfns.cc (Fcd): Pass directory name as string directly to |
|
606 bind_builtin_variable instead of creating new octave_value. |
|
607 |
|
608 * toplev.cc: Include pt-fvc.h and lo-mappers.h |
|
609 |
|
610 * data.cc, error.cc, file-io.cc, load-save.cc, pager.cc, |
|
611 pt-mat.cc, pt-plot.cc, syscalls.cc, toplev.cc: |
|
612 Include variables.h. |
|
613 |
|
614 * Array-tc.cc, Map-tc.cc, SLList-misc.cc SLList-tc.cc, data.cc, |
|
615 defaults.cc, dynamic-ld.cc, error.cc, gripes.cc, lex.l, octave.cc, |
|
616 oct-map.h, oct-map.cc, oct-obj.h, pt-cmd.cc, pt-exp.cc, pt-fcn.cc, |
|
617 pt-fvc-base.cc, pt-mat.cc, pt-misc.cc, pt-mvr-base.cc, pt-mvr.h, |
|
618 resource.cc, strfns.cc, sysdep.cc, timefns.cc, toplev.cc: |
|
619 Include ov.h instead of pt-const.h. |
|
620 |
|
621 * xpow.cc (any_element_is_negative): Delete. |
|
622 (xpow and elem_xpow functions): Check conformance here. |
|
623 |
|
624 * xdiv.cc (mx_leftdiv_conform, mx_div_conform): |
|
625 Now template-based, taking Matrices instead of dimensions as args. |
|
626 Change all callers. |
|
627 |
|
628 * op-cm-cm.cc, op-cm-cm.h, op-cm-cs.cc, op-cm-cs.h, op-cm-m.cc, |
|
629 op-cm-m.h, op-cm-s.cc, op-cm-s.h, op-cs-cm.cc, op-cs-cm.h, |
|
630 op-cs-cs.cc, op-cs-cs.h, op-cs-m.cc, op-cs-m.h, op-cs-s.cc, |
|
631 op-cs-s.h, op-m-cm.cc, op-m-cm.h, op-m-cs.cc, op-m-cs.h, op-m-m.cc, |
|
632 op-m-m.h, op-m-s.cc, op-m-s.h, op-s-cm.cc, op-s-cm.h, op-s-cs.cc, |
|
633 op-s-cs.h, op-s-m.cc, op-s-m.h, op-s-s.cc, op-s-s.h, |
|
634 op-str-str.cc, op-str-str.h, ops.cc, ops.h, ov-base.cc, ov-base.h, |
|
635 ov-ch-mat.cc, ov-ch-mat.h, ov-colon.cc, ov-colon.h, ov-complex.cc, |
|
636 ov-complex.h, ov-cx-mat.cc, ov-cx-mat.h, ov-range.cc, ov-range.h, |
|
637 ov-re-mat.cc, ov-re-mat.h, ov-scalar.cc, ov-scalar.h, ov-str-mat.cc, |
|
638 ov-str-mat.h, ov-struct.cc, ov-struct.h, ov-typeinfo.cc, |
|
639 ov-typeinfo.h, ov-va-args.cc, ov-va-args.h, ov.cc, ov.h: |
|
640 New files for Octave's new type system. |
|
641 * Makefile.in: Add them to the appropriate lists. |
|
642 |
|
643 Sat Sep 14 21:58:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
644 |
|
645 * mkbuiltins: Use .df instead of .def. |
|
646 Write one function for each .df file, then call them |
|
647 all in install_builtin_functions(). |
|
648 * Makefile.in: Handle .df instead of .def. |
|
649 |
|
650 * balance.cc (balance): Fix typo in doc string. |
|
651 |
|
652 Wed Aug 28 21:01:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
653 |
|
654 * octave.cc (verbose_usage): Include WWW address and bug-octave |
|
655 mailing list address. |
|
656 |
2354
|
657 Tue Aug 20 17:41:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
658 |
2358
|
659 * Makefile.in: Only define pattern rules for making .oct files if |
|
660 OCTAVE_LITE is true. |
|
661 Only add pic/ to $(TI_OBJ) if $(SHARED_LIBS) is true. |
|
662 (stamp-picdir): Only create a pic subdirectory if SHARED_LIBS or |
|
663 OCTAVE_LITE is true AND CPICFLAG or CXXPICFLAG is not empty. |
|
664 |
2354
|
665 * minmax.cc (Fmin, Fmax): Deal with changes to Matrix class |
|
666 min/max methods. |
|
667 |
2345
|
668 Thu Jul 25 01:42:38 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
669 |
2348
|
670 * input.cc (generate_possible_completions): Force the names to be |
|
671 unique. |
|
672 |
2345
|
673 * load-save.cc (read_mat_binary_data): Expect to read terminating |
|
674 NUL character in the variable name. |
|
675 (save_mat_binary_data): Likewise, save it here. |
|
676 |
2341
|
677 Wed Jul 24 05:08:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
678 |
2343
|
679 * lsode.cc (Flsode): Don't set the return value if an error |
|
680 occurred during integration. |
2344
|
681 * dassl.cc (Fdassl): Likewise. |
2343
|
682 |
2341
|
683 * file-io.cc (symbols_of_file_io): Redefine values of SEEK_SET, |
|
684 SEEK_CUR, and SEEK_END for Matlab compatibility. |
|
685 * oct-stream.cc (seek): Check for compatible values of ORIGIN arg. |
|
686 Also handle "bof", "cof", and "eof". |
|
687 |
2338
|
688 Fri Jul 19 15:24:36 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
689 |
|
690 * pt-const.cc: When creating octave_value_reps from ComplexMatrix |
|
691 values, check to see if all the elements are actually real. |
|
692 |
2330
|
693 Tue Jul 16 10:53:42 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
694 |
2341
|
695 * input.cc (decode_prompt_string): Swap meanings of \h and \H. |
2330
|
696 |
|
697 Mon Jul 15 16:01:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
698 |
|
699 * toplev.cc (run_command_and_return_output): Renamed from do_system. |
|
700 (Fsystem): Make `system ("emacs")' work as one would expect. |
|
701 |
|
702 Sun Jul 14 17:34:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
703 |
|
704 * file-io.cc (Ffopen, Ffread, Ffwrite): Update doc strings, |
|
705 correctly handle default architecture and precision args. |
|
706 |
|
707 * load-save.cc (mopt_digit_to_float_format): Rename from |
|
708 get_floating_point_format. |
|
709 (float_format_to_mopt_digit): New function. |
|
710 |
|
711 * oct-stream.cc (octave_base_stream::read, octave_base_stream::write): |
|
712 Simplify by calling Matrix::read and Matrix::write to do real work |
|
713 of reading, writing, and format conversion. |
|
714 |
|
715 * oct-stream.h (octave_base_stream): Move data_type enum to |
|
716 liboctave/data-conv.h. Use float_format from |
|
717 liboctave/mach-info.h instead of arch_type enum. |
|
718 |
|
719 * sysdep.h, sysdep.cc (octave_words_big_endian, ten_little_endians): |
|
720 Delete. Now part of oct_mach_info class in liboctave. |
|
721 |
|
722 Tue Jul 9 11:18:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
723 |
|
724 * arith-ops.cc, balance.cc, dassl.cc, data.cc, filter.cc, find.cc, |
|
725 fsolve.cc, load-save.cc, log.cc, lsode.cc, minmax.cc, npsol.cc, |
|
726 oct-obj.cc, oct-stream.cc, pr-output.cc, pt-cmd.cc, pt-const.cc, |
|
727 pt-fvc.cc, pt-plot.cc, quad.cc, rand.cc, sighandlers.cc, sort.cc, |
|
728 syscalls.cc, unwind-prot.cc, xdiv.cc, xpow.cc: |
|
729 When indexing arrays, use operator() instead of elem() so that |
|
730 bounds checking can be done consistently. |
|
731 |
|
732 Mon Jun 24 02:13:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
733 |
|
734 * Makefile.in (install-oct): Use INSTALL_PROGRAM, instead of |
|
735 INSTALL_DATA for installing shared libraries. |
|
736 |
|
737 * lex.l (grab_help_text): Ignore all initial comment characters, |
|
738 not just the first. |
|
739 * variables.cc (gobble_leading_white_space): Likewise. |
|
740 |
|
741 Sat Jun 22 22:43:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
742 |
|
743 * input.h, input.cc (octave_completion_matches_called): New varaible. |
|
744 (Fcompletion_matches): Set it to true on a successful call. |
|
745 * toplev.cc (main_loop): If octave_completion_matches_called is |
|
746 true, don't increment current_command_number. |
|
747 |
|
748 Thu Jun 13 03:52:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
749 |
|
750 * variables.cc (is_mapper_function_name, |
|
751 is_builtin_function_name): New functions. |
|
752 (Fdocument): Use them. |
|
753 Define as regular function, not a text style function. |
|
754 |
|
755 Thu Jun 6 00:09:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
756 |
|
757 * pt-plot.cc: Handle new built-in variable `gnuplot_has_frames'. |
|
758 |
|
759 Wed Jun 5 14:45:04 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
760 |
|
761 * input.cc (decode_prompt_string): \h now means the whole host |
|
762 name and \H is the host name up to the first `.'. |
|
763 |
|
764 Thu May 30 23:41:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
765 |
|
766 * fn-cache.cc (octave_fcn_file_name_cache::do_list): Always |
|
767 recompute the lists of function files instead of trying to cache |
|
768 them. |
|
769 |
|
770 Tue May 28 12:05:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
771 |
|
772 * utils.cc (warn_old_style_preference): New function. |
|
773 (check_preference): Use it. |
|
774 |
|
775 * fn-cache.h: Include <ctime> here. |
|
776 |
|
777 Fri May 24 00:57:14 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
778 |
|
779 * input.cc (completion_matches): Don't return empty string_vectors. |
|
780 |
|
781 * octave.cc (long_opts): Add braindead. |
|
782 |
|
783 Thu May 23 01:49:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
784 |
|
785 * input.cc (gnu_readline): New optional arg, force_readline. |
|
786 (get_user_input): Use it. |
|
787 |
|
788 * pt-const.cc (OCT_VAL_REP::assign): If converting the rhs to a |
|
789 numeric value, convert a copy, not the actual object. |
|
790 (OCT_VAL_REP::do_index): Prevent s([]) from resulting in a string |
|
791 with zero rows. |
|
792 |
|
793 * mappers.cc: Handle toascii here. |
|
794 * strfns.cc: Not here. |
|
795 |
|
796 * mappers.cc: Handle tolower and toupper here. |
|
797 * mappers.h: Rename can_return_complex_for_real to flag and |
|
798 overload meaning for ch_mapper. |
|
799 * pt-fvc.cc (apply_mapper_fcn): Handle overloaded meaning. |
|
800 |
|
801 * syscalls.cc (stat): Return 3 values instead of just 1. |
|
802 (lstat): Likewise. |
|
803 |
|
804 Wed May 22 02:34:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
805 |
|
806 * pt-const.cc (OCT_VAL_REP::make_numeric): For string to number |
|
807 conversions, correctly set type tag before calling force_numeric. |
|
808 (do_binary_op): Force string to number conversion if both args are |
|
809 strings and we are doing some sort of comparison operation. |
|
810 |
|
811 * Makefile.in (stamp-tinst, stamp-interp): Use SH_TERMLIBS and |
|
812 SH_LIBS instead of TERMLIBS and LIBS. |
|
813 |
|
814 * pt-const.cc (do_unary_op): Add special case to handle |
|
815 transposing strings. |
|
816 |
|
817 * pt-mat.cc (Vstring_fill_char): New variable. |
|
818 (symbols_of_pt_mat): DEFVAR it. |
|
819 |
|
820 * input.cc (generate_struct_completions, |
|
821 generate_possible_completions): Return string_vector, not char **. |
|
822 Change all callers. |
|
823 |
|
824 * pt-const.cc (lookup_map_element): Use substr() correctly. |
|
825 |
|
826 Tue May 21 21:37:17 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
827 |
|
828 * oct.h: New file. |
|
829 * Makefile.in (INCLUDES): Add it to the list. |
|
830 |
|
831 * octave.cc: New args --no-site-file and --no-init-file. Delete |
|
832 --ignore-init-file. The flag --norc (-f) implies both |
|
833 --no-site-file and --no-init-file. |
|
834 |
|
835 Fri May 17 01:54:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
836 |
|
837 * input.cc (Fcompletion_matches): New function. |
|
838 |
|
839 * utils.cc (get_fcn_file_names): Delete. |
|
840 * help.cc (simple_help): Use new file name cache instead of |
|
841 calling get_fcn_file_names. |
|
842 * variables.cc (make_name_list): Likewise. |
|
843 |
|
844 * fn-cache.h, fn-cache.cc, Map-fnc.cc: New files. |
|
845 * Makefile.in: Add them to the lists. |
|
846 |
|
847 * Makefile.in (uninstall): Install in octincludedir, not includedir. |
|
848 |
|
849 * pt-plot.h: Include <csignal> here. |
|
850 |
|
851 Thu May 16 10:52:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
852 |
|
853 * oct-stream.cc (octave_stream::oscanf, octave_base_stream::oscanf, |
|
854 octave_base_stream::do_oscanf): New functions for backward |
|
855 compatibility with older versions of Octave. |
|
856 (scanf_format_elt, scanf_format_list): Keep track of width specifier. |
|
857 * file-io.cc (Fscanf): New function. |
|
858 (Fscanf, Ffscanf, Fsscanf): Handle compatibility arg. |
|
859 |
|
860 Wed May 15 01:00:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
861 |
|
862 * oct-stream.cc (do_scanf): If doing '%c' conversion, unset |
|
863 ios::skipws on input stream. |
|
864 |
|
865 * sighandlers.h, sighandlers.cc (octave_child, octave_child_list): |
|
866 New classes for keeping track of the child processes we create. |
|
867 (sigchld_handler): Check in octave_child_list to see if there is |
|
868 anything we can do for the child that died. |
|
869 * pager.cc: Register child pager process. |
|
870 * pt-plot.cc: Likewise, for the plotter. |
|
871 * Array-oc.cc: New file |
|
872 * Makefile.in (TI_SRC): Add it to the list. |
|
873 |
|
874 * pager.cc (do_sync): Don't check error_state. |
|
875 (flushing_output_to_pager): New static variable. |
|
876 (flush_octave_stdout): Use it to avoid doing anything if already |
|
877 flushing output. |
|
878 |
|
879 * sighandlers.cc (sigchld_handler): Call warning instead of |
|
880 writing directly to cerr. |
|
881 (sigpipe_handler): Call warning instead of message. |
|
882 |
|
883 * octave.cc (main): Call install_signal_handlers, |
|
884 initialize_file_io, initialize_symbol_tables, and install_builtins |
|
885 before parsing command line options. |
|
886 |
|
887 * user-prefs.h, user-prefs.cc: Delete. |
|
888 |
|
889 * utils.cc (check_preference): Move here. |
|
890 * user-prefs.cc: From here. |
|
891 |
|
892 * defaults.cc: New file. Move initialization stuff from |
|
893 variables.cc. Move DEFVARS for EDITOR, EXEC_PATH, LOADPATH, |
|
894 IMAGEPATH, and OCTAVE_VERSION here. |
|
895 |
|
896 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
897 INFO_FILE and INFO_PROGRAM. |
|
898 * help.cc: Move all of that here. |
|
899 (symbols_of_help): Add DEFVARS for INFO_FILE and INFO_PROGRAM. |
|
900 |
|
901 Tue May 14 00:23:06 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
902 |
|
903 * pager.cc (do_sync): Be more defensive about sending stuff to the |
|
904 external pager. |
|
905 * sighandlers.cc (sigchld_handler): For now, only wait for |
|
906 octave_pager_pid. Don't call error(). Do set octave_pager_pid to |
|
907 -1 if the pager process no longer exists. |
|
908 |
|
909 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
910 PWD. |
|
911 * dirfns.cc: Move all of that here. |
|
912 (symbols_of_dirfns): New function. |
|
913 * variables.cc (install_builtin_variables): Call it. |
|
914 |
|
915 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
916 default_save_format and save_precision. |
|
917 * load-save.cc: Move all of that here. |
|
918 (symbols_of_load_save): New function. |
|
919 * variables.cc (install_builtin_variables): Call it. |
|
920 |
|
921 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
922 warn_divide_by_zero. |
|
923 * arith-ops.cc: Move all of that here. |
|
924 (symbols_of_arith_ops): New function. |
|
925 * variables.cc (install_builtin_variables): Call it. |
|
926 |
|
927 * mappers.cc: Add wrappers for ctype is* functions so that they |
|
928 will work on systems that only define them as macros. |
|
929 |
|
930 Mon May 13 00:27:08 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
931 |
|
932 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
933 suppress_verbose_help_message. |
|
934 * help.cc: Move all of that here. |
|
935 (symbols_of_help): New function. |
|
936 * variables.cc (install_builtin_variables): Call it. |
|
937 |
|
938 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
939 treat_neg_dim_as_zero. |
|
940 * pt-const.cc: Move all of that here. |
|
941 |
|
942 * pager.cc (octave_pager_stream::do_sync): Don't return early if |
|
943 not interactive. |
|
944 |
|
945 * data.h: New file. |
|
946 * Makefile.in (INCLUDES): Add it to the list. |
|
947 * data.cc (symbols_of_data): New function. Move definition of I, |
|
948 Inf, J, NaN, e, eps, i, inf, j, nan, pi, realmin, and realmax here. |
|
949 * variables.cc: From here. |
|
950 (install_builtin_variables): Call symbols_of_data. |
|
951 |
|
952 * file-io.cc (symbols_of_file_io): New function. Move definition |
|
953 of SEEK_CUR, SEEK_END, SEEK_SET, stdin, stdout, stderr here. |
|
954 * variables.cc: From here. |
|
955 (install_builtin_variables): Call symbols_of_file_io. |
|
956 |
|
957 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
958 do_fortran_indexing, implicit_str_to_num_ok, |
|
959 ok_to_lose_imaginary_part, prefer_column_vectors, |
|
960 prefer_zero_one_indexing, print_answer_id_name, |
|
961 propagate_empty_matrices, resize_on_range_error, and |
|
962 struct_levels_to_print. |
|
963 * pt-const.cc: Move all of that here. |
|
964 (symbols_of_pt_const): New function. |
|
965 * variables.cc (install_builtin_variables): Call it. |
|
966 * pt-fvc.cc (tree_identifier::assign): Use Vresize_on_range_error |
|
967 instead of user_pref.resize_on_range_error here. |
|
968 * load-save.cc (save_mat_binary_data): Use Vimplicit_str_to_num_ok |
|
969 instead of user_pref.implicit_str_to_num_ok here. |
|
970 * utils.cc (empty_arg): Use Vpropagate_empty_matrices instead of |
|
971 user_pref.propagate_empty_matrices here. |
|
972 * pt-exp-base.cc (tree_expression::is_logically_true): Likewise.. |
|
973 |
|
974 * pt-fcn.cc (symbols_of_pt_fcn): Also move DEFVAR for |
|
975 default_return_value here. |
|
976 |
|
977 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
978 ps1, ps2, ps4, and completion_append_char. |
|
979 * input.cc: Move all of that here. |
|
980 (symbols_of_input): New function. |
|
981 * variables.cc (install_builtin_variables): Call it. |
|
982 * pt-pr-code.cc (indent): Use Vps4 instead of user_pref.ps4 here. |
|
983 * help.cc (Ftype): Also here. |
|
984 |
|
985 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
986 automatic_replot, gnuplot_binary, and gnuplot_has_multiplot. |
|
987 * pt-plot.cc: Move all of that here. |
|
988 (symbols_of_pt_plot): New function. |
|
989 * variables.cc (install_builtin_variables): Call it. |
|
990 |
|
991 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
992 beep_on_error. |
|
993 * error.cc: Move all of that here. |
|
994 (symbols_of_error): New function. |
|
995 * variables.cc (install_builtin_variables): Call it. |
|
996 |
|
997 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
998 empty_list_elements_ok. |
|
999 * pt-mat.cc: Move all of that here. |
|
1000 (symbols_of_pt_mat): New function. |
|
1001 * variables.cc (install_builtin_variables): Call it. |
|
1002 |
|
1003 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
1004 define_all_return_values, return_last_computed_value, and |
|
1005 silent_functions. |
|
1006 * pt-fcn.cc: Move all of that here. |
|
1007 (symbols_of_pt_fcn): New function. |
|
1008 * variables.cc (install_builtin_variables): Call it. |
|
1009 |
|
1010 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
1011 whitespace_in_literal_matrix. |
|
1012 * lex.l: Move all of that here. |
|
1013 (symbols_of_lex): New function. |
|
1014 * variables.cc (install_builtin_variables): Call it. |
|
1015 |
|
1016 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
1017 warn_assign_as_truth_value, warn_comma_in_global_decl, |
|
1018 warn_function_name_clash, and warn_missing_semicolon. |
|
1019 * parse.y: Move all of that here. |
|
1020 (symbols_of_parse): New function. |
|
1021 * variables.cc (install_builtin_variables): Call it. |
|
1022 |
|
1023 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
1024 output_precision, output_max_field_width, print_empty_dimensions, |
|
1025 and split_long_rows. |
|
1026 * pr-output.cc: Move all of that here. |
|
1027 (symbols_of_pr_output): New function. |
|
1028 * variables.cc (install_builtin_variables): Call it. |
|
1029 |
|
1030 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
1031 page_screen_output, page_output_immediately, and pager_binary. |
|
1032 * pager.cc: Move all of that here. |
|
1033 |
|
1034 * user-prefs.h (check_preference): Provide declaration. |
|
1035 * user-prefs.cc (check_preference): Make external. |
|
1036 |
|
1037 * toplev.cc (Foctave_config_info): New function. |
|
1038 |
|
1039 * oct-conf.h.in: New file |
|
1040 * Makefile.in (oct-conf.h): New target. |
|
1041 Add it to the appropriate lists. |
|
1042 |
|
1043 * sighandlers.cc (sigchld_handler): Don't complain about wait |
|
1044 returning a negative value. |
|
1045 |
|
1046 * file-io.cc (Fsscanf, Fsprintf): Pass true for second arg of |
|
1047 octave_stream constructor. |
|
1048 |
|
1049 * oct-stream.h (octave_stream): New field, preserve. |
|
1050 (octave_stream::~octave_stream): If preserve, don't delete rep. |
|
1051 |
|
1052 * pager.cc (symbols_of_pager): Set default for |
|
1053 page_output_immediately to 0. |
|
1054 |
|
1055 * toplev.cc (do_system): Correctly handle return_output. |
|
1056 Append ends to output_buf before calling str(). |
|
1057 |
|
1058 * variables.cc: If M_PI and M_E are available, use them. |
|
1059 |
|
1060 * mk-oct-links.in (links_dir): If old link exists, delete it first. |
|
1061 |
|
1062 Sun May 12 01:46:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1063 |
|
1064 * Makefile.in (DISTFILES): List defaults.h.in and oct-gperf.h here. |
|
1065 (INCLUDES): Not here. |
|
1066 (install-inc): New target. |
|
1067 (uninstall): Also delete libraries and include files. |
|
1068 (install-inc): If linkdir is a directory, leave it alone. |
|
1069 (TERMLIBS, LIBPLPLOT, LIBDLFCN): Don't substitute here (now in |
|
1070 Makeconf). |
|
1071 |
|
1072 * oct-stream.cc (octave_base_stream::do_read): Provide initial |
|
1073 value for tmp var. |
|
1074 |
|
1075 * pt-walk.h, pt-pr-code.h, pt-pr-code.cc: New tree-walking classes. |
|
1076 * Makefile.in: Add them to the appropriate lists. |
|
1077 * pt-fvc-base.h, pt-exp-base.cc, pt-fvc-base.cc, pt-mvr-base.cc, |
|
1078 pt-base.cc, pt-mvr.cc, pt-mat.h, pt-mat.cc, pt-fvc.cc, |
|
1079 pt-const.cc, pt-cmd.cc, pt-const.h, pt-misc.cc, pt-plot.cc, |
|
1080 pt-fcn.cc, pt-plot.h, pt-mvr.h, pt-mvr-base.h, pt-misc.h, |
|
1081 pt-fcn.h, pt-exp.h, pt-exp.cc, pt-exp-base.h, pt-fvc.h, pt-cmd.h, |
|
1082 pt-base.h: |
|
1083 Replace print_code stuff with accept() functions. |
|
1084 Add member access functions where necessary. |
|
1085 * help.cc (Ftype): Update to use new method of walking trees to |
|
1086 print text representation of user-defined functions. |
|
1087 |
|
1088 * file-io.cc (Ffscanf): Update doc string. |
|
1089 (Fsscanf): Likewise. |
|
1090 |
|
1091 * oct-stream.cc (octave_base_stream::do_read): Correctly set max_size. |
|
1092 Pad mval with zeros on final resize. |
|
1093 (octave_base_stream::do_scanf): Likewise. |
|
1094 (do_scanf_conv): Correctly resize mval. |
|
1095 |
|
1096 Sat May 11 05:14:09 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1097 |
|
1098 * pager.cc (octave_pager_buf::sync): Correctly set bypass_pager. |
|
1099 |
|
1100 * lex.l (<MATRIX>{SNLCMT}*\]{S}*): Match SNLCMT, not just SNL. |
|
1101 |
|
1102 Fri May 3 11:05:30 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1103 |
|
1104 * pt-const.cc (OCT_VAL_REP::set_index): Complain if type can't be |
|
1105 indexed. |
|
1106 |
|
1107 * input.cc (get_user_input): Don't increment input line number if |
|
1108 input is coming from eval string. |
|
1109 |
|
1110 * user-prefs.cc: Allow empty strings for prompts. |
|
1111 |
|
1112 Thu May 2 10:50:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1113 |
|
1114 * pt-mvr.h (class tree_oct_obj): Declare values data member const. |
|
1115 |
|
1116 Sun Apr 28 03:16:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1117 |
|
1118 * user-prefs.h (user_preferences): New field, |
|
1119 `page_output_immediately'. |
|
1120 * user-prefs.cc (init_user_prefs): Initialize it. |
|
1121 (page_output_immediately): New function. |
|
1122 * pager.cc (syms_of_pager): Add DEFVAR. |
|
1123 (really_flush_to_pager): New file-scope variable. |
|
1124 (flush_octave_stdout): Set and restore it. |
|
1125 (octave_pager_buf::sync): Check it, user_pref.page_screen_output, |
|
1126 and user_pref.page_output_immediately to decide when to really |
|
1127 flush output. |
|
1128 (more_than_a_screenful): New function. If paging but not |
|
1129 immediately, then check this too. |
|
1130 |
|
1131 * pager.cc (default_pager): Move here from variables.cc. If pager |
|
1132 is less and LESS is not in the environment, append useful flags. |
|
1133 (symbols_of_pager): New function. |
|
1134 * variables.cc (install_builtin_variables): Call it. |
|
1135 Delete pager-related DEFVARs. |
|
1136 |
|
1137 * syswait.h (WIFSIGNALLED): Define if sys/wait.h doesn't. |
|
1138 |
|
1139 * sighandlers.cc: Handle SIGCHLD. |
|
1140 |
|
1141 * pager.cc, pager.h: Rewrite. |
|
1142 * pt-mvr.cc, pt-misc.cc, pt-fcn.cc, pt-const.cc, oct-hist.cc, |
|
1143 file-io.cc, help.cc, variables.cc, qpsol.cc, dassl.cc, quad.cc, |
|
1144 npsol.cc, lsode.cc, fsolve.cc, load-save.cc, dirfns.cc, octave.cc, |
|
1145 toplev.cc, error.cc, input.cc: |
|
1146 Write to octave_stdout and octave_diary instead of calling |
|
1147 maybe_page_output() or maybe_write_to_diary_file(). |
|
1148 |
|
1149 * oct-procbuf.h, oct-procbuf.cc: New files. |
|
1150 * procstream.h (class procstreambase): Use octave_procbuf instead |
|
1151 of procbuf from libg++, so we can get pids of subprocesses. |
|
1152 |
|
1153 Fri Apr 26 01:21:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1154 |
|
1155 * pt-const.cc (OCT_VAL_REP::do_index): Call maybe_mutate() before |
|
1156 returning. |
|
1157 |
|
1158 * mappers.h (struct Mapper_fcn): Delete. |
|
1159 (struct builtin_mapper_function): New field ch_mapper. |
|
1160 * pt-fvc.h (tree_builtin): Convert type of mapper_fcn from |
|
1161 Mapper_fcn to builtin_mapper_function. |
|
1162 * variables.cc (install_builtin_mapper): Likewise, for arg. |
|
1163 Simplify, since we don't have to do the copying ourselves now. |
|
1164 * pt-fvc.cc (apply_mapper_function): Handle ch_mapper case. |
|
1165 * defun.h (DEFUN_MAPPER): Likewise. |
|
1166 * mappers.cc (install_builtin_mappers): Likewise. |
|
1167 Add ctype is* functions here. |
|
1168 |
|
1169 Thu Apr 25 00:57:06 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1170 |
|
1171 * arith-ops.h, defun-int.h, defun.h, dynamic-ld.h, gripes.h, |
|
1172 load-save.h, oct-map.h, oct-obj.h, oct-stream.h, pt-cmd.h, |
|
1173 pt-const.h, pt-exp-base.h, pt-exp.h, pt-fcn.h, pt-fvc-base.h, |
|
1174 pt-fvc.h, pt-mat.h, pt-misc.h, pt-mvr-base.h, pt-mvr.h, pt-plot.h, |
|
1175 symtab.h, toplev.h, utils.h, variables.h, xpow.h, Array-tc.cc, |
|
1176 Map-i.cc, Map-tc.cc, SLList-tc.cc, arith-ops.cc, balance.cc, |
|
1177 bogus.cc, chol.cc, colloc.cc, dassl.cc, data.cc, det.cc, |
|
1178 dirfns.cc, eig.cc, error.cc, expm.cc, fft.cc, fft2.cc, file-io.cc, |
|
1179 filter.cc, find.cc, fsolve.cc, fsqp.cc, givens.cc, gripes.cc, |
|
1180 help.cc, hess.cc, ifft.cc, ifft2.cc, input.cc, inv.cc, |
|
1181 load-save.cc, log.cc, lpsolve.cc, lsode.cc, lu.cc, minmax.cc, |
|
1182 npsol.cc, oct-hist.cc, oct-obj.cc, oct-stream.cc, pager.cc, |
|
1183 pinv.cc, pr-output.cc, pt-cmd.cc, pt-const.cc, pt-exp-base.cc, |
|
1184 pt-exp.cc, pt-fcn.cc, pt-fvc-base.cc, pt-fvc.cc, pt-mat.cc, |
|
1185 pt-misc.cc, pt-mvr-base.cc, pt-mvr.cc, pt-plot.cc, qpsol.cc, |
|
1186 qr.cc, quad.cc, qzval.cc, rand.cc, resource.cc, schur.cc, sort.cc, |
|
1187 strfns.cc, svd.cc, syl.cc, symtab.cc, syscalls.cc, sysdep.cc, |
|
1188 timefns.cc, toplev.cc, utils.cc, variables.cc, xpow.cc, parse.y: |
|
1189 Rename tree_constant -> octave_value. |
|
1190 Rename Octave_object -> octave_value_list. |
|
1191 |
|
1192 Wed Apr 24 22:15:34 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1193 |
|
1194 * toplev.cc (Fsystem): Merge functionality of async_system and |
|
1195 sync_system. |
|
1196 |
|
1197 * oct-fstrm.h, oct-iostrm.h, oct-prcstrm.h, oct-stdstrm.h, |
|
1198 oct-stream.h, oct-strstrm.h, oct-fstrm.cc, oct-iostrm.cc, |
|
1199 oct-prcstrm.cc, oct-stdstrm.cc, oct-stream.cc, oct-strstrm.cc, |
|
1200 Array-os.cc: New files. |
|
1201 * Makefile.in: Add them to the appropriate lists. |
|
1202 * file-io.cc: Rewrite to use new stream classes. |
|
1203 |
|
1204 Tue Apr 23 18:59:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1205 |
|
1206 * gripes.cc (gripe_not_supported): New function. |
|
1207 |
|
1208 * toplev.cc (do_octave_atexit, Fatexit): New functions. |
|
1209 (octave_atexit_functions): New file-scope variable. |
|
1210 * octave.cc (main): Register do_octave_atexit with atexit. |
|
1211 |
|
1212 * variables.cc (install_builtin_variables): Call |
|
1213 symbols_of_syscalls here. |
|
1214 |
|
1215 * syscalls.h, syscalls.cc: New files. |
|
1216 |
|
1217 Mon Apr 22 21:14:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1218 |
|
1219 * syscalls.cc: New file. |
|
1220 (Flstat, Fmkfifo, Fstat, Funlink, Fwait, Fwaitpid): Move here. |
|
1221 * file-io.cc: From here. |
|
1222 * Makefile.in (SOURCES): Add syscalls.cc to the list. |
|
1223 |
|
1224 Wed Apr 17 18:34:10 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1225 |
|
1226 * file-info.h, file-info.cc: Delete files. |
|
1227 * Makefile.in: Remove from lists. |
|
1228 |
|
1229 * toplev.cc (Fquit): Accept exit status argument. |
|
1230 (Fflops): Delete (now a function file). |
|
1231 |
|
1232 Thu Apr 11 16:20:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1233 |
|
1234 * lex.l: Recognize `.'. |
|
1235 Update current_input_column even for unrecognized characters. |
|
1236 Return LEXICAL_ERROR for unrecognized characters. |
|
1237 |
|
1238 Mon Apr 8 19:59:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1239 |
|
1240 * variables.cc (install_builtin_variables): Split into several |
|
1241 functions to make compiling with g++ go faster and consume less |
|
1242 memory. |
|
1243 |
|
1244 Sun Apr 7 16:25:35 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1245 |
|
1246 * load-save.cc (Fsave): Print usage if i == argc. |
|
1247 (Fload): Likewise. |
|
1248 |
|
1249 Sat Apr 6 21:26:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1250 |
|
1251 * Makefile.in (clean): Also delete pic/*.o |
|
1252 (maintainer-clean, distclean): Also remove stamp-picdir, |
|
1253 stamp-tinst, stamp-interp, and pic directory. |
|
1254 (stamp-prereq): New target. |
|
1255 |
|
1256 Wed Apr 3 11:19:30 1996 Rick Niles <niles@axp745.gsfc.nasa.gov> |
|
1257 |
|
1258 * resource.cc: Don't make including sys/resource.h and sys/times.h |
|
1259 mutually exclusive. |
|
1260 |
|
1261 Fri Mar 29 13:43:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1262 |
|
1263 * Makefile.in (distclean): Delete so_locations, which is created |
|
1264 on DEC Alpha systems. |
|
1265 |
|
1266 Thu Mar 28 02:53:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1267 |
|
1268 * utils.h (undo_string_escape): Provide extern declaration here. |
|
1269 |
|
1270 * lex.l (NL): Allow \r\n as new line character. |
|
1271 (.): Complain if invalid character is found on input |
|
1272 |
|
1273 Fri Mar 22 03:47:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1274 |
|
1275 * resource.cc (getrusage): If getrusage is missing, try using |
|
1276 times to at least fill in the cpu time values. If neither one is |
|
1277 available, return 0 for cpu times instead of NaN. |
|
1278 |
|
1279 * sighandlers.cc (octave_signal_mask): New file-scope variable. |
|
1280 (octave_save_signal_mask, octave_restore_signal_mask): New functions. |
|
1281 * toplev.cc (main_loop): Use them. |
|
1282 |
|
1283 Wed Mar 20 01:21:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1284 |
|
1285 * utils.cc (get_fcn_file_names (const string&, int)): Resize |
|
1286 retval to value of k, not i. |
|
1287 (get_fcn_file_names (int)): In loop for copying names to retval, |
|
1288 don't increment j twice. |
|
1289 |
|
1290 Mon Mar 18 22:27:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1291 |
|
1292 * Makefile.in ($(MAKEDEPS)): Depend on oct-gperf.h. |
|
1293 |
|
1294 Fri Mar 1 18:15:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1295 |
|
1296 * fsolve.cc (fsolve_options): Delete unused argument nargout. |
|
1297 |
|
1298 * filter.cc: Use MArray instead of Array so that automatic |
|
1299 conversions will work again. |
|
1300 |
|
1301 Tue Feb 27 04:49:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1302 |
|
1303 * variables.cc (looks_like_octave_copyright): Make the strings |
|
1304 that we are trying to match both have length 29. |
|
1305 |
|
1306 * Makefile.in (install-bin): Use $(INSTALL_PROGRAM), not $(INSTALL). |
|
1307 |
|
1308 * load-save.cc (read_mat_binary_data): Make sure name is |
|
1309 NUL terminated. |
|
1310 |
|
1311 Mon Feb 26 18:18:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1312 |
|
1313 * variables.cc (whos): Make argv from tmp_args, not args. |
|
1314 |
|
1315 * defun.h (DEFCONSTX): Don't stringify name. |
|
1316 |
|
1317 Sat Feb 24 01:12:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1318 |
|
1319 * Makefile.in (install-oct): Make mk-oct-links executable. |
|
1320 * mk-oct-links.in (links_dir): Update to match new format of |
|
1321 DEFUN_DLD_BUILTIN macro. Use LN_S, not just LN. |
|
1322 (links_dir): |
|
1323 |
|
1324 * pr-output.cc (octave_print_internal): New arg, extra_indent, for |
|
1325 versions of this function that take matrices and ranges. |
|
1326 * pt-const.cc (TC_REP::print (ostream&)): Fix printing of structures. |
|
1327 Pass struct_indent to octave_print_internal as appropriate. |
|
1328 (print_with_name (ostream&, const string&, bool)): Handle spacing |
|
1329 around `=' differently for structures. |
|
1330 |
|
1331 Fri Feb 23 04:51:04 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1332 |
|
1333 * token.cc (token (double, const string&, int, int)): Store orig_text. |
|
1334 |
|
1335 Tue Feb 20 20:36:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1336 |
|
1337 * variables.cc (Fclear): Fix off-by-one error. |
|
1338 |
|
1339 Sat Feb 17 16:54:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1340 |
|
1341 * oct-hist.cc (default_history_file): Append "/.octave_hist" to |
|
1342 return value, not to home_directory. |
|
1343 |
|
1344 Fri Feb 16 18:10:46 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1345 |
|
1346 * utils.cc: (NINT, D_NINT): Move to liboctave. |
|
1347 |
|
1348 * sysdep.cc (octave_ieee_init): Move to liboctave. |
|
1349 |
|
1350 * procstream.h, procstream.cc: Rewrite. |
|
1351 |
|
1352 * pager.cc (cleanup_oprocstream): New static function. |
|
1353 * toplev.cc (cleanup_iprocstream): Likewise. |
|
1354 * dirfns.cc (cleanup_iprocstream): Likewise. |
|
1355 |
|
1356 * unwind-prot.cc (matrix_cleanup, complex_matrix_cleanup): Delete. |
|
1357 |
|
1358 Thu Feb 15 22:03:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1359 |
|
1360 * oct-obj.cc, oct-obj.h: Move most code to the header. |
|
1361 |
|
1362 * oct-obj.cc (make_argv, all_strings): New member functions. |
|
1363 * utils.cc: Moved from here. |
|
1364 |
|
1365 * load-save.cc: Move byte swapping stuff to liboctave. |
|
1366 Move float format conversion stuff to liboctave. |
|
1367 (all_parts_int, too_large_for_float): Move to liboctave. |
|
1368 |
|
1369 * symtab.cc (valid_identifier): Move here. |
|
1370 * load-save.cc: From here. |
|
1371 |
|
1372 * sysdep.cc: Move floating-point format stuff to liboctave. |
|
1373 * pr-output.cc: Include float-fmt.h here. |
|
1374 |
|
1375 Wed Feb 14 01:49:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1376 |
|
1377 * defun.h, defun-dld.h, defun-int.h: Simplify interface for DEFUN, |
|
1378 DEFUN_DLD, DEFVAR, and DEFCONST macros. Change all uses. |
|
1379 |
|
1380 * qzval.cc: Move guts to liboctave. |
|
1381 |
|
1382 Tue Feb 13 10:28:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1383 |
|
1384 * variables.cc (parse_fcn_file): Also avoid saving history if |
|
1385 input is from a script file. |
|
1386 |
|
1387 * help.cc (Ftype): Call unwind_protect_str for user_pref.ps4. |
|
1388 |
|
1389 * npsol.cc (nonlinear_constraints_ok): Now static. |
|
1390 |
|
1391 * npsol.cc (linear_constraints_ok): Now static. |
|
1392 * qpsol.cc (linear_constraints_ok): Duplicate here. |
|
1393 |
|
1394 * data.cc (Flinspace): Don't print usage message if nargin == 2. |
|
1395 |
|
1396 Sun Feb 11 14:20:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1397 |
|
1398 * mk-oct-links.in: Rename from mk-oct-links. |
|
1399 (LN_S): Use this variable instead of ln. |
|
1400 Set -e option for shell. |
|
1401 Exit with status of last command. |
|
1402 Print message when making link. |
|
1403 * Makefile.in (DISTFILES): Add mk-oct-links.in to the list. |
|
1404 (install-oct): Run ./mk-oct-links, not $(srcdir)/mk-oct-links. |
|
1405 |
|
1406 * variables.cc (install_builtin_variables): Restore accidentally |
|
1407 deleted DEFVAR for save_precision. |
|
1408 |
|
1409 Fri Feb 9 11:24:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1410 |
|
1411 * Makefile.in (INCLUDES): Delete statdefs.h from the list (it's |
|
1412 now in the liboctave directory). |
|
1413 |
|
1414 * toplev.cc (toplevel): Define here. |
|
1415 * octave.cc (toplevel): Not here. |
|
1416 |
|
1417 * toplev.cc (main_loop): New function. |
|
1418 * octave.cc (main): Call it here instead of doing main loop |
|
1419 actions here. |
|
1420 |
|
1421 * user-prefs.cc (do_fortran_indexing): Also set liboctave_dfi_flag. |
|
1422 (prefer_column_vectors): Also set liboctave_pcv_flag. |
|
1423 (prefer_zero_one_indexing): Also set liboctave_pzo_flag. |
|
1424 (resize_on_range_error): Also set liboctave_rre_flag. |
|
1425 |
|
1426 * variables.cc (restore_command_history): New function. |
|
1427 (parse_fcn_file): Use it here in unwind_protect. |
|
1428 |
|
1429 * dynamic-ld.cc (load_octave_oct_file): Reverse sense of test. |
|
1430 (load_octave_builtin): Delete. |
|
1431 (mangle_octave_oct_file_name): Delete. |
|
1432 |
|
1433 * pt-fvc.cc (tree_builtin::eval): Don't try to dynamically load |
|
1434 functions here. |
|
1435 |
|
1436 * pr-output.cc (set_format_style): Decrement argc for first arg too. |
|
1437 |
|
1438 * input.cc (gnu_readline): If readline returns an empty string, |
|
1439 convert it to a string containing a single newline character. |
|
1440 |
|
1441 * octave.cc (octave_argv): Now a static string_vector. |
|
1442 (intern_argv): Use string_vector ops, not charMatrix ops. |
|
1443 * toplev.cc (octave_argv): Delete definition. |
|
1444 * toplev.h (octave_argv): Delete declaration. |
|
1445 |
|
1446 Thu Feb 8 10:58:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1447 |
|
1448 * Makefile.in (conf-dist): New target. |
|
1449 |
|
1450 Tue Feb 6 10:59:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1451 |
|
1452 * help.cc (Ftype): Correctly handle structure names. |
|
1453 |
|
1454 Sun Feb 4 02:02:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1455 |
|
1456 * qpsol.cc (Fqpsol): Call set_options(), not copy() to set |
|
1457 options for QPSOL objects. |
|
1458 |
|
1459 * npsol.cc (Fnpsol): Call set_options(), not copy() to set |
|
1460 options for NPSOL objects. |
|
1461 |
|
1462 * quad.cc (Fquad): Call set_options(), not copy() to set |
|
1463 options for Quad objects. |
|
1464 |
|
1465 * dynamic-ld.cc (load_octave_builtin): Don't call destructor on string. |
|
1466 (load_octave_oct_file): Likewise. |
|
1467 Check oct_file.empty(), not just oct_file. |
|
1468 |
|
1469 * fsolve.cc (Ffsolve): Call set_options(), not copy() to set |
|
1470 options for NLEqn object. |
|
1471 |
|
1472 * variables.cc (do_who): Properly set match patterns from argument |
|
1473 vector for call to maybe_list. |
|
1474 |
|
1475 Sat Feb 3 03:29:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1476 |
|
1477 * octave.cc (long_opts): Properly set second field using new enum. |
|
1478 |
|
1479 * lsode.cc: Change ODE to LSODE where appropriate. |
|
1480 Use LSODE_options, not ODE_options. |
|
1481 |
|
1482 * dassl.cc: Change DAE to DASSL where appropriate. |
|
1483 Use DASSL_options, not ODE_options. |
|
1484 |
|
1485 Fri Feb 2 01:41:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1486 |
|
1487 * dirfns.cc: Include unistd.h. |
|
1488 |
|
1489 * parse.y, lex.l: Handle matrix lists without ml or mlnm stacks. |
|
1490 * pt-mat.h, pt-mat.cc (tree_matrix): |
|
1491 Rewrite to use SLList instead of home brew list. |
|
1492 * SLList-tm.cc: New file |
|
1493 * Makefile.in: Add it to the lists. |
|
1494 * SLStack-tm.cc: Delete. |
|
1495 * Makefile.in: Delete it from the lists. |
|
1496 |
|
1497 * All pt-* files: Use bool instead of int where appropriate. |
|
1498 |
|
1499 * Makefile.in (DEP_SOURCES_3): Add octave.cc. |
|
1500 |
|
1501 * pt-const.h (class tree_constant::tree_constant_rep): Make |
|
1502 everything in this class public, then it doesn't need to declare |
|
1503 the tree_constant class as a friend. |
|
1504 |
|
1505 Thu Feb 1 01:42:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1506 |
|
1507 * lex.h, lex.l, parse.h, parse.y (class lexical_feedback): New |
|
1508 class for lexer flags. Replace lots of global vars with members |
|
1509 of this class. |
|
1510 |
|
1511 * lex.l (class brace_paren_nesting_level): New class to replace |
|
1512 nesting_level stack. nesting_level is now an instance of this |
|
1513 class. |
|
1514 |
|
1515 * lex.l (yum_yum): New typedef. |
|
1516 (ATE_NOTHING): New global var. |
|
1517 (ATE_SPACE_OR_TAB, ATE_NEWLINE): Don't #define these, declare them |
|
1518 as const yum_yum. |
|
1519 (eat_whitespace, eat_continuation): Return yum_yum, not int. |
|
1520 |
|
1521 * lex.l (SHORT_CIRCUIT_LOGICALS): Delete. Always do this for || |
|
1522 and && tokens. |
|
1523 (yy_flex_alloc, yy_flex_realloc, yy_flex_free, next_char_is_space): |
|
1524 Delete. |
|
1525 |
|
1526 * toplev.cc (verbose_flag): Delete definition. |
|
1527 * toplev.h (verbose_flag): And declaration. |
|
1528 * octave.cc (verbose_flag): Now static. |
|
1529 |
|
1530 * lex.l (lookup_identifier): Arg is now string, not char*. |
|
1531 (handle_identifier, is_plot_keyword, is_keyword): Likewise. |
|
1532 (strip_trailing_whitespace): Return value is now string, not char*. |
|
1533 (plot_style_token): Likewise, for both arg and return value. |
|
1534 |
|
1535 * input.cc (octave_gets_line): Delete. |
|
1536 (gnu_readline, octave_gets, octave_read): |
|
1537 Properly handle input when using_readline is either true or false. |
|
1538 Don't limit length of input lines to flex buffer size. |
|
1539 (get_user_input): New function. |
|
1540 |
|
1541 * octave.cc (main): Handle --no-line-editing. |
|
1542 * toplev.h (using_readline): Provide external declaration here. |
|
1543 * input.h: Not here. |
|
1544 * toplev.cc (using_readline): Define here. |
|
1545 * input.cc: Not here. |
|
1546 |
|
1547 * toplev.h (no_line_editing): Delete declaration. |
|
1548 * input.cc (no_line_editing): Delete definition. |
|
1549 |
|
1550 Wed Jan 31 05:28:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1551 |
|
1552 * input.cc (DEFAULT_ARRAY_SIZE, PROMPT_GROWTH): Delete definitions |
|
1553 of unused macros. |
|
1554 (read_octal): Now static. |
|
1555 |
|
1556 * givens.cc (Fgivens): Use new functions from matrix classes |
|
1557 instead of calling Fortran functions directly. |
|
1558 * syl.cc (Fsyl): Likewise. |
|
1559 * expm.cc (Fexpm): Likewise. |
|
1560 |
|
1561 Mon Jan 29 00:00:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1562 |
|
1563 * octave.cc: Use new prog_args class instead of calling getopt |
|
1564 directly. |
|
1565 |
|
1566 * getopt.h, getopt.c, getopt1.c: Move to liboctave directory. |
|
1567 * Makefile: Remove from lists. |
|
1568 |
|
1569 * utils.cc (strconcat, read_until, discard_until): Delete. |
|
1570 |
|
1571 * pager.cc (terminal_columns, terminal_rows): Move to |
|
1572 liboctave/oct-term.cc. |
|
1573 * pager.cc, pr-output.cc: Include oct-term.h. |
|
1574 |
|
1575 * utils.cc (list_in_columns): Moved to liboctave/str-vec.cc. |
|
1576 Change all callers to use new member function syntax. |
|
1577 |
|
1578 * dirfns.cc (absolute_program): Now static. |
|
1579 (absolute_pathname): Delete. |
|
1580 |
|
1581 * pt-plot.cc (save_in_tmp_file): Call oct_tempnam, not |
|
1582 octave_tmp_file_name. Include file-ops.h. |
|
1583 * file-io.cc (do_scanf, Foctave_tmp_file_name): Likewise. |
|
1584 * oct-hist.cc (mk_tmp_hist_file): Likewise. |
|
1585 |
|
1586 * file-io.cc (Foctave_tmp_file_name): Move here. |
|
1587 * utils.cc: From here. |
|
1588 |
|
1589 * utils.cc (octave_tmp_file_name): Move to liboctave/file-ops.cc. |
|
1590 |
|
1591 * tempname.c, tempnam.c: Move to liboctave directory. |
|
1592 * Makefile.in: Remove from lists. |
|
1593 |
|
1594 Sun Jan 28 19:00:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1595 |
|
1596 * xdiv.cc (all xdiv functions): Return Matrix or ComplexMatrix, |
|
1597 not tree_constant. |
|
1598 |
|
1599 * oct-hist.h, oct-hist.cc, toplev.cc, octave.cc, input.cc, |
|
1600 file-io.cc, user-prefs.cc: Rewrite to use new command_history |
|
1601 class instead of calling readline history functions directly. |
|
1602 |
|
1603 * utils.cc (get_fcn_file_names): Delete num arg. |
|
1604 |
|
1605 Thu Jan 25 20:33:54 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1606 |
|
1607 * load-save.cc (matches_patterns): Use new glob_match class |
|
1608 instead of calling fnmatch directly. |
|
1609 * symtab.cc (matches_patterns, symbol_table::glob): Likewise. |
|
1610 * variables.cc (Fclear): Likewise. |
|
1611 |
|
1612 Wed Jan 24 02:05:22 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1613 |
|
1614 * fnmatch.h fnmatch.c: Delete. |
|
1615 * Makefile.in: Add glob stuff in the appropriate places, remove |
|
1616 fnmatch.h and fnmatch.c from lists. |
|
1617 |
|
1618 * octave.cc (program_invocation_name, program_invocation_short_name): |
|
1619 Maybe declare. |
|
1620 (initialize_globals): Maybe initialize them. |
|
1621 |
|
1622 * octave.cc (initialize_pathsearch): Define here, not in pathsearch.cc. |
|
1623 * pathsearch.h, pathsearch.cc: Remove files. |
|
1624 * Makefile.in: Remove them from the lists. |
|
1625 |
|
1626 * help.cc (simple_help): Ignore directories that don't have any .m |
|
1627 or .oct files. |
|
1628 |
|
1629 * utils.cc (search_path_for_file): Use new dir_path class instead |
|
1630 of calling kpathsea routines directly. |
|
1631 (get_fcn_file_names): Likewise. |
|
1632 * help.cc (simple_help): Likewise. |
|
1633 |
|
1634 * dirfns.cc (make_absolute): Don't convert empty arg to "./". |
|
1635 |
|
1636 * sysdir.h: Move to liboctave directory. |
|
1637 * Makefile.in: Remove from lists. |
|
1638 |
|
1639 * dirfns.cc (Freaddir): Use new dir_entry class instead of calling |
|
1640 readdir directly. Include dir-ops.h, not sysdir.h. |
|
1641 * utils.cc (get_fcn_file_names): Likewise. Delete unnecessary |
|
1642 first arg, change all callers. |
|
1643 |
|
1644 Tue Jan 23 00:43:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1645 |
|
1646 * safe-xstat.hin, safe-xstat.cin, statdefs.h, file-ops.h, |
|
1647 file-ops.cc, filemode.c, mkdir.c, rmdir.c, rename.c: |
|
1648 Files moved to liboctave directory. |
|
1649 * Makefile.in: Remove them from lists. Move appropriate rules. |
|
1650 |
|
1651 * acosh.c, asinh.c, atanh.c, erf.c, erfc.c, gamma.c, lgamma.c: |
|
1652 Files moved to liboctave directory. |
|
1653 * Makefile.in: Remove them from lists. |
|
1654 * missing-math.h: Deleted. |
|
1655 * pr-output.cc, sysdep.cc, minmax.cc, mappers.cc, expm.cc, |
|
1656 arith-ops.cc: Include oct-math.h, not cmath or missing-math.h. |
|
1657 |
|
1658 Mon Jan 22 19:33:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1659 |
|
1660 * variables.cc (Fexist): Use file_stat instead of calling stat |
|
1661 directly. Include file-ops.h, not statdefs.h. |
|
1662 * octave.cc (execute_startup_files): Likewise. |
|
1663 * file-io.cc (file_io_get_file, fopen_internal, popen_internal, Fstat): |
|
1664 Likewise. |
|
1665 (mk_stat_map): Likewise, use file_stat object, not struct stat. |
|
1666 * oct-hist.cc (do_history): Likewise. |
|
1667 |
|
1668 * file-ops.h, file-stat.cc: New files. |
|
1669 * Makefile.in: Include them. |
|
1670 * dirfns.cc: Delete is_newer. Don't include statdefs.h. |
|
1671 * toplev.cc: Don't include statdefs.h. |
|
1672 |
|
1673 Sun Jan 21 22:48:03 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1674 |
|
1675 * pt-mvr.h, pt-fvc.h, Map.cc, Map.h, dynamic-ld.h, |
|
1676 pt-fvc-base.cc, SLList-str.cc, pt-fcn.h, pt-fvc-base.h, |
|
1677 SLStack-str.cc, pt-mvr.cc, pt-exp.cc, token.h, token.cc, |
|
1678 user-prefs.h, pt-base.cc, user-prefs.cc, dirfns.h, sysdep.h, |
|
1679 sysdep.cc, input.h, parse.h, lex.l, parse.y, defun.h, mappers.h, |
|
1680 pt-fvc.cc, pt-plot.h, load-save.h, octave.cc, defun-int.h, help.h, |
|
1681 variables.h, oct-map.h, oct-obj.h, oct-obj.cc, pt-const.cc, |
|
1682 oct-map.cc, input.cc, symtab.h, pt-const.h, pathsearch.cc, |
|
1683 pr-output.h, pr-output.cc, toplev.h, timefns.cc, schur.cc, |
|
1684 pt-plot.cc, pager.cc, load-save.cc, dynamic-ld.cc, dirfns.cc, |
|
1685 data.cc, file-info.h, file-info.cc, colloc.cc, utils.h, qpsol.cc, |
|
1686 quad.cc, npsol.cc, lsode.cc, fsolve.cc, dassl.cc, file-io.cc, |
|
1687 help.cc, utils.cc, oct-hist.h, oct-hist.cc, symtab.cc, toplev.cc, |
|
1688 pt-fcn.cc, unwind-prot.h, unwind-prot.cc, variables.cc: |
|
1689 Most functions in these files that deal with character strings |
|
1690 have been converted to use the string class insatead of char*. If |
|
1691 you want more detailed information, you'll have to figure it out |
|
1692 for yourself. |
|
1693 |
|
1694 Sat Jan 20 18:19:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1695 |
|
1696 * dynamic-ld.cc [WITH_DL]: Define RTLD_LAZY to be 1 if it is not |
|
1697 already defined. |
|
1698 |
|
1699 Sun Jan 14 07:48:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1700 |
|
1701 * pt-const.cc (print_as_scalar, print_as_structure): |
|
1702 Make these member functions. |
|
1703 (tree_constant::print_with_name): New function, moved here from |
|
1704 old tree-expr.cc file (where it was called print_constant) and |
|
1705 converted to member function. Change all callers. |
|
1706 |
|
1707 Fri Jan 12 01:54:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1708 |
|
1709 * octave.cc (initialize_globals): Don't do kpathsearch stuff here. |
|
1710 (main): Call initialize_pathsearch() here. |
|
1711 |
|
1712 * pathsearch.cc: New file. |
|
1713 * Makefile.in (SOURCES): Add it to the list |
|
1714 |
|
1715 * oct-hist.h: Rename from octave-hist.h. |
|
1716 * oct-hist.cc: Rename from octave-hist.cc. |
|
1717 * Makefile.in, parse.y, other .cc files: Cope with it. |
|
1718 |
|
1719 * dynamic-ld.cc: Avoid warnings if !WITH_DYNAMIC_LINKING. |
|
1720 |
|
1721 * load-save.cc (save_ascii_data): string::data() returns const char*. |
|
1722 |
|
1723 * utils.h: Don't provide forward declaration for tree_constant. |
|
1724 |
|
1725 * oct-obj.h: Don't include mx-base.h or provide forward |
|
1726 declarations for Matrix and Range types. |
|
1727 |
|
1728 * file-info.h: Don't include oct-obj.h. Do include cstdio. |
|
1729 |
|
1730 * symtab.h: Don't provide forward declaration for ostream. |
|
1731 |
|
1732 * variables.h: Don't provide forward declarations for istream, |
|
1733 ostrstream, tree, builtin_function, or builtin_variable objects. |
|
1734 |
|
1735 * balance.cc, chol.cc, colloc.cc, dassl.cc, det.cc, eig.cc, |
|
1736 expm.cc, fft.cc, fft2.cc, filter.cc, find.cc, fsolve.cc, fsqp.cc, |
|
1737 givens.cc, hess.cc, ifft.cc, ifft2.cc, inv.cc, log.cc, lpsolve.cc, |
|
1738 lsode.cc, lu.cc, minmax.cc, npsol.cc, pinv.cc, qpsol.cc, qr.cc, |
|
1739 quad.cc, qzval.cc, rand.cc, schur.cc, sort.cc, svd.cc, syl.cc: |
|
1740 Clean up #include statements. |
|
1741 |
|
1742 * pt-const.h: Don't include oct-obj.h or tree-base.h. |
|
1743 Provide forward declaration of Octave_object here. |
|
1744 * pt-const.cc: Include oct-obj.h here. |
|
1745 |
|
1746 * pt-mat.h, pt-fcn.h, pt-const.h, pt-misc.h, pt-plot.h, |
|
1747 pt-exp-base.h, pt-cmd.h, pt-fvc-base.h, pt-mvr-base.h, pt-exp.h, |
|
1748 pt-mvr.h, pt-fvc.h: New files, split from tree-expr.h and/or |
|
1749 renamed from other tree-*.h files (pt == parse tree). |
|
1750 * pt-base.cc, pt-const.cc, pt-exp.cc, pt-fvc-base.cc, pt-mat.cc, |
|
1751 pt-mvr-base.cc, pt-plot.cc, pt-cmd.cc, pt-exp-base.cc, pt-fcn.cc, |
|
1752 pt-fvc.cc, pt-misc.cc, pt-mvr.cc: Likewse, split from tree-expr.cc |
|
1753 and/or other tree-*.cc files. |
|
1754 * Makefile.in: Include them in the appropriate lists. |
|
1755 * All: Fix #include statements to match. |
|
1756 |
|
1757 * Array-tc.cc: Don't instantiate ArrayRep objects. |
|
1758 |
|
1759 Thu Jan 11 02:35:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1760 |
|
1761 * tree-const.cc (tree_constant::eval (int, int, const Octave_object&)): |
|
1762 Define here instead of in tree-const.h. |
|
1763 |
|
1764 Wed Jan 10 04:34:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1765 |
|
1766 * tree-const.h (tree_constant::tree_constant (const string&): |
|
1767 * tree-const.cc (TC_REP::tree_constant_rep (const string&)): |
|
1768 New constructor. |
|
1769 |
|
1770 Tue Jan 9 04:10:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1771 |
|
1772 * rand.cc (do_rand): Use string_value() result directly instead of |
|
1773 c_str() conversion. |
|
1774 * balance.cc (Fbalance): Likewise. |
|
1775 |
|
1776 * tree-const.cc (TC_REP::string_value()): |
|
1777 Handle new definition of charMatrix::row_as_string() |
|
1778 * load-save.cc (save_ascii_data): Ditto. |
|
1779 (save_binary_data): Ditto. |
|
1780 * pr-output.cc (octave_print_internal): Ditto. |
|
1781 |
|
1782 * balance.cc (Fbalance): |
|
1783 Handle new definition of TC_REP::string_value() |
|
1784 * colloc.cc (Fcolloc): Ditto. |
|
1785 * dassl.cc (Fdassl_options): Ditto. |
|
1786 * data.cc (Fstruct_contains): Ditto. |
|
1787 * dirfns.cc (Fmkdir): Ditto. |
|
1788 (Freaddir): Ditto. |
|
1789 (Frmdir): Ditto. |
|
1790 (Frename): Ditto. |
|
1791 * error.cc (handle_message): Ditto. |
|
1792 * file-io.cc (process_printf_format): Ditto. |
|
1793 (fopen_internal): Ditto. |
|
1794 (file_io_get_file): Ditto. |
|
1795 (return_valid_file): Ditto. |
|
1796 (Flstat): Ditto. |
|
1797 (Fstat): Ditto. |
|
1798 (unlink_internal): Ditto. |
|
1799 (mkfifo_internal): Ditto. |
|
1800 (async_system_internal): Ditto. |
|
1801 (sync_system_internal): Ditto. |
|
1802 (execute_internal): Ditto. |
|
1803 (popen_internal): Ditto. |
|
1804 (fwrite_internal): Ditto. |
|
1805 (fread_internal): Ditto. |
|
1806 (do_printf): Ditto. |
|
1807 (do_scanf): Ditto. |
|
1808 * input.cc (get_user_input): Ditto. |
|
1809 * lsode.cc (Flsode_options): Ditto. |
|
1810 * npsol.cc (Fnpsol_options):Ditto. |
|
1811 * qpsol.cc (Fqpsol_options):Ditto. |
|
1812 * quad.cc (Fquad_options): Ditto. |
|
1813 * rand.cc (do_rand): Ditto. |
|
1814 * schur.cc (Fschur): Ditto. |
|
1815 * sysdep.cc (Fputenv): Ditto. |
|
1816 (Fgetenv): Ditto. |
|
1817 * timefns.cc (extract_tm): Ditto. |
|
1818 (Fstrftime): Ditto. |
|
1819 * toplev.cc (Fsource): Ditto. |
|
1820 (eval_string): Ditto. |
|
1821 (Fsystem): Ditto. |
|
1822 * tree-plot.cc (subplot::handle_plot_data): Ditto. |
|
1823 * variables.cc (is_valid_function): Ditto. |
|
1824 (Fis_global): Ditto. |
|
1825 (Fexist): Ditto. |
|
1826 (builtin_string_variable): Ditto. |
|
1827 * utils.cc (make_argv): Ditto. |
|
1828 (Fundo_string_escapes): Ditto. |
|
1829 |
|
1830 Mon Jan 8 01:54:50 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1831 |
|
1832 * Makefile.in (install-bin): Use $(LN_S), not just ln. |
|
1833 |
|
1834 * variables.cc (octave_fcn_file_dir): New function. |
|
1835 * tree-expr.cc (mark_as_system_fcn_file): Use it instead of |
|
1836 octave_lib_dir. |
|
1837 |
|
1838 * Makefile.in (clean): If $(SHARED_LIBS), also remove shared libs. |
|
1839 |
|
1840 * pr-output.cc (set_format (const ComplexMatrix&, int&, int&)): |
|
1841 Unconditionally call all_elements_are_int_or_inf_or_nan(). |
|
1842 (set_format (const Matrix&, int&, int&)): Likewise. |
|
1843 |
|
1844 Sun Jan 7 19:12:39 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1845 |
|
1846 * utils.cc (oct_putenv): New function. |
|
1847 * sysdep.cc (Fputenv): Use oct_putenv. |
|
1848 * octave.cc (initialize_globals): Likewise. |
|
1849 |
|
1850 Sat Jan 6 23:22:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1851 |
|
1852 * sysdep.cc (Fputenv): New function. |
|
1853 |
|
1854 * input.cc (initialize_readline): Call rl_initialize() here. |
|
1855 |
|
1856 * octave.cc: Conditionally define atexit to be on_exit here. |
|
1857 * toplev.cc: Not here. |
|
1858 |
|
1859 Fri Jan 5 14:01:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1860 |
|
1861 * toplev.cc: Don't include <pwd.h> here. |
|
1862 |
|
1863 * octave-hist.cc, tree-plot.cc, utils.cc: Do include "sysdep.h". |
|
1864 |
|
1865 * dirfns.cc, file-io.cc, help.cc, load-save.cc, octave.cc, |
|
1866 octave-hist.cc, tree-plot.cc, utils.cc: |
|
1867 Don't include <readline/tilde.h>. |
|
1868 * sysdep.h: Do include it here. |
|
1869 |
|
1870 * tree-const.cc (TC_REP::assign (tree_constant&, Octave_object&)): |
|
1871 If we have a matrix or range, call maybe_mutate before returning. |
|
1872 |
|
1873 Sun Dec 31 15:56:18 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1874 |
|
1875 * npsol.cc (Fnpsol): Improve doc string. |
|
1876 * qpsol.cc (Fqpsol): Likewise. |
|
1877 |
|
1878 Fri Dec 29 21:46:58 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1879 |
|
1880 * defun-dld.h: Make work again for OCTAVE_LITE and |
|
1881 WITH_DYNAMIC_LINKING. |
|
1882 |
|
1883 * Makefile.in: Handle shared libraries. |
|
1884 |
|
1885 Wed Dec 27 17:47:51 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1886 |
|
1887 * mk-oct-links: New file. |
|
1888 * Makefile.in (install-oct): Use it. |
|
1889 * f-*.cc: Rename to *.cc. |
|
1890 |
|
1891 * Makefile.in (install-bin, install-lib, install-oct): New targets. |
|
1892 (install): Use them. |
|
1893 |
|
1894 Tue Dec 26 21:38:22 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1895 |
|
1896 * toplev.cc (reading_startup_message_printed): Move initialization |
|
1897 here and make extern. |
|
1898 |
|
1899 * dirfns.cc, dynamic-ld.cc, help.cc, input.cc, octave-hist.cc, |
|
1900 octave.cc, sighandlers.cc, sysdep.cc, tree-expr.cc, tree-misc.cc, |
|
1901 utils.cc, variables.cc, parse.y, lex.l: Include toplev.h instead |
|
1902 of octave.h. |
|
1903 * toplev.h: rename from octave.h. |
|
1904 |
|
1905 * octave.cc (main): Delete unused variable saved_sigint_handler. |
|
1906 |
|
1907 Sun Dec 24 00:26:54 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1908 |
|
1909 * dynamic-ld.cc: Massive re-write to handle dlopen/dlsym and |
|
1910 shl_load/shl_findsym methods of dynamic linking. |
|
1911 |
|
1912 * utils.cc (get_fcn_file_names): Check for .oct files if |
|
1913 WITH_DYNAMIC_LINKING, not WITH_DLD. |
|
1914 |
|
1915 * Makefile.in (LIB, TERMLIBS): Substitute values. |
|
1916 (octave): Add $(LIBS) to link command and use $(TERMLIBS) instead |
|
1917 of -ltermcap. |
|
1918 |
|
1919 Sat Dec 23 21:56:12 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1920 |
|
1921 * dynamic-ld.h, dynamic-ld.cc: Remove old unused code. |
|
1922 |
|
1923 * variables.cc (load_fcn_from_file): |
|
1924 Always call load_octave_oct_file. |
|
1925 |
|
1926 Wed Dec 20 00:56:57 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1927 |
|
1928 * pr-output.cc (set_real_format, set_real_matrix_format, |
|
1929 set_complex_format, set_complex_matrix_format, set_range_format): |
|
1930 New functions. Ensure the count of the digits to the right of the |
|
1931 decimal point is positive. |
|
1932 |
|
1933 * xpow.cc (xpow (const Matrix&, double)): Print warning if |
|
1934 inverting singular matrix (but return value anyway, in the name of |
|
1935 compatibility). |
|
1936 xpow (const ComplexMatrix&, double)): Likewise. |
|
1937 |
|
1938 * f-inv.cc (Finv): If matrix is singular, return result anyway, in |
|
1939 the name of compatibility. |
|
1940 |
|
1941 * symtab.cc (symbol_record::pop_context): |
|
1942 Don't assert (! context.empty ()). |
|
1943 |
|
1944 * tree-const.cc (TC_REP::char_matrix_value): Don't complain about |
|
1945 type conversion if object is an empty matrix.f |
|
1946 (TC_REP::assign): If rhs is a string, don't convert to numeric |
|
1947 type if rhs is empty or "". |
|
1948 Only widen if rhs is not empty. |
|
1949 Don't return 0x0 char_matrix if it is supposed to be a string. |
|
1950 |
|
1951 * arith-ops.h, mappers.h, pr-output.h, xdiv.h, xpow.h: Include |
|
1952 oct-cmplx.h in place of forward declaration for class Complex. |
|
1953 |
|
1954 * pr-output.cc, mappers.cc, arith-ops.cc, xdiv.cc, xpow.cc, |
|
1955 utils.cc: Include "oct-cmplx.h" instead of <Complex.h>. |
|
1956 |
|
1957 * octave.cc (initialize_error_handlers): Don't call |
|
1958 set_Complex_error_handler(). |
|
1959 (octave_Complex_error_handler): Delete unused function. |
|
1960 Delete declaration for set_Complex_error_handler(). |
|
1961 |
|
1962 * sighandlers.cc (catch_interrupts): New function. |
|
1963 * octave.cc (main): Call catch_interrupts() instead of calling |
|
1964 octave_set_signal_handler() directly. |
|
1965 |
|
1966 Tue Dec 19 03:22:37 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1967 |
|
1968 * variables.cc (looks_like_octave_copyright): Also recognize the |
|
1969 string " This program is free software". |
|
1970 |
|
1971 Thu Dec 14 01:54:06 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1972 |
|
1973 * octave-hist.cc (clean_up_history): Only write history file if |
|
1974 user_pref.saving_history. |
|
1975 |
|
1976 * octave-hist.cc (initialize_history, clean_up_history, |
|
1977 do_history): Perform tilde expansion on history file name. |
|
1978 |
|
1979 * octave.cc (main): Check `defined (HAVE_ON_EXIT)' not just |
|
1980 `(HAVE_ON_EXIT)'. |
|
1981 |
|
1982 * user-prefs.h (user_preferences): New fields, `history_file' and |
|
1983 `history_size'. |
|
1984 * user-prefs.cc (init_user_prefs): Initialize them. |
|
1985 (sv_history_file, history_size): New functions. |
|
1986 * variables.cc (install_builtin_variables): Initialize user-level |
|
1987 variables history_file and history_size. |
|
1988 * octave-hist.cc (default_history_size): Now extern. |
|
1989 (default_history_file): Likewise. |
|
1990 (octave_hist_size, octave_hist_file): Use user preference |
|
1991 variables instead. |
|
1992 * octave.cc (main): Call initialize_history after |
|
1993 execute_startup_files. |
|
1994 |
|
1995 Fri Dec 8 15:53:59 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1996 |
|
1997 * user-prefs.h (user_preferences): New field, `saving_history'. |
|
1998 * user-prefs.cc (init_user_prefs): Initialize it. |
|
1999 (saving_history): New function. |
|
2000 * variables.cc (install_builtin_variables): Initialize user-level |
|
2001 variable saving_history. |
|
2002 * octave.cc (parse_and_execute): Don't reset value of |
|
2003 saving_history here. |
|
2004 (main) Use user_pref.saving_history instead of saving_history. |
|
2005 * variables.cc (parse_fcn_file): Likewise. |
|
2006 * octave-hist.cc (maybe_save_history): Likewise. |
|
2007 Don't save history if input_from_startup_file. |
|
2008 |
|
2009 Mon Nov 27 23:05:52 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2010 |
|
2011 * resource.cc: Include systime.h before <sys/resource.h>. |
|
2012 |
|
2013 Tue Nov 14 14:09:40 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2014 |
|
2015 * error.cc: Include cstring. |
|
2016 |
|
2017 * tree-expr.cc (print_code): Decrement indent level after printing |
|
2018 function body. |
|
2019 |
|
2020 * Makefile.in: Remove references to oct-str.cc, oct-str.h, and |
|
2021 Array-string.cc. |
|
2022 |
|
2023 * tree-const.h: Don't include oct-str.h. |
|
2024 |
|
2025 Mon Nov 6 11:16:49 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2026 |
|
2027 * parse.y (make_plot_command, finish_colon_expression, |
|
2028 make_unwind_protect, make_try_command, make_for_command, |
|
2029 make_break_command, make_continue_command, make_return_command, |
|
2030 start_if_command, finish_if_command, make_elseif_clause, |
|
2031 make_simple_assignment, make_multi_val_ret, start_function_def, |
|
2032 frob_function_def, finish_function_def, start_matrix, |
|
2033 finish_matrix): New functions. Use them in the grammar to clean |
|
2034 things up a bit. Possibly convert matrix lists, colon |
|
2035 expressions, binary expressions, and unary expressions to constant |
|
2036 values. |
|
2037 (tree_matrix_type): Delete. |
|
2038 (simple_expr1): Handle all expression stuff here, including |
|
2039 assignments. |
|
2040 (simple_expr): Just check to see that simple_expr1 produced |
|
2041 something useful. |
|
2042 |
|
2043 * tree-plot.cc, tree-plot.h: Move most simple constructors to the |
|
2044 header file. |
|
2045 |
|
2046 * tree-expr.h (tree_expression::is_constant): Move virtual |
|
2047 function definition here. |
|
2048 (tree_fvc::is_constant): From here. |
|
2049 (tree_expression::is_matrix_constant): New virtual function. |
|
2050 (tree_expression::is_range_constant): New virtual function. |
|
2051 * tree-expr.cc (tree_matrix::is_matrix_constant): New function. |
|
2052 * tree-expr.cc (tree_colon_expression::is_range_constant): New |
|
2053 function. |
|
2054 |
|
2055 Fri Nov 3 03:42:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2056 |
|
2057 * utils.cc, utils.h (jump_to_top_level): Declare as extern "C". |
|
2058 |
|
2059 * tree-const.h (tree_constant::eval ()): Only mutate if printing. |
|
2060 |
|
2061 * tree-const.cc (TC_REP::tree_constant_rep (const Complex&), |
|
2062 TC_REP::tree_constant_rep (const ComplexMatrix&), |
|
2063 TC_REP::tree_constant_rep (const ComplexDiagMatrix&), |
|
2064 TC_REP::tree_constant_rep (const ComplexRowVector&), |
|
2065 TC_REP::tree_constant_rep (const ComplexColumnVector&)): |
|
2066 Also check to see if we can convert to scalar_constant, not just |
|
2067 complex_scalar_constant. |
|
2068 |
|
2069 * user-prefs.h (user_preferences): New field, `exec_path'. |
|
2070 * user-prefs.cc (init_user_prefs): Initialize it. |
|
2071 (sv_exec_path): New function. |
|
2072 * variables.cc (install_builtin_variables): Add DEFUN for EXEC_PATH. |
|
2073 (default_exec_path): New function. |
|
2074 * octave.cc (exec_path): New global variable. |
|
2075 Don't set and putenv() exec path here. |
|
2076 (long_opts): Add --exec-path option. |
|
2077 (main): Handle it. |
|
2078 (initialize_globals): Set default value here. |
|
2079 |
|
2080 * user-prefs.h (user_preferences): New field, `info_prog'. |
|
2081 * user-prefs.cc (init_user_prefs): Initialize it. |
|
2082 (sv_info_prog): New function. |
|
2083 * variables.cc (install_builtin_variables): Add DEFUN for INFO_PROGRAM. |
|
2084 (default_info_prog): New function. |
|
2085 * octave.cc (info_prog): New global variable. |
|
2086 (initialize_globals): Set default value here. |
|
2087 (long_opts): Add --info-prog option. |
|
2088 (main): Handle it. |
|
2089 * help.cc (try_info): Use user_pref.info_prog here. |
|
2090 |
|
2091 * octave.cc (initialize_globals): Put arch_dir and bin_dir ahead |
|
2092 of shell_path when resetting PATH. |
|
2093 |
|
2094 Thu Nov 2 04:30:13 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2095 |
|
2096 * f-rand.cc (Frandn): New function. |
|
2097 (do_initialization): New function. |
|
2098 (do_rand): New function for doing the real work. |
|
2099 (Frand): Use it. |
|
2100 |
|
2101 * octave.cc (parse_and_execute): New arg, warn_for. If given, |
|
2102 print message if file cannot be opened. |
|
2103 Set curr_fcn_file_full_name here. |
|
2104 (Fsource): Pass extra arg to parse_and_execute to get warning message. |
|
2105 |
|
2106 * tree-const.h: Handle line and column info for double, Complex, |
|
2107 and char* constants. |
|
2108 |
|
2109 * parse.y (maybe_convert_to_ans_assign): Pass along line and |
|
2110 column info from expression. |
|
2111 |
|
2112 * parse.y (make_constant): New function. |
|
2113 (simple_expr1, word_list): Use it. |
|
2114 |
|
2115 * input.cc, input.h (curr_fcn_file_full_name): New global. |
|
2116 * variables.cc (load_fcn_from_file): Set it here. |
|
2117 * parse.y (func_def2, yyerror, maybe_warn_missing_semi): Use it. |
|
2118 (func_def2): If !reading_fcn_file, don't call strcmp if |
|
2119 curr_fcn_file_name is 0. |
|
2120 |
|
2121 * octave.cc (Fsource): New function. |
|
2122 (parse_and_execute): Declare file name const char *. |
|
2123 * input.cc (get_input_from_file): Likewise. |
|
2124 |
|
2125 Wed Nov 1 13:54:34 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2126 |
|
2127 * f-filter.cc: New file. |
|
2128 * Makefile.in (DLD_SRC): Add it to the list. |
|
2129 |
|
2130 * sysdep.h (gethostname): Change declaration to match definition |
|
2131 in sysdep.cc. |
|
2132 |
|
2133 * resource.cc: Include sysdep.h here, for octave_NaN. |
|
2134 |
|
2135 Tue Oct 31 02:12:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2136 |
|
2137 * tree-const.cc (TC_REP::assign): After converting rhs to a |
|
2138 numeric type, use the converted value, not the original. |
|
2139 |
|
2140 * dirfns.cc (Fpwd): If nargout == 0, print the directory name |
|
2141 instead of returning it. |
|
2142 |
|
2143 * pager.cc (maybe_page_output): Call maybe_write_to_diary_file here. |
|
2144 (flush_output_to_pager): Not here. |
|
2145 |
|
2146 Mon Oct 30 23:39:43 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2147 |
|
2148 * variables.cc (install_builtin_commands): Add DEFVAR for |
|
2149 echo_executing_commands. |
|
2150 |
|
2151 * octave-hist.cc (do_edit_history): Handle new echo stuff. |
|
2152 * variables.cc (parse_fcn_file): Likewise. |
|
2153 * octave.cc (parse_and_execute): Likewise. |
|
2154 (main): Likewise. |
|
2155 * input.cc (do_input_echo): |
|
2156 (Fecho): New function. |
|
2157 |
|
2158 * tree-expr.cc (tree_function::print_code_function_header, |
|
2159 tree_function::print_code_function_trailer): New functions. |
|
2160 (tree_function::print_code): Use them. |
|
2161 (tree_function::eval): Likewise, if echoing commands. |
|
2162 * tree-misc.cc (tree_statement::maybe_echo_code): New function. |
|
2163 |
|
2164 * user-prefs.h (user_preferences): New field, echo_executing_commands. |
|
2165 (echo_state): New enum, for various types of echoing we do. |
|
2166 * user-prefs.cc (echo_executing_commands): New function. |
|
2167 |
|
2168 * tree-base.cc (print_code_indent): Print PS4 as line prefix. |
|
2169 * help.cc (Ftype): Add unwind_protect for ps4 and set it to "" |
|
2170 before printing code. |
|
2171 |
|
2172 * tree-misc.h (tree_statement_list): New field, function_body. |
|
2173 (tree_statement_list::mark_as_function_body): New function. |
|
2174 * parse.y (func_def3): Mark function bodies. |
|
2175 |
|
2176 * pr-output.cc (octave_print_internal): Undo string escapes when |
|
2177 printing charMatrix as strings. |
|
2178 |
|
2179 Sat Oct 28 17:38:29 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2180 |
|
2181 * utils.h (undo_string_escapes): Add missing const in declaration. |
|
2182 |
|
2183 Fri Oct 27 03:49:44 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2184 |
|
2185 * file-io.cc (next_available_file_number): New stack for keeping |
|
2186 track of next available file number. |
|
2187 (get_next_avail_file_num): New function. |
|
2188 (fopen_file_for_user, fopen_internal, popen_internal, |
|
2189 execute_internal): Use it. |
|
2190 |
|
2191 Mon Oct 23 07:00:09 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2192 |
|
2193 * tree-const.cc (TC_REP::convert_to_matrix_type, |
|
2194 tree_constant::convert_to_matrix_type): New arg, make_complex. |
|
2195 (TC_REP::set_index): New arg, rhs_is_complex. Pass it to |
|
2196 convert_to_matrix_type. |
|
2197 (TC_REP::assign): Pass rhs.is_complex_type() to set_index. |
|
2198 |
|
2199 Thu Oct 19 00:38:38 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2200 |
|
2201 * xpow.cc: Include <climits>. |
|
2202 |
|
2203 * sysdep.cc (Fpause): Do pause even if not interactive. |
|
2204 |
|
2205 * tree-const.cc (TC_REP::assign): Don't make RHS numeric if both |
|
2206 RHS and LHS are strings. |
|
2207 |
|
2208 Wed Oct 18 22:19:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2209 |
|
2210 * f-expm.cc (Fexpm): Avoid taking log of negative number. Also, |
|
2211 don't unnecessarily divide the input matrix by 1.0. |
|
2212 |
|
2213 * input.cc (decode_prompt_string): Recognize \[ and \] too. |
|
2214 (initialize_readline): Bind M-p to history-search-backward and M-n |
|
2215 to history-search-forward. |
|
2216 |
|
2217 Tue Oct 17 04:31:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2218 |
|
2219 * xpow.cc (xpow): Handle integer powers better for complex^double. |
|
2220 (elem_xpow): Likewise. |
|
2221 |
|
2222 * lex.l ({CCHAR}): If nesting_level.top() is BRACE, return ';', |
|
2223 not '\n'. |
|
2224 |
|
2225 Mon Oct 16 19:03:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2226 |
|
2227 * help.cc (Fwhich): Fix doc string. |
|
2228 |
|
2229 * variables.cc (Fexist): Update doc string. |
|
2230 |
|
2231 Sun Oct 15 22:19:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2232 |
|
2233 * Another massive set of changes to support character matrices |
|
2234 with indexing. The Octave_str_object class is no longer used. |
|
2235 Anything having to do with Octave_str_object in the following |
|
2236 files has been changed to use charMatrix instead: octave.h, |
|
2237 load-save.cc, octave.cc, strfns.cc, data.cc, pr-output.h, |
|
2238 pr-output.cc, tree-const.h, dirfns.cc, tree-const.cc, |
|
2239 tree-expr.cc. |
|
2240 |
|
2241 Sat Oct 14 22:28:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2242 |
|
2243 * f-sort.cc (mx_sort): Don't attempt to sort vectors that have |
|
2244 only one element, or matrices that have only one row. |
|
2245 |
|
2246 Thu Oct 12 02:16:58 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2247 |
|
2248 * mappers.cc (install_mapper_functions): Add gammaln as an alias |
|
2249 for lgamma. |
|
2250 |
|
2251 * tree-const.h, tree-const.cc: Massive overhaul of indexing and |
|
2252 indexed assignment functions. |
|
2253 * tc-inlines.h, tc-rep.h: Remove files. |
|
2254 * Makefile.in: Remove mention of them here too. |
|
2255 |
|
2256 * Makefile.in: Include $(TI_SRC) in DEP_SOURCES_3, not |
|
2257 $(TI_SOURCES). |
|
2258 Include $(DLD_SRC) in DEP_SOURCES_3. |
|
2259 Include $(TI_SRC) in DEF_FILES_5. |
|
2260 |
|
2261 Wed Oct 11 01:26:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2262 |
|
2263 * Makefile.in (INCLUDES): Remove tc-inlines.h and tc-rep.h from |
|
2264 the list. |
|
2265 |
|
2266 Mon Oct 9 08:31:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2267 |
|
2268 * lex.l (next_token_is_bin_op): Do match `.+', `.*', etc. |
|
2269 |
|
2270 Sun Oct 8 18:19:56 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2271 |
|
2272 * idx-vector.h, idx-vector.cc: Delete files. |
|
2273 * Makefile.in (SOURCES, INCLUDES): Remove them from lists. |
|
2274 |
|
2275 Fri Oct 6 00:52:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2276 |
|
2277 * f-svd.cc (Fsvd): If nargout == 0 or nargout == 1, don't ask for |
|
2278 U and V. |
|
2279 |
|
2280 Wed Oct 4 00:04:57 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2281 |
|
2282 * f-npsol.cc (Fnpsol, Fnpsol_options): Avoid unused variable |
|
2283 warnings if NPSOL_MISSING. |
|
2284 * f-qpsol.cc (Fqpsol, Fqpsol_options): Likewise for QPSOL_MISSING. |
|
2285 |
|
2286 * Makefile.in (DISTFILES): Add octave.gperf. |
|
2287 |
|
2288 * lex.l (next_token_is_bin_op): Don't ever return true for `.' |
|
2289 since that causes problems with things like [ .1 .1 ]. |
|
2290 |
|
2291 Tue Oct 3 05:30:24 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2292 |
|
2293 * variables.cc (is_valid_function): Avoid setting error_state if |
|
2294 argument is not a string. |
|
2295 |
|
2296 * parse.y (maybe_warn_missing_semi): New function. |
|
2297 (list1, list): Call it if statement not terminated by semicolon. |
|
2298 * tree-misc.h (tree_statement::line, tree_statement::column): |
|
2299 New functions. |
|
2300 * octave.cc (input_from_command_line_file): New global variable. |
|
2301 (main): Set it. |
|
2302 (parse_and_execute): Unwind-protect it and set it to zero. |
|
2303 (eval_string): Likewise. |
|
2304 * variables.cc (parse_fcn_file): Likewise. |
|
2305 |
|
2306 * user-prefs.cc (warn_missing_semicolon): New function. |
|
2307 * user-prefs.h (user_preferences): New field, warn_missing_semicolon. |
|
2308 * variables.cc (install_builtin_variables): DEFVAR it. |
|
2309 |
|
2310 * tree-expr.cc (tree_expression::is_logically_true): Actually use |
|
2311 argument. |
|
2312 |
|
2313 Mon Oct 2 19:55:48 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2314 |
|
2315 * variables.cc (install_builtin_variables): Reduce the default |
|
2316 value of save_precision to 15. |
|
2317 |
|
2318 * variables.cc (builtin_real_scalar_variable): Return 1 for |
|
2319 success, 0 for failure. |
|
2320 |
|
2321 * user-prefs.cc (struct_levels_to_print, set_save_precision, |
|
2322 set_output_max_field_width, set_output_precision): |
|
2323 Change sense of test for builtin_real_scalar_variable return value. |
|
2324 (check_preference): Rename from check_str_pref. Change all callers. |
|
2325 Accept value of 0 to be the same as "false" and nonzero to be the |
|
2326 same as "true". |
|
2327 Delete val to avoid memory leak. |
|
2328 * variables.cc (install_builtin_variables): Change initial values |
|
2329 from "true" to 1, "false" to 0. |
|
2330 |
|
2331 * variables.cc (install_builtin_variables): Add DEFVAR for |
|
2332 gnuplot_has_multiplot. |
|
2333 |
|
2334 * user-prefs.h (user_preferences): New field, |
|
2335 `gnuplot_has_multiplot'. |
|
2336 * user-prefs.cc (init_user_prefs): Initialize it. |
|
2337 (gnuplot_has_multiplot): New function. |
|
2338 |
|
2339 Sat Sep 30 16:52:57 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2340 |
|
2341 * oct-gperf.h, octave.gperf: Newfiles. |
|
2342 * Makefile.in (DISTFILES): Add octave.gperf. |
|
2343 (INCLUDES): Add oct-gperf.h. |
|
2344 (oct-gperf.h): New rule. |
|
2345 (local-dist, dist): Depend on oct-gperf.h. |
|
2346 * lex.l (is_keyword): Use perfect hash function to lookup |
|
2347 keywords. |
|
2348 |
|
2349 Fri Sep 29 04:36:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2350 |
|
2351 * version.h (OCTAVE_NAME_AND_VERSION): Add TARGET_HOST_TYPE to this. |
|
2352 |
|
2353 Thu Sep 28 00:03:51 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2354 |
|
2355 * tree-expr.cc (tree_expression::is_logically_true): New function. |
|
2356 * tree-cmd.cc (tree_while_command::eval): Use it instead of |
|
2357 handling the test directly here. |
|
2358 * tree-misc.cc (tree_if_clause::eval): Likewise |
|
2359 |
|
2360 * tree-const.cc (TC_REP::force_numeric): Don't try to print value |
|
2361 of str_obj with %s. |
|
2362 |
|
2363 * error.cc (buffer_error_messages): Rename from |
|
2364 suppress_octave_error_messages. |
|
2365 (error_message_buffer): New global variable. |
|
2366 (verror): Handle buffering of messages. |
|
2367 (handle_message): New function. |
|
2368 (Ferror, Fwarning, Fusage): Use it instead of duplicating code. |
|
2369 |
|
2370 * octave.cc (Feval): Buffer error messages instead of supressing them. |
|
2371 |
|
2372 * lex.l (is_keyword): Recognize `try', `catch', and `end_try_catch'. |
|
2373 * parse.y (TRY, CATCH): New tokens. |
|
2374 (command): Recognize try-catch block. |
|
2375 (end_error): Add cases for unwind_protect_end and try_catch_end. |
|
2376 * token.h (end_tok_type): New field, try_catch_end. |
|
2377 * tree-cmd.h, tree-cmd.cc (tree_try_catch): New class. |
|
2378 * variables.cc (bind_global_error_variable): New Function. |
|
2379 (clear_global_error_variable): Likewise. |
|
2380 (install_builtin_variables): Add DEFCONST for __error_text__. |
|
2381 * help.cc (keywords): Add `try', `catch', and `end_try_catch'. |
|
2382 |
|
2383 * tree-cmd.cc (tree_unwind_protect::eval): Undo previous change. |
|
2384 |
|
2385 * dirfns.cc (Freaddir, Fmkdir, Frmdir): |
|
2386 Do tilde expansion on the argument. |
|
2387 |
|
2388 Tue Sep 26 00:10:29 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2389 |
|
2390 * f-dassl.cc, f-fsolve.cc, f-lsode.cc, f-npsol.cc, f-quad.cc: |
|
2391 Don't try to figure out if the user-supplied functions take the |
|
2392 correct number of arguments. Simply let the call fail. |
|
2393 * variables.cc (takes_correct_nargs): Delete unused function. |
|
2394 * tree-expr.cc (tree_builtin::eval): Don't complain for too many |
|
2395 arguments to mapper functions. |
|
2396 * tree-expr.h, tree-expr.cc (tree_builtin, tree_function, tree_fvc): |
|
2397 Delete unused function max_expected_args. |
|
2398 |
|
2399 * defun.h (DEFUN): Delete unnecessary args nargin_min and nargout_max. |
|
2400 New arg unused_arg_flags. |
|
2401 (DEFUN_TEXT): Likewise. |
|
2402 * defun-dld.h (DEFUN_DLD_BUILTIN): Likewise. |
|
2403 * defun-int.h (DEFUN_INTERNAL, DECLARE_FUN, DEFINE_FUN_STRUCT): |
|
2404 Do the real work. |
|
2405 |
|
2406 * data.cc, dirfns.cc, dynamic-ld.cc, error.cc, f-balance.cc, |
|
2407 f-chol.cc, f-colloc.cc, f-dassl.cc, f-det.cc, f-eig.cc, f-expm.cc, |
|
2408 f-fft.cc, f-fft2.cc, f-find.cc, f-fsolve.cc, f-fsqp.cc, |
|
2409 f-givens.cc, f-hess.cc, f-ifft.cc, f-ifft2.cc, f-inv.cc, f-log.cc, |
|
2410 f-lpsolve.cc, f-lsode.cc, f-lu.cc, f-minmax.cc, f-npsol.cc, |
|
2411 f-pinv.cc, f-qpsol.cc, f-qr.cc, f-quad.cc, f-qzval.cc, f-rand.cc, |
|
2412 f-schur.cc, f-sort.cc, f-svd.cc, f-syl.cc, file-io.cc, help.cc, |
|
2413 input.cc, lex.l, load-save.cc, mappers.cc, octave-hist.cc, |
|
2414 octave.cc, octave.h, pager.cc, pr-output.cc, resource.cc, |
|
2415 sighandlers.cc, strfns.cc, sysdep.cc, timefns.cc, token.cc, |
|
2416 tree-const.cc, tree-expr.cc, tree-expr.h, tree-plot.cc, |
|
2417 unwind-prot.cc, unwind-prot.h, utils.cc, variables.cc, |
|
2418 variables.h, version.h, xdiv.cc: |
|
2419 Avoid unused variable warnings. |
|
2420 |
|
2421 * tree-expr.h (tree_oct_obj::print_value (ostream&)): |
|
2422 Delete name of unused arg. |
|
2423 (tree_fvc::save (ostream&, int, int): Likewise. |
|
2424 |
|
2425 * tree-const.h (tree_constant::tree_constant (magic_colon)): |
|
2426 Delete name of unused arg. |
|
2427 (tree_constant::tree_constant (all_va_args)): Likewise |
|
2428 (ColumnVector vector_value (int, int)): Likewise. |
|
2429 (ComplexColumnVector vector_value (int, int)): Likewise. |
|
2430 (Octave_object::eval (int, int, const Octave_object&): Likewise. |
|
2431 |
|
2432 * octave.cc (execute_startup_files): Look for octaverc first in |
|
2433 site/m, then in $(version)/m. |
|
2434 * variables.cc (get_local_site_defaults): New function. |
|
2435 * defaults.h.in (OCTAVE_LOCALFCNFILEDIR, OCTAVE_LOCALSTARTUPFILEDIR): |
|
2436 New macros. |
|
2437 * Makefile.in (defaults.h): Also substitute ${localfcndir}. |
|
2438 |
|
2439 Mon Sep 25 17:01:03 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2440 |
|
2441 * variables.cc (install_builtin_variables): Add DEFCONST for "e". |
|
2442 |
|
2443 Fri Sep 22 02:18:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2444 |
|
2445 * dirfns.cc (Fls): Delete ls_command after using it, not before. |
|
2446 |
|
2447 * input.h, input.cc (gnu_readline): Don't declare gnu_readline |
|
2448 `extern "C"'. |
|
2449 |
|
2450 * sysdep.h: Only declare gethostname if it is missing, then don't |
|
2451 declare it `extern "C"'. |
|
2452 |
|
2453 * dirfns.cc: Don't declare strerror(). |
|
2454 |
|
2455 * input.cc (command_generator): Use malloc, not xmalloc. Don't |
|
2456 declare xmalloc. |
|
2457 (gnu_readline): Don't declare this `extern "C"'. |
|
2458 |
|
2459 * octave-hist.cc: Don't declare history_get(). It is now in |
|
2460 readline/history.h. |
|
2461 |
|
2462 * input.cc: Don't declare history_get(). It is now in |
|
2463 readline/readline.h. |
|
2464 |
|
2465 * resource.cc: Don't surround include of sys/resource.h in |
|
2466 `extern "C" { }'. |
|
2467 |
|
2468 * fnmatch.h [__cplusplus]: Surround contents in `extern "C" { }'. |
|
2469 * load-save.cc, symtab.cc, variables.cc: Don't surround |
|
2470 fnmatch.h include in `extern "C" { }'. |
|
2471 |
|
2472 * help.cc: Don't #undef __FUNCTION_DEF before including |
|
2473 readline/tilde.h. |
|
2474 |
|
2475 * dirfuns.cc, file-io.cc, help.cc, load-save.cc, octave-hist.cc, |
|
2476 sysdep.cc, tree-plot.cc, utils.cc, variables.cc: |
|
2477 Don't surround readline includes in `extern "C" { }'. |
|
2478 |
|
2479 * sysdep.cc: Move all include statements to top of file. |
|
2480 |
|
2481 Tue Sep 19 01:58:21 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2482 |
|
2483 * octave.cc (Fsystem): Use iprocstream *, and unwind_protect it. |
|
2484 * pager.cc (flush_output_to_pager): Likewise. |
|
2485 * dirfns.cc (Fls): Likewise. |
|
2486 * tree-plot.cc (plot_stream): Now a pointer. |
|
2487 (open_plot_stream): Deal with it. |
|
2488 (send_to_plot_stream, cleanup_tmp_files, do_external_plotter_cd): |
|
2489 Likewise. |
|
2490 |
|
2491 * procstream.cc (cleanup_iprocstream, cleanup_oprocstream): |
|
2492 New functions. |
|
2493 |
|
2494 * procstream.h, procstream.cc (class iprocstream, class oprocstream): |
|
2495 Keep track of pbuf. Initialize it to 0 in default constructors, |
|
2496 delete it in destructor. Don't call close in destructor. |
|
2497 |
|
2498 * sighandlers.cc (octave_set_signal_handler): New function. |
|
2499 Use this name instead of signal everywhere. |
|
2500 * help.cc (try_info): Likewise. |
|
2501 * pager.cc (flush_output_to_pager): Likewise. |
|
2502 * octave.cc (main): Likewise. |
|
2503 * octave-hist.cc (do_edit_history): Likewise. |
|
2504 |
|
2505 * input.cc (initialize_readline): Set rl_paren_string_delimiters |
|
2506 to avoid treating single quotes as string delimiters when doing |
|
2507 paren matching. |
|
2508 |
|
2509 * Makefile.in (SOURCES): Don't list Map.cc or SLStack.cc here. |
|
2510 |
|
2511 * tree-const.cc: Do include utils.h. |
|
2512 |
|
2513 * sysdep.cc: Don't surround terminal includes in extern "C". |
|
2514 Include them before readline.h. |
|
2515 |
|
2516 * Map.h: Don't include utils.h. |
|
2517 (CHNode::CHNode (const char*, const C&, CHNode *t): |
|
2518 Do strsave() inline. |
|
2519 |
|
2520 * input.cc (generate_possible_completions): Generate name list |
|
2521 even when text == 0. |
|
2522 (operate_and_get_next): Don't declare history_stifled, call |
|
2523 history_is_stifled () instead. |
|
2524 Don't declare history_length, or max_input_history either. |
|
2525 Check (where >= history_length - 1) too, as in recent versions of |
|
2526 bash. |
|
2527 |
|
2528 * user-prefs.h (user_prefs): New field, `completion_append_char'. |
|
2529 * user-prefs.cc (init_user_prefs): Initialize it. |
|
2530 (sv_completion_append_char): New function. |
|
2531 * variables.cc (install_builtin_variables): Install |
|
2532 completion_append_char. |
|
2533 * input.cc (command_generator): Use it. |
|
2534 |
|
2535 * SLList-expr.cc, SLList-misc.cc, SLList-plot.cc, SLList-tc.cc, |
|
2536 DLList-fi.cc: Include config.h. |
|
2537 * DLList-fi.cc: Include file-info.h, not file-io.h. |
|
2538 |
|
2539 Mon Sep 18 11:01:24 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2540 |
|
2541 * octave.h (clean_up_and_exit): Tag with NORETURN instead of using |
|
2542 typedef trick. |
|
2543 * error.h (panic): Likewise. |
|
2544 * utils.h (jump_to_top_level): Likewise. |
|
2545 |
|
2546 * file-io.h: Protect from multiple includes with octave_file_io, |
|
2547 not octave_files. |
|
2548 |
|
2549 * file-info.h (class file_info): Convert to using std C++ string |
|
2550 class from char *. |
|
2551 * file-info.cc: Likewise. Don't include utils.h. |
|
2552 * file-io.cc (return_valid_file, fopen_file_for_user, |
|
2553 fflush_internal, do_scanf): Use operator ==, not strcmp. |
|
2554 (close_files): Call error with file.name ().data (), |
|
2555 not file.name (). |
|
2556 (freport_internal): Call form with file.mode ().data () and |
|
2557 file.name ().data (). |
|
2558 |
|
2559 * file-io.cc, file-io.h: Extract file_info class. |
|
2560 * file-info.cc, file-info.h: New files for file_info class. |
|
2561 |
|
2562 * user-prefs.h (user_prefs): New field, `beep_on_error'. |
|
2563 * user-prefs.cc (init_user_prefs): Initialize it. |
|
2564 (beep_on_error): New function. |
|
2565 * variables.cc (install_builtin_variables): Install beep_on_error. |
|
2566 * octave.cc (maximum_braindamage): Set beep_on_error to "true". |
|
2567 * error.cc (verror): Conditionally beep. |
|
2568 (error): Don't reset error_state until after verror is called. |
|
2569 |
|
2570 Sun Sep 17 16:41:25 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2571 |
|
2572 * load-save.cc (read_mat_binary_data, read_ascii_data, |
|
2573 save_ascii_data, read_binary_data, save_binary_data): |
|
2574 Handle string arrays. |
|
2575 |
|
2576 Fri Sep 15 00:24:19 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2577 |
|
2578 * user-prefs.cc (struct_levels_to_print, |
|
2579 set_output_max_field_width, set_output_precision, |
|
2580 set_save_precision): Eliminate unecessary kludge variable. |
|
2581 |
|
2582 * variables.cc (gobble_leading_white_space): New arg, |
|
2583 in_parts. Change all callers. |
|
2584 |
|
2585 * lex.l (HELP_FCN): Delete start state. The `help' command is now |
|
2586 handled the same as any other text-style function. |
|
2587 |
|
2588 * gripes.cc (gripe_invalid_value_specified): New function |
|
2589 * user-prefs.cc: Use it. |
|
2590 |
|
2591 * sysdep.cc (octave_words_big_endian): New global variable. |
|
2592 (ten_little_endians): New function. |
|
2593 (sysdep_init): Call it. |
|
2594 * load-save.cc (words_big_endian): Use this at run-time instead of |
|
2595 depending on WORDS_BIGENDIAN at compile-time. |
|
2596 |
|
2597 * symtab.h (SYMTAB_VARIABLES): New macro. |
|
2598 * variables.cc (Fclear): Use it instead of just |
|
2599 symbol_def::USER_VARIABLE when looking for variables. |
|
2600 |
|
2601 * octave.cc (main): If there is a file to execute, set |
|
2602 program_invocation_name and program_name to the name of the file |
|
2603 and argv to the remaining args. |
|
2604 (intern_argv): Only define argv if there are some remaining |
|
2605 arguments. |
|
2606 |
|
2607 * defun.h (DEFVAR_INT): New macro. |
|
2608 (DEFVAR): Define in terms of DEFVAR_INT. Delete args protect and |
|
2609 eternal. |
|
2610 (DEFCONST): New macro. |
|
2611 * variables.cc (install_builtin_variables): Use DEFCONST where |
|
2612 appropriate, change uses of DEFVAR to match new definition. |
|
2613 |
|
2614 * variables.cc (bind_builtin_variable): New variant that accepts |
|
2615 const tree_constant& value. |
|
2616 (install_builtin_variables): Properly alphabetize DEFVAR for this. |
|
2617 |
|
2618 * octave.cc (short_opts): Prefix with `+' to prevent argv |
|
2619 permutation. |
|
2620 (main): Don't use readline if forced_interactive. |
|
2621 (traditional): New file-scope variable. |
|
2622 (long_opts, usage_string, verbose_usage): Add `--traditional'. |
|
2623 (maximum_braindamage): New function. |
|
2624 (main): Call it if --traditional. |
|
2625 |
|
2626 * input.cc (do_input_echo): Print prompt correctly when |
|
2627 forced_interactive is either true or false. |
|
2628 |
|
2629 Thu Sep 14 00:54:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2630 |
|
2631 * data.cc (Fstruct_elements): New function. |
|
2632 |
|
2633 * file-io.cc (Fumask): New function. |
|
2634 |
|
2635 * dirfns.cc (Fmkdir, Frmdir, Frename): New functions. |
|
2636 |
|
2637 * Makefile.in: Add rules and dependencies for building safe-stat.o |
|
2638 and safe-lstat.o. |
|
2639 |
|
2640 * mkdir.c, rename.c, rmdir.c: New files. |
|
2641 * Makefile.in (SOURCES): Include them in the list. |
|
2642 |
|
2643 * safe-xstat.hin, safe-xstat.cin: New files |
|
2644 * Makefile.in (DISTFILES): Include them in the list. |
|
2645 |
|
2646 * sighandlers.cc (octave_new_handler): Try to continue on memory |
|
2647 exhausted errors. |
|
2648 (sigfpe_handler): Improve error message. |
|
2649 |
|
2650 * Makefile.in: Use `ifndef omit_deps', not `ifndef $(omit_deps)'. |
|
2651 |
|
2652 * dirfns.cc (Freaddir): New function. |
|
2653 |
|
2654 * f-sort.cc: Complete rewrite. Now uses stable sort algorithm and |
|
2655 correctly handles complex matrices containing columns of all real |
|
2656 numbers. |
|
2657 |
|
2658 Wed Sep 13 03:16:40 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2659 |
|
2660 * arith-ops.cc: Unconditionally #define DIVIDE_BY_ZERO_ERROR. |
|
2661 |
|
2662 * variables.cc (install_builtin_variables): Unconditionally |
|
2663 install NaN and nan. |
|
2664 |
|
2665 * mappers.cc (xisinf): Don't do bogus things if isinf, isnan, or |
|
2666 finite are missing. |
|
2667 (xfinite): Likewise. |
|
2668 |
|
2669 * sysdep.cc (octave_ieee_init): Don't set octave_NaN and |
|
2670 octave_Inf if values are not available. |
|
2671 |
|
2672 * resource.cc (mk_ru_map): Don't use ru_ or tv_ as prefixes to |
|
2673 Octave names for the structure members. |
|
2674 |
|
2675 Tue Sep 12 02:04:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2676 |
|
2677 * procstream.h, procstream.cc: Rewrite. |
|
2678 |
|
2679 Mon Sep 11 18:42:05 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2680 |
|
2681 * filemode.c: New file, from Emacs. |
|
2682 * Makefile.in (SOURCES): Add it to the list. |
|
2683 |
|
2684 * file-io.cc (Fstat, Flstat, mk_stat_map): New functions. |
|
2685 |
|
2686 * timefns.cc (mk_tm_map): Don't use tm_ as prefix to Octave names |
|
2687 for these structure members. |
|
2688 (extract_tm): Likewise. |
|
2689 (Flocaltime): Fix doc string to match. |
|
2690 |
|
2691 Thu Sep 7 02:04:27 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2692 |
|
2693 * load-save.cc (save_user_variables): New function. |
|
2694 * sighandlers.cc (my_friendly_exit): Call it before exiting. |
|
2695 (sigfpe_handler): New function. |
|
2696 (install_signal_handlers) [__alpha__]: Install it. |
|
2697 |
|
2698 Wed Sep 6 14:35:10 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2699 |
|
2700 * tree-cmd.cc (tree_unwind_protect::eval): Ignore errors and |
|
2701 suppress error messages while executing first block of |
|
2702 unwind_protect commands. |
|
2703 |
|
2704 * parse.y (end_error): Add missing case for unwind_protect_end. |
|
2705 |
|
2706 * tree-expr.cc (tree_builtin::eval): Complain if no arguments |
|
2707 given for mapper functions. |
|
2708 (tree_fvc::lookup_map_element): Print error message for invalid |
|
2709 structure reference. |
|
2710 |
|
2711 Tue Sep 5 02:04:12 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2712 |
|
2713 * file-io.cc, input.cc, load-save.cc, octave.cc, sysdep.cc, |
|
2714 variables.cc, octave-hist.cc, utils.cc, f-schur.cc, f-rand.cc, |
|
2715 f-quad.cc, f-qpsol.cc, f-npsol.cc, f-lsode.cc, f-fsolve.cc, |
|
2716 f-dassl.cc, f-colloc.cc, f-balance.cc, error.cc, data.cc: |
|
2717 Add const qualifiers where appropriate. |
|
2718 |
|
2719 * dirfns.h: Include <ctime>, for time_t. |
|
2720 |
|
2721 * tempname.c, file-io.cc, help.cc, input.cc, octave-hist.cc, |
|
2722 octave.cc, sighandlers.cc, sysdep.cc, tree-expr.cc, tree-misc.cc, |
|
2723 tree-plot.cc, utils.cc, variables.cc, sysdir.h: |
|
2724 Move #include <sys/type.h> inside #ifdef HAVE_UNISTD_H. |
|
2725 |
|
2726 * syswait.h: New file. |
|
2727 * Makefile.in (INCLUDES): Add it to the list. |
|
2728 * file-io.cc, sighandlers.cc: Use it instead of including |
|
2729 sys/wait.h directly. |
|
2730 |
|
2731 * octave.cc: Include statdefs.h, not sys/stat.h. |
|
2732 |
|
2733 * sysdir.h: New file. |
|
2734 * Makefile.in (INCLUDES): Add it to the list. |
|
2735 * dirfns.cc, utils.cc: Use it instead of including the headers |
|
2736 directly. |
|
2737 |
|
2738 * pathlen.h: New file. |
|
2739 * Makefile.in (INCLUDES): Add it to the list. |
|
2740 * dirfns.cc, input.cc: Use it instead of including sys/param.h |
|
2741 directly. |
|
2742 * utils.cc: Don't include sys/param.h |
|
2743 |
|
2744 Sun Sep 3 18:52:59 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2745 |
|
2746 * tree-const.cc (TC_REP::string_value): Return const char*, not |
|
2747 char *. |
|
2748 |
|
2749 * All .cc, .y, .l, .y files: Include <cctype>, not <ctype.h>, and |
|
2750 so on for all new C++ versions of these standard C headers. |
|
2751 |
|
2752 Thu Aug 31 17:09:38 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2753 |
|
2754 * pathsearch.h: Also hide `string'. |
|
2755 |
|
2756 * oct-str.cc, oct-str.h: New files. |
|
2757 * Makefile.in: Add to the appropriate lists. |
|
2758 * tc-rep.h: Change char* to Octave_string* in anonymous union. |
|
2759 * tree-expr.cc (tree_matrix::eval): Handle multiple element strings. |
|
2760 * strfns.cc (toascii): Likewise. |
|
2761 * tree-const.cc (print_as_string): Likewise. |
|
2762 (TC_REP::force_numeric, TC_REP::rows, TC_REP::columns, |
|
2763 TC_REP::double_value, TC_REP::complex_value, TC_REP::matrix_value, |
|
2764 TC_REP::complex_matrix_value, TC_REP::convert_to_str): Likewise. |
|
2765 (TC_REP::print): Call octave_print_internal for string case. |
|
2766 (all_strings): New function. |
|
2767 Fix constructors to use new data structure. |
|
2768 * pr-output.cc (octave_print_internal): Add version for strings. |
|
2769 * Array-string.cc: New file. |
|
2770 |
|
2771 * octave.cc (octave_argv): New global variable. |
|
2772 (intern_argv): New function. |
|
2773 (main): Fix argument parsing to do the right thing for arguments |
|
2774 to executable scripts. |
|
2775 * variables.cc: Add DEFUNs for argv, program_invocation_name, and |
|
2776 program_name. |
|
2777 |
|
2778 * defun.h (DEFVAR): Fix comment. |
|
2779 |
|
2780 Thu Aug 24 00:02:00 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2781 |
|
2782 * file-io.cc (fgets_internal): Make second arg optional. Add |
|
2783 optional arg `strip_final_newline'. |
|
2784 (Ffgets): Change to match new definition of fgets_internal. |
|
2785 (Ffgetl): Implement using the new fgets_internal. |
|
2786 |
|
2787 * f-rand.cc (Frand): Update code for sizing return value to match |
|
2788 that used by ones, zeros, and eye. |
|
2789 |
|
2790 Wed Aug 23 19:52:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2791 |
|
2792 * tree-const.cc (do_vector_assign): Don't crash for |
|
2793 A(range) = scalar, or A(matrix) = scalar. |
|
2794 |
|
2795 * f-dassl.cc (set_dassl_option): Rename from do_dassl_option. |
|
2796 (show_dassl_option): New function. |
|
2797 (Fdassl_options): Handle single arg. |
|
2798 * f-fsolve.cc (set_fsolve_option): Rename from do_fsolve_option. |
|
2799 (show_fsolve_option): New function. |
|
2800 (Ffsolve_options): Handle single arg. |
|
2801 * f-fsqp.cc (set_fsqp_option): Rename from do_fsqp_option. |
|
2802 (show_fsqp_option): New function. |
|
2803 (Ffsqp_options): Handle single arg. |
|
2804 * f-lpsolve.cc (set_lpsolve_option): Rename from do_lpsolve_option. |
|
2805 (show_lpsolve_option): New function. |
|
2806 (Flpsolve_options): Handle single arg. |
|
2807 * f-lsode.cc (set_lsode_option): Rename from do_lsode_option. |
|
2808 (show_lsode_option): New function. |
|
2809 (Flsode_options): Handle single arg. |
|
2810 * f-npsol.cc (set_npsol_option): Rename from do_npsol_option. |
|
2811 (show_npsol_option): New function. |
|
2812 (Fnpsol_options): Handle single arg. |
|
2813 * f-qpsol.cc (set_qpsol_option): Rename from do_qpsol_option. |
|
2814 (show_qpsol_option): New function. |
|
2815 (Fqpsol_options): Handle single arg. |
|
2816 * f-quad.cc: (set_quad_option): Rename from do_quad_option. |
|
2817 (show_quad_option): New function. |
|
2818 (Fquad_options): Handle single arg. |
|
2819 (Fquad): Doc fix. |
|
2820 |
|
2821 Tue Aug 22 00:38:05 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2822 |
|
2823 * tree-plot.cc (do_external_plotter_cd): New function. |
|
2824 * dirfns.cc (octave_change_to_directory): New function. If cd is |
|
2825 successful, also call do_external_plotter_cd(). |
|
2826 (Fcd): Call octave_change_to_directory(), not change_to_directory(). |
|
2827 |
|
2828 * pr-output.cc (pr_any_float): Change declaration of counter to |
|
2829 size_t to avoid gcc warnings. |
|
2830 |
|
2831 * idx-vector.cc, octave-hist.cc, tree-const.cc, tree-expr.cc, |
|
2832 tree-misc.cc, utils.cc, xpow.cc, Map.cc: |
|
2833 Update for change in for loop variable scope for gcc 2.7.0. |
|
2834 |
|
2835 Mon Aug 21 19:34:53 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2836 |
|
2837 * tree-const.cc (fortran_style_matrix_assignment): Properly handle |
|
2838 case of complex LHS, real RHS. |
|
2839 |
|
2840 * Makefile.in: Only include dependency files if $(omit_deps) is |
|
2841 not set. |
|
2842 |
|
2843 Wed Jul 5 00:03:58 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2844 |
|
2845 * sysdep.cc: Explicitly include string.h. |
|
2846 |
|
2847 Sun Jun 25 00:18:10 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
2848 |
|
2849 * load-save.cc (too_large_for_float (const Matrix&)): |
|
2850 Extract elements as doubles, not Complex. |
|
2851 |
|
2852 Sat Jun 24 22:59:15 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
2853 |
|
2854 * pr-output.cc (any_element_is_inf_or_nan): Declare extern, not static. |
|
2855 * f-svd.cc (Fsvd): Call here to avoid trying to take SVD of matrix |
|
2856 containing Inf or NaN values. |
|
2857 |
|
2858 * pr-output.cc (bit_format): New file-scope variable. |
|
2859 (set_format, pr_any_float): Handle bit_format. |
|
2860 (octave_print_internal): Handle bit_format like bank_format. |
|
2861 (init_format_state): Initialize bit_format. |
|
2862 (set_format_style): Allow `format bit' and `format native-bit'. |
|
2863 |
|
2864 Thu Jun 8 15:20:26 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
2865 |
|
2866 * mappers.cc (arg, imag, signum): If arg is NaN, return NaN. |
|
2867 |
|
2868 Mon May 15 14:47:04 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
2869 |
|
2870 * pager.cc (Fdiary): Initialize diary_file here, not in the |
|
2871 file-scope declaration. |
|
2872 |
|
2873 * tree-expr.cc (tree_index_expression::eval): |
|
2874 Handle nargin == 0 the same as other cases. |
|
2875 |
|
2876 Tue May 2 10:02:23 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
2877 |
|
2878 * load-save.cc (do_double_format_conversion): Add missing breaks. |
|
2879 (do_float_format_conversion): Likewise. |
|
2880 |
|
2881 Mon May 1 13:50:24 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
2882 |
|
2883 * Makefile.in (OCTAVE_LIBS): Add @LIBPLPLOT@ to the list. |
|
2884 |
|
2885 * timefns.cc (Ftime): Handle GETTIMEOFDAY_NO_TZ. |
|
2886 |
|
2887 * Makefile.in (SOURCES): Delete tc-rep.cc, tc-rep-ass.cc, and |
|
2888 tc-rep-idx.cc from the list. |
|
2889 |
|
2890 * tree-const.h: Add #pragma interface. |
|
2891 * tree-const.cc: Add contents of tc-rep.cc, tc-rep-ass.cc, and |
|
2892 tc-idx.cc to this file. Add #pragma implementation. This makes |
|
2893 tree-const.cc large, but makes the final binary smaller. |
|
2894 |
|
2895 * unwind-prot.h unwind-prot.cc token.cc token.h procstream.cc |
|
2896 procstream.h idx-vector.cc idx-vector.h symtab.cc symtab.h |
|
2897 oct-map.cc oct-map.h oct-obj.cc oct-obj.h tree-plot.h tree-plot.cc |
|
2898 tree-misc.cc tree-misc.h tree-expr.cc tree-expr.h tree-cmd.cc |
|
2899 tree-cmd.h tree-base.cc tree-base.h: |
|
2900 Add #pragma interface/implementation. |
|
2901 |
|
2902 * Makefile.in (OCTAVE_LIBS): Delete @LIBINFO@ from list. |
|
2903 * help.cc: Don't include info headers or extern declarations for |
|
2904 functions from info. |
|
2905 (try_info): Call info as a subprocess. Delete second arg. |
|
2906 Handle SIGINT here, not in help_from_info(). |
|
2907 (help_from_info): Complain if info doesn't work. |
|
2908 |
|
2909 * defun-dld.h (DEFUN_DLD_BUILTIN) [OCTAVE_LITE && MAKE_BUILTINS]: |
|
2910 If ! WITH_DLD, simply emit a character string constant. |
|
2911 |
|
2912 Fri Apr 28 15:23:06 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
2913 |
|
2914 * lex.l ({IDENT}{S}*): Don't delete tok. That's handled by |
|
2915 strip_trailing_whitespace() now. |
|
2916 (<HELP_FCN>[^ \t\n]*{S}*|<TEXT_FCN>[^ \t\n\;\,]*{S}*): Ditto. |
|
2917 |
|
2918 * pathsearch.h: Include kpathsea/progname.h. |
|
2919 * octave.cc (initialize_globals): Call kpse_set_progname(). |
|
2920 |
|
2921 * token.h: Declare copy constructor and operator = private. |
|
2922 * token.cc: Abort if copy constructor or operator = is used. |
|
2923 |
|
2924 Thu Apr 27 13:54:39 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
2925 |
|
2926 * tree-expr.cc (lookup_map_element): Don't list default argument |
|
2927 values here too. |
|
2928 |
|
2929 * pr-output.cc (hex_format): New file-scope variable. |
|
2930 (set_format, pr_any_float): Handle hex_format. |
|
2931 (octave_print_internal): Handle hex_format like bank_format. |
|
2932 (init_format_state): Initialize hex_format. |
|
2933 (set_format_style): Allow `format hex' and `format native-hex'. |
|
2934 |
|
2935 * variables.cc (bind_ans): Create ans_id each time with new and |
|
2936 ask tree_simple_assignment_expression to handle cleaning it up. |
|
2937 This apparently plugs a memory leak. |
|
2938 |
|
2939 * help.cc (Ftype): Don't try to print map constants. Handle |
|
2940 references to structure members. |
|
2941 |
|
2942 Wed Apr 26 12:40:59 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
2943 |
|
2944 * input.cc (generate_struct_completions): New function. |
|
2945 (generate_possible_completions): Likewise. |
|
2946 (looks_like_struct): Likewise. |
|
2947 (command_generator): Handle completion of struct variables. |
|
2948 |
|
2949 * tree-expr.h, tree-expr.cc (tree_fvc::lookup_map_element): |
|
2950 Add insert and silent args. |
|
2951 |
|
2952 * oct-map.cc: New file. |
|
2953 * Makefile.in (SOURCES): Add it to the list. |
|
2954 |
|
2955 Mon Apr 24 09:41:02 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
2956 |
|
2957 * variables.cc (Fexist): Handle structure references too. |
|
2958 |
|
2959 * tree-const.cc (lookup_map_element (const char*, int, int): |
|
2960 New function. |
|
2961 (lookup_map_element (SLList<char*>&, int, int): New arg, silent. |
|
2962 * tc-rep.cc (lookup_map_element): New arg, silent. If nonzero, |
|
2963 don't call error(). |
|
2964 |
|
2965 * tc-rep.h (is_empty): Define here. |
|
2966 * tree-const.h (is_empty): Hand off to TC_REP::is_empty(). |
|
2967 |
|
2968 * data.cc (Fstruct_contains): Call lookup_map_element on args(0) |
|
2969 instead of extracting the map and calling contains() on it. |
|
2970 |
|
2971 * parse.y (EPLUS, EMINUS): New tokens. |
|
2972 (simple_expr): Handle EPLUS, EMINUS the same as `+' and `-'. |
|
2973 * lex.l (".+", ".-"): New patterns. Match these separately to |
|
2974 disallow using them as unary operators. |
|
2975 |
|
2976 * lex.l (next_token_is_bin_op): Simplify by noting that spacing |
|
2977 only matters for those tokens that can also be unary ops. |
|
2978 |
|
2979 Fri Apr 21 14:34:45 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
2980 |
|
2981 * load-save.cc (read_ascii_data): Allow reading of empty |
|
2982 matrices. |
|
2983 |
|
2984 * tc-rep-ass.cc (vector_assignment): Only assert that we are not |
|
2985 doing fortran-style indexing and that nr <= 1 || nc <= 1. |
|
2986 (do_vector_assign): Handle assignment of [] when one dimension is |
|
2987 zero and the other is anything. |
|
2988 |
|
2989 Thu Apr 20 13:56:21 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
2990 |
|
2991 * tc-rep-ass.cc (delete_rows, delete_columns): Simply return if |
|
2992 num_to_delete is 0. |
|
2993 |
|
2994 * lex.l (handle_identifier): Don't match plot option keywords |
|
2995 inside parentheses or braces. |
|
2996 |
|
2997 * variables.cc (parse_fcn_file): Also delete tmp_help_txt if |
|
2998 running a script. |
|
2999 |
|
3000 * tree-cmd.h (tree_command): Add destructor. |
|
3001 |
|
3002 * tree-expr.h tree_simple_assignment_expression (lhs_idx_expr): |
|
3003 Hang on to idx_expr, not just its parts so it can be deleted. |
|
3004 (init): Initialize it. |
|
3005 * tree-expr.cc (~tree_simple_assignment_expression): Delete it. |
|
3006 |
|
3007 * tree-expr.h (tree_multi_val_ret, tree_oct_obj, tree_fvc, |
|
3008 tree_identifier, tree_builtin, tree_function): Add destructors. |
|
3009 * tree-expr.cc (tree_function::~tree_function): Delete some stuff. |
|
3010 |
|
3011 * tree-misc.h (tree_va_return_list): Add destructor. |
|
3012 |
|
3013 * octave.cc (__builtin_new, __builtin_delete): Provide our own, |
|
3014 for debugging. |
|
3015 |
|
3016 * utils.cc (strconcat): Don't depend on the return value from |
|
3017 strcat. |
|
3018 (file_in_path): Simplify logic. |
|
3019 |
|
3020 * parse.y (maybe_convert_to_ans_assign): Create ans_id each time |
|
3021 with new and ask tree_simple_assignment_expression to handle |
|
3022 cleaning it up. This apparently plugs a memory leak. |
|
3023 |
|
3024 * lex.l (strip_trailing_whitespace): Declare retval static. |
|
3025 Delete it before saving next string. |
|
3026 |
|
3027 * error.cc (Ferror): Do call error() for empty string args. |
|
3028 (error_1): Don't print anything if fmt is "" or "\n", but do set |
|
3029 the error state appropriately. |
|
3030 |
|
3031 * tree-cmd.cc (tree_unwind_protect::eval): Handle return and break |
|
3032 in the `try' part of the statement. |
|
3033 |
|
3034 Mon Apr 10 19:29:44 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3035 |
|
3036 * f-expm.cc, f-givens.cc, f-qzval.cc, f-syl.cc, f-rand.cc: |
|
3037 Where appropriate, declare Fortran functions to take reference |
|
3038 instead of pointer args. Change callers. |
|
3039 |
|
3040 * mappers.cc: Declare Fortran functions to take reference instead |
|
3041 of pointer args. Change callers. |
|
3042 |
|
3043 * gamma.c, lgamma.c, erfc.c, erf.c, atanh.c, asinh.c, acosh.c: |
|
3044 Declare Fortran functions to take reference instead of pointer |
|
3045 args. |
|
3046 |
|
3047 Sun Apr 9 19:38:53 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3048 |
|
3049 * file-io.cc (Fpopen, Fpclose, Fexecute, Fsync_system, |
|
3050 Fasync_system, Fwaitpid, Fmkfifo, Funlink): New functions. |
|
3051 |
|
3052 * sighandlers.cc (sigchld_handler): New function. |
|
3053 (install_signal_handlers): Add call to install |
|
3054 sigchld_handler. (This is #if 0'd out, waiting for code to help |
|
3055 determine which child exited and what to do about it). |
|
3056 |
|
3057 * tree-expr.h (tree_oct_obj): New class. |
|
3058 |
|
3059 * tree-expr.h (tree_multi_assignment_expression::preserve): New |
|
3060 data member. Add arg with default value to constructors. Change |
|
3061 callers as necessary. |
|
3062 * tree-expr.cc (~tree_multi_assignment_expression): Conditionally |
|
3063 delete lhs. |
|
3064 |
|
3065 * parse.y (make_multi_val_ret): Pass matrix instead of getting it |
|
3066 from the global matrix list. |
|
3067 (expression): Extract matrix from matrix list before calling |
|
3068 make_multi_val_ret(). |
|
3069 |
|
3070 * parse.y (command): Handle new for loop syntax for structures. |
|
3071 |
|
3072 * tree-plot.h (subplot_list): Include tree_print_code() in |
|
3073 initializer lists for constructors. |
|
3074 * tree-expr.h (tree_statement_list, tree_argument_list, |
|
3075 tree_parameter_list, tree_return_list, tree_global_init_list, |
|
3076 tree_if_command_list, ): Likewise. |
|
3077 |
|
3078 * tree-cmd.h (tree_for_command::id_list): New data member. |
|
3079 (tree_for_command (tree_return_list*, tree_expression*, |
|
3080 tree_statement_list*, int, int)): Likewise. |
|
3081 * tree-cmd.cc (tree_for_command::eval): Handle for loops with |
|
3082 structures. |
|
3083 (do_for_loop_once (tree_return_list*, Octave_object&, int&)): |
|
3084 New form for handling for loops with structures. |
|
3085 |
|
3086 * sysdep.cc (octave_ieee_init): Determine floating point format |
|
3087 here. |
|
3088 (native_float_format): New global variable. |
|
3089 (Fisieee): Compute return value from native_float_format, not by |
|
3090 using preprocessor macros. |
|
3091 * sysdep.h (enum floating_point_format): Move declaration here. |
|
3092 * load-save.cc: From here. |
|
3093 Always define all floating point format conversion routines. |
|
3094 (do_double_format_conversion, do_float_format_conversion): |
|
3095 Use native_float_format instead of preprocessor macros. |
|
3096 |
|
3097 Sat Apr 8 15:41:35 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3098 |
|
3099 * Makefile (TEMPLATE_SRC): New variable. |
|
3100 (DISTFILES): Add $(TEMPLATE_SRC). |
|
3101 (SOURCES): Delete Map.cc and SLStack.cc from here. |
|
3102 |
|
3103 * variables.cc (install_builtin_variables): Use OCTAVE_VERSION |
|
3104 instead of version_string to initialize OCTAVE_VERSION. |
|
3105 * version.h (version_string): Delete. |
|
3106 |
|
3107 * getopt.c (_getopt_internal): Initialize indfound to avoid warning. |
|
3108 |
|
3109 Fri Apr 7 15:29:41 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3110 |
|
3111 * tc-inlines.h (REP_RHS_MATRIX): Just check to see if tc is real |
|
3112 or complex. If conversion fails, return. |
|
3113 |
|
3114 Thu Apr 6 00:10:47 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3115 |
|
3116 * data.cc (Fstruct_contains): New function. |
|
3117 |
|
3118 * tc-rep.cc (print_code): Add extra parens around while condition |
|
3119 to avoid warning. |
|
3120 * utils.cc (undo_string_escapes): Likewise. |
|
3121 * input.cc (decode_prompt_string): Likewise. Also rewrite if |
|
3122 statement to avoid warning. |
|
3123 |
|
3124 Tue Apr 4 22:54:17 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3125 |
|
3126 * tree-expr.cc (tree_multi_assignment_expression::eval, |
|
3127 tree_simple_assignment_expression::eval): Call print_constant |
|
3128 even if user_pref.print_answer_id_name is false. |
|
3129 |
|
3130 Mon Apr 3 17:57:14 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3131 |
|
3132 * tc-inlines.h (TC_REP): Avoid redefinition. |
|
3133 |
|
3134 * tree-const.h (do_binary_op, do_unary_op): Declare as friends of |
|
3135 tree_constant class too. |
|
3136 |
|
3137 * tree-plot.h (subplot_using::have_values): Delete data member. |
|
3138 * tree-plot.cc (subplot_using::eval): Always recompute values. |
|
3139 |
|
3140 Fri Mar 31 10:18:32 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3141 |
|
3142 * tc-rep.cc (print): Print open brace for structures here. |
|
3143 * tree-expr.cc (print_constant): Not here. |
|
3144 |
|
3145 * symtab.cc (define): Don't delete arg if sv_fcn fails. |
|
3146 |
|
3147 * tree-const.cc (print): New function. Create ostrstream buffer |
|
3148 and pass it to rep->print(). |
|
3149 * tree-const.h (eval (int)): Call print(), not rep->print(). |
|
3150 * tc-rep.cc (structure_indent_level): New file-scope variable. |
|
3151 (print): New arg, output_buf, is stream to print to. |
|
3152 Print values of structure elements too. |
|
3153 |
|
3154 * user-prefs.h (user_preferences): New field, struct_levels_to_print. |
|
3155 * user-prefs.cc (struct_levels_to_print): New function. |
|
3156 * variables.cc (install_builtin_variables): Add DEFVAR for new |
|
3157 variable struct_levels_to_print. |
|
3158 |
|
3159 * tree-const.cc (print_as_scalar, print_as_structure): Move here |
|
3160 from tree-expr.cc and make extern. |
|
3161 |
|
3162 * tree-expr.cc (print_as_structure): New function. |
|
3163 (print_constant): Use it. |
|
3164 |
|
3165 * tree-expr.cc (print_constant): New arg, print_padding. |
|
3166 (tree_simple_assignment_expression::eval): Use print_constant |
|
3167 instead of duplicating code here. |
|
3168 (tree_multi_assignment_expression::eval): Likewise. |
|
3169 |
|
3170 Thu Mar 30 13:24:11 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3171 |
|
3172 * Makefile.in (SOURCES): Add resource.cc. |
|
3173 * resource.cc: New file, extracted from timefns.cc. |
|
3174 (Fgetrusage): New function. |
|
3175 * timefns.cc (cputime): Delete (now implemented in a function file |
|
3176 using new getrusage function). |
|
3177 |
|
3178 Wed Mar 29 22:52:42 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3179 |
|
3180 * Makefile.in (SOURCES): Add strftime.c. |
|
3181 * strftime.c: New file, from sh-utils distribution. |
|
3182 |
|
3183 * timefns.cc (mk_tm_map, extract_tm, Ftime, Fgmtime, Flocaltime, |
|
3184 Fmktime, Fstrftime): New basic time functions. |
|
3185 (Fclock, Fdate): Delete (now implemented in function files using new |
|
3186 time functions). |
|
3187 |
|
3188 Tue Mar 28 17:51:51 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3189 |
|
3190 * file-io.cc (return_valid_file, do_printf, do_scanf, |
|
3191 fclose_internal, feof_internal, ferror_internal, fflush_internal, |
|
3192 fgets_internal, fopen_internal, fread_internal, freport_internal, |
|
3193 frewind_internal, fseek_internal, ftell_internal, |
|
3194 fwrite_internal): Declare static. |
|
3195 * file-io.h: Delete extern declarations for them. |
|
3196 |
|
3197 Fri Mar 24 09:52:50 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3198 |
|
3199 * pr-output.cc (pr_col_num_header): New function. |
|
3200 (compact_format): New file-scope variable. |
|
3201 (set_format_style): Handle loose and compact formats. |
|
3202 (octave_print_internal (ostream&, const ComplexMatrix&, int)): |
|
3203 Replace duplicate code with call to pr_col_num_header(). |
|
3204 (octave_print_internal (ostream&, const Matrix&, int): Likewise. |
|
3205 (octave_print_internal (ostream&, const Range&, int): Likewise. |
|
3206 |
|
3207 Tue Mar 21 08:44:48 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3208 |
|
3209 * mappers.cc (xgamma): Always use Slatec library function. |
|
3210 * (xlgamma): Likewise. |
|
3211 * Makefile.in (SOURCES): Don't include lgamma.c. |
|
3212 |
|
3213 Fri Mar 17 22:38:39 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3214 |
|
3215 * tc-rep.cc (TC_REP::new): Don't try to keep track of newlist_tail. |
|
3216 Explicitly initialize newlist to zero. |
|
3217 * tree-const.cc (tree_constant::operator new): Likewise. |
|
3218 |
|
3219 Fri Mar 10 12:40:24 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3220 |
|
3221 * tree-cmd.cc (quit_loop_now): Declare inline. |
|
3222 (tree_for_command::do_for_loop_once): Split into two versions, one |
|
3223 for the general case and one for when the loop variable is a |
|
3224 simple identifier. |
|
3225 (DO_LOOP): New macro. Move tests outside of loop. |
|
3226 (tree_for_command::eval): Speed up by checking to see if loop |
|
3227 variable is a simple identifier and by using DO_LOOP. |
|
3228 |
|
3229 * tree-const.h: New union of rep and freeptr. The freeptr element |
|
3230 is used for our custom memory management functions. |
|
3231 |
|
3232 * tc-rep.h: Add freeptr element to anonymous union (for our custom |
|
3233 memory management functions). |
|
3234 |
|
3235 * tree-const.cc (newlist, newlist_grow_size, newlist_tail): New |
|
3236 static variables. |
|
3237 (tree_constant::operator new): Always define to allow more |
|
3238 efficient allocation of single tree_constants. |
|
3239 (tree_constant::operator delete): Likewise, handle deletion of the |
|
3240 memory we allocate. |
|
3241 |
|
3242 * tc-rep.cc (newlist, newlist_grow_size, newlist_tail): New static |
|
3243 variables. |
|
3244 (tree_constant::operator new): Always define to allow more |
|
3245 efficient allocation of single tree_constants. |
|
3246 (tree_constant::operator delete): Likewise, handle deletion of the |
|
3247 memory we allocate. |
|
3248 |
|
3249 Fri Mar 3 14:00:08 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3250 |
|
3251 * error.cc (verror): Terminate output_buf with ends. |
|
3252 |
|
3253 * statdefs.h: Use C-style comment in first line instead of |
|
3254 C++-style comment. |
|
3255 |
|
3256 Mon Feb 27 10:11:18 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3257 |
|
3258 * parse.y (maybe_convert_to_ans_assign): Only lookup ans once. |
|
3259 * variables.cc (bind_ans): New function. |
|
3260 * tree-expr.cc (tree_identifier::eval (int)): Use it here. |
|
3261 (tree_identifier::eval (int, int, const Octave_object&): And here. |
|
3262 |
|
3263 * tree-expr.cc (install_nargin_and_nargout): New function. |
|
3264 * tree-expr.h (tree_function::tree_function (tree_statement_list *, |
|
3265 symbol_table *, int, int)): Call it. |
|
3266 |
|
3267 * tree-expr.cc (tree_function::bind_nargin_and_nargout): New function. |
|
3268 (tree_function::eval): Call it insead of the one from variables.cc. |
|
3269 |
|
3270 * variables.cc (bind_nargin_and_nargout): #if 0 out. |
|
3271 |
|
3272 Sun Feb 26 00:17:06 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3273 |
|
3274 * load-save.cc (Fload, Fsave): Free fname returned by tilde_expand(). |
|
3275 * dirfns.cc (Fls): Likewise. |
|
3276 |
|
3277 * tree-expr.cc (tree_multi_assignment_expression::eval (int, int, |
|
3278 const Octave_object&)): Call tree_return_list::operator () (Pix) |
|
3279 explicitly. |
|
3280 |
|
3281 * octave.cc (initialize_globals): Put TEXMF in the environment for |
|
3282 kpthsea. |
|
3283 |
|
3284 * Makefile.in (OCTAVE_LIBS): Use @LIBINFO@ and @LIBREADLINE@, |
|
3285 substituted by configure. Use kpathsea.a, not libkpathsea, so we |
|
3286 don't have to modify the kpathsea Makefile. |
|
3287 |
|
3288 Sat Feb 25 18:59:26 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3289 |
|
3290 * pathsearch.cc: New file. |
|
3291 * pathsearch.h: New file. |
|
3292 * Makefile.in (INCLUDES): Include it in the list. |
|
3293 * dynamic-ld.cc, help.cc, utils.cc: Use it instead of repeating |
|
3294 identical code multiple times. |
|
3295 |
|
3296 * variables.cc (install_builtin_variables): Only DEFVAR |
|
3297 suppress_verbose_help_message if USE_GNU_INFO. |
|
3298 |
|
3299 * help.cc (Fhelp): Only handle -i if USE_GNU_INFO. |
|
3300 (additional_help_message): Only print message if USE_GNU_INFO. |
|
3301 (builtin_help): New function. |
|
3302 (help_from_info): New function. Print warning if not USE_GNU_INFO. |
|
3303 |
|
3304 See ChangeLog.1 in the top level directory for earlier changes. |