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