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