3162
|
1 Wed Apr 8 01:00:58 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2 |
|
3 * parse.y (Vwarn_future_time_stamp): New variable. |
|
4 (symbols_of_parse): Add DEFVAR for it. |
|
5 (warn_future_time_stamp): New function. |
|
6 (frob_function_def): Maybe warn about files with future time stamps. |
|
7 |
|
8 Thu Apr 2 20:43:45 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
9 |
|
10 * pt-arg-list.cc (tree_argument_list::convert_to_const_vector): In |
|
11 error messages, print element numbers starting with 1, not 0. |
|
12 |
|
13 Sat Mar 28 15:25:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
14 |
|
15 * toplev.cc (clean_up_for_exit): New function. |
|
16 (clean_up_and_exit): Use it. |
|
17 * sighandlers.cc (my_friendly_exit): Call it instead of |
|
18 clean_up_and_exit, then do default action for signal. |
|
19 |
|
20 * sighandlers.cc (octave_new_handler): Call my_friendly_exit with |
|
21 signal set to SIGABRT if it is defined, or -1 otherwise. |
|
22 |
|
23 * error.cc (verror): Fix thinko in attempt to skip `error: ' tag |
|
24 when buffering error messages. |
|
25 * pt-except.cc (tree_try_catch::eval): Reset buffer_error_messages |
|
26 here if just discarding unwind_protect frame. |
|
27 |
|
28 Wed Mar 18 12:35:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
29 |
|
30 * xpow.cc (elem_xpow): For real-scalar .^ matrix case, result is |
|
31 complex only if real-scalar is negative and matrix has some |
|
32 non-integer values. |
|
33 |
|
34 Tue Mar 17 17:47:50 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
35 |
|
36 * pt-plot.cc (Vgnuplot_command_plot, Vgnuplot_command_replot, |
|
37 Vgnuplot_command_splot, Vgnuplot_command_using, |
|
38 Vgnuplot_command_with, Vgnuplot_command_title, |
|
39 Vgnuplot_command_end): New static variables. |
|
40 (symbols_of_pt_plot): DEFVAR them. |
|
41 (gnuplot_command_plot, gnuplot_command_replot, |
|
42 gnuplot_command_splot, gnuplot_command_using, |
|
43 gnuplot_command_with, gnuplot_command_title, |
|
44 gnuplot_command_end): New functions. |
|
45 (open_plot_stream, send_to_plot_stream, tree_plot_command::eval, |
|
46 subplot_using::print, subplot_style::print, subplot::print, |
|
47 do_external_plotter_cd, Fgset, Fgshow): Use them instead of the |
|
48 GPLOT_CMD_PLOT, GPLOT_CMD_REPLOT, GPLOT_CMD_SPLOT, |
|
49 GPLOT_CMD_USING, GPLOT_CMD_WITH, GPLOT_CMD_TITLE, and |
|
50 GPLOT_CMD_END macros. |
|
51 |
3160
|
52 Fri Feb 27 12:25:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
53 |
|
54 * help.cc (additional_help_message): Fix www address. |
|
55 |
|
56 Tue Feb 24 00:42:59 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
57 |
|
58 * help.cc (simple_help): Put additional help message first. |
|
59 (additional_help_message): Add information about web site and |
|
60 mailing list. |
|
61 |
3156
|
62 Fri Feb 20 00:41:06 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
63 |
|
64 * pt-plot.cc (GPLOT_CMD_REPLOT): Clear before replot. |
|
65 |
|
66 * Makefile.in: Better handling of lib flags for linking. |
|
67 |
|
68 Thu Feb 19 21:14:30 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
69 |
|
70 * pt-decl.cc (Vinitialize_global_values): New static variable. |
|
71 (initialize_global_variables): New function. |
|
72 (symbols_of_pt_decl): New function. |
|
73 DEFVAR Vinitialize_global_values and initialize_global_variables. |
|
74 (tree_global_command::do_init): If initialize_global_variables is |
|
75 not true and the variable doesn't have an explicit initializer, don't |
|
76 initialize it. If we are giving it a default value, use the value |
|
77 of the variable defualt_global_variable_value. |
|
78 * octave.cc (maximum_braindamage): Set default_global_variable_value |
|
79 and initialize_global_variables to Matlab-compatible values. |
|
80 |
|
81 Wed Feb 18 04:35:31 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
82 |
|
83 * DLD-FUNCTIONS/besselj.cc: Rename from bessel.cc. |
|
84 * Makefile.in (DLD_XSRC): Likewise. |
|
85 |
|
86 * syscalls.cc (Fvfork): Delete. |
|
87 |
|
88 * oct-procbuf.cc: Just use fork. |
|
89 |
|
90 * parse.y (feval): Provide version that takes function name |
|
91 separate from other args. |
|
92 * parse.h: Declare it. |
|
93 |
|
94 * oct-procbuf.cc (octave_procbuf::open): Move declaration of |
|
95 child_std_end outside of child scope and declare volatile. |
|
96 |
|
97 Mon Feb 16 15:04:28 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
98 |
|
99 * parse.y: Include cstdio, for SEEK_SET. |
|
100 |
3153
|
101 Thu Feb 12 22:07:00 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
102 |
|
103 * system.c: New file. |
|
104 * Makefile.in (SOURCES): Add it to the list. |
|
105 |
3148
|
106 Fri Feb 6 01:23:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
107 |
|
108 * oct-stream.cc (octave_base_stream::file_number): Rename from fileno. |
|
109 Change all uses. |
|
110 |
|
111 * fsolve.cc (fsolve_option_table): Add missing & to function names. |
|
112 |
3145
|
113 Thu Feb 5 02:27:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
114 |
3147
|
115 * dirfns.cc (Fls): If first attempt at reading process output |
|
116 fails, sleep once and try again. |
|
117 * toplev.cc (run_command_and_return_output): Likewise. |
|
118 |
|
119 * oct-procbuf.cc (octave_procbuf::open): Use vfork if it is available. |
|
120 |
|
121 * syscalls.cc (Fvfork): New function. |
|
122 |
3145
|
123 * ov-bool-mat.cc: Only declare assign function if |
|
124 CXX_NEW_FRIEND_TEMPLATE_DECL is not defined. |
|
125 |
|
126 * ov-base.h, ov-bool-mat.h, ov-bool.h, ov-ch-mat.h, ov-complex.h, |
|
127 ov-cx-mat.h, ov-range.h, ov-re-mat.h, ov-scalar.h: Handle default |
|
128 args for *_value functions consistently. |
|
129 |
|
130 * symtab.cc (maybe_list_cmp_fcn): Declare args as void*, not |
|
131 void**, then use X_CAST. |
|
132 |
|
133 * OPERATORS/op-s-cm.cc: Include mx-cm-s.h. |
|
134 |
|
135 * defun-int.h: Include ov-builtin.h, ov-mapper.h, and symtab.h. |
|
136 (install_builtin_mapper, install_builtin_function, |
|
137 install_builtin_variable) Use specific types rather than void * in |
|
138 declaration. |
|
139 * defun.cc (install_builtin_mapper, install_builtin_function, |
|
140 install_builtin_variable): Likewise. Eliminate casts. |
|
141 |
|
142 * load-save.cc (read_binary_data, read_mat_file_header, |
|
143 save_binary_data): Use X_CAST, not static_cast. |
|
144 * unwind-prot.h (unwind_protect::save_ptr): Likewise. |
|
145 * Map.cc (goodCHptr, index_to_CHptr, CHptr_to_index): Likewise. |
|
146 * dynamic-ld.cc (octave_dlopen_dynamic_loder::resolve_reference): |
|
147 Likewise. |
|
148 |
|
149 * pt-mat.cc (tm_const::operator bool ()): |
|
150 (tm_row_const::operator bool ()): Likewise. |
|
151 * oct-stream.cc (printf_value_cache::operator bool ()): Likewise. |
|
152 (scanf_format_list::operator bool ()): Likewise. |
|
153 (printf_format_list::operator bool ()): Likewise. |
|
154 (octave_stream::operator bool ()): Likewise. |
|
155 |
|
156 Wed Feb 4 13:08:29 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
157 |
|
158 * DLD-FUNCTIONS/minmax.cc: Include cmath, not oct-math.h. |
|
159 |
|
160 * syscalls.cc (Fdup2): Convert stream to actual system file id. |
|
161 |
|
162 * oct-stream.cc (octave_base_stream::fileno, octave_stream::fileno): |
|
163 New functions. |
|
164 |
3141
|
165 Tue Feb 3 00:24:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
166 |
|
167 * defaults.cc (exec_path): Append Vbin_dir to std_path. |
|
168 |
|
169 * octave.cc (initialize_pathsearch): Set TEXMFDBS, not TEXMF. |
|
170 Look for OCTAVE_DB_PATH in environment. |
|
171 Simplify using Vdata_dir and Vlibexec_dir. |
|
172 |
|
173 * defaults.h.in (Vdata_dir, Vlibexecdir): Declare new vars. |
|
174 defaults.cc: Define them. |
|
175 (set_default_data_dir, set_default_libexecdir): New functions. |
|
176 (install_defaults): Call them. |
|
177 |
|
178 * defaults.h.in (OCTAVE_LIBEXECDIR): Define. |
|
179 |
|
180 Mon Feb 2 02:43:16 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
181 |
|
182 * Makefile.in (install, uninstall): Use $(octlibdir), not $(libdir). |
|
183 Use mk-libdir-link. |
|
184 |
|
185 * defaults.h.in (OCTAVE_OCTLIBDIR): Substitute value. |
|
186 (Vlib_dir): Delete declaration. |
|
187 * defaults.cc (Vlib_dir): Delete. |
|
188 (set_default_lib_dir): Delete. |
|
189 (install_defaults): Don't call set_default_lib_dir. |
|
190 (set_default_info_prog): If oct_info_prog is empty, set default to |
|
191 "info" -- we expect it to be somewhere in the user's path. |
|
192 |
|
193 * defun.h (DEFCONST, DEFCONSTX): Eliminate inst_as_fcn and chg_fcn |
|
194 args. Always pass true for inst_as_fcn and 0 for chg_fcn to |
|
195 DEFVAR when creating built-in values like `e' or `stderr' that can |
|
196 be redefined. Change all uses. |
|
197 |
|
198 * help.cc (Ftype): Handle script files too. |
|
199 (Fwhich): Likewise. |
|
200 |
3136
|
201 Sat Jan 31 00:00:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
202 |
|
203 * ov-ch-mat.cc (octave_char_matrix::is_true): Make it work. |
|
204 * ov-str-mat.h, ov-str-mat.cc (octave_char_matrix_str::is_true): |
|
205 Delete. |
|
206 |
|
207 * load-save.cc (read_ascii_data): Allow strings of length 0. |
|
208 If we don't find data on the first call, fail with error message. |
|
209 (do_load): Pass count of items read to read_ascii_data. |
|
210 Allow `load foo xyz' to work when foo contains only numbers. |
|
211 |
|
212 Fri Jan 30 23:46:42 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
213 |
|
214 * ov-str-mat.h (octave_char_matrix_str::all): Delete. |
|
215 (octave_char_matrix_str::any): Delete. |
|
216 * ov-ch-mat.h (octave_char_matrix::all, octave_char_matrix::any): |
|
217 Call charMatrix::all, charMatrix::any. |
|
218 |
|
219 Thu Jan 29 16:25:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
220 |
|
221 * load-save.cc (read_mat_binary_data): Handle third digit of MOPT |
|
222 as flag indicating row or column major ordering. |
|
223 |
3131
|
224 Wed Jan 28 00:18:17 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
225 |
|
226 * DLD-FUNCTIONS/dassl.cc (lsode_option_table): |
|
227 Add missing & to function names. |
|
228 * DLD-FUNCTIONS/lsode.cc (lsode_option_table): Likewise. |
|
229 * DLD-FUNCTIONS/quad.cc (quad_option_table): Likewise. |
|
230 |
|
231 * Makefile.in (oct-gperf.h): Add -G option to gperf. |
|
232 |
|
233 * load-save.cc (get_save_type): Add `UL' and `L' suffixes to large |
|
234 constant values. For LS_INT, use <= and >= for comparison. |
|
235 |
|
236 Mon Jan 26 13:17:59 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
237 |
|
238 * ov-usr-fcn.cc (Vmax_recursion_depth): New static variable. |
|
239 (max_recursion_depth): New fucnction |
|
240 (symbols_of_ov_usr_fcn): DEFVAR max_recursion_depth. |
|
241 (octave_user_function::do_index_op): Check Vmax_recursion_depth. |
|
242 |
3130
|
243 Thu Jan 22 13:45:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
244 |
|
245 * dynamic-ld.cc (make_dynamic_loader): Fix typo. |
|
246 |
|
247 Tue Jan 20 17:02:19 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
248 |
|
249 * variables.cc (Fexist): If local symbol is undefined, check |
|
250 global table. |
|
251 |
|
252 * pr-output.cc (pr_max_internal): Initial value for result is |
|
253 -DBL_MAX, not DBL_MIN. |
|
254 |
3125
|
255 Thu Jan 8 11:54:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
256 |
|
257 * xpow.cc (elem_xpow): If second arg of pow is complex, make sure |
|
258 first arg is also complex. |
|
259 |
|
260 * symtab.cc (symbol_table::rename): Properly insert new item at |
|
261 the front of the list to avoid losing the rest of the items. |
|
262 |
|
263 Thu Dec 11 23:30:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
264 |
|
265 * variables.cc (Fclear): Increment index to skip -x arg. |
|
266 |
3124
|
267 Tue Dec 9 02:45:35 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
268 |
|
269 * Makefile.in (INCLUDES): Don't forget Pix.h. |
|
270 |
|
271 * BaseSLList.cc: Don't include nonstandard libg++ header files. |
|
272 |
3119
|
273 Sun Nov 30 14:58:56 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
274 |
3124
|
275 * pr-output.cc: Include cmath, not oct-math. |
|
276 * sysdep.cc: Likewise. |
|
277 |
3119
|
278 * DLD-FUNCTIONS/bessel.cc: New file. |
|
279 * Makefile.in (DLD_XSRC): Add it to the list. |
|
280 |
3113
|
281 Thu Nov 27 23:28:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
282 |
|
283 * lex.l (handle_string): Constructor for string class takes |
|
284 (size_t, char) args, not (char, size_t). |
|
285 |
3111
|
286 Wed Nov 26 00:39:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
287 |
|
288 * Makefile.in (OCTAVE_LIBS): Include $(SPECIAL_MATH_LIB) just |
|
289 ahead of -lcruft. |
|
290 |
3110
|
291 Thu Nov 20 15:16:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
292 |
|
293 * octave.cc (maximum_braindamage): Bind implicit_num_to_str_ok to 1. |
|
294 * pt-mat.cc (Vimplicit_num_to_str_ok): New static variable. |
|
295 (implicit_num_to_str_ok): New function. |
|
296 (symbols_of_pt_mat): DEFVAR implicit_num_to_str_ok. |
|
297 (tm_row_const::some_str): New data member. |
|
298 (tm_row_const::some_strings_p): New function. |
|
299 (tm_row_const::init): Set some_str. |
|
300 (tm_const::some_str): New data member. |
|
301 (tm_const::some_strings_p): New function. |
|
302 (tm_const::init): Set some_str. |
|
303 (tree_matrix::eval): If Vimplicit_num_to_str_ok is true and some |
|
304 of the elements are strings, force a string conversion before |
|
305 returning. |
|
306 |
|
307 * parse.y (fold, finish_colon_expression, finish_matrix): |
|
308 If an error occurs, return the original expression. |
|
309 Use unwind_protect to restore error_state. |
|
310 |
|
311 * ov-ch-mat.h (octave_char_matrix::convert_to_str): Result is |
|
312 char_matrix_str, not just char_matrix. |
|
313 |
3107
|
314 Wed Nov 19 02:05:40 1997 Mumit Khan <khan@dhaka.xraylith.wisc.edu> |
|
315 |
|
316 * DLD-FUNCTIONS/filter.cc: Don't include extern template decls if |
3109
|
317 CXX_NEW_FRIEND_TEMPLATE_DECL is defined. |
3107
|
318 * ov-cx-mat.cc: Likewise. |
|
319 * ov-re-mat.cc: Likewise. |
|
320 * ov-str-mat.cc: Likewise. |
|
321 |
|
322 * ov-cx-mat.h (octave_complex_matrix::decrement, |
|
323 octave_complex_matrix): Use explicit Complex constructor. |
|
324 |
|
325 Wed Nov 19 00:08:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
326 |
|
327 * pt-decl.cc (tree_global_command::do_init): Initialize global |
|
328 values to `[]'. Only perform explicit initialization once. |
|
329 |
3103
|
330 Tue Nov 18 04:27:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
331 |
3105
|
332 * pr-output.cc (Vfixed_point_format): New variable. |
|
333 (fixed_point_format): New fucntion. |
|
334 (symbols_of_pr_output): Add DEFVAR for fixed_point_format. |
|
335 (set_real_matrix_format): Handle fixed point format |
|
336 (set_complex_matrix_format): Handle fixed point format |
|
337 (set_format): New arg, scale in Matrix, ComplexMatrix, Range versions. |
|
338 (pr_scale_header): New function. |
|
339 (octave_print_internal): Handle fixed point format in Matrix, |
|
340 ComplexMatrix, and Range versions. |
|
341 * octave.cc (maximum_braindamage): Set fixed_point_format to 1.0. |
|
342 |
3103
|
343 * utils.cc (do_string_escapes): Move here, from lex.l. |
|
344 Arg is now const string& instead of char*. |
|
345 Return new string object instead of modifying arg in place. |
|
346 (Fdo_string_escapes): New function. |
|
347 * lex.l (handle_string): Use new version of do_string_escapes. |
3105
|
348 |
|
349 * lex.l (Vbackslash_escapes): Delete. |
|
350 (backslash_escapes): Delete. |
|
351 (do_string_escapes): Undo previous change. |
|
352 (eat_whitespace, eat_continuation): Undo previous change. |
|
353 (handle_string): Undo previous change. |
|
354 (symbols_of_lex): Undo previous change. |
|
355 * octave.cc (maximum_braindamage): Undo previous change. |
3103
|
356 |
3096
|
357 Fri Nov 14 01:53:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
358 |
3100
|
359 * parse.y (eval_string (const string&, bool, int&, int)): No |
|
360 longer static. |
|
361 * parse.h: Provide declaration. |
|
362 * input.cc (get_user_input (const octave_value_list&, bool, int)): |
|
363 New arg, nargout. Pass it to eval_string. |
|
364 (keyboard): Pass nargout = 0 to get_user_input. |
|
365 (input): Pass nargout to get_user_input. |
|
366 |
3098
|
367 * input.cc (get_user_input (const octave_value_list&, bool)): |
3100
|
368 Return octave_value_list() if user enters `quit', `exit', or `return'. |
3098
|
369 If debugging, let eval_string handle the printing chores and |
|
370 reset error_state before asking for more input. |
|
371 |
|
372 * input.cc (Fkeyboard): Unconditionally turn on history here. |
|
373 |
3096
|
374 * lex.l (have_continuation, have_ellipsis_continuation): Declare |
|
375 arg as bool, not int. Change callers. |
|
376 |
|
377 * lex.l (Vbackslash_escapes): New static variable. |
|
378 (backslash_escapes): New function. |
|
379 (do_string_escapes): Return immediately if ! Vbackslash_escapes. |
|
380 (eat_whitespace, eat_continuation): Only call have_continuation if |
|
381 Vbackslash_escapes. |
|
382 (handle_string): Backslash is only special if Vbackslash_escapes. |
|
383 (symbols_of_lex): Add DEFVAR for backslash_escapes. |
|
384 * octave.cc (maximum_braindamage): Set backslash_escapes to 0. |
|
385 |
3095
|
386 Thu Nov 13 16:20:40 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
387 |
3096
|
388 * variables.cc (Fexist): Also return 2 if NAME is a regular file |
|
389 somewhere in the LOADPATH. |
|
390 |
3095
|
391 * data.cc (sumsq): Fix doc string. |
|
392 |
|
393 * parse.y (Fsource): Call parse_fcn_file, not parse_and_execute. |
|
394 |
3092
|
395 Tue Oct 7 16:51:01 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
396 |
|
397 * defun-int.h (DEFINE_FUN_INSTALLER_FUN): Set installed to true |
|
398 after installing the function. |
|
399 |
3088
|
400 Thu Sep 25 10:17:26 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
401 |
|
402 * DLD-FUNCTIONS/filter.cc (Ffilter): Return second output value |
|
403 even when called with only 3 arguments. |
|
404 |
3086
|
405 Mon Sep 22 16:44:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
406 |
|
407 * DLD-FUNCTIONS/rand.cc (do_rand): Print error if first of two |
|
408 args is a string but doesn't match "seed". |
3088
|
409 (Frand, Frandn): Fix doc string. |
3086
|
410 |
3081
|
411 Mon Aug 25 10:42:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
412 |
|
413 * input.cc (get_user_input): Return an empty string if the user |
|
414 just types RET. |
|
415 |
3079
|
416 Thu Jul 31 22:59:04 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
417 |
|
418 * lex.l <TEXT_FCN>: Ensure that we handle words that begin with |
|
419 single or double quotes as strings. |
|
420 |
3074
|
421 Thu Jul 17 13:06:48 1997 Klaus Gebhardt <gebhardt@crunch.ikp.physik.th-darmstadt.de> |
|
422 |
|
423 * DLD-FUNCTIONS/rand.cc (Frand): Use F77_XFCN to call getsd, |
|
424 setsd, setall, setcgn, dgenunf, and dgennor since they can call |
|
425 XSTOPX. |
|
426 |
3072
|
427 Mon Jul 14 12:54:23 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
428 |
|
429 * dynamic-ld.cc (octave_dynamic_loader::load_fcn_from_dot_oct_file): |
|
430 If first attempt to load function fails, prepend and underscore |
|
431 and try again. |
|
432 |
|
433 * Makefile.in (install-inc): If defaults.h, oct-conf.h, or |
|
434 oct-gperf.h don't exist in the current directory, look in $(srcdir). |
|
435 |
3068
|
436 Mon Jul 7 21:14:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
437 |
|
438 * DLD-FUNCTIONS/qr.cc (Fqr): Correctly handle nargout == 0. |
|
439 |
3067
|
440 Wed Jul 2 16:47:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
441 |
|
442 * matherr.c: New file. Move matherr function here. |
|
443 * sysdep.cc: From here. |
|
444 * Makefile.in (DIST_SRC): Add matherr.c to the list. |
|
445 |
|
446 * error.cc (handle_message): Avoid bug in g++ snapshot. |
|
447 |
3065
|
448 Thu Jun 26 22:04:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
449 |
|
450 * utils.cc (file_in_path): Add default load path to PATH arg if |
|
451 it begins or ends with a colon. |
|
452 |
3060
|
453 Wed Jun 25 13:31:06 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
454 |
|
455 * oct-lvalue.h (octave_lvalue::struct_elt_ref): Ensure val is unique. |
|
456 |
|
457 Fri Jun 20 12:33:35 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
458 |
|
459 * toplev.cc (cmd_death_handler): New function. |
|
460 (run_command_and_return_output): Insert pid of command in |
|
461 octave_child_list along with pointer to cmd_death_handler so we |
|
462 can get the exit status without having to block SIGCHLD. |
|
463 (cleanup_iprocstream): Remove pid of command from octave_child_list. |
|
464 |
3053
|
465 Sun Jun 15 16:11:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
466 |
3054
|
467 * OPERATORS/op-cs-s.cc (ldiv): Doh, v1 is complex, v2 is real. |
|
468 |
3053
|
469 * Makefile.in (DISTFILES): Add mkops to the list. |
|
470 (dist): Correctly link files in DLD-FUNCTIONS, OPERATORS, and |
|
471 TEMPLATE-INST subdirectories. |
|
472 |
3040
|
473 Fri Jun 6 04:30:57 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
474 |
3042
|
475 * DLD-FUNCTIONS/npsol.cc, DLD-FUNCTIONS/qpsol.cc, |
|
476 DLD-FUNCTIONS/fsqp.cc: Delete. |
|
477 * Makefile.in (DLD_XSRC): Remove them from the list. |
|
478 |
3040
|
479 * utils.cc (search_path_for_file): New arg, do_tilde_expansion. |
|
480 If TRUE, perform tilde expansion on path before searching. |
|
481 (file_in_path): Call search_path_for_file with do_tilde_expansion |
|
482 set to false, since we've already performed tilde expansion on the |
|
483 load path. |
|
484 |
|
485 * defaults.cc (loadpath): Perform tilde expansion here. |
|
486 |
3029
|
487 Thu Jun 5 01:42:39 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
488 |
3034
|
489 * Makefile.in: Make building of static library optional. |
3036
|
490 (liboctave.$(SHLEXT_VER)): Add $(SONAME_FLAGS) to command. |
3034
|
491 |
3033
|
492 * dynamic-ld.cc (octave_shl_load_dynamic_loader::resolve_reference): |
|
493 Call shl_findsym with type set to TYPE_UNDEFINED. |
|
494 |
3029
|
495 * Makefile.in (stamp-picdir): Delete. |
|
496 (pic): New target. Don't worry so much about creating pic |
|
497 directory only when it is really needed. |
|
498 (stamp-interp): Delete. |
|
499 (libraries): New target. Depend on shared library directly. |
|
500 |
3024
|
501 Wed Jun 4 00:09:42 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
502 |
|
503 * octave.cc (main): Call dir_path::set_program_name here. |
|
504 |
3021
|
505 Tue Jun 3 16:47:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
506 |
3022
|
507 * variables.cc (symbol_out_of_date): Make it work again. |
|
508 |
3021
|
509 * parse.y (parse_and_execute): Move here from toplev.cc |
|
510 (default_eval_print_flag): Likewise. |
|
511 (safe_fclose): Likewise. |
|
512 (eval_string): Likewise. |
|
513 (Fsource): Likewise. |
|
514 (Ffeval): Likewise. |
|
515 (feval): Likewise. |
|
516 (Feval): Likewise. |
|
517 (symbols_of_parse): Define default_eval_print_flag here instead of |
|
518 in varaibles.cc. |
|
519 (looks_like_octave_copyright): Move here from variables.cc |
|
520 (gobble_leading_whitespace): Likeiwse. |
|
521 (is_function_file): Likewise. |
|
522 (restore_input_stream): Likewise. |
|
523 (parse_fcn_file): Likewise. |
|
524 (load_fcn_from_file): Likewise. |
|
525 (get_help_from_file): Likewise. |
|
526 |
|
527 * toplev.cc (syms_of_toplev): Define argv, program_name, and |
|
528 program_invocation_name here instead of in variables.cc. |
|
529 |
|
530 * parse.h (line_editing): Move here from toplev.h. Now bool, not int. |
|
531 (reading_startup_message_printed) Likewise. |
|
532 (input_from_startup_file): Likewise. |
|
533 (input_from_command_line_file): Likewise. |
|
534 |
|
535 * load-save.cc: Use bool instead of int where appropriate. |
|
536 |
|
537 * input.h (enum echo_state): Move here from variables.h. |
|
538 (Vecho_executing_commands): Likewise. Now bool, not int. |
|
539 * input.cc (echo_executing_commands): Move here from variables.cc. |
|
540 (symbols_of_input): Define echo_executing_commands here instead of |
|
541 in variables.cc. |
|
542 |
|
543 * octave.cc (program_invocation_name): Don't define. |
|
544 (intern_argv): Don't set program_invocation_name here. |
|
545 (main): Call octave_env::set_program_name here, not in intern_argv. |
|
546 |
|
547 * toplev.cc (quitting_gracefully): Move here from octave.h and |
|
548 make static bool instead of extern int. |
|
549 |
|
550 * error.cc (bind_global_error_variable, clear_global_error_variable): |
|
551 Move here from variables.cc. |
|
552 (symbols_of_error): Define error_text here instead of in variables.cc. |
|
553 |
|
554 * pager.cc (write_to_diary_file): Now bool, not int. |
|
555 (really_flush_to_pager): Likewise. |
|
556 (flushing_to_pager): Likewise. |
|
557 * sighandlers.h (can_interrupt): Likewise. |
|
558 * error.h (buffer_error_messages): Likewise. |
|
559 * oct-hist.h (input_from_tmp_history_file, Vsaving_history): Likewise. |
|
560 * input.h (forced_interactive): Likewise. |
|
561 (get_input_from_eval_string): Likeiwse. |
|
562 (reading_script_file): Likeiwse. |
|
563 (reading_fcn_file): Likeiwse. |
|
564 (interactive): Likewise. |
|
565 |
|
566 * unwind-prot.cc (saved_variable::saved_variable (bool *, bool)): |
|
567 Set type_tag to boolean, not int. |
|
568 |
3016
|
569 Mon Jun 2 00:40:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
570 |
|
571 * variables.h (Octave_builtin_fcn): Delete typedef. |
|
572 |
|
573 * help.cc (make_name_list): Move here from variables.cc. |
|
574 (keyword_help, names): Now static. |
|
575 (struct help_list): Move declaration here from help.h. |
|
576 |
|
577 * oct-hist.cc (Vhistory_file, Vhistory_size, Vsaving_history): |
|
578 Move here from variables.cc. |
|
579 (symbols_of_oct_hist): New function. |
|
580 |
|
581 * version.h: Protect against multiple inclusion. |
|
582 |
|
583 * defun.cc (check_version): New function. |
|
584 * defun-int.h (DEFINE_FUN_INSTALLER_FUN): Use it. |
|
585 |
|
586 * help.h, help.cc (additional_help_message): Now extern. |
|
587 (operator_help): Now static. |
|
588 |
|
589 * defun.cc (print_usage): Move here from help.cc |
|
590 * DLD-FUNCTIONS/*.cc, data.cc, dirfns.cc, file-io.cc, input.cc, |
|
591 load-save.cc, octave.cc, ov-list.cc, ov-typeinfo.cc, |
|
592 ov-usr-fcn.cc, pager.cc, pr-output.cc, pt-plot.cc, strfns.cc, |
|
593 syscalls.cc, sysdep.cc, utils.cc, toplev.cc: |
|
594 Don't include help.h. |
|
595 |
|
596 * TEMPLATE-INST/Array-sym.cc: New file. |
|
597 |
|
598 * load-save.cc (do_load): Don't use ostream::form. |
|
599 * pr-output.cc: Likewise, at least where it is easy to do so. |
|
600 * oct-stream.cc: Ditto. |
|
601 |
|
602 * symtab.h (symbol_record::symbol_def::rows): New function. |
|
603 (symbol_record::symbol_def::columns): Ditto. |
|
604 (symbol_record::symbol_def::type_name): Ditto. |
|
605 (symbol_record::rows): Ditto |
|
606 (symbol_record::columns): Ditto |
|
607 (symbol_record::type_name): Ditto |
|
608 |
|
609 * symtab.h, symtab.cc (symbol_record::hides_fcn): New function. |
|
610 (symbol_record::hides_builtin): Ditto. |
|
611 (symbol_record::print_symbol_info_line): Ditto. |
|
612 (symbol_table::long_list): Delete. |
|
613 (symbol_table::symbol_list): New function. |
|
614 (symbol_table::maybe_list): Delete argc arg. |
|
615 (symbol_table::name_list): Rename from symbol_table::list. |
|
616 Change all callers. |
|
617 |
|
618 * symtab.h, symtab.cc (class symbol_record_info): Delete. |
|
619 |
|
620 * symtab.cc (matches_patterns): Use vector form of glob_match. |
|
621 |
|
622 Sun Jun 1 14:04:26 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
623 |
|
624 * pt-check.h, pt-check.cc: New files, for semantic checking of |
|
625 parse trees. |
|
626 |
|
627 * symtab.h (class symbol_def): Now nested in symbol_record class. |
|
628 (enum TYPE): Move from symbol_def to symbol record class. Change |
|
629 all uses. |
|
630 |
|
631 * symtab.h, symtab.cc (symbol_table::maybe_list): New function, |
|
632 from variables.cc. Change all uses. |
|
633 |
|
634 * pt-idx.h (tree_identifier::lvalue_ok): New function. |
|
635 * pt-id.h (tree_index_expression::lvalue_ok): Likewise. |
|
636 * pt-indir.h (tree_indirect_ref::lvalue_ok): Likewise. |
|
637 |
|
638 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_oct_obj): Delete. |
|
639 * pt-walk.h (tree_walker::visit_oct_obj): Delete declaration. |
|
640 |
|
641 * lex.h (class lexical_feedback): Delete maybe_screwed_again. |
|
642 * lex.l (lexical_feedback::init): Don't set it. |
|
643 |
|
644 Fri May 30 16:07:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
645 |
|
646 * mappers.cc: Include <cfloat> here. |
|
647 |
|
648 Tue May 27 10:08:43 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
649 |
|
650 * toplev.cc (eval_string): Don't index tmp if it is empty. |
|
651 |
|
652 Sat May 24 00:18:41 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
653 |
|
654 * load-save.cc (valid_identifier): Move here and make static. |
|
655 * symtab.h, symtab.cc (valid_identifier): Delete declaration and |
|
656 definition. |
|
657 |
|
658 Fri May 23 22:54:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
659 |
|
660 * symtab.h (symbol_def::symbol_def): Use initializer list instead |
|
661 of calling init_state. |
|
662 (symbol_def::init_state): Delete. |
|
663 |
|
664 * symtab.cc (symbol_table::print_stats): New function. |
|
665 * variables.cc (F__dump_symtab_info__): New function. |
|
666 |
|
667 * symtab.h, symtab.cc (symbol_table::hash): Return masked value. |
|
668 (symbol_table::table_size): New data member. |
|
669 (symbol_table::symbol_table): Set size of table in constructor. |
|
670 (HASH_TABLE_SIZE): Replace uses with table_size. |
|
671 (HASH_MASK): Delete. |
|
672 * variables.cc (initialize_symbol_tables): Set top-level and |
|
673 global symbol table sizes here. |
|
674 |
2994
|
675 Thu May 22 13:32:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
676 |
|
677 * dynamic-ld.cc (octave_shl_load_dynamic_loader::resolve_reference): |
|
678 Call shl_findsym with type set to TYPE_PROCEDURE. Pass the |
|
679 address of the pointer we want to define. |
|
680 |
2993
|
681 Wed May 21 16:30:25 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
682 |
|
683 * DLD-FUNCTIONS/time.cc (extract_tm): Avoid memory leak in dealing |
|
684 with time zone. |
|
685 |
|
686 * Makefile.in (install-in): Use new mk-includedir-link macro. |
|
687 (install-lib): Install in $octlibdir. Use new mk-libdir-link macro. |
|
688 |
|
689 Tue May 20 01:24:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
690 |
|
691 * ov-list.cc (Flist): Rename from Fmake_list. |
|
692 |
|
693 Mon May 19 14:45:58 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
694 |
|
695 * octave.cc (maximum_braindamage): Set default_eval_print_flag to 0. |
|
696 |
|
697 Sat May 17 16:32:23 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
698 |
|
699 * defaults.cc (set_default_editor): Default is now Emacs, not vi. |
|
700 |
2984
|
701 Fri May 16 00:07:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
702 |
2991
|
703 * pt-idx.cc (tree_index_expression::name): New function. |
|
704 |
|
705 * pt.cc (tree::str_print_code): New file, new convenience function. |
|
706 * pt-arg-list.cc (tree_argument_list::get_arg_names): Use it. |
|
707 * pt-assign.cc (tree_simple_assignment::rvalue): Likewise. |
|
708 (tree_multi_assignment::rvalue): Likewise. |
|
709 |
2990
|
710 * pt-colon.h (tree_colon_expression::save_base): New data memmber. |
|
711 (tree_colon_expression::preserve_base): New function. |
|
712 * parse.y (finish_colon_expression): When converting to a simple |
|
713 expression, be sure to delete the original colon expression but |
|
714 not the base value. |
|
715 |
|
716 * pt-mat.cc (tree_matrix::~tree_matrix): Actually do something. |
|
717 |
2987
|
718 * pt-all.h: New file. |
|
719 * parse.y, lex.l, pt-pr-code.cc: Use it. |
|
720 |
|
721 * pt.h: Rename from pt-base.h. |
|
722 |
|
723 * All parse tree classes: Add private copy constructors and |
|
724 assignment operators to prevent copying. |
|
725 |
|
726 * pt-base.cc: Delete. |
|
727 |
2985
|
728 * unwind-prot.h, unwind-prot.cc: Make a bit more object-oriented. |
|
729 Change all uses of unwind_protect stuff to match. |
|
730 |
|
731 * pt-jump.h, pt-jump.cc (breaking, continuing, returning): |
|
732 Make these flags static members of the corresponding class. |
|
733 Change all uses. |
|
734 |
2984
|
735 * pt-assign.cc (tree_simple_assignment_expression::eval, |
|
736 tree_multi_assignment_expression::eval): Clear lvalue index here. |
|
737 |
|
738 * oct-lvalue.cc (octave_lvalue::assign): Don't clear index here. |
|
739 * oct-lvalue.h (octave_lvalue::clear_index): New function. |
|
740 (octave_lvalue::set_index): Rename from octave_lvalue::index. |
|
741 Change all callers. |
|
742 |
2976
|
743 Thu May 15 11:48:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
744 |
2983
|
745 * pt-select.h, pt-select.cc (class tree_if_command_list, |
|
746 class tree_if_clause, class tree_switch_case_list, |
|
747 class tree_switch_case): Move here from pt-misc.h, pt-misc.cc. |
|
748 * pt-decl.h, pt-decl.cc (class tree_decl_init_list, |
|
749 class tree_decl_elt): Move here from pt-mist.h, pt-misc.cc |
|
750 |
|
751 * pt-arg-list.h, pt-stmt.h: New files, extracted from pt-misc.h. |
|
752 * pt-arg-list.cc, pt-stmt.cc: New files, extracted from pt-misc.cc. |
|
753 |
|
754 * pt-decl.h, pt-except.h, pt-jump.h, pt-loop.h, pt-select.h: |
|
755 New files, extraced from pt-cmd.h. |
|
756 * pt-decl.cc, pt-except.cc, pt-jump.cc, pt-loop.cc, pt-select.cc: |
|
757 New files, extraced from pt-cmd.cc. |
|
758 |
2980
|
759 * pt-unop.h, pt-binop.h, pt-colon.h, pt-idx.h, pt-assign.h: |
|
760 New files, extracted from pt-exp.h |
|
761 * pt-unop.cc, pt-binop.cc, pt-colon.cc, pt-idx.cc, pt-assign.cc: |
|
762 New files, extracted from pt-exp.cc |
|
763 * pt-exp.h, pt-exp.cc: Rename from pt-exp-base.h, pt-exp-base.cc. |
|
764 |
2979
|
765 * oct-lvalue.h: Rename from oct-var-ref.h. Rename class from |
|
766 octave_variable_reference to octave_lvalue. Change all uses. |
|
767 * oct-lvalue.cc: Rename from oct-var-ref.cc. |
|
768 |
2978
|
769 * variables.cc (bind_ans): Only bind ans and print result if value |
|
770 is defined. |
|
771 |
2976
|
772 * defun.cc: New file. Move functions for installing objects in |
|
773 the symbol table here from variables.cc. |
|
774 |
|
775 * oct-obj.h, oct-obj.cc: Add custom allocator, fwiw. |
|
776 |
|
777 * toplev.cc (main_loop): Correctly increment command number. |
|
778 |
|
779 * TEMPLATE-INST/SLList-tm.cc: Don't instantiate lists of pointers |
|
780 to tree_matrix_row objects. |
|
781 * TEMPLATE-INST/SLList-misc.cc: Do instantiate lists of pointers |
|
782 to tree_argument_list objects. |
|
783 |
|
784 * DLD-FUNCTIONS/dassl.cc: Update to use new octave_function |
|
785 interface to user-supplied functions. |
|
786 * DLD-FUNCTIONS/fsolve.cc: Likewise. |
|
787 * DLD-FUNCTIONS/lsode.cc: Likewise. |
|
788 * DLD-FUNCTIONS/npsol.cc: Likewise. |
|
789 * DLD-FUNCTIONS/quad.cc: Likewise. |
|
790 |
|
791 * dynamic-ld.h, dynamic-ld.cc (builtin_fcn_installer typedef): |
|
792 Rename from builtin_fcn. |
|
793 (octave_dynamic_loader::load_fcn_from_dot_oct_file): |
|
794 Simplify by using new installer function defined by DEFUN_DLD. |
|
795 |
|
796 * defun-dld.h (DEFUN_DLD): Use DEFINE_FUN_INSTALLER_FUN instead of |
|
797 DEFINE_FUN_STRUCT_FUN. |
|
798 * defun.h (DEFUN_MAPPER): Use DEFUN_MAPPER_INTERNAL. |
|
799 * defun-int.h (DEFVAR_INTERNAL): Rename from DEFVAR_INT and move |
|
800 here from defun.h. Change all uses. |
|
801 (DEFUN_MAPPER_INTERNAL): New macro. |
|
802 (DEFINE_FUN_INSTALLER_FUN): New macro to define function that the |
|
803 dynamic loader calls to do all the work of installing a new function. |
|
804 (DEFINE_FUN_STRUCT_FUN): Delete. |
|
805 |
|
806 * parse.y: Rewrite to handle more general expressions. |
|
807 * lex.l: Corresponding changes. |
|
808 |
|
809 * pt-walk.h, pt-pr-code.h, pt-pr-code.cc: Cope with new parse tree |
|
810 object structure. |
|
811 |
|
812 * pt-misc.cc (class tree_for_command): Split into |
|
813 tree_simple_for_command and tree_complex_for_command classes. |
|
814 |
|
815 * pt-misc.h, pt-misc.cc (tree_statement::eval): Handle identifier |
|
816 lookup and printing and binding ans here. |
|
817 (tree_statement_list::eval): Simplify. |
|
818 (tree_argument_list::all_elements_are_constant): New function. |
|
819 (class tree_decl_elt): Now contains id and expr, not an assignment |
|
820 expression. |
|
821 |
|
822 * pt-exp-base.h pt-exp.h pt-id.h pt-indir.h pt-mat.h pt-const.h, |
|
823 pt-exp-base.cc pt-exp.cc pt-id.cc pt-indir.cc pt-mat.cc pt-const.cc: |
|
824 Replace eval functions with rvalue and lvalue functions. |
|
825 Change all uses. |
|
826 (lvalue_ok, rvalue_ok): New functions, for future compile-time |
|
827 semantic checks. |
|
828 |
|
829 * oct-var-ref.h (is_defined, is_map): New functions. |
|
830 |
|
831 * pt-exp.h (class tree_oct_obj): Delete. |
|
832 |
|
833 * variables.cc (extract_function, is_valid_function): Return |
|
834 pointer to octave_function, not octave_symbol. |
|
835 (link_to_global_variable): Rewrite. Handle errors in |
|
836 symbol_record::mark_as_linked_to_global. |
|
837 |
|
838 * symtab.h, symtab.cc (class symbol_def, class symbol_record): |
|
839 Symbols are now stored as octave_value objects only. |
|
840 |
|
841 * ov.cc (install_types): Register function types here. |
|
842 * ov-fcn.h, ov-fcn.cc, ov-builtin.h, ov-builtin.cc, ov-mapper.h, |
|
843 ov-mapper.cc, ov-usr-fcn.h, ov-usr-fcn.cc: New classes for |
|
844 functions as values. |
|
845 * ov.h (class octave_value): Don't derive from octave_symbol. |
|
846 * oct-fcn.h, oct-fcn.cc, oct-builtin.h, oct-builtin.cc, |
|
847 oct-mapper.h, oct-mapper.cc, oct-usr-fcn.h, oct-usr-fcn.cc, |
|
848 oct-sym.h, oct-sym.cc: Delete. |
|
849 |
2963
|
850 Sun May 11 17:51:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
851 |
|
852 * help.cc (Ftype): Make it work again for functions. |
|
853 |
|
854 * pt-pr-code.cc (tree_print_code::print_parens): New function. |
|
855 Use it in other tree_print_code functions to handle printing all |
|
856 the parens that we found when parsing the expression, not just one |
|
857 pair. |
|
858 * pt-exp-base.h (tree_expression::paren_count): Rename from |
|
859 is_in_parens. |
|
860 * parse.y (maybe_warn_assign_as_truth_value): Use new name. |
|
861 |
|
862 * parse.y (constant): New non-terminal. |
|
863 (simple_expr1): Use it. |
|
864 |
|
865 * parse.y (make_unary_op): Delete. |
|
866 (simple_expr1): Where appropriate, use make_prefix_op and |
|
867 make_postfix_op instead of make_unary_op. Allow increment and |
|
868 decrement ops to work on expressions, not just identifiers. |
|
869 (make_prefix_op, make_postfix_op): Arg is expression, not identifier. |
|
870 Handle old unary_op cases too. |
|
871 (fold (tree_unary_expression *)): Delete. |
|
872 * pt-exp.h, pt-exp.cc (tree_prefix_expression::eval): Handle unary |
|
873 minus and not here. |
|
874 (tree_postfix_expression::eval): Likewise, for transpose and hermitian. |
|
875 (class tree_prefix_expression, class tree_postfix_expression): |
|
876 Derive from tree_unary_expression. Delete identifier member. |
|
877 Delete ident member function. |
|
878 (tree_unary_expression): Don't handle evaluation here. |
|
879 * pt-exp-base.h (mark_in_parens): No longer virtual. Return this. |
|
880 (reference): New virtual function. |
|
881 (class tree_expression): Don't handle expression type here. |
|
882 * pt-mvr-base.h (tree_multi_val_ret::tree_multi_val_ret): Likewise. |
|
883 * pt-mvr.h, pt-mvr.cc (tree_multi_assignment_expression): Likewise. |
|
884 * pt-walk.h (visit_unary_expression): Delete declaration. |
|
885 * pt-pr-code.h, pt-pr-code.cc (visit_unary_expression): Delete. |
|
886 (visit_prefix_expression): Use operand(), not ident(). |
|
887 new, visit_postfix_expression): |
|
888 * pt-id.h, pt-id.cc (increment, decrement): Delete. |
|
889 |
|
890 * pt-misc.cc (tree_parameter_list::define_from_arg_vector): Get a |
|
891 reference to each element and use the assignment operator instead |
|
892 of tree_identifier::define. |
|
893 * pt-id.h, pt-id.cc (tree_identifier::define): Delete versions |
|
894 that take octave_value and octave_symbol args. |
|
895 |
|
896 Sat May 10 23:32:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
897 |
|
898 * pt-indir.h, pt-indir.cc (tree_indirect_reference::value): Delete. |
|
899 |
|
900 * oct-var-ref.cc (octave_variable_ref::assign): Clear idx after |
|
901 assignment. |
|
902 |
2976
|
903 * octave_value classes: Add is_constant, is_function, and |
|
904 function_value functions. |
|
905 |
2963
|
906 * ov.h, ov.cc (assign): Return void, not reference to octave_value. |
|
907 (do_index_op): Rename, from index. |
|
908 (do_struct_elt_index_op): Rename, from struct_elt_val. |
|
909 Add version that accepts index arg. |
|
910 Change all uses and derived classes to match. |
|
911 * pt-const.h (index): Delete. |
|
912 * oct-var-ref.h, oct-var-ref.cc (value): Handle indexed structure |
|
913 ops here too. |
|
914 |
2949
|
915 Fri May 9 07:40:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
916 |
2958
|
917 * pt-exp.cc (print_rhs_assign_val, symbols_of_pt_exp): New functions. |
|
918 (Vprint_rhs_assign_val): New static variable. |
|
919 (tree_simple_assignment_expression::eval): Use it to optionally |
|
920 allow the rhs (which is the result) of an assignment to be printed |
|
921 instead of the left. |
|
922 |
2955
|
923 * pt-exp.cc (tree_simple_assignment_expression::eval): Use new |
|
924 octave_variabl_reference::index function to handle indexing. |
|
925 |
|
926 * oct-var-ref.h, oct-var-ref.cc (idx): New data member. |
|
927 (octave_variable_reference::index): Set it. |
|
928 (octave_variable_reference::assign): Handle indexing here. |
|
929 Delete version of this function htat takes index arg. |
|
930 |
|
931 * variables.h (struct builtin_varaible): Delete. |
|
932 * variables.cc (install_builtin_variable): Take all elts of |
|
933 builtin_variable struct directly. |
|
934 * defun.h (DEFVAR_INT): Call install_builtin_variable directly. |
|
935 |
|
936 * symtab.h, defun-int.h: Don't include variables.h. |
|
937 |
|
938 * symtab.h (symbol_record::sv_function): Move typedef here. |
|
939 * variables.h: From here. |
|
940 |
|
941 * oct-var-ref.h, oct-var-ref.cc: New files for |
|
942 octave_variable_reference class, extracted from variables.h and |
|
943 variables.cc |
2956
|
944 * Makefile.in: Add them to the appropriate lists. |
2955
|
945 |
|
946 * oct-obj.h (octave_value_list::empty): New function. |
|
947 |
2949
|
948 * variables.h (class octave_variable_reference): Rewrite to work |
|
949 as a proxy class to store a pointer to octave_value and, |
|
950 optionally, the change function to call and the name of the |
|
951 structure element we are referencing. Handle assignment, |
|
952 increment, decrement, and value operations. |
|
953 |
2956
|
954 Thu May 8 23:40:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
955 |
2949
|
956 * ov-re-mat.h, ov-re-mat.cc (struct_elt_ref, struct_elt_val, |
|
957 assign_struct_elt): Provide functions for looking up and setting |
|
958 matrix dimensions. |
|
959 |
|
960 * symtab.cc (symbol_record::define): Don't call sv_fcn here. |
|
961 Don't save and restore value here. |
|
962 (symbol_record::define_builtin_var): Do call sv_fcn here. |
|
963 (symbol_record::variable_reference): Don't make value unique here. |
|
964 Return pointer to sv_fcn in octave_variable_reference. |
|
965 |
|
966 * pt-misc.cc (tree_parameter_list::initialize_undefined_elements): |
|
967 Simplify. |
|
968 |
|
969 * pt-id.h, pt-id.cc (tree_identifier::reference): Return |
|
970 octave_variable_reference, not octave_value&. |
|
971 * symtab.h, symtab.cc (symbol_record::variable_reference): Ditto. |
|
972 * pt-indir.h, pt-indir.cc (tree_indirect_ref::reference): Ditto. |
|
973 Simplify too. |
|
974 |
|
975 * pt-const.h (tree_constant::reference, tree_constant::value, |
|
976 tree_constant::assign): Delete unnecessary functions. |
|
977 * pt-id.h, pt-id.cc (tree_identifier::assign): Ditto. |
|
978 |
|
979 * pt-cmd.cc (tree_for_command::do_for_loop_once): Simplify. |
|
980 |
|
981 * ov.h, ov.cc, ov-base.h, ov-base.cc, ov-struct.h, ov-struct.cc |
|
982 (struct_elt_ref): New arg, octave_value* parent. |
|
983 Allow deferred lookup. Return octave_variable_reference, not |
|
984 octave_value&. |
|
985 |
|
986 * ov.h, ov.cc, ov-re-mat.h, ov-re-mat.cc (assign_struct_elt): |
|
987 New virtual functions. |
|
988 |
|
989 * ov.h, ov.cc (Vresize_on_range_error): Now static. |
|
990 |
|
991 * pt-mvr.cc (tree_index_expression::eval): Delete redundant check |
|
992 of error_state. |
|
993 |
2944
|
994 Wed May 7 21:17:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
995 |
|
996 * input.cc (generate_completion): Rename from command_generator. |
|
997 Use string objects instead of char*. |
|
998 (generate_possible_completions): Let qsort also make matches unique. |
|
999 (initialize_command_input): Register generate_completion with the |
|
1000 command_editor class. |
|
1001 (completion_matches): Simplify using generate_completion. |
|
1002 |
|
1003 * pt-pr-code.cc (tree_print_code::visit_constant): For val, call |
|
1004 print_raw, not print. |
|
1005 |
|
1006 * oct-usr-fcn.h (octave_user_function::argn_sr): New data member. |
|
1007 (octave_user_function::install_automatic_vars): Rename from |
|
1008 install_nargin_and_nargout. |
|
1009 (octave_user_function::bind_automatic_vars): Rename from |
|
1010 bind_nargin_and_nargout. |
|
1011 * oct-usr-fcn.cc (octave_user_function::eval): Extract arg names |
|
1012 from args vector and bind them to argn. |
|
1013 * oct-obj.h (octave_value_list::names): New data member. |
|
1014 * oct-obj.cc (octave_value_list::stash_name_tags): New function. |
|
1015 (octave_value_list::name_tags): Ditto. |
|
1016 * pt-const.h, pt-const.cc (tree_constant::print_raw): New function. |
|
1017 * pt-misc.h, pt-misc.cc (tree_argument_list::get_arg_names): |
|
1018 New function. |
|
1019 * pt-mvr.h, pt-mvr.cc (class index_expression): Cache arg names. |
|
1020 * toplev.cc (feval): Now static. Handle arg names. |
|
1021 |
|
1022 * mkops: Cope with moving files defining operators to OPERATORS |
|
1023 subdirectory. |
|
1024 |
2937
|
1025 Tue May 6 00:48:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1026 |
|
1027 * DLD-FUNCTIONS/getgrent.cc: Use new octave_group class. |
|
1028 * DLD-FUNCTIONS/getpwent.cc: Use new octave_passwd class. |
|
1029 |
|
1030 * syscalls.cc: Simplify by using new functions defined in |
|
1031 liboctave/oct-syscalls.cc. |
|
1032 |
|
1033 * file-io.cc (Ftmpnam): Accept DIR and PREFIX args. |
|
1034 |
2929
|
1035 Mon May 5 00:54:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1036 |
2932
|
1037 * ov-str-mat.cc (octave_char_matrix_str::print_name_tag): Print |
|
1038 empty strings on one line. |
|
1039 |
2929
|
1040 * DLD-FUNCTIONS, OPERATORS, and TEMPLATE-INST: New subdirectories. |
|
1041 Move appropriate files to new directories. |
|
1042 * Makefile.in: Add DLD-FUNCTIONS, OPERATORS, and TEMPLATE-INST |
|
1043 directories to VPATH. Fix rules to work with new directory |
|
1044 structure. |
|
1045 |
2927
|
1046 Sun May 4 22:40:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1047 |
|
1048 * input.cc (initialize_command_input): Rename from |
|
1049 initialize_readline. |
|
1050 (gnu_readline, octave_gets, get_user_input): Simplify, return |
|
1051 string, not char *. |
|
1052 |
|
1053 * Many of other files: Miscellaneous changes to go along with the |
|
1054 changes described in the liboctave/ChangeLog for May 4. More code |
|
1055 moved from here to liboctave. |
|
1056 |
|
1057 Fri May 2 19:50:33 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1058 |
|
1059 * pathlen.h: Move to ../liboctave. |
|
1060 |
2921
|
1061 Thu May 1 21:50:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1062 |
|
1063 * variables.cc (get_struct_elts): New fucntion. |
|
1064 (looks_like_struct, generate_struct_completions): Move here from |
|
1065 input.cc, rewrite, and make work again. |
|
1066 |
2916
|
1067 Wed Apr 30 00:24:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1068 |
|
1069 * ov-base.h, ov-bool-mat.cc, ov-bool-mat.h, ov-bool.cc, ov-bool.h, |
|
1070 ov-ch-mat.cc, ov-ch-mat.h, ov-complex.cc, ov-complex.h, |
|
1071 ov-cx-mat.cc, ov-cx-mat.h, ov-file.cc, ov-file.h, ov-list.cc, |
|
1072 ov-range.cc, ov-range.h, ov-re-mat.cc, ov-re-mat.h, ov-scalar.cc, |
|
1073 ov-scalar.h, ov-str-mat.cc, ov-struct.cc, ov.h (scalar_value): |
|
1074 New function. Same as double_value, but name is consistent with |
|
1075 octave_scalar class. |
|
1076 |
|
1077 * op-fil-b.cc, op-fil-cm.cc, op-fil-lis.cc, op-fil-rec.cc, |
|
1078 op-fil-str.cc, op-fil-bm.cc, op-fil-cs.cc, op-fil-m.cc, |
|
1079 op-fil-s.cc: New files. |
|
1080 |
|
1081 * ops.h (ASSIGNOPDECL, DEFASSIGNOP, DEFASSIGNOP_FN, CONVDECL, |
|
1082 DEFCONV, BINOPDECL, DEFBINOPX, DEFBINOP, DEFBINOP_OP, DEFBINOP_FN, |
|
1083 BINOP_NONCONFORMANT): New macros. |
|
1084 * op-b-b.cc, op-bm-bm.cc, op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, |
|
1085 op-cm-s.cc, op-cs-cm.cc, op-cs-cs.cc, op-cs-m.cc, op-cs-s.cc, |
|
1086 op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, op-s-cm.cc, |
|
1087 op-s-cs.cc, op-s-m.cc, op-s-s.cc, op-str-str.cc: Use them. |
|
1088 |
|
1089 * Makefile.in (octave): Also depend on ops.o. |
|
1090 |
|
1091 * builtins.h: Delete. |
|
1092 * octave.cc: Add extern declaration here. |
|
1093 |
|
1094 * mappers.h: Delete. |
|
1095 * Makefile.in (INCLUDES): Delete from list. |
|
1096 * mkbuiltins: Add extern declaration in builtins.cc. |
|
1097 |
|
1098 * mkops: New file. |
|
1099 * ops.cc: Delete. |
|
1100 * Makefile.in (SOURCES): Delete from the list. |
|
1101 (ops.cc): New target. |
|
1102 (OP_SOURCES): New list. Move all op-*.cc files here from SOURCES. |
|
1103 Add $(OP_SOURCES) to SOURCES list. |
|
1104 |
|
1105 * variables.cc (symbols_of_variables): No longer static. |
|
1106 * ov.cc (symbols_of_ov): Rename from symbols_of_value. |
|
1107 |
|
1108 * ov-base.h: Delete declaration for install_base_type_conversions. |
|
1109 * op-b-b.h, op-bm-bm.h, op-cm-cm.h, op-cm-cs.h, op-cm-m.h, |
|
1110 op-cm-s.h, op-cs-cm.h, op-cs-cs.h, op-cs-m.h, op-cs-s.h, |
|
1111 op-m-cm.h, op-m-cs.h, op-m-m.h, op-m-s.h, op-s-cm.h, op-s-cs.h, |
|
1112 op-s-m.h, op-s-s.h, op-str-str.h: Delete. |
|
1113 * Makefile.in (INCLUDES): Delete them from the list. |
|
1114 |
|
1115 Tue Apr 29 22:27:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1116 |
|
1117 * variables.h, variables.cc (install_builtin_variables): Delete. |
|
1118 * mkbuiltins: Also generate install_builtin_variables function. |
|
1119 * Makefile.in: Fix rule to call mkbuiltins with correct args. |
|
1120 (clean): Also delete def-files and var-files. |
|
1121 * defaults.h.in, dirfns.h, error.h, file-io.h, help.h, input.h, |
|
1122 lex.h, load-save.h, oct-usr-fcn.h, pager.h, parse.h, pr-output.cc, |
|
1123 pr-output.h, pt-mat.h, pt-misc.h, pt-plot.h, toplev.h: |
|
1124 Delete declarations of symbols_of_* functions. |
|
1125 * data.h, syscalls.h: Delete. |
|
1126 |
|
1127 * pr-output.cc (octave_print_internal): Leave printing of final |
|
1128 new line up to the caller. |
|
1129 |
|
1130 * ov.h, ov.cc (reset_indent_level, increment_indent_level, |
|
1131 decrement_indent_level, newline, indent, reset, |
|
1132 curr_print_indent_level, beginning_of_line): |
|
1133 New functions and static data to manage indent level for printing. |
|
1134 (print_as_scalar): Delete. |
|
1135 (print, print_with_name): Always require stream arg. |
|
1136 Change all callers. |
|
1137 |
|
1138 * oct-stream.h (octave_stream::input_stream): Make publicly available. |
|
1139 (octave_stream::output_stream): Likewise. |
|
1140 |
|
1141 * ov-base.h, ov-base.cc, ov.h, ov.cc, ov-file.h ov-base.h |
|
1142 (is_file, stream_value, stream_number): New functions. |
|
1143 * ov-file.h, ov-file.cc: New files for value class to manage files. |
|
1144 * file-io.cc (symbols_of_file_io): Define stdin, stdout, and |
|
1145 stderr as octve_file objects, not just integers. |
|
1146 (Ffopen, Fpopen): Return octave_file objects, not integer file ids. |
|
1147 * syscalls.cc (Fpipe): Likewise. |
|
1148 * oct-stream.h, oct-stream.cc (octave_stream_list::insert): |
|
1149 Return octave_file object, not integer file id. |
|
1150 |
|
1151 * ov-base.cc, ov-bool-mat.cc, ov-bool.cc, ov-ch-mat.cc, |
|
1152 ov-complex.cc, ov-cx-mat.cc, ov-file.cc, ov-list.cc, ov-range.cc, |
|
1153 ov-re-mat.cc, ov-scalar.cc, ov-str-mat.cc, ov-struct.cc, ov.cc |
|
1154 (print_name_tag, print_raw): New functions. |
|
1155 |
|
1156 * help.cc (Ftype): Don't cast symbol definition to tree_constant *. |
|
1157 |
|
1158 * variables.cc (link_to_global_variable): Don't try to define |
|
1159 symbol with tree_constant objects. |
|
1160 (bind_ans): Call symbol_record::define directly and then |
|
1161 octave_value::print_with_name instead of creating a temporary |
|
1162 assignment expression. |
|
1163 |
|
1164 * pt-pr-code.cc (tree_print_code::indent): Don't use ostream::form. |
|
1165 |
|
1166 * pt-exp-base.h, pt-exp.h, pt-exp.cc (oper): Return string, not |
|
1167 char *. Change all where necessary. |
|
1168 |
|
1169 Mon Apr 28 16:33:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1170 |
|
1171 * ov.h (octave_value binary_op enum): Add lshift and rshift. |
|
1172 (octave_value assign_op enum): Add lshift_eq and rshift_eq. |
|
1173 * ov.cc (assign_op_as_string, binary_op_as_string): Include them. |
|
1174 * parse.y (LSHIFT_EQ RSHIFT_EQ LSHIFT RSHIFT): New tokens. |
|
1175 Add them to the precedence list. |
|
1176 (simple_expr): Add new operators. |
|
1177 (make_assign_op, make_binary_op): Handle new operators. |
|
1178 * lex.l: Recognize new operators. |
|
1179 |
|
1180 * lex.l: Recognize them. |
|
1181 |
|
1182 Sun Apr 27 20:17:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2898
|
1183 |
|
1184 * pt-misc.cc (Vsilent_functions, silent_functions): |
|
1185 Move here from oct-usr-fcn.cc. |
|
1186 (symbols_of_pt_misc): New function. DEFVAR silent_functions. |
|
1187 (tree_statement_list::eval): Handle Vsilent_functions here instead |
|
1188 of in octave_user_function::eval. |
|
1189 (tree_statement::eval): New functions. |
|
1190 (tree_statement_list::eval): Use them. |
|
1191 Change print flag arg to silent flag. Change all callers. |
|
1192 * variables.cc (install_builtin_variables): Call symbols_of_pt_misc. |
|
1193 * toplev.cc (parse_and_execute): Delete print arg. Change all callers. |
|
1194 (eval_string): Change print flag arg to silent flag. Change callers. |
|
1195 |
|
1196 * dynamic-ld.h, dynamic-ld.cc: Rewrite to use singleton class. |
|
1197 * variables.cc (load_fcn_from_file): Use new dynamic linking class. |
|
1198 |
2893
|
1199 * dynamic-ld.h (Octave_builtin_fcn): Delete typedef. |
|
1200 * dynamic-ld.cc: Simplify via the magic of function pointers. |
|
1201 |
|
1202 * pt-fcn.h pt-fcn.cc pt-fvc.h pt-fvc.cc pt-fvc-base.h pt-fvc-base.cc: |
|
1203 Delete obsolete files. |
|
1204 * Makefile.in: Remove them from various lists. |
|
1205 |
|
1206 * pt-walk.h (visit_octave_user_function): Rename from visit_function. |
|
1207 (visit_builtin): Delete. |
|
1208 * pt-pr-code.h, pt-pr-code.cc (visit_octave_user_function): |
|
1209 Rename from visit_function. |
|
1210 (visit_octave_user_function_header): Rename from visit_function_header. |
|
1211 (visit_octave_user_function_trailer): Rename from |
|
1212 visit_function_trailer. |
|
1213 |
|
1214 * ov.h, ov.cc (eval): New functions. |
|
1215 |
|
1216 * dassl.cc, fsolve.cc, lsode.cc, npsol.cc, qpsol.cc, quad.cc: |
|
1217 Declare user-defined functions as a pointer to an octave_symbol |
|
1218 object, not as a pointer to a tree_fvc object. |
|
1219 |
|
1220 * symtab.h, symtab.cc: Use new octave_symbol class. |
|
1221 * variables.cc (install_builtin_function, install_builtin_mapper, |
|
1222 install_builtin_variable, install_builtin_variable_as_function): |
|
1223 Make work with new octave_symbol class and symbol table structure. |
|
1224 |
|
1225 * variables.h: Delete declaration of builtin_function struct. |
|
1226 * defun-dld.h (DEFUN_DLD): Simplify. |
|
1227 * defun-int.h (DEFINE_FUN_STRUCT): Delete. |
|
1228 (DEFINE_FUN_STRUCT_FUN): Rewrite to not use static builtin_function |
|
1229 object. |
|
1230 |
|
1231 * mappers.h: Delete declaration of builtin_mapper_function struct. |
|
1232 * mappers.cc: Declare wrapper functions static. |
|
1233 * defun.h (DEFUN_MAPPER): Simplify. |
|
1234 |
|
1235 * oct-sym.h: New file. Declare base class for Octave symbols. |
|
1236 * ov.h: Derive octave_value class from octave_symbol. |
|
1237 * oct-fcn.h, oct-fcn.cc: New files to declare and define |
|
1238 base class for functions. |
|
1239 * oct-builtin.h, oct-builtin.cc: New files to declare and define |
|
1240 class for built-in functions. |
|
1241 * oct-mapper.h, oct-mapper.cc: New files to declare and define |
|
1242 class for mapper functions. |
|
1243 * oct-usr-fcn.h, oct-usr-fcn.cc: New files to declare and define |
|
1244 base class for user-defined functions. |
|
1245 * Makefile.in: Add new files to appropriate lists. |
|
1246 |
|
1247 * pt-id.h, pt-id.cc: Move tree_identifier class here. |
|
1248 * pt-fvc.h, pt-fvc.cc: From here. |
|
1249 |
|
1250 * pt-indir.h, pt-indir.cc: Move tree_indirect_ref class here. |
|
1251 * pt-fvc.h, pt-fvc.cc: From here. |
|
1252 |
2881
|
1253 Thu Apr 24 03:58:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1254 |
2884
|
1255 * parse.y (magic_colon): New nonterminal. |
|
1256 (arg_list): Simplify using magic_colon. |
|
1257 |
2883
|
1258 * lex.h (class lexical_feedback): Delete maybe_screwed field. |
|
1259 New field, parsed_function name. |
|
1260 * lex.l (lexical_feedback::init): Initialize it. |
|
1261 (handle_identifier): Don't return SCREW. Handle switching |
|
1262 symbol table context properly for `function f ()' vs `function x ='. |
|
1263 (is_keyword): If looking at function keyword, don't set current |
|
1264 symbol table to point to the local table. |
|
1265 * parse.y (recover_from_parsing_function): New function. |
|
1266 (finish_function_def): Use identifier, not token. |
|
1267 Simplify parsing of functions. |
|
1268 |
|
1269 * ov-list.h, ov-list.cc: New files to implement generic list type. |
|
1270 * ov.cc (list_indent): New global variable. |
|
1271 (increment_list_indent, decrement_list_indent): New functions. |
|
1272 (install_types): Register octave_list type. |
|
1273 * ov-base.cc (octave_base_value::is_list): New function. |
|
1274 |
2881
|
1275 * oct-sym.h: New file. |
|
1276 * ov.h (class octave_value): Derive from octave_symbol class. |
|
1277 |
|
1278 * pt-const.h, pt-const.cc: Delete lots of old useless cruft. |
|
1279 |
|
1280 * pt-exp.h, pt-exp.cc (tree_binary_expression): Use type codes for |
|
1281 operators from octave_value instead of repeating them here. |
|
1282 |
|
1283 * pt-fvc-base.cc (tree_fvc::increment, tree_fvc::decrement): Delete. |
|
1284 * pt-fvc.cc (tree_identifier::increment): Get reference to value |
|
1285 and increment that instead of using virutal tree_fvc::increment |
|
1286 function. |
|
1287 |
|
1288 * lex.l: Handle +=, -=, *=, /=, .+=, .-=, .*=, ./=, &=, and |= ops. |
2883
|
1289 * parse.y (make_assign_op): Rename from make_simple_assignment and |
|
1290 handle different op types. |
|
1291 (simple_expr1): Do new ops. |
2881
|
1292 * pt-misc.cc (initialize_undefined_elements): Pass op to assign. |
|
1293 * pt-cmd.cc (tree_for_command::do_for_command_once): Likewise. |
|
1294 * pt-fvc.cc (tree_identifier::assign): Pass op. |
|
1295 * pt-exp.cc (tree_simple_assignment_expression): Handle new ops. |
|
1296 * variables.cc (octave_variable_reference::assign): Likewise. |
|
1297 * ov.h (class octave_value): Likewise. |
|
1298 * ov.cc (octave_value::assign_op_as_string): New function. |
|
1299 (octave_value::assign, octave_value::convert_and_assign, |
|
1300 octave_value::try_assignment_with_conversion, |
|
1301 octave_value::try_assignment): Pass op. |
|
1302 * pt-pr-code.cc (tree_print_code::visit_simple_assignment_expression): |
|
1303 Use expr.oper() instead of printing "=". |
|
1304 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-m-m.cc, |
|
1305 op-m-s.cc, op-str-str.cc: Pass op to INSTALL_ASSIGNOP. |
|
1306 * ops.h (INSTALL_ASSIGNOP): Pass op. |
2883
|
1307 * ov-typeinfo.cc (do_register_assign_op): Include op type in table. |
|
1308 (do_lookup_assign_op): Use op in lookup. |
2881
|
1309 |
|
1310 * ops.h (INSTALL_UNOP): Delete. |
|
1311 |
|
1312 * input.cc (generate_struct_completions, looks_like_struct): |
|
1313 Disable, since they don't work now anyway. |
|
1314 |
|
1315 * help.cc (Ftype): Work with octave_value instead of a pointer to |
|
1316 tree_constant. |
|
1317 * symtab.cc (symbol_record_info::symbol_record_info): Likewise. |
|
1318 |
|
1319 |
|
1320 Tue Apr 22 22:59:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1321 |
|
1322 * file-io.cc (Ffprintf): If first arg is a string, assume FID = 1. |
|
1323 |
|
1324 Fri Apr 18 20:16:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1325 |
|
1326 * oct-obj.h, oct-obj.cc: Implement octave_value_list with |
|
1327 Array<octave_value> as a data member, not as a class derived from |
|
1328 Array<octave_value>. |
|
1329 (octave_value_list::length, octave_value_list::resize, |
|
1330 octave_value_list::prepend, octave_value_list::append, |
|
1331 octave_value_list::reverse): New functions. |
|
1332 |
|
1333 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
1334 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
1335 op-s-cm.cc, op-s-m.cc: Use new bool ops from liboctave instead of |
|
1336 the macros defined in ops.h. |
|
1337 |
2865
|
1338 Thu Apr 17 13:12:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1339 |
|
1340 * parse.y (ABORT_PARSE): Handle forced_interactive the same as |
|
1341 interactive. |
|
1342 |
|
1343 Mon Apr 14 01:46:50 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1344 |
|
1345 * input.cc (octave_read): Don't forget to free input buffer if it |
|
1346 exists and has zero length. |
|
1347 (gnu_readline): Free buf if fgets returns 0. |
|
1348 |
|
1349 Wed Apr 9 00:03:57 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1350 |
|
1351 * time.cc (mk_tm_map): Only set zone field if HAVE_TM_ZONE or |
|
1352 HAVE_TZNAME are defined. |
|
1353 |
|
1354 Tue Apr 8 12:39:21 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1355 |
|
1356 * time.cc (extract_tm): Set tm.tm_zone if HAVE_TM_ZONE is defined, |
|
1357 not if HAVE_TMZONE is defined. |
|
1358 |
|
1359 * Makefile.in (%.oct : %.o): Use $(SH_LD), not $(CXX). |
|
1360 |
|
1361 Wed Apr 2 21:32:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1362 |
|
1363 * dynamic-ld.cc, dynamic-ld.h (init_dynamic_linker): Delete |
|
1364 function and declaration. |
|
1365 * octave.cc (main): Don't call it. |
|
1366 |
2856
|
1367 Mon Mar 31 00:37:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1368 |
2859
|
1369 * pt-base-exp.h (tree_expression::eval): Give arg a default value. |
|
1370 * pt-const.h (tree_constant::eval): Likewise. |
|
1371 * pt-exp.h (tree_prefix_expression::eval, tree_colon_expression::eval, |
|
1372 tree_postfix_expression::eval, tree_unary_expression::eval, |
|
1373 tree_binary_expression::eval, tree_boolean_expression::eval, |
|
1374 tree_simple_assignment_expression::eval): Likewise. |
|
1375 * pt-fcn.h (tree_function::eval): Likewise. |
|
1376 * pt-fvc.h (tree_identifier::eval, tree_indirect_ref::eval, |
|
1377 tree_builtin::eval): Likewise. |
|
1378 * pt-mat.h (tree_matrix::eval): Likewise. |
|
1379 * pt-misc.h (tree_statement_list::eval): Likewise. |
|
1380 * pt-mvr-base.h (tree_multi_val_ret::eval): Likewise. |
|
1381 * pt-mvr.h (tree_oct_obj::eval, tree_index_expression::eval, |
|
1382 tree_multi_assignment_expression::eval): Likewise. |
|
1383 * dassl.cc, fsolve.cc, load-save.cc, lsode.cc, npsol.cc, parse.y, |
|
1384 pt-cmd.cc, pt-exp-base.cc, pt-exp.cc, pt-fvc.cc, pt-mat.cc, |
|
1385 pt-misc.cc, pt-mvr.cc, pt-plot.cc, quad.cc, toplev.cc, variables.cc: |
|
1386 Change callers of eval() to use bool instead of int and to make |
|
1387 use of default argument value. |
|
1388 |
|
1389 * toplev.h, toplev.cc (parse_and_execute, eval_string): Flag args |
|
1390 are now bool instead of int. |
|
1391 |
2856
|
1392 * symtab.h, symtab.cc: Use bool instead of int in more places. |
|
1393 * variables.h, variables.cc: Likewise. |
2857
|
1394 * lex.h, lex.l: Likewise. |
|
1395 * parse.y: Likewise. |
2856
|
1396 * help.cc, input.cc, lex.l, load-save.cc, parse.y, pt-fcn.cc: |
|
1397 Change callers of symbol_table::lookup to use bool instead of int, |
|
1398 and to make use of default arguments. |
|
1399 |
2850
|
1400 Fri Mar 28 15:33:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1401 |
2852
|
1402 * parse.y (Vwarn_comma_in_declaration): Delete. |
|
1403 (symbols_of_parse): Delete DEFVAR for warn_comma_in_declaration. |
|
1404 (decl1): Don't allow commas in declarations. |
|
1405 |
2850
|
1406 * lsode.cc (struct LSODE_OPTIONS): Handle integer options. |
|
1407 (print_lsode_option_list, set_lsode_option, show_lsode_option): Ditto. |
|
1408 (lsode_option_table): Add element for step limit. |
|
1409 (lsode_user_jacobian): New function. |
|
1410 (Flsode): Allow function name arg to be a 2-element string array |
|
1411 specifying the function and jacobian function. |
|
1412 |
|
1413 * variables.cc (get_global_value, set_global_value): New functions. |
|
1414 |
2846
|
1415 Wed Mar 26 17:08:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1416 |
|
1417 Implement static variable declaration: |
|
1418 |
|
1419 * lex.l (is_keyword): Handle static. |
|
1420 * octave.gperf: Likewise. |
|
1421 * parse.y (Vwarn_comma_in_declaration): Rename from |
|
1422 Vwarn_comma_in_global_decl. |
|
1423 Handle new static command. |
|
1424 * pt-cmd.h, pt-cmd.cc (class tree_decl_command): New base class |
|
1425 for static and global declaration commands. |
|
1426 (class tree_global_command): Derive from tree_decl_command. |
|
1427 (class tree_static_command): New class, derived from tree_decl_command. |
|
1428 * pt-fvc.cc, pt-fvc.h (tree_identifier::mark_as_static): New function. |
|
1429 * pt-misc.h, pt-misc.h (class tree_decl_elt): Rename from tree_global. |
|
1430 (class tree_decl_init_list): Rename from tree_global_init_list. |
|
1431 * pt-pr-code.cc, pt-pr-code.h (tree_print_code::visit_decl_command): |
|
1432 Rename from visit_global_command. |
|
1433 (tree_print_code::visit_decl_elt): Rename from visit_global. |
|
1434 (tree_print_code::visit_decl_init_list): Rename from |
|
1435 visit_global_init_list. |
|
1436 * pt-walk.h (tree_walker::visit_decl_command): Rename from |
|
1437 visit_global_command. |
|
1438 (tree_walker::visit_decl_elt): Rename from visit_tree_global. |
|
1439 (tree_walker::visit_decl_init_list): Rename from |
|
1440 visit_global_init_list. |
|
1441 * variables.cc (link_to_global_variable): Trying to make a static |
|
1442 variable global is an error. |
|
1443 * SLList-misc.cc: Instantiate lists of pointers to tree_decl_elt |
|
1444 objects, not tree_global objects. |
|
1445 * symtab.h, symtab.cc (symbol_record::tagged_static): New field. |
|
1446 (symbol_record::mark_as_static, symbol_record::is_static): |
|
1447 New functions. |
|
1448 * symtab.cc (symbol_record::init_state): Initialize tagged_static. |
|
1449 (symbol_record::clear): Don't clear static variables. |
|
1450 * symtab.cc (push_context): Don't do anything for static variables. |
|
1451 |
2825
|
1452 Tue Mar 25 17:17:17 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1453 |
2881
|
1454 * ov-bool-mat.cc, ov-bool-mat.h, ov-bool.cc, ov-bool.h: New files. |
2832
|
1455 |
2831
|
1456 * defaults.cc (symbols_of_defaults): DEFCONST OCTAVE_HOME. |
|
1457 |
|
1458 * toplev.cc (octave_config_info): Delete use of CXXLIBS. |
|
1459 * oct-conf.h.in: Ditto. |
|
1460 |
2830
|
1461 * octave.cc (maximum_braindamage): Don't bind prefer_zero_one_indexing. |
|
1462 * ov.h: Don't declare Vprefer_zero_one_indexing. |
|
1463 * ov.cc: Don't define Vprefer_zero_one_indexing. |
|
1464 (prefer_zero_one_indexing): Delete. |
|
1465 (symbols_of_value): Delete DEFVAR for prefer_zero_one_indexing. |
|
1466 |
2825
|
1467 * ov.h, ov.cc, ov-base.h, ov-base.cc: Add constructors and |
|
1468 extractors for bool and boolMatrix types. |
|
1469 |
|
1470 * ov.cc (install_types): Register octave_bool and |
|
1471 octave_bool_matrix types. |
|
1472 |
|
1473 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
1474 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
1475 op-s-cm.cc, op-s-m.cc, op-s-s.cc, ov-re-mat.cc: |
|
1476 Return boolMatrix instead of Matrix object. |
|
1477 * ops.h (BOOL_OP3, MX_MX_BOOL_OP): Likewise. |
|
1478 |
|
1479 * op-b-b.h, op-b-b.cc, op-bm-bm.h, op-bm-bm.cc: New files. |
|
1480 * Makefile.in: Add them to the lists. |
|
1481 * ops.cc: Include header files here. |
|
1482 (install_ops): Call install_b_b_ops() and install_bm_bm_ops() here. |
|
1483 |
|
1484 * variables.cc (symbols_of_variables): Don't rely on default |
|
1485 conversion from int to double for value returned from |
|
1486 default_history_size(). |
|
1487 |
|
1488 * pr-output.cc: Include cstdio. |
|
1489 |
|
1490 * parse.y (param_list_end): Fix typo in last change. |
|
1491 |
|
1492 * quad.cc (quad): Cast integer return values to double. |
|
1493 * npsol.cc (show_npsol_option): Likewise. |
|
1494 * qpsol.cc (show_qpsol_option): Likewise. |
|
1495 * file-io.cc (Fsprintf, Ffwrite): Likewise. |
|
1496 |
|
1497 Mon Mar 24 13:11:47 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1498 |
|
1499 * ov-typeinfo.cc (typeinfo): If invoked with an argument, return |
|
1500 the type of the argument as a string. Fix doc string. |
|
1501 |
2821
|
1502 Thu Mar 20 14:47:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1503 |
|
1504 * mk-oct-links (links_dir): Don't use -h option for grep. It's |
|
1505 not needed since we are working on one file at a time anyway. |
|
1506 |
2819
|
1507 Mon Mar 17 10:53:29 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1508 |
|
1509 * lex.l (handle_identifier): When handling indirect_ref, set |
|
1510 lexer_flags.quote_is_transpose to 1 so that a.b' to work as |
|
1511 expected. |
|
1512 |
|
1513 * parse.y (param_list_beg, param_list_end): New nonterminals. |
|
1514 (param_list, param_list1): Use them. |
|
1515 |
2811
|
1516 Wed Mar 12 16:57:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1517 |
|
1518 * Makefile.in (install-strip): New target. |
|
1519 |
2806
|
1520 Mon Mar 10 22:38:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1521 |
|
1522 * Makefile.in (clean): Delete .oct files too. |
|
1523 |
|
1524 * toplev.cc (Vdefault_eval_print_flag): New static variable. |
|
1525 (eval_string): New arg, print. |
|
1526 (Feval): Pass Vdefault_eval_print_flag to eval_string. |
|
1527 (default_eval_print_flag): New function. |
|
1528 (symbols_of_toplev): New function. |
|
1529 |
|
1530 * variables.cc (install_builtin_variables): Call it. |
|
1531 |
|
1532 * pt-exp.h, pt-exp.cc (class tree_boolean_expression): Rename enum |
|
1533 fields `and' and `or' to `bool_and' and `bool_or'. |
|
1534 (tree_unary_expression): Rename enum field `not' to `unot'. |
|
1535 (class tree_binary_expression): Rename enum fields `and' and `or' |
|
1536 to `el_and' and `el_or'. |
|
1537 * parse.y: Change all uses. |
|
1538 |
|
1539 * time.cc (extract_tm): Truncate field values instead of rounding. |
|
1540 (gmtime, localtime): Likewise, for timeval. |
|
1541 |
|
1542 * ov.h (class octave_value): Delete unused variable freeptr. |
|
1543 |
|
1544 * mappers.cc: Delete functions that are already in |
|
1545 liboctave/lo-mappers.cc. |
|
1546 |
|
1547 * oct-strstrm.cc (octave_base_strstream::tell): Use const_cast, |
|
1548 not static_cast. |
|
1549 |
|
1550 * help.cc (help_from_list): Add missing const qualifiers. |
|
1551 * help.h (struct help_list): Likewise. |
|
1552 * lex.l (match_any, plot_style_token): Likewise. |
|
1553 * load-save.cc (extract_keyword, ascii_save_type): Likewise. |
|
1554 * oct-hist.cc (mk_tmp_hist_file): Likewise. |
|
1555 * octave.cc (execute_startup_files): Likewise. |
|
1556 * octave.gperf (struct octave_kw): Likewise. |
|
1557 * pr-output.cc (pr_any_float): Likewise. |
|
1558 * pt-mvr.cc (tree_index_expression::eval_error): Likewise. |
|
1559 * pt-exp-base.h, pt-exp.h, pt-exp.cc: Likewise. |
|
1560 * parse.y: Likewise. |
|
1561 |
2800
|
1562 Sun Mar 9 03:46:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1563 |
2806
|
1564 * pt-exp-base.h (tree_expression): Delete extra comma at end of list. |
|
1565 |
|
1566 * dirfns.cc error.cc file-io.cc fsolve.cc input.cc load-save.cc |
|
1567 npsol.cc pt-fcn.cc qpsol.cc quad.cc syscalls.cc toplev.cc |
|
1568 variables.cc: Eliminate embedded newlines in string constants. |
|
1569 |
|
1570 * Map.cc, data.cc, dirfns.cc, dynamic-ld.cc, file-io.cc, |
|
1571 fsolve.cc, getgrent.cc, getpwent.cc, getrusage.cc, help.cc, |
|
1572 input.cc, load-save.cc, mappers.cc, minmax.cc, npsol.cc, |
|
1573 oct-fstrm.cc, oct-procbuf.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
1574 oct-stream.cc, oct-stream.h, oct-strstrm.cc, octave.cc, |
|
1575 ov-base.h, ov-range.cc, ov-typeinfo.cc, ov.cc, pr-output.cc, |
|
1576 pt-cmd.cc, pt-exp.cc, pt-fcn.cc, pt-fvc.cc, pt-mat.cc, |
|
1577 pt-misc.cc, pt-plot.cc, qpsol.cc, quad.cc, sort.cc, strfns.cc, |
|
1578 symtab.cc, syscalls.cc, sysdep.cc, time.cc, toplev.cc, |
|
1579 unwind-prot.cc, unwind-prot.h, variables.cc, xpow.cc: |
|
1580 Use `static_cast<T> (val)' instead of old C-style `(T) val' casts. |
2800
|
1581 |
2799
|
1582 Sat Mar 8 02:35:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1583 |
|
1584 * load-save.cc (save_ascii_data, save_three_d): Where appropriate, |
|
1585 use bool instead of int. |
|
1586 (save_binary_data, save_mat_binary_data, save_ascii_data): |
|
1587 Print warning instead of error for wrong type arg. |
|
1588 |
|
1589 * gripes.cc (gripe_wrong_type_arg): New arg, is_error. |
|
1590 |
|
1591 * pt-plot.cc (save_in_tmp_file): Call save_ascii_data with bool |
|
1592 arg, not int. |
|
1593 |
2797
|
1594 Fri Mar 7 00:56:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1595 |
|
1596 * dassl.cc (show_dassl_option): For values that are determined |
|
1597 automatically, return a string instead of a magic value (-1.0). |
|
1598 * fsolve.cc (show_fsolve_option): Likewise. |
|
1599 * lsode.cc (show_lsode_option): Likewise. |
|
1600 * npsol.cc (show_npsol_option): Likewise. |
|
1601 * qpsol.cc (show_qpsol_option): Likewise. |
|
1602 |
|
1603 * variables.cc (extract_function): New function. |
|
1604 * dassl.cc (Fdassl): Use it instead of is_valid_function. |
|
1605 * fsolve.cc (Ffsolve): Likewise. |
|
1606 * npsol.cc (Fnpsol): Likewise. |
|
1607 * qpsol.cc (Fqpsol): Likewise. |
|
1608 * quad.cc (Fquad): Likewise. |
|
1609 |
2795
|
1610 Thu Mar 6 20:07:24 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1611 |
|
1612 * sighandlers.cc (my_friendly_exit, octave_new_handler, |
|
1613 sigfpe_handler, sigpipe_handler): Don't all error() or warning(). |
|
1614 |
|
1615 * pager.cc (pager_death_handler): Don't try to clear pager, just |
|
1616 print message to cerr. |
|
1617 (do_sync): If the status of the pager is bad or it looks like it |
|
1618 is dead, restore the interrupt handler. |
|
1619 |
|
1620 * load-save.cc (extract_keyword (istream&, char*, int&)): |
|
1621 Move declaration of buf inside loop, to avoid deleting its guts |
|
1622 and then trying to reuse it. |
|
1623 (extract_keyword (istream&, char*)): Likewise. |
|
1624 |
2790
|
1625 Tue Mar 4 20:36:53 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1626 |
2791
|
1627 * pt-fcn.cc (tree_function::eval): Protect function from being |
|
1628 redefined while it is being evaluated. |
|
1629 (unprotect_function): New function, for use with unwind_protect stuff. |
|
1630 * pt-fcn.h (tree_function::symtab_entry): New data member. |
|
1631 (tree_function::init): Initialize it to 0. |
|
1632 (tree_function::stash_symtab_ptr): New function. |
|
1633 * parse.y (frob_function_def): Stash pointer to function's |
|
1634 symbol_record in the function definition. |
|
1635 |
|
1636 * symtab.cc (symbol_record::read_only_error): New argument, |
|
1637 action. Change all callers. |
|
1638 (symbol_record::rename): Don't allow read-only symbols to be renamed. |
|
1639 |
2790
|
1640 * variables.cc (Fexist): Don't let files with `.' in their names |
|
1641 confuse us. |
|
1642 |
|
1643 * symtab.cc (valid_identifier (const string&)): New function. |
|
1644 |
2779
|
1645 Sat Mar 1 15:23:14 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2775
|
1646 |
|
1647 * Version 2.0.5 released. |
|
1648 |
2779
|
1649 Sat Mar 1 01:34:08 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1650 |
|
1651 * Makefile.in (stamp-oct-links): New target. Make links in build |
|
1652 directory too, so that the tests will work. |
|
1653 |
2777
|
1654 * quad.cc: If quad is defined, undefine it. |
|
1655 |
2775
|
1656 * octave.cc: If WITH_KPATHSEARCH is defined, don't define |
|
1657 program_invocation_name or program_invocation_short_name. |
2774
|
1658 |
|
1659 * strftime.c: Update to current version from FSF. |
|
1660 * time.cc (Fstrftime): Call strftime with buf = 0 to get buffer |
|
1661 size, then call again to actually format the time struct. |
|
1662 |
2762
|
1663 Fri Feb 28 01:49:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1664 |
2764
|
1665 Implement switch statement: |
|
1666 |
|
1667 * parse.y (Vwarn_variable_switch_label): New static variable. |
|
1668 (warn_variable_switch_label): New function. |
|
1669 (symbols_of_parse): Provide warn_variable_switch_label as Octave |
|
1670 variable here. |
|
1671 (make_switch_case, finish_switch_command): New functions. |
|
1672 (maybe_warn_variable_switch_label): New function. |
|
1673 (end_error): Handle endswitch. |
|
1674 (switch_command, case_list, case_list1, switch_case, default_case): |
|
1675 New nonterminals. |
|
1676 (command): Add switch_command here. |
|
1677 * lex.l (is_keyword): Handle switch, case, otherwise, and endswitch. |
|
1678 * octave_gperf: Recognize switch, case, otherwise, and endswitch. |
|
1679 * token.h (end_tok_type): New item, switch_end. |
|
1680 * pt-cmd.cc (tree_switch_command): New class. |
|
1681 * pt-misc.cc (tree_switch_case, tree_switch_case_list): New classes. |
|
1682 * pt-pr-code.cc (tree_print_code::visit_switch_case, |
|
1683 tree_print_code::visit_switch_case_list, |
|
1684 tree_print_code::visit_switch_command): New functions. |
|
1685 * pt-walk.h (tree_walker::visit_switch_case, |
|
1686 tree_walker::visit_switch_case_list, |
|
1687 tree_walker::visit_switch_command): New pure virtual declarations. |
|
1688 Implement new switch statement. |
|
1689 * SLList-misc.cc: Instantiate lists of pointers to |
|
1690 tree_switch_case objects too. |
|
1691 |
|
1692 * lex.h, lex.l, parse.y: Delete all references to lexer_flags::iffing. |
|
1693 |
2762
|
1694 * syswait.h: Include sys/wait.h on NeXT systems, but don't use the |
|
1695 WIFEXTED, WEXITSTATUS, and WIFSIGNALLED macros defined there. |
|
1696 Also define waitpid in terms of wait4. From Rex A. Dieter |
|
1697 <rdieter@math.unl.edu>. |
|
1698 |
2759
|
1699 Wed Feb 26 16:43:31 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1700 |
|
1701 * oct-stream.cc (octave_base_stream::do_scanf): Don't report an |
|
1702 error if a conversion fails or we reach EOF. |
|
1703 |
2745
|
1704 Tue Feb 25 22:21:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1705 |
|
1706 * time.cc (strftime): increase initial buffer size. |
|
1707 |
|
1708 Mon Feb 24 17:49:21 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1709 |
|
1710 * pt-fvc.cc (tree_builtin::eval): Enable checking for max number |
|
1711 of arguments. |
|
1712 |
|
1713 * error.cc (handle_message): Don't fail if args is empty. |
|
1714 |
|
1715 Sun Feb 23 22:42:52 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1716 |
|
1717 * lex.h (lexical_feedback::looking_at_return_list): New field. |
|
1718 (lexical_feedback::looking_at_parameter_list): Ditto. |
|
1719 * lex.l (lexical_feedback::init): Initialize them. |
|
1720 (handle_identifier): Use them. |
|
1721 * parse.y: Likewise. |
|
1722 |
2712
|
1723 Fri Feb 21 15:35:18 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1724 |
2716
|
1725 * lex.l: Require flex 2.5 or later (we really want 2.5.4 or later, |
|
1726 but there seems to be no good way to check the patchlevel). |
|
1727 |
2712
|
1728 * oct-stream.cc (octave_base_stream::oscanf): Instead of returning |
|
1729 an error, just quit processing after a conversion fails. |
|
1730 |
2709
|
1731 Thu Feb 20 02:58:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2702
|
1732 |
|
1733 * Version 2.0.4 released. |
|
1734 |
2706
|
1735 Wed Feb 19 10:30:14 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1736 |
2705
|
1737 * sighandlers.cc (octave_ignore_interrupts, |
|
1738 octave_catch_interrupts, octave_set_interrupt_handler): |
|
1739 Return old value, not pointer to static data. Fix all uses. |
|
1740 |
|
1741 * sighandlers.h (octave_interrupt_handler): Move declaration here. |
|
1742 * sighandlers.cc: From here. |
|
1743 |
|
1744 * toplev.cc: Undo previous change. |
|
1745 |
2702
|
1746 * lex.l (handle_identifier): Allow commands like ls, save, etc. to |
|
1747 also be used as simple variable names. Also make it possible to |
|
1748 use the normal function call syntax to invoke them. |
|
1749 |
2693
|
1750 Tue Feb 18 09:22:04 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2689
|
1751 |
2702
|
1752 * Makefile.in (%.oct:%.o, %.oct:pic/%.o): Use $(SH_LDFLAGS) here. |
|
1753 |
2690
|
1754 * Version 2.0.3 released. |
|
1755 |
2693
|
1756 Tue Feb 18 00:27:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1757 |
|
1758 * toplev.cc (run_command_and_return_output): |
|
1759 Block SIGCHLD while running subprocess. |
|
1760 (cleanup_iprocstream): Unblock it here. |
|
1761 |
|
1762 * sighandlers.h (BLOCK_SIGNAL, BLOCK_CHILD, UNBLOCK_CHILD): Move here. |
|
1763 * sighandlers.cc: From here. |
|
1764 |
2692
|
1765 * toplev.cc (system): Shift then mask exit status. |
|
1766 |
|
1767 * help.cc (try_info): Shift first, then mask exit status. |
|
1768 |
2689
|
1769 * toplev.cc (octave_config_info): Handle option argument. |
|
1770 |
2686
|
1771 Fri Feb 14 16:23:30 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1772 |
2687
|
1773 * oct-stream.cc (octave_base_stream::do_scanf): Don't forget to |
|
1774 check to see if the result matrix needs resizing! |
|
1775 |
2686
|
1776 * Makefile.in (bin-dist): Don't write empty strings to LIBRARIES. |
|
1777 |
2669
|
1778 Thu Feb 13 03:02:08 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1779 |
2676
|
1780 * Makefile.in (stamp-prereq): Depend on stamp-picdir. |
|
1781 (all): Don't depend on stamp-prereq or stamp-picdir. |
|
1782 (stamp-tinst, stamp-interp, libtinst.a, liboctinterp.a): |
|
1783 Do depend on stamp-prereq. |
|
1784 (stamp-picdir): Silence noise about making pic. |
|
1785 (stamp-tinst, stamp-interp): Use $(SH_LD) $(SH_LDFLAGS) instead of |
|
1786 $(CXX) -shared. |
|
1787 |
2675
|
1788 * oct-conf.h.in: Reinstate RLD_FLAG. |
|
1789 * toplev.cc (octave_config_info): Likewise. |
|
1790 |
2672
|
1791 * data.cc (map_d_m, map_m_d, map_m_m): Rename from map. |
|
1792 (Fatan2): Use new function names. |
|
1793 |
|
1794 * pt-fvc.cc (apply_mapper_fcn): Use member function map() instead |
|
1795 of friend function. |
|
1796 |
2669
|
1797 * gripes.cc (gripe_wrong_type_arg (const char*, const string&)): |
|
1798 New function. |
|
1799 |
|
1800 Wed Feb 12 17:27:53 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1801 |
|
1802 * syscalls.cc (symbols_of_syscalls): Add O_ASYNC and O_SYNC. |
|
1803 |
|
1804 Mon Feb 10 01:22:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1805 |
|
1806 * dirfns.cc (Freaddir, Fmkdir, Frmdir, Frename): |
|
1807 Also return status and error message. |
|
1808 |
|
1809 * syscalls.cc (Fdup2, Fexec, Ffork, Ffcntl, Funlink, Fmkfifo, |
|
1810 Fpipe, Fwaitpid): Also return error message. |
|
1811 |
2664
|
1812 Sat Feb 8 17:16:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1813 |
2665
|
1814 * pt-exp.cc (tree_simple_assignment_expression::eval): Return |
|
1815 value of RHS, but (if printing) print complete value of LHS. |
|
1816 |
2664
|
1817 * pr-output.cc (octave_print_internal): Print a new line for empty |
|
1818 string matrices. |
|
1819 |
2663
|
1820 Wed Feb 5 14:30:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1821 |
|
1822 * oct-stream.cc (scanf_format_list::process_conversion): Accept |
|
1823 but don't actually use h, l, and L modifiers. Always insert l |
|
1824 modifier for floating point conversions. |
|
1825 |
2652
|
1826 Fri Jan 31 13:55:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1827 |
|
1828 * pager.cc (do_sync): Always flush the cout stream after writing. |
|
1829 |
2643
|
1830 Wed Jan 29 08:25:29 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1831 |
2648
|
1832 * defaults.cc (exec_path): Don't include bin_dir in std_path. |
|
1833 |
2646
|
1834 * pager.cc (do_sync): Flush the cout stream after writing if |
|
1835 running in interactive or forced_interactive mode. |
|
1836 |
|
1837 * mk-oct-links: Rename from mk-oct-links.in. |
|
1838 Don't use symbolic links. |
|
1839 * Makefile.in: Distribute mk-oct-links, not mk-oct-links.in |
|
1840 (mk-oct-links): Delete target. |
|
1841 (install-oct, bin-dist): Don't depend on mk-oct-links. |
|
1842 Run $(srcdir)/mk-oct-links, not ./mk-oct-links. |
|
1843 |
2643
|
1844 * qr.cc (qr): Doc fix. |
|
1845 |
2638
|
1846 Tue Jan 28 10:48:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1847 |
|
1848 * Makefile.in (install-inc): Create a relative symbolic link. |
|
1849 (install-bin): Create a relative symbolic link. |
|
1850 |
2630
|
1851 Mon Jan 27 12:12:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1852 |
2634
|
1853 * Version 2.0.2 released. |
|
1854 |
|
1855 * Makefile.in (CXXFLAGS_NO_PT_FLAGS): Rename from XALL_CXXFLAGS. |
|
1856 Substitute bsd_gcc_kluge_targets_frag. |
|
1857 |
2630
|
1858 * sysdep.cc (Fsleep): New function. |
|
1859 (Fusleep): New function. |
|
1860 |
|
1861 * toplev.cc (octave_config_info): Don't include RLD_FLAG. |
|
1862 * oct-conf.h.in: Don't define RLD_FLAG |
|
1863 |
2626
|
1864 Sun Jan 26 19:41:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1865 |
|
1866 * sighandlers.cc (sigchld_handler): Block SIGCHLD while |
|
1867 sigchld_hander is running. |
|
1868 |
2624
|
1869 Sat Jan 25 22:36:39 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1870 |
|
1871 * Makefile.in (bin-dist): Update for 2.x. |
|
1872 |
2621
|
1873 Fri Jan 24 10:05:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1874 |
|
1875 * mk-oct-links.in: New arg, -p, to just print list of files to link. |
|
1876 |
|
1877 * lex.l (handle_number): Convert `D' or `d' exponents to `e' |
|
1878 before scanning. |
|
1879 |
2620
|
1880 Thu Jan 23 10:00:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1881 |
|
1882 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_no_op_command): |
|
1883 New function. |
|
1884 * pt-cmd.h, pt-cmd.cc (tree_no_op_command): New class. |
|
1885 * parse.y (make_break_command, make_continue_command, |
|
1886 make_return_command): Where they don't really make sense, turn |
|
1887 these commands into no-ops. Accept return and break if reading a |
|
1888 script file. |
|
1889 * toplev.cc (parse_and_execute): Handle return and break in script |
|
1890 files. Quit executing commands if an error occurs when reading a |
|
1891 script file. Set global_command to 0 after deleting it. |
|
1892 (main_loop): If not interactive or forced_interactive, handle |
|
1893 break and return, and quit executing commands if an error occurs. |
|
1894 Set global_command to 0 after deleting it. |
|
1895 * error.cc (Ferror): Doc fix. |
|
1896 * pt-walk.h (tree_walker): Add declaration for visit_no_op_command. |
|
1897 |
2618
|
1898 Wed Jan 22 20:54:12 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1899 |
|
1900 * input.cc (gnu_readline): If not using readline, flush |
|
1901 rl_outstream after printing prompt. |
|
1902 (octave_gets): Also call flush_octave_stdout() if |
|
1903 forced_interactive, not just if interactive. |
|
1904 (do_input_echo): If forced_interactive, only echo prompt and |
|
1905 command line if also reading a script file. |
|
1906 |
2616
|
1907 Tue Jan 21 23:02:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1908 |
|
1909 * SLList.h: Include "BaseSLList.h", not <BaseSLList.h>. |
|
1910 |
2610
|
1911 Mon Jan 20 11:11:12 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1912 |
2614
|
1913 * lex.l (token_stack): Don't declare static. |
|
1914 * pt-plot.cc (tmp_files): Likewise. |
|
1915 * toplev.cc (octave_atexit_functions): Likewise. |
|
1916 * unwind-prot.cc (unwind_protect_list): Likewise. |
|
1917 |
2613
|
1918 * ops.h (MX_MX_BOOL_OP): Correctly handle case of one or both |
|
1919 arguments being empty. Change all callers. |
|
1920 |
|
1921 * oct-stream.cc (printf_value_cache::looking_at_string): |
|
1922 Handle empty strings correctly now that they are 0x0. |
|
1923 |
2610
|
1924 * file-io.cc: Don't include "syswait.h" here. |
|
1925 |
|
1926 Sun Jan 19 22:38:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1927 |
|
1928 * oct-stream.h (octave_base_stream::seek): Declare offset arg as |
|
1929 streamoff, not streampos. |
|
1930 (octave_stream::seek): Likewise. |
|
1931 * oct-strstrm.h (octave_base_strstream::seek): Likewise. |
|
1932 * oct-stdstrm.h (octave_base_stdiostream::seek): Likewise. |
|
1933 * oct-iostrm.h (octave_base_iostream::seek): Likewise. |
|
1934 * oct-fstrm.h (octave_fstream::seek): Likewise. |
|
1935 |
2609
|
1936 Fri Jan 17 18:13:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1937 |
|
1938 * file-io.cc (Ffflush): Handle stdout as a special case. |
|
1939 |
|
1940 * oct-stream.cc (octave_stream_list::do_get_file_number): |
|
1941 Do the work for octave_stream::get_file_number. |
|
1942 (octave_stream_list::get_file_number): Convert to static function. |
|
1943 |
2608
|
1944 Wed Jan 8 11:42:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1945 |
|
1946 * log.cc (sqrtm): For complex arg case, compute sqrt, not log. |
|
1947 |
2602
|
1948 Tue Jan 7 00:16:41 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1949 |
|
1950 * Version 2.0.1 released. |
|
1951 |
|
1952 Mon Jan 6 00:00:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1953 |
|
1954 * pt-mat.cc (tm_row_const_rep::all_mt): New variable. |
|
1955 (tm_row_const::all_empty): New function. |
|
1956 (tm_row_const::tm_row_const_rep::init): Set all_mt here. |
|
1957 (tm_const::all_mt): New variable. |
|
1958 (tm_const::all_emtpy): New function. |
|
1959 (tm_const::init): Set all_mt here. |
|
1960 (tree_matrix::eval): Return an empty matrix if the list contains |
|
1961 only empty elements. If it contains only empty strings, return an |
|
1962 empty string. |
|
1963 |
2601
|
1964 Sun Jan 5 12:50:25 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1965 |
|
1966 * ops.h (SC_MX_BOOL_OP, MX_SC_BOOL_OP): New arg, empty_result. |
|
1967 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
1968 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
1969 op-s-cm.cc, op-s-m.cc, op-str-str.cc: Change all uses of |
|
1970 SC_MX_BOOL_OP and MX_SC_BOOL_OP macros. Return correct results |
|
1971 for empty matrix cases. |
|
1972 |
|
1973 * pt-fcn.cc (tree_function::eval): If Vdefine_all_return_values is |
|
1974 true, initialize return values before evaluating function, for |
|
1975 compatibility with Matlab. |
|
1976 |
|
1977 * oct-stream.cc (get_size): Correctly set size when arg is scalar. |
|
1978 |
|
1979 Thu Jan 2 12:40:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1980 |
|
1981 * Makefile.in (install-oct): Quote $(OCT_FILES) in for loop to |
|
1982 avoid syntax error from ksh. |
|
1983 |
|
1984 * pr-output.cc (octave_print_internal): Avoid unused parameter |
|
1985 warning from gcc. |
|
1986 |
2600
|
1987 Thu Dec 19 12:13:42 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1988 |
|
1989 * oct-stream.cc (octave_base_stream::do_scanf): |
|
1990 Don't treat %l{e,f,g} differently from %{e,f,g}. |
|
1991 (octave_base_stream::do_oscanf): Likewise. |
|
1992 |
|
1993 * sighandlers.cc (sigchld_handler): Fix typos. |
|
1994 |
2598
|
1995 Wed Dec 18 20:17:23 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1996 |
2599
|
1997 * file-io.cc (Ffgetl, Ffgets): Also return number of characters read. |
|
1998 |
|
1999 * ov-range.cc (octave_range::not): New function. |
|
2000 * ov-range.h (octave_range::uminus): New function. |
|
2001 |
2598
|
2002 * BaseSLList.cc: Include error.h. |
|
2003 (BaseSLList::error): Call ::error() to process error message. |
|
2004 |
2589
|
2005 Fri Dec 13 02:38:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2006 |
|
2007 * ov.cc (octave_value::convert_and_assign): Preserve lhs value if |
|
2008 assignment fails. |
|
2009 |
2586
|
2010 Wed Dec 11 12:33:16 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2011 |
|
2012 * pt-plot.cc (GPLOT_CMD_END): Don't put semicolons at the end of |
|
2013 each plot command; it causes trouble with gnuplot 3.5. |
|
2014 |
2580
|
2015 Tue Dec 10 00:31:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2016 |
2583
|
2017 * Version 2.0 released. |
|
2018 |
2584
|
2019 * pr-output.cc (set_format_style): Don't try to access argv unless |
|
2020 argc > 1. |
|
2021 |
2580
|
2022 * SLList-expr.cc SLList-misc.cc SLList-plot.cc SLList-str.cc |
|
2023 SLList-tc.cc SLList-tm.cc SLList.h SLStack-i.cc SLStack-pc.cc |
|
2024 SLStack-str.cc SLStack-sym.cc SLStack-tok.cc SLStack-ue.cc |
|
2025 SLStack-ui.cc, pt-mat.cc: Include Stack.h, Stack.cc, SLStack.cc, |
|
2026 and SLList.cc as necessary. |
|
2027 |
|
2028 * Stack.cc, SLStack.cc, SLList.cc: New files. |
|
2029 * Makefile.in (SOURCES): Add them to the list. |
|
2030 |
2575
|
2031 Mon Dec 9 12:03:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2032 |
2577
|
2033 * Makefile.in (install-bin): Use $(EXE) suffix so install will |
|
2034 find the right file on cygwin32 systems. |
|
2035 |
2575
|
2036 * ov.h: Declare proper form of do_binary_op as friend to |
|
2037 octave_value class. |
|
2038 |
2572
|
2039 Sat Dec 7 22:00:10 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2040 |
|
2041 * oct-stream.cc (do_printf_conv, do_scanf_conv, |
|
2042 do_oscanf_num_conv, do_oscanf_str_conv): Convert to real |
|
2043 functions instead of CPP macros, using templates where necessary. |
|
2044 (do_oscanf_num_conv, do_oscanf_str_conv): Correctly handle |
|
2045 discarded values. |
|
2046 |
2569
|
2047 Fri Dec 6 00:20:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2048 |
2572
|
2049 * Version 1.94. |
|
2050 |
2571
|
2051 * Map-*.cc, SLList-*.cc, SLStack-*.cc: Include config.h. |
|
2052 |
|
2053 * ov.h: Don't include SLList.h. |
|
2054 |
|
2055 * SLStack.cc: Delete. Move everything to SLStack.h. |
|
2056 |
|
2057 * BaseSLList.h, BaseSLList.cc: New files. Split out the |
|
2058 non-template base class parts of SLList. |
|
2059 |
2569
|
2060 * Makefile.in (TEMPLATE_SRC): Delete. Move files to SOURCES. |
|
2061 * Map.h, Map.cc: Add #pragma interface/implementation. |
|
2062 * SLStack.h, SLStack.cc: Add #pragma interface/implementation. |
|
2063 |
|
2064 * SLList.h, SLList.cc: New files, from libg++, but with #pragma |
|
2065 interface/implementation. |
|
2066 * Makefile.in (SOURCES): Add SLList.cc. |
|
2067 (INCLUDES): Add SLList.h. |
|
2068 |
2566
|
2069 Thu Dec 5 18:36:44 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2070 |
|
2071 * octave.cc: Don't include sun-utils.h. |
|
2072 |
2563
|
2073 Tue Dec 3 23:47:09 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2074 |
|
2075 * op-str-str.cc (eq, ne): Handle operations with scalars. |
|
2076 |
2555
|
2077 Thu Nov 21 12:30:36 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2078 |
|
2079 * ov-str-mat.h (octave_char_matrix_str): Provide transpose and |
|
2080 hermitian operators. |
|
2081 * ov-ch-mat.h (octave_char_matrix): Likewise. |
|
2082 |
2548
|
2083 Wed Nov 20 00:35:57 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2084 |
2554
|
2085 * sighandlers.h (struct octave_interrupt_handler): Provide |
|
2086 forward declaration here. |
|
2087 * sighandlers.cc (octave_interrupt_handler): New struct. |
|
2088 (octave_catch_interrupts): Rename from catch_interrupts. |
|
2089 (octave_ignore_interrupts, octave_set_interrupt_handler): |
|
2090 New functions. |
|
2091 * help.cc, oct-hist.cc, pager.cc, toplev.cc: Use new functions for |
|
2092 handling interrupts so that we can hide the details of whether or |
|
2093 not we have to deal with SIGBREAK. |
|
2094 |
|
2095 * pt-plot.cc [! HAVE_POSIX_SIGNALS] (open_plot_stream): |
|
2096 Simply ignore and restore the interrupt handler here. |
|
2097 |
|
2098 * sighandlers.cc (MAYBE_REINSTALL_SIGHANDLER): New macro. Use it |
|
2099 instead of always checking MUST_REINSTALL_SIGHANDLERS everywhere. |
|
2100 (sigchld_handler): If octave_child_list is empty, wait for any |
|
2101 child, but don't hang, and don't collect status info. |
|
2102 [__EMX__] (sigchld_handler): Save and restore handlers for SIGINT, |
|
2103 SIGBREAK, and SIGCHLD. Ignore them while waiting on children. |
|
2104 (install_signal_handlers): If SIGBREAK exists, handle it like SIGINT. |
|
2105 |
2552
|
2106 * toplev.cc [USE_READLINE] (clean_up_and_exit): |
|
2107 Call rl_deprep_terminal() to restore terminal settings. |
|
2108 |
|
2109 * sysdep.cc [__EMX__ && OS2] (Fextproc): New command. |
|
2110 [__EMX__ && OS2] (FEXTPROC): Alias for Fextproc. |
|
2111 |
|
2112 * Version 1.93. |
|
2113 |
2549
|
2114 * sysdep.cc (octave_chdir): [__EMX__]: Make copy of string before |
|
2115 converting to upper case. |
|
2116 |
2548
|
2117 * getgrent.cc (mk_gr_map): Only set the passwd field if |
|
2118 HAVE_GR_PASSWD is defined. |
|
2119 |
2533
|
2120 Tue Nov 19 12:01:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2121 |
2546
|
2122 * sysdep.cc (OS2_init): New function. |
|
2123 [__EMX__] (sysdep_init): Call it. |
|
2124 |
2542
|
2125 * lex.l (plot_style_token): Add new plot styles for gnuplot 3.6. |
2543
|
2126 * pt-plot.cc (subplot_style::columns_ok): Rename from |
|
2127 subplot_style::errorbars. Recognize more styles and do a better |
|
2128 job of diagnosing column number/style mismatches. |
2542
|
2129 |
2536
|
2130 * sighandlers.cc (my_friendly_exit): If we are called twice, try |
|
2131 to remove the signal handler for SIGABRT and the call abort (). |
|
2132 |
2534
|
2133 * help.cc (Ftype): If a function is defined from a file and |
|
2134 transformed text has not been requested, just print the contents |
|
2135 of the file. |
|
2136 |
2533
|
2137 * parse.y (fold): New functions for constant folding for binary |
|
2138 and unary expressions. Keep track of original text even when |
|
2139 transformations occur. |
|
2140 (make_binary_op, make_boolean_op, make_unary_op): Use them. |
|
2141 (finish_colon_expression, finish_matrix): Keep track of original |
|
2142 text even when transformations occur. |
|
2143 |
|
2144 * help.cc (Ftype): Don't mess with Vps4. |
|
2145 Handle new option `-transformed'. |
|
2146 |
|
2147 * pt-const.h, pt-const.cc (tree_constant::print): |
|
2148 New arg, pr_orig_text. |
|
2149 |
|
2150 * pt-exp.h, pt-exp.cc (tree_colon_expression::is_range_constant): |
|
2151 Delete. |
|
2152 |
|
2153 * pt-exp-base.h (tree_expression::original_text): New virtual function. |
|
2154 pt-exp-base.cc (tree_expression::original_text): Default version. |
|
2155 |
|
2156 * pt-pr-code.h (tree_print_code::print_original_text, |
|
2157 tree_print_code::prefix): New fields. |
|
2158 * pt-pr-code.cc (tree_print_code::visit_constant): Pass |
|
2159 print_original_text to tree_constant::print(). |
|
2160 (tree_print_code::indent): Use prefix instead of Vps4. |
|
2161 * pt-fcn.cc (tree_function::print_function_header, |
|
2162 tree_function::print_function_trailer): Pass Vps4 to |
|
2163 tree_print_code_constructor for prefix. |
|
2164 * pt-misc.cc (tree_statement::maybe_echo_code): Pass Vps4 to |
|
2165 tree_print_code_constructor for prefix. |
|
2166 |
|
2167 * pt-mat.h, pt-mat.cc (tree_matrix::all_elements_are_constant): |
|
2168 Rename from is_matrix_constant. |
|
2169 (tree_matrix_row::all_elements_are_constant): Likewise. |
|
2170 Change all callers. |
|
2171 |
|
2172 Mon Nov 18 14:13:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2173 |
|
2174 * Makefile.in (install-inc): Try harder to create the link from |
|
2175 include/octave to include/octave-VERSION. |
|
2176 |
2524
|
2177 Sun Nov 17 14:14:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2178 |
2527
|
2179 * Makefile.in (parse.cc): Expect 13 shift/reduce conflicts. |
2526
|
2180 |
2525
|
2181 * parse.y (set_stmt_print_flag): New function. |
|
2182 (sep_type): New member for bison %union declaration. |
|
2183 Simplify rules for statement lists keeping track of the type of |
|
2184 the first separator in the values associated with the |
|
2185 nonterminals for the separators. |
|
2186 |
2524
|
2187 * lex.l (handle_identifier): Set lexer_flags.doing_set if the |
|
2188 token is "gset", not "set". |
|
2189 |
|
2190 Sat Nov 16 21:41:26 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2191 |
|
2192 * Makefile.in (parse.cc, lex.cc): Add special rules for these files. |
|
2193 Delete pattern rules for .y and .l files. |
|
2194 |
2522
|
2195 Fri Nov 15 13:48:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2196 |
2523
|
2197 * pt-plot.cc: Put semicolons at the ends of all plot commands. |
|
2198 |
2522
|
2199 * defaults.cc (subst_octave_home): Start subsequent searchs from |
|
2200 the end of the replaced text. |
|
2201 |
|
2202 * pr-output.cc (pr_any_float): Kluge for SCO systems. |
|
2203 |
|
2204 * pr-output.cc (pr_any_float, pr_complex): Don't declare inline. |
|
2205 |
|
2206 * mappers.cc: Include lo-ieee.h, for isinf and isnan on SCO |
|
2207 systems. |
|
2208 |
2512
|
2209 Thu Nov 14 00:06:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2210 |
2520
|
2211 * pt-plot.cc (Fgset, Fgshow): New commands. |
|
2212 (Fshow): Print warning and call gshow. |
|
2213 (Fset): Print warning and call gset. |
|
2214 |
2517
|
2215 * variables.cc (parse_fcn_file): Add unwind-protect for file |
|
2216 pointer, so the file is always closed. |
|
2217 (get_help_from_file): Likewise. |
|
2218 * toplev.cc (parse_and_execute): Likewise. |
|
2219 |
2516
|
2220 * Makefile.in (install-oct): Depend on mk-oct-links. |
|
2221 (mk-oct-links): New target. |
|
2222 |
2512
|
2223 * Version 1.92. |
|
2224 |
2508
|
2225 Wed Nov 13 11:13:22 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2226 |
2512
|
2227 * sighandlers.cc (sys_siglist): [__EMX__]: Add definitions. |
|
2228 |
|
2229 * octave.cc (execute_startup_files): Allow init file name ot be |
|
2230 specified by an environment variable. |
|
2231 |
|
2232 * dirfns.cc (make_absolute): [__EMX__]: Path is already absolute |
|
2233 if it begins with any character followed by a colon. |
|
2234 |
2511
|
2235 * load-save.cc (read_mat_ascii_matrix, get_lines_and_columns, |
|
2236 get_complete_line): New functions, for reading headless text files. |
|
2237 (load_save_format): Add LS_MAT_ASCII, for headless text files. |
|
2238 (do_load): Handle LS_MAT_ASCII files. |
|
2239 Thanks to Mel Melchner <mjm@research.att.com> for initial version |
|
2240 of this code. |
|
2241 |
2508
|
2242 * sysdep.cc: Conditionally include ieeefp.h. |
|
2243 (BSD_init, SCO_init): New functions. |
|
2244 (sysdep_init): Conditionally call them here. |
|
2245 |
2499
|
2246 Tue Nov 12 00:14:56 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2247 |
2508
|
2248 * pt-plot.cc (open_plot_stream): Don't block SIGCHLD. |
|
2249 |
2499
|
2250 * load-save.cc (read_binary_data): When reading string arrays, be |
|
2251 sure to create an octave_char_matrix_str object, not just an |
|
2252 octave_char_matrix object. |
|
2253 (read_ascii_data): Likewise. |
|
2254 |
2497
|
2255 Mon Nov 11 22:52:58 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2256 |
|
2257 * load-save.cc (read_binary_data): Don't forget teminating NUL for |
|
2258 string that we plan to insert. |
|
2259 (read_ascii_data): Likewise. |
|
2260 |
2495
|
2261 Sun Nov 10 16:58:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2262 |
2496
|
2263 * dirfns.cc (Ffnmatch): New function. |
|
2264 |
2495
|
2265 * octave.cc (intern_argv): Use new string_vector constructor. |
|
2266 |
|
2267 * ov-str-mat.cc (octave_char_matrix_str::all_strings): Have |
|
2268 charMatrix::row_as_string() strip trailing whitespace. |
|
2269 |
|
2270 * dirfns.cc (Fglob): new function. |
|
2271 |
|
2272 * sysdep.cc (oct_tilde_expand): Provide version that works on |
|
2273 string vectors too. |
|
2274 (Ftilde_expand): Work on string vector args. |
|
2275 |
|
2276 * load-save.cc (save_binary_data): Call char_matrix_value() to |
|
2277 extract charMatrix from octave_value object, not all_strings(). |
|
2278 (save_ascii_data): Likewise. |
|
2279 * pt-mat.cc (tree_matrix::eval): Likewise. |
|
2280 |
|
2281 * ov.h (octave_value::all_strings): Return string_vector, not |
|
2282 charMatrix. |
|
2283 * ov-base.cc (octave_base_value::all_strings): Likewise. |
|
2284 * ov-str-mat.h, ov-str-mat.cc (octave_char_matrix_str::all_strings): |
|
2285 Likewise. |
|
2286 |
2487
|
2287 Fri Nov 8 09:54:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2288 |
2492
|
2289 * defaults.cc, dynamic-ld.cc, fn-cache.cc, help.cc, oct-hist.cc, |
|
2290 octave.cc, pager.cc, pt-fcn.cc, toplev.cc, utils.cc, variables.cc, |
|
2291 lex.l: Change #include "" to #include <> for defaults.h, |
|
2292 oct-conf.h, oct-gperf.h, y.tab.h, and version.h, to avoid getting |
|
2293 them from $srcdir when we really want the version from the build |
|
2294 directory. (Maybe this should be done for all the include files, |
|
2295 not just those that are auto-generated? Hmm.) |
|
2296 |
2488
|
2297 * defaults.h.in (CXXLIB_LIST, CXXLIB_PATH, FLIB_LIST, FLIB_PATH): |
|
2298 Delete. |
|
2299 |
2487
|
2300 * Makefile.in (install-oct): Use $(INSTALL_PROGRAM) for .oct files. |
|
2301 |
2477
|
2302 Thu Nov 7 07:59:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2303 |
2487
|
2304 * variables.cc (gobble_leading_white_space): New arg, update_pos. |
|
2305 * (is_function_file): Don't update file position information here. |
|
2306 |
2482
|
2307 * Version 1.91. |
|
2308 |
2479
|
2309 * pt-fvc.cc (tree_indirect_ref::reference): If the lhs object is |
|
2310 not a map, convert it to one. |
|
2311 |
|
2312 * ov-typeinfo.h (init_tab_sz): New static member. |
|
2313 |
2477
|
2314 * ov-struct.cc, ov-struct.h: Add hooks for custom memory management. |
|
2315 * ov-scalar.cc, ov-scalar.h: Likewise. |
|
2316 * ov-re-mat.cc, ov-re-mat.h: Likewise. |
|
2317 * ov-range.cc, ov-range.h: Likewise. |
|
2318 * ov-cx-mat.cc, ov-cx-mat.h: Likewise. |
|
2319 * ov-complex.cc, ov-complex.h: Likewise. |
|
2320 * ov-ch-mat.cc, ov-ch-mat.h: Likewise. |
|
2321 |
2474
|
2322 Wed Nov 6 12:32:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2323 |
2482
|
2324 * pager.cc (do_sync): Don't call clear_external_pager() here. |
2476
|
2325 |
2475
|
2326 * pt-const.h (tree_constant::allocator) New static member. |
|
2327 (tree_constant::operator new, tree_constant::operator delete): |
|
2328 Implement with custom allocator. |
|
2329 |
|
2330 * syscalls.cc (Fgetgid, Fgetegid): New functions. |
|
2331 |
|
2332 * sighandlers.cc (sigchld_handler): If necessary, reinstall |
|
2333 handler after call to waitpid(). |
|
2334 |
|
2335 * pager.cc (pager_death_handler): Don't use warning() to print |
|
2336 message. |
|
2337 |
|
2338 * getgrent.cc: New file. |
|
2339 * Makefile.in (DLD_SRC): Add it. |
|
2340 |
|
2341 * ov.cc (octave_value::print_with_name): Call is_map() instead of |
|
2342 print_as_structure(). |
|
2343 * ov-struct.cc (octave_struct::print): Likewise. |
|
2344 |
|
2345 * ov.h, ov.cc, pt-const.h: Delete force_numeric(), make_numeric(), |
|
2346 convert_to_matrix_type(), print_as_structure() member functions. |
|
2347 |
2474
|
2348 * variables.cc (is_function_file): Call gobble_leading_whitespace |
|
2349 here to strip all leading whitespace and comments. |
|
2350 (parse_fcn_file): If reading a function file, call |
|
2351 gobble_leading_whitespace again after resetting parser state to |
|
2352 grab help text. |
|
2353 |
2469
|
2354 Tue Nov 5 13:00:35 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2355 |
2472
|
2356 * syscalls.cc (Fgeteuid, Fgetuid): New functions. |
|
2357 |
|
2358 * getpwent.cc: Use gripe_not_supported from gripes.cc, instead of |
|
2359 local gripe_not_implemented function. |
|
2360 |
2470
|
2361 * input.cc, sysdep.cc, variables.cc: Only include readline.h and |
|
2362 history.h if USE_READLINE is defined. |
|
2363 |
|
2364 * help.cc: Make it compile without warnings even if USE_GNU_INFO |
|
2365 is not defined. |
|
2366 |
2469
|
2367 * sighandlers.h (octave_child_list): Don't define |
|
2368 HAVE_POSIX_SIGNALS HERE. |
|
2369 |
|
2370 * sighandlers.cc (SIGHANDLER_RETURN): New macro. |
|
2371 (generic_sig_handler, sigchld_handler, sigfpe_handler, |
|
2372 sigint_handler, sigpipe_handler): Use it. |
|
2373 (sigchld_handler, sigfpe_handler, sigint_handler, sigpipe_handler): |
|
2374 Only reinstall signal handler if MUST_REINSTALL_SIGHANDLER is defined. |
|
2375 |
2463
|
2376 Sun Nov 3 00:45:30 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2377 |
2466
|
2378 * pt-const.cc (tree_constant::print): Just call val.print(). |
|
2379 * ov-base.cc, ov-ch-mat.cc, ov-colon.cc, ov-complex.cc, |
|
2380 ov-cx-mat.cc, ov-range.cc, ov-re-mat.cc, ov-scalar.cc, |
|
2381 ov-str-mat.cc, ov-struct.cc ov-va-args.cc, ov.cc (print): |
|
2382 Handle pr_as_read_syntax arg. |
|
2383 |
|
2384 * defaults.cc (subst_octave_home): Search for prefix repeatedly in |
|
2385 retval, not s. |
|
2386 |
|
2387 * gripes.h: Make declaration of gripes_not_supported match |
|
2388 definition. |
|
2389 |
2465
|
2390 * mk-oct-links.in: In sed command, match "DEFUN_DLD *( *", not |
|
2391 "DEFUN_DLD_BUILTIN *( *". |
|
2392 |
|
2393 * chol.cc, colloc.cc, dassl.cc, det.cc, eig.cc, expm.cc, fft.cc, |
|
2394 fft2.cc, filter.cc, find.cc, fsolve.cc, fsqp.cc, getpwent.cc, |
|
2395 getrusage.cc, givens.cc, hess.cc, ifft.cc, ifft2.cc, inv.cc, |
|
2396 log.cc, lpsolve.cc, lsode.cc, lu.cc, minmax.cc, npsol.cc, pinv.cc, |
|
2397 qpsol.cc, qr.cc, quad.cc, qzval.cc, rand.cc, schur.cc, sort.cc, |
|
2398 svd.cc, syl.cc, time.cc: Change all uses of DEFUN_DLD_BUILTIN to |
|
2399 be just DEFUN_DLD. |
|
2400 |
|
2401 * defun-dld.h: Eliminate DEFUN_DLD_BUILTIN. |
|
2402 |
2464
|
2403 * syswait.h: Use #ifdef HAVE_SYS_WAIT_H, not #if HAVE_SYS_WAIT_H |
|
2404 to decide whether to include sys/wait.h. |
|
2405 |
|
2406 * pt-exp-base.h (tree_expression): Declare oper() here as a |
|
2407 virtual member function. |
|
2408 |
2463
|
2409 * pt-pr-code.cc (tree_print_code::visit_constant): Check for |
|
2410 string before checking for char_matrix. |
|
2411 |
|
2412 * ov-ch-mat.cc (octave_char_matrix::print): Supply correct number |
|
2413 of args to octave_print_internal(). |
|
2414 |
2457
|
2415 Sat Nov 2 20:44:55 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2416 |
2458
|
2417 * file-io.cc (Ftmpnam): Rename from Foctave_temp_file_name. |
|
2418 |
2457
|
2419 * Makefile.in (DLD_SRC): Move time.cc and getrusage.cc here from |
|
2420 SOURCES. Add getpwent.cc. |
|
2421 |
|
2422 * getrusage.cc: Rename from resource.cc. Make getrusage a |
|
2423 loadable function. |
|
2424 |
|
2425 * time.cc: Rename from timefns.cc. Make time functions loadable. |
|
2426 |
|
2427 * getpwent.cc: New file. |
|
2428 |
2439
|
2429 Wed Oct 30 01:06:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2430 |
2452
|
2431 * Version 1.90. |
|
2432 |
|
2433 * Makefile.in (DISTFILES): Add ChangeLog. |
|
2434 |
2449
|
2435 * ov-range.cc (octave_range::convert_to_str): New function. |
|
2436 |
|
2437 * ov-str-mat.h (octave_char_matrix_str::char_matrix_value): |
|
2438 Delete function. Already handled by octave_char_matrix class. |
|
2439 |
|
2440 * ov-ch-mat.h (octave_char_matrix::convert_to_str): New function. |
|
2441 |
2448
|
2442 * pager.cc (Fmore): Set page_screen_output to 1.0 or 0.0, not |
|
2443 "true" or "false". |
|
2444 |
2447
|
2445 * ov-ch-mat.cc, ov-struct.cc, ov-struct.h, pr-output.cc, |
|
2446 pt-cmd.cc, pt-const.cc, pt-const.h, pt-fcn.cc, pt-fvc-base.cc, |
|
2447 pt-fvc-base.h, pt-fvc.cc, pt-fvc.h, rand.cc, sighandlers.cc, |
|
2448 variables.cc, variables.h: Delete unused code. |
|
2449 |
2445
|
2450 * octave.cc: Only include pwd.h if HAVE_PWD_H. |
|
2451 |
|
2452 * oct-strstrm.h: Include <string>, not <string.h>. |
|
2453 |
2442
|
2454 * defaults.cc, dirfns.cc, file-io.cc, help.cc, input.cc, |
|
2455 oct-hist.cc, oct-procbuf.cc, oct-procbuf.h, octave.cc, pager.h, |
|
2456 procstream.h, pt-misc.cc, pt-plot.cc, sighandlers.cc, strftime.c, |
|
2457 syscalls.cc, sysdep.cc, syswait.h, toplev.cc, utils.cc, |
|
2458 variables.cc: Only include sys/types.h if HAVE_SYS_TYPES_H. |
|
2459 |
2440
|
2460 * error.h (panic): Use GCC_ATTR_NORETURN macro, not NORETURN. |
|
2461 * toplev.h (clean_up_and_exit): Likewise. |
|
2462 * utils.h (jump_to_top_level): Likewise. |
|
2463 |
2439
|
2464 * derfaults.h.in, defaults.cc (local_arch_lib_dir): New variable. |
|
2465 * defaults.cc (set_default_local_arch_lib_dir): New function. |
|
2466 (install_defaults): Call it. |
|
2467 (exec_path): Use Vlocal_arch_lib_dir here. |
|
2468 * toplev.cc (octave_config_info): Add localarchlibdir to structure. |
|
2469 |
2436
|
2470 Tue Oct 29 15:54:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2471 |
2437
|
2472 * Makefile.in (install-oct): Don't do anything if $(OCT_FILES) is |
|
2473 empty. |
|
2474 |
2436
|
2475 * ov-range.cc (octave_range::index): New Function. |
|
2476 (octave_range::all, octave_range::any, octave_range::is_true): |
|
2477 Make these functions work. |
|
2478 |
|
2479 * ov.cc (octave_value::try_assignment_with_conversion): Remove |
|
2480 left over debugging print statements. |
|
2481 |
|
2482 Mon Oct 28 10:49:03 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2483 |
|
2484 * strftime.c: Add missing #endif for previous change. |
|
2485 |
2435
|
2486 Sun Oct 27 14:06:44 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2487 |
|
2488 * oct-hist.cc (do_history): Rewite option parsing to avoid |
|
2489 (probably bogus) errors from g++ on cygwin32 system. |
|
2490 |
|
2491 * strftime.c: Use autoconf macros TIME_WITH_SYS_TIME and |
|
2492 HAVE_SYS_TIME_H to decide which time.h files to include. |
|
2493 |
|
2494 * oct-stream.h, oct-stream.cc (octave_stream::error, |
|
2495 octave_base_stream::error): Rename errno => err_num. |
|
2496 |
2432
|
2497 Sat Oct 26 10:40:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2498 |
2434
|
2499 * oct-hist.cc (do_history): Move declaration of file inside |
|
2500 conditional. |
|
2501 |
2432
|
2502 * defun.h (DEFVAR_INT): Set eternal flag with (svc_fcn != 0) |
|
2503 instead of (sv_fcn ? 1 : 0) |
|
2504 |
2427
|
2505 Fri Oct 25 01:10:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2506 |
2431
|
2507 * ov-ch-mat.h (octave_char_matrix::any): Return 0.0 instead of false. |
|
2508 (octave_char_matrix::all): Likewise. |
|
2509 |
|
2510 * input.cc (Fecho): When binding value of echo_executing_commands, |
|
2511 cast ECHO_* to double. |
|
2512 |
|
2513 * sighandlers.cc (octave_child_list::do_remove): Delete unused |
|
2514 variable `enlarge'. |
|
2515 |
|
2516 * pt-const.h (tree_constant::tree_constant (const tree_constant&)): |
|
2517 Don't pass arg to tree_fvc constructor. |
|
2518 |
2427
|
2519 * resource.cc (getrusage): [HAVE_GETRUSAGE && RUSAGE_TIMES_ONLY]: |
|
2520 Only fill in time values. |
|
2521 |
|
2522 Thu Oct 24 20:37:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2523 |
|
2524 * parse.y: Comment out the %expect declaration so byacc can |
|
2525 compile this file. |
|
2526 (if_cmd_list): Add missing semicolon. |
|
2527 Include <cstdlib> for getenv if using byacc. |
|
2528 |
|
2529 * ov.h: Move typedefs outside of octave_value class scope to avoid |
|
2530 problem with cygwin32 beta16 compiler. |
|
2531 |
2421
|
2532 Fri Oct 18 13:44:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2533 |
2423
|
2534 * ov.h (octave_value::index): Undo previous change. |
|
2535 * ov.cc (octave_value constructors): Call maybe_mutate() in most |
|
2536 cases. |
|
2537 |
|
2538 * ov-complex.cc (octave_complex::index): Avoid implicit type |
|
2539 conversion back to scalar type. |
|
2540 * ov-scalar.cc (octave_scalar::index): Likewise. |
|
2541 |
2421
|
2542 * ov.h (octave_value::index): Call maybe_mutate() on retval before |
|
2543 returning it. |
|
2544 |
2418
|
2545 Wed Oct 16 12:00:11 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2546 |
2420
|
2547 * ov.h (octave_value::struct_elt_val): New optional arg, silent. |
|
2548 * ov-base.h, ov-base.cc, ov-struct.h, ov-struct.cc: Likewise, but |
|
2549 for the derived classes the arg is required. |
|
2550 |
|
2551 * data.cc (Fstruct_contains): Require arguments to be struct and |
|
2552 string, respectively. Call octave_value::struct_elt_val with |
|
2553 silent flag set. |
|
2554 |
2419
|
2555 * pt-mat.cc (tm_row_const::tm_row_const_rep::eval_error, |
|
2556 tm_row_const::tm_row_const_rep::eval_warning): New functions. |
|
2557 (tm_row_const::tm_row_const (const tree_matrix_row&): Use them to |
|
2558 give better error messages. |
|
2559 |
2418
|
2560 * pt-fvc.cc (tree_identifier::eval): Avoid dereferencing null |
|
2561 object_to_eval. |
|
2562 |
2412
|
2563 Tue Oct 15 11:35:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2564 |
|
2565 * op-cs-cm.cc, op-cs-cs.cc, op-cs-m.cc, op-cs-s.cc |
|
2566 (complex_matrix_conv): New functions. |
|
2567 Install preferred assignment conversion and widening ops. |
|
2568 |
|
2569 * op-s-cm.cc, op-s-cs.cc (complex_matrix_conv): New functions. |
|
2570 Install preferred assignment conversion and widening ops. |
|
2571 |
|
2572 * op-s-m.cc, op-s-s.cc (matrix_conv): New functions. |
|
2573 Install preferred assignment conversion and widening ops. |
|
2574 |
|
2575 * ov.cc (octave_value::try_assignment_with_conversion, |
|
2576 octave_value::convert_and_assign, octave_value::try_assignment): |
|
2577 New functions. |
|
2578 (octave_value::assign): Use them to implement twisted logic for |
|
2579 type conversions in assigments. |
|
2580 |
|
2581 * pt-const.h (tree_constant::maybe_mutate): New function. |
|
2582 * ov.h (octave_value::maybe_mutate): New function. |
|
2583 (octave_value::try_narrowing_conversion): New function. |
|
2584 Use just one typedef for widening_op_fcn and numeric_conv_fcn. |
|
2585 Change all uses. |
|
2586 * ov-base.h, ov-complex.h, ov-complex.cc, ov-cx-mat.h, |
|
2587 ov-cx-mat.cc, ov-range.h, ov-range.cc, ov-re-mat.h, ov-re-mat.cc, |
|
2588 Provide derived class versions of try try_narrowing_conversion(). |
|
2589 |
|
2590 * pr-output.cc (octave_print_internal): Don't bother handing off |
|
2591 to scalar/real versions, even when it would seem appropriate. |
|
2592 |
|
2593 * symtab.cc (symbol_def::define (tree_constant *)): Call |
|
2594 maybe_mutate on constants here. |
|
2595 |
2405
|
2596 Mon Oct 14 11:05:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2597 |
2407
|
2598 * pt-fvc.cc (tree_identifier::eval): If retval is undefined and |
|
2599 the object to eval is a constant, print error message. |
2406
|
2600 |
2405
|
2601 * Makefile (distclean): Remove *.oct too. |
|
2602 |
|
2603 * defun-int.h: Include variables.h here. |
|
2604 |
2403
|
2605 Sun Oct 13 10:52:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2606 |
2404
|
2607 * variables.cc (print_symbol_info_line): Never print negative |
|
2608 diminsions. |
|
2609 |
|
2610 * symtab.h (octave_symbol_record_info): Store const_type as string. |
|
2611 (octave_symbol_record_info::init): Delete. Fix constructors. |
|
2612 (octave_symbol_record_info::type_name): Handle const_type as string. |
|
2613 |
2403
|
2614 * octave.cc (maximum_braindamage): Replace "true" with 1.0 and |
|
2615 "false" with 0.0 in calls to bind_builtin_variable(). |
|
2616 Include sun-utils.h here. |
2404
|
2617 (intern_argv): Also bind __argv__. |
2403
|
2618 |
2391
|
2619 Sat Oct 12 13:40:21 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2620 |
2399
|
2621 * Makefile.in (distclean): Also delete mk-oct-links. |
|
2622 |
|
2623 Fri Oct 11 13:13:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2624 |
2391
|
2625 Changes for Octave's new type system: |
|
2626 |
|
2627 * arith-ops.cc: Delete. |
|
2628 * pt-const.h, pt-const.cc: Massive changes. Most functionality |
|
2629 moved to ov.h, ov.cc, and derived classes. |
|
2630 |
|
2631 * variables.h, variables.cc (octave_variable_reference): New class |
|
2632 for getting references to variables and structure elements used in |
|
2633 assignments or value contexts. |
|
2634 |
|
2635 * symtab.h, symtab.cc (symbol_record::define (const octave_value&), |
|
2636 symbol_record::variable_value, symbol_record::variable_reference): |
|
2637 New functions. |
|
2638 (symbol_record_info::type_name): Rename from type_as_string. |
|
2639 |
|
2640 * pt-fvc-base.h, pt-fvc-base.cc (tree_fvc::increment, |
|
2641 tree_fvc::decrement): New functions to replace |
|
2642 tree_fvc::bump_value. |
|
2643 #if 0 assign and lookup_map_element functions. |
|
2644 |
|
2645 * pt-mvr.cc (tree_multi_assignment_expression::eval): |
|
2646 Generated RHS value is now a tree_constant. |
|
2647 |
|
2648 * pt-exp.h, pt-exp.cc (tree_boolean_expression): New class. |
|
2649 (tree_unary_expression, tree_binary_expression, |
|
2650 tree_boolean_expression): Move codes here from tree_expression. |
|
2651 (tree_simple_assignment_expression): Cope with changes to way of |
|
2652 doing assignments. |
|
2653 |
|
2654 * pt-exp-base.h, pt-exp-base.cc (enum type): Delete codes for |
|
2655 unary and binary ops. |
|
2656 (tree_expression::expression_type): Delete. |
|
2657 (tree_expression::is_logically_true): Hand off to |
|
2658 octave_value::is_true to do real work. |
|
2659 |
|
2660 * pr-output.h, pr-output.cc (any_element_is_inf_or_nan, |
|
2661 all_elements_are_ints): Delete. Call member new functions for |
|
2662 these operations. |
|
2663 (free_format, plus_format, bank_format, hex_format, |
|
2664 compact_format, print_e, print_big_e): Use bool, not int. |
|
2665 (octave_print_internal): Hand off to scalar/real versions when |
|
2666 appropriate. |
|
2667 |
|
2668 * octave.cc (main): Call initialize_types() and install_ops(). |
|
2669 (verbose_usage): Add WWW address to output. |
|
2670 |
|
2671 * parse.y (indirect_ref): Handle by making a tree instead of a |
|
2672 list using new version of tree_indirect_ref class. |
|
2673 |
|
2674 * parse.y (make_boolean_op): New function. Use it instead of |
|
2675 make_binary_op to create trees for && and || ops. |
|
2676 (make_binary_op): Codes come from tree_binary_expression now, |
|
2677 instead of tree_expression. |
|
2678 (make_unary_op): Codes come from tree_unary_expression now, |
|
2679 instead of tree_expression. |
|
2680 (make_boolean_op): Codes come from tree_boolean_expression. |
|
2681 |
|
2682 *parse.y (tree_constant_type): Change type to tree_constant* from |
|
2683 octave_value*, and rename from octave_value_type. Change uses. |
|
2684 |
|
2685 * defun.h (DEFVAR_INT): Pass octave_value not pointer to |
|
2686 octave_value for defn when creating builtin_variable. |
|
2687 |
|
2688 * gripes.h, gripes.cc (gripe_invalid_conversion): Args are |
|
2689 strings, not char*. |
|
2690 (gripe_implicit_conversion, gripe_divide_by_zero): New extern |
|
2691 gripe functions. |
|
2692 |
|
2693 * mkbuiltins: For each file, create a separate static function to |
|
2694 install builtins, then create another single extern function to |
|
2695 call all of them. |
|
2696 |
|
2697 * pt-fcn.cc (tree_function::bind_nargin_and_nargout): |
|
2698 Just pass doubles and let symbol_record::define handle creating |
|
2699 new value. |
|
2700 |
|
2701 * pt-pr-code.cc, pt-pr-code.h (visit_constant): Renamed from |
|
2702 visit_octave_value. |
|
2703 (visit_unary_expression): Use tree_expression::is_prefix_op() |
|
2704 instead of switch on op types. |
|
2705 |
|
2706 * pt-walk.h (visit_constant): Renamed from visit_octave_value. |
|
2707 |
|
2708 * pt-misc.cc (initialize_undefined_elements): Get reference to |
|
2709 tmp, then assign. |
|
2710 * pt-cmd.cc (do_for_loop_once): Likewise, for loop identifier. |
|
2711 |
|
2712 * input.cc (generate_struct_completions, looks_like_struct): Cast |
|
2713 tmp_fvc to tree_constant*, not octave_value*. |
|
2714 (get_user_input): Call print() on retval, not eval(1). |
|
2715 |
|
2716 * help.cc (Ftype): Cast defn to tree_constant*, not octave_value*. |
|
2717 |
|
2718 * balance.cc: Fix docstring. |
|
2719 |
|
2720 * dassl.cc, fsolve.cc, load-save.cc, lsode.cc, npsol.cc, qpsol.cc, |
|
2721 quad.cc: |
|
2722 Include pt-fvc.h. |
|
2723 |
|
2724 * data.cc (Fstruct_contains): call octave_value::struct_elt_val, |
|
2725 not octave_value::lookup_map_element. |
|
2726 |
|
2727 * dirfns.cc (Fcd): Pass directory name as string directly to |
|
2728 bind_builtin_variable instead of creating new octave_value. |
|
2729 |
|
2730 * toplev.cc: Include pt-fvc.h and lo-mappers.h |
|
2731 |
|
2732 * data.cc, error.cc, file-io.cc, load-save.cc, pager.cc, |
|
2733 pt-mat.cc, pt-plot.cc, syscalls.cc, toplev.cc: |
|
2734 Include variables.h. |
|
2735 |
|
2736 * Array-tc.cc, Map-tc.cc, SLList-misc.cc SLList-tc.cc, data.cc, |
|
2737 defaults.cc, dynamic-ld.cc, error.cc, gripes.cc, lex.l, octave.cc, |
|
2738 oct-map.h, oct-map.cc, oct-obj.h, pt-cmd.cc, pt-exp.cc, pt-fcn.cc, |
|
2739 pt-fvc-base.cc, pt-mat.cc, pt-misc.cc, pt-mvr-base.cc, pt-mvr.h, |
|
2740 resource.cc, strfns.cc, sysdep.cc, timefns.cc, toplev.cc: |
|
2741 Include ov.h instead of pt-const.h. |
|
2742 |
|
2743 * xpow.cc (any_element_is_negative): Delete. |
|
2744 (xpow and elem_xpow functions): Check conformance here. |
|
2745 |
|
2746 * xdiv.cc (mx_leftdiv_conform, mx_div_conform): |
|
2747 Now template-based, taking Matrices instead of dimensions as args. |
|
2748 Change all callers. |
|
2749 |
|
2750 * op-cm-cm.cc, op-cm-cm.h, op-cm-cs.cc, op-cm-cs.h, op-cm-m.cc, |
|
2751 op-cm-m.h, op-cm-s.cc, op-cm-s.h, op-cs-cm.cc, op-cs-cm.h, |
|
2752 op-cs-cs.cc, op-cs-cs.h, op-cs-m.cc, op-cs-m.h, op-cs-s.cc, |
|
2753 op-cs-s.h, op-m-cm.cc, op-m-cm.h, op-m-cs.cc, op-m-cs.h, op-m-m.cc, |
|
2754 op-m-m.h, op-m-s.cc, op-m-s.h, op-s-cm.cc, op-s-cm.h, op-s-cs.cc, |
|
2755 op-s-cs.h, op-s-m.cc, op-s-m.h, op-s-s.cc, op-s-s.h, |
|
2756 op-str-str.cc, op-str-str.h, ops.cc, ops.h, ov-base.cc, ov-base.h, |
|
2757 ov-ch-mat.cc, ov-ch-mat.h, ov-colon.cc, ov-colon.h, ov-complex.cc, |
|
2758 ov-complex.h, ov-cx-mat.cc, ov-cx-mat.h, ov-range.cc, ov-range.h, |
|
2759 ov-re-mat.cc, ov-re-mat.h, ov-scalar.cc, ov-scalar.h, ov-str-mat.cc, |
|
2760 ov-str-mat.h, ov-struct.cc, ov-struct.h, ov-typeinfo.cc, |
|
2761 ov-typeinfo.h, ov-va-args.cc, ov-va-args.h, ov.cc, ov.h: |
|
2762 New files for Octave's new type system. |
|
2763 * Makefile.in: Add them to the appropriate lists. |
|
2764 |
|
2765 Sat Sep 14 21:58:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2766 |
|
2767 * mkbuiltins: Use .df instead of .def. |
|
2768 Write one function for each .df file, then call them |
|
2769 all in install_builtin_functions(). |
|
2770 * Makefile.in: Handle .df instead of .def. |
|
2771 |
|
2772 * balance.cc (balance): Fix typo in doc string. |
|
2773 |
|
2774 Wed Aug 28 21:01:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2775 |
|
2776 * octave.cc (verbose_usage): Include WWW address and bug-octave |
|
2777 mailing list address. |
|
2778 |
2354
|
2779 Tue Aug 20 17:41:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2780 |
2358
|
2781 * Makefile.in: Only define pattern rules for making .oct files if |
|
2782 OCTAVE_LITE is true. |
|
2783 Only add pic/ to $(TI_OBJ) if $(SHARED_LIBS) is true. |
|
2784 (stamp-picdir): Only create a pic subdirectory if SHARED_LIBS or |
|
2785 OCTAVE_LITE is true AND CPICFLAG or CXXPICFLAG is not empty. |
|
2786 |
2354
|
2787 * minmax.cc (Fmin, Fmax): Deal with changes to Matrix class |
|
2788 min/max methods. |
|
2789 |
2345
|
2790 Thu Jul 25 01:42:38 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2791 |
2348
|
2792 * input.cc (generate_possible_completions): Force the names to be |
|
2793 unique. |
|
2794 |
2345
|
2795 * load-save.cc (read_mat_binary_data): Expect to read terminating |
|
2796 NUL character in the variable name. |
|
2797 (save_mat_binary_data): Likewise, save it here. |
|
2798 |
2341
|
2799 Wed Jul 24 05:08:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2800 |
2343
|
2801 * lsode.cc (Flsode): Don't set the return value if an error |
|
2802 occurred during integration. |
2344
|
2803 * dassl.cc (Fdassl): Likewise. |
2343
|
2804 |
2341
|
2805 * file-io.cc (symbols_of_file_io): Redefine values of SEEK_SET, |
|
2806 SEEK_CUR, and SEEK_END for Matlab compatibility. |
|
2807 * oct-stream.cc (seek): Check for compatible values of ORIGIN arg. |
|
2808 Also handle "bof", "cof", and "eof". |
|
2809 |
2338
|
2810 Fri Jul 19 15:24:36 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2811 |
|
2812 * pt-const.cc: When creating octave_value_reps from ComplexMatrix |
|
2813 values, check to see if all the elements are actually real. |
|
2814 |
2330
|
2815 Tue Jul 16 10:53:42 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2816 |
2341
|
2817 * input.cc (decode_prompt_string): Swap meanings of \h and \H. |
2330
|
2818 |
|
2819 Mon Jul 15 16:01:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2820 |
|
2821 * toplev.cc (run_command_and_return_output): Renamed from do_system. |
|
2822 (Fsystem): Make `system ("emacs")' work as one would expect. |
|
2823 |
|
2824 Sun Jul 14 17:34:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2825 |
|
2826 * file-io.cc (Ffopen, Ffread, Ffwrite): Update doc strings, |
|
2827 correctly handle default architecture and precision args. |
|
2828 |
|
2829 * load-save.cc (mopt_digit_to_float_format): Rename from |
|
2830 get_floating_point_format. |
|
2831 (float_format_to_mopt_digit): New function. |
|
2832 |
|
2833 * oct-stream.cc (octave_base_stream::read, octave_base_stream::write): |
|
2834 Simplify by calling Matrix::read and Matrix::write to do real work |
|
2835 of reading, writing, and format conversion. |
|
2836 |
|
2837 * oct-stream.h (octave_base_stream): Move data_type enum to |
|
2838 liboctave/data-conv.h. Use float_format from |
|
2839 liboctave/mach-info.h instead of arch_type enum. |
|
2840 |
|
2841 * sysdep.h, sysdep.cc (octave_words_big_endian, ten_little_endians): |
|
2842 Delete. Now part of oct_mach_info class in liboctave. |
|
2843 |
|
2844 Tue Jul 9 11:18:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2845 |
|
2846 * arith-ops.cc, balance.cc, dassl.cc, data.cc, filter.cc, find.cc, |
|
2847 fsolve.cc, load-save.cc, log.cc, lsode.cc, minmax.cc, npsol.cc, |
|
2848 oct-obj.cc, oct-stream.cc, pr-output.cc, pt-cmd.cc, pt-const.cc, |
|
2849 pt-fvc.cc, pt-plot.cc, quad.cc, rand.cc, sighandlers.cc, sort.cc, |
|
2850 syscalls.cc, unwind-prot.cc, xdiv.cc, xpow.cc: |
|
2851 When indexing arrays, use operator() instead of elem() so that |
|
2852 bounds checking can be done consistently. |
|
2853 |
|
2854 Mon Jun 24 02:13:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2855 |
|
2856 * Makefile.in (install-oct): Use INSTALL_PROGRAM, instead of |
|
2857 INSTALL_DATA for installing shared libraries. |
|
2858 |
|
2859 * lex.l (grab_help_text): Ignore all initial comment characters, |
|
2860 not just the first. |
|
2861 * variables.cc (gobble_leading_white_space): Likewise. |
|
2862 |
|
2863 Sat Jun 22 22:43:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2864 |
|
2865 * input.h, input.cc (octave_completion_matches_called): New varaible. |
|
2866 (Fcompletion_matches): Set it to true on a successful call. |
|
2867 * toplev.cc (main_loop): If octave_completion_matches_called is |
|
2868 true, don't increment current_command_number. |
|
2869 |
|
2870 Thu Jun 13 03:52:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2871 |
|
2872 * variables.cc (is_mapper_function_name, |
|
2873 is_builtin_function_name): New functions. |
|
2874 (Fdocument): Use them. |
|
2875 Define as regular function, not a text style function. |
|
2876 |
|
2877 Thu Jun 6 00:09:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2878 |
|
2879 * pt-plot.cc: Handle new built-in variable `gnuplot_has_frames'. |
|
2880 |
|
2881 Wed Jun 5 14:45:04 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2882 |
|
2883 * input.cc (decode_prompt_string): \h now means the whole host |
|
2884 name and \H is the host name up to the first `.'. |
|
2885 |
|
2886 Thu May 30 23:41:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2887 |
|
2888 * fn-cache.cc (octave_fcn_file_name_cache::do_list): Always |
|
2889 recompute the lists of function files instead of trying to cache |
|
2890 them. |
|
2891 |
|
2892 Tue May 28 12:05:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2893 |
|
2894 * utils.cc (warn_old_style_preference): New function. |
|
2895 (check_preference): Use it. |
|
2896 |
|
2897 * fn-cache.h: Include <ctime> here. |
|
2898 |
|
2899 Fri May 24 00:57:14 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2900 |
|
2901 * input.cc (completion_matches): Don't return empty string_vectors. |
|
2902 |
|
2903 * octave.cc (long_opts): Add braindead. |
|
2904 |
|
2905 Thu May 23 01:49:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2906 |
|
2907 * input.cc (gnu_readline): New optional arg, force_readline. |
|
2908 (get_user_input): Use it. |
|
2909 |
|
2910 * pt-const.cc (OCT_VAL_REP::assign): If converting the rhs to a |
|
2911 numeric value, convert a copy, not the actual object. |
|
2912 (OCT_VAL_REP::do_index): Prevent s([]) from resulting in a string |
|
2913 with zero rows. |
|
2914 |
|
2915 * mappers.cc: Handle toascii here. |
|
2916 * strfns.cc: Not here. |
|
2917 |
|
2918 * mappers.cc: Handle tolower and toupper here. |
|
2919 * mappers.h: Rename can_return_complex_for_real to flag and |
|
2920 overload meaning for ch_mapper. |
|
2921 * pt-fvc.cc (apply_mapper_fcn): Handle overloaded meaning. |
|
2922 |
|
2923 * syscalls.cc (stat): Return 3 values instead of just 1. |
|
2924 (lstat): Likewise. |
|
2925 |
|
2926 Wed May 22 02:34:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2927 |
|
2928 * pt-const.cc (OCT_VAL_REP::make_numeric): For string to number |
|
2929 conversions, correctly set type tag before calling force_numeric. |
|
2930 (do_binary_op): Force string to number conversion if both args are |
|
2931 strings and we are doing some sort of comparison operation. |
|
2932 |
|
2933 * Makefile.in (stamp-tinst, stamp-interp): Use SH_TERMLIBS and |
|
2934 SH_LIBS instead of TERMLIBS and LIBS. |
|
2935 |
|
2936 * pt-const.cc (do_unary_op): Add special case to handle |
|
2937 transposing strings. |
|
2938 |
|
2939 * pt-mat.cc (Vstring_fill_char): New variable. |
|
2940 (symbols_of_pt_mat): DEFVAR it. |
|
2941 |
|
2942 * input.cc (generate_struct_completions, |
|
2943 generate_possible_completions): Return string_vector, not char **. |
|
2944 Change all callers. |
|
2945 |
|
2946 * pt-const.cc (lookup_map_element): Use substr() correctly. |
|
2947 |
|
2948 Tue May 21 21:37:17 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2949 |
|
2950 * oct.h: New file. |
|
2951 * Makefile.in (INCLUDES): Add it to the list. |
|
2952 |
|
2953 * octave.cc: New args --no-site-file and --no-init-file. Delete |
|
2954 --ignore-init-file. The flag --norc (-f) implies both |
|
2955 --no-site-file and --no-init-file. |
|
2956 |
|
2957 Fri May 17 01:54:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2958 |
|
2959 * input.cc (Fcompletion_matches): New function. |
|
2960 |
|
2961 * utils.cc (get_fcn_file_names): Delete. |
|
2962 * help.cc (simple_help): Use new file name cache instead of |
|
2963 calling get_fcn_file_names. |
|
2964 * variables.cc (make_name_list): Likewise. |
|
2965 |
|
2966 * fn-cache.h, fn-cache.cc, Map-fnc.cc: New files. |
|
2967 * Makefile.in: Add them to the lists. |
|
2968 |
|
2969 * Makefile.in (uninstall): Install in octincludedir, not includedir. |
|
2970 |
|
2971 * pt-plot.h: Include <csignal> here. |
|
2972 |
|
2973 Thu May 16 10:52:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2974 |
|
2975 * oct-stream.cc (octave_stream::oscanf, octave_base_stream::oscanf, |
|
2976 octave_base_stream::do_oscanf): New functions for backward |
|
2977 compatibility with older versions of Octave. |
|
2978 (scanf_format_elt, scanf_format_list): Keep track of width specifier. |
|
2979 * file-io.cc (Fscanf): New function. |
|
2980 (Fscanf, Ffscanf, Fsscanf): Handle compatibility arg. |
|
2981 |
|
2982 Wed May 15 01:00:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2983 |
|
2984 * oct-stream.cc (do_scanf): If doing '%c' conversion, unset |
|
2985 ios::skipws on input stream. |
|
2986 |
|
2987 * sighandlers.h, sighandlers.cc (octave_child, octave_child_list): |
|
2988 New classes for keeping track of the child processes we create. |
|
2989 (sigchld_handler): Check in octave_child_list to see if there is |
|
2990 anything we can do for the child that died. |
|
2991 * pager.cc: Register child pager process. |
|
2992 * pt-plot.cc: Likewise, for the plotter. |
|
2993 * Array-oc.cc: New file |
|
2994 * Makefile.in (TI_SRC): Add it to the list. |
|
2995 |
|
2996 * pager.cc (do_sync): Don't check error_state. |
|
2997 (flushing_output_to_pager): New static variable. |
|
2998 (flush_octave_stdout): Use it to avoid doing anything if already |
|
2999 flushing output. |
|
3000 |
|
3001 * sighandlers.cc (sigchld_handler): Call warning instead of |
|
3002 writing directly to cerr. |
|
3003 (sigpipe_handler): Call warning instead of message. |
|
3004 |
|
3005 * octave.cc (main): Call install_signal_handlers, |
|
3006 initialize_file_io, initialize_symbol_tables, and install_builtins |
|
3007 before parsing command line options. |
|
3008 |
|
3009 * user-prefs.h, user-prefs.cc: Delete. |
|
3010 |
|
3011 * utils.cc (check_preference): Move here. |
|
3012 * user-prefs.cc: From here. |
|
3013 |
|
3014 * defaults.cc: New file. Move initialization stuff from |
|
3015 variables.cc. Move DEFVARS for EDITOR, EXEC_PATH, LOADPATH, |
|
3016 IMAGEPATH, and OCTAVE_VERSION here. |
|
3017 |
|
3018 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
3019 INFO_FILE and INFO_PROGRAM. |
|
3020 * help.cc: Move all of that here. |
|
3021 (symbols_of_help): Add DEFVARS for INFO_FILE and INFO_PROGRAM. |
|
3022 |
|
3023 Tue May 14 00:23:06 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3024 |
|
3025 * pager.cc (do_sync): Be more defensive about sending stuff to the |
|
3026 external pager. |
|
3027 * sighandlers.cc (sigchld_handler): For now, only wait for |
|
3028 octave_pager_pid. Don't call error(). Do set octave_pager_pid to |
|
3029 -1 if the pager process no longer exists. |
|
3030 |
|
3031 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
3032 PWD. |
|
3033 * dirfns.cc: Move all of that here. |
|
3034 (symbols_of_dirfns): New function. |
|
3035 * variables.cc (install_builtin_variables): Call it. |
|
3036 |
|
3037 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
3038 default_save_format and save_precision. |
|
3039 * load-save.cc: Move all of that here. |
|
3040 (symbols_of_load_save): New function. |
|
3041 * variables.cc (install_builtin_variables): Call it. |
|
3042 |
|
3043 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
3044 warn_divide_by_zero. |
|
3045 * arith-ops.cc: Move all of that here. |
|
3046 (symbols_of_arith_ops): New function. |
|
3047 * variables.cc (install_builtin_variables): Call it. |
|
3048 |
|
3049 * mappers.cc: Add wrappers for ctype is* functions so that they |
|
3050 will work on systems that only define them as macros. |
|
3051 |
|
3052 Mon May 13 00:27:08 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3053 |
|
3054 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
3055 suppress_verbose_help_message. |
|
3056 * help.cc: Move all of that here. |
|
3057 (symbols_of_help): New function. |
|
3058 * variables.cc (install_builtin_variables): Call it. |
|
3059 |
|
3060 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
3061 treat_neg_dim_as_zero. |
|
3062 * pt-const.cc: Move all of that here. |
|
3063 |
|
3064 * pager.cc (octave_pager_stream::do_sync): Don't return early if |
|
3065 not interactive. |
|
3066 |
|
3067 * data.h: New file. |
|
3068 * Makefile.in (INCLUDES): Add it to the list. |
|
3069 * data.cc (symbols_of_data): New function. Move definition of I, |
|
3070 Inf, J, NaN, e, eps, i, inf, j, nan, pi, realmin, and realmax here. |
|
3071 * variables.cc: From here. |
|
3072 (install_builtin_variables): Call symbols_of_data. |
|
3073 |
|
3074 * file-io.cc (symbols_of_file_io): New function. Move definition |
|
3075 of SEEK_CUR, SEEK_END, SEEK_SET, stdin, stdout, stderr here. |
|
3076 * variables.cc: From here. |
|
3077 (install_builtin_variables): Call symbols_of_file_io. |
|
3078 |
|
3079 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
3080 do_fortran_indexing, implicit_str_to_num_ok, |
|
3081 ok_to_lose_imaginary_part, prefer_column_vectors, |
|
3082 prefer_zero_one_indexing, print_answer_id_name, |
|
3083 propagate_empty_matrices, resize_on_range_error, and |
|
3084 struct_levels_to_print. |
|
3085 * pt-const.cc: Move all of that here. |
|
3086 (symbols_of_pt_const): New function. |
|
3087 * variables.cc (install_builtin_variables): Call it. |
|
3088 * pt-fvc.cc (tree_identifier::assign): Use Vresize_on_range_error |
|
3089 instead of user_pref.resize_on_range_error here. |
|
3090 * load-save.cc (save_mat_binary_data): Use Vimplicit_str_to_num_ok |
|
3091 instead of user_pref.implicit_str_to_num_ok here. |
|
3092 * utils.cc (empty_arg): Use Vpropagate_empty_matrices instead of |
|
3093 user_pref.propagate_empty_matrices here. |
|
3094 * pt-exp-base.cc (tree_expression::is_logically_true): Likewise.. |
|
3095 |
|
3096 * pt-fcn.cc (symbols_of_pt_fcn): Also move DEFVAR for |
|
3097 default_return_value here. |
|
3098 |
|
3099 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
3100 ps1, ps2, ps4, and completion_append_char. |
|
3101 * input.cc: Move all of that here. |
|
3102 (symbols_of_input): New function. |
|
3103 * variables.cc (install_builtin_variables): Call it. |
|
3104 * pt-pr-code.cc (indent): Use Vps4 instead of user_pref.ps4 here. |
|
3105 * help.cc (Ftype): Also here. |
|
3106 |
|
3107 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
3108 automatic_replot, gnuplot_binary, and gnuplot_has_multiplot. |
|
3109 * pt-plot.cc: Move all of that here. |
|
3110 (symbols_of_pt_plot): New function. |
|
3111 * variables.cc (install_builtin_variables): Call it. |
|
3112 |
|
3113 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
3114 beep_on_error. |
|
3115 * error.cc: Move all of that here. |
|
3116 (symbols_of_error): New function. |
|
3117 * variables.cc (install_builtin_variables): Call it. |
|
3118 |
|
3119 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
3120 empty_list_elements_ok. |
|
3121 * pt-mat.cc: Move all of that here. |
|
3122 (symbols_of_pt_mat): New function. |
|
3123 * variables.cc (install_builtin_variables): Call it. |
|
3124 |
|
3125 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
3126 define_all_return_values, return_last_computed_value, and |
|
3127 silent_functions. |
|
3128 * pt-fcn.cc: Move all of that here. |
|
3129 (symbols_of_pt_fcn): New function. |
|
3130 * variables.cc (install_builtin_variables): Call it. |
|
3131 |
|
3132 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
3133 whitespace_in_literal_matrix. |
|
3134 * lex.l: Move all of that here. |
|
3135 (symbols_of_lex): New function. |
|
3136 * variables.cc (install_builtin_variables): Call it. |
|
3137 |
|
3138 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
3139 warn_assign_as_truth_value, warn_comma_in_global_decl, |
|
3140 warn_function_name_clash, and warn_missing_semicolon. |
|
3141 * parse.y: Move all of that here. |
|
3142 (symbols_of_parse): New function. |
|
3143 * variables.cc (install_builtin_variables): Call it. |
|
3144 |
|
3145 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
3146 output_precision, output_max_field_width, print_empty_dimensions, |
|
3147 and split_long_rows. |
|
3148 * pr-output.cc: Move all of that here. |
|
3149 (symbols_of_pr_output): New function. |
|
3150 * variables.cc (install_builtin_variables): Call it. |
|
3151 |
|
3152 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
3153 page_screen_output, page_output_immediately, and pager_binary. |
|
3154 * pager.cc: Move all of that here. |
|
3155 |
|
3156 * user-prefs.h (check_preference): Provide declaration. |
|
3157 * user-prefs.cc (check_preference): Make external. |
|
3158 |
|
3159 * toplev.cc (Foctave_config_info): New function. |
|
3160 |
|
3161 * oct-conf.h.in: New file |
|
3162 * Makefile.in (oct-conf.h): New target. |
|
3163 Add it to the appropriate lists. |
|
3164 |
|
3165 * sighandlers.cc (sigchld_handler): Don't complain about wait |
|
3166 returning a negative value. |
|
3167 |
|
3168 * file-io.cc (Fsscanf, Fsprintf): Pass true for second arg of |
|
3169 octave_stream constructor. |
|
3170 |
|
3171 * oct-stream.h (octave_stream): New field, preserve. |
|
3172 (octave_stream::~octave_stream): If preserve, don't delete rep. |
|
3173 |
|
3174 * pager.cc (symbols_of_pager): Set default for |
|
3175 page_output_immediately to 0. |
|
3176 |
|
3177 * toplev.cc (do_system): Correctly handle return_output. |
|
3178 Append ends to output_buf before calling str(). |
|
3179 |
|
3180 * variables.cc: If M_PI and M_E are available, use them. |
|
3181 |
|
3182 * mk-oct-links.in (links_dir): If old link exists, delete it first. |
|
3183 |
|
3184 Sun May 12 01:46:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3185 |
|
3186 * Makefile.in (DISTFILES): List defaults.h.in and oct-gperf.h here. |
|
3187 (INCLUDES): Not here. |
|
3188 (install-inc): New target. |
|
3189 (uninstall): Also delete libraries and include files. |
|
3190 (install-inc): If linkdir is a directory, leave it alone. |
|
3191 (TERMLIBS, LIBPLPLOT, LIBDLFCN): Don't substitute here (now in |
|
3192 Makeconf). |
|
3193 |
|
3194 * oct-stream.cc (octave_base_stream::do_read): Provide initial |
|
3195 value for tmp var. |
|
3196 |
|
3197 * pt-walk.h, pt-pr-code.h, pt-pr-code.cc: New tree-walking classes. |
|
3198 * Makefile.in: Add them to the appropriate lists. |
|
3199 * pt-fvc-base.h, pt-exp-base.cc, pt-fvc-base.cc, pt-mvr-base.cc, |
|
3200 pt-base.cc, pt-mvr.cc, pt-mat.h, pt-mat.cc, pt-fvc.cc, |
|
3201 pt-const.cc, pt-cmd.cc, pt-const.h, pt-misc.cc, pt-plot.cc, |
|
3202 pt-fcn.cc, pt-plot.h, pt-mvr.h, pt-mvr-base.h, pt-misc.h, |
|
3203 pt-fcn.h, pt-exp.h, pt-exp.cc, pt-exp-base.h, pt-fvc.h, pt-cmd.h, |
|
3204 pt-base.h: |
|
3205 Replace print_code stuff with accept() functions. |
|
3206 Add member access functions where necessary. |
|
3207 * help.cc (Ftype): Update to use new method of walking trees to |
|
3208 print text representation of user-defined functions. |
|
3209 |
|
3210 * file-io.cc (Ffscanf): Update doc string. |
|
3211 (Fsscanf): Likewise. |
|
3212 |
|
3213 * oct-stream.cc (octave_base_stream::do_read): Correctly set max_size. |
|
3214 Pad mval with zeros on final resize. |
|
3215 (octave_base_stream::do_scanf): Likewise. |
|
3216 (do_scanf_conv): Correctly resize mval. |
|
3217 |
|
3218 Sat May 11 05:14:09 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3219 |
|
3220 * pager.cc (octave_pager_buf::sync): Correctly set bypass_pager. |
|
3221 |
|
3222 * lex.l (<MATRIX>{SNLCMT}*\]{S}*): Match SNLCMT, not just SNL. |
|
3223 |
|
3224 Fri May 3 11:05:30 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3225 |
|
3226 * pt-const.cc (OCT_VAL_REP::set_index): Complain if type can't be |
|
3227 indexed. |
|
3228 |
|
3229 * input.cc (get_user_input): Don't increment input line number if |
|
3230 input is coming from eval string. |
|
3231 |
|
3232 * user-prefs.cc: Allow empty strings for prompts. |
|
3233 |
|
3234 Thu May 2 10:50:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3235 |
|
3236 * pt-mvr.h (class tree_oct_obj): Declare values data member const. |
|
3237 |
|
3238 Sun Apr 28 03:16:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3239 |
|
3240 * user-prefs.h (user_preferences): New field, |
|
3241 `page_output_immediately'. |
|
3242 * user-prefs.cc (init_user_prefs): Initialize it. |
|
3243 (page_output_immediately): New function. |
|
3244 * pager.cc (syms_of_pager): Add DEFVAR. |
|
3245 (really_flush_to_pager): New file-scope variable. |
|
3246 (flush_octave_stdout): Set and restore it. |
|
3247 (octave_pager_buf::sync): Check it, user_pref.page_screen_output, |
|
3248 and user_pref.page_output_immediately to decide when to really |
|
3249 flush output. |
|
3250 (more_than_a_screenful): New function. If paging but not |
|
3251 immediately, then check this too. |
|
3252 |
|
3253 * pager.cc (default_pager): Move here from variables.cc. If pager |
|
3254 is less and LESS is not in the environment, append useful flags. |
|
3255 (symbols_of_pager): New function. |
|
3256 * variables.cc (install_builtin_variables): Call it. |
|
3257 Delete pager-related DEFVARs. |
|
3258 |
|
3259 * syswait.h (WIFSIGNALLED): Define if sys/wait.h doesn't. |
|
3260 |
|
3261 * sighandlers.cc: Handle SIGCHLD. |
|
3262 |
|
3263 * pager.cc, pager.h: Rewrite. |
|
3264 * pt-mvr.cc, pt-misc.cc, pt-fcn.cc, pt-const.cc, oct-hist.cc, |
|
3265 file-io.cc, help.cc, variables.cc, qpsol.cc, dassl.cc, quad.cc, |
|
3266 npsol.cc, lsode.cc, fsolve.cc, load-save.cc, dirfns.cc, octave.cc, |
|
3267 toplev.cc, error.cc, input.cc: |
|
3268 Write to octave_stdout and octave_diary instead of calling |
|
3269 maybe_page_output() or maybe_write_to_diary_file(). |
|
3270 |
|
3271 * oct-procbuf.h, oct-procbuf.cc: New files. |
|
3272 * procstream.h (class procstreambase): Use octave_procbuf instead |
|
3273 of procbuf from libg++, so we can get pids of subprocesses. |
|
3274 |
|
3275 Fri Apr 26 01:21:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3276 |
|
3277 * pt-const.cc (OCT_VAL_REP::do_index): Call maybe_mutate() before |
|
3278 returning. |
|
3279 |
|
3280 * mappers.h (struct Mapper_fcn): Delete. |
|
3281 (struct builtin_mapper_function): New field ch_mapper. |
|
3282 * pt-fvc.h (tree_builtin): Convert type of mapper_fcn from |
|
3283 Mapper_fcn to builtin_mapper_function. |
|
3284 * variables.cc (install_builtin_mapper): Likewise, for arg. |
|
3285 Simplify, since we don't have to do the copying ourselves now. |
|
3286 * pt-fvc.cc (apply_mapper_function): Handle ch_mapper case. |
|
3287 * defun.h (DEFUN_MAPPER): Likewise. |
|
3288 * mappers.cc (install_builtin_mappers): Likewise. |
|
3289 Add ctype is* functions here. |
|
3290 |
|
3291 Thu Apr 25 00:57:06 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3292 |
|
3293 * arith-ops.h, defun-int.h, defun.h, dynamic-ld.h, gripes.h, |
|
3294 load-save.h, oct-map.h, oct-obj.h, oct-stream.h, pt-cmd.h, |
|
3295 pt-const.h, pt-exp-base.h, pt-exp.h, pt-fcn.h, pt-fvc-base.h, |
|
3296 pt-fvc.h, pt-mat.h, pt-misc.h, pt-mvr-base.h, pt-mvr.h, pt-plot.h, |
|
3297 symtab.h, toplev.h, utils.h, variables.h, xpow.h, Array-tc.cc, |
|
3298 Map-i.cc, Map-tc.cc, SLList-tc.cc, arith-ops.cc, balance.cc, |
|
3299 bogus.cc, chol.cc, colloc.cc, dassl.cc, data.cc, det.cc, |
|
3300 dirfns.cc, eig.cc, error.cc, expm.cc, fft.cc, fft2.cc, file-io.cc, |
|
3301 filter.cc, find.cc, fsolve.cc, fsqp.cc, givens.cc, gripes.cc, |
|
3302 help.cc, hess.cc, ifft.cc, ifft2.cc, input.cc, inv.cc, |
|
3303 load-save.cc, log.cc, lpsolve.cc, lsode.cc, lu.cc, minmax.cc, |
|
3304 npsol.cc, oct-hist.cc, oct-obj.cc, oct-stream.cc, pager.cc, |
|
3305 pinv.cc, pr-output.cc, pt-cmd.cc, pt-const.cc, pt-exp-base.cc, |
|
3306 pt-exp.cc, pt-fcn.cc, pt-fvc-base.cc, pt-fvc.cc, pt-mat.cc, |
|
3307 pt-misc.cc, pt-mvr-base.cc, pt-mvr.cc, pt-plot.cc, qpsol.cc, |
|
3308 qr.cc, quad.cc, qzval.cc, rand.cc, resource.cc, schur.cc, sort.cc, |
|
3309 strfns.cc, svd.cc, syl.cc, symtab.cc, syscalls.cc, sysdep.cc, |
|
3310 timefns.cc, toplev.cc, utils.cc, variables.cc, xpow.cc, parse.y: |
|
3311 Rename tree_constant -> octave_value. |
|
3312 Rename Octave_object -> octave_value_list. |
|
3313 |
|
3314 Wed Apr 24 22:15:34 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3315 |
|
3316 * toplev.cc (Fsystem): Merge functionality of async_system and |
|
3317 sync_system. |
|
3318 |
|
3319 * oct-fstrm.h, oct-iostrm.h, oct-prcstrm.h, oct-stdstrm.h, |
|
3320 oct-stream.h, oct-strstrm.h, oct-fstrm.cc, oct-iostrm.cc, |
|
3321 oct-prcstrm.cc, oct-stdstrm.cc, oct-stream.cc, oct-strstrm.cc, |
|
3322 Array-os.cc: New files. |
|
3323 * Makefile.in: Add them to the appropriate lists. |
|
3324 * file-io.cc: Rewrite to use new stream classes. |
|
3325 |
|
3326 Tue Apr 23 18:59:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3327 |
|
3328 * gripes.cc (gripe_not_supported): New function. |
|
3329 |
|
3330 * toplev.cc (do_octave_atexit, Fatexit): New functions. |
|
3331 (octave_atexit_functions): New file-scope variable. |
|
3332 * octave.cc (main): Register do_octave_atexit with atexit. |
|
3333 |
|
3334 * variables.cc (install_builtin_variables): Call |
|
3335 symbols_of_syscalls here. |
|
3336 |
|
3337 * syscalls.h, syscalls.cc: New files. |
|
3338 |
|
3339 Mon Apr 22 21:14:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3340 |
|
3341 * syscalls.cc: New file. |
|
3342 (Flstat, Fmkfifo, Fstat, Funlink, Fwait, Fwaitpid): Move here. |
|
3343 * file-io.cc: From here. |
|
3344 * Makefile.in (SOURCES): Add syscalls.cc to the list. |
|
3345 |
|
3346 Wed Apr 17 18:34:10 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3347 |
|
3348 * file-info.h, file-info.cc: Delete files. |
|
3349 * Makefile.in: Remove from lists. |
|
3350 |
|
3351 * toplev.cc (Fquit): Accept exit status argument. |
|
3352 (Fflops): Delete (now a function file). |
|
3353 |
|
3354 Thu Apr 11 16:20:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3355 |
|
3356 * lex.l: Recognize `.'. |
|
3357 Update current_input_column even for unrecognized characters. |
|
3358 Return LEXICAL_ERROR for unrecognized characters. |
|
3359 |
|
3360 Mon Apr 8 19:59:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3361 |
|
3362 * variables.cc (install_builtin_variables): Split into several |
|
3363 functions to make compiling with g++ go faster and consume less |
|
3364 memory. |
|
3365 |
|
3366 Sun Apr 7 16:25:35 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3367 |
|
3368 * load-save.cc (Fsave): Print usage if i == argc. |
|
3369 (Fload): Likewise. |
|
3370 |
|
3371 Sat Apr 6 21:26:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3372 |
|
3373 * Makefile.in (clean): Also delete pic/*.o |
|
3374 (maintainer-clean, distclean): Also remove stamp-picdir, |
|
3375 stamp-tinst, stamp-interp, and pic directory. |
|
3376 (stamp-prereq): New target. |
|
3377 |
|
3378 Wed Apr 3 11:19:30 1996 Rick Niles <niles@axp745.gsfc.nasa.gov> |
|
3379 |
|
3380 * resource.cc: Don't make including sys/resource.h and sys/times.h |
|
3381 mutually exclusive. |
|
3382 |
|
3383 Fri Mar 29 13:43:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3384 |
|
3385 * Makefile.in (distclean): Delete so_locations, which is created |
|
3386 on DEC Alpha systems. |
|
3387 |
|
3388 Thu Mar 28 02:53:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3389 |
|
3390 * utils.h (undo_string_escape): Provide extern declaration here. |
|
3391 |
|
3392 * lex.l (NL): Allow \r\n as new line character. |
|
3393 (.): Complain if invalid character is found on input |
|
3394 |
|
3395 Fri Mar 22 03:47:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3396 |
|
3397 * resource.cc (getrusage): If getrusage is missing, try using |
|
3398 times to at least fill in the cpu time values. If neither one is |
|
3399 available, return 0 for cpu times instead of NaN. |
|
3400 |
|
3401 * sighandlers.cc (octave_signal_mask): New file-scope variable. |
|
3402 (octave_save_signal_mask, octave_restore_signal_mask): New functions. |
|
3403 * toplev.cc (main_loop): Use them. |
|
3404 |
|
3405 Wed Mar 20 01:21:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3406 |
|
3407 * utils.cc (get_fcn_file_names (const string&, int)): Resize |
|
3408 retval to value of k, not i. |
|
3409 (get_fcn_file_names (int)): In loop for copying names to retval, |
|
3410 don't increment j twice. |
|
3411 |
|
3412 Mon Mar 18 22:27:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3413 |
|
3414 * Makefile.in ($(MAKEDEPS)): Depend on oct-gperf.h. |
|
3415 |
|
3416 Fri Mar 1 18:15:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3417 |
|
3418 * fsolve.cc (fsolve_options): Delete unused argument nargout. |
|
3419 |
|
3420 * filter.cc: Use MArray instead of Array so that automatic |
|
3421 conversions will work again. |
|
3422 |
|
3423 Tue Feb 27 04:49:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3424 |
|
3425 * variables.cc (looks_like_octave_copyright): Make the strings |
|
3426 that we are trying to match both have length 29. |
|
3427 |
|
3428 * Makefile.in (install-bin): Use $(INSTALL_PROGRAM), not $(INSTALL). |
|
3429 |
|
3430 * load-save.cc (read_mat_binary_data): Make sure name is |
|
3431 NUL terminated. |
|
3432 |
|
3433 Mon Feb 26 18:18:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3434 |
|
3435 * variables.cc (whos): Make argv from tmp_args, not args. |
|
3436 |
|
3437 * defun.h (DEFCONSTX): Don't stringify name. |
|
3438 |
|
3439 Sat Feb 24 01:12:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3440 |
|
3441 * Makefile.in (install-oct): Make mk-oct-links executable. |
|
3442 * mk-oct-links.in (links_dir): Update to match new format of |
|
3443 DEFUN_DLD_BUILTIN macro. Use LN_S, not just LN. |
|
3444 (links_dir): |
|
3445 |
|
3446 * pr-output.cc (octave_print_internal): New arg, extra_indent, for |
|
3447 versions of this function that take matrices and ranges. |
|
3448 * pt-const.cc (TC_REP::print (ostream&)): Fix printing of structures. |
|
3449 Pass struct_indent to octave_print_internal as appropriate. |
|
3450 (print_with_name (ostream&, const string&, bool)): Handle spacing |
|
3451 around `=' differently for structures. |
|
3452 |
|
3453 Fri Feb 23 04:51:04 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3454 |
|
3455 * token.cc (token (double, const string&, int, int)): Store orig_text. |
|
3456 |
|
3457 Tue Feb 20 20:36:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3458 |
|
3459 * variables.cc (Fclear): Fix off-by-one error. |
|
3460 |
|
3461 Sat Feb 17 16:54:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3462 |
|
3463 * oct-hist.cc (default_history_file): Append "/.octave_hist" to |
|
3464 return value, not to home_directory. |
|
3465 |
|
3466 Fri Feb 16 18:10:46 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3467 |
|
3468 * utils.cc: (NINT, D_NINT): Move to liboctave. |
|
3469 |
|
3470 * sysdep.cc (octave_ieee_init): Move to liboctave. |
|
3471 |
|
3472 * procstream.h, procstream.cc: Rewrite. |
|
3473 |
|
3474 * pager.cc (cleanup_oprocstream): New static function. |
|
3475 * toplev.cc (cleanup_iprocstream): Likewise. |
|
3476 * dirfns.cc (cleanup_iprocstream): Likewise. |
|
3477 |
|
3478 * unwind-prot.cc (matrix_cleanup, complex_matrix_cleanup): Delete. |
|
3479 |
|
3480 Thu Feb 15 22:03:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3481 |
|
3482 * oct-obj.cc, oct-obj.h: Move most code to the header. |
|
3483 |
|
3484 * oct-obj.cc (make_argv, all_strings): New member functions. |
|
3485 * utils.cc: Moved from here. |
|
3486 |
|
3487 * load-save.cc: Move byte swapping stuff to liboctave. |
|
3488 Move float format conversion stuff to liboctave. |
|
3489 (all_parts_int, too_large_for_float): Move to liboctave. |
|
3490 |
|
3491 * symtab.cc (valid_identifier): Move here. |
|
3492 * load-save.cc: From here. |
|
3493 |
|
3494 * sysdep.cc: Move floating-point format stuff to liboctave. |
|
3495 * pr-output.cc: Include float-fmt.h here. |
|
3496 |
|
3497 Wed Feb 14 01:49:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3498 |
|
3499 * defun.h, defun-dld.h, defun-int.h: Simplify interface for DEFUN, |
|
3500 DEFUN_DLD, DEFVAR, and DEFCONST macros. Change all uses. |
|
3501 |
|
3502 * qzval.cc: Move guts to liboctave. |
|
3503 |
|
3504 Tue Feb 13 10:28:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3505 |
|
3506 * variables.cc (parse_fcn_file): Also avoid saving history if |
|
3507 input is from a script file. |
|
3508 |
|
3509 * help.cc (Ftype): Call unwind_protect_str for user_pref.ps4. |
|
3510 |
|
3511 * npsol.cc (nonlinear_constraints_ok): Now static. |
|
3512 |
|
3513 * npsol.cc (linear_constraints_ok): Now static. |
|
3514 * qpsol.cc (linear_constraints_ok): Duplicate here. |
|
3515 |
|
3516 * data.cc (Flinspace): Don't print usage message if nargin == 2. |
|
3517 |
|
3518 Sun Feb 11 14:20:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3519 |
|
3520 * mk-oct-links.in: Rename from mk-oct-links. |
|
3521 (LN_S): Use this variable instead of ln. |
|
3522 Set -e option for shell. |
|
3523 Exit with status of last command. |
|
3524 Print message when making link. |
|
3525 * Makefile.in (DISTFILES): Add mk-oct-links.in to the list. |
|
3526 (install-oct): Run ./mk-oct-links, not $(srcdir)/mk-oct-links. |
|
3527 |
|
3528 * variables.cc (install_builtin_variables): Restore accidentally |
|
3529 deleted DEFVAR for save_precision. |
|
3530 |
|
3531 Fri Feb 9 11:24:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3532 |
|
3533 * Makefile.in (INCLUDES): Delete statdefs.h from the list (it's |
|
3534 now in the liboctave directory). |
|
3535 |
|
3536 * toplev.cc (toplevel): Define here. |
|
3537 * octave.cc (toplevel): Not here. |
|
3538 |
|
3539 * toplev.cc (main_loop): New function. |
|
3540 * octave.cc (main): Call it here instead of doing main loop |
|
3541 actions here. |
|
3542 |
|
3543 * user-prefs.cc (do_fortran_indexing): Also set liboctave_dfi_flag. |
|
3544 (prefer_column_vectors): Also set liboctave_pcv_flag. |
|
3545 (prefer_zero_one_indexing): Also set liboctave_pzo_flag. |
|
3546 (resize_on_range_error): Also set liboctave_rre_flag. |
|
3547 |
|
3548 * variables.cc (restore_command_history): New function. |
|
3549 (parse_fcn_file): Use it here in unwind_protect. |
|
3550 |
|
3551 * dynamic-ld.cc (load_octave_oct_file): Reverse sense of test. |
|
3552 (load_octave_builtin): Delete. |
|
3553 (mangle_octave_oct_file_name): Delete. |
|
3554 |
|
3555 * pt-fvc.cc (tree_builtin::eval): Don't try to dynamically load |
|
3556 functions here. |
|
3557 |
|
3558 * pr-output.cc (set_format_style): Decrement argc for first arg too. |
|
3559 |
|
3560 * input.cc (gnu_readline): If readline returns an empty string, |
|
3561 convert it to a string containing a single newline character. |
|
3562 |
|
3563 * octave.cc (octave_argv): Now a static string_vector. |
|
3564 (intern_argv): Use string_vector ops, not charMatrix ops. |
|
3565 * toplev.cc (octave_argv): Delete definition. |
|
3566 * toplev.h (octave_argv): Delete declaration. |
|
3567 |
|
3568 Thu Feb 8 10:58:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3569 |
|
3570 * Makefile.in (conf-dist): New target. |
|
3571 |
|
3572 Tue Feb 6 10:59:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3573 |
|
3574 * help.cc (Ftype): Correctly handle structure names. |
|
3575 |
|
3576 Sun Feb 4 02:02:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3577 |
|
3578 * qpsol.cc (Fqpsol): Call set_options(), not copy() to set |
|
3579 options for QPSOL objects. |
|
3580 |
|
3581 * npsol.cc (Fnpsol): Call set_options(), not copy() to set |
|
3582 options for NPSOL objects. |
|
3583 |
|
3584 * quad.cc (Fquad): Call set_options(), not copy() to set |
|
3585 options for Quad objects. |
|
3586 |
|
3587 * dynamic-ld.cc (load_octave_builtin): Don't call destructor on string. |
|
3588 (load_octave_oct_file): Likewise. |
|
3589 Check oct_file.empty(), not just oct_file. |
|
3590 |
|
3591 * fsolve.cc (Ffsolve): Call set_options(), not copy() to set |
|
3592 options for NLEqn object. |
|
3593 |
|
3594 * variables.cc (do_who): Properly set match patterns from argument |
|
3595 vector for call to maybe_list. |
|
3596 |
|
3597 Sat Feb 3 03:29:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3598 |
|
3599 * octave.cc (long_opts): Properly set second field using new enum. |
|
3600 |
|
3601 * lsode.cc: Change ODE to LSODE where appropriate. |
|
3602 Use LSODE_options, not ODE_options. |
|
3603 |
|
3604 * dassl.cc: Change DAE to DASSL where appropriate. |
|
3605 Use DASSL_options, not ODE_options. |
|
3606 |
|
3607 Fri Feb 2 01:41:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3608 |
|
3609 * dirfns.cc: Include unistd.h. |
|
3610 |
|
3611 * parse.y, lex.l: Handle matrix lists without ml or mlnm stacks. |
|
3612 * pt-mat.h, pt-mat.cc (tree_matrix): |
|
3613 Rewrite to use SLList instead of home brew list. |
|
3614 * SLList-tm.cc: New file |
|
3615 * Makefile.in: Add it to the lists. |
|
3616 * SLStack-tm.cc: Delete. |
|
3617 * Makefile.in: Delete it from the lists. |
|
3618 |
|
3619 * All pt-* files: Use bool instead of int where appropriate. |
|
3620 |
|
3621 * Makefile.in (DEP_SOURCES_3): Add octave.cc. |
|
3622 |
|
3623 * pt-const.h (class tree_constant::tree_constant_rep): Make |
|
3624 everything in this class public, then it doesn't need to declare |
|
3625 the tree_constant class as a friend. |
|
3626 |
|
3627 Thu Feb 1 01:42:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3628 |
|
3629 * lex.h, lex.l, parse.h, parse.y (class lexical_feedback): New |
|
3630 class for lexer flags. Replace lots of global vars with members |
|
3631 of this class. |
|
3632 |
|
3633 * lex.l (class brace_paren_nesting_level): New class to replace |
|
3634 nesting_level stack. nesting_level is now an instance of this |
|
3635 class. |
|
3636 |
|
3637 * lex.l (yum_yum): New typedef. |
|
3638 (ATE_NOTHING): New global var. |
|
3639 (ATE_SPACE_OR_TAB, ATE_NEWLINE): Don't #define these, declare them |
|
3640 as const yum_yum. |
|
3641 (eat_whitespace, eat_continuation): Return yum_yum, not int. |
|
3642 |
|
3643 * lex.l (SHORT_CIRCUIT_LOGICALS): Delete. Always do this for || |
|
3644 and && tokens. |
|
3645 (yy_flex_alloc, yy_flex_realloc, yy_flex_free, next_char_is_space): |
|
3646 Delete. |
|
3647 |
|
3648 * toplev.cc (verbose_flag): Delete definition. |
|
3649 * toplev.h (verbose_flag): And declaration. |
|
3650 * octave.cc (verbose_flag): Now static. |
|
3651 |
|
3652 * lex.l (lookup_identifier): Arg is now string, not char*. |
|
3653 (handle_identifier, is_plot_keyword, is_keyword): Likewise. |
|
3654 (strip_trailing_whitespace): Return value is now string, not char*. |
|
3655 (plot_style_token): Likewise, for both arg and return value. |
|
3656 |
|
3657 * input.cc (octave_gets_line): Delete. |
|
3658 (gnu_readline, octave_gets, octave_read): |
|
3659 Properly handle input when using_readline is either true or false. |
|
3660 Don't limit length of input lines to flex buffer size. |
|
3661 (get_user_input): New function. |
|
3662 |
|
3663 * octave.cc (main): Handle --no-line-editing. |
|
3664 * toplev.h (using_readline): Provide external declaration here. |
|
3665 * input.h: Not here. |
|
3666 * toplev.cc (using_readline): Define here. |
|
3667 * input.cc: Not here. |
|
3668 |
|
3669 * toplev.h (no_line_editing): Delete declaration. |
|
3670 * input.cc (no_line_editing): Delete definition. |
|
3671 |
|
3672 Wed Jan 31 05:28:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3673 |
|
3674 * input.cc (DEFAULT_ARRAY_SIZE, PROMPT_GROWTH): Delete definitions |
|
3675 of unused macros. |
|
3676 (read_octal): Now static. |
|
3677 |
|
3678 * givens.cc (Fgivens): Use new functions from matrix classes |
|
3679 instead of calling Fortran functions directly. |
|
3680 * syl.cc (Fsyl): Likewise. |
|
3681 * expm.cc (Fexpm): Likewise. |
|
3682 |
|
3683 Mon Jan 29 00:00:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3684 |
|
3685 * octave.cc: Use new prog_args class instead of calling getopt |
|
3686 directly. |
|
3687 |
|
3688 * getopt.h, getopt.c, getopt1.c: Move to liboctave directory. |
|
3689 * Makefile: Remove from lists. |
|
3690 |
|
3691 * utils.cc (strconcat, read_until, discard_until): Delete. |
|
3692 |
|
3693 * pager.cc (terminal_columns, terminal_rows): Move to |
|
3694 liboctave/oct-term.cc. |
|
3695 * pager.cc, pr-output.cc: Include oct-term.h. |
|
3696 |
|
3697 * utils.cc (list_in_columns): Moved to liboctave/str-vec.cc. |
|
3698 Change all callers to use new member function syntax. |
|
3699 |
|
3700 * dirfns.cc (absolute_program): Now static. |
|
3701 (absolute_pathname): Delete. |
|
3702 |
|
3703 * pt-plot.cc (save_in_tmp_file): Call oct_tempnam, not |
|
3704 octave_tmp_file_name. Include file-ops.h. |
|
3705 * file-io.cc (do_scanf, Foctave_tmp_file_name): Likewise. |
|
3706 * oct-hist.cc (mk_tmp_hist_file): Likewise. |
|
3707 |
|
3708 * file-io.cc (Foctave_tmp_file_name): Move here. |
|
3709 * utils.cc: From here. |
|
3710 |
|
3711 * utils.cc (octave_tmp_file_name): Move to liboctave/file-ops.cc. |
|
3712 |
|
3713 * tempname.c, tempnam.c: Move to liboctave directory. |
|
3714 * Makefile.in: Remove from lists. |
|
3715 |
|
3716 Sun Jan 28 19:00:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3717 |
|
3718 * xdiv.cc (all xdiv functions): Return Matrix or ComplexMatrix, |
|
3719 not tree_constant. |
|
3720 |
|
3721 * oct-hist.h, oct-hist.cc, toplev.cc, octave.cc, input.cc, |
|
3722 file-io.cc, user-prefs.cc: Rewrite to use new command_history |
|
3723 class instead of calling readline history functions directly. |
|
3724 |
|
3725 * utils.cc (get_fcn_file_names): Delete num arg. |
|
3726 |
|
3727 Thu Jan 25 20:33:54 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3728 |
|
3729 * load-save.cc (matches_patterns): Use new glob_match class |
|
3730 instead of calling fnmatch directly. |
|
3731 * symtab.cc (matches_patterns, symbol_table::glob): Likewise. |
|
3732 * variables.cc (Fclear): Likewise. |
|
3733 |
|
3734 Wed Jan 24 02:05:22 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3735 |
|
3736 * fnmatch.h fnmatch.c: Delete. |
|
3737 * Makefile.in: Add glob stuff in the appropriate places, remove |
|
3738 fnmatch.h and fnmatch.c from lists. |
|
3739 |
|
3740 * octave.cc (program_invocation_name, program_invocation_short_name): |
|
3741 Maybe declare. |
|
3742 (initialize_globals): Maybe initialize them. |
|
3743 |
|
3744 * octave.cc (initialize_pathsearch): Define here, not in pathsearch.cc. |
|
3745 * pathsearch.h, pathsearch.cc: Remove files. |
|
3746 * Makefile.in: Remove them from the lists. |
|
3747 |
|
3748 * help.cc (simple_help): Ignore directories that don't have any .m |
|
3749 or .oct files. |
|
3750 |
|
3751 * utils.cc (search_path_for_file): Use new dir_path class instead |
|
3752 of calling kpathsea routines directly. |
|
3753 (get_fcn_file_names): Likewise. |
|
3754 * help.cc (simple_help): Likewise. |
|
3755 |
|
3756 * dirfns.cc (make_absolute): Don't convert empty arg to "./". |
|
3757 |
|
3758 * sysdir.h: Move to liboctave directory. |
|
3759 * Makefile.in: Remove from lists. |
|
3760 |
|
3761 * dirfns.cc (Freaddir): Use new dir_entry class instead of calling |
|
3762 readdir directly. Include dir-ops.h, not sysdir.h. |
|
3763 * utils.cc (get_fcn_file_names): Likewise. Delete unnecessary |
|
3764 first arg, change all callers. |
|
3765 |
|
3766 Tue Jan 23 00:43:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3767 |
|
3768 * safe-xstat.hin, safe-xstat.cin, statdefs.h, file-ops.h, |
|
3769 file-ops.cc, filemode.c, mkdir.c, rmdir.c, rename.c: |
|
3770 Files moved to liboctave directory. |
|
3771 * Makefile.in: Remove them from lists. Move appropriate rules. |
|
3772 |
|
3773 * acosh.c, asinh.c, atanh.c, erf.c, erfc.c, gamma.c, lgamma.c: |
|
3774 Files moved to liboctave directory. |
|
3775 * Makefile.in: Remove them from lists. |
|
3776 * missing-math.h: Deleted. |
|
3777 * pr-output.cc, sysdep.cc, minmax.cc, mappers.cc, expm.cc, |
|
3778 arith-ops.cc: Include oct-math.h, not cmath or missing-math.h. |
|
3779 |
|
3780 Mon Jan 22 19:33:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3781 |
|
3782 * variables.cc (Fexist): Use file_stat instead of calling stat |
|
3783 directly. Include file-ops.h, not statdefs.h. |
|
3784 * octave.cc (execute_startup_files): Likewise. |
|
3785 * file-io.cc (file_io_get_file, fopen_internal, popen_internal, Fstat): |
|
3786 Likewise. |
|
3787 (mk_stat_map): Likewise, use file_stat object, not struct stat. |
|
3788 * oct-hist.cc (do_history): Likewise. |
|
3789 |
|
3790 * file-ops.h, file-stat.cc: New files. |
|
3791 * Makefile.in: Include them. |
|
3792 * dirfns.cc: Delete is_newer. Don't include statdefs.h. |
|
3793 * toplev.cc: Don't include statdefs.h. |
|
3794 |
|
3795 Sun Jan 21 22:48:03 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3796 |
|
3797 * pt-mvr.h, pt-fvc.h, Map.cc, Map.h, dynamic-ld.h, |
|
3798 pt-fvc-base.cc, SLList-str.cc, pt-fcn.h, pt-fvc-base.h, |
|
3799 SLStack-str.cc, pt-mvr.cc, pt-exp.cc, token.h, token.cc, |
|
3800 user-prefs.h, pt-base.cc, user-prefs.cc, dirfns.h, sysdep.h, |
|
3801 sysdep.cc, input.h, parse.h, lex.l, parse.y, defun.h, mappers.h, |
|
3802 pt-fvc.cc, pt-plot.h, load-save.h, octave.cc, defun-int.h, help.h, |
|
3803 variables.h, oct-map.h, oct-obj.h, oct-obj.cc, pt-const.cc, |
|
3804 oct-map.cc, input.cc, symtab.h, pt-const.h, pathsearch.cc, |
|
3805 pr-output.h, pr-output.cc, toplev.h, timefns.cc, schur.cc, |
|
3806 pt-plot.cc, pager.cc, load-save.cc, dynamic-ld.cc, dirfns.cc, |
|
3807 data.cc, file-info.h, file-info.cc, colloc.cc, utils.h, qpsol.cc, |
|
3808 quad.cc, npsol.cc, lsode.cc, fsolve.cc, dassl.cc, file-io.cc, |
|
3809 help.cc, utils.cc, oct-hist.h, oct-hist.cc, symtab.cc, toplev.cc, |
|
3810 pt-fcn.cc, unwind-prot.h, unwind-prot.cc, variables.cc: |
|
3811 Most functions in these files that deal with character strings |
|
3812 have been converted to use the string class insatead of char*. If |
|
3813 you want more detailed information, you'll have to figure it out |
|
3814 for yourself. |
|
3815 |
|
3816 Sat Jan 20 18:19:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3817 |
|
3818 * dynamic-ld.cc [WITH_DL]: Define RTLD_LAZY to be 1 if it is not |
|
3819 already defined. |
|
3820 |
|
3821 Sun Jan 14 07:48:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3822 |
|
3823 * pt-const.cc (print_as_scalar, print_as_structure): |
|
3824 Make these member functions. |
|
3825 (tree_constant::print_with_name): New function, moved here from |
|
3826 old tree-expr.cc file (where it was called print_constant) and |
|
3827 converted to member function. Change all callers. |
|
3828 |
|
3829 Fri Jan 12 01:54:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3830 |
|
3831 * octave.cc (initialize_globals): Don't do kpathsearch stuff here. |
|
3832 (main): Call initialize_pathsearch() here. |
|
3833 |
|
3834 * pathsearch.cc: New file. |
|
3835 * Makefile.in (SOURCES): Add it to the list |
|
3836 |
|
3837 * oct-hist.h: Rename from octave-hist.h. |
|
3838 * oct-hist.cc: Rename from octave-hist.cc. |
|
3839 * Makefile.in, parse.y, other .cc files: Cope with it. |
|
3840 |
|
3841 * dynamic-ld.cc: Avoid warnings if !WITH_DYNAMIC_LINKING. |
|
3842 |
|
3843 * load-save.cc (save_ascii_data): string::data() returns const char*. |
|
3844 |
|
3845 * utils.h: Don't provide forward declaration for tree_constant. |
|
3846 |
|
3847 * oct-obj.h: Don't include mx-base.h or provide forward |
|
3848 declarations for Matrix and Range types. |
|
3849 |
|
3850 * file-info.h: Don't include oct-obj.h. Do include cstdio. |
|
3851 |
|
3852 * symtab.h: Don't provide forward declaration for ostream. |
|
3853 |
|
3854 * variables.h: Don't provide forward declarations for istream, |
|
3855 ostrstream, tree, builtin_function, or builtin_variable objects. |
|
3856 |
|
3857 * balance.cc, chol.cc, colloc.cc, dassl.cc, det.cc, eig.cc, |
|
3858 expm.cc, fft.cc, fft2.cc, filter.cc, find.cc, fsolve.cc, fsqp.cc, |
|
3859 givens.cc, hess.cc, ifft.cc, ifft2.cc, inv.cc, log.cc, lpsolve.cc, |
|
3860 lsode.cc, lu.cc, minmax.cc, npsol.cc, pinv.cc, qpsol.cc, qr.cc, |
|
3861 quad.cc, qzval.cc, rand.cc, schur.cc, sort.cc, svd.cc, syl.cc: |
|
3862 Clean up #include statements. |
|
3863 |
|
3864 * pt-const.h: Don't include oct-obj.h or tree-base.h. |
|
3865 Provide forward declaration of Octave_object here. |
|
3866 * pt-const.cc: Include oct-obj.h here. |
|
3867 |
|
3868 * pt-mat.h, pt-fcn.h, pt-const.h, pt-misc.h, pt-plot.h, |
|
3869 pt-exp-base.h, pt-cmd.h, pt-fvc-base.h, pt-mvr-base.h, pt-exp.h, |
|
3870 pt-mvr.h, pt-fvc.h: New files, split from tree-expr.h and/or |
|
3871 renamed from other tree-*.h files (pt == parse tree). |
|
3872 * pt-base.cc, pt-const.cc, pt-exp.cc, pt-fvc-base.cc, pt-mat.cc, |
|
3873 pt-mvr-base.cc, pt-plot.cc, pt-cmd.cc, pt-exp-base.cc, pt-fcn.cc, |
|
3874 pt-fvc.cc, pt-misc.cc, pt-mvr.cc: Likewse, split from tree-expr.cc |
|
3875 and/or other tree-*.cc files. |
|
3876 * Makefile.in: Include them in the appropriate lists. |
|
3877 * All: Fix #include statements to match. |
|
3878 |
|
3879 * Array-tc.cc: Don't instantiate ArrayRep objects. |
|
3880 |
|
3881 Thu Jan 11 02:35:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3882 |
|
3883 * tree-const.cc (tree_constant::eval (int, int, const Octave_object&)): |
|
3884 Define here instead of in tree-const.h. |
|
3885 |
|
3886 Wed Jan 10 04:34:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3887 |
|
3888 * tree-const.h (tree_constant::tree_constant (const string&): |
|
3889 * tree-const.cc (TC_REP::tree_constant_rep (const string&)): |
|
3890 New constructor. |
|
3891 |
|
3892 Tue Jan 9 04:10:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3893 |
|
3894 * rand.cc (do_rand): Use string_value() result directly instead of |
|
3895 c_str() conversion. |
|
3896 * balance.cc (Fbalance): Likewise. |
|
3897 |
|
3898 * tree-const.cc (TC_REP::string_value()): |
|
3899 Handle new definition of charMatrix::row_as_string() |
|
3900 * load-save.cc (save_ascii_data): Ditto. |
|
3901 (save_binary_data): Ditto. |
|
3902 * pr-output.cc (octave_print_internal): Ditto. |
|
3903 |
|
3904 * balance.cc (Fbalance): |
|
3905 Handle new definition of TC_REP::string_value() |
|
3906 * colloc.cc (Fcolloc): Ditto. |
|
3907 * dassl.cc (Fdassl_options): Ditto. |
|
3908 * data.cc (Fstruct_contains): Ditto. |
|
3909 * dirfns.cc (Fmkdir): Ditto. |
|
3910 (Freaddir): Ditto. |
|
3911 (Frmdir): Ditto. |
|
3912 (Frename): Ditto. |
|
3913 * error.cc (handle_message): Ditto. |
|
3914 * file-io.cc (process_printf_format): Ditto. |
|
3915 (fopen_internal): Ditto. |
|
3916 (file_io_get_file): Ditto. |
|
3917 (return_valid_file): Ditto. |
|
3918 (Flstat): Ditto. |
|
3919 (Fstat): Ditto. |
|
3920 (unlink_internal): Ditto. |
|
3921 (mkfifo_internal): Ditto. |
|
3922 (async_system_internal): Ditto. |
|
3923 (sync_system_internal): Ditto. |
|
3924 (execute_internal): Ditto. |
|
3925 (popen_internal): Ditto. |
|
3926 (fwrite_internal): Ditto. |
|
3927 (fread_internal): Ditto. |
|
3928 (do_printf): Ditto. |
|
3929 (do_scanf): Ditto. |
|
3930 * input.cc (get_user_input): Ditto. |
|
3931 * lsode.cc (Flsode_options): Ditto. |
|
3932 * npsol.cc (Fnpsol_options):Ditto. |
|
3933 * qpsol.cc (Fqpsol_options):Ditto. |
|
3934 * quad.cc (Fquad_options): Ditto. |
|
3935 * rand.cc (do_rand): Ditto. |
|
3936 * schur.cc (Fschur): Ditto. |
|
3937 * sysdep.cc (Fputenv): Ditto. |
|
3938 (Fgetenv): Ditto. |
|
3939 * timefns.cc (extract_tm): Ditto. |
|
3940 (Fstrftime): Ditto. |
|
3941 * toplev.cc (Fsource): Ditto. |
|
3942 (eval_string): Ditto. |
|
3943 (Fsystem): Ditto. |
|
3944 * tree-plot.cc (subplot::handle_plot_data): Ditto. |
|
3945 * variables.cc (is_valid_function): Ditto. |
|
3946 (Fis_global): Ditto. |
|
3947 (Fexist): Ditto. |
|
3948 (builtin_string_variable): Ditto. |
|
3949 * utils.cc (make_argv): Ditto. |
|
3950 (Fundo_string_escapes): Ditto. |
|
3951 |
|
3952 Mon Jan 8 01:54:50 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3953 |
|
3954 * Makefile.in (install-bin): Use $(LN_S), not just ln. |
|
3955 |
|
3956 * variables.cc (octave_fcn_file_dir): New function. |
|
3957 * tree-expr.cc (mark_as_system_fcn_file): Use it instead of |
|
3958 octave_lib_dir. |
|
3959 |
|
3960 * Makefile.in (clean): If $(SHARED_LIBS), also remove shared libs. |
|
3961 |
|
3962 * pr-output.cc (set_format (const ComplexMatrix&, int&, int&)): |
|
3963 Unconditionally call all_elements_are_int_or_inf_or_nan(). |
|
3964 (set_format (const Matrix&, int&, int&)): Likewise. |
|
3965 |
|
3966 Sun Jan 7 19:12:39 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3967 |
|
3968 * utils.cc (oct_putenv): New function. |
|
3969 * sysdep.cc (Fputenv): Use oct_putenv. |
|
3970 * octave.cc (initialize_globals): Likewise. |
|
3971 |
|
3972 Sat Jan 6 23:22:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3973 |
|
3974 * sysdep.cc (Fputenv): New function. |
|
3975 |
|
3976 * input.cc (initialize_readline): Call rl_initialize() here. |
|
3977 |
|
3978 * octave.cc: Conditionally define atexit to be on_exit here. |
|
3979 * toplev.cc: Not here. |
|
3980 |
|
3981 Fri Jan 5 14:01:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3982 |
|
3983 * toplev.cc: Don't include <pwd.h> here. |
|
3984 |
|
3985 * octave-hist.cc, tree-plot.cc, utils.cc: Do include "sysdep.h". |
|
3986 |
|
3987 * dirfns.cc, file-io.cc, help.cc, load-save.cc, octave.cc, |
|
3988 octave-hist.cc, tree-plot.cc, utils.cc: |
|
3989 Don't include <readline/tilde.h>. |
|
3990 * sysdep.h: Do include it here. |
|
3991 |
|
3992 * tree-const.cc (TC_REP::assign (tree_constant&, Octave_object&)): |
|
3993 If we have a matrix or range, call maybe_mutate before returning. |
|
3994 |
|
3995 Sun Dec 31 15:56:18 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3996 |
|
3997 * npsol.cc (Fnpsol): Improve doc string. |
|
3998 * qpsol.cc (Fqpsol): Likewise. |
|
3999 |
|
4000 Fri Dec 29 21:46:58 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4001 |
|
4002 * defun-dld.h: Make work again for OCTAVE_LITE and |
|
4003 WITH_DYNAMIC_LINKING. |
|
4004 |
|
4005 * Makefile.in: Handle shared libraries. |
|
4006 |
|
4007 Wed Dec 27 17:47:51 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4008 |
|
4009 * mk-oct-links: New file. |
|
4010 * Makefile.in (install-oct): Use it. |
|
4011 * f-*.cc: Rename to *.cc. |
|
4012 |
|
4013 * Makefile.in (install-bin, install-lib, install-oct): New targets. |
|
4014 (install): Use them. |
|
4015 |
|
4016 Tue Dec 26 21:38:22 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4017 |
|
4018 * toplev.cc (reading_startup_message_printed): Move initialization |
|
4019 here and make extern. |
|
4020 |
|
4021 * dirfns.cc, dynamic-ld.cc, help.cc, input.cc, octave-hist.cc, |
|
4022 octave.cc, sighandlers.cc, sysdep.cc, tree-expr.cc, tree-misc.cc, |
|
4023 utils.cc, variables.cc, parse.y, lex.l: Include toplev.h instead |
|
4024 of octave.h. |
|
4025 * toplev.h: rename from octave.h. |
|
4026 |
|
4027 * octave.cc (main): Delete unused variable saved_sigint_handler. |
|
4028 |
|
4029 Sun Dec 24 00:26:54 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4030 |
|
4031 * dynamic-ld.cc: Massive re-write to handle dlopen/dlsym and |
|
4032 shl_load/shl_findsym methods of dynamic linking. |
|
4033 |
|
4034 * utils.cc (get_fcn_file_names): Check for .oct files if |
|
4035 WITH_DYNAMIC_LINKING, not WITH_DLD. |
|
4036 |
|
4037 * Makefile.in (LIB, TERMLIBS): Substitute values. |
|
4038 (octave): Add $(LIBS) to link command and use $(TERMLIBS) instead |
|
4039 of -ltermcap. |
|
4040 |
|
4041 Sat Dec 23 21:56:12 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4042 |
|
4043 * dynamic-ld.h, dynamic-ld.cc: Remove old unused code. |
|
4044 |
|
4045 * variables.cc (load_fcn_from_file): |
|
4046 Always call load_octave_oct_file. |
|
4047 |
|
4048 Wed Dec 20 00:56:57 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4049 |
|
4050 * pr-output.cc (set_real_format, set_real_matrix_format, |
|
4051 set_complex_format, set_complex_matrix_format, set_range_format): |
|
4052 New functions. Ensure the count of the digits to the right of the |
|
4053 decimal point is positive. |
|
4054 |
|
4055 * xpow.cc (xpow (const Matrix&, double)): Print warning if |
|
4056 inverting singular matrix (but return value anyway, in the name of |
|
4057 compatibility). |
|
4058 xpow (const ComplexMatrix&, double)): Likewise. |
|
4059 |
|
4060 * f-inv.cc (Finv): If matrix is singular, return result anyway, in |
|
4061 the name of compatibility. |
|
4062 |
|
4063 * symtab.cc (symbol_record::pop_context): |
|
4064 Don't assert (! context.empty ()). |
|
4065 |
|
4066 * tree-const.cc (TC_REP::char_matrix_value): Don't complain about |
|
4067 type conversion if object is an empty matrix.f |
|
4068 (TC_REP::assign): If rhs is a string, don't convert to numeric |
|
4069 type if rhs is empty or "". |
|
4070 Only widen if rhs is not empty. |
|
4071 Don't return 0x0 char_matrix if it is supposed to be a string. |
|
4072 |
|
4073 * arith-ops.h, mappers.h, pr-output.h, xdiv.h, xpow.h: Include |
|
4074 oct-cmplx.h in place of forward declaration for class Complex. |
|
4075 |
|
4076 * pr-output.cc, mappers.cc, arith-ops.cc, xdiv.cc, xpow.cc, |
|
4077 utils.cc: Include "oct-cmplx.h" instead of <Complex.h>. |
|
4078 |
|
4079 * octave.cc (initialize_error_handlers): Don't call |
|
4080 set_Complex_error_handler(). |
|
4081 (octave_Complex_error_handler): Delete unused function. |
|
4082 Delete declaration for set_Complex_error_handler(). |
|
4083 |
|
4084 * sighandlers.cc (catch_interrupts): New function. |
|
4085 * octave.cc (main): Call catch_interrupts() instead of calling |
|
4086 octave_set_signal_handler() directly. |
|
4087 |
|
4088 Tue Dec 19 03:22:37 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4089 |
|
4090 * variables.cc (looks_like_octave_copyright): Also recognize the |
|
4091 string " This program is free software". |
|
4092 |
|
4093 Thu Dec 14 01:54:06 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4094 |
|
4095 * octave-hist.cc (clean_up_history): Only write history file if |
|
4096 user_pref.saving_history. |
|
4097 |
|
4098 * octave-hist.cc (initialize_history, clean_up_history, |
|
4099 do_history): Perform tilde expansion on history file name. |
|
4100 |
|
4101 * octave.cc (main): Check `defined (HAVE_ON_EXIT)' not just |
|
4102 `(HAVE_ON_EXIT)'. |
|
4103 |
|
4104 * user-prefs.h (user_preferences): New fields, `history_file' and |
|
4105 `history_size'. |
|
4106 * user-prefs.cc (init_user_prefs): Initialize them. |
|
4107 (sv_history_file, history_size): New functions. |
|
4108 * variables.cc (install_builtin_variables): Initialize user-level |
|
4109 variables history_file and history_size. |
|
4110 * octave-hist.cc (default_history_size): Now extern. |
|
4111 (default_history_file): Likewise. |
|
4112 (octave_hist_size, octave_hist_file): Use user preference |
|
4113 variables instead. |
|
4114 * octave.cc (main): Call initialize_history after |
|
4115 execute_startup_files. |
|
4116 |
|
4117 Fri Dec 8 15:53:59 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4118 |
|
4119 * user-prefs.h (user_preferences): New field, `saving_history'. |
|
4120 * user-prefs.cc (init_user_prefs): Initialize it. |
|
4121 (saving_history): New function. |
|
4122 * variables.cc (install_builtin_variables): Initialize user-level |
|
4123 variable saving_history. |
|
4124 * octave.cc (parse_and_execute): Don't reset value of |
|
4125 saving_history here. |
|
4126 (main) Use user_pref.saving_history instead of saving_history. |
|
4127 * variables.cc (parse_fcn_file): Likewise. |
|
4128 * octave-hist.cc (maybe_save_history): Likewise. |
|
4129 Don't save history if input_from_startup_file. |
|
4130 |
|
4131 Mon Nov 27 23:05:52 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4132 |
|
4133 * resource.cc: Include systime.h before <sys/resource.h>. |
|
4134 |
|
4135 Tue Nov 14 14:09:40 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4136 |
|
4137 * error.cc: Include cstring. |
|
4138 |
|
4139 * tree-expr.cc (print_code): Decrement indent level after printing |
|
4140 function body. |
|
4141 |
|
4142 * Makefile.in: Remove references to oct-str.cc, oct-str.h, and |
|
4143 Array-string.cc. |
|
4144 |
|
4145 * tree-const.h: Don't include oct-str.h. |
|
4146 |
|
4147 Mon Nov 6 11:16:49 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4148 |
|
4149 * parse.y (make_plot_command, finish_colon_expression, |
|
4150 make_unwind_protect, make_try_command, make_for_command, |
|
4151 make_break_command, make_continue_command, make_return_command, |
|
4152 start_if_command, finish_if_command, make_elseif_clause, |
|
4153 make_simple_assignment, make_multi_val_ret, start_function_def, |
|
4154 frob_function_def, finish_function_def, start_matrix, |
|
4155 finish_matrix): New functions. Use them in the grammar to clean |
|
4156 things up a bit. Possibly convert matrix lists, colon |
|
4157 expressions, binary expressions, and unary expressions to constant |
|
4158 values. |
|
4159 (tree_matrix_type): Delete. |
|
4160 (simple_expr1): Handle all expression stuff here, including |
|
4161 assignments. |
|
4162 (simple_expr): Just check to see that simple_expr1 produced |
|
4163 something useful. |
|
4164 |
|
4165 * tree-plot.cc, tree-plot.h: Move most simple constructors to the |
|
4166 header file. |
|
4167 |
|
4168 * tree-expr.h (tree_expression::is_constant): Move virtual |
|
4169 function definition here. |
|
4170 (tree_fvc::is_constant): From here. |
|
4171 (tree_expression::is_matrix_constant): New virtual function. |
|
4172 (tree_expression::is_range_constant): New virtual function. |
|
4173 * tree-expr.cc (tree_matrix::is_matrix_constant): New function. |
|
4174 * tree-expr.cc (tree_colon_expression::is_range_constant): New |
|
4175 function. |
|
4176 |
|
4177 Fri Nov 3 03:42:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4178 |
|
4179 * utils.cc, utils.h (jump_to_top_level): Declare as extern "C". |
|
4180 |
|
4181 * tree-const.h (tree_constant::eval ()): Only mutate if printing. |
|
4182 |
|
4183 * tree-const.cc (TC_REP::tree_constant_rep (const Complex&), |
|
4184 TC_REP::tree_constant_rep (const ComplexMatrix&), |
|
4185 TC_REP::tree_constant_rep (const ComplexDiagMatrix&), |
|
4186 TC_REP::tree_constant_rep (const ComplexRowVector&), |
|
4187 TC_REP::tree_constant_rep (const ComplexColumnVector&)): |
|
4188 Also check to see if we can convert to scalar_constant, not just |
|
4189 complex_scalar_constant. |
|
4190 |
|
4191 * user-prefs.h (user_preferences): New field, `exec_path'. |
|
4192 * user-prefs.cc (init_user_prefs): Initialize it. |
|
4193 (sv_exec_path): New function. |
|
4194 * variables.cc (install_builtin_variables): Add DEFUN for EXEC_PATH. |
|
4195 (default_exec_path): New function. |
|
4196 * octave.cc (exec_path): New global variable. |
|
4197 Don't set and putenv() exec path here. |
|
4198 (long_opts): Add --exec-path option. |
|
4199 (main): Handle it. |
|
4200 (initialize_globals): Set default value here. |
|
4201 |
|
4202 * user-prefs.h (user_preferences): New field, `info_prog'. |
|
4203 * user-prefs.cc (init_user_prefs): Initialize it. |
|
4204 (sv_info_prog): New function. |
|
4205 * variables.cc (install_builtin_variables): Add DEFUN for INFO_PROGRAM. |
|
4206 (default_info_prog): New function. |
|
4207 * octave.cc (info_prog): New global variable. |
|
4208 (initialize_globals): Set default value here. |
|
4209 (long_opts): Add --info-prog option. |
|
4210 (main): Handle it. |
|
4211 * help.cc (try_info): Use user_pref.info_prog here. |
|
4212 |
|
4213 * octave.cc (initialize_globals): Put arch_dir and bin_dir ahead |
|
4214 of shell_path when resetting PATH. |
|
4215 |
|
4216 Thu Nov 2 04:30:13 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4217 |
|
4218 * f-rand.cc (Frandn): New function. |
|
4219 (do_initialization): New function. |
|
4220 (do_rand): New function for doing the real work. |
|
4221 (Frand): Use it. |
|
4222 |
|
4223 * octave.cc (parse_and_execute): New arg, warn_for. If given, |
|
4224 print message if file cannot be opened. |
|
4225 Set curr_fcn_file_full_name here. |
|
4226 (Fsource): Pass extra arg to parse_and_execute to get warning message. |
|
4227 |
|
4228 * tree-const.h: Handle line and column info for double, Complex, |
|
4229 and char* constants. |
|
4230 |
|
4231 * parse.y (maybe_convert_to_ans_assign): Pass along line and |
|
4232 column info from expression. |
|
4233 |
|
4234 * parse.y (make_constant): New function. |
|
4235 (simple_expr1, word_list): Use it. |
|
4236 |
|
4237 * input.cc, input.h (curr_fcn_file_full_name): New global. |
|
4238 * variables.cc (load_fcn_from_file): Set it here. |
|
4239 * parse.y (func_def2, yyerror, maybe_warn_missing_semi): Use it. |
|
4240 (func_def2): If !reading_fcn_file, don't call strcmp if |
|
4241 curr_fcn_file_name is 0. |
|
4242 |
|
4243 * octave.cc (Fsource): New function. |
|
4244 (parse_and_execute): Declare file name const char *. |
|
4245 * input.cc (get_input_from_file): Likewise. |
|
4246 |
|
4247 Wed Nov 1 13:54:34 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4248 |
|
4249 * f-filter.cc: New file. |
|
4250 * Makefile.in (DLD_SRC): Add it to the list. |
|
4251 |
|
4252 * sysdep.h (gethostname): Change declaration to match definition |
|
4253 in sysdep.cc. |
|
4254 |
|
4255 * resource.cc: Include sysdep.h here, for octave_NaN. |
|
4256 |
|
4257 Tue Oct 31 02:12:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4258 |
|
4259 * tree-const.cc (TC_REP::assign): After converting rhs to a |
|
4260 numeric type, use the converted value, not the original. |
|
4261 |
|
4262 * dirfns.cc (Fpwd): If nargout == 0, print the directory name |
|
4263 instead of returning it. |
|
4264 |
|
4265 * pager.cc (maybe_page_output): Call maybe_write_to_diary_file here. |
|
4266 (flush_output_to_pager): Not here. |
|
4267 |
|
4268 Mon Oct 30 23:39:43 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4269 |
|
4270 * variables.cc (install_builtin_commands): Add DEFVAR for |
|
4271 echo_executing_commands. |
|
4272 |
|
4273 * octave-hist.cc (do_edit_history): Handle new echo stuff. |
|
4274 * variables.cc (parse_fcn_file): Likewise. |
|
4275 * octave.cc (parse_and_execute): Likewise. |
|
4276 (main): Likewise. |
|
4277 * input.cc (do_input_echo): |
|
4278 (Fecho): New function. |
|
4279 |
|
4280 * tree-expr.cc (tree_function::print_code_function_header, |
|
4281 tree_function::print_code_function_trailer): New functions. |
|
4282 (tree_function::print_code): Use them. |
|
4283 (tree_function::eval): Likewise, if echoing commands. |
|
4284 * tree-misc.cc (tree_statement::maybe_echo_code): New function. |
|
4285 |
|
4286 * user-prefs.h (user_preferences): New field, echo_executing_commands. |
|
4287 (echo_state): New enum, for various types of echoing we do. |
|
4288 * user-prefs.cc (echo_executing_commands): New function. |
|
4289 |
|
4290 * tree-base.cc (print_code_indent): Print PS4 as line prefix. |
|
4291 * help.cc (Ftype): Add unwind_protect for ps4 and set it to "" |
|
4292 before printing code. |
|
4293 |
|
4294 * tree-misc.h (tree_statement_list): New field, function_body. |
|
4295 (tree_statement_list::mark_as_function_body): New function. |
|
4296 * parse.y (func_def3): Mark function bodies. |
|
4297 |
|
4298 * pr-output.cc (octave_print_internal): Undo string escapes when |
|
4299 printing charMatrix as strings. |
|
4300 |
|
4301 Sat Oct 28 17:38:29 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4302 |
|
4303 * utils.h (undo_string_escapes): Add missing const in declaration. |
|
4304 |
|
4305 Fri Oct 27 03:49:44 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4306 |
|
4307 * file-io.cc (next_available_file_number): New stack for keeping |
|
4308 track of next available file number. |
|
4309 (get_next_avail_file_num): New function. |
|
4310 (fopen_file_for_user, fopen_internal, popen_internal, |
|
4311 execute_internal): Use it. |
|
4312 |
|
4313 Mon Oct 23 07:00:09 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4314 |
|
4315 * tree-const.cc (TC_REP::convert_to_matrix_type, |
|
4316 tree_constant::convert_to_matrix_type): New arg, make_complex. |
|
4317 (TC_REP::set_index): New arg, rhs_is_complex. Pass it to |
|
4318 convert_to_matrix_type. |
|
4319 (TC_REP::assign): Pass rhs.is_complex_type() to set_index. |
|
4320 |
|
4321 Thu Oct 19 00:38:38 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4322 |
|
4323 * xpow.cc: Include <climits>. |
|
4324 |
|
4325 * sysdep.cc (Fpause): Do pause even if not interactive. |
|
4326 |
|
4327 * tree-const.cc (TC_REP::assign): Don't make RHS numeric if both |
|
4328 RHS and LHS are strings. |
|
4329 |
|
4330 Wed Oct 18 22:19:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4331 |
|
4332 * f-expm.cc (Fexpm): Avoid taking log of negative number. Also, |
|
4333 don't unnecessarily divide the input matrix by 1.0. |
|
4334 |
|
4335 * input.cc (decode_prompt_string): Recognize \[ and \] too. |
|
4336 (initialize_readline): Bind M-p to history-search-backward and M-n |
|
4337 to history-search-forward. |
|
4338 |
|
4339 Tue Oct 17 04:31:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4340 |
|
4341 * xpow.cc (xpow): Handle integer powers better for complex^double. |
|
4342 (elem_xpow): Likewise. |
|
4343 |
|
4344 * lex.l ({CCHAR}): If nesting_level.top() is BRACE, return ';', |
|
4345 not '\n'. |
|
4346 |
|
4347 Mon Oct 16 19:03:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4348 |
|
4349 * help.cc (Fwhich): Fix doc string. |
|
4350 |
|
4351 * variables.cc (Fexist): Update doc string. |
|
4352 |
|
4353 Sun Oct 15 22:19:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4354 |
|
4355 * Another massive set of changes to support character matrices |
|
4356 with indexing. The Octave_str_object class is no longer used. |
|
4357 Anything having to do with Octave_str_object in the following |
|
4358 files has been changed to use charMatrix instead: octave.h, |
|
4359 load-save.cc, octave.cc, strfns.cc, data.cc, pr-output.h, |
|
4360 pr-output.cc, tree-const.h, dirfns.cc, tree-const.cc, |
|
4361 tree-expr.cc. |
|
4362 |
|
4363 Sat Oct 14 22:28:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4364 |
|
4365 * f-sort.cc (mx_sort): Don't attempt to sort vectors that have |
|
4366 only one element, or matrices that have only one row. |
|
4367 |
|
4368 Thu Oct 12 02:16:58 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4369 |
|
4370 * mappers.cc (install_mapper_functions): Add gammaln as an alias |
|
4371 for lgamma. |
|
4372 |
|
4373 * tree-const.h, tree-const.cc: Massive overhaul of indexing and |
|
4374 indexed assignment functions. |
|
4375 * tc-inlines.h, tc-rep.h: Remove files. |
|
4376 * Makefile.in: Remove mention of them here too. |
|
4377 |
|
4378 * Makefile.in: Include $(TI_SRC) in DEP_SOURCES_3, not |
|
4379 $(TI_SOURCES). |
|
4380 Include $(DLD_SRC) in DEP_SOURCES_3. |
|
4381 Include $(TI_SRC) in DEF_FILES_5. |
|
4382 |
|
4383 Wed Oct 11 01:26:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4384 |
|
4385 * Makefile.in (INCLUDES): Remove tc-inlines.h and tc-rep.h from |
|
4386 the list. |
|
4387 |
|
4388 Mon Oct 9 08:31:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4389 |
|
4390 * lex.l (next_token_is_bin_op): Do match `.+', `.*', etc. |
|
4391 |
|
4392 Sun Oct 8 18:19:56 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4393 |
|
4394 * idx-vector.h, idx-vector.cc: Delete files. |
|
4395 * Makefile.in (SOURCES, INCLUDES): Remove them from lists. |
|
4396 |
|
4397 Fri Oct 6 00:52:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4398 |
|
4399 * f-svd.cc (Fsvd): If nargout == 0 or nargout == 1, don't ask for |
|
4400 U and V. |
|
4401 |
|
4402 Wed Oct 4 00:04:57 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4403 |
|
4404 * f-npsol.cc (Fnpsol, Fnpsol_options): Avoid unused variable |
|
4405 warnings if NPSOL_MISSING. |
|
4406 * f-qpsol.cc (Fqpsol, Fqpsol_options): Likewise for QPSOL_MISSING. |
|
4407 |
|
4408 * Makefile.in (DISTFILES): Add octave.gperf. |
|
4409 |
|
4410 * lex.l (next_token_is_bin_op): Don't ever return true for `.' |
|
4411 since that causes problems with things like [ .1 .1 ]. |
|
4412 |
|
4413 Tue Oct 3 05:30:24 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4414 |
|
4415 * variables.cc (is_valid_function): Avoid setting error_state if |
|
4416 argument is not a string. |
|
4417 |
|
4418 * parse.y (maybe_warn_missing_semi): New function. |
|
4419 (list1, list): Call it if statement not terminated by semicolon. |
|
4420 * tree-misc.h (tree_statement::line, tree_statement::column): |
|
4421 New functions. |
|
4422 * octave.cc (input_from_command_line_file): New global variable. |
|
4423 (main): Set it. |
|
4424 (parse_and_execute): Unwind-protect it and set it to zero. |
|
4425 (eval_string): Likewise. |
|
4426 * variables.cc (parse_fcn_file): Likewise. |
|
4427 |
|
4428 * user-prefs.cc (warn_missing_semicolon): New function. |
|
4429 * user-prefs.h (user_preferences): New field, warn_missing_semicolon. |
|
4430 * variables.cc (install_builtin_variables): DEFVAR it. |
|
4431 |
|
4432 * tree-expr.cc (tree_expression::is_logically_true): Actually use |
|
4433 argument. |
|
4434 |
|
4435 Mon Oct 2 19:55:48 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4436 |
|
4437 * variables.cc (install_builtin_variables): Reduce the default |
|
4438 value of save_precision to 15. |
|
4439 |
|
4440 * variables.cc (builtin_real_scalar_variable): Return 1 for |
|
4441 success, 0 for failure. |
|
4442 |
|
4443 * user-prefs.cc (struct_levels_to_print, set_save_precision, |
|
4444 set_output_max_field_width, set_output_precision): |
|
4445 Change sense of test for builtin_real_scalar_variable return value. |
|
4446 (check_preference): Rename from check_str_pref. Change all callers. |
|
4447 Accept value of 0 to be the same as "false" and nonzero to be the |
|
4448 same as "true". |
|
4449 Delete val to avoid memory leak. |
|
4450 * variables.cc (install_builtin_variables): Change initial values |
|
4451 from "true" to 1, "false" to 0. |
|
4452 |
|
4453 * variables.cc (install_builtin_variables): Add DEFVAR for |
|
4454 gnuplot_has_multiplot. |
|
4455 |
|
4456 * user-prefs.h (user_preferences): New field, |
|
4457 `gnuplot_has_multiplot'. |
|
4458 * user-prefs.cc (init_user_prefs): Initialize it. |
|
4459 (gnuplot_has_multiplot): New function. |
|
4460 |
|
4461 Sat Sep 30 16:52:57 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4462 |
|
4463 * oct-gperf.h, octave.gperf: Newfiles. |
|
4464 * Makefile.in (DISTFILES): Add octave.gperf. |
|
4465 (INCLUDES): Add oct-gperf.h. |
|
4466 (oct-gperf.h): New rule. |
|
4467 (local-dist, dist): Depend on oct-gperf.h. |
|
4468 * lex.l (is_keyword): Use perfect hash function to lookup |
|
4469 keywords. |
|
4470 |
|
4471 Fri Sep 29 04:36:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4472 |
|
4473 * version.h (OCTAVE_NAME_AND_VERSION): Add TARGET_HOST_TYPE to this. |
|
4474 |
|
4475 Thu Sep 28 00:03:51 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4476 |
|
4477 * tree-expr.cc (tree_expression::is_logically_true): New function. |
|
4478 * tree-cmd.cc (tree_while_command::eval): Use it instead of |
|
4479 handling the test directly here. |
|
4480 * tree-misc.cc (tree_if_clause::eval): Likewise |
|
4481 |
|
4482 * tree-const.cc (TC_REP::force_numeric): Don't try to print value |
|
4483 of str_obj with %s. |
|
4484 |
|
4485 * error.cc (buffer_error_messages): Rename from |
|
4486 suppress_octave_error_messages. |
|
4487 (error_message_buffer): New global variable. |
|
4488 (verror): Handle buffering of messages. |
|
4489 (handle_message): New function. |
|
4490 (Ferror, Fwarning, Fusage): Use it instead of duplicating code. |
|
4491 |
|
4492 * octave.cc (Feval): Buffer error messages instead of supressing them. |
|
4493 |
|
4494 * lex.l (is_keyword): Recognize `try', `catch', and `end_try_catch'. |
|
4495 * parse.y (TRY, CATCH): New tokens. |
|
4496 (command): Recognize try-catch block. |
|
4497 (end_error): Add cases for unwind_protect_end and try_catch_end. |
|
4498 * token.h (end_tok_type): New field, try_catch_end. |
|
4499 * tree-cmd.h, tree-cmd.cc (tree_try_catch): New class. |
|
4500 * variables.cc (bind_global_error_variable): New Function. |
|
4501 (clear_global_error_variable): Likewise. |
|
4502 (install_builtin_variables): Add DEFCONST for __error_text__. |
|
4503 * help.cc (keywords): Add `try', `catch', and `end_try_catch'. |
|
4504 |
|
4505 * tree-cmd.cc (tree_unwind_protect::eval): Undo previous change. |
|
4506 |
|
4507 * dirfns.cc (Freaddir, Fmkdir, Frmdir): |
|
4508 Do tilde expansion on the argument. |
|
4509 |
|
4510 Tue Sep 26 00:10:29 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4511 |
|
4512 * f-dassl.cc, f-fsolve.cc, f-lsode.cc, f-npsol.cc, f-quad.cc: |
|
4513 Don't try to figure out if the user-supplied functions take the |
|
4514 correct number of arguments. Simply let the call fail. |
|
4515 * variables.cc (takes_correct_nargs): Delete unused function. |
|
4516 * tree-expr.cc (tree_builtin::eval): Don't complain for too many |
|
4517 arguments to mapper functions. |
|
4518 * tree-expr.h, tree-expr.cc (tree_builtin, tree_function, tree_fvc): |
|
4519 Delete unused function max_expected_args. |
|
4520 |
|
4521 * defun.h (DEFUN): Delete unnecessary args nargin_min and nargout_max. |
|
4522 New arg unused_arg_flags. |
|
4523 (DEFUN_TEXT): Likewise. |
|
4524 * defun-dld.h (DEFUN_DLD_BUILTIN): Likewise. |
|
4525 * defun-int.h (DEFUN_INTERNAL, DECLARE_FUN, DEFINE_FUN_STRUCT): |
|
4526 Do the real work. |
|
4527 |
|
4528 * data.cc, dirfns.cc, dynamic-ld.cc, error.cc, f-balance.cc, |
|
4529 f-chol.cc, f-colloc.cc, f-dassl.cc, f-det.cc, f-eig.cc, f-expm.cc, |
|
4530 f-fft.cc, f-fft2.cc, f-find.cc, f-fsolve.cc, f-fsqp.cc, |
|
4531 f-givens.cc, f-hess.cc, f-ifft.cc, f-ifft2.cc, f-inv.cc, f-log.cc, |
|
4532 f-lpsolve.cc, f-lsode.cc, f-lu.cc, f-minmax.cc, f-npsol.cc, |
|
4533 f-pinv.cc, f-qpsol.cc, f-qr.cc, f-quad.cc, f-qzval.cc, f-rand.cc, |
|
4534 f-schur.cc, f-sort.cc, f-svd.cc, f-syl.cc, file-io.cc, help.cc, |
|
4535 input.cc, lex.l, load-save.cc, mappers.cc, octave-hist.cc, |
|
4536 octave.cc, octave.h, pager.cc, pr-output.cc, resource.cc, |
|
4537 sighandlers.cc, strfns.cc, sysdep.cc, timefns.cc, token.cc, |
|
4538 tree-const.cc, tree-expr.cc, tree-expr.h, tree-plot.cc, |
|
4539 unwind-prot.cc, unwind-prot.h, utils.cc, variables.cc, |
|
4540 variables.h, version.h, xdiv.cc: |
|
4541 Avoid unused variable warnings. |
|
4542 |
|
4543 * tree-expr.h (tree_oct_obj::print_value (ostream&)): |
|
4544 Delete name of unused arg. |
|
4545 (tree_fvc::save (ostream&, int, int): Likewise. |
|
4546 |
|
4547 * tree-const.h (tree_constant::tree_constant (magic_colon)): |
|
4548 Delete name of unused arg. |
|
4549 (tree_constant::tree_constant (all_va_args)): Likewise |
|
4550 (ColumnVector vector_value (int, int)): Likewise. |
|
4551 (ComplexColumnVector vector_value (int, int)): Likewise. |
|
4552 (Octave_object::eval (int, int, const Octave_object&): Likewise. |
|
4553 |
|
4554 * octave.cc (execute_startup_files): Look for octaverc first in |
|
4555 site/m, then in $(version)/m. |
|
4556 * variables.cc (get_local_site_defaults): New function. |
|
4557 * defaults.h.in (OCTAVE_LOCALFCNFILEDIR, OCTAVE_LOCALSTARTUPFILEDIR): |
|
4558 New macros. |
|
4559 * Makefile.in (defaults.h): Also substitute ${localfcndir}. |
|
4560 |
|
4561 Mon Sep 25 17:01:03 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4562 |
|
4563 * variables.cc (install_builtin_variables): Add DEFCONST for "e". |
|
4564 |
|
4565 Fri Sep 22 02:18:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4566 |
|
4567 * dirfns.cc (Fls): Delete ls_command after using it, not before. |
|
4568 |
|
4569 * input.h, input.cc (gnu_readline): Don't declare gnu_readline |
|
4570 `extern "C"'. |
|
4571 |
|
4572 * sysdep.h: Only declare gethostname if it is missing, then don't |
|
4573 declare it `extern "C"'. |
|
4574 |
|
4575 * dirfns.cc: Don't declare strerror(). |
|
4576 |
|
4577 * input.cc (command_generator): Use malloc, not xmalloc. Don't |
|
4578 declare xmalloc. |
|
4579 (gnu_readline): Don't declare this `extern "C"'. |
|
4580 |
|
4581 * octave-hist.cc: Don't declare history_get(). It is now in |
|
4582 readline/history.h. |
|
4583 |
|
4584 * input.cc: Don't declare history_get(). It is now in |
|
4585 readline/readline.h. |
|
4586 |
|
4587 * resource.cc: Don't surround include of sys/resource.h in |
|
4588 `extern "C" { }'. |
|
4589 |
|
4590 * fnmatch.h [__cplusplus]: Surround contents in `extern "C" { }'. |
|
4591 * load-save.cc, symtab.cc, variables.cc: Don't surround |
|
4592 fnmatch.h include in `extern "C" { }'. |
|
4593 |
|
4594 * help.cc: Don't #undef __FUNCTION_DEF before including |
|
4595 readline/tilde.h. |
|
4596 |
|
4597 * dirfuns.cc, file-io.cc, help.cc, load-save.cc, octave-hist.cc, |
|
4598 sysdep.cc, tree-plot.cc, utils.cc, variables.cc: |
|
4599 Don't surround readline includes in `extern "C" { }'. |
|
4600 |
|
4601 * sysdep.cc: Move all include statements to top of file. |
|
4602 |
|
4603 Tue Sep 19 01:58:21 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4604 |
|
4605 * octave.cc (Fsystem): Use iprocstream *, and unwind_protect it. |
|
4606 * pager.cc (flush_output_to_pager): Likewise. |
|
4607 * dirfns.cc (Fls): Likewise. |
|
4608 * tree-plot.cc (plot_stream): Now a pointer. |
|
4609 (open_plot_stream): Deal with it. |
|
4610 (send_to_plot_stream, cleanup_tmp_files, do_external_plotter_cd): |
|
4611 Likewise. |
|
4612 |
|
4613 * procstream.cc (cleanup_iprocstream, cleanup_oprocstream): |
|
4614 New functions. |
|
4615 |
|
4616 * procstream.h, procstream.cc (class iprocstream, class oprocstream): |
|
4617 Keep track of pbuf. Initialize it to 0 in default constructors, |
|
4618 delete it in destructor. Don't call close in destructor. |
|
4619 |
|
4620 * sighandlers.cc (octave_set_signal_handler): New function. |
|
4621 Use this name instead of signal everywhere. |
|
4622 * help.cc (try_info): Likewise. |
|
4623 * pager.cc (flush_output_to_pager): Likewise. |
|
4624 * octave.cc (main): Likewise. |
|
4625 * octave-hist.cc (do_edit_history): Likewise. |
|
4626 |
|
4627 * input.cc (initialize_readline): Set rl_paren_string_delimiters |
|
4628 to avoid treating single quotes as string delimiters when doing |
|
4629 paren matching. |
|
4630 |
|
4631 * Makefile.in (SOURCES): Don't list Map.cc or SLStack.cc here. |
|
4632 |
|
4633 * tree-const.cc: Do include utils.h. |
|
4634 |
|
4635 * sysdep.cc: Don't surround terminal includes in extern "C". |
|
4636 Include them before readline.h. |
|
4637 |
|
4638 * Map.h: Don't include utils.h. |
|
4639 (CHNode::CHNode (const char*, const C&, CHNode *t): |
|
4640 Do strsave() inline. |
|
4641 |
|
4642 * input.cc (generate_possible_completions): Generate name list |
|
4643 even when text == 0. |
|
4644 (operate_and_get_next): Don't declare history_stifled, call |
|
4645 history_is_stifled () instead. |
|
4646 Don't declare history_length, or max_input_history either. |
|
4647 Check (where >= history_length - 1) too, as in recent versions of |
|
4648 bash. |
|
4649 |
|
4650 * user-prefs.h (user_prefs): New field, `completion_append_char'. |
|
4651 * user-prefs.cc (init_user_prefs): Initialize it. |
|
4652 (sv_completion_append_char): New function. |
|
4653 * variables.cc (install_builtin_variables): Install |
|
4654 completion_append_char. |
|
4655 * input.cc (command_generator): Use it. |
|
4656 |
|
4657 * SLList-expr.cc, SLList-misc.cc, SLList-plot.cc, SLList-tc.cc, |
|
4658 DLList-fi.cc: Include config.h. |
|
4659 * DLList-fi.cc: Include file-info.h, not file-io.h. |
|
4660 |
|
4661 Mon Sep 18 11:01:24 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4662 |
|
4663 * octave.h (clean_up_and_exit): Tag with NORETURN instead of using |
|
4664 typedef trick. |
|
4665 * error.h (panic): Likewise. |
|
4666 * utils.h (jump_to_top_level): Likewise. |
|
4667 |
|
4668 * file-io.h: Protect from multiple includes with octave_file_io, |
|
4669 not octave_files. |
|
4670 |
|
4671 * file-info.h (class file_info): Convert to using std C++ string |
|
4672 class from char *. |
|
4673 * file-info.cc: Likewise. Don't include utils.h. |
|
4674 * file-io.cc (return_valid_file, fopen_file_for_user, |
|
4675 fflush_internal, do_scanf): Use operator ==, not strcmp. |
|
4676 (close_files): Call error with file.name ().data (), |
|
4677 not file.name (). |
|
4678 (freport_internal): Call form with file.mode ().data () and |
|
4679 file.name ().data (). |
|
4680 |
|
4681 * file-io.cc, file-io.h: Extract file_info class. |
|
4682 * file-info.cc, file-info.h: New files for file_info class. |
|
4683 |
|
4684 * user-prefs.h (user_prefs): New field, `beep_on_error'. |
|
4685 * user-prefs.cc (init_user_prefs): Initialize it. |
|
4686 (beep_on_error): New function. |
|
4687 * variables.cc (install_builtin_variables): Install beep_on_error. |
|
4688 * octave.cc (maximum_braindamage): Set beep_on_error to "true". |
|
4689 * error.cc (verror): Conditionally beep. |
|
4690 (error): Don't reset error_state until after verror is called. |
|
4691 |
|
4692 Sun Sep 17 16:41:25 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4693 |
|
4694 * load-save.cc (read_mat_binary_data, read_ascii_data, |
|
4695 save_ascii_data, read_binary_data, save_binary_data): |
|
4696 Handle string arrays. |
|
4697 |
|
4698 Fri Sep 15 00:24:19 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4699 |
|
4700 * user-prefs.cc (struct_levels_to_print, |
|
4701 set_output_max_field_width, set_output_precision, |
|
4702 set_save_precision): Eliminate unecessary kludge variable. |
|
4703 |
|
4704 * variables.cc (gobble_leading_white_space): New arg, |
|
4705 in_parts. Change all callers. |
|
4706 |
|
4707 * lex.l (HELP_FCN): Delete start state. The `help' command is now |
|
4708 handled the same as any other text-style function. |
|
4709 |
|
4710 * gripes.cc (gripe_invalid_value_specified): New function |
|
4711 * user-prefs.cc: Use it. |
|
4712 |
|
4713 * sysdep.cc (octave_words_big_endian): New global variable. |
|
4714 (ten_little_endians): New function. |
|
4715 (sysdep_init): Call it. |
|
4716 * load-save.cc (words_big_endian): Use this at run-time instead of |
|
4717 depending on WORDS_BIGENDIAN at compile-time. |
|
4718 |
|
4719 * symtab.h (SYMTAB_VARIABLES): New macro. |
|
4720 * variables.cc (Fclear): Use it instead of just |
|
4721 symbol_def::USER_VARIABLE when looking for variables. |
|
4722 |
|
4723 * octave.cc (main): If there is a file to execute, set |
|
4724 program_invocation_name and program_name to the name of the file |
|
4725 and argv to the remaining args. |
|
4726 (intern_argv): Only define argv if there are some remaining |
|
4727 arguments. |
|
4728 |
|
4729 * defun.h (DEFVAR_INT): New macro. |
|
4730 (DEFVAR): Define in terms of DEFVAR_INT. Delete args protect and |
|
4731 eternal. |
|
4732 (DEFCONST): New macro. |
|
4733 * variables.cc (install_builtin_variables): Use DEFCONST where |
|
4734 appropriate, change uses of DEFVAR to match new definition. |
|
4735 |
|
4736 * variables.cc (bind_builtin_variable): New variant that accepts |
|
4737 const tree_constant& value. |
|
4738 (install_builtin_variables): Properly alphabetize DEFVAR for this. |
|
4739 |
|
4740 * octave.cc (short_opts): Prefix with `+' to prevent argv |
|
4741 permutation. |
|
4742 (main): Don't use readline if forced_interactive. |
|
4743 (traditional): New file-scope variable. |
|
4744 (long_opts, usage_string, verbose_usage): Add `--traditional'. |
|
4745 (maximum_braindamage): New function. |
|
4746 (main): Call it if --traditional. |
|
4747 |
|
4748 * input.cc (do_input_echo): Print prompt correctly when |
|
4749 forced_interactive is either true or false. |
|
4750 |
|
4751 Thu Sep 14 00:54:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4752 |
|
4753 * data.cc (Fstruct_elements): New function. |
|
4754 |
|
4755 * file-io.cc (Fumask): New function. |
|
4756 |
|
4757 * dirfns.cc (Fmkdir, Frmdir, Frename): New functions. |
|
4758 |
|
4759 * Makefile.in: Add rules and dependencies for building safe-stat.o |
|
4760 and safe-lstat.o. |
|
4761 |
|
4762 * mkdir.c, rename.c, rmdir.c: New files. |
|
4763 * Makefile.in (SOURCES): Include them in the list. |
|
4764 |
|
4765 * safe-xstat.hin, safe-xstat.cin: New files |
|
4766 * Makefile.in (DISTFILES): Include them in the list. |
|
4767 |
|
4768 * sighandlers.cc (octave_new_handler): Try to continue on memory |
|
4769 exhausted errors. |
|
4770 (sigfpe_handler): Improve error message. |
|
4771 |
|
4772 * Makefile.in: Use `ifndef omit_deps', not `ifndef $(omit_deps)'. |
|
4773 |
|
4774 * dirfns.cc (Freaddir): New function. |
|
4775 |
|
4776 * f-sort.cc: Complete rewrite. Now uses stable sort algorithm and |
|
4777 correctly handles complex matrices containing columns of all real |
|
4778 numbers. |
|
4779 |
|
4780 Wed Sep 13 03:16:40 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4781 |
|
4782 * arith-ops.cc: Unconditionally #define DIVIDE_BY_ZERO_ERROR. |
|
4783 |
|
4784 * variables.cc (install_builtin_variables): Unconditionally |
|
4785 install NaN and nan. |
|
4786 |
|
4787 * mappers.cc (xisinf): Don't do bogus things if isinf, isnan, or |
|
4788 finite are missing. |
|
4789 (xfinite): Likewise. |
|
4790 |
|
4791 * sysdep.cc (octave_ieee_init): Don't set octave_NaN and |
|
4792 octave_Inf if values are not available. |
|
4793 |
|
4794 * resource.cc (mk_ru_map): Don't use ru_ or tv_ as prefixes to |
|
4795 Octave names for the structure members. |
|
4796 |
|
4797 Tue Sep 12 02:04:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4798 |
|
4799 * procstream.h, procstream.cc: Rewrite. |
|
4800 |
|
4801 Mon Sep 11 18:42:05 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4802 |
|
4803 * filemode.c: New file, from Emacs. |
|
4804 * Makefile.in (SOURCES): Add it to the list. |
|
4805 |
|
4806 * file-io.cc (Fstat, Flstat, mk_stat_map): New functions. |
|
4807 |
|
4808 * timefns.cc (mk_tm_map): Don't use tm_ as prefix to Octave names |
|
4809 for these structure members. |
|
4810 (extract_tm): Likewise. |
|
4811 (Flocaltime): Fix doc string to match. |
|
4812 |
|
4813 Thu Sep 7 02:04:27 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4814 |
|
4815 * load-save.cc (save_user_variables): New function. |
|
4816 * sighandlers.cc (my_friendly_exit): Call it before exiting. |
|
4817 (sigfpe_handler): New function. |
|
4818 (install_signal_handlers) [__alpha__]: Install it. |
|
4819 |
|
4820 Wed Sep 6 14:35:10 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4821 |
|
4822 * tree-cmd.cc (tree_unwind_protect::eval): Ignore errors and |
|
4823 suppress error messages while executing first block of |
|
4824 unwind_protect commands. |
|
4825 |
|
4826 * parse.y (end_error): Add missing case for unwind_protect_end. |
|
4827 |
|
4828 * tree-expr.cc (tree_builtin::eval): Complain if no arguments |
|
4829 given for mapper functions. |
|
4830 (tree_fvc::lookup_map_element): Print error message for invalid |
|
4831 structure reference. |
|
4832 |
|
4833 Tue Sep 5 02:04:12 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4834 |
|
4835 * file-io.cc, input.cc, load-save.cc, octave.cc, sysdep.cc, |
|
4836 variables.cc, octave-hist.cc, utils.cc, f-schur.cc, f-rand.cc, |
|
4837 f-quad.cc, f-qpsol.cc, f-npsol.cc, f-lsode.cc, f-fsolve.cc, |
|
4838 f-dassl.cc, f-colloc.cc, f-balance.cc, error.cc, data.cc: |
|
4839 Add const qualifiers where appropriate. |
|
4840 |
|
4841 * dirfns.h: Include <ctime>, for time_t. |
|
4842 |
|
4843 * tempname.c, file-io.cc, help.cc, input.cc, octave-hist.cc, |
|
4844 octave.cc, sighandlers.cc, sysdep.cc, tree-expr.cc, tree-misc.cc, |
|
4845 tree-plot.cc, utils.cc, variables.cc, sysdir.h: |
|
4846 Move #include <sys/type.h> inside #ifdef HAVE_UNISTD_H. |
|
4847 |
|
4848 * syswait.h: New file. |
|
4849 * Makefile.in (INCLUDES): Add it to the list. |
|
4850 * file-io.cc, sighandlers.cc: Use it instead of including |
|
4851 sys/wait.h directly. |
|
4852 |
|
4853 * octave.cc: Include statdefs.h, not sys/stat.h. |
|
4854 |
|
4855 * sysdir.h: New file. |
|
4856 * Makefile.in (INCLUDES): Add it to the list. |
|
4857 * dirfns.cc, utils.cc: Use it instead of including the headers |
|
4858 directly. |
|
4859 |
|
4860 * pathlen.h: New file. |
|
4861 * Makefile.in (INCLUDES): Add it to the list. |
|
4862 * dirfns.cc, input.cc: Use it instead of including sys/param.h |
|
4863 directly. |
|
4864 * utils.cc: Don't include sys/param.h |
|
4865 |
|
4866 Sun Sep 3 18:52:59 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4867 |
|
4868 * tree-const.cc (TC_REP::string_value): Return const char*, not |
|
4869 char *. |
|
4870 |
|
4871 * All .cc, .y, .l, .y files: Include <cctype>, not <ctype.h>, and |
|
4872 so on for all new C++ versions of these standard C headers. |
|
4873 |
|
4874 Thu Aug 31 17:09:38 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4875 |
|
4876 * pathsearch.h: Also hide `string'. |
|
4877 |
|
4878 * oct-str.cc, oct-str.h: New files. |
|
4879 * Makefile.in: Add to the appropriate lists. |
|
4880 * tc-rep.h: Change char* to Octave_string* in anonymous union. |
|
4881 * tree-expr.cc (tree_matrix::eval): Handle multiple element strings. |
|
4882 * strfns.cc (toascii): Likewise. |
|
4883 * tree-const.cc (print_as_string): Likewise. |
|
4884 (TC_REP::force_numeric, TC_REP::rows, TC_REP::columns, |
|
4885 TC_REP::double_value, TC_REP::complex_value, TC_REP::matrix_value, |
|
4886 TC_REP::complex_matrix_value, TC_REP::convert_to_str): Likewise. |
|
4887 (TC_REP::print): Call octave_print_internal for string case. |
|
4888 (all_strings): New function. |
|
4889 Fix constructors to use new data structure. |
|
4890 * pr-output.cc (octave_print_internal): Add version for strings. |
|
4891 * Array-string.cc: New file. |
|
4892 |
|
4893 * octave.cc (octave_argv): New global variable. |
|
4894 (intern_argv): New function. |
|
4895 (main): Fix argument parsing to do the right thing for arguments |
|
4896 to executable scripts. |
|
4897 * variables.cc: Add DEFUNs for argv, program_invocation_name, and |
|
4898 program_name. |
|
4899 |
|
4900 * defun.h (DEFVAR): Fix comment. |
|
4901 |
|
4902 Thu Aug 24 00:02:00 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4903 |
|
4904 * file-io.cc (fgets_internal): Make second arg optional. Add |
|
4905 optional arg `strip_final_newline'. |
|
4906 (Ffgets): Change to match new definition of fgets_internal. |
|
4907 (Ffgetl): Implement using the new fgets_internal. |
|
4908 |
|
4909 * f-rand.cc (Frand): Update code for sizing return value to match |
|
4910 that used by ones, zeros, and eye. |
|
4911 |
|
4912 Wed Aug 23 19:52:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4913 |
|
4914 * tree-const.cc (do_vector_assign): Don't crash for |
|
4915 A(range) = scalar, or A(matrix) = scalar. |
|
4916 |
|
4917 * f-dassl.cc (set_dassl_option): Rename from do_dassl_option. |
|
4918 (show_dassl_option): New function. |
|
4919 (Fdassl_options): Handle single arg. |
|
4920 * f-fsolve.cc (set_fsolve_option): Rename from do_fsolve_option. |
|
4921 (show_fsolve_option): New function. |
|
4922 (Ffsolve_options): Handle single arg. |
|
4923 * f-fsqp.cc (set_fsqp_option): Rename from do_fsqp_option. |
|
4924 (show_fsqp_option): New function. |
|
4925 (Ffsqp_options): Handle single arg. |
|
4926 * f-lpsolve.cc (set_lpsolve_option): Rename from do_lpsolve_option. |
|
4927 (show_lpsolve_option): New function. |
|
4928 (Flpsolve_options): Handle single arg. |
|
4929 * f-lsode.cc (set_lsode_option): Rename from do_lsode_option. |
|
4930 (show_lsode_option): New function. |
|
4931 (Flsode_options): Handle single arg. |
|
4932 * f-npsol.cc (set_npsol_option): Rename from do_npsol_option. |
|
4933 (show_npsol_option): New function. |
|
4934 (Fnpsol_options): Handle single arg. |
|
4935 * f-qpsol.cc (set_qpsol_option): Rename from do_qpsol_option. |
|
4936 (show_qpsol_option): New function. |
|
4937 (Fqpsol_options): Handle single arg. |
|
4938 * f-quad.cc: (set_quad_option): Rename from do_quad_option. |
|
4939 (show_quad_option): New function. |
|
4940 (Fquad_options): Handle single arg. |
|
4941 (Fquad): Doc fix. |
|
4942 |
|
4943 Tue Aug 22 00:38:05 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4944 |
|
4945 * tree-plot.cc (do_external_plotter_cd): New function. |
|
4946 * dirfns.cc (octave_change_to_directory): New function. If cd is |
|
4947 successful, also call do_external_plotter_cd(). |
|
4948 (Fcd): Call octave_change_to_directory(), not change_to_directory(). |
|
4949 |
|
4950 * pr-output.cc (pr_any_float): Change declaration of counter to |
|
4951 size_t to avoid gcc warnings. |
|
4952 |
|
4953 * idx-vector.cc, octave-hist.cc, tree-const.cc, tree-expr.cc, |
|
4954 tree-misc.cc, utils.cc, xpow.cc, Map.cc: |
|
4955 Update for change in for loop variable scope for gcc 2.7.0. |
|
4956 |
|
4957 Mon Aug 21 19:34:53 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4958 |
|
4959 * tree-const.cc (fortran_style_matrix_assignment): Properly handle |
|
4960 case of complex LHS, real RHS. |
|
4961 |
|
4962 * Makefile.in: Only include dependency files if $(omit_deps) is |
|
4963 not set. |
|
4964 |
|
4965 Wed Jul 5 00:03:58 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4966 |
|
4967 * sysdep.cc: Explicitly include string.h. |
|
4968 |
|
4969 Sun Jun 25 00:18:10 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
4970 |
|
4971 * load-save.cc (too_large_for_float (const Matrix&)): |
|
4972 Extract elements as doubles, not Complex. |
|
4973 |
|
4974 Sat Jun 24 22:59:15 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
4975 |
|
4976 * pr-output.cc (any_element_is_inf_or_nan): Declare extern, not static. |
|
4977 * f-svd.cc (Fsvd): Call here to avoid trying to take SVD of matrix |
|
4978 containing Inf or NaN values. |
|
4979 |
|
4980 * pr-output.cc (bit_format): New file-scope variable. |
|
4981 (set_format, pr_any_float): Handle bit_format. |
|
4982 (octave_print_internal): Handle bit_format like bank_format. |
|
4983 (init_format_state): Initialize bit_format. |
|
4984 (set_format_style): Allow `format bit' and `format native-bit'. |
|
4985 |
|
4986 Thu Jun 8 15:20:26 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
4987 |
|
4988 * mappers.cc (arg, imag, signum): If arg is NaN, return NaN. |
|
4989 |
|
4990 Mon May 15 14:47:04 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
4991 |
|
4992 * pager.cc (Fdiary): Initialize diary_file here, not in the |
|
4993 file-scope declaration. |
|
4994 |
|
4995 * tree-expr.cc (tree_index_expression::eval): |
|
4996 Handle nargin == 0 the same as other cases. |
|
4997 |
|
4998 Tue May 2 10:02:23 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
4999 |
|
5000 * load-save.cc (do_double_format_conversion): Add missing breaks. |
|
5001 (do_float_format_conversion): Likewise. |
|
5002 |
|
5003 Mon May 1 13:50:24 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5004 |
|
5005 * Makefile.in (OCTAVE_LIBS): Add @LIBPLPLOT@ to the list. |
|
5006 |
|
5007 * timefns.cc (Ftime): Handle GETTIMEOFDAY_NO_TZ. |
|
5008 |
|
5009 * Makefile.in (SOURCES): Delete tc-rep.cc, tc-rep-ass.cc, and |
|
5010 tc-rep-idx.cc from the list. |
|
5011 |
|
5012 * tree-const.h: Add #pragma interface. |
|
5013 * tree-const.cc: Add contents of tc-rep.cc, tc-rep-ass.cc, and |
|
5014 tc-idx.cc to this file. Add #pragma implementation. This makes |
|
5015 tree-const.cc large, but makes the final binary smaller. |
|
5016 |
|
5017 * unwind-prot.h unwind-prot.cc token.cc token.h procstream.cc |
|
5018 procstream.h idx-vector.cc idx-vector.h symtab.cc symtab.h |
|
5019 oct-map.cc oct-map.h oct-obj.cc oct-obj.h tree-plot.h tree-plot.cc |
|
5020 tree-misc.cc tree-misc.h tree-expr.cc tree-expr.h tree-cmd.cc |
|
5021 tree-cmd.h tree-base.cc tree-base.h: |
|
5022 Add #pragma interface/implementation. |
|
5023 |
|
5024 * Makefile.in (OCTAVE_LIBS): Delete @LIBINFO@ from list. |
|
5025 * help.cc: Don't include info headers or extern declarations for |
|
5026 functions from info. |
|
5027 (try_info): Call info as a subprocess. Delete second arg. |
|
5028 Handle SIGINT here, not in help_from_info(). |
|
5029 (help_from_info): Complain if info doesn't work. |
|
5030 |
|
5031 * defun-dld.h (DEFUN_DLD_BUILTIN) [OCTAVE_LITE && MAKE_BUILTINS]: |
|
5032 If ! WITH_DLD, simply emit a character string constant. |
|
5033 |
|
5034 Fri Apr 28 15:23:06 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5035 |
|
5036 * lex.l ({IDENT}{S}*): Don't delete tok. That's handled by |
|
5037 strip_trailing_whitespace() now. |
|
5038 (<HELP_FCN>[^ \t\n]*{S}*|<TEXT_FCN>[^ \t\n\;\,]*{S}*): Ditto. |
|
5039 |
|
5040 * pathsearch.h: Include kpathsea/progname.h. |
|
5041 * octave.cc (initialize_globals): Call kpse_set_progname(). |
|
5042 |
|
5043 * token.h: Declare copy constructor and operator = private. |
|
5044 * token.cc: Abort if copy constructor or operator = is used. |
|
5045 |
|
5046 Thu Apr 27 13:54:39 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5047 |
|
5048 * tree-expr.cc (lookup_map_element): Don't list default argument |
|
5049 values here too. |
|
5050 |
|
5051 * pr-output.cc (hex_format): New file-scope variable. |
|
5052 (set_format, pr_any_float): Handle hex_format. |
|
5053 (octave_print_internal): Handle hex_format like bank_format. |
|
5054 (init_format_state): Initialize hex_format. |
|
5055 (set_format_style): Allow `format hex' and `format native-hex'. |
|
5056 |
|
5057 * variables.cc (bind_ans): Create ans_id each time with new and |
|
5058 ask tree_simple_assignment_expression to handle cleaning it up. |
|
5059 This apparently plugs a memory leak. |
|
5060 |
|
5061 * help.cc (Ftype): Don't try to print map constants. Handle |
|
5062 references to structure members. |
|
5063 |
|
5064 Wed Apr 26 12:40:59 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5065 |
|
5066 * input.cc (generate_struct_completions): New function. |
|
5067 (generate_possible_completions): Likewise. |
|
5068 (looks_like_struct): Likewise. |
|
5069 (command_generator): Handle completion of struct variables. |
|
5070 |
|
5071 * tree-expr.h, tree-expr.cc (tree_fvc::lookup_map_element): |
|
5072 Add insert and silent args. |
|
5073 |
|
5074 * oct-map.cc: New file. |
|
5075 * Makefile.in (SOURCES): Add it to the list. |
|
5076 |
|
5077 Mon Apr 24 09:41:02 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5078 |
|
5079 * variables.cc (Fexist): Handle structure references too. |
|
5080 |
|
5081 * tree-const.cc (lookup_map_element (const char*, int, int): |
|
5082 New function. |
|
5083 (lookup_map_element (SLList<char*>&, int, int): New arg, silent. |
|
5084 * tc-rep.cc (lookup_map_element): New arg, silent. If nonzero, |
|
5085 don't call error(). |
|
5086 |
|
5087 * tc-rep.h (is_empty): Define here. |
|
5088 * tree-const.h (is_empty): Hand off to TC_REP::is_empty(). |
|
5089 |
|
5090 * data.cc (Fstruct_contains): Call lookup_map_element on args(0) |
|
5091 instead of extracting the map and calling contains() on it. |
|
5092 |
|
5093 * parse.y (EPLUS, EMINUS): New tokens. |
|
5094 (simple_expr): Handle EPLUS, EMINUS the same as `+' and `-'. |
|
5095 * lex.l (".+", ".-"): New patterns. Match these separately to |
|
5096 disallow using them as unary operators. |
|
5097 |
|
5098 * lex.l (next_token_is_bin_op): Simplify by noting that spacing |
|
5099 only matters for those tokens that can also be unary ops. |
|
5100 |
|
5101 Fri Apr 21 14:34:45 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5102 |
|
5103 * load-save.cc (read_ascii_data): Allow reading of empty |
|
5104 matrices. |
|
5105 |
|
5106 * tc-rep-ass.cc (vector_assignment): Only assert that we are not |
|
5107 doing fortran-style indexing and that nr <= 1 || nc <= 1. |
|
5108 (do_vector_assign): Handle assignment of [] when one dimension is |
|
5109 zero and the other is anything. |
|
5110 |
|
5111 Thu Apr 20 13:56:21 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5112 |
|
5113 * tc-rep-ass.cc (delete_rows, delete_columns): Simply return if |
|
5114 num_to_delete is 0. |
|
5115 |
|
5116 * lex.l (handle_identifier): Don't match plot option keywords |
|
5117 inside parentheses or braces. |
|
5118 |
|
5119 * variables.cc (parse_fcn_file): Also delete tmp_help_txt if |
|
5120 running a script. |
|
5121 |
|
5122 * tree-cmd.h (tree_command): Add destructor. |
|
5123 |
|
5124 * tree-expr.h tree_simple_assignment_expression (lhs_idx_expr): |
|
5125 Hang on to idx_expr, not just its parts so it can be deleted. |
|
5126 (init): Initialize it. |
|
5127 * tree-expr.cc (~tree_simple_assignment_expression): Delete it. |
|
5128 |
|
5129 * tree-expr.h (tree_multi_val_ret, tree_oct_obj, tree_fvc, |
|
5130 tree_identifier, tree_builtin, tree_function): Add destructors. |
|
5131 * tree-expr.cc (tree_function::~tree_function): Delete some stuff. |
|
5132 |
|
5133 * tree-misc.h (tree_va_return_list): Add destructor. |
|
5134 |
|
5135 * octave.cc (__builtin_new, __builtin_delete): Provide our own, |
|
5136 for debugging. |
|
5137 |
|
5138 * utils.cc (strconcat): Don't depend on the return value from |
|
5139 strcat. |
|
5140 (file_in_path): Simplify logic. |
|
5141 |
|
5142 * parse.y (maybe_convert_to_ans_assign): Create ans_id each time |
|
5143 with new and ask tree_simple_assignment_expression to handle |
|
5144 cleaning it up. This apparently plugs a memory leak. |
|
5145 |
|
5146 * lex.l (strip_trailing_whitespace): Declare retval static. |
|
5147 Delete it before saving next string. |
|
5148 |
|
5149 * error.cc (Ferror): Do call error() for empty string args. |
|
5150 (error_1): Don't print anything if fmt is "" or "\n", but do set |
|
5151 the error state appropriately. |
|
5152 |
|
5153 * tree-cmd.cc (tree_unwind_protect::eval): Handle return and break |
|
5154 in the `try' part of the statement. |
|
5155 |
|
5156 Mon Apr 10 19:29:44 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5157 |
|
5158 * f-expm.cc, f-givens.cc, f-qzval.cc, f-syl.cc, f-rand.cc: |
|
5159 Where appropriate, declare Fortran functions to take reference |
|
5160 instead of pointer args. Change callers. |
|
5161 |
|
5162 * mappers.cc: Declare Fortran functions to take reference instead |
|
5163 of pointer args. Change callers. |
|
5164 |
|
5165 * gamma.c, lgamma.c, erfc.c, erf.c, atanh.c, asinh.c, acosh.c: |
|
5166 Declare Fortran functions to take reference instead of pointer |
|
5167 args. |
|
5168 |
|
5169 Sun Apr 9 19:38:53 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5170 |
|
5171 * file-io.cc (Fpopen, Fpclose, Fexecute, Fsync_system, |
|
5172 Fasync_system, Fwaitpid, Fmkfifo, Funlink): New functions. |
|
5173 |
|
5174 * sighandlers.cc (sigchld_handler): New function. |
|
5175 (install_signal_handlers): Add call to install |
|
5176 sigchld_handler. (This is #if 0'd out, waiting for code to help |
|
5177 determine which child exited and what to do about it). |
|
5178 |
|
5179 * tree-expr.h (tree_oct_obj): New class. |
|
5180 |
|
5181 * tree-expr.h (tree_multi_assignment_expression::preserve): New |
|
5182 data member. Add arg with default value to constructors. Change |
|
5183 callers as necessary. |
|
5184 * tree-expr.cc (~tree_multi_assignment_expression): Conditionally |
|
5185 delete lhs. |
|
5186 |
|
5187 * parse.y (make_multi_val_ret): Pass matrix instead of getting it |
|
5188 from the global matrix list. |
|
5189 (expression): Extract matrix from matrix list before calling |
|
5190 make_multi_val_ret(). |
|
5191 |
|
5192 * parse.y (command): Handle new for loop syntax for structures. |
|
5193 |
|
5194 * tree-plot.h (subplot_list): Include tree_print_code() in |
|
5195 initializer lists for constructors. |
|
5196 * tree-expr.h (tree_statement_list, tree_argument_list, |
|
5197 tree_parameter_list, tree_return_list, tree_global_init_list, |
|
5198 tree_if_command_list, ): Likewise. |
|
5199 |
|
5200 * tree-cmd.h (tree_for_command::id_list): New data member. |
|
5201 (tree_for_command (tree_return_list*, tree_expression*, |
|
5202 tree_statement_list*, int, int)): Likewise. |
|
5203 * tree-cmd.cc (tree_for_command::eval): Handle for loops with |
|
5204 structures. |
|
5205 (do_for_loop_once (tree_return_list*, Octave_object&, int&)): |
|
5206 New form for handling for loops with structures. |
|
5207 |
|
5208 * sysdep.cc (octave_ieee_init): Determine floating point format |
|
5209 here. |
|
5210 (native_float_format): New global variable. |
|
5211 (Fisieee): Compute return value from native_float_format, not by |
|
5212 using preprocessor macros. |
|
5213 * sysdep.h (enum floating_point_format): Move declaration here. |
|
5214 * load-save.cc: From here. |
|
5215 Always define all floating point format conversion routines. |
|
5216 (do_double_format_conversion, do_float_format_conversion): |
|
5217 Use native_float_format instead of preprocessor macros. |
|
5218 |
|
5219 Sat Apr 8 15:41:35 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5220 |
|
5221 * Makefile (TEMPLATE_SRC): New variable. |
|
5222 (DISTFILES): Add $(TEMPLATE_SRC). |
|
5223 (SOURCES): Delete Map.cc and SLStack.cc from here. |
|
5224 |
|
5225 * variables.cc (install_builtin_variables): Use OCTAVE_VERSION |
|
5226 instead of version_string to initialize OCTAVE_VERSION. |
|
5227 * version.h (version_string): Delete. |
|
5228 |
|
5229 * getopt.c (_getopt_internal): Initialize indfound to avoid warning. |
|
5230 |
|
5231 Fri Apr 7 15:29:41 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5232 |
|
5233 * tc-inlines.h (REP_RHS_MATRIX): Just check to see if tc is real |
|
5234 or complex. If conversion fails, return. |
|
5235 |
|
5236 Thu Apr 6 00:10:47 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5237 |
|
5238 * data.cc (Fstruct_contains): New function. |
|
5239 |
|
5240 * tc-rep.cc (print_code): Add extra parens around while condition |
|
5241 to avoid warning. |
|
5242 * utils.cc (undo_string_escapes): Likewise. |
|
5243 * input.cc (decode_prompt_string): Likewise. Also rewrite if |
|
5244 statement to avoid warning. |
|
5245 |
|
5246 Tue Apr 4 22:54:17 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5247 |
|
5248 * tree-expr.cc (tree_multi_assignment_expression::eval, |
|
5249 tree_simple_assignment_expression::eval): Call print_constant |
|
5250 even if user_pref.print_answer_id_name is false. |
|
5251 |
|
5252 Mon Apr 3 17:57:14 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5253 |
|
5254 * tc-inlines.h (TC_REP): Avoid redefinition. |
|
5255 |
|
5256 * tree-const.h (do_binary_op, do_unary_op): Declare as friends of |
|
5257 tree_constant class too. |
|
5258 |
|
5259 * tree-plot.h (subplot_using::have_values): Delete data member. |
|
5260 * tree-plot.cc (subplot_using::eval): Always recompute values. |
|
5261 |
|
5262 Fri Mar 31 10:18:32 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5263 |
|
5264 * tc-rep.cc (print): Print open brace for structures here. |
|
5265 * tree-expr.cc (print_constant): Not here. |
|
5266 |
|
5267 * symtab.cc (define): Don't delete arg if sv_fcn fails. |
|
5268 |
|
5269 * tree-const.cc (print): New function. Create ostrstream buffer |
|
5270 and pass it to rep->print(). |
|
5271 * tree-const.h (eval (int)): Call print(), not rep->print(). |
|
5272 * tc-rep.cc (structure_indent_level): New file-scope variable. |
|
5273 (print): New arg, output_buf, is stream to print to. |
|
5274 Print values of structure elements too. |
|
5275 |
|
5276 * user-prefs.h (user_preferences): New field, struct_levels_to_print. |
|
5277 * user-prefs.cc (struct_levels_to_print): New function. |
|
5278 * variables.cc (install_builtin_variables): Add DEFVAR for new |
|
5279 variable struct_levels_to_print. |
|
5280 |
|
5281 * tree-const.cc (print_as_scalar, print_as_structure): Move here |
|
5282 from tree-expr.cc and make extern. |
|
5283 |
|
5284 * tree-expr.cc (print_as_structure): New function. |
|
5285 (print_constant): Use it. |
|
5286 |
|
5287 * tree-expr.cc (print_constant): New arg, print_padding. |
|
5288 (tree_simple_assignment_expression::eval): Use print_constant |
|
5289 instead of duplicating code here. |
|
5290 (tree_multi_assignment_expression::eval): Likewise. |
|
5291 |
|
5292 Thu Mar 30 13:24:11 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5293 |
|
5294 * Makefile.in (SOURCES): Add resource.cc. |
|
5295 * resource.cc: New file, extracted from timefns.cc. |
|
5296 (Fgetrusage): New function. |
|
5297 * timefns.cc (cputime): Delete (now implemented in a function file |
|
5298 using new getrusage function). |
|
5299 |
|
5300 Wed Mar 29 22:52:42 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5301 |
|
5302 * Makefile.in (SOURCES): Add strftime.c. |
|
5303 * strftime.c: New file, from sh-utils distribution. |
|
5304 |
|
5305 * timefns.cc (mk_tm_map, extract_tm, Ftime, Fgmtime, Flocaltime, |
|
5306 Fmktime, Fstrftime): New basic time functions. |
|
5307 (Fclock, Fdate): Delete (now implemented in function files using new |
|
5308 time functions). |
|
5309 |
|
5310 Tue Mar 28 17:51:51 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5311 |
|
5312 * file-io.cc (return_valid_file, do_printf, do_scanf, |
|
5313 fclose_internal, feof_internal, ferror_internal, fflush_internal, |
|
5314 fgets_internal, fopen_internal, fread_internal, freport_internal, |
|
5315 frewind_internal, fseek_internal, ftell_internal, |
|
5316 fwrite_internal): Declare static. |
|
5317 * file-io.h: Delete extern declarations for them. |
|
5318 |
|
5319 Fri Mar 24 09:52:50 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5320 |
|
5321 * pr-output.cc (pr_col_num_header): New function. |
|
5322 (compact_format): New file-scope variable. |
|
5323 (set_format_style): Handle loose and compact formats. |
|
5324 (octave_print_internal (ostream&, const ComplexMatrix&, int)): |
|
5325 Replace duplicate code with call to pr_col_num_header(). |
|
5326 (octave_print_internal (ostream&, const Matrix&, int): Likewise. |
|
5327 (octave_print_internal (ostream&, const Range&, int): Likewise. |
|
5328 |
|
5329 Tue Mar 21 08:44:48 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5330 |
|
5331 * mappers.cc (xgamma): Always use Slatec library function. |
|
5332 * (xlgamma): Likewise. |
|
5333 * Makefile.in (SOURCES): Don't include lgamma.c. |
|
5334 |
|
5335 Fri Mar 17 22:38:39 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5336 |
|
5337 * tc-rep.cc (TC_REP::new): Don't try to keep track of newlist_tail. |
|
5338 Explicitly initialize newlist to zero. |
|
5339 * tree-const.cc (tree_constant::operator new): Likewise. |
|
5340 |
|
5341 Fri Mar 10 12:40:24 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5342 |
|
5343 * tree-cmd.cc (quit_loop_now): Declare inline. |
|
5344 (tree_for_command::do_for_loop_once): Split into two versions, one |
|
5345 for the general case and one for when the loop variable is a |
|
5346 simple identifier. |
|
5347 (DO_LOOP): New macro. Move tests outside of loop. |
|
5348 (tree_for_command::eval): Speed up by checking to see if loop |
|
5349 variable is a simple identifier and by using DO_LOOP. |
|
5350 |
|
5351 * tree-const.h: New union of rep and freeptr. The freeptr element |
|
5352 is used for our custom memory management functions. |
|
5353 |
|
5354 * tc-rep.h: Add freeptr element to anonymous union (for our custom |
|
5355 memory management functions). |
|
5356 |
|
5357 * tree-const.cc (newlist, newlist_grow_size, newlist_tail): New |
|
5358 static variables. |
|
5359 (tree_constant::operator new): Always define to allow more |
|
5360 efficient allocation of single tree_constants. |
|
5361 (tree_constant::operator delete): Likewise, handle deletion of the |
|
5362 memory we allocate. |
|
5363 |
|
5364 * tc-rep.cc (newlist, newlist_grow_size, newlist_tail): New static |
|
5365 variables. |
|
5366 (tree_constant::operator new): Always define to allow more |
|
5367 efficient allocation of single tree_constants. |
|
5368 (tree_constant::operator delete): Likewise, handle deletion of the |
|
5369 memory we allocate. |
|
5370 |
|
5371 Fri Mar 3 14:00:08 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5372 |
|
5373 * error.cc (verror): Terminate output_buf with ends. |
|
5374 |
|
5375 * statdefs.h: Use C-style comment in first line instead of |
|
5376 C++-style comment. |
|
5377 |
|
5378 Mon Feb 27 10:11:18 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5379 |
|
5380 * parse.y (maybe_convert_to_ans_assign): Only lookup ans once. |
|
5381 * variables.cc (bind_ans): New function. |
|
5382 * tree-expr.cc (tree_identifier::eval (int)): Use it here. |
|
5383 (tree_identifier::eval (int, int, const Octave_object&): And here. |
|
5384 |
|
5385 * tree-expr.cc (install_nargin_and_nargout): New function. |
|
5386 * tree-expr.h (tree_function::tree_function (tree_statement_list *, |
|
5387 symbol_table *, int, int)): Call it. |
|
5388 |
|
5389 * tree-expr.cc (tree_function::bind_nargin_and_nargout): New function. |
|
5390 (tree_function::eval): Call it insead of the one from variables.cc. |
|
5391 |
|
5392 * variables.cc (bind_nargin_and_nargout): #if 0 out. |
|
5393 |
|
5394 Sun Feb 26 00:17:06 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5395 |
|
5396 * load-save.cc (Fload, Fsave): Free fname returned by tilde_expand(). |
|
5397 * dirfns.cc (Fls): Likewise. |
|
5398 |
|
5399 * tree-expr.cc (tree_multi_assignment_expression::eval (int, int, |
|
5400 const Octave_object&)): Call tree_return_list::operator () (Pix) |
|
5401 explicitly. |
|
5402 |
|
5403 * octave.cc (initialize_globals): Put TEXMF in the environment for |
|
5404 kpthsea. |
|
5405 |
|
5406 * Makefile.in (OCTAVE_LIBS): Use @LIBINFO@ and @LIBREADLINE@, |
|
5407 substituted by configure. Use kpathsea.a, not libkpathsea, so we |
|
5408 don't have to modify the kpathsea Makefile. |
|
5409 |
|
5410 Sat Feb 25 18:59:26 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5411 |
|
5412 * pathsearch.cc: New file. |
|
5413 * pathsearch.h: New file. |
|
5414 * Makefile.in (INCLUDES): Include it in the list. |
|
5415 * dynamic-ld.cc, help.cc, utils.cc: Use it instead of repeating |
|
5416 identical code multiple times. |
|
5417 |
|
5418 * variables.cc (install_builtin_variables): Only DEFVAR |
|
5419 suppress_verbose_help_message if USE_GNU_INFO. |
|
5420 |
|
5421 * help.cc (Fhelp): Only handle -i if USE_GNU_INFO. |
|
5422 (additional_help_message): Only print message if USE_GNU_INFO. |
|
5423 (builtin_help): New function. |
|
5424 (help_from_info): New function. Print warning if not USE_GNU_INFO. |
|
5425 |
|
5426 See ChangeLog.1 in the top level directory for earlier changes. |