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