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