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