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