3936
|
1 2002-05-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2 |
3939
|
3 * parse.y (function_end): Also accept end of input as end of |
|
4 function if input is coming from an eval string. |
|
5 |
3936
|
6 * pr-output.cc (pr_any_float): Don't convert -0 to 0. |
|
7 |
3934
|
8 2002-05-15 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
9 |
3935
|
10 * input.cc (generate_completion): If it looks like we are |
|
11 completing a struct, set completion append char to '\0'. |
|
12 |
|
13 * variables.cc (generate_struct_completions): Temporarily set |
|
14 warnings off here. |
|
15 |
3934
|
16 * error.cc (warning): Don't do anything if Vdebug_option == "off". |
|
17 Only print backtrace if Vdebug_option == "backtrace". |
|
18 (handle_message): Now returns a string containing the text of the |
|
19 formatted message. Change all callers. |
|
20 (Fwarning): Now a text-style function. Handle Matlab-compatible |
|
21 warning options. |
3935
|
22 (Flasterr, Flastwarn, set_warning_option): New functions. |
|
23 (Vlast_error_message, Vlast_warning_message, Vwarning_frequency, |
|
24 Vwarning_option): New static variables. |
3934
|
25 (vwarning): Set Vlast_warning_message here too. |
3935
|
26 (verror): Set Vlast_error_message here too. |
3934
|
27 |
3933
|
28 2002-05-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
29 |
|
30 * ov.h (octave_value::get_count): Now const. |
|
31 |
|
32 * ov.h, ov.cc (octave_value::do_non_const_unary_op, |
|
33 octave_value::assign): Idx is now a list of octave_value_list |
|
34 objects. |
|
35 |
|
36 * ov-base.cc, ov-base.h (octave_base_value::do_struct_elt_index_op, |
|
37 octave_base_value::struct_elt_ref): Delete. |
|
38 * ov-struct.cc, ov-struct.h (octave_sruct::do_struct_elt_index_op, |
|
39 octave_struct::struct_elt_ref): Delete. |
|
40 * ov.cc, ov.h (octave_value::do_struct_elt_index_op, |
|
41 octave_value::struct_elt_ref, octave_value::assign_struct_elt, |
|
42 octave_value::convert_and_assign, octave_value::try_assignment, |
|
43 octave_value::try_assignment_with_conversion, |
|
44 octave_value::simple_assign): Delete. |
|
45 |
|
46 * parse.y (make_index_expression): Type is now a single |
|
47 character. Change all callers. If expr is already an index |
|
48 expression, append index to it. |
|
49 (make_indirect_ref): Likewise. |
|
50 |
|
51 * pt-pr-code.cc (octave_print_internal (std::ostream&, const |
|
52 Cell&, bool, int)): Now just a dummy function, panic if called. |
|
53 |
|
54 * pt-idx.cc (tree_index_expression::make_arg_struct): New function. |
|
55 (tree_index_expression::type): Delete enum, rename from itype, now |
|
56 a string. |
|
57 (tree_index_expression::arg_nm): Now a list of string_vector objects. |
|
58 (tree_index_expression::idx): Now a list of tree_argument_list* |
|
59 objects. |
|
60 (tree_index_expression::is_index_expression): Always return true. |
|
61 (tree_index_expression::apend, make_value_list, make_subs_cell): |
|
62 New functions. |
|
63 |
|
64 * pt-pr-code.cc (visit_index_expression): Handle new definition of |
|
65 tree_index_expression object. |
|
66 * pt-check.cc (visit_index_expression): Likewise. |
|
67 * pt-bp.cc (visit_index_expression): Likewise. |
|
68 |
|
69 * ov-usr-fcn.h (octave_user_function::restore_args_passed): |
|
70 Clear args_passed even if nothing was saved. |
|
71 |
|
72 * ov-base.cc (octave_base_value::subsasgn, |
|
73 octave_base_value::map_keys, octave_base_value::print_info): |
|
74 New functions. |
|
75 |
|
76 * ov.h, ov.cc (octave_value::map_keys, octave_value::print_info, |
|
77 octave_value::subsref, octave_value::subsasgn, |
|
78 octave_value::numeric_assign, octave_value::next_subsref): |
|
79 New functions. |
|
80 (octave_value::empty_conv): New static function. |
|
81 (octave_value (octave_value *, int)): New arg, count. |
|
82 |
|
83 * ov-base-mat.cc (octave_base_matrix<MT>::subsref, |
|
84 octave_base_matrix<MT>::subsasgn): New functions. |
|
85 * ov-base-mat.h: Provide decls. |
|
86 |
|
87 * ov-builtin.cc (octave_builtin::subsref): New function. |
|
88 * ov-builtin.h: Provide decl. |
|
89 |
|
90 * ov-range.cc (octave_range::subsref): New function. |
|
91 * ov-range.h: Provide decl. |
|
92 |
|
93 * ov-cell.cc (octave_cell::subsref, octave_cell::subsasgn, |
|
94 octave_cell::list_value, octave_cell::print, |
|
95 octave_cell::print_raw, octave_cell::print_name_tag): New functions. |
|
96 * ov-cell.h: Provide decls. |
|
97 |
|
98 * ov-struct.cc (octave_struct::dotref, octave_struct::subsref, |
|
99 octave_struct::subsasgn, gripe_invalid_index, |
|
100 gripe_invalid_index_for_assignment, grip_invalid_index_type, |
|
101 gripe_failed_assignment): New functions. |
|
102 (octave_struct::numeric_conv): New static function. |
|
103 * ov-struct.h: Provide decls. |
|
104 (octave_struct::is_constant): Return true. |
|
105 (octave_struct::map_keys): New function. |
|
106 |
|
107 * ov-list.cc (octave_list::subsref, octave_list::subsasgn): |
|
108 New functions. |
|
109 * ov-list.h: Provide decls. |
|
110 |
|
111 * ov-usr-fcn.cc (octave_user_function::subsref, |
|
112 octave_user_function::print_symtab_info): New functions. |
|
113 * ov-usr-fcn.h: Provide decl. |
|
114 |
|
115 * ov-mapper.cc (octave_mapper::subsref): New function. |
|
116 * ov-mapper.h: Provide decl. |
|
117 |
|
118 * ov-base.cc (octave_base_value::subsref, |
|
119 octave_base_value::subsasgn): New functions. |
|
120 * ov-base.h: Provide decls. |
|
121 |
|
122 * ov-base.cc (octave_base_value::do_index_op): New arg, resize_ok. |
|
123 * ov-base-mat.cc (octave_base_matrix<MT>::do_index_op): Likewise. |
|
124 * ov-base-nd-array.cc (octave_base_nd_array<AT>::do_index_op): Ditto. |
|
125 * ov-bool-mat.cc (octave_bool::do_index_op): Ditto. |
|
126 * ov-str-mat.cc (octave_char_matrix_str::do_index_op): Ditto. |
|
127 * ov-range.cc (octave_range::do_index_op): Ditto. |
|
128 * ov-list.cc (octave_list::do_index_op): Ditto. |
|
129 * ov.cc (octave_value::do_index_op): Ditto. |
|
130 |
|
131 * ov-base-mat.cc (octave_base_matrix<MT>::print_info): New function. |
|
132 |
|
133 * ov-base-mat.h (octave_base_matrix<MT>::empty_clone): New function. |
|
134 * ov-base-nd-array.h (octave_base_nd_array<AT>::empty_clone): Ditto. |
|
135 * ov-base.h (octave_base_value::empty_clone): Ditto. |
|
136 * ov-bool-mat.h (octave_bool::empty_clone): Ditto. |
|
137 * ov-ch-mat.h (octave_char_matrix::empty_clone): Likewise. |
|
138 * ov-colon.h (octave_magic_colon::empty_clone): Likewise. |
|
139 * ov-complex.h (octave_complex::empty_clone): Likewise. |
|
140 * ov-cx-mat.h (octave_complex_matrix::empty_clone): Likewise. |
|
141 * ov-fcn.cc (octave_function::empty_clone): Likewise. |
|
142 * ov-file.h (octave_file::empty_clone): Likewise. |
|
143 * ov-range.h (octave_range::empty_clone): Likewise. |
|
144 * ov-list.h (octave_list::empty_clone): Likewise. |
|
145 * ov-re-mat.h (octave_matrix::empty_clone): Likewise. |
|
146 * ov-re-nd-array.h (octave_double_nd_array::empty_clone): Likewise. |
|
147 * ov-str-mat.h (octave_char_matrix_str::empty_clone): Likewise. |
|
148 * ov-struct.h (octave_struct::empty_clone): Likewise. |
|
149 * ov-va_args.h (octave_all_va_args::empty_clone): Likewise. |
|
150 * ov.h (octave_value::empty_clone): Likewise. |
|
151 |
|
152 * ov-base-mat.h (octave_base_matrix<MT>::clone): Now const. |
|
153 * ov-base-nd-array.h (octave_base_nd_array<AT>::clone): Likewise. |
|
154 * ov-base.h (octave_base_value::clone): Likewise. |
|
155 * ov-bool-mat.h (octave_bool::clone): Likewise. |
|
156 * ov-ch-mat.h (octave_char_matrix::clone): Likewise. |
|
157 * ov-colon.h (octave_magic_colon::clone): Likewise. |
|
158 * ov-complex.h (octave_complex::clone): Likewise. |
|
159 * ov-cx-mat.h (octave_complex_matrix::clone): Likewise. |
|
160 * ov-fcn.h (octave_function::clone): Likewise. |
|
161 * ov-file.h (octave_file::clone): Likewise. |
|
162 * ov-range.h (octave_range::clone): Likewise. |
|
163 * ov-list.h (octave_list::clone): Likewise. |
|
164 * ov-re-mat.h (octave_matrix::clone): Likewise. |
|
165 * ov-re-nd-array.h (octave_double_nd_array::clone): Likewise. |
|
166 * ov-str-mat.h (octave_char_matrix_str::clone): Likewise. |
|
167 * ov-struct.h (octave_struct::clone): Likewise. |
|
168 * ov-va_args.h (octave_all_va_args::clone): Likewise. |
|
169 * ov.h (octave_value::clone): Likewise. |
|
170 |
|
171 * oct-lvalue.cc (octave_lvalue::assign, octave_lvalue::set_index, |
|
172 octave_lvalue::do_unary_op): Idx is now a list of indices. Simplify. |
|
173 * oct-lvalue.h (octave_lvalue::value): Simplify. |
|
174 (octave_lvalue::struct_elt_names): Delete data member. |
|
175 (octave_lvalue::type): Now string |
|
176 Update decls. |
|
177 |
|
178 * pt-exp.h (tree_expression::is_indirect_ref): |
|
179 Delete virtual function. |
|
180 |
|
181 * pt-plot.cc (subplot::extract_plot_data): Use subsref, instead of |
|
182 do_index_op. |
|
183 |
|
184 * pt-stmt.cc (tree_statement::eval): Don't try to avoid binding |
|
185 ans for structure references. |
|
186 |
|
187 * symtab.cc (symbol_record::symbol_def::print_info): Rename from |
|
188 symbol_record::symbol_def::dump_symbol_info. |
|
189 (symbol_record::print_info): Rename from |
|
190 symbol_record::dump_symbol_info. Now const.. |
|
191 (symbol_record::print_symbol_info_line): Now const. |
|
192 (symbol_table::print_info): Rename from print_stats. Accept |
|
193 ostream arg. Now const. Print more info. |
|
194 * symtab.h: Update decls. |
|
195 |
|
196 * toplev.cc (octave_config_info): Indexing a map now returns a |
|
197 list, but we only want to return the first element. |
|
198 |
|
199 * variables.cc (generate_struct_completions, looks_like_struct): |
|
200 Simplify using eval_string. |
|
201 (F__print_symtab_info__): Rename from F__dump_symtab_info__. |
|
202 Handle "top-level" and individual function names in addition to |
|
203 "global". |
|
204 (F__print_symbol_info__): Rename from F___dump_symbol_info__. |
|
205 |
|
206 * octave.cc (intern_argv): Built-in variable argv is now a cell array. |
|
207 |
|
208 * ov-complex.cc (valid_scalar_indices): Delete. |
|
209 * ov-scalar.cc (valid_scalar_indices): Delete. |
|
210 |
|
211 * oct-obj.cc (octave_value_list::valid_scalar_indices): New function. |
|
212 (octave_value_list::index): New arg, resize_ok. |
|
213 * oct-obj.h: Provide decls. |
|
214 |
|
215 * oct-map.cc (Octave_map::keys): Rename from make_name_list. |
|
216 Change all uses. |
|
217 (Octave_map::assign, Octave_map::index): New functions. |
|
218 * oct-map.h: Provide decls. |
|
219 |
|
220 * data.cc (Fstruct_contains): Use map_value instead of |
|
221 do_struct_elt_index_op. |
|
222 |
|
223 * Cell.h (Cell (const Array2<octave_value>&, int, int)): |
|
224 New constructor. |
|
225 (Cell::resize_fill_value): New static function. |
|
226 |
|
227 * input.cc (initialize_command_input): Set basic and completer |
|
228 word break characters. |
|
229 |
3932
|
230 2002-05-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
231 |
3933
|
232 * ov.h (octave_value::subsref): New function. |
|
233 * ov-base.cc (octave_base_value::subsref): Likewise. |
|
234 |
3932
|
235 * ov-struct.cc (octave_struct::print_raw): Print scalar struct |
|
236 arrays more compactly. |
|
237 |
|
238 * DLD-FUNCTIONS/time.cc (extract_tm): Handle new struct array def. |
|
239 |
|
240 * oct-map.cc (Octave_map::array_len): New data member. |
|
241 (Octave_map::operator[], Octave_map::contsnts): Return |
|
242 octave_value_list, not Octave_value. Change callers as necessary. |
|
243 (Octave_map::assign): New function. |
|
244 (Octave_map::array_length): New fucntion. |
|
245 * oct-obj.cc (octave_value_list::assign): New function. |
|
246 |
3930
|
247 2002-05-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
248 |
3931
|
249 * TEMPLATE-INST/Map-oct-obj.cc: New file. |
|
250 * Makefile.in (TI_XSRC): Add it to the list. |
|
251 |
|
252 * oct-map.h (Octave_map): Make CHMap<octave_value_list> a data |
|
253 member instead of deriving from CHMap<octave_value>, in |
|
254 preparation for structure arrays. |
|
255 |
3930
|
256 * pt-indir.h, pt-indir.cc: Delete. |
|
257 |
|
258 * pt-all.h: Don't include pt-indir.h. |
|
259 |
|
260 * Makefile.in (PT_SRC): Delete pt-indir.cc from the list. |
|
261 (PT_INCLUDES): Delete pt-indir.h from the list. |
|
262 |
|
263 * pt-walk.h (tree_walker::visit_indirect_ref): Delete. |
|
264 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_indirect_ref): |
|
265 Likewise. |
|
266 * pt-check.h, pt-check.cc (tree_checker::visit_indirect_ref): Likewise. |
|
267 * pt-bp.h, pt-bp.cc (tree_breakpoint::visit_indirect_ref): Likewise. |
|
268 |
|
269 * pt-walk.h: Delete forward decl for tree_indirect_ref. |
|
270 * variables.h: Likewise. |
|
271 |
|
272 * parse.y (make_indirect_ref): Return tree_index_expression, not |
|
273 tree_indirect_ref. |
|
274 |
|
275 * pt-idx.h (tree_index_expression::struct_elt_name): New function. |
|
276 |
|
277 * pt-idx.cc (tree_index_expression::lvalue): Handle dot case too. |
|
278 (tree_index_expression::name): Likewise. |
|
279 (tree_index_expression rvalue (int)): Likewise. |
|
280 (tree_index_expression::eval_error): Likewise. |
|
281 * pt-pr-code.cc (visit_index_expression): Likewise. |
|
282 * pt-bp.cc (tree_breakpoint::visit_index_expression): Likewise. |
|
283 |
|
284 * pt-idx.h (tree_index_expression::dot): New type enum element. |
|
285 (tree_index_expression::expr_type): New function. |
|
286 (tree_index_expression::tree_index_expression (tree_expression*, |
|
287 const std::string&, int, int)): New constructor. |
|
288 (tree_index_expression::is_index_expression): Return value is now |
|
289 conditional on itype. |
|
290 (tree_index_expression::is_indirect_ref): New function. |
|
291 (tree_index_expression::lvalue_ok): Also return true if itype is dot. |
|
292 |
3928
|
293 2002-05-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
294 |
3929
|
295 * parse.y (ABORT_PARSE): Maybe restore symbol table context too. |
|
296 |
|
297 * pt-idx.h (tree_index_expression::type): New enum. |
|
298 (tree_index_expression::etype): New data member. |
|
299 * pt-idx.h (tree_index_expression::tree_index_expression): |
|
300 New arg, t, to set type of index. |
|
301 * parse.y (make_index_expression): Likewise. |
|
302 Change all callers. |
|
303 |
3928
|
304 * ov-base.cc (cell_conv): New conversion function. |
|
305 (install_base_type_conversions): Install it. |
|
306 Install conversion for indexed assignment of octave_cells to |
|
307 undefined values. |
|
308 |
|
309 * TEMPLATE-INST/Array-tc.cc: Instantiate assign functions too. |
|
310 (Array<octave_value>::resize_fill_value (void)): |
|
311 Provide specialization for octave_value. |
|
312 |
|
313 * ov-cell.cc (octave_cell::assign (const octave_value_list&, |
|
314 const octave_value&)): New function. |
|
315 * Cell.h (Cell::Cell (const octave_value&)): New function. |
|
316 |
|
317 * OPERATORS/op-cell.cc (install_list_ops): Use DEFASSIGNANYOP_FN |
|
318 and INSTALL_ASSIGNANYOP, not DEFASSIGNOP_FN and INSTALL_ASSIGNOP. |
|
319 |
|
320 2002-05-03 Cai Jianming <caijianming@yahoo.co.uk> |
|
321 |
|
322 * OPERATORS/op-cell.cc: New file. |
|
323 * src/Makefile.in (OP_XSRC): Include it in the list. |
|
324 |
|
325 * parse.y (cell): Return a cell type instead of Matrix type. |
|
326 |
|
327 * ov.cc (install_types): Install octave_cell type. |
|
328 |
|
329 * pr-output.cc (octave_print_internal): Handle Cells. |
|
330 * pr-output.h (octave_print_internal): Provide decl. |
|
331 |
|
332 * ov-cell.h (octave_cell): Derive from octave_base_matrix<Cell>. |
|
333 * ov-cell.cc (do_index_op, assign, print, print_raw, |
|
334 print_name_tag): Delete. |
|
335 |
|
336 * Cell.cc (allocator, index): Delete. |
|
337 * Cell.h (Cell): Derive from Array2<octave_value>. |
|
338 Most functions removed since we can use those from Array2 instead. |
|
339 |
|
340 2002-05-02 Cai Jianming <caijianming@yahoo.co.uk> |
|
341 |
|
342 * ov-base-mat.cc (octave_base_matrix<MT>::assign): |
|
343 New function. |
|
344 * ov-base-mat.h (octave_base_matrix<MT>::assign): Provide decl. |
|
345 * ov-bool-mat.cc (octave_bool_matrix::assign): Delete. |
|
346 * ov-bool-mat.h (octave_bool_matrix:assign): Delete decl |
|
347 * ov-cx-mat.cc (octave_complex_matrix::assign (const |
|
348 octave_value_list& idx, const ComplexMatrix&)): Delete. |
|
349 * ov-cx-mat.h (octave_complex_matrix:assign (const |
|
350 octave_value_list& idx, const ComplexMatrix&)): Replace decl with |
|
351 function. |
|
352 * ov-re-mat.cc (octave_bool_matrix::assign): Delete. |
|
353 * ov-re-mat.h (octave_bool_matrix:assign): Delete decl. |
|
354 |
3927
|
355 2002-05-02 Cai Jianming <caijianming@yahoo.co.uk> |
|
356 |
|
357 * OPERATORS/op-bm-b.cc: New file.x |
|
358 * Makefile.in (OP_XSRC): Add it to the list. |
|
359 |
3920
|
360 2002-04-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
361 |
3922
|
362 * octave.cc (print_version_and_exit): Use |
|
363 OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_AND_WARRANTY, not |
|
364 OCTAVE_NAME_AND_VERSION. |
|
365 |
|
366 * octave.cc (verbose_usage): |
|
367 Use OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_AND_WARRANTY, not |
|
368 OCTAVE_NAME_VERSION_AND_COPYRIGHT. |
|
369 |
|
370 * version.h (OCTAVE_COPYING_STATEMENT, OCTAVE_WARRANTY_STATEMENT, |
|
371 OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_AND_WARRANTY, |
|
372 X_OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_WARRANTY_AND_BUGS, |
|
373 OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_WARRANTY_AND_BUGS, |
|
374 OCTAVE_BUGS_STATEMENT): New macros. |
|
375 (OCTAVE_STARTUP_MESSAGE): Define in terms of |
|
376 X_OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_WARRANTY_AND_BUGS |
|
377 to include bugs address and amplified warranty information. |
|
378 |
3920
|
379 * DLD-FUNCTIONS/lsode.cc (Flsode): Delete unused variable nsteps. |
|
380 |
3917
|
381 2002-04-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
382 |
|
383 * help.cc (additional_help_message): Use www.octave.org, not |
|
384 www.che.wisc.edu/octave/octave.html. |
|
385 * octave.cc (verbose_usage): Likewise. |
|
386 |
3912
|
387 2002-04-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
388 |
|
389 * DLD-FUNCTIONS/daspk.cc: New file. |
|
390 * Makefile.in (DLD_XSRC): Add it to the list. |
|
391 |
3910
|
392 2002-04-25 Paul Kienzle <pkienzle@users.sf.net> |
|
393 |
|
394 * DLD-FUNCTIONS/kron.cc: New file. |
|
395 * Makefile.in (DLD_SRC): Add it to the list. |
|
396 |
3903
|
397 2002-04-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
398 |
|
399 * parse.y (save_symtab): New non-terminal. Save current symbol |
|
400 table context here. |
|
401 (function_beg): Use it. |
|
402 (symtab_context): New file-scope variable. |
|
403 (recover_from_parsing_function): Restore symbol table context here. |
|
404 |
3901
|
405 2002-04-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
406 |
|
407 * load-save.cc (get_lines_and_columns): Handle CRLF as line |
|
408 separator in addition to LF. |
|
409 |
3897
|
410 2002-04-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
411 |
|
412 * load-save.cc (hdf5_ofstream::hdf5_ofstream): |
|
413 Explicitly List std::ostream(0) in constructor. |
|
414 (hdf5_ifstream::hdf5_ifstream): |
|
415 Explicitly List std::istream(0) in constructor. |
|
416 (hdf5_fstreambase::hdf5_fstreambase): Use std::ios::setstate, not set. |
|
417 (hdf5_fstreambase::close): Likewise. |
|
418 (hdf5_fstreambase::open): Likewise. |
|
419 |
3895
|
420 2002-04-10 Ben Sapp <bsapp@lanl.gov> |
|
421 |
|
422 * pt-stmt.cc (delete_breakpoint): List breakpoints if line < 0. |
|
423 * debug.cc (get_user_function): Check symbol by name first. |
|
424 (Fdbstop): Rename from Fdbg_set. |
|
425 (Fdbclear): Rename from Fdbg_delete. |
|
426 (Fdbstatus): Rename from Fdbg_list. |
|
427 (Fdbg_where): Rename from Fdbwhere. |
|
428 (do_dbtype, Fdbtype): New functions. |
|
429 |
|
430 2002-04-10 Peter Van Wieren <peter.vanwiere@avlna.com> |
|
431 |
|
432 * load-save.cc (save_mat5_binary_element): Save elements of 2d |
|
433 character matrices in proper order. |
|
434 |
3893
|
435 2002-04-09 Paul Kienzle <pkienzle@users.sf.net> |
|
436 |
|
437 * utils.cc (do_string_escapes): Handle \0 too. |
|
438 (undo_string_escape): Likewise. |
|
439 |
3892
|
440 2002-04-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
441 |
|
442 * toplev.cc (octave_config_info): Define struct member EXEEXT, not EXE. |
|
443 * Makefile.in (install-bin): Use $(EXEEXT), not $(EXE). |
|
444 * oct-conf.h.in (OCTAVE_CONF_EXEEXT): Define and substitute |
|
445 OCTAVE_CONF_EXEEXT, not OCTAVE_CONF_EXE. |
|
446 |
3887
|
447 2002-04-03 Steven G. Johnson <stevenj@alum.mit.edu> |
|
448 |
|
449 * DLD-FUNCTIONS/balance.cc: Use F77_FUNC instead of F77_FCN. |
|
450 * DLD-FUNCTIONS/qz.cc: Likewise. |
|
451 * DLD-FUNCTIONS/rand.cc: Likewise. |
|
452 * octave.cc: Likewise. |
3910
|
453 * toplev.cc (Foctave_config_info): Delete use of FORTRAN_MAIN_FLAG. |
3887
|
454 * oct-conf.h.in: Delete use of OCTAVE_CONF_FORTRAN_MAIN_FLAG. |
|
455 * syscalls.cc (mk_stat_map): |
|
456 Use HAVE_STRUCT_STAT_ST_RDEV instead of HAVE_ST_RDEV. |
|
457 Use HAVE_STRUCT_STAT_ST_BLKSIZE instead of HAVE_ST_BLKSIZE. |
|
458 Use HAVE_STRUCT_STAT_ST_BLOCKS instead of HAVE_ST_BLOCKS. |
|
459 |
3881
|
460 2002-04-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
461 |
3883
|
462 * lex.l, lex.h (parser_end_of_input): New global variable. |
|
463 (reset_parser): Reset it here. |
|
464 * parse.y (input): Set it to TRUE on EOF. |
|
465 (parse_and_executed): Save and restore it, check it to correctly |
|
466 break out of parse-execute loop. |
|
467 (parse_fcn_file): Likewise. |
|
468 (eval_string): Likewise. |
3884
|
469 * toplev.cc (main_loop): Likewise. |
3883
|
470 |
3881
|
471 * parse.y (input): Call YYACCEPT for END_OF_INPUT. |
3883
|
472 Return no-op command for bare newline. |
3881
|
473 (parse_and_execute): Handle change in yyparse return value semantics. |
3883
|
474 |
3881
|
475 * toplev.cc (main_loop): Likewise. |
|
476 |
3880
|
477 2002-03-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
478 |
|
479 * parse.y (parse_fcn_file): Call error if there is no input file. |
|
480 (parse_and_execute (FILE *): Protect get_input_from_eval_string. |
|
481 Set get_input_from_eval_string to false before calling yyparse. |
|
482 * lex.l (reset_parser): Also skip yyrestart (stdin) if |
|
483 reading_script_file is true. |
|
484 |
3877
|
485 2002-03-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
486 |
|
487 * pt-loop.cc (evaluating_looping_command): New global. |
|
488 (tree_while_command::eval): Protect evaluating_looping_command. |
|
489 Set it to true while evaluating loop. |
|
490 (tree_do_until_command::eval): Ditto. |
|
491 (tree_simple_for_command::eval): Ditto. |
|
492 (tree_complex_for_command::eval): Ditto. |
|
493 * pt-loop.h (evaluating_looping_command): Provide decl. |
|
494 * parse.y (parse_fcn_file): Protect get_input_from_eval_string. |
|
495 Set get_input_from_eval_string to false before calling yyparse. |
|
496 (make_break_command): Also check evaluating_looping_command. |
|
497 (make_continue_command): Also check evaluating_looping_command. |
|
498 (eval_string (const std::string&, bool, int&, int)): Loop over |
|
499 yyparse to handle multi-line strings. |
|
500 Move call to unwind_protect::run_frame to end of function. |
|
501 Don't reset parser before calling yyparse. |
|
502 Correctly handle return, break, and continue. |
|
503 |
|
504 * input.cc (input_from_eval_string_pending): New global variable. |
|
505 (get_usr_input): Use it. |
|
506 * input.h (input_from_eval_string_pending): Provide decl. |
|
507 |
3876
|
508 2002-03-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
509 |
|
510 * ov-usr-fcn.cc (octave_user_function::do_multi_index_op): |
|
511 Don't unwind_protect num_named_args (it doesn't change on |
|
512 recursive calls). |
|
513 Do re-initialize curr_va_arg_number to num_named_args after |
|
514 unwind_protecting. |
|
515 |
|
516 * ov-usr-fcn.h (octave_user_function::clear_args_passed): Delete. |
|
517 (octave_user_function::saved_args): New data member. |
|
518 (octave_user_function::save_args_passed): New function. |
|
519 (octave_user_function::restore_args_passed): Ditto. |
|
520 * ov-usr-fcn.cc (clear_args_passed): Delete. |
|
521 (restore_args_passed): New function. |
|
522 (octave_user_function::do_multi_index_op): Correctly save and |
|
523 restore args passed for recursive calls. |
|
524 |
|
525 * TEMPLATE-INST/SLStack-ovl.cc: New file. |
|
526 * Makefile.in: Add it to the list. |
|
527 |
3870
|
528 2002-02-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
529 |
3871
|
530 * ov-usr-fcn.cc (octave_user_function::do_multi_index_op): |
|
531 Handle define_all_return_values after function is evaluated. |
|
532 From Paul Kienzle <pkienzle@jazz.ncnr.nist.gov>. |
|
533 |
|
534 * ov-scalar.cc (convert_to_str): Use octave_value (std::string) |
|
535 constructor instead of octave_value (char *) constructor so that |
|
536 setstr (0) will work. |
|
537 |
3870
|
538 * pager.cc (octave_pager_buf::sync): Set pointer to beginning |
|
539 of buffer after calling flush_currnt_contents_to_diary. |
|
540 (octave_diary_buf::sync): Call eback only once. |
|
541 |
3867
|
542 2002-01-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
543 |
|
544 * lex.l (.): Remove test for EOF since it is already handled |
|
545 separately. |
|
546 |
3866
|
547 2001-12-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
548 |
|
549 * load-save.cc (save_mat5_binary_element): |
|
550 Extract dimensions directly from tc. |
|
551 Handle ranges the same as real matrices. |
|
552 |
3864
|
553 2001-11-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
554 |
|
555 * data.cc (DATA_REDUCTION): If no DIM arg, pass -1 to FCN. |
|
556 |
3859
|
557 2001-11-09 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
558 |
|
559 * oct-conf.h.in (FFTW_LIBS, LD_CXX, LIBOCT_PATHSEARCH, |
|
560 LIBOCT_READLINE, MKOCTFILE_LFLAGS): Substitute. |
|
561 * toplev.cc (octave_config_info): Add them to the map. |
|
562 |
|
563 2001-11-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
564 |
|
565 * DLD-FUNCTIONS/lsode.cc (Flsode): Don't bother to give OUTPUT |
|
566 matrix a size before calling integration function. |
|
567 |
3857
|
568 2001-11-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
569 |
|
570 Makefile.in (OCTAVE_LIBS): Add $(LIBOCT_READLINE) and |
|
571 $(LIBOCT_PATHSEARCH) to the list. |
|
572 |
3849
|
573 2001-10-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
574 |
|
575 * DLD-FUNCTIONS/dassl.cc (dassl_user_function): Allow user |
|
576 supplied RES function to return IDID as second value. |
|
577 |
3844
|
578 2001-07-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
579 |
|
580 * parse.y: Clear help_buf after documenting function. |
|
581 |
3842
|
582 2001-06-29 Mumit Khan <khan@nanotech.wisc.edu> |
|
583 |
|
584 * defun-int.h (DEFINE_FUN_INSTALLER_FUN{2,3}): New macros. |
|
585 (DEFINE_FUN_INSTALLER_FUN): Use. |
|
586 * dynamic-ld.cc ({STRINGIFY, STRINGIFY1}): New macros. |
|
587 (octave_dynamic_loader::mangle_name): Support dynamic linking |
|
588 for GNU v3 and Sun C++ ABI. |
|
589 |
3841
|
590 2001-06-26 Mumit Khan <khan@nanotech.wisc.edu> |
|
591 |
|
592 * c-file-ptr-stream.h (c_file_ptr_buf::c_file_ptr_buf): Add GCC3 |
|
593 libstdc++-v3 support. |
|
594 * load-save.cc (save_mat5_binary_element): Cast arguments to the |
|
595 correct type. |
|
596 (save_ascii_data): Eliminate compiler warning. |
|
597 * toplev.cc (system): Prefix std::. |
|
598 |
3836
|
599 2001-05-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
600 |
|
601 * ov-cx-mat.cc: Deleve unnecessary instantiation of assign function. |
|
602 * ov-re-mat.cc: Likewise. |
|
603 * ov-re-nd-array.cc: Likewise. |
|
604 * ov-str-mat.cc: Likewise. |
|
605 * ov-bool-mat.cc: Likewise. |
|
606 |
|
607 * load-save.cc (save_ascii_data): When saving string data, get raw |
|
608 string value for matrix row since there may be embedded nuls. |
|
609 |
|
610 * pt-mat.cc (Vstring_fill_char): No longer static. |
|
611 * pt-mat.h: Provide declaration. |
|
612 |
3834
|
613 2001-05-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
614 |
|
615 * octave.cc (initialize_pathsearch): Save initial value of the |
|
616 TEXMFDBS environment variable here. |
|
617 * toplev.cc (restore_texmfdbs_envvar): New function. |
|
618 (Fsystem): Set TEXMFDBS back to original value before running |
|
619 subprocesses. |
|
620 |
3827
|
621 2001-05-02 Mumit Khan <khan@nanotech.wisc.edu> |
|
622 |
|
623 * Makefile.in (octave): Add $(FFTW_LIBS). |
|
624 |
3826
|
625 2001-04-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
626 |
|
627 * DLD-FUNCTIONS/sort.cc (mx_sort): Check for NaNs in comparisons. |
|
628 |
3822
|
629 2001-04-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
630 |
|
631 * Makefile.in (OCTAVE_LIBS): Delete $(LIBREADLINE) from the list. |
|
632 (octave): Delete TERMLIBS from link command. |
|
633 * oct-conf.h.in: Delete references to LIBREADLINE, TERMLIBS. |
|
634 * toplev.cc (octave_config_info): Delete entries for LIBREADLINE, |
|
635 TERMLIBS. |
|
636 |
3821
|
637 2001-04-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
638 |
|
639 * Makefile.in (install-lib): Don't use mk-libdir-link. |
|
640 (install-inc): Don't use mk-includedir-link. |
|
641 |
3815
|
642 2001-04-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
643 |
|
644 * parse.y (fold (tree_binary_expression *)): |
|
645 Set discard_error_messages here instead of buffer_error_messages. |
|
646 Don't add clear_global_error_variable to the unwind_protect stack. |
|
647 (fold (tree_unary_expression *)): Likewise. |
|
648 (finish_colon_expression): Likewise. |
|
649 (finish_matrix): Likewise. |
|
650 |
|
651 * error.cc (panic): Set discard_error_messages to false here. |
|
652 (verror): Return immediately if discard_error_messages is true. |
|
653 |
|
654 * error.cc (discard_error_messages): New global variable. |
|
655 * error.h: Provide declaration. |
|
656 |
3813
|
657 2001-04-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
658 |
|
659 * lex.l: If unexpected character is EOF, report EOF error instead |
|
660 of invalid character error. |
|
661 |
3812
|
662 2001-04-18 Mumit Khan <khan@nanotech.wisc.edu> |
|
663 |
|
664 * load-save.cc (read_mat5_binary_element): Cast arguments to the |
|
665 correct type when adding stream positions. |
|
666 * DLD-FUNCTIONS/det.cc (det): Explicity create a Complex value to |
|
667 work around a Sun C++ type conversion bug. |
|
668 |
3811
|
669 2001-04-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
670 |
|
671 * symtab.cc (define_builtin_const): Don't call replace_all_defs |
|
672 here. |
|
673 |
|
674 * error.cc (error_message_buffer): Now static. |
|
675 * error.h (error_message_buffer): Delete extern declaration. |
|
676 |
3810
|
677 2001-03-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
678 |
|
679 * DLD-FUNCTIONS/besselj.cc (besselh): Use K arg. |
|
680 From: Thomas Stuart <tstuart@ing.sun.ac.za>. |
|
681 |
|
682 * oct-stream.cc (get_size): Don't allow [Inf, N] as a size |
|
683 specification for the read and scanf functions. |
|
684 (get_size): SIZE is now an Array<double> instead of a Matrix object. |
|
685 (read): Likewise. Change all callers. |
|
686 (scanf): Likewise. Change all callers. |
|
687 |
3808
|
688 2001-03-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
689 |
|
690 * DLD-FUNCTIONS/det.cc (Fdet): Only return rcond if nargout > 1. |
|
691 * DLD-FUNCTIONS/inv.cc (Finv): Only return rcond if nargout > 1. |
|
692 |
|
693 2001-03-26 Paul Kienzle <pkienzle@kienzle.powernet.co.uk> |
|
694 |
|
695 * DLD-FUNCTIONS/det.cc (Fdet): Suppress warning, but return rcond. |
|
696 * DLD_FUNCTIONS/inv.cc (Finv): Return rcond if requested. |
|
697 |
3804
|
698 2001-02-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
699 |
3805
|
700 * pt.h (tree::break_statement): New static member. |
|
701 (tree::break_function): Make const. |
|
702 * pt.cc (tree::break_statement): Initialize here. |
|
703 (tree::break_function): Make const. |
|
704 * pb-bp.h (break_statement): Delete global varaible declaration. |
|
705 * pt-bp.cc (break_statement): Delete global variable definition. |
|
706 |
|
707 * pt-bp.h (tree_breakpoint::bp_list): Rename from lst. |
|
708 |
|
709 * pt.h: Don't inlcude ov-usr-fcn.h. |
|
710 Provide forward declaration of octave_user_function class. |
|
711 |
|
712 2001-02-28 Ben Sapp <bsapp@lanl.gov> |
|
713 |
|
714 * debug.cc (get_user_function): Simplify by using curr_function. |
|
715 (Fdbg_where): New function. |
|
716 (Fdbg_list): Now DLD_TEXT instead of DLD_FCN. |
|
717 (Fdbg_set): Likewise. |
|
718 (Fdbg_delete): Likewise. |
|
719 |
|
720 * pt-bp.h (break_statement): New global variable. |
|
721 (MAYBE_DO_BREAKPOINT): Check for dbg_next and dbg_step. |
|
722 Print line, column, and current statement. |
|
723 * pt-bp.cc (break_statement): New global variable |
|
724 (tree_breakpoint::visit_do_until_command): Return immediately if |
|
725 we've already found the line. |
|
726 (tree_breakpoint::visit_colon_expression): Set breakpoint info here. |
|
727 (tree_breakpoint::visit_binary_expression): Recurse here when |
|
728 checking for breakpoints. |
|
729 |
|
730 * debug.cc: Move here from DLD-FUNCTIONS/debug.cc. |
|
731 * Makefile.in (DIST_SRC): Add it to the list. |
|
732 (DLD_XSRC): Delete it from the list. |
|
733 |
|
734 * pt.h (tree::last_line, tree::break_function): New static members. |
|
735 * pt.cc(tree::last_line, tree::break_function): Initialize them. |
|
736 |
|
737 * pt-cell.h (tree_cell::tree_cell): Accept line and column info. |
|
738 * pt-mat.h (tree_matrix::tree_matrix): Likewise. |
|
739 |
|
740 * ov-usr-fcn.h (octave_user_function::sym_tab): Delete. |
|
741 |
|
742 * input.cc (get_user_input): Handle dbg_next. |
|
743 Set tree:break_function and tree::last_line when doing dbg_step. |
|
744 |
|
745 2001-02-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
746 |
|
747 * lex.l (handle_string): Save line and column information in token. |
|
748 (is_keyword): Save line and column information for plot style and |
|
749 axes tokens. |
|
750 |
3804
|
751 * toplev.cc (main_loop): Set retval to non-zero value if error |
|
752 occurs when not interactive. |
|
753 |
3802
|
754 2001-02-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
755 |
|
756 * parse.y (gobble_leading_white_space): Handle CRLF here too. |
|
757 * lex.l (check_for_garbage_after_fcn_def): Likewise. |
|
758 |
|
759 * lex.l: Add numeric value of character to error message for |
|
760 unrecognized characters. |
|
761 |
3800
|
762 2001-02-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
763 |
|
764 * DLD-FUNCTIONS/minmax.cc (EMPTY_RETURN_CHECK): For empty matrix |
|
765 args, make Octave's min and max behave like Matlab. |
|
766 |
3799
|
767 2001-02-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
768 |
|
769 * OPERATORS/op-s-s.cc (el_or, el_and): Return bool value. |
|
770 |
3798
|
771 2001-02-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
772 |
|
773 * pt-binop.cc (tree_boolean_expression::rvalue): |
|
774 Don't cast result to double. |
|
775 |
|
776 * OPERATORS/op-b-b.cc: Allow & and | operators to return bool values. |
|
777 |
|
778 2001-02-09 John W. Eaton <jwe@bevo.che.wisc.edu> |
3797
|
779 |
|
780 * data.cc (DATA_REDUCTION): Undo previous change. |
|
781 |
|
782 2001-02-13 Matthew W. Roberts <matt@nephi.tamu.edu> |
|
783 |
|
784 * load-save.cc (Fload): Accept -4 as an alias for -v4 and -mat4-binary. |
|
785 (Fsave): Likewise. |
|
786 |
3796
|
787 2001-02-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
788 |
|
789 * lex.l (lexical_feedbac::init): |
|
790 Initialize looking_at_matrix_or_assign_lhs too. |
|
791 |
3795
|
792 2001-02-09 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
793 |
|
794 * data.cc (DATA_REDUCTION): Allow FCN(x,0) to be equivalent to FCN(x). |
|
795 |
3779
|
796 2001-02-06 Mumit Khan <khan@nanotech.wisc.edu> |
|
797 |
|
798 * oct-stream.cc (octave_scan): Partially implement and specialize |
|
799 for char*. Delete the old template instantiations. |
|
800 (BEGIN_S_CONVERSION): Use strings instead of ostrstreambuf. |
|
801 (octave_base_stream::do_scanf): Pass correct parameter to |
|
802 do_scan_conv. |
|
803 |
3775
|
804 2001-02-05 Mumit Khan <khan@nanotech.wisc.edu> |
|
805 |
3776
|
806 * pr-output.cc (set_format): Add std:: namespace qualifier as |
|
807 needed. |
|
808 |
3775
|
809 * oct-stream.cc (octave_scan): Implement, and specialize for |
|
810 char*. Delete the old template instantiations. |
|
811 (BEGIN_S_CONVERSION): Use strings instead of ostrstreambuf. |
|
812 (octave_base_stream::do_scanf): Pass correct parameter to |
|
813 do_scan_conv. |
|
814 |
|
815 * Makefile.in (TEMPLATE_AR, TEMPLATE_ARFLAGS): Use to create |
|
816 archive libraries containing templates. |
|
817 |
|
818 * c-file-ptr-stream.h: Include <fstream>. Use <cstdio> instead of |
|
819 <stdio.h> |
|
820 (c_file_ptr_buf::int_type): Compat typedef for non-ISO libstdc++. |
|
821 (c_file_ptr_buf::{overflow, underflow, uflow, pbackfail): Use. |
|
822 (c_file_ptr_buf::c_file_ptr_buf): Handle various compilers. |
|
823 (c_file_ptr_buf::file_number): New member function. |
|
824 (c_file_ptr_buf::fd): New private data. |
|
825 (i_c_file_ptr_stream::i_c_file_ptr_stream): Initialize stream |
|
826 correctly. |
|
827 (o_c_file_ptr_stream::o_c_file_ptr_stream): Likewise. |
|
828 * c-file-ptr-stream.cc |
|
829 (c_file_ptr_buf::{overflow, underflow, uflow, pbackfail): Add |
|
830 ISO-compliant EOF handling. |
|
831 * oct-stream.cc (octave_base_stream::file_number): Use |
|
832 c_file_ptr_buf::file_number to get underlying file descriptor. |
|
833 |
|
834 * comment-list.cc: Add missing class qualifier. |
|
835 |
|
836 * file-io.cc, load-save.cc, mappers.cc, oct-fstrm.cc, oct-fstrm.h, |
|
837 oct-iostrm.cc, oct-iostrm.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
838 oct-stream.cc, oct-stream.h, oct-strstrm.cc, oct-strstrm.h, |
|
839 ov-base-nd-array.cc, ov-base-scalar.h, ov-complex.cc, ov-cx-mat.cc, |
|
840 pager.cc, pr-output.cc, procstream.h, pt-bp.h, utils.cc: |
|
841 Add std:: namespace qualifier as needed, and replace |
|
842 deprecated or invalid libstdc++-v2 names with standard ones |
|
843 where appropriate. |
|
844 |
|
845 * DLD-FUNCTIONS/minmax.cc: Fix docstring. |
|
846 |
|
847 * oct-fstrm.cc (octave_fstream::octave_fstream): Maintain fix for |
|
848 libstdc++-v2. |
|
849 |
|
850 * oct-stdstrm.cc (octave_ostdiostream::create): Remove default |
|
851 parameter value in definition. |
|
852 |
|
853 * oct-stream.cc (octave_stream::mode_as_string): Don't assume |
|
854 std::iso::openmode is an integral quantity. |
|
855 |
|
856 * pager.cc, procstream.h: Initialize streams correctly. |
|
857 |
|
858 * utils.cc: Use CXX_ISO_COMPLIANT_LIBRARY guard. |
|
859 |
|
860 * ov-base-nd-array.cc (idx_list_to_idx_array): Inline. |
|
861 |
|
862 * ov-base-scalar.h (octave_base_scalar::octave_base_scalar): Use |
|
863 ``const ST& s'' instead of ST to workaround gcc3 complex bug. |
|
864 |
3774
|
865 2001-02-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
866 |
|
867 * lex.l (next_token_is_bin_op): Remove Checks for spacing except |
|
868 for ops that begin with +, - but are not ++, --, +=, or -=. |
|
869 |
3772
|
870 2001-02-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
871 |
|
872 * input.cc (get_user_input): Handle dbg_cont and dbg_step here. |
|
873 * debug.cc (Fdbg_cont): Delete. |
|
874 * pt-bp.h (MAYBE_DO_BREAKPOINT): Check tree::break_next here. |
|
875 * pt.h (tree::break_next): New static member. |
|
876 * pt.cc: Initialize it. |
|
877 |
|
878 * parse.h (feval (const octave_value_list&, int)): |
|
879 Set default value for nargout. |
|
880 (feval (const std::string&, const octave_value_list&, int)): |
|
881 Set default values for args and nargout. |
|
882 |
3770
|
883 2001-02-01 Ben Sapp <bsapp@lanl.gov> |
|
884 |
|
885 * DLD-FUNCTIONS/debug.cc: New file. |
|
886 * pt-bp.h, pt-bp.cc: New files, for breakpoints. |
|
887 * Makefile.in: Add them to the appropriate lists. |
|
888 |
|
889 * pt-stmt.cc (tree_statement_list::set_breakpoint, |
|
890 tree_statement_list::delete_breakpoint, |
|
891 tree_statement_list::list_breakpoints): New functions. |
|
892 |
|
893 * pt.h (tree::break_point): New data member. |
|
894 (tree::set_breakpoint, tree::delete_breakpoint, tree::is_breakpoint): |
|
895 New virtual functions. |
|
896 |
|
897 * pt-mat.cc (tree_matrix::rvalue): Check for breakpoint here. |
|
898 * pt-unop.cc (tree_prefix_expression::rvalue): Likewise. |
|
899 (tree_postfix_expression::rvalue): Likewise. |
|
900 * pt-loop.cc (tree_do_until_command::eval): Likewise. |
|
901 (DO_LOOP): Likewise. |
|
902 (tree_simple_for_command::eval): Likewise. |
|
903 (tree_complex_for_command::eval): Likewise. |
|
904 * pt-assign.cc (tree_simple_assignment::rvalue): Likewise. |
|
905 * pt-binop.cc (tree_binary_expression::rvalue): Likewise. |
|
906 (tree_boolean_expression::rvalue): Likewise. |
|
907 * pt-cell.cc (tree_cell::rvalue): Likewise. |
|
908 * pt-colon.cc (tree_colon_expression::rvalue): Likewise. |
|
909 * pt-except.cc (tree_try_catch_command::eval): Likewise. |
|
910 (tree_unwind_protect_command::eval): Likewise. |
|
911 * pt-id.cc (tree_identifier::rvalue): Likewise. |
|
912 (tree_identifier::lvalue): Likewise. |
|
913 * pt-indir.cc (tree_indirect_ref::rvalue): Likewise. |
|
914 * pt-jump.cc (tree_break_command::eval): Likewise. |
|
915 (tree_continue_command::eval): Likewise. |
|
916 (tree_return_command::eval): Likewise. |
|
917 |
3767
|
918 2001-01-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
919 |
|
920 * Map.h, Map.cc (CHMap<C>::operator = (const CHMap&)): New function. |
|
921 (Map<C>::operator = (const Map&)): Likewise. |
|
922 (Map<C> (const Map&)): Likewise. |
|
923 |
|
924 * OPERATORS/op-cm-cs.cc, OPERATORS/op-cm-s.cc, |
|
925 OPERATORS/op-m-cs.cc, OPERATORS/op-m-s.cc: |
|
926 Make ldiv operator work for row vector by scalar ops. |
|
927 |
|
928 * OPERATORS/op-cs-cm.cc, OPERATORS/op-cs-m.cc, |
|
929 OPERATORS/op-s-cm.cc, OPERATORS/op-s-m.cc: |
|
930 Make div operator work for scalar by column vector ops. |
|
931 |
3765
|
932 2001-01-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
933 |
|
934 * parse.y (safe_fclose): Discard comments at the end of a file. |
|
935 |
3764
|
936 2001-01-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
937 |
|
938 * error.cc (pr_where): Call pr_where_1 with two args, not one, to |
|
939 avoid processing format escapes that might appear in formatted code. |
|
940 |
3762
|
941 2001-01-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
942 |
|
943 * error.cc (vwarning): Write to output_buf, then send formatted |
|
944 message to diary and error streams. |
|
945 |
3760
|
946 2001-01-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
947 |
|
948 * ov-cx-mat.cc (octave_complex_matrix::try_narrowing_conversion): |
|
949 Handle empty matrix dimensions correctly. |
|
950 |
3756
|
951 2000-12-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
952 |
|
953 * pager.h (octave_pager_buf::diary_skip): New data member. |
|
954 (octave_pager_buf::octave_pager_buf): Initialize it. |
|
955 * pager.cc (octave_pager_buf::set_diary_skip): New function. |
|
956 (octave_pager_stream::set_diary_skip): New function. |
|
957 (octave_pager_buf::sync): Call flush_current_contents_to_diary |
|
958 instead of octave_diary.write. |
|
959 (octave_pager_buf::flush_current_contents_to_diary): Use |
|
960 diary_skip, reset when done. |
|
961 (open_diary_file): Call octave_stdout.set_diary_skip here. |
|
962 |
3747
|
963 2000-12-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
964 |
|
965 * DLD-FUNCTIONS/minmax.cc (EMPTY_RETURN_CHECK): New macro. |
|
966 (min, max): Use it. |
|
967 |
|
968 * DLD-FUNCTIONS/minmax.cc (MINMAX_BODY): New macro. If single arg |
|
969 is empty, return empty matrix result and empty matrix for index. |
|
970 (Fmin, Fmax): Use MINMAX_BODY, so we have consistent definition |
|
971 for min and max functions. |
|
972 |
|
973 2000-11-30 Joerg Specht <joerg.specht@ins.uni-stuttgart.de> |
|
974 |
|
975 * help.cc (display_help_text): Append new line at end of doc string. |
|
976 |
|
977 2000-11-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
978 |
|
979 * DLD-FUNCTIONS/lsode.cc (LSODE_ABORT1, LSODE_ABORT2): Omit `##' |
|
980 in macro definition since they are not needed to paste strings |
|
981 together and picky compilers choke on them. |
|
982 * DLD-FUNCTIONS/quad.cc (QUAD_ABORT1, QUAD_ABORT2): Likewise. |
|
983 * DLD-FUNCTIONS/fsolve.cc (FSOLVE_ABORT1, FSOLVE_ABORT2): Likewise. |
|
984 * DLD-FUNCTIONS/dassl.cc (DASSL_ABORT1, DASSL_ABORT2): Likewise. |
|
985 |
3741
|
986 2000-11-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
987 |
3744
|
988 * mkbuiltins (XDEFUNX_INTERNAL): New macro. |
3746
|
989 * mkgendoc (XDEFUNX_INTERNAL): Likewise. |
3744
|
990 * defun-int.h (DEFUNX_INTERNAL): Use it. |
|
991 |
3743
|
992 * defun.h (DEFUNX): New macro. |
|
993 * defun-int.h (DEFUNX_INTERNAL, DECLARE_FUNX): New macro. |
|
994 (DECLARE_FUN): Define in terms of DECLARE_FUNX. |
|
995 |
3742
|
996 * mkdefs: Read and print one line at a time, so we can force |
|
997 patterns to match only at the beginning of a line. |
|
998 |
3741
|
999 * defun-int.h (UNDERSCORIFY): Omit `##' in macro definition since |
|
1000 they are not needed to paste strings together and picky compilers |
|
1001 choke on them. |
|
1002 |
3738
|
1003 2000-11-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1004 |
|
1005 * load-save.cc (save_ascii_data_for_plotting): New function. |
|
1006 * pt-plot.cc (save_in_tmp_file): Use it instead of save_ascii_data. |
|
1007 |
|
1008 * load-save.cc (save_ascii_data): Warn if saving Inf or NaN values. |
|
1009 New arg, infnan_warned. Use it to warn just once per set. |
|
1010 Now static. |
|
1011 (do_save): New arg, infnan_warned. Pass to save_ascii_data. |
|
1012 (save_vars): Initialize infnan_warned here, pass to do_save. |
|
1013 |
3737
|
1014 2000-11-16 Paul Kienzle <pkienzle@kienzle.powernet.co.uk> |
|
1015 |
|
1016 * file-io.cc (Ffprintf): If no file id parameter, don't return |
|
1017 count of characters if nargout is 0 (for compatibility with |
|
1018 Matlab). |
|
1019 |
|
1020 2000-11-16 Ben Sapp <bsapp@lanl.gov> |
|
1021 |
|
1022 * DLD-FUNCTIONS/rand.cc (do_rand): Declare loop counter as |
|
1023 volatile int, not just volatile. |
|
1024 |
3731
|
1025 2000-10-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1026 |
|
1027 * load-save.cc (skip_comments): Allow % as comment character too. |
|
1028 (extract_keyword): Likewise. |
|
1029 |
|
1030 * Makefile.in (oct-gperf.h): Remove -a, -g, and -p flags for gperf. |
|
1031 |
3727
|
1032 2000-10-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1033 |
|
1034 * load-save.cc (do_load): Allow result to be returned instead of |
|
1035 inserting variables in the symbol table. Change patterned after |
|
1036 patch by Kian Ming Adam Chai <caijianming@yahoo.co.uk>. |
|
1037 |
3726
|
1038 2000-10-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1039 |
|
1040 * Makefile.in (ops.cc): Don't substitute BLAS_LIBS and LIBS here. |
|
1041 |
|
1042 * oct-conf.h.in (OCTAVE_CONF_SPECIAL_MATH_LIB): Delete. |
|
1043 (OCTAVE_CONF_BLAS_LIBS): Add. |
|
1044 * toplev.cc (octave_config_info): Likewise, add BLAS_LIBS and |
|
1045 remove SPECIAL_MATH_LIB from the struct. |
|
1046 |
|
1047 * parse.y (feval (const octave_value_list&, int)): Don't panic |
|
1048 while processing arg names if arg.length() and arg_names.length() |
|
1049 differ. |
|
1050 |
3724
|
1051 2000-10-12 Paul Kienzle <pkienzle@kienzle.powernet.co.uk> |
|
1052 |
|
1053 * ov-cell.h (octave_cell::is_cell): New function. |
|
1054 |
|
1055 * pt-select.cc (equal): New static function. |
|
1056 (tree_switch_case::label_matches): Use it to compare case label |
|
1057 against arg. Handle cell arrays as case labels. |
|
1058 |
3723
|
1059 2000-10-12 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1060 |
|
1061 Change patterned after patch by Cai Jianming |
|
1062 <caijianming@yahoo.co.uk> to support for DIM arg in 2.0.x sources. |
|
1063 |
|
1064 * data.cc (DATA_REDUCTION): New macro. Handle second DIM arg here. |
|
1065 (Fcumprod): Replace function body with DATA_REDUCTION. |
|
1066 (Fcumsum): Likewise. |
|
1067 (Fprod): Likewise. |
|
1068 (Fsum): Likewise. |
|
1069 (Fsumsq): Likewise. |
|
1070 |
3719
|
1071 2000-10-10 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1072 |
|
1073 * error.cc (pr_where_2): New function. |
|
1074 (pr_where_1): Use it instead of error_1 to avoid setting error_state. |
|
1075 |
|
1076 2000-10-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1077 |
|
1078 * xdiv.cc (xdiv): Warn if execution falls through to lssolve. |
|
1079 |
3716
|
1080 2000-09-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1081 |
|
1082 * utils.cc (FERRNO): New function (currently commented out). |
|
1083 |
|
1084 * c-file-ptr-stream.cc (c_file_ptr_buf::close): Call flush here. |
|
1085 (c_file_ptr_buf::~c_file_ptr_buf): Not here. |
|
1086 * c-file-ptr-stream.h (c_fie_ptr_buf::close_fcn): New typedef. |
|
1087 (c_file_ptr_buf::cf): New data member. Add default constructor arg. |
|
1088 (class c_file_ptr_buf): Derive from filebuf, not streambuf. |
|
1089 (i_c_file_ptr_stream, o_c_file_ptr_stream): Handle close function here. |
|
1090 * oct-procstrm.cc (octave_iprocstream, octave_oprocstream): Likewise. |
|
1091 (octave_iprocstream::do_close, octave_oprocstream::do_close): Delete. |
|
1092 * oct-stdstrm.cc (octave_base_stdiostream::~octave_base_stdiostream): |
|
1093 Don't do anything. |
|
1094 (octave_istdiostream::create): Handle close function here. |
|
1095 (octave_istdiostream::octave_istdiostream): Likewise. |
|
1096 (octave_ostdiostream::create): Likewise. |
|
1097 (octave_ostdiostream::octave_ostdiostream): Likewise. |
|
1098 (class octave_base_stdiostream): Don't cache FILE pointer here. |
|
1099 |
3715
|
1100 2000-09-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1101 |
|
1102 * syscalls.cc (Ffcntl): Don't assume that the file id passed in is |
|
1103 the same as the underlying system file id. |
|
1104 |
3712
|
1105 2000-08-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1106 |
|
1107 * parse.y: Use octave_time, not time. |
|
1108 |
3711
|
1109 2000-08-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1110 |
|
1111 * oct-stream.cc (printf_value_cache::double_value): Also set |
|
1112 curr_stat to conversion_error if there are no values at all. |
|
1113 |
3710
|
1114 2000-08-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1115 |
|
1116 * dirfns.cc (Flink, Fsymlink, Freadlink): New functions. |
|
1117 |
3709
|
1118 2000-08-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1119 |
|
1120 * load-save.cc (Vsave_header_format_string): New variable. |
|
1121 (symbols_of_load_save): DEFVAR it. |
|
1122 (save_header_format, default_save_header_format): New functions. |
|
1123 (write_header): Use Vsave_header_format_string here. |
|
1124 |
3707
|
1125 2000-07-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1126 |
3708
|
1127 * pt-pr-code.h (tree_print_code::curr_print_indent_level, |
|
1128 (tree_print_code::beginning_of_line): No longer static. |
|
1129 (tree_print_code::tree_print_code): Initialize them here. |
|
1130 * pt-pr-code.cc: Not here. |
|
1131 |
|
1132 * pt-stmt.cc (tree_statement::eval): Set curr_statement here. |
|
1133 (tree_statement_list::eval): Not here. |
|
1134 |
3707
|
1135 Debug-on-error stuff based on a patch submitted by Paul Kienzle |
|
1136 <pkienzle@kienzle.powernet.co.uk> for 2.0.x. |
|
1137 |
|
1138 * error.cc (Vdebug_on_warning): New static flag variable. |
|
1139 (debug_on_warning): New function. |
|
1140 (symbols_of_warning): DEFVAR debug_on_warning. |
|
1141 (warning): Handle debug_on_warning here. |
|
1142 |
|
1143 * input.cc (do_keyboard): New function. |
|
1144 (Fkeyboard): Use it to do the real work. |
|
1145 * pt-stmt.cc (curr_statement): New static variable. |
|
1146 (tree_statement::eval): Save and restore it here. |
|
1147 * error.cc (Vdebug_on_error): New static flag variable. |
|
1148 (debug_on_error): New function. |
|
1149 (symbols_of_error): DEFVAR debug_on_error. |
|
1150 (pr_where, pr_where_1): New functions. |
|
1151 (error): Handle debug_on_error here. |
|
1152 |
3705
|
1153 2000-07-20 Joao Cardoso <jcardoso@inescporto.pt> |
|
1154 |
|
1155 * Makefile.in (octave): Link with $(LD_CXX) instead of $(CXX) |
|
1156 |
3704
|
1157 2000-07-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1158 |
|
1159 * oct-stream.cc (octave_base_stream::oscanf): Advance to next |
|
1160 format element before attempting to pick up any trailing stuff. |
|
1161 |
3697
|
1162 2000-07-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1163 |
3698
|
1164 * lex.l (next_token_is_bin_op): Don't recognize `..' as a binary op. |
|
1165 |
3697
|
1166 * load-save.cc (get_file_format): Call read_mat5_binary_file_header |
|
1167 with third arg true instead of false, so we don't barf if the file |
|
1168 is not a matlab v5 binary file. |
|
1169 |
3695
|
1170 2000-07-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1171 |
|
1172 * Makefile.in (octave): Link to ../libcruft/blas-xtra/xerbla.o here. |
|
1173 |
|
1174 * octave.cc (main): Remove kluge to attempt linking our version of |
|
1175 xerbla. |
|
1176 |
|
1177 2000-07-07 Steven G. Johnson <stevenj@alum.mit.edu> |
|
1178 |
|
1179 * load-save.cc (have_h5giterate_bug): New file-scope variable. |
|
1180 (hdf5_read_next_data): Only increment current_item if |
|
1181 have_h5giterate_bug is true. |
|
1182 (read_hdf5_data): Set have_h5giterate_bug here. |
|
1183 Only increment hs.current_item if have_h5giterate_bug is true. |
|
1184 |
3693
|
1185 2000-07-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1186 |
|
1187 * c-file-ptr-stream.cc (c_file_ptr_buf::close): |
|
1188 Return -1 if file pointer is NULL. |
|
1189 Set file pointer to 0 after closing. |
|
1190 (c_file_ptr_buf::~c_file_ptr_buf): Call close after flushing. |
|
1191 |
3694
|
1192 2000-07-05 Steven G. Johnson <stevenj@alum.mit.edu> |
3692
|
1193 |
|
1194 * Makefile.in (BLAS_LIBS): Substitute here. |
|
1195 (octave): Use $(BLAS_LIBS) in the final link command. |
|
1196 |
3694
|
1197 2000-06-30 Steven G. Johnson <stevenj@alum.mit.edu> |
3690
|
1198 |
|
1199 * Makefile.in (octave): Link $(FLIBS) last. |
|
1200 * octave.cc (main): Force our own xerbla to be linked instead of |
|
1201 some system version. |
|
1202 |
3688
|
1203 2000-06-29 James R. Van Zandt <jrv@vanzandt.mv.com> |
|
1204 |
3689
|
1205 * load-save.cc (load_save_format): New value, LS_MAT5_BINARY. |
3688
|
1206 (arrayclasstype, mat5_data_type): New enums. |
|
1207 (read_mat5_binary_data): New function. |
|
1208 (read_mat5_tag): New function. |
|
1209 (read_mat5_binary_element): New function. |
|
1210 (read_mat5_binary_file_header): New function. |
|
1211 (get_file_format): Check for mat5 binary format too. |
|
1212 (do_load): Handle mat5 binary format. |
|
1213 (write_mat5_tag): New function. |
|
1214 (write_mat5_array): New function. |
|
1215 (class mat5_callback): New class. |
|
1216 (save_mat5_binary_element): New functnon. |
|
1217 (do_save): Handle mat5 binary format. |
|
1218 (write_header): Handle LS_MAT5_BINARY case too. |
|
1219 (save_user_variables): Handle LS_MAT5_BINARY case too. |
|
1220 (Fsave): Handle LS_MAT5_BINARY case too. |
|
1221 (Fload): Handle LS_MAT5_BINARY case too. |
|
1222 |
3694
|
1223 2000-06-29 Steven G. Johnson <stevenj@alum.mit.edu> |
3687
|
1224 |
|
1225 All of the following changes are protected by #ifdef HAVE_HDF5. |
|
1226 |
|
1227 * load-save.cc (load_save_format): New value, LS_HDF5. |
|
1228 (make_valid_identifier): New function. |
|
1229 (class hdf5_fstreambase, class hdf5_ifstream, class hdf5_ofstream): |
|
1230 New classes for reading and writing hdf5 data. |
|
1231 (hdf5_types_compatible): New function. |
|
1232 (hdf5_import_multidim): New function. |
|
1233 (hdf5_check_attr): New function. |
|
1234 (hdf5_read_next_data): New function. |
|
1235 (hdf5_make_complex_type): New function. |
|
1236 (hdf5_make_range_type): New function. |
|
1237 (read_hdf5_data): New function. |
|
1238 (get_file_format): Handle HDF5 format. |
|
1239 (do_load): Handle LS_HDF5 case. |
|
1240 (Fload): Handle HDF5 format. |
|
1241 (hdf5_add_attr): New function. |
|
1242 (save_type_to_hdf5): New function. |
|
1243 (add_hdf5_data): New function. |
|
1244 (do_save): Handle HDF5 format. |
|
1245 (get_default_save_format): Handle LS_HDF5 case. |
|
1246 (write_header): Handle LS_HDF5 case. |
|
1247 (save_user_variables): Handle HDF5 format. |
|
1248 (Fsave): Handle HDF5 format. |
|
1249 |
3686
|
1250 2000-06-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1251 |
|
1252 * help.cc (display_help_text): If writing to filter fails, send |
|
1253 unformatted text to output stream. |
|
1254 |
3683
|
1255 2000-06-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1256 |
3685
|
1257 * OPERATORS/op-bm-bm.cc (eq): Define using mx_el_eq, not operator ==. |
|
1258 (ne): Likewise, use mx_el_ne, not operator !=. |
|
1259 |
3683
|
1260 * pr-output.cc (Fdisp): Delete. |
|
1261 |
3681
|
1262 2000-06-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1263 |
3682
|
1264 * pr-output.cc (float_format::float_format): Set default values |
|
1265 for width and precision to -1. |
|
1266 (operator << (ostream&, pr_formatted_float&): Set width and |
|
1267 precision if values are >= 0. |
|
1268 (set_real_format, set_real_matrix_format, set_range_format, |
|
1269 set_complex_format, set_complex_matrix_format): If we have all |
|
1270 integers, infinities, or nans, set precision equal to field width. |
|
1271 |
|
1272 * load-save.cc (read_ascii_data): Allow empty strings and string |
|
1273 vectors to be restored. |
|
1274 |
3681
|
1275 * variables.cc (var_matches_any_pattern): New function. |
|
1276 (Fclear): Use it to make exclusive clear work correctly. |
|
1277 |
3676
|
1278 2000-06-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1279 |
3678
|
1280 * ov-range.h (octave_range::is_numeric_type): New function. |
|
1281 |
3676
|
1282 * sysdep.cc (Fkbhit): Also ask for input if forced_interactive. |
|
1283 |
3675
|
1284 2000-06-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1285 |
|
1286 * Makefile.in (oct-gperf.h): Use $(GPERF) instead of gperf. |
|
1287 |
3671
|
1288 2000-05-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1289 |
|
1290 * DLD-FUNCTIONS/qz.cc (Fqz): When computing finite generalized |
|
1291 eigenvalues, don't write past the end of the array. |
|
1292 |
3665
|
1293 2000-05-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1294 |
|
1295 * ov-base-nd-array.h, ov-base-nd-array.cc, ov-re-nd-array.h, |
|
1296 ov-re-nd-array.h: New files. |
|
1297 * Makefile.in: Add them to the appropriate lists. |
|
1298 |
|
1299 * pt-stmt.h, pt-stmt.cc (class tree_statement): |
|
1300 Store comments associated with this parse tree element. |
|
1301 * pt-select.h, pt-select.cc (class tree_if_clause, |
|
1302 class tree_if_command, class tree_switch_case |
|
1303 class tree_switch_command): Likewise. |
|
1304 * pt-loop.h, pt-loop.cc (class tree_while_command, |
|
1305 class tree_do_until_command, class tree_simple_for_command, |
|
1306 class tree_complex_for_command): Likewise. |
|
1307 * pt-except.h, pt-except.cc (class tree_try_catch_command, |
|
1308 class tree_unwind_protect_command): Likewise. |
|
1309 * ov-usr-fcn.h, ov-usr-fcn.cc (class octave_user_function): Likewise. |
|
1310 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::print_comment_elt, |
|
1311 tree_print_code::print_comment_list, |
|
1312 tree_print_code::print_indented_comment): New functions. |
|
1313 (tree_print_code::visit_simple_for_command, |
|
1314 tree_print_code::visit_complex_for_command, |
|
1315 tree_print_code::visit_octave_user_function_header, |
|
1316 tree_print_code::visit_octave_user_function_trailer, |
|
1317 tree_print_code::visit_if_command, tree_print_code::visit_statement, |
|
1318 tree_print_code::visit_switch_case, |
|
1319 tree_print_code::visit_switch_command, |
|
1320 tree_print_code::visit_try_catch_command, |
|
1321 tree_print_code::visit_unwind_protect_command |
|
1322 tree_print_code::visit_while_command, |
|
1323 tree_print_code::visit_do_until_command): Handle comments. |
|
1324 * lex.l, parse.y: Handle comments in parse trees. |
|
1325 * comment-list.h, comment-list.cc: New files. |
|
1326 * Makefile.in: Add them to the appropriate lists. |
|
1327 |
3661
|
1328 2000-04-23 etienne grossmann <etienne@anonimo.isr.ist.utl.pt> |
|
1329 |
|
1330 * pt-mat.cc (tm_row_const::tm_row_const_rep::eval_error): |
|
1331 New args x and y, for dimension mismatch info. |
|
1332 Change callers where appropriate. |
|
1333 (tm_const::init): Report mismatched column dimensions. |
|
1334 |
3658
|
1335 2000-04-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1336 |
|
1337 * sysdep.cc (kbhit): Also clear cin if at EOF. |
|
1338 |
3657
|
1339 2000-04-11 Joao Cardoso <jcardoso@inescn.pt> |
|
1340 |
|
1341 * sysdep.cc (kbhit): New arg, wait. |
|
1342 (raw_mode): Ditto. |
|
1343 (Fkbhit): If given an arg, call kbhit with wait = false. |
|
1344 |
|
1345 * DLD-FUNCTIONS/minmax.cc (Fmax, Fmin): Fix doc string. |
|
1346 |
3656
|
1347 2000-04-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1348 |
|
1349 * dynamic-ld.cc (octave_dynamic_loader::do_load): Undo previous change. |
|
1350 |
3655
|
1351 2000-04-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1352 |
|
1353 * dynamic-ld.cc (octave_dynamic_loader::do_load): Also fail with |
|
1354 error message if we don't find the mangled function name in the |
|
1355 file. |
|
1356 |
3652
|
1357 2000-03-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1358 |
3653
|
1359 * oct-stream.cc (printf_value_cache::string_value): Return string |
|
1360 matrices in a Matlab-compatible way. |
|
1361 (printf_value_cache): Redesign the way list_exhausted works. |
|
1362 |
3652
|
1363 * oct-fstrm.cc (octave_fstream::do_close): New function. |
|
1364 * oct-stdstrm.cc (octave_istdiostream::do_close): Ditto. |
|
1365 (octave_ostdiostream::do_close): Ditto. |
|
1366 * c-file-ptr-stream.cc (c_file_ptr_buf::close): Ditto. |
|
1367 (i_c_file_ptr_stream::close): Ditto. |
|
1368 (o_c_file_ptr_stream::close): Ditto. |
|
1369 * oct-prcstrm.cc (octave_iprocstream::do_close): Ditto. |
|
1370 (octave_oprocstream::do_close): Ditto. |
|
1371 (octave_iprocstram::~octave_iprocstram): Call do_close here. |
|
1372 (octave_iprocstram::~octave_oprocstram): Likewise. |
|
1373 |
|
1374 * oct-stream.h (octave_base_stream::do_close): New virtual function. |
|
1375 (octave_base_stream::close): If stream is open, call do_close. |
|
1376 |
|
1377 * c-file-ptr-stream.cc (c_file_ptr_buf::flush): New function. |
|
1378 (c_file_ptr_buf::~c_file_ptr_buf): Use it. |
|
1379 (c_file_ptr_buf::overflow): Ditto. |
|
1380 (c_file_ptr_buf::sync): Ditto. |
|
1381 |
3649
|
1382 2000-03-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1383 |
|
1384 * oct-procbuf.cc (octave_procbuf::open): Make output streams line |
|
1385 buffered. |
|
1386 |
3640
|
1387 2000-03-24 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1388 |
3644
|
1389 * sighandlers.cc (my_friendly_exit): Prefix failure messages with |
|
1390 panic instead of error. |
|
1391 |
3642
|
1392 * c-file-ptr-stream.cc (c_file_ptr_buf::~c_file_ptr_buf): |
|
1393 Avoid dereferencing NULL pointer. |
|
1394 |
3640
|
1395 * oct-stream.cc (printf_format_list::add_elt_to_list, |
|
1396 printf_format_list::process_conversion, |
|
1397 printf_format_list::finish_conversion): New args, flags, fw, and prec. |
|
1398 (printf_format_list::printf_format_list): Save more complete info. |
|
1399 (printf_format_list::printme): Print flags, fw, and prec. |
|
1400 (octave_base_stream::printf): Simplify. |
|
1401 (do_printf_conv): Delete have_arg arg, since it is always true now. |
|
1402 (octave_base_stream::do_printf): Handle case of no args and % |
|
1403 directly instead of using do_printf_conv. |
|
1404 (printf_value_cache::exhausted): Rename from no_more_values. |
|
1405 (DO_PCT_CONVERSION): New macro |
|
1406 (octave_base_streain::do_scanf, octave_base_streain::do_oscanf): |
|
1407 Use it. |
|
1408 (scanf_format_list::finish_conversion): `%' counts as a conversion too. |
|
1409 Also don't forget to set type for it. |
|
1410 (OCTAVE_SCAN_0): Delete. |
|
1411 (OCTAVE_SCAN): Rename from OCTAVE_SCAN_1. |
|
1412 (octave_base_stream::scanf, octave_base_stream::oscanf): Don't |
|
1413 special-case number of conversions here. |
|
1414 (octave_base_stream::oscanf, octave_base_stream::do_oscanf): Only |
|
1415 cycle through fmt elements if the number of conversions is greater |
|
1416 than 0. |
|
1417 |
|
1418 * oct-stream.h (scanf_format_list::next): New arg, `cycle'. |
|
1419 (printf_format_list::next): New arg, `cycle'. |
|
1420 (printf_format_list::last_elt_p): New function. |
|
1421 (printf_format_elt): New fields fw, prec, and flags. |
|
1422 Define copy constructor and assignment operator. |
|
1423 (scanf_format_elt): Define copy constructor and assignment operator. |
|
1424 |
3627
|
1425 2000-03-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1426 |
3639
|
1427 * oct-stream.cc (OCTAVE_SCAN_0, OCTAVE_SCAN_1): New macros. |
|
1428 (do_scanf_conv, BEGIN_S_CONVERSION, BEGIN_CHAR_CLASS_CONVERSION, |
|
1429 do_scanf, scanf, do_oscanf, do_oscanf, oscanf): Use them instead |
|
1430 of calling istream::scan directly. |
|
1431 (octave_scan): New function. |
|
1432 (do_scanf_conv): Second arg is now scanf_format_elt instead of char*. |
|
1433 Change all callers. |
|
1434 |
3631
|
1435 * oct-procbuf.h, oct-procbuf.cc (octave_procbuf): |
|
1436 Derive from c_file_ptr_buf instead of filebuf. |
|
1437 |
3627
|
1438 * oct-stream.cc (octave_base_stream::printf): Use octave_format |
|
1439 instead of ostream::form. Return number of characters written. |
|
1440 |
3618
|
1441 2000-03-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1442 |
3620
|
1443 * oct-stream.cc (do_printf_conv): Use octave_format instead of |
|
1444 ostream::form. Return number of characters written. |
|
1445 (octave_base_stream::do_printf): Return number of characters written. |
|
1446 |
|
1447 * error.cc (verror, vwarning): Use octave_format instead of |
|
1448 ostream::vform. |
|
1449 |
|
1450 * utils.cc (octave_format, octave_vformat): New functions. |
|
1451 * cutils.c (octave_snprintf, octave_vsnprintf): New functions. |
|
1452 |
3618
|
1453 * oct-lvalue.h (dummy_val): New static variable. |
|
1454 (octave_lvalue::octave_lvalue): Use it to initialize val. |
|
1455 |
|
1456 * variables.cc (is_valid_function): Look in the global symbol |
|
1457 table for functions. |
|
1458 |
3615
|
1459 2000-03-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1460 |
3770
|
1461 * Makefile.in (LIBRARIES): Conditionally define. |
3615
|
1462 (libraries): Depend on $(LIBRARIES). |
|
1463 (octave): Depend on $(LIBRARIES), not libraries. Also depend on |
|
1464 stamp-prereq and stamp-oct-links. |
|
1465 (all): Don't depend on stamp-prereq or stamp-oct-links. |
|
1466 (liboctinterp.$(LIBEXT), liboctinterp.$(SHELXT)): Delete target |
|
1467 before rebuilding. |
|
1468 |
|
1469 2000-03-21 Ben Sapp <bsapp@nua.lampf.lanl.gov>: |
|
1470 |
3770
|
1471 * Makefile.in (libraries): Depend only on library targets, not |
3615
|
1472 archive members. |
|
1473 |
3611
|
1474 2000-03-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1475 |
3613
|
1476 * Makefile.in (objects): New target |
|
1477 |
3611
|
1478 * c_file_ptr_stream.h, c_file_ptr_stream.cc: New files. |
|
1479 * oct-stdstrm.h, oct-stdstrm.cc, oct-prcstrm.cc: |
|
1480 Use c_file_ptr_buf, i_c_file_ptr_stream, and o_c_fie_ptr_stream |
|
1481 instead of stdiobuf, istdiostream, and ostdiostream. |
|
1482 |
|
1483 * pr-output.cc (set_real_format, set_real_matrix_format, |
|
1484 set_complex_format, set_complex_matrix_format, set_range_format): |
|
1485 Do the right thing again for int, NaN, and Inf values. |
|
1486 |
3608
|
1487 2000-03-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1488 |
|
1489 * pr-output.cc (pr_plus_format): Rename from do_plus_format. |
|
1490 Change all callers. |
|
1491 (pr_float, pr_complex): New arg, scale. Handle scaling here. |
|
1492 (float_format): New class for managing details of formatting |
|
1493 floats. Use it instead of character string formats and the |
|
1494 nonstandard form() function from the GNU iostream library. |
|
1495 |
3601
|
1496 2000-02-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1497 |
|
1498 * Makefile.in (clean): Also delete gendoc. |
|
1499 |
3598
|
1500 2000-02-18 James R. Van Zandt <jrv@vanzandt.mv.com> |
|
1501 |
|
1502 * load-save.cc (Vcrash_dumps_octave_core): Fix comment for this var. |
|
1503 |
|
1504 2000-02-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1505 |
|
1506 * lex.l (handle_number): Don't transorm `[Dd]' to `e' if reading |
|
1507 hex. |
|
1508 |
3597
|
1509 2000-02-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1510 |
|
1511 * Makefile.in (install-inc): Install files in |
|
1512 $(octincludedir)/octave. |
|
1513 (uninstall): Remove them from the correct directory too. |
|
1514 |
|
1515 * defaults.h, defaults.cc (Vlocal_ver_arch_lib_dir): New variable. |
|
1516 * defaults.cc (set_default_local_ver_arch_lib_dir): New function. |
|
1517 (install_defaults): Call it. |
|
1518 (exec_path): Prepend the versioned form of the local arch lib |
|
1519 directory to the standard path. |
|
1520 * defaults.h.in (OCTAVE_LOCALVERARCHLIBDIR, |
|
1521 OCTAVE_LOCALVERFCNFILEDIR, OCTAVE_LOCALVEROCTFILEDIR): |
|
1522 Substitute these too. |
|
1523 * toplev.cc (Foctave_config_info): Add them to the struct. |
|
1524 |
3591
|
1525 2000-02-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1526 |
3597
|
1527 * toplev.cc (Foctave_config_info): Add MKOCTFILE_INCFLAGS to the |
|
1528 struct. |
3591
|
1529 * oct-conf.h.in (OCTAVE_CONF_MKOCTFILE_INCFLAGS): Define. |
|
1530 |
3584
|
1531 2000-02-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1532 |
3587
|
1533 * DLD-FUNCTIONS/balance.cc (Fbalance): Explicitly request |
|
1534 conversion from Matrix to ComplexMatrix. |
|
1535 * DLD-FUNCTIONS/qz.cc (Fqz): Likewise. |
|
1536 |
|
1537 * ov-re-mat.h (octave_matrix::complex_matrix_value): Explicitly |
|
1538 request conversion from Matrix type. |
|
1539 |
|
1540 * ov-ch-mat.h (octave_char_matrix::matrix_value): Explicitly |
|
1541 request conversion from charMatrix type. |
|
1542 (octave_char_matrix::complex_matrix_value): Likewise. |
|
1543 * ov-bool-mat.h (octave_bool_matrix::matrix_value): Likewise. |
|
1544 (octave_bool_matrix::complex_matrix_value): Likewise. |
|
1545 |
|
1546 * ov-range.h (octave_range::complex_matrix_value): Explicitly |
|
1547 request conversion from Matrix type. |
|
1548 |
|
1549 * ov-cx-mat.h, ov-re-mat.h: Explicitly request conversions from |
|
1550 diagonal matrix types in constructors. |
|
1551 |
3586
|
1552 * mappers.cc (ximag, xreal): Return double, not Complex. |
|
1553 |
3585
|
1554 * error.cc (panic): Turn off buffering of error messages. |
|
1555 Don't call flush_octave_stdout here, verror will do it for us. |
|
1556 (verror): Don't call flush_octave_stdout if buffering error messages. |
|
1557 |
3584
|
1558 * pt-except.cc (tree_try_catch_command::eval): Only restore |
|
1559 buffer_error_message value (by running the unwind_protect element |
|
1560 for it) if it has been saved. |
|
1561 |
|
1562 * help.cc (Ftype): Return value if nargout is NOT equal to zero. |
|
1563 Delete unnecessary unwind_protect::begin_frame(). |
|
1564 |
|
1565 * toplev.cc (octave_config_info): Stuff lots of new config info in |
|
1566 the struct. |
|
1567 |
|
1568 * oct-conf.h.in: Delete TARGET_HOST_TYPE. |
|
1569 |
3574
|
1570 2000-02-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1571 |
3579
|
1572 * siglist.c: Include <signal.h>. |
|
1573 |
3575
|
1574 * lex.l (is_plot_keyword): Add minimum match length in call to |
|
1575 almost_match. |
|
1576 |
3574
|
1577 * Makefile.in (%.df : %.cc): Don't pass -c to compiler. |
|
1578 |
3564
|
1579 2000-02-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1580 |
3572
|
1581 * ov-base-mat.cc: Include pr-output.h here. |
|
1582 |
3571
|
1583 * DLD-FUNCTIONS/rand.cc (curr_rand_dist): Return const char * |
|
1584 instead of char *. |
|
1585 |
3570
|
1586 * oct-fstrm.cc (octave_fstream::seek, octave_fstream::tell): |
|
1587 Call pubseekoff instead of seekoff. |
|
1588 |
3568
|
1589 * DLD-FUNCTIONS/dassl.cc (print_dassl_option_list): Use stream |
|
1590 manipulators instead of GNU iostream-specific form function. |
|
1591 * DLD-FUNCTIONS/fsolve.cc (print_fsolve_option_list): Ditto. |
|
1592 * DLD-FUNCTIONS/lsode.cc (print_lsode_option_list): Ditto. |
|
1593 * DLD-FUNCTIONS/quad.cc (print_quad_option_list): Ditto. |
|
1594 * pr-output.cc (pr_scale_header): Ditto. |
|
1595 |
3566
|
1596 * sighandlers.h: Include signal.h here. |
|
1597 * sighandlers.cc: Not here. |
|
1598 |
|
1599 * utils.cc: Include setjmp.h, not csetjmp. |
|
1600 * toplev.cc: Ditto. |
|
1601 |
|
1602 * sighandlers.cc: Include signal.h, not csignal. |
|
1603 |
|
1604 * pt-plot.h: Don't include csignal. |
|
1605 * toplev.cc: Ditto. |
|
1606 * oct-hist.cc: Ditto. |
|
1607 * octave.cc: Ditto. |
|
1608 * pager.cc: Ditto. |
|
1609 * input.cc: Ditto. |
|
1610 * help.cc: Ditto. |
|
1611 |
3565
|
1612 * pt-plot.cc (send_to_plot_stream): Use operator== and substr |
|
1613 method to do limited-length string comparison. |
|
1614 * input.cc (generate_completion): Likewise. |
|
1615 * ov-dld-fcn.cc (octave_dld_function::octave_dld_function): Likewise. |
|
1616 * ov-usr-fcn.cc (octave_user_function::mark_as_system_fcn_file): |
|
1617 Likewise. |
|
1618 |
|
1619 * utils.cc (check_preference): Expect exact string matches. |
|
1620 * variables.cc (ignore_function_time_stamp): Likewise. |
|
1621 * lex.l (whitespace_in_literal_matrix): Likewise. |
|
1622 |
3564
|
1623 * mappers.cc (xconj, ximag, xreal): New functions. Use them in |
|
1624 DEFUN_MAPPER calls. |
|
1625 |
|
1626 * defun-int.h (DEFUN_MAPPER_INTERNAL): Cast function pointer args |
|
1627 to octave_mapper constructor. |
|
1628 |
3523
|
1629 2000-02-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1630 |
3564
|
1631 * procstream.cc (procstreambase::procstreambase, |
|
1632 procstreambase::open, procstreambase::close): |
|
1633 Call std::ios::setstate, not set. |
|
1634 |
3561
|
1635 * lex.l (plot_axes_token): Declare plot_axes as const char *. |
|
1636 Declare tmp const char **. |
|
1637 |
3560
|
1638 * oct-procbuf.h: Include fstream, not streambuf.h. |
|
1639 |
3570
|
1640 * load-save.cc (Fsave): Call pubseekoff instead of seekoff. |
3558
|
1641 * oct-strstrm.cc (octave_base_strstream::tell): Likewise. |
|
1642 (octave_base_strstream::seek): Likewise. |
|
1643 |
3553
|
1644 * oct-stream.cc (octave_base_stream::read): Rename count to char_count. |
|
1645 (octave_base_stream::do_gets): Likewise. |
|
1646 |
|
1647 * octave-stream.cc (octave_base_stream::write): Rename flt_fmt to ffmt. |
|
1648 (octave_base_stream::read): Likewise. |
|
1649 |
3552
|
1650 * TEMPLATE-INST/SLStack-sym.cc: Delete meaningless `extern |
|
1651 template' declarations. |
|
1652 * TEMPLATE-INST/Array-tc.cc: Ditto. |
|
1653 |
|
1654 * TEMPLATE-INST/Map-fnc.cc: Don't try to instantiate goodCHptr or |
|
1655 CHptr_to_index here. |
|
1656 * TEMPLATE-INST/Map-tc.cc: Likewise. |
3554
|
1657 * Map.h (CHNode::goodCHptr, CHNode::CHptr_to_index): Now member |
|
1658 functions. Change all callers. |
3552
|
1659 |
|
1660 * load-save.cc (read_binary_file_header): Declare magic_len `const'. |
|
1661 |
|
1662 * token.h (token::token (const token&), token::operator=): |
|
1663 Delete unnecessary definitions. |
|
1664 |
|
1665 * oct-stream.cc (octave_stream::mode_as_string): Use |
|
1666 std::ios::binary, not std::ios::bin. |
|
1667 * load-save.cc (Fsave, Fload, save_user_variables): Likewise. |
|
1668 |
3550
|
1669 * DLD-FUNCTIONS/qz.cc (Fqz): Use Array<int> class instead of |
|
1670 trying to create automatic int array with variable size. |
|
1671 |
3548
|
1672 * variables.cc (F__dump_symbol_info__): Fix continuation char. |
3552
|
1673 * mappers.cc (Ftoupper): Likewise. |
3548
|
1674 * DLD-FUNCTIONS/besselj.cc (Fairy, Fbesselj): Likewise. |
|
1675 * DLD-FUNCTIONS/chol.cc (Fchol): Likewise. |
|
1676 * DLD-FUNCTIONS/det.cc (Fdet): Likewise. |
|
1677 * DLD-FUNCTIONS/eig.cc (Feig): Likewise. |
|
1678 * DLD-FUNCTIONS/gammainc.cc (gammainc): Likewise. |
|
1679 * DLD-FUNCTIONS/givens.cc (givens): Likewise. |
|
1680 * DLD-FUNCTIONS/hess.cc (hess): Likewise. |
|
1681 * DLD-FUNCTIONS/inv.cc (inv): Likewise. |
|
1682 * DLD-FUNCTIONS/log.cc (logm): Likewise. |
|
1683 * DLD-FUNCTIONS/lu.cc (lu): Likewise. |
|
1684 * DLD-FUNCTIONS/qr.cc (qr): Likewise. |
|
1685 * DLD-FUNCTIONS/schur.cc (schur): Likewise. |
|
1686 * DLD-FUNCTIONS/balance.cc (balance): Likewise. |
|
1687 * DLD-FUNCTIONS/svd.cc (svd): Likewise. |
|
1688 * DLD-FUNCTIONS/syl.cc (syl): Likewise. |
|
1689 * DLD-FUNCTIONS/expm.cc (Fexpm): Likewise. |
|
1690 |
|
1691 * token.h (token::token_type, token::end_tok_type, |
|
1692 token::plot_tok_type): Delete extraneous comma from enum decls. |
3552
|
1693 * load-save.cc (load_save_format): Likewise. |
3548
|
1694 |
3546
|
1695 * pt-idx.cc (tree_index_expression::tree_index_expression): |
|
1696 Delete default arg values. |
3552
|
1697 * oct-fstrm.cc (octave_fstream::octave_fstream): Likewise. |
|
1698 * oct-stream.cc (octave_stream::octave_stream): Likewise. |
3546
|
1699 |
|
1700 * siglist.h, siglist.c: New files. |
|
1701 * Makefile.in: Add them to the appropriate lists. |
|
1702 * siglist.c (sys_siglist): Move definition here from sighandlers.cc. |
|
1703 * siglist.h (sys_siglist): Move declaration here from sighandlers.h. |
|
1704 |
3545
|
1705 * ov.h, ov-bool.h, ov-bool-mat.h (bool_matrix_value): |
|
1706 Delete unnecessary arg. |
|
1707 |
3544
|
1708 * ov.h (octave_value::do_multi_index_op): Rename from do_index_op. |
|
1709 |
|
1710 * ov-fcn.h (octave_function::is_system_fcn_file): Now const. |
|
1711 |
3529
|
1712 * Map.cc (index_to_CHptr): Now a macro. |
3530
|
1713 (CHMap<C>::hash): Now a member function. |
3529
|
1714 |
3528
|
1715 * defun-int.h (UNDERSCORIFY): New macro. |
|
1716 (DEFCONST_INTERNAL, DEFCONSTX_INTERNAL): Use it. |
|
1717 |
3526
|
1718 * data.cc (Fis_list): Fix continuation char. |
3532
|
1719 * defaults.cc (IMAGEPATH): Likewise. |
3526
|
1720 |
|
1721 * Map.cc (CHptr_to_index, goodCHptr): Delete static decl. |
|
1722 |
3525
|
1723 * ov.h (unary_op, binary_op, assign_op): Prepend `op_' to elts. |
|
1724 Change all usses |
|
1725 |
3523
|
1726 * All source files: Sprinkle with std:: qualifier as needed. |
|
1727 |
3503
|
1728 2000-01-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1729 |
|
1730 * sighandlers.cc (install_signal_handlers): Add std:: qualifier |
|
1731 for set_net_handler. |
|
1732 |
|
1733 * All source files: Include iostream, fstream, strstream, |
|
1734 etc. as needed instead of using forward declarations for these |
|
1735 classes. |
|
1736 |
3498
|
1737 2000-01-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1738 |
|
1739 * input.cc (input_event_hook, Finput_event_hook): New functions. |
|
1740 (hook_fcn, user_data): New static variables. |
|
1741 |
3489
|
1742 2000-01-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1743 |
3491
|
1744 * pt-except.cc (do_catch_code): Don't do anything special for |
|
1745 tree_return_command::returning, or tree_break_command::breaking. |
|
1746 |
|
1747 * error.cc (vwarning): New function. |
|
1748 (warning): Use it instead of calling verror. |
|
1749 |
|
1750 * oct-stream.cc (octave_base_stream::oscanf): |
|
1751 Result is now always nconv+1 elements. Return count of successful |
|
1752 conversions in last element. |
|
1753 * file-io.cc (Ffscanf, Fsscanf, Fscanf): Fix doc string. |
|
1754 |
3490
|
1755 * pt-except.cc (do_catch_code): Unwind-protect buffer_error_messages. |
|
1756 Be sure to run all unwind-protects before returning. |
|
1757 (tree_try_catch_command::eval): Add do_catch_code cleanup function |
|
1758 to unwind-protect stack before resetting buffer_error_messages. |
|
1759 Use unwind-protect to save and restore buffer_error_messages. |
|
1760 If there is no catch code, discard the cleanup function and run |
|
1761 the unwind-protect for buffer_error_messages. |
|
1762 |
|
1763 * error.cc (bind_global_error_variable): Avoid dereferencing |
|
1764 error_message_buffer if it is NULL. |
|
1765 |
3489
|
1766 * parse.y (evaluating_function_body): New global flag. |
|
1767 * ov-usr-fcn.cc (octave_user_function::do_index_op): |
|
1768 Protect and set it here. |
|
1769 * parse.y (make_break_command, make_return_command): Check it here. |
|
1770 |
|
1771 * error.cc (warning_state): New global flag. |
|
1772 (warning): Set it here. |
|
1773 * lex.l (reset_parser): Clear it here. |
|
1774 * parse.y (fold): Check it here. |
|
1775 |
3484
|
1776 2000-01-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1777 |
3485
|
1778 * pt-walk.h (tree_walker::visit_do_until_command): New pure virtual. |
|
1779 * pt-pr-code.cc (tree_print_code::visit_do_until_command): |
3484
|
1780 New function. |
3485
|
1781 * pt-loop.h (tree_do_until_command): New class. |
3484
|
1782 (tree_while_command::expr, tree_while_command::list): |
|
1783 Now protected instead of private. |
3485
|
1784 * parse.y (make_do_until_command): New function. |
|
1785 (loop_command): Recognize do-until statement. |
3484
|
1786 (DO, UNTIL): New tokens. |
|
1787 |
|
1788 * input.cc (match_sans_spaces): Require non-blank part of test |
|
1789 string to match standard string exactly. |
|
1790 |
3483
|
1791 2000-01-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1792 |
|
1793 * oct-stream.h (scanf_format_elt::char_class): New struct elt. |
|
1794 Add arg to constructor. |
|
1795 (scanf_format_elt::special_conversion): New enum. |
|
1796 * oct-stream.cc (scanf_format_list::add_elt_to_list): New arg, |
|
1797 char_class. Pass it to scanf_format_elt constructor. |
|
1798 (scanf_format_list::scanf_format_list): Create separate list |
|
1799 elements for whitespace and literal conversions. |
|
1800 (expand_char_class): New function. |
|
1801 (scanf_format_list::finish_conversion): Extract character class |
|
1802 (not including the delimiting brackets) and expand the list of |
|
1803 characters. Pass the result to add_elt_to_list. |
|
1804 (scanf_format_list::all_character_conversions): Also accept '^', |
|
1805 scanf_format_elt::literal_conversion, and |
|
1806 scanf_format_elt::whitespace_conversion types too. |
|
1807 (DO_WHITESPACE_CONVERSION, BEGIN_CHAR_CLASS_CONVERSION, |
|
1808 BEGIN_C_CONVERSION, BEGIN_S_CONVERSION, DO_LITERAL_CONVERSION): |
|
1809 New macros. |
|
1810 (octave_base_stream::do_scanf, octave_base_stream::do_oscanf): |
|
1811 Use them to avoid code duplication. |
|
1812 Handle whitespace, literal text, and character class conversions. |
|
1813 (octave_base_stream::oscanf): Loop over all format list elements, |
|
1814 not just the first nconv elements. Clear status flags on is for |
|
1815 all streams. |
|
1816 |
3476
|
1817 2000-01-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1818 |
3480
|
1819 * xdiv.cc (result_ok): Just check value of info. |
|
1820 (solve_singularity_warning): New function. |
|
1821 (xleftdiv, xdiv): Pass pointer to solve_singularity_warning to |
|
1822 solve function. |
|
1823 |
|
1824 * lex.l (handle_identifier): Set next_tok_is_eq if we are looking |
|
1825 at `=', but not if we are looking at `=='. |
|
1826 |
3478
|
1827 * pt-pr-code.cc (tree_print_code::visit_unwind_protect_command): |
|
1828 Print `unwind_protect_cleanup', not `cleanup_code'. |
|
1829 |
3477
|
1830 * pager.cc (octave_pager_buf::flush_current_contents_to_diary): |
|
1831 New function. |
|
1832 (octave_pager_stream::flush_current_contents_to_diary): |
|
1833 Ditto. |
|
1834 (close_diary_file): Use the new octave_pager_stream function to |
|
1835 try to flush the current buffer to the diary when it is closed. |
|
1836 |
3476
|
1837 * variables.cc (Fexist): Return 6 for built-in constants. |
|
1838 |
|
1839 * pt-plot.cc (Fgshow): Don't append " " after last arg. |
|
1840 (Fgset): Likewise. |
|
1841 |
3472
|
1842 2000-01-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1843 |
|
1844 * ov-base-mat.h (octave_base_matrix::length): Return 0 for empty |
|
1845 arrays. |
|
1846 |
3465
|
1847 2000-01-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1848 |
|
1849 * DLD-FUNCTIONS/time.cc (Fstrptime): New function. |
|
1850 |
|
1851 * load-save.cc (Fsave): Add missing else. |
|
1852 |
3442
|
1853 2000-01-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1854 |
3444
|
1855 * DLD-FUNCTIONS/gammainc.cc (Fgammainc): Texinfoize doc string. |
3445
|
1856 * ov-typeinfo.cc (Ftypeinfo): Ditto. |
3446
|
1857 * parse.y (Vwarn_future_time_stamp): Ditto. |
|
1858 * DLD-FUNCTIONS/minmax.cc (Fmax, Fmin): Ditto. |
3445
|
1859 * ov-usr-fcn.cc (Fva_arg, Fva_start, Fvr_val): Ditto. |
3446
|
1860 * defaults.cc (VOCTAVE_HOME, Frehash): Ditto. |
|
1861 * toplev.cc (Fwarranty, Fcasesen): Ditto. |
|
1862 * utils.cc (Fdo_string_escapes, Ffile_in_loadpath): Ditto. |
|
1863 * variables.cc (F__dump_symtab_info__, F__dump_symbol_info__): Ditto. |
3447
|
1864 * ov-list.cc (Flist, Fappend, Fnth, Freverse, Fsplice): Ditto. |
3448
|
1865 * input.cc (Fread_readline_init_file): Ditto. |
|
1866 * file-io.cc (Fis_stream): Ditto. |
|
1867 * ov-cell.cc (Fiscell, Fcell): Ditto. |
|
1868 * pt-assign.cc (Vprint_rhs_assign_val): Ditto. |
|
1869 * pt-decl.cc (Vinitialize_global_variables): Ditto. |
|
1870 * symtab.cc (Vvariables_can_hide_functions): Ditto. |
3443
|
1871 |
3442
|
1872 * pt-plot.cc (Fgraw, Fgset, Fgshow, Vgnuplot_command_plot, |
|
1873 Vgnuplot_command_replot, Vgnuplot_command_splot, |
|
1874 Vgnuplot_command_using, Vgnuplot_command_with, |
|
1875 Vgnuplot_command_axes, Vgnuplot_command_title, |
|
1876 Vgnuplot_command_end): Texinfoize doc strings. |
|
1877 |
3447
|
1878 * oct-procbuf.cc (__kluge_procbuf_delay__): Rename from |
|
1879 kluge_procbuf_delay. Texinfoize doc string. |
|
1880 |
3427
|
1881 2000-01-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1882 |
|
1883 * parse.y (gobble_leading_whitespace): Discard first space character |
|
1884 after consecutive comment characters. |
|
1885 * lex.l (grab_help_text): Ditto. |
|
1886 |
3428
|
1887 * lex.l (Vwhitespace_in_literal_matrix, Vwarn_separator_insert, |
|
1888 Vwarn_single_quote_string): Texinfoize doc string. |
|
1889 |
3418
|
1890 2000-01-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1891 |
3419
|
1892 * ov.h, ov.cc (octave_value::column_vector_value, |
|
1893 octave_value::row_vector_value, |
|
1894 octave_value::complex_column_vector_value, |
|
1895 octave_value::complex_row_vector_value): New functions. |
|
1896 (octave_value::vector_value): Now returns Array<double>. |
|
1897 (octave_value::complex_vector_value): Now returns Array<Complex>. |
|
1898 Sprinkle conversions where necessary. |
|
1899 |
3418
|
1900 * ov.cc (Vprefer_column_vectors): Now static. |
|
1901 * ov.h (octave_value (const ComplexRowVector&), |
|
1902 octave_value (const ComplexColumnVector&), |
|
1903 octave_value (const RowVector&), octave_value (const ColumnVector&)): |
|
1904 Delete second arg. Change all callers. |
3419
|
1905 |
3418
|
1906 * oct-obj.h (octave_value_list (const RowVector&), |
|
1907 octave_value_list (const ColumnVector&), |
|
1908 octave_value_list (const ComplexRowVector&), |
|
1909 octave_value_list (const ComplexColumnVector&)): Likewise. |
|
1910 * ov-cx-mat.h, ov-cx-mat.cc |
|
1911 (octave_complex_matrix (const ComplexRowVector&), |
|
1912 (octave_complex_matrix (const ComplexColumnVector&)): |
|
1913 Delete second arg, simply create object with orientation |
|
1914 corresponding to vector arg. Move constructors to class decl. |
|
1915 * ov-re-mat.h, ov-re-mat.cc (octave_matrix (const RowVector&), |
|
1916 (octave_matrix (const ColumnVector&)): |
|
1917 Delete second arg, simply create object with orientation |
|
1918 corresponding to vector arg. Move constructors to class decl. |
|
1919 |
3411
|
1920 2000-01-07 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
1921 |
|
1922 * mappers.cc (Fconj, Ferf, Ferfc, Fgamma, Fimag, Flgamma, Flog10, |
|
1923 Freal, Fround): Add @seealso{...} to doc strings. |
|
1924 |
3408
|
1925 2000-01-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1926 |
3410
|
1927 * oct-stream.cc (do_scanf): Do the right thing again for character |
|
1928 conversions. |
|
1929 |
3408
|
1930 * help.cc (display_help_text): Also strip out leading spaces |
|
1931 before Texinfo @-commands before sending doc string to makeinfo. |
|
1932 (display_help_text): Improve format of `See also' string. |
|
1933 |
3405
|
1934 2000-01-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1935 |
|
1936 * help.cc (display_help_text): Pass a definition for @seealso |
|
1937 through the filter. |
|
1938 |
3400
|
1939 1999-12-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1940 |
|
1941 * lex.l (Vwarn_single_quote_string): New variable. |
|
1942 (syms_of_lex): DEFVAR it. |
|
1943 (warn_single_quote_string): New function. |
|
1944 (gripe_single_quote_string): New function. |
|
1945 Use new stuff to allow warnings for code that uses single quote |
|
1946 characters to introduce string constants. |
|
1947 |
3399
|
1948 1999-12-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1949 |
|
1950 * mkbuiltins: Add #undef quad to generated file. |
|
1951 |
3388
|
1952 1999-12-15 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1953 |
|
1954 * lex.l (Vwarn_separator_insert): New variable. |
|
1955 (syms_of_lex): DEFVAR it. |
|
1956 (warn_separator_insert): New function. |
|
1957 (maybe_warn_separator_insert): New function. |
|
1958 Use new stuff to allow warnings for code that might result in |
|
1959 auto-insertion of commas or semicolons, depending on the value of |
|
1960 whitespace_in_literal_matrix. |
|
1961 |
|
1962 * parse.y (Fsource): Record function file name here too. |
|
1963 |
3377
|
1964 1999-12-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1965 |
|
1966 * variables.cc (link_to_global_variable): If the local symbol is |
|
1967 not a variable, don't bother to clear it. Instead, just redefine |
|
1968 it by aliasing to the global symbol. |
|
1969 |
3372
|
1970 1999-11-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1971 |
3373
|
1972 * DLD-FUNCTIONS/balance.cc (Fbalance): Texinfoize doc string. |
|
1973 * DLD-FUNCTIONS/det.cc (Fdet): Ditto. |
|
1974 * DLD-FUNCTIONS/eig.cc (Feig): Ditto. |
|
1975 * DLD-FUNCTIONS/givens.cc (Fgivens): Ditto. |
|
1976 * DLD-FUNCTIONS/inv.cc (Finv): Ditto. |
|
1977 * DLD-FUNCTIONS/chol.cc (Fchol): Ditto. |
|
1978 * DLD-FUNCTIONS/hess.cc (Fhess): Ditto. |
|
1979 * DLD-FUNCTIONS/lu.cc (Flu): Ditto. |
|
1980 * DLD-FUNCTIONS/qr.cc (Fqr): Ditto. |
|
1981 * DLD-FUNCTIONS/schur.cc (Fschur): Ditto. |
|
1982 * DLD-FUNCTIONS/svd.cc (Fsvd): Ditto. |
|
1983 * DLD-FUNCTIONS/expm.cc (Fexpm): Ditto. |
|
1984 * DLD-FUNCTIONS/log.cc (Flogm, Fsqrtm): Ditto. |
|
1985 * DLD-FUNCTIONS/syl.cc (Fsyl): Ditto. |
|
1986 * DLD-FUNCTIONS/pinv.cc (Fpinv): Ditto. |
|
1987 * DLD-FUNCTIONS/qz.cc (Fqz): Ditto. |
|
1988 * DLD-FUNCTIONS/dassl.cc (Fdassl, Fdassl_options): Ditto. |
|
1989 * DLD-FUNCTIONS/lsode.cc (Flsode, Flsode_options): Ditto. |
|
1990 * data.cc (Flength, Fsize, Fisempty): Ditto. |
3372
|
1991 * sysdep.cc (Fkbhit): Ditto. |
|
1992 * input.cc (Fkeyboard, Finput): Ditto. |
|
1993 * variables.cc (ans): Ditto. |
|
1994 * pr-output.cc (Fdisp, Fformat): Ditto. |
|
1995 * ov.cc (Vprint_answer_id_name): Ditto. |
3373
|
1996 * defaults.cc (IMAGEPATH): Ditto. |
|
1997 * error.cc (Ferror, Fwarning, Fusage, error_text, beep_on_error): |
|
1998 Ditto. |
3372
|
1999 * load-save.cc (Fload, Fsave, Vdefault_save_format, |
|
2000 Vsave_precision): Ditto. |
|
2001 * file-io.cc (Ffflush, Ffopen, Ffclose, Ffputs, Ffgetl, Ffgets, |
|
2002 Ffprintf, Fsprintf, Fscanf, Ffscanf, Fsscanf, Ffread, Ffwrite, |
|
2003 Ffseek, Fftell, Ffeof, Fferror, Ffreport, Ftmpnam, Vstdin_file, |
|
2004 Vstdout_file, Vstderr_file, SEEK_SET, SEEK_CUR, SEEK_END): Ditto. |
|
2005 * pager.cc (Vpager_binary, Vpage_output_immediately, |
|
2006 Vpage_screen_output, Fmore): Ditto. |
|
2007 |
3369
|
2008 1999-11-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2009 |
|
2010 * utils.cc (Vtreat_neg_dim_as_zero): Texinfoize doc string. |
|
2011 * DLD-FUNCTIONS/find.cc (Ffind): Ditto. |
|
2012 * DLD-FUNCTIONS/rand.cc (Frand, Frandn): Ditto. |
|
2013 * DLD-FUNCTIONS/sort.cc (Fsort): Ditto. |
|
2014 * mappers.cc (Fisinf, Fisnan, Ffinite): Ditto. |
|
2015 * data.cc (Fall, Fany, Fdiag, Fones, Fzeros, Feye, Flinspace): Ditto. |
3371
|
2016 * defaults.cc (Vloadpath, Vdefault_loadpath): Ditto. |
|
2017 * parse.y (Feval, Ffeval, Vdefault_eval_print_flag, |
|
2018 Vwarn_missing_semicolon, Vwarn_function_name_clash, Fsource): Ditto. |
|
2019 * ov-usr-fcn.cc (Vmax_recursion_depth, Vdefault_return_value, |
|
2020 Vdefine_all_return_values, Vreturn_last_computed_value): Ditto. |
|
2021 * ov.cc (Vok_to_lose_imaginary_part, Vdo_fortran_indexing, |
|
2022 Vprefer_column_vectors, Vresize_on_range_error, |
|
2023 Vwarn_divide_by_zero): Ditto. |
|
2024 * pt-stmt.cc (Vsilent_functions): Ditto. |
|
2025 * variables.cc (Vignore_function_time_stamp): Ditto. |
|
2026 * dynamic-ld.cc (Vwarn_reload_forces_clear): Ditto. |
3369
|
2027 |
3367
|
2028 1999-11-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2029 |
3368
|
2030 * DLD-FUNCTIONS/fft.cc (Ffft): Texinfoize doc string. |
|
2031 * DLD-FUNCTIONS/ifft.cc (Fifft): Ditto. |
|
2032 * DLD-FUNCTIONS/fft2.cc (Ffft2): Ditto. |
|
2033 * DLD-FUNCTIONS/ifft2.cc (Fifft2): Ditto. |
|
2034 * DLD-FUNCTIONS/filter.cc (Ffilter): Ditto. |
|
2035 * DLD-FUNCTIONS/quad.cc (Fquad, Fquad_options): Ditto. |
|
2036 * DLD-FUNCTIONS/colloc.cc (Fcolloc): Ditto. |
|
2037 * DLD-FUNCTIONS/fsolve.cc (Ffsolve, Ffsolve_options): Ditto. |
|
2038 * defaults.cc (Veditor): Ditto. |
|
2039 * pt-plot.cc (Vautomatic_replot, Vgnuplot_binary, |
|
2040 Vgnuplot_has_frames, Vgnuplot_has_multiplot, Fclearplot, |
|
2041 Fcloseplot, Fpurge_tmp_files, Fishold, Fhold): |
3367
|
2042 |
|
2043 * Makefile.in (parse.cc): Expect 11 shift/reduce conflicts now. |
|
2044 |
3361
|
2045 1999-11-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2046 |
3366
|
2047 * parse.y (Vwarn_assign_as_truth_value, Vwarn_variable_switch_label): |
|
2048 Texinfoize doc strings. |
|
2049 |
3365
|
2050 * DLD-FUNCTIONS/pinv.cc (Fpinv): Texinfoize doc string. |
|
2051 |
3364
|
2052 * defun-int.h (DEFUN_DLD_INTERNAL): New macro. |
|
2053 * defun-dld.h [MAKE_BUILTINS] (DEFUN_DLD): Simply expand to |
|
2054 DEFUN_DLD_INTERNAL. |
|
2055 * mkbuiltins: Generate code to define DEFUN_DLD_INTERNAL. |
|
2056 * mkgendoc: Likewise. |
|
2057 |
3363
|
2058 * Makefile.in (gendoc.o): Don't optimize when creating gendoc. |
3364
|
2059 (%.dc : %.cc): Delete rule. |
3363
|
2060 |
3361
|
2061 * pt-decl.cc (Vdefault_global_variable_value): Texinofize doc string. |
|
2062 * variables.cc (Fclear, Fdocument, Fexist, Fis_global, Fwho): Ditto. |
|
2063 * help.cc (Ftype, Fwhich): Ditto. |
|
2064 * ov.cc (Vstruct_levels_to_print, Vimplicit_str_to_num_ok): Ditto. |
|
2065 * data.cc (Fis_struct, Fstruct_elements, Fstruct_constains): Ditto. |
|
2066 * strfns.cc (Fisstr, Fsetstr): Ditto. |
|
2067 * pt-mat.cc: (Fimplicit_num_to_str_ok, Fstring_fill_char): Ditto. |
|
2068 * utils.cc (Fundo_string_escapes): Ditto. |
|
2069 * mappers.cc: (Fisalnum, Fisalpha, Fisascii, Fiscntrl, Fisdigit, |
|
2070 Fisgraph, Fislower, Fisprint, Fispunct, Fisspace, Fisupper, |
|
2071 Fisxdigit, Ftoascii, Ftolower, Ftoupper): Ditto. |
|
2072 |
3357
|
2073 1999-11-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2074 |
3360
|
2075 * syscalls.cc (symbols_of_syscalls): Use DEFCONSTX to define |
|
2076 Octave constants for C macros like O_WRONLY. |
|
2077 |
3357
|
2078 * oct-lvalue.cc (octave_lvalue::set_index): Disallow expressions |
|
2079 like x(i)(j) = rhs. |
|
2080 |
3355
|
2081 1999-11-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2082 |
3356
|
2083 * symtab.cc (symbol_record::type_as_string): New function. |
3355
|
2084 |
|
2085 * symtab.cc (symbol_record::which): New functions. |
|
2086 * help.cc (do_which): New functions. |
|
2087 (Fwhich): Use them. |
|
2088 |
|
2089 * help.cc (help_from_symbol_table, help_from_file): New functions. |
|
2090 (builtin_help): Use them. |
|
2091 |
|
2092 * help.cc (do_type): New function. |
3356
|
2093 (symbol_record::type): New function. |
3355
|
2094 (Ftype): Use them. |
|
2095 |
|
2096 * help.cc (print_symbol_type): Delete. |
|
2097 |
|
2098 * symtab.cc (symbol_table::name_list): Delete count arg. |
|
2099 (symbol_table::symbol_list): Likewise. |
|
2100 (symbol_table::glob): Likewise. Also return Array<symbol_record *> |
|
2101 instead of symbol_record **. |
|
2102 Change all callers. |
|
2103 * help.cc (names, display_symtab_names): Delete count arg. |
|
2104 |
|
2105 * help.cc (print_symbol_type, Ftype): No longer need to look up |
|
2106 fcn_file_name in the loadpath. |
|
2107 |
|
2108 * help.cc (print_symbol_type): Handle dld functions. |
|
2109 (help_from_symbol_table, help_from_file): New functions. |
|
2110 (builtin_help): Use them. |
|
2111 |
3354
|
2112 1999-11-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2113 |
|
2114 * ov-cell.cc (Fiscell, Fcell): New Functions. |
|
2115 (octave_cell::do_index_op): New function. |
|
2116 |
|
2117 * utils.cc (get_dimensions): Move here from data.cc and make extern. |
|
2118 (Vtreat_neg_dim_as_zero, treat_neg_dim_as_zero): Likewise. |
|
2119 (symbols_of_utils): New function. |
|
2120 |
|
2121 * data.cc (fill_matrix (const octave_value_list&, double, |
|
2122 const char*)): New function. |
|
2123 (Fones, Fzeros): Use it to avoid some code duplication. |
|
2124 |
3352
|
2125 1999-11-15 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2126 |
|
2127 * pt-cell.h, pt-cell.cc, ov-cell.h, ov-cell.cc, Cell.h, Cell.cc: |
|
2128 New files. |
|
2129 * Makefile.in: Add them to the appropriate lists. |
|
2130 * pt-walk.h (visit_cell (tree_cell&): New pure virtual. |
|
2131 * pt-pr-code.cc (tree_print_code::visit_cell (tree_cell&)): New |
|
2132 function. |
|
2133 * TEMPLATE-INST/Array-tc.cc: Instantiate 2D arrays of octave_value |
|
2134 objects. |
|
2135 * pt-all.h: Include pt-cell.h. |
|
2136 * ov.h, ov.cc (octave_value::is_cell, octave_value::cell_value): |
|
2137 New functions. |
|
2138 * ov-base.h, ov-base.cc (octave_value::is_cell, |
|
2139 octave_value::cell_value): Provide defaults. |
|
2140 * lex.h, lex.l: Handle `{' and `}' tokens (for cell arrays). |
|
2141 (bracketflag): Rename from braceflag. |
|
2142 (handle_close_bracket): Rename from handle_close_brace. |
|
2143 (class bracket_brace_paren_nesting_level): Rename from |
|
2144 brace_paren_nesting_level. |
|
2145 (bracket_brace_paren_nesting_level::bracket, |
|
2146 bracket_brace_paren_nesting_level::is_bracket): New functions to |
|
2147 keep count of nesting level for `[' and `]'. |
|
2148 (bracket_brace_paren_nesting_level::brace, |
|
2149 bracket_brace_paren_nesting_level::is_brace): Now keeps count of |
|
2150 nesting level for `{' and `}'. |
|
2151 * parse.y (tree_cell_type): New type. |
|
2152 Give '{' the same precedence and associativity as '(' and '.' |
|
2153 (matrix_rows, matrix_rows1): Rename from rows, rows1. |
|
2154 (cell, cell_rows, cell_rows1): New non-terminals. |
|
2155 (cell_or_matrix_row): Rename from matrix_row. |
|
2156 (primary_expr): Accept cell here. |
|
2157 (postfix_expr): Allow indexing using '{' arg_list '}'. |
|
2158 (finish_cell): New function. |
|
2159 |
3350
|
2160 1999-11-12 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2161 |
|
2162 * utils.cc (jump_to_top_level): No longer declared extern "C". |
|
2163 |
|
2164 * cutils.c (octave_strcasecmp, octave_strncasecmp): New functions. |
|
2165 * utils.cc (almost_match): Call octave_strncasecmp instead of |
|
2166 calling strncasecmp directly. |
|
2167 |
3347
|
2168 1999-11-10 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2169 |
|
2170 * parse.y: Don't define warn_reload_forces_clear here. |
|
2171 |
|
2172 * Makefile.in (DISTFILES): Include DOCSTRINGS. |
|
2173 |
3340
|
2174 1999-11-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2175 |
3343
|
2176 * sighandlers.cc (install_signal_handlers): Don't install |
|
2177 sigwinch_handler. |
|
2178 |
3342
|
2179 * oct-iostrm.h (octave_istream::eof, octave_ostream::eof): Provide |
|
2180 implementation for these. |
|
2181 |
|
2182 * oct-stream.cc (octave_base_stream::do_scanf): |
|
2183 The stdin stream is only special if we are interactive. |
|
2184 (octave_base_stream::scanf): Ditto. |
|
2185 (octave_base_stream::do_oscanf): Ditto. |
|
2186 (octave_base_stream::oscanf): Ditto. |
|
2187 |
3340
|
2188 * ov.h (octave_value::is_stream): New predicate. |
|
2189 * ov-file.h (octave_file::is_stream): Return true. |
|
2190 * file-io.cc (Fis_stream): New function. |
|
2191 |
|
2192 * ov-file.h (class octave_file): stream is now an object instead |
|
2193 of pointer. |
|
2194 * ov-file.cc (octave_file::print_raw): Handle stream as object |
|
2195 instead of pointer. Also print stream status. |
|
2196 |
|
2197 * ov-base.cc (octave_base_value::stream_value): Return object |
|
2198 instead of pointer. |
|
2199 |
|
2200 * ov.cc (octave_value::stream_value): Return object instead of pointer. |
|
2201 (octave_value::octave_value (const octave_stream&)): Take const |
|
2202 reference instead of pointer arg. |
|
2203 |
|
2204 * TEMPLATE-INST/Array-os.cc: Instantiate Arrays of octave_stream |
|
2205 objects, not pointers to them. |
|
2206 |
|
2207 * OPERATORS/op-fil-b.cc: Cope with octave_stream class changes. |
|
2208 * OPERATORS/op-fil-bm.cc: Likewise. |
|
2209 * OPERATORS/op-fil-cm.cc: Likewise. |
|
2210 * OPERATORS/op-fil-cs.cc: Likewise. |
|
2211 * OPERATORS/op-fil-lis.cc: Likewise. |
|
2212 * OPERATORS/op-fil-m.cc: Likewise. |
|
2213 * OPERATORS/op-fil-rec.cc: Likewise. |
|
2214 * OPERATORS/op-fil-s.cc: Likewise. |
|
2215 * OPERATORS/op-fil-str.cc: Likewise. |
|
2216 * file-io.cc: Likewise. |
|
2217 * syscalls.cc (Fdup): Likewise. |
|
2218 |
|
2219 * oct-fstrm.cc, oct-fstrm.h, oct-iostrm.cc, oct-iostrm.h, |
|
2220 oct-prcstrm.cc, oct-prcstrm.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
2221 oct-stream.cc, oct-stream.h, oct-strstrm.cc, oct-strstrm.h: |
|
2222 Rewrite to allow octave_stream objects to be used like values |
|
2223 instead of having to use pointers. |
|
2224 |
3337
|
2225 1999-11-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2226 |
|
2227 * oct-stream.cc (octave_base_stream::do_scanf): If it looks like |
|
2228 we have a matching failure, then reset the failbit in the stream |
|
2229 state. |
|
2230 (octave_base_stream::do_oscanf): Likewise. |
|
2231 |
3332
|
2232 1999-11-02 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
2233 |
3361
|
2234 * help.cc (Fhelp): Texinfoize doc string. |
|
2235 * input.cc (Fecho, Fcompletion_matches): Ditto. |
|
2236 * oct-hist.cc (Fedit_history, Fhistory, Frun_history): Ditto. |
|
2237 * pager.cc (Fdiary): Ditto. |
|
2238 * sysdep.cc (Fclc): Ditto. |
|
2239 * toplev.cc (Fquit, Fatexit): Ditto. |
3332
|
2240 |
|
2241 1999-11-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2242 |
|
2243 * lex.l (yywrap): No longer static. |
|
2244 (have_continuation): Declare input character as int, not char, so |
|
2245 comparison to EOF will work. |
|
2246 |
3330
|
2247 1999-11-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2248 |
|
2249 * defun.cc (print_usage): Use display_help_text instead of sending |
|
2250 help message directly to octave_stdout. |
|
2251 |
3325
|
2252 1999-10-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2253 |
|
2254 * defun-dld.h (INSTALL_DLD_FCNS, INSTALL_DLD_FCN): Delete definitions. |
|
2255 * DLD-FUNCTIONS/dassl.cc: Don't use INSTALL_DLD_FCN or |
|
2256 INSTALL_DLD_FCNS macros. They are not necessary with the new code |
|
2257 in dynamic-ld.cc. |
|
2258 * DLD-FUNCTIONS/lsode.cc: Ditto. |
|
2259 * DLD-FUNCTIONS/fsolve.cc: Ditto. |
|
2260 * DLD-FUNCTIONS/quad.cc: Ditto. |
|
2261 * DLD-FUNCTIONS/time.cc: Ditto. |
|
2262 * DLD-FUNCTIONS/besselj.cc: Ditto. |
|
2263 * DLD-FUNCTIONS/getgrent.cc: Ditto. |
|
2264 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
2265 * DLD-FUNCTIONS/inv.cc: Ditto. |
|
2266 * DLD-FUNCTIONS/log.cc: Ditto. |
|
2267 * DLD-FUNCTIONS/minmax.cc: Ditto. |
|
2268 * DLD-FUNCTIONS/rand.cc: Ditto. |
|
2269 |
|
2270 * dynamic-ld.cc, dynamic-ld.h: Major rewrite to allow reloading of |
|
2271 dynamically linked functions. |
|
2272 |
|
2273 * symtab.cc (symbol_record::replace_all_defs): Don't allow top |
|
2274 definition to be NULL. |
|
2275 (symbol_table::clear): Allow dynamically linked functions to be |
|
2276 cleared. |
|
2277 |
|
2278 * symtab.h (TYPE): New enum value, DLD_FUCTION. |
|
2279 (symbol_type): Now 8 bits wide. |
|
2280 (SYMTAB_ALL_TYPES): Include DLD_FUNCTION. |
|
2281 (symbol_record::symbol_def::is_function): Also recognize dld functions. |
|
2282 (symbol_record::symbol_def::is_dld_function): New function. |
|
2283 (symbol_record::is_dld_function): Ditto. |
|
2284 |
|
2285 * defun.cc (install_dld_function): New function. |
|
2286 * defun-int.h: Provide declaration here. |
|
2287 (octave_dld_fcn_installer): New typedef. |
|
2288 (DEFINE_FUN_INSTALLER_FUN): Installer function now takes an |
|
2289 oct_shlib object as an arg. Allow installation of a function to |
|
2290 happen more than once. |
|
2291 |
|
2292 * octave.cc (initialize_error_handlers): Call |
|
2293 set_liboctave_warning_handler here too. |
|
2294 |
|
2295 * ov-builtin.h (is_builtin_function): Return true. |
|
2296 Data member is now protected, not private. |
|
2297 |
|
2298 * ov-fcn.h (is_dynamically_loaded_function): New predicate. |
|
2299 (unload): New function. |
|
2300 Data members are now protected, not private. |
|
2301 |
|
2302 * ov.h (is_builtin_function, is_dld_function): New predicates. |
|
2303 * ov-base.h (is_builtin_function, is_dld_function): Ditto. |
|
2304 |
|
2305 * parse.y (Vwarn_reload_forces_clear): New static flag. |
|
2306 (warn_reload_forces_clear): New function. |
|
2307 (symbols_of_parse): DEFVAR warn_reload_forces_clear. |
|
2308 |
|
2309 * variables.cc (Fclear): Look for dld functions too. |
|
2310 |
3770
|
2311 * ov-dld-fcn.cc, ov-dld-fcn.h: New files. |
3325
|
2312 * Makefile.in (OV_INCLUDES, OV_SRC): Add them to the lists. |
|
2313 |
|
2314 * Makefile.in (DEFVAR_PATTERN): Also match DEFCONSTX. |
|
2315 |
3321
|
2316 1999-10-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2317 |
3325
|
2318 * DLList.h, DLList.cc: New files. |
|
2319 * Makefile.in (INCLUDES, DIST_SRC): Add them to the lists. |
|
2320 |
3323
|
2321 * DLD-FUNCTIONS/lsode.cc (Flsode): Be sure to call |
|
2322 unwind_protect::run_frame before returning. |
|
2323 * DLD-FUNCTIONS/quad.cc (Fquad): Likewise. |
|
2324 * DLD-FUNCTIONS/fsolve.cc (Ffsolve): Likewise. |
|
2325 * DLD-FUNCTIONS/dassl.cc (Fdassl): Likewise. |
|
2326 |
|
2327 * load-save.cc (read_mat_ascii_data): When reading from |
|
2328 tmp_stream, check its state, not the state of is. |
|
2329 |
|
2330 * defun-dld.h (INSTALL_DLD_FCN, INSTALL_DLD_FCNS): New macros. |
|
2331 * DLD-FUNCTIONS/dassl.cc: Use them. |
|
2332 * DLD-FUNCTIONS/lsode.cc: Ditto. |
|
2333 * DLD-FUNCTIONS/fsolve.cc: Ditto. |
|
2334 * DLD-FUNCTIONS/quad.cc: Ditto. |
|
2335 * DLD-FUNCTIONS/time.cc: Ditto. |
|
2336 * DLD-FUNCTIONS/besselj.cc: Ditto. |
|
2337 * DLD-FUNCTIONS/getgrent.cc: Ditto. |
|
2338 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
2339 * DLD-FUNCTIONS/inv.cc: Ditto. |
|
2340 * DLD-FUNCTIONS/log.cc: Ditto. |
|
2341 * DLD-FUNCTIONS/minmax.cc: Ditto. |
|
2342 * DLD-FUNCTIONS/rand.cc: Ditto. |
|
2343 |
3322
|
2344 * data.cc (Flinspace): Let linspace functions handle errors. |
|
2345 |
3321
|
2346 * mkgendoc (print_doc_string): Handle quoted names. |
|
2347 |
|
2348 * file-io.cc (symbols_of_file_io): Use DEFCONSTX for SEEK_SET, |
|
2349 SEEK_CUR, and SEEK_END. |
|
2350 |
|
2351 * defun.h (DEFCONST): Just pass name, defn, and doc to |
|
2352 DEFCONST_INTERNAL. |
|
2353 (DEFCONSTX): Likewise, pass name, defn, and doc to DEFCONSTX_INTERNAL. |
|
2354 * defun-int.h [MKBUILTINS] (DEFCONST_INTERNAL): Likewise, pass |
|
2355 name, defn, and doc to XDEFCONST_INTERNAL. |
|
2356 [MKBUILTINS] (DEFCONSTX_INTERNAL): New macro. |
|
2357 (INSTALL_CONST): New macro. |
|
2358 [! MKBUILTINS] (DEFCONST_INTERNAL): Use it to handle details here. |
|
2359 [! MKBUILTINS] (DEFCONSTX_INTERNAL): Ditto. |
|
2360 * mkgendoc: Fix definition of XDEFCONST_INTERNAL to match. |
|
2361 * mkbuiltins: Ditto. |
|
2362 |
|
2363 * mkdefs: Match spaces before BEGIN_INSTALL_BUILTIN. |
|
2364 |
|
2365 * Makefile.in (DEFUN_PATTERN): Also match DEFUN_MAPPER. |
|
2366 |
|
2367 1999-10-26 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
2368 |
|
2369 * data.cc (VI, VInf, VJ, VNaN, Ve, Veps, Vfalse, Vi, Vinf, Vj, |
|
2370 Vnan, Vpi, Vrealmax, Vrealmin): Texinfoize doc strings. |
|
2371 * mappers.cc (Fabs, Facos, Facosh, Fangle, Farg, Fasin, Fasinh, |
|
2372 Fatan, Fatanh, Fceil, Fconj, Fcos, Fcosh, Ferf, Ferfc, Fexp, |
|
2373 Ffinite, Ffix, Ffloor, Fgamma, Fimag, Flgamma, Flog, Flog10, |
|
2374 Freal, Fround, Fsign, Fsin, Fsinh, Fsqrt, Ftan, Ftanh): Ditto. |
|
2375 |
|
2376 1999-10-23 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
2377 |
3361
|
2378 * data.cc (Fis_matrix): Texinfoize doc string. |
|
2379 * ov.cc (Vpropagate_empty_matrices): Ditto. |
|
2380 * pt-mat.cc: (Vempty_list_elements_ok): Ditto. |
|
2381 * pr-output.cc (Vfixed_point_format, Voutput_max_field_width, |
|
2382 Voutput_precision, Vprint_empty_dimensions, Vsplit_long_rows): |
|
2383 Ditto. |
3321
|
2384 |
|
2385 1999-10-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2386 |
3323
|
2387 * ov-usr-fcn.cc (octave_user_function::do_index_op): If |
|
2388 Vmax_recursion_depth is exceeded, call unwind_protect::run_frame |
|
2389 before returning. |
3321
|
2390 |
3308
|
2391 1999-10-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2392 |
3317
|
2393 * cutils.c (do_octave_usleep): Handle useconds > 1e6. |
|
2394 |
3308
|
2395 * variables.h (is_valid_function): Provide default values for the |
|
2396 string argument. |
|
2397 |
|
2398 * symtab.cc (variable_reference): Maybe print warning (or error) |
|
2399 about variables that hide functions of the same name. |
|
2400 (symbol_record::define (const octave_value&, unsigned int)): Ditto. |
|
2401 (Vvariables_can_hide_functions): New static variable. |
|
2402 (variables_can_hide_functions, symbols_of_symtab): New functions. |
|
2403 |
|
2404 * cutils.c: New file. |
|
2405 * Makefile.in (SOURCES): Add it to the list. |
|
2406 * utils.h: Declare octave_usleep here. |
|
2407 * dirfns.cc (Fls): Simply all octave_usleep. |
|
2408 * oct-procbuf.cc (octave_procbuf::open): Ditto. |
|
2409 * sysdep.cc (Fusleep): Ditto. |
|
2410 * toplev.cc (run_command_and_return_output): Ditto. |
|
2411 |
3305
|
2412 1999-10-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2413 |
3307
|
2414 * data.cc (make_diag (const octave_value&, const octave_value&)): |
|
2415 Delete special cases for scalars and simply attempt conversion of |
|
2416 first arg to a matrix value. If that fails, we will still see an |
|
2417 error message. |
|
2418 |
3305
|
2419 * Makefile.in (DISTFILES): Add mkgendoc to the list. |
|
2420 |
3296
|
2421 1999-10-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2422 |
3301
|
2423 * Makefile.in (stmp-pic): New target. |
|
2424 ($(PICOBJS)): Depend on stmp-pic, not pic. |
|
2425 |
|
2426 * ov.h (get_rep): New function. |
|
2427 |
|
2428 * help.cc (display_help_text): Pass definitions for VERSION, |
|
2429 OCTAVE_HOME, and TARGETHOSTTYPE to makeinfo. |
|
2430 |
|
2431 * DLD-FUNCTIONS/getgrent.cc: Texinfoize all doc strings. |
|
2432 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
2433 * DLD-FUNCTIONS/getrusage.cc: Ditto. |
|
2434 * DLD-FUNCTIONS/time.cc: Ditto. |
|
2435 |
|
2436 * defaults.cc (EXEC_PATH, OCTAVE_VERSION): Texinfoize doc strings. |
|
2437 * dirfns.cc (Fcd, Fls, Fpwd, Freaddir, Fmkdir, Frmdir, Frename, |
|
2438 Fglob, Ffnmatch): Ditto. |
|
2439 * file-io.cc (Fpopen, Fpclose, Fumask): Ditto. |
|
2440 * sysdep.cc (Fgetenv, Fputenv, Fpause, Fsleep, Fusleep, Fisieee, |
|
2441 Ftilde_expand): Ditto. |
|
2442 * toplev.cc (Fcomputer, Fsystem, Foctave_config_info): Ditto. |
|
2443 * utils.cc (Ffile_in_path): Ditto. |
|
2444 * syscalls.cc (Fdup2, Fexec, Ffcntl, Ffork, Fgetpgrp, Fgetpid, |
|
2445 Fgetppid, Fgetegid, Fgetgid, Fgeteuid, Fgetuid, Fmkfifo, Fpipe, |
|
2446 Fstat, Funlink, Fwaitpid, F): Ditto. |
|
2447 (Flstat): Refer to stat for doc. |
|
2448 |
|
2449 |
3296
|
2450 * help.cc (looks_like_texinfo): New function. |
|
2451 (display_help_text): Use it to see if the doc string looks like |
|
2452 Texinfo source. If so, use makeinfo to format the text before |
|
2453 displaying it. |
|
2454 |
|
2455 * mkgendoc: New script. |
|
2456 * Makefile.in: Use it to create gendoc.cc, which is compiled and |
|
2457 run to create DOCSTRINGS file from sources. |
|
2458 |
3295
|
2459 1999-10-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2460 |
|
2461 * help.cc (help_from_info): Print `unable to find info' message if |
|
2462 try_info returns 127; otherwise, print `not indexed' message. |
|
2463 Don't sleep after printing `not indexed' message. |
|
2464 |
3292
|
2465 1999-10-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2466 |
|
2467 * parse.y (fold (tree_unary_expression *)): New function. |
|
2468 (make_prefix_op, make_postfix_op): Use it. |
|
2469 |
3281
|
2470 1999-10-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2471 |
3288
|
2472 * Makefile.in (oct-gperf.h): Ask for ANSI-C output from gperf |
|
2473 (requires gperf-2.7 or later). |
|
2474 |
3281
|
2475 * sighandlers.cc (sigwinch_handler): New function. |
|
2476 (install_signal_handlers): Install it. |
|
2477 |
3273
|
2478 Thu Sep 23 19:49:36 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2479 |
|
2480 * toplev.cc (Fsystem): For async case, use execl instead of |
|
2481 system, avoiding the need to exit after executing the subprocess. |
|
2482 |
3268
|
2483 Thu Sep 9 17:09:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2484 |
|
2485 * oct-stream.cc (get_size): Allow zero values. |
|
2486 (get_size): New arg, one_elt_size_spec. |
|
2487 (do_scanf_conv): New arg, `conv_count'. Change instantiation |
|
2488 requests and all callers. |
|
2489 (octave_base_stream::do_scanf): Improve scanning of strings. |
|
2490 (octave_base_stream::do_oscanf): Remove size limit on %s conversions. |
|
2491 |
|
2492 * oct-stream.cc (scanf_format_list::all_character_conversions): |
|
2493 Don't count %p as a character conversion. |
|
2494 |
|
2495 Tue Sep 7 08:31:04 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2496 |
|
2497 * pr-output.cc (set_real_matrix_format, set_complex_matrix_format): |
|
2498 Move check for fixed_point_format ahead of check for |
|
2499 int_or_inf_or_nan. |
|
2500 |
3264
|
2501 Thu Sep 2 11:54:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2502 |
|
2503 * oct-obj.cc (make_argv): Correctly handle empty strings as args. |
|
2504 |
3263
|
2505 Fri Aug 20 08:17:52 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2506 |
|
2507 * DLD-FUNCTIONS/quad.cc (quad): Delete unused label. |
|
2508 |
|
2509 * unwind-prot.cc (saved_variable::~saved_variable): Don't try to |
|
2510 delete gen_ptr_value here. |
|
2511 |
|
2512 Mon Aug 16 21:34:33 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2513 |
|
2514 * lex.l (next_token_is_sep_op): New function. |
|
2515 (handle_close_brace, maybe_unput_comma): Use it. |
|
2516 (have_continuation): Also handle CRLF here. |
|
2517 |
|
2518 Wed Aug 11 16:06:57 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2519 |
|
2520 * file-io.cc (Ffopen): Make fopen ("filename") work and imply that |
|
2521 MODE = "r". |
|
2522 |
3258
|
2523 Wed Jul 21 15:38:52 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2524 |
3259
|
2525 * help.cc (display_names_from_help_list): Sort names before |
|
2526 listing them. |
|
2527 (print_symbol_type, Ftype): Also handle built-in constants. |
|
2528 (LIST_SYMBOLS): Correct call to symbol_table::name_list. |
|
2529 (simple_help): List constants here too. List constants and |
|
2530 variables before functions, not after. Sort names before listing |
|
2531 them. |
|
2532 |
|
2533 * variables.cc (do_who): Display built-in constants in a separate |
|
2534 section. |
|
2535 |
|
2536 * error.cc (bind_global_error_variable, clear_global_error_variable): |
|
2537 Call bind_builtin_constant, not bind_builtin_variable to set |
|
2538 __error_text__. |
|
2539 * octave.cc (intern_argv): Likewise, for argv and __argv__. |
|
2540 |
|
2541 * defun.cc (install_builtin_constant): Move function guts to |
|
2542 bind_builtin_constant in variables.cc. |
|
2543 * variables.cc (bind_builtin_constant): New function. |
|
2544 |
3258
|
2545 * symtab.cc (symbol_record::define, symbol_record::variable_reference): |
|
2546 Handle constants the same as functions. |
|
2547 (symbol_record::link_to_builtin_variable): New function. |
|
2548 (symbol_record::define_builtin_const): New function. |
|
2549 (symbol_record::define_as_fcn): Delete unused function. |
|
2550 (symbol_record::read_only_error): |
|
2551 Handle constants the same as variables. |
|
2552 * symtab.h (symbol_record::BUILTIN_CONSTANT): New enum value. |
|
2553 (symbol_record::symbol_type): Increase width to 7 bits. |
|
2554 (symbol_record::symbol_def::is_constant): New function. |
|
2555 (symbol_record::symbol_def::is_builtin_constant): New function. |
|
2556 (symbol_record::is_constant): New function. |
|
2557 (symbol_record::is_builtin_constant): New function. |
|
2558 (SYMTAB_ALL_TYPES): Add symbol_record::BUILTIN_CONSTANT. |
|
2559 * variables.cc (link_to_builtin_variable): Delete unused function. |
|
2560 (link_to_builtin_or_function): Handle built-in constants here too. |
|
2561 |
|
2562 * defun.cc (install_builtin_variable): Delete inst_as_fcn arg. |
|
2563 (install_builtin_constant): New function. |
|
2564 (install_builtin_variable_as_function): Delete unused function. |
|
2565 * defun.h (DEFVAR_INTERNAL): Delete inst_as_fcn arg. |
|
2566 (DEFCONST_INTERNAL): New macro. |
|
2567 * defun.h (DEFVAR): Delete inst_as_fcn arg. |
|
2568 (DEFCONST, DEFCONSTX): Define using DEFCONST_INTERNAL instead of |
|
2569 DEFVAR_INTERNAL. |
|
2570 * data.cc, defaults.cc, error.cc, help.cc, input.cc, lex.l, |
|
2571 load-save.cc, oct-hist.cc, oct-procbuf.cc, ov-fcn.h, |
|
2572 ov-usr-fcn.cc, ov.cc, pager.cc, parse.y, pr-output.cc, |
|
2573 pt-assign.cc, pt-decl.cc, pt-mat.cc, pt-plot.cc, pt-stmt.cc, |
|
2574 toplev.cc, variables.cc: |
|
2575 Change all invocations of DEFVAR to match new definition. |
|
2576 |
|
2577 * data.cc (symbols_of_data): Add DEFCONSTs for true and false. |
|
2578 |
3255
|
2579 Thu Jul 15 10:59:42 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2580 |
3258
|
2581 * data.cc (Fis_bool, Fis_complex, Fisempty, Fisnumeric, Fis_list, |
|
2582 Fis_map, Fis_struct): Return bool object. |
|
2583 (Fisreal): New function. |
|
2584 |
|
2585 * ov-str-mat.h (octave_char_matrix_str): Only return true if |
|
2586 Vimplicit_str_to_num_ok is also true. |
|
2587 |
3255
|
2588 * DLD-FUNCTIONS/time.cc (Ftime): Print usage message if any |
|
2589 arguments are supplied. |
|
2590 |
|
2591 * variables.cc (symbol_out_of_date): Call octave_time for time stamps. |
|
2592 |
|
2593 * fn-cache.h (octave_fcn_file_name_cache::timestamp): |
|
2594 Now octave_time object. |
|
2595 |
|
2596 * strftime.c: Move to liboctave directory. |
|
2597 * Makefile.in (DIST_SRC): Delete from list. |
|
2598 |
|
2599 * ov-usr-fcn.h (octave_user_function::t_parsed, |
|
2600 octave_user_function::t_checked): Now octave_time objects. |
|
2601 (octave_user_function::time_parsed, |
|
2602 (octave_user_function::time_checked): |
|
2603 Return value is now octave_time object. |
|
2604 (octave_user_function::mark_fcn_file_up_to_date)): |
|
2605 Arg is now octave_time object. |
|
2606 |
|
2607 * ov-fcn.h (octave_function::mark_fcn_file_up_to_date)): |
|
2608 Arg is now octave_time object. |
|
2609 (octave_function::time_parsed, octave_function::time_checked): |
|
2610 Return value is now octave_time object. |
|
2611 |
|
2612 * input.cc (Vlast_prompt_time): Now an octave_time object. |
|
2613 (octave_gets): Call octave_time::stamp() to set Vlast_prompt_time. |
|
2614 |
|
2615 * DLD-FUNCTIONS/time.cc (mk_tm_map, extract_tm, Ftime, Fgmtime, |
|
2616 Flocaltime, Fmktime, Fstrftime): Use new classes defined in |
|
2617 liboctave/oct-time.cc instead of accessing C functions directly. |
|
2618 |
3252
|
2619 Wed Jul 14 17:38:46 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2620 |
|
2621 * systime.h: Move to liboctave directory. |
|
2622 * Makefile.in (INCLUDES): Delete it from the list |
|
2623 |
|
2624 Tue Jul 13 14:34:57 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2625 |
|
2626 * sighandlers.cc (sigchld_handler): Only wait for processes in |
|
2627 octave_child_list. |
|
2628 * toplev.cc (cmd_status): Delete unused static variable. |
|
2629 (cmd_death_handler): Delete unused function. |
|
2630 (run_command_and_return_output): Don't add cmd_death_handler to |
|
2631 octave_child_list. Simply extract command exit status from |
|
2632 calling close() on the procstream object. |
|
2633 |
3249
|
2634 Mon Jul 12 22:38:50 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2635 |
|
2636 * defun.h (DEFUN_MAPPER): Handle new args, d_b_map and c_b_map. |
|
2637 * defun-int.h (DEFUN_MAPPER_INTERNAL): Likewise. |
|
2638 * mappers.cc (install_mapper_functions): Supply new args to |
|
2639 all uses of DEFUN_MAPPER. |
|
2640 * ov-mapper.cc (octave_mapper::apply): Handle mapper functions |
|
2641 that return bool objects. |
|
2642 * ov-mapper.h (octave_mapper::d_b_mapper, octave_mapper::c_b_mapper): |
|
2643 New typedefs. |
|
2644 (octave_mapper::octave_mapper): Handle new mapper function types. |
|
2645 |
|
2646 * DLD-FUNCTIONS/minmax.cc: Do a better job of handling NaNs. |
|
2647 |
|
2648 Sun Jul 11 13:15:17 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2649 |
|
2650 * pr-output.cc (do_plus_format (ostream&, double)): New function. |
|
2651 (octave_print_internal (ostream&, double, bool)): Use it. |
|
2652 (octave_print_internal (ostream&, const Matrix&, bool, int)): Ditto. |
|
2653 |
|
2654 * pr-output.cc (do_plus_format (ostream&, const Complex&)): |
|
2655 New function. |
|
2656 (octave_print_internal (ostream&, const Complex&, bool)): Use it. |
|
2657 (octave_print_internal (ostream&, const ComplexMatrix&, bool, int)): |
|
2658 Ditto. |
|
2659 |
|
2660 Sun Jun 20 23:04:00 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2661 |
|
2662 * sysdep.cc: Include sys/ioctl.h if available. |
|
2663 |
|
2664 Sat Jun 19 12:07:16 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2665 |
|
2666 * variables.cc (do_who): Make pattern and multiple non-option |
|
2667 arguments work. |
|
2668 |
3246
|
2669 Mon Jun 7 09:54:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2670 |
|
2671 * lex.l (next_token_is_bin_op, next_token_is_postfix_unary_op, |
|
2672 handle_number): Delete yytext arg. Change all callers. |
|
2673 (next_token_is_postfix_unary_op): Check the first character |
|
2674 obtained from yyinput before calling it again. |
|
2675 (next_token_is_bin_op): Do a more thorough check. |
|
2676 (handle_identifier): Also enter token in local symbol table if the |
|
2677 following token is a dot and it looks like a binary operator. |
|
2678 (whitespace_in_literal_matrix): Now static. |
|
2679 |
|
2680 * lex.l: Always use unput, not yyunput. |
|
2681 |
3244
|
2682 Fri May 28 11:02:37 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2683 |
|
2684 * DLD-FUNCTIONS/chol.cc (Fchol): If two output arguments, never |
|
2685 produce error message. |
|
2686 |
3243
|
2687 Thu May 27 18:28:35 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2688 |
|
2689 * DLD-FUNCTIONS/chol.cc (Fchol): Also return info as second output. |
|
2690 |
|
2691 * DLD-FUNCTIONS/minmax.cc (max (const ComplexMatrix&, const |
|
2692 ComplexMatrix&)): Correct test for real columns only. |
|
2693 (min (const ComplexMatrix&, const ComplexMatrix&)): Likewise. |
|
2694 |
|
2695 Wed Apr 14 12:54:25 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2696 |
|
2697 * DLD-FUNCTIONS/dassl.cc (Fdassl): Prevent recursive calls. |
|
2698 * DLD-FUNCTIONS/fsolve.cc (Ffsolve): Likewise. |
|
2699 * DLD-FUNCTIONS/lsode.cc (Flsode): Likewise. |
|
2700 * DLD-FUNCTIONS/quad.cc (Fquad): Likewise. |
|
2701 |
|
2702 * file-io.cc (Fsscanf, Ffscanf): Doc fix. |
|
2703 |
3239
|
2704 Sat Mar 27 11:07:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2705 |
|
2706 * ov.h (octave_value::count): New function. |
|
2707 * symtab.cc (symbol_record::dump_symbol_info): New function. |
|
2708 * symtab.cc (symbol_record::symbol_def::dump_symbol_info): Ditto. |
|
2709 * variables.cc (F__dump_symbol_info__): Ditto. |
|
2710 |
|
2711 * pt-misc.cc (tree_parameter_list::clear): New function. |
|
2712 * ov-usr-fcn.h (octave_user_function::clear_args_passed): Ditto. |
|
2713 * ov-usr-fcn.cc (clear_param_list): New function. |
|
2714 (clear_args_passed): New function. |
|
2715 (octave_user_function::do_index_op): Use them to decrement |
|
2716 reference counts on local variables. |
|
2717 |
3238
|
2718 Fri Mar 26 00:51:53 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2719 |
|
2720 * Makefile.in (libraries): Use the libfoo.a(objects) method of |
|
2721 creating static libs. |
|
2722 |
|
2723 * defaults.cc (symbols_of_defaults): Initialize LOADPATH to |
|
2724 Vload_path, not ":". |
|
2725 |
|
2726 Thu Mar 18 12:09:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2727 |
|
2728 * data.cc (Fisnumeric): Fix typo. |
|
2729 |
|
2730 Thu Mar 4 02:17:04 1999 James Macnicol <jamesm@evans.ee.adfa.oz.au> |
|
2731 |
|
2732 * file-io.cc (Ffread, Ffwrite): Add uint16 and uint32 data types |
|
2733 to doc string. |
|
2734 |
|
2735 Wed Mar 3 11:55:17 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2736 |
|
2737 * lex.l (handle_string): Allow "" to pass through unchanged if |
|
2738 working on a gset command. |
|
2739 |
|
2740 Tue Mar 2 01:36:29 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2741 |
|
2742 * variables.cc (Fexist): If a variable isn't defined, only go on |
|
2743 to look for a global by the same name if we are at the top level. |
|
2744 |
|
2745 Fri Jan 29 02:18:36 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2746 |
|
2747 * version.h (OCTAVE_NAME_AND_VERSION): Say `GNU Octave', not just |
|
2748 Octave. |
|
2749 |
3234
|
2750 Thu Jan 28 21:29:16 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2751 |
|
2752 * toplev.cc (Fcomputer): Use CANONICAL_HOST_TYPE, not TARGET_HOST_TYPE. |
|
2753 (octave_config_info): Likewise. |
|
2754 * version.h: Ditto. |
|
2755 |
|
2756 * sysdep.cc (Fpause): Flush output before getting user input. |
|
2757 |
3233
|
2758 Wed Jan 27 14:18:29 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2759 |
|
2760 * Makefile.in (DEFFUN_PATTERN, DEFVAR_PATTERN): Use egrep again. |
|
2761 Make the patterns work with stupid egreps that don't like empty |
|
2762 elements in alternation patterns. |
|
2763 |
|
2764 Fri Jan 22 04:41:48 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2765 |
|
2766 * load-save.cc (save_ascii_data): Check for string type first, |
|
2767 then range, then the rest. |
|
2768 (save_binary_data): Ditto. |
|
2769 |
|
2770 * pager.cc (more_than_a_screenful): Accept length as second arg. |
|
2771 Handle long lines properly, assuming the terminal wraps long lines. |
|
2772 (octave_pager_buf::do_sync): Accept length of data as second arg. |
|
2773 Use write instead of << to put characters on output stream. |
|
2774 (octave_pager_buf::sync): Don't assume data ends at first NUL. |
|
2775 (octave_diary_buf::sync): Ditto. |
|
2776 |
|
2777 Thu Jan 21 22:15:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2778 |
|
2779 * load-save.cc (save_mat_binary_data): Check for string type |
|
2780 first, then range, then the rest. |
|
2781 |
|
2782 Wed Jan 20 12:01:14 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2783 |
|
2784 * oct-stream.cc (octave_base_stream::do_scanf): Handle short and |
|
2785 long ints correctly. |
|
2786 |
|
2787 Fri Jan 15 13:04:58 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2788 |
|
2789 * parse.y (end_error): Handle case of endswitch too. |
|
2790 |
|
2791 * Makefile.in: Use basic regular expressions and grep instead of |
|
2792 egrep to find files that contain DEFVAR, DEFCONST, or DEFUN. |
|
2793 |
|
2794 Wed Dec 9 14:14:11 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2795 |
|
2796 * Makefile.in (octave): Add $(RDYNAMIC_FLAG) to link command. |
|
2797 |
|
2798 Fri Dec 4 20:26:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2799 |
|
2800 * DLD-FUNCTIONS/time.cc (Fstrftime): Make it work even when not |
|
2801 using the GNU version of strftime, which allows passing NULL for |
|
2802 the buffer to determine the required size of the buffer. |
|
2803 |
3225
|
2804 Wed Dec 2 22:38:40 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2805 |
|
2806 * utils.cc (file_in_loadpath): Expect argc == 2, not 3. |
|
2807 |
|
2808 Tue Nov 24 23:38:19 1998 Eric Norum <eric@skatter.USask.Ca> |
|
2809 |
|
2810 * mkbuiltins: Also strip off leading `./' from file names. |
|
2811 * mkops: Ditto. |
|
2812 |
|
2813 Tue Nov 24 23:24:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2814 |
|
2815 * strftime.c: Surround everything with #ifdef HAVE_STRFTIME / #endif. |
|
2816 |
|
2817 * lex.h (YY_FATAL_ERROR): Call yy_falta_error after |
|
2818 jump_to_top_level to avoid gcc warning. |
|
2819 |
|
2820 Fri Nov 20 13:34:47 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2821 |
|
2822 * ov-bool.h, ov-bool.cc (class octave_bool): Derive from |
|
2823 octave_base_scalar and get common functions via derivation. |
|
2824 * ov-scalar.h, ov-scalar.cc (class octave_scalar): Ditto. |
|
2825 * ov-complex.h, ov-complex.cc (class octave_complex): Ditto. |
|
2826 |
|
2827 * ov-base-scalar.h, ov-base-scalar.cc (class octave_base_scalar): |
|
2828 New files for new class definition. Put common scalar data type |
|
2829 stuff here. |
|
2830 * Makefile.in (OV_INCLUDES, OV_SRC): Add them to the lists. |
|
2831 |
3221
|
2832 Thu Nov 19 14:30:25 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
3225
|
2833 |
3222
|
2834 * dynamic-ld.cc (octave_dynamic_loader::mangle_name): |
|
2835 Prepend underscore here. |
|
2836 (octave_dynamic_loader::load_fcn_from_dot_oct_file): Not here. |
|
2837 |
3221
|
2838 * ov-re-mat.h (octave_matrix_value): Delete experimental code for |
|
2839 handling structure references for things like .rows, .cols, etc. |
|
2840 |
3220
|
2841 Wed Nov 18 01:18:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2842 |
3221
|
2843 * Makefile.in (VAR_FILES): Be more careful about matching. |
|
2844 (DEF_FILES): Likewise. |
|
2845 |
|
2846 * ov-base-mat.h, ov-base-mat.cc, ov-bool-mat.h, ov-bool-mat.cc, |
|
2847 ov-ch-mat.h, ov-ch-mat.cc, ov-cx-mat.h, ov-cx-mat.cc, |
|
2848 ov-re-mat.h, ov-re-mat.cc: Move default definition of all, any, |
|
2849 is_matrix_type, is_numeric_type, valid_as_zero_index, and |
|
2850 do_index_op to base class. |
|
2851 Provide definitions that override the defaults where necessary. |
3220
|
2852 |
|
2853 * mappers.cc: Don't include lo-specfun.h. |
|
2854 |
|
2855 Tue Nov 17 14:35:56 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2856 |
|
2857 * besselj.cc (Fbesselh, Fairy); New functions. |
|
2858 (Fbesselj, Fbessely, Fbesselk, Fbesseli): Update doc strings. |
|
2859 (do_bessel): Handle additional args. |
|
2860 |
|
2861 Fri Nov 13 14:47:11 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2862 |
|
2863 * lex.l (NUMBER): Allow hexadecimal constants. |
|
2864 (looks_like_hex): New function. |
|
2865 (handle_number): Check for hexadecimal constants and convert them |
|
2866 to unsigned integer values. |
|
2867 |
3219
|
2868 Thu Nov 12 11:13:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2869 |
|
2870 * input.cc (gnu_readline): Check for EOF from command_editor::readline. |
|
2871 |
|
2872 * ov-str-mat.h, ov-str-mat.cc (class octave_char_matrix_str): |
|
2873 Get common functions via new derivation scheme. |
|
2874 |
|
2875 * ov-bool-mat.h, ov-bool-mat.cc (class octave_bool_matrix): |
|
2876 Derive from octave_base_matrix and get common functions via derivation. |
|
2877 * ov-ch-mat.h, ov-ch-mat.cc (class octave_char_matrix): Ditto. |
|
2878 * ov-cx-mat.h, ov-cx-mat.cc (class octave_complex_matrix): Ditto. |
|
2879 * ov-re-mat.h, ov-re-mat.cc (class octave_real_matrix): Ditto. |
|
2880 |
|
2881 * ov-base-mat.h, ov-base-mat.cc (class octave_base_matrix): New |
|
2882 files for new class definition. Put common matrix data type |
|
2883 stuff here. |
|
2884 |
|
2885 * ov-list.cc (Fnth): New function. |
|
2886 |
|
2887 * ov-list.cc (octave_list::do_index_op): Allow more complex indexing. |
|
2888 |
|
2889 * oct-obj.cc (octave_value_list::index): New function. |
|
2890 (octave_value_list::octve_value_list (Array<octave_value>)): |
|
2891 New private constructor. |
|
2892 |
|
2893 * ov-list.cc (Fsplice): Fix docstring to match. |
|
2894 * oct-obj.cc (octave_value_list::splice): Allow special case |
|
2895 splice (x, length(x)+1, 0, y) to be equivalent to append (x, y). |
|
2896 |
|
2897 * ov-list.cc (Fappend): If an arg is a list, concatenate the lists |
|
2898 instead of appending arg as a single element. |
|
2899 |
|
2900 Wed Nov 11 14:07:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2901 |
|
2902 * load-save.cc (get_mat_data_input_line): New function. |
|
2903 (get_lines_and_columns): Use it here. |
|
2904 (read_mat_ascii_data): And here and do our own reading instead of |
|
2905 using Matrix::operator<<. |
|
2906 |
|
2907 Tue Nov 10 16:12:25 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2908 |
|
2909 * parse.y (make_constant): Initialize retval to 0. |
|
2910 |
|
2911 * toplev.h (clean_up_and_exit (void)): Delete declaration. |
|
2912 * toplev.cc (do_octave_atexit): Move guts of clean_up_for_exit |
|
2913 here, but ensure that the actions are only executed once. |
|
2914 * octave.cc (main): Don't register cleanup_tmp_files with atexit. |
|
2915 |
|
2916 * ov.h, ov.cc (class octave_value): Use DECLARE_OCTAVE_ALLOCATOR |
|
2917 and DEFINE_OCTAVE_ALLOCATOR for uniform declaration and definition |
|
2918 of allocator functions. Use DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA |
|
2919 and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA for uniform declaration |
|
2920 and definition of type id functions and data. |
|
2921 * ov-usr-fcn.h, ov-usr-fcn.cc (class octave_user_function): Ditto. |
|
2922 * ov-scalar.h, ov-scalar.cc (class octave_scalar): Ditto. |
|
2923 * ov-re-mat.h ov-re-mat.cc (class octave_matrix): Ditto. |
|
2924 * ov-range.h, ov-range.cc (class octave_range): Ditto. |
|
2925 * ov-mapper.h, ov-mapper.cc (class octave_mapper): Ditto. |
|
2926 * ov-list.h, ov-list.cc (class octave_list): Ditto. |
|
2927 * ov-file.h, ov-file.cc (class octave_file): Ditto. |
|
2928 * ov-fcn.h, ov-fcn.cc (class octave_function): Ditto. |
|
2929 * ov-cx-mat.h, ov-cx-mat.cc (class octave_complex_matrix): Ditto. |
|
2930 * ov-complex.h, ov-complex.cc (class octave_complex): Ditto. |
|
2931 * ov-ch-mat.h, ov-ch-mat.cc (octave_char_matrix): Ditto. |
|
2932 * ov-builtin.h, ov-builtin.cc (class octave_builtin): Ditto. |
|
2933 * ov-bool.h, ov-bool.cc (class octave_bool): Ditto. |
|
2934 * ov-bool-mat.h, ov-bool-mat.cc (octave_bool_matrix): Ditto. |
|
2935 |
|
2936 * ov.h (DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA): New macro. |
|
2937 (DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA): Ditto. |
|
2938 |
3215
|
2939 Mon Nov 9 16:12:37 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2940 |
|
2941 * pr-output.cc (octave_print_internal): Reorder default args for |
|
2942 charMatrix version. |
|
2943 (octave_print_internal): New function for boolMatrix. |
|
2944 |
|
2945 * version.h (OCTAVE_STARTUP_MESSAGE): Note that this is a |
|
2946 development release. |
|
2947 |
|
2948 * toplev.cc (do_octave_atexit): Call flush_octave_stdout here. |
|
2949 (clean_up_for_exit): And here. |
|
2950 |
|
2951 Mon Nov 9 15:20:53 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2952 |
|
2953 * input.cc (get_user_input): Check retval.length(), not retval.length. |
|
2954 |
|
2955 Sun Nov 8 19:30:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2956 |
|
2957 * pt-assign.cc (tree_simple_assignment::rvalue): If etype is |
|
2958 asn_eq, don't evaluate ult again because retval is just rhs value. |
|
2959 (tree_multi_assignment::rvalue): Likewise. |
|
2960 |
|
2961 Fri Nov 6 12:14:29 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2962 |
|
2963 * pt-loop.cc (tree_for_command::eval): Move code for string RHS |
|
2964 outside if clause for matrix types. |
|
2965 |
|
2966 * pt-idx.cc: Don't forget to define arg_nm. |
|
2967 Move contstructor here. |
|
2968 * pt-idx.h: From here. |
|
2969 |
|
2970 * data.cc (Fisempty): Also return true for empty strings. |
|
2971 |
3212
|
2972 Wed Nov 4 17:21:41 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2973 |
|
2974 * ov-base.cc (octave_base_value::rows, octave_base_value::columns, |
|
2975 octave_base_value::length): Delete. |
|
2976 * ov-base.h (octave_base_value::rows, octave_base_value::columns, |
|
2977 octave_base_value::length): Define here. All return -1 if not |
|
2978 defined in a derived class. |
|
2979 |
|
2980 * data.cc (Fis_matrix): Also return true if the arg is a range. |
|
2981 |
3209
|
2982 Tue Nov 3 09:40:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2983 |
|
2984 * data.cc (Fis_bool): New function. |
|
2985 Also add alias for islogical. |
|
2986 |
|
2987 * ov.h (octave_value::is_bool_type): New function. |
|
2988 * ov-base.h (octave_base_value::is_bool_type): Likewise. |
|
2989 * ov-bool.h (octave_bool::is_bool_type): Likewise. |
|
2990 * ov-bool-mat.h (octave_bool_matrix::is_bool_type): Likewise. |
|
2991 |
3206
|
2992 Mon Nov 2 13:36:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2993 |
3208
|
2994 * lex.l (handle_close_brace): Also handle case of ']' followed by |
|
2995 other assignment ops (+=, -=, ...). |
|
2996 |
|
2997 * pt-assign.cc (tree_simple_assignment::rvalue): Correctly handle |
|
2998 return value and printing for operators other than `='. |
|
2999 (tree_multi_assignment::rvalue): Likewise. |
|
3000 |
|
3001 * pt-assign.h (tree_multi_assignment::etype): New data member. |
|
3002 * pt-assign.cc (tree_multi_assignment::rvalue): Use it instead of |
|
3003 assuming `='. |
|
3004 (tree_multi_assignment::oper): New function. |
|
3005 * pt-pr-code.cc (tree_print_code::visit_multi_assignment): Use |
|
3006 it instead of always printing `='. |
|
3007 * parse.y (make_assign_op): Pass expression type to |
|
3008 tree_multi_assignment constructor. |
|
3009 |
3206
|
3010 * Makefile.in (stmp-pic): New target. |
|
3011 ($(PICOBJ)): Depend on stmp-pic, not pic. |
|
3012 (clean): Delete stmp-pic. |
|
3013 |
|
3014 Sun Nov 1 23:24:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3015 |
|
3016 * mappers.cc (install_mapper_functions): Add alias for isfinite. |
|
3017 |
|
3018 Sat Oct 31 08:46:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3019 |
|
3020 * data.cc (Fisnumeric): New function. |
|
3021 |
3203
|
3022 Fri Oct 30 08:39:30 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3023 |
3205
|
3024 * oct-lvalue.cc (octave_lvalue::do_unary_op): Make it work for |
|
3025 indexed ops too. |
|
3026 * ov.cc (octave_value::unary_op_to_assign_op): New function. |
|
3027 (octave_value::do_non_const_unary_op): New function for indexed ops. |
|
3028 |
3204
|
3029 * parse.y (LEFTDIV_EQ, ELEFTDIV_EQ): New tokens. |
|
3030 (assign_expr): Add rules for them. |
|
3031 (make_assign_op): Handle them here too. |
|
3032 * lex.l: Recognize them. |
|
3033 * ov.h (octave_value::assign_op): Add ldiv_eq and el_ldiv_eq. |
|
3034 * ov.cc (octave_value::assign_op_as_string): Ditto. |
|
3035 (octave_value::op_eq_to_binary_op): Ditto. |
|
3036 (octave_value::assign): Handle OP= style operators with brute force. |
|
3037 (octave_value::simple_assign): New function. |
|
3038 |
3203
|
3039 * parse.y (matrix): Dont' forget to reset |
|
3040 lexer_flags.looking_at_matrix_or_assign_lhs. |
|
3041 |
|
3042 * oct-lvalue.cc (octave_lvalue::assign): Don't call change |
|
3043 function if error occurs. |
|
3044 (octave_lvalue::do_unary_op): If we have an index, fail with message. |
|
3045 |
3202
|
3046 Thu Oct 29 09:27:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3047 |
3203
|
3048 * ov.cc (do_binary_op): Protect against invalid type conversions. |
|
3049 (try_assignment_with_conversion): Likewise. |
|
3050 (do_unary_op): Likewise. |
|
3051 |
|
3052 * ov.h (OV_UNOP_FN, OV_UNOP_OP, OV_UNOP_FN_OP): New macros. |
|
3053 Use them to define not, uminus, transpose, hermitian functions |
|
3054 and operators ! and -. |
|
3055 (OV_BINOP_FN, OV_BINOP_OP, OV_BINOP_FN_OP): New macros. |
|
3056 Use them to define add, sub, mul, div, pow, ldiv, lshift, rshift, |
|
3057 lt, le, eq, ge, gt, ne, el_mul, el_div, el_pow, el_ldiv, el_and, |
|
3058 el_or, struct_ref, functions and operators <, <=, ==, >=, >, !=, |
|
3059 +, -, *, and /. |
|
3060 |
|
3061 * ops.h (CONVDECLX): New macro. |
|
3062 * ov-base.cc (matrix_conv, complex_matrix_conv, string_conv): |
|
3063 Use it to declare these functions. |
|
3064 |
|
3065 * ops.h (CONVDECL, INSTALL_WIDENOP): |
|
3066 Prefix function name with `oct_conv_'. |
|
3067 (INSTALL_BINOP, BINOPDECL): Prefix function name with `oct_binop_'. |
|
3068 (INSTALL_ASSIGNOP, INSTALL_ASSIGNANYOP, ASSIGNOPDECL): |
|
3069 Prefix function name with `oct_assignop_'. |
|
3070 (UNOPDECL, DEFNCUNOP_METHOD, INSTALL_UNOP, INSTALL_NCUNOP): |
|
3071 Prefix function name with `oct_unop_'. |
|
3072 |
|
3073 * ov-str-mat.cc (default_numeric_conversion_function): |
|
3074 Return 0 if conversion fails. |
|
3075 |
|
3076 * parse.y (make_prefix_op, make_postfix_op): Use |
|
3077 octave_value::unary_op enum. |
|
3078 |
|
3079 * pt-unop.cc (tree_prefix_expression::rvalue): Use new unary_op |
|
3080 functions from octave_value and octave_lvalue classes. |
|
3081 (tree_prefix_expression::rvalue): Likewise. |
|
3082 |
|
3083 * pt-unop.cc (tree_unary_expression::oper): Move here. |
|
3084 (tree_prefix_expression::oper, tree_postfix_expression): From here. |
|
3085 |
|
3086 * pt-unop.h (tree_prefix_expression, tree_postfix_expression): |
|
3087 Delete enums. |
|
3088 (tree_unary_expression): Use octave_value::unary_op enum. |
|
3089 * parse.y (make_prefix_op, make_postfix_op): Likewise. |
|
3090 |
|
3091 * oct-lvalue.h (octave_lvalue::do_unary_op): New function. |
|
3092 (octave_lvalue::increment, octave_lvalue::decrement): Delete. |
|
3093 |
|
3094 * ov-typeinfo.h (octave_value_typeinfo::non_const_unary_ops): |
|
3095 New data member. |
|
3096 * ov-typeinfo.h (octave_value_typeinfo::lookup_non_const_unary_op): |
|
3097 New function. |
|
3098 * ov-typeinfo.cc (octave_value_typeinfo::register_non_const_unary_op): |
|
3099 New function. |
|
3100 (octave_value_typeinfo::do_register_non_const_unary_op): Ditto. |
|
3101 (octave_value_typeinfo::do_lookup_non_const_unary_op): Ditto. |
|
3102 |
|
3103 * ov.cc (octave_value::do_non_const_unary_op): New function. |
|
3104 |
|
3105 * Makefile.in (OP_XSRC): Add op-chm.cc and op-range.cc to the list. |
|
3106 |
|
3107 * OPERATORS/op-str-str.cc: Define string matrix unary operators here. |
|
3108 (install_str_str_ops): Install them here. |
|
3109 * ov-bool-mat.h (octave_bool_matrix::transpose, |
|
3110 octave_bool_matrix_value::hermitian): Delete. |
|
3111 |
|
3112 * OPERATORS/op-chm.cc: New file. Define char matrix unary operators. |
|
3113 (install_chm_ops): Install them here. |
|
3114 * ov-ch-mat.h (octave_char_matrix::transpose, |
|
3115 octave_char_matrix_value::hermitian): Delete. |
|
3116 * ops.cc (install_ops): Call install_chm_ops. |
|
3117 |
|
3118 * OPERATORS/op-bm-bm.cc: Define bool matrix unary operators here. |
|
3119 (install_bm_bm_ops): Install them here. |
|
3120 * ov-bool-mat.h (octave_bool_matrix::transpose, |
|
3121 octave_bool_matrix_value::hermitian): Delete. |
|
3122 |
|
3123 * ov-bool.h (octave_bool::not, octave_bool::uminus, |
|
3124 octave_bool::transpose, octave_bool::hermitian): Delete. |
|
3125 |
|
3126 * OPERATORS/op-cs-cs.cc: Define complex scalar unary operators here. |
|
3127 (install_cs_cs_ops): Install them here. |
|
3128 * ov-complex.h (octave_complex::not, octave_complex::uminus, |
|
3129 octave_complex::transpose, octave_complex::hermitian): Delete. |
|
3130 |
|
3131 * OPERATORS/op-cm-cm.cc: Define complex matrix unary operators here. |
|
3132 (install_cm_cm_ops): Install them here. |
|
3133 * ov-cx-mat.h (octave_complex_matrix::not, |
|
3134 octave_complex_matrix::uminus, octave_complex_matrix::transpose, |
|
3135 octave_complex_matrix::hermitian): Delete. |
|
3136 |
|
3137 * OPERATORS/op-m-m.cc: Define matrix unary operators here. |
|
3138 (install_m_m_ops): Install them here. |
|
3139 * ov-re-mat.h (octave_matrix::not, octave_matrix::uminus, |
|
3140 octave_matrix::transpose, octave_matrix::hermitian): Delete. |
|
3141 |
|
3142 * OPERATORS/op-range.cc: New file. Define range unary operators. |
|
3143 (install_range_ops): Install them here. |
|
3144 * ov-range.h (octave_range::not, octave_range::uminus, |
|
3145 octave_range::transpose, octave_range::hermitian): Delete. |
|
3146 * ops.cc (install_ops): Call install_range_ops. |
|
3147 |
|
3148 * OPERATORS/op-s-s.cc: Define scalar unary operators here. |
|
3149 (install_s_s_ops): Install them here. |
|
3150 * ov-scalar.h (octave_scalar::not, octave_scalar::uminus, |
|
3151 octave_scalar::transpose, octave_scalar::hermitian): Delete. |
|
3152 |
|
3153 * ops.h (INSTALL_UNOP, CAST_UNOP_ARG, UNOPDECL, DEFUNOPX, DEFUNOP, |
|
3154 DEFUNOP_OP, DEFUNOP_FN): New macros. |
|
3155 |
|
3156 * ov.h (unary_op_fcn): New typedef. |
|
3157 (octave_value::unary_op): New enum. |
|
3158 * ov.cc (octave_value::octave_value): New function. |
|
3159 |
|
3160 * ov.h (octave_value::not, octave_value::uminus, |
|
3161 octave_value::transpose, octave_value::hermitian, |
|
3162 octave_value::increment, octave_value::decrement): Delete. |
|
3163 |
|
3164 * ov-base.cc (octave_base_value::not, octave_base_value::uminus, |
|
3165 octave_base_value::transpose, octave_base_value::hermitian, |
|
3166 octave_base_value::increment, octave_base_value::decrement): Delete. |
|
3167 |
|
3168 * ov.cc (gripe_unary_op): New function. |
|
3169 (do_unary_op): New function. |
|
3170 * ov-typeinfo.h (octave_value_typeinfo::unary_ops): |
|
3171 New data member. |
|
3172 * ov-typeinfo.cc (octave_value_info::register_unary_op, |
|
3173 octave_value_info::do_register_unary_op, |
|
3174 octave_value_info::lookup_unary_op, |
|
3175 octave_value_info::do_lookup_unary_op): |
|
3176 New functions. |
|
3177 |
3202
|
3178 * ov-list.cc (Fsplice): Use new octave_value::int_value function here. |
|
3179 (octave_list::do_index_op): Likewise. |
|
3180 (octave_list::assign): Likewise. |
|
3181 * toplev.cc (Fquit): Likewise. |
|
3182 * syscalls.cc (Fwaitpid): Likewise. |
|
3183 (Ffcntl): Likewise. |
|
3184 * file-io.cc (do_fread): Likewise. |
|
3185 (do_fwrite): Likewise. |
|
3186 * data.cc (make_diag): Likewise. |
|
3187 (Fsize): Likewise. |
|
3188 (get_dimensions): Likewise. |
|
3189 (Flinspace): |
|
3190 |
|
3191 * ov-base.cc (octave_base_value::int_value): New function. |
|
3192 (octave_base_value::nint_value): Ditto. |
|
3193 * ov.h (octave_value::int_value): Ditto. |
|
3194 (octave_value::nint_value): Ditto. |
|
3195 |
|
3196 * ov-list.cc (octave_list::assign): Fix off-by-one error. |
|
3197 |
3196
|
3198 Wed Oct 28 11:01:37 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3199 |
3202
|
3200 * load-save.cc (read_mat_ascii_data): Try harder to convert file |
|
3201 name to valid variable name. |
|
3202 |
|
3203 * data.cc (Fisempty, Fis_matrix): New functions. |
|
3204 |
|
3205 * ov-str-mat.h (octave_char_matrix_str::is_matrix_type): New function. |
|
3206 |
3196
|
3207 * OPERATORS/op-list.cc: New file. |
|
3208 * Makefile.in (OP_XSRC): Add it to the list. |
|
3209 |
|
3210 * ov-list.cc (octave_list::assign): New function. |
|
3211 |
|
3212 * ov-typeinfo.h (octave_value_typeinfo::assignany_ops): |
|
3213 New data member. |
|
3214 * ov-typeinfo.cc (octave_value_info::register_assignany_op, |
|
3215 octave_value_info::do_register_assignany_op, |
|
3216 octave_value_info::lookup_assignany_op, |
|
3217 octave_value_info::do_lookup_assignany_op): |
|
3218 New functions. |
|
3219 * ov.cc (octave_value::try_assignment (octave_value::assign_op, |
|
3220 const octave_value_list&, const octave_value&)): If no assignment |
|
3221 operator for particular RHS type exists, try finding one for |
|
3222 generic octave_value as RHS type. |
|
3223 * ops.h (DEFASSIGNANYOP_FN): New macro. |
|
3224 |
|
3225 * ov-list.cc (Fsplice): New function. |
|
3226 * oct-obj.cc (octave_value_list::splice): New function. |
|
3227 |
|
3228 * ov.cc (Vresize_on_range_error): No longer static. |
|
3229 * ov.h (Vresize_on_range_error): Provide extern declaration. |
|
3230 |
|
3231 * oct-procbuf.cc (symbols_of_oct_procbuf): Don't declare static. |
|
3232 |
|
3233 * data.cc (Flength): New function. |
|
3234 * ov.h (octave_value::length): New virtual function. |
|
3235 * ov-base.cc (octave_base_value::length): New function. |
|
3236 (octave_base_value::rows, octave_base_value::columns): Move |
|
3237 definitions here, from ov-base.h. Don't return -1. Instead, |
|
3238 gripe about wrong argument type. |
|
3239 * ov-bool-mat.h (octave_bool_matrix::length): New function. |
|
3240 * ov-bool.h (octave_bool::length): Ditto. |
|
3241 * ov-ch-mat.h (octave_char_matrix::length): Ditto. |
|
3242 * ov-complex.h (octave_complex::length): Ditto. |
|
3243 * ov-cx-mat.h (octave_complex_matrix::length): Ditto. |
|
3244 * ov-list.h (octave_list::length): Ditto. |
|
3245 * ov-range.h (octave_range::length): Ditto. |
|
3246 * ov-re-mat.h (octave_matrix::length): Ditto. |
|
3247 * ov-scalar.h (octave_scalar::length): Ditto. |
|
3248 |
|
3249 Tue Oct 27 22:19:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3250 |
|
3251 * ov-list.cc (octave_list::print_raw): Handle case of empty list. |
|
3252 (octave_list::print_name_tag): Likewise. |
|
3253 |
|
3254 * octave.cc (intern_argv): Built-in variable argv is now a list of |
|
3255 strings instead of a string vector. |
|
3256 Always bind argv, making it an empty list if there are no args. |
|
3257 |
|
3258 Mon Oct 26 08:41:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3259 |
|
3260 * xdiv.cc (mx_leftdiv_conform): Explicitly declare args to be |
|
3261 passed as references to const objects. Fix explicit instantiation |
|
3262 requests to match. |
|
3263 (mx_div_conform): Likewise. |
|
3264 |
|
3265 * pt-unop.h (tree_prefix_expression): Reorder constructor args to |
|
3266 put those with default values last. |
|
3267 (tree_postfix_expression): Likewise. |
|
3268 * parse.y: Change all callers. |
|
3269 |
3192
|
3270 Fri Oct 23 12:07:32 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3271 |
3196
|
3272 * utils.cc (Ffile_in_loadpath): New function. |
|
3273 |
|
3274 * defaults.cc (Vload_path, Vdefault_load_path): Now static. |
|
3275 |
|
3276 * help.cc (simple_help): Use Vload_path_dir_path here instead of |
|
3277 trying to reconstruct it from Vload_path. |
|
3278 * fn-cache.cc (octave_fcn_file_name_cache::do_list): Likewise. |
|
3279 (octave_fcn_file_name_cache::update): Likewise. |
|
3280 |
|
3281 * defaults.cc (octave_loadpath): Construct Vload_path_dir_path |
|
3282 using Vdefault_load_path. |
|
3283 (set_default_path): Likewise. |
|
3284 |
|
3285 * defaults.h, defaults.cc (maybe_add_default_load_path): Delete. |
|
3286 |
3192
|
3287 * defaults.cc (Vdefault_load_path): New static variable. |
|
3288 (set_default_path): Set it. |
|
3289 (maybe_add_default_load_path): Use it. |
|
3290 (symbols_of_defaults): Add DEFCONST for DEFAULT_LOADPATH. |
|
3291 Thanks to Rafael Laboissiere <rafael@icp.inpg.fr>. |
|
3292 |
|
3293 * defaults.cc (set_default_path): If OCTAVE_PATH is set in the |
|
3294 environment, call maybe_add_default_load_path on it. |
|
3295 |
|
3296 Tue Oct 20 20:58:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3297 |
|
3298 * defaults.cc (maybe_add_default_load_path): If LOADPATH contains |
|
3299 an embedded "::", insert the default path there too. |
|
3300 |
3189
|
3301 Fri Oct 16 00:52:15 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3302 |
|
3303 * parse.y (in_matrix_or_assign_lhs): New subroutine for lexical |
|
3304 feedback. |
|
3305 (matrix): Use it. |
|
3306 (assign_lhs): Ditto. |
|
3307 * lex.h (lexical_feedback::looking_at_matrix_or_assign_lhs): New |
|
3308 data member. |
|
3309 * lex.l (handle_identifier): Use it to handle keywords like `cd' |
|
3310 as variables in contexts like [ab, cd] = foo (). |
|
3311 |
|
3312 * ov-str-mat.h |
|
3313 (octave_char_matrix_str::octave_char_matrix_str (char c)): |
|
3314 New constructor. |
|
3315 * ov-ch-mat.h (octave_char_matrix::octave_char_matrix (char c)): |
|
3316 New constructor. |
|
3317 * ov.cc (octave_value::octave_value (char c): New constructor. |
|
3318 |
|
3319 * pt-loop.cc (tree_simple_for_command::eval): Handle case of RHS |
|
3320 as string. |
|
3321 |
|
3322 Thu Oct 15 00:56:47 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3323 |
|
3324 * DLD-FUNCTIONS/rand.cc: Declare Fortran subroutines as returning |
|
3325 int, not int*. |
|
3326 |
|
3327 Wed Oct 14 23:51:31 1998 Georg Thimm <thimm@idiap.ch> |
|
3328 |
|
3329 * load-save.cc (Vcrash_dumps_octave_core): New static variable. |
|
3330 (save_user_variables): Only save variables if |
|
3331 Vcrash_dumps_octave_core is true. |
|
3332 (symbols_of_load_save): Add DEFVAR for it here. |
|
3333 (crash_dumps_octave_core): New function. |
|
3334 * octave.cc (maximum_braindamage): Bind crash_dumps_octave_core to |
|
3335 0.0 here. |
|
3336 |
|
3337 Tue Oct 13 22:05:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3338 |
|
3339 * input.cc (read_readline_init_file): New function. |
|
3340 |
|
3341 Thu Oct 8 13:47:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3342 |
|
3343 * oct-procbuf.h (octave_procbuf::wstatus): New data member. |
|
3344 Initialize in constructors. |
|
3345 (octave_procbuf::wait_status): New member function. |
|
3346 * oct-procbuf.cc (octave_procbuf::sys_close): Use class data |
|
3347 member wstatus, not local variable. |
|
3348 * procstream.cc (procstreambase::close): Don't call sys_close directly. |
|
3349 Get subprocess exit status by calling wait_status for our procbuf. |
|
3350 * pt-plot.cc (close_plot_stream): Send "quit" command to gnuplot |
|
3351 before deleting plot_stream. |
|
3352 |
|
3353 |
|
3354 Thu Oct 1 22:39:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3355 |
|
3356 * data.cc (Fis_complex): New function. |
|
3357 |
3185
|
3358 Fri Sep 25 11:50:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3359 |
|
3360 * load-save.cc (write_header): Rename from write_binary_header. |
|
3361 Also write header for Octave ASCII files. |
|
3362 |
|
3363 * load-save.cc (Fsave): Implement -append option. |
|
3364 |
|
3365 * defaults.cc (Frehash): New function. |
|
3366 |
|
3367 Fri Sep 25 11:50:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3368 |
|
3369 * help.cc (help_from_info): Improve error message in case that |
|
3370 info doesn't work. |
|
3371 |
3180
|
3372 Thu Sep 24 10:48:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3373 |
3185
|
3374 * Makefile.in (DLD_XSRC): Replace qzval.cc with qz.cc |
|
3375 |
|
3376 * DLD-FUNCTIONS/balance.cc: Update from A. S. Hodel |
|
3377 <scotte@eng.auburn.edu>. |
|
3378 |
|
3379 * DLD-FUNCTIONS/qz.cc: New file. |
|
3380 |
|
3381 * DLD-FUNCTIONS/qzval.cc: Delete. |
|
3382 |
3180
|
3383 * parse.y (plot_command1): Don't allow it to be empty. |
|
3384 (plot_command): Handle simple `PLOT' and `PLOT ranges' as special |
|
3385 cases here. |
|
3386 |
|
3387 Wed Sep 23 21:10:08 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3388 |
|
3389 * lex.l: Change <MATRIX>{SNLCMT}*\n{SNLCMT}* pattern |
|
3390 to <MATRIX>{S}*{COMMENT}{SNLCMT}* | <MATRIX>{S}*{NL}{SNLCMT}*. |
|
3391 |
|
3392 Fri Sep 4 10:50:00 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3393 |
|
3394 * file-io.cc (Ffwrite): Fix doc string. |
|
3395 |
|
3396 Wed Sep 2 16:22:23 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3397 |
|
3398 * input.cc (match_sans_spaces): Make it work. |
|
3399 |
|
3400 * toplev.cc (quit): Require nargout == 0. |
|
3401 |
|
3402 * input.cc (get_user_input): Only try matching "exit", "quit", and |
|
3403 "return" if debugging. |
|
3404 |
|
3405 Tue Sep 1 12:50:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3406 |
|
3407 * octave.cc: Use -H as single character equivalent of --no-history. |
|
3408 |
|
3409 Sat Aug 29 12:23:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3410 |
|
3411 * oct-obj.cc (octave_value_list::make_argv): If some values are |
|
3412 string vectors, insert all the elements, not just the first. |
|
3413 |
|
3414 Tue Aug 18 16:39:50 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3415 |
|
3416 * oct-stream.cc (octave_base_stream::do_gets): Accept last line of |
|
3417 file even if it doesn't end in a newline character. |
|
3418 |
|
3419 Tue Aug 18 16:25:49 1998 Mumit Khan <khan@xraylith.wisc.edu> |
|
3420 |
|
3421 * xdiv.cc (mx_leftdiv_conform, mx_div_conform): Instantiate correct |
|
3422 templates. |
|
3423 |
|
3424 Thu Jul 30 00:37:43 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3425 |
|
3426 * pt-loop.cc (tree_for_command::eval): Check for range first. |
|
3427 If error occurs when extracting matrix value, return early. |
|
3428 Don't bother to check for string type. |
|
3429 |
|
3430 * ov-ch-mat.h (octave_char_matrix::is_real_matrix): New function. |
|
3431 |
|
3432 Tue Jun 23 15:09:54 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3433 |
|
3434 * parse.y (clear_current_script_file_name): New function. |
|
3435 (parse_fcn_file): Bind current_script_file_name while script is |
|
3436 executing. Use unwind_protect to clear it once the script is |
|
3437 finished. |
|
3438 |
|
3439 * pt-plot.cc (Fgraw): New function. |
|
3440 |
3178
|
3441 Mon Jun 22 22:13:38 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3442 |
|
3443 * variables.cc (is_valid_function): Provide version that takes |
|
3444 function name as string. |
|
3445 |
|
3446 * parse.y (binary_expr): Fix thinko that resulted in incorrect |
|
3447 evaluation of -x^y. Thanks to Richard Allan Holcombe |
|
3448 <raholcom@unity.ncsu.edu>. |
|
3449 (feval): Don't attempt to copy nonexistent arg names. |
|
3450 |
|
3451 Mon Jun 22 21:35:50 1998 Richard Allan Holcombe <raholcom@unity.ncsu.edu> |
|
3452 |
|
3453 * xpow.cc (xpow): Improve efficiency for matrix^(scalar int) case. |
|
3454 |
|
3455 Thu Jun 4 12:42:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3456 |
|
3457 * ov-usr-fcn.cc (octave_user_function::octave_all_va_args): |
|
3458 If num_args_passed < num_named_args, create zero length list. |
|
3459 |
3176
|
3460 Thu May 14 16:23:15 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3461 |
|
3462 * DLD-FUNCTIONS/getrusage.cc: Include sys/types.h too. |
|
3463 |
|
3464 Mon May 11 00:38:45 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3465 |
|
3466 * pager.cc (Fdiary): Don't forget to set write_to_diary file if |
|
3467 just given a file name. |
|
3468 |
|
3469 * input.cc (octave_gets): Only send new line character to |
|
3470 octave_diary if current_input_line is empty or doesn't already end |
|
3471 with a new line character.. |
|
3472 Don't send input from function files or scripts to octave_diary. |
|
3473 |
3174
|
3474 Sun May 3 19:54:38 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3475 |
|
3476 * lex.l (reset_parser): Also call yyrestart if forced_interactive |
|
3477 is true, but not if input_from_startup_file is true. |
|
3478 |
|
3479 Tue Apr 28 14:06:20 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3480 |
|
3481 * oct-procbuf.cc (Vkluge_procbuf_delay): New static variable. |
|
3482 (kluge_procbuf_delay): New function. |
|
3483 (symbols_of_oct_procbuf): New function. |
|
3484 (octave_procbuf::open): Delay Vkluge_procbuf_delay microseconds |
|
3485 after forking. |
|
3486 |
|
3487 Thu Apr 23 15:41:08 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3488 |
|
3489 * defaults.cc (Vload_path_dir_path): New variable. |
|
3490 * utils.cc (file_in_path): Use it. |
|
3491 |
|
3492 * utils.cc (search_path_for_file): Undo previous change. |
|
3493 (file_in_path): Undo previous change. |
|
3494 * defaults.cc (loadpath): Undo previous change. Tilde expansion |
|
3495 is once again handled correctly by the code in |
|
3496 liboctave/pathsearch.cc. |
|
3497 |
|
3498 Mon Apr 20 21:50:34 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3499 |
|
3500 * data.cc (get_dimensions): Allow zeros ([], 3) to work, for |
|
3501 compatibility with Matlab. |
|
3502 |
|
3503 * dynamic-ld.cc [WITH_DL && ! HAVE_DLFCN_H]: Add declarations for |
|
3504 dlopen, dlerror, dlsym, and dlclose. |
|
3505 |
|
3506 * octave.gperf: Handle __FILE__ and __LINE__. |
|
3507 * lex.l (is_keyword): Likewise. |
|
3508 * Makefile.in (oct-gperf.h): Pass -D option to gperf. |
|
3509 Postprocess output of gperf to convert name of static variable |
|
3510 from lookup to gperf_lookup, to avoid conflict with our function |
|
3511 of the same name defined in variables.cc. |
|
3512 |
3168
|
3513 Sat Apr 18 20:17:10 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3514 |
|
3515 * help.cc (USE_GNU_INFO): Delete uses of this macro. |
|
3516 |
3167
|
3517 Thu Apr 16 01:00:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3518 |
|
3519 * dynamic-ld.cc: Only include dlfcn.h if HAVE_DLFCN_H. |
|
3520 |
3165
|
3521 Wed Apr 15 01:03:05 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3522 |
|
3523 * input.cc (Vlast_prompt_time): New global variable. |
|
3524 (octave_gets): Set it. |
3166
|
3525 * ov-fcn.h (octave_function::time_checked): New virtual function |
|
3526 (octave_function::mark_fcn_file_up_to_date): Ditto. |
3165
|
3527 * ov-usr-fcn.h (octave_user_function::time_checked): New function. |
|
3528 (octave_user_function::mark_fcn_file_up_to_date): Ditto. |
|
3529 (octave_user_function::t_checked): New data member. |
|
3530 * variables.cc (symbol_out_of_date): Only check file time stamp if |
|
3531 a prompt has been printed since the last time check. |
|
3532 |
|
3533 * pt-plot.h, pt-plot.cc (subplot_axes): New class. |
|
3534 (subplot): Handle axes. |
|
3535 (Vgnuplot_command_axes): New static variable. |
|
3536 (gnuplot_command_axes): New function. |
|
3537 (symbols_of_pt_plot): DEFVAR gnuplot_command_axes. |
|
3538 * pt-walk.h (tree_walker::visit_subplot_axes): New virtual function. |
|
3539 * parse.y (plot_options): Handle axes. |
|
3540 * lex.l (plot_axes_token): New function. |
|
3541 (is_keyword): Use it. |
|
3542 (is_plot_keyword): Recognize "axes" and "axis". |
|
3543 * lex.h (class lexical_feedback): New field, in_plot_axes. |
|
3544 (lexical_feedback::init): Reset it. |
|
3545 |
|
3546 Tue Apr 14 23:32:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3547 |
|
3548 * parse.y (parse_fcn_file): New arg, force_script. Change callers. |
|
3549 |
3164
|
3550 Fri Apr 10 11:01:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3551 |
|
3552 * help.cc (type): Also print values of variables. |
|
3553 |
3162
|
3554 Wed Apr 8 01:00:58 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3555 |
3164
|
3556 * pr-output.cc (set_format): Set scale to 1.0 if all elements are |
|
3557 int or inf or nan. |
|
3558 |
3162
|
3559 * parse.y (Vwarn_future_time_stamp): New variable. |
|
3560 (symbols_of_parse): Add DEFVAR for it. |
|
3561 (warn_future_time_stamp): New function. |
|
3562 (frob_function_def): Maybe warn about files with future time stamps. |
|
3563 |
|
3564 Thu Apr 2 20:43:45 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3565 |
|
3566 * pt-arg-list.cc (tree_argument_list::convert_to_const_vector): In |
|
3567 error messages, print element numbers starting with 1, not 0. |
|
3568 |
|
3569 Sat Mar 28 15:25:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3570 |
|
3571 * toplev.cc (clean_up_for_exit): New function. |
|
3572 (clean_up_and_exit): Use it. |
|
3573 * sighandlers.cc (my_friendly_exit): Call it instead of |
|
3574 clean_up_and_exit, then do default action for signal. |
|
3575 |
|
3576 * sighandlers.cc (octave_new_handler): Call my_friendly_exit with |
|
3577 signal set to SIGABRT if it is defined, or -1 otherwise. |
|
3578 |
|
3579 * error.cc (verror): Fix thinko in attempt to skip `error: ' tag |
|
3580 when buffering error messages. |
|
3581 * pt-except.cc (tree_try_catch::eval): Reset buffer_error_messages |
|
3582 here if just discarding unwind_protect frame. |
|
3583 |
|
3584 Wed Mar 18 12:35:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3585 |
|
3586 * xpow.cc (elem_xpow): For real-scalar .^ matrix case, result is |
|
3587 complex only if real-scalar is negative and matrix has some |
|
3588 non-integer values. |
|
3589 |
|
3590 Tue Mar 17 17:47:50 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3591 |
|
3592 * pt-plot.cc (Vgnuplot_command_plot, Vgnuplot_command_replot, |
|
3593 Vgnuplot_command_splot, Vgnuplot_command_using, |
|
3594 Vgnuplot_command_with, Vgnuplot_command_title, |
|
3595 Vgnuplot_command_end): New static variables. |
|
3596 (symbols_of_pt_plot): DEFVAR them. |
|
3597 (gnuplot_command_plot, gnuplot_command_replot, |
|
3598 gnuplot_command_splot, gnuplot_command_using, |
|
3599 gnuplot_command_with, gnuplot_command_title, |
|
3600 gnuplot_command_end): New functions. |
|
3601 (open_plot_stream, send_to_plot_stream, tree_plot_command::eval, |
|
3602 subplot_using::print, subplot_style::print, subplot::print, |
|
3603 do_external_plotter_cd, Fgset, Fgshow): Use them instead of the |
|
3604 GPLOT_CMD_PLOT, GPLOT_CMD_REPLOT, GPLOT_CMD_SPLOT, |
|
3605 GPLOT_CMD_USING, GPLOT_CMD_WITH, GPLOT_CMD_TITLE, and |
|
3606 GPLOT_CMD_END macros. |
|
3607 |
3160
|
3608 Fri Feb 27 12:25:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3609 |
|
3610 * help.cc (additional_help_message): Fix www address. |
|
3611 |
|
3612 Tue Feb 24 00:42:59 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3613 |
|
3614 * help.cc (simple_help): Put additional help message first. |
|
3615 (additional_help_message): Add information about web site and |
|
3616 mailing list. |
|
3617 |
3156
|
3618 Fri Feb 20 00:41:06 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3619 |
|
3620 * pt-plot.cc (GPLOT_CMD_REPLOT): Clear before replot. |
|
3621 |
|
3622 * Makefile.in: Better handling of lib flags for linking. |
|
3623 |
|
3624 Thu Feb 19 21:14:30 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3625 |
|
3626 * pt-decl.cc (Vinitialize_global_values): New static variable. |
|
3627 (initialize_global_variables): New function. |
|
3628 (symbols_of_pt_decl): New function. |
|
3629 DEFVAR Vinitialize_global_values and initialize_global_variables. |
|
3630 (tree_global_command::do_init): If initialize_global_variables is |
|
3631 not true and the variable doesn't have an explicit initializer, don't |
|
3632 initialize it. If we are giving it a default value, use the value |
|
3633 of the variable defualt_global_variable_value. |
|
3634 * octave.cc (maximum_braindamage): Set default_global_variable_value |
|
3635 and initialize_global_variables to Matlab-compatible values. |
|
3636 |
|
3637 Wed Feb 18 04:35:31 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3638 |
|
3639 * DLD-FUNCTIONS/besselj.cc: Rename from bessel.cc. |
|
3640 * Makefile.in (DLD_XSRC): Likewise. |
|
3641 |
|
3642 * syscalls.cc (Fvfork): Delete. |
|
3643 |
|
3644 * oct-procbuf.cc: Just use fork. |
|
3645 |
|
3646 * parse.y (feval): Provide version that takes function name |
|
3647 separate from other args. |
|
3648 * parse.h: Declare it. |
|
3649 |
|
3650 * oct-procbuf.cc (octave_procbuf::open): Move declaration of |
|
3651 child_std_end outside of child scope and declare volatile. |
|
3652 |
|
3653 Mon Feb 16 15:04:28 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3654 |
|
3655 * parse.y: Include cstdio, for SEEK_SET. |
|
3656 |
3153
|
3657 Thu Feb 12 22:07:00 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3658 |
|
3659 * system.c: New file. |
|
3660 * Makefile.in (SOURCES): Add it to the list. |
|
3661 |
3148
|
3662 Fri Feb 6 01:23:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3663 |
|
3664 * oct-stream.cc (octave_base_stream::file_number): Rename from fileno. |
|
3665 Change all uses. |
|
3666 |
|
3667 * fsolve.cc (fsolve_option_table): Add missing & to function names. |
|
3668 |
3145
|
3669 Thu Feb 5 02:27:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3670 |
3147
|
3671 * dirfns.cc (Fls): If first attempt at reading process output |
|
3672 fails, sleep once and try again. |
|
3673 * toplev.cc (run_command_and_return_output): Likewise. |
|
3674 |
|
3675 * oct-procbuf.cc (octave_procbuf::open): Use vfork if it is available. |
|
3676 |
|
3677 * syscalls.cc (Fvfork): New function. |
|
3678 |
3145
|
3679 * ov-bool-mat.cc: Only declare assign function if |
|
3680 CXX_NEW_FRIEND_TEMPLATE_DECL is not defined. |
|
3681 |
|
3682 * ov-base.h, ov-bool-mat.h, ov-bool.h, ov-ch-mat.h, ov-complex.h, |
|
3683 ov-cx-mat.h, ov-range.h, ov-re-mat.h, ov-scalar.h: Handle default |
|
3684 args for *_value functions consistently. |
|
3685 |
|
3686 * symtab.cc (maybe_list_cmp_fcn): Declare args as void*, not |
|
3687 void**, then use X_CAST. |
|
3688 |
|
3689 * OPERATORS/op-s-cm.cc: Include mx-cm-s.h. |
|
3690 |
|
3691 * defun-int.h: Include ov-builtin.h, ov-mapper.h, and symtab.h. |
|
3692 (install_builtin_mapper, install_builtin_function, |
|
3693 install_builtin_variable) Use specific types rather than void * in |
|
3694 declaration. |
|
3695 * defun.cc (install_builtin_mapper, install_builtin_function, |
|
3696 install_builtin_variable): Likewise. Eliminate casts. |
|
3697 |
|
3698 * load-save.cc (read_binary_data, read_mat_file_header, |
|
3699 save_binary_data): Use X_CAST, not static_cast. |
|
3700 * unwind-prot.h (unwind_protect::save_ptr): Likewise. |
|
3701 * Map.cc (goodCHptr, index_to_CHptr, CHptr_to_index): Likewise. |
|
3702 * dynamic-ld.cc (octave_dlopen_dynamic_loder::resolve_reference): |
|
3703 Likewise. |
|
3704 |
|
3705 * pt-mat.cc (tm_const::operator bool ()): |
|
3706 (tm_row_const::operator bool ()): Likewise. |
|
3707 * oct-stream.cc (printf_value_cache::operator bool ()): Likewise. |
|
3708 (scanf_format_list::operator bool ()): Likewise. |
|
3709 (printf_format_list::operator bool ()): Likewise. |
|
3710 (octave_stream::operator bool ()): Likewise. |
|
3711 |
|
3712 Wed Feb 4 13:08:29 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3713 |
|
3714 * DLD-FUNCTIONS/minmax.cc: Include cmath, not oct-math.h. |
|
3715 |
|
3716 * syscalls.cc (Fdup2): Convert stream to actual system file id. |
|
3717 |
|
3718 * oct-stream.cc (octave_base_stream::fileno, octave_stream::fileno): |
|
3719 New functions. |
|
3720 |
3141
|
3721 Tue Feb 3 00:24:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3722 |
|
3723 * defaults.cc (exec_path): Append Vbin_dir to std_path. |
|
3724 |
|
3725 * octave.cc (initialize_pathsearch): Set TEXMFDBS, not TEXMF. |
|
3726 Look for OCTAVE_DB_PATH in environment. |
|
3727 Simplify using Vdata_dir and Vlibexec_dir. |
|
3728 |
|
3729 * defaults.h.in (Vdata_dir, Vlibexecdir): Declare new vars. |
|
3730 defaults.cc: Define them. |
|
3731 (set_default_data_dir, set_default_libexecdir): New functions. |
|
3732 (install_defaults): Call them. |
|
3733 |
|
3734 * defaults.h.in (OCTAVE_LIBEXECDIR): Define. |
|
3735 |
|
3736 Mon Feb 2 02:43:16 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3737 |
|
3738 * Makefile.in (install, uninstall): Use $(octlibdir), not $(libdir). |
|
3739 Use mk-libdir-link. |
|
3740 |
|
3741 * defaults.h.in (OCTAVE_OCTLIBDIR): Substitute value. |
|
3742 (Vlib_dir): Delete declaration. |
|
3743 * defaults.cc (Vlib_dir): Delete. |
|
3744 (set_default_lib_dir): Delete. |
|
3745 (install_defaults): Don't call set_default_lib_dir. |
|
3746 (set_default_info_prog): If oct_info_prog is empty, set default to |
|
3747 "info" -- we expect it to be somewhere in the user's path. |
|
3748 |
|
3749 * defun.h (DEFCONST, DEFCONSTX): Eliminate inst_as_fcn and chg_fcn |
|
3750 args. Always pass true for inst_as_fcn and 0 for chg_fcn to |
|
3751 DEFVAR when creating built-in values like `e' or `stderr' that can |
|
3752 be redefined. Change all uses. |
|
3753 |
|
3754 * help.cc (Ftype): Handle script files too. |
|
3755 (Fwhich): Likewise. |
|
3756 |
3136
|
3757 Sat Jan 31 00:00:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3758 |
|
3759 * ov-ch-mat.cc (octave_char_matrix::is_true): Make it work. |
|
3760 * ov-str-mat.h, ov-str-mat.cc (octave_char_matrix_str::is_true): |
|
3761 Delete. |
|
3762 |
|
3763 * load-save.cc (read_ascii_data): Allow strings of length 0. |
|
3764 If we don't find data on the first call, fail with error message. |
|
3765 (do_load): Pass count of items read to read_ascii_data. |
|
3766 Allow `load foo xyz' to work when foo contains only numbers. |
|
3767 |
|
3768 Fri Jan 30 23:46:42 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3769 |
|
3770 * ov-str-mat.h (octave_char_matrix_str::all): Delete. |
|
3771 (octave_char_matrix_str::any): Delete. |
|
3772 * ov-ch-mat.h (octave_char_matrix::all, octave_char_matrix::any): |
|
3773 Call charMatrix::all, charMatrix::any. |
|
3774 |
|
3775 Thu Jan 29 16:25:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3776 |
|
3777 * load-save.cc (read_mat_binary_data): Handle third digit of MOPT |
|
3778 as flag indicating row or column major ordering. |
|
3779 |
3131
|
3780 Wed Jan 28 00:18:17 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3781 |
|
3782 * DLD-FUNCTIONS/dassl.cc (lsode_option_table): |
|
3783 Add missing & to function names. |
|
3784 * DLD-FUNCTIONS/lsode.cc (lsode_option_table): Likewise. |
|
3785 * DLD-FUNCTIONS/quad.cc (quad_option_table): Likewise. |
|
3786 |
|
3787 * Makefile.in (oct-gperf.h): Add -G option to gperf. |
|
3788 |
|
3789 * load-save.cc (get_save_type): Add `UL' and `L' suffixes to large |
|
3790 constant values. For LS_INT, use <= and >= for comparison. |
|
3791 |
|
3792 Mon Jan 26 13:17:59 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3793 |
|
3794 * ov-usr-fcn.cc (Vmax_recursion_depth): New static variable. |
|
3795 (max_recursion_depth): New fucnction |
|
3796 (symbols_of_ov_usr_fcn): DEFVAR max_recursion_depth. |
|
3797 (octave_user_function::do_index_op): Check Vmax_recursion_depth. |
|
3798 |
3130
|
3799 Thu Jan 22 13:45:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3800 |
|
3801 * dynamic-ld.cc (make_dynamic_loader): Fix typo. |
|
3802 |
|
3803 Tue Jan 20 17:02:19 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3804 |
|
3805 * variables.cc (Fexist): If local symbol is undefined, check |
|
3806 global table. |
|
3807 |
|
3808 * pr-output.cc (pr_max_internal): Initial value for result is |
|
3809 -DBL_MAX, not DBL_MIN. |
|
3810 |
3125
|
3811 Thu Jan 8 11:54:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3812 |
|
3813 * xpow.cc (elem_xpow): If second arg of pow is complex, make sure |
|
3814 first arg is also complex. |
|
3815 |
|
3816 * symtab.cc (symbol_table::rename): Properly insert new item at |
|
3817 the front of the list to avoid losing the rest of the items. |
|
3818 |
|
3819 Thu Dec 11 23:30:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3820 |
|
3821 * variables.cc (Fclear): Increment index to skip -x arg. |
|
3822 |
3124
|
3823 Tue Dec 9 02:45:35 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3824 |
|
3825 * Makefile.in (INCLUDES): Don't forget Pix.h. |
|
3826 |
|
3827 * BaseSLList.cc: Don't include nonstandard libg++ header files. |
|
3828 |
3119
|
3829 Sun Nov 30 14:58:56 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3830 |
3124
|
3831 * pr-output.cc: Include cmath, not oct-math. |
|
3832 * sysdep.cc: Likewise. |
|
3833 |
3119
|
3834 * DLD-FUNCTIONS/bessel.cc: New file. |
|
3835 * Makefile.in (DLD_XSRC): Add it to the list. |
|
3836 |
3113
|
3837 Thu Nov 27 23:28:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3838 |
|
3839 * lex.l (handle_string): Constructor for string class takes |
|
3840 (size_t, char) args, not (char, size_t). |
|
3841 |
3111
|
3842 Wed Nov 26 00:39:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3843 |
|
3844 * Makefile.in (OCTAVE_LIBS): Include $(SPECIAL_MATH_LIB) just |
|
3845 ahead of -lcruft. |
|
3846 |
3110
|
3847 Thu Nov 20 15:16:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3848 |
|
3849 * octave.cc (maximum_braindamage): Bind implicit_num_to_str_ok to 1. |
|
3850 * pt-mat.cc (Vimplicit_num_to_str_ok): New static variable. |
|
3851 (implicit_num_to_str_ok): New function. |
|
3852 (symbols_of_pt_mat): DEFVAR implicit_num_to_str_ok. |
|
3853 (tm_row_const::some_str): New data member. |
|
3854 (tm_row_const::some_strings_p): New function. |
|
3855 (tm_row_const::init): Set some_str. |
|
3856 (tm_const::some_str): New data member. |
|
3857 (tm_const::some_strings_p): New function. |
|
3858 (tm_const::init): Set some_str. |
|
3859 (tree_matrix::eval): If Vimplicit_num_to_str_ok is true and some |
|
3860 of the elements are strings, force a string conversion before |
|
3861 returning. |
|
3862 |
|
3863 * parse.y (fold, finish_colon_expression, finish_matrix): |
|
3864 If an error occurs, return the original expression. |
|
3865 Use unwind_protect to restore error_state. |
|
3866 |
|
3867 * ov-ch-mat.h (octave_char_matrix::convert_to_str): Result is |
|
3868 char_matrix_str, not just char_matrix. |
|
3869 |
3107
|
3870 Wed Nov 19 02:05:40 1997 Mumit Khan <khan@dhaka.xraylith.wisc.edu> |
|
3871 |
|
3872 * DLD-FUNCTIONS/filter.cc: Don't include extern template decls if |
3109
|
3873 CXX_NEW_FRIEND_TEMPLATE_DECL is defined. |
3107
|
3874 * ov-cx-mat.cc: Likewise. |
|
3875 * ov-re-mat.cc: Likewise. |
|
3876 * ov-str-mat.cc: Likewise. |
|
3877 |
|
3878 * ov-cx-mat.h (octave_complex_matrix::decrement, |
|
3879 octave_complex_matrix): Use explicit Complex constructor. |
|
3880 |
|
3881 Wed Nov 19 00:08:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3882 |
|
3883 * pt-decl.cc (tree_global_command::do_init): Initialize global |
|
3884 values to `[]'. Only perform explicit initialization once. |
|
3885 |
3103
|
3886 Tue Nov 18 04:27:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3887 |
3105
|
3888 * pr-output.cc (Vfixed_point_format): New variable. |
|
3889 (fixed_point_format): New fucntion. |
|
3890 (symbols_of_pr_output): Add DEFVAR for fixed_point_format. |
|
3891 (set_real_matrix_format): Handle fixed point format |
|
3892 (set_complex_matrix_format): Handle fixed point format |
|
3893 (set_format): New arg, scale in Matrix, ComplexMatrix, Range versions. |
|
3894 (pr_scale_header): New function. |
|
3895 (octave_print_internal): Handle fixed point format in Matrix, |
|
3896 ComplexMatrix, and Range versions. |
|
3897 * octave.cc (maximum_braindamage): Set fixed_point_format to 1.0. |
|
3898 |
3103
|
3899 * utils.cc (do_string_escapes): Move here, from lex.l. |
|
3900 Arg is now const string& instead of char*. |
|
3901 Return new string object instead of modifying arg in place. |
|
3902 (Fdo_string_escapes): New function. |
|
3903 * lex.l (handle_string): Use new version of do_string_escapes. |
3105
|
3904 |
|
3905 * lex.l (Vbackslash_escapes): Delete. |
|
3906 (backslash_escapes): Delete. |
|
3907 (do_string_escapes): Undo previous change. |
|
3908 (eat_whitespace, eat_continuation): Undo previous change. |
|
3909 (handle_string): Undo previous change. |
|
3910 (symbols_of_lex): Undo previous change. |
|
3911 * octave.cc (maximum_braindamage): Undo previous change. |
3103
|
3912 |
3096
|
3913 Fri Nov 14 01:53:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3914 |
3100
|
3915 * parse.y (eval_string (const string&, bool, int&, int)): No |
|
3916 longer static. |
|
3917 * parse.h: Provide declaration. |
|
3918 * input.cc (get_user_input (const octave_value_list&, bool, int)): |
|
3919 New arg, nargout. Pass it to eval_string. |
|
3920 (keyboard): Pass nargout = 0 to get_user_input. |
|
3921 (input): Pass nargout to get_user_input. |
|
3922 |
3098
|
3923 * input.cc (get_user_input (const octave_value_list&, bool)): |
3100
|
3924 Return octave_value_list() if user enters `quit', `exit', or `return'. |
3098
|
3925 If debugging, let eval_string handle the printing chores and |
|
3926 reset error_state before asking for more input. |
|
3927 |
|
3928 * input.cc (Fkeyboard): Unconditionally turn on history here. |
|
3929 |
3096
|
3930 * lex.l (have_continuation, have_ellipsis_continuation): Declare |
|
3931 arg as bool, not int. Change callers. |
|
3932 |
|
3933 * lex.l (Vbackslash_escapes): New static variable. |
|
3934 (backslash_escapes): New function. |
|
3935 (do_string_escapes): Return immediately if ! Vbackslash_escapes. |
|
3936 (eat_whitespace, eat_continuation): Only call have_continuation if |
|
3937 Vbackslash_escapes. |
|
3938 (handle_string): Backslash is only special if Vbackslash_escapes. |
|
3939 (symbols_of_lex): Add DEFVAR for backslash_escapes. |
|
3940 * octave.cc (maximum_braindamage): Set backslash_escapes to 0. |
|
3941 |
3095
|
3942 Thu Nov 13 16:20:40 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3943 |
3096
|
3944 * variables.cc (Fexist): Also return 2 if NAME is a regular file |
|
3945 somewhere in the LOADPATH. |
|
3946 |
3095
|
3947 * data.cc (sumsq): Fix doc string. |
|
3948 |
|
3949 * parse.y (Fsource): Call parse_fcn_file, not parse_and_execute. |
|
3950 |
3092
|
3951 Tue Oct 7 16:51:01 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3952 |
|
3953 * defun-int.h (DEFINE_FUN_INSTALLER_FUN): Set installed to true |
|
3954 after installing the function. |
|
3955 |
3088
|
3956 Thu Sep 25 10:17:26 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3957 |
|
3958 * DLD-FUNCTIONS/filter.cc (Ffilter): Return second output value |
|
3959 even when called with only 3 arguments. |
|
3960 |
3086
|
3961 Mon Sep 22 16:44:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3962 |
|
3963 * DLD-FUNCTIONS/rand.cc (do_rand): Print error if first of two |
|
3964 args is a string but doesn't match "seed". |
3088
|
3965 (Frand, Frandn): Fix doc string. |
3086
|
3966 |
3081
|
3967 Mon Aug 25 10:42:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3968 |
|
3969 * input.cc (get_user_input): Return an empty string if the user |
|
3970 just types RET. |
|
3971 |
3079
|
3972 Thu Jul 31 22:59:04 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3973 |
|
3974 * lex.l <TEXT_FCN>: Ensure that we handle words that begin with |
|
3975 single or double quotes as strings. |
|
3976 |
3074
|
3977 Thu Jul 17 13:06:48 1997 Klaus Gebhardt <gebhardt@crunch.ikp.physik.th-darmstadt.de> |
|
3978 |
|
3979 * DLD-FUNCTIONS/rand.cc (Frand): Use F77_XFCN to call getsd, |
|
3980 setsd, setall, setcgn, dgenunf, and dgennor since they can call |
|
3981 XSTOPX. |
|
3982 |
3072
|
3983 Mon Jul 14 12:54:23 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3984 |
|
3985 * dynamic-ld.cc (octave_dynamic_loader::load_fcn_from_dot_oct_file): |
|
3986 If first attempt to load function fails, prepend and underscore |
|
3987 and try again. |
|
3988 |
|
3989 * Makefile.in (install-inc): If defaults.h, oct-conf.h, or |
|
3990 oct-gperf.h don't exist in the current directory, look in $(srcdir). |
|
3991 |
3068
|
3992 Mon Jul 7 21:14:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3993 |
|
3994 * DLD-FUNCTIONS/qr.cc (Fqr): Correctly handle nargout == 0. |
|
3995 |
3067
|
3996 Wed Jul 2 16:47:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3997 |
|
3998 * matherr.c: New file. Move matherr function here. |
|
3999 * sysdep.cc: From here. |
|
4000 * Makefile.in (DIST_SRC): Add matherr.c to the list. |
|
4001 |
|
4002 * error.cc (handle_message): Avoid bug in g++ snapshot. |
|
4003 |
3065
|
4004 Thu Jun 26 22:04:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4005 |
|
4006 * utils.cc (file_in_path): Add default load path to PATH arg if |
|
4007 it begins or ends with a colon. |
|
4008 |
3060
|
4009 Wed Jun 25 13:31:06 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4010 |
|
4011 * oct-lvalue.h (octave_lvalue::struct_elt_ref): Ensure val is unique. |
|
4012 |
|
4013 Fri Jun 20 12:33:35 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4014 |
|
4015 * toplev.cc (cmd_death_handler): New function. |
|
4016 (run_command_and_return_output): Insert pid of command in |
|
4017 octave_child_list along with pointer to cmd_death_handler so we |
|
4018 can get the exit status without having to block SIGCHLD. |
|
4019 (cleanup_iprocstream): Remove pid of command from octave_child_list. |
|
4020 |
3053
|
4021 Sun Jun 15 16:11:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4022 |
3054
|
4023 * OPERATORS/op-cs-s.cc (ldiv): Doh, v1 is complex, v2 is real. |
|
4024 |
3053
|
4025 * Makefile.in (DISTFILES): Add mkops to the list. |
|
4026 (dist): Correctly link files in DLD-FUNCTIONS, OPERATORS, and |
|
4027 TEMPLATE-INST subdirectories. |
|
4028 |
3040
|
4029 Fri Jun 6 04:30:57 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4030 |
3042
|
4031 * DLD-FUNCTIONS/npsol.cc, DLD-FUNCTIONS/qpsol.cc, |
|
4032 DLD-FUNCTIONS/fsqp.cc: Delete. |
|
4033 * Makefile.in (DLD_XSRC): Remove them from the list. |
|
4034 |
3040
|
4035 * utils.cc (search_path_for_file): New arg, do_tilde_expansion. |
|
4036 If TRUE, perform tilde expansion on path before searching. |
|
4037 (file_in_path): Call search_path_for_file with do_tilde_expansion |
|
4038 set to false, since we've already performed tilde expansion on the |
|
4039 load path. |
|
4040 |
|
4041 * defaults.cc (loadpath): Perform tilde expansion here. |
|
4042 |
3029
|
4043 Thu Jun 5 01:42:39 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4044 |
3034
|
4045 * Makefile.in: Make building of static library optional. |
3036
|
4046 (liboctave.$(SHLEXT_VER)): Add $(SONAME_FLAGS) to command. |
3034
|
4047 |
3033
|
4048 * dynamic-ld.cc (octave_shl_load_dynamic_loader::resolve_reference): |
|
4049 Call shl_findsym with type set to TYPE_UNDEFINED. |
|
4050 |
3029
|
4051 * Makefile.in (stamp-picdir): Delete. |
|
4052 (pic): New target. Don't worry so much about creating pic |
|
4053 directory only when it is really needed. |
|
4054 (stamp-interp): Delete. |
|
4055 (libraries): New target. Depend on shared library directly. |
|
4056 |
3024
|
4057 Wed Jun 4 00:09:42 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4058 |
|
4059 * octave.cc (main): Call dir_path::set_program_name here. |
|
4060 |
3021
|
4061 Tue Jun 3 16:47:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4062 |
3022
|
4063 * variables.cc (symbol_out_of_date): Make it work again. |
|
4064 |
3021
|
4065 * parse.y (parse_and_execute): Move here from toplev.cc |
|
4066 (default_eval_print_flag): Likewise. |
|
4067 (safe_fclose): Likewise. |
|
4068 (eval_string): Likewise. |
|
4069 (Fsource): Likewise. |
|
4070 (Ffeval): Likewise. |
|
4071 (feval): Likewise. |
|
4072 (Feval): Likewise. |
|
4073 (symbols_of_parse): Define default_eval_print_flag here instead of |
|
4074 in varaibles.cc. |
|
4075 (looks_like_octave_copyright): Move here from variables.cc |
|
4076 (gobble_leading_whitespace): Likeiwse. |
|
4077 (is_function_file): Likewise. |
|
4078 (restore_input_stream): Likewise. |
|
4079 (parse_fcn_file): Likewise. |
|
4080 (load_fcn_from_file): Likewise. |
|
4081 (get_help_from_file): Likewise. |
|
4082 |
|
4083 * toplev.cc (syms_of_toplev): Define argv, program_name, and |
|
4084 program_invocation_name here instead of in variables.cc. |
|
4085 |
|
4086 * parse.h (line_editing): Move here from toplev.h. Now bool, not int. |
|
4087 (reading_startup_message_printed) Likewise. |
|
4088 (input_from_startup_file): Likewise. |
|
4089 (input_from_command_line_file): Likewise. |
|
4090 |
|
4091 * load-save.cc: Use bool instead of int where appropriate. |
|
4092 |
|
4093 * input.h (enum echo_state): Move here from variables.h. |
|
4094 (Vecho_executing_commands): Likewise. Now bool, not int. |
|
4095 * input.cc (echo_executing_commands): Move here from variables.cc. |
|
4096 (symbols_of_input): Define echo_executing_commands here instead of |
|
4097 in variables.cc. |
|
4098 |
|
4099 * octave.cc (program_invocation_name): Don't define. |
|
4100 (intern_argv): Don't set program_invocation_name here. |
|
4101 (main): Call octave_env::set_program_name here, not in intern_argv. |
|
4102 |
|
4103 * toplev.cc (quitting_gracefully): Move here from octave.h and |
|
4104 make static bool instead of extern int. |
|
4105 |
|
4106 * error.cc (bind_global_error_variable, clear_global_error_variable): |
|
4107 Move here from variables.cc. |
|
4108 (symbols_of_error): Define error_text here instead of in variables.cc. |
|
4109 |
|
4110 * pager.cc (write_to_diary_file): Now bool, not int. |
|
4111 (really_flush_to_pager): Likewise. |
|
4112 (flushing_to_pager): Likewise. |
|
4113 * sighandlers.h (can_interrupt): Likewise. |
|
4114 * error.h (buffer_error_messages): Likewise. |
|
4115 * oct-hist.h (input_from_tmp_history_file, Vsaving_history): Likewise. |
|
4116 * input.h (forced_interactive): Likewise. |
|
4117 (get_input_from_eval_string): Likeiwse. |
|
4118 (reading_script_file): Likeiwse. |
|
4119 (reading_fcn_file): Likeiwse. |
|
4120 (interactive): Likewise. |
|
4121 |
|
4122 * unwind-prot.cc (saved_variable::saved_variable (bool *, bool)): |
|
4123 Set type_tag to boolean, not int. |
|
4124 |
3016
|
4125 Mon Jun 2 00:40:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4126 |
|
4127 * variables.h (Octave_builtin_fcn): Delete typedef. |
|
4128 |
|
4129 * help.cc (make_name_list): Move here from variables.cc. |
|
4130 (keyword_help, names): Now static. |
|
4131 (struct help_list): Move declaration here from help.h. |
|
4132 |
|
4133 * oct-hist.cc (Vhistory_file, Vhistory_size, Vsaving_history): |
|
4134 Move here from variables.cc. |
|
4135 (symbols_of_oct_hist): New function. |
|
4136 |
|
4137 * version.h: Protect against multiple inclusion. |
|
4138 |
|
4139 * defun.cc (check_version): New function. |
|
4140 * defun-int.h (DEFINE_FUN_INSTALLER_FUN): Use it. |
|
4141 |
|
4142 * help.h, help.cc (additional_help_message): Now extern. |
|
4143 (operator_help): Now static. |
|
4144 |
|
4145 * defun.cc (print_usage): Move here from help.cc |
|
4146 * DLD-FUNCTIONS/*.cc, data.cc, dirfns.cc, file-io.cc, input.cc, |
|
4147 load-save.cc, octave.cc, ov-list.cc, ov-typeinfo.cc, |
|
4148 ov-usr-fcn.cc, pager.cc, pr-output.cc, pt-plot.cc, strfns.cc, |
|
4149 syscalls.cc, sysdep.cc, utils.cc, toplev.cc: |
|
4150 Don't include help.h. |
|
4151 |
|
4152 * TEMPLATE-INST/Array-sym.cc: New file. |
|
4153 |
|
4154 * load-save.cc (do_load): Don't use ostream::form. |
|
4155 * pr-output.cc: Likewise, at least where it is easy to do so. |
|
4156 * oct-stream.cc: Ditto. |
|
4157 |
|
4158 * symtab.h (symbol_record::symbol_def::rows): New function. |
|
4159 (symbol_record::symbol_def::columns): Ditto. |
|
4160 (symbol_record::symbol_def::type_name): Ditto. |
|
4161 (symbol_record::rows): Ditto |
|
4162 (symbol_record::columns): Ditto |
|
4163 (symbol_record::type_name): Ditto |
|
4164 |
|
4165 * symtab.h, symtab.cc (symbol_record::hides_fcn): New function. |
|
4166 (symbol_record::hides_builtin): Ditto. |
|
4167 (symbol_record::print_symbol_info_line): Ditto. |
|
4168 (symbol_table::long_list): Delete. |
|
4169 (symbol_table::symbol_list): New function. |
|
4170 (symbol_table::maybe_list): Delete argc arg. |
|
4171 (symbol_table::name_list): Rename from symbol_table::list. |
|
4172 Change all callers. |
|
4173 |
|
4174 * symtab.h, symtab.cc (class symbol_record_info): Delete. |
|
4175 |
|
4176 * symtab.cc (matches_patterns): Use vector form of glob_match. |
|
4177 |
|
4178 Sun Jun 1 14:04:26 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4179 |
|
4180 * pt-check.h, pt-check.cc: New files, for semantic checking of |
|
4181 parse trees. |
|
4182 |
|
4183 * symtab.h (class symbol_def): Now nested in symbol_record class. |
|
4184 (enum TYPE): Move from symbol_def to symbol record class. Change |
|
4185 all uses. |
|
4186 |
|
4187 * symtab.h, symtab.cc (symbol_table::maybe_list): New function, |
|
4188 from variables.cc. Change all uses. |
|
4189 |
|
4190 * pt-idx.h (tree_identifier::lvalue_ok): New function. |
|
4191 * pt-id.h (tree_index_expression::lvalue_ok): Likewise. |
|
4192 * pt-indir.h (tree_indirect_ref::lvalue_ok): Likewise. |
|
4193 |
|
4194 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_oct_obj): Delete. |
|
4195 * pt-walk.h (tree_walker::visit_oct_obj): Delete declaration. |
|
4196 |
|
4197 * lex.h (class lexical_feedback): Delete maybe_screwed_again. |
|
4198 * lex.l (lexical_feedback::init): Don't set it. |
|
4199 |
|
4200 Fri May 30 16:07:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4201 |
|
4202 * mappers.cc: Include <cfloat> here. |
|
4203 |
|
4204 Tue May 27 10:08:43 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4205 |
|
4206 * toplev.cc (eval_string): Don't index tmp if it is empty. |
|
4207 |
|
4208 Sat May 24 00:18:41 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4209 |
|
4210 * load-save.cc (valid_identifier): Move here and make static. |
|
4211 * symtab.h, symtab.cc (valid_identifier): Delete declaration and |
|
4212 definition. |
|
4213 |
|
4214 Fri May 23 22:54:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4215 |
|
4216 * symtab.h (symbol_def::symbol_def): Use initializer list instead |
|
4217 of calling init_state. |
|
4218 (symbol_def::init_state): Delete. |
|
4219 |
|
4220 * symtab.cc (symbol_table::print_stats): New function. |
|
4221 * variables.cc (F__dump_symtab_info__): New function. |
|
4222 |
|
4223 * symtab.h, symtab.cc (symbol_table::hash): Return masked value. |
|
4224 (symbol_table::table_size): New data member. |
|
4225 (symbol_table::symbol_table): Set size of table in constructor. |
|
4226 (HASH_TABLE_SIZE): Replace uses with table_size. |
|
4227 (HASH_MASK): Delete. |
|
4228 * variables.cc (initialize_symbol_tables): Set top-level and |
|
4229 global symbol table sizes here. |
|
4230 |
2994
|
4231 Thu May 22 13:32:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4232 |
|
4233 * dynamic-ld.cc (octave_shl_load_dynamic_loader::resolve_reference): |
|
4234 Call shl_findsym with type set to TYPE_PROCEDURE. Pass the |
|
4235 address of the pointer we want to define. |
|
4236 |
2993
|
4237 Wed May 21 16:30:25 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4238 |
|
4239 * DLD-FUNCTIONS/time.cc (extract_tm): Avoid memory leak in dealing |
|
4240 with time zone. |
|
4241 |
|
4242 * Makefile.in (install-in): Use new mk-includedir-link macro. |
|
4243 (install-lib): Install in $octlibdir. Use new mk-libdir-link macro. |
|
4244 |
|
4245 Tue May 20 01:24:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4246 |
|
4247 * ov-list.cc (Flist): Rename from Fmake_list. |
|
4248 |
|
4249 Mon May 19 14:45:58 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4250 |
|
4251 * octave.cc (maximum_braindamage): Set default_eval_print_flag to 0. |
|
4252 |
|
4253 Sat May 17 16:32:23 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4254 |
|
4255 * defaults.cc (set_default_editor): Default is now Emacs, not vi. |
|
4256 |
2984
|
4257 Fri May 16 00:07:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4258 |
2991
|
4259 * pt-idx.cc (tree_index_expression::name): New function. |
|
4260 |
|
4261 * pt.cc (tree::str_print_code): New file, new convenience function. |
|
4262 * pt-arg-list.cc (tree_argument_list::get_arg_names): Use it. |
|
4263 * pt-assign.cc (tree_simple_assignment::rvalue): Likewise. |
|
4264 (tree_multi_assignment::rvalue): Likewise. |
|
4265 |
2990
|
4266 * pt-colon.h (tree_colon_expression::save_base): New data memmber. |
|
4267 (tree_colon_expression::preserve_base): New function. |
|
4268 * parse.y (finish_colon_expression): When converting to a simple |
|
4269 expression, be sure to delete the original colon expression but |
|
4270 not the base value. |
|
4271 |
|
4272 * pt-mat.cc (tree_matrix::~tree_matrix): Actually do something. |
|
4273 |
2987
|
4274 * pt-all.h: New file. |
|
4275 * parse.y, lex.l, pt-pr-code.cc: Use it. |
|
4276 |
|
4277 * pt.h: Rename from pt-base.h. |
|
4278 |
|
4279 * All parse tree classes: Add private copy constructors and |
|
4280 assignment operators to prevent copying. |
|
4281 |
|
4282 * pt-base.cc: Delete. |
|
4283 |
2985
|
4284 * unwind-prot.h, unwind-prot.cc: Make a bit more object-oriented. |
|
4285 Change all uses of unwind_protect stuff to match. |
|
4286 |
|
4287 * pt-jump.h, pt-jump.cc (breaking, continuing, returning): |
|
4288 Make these flags static members of the corresponding class. |
|
4289 Change all uses. |
|
4290 |
2984
|
4291 * pt-assign.cc (tree_simple_assignment_expression::eval, |
|
4292 tree_multi_assignment_expression::eval): Clear lvalue index here. |
|
4293 |
|
4294 * oct-lvalue.cc (octave_lvalue::assign): Don't clear index here. |
|
4295 * oct-lvalue.h (octave_lvalue::clear_index): New function. |
|
4296 (octave_lvalue::set_index): Rename from octave_lvalue::index. |
|
4297 Change all callers. |
|
4298 |
2976
|
4299 Thu May 15 11:48:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4300 |
2983
|
4301 * pt-select.h, pt-select.cc (class tree_if_command_list, |
|
4302 class tree_if_clause, class tree_switch_case_list, |
|
4303 class tree_switch_case): Move here from pt-misc.h, pt-misc.cc. |
|
4304 * pt-decl.h, pt-decl.cc (class tree_decl_init_list, |
|
4305 class tree_decl_elt): Move here from pt-mist.h, pt-misc.cc |
|
4306 |
|
4307 * pt-arg-list.h, pt-stmt.h: New files, extracted from pt-misc.h. |
|
4308 * pt-arg-list.cc, pt-stmt.cc: New files, extracted from pt-misc.cc. |
|
4309 |
|
4310 * pt-decl.h, pt-except.h, pt-jump.h, pt-loop.h, pt-select.h: |
|
4311 New files, extraced from pt-cmd.h. |
|
4312 * pt-decl.cc, pt-except.cc, pt-jump.cc, pt-loop.cc, pt-select.cc: |
|
4313 New files, extraced from pt-cmd.cc. |
|
4314 |
2980
|
4315 * pt-unop.h, pt-binop.h, pt-colon.h, pt-idx.h, pt-assign.h: |
|
4316 New files, extracted from pt-exp.h |
|
4317 * pt-unop.cc, pt-binop.cc, pt-colon.cc, pt-idx.cc, pt-assign.cc: |
|
4318 New files, extracted from pt-exp.cc |
|
4319 * pt-exp.h, pt-exp.cc: Rename from pt-exp-base.h, pt-exp-base.cc. |
|
4320 |
2979
|
4321 * oct-lvalue.h: Rename from oct-var-ref.h. Rename class from |
|
4322 octave_variable_reference to octave_lvalue. Change all uses. |
|
4323 * oct-lvalue.cc: Rename from oct-var-ref.cc. |
|
4324 |
2978
|
4325 * variables.cc (bind_ans): Only bind ans and print result if value |
|
4326 is defined. |
|
4327 |
2976
|
4328 * defun.cc: New file. Move functions for installing objects in |
|
4329 the symbol table here from variables.cc. |
|
4330 |
|
4331 * oct-obj.h, oct-obj.cc: Add custom allocator, fwiw. |
|
4332 |
|
4333 * toplev.cc (main_loop): Correctly increment command number. |
|
4334 |
|
4335 * TEMPLATE-INST/SLList-tm.cc: Don't instantiate lists of pointers |
|
4336 to tree_matrix_row objects. |
|
4337 * TEMPLATE-INST/SLList-misc.cc: Do instantiate lists of pointers |
|
4338 to tree_argument_list objects. |
|
4339 |
|
4340 * DLD-FUNCTIONS/dassl.cc: Update to use new octave_function |
|
4341 interface to user-supplied functions. |
|
4342 * DLD-FUNCTIONS/fsolve.cc: Likewise. |
|
4343 * DLD-FUNCTIONS/lsode.cc: Likewise. |
|
4344 * DLD-FUNCTIONS/npsol.cc: Likewise. |
|
4345 * DLD-FUNCTIONS/quad.cc: Likewise. |
|
4346 |
|
4347 * dynamic-ld.h, dynamic-ld.cc (builtin_fcn_installer typedef): |
|
4348 Rename from builtin_fcn. |
|
4349 (octave_dynamic_loader::load_fcn_from_dot_oct_file): |
|
4350 Simplify by using new installer function defined by DEFUN_DLD. |
|
4351 |
|
4352 * defun-dld.h (DEFUN_DLD): Use DEFINE_FUN_INSTALLER_FUN instead of |
|
4353 DEFINE_FUN_STRUCT_FUN. |
|
4354 * defun.h (DEFUN_MAPPER): Use DEFUN_MAPPER_INTERNAL. |
|
4355 * defun-int.h (DEFVAR_INTERNAL): Rename from DEFVAR_INT and move |
|
4356 here from defun.h. Change all uses. |
|
4357 (DEFUN_MAPPER_INTERNAL): New macro. |
|
4358 (DEFINE_FUN_INSTALLER_FUN): New macro to define function that the |
|
4359 dynamic loader calls to do all the work of installing a new function. |
|
4360 (DEFINE_FUN_STRUCT_FUN): Delete. |
|
4361 |
|
4362 * parse.y: Rewrite to handle more general expressions. |
|
4363 * lex.l: Corresponding changes. |
|
4364 |
|
4365 * pt-walk.h, pt-pr-code.h, pt-pr-code.cc: Cope with new parse tree |
|
4366 object structure. |
|
4367 |
|
4368 * pt-misc.cc (class tree_for_command): Split into |
|
4369 tree_simple_for_command and tree_complex_for_command classes. |
|
4370 |
|
4371 * pt-misc.h, pt-misc.cc (tree_statement::eval): Handle identifier |
|
4372 lookup and printing and binding ans here. |
|
4373 (tree_statement_list::eval): Simplify. |
|
4374 (tree_argument_list::all_elements_are_constant): New function. |
|
4375 (class tree_decl_elt): Now contains id and expr, not an assignment |
|
4376 expression. |
|
4377 |
|
4378 * pt-exp-base.h pt-exp.h pt-id.h pt-indir.h pt-mat.h pt-const.h, |
|
4379 pt-exp-base.cc pt-exp.cc pt-id.cc pt-indir.cc pt-mat.cc pt-const.cc: |
|
4380 Replace eval functions with rvalue and lvalue functions. |
|
4381 Change all uses. |
|
4382 (lvalue_ok, rvalue_ok): New functions, for future compile-time |
|
4383 semantic checks. |
|
4384 |
|
4385 * oct-var-ref.h (is_defined, is_map): New functions. |
|
4386 |
|
4387 * pt-exp.h (class tree_oct_obj): Delete. |
|
4388 |
|
4389 * variables.cc (extract_function, is_valid_function): Return |
|
4390 pointer to octave_function, not octave_symbol. |
|
4391 (link_to_global_variable): Rewrite. Handle errors in |
|
4392 symbol_record::mark_as_linked_to_global. |
|
4393 |
|
4394 * symtab.h, symtab.cc (class symbol_def, class symbol_record): |
|
4395 Symbols are now stored as octave_value objects only. |
|
4396 |
|
4397 * ov.cc (install_types): Register function types here. |
|
4398 * ov-fcn.h, ov-fcn.cc, ov-builtin.h, ov-builtin.cc, ov-mapper.h, |
|
4399 ov-mapper.cc, ov-usr-fcn.h, ov-usr-fcn.cc: New classes for |
|
4400 functions as values. |
|
4401 * ov.h (class octave_value): Don't derive from octave_symbol. |
|
4402 * oct-fcn.h, oct-fcn.cc, oct-builtin.h, oct-builtin.cc, |
|
4403 oct-mapper.h, oct-mapper.cc, oct-usr-fcn.h, oct-usr-fcn.cc, |
|
4404 oct-sym.h, oct-sym.cc: Delete. |
|
4405 |
2963
|
4406 Sun May 11 17:51:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4407 |
|
4408 * help.cc (Ftype): Make it work again for functions. |
|
4409 |
|
4410 * pt-pr-code.cc (tree_print_code::print_parens): New function. |
|
4411 Use it in other tree_print_code functions to handle printing all |
|
4412 the parens that we found when parsing the expression, not just one |
|
4413 pair. |
|
4414 * pt-exp-base.h (tree_expression::paren_count): Rename from |
|
4415 is_in_parens. |
|
4416 * parse.y (maybe_warn_assign_as_truth_value): Use new name. |
|
4417 |
|
4418 * parse.y (constant): New non-terminal. |
|
4419 (simple_expr1): Use it. |
|
4420 |
|
4421 * parse.y (make_unary_op): Delete. |
|
4422 (simple_expr1): Where appropriate, use make_prefix_op and |
|
4423 make_postfix_op instead of make_unary_op. Allow increment and |
|
4424 decrement ops to work on expressions, not just identifiers. |
|
4425 (make_prefix_op, make_postfix_op): Arg is expression, not identifier. |
|
4426 Handle old unary_op cases too. |
|
4427 (fold (tree_unary_expression *)): Delete. |
|
4428 * pt-exp.h, pt-exp.cc (tree_prefix_expression::eval): Handle unary |
|
4429 minus and not here. |
|
4430 (tree_postfix_expression::eval): Likewise, for transpose and hermitian. |
|
4431 (class tree_prefix_expression, class tree_postfix_expression): |
|
4432 Derive from tree_unary_expression. Delete identifier member. |
|
4433 Delete ident member function. |
|
4434 (tree_unary_expression): Don't handle evaluation here. |
|
4435 * pt-exp-base.h (mark_in_parens): No longer virtual. Return this. |
|
4436 (reference): New virtual function. |
|
4437 (class tree_expression): Don't handle expression type here. |
|
4438 * pt-mvr-base.h (tree_multi_val_ret::tree_multi_val_ret): Likewise. |
|
4439 * pt-mvr.h, pt-mvr.cc (tree_multi_assignment_expression): Likewise. |
|
4440 * pt-walk.h (visit_unary_expression): Delete declaration. |
|
4441 * pt-pr-code.h, pt-pr-code.cc (visit_unary_expression): Delete. |
|
4442 (visit_prefix_expression): Use operand(), not ident(). |
|
4443 new, visit_postfix_expression): |
|
4444 * pt-id.h, pt-id.cc (increment, decrement): Delete. |
|
4445 |
|
4446 * pt-misc.cc (tree_parameter_list::define_from_arg_vector): Get a |
|
4447 reference to each element and use the assignment operator instead |
|
4448 of tree_identifier::define. |
|
4449 * pt-id.h, pt-id.cc (tree_identifier::define): Delete versions |
|
4450 that take octave_value and octave_symbol args. |
|
4451 |
|
4452 Sat May 10 23:32:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4453 |
|
4454 * pt-indir.h, pt-indir.cc (tree_indirect_reference::value): Delete. |
|
4455 |
|
4456 * oct-var-ref.cc (octave_variable_ref::assign): Clear idx after |
|
4457 assignment. |
|
4458 |
2976
|
4459 * octave_value classes: Add is_constant, is_function, and |
|
4460 function_value functions. |
|
4461 |
2963
|
4462 * ov.h, ov.cc (assign): Return void, not reference to octave_value. |
|
4463 (do_index_op): Rename, from index. |
|
4464 (do_struct_elt_index_op): Rename, from struct_elt_val. |
|
4465 Add version that accepts index arg. |
|
4466 Change all uses and derived classes to match. |
|
4467 * pt-const.h (index): Delete. |
|
4468 * oct-var-ref.h, oct-var-ref.cc (value): Handle indexed structure |
|
4469 ops here too. |
|
4470 |
2949
|
4471 Fri May 9 07:40:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4472 |
2958
|
4473 * pt-exp.cc (print_rhs_assign_val, symbols_of_pt_exp): New functions. |
|
4474 (Vprint_rhs_assign_val): New static variable. |
|
4475 (tree_simple_assignment_expression::eval): Use it to optionally |
|
4476 allow the rhs (which is the result) of an assignment to be printed |
|
4477 instead of the left. |
|
4478 |
2955
|
4479 * pt-exp.cc (tree_simple_assignment_expression::eval): Use new |
|
4480 octave_variabl_reference::index function to handle indexing. |
|
4481 |
|
4482 * oct-var-ref.h, oct-var-ref.cc (idx): New data member. |
|
4483 (octave_variable_reference::index): Set it. |
|
4484 (octave_variable_reference::assign): Handle indexing here. |
|
4485 Delete version of this function htat takes index arg. |
|
4486 |
|
4487 * variables.h (struct builtin_varaible): Delete. |
|
4488 * variables.cc (install_builtin_variable): Take all elts of |
|
4489 builtin_variable struct directly. |
|
4490 * defun.h (DEFVAR_INT): Call install_builtin_variable directly. |
|
4491 |
|
4492 * symtab.h, defun-int.h: Don't include variables.h. |
|
4493 |
|
4494 * symtab.h (symbol_record::sv_function): Move typedef here. |
|
4495 * variables.h: From here. |
|
4496 |
|
4497 * oct-var-ref.h, oct-var-ref.cc: New files for |
|
4498 octave_variable_reference class, extracted from variables.h and |
|
4499 variables.cc |
2956
|
4500 * Makefile.in: Add them to the appropriate lists. |
2955
|
4501 |
|
4502 * oct-obj.h (octave_value_list::empty): New function. |
|
4503 |
2949
|
4504 * variables.h (class octave_variable_reference): Rewrite to work |
|
4505 as a proxy class to store a pointer to octave_value and, |
|
4506 optionally, the change function to call and the name of the |
|
4507 structure element we are referencing. Handle assignment, |
|
4508 increment, decrement, and value operations. |
|
4509 |
2956
|
4510 Thu May 8 23:40:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4511 |
2949
|
4512 * ov-re-mat.h, ov-re-mat.cc (struct_elt_ref, struct_elt_val, |
|
4513 assign_struct_elt): Provide functions for looking up and setting |
|
4514 matrix dimensions. |
|
4515 |
|
4516 * symtab.cc (symbol_record::define): Don't call sv_fcn here. |
|
4517 Don't save and restore value here. |
|
4518 (symbol_record::define_builtin_var): Do call sv_fcn here. |
|
4519 (symbol_record::variable_reference): Don't make value unique here. |
|
4520 Return pointer to sv_fcn in octave_variable_reference. |
|
4521 |
|
4522 * pt-misc.cc (tree_parameter_list::initialize_undefined_elements): |
|
4523 Simplify. |
|
4524 |
|
4525 * pt-id.h, pt-id.cc (tree_identifier::reference): Return |
|
4526 octave_variable_reference, not octave_value&. |
|
4527 * symtab.h, symtab.cc (symbol_record::variable_reference): Ditto. |
|
4528 * pt-indir.h, pt-indir.cc (tree_indirect_ref::reference): Ditto. |
|
4529 Simplify too. |
|
4530 |
|
4531 * pt-const.h (tree_constant::reference, tree_constant::value, |
|
4532 tree_constant::assign): Delete unnecessary functions. |
|
4533 * pt-id.h, pt-id.cc (tree_identifier::assign): Ditto. |
|
4534 |
|
4535 * pt-cmd.cc (tree_for_command::do_for_loop_once): Simplify. |
|
4536 |
|
4537 * ov.h, ov.cc, ov-base.h, ov-base.cc, ov-struct.h, ov-struct.cc |
|
4538 (struct_elt_ref): New arg, octave_value* parent. |
|
4539 Allow deferred lookup. Return octave_variable_reference, not |
|
4540 octave_value&. |
|
4541 |
|
4542 * ov.h, ov.cc, ov-re-mat.h, ov-re-mat.cc (assign_struct_elt): |
|
4543 New virtual functions. |
|
4544 |
|
4545 * ov.h, ov.cc (Vresize_on_range_error): Now static. |
|
4546 |
|
4547 * pt-mvr.cc (tree_index_expression::eval): Delete redundant check |
|
4548 of error_state. |
|
4549 |
2944
|
4550 Wed May 7 21:17:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4551 |
|
4552 * input.cc (generate_completion): Rename from command_generator. |
|
4553 Use string objects instead of char*. |
|
4554 (generate_possible_completions): Let qsort also make matches unique. |
|
4555 (initialize_command_input): Register generate_completion with the |
|
4556 command_editor class. |
|
4557 (completion_matches): Simplify using generate_completion. |
|
4558 |
|
4559 * pt-pr-code.cc (tree_print_code::visit_constant): For val, call |
|
4560 print_raw, not print. |
|
4561 |
|
4562 * oct-usr-fcn.h (octave_user_function::argn_sr): New data member. |
|
4563 (octave_user_function::install_automatic_vars): Rename from |
|
4564 install_nargin_and_nargout. |
|
4565 (octave_user_function::bind_automatic_vars): Rename from |
|
4566 bind_nargin_and_nargout. |
|
4567 * oct-usr-fcn.cc (octave_user_function::eval): Extract arg names |
|
4568 from args vector and bind them to argn. |
|
4569 * oct-obj.h (octave_value_list::names): New data member. |
|
4570 * oct-obj.cc (octave_value_list::stash_name_tags): New function. |
|
4571 (octave_value_list::name_tags): Ditto. |
|
4572 * pt-const.h, pt-const.cc (tree_constant::print_raw): New function. |
|
4573 * pt-misc.h, pt-misc.cc (tree_argument_list::get_arg_names): |
|
4574 New function. |
|
4575 * pt-mvr.h, pt-mvr.cc (class index_expression): Cache arg names. |
|
4576 * toplev.cc (feval): Now static. Handle arg names. |
|
4577 |
|
4578 * mkops: Cope with moving files defining operators to OPERATORS |
|
4579 subdirectory. |
|
4580 |
2937
|
4581 Tue May 6 00:48:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4582 |
|
4583 * DLD-FUNCTIONS/getgrent.cc: Use new octave_group class. |
|
4584 * DLD-FUNCTIONS/getpwent.cc: Use new octave_passwd class. |
|
4585 |
|
4586 * syscalls.cc: Simplify by using new functions defined in |
|
4587 liboctave/oct-syscalls.cc. |
|
4588 |
|
4589 * file-io.cc (Ftmpnam): Accept DIR and PREFIX args. |
|
4590 |
2929
|
4591 Mon May 5 00:54:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4592 |
2932
|
4593 * ov-str-mat.cc (octave_char_matrix_str::print_name_tag): Print |
|
4594 empty strings on one line. |
|
4595 |
2929
|
4596 * DLD-FUNCTIONS, OPERATORS, and TEMPLATE-INST: New subdirectories. |
|
4597 Move appropriate files to new directories. |
|
4598 * Makefile.in: Add DLD-FUNCTIONS, OPERATORS, and TEMPLATE-INST |
|
4599 directories to VPATH. Fix rules to work with new directory |
|
4600 structure. |
|
4601 |
2927
|
4602 Sun May 4 22:40:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4603 |
|
4604 * input.cc (initialize_command_input): Rename from |
|
4605 initialize_readline. |
|
4606 (gnu_readline, octave_gets, get_user_input): Simplify, return |
|
4607 string, not char *. |
|
4608 |
|
4609 * Many of other files: Miscellaneous changes to go along with the |
|
4610 changes described in the liboctave/ChangeLog for May 4. More code |
|
4611 moved from here to liboctave. |
|
4612 |
|
4613 Fri May 2 19:50:33 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4614 |
|
4615 * pathlen.h: Move to ../liboctave. |
|
4616 |
2921
|
4617 Thu May 1 21:50:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4618 |
|
4619 * variables.cc (get_struct_elts): New fucntion. |
|
4620 (looks_like_struct, generate_struct_completions): Move here from |
|
4621 input.cc, rewrite, and make work again. |
|
4622 |
2916
|
4623 Wed Apr 30 00:24:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4624 |
|
4625 * ov-base.h, ov-bool-mat.cc, ov-bool-mat.h, ov-bool.cc, ov-bool.h, |
|
4626 ov-ch-mat.cc, ov-ch-mat.h, ov-complex.cc, ov-complex.h, |
|
4627 ov-cx-mat.cc, ov-cx-mat.h, ov-file.cc, ov-file.h, ov-list.cc, |
|
4628 ov-range.cc, ov-range.h, ov-re-mat.cc, ov-re-mat.h, ov-scalar.cc, |
|
4629 ov-scalar.h, ov-str-mat.cc, ov-struct.cc, ov.h (scalar_value): |
|
4630 New function. Same as double_value, but name is consistent with |
|
4631 octave_scalar class. |
|
4632 |
|
4633 * op-fil-b.cc, op-fil-cm.cc, op-fil-lis.cc, op-fil-rec.cc, |
|
4634 op-fil-str.cc, op-fil-bm.cc, op-fil-cs.cc, op-fil-m.cc, |
|
4635 op-fil-s.cc: New files. |
|
4636 |
|
4637 * ops.h (ASSIGNOPDECL, DEFASSIGNOP, DEFASSIGNOP_FN, CONVDECL, |
|
4638 DEFCONV, BINOPDECL, DEFBINOPX, DEFBINOP, DEFBINOP_OP, DEFBINOP_FN, |
|
4639 BINOP_NONCONFORMANT): New macros. |
|
4640 * op-b-b.cc, op-bm-bm.cc, op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, |
|
4641 op-cm-s.cc, op-cs-cm.cc, op-cs-cs.cc, op-cs-m.cc, op-cs-s.cc, |
|
4642 op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, op-s-cm.cc, |
|
4643 op-s-cs.cc, op-s-m.cc, op-s-s.cc, op-str-str.cc: Use them. |
|
4644 |
|
4645 * Makefile.in (octave): Also depend on ops.o. |
|
4646 |
|
4647 * builtins.h: Delete. |
|
4648 * octave.cc: Add extern declaration here. |
|
4649 |
|
4650 * mappers.h: Delete. |
|
4651 * Makefile.in (INCLUDES): Delete from list. |
|
4652 * mkbuiltins: Add extern declaration in builtins.cc. |
|
4653 |
|
4654 * mkops: New file. |
|
4655 * ops.cc: Delete. |
|
4656 * Makefile.in (SOURCES): Delete from the list. |
|
4657 (ops.cc): New target. |
|
4658 (OP_SOURCES): New list. Move all op-*.cc files here from SOURCES. |
|
4659 Add $(OP_SOURCES) to SOURCES list. |
|
4660 |
|
4661 * variables.cc (symbols_of_variables): No longer static. |
|
4662 * ov.cc (symbols_of_ov): Rename from symbols_of_value. |
|
4663 |
|
4664 * ov-base.h: Delete declaration for install_base_type_conversions. |
|
4665 * op-b-b.h, op-bm-bm.h, op-cm-cm.h, op-cm-cs.h, op-cm-m.h, |
|
4666 op-cm-s.h, op-cs-cm.h, op-cs-cs.h, op-cs-m.h, op-cs-s.h, |
|
4667 op-m-cm.h, op-m-cs.h, op-m-m.h, op-m-s.h, op-s-cm.h, op-s-cs.h, |
|
4668 op-s-m.h, op-s-s.h, op-str-str.h: Delete. |
|
4669 * Makefile.in (INCLUDES): Delete them from the list. |
|
4670 |
|
4671 Tue Apr 29 22:27:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4672 |
|
4673 * variables.h, variables.cc (install_builtin_variables): Delete. |
|
4674 * mkbuiltins: Also generate install_builtin_variables function. |
|
4675 * Makefile.in: Fix rule to call mkbuiltins with correct args. |
|
4676 (clean): Also delete def-files and var-files. |
|
4677 * defaults.h.in, dirfns.h, error.h, file-io.h, help.h, input.h, |
|
4678 lex.h, load-save.h, oct-usr-fcn.h, pager.h, parse.h, pr-output.cc, |
|
4679 pr-output.h, pt-mat.h, pt-misc.h, pt-plot.h, toplev.h: |
|
4680 Delete declarations of symbols_of_* functions. |
|
4681 * data.h, syscalls.h: Delete. |
|
4682 |
|
4683 * pr-output.cc (octave_print_internal): Leave printing of final |
|
4684 new line up to the caller. |
|
4685 |
|
4686 * ov.h, ov.cc (reset_indent_level, increment_indent_level, |
|
4687 decrement_indent_level, newline, indent, reset, |
|
4688 curr_print_indent_level, beginning_of_line): |
|
4689 New functions and static data to manage indent level for printing. |
|
4690 (print_as_scalar): Delete. |
|
4691 (print, print_with_name): Always require stream arg. |
|
4692 Change all callers. |
|
4693 |
|
4694 * oct-stream.h (octave_stream::input_stream): Make publicly available. |
|
4695 (octave_stream::output_stream): Likewise. |
|
4696 |
|
4697 * ov-base.h, ov-base.cc, ov.h, ov.cc, ov-file.h ov-base.h |
|
4698 (is_file, stream_value, stream_number): New functions. |
|
4699 * ov-file.h, ov-file.cc: New files for value class to manage files. |
|
4700 * file-io.cc (symbols_of_file_io): Define stdin, stdout, and |
|
4701 stderr as octve_file objects, not just integers. |
|
4702 (Ffopen, Fpopen): Return octave_file objects, not integer file ids. |
|
4703 * syscalls.cc (Fpipe): Likewise. |
|
4704 * oct-stream.h, oct-stream.cc (octave_stream_list::insert): |
|
4705 Return octave_file object, not integer file id. |
|
4706 |
|
4707 * ov-base.cc, ov-bool-mat.cc, ov-bool.cc, ov-ch-mat.cc, |
|
4708 ov-complex.cc, ov-cx-mat.cc, ov-file.cc, ov-list.cc, ov-range.cc, |
|
4709 ov-re-mat.cc, ov-scalar.cc, ov-str-mat.cc, ov-struct.cc, ov.cc |
|
4710 (print_name_tag, print_raw): New functions. |
|
4711 |
|
4712 * help.cc (Ftype): Don't cast symbol definition to tree_constant *. |
|
4713 |
|
4714 * variables.cc (link_to_global_variable): Don't try to define |
|
4715 symbol with tree_constant objects. |
|
4716 (bind_ans): Call symbol_record::define directly and then |
|
4717 octave_value::print_with_name instead of creating a temporary |
|
4718 assignment expression. |
|
4719 |
|
4720 * pt-pr-code.cc (tree_print_code::indent): Don't use ostream::form. |
|
4721 |
|
4722 * pt-exp-base.h, pt-exp.h, pt-exp.cc (oper): Return string, not |
|
4723 char *. Change all where necessary. |
|
4724 |
|
4725 Mon Apr 28 16:33:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4726 |
|
4727 * ov.h (octave_value binary_op enum): Add lshift and rshift. |
|
4728 (octave_value assign_op enum): Add lshift_eq and rshift_eq. |
|
4729 * ov.cc (assign_op_as_string, binary_op_as_string): Include them. |
|
4730 * parse.y (LSHIFT_EQ RSHIFT_EQ LSHIFT RSHIFT): New tokens. |
|
4731 Add them to the precedence list. |
|
4732 (simple_expr): Add new operators. |
|
4733 (make_assign_op, make_binary_op): Handle new operators. |
|
4734 * lex.l: Recognize new operators. |
|
4735 |
|
4736 * lex.l: Recognize them. |
|
4737 |
|
4738 Sun Apr 27 20:17:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2898
|
4739 |
|
4740 * pt-misc.cc (Vsilent_functions, silent_functions): |
|
4741 Move here from oct-usr-fcn.cc. |
|
4742 (symbols_of_pt_misc): New function. DEFVAR silent_functions. |
|
4743 (tree_statement_list::eval): Handle Vsilent_functions here instead |
|
4744 of in octave_user_function::eval. |
|
4745 (tree_statement::eval): New functions. |
|
4746 (tree_statement_list::eval): Use them. |
|
4747 Change print flag arg to silent flag. Change all callers. |
|
4748 * variables.cc (install_builtin_variables): Call symbols_of_pt_misc. |
|
4749 * toplev.cc (parse_and_execute): Delete print arg. Change all callers. |
|
4750 (eval_string): Change print flag arg to silent flag. Change callers. |
|
4751 |
|
4752 * dynamic-ld.h, dynamic-ld.cc: Rewrite to use singleton class. |
|
4753 * variables.cc (load_fcn_from_file): Use new dynamic linking class. |
|
4754 |
2893
|
4755 * dynamic-ld.h (Octave_builtin_fcn): Delete typedef. |
|
4756 * dynamic-ld.cc: Simplify via the magic of function pointers. |
|
4757 |
|
4758 * pt-fcn.h pt-fcn.cc pt-fvc.h pt-fvc.cc pt-fvc-base.h pt-fvc-base.cc: |
|
4759 Delete obsolete files. |
|
4760 * Makefile.in: Remove them from various lists. |
|
4761 |
|
4762 * pt-walk.h (visit_octave_user_function): Rename from visit_function. |
|
4763 (visit_builtin): Delete. |
|
4764 * pt-pr-code.h, pt-pr-code.cc (visit_octave_user_function): |
|
4765 Rename from visit_function. |
|
4766 (visit_octave_user_function_header): Rename from visit_function_header. |
|
4767 (visit_octave_user_function_trailer): Rename from |
|
4768 visit_function_trailer. |
|
4769 |
|
4770 * ov.h, ov.cc (eval): New functions. |
|
4771 |
|
4772 * dassl.cc, fsolve.cc, lsode.cc, npsol.cc, qpsol.cc, quad.cc: |
|
4773 Declare user-defined functions as a pointer to an octave_symbol |
|
4774 object, not as a pointer to a tree_fvc object. |
|
4775 |
|
4776 * symtab.h, symtab.cc: Use new octave_symbol class. |
|
4777 * variables.cc (install_builtin_function, install_builtin_mapper, |
|
4778 install_builtin_variable, install_builtin_variable_as_function): |
|
4779 Make work with new octave_symbol class and symbol table structure. |
|
4780 |
|
4781 * variables.h: Delete declaration of builtin_function struct. |
|
4782 * defun-dld.h (DEFUN_DLD): Simplify. |
|
4783 * defun-int.h (DEFINE_FUN_STRUCT): Delete. |
|
4784 (DEFINE_FUN_STRUCT_FUN): Rewrite to not use static builtin_function |
|
4785 object. |
|
4786 |
|
4787 * mappers.h: Delete declaration of builtin_mapper_function struct. |
|
4788 * mappers.cc: Declare wrapper functions static. |
|
4789 * defun.h (DEFUN_MAPPER): Simplify. |
|
4790 |
|
4791 * oct-sym.h: New file. Declare base class for Octave symbols. |
|
4792 * ov.h: Derive octave_value class from octave_symbol. |
|
4793 * oct-fcn.h, oct-fcn.cc: New files to declare and define |
|
4794 base class for functions. |
|
4795 * oct-builtin.h, oct-builtin.cc: New files to declare and define |
|
4796 class for built-in functions. |
|
4797 * oct-mapper.h, oct-mapper.cc: New files to declare and define |
|
4798 class for mapper functions. |
|
4799 * oct-usr-fcn.h, oct-usr-fcn.cc: New files to declare and define |
|
4800 base class for user-defined functions. |
|
4801 * Makefile.in: Add new files to appropriate lists. |
|
4802 |
|
4803 * pt-id.h, pt-id.cc: Move tree_identifier class here. |
|
4804 * pt-fvc.h, pt-fvc.cc: From here. |
|
4805 |
|
4806 * pt-indir.h, pt-indir.cc: Move tree_indirect_ref class here. |
|
4807 * pt-fvc.h, pt-fvc.cc: From here. |
|
4808 |
2881
|
4809 Thu Apr 24 03:58:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4810 |
2884
|
4811 * parse.y (magic_colon): New nonterminal. |
|
4812 (arg_list): Simplify using magic_colon. |
|
4813 |
2883
|
4814 * lex.h (class lexical_feedback): Delete maybe_screwed field. |
|
4815 New field, parsed_function name. |
|
4816 * lex.l (lexical_feedback::init): Initialize it. |
|
4817 (handle_identifier): Don't return SCREW. Handle switching |
|
4818 symbol table context properly for `function f ()' vs `function x ='. |
|
4819 (is_keyword): If looking at function keyword, don't set current |
|
4820 symbol table to point to the local table. |
|
4821 * parse.y (recover_from_parsing_function): New function. |
|
4822 (finish_function_def): Use identifier, not token. |
|
4823 Simplify parsing of functions. |
|
4824 |
|
4825 * ov-list.h, ov-list.cc: New files to implement generic list type. |
|
4826 * ov.cc (list_indent): New global variable. |
|
4827 (increment_list_indent, decrement_list_indent): New functions. |
|
4828 (install_types): Register octave_list type. |
|
4829 * ov-base.cc (octave_base_value::is_list): New function. |
|
4830 |
2881
|
4831 * oct-sym.h: New file. |
|
4832 * ov.h (class octave_value): Derive from octave_symbol class. |
|
4833 |
|
4834 * pt-const.h, pt-const.cc: Delete lots of old useless cruft. |
|
4835 |
|
4836 * pt-exp.h, pt-exp.cc (tree_binary_expression): Use type codes for |
|
4837 operators from octave_value instead of repeating them here. |
|
4838 |
|
4839 * pt-fvc-base.cc (tree_fvc::increment, tree_fvc::decrement): Delete. |
|
4840 * pt-fvc.cc (tree_identifier::increment): Get reference to value |
|
4841 and increment that instead of using virutal tree_fvc::increment |
|
4842 function. |
|
4843 |
|
4844 * lex.l: Handle +=, -=, *=, /=, .+=, .-=, .*=, ./=, &=, and |= ops. |
2883
|
4845 * parse.y (make_assign_op): Rename from make_simple_assignment and |
|
4846 handle different op types. |
|
4847 (simple_expr1): Do new ops. |
2881
|
4848 * pt-misc.cc (initialize_undefined_elements): Pass op to assign. |
|
4849 * pt-cmd.cc (tree_for_command::do_for_command_once): Likewise. |
|
4850 * pt-fvc.cc (tree_identifier::assign): Pass op. |
|
4851 * pt-exp.cc (tree_simple_assignment_expression): Handle new ops. |
|
4852 * variables.cc (octave_variable_reference::assign): Likewise. |
|
4853 * ov.h (class octave_value): Likewise. |
|
4854 * ov.cc (octave_value::assign_op_as_string): New function. |
|
4855 (octave_value::assign, octave_value::convert_and_assign, |
|
4856 octave_value::try_assignment_with_conversion, |
|
4857 octave_value::try_assignment): Pass op. |
|
4858 * pt-pr-code.cc (tree_print_code::visit_simple_assignment_expression): |
|
4859 Use expr.oper() instead of printing "=". |
|
4860 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-m-m.cc, |
|
4861 op-m-s.cc, op-str-str.cc: Pass op to INSTALL_ASSIGNOP. |
|
4862 * ops.h (INSTALL_ASSIGNOP): Pass op. |
2883
|
4863 * ov-typeinfo.cc (do_register_assign_op): Include op type in table. |
|
4864 (do_lookup_assign_op): Use op in lookup. |
2881
|
4865 |
|
4866 * ops.h (INSTALL_UNOP): Delete. |
|
4867 |
|
4868 * input.cc (generate_struct_completions, looks_like_struct): |
|
4869 Disable, since they don't work now anyway. |
|
4870 |
|
4871 * help.cc (Ftype): Work with octave_value instead of a pointer to |
|
4872 tree_constant. |
|
4873 * symtab.cc (symbol_record_info::symbol_record_info): Likewise. |
|
4874 |
|
4875 |
|
4876 Tue Apr 22 22:59:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4877 |
|
4878 * file-io.cc (Ffprintf): If first arg is a string, assume FID = 1. |
|
4879 |
|
4880 Fri Apr 18 20:16:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4881 |
|
4882 * oct-obj.h, oct-obj.cc: Implement octave_value_list with |
|
4883 Array<octave_value> as a data member, not as a class derived from |
|
4884 Array<octave_value>. |
|
4885 (octave_value_list::length, octave_value_list::resize, |
|
4886 octave_value_list::prepend, octave_value_list::append, |
|
4887 octave_value_list::reverse): New functions. |
|
4888 |
|
4889 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
4890 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
4891 op-s-cm.cc, op-s-m.cc: Use new bool ops from liboctave instead of |
|
4892 the macros defined in ops.h. |
|
4893 |
2865
|
4894 Thu Apr 17 13:12:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4895 |
|
4896 * parse.y (ABORT_PARSE): Handle forced_interactive the same as |
|
4897 interactive. |
|
4898 |
|
4899 Mon Apr 14 01:46:50 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4900 |
|
4901 * input.cc (octave_read): Don't forget to free input buffer if it |
|
4902 exists and has zero length. |
|
4903 (gnu_readline): Free buf if fgets returns 0. |
|
4904 |
|
4905 Wed Apr 9 00:03:57 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4906 |
|
4907 * time.cc (mk_tm_map): Only set zone field if HAVE_TM_ZONE or |
|
4908 HAVE_TZNAME are defined. |
|
4909 |
|
4910 Tue Apr 8 12:39:21 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4911 |
|
4912 * time.cc (extract_tm): Set tm.tm_zone if HAVE_TM_ZONE is defined, |
|
4913 not if HAVE_TMZONE is defined. |
|
4914 |
|
4915 * Makefile.in (%.oct : %.o): Use $(SH_LD), not $(CXX). |
|
4916 |
|
4917 Wed Apr 2 21:32:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4918 |
|
4919 * dynamic-ld.cc, dynamic-ld.h (init_dynamic_linker): Delete |
|
4920 function and declaration. |
|
4921 * octave.cc (main): Don't call it. |
|
4922 |
2856
|
4923 Mon Mar 31 00:37:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4924 |
2859
|
4925 * pt-base-exp.h (tree_expression::eval): Give arg a default value. |
|
4926 * pt-const.h (tree_constant::eval): Likewise. |
|
4927 * pt-exp.h (tree_prefix_expression::eval, tree_colon_expression::eval, |
|
4928 tree_postfix_expression::eval, tree_unary_expression::eval, |
|
4929 tree_binary_expression::eval, tree_boolean_expression::eval, |
|
4930 tree_simple_assignment_expression::eval): Likewise. |
|
4931 * pt-fcn.h (tree_function::eval): Likewise. |
|
4932 * pt-fvc.h (tree_identifier::eval, tree_indirect_ref::eval, |
|
4933 tree_builtin::eval): Likewise. |
|
4934 * pt-mat.h (tree_matrix::eval): Likewise. |
|
4935 * pt-misc.h (tree_statement_list::eval): Likewise. |
|
4936 * pt-mvr-base.h (tree_multi_val_ret::eval): Likewise. |
|
4937 * pt-mvr.h (tree_oct_obj::eval, tree_index_expression::eval, |
|
4938 tree_multi_assignment_expression::eval): Likewise. |
|
4939 * dassl.cc, fsolve.cc, load-save.cc, lsode.cc, npsol.cc, parse.y, |
|
4940 pt-cmd.cc, pt-exp-base.cc, pt-exp.cc, pt-fvc.cc, pt-mat.cc, |
|
4941 pt-misc.cc, pt-mvr.cc, pt-plot.cc, quad.cc, toplev.cc, variables.cc: |
|
4942 Change callers of eval() to use bool instead of int and to make |
|
4943 use of default argument value. |
|
4944 |
|
4945 * toplev.h, toplev.cc (parse_and_execute, eval_string): Flag args |
|
4946 are now bool instead of int. |
|
4947 |
2856
|
4948 * symtab.h, symtab.cc: Use bool instead of int in more places. |
|
4949 * variables.h, variables.cc: Likewise. |
2857
|
4950 * lex.h, lex.l: Likewise. |
|
4951 * parse.y: Likewise. |
2856
|
4952 * help.cc, input.cc, lex.l, load-save.cc, parse.y, pt-fcn.cc: |
|
4953 Change callers of symbol_table::lookup to use bool instead of int, |
|
4954 and to make use of default arguments. |
|
4955 |
2850
|
4956 Fri Mar 28 15:33:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4957 |
2852
|
4958 * parse.y (Vwarn_comma_in_declaration): Delete. |
|
4959 (symbols_of_parse): Delete DEFVAR for warn_comma_in_declaration. |
|
4960 (decl1): Don't allow commas in declarations. |
|
4961 |
2850
|
4962 * lsode.cc (struct LSODE_OPTIONS): Handle integer options. |
|
4963 (print_lsode_option_list, set_lsode_option, show_lsode_option): Ditto. |
|
4964 (lsode_option_table): Add element for step limit. |
|
4965 (lsode_user_jacobian): New function. |
|
4966 (Flsode): Allow function name arg to be a 2-element string array |
|
4967 specifying the function and jacobian function. |
|
4968 |
|
4969 * variables.cc (get_global_value, set_global_value): New functions. |
|
4970 |
2846
|
4971 Wed Mar 26 17:08:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4972 |
|
4973 Implement static variable declaration: |
|
4974 |
|
4975 * lex.l (is_keyword): Handle static. |
|
4976 * octave.gperf: Likewise. |
|
4977 * parse.y (Vwarn_comma_in_declaration): Rename from |
|
4978 Vwarn_comma_in_global_decl. |
|
4979 Handle new static command. |
|
4980 * pt-cmd.h, pt-cmd.cc (class tree_decl_command): New base class |
|
4981 for static and global declaration commands. |
|
4982 (class tree_global_command): Derive from tree_decl_command. |
|
4983 (class tree_static_command): New class, derived from tree_decl_command. |
|
4984 * pt-fvc.cc, pt-fvc.h (tree_identifier::mark_as_static): New function. |
|
4985 * pt-misc.h, pt-misc.h (class tree_decl_elt): Rename from tree_global. |
|
4986 (class tree_decl_init_list): Rename from tree_global_init_list. |
|
4987 * pt-pr-code.cc, pt-pr-code.h (tree_print_code::visit_decl_command): |
|
4988 Rename from visit_global_command. |
|
4989 (tree_print_code::visit_decl_elt): Rename from visit_global. |
|
4990 (tree_print_code::visit_decl_init_list): Rename from |
|
4991 visit_global_init_list. |
|
4992 * pt-walk.h (tree_walker::visit_decl_command): Rename from |
|
4993 visit_global_command. |
|
4994 (tree_walker::visit_decl_elt): Rename from visit_tree_global. |
|
4995 (tree_walker::visit_decl_init_list): Rename from |
|
4996 visit_global_init_list. |
|
4997 * variables.cc (link_to_global_variable): Trying to make a static |
|
4998 variable global is an error. |
|
4999 * SLList-misc.cc: Instantiate lists of pointers to tree_decl_elt |
|
5000 objects, not tree_global objects. |
|
5001 * symtab.h, symtab.cc (symbol_record::tagged_static): New field. |
|
5002 (symbol_record::mark_as_static, symbol_record::is_static): |
|
5003 New functions. |
|
5004 * symtab.cc (symbol_record::init_state): Initialize tagged_static. |
|
5005 (symbol_record::clear): Don't clear static variables. |
|
5006 * symtab.cc (push_context): Don't do anything for static variables. |
|
5007 |
2825
|
5008 Tue Mar 25 17:17:17 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5009 |
2881
|
5010 * ov-bool-mat.cc, ov-bool-mat.h, ov-bool.cc, ov-bool.h: New files. |
2832
|
5011 |
2831
|
5012 * defaults.cc (symbols_of_defaults): DEFCONST OCTAVE_HOME. |
|
5013 |
|
5014 * toplev.cc (octave_config_info): Delete use of CXXLIBS. |
|
5015 * oct-conf.h.in: Ditto. |
|
5016 |
2830
|
5017 * octave.cc (maximum_braindamage): Don't bind prefer_zero_one_indexing. |
|
5018 * ov.h: Don't declare Vprefer_zero_one_indexing. |
|
5019 * ov.cc: Don't define Vprefer_zero_one_indexing. |
|
5020 (prefer_zero_one_indexing): Delete. |
|
5021 (symbols_of_value): Delete DEFVAR for prefer_zero_one_indexing. |
|
5022 |
2825
|
5023 * ov.h, ov.cc, ov-base.h, ov-base.cc: Add constructors and |
|
5024 extractors for bool and boolMatrix types. |
|
5025 |
|
5026 * ov.cc (install_types): Register octave_bool and |
|
5027 octave_bool_matrix types. |
|
5028 |
|
5029 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
5030 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
5031 op-s-cm.cc, op-s-m.cc, op-s-s.cc, ov-re-mat.cc: |
|
5032 Return boolMatrix instead of Matrix object. |
|
5033 * ops.h (BOOL_OP3, MX_MX_BOOL_OP): Likewise. |
|
5034 |
|
5035 * op-b-b.h, op-b-b.cc, op-bm-bm.h, op-bm-bm.cc: New files. |
|
5036 * Makefile.in: Add them to the lists. |
|
5037 * ops.cc: Include header files here. |
|
5038 (install_ops): Call install_b_b_ops() and install_bm_bm_ops() here. |
|
5039 |
|
5040 * variables.cc (symbols_of_variables): Don't rely on default |
|
5041 conversion from int to double for value returned from |
|
5042 default_history_size(). |
|
5043 |
|
5044 * pr-output.cc: Include cstdio. |
|
5045 |
|
5046 * parse.y (param_list_end): Fix typo in last change. |
|
5047 |
|
5048 * quad.cc (quad): Cast integer return values to double. |
|
5049 * npsol.cc (show_npsol_option): Likewise. |
|
5050 * qpsol.cc (show_qpsol_option): Likewise. |
|
5051 * file-io.cc (Fsprintf, Ffwrite): Likewise. |
|
5052 |
|
5053 Mon Mar 24 13:11:47 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5054 |
|
5055 * ov-typeinfo.cc (typeinfo): If invoked with an argument, return |
|
5056 the type of the argument as a string. Fix doc string. |
|
5057 |
2821
|
5058 Thu Mar 20 14:47:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5059 |
|
5060 * mk-oct-links (links_dir): Don't use -h option for grep. It's |
|
5061 not needed since we are working on one file at a time anyway. |
|
5062 |
2819
|
5063 Mon Mar 17 10:53:29 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5064 |
|
5065 * lex.l (handle_identifier): When handling indirect_ref, set |
|
5066 lexer_flags.quote_is_transpose to 1 so that a.b' to work as |
|
5067 expected. |
|
5068 |
|
5069 * parse.y (param_list_beg, param_list_end): New nonterminals. |
|
5070 (param_list, param_list1): Use them. |
|
5071 |
2811
|
5072 Wed Mar 12 16:57:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5073 |
|
5074 * Makefile.in (install-strip): New target. |
|
5075 |
2806
|
5076 Mon Mar 10 22:38:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5077 |
|
5078 * Makefile.in (clean): Delete .oct files too. |
|
5079 |
|
5080 * toplev.cc (Vdefault_eval_print_flag): New static variable. |
|
5081 (eval_string): New arg, print. |
|
5082 (Feval): Pass Vdefault_eval_print_flag to eval_string. |
|
5083 (default_eval_print_flag): New function. |
|
5084 (symbols_of_toplev): New function. |
|
5085 |
|
5086 * variables.cc (install_builtin_variables): Call it. |
|
5087 |
|
5088 * pt-exp.h, pt-exp.cc (class tree_boolean_expression): Rename enum |
|
5089 fields `and' and `or' to `bool_and' and `bool_or'. |
|
5090 (tree_unary_expression): Rename enum field `not' to `unot'. |
|
5091 (class tree_binary_expression): Rename enum fields `and' and `or' |
|
5092 to `el_and' and `el_or'. |
|
5093 * parse.y: Change all uses. |
|
5094 |
|
5095 * time.cc (extract_tm): Truncate field values instead of rounding. |
|
5096 (gmtime, localtime): Likewise, for timeval. |
|
5097 |
|
5098 * ov.h (class octave_value): Delete unused variable freeptr. |
|
5099 |
|
5100 * mappers.cc: Delete functions that are already in |
|
5101 liboctave/lo-mappers.cc. |
|
5102 |
|
5103 * oct-strstrm.cc (octave_base_strstream::tell): Use const_cast, |
|
5104 not static_cast. |
|
5105 |
|
5106 * help.cc (help_from_list): Add missing const qualifiers. |
|
5107 * help.h (struct help_list): Likewise. |
|
5108 * lex.l (match_any, plot_style_token): Likewise. |
|
5109 * load-save.cc (extract_keyword, ascii_save_type): Likewise. |
|
5110 * oct-hist.cc (mk_tmp_hist_file): Likewise. |
|
5111 * octave.cc (execute_startup_files): Likewise. |
|
5112 * octave.gperf (struct octave_kw): Likewise. |
|
5113 * pr-output.cc (pr_any_float): Likewise. |
|
5114 * pt-mvr.cc (tree_index_expression::eval_error): Likewise. |
|
5115 * pt-exp-base.h, pt-exp.h, pt-exp.cc: Likewise. |
|
5116 * parse.y: Likewise. |
|
5117 |
2800
|
5118 Sun Mar 9 03:46:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5119 |
2806
|
5120 * pt-exp-base.h (tree_expression): Delete extra comma at end of list. |
|
5121 |
|
5122 * dirfns.cc error.cc file-io.cc fsolve.cc input.cc load-save.cc |
|
5123 npsol.cc pt-fcn.cc qpsol.cc quad.cc syscalls.cc toplev.cc |
|
5124 variables.cc: Eliminate embedded newlines in string constants. |
|
5125 |
|
5126 * Map.cc, data.cc, dirfns.cc, dynamic-ld.cc, file-io.cc, |
|
5127 fsolve.cc, getgrent.cc, getpwent.cc, getrusage.cc, help.cc, |
|
5128 input.cc, load-save.cc, mappers.cc, minmax.cc, npsol.cc, |
|
5129 oct-fstrm.cc, oct-procbuf.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
5130 oct-stream.cc, oct-stream.h, oct-strstrm.cc, octave.cc, |
|
5131 ov-base.h, ov-range.cc, ov-typeinfo.cc, ov.cc, pr-output.cc, |
|
5132 pt-cmd.cc, pt-exp.cc, pt-fcn.cc, pt-fvc.cc, pt-mat.cc, |
|
5133 pt-misc.cc, pt-plot.cc, qpsol.cc, quad.cc, sort.cc, strfns.cc, |
|
5134 symtab.cc, syscalls.cc, sysdep.cc, time.cc, toplev.cc, |
|
5135 unwind-prot.cc, unwind-prot.h, variables.cc, xpow.cc: |
|
5136 Use `static_cast<T> (val)' instead of old C-style `(T) val' casts. |
2800
|
5137 |
2799
|
5138 Sat Mar 8 02:35:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5139 |
|
5140 * load-save.cc (save_ascii_data, save_three_d): Where appropriate, |
|
5141 use bool instead of int. |
|
5142 (save_binary_data, save_mat_binary_data, save_ascii_data): |
|
5143 Print warning instead of error for wrong type arg. |
|
5144 |
|
5145 * gripes.cc (gripe_wrong_type_arg): New arg, is_error. |
|
5146 |
|
5147 * pt-plot.cc (save_in_tmp_file): Call save_ascii_data with bool |
|
5148 arg, not int. |
|
5149 |
2797
|
5150 Fri Mar 7 00:56:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5151 |
|
5152 * dassl.cc (show_dassl_option): For values that are determined |
|
5153 automatically, return a string instead of a magic value (-1.0). |
|
5154 * fsolve.cc (show_fsolve_option): Likewise. |
|
5155 * lsode.cc (show_lsode_option): Likewise. |
|
5156 * npsol.cc (show_npsol_option): Likewise. |
|
5157 * qpsol.cc (show_qpsol_option): Likewise. |
|
5158 |
|
5159 * variables.cc (extract_function): New function. |
|
5160 * dassl.cc (Fdassl): Use it instead of is_valid_function. |
|
5161 * fsolve.cc (Ffsolve): Likewise. |
|
5162 * npsol.cc (Fnpsol): Likewise. |
|
5163 * qpsol.cc (Fqpsol): Likewise. |
|
5164 * quad.cc (Fquad): Likewise. |
|
5165 |
2795
|
5166 Thu Mar 6 20:07:24 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5167 |
|
5168 * sighandlers.cc (my_friendly_exit, octave_new_handler, |
|
5169 sigfpe_handler, sigpipe_handler): Don't all error() or warning(). |
|
5170 |
|
5171 * pager.cc (pager_death_handler): Don't try to clear pager, just |
|
5172 print message to cerr. |
|
5173 (do_sync): If the status of the pager is bad or it looks like it |
|
5174 is dead, restore the interrupt handler. |
|
5175 |
|
5176 * load-save.cc (extract_keyword (istream&, char*, int&)): |
|
5177 Move declaration of buf inside loop, to avoid deleting its guts |
|
5178 and then trying to reuse it. |
|
5179 (extract_keyword (istream&, char*)): Likewise. |
|
5180 |
2790
|
5181 Tue Mar 4 20:36:53 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5182 |
2791
|
5183 * pt-fcn.cc (tree_function::eval): Protect function from being |
|
5184 redefined while it is being evaluated. |
|
5185 (unprotect_function): New function, for use with unwind_protect stuff. |
|
5186 * pt-fcn.h (tree_function::symtab_entry): New data member. |
|
5187 (tree_function::init): Initialize it to 0. |
|
5188 (tree_function::stash_symtab_ptr): New function. |
|
5189 * parse.y (frob_function_def): Stash pointer to function's |
|
5190 symbol_record in the function definition. |
|
5191 |
|
5192 * symtab.cc (symbol_record::read_only_error): New argument, |
|
5193 action. Change all callers. |
|
5194 (symbol_record::rename): Don't allow read-only symbols to be renamed. |
|
5195 |
2790
|
5196 * variables.cc (Fexist): Don't let files with `.' in their names |
|
5197 confuse us. |
|
5198 |
|
5199 * symtab.cc (valid_identifier (const string&)): New function. |
|
5200 |
2779
|
5201 Sat Mar 1 15:23:14 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2775
|
5202 |
|
5203 * Version 2.0.5 released. |
|
5204 |
2779
|
5205 Sat Mar 1 01:34:08 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5206 |
|
5207 * Makefile.in (stamp-oct-links): New target. Make links in build |
|
5208 directory too, so that the tests will work. |
|
5209 |
2777
|
5210 * quad.cc: If quad is defined, undefine it. |
|
5211 |
2775
|
5212 * octave.cc: If WITH_KPATHSEARCH is defined, don't define |
|
5213 program_invocation_name or program_invocation_short_name. |
2774
|
5214 |
|
5215 * strftime.c: Update to current version from FSF. |
|
5216 * time.cc (Fstrftime): Call strftime with buf = 0 to get buffer |
|
5217 size, then call again to actually format the time struct. |
|
5218 |
2762
|
5219 Fri Feb 28 01:49:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5220 |
2764
|
5221 Implement switch statement: |
|
5222 |
|
5223 * parse.y (Vwarn_variable_switch_label): New static variable. |
|
5224 (warn_variable_switch_label): New function. |
|
5225 (symbols_of_parse): Provide warn_variable_switch_label as Octave |
|
5226 variable here. |
|
5227 (make_switch_case, finish_switch_command): New functions. |
|
5228 (maybe_warn_variable_switch_label): New function. |
|
5229 (end_error): Handle endswitch. |
|
5230 (switch_command, case_list, case_list1, switch_case, default_case): |
|
5231 New nonterminals. |
|
5232 (command): Add switch_command here. |
|
5233 * lex.l (is_keyword): Handle switch, case, otherwise, and endswitch. |
|
5234 * octave_gperf: Recognize switch, case, otherwise, and endswitch. |
|
5235 * token.h (end_tok_type): New item, switch_end. |
|
5236 * pt-cmd.cc (tree_switch_command): New class. |
|
5237 * pt-misc.cc (tree_switch_case, tree_switch_case_list): New classes. |
|
5238 * pt-pr-code.cc (tree_print_code::visit_switch_case, |
|
5239 tree_print_code::visit_switch_case_list, |
|
5240 tree_print_code::visit_switch_command): New functions. |
|
5241 * pt-walk.h (tree_walker::visit_switch_case, |
|
5242 tree_walker::visit_switch_case_list, |
|
5243 tree_walker::visit_switch_command): New pure virtual declarations. |
|
5244 Implement new switch statement. |
|
5245 * SLList-misc.cc: Instantiate lists of pointers to |
|
5246 tree_switch_case objects too. |
|
5247 |
|
5248 * lex.h, lex.l, parse.y: Delete all references to lexer_flags::iffing. |
|
5249 |
2762
|
5250 * syswait.h: Include sys/wait.h on NeXT systems, but don't use the |
|
5251 WIFEXTED, WEXITSTATUS, and WIFSIGNALLED macros defined there. |
|
5252 Also define waitpid in terms of wait4. From Rex A. Dieter |
|
5253 <rdieter@math.unl.edu>. |
|
5254 |
2759
|
5255 Wed Feb 26 16:43:31 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5256 |
|
5257 * oct-stream.cc (octave_base_stream::do_scanf): Don't report an |
|
5258 error if a conversion fails or we reach EOF. |
|
5259 |
2745
|
5260 Tue Feb 25 22:21:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5261 |
|
5262 * time.cc (strftime): increase initial buffer size. |
|
5263 |
|
5264 Mon Feb 24 17:49:21 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5265 |
|
5266 * pt-fvc.cc (tree_builtin::eval): Enable checking for max number |
|
5267 of arguments. |
|
5268 |
|
5269 * error.cc (handle_message): Don't fail if args is empty. |
|
5270 |
|
5271 Sun Feb 23 22:42:52 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5272 |
|
5273 * lex.h (lexical_feedback::looking_at_return_list): New field. |
|
5274 (lexical_feedback::looking_at_parameter_list): Ditto. |
|
5275 * lex.l (lexical_feedback::init): Initialize them. |
|
5276 (handle_identifier): Use them. |
|
5277 * parse.y: Likewise. |
|
5278 |
2712
|
5279 Fri Feb 21 15:35:18 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5280 |
2716
|
5281 * lex.l: Require flex 2.5 or later (we really want 2.5.4 or later, |
|
5282 but there seems to be no good way to check the patchlevel). |
|
5283 |
2712
|
5284 * oct-stream.cc (octave_base_stream::oscanf): Instead of returning |
|
5285 an error, just quit processing after a conversion fails. |
|
5286 |
2709
|
5287 Thu Feb 20 02:58:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2702
|
5288 |
|
5289 * Version 2.0.4 released. |
|
5290 |
2706
|
5291 Wed Feb 19 10:30:14 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5292 |
2705
|
5293 * sighandlers.cc (octave_ignore_interrupts, |
|
5294 octave_catch_interrupts, octave_set_interrupt_handler): |
|
5295 Return old value, not pointer to static data. Fix all uses. |
|
5296 |
|
5297 * sighandlers.h (octave_interrupt_handler): Move declaration here. |
|
5298 * sighandlers.cc: From here. |
|
5299 |
|
5300 * toplev.cc: Undo previous change. |
|
5301 |
2702
|
5302 * lex.l (handle_identifier): Allow commands like ls, save, etc. to |
|
5303 also be used as simple variable names. Also make it possible to |
|
5304 use the normal function call syntax to invoke them. |
|
5305 |
2693
|
5306 Tue Feb 18 09:22:04 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2689
|
5307 |
2702
|
5308 * Makefile.in (%.oct:%.o, %.oct:pic/%.o): Use $(SH_LDFLAGS) here. |
|
5309 |
2690
|
5310 * Version 2.0.3 released. |
|
5311 |
2693
|
5312 Tue Feb 18 00:27:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5313 |
|
5314 * toplev.cc (run_command_and_return_output): |
|
5315 Block SIGCHLD while running subprocess. |
|
5316 (cleanup_iprocstream): Unblock it here. |
|
5317 |
|
5318 * sighandlers.h (BLOCK_SIGNAL, BLOCK_CHILD, UNBLOCK_CHILD): Move here. |
|
5319 * sighandlers.cc: From here. |
|
5320 |
2692
|
5321 * toplev.cc (system): Shift then mask exit status. |
|
5322 |
|
5323 * help.cc (try_info): Shift first, then mask exit status. |
|
5324 |
2689
|
5325 * toplev.cc (octave_config_info): Handle option argument. |
|
5326 |
2686
|
5327 Fri Feb 14 16:23:30 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5328 |
2687
|
5329 * oct-stream.cc (octave_base_stream::do_scanf): Don't forget to |
|
5330 check to see if the result matrix needs resizing! |
|
5331 |
2686
|
5332 * Makefile.in (bin-dist): Don't write empty strings to LIBRARIES. |
|
5333 |
2669
|
5334 Thu Feb 13 03:02:08 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5335 |
2676
|
5336 * Makefile.in (stamp-prereq): Depend on stamp-picdir. |
|
5337 (all): Don't depend on stamp-prereq or stamp-picdir. |
|
5338 (stamp-tinst, stamp-interp, libtinst.a, liboctinterp.a): |
|
5339 Do depend on stamp-prereq. |
|
5340 (stamp-picdir): Silence noise about making pic. |
|
5341 (stamp-tinst, stamp-interp): Use $(SH_LD) $(SH_LDFLAGS) instead of |
|
5342 $(CXX) -shared. |
|
5343 |
2675
|
5344 * oct-conf.h.in: Reinstate RLD_FLAG. |
|
5345 * toplev.cc (octave_config_info): Likewise. |
|
5346 |
2672
|
5347 * data.cc (map_d_m, map_m_d, map_m_m): Rename from map. |
|
5348 (Fatan2): Use new function names. |
|
5349 |
|
5350 * pt-fvc.cc (apply_mapper_fcn): Use member function map() instead |
|
5351 of friend function. |
|
5352 |
2669
|
5353 * gripes.cc (gripe_wrong_type_arg (const char*, const string&)): |
|
5354 New function. |
|
5355 |
|
5356 Wed Feb 12 17:27:53 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5357 |
|
5358 * syscalls.cc (symbols_of_syscalls): Add O_ASYNC and O_SYNC. |
|
5359 |
|
5360 Mon Feb 10 01:22:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5361 |
|
5362 * dirfns.cc (Freaddir, Fmkdir, Frmdir, Frename): |
|
5363 Also return status and error message. |
|
5364 |
|
5365 * syscalls.cc (Fdup2, Fexec, Ffork, Ffcntl, Funlink, Fmkfifo, |
|
5366 Fpipe, Fwaitpid): Also return error message. |
|
5367 |
2664
|
5368 Sat Feb 8 17:16:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5369 |
2665
|
5370 * pt-exp.cc (tree_simple_assignment_expression::eval): Return |
|
5371 value of RHS, but (if printing) print complete value of LHS. |
|
5372 |
2664
|
5373 * pr-output.cc (octave_print_internal): Print a new line for empty |
|
5374 string matrices. |
|
5375 |
2663
|
5376 Wed Feb 5 14:30:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5377 |
|
5378 * oct-stream.cc (scanf_format_list::process_conversion): Accept |
|
5379 but don't actually use h, l, and L modifiers. Always insert l |
|
5380 modifier for floating point conversions. |
|
5381 |
2652
|
5382 Fri Jan 31 13:55:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5383 |
|
5384 * pager.cc (do_sync): Always flush the cout stream after writing. |
|
5385 |
2643
|
5386 Wed Jan 29 08:25:29 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5387 |
2648
|
5388 * defaults.cc (exec_path): Don't include bin_dir in std_path. |
|
5389 |
2646
|
5390 * pager.cc (do_sync): Flush the cout stream after writing if |
|
5391 running in interactive or forced_interactive mode. |
|
5392 |
|
5393 * mk-oct-links: Rename from mk-oct-links.in. |
|
5394 Don't use symbolic links. |
|
5395 * Makefile.in: Distribute mk-oct-links, not mk-oct-links.in |
|
5396 (mk-oct-links): Delete target. |
|
5397 (install-oct, bin-dist): Don't depend on mk-oct-links. |
|
5398 Run $(srcdir)/mk-oct-links, not ./mk-oct-links. |
|
5399 |
2643
|
5400 * qr.cc (qr): Doc fix. |
|
5401 |
2638
|
5402 Tue Jan 28 10:48:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5403 |
|
5404 * Makefile.in (install-inc): Create a relative symbolic link. |
|
5405 (install-bin): Create a relative symbolic link. |
|
5406 |
2630
|
5407 Mon Jan 27 12:12:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5408 |
2634
|
5409 * Version 2.0.2 released. |
|
5410 |
|
5411 * Makefile.in (CXXFLAGS_NO_PT_FLAGS): Rename from XALL_CXXFLAGS. |
|
5412 Substitute bsd_gcc_kluge_targets_frag. |
|
5413 |
2630
|
5414 * sysdep.cc (Fsleep): New function. |
|
5415 (Fusleep): New function. |
|
5416 |
|
5417 * toplev.cc (octave_config_info): Don't include RLD_FLAG. |
|
5418 * oct-conf.h.in: Don't define RLD_FLAG |
|
5419 |
2626
|
5420 Sun Jan 26 19:41:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5421 |
|
5422 * sighandlers.cc (sigchld_handler): Block SIGCHLD while |
|
5423 sigchld_hander is running. |
|
5424 |
2624
|
5425 Sat Jan 25 22:36:39 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5426 |
|
5427 * Makefile.in (bin-dist): Update for 2.x. |
|
5428 |
2621
|
5429 Fri Jan 24 10:05:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5430 |
|
5431 * mk-oct-links.in: New arg, -p, to just print list of files to link. |
|
5432 |
|
5433 * lex.l (handle_number): Convert `D' or `d' exponents to `e' |
|
5434 before scanning. |
|
5435 |
2620
|
5436 Thu Jan 23 10:00:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5437 |
|
5438 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_no_op_command): |
|
5439 New function. |
|
5440 * pt-cmd.h, pt-cmd.cc (tree_no_op_command): New class. |
|
5441 * parse.y (make_break_command, make_continue_command, |
|
5442 make_return_command): Where they don't really make sense, turn |
|
5443 these commands into no-ops. Accept return and break if reading a |
|
5444 script file. |
|
5445 * toplev.cc (parse_and_execute): Handle return and break in script |
|
5446 files. Quit executing commands if an error occurs when reading a |
|
5447 script file. Set global_command to 0 after deleting it. |
|
5448 (main_loop): If not interactive or forced_interactive, handle |
|
5449 break and return, and quit executing commands if an error occurs. |
|
5450 Set global_command to 0 after deleting it. |
|
5451 * error.cc (Ferror): Doc fix. |
|
5452 * pt-walk.h (tree_walker): Add declaration for visit_no_op_command. |
|
5453 |
2618
|
5454 Wed Jan 22 20:54:12 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5455 |
|
5456 * input.cc (gnu_readline): If not using readline, flush |
|
5457 rl_outstream after printing prompt. |
|
5458 (octave_gets): Also call flush_octave_stdout() if |
|
5459 forced_interactive, not just if interactive. |
|
5460 (do_input_echo): If forced_interactive, only echo prompt and |
|
5461 command line if also reading a script file. |
|
5462 |
2616
|
5463 Tue Jan 21 23:02:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5464 |
|
5465 * SLList.h: Include "BaseSLList.h", not <BaseSLList.h>. |
|
5466 |
2610
|
5467 Mon Jan 20 11:11:12 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5468 |
2614
|
5469 * lex.l (token_stack): Don't declare static. |
|
5470 * pt-plot.cc (tmp_files): Likewise. |
|
5471 * toplev.cc (octave_atexit_functions): Likewise. |
|
5472 * unwind-prot.cc (unwind_protect_list): Likewise. |
|
5473 |
2613
|
5474 * ops.h (MX_MX_BOOL_OP): Correctly handle case of one or both |
|
5475 arguments being empty. Change all callers. |
|
5476 |
|
5477 * oct-stream.cc (printf_value_cache::looking_at_string): |
|
5478 Handle empty strings correctly now that they are 0x0. |
|
5479 |
2610
|
5480 * file-io.cc: Don't include "syswait.h" here. |
|
5481 |
|
5482 Sun Jan 19 22:38:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5483 |
|
5484 * oct-stream.h (octave_base_stream::seek): Declare offset arg as |
|
5485 streamoff, not streampos. |
|
5486 (octave_stream::seek): Likewise. |
|
5487 * oct-strstrm.h (octave_base_strstream::seek): Likewise. |
|
5488 * oct-stdstrm.h (octave_base_stdiostream::seek): Likewise. |
|
5489 * oct-iostrm.h (octave_base_iostream::seek): Likewise. |
|
5490 * oct-fstrm.h (octave_fstream::seek): Likewise. |
|
5491 |
2609
|
5492 Fri Jan 17 18:13:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5493 |
|
5494 * file-io.cc (Ffflush): Handle stdout as a special case. |
|
5495 |
|
5496 * oct-stream.cc (octave_stream_list::do_get_file_number): |
|
5497 Do the work for octave_stream::get_file_number. |
|
5498 (octave_stream_list::get_file_number): Convert to static function. |
|
5499 |
2608
|
5500 Wed Jan 8 11:42:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5501 |
|
5502 * log.cc (sqrtm): For complex arg case, compute sqrt, not log. |
|
5503 |
2602
|
5504 Tue Jan 7 00:16:41 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5505 |
|
5506 * Version 2.0.1 released. |
|
5507 |
|
5508 Mon Jan 6 00:00:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5509 |
|
5510 * pt-mat.cc (tm_row_const_rep::all_mt): New variable. |
|
5511 (tm_row_const::all_empty): New function. |
|
5512 (tm_row_const::tm_row_const_rep::init): Set all_mt here. |
|
5513 (tm_const::all_mt): New variable. |
|
5514 (tm_const::all_emtpy): New function. |
|
5515 (tm_const::init): Set all_mt here. |
|
5516 (tree_matrix::eval): Return an empty matrix if the list contains |
|
5517 only empty elements. If it contains only empty strings, return an |
|
5518 empty string. |
|
5519 |
2601
|
5520 Sun Jan 5 12:50:25 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5521 |
|
5522 * ops.h (SC_MX_BOOL_OP, MX_SC_BOOL_OP): New arg, empty_result. |
|
5523 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
5524 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
5525 op-s-cm.cc, op-s-m.cc, op-str-str.cc: Change all uses of |
|
5526 SC_MX_BOOL_OP and MX_SC_BOOL_OP macros. Return correct results |
|
5527 for empty matrix cases. |
|
5528 |
|
5529 * pt-fcn.cc (tree_function::eval): If Vdefine_all_return_values is |
|
5530 true, initialize return values before evaluating function, for |
|
5531 compatibility with Matlab. |
|
5532 |
|
5533 * oct-stream.cc (get_size): Correctly set size when arg is scalar. |
|
5534 |
|
5535 Thu Jan 2 12:40:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5536 |
|
5537 * Makefile.in (install-oct): Quote $(OCT_FILES) in for loop to |
|
5538 avoid syntax error from ksh. |
|
5539 |
|
5540 * pr-output.cc (octave_print_internal): Avoid unused parameter |
|
5541 warning from gcc. |
|
5542 |
2600
|
5543 Thu Dec 19 12:13:42 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5544 |
|
5545 * oct-stream.cc (octave_base_stream::do_scanf): |
|
5546 Don't treat %l{e,f,g} differently from %{e,f,g}. |
|
5547 (octave_base_stream::do_oscanf): Likewise. |
|
5548 |
|
5549 * sighandlers.cc (sigchld_handler): Fix typos. |
|
5550 |
2598
|
5551 Wed Dec 18 20:17:23 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5552 |
2599
|
5553 * file-io.cc (Ffgetl, Ffgets): Also return number of characters read. |
|
5554 |
|
5555 * ov-range.cc (octave_range::not): New function. |
|
5556 * ov-range.h (octave_range::uminus): New function. |
|
5557 |
2598
|
5558 * BaseSLList.cc: Include error.h. |
|
5559 (BaseSLList::error): Call ::error() to process error message. |
|
5560 |
2589
|
5561 Fri Dec 13 02:38:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5562 |
|
5563 * ov.cc (octave_value::convert_and_assign): Preserve lhs value if |
|
5564 assignment fails. |
|
5565 |
2586
|
5566 Wed Dec 11 12:33:16 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5567 |
|
5568 * pt-plot.cc (GPLOT_CMD_END): Don't put semicolons at the end of |
|
5569 each plot command; it causes trouble with gnuplot 3.5. |
|
5570 |
2580
|
5571 Tue Dec 10 00:31:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5572 |
2583
|
5573 * Version 2.0 released. |
|
5574 |
2584
|
5575 * pr-output.cc (set_format_style): Don't try to access argv unless |
|
5576 argc > 1. |
|
5577 |
2580
|
5578 * SLList-expr.cc SLList-misc.cc SLList-plot.cc SLList-str.cc |
|
5579 SLList-tc.cc SLList-tm.cc SLList.h SLStack-i.cc SLStack-pc.cc |
|
5580 SLStack-str.cc SLStack-sym.cc SLStack-tok.cc SLStack-ue.cc |
|
5581 SLStack-ui.cc, pt-mat.cc: Include Stack.h, Stack.cc, SLStack.cc, |
|
5582 and SLList.cc as necessary. |
|
5583 |
|
5584 * Stack.cc, SLStack.cc, SLList.cc: New files. |
|
5585 * Makefile.in (SOURCES): Add them to the list. |
|
5586 |
2575
|
5587 Mon Dec 9 12:03:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5588 |
2577
|
5589 * Makefile.in (install-bin): Use $(EXE) suffix so install will |
|
5590 find the right file on cygwin32 systems. |
|
5591 |
2575
|
5592 * ov.h: Declare proper form of do_binary_op as friend to |
|
5593 octave_value class. |
|
5594 |
2572
|
5595 Sat Dec 7 22:00:10 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5596 |
|
5597 * oct-stream.cc (do_printf_conv, do_scanf_conv, |
|
5598 do_oscanf_num_conv, do_oscanf_str_conv): Convert to real |
|
5599 functions instead of CPP macros, using templates where necessary. |
|
5600 (do_oscanf_num_conv, do_oscanf_str_conv): Correctly handle |
|
5601 discarded values. |
|
5602 |
2569
|
5603 Fri Dec 6 00:20:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5604 |
2572
|
5605 * Version 1.94. |
|
5606 |
2571
|
5607 * Map-*.cc, SLList-*.cc, SLStack-*.cc: Include config.h. |
|
5608 |
|
5609 * ov.h: Don't include SLList.h. |
|
5610 |
|
5611 * SLStack.cc: Delete. Move everything to SLStack.h. |
|
5612 |
|
5613 * BaseSLList.h, BaseSLList.cc: New files. Split out the |
|
5614 non-template base class parts of SLList. |
|
5615 |
2569
|
5616 * Makefile.in (TEMPLATE_SRC): Delete. Move files to SOURCES. |
|
5617 * Map.h, Map.cc: Add #pragma interface/implementation. |
|
5618 * SLStack.h, SLStack.cc: Add #pragma interface/implementation. |
|
5619 |
|
5620 * SLList.h, SLList.cc: New files, from libg++, but with #pragma |
|
5621 interface/implementation. |
|
5622 * Makefile.in (SOURCES): Add SLList.cc. |
|
5623 (INCLUDES): Add SLList.h. |
|
5624 |
2566
|
5625 Thu Dec 5 18:36:44 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5626 |
|
5627 * octave.cc: Don't include sun-utils.h. |
|
5628 |
2563
|
5629 Tue Dec 3 23:47:09 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5630 |
|
5631 * op-str-str.cc (eq, ne): Handle operations with scalars. |
|
5632 |
2555
|
5633 Thu Nov 21 12:30:36 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5634 |
|
5635 * ov-str-mat.h (octave_char_matrix_str): Provide transpose and |
|
5636 hermitian operators. |
|
5637 * ov-ch-mat.h (octave_char_matrix): Likewise. |
|
5638 |
2548
|
5639 Wed Nov 20 00:35:57 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5640 |
2554
|
5641 * sighandlers.h (struct octave_interrupt_handler): Provide |
|
5642 forward declaration here. |
|
5643 * sighandlers.cc (octave_interrupt_handler): New struct. |
|
5644 (octave_catch_interrupts): Rename from catch_interrupts. |
|
5645 (octave_ignore_interrupts, octave_set_interrupt_handler): |
|
5646 New functions. |
|
5647 * help.cc, oct-hist.cc, pager.cc, toplev.cc: Use new functions for |
|
5648 handling interrupts so that we can hide the details of whether or |
|
5649 not we have to deal with SIGBREAK. |
|
5650 |
|
5651 * pt-plot.cc [! HAVE_POSIX_SIGNALS] (open_plot_stream): |
|
5652 Simply ignore and restore the interrupt handler here. |
|
5653 |
|
5654 * sighandlers.cc (MAYBE_REINSTALL_SIGHANDLER): New macro. Use it |
|
5655 instead of always checking MUST_REINSTALL_SIGHANDLERS everywhere. |
|
5656 (sigchld_handler): If octave_child_list is empty, wait for any |
|
5657 child, but don't hang, and don't collect status info. |
|
5658 [__EMX__] (sigchld_handler): Save and restore handlers for SIGINT, |
|
5659 SIGBREAK, and SIGCHLD. Ignore them while waiting on children. |
|
5660 (install_signal_handlers): If SIGBREAK exists, handle it like SIGINT. |
|
5661 |
2552
|
5662 * toplev.cc [USE_READLINE] (clean_up_and_exit): |
|
5663 Call rl_deprep_terminal() to restore terminal settings. |
|
5664 |
|
5665 * sysdep.cc [__EMX__ && OS2] (Fextproc): New command. |
|
5666 [__EMX__ && OS2] (FEXTPROC): Alias for Fextproc. |
|
5667 |
|
5668 * Version 1.93. |
|
5669 |
2549
|
5670 * sysdep.cc (octave_chdir): [__EMX__]: Make copy of string before |
|
5671 converting to upper case. |
|
5672 |
2548
|
5673 * getgrent.cc (mk_gr_map): Only set the passwd field if |
|
5674 HAVE_GR_PASSWD is defined. |
|
5675 |
2533
|
5676 Tue Nov 19 12:01:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5677 |
2546
|
5678 * sysdep.cc (OS2_init): New function. |
|
5679 [__EMX__] (sysdep_init): Call it. |
|
5680 |
2542
|
5681 * lex.l (plot_style_token): Add new plot styles for gnuplot 3.6. |
2543
|
5682 * pt-plot.cc (subplot_style::columns_ok): Rename from |
|
5683 subplot_style::errorbars. Recognize more styles and do a better |
|
5684 job of diagnosing column number/style mismatches. |
2542
|
5685 |
2536
|
5686 * sighandlers.cc (my_friendly_exit): If we are called twice, try |
|
5687 to remove the signal handler for SIGABRT and the call abort (). |
|
5688 |
2534
|
5689 * help.cc (Ftype): If a function is defined from a file and |
|
5690 transformed text has not been requested, just print the contents |
|
5691 of the file. |
|
5692 |
2533
|
5693 * parse.y (fold): New functions for constant folding for binary |
|
5694 and unary expressions. Keep track of original text even when |
|
5695 transformations occur. |
|
5696 (make_binary_op, make_boolean_op, make_unary_op): Use them. |
|
5697 (finish_colon_expression, finish_matrix): Keep track of original |
|
5698 text even when transformations occur. |
|
5699 |
|
5700 * help.cc (Ftype): Don't mess with Vps4. |
|
5701 Handle new option `-transformed'. |
|
5702 |
|
5703 * pt-const.h, pt-const.cc (tree_constant::print): |
|
5704 New arg, pr_orig_text. |
|
5705 |
|
5706 * pt-exp.h, pt-exp.cc (tree_colon_expression::is_range_constant): |
|
5707 Delete. |
|
5708 |
|
5709 * pt-exp-base.h (tree_expression::original_text): New virtual function. |
|
5710 pt-exp-base.cc (tree_expression::original_text): Default version. |
|
5711 |
|
5712 * pt-pr-code.h (tree_print_code::print_original_text, |
|
5713 tree_print_code::prefix): New fields. |
|
5714 * pt-pr-code.cc (tree_print_code::visit_constant): Pass |
|
5715 print_original_text to tree_constant::print(). |
|
5716 (tree_print_code::indent): Use prefix instead of Vps4. |
|
5717 * pt-fcn.cc (tree_function::print_function_header, |
|
5718 tree_function::print_function_trailer): Pass Vps4 to |
|
5719 tree_print_code_constructor for prefix. |
|
5720 * pt-misc.cc (tree_statement::maybe_echo_code): Pass Vps4 to |
|
5721 tree_print_code_constructor for prefix. |
|
5722 |
|
5723 * pt-mat.h, pt-mat.cc (tree_matrix::all_elements_are_constant): |
|
5724 Rename from is_matrix_constant. |
|
5725 (tree_matrix_row::all_elements_are_constant): Likewise. |
|
5726 Change all callers. |
|
5727 |
|
5728 Mon Nov 18 14:13:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5729 |
|
5730 * Makefile.in (install-inc): Try harder to create the link from |
|
5731 include/octave to include/octave-VERSION. |
|
5732 |
2524
|
5733 Sun Nov 17 14:14:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5734 |
2527
|
5735 * Makefile.in (parse.cc): Expect 13 shift/reduce conflicts. |
2526
|
5736 |
2525
|
5737 * parse.y (set_stmt_print_flag): New function. |
|
5738 (sep_type): New member for bison %union declaration. |
|
5739 Simplify rules for statement lists keeping track of the type of |
|
5740 the first separator in the values associated with the |
|
5741 nonterminals for the separators. |
|
5742 |
2524
|
5743 * lex.l (handle_identifier): Set lexer_flags.doing_set if the |
|
5744 token is "gset", not "set". |
|
5745 |
|
5746 Sat Nov 16 21:41:26 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5747 |
|
5748 * Makefile.in (parse.cc, lex.cc): Add special rules for these files. |
|
5749 Delete pattern rules for .y and .l files. |
|
5750 |
2522
|
5751 Fri Nov 15 13:48:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5752 |
2523
|
5753 * pt-plot.cc: Put semicolons at the ends of all plot commands. |
|
5754 |
2522
|
5755 * defaults.cc (subst_octave_home): Start subsequent searchs from |
|
5756 the end of the replaced text. |
|
5757 |
|
5758 * pr-output.cc (pr_any_float): Kluge for SCO systems. |
|
5759 |
|
5760 * pr-output.cc (pr_any_float, pr_complex): Don't declare inline. |
|
5761 |
|
5762 * mappers.cc: Include lo-ieee.h, for isinf and isnan on SCO |
|
5763 systems. |
|
5764 |
2512
|
5765 Thu Nov 14 00:06:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5766 |
2520
|
5767 * pt-plot.cc (Fgset, Fgshow): New commands. |
|
5768 (Fshow): Print warning and call gshow. |
|
5769 (Fset): Print warning and call gset. |
|
5770 |
2517
|
5771 * variables.cc (parse_fcn_file): Add unwind-protect for file |
|
5772 pointer, so the file is always closed. |
|
5773 (get_help_from_file): Likewise. |
|
5774 * toplev.cc (parse_and_execute): Likewise. |
|
5775 |
2516
|
5776 * Makefile.in (install-oct): Depend on mk-oct-links. |
|
5777 (mk-oct-links): New target. |
|
5778 |
2512
|
5779 * Version 1.92. |
|
5780 |
2508
|
5781 Wed Nov 13 11:13:22 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5782 |
2512
|
5783 * sighandlers.cc (sys_siglist): [__EMX__]: Add definitions. |
|
5784 |
|
5785 * octave.cc (execute_startup_files): Allow init file name ot be |
|
5786 specified by an environment variable. |
|
5787 |
|
5788 * dirfns.cc (make_absolute): [__EMX__]: Path is already absolute |
|
5789 if it begins with any character followed by a colon. |
|
5790 |
2511
|
5791 * load-save.cc (read_mat_ascii_matrix, get_lines_and_columns, |
|
5792 get_complete_line): New functions, for reading headless text files. |
|
5793 (load_save_format): Add LS_MAT_ASCII, for headless text files. |
|
5794 (do_load): Handle LS_MAT_ASCII files. |
|
5795 Thanks to Mel Melchner <mjm@research.att.com> for initial version |
|
5796 of this code. |
|
5797 |
2508
|
5798 * sysdep.cc: Conditionally include ieeefp.h. |
|
5799 (BSD_init, SCO_init): New functions. |
|
5800 (sysdep_init): Conditionally call them here. |
|
5801 |
2499
|
5802 Tue Nov 12 00:14:56 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5803 |
2508
|
5804 * pt-plot.cc (open_plot_stream): Don't block SIGCHLD. |
|
5805 |
2499
|
5806 * load-save.cc (read_binary_data): When reading string arrays, be |
|
5807 sure to create an octave_char_matrix_str object, not just an |
|
5808 octave_char_matrix object. |
|
5809 (read_ascii_data): Likewise. |
|
5810 |
2497
|
5811 Mon Nov 11 22:52:58 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5812 |
|
5813 * load-save.cc (read_binary_data): Don't forget teminating NUL for |
|
5814 string that we plan to insert. |
|
5815 (read_ascii_data): Likewise. |
|
5816 |
2495
|
5817 Sun Nov 10 16:58:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5818 |
2496
|
5819 * dirfns.cc (Ffnmatch): New function. |
|
5820 |
2495
|
5821 * octave.cc (intern_argv): Use new string_vector constructor. |
|
5822 |
|
5823 * ov-str-mat.cc (octave_char_matrix_str::all_strings): Have |
|
5824 charMatrix::row_as_string() strip trailing whitespace. |
|
5825 |
|
5826 * dirfns.cc (Fglob): new function. |
|
5827 |
|
5828 * sysdep.cc (oct_tilde_expand): Provide version that works on |
|
5829 string vectors too. |
|
5830 (Ftilde_expand): Work on string vector args. |
|
5831 |
|
5832 * load-save.cc (save_binary_data): Call char_matrix_value() to |
|
5833 extract charMatrix from octave_value object, not all_strings(). |
|
5834 (save_ascii_data): Likewise. |
|
5835 * pt-mat.cc (tree_matrix::eval): Likewise. |
|
5836 |
|
5837 * ov.h (octave_value::all_strings): Return string_vector, not |
|
5838 charMatrix. |
|
5839 * ov-base.cc (octave_base_value::all_strings): Likewise. |
|
5840 * ov-str-mat.h, ov-str-mat.cc (octave_char_matrix_str::all_strings): |
|
5841 Likewise. |
|
5842 |
2487
|
5843 Fri Nov 8 09:54:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5844 |
2492
|
5845 * defaults.cc, dynamic-ld.cc, fn-cache.cc, help.cc, oct-hist.cc, |
|
5846 octave.cc, pager.cc, pt-fcn.cc, toplev.cc, utils.cc, variables.cc, |
|
5847 lex.l: Change #include "" to #include <> for defaults.h, |
|
5848 oct-conf.h, oct-gperf.h, y.tab.h, and version.h, to avoid getting |
|
5849 them from $srcdir when we really want the version from the build |
|
5850 directory. (Maybe this should be done for all the include files, |
|
5851 not just those that are auto-generated? Hmm.) |
|
5852 |
2488
|
5853 * defaults.h.in (CXXLIB_LIST, CXXLIB_PATH, FLIB_LIST, FLIB_PATH): |
|
5854 Delete. |
|
5855 |
2487
|
5856 * Makefile.in (install-oct): Use $(INSTALL_PROGRAM) for .oct files. |
|
5857 |
2477
|
5858 Thu Nov 7 07:59:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5859 |
2487
|
5860 * variables.cc (gobble_leading_white_space): New arg, update_pos. |
|
5861 * (is_function_file): Don't update file position information here. |
|
5862 |
2482
|
5863 * Version 1.91. |
|
5864 |
2479
|
5865 * pt-fvc.cc (tree_indirect_ref::reference): If the lhs object is |
|
5866 not a map, convert it to one. |
|
5867 |
|
5868 * ov-typeinfo.h (init_tab_sz): New static member. |
|
5869 |
2477
|
5870 * ov-struct.cc, ov-struct.h: Add hooks for custom memory management. |
|
5871 * ov-scalar.cc, ov-scalar.h: Likewise. |
|
5872 * ov-re-mat.cc, ov-re-mat.h: Likewise. |
|
5873 * ov-range.cc, ov-range.h: Likewise. |
|
5874 * ov-cx-mat.cc, ov-cx-mat.h: Likewise. |
|
5875 * ov-complex.cc, ov-complex.h: Likewise. |
|
5876 * ov-ch-mat.cc, ov-ch-mat.h: Likewise. |
|
5877 |
2474
|
5878 Wed Nov 6 12:32:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5879 |
2482
|
5880 * pager.cc (do_sync): Don't call clear_external_pager() here. |
2476
|
5881 |
2475
|
5882 * pt-const.h (tree_constant::allocator) New static member. |
|
5883 (tree_constant::operator new, tree_constant::operator delete): |
|
5884 Implement with custom allocator. |
|
5885 |
|
5886 * syscalls.cc (Fgetgid, Fgetegid): New functions. |
|
5887 |
|
5888 * sighandlers.cc (sigchld_handler): If necessary, reinstall |
|
5889 handler after call to waitpid(). |
|
5890 |
|
5891 * pager.cc (pager_death_handler): Don't use warning() to print |
|
5892 message. |
|
5893 |
|
5894 * getgrent.cc: New file. |
|
5895 * Makefile.in (DLD_SRC): Add it. |
|
5896 |
|
5897 * ov.cc (octave_value::print_with_name): Call is_map() instead of |
|
5898 print_as_structure(). |
|
5899 * ov-struct.cc (octave_struct::print): Likewise. |
|
5900 |
|
5901 * ov.h, ov.cc, pt-const.h: Delete force_numeric(), make_numeric(), |
|
5902 convert_to_matrix_type(), print_as_structure() member functions. |
|
5903 |
2474
|
5904 * variables.cc (is_function_file): Call gobble_leading_whitespace |
|
5905 here to strip all leading whitespace and comments. |
|
5906 (parse_fcn_file): If reading a function file, call |
|
5907 gobble_leading_whitespace again after resetting parser state to |
|
5908 grab help text. |
|
5909 |
2469
|
5910 Tue Nov 5 13:00:35 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5911 |
2472
|
5912 * syscalls.cc (Fgeteuid, Fgetuid): New functions. |
|
5913 |
|
5914 * getpwent.cc: Use gripe_not_supported from gripes.cc, instead of |
|
5915 local gripe_not_implemented function. |
|
5916 |
2470
|
5917 * input.cc, sysdep.cc, variables.cc: Only include readline.h and |
|
5918 history.h if USE_READLINE is defined. |
|
5919 |
|
5920 * help.cc: Make it compile without warnings even if USE_GNU_INFO |
|
5921 is not defined. |
|
5922 |
2469
|
5923 * sighandlers.h (octave_child_list): Don't define |
|
5924 HAVE_POSIX_SIGNALS HERE. |
|
5925 |
|
5926 * sighandlers.cc (SIGHANDLER_RETURN): New macro. |
|
5927 (generic_sig_handler, sigchld_handler, sigfpe_handler, |
|
5928 sigint_handler, sigpipe_handler): Use it. |
|
5929 (sigchld_handler, sigfpe_handler, sigint_handler, sigpipe_handler): |
|
5930 Only reinstall signal handler if MUST_REINSTALL_SIGHANDLER is defined. |
|
5931 |
2463
|
5932 Sun Nov 3 00:45:30 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5933 |
2466
|
5934 * pt-const.cc (tree_constant::print): Just call val.print(). |
|
5935 * ov-base.cc, ov-ch-mat.cc, ov-colon.cc, ov-complex.cc, |
|
5936 ov-cx-mat.cc, ov-range.cc, ov-re-mat.cc, ov-scalar.cc, |
|
5937 ov-str-mat.cc, ov-struct.cc ov-va-args.cc, ov.cc (print): |
|
5938 Handle pr_as_read_syntax arg. |
|
5939 |
|
5940 * defaults.cc (subst_octave_home): Search for prefix repeatedly in |
|
5941 retval, not s. |
|
5942 |
|
5943 * gripes.h: Make declaration of gripes_not_supported match |
|
5944 definition. |
|
5945 |
2465
|
5946 * mk-oct-links.in: In sed command, match "DEFUN_DLD *( *", not |
|
5947 "DEFUN_DLD_BUILTIN *( *". |
|
5948 |
|
5949 * chol.cc, colloc.cc, dassl.cc, det.cc, eig.cc, expm.cc, fft.cc, |
|
5950 fft2.cc, filter.cc, find.cc, fsolve.cc, fsqp.cc, getpwent.cc, |
|
5951 getrusage.cc, givens.cc, hess.cc, ifft.cc, ifft2.cc, inv.cc, |
|
5952 log.cc, lpsolve.cc, lsode.cc, lu.cc, minmax.cc, npsol.cc, pinv.cc, |
|
5953 qpsol.cc, qr.cc, quad.cc, qzval.cc, rand.cc, schur.cc, sort.cc, |
|
5954 svd.cc, syl.cc, time.cc: Change all uses of DEFUN_DLD_BUILTIN to |
|
5955 be just DEFUN_DLD. |
|
5956 |
|
5957 * defun-dld.h: Eliminate DEFUN_DLD_BUILTIN. |
|
5958 |
2464
|
5959 * syswait.h: Use #ifdef HAVE_SYS_WAIT_H, not #if HAVE_SYS_WAIT_H |
|
5960 to decide whether to include sys/wait.h. |
|
5961 |
|
5962 * pt-exp-base.h (tree_expression): Declare oper() here as a |
|
5963 virtual member function. |
|
5964 |
2463
|
5965 * pt-pr-code.cc (tree_print_code::visit_constant): Check for |
|
5966 string before checking for char_matrix. |
|
5967 |
|
5968 * ov-ch-mat.cc (octave_char_matrix::print): Supply correct number |
|
5969 of args to octave_print_internal(). |
|
5970 |
2457
|
5971 Sat Nov 2 20:44:55 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5972 |
2458
|
5973 * file-io.cc (Ftmpnam): Rename from Foctave_temp_file_name. |
|
5974 |
2457
|
5975 * Makefile.in (DLD_SRC): Move time.cc and getrusage.cc here from |
|
5976 SOURCES. Add getpwent.cc. |
|
5977 |
|
5978 * getrusage.cc: Rename from resource.cc. Make getrusage a |
|
5979 loadable function. |
|
5980 |
|
5981 * time.cc: Rename from timefns.cc. Make time functions loadable. |
|
5982 |
|
5983 * getpwent.cc: New file. |
|
5984 |
2439
|
5985 Wed Oct 30 01:06:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5986 |
2452
|
5987 * Version 1.90. |
|
5988 |
|
5989 * Makefile.in (DISTFILES): Add ChangeLog. |
|
5990 |
2449
|
5991 * ov-range.cc (octave_range::convert_to_str): New function. |
|
5992 |
|
5993 * ov-str-mat.h (octave_char_matrix_str::char_matrix_value): |
|
5994 Delete function. Already handled by octave_char_matrix class. |
|
5995 |
|
5996 * ov-ch-mat.h (octave_char_matrix::convert_to_str): New function. |
|
5997 |
2448
|
5998 * pager.cc (Fmore): Set page_screen_output to 1.0 or 0.0, not |
|
5999 "true" or "false". |
|
6000 |
2447
|
6001 * ov-ch-mat.cc, ov-struct.cc, ov-struct.h, pr-output.cc, |
|
6002 pt-cmd.cc, pt-const.cc, pt-const.h, pt-fcn.cc, pt-fvc-base.cc, |
|
6003 pt-fvc-base.h, pt-fvc.cc, pt-fvc.h, rand.cc, sighandlers.cc, |
|
6004 variables.cc, variables.h: Delete unused code. |
|
6005 |
2445
|
6006 * octave.cc: Only include pwd.h if HAVE_PWD_H. |
|
6007 |
|
6008 * oct-strstrm.h: Include <string>, not <string.h>. |
|
6009 |
2442
|
6010 * defaults.cc, dirfns.cc, file-io.cc, help.cc, input.cc, |
|
6011 oct-hist.cc, oct-procbuf.cc, oct-procbuf.h, octave.cc, pager.h, |
|
6012 procstream.h, pt-misc.cc, pt-plot.cc, sighandlers.cc, strftime.c, |
|
6013 syscalls.cc, sysdep.cc, syswait.h, toplev.cc, utils.cc, |
|
6014 variables.cc: Only include sys/types.h if HAVE_SYS_TYPES_H. |
|
6015 |
2440
|
6016 * error.h (panic): Use GCC_ATTR_NORETURN macro, not NORETURN. |
|
6017 * toplev.h (clean_up_and_exit): Likewise. |
|
6018 * utils.h (jump_to_top_level): Likewise. |
|
6019 |
2439
|
6020 * derfaults.h.in, defaults.cc (local_arch_lib_dir): New variable. |
|
6021 * defaults.cc (set_default_local_arch_lib_dir): New function. |
|
6022 (install_defaults): Call it. |
|
6023 (exec_path): Use Vlocal_arch_lib_dir here. |
|
6024 * toplev.cc (octave_config_info): Add localarchlibdir to structure. |
|
6025 |
2436
|
6026 Tue Oct 29 15:54:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6027 |
2437
|
6028 * Makefile.in (install-oct): Don't do anything if $(OCT_FILES) is |
|
6029 empty. |
|
6030 |
2436
|
6031 * ov-range.cc (octave_range::index): New Function. |
|
6032 (octave_range::all, octave_range::any, octave_range::is_true): |
|
6033 Make these functions work. |
|
6034 |
|
6035 * ov.cc (octave_value::try_assignment_with_conversion): Remove |
|
6036 left over debugging print statements. |
|
6037 |
|
6038 Mon Oct 28 10:49:03 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6039 |
|
6040 * strftime.c: Add missing #endif for previous change. |
|
6041 |
2435
|
6042 Sun Oct 27 14:06:44 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6043 |
|
6044 * oct-hist.cc (do_history): Rewite option parsing to avoid |
|
6045 (probably bogus) errors from g++ on cygwin32 system. |
|
6046 |
|
6047 * strftime.c: Use autoconf macros TIME_WITH_SYS_TIME and |
|
6048 HAVE_SYS_TIME_H to decide which time.h files to include. |
|
6049 |
|
6050 * oct-stream.h, oct-stream.cc (octave_stream::error, |
|
6051 octave_base_stream::error): Rename errno => err_num. |
|
6052 |
2432
|
6053 Sat Oct 26 10:40:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6054 |
2434
|
6055 * oct-hist.cc (do_history): Move declaration of file inside |
|
6056 conditional. |
|
6057 |
2432
|
6058 * defun.h (DEFVAR_INT): Set eternal flag with (svc_fcn != 0) |
|
6059 instead of (sv_fcn ? 1 : 0) |
|
6060 |
2427
|
6061 Fri Oct 25 01:10:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6062 |
2431
|
6063 * ov-ch-mat.h (octave_char_matrix::any): Return 0.0 instead of false. |
|
6064 (octave_char_matrix::all): Likewise. |
|
6065 |
|
6066 * input.cc (Fecho): When binding value of echo_executing_commands, |
|
6067 cast ECHO_* to double. |
|
6068 |
|
6069 * sighandlers.cc (octave_child_list::do_remove): Delete unused |
|
6070 variable `enlarge'. |
|
6071 |
|
6072 * pt-const.h (tree_constant::tree_constant (const tree_constant&)): |
|
6073 Don't pass arg to tree_fvc constructor. |
|
6074 |
2427
|
6075 * resource.cc (getrusage): [HAVE_GETRUSAGE && RUSAGE_TIMES_ONLY]: |
|
6076 Only fill in time values. |
|
6077 |
|
6078 Thu Oct 24 20:37:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6079 |
|
6080 * parse.y: Comment out the %expect declaration so byacc can |
|
6081 compile this file. |
|
6082 (if_cmd_list): Add missing semicolon. |
|
6083 Include <cstdlib> for getenv if using byacc. |
|
6084 |
|
6085 * ov.h: Move typedefs outside of octave_value class scope to avoid |
|
6086 problem with cygwin32 beta16 compiler. |
|
6087 |
2421
|
6088 Fri Oct 18 13:44:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6089 |
2423
|
6090 * ov.h (octave_value::index): Undo previous change. |
|
6091 * ov.cc (octave_value constructors): Call maybe_mutate() in most |
|
6092 cases. |
|
6093 |
|
6094 * ov-complex.cc (octave_complex::index): Avoid implicit type |
|
6095 conversion back to scalar type. |
|
6096 * ov-scalar.cc (octave_scalar::index): Likewise. |
|
6097 |
2421
|
6098 * ov.h (octave_value::index): Call maybe_mutate() on retval before |
|
6099 returning it. |
|
6100 |
2418
|
6101 Wed Oct 16 12:00:11 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6102 |
2420
|
6103 * ov.h (octave_value::struct_elt_val): New optional arg, silent. |
|
6104 * ov-base.h, ov-base.cc, ov-struct.h, ov-struct.cc: Likewise, but |
|
6105 for the derived classes the arg is required. |
|
6106 |
|
6107 * data.cc (Fstruct_contains): Require arguments to be struct and |
|
6108 string, respectively. Call octave_value::struct_elt_val with |
|
6109 silent flag set. |
|
6110 |
2419
|
6111 * pt-mat.cc (tm_row_const::tm_row_const_rep::eval_error, |
|
6112 tm_row_const::tm_row_const_rep::eval_warning): New functions. |
|
6113 (tm_row_const::tm_row_const (const tree_matrix_row&): Use them to |
|
6114 give better error messages. |
|
6115 |
2418
|
6116 * pt-fvc.cc (tree_identifier::eval): Avoid dereferencing null |
|
6117 object_to_eval. |
|
6118 |
2412
|
6119 Tue Oct 15 11:35:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6120 |
|
6121 * op-cs-cm.cc, op-cs-cs.cc, op-cs-m.cc, op-cs-s.cc |
|
6122 (complex_matrix_conv): New functions. |
|
6123 Install preferred assignment conversion and widening ops. |
|
6124 |
|
6125 * op-s-cm.cc, op-s-cs.cc (complex_matrix_conv): New functions. |
|
6126 Install preferred assignment conversion and widening ops. |
|
6127 |
|
6128 * op-s-m.cc, op-s-s.cc (matrix_conv): New functions. |
|
6129 Install preferred assignment conversion and widening ops. |
|
6130 |
|
6131 * ov.cc (octave_value::try_assignment_with_conversion, |
|
6132 octave_value::convert_and_assign, octave_value::try_assignment): |
|
6133 New functions. |
|
6134 (octave_value::assign): Use them to implement twisted logic for |
|
6135 type conversions in assigments. |
|
6136 |
|
6137 * pt-const.h (tree_constant::maybe_mutate): New function. |
|
6138 * ov.h (octave_value::maybe_mutate): New function. |
|
6139 (octave_value::try_narrowing_conversion): New function. |
|
6140 Use just one typedef for widening_op_fcn and numeric_conv_fcn. |
|
6141 Change all uses. |
|
6142 * ov-base.h, ov-complex.h, ov-complex.cc, ov-cx-mat.h, |
|
6143 ov-cx-mat.cc, ov-range.h, ov-range.cc, ov-re-mat.h, ov-re-mat.cc, |
|
6144 Provide derived class versions of try try_narrowing_conversion(). |
|
6145 |
|
6146 * pr-output.cc (octave_print_internal): Don't bother handing off |
|
6147 to scalar/real versions, even when it would seem appropriate. |
|
6148 |
|
6149 * symtab.cc (symbol_def::define (tree_constant *)): Call |
|
6150 maybe_mutate on constants here. |
|
6151 |
2405
|
6152 Mon Oct 14 11:05:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6153 |
2407
|
6154 * pt-fvc.cc (tree_identifier::eval): If retval is undefined and |
|
6155 the object to eval is a constant, print error message. |
2406
|
6156 |
2405
|
6157 * Makefile (distclean): Remove *.oct too. |
|
6158 |
|
6159 * defun-int.h: Include variables.h here. |
|
6160 |
2403
|
6161 Sun Oct 13 10:52:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6162 |
2404
|
6163 * variables.cc (print_symbol_info_line): Never print negative |
|
6164 diminsions. |
|
6165 |
|
6166 * symtab.h (octave_symbol_record_info): Store const_type as string. |
|
6167 (octave_symbol_record_info::init): Delete. Fix constructors. |
|
6168 (octave_symbol_record_info::type_name): Handle const_type as string. |
|
6169 |
2403
|
6170 * octave.cc (maximum_braindamage): Replace "true" with 1.0 and |
|
6171 "false" with 0.0 in calls to bind_builtin_variable(). |
|
6172 Include sun-utils.h here. |
2404
|
6173 (intern_argv): Also bind __argv__. |
2403
|
6174 |
2391
|
6175 Sat Oct 12 13:40:21 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6176 |
2399
|
6177 * Makefile.in (distclean): Also delete mk-oct-links. |
|
6178 |
|
6179 Fri Oct 11 13:13:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6180 |
2391
|
6181 Changes for Octave's new type system: |
|
6182 |
|
6183 * arith-ops.cc: Delete. |
|
6184 * pt-const.h, pt-const.cc: Massive changes. Most functionality |
|
6185 moved to ov.h, ov.cc, and derived classes. |
|
6186 |
|
6187 * variables.h, variables.cc (octave_variable_reference): New class |
|
6188 for getting references to variables and structure elements used in |
|
6189 assignments or value contexts. |
|
6190 |
|
6191 * symtab.h, symtab.cc (symbol_record::define (const octave_value&), |
|
6192 symbol_record::variable_value, symbol_record::variable_reference): |
|
6193 New functions. |
|
6194 (symbol_record_info::type_name): Rename from type_as_string. |
|
6195 |
|
6196 * pt-fvc-base.h, pt-fvc-base.cc (tree_fvc::increment, |
|
6197 tree_fvc::decrement): New functions to replace |
|
6198 tree_fvc::bump_value. |
|
6199 #if 0 assign and lookup_map_element functions. |
|
6200 |
|
6201 * pt-mvr.cc (tree_multi_assignment_expression::eval): |
|
6202 Generated RHS value is now a tree_constant. |
|
6203 |
|
6204 * pt-exp.h, pt-exp.cc (tree_boolean_expression): New class. |
|
6205 (tree_unary_expression, tree_binary_expression, |
|
6206 tree_boolean_expression): Move codes here from tree_expression. |
|
6207 (tree_simple_assignment_expression): Cope with changes to way of |
|
6208 doing assignments. |
|
6209 |
|
6210 * pt-exp-base.h, pt-exp-base.cc (enum type): Delete codes for |
|
6211 unary and binary ops. |
|
6212 (tree_expression::expression_type): Delete. |
|
6213 (tree_expression::is_logically_true): Hand off to |
|
6214 octave_value::is_true to do real work. |
|
6215 |
|
6216 * pr-output.h, pr-output.cc (any_element_is_inf_or_nan, |
|
6217 all_elements_are_ints): Delete. Call member new functions for |
|
6218 these operations. |
|
6219 (free_format, plus_format, bank_format, hex_format, |
|
6220 compact_format, print_e, print_big_e): Use bool, not int. |
|
6221 (octave_print_internal): Hand off to scalar/real versions when |
|
6222 appropriate. |
|
6223 |
|
6224 * octave.cc (main): Call initialize_types() and install_ops(). |
|
6225 (verbose_usage): Add WWW address to output. |
|
6226 |
|
6227 * parse.y (indirect_ref): Handle by making a tree instead of a |
|
6228 list using new version of tree_indirect_ref class. |
|
6229 |
|
6230 * parse.y (make_boolean_op): New function. Use it instead of |
|
6231 make_binary_op to create trees for && and || ops. |
|
6232 (make_binary_op): Codes come from tree_binary_expression now, |
|
6233 instead of tree_expression. |
|
6234 (make_unary_op): Codes come from tree_unary_expression now, |
|
6235 instead of tree_expression. |
|
6236 (make_boolean_op): Codes come from tree_boolean_expression. |
|
6237 |
|
6238 *parse.y (tree_constant_type): Change type to tree_constant* from |
|
6239 octave_value*, and rename from octave_value_type. Change uses. |
|
6240 |
|
6241 * defun.h (DEFVAR_INT): Pass octave_value not pointer to |
|
6242 octave_value for defn when creating builtin_variable. |
|
6243 |
|
6244 * gripes.h, gripes.cc (gripe_invalid_conversion): Args are |
|
6245 strings, not char*. |
|
6246 (gripe_implicit_conversion, gripe_divide_by_zero): New extern |
|
6247 gripe functions. |
|
6248 |
|
6249 * mkbuiltins: For each file, create a separate static function to |
|
6250 install builtins, then create another single extern function to |
|
6251 call all of them. |
|
6252 |
|
6253 * pt-fcn.cc (tree_function::bind_nargin_and_nargout): |
|
6254 Just pass doubles and let symbol_record::define handle creating |
|
6255 new value. |
|
6256 |
|
6257 * pt-pr-code.cc, pt-pr-code.h (visit_constant): Renamed from |
|
6258 visit_octave_value. |
|
6259 (visit_unary_expression): Use tree_expression::is_prefix_op() |
|
6260 instead of switch on op types. |
|
6261 |
|
6262 * pt-walk.h (visit_constant): Renamed from visit_octave_value. |
|
6263 |
|
6264 * pt-misc.cc (initialize_undefined_elements): Get reference to |
|
6265 tmp, then assign. |
|
6266 * pt-cmd.cc (do_for_loop_once): Likewise, for loop identifier. |
|
6267 |
|
6268 * input.cc (generate_struct_completions, looks_like_struct): Cast |
|
6269 tmp_fvc to tree_constant*, not octave_value*. |
|
6270 (get_user_input): Call print() on retval, not eval(1). |
|
6271 |
|
6272 * help.cc (Ftype): Cast defn to tree_constant*, not octave_value*. |
|
6273 |
|
6274 * balance.cc: Fix docstring. |
|
6275 |
|
6276 * dassl.cc, fsolve.cc, load-save.cc, lsode.cc, npsol.cc, qpsol.cc, |
|
6277 quad.cc: |
|
6278 Include pt-fvc.h. |
|
6279 |
|
6280 * data.cc (Fstruct_contains): call octave_value::struct_elt_val, |
|
6281 not octave_value::lookup_map_element. |
|
6282 |
|
6283 * dirfns.cc (Fcd): Pass directory name as string directly to |
|
6284 bind_builtin_variable instead of creating new octave_value. |
|
6285 |
|
6286 * toplev.cc: Include pt-fvc.h and lo-mappers.h |
|
6287 |
|
6288 * data.cc, error.cc, file-io.cc, load-save.cc, pager.cc, |
|
6289 pt-mat.cc, pt-plot.cc, syscalls.cc, toplev.cc: |
|
6290 Include variables.h. |
|
6291 |
|
6292 * Array-tc.cc, Map-tc.cc, SLList-misc.cc SLList-tc.cc, data.cc, |
|
6293 defaults.cc, dynamic-ld.cc, error.cc, gripes.cc, lex.l, octave.cc, |
|
6294 oct-map.h, oct-map.cc, oct-obj.h, pt-cmd.cc, pt-exp.cc, pt-fcn.cc, |
|
6295 pt-fvc-base.cc, pt-mat.cc, pt-misc.cc, pt-mvr-base.cc, pt-mvr.h, |
|
6296 resource.cc, strfns.cc, sysdep.cc, timefns.cc, toplev.cc: |
|
6297 Include ov.h instead of pt-const.h. |
|
6298 |
|
6299 * xpow.cc (any_element_is_negative): Delete. |
|
6300 (xpow and elem_xpow functions): Check conformance here. |
|
6301 |
|
6302 * xdiv.cc (mx_leftdiv_conform, mx_div_conform): |
|
6303 Now template-based, taking Matrices instead of dimensions as args. |
|
6304 Change all callers. |
|
6305 |
|
6306 * op-cm-cm.cc, op-cm-cm.h, op-cm-cs.cc, op-cm-cs.h, op-cm-m.cc, |
|
6307 op-cm-m.h, op-cm-s.cc, op-cm-s.h, op-cs-cm.cc, op-cs-cm.h, |
|
6308 op-cs-cs.cc, op-cs-cs.h, op-cs-m.cc, op-cs-m.h, op-cs-s.cc, |
|
6309 op-cs-s.h, op-m-cm.cc, op-m-cm.h, op-m-cs.cc, op-m-cs.h, op-m-m.cc, |
|
6310 op-m-m.h, op-m-s.cc, op-m-s.h, op-s-cm.cc, op-s-cm.h, op-s-cs.cc, |
|
6311 op-s-cs.h, op-s-m.cc, op-s-m.h, op-s-s.cc, op-s-s.h, |
|
6312 op-str-str.cc, op-str-str.h, ops.cc, ops.h, ov-base.cc, ov-base.h, |
|
6313 ov-ch-mat.cc, ov-ch-mat.h, ov-colon.cc, ov-colon.h, ov-complex.cc, |
|
6314 ov-complex.h, ov-cx-mat.cc, ov-cx-mat.h, ov-range.cc, ov-range.h, |
|
6315 ov-re-mat.cc, ov-re-mat.h, ov-scalar.cc, ov-scalar.h, ov-str-mat.cc, |
|
6316 ov-str-mat.h, ov-struct.cc, ov-struct.h, ov-typeinfo.cc, |
|
6317 ov-typeinfo.h, ov-va-args.cc, ov-va-args.h, ov.cc, ov.h: |
|
6318 New files for Octave's new type system. |
|
6319 * Makefile.in: Add them to the appropriate lists. |
|
6320 |
|
6321 Sat Sep 14 21:58:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6322 |
|
6323 * mkbuiltins: Use .df instead of .def. |
|
6324 Write one function for each .df file, then call them |
|
6325 all in install_builtin_functions(). |
|
6326 * Makefile.in: Handle .df instead of .def. |
|
6327 |
|
6328 * balance.cc (balance): Fix typo in doc string. |
|
6329 |
|
6330 Wed Aug 28 21:01:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6331 |
|
6332 * octave.cc (verbose_usage): Include WWW address and bug-octave |
|
6333 mailing list address. |
|
6334 |
2354
|
6335 Tue Aug 20 17:41:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6336 |
2358
|
6337 * Makefile.in: Only define pattern rules for making .oct files if |
|
6338 OCTAVE_LITE is true. |
|
6339 Only add pic/ to $(TI_OBJ) if $(SHARED_LIBS) is true. |
|
6340 (stamp-picdir): Only create a pic subdirectory if SHARED_LIBS or |
|
6341 OCTAVE_LITE is true AND CPICFLAG or CXXPICFLAG is not empty. |
|
6342 |
2354
|
6343 * minmax.cc (Fmin, Fmax): Deal with changes to Matrix class |
|
6344 min/max methods. |
|
6345 |
2345
|
6346 Thu Jul 25 01:42:38 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6347 |
2348
|
6348 * input.cc (generate_possible_completions): Force the names to be |
|
6349 unique. |
|
6350 |
2345
|
6351 * load-save.cc (read_mat_binary_data): Expect to read terminating |
|
6352 NUL character in the variable name. |
|
6353 (save_mat_binary_data): Likewise, save it here. |
|
6354 |
2341
|
6355 Wed Jul 24 05:08:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6356 |
2343
|
6357 * lsode.cc (Flsode): Don't set the return value if an error |
|
6358 occurred during integration. |
2344
|
6359 * dassl.cc (Fdassl): Likewise. |
2343
|
6360 |
2341
|
6361 * file-io.cc (symbols_of_file_io): Redefine values of SEEK_SET, |
|
6362 SEEK_CUR, and SEEK_END for Matlab compatibility. |
|
6363 * oct-stream.cc (seek): Check for compatible values of ORIGIN arg. |
|
6364 Also handle "bof", "cof", and "eof". |
|
6365 |
2338
|
6366 Fri Jul 19 15:24:36 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6367 |
|
6368 * pt-const.cc: When creating octave_value_reps from ComplexMatrix |
|
6369 values, check to see if all the elements are actually real. |
|
6370 |
2330
|
6371 Tue Jul 16 10:53:42 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6372 |
2341
|
6373 * input.cc (decode_prompt_string): Swap meanings of \h and \H. |
2330
|
6374 |
|
6375 Mon Jul 15 16:01:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6376 |
|
6377 * toplev.cc (run_command_and_return_output): Renamed from do_system. |
|
6378 (Fsystem): Make `system ("emacs")' work as one would expect. |
|
6379 |
|
6380 Sun Jul 14 17:34:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6381 |
|
6382 * file-io.cc (Ffopen, Ffread, Ffwrite): Update doc strings, |
|
6383 correctly handle default architecture and precision args. |
|
6384 |
|
6385 * load-save.cc (mopt_digit_to_float_format): Rename from |
|
6386 get_floating_point_format. |
|
6387 (float_format_to_mopt_digit): New function. |
|
6388 |
|
6389 * oct-stream.cc (octave_base_stream::read, octave_base_stream::write): |
|
6390 Simplify by calling Matrix::read and Matrix::write to do real work |
|
6391 of reading, writing, and format conversion. |
|
6392 |
|
6393 * oct-stream.h (octave_base_stream): Move data_type enum to |
|
6394 liboctave/data-conv.h. Use float_format from |
|
6395 liboctave/mach-info.h instead of arch_type enum. |
|
6396 |
|
6397 * sysdep.h, sysdep.cc (octave_words_big_endian, ten_little_endians): |
|
6398 Delete. Now part of oct_mach_info class in liboctave. |
|
6399 |
|
6400 Tue Jul 9 11:18:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6401 |
|
6402 * arith-ops.cc, balance.cc, dassl.cc, data.cc, filter.cc, find.cc, |
|
6403 fsolve.cc, load-save.cc, log.cc, lsode.cc, minmax.cc, npsol.cc, |
|
6404 oct-obj.cc, oct-stream.cc, pr-output.cc, pt-cmd.cc, pt-const.cc, |
|
6405 pt-fvc.cc, pt-plot.cc, quad.cc, rand.cc, sighandlers.cc, sort.cc, |
|
6406 syscalls.cc, unwind-prot.cc, xdiv.cc, xpow.cc: |
|
6407 When indexing arrays, use operator() instead of elem() so that |
|
6408 bounds checking can be done consistently. |
|
6409 |
|
6410 Mon Jun 24 02:13:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6411 |
|
6412 * Makefile.in (install-oct): Use INSTALL_PROGRAM, instead of |
|
6413 INSTALL_DATA for installing shared libraries. |
|
6414 |
|
6415 * lex.l (grab_help_text): Ignore all initial comment characters, |
|
6416 not just the first. |
|
6417 * variables.cc (gobble_leading_white_space): Likewise. |
|
6418 |
|
6419 Sat Jun 22 22:43:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6420 |
|
6421 * input.h, input.cc (octave_completion_matches_called): New varaible. |
|
6422 (Fcompletion_matches): Set it to true on a successful call. |
|
6423 * toplev.cc (main_loop): If octave_completion_matches_called is |
|
6424 true, don't increment current_command_number. |
|
6425 |
|
6426 Thu Jun 13 03:52:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6427 |
|
6428 * variables.cc (is_mapper_function_name, |
|
6429 is_builtin_function_name): New functions. |
|
6430 (Fdocument): Use them. |
|
6431 Define as regular function, not a text style function. |
|
6432 |
|
6433 Thu Jun 6 00:09:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6434 |
|
6435 * pt-plot.cc: Handle new built-in variable `gnuplot_has_frames'. |
|
6436 |
|
6437 Wed Jun 5 14:45:04 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6438 |
|
6439 * input.cc (decode_prompt_string): \h now means the whole host |
|
6440 name and \H is the host name up to the first `.'. |
|
6441 |
|
6442 Thu May 30 23:41:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6443 |
|
6444 * fn-cache.cc (octave_fcn_file_name_cache::do_list): Always |
|
6445 recompute the lists of function files instead of trying to cache |
|
6446 them. |
|
6447 |
|
6448 Tue May 28 12:05:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6449 |
|
6450 * utils.cc (warn_old_style_preference): New function. |
|
6451 (check_preference): Use it. |
|
6452 |
|
6453 * fn-cache.h: Include <ctime> here. |
|
6454 |
|
6455 Fri May 24 00:57:14 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6456 |
|
6457 * input.cc (completion_matches): Don't return empty string_vectors. |
|
6458 |
|
6459 * octave.cc (long_opts): Add braindead. |
|
6460 |
|
6461 Thu May 23 01:49:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6462 |
|
6463 * input.cc (gnu_readline): New optional arg, force_readline. |
|
6464 (get_user_input): Use it. |
|
6465 |
|
6466 * pt-const.cc (OCT_VAL_REP::assign): If converting the rhs to a |
|
6467 numeric value, convert a copy, not the actual object. |
|
6468 (OCT_VAL_REP::do_index): Prevent s([]) from resulting in a string |
|
6469 with zero rows. |
|
6470 |
|
6471 * mappers.cc: Handle toascii here. |
|
6472 * strfns.cc: Not here. |
|
6473 |
|
6474 * mappers.cc: Handle tolower and toupper here. |
|
6475 * mappers.h: Rename can_return_complex_for_real to flag and |
|
6476 overload meaning for ch_mapper. |
|
6477 * pt-fvc.cc (apply_mapper_fcn): Handle overloaded meaning. |
|
6478 |
|
6479 * syscalls.cc (stat): Return 3 values instead of just 1. |
|
6480 (lstat): Likewise. |
|
6481 |
|
6482 Wed May 22 02:34:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6483 |
|
6484 * pt-const.cc (OCT_VAL_REP::make_numeric): For string to number |
|
6485 conversions, correctly set type tag before calling force_numeric. |
|
6486 (do_binary_op): Force string to number conversion if both args are |
|
6487 strings and we are doing some sort of comparison operation. |
|
6488 |
|
6489 * Makefile.in (stamp-tinst, stamp-interp): Use SH_TERMLIBS and |
|
6490 SH_LIBS instead of TERMLIBS and LIBS. |
|
6491 |
|
6492 * pt-const.cc (do_unary_op): Add special case to handle |
|
6493 transposing strings. |
|
6494 |
|
6495 * pt-mat.cc (Vstring_fill_char): New variable. |
|
6496 (symbols_of_pt_mat): DEFVAR it. |
|
6497 |
|
6498 * input.cc (generate_struct_completions, |
|
6499 generate_possible_completions): Return string_vector, not char **. |
|
6500 Change all callers. |
|
6501 |
|
6502 * pt-const.cc (lookup_map_element): Use substr() correctly. |
|
6503 |
|
6504 Tue May 21 21:37:17 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6505 |
|
6506 * oct.h: New file. |
|
6507 * Makefile.in (INCLUDES): Add it to the list. |
|
6508 |
|
6509 * octave.cc: New args --no-site-file and --no-init-file. Delete |
|
6510 --ignore-init-file. The flag --norc (-f) implies both |
|
6511 --no-site-file and --no-init-file. |
|
6512 |
|
6513 Fri May 17 01:54:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6514 |
|
6515 * input.cc (Fcompletion_matches): New function. |
|
6516 |
|
6517 * utils.cc (get_fcn_file_names): Delete. |
|
6518 * help.cc (simple_help): Use new file name cache instead of |
|
6519 calling get_fcn_file_names. |
|
6520 * variables.cc (make_name_list): Likewise. |
|
6521 |
|
6522 * fn-cache.h, fn-cache.cc, Map-fnc.cc: New files. |
|
6523 * Makefile.in: Add them to the lists. |
|
6524 |
|
6525 * Makefile.in (uninstall): Install in octincludedir, not includedir. |
|
6526 |
|
6527 * pt-plot.h: Include <csignal> here. |
|
6528 |
|
6529 Thu May 16 10:52:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6530 |
|
6531 * oct-stream.cc (octave_stream::oscanf, octave_base_stream::oscanf, |
|
6532 octave_base_stream::do_oscanf): New functions for backward |
|
6533 compatibility with older versions of Octave. |
|
6534 (scanf_format_elt, scanf_format_list): Keep track of width specifier. |
|
6535 * file-io.cc (Fscanf): New function. |
|
6536 (Fscanf, Ffscanf, Fsscanf): Handle compatibility arg. |
|
6537 |
|
6538 Wed May 15 01:00:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6539 |
|
6540 * oct-stream.cc (do_scanf): If doing '%c' conversion, unset |
|
6541 ios::skipws on input stream. |
|
6542 |
|
6543 * sighandlers.h, sighandlers.cc (octave_child, octave_child_list): |
|
6544 New classes for keeping track of the child processes we create. |
|
6545 (sigchld_handler): Check in octave_child_list to see if there is |
|
6546 anything we can do for the child that died. |
|
6547 * pager.cc: Register child pager process. |
|
6548 * pt-plot.cc: Likewise, for the plotter. |
|
6549 * Array-oc.cc: New file |
|
6550 * Makefile.in (TI_SRC): Add it to the list. |
|
6551 |
|
6552 * pager.cc (do_sync): Don't check error_state. |
|
6553 (flushing_output_to_pager): New static variable. |
|
6554 (flush_octave_stdout): Use it to avoid doing anything if already |
|
6555 flushing output. |
|
6556 |
|
6557 * sighandlers.cc (sigchld_handler): Call warning instead of |
|
6558 writing directly to cerr. |
|
6559 (sigpipe_handler): Call warning instead of message. |
|
6560 |
|
6561 * octave.cc (main): Call install_signal_handlers, |
|
6562 initialize_file_io, initialize_symbol_tables, and install_builtins |
|
6563 before parsing command line options. |
|
6564 |
|
6565 * user-prefs.h, user-prefs.cc: Delete. |
|
6566 |
|
6567 * utils.cc (check_preference): Move here. |
|
6568 * user-prefs.cc: From here. |
|
6569 |
|
6570 * defaults.cc: New file. Move initialization stuff from |
|
6571 variables.cc. Move DEFVARS for EDITOR, EXEC_PATH, LOADPATH, |
|
6572 IMAGEPATH, and OCTAVE_VERSION here. |
|
6573 |
|
6574 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6575 INFO_FILE and INFO_PROGRAM. |
|
6576 * help.cc: Move all of that here. |
|
6577 (symbols_of_help): Add DEFVARS for INFO_FILE and INFO_PROGRAM. |
|
6578 |
|
6579 Tue May 14 00:23:06 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6580 |
|
6581 * pager.cc (do_sync): Be more defensive about sending stuff to the |
|
6582 external pager. |
|
6583 * sighandlers.cc (sigchld_handler): For now, only wait for |
|
6584 octave_pager_pid. Don't call error(). Do set octave_pager_pid to |
|
6585 -1 if the pager process no longer exists. |
|
6586 |
|
6587 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6588 PWD. |
|
6589 * dirfns.cc: Move all of that here. |
|
6590 (symbols_of_dirfns): New function. |
|
6591 * variables.cc (install_builtin_variables): Call it. |
|
6592 |
|
6593 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6594 default_save_format and save_precision. |
|
6595 * load-save.cc: Move all of that here. |
|
6596 (symbols_of_load_save): New function. |
|
6597 * variables.cc (install_builtin_variables): Call it. |
|
6598 |
|
6599 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6600 warn_divide_by_zero. |
|
6601 * arith-ops.cc: Move all of that here. |
|
6602 (symbols_of_arith_ops): New function. |
|
6603 * variables.cc (install_builtin_variables): Call it. |
|
6604 |
|
6605 * mappers.cc: Add wrappers for ctype is* functions so that they |
|
6606 will work on systems that only define them as macros. |
|
6607 |
|
6608 Mon May 13 00:27:08 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6609 |
|
6610 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6611 suppress_verbose_help_message. |
|
6612 * help.cc: Move all of that here. |
|
6613 (symbols_of_help): New function. |
|
6614 * variables.cc (install_builtin_variables): Call it. |
|
6615 |
|
6616 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6617 treat_neg_dim_as_zero. |
|
6618 * pt-const.cc: Move all of that here. |
|
6619 |
|
6620 * pager.cc (octave_pager_stream::do_sync): Don't return early if |
|
6621 not interactive. |
|
6622 |
|
6623 * data.h: New file. |
|
6624 * Makefile.in (INCLUDES): Add it to the list. |
|
6625 * data.cc (symbols_of_data): New function. Move definition of I, |
|
6626 Inf, J, NaN, e, eps, i, inf, j, nan, pi, realmin, and realmax here. |
|
6627 * variables.cc: From here. |
|
6628 (install_builtin_variables): Call symbols_of_data. |
|
6629 |
|
6630 * file-io.cc (symbols_of_file_io): New function. Move definition |
|
6631 of SEEK_CUR, SEEK_END, SEEK_SET, stdin, stdout, stderr here. |
|
6632 * variables.cc: From here. |
|
6633 (install_builtin_variables): Call symbols_of_file_io. |
|
6634 |
|
6635 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6636 do_fortran_indexing, implicit_str_to_num_ok, |
|
6637 ok_to_lose_imaginary_part, prefer_column_vectors, |
|
6638 prefer_zero_one_indexing, print_answer_id_name, |
|
6639 propagate_empty_matrices, resize_on_range_error, and |
|
6640 struct_levels_to_print. |
|
6641 * pt-const.cc: Move all of that here. |
|
6642 (symbols_of_pt_const): New function. |
|
6643 * variables.cc (install_builtin_variables): Call it. |
|
6644 * pt-fvc.cc (tree_identifier::assign): Use Vresize_on_range_error |
|
6645 instead of user_pref.resize_on_range_error here. |
|
6646 * load-save.cc (save_mat_binary_data): Use Vimplicit_str_to_num_ok |
|
6647 instead of user_pref.implicit_str_to_num_ok here. |
|
6648 * utils.cc (empty_arg): Use Vpropagate_empty_matrices instead of |
|
6649 user_pref.propagate_empty_matrices here. |
|
6650 * pt-exp-base.cc (tree_expression::is_logically_true): Likewise.. |
|
6651 |
|
6652 * pt-fcn.cc (symbols_of_pt_fcn): Also move DEFVAR for |
|
6653 default_return_value here. |
|
6654 |
|
6655 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6656 ps1, ps2, ps4, and completion_append_char. |
|
6657 * input.cc: Move all of that here. |
|
6658 (symbols_of_input): New function. |
|
6659 * variables.cc (install_builtin_variables): Call it. |
|
6660 * pt-pr-code.cc (indent): Use Vps4 instead of user_pref.ps4 here. |
|
6661 * help.cc (Ftype): Also here. |
|
6662 |
|
6663 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6664 automatic_replot, gnuplot_binary, and gnuplot_has_multiplot. |
|
6665 * pt-plot.cc: Move all of that here. |
|
6666 (symbols_of_pt_plot): New function. |
|
6667 * variables.cc (install_builtin_variables): Call it. |
|
6668 |
|
6669 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6670 beep_on_error. |
|
6671 * error.cc: Move all of that here. |
|
6672 (symbols_of_error): New function. |
|
6673 * variables.cc (install_builtin_variables): Call it. |
|
6674 |
|
6675 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6676 empty_list_elements_ok. |
|
6677 * pt-mat.cc: Move all of that here. |
|
6678 (symbols_of_pt_mat): New function. |
|
6679 * variables.cc (install_builtin_variables): Call it. |
|
6680 |
|
6681 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6682 define_all_return_values, return_last_computed_value, and |
|
6683 silent_functions. |
|
6684 * pt-fcn.cc: Move all of that here. |
|
6685 (symbols_of_pt_fcn): New function. |
|
6686 * variables.cc (install_builtin_variables): Call it. |
|
6687 |
|
6688 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6689 whitespace_in_literal_matrix. |
|
6690 * lex.l: Move all of that here. |
|
6691 (symbols_of_lex): New function. |
|
6692 * variables.cc (install_builtin_variables): Call it. |
|
6693 |
|
6694 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6695 warn_assign_as_truth_value, warn_comma_in_global_decl, |
|
6696 warn_function_name_clash, and warn_missing_semicolon. |
|
6697 * parse.y: Move all of that here. |
|
6698 (symbols_of_parse): New function. |
|
6699 * variables.cc (install_builtin_variables): Call it. |
|
6700 |
|
6701 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6702 output_precision, output_max_field_width, print_empty_dimensions, |
|
6703 and split_long_rows. |
|
6704 * pr-output.cc: Move all of that here. |
|
6705 (symbols_of_pr_output): New function. |
|
6706 * variables.cc (install_builtin_variables): Call it. |
|
6707 |
|
6708 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6709 page_screen_output, page_output_immediately, and pager_binary. |
|
6710 * pager.cc: Move all of that here. |
|
6711 |
|
6712 * user-prefs.h (check_preference): Provide declaration. |
|
6713 * user-prefs.cc (check_preference): Make external. |
|
6714 |
|
6715 * toplev.cc (Foctave_config_info): New function. |
|
6716 |
|
6717 * oct-conf.h.in: New file |
|
6718 * Makefile.in (oct-conf.h): New target. |
|
6719 Add it to the appropriate lists. |
|
6720 |
|
6721 * sighandlers.cc (sigchld_handler): Don't complain about wait |
|
6722 returning a negative value. |
|
6723 |
|
6724 * file-io.cc (Fsscanf, Fsprintf): Pass true for second arg of |
|
6725 octave_stream constructor. |
|
6726 |
|
6727 * oct-stream.h (octave_stream): New field, preserve. |
|
6728 (octave_stream::~octave_stream): If preserve, don't delete rep. |
|
6729 |
|
6730 * pager.cc (symbols_of_pager): Set default for |
|
6731 page_output_immediately to 0. |
|
6732 |
|
6733 * toplev.cc (do_system): Correctly handle return_output. |
|
6734 Append ends to output_buf before calling str(). |
|
6735 |
|
6736 * variables.cc: If M_PI and M_E are available, use them. |
|
6737 |
|
6738 * mk-oct-links.in (links_dir): If old link exists, delete it first. |
|
6739 |
|
6740 Sun May 12 01:46:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6741 |
|
6742 * Makefile.in (DISTFILES): List defaults.h.in and oct-gperf.h here. |
|
6743 (INCLUDES): Not here. |
|
6744 (install-inc): New target. |
|
6745 (uninstall): Also delete libraries and include files. |
|
6746 (install-inc): If linkdir is a directory, leave it alone. |
|
6747 (TERMLIBS, LIBPLPLOT, LIBDLFCN): Don't substitute here (now in |
|
6748 Makeconf). |
|
6749 |
|
6750 * oct-stream.cc (octave_base_stream::do_read): Provide initial |
|
6751 value for tmp var. |
|
6752 |
|
6753 * pt-walk.h, pt-pr-code.h, pt-pr-code.cc: New tree-walking classes. |
|
6754 * Makefile.in: Add them to the appropriate lists. |
|
6755 * pt-fvc-base.h, pt-exp-base.cc, pt-fvc-base.cc, pt-mvr-base.cc, |
|
6756 pt-base.cc, pt-mvr.cc, pt-mat.h, pt-mat.cc, pt-fvc.cc, |
|
6757 pt-const.cc, pt-cmd.cc, pt-const.h, pt-misc.cc, pt-plot.cc, |
|
6758 pt-fcn.cc, pt-plot.h, pt-mvr.h, pt-mvr-base.h, pt-misc.h, |
|
6759 pt-fcn.h, pt-exp.h, pt-exp.cc, pt-exp-base.h, pt-fvc.h, pt-cmd.h, |
|
6760 pt-base.h: |
|
6761 Replace print_code stuff with accept() functions. |
|
6762 Add member access functions where necessary. |
|
6763 * help.cc (Ftype): Update to use new method of walking trees to |
|
6764 print text representation of user-defined functions. |
|
6765 |
|
6766 * file-io.cc (Ffscanf): Update doc string. |
|
6767 (Fsscanf): Likewise. |
|
6768 |
|
6769 * oct-stream.cc (octave_base_stream::do_read): Correctly set max_size. |
|
6770 Pad mval with zeros on final resize. |
|
6771 (octave_base_stream::do_scanf): Likewise. |
|
6772 (do_scanf_conv): Correctly resize mval. |
|
6773 |
|
6774 Sat May 11 05:14:09 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6775 |
|
6776 * pager.cc (octave_pager_buf::sync): Correctly set bypass_pager. |
|
6777 |
|
6778 * lex.l (<MATRIX>{SNLCMT}*\]{S}*): Match SNLCMT, not just SNL. |
|
6779 |
|
6780 Fri May 3 11:05:30 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6781 |
|
6782 * pt-const.cc (OCT_VAL_REP::set_index): Complain if type can't be |
|
6783 indexed. |
|
6784 |
|
6785 * input.cc (get_user_input): Don't increment input line number if |
|
6786 input is coming from eval string. |
|
6787 |
|
6788 * user-prefs.cc: Allow empty strings for prompts. |
|
6789 |
|
6790 Thu May 2 10:50:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6791 |
|
6792 * pt-mvr.h (class tree_oct_obj): Declare values data member const. |
|
6793 |
|
6794 Sun Apr 28 03:16:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6795 |
|
6796 * user-prefs.h (user_preferences): New field, |
|
6797 `page_output_immediately'. |
|
6798 * user-prefs.cc (init_user_prefs): Initialize it. |
|
6799 (page_output_immediately): New function. |
|
6800 * pager.cc (syms_of_pager): Add DEFVAR. |
|
6801 (really_flush_to_pager): New file-scope variable. |
|
6802 (flush_octave_stdout): Set and restore it. |
|
6803 (octave_pager_buf::sync): Check it, user_pref.page_screen_output, |
|
6804 and user_pref.page_output_immediately to decide when to really |
|
6805 flush output. |
|
6806 (more_than_a_screenful): New function. If paging but not |
|
6807 immediately, then check this too. |
|
6808 |
|
6809 * pager.cc (default_pager): Move here from variables.cc. If pager |
|
6810 is less and LESS is not in the environment, append useful flags. |
|
6811 (symbols_of_pager): New function. |
|
6812 * variables.cc (install_builtin_variables): Call it. |
|
6813 Delete pager-related DEFVARs. |
|
6814 |
|
6815 * syswait.h (WIFSIGNALLED): Define if sys/wait.h doesn't. |
|
6816 |
|
6817 * sighandlers.cc: Handle SIGCHLD. |
|
6818 |
|
6819 * pager.cc, pager.h: Rewrite. |
|
6820 * pt-mvr.cc, pt-misc.cc, pt-fcn.cc, pt-const.cc, oct-hist.cc, |
|
6821 file-io.cc, help.cc, variables.cc, qpsol.cc, dassl.cc, quad.cc, |
|
6822 npsol.cc, lsode.cc, fsolve.cc, load-save.cc, dirfns.cc, octave.cc, |
|
6823 toplev.cc, error.cc, input.cc: |
|
6824 Write to octave_stdout and octave_diary instead of calling |
|
6825 maybe_page_output() or maybe_write_to_diary_file(). |
|
6826 |
|
6827 * oct-procbuf.h, oct-procbuf.cc: New files. |
|
6828 * procstream.h (class procstreambase): Use octave_procbuf instead |
|
6829 of procbuf from libg++, so we can get pids of subprocesses. |
|
6830 |
|
6831 Fri Apr 26 01:21:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6832 |
|
6833 * pt-const.cc (OCT_VAL_REP::do_index): Call maybe_mutate() before |
|
6834 returning. |
|
6835 |
|
6836 * mappers.h (struct Mapper_fcn): Delete. |
|
6837 (struct builtin_mapper_function): New field ch_mapper. |
|
6838 * pt-fvc.h (tree_builtin): Convert type of mapper_fcn from |
|
6839 Mapper_fcn to builtin_mapper_function. |
|
6840 * variables.cc (install_builtin_mapper): Likewise, for arg. |
|
6841 Simplify, since we don't have to do the copying ourselves now. |
|
6842 * pt-fvc.cc (apply_mapper_function): Handle ch_mapper case. |
|
6843 * defun.h (DEFUN_MAPPER): Likewise. |
|
6844 * mappers.cc (install_builtin_mappers): Likewise. |
|
6845 Add ctype is* functions here. |
|
6846 |
|
6847 Thu Apr 25 00:57:06 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6848 |
|
6849 * arith-ops.h, defun-int.h, defun.h, dynamic-ld.h, gripes.h, |
|
6850 load-save.h, oct-map.h, oct-obj.h, oct-stream.h, pt-cmd.h, |
|
6851 pt-const.h, pt-exp-base.h, pt-exp.h, pt-fcn.h, pt-fvc-base.h, |
|
6852 pt-fvc.h, pt-mat.h, pt-misc.h, pt-mvr-base.h, pt-mvr.h, pt-plot.h, |
|
6853 symtab.h, toplev.h, utils.h, variables.h, xpow.h, Array-tc.cc, |
|
6854 Map-i.cc, Map-tc.cc, SLList-tc.cc, arith-ops.cc, balance.cc, |
|
6855 bogus.cc, chol.cc, colloc.cc, dassl.cc, data.cc, det.cc, |
|
6856 dirfns.cc, eig.cc, error.cc, expm.cc, fft.cc, fft2.cc, file-io.cc, |
|
6857 filter.cc, find.cc, fsolve.cc, fsqp.cc, givens.cc, gripes.cc, |
|
6858 help.cc, hess.cc, ifft.cc, ifft2.cc, input.cc, inv.cc, |
|
6859 load-save.cc, log.cc, lpsolve.cc, lsode.cc, lu.cc, minmax.cc, |
|
6860 npsol.cc, oct-hist.cc, oct-obj.cc, oct-stream.cc, pager.cc, |
|
6861 pinv.cc, pr-output.cc, pt-cmd.cc, pt-const.cc, pt-exp-base.cc, |
|
6862 pt-exp.cc, pt-fcn.cc, pt-fvc-base.cc, pt-fvc.cc, pt-mat.cc, |
|
6863 pt-misc.cc, pt-mvr-base.cc, pt-mvr.cc, pt-plot.cc, qpsol.cc, |
|
6864 qr.cc, quad.cc, qzval.cc, rand.cc, resource.cc, schur.cc, sort.cc, |
|
6865 strfns.cc, svd.cc, syl.cc, symtab.cc, syscalls.cc, sysdep.cc, |
|
6866 timefns.cc, toplev.cc, utils.cc, variables.cc, xpow.cc, parse.y: |
|
6867 Rename tree_constant -> octave_value. |
|
6868 Rename Octave_object -> octave_value_list. |
|
6869 |
|
6870 Wed Apr 24 22:15:34 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6871 |
|
6872 * toplev.cc (Fsystem): Merge functionality of async_system and |
|
6873 sync_system. |
|
6874 |
|
6875 * oct-fstrm.h, oct-iostrm.h, oct-prcstrm.h, oct-stdstrm.h, |
|
6876 oct-stream.h, oct-strstrm.h, oct-fstrm.cc, oct-iostrm.cc, |
|
6877 oct-prcstrm.cc, oct-stdstrm.cc, oct-stream.cc, oct-strstrm.cc, |
|
6878 Array-os.cc: New files. |
|
6879 * Makefile.in: Add them to the appropriate lists. |
|
6880 * file-io.cc: Rewrite to use new stream classes. |
|
6881 |
|
6882 Tue Apr 23 18:59:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6883 |
|
6884 * gripes.cc (gripe_not_supported): New function. |
|
6885 |
|
6886 * toplev.cc (do_octave_atexit, Fatexit): New functions. |
|
6887 (octave_atexit_functions): New file-scope variable. |
|
6888 * octave.cc (main): Register do_octave_atexit with atexit. |
|
6889 |
|
6890 * variables.cc (install_builtin_variables): Call |
|
6891 symbols_of_syscalls here. |
|
6892 |
|
6893 * syscalls.h, syscalls.cc: New files. |
|
6894 |
|
6895 Mon Apr 22 21:14:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6896 |
|
6897 * syscalls.cc: New file. |
|
6898 (Flstat, Fmkfifo, Fstat, Funlink, Fwait, Fwaitpid): Move here. |
|
6899 * file-io.cc: From here. |
|
6900 * Makefile.in (SOURCES): Add syscalls.cc to the list. |
|
6901 |
|
6902 Wed Apr 17 18:34:10 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6903 |
|
6904 * file-info.h, file-info.cc: Delete files. |
|
6905 * Makefile.in: Remove from lists. |
|
6906 |
|
6907 * toplev.cc (Fquit): Accept exit status argument. |
|
6908 (Fflops): Delete (now a function file). |
|
6909 |
|
6910 Thu Apr 11 16:20:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6911 |
|
6912 * lex.l: Recognize `.'. |
|
6913 Update current_input_column even for unrecognized characters. |
|
6914 Return LEXICAL_ERROR for unrecognized characters. |
|
6915 |
|
6916 Mon Apr 8 19:59:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6917 |
|
6918 * variables.cc (install_builtin_variables): Split into several |
|
6919 functions to make compiling with g++ go faster and consume less |
|
6920 memory. |
|
6921 |
|
6922 Sun Apr 7 16:25:35 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6923 |
|
6924 * load-save.cc (Fsave): Print usage if i == argc. |
|
6925 (Fload): Likewise. |
|
6926 |
|
6927 Sat Apr 6 21:26:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6928 |
|
6929 * Makefile.in (clean): Also delete pic/*.o |
|
6930 (maintainer-clean, distclean): Also remove stamp-picdir, |
|
6931 stamp-tinst, stamp-interp, and pic directory. |
|
6932 (stamp-prereq): New target. |
|
6933 |
|
6934 Wed Apr 3 11:19:30 1996 Rick Niles <niles@axp745.gsfc.nasa.gov> |
|
6935 |
|
6936 * resource.cc: Don't make including sys/resource.h and sys/times.h |
|
6937 mutually exclusive. |
|
6938 |
|
6939 Fri Mar 29 13:43:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6940 |
|
6941 * Makefile.in (distclean): Delete so_locations, which is created |
|
6942 on DEC Alpha systems. |
|
6943 |
|
6944 Thu Mar 28 02:53:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6945 |
|
6946 * utils.h (undo_string_escape): Provide extern declaration here. |
|
6947 |
|
6948 * lex.l (NL): Allow \r\n as new line character. |
|
6949 (.): Complain if invalid character is found on input |
|
6950 |
|
6951 Fri Mar 22 03:47:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6952 |
|
6953 * resource.cc (getrusage): If getrusage is missing, try using |
|
6954 times to at least fill in the cpu time values. If neither one is |
|
6955 available, return 0 for cpu times instead of NaN. |
|
6956 |
|
6957 * sighandlers.cc (octave_signal_mask): New file-scope variable. |
|
6958 (octave_save_signal_mask, octave_restore_signal_mask): New functions. |
|
6959 * toplev.cc (main_loop): Use them. |
|
6960 |
|
6961 Wed Mar 20 01:21:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6962 |
|
6963 * utils.cc (get_fcn_file_names (const string&, int)): Resize |
|
6964 retval to value of k, not i. |
|
6965 (get_fcn_file_names (int)): In loop for copying names to retval, |
|
6966 don't increment j twice. |
|
6967 |
|
6968 Mon Mar 18 22:27:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6969 |
|
6970 * Makefile.in ($(MAKEDEPS)): Depend on oct-gperf.h. |
|
6971 |
|
6972 Fri Mar 1 18:15:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6973 |
|
6974 * fsolve.cc (fsolve_options): Delete unused argument nargout. |
|
6975 |
|
6976 * filter.cc: Use MArray instead of Array so that automatic |
|
6977 conversions will work again. |
|
6978 |
|
6979 Tue Feb 27 04:49:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6980 |
|
6981 * variables.cc (looks_like_octave_copyright): Make the strings |
|
6982 that we are trying to match both have length 29. |
|
6983 |
|
6984 * Makefile.in (install-bin): Use $(INSTALL_PROGRAM), not $(INSTALL). |
|
6985 |
|
6986 * load-save.cc (read_mat_binary_data): Make sure name is |
|
6987 NUL terminated. |
|
6988 |
|
6989 Mon Feb 26 18:18:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6990 |
|
6991 * variables.cc (whos): Make argv from tmp_args, not args. |
|
6992 |
|
6993 * defun.h (DEFCONSTX): Don't stringify name. |
|
6994 |
|
6995 Sat Feb 24 01:12:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6996 |
|
6997 * Makefile.in (install-oct): Make mk-oct-links executable. |
|
6998 * mk-oct-links.in (links_dir): Update to match new format of |
|
6999 DEFUN_DLD_BUILTIN macro. Use LN_S, not just LN. |
|
7000 (links_dir): |
|
7001 |
|
7002 * pr-output.cc (octave_print_internal): New arg, extra_indent, for |
|
7003 versions of this function that take matrices and ranges. |
|
7004 * pt-const.cc (TC_REP::print (ostream&)): Fix printing of structures. |
|
7005 Pass struct_indent to octave_print_internal as appropriate. |
|
7006 (print_with_name (ostream&, const string&, bool)): Handle spacing |
|
7007 around `=' differently for structures. |
|
7008 |
|
7009 Fri Feb 23 04:51:04 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7010 |
|
7011 * token.cc (token (double, const string&, int, int)): Store orig_text. |
|
7012 |
|
7013 Tue Feb 20 20:36:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7014 |
|
7015 * variables.cc (Fclear): Fix off-by-one error. |
|
7016 |
|
7017 Sat Feb 17 16:54:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7018 |
|
7019 * oct-hist.cc (default_history_file): Append "/.octave_hist" to |
|
7020 return value, not to home_directory. |
|
7021 |
|
7022 Fri Feb 16 18:10:46 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7023 |
|
7024 * utils.cc: (NINT, D_NINT): Move to liboctave. |
|
7025 |
|
7026 * sysdep.cc (octave_ieee_init): Move to liboctave. |
|
7027 |
|
7028 * procstream.h, procstream.cc: Rewrite. |
|
7029 |
|
7030 * pager.cc (cleanup_oprocstream): New static function. |
|
7031 * toplev.cc (cleanup_iprocstream): Likewise. |
|
7032 * dirfns.cc (cleanup_iprocstream): Likewise. |
|
7033 |
|
7034 * unwind-prot.cc (matrix_cleanup, complex_matrix_cleanup): Delete. |
|
7035 |
|
7036 Thu Feb 15 22:03:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7037 |
|
7038 * oct-obj.cc, oct-obj.h: Move most code to the header. |
|
7039 |
|
7040 * oct-obj.cc (make_argv, all_strings): New member functions. |
|
7041 * utils.cc: Moved from here. |
|
7042 |
|
7043 * load-save.cc: Move byte swapping stuff to liboctave. |
|
7044 Move float format conversion stuff to liboctave. |
|
7045 (all_parts_int, too_large_for_float): Move to liboctave. |
|
7046 |
|
7047 * symtab.cc (valid_identifier): Move here. |
|
7048 * load-save.cc: From here. |
|
7049 |
|
7050 * sysdep.cc: Move floating-point format stuff to liboctave. |
|
7051 * pr-output.cc: Include float-fmt.h here. |
|
7052 |
|
7053 Wed Feb 14 01:49:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7054 |
|
7055 * defun.h, defun-dld.h, defun-int.h: Simplify interface for DEFUN, |
|
7056 DEFUN_DLD, DEFVAR, and DEFCONST macros. Change all uses. |
|
7057 |
|
7058 * qzval.cc: Move guts to liboctave. |
|
7059 |
|
7060 Tue Feb 13 10:28:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7061 |
|
7062 * variables.cc (parse_fcn_file): Also avoid saving history if |
|
7063 input is from a script file. |
|
7064 |
|
7065 * help.cc (Ftype): Call unwind_protect_str for user_pref.ps4. |
|
7066 |
|
7067 * npsol.cc (nonlinear_constraints_ok): Now static. |
|
7068 |
|
7069 * npsol.cc (linear_constraints_ok): Now static. |
|
7070 * qpsol.cc (linear_constraints_ok): Duplicate here. |
|
7071 |
|
7072 * data.cc (Flinspace): Don't print usage message if nargin == 2. |
|
7073 |
|
7074 Sun Feb 11 14:20:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7075 |
|
7076 * mk-oct-links.in: Rename from mk-oct-links. |
|
7077 (LN_S): Use this variable instead of ln. |
|
7078 Set -e option for shell. |
|
7079 Exit with status of last command. |
|
7080 Print message when making link. |
|
7081 * Makefile.in (DISTFILES): Add mk-oct-links.in to the list. |
|
7082 (install-oct): Run ./mk-oct-links, not $(srcdir)/mk-oct-links. |
|
7083 |
|
7084 * variables.cc (install_builtin_variables): Restore accidentally |
|
7085 deleted DEFVAR for save_precision. |
|
7086 |
|
7087 Fri Feb 9 11:24:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7088 |
|
7089 * Makefile.in (INCLUDES): Delete statdefs.h from the list (it's |
|
7090 now in the liboctave directory). |
|
7091 |
|
7092 * toplev.cc (toplevel): Define here. |
|
7093 * octave.cc (toplevel): Not here. |
|
7094 |
|
7095 * toplev.cc (main_loop): New function. |
|
7096 * octave.cc (main): Call it here instead of doing main loop |
|
7097 actions here. |
|
7098 |
|
7099 * user-prefs.cc (do_fortran_indexing): Also set liboctave_dfi_flag. |
|
7100 (prefer_column_vectors): Also set liboctave_pcv_flag. |
|
7101 (prefer_zero_one_indexing): Also set liboctave_pzo_flag. |
|
7102 (resize_on_range_error): Also set liboctave_rre_flag. |
|
7103 |
|
7104 * variables.cc (restore_command_history): New function. |
|
7105 (parse_fcn_file): Use it here in unwind_protect. |
|
7106 |
|
7107 * dynamic-ld.cc (load_octave_oct_file): Reverse sense of test. |
|
7108 (load_octave_builtin): Delete. |
|
7109 (mangle_octave_oct_file_name): Delete. |
|
7110 |
|
7111 * pt-fvc.cc (tree_builtin::eval): Don't try to dynamically load |
|
7112 functions here. |
|
7113 |
|
7114 * pr-output.cc (set_format_style): Decrement argc for first arg too. |
|
7115 |
|
7116 * input.cc (gnu_readline): If readline returns an empty string, |
|
7117 convert it to a string containing a single newline character. |
|
7118 |
|
7119 * octave.cc (octave_argv): Now a static string_vector. |
|
7120 (intern_argv): Use string_vector ops, not charMatrix ops. |
|
7121 * toplev.cc (octave_argv): Delete definition. |
|
7122 * toplev.h (octave_argv): Delete declaration. |
|
7123 |
|
7124 Thu Feb 8 10:58:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7125 |
|
7126 * Makefile.in (conf-dist): New target. |
|
7127 |
|
7128 Tue Feb 6 10:59:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7129 |
|
7130 * help.cc (Ftype): Correctly handle structure names. |
|
7131 |
|
7132 Sun Feb 4 02:02:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7133 |
|
7134 * qpsol.cc (Fqpsol): Call set_options(), not copy() to set |
|
7135 options for QPSOL objects. |
|
7136 |
|
7137 * npsol.cc (Fnpsol): Call set_options(), not copy() to set |
|
7138 options for NPSOL objects. |
|
7139 |
|
7140 * quad.cc (Fquad): Call set_options(), not copy() to set |
|
7141 options for Quad objects. |
|
7142 |
|
7143 * dynamic-ld.cc (load_octave_builtin): Don't call destructor on string. |
|
7144 (load_octave_oct_file): Likewise. |
|
7145 Check oct_file.empty(), not just oct_file. |
|
7146 |
|
7147 * fsolve.cc (Ffsolve): Call set_options(), not copy() to set |
|
7148 options for NLEqn object. |
|
7149 |
|
7150 * variables.cc (do_who): Properly set match patterns from argument |
|
7151 vector for call to maybe_list. |
|
7152 |
|
7153 Sat Feb 3 03:29:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7154 |
|
7155 * octave.cc (long_opts): Properly set second field using new enum. |
|
7156 |
|
7157 * lsode.cc: Change ODE to LSODE where appropriate. |
|
7158 Use LSODE_options, not ODE_options. |
|
7159 |
|
7160 * dassl.cc: Change DAE to DASSL where appropriate. |
|
7161 Use DASSL_options, not ODE_options. |
|
7162 |
|
7163 Fri Feb 2 01:41:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7164 |
|
7165 * dirfns.cc: Include unistd.h. |
|
7166 |
|
7167 * parse.y, lex.l: Handle matrix lists without ml or mlnm stacks. |
|
7168 * pt-mat.h, pt-mat.cc (tree_matrix): |
|
7169 Rewrite to use SLList instead of home brew list. |
|
7170 * SLList-tm.cc: New file |
|
7171 * Makefile.in: Add it to the lists. |
|
7172 * SLStack-tm.cc: Delete. |
|
7173 * Makefile.in: Delete it from the lists. |
|
7174 |
|
7175 * All pt-* files: Use bool instead of int where appropriate. |
|
7176 |
|
7177 * Makefile.in (DEP_SOURCES_3): Add octave.cc. |
|
7178 |
|
7179 * pt-const.h (class tree_constant::tree_constant_rep): Make |
|
7180 everything in this class public, then it doesn't need to declare |
|
7181 the tree_constant class as a friend. |
|
7182 |
|
7183 Thu Feb 1 01:42:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7184 |
|
7185 * lex.h, lex.l, parse.h, parse.y (class lexical_feedback): New |
|
7186 class for lexer flags. Replace lots of global vars with members |
|
7187 of this class. |
|
7188 |
|
7189 * lex.l (class brace_paren_nesting_level): New class to replace |
|
7190 nesting_level stack. nesting_level is now an instance of this |
|
7191 class. |
|
7192 |
|
7193 * lex.l (yum_yum): New typedef. |
|
7194 (ATE_NOTHING): New global var. |
|
7195 (ATE_SPACE_OR_TAB, ATE_NEWLINE): Don't #define these, declare them |
|
7196 as const yum_yum. |
|
7197 (eat_whitespace, eat_continuation): Return yum_yum, not int. |
|
7198 |
|
7199 * lex.l (SHORT_CIRCUIT_LOGICALS): Delete. Always do this for || |
|
7200 and && tokens. |
|
7201 (yy_flex_alloc, yy_flex_realloc, yy_flex_free, next_char_is_space): |
|
7202 Delete. |
|
7203 |
|
7204 * toplev.cc (verbose_flag): Delete definition. |
|
7205 * toplev.h (verbose_flag): And declaration. |
|
7206 * octave.cc (verbose_flag): Now static. |
|
7207 |
|
7208 * lex.l (lookup_identifier): Arg is now string, not char*. |
|
7209 (handle_identifier, is_plot_keyword, is_keyword): Likewise. |
|
7210 (strip_trailing_whitespace): Return value is now string, not char*. |
|
7211 (plot_style_token): Likewise, for both arg and return value. |
|
7212 |
|
7213 * input.cc (octave_gets_line): Delete. |
|
7214 (gnu_readline, octave_gets, octave_read): |
|
7215 Properly handle input when using_readline is either true or false. |
|
7216 Don't limit length of input lines to flex buffer size. |
|
7217 (get_user_input): New function. |
|
7218 |
|
7219 * octave.cc (main): Handle --no-line-editing. |
|
7220 * toplev.h (using_readline): Provide external declaration here. |
|
7221 * input.h: Not here. |
|
7222 * toplev.cc (using_readline): Define here. |
|
7223 * input.cc: Not here. |
|
7224 |
|
7225 * toplev.h (no_line_editing): Delete declaration. |
|
7226 * input.cc (no_line_editing): Delete definition. |
|
7227 |
|
7228 Wed Jan 31 05:28:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7229 |
|
7230 * input.cc (DEFAULT_ARRAY_SIZE, PROMPT_GROWTH): Delete definitions |
|
7231 of unused macros. |
|
7232 (read_octal): Now static. |
|
7233 |
|
7234 * givens.cc (Fgivens): Use new functions from matrix classes |
|
7235 instead of calling Fortran functions directly. |
|
7236 * syl.cc (Fsyl): Likewise. |
|
7237 * expm.cc (Fexpm): Likewise. |
|
7238 |
|
7239 Mon Jan 29 00:00:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7240 |
|
7241 * octave.cc: Use new prog_args class instead of calling getopt |
|
7242 directly. |
|
7243 |
|
7244 * getopt.h, getopt.c, getopt1.c: Move to liboctave directory. |
|
7245 * Makefile: Remove from lists. |
|
7246 |
|
7247 * utils.cc (strconcat, read_until, discard_until): Delete. |
|
7248 |
|
7249 * pager.cc (terminal_columns, terminal_rows): Move to |
|
7250 liboctave/oct-term.cc. |
|
7251 * pager.cc, pr-output.cc: Include oct-term.h. |
|
7252 |
|
7253 * utils.cc (list_in_columns): Moved to liboctave/str-vec.cc. |
|
7254 Change all callers to use new member function syntax. |
|
7255 |
|
7256 * dirfns.cc (absolute_program): Now static. |
|
7257 (absolute_pathname): Delete. |
|
7258 |
|
7259 * pt-plot.cc (save_in_tmp_file): Call oct_tempnam, not |
|
7260 octave_tmp_file_name. Include file-ops.h. |
|
7261 * file-io.cc (do_scanf, Foctave_tmp_file_name): Likewise. |
|
7262 * oct-hist.cc (mk_tmp_hist_file): Likewise. |
|
7263 |
|
7264 * file-io.cc (Foctave_tmp_file_name): Move here. |
|
7265 * utils.cc: From here. |
|
7266 |
|
7267 * utils.cc (octave_tmp_file_name): Move to liboctave/file-ops.cc. |
|
7268 |
|
7269 * tempname.c, tempnam.c: Move to liboctave directory. |
|
7270 * Makefile.in: Remove from lists. |
|
7271 |
|
7272 Sun Jan 28 19:00:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7273 |
|
7274 * xdiv.cc (all xdiv functions): Return Matrix or ComplexMatrix, |
|
7275 not tree_constant. |
|
7276 |
|
7277 * oct-hist.h, oct-hist.cc, toplev.cc, octave.cc, input.cc, |
|
7278 file-io.cc, user-prefs.cc: Rewrite to use new command_history |
|
7279 class instead of calling readline history functions directly. |
|
7280 |
|
7281 * utils.cc (get_fcn_file_names): Delete num arg. |
|
7282 |
|
7283 Thu Jan 25 20:33:54 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7284 |
|
7285 * load-save.cc (matches_patterns): Use new glob_match class |
|
7286 instead of calling fnmatch directly. |
|
7287 * symtab.cc (matches_patterns, symbol_table::glob): Likewise. |
|
7288 * variables.cc (Fclear): Likewise. |
|
7289 |
|
7290 Wed Jan 24 02:05:22 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7291 |
|
7292 * fnmatch.h fnmatch.c: Delete. |
|
7293 * Makefile.in: Add glob stuff in the appropriate places, remove |
|
7294 fnmatch.h and fnmatch.c from lists. |
|
7295 |
|
7296 * octave.cc (program_invocation_name, program_invocation_short_name): |
|
7297 Maybe declare. |
|
7298 (initialize_globals): Maybe initialize them. |
|
7299 |
|
7300 * octave.cc (initialize_pathsearch): Define here, not in pathsearch.cc. |
|
7301 * pathsearch.h, pathsearch.cc: Remove files. |
|
7302 * Makefile.in: Remove them from the lists. |
|
7303 |
|
7304 * help.cc (simple_help): Ignore directories that don't have any .m |
|
7305 or .oct files. |
|
7306 |
|
7307 * utils.cc (search_path_for_file): Use new dir_path class instead |
|
7308 of calling kpathsea routines directly. |
|
7309 (get_fcn_file_names): Likewise. |
|
7310 * help.cc (simple_help): Likewise. |
|
7311 |
|
7312 * dirfns.cc (make_absolute): Don't convert empty arg to "./". |
|
7313 |
|
7314 * sysdir.h: Move to liboctave directory. |
|
7315 * Makefile.in: Remove from lists. |
|
7316 |
|
7317 * dirfns.cc (Freaddir): Use new dir_entry class instead of calling |
|
7318 readdir directly. Include dir-ops.h, not sysdir.h. |
|
7319 * utils.cc (get_fcn_file_names): Likewise. Delete unnecessary |
|
7320 first arg, change all callers. |
|
7321 |
|
7322 Tue Jan 23 00:43:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7323 |
|
7324 * safe-xstat.hin, safe-xstat.cin, statdefs.h, file-ops.h, |
|
7325 file-ops.cc, filemode.c, mkdir.c, rmdir.c, rename.c: |
|
7326 Files moved to liboctave directory. |
|
7327 * Makefile.in: Remove them from lists. Move appropriate rules. |
|
7328 |
|
7329 * acosh.c, asinh.c, atanh.c, erf.c, erfc.c, gamma.c, lgamma.c: |
|
7330 Files moved to liboctave directory. |
|
7331 * Makefile.in: Remove them from lists. |
|
7332 * missing-math.h: Deleted. |
|
7333 * pr-output.cc, sysdep.cc, minmax.cc, mappers.cc, expm.cc, |
|
7334 arith-ops.cc: Include oct-math.h, not cmath or missing-math.h. |
|
7335 |
|
7336 Mon Jan 22 19:33:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7337 |
|
7338 * variables.cc (Fexist): Use file_stat instead of calling stat |
|
7339 directly. Include file-ops.h, not statdefs.h. |
|
7340 * octave.cc (execute_startup_files): Likewise. |
|
7341 * file-io.cc (file_io_get_file, fopen_internal, popen_internal, Fstat): |
|
7342 Likewise. |
|
7343 (mk_stat_map): Likewise, use file_stat object, not struct stat. |
|
7344 * oct-hist.cc (do_history): Likewise. |
|
7345 |
|
7346 * file-ops.h, file-stat.cc: New files. |
|
7347 * Makefile.in: Include them. |
|
7348 * dirfns.cc: Delete is_newer. Don't include statdefs.h. |
|
7349 * toplev.cc: Don't include statdefs.h. |
|
7350 |
|
7351 Sun Jan 21 22:48:03 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7352 |
|
7353 * pt-mvr.h, pt-fvc.h, Map.cc, Map.h, dynamic-ld.h, |
|
7354 pt-fvc-base.cc, SLList-str.cc, pt-fcn.h, pt-fvc-base.h, |
|
7355 SLStack-str.cc, pt-mvr.cc, pt-exp.cc, token.h, token.cc, |
|
7356 user-prefs.h, pt-base.cc, user-prefs.cc, dirfns.h, sysdep.h, |
|
7357 sysdep.cc, input.h, parse.h, lex.l, parse.y, defun.h, mappers.h, |
|
7358 pt-fvc.cc, pt-plot.h, load-save.h, octave.cc, defun-int.h, help.h, |
|
7359 variables.h, oct-map.h, oct-obj.h, oct-obj.cc, pt-const.cc, |
|
7360 oct-map.cc, input.cc, symtab.h, pt-const.h, pathsearch.cc, |
|
7361 pr-output.h, pr-output.cc, toplev.h, timefns.cc, schur.cc, |
|
7362 pt-plot.cc, pager.cc, load-save.cc, dynamic-ld.cc, dirfns.cc, |
|
7363 data.cc, file-info.h, file-info.cc, colloc.cc, utils.h, qpsol.cc, |
|
7364 quad.cc, npsol.cc, lsode.cc, fsolve.cc, dassl.cc, file-io.cc, |
|
7365 help.cc, utils.cc, oct-hist.h, oct-hist.cc, symtab.cc, toplev.cc, |
|
7366 pt-fcn.cc, unwind-prot.h, unwind-prot.cc, variables.cc: |
|
7367 Most functions in these files that deal with character strings |
|
7368 have been converted to use the string class insatead of char*. If |
|
7369 you want more detailed information, you'll have to figure it out |
|
7370 for yourself. |
|
7371 |
|
7372 Sat Jan 20 18:19:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7373 |
|
7374 * dynamic-ld.cc [WITH_DL]: Define RTLD_LAZY to be 1 if it is not |
|
7375 already defined. |
|
7376 |
|
7377 Sun Jan 14 07:48:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7378 |
|
7379 * pt-const.cc (print_as_scalar, print_as_structure): |
|
7380 Make these member functions. |
|
7381 (tree_constant::print_with_name): New function, moved here from |
|
7382 old tree-expr.cc file (where it was called print_constant) and |
|
7383 converted to member function. Change all callers. |
|
7384 |
|
7385 Fri Jan 12 01:54:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7386 |
|
7387 * octave.cc (initialize_globals): Don't do kpathsearch stuff here. |
|
7388 (main): Call initialize_pathsearch() here. |
|
7389 |
|
7390 * pathsearch.cc: New file. |
|
7391 * Makefile.in (SOURCES): Add it to the list |
|
7392 |
|
7393 * oct-hist.h: Rename from octave-hist.h. |
|
7394 * oct-hist.cc: Rename from octave-hist.cc. |
|
7395 * Makefile.in, parse.y, other .cc files: Cope with it. |
|
7396 |
|
7397 * dynamic-ld.cc: Avoid warnings if !WITH_DYNAMIC_LINKING. |
|
7398 |
|
7399 * load-save.cc (save_ascii_data): string::data() returns const char*. |
|
7400 |
|
7401 * utils.h: Don't provide forward declaration for tree_constant. |
|
7402 |
|
7403 * oct-obj.h: Don't include mx-base.h or provide forward |
|
7404 declarations for Matrix and Range types. |
|
7405 |
|
7406 * file-info.h: Don't include oct-obj.h. Do include cstdio. |
|
7407 |
|
7408 * symtab.h: Don't provide forward declaration for ostream. |
|
7409 |
|
7410 * variables.h: Don't provide forward declarations for istream, |
|
7411 ostrstream, tree, builtin_function, or builtin_variable objects. |
|
7412 |
|
7413 * balance.cc, chol.cc, colloc.cc, dassl.cc, det.cc, eig.cc, |
|
7414 expm.cc, fft.cc, fft2.cc, filter.cc, find.cc, fsolve.cc, fsqp.cc, |
|
7415 givens.cc, hess.cc, ifft.cc, ifft2.cc, inv.cc, log.cc, lpsolve.cc, |
|
7416 lsode.cc, lu.cc, minmax.cc, npsol.cc, pinv.cc, qpsol.cc, qr.cc, |
|
7417 quad.cc, qzval.cc, rand.cc, schur.cc, sort.cc, svd.cc, syl.cc: |
|
7418 Clean up #include statements. |
|
7419 |
|
7420 * pt-const.h: Don't include oct-obj.h or tree-base.h. |
|
7421 Provide forward declaration of Octave_object here. |
|
7422 * pt-const.cc: Include oct-obj.h here. |
|
7423 |
|
7424 * pt-mat.h, pt-fcn.h, pt-const.h, pt-misc.h, pt-plot.h, |
|
7425 pt-exp-base.h, pt-cmd.h, pt-fvc-base.h, pt-mvr-base.h, pt-exp.h, |
|
7426 pt-mvr.h, pt-fvc.h: New files, split from tree-expr.h and/or |
|
7427 renamed from other tree-*.h files (pt == parse tree). |
|
7428 * pt-base.cc, pt-const.cc, pt-exp.cc, pt-fvc-base.cc, pt-mat.cc, |
|
7429 pt-mvr-base.cc, pt-plot.cc, pt-cmd.cc, pt-exp-base.cc, pt-fcn.cc, |
|
7430 pt-fvc.cc, pt-misc.cc, pt-mvr.cc: Likewse, split from tree-expr.cc |
|
7431 and/or other tree-*.cc files. |
|
7432 * Makefile.in: Include them in the appropriate lists. |
|
7433 * All: Fix #include statements to match. |
|
7434 |
|
7435 * Array-tc.cc: Don't instantiate ArrayRep objects. |
|
7436 |
|
7437 Thu Jan 11 02:35:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7438 |
|
7439 * tree-const.cc (tree_constant::eval (int, int, const Octave_object&)): |
|
7440 Define here instead of in tree-const.h. |
|
7441 |
|
7442 Wed Jan 10 04:34:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7443 |
|
7444 * tree-const.h (tree_constant::tree_constant (const string&): |
|
7445 * tree-const.cc (TC_REP::tree_constant_rep (const string&)): |
|
7446 New constructor. |
|
7447 |
|
7448 Tue Jan 9 04:10:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7449 |
|
7450 * rand.cc (do_rand): Use string_value() result directly instead of |
|
7451 c_str() conversion. |
|
7452 * balance.cc (Fbalance): Likewise. |
|
7453 |
|
7454 * tree-const.cc (TC_REP::string_value()): |
|
7455 Handle new definition of charMatrix::row_as_string() |
|
7456 * load-save.cc (save_ascii_data): Ditto. |
|
7457 (save_binary_data): Ditto. |
|
7458 * pr-output.cc (octave_print_internal): Ditto. |
|
7459 |
|
7460 * balance.cc (Fbalance): |
|
7461 Handle new definition of TC_REP::string_value() |
|
7462 * colloc.cc (Fcolloc): Ditto. |
|
7463 * dassl.cc (Fdassl_options): Ditto. |
|
7464 * data.cc (Fstruct_contains): Ditto. |
|
7465 * dirfns.cc (Fmkdir): Ditto. |
|
7466 (Freaddir): Ditto. |
|
7467 (Frmdir): Ditto. |
|
7468 (Frename): Ditto. |
|
7469 * error.cc (handle_message): Ditto. |
|
7470 * file-io.cc (process_printf_format): Ditto. |
|
7471 (fopen_internal): Ditto. |
|
7472 (file_io_get_file): Ditto. |
|
7473 (return_valid_file): Ditto. |
|
7474 (Flstat): Ditto. |
|
7475 (Fstat): Ditto. |
|
7476 (unlink_internal): Ditto. |
|
7477 (mkfifo_internal): Ditto. |
|
7478 (async_system_internal): Ditto. |
|
7479 (sync_system_internal): Ditto. |
|
7480 (execute_internal): Ditto. |
|
7481 (popen_internal): Ditto. |
|
7482 (fwrite_internal): Ditto. |
|
7483 (fread_internal): Ditto. |
|
7484 (do_printf): Ditto. |
|
7485 (do_scanf): Ditto. |
|
7486 * input.cc (get_user_input): Ditto. |
|
7487 * lsode.cc (Flsode_options): Ditto. |
|
7488 * npsol.cc (Fnpsol_options):Ditto. |
|
7489 * qpsol.cc (Fqpsol_options):Ditto. |
|
7490 * quad.cc (Fquad_options): Ditto. |
|
7491 * rand.cc (do_rand): Ditto. |
|
7492 * schur.cc (Fschur): Ditto. |
|
7493 * sysdep.cc (Fputenv): Ditto. |
|
7494 (Fgetenv): Ditto. |
|
7495 * timefns.cc (extract_tm): Ditto. |
|
7496 (Fstrftime): Ditto. |
|
7497 * toplev.cc (Fsource): Ditto. |
|
7498 (eval_string): Ditto. |
|
7499 (Fsystem): Ditto. |
|
7500 * tree-plot.cc (subplot::handle_plot_data): Ditto. |
|
7501 * variables.cc (is_valid_function): Ditto. |
|
7502 (Fis_global): Ditto. |
|
7503 (Fexist): Ditto. |
|
7504 (builtin_string_variable): Ditto. |
|
7505 * utils.cc (make_argv): Ditto. |
|
7506 (Fundo_string_escapes): Ditto. |
|
7507 |
|
7508 Mon Jan 8 01:54:50 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7509 |
|
7510 * Makefile.in (install-bin): Use $(LN_S), not just ln. |
|
7511 |
|
7512 * variables.cc (octave_fcn_file_dir): New function. |
|
7513 * tree-expr.cc (mark_as_system_fcn_file): Use it instead of |
|
7514 octave_lib_dir. |
|
7515 |
|
7516 * Makefile.in (clean): If $(SHARED_LIBS), also remove shared libs. |
|
7517 |
|
7518 * pr-output.cc (set_format (const ComplexMatrix&, int&, int&)): |
|
7519 Unconditionally call all_elements_are_int_or_inf_or_nan(). |
|
7520 (set_format (const Matrix&, int&, int&)): Likewise. |
|
7521 |
|
7522 Sun Jan 7 19:12:39 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7523 |
|
7524 * utils.cc (oct_putenv): New function. |
|
7525 * sysdep.cc (Fputenv): Use oct_putenv. |
|
7526 * octave.cc (initialize_globals): Likewise. |
|
7527 |
|
7528 Sat Jan 6 23:22:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7529 |
|
7530 * sysdep.cc (Fputenv): New function. |
|
7531 |
|
7532 * input.cc (initialize_readline): Call rl_initialize() here. |
|
7533 |
|
7534 * octave.cc: Conditionally define atexit to be on_exit here. |
|
7535 * toplev.cc: Not here. |
|
7536 |
|
7537 Fri Jan 5 14:01:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7538 |
|
7539 * toplev.cc: Don't include <pwd.h> here. |
|
7540 |
|
7541 * octave-hist.cc, tree-plot.cc, utils.cc: Do include "sysdep.h". |
|
7542 |
|
7543 * dirfns.cc, file-io.cc, help.cc, load-save.cc, octave.cc, |
|
7544 octave-hist.cc, tree-plot.cc, utils.cc: |
|
7545 Don't include <readline/tilde.h>. |
|
7546 * sysdep.h: Do include it here. |
|
7547 |
|
7548 * tree-const.cc (TC_REP::assign (tree_constant&, Octave_object&)): |
|
7549 If we have a matrix or range, call maybe_mutate before returning. |
|
7550 |
|
7551 Sun Dec 31 15:56:18 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7552 |
|
7553 * npsol.cc (Fnpsol): Improve doc string. |
|
7554 * qpsol.cc (Fqpsol): Likewise. |
|
7555 |
|
7556 Fri Dec 29 21:46:58 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7557 |
|
7558 * defun-dld.h: Make work again for OCTAVE_LITE and |
|
7559 WITH_DYNAMIC_LINKING. |
|
7560 |
|
7561 * Makefile.in: Handle shared libraries. |
|
7562 |
|
7563 Wed Dec 27 17:47:51 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7564 |
|
7565 * mk-oct-links: New file. |
|
7566 * Makefile.in (install-oct): Use it. |
|
7567 * f-*.cc: Rename to *.cc. |
|
7568 |
|
7569 * Makefile.in (install-bin, install-lib, install-oct): New targets. |
|
7570 (install): Use them. |
|
7571 |
|
7572 Tue Dec 26 21:38:22 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7573 |
|
7574 * toplev.cc (reading_startup_message_printed): Move initialization |
|
7575 here and make extern. |
|
7576 |
|
7577 * dirfns.cc, dynamic-ld.cc, help.cc, input.cc, octave-hist.cc, |
|
7578 octave.cc, sighandlers.cc, sysdep.cc, tree-expr.cc, tree-misc.cc, |
|
7579 utils.cc, variables.cc, parse.y, lex.l: Include toplev.h instead |
|
7580 of octave.h. |
|
7581 * toplev.h: rename from octave.h. |
|
7582 |
|
7583 * octave.cc (main): Delete unused variable saved_sigint_handler. |
|
7584 |
|
7585 Sun Dec 24 00:26:54 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7586 |
|
7587 * dynamic-ld.cc: Massive re-write to handle dlopen/dlsym and |
|
7588 shl_load/shl_findsym methods of dynamic linking. |
|
7589 |
|
7590 * utils.cc (get_fcn_file_names): Check for .oct files if |
|
7591 WITH_DYNAMIC_LINKING, not WITH_DLD. |
|
7592 |
|
7593 * Makefile.in (LIB, TERMLIBS): Substitute values. |
|
7594 (octave): Add $(LIBS) to link command and use $(TERMLIBS) instead |
|
7595 of -ltermcap. |
|
7596 |
|
7597 Sat Dec 23 21:56:12 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7598 |
|
7599 * dynamic-ld.h, dynamic-ld.cc: Remove old unused code. |
|
7600 |
|
7601 * variables.cc (load_fcn_from_file): |
|
7602 Always call load_octave_oct_file. |
|
7603 |
|
7604 Wed Dec 20 00:56:57 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7605 |
|
7606 * pr-output.cc (set_real_format, set_real_matrix_format, |
|
7607 set_complex_format, set_complex_matrix_format, set_range_format): |
|
7608 New functions. Ensure the count of the digits to the right of the |
|
7609 decimal point is positive. |
|
7610 |
|
7611 * xpow.cc (xpow (const Matrix&, double)): Print warning if |
|
7612 inverting singular matrix (but return value anyway, in the name of |
|
7613 compatibility). |
|
7614 xpow (const ComplexMatrix&, double)): Likewise. |
|
7615 |
|
7616 * f-inv.cc (Finv): If matrix is singular, return result anyway, in |
|
7617 the name of compatibility. |
|
7618 |
|
7619 * symtab.cc (symbol_record::pop_context): |
|
7620 Don't assert (! context.empty ()). |
|
7621 |
|
7622 * tree-const.cc (TC_REP::char_matrix_value): Don't complain about |
|
7623 type conversion if object is an empty matrix.f |
|
7624 (TC_REP::assign): If rhs is a string, don't convert to numeric |
|
7625 type if rhs is empty or "". |
|
7626 Only widen if rhs is not empty. |
|
7627 Don't return 0x0 char_matrix if it is supposed to be a string. |
|
7628 |
|
7629 * arith-ops.h, mappers.h, pr-output.h, xdiv.h, xpow.h: Include |
|
7630 oct-cmplx.h in place of forward declaration for class Complex. |
|
7631 |
|
7632 * pr-output.cc, mappers.cc, arith-ops.cc, xdiv.cc, xpow.cc, |
|
7633 utils.cc: Include "oct-cmplx.h" instead of <Complex.h>. |
|
7634 |
|
7635 * octave.cc (initialize_error_handlers): Don't call |
|
7636 set_Complex_error_handler(). |
|
7637 (octave_Complex_error_handler): Delete unused function. |
|
7638 Delete declaration for set_Complex_error_handler(). |
|
7639 |
|
7640 * sighandlers.cc (catch_interrupts): New function. |
|
7641 * octave.cc (main): Call catch_interrupts() instead of calling |
|
7642 octave_set_signal_handler() directly. |
|
7643 |
|
7644 Tue Dec 19 03:22:37 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7645 |
|
7646 * variables.cc (looks_like_octave_copyright): Also recognize the |
|
7647 string " This program is free software". |
|
7648 |
|
7649 Thu Dec 14 01:54:06 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7650 |
|
7651 * octave-hist.cc (clean_up_history): Only write history file if |
|
7652 user_pref.saving_history. |
|
7653 |
|
7654 * octave-hist.cc (initialize_history, clean_up_history, |
|
7655 do_history): Perform tilde expansion on history file name. |
|
7656 |
|
7657 * octave.cc (main): Check `defined (HAVE_ON_EXIT)' not just |
|
7658 `(HAVE_ON_EXIT)'. |
|
7659 |
|
7660 * user-prefs.h (user_preferences): New fields, `history_file' and |
|
7661 `history_size'. |
|
7662 * user-prefs.cc (init_user_prefs): Initialize them. |
|
7663 (sv_history_file, history_size): New functions. |
|
7664 * variables.cc (install_builtin_variables): Initialize user-level |
|
7665 variables history_file and history_size. |
|
7666 * octave-hist.cc (default_history_size): Now extern. |
|
7667 (default_history_file): Likewise. |
|
7668 (octave_hist_size, octave_hist_file): Use user preference |
|
7669 variables instead. |
|
7670 * octave.cc (main): Call initialize_history after |
|
7671 execute_startup_files. |
|
7672 |
|
7673 Fri Dec 8 15:53:59 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7674 |
|
7675 * user-prefs.h (user_preferences): New field, `saving_history'. |
|
7676 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7677 (saving_history): New function. |
|
7678 * variables.cc (install_builtin_variables): Initialize user-level |
|
7679 variable saving_history. |
|
7680 * octave.cc (parse_and_execute): Don't reset value of |
|
7681 saving_history here. |
|
7682 (main) Use user_pref.saving_history instead of saving_history. |
|
7683 * variables.cc (parse_fcn_file): Likewise. |
|
7684 * octave-hist.cc (maybe_save_history): Likewise. |
|
7685 Don't save history if input_from_startup_file. |
|
7686 |
|
7687 Mon Nov 27 23:05:52 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7688 |
|
7689 * resource.cc: Include systime.h before <sys/resource.h>. |
|
7690 |
|
7691 Tue Nov 14 14:09:40 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7692 |
|
7693 * error.cc: Include cstring. |
|
7694 |
|
7695 * tree-expr.cc (print_code): Decrement indent level after printing |
|
7696 function body. |
|
7697 |
|
7698 * Makefile.in: Remove references to oct-str.cc, oct-str.h, and |
|
7699 Array-string.cc. |
|
7700 |
|
7701 * tree-const.h: Don't include oct-str.h. |
|
7702 |
|
7703 Mon Nov 6 11:16:49 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7704 |
|
7705 * parse.y (make_plot_command, finish_colon_expression, |
|
7706 make_unwind_protect, make_try_command, make_for_command, |
|
7707 make_break_command, make_continue_command, make_return_command, |
|
7708 start_if_command, finish_if_command, make_elseif_clause, |
|
7709 make_simple_assignment, make_multi_val_ret, start_function_def, |
|
7710 frob_function_def, finish_function_def, start_matrix, |
|
7711 finish_matrix): New functions. Use them in the grammar to clean |
|
7712 things up a bit. Possibly convert matrix lists, colon |
|
7713 expressions, binary expressions, and unary expressions to constant |
|
7714 values. |
|
7715 (tree_matrix_type): Delete. |
|
7716 (simple_expr1): Handle all expression stuff here, including |
|
7717 assignments. |
|
7718 (simple_expr): Just check to see that simple_expr1 produced |
|
7719 something useful. |
|
7720 |
|
7721 * tree-plot.cc, tree-plot.h: Move most simple constructors to the |
|
7722 header file. |
|
7723 |
|
7724 * tree-expr.h (tree_expression::is_constant): Move virtual |
|
7725 function definition here. |
|
7726 (tree_fvc::is_constant): From here. |
|
7727 (tree_expression::is_matrix_constant): New virtual function. |
|
7728 (tree_expression::is_range_constant): New virtual function. |
|
7729 * tree-expr.cc (tree_matrix::is_matrix_constant): New function. |
|
7730 * tree-expr.cc (tree_colon_expression::is_range_constant): New |
|
7731 function. |
|
7732 |
|
7733 Fri Nov 3 03:42:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7734 |
|
7735 * utils.cc, utils.h (jump_to_top_level): Declare as extern "C". |
|
7736 |
|
7737 * tree-const.h (tree_constant::eval ()): Only mutate if printing. |
|
7738 |
|
7739 * tree-const.cc (TC_REP::tree_constant_rep (const Complex&), |
|
7740 TC_REP::tree_constant_rep (const ComplexMatrix&), |
|
7741 TC_REP::tree_constant_rep (const ComplexDiagMatrix&), |
|
7742 TC_REP::tree_constant_rep (const ComplexRowVector&), |
|
7743 TC_REP::tree_constant_rep (const ComplexColumnVector&)): |
|
7744 Also check to see if we can convert to scalar_constant, not just |
|
7745 complex_scalar_constant. |
|
7746 |
|
7747 * user-prefs.h (user_preferences): New field, `exec_path'. |
|
7748 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7749 (sv_exec_path): New function. |
|
7750 * variables.cc (install_builtin_variables): Add DEFUN for EXEC_PATH. |
|
7751 (default_exec_path): New function. |
|
7752 * octave.cc (exec_path): New global variable. |
|
7753 Don't set and putenv() exec path here. |
|
7754 (long_opts): Add --exec-path option. |
|
7755 (main): Handle it. |
|
7756 (initialize_globals): Set default value here. |
|
7757 |
|
7758 * user-prefs.h (user_preferences): New field, `info_prog'. |
|
7759 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7760 (sv_info_prog): New function. |
|
7761 * variables.cc (install_builtin_variables): Add DEFUN for INFO_PROGRAM. |
|
7762 (default_info_prog): New function. |
|
7763 * octave.cc (info_prog): New global variable. |
|
7764 (initialize_globals): Set default value here. |
|
7765 (long_opts): Add --info-prog option. |
|
7766 (main): Handle it. |
|
7767 * help.cc (try_info): Use user_pref.info_prog here. |
|
7768 |
|
7769 * octave.cc (initialize_globals): Put arch_dir and bin_dir ahead |
|
7770 of shell_path when resetting PATH. |
|
7771 |
|
7772 Thu Nov 2 04:30:13 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7773 |
|
7774 * f-rand.cc (Frandn): New function. |
|
7775 (do_initialization): New function. |
|
7776 (do_rand): New function for doing the real work. |
|
7777 (Frand): Use it. |
|
7778 |
|
7779 * octave.cc (parse_and_execute): New arg, warn_for. If given, |
|
7780 print message if file cannot be opened. |
|
7781 Set curr_fcn_file_full_name here. |
|
7782 (Fsource): Pass extra arg to parse_and_execute to get warning message. |
|
7783 |
|
7784 * tree-const.h: Handle line and column info for double, Complex, |
|
7785 and char* constants. |
|
7786 |
|
7787 * parse.y (maybe_convert_to_ans_assign): Pass along line and |
|
7788 column info from expression. |
|
7789 |
|
7790 * parse.y (make_constant): New function. |
|
7791 (simple_expr1, word_list): Use it. |
|
7792 |
|
7793 * input.cc, input.h (curr_fcn_file_full_name): New global. |
|
7794 * variables.cc (load_fcn_from_file): Set it here. |
|
7795 * parse.y (func_def2, yyerror, maybe_warn_missing_semi): Use it. |
|
7796 (func_def2): If !reading_fcn_file, don't call strcmp if |
|
7797 curr_fcn_file_name is 0. |
|
7798 |
|
7799 * octave.cc (Fsource): New function. |
|
7800 (parse_and_execute): Declare file name const char *. |
|
7801 * input.cc (get_input_from_file): Likewise. |
|
7802 |
|
7803 Wed Nov 1 13:54:34 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7804 |
|
7805 * f-filter.cc: New file. |
|
7806 * Makefile.in (DLD_SRC): Add it to the list. |
|
7807 |
|
7808 * sysdep.h (gethostname): Change declaration to match definition |
|
7809 in sysdep.cc. |
|
7810 |
|
7811 * resource.cc: Include sysdep.h here, for octave_NaN. |
|
7812 |
|
7813 Tue Oct 31 02:12:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7814 |
|
7815 * tree-const.cc (TC_REP::assign): After converting rhs to a |
|
7816 numeric type, use the converted value, not the original. |
|
7817 |
|
7818 * dirfns.cc (Fpwd): If nargout == 0, print the directory name |
|
7819 instead of returning it. |
|
7820 |
|
7821 * pager.cc (maybe_page_output): Call maybe_write_to_diary_file here. |
|
7822 (flush_output_to_pager): Not here. |
|
7823 |
|
7824 Mon Oct 30 23:39:43 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7825 |
|
7826 * variables.cc (install_builtin_commands): Add DEFVAR for |
|
7827 echo_executing_commands. |
|
7828 |
|
7829 * octave-hist.cc (do_edit_history): Handle new echo stuff. |
|
7830 * variables.cc (parse_fcn_file): Likewise. |
|
7831 * octave.cc (parse_and_execute): Likewise. |
|
7832 (main): Likewise. |
|
7833 * input.cc (do_input_echo): |
|
7834 (Fecho): New function. |
|
7835 |
|
7836 * tree-expr.cc (tree_function::print_code_function_header, |
|
7837 tree_function::print_code_function_trailer): New functions. |
|
7838 (tree_function::print_code): Use them. |
|
7839 (tree_function::eval): Likewise, if echoing commands. |
|
7840 * tree-misc.cc (tree_statement::maybe_echo_code): New function. |
|
7841 |
|
7842 * user-prefs.h (user_preferences): New field, echo_executing_commands. |
|
7843 (echo_state): New enum, for various types of echoing we do. |
|
7844 * user-prefs.cc (echo_executing_commands): New function. |
|
7845 |
|
7846 * tree-base.cc (print_code_indent): Print PS4 as line prefix. |
|
7847 * help.cc (Ftype): Add unwind_protect for ps4 and set it to "" |
|
7848 before printing code. |
|
7849 |
|
7850 * tree-misc.h (tree_statement_list): New field, function_body. |
|
7851 (tree_statement_list::mark_as_function_body): New function. |
|
7852 * parse.y (func_def3): Mark function bodies. |
|
7853 |
|
7854 * pr-output.cc (octave_print_internal): Undo string escapes when |
|
7855 printing charMatrix as strings. |
|
7856 |
|
7857 Sat Oct 28 17:38:29 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7858 |
|
7859 * utils.h (undo_string_escapes): Add missing const in declaration. |
|
7860 |
|
7861 Fri Oct 27 03:49:44 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7862 |
|
7863 * file-io.cc (next_available_file_number): New stack for keeping |
|
7864 track of next available file number. |
|
7865 (get_next_avail_file_num): New function. |
|
7866 (fopen_file_for_user, fopen_internal, popen_internal, |
|
7867 execute_internal): Use it. |
|
7868 |
|
7869 Mon Oct 23 07:00:09 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7870 |
|
7871 * tree-const.cc (TC_REP::convert_to_matrix_type, |
|
7872 tree_constant::convert_to_matrix_type): New arg, make_complex. |
|
7873 (TC_REP::set_index): New arg, rhs_is_complex. Pass it to |
|
7874 convert_to_matrix_type. |
|
7875 (TC_REP::assign): Pass rhs.is_complex_type() to set_index. |
|
7876 |
|
7877 Thu Oct 19 00:38:38 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7878 |
|
7879 * xpow.cc: Include <climits>. |
|
7880 |
|
7881 * sysdep.cc (Fpause): Do pause even if not interactive. |
|
7882 |
|
7883 * tree-const.cc (TC_REP::assign): Don't make RHS numeric if both |
|
7884 RHS and LHS are strings. |
|
7885 |
|
7886 Wed Oct 18 22:19:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7887 |
|
7888 * f-expm.cc (Fexpm): Avoid taking log of negative number. Also, |
|
7889 don't unnecessarily divide the input matrix by 1.0. |
|
7890 |
|
7891 * input.cc (decode_prompt_string): Recognize \[ and \] too. |
|
7892 (initialize_readline): Bind M-p to history-search-backward and M-n |
|
7893 to history-search-forward. |
|
7894 |
|
7895 Tue Oct 17 04:31:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7896 |
|
7897 * xpow.cc (xpow): Handle integer powers better for complex^double. |
|
7898 (elem_xpow): Likewise. |
|
7899 |
|
7900 * lex.l ({CCHAR}): If nesting_level.top() is BRACE, return ';', |
|
7901 not '\n'. |
|
7902 |
|
7903 Mon Oct 16 19:03:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7904 |
|
7905 * help.cc (Fwhich): Fix doc string. |
|
7906 |
|
7907 * variables.cc (Fexist): Update doc string. |
|
7908 |
|
7909 Sun Oct 15 22:19:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7910 |
|
7911 * Another massive set of changes to support character matrices |
|
7912 with indexing. The Octave_str_object class is no longer used. |
|
7913 Anything having to do with Octave_str_object in the following |
|
7914 files has been changed to use charMatrix instead: octave.h, |
|
7915 load-save.cc, octave.cc, strfns.cc, data.cc, pr-output.h, |
|
7916 pr-output.cc, tree-const.h, dirfns.cc, tree-const.cc, |
|
7917 tree-expr.cc. |
|
7918 |
|
7919 Sat Oct 14 22:28:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7920 |
|
7921 * f-sort.cc (mx_sort): Don't attempt to sort vectors that have |
|
7922 only one element, or matrices that have only one row. |
|
7923 |
|
7924 Thu Oct 12 02:16:58 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7925 |
|
7926 * mappers.cc (install_mapper_functions): Add gammaln as an alias |
|
7927 for lgamma. |
|
7928 |
|
7929 * tree-const.h, tree-const.cc: Massive overhaul of indexing and |
|
7930 indexed assignment functions. |
|
7931 * tc-inlines.h, tc-rep.h: Remove files. |
|
7932 * Makefile.in: Remove mention of them here too. |
|
7933 |
|
7934 * Makefile.in: Include $(TI_SRC) in DEP_SOURCES_3, not |
|
7935 $(TI_SOURCES). |
|
7936 Include $(DLD_SRC) in DEP_SOURCES_3. |
|
7937 Include $(TI_SRC) in DEF_FILES_5. |
|
7938 |
|
7939 Wed Oct 11 01:26:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7940 |
|
7941 * Makefile.in (INCLUDES): Remove tc-inlines.h and tc-rep.h from |
|
7942 the list. |
|
7943 |
|
7944 Mon Oct 9 08:31:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7945 |
|
7946 * lex.l (next_token_is_bin_op): Do match `.+', `.*', etc. |
|
7947 |
|
7948 Sun Oct 8 18:19:56 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7949 |
|
7950 * idx-vector.h, idx-vector.cc: Delete files. |
|
7951 * Makefile.in (SOURCES, INCLUDES): Remove them from lists. |
|
7952 |
|
7953 Fri Oct 6 00:52:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7954 |
|
7955 * f-svd.cc (Fsvd): If nargout == 0 or nargout == 1, don't ask for |
|
7956 U and V. |
|
7957 |
|
7958 Wed Oct 4 00:04:57 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7959 |
|
7960 * f-npsol.cc (Fnpsol, Fnpsol_options): Avoid unused variable |
|
7961 warnings if NPSOL_MISSING. |
|
7962 * f-qpsol.cc (Fqpsol, Fqpsol_options): Likewise for QPSOL_MISSING. |
|
7963 |
|
7964 * Makefile.in (DISTFILES): Add octave.gperf. |
|
7965 |
|
7966 * lex.l (next_token_is_bin_op): Don't ever return true for `.' |
|
7967 since that causes problems with things like [ .1 .1 ]. |
|
7968 |
|
7969 Tue Oct 3 05:30:24 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7970 |
|
7971 * variables.cc (is_valid_function): Avoid setting error_state if |
|
7972 argument is not a string. |
|
7973 |
|
7974 * parse.y (maybe_warn_missing_semi): New function. |
|
7975 (list1, list): Call it if statement not terminated by semicolon. |
|
7976 * tree-misc.h (tree_statement::line, tree_statement::column): |
|
7977 New functions. |
|
7978 * octave.cc (input_from_command_line_file): New global variable. |
|
7979 (main): Set it. |
|
7980 (parse_and_execute): Unwind-protect it and set it to zero. |
|
7981 (eval_string): Likewise. |
|
7982 * variables.cc (parse_fcn_file): Likewise. |
|
7983 |
|
7984 * user-prefs.cc (warn_missing_semicolon): New function. |
|
7985 * user-prefs.h (user_preferences): New field, warn_missing_semicolon. |
|
7986 * variables.cc (install_builtin_variables): DEFVAR it. |
|
7987 |
|
7988 * tree-expr.cc (tree_expression::is_logically_true): Actually use |
|
7989 argument. |
|
7990 |
|
7991 Mon Oct 2 19:55:48 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7992 |
|
7993 * variables.cc (install_builtin_variables): Reduce the default |
|
7994 value of save_precision to 15. |
|
7995 |
|
7996 * variables.cc (builtin_real_scalar_variable): Return 1 for |
|
7997 success, 0 for failure. |
|
7998 |
|
7999 * user-prefs.cc (struct_levels_to_print, set_save_precision, |
|
8000 set_output_max_field_width, set_output_precision): |
|
8001 Change sense of test for builtin_real_scalar_variable return value. |
|
8002 (check_preference): Rename from check_str_pref. Change all callers. |
|
8003 Accept value of 0 to be the same as "false" and nonzero to be the |
|
8004 same as "true". |
|
8005 Delete val to avoid memory leak. |
|
8006 * variables.cc (install_builtin_variables): Change initial values |
|
8007 from "true" to 1, "false" to 0. |
|
8008 |
|
8009 * variables.cc (install_builtin_variables): Add DEFVAR for |
|
8010 gnuplot_has_multiplot. |
|
8011 |
|
8012 * user-prefs.h (user_preferences): New field, |
|
8013 `gnuplot_has_multiplot'. |
|
8014 * user-prefs.cc (init_user_prefs): Initialize it. |
|
8015 (gnuplot_has_multiplot): New function. |
|
8016 |
|
8017 Sat Sep 30 16:52:57 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8018 |
|
8019 * oct-gperf.h, octave.gperf: Newfiles. |
|
8020 * Makefile.in (DISTFILES): Add octave.gperf. |
|
8021 (INCLUDES): Add oct-gperf.h. |
|
8022 (oct-gperf.h): New rule. |
|
8023 (local-dist, dist): Depend on oct-gperf.h. |
|
8024 * lex.l (is_keyword): Use perfect hash function to lookup |
|
8025 keywords. |
|
8026 |
|
8027 Fri Sep 29 04:36:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8028 |
|
8029 * version.h (OCTAVE_NAME_AND_VERSION): Add TARGET_HOST_TYPE to this. |
|
8030 |
|
8031 Thu Sep 28 00:03:51 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8032 |
|
8033 * tree-expr.cc (tree_expression::is_logically_true): New function. |
|
8034 * tree-cmd.cc (tree_while_command::eval): Use it instead of |
|
8035 handling the test directly here. |
|
8036 * tree-misc.cc (tree_if_clause::eval): Likewise |
|
8037 |
|
8038 * tree-const.cc (TC_REP::force_numeric): Don't try to print value |
|
8039 of str_obj with %s. |
|
8040 |
|
8041 * error.cc (buffer_error_messages): Rename from |
|
8042 suppress_octave_error_messages. |
|
8043 (error_message_buffer): New global variable. |
|
8044 (verror): Handle buffering of messages. |
|
8045 (handle_message): New function. |
|
8046 (Ferror, Fwarning, Fusage): Use it instead of duplicating code. |
|
8047 |
|
8048 * octave.cc (Feval): Buffer error messages instead of supressing them. |
|
8049 |
|
8050 * lex.l (is_keyword): Recognize `try', `catch', and `end_try_catch'. |
|
8051 * parse.y (TRY, CATCH): New tokens. |
|
8052 (command): Recognize try-catch block. |
|
8053 (end_error): Add cases for unwind_protect_end and try_catch_end. |
|
8054 * token.h (end_tok_type): New field, try_catch_end. |
|
8055 * tree-cmd.h, tree-cmd.cc (tree_try_catch): New class. |
|
8056 * variables.cc (bind_global_error_variable): New Function. |
|
8057 (clear_global_error_variable): Likewise. |
|
8058 (install_builtin_variables): Add DEFCONST for __error_text__. |
|
8059 * help.cc (keywords): Add `try', `catch', and `end_try_catch'. |
|
8060 |
|
8061 * tree-cmd.cc (tree_unwind_protect::eval): Undo previous change. |
|
8062 |
|
8063 * dirfns.cc (Freaddir, Fmkdir, Frmdir): |
|
8064 Do tilde expansion on the argument. |
|
8065 |
|
8066 Tue Sep 26 00:10:29 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8067 |
|
8068 * f-dassl.cc, f-fsolve.cc, f-lsode.cc, f-npsol.cc, f-quad.cc: |
|
8069 Don't try to figure out if the user-supplied functions take the |
|
8070 correct number of arguments. Simply let the call fail. |
|
8071 * variables.cc (takes_correct_nargs): Delete unused function. |
|
8072 * tree-expr.cc (tree_builtin::eval): Don't complain for too many |
|
8073 arguments to mapper functions. |
|
8074 * tree-expr.h, tree-expr.cc (tree_builtin, tree_function, tree_fvc): |
|
8075 Delete unused function max_expected_args. |
|
8076 |
|
8077 * defun.h (DEFUN): Delete unnecessary args nargin_min and nargout_max. |
|
8078 New arg unused_arg_flags. |
|
8079 (DEFUN_TEXT): Likewise. |
|
8080 * defun-dld.h (DEFUN_DLD_BUILTIN): Likewise. |
|
8081 * defun-int.h (DEFUN_INTERNAL, DECLARE_FUN, DEFINE_FUN_STRUCT): |
|
8082 Do the real work. |
|
8083 |
|
8084 * data.cc, dirfns.cc, dynamic-ld.cc, error.cc, f-balance.cc, |
|
8085 f-chol.cc, f-colloc.cc, f-dassl.cc, f-det.cc, f-eig.cc, f-expm.cc, |
|
8086 f-fft.cc, f-fft2.cc, f-find.cc, f-fsolve.cc, f-fsqp.cc, |
|
8087 f-givens.cc, f-hess.cc, f-ifft.cc, f-ifft2.cc, f-inv.cc, f-log.cc, |
|
8088 f-lpsolve.cc, f-lsode.cc, f-lu.cc, f-minmax.cc, f-npsol.cc, |
|
8089 f-pinv.cc, f-qpsol.cc, f-qr.cc, f-quad.cc, f-qzval.cc, f-rand.cc, |
|
8090 f-schur.cc, f-sort.cc, f-svd.cc, f-syl.cc, file-io.cc, help.cc, |
|
8091 input.cc, lex.l, load-save.cc, mappers.cc, octave-hist.cc, |
|
8092 octave.cc, octave.h, pager.cc, pr-output.cc, resource.cc, |
|
8093 sighandlers.cc, strfns.cc, sysdep.cc, timefns.cc, token.cc, |
|
8094 tree-const.cc, tree-expr.cc, tree-expr.h, tree-plot.cc, |
|
8095 unwind-prot.cc, unwind-prot.h, utils.cc, variables.cc, |
|
8096 variables.h, version.h, xdiv.cc: |
|
8097 Avoid unused variable warnings. |
|
8098 |
|
8099 * tree-expr.h (tree_oct_obj::print_value (ostream&)): |
|
8100 Delete name of unused arg. |
|
8101 (tree_fvc::save (ostream&, int, int): Likewise. |
|
8102 |
|
8103 * tree-const.h (tree_constant::tree_constant (magic_colon)): |
|
8104 Delete name of unused arg. |
|
8105 (tree_constant::tree_constant (all_va_args)): Likewise |
|
8106 (ColumnVector vector_value (int, int)): Likewise. |
|
8107 (ComplexColumnVector vector_value (int, int)): Likewise. |
|
8108 (Octave_object::eval (int, int, const Octave_object&): Likewise. |
|
8109 |
|
8110 * octave.cc (execute_startup_files): Look for octaverc first in |
|
8111 site/m, then in $(version)/m. |
|
8112 * variables.cc (get_local_site_defaults): New function. |
|
8113 * defaults.h.in (OCTAVE_LOCALFCNFILEDIR, OCTAVE_LOCALSTARTUPFILEDIR): |
|
8114 New macros. |
|
8115 * Makefile.in (defaults.h): Also substitute ${localfcndir}. |
|
8116 |
|
8117 Mon Sep 25 17:01:03 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8118 |
|
8119 * variables.cc (install_builtin_variables): Add DEFCONST for "e". |
|
8120 |
|
8121 Fri Sep 22 02:18:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8122 |
|
8123 * dirfns.cc (Fls): Delete ls_command after using it, not before. |
|
8124 |
|
8125 * input.h, input.cc (gnu_readline): Don't declare gnu_readline |
|
8126 `extern "C"'. |
|
8127 |
|
8128 * sysdep.h: Only declare gethostname if it is missing, then don't |
|
8129 declare it `extern "C"'. |
|
8130 |
|
8131 * dirfns.cc: Don't declare strerror(). |
|
8132 |
|
8133 * input.cc (command_generator): Use malloc, not xmalloc. Don't |
|
8134 declare xmalloc. |
|
8135 (gnu_readline): Don't declare this `extern "C"'. |
|
8136 |
|
8137 * octave-hist.cc: Don't declare history_get(). It is now in |
|
8138 readline/history.h. |
|
8139 |
|
8140 * input.cc: Don't declare history_get(). It is now in |
|
8141 readline/readline.h. |
|
8142 |
|
8143 * resource.cc: Don't surround include of sys/resource.h in |
|
8144 `extern "C" { }'. |
|
8145 |
|
8146 * fnmatch.h [__cplusplus]: Surround contents in `extern "C" { }'. |
|
8147 * load-save.cc, symtab.cc, variables.cc: Don't surround |
|
8148 fnmatch.h include in `extern "C" { }'. |
|
8149 |
|
8150 * help.cc: Don't #undef __FUNCTION_DEF before including |
|
8151 readline/tilde.h. |
|
8152 |
|
8153 * dirfuns.cc, file-io.cc, help.cc, load-save.cc, octave-hist.cc, |
|
8154 sysdep.cc, tree-plot.cc, utils.cc, variables.cc: |
|
8155 Don't surround readline includes in `extern "C" { }'. |
|
8156 |
|
8157 * sysdep.cc: Move all include statements to top of file. |
|
8158 |
|
8159 Tue Sep 19 01:58:21 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8160 |
|
8161 * octave.cc (Fsystem): Use iprocstream *, and unwind_protect it. |
|
8162 * pager.cc (flush_output_to_pager): Likewise. |
|
8163 * dirfns.cc (Fls): Likewise. |
|
8164 * tree-plot.cc (plot_stream): Now a pointer. |
|
8165 (open_plot_stream): Deal with it. |
|
8166 (send_to_plot_stream, cleanup_tmp_files, do_external_plotter_cd): |
|
8167 Likewise. |
|
8168 |
|
8169 * procstream.cc (cleanup_iprocstream, cleanup_oprocstream): |
|
8170 New functions. |
|
8171 |
|
8172 * procstream.h, procstream.cc (class iprocstream, class oprocstream): |
|
8173 Keep track of pbuf. Initialize it to 0 in default constructors, |
|
8174 delete it in destructor. Don't call close in destructor. |
|
8175 |
|
8176 * sighandlers.cc (octave_set_signal_handler): New function. |
|
8177 Use this name instead of signal everywhere. |
|
8178 * help.cc (try_info): Likewise. |
|
8179 * pager.cc (flush_output_to_pager): Likewise. |
|
8180 * octave.cc (main): Likewise. |
|
8181 * octave-hist.cc (do_edit_history): Likewise. |
|
8182 |
|
8183 * input.cc (initialize_readline): Set rl_paren_string_delimiters |
|
8184 to avoid treating single quotes as string delimiters when doing |
|
8185 paren matching. |
|
8186 |
|
8187 * Makefile.in (SOURCES): Don't list Map.cc or SLStack.cc here. |
|
8188 |
|
8189 * tree-const.cc: Do include utils.h. |
|
8190 |
|
8191 * sysdep.cc: Don't surround terminal includes in extern "C". |
|
8192 Include them before readline.h. |
|
8193 |
|
8194 * Map.h: Don't include utils.h. |
|
8195 (CHNode::CHNode (const char*, const C&, CHNode *t): |
|
8196 Do strsave() inline. |
|
8197 |
|
8198 * input.cc (generate_possible_completions): Generate name list |
|
8199 even when text == 0. |
|
8200 (operate_and_get_next): Don't declare history_stifled, call |
|
8201 history_is_stifled () instead. |
|
8202 Don't declare history_length, or max_input_history either. |
|
8203 Check (where >= history_length - 1) too, as in recent versions of |
|
8204 bash. |
|
8205 |
|
8206 * user-prefs.h (user_prefs): New field, `completion_append_char'. |
|
8207 * user-prefs.cc (init_user_prefs): Initialize it. |
|
8208 (sv_completion_append_char): New function. |
|
8209 * variables.cc (install_builtin_variables): Install |
|
8210 completion_append_char. |
|
8211 * input.cc (command_generator): Use it. |
|
8212 |
|
8213 * SLList-expr.cc, SLList-misc.cc, SLList-plot.cc, SLList-tc.cc, |
|
8214 DLList-fi.cc: Include config.h. |
|
8215 * DLList-fi.cc: Include file-info.h, not file-io.h. |
|
8216 |
|
8217 Mon Sep 18 11:01:24 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8218 |
|
8219 * octave.h (clean_up_and_exit): Tag with NORETURN instead of using |
|
8220 typedef trick. |
|
8221 * error.h (panic): Likewise. |
|
8222 * utils.h (jump_to_top_level): Likewise. |
|
8223 |
|
8224 * file-io.h: Protect from multiple includes with octave_file_io, |
|
8225 not octave_files. |
|
8226 |
|
8227 * file-info.h (class file_info): Convert to using std C++ string |
|
8228 class from char *. |
|
8229 * file-info.cc: Likewise. Don't include utils.h. |
|
8230 * file-io.cc (return_valid_file, fopen_file_for_user, |
|
8231 fflush_internal, do_scanf): Use operator ==, not strcmp. |
|
8232 (close_files): Call error with file.name ().data (), |
|
8233 not file.name (). |
|
8234 (freport_internal): Call form with file.mode ().data () and |
|
8235 file.name ().data (). |
|
8236 |
|
8237 * file-io.cc, file-io.h: Extract file_info class. |
|
8238 * file-info.cc, file-info.h: New files for file_info class. |
|
8239 |
|
8240 * user-prefs.h (user_prefs): New field, `beep_on_error'. |
|
8241 * user-prefs.cc (init_user_prefs): Initialize it. |
|
8242 (beep_on_error): New function. |
|
8243 * variables.cc (install_builtin_variables): Install beep_on_error. |
|
8244 * octave.cc (maximum_braindamage): Set beep_on_error to "true". |
|
8245 * error.cc (verror): Conditionally beep. |
|
8246 (error): Don't reset error_state until after verror is called. |
|
8247 |
|
8248 Sun Sep 17 16:41:25 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8249 |
|
8250 * load-save.cc (read_mat_binary_data, read_ascii_data, |
|
8251 save_ascii_data, read_binary_data, save_binary_data): |
|
8252 Handle string arrays. |
|
8253 |
|
8254 Fri Sep 15 00:24:19 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8255 |
|
8256 * user-prefs.cc (struct_levels_to_print, |
|
8257 set_output_max_field_width, set_output_precision, |
|
8258 set_save_precision): Eliminate unecessary kludge variable. |
|
8259 |
|
8260 * variables.cc (gobble_leading_white_space): New arg, |
|
8261 in_parts. Change all callers. |
|
8262 |
|
8263 * lex.l (HELP_FCN): Delete start state. The `help' command is now |
|
8264 handled the same as any other text-style function. |
|
8265 |
|
8266 * gripes.cc (gripe_invalid_value_specified): New function |
|
8267 * user-prefs.cc: Use it. |
|
8268 |
|
8269 * sysdep.cc (octave_words_big_endian): New global variable. |
|
8270 (ten_little_endians): New function. |
|
8271 (sysdep_init): Call it. |
|
8272 * load-save.cc (words_big_endian): Use this at run-time instead of |
|
8273 depending on WORDS_BIGENDIAN at compile-time. |
|
8274 |
|
8275 * symtab.h (SYMTAB_VARIABLES): New macro. |
|
8276 * variables.cc (Fclear): Use it instead of just |
|
8277 symbol_def::USER_VARIABLE when looking for variables. |
|
8278 |
|
8279 * octave.cc (main): If there is a file to execute, set |
|
8280 program_invocation_name and program_name to the name of the file |
|
8281 and argv to the remaining args. |
|
8282 (intern_argv): Only define argv if there are some remaining |
|
8283 arguments. |
|
8284 |
|
8285 * defun.h (DEFVAR_INT): New macro. |
|
8286 (DEFVAR): Define in terms of DEFVAR_INT. Delete args protect and |
|
8287 eternal. |
|
8288 (DEFCONST): New macro. |
|
8289 * variables.cc (install_builtin_variables): Use DEFCONST where |
|
8290 appropriate, change uses of DEFVAR to match new definition. |
|
8291 |
|
8292 * variables.cc (bind_builtin_variable): New variant that accepts |
|
8293 const tree_constant& value. |
|
8294 (install_builtin_variables): Properly alphabetize DEFVAR for this. |
|
8295 |
|
8296 * octave.cc (short_opts): Prefix with `+' to prevent argv |
|
8297 permutation. |
|
8298 (main): Don't use readline if forced_interactive. |
|
8299 (traditional): New file-scope variable. |
|
8300 (long_opts, usage_string, verbose_usage): Add `--traditional'. |
|
8301 (maximum_braindamage): New function. |
|
8302 (main): Call it if --traditional. |
|
8303 |
|
8304 * input.cc (do_input_echo): Print prompt correctly when |
|
8305 forced_interactive is either true or false. |
|
8306 |
|
8307 Thu Sep 14 00:54:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8308 |
|
8309 * data.cc (Fstruct_elements): New function. |
|
8310 |
|
8311 * file-io.cc (Fumask): New function. |
|
8312 |
|
8313 * dirfns.cc (Fmkdir, Frmdir, Frename): New functions. |
|
8314 |
|
8315 * Makefile.in: Add rules and dependencies for building safe-stat.o |
|
8316 and safe-lstat.o. |
|
8317 |
|
8318 * mkdir.c, rename.c, rmdir.c: New files. |
|
8319 * Makefile.in (SOURCES): Include them in the list. |
|
8320 |
|
8321 * safe-xstat.hin, safe-xstat.cin: New files |
|
8322 * Makefile.in (DISTFILES): Include them in the list. |
|
8323 |
|
8324 * sighandlers.cc (octave_new_handler): Try to continue on memory |
|
8325 exhausted errors. |
|
8326 (sigfpe_handler): Improve error message. |
|
8327 |
|
8328 * Makefile.in: Use `ifndef omit_deps', not `ifndef $(omit_deps)'. |
|
8329 |
|
8330 * dirfns.cc (Freaddir): New function. |
|
8331 |
|
8332 * f-sort.cc: Complete rewrite. Now uses stable sort algorithm and |
|
8333 correctly handles complex matrices containing columns of all real |
|
8334 numbers. |
|
8335 |
|
8336 Wed Sep 13 03:16:40 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8337 |
|
8338 * arith-ops.cc: Unconditionally #define DIVIDE_BY_ZERO_ERROR. |
|
8339 |
|
8340 * variables.cc (install_builtin_variables): Unconditionally |
|
8341 install NaN and nan. |
|
8342 |
|
8343 * mappers.cc (xisinf): Don't do bogus things if isinf, isnan, or |
|
8344 finite are missing. |
|
8345 (xfinite): Likewise. |
|
8346 |
|
8347 * sysdep.cc (octave_ieee_init): Don't set octave_NaN and |
|
8348 octave_Inf if values are not available. |
|
8349 |
|
8350 * resource.cc (mk_ru_map): Don't use ru_ or tv_ as prefixes to |
|
8351 Octave names for the structure members. |
|
8352 |
|
8353 Tue Sep 12 02:04:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8354 |
|
8355 * procstream.h, procstream.cc: Rewrite. |
|
8356 |
|
8357 Mon Sep 11 18:42:05 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8358 |
|
8359 * filemode.c: New file, from Emacs. |
|
8360 * Makefile.in (SOURCES): Add it to the list. |
|
8361 |
|
8362 * file-io.cc (Fstat, Flstat, mk_stat_map): New functions. |
|
8363 |
|
8364 * timefns.cc (mk_tm_map): Don't use tm_ as prefix to Octave names |
|
8365 for these structure members. |
|
8366 (extract_tm): Likewise. |
|
8367 (Flocaltime): Fix doc string to match. |
|
8368 |
|
8369 Thu Sep 7 02:04:27 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8370 |
|
8371 * load-save.cc (save_user_variables): New function. |
|
8372 * sighandlers.cc (my_friendly_exit): Call it before exiting. |
|
8373 (sigfpe_handler): New function. |
|
8374 (install_signal_handlers) [__alpha__]: Install it. |
|
8375 |
|
8376 Wed Sep 6 14:35:10 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8377 |
|
8378 * tree-cmd.cc (tree_unwind_protect::eval): Ignore errors and |
|
8379 suppress error messages while executing first block of |
|
8380 unwind_protect commands. |
|
8381 |
|
8382 * parse.y (end_error): Add missing case for unwind_protect_end. |
|
8383 |
|
8384 * tree-expr.cc (tree_builtin::eval): Complain if no arguments |
|
8385 given for mapper functions. |
|
8386 (tree_fvc::lookup_map_element): Print error message for invalid |
|
8387 structure reference. |
|
8388 |
|
8389 Tue Sep 5 02:04:12 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8390 |
|
8391 * file-io.cc, input.cc, load-save.cc, octave.cc, sysdep.cc, |
|
8392 variables.cc, octave-hist.cc, utils.cc, f-schur.cc, f-rand.cc, |
|
8393 f-quad.cc, f-qpsol.cc, f-npsol.cc, f-lsode.cc, f-fsolve.cc, |
|
8394 f-dassl.cc, f-colloc.cc, f-balance.cc, error.cc, data.cc: |
|
8395 Add const qualifiers where appropriate. |
|
8396 |
|
8397 * dirfns.h: Include <ctime>, for time_t. |
|
8398 |
|
8399 * tempname.c, file-io.cc, help.cc, input.cc, octave-hist.cc, |
|
8400 octave.cc, sighandlers.cc, sysdep.cc, tree-expr.cc, tree-misc.cc, |
|
8401 tree-plot.cc, utils.cc, variables.cc, sysdir.h: |
|
8402 Move #include <sys/type.h> inside #ifdef HAVE_UNISTD_H. |
|
8403 |
|
8404 * syswait.h: New file. |
|
8405 * Makefile.in (INCLUDES): Add it to the list. |
|
8406 * file-io.cc, sighandlers.cc: Use it instead of including |
|
8407 sys/wait.h directly. |
|
8408 |
|
8409 * octave.cc: Include statdefs.h, not sys/stat.h. |
|
8410 |
|
8411 * sysdir.h: New file. |
|
8412 * Makefile.in (INCLUDES): Add it to the list. |
|
8413 * dirfns.cc, utils.cc: Use it instead of including the headers |
|
8414 directly. |
|
8415 |
|
8416 * pathlen.h: New file. |
|
8417 * Makefile.in (INCLUDES): Add it to the list. |
|
8418 * dirfns.cc, input.cc: Use it instead of including sys/param.h |
|
8419 directly. |
|
8420 * utils.cc: Don't include sys/param.h |
|
8421 |
|
8422 Sun Sep 3 18:52:59 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8423 |
|
8424 * tree-const.cc (TC_REP::string_value): Return const char*, not |
|
8425 char *. |
|
8426 |
|
8427 * All .cc, .y, .l, .y files: Include <cctype>, not <ctype.h>, and |
|
8428 so on for all new C++ versions of these standard C headers. |
|
8429 |
|
8430 Thu Aug 31 17:09:38 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8431 |
|
8432 * pathsearch.h: Also hide `string'. |
|
8433 |
|
8434 * oct-str.cc, oct-str.h: New files. |
|
8435 * Makefile.in: Add to the appropriate lists. |
|
8436 * tc-rep.h: Change char* to Octave_string* in anonymous union. |
|
8437 * tree-expr.cc (tree_matrix::eval): Handle multiple element strings. |
|
8438 * strfns.cc (toascii): Likewise. |
|
8439 * tree-const.cc (print_as_string): Likewise. |
|
8440 (TC_REP::force_numeric, TC_REP::rows, TC_REP::columns, |
|
8441 TC_REP::double_value, TC_REP::complex_value, TC_REP::matrix_value, |
|
8442 TC_REP::complex_matrix_value, TC_REP::convert_to_str): Likewise. |
|
8443 (TC_REP::print): Call octave_print_internal for string case. |
|
8444 (all_strings): New function. |
|
8445 Fix constructors to use new data structure. |
|
8446 * pr-output.cc (octave_print_internal): Add version for strings. |
|
8447 * Array-string.cc: New file. |
|
8448 |
|
8449 * octave.cc (octave_argv): New global variable. |
|
8450 (intern_argv): New function. |
|
8451 (main): Fix argument parsing to do the right thing for arguments |
|
8452 to executable scripts. |
|
8453 * variables.cc: Add DEFUNs for argv, program_invocation_name, and |
|
8454 program_name. |
|
8455 |
|
8456 * defun.h (DEFVAR): Fix comment. |
|
8457 |
|
8458 Thu Aug 24 00:02:00 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8459 |
|
8460 * file-io.cc (fgets_internal): Make second arg optional. Add |
|
8461 optional arg `strip_final_newline'. |
|
8462 (Ffgets): Change to match new definition of fgets_internal. |
|
8463 (Ffgetl): Implement using the new fgets_internal. |
|
8464 |
|
8465 * f-rand.cc (Frand): Update code for sizing return value to match |
|
8466 that used by ones, zeros, and eye. |
|
8467 |
|
8468 Wed Aug 23 19:52:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8469 |
|
8470 * tree-const.cc (do_vector_assign): Don't crash for |
|
8471 A(range) = scalar, or A(matrix) = scalar. |
|
8472 |
|
8473 * f-dassl.cc (set_dassl_option): Rename from do_dassl_option. |
|
8474 (show_dassl_option): New function. |
|
8475 (Fdassl_options): Handle single arg. |
|
8476 * f-fsolve.cc (set_fsolve_option): Rename from do_fsolve_option. |
|
8477 (show_fsolve_option): New function. |
|
8478 (Ffsolve_options): Handle single arg. |
|
8479 * f-fsqp.cc (set_fsqp_option): Rename from do_fsqp_option. |
|
8480 (show_fsqp_option): New function. |
|
8481 (Ffsqp_options): Handle single arg. |
|
8482 * f-lpsolve.cc (set_lpsolve_option): Rename from do_lpsolve_option. |
|
8483 (show_lpsolve_option): New function. |
|
8484 (Flpsolve_options): Handle single arg. |
|
8485 * f-lsode.cc (set_lsode_option): Rename from do_lsode_option. |
|
8486 (show_lsode_option): New function. |
|
8487 (Flsode_options): Handle single arg. |
|
8488 * f-npsol.cc (set_npsol_option): Rename from do_npsol_option. |
|
8489 (show_npsol_option): New function. |
|
8490 (Fnpsol_options): Handle single arg. |
|
8491 * f-qpsol.cc (set_qpsol_option): Rename from do_qpsol_option. |
|
8492 (show_qpsol_option): New function. |
|
8493 (Fqpsol_options): Handle single arg. |
|
8494 * f-quad.cc: (set_quad_option): Rename from do_quad_option. |
|
8495 (show_quad_option): New function. |
|
8496 (Fquad_options): Handle single arg. |
|
8497 (Fquad): Doc fix. |
|
8498 |
|
8499 Tue Aug 22 00:38:05 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8500 |
|
8501 * tree-plot.cc (do_external_plotter_cd): New function. |
|
8502 * dirfns.cc (octave_change_to_directory): New function. If cd is |
|
8503 successful, also call do_external_plotter_cd(). |
|
8504 (Fcd): Call octave_change_to_directory(), not change_to_directory(). |
|
8505 |
|
8506 * pr-output.cc (pr_any_float): Change declaration of counter to |
|
8507 size_t to avoid gcc warnings. |
|
8508 |
|
8509 * idx-vector.cc, octave-hist.cc, tree-const.cc, tree-expr.cc, |
|
8510 tree-misc.cc, utils.cc, xpow.cc, Map.cc: |
|
8511 Update for change in for loop variable scope for gcc 2.7.0. |
|
8512 |
|
8513 Mon Aug 21 19:34:53 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8514 |
|
8515 * tree-const.cc (fortran_style_matrix_assignment): Properly handle |
|
8516 case of complex LHS, real RHS. |
|
8517 |
|
8518 * Makefile.in: Only include dependency files if $(omit_deps) is |
|
8519 not set. |
|
8520 |
|
8521 Wed Jul 5 00:03:58 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8522 |
|
8523 * sysdep.cc: Explicitly include string.h. |
|
8524 |
|
8525 Sun Jun 25 00:18:10 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8526 |
|
8527 * load-save.cc (too_large_for_float (const Matrix&)): |
|
8528 Extract elements as doubles, not Complex. |
|
8529 |
|
8530 Sat Jun 24 22:59:15 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8531 |
|
8532 * pr-output.cc (any_element_is_inf_or_nan): Declare extern, not static. |
|
8533 * f-svd.cc (Fsvd): Call here to avoid trying to take SVD of matrix |
|
8534 containing Inf or NaN values. |
|
8535 |
|
8536 * pr-output.cc (bit_format): New file-scope variable. |
|
8537 (set_format, pr_any_float): Handle bit_format. |
|
8538 (octave_print_internal): Handle bit_format like bank_format. |
|
8539 (init_format_state): Initialize bit_format. |
|
8540 (set_format_style): Allow `format bit' and `format native-bit'. |
|
8541 |
|
8542 Thu Jun 8 15:20:26 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8543 |
|
8544 * mappers.cc (arg, imag, signum): If arg is NaN, return NaN. |
|
8545 |
|
8546 Mon May 15 14:47:04 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8547 |
|
8548 * pager.cc (Fdiary): Initialize diary_file here, not in the |
|
8549 file-scope declaration. |
|
8550 |
|
8551 * tree-expr.cc (tree_index_expression::eval): |
|
8552 Handle nargin == 0 the same as other cases. |
|
8553 |
|
8554 Tue May 2 10:02:23 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8555 |
|
8556 * load-save.cc (do_double_format_conversion): Add missing breaks. |
|
8557 (do_float_format_conversion): Likewise. |
|
8558 |
|
8559 Mon May 1 13:50:24 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8560 |
|
8561 * Makefile.in (OCTAVE_LIBS): Add @LIBPLPLOT@ to the list. |
|
8562 |
|
8563 * timefns.cc (Ftime): Handle GETTIMEOFDAY_NO_TZ. |
|
8564 |
|
8565 * Makefile.in (SOURCES): Delete tc-rep.cc, tc-rep-ass.cc, and |
|
8566 tc-rep-idx.cc from the list. |
|
8567 |
|
8568 * tree-const.h: Add #pragma interface. |
|
8569 * tree-const.cc: Add contents of tc-rep.cc, tc-rep-ass.cc, and |
|
8570 tc-idx.cc to this file. Add #pragma implementation. This makes |
|
8571 tree-const.cc large, but makes the final binary smaller. |
|
8572 |
|
8573 * unwind-prot.h unwind-prot.cc token.cc token.h procstream.cc |
|
8574 procstream.h idx-vector.cc idx-vector.h symtab.cc symtab.h |
|
8575 oct-map.cc oct-map.h oct-obj.cc oct-obj.h tree-plot.h tree-plot.cc |
|
8576 tree-misc.cc tree-misc.h tree-expr.cc tree-expr.h tree-cmd.cc |
|
8577 tree-cmd.h tree-base.cc tree-base.h: |
|
8578 Add #pragma interface/implementation. |
|
8579 |
|
8580 * Makefile.in (OCTAVE_LIBS): Delete @LIBINFO@ from list. |
|
8581 * help.cc: Don't include info headers or extern declarations for |
|
8582 functions from info. |
|
8583 (try_info): Call info as a subprocess. Delete second arg. |
|
8584 Handle SIGINT here, not in help_from_info(). |
|
8585 (help_from_info): Complain if info doesn't work. |
|
8586 |
|
8587 * defun-dld.h (DEFUN_DLD_BUILTIN) [OCTAVE_LITE && MAKE_BUILTINS]: |
|
8588 If ! WITH_DLD, simply emit a character string constant. |
|
8589 |
|
8590 Fri Apr 28 15:23:06 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8591 |
|
8592 * lex.l ({IDENT}{S}*): Don't delete tok. That's handled by |
|
8593 strip_trailing_whitespace() now. |
|
8594 (<HELP_FCN>[^ \t\n]*{S}*|<TEXT_FCN>[^ \t\n\;\,]*{S}*): Ditto. |
|
8595 |
|
8596 * pathsearch.h: Include kpathsea/progname.h. |
|
8597 * octave.cc (initialize_globals): Call kpse_set_progname(). |
|
8598 |
|
8599 * token.h: Declare copy constructor and operator = private. |
|
8600 * token.cc: Abort if copy constructor or operator = is used. |
|
8601 |
|
8602 Thu Apr 27 13:54:39 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8603 |
|
8604 * tree-expr.cc (lookup_map_element): Don't list default argument |
|
8605 values here too. |
|
8606 |
|
8607 * pr-output.cc (hex_format): New file-scope variable. |
|
8608 (set_format, pr_any_float): Handle hex_format. |
|
8609 (octave_print_internal): Handle hex_format like bank_format. |
|
8610 (init_format_state): Initialize hex_format. |
|
8611 (set_format_style): Allow `format hex' and `format native-hex'. |
|
8612 |
|
8613 * variables.cc (bind_ans): Create ans_id each time with new and |
|
8614 ask tree_simple_assignment_expression to handle cleaning it up. |
|
8615 This apparently plugs a memory leak. |
|
8616 |
|
8617 * help.cc (Ftype): Don't try to print map constants. Handle |
|
8618 references to structure members. |
|
8619 |
|
8620 Wed Apr 26 12:40:59 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8621 |
|
8622 * input.cc (generate_struct_completions): New function. |
|
8623 (generate_possible_completions): Likewise. |
|
8624 (looks_like_struct): Likewise. |
|
8625 (command_generator): Handle completion of struct variables. |
|
8626 |
|
8627 * tree-expr.h, tree-expr.cc (tree_fvc::lookup_map_element): |
|
8628 Add insert and silent args. |
|
8629 |
|
8630 * oct-map.cc: New file. |
|
8631 * Makefile.in (SOURCES): Add it to the list. |
|
8632 |
|
8633 Mon Apr 24 09:41:02 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8634 |
|
8635 * variables.cc (Fexist): Handle structure references too. |
|
8636 |
|
8637 * tree-const.cc (lookup_map_element (const char*, int, int): |
|
8638 New function. |
|
8639 (lookup_map_element (SLList<char*>&, int, int): New arg, silent. |
|
8640 * tc-rep.cc (lookup_map_element): New arg, silent. If nonzero, |
|
8641 don't call error(). |
|
8642 |
|
8643 * tc-rep.h (is_empty): Define here. |
|
8644 * tree-const.h (is_empty): Hand off to TC_REP::is_empty(). |
|
8645 |
|
8646 * data.cc (Fstruct_contains): Call lookup_map_element on args(0) |
|
8647 instead of extracting the map and calling contains() on it. |
|
8648 |
|
8649 * parse.y (EPLUS, EMINUS): New tokens. |
|
8650 (simple_expr): Handle EPLUS, EMINUS the same as `+' and `-'. |
|
8651 * lex.l (".+", ".-"): New patterns. Match these separately to |
|
8652 disallow using them as unary operators. |
|
8653 |
|
8654 * lex.l (next_token_is_bin_op): Simplify by noting that spacing |
|
8655 only matters for those tokens that can also be unary ops. |
|
8656 |
|
8657 Fri Apr 21 14:34:45 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8658 |
|
8659 * load-save.cc (read_ascii_data): Allow reading of empty |
|
8660 matrices. |
|
8661 |
|
8662 * tc-rep-ass.cc (vector_assignment): Only assert that we are not |
|
8663 doing fortran-style indexing and that nr <= 1 || nc <= 1. |
|
8664 (do_vector_assign): Handle assignment of [] when one dimension is |
|
8665 zero and the other is anything. |
|
8666 |
|
8667 Thu Apr 20 13:56:21 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8668 |
|
8669 * tc-rep-ass.cc (delete_rows, delete_columns): Simply return if |
|
8670 num_to_delete is 0. |
|
8671 |
|
8672 * lex.l (handle_identifier): Don't match plot option keywords |
|
8673 inside parentheses or braces. |
|
8674 |
|
8675 * variables.cc (parse_fcn_file): Also delete tmp_help_txt if |
|
8676 running a script. |
|
8677 |
|
8678 * tree-cmd.h (tree_command): Add destructor. |
|
8679 |
|
8680 * tree-expr.h tree_simple_assignment_expression (lhs_idx_expr): |
|
8681 Hang on to idx_expr, not just its parts so it can be deleted. |
|
8682 (init): Initialize it. |
|
8683 * tree-expr.cc (~tree_simple_assignment_expression): Delete it. |
|
8684 |
|
8685 * tree-expr.h (tree_multi_val_ret, tree_oct_obj, tree_fvc, |
|
8686 tree_identifier, tree_builtin, tree_function): Add destructors. |
|
8687 * tree-expr.cc (tree_function::~tree_function): Delete some stuff. |
|
8688 |
|
8689 * tree-misc.h (tree_va_return_list): Add destructor. |
|
8690 |
|
8691 * octave.cc (__builtin_new, __builtin_delete): Provide our own, |
|
8692 for debugging. |
|
8693 |
|
8694 * utils.cc (strconcat): Don't depend on the return value from |
|
8695 strcat. |
|
8696 (file_in_path): Simplify logic. |
|
8697 |
|
8698 * parse.y (maybe_convert_to_ans_assign): Create ans_id each time |
|
8699 with new and ask tree_simple_assignment_expression to handle |
|
8700 cleaning it up. This apparently plugs a memory leak. |
|
8701 |
|
8702 * lex.l (strip_trailing_whitespace): Declare retval static. |
|
8703 Delete it before saving next string. |
|
8704 |
|
8705 * error.cc (Ferror): Do call error() for empty string args. |
|
8706 (error_1): Don't print anything if fmt is "" or "\n", but do set |
|
8707 the error state appropriately. |
|
8708 |
|
8709 * tree-cmd.cc (tree_unwind_protect::eval): Handle return and break |
|
8710 in the `try' part of the statement. |
|
8711 |
|
8712 Mon Apr 10 19:29:44 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8713 |
|
8714 * f-expm.cc, f-givens.cc, f-qzval.cc, f-syl.cc, f-rand.cc: |
|
8715 Where appropriate, declare Fortran functions to take reference |
|
8716 instead of pointer args. Change callers. |
|
8717 |
|
8718 * mappers.cc: Declare Fortran functions to take reference instead |
|
8719 of pointer args. Change callers. |
|
8720 |
|
8721 * gamma.c, lgamma.c, erfc.c, erf.c, atanh.c, asinh.c, acosh.c: |
|
8722 Declare Fortran functions to take reference instead of pointer |
|
8723 args. |
|
8724 |
|
8725 Sun Apr 9 19:38:53 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8726 |
|
8727 * file-io.cc (Fpopen, Fpclose, Fexecute, Fsync_system, |
|
8728 Fasync_system, Fwaitpid, Fmkfifo, Funlink): New functions. |
|
8729 |
|
8730 * sighandlers.cc (sigchld_handler): New function. |
|
8731 (install_signal_handlers): Add call to install |
|
8732 sigchld_handler. (This is #if 0'd out, waiting for code to help |
|
8733 determine which child exited and what to do about it). |
|
8734 |
|
8735 * tree-expr.h (tree_oct_obj): New class. |
|
8736 |
|
8737 * tree-expr.h (tree_multi_assignment_expression::preserve): New |
|
8738 data member. Add arg with default value to constructors. Change |
|
8739 callers as necessary. |
|
8740 * tree-expr.cc (~tree_multi_assignment_expression): Conditionally |
|
8741 delete lhs. |
|
8742 |
|
8743 * parse.y (make_multi_val_ret): Pass matrix instead of getting it |
|
8744 from the global matrix list. |
|
8745 (expression): Extract matrix from matrix list before calling |
|
8746 make_multi_val_ret(). |
|
8747 |
|
8748 * parse.y (command): Handle new for loop syntax for structures. |
|
8749 |
|
8750 * tree-plot.h (subplot_list): Include tree_print_code() in |
|
8751 initializer lists for constructors. |
|
8752 * tree-expr.h (tree_statement_list, tree_argument_list, |
|
8753 tree_parameter_list, tree_return_list, tree_global_init_list, |
|
8754 tree_if_command_list, ): Likewise. |
|
8755 |
|
8756 * tree-cmd.h (tree_for_command::id_list): New data member. |
|
8757 (tree_for_command (tree_return_list*, tree_expression*, |
|
8758 tree_statement_list*, int, int)): Likewise. |
|
8759 * tree-cmd.cc (tree_for_command::eval): Handle for loops with |
|
8760 structures. |
|
8761 (do_for_loop_once (tree_return_list*, Octave_object&, int&)): |
|
8762 New form for handling for loops with structures. |
|
8763 |
|
8764 * sysdep.cc (octave_ieee_init): Determine floating point format |
|
8765 here. |
|
8766 (native_float_format): New global variable. |
|
8767 (Fisieee): Compute return value from native_float_format, not by |
|
8768 using preprocessor macros. |
|
8769 * sysdep.h (enum floating_point_format): Move declaration here. |
|
8770 * load-save.cc: From here. |
|
8771 Always define all floating point format conversion routines. |
|
8772 (do_double_format_conversion, do_float_format_conversion): |
|
8773 Use native_float_format instead of preprocessor macros. |
|
8774 |
|
8775 Sat Apr 8 15:41:35 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8776 |
|
8777 * Makefile (TEMPLATE_SRC): New variable. |
|
8778 (DISTFILES): Add $(TEMPLATE_SRC). |
|
8779 (SOURCES): Delete Map.cc and SLStack.cc from here. |
|
8780 |
|
8781 * variables.cc (install_builtin_variables): Use OCTAVE_VERSION |
|
8782 instead of version_string to initialize OCTAVE_VERSION. |
|
8783 * version.h (version_string): Delete. |
|
8784 |
|
8785 * getopt.c (_getopt_internal): Initialize indfound to avoid warning. |
|
8786 |
|
8787 Fri Apr 7 15:29:41 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8788 |
|
8789 * tc-inlines.h (REP_RHS_MATRIX): Just check to see if tc is real |
|
8790 or complex. If conversion fails, return. |
|
8791 |
|
8792 Thu Apr 6 00:10:47 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8793 |
|
8794 * data.cc (Fstruct_contains): New function. |
|
8795 |
|
8796 * tc-rep.cc (print_code): Add extra parens around while condition |
|
8797 to avoid warning. |
|
8798 * utils.cc (undo_string_escapes): Likewise. |
|
8799 * input.cc (decode_prompt_string): Likewise. Also rewrite if |
|
8800 statement to avoid warning. |
|
8801 |
|
8802 Tue Apr 4 22:54:17 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8803 |
|
8804 * tree-expr.cc (tree_multi_assignment_expression::eval, |
|
8805 tree_simple_assignment_expression::eval): Call print_constant |
|
8806 even if user_pref.print_answer_id_name is false. |
|
8807 |
|
8808 Mon Apr 3 17:57:14 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8809 |
|
8810 * tc-inlines.h (TC_REP): Avoid redefinition. |
|
8811 |
|
8812 * tree-const.h (do_binary_op, do_unary_op): Declare as friends of |
|
8813 tree_constant class too. |
|
8814 |
|
8815 * tree-plot.h (subplot_using::have_values): Delete data member. |
|
8816 * tree-plot.cc (subplot_using::eval): Always recompute values. |
|
8817 |
|
8818 Fri Mar 31 10:18:32 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8819 |
|
8820 * tc-rep.cc (print): Print open brace for structures here. |
|
8821 * tree-expr.cc (print_constant): Not here. |
|
8822 |
|
8823 * symtab.cc (define): Don't delete arg if sv_fcn fails. |
|
8824 |
|
8825 * tree-const.cc (print): New function. Create ostrstream buffer |
|
8826 and pass it to rep->print(). |
|
8827 * tree-const.h (eval (int)): Call print(), not rep->print(). |
|
8828 * tc-rep.cc (structure_indent_level): New file-scope variable. |
|
8829 (print): New arg, output_buf, is stream to print to. |
|
8830 Print values of structure elements too. |
|
8831 |
|
8832 * user-prefs.h (user_preferences): New field, struct_levels_to_print. |
|
8833 * user-prefs.cc (struct_levels_to_print): New function. |
|
8834 * variables.cc (install_builtin_variables): Add DEFVAR for new |
|
8835 variable struct_levels_to_print. |
|
8836 |
|
8837 * tree-const.cc (print_as_scalar, print_as_structure): Move here |
|
8838 from tree-expr.cc and make extern. |
|
8839 |
|
8840 * tree-expr.cc (print_as_structure): New function. |
|
8841 (print_constant): Use it. |
|
8842 |
|
8843 * tree-expr.cc (print_constant): New arg, print_padding. |
|
8844 (tree_simple_assignment_expression::eval): Use print_constant |
|
8845 instead of duplicating code here. |
|
8846 (tree_multi_assignment_expression::eval): Likewise. |
|
8847 |
|
8848 Thu Mar 30 13:24:11 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8849 |
|
8850 * Makefile.in (SOURCES): Add resource.cc. |
|
8851 * resource.cc: New file, extracted from timefns.cc. |
|
8852 (Fgetrusage): New function. |
|
8853 * timefns.cc (cputime): Delete (now implemented in a function file |
|
8854 using new getrusage function). |
|
8855 |
|
8856 Wed Mar 29 22:52:42 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8857 |
|
8858 * Makefile.in (SOURCES): Add strftime.c. |
|
8859 * strftime.c: New file, from sh-utils distribution. |
|
8860 |
|
8861 * timefns.cc (mk_tm_map, extract_tm, Ftime, Fgmtime, Flocaltime, |
|
8862 Fmktime, Fstrftime): New basic time functions. |
|
8863 (Fclock, Fdate): Delete (now implemented in function files using new |
|
8864 time functions). |
|
8865 |
|
8866 Tue Mar 28 17:51:51 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8867 |
|
8868 * file-io.cc (return_valid_file, do_printf, do_scanf, |
|
8869 fclose_internal, feof_internal, ferror_internal, fflush_internal, |
|
8870 fgets_internal, fopen_internal, fread_internal, freport_internal, |
|
8871 frewind_internal, fseek_internal, ftell_internal, |
|
8872 fwrite_internal): Declare static. |
|
8873 * file-io.h: Delete extern declarations for them. |
|
8874 |
|
8875 Fri Mar 24 09:52:50 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8876 |
|
8877 * pr-output.cc (pr_col_num_header): New function. |
|
8878 (compact_format): New file-scope variable. |
|
8879 (set_format_style): Handle loose and compact formats. |
|
8880 (octave_print_internal (ostream&, const ComplexMatrix&, int)): |
|
8881 Replace duplicate code with call to pr_col_num_header(). |
|
8882 (octave_print_internal (ostream&, const Matrix&, int): Likewise. |
|
8883 (octave_print_internal (ostream&, const Range&, int): Likewise. |
|
8884 |
|
8885 Tue Mar 21 08:44:48 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8886 |
|
8887 * mappers.cc (xgamma): Always use Slatec library function. |
|
8888 * (xlgamma): Likewise. |
|
8889 * Makefile.in (SOURCES): Don't include lgamma.c. |
|
8890 |
|
8891 Fri Mar 17 22:38:39 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8892 |
|
8893 * tc-rep.cc (TC_REP::new): Don't try to keep track of newlist_tail. |
|
8894 Explicitly initialize newlist to zero. |
|
8895 * tree-const.cc (tree_constant::operator new): Likewise. |
|
8896 |
|
8897 Fri Mar 10 12:40:24 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8898 |
|
8899 * tree-cmd.cc (quit_loop_now): Declare inline. |
|
8900 (tree_for_command::do_for_loop_once): Split into two versions, one |
|
8901 for the general case and one for when the loop variable is a |
|
8902 simple identifier. |
|
8903 (DO_LOOP): New macro. Move tests outside of loop. |
|
8904 (tree_for_command::eval): Speed up by checking to see if loop |
|
8905 variable is a simple identifier and by using DO_LOOP. |
|
8906 |
|
8907 * tree-const.h: New union of rep and freeptr. The freeptr element |
|
8908 is used for our custom memory management functions. |
|
8909 |
|
8910 * tc-rep.h: Add freeptr element to anonymous union (for our custom |
|
8911 memory management functions). |
|
8912 |
|
8913 * tree-const.cc (newlist, newlist_grow_size, newlist_tail): New |
|
8914 static variables. |
|
8915 (tree_constant::operator new): Always define to allow more |
|
8916 efficient allocation of single tree_constants. |
|
8917 (tree_constant::operator delete): Likewise, handle deletion of the |
|
8918 memory we allocate. |
|
8919 |
|
8920 * tc-rep.cc (newlist, newlist_grow_size, newlist_tail): New static |
|
8921 variables. |
|
8922 (tree_constant::operator new): Always define to allow more |
|
8923 efficient allocation of single tree_constants. |
|
8924 (tree_constant::operator delete): Likewise, handle deletion of the |
|
8925 memory we allocate. |
|
8926 |
|
8927 Fri Mar 3 14:00:08 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8928 |
|
8929 * error.cc (verror): Terminate output_buf with ends. |
|
8930 |
|
8931 * statdefs.h: Use C-style comment in first line instead of |
|
8932 C++-style comment. |
|
8933 |
|
8934 Mon Feb 27 10:11:18 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8935 |
|
8936 * parse.y (maybe_convert_to_ans_assign): Only lookup ans once. |
|
8937 * variables.cc (bind_ans): New function. |
|
8938 * tree-expr.cc (tree_identifier::eval (int)): Use it here. |
|
8939 (tree_identifier::eval (int, int, const Octave_object&): And here. |
|
8940 |
|
8941 * tree-expr.cc (install_nargin_and_nargout): New function. |
|
8942 * tree-expr.h (tree_function::tree_function (tree_statement_list *, |
|
8943 symbol_table *, int, int)): Call it. |
|
8944 |
|
8945 * tree-expr.cc (tree_function::bind_nargin_and_nargout): New function. |
|
8946 (tree_function::eval): Call it insead of the one from variables.cc. |
|
8947 |
|
8948 * variables.cc (bind_nargin_and_nargout): #if 0 out. |
|
8949 |
|
8950 Sun Feb 26 00:17:06 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8951 |
|
8952 * load-save.cc (Fload, Fsave): Free fname returned by tilde_expand(). |
|
8953 * dirfns.cc (Fls): Likewise. |
|
8954 |
|
8955 * tree-expr.cc (tree_multi_assignment_expression::eval (int, int, |
|
8956 const Octave_object&)): Call tree_return_list::operator () (Pix) |
|
8957 explicitly. |
|
8958 |
|
8959 * octave.cc (initialize_globals): Put TEXMF in the environment for |
|
8960 kpthsea. |
|
8961 |
|
8962 * Makefile.in (OCTAVE_LIBS): Use @LIBINFO@ and @LIBREADLINE@, |
|
8963 substituted by configure. Use kpathsea.a, not libkpathsea, so we |
|
8964 don't have to modify the kpathsea Makefile. |
|
8965 |
|
8966 Sat Feb 25 18:59:26 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8967 |
|
8968 * pathsearch.cc: New file. |
|
8969 * pathsearch.h: New file. |
|
8970 * Makefile.in (INCLUDES): Include it in the list. |
|
8971 * dynamic-ld.cc, help.cc, utils.cc: Use it instead of repeating |
|
8972 identical code multiple times. |
|
8973 |
|
8974 * variables.cc (install_builtin_variables): Only DEFVAR |
|
8975 suppress_verbose_help_message if USE_GNU_INFO. |
|
8976 |
|
8977 * help.cc (Fhelp): Only handle -i if USE_GNU_INFO. |
|
8978 (additional_help_message): Only print message if USE_GNU_INFO. |
|
8979 (builtin_help): New function. |
|
8980 (help_from_info): New function. Print warning if not USE_GNU_INFO. |
|
8981 |
|
8982 See ChangeLog.1 in the top level directory for earlier changes. |