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