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