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