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