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