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