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