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