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