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