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