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