3936
|
1 2002-05-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2 |
3940
|
3 * ov-cell.cc (octave_cell::subsasgn): If an error has occurred, |
|
4 skip final assignment step. |
|
5 * ov-list.cc (octave_list::subsasgn): Likewise. |
|
6 * oct-lvalue.cc (octave_lvalue::assign): Add parens to clarify intent. |
|
7 (octave_lvalue::do_unary_op): Likewise. |
|
8 |
3939
|
9 * parse.y (function_end): Also accept end of input as end of |
|
10 function if input is coming from an eval string. |
|
11 |
3936
|
12 * pr-output.cc (pr_any_float): Don't convert -0 to 0. |
|
13 |
3934
|
14 2002-05-15 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
15 |
3935
|
16 * input.cc (generate_completion): If it looks like we are |
|
17 completing a struct, set completion append char to '\0'. |
|
18 |
|
19 * variables.cc (generate_struct_completions): Temporarily set |
|
20 warnings off here. |
|
21 |
3934
|
22 * error.cc (warning): Don't do anything if Vdebug_option == "off". |
|
23 Only print backtrace if Vdebug_option == "backtrace". |
|
24 (handle_message): Now returns a string containing the text of the |
|
25 formatted message. Change all callers. |
|
26 (Fwarning): Now a text-style function. Handle Matlab-compatible |
|
27 warning options. |
3935
|
28 (Flasterr, Flastwarn, set_warning_option): New functions. |
|
29 (Vlast_error_message, Vlast_warning_message, Vwarning_frequency, |
|
30 Vwarning_option): New static variables. |
3934
|
31 (vwarning): Set Vlast_warning_message here too. |
3935
|
32 (verror): Set Vlast_error_message here too. |
3934
|
33 |
3933
|
34 2002-05-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
35 |
|
36 * ov.h (octave_value::get_count): Now const. |
|
37 |
|
38 * ov.h, ov.cc (octave_value::do_non_const_unary_op, |
|
39 octave_value::assign): Idx is now a list of octave_value_list |
|
40 objects. |
|
41 |
|
42 * ov-base.cc, ov-base.h (octave_base_value::do_struct_elt_index_op, |
|
43 octave_base_value::struct_elt_ref): Delete. |
|
44 * ov-struct.cc, ov-struct.h (octave_sruct::do_struct_elt_index_op, |
|
45 octave_struct::struct_elt_ref): Delete. |
|
46 * ov.cc, ov.h (octave_value::do_struct_elt_index_op, |
|
47 octave_value::struct_elt_ref, octave_value::assign_struct_elt, |
|
48 octave_value::convert_and_assign, octave_value::try_assignment, |
|
49 octave_value::try_assignment_with_conversion, |
|
50 octave_value::simple_assign): Delete. |
|
51 |
|
52 * parse.y (make_index_expression): Type is now a single |
|
53 character. Change all callers. If expr is already an index |
|
54 expression, append index to it. |
|
55 (make_indirect_ref): Likewise. |
|
56 |
|
57 * pt-pr-code.cc (octave_print_internal (std::ostream&, const |
|
58 Cell&, bool, int)): Now just a dummy function, panic if called. |
|
59 |
|
60 * pt-idx.cc (tree_index_expression::make_arg_struct): New function. |
|
61 (tree_index_expression::type): Delete enum, rename from itype, now |
|
62 a string. |
|
63 (tree_index_expression::arg_nm): Now a list of string_vector objects. |
|
64 (tree_index_expression::idx): Now a list of tree_argument_list* |
|
65 objects. |
|
66 (tree_index_expression::is_index_expression): Always return true. |
|
67 (tree_index_expression::apend, make_value_list, make_subs_cell): |
|
68 New functions. |
|
69 |
|
70 * pt-pr-code.cc (visit_index_expression): Handle new definition of |
|
71 tree_index_expression object. |
|
72 * pt-check.cc (visit_index_expression): Likewise. |
|
73 * pt-bp.cc (visit_index_expression): Likewise. |
|
74 |
|
75 * ov-usr-fcn.h (octave_user_function::restore_args_passed): |
|
76 Clear args_passed even if nothing was saved. |
|
77 |
|
78 * ov-base.cc (octave_base_value::subsasgn, |
|
79 octave_base_value::map_keys, octave_base_value::print_info): |
|
80 New functions. |
|
81 |
|
82 * ov.h, ov.cc (octave_value::map_keys, octave_value::print_info, |
|
83 octave_value::subsref, octave_value::subsasgn, |
|
84 octave_value::numeric_assign, octave_value::next_subsref): |
|
85 New functions. |
|
86 (octave_value::empty_conv): New static function. |
|
87 (octave_value (octave_value *, int)): New arg, count. |
|
88 |
|
89 * ov-base-mat.cc (octave_base_matrix<MT>::subsref, |
|
90 octave_base_matrix<MT>::subsasgn): New functions. |
|
91 * ov-base-mat.h: Provide decls. |
|
92 |
|
93 * ov-builtin.cc (octave_builtin::subsref): New function. |
|
94 * ov-builtin.h: Provide decl. |
|
95 |
|
96 * ov-range.cc (octave_range::subsref): New function. |
|
97 * ov-range.h: Provide decl. |
|
98 |
|
99 * ov-cell.cc (octave_cell::subsref, octave_cell::subsasgn, |
|
100 octave_cell::list_value, octave_cell::print, |
|
101 octave_cell::print_raw, octave_cell::print_name_tag): New functions. |
|
102 * ov-cell.h: Provide decls. |
|
103 |
|
104 * ov-struct.cc (octave_struct::dotref, octave_struct::subsref, |
|
105 octave_struct::subsasgn, gripe_invalid_index, |
|
106 gripe_invalid_index_for_assignment, grip_invalid_index_type, |
|
107 gripe_failed_assignment): New functions. |
|
108 (octave_struct::numeric_conv): New static function. |
|
109 * ov-struct.h: Provide decls. |
|
110 (octave_struct::is_constant): Return true. |
|
111 (octave_struct::map_keys): New function. |
|
112 |
|
113 * ov-list.cc (octave_list::subsref, octave_list::subsasgn): |
|
114 New functions. |
|
115 * ov-list.h: Provide decls. |
|
116 |
|
117 * ov-usr-fcn.cc (octave_user_function::subsref, |
|
118 octave_user_function::print_symtab_info): New functions. |
|
119 * ov-usr-fcn.h: Provide decl. |
|
120 |
|
121 * ov-mapper.cc (octave_mapper::subsref): New function. |
|
122 * ov-mapper.h: Provide decl. |
|
123 |
|
124 * ov-base.cc (octave_base_value::subsref, |
|
125 octave_base_value::subsasgn): New functions. |
|
126 * ov-base.h: Provide decls. |
|
127 |
|
128 * ov-base.cc (octave_base_value::do_index_op): New arg, resize_ok. |
|
129 * ov-base-mat.cc (octave_base_matrix<MT>::do_index_op): Likewise. |
|
130 * ov-base-nd-array.cc (octave_base_nd_array<AT>::do_index_op): Ditto. |
|
131 * ov-bool-mat.cc (octave_bool::do_index_op): Ditto. |
|
132 * ov-str-mat.cc (octave_char_matrix_str::do_index_op): Ditto. |
|
133 * ov-range.cc (octave_range::do_index_op): Ditto. |
|
134 * ov-list.cc (octave_list::do_index_op): Ditto. |
|
135 * ov.cc (octave_value::do_index_op): Ditto. |
|
136 |
|
137 * ov-base-mat.cc (octave_base_matrix<MT>::print_info): New function. |
|
138 |
|
139 * ov-base-mat.h (octave_base_matrix<MT>::empty_clone): New function. |
|
140 * ov-base-nd-array.h (octave_base_nd_array<AT>::empty_clone): Ditto. |
|
141 * ov-base.h (octave_base_value::empty_clone): Ditto. |
|
142 * ov-bool-mat.h (octave_bool::empty_clone): Ditto. |
|
143 * ov-ch-mat.h (octave_char_matrix::empty_clone): Likewise. |
|
144 * ov-colon.h (octave_magic_colon::empty_clone): Likewise. |
|
145 * ov-complex.h (octave_complex::empty_clone): Likewise. |
|
146 * ov-cx-mat.h (octave_complex_matrix::empty_clone): Likewise. |
|
147 * ov-fcn.cc (octave_function::empty_clone): Likewise. |
|
148 * ov-file.h (octave_file::empty_clone): Likewise. |
|
149 * ov-range.h (octave_range::empty_clone): Likewise. |
|
150 * ov-list.h (octave_list::empty_clone): Likewise. |
|
151 * ov-re-mat.h (octave_matrix::empty_clone): Likewise. |
|
152 * ov-re-nd-array.h (octave_double_nd_array::empty_clone): Likewise. |
|
153 * ov-str-mat.h (octave_char_matrix_str::empty_clone): Likewise. |
|
154 * ov-struct.h (octave_struct::empty_clone): Likewise. |
|
155 * ov-va_args.h (octave_all_va_args::empty_clone): Likewise. |
|
156 * ov.h (octave_value::empty_clone): Likewise. |
|
157 |
|
158 * ov-base-mat.h (octave_base_matrix<MT>::clone): Now const. |
|
159 * ov-base-nd-array.h (octave_base_nd_array<AT>::clone): Likewise. |
|
160 * ov-base.h (octave_base_value::clone): Likewise. |
|
161 * ov-bool-mat.h (octave_bool::clone): Likewise. |
|
162 * ov-ch-mat.h (octave_char_matrix::clone): Likewise. |
|
163 * ov-colon.h (octave_magic_colon::clone): Likewise. |
|
164 * ov-complex.h (octave_complex::clone): Likewise. |
|
165 * ov-cx-mat.h (octave_complex_matrix::clone): Likewise. |
|
166 * ov-fcn.h (octave_function::clone): Likewise. |
|
167 * ov-file.h (octave_file::clone): Likewise. |
|
168 * ov-range.h (octave_range::clone): Likewise. |
|
169 * ov-list.h (octave_list::clone): Likewise. |
|
170 * ov-re-mat.h (octave_matrix::clone): Likewise. |
|
171 * ov-re-nd-array.h (octave_double_nd_array::clone): Likewise. |
|
172 * ov-str-mat.h (octave_char_matrix_str::clone): Likewise. |
|
173 * ov-struct.h (octave_struct::clone): Likewise. |
|
174 * ov-va_args.h (octave_all_va_args::clone): Likewise. |
|
175 * ov.h (octave_value::clone): Likewise. |
|
176 |
|
177 * oct-lvalue.cc (octave_lvalue::assign, octave_lvalue::set_index, |
|
178 octave_lvalue::do_unary_op): Idx is now a list of indices. Simplify. |
|
179 * oct-lvalue.h (octave_lvalue::value): Simplify. |
|
180 (octave_lvalue::struct_elt_names): Delete data member. |
|
181 (octave_lvalue::type): Now string |
|
182 Update decls. |
|
183 |
|
184 * pt-exp.h (tree_expression::is_indirect_ref): |
|
185 Delete virtual function. |
|
186 |
|
187 * pt-plot.cc (subplot::extract_plot_data): Use subsref, instead of |
|
188 do_index_op. |
|
189 |
|
190 * pt-stmt.cc (tree_statement::eval): Don't try to avoid binding |
|
191 ans for structure references. |
|
192 |
|
193 * symtab.cc (symbol_record::symbol_def::print_info): Rename from |
|
194 symbol_record::symbol_def::dump_symbol_info. |
|
195 (symbol_record::print_info): Rename from |
|
196 symbol_record::dump_symbol_info. Now const.. |
|
197 (symbol_record::print_symbol_info_line): Now const. |
|
198 (symbol_table::print_info): Rename from print_stats. Accept |
|
199 ostream arg. Now const. Print more info. |
|
200 * symtab.h: Update decls. |
|
201 |
|
202 * toplev.cc (octave_config_info): Indexing a map now returns a |
|
203 list, but we only want to return the first element. |
|
204 |
|
205 * variables.cc (generate_struct_completions, looks_like_struct): |
|
206 Simplify using eval_string. |
|
207 (F__print_symtab_info__): Rename from F__dump_symtab_info__. |
|
208 Handle "top-level" and individual function names in addition to |
|
209 "global". |
|
210 (F__print_symbol_info__): Rename from F___dump_symbol_info__. |
|
211 |
|
212 * octave.cc (intern_argv): Built-in variable argv is now a cell array. |
|
213 |
|
214 * ov-complex.cc (valid_scalar_indices): Delete. |
|
215 * ov-scalar.cc (valid_scalar_indices): Delete. |
|
216 |
|
217 * oct-obj.cc (octave_value_list::valid_scalar_indices): New function. |
|
218 (octave_value_list::index): New arg, resize_ok. |
|
219 * oct-obj.h: Provide decls. |
|
220 |
|
221 * oct-map.cc (Octave_map::keys): Rename from make_name_list. |
|
222 Change all uses. |
|
223 (Octave_map::assign, Octave_map::index): New functions. |
|
224 * oct-map.h: Provide decls. |
|
225 |
|
226 * data.cc (Fstruct_contains): Use map_value instead of |
|
227 do_struct_elt_index_op. |
|
228 |
|
229 * Cell.h (Cell (const Array2<octave_value>&, int, int)): |
|
230 New constructor. |
|
231 (Cell::resize_fill_value): New static function. |
|
232 |
|
233 * input.cc (initialize_command_input): Set basic and completer |
|
234 word break characters. |
|
235 |
3932
|
236 2002-05-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
237 |
3933
|
238 * ov.h (octave_value::subsref): New function. |
|
239 * ov-base.cc (octave_base_value::subsref): Likewise. |
|
240 |
3932
|
241 * ov-struct.cc (octave_struct::print_raw): Print scalar struct |
|
242 arrays more compactly. |
|
243 |
|
244 * DLD-FUNCTIONS/time.cc (extract_tm): Handle new struct array def. |
|
245 |
|
246 * oct-map.cc (Octave_map::array_len): New data member. |
|
247 (Octave_map::operator[], Octave_map::contsnts): Return |
|
248 octave_value_list, not Octave_value. Change callers as necessary. |
|
249 (Octave_map::assign): New function. |
|
250 (Octave_map::array_length): New fucntion. |
|
251 * oct-obj.cc (octave_value_list::assign): New function. |
|
252 |
3930
|
253 2002-05-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
254 |
3931
|
255 * TEMPLATE-INST/Map-oct-obj.cc: New file. |
|
256 * Makefile.in (TI_XSRC): Add it to the list. |
|
257 |
|
258 * oct-map.h (Octave_map): Make CHMap<octave_value_list> a data |
|
259 member instead of deriving from CHMap<octave_value>, in |
|
260 preparation for structure arrays. |
|
261 |
3930
|
262 * pt-indir.h, pt-indir.cc: Delete. |
|
263 |
|
264 * pt-all.h: Don't include pt-indir.h. |
|
265 |
|
266 * Makefile.in (PT_SRC): Delete pt-indir.cc from the list. |
|
267 (PT_INCLUDES): Delete pt-indir.h from the list. |
|
268 |
|
269 * pt-walk.h (tree_walker::visit_indirect_ref): Delete. |
|
270 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_indirect_ref): |
|
271 Likewise. |
|
272 * pt-check.h, pt-check.cc (tree_checker::visit_indirect_ref): Likewise. |
|
273 * pt-bp.h, pt-bp.cc (tree_breakpoint::visit_indirect_ref): Likewise. |
|
274 |
|
275 * pt-walk.h: Delete forward decl for tree_indirect_ref. |
|
276 * variables.h: Likewise. |
|
277 |
|
278 * parse.y (make_indirect_ref): Return tree_index_expression, not |
|
279 tree_indirect_ref. |
|
280 |
|
281 * pt-idx.h (tree_index_expression::struct_elt_name): New function. |
|
282 |
|
283 * pt-idx.cc (tree_index_expression::lvalue): Handle dot case too. |
|
284 (tree_index_expression::name): Likewise. |
|
285 (tree_index_expression rvalue (int)): Likewise. |
|
286 (tree_index_expression::eval_error): Likewise. |
|
287 * pt-pr-code.cc (visit_index_expression): Likewise. |
|
288 * pt-bp.cc (tree_breakpoint::visit_index_expression): Likewise. |
|
289 |
|
290 * pt-idx.h (tree_index_expression::dot): New type enum element. |
|
291 (tree_index_expression::expr_type): New function. |
|
292 (tree_index_expression::tree_index_expression (tree_expression*, |
|
293 const std::string&, int, int)): New constructor. |
|
294 (tree_index_expression::is_index_expression): Return value is now |
|
295 conditional on itype. |
|
296 (tree_index_expression::is_indirect_ref): New function. |
|
297 (tree_index_expression::lvalue_ok): Also return true if itype is dot. |
|
298 |
3928
|
299 2002-05-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
300 |
3929
|
301 * parse.y (ABORT_PARSE): Maybe restore symbol table context too. |
|
302 |
|
303 * pt-idx.h (tree_index_expression::type): New enum. |
|
304 (tree_index_expression::etype): New data member. |
|
305 * pt-idx.h (tree_index_expression::tree_index_expression): |
|
306 New arg, t, to set type of index. |
|
307 * parse.y (make_index_expression): Likewise. |
|
308 Change all callers. |
|
309 |
3928
|
310 * ov-base.cc (cell_conv): New conversion function. |
|
311 (install_base_type_conversions): Install it. |
|
312 Install conversion for indexed assignment of octave_cells to |
|
313 undefined values. |
|
314 |
|
315 * TEMPLATE-INST/Array-tc.cc: Instantiate assign functions too. |
|
316 (Array<octave_value>::resize_fill_value (void)): |
|
317 Provide specialization for octave_value. |
|
318 |
|
319 * ov-cell.cc (octave_cell::assign (const octave_value_list&, |
|
320 const octave_value&)): New function. |
|
321 * Cell.h (Cell::Cell (const octave_value&)): New function. |
|
322 |
|
323 * OPERATORS/op-cell.cc (install_list_ops): Use DEFASSIGNANYOP_FN |
|
324 and INSTALL_ASSIGNANYOP, not DEFASSIGNOP_FN and INSTALL_ASSIGNOP. |
|
325 |
|
326 2002-05-03 Cai Jianming <caijianming@yahoo.co.uk> |
|
327 |
|
328 * OPERATORS/op-cell.cc: New file. |
|
329 * src/Makefile.in (OP_XSRC): Include it in the list. |
|
330 |
|
331 * parse.y (cell): Return a cell type instead of Matrix type. |
|
332 |
|
333 * ov.cc (install_types): Install octave_cell type. |
|
334 |
|
335 * pr-output.cc (octave_print_internal): Handle Cells. |
|
336 * pr-output.h (octave_print_internal): Provide decl. |
|
337 |
|
338 * ov-cell.h (octave_cell): Derive from octave_base_matrix<Cell>. |
|
339 * ov-cell.cc (do_index_op, assign, print, print_raw, |
|
340 print_name_tag): Delete. |
|
341 |
|
342 * Cell.cc (allocator, index): Delete. |
|
343 * Cell.h (Cell): Derive from Array2<octave_value>. |
|
344 Most functions removed since we can use those from Array2 instead. |
|
345 |
|
346 2002-05-02 Cai Jianming <caijianming@yahoo.co.uk> |
|
347 |
|
348 * ov-base-mat.cc (octave_base_matrix<MT>::assign): |
|
349 New function. |
|
350 * ov-base-mat.h (octave_base_matrix<MT>::assign): Provide decl. |
|
351 * ov-bool-mat.cc (octave_bool_matrix::assign): Delete. |
|
352 * ov-bool-mat.h (octave_bool_matrix:assign): Delete decl |
|
353 * ov-cx-mat.cc (octave_complex_matrix::assign (const |
|
354 octave_value_list& idx, const ComplexMatrix&)): Delete. |
|
355 * ov-cx-mat.h (octave_complex_matrix:assign (const |
|
356 octave_value_list& idx, const ComplexMatrix&)): Replace decl with |
|
357 function. |
|
358 * ov-re-mat.cc (octave_bool_matrix::assign): Delete. |
|
359 * ov-re-mat.h (octave_bool_matrix:assign): Delete decl. |
|
360 |
3927
|
361 2002-05-02 Cai Jianming <caijianming@yahoo.co.uk> |
|
362 |
|
363 * OPERATORS/op-bm-b.cc: New file.x |
|
364 * Makefile.in (OP_XSRC): Add it to the list. |
|
365 |
3920
|
366 2002-04-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
367 |
3922
|
368 * octave.cc (print_version_and_exit): Use |
|
369 OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_AND_WARRANTY, not |
|
370 OCTAVE_NAME_AND_VERSION. |
|
371 |
|
372 * octave.cc (verbose_usage): |
|
373 Use OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_AND_WARRANTY, not |
|
374 OCTAVE_NAME_VERSION_AND_COPYRIGHT. |
|
375 |
|
376 * version.h (OCTAVE_COPYING_STATEMENT, OCTAVE_WARRANTY_STATEMENT, |
|
377 OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_AND_WARRANTY, |
|
378 X_OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_WARRANTY_AND_BUGS, |
|
379 OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_WARRANTY_AND_BUGS, |
|
380 OCTAVE_BUGS_STATEMENT): New macros. |
|
381 (OCTAVE_STARTUP_MESSAGE): Define in terms of |
|
382 X_OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_WARRANTY_AND_BUGS |
|
383 to include bugs address and amplified warranty information. |
|
384 |
3920
|
385 * DLD-FUNCTIONS/lsode.cc (Flsode): Delete unused variable nsteps. |
|
386 |
3917
|
387 2002-04-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
388 |
|
389 * help.cc (additional_help_message): Use www.octave.org, not |
|
390 www.che.wisc.edu/octave/octave.html. |
|
391 * octave.cc (verbose_usage): Likewise. |
|
392 |
3912
|
393 2002-04-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
394 |
|
395 * DLD-FUNCTIONS/daspk.cc: New file. |
|
396 * Makefile.in (DLD_XSRC): Add it to the list. |
|
397 |
3910
|
398 2002-04-25 Paul Kienzle <pkienzle@users.sf.net> |
|
399 |
|
400 * DLD-FUNCTIONS/kron.cc: New file. |
|
401 * Makefile.in (DLD_SRC): Add it to the list. |
|
402 |
3903
|
403 2002-04-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
404 |
|
405 * parse.y (save_symtab): New non-terminal. Save current symbol |
|
406 table context here. |
|
407 (function_beg): Use it. |
|
408 (symtab_context): New file-scope variable. |
|
409 (recover_from_parsing_function): Restore symbol table context here. |
|
410 |
3901
|
411 2002-04-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
412 |
|
413 * load-save.cc (get_lines_and_columns): Handle CRLF as line |
|
414 separator in addition to LF. |
|
415 |
3897
|
416 2002-04-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
417 |
|
418 * load-save.cc (hdf5_ofstream::hdf5_ofstream): |
|
419 Explicitly List std::ostream(0) in constructor. |
|
420 (hdf5_ifstream::hdf5_ifstream): |
|
421 Explicitly List std::istream(0) in constructor. |
|
422 (hdf5_fstreambase::hdf5_fstreambase): Use std::ios::setstate, not set. |
|
423 (hdf5_fstreambase::close): Likewise. |
|
424 (hdf5_fstreambase::open): Likewise. |
|
425 |
3895
|
426 2002-04-10 Ben Sapp <bsapp@lanl.gov> |
|
427 |
|
428 * pt-stmt.cc (delete_breakpoint): List breakpoints if line < 0. |
|
429 * debug.cc (get_user_function): Check symbol by name first. |
|
430 (Fdbstop): Rename from Fdbg_set. |
|
431 (Fdbclear): Rename from Fdbg_delete. |
|
432 (Fdbstatus): Rename from Fdbg_list. |
|
433 (Fdbg_where): Rename from Fdbwhere. |
|
434 (do_dbtype, Fdbtype): New functions. |
|
435 |
|
436 2002-04-10 Peter Van Wieren <peter.vanwiere@avlna.com> |
|
437 |
|
438 * load-save.cc (save_mat5_binary_element): Save elements of 2d |
|
439 character matrices in proper order. |
|
440 |
3893
|
441 2002-04-09 Paul Kienzle <pkienzle@users.sf.net> |
|
442 |
|
443 * utils.cc (do_string_escapes): Handle \0 too. |
|
444 (undo_string_escape): Likewise. |
|
445 |
3892
|
446 2002-04-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
447 |
|
448 * toplev.cc (octave_config_info): Define struct member EXEEXT, not EXE. |
|
449 * Makefile.in (install-bin): Use $(EXEEXT), not $(EXE). |
|
450 * oct-conf.h.in (OCTAVE_CONF_EXEEXT): Define and substitute |
|
451 OCTAVE_CONF_EXEEXT, not OCTAVE_CONF_EXE. |
|
452 |
3887
|
453 2002-04-03 Steven G. Johnson <stevenj@alum.mit.edu> |
|
454 |
|
455 * DLD-FUNCTIONS/balance.cc: Use F77_FUNC instead of F77_FCN. |
|
456 * DLD-FUNCTIONS/qz.cc: Likewise. |
|
457 * DLD-FUNCTIONS/rand.cc: Likewise. |
|
458 * octave.cc: Likewise. |
3910
|
459 * toplev.cc (Foctave_config_info): Delete use of FORTRAN_MAIN_FLAG. |
3887
|
460 * oct-conf.h.in: Delete use of OCTAVE_CONF_FORTRAN_MAIN_FLAG. |
|
461 * syscalls.cc (mk_stat_map): |
|
462 Use HAVE_STRUCT_STAT_ST_RDEV instead of HAVE_ST_RDEV. |
|
463 Use HAVE_STRUCT_STAT_ST_BLKSIZE instead of HAVE_ST_BLKSIZE. |
|
464 Use HAVE_STRUCT_STAT_ST_BLOCKS instead of HAVE_ST_BLOCKS. |
|
465 |
3881
|
466 2002-04-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
467 |
3883
|
468 * lex.l, lex.h (parser_end_of_input): New global variable. |
|
469 (reset_parser): Reset it here. |
|
470 * parse.y (input): Set it to TRUE on EOF. |
|
471 (parse_and_executed): Save and restore it, check it to correctly |
|
472 break out of parse-execute loop. |
|
473 (parse_fcn_file): Likewise. |
|
474 (eval_string): Likewise. |
3884
|
475 * toplev.cc (main_loop): Likewise. |
3883
|
476 |
3881
|
477 * parse.y (input): Call YYACCEPT for END_OF_INPUT. |
3883
|
478 Return no-op command for bare newline. |
3881
|
479 (parse_and_execute): Handle change in yyparse return value semantics. |
3883
|
480 |
3881
|
481 * toplev.cc (main_loop): Likewise. |
|
482 |
3880
|
483 2002-03-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
484 |
|
485 * parse.y (parse_fcn_file): Call error if there is no input file. |
|
486 (parse_and_execute (FILE *): Protect get_input_from_eval_string. |
|
487 Set get_input_from_eval_string to false before calling yyparse. |
|
488 * lex.l (reset_parser): Also skip yyrestart (stdin) if |
|
489 reading_script_file is true. |
|
490 |
3877
|
491 2002-03-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
492 |
|
493 * pt-loop.cc (evaluating_looping_command): New global. |
|
494 (tree_while_command::eval): Protect evaluating_looping_command. |
|
495 Set it to true while evaluating loop. |
|
496 (tree_do_until_command::eval): Ditto. |
|
497 (tree_simple_for_command::eval): Ditto. |
|
498 (tree_complex_for_command::eval): Ditto. |
|
499 * pt-loop.h (evaluating_looping_command): Provide decl. |
|
500 * parse.y (parse_fcn_file): Protect get_input_from_eval_string. |
|
501 Set get_input_from_eval_string to false before calling yyparse. |
|
502 (make_break_command): Also check evaluating_looping_command. |
|
503 (make_continue_command): Also check evaluating_looping_command. |
|
504 (eval_string (const std::string&, bool, int&, int)): Loop over |
|
505 yyparse to handle multi-line strings. |
|
506 Move call to unwind_protect::run_frame to end of function. |
|
507 Don't reset parser before calling yyparse. |
|
508 Correctly handle return, break, and continue. |
|
509 |
|
510 * input.cc (input_from_eval_string_pending): New global variable. |
|
511 (get_usr_input): Use it. |
|
512 * input.h (input_from_eval_string_pending): Provide decl. |
|
513 |
3876
|
514 2002-03-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
515 |
|
516 * ov-usr-fcn.cc (octave_user_function::do_multi_index_op): |
|
517 Don't unwind_protect num_named_args (it doesn't change on |
|
518 recursive calls). |
|
519 Do re-initialize curr_va_arg_number to num_named_args after |
|
520 unwind_protecting. |
|
521 |
|
522 * ov-usr-fcn.h (octave_user_function::clear_args_passed): Delete. |
|
523 (octave_user_function::saved_args): New data member. |
|
524 (octave_user_function::save_args_passed): New function. |
|
525 (octave_user_function::restore_args_passed): Ditto. |
|
526 * ov-usr-fcn.cc (clear_args_passed): Delete. |
|
527 (restore_args_passed): New function. |
|
528 (octave_user_function::do_multi_index_op): Correctly save and |
|
529 restore args passed for recursive calls. |
|
530 |
|
531 * TEMPLATE-INST/SLStack-ovl.cc: New file. |
|
532 * Makefile.in: Add it to the list. |
|
533 |
3870
|
534 2002-02-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
535 |
3871
|
536 * ov-usr-fcn.cc (octave_user_function::do_multi_index_op): |
|
537 Handle define_all_return_values after function is evaluated. |
|
538 From Paul Kienzle <pkienzle@jazz.ncnr.nist.gov>. |
|
539 |
|
540 * ov-scalar.cc (convert_to_str): Use octave_value (std::string) |
|
541 constructor instead of octave_value (char *) constructor so that |
|
542 setstr (0) will work. |
|
543 |
3870
|
544 * pager.cc (octave_pager_buf::sync): Set pointer to beginning |
|
545 of buffer after calling flush_currnt_contents_to_diary. |
|
546 (octave_diary_buf::sync): Call eback only once. |
|
547 |
3867
|
548 2002-01-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
549 |
|
550 * lex.l (.): Remove test for EOF since it is already handled |
|
551 separately. |
|
552 |
3866
|
553 2001-12-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
554 |
|
555 * load-save.cc (save_mat5_binary_element): |
|
556 Extract dimensions directly from tc. |
|
557 Handle ranges the same as real matrices. |
|
558 |
3864
|
559 2001-11-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
560 |
|
561 * data.cc (DATA_REDUCTION): If no DIM arg, pass -1 to FCN. |
|
562 |
3859
|
563 2001-11-09 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
564 |
|
565 * oct-conf.h.in (FFTW_LIBS, LD_CXX, LIBOCT_PATHSEARCH, |
|
566 LIBOCT_READLINE, MKOCTFILE_LFLAGS): Substitute. |
|
567 * toplev.cc (octave_config_info): Add them to the map. |
|
568 |
|
569 2001-11-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
570 |
|
571 * DLD-FUNCTIONS/lsode.cc (Flsode): Don't bother to give OUTPUT |
|
572 matrix a size before calling integration function. |
|
573 |
3857
|
574 2001-11-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
575 |
|
576 Makefile.in (OCTAVE_LIBS): Add $(LIBOCT_READLINE) and |
|
577 $(LIBOCT_PATHSEARCH) to the list. |
|
578 |
3849
|
579 2001-10-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
580 |
|
581 * DLD-FUNCTIONS/dassl.cc (dassl_user_function): Allow user |
|
582 supplied RES function to return IDID as second value. |
|
583 |
3844
|
584 2001-07-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
585 |
|
586 * parse.y: Clear help_buf after documenting function. |
|
587 |
3842
|
588 2001-06-29 Mumit Khan <khan@nanotech.wisc.edu> |
|
589 |
|
590 * defun-int.h (DEFINE_FUN_INSTALLER_FUN{2,3}): New macros. |
|
591 (DEFINE_FUN_INSTALLER_FUN): Use. |
|
592 * dynamic-ld.cc ({STRINGIFY, STRINGIFY1}): New macros. |
|
593 (octave_dynamic_loader::mangle_name): Support dynamic linking |
|
594 for GNU v3 and Sun C++ ABI. |
|
595 |
3841
|
596 2001-06-26 Mumit Khan <khan@nanotech.wisc.edu> |
|
597 |
|
598 * c-file-ptr-stream.h (c_file_ptr_buf::c_file_ptr_buf): Add GCC3 |
|
599 libstdc++-v3 support. |
|
600 * load-save.cc (save_mat5_binary_element): Cast arguments to the |
|
601 correct type. |
|
602 (save_ascii_data): Eliminate compiler warning. |
|
603 * toplev.cc (system): Prefix std::. |
|
604 |
3836
|
605 2001-05-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
606 |
|
607 * ov-cx-mat.cc: Deleve unnecessary instantiation of assign function. |
|
608 * ov-re-mat.cc: Likewise. |
|
609 * ov-re-nd-array.cc: Likewise. |
|
610 * ov-str-mat.cc: Likewise. |
|
611 * ov-bool-mat.cc: Likewise. |
|
612 |
|
613 * load-save.cc (save_ascii_data): When saving string data, get raw |
|
614 string value for matrix row since there may be embedded nuls. |
|
615 |
|
616 * pt-mat.cc (Vstring_fill_char): No longer static. |
|
617 * pt-mat.h: Provide declaration. |
|
618 |
3834
|
619 2001-05-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
620 |
|
621 * octave.cc (initialize_pathsearch): Save initial value of the |
|
622 TEXMFDBS environment variable here. |
|
623 * toplev.cc (restore_texmfdbs_envvar): New function. |
|
624 (Fsystem): Set TEXMFDBS back to original value before running |
|
625 subprocesses. |
|
626 |
3827
|
627 2001-05-02 Mumit Khan <khan@nanotech.wisc.edu> |
|
628 |
|
629 * Makefile.in (octave): Add $(FFTW_LIBS). |
|
630 |
3826
|
631 2001-04-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
632 |
|
633 * DLD-FUNCTIONS/sort.cc (mx_sort): Check for NaNs in comparisons. |
|
634 |
3822
|
635 2001-04-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
636 |
|
637 * Makefile.in (OCTAVE_LIBS): Delete $(LIBREADLINE) from the list. |
|
638 (octave): Delete TERMLIBS from link command. |
|
639 * oct-conf.h.in: Delete references to LIBREADLINE, TERMLIBS. |
|
640 * toplev.cc (octave_config_info): Delete entries for LIBREADLINE, |
|
641 TERMLIBS. |
|
642 |
3821
|
643 2001-04-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
644 |
|
645 * Makefile.in (install-lib): Don't use mk-libdir-link. |
|
646 (install-inc): Don't use mk-includedir-link. |
|
647 |
3815
|
648 2001-04-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
649 |
|
650 * parse.y (fold (tree_binary_expression *)): |
|
651 Set discard_error_messages here instead of buffer_error_messages. |
|
652 Don't add clear_global_error_variable to the unwind_protect stack. |
|
653 (fold (tree_unary_expression *)): Likewise. |
|
654 (finish_colon_expression): Likewise. |
|
655 (finish_matrix): Likewise. |
|
656 |
|
657 * error.cc (panic): Set discard_error_messages to false here. |
|
658 (verror): Return immediately if discard_error_messages is true. |
|
659 |
|
660 * error.cc (discard_error_messages): New global variable. |
|
661 * error.h: Provide declaration. |
|
662 |
3813
|
663 2001-04-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
664 |
|
665 * lex.l: If unexpected character is EOF, report EOF error instead |
|
666 of invalid character error. |
|
667 |
3812
|
668 2001-04-18 Mumit Khan <khan@nanotech.wisc.edu> |
|
669 |
|
670 * load-save.cc (read_mat5_binary_element): Cast arguments to the |
|
671 correct type when adding stream positions. |
|
672 * DLD-FUNCTIONS/det.cc (det): Explicity create a Complex value to |
|
673 work around a Sun C++ type conversion bug. |
|
674 |
3811
|
675 2001-04-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
676 |
|
677 * symtab.cc (define_builtin_const): Don't call replace_all_defs |
|
678 here. |
|
679 |
|
680 * error.cc (error_message_buffer): Now static. |
|
681 * error.h (error_message_buffer): Delete extern declaration. |
|
682 |
3810
|
683 2001-03-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
684 |
|
685 * DLD-FUNCTIONS/besselj.cc (besselh): Use K arg. |
|
686 From: Thomas Stuart <tstuart@ing.sun.ac.za>. |
|
687 |
|
688 * oct-stream.cc (get_size): Don't allow [Inf, N] as a size |
|
689 specification for the read and scanf functions. |
|
690 (get_size): SIZE is now an Array<double> instead of a Matrix object. |
|
691 (read): Likewise. Change all callers. |
|
692 (scanf): Likewise. Change all callers. |
|
693 |
3808
|
694 2001-03-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
695 |
|
696 * DLD-FUNCTIONS/det.cc (Fdet): Only return rcond if nargout > 1. |
|
697 * DLD-FUNCTIONS/inv.cc (Finv): Only return rcond if nargout > 1. |
|
698 |
|
699 2001-03-26 Paul Kienzle <pkienzle@kienzle.powernet.co.uk> |
|
700 |
|
701 * DLD-FUNCTIONS/det.cc (Fdet): Suppress warning, but return rcond. |
|
702 * DLD_FUNCTIONS/inv.cc (Finv): Return rcond if requested. |
|
703 |
3804
|
704 2001-02-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
705 |
3805
|
706 * pt.h (tree::break_statement): New static member. |
|
707 (tree::break_function): Make const. |
|
708 * pt.cc (tree::break_statement): Initialize here. |
|
709 (tree::break_function): Make const. |
|
710 * pb-bp.h (break_statement): Delete global varaible declaration. |
|
711 * pt-bp.cc (break_statement): Delete global variable definition. |
|
712 |
|
713 * pt-bp.h (tree_breakpoint::bp_list): Rename from lst. |
|
714 |
|
715 * pt.h: Don't inlcude ov-usr-fcn.h. |
|
716 Provide forward declaration of octave_user_function class. |
|
717 |
|
718 2001-02-28 Ben Sapp <bsapp@lanl.gov> |
|
719 |
|
720 * debug.cc (get_user_function): Simplify by using curr_function. |
|
721 (Fdbg_where): New function. |
|
722 (Fdbg_list): Now DLD_TEXT instead of DLD_FCN. |
|
723 (Fdbg_set): Likewise. |
|
724 (Fdbg_delete): Likewise. |
|
725 |
|
726 * pt-bp.h (break_statement): New global variable. |
|
727 (MAYBE_DO_BREAKPOINT): Check for dbg_next and dbg_step. |
|
728 Print line, column, and current statement. |
|
729 * pt-bp.cc (break_statement): New global variable |
|
730 (tree_breakpoint::visit_do_until_command): Return immediately if |
|
731 we've already found the line. |
|
732 (tree_breakpoint::visit_colon_expression): Set breakpoint info here. |
|
733 (tree_breakpoint::visit_binary_expression): Recurse here when |
|
734 checking for breakpoints. |
|
735 |
|
736 * debug.cc: Move here from DLD-FUNCTIONS/debug.cc. |
|
737 * Makefile.in (DIST_SRC): Add it to the list. |
|
738 (DLD_XSRC): Delete it from the list. |
|
739 |
|
740 * pt.h (tree::last_line, tree::break_function): New static members. |
|
741 * pt.cc(tree::last_line, tree::break_function): Initialize them. |
|
742 |
|
743 * pt-cell.h (tree_cell::tree_cell): Accept line and column info. |
|
744 * pt-mat.h (tree_matrix::tree_matrix): Likewise. |
|
745 |
|
746 * ov-usr-fcn.h (octave_user_function::sym_tab): Delete. |
|
747 |
|
748 * input.cc (get_user_input): Handle dbg_next. |
|
749 Set tree:break_function and tree::last_line when doing dbg_step. |
|
750 |
|
751 2001-02-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
752 |
|
753 * lex.l (handle_string): Save line and column information in token. |
|
754 (is_keyword): Save line and column information for plot style and |
|
755 axes tokens. |
|
756 |
3804
|
757 * toplev.cc (main_loop): Set retval to non-zero value if error |
|
758 occurs when not interactive. |
|
759 |
3802
|
760 2001-02-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
761 |
|
762 * parse.y (gobble_leading_white_space): Handle CRLF here too. |
|
763 * lex.l (check_for_garbage_after_fcn_def): Likewise. |
|
764 |
|
765 * lex.l: Add numeric value of character to error message for |
|
766 unrecognized characters. |
|
767 |
3800
|
768 2001-02-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
769 |
|
770 * DLD-FUNCTIONS/minmax.cc (EMPTY_RETURN_CHECK): For empty matrix |
|
771 args, make Octave's min and max behave like Matlab. |
|
772 |
3799
|
773 2001-02-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
774 |
|
775 * OPERATORS/op-s-s.cc (el_or, el_and): Return bool value. |
|
776 |
3798
|
777 2001-02-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
778 |
|
779 * pt-binop.cc (tree_boolean_expression::rvalue): |
|
780 Don't cast result to double. |
|
781 |
|
782 * OPERATORS/op-b-b.cc: Allow & and | operators to return bool values. |
|
783 |
|
784 2001-02-09 John W. Eaton <jwe@bevo.che.wisc.edu> |
3797
|
785 |
|
786 * data.cc (DATA_REDUCTION): Undo previous change. |
|
787 |
|
788 2001-02-13 Matthew W. Roberts <matt@nephi.tamu.edu> |
|
789 |
|
790 * load-save.cc (Fload): Accept -4 as an alias for -v4 and -mat4-binary. |
|
791 (Fsave): Likewise. |
|
792 |
3796
|
793 2001-02-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
794 |
|
795 * lex.l (lexical_feedbac::init): |
|
796 Initialize looking_at_matrix_or_assign_lhs too. |
|
797 |
3795
|
798 2001-02-09 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
799 |
|
800 * data.cc (DATA_REDUCTION): Allow FCN(x,0) to be equivalent to FCN(x). |
|
801 |
3779
|
802 2001-02-06 Mumit Khan <khan@nanotech.wisc.edu> |
|
803 |
|
804 * oct-stream.cc (octave_scan): Partially implement and specialize |
|
805 for char*. Delete the old template instantiations. |
|
806 (BEGIN_S_CONVERSION): Use strings instead of ostrstreambuf. |
|
807 (octave_base_stream::do_scanf): Pass correct parameter to |
|
808 do_scan_conv. |
|
809 |
3775
|
810 2001-02-05 Mumit Khan <khan@nanotech.wisc.edu> |
|
811 |
3776
|
812 * pr-output.cc (set_format): Add std:: namespace qualifier as |
|
813 needed. |
|
814 |
3775
|
815 * oct-stream.cc (octave_scan): Implement, and specialize for |
|
816 char*. Delete the old template instantiations. |
|
817 (BEGIN_S_CONVERSION): Use strings instead of ostrstreambuf. |
|
818 (octave_base_stream::do_scanf): Pass correct parameter to |
|
819 do_scan_conv. |
|
820 |
|
821 * Makefile.in (TEMPLATE_AR, TEMPLATE_ARFLAGS): Use to create |
|
822 archive libraries containing templates. |
|
823 |
|
824 * c-file-ptr-stream.h: Include <fstream>. Use <cstdio> instead of |
|
825 <stdio.h> |
|
826 (c_file_ptr_buf::int_type): Compat typedef for non-ISO libstdc++. |
|
827 (c_file_ptr_buf::{overflow, underflow, uflow, pbackfail): Use. |
|
828 (c_file_ptr_buf::c_file_ptr_buf): Handle various compilers. |
|
829 (c_file_ptr_buf::file_number): New member function. |
|
830 (c_file_ptr_buf::fd): New private data. |
|
831 (i_c_file_ptr_stream::i_c_file_ptr_stream): Initialize stream |
|
832 correctly. |
|
833 (o_c_file_ptr_stream::o_c_file_ptr_stream): Likewise. |
|
834 * c-file-ptr-stream.cc |
|
835 (c_file_ptr_buf::{overflow, underflow, uflow, pbackfail): Add |
|
836 ISO-compliant EOF handling. |
|
837 * oct-stream.cc (octave_base_stream::file_number): Use |
|
838 c_file_ptr_buf::file_number to get underlying file descriptor. |
|
839 |
|
840 * comment-list.cc: Add missing class qualifier. |
|
841 |
|
842 * file-io.cc, load-save.cc, mappers.cc, oct-fstrm.cc, oct-fstrm.h, |
|
843 oct-iostrm.cc, oct-iostrm.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
844 oct-stream.cc, oct-stream.h, oct-strstrm.cc, oct-strstrm.h, |
|
845 ov-base-nd-array.cc, ov-base-scalar.h, ov-complex.cc, ov-cx-mat.cc, |
|
846 pager.cc, pr-output.cc, procstream.h, pt-bp.h, utils.cc: |
|
847 Add std:: namespace qualifier as needed, and replace |
|
848 deprecated or invalid libstdc++-v2 names with standard ones |
|
849 where appropriate. |
|
850 |
|
851 * DLD-FUNCTIONS/minmax.cc: Fix docstring. |
|
852 |
|
853 * oct-fstrm.cc (octave_fstream::octave_fstream): Maintain fix for |
|
854 libstdc++-v2. |
|
855 |
|
856 * oct-stdstrm.cc (octave_ostdiostream::create): Remove default |
|
857 parameter value in definition. |
|
858 |
|
859 * oct-stream.cc (octave_stream::mode_as_string): Don't assume |
|
860 std::iso::openmode is an integral quantity. |
|
861 |
|
862 * pager.cc, procstream.h: Initialize streams correctly. |
|
863 |
|
864 * utils.cc: Use CXX_ISO_COMPLIANT_LIBRARY guard. |
|
865 |
|
866 * ov-base-nd-array.cc (idx_list_to_idx_array): Inline. |
|
867 |
|
868 * ov-base-scalar.h (octave_base_scalar::octave_base_scalar): Use |
|
869 ``const ST& s'' instead of ST to workaround gcc3 complex bug. |
|
870 |
3774
|
871 2001-02-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
872 |
|
873 * lex.l (next_token_is_bin_op): Remove Checks for spacing except |
|
874 for ops that begin with +, - but are not ++, --, +=, or -=. |
|
875 |
3772
|
876 2001-02-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
877 |
|
878 * input.cc (get_user_input): Handle dbg_cont and dbg_step here. |
|
879 * debug.cc (Fdbg_cont): Delete. |
|
880 * pt-bp.h (MAYBE_DO_BREAKPOINT): Check tree::break_next here. |
|
881 * pt.h (tree::break_next): New static member. |
|
882 * pt.cc: Initialize it. |
|
883 |
|
884 * parse.h (feval (const octave_value_list&, int)): |
|
885 Set default value for nargout. |
|
886 (feval (const std::string&, const octave_value_list&, int)): |
|
887 Set default values for args and nargout. |
|
888 |
3770
|
889 2001-02-01 Ben Sapp <bsapp@lanl.gov> |
|
890 |
|
891 * DLD-FUNCTIONS/debug.cc: New file. |
|
892 * pt-bp.h, pt-bp.cc: New files, for breakpoints. |
|
893 * Makefile.in: Add them to the appropriate lists. |
|
894 |
|
895 * pt-stmt.cc (tree_statement_list::set_breakpoint, |
|
896 tree_statement_list::delete_breakpoint, |
|
897 tree_statement_list::list_breakpoints): New functions. |
|
898 |
|
899 * pt.h (tree::break_point): New data member. |
|
900 (tree::set_breakpoint, tree::delete_breakpoint, tree::is_breakpoint): |
|
901 New virtual functions. |
|
902 |
|
903 * pt-mat.cc (tree_matrix::rvalue): Check for breakpoint here. |
|
904 * pt-unop.cc (tree_prefix_expression::rvalue): Likewise. |
|
905 (tree_postfix_expression::rvalue): Likewise. |
|
906 * pt-loop.cc (tree_do_until_command::eval): Likewise. |
|
907 (DO_LOOP): Likewise. |
|
908 (tree_simple_for_command::eval): Likewise. |
|
909 (tree_complex_for_command::eval): Likewise. |
|
910 * pt-assign.cc (tree_simple_assignment::rvalue): Likewise. |
|
911 * pt-binop.cc (tree_binary_expression::rvalue): Likewise. |
|
912 (tree_boolean_expression::rvalue): Likewise. |
|
913 * pt-cell.cc (tree_cell::rvalue): Likewise. |
|
914 * pt-colon.cc (tree_colon_expression::rvalue): Likewise. |
|
915 * pt-except.cc (tree_try_catch_command::eval): Likewise. |
|
916 (tree_unwind_protect_command::eval): Likewise. |
|
917 * pt-id.cc (tree_identifier::rvalue): Likewise. |
|
918 (tree_identifier::lvalue): Likewise. |
|
919 * pt-indir.cc (tree_indirect_ref::rvalue): Likewise. |
|
920 * pt-jump.cc (tree_break_command::eval): Likewise. |
|
921 (tree_continue_command::eval): Likewise. |
|
922 (tree_return_command::eval): Likewise. |
|
923 |
3767
|
924 2001-01-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
925 |
|
926 * Map.h, Map.cc (CHMap<C>::operator = (const CHMap&)): New function. |
|
927 (Map<C>::operator = (const Map&)): Likewise. |
|
928 (Map<C> (const Map&)): Likewise. |
|
929 |
|
930 * OPERATORS/op-cm-cs.cc, OPERATORS/op-cm-s.cc, |
|
931 OPERATORS/op-m-cs.cc, OPERATORS/op-m-s.cc: |
|
932 Make ldiv operator work for row vector by scalar ops. |
|
933 |
|
934 * OPERATORS/op-cs-cm.cc, OPERATORS/op-cs-m.cc, |
|
935 OPERATORS/op-s-cm.cc, OPERATORS/op-s-m.cc: |
|
936 Make div operator work for scalar by column vector ops. |
|
937 |
3765
|
938 2001-01-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
939 |
|
940 * parse.y (safe_fclose): Discard comments at the end of a file. |
|
941 |
3764
|
942 2001-01-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
943 |
|
944 * error.cc (pr_where): Call pr_where_1 with two args, not one, to |
|
945 avoid processing format escapes that might appear in formatted code. |
|
946 |
3762
|
947 2001-01-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
948 |
|
949 * error.cc (vwarning): Write to output_buf, then send formatted |
|
950 message to diary and error streams. |
|
951 |
3760
|
952 2001-01-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
953 |
|
954 * ov-cx-mat.cc (octave_complex_matrix::try_narrowing_conversion): |
|
955 Handle empty matrix dimensions correctly. |
|
956 |
3756
|
957 2000-12-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
958 |
|
959 * pager.h (octave_pager_buf::diary_skip): New data member. |
|
960 (octave_pager_buf::octave_pager_buf): Initialize it. |
|
961 * pager.cc (octave_pager_buf::set_diary_skip): New function. |
|
962 (octave_pager_stream::set_diary_skip): New function. |
|
963 (octave_pager_buf::sync): Call flush_current_contents_to_diary |
|
964 instead of octave_diary.write. |
|
965 (octave_pager_buf::flush_current_contents_to_diary): Use |
|
966 diary_skip, reset when done. |
|
967 (open_diary_file): Call octave_stdout.set_diary_skip here. |
|
968 |
3747
|
969 2000-12-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
970 |
|
971 * DLD-FUNCTIONS/minmax.cc (EMPTY_RETURN_CHECK): New macro. |
|
972 (min, max): Use it. |
|
973 |
|
974 * DLD-FUNCTIONS/minmax.cc (MINMAX_BODY): New macro. If single arg |
|
975 is empty, return empty matrix result and empty matrix for index. |
|
976 (Fmin, Fmax): Use MINMAX_BODY, so we have consistent definition |
|
977 for min and max functions. |
|
978 |
|
979 2000-11-30 Joerg Specht <joerg.specht@ins.uni-stuttgart.de> |
|
980 |
|
981 * help.cc (display_help_text): Append new line at end of doc string. |
|
982 |
|
983 2000-11-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
984 |
|
985 * DLD-FUNCTIONS/lsode.cc (LSODE_ABORT1, LSODE_ABORT2): Omit `##' |
|
986 in macro definition since they are not needed to paste strings |
|
987 together and picky compilers choke on them. |
|
988 * DLD-FUNCTIONS/quad.cc (QUAD_ABORT1, QUAD_ABORT2): Likewise. |
|
989 * DLD-FUNCTIONS/fsolve.cc (FSOLVE_ABORT1, FSOLVE_ABORT2): Likewise. |
|
990 * DLD-FUNCTIONS/dassl.cc (DASSL_ABORT1, DASSL_ABORT2): Likewise. |
|
991 |
3741
|
992 2000-11-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
993 |
3744
|
994 * mkbuiltins (XDEFUNX_INTERNAL): New macro. |
3746
|
995 * mkgendoc (XDEFUNX_INTERNAL): Likewise. |
3744
|
996 * defun-int.h (DEFUNX_INTERNAL): Use it. |
|
997 |
3743
|
998 * defun.h (DEFUNX): New macro. |
|
999 * defun-int.h (DEFUNX_INTERNAL, DECLARE_FUNX): New macro. |
|
1000 (DECLARE_FUN): Define in terms of DECLARE_FUNX. |
|
1001 |
3742
|
1002 * mkdefs: Read and print one line at a time, so we can force |
|
1003 patterns to match only at the beginning of a line. |
|
1004 |
3741
|
1005 * defun-int.h (UNDERSCORIFY): Omit `##' in macro definition since |
|
1006 they are not needed to paste strings together and picky compilers |
|
1007 choke on them. |
|
1008 |
3738
|
1009 2000-11-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1010 |
|
1011 * load-save.cc (save_ascii_data_for_plotting): New function. |
|
1012 * pt-plot.cc (save_in_tmp_file): Use it instead of save_ascii_data. |
|
1013 |
|
1014 * load-save.cc (save_ascii_data): Warn if saving Inf or NaN values. |
|
1015 New arg, infnan_warned. Use it to warn just once per set. |
|
1016 Now static. |
|
1017 (do_save): New arg, infnan_warned. Pass to save_ascii_data. |
|
1018 (save_vars): Initialize infnan_warned here, pass to do_save. |
|
1019 |
3737
|
1020 2000-11-16 Paul Kienzle <pkienzle@kienzle.powernet.co.uk> |
|
1021 |
|
1022 * file-io.cc (Ffprintf): If no file id parameter, don't return |
|
1023 count of characters if nargout is 0 (for compatibility with |
|
1024 Matlab). |
|
1025 |
|
1026 2000-11-16 Ben Sapp <bsapp@lanl.gov> |
|
1027 |
|
1028 * DLD-FUNCTIONS/rand.cc (do_rand): Declare loop counter as |
|
1029 volatile int, not just volatile. |
|
1030 |
3731
|
1031 2000-10-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1032 |
|
1033 * load-save.cc (skip_comments): Allow % as comment character too. |
|
1034 (extract_keyword): Likewise. |
|
1035 |
|
1036 * Makefile.in (oct-gperf.h): Remove -a, -g, and -p flags for gperf. |
|
1037 |
3727
|
1038 2000-10-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1039 |
|
1040 * load-save.cc (do_load): Allow result to be returned instead of |
|
1041 inserting variables in the symbol table. Change patterned after |
|
1042 patch by Kian Ming Adam Chai <caijianming@yahoo.co.uk>. |
|
1043 |
3726
|
1044 2000-10-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1045 |
|
1046 * Makefile.in (ops.cc): Don't substitute BLAS_LIBS and LIBS here. |
|
1047 |
|
1048 * oct-conf.h.in (OCTAVE_CONF_SPECIAL_MATH_LIB): Delete. |
|
1049 (OCTAVE_CONF_BLAS_LIBS): Add. |
|
1050 * toplev.cc (octave_config_info): Likewise, add BLAS_LIBS and |
|
1051 remove SPECIAL_MATH_LIB from the struct. |
|
1052 |
|
1053 * parse.y (feval (const octave_value_list&, int)): Don't panic |
|
1054 while processing arg names if arg.length() and arg_names.length() |
|
1055 differ. |
|
1056 |
3724
|
1057 2000-10-12 Paul Kienzle <pkienzle@kienzle.powernet.co.uk> |
|
1058 |
|
1059 * ov-cell.h (octave_cell::is_cell): New function. |
|
1060 |
|
1061 * pt-select.cc (equal): New static function. |
|
1062 (tree_switch_case::label_matches): Use it to compare case label |
|
1063 against arg. Handle cell arrays as case labels. |
|
1064 |
3723
|
1065 2000-10-12 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1066 |
|
1067 Change patterned after patch by Cai Jianming |
|
1068 <caijianming@yahoo.co.uk> to support for DIM arg in 2.0.x sources. |
|
1069 |
|
1070 * data.cc (DATA_REDUCTION): New macro. Handle second DIM arg here. |
|
1071 (Fcumprod): Replace function body with DATA_REDUCTION. |
|
1072 (Fcumsum): Likewise. |
|
1073 (Fprod): Likewise. |
|
1074 (Fsum): Likewise. |
|
1075 (Fsumsq): Likewise. |
|
1076 |
3719
|
1077 2000-10-10 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1078 |
|
1079 * error.cc (pr_where_2): New function. |
|
1080 (pr_where_1): Use it instead of error_1 to avoid setting error_state. |
|
1081 |
|
1082 2000-10-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1083 |
|
1084 * xdiv.cc (xdiv): Warn if execution falls through to lssolve. |
|
1085 |
3716
|
1086 2000-09-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1087 |
|
1088 * utils.cc (FERRNO): New function (currently commented out). |
|
1089 |
|
1090 * c-file-ptr-stream.cc (c_file_ptr_buf::close): Call flush here. |
|
1091 (c_file_ptr_buf::~c_file_ptr_buf): Not here. |
|
1092 * c-file-ptr-stream.h (c_fie_ptr_buf::close_fcn): New typedef. |
|
1093 (c_file_ptr_buf::cf): New data member. Add default constructor arg. |
|
1094 (class c_file_ptr_buf): Derive from filebuf, not streambuf. |
|
1095 (i_c_file_ptr_stream, o_c_file_ptr_stream): Handle close function here. |
|
1096 * oct-procstrm.cc (octave_iprocstream, octave_oprocstream): Likewise. |
|
1097 (octave_iprocstream::do_close, octave_oprocstream::do_close): Delete. |
|
1098 * oct-stdstrm.cc (octave_base_stdiostream::~octave_base_stdiostream): |
|
1099 Don't do anything. |
|
1100 (octave_istdiostream::create): Handle close function here. |
|
1101 (octave_istdiostream::octave_istdiostream): Likewise. |
|
1102 (octave_ostdiostream::create): Likewise. |
|
1103 (octave_ostdiostream::octave_ostdiostream): Likewise. |
|
1104 (class octave_base_stdiostream): Don't cache FILE pointer here. |
|
1105 |
3715
|
1106 2000-09-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1107 |
|
1108 * syscalls.cc (Ffcntl): Don't assume that the file id passed in is |
|
1109 the same as the underlying system file id. |
|
1110 |
3712
|
1111 2000-08-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1112 |
|
1113 * parse.y: Use octave_time, not time. |
|
1114 |
3711
|
1115 2000-08-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1116 |
|
1117 * oct-stream.cc (printf_value_cache::double_value): Also set |
|
1118 curr_stat to conversion_error if there are no values at all. |
|
1119 |
3710
|
1120 2000-08-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1121 |
|
1122 * dirfns.cc (Flink, Fsymlink, Freadlink): New functions. |
|
1123 |
3709
|
1124 2000-08-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1125 |
|
1126 * load-save.cc (Vsave_header_format_string): New variable. |
|
1127 (symbols_of_load_save): DEFVAR it. |
|
1128 (save_header_format, default_save_header_format): New functions. |
|
1129 (write_header): Use Vsave_header_format_string here. |
|
1130 |
3707
|
1131 2000-07-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1132 |
3708
|
1133 * pt-pr-code.h (tree_print_code::curr_print_indent_level, |
|
1134 (tree_print_code::beginning_of_line): No longer static. |
|
1135 (tree_print_code::tree_print_code): Initialize them here. |
|
1136 * pt-pr-code.cc: Not here. |
|
1137 |
|
1138 * pt-stmt.cc (tree_statement::eval): Set curr_statement here. |
|
1139 (tree_statement_list::eval): Not here. |
|
1140 |
3707
|
1141 Debug-on-error stuff based on a patch submitted by Paul Kienzle |
|
1142 <pkienzle@kienzle.powernet.co.uk> for 2.0.x. |
|
1143 |
|
1144 * error.cc (Vdebug_on_warning): New static flag variable. |
|
1145 (debug_on_warning): New function. |
|
1146 (symbols_of_warning): DEFVAR debug_on_warning. |
|
1147 (warning): Handle debug_on_warning here. |
|
1148 |
|
1149 * input.cc (do_keyboard): New function. |
|
1150 (Fkeyboard): Use it to do the real work. |
|
1151 * pt-stmt.cc (curr_statement): New static variable. |
|
1152 (tree_statement::eval): Save and restore it here. |
|
1153 * error.cc (Vdebug_on_error): New static flag variable. |
|
1154 (debug_on_error): New function. |
|
1155 (symbols_of_error): DEFVAR debug_on_error. |
|
1156 (pr_where, pr_where_1): New functions. |
|
1157 (error): Handle debug_on_error here. |
|
1158 |
3705
|
1159 2000-07-20 Joao Cardoso <jcardoso@inescporto.pt> |
|
1160 |
|
1161 * Makefile.in (octave): Link with $(LD_CXX) instead of $(CXX) |
|
1162 |
3704
|
1163 2000-07-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1164 |
|
1165 * oct-stream.cc (octave_base_stream::oscanf): Advance to next |
|
1166 format element before attempting to pick up any trailing stuff. |
|
1167 |
3697
|
1168 2000-07-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1169 |
3698
|
1170 * lex.l (next_token_is_bin_op): Don't recognize `..' as a binary op. |
|
1171 |
3697
|
1172 * load-save.cc (get_file_format): Call read_mat5_binary_file_header |
|
1173 with third arg true instead of false, so we don't barf if the file |
|
1174 is not a matlab v5 binary file. |
|
1175 |
3695
|
1176 2000-07-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1177 |
|
1178 * Makefile.in (octave): Link to ../libcruft/blas-xtra/xerbla.o here. |
|
1179 |
|
1180 * octave.cc (main): Remove kluge to attempt linking our version of |
|
1181 xerbla. |
|
1182 |
|
1183 2000-07-07 Steven G. Johnson <stevenj@alum.mit.edu> |
|
1184 |
|
1185 * load-save.cc (have_h5giterate_bug): New file-scope variable. |
|
1186 (hdf5_read_next_data): Only increment current_item if |
|
1187 have_h5giterate_bug is true. |
|
1188 (read_hdf5_data): Set have_h5giterate_bug here. |
|
1189 Only increment hs.current_item if have_h5giterate_bug is true. |
|
1190 |
3693
|
1191 2000-07-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1192 |
|
1193 * c-file-ptr-stream.cc (c_file_ptr_buf::close): |
|
1194 Return -1 if file pointer is NULL. |
|
1195 Set file pointer to 0 after closing. |
|
1196 (c_file_ptr_buf::~c_file_ptr_buf): Call close after flushing. |
|
1197 |
3694
|
1198 2000-07-05 Steven G. Johnson <stevenj@alum.mit.edu> |
3692
|
1199 |
|
1200 * Makefile.in (BLAS_LIBS): Substitute here. |
|
1201 (octave): Use $(BLAS_LIBS) in the final link command. |
|
1202 |
3694
|
1203 2000-06-30 Steven G. Johnson <stevenj@alum.mit.edu> |
3690
|
1204 |
|
1205 * Makefile.in (octave): Link $(FLIBS) last. |
|
1206 * octave.cc (main): Force our own xerbla to be linked instead of |
|
1207 some system version. |
|
1208 |
3688
|
1209 2000-06-29 James R. Van Zandt <jrv@vanzandt.mv.com> |
|
1210 |
3689
|
1211 * load-save.cc (load_save_format): New value, LS_MAT5_BINARY. |
3688
|
1212 (arrayclasstype, mat5_data_type): New enums. |
|
1213 (read_mat5_binary_data): New function. |
|
1214 (read_mat5_tag): New function. |
|
1215 (read_mat5_binary_element): New function. |
|
1216 (read_mat5_binary_file_header): New function. |
|
1217 (get_file_format): Check for mat5 binary format too. |
|
1218 (do_load): Handle mat5 binary format. |
|
1219 (write_mat5_tag): New function. |
|
1220 (write_mat5_array): New function. |
|
1221 (class mat5_callback): New class. |
|
1222 (save_mat5_binary_element): New functnon. |
|
1223 (do_save): Handle mat5 binary format. |
|
1224 (write_header): Handle LS_MAT5_BINARY case too. |
|
1225 (save_user_variables): Handle LS_MAT5_BINARY case too. |
|
1226 (Fsave): Handle LS_MAT5_BINARY case too. |
|
1227 (Fload): Handle LS_MAT5_BINARY case too. |
|
1228 |
3694
|
1229 2000-06-29 Steven G. Johnson <stevenj@alum.mit.edu> |
3687
|
1230 |
|
1231 All of the following changes are protected by #ifdef HAVE_HDF5. |
|
1232 |
|
1233 * load-save.cc (load_save_format): New value, LS_HDF5. |
|
1234 (make_valid_identifier): New function. |
|
1235 (class hdf5_fstreambase, class hdf5_ifstream, class hdf5_ofstream): |
|
1236 New classes for reading and writing hdf5 data. |
|
1237 (hdf5_types_compatible): New function. |
|
1238 (hdf5_import_multidim): New function. |
|
1239 (hdf5_check_attr): New function. |
|
1240 (hdf5_read_next_data): New function. |
|
1241 (hdf5_make_complex_type): New function. |
|
1242 (hdf5_make_range_type): New function. |
|
1243 (read_hdf5_data): New function. |
|
1244 (get_file_format): Handle HDF5 format. |
|
1245 (do_load): Handle LS_HDF5 case. |
|
1246 (Fload): Handle HDF5 format. |
|
1247 (hdf5_add_attr): New function. |
|
1248 (save_type_to_hdf5): New function. |
|
1249 (add_hdf5_data): New function. |
|
1250 (do_save): Handle HDF5 format. |
|
1251 (get_default_save_format): Handle LS_HDF5 case. |
|
1252 (write_header): Handle LS_HDF5 case. |
|
1253 (save_user_variables): Handle HDF5 format. |
|
1254 (Fsave): Handle HDF5 format. |
|
1255 |
3686
|
1256 2000-06-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1257 |
|
1258 * help.cc (display_help_text): If writing to filter fails, send |
|
1259 unformatted text to output stream. |
|
1260 |
3683
|
1261 2000-06-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1262 |
3685
|
1263 * OPERATORS/op-bm-bm.cc (eq): Define using mx_el_eq, not operator ==. |
|
1264 (ne): Likewise, use mx_el_ne, not operator !=. |
|
1265 |
3683
|
1266 * pr-output.cc (Fdisp): Delete. |
|
1267 |
3681
|
1268 2000-06-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1269 |
3682
|
1270 * pr-output.cc (float_format::float_format): Set default values |
|
1271 for width and precision to -1. |
|
1272 (operator << (ostream&, pr_formatted_float&): Set width and |
|
1273 precision if values are >= 0. |
|
1274 (set_real_format, set_real_matrix_format, set_range_format, |
|
1275 set_complex_format, set_complex_matrix_format): If we have all |
|
1276 integers, infinities, or nans, set precision equal to field width. |
|
1277 |
|
1278 * load-save.cc (read_ascii_data): Allow empty strings and string |
|
1279 vectors to be restored. |
|
1280 |
3681
|
1281 * variables.cc (var_matches_any_pattern): New function. |
|
1282 (Fclear): Use it to make exclusive clear work correctly. |
|
1283 |
3676
|
1284 2000-06-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1285 |
3678
|
1286 * ov-range.h (octave_range::is_numeric_type): New function. |
|
1287 |
3676
|
1288 * sysdep.cc (Fkbhit): Also ask for input if forced_interactive. |
|
1289 |
3675
|
1290 2000-06-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1291 |
|
1292 * Makefile.in (oct-gperf.h): Use $(GPERF) instead of gperf. |
|
1293 |
3671
|
1294 2000-05-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1295 |
|
1296 * DLD-FUNCTIONS/qz.cc (Fqz): When computing finite generalized |
|
1297 eigenvalues, don't write past the end of the array. |
|
1298 |
3665
|
1299 2000-05-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1300 |
|
1301 * ov-base-nd-array.h, ov-base-nd-array.cc, ov-re-nd-array.h, |
|
1302 ov-re-nd-array.h: New files. |
|
1303 * Makefile.in: Add them to the appropriate lists. |
|
1304 |
|
1305 * pt-stmt.h, pt-stmt.cc (class tree_statement): |
|
1306 Store comments associated with this parse tree element. |
|
1307 * pt-select.h, pt-select.cc (class tree_if_clause, |
|
1308 class tree_if_command, class tree_switch_case |
|
1309 class tree_switch_command): Likewise. |
|
1310 * pt-loop.h, pt-loop.cc (class tree_while_command, |
|
1311 class tree_do_until_command, class tree_simple_for_command, |
|
1312 class tree_complex_for_command): Likewise. |
|
1313 * pt-except.h, pt-except.cc (class tree_try_catch_command, |
|
1314 class tree_unwind_protect_command): Likewise. |
|
1315 * ov-usr-fcn.h, ov-usr-fcn.cc (class octave_user_function): Likewise. |
|
1316 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::print_comment_elt, |
|
1317 tree_print_code::print_comment_list, |
|
1318 tree_print_code::print_indented_comment): New functions. |
|
1319 (tree_print_code::visit_simple_for_command, |
|
1320 tree_print_code::visit_complex_for_command, |
|
1321 tree_print_code::visit_octave_user_function_header, |
|
1322 tree_print_code::visit_octave_user_function_trailer, |
|
1323 tree_print_code::visit_if_command, tree_print_code::visit_statement, |
|
1324 tree_print_code::visit_switch_case, |
|
1325 tree_print_code::visit_switch_command, |
|
1326 tree_print_code::visit_try_catch_command, |
|
1327 tree_print_code::visit_unwind_protect_command |
|
1328 tree_print_code::visit_while_command, |
|
1329 tree_print_code::visit_do_until_command): Handle comments. |
|
1330 * lex.l, parse.y: Handle comments in parse trees. |
|
1331 * comment-list.h, comment-list.cc: New files. |
|
1332 * Makefile.in: Add them to the appropriate lists. |
|
1333 |
3661
|
1334 2000-04-23 etienne grossmann <etienne@anonimo.isr.ist.utl.pt> |
|
1335 |
|
1336 * pt-mat.cc (tm_row_const::tm_row_const_rep::eval_error): |
|
1337 New args x and y, for dimension mismatch info. |
|
1338 Change callers where appropriate. |
|
1339 (tm_const::init): Report mismatched column dimensions. |
|
1340 |
3658
|
1341 2000-04-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1342 |
|
1343 * sysdep.cc (kbhit): Also clear cin if at EOF. |
|
1344 |
3657
|
1345 2000-04-11 Joao Cardoso <jcardoso@inescn.pt> |
|
1346 |
|
1347 * sysdep.cc (kbhit): New arg, wait. |
|
1348 (raw_mode): Ditto. |
|
1349 (Fkbhit): If given an arg, call kbhit with wait = false. |
|
1350 |
|
1351 * DLD-FUNCTIONS/minmax.cc (Fmax, Fmin): Fix doc string. |
|
1352 |
3656
|
1353 2000-04-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1354 |
|
1355 * dynamic-ld.cc (octave_dynamic_loader::do_load): Undo previous change. |
|
1356 |
3655
|
1357 2000-04-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1358 |
|
1359 * dynamic-ld.cc (octave_dynamic_loader::do_load): Also fail with |
|
1360 error message if we don't find the mangled function name in the |
|
1361 file. |
|
1362 |
3652
|
1363 2000-03-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1364 |
3653
|
1365 * oct-stream.cc (printf_value_cache::string_value): Return string |
|
1366 matrices in a Matlab-compatible way. |
|
1367 (printf_value_cache): Redesign the way list_exhausted works. |
|
1368 |
3652
|
1369 * oct-fstrm.cc (octave_fstream::do_close): New function. |
|
1370 * oct-stdstrm.cc (octave_istdiostream::do_close): Ditto. |
|
1371 (octave_ostdiostream::do_close): Ditto. |
|
1372 * c-file-ptr-stream.cc (c_file_ptr_buf::close): Ditto. |
|
1373 (i_c_file_ptr_stream::close): Ditto. |
|
1374 (o_c_file_ptr_stream::close): Ditto. |
|
1375 * oct-prcstrm.cc (octave_iprocstream::do_close): Ditto. |
|
1376 (octave_oprocstream::do_close): Ditto. |
|
1377 (octave_iprocstram::~octave_iprocstram): Call do_close here. |
|
1378 (octave_iprocstram::~octave_oprocstram): Likewise. |
|
1379 |
|
1380 * oct-stream.h (octave_base_stream::do_close): New virtual function. |
|
1381 (octave_base_stream::close): If stream is open, call do_close. |
|
1382 |
|
1383 * c-file-ptr-stream.cc (c_file_ptr_buf::flush): New function. |
|
1384 (c_file_ptr_buf::~c_file_ptr_buf): Use it. |
|
1385 (c_file_ptr_buf::overflow): Ditto. |
|
1386 (c_file_ptr_buf::sync): Ditto. |
|
1387 |
3649
|
1388 2000-03-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1389 |
|
1390 * oct-procbuf.cc (octave_procbuf::open): Make output streams line |
|
1391 buffered. |
|
1392 |
3640
|
1393 2000-03-24 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1394 |
3644
|
1395 * sighandlers.cc (my_friendly_exit): Prefix failure messages with |
|
1396 panic instead of error. |
|
1397 |
3642
|
1398 * c-file-ptr-stream.cc (c_file_ptr_buf::~c_file_ptr_buf): |
|
1399 Avoid dereferencing NULL pointer. |
|
1400 |
3640
|
1401 * oct-stream.cc (printf_format_list::add_elt_to_list, |
|
1402 printf_format_list::process_conversion, |
|
1403 printf_format_list::finish_conversion): New args, flags, fw, and prec. |
|
1404 (printf_format_list::printf_format_list): Save more complete info. |
|
1405 (printf_format_list::printme): Print flags, fw, and prec. |
|
1406 (octave_base_stream::printf): Simplify. |
|
1407 (do_printf_conv): Delete have_arg arg, since it is always true now. |
|
1408 (octave_base_stream::do_printf): Handle case of no args and % |
|
1409 directly instead of using do_printf_conv. |
|
1410 (printf_value_cache::exhausted): Rename from no_more_values. |
|
1411 (DO_PCT_CONVERSION): New macro |
|
1412 (octave_base_streain::do_scanf, octave_base_streain::do_oscanf): |
|
1413 Use it. |
|
1414 (scanf_format_list::finish_conversion): `%' counts as a conversion too. |
|
1415 Also don't forget to set type for it. |
|
1416 (OCTAVE_SCAN_0): Delete. |
|
1417 (OCTAVE_SCAN): Rename from OCTAVE_SCAN_1. |
|
1418 (octave_base_stream::scanf, octave_base_stream::oscanf): Don't |
|
1419 special-case number of conversions here. |
|
1420 (octave_base_stream::oscanf, octave_base_stream::do_oscanf): Only |
|
1421 cycle through fmt elements if the number of conversions is greater |
|
1422 than 0. |
|
1423 |
|
1424 * oct-stream.h (scanf_format_list::next): New arg, `cycle'. |
|
1425 (printf_format_list::next): New arg, `cycle'. |
|
1426 (printf_format_list::last_elt_p): New function. |
|
1427 (printf_format_elt): New fields fw, prec, and flags. |
|
1428 Define copy constructor and assignment operator. |
|
1429 (scanf_format_elt): Define copy constructor and assignment operator. |
|
1430 |
3627
|
1431 2000-03-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1432 |
3639
|
1433 * oct-stream.cc (OCTAVE_SCAN_0, OCTAVE_SCAN_1): New macros. |
|
1434 (do_scanf_conv, BEGIN_S_CONVERSION, BEGIN_CHAR_CLASS_CONVERSION, |
|
1435 do_scanf, scanf, do_oscanf, do_oscanf, oscanf): Use them instead |
|
1436 of calling istream::scan directly. |
|
1437 (octave_scan): New function. |
|
1438 (do_scanf_conv): Second arg is now scanf_format_elt instead of char*. |
|
1439 Change all callers. |
|
1440 |
3631
|
1441 * oct-procbuf.h, oct-procbuf.cc (octave_procbuf): |
|
1442 Derive from c_file_ptr_buf instead of filebuf. |
|
1443 |
3627
|
1444 * oct-stream.cc (octave_base_stream::printf): Use octave_format |
|
1445 instead of ostream::form. Return number of characters written. |
|
1446 |
3618
|
1447 2000-03-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1448 |
3620
|
1449 * oct-stream.cc (do_printf_conv): Use octave_format instead of |
|
1450 ostream::form. Return number of characters written. |
|
1451 (octave_base_stream::do_printf): Return number of characters written. |
|
1452 |
|
1453 * error.cc (verror, vwarning): Use octave_format instead of |
|
1454 ostream::vform. |
|
1455 |
|
1456 * utils.cc (octave_format, octave_vformat): New functions. |
|
1457 * cutils.c (octave_snprintf, octave_vsnprintf): New functions. |
|
1458 |
3618
|
1459 * oct-lvalue.h (dummy_val): New static variable. |
|
1460 (octave_lvalue::octave_lvalue): Use it to initialize val. |
|
1461 |
|
1462 * variables.cc (is_valid_function): Look in the global symbol |
|
1463 table for functions. |
|
1464 |
3615
|
1465 2000-03-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1466 |
3770
|
1467 * Makefile.in (LIBRARIES): Conditionally define. |
3615
|
1468 (libraries): Depend on $(LIBRARIES). |
|
1469 (octave): Depend on $(LIBRARIES), not libraries. Also depend on |
|
1470 stamp-prereq and stamp-oct-links. |
|
1471 (all): Don't depend on stamp-prereq or stamp-oct-links. |
|
1472 (liboctinterp.$(LIBEXT), liboctinterp.$(SHELXT)): Delete target |
|
1473 before rebuilding. |
|
1474 |
|
1475 2000-03-21 Ben Sapp <bsapp@nua.lampf.lanl.gov>: |
|
1476 |
3770
|
1477 * Makefile.in (libraries): Depend only on library targets, not |
3615
|
1478 archive members. |
|
1479 |
3611
|
1480 2000-03-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1481 |
3613
|
1482 * Makefile.in (objects): New target |
|
1483 |
3611
|
1484 * c_file_ptr_stream.h, c_file_ptr_stream.cc: New files. |
|
1485 * oct-stdstrm.h, oct-stdstrm.cc, oct-prcstrm.cc: |
|
1486 Use c_file_ptr_buf, i_c_file_ptr_stream, and o_c_fie_ptr_stream |
|
1487 instead of stdiobuf, istdiostream, and ostdiostream. |
|
1488 |
|
1489 * pr-output.cc (set_real_format, set_real_matrix_format, |
|
1490 set_complex_format, set_complex_matrix_format, set_range_format): |
|
1491 Do the right thing again for int, NaN, and Inf values. |
|
1492 |
3608
|
1493 2000-03-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1494 |
|
1495 * pr-output.cc (pr_plus_format): Rename from do_plus_format. |
|
1496 Change all callers. |
|
1497 (pr_float, pr_complex): New arg, scale. Handle scaling here. |
|
1498 (float_format): New class for managing details of formatting |
|
1499 floats. Use it instead of character string formats and the |
|
1500 nonstandard form() function from the GNU iostream library. |
|
1501 |
3601
|
1502 2000-02-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1503 |
|
1504 * Makefile.in (clean): Also delete gendoc. |
|
1505 |
3598
|
1506 2000-02-18 James R. Van Zandt <jrv@vanzandt.mv.com> |
|
1507 |
|
1508 * load-save.cc (Vcrash_dumps_octave_core): Fix comment for this var. |
|
1509 |
|
1510 2000-02-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1511 |
|
1512 * lex.l (handle_number): Don't transorm `[Dd]' to `e' if reading |
|
1513 hex. |
|
1514 |
3597
|
1515 2000-02-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1516 |
|
1517 * Makefile.in (install-inc): Install files in |
|
1518 $(octincludedir)/octave. |
|
1519 (uninstall): Remove them from the correct directory too. |
|
1520 |
|
1521 * defaults.h, defaults.cc (Vlocal_ver_arch_lib_dir): New variable. |
|
1522 * defaults.cc (set_default_local_ver_arch_lib_dir): New function. |
|
1523 (install_defaults): Call it. |
|
1524 (exec_path): Prepend the versioned form of the local arch lib |
|
1525 directory to the standard path. |
|
1526 * defaults.h.in (OCTAVE_LOCALVERARCHLIBDIR, |
|
1527 OCTAVE_LOCALVERFCNFILEDIR, OCTAVE_LOCALVEROCTFILEDIR): |
|
1528 Substitute these too. |
|
1529 * toplev.cc (Foctave_config_info): Add them to the struct. |
|
1530 |
3591
|
1531 2000-02-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1532 |
3597
|
1533 * toplev.cc (Foctave_config_info): Add MKOCTFILE_INCFLAGS to the |
|
1534 struct. |
3591
|
1535 * oct-conf.h.in (OCTAVE_CONF_MKOCTFILE_INCFLAGS): Define. |
|
1536 |
3584
|
1537 2000-02-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1538 |
3587
|
1539 * DLD-FUNCTIONS/balance.cc (Fbalance): Explicitly request |
|
1540 conversion from Matrix to ComplexMatrix. |
|
1541 * DLD-FUNCTIONS/qz.cc (Fqz): Likewise. |
|
1542 |
|
1543 * ov-re-mat.h (octave_matrix::complex_matrix_value): Explicitly |
|
1544 request conversion from Matrix type. |
|
1545 |
|
1546 * ov-ch-mat.h (octave_char_matrix::matrix_value): Explicitly |
|
1547 request conversion from charMatrix type. |
|
1548 (octave_char_matrix::complex_matrix_value): Likewise. |
|
1549 * ov-bool-mat.h (octave_bool_matrix::matrix_value): Likewise. |
|
1550 (octave_bool_matrix::complex_matrix_value): Likewise. |
|
1551 |
|
1552 * ov-range.h (octave_range::complex_matrix_value): Explicitly |
|
1553 request conversion from Matrix type. |
|
1554 |
|
1555 * ov-cx-mat.h, ov-re-mat.h: Explicitly request conversions from |
|
1556 diagonal matrix types in constructors. |
|
1557 |
3586
|
1558 * mappers.cc (ximag, xreal): Return double, not Complex. |
|
1559 |
3585
|
1560 * error.cc (panic): Turn off buffering of error messages. |
|
1561 Don't call flush_octave_stdout here, verror will do it for us. |
|
1562 (verror): Don't call flush_octave_stdout if buffering error messages. |
|
1563 |
3584
|
1564 * pt-except.cc (tree_try_catch_command::eval): Only restore |
|
1565 buffer_error_message value (by running the unwind_protect element |
|
1566 for it) if it has been saved. |
|
1567 |
|
1568 * help.cc (Ftype): Return value if nargout is NOT equal to zero. |
|
1569 Delete unnecessary unwind_protect::begin_frame(). |
|
1570 |
|
1571 * toplev.cc (octave_config_info): Stuff lots of new config info in |
|
1572 the struct. |
|
1573 |
|
1574 * oct-conf.h.in: Delete TARGET_HOST_TYPE. |
|
1575 |
3574
|
1576 2000-02-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1577 |
3579
|
1578 * siglist.c: Include <signal.h>. |
|
1579 |
3575
|
1580 * lex.l (is_plot_keyword): Add minimum match length in call to |
|
1581 almost_match. |
|
1582 |
3574
|
1583 * Makefile.in (%.df : %.cc): Don't pass -c to compiler. |
|
1584 |
3564
|
1585 2000-02-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1586 |
3572
|
1587 * ov-base-mat.cc: Include pr-output.h here. |
|
1588 |
3571
|
1589 * DLD-FUNCTIONS/rand.cc (curr_rand_dist): Return const char * |
|
1590 instead of char *. |
|
1591 |
3570
|
1592 * oct-fstrm.cc (octave_fstream::seek, octave_fstream::tell): |
|
1593 Call pubseekoff instead of seekoff. |
|
1594 |
3568
|
1595 * DLD-FUNCTIONS/dassl.cc (print_dassl_option_list): Use stream |
|
1596 manipulators instead of GNU iostream-specific form function. |
|
1597 * DLD-FUNCTIONS/fsolve.cc (print_fsolve_option_list): Ditto. |
|
1598 * DLD-FUNCTIONS/lsode.cc (print_lsode_option_list): Ditto. |
|
1599 * DLD-FUNCTIONS/quad.cc (print_quad_option_list): Ditto. |
|
1600 * pr-output.cc (pr_scale_header): Ditto. |
|
1601 |
3566
|
1602 * sighandlers.h: Include signal.h here. |
|
1603 * sighandlers.cc: Not here. |
|
1604 |
|
1605 * utils.cc: Include setjmp.h, not csetjmp. |
|
1606 * toplev.cc: Ditto. |
|
1607 |
|
1608 * sighandlers.cc: Include signal.h, not csignal. |
|
1609 |
|
1610 * pt-plot.h: Don't include csignal. |
|
1611 * toplev.cc: Ditto. |
|
1612 * oct-hist.cc: Ditto. |
|
1613 * octave.cc: Ditto. |
|
1614 * pager.cc: Ditto. |
|
1615 * input.cc: Ditto. |
|
1616 * help.cc: Ditto. |
|
1617 |
3565
|
1618 * pt-plot.cc (send_to_plot_stream): Use operator== and substr |
|
1619 method to do limited-length string comparison. |
|
1620 * input.cc (generate_completion): Likewise. |
|
1621 * ov-dld-fcn.cc (octave_dld_function::octave_dld_function): Likewise. |
|
1622 * ov-usr-fcn.cc (octave_user_function::mark_as_system_fcn_file): |
|
1623 Likewise. |
|
1624 |
|
1625 * utils.cc (check_preference): Expect exact string matches. |
|
1626 * variables.cc (ignore_function_time_stamp): Likewise. |
|
1627 * lex.l (whitespace_in_literal_matrix): Likewise. |
|
1628 |
3564
|
1629 * mappers.cc (xconj, ximag, xreal): New functions. Use them in |
|
1630 DEFUN_MAPPER calls. |
|
1631 |
|
1632 * defun-int.h (DEFUN_MAPPER_INTERNAL): Cast function pointer args |
|
1633 to octave_mapper constructor. |
|
1634 |
3523
|
1635 2000-02-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1636 |
3564
|
1637 * procstream.cc (procstreambase::procstreambase, |
|
1638 procstreambase::open, procstreambase::close): |
|
1639 Call std::ios::setstate, not set. |
|
1640 |
3561
|
1641 * lex.l (plot_axes_token): Declare plot_axes as const char *. |
|
1642 Declare tmp const char **. |
|
1643 |
3560
|
1644 * oct-procbuf.h: Include fstream, not streambuf.h. |
|
1645 |
3570
|
1646 * load-save.cc (Fsave): Call pubseekoff instead of seekoff. |
3558
|
1647 * oct-strstrm.cc (octave_base_strstream::tell): Likewise. |
|
1648 (octave_base_strstream::seek): Likewise. |
|
1649 |
3553
|
1650 * oct-stream.cc (octave_base_stream::read): Rename count to char_count. |
|
1651 (octave_base_stream::do_gets): Likewise. |
|
1652 |
|
1653 * octave-stream.cc (octave_base_stream::write): Rename flt_fmt to ffmt. |
|
1654 (octave_base_stream::read): Likewise. |
|
1655 |
3552
|
1656 * TEMPLATE-INST/SLStack-sym.cc: Delete meaningless `extern |
|
1657 template' declarations. |
|
1658 * TEMPLATE-INST/Array-tc.cc: Ditto. |
|
1659 |
|
1660 * TEMPLATE-INST/Map-fnc.cc: Don't try to instantiate goodCHptr or |
|
1661 CHptr_to_index here. |
|
1662 * TEMPLATE-INST/Map-tc.cc: Likewise. |
3554
|
1663 * Map.h (CHNode::goodCHptr, CHNode::CHptr_to_index): Now member |
|
1664 functions. Change all callers. |
3552
|
1665 |
|
1666 * load-save.cc (read_binary_file_header): Declare magic_len `const'. |
|
1667 |
|
1668 * token.h (token::token (const token&), token::operator=): |
|
1669 Delete unnecessary definitions. |
|
1670 |
|
1671 * oct-stream.cc (octave_stream::mode_as_string): Use |
|
1672 std::ios::binary, not std::ios::bin. |
|
1673 * load-save.cc (Fsave, Fload, save_user_variables): Likewise. |
|
1674 |
3550
|
1675 * DLD-FUNCTIONS/qz.cc (Fqz): Use Array<int> class instead of |
|
1676 trying to create automatic int array with variable size. |
|
1677 |
3548
|
1678 * variables.cc (F__dump_symbol_info__): Fix continuation char. |
3552
|
1679 * mappers.cc (Ftoupper): Likewise. |
3548
|
1680 * DLD-FUNCTIONS/besselj.cc (Fairy, Fbesselj): Likewise. |
|
1681 * DLD-FUNCTIONS/chol.cc (Fchol): Likewise. |
|
1682 * DLD-FUNCTIONS/det.cc (Fdet): Likewise. |
|
1683 * DLD-FUNCTIONS/eig.cc (Feig): Likewise. |
|
1684 * DLD-FUNCTIONS/gammainc.cc (gammainc): Likewise. |
|
1685 * DLD-FUNCTIONS/givens.cc (givens): Likewise. |
|
1686 * DLD-FUNCTIONS/hess.cc (hess): Likewise. |
|
1687 * DLD-FUNCTIONS/inv.cc (inv): Likewise. |
|
1688 * DLD-FUNCTIONS/log.cc (logm): Likewise. |
|
1689 * DLD-FUNCTIONS/lu.cc (lu): Likewise. |
|
1690 * DLD-FUNCTIONS/qr.cc (qr): Likewise. |
|
1691 * DLD-FUNCTIONS/schur.cc (schur): Likewise. |
|
1692 * DLD-FUNCTIONS/balance.cc (balance): Likewise. |
|
1693 * DLD-FUNCTIONS/svd.cc (svd): Likewise. |
|
1694 * DLD-FUNCTIONS/syl.cc (syl): Likewise. |
|
1695 * DLD-FUNCTIONS/expm.cc (Fexpm): Likewise. |
|
1696 |
|
1697 * token.h (token::token_type, token::end_tok_type, |
|
1698 token::plot_tok_type): Delete extraneous comma from enum decls. |
3552
|
1699 * load-save.cc (load_save_format): Likewise. |
3548
|
1700 |
3546
|
1701 * pt-idx.cc (tree_index_expression::tree_index_expression): |
|
1702 Delete default arg values. |
3552
|
1703 * oct-fstrm.cc (octave_fstream::octave_fstream): Likewise. |
|
1704 * oct-stream.cc (octave_stream::octave_stream): Likewise. |
3546
|
1705 |
|
1706 * siglist.h, siglist.c: New files. |
|
1707 * Makefile.in: Add them to the appropriate lists. |
|
1708 * siglist.c (sys_siglist): Move definition here from sighandlers.cc. |
|
1709 * siglist.h (sys_siglist): Move declaration here from sighandlers.h. |
|
1710 |
3545
|
1711 * ov.h, ov-bool.h, ov-bool-mat.h (bool_matrix_value): |
|
1712 Delete unnecessary arg. |
|
1713 |
3544
|
1714 * ov.h (octave_value::do_multi_index_op): Rename from do_index_op. |
|
1715 |
|
1716 * ov-fcn.h (octave_function::is_system_fcn_file): Now const. |
|
1717 |
3529
|
1718 * Map.cc (index_to_CHptr): Now a macro. |
3530
|
1719 (CHMap<C>::hash): Now a member function. |
3529
|
1720 |
3528
|
1721 * defun-int.h (UNDERSCORIFY): New macro. |
|
1722 (DEFCONST_INTERNAL, DEFCONSTX_INTERNAL): Use it. |
|
1723 |
3526
|
1724 * data.cc (Fis_list): Fix continuation char. |
3532
|
1725 * defaults.cc (IMAGEPATH): Likewise. |
3526
|
1726 |
|
1727 * Map.cc (CHptr_to_index, goodCHptr): Delete static decl. |
|
1728 |
3525
|
1729 * ov.h (unary_op, binary_op, assign_op): Prepend `op_' to elts. |
|
1730 Change all usses |
|
1731 |
3523
|
1732 * All source files: Sprinkle with std:: qualifier as needed. |
|
1733 |
3503
|
1734 2000-01-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1735 |
|
1736 * sighandlers.cc (install_signal_handlers): Add std:: qualifier |
|
1737 for set_net_handler. |
|
1738 |
|
1739 * All source files: Include iostream, fstream, strstream, |
|
1740 etc. as needed instead of using forward declarations for these |
|
1741 classes. |
|
1742 |
3498
|
1743 2000-01-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1744 |
|
1745 * input.cc (input_event_hook, Finput_event_hook): New functions. |
|
1746 (hook_fcn, user_data): New static variables. |
|
1747 |
3489
|
1748 2000-01-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1749 |
3491
|
1750 * pt-except.cc (do_catch_code): Don't do anything special for |
|
1751 tree_return_command::returning, or tree_break_command::breaking. |
|
1752 |
|
1753 * error.cc (vwarning): New function. |
|
1754 (warning): Use it instead of calling verror. |
|
1755 |
|
1756 * oct-stream.cc (octave_base_stream::oscanf): |
|
1757 Result is now always nconv+1 elements. Return count of successful |
|
1758 conversions in last element. |
|
1759 * file-io.cc (Ffscanf, Fsscanf, Fscanf): Fix doc string. |
|
1760 |
3490
|
1761 * pt-except.cc (do_catch_code): Unwind-protect buffer_error_messages. |
|
1762 Be sure to run all unwind-protects before returning. |
|
1763 (tree_try_catch_command::eval): Add do_catch_code cleanup function |
|
1764 to unwind-protect stack before resetting buffer_error_messages. |
|
1765 Use unwind-protect to save and restore buffer_error_messages. |
|
1766 If there is no catch code, discard the cleanup function and run |
|
1767 the unwind-protect for buffer_error_messages. |
|
1768 |
|
1769 * error.cc (bind_global_error_variable): Avoid dereferencing |
|
1770 error_message_buffer if it is NULL. |
|
1771 |
3489
|
1772 * parse.y (evaluating_function_body): New global flag. |
|
1773 * ov-usr-fcn.cc (octave_user_function::do_index_op): |
|
1774 Protect and set it here. |
|
1775 * parse.y (make_break_command, make_return_command): Check it here. |
|
1776 |
|
1777 * error.cc (warning_state): New global flag. |
|
1778 (warning): Set it here. |
|
1779 * lex.l (reset_parser): Clear it here. |
|
1780 * parse.y (fold): Check it here. |
|
1781 |
3484
|
1782 2000-01-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1783 |
3485
|
1784 * pt-walk.h (tree_walker::visit_do_until_command): New pure virtual. |
|
1785 * pt-pr-code.cc (tree_print_code::visit_do_until_command): |
3484
|
1786 New function. |
3485
|
1787 * pt-loop.h (tree_do_until_command): New class. |
3484
|
1788 (tree_while_command::expr, tree_while_command::list): |
|
1789 Now protected instead of private. |
3485
|
1790 * parse.y (make_do_until_command): New function. |
|
1791 (loop_command): Recognize do-until statement. |
3484
|
1792 (DO, UNTIL): New tokens. |
|
1793 |
|
1794 * input.cc (match_sans_spaces): Require non-blank part of test |
|
1795 string to match standard string exactly. |
|
1796 |
3483
|
1797 2000-01-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1798 |
|
1799 * oct-stream.h (scanf_format_elt::char_class): New struct elt. |
|
1800 Add arg to constructor. |
|
1801 (scanf_format_elt::special_conversion): New enum. |
|
1802 * oct-stream.cc (scanf_format_list::add_elt_to_list): New arg, |
|
1803 char_class. Pass it to scanf_format_elt constructor. |
|
1804 (scanf_format_list::scanf_format_list): Create separate list |
|
1805 elements for whitespace and literal conversions. |
|
1806 (expand_char_class): New function. |
|
1807 (scanf_format_list::finish_conversion): Extract character class |
|
1808 (not including the delimiting brackets) and expand the list of |
|
1809 characters. Pass the result to add_elt_to_list. |
|
1810 (scanf_format_list::all_character_conversions): Also accept '^', |
|
1811 scanf_format_elt::literal_conversion, and |
|
1812 scanf_format_elt::whitespace_conversion types too. |
|
1813 (DO_WHITESPACE_CONVERSION, BEGIN_CHAR_CLASS_CONVERSION, |
|
1814 BEGIN_C_CONVERSION, BEGIN_S_CONVERSION, DO_LITERAL_CONVERSION): |
|
1815 New macros. |
|
1816 (octave_base_stream::do_scanf, octave_base_stream::do_oscanf): |
|
1817 Use them to avoid code duplication. |
|
1818 Handle whitespace, literal text, and character class conversions. |
|
1819 (octave_base_stream::oscanf): Loop over all format list elements, |
|
1820 not just the first nconv elements. Clear status flags on is for |
|
1821 all streams. |
|
1822 |
3476
|
1823 2000-01-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1824 |
3480
|
1825 * xdiv.cc (result_ok): Just check value of info. |
|
1826 (solve_singularity_warning): New function. |
|
1827 (xleftdiv, xdiv): Pass pointer to solve_singularity_warning to |
|
1828 solve function. |
|
1829 |
|
1830 * lex.l (handle_identifier): Set next_tok_is_eq if we are looking |
|
1831 at `=', but not if we are looking at `=='. |
|
1832 |
3478
|
1833 * pt-pr-code.cc (tree_print_code::visit_unwind_protect_command): |
|
1834 Print `unwind_protect_cleanup', not `cleanup_code'. |
|
1835 |
3477
|
1836 * pager.cc (octave_pager_buf::flush_current_contents_to_diary): |
|
1837 New function. |
|
1838 (octave_pager_stream::flush_current_contents_to_diary): |
|
1839 Ditto. |
|
1840 (close_diary_file): Use the new octave_pager_stream function to |
|
1841 try to flush the current buffer to the diary when it is closed. |
|
1842 |
3476
|
1843 * variables.cc (Fexist): Return 6 for built-in constants. |
|
1844 |
|
1845 * pt-plot.cc (Fgshow): Don't append " " after last arg. |
|
1846 (Fgset): Likewise. |
|
1847 |
3472
|
1848 2000-01-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1849 |
|
1850 * ov-base-mat.h (octave_base_matrix::length): Return 0 for empty |
|
1851 arrays. |
|
1852 |
3465
|
1853 2000-01-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1854 |
|
1855 * DLD-FUNCTIONS/time.cc (Fstrptime): New function. |
|
1856 |
|
1857 * load-save.cc (Fsave): Add missing else. |
|
1858 |
3442
|
1859 2000-01-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1860 |
3444
|
1861 * DLD-FUNCTIONS/gammainc.cc (Fgammainc): Texinfoize doc string. |
3445
|
1862 * ov-typeinfo.cc (Ftypeinfo): Ditto. |
3446
|
1863 * parse.y (Vwarn_future_time_stamp): Ditto. |
|
1864 * DLD-FUNCTIONS/minmax.cc (Fmax, Fmin): Ditto. |
3445
|
1865 * ov-usr-fcn.cc (Fva_arg, Fva_start, Fvr_val): Ditto. |
3446
|
1866 * defaults.cc (VOCTAVE_HOME, Frehash): Ditto. |
|
1867 * toplev.cc (Fwarranty, Fcasesen): Ditto. |
|
1868 * utils.cc (Fdo_string_escapes, Ffile_in_loadpath): Ditto. |
|
1869 * variables.cc (F__dump_symtab_info__, F__dump_symbol_info__): Ditto. |
3447
|
1870 * ov-list.cc (Flist, Fappend, Fnth, Freverse, Fsplice): Ditto. |
3448
|
1871 * input.cc (Fread_readline_init_file): Ditto. |
|
1872 * file-io.cc (Fis_stream): Ditto. |
|
1873 * ov-cell.cc (Fiscell, Fcell): Ditto. |
|
1874 * pt-assign.cc (Vprint_rhs_assign_val): Ditto. |
|
1875 * pt-decl.cc (Vinitialize_global_variables): Ditto. |
|
1876 * symtab.cc (Vvariables_can_hide_functions): Ditto. |
3443
|
1877 |
3442
|
1878 * pt-plot.cc (Fgraw, Fgset, Fgshow, Vgnuplot_command_plot, |
|
1879 Vgnuplot_command_replot, Vgnuplot_command_splot, |
|
1880 Vgnuplot_command_using, Vgnuplot_command_with, |
|
1881 Vgnuplot_command_axes, Vgnuplot_command_title, |
|
1882 Vgnuplot_command_end): Texinfoize doc strings. |
|
1883 |
3447
|
1884 * oct-procbuf.cc (__kluge_procbuf_delay__): Rename from |
|
1885 kluge_procbuf_delay. Texinfoize doc string. |
|
1886 |
3427
|
1887 2000-01-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1888 |
|
1889 * parse.y (gobble_leading_whitespace): Discard first space character |
|
1890 after consecutive comment characters. |
|
1891 * lex.l (grab_help_text): Ditto. |
|
1892 |
3428
|
1893 * lex.l (Vwhitespace_in_literal_matrix, Vwarn_separator_insert, |
|
1894 Vwarn_single_quote_string): Texinfoize doc string. |
|
1895 |
3418
|
1896 2000-01-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1897 |
3419
|
1898 * ov.h, ov.cc (octave_value::column_vector_value, |
|
1899 octave_value::row_vector_value, |
|
1900 octave_value::complex_column_vector_value, |
|
1901 octave_value::complex_row_vector_value): New functions. |
|
1902 (octave_value::vector_value): Now returns Array<double>. |
|
1903 (octave_value::complex_vector_value): Now returns Array<Complex>. |
|
1904 Sprinkle conversions where necessary. |
|
1905 |
3418
|
1906 * ov.cc (Vprefer_column_vectors): Now static. |
|
1907 * ov.h (octave_value (const ComplexRowVector&), |
|
1908 octave_value (const ComplexColumnVector&), |
|
1909 octave_value (const RowVector&), octave_value (const ColumnVector&)): |
|
1910 Delete second arg. Change all callers. |
3419
|
1911 |
3418
|
1912 * oct-obj.h (octave_value_list (const RowVector&), |
|
1913 octave_value_list (const ColumnVector&), |
|
1914 octave_value_list (const ComplexRowVector&), |
|
1915 octave_value_list (const ComplexColumnVector&)): Likewise. |
|
1916 * ov-cx-mat.h, ov-cx-mat.cc |
|
1917 (octave_complex_matrix (const ComplexRowVector&), |
|
1918 (octave_complex_matrix (const ComplexColumnVector&)): |
|
1919 Delete second arg, simply create object with orientation |
|
1920 corresponding to vector arg. Move constructors to class decl. |
|
1921 * ov-re-mat.h, ov-re-mat.cc (octave_matrix (const RowVector&), |
|
1922 (octave_matrix (const ColumnVector&)): |
|
1923 Delete second arg, simply create object with orientation |
|
1924 corresponding to vector arg. Move constructors to class decl. |
|
1925 |
3411
|
1926 2000-01-07 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
1927 |
|
1928 * mappers.cc (Fconj, Ferf, Ferfc, Fgamma, Fimag, Flgamma, Flog10, |
|
1929 Freal, Fround): Add @seealso{...} to doc strings. |
|
1930 |
3408
|
1931 2000-01-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1932 |
3410
|
1933 * oct-stream.cc (do_scanf): Do the right thing again for character |
|
1934 conversions. |
|
1935 |
3408
|
1936 * help.cc (display_help_text): Also strip out leading spaces |
|
1937 before Texinfo @-commands before sending doc string to makeinfo. |
|
1938 (display_help_text): Improve format of `See also' string. |
|
1939 |
3405
|
1940 2000-01-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1941 |
|
1942 * help.cc (display_help_text): Pass a definition for @seealso |
|
1943 through the filter. |
|
1944 |
3400
|
1945 1999-12-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1946 |
|
1947 * lex.l (Vwarn_single_quote_string): New variable. |
|
1948 (syms_of_lex): DEFVAR it. |
|
1949 (warn_single_quote_string): New function. |
|
1950 (gripe_single_quote_string): New function. |
|
1951 Use new stuff to allow warnings for code that uses single quote |
|
1952 characters to introduce string constants. |
|
1953 |
3399
|
1954 1999-12-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1955 |
|
1956 * mkbuiltins: Add #undef quad to generated file. |
|
1957 |
3388
|
1958 1999-12-15 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1959 |
|
1960 * lex.l (Vwarn_separator_insert): New variable. |
|
1961 (syms_of_lex): DEFVAR it. |
|
1962 (warn_separator_insert): New function. |
|
1963 (maybe_warn_separator_insert): New function. |
|
1964 Use new stuff to allow warnings for code that might result in |
|
1965 auto-insertion of commas or semicolons, depending on the value of |
|
1966 whitespace_in_literal_matrix. |
|
1967 |
|
1968 * parse.y (Fsource): Record function file name here too. |
|
1969 |
3377
|
1970 1999-12-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1971 |
|
1972 * variables.cc (link_to_global_variable): If the local symbol is |
|
1973 not a variable, don't bother to clear it. Instead, just redefine |
|
1974 it by aliasing to the global symbol. |
|
1975 |
3372
|
1976 1999-11-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1977 |
3373
|
1978 * DLD-FUNCTIONS/balance.cc (Fbalance): Texinfoize doc string. |
|
1979 * DLD-FUNCTIONS/det.cc (Fdet): Ditto. |
|
1980 * DLD-FUNCTIONS/eig.cc (Feig): Ditto. |
|
1981 * DLD-FUNCTIONS/givens.cc (Fgivens): Ditto. |
|
1982 * DLD-FUNCTIONS/inv.cc (Finv): Ditto. |
|
1983 * DLD-FUNCTIONS/chol.cc (Fchol): Ditto. |
|
1984 * DLD-FUNCTIONS/hess.cc (Fhess): Ditto. |
|
1985 * DLD-FUNCTIONS/lu.cc (Flu): Ditto. |
|
1986 * DLD-FUNCTIONS/qr.cc (Fqr): Ditto. |
|
1987 * DLD-FUNCTIONS/schur.cc (Fschur): Ditto. |
|
1988 * DLD-FUNCTIONS/svd.cc (Fsvd): Ditto. |
|
1989 * DLD-FUNCTIONS/expm.cc (Fexpm): Ditto. |
|
1990 * DLD-FUNCTIONS/log.cc (Flogm, Fsqrtm): Ditto. |
|
1991 * DLD-FUNCTIONS/syl.cc (Fsyl): Ditto. |
|
1992 * DLD-FUNCTIONS/pinv.cc (Fpinv): Ditto. |
|
1993 * DLD-FUNCTIONS/qz.cc (Fqz): Ditto. |
|
1994 * DLD-FUNCTIONS/dassl.cc (Fdassl, Fdassl_options): Ditto. |
|
1995 * DLD-FUNCTIONS/lsode.cc (Flsode, Flsode_options): Ditto. |
|
1996 * data.cc (Flength, Fsize, Fisempty): Ditto. |
3372
|
1997 * sysdep.cc (Fkbhit): Ditto. |
|
1998 * input.cc (Fkeyboard, Finput): Ditto. |
|
1999 * variables.cc (ans): Ditto. |
|
2000 * pr-output.cc (Fdisp, Fformat): Ditto. |
|
2001 * ov.cc (Vprint_answer_id_name): Ditto. |
3373
|
2002 * defaults.cc (IMAGEPATH): Ditto. |
|
2003 * error.cc (Ferror, Fwarning, Fusage, error_text, beep_on_error): |
|
2004 Ditto. |
3372
|
2005 * load-save.cc (Fload, Fsave, Vdefault_save_format, |
|
2006 Vsave_precision): Ditto. |
|
2007 * file-io.cc (Ffflush, Ffopen, Ffclose, Ffputs, Ffgetl, Ffgets, |
|
2008 Ffprintf, Fsprintf, Fscanf, Ffscanf, Fsscanf, Ffread, Ffwrite, |
|
2009 Ffseek, Fftell, Ffeof, Fferror, Ffreport, Ftmpnam, Vstdin_file, |
|
2010 Vstdout_file, Vstderr_file, SEEK_SET, SEEK_CUR, SEEK_END): Ditto. |
|
2011 * pager.cc (Vpager_binary, Vpage_output_immediately, |
|
2012 Vpage_screen_output, Fmore): Ditto. |
|
2013 |
3369
|
2014 1999-11-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2015 |
|
2016 * utils.cc (Vtreat_neg_dim_as_zero): Texinfoize doc string. |
|
2017 * DLD-FUNCTIONS/find.cc (Ffind): Ditto. |
|
2018 * DLD-FUNCTIONS/rand.cc (Frand, Frandn): Ditto. |
|
2019 * DLD-FUNCTIONS/sort.cc (Fsort): Ditto. |
|
2020 * mappers.cc (Fisinf, Fisnan, Ffinite): Ditto. |
|
2021 * data.cc (Fall, Fany, Fdiag, Fones, Fzeros, Feye, Flinspace): Ditto. |
3371
|
2022 * defaults.cc (Vloadpath, Vdefault_loadpath): Ditto. |
|
2023 * parse.y (Feval, Ffeval, Vdefault_eval_print_flag, |
|
2024 Vwarn_missing_semicolon, Vwarn_function_name_clash, Fsource): Ditto. |
|
2025 * ov-usr-fcn.cc (Vmax_recursion_depth, Vdefault_return_value, |
|
2026 Vdefine_all_return_values, Vreturn_last_computed_value): Ditto. |
|
2027 * ov.cc (Vok_to_lose_imaginary_part, Vdo_fortran_indexing, |
|
2028 Vprefer_column_vectors, Vresize_on_range_error, |
|
2029 Vwarn_divide_by_zero): Ditto. |
|
2030 * pt-stmt.cc (Vsilent_functions): Ditto. |
|
2031 * variables.cc (Vignore_function_time_stamp): Ditto. |
|
2032 * dynamic-ld.cc (Vwarn_reload_forces_clear): Ditto. |
3369
|
2033 |
3367
|
2034 1999-11-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2035 |
3368
|
2036 * DLD-FUNCTIONS/fft.cc (Ffft): Texinfoize doc string. |
|
2037 * DLD-FUNCTIONS/ifft.cc (Fifft): Ditto. |
|
2038 * DLD-FUNCTIONS/fft2.cc (Ffft2): Ditto. |
|
2039 * DLD-FUNCTIONS/ifft2.cc (Fifft2): Ditto. |
|
2040 * DLD-FUNCTIONS/filter.cc (Ffilter): Ditto. |
|
2041 * DLD-FUNCTIONS/quad.cc (Fquad, Fquad_options): Ditto. |
|
2042 * DLD-FUNCTIONS/colloc.cc (Fcolloc): Ditto. |
|
2043 * DLD-FUNCTIONS/fsolve.cc (Ffsolve, Ffsolve_options): Ditto. |
|
2044 * defaults.cc (Veditor): Ditto. |
|
2045 * pt-plot.cc (Vautomatic_replot, Vgnuplot_binary, |
|
2046 Vgnuplot_has_frames, Vgnuplot_has_multiplot, Fclearplot, |
|
2047 Fcloseplot, Fpurge_tmp_files, Fishold, Fhold): |
3367
|
2048 |
|
2049 * Makefile.in (parse.cc): Expect 11 shift/reduce conflicts now. |
|
2050 |
3361
|
2051 1999-11-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2052 |
3366
|
2053 * parse.y (Vwarn_assign_as_truth_value, Vwarn_variable_switch_label): |
|
2054 Texinfoize doc strings. |
|
2055 |
3365
|
2056 * DLD-FUNCTIONS/pinv.cc (Fpinv): Texinfoize doc string. |
|
2057 |
3364
|
2058 * defun-int.h (DEFUN_DLD_INTERNAL): New macro. |
|
2059 * defun-dld.h [MAKE_BUILTINS] (DEFUN_DLD): Simply expand to |
|
2060 DEFUN_DLD_INTERNAL. |
|
2061 * mkbuiltins: Generate code to define DEFUN_DLD_INTERNAL. |
|
2062 * mkgendoc: Likewise. |
|
2063 |
3363
|
2064 * Makefile.in (gendoc.o): Don't optimize when creating gendoc. |
3364
|
2065 (%.dc : %.cc): Delete rule. |
3363
|
2066 |
3361
|
2067 * pt-decl.cc (Vdefault_global_variable_value): Texinofize doc string. |
|
2068 * variables.cc (Fclear, Fdocument, Fexist, Fis_global, Fwho): Ditto. |
|
2069 * help.cc (Ftype, Fwhich): Ditto. |
|
2070 * ov.cc (Vstruct_levels_to_print, Vimplicit_str_to_num_ok): Ditto. |
|
2071 * data.cc (Fis_struct, Fstruct_elements, Fstruct_constains): Ditto. |
|
2072 * strfns.cc (Fisstr, Fsetstr): Ditto. |
|
2073 * pt-mat.cc: (Fimplicit_num_to_str_ok, Fstring_fill_char): Ditto. |
|
2074 * utils.cc (Fundo_string_escapes): Ditto. |
|
2075 * mappers.cc: (Fisalnum, Fisalpha, Fisascii, Fiscntrl, Fisdigit, |
|
2076 Fisgraph, Fislower, Fisprint, Fispunct, Fisspace, Fisupper, |
|
2077 Fisxdigit, Ftoascii, Ftolower, Ftoupper): Ditto. |
|
2078 |
3357
|
2079 1999-11-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2080 |
3360
|
2081 * syscalls.cc (symbols_of_syscalls): Use DEFCONSTX to define |
|
2082 Octave constants for C macros like O_WRONLY. |
|
2083 |
3357
|
2084 * oct-lvalue.cc (octave_lvalue::set_index): Disallow expressions |
|
2085 like x(i)(j) = rhs. |
|
2086 |
3355
|
2087 1999-11-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2088 |
3356
|
2089 * symtab.cc (symbol_record::type_as_string): New function. |
3355
|
2090 |
|
2091 * symtab.cc (symbol_record::which): New functions. |
|
2092 * help.cc (do_which): New functions. |
|
2093 (Fwhich): Use them. |
|
2094 |
|
2095 * help.cc (help_from_symbol_table, help_from_file): New functions. |
|
2096 (builtin_help): Use them. |
|
2097 |
|
2098 * help.cc (do_type): New function. |
3356
|
2099 (symbol_record::type): New function. |
3355
|
2100 (Ftype): Use them. |
|
2101 |
|
2102 * help.cc (print_symbol_type): Delete. |
|
2103 |
|
2104 * symtab.cc (symbol_table::name_list): Delete count arg. |
|
2105 (symbol_table::symbol_list): Likewise. |
|
2106 (symbol_table::glob): Likewise. Also return Array<symbol_record *> |
|
2107 instead of symbol_record **. |
|
2108 Change all callers. |
|
2109 * help.cc (names, display_symtab_names): Delete count arg. |
|
2110 |
|
2111 * help.cc (print_symbol_type, Ftype): No longer need to look up |
|
2112 fcn_file_name in the loadpath. |
|
2113 |
|
2114 * help.cc (print_symbol_type): Handle dld functions. |
|
2115 (help_from_symbol_table, help_from_file): New functions. |
|
2116 (builtin_help): Use them. |
|
2117 |
3354
|
2118 1999-11-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2119 |
|
2120 * ov-cell.cc (Fiscell, Fcell): New Functions. |
|
2121 (octave_cell::do_index_op): New function. |
|
2122 |
|
2123 * utils.cc (get_dimensions): Move here from data.cc and make extern. |
|
2124 (Vtreat_neg_dim_as_zero, treat_neg_dim_as_zero): Likewise. |
|
2125 (symbols_of_utils): New function. |
|
2126 |
|
2127 * data.cc (fill_matrix (const octave_value_list&, double, |
|
2128 const char*)): New function. |
|
2129 (Fones, Fzeros): Use it to avoid some code duplication. |
|
2130 |
3352
|
2131 1999-11-15 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2132 |
|
2133 * pt-cell.h, pt-cell.cc, ov-cell.h, ov-cell.cc, Cell.h, Cell.cc: |
|
2134 New files. |
|
2135 * Makefile.in: Add them to the appropriate lists. |
|
2136 * pt-walk.h (visit_cell (tree_cell&): New pure virtual. |
|
2137 * pt-pr-code.cc (tree_print_code::visit_cell (tree_cell&)): New |
|
2138 function. |
|
2139 * TEMPLATE-INST/Array-tc.cc: Instantiate 2D arrays of octave_value |
|
2140 objects. |
|
2141 * pt-all.h: Include pt-cell.h. |
|
2142 * ov.h, ov.cc (octave_value::is_cell, octave_value::cell_value): |
|
2143 New functions. |
|
2144 * ov-base.h, ov-base.cc (octave_value::is_cell, |
|
2145 octave_value::cell_value): Provide defaults. |
|
2146 * lex.h, lex.l: Handle `{' and `}' tokens (for cell arrays). |
|
2147 (bracketflag): Rename from braceflag. |
|
2148 (handle_close_bracket): Rename from handle_close_brace. |
|
2149 (class bracket_brace_paren_nesting_level): Rename from |
|
2150 brace_paren_nesting_level. |
|
2151 (bracket_brace_paren_nesting_level::bracket, |
|
2152 bracket_brace_paren_nesting_level::is_bracket): New functions to |
|
2153 keep count of nesting level for `[' and `]'. |
|
2154 (bracket_brace_paren_nesting_level::brace, |
|
2155 bracket_brace_paren_nesting_level::is_brace): Now keeps count of |
|
2156 nesting level for `{' and `}'. |
|
2157 * parse.y (tree_cell_type): New type. |
|
2158 Give '{' the same precedence and associativity as '(' and '.' |
|
2159 (matrix_rows, matrix_rows1): Rename from rows, rows1. |
|
2160 (cell, cell_rows, cell_rows1): New non-terminals. |
|
2161 (cell_or_matrix_row): Rename from matrix_row. |
|
2162 (primary_expr): Accept cell here. |
|
2163 (postfix_expr): Allow indexing using '{' arg_list '}'. |
|
2164 (finish_cell): New function. |
|
2165 |
3350
|
2166 1999-11-12 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2167 |
|
2168 * utils.cc (jump_to_top_level): No longer declared extern "C". |
|
2169 |
|
2170 * cutils.c (octave_strcasecmp, octave_strncasecmp): New functions. |
|
2171 * utils.cc (almost_match): Call octave_strncasecmp instead of |
|
2172 calling strncasecmp directly. |
|
2173 |
3347
|
2174 1999-11-10 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2175 |
|
2176 * parse.y: Don't define warn_reload_forces_clear here. |
|
2177 |
|
2178 * Makefile.in (DISTFILES): Include DOCSTRINGS. |
|
2179 |
3340
|
2180 1999-11-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2181 |
3343
|
2182 * sighandlers.cc (install_signal_handlers): Don't install |
|
2183 sigwinch_handler. |
|
2184 |
3342
|
2185 * oct-iostrm.h (octave_istream::eof, octave_ostream::eof): Provide |
|
2186 implementation for these. |
|
2187 |
|
2188 * oct-stream.cc (octave_base_stream::do_scanf): |
|
2189 The stdin stream is only special if we are interactive. |
|
2190 (octave_base_stream::scanf): Ditto. |
|
2191 (octave_base_stream::do_oscanf): Ditto. |
|
2192 (octave_base_stream::oscanf): Ditto. |
|
2193 |
3340
|
2194 * ov.h (octave_value::is_stream): New predicate. |
|
2195 * ov-file.h (octave_file::is_stream): Return true. |
|
2196 * file-io.cc (Fis_stream): New function. |
|
2197 |
|
2198 * ov-file.h (class octave_file): stream is now an object instead |
|
2199 of pointer. |
|
2200 * ov-file.cc (octave_file::print_raw): Handle stream as object |
|
2201 instead of pointer. Also print stream status. |
|
2202 |
|
2203 * ov-base.cc (octave_base_value::stream_value): Return object |
|
2204 instead of pointer. |
|
2205 |
|
2206 * ov.cc (octave_value::stream_value): Return object instead of pointer. |
|
2207 (octave_value::octave_value (const octave_stream&)): Take const |
|
2208 reference instead of pointer arg. |
|
2209 |
|
2210 * TEMPLATE-INST/Array-os.cc: Instantiate Arrays of octave_stream |
|
2211 objects, not pointers to them. |
|
2212 |
|
2213 * OPERATORS/op-fil-b.cc: Cope with octave_stream class changes. |
|
2214 * OPERATORS/op-fil-bm.cc: Likewise. |
|
2215 * OPERATORS/op-fil-cm.cc: Likewise. |
|
2216 * OPERATORS/op-fil-cs.cc: Likewise. |
|
2217 * OPERATORS/op-fil-lis.cc: Likewise. |
|
2218 * OPERATORS/op-fil-m.cc: Likewise. |
|
2219 * OPERATORS/op-fil-rec.cc: Likewise. |
|
2220 * OPERATORS/op-fil-s.cc: Likewise. |
|
2221 * OPERATORS/op-fil-str.cc: Likewise. |
|
2222 * file-io.cc: Likewise. |
|
2223 * syscalls.cc (Fdup): Likewise. |
|
2224 |
|
2225 * oct-fstrm.cc, oct-fstrm.h, oct-iostrm.cc, oct-iostrm.h, |
|
2226 oct-prcstrm.cc, oct-prcstrm.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
2227 oct-stream.cc, oct-stream.h, oct-strstrm.cc, oct-strstrm.h: |
|
2228 Rewrite to allow octave_stream objects to be used like values |
|
2229 instead of having to use pointers. |
|
2230 |
3337
|
2231 1999-11-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2232 |
|
2233 * oct-stream.cc (octave_base_stream::do_scanf): If it looks like |
|
2234 we have a matching failure, then reset the failbit in the stream |
|
2235 state. |
|
2236 (octave_base_stream::do_oscanf): Likewise. |
|
2237 |
3332
|
2238 1999-11-02 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
2239 |
3361
|
2240 * help.cc (Fhelp): Texinfoize doc string. |
|
2241 * input.cc (Fecho, Fcompletion_matches): Ditto. |
|
2242 * oct-hist.cc (Fedit_history, Fhistory, Frun_history): Ditto. |
|
2243 * pager.cc (Fdiary): Ditto. |
|
2244 * sysdep.cc (Fclc): Ditto. |
|
2245 * toplev.cc (Fquit, Fatexit): Ditto. |
3332
|
2246 |
|
2247 1999-11-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2248 |
|
2249 * lex.l (yywrap): No longer static. |
|
2250 (have_continuation): Declare input character as int, not char, so |
|
2251 comparison to EOF will work. |
|
2252 |
3330
|
2253 1999-11-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2254 |
|
2255 * defun.cc (print_usage): Use display_help_text instead of sending |
|
2256 help message directly to octave_stdout. |
|
2257 |
3325
|
2258 1999-10-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2259 |
|
2260 * defun-dld.h (INSTALL_DLD_FCNS, INSTALL_DLD_FCN): Delete definitions. |
|
2261 * DLD-FUNCTIONS/dassl.cc: Don't use INSTALL_DLD_FCN or |
|
2262 INSTALL_DLD_FCNS macros. They are not necessary with the new code |
|
2263 in dynamic-ld.cc. |
|
2264 * DLD-FUNCTIONS/lsode.cc: Ditto. |
|
2265 * DLD-FUNCTIONS/fsolve.cc: Ditto. |
|
2266 * DLD-FUNCTIONS/quad.cc: Ditto. |
|
2267 * DLD-FUNCTIONS/time.cc: Ditto. |
|
2268 * DLD-FUNCTIONS/besselj.cc: Ditto. |
|
2269 * DLD-FUNCTIONS/getgrent.cc: Ditto. |
|
2270 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
2271 * DLD-FUNCTIONS/inv.cc: Ditto. |
|
2272 * DLD-FUNCTIONS/log.cc: Ditto. |
|
2273 * DLD-FUNCTIONS/minmax.cc: Ditto. |
|
2274 * DLD-FUNCTIONS/rand.cc: Ditto. |
|
2275 |
|
2276 * dynamic-ld.cc, dynamic-ld.h: Major rewrite to allow reloading of |
|
2277 dynamically linked functions. |
|
2278 |
|
2279 * symtab.cc (symbol_record::replace_all_defs): Don't allow top |
|
2280 definition to be NULL. |
|
2281 (symbol_table::clear): Allow dynamically linked functions to be |
|
2282 cleared. |
|
2283 |
|
2284 * symtab.h (TYPE): New enum value, DLD_FUCTION. |
|
2285 (symbol_type): Now 8 bits wide. |
|
2286 (SYMTAB_ALL_TYPES): Include DLD_FUNCTION. |
|
2287 (symbol_record::symbol_def::is_function): Also recognize dld functions. |
|
2288 (symbol_record::symbol_def::is_dld_function): New function. |
|
2289 (symbol_record::is_dld_function): Ditto. |
|
2290 |
|
2291 * defun.cc (install_dld_function): New function. |
|
2292 * defun-int.h: Provide declaration here. |
|
2293 (octave_dld_fcn_installer): New typedef. |
|
2294 (DEFINE_FUN_INSTALLER_FUN): Installer function now takes an |
|
2295 oct_shlib object as an arg. Allow installation of a function to |
|
2296 happen more than once. |
|
2297 |
|
2298 * octave.cc (initialize_error_handlers): Call |
|
2299 set_liboctave_warning_handler here too. |
|
2300 |
|
2301 * ov-builtin.h (is_builtin_function): Return true. |
|
2302 Data member is now protected, not private. |
|
2303 |
|
2304 * ov-fcn.h (is_dynamically_loaded_function): New predicate. |
|
2305 (unload): New function. |
|
2306 Data members are now protected, not private. |
|
2307 |
|
2308 * ov.h (is_builtin_function, is_dld_function): New predicates. |
|
2309 * ov-base.h (is_builtin_function, is_dld_function): Ditto. |
|
2310 |
|
2311 * parse.y (Vwarn_reload_forces_clear): New static flag. |
|
2312 (warn_reload_forces_clear): New function. |
|
2313 (symbols_of_parse): DEFVAR warn_reload_forces_clear. |
|
2314 |
|
2315 * variables.cc (Fclear): Look for dld functions too. |
|
2316 |
3770
|
2317 * ov-dld-fcn.cc, ov-dld-fcn.h: New files. |
3325
|
2318 * Makefile.in (OV_INCLUDES, OV_SRC): Add them to the lists. |
|
2319 |
|
2320 * Makefile.in (DEFVAR_PATTERN): Also match DEFCONSTX. |
|
2321 |
3321
|
2322 1999-10-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2323 |
3325
|
2324 * DLList.h, DLList.cc: New files. |
|
2325 * Makefile.in (INCLUDES, DIST_SRC): Add them to the lists. |
|
2326 |
3323
|
2327 * DLD-FUNCTIONS/lsode.cc (Flsode): Be sure to call |
|
2328 unwind_protect::run_frame before returning. |
|
2329 * DLD-FUNCTIONS/quad.cc (Fquad): Likewise. |
|
2330 * DLD-FUNCTIONS/fsolve.cc (Ffsolve): Likewise. |
|
2331 * DLD-FUNCTIONS/dassl.cc (Fdassl): Likewise. |
|
2332 |
|
2333 * load-save.cc (read_mat_ascii_data): When reading from |
|
2334 tmp_stream, check its state, not the state of is. |
|
2335 |
|
2336 * defun-dld.h (INSTALL_DLD_FCN, INSTALL_DLD_FCNS): New macros. |
|
2337 * DLD-FUNCTIONS/dassl.cc: Use them. |
|
2338 * DLD-FUNCTIONS/lsode.cc: Ditto. |
|
2339 * DLD-FUNCTIONS/fsolve.cc: Ditto. |
|
2340 * DLD-FUNCTIONS/quad.cc: Ditto. |
|
2341 * DLD-FUNCTIONS/time.cc: Ditto. |
|
2342 * DLD-FUNCTIONS/besselj.cc: Ditto. |
|
2343 * DLD-FUNCTIONS/getgrent.cc: Ditto. |
|
2344 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
2345 * DLD-FUNCTIONS/inv.cc: Ditto. |
|
2346 * DLD-FUNCTIONS/log.cc: Ditto. |
|
2347 * DLD-FUNCTIONS/minmax.cc: Ditto. |
|
2348 * DLD-FUNCTIONS/rand.cc: Ditto. |
|
2349 |
3322
|
2350 * data.cc (Flinspace): Let linspace functions handle errors. |
|
2351 |
3321
|
2352 * mkgendoc (print_doc_string): Handle quoted names. |
|
2353 |
|
2354 * file-io.cc (symbols_of_file_io): Use DEFCONSTX for SEEK_SET, |
|
2355 SEEK_CUR, and SEEK_END. |
|
2356 |
|
2357 * defun.h (DEFCONST): Just pass name, defn, and doc to |
|
2358 DEFCONST_INTERNAL. |
|
2359 (DEFCONSTX): Likewise, pass name, defn, and doc to DEFCONSTX_INTERNAL. |
|
2360 * defun-int.h [MKBUILTINS] (DEFCONST_INTERNAL): Likewise, pass |
|
2361 name, defn, and doc to XDEFCONST_INTERNAL. |
|
2362 [MKBUILTINS] (DEFCONSTX_INTERNAL): New macro. |
|
2363 (INSTALL_CONST): New macro. |
|
2364 [! MKBUILTINS] (DEFCONST_INTERNAL): Use it to handle details here. |
|
2365 [! MKBUILTINS] (DEFCONSTX_INTERNAL): Ditto. |
|
2366 * mkgendoc: Fix definition of XDEFCONST_INTERNAL to match. |
|
2367 * mkbuiltins: Ditto. |
|
2368 |
|
2369 * mkdefs: Match spaces before BEGIN_INSTALL_BUILTIN. |
|
2370 |
|
2371 * Makefile.in (DEFUN_PATTERN): Also match DEFUN_MAPPER. |
|
2372 |
|
2373 1999-10-26 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
2374 |
|
2375 * data.cc (VI, VInf, VJ, VNaN, Ve, Veps, Vfalse, Vi, Vinf, Vj, |
|
2376 Vnan, Vpi, Vrealmax, Vrealmin): Texinfoize doc strings. |
|
2377 * mappers.cc (Fabs, Facos, Facosh, Fangle, Farg, Fasin, Fasinh, |
|
2378 Fatan, Fatanh, Fceil, Fconj, Fcos, Fcosh, Ferf, Ferfc, Fexp, |
|
2379 Ffinite, Ffix, Ffloor, Fgamma, Fimag, Flgamma, Flog, Flog10, |
|
2380 Freal, Fround, Fsign, Fsin, Fsinh, Fsqrt, Ftan, Ftanh): Ditto. |
|
2381 |
|
2382 1999-10-23 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
2383 |
3361
|
2384 * data.cc (Fis_matrix): Texinfoize doc string. |
|
2385 * ov.cc (Vpropagate_empty_matrices): Ditto. |
|
2386 * pt-mat.cc: (Vempty_list_elements_ok): Ditto. |
|
2387 * pr-output.cc (Vfixed_point_format, Voutput_max_field_width, |
|
2388 Voutput_precision, Vprint_empty_dimensions, Vsplit_long_rows): |
|
2389 Ditto. |
3321
|
2390 |
|
2391 1999-10-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2392 |
3323
|
2393 * ov-usr-fcn.cc (octave_user_function::do_index_op): If |
|
2394 Vmax_recursion_depth is exceeded, call unwind_protect::run_frame |
|
2395 before returning. |
3321
|
2396 |
3308
|
2397 1999-10-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2398 |
3317
|
2399 * cutils.c (do_octave_usleep): Handle useconds > 1e6. |
|
2400 |
3308
|
2401 * variables.h (is_valid_function): Provide default values for the |
|
2402 string argument. |
|
2403 |
|
2404 * symtab.cc (variable_reference): Maybe print warning (or error) |
|
2405 about variables that hide functions of the same name. |
|
2406 (symbol_record::define (const octave_value&, unsigned int)): Ditto. |
|
2407 (Vvariables_can_hide_functions): New static variable. |
|
2408 (variables_can_hide_functions, symbols_of_symtab): New functions. |
|
2409 |
|
2410 * cutils.c: New file. |
|
2411 * Makefile.in (SOURCES): Add it to the list. |
|
2412 * utils.h: Declare octave_usleep here. |
|
2413 * dirfns.cc (Fls): Simply all octave_usleep. |
|
2414 * oct-procbuf.cc (octave_procbuf::open): Ditto. |
|
2415 * sysdep.cc (Fusleep): Ditto. |
|
2416 * toplev.cc (run_command_and_return_output): Ditto. |
|
2417 |
3305
|
2418 1999-10-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2419 |
3307
|
2420 * data.cc (make_diag (const octave_value&, const octave_value&)): |
|
2421 Delete special cases for scalars and simply attempt conversion of |
|
2422 first arg to a matrix value. If that fails, we will still see an |
|
2423 error message. |
|
2424 |
3305
|
2425 * Makefile.in (DISTFILES): Add mkgendoc to the list. |
|
2426 |
3296
|
2427 1999-10-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2428 |
3301
|
2429 * Makefile.in (stmp-pic): New target. |
|
2430 ($(PICOBJS)): Depend on stmp-pic, not pic. |
|
2431 |
|
2432 * ov.h (get_rep): New function. |
|
2433 |
|
2434 * help.cc (display_help_text): Pass definitions for VERSION, |
|
2435 OCTAVE_HOME, and TARGETHOSTTYPE to makeinfo. |
|
2436 |
|
2437 * DLD-FUNCTIONS/getgrent.cc: Texinfoize all doc strings. |
|
2438 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
2439 * DLD-FUNCTIONS/getrusage.cc: Ditto. |
|
2440 * DLD-FUNCTIONS/time.cc: Ditto. |
|
2441 |
|
2442 * defaults.cc (EXEC_PATH, OCTAVE_VERSION): Texinfoize doc strings. |
|
2443 * dirfns.cc (Fcd, Fls, Fpwd, Freaddir, Fmkdir, Frmdir, Frename, |
|
2444 Fglob, Ffnmatch): Ditto. |
|
2445 * file-io.cc (Fpopen, Fpclose, Fumask): Ditto. |
|
2446 * sysdep.cc (Fgetenv, Fputenv, Fpause, Fsleep, Fusleep, Fisieee, |
|
2447 Ftilde_expand): Ditto. |
|
2448 * toplev.cc (Fcomputer, Fsystem, Foctave_config_info): Ditto. |
|
2449 * utils.cc (Ffile_in_path): Ditto. |
|
2450 * syscalls.cc (Fdup2, Fexec, Ffcntl, Ffork, Fgetpgrp, Fgetpid, |
|
2451 Fgetppid, Fgetegid, Fgetgid, Fgeteuid, Fgetuid, Fmkfifo, Fpipe, |
|
2452 Fstat, Funlink, Fwaitpid, F): Ditto. |
|
2453 (Flstat): Refer to stat for doc. |
|
2454 |
|
2455 |
3296
|
2456 * help.cc (looks_like_texinfo): New function. |
|
2457 (display_help_text): Use it to see if the doc string looks like |
|
2458 Texinfo source. If so, use makeinfo to format the text before |
|
2459 displaying it. |
|
2460 |
|
2461 * mkgendoc: New script. |
|
2462 * Makefile.in: Use it to create gendoc.cc, which is compiled and |
|
2463 run to create DOCSTRINGS file from sources. |
|
2464 |
3295
|
2465 1999-10-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2466 |
|
2467 * help.cc (help_from_info): Print `unable to find info' message if |
|
2468 try_info returns 127; otherwise, print `not indexed' message. |
|
2469 Don't sleep after printing `not indexed' message. |
|
2470 |
3292
|
2471 1999-10-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2472 |
|
2473 * parse.y (fold (tree_unary_expression *)): New function. |
|
2474 (make_prefix_op, make_postfix_op): Use it. |
|
2475 |
3281
|
2476 1999-10-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2477 |
3288
|
2478 * Makefile.in (oct-gperf.h): Ask for ANSI-C output from gperf |
|
2479 (requires gperf-2.7 or later). |
|
2480 |
3281
|
2481 * sighandlers.cc (sigwinch_handler): New function. |
|
2482 (install_signal_handlers): Install it. |
|
2483 |
3273
|
2484 Thu Sep 23 19:49:36 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2485 |
|
2486 * toplev.cc (Fsystem): For async case, use execl instead of |
|
2487 system, avoiding the need to exit after executing the subprocess. |
|
2488 |
3268
|
2489 Thu Sep 9 17:09:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2490 |
|
2491 * oct-stream.cc (get_size): Allow zero values. |
|
2492 (get_size): New arg, one_elt_size_spec. |
|
2493 (do_scanf_conv): New arg, `conv_count'. Change instantiation |
|
2494 requests and all callers. |
|
2495 (octave_base_stream::do_scanf): Improve scanning of strings. |
|
2496 (octave_base_stream::do_oscanf): Remove size limit on %s conversions. |
|
2497 |
|
2498 * oct-stream.cc (scanf_format_list::all_character_conversions): |
|
2499 Don't count %p as a character conversion. |
|
2500 |
|
2501 Tue Sep 7 08:31:04 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2502 |
|
2503 * pr-output.cc (set_real_matrix_format, set_complex_matrix_format): |
|
2504 Move check for fixed_point_format ahead of check for |
|
2505 int_or_inf_or_nan. |
|
2506 |
3264
|
2507 Thu Sep 2 11:54:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2508 |
|
2509 * oct-obj.cc (make_argv): Correctly handle empty strings as args. |
|
2510 |
3263
|
2511 Fri Aug 20 08:17:52 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2512 |
|
2513 * DLD-FUNCTIONS/quad.cc (quad): Delete unused label. |
|
2514 |
|
2515 * unwind-prot.cc (saved_variable::~saved_variable): Don't try to |
|
2516 delete gen_ptr_value here. |
|
2517 |
|
2518 Mon Aug 16 21:34:33 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2519 |
|
2520 * lex.l (next_token_is_sep_op): New function. |
|
2521 (handle_close_brace, maybe_unput_comma): Use it. |
|
2522 (have_continuation): Also handle CRLF here. |
|
2523 |
|
2524 Wed Aug 11 16:06:57 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2525 |
|
2526 * file-io.cc (Ffopen): Make fopen ("filename") work and imply that |
|
2527 MODE = "r". |
|
2528 |
3258
|
2529 Wed Jul 21 15:38:52 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2530 |
3259
|
2531 * help.cc (display_names_from_help_list): Sort names before |
|
2532 listing them. |
|
2533 (print_symbol_type, Ftype): Also handle built-in constants. |
|
2534 (LIST_SYMBOLS): Correct call to symbol_table::name_list. |
|
2535 (simple_help): List constants here too. List constants and |
|
2536 variables before functions, not after. Sort names before listing |
|
2537 them. |
|
2538 |
|
2539 * variables.cc (do_who): Display built-in constants in a separate |
|
2540 section. |
|
2541 |
|
2542 * error.cc (bind_global_error_variable, clear_global_error_variable): |
|
2543 Call bind_builtin_constant, not bind_builtin_variable to set |
|
2544 __error_text__. |
|
2545 * octave.cc (intern_argv): Likewise, for argv and __argv__. |
|
2546 |
|
2547 * defun.cc (install_builtin_constant): Move function guts to |
|
2548 bind_builtin_constant in variables.cc. |
|
2549 * variables.cc (bind_builtin_constant): New function. |
|
2550 |
3258
|
2551 * symtab.cc (symbol_record::define, symbol_record::variable_reference): |
|
2552 Handle constants the same as functions. |
|
2553 (symbol_record::link_to_builtin_variable): New function. |
|
2554 (symbol_record::define_builtin_const): New function. |
|
2555 (symbol_record::define_as_fcn): Delete unused function. |
|
2556 (symbol_record::read_only_error): |
|
2557 Handle constants the same as variables. |
|
2558 * symtab.h (symbol_record::BUILTIN_CONSTANT): New enum value. |
|
2559 (symbol_record::symbol_type): Increase width to 7 bits. |
|
2560 (symbol_record::symbol_def::is_constant): New function. |
|
2561 (symbol_record::symbol_def::is_builtin_constant): New function. |
|
2562 (symbol_record::is_constant): New function. |
|
2563 (symbol_record::is_builtin_constant): New function. |
|
2564 (SYMTAB_ALL_TYPES): Add symbol_record::BUILTIN_CONSTANT. |
|
2565 * variables.cc (link_to_builtin_variable): Delete unused function. |
|
2566 (link_to_builtin_or_function): Handle built-in constants here too. |
|
2567 |
|
2568 * defun.cc (install_builtin_variable): Delete inst_as_fcn arg. |
|
2569 (install_builtin_constant): New function. |
|
2570 (install_builtin_variable_as_function): Delete unused function. |
|
2571 * defun.h (DEFVAR_INTERNAL): Delete inst_as_fcn arg. |
|
2572 (DEFCONST_INTERNAL): New macro. |
|
2573 * defun.h (DEFVAR): Delete inst_as_fcn arg. |
|
2574 (DEFCONST, DEFCONSTX): Define using DEFCONST_INTERNAL instead of |
|
2575 DEFVAR_INTERNAL. |
|
2576 * data.cc, defaults.cc, error.cc, help.cc, input.cc, lex.l, |
|
2577 load-save.cc, oct-hist.cc, oct-procbuf.cc, ov-fcn.h, |
|
2578 ov-usr-fcn.cc, ov.cc, pager.cc, parse.y, pr-output.cc, |
|
2579 pt-assign.cc, pt-decl.cc, pt-mat.cc, pt-plot.cc, pt-stmt.cc, |
|
2580 toplev.cc, variables.cc: |
|
2581 Change all invocations of DEFVAR to match new definition. |
|
2582 |
|
2583 * data.cc (symbols_of_data): Add DEFCONSTs for true and false. |
|
2584 |
3255
|
2585 Thu Jul 15 10:59:42 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2586 |
3258
|
2587 * data.cc (Fis_bool, Fis_complex, Fisempty, Fisnumeric, Fis_list, |
|
2588 Fis_map, Fis_struct): Return bool object. |
|
2589 (Fisreal): New function. |
|
2590 |
|
2591 * ov-str-mat.h (octave_char_matrix_str): Only return true if |
|
2592 Vimplicit_str_to_num_ok is also true. |
|
2593 |
3255
|
2594 * DLD-FUNCTIONS/time.cc (Ftime): Print usage message if any |
|
2595 arguments are supplied. |
|
2596 |
|
2597 * variables.cc (symbol_out_of_date): Call octave_time for time stamps. |
|
2598 |
|
2599 * fn-cache.h (octave_fcn_file_name_cache::timestamp): |
|
2600 Now octave_time object. |
|
2601 |
|
2602 * strftime.c: Move to liboctave directory. |
|
2603 * Makefile.in (DIST_SRC): Delete from list. |
|
2604 |
|
2605 * ov-usr-fcn.h (octave_user_function::t_parsed, |
|
2606 octave_user_function::t_checked): Now octave_time objects. |
|
2607 (octave_user_function::time_parsed, |
|
2608 (octave_user_function::time_checked): |
|
2609 Return value is now octave_time object. |
|
2610 (octave_user_function::mark_fcn_file_up_to_date)): |
|
2611 Arg is now octave_time object. |
|
2612 |
|
2613 * ov-fcn.h (octave_function::mark_fcn_file_up_to_date)): |
|
2614 Arg is now octave_time object. |
|
2615 (octave_function::time_parsed, octave_function::time_checked): |
|
2616 Return value is now octave_time object. |
|
2617 |
|
2618 * input.cc (Vlast_prompt_time): Now an octave_time object. |
|
2619 (octave_gets): Call octave_time::stamp() to set Vlast_prompt_time. |
|
2620 |
|
2621 * DLD-FUNCTIONS/time.cc (mk_tm_map, extract_tm, Ftime, Fgmtime, |
|
2622 Flocaltime, Fmktime, Fstrftime): Use new classes defined in |
|
2623 liboctave/oct-time.cc instead of accessing C functions directly. |
|
2624 |
3252
|
2625 Wed Jul 14 17:38:46 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2626 |
|
2627 * systime.h: Move to liboctave directory. |
|
2628 * Makefile.in (INCLUDES): Delete it from the list |
|
2629 |
|
2630 Tue Jul 13 14:34:57 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2631 |
|
2632 * sighandlers.cc (sigchld_handler): Only wait for processes in |
|
2633 octave_child_list. |
|
2634 * toplev.cc (cmd_status): Delete unused static variable. |
|
2635 (cmd_death_handler): Delete unused function. |
|
2636 (run_command_and_return_output): Don't add cmd_death_handler to |
|
2637 octave_child_list. Simply extract command exit status from |
|
2638 calling close() on the procstream object. |
|
2639 |
3249
|
2640 Mon Jul 12 22:38:50 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2641 |
|
2642 * defun.h (DEFUN_MAPPER): Handle new args, d_b_map and c_b_map. |
|
2643 * defun-int.h (DEFUN_MAPPER_INTERNAL): Likewise. |
|
2644 * mappers.cc (install_mapper_functions): Supply new args to |
|
2645 all uses of DEFUN_MAPPER. |
|
2646 * ov-mapper.cc (octave_mapper::apply): Handle mapper functions |
|
2647 that return bool objects. |
|
2648 * ov-mapper.h (octave_mapper::d_b_mapper, octave_mapper::c_b_mapper): |
|
2649 New typedefs. |
|
2650 (octave_mapper::octave_mapper): Handle new mapper function types. |
|
2651 |
|
2652 * DLD-FUNCTIONS/minmax.cc: Do a better job of handling NaNs. |
|
2653 |
|
2654 Sun Jul 11 13:15:17 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2655 |
|
2656 * pr-output.cc (do_plus_format (ostream&, double)): New function. |
|
2657 (octave_print_internal (ostream&, double, bool)): Use it. |
|
2658 (octave_print_internal (ostream&, const Matrix&, bool, int)): Ditto. |
|
2659 |
|
2660 * pr-output.cc (do_plus_format (ostream&, const Complex&)): |
|
2661 New function. |
|
2662 (octave_print_internal (ostream&, const Complex&, bool)): Use it. |
|
2663 (octave_print_internal (ostream&, const ComplexMatrix&, bool, int)): |
|
2664 Ditto. |
|
2665 |
|
2666 Sun Jun 20 23:04:00 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2667 |
|
2668 * sysdep.cc: Include sys/ioctl.h if available. |
|
2669 |
|
2670 Sat Jun 19 12:07:16 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2671 |
|
2672 * variables.cc (do_who): Make pattern and multiple non-option |
|
2673 arguments work. |
|
2674 |
3246
|
2675 Mon Jun 7 09:54:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2676 |
|
2677 * lex.l (next_token_is_bin_op, next_token_is_postfix_unary_op, |
|
2678 handle_number): Delete yytext arg. Change all callers. |
|
2679 (next_token_is_postfix_unary_op): Check the first character |
|
2680 obtained from yyinput before calling it again. |
|
2681 (next_token_is_bin_op): Do a more thorough check. |
|
2682 (handle_identifier): Also enter token in local symbol table if the |
|
2683 following token is a dot and it looks like a binary operator. |
|
2684 (whitespace_in_literal_matrix): Now static. |
|
2685 |
|
2686 * lex.l: Always use unput, not yyunput. |
|
2687 |
3244
|
2688 Fri May 28 11:02:37 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2689 |
|
2690 * DLD-FUNCTIONS/chol.cc (Fchol): If two output arguments, never |
|
2691 produce error message. |
|
2692 |
3243
|
2693 Thu May 27 18:28:35 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2694 |
|
2695 * DLD-FUNCTIONS/chol.cc (Fchol): Also return info as second output. |
|
2696 |
|
2697 * DLD-FUNCTIONS/minmax.cc (max (const ComplexMatrix&, const |
|
2698 ComplexMatrix&)): Correct test for real columns only. |
|
2699 (min (const ComplexMatrix&, const ComplexMatrix&)): Likewise. |
|
2700 |
|
2701 Wed Apr 14 12:54:25 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2702 |
|
2703 * DLD-FUNCTIONS/dassl.cc (Fdassl): Prevent recursive calls. |
|
2704 * DLD-FUNCTIONS/fsolve.cc (Ffsolve): Likewise. |
|
2705 * DLD-FUNCTIONS/lsode.cc (Flsode): Likewise. |
|
2706 * DLD-FUNCTIONS/quad.cc (Fquad): Likewise. |
|
2707 |
|
2708 * file-io.cc (Fsscanf, Ffscanf): Doc fix. |
|
2709 |
3239
|
2710 Sat Mar 27 11:07:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2711 |
|
2712 * ov.h (octave_value::count): New function. |
|
2713 * symtab.cc (symbol_record::dump_symbol_info): New function. |
|
2714 * symtab.cc (symbol_record::symbol_def::dump_symbol_info): Ditto. |
|
2715 * variables.cc (F__dump_symbol_info__): Ditto. |
|
2716 |
|
2717 * pt-misc.cc (tree_parameter_list::clear): New function. |
|
2718 * ov-usr-fcn.h (octave_user_function::clear_args_passed): Ditto. |
|
2719 * ov-usr-fcn.cc (clear_param_list): New function. |
|
2720 (clear_args_passed): New function. |
|
2721 (octave_user_function::do_index_op): Use them to decrement |
|
2722 reference counts on local variables. |
|
2723 |
3238
|
2724 Fri Mar 26 00:51:53 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2725 |
|
2726 * Makefile.in (libraries): Use the libfoo.a(objects) method of |
|
2727 creating static libs. |
|
2728 |
|
2729 * defaults.cc (symbols_of_defaults): Initialize LOADPATH to |
|
2730 Vload_path, not ":". |
|
2731 |
|
2732 Thu Mar 18 12:09:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2733 |
|
2734 * data.cc (Fisnumeric): Fix typo. |
|
2735 |
|
2736 Thu Mar 4 02:17:04 1999 James Macnicol <jamesm@evans.ee.adfa.oz.au> |
|
2737 |
|
2738 * file-io.cc (Ffread, Ffwrite): Add uint16 and uint32 data types |
|
2739 to doc string. |
|
2740 |
|
2741 Wed Mar 3 11:55:17 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2742 |
|
2743 * lex.l (handle_string): Allow "" to pass through unchanged if |
|
2744 working on a gset command. |
|
2745 |
|
2746 Tue Mar 2 01:36:29 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2747 |
|
2748 * variables.cc (Fexist): If a variable isn't defined, only go on |
|
2749 to look for a global by the same name if we are at the top level. |
|
2750 |
|
2751 Fri Jan 29 02:18:36 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2752 |
|
2753 * version.h (OCTAVE_NAME_AND_VERSION): Say `GNU Octave', not just |
|
2754 Octave. |
|
2755 |
3234
|
2756 Thu Jan 28 21:29:16 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2757 |
|
2758 * toplev.cc (Fcomputer): Use CANONICAL_HOST_TYPE, not TARGET_HOST_TYPE. |
|
2759 (octave_config_info): Likewise. |
|
2760 * version.h: Ditto. |
|
2761 |
|
2762 * sysdep.cc (Fpause): Flush output before getting user input. |
|
2763 |
3233
|
2764 Wed Jan 27 14:18:29 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2765 |
|
2766 * Makefile.in (DEFFUN_PATTERN, DEFVAR_PATTERN): Use egrep again. |
|
2767 Make the patterns work with stupid egreps that don't like empty |
|
2768 elements in alternation patterns. |
|
2769 |
|
2770 Fri Jan 22 04:41:48 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2771 |
|
2772 * load-save.cc (save_ascii_data): Check for string type first, |
|
2773 then range, then the rest. |
|
2774 (save_binary_data): Ditto. |
|
2775 |
|
2776 * pager.cc (more_than_a_screenful): Accept length as second arg. |
|
2777 Handle long lines properly, assuming the terminal wraps long lines. |
|
2778 (octave_pager_buf::do_sync): Accept length of data as second arg. |
|
2779 Use write instead of << to put characters on output stream. |
|
2780 (octave_pager_buf::sync): Don't assume data ends at first NUL. |
|
2781 (octave_diary_buf::sync): Ditto. |
|
2782 |
|
2783 Thu Jan 21 22:15:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2784 |
|
2785 * load-save.cc (save_mat_binary_data): Check for string type |
|
2786 first, then range, then the rest. |
|
2787 |
|
2788 Wed Jan 20 12:01:14 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2789 |
|
2790 * oct-stream.cc (octave_base_stream::do_scanf): Handle short and |
|
2791 long ints correctly. |
|
2792 |
|
2793 Fri Jan 15 13:04:58 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2794 |
|
2795 * parse.y (end_error): Handle case of endswitch too. |
|
2796 |
|
2797 * Makefile.in: Use basic regular expressions and grep instead of |
|
2798 egrep to find files that contain DEFVAR, DEFCONST, or DEFUN. |
|
2799 |
|
2800 Wed Dec 9 14:14:11 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2801 |
|
2802 * Makefile.in (octave): Add $(RDYNAMIC_FLAG) to link command. |
|
2803 |
|
2804 Fri Dec 4 20:26:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2805 |
|
2806 * DLD-FUNCTIONS/time.cc (Fstrftime): Make it work even when not |
|
2807 using the GNU version of strftime, which allows passing NULL for |
|
2808 the buffer to determine the required size of the buffer. |
|
2809 |
3225
|
2810 Wed Dec 2 22:38:40 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2811 |
|
2812 * utils.cc (file_in_loadpath): Expect argc == 2, not 3. |
|
2813 |
|
2814 Tue Nov 24 23:38:19 1998 Eric Norum <eric@skatter.USask.Ca> |
|
2815 |
|
2816 * mkbuiltins: Also strip off leading `./' from file names. |
|
2817 * mkops: Ditto. |
|
2818 |
|
2819 Tue Nov 24 23:24:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2820 |
|
2821 * strftime.c: Surround everything with #ifdef HAVE_STRFTIME / #endif. |
|
2822 |
|
2823 * lex.h (YY_FATAL_ERROR): Call yy_falta_error after |
|
2824 jump_to_top_level to avoid gcc warning. |
|
2825 |
|
2826 Fri Nov 20 13:34:47 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2827 |
|
2828 * ov-bool.h, ov-bool.cc (class octave_bool): Derive from |
|
2829 octave_base_scalar and get common functions via derivation. |
|
2830 * ov-scalar.h, ov-scalar.cc (class octave_scalar): Ditto. |
|
2831 * ov-complex.h, ov-complex.cc (class octave_complex): Ditto. |
|
2832 |
|
2833 * ov-base-scalar.h, ov-base-scalar.cc (class octave_base_scalar): |
|
2834 New files for new class definition. Put common scalar data type |
|
2835 stuff here. |
|
2836 * Makefile.in (OV_INCLUDES, OV_SRC): Add them to the lists. |
|
2837 |
3221
|
2838 Thu Nov 19 14:30:25 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
3225
|
2839 |
3222
|
2840 * dynamic-ld.cc (octave_dynamic_loader::mangle_name): |
|
2841 Prepend underscore here. |
|
2842 (octave_dynamic_loader::load_fcn_from_dot_oct_file): Not here. |
|
2843 |
3221
|
2844 * ov-re-mat.h (octave_matrix_value): Delete experimental code for |
|
2845 handling structure references for things like .rows, .cols, etc. |
|
2846 |
3220
|
2847 Wed Nov 18 01:18:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2848 |
3221
|
2849 * Makefile.in (VAR_FILES): Be more careful about matching. |
|
2850 (DEF_FILES): Likewise. |
|
2851 |
|
2852 * ov-base-mat.h, ov-base-mat.cc, ov-bool-mat.h, ov-bool-mat.cc, |
|
2853 ov-ch-mat.h, ov-ch-mat.cc, ov-cx-mat.h, ov-cx-mat.cc, |
|
2854 ov-re-mat.h, ov-re-mat.cc: Move default definition of all, any, |
|
2855 is_matrix_type, is_numeric_type, valid_as_zero_index, and |
|
2856 do_index_op to base class. |
|
2857 Provide definitions that override the defaults where necessary. |
3220
|
2858 |
|
2859 * mappers.cc: Don't include lo-specfun.h. |
|
2860 |
|
2861 Tue Nov 17 14:35:56 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2862 |
|
2863 * besselj.cc (Fbesselh, Fairy); New functions. |
|
2864 (Fbesselj, Fbessely, Fbesselk, Fbesseli): Update doc strings. |
|
2865 (do_bessel): Handle additional args. |
|
2866 |
|
2867 Fri Nov 13 14:47:11 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2868 |
|
2869 * lex.l (NUMBER): Allow hexadecimal constants. |
|
2870 (looks_like_hex): New function. |
|
2871 (handle_number): Check for hexadecimal constants and convert them |
|
2872 to unsigned integer values. |
|
2873 |
3219
|
2874 Thu Nov 12 11:13:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2875 |
|
2876 * input.cc (gnu_readline): Check for EOF from command_editor::readline. |
|
2877 |
|
2878 * ov-str-mat.h, ov-str-mat.cc (class octave_char_matrix_str): |
|
2879 Get common functions via new derivation scheme. |
|
2880 |
|
2881 * ov-bool-mat.h, ov-bool-mat.cc (class octave_bool_matrix): |
|
2882 Derive from octave_base_matrix and get common functions via derivation. |
|
2883 * ov-ch-mat.h, ov-ch-mat.cc (class octave_char_matrix): Ditto. |
|
2884 * ov-cx-mat.h, ov-cx-mat.cc (class octave_complex_matrix): Ditto. |
|
2885 * ov-re-mat.h, ov-re-mat.cc (class octave_real_matrix): Ditto. |
|
2886 |
|
2887 * ov-base-mat.h, ov-base-mat.cc (class octave_base_matrix): New |
|
2888 files for new class definition. Put common matrix data type |
|
2889 stuff here. |
|
2890 |
|
2891 * ov-list.cc (Fnth): New function. |
|
2892 |
|
2893 * ov-list.cc (octave_list::do_index_op): Allow more complex indexing. |
|
2894 |
|
2895 * oct-obj.cc (octave_value_list::index): New function. |
|
2896 (octave_value_list::octve_value_list (Array<octave_value>)): |
|
2897 New private constructor. |
|
2898 |
|
2899 * ov-list.cc (Fsplice): Fix docstring to match. |
|
2900 * oct-obj.cc (octave_value_list::splice): Allow special case |
|
2901 splice (x, length(x)+1, 0, y) to be equivalent to append (x, y). |
|
2902 |
|
2903 * ov-list.cc (Fappend): If an arg is a list, concatenate the lists |
|
2904 instead of appending arg as a single element. |
|
2905 |
|
2906 Wed Nov 11 14:07:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2907 |
|
2908 * load-save.cc (get_mat_data_input_line): New function. |
|
2909 (get_lines_and_columns): Use it here. |
|
2910 (read_mat_ascii_data): And here and do our own reading instead of |
|
2911 using Matrix::operator<<. |
|
2912 |
|
2913 Tue Nov 10 16:12:25 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2914 |
|
2915 * parse.y (make_constant): Initialize retval to 0. |
|
2916 |
|
2917 * toplev.h (clean_up_and_exit (void)): Delete declaration. |
|
2918 * toplev.cc (do_octave_atexit): Move guts of clean_up_for_exit |
|
2919 here, but ensure that the actions are only executed once. |
|
2920 * octave.cc (main): Don't register cleanup_tmp_files with atexit. |
|
2921 |
|
2922 * ov.h, ov.cc (class octave_value): Use DECLARE_OCTAVE_ALLOCATOR |
|
2923 and DEFINE_OCTAVE_ALLOCATOR for uniform declaration and definition |
|
2924 of allocator functions. Use DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA |
|
2925 and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA for uniform declaration |
|
2926 and definition of type id functions and data. |
|
2927 * ov-usr-fcn.h, ov-usr-fcn.cc (class octave_user_function): Ditto. |
|
2928 * ov-scalar.h, ov-scalar.cc (class octave_scalar): Ditto. |
|
2929 * ov-re-mat.h ov-re-mat.cc (class octave_matrix): Ditto. |
|
2930 * ov-range.h, ov-range.cc (class octave_range): Ditto. |
|
2931 * ov-mapper.h, ov-mapper.cc (class octave_mapper): Ditto. |
|
2932 * ov-list.h, ov-list.cc (class octave_list): Ditto. |
|
2933 * ov-file.h, ov-file.cc (class octave_file): Ditto. |
|
2934 * ov-fcn.h, ov-fcn.cc (class octave_function): Ditto. |
|
2935 * ov-cx-mat.h, ov-cx-mat.cc (class octave_complex_matrix): Ditto. |
|
2936 * ov-complex.h, ov-complex.cc (class octave_complex): Ditto. |
|
2937 * ov-ch-mat.h, ov-ch-mat.cc (octave_char_matrix): Ditto. |
|
2938 * ov-builtin.h, ov-builtin.cc (class octave_builtin): Ditto. |
|
2939 * ov-bool.h, ov-bool.cc (class octave_bool): Ditto. |
|
2940 * ov-bool-mat.h, ov-bool-mat.cc (octave_bool_matrix): Ditto. |
|
2941 |
|
2942 * ov.h (DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA): New macro. |
|
2943 (DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA): Ditto. |
|
2944 |
3215
|
2945 Mon Nov 9 16:12:37 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2946 |
|
2947 * pr-output.cc (octave_print_internal): Reorder default args for |
|
2948 charMatrix version. |
|
2949 (octave_print_internal): New function for boolMatrix. |
|
2950 |
|
2951 * version.h (OCTAVE_STARTUP_MESSAGE): Note that this is a |
|
2952 development release. |
|
2953 |
|
2954 * toplev.cc (do_octave_atexit): Call flush_octave_stdout here. |
|
2955 (clean_up_for_exit): And here. |
|
2956 |
|
2957 Mon Nov 9 15:20:53 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2958 |
|
2959 * input.cc (get_user_input): Check retval.length(), not retval.length. |
|
2960 |
|
2961 Sun Nov 8 19:30:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2962 |
|
2963 * pt-assign.cc (tree_simple_assignment::rvalue): If etype is |
|
2964 asn_eq, don't evaluate ult again because retval is just rhs value. |
|
2965 (tree_multi_assignment::rvalue): Likewise. |
|
2966 |
|
2967 Fri Nov 6 12:14:29 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2968 |
|
2969 * pt-loop.cc (tree_for_command::eval): Move code for string RHS |
|
2970 outside if clause for matrix types. |
|
2971 |
|
2972 * pt-idx.cc: Don't forget to define arg_nm. |
|
2973 Move contstructor here. |
|
2974 * pt-idx.h: From here. |
|
2975 |
|
2976 * data.cc (Fisempty): Also return true for empty strings. |
|
2977 |
3212
|
2978 Wed Nov 4 17:21:41 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2979 |
|
2980 * ov-base.cc (octave_base_value::rows, octave_base_value::columns, |
|
2981 octave_base_value::length): Delete. |
|
2982 * ov-base.h (octave_base_value::rows, octave_base_value::columns, |
|
2983 octave_base_value::length): Define here. All return -1 if not |
|
2984 defined in a derived class. |
|
2985 |
|
2986 * data.cc (Fis_matrix): Also return true if the arg is a range. |
|
2987 |
3209
|
2988 Tue Nov 3 09:40:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2989 |
|
2990 * data.cc (Fis_bool): New function. |
|
2991 Also add alias for islogical. |
|
2992 |
|
2993 * ov.h (octave_value::is_bool_type): New function. |
|
2994 * ov-base.h (octave_base_value::is_bool_type): Likewise. |
|
2995 * ov-bool.h (octave_bool::is_bool_type): Likewise. |
|
2996 * ov-bool-mat.h (octave_bool_matrix::is_bool_type): Likewise. |
|
2997 |
3206
|
2998 Mon Nov 2 13:36:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2999 |
3208
|
3000 * lex.l (handle_close_brace): Also handle case of ']' followed by |
|
3001 other assignment ops (+=, -=, ...). |
|
3002 |
|
3003 * pt-assign.cc (tree_simple_assignment::rvalue): Correctly handle |
|
3004 return value and printing for operators other than `='. |
|
3005 (tree_multi_assignment::rvalue): Likewise. |
|
3006 |
|
3007 * pt-assign.h (tree_multi_assignment::etype): New data member. |
|
3008 * pt-assign.cc (tree_multi_assignment::rvalue): Use it instead of |
|
3009 assuming `='. |
|
3010 (tree_multi_assignment::oper): New function. |
|
3011 * pt-pr-code.cc (tree_print_code::visit_multi_assignment): Use |
|
3012 it instead of always printing `='. |
|
3013 * parse.y (make_assign_op): Pass expression type to |
|
3014 tree_multi_assignment constructor. |
|
3015 |
3206
|
3016 * Makefile.in (stmp-pic): New target. |
|
3017 ($(PICOBJ)): Depend on stmp-pic, not pic. |
|
3018 (clean): Delete stmp-pic. |
|
3019 |
|
3020 Sun Nov 1 23:24:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3021 |
|
3022 * mappers.cc (install_mapper_functions): Add alias for isfinite. |
|
3023 |
|
3024 Sat Oct 31 08:46:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3025 |
|
3026 * data.cc (Fisnumeric): New function. |
|
3027 |
3203
|
3028 Fri Oct 30 08:39:30 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3029 |
3205
|
3030 * oct-lvalue.cc (octave_lvalue::do_unary_op): Make it work for |
|
3031 indexed ops too. |
|
3032 * ov.cc (octave_value::unary_op_to_assign_op): New function. |
|
3033 (octave_value::do_non_const_unary_op): New function for indexed ops. |
|
3034 |
3204
|
3035 * parse.y (LEFTDIV_EQ, ELEFTDIV_EQ): New tokens. |
|
3036 (assign_expr): Add rules for them. |
|
3037 (make_assign_op): Handle them here too. |
|
3038 * lex.l: Recognize them. |
|
3039 * ov.h (octave_value::assign_op): Add ldiv_eq and el_ldiv_eq. |
|
3040 * ov.cc (octave_value::assign_op_as_string): Ditto. |
|
3041 (octave_value::op_eq_to_binary_op): Ditto. |
|
3042 (octave_value::assign): Handle OP= style operators with brute force. |
|
3043 (octave_value::simple_assign): New function. |
|
3044 |
3203
|
3045 * parse.y (matrix): Dont' forget to reset |
|
3046 lexer_flags.looking_at_matrix_or_assign_lhs. |
|
3047 |
|
3048 * oct-lvalue.cc (octave_lvalue::assign): Don't call change |
|
3049 function if error occurs. |
|
3050 (octave_lvalue::do_unary_op): If we have an index, fail with message. |
|
3051 |
3202
|
3052 Thu Oct 29 09:27:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3053 |
3203
|
3054 * ov.cc (do_binary_op): Protect against invalid type conversions. |
|
3055 (try_assignment_with_conversion): Likewise. |
|
3056 (do_unary_op): Likewise. |
|
3057 |
|
3058 * ov.h (OV_UNOP_FN, OV_UNOP_OP, OV_UNOP_FN_OP): New macros. |
|
3059 Use them to define not, uminus, transpose, hermitian functions |
|
3060 and operators ! and -. |
|
3061 (OV_BINOP_FN, OV_BINOP_OP, OV_BINOP_FN_OP): New macros. |
|
3062 Use them to define add, sub, mul, div, pow, ldiv, lshift, rshift, |
|
3063 lt, le, eq, ge, gt, ne, el_mul, el_div, el_pow, el_ldiv, el_and, |
|
3064 el_or, struct_ref, functions and operators <, <=, ==, >=, >, !=, |
|
3065 +, -, *, and /. |
|
3066 |
|
3067 * ops.h (CONVDECLX): New macro. |
|
3068 * ov-base.cc (matrix_conv, complex_matrix_conv, string_conv): |
|
3069 Use it to declare these functions. |
|
3070 |
|
3071 * ops.h (CONVDECL, INSTALL_WIDENOP): |
|
3072 Prefix function name with `oct_conv_'. |
|
3073 (INSTALL_BINOP, BINOPDECL): Prefix function name with `oct_binop_'. |
|
3074 (INSTALL_ASSIGNOP, INSTALL_ASSIGNANYOP, ASSIGNOPDECL): |
|
3075 Prefix function name with `oct_assignop_'. |
|
3076 (UNOPDECL, DEFNCUNOP_METHOD, INSTALL_UNOP, INSTALL_NCUNOP): |
|
3077 Prefix function name with `oct_unop_'. |
|
3078 |
|
3079 * ov-str-mat.cc (default_numeric_conversion_function): |
|
3080 Return 0 if conversion fails. |
|
3081 |
|
3082 * parse.y (make_prefix_op, make_postfix_op): Use |
|
3083 octave_value::unary_op enum. |
|
3084 |
|
3085 * pt-unop.cc (tree_prefix_expression::rvalue): Use new unary_op |
|
3086 functions from octave_value and octave_lvalue classes. |
|
3087 (tree_prefix_expression::rvalue): Likewise. |
|
3088 |
|
3089 * pt-unop.cc (tree_unary_expression::oper): Move here. |
|
3090 (tree_prefix_expression::oper, tree_postfix_expression): From here. |
|
3091 |
|
3092 * pt-unop.h (tree_prefix_expression, tree_postfix_expression): |
|
3093 Delete enums. |
|
3094 (tree_unary_expression): Use octave_value::unary_op enum. |
|
3095 * parse.y (make_prefix_op, make_postfix_op): Likewise. |
|
3096 |
|
3097 * oct-lvalue.h (octave_lvalue::do_unary_op): New function. |
|
3098 (octave_lvalue::increment, octave_lvalue::decrement): Delete. |
|
3099 |
|
3100 * ov-typeinfo.h (octave_value_typeinfo::non_const_unary_ops): |
|
3101 New data member. |
|
3102 * ov-typeinfo.h (octave_value_typeinfo::lookup_non_const_unary_op): |
|
3103 New function. |
|
3104 * ov-typeinfo.cc (octave_value_typeinfo::register_non_const_unary_op): |
|
3105 New function. |
|
3106 (octave_value_typeinfo::do_register_non_const_unary_op): Ditto. |
|
3107 (octave_value_typeinfo::do_lookup_non_const_unary_op): Ditto. |
|
3108 |
|
3109 * ov.cc (octave_value::do_non_const_unary_op): New function. |
|
3110 |
|
3111 * Makefile.in (OP_XSRC): Add op-chm.cc and op-range.cc to the list. |
|
3112 |
|
3113 * OPERATORS/op-str-str.cc: Define string matrix unary operators here. |
|
3114 (install_str_str_ops): Install them here. |
|
3115 * ov-bool-mat.h (octave_bool_matrix::transpose, |
|
3116 octave_bool_matrix_value::hermitian): Delete. |
|
3117 |
|
3118 * OPERATORS/op-chm.cc: New file. Define char matrix unary operators. |
|
3119 (install_chm_ops): Install them here. |
|
3120 * ov-ch-mat.h (octave_char_matrix::transpose, |
|
3121 octave_char_matrix_value::hermitian): Delete. |
|
3122 * ops.cc (install_ops): Call install_chm_ops. |
|
3123 |
|
3124 * OPERATORS/op-bm-bm.cc: Define bool matrix unary operators here. |
|
3125 (install_bm_bm_ops): Install them here. |
|
3126 * ov-bool-mat.h (octave_bool_matrix::transpose, |
|
3127 octave_bool_matrix_value::hermitian): Delete. |
|
3128 |
|
3129 * ov-bool.h (octave_bool::not, octave_bool::uminus, |
|
3130 octave_bool::transpose, octave_bool::hermitian): Delete. |
|
3131 |
|
3132 * OPERATORS/op-cs-cs.cc: Define complex scalar unary operators here. |
|
3133 (install_cs_cs_ops): Install them here. |
|
3134 * ov-complex.h (octave_complex::not, octave_complex::uminus, |
|
3135 octave_complex::transpose, octave_complex::hermitian): Delete. |
|
3136 |
|
3137 * OPERATORS/op-cm-cm.cc: Define complex matrix unary operators here. |
|
3138 (install_cm_cm_ops): Install them here. |
|
3139 * ov-cx-mat.h (octave_complex_matrix::not, |
|
3140 octave_complex_matrix::uminus, octave_complex_matrix::transpose, |
|
3141 octave_complex_matrix::hermitian): Delete. |
|
3142 |
|
3143 * OPERATORS/op-m-m.cc: Define matrix unary operators here. |
|
3144 (install_m_m_ops): Install them here. |
|
3145 * ov-re-mat.h (octave_matrix::not, octave_matrix::uminus, |
|
3146 octave_matrix::transpose, octave_matrix::hermitian): Delete. |
|
3147 |
|
3148 * OPERATORS/op-range.cc: New file. Define range unary operators. |
|
3149 (install_range_ops): Install them here. |
|
3150 * ov-range.h (octave_range::not, octave_range::uminus, |
|
3151 octave_range::transpose, octave_range::hermitian): Delete. |
|
3152 * ops.cc (install_ops): Call install_range_ops. |
|
3153 |
|
3154 * OPERATORS/op-s-s.cc: Define scalar unary operators here. |
|
3155 (install_s_s_ops): Install them here. |
|
3156 * ov-scalar.h (octave_scalar::not, octave_scalar::uminus, |
|
3157 octave_scalar::transpose, octave_scalar::hermitian): Delete. |
|
3158 |
|
3159 * ops.h (INSTALL_UNOP, CAST_UNOP_ARG, UNOPDECL, DEFUNOPX, DEFUNOP, |
|
3160 DEFUNOP_OP, DEFUNOP_FN): New macros. |
|
3161 |
|
3162 * ov.h (unary_op_fcn): New typedef. |
|
3163 (octave_value::unary_op): New enum. |
|
3164 * ov.cc (octave_value::octave_value): New function. |
|
3165 |
|
3166 * ov.h (octave_value::not, octave_value::uminus, |
|
3167 octave_value::transpose, octave_value::hermitian, |
|
3168 octave_value::increment, octave_value::decrement): Delete. |
|
3169 |
|
3170 * ov-base.cc (octave_base_value::not, octave_base_value::uminus, |
|
3171 octave_base_value::transpose, octave_base_value::hermitian, |
|
3172 octave_base_value::increment, octave_base_value::decrement): Delete. |
|
3173 |
|
3174 * ov.cc (gripe_unary_op): New function. |
|
3175 (do_unary_op): New function. |
|
3176 * ov-typeinfo.h (octave_value_typeinfo::unary_ops): |
|
3177 New data member. |
|
3178 * ov-typeinfo.cc (octave_value_info::register_unary_op, |
|
3179 octave_value_info::do_register_unary_op, |
|
3180 octave_value_info::lookup_unary_op, |
|
3181 octave_value_info::do_lookup_unary_op): |
|
3182 New functions. |
|
3183 |
3202
|
3184 * ov-list.cc (Fsplice): Use new octave_value::int_value function here. |
|
3185 (octave_list::do_index_op): Likewise. |
|
3186 (octave_list::assign): Likewise. |
|
3187 * toplev.cc (Fquit): Likewise. |
|
3188 * syscalls.cc (Fwaitpid): Likewise. |
|
3189 (Ffcntl): Likewise. |
|
3190 * file-io.cc (do_fread): Likewise. |
|
3191 (do_fwrite): Likewise. |
|
3192 * data.cc (make_diag): Likewise. |
|
3193 (Fsize): Likewise. |
|
3194 (get_dimensions): Likewise. |
|
3195 (Flinspace): |
|
3196 |
|
3197 * ov-base.cc (octave_base_value::int_value): New function. |
|
3198 (octave_base_value::nint_value): Ditto. |
|
3199 * ov.h (octave_value::int_value): Ditto. |
|
3200 (octave_value::nint_value): Ditto. |
|
3201 |
|
3202 * ov-list.cc (octave_list::assign): Fix off-by-one error. |
|
3203 |
3196
|
3204 Wed Oct 28 11:01:37 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3205 |
3202
|
3206 * load-save.cc (read_mat_ascii_data): Try harder to convert file |
|
3207 name to valid variable name. |
|
3208 |
|
3209 * data.cc (Fisempty, Fis_matrix): New functions. |
|
3210 |
|
3211 * ov-str-mat.h (octave_char_matrix_str::is_matrix_type): New function. |
|
3212 |
3196
|
3213 * OPERATORS/op-list.cc: New file. |
|
3214 * Makefile.in (OP_XSRC): Add it to the list. |
|
3215 |
|
3216 * ov-list.cc (octave_list::assign): New function. |
|
3217 |
|
3218 * ov-typeinfo.h (octave_value_typeinfo::assignany_ops): |
|
3219 New data member. |
|
3220 * ov-typeinfo.cc (octave_value_info::register_assignany_op, |
|
3221 octave_value_info::do_register_assignany_op, |
|
3222 octave_value_info::lookup_assignany_op, |
|
3223 octave_value_info::do_lookup_assignany_op): |
|
3224 New functions. |
|
3225 * ov.cc (octave_value::try_assignment (octave_value::assign_op, |
|
3226 const octave_value_list&, const octave_value&)): If no assignment |
|
3227 operator for particular RHS type exists, try finding one for |
|
3228 generic octave_value as RHS type. |
|
3229 * ops.h (DEFASSIGNANYOP_FN): New macro. |
|
3230 |
|
3231 * ov-list.cc (Fsplice): New function. |
|
3232 * oct-obj.cc (octave_value_list::splice): New function. |
|
3233 |
|
3234 * ov.cc (Vresize_on_range_error): No longer static. |
|
3235 * ov.h (Vresize_on_range_error): Provide extern declaration. |
|
3236 |
|
3237 * oct-procbuf.cc (symbols_of_oct_procbuf): Don't declare static. |
|
3238 |
|
3239 * data.cc (Flength): New function. |
|
3240 * ov.h (octave_value::length): New virtual function. |
|
3241 * ov-base.cc (octave_base_value::length): New function. |
|
3242 (octave_base_value::rows, octave_base_value::columns): Move |
|
3243 definitions here, from ov-base.h. Don't return -1. Instead, |
|
3244 gripe about wrong argument type. |
|
3245 * ov-bool-mat.h (octave_bool_matrix::length): New function. |
|
3246 * ov-bool.h (octave_bool::length): Ditto. |
|
3247 * ov-ch-mat.h (octave_char_matrix::length): Ditto. |
|
3248 * ov-complex.h (octave_complex::length): Ditto. |
|
3249 * ov-cx-mat.h (octave_complex_matrix::length): Ditto. |
|
3250 * ov-list.h (octave_list::length): Ditto. |
|
3251 * ov-range.h (octave_range::length): Ditto. |
|
3252 * ov-re-mat.h (octave_matrix::length): Ditto. |
|
3253 * ov-scalar.h (octave_scalar::length): Ditto. |
|
3254 |
|
3255 Tue Oct 27 22:19:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3256 |
|
3257 * ov-list.cc (octave_list::print_raw): Handle case of empty list. |
|
3258 (octave_list::print_name_tag): Likewise. |
|
3259 |
|
3260 * octave.cc (intern_argv): Built-in variable argv is now a list of |
|
3261 strings instead of a string vector. |
|
3262 Always bind argv, making it an empty list if there are no args. |
|
3263 |
|
3264 Mon Oct 26 08:41:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3265 |
|
3266 * xdiv.cc (mx_leftdiv_conform): Explicitly declare args to be |
|
3267 passed as references to const objects. Fix explicit instantiation |
|
3268 requests to match. |
|
3269 (mx_div_conform): Likewise. |
|
3270 |
|
3271 * pt-unop.h (tree_prefix_expression): Reorder constructor args to |
|
3272 put those with default values last. |
|
3273 (tree_postfix_expression): Likewise. |
|
3274 * parse.y: Change all callers. |
|
3275 |
3192
|
3276 Fri Oct 23 12:07:32 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3277 |
3196
|
3278 * utils.cc (Ffile_in_loadpath): New function. |
|
3279 |
|
3280 * defaults.cc (Vload_path, Vdefault_load_path): Now static. |
|
3281 |
|
3282 * help.cc (simple_help): Use Vload_path_dir_path here instead of |
|
3283 trying to reconstruct it from Vload_path. |
|
3284 * fn-cache.cc (octave_fcn_file_name_cache::do_list): Likewise. |
|
3285 (octave_fcn_file_name_cache::update): Likewise. |
|
3286 |
|
3287 * defaults.cc (octave_loadpath): Construct Vload_path_dir_path |
|
3288 using Vdefault_load_path. |
|
3289 (set_default_path): Likewise. |
|
3290 |
|
3291 * defaults.h, defaults.cc (maybe_add_default_load_path): Delete. |
|
3292 |
3192
|
3293 * defaults.cc (Vdefault_load_path): New static variable. |
|
3294 (set_default_path): Set it. |
|
3295 (maybe_add_default_load_path): Use it. |
|
3296 (symbols_of_defaults): Add DEFCONST for DEFAULT_LOADPATH. |
|
3297 Thanks to Rafael Laboissiere <rafael@icp.inpg.fr>. |
|
3298 |
|
3299 * defaults.cc (set_default_path): If OCTAVE_PATH is set in the |
|
3300 environment, call maybe_add_default_load_path on it. |
|
3301 |
|
3302 Tue Oct 20 20:58:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3303 |
|
3304 * defaults.cc (maybe_add_default_load_path): If LOADPATH contains |
|
3305 an embedded "::", insert the default path there too. |
|
3306 |
3189
|
3307 Fri Oct 16 00:52:15 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3308 |
|
3309 * parse.y (in_matrix_or_assign_lhs): New subroutine for lexical |
|
3310 feedback. |
|
3311 (matrix): Use it. |
|
3312 (assign_lhs): Ditto. |
|
3313 * lex.h (lexical_feedback::looking_at_matrix_or_assign_lhs): New |
|
3314 data member. |
|
3315 * lex.l (handle_identifier): Use it to handle keywords like `cd' |
|
3316 as variables in contexts like [ab, cd] = foo (). |
|
3317 |
|
3318 * ov-str-mat.h |
|
3319 (octave_char_matrix_str::octave_char_matrix_str (char c)): |
|
3320 New constructor. |
|
3321 * ov-ch-mat.h (octave_char_matrix::octave_char_matrix (char c)): |
|
3322 New constructor. |
|
3323 * ov.cc (octave_value::octave_value (char c): New constructor. |
|
3324 |
|
3325 * pt-loop.cc (tree_simple_for_command::eval): Handle case of RHS |
|
3326 as string. |
|
3327 |
|
3328 Thu Oct 15 00:56:47 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3329 |
|
3330 * DLD-FUNCTIONS/rand.cc: Declare Fortran subroutines as returning |
|
3331 int, not int*. |
|
3332 |
|
3333 Wed Oct 14 23:51:31 1998 Georg Thimm <thimm@idiap.ch> |
|
3334 |
|
3335 * load-save.cc (Vcrash_dumps_octave_core): New static variable. |
|
3336 (save_user_variables): Only save variables if |
|
3337 Vcrash_dumps_octave_core is true. |
|
3338 (symbols_of_load_save): Add DEFVAR for it here. |
|
3339 (crash_dumps_octave_core): New function. |
|
3340 * octave.cc (maximum_braindamage): Bind crash_dumps_octave_core to |
|
3341 0.0 here. |
|
3342 |
|
3343 Tue Oct 13 22:05:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3344 |
|
3345 * input.cc (read_readline_init_file): New function. |
|
3346 |
|
3347 Thu Oct 8 13:47:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3348 |
|
3349 * oct-procbuf.h (octave_procbuf::wstatus): New data member. |
|
3350 Initialize in constructors. |
|
3351 (octave_procbuf::wait_status): New member function. |
|
3352 * oct-procbuf.cc (octave_procbuf::sys_close): Use class data |
|
3353 member wstatus, not local variable. |
|
3354 * procstream.cc (procstreambase::close): Don't call sys_close directly. |
|
3355 Get subprocess exit status by calling wait_status for our procbuf. |
|
3356 * pt-plot.cc (close_plot_stream): Send "quit" command to gnuplot |
|
3357 before deleting plot_stream. |
|
3358 |
|
3359 |
|
3360 Thu Oct 1 22:39:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3361 |
|
3362 * data.cc (Fis_complex): New function. |
|
3363 |
3185
|
3364 Fri Sep 25 11:50:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3365 |
|
3366 * load-save.cc (write_header): Rename from write_binary_header. |
|
3367 Also write header for Octave ASCII files. |
|
3368 |
|
3369 * load-save.cc (Fsave): Implement -append option. |
|
3370 |
|
3371 * defaults.cc (Frehash): New function. |
|
3372 |
|
3373 Fri Sep 25 11:50:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3374 |
|
3375 * help.cc (help_from_info): Improve error message in case that |
|
3376 info doesn't work. |
|
3377 |
3180
|
3378 Thu Sep 24 10:48:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3379 |
3185
|
3380 * Makefile.in (DLD_XSRC): Replace qzval.cc with qz.cc |
|
3381 |
|
3382 * DLD-FUNCTIONS/balance.cc: Update from A. S. Hodel |
|
3383 <scotte@eng.auburn.edu>. |
|
3384 |
|
3385 * DLD-FUNCTIONS/qz.cc: New file. |
|
3386 |
|
3387 * DLD-FUNCTIONS/qzval.cc: Delete. |
|
3388 |
3180
|
3389 * parse.y (plot_command1): Don't allow it to be empty. |
|
3390 (plot_command): Handle simple `PLOT' and `PLOT ranges' as special |
|
3391 cases here. |
|
3392 |
|
3393 Wed Sep 23 21:10:08 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3394 |
|
3395 * lex.l: Change <MATRIX>{SNLCMT}*\n{SNLCMT}* pattern |
|
3396 to <MATRIX>{S}*{COMMENT}{SNLCMT}* | <MATRIX>{S}*{NL}{SNLCMT}*. |
|
3397 |
|
3398 Fri Sep 4 10:50:00 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3399 |
|
3400 * file-io.cc (Ffwrite): Fix doc string. |
|
3401 |
|
3402 Wed Sep 2 16:22:23 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3403 |
|
3404 * input.cc (match_sans_spaces): Make it work. |
|
3405 |
|
3406 * toplev.cc (quit): Require nargout == 0. |
|
3407 |
|
3408 * input.cc (get_user_input): Only try matching "exit", "quit", and |
|
3409 "return" if debugging. |
|
3410 |
|
3411 Tue Sep 1 12:50:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3412 |
|
3413 * octave.cc: Use -H as single character equivalent of --no-history. |
|
3414 |
|
3415 Sat Aug 29 12:23:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3416 |
|
3417 * oct-obj.cc (octave_value_list::make_argv): If some values are |
|
3418 string vectors, insert all the elements, not just the first. |
|
3419 |
|
3420 Tue Aug 18 16:39:50 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3421 |
|
3422 * oct-stream.cc (octave_base_stream::do_gets): Accept last line of |
|
3423 file even if it doesn't end in a newline character. |
|
3424 |
|
3425 Tue Aug 18 16:25:49 1998 Mumit Khan <khan@xraylith.wisc.edu> |
|
3426 |
|
3427 * xdiv.cc (mx_leftdiv_conform, mx_div_conform): Instantiate correct |
|
3428 templates. |
|
3429 |
|
3430 Thu Jul 30 00:37:43 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3431 |
|
3432 * pt-loop.cc (tree_for_command::eval): Check for range first. |
|
3433 If error occurs when extracting matrix value, return early. |
|
3434 Don't bother to check for string type. |
|
3435 |
|
3436 * ov-ch-mat.h (octave_char_matrix::is_real_matrix): New function. |
|
3437 |
|
3438 Tue Jun 23 15:09:54 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3439 |
|
3440 * parse.y (clear_current_script_file_name): New function. |
|
3441 (parse_fcn_file): Bind current_script_file_name while script is |
|
3442 executing. Use unwind_protect to clear it once the script is |
|
3443 finished. |
|
3444 |
|
3445 * pt-plot.cc (Fgraw): New function. |
|
3446 |
3178
|
3447 Mon Jun 22 22:13:38 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3448 |
|
3449 * variables.cc (is_valid_function): Provide version that takes |
|
3450 function name as string. |
|
3451 |
|
3452 * parse.y (binary_expr): Fix thinko that resulted in incorrect |
|
3453 evaluation of -x^y. Thanks to Richard Allan Holcombe |
|
3454 <raholcom@unity.ncsu.edu>. |
|
3455 (feval): Don't attempt to copy nonexistent arg names. |
|
3456 |
|
3457 Mon Jun 22 21:35:50 1998 Richard Allan Holcombe <raholcom@unity.ncsu.edu> |
|
3458 |
|
3459 * xpow.cc (xpow): Improve efficiency for matrix^(scalar int) case. |
|
3460 |
|
3461 Thu Jun 4 12:42:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3462 |
|
3463 * ov-usr-fcn.cc (octave_user_function::octave_all_va_args): |
|
3464 If num_args_passed < num_named_args, create zero length list. |
|
3465 |
3176
|
3466 Thu May 14 16:23:15 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3467 |
|
3468 * DLD-FUNCTIONS/getrusage.cc: Include sys/types.h too. |
|
3469 |
|
3470 Mon May 11 00:38:45 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3471 |
|
3472 * pager.cc (Fdiary): Don't forget to set write_to_diary file if |
|
3473 just given a file name. |
|
3474 |
|
3475 * input.cc (octave_gets): Only send new line character to |
|
3476 octave_diary if current_input_line is empty or doesn't already end |
|
3477 with a new line character.. |
|
3478 Don't send input from function files or scripts to octave_diary. |
|
3479 |
3174
|
3480 Sun May 3 19:54:38 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3481 |
|
3482 * lex.l (reset_parser): Also call yyrestart if forced_interactive |
|
3483 is true, but not if input_from_startup_file is true. |
|
3484 |
|
3485 Tue Apr 28 14:06:20 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3486 |
|
3487 * oct-procbuf.cc (Vkluge_procbuf_delay): New static variable. |
|
3488 (kluge_procbuf_delay): New function. |
|
3489 (symbols_of_oct_procbuf): New function. |
|
3490 (octave_procbuf::open): Delay Vkluge_procbuf_delay microseconds |
|
3491 after forking. |
|
3492 |
|
3493 Thu Apr 23 15:41:08 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3494 |
|
3495 * defaults.cc (Vload_path_dir_path): New variable. |
|
3496 * utils.cc (file_in_path): Use it. |
|
3497 |
|
3498 * utils.cc (search_path_for_file): Undo previous change. |
|
3499 (file_in_path): Undo previous change. |
|
3500 * defaults.cc (loadpath): Undo previous change. Tilde expansion |
|
3501 is once again handled correctly by the code in |
|
3502 liboctave/pathsearch.cc. |
|
3503 |
|
3504 Mon Apr 20 21:50:34 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3505 |
|
3506 * data.cc (get_dimensions): Allow zeros ([], 3) to work, for |
|
3507 compatibility with Matlab. |
|
3508 |
|
3509 * dynamic-ld.cc [WITH_DL && ! HAVE_DLFCN_H]: Add declarations for |
|
3510 dlopen, dlerror, dlsym, and dlclose. |
|
3511 |
|
3512 * octave.gperf: Handle __FILE__ and __LINE__. |
|
3513 * lex.l (is_keyword): Likewise. |
|
3514 * Makefile.in (oct-gperf.h): Pass -D option to gperf. |
|
3515 Postprocess output of gperf to convert name of static variable |
|
3516 from lookup to gperf_lookup, to avoid conflict with our function |
|
3517 of the same name defined in variables.cc. |
|
3518 |
3168
|
3519 Sat Apr 18 20:17:10 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3520 |
|
3521 * help.cc (USE_GNU_INFO): Delete uses of this macro. |
|
3522 |
3167
|
3523 Thu Apr 16 01:00:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3524 |
|
3525 * dynamic-ld.cc: Only include dlfcn.h if HAVE_DLFCN_H. |
|
3526 |
3165
|
3527 Wed Apr 15 01:03:05 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3528 |
|
3529 * input.cc (Vlast_prompt_time): New global variable. |
|
3530 (octave_gets): Set it. |
3166
|
3531 * ov-fcn.h (octave_function::time_checked): New virtual function |
|
3532 (octave_function::mark_fcn_file_up_to_date): Ditto. |
3165
|
3533 * ov-usr-fcn.h (octave_user_function::time_checked): New function. |
|
3534 (octave_user_function::mark_fcn_file_up_to_date): Ditto. |
|
3535 (octave_user_function::t_checked): New data member. |
|
3536 * variables.cc (symbol_out_of_date): Only check file time stamp if |
|
3537 a prompt has been printed since the last time check. |
|
3538 |
|
3539 * pt-plot.h, pt-plot.cc (subplot_axes): New class. |
|
3540 (subplot): Handle axes. |
|
3541 (Vgnuplot_command_axes): New static variable. |
|
3542 (gnuplot_command_axes): New function. |
|
3543 (symbols_of_pt_plot): DEFVAR gnuplot_command_axes. |
|
3544 * pt-walk.h (tree_walker::visit_subplot_axes): New virtual function. |
|
3545 * parse.y (plot_options): Handle axes. |
|
3546 * lex.l (plot_axes_token): New function. |
|
3547 (is_keyword): Use it. |
|
3548 (is_plot_keyword): Recognize "axes" and "axis". |
|
3549 * lex.h (class lexical_feedback): New field, in_plot_axes. |
|
3550 (lexical_feedback::init): Reset it. |
|
3551 |
|
3552 Tue Apr 14 23:32:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3553 |
|
3554 * parse.y (parse_fcn_file): New arg, force_script. Change callers. |
|
3555 |
3164
|
3556 Fri Apr 10 11:01:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3557 |
|
3558 * help.cc (type): Also print values of variables. |
|
3559 |
3162
|
3560 Wed Apr 8 01:00:58 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3561 |
3164
|
3562 * pr-output.cc (set_format): Set scale to 1.0 if all elements are |
|
3563 int or inf or nan. |
|
3564 |
3162
|
3565 * parse.y (Vwarn_future_time_stamp): New variable. |
|
3566 (symbols_of_parse): Add DEFVAR for it. |
|
3567 (warn_future_time_stamp): New function. |
|
3568 (frob_function_def): Maybe warn about files with future time stamps. |
|
3569 |
|
3570 Thu Apr 2 20:43:45 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3571 |
|
3572 * pt-arg-list.cc (tree_argument_list::convert_to_const_vector): In |
|
3573 error messages, print element numbers starting with 1, not 0. |
|
3574 |
|
3575 Sat Mar 28 15:25:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3576 |
|
3577 * toplev.cc (clean_up_for_exit): New function. |
|
3578 (clean_up_and_exit): Use it. |
|
3579 * sighandlers.cc (my_friendly_exit): Call it instead of |
|
3580 clean_up_and_exit, then do default action for signal. |
|
3581 |
|
3582 * sighandlers.cc (octave_new_handler): Call my_friendly_exit with |
|
3583 signal set to SIGABRT if it is defined, or -1 otherwise. |
|
3584 |
|
3585 * error.cc (verror): Fix thinko in attempt to skip `error: ' tag |
|
3586 when buffering error messages. |
|
3587 * pt-except.cc (tree_try_catch::eval): Reset buffer_error_messages |
|
3588 here if just discarding unwind_protect frame. |
|
3589 |
|
3590 Wed Mar 18 12:35:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3591 |
|
3592 * xpow.cc (elem_xpow): For real-scalar .^ matrix case, result is |
|
3593 complex only if real-scalar is negative and matrix has some |
|
3594 non-integer values. |
|
3595 |
|
3596 Tue Mar 17 17:47:50 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3597 |
|
3598 * pt-plot.cc (Vgnuplot_command_plot, Vgnuplot_command_replot, |
|
3599 Vgnuplot_command_splot, Vgnuplot_command_using, |
|
3600 Vgnuplot_command_with, Vgnuplot_command_title, |
|
3601 Vgnuplot_command_end): New static variables. |
|
3602 (symbols_of_pt_plot): DEFVAR them. |
|
3603 (gnuplot_command_plot, gnuplot_command_replot, |
|
3604 gnuplot_command_splot, gnuplot_command_using, |
|
3605 gnuplot_command_with, gnuplot_command_title, |
|
3606 gnuplot_command_end): New functions. |
|
3607 (open_plot_stream, send_to_plot_stream, tree_plot_command::eval, |
|
3608 subplot_using::print, subplot_style::print, subplot::print, |
|
3609 do_external_plotter_cd, Fgset, Fgshow): Use them instead of the |
|
3610 GPLOT_CMD_PLOT, GPLOT_CMD_REPLOT, GPLOT_CMD_SPLOT, |
|
3611 GPLOT_CMD_USING, GPLOT_CMD_WITH, GPLOT_CMD_TITLE, and |
|
3612 GPLOT_CMD_END macros. |
|
3613 |
3160
|
3614 Fri Feb 27 12:25:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3615 |
|
3616 * help.cc (additional_help_message): Fix www address. |
|
3617 |
|
3618 Tue Feb 24 00:42:59 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3619 |
|
3620 * help.cc (simple_help): Put additional help message first. |
|
3621 (additional_help_message): Add information about web site and |
|
3622 mailing list. |
|
3623 |
3156
|
3624 Fri Feb 20 00:41:06 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3625 |
|
3626 * pt-plot.cc (GPLOT_CMD_REPLOT): Clear before replot. |
|
3627 |
|
3628 * Makefile.in: Better handling of lib flags for linking. |
|
3629 |
|
3630 Thu Feb 19 21:14:30 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3631 |
|
3632 * pt-decl.cc (Vinitialize_global_values): New static variable. |
|
3633 (initialize_global_variables): New function. |
|
3634 (symbols_of_pt_decl): New function. |
|
3635 DEFVAR Vinitialize_global_values and initialize_global_variables. |
|
3636 (tree_global_command::do_init): If initialize_global_variables is |
|
3637 not true and the variable doesn't have an explicit initializer, don't |
|
3638 initialize it. If we are giving it a default value, use the value |
|
3639 of the variable defualt_global_variable_value. |
|
3640 * octave.cc (maximum_braindamage): Set default_global_variable_value |
|
3641 and initialize_global_variables to Matlab-compatible values. |
|
3642 |
|
3643 Wed Feb 18 04:35:31 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3644 |
|
3645 * DLD-FUNCTIONS/besselj.cc: Rename from bessel.cc. |
|
3646 * Makefile.in (DLD_XSRC): Likewise. |
|
3647 |
|
3648 * syscalls.cc (Fvfork): Delete. |
|
3649 |
|
3650 * oct-procbuf.cc: Just use fork. |
|
3651 |
|
3652 * parse.y (feval): Provide version that takes function name |
|
3653 separate from other args. |
|
3654 * parse.h: Declare it. |
|
3655 |
|
3656 * oct-procbuf.cc (octave_procbuf::open): Move declaration of |
|
3657 child_std_end outside of child scope and declare volatile. |
|
3658 |
|
3659 Mon Feb 16 15:04:28 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3660 |
|
3661 * parse.y: Include cstdio, for SEEK_SET. |
|
3662 |
3153
|
3663 Thu Feb 12 22:07:00 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3664 |
|
3665 * system.c: New file. |
|
3666 * Makefile.in (SOURCES): Add it to the list. |
|
3667 |
3148
|
3668 Fri Feb 6 01:23:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3669 |
|
3670 * oct-stream.cc (octave_base_stream::file_number): Rename from fileno. |
|
3671 Change all uses. |
|
3672 |
|
3673 * fsolve.cc (fsolve_option_table): Add missing & to function names. |
|
3674 |
3145
|
3675 Thu Feb 5 02:27:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3676 |
3147
|
3677 * dirfns.cc (Fls): If first attempt at reading process output |
|
3678 fails, sleep once and try again. |
|
3679 * toplev.cc (run_command_and_return_output): Likewise. |
|
3680 |
|
3681 * oct-procbuf.cc (octave_procbuf::open): Use vfork if it is available. |
|
3682 |
|
3683 * syscalls.cc (Fvfork): New function. |
|
3684 |
3145
|
3685 * ov-bool-mat.cc: Only declare assign function if |
|
3686 CXX_NEW_FRIEND_TEMPLATE_DECL is not defined. |
|
3687 |
|
3688 * ov-base.h, ov-bool-mat.h, ov-bool.h, ov-ch-mat.h, ov-complex.h, |
|
3689 ov-cx-mat.h, ov-range.h, ov-re-mat.h, ov-scalar.h: Handle default |
|
3690 args for *_value functions consistently. |
|
3691 |
|
3692 * symtab.cc (maybe_list_cmp_fcn): Declare args as void*, not |
|
3693 void**, then use X_CAST. |
|
3694 |
|
3695 * OPERATORS/op-s-cm.cc: Include mx-cm-s.h. |
|
3696 |
|
3697 * defun-int.h: Include ov-builtin.h, ov-mapper.h, and symtab.h. |
|
3698 (install_builtin_mapper, install_builtin_function, |
|
3699 install_builtin_variable) Use specific types rather than void * in |
|
3700 declaration. |
|
3701 * defun.cc (install_builtin_mapper, install_builtin_function, |
|
3702 install_builtin_variable): Likewise. Eliminate casts. |
|
3703 |
|
3704 * load-save.cc (read_binary_data, read_mat_file_header, |
|
3705 save_binary_data): Use X_CAST, not static_cast. |
|
3706 * unwind-prot.h (unwind_protect::save_ptr): Likewise. |
|
3707 * Map.cc (goodCHptr, index_to_CHptr, CHptr_to_index): Likewise. |
|
3708 * dynamic-ld.cc (octave_dlopen_dynamic_loder::resolve_reference): |
|
3709 Likewise. |
|
3710 |
|
3711 * pt-mat.cc (tm_const::operator bool ()): |
|
3712 (tm_row_const::operator bool ()): Likewise. |
|
3713 * oct-stream.cc (printf_value_cache::operator bool ()): Likewise. |
|
3714 (scanf_format_list::operator bool ()): Likewise. |
|
3715 (printf_format_list::operator bool ()): Likewise. |
|
3716 (octave_stream::operator bool ()): Likewise. |
|
3717 |
|
3718 Wed Feb 4 13:08:29 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3719 |
|
3720 * DLD-FUNCTIONS/minmax.cc: Include cmath, not oct-math.h. |
|
3721 |
|
3722 * syscalls.cc (Fdup2): Convert stream to actual system file id. |
|
3723 |
|
3724 * oct-stream.cc (octave_base_stream::fileno, octave_stream::fileno): |
|
3725 New functions. |
|
3726 |
3141
|
3727 Tue Feb 3 00:24:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3728 |
|
3729 * defaults.cc (exec_path): Append Vbin_dir to std_path. |
|
3730 |
|
3731 * octave.cc (initialize_pathsearch): Set TEXMFDBS, not TEXMF. |
|
3732 Look for OCTAVE_DB_PATH in environment. |
|
3733 Simplify using Vdata_dir and Vlibexec_dir. |
|
3734 |
|
3735 * defaults.h.in (Vdata_dir, Vlibexecdir): Declare new vars. |
|
3736 defaults.cc: Define them. |
|
3737 (set_default_data_dir, set_default_libexecdir): New functions. |
|
3738 (install_defaults): Call them. |
|
3739 |
|
3740 * defaults.h.in (OCTAVE_LIBEXECDIR): Define. |
|
3741 |
|
3742 Mon Feb 2 02:43:16 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3743 |
|
3744 * Makefile.in (install, uninstall): Use $(octlibdir), not $(libdir). |
|
3745 Use mk-libdir-link. |
|
3746 |
|
3747 * defaults.h.in (OCTAVE_OCTLIBDIR): Substitute value. |
|
3748 (Vlib_dir): Delete declaration. |
|
3749 * defaults.cc (Vlib_dir): Delete. |
|
3750 (set_default_lib_dir): Delete. |
|
3751 (install_defaults): Don't call set_default_lib_dir. |
|
3752 (set_default_info_prog): If oct_info_prog is empty, set default to |
|
3753 "info" -- we expect it to be somewhere in the user's path. |
|
3754 |
|
3755 * defun.h (DEFCONST, DEFCONSTX): Eliminate inst_as_fcn and chg_fcn |
|
3756 args. Always pass true for inst_as_fcn and 0 for chg_fcn to |
|
3757 DEFVAR when creating built-in values like `e' or `stderr' that can |
|
3758 be redefined. Change all uses. |
|
3759 |
|
3760 * help.cc (Ftype): Handle script files too. |
|
3761 (Fwhich): Likewise. |
|
3762 |
3136
|
3763 Sat Jan 31 00:00:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3764 |
|
3765 * ov-ch-mat.cc (octave_char_matrix::is_true): Make it work. |
|
3766 * ov-str-mat.h, ov-str-mat.cc (octave_char_matrix_str::is_true): |
|
3767 Delete. |
|
3768 |
|
3769 * load-save.cc (read_ascii_data): Allow strings of length 0. |
|
3770 If we don't find data on the first call, fail with error message. |
|
3771 (do_load): Pass count of items read to read_ascii_data. |
|
3772 Allow `load foo xyz' to work when foo contains only numbers. |
|
3773 |
|
3774 Fri Jan 30 23:46:42 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3775 |
|
3776 * ov-str-mat.h (octave_char_matrix_str::all): Delete. |
|
3777 (octave_char_matrix_str::any): Delete. |
|
3778 * ov-ch-mat.h (octave_char_matrix::all, octave_char_matrix::any): |
|
3779 Call charMatrix::all, charMatrix::any. |
|
3780 |
|
3781 Thu Jan 29 16:25:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3782 |
|
3783 * load-save.cc (read_mat_binary_data): Handle third digit of MOPT |
|
3784 as flag indicating row or column major ordering. |
|
3785 |
3131
|
3786 Wed Jan 28 00:18:17 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3787 |
|
3788 * DLD-FUNCTIONS/dassl.cc (lsode_option_table): |
|
3789 Add missing & to function names. |
|
3790 * DLD-FUNCTIONS/lsode.cc (lsode_option_table): Likewise. |
|
3791 * DLD-FUNCTIONS/quad.cc (quad_option_table): Likewise. |
|
3792 |
|
3793 * Makefile.in (oct-gperf.h): Add -G option to gperf. |
|
3794 |
|
3795 * load-save.cc (get_save_type): Add `UL' and `L' suffixes to large |
|
3796 constant values. For LS_INT, use <= and >= for comparison. |
|
3797 |
|
3798 Mon Jan 26 13:17:59 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3799 |
|
3800 * ov-usr-fcn.cc (Vmax_recursion_depth): New static variable. |
|
3801 (max_recursion_depth): New fucnction |
|
3802 (symbols_of_ov_usr_fcn): DEFVAR max_recursion_depth. |
|
3803 (octave_user_function::do_index_op): Check Vmax_recursion_depth. |
|
3804 |
3130
|
3805 Thu Jan 22 13:45:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3806 |
|
3807 * dynamic-ld.cc (make_dynamic_loader): Fix typo. |
|
3808 |
|
3809 Tue Jan 20 17:02:19 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3810 |
|
3811 * variables.cc (Fexist): If local symbol is undefined, check |
|
3812 global table. |
|
3813 |
|
3814 * pr-output.cc (pr_max_internal): Initial value for result is |
|
3815 -DBL_MAX, not DBL_MIN. |
|
3816 |
3125
|
3817 Thu Jan 8 11:54:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3818 |
|
3819 * xpow.cc (elem_xpow): If second arg of pow is complex, make sure |
|
3820 first arg is also complex. |
|
3821 |
|
3822 * symtab.cc (symbol_table::rename): Properly insert new item at |
|
3823 the front of the list to avoid losing the rest of the items. |
|
3824 |
|
3825 Thu Dec 11 23:30:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3826 |
|
3827 * variables.cc (Fclear): Increment index to skip -x arg. |
|
3828 |
3124
|
3829 Tue Dec 9 02:45:35 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3830 |
|
3831 * Makefile.in (INCLUDES): Don't forget Pix.h. |
|
3832 |
|
3833 * BaseSLList.cc: Don't include nonstandard libg++ header files. |
|
3834 |
3119
|
3835 Sun Nov 30 14:58:56 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3836 |
3124
|
3837 * pr-output.cc: Include cmath, not oct-math. |
|
3838 * sysdep.cc: Likewise. |
|
3839 |
3119
|
3840 * DLD-FUNCTIONS/bessel.cc: New file. |
|
3841 * Makefile.in (DLD_XSRC): Add it to the list. |
|
3842 |
3113
|
3843 Thu Nov 27 23:28:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3844 |
|
3845 * lex.l (handle_string): Constructor for string class takes |
|
3846 (size_t, char) args, not (char, size_t). |
|
3847 |
3111
|
3848 Wed Nov 26 00:39:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3849 |
|
3850 * Makefile.in (OCTAVE_LIBS): Include $(SPECIAL_MATH_LIB) just |
|
3851 ahead of -lcruft. |
|
3852 |
3110
|
3853 Thu Nov 20 15:16:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3854 |
|
3855 * octave.cc (maximum_braindamage): Bind implicit_num_to_str_ok to 1. |
|
3856 * pt-mat.cc (Vimplicit_num_to_str_ok): New static variable. |
|
3857 (implicit_num_to_str_ok): New function. |
|
3858 (symbols_of_pt_mat): DEFVAR implicit_num_to_str_ok. |
|
3859 (tm_row_const::some_str): New data member. |
|
3860 (tm_row_const::some_strings_p): New function. |
|
3861 (tm_row_const::init): Set some_str. |
|
3862 (tm_const::some_str): New data member. |
|
3863 (tm_const::some_strings_p): New function. |
|
3864 (tm_const::init): Set some_str. |
|
3865 (tree_matrix::eval): If Vimplicit_num_to_str_ok is true and some |
|
3866 of the elements are strings, force a string conversion before |
|
3867 returning. |
|
3868 |
|
3869 * parse.y (fold, finish_colon_expression, finish_matrix): |
|
3870 If an error occurs, return the original expression. |
|
3871 Use unwind_protect to restore error_state. |
|
3872 |
|
3873 * ov-ch-mat.h (octave_char_matrix::convert_to_str): Result is |
|
3874 char_matrix_str, not just char_matrix. |
|
3875 |
3107
|
3876 Wed Nov 19 02:05:40 1997 Mumit Khan <khan@dhaka.xraylith.wisc.edu> |
|
3877 |
|
3878 * DLD-FUNCTIONS/filter.cc: Don't include extern template decls if |
3109
|
3879 CXX_NEW_FRIEND_TEMPLATE_DECL is defined. |
3107
|
3880 * ov-cx-mat.cc: Likewise. |
|
3881 * ov-re-mat.cc: Likewise. |
|
3882 * ov-str-mat.cc: Likewise. |
|
3883 |
|
3884 * ov-cx-mat.h (octave_complex_matrix::decrement, |
|
3885 octave_complex_matrix): Use explicit Complex constructor. |
|
3886 |
|
3887 Wed Nov 19 00:08:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3888 |
|
3889 * pt-decl.cc (tree_global_command::do_init): Initialize global |
|
3890 values to `[]'. Only perform explicit initialization once. |
|
3891 |
3103
|
3892 Tue Nov 18 04:27:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3893 |
3105
|
3894 * pr-output.cc (Vfixed_point_format): New variable. |
|
3895 (fixed_point_format): New fucntion. |
|
3896 (symbols_of_pr_output): Add DEFVAR for fixed_point_format. |
|
3897 (set_real_matrix_format): Handle fixed point format |
|
3898 (set_complex_matrix_format): Handle fixed point format |
|
3899 (set_format): New arg, scale in Matrix, ComplexMatrix, Range versions. |
|
3900 (pr_scale_header): New function. |
|
3901 (octave_print_internal): Handle fixed point format in Matrix, |
|
3902 ComplexMatrix, and Range versions. |
|
3903 * octave.cc (maximum_braindamage): Set fixed_point_format to 1.0. |
|
3904 |
3103
|
3905 * utils.cc (do_string_escapes): Move here, from lex.l. |
|
3906 Arg is now const string& instead of char*. |
|
3907 Return new string object instead of modifying arg in place. |
|
3908 (Fdo_string_escapes): New function. |
|
3909 * lex.l (handle_string): Use new version of do_string_escapes. |
3105
|
3910 |
|
3911 * lex.l (Vbackslash_escapes): Delete. |
|
3912 (backslash_escapes): Delete. |
|
3913 (do_string_escapes): Undo previous change. |
|
3914 (eat_whitespace, eat_continuation): Undo previous change. |
|
3915 (handle_string): Undo previous change. |
|
3916 (symbols_of_lex): Undo previous change. |
|
3917 * octave.cc (maximum_braindamage): Undo previous change. |
3103
|
3918 |
3096
|
3919 Fri Nov 14 01:53:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3920 |
3100
|
3921 * parse.y (eval_string (const string&, bool, int&, int)): No |
|
3922 longer static. |
|
3923 * parse.h: Provide declaration. |
|
3924 * input.cc (get_user_input (const octave_value_list&, bool, int)): |
|
3925 New arg, nargout. Pass it to eval_string. |
|
3926 (keyboard): Pass nargout = 0 to get_user_input. |
|
3927 (input): Pass nargout to get_user_input. |
|
3928 |
3098
|
3929 * input.cc (get_user_input (const octave_value_list&, bool)): |
3100
|
3930 Return octave_value_list() if user enters `quit', `exit', or `return'. |
3098
|
3931 If debugging, let eval_string handle the printing chores and |
|
3932 reset error_state before asking for more input. |
|
3933 |
|
3934 * input.cc (Fkeyboard): Unconditionally turn on history here. |
|
3935 |
3096
|
3936 * lex.l (have_continuation, have_ellipsis_continuation): Declare |
|
3937 arg as bool, not int. Change callers. |
|
3938 |
|
3939 * lex.l (Vbackslash_escapes): New static variable. |
|
3940 (backslash_escapes): New function. |
|
3941 (do_string_escapes): Return immediately if ! Vbackslash_escapes. |
|
3942 (eat_whitespace, eat_continuation): Only call have_continuation if |
|
3943 Vbackslash_escapes. |
|
3944 (handle_string): Backslash is only special if Vbackslash_escapes. |
|
3945 (symbols_of_lex): Add DEFVAR for backslash_escapes. |
|
3946 * octave.cc (maximum_braindamage): Set backslash_escapes to 0. |
|
3947 |
3095
|
3948 Thu Nov 13 16:20:40 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3949 |
3096
|
3950 * variables.cc (Fexist): Also return 2 if NAME is a regular file |
|
3951 somewhere in the LOADPATH. |
|
3952 |
3095
|
3953 * data.cc (sumsq): Fix doc string. |
|
3954 |
|
3955 * parse.y (Fsource): Call parse_fcn_file, not parse_and_execute. |
|
3956 |
3092
|
3957 Tue Oct 7 16:51:01 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3958 |
|
3959 * defun-int.h (DEFINE_FUN_INSTALLER_FUN): Set installed to true |
|
3960 after installing the function. |
|
3961 |
3088
|
3962 Thu Sep 25 10:17:26 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3963 |
|
3964 * DLD-FUNCTIONS/filter.cc (Ffilter): Return second output value |
|
3965 even when called with only 3 arguments. |
|
3966 |
3086
|
3967 Mon Sep 22 16:44:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3968 |
|
3969 * DLD-FUNCTIONS/rand.cc (do_rand): Print error if first of two |
|
3970 args is a string but doesn't match "seed". |
3088
|
3971 (Frand, Frandn): Fix doc string. |
3086
|
3972 |
3081
|
3973 Mon Aug 25 10:42:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3974 |
|
3975 * input.cc (get_user_input): Return an empty string if the user |
|
3976 just types RET. |
|
3977 |
3079
|
3978 Thu Jul 31 22:59:04 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3979 |
|
3980 * lex.l <TEXT_FCN>: Ensure that we handle words that begin with |
|
3981 single or double quotes as strings. |
|
3982 |
3074
|
3983 Thu Jul 17 13:06:48 1997 Klaus Gebhardt <gebhardt@crunch.ikp.physik.th-darmstadt.de> |
|
3984 |
|
3985 * DLD-FUNCTIONS/rand.cc (Frand): Use F77_XFCN to call getsd, |
|
3986 setsd, setall, setcgn, dgenunf, and dgennor since they can call |
|
3987 XSTOPX. |
|
3988 |
3072
|
3989 Mon Jul 14 12:54:23 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3990 |
|
3991 * dynamic-ld.cc (octave_dynamic_loader::load_fcn_from_dot_oct_file): |
|
3992 If first attempt to load function fails, prepend and underscore |
|
3993 and try again. |
|
3994 |
|
3995 * Makefile.in (install-inc): If defaults.h, oct-conf.h, or |
|
3996 oct-gperf.h don't exist in the current directory, look in $(srcdir). |
|
3997 |
3068
|
3998 Mon Jul 7 21:14:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3999 |
|
4000 * DLD-FUNCTIONS/qr.cc (Fqr): Correctly handle nargout == 0. |
|
4001 |
3067
|
4002 Wed Jul 2 16:47:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4003 |
|
4004 * matherr.c: New file. Move matherr function here. |
|
4005 * sysdep.cc: From here. |
|
4006 * Makefile.in (DIST_SRC): Add matherr.c to the list. |
|
4007 |
|
4008 * error.cc (handle_message): Avoid bug in g++ snapshot. |
|
4009 |
3065
|
4010 Thu Jun 26 22:04:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4011 |
|
4012 * utils.cc (file_in_path): Add default load path to PATH arg if |
|
4013 it begins or ends with a colon. |
|
4014 |
3060
|
4015 Wed Jun 25 13:31:06 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4016 |
|
4017 * oct-lvalue.h (octave_lvalue::struct_elt_ref): Ensure val is unique. |
|
4018 |
|
4019 Fri Jun 20 12:33:35 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4020 |
|
4021 * toplev.cc (cmd_death_handler): New function. |
|
4022 (run_command_and_return_output): Insert pid of command in |
|
4023 octave_child_list along with pointer to cmd_death_handler so we |
|
4024 can get the exit status without having to block SIGCHLD. |
|
4025 (cleanup_iprocstream): Remove pid of command from octave_child_list. |
|
4026 |
3053
|
4027 Sun Jun 15 16:11:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4028 |
3054
|
4029 * OPERATORS/op-cs-s.cc (ldiv): Doh, v1 is complex, v2 is real. |
|
4030 |
3053
|
4031 * Makefile.in (DISTFILES): Add mkops to the list. |
|
4032 (dist): Correctly link files in DLD-FUNCTIONS, OPERATORS, and |
|
4033 TEMPLATE-INST subdirectories. |
|
4034 |
3040
|
4035 Fri Jun 6 04:30:57 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4036 |
3042
|
4037 * DLD-FUNCTIONS/npsol.cc, DLD-FUNCTIONS/qpsol.cc, |
|
4038 DLD-FUNCTIONS/fsqp.cc: Delete. |
|
4039 * Makefile.in (DLD_XSRC): Remove them from the list. |
|
4040 |
3040
|
4041 * utils.cc (search_path_for_file): New arg, do_tilde_expansion. |
|
4042 If TRUE, perform tilde expansion on path before searching. |
|
4043 (file_in_path): Call search_path_for_file with do_tilde_expansion |
|
4044 set to false, since we've already performed tilde expansion on the |
|
4045 load path. |
|
4046 |
|
4047 * defaults.cc (loadpath): Perform tilde expansion here. |
|
4048 |
3029
|
4049 Thu Jun 5 01:42:39 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4050 |
3034
|
4051 * Makefile.in: Make building of static library optional. |
3036
|
4052 (liboctave.$(SHLEXT_VER)): Add $(SONAME_FLAGS) to command. |
3034
|
4053 |
3033
|
4054 * dynamic-ld.cc (octave_shl_load_dynamic_loader::resolve_reference): |
|
4055 Call shl_findsym with type set to TYPE_UNDEFINED. |
|
4056 |
3029
|
4057 * Makefile.in (stamp-picdir): Delete. |
|
4058 (pic): New target. Don't worry so much about creating pic |
|
4059 directory only when it is really needed. |
|
4060 (stamp-interp): Delete. |
|
4061 (libraries): New target. Depend on shared library directly. |
|
4062 |
3024
|
4063 Wed Jun 4 00:09:42 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4064 |
|
4065 * octave.cc (main): Call dir_path::set_program_name here. |
|
4066 |
3021
|
4067 Tue Jun 3 16:47:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4068 |
3022
|
4069 * variables.cc (symbol_out_of_date): Make it work again. |
|
4070 |
3021
|
4071 * parse.y (parse_and_execute): Move here from toplev.cc |
|
4072 (default_eval_print_flag): Likewise. |
|
4073 (safe_fclose): Likewise. |
|
4074 (eval_string): Likewise. |
|
4075 (Fsource): Likewise. |
|
4076 (Ffeval): Likewise. |
|
4077 (feval): Likewise. |
|
4078 (Feval): Likewise. |
|
4079 (symbols_of_parse): Define default_eval_print_flag here instead of |
|
4080 in varaibles.cc. |
|
4081 (looks_like_octave_copyright): Move here from variables.cc |
|
4082 (gobble_leading_whitespace): Likeiwse. |
|
4083 (is_function_file): Likewise. |
|
4084 (restore_input_stream): Likewise. |
|
4085 (parse_fcn_file): Likewise. |
|
4086 (load_fcn_from_file): Likewise. |
|
4087 (get_help_from_file): Likewise. |
|
4088 |
|
4089 * toplev.cc (syms_of_toplev): Define argv, program_name, and |
|
4090 program_invocation_name here instead of in variables.cc. |
|
4091 |
|
4092 * parse.h (line_editing): Move here from toplev.h. Now bool, not int. |
|
4093 (reading_startup_message_printed) Likewise. |
|
4094 (input_from_startup_file): Likewise. |
|
4095 (input_from_command_line_file): Likewise. |
|
4096 |
|
4097 * load-save.cc: Use bool instead of int where appropriate. |
|
4098 |
|
4099 * input.h (enum echo_state): Move here from variables.h. |
|
4100 (Vecho_executing_commands): Likewise. Now bool, not int. |
|
4101 * input.cc (echo_executing_commands): Move here from variables.cc. |
|
4102 (symbols_of_input): Define echo_executing_commands here instead of |
|
4103 in variables.cc. |
|
4104 |
|
4105 * octave.cc (program_invocation_name): Don't define. |
|
4106 (intern_argv): Don't set program_invocation_name here. |
|
4107 (main): Call octave_env::set_program_name here, not in intern_argv. |
|
4108 |
|
4109 * toplev.cc (quitting_gracefully): Move here from octave.h and |
|
4110 make static bool instead of extern int. |
|
4111 |
|
4112 * error.cc (bind_global_error_variable, clear_global_error_variable): |
|
4113 Move here from variables.cc. |
|
4114 (symbols_of_error): Define error_text here instead of in variables.cc. |
|
4115 |
|
4116 * pager.cc (write_to_diary_file): Now bool, not int. |
|
4117 (really_flush_to_pager): Likewise. |
|
4118 (flushing_to_pager): Likewise. |
|
4119 * sighandlers.h (can_interrupt): Likewise. |
|
4120 * error.h (buffer_error_messages): Likewise. |
|
4121 * oct-hist.h (input_from_tmp_history_file, Vsaving_history): Likewise. |
|
4122 * input.h (forced_interactive): Likewise. |
|
4123 (get_input_from_eval_string): Likeiwse. |
|
4124 (reading_script_file): Likeiwse. |
|
4125 (reading_fcn_file): Likeiwse. |
|
4126 (interactive): Likewise. |
|
4127 |
|
4128 * unwind-prot.cc (saved_variable::saved_variable (bool *, bool)): |
|
4129 Set type_tag to boolean, not int. |
|
4130 |
3016
|
4131 Mon Jun 2 00:40:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4132 |
|
4133 * variables.h (Octave_builtin_fcn): Delete typedef. |
|
4134 |
|
4135 * help.cc (make_name_list): Move here from variables.cc. |
|
4136 (keyword_help, names): Now static. |
|
4137 (struct help_list): Move declaration here from help.h. |
|
4138 |
|
4139 * oct-hist.cc (Vhistory_file, Vhistory_size, Vsaving_history): |
|
4140 Move here from variables.cc. |
|
4141 (symbols_of_oct_hist): New function. |
|
4142 |
|
4143 * version.h: Protect against multiple inclusion. |
|
4144 |
|
4145 * defun.cc (check_version): New function. |
|
4146 * defun-int.h (DEFINE_FUN_INSTALLER_FUN): Use it. |
|
4147 |
|
4148 * help.h, help.cc (additional_help_message): Now extern. |
|
4149 (operator_help): Now static. |
|
4150 |
|
4151 * defun.cc (print_usage): Move here from help.cc |
|
4152 * DLD-FUNCTIONS/*.cc, data.cc, dirfns.cc, file-io.cc, input.cc, |
|
4153 load-save.cc, octave.cc, ov-list.cc, ov-typeinfo.cc, |
|
4154 ov-usr-fcn.cc, pager.cc, pr-output.cc, pt-plot.cc, strfns.cc, |
|
4155 syscalls.cc, sysdep.cc, utils.cc, toplev.cc: |
|
4156 Don't include help.h. |
|
4157 |
|
4158 * TEMPLATE-INST/Array-sym.cc: New file. |
|
4159 |
|
4160 * load-save.cc (do_load): Don't use ostream::form. |
|
4161 * pr-output.cc: Likewise, at least where it is easy to do so. |
|
4162 * oct-stream.cc: Ditto. |
|
4163 |
|
4164 * symtab.h (symbol_record::symbol_def::rows): New function. |
|
4165 (symbol_record::symbol_def::columns): Ditto. |
|
4166 (symbol_record::symbol_def::type_name): Ditto. |
|
4167 (symbol_record::rows): Ditto |
|
4168 (symbol_record::columns): Ditto |
|
4169 (symbol_record::type_name): Ditto |
|
4170 |
|
4171 * symtab.h, symtab.cc (symbol_record::hides_fcn): New function. |
|
4172 (symbol_record::hides_builtin): Ditto. |
|
4173 (symbol_record::print_symbol_info_line): Ditto. |
|
4174 (symbol_table::long_list): Delete. |
|
4175 (symbol_table::symbol_list): New function. |
|
4176 (symbol_table::maybe_list): Delete argc arg. |
|
4177 (symbol_table::name_list): Rename from symbol_table::list. |
|
4178 Change all callers. |
|
4179 |
|
4180 * symtab.h, symtab.cc (class symbol_record_info): Delete. |
|
4181 |
|
4182 * symtab.cc (matches_patterns): Use vector form of glob_match. |
|
4183 |
|
4184 Sun Jun 1 14:04:26 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4185 |
|
4186 * pt-check.h, pt-check.cc: New files, for semantic checking of |
|
4187 parse trees. |
|
4188 |
|
4189 * symtab.h (class symbol_def): Now nested in symbol_record class. |
|
4190 (enum TYPE): Move from symbol_def to symbol record class. Change |
|
4191 all uses. |
|
4192 |
|
4193 * symtab.h, symtab.cc (symbol_table::maybe_list): New function, |
|
4194 from variables.cc. Change all uses. |
|
4195 |
|
4196 * pt-idx.h (tree_identifier::lvalue_ok): New function. |
|
4197 * pt-id.h (tree_index_expression::lvalue_ok): Likewise. |
|
4198 * pt-indir.h (tree_indirect_ref::lvalue_ok): Likewise. |
|
4199 |
|
4200 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_oct_obj): Delete. |
|
4201 * pt-walk.h (tree_walker::visit_oct_obj): Delete declaration. |
|
4202 |
|
4203 * lex.h (class lexical_feedback): Delete maybe_screwed_again. |
|
4204 * lex.l (lexical_feedback::init): Don't set it. |
|
4205 |
|
4206 Fri May 30 16:07:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4207 |
|
4208 * mappers.cc: Include <cfloat> here. |
|
4209 |
|
4210 Tue May 27 10:08:43 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4211 |
|
4212 * toplev.cc (eval_string): Don't index tmp if it is empty. |
|
4213 |
|
4214 Sat May 24 00:18:41 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4215 |
|
4216 * load-save.cc (valid_identifier): Move here and make static. |
|
4217 * symtab.h, symtab.cc (valid_identifier): Delete declaration and |
|
4218 definition. |
|
4219 |
|
4220 Fri May 23 22:54:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4221 |
|
4222 * symtab.h (symbol_def::symbol_def): Use initializer list instead |
|
4223 of calling init_state. |
|
4224 (symbol_def::init_state): Delete. |
|
4225 |
|
4226 * symtab.cc (symbol_table::print_stats): New function. |
|
4227 * variables.cc (F__dump_symtab_info__): New function. |
|
4228 |
|
4229 * symtab.h, symtab.cc (symbol_table::hash): Return masked value. |
|
4230 (symbol_table::table_size): New data member. |
|
4231 (symbol_table::symbol_table): Set size of table in constructor. |
|
4232 (HASH_TABLE_SIZE): Replace uses with table_size. |
|
4233 (HASH_MASK): Delete. |
|
4234 * variables.cc (initialize_symbol_tables): Set top-level and |
|
4235 global symbol table sizes here. |
|
4236 |
2994
|
4237 Thu May 22 13:32:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4238 |
|
4239 * dynamic-ld.cc (octave_shl_load_dynamic_loader::resolve_reference): |
|
4240 Call shl_findsym with type set to TYPE_PROCEDURE. Pass the |
|
4241 address of the pointer we want to define. |
|
4242 |
2993
|
4243 Wed May 21 16:30:25 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4244 |
|
4245 * DLD-FUNCTIONS/time.cc (extract_tm): Avoid memory leak in dealing |
|
4246 with time zone. |
|
4247 |
|
4248 * Makefile.in (install-in): Use new mk-includedir-link macro. |
|
4249 (install-lib): Install in $octlibdir. Use new mk-libdir-link macro. |
|
4250 |
|
4251 Tue May 20 01:24:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4252 |
|
4253 * ov-list.cc (Flist): Rename from Fmake_list. |
|
4254 |
|
4255 Mon May 19 14:45:58 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4256 |
|
4257 * octave.cc (maximum_braindamage): Set default_eval_print_flag to 0. |
|
4258 |
|
4259 Sat May 17 16:32:23 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4260 |
|
4261 * defaults.cc (set_default_editor): Default is now Emacs, not vi. |
|
4262 |
2984
|
4263 Fri May 16 00:07:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4264 |
2991
|
4265 * pt-idx.cc (tree_index_expression::name): New function. |
|
4266 |
|
4267 * pt.cc (tree::str_print_code): New file, new convenience function. |
|
4268 * pt-arg-list.cc (tree_argument_list::get_arg_names): Use it. |
|
4269 * pt-assign.cc (tree_simple_assignment::rvalue): Likewise. |
|
4270 (tree_multi_assignment::rvalue): Likewise. |
|
4271 |
2990
|
4272 * pt-colon.h (tree_colon_expression::save_base): New data memmber. |
|
4273 (tree_colon_expression::preserve_base): New function. |
|
4274 * parse.y (finish_colon_expression): When converting to a simple |
|
4275 expression, be sure to delete the original colon expression but |
|
4276 not the base value. |
|
4277 |
|
4278 * pt-mat.cc (tree_matrix::~tree_matrix): Actually do something. |
|
4279 |
2987
|
4280 * pt-all.h: New file. |
|
4281 * parse.y, lex.l, pt-pr-code.cc: Use it. |
|
4282 |
|
4283 * pt.h: Rename from pt-base.h. |
|
4284 |
|
4285 * All parse tree classes: Add private copy constructors and |
|
4286 assignment operators to prevent copying. |
|
4287 |
|
4288 * pt-base.cc: Delete. |
|
4289 |
2985
|
4290 * unwind-prot.h, unwind-prot.cc: Make a bit more object-oriented. |
|
4291 Change all uses of unwind_protect stuff to match. |
|
4292 |
|
4293 * pt-jump.h, pt-jump.cc (breaking, continuing, returning): |
|
4294 Make these flags static members of the corresponding class. |
|
4295 Change all uses. |
|
4296 |
2984
|
4297 * pt-assign.cc (tree_simple_assignment_expression::eval, |
|
4298 tree_multi_assignment_expression::eval): Clear lvalue index here. |
|
4299 |
|
4300 * oct-lvalue.cc (octave_lvalue::assign): Don't clear index here. |
|
4301 * oct-lvalue.h (octave_lvalue::clear_index): New function. |
|
4302 (octave_lvalue::set_index): Rename from octave_lvalue::index. |
|
4303 Change all callers. |
|
4304 |
2976
|
4305 Thu May 15 11:48:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4306 |
2983
|
4307 * pt-select.h, pt-select.cc (class tree_if_command_list, |
|
4308 class tree_if_clause, class tree_switch_case_list, |
|
4309 class tree_switch_case): Move here from pt-misc.h, pt-misc.cc. |
|
4310 * pt-decl.h, pt-decl.cc (class tree_decl_init_list, |
|
4311 class tree_decl_elt): Move here from pt-mist.h, pt-misc.cc |
|
4312 |
|
4313 * pt-arg-list.h, pt-stmt.h: New files, extracted from pt-misc.h. |
|
4314 * pt-arg-list.cc, pt-stmt.cc: New files, extracted from pt-misc.cc. |
|
4315 |
|
4316 * pt-decl.h, pt-except.h, pt-jump.h, pt-loop.h, pt-select.h: |
|
4317 New files, extraced from pt-cmd.h. |
|
4318 * pt-decl.cc, pt-except.cc, pt-jump.cc, pt-loop.cc, pt-select.cc: |
|
4319 New files, extraced from pt-cmd.cc. |
|
4320 |
2980
|
4321 * pt-unop.h, pt-binop.h, pt-colon.h, pt-idx.h, pt-assign.h: |
|
4322 New files, extracted from pt-exp.h |
|
4323 * pt-unop.cc, pt-binop.cc, pt-colon.cc, pt-idx.cc, pt-assign.cc: |
|
4324 New files, extracted from pt-exp.cc |
|
4325 * pt-exp.h, pt-exp.cc: Rename from pt-exp-base.h, pt-exp-base.cc. |
|
4326 |
2979
|
4327 * oct-lvalue.h: Rename from oct-var-ref.h. Rename class from |
|
4328 octave_variable_reference to octave_lvalue. Change all uses. |
|
4329 * oct-lvalue.cc: Rename from oct-var-ref.cc. |
|
4330 |
2978
|
4331 * variables.cc (bind_ans): Only bind ans and print result if value |
|
4332 is defined. |
|
4333 |
2976
|
4334 * defun.cc: New file. Move functions for installing objects in |
|
4335 the symbol table here from variables.cc. |
|
4336 |
|
4337 * oct-obj.h, oct-obj.cc: Add custom allocator, fwiw. |
|
4338 |
|
4339 * toplev.cc (main_loop): Correctly increment command number. |
|
4340 |
|
4341 * TEMPLATE-INST/SLList-tm.cc: Don't instantiate lists of pointers |
|
4342 to tree_matrix_row objects. |
|
4343 * TEMPLATE-INST/SLList-misc.cc: Do instantiate lists of pointers |
|
4344 to tree_argument_list objects. |
|
4345 |
|
4346 * DLD-FUNCTIONS/dassl.cc: Update to use new octave_function |
|
4347 interface to user-supplied functions. |
|
4348 * DLD-FUNCTIONS/fsolve.cc: Likewise. |
|
4349 * DLD-FUNCTIONS/lsode.cc: Likewise. |
|
4350 * DLD-FUNCTIONS/npsol.cc: Likewise. |
|
4351 * DLD-FUNCTIONS/quad.cc: Likewise. |
|
4352 |
|
4353 * dynamic-ld.h, dynamic-ld.cc (builtin_fcn_installer typedef): |
|
4354 Rename from builtin_fcn. |
|
4355 (octave_dynamic_loader::load_fcn_from_dot_oct_file): |
|
4356 Simplify by using new installer function defined by DEFUN_DLD. |
|
4357 |
|
4358 * defun-dld.h (DEFUN_DLD): Use DEFINE_FUN_INSTALLER_FUN instead of |
|
4359 DEFINE_FUN_STRUCT_FUN. |
|
4360 * defun.h (DEFUN_MAPPER): Use DEFUN_MAPPER_INTERNAL. |
|
4361 * defun-int.h (DEFVAR_INTERNAL): Rename from DEFVAR_INT and move |
|
4362 here from defun.h. Change all uses. |
|
4363 (DEFUN_MAPPER_INTERNAL): New macro. |
|
4364 (DEFINE_FUN_INSTALLER_FUN): New macro to define function that the |
|
4365 dynamic loader calls to do all the work of installing a new function. |
|
4366 (DEFINE_FUN_STRUCT_FUN): Delete. |
|
4367 |
|
4368 * parse.y: Rewrite to handle more general expressions. |
|
4369 * lex.l: Corresponding changes. |
|
4370 |
|
4371 * pt-walk.h, pt-pr-code.h, pt-pr-code.cc: Cope with new parse tree |
|
4372 object structure. |
|
4373 |
|
4374 * pt-misc.cc (class tree_for_command): Split into |
|
4375 tree_simple_for_command and tree_complex_for_command classes. |
|
4376 |
|
4377 * pt-misc.h, pt-misc.cc (tree_statement::eval): Handle identifier |
|
4378 lookup and printing and binding ans here. |
|
4379 (tree_statement_list::eval): Simplify. |
|
4380 (tree_argument_list::all_elements_are_constant): New function. |
|
4381 (class tree_decl_elt): Now contains id and expr, not an assignment |
|
4382 expression. |
|
4383 |
|
4384 * pt-exp-base.h pt-exp.h pt-id.h pt-indir.h pt-mat.h pt-const.h, |
|
4385 pt-exp-base.cc pt-exp.cc pt-id.cc pt-indir.cc pt-mat.cc pt-const.cc: |
|
4386 Replace eval functions with rvalue and lvalue functions. |
|
4387 Change all uses. |
|
4388 (lvalue_ok, rvalue_ok): New functions, for future compile-time |
|
4389 semantic checks. |
|
4390 |
|
4391 * oct-var-ref.h (is_defined, is_map): New functions. |
|
4392 |
|
4393 * pt-exp.h (class tree_oct_obj): Delete. |
|
4394 |
|
4395 * variables.cc (extract_function, is_valid_function): Return |
|
4396 pointer to octave_function, not octave_symbol. |
|
4397 (link_to_global_variable): Rewrite. Handle errors in |
|
4398 symbol_record::mark_as_linked_to_global. |
|
4399 |
|
4400 * symtab.h, symtab.cc (class symbol_def, class symbol_record): |
|
4401 Symbols are now stored as octave_value objects only. |
|
4402 |
|
4403 * ov.cc (install_types): Register function types here. |
|
4404 * ov-fcn.h, ov-fcn.cc, ov-builtin.h, ov-builtin.cc, ov-mapper.h, |
|
4405 ov-mapper.cc, ov-usr-fcn.h, ov-usr-fcn.cc: New classes for |
|
4406 functions as values. |
|
4407 * ov.h (class octave_value): Don't derive from octave_symbol. |
|
4408 * oct-fcn.h, oct-fcn.cc, oct-builtin.h, oct-builtin.cc, |
|
4409 oct-mapper.h, oct-mapper.cc, oct-usr-fcn.h, oct-usr-fcn.cc, |
|
4410 oct-sym.h, oct-sym.cc: Delete. |
|
4411 |
2963
|
4412 Sun May 11 17:51:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4413 |
|
4414 * help.cc (Ftype): Make it work again for functions. |
|
4415 |
|
4416 * pt-pr-code.cc (tree_print_code::print_parens): New function. |
|
4417 Use it in other tree_print_code functions to handle printing all |
|
4418 the parens that we found when parsing the expression, not just one |
|
4419 pair. |
|
4420 * pt-exp-base.h (tree_expression::paren_count): Rename from |
|
4421 is_in_parens. |
|
4422 * parse.y (maybe_warn_assign_as_truth_value): Use new name. |
|
4423 |
|
4424 * parse.y (constant): New non-terminal. |
|
4425 (simple_expr1): Use it. |
|
4426 |
|
4427 * parse.y (make_unary_op): Delete. |
|
4428 (simple_expr1): Where appropriate, use make_prefix_op and |
|
4429 make_postfix_op instead of make_unary_op. Allow increment and |
|
4430 decrement ops to work on expressions, not just identifiers. |
|
4431 (make_prefix_op, make_postfix_op): Arg is expression, not identifier. |
|
4432 Handle old unary_op cases too. |
|
4433 (fold (tree_unary_expression *)): Delete. |
|
4434 * pt-exp.h, pt-exp.cc (tree_prefix_expression::eval): Handle unary |
|
4435 minus and not here. |
|
4436 (tree_postfix_expression::eval): Likewise, for transpose and hermitian. |
|
4437 (class tree_prefix_expression, class tree_postfix_expression): |
|
4438 Derive from tree_unary_expression. Delete identifier member. |
|
4439 Delete ident member function. |
|
4440 (tree_unary_expression): Don't handle evaluation here. |
|
4441 * pt-exp-base.h (mark_in_parens): No longer virtual. Return this. |
|
4442 (reference): New virtual function. |
|
4443 (class tree_expression): Don't handle expression type here. |
|
4444 * pt-mvr-base.h (tree_multi_val_ret::tree_multi_val_ret): Likewise. |
|
4445 * pt-mvr.h, pt-mvr.cc (tree_multi_assignment_expression): Likewise. |
|
4446 * pt-walk.h (visit_unary_expression): Delete declaration. |
|
4447 * pt-pr-code.h, pt-pr-code.cc (visit_unary_expression): Delete. |
|
4448 (visit_prefix_expression): Use operand(), not ident(). |
|
4449 new, visit_postfix_expression): |
|
4450 * pt-id.h, pt-id.cc (increment, decrement): Delete. |
|
4451 |
|
4452 * pt-misc.cc (tree_parameter_list::define_from_arg_vector): Get a |
|
4453 reference to each element and use the assignment operator instead |
|
4454 of tree_identifier::define. |
|
4455 * pt-id.h, pt-id.cc (tree_identifier::define): Delete versions |
|
4456 that take octave_value and octave_symbol args. |
|
4457 |
|
4458 Sat May 10 23:32:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4459 |
|
4460 * pt-indir.h, pt-indir.cc (tree_indirect_reference::value): Delete. |
|
4461 |
|
4462 * oct-var-ref.cc (octave_variable_ref::assign): Clear idx after |
|
4463 assignment. |
|
4464 |
2976
|
4465 * octave_value classes: Add is_constant, is_function, and |
|
4466 function_value functions. |
|
4467 |
2963
|
4468 * ov.h, ov.cc (assign): Return void, not reference to octave_value. |
|
4469 (do_index_op): Rename, from index. |
|
4470 (do_struct_elt_index_op): Rename, from struct_elt_val. |
|
4471 Add version that accepts index arg. |
|
4472 Change all uses and derived classes to match. |
|
4473 * pt-const.h (index): Delete. |
|
4474 * oct-var-ref.h, oct-var-ref.cc (value): Handle indexed structure |
|
4475 ops here too. |
|
4476 |
2949
|
4477 Fri May 9 07:40:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4478 |
2958
|
4479 * pt-exp.cc (print_rhs_assign_val, symbols_of_pt_exp): New functions. |
|
4480 (Vprint_rhs_assign_val): New static variable. |
|
4481 (tree_simple_assignment_expression::eval): Use it to optionally |
|
4482 allow the rhs (which is the result) of an assignment to be printed |
|
4483 instead of the left. |
|
4484 |
2955
|
4485 * pt-exp.cc (tree_simple_assignment_expression::eval): Use new |
|
4486 octave_variabl_reference::index function to handle indexing. |
|
4487 |
|
4488 * oct-var-ref.h, oct-var-ref.cc (idx): New data member. |
|
4489 (octave_variable_reference::index): Set it. |
|
4490 (octave_variable_reference::assign): Handle indexing here. |
|
4491 Delete version of this function htat takes index arg. |
|
4492 |
|
4493 * variables.h (struct builtin_varaible): Delete. |
|
4494 * variables.cc (install_builtin_variable): Take all elts of |
|
4495 builtin_variable struct directly. |
|
4496 * defun.h (DEFVAR_INT): Call install_builtin_variable directly. |
|
4497 |
|
4498 * symtab.h, defun-int.h: Don't include variables.h. |
|
4499 |
|
4500 * symtab.h (symbol_record::sv_function): Move typedef here. |
|
4501 * variables.h: From here. |
|
4502 |
|
4503 * oct-var-ref.h, oct-var-ref.cc: New files for |
|
4504 octave_variable_reference class, extracted from variables.h and |
|
4505 variables.cc |
2956
|
4506 * Makefile.in: Add them to the appropriate lists. |
2955
|
4507 |
|
4508 * oct-obj.h (octave_value_list::empty): New function. |
|
4509 |
2949
|
4510 * variables.h (class octave_variable_reference): Rewrite to work |
|
4511 as a proxy class to store a pointer to octave_value and, |
|
4512 optionally, the change function to call and the name of the |
|
4513 structure element we are referencing. Handle assignment, |
|
4514 increment, decrement, and value operations. |
|
4515 |
2956
|
4516 Thu May 8 23:40:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4517 |
2949
|
4518 * ov-re-mat.h, ov-re-mat.cc (struct_elt_ref, struct_elt_val, |
|
4519 assign_struct_elt): Provide functions for looking up and setting |
|
4520 matrix dimensions. |
|
4521 |
|
4522 * symtab.cc (symbol_record::define): Don't call sv_fcn here. |
|
4523 Don't save and restore value here. |
|
4524 (symbol_record::define_builtin_var): Do call sv_fcn here. |
|
4525 (symbol_record::variable_reference): Don't make value unique here. |
|
4526 Return pointer to sv_fcn in octave_variable_reference. |
|
4527 |
|
4528 * pt-misc.cc (tree_parameter_list::initialize_undefined_elements): |
|
4529 Simplify. |
|
4530 |
|
4531 * pt-id.h, pt-id.cc (tree_identifier::reference): Return |
|
4532 octave_variable_reference, not octave_value&. |
|
4533 * symtab.h, symtab.cc (symbol_record::variable_reference): Ditto. |
|
4534 * pt-indir.h, pt-indir.cc (tree_indirect_ref::reference): Ditto. |
|
4535 Simplify too. |
|
4536 |
|
4537 * pt-const.h (tree_constant::reference, tree_constant::value, |
|
4538 tree_constant::assign): Delete unnecessary functions. |
|
4539 * pt-id.h, pt-id.cc (tree_identifier::assign): Ditto. |
|
4540 |
|
4541 * pt-cmd.cc (tree_for_command::do_for_loop_once): Simplify. |
|
4542 |
|
4543 * ov.h, ov.cc, ov-base.h, ov-base.cc, ov-struct.h, ov-struct.cc |
|
4544 (struct_elt_ref): New arg, octave_value* parent. |
|
4545 Allow deferred lookup. Return octave_variable_reference, not |
|
4546 octave_value&. |
|
4547 |
|
4548 * ov.h, ov.cc, ov-re-mat.h, ov-re-mat.cc (assign_struct_elt): |
|
4549 New virtual functions. |
|
4550 |
|
4551 * ov.h, ov.cc (Vresize_on_range_error): Now static. |
|
4552 |
|
4553 * pt-mvr.cc (tree_index_expression::eval): Delete redundant check |
|
4554 of error_state. |
|
4555 |
2944
|
4556 Wed May 7 21:17:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4557 |
|
4558 * input.cc (generate_completion): Rename from command_generator. |
|
4559 Use string objects instead of char*. |
|
4560 (generate_possible_completions): Let qsort also make matches unique. |
|
4561 (initialize_command_input): Register generate_completion with the |
|
4562 command_editor class. |
|
4563 (completion_matches): Simplify using generate_completion. |
|
4564 |
|
4565 * pt-pr-code.cc (tree_print_code::visit_constant): For val, call |
|
4566 print_raw, not print. |
|
4567 |
|
4568 * oct-usr-fcn.h (octave_user_function::argn_sr): New data member. |
|
4569 (octave_user_function::install_automatic_vars): Rename from |
|
4570 install_nargin_and_nargout. |
|
4571 (octave_user_function::bind_automatic_vars): Rename from |
|
4572 bind_nargin_and_nargout. |
|
4573 * oct-usr-fcn.cc (octave_user_function::eval): Extract arg names |
|
4574 from args vector and bind them to argn. |
|
4575 * oct-obj.h (octave_value_list::names): New data member. |
|
4576 * oct-obj.cc (octave_value_list::stash_name_tags): New function. |
|
4577 (octave_value_list::name_tags): Ditto. |
|
4578 * pt-const.h, pt-const.cc (tree_constant::print_raw): New function. |
|
4579 * pt-misc.h, pt-misc.cc (tree_argument_list::get_arg_names): |
|
4580 New function. |
|
4581 * pt-mvr.h, pt-mvr.cc (class index_expression): Cache arg names. |
|
4582 * toplev.cc (feval): Now static. Handle arg names. |
|
4583 |
|
4584 * mkops: Cope with moving files defining operators to OPERATORS |
|
4585 subdirectory. |
|
4586 |
2937
|
4587 Tue May 6 00:48:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4588 |
|
4589 * DLD-FUNCTIONS/getgrent.cc: Use new octave_group class. |
|
4590 * DLD-FUNCTIONS/getpwent.cc: Use new octave_passwd class. |
|
4591 |
|
4592 * syscalls.cc: Simplify by using new functions defined in |
|
4593 liboctave/oct-syscalls.cc. |
|
4594 |
|
4595 * file-io.cc (Ftmpnam): Accept DIR and PREFIX args. |
|
4596 |
2929
|
4597 Mon May 5 00:54:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4598 |
2932
|
4599 * ov-str-mat.cc (octave_char_matrix_str::print_name_tag): Print |
|
4600 empty strings on one line. |
|
4601 |
2929
|
4602 * DLD-FUNCTIONS, OPERATORS, and TEMPLATE-INST: New subdirectories. |
|
4603 Move appropriate files to new directories. |
|
4604 * Makefile.in: Add DLD-FUNCTIONS, OPERATORS, and TEMPLATE-INST |
|
4605 directories to VPATH. Fix rules to work with new directory |
|
4606 structure. |
|
4607 |
2927
|
4608 Sun May 4 22:40:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4609 |
|
4610 * input.cc (initialize_command_input): Rename from |
|
4611 initialize_readline. |
|
4612 (gnu_readline, octave_gets, get_user_input): Simplify, return |
|
4613 string, not char *. |
|
4614 |
|
4615 * Many of other files: Miscellaneous changes to go along with the |
|
4616 changes described in the liboctave/ChangeLog for May 4. More code |
|
4617 moved from here to liboctave. |
|
4618 |
|
4619 Fri May 2 19:50:33 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4620 |
|
4621 * pathlen.h: Move to ../liboctave. |
|
4622 |
2921
|
4623 Thu May 1 21:50:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4624 |
|
4625 * variables.cc (get_struct_elts): New fucntion. |
|
4626 (looks_like_struct, generate_struct_completions): Move here from |
|
4627 input.cc, rewrite, and make work again. |
|
4628 |
2916
|
4629 Wed Apr 30 00:24:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4630 |
|
4631 * ov-base.h, ov-bool-mat.cc, ov-bool-mat.h, ov-bool.cc, ov-bool.h, |
|
4632 ov-ch-mat.cc, ov-ch-mat.h, ov-complex.cc, ov-complex.h, |
|
4633 ov-cx-mat.cc, ov-cx-mat.h, ov-file.cc, ov-file.h, ov-list.cc, |
|
4634 ov-range.cc, ov-range.h, ov-re-mat.cc, ov-re-mat.h, ov-scalar.cc, |
|
4635 ov-scalar.h, ov-str-mat.cc, ov-struct.cc, ov.h (scalar_value): |
|
4636 New function. Same as double_value, but name is consistent with |
|
4637 octave_scalar class. |
|
4638 |
|
4639 * op-fil-b.cc, op-fil-cm.cc, op-fil-lis.cc, op-fil-rec.cc, |
|
4640 op-fil-str.cc, op-fil-bm.cc, op-fil-cs.cc, op-fil-m.cc, |
|
4641 op-fil-s.cc: New files. |
|
4642 |
|
4643 * ops.h (ASSIGNOPDECL, DEFASSIGNOP, DEFASSIGNOP_FN, CONVDECL, |
|
4644 DEFCONV, BINOPDECL, DEFBINOPX, DEFBINOP, DEFBINOP_OP, DEFBINOP_FN, |
|
4645 BINOP_NONCONFORMANT): New macros. |
|
4646 * op-b-b.cc, op-bm-bm.cc, op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, |
|
4647 op-cm-s.cc, op-cs-cm.cc, op-cs-cs.cc, op-cs-m.cc, op-cs-s.cc, |
|
4648 op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, op-s-cm.cc, |
|
4649 op-s-cs.cc, op-s-m.cc, op-s-s.cc, op-str-str.cc: Use them. |
|
4650 |
|
4651 * Makefile.in (octave): Also depend on ops.o. |
|
4652 |
|
4653 * builtins.h: Delete. |
|
4654 * octave.cc: Add extern declaration here. |
|
4655 |
|
4656 * mappers.h: Delete. |
|
4657 * Makefile.in (INCLUDES): Delete from list. |
|
4658 * mkbuiltins: Add extern declaration in builtins.cc. |
|
4659 |
|
4660 * mkops: New file. |
|
4661 * ops.cc: Delete. |
|
4662 * Makefile.in (SOURCES): Delete from the list. |
|
4663 (ops.cc): New target. |
|
4664 (OP_SOURCES): New list. Move all op-*.cc files here from SOURCES. |
|
4665 Add $(OP_SOURCES) to SOURCES list. |
|
4666 |
|
4667 * variables.cc (symbols_of_variables): No longer static. |
|
4668 * ov.cc (symbols_of_ov): Rename from symbols_of_value. |
|
4669 |
|
4670 * ov-base.h: Delete declaration for install_base_type_conversions. |
|
4671 * op-b-b.h, op-bm-bm.h, op-cm-cm.h, op-cm-cs.h, op-cm-m.h, |
|
4672 op-cm-s.h, op-cs-cm.h, op-cs-cs.h, op-cs-m.h, op-cs-s.h, |
|
4673 op-m-cm.h, op-m-cs.h, op-m-m.h, op-m-s.h, op-s-cm.h, op-s-cs.h, |
|
4674 op-s-m.h, op-s-s.h, op-str-str.h: Delete. |
|
4675 * Makefile.in (INCLUDES): Delete them from the list. |
|
4676 |
|
4677 Tue Apr 29 22:27:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4678 |
|
4679 * variables.h, variables.cc (install_builtin_variables): Delete. |
|
4680 * mkbuiltins: Also generate install_builtin_variables function. |
|
4681 * Makefile.in: Fix rule to call mkbuiltins with correct args. |
|
4682 (clean): Also delete def-files and var-files. |
|
4683 * defaults.h.in, dirfns.h, error.h, file-io.h, help.h, input.h, |
|
4684 lex.h, load-save.h, oct-usr-fcn.h, pager.h, parse.h, pr-output.cc, |
|
4685 pr-output.h, pt-mat.h, pt-misc.h, pt-plot.h, toplev.h: |
|
4686 Delete declarations of symbols_of_* functions. |
|
4687 * data.h, syscalls.h: Delete. |
|
4688 |
|
4689 * pr-output.cc (octave_print_internal): Leave printing of final |
|
4690 new line up to the caller. |
|
4691 |
|
4692 * ov.h, ov.cc (reset_indent_level, increment_indent_level, |
|
4693 decrement_indent_level, newline, indent, reset, |
|
4694 curr_print_indent_level, beginning_of_line): |
|
4695 New functions and static data to manage indent level for printing. |
|
4696 (print_as_scalar): Delete. |
|
4697 (print, print_with_name): Always require stream arg. |
|
4698 Change all callers. |
|
4699 |
|
4700 * oct-stream.h (octave_stream::input_stream): Make publicly available. |
|
4701 (octave_stream::output_stream): Likewise. |
|
4702 |
|
4703 * ov-base.h, ov-base.cc, ov.h, ov.cc, ov-file.h ov-base.h |
|
4704 (is_file, stream_value, stream_number): New functions. |
|
4705 * ov-file.h, ov-file.cc: New files for value class to manage files. |
|
4706 * file-io.cc (symbols_of_file_io): Define stdin, stdout, and |
|
4707 stderr as octve_file objects, not just integers. |
|
4708 (Ffopen, Fpopen): Return octave_file objects, not integer file ids. |
|
4709 * syscalls.cc (Fpipe): Likewise. |
|
4710 * oct-stream.h, oct-stream.cc (octave_stream_list::insert): |
|
4711 Return octave_file object, not integer file id. |
|
4712 |
|
4713 * ov-base.cc, ov-bool-mat.cc, ov-bool.cc, ov-ch-mat.cc, |
|
4714 ov-complex.cc, ov-cx-mat.cc, ov-file.cc, ov-list.cc, ov-range.cc, |
|
4715 ov-re-mat.cc, ov-scalar.cc, ov-str-mat.cc, ov-struct.cc, ov.cc |
|
4716 (print_name_tag, print_raw): New functions. |
|
4717 |
|
4718 * help.cc (Ftype): Don't cast symbol definition to tree_constant *. |
|
4719 |
|
4720 * variables.cc (link_to_global_variable): Don't try to define |
|
4721 symbol with tree_constant objects. |
|
4722 (bind_ans): Call symbol_record::define directly and then |
|
4723 octave_value::print_with_name instead of creating a temporary |
|
4724 assignment expression. |
|
4725 |
|
4726 * pt-pr-code.cc (tree_print_code::indent): Don't use ostream::form. |
|
4727 |
|
4728 * pt-exp-base.h, pt-exp.h, pt-exp.cc (oper): Return string, not |
|
4729 char *. Change all where necessary. |
|
4730 |
|
4731 Mon Apr 28 16:33:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4732 |
|
4733 * ov.h (octave_value binary_op enum): Add lshift and rshift. |
|
4734 (octave_value assign_op enum): Add lshift_eq and rshift_eq. |
|
4735 * ov.cc (assign_op_as_string, binary_op_as_string): Include them. |
|
4736 * parse.y (LSHIFT_EQ RSHIFT_EQ LSHIFT RSHIFT): New tokens. |
|
4737 Add them to the precedence list. |
|
4738 (simple_expr): Add new operators. |
|
4739 (make_assign_op, make_binary_op): Handle new operators. |
|
4740 * lex.l: Recognize new operators. |
|
4741 |
|
4742 * lex.l: Recognize them. |
|
4743 |
|
4744 Sun Apr 27 20:17:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2898
|
4745 |
|
4746 * pt-misc.cc (Vsilent_functions, silent_functions): |
|
4747 Move here from oct-usr-fcn.cc. |
|
4748 (symbols_of_pt_misc): New function. DEFVAR silent_functions. |
|
4749 (tree_statement_list::eval): Handle Vsilent_functions here instead |
|
4750 of in octave_user_function::eval. |
|
4751 (tree_statement::eval): New functions. |
|
4752 (tree_statement_list::eval): Use them. |
|
4753 Change print flag arg to silent flag. Change all callers. |
|
4754 * variables.cc (install_builtin_variables): Call symbols_of_pt_misc. |
|
4755 * toplev.cc (parse_and_execute): Delete print arg. Change all callers. |
|
4756 (eval_string): Change print flag arg to silent flag. Change callers. |
|
4757 |
|
4758 * dynamic-ld.h, dynamic-ld.cc: Rewrite to use singleton class. |
|
4759 * variables.cc (load_fcn_from_file): Use new dynamic linking class. |
|
4760 |
2893
|
4761 * dynamic-ld.h (Octave_builtin_fcn): Delete typedef. |
|
4762 * dynamic-ld.cc: Simplify via the magic of function pointers. |
|
4763 |
|
4764 * pt-fcn.h pt-fcn.cc pt-fvc.h pt-fvc.cc pt-fvc-base.h pt-fvc-base.cc: |
|
4765 Delete obsolete files. |
|
4766 * Makefile.in: Remove them from various lists. |
|
4767 |
|
4768 * pt-walk.h (visit_octave_user_function): Rename from visit_function. |
|
4769 (visit_builtin): Delete. |
|
4770 * pt-pr-code.h, pt-pr-code.cc (visit_octave_user_function): |
|
4771 Rename from visit_function. |
|
4772 (visit_octave_user_function_header): Rename from visit_function_header. |
|
4773 (visit_octave_user_function_trailer): Rename from |
|
4774 visit_function_trailer. |
|
4775 |
|
4776 * ov.h, ov.cc (eval): New functions. |
|
4777 |
|
4778 * dassl.cc, fsolve.cc, lsode.cc, npsol.cc, qpsol.cc, quad.cc: |
|
4779 Declare user-defined functions as a pointer to an octave_symbol |
|
4780 object, not as a pointer to a tree_fvc object. |
|
4781 |
|
4782 * symtab.h, symtab.cc: Use new octave_symbol class. |
|
4783 * variables.cc (install_builtin_function, install_builtin_mapper, |
|
4784 install_builtin_variable, install_builtin_variable_as_function): |
|
4785 Make work with new octave_symbol class and symbol table structure. |
|
4786 |
|
4787 * variables.h: Delete declaration of builtin_function struct. |
|
4788 * defun-dld.h (DEFUN_DLD): Simplify. |
|
4789 * defun-int.h (DEFINE_FUN_STRUCT): Delete. |
|
4790 (DEFINE_FUN_STRUCT_FUN): Rewrite to not use static builtin_function |
|
4791 object. |
|
4792 |
|
4793 * mappers.h: Delete declaration of builtin_mapper_function struct. |
|
4794 * mappers.cc: Declare wrapper functions static. |
|
4795 * defun.h (DEFUN_MAPPER): Simplify. |
|
4796 |
|
4797 * oct-sym.h: New file. Declare base class for Octave symbols. |
|
4798 * ov.h: Derive octave_value class from octave_symbol. |
|
4799 * oct-fcn.h, oct-fcn.cc: New files to declare and define |
|
4800 base class for functions. |
|
4801 * oct-builtin.h, oct-builtin.cc: New files to declare and define |
|
4802 class for built-in functions. |
|
4803 * oct-mapper.h, oct-mapper.cc: New files to declare and define |
|
4804 class for mapper functions. |
|
4805 * oct-usr-fcn.h, oct-usr-fcn.cc: New files to declare and define |
|
4806 base class for user-defined functions. |
|
4807 * Makefile.in: Add new files to appropriate lists. |
|
4808 |
|
4809 * pt-id.h, pt-id.cc: Move tree_identifier class here. |
|
4810 * pt-fvc.h, pt-fvc.cc: From here. |
|
4811 |
|
4812 * pt-indir.h, pt-indir.cc: Move tree_indirect_ref class here. |
|
4813 * pt-fvc.h, pt-fvc.cc: From here. |
|
4814 |
2881
|
4815 Thu Apr 24 03:58:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4816 |
2884
|
4817 * parse.y (magic_colon): New nonterminal. |
|
4818 (arg_list): Simplify using magic_colon. |
|
4819 |
2883
|
4820 * lex.h (class lexical_feedback): Delete maybe_screwed field. |
|
4821 New field, parsed_function name. |
|
4822 * lex.l (lexical_feedback::init): Initialize it. |
|
4823 (handle_identifier): Don't return SCREW. Handle switching |
|
4824 symbol table context properly for `function f ()' vs `function x ='. |
|
4825 (is_keyword): If looking at function keyword, don't set current |
|
4826 symbol table to point to the local table. |
|
4827 * parse.y (recover_from_parsing_function): New function. |
|
4828 (finish_function_def): Use identifier, not token. |
|
4829 Simplify parsing of functions. |
|
4830 |
|
4831 * ov-list.h, ov-list.cc: New files to implement generic list type. |
|
4832 * ov.cc (list_indent): New global variable. |
|
4833 (increment_list_indent, decrement_list_indent): New functions. |
|
4834 (install_types): Register octave_list type. |
|
4835 * ov-base.cc (octave_base_value::is_list): New function. |
|
4836 |
2881
|
4837 * oct-sym.h: New file. |
|
4838 * ov.h (class octave_value): Derive from octave_symbol class. |
|
4839 |
|
4840 * pt-const.h, pt-const.cc: Delete lots of old useless cruft. |
|
4841 |
|
4842 * pt-exp.h, pt-exp.cc (tree_binary_expression): Use type codes for |
|
4843 operators from octave_value instead of repeating them here. |
|
4844 |
|
4845 * pt-fvc-base.cc (tree_fvc::increment, tree_fvc::decrement): Delete. |
|
4846 * pt-fvc.cc (tree_identifier::increment): Get reference to value |
|
4847 and increment that instead of using virutal tree_fvc::increment |
|
4848 function. |
|
4849 |
|
4850 * lex.l: Handle +=, -=, *=, /=, .+=, .-=, .*=, ./=, &=, and |= ops. |
2883
|
4851 * parse.y (make_assign_op): Rename from make_simple_assignment and |
|
4852 handle different op types. |
|
4853 (simple_expr1): Do new ops. |
2881
|
4854 * pt-misc.cc (initialize_undefined_elements): Pass op to assign. |
|
4855 * pt-cmd.cc (tree_for_command::do_for_command_once): Likewise. |
|
4856 * pt-fvc.cc (tree_identifier::assign): Pass op. |
|
4857 * pt-exp.cc (tree_simple_assignment_expression): Handle new ops. |
|
4858 * variables.cc (octave_variable_reference::assign): Likewise. |
|
4859 * ov.h (class octave_value): Likewise. |
|
4860 * ov.cc (octave_value::assign_op_as_string): New function. |
|
4861 (octave_value::assign, octave_value::convert_and_assign, |
|
4862 octave_value::try_assignment_with_conversion, |
|
4863 octave_value::try_assignment): Pass op. |
|
4864 * pt-pr-code.cc (tree_print_code::visit_simple_assignment_expression): |
|
4865 Use expr.oper() instead of printing "=". |
|
4866 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-m-m.cc, |
|
4867 op-m-s.cc, op-str-str.cc: Pass op to INSTALL_ASSIGNOP. |
|
4868 * ops.h (INSTALL_ASSIGNOP): Pass op. |
2883
|
4869 * ov-typeinfo.cc (do_register_assign_op): Include op type in table. |
|
4870 (do_lookup_assign_op): Use op in lookup. |
2881
|
4871 |
|
4872 * ops.h (INSTALL_UNOP): Delete. |
|
4873 |
|
4874 * input.cc (generate_struct_completions, looks_like_struct): |
|
4875 Disable, since they don't work now anyway. |
|
4876 |
|
4877 * help.cc (Ftype): Work with octave_value instead of a pointer to |
|
4878 tree_constant. |
|
4879 * symtab.cc (symbol_record_info::symbol_record_info): Likewise. |
|
4880 |
|
4881 |
|
4882 Tue Apr 22 22:59:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4883 |
|
4884 * file-io.cc (Ffprintf): If first arg is a string, assume FID = 1. |
|
4885 |
|
4886 Fri Apr 18 20:16:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4887 |
|
4888 * oct-obj.h, oct-obj.cc: Implement octave_value_list with |
|
4889 Array<octave_value> as a data member, not as a class derived from |
|
4890 Array<octave_value>. |
|
4891 (octave_value_list::length, octave_value_list::resize, |
|
4892 octave_value_list::prepend, octave_value_list::append, |
|
4893 octave_value_list::reverse): New functions. |
|
4894 |
|
4895 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
4896 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
4897 op-s-cm.cc, op-s-m.cc: Use new bool ops from liboctave instead of |
|
4898 the macros defined in ops.h. |
|
4899 |
2865
|
4900 Thu Apr 17 13:12:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4901 |
|
4902 * parse.y (ABORT_PARSE): Handle forced_interactive the same as |
|
4903 interactive. |
|
4904 |
|
4905 Mon Apr 14 01:46:50 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4906 |
|
4907 * input.cc (octave_read): Don't forget to free input buffer if it |
|
4908 exists and has zero length. |
|
4909 (gnu_readline): Free buf if fgets returns 0. |
|
4910 |
|
4911 Wed Apr 9 00:03:57 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4912 |
|
4913 * time.cc (mk_tm_map): Only set zone field if HAVE_TM_ZONE or |
|
4914 HAVE_TZNAME are defined. |
|
4915 |
|
4916 Tue Apr 8 12:39:21 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4917 |
|
4918 * time.cc (extract_tm): Set tm.tm_zone if HAVE_TM_ZONE is defined, |
|
4919 not if HAVE_TMZONE is defined. |
|
4920 |
|
4921 * Makefile.in (%.oct : %.o): Use $(SH_LD), not $(CXX). |
|
4922 |
|
4923 Wed Apr 2 21:32:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4924 |
|
4925 * dynamic-ld.cc, dynamic-ld.h (init_dynamic_linker): Delete |
|
4926 function and declaration. |
|
4927 * octave.cc (main): Don't call it. |
|
4928 |
2856
|
4929 Mon Mar 31 00:37:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4930 |
2859
|
4931 * pt-base-exp.h (tree_expression::eval): Give arg a default value. |
|
4932 * pt-const.h (tree_constant::eval): Likewise. |
|
4933 * pt-exp.h (tree_prefix_expression::eval, tree_colon_expression::eval, |
|
4934 tree_postfix_expression::eval, tree_unary_expression::eval, |
|
4935 tree_binary_expression::eval, tree_boolean_expression::eval, |
|
4936 tree_simple_assignment_expression::eval): Likewise. |
|
4937 * pt-fcn.h (tree_function::eval): Likewise. |
|
4938 * pt-fvc.h (tree_identifier::eval, tree_indirect_ref::eval, |
|
4939 tree_builtin::eval): Likewise. |
|
4940 * pt-mat.h (tree_matrix::eval): Likewise. |
|
4941 * pt-misc.h (tree_statement_list::eval): Likewise. |
|
4942 * pt-mvr-base.h (tree_multi_val_ret::eval): Likewise. |
|
4943 * pt-mvr.h (tree_oct_obj::eval, tree_index_expression::eval, |
|
4944 tree_multi_assignment_expression::eval): Likewise. |
|
4945 * dassl.cc, fsolve.cc, load-save.cc, lsode.cc, npsol.cc, parse.y, |
|
4946 pt-cmd.cc, pt-exp-base.cc, pt-exp.cc, pt-fvc.cc, pt-mat.cc, |
|
4947 pt-misc.cc, pt-mvr.cc, pt-plot.cc, quad.cc, toplev.cc, variables.cc: |
|
4948 Change callers of eval() to use bool instead of int and to make |
|
4949 use of default argument value. |
|
4950 |
|
4951 * toplev.h, toplev.cc (parse_and_execute, eval_string): Flag args |
|
4952 are now bool instead of int. |
|
4953 |
2856
|
4954 * symtab.h, symtab.cc: Use bool instead of int in more places. |
|
4955 * variables.h, variables.cc: Likewise. |
2857
|
4956 * lex.h, lex.l: Likewise. |
|
4957 * parse.y: Likewise. |
2856
|
4958 * help.cc, input.cc, lex.l, load-save.cc, parse.y, pt-fcn.cc: |
|
4959 Change callers of symbol_table::lookup to use bool instead of int, |
|
4960 and to make use of default arguments. |
|
4961 |
2850
|
4962 Fri Mar 28 15:33:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4963 |
2852
|
4964 * parse.y (Vwarn_comma_in_declaration): Delete. |
|
4965 (symbols_of_parse): Delete DEFVAR for warn_comma_in_declaration. |
|
4966 (decl1): Don't allow commas in declarations. |
|
4967 |
2850
|
4968 * lsode.cc (struct LSODE_OPTIONS): Handle integer options. |
|
4969 (print_lsode_option_list, set_lsode_option, show_lsode_option): Ditto. |
|
4970 (lsode_option_table): Add element for step limit. |
|
4971 (lsode_user_jacobian): New function. |
|
4972 (Flsode): Allow function name arg to be a 2-element string array |
|
4973 specifying the function and jacobian function. |
|
4974 |
|
4975 * variables.cc (get_global_value, set_global_value): New functions. |
|
4976 |
2846
|
4977 Wed Mar 26 17:08:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4978 |
|
4979 Implement static variable declaration: |
|
4980 |
|
4981 * lex.l (is_keyword): Handle static. |
|
4982 * octave.gperf: Likewise. |
|
4983 * parse.y (Vwarn_comma_in_declaration): Rename from |
|
4984 Vwarn_comma_in_global_decl. |
|
4985 Handle new static command. |
|
4986 * pt-cmd.h, pt-cmd.cc (class tree_decl_command): New base class |
|
4987 for static and global declaration commands. |
|
4988 (class tree_global_command): Derive from tree_decl_command. |
|
4989 (class tree_static_command): New class, derived from tree_decl_command. |
|
4990 * pt-fvc.cc, pt-fvc.h (tree_identifier::mark_as_static): New function. |
|
4991 * pt-misc.h, pt-misc.h (class tree_decl_elt): Rename from tree_global. |
|
4992 (class tree_decl_init_list): Rename from tree_global_init_list. |
|
4993 * pt-pr-code.cc, pt-pr-code.h (tree_print_code::visit_decl_command): |
|
4994 Rename from visit_global_command. |
|
4995 (tree_print_code::visit_decl_elt): Rename from visit_global. |
|
4996 (tree_print_code::visit_decl_init_list): Rename from |
|
4997 visit_global_init_list. |
|
4998 * pt-walk.h (tree_walker::visit_decl_command): Rename from |
|
4999 visit_global_command. |
|
5000 (tree_walker::visit_decl_elt): Rename from visit_tree_global. |
|
5001 (tree_walker::visit_decl_init_list): Rename from |
|
5002 visit_global_init_list. |
|
5003 * variables.cc (link_to_global_variable): Trying to make a static |
|
5004 variable global is an error. |
|
5005 * SLList-misc.cc: Instantiate lists of pointers to tree_decl_elt |
|
5006 objects, not tree_global objects. |
|
5007 * symtab.h, symtab.cc (symbol_record::tagged_static): New field. |
|
5008 (symbol_record::mark_as_static, symbol_record::is_static): |
|
5009 New functions. |
|
5010 * symtab.cc (symbol_record::init_state): Initialize tagged_static. |
|
5011 (symbol_record::clear): Don't clear static variables. |
|
5012 * symtab.cc (push_context): Don't do anything for static variables. |
|
5013 |
2825
|
5014 Tue Mar 25 17:17:17 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5015 |
2881
|
5016 * ov-bool-mat.cc, ov-bool-mat.h, ov-bool.cc, ov-bool.h: New files. |
2832
|
5017 |
2831
|
5018 * defaults.cc (symbols_of_defaults): DEFCONST OCTAVE_HOME. |
|
5019 |
|
5020 * toplev.cc (octave_config_info): Delete use of CXXLIBS. |
|
5021 * oct-conf.h.in: Ditto. |
|
5022 |
2830
|
5023 * octave.cc (maximum_braindamage): Don't bind prefer_zero_one_indexing. |
|
5024 * ov.h: Don't declare Vprefer_zero_one_indexing. |
|
5025 * ov.cc: Don't define Vprefer_zero_one_indexing. |
|
5026 (prefer_zero_one_indexing): Delete. |
|
5027 (symbols_of_value): Delete DEFVAR for prefer_zero_one_indexing. |
|
5028 |
2825
|
5029 * ov.h, ov.cc, ov-base.h, ov-base.cc: Add constructors and |
|
5030 extractors for bool and boolMatrix types. |
|
5031 |
|
5032 * ov.cc (install_types): Register octave_bool and |
|
5033 octave_bool_matrix types. |
|
5034 |
|
5035 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
5036 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
5037 op-s-cm.cc, op-s-m.cc, op-s-s.cc, ov-re-mat.cc: |
|
5038 Return boolMatrix instead of Matrix object. |
|
5039 * ops.h (BOOL_OP3, MX_MX_BOOL_OP): Likewise. |
|
5040 |
|
5041 * op-b-b.h, op-b-b.cc, op-bm-bm.h, op-bm-bm.cc: New files. |
|
5042 * Makefile.in: Add them to the lists. |
|
5043 * ops.cc: Include header files here. |
|
5044 (install_ops): Call install_b_b_ops() and install_bm_bm_ops() here. |
|
5045 |
|
5046 * variables.cc (symbols_of_variables): Don't rely on default |
|
5047 conversion from int to double for value returned from |
|
5048 default_history_size(). |
|
5049 |
|
5050 * pr-output.cc: Include cstdio. |
|
5051 |
|
5052 * parse.y (param_list_end): Fix typo in last change. |
|
5053 |
|
5054 * quad.cc (quad): Cast integer return values to double. |
|
5055 * npsol.cc (show_npsol_option): Likewise. |
|
5056 * qpsol.cc (show_qpsol_option): Likewise. |
|
5057 * file-io.cc (Fsprintf, Ffwrite): Likewise. |
|
5058 |
|
5059 Mon Mar 24 13:11:47 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5060 |
|
5061 * ov-typeinfo.cc (typeinfo): If invoked with an argument, return |
|
5062 the type of the argument as a string. Fix doc string. |
|
5063 |
2821
|
5064 Thu Mar 20 14:47:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5065 |
|
5066 * mk-oct-links (links_dir): Don't use -h option for grep. It's |
|
5067 not needed since we are working on one file at a time anyway. |
|
5068 |
2819
|
5069 Mon Mar 17 10:53:29 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5070 |
|
5071 * lex.l (handle_identifier): When handling indirect_ref, set |
|
5072 lexer_flags.quote_is_transpose to 1 so that a.b' to work as |
|
5073 expected. |
|
5074 |
|
5075 * parse.y (param_list_beg, param_list_end): New nonterminals. |
|
5076 (param_list, param_list1): Use them. |
|
5077 |
2811
|
5078 Wed Mar 12 16:57:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5079 |
|
5080 * Makefile.in (install-strip): New target. |
|
5081 |
2806
|
5082 Mon Mar 10 22:38:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5083 |
|
5084 * Makefile.in (clean): Delete .oct files too. |
|
5085 |
|
5086 * toplev.cc (Vdefault_eval_print_flag): New static variable. |
|
5087 (eval_string): New arg, print. |
|
5088 (Feval): Pass Vdefault_eval_print_flag to eval_string. |
|
5089 (default_eval_print_flag): New function. |
|
5090 (symbols_of_toplev): New function. |
|
5091 |
|
5092 * variables.cc (install_builtin_variables): Call it. |
|
5093 |
|
5094 * pt-exp.h, pt-exp.cc (class tree_boolean_expression): Rename enum |
|
5095 fields `and' and `or' to `bool_and' and `bool_or'. |
|
5096 (tree_unary_expression): Rename enum field `not' to `unot'. |
|
5097 (class tree_binary_expression): Rename enum fields `and' and `or' |
|
5098 to `el_and' and `el_or'. |
|
5099 * parse.y: Change all uses. |
|
5100 |
|
5101 * time.cc (extract_tm): Truncate field values instead of rounding. |
|
5102 (gmtime, localtime): Likewise, for timeval. |
|
5103 |
|
5104 * ov.h (class octave_value): Delete unused variable freeptr. |
|
5105 |
|
5106 * mappers.cc: Delete functions that are already in |
|
5107 liboctave/lo-mappers.cc. |
|
5108 |
|
5109 * oct-strstrm.cc (octave_base_strstream::tell): Use const_cast, |
|
5110 not static_cast. |
|
5111 |
|
5112 * help.cc (help_from_list): Add missing const qualifiers. |
|
5113 * help.h (struct help_list): Likewise. |
|
5114 * lex.l (match_any, plot_style_token): Likewise. |
|
5115 * load-save.cc (extract_keyword, ascii_save_type): Likewise. |
|
5116 * oct-hist.cc (mk_tmp_hist_file): Likewise. |
|
5117 * octave.cc (execute_startup_files): Likewise. |
|
5118 * octave.gperf (struct octave_kw): Likewise. |
|
5119 * pr-output.cc (pr_any_float): Likewise. |
|
5120 * pt-mvr.cc (tree_index_expression::eval_error): Likewise. |
|
5121 * pt-exp-base.h, pt-exp.h, pt-exp.cc: Likewise. |
|
5122 * parse.y: Likewise. |
|
5123 |
2800
|
5124 Sun Mar 9 03:46:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5125 |
2806
|
5126 * pt-exp-base.h (tree_expression): Delete extra comma at end of list. |
|
5127 |
|
5128 * dirfns.cc error.cc file-io.cc fsolve.cc input.cc load-save.cc |
|
5129 npsol.cc pt-fcn.cc qpsol.cc quad.cc syscalls.cc toplev.cc |
|
5130 variables.cc: Eliminate embedded newlines in string constants. |
|
5131 |
|
5132 * Map.cc, data.cc, dirfns.cc, dynamic-ld.cc, file-io.cc, |
|
5133 fsolve.cc, getgrent.cc, getpwent.cc, getrusage.cc, help.cc, |
|
5134 input.cc, load-save.cc, mappers.cc, minmax.cc, npsol.cc, |
|
5135 oct-fstrm.cc, oct-procbuf.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
5136 oct-stream.cc, oct-stream.h, oct-strstrm.cc, octave.cc, |
|
5137 ov-base.h, ov-range.cc, ov-typeinfo.cc, ov.cc, pr-output.cc, |
|
5138 pt-cmd.cc, pt-exp.cc, pt-fcn.cc, pt-fvc.cc, pt-mat.cc, |
|
5139 pt-misc.cc, pt-plot.cc, qpsol.cc, quad.cc, sort.cc, strfns.cc, |
|
5140 symtab.cc, syscalls.cc, sysdep.cc, time.cc, toplev.cc, |
|
5141 unwind-prot.cc, unwind-prot.h, variables.cc, xpow.cc: |
|
5142 Use `static_cast<T> (val)' instead of old C-style `(T) val' casts. |
2800
|
5143 |
2799
|
5144 Sat Mar 8 02:35:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5145 |
|
5146 * load-save.cc (save_ascii_data, save_three_d): Where appropriate, |
|
5147 use bool instead of int. |
|
5148 (save_binary_data, save_mat_binary_data, save_ascii_data): |
|
5149 Print warning instead of error for wrong type arg. |
|
5150 |
|
5151 * gripes.cc (gripe_wrong_type_arg): New arg, is_error. |
|
5152 |
|
5153 * pt-plot.cc (save_in_tmp_file): Call save_ascii_data with bool |
|
5154 arg, not int. |
|
5155 |
2797
|
5156 Fri Mar 7 00:56:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5157 |
|
5158 * dassl.cc (show_dassl_option): For values that are determined |
|
5159 automatically, return a string instead of a magic value (-1.0). |
|
5160 * fsolve.cc (show_fsolve_option): Likewise. |
|
5161 * lsode.cc (show_lsode_option): Likewise. |
|
5162 * npsol.cc (show_npsol_option): Likewise. |
|
5163 * qpsol.cc (show_qpsol_option): Likewise. |
|
5164 |
|
5165 * variables.cc (extract_function): New function. |
|
5166 * dassl.cc (Fdassl): Use it instead of is_valid_function. |
|
5167 * fsolve.cc (Ffsolve): Likewise. |
|
5168 * npsol.cc (Fnpsol): Likewise. |
|
5169 * qpsol.cc (Fqpsol): Likewise. |
|
5170 * quad.cc (Fquad): Likewise. |
|
5171 |
2795
|
5172 Thu Mar 6 20:07:24 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5173 |
|
5174 * sighandlers.cc (my_friendly_exit, octave_new_handler, |
|
5175 sigfpe_handler, sigpipe_handler): Don't all error() or warning(). |
|
5176 |
|
5177 * pager.cc (pager_death_handler): Don't try to clear pager, just |
|
5178 print message to cerr. |
|
5179 (do_sync): If the status of the pager is bad or it looks like it |
|
5180 is dead, restore the interrupt handler. |
|
5181 |
|
5182 * load-save.cc (extract_keyword (istream&, char*, int&)): |
|
5183 Move declaration of buf inside loop, to avoid deleting its guts |
|
5184 and then trying to reuse it. |
|
5185 (extract_keyword (istream&, char*)): Likewise. |
|
5186 |
2790
|
5187 Tue Mar 4 20:36:53 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5188 |
2791
|
5189 * pt-fcn.cc (tree_function::eval): Protect function from being |
|
5190 redefined while it is being evaluated. |
|
5191 (unprotect_function): New function, for use with unwind_protect stuff. |
|
5192 * pt-fcn.h (tree_function::symtab_entry): New data member. |
|
5193 (tree_function::init): Initialize it to 0. |
|
5194 (tree_function::stash_symtab_ptr): New function. |
|
5195 * parse.y (frob_function_def): Stash pointer to function's |
|
5196 symbol_record in the function definition. |
|
5197 |
|
5198 * symtab.cc (symbol_record::read_only_error): New argument, |
|
5199 action. Change all callers. |
|
5200 (symbol_record::rename): Don't allow read-only symbols to be renamed. |
|
5201 |
2790
|
5202 * variables.cc (Fexist): Don't let files with `.' in their names |
|
5203 confuse us. |
|
5204 |
|
5205 * symtab.cc (valid_identifier (const string&)): New function. |
|
5206 |
2779
|
5207 Sat Mar 1 15:23:14 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2775
|
5208 |
|
5209 * Version 2.0.5 released. |
|
5210 |
2779
|
5211 Sat Mar 1 01:34:08 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5212 |
|
5213 * Makefile.in (stamp-oct-links): New target. Make links in build |
|
5214 directory too, so that the tests will work. |
|
5215 |
2777
|
5216 * quad.cc: If quad is defined, undefine it. |
|
5217 |
2775
|
5218 * octave.cc: If WITH_KPATHSEARCH is defined, don't define |
|
5219 program_invocation_name or program_invocation_short_name. |
2774
|
5220 |
|
5221 * strftime.c: Update to current version from FSF. |
|
5222 * time.cc (Fstrftime): Call strftime with buf = 0 to get buffer |
|
5223 size, then call again to actually format the time struct. |
|
5224 |
2762
|
5225 Fri Feb 28 01:49:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5226 |
2764
|
5227 Implement switch statement: |
|
5228 |
|
5229 * parse.y (Vwarn_variable_switch_label): New static variable. |
|
5230 (warn_variable_switch_label): New function. |
|
5231 (symbols_of_parse): Provide warn_variable_switch_label as Octave |
|
5232 variable here. |
|
5233 (make_switch_case, finish_switch_command): New functions. |
|
5234 (maybe_warn_variable_switch_label): New function. |
|
5235 (end_error): Handle endswitch. |
|
5236 (switch_command, case_list, case_list1, switch_case, default_case): |
|
5237 New nonterminals. |
|
5238 (command): Add switch_command here. |
|
5239 * lex.l (is_keyword): Handle switch, case, otherwise, and endswitch. |
|
5240 * octave_gperf: Recognize switch, case, otherwise, and endswitch. |
|
5241 * token.h (end_tok_type): New item, switch_end. |
|
5242 * pt-cmd.cc (tree_switch_command): New class. |
|
5243 * pt-misc.cc (tree_switch_case, tree_switch_case_list): New classes. |
|
5244 * pt-pr-code.cc (tree_print_code::visit_switch_case, |
|
5245 tree_print_code::visit_switch_case_list, |
|
5246 tree_print_code::visit_switch_command): New functions. |
|
5247 * pt-walk.h (tree_walker::visit_switch_case, |
|
5248 tree_walker::visit_switch_case_list, |
|
5249 tree_walker::visit_switch_command): New pure virtual declarations. |
|
5250 Implement new switch statement. |
|
5251 * SLList-misc.cc: Instantiate lists of pointers to |
|
5252 tree_switch_case objects too. |
|
5253 |
|
5254 * lex.h, lex.l, parse.y: Delete all references to lexer_flags::iffing. |
|
5255 |
2762
|
5256 * syswait.h: Include sys/wait.h on NeXT systems, but don't use the |
|
5257 WIFEXTED, WEXITSTATUS, and WIFSIGNALLED macros defined there. |
|
5258 Also define waitpid in terms of wait4. From Rex A. Dieter |
|
5259 <rdieter@math.unl.edu>. |
|
5260 |
2759
|
5261 Wed Feb 26 16:43:31 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5262 |
|
5263 * oct-stream.cc (octave_base_stream::do_scanf): Don't report an |
|
5264 error if a conversion fails or we reach EOF. |
|
5265 |
2745
|
5266 Tue Feb 25 22:21:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5267 |
|
5268 * time.cc (strftime): increase initial buffer size. |
|
5269 |
|
5270 Mon Feb 24 17:49:21 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5271 |
|
5272 * pt-fvc.cc (tree_builtin::eval): Enable checking for max number |
|
5273 of arguments. |
|
5274 |
|
5275 * error.cc (handle_message): Don't fail if args is empty. |
|
5276 |
|
5277 Sun Feb 23 22:42:52 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5278 |
|
5279 * lex.h (lexical_feedback::looking_at_return_list): New field. |
|
5280 (lexical_feedback::looking_at_parameter_list): Ditto. |
|
5281 * lex.l (lexical_feedback::init): Initialize them. |
|
5282 (handle_identifier): Use them. |
|
5283 * parse.y: Likewise. |
|
5284 |
2712
|
5285 Fri Feb 21 15:35:18 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5286 |
2716
|
5287 * lex.l: Require flex 2.5 or later (we really want 2.5.4 or later, |
|
5288 but there seems to be no good way to check the patchlevel). |
|
5289 |
2712
|
5290 * oct-stream.cc (octave_base_stream::oscanf): Instead of returning |
|
5291 an error, just quit processing after a conversion fails. |
|
5292 |
2709
|
5293 Thu Feb 20 02:58:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2702
|
5294 |
|
5295 * Version 2.0.4 released. |
|
5296 |
2706
|
5297 Wed Feb 19 10:30:14 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5298 |
2705
|
5299 * sighandlers.cc (octave_ignore_interrupts, |
|
5300 octave_catch_interrupts, octave_set_interrupt_handler): |
|
5301 Return old value, not pointer to static data. Fix all uses. |
|
5302 |
|
5303 * sighandlers.h (octave_interrupt_handler): Move declaration here. |
|
5304 * sighandlers.cc: From here. |
|
5305 |
|
5306 * toplev.cc: Undo previous change. |
|
5307 |
2702
|
5308 * lex.l (handle_identifier): Allow commands like ls, save, etc. to |
|
5309 also be used as simple variable names. Also make it possible to |
|
5310 use the normal function call syntax to invoke them. |
|
5311 |
2693
|
5312 Tue Feb 18 09:22:04 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2689
|
5313 |
2702
|
5314 * Makefile.in (%.oct:%.o, %.oct:pic/%.o): Use $(SH_LDFLAGS) here. |
|
5315 |
2690
|
5316 * Version 2.0.3 released. |
|
5317 |
2693
|
5318 Tue Feb 18 00:27:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5319 |
|
5320 * toplev.cc (run_command_and_return_output): |
|
5321 Block SIGCHLD while running subprocess. |
|
5322 (cleanup_iprocstream): Unblock it here. |
|
5323 |
|
5324 * sighandlers.h (BLOCK_SIGNAL, BLOCK_CHILD, UNBLOCK_CHILD): Move here. |
|
5325 * sighandlers.cc: From here. |
|
5326 |
2692
|
5327 * toplev.cc (system): Shift then mask exit status. |
|
5328 |
|
5329 * help.cc (try_info): Shift first, then mask exit status. |
|
5330 |
2689
|
5331 * toplev.cc (octave_config_info): Handle option argument. |
|
5332 |
2686
|
5333 Fri Feb 14 16:23:30 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5334 |
2687
|
5335 * oct-stream.cc (octave_base_stream::do_scanf): Don't forget to |
|
5336 check to see if the result matrix needs resizing! |
|
5337 |
2686
|
5338 * Makefile.in (bin-dist): Don't write empty strings to LIBRARIES. |
|
5339 |
2669
|
5340 Thu Feb 13 03:02:08 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5341 |
2676
|
5342 * Makefile.in (stamp-prereq): Depend on stamp-picdir. |
|
5343 (all): Don't depend on stamp-prereq or stamp-picdir. |
|
5344 (stamp-tinst, stamp-interp, libtinst.a, liboctinterp.a): |
|
5345 Do depend on stamp-prereq. |
|
5346 (stamp-picdir): Silence noise about making pic. |
|
5347 (stamp-tinst, stamp-interp): Use $(SH_LD) $(SH_LDFLAGS) instead of |
|
5348 $(CXX) -shared. |
|
5349 |
2675
|
5350 * oct-conf.h.in: Reinstate RLD_FLAG. |
|
5351 * toplev.cc (octave_config_info): Likewise. |
|
5352 |
2672
|
5353 * data.cc (map_d_m, map_m_d, map_m_m): Rename from map. |
|
5354 (Fatan2): Use new function names. |
|
5355 |
|
5356 * pt-fvc.cc (apply_mapper_fcn): Use member function map() instead |
|
5357 of friend function. |
|
5358 |
2669
|
5359 * gripes.cc (gripe_wrong_type_arg (const char*, const string&)): |
|
5360 New function. |
|
5361 |
|
5362 Wed Feb 12 17:27:53 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5363 |
|
5364 * syscalls.cc (symbols_of_syscalls): Add O_ASYNC and O_SYNC. |
|
5365 |
|
5366 Mon Feb 10 01:22:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5367 |
|
5368 * dirfns.cc (Freaddir, Fmkdir, Frmdir, Frename): |
|
5369 Also return status and error message. |
|
5370 |
|
5371 * syscalls.cc (Fdup2, Fexec, Ffork, Ffcntl, Funlink, Fmkfifo, |
|
5372 Fpipe, Fwaitpid): Also return error message. |
|
5373 |
2664
|
5374 Sat Feb 8 17:16:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5375 |
2665
|
5376 * pt-exp.cc (tree_simple_assignment_expression::eval): Return |
|
5377 value of RHS, but (if printing) print complete value of LHS. |
|
5378 |
2664
|
5379 * pr-output.cc (octave_print_internal): Print a new line for empty |
|
5380 string matrices. |
|
5381 |
2663
|
5382 Wed Feb 5 14:30:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5383 |
|
5384 * oct-stream.cc (scanf_format_list::process_conversion): Accept |
|
5385 but don't actually use h, l, and L modifiers. Always insert l |
|
5386 modifier for floating point conversions. |
|
5387 |
2652
|
5388 Fri Jan 31 13:55:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5389 |
|
5390 * pager.cc (do_sync): Always flush the cout stream after writing. |
|
5391 |
2643
|
5392 Wed Jan 29 08:25:29 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5393 |
2648
|
5394 * defaults.cc (exec_path): Don't include bin_dir in std_path. |
|
5395 |
2646
|
5396 * pager.cc (do_sync): Flush the cout stream after writing if |
|
5397 running in interactive or forced_interactive mode. |
|
5398 |
|
5399 * mk-oct-links: Rename from mk-oct-links.in. |
|
5400 Don't use symbolic links. |
|
5401 * Makefile.in: Distribute mk-oct-links, not mk-oct-links.in |
|
5402 (mk-oct-links): Delete target. |
|
5403 (install-oct, bin-dist): Don't depend on mk-oct-links. |
|
5404 Run $(srcdir)/mk-oct-links, not ./mk-oct-links. |
|
5405 |
2643
|
5406 * qr.cc (qr): Doc fix. |
|
5407 |
2638
|
5408 Tue Jan 28 10:48:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5409 |
|
5410 * Makefile.in (install-inc): Create a relative symbolic link. |
|
5411 (install-bin): Create a relative symbolic link. |
|
5412 |
2630
|
5413 Mon Jan 27 12:12:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5414 |
2634
|
5415 * Version 2.0.2 released. |
|
5416 |
|
5417 * Makefile.in (CXXFLAGS_NO_PT_FLAGS): Rename from XALL_CXXFLAGS. |
|
5418 Substitute bsd_gcc_kluge_targets_frag. |
|
5419 |
2630
|
5420 * sysdep.cc (Fsleep): New function. |
|
5421 (Fusleep): New function. |
|
5422 |
|
5423 * toplev.cc (octave_config_info): Don't include RLD_FLAG. |
|
5424 * oct-conf.h.in: Don't define RLD_FLAG |
|
5425 |
2626
|
5426 Sun Jan 26 19:41:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5427 |
|
5428 * sighandlers.cc (sigchld_handler): Block SIGCHLD while |
|
5429 sigchld_hander is running. |
|
5430 |
2624
|
5431 Sat Jan 25 22:36:39 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5432 |
|
5433 * Makefile.in (bin-dist): Update for 2.x. |
|
5434 |
2621
|
5435 Fri Jan 24 10:05:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5436 |
|
5437 * mk-oct-links.in: New arg, -p, to just print list of files to link. |
|
5438 |
|
5439 * lex.l (handle_number): Convert `D' or `d' exponents to `e' |
|
5440 before scanning. |
|
5441 |
2620
|
5442 Thu Jan 23 10:00:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5443 |
|
5444 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_no_op_command): |
|
5445 New function. |
|
5446 * pt-cmd.h, pt-cmd.cc (tree_no_op_command): New class. |
|
5447 * parse.y (make_break_command, make_continue_command, |
|
5448 make_return_command): Where they don't really make sense, turn |
|
5449 these commands into no-ops. Accept return and break if reading a |
|
5450 script file. |
|
5451 * toplev.cc (parse_and_execute): Handle return and break in script |
|
5452 files. Quit executing commands if an error occurs when reading a |
|
5453 script file. Set global_command to 0 after deleting it. |
|
5454 (main_loop): If not interactive or forced_interactive, handle |
|
5455 break and return, and quit executing commands if an error occurs. |
|
5456 Set global_command to 0 after deleting it. |
|
5457 * error.cc (Ferror): Doc fix. |
|
5458 * pt-walk.h (tree_walker): Add declaration for visit_no_op_command. |
|
5459 |
2618
|
5460 Wed Jan 22 20:54:12 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5461 |
|
5462 * input.cc (gnu_readline): If not using readline, flush |
|
5463 rl_outstream after printing prompt. |
|
5464 (octave_gets): Also call flush_octave_stdout() if |
|
5465 forced_interactive, not just if interactive. |
|
5466 (do_input_echo): If forced_interactive, only echo prompt and |
|
5467 command line if also reading a script file. |
|
5468 |
2616
|
5469 Tue Jan 21 23:02:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5470 |
|
5471 * SLList.h: Include "BaseSLList.h", not <BaseSLList.h>. |
|
5472 |
2610
|
5473 Mon Jan 20 11:11:12 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5474 |
2614
|
5475 * lex.l (token_stack): Don't declare static. |
|
5476 * pt-plot.cc (tmp_files): Likewise. |
|
5477 * toplev.cc (octave_atexit_functions): Likewise. |
|
5478 * unwind-prot.cc (unwind_protect_list): Likewise. |
|
5479 |
2613
|
5480 * ops.h (MX_MX_BOOL_OP): Correctly handle case of one or both |
|
5481 arguments being empty. Change all callers. |
|
5482 |
|
5483 * oct-stream.cc (printf_value_cache::looking_at_string): |
|
5484 Handle empty strings correctly now that they are 0x0. |
|
5485 |
2610
|
5486 * file-io.cc: Don't include "syswait.h" here. |
|
5487 |
|
5488 Sun Jan 19 22:38:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5489 |
|
5490 * oct-stream.h (octave_base_stream::seek): Declare offset arg as |
|
5491 streamoff, not streampos. |
|
5492 (octave_stream::seek): Likewise. |
|
5493 * oct-strstrm.h (octave_base_strstream::seek): Likewise. |
|
5494 * oct-stdstrm.h (octave_base_stdiostream::seek): Likewise. |
|
5495 * oct-iostrm.h (octave_base_iostream::seek): Likewise. |
|
5496 * oct-fstrm.h (octave_fstream::seek): Likewise. |
|
5497 |
2609
|
5498 Fri Jan 17 18:13:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5499 |
|
5500 * file-io.cc (Ffflush): Handle stdout as a special case. |
|
5501 |
|
5502 * oct-stream.cc (octave_stream_list::do_get_file_number): |
|
5503 Do the work for octave_stream::get_file_number. |
|
5504 (octave_stream_list::get_file_number): Convert to static function. |
|
5505 |
2608
|
5506 Wed Jan 8 11:42:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5507 |
|
5508 * log.cc (sqrtm): For complex arg case, compute sqrt, not log. |
|
5509 |
2602
|
5510 Tue Jan 7 00:16:41 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5511 |
|
5512 * Version 2.0.1 released. |
|
5513 |
|
5514 Mon Jan 6 00:00:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5515 |
|
5516 * pt-mat.cc (tm_row_const_rep::all_mt): New variable. |
|
5517 (tm_row_const::all_empty): New function. |
|
5518 (tm_row_const::tm_row_const_rep::init): Set all_mt here. |
|
5519 (tm_const::all_mt): New variable. |
|
5520 (tm_const::all_emtpy): New function. |
|
5521 (tm_const::init): Set all_mt here. |
|
5522 (tree_matrix::eval): Return an empty matrix if the list contains |
|
5523 only empty elements. If it contains only empty strings, return an |
|
5524 empty string. |
|
5525 |
2601
|
5526 Sun Jan 5 12:50:25 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5527 |
|
5528 * ops.h (SC_MX_BOOL_OP, MX_SC_BOOL_OP): New arg, empty_result. |
|
5529 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
5530 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
5531 op-s-cm.cc, op-s-m.cc, op-str-str.cc: Change all uses of |
|
5532 SC_MX_BOOL_OP and MX_SC_BOOL_OP macros. Return correct results |
|
5533 for empty matrix cases. |
|
5534 |
|
5535 * pt-fcn.cc (tree_function::eval): If Vdefine_all_return_values is |
|
5536 true, initialize return values before evaluating function, for |
|
5537 compatibility with Matlab. |
|
5538 |
|
5539 * oct-stream.cc (get_size): Correctly set size when arg is scalar. |
|
5540 |
|
5541 Thu Jan 2 12:40:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5542 |
|
5543 * Makefile.in (install-oct): Quote $(OCT_FILES) in for loop to |
|
5544 avoid syntax error from ksh. |
|
5545 |
|
5546 * pr-output.cc (octave_print_internal): Avoid unused parameter |
|
5547 warning from gcc. |
|
5548 |
2600
|
5549 Thu Dec 19 12:13:42 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5550 |
|
5551 * oct-stream.cc (octave_base_stream::do_scanf): |
|
5552 Don't treat %l{e,f,g} differently from %{e,f,g}. |
|
5553 (octave_base_stream::do_oscanf): Likewise. |
|
5554 |
|
5555 * sighandlers.cc (sigchld_handler): Fix typos. |
|
5556 |
2598
|
5557 Wed Dec 18 20:17:23 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5558 |
2599
|
5559 * file-io.cc (Ffgetl, Ffgets): Also return number of characters read. |
|
5560 |
|
5561 * ov-range.cc (octave_range::not): New function. |
|
5562 * ov-range.h (octave_range::uminus): New function. |
|
5563 |
2598
|
5564 * BaseSLList.cc: Include error.h. |
|
5565 (BaseSLList::error): Call ::error() to process error message. |
|
5566 |
2589
|
5567 Fri Dec 13 02:38:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5568 |
|
5569 * ov.cc (octave_value::convert_and_assign): Preserve lhs value if |
|
5570 assignment fails. |
|
5571 |
2586
|
5572 Wed Dec 11 12:33:16 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5573 |
|
5574 * pt-plot.cc (GPLOT_CMD_END): Don't put semicolons at the end of |
|
5575 each plot command; it causes trouble with gnuplot 3.5. |
|
5576 |
2580
|
5577 Tue Dec 10 00:31:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5578 |
2583
|
5579 * Version 2.0 released. |
|
5580 |
2584
|
5581 * pr-output.cc (set_format_style): Don't try to access argv unless |
|
5582 argc > 1. |
|
5583 |
2580
|
5584 * SLList-expr.cc SLList-misc.cc SLList-plot.cc SLList-str.cc |
|
5585 SLList-tc.cc SLList-tm.cc SLList.h SLStack-i.cc SLStack-pc.cc |
|
5586 SLStack-str.cc SLStack-sym.cc SLStack-tok.cc SLStack-ue.cc |
|
5587 SLStack-ui.cc, pt-mat.cc: Include Stack.h, Stack.cc, SLStack.cc, |
|
5588 and SLList.cc as necessary. |
|
5589 |
|
5590 * Stack.cc, SLStack.cc, SLList.cc: New files. |
|
5591 * Makefile.in (SOURCES): Add them to the list. |
|
5592 |
2575
|
5593 Mon Dec 9 12:03:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5594 |
2577
|
5595 * Makefile.in (install-bin): Use $(EXE) suffix so install will |
|
5596 find the right file on cygwin32 systems. |
|
5597 |
2575
|
5598 * ov.h: Declare proper form of do_binary_op as friend to |
|
5599 octave_value class. |
|
5600 |
2572
|
5601 Sat Dec 7 22:00:10 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5602 |
|
5603 * oct-stream.cc (do_printf_conv, do_scanf_conv, |
|
5604 do_oscanf_num_conv, do_oscanf_str_conv): Convert to real |
|
5605 functions instead of CPP macros, using templates where necessary. |
|
5606 (do_oscanf_num_conv, do_oscanf_str_conv): Correctly handle |
|
5607 discarded values. |
|
5608 |
2569
|
5609 Fri Dec 6 00:20:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5610 |
2572
|
5611 * Version 1.94. |
|
5612 |
2571
|
5613 * Map-*.cc, SLList-*.cc, SLStack-*.cc: Include config.h. |
|
5614 |
|
5615 * ov.h: Don't include SLList.h. |
|
5616 |
|
5617 * SLStack.cc: Delete. Move everything to SLStack.h. |
|
5618 |
|
5619 * BaseSLList.h, BaseSLList.cc: New files. Split out the |
|
5620 non-template base class parts of SLList. |
|
5621 |
2569
|
5622 * Makefile.in (TEMPLATE_SRC): Delete. Move files to SOURCES. |
|
5623 * Map.h, Map.cc: Add #pragma interface/implementation. |
|
5624 * SLStack.h, SLStack.cc: Add #pragma interface/implementation. |
|
5625 |
|
5626 * SLList.h, SLList.cc: New files, from libg++, but with #pragma |
|
5627 interface/implementation. |
|
5628 * Makefile.in (SOURCES): Add SLList.cc. |
|
5629 (INCLUDES): Add SLList.h. |
|
5630 |
2566
|
5631 Thu Dec 5 18:36:44 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5632 |
|
5633 * octave.cc: Don't include sun-utils.h. |
|
5634 |
2563
|
5635 Tue Dec 3 23:47:09 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5636 |
|
5637 * op-str-str.cc (eq, ne): Handle operations with scalars. |
|
5638 |
2555
|
5639 Thu Nov 21 12:30:36 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5640 |
|
5641 * ov-str-mat.h (octave_char_matrix_str): Provide transpose and |
|
5642 hermitian operators. |
|
5643 * ov-ch-mat.h (octave_char_matrix): Likewise. |
|
5644 |
2548
|
5645 Wed Nov 20 00:35:57 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5646 |
2554
|
5647 * sighandlers.h (struct octave_interrupt_handler): Provide |
|
5648 forward declaration here. |
|
5649 * sighandlers.cc (octave_interrupt_handler): New struct. |
|
5650 (octave_catch_interrupts): Rename from catch_interrupts. |
|
5651 (octave_ignore_interrupts, octave_set_interrupt_handler): |
|
5652 New functions. |
|
5653 * help.cc, oct-hist.cc, pager.cc, toplev.cc: Use new functions for |
|
5654 handling interrupts so that we can hide the details of whether or |
|
5655 not we have to deal with SIGBREAK. |
|
5656 |
|
5657 * pt-plot.cc [! HAVE_POSIX_SIGNALS] (open_plot_stream): |
|
5658 Simply ignore and restore the interrupt handler here. |
|
5659 |
|
5660 * sighandlers.cc (MAYBE_REINSTALL_SIGHANDLER): New macro. Use it |
|
5661 instead of always checking MUST_REINSTALL_SIGHANDLERS everywhere. |
|
5662 (sigchld_handler): If octave_child_list is empty, wait for any |
|
5663 child, but don't hang, and don't collect status info. |
|
5664 [__EMX__] (sigchld_handler): Save and restore handlers for SIGINT, |
|
5665 SIGBREAK, and SIGCHLD. Ignore them while waiting on children. |
|
5666 (install_signal_handlers): If SIGBREAK exists, handle it like SIGINT. |
|
5667 |
2552
|
5668 * toplev.cc [USE_READLINE] (clean_up_and_exit): |
|
5669 Call rl_deprep_terminal() to restore terminal settings. |
|
5670 |
|
5671 * sysdep.cc [__EMX__ && OS2] (Fextproc): New command. |
|
5672 [__EMX__ && OS2] (FEXTPROC): Alias for Fextproc. |
|
5673 |
|
5674 * Version 1.93. |
|
5675 |
2549
|
5676 * sysdep.cc (octave_chdir): [__EMX__]: Make copy of string before |
|
5677 converting to upper case. |
|
5678 |
2548
|
5679 * getgrent.cc (mk_gr_map): Only set the passwd field if |
|
5680 HAVE_GR_PASSWD is defined. |
|
5681 |
2533
|
5682 Tue Nov 19 12:01:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5683 |
2546
|
5684 * sysdep.cc (OS2_init): New function. |
|
5685 [__EMX__] (sysdep_init): Call it. |
|
5686 |
2542
|
5687 * lex.l (plot_style_token): Add new plot styles for gnuplot 3.6. |
2543
|
5688 * pt-plot.cc (subplot_style::columns_ok): Rename from |
|
5689 subplot_style::errorbars. Recognize more styles and do a better |
|
5690 job of diagnosing column number/style mismatches. |
2542
|
5691 |
2536
|
5692 * sighandlers.cc (my_friendly_exit): If we are called twice, try |
|
5693 to remove the signal handler for SIGABRT and the call abort (). |
|
5694 |
2534
|
5695 * help.cc (Ftype): If a function is defined from a file and |
|
5696 transformed text has not been requested, just print the contents |
|
5697 of the file. |
|
5698 |
2533
|
5699 * parse.y (fold): New functions for constant folding for binary |
|
5700 and unary expressions. Keep track of original text even when |
|
5701 transformations occur. |
|
5702 (make_binary_op, make_boolean_op, make_unary_op): Use them. |
|
5703 (finish_colon_expression, finish_matrix): Keep track of original |
|
5704 text even when transformations occur. |
|
5705 |
|
5706 * help.cc (Ftype): Don't mess with Vps4. |
|
5707 Handle new option `-transformed'. |
|
5708 |
|
5709 * pt-const.h, pt-const.cc (tree_constant::print): |
|
5710 New arg, pr_orig_text. |
|
5711 |
|
5712 * pt-exp.h, pt-exp.cc (tree_colon_expression::is_range_constant): |
|
5713 Delete. |
|
5714 |
|
5715 * pt-exp-base.h (tree_expression::original_text): New virtual function. |
|
5716 pt-exp-base.cc (tree_expression::original_text): Default version. |
|
5717 |
|
5718 * pt-pr-code.h (tree_print_code::print_original_text, |
|
5719 tree_print_code::prefix): New fields. |
|
5720 * pt-pr-code.cc (tree_print_code::visit_constant): Pass |
|
5721 print_original_text to tree_constant::print(). |
|
5722 (tree_print_code::indent): Use prefix instead of Vps4. |
|
5723 * pt-fcn.cc (tree_function::print_function_header, |
|
5724 tree_function::print_function_trailer): Pass Vps4 to |
|
5725 tree_print_code_constructor for prefix. |
|
5726 * pt-misc.cc (tree_statement::maybe_echo_code): Pass Vps4 to |
|
5727 tree_print_code_constructor for prefix. |
|
5728 |
|
5729 * pt-mat.h, pt-mat.cc (tree_matrix::all_elements_are_constant): |
|
5730 Rename from is_matrix_constant. |
|
5731 (tree_matrix_row::all_elements_are_constant): Likewise. |
|
5732 Change all callers. |
|
5733 |
|
5734 Mon Nov 18 14:13:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5735 |
|
5736 * Makefile.in (install-inc): Try harder to create the link from |
|
5737 include/octave to include/octave-VERSION. |
|
5738 |
2524
|
5739 Sun Nov 17 14:14:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5740 |
2527
|
5741 * Makefile.in (parse.cc): Expect 13 shift/reduce conflicts. |
2526
|
5742 |
2525
|
5743 * parse.y (set_stmt_print_flag): New function. |
|
5744 (sep_type): New member for bison %union declaration. |
|
5745 Simplify rules for statement lists keeping track of the type of |
|
5746 the first separator in the values associated with the |
|
5747 nonterminals for the separators. |
|
5748 |
2524
|
5749 * lex.l (handle_identifier): Set lexer_flags.doing_set if the |
|
5750 token is "gset", not "set". |
|
5751 |
|
5752 Sat Nov 16 21:41:26 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5753 |
|
5754 * Makefile.in (parse.cc, lex.cc): Add special rules for these files. |
|
5755 Delete pattern rules for .y and .l files. |
|
5756 |
2522
|
5757 Fri Nov 15 13:48:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5758 |
2523
|
5759 * pt-plot.cc: Put semicolons at the ends of all plot commands. |
|
5760 |
2522
|
5761 * defaults.cc (subst_octave_home): Start subsequent searchs from |
|
5762 the end of the replaced text. |
|
5763 |
|
5764 * pr-output.cc (pr_any_float): Kluge for SCO systems. |
|
5765 |
|
5766 * pr-output.cc (pr_any_float, pr_complex): Don't declare inline. |
|
5767 |
|
5768 * mappers.cc: Include lo-ieee.h, for isinf and isnan on SCO |
|
5769 systems. |
|
5770 |
2512
|
5771 Thu Nov 14 00:06:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5772 |
2520
|
5773 * pt-plot.cc (Fgset, Fgshow): New commands. |
|
5774 (Fshow): Print warning and call gshow. |
|
5775 (Fset): Print warning and call gset. |
|
5776 |
2517
|
5777 * variables.cc (parse_fcn_file): Add unwind-protect for file |
|
5778 pointer, so the file is always closed. |
|
5779 (get_help_from_file): Likewise. |
|
5780 * toplev.cc (parse_and_execute): Likewise. |
|
5781 |
2516
|
5782 * Makefile.in (install-oct): Depend on mk-oct-links. |
|
5783 (mk-oct-links): New target. |
|
5784 |
2512
|
5785 * Version 1.92. |
|
5786 |
2508
|
5787 Wed Nov 13 11:13:22 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5788 |
2512
|
5789 * sighandlers.cc (sys_siglist): [__EMX__]: Add definitions. |
|
5790 |
|
5791 * octave.cc (execute_startup_files): Allow init file name ot be |
|
5792 specified by an environment variable. |
|
5793 |
|
5794 * dirfns.cc (make_absolute): [__EMX__]: Path is already absolute |
|
5795 if it begins with any character followed by a colon. |
|
5796 |
2511
|
5797 * load-save.cc (read_mat_ascii_matrix, get_lines_and_columns, |
|
5798 get_complete_line): New functions, for reading headless text files. |
|
5799 (load_save_format): Add LS_MAT_ASCII, for headless text files. |
|
5800 (do_load): Handle LS_MAT_ASCII files. |
|
5801 Thanks to Mel Melchner <mjm@research.att.com> for initial version |
|
5802 of this code. |
|
5803 |
2508
|
5804 * sysdep.cc: Conditionally include ieeefp.h. |
|
5805 (BSD_init, SCO_init): New functions. |
|
5806 (sysdep_init): Conditionally call them here. |
|
5807 |
2499
|
5808 Tue Nov 12 00:14:56 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5809 |
2508
|
5810 * pt-plot.cc (open_plot_stream): Don't block SIGCHLD. |
|
5811 |
2499
|
5812 * load-save.cc (read_binary_data): When reading string arrays, be |
|
5813 sure to create an octave_char_matrix_str object, not just an |
|
5814 octave_char_matrix object. |
|
5815 (read_ascii_data): Likewise. |
|
5816 |
2497
|
5817 Mon Nov 11 22:52:58 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5818 |
|
5819 * load-save.cc (read_binary_data): Don't forget teminating NUL for |
|
5820 string that we plan to insert. |
|
5821 (read_ascii_data): Likewise. |
|
5822 |
2495
|
5823 Sun Nov 10 16:58:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5824 |
2496
|
5825 * dirfns.cc (Ffnmatch): New function. |
|
5826 |
2495
|
5827 * octave.cc (intern_argv): Use new string_vector constructor. |
|
5828 |
|
5829 * ov-str-mat.cc (octave_char_matrix_str::all_strings): Have |
|
5830 charMatrix::row_as_string() strip trailing whitespace. |
|
5831 |
|
5832 * dirfns.cc (Fglob): new function. |
|
5833 |
|
5834 * sysdep.cc (oct_tilde_expand): Provide version that works on |
|
5835 string vectors too. |
|
5836 (Ftilde_expand): Work on string vector args. |
|
5837 |
|
5838 * load-save.cc (save_binary_data): Call char_matrix_value() to |
|
5839 extract charMatrix from octave_value object, not all_strings(). |
|
5840 (save_ascii_data): Likewise. |
|
5841 * pt-mat.cc (tree_matrix::eval): Likewise. |
|
5842 |
|
5843 * ov.h (octave_value::all_strings): Return string_vector, not |
|
5844 charMatrix. |
|
5845 * ov-base.cc (octave_base_value::all_strings): Likewise. |
|
5846 * ov-str-mat.h, ov-str-mat.cc (octave_char_matrix_str::all_strings): |
|
5847 Likewise. |
|
5848 |
2487
|
5849 Fri Nov 8 09:54:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5850 |
2492
|
5851 * defaults.cc, dynamic-ld.cc, fn-cache.cc, help.cc, oct-hist.cc, |
|
5852 octave.cc, pager.cc, pt-fcn.cc, toplev.cc, utils.cc, variables.cc, |
|
5853 lex.l: Change #include "" to #include <> for defaults.h, |
|
5854 oct-conf.h, oct-gperf.h, y.tab.h, and version.h, to avoid getting |
|
5855 them from $srcdir when we really want the version from the build |
|
5856 directory. (Maybe this should be done for all the include files, |
|
5857 not just those that are auto-generated? Hmm.) |
|
5858 |
2488
|
5859 * defaults.h.in (CXXLIB_LIST, CXXLIB_PATH, FLIB_LIST, FLIB_PATH): |
|
5860 Delete. |
|
5861 |
2487
|
5862 * Makefile.in (install-oct): Use $(INSTALL_PROGRAM) for .oct files. |
|
5863 |
2477
|
5864 Thu Nov 7 07:59:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5865 |
2487
|
5866 * variables.cc (gobble_leading_white_space): New arg, update_pos. |
|
5867 * (is_function_file): Don't update file position information here. |
|
5868 |
2482
|
5869 * Version 1.91. |
|
5870 |
2479
|
5871 * pt-fvc.cc (tree_indirect_ref::reference): If the lhs object is |
|
5872 not a map, convert it to one. |
|
5873 |
|
5874 * ov-typeinfo.h (init_tab_sz): New static member. |
|
5875 |
2477
|
5876 * ov-struct.cc, ov-struct.h: Add hooks for custom memory management. |
|
5877 * ov-scalar.cc, ov-scalar.h: Likewise. |
|
5878 * ov-re-mat.cc, ov-re-mat.h: Likewise. |
|
5879 * ov-range.cc, ov-range.h: Likewise. |
|
5880 * ov-cx-mat.cc, ov-cx-mat.h: Likewise. |
|
5881 * ov-complex.cc, ov-complex.h: Likewise. |
|
5882 * ov-ch-mat.cc, ov-ch-mat.h: Likewise. |
|
5883 |
2474
|
5884 Wed Nov 6 12:32:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5885 |
2482
|
5886 * pager.cc (do_sync): Don't call clear_external_pager() here. |
2476
|
5887 |
2475
|
5888 * pt-const.h (tree_constant::allocator) New static member. |
|
5889 (tree_constant::operator new, tree_constant::operator delete): |
|
5890 Implement with custom allocator. |
|
5891 |
|
5892 * syscalls.cc (Fgetgid, Fgetegid): New functions. |
|
5893 |
|
5894 * sighandlers.cc (sigchld_handler): If necessary, reinstall |
|
5895 handler after call to waitpid(). |
|
5896 |
|
5897 * pager.cc (pager_death_handler): Don't use warning() to print |
|
5898 message. |
|
5899 |
|
5900 * getgrent.cc: New file. |
|
5901 * Makefile.in (DLD_SRC): Add it. |
|
5902 |
|
5903 * ov.cc (octave_value::print_with_name): Call is_map() instead of |
|
5904 print_as_structure(). |
|
5905 * ov-struct.cc (octave_struct::print): Likewise. |
|
5906 |
|
5907 * ov.h, ov.cc, pt-const.h: Delete force_numeric(), make_numeric(), |
|
5908 convert_to_matrix_type(), print_as_structure() member functions. |
|
5909 |
2474
|
5910 * variables.cc (is_function_file): Call gobble_leading_whitespace |
|
5911 here to strip all leading whitespace and comments. |
|
5912 (parse_fcn_file): If reading a function file, call |
|
5913 gobble_leading_whitespace again after resetting parser state to |
|
5914 grab help text. |
|
5915 |
2469
|
5916 Tue Nov 5 13:00:35 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5917 |
2472
|
5918 * syscalls.cc (Fgeteuid, Fgetuid): New functions. |
|
5919 |
|
5920 * getpwent.cc: Use gripe_not_supported from gripes.cc, instead of |
|
5921 local gripe_not_implemented function. |
|
5922 |
2470
|
5923 * input.cc, sysdep.cc, variables.cc: Only include readline.h and |
|
5924 history.h if USE_READLINE is defined. |
|
5925 |
|
5926 * help.cc: Make it compile without warnings even if USE_GNU_INFO |
|
5927 is not defined. |
|
5928 |
2469
|
5929 * sighandlers.h (octave_child_list): Don't define |
|
5930 HAVE_POSIX_SIGNALS HERE. |
|
5931 |
|
5932 * sighandlers.cc (SIGHANDLER_RETURN): New macro. |
|
5933 (generic_sig_handler, sigchld_handler, sigfpe_handler, |
|
5934 sigint_handler, sigpipe_handler): Use it. |
|
5935 (sigchld_handler, sigfpe_handler, sigint_handler, sigpipe_handler): |
|
5936 Only reinstall signal handler if MUST_REINSTALL_SIGHANDLER is defined. |
|
5937 |
2463
|
5938 Sun Nov 3 00:45:30 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5939 |
2466
|
5940 * pt-const.cc (tree_constant::print): Just call val.print(). |
|
5941 * ov-base.cc, ov-ch-mat.cc, ov-colon.cc, ov-complex.cc, |
|
5942 ov-cx-mat.cc, ov-range.cc, ov-re-mat.cc, ov-scalar.cc, |
|
5943 ov-str-mat.cc, ov-struct.cc ov-va-args.cc, ov.cc (print): |
|
5944 Handle pr_as_read_syntax arg. |
|
5945 |
|
5946 * defaults.cc (subst_octave_home): Search for prefix repeatedly in |
|
5947 retval, not s. |
|
5948 |
|
5949 * gripes.h: Make declaration of gripes_not_supported match |
|
5950 definition. |
|
5951 |
2465
|
5952 * mk-oct-links.in: In sed command, match "DEFUN_DLD *( *", not |
|
5953 "DEFUN_DLD_BUILTIN *( *". |
|
5954 |
|
5955 * chol.cc, colloc.cc, dassl.cc, det.cc, eig.cc, expm.cc, fft.cc, |
|
5956 fft2.cc, filter.cc, find.cc, fsolve.cc, fsqp.cc, getpwent.cc, |
|
5957 getrusage.cc, givens.cc, hess.cc, ifft.cc, ifft2.cc, inv.cc, |
|
5958 log.cc, lpsolve.cc, lsode.cc, lu.cc, minmax.cc, npsol.cc, pinv.cc, |
|
5959 qpsol.cc, qr.cc, quad.cc, qzval.cc, rand.cc, schur.cc, sort.cc, |
|
5960 svd.cc, syl.cc, time.cc: Change all uses of DEFUN_DLD_BUILTIN to |
|
5961 be just DEFUN_DLD. |
|
5962 |
|
5963 * defun-dld.h: Eliminate DEFUN_DLD_BUILTIN. |
|
5964 |
2464
|
5965 * syswait.h: Use #ifdef HAVE_SYS_WAIT_H, not #if HAVE_SYS_WAIT_H |
|
5966 to decide whether to include sys/wait.h. |
|
5967 |
|
5968 * pt-exp-base.h (tree_expression): Declare oper() here as a |
|
5969 virtual member function. |
|
5970 |
2463
|
5971 * pt-pr-code.cc (tree_print_code::visit_constant): Check for |
|
5972 string before checking for char_matrix. |
|
5973 |
|
5974 * ov-ch-mat.cc (octave_char_matrix::print): Supply correct number |
|
5975 of args to octave_print_internal(). |
|
5976 |
2457
|
5977 Sat Nov 2 20:44:55 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5978 |
2458
|
5979 * file-io.cc (Ftmpnam): Rename from Foctave_temp_file_name. |
|
5980 |
2457
|
5981 * Makefile.in (DLD_SRC): Move time.cc and getrusage.cc here from |
|
5982 SOURCES. Add getpwent.cc. |
|
5983 |
|
5984 * getrusage.cc: Rename from resource.cc. Make getrusage a |
|
5985 loadable function. |
|
5986 |
|
5987 * time.cc: Rename from timefns.cc. Make time functions loadable. |
|
5988 |
|
5989 * getpwent.cc: New file. |
|
5990 |
2439
|
5991 Wed Oct 30 01:06:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5992 |
2452
|
5993 * Version 1.90. |
|
5994 |
|
5995 * Makefile.in (DISTFILES): Add ChangeLog. |
|
5996 |
2449
|
5997 * ov-range.cc (octave_range::convert_to_str): New function. |
|
5998 |
|
5999 * ov-str-mat.h (octave_char_matrix_str::char_matrix_value): |
|
6000 Delete function. Already handled by octave_char_matrix class. |
|
6001 |
|
6002 * ov-ch-mat.h (octave_char_matrix::convert_to_str): New function. |
|
6003 |
2448
|
6004 * pager.cc (Fmore): Set page_screen_output to 1.0 or 0.0, not |
|
6005 "true" or "false". |
|
6006 |
2447
|
6007 * ov-ch-mat.cc, ov-struct.cc, ov-struct.h, pr-output.cc, |
|
6008 pt-cmd.cc, pt-const.cc, pt-const.h, pt-fcn.cc, pt-fvc-base.cc, |
|
6009 pt-fvc-base.h, pt-fvc.cc, pt-fvc.h, rand.cc, sighandlers.cc, |
|
6010 variables.cc, variables.h: Delete unused code. |
|
6011 |
2445
|
6012 * octave.cc: Only include pwd.h if HAVE_PWD_H. |
|
6013 |
|
6014 * oct-strstrm.h: Include <string>, not <string.h>. |
|
6015 |
2442
|
6016 * defaults.cc, dirfns.cc, file-io.cc, help.cc, input.cc, |
|
6017 oct-hist.cc, oct-procbuf.cc, oct-procbuf.h, octave.cc, pager.h, |
|
6018 procstream.h, pt-misc.cc, pt-plot.cc, sighandlers.cc, strftime.c, |
|
6019 syscalls.cc, sysdep.cc, syswait.h, toplev.cc, utils.cc, |
|
6020 variables.cc: Only include sys/types.h if HAVE_SYS_TYPES_H. |
|
6021 |
2440
|
6022 * error.h (panic): Use GCC_ATTR_NORETURN macro, not NORETURN. |
|
6023 * toplev.h (clean_up_and_exit): Likewise. |
|
6024 * utils.h (jump_to_top_level): Likewise. |
|
6025 |
2439
|
6026 * derfaults.h.in, defaults.cc (local_arch_lib_dir): New variable. |
|
6027 * defaults.cc (set_default_local_arch_lib_dir): New function. |
|
6028 (install_defaults): Call it. |
|
6029 (exec_path): Use Vlocal_arch_lib_dir here. |
|
6030 * toplev.cc (octave_config_info): Add localarchlibdir to structure. |
|
6031 |
2436
|
6032 Tue Oct 29 15:54:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6033 |
2437
|
6034 * Makefile.in (install-oct): Don't do anything if $(OCT_FILES) is |
|
6035 empty. |
|
6036 |
2436
|
6037 * ov-range.cc (octave_range::index): New Function. |
|
6038 (octave_range::all, octave_range::any, octave_range::is_true): |
|
6039 Make these functions work. |
|
6040 |
|
6041 * ov.cc (octave_value::try_assignment_with_conversion): Remove |
|
6042 left over debugging print statements. |
|
6043 |
|
6044 Mon Oct 28 10:49:03 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6045 |
|
6046 * strftime.c: Add missing #endif for previous change. |
|
6047 |
2435
|
6048 Sun Oct 27 14:06:44 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6049 |
|
6050 * oct-hist.cc (do_history): Rewite option parsing to avoid |
|
6051 (probably bogus) errors from g++ on cygwin32 system. |
|
6052 |
|
6053 * strftime.c: Use autoconf macros TIME_WITH_SYS_TIME and |
|
6054 HAVE_SYS_TIME_H to decide which time.h files to include. |
|
6055 |
|
6056 * oct-stream.h, oct-stream.cc (octave_stream::error, |
|
6057 octave_base_stream::error): Rename errno => err_num. |
|
6058 |
2432
|
6059 Sat Oct 26 10:40:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6060 |
2434
|
6061 * oct-hist.cc (do_history): Move declaration of file inside |
|
6062 conditional. |
|
6063 |
2432
|
6064 * defun.h (DEFVAR_INT): Set eternal flag with (svc_fcn != 0) |
|
6065 instead of (sv_fcn ? 1 : 0) |
|
6066 |
2427
|
6067 Fri Oct 25 01:10:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6068 |
2431
|
6069 * ov-ch-mat.h (octave_char_matrix::any): Return 0.0 instead of false. |
|
6070 (octave_char_matrix::all): Likewise. |
|
6071 |
|
6072 * input.cc (Fecho): When binding value of echo_executing_commands, |
|
6073 cast ECHO_* to double. |
|
6074 |
|
6075 * sighandlers.cc (octave_child_list::do_remove): Delete unused |
|
6076 variable `enlarge'. |
|
6077 |
|
6078 * pt-const.h (tree_constant::tree_constant (const tree_constant&)): |
|
6079 Don't pass arg to tree_fvc constructor. |
|
6080 |
2427
|
6081 * resource.cc (getrusage): [HAVE_GETRUSAGE && RUSAGE_TIMES_ONLY]: |
|
6082 Only fill in time values. |
|
6083 |
|
6084 Thu Oct 24 20:37:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6085 |
|
6086 * parse.y: Comment out the %expect declaration so byacc can |
|
6087 compile this file. |
|
6088 (if_cmd_list): Add missing semicolon. |
|
6089 Include <cstdlib> for getenv if using byacc. |
|
6090 |
|
6091 * ov.h: Move typedefs outside of octave_value class scope to avoid |
|
6092 problem with cygwin32 beta16 compiler. |
|
6093 |
2421
|
6094 Fri Oct 18 13:44:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6095 |
2423
|
6096 * ov.h (octave_value::index): Undo previous change. |
|
6097 * ov.cc (octave_value constructors): Call maybe_mutate() in most |
|
6098 cases. |
|
6099 |
|
6100 * ov-complex.cc (octave_complex::index): Avoid implicit type |
|
6101 conversion back to scalar type. |
|
6102 * ov-scalar.cc (octave_scalar::index): Likewise. |
|
6103 |
2421
|
6104 * ov.h (octave_value::index): Call maybe_mutate() on retval before |
|
6105 returning it. |
|
6106 |
2418
|
6107 Wed Oct 16 12:00:11 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6108 |
2420
|
6109 * ov.h (octave_value::struct_elt_val): New optional arg, silent. |
|
6110 * ov-base.h, ov-base.cc, ov-struct.h, ov-struct.cc: Likewise, but |
|
6111 for the derived classes the arg is required. |
|
6112 |
|
6113 * data.cc (Fstruct_contains): Require arguments to be struct and |
|
6114 string, respectively. Call octave_value::struct_elt_val with |
|
6115 silent flag set. |
|
6116 |
2419
|
6117 * pt-mat.cc (tm_row_const::tm_row_const_rep::eval_error, |
|
6118 tm_row_const::tm_row_const_rep::eval_warning): New functions. |
|
6119 (tm_row_const::tm_row_const (const tree_matrix_row&): Use them to |
|
6120 give better error messages. |
|
6121 |
2418
|
6122 * pt-fvc.cc (tree_identifier::eval): Avoid dereferencing null |
|
6123 object_to_eval. |
|
6124 |
2412
|
6125 Tue Oct 15 11:35:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6126 |
|
6127 * op-cs-cm.cc, op-cs-cs.cc, op-cs-m.cc, op-cs-s.cc |
|
6128 (complex_matrix_conv): New functions. |
|
6129 Install preferred assignment conversion and widening ops. |
|
6130 |
|
6131 * op-s-cm.cc, op-s-cs.cc (complex_matrix_conv): New functions. |
|
6132 Install preferred assignment conversion and widening ops. |
|
6133 |
|
6134 * op-s-m.cc, op-s-s.cc (matrix_conv): New functions. |
|
6135 Install preferred assignment conversion and widening ops. |
|
6136 |
|
6137 * ov.cc (octave_value::try_assignment_with_conversion, |
|
6138 octave_value::convert_and_assign, octave_value::try_assignment): |
|
6139 New functions. |
|
6140 (octave_value::assign): Use them to implement twisted logic for |
|
6141 type conversions in assigments. |
|
6142 |
|
6143 * pt-const.h (tree_constant::maybe_mutate): New function. |
|
6144 * ov.h (octave_value::maybe_mutate): New function. |
|
6145 (octave_value::try_narrowing_conversion): New function. |
|
6146 Use just one typedef for widening_op_fcn and numeric_conv_fcn. |
|
6147 Change all uses. |
|
6148 * ov-base.h, ov-complex.h, ov-complex.cc, ov-cx-mat.h, |
|
6149 ov-cx-mat.cc, ov-range.h, ov-range.cc, ov-re-mat.h, ov-re-mat.cc, |
|
6150 Provide derived class versions of try try_narrowing_conversion(). |
|
6151 |
|
6152 * pr-output.cc (octave_print_internal): Don't bother handing off |
|
6153 to scalar/real versions, even when it would seem appropriate. |
|
6154 |
|
6155 * symtab.cc (symbol_def::define (tree_constant *)): Call |
|
6156 maybe_mutate on constants here. |
|
6157 |
2405
|
6158 Mon Oct 14 11:05:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6159 |
2407
|
6160 * pt-fvc.cc (tree_identifier::eval): If retval is undefined and |
|
6161 the object to eval is a constant, print error message. |
2406
|
6162 |
2405
|
6163 * Makefile (distclean): Remove *.oct too. |
|
6164 |
|
6165 * defun-int.h: Include variables.h here. |
|
6166 |
2403
|
6167 Sun Oct 13 10:52:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6168 |
2404
|
6169 * variables.cc (print_symbol_info_line): Never print negative |
|
6170 diminsions. |
|
6171 |
|
6172 * symtab.h (octave_symbol_record_info): Store const_type as string. |
|
6173 (octave_symbol_record_info::init): Delete. Fix constructors. |
|
6174 (octave_symbol_record_info::type_name): Handle const_type as string. |
|
6175 |
2403
|
6176 * octave.cc (maximum_braindamage): Replace "true" with 1.0 and |
|
6177 "false" with 0.0 in calls to bind_builtin_variable(). |
|
6178 Include sun-utils.h here. |
2404
|
6179 (intern_argv): Also bind __argv__. |
2403
|
6180 |
2391
|
6181 Sat Oct 12 13:40:21 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6182 |
2399
|
6183 * Makefile.in (distclean): Also delete mk-oct-links. |
|
6184 |
|
6185 Fri Oct 11 13:13:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6186 |
2391
|
6187 Changes for Octave's new type system: |
|
6188 |
|
6189 * arith-ops.cc: Delete. |
|
6190 * pt-const.h, pt-const.cc: Massive changes. Most functionality |
|
6191 moved to ov.h, ov.cc, and derived classes. |
|
6192 |
|
6193 * variables.h, variables.cc (octave_variable_reference): New class |
|
6194 for getting references to variables and structure elements used in |
|
6195 assignments or value contexts. |
|
6196 |
|
6197 * symtab.h, symtab.cc (symbol_record::define (const octave_value&), |
|
6198 symbol_record::variable_value, symbol_record::variable_reference): |
|
6199 New functions. |
|
6200 (symbol_record_info::type_name): Rename from type_as_string. |
|
6201 |
|
6202 * pt-fvc-base.h, pt-fvc-base.cc (tree_fvc::increment, |
|
6203 tree_fvc::decrement): New functions to replace |
|
6204 tree_fvc::bump_value. |
|
6205 #if 0 assign and lookup_map_element functions. |
|
6206 |
|
6207 * pt-mvr.cc (tree_multi_assignment_expression::eval): |
|
6208 Generated RHS value is now a tree_constant. |
|
6209 |
|
6210 * pt-exp.h, pt-exp.cc (tree_boolean_expression): New class. |
|
6211 (tree_unary_expression, tree_binary_expression, |
|
6212 tree_boolean_expression): Move codes here from tree_expression. |
|
6213 (tree_simple_assignment_expression): Cope with changes to way of |
|
6214 doing assignments. |
|
6215 |
|
6216 * pt-exp-base.h, pt-exp-base.cc (enum type): Delete codes for |
|
6217 unary and binary ops. |
|
6218 (tree_expression::expression_type): Delete. |
|
6219 (tree_expression::is_logically_true): Hand off to |
|
6220 octave_value::is_true to do real work. |
|
6221 |
|
6222 * pr-output.h, pr-output.cc (any_element_is_inf_or_nan, |
|
6223 all_elements_are_ints): Delete. Call member new functions for |
|
6224 these operations. |
|
6225 (free_format, plus_format, bank_format, hex_format, |
|
6226 compact_format, print_e, print_big_e): Use bool, not int. |
|
6227 (octave_print_internal): Hand off to scalar/real versions when |
|
6228 appropriate. |
|
6229 |
|
6230 * octave.cc (main): Call initialize_types() and install_ops(). |
|
6231 (verbose_usage): Add WWW address to output. |
|
6232 |
|
6233 * parse.y (indirect_ref): Handle by making a tree instead of a |
|
6234 list using new version of tree_indirect_ref class. |
|
6235 |
|
6236 * parse.y (make_boolean_op): New function. Use it instead of |
|
6237 make_binary_op to create trees for && and || ops. |
|
6238 (make_binary_op): Codes come from tree_binary_expression now, |
|
6239 instead of tree_expression. |
|
6240 (make_unary_op): Codes come from tree_unary_expression now, |
|
6241 instead of tree_expression. |
|
6242 (make_boolean_op): Codes come from tree_boolean_expression. |
|
6243 |
|
6244 *parse.y (tree_constant_type): Change type to tree_constant* from |
|
6245 octave_value*, and rename from octave_value_type. Change uses. |
|
6246 |
|
6247 * defun.h (DEFVAR_INT): Pass octave_value not pointer to |
|
6248 octave_value for defn when creating builtin_variable. |
|
6249 |
|
6250 * gripes.h, gripes.cc (gripe_invalid_conversion): Args are |
|
6251 strings, not char*. |
|
6252 (gripe_implicit_conversion, gripe_divide_by_zero): New extern |
|
6253 gripe functions. |
|
6254 |
|
6255 * mkbuiltins: For each file, create a separate static function to |
|
6256 install builtins, then create another single extern function to |
|
6257 call all of them. |
|
6258 |
|
6259 * pt-fcn.cc (tree_function::bind_nargin_and_nargout): |
|
6260 Just pass doubles and let symbol_record::define handle creating |
|
6261 new value. |
|
6262 |
|
6263 * pt-pr-code.cc, pt-pr-code.h (visit_constant): Renamed from |
|
6264 visit_octave_value. |
|
6265 (visit_unary_expression): Use tree_expression::is_prefix_op() |
|
6266 instead of switch on op types. |
|
6267 |
|
6268 * pt-walk.h (visit_constant): Renamed from visit_octave_value. |
|
6269 |
|
6270 * pt-misc.cc (initialize_undefined_elements): Get reference to |
|
6271 tmp, then assign. |
|
6272 * pt-cmd.cc (do_for_loop_once): Likewise, for loop identifier. |
|
6273 |
|
6274 * input.cc (generate_struct_completions, looks_like_struct): Cast |
|
6275 tmp_fvc to tree_constant*, not octave_value*. |
|
6276 (get_user_input): Call print() on retval, not eval(1). |
|
6277 |
|
6278 * help.cc (Ftype): Cast defn to tree_constant*, not octave_value*. |
|
6279 |
|
6280 * balance.cc: Fix docstring. |
|
6281 |
|
6282 * dassl.cc, fsolve.cc, load-save.cc, lsode.cc, npsol.cc, qpsol.cc, |
|
6283 quad.cc: |
|
6284 Include pt-fvc.h. |
|
6285 |
|
6286 * data.cc (Fstruct_contains): call octave_value::struct_elt_val, |
|
6287 not octave_value::lookup_map_element. |
|
6288 |
|
6289 * dirfns.cc (Fcd): Pass directory name as string directly to |
|
6290 bind_builtin_variable instead of creating new octave_value. |
|
6291 |
|
6292 * toplev.cc: Include pt-fvc.h and lo-mappers.h |
|
6293 |
|
6294 * data.cc, error.cc, file-io.cc, load-save.cc, pager.cc, |
|
6295 pt-mat.cc, pt-plot.cc, syscalls.cc, toplev.cc: |
|
6296 Include variables.h. |
|
6297 |
|
6298 * Array-tc.cc, Map-tc.cc, SLList-misc.cc SLList-tc.cc, data.cc, |
|
6299 defaults.cc, dynamic-ld.cc, error.cc, gripes.cc, lex.l, octave.cc, |
|
6300 oct-map.h, oct-map.cc, oct-obj.h, pt-cmd.cc, pt-exp.cc, pt-fcn.cc, |
|
6301 pt-fvc-base.cc, pt-mat.cc, pt-misc.cc, pt-mvr-base.cc, pt-mvr.h, |
|
6302 resource.cc, strfns.cc, sysdep.cc, timefns.cc, toplev.cc: |
|
6303 Include ov.h instead of pt-const.h. |
|
6304 |
|
6305 * xpow.cc (any_element_is_negative): Delete. |
|
6306 (xpow and elem_xpow functions): Check conformance here. |
|
6307 |
|
6308 * xdiv.cc (mx_leftdiv_conform, mx_div_conform): |
|
6309 Now template-based, taking Matrices instead of dimensions as args. |
|
6310 Change all callers. |
|
6311 |
|
6312 * op-cm-cm.cc, op-cm-cm.h, op-cm-cs.cc, op-cm-cs.h, op-cm-m.cc, |
|
6313 op-cm-m.h, op-cm-s.cc, op-cm-s.h, op-cs-cm.cc, op-cs-cm.h, |
|
6314 op-cs-cs.cc, op-cs-cs.h, op-cs-m.cc, op-cs-m.h, op-cs-s.cc, |
|
6315 op-cs-s.h, op-m-cm.cc, op-m-cm.h, op-m-cs.cc, op-m-cs.h, op-m-m.cc, |
|
6316 op-m-m.h, op-m-s.cc, op-m-s.h, op-s-cm.cc, op-s-cm.h, op-s-cs.cc, |
|
6317 op-s-cs.h, op-s-m.cc, op-s-m.h, op-s-s.cc, op-s-s.h, |
|
6318 op-str-str.cc, op-str-str.h, ops.cc, ops.h, ov-base.cc, ov-base.h, |
|
6319 ov-ch-mat.cc, ov-ch-mat.h, ov-colon.cc, ov-colon.h, ov-complex.cc, |
|
6320 ov-complex.h, ov-cx-mat.cc, ov-cx-mat.h, ov-range.cc, ov-range.h, |
|
6321 ov-re-mat.cc, ov-re-mat.h, ov-scalar.cc, ov-scalar.h, ov-str-mat.cc, |
|
6322 ov-str-mat.h, ov-struct.cc, ov-struct.h, ov-typeinfo.cc, |
|
6323 ov-typeinfo.h, ov-va-args.cc, ov-va-args.h, ov.cc, ov.h: |
|
6324 New files for Octave's new type system. |
|
6325 * Makefile.in: Add them to the appropriate lists. |
|
6326 |
|
6327 Sat Sep 14 21:58:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6328 |
|
6329 * mkbuiltins: Use .df instead of .def. |
|
6330 Write one function for each .df file, then call them |
|
6331 all in install_builtin_functions(). |
|
6332 * Makefile.in: Handle .df instead of .def. |
|
6333 |
|
6334 * balance.cc (balance): Fix typo in doc string. |
|
6335 |
|
6336 Wed Aug 28 21:01:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6337 |
|
6338 * octave.cc (verbose_usage): Include WWW address and bug-octave |
|
6339 mailing list address. |
|
6340 |
2354
|
6341 Tue Aug 20 17:41:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6342 |
2358
|
6343 * Makefile.in: Only define pattern rules for making .oct files if |
|
6344 OCTAVE_LITE is true. |
|
6345 Only add pic/ to $(TI_OBJ) if $(SHARED_LIBS) is true. |
|
6346 (stamp-picdir): Only create a pic subdirectory if SHARED_LIBS or |
|
6347 OCTAVE_LITE is true AND CPICFLAG or CXXPICFLAG is not empty. |
|
6348 |
2354
|
6349 * minmax.cc (Fmin, Fmax): Deal with changes to Matrix class |
|
6350 min/max methods. |
|
6351 |
2345
|
6352 Thu Jul 25 01:42:38 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6353 |
2348
|
6354 * input.cc (generate_possible_completions): Force the names to be |
|
6355 unique. |
|
6356 |
2345
|
6357 * load-save.cc (read_mat_binary_data): Expect to read terminating |
|
6358 NUL character in the variable name. |
|
6359 (save_mat_binary_data): Likewise, save it here. |
|
6360 |
2341
|
6361 Wed Jul 24 05:08:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6362 |
2343
|
6363 * lsode.cc (Flsode): Don't set the return value if an error |
|
6364 occurred during integration. |
2344
|
6365 * dassl.cc (Fdassl): Likewise. |
2343
|
6366 |
2341
|
6367 * file-io.cc (symbols_of_file_io): Redefine values of SEEK_SET, |
|
6368 SEEK_CUR, and SEEK_END for Matlab compatibility. |
|
6369 * oct-stream.cc (seek): Check for compatible values of ORIGIN arg. |
|
6370 Also handle "bof", "cof", and "eof". |
|
6371 |
2338
|
6372 Fri Jul 19 15:24:36 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6373 |
|
6374 * pt-const.cc: When creating octave_value_reps from ComplexMatrix |
|
6375 values, check to see if all the elements are actually real. |
|
6376 |
2330
|
6377 Tue Jul 16 10:53:42 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6378 |
2341
|
6379 * input.cc (decode_prompt_string): Swap meanings of \h and \H. |
2330
|
6380 |
|
6381 Mon Jul 15 16:01:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6382 |
|
6383 * toplev.cc (run_command_and_return_output): Renamed from do_system. |
|
6384 (Fsystem): Make `system ("emacs")' work as one would expect. |
|
6385 |
|
6386 Sun Jul 14 17:34:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6387 |
|
6388 * file-io.cc (Ffopen, Ffread, Ffwrite): Update doc strings, |
|
6389 correctly handle default architecture and precision args. |
|
6390 |
|
6391 * load-save.cc (mopt_digit_to_float_format): Rename from |
|
6392 get_floating_point_format. |
|
6393 (float_format_to_mopt_digit): New function. |
|
6394 |
|
6395 * oct-stream.cc (octave_base_stream::read, octave_base_stream::write): |
|
6396 Simplify by calling Matrix::read and Matrix::write to do real work |
|
6397 of reading, writing, and format conversion. |
|
6398 |
|
6399 * oct-stream.h (octave_base_stream): Move data_type enum to |
|
6400 liboctave/data-conv.h. Use float_format from |
|
6401 liboctave/mach-info.h instead of arch_type enum. |
|
6402 |
|
6403 * sysdep.h, sysdep.cc (octave_words_big_endian, ten_little_endians): |
|
6404 Delete. Now part of oct_mach_info class in liboctave. |
|
6405 |
|
6406 Tue Jul 9 11:18:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6407 |
|
6408 * arith-ops.cc, balance.cc, dassl.cc, data.cc, filter.cc, find.cc, |
|
6409 fsolve.cc, load-save.cc, log.cc, lsode.cc, minmax.cc, npsol.cc, |
|
6410 oct-obj.cc, oct-stream.cc, pr-output.cc, pt-cmd.cc, pt-const.cc, |
|
6411 pt-fvc.cc, pt-plot.cc, quad.cc, rand.cc, sighandlers.cc, sort.cc, |
|
6412 syscalls.cc, unwind-prot.cc, xdiv.cc, xpow.cc: |
|
6413 When indexing arrays, use operator() instead of elem() so that |
|
6414 bounds checking can be done consistently. |
|
6415 |
|
6416 Mon Jun 24 02:13:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6417 |
|
6418 * Makefile.in (install-oct): Use INSTALL_PROGRAM, instead of |
|
6419 INSTALL_DATA for installing shared libraries. |
|
6420 |
|
6421 * lex.l (grab_help_text): Ignore all initial comment characters, |
|
6422 not just the first. |
|
6423 * variables.cc (gobble_leading_white_space): Likewise. |
|
6424 |
|
6425 Sat Jun 22 22:43:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6426 |
|
6427 * input.h, input.cc (octave_completion_matches_called): New varaible. |
|
6428 (Fcompletion_matches): Set it to true on a successful call. |
|
6429 * toplev.cc (main_loop): If octave_completion_matches_called is |
|
6430 true, don't increment current_command_number. |
|
6431 |
|
6432 Thu Jun 13 03:52:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6433 |
|
6434 * variables.cc (is_mapper_function_name, |
|
6435 is_builtin_function_name): New functions. |
|
6436 (Fdocument): Use them. |
|
6437 Define as regular function, not a text style function. |
|
6438 |
|
6439 Thu Jun 6 00:09:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6440 |
|
6441 * pt-plot.cc: Handle new built-in variable `gnuplot_has_frames'. |
|
6442 |
|
6443 Wed Jun 5 14:45:04 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6444 |
|
6445 * input.cc (decode_prompt_string): \h now means the whole host |
|
6446 name and \H is the host name up to the first `.'. |
|
6447 |
|
6448 Thu May 30 23:41:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6449 |
|
6450 * fn-cache.cc (octave_fcn_file_name_cache::do_list): Always |
|
6451 recompute the lists of function files instead of trying to cache |
|
6452 them. |
|
6453 |
|
6454 Tue May 28 12:05:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6455 |
|
6456 * utils.cc (warn_old_style_preference): New function. |
|
6457 (check_preference): Use it. |
|
6458 |
|
6459 * fn-cache.h: Include <ctime> here. |
|
6460 |
|
6461 Fri May 24 00:57:14 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6462 |
|
6463 * input.cc (completion_matches): Don't return empty string_vectors. |
|
6464 |
|
6465 * octave.cc (long_opts): Add braindead. |
|
6466 |
|
6467 Thu May 23 01:49:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6468 |
|
6469 * input.cc (gnu_readline): New optional arg, force_readline. |
|
6470 (get_user_input): Use it. |
|
6471 |
|
6472 * pt-const.cc (OCT_VAL_REP::assign): If converting the rhs to a |
|
6473 numeric value, convert a copy, not the actual object. |
|
6474 (OCT_VAL_REP::do_index): Prevent s([]) from resulting in a string |
|
6475 with zero rows. |
|
6476 |
|
6477 * mappers.cc: Handle toascii here. |
|
6478 * strfns.cc: Not here. |
|
6479 |
|
6480 * mappers.cc: Handle tolower and toupper here. |
|
6481 * mappers.h: Rename can_return_complex_for_real to flag and |
|
6482 overload meaning for ch_mapper. |
|
6483 * pt-fvc.cc (apply_mapper_fcn): Handle overloaded meaning. |
|
6484 |
|
6485 * syscalls.cc (stat): Return 3 values instead of just 1. |
|
6486 (lstat): Likewise. |
|
6487 |
|
6488 Wed May 22 02:34:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6489 |
|
6490 * pt-const.cc (OCT_VAL_REP::make_numeric): For string to number |
|
6491 conversions, correctly set type tag before calling force_numeric. |
|
6492 (do_binary_op): Force string to number conversion if both args are |
|
6493 strings and we are doing some sort of comparison operation. |
|
6494 |
|
6495 * Makefile.in (stamp-tinst, stamp-interp): Use SH_TERMLIBS and |
|
6496 SH_LIBS instead of TERMLIBS and LIBS. |
|
6497 |
|
6498 * pt-const.cc (do_unary_op): Add special case to handle |
|
6499 transposing strings. |
|
6500 |
|
6501 * pt-mat.cc (Vstring_fill_char): New variable. |
|
6502 (symbols_of_pt_mat): DEFVAR it. |
|
6503 |
|
6504 * input.cc (generate_struct_completions, |
|
6505 generate_possible_completions): Return string_vector, not char **. |
|
6506 Change all callers. |
|
6507 |
|
6508 * pt-const.cc (lookup_map_element): Use substr() correctly. |
|
6509 |
|
6510 Tue May 21 21:37:17 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6511 |
|
6512 * oct.h: New file. |
|
6513 * Makefile.in (INCLUDES): Add it to the list. |
|
6514 |
|
6515 * octave.cc: New args --no-site-file and --no-init-file. Delete |
|
6516 --ignore-init-file. The flag --norc (-f) implies both |
|
6517 --no-site-file and --no-init-file. |
|
6518 |
|
6519 Fri May 17 01:54:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6520 |
|
6521 * input.cc (Fcompletion_matches): New function. |
|
6522 |
|
6523 * utils.cc (get_fcn_file_names): Delete. |
|
6524 * help.cc (simple_help): Use new file name cache instead of |
|
6525 calling get_fcn_file_names. |
|
6526 * variables.cc (make_name_list): Likewise. |
|
6527 |
|
6528 * fn-cache.h, fn-cache.cc, Map-fnc.cc: New files. |
|
6529 * Makefile.in: Add them to the lists. |
|
6530 |
|
6531 * Makefile.in (uninstall): Install in octincludedir, not includedir. |
|
6532 |
|
6533 * pt-plot.h: Include <csignal> here. |
|
6534 |
|
6535 Thu May 16 10:52:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6536 |
|
6537 * oct-stream.cc (octave_stream::oscanf, octave_base_stream::oscanf, |
|
6538 octave_base_stream::do_oscanf): New functions for backward |
|
6539 compatibility with older versions of Octave. |
|
6540 (scanf_format_elt, scanf_format_list): Keep track of width specifier. |
|
6541 * file-io.cc (Fscanf): New function. |
|
6542 (Fscanf, Ffscanf, Fsscanf): Handle compatibility arg. |
|
6543 |
|
6544 Wed May 15 01:00:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6545 |
|
6546 * oct-stream.cc (do_scanf): If doing '%c' conversion, unset |
|
6547 ios::skipws on input stream. |
|
6548 |
|
6549 * sighandlers.h, sighandlers.cc (octave_child, octave_child_list): |
|
6550 New classes for keeping track of the child processes we create. |
|
6551 (sigchld_handler): Check in octave_child_list to see if there is |
|
6552 anything we can do for the child that died. |
|
6553 * pager.cc: Register child pager process. |
|
6554 * pt-plot.cc: Likewise, for the plotter. |
|
6555 * Array-oc.cc: New file |
|
6556 * Makefile.in (TI_SRC): Add it to the list. |
|
6557 |
|
6558 * pager.cc (do_sync): Don't check error_state. |
|
6559 (flushing_output_to_pager): New static variable. |
|
6560 (flush_octave_stdout): Use it to avoid doing anything if already |
|
6561 flushing output. |
|
6562 |
|
6563 * sighandlers.cc (sigchld_handler): Call warning instead of |
|
6564 writing directly to cerr. |
|
6565 (sigpipe_handler): Call warning instead of message. |
|
6566 |
|
6567 * octave.cc (main): Call install_signal_handlers, |
|
6568 initialize_file_io, initialize_symbol_tables, and install_builtins |
|
6569 before parsing command line options. |
|
6570 |
|
6571 * user-prefs.h, user-prefs.cc: Delete. |
|
6572 |
|
6573 * utils.cc (check_preference): Move here. |
|
6574 * user-prefs.cc: From here. |
|
6575 |
|
6576 * defaults.cc: New file. Move initialization stuff from |
|
6577 variables.cc. Move DEFVARS for EDITOR, EXEC_PATH, LOADPATH, |
|
6578 IMAGEPATH, and OCTAVE_VERSION here. |
|
6579 |
|
6580 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6581 INFO_FILE and INFO_PROGRAM. |
|
6582 * help.cc: Move all of that here. |
|
6583 (symbols_of_help): Add DEFVARS for INFO_FILE and INFO_PROGRAM. |
|
6584 |
|
6585 Tue May 14 00:23:06 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6586 |
|
6587 * pager.cc (do_sync): Be more defensive about sending stuff to the |
|
6588 external pager. |
|
6589 * sighandlers.cc (sigchld_handler): For now, only wait for |
|
6590 octave_pager_pid. Don't call error(). Do set octave_pager_pid to |
|
6591 -1 if the pager process no longer exists. |
|
6592 |
|
6593 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6594 PWD. |
|
6595 * dirfns.cc: Move all of that here. |
|
6596 (symbols_of_dirfns): New function. |
|
6597 * variables.cc (install_builtin_variables): Call it. |
|
6598 |
|
6599 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6600 default_save_format and save_precision. |
|
6601 * load-save.cc: Move all of that here. |
|
6602 (symbols_of_load_save): New function. |
|
6603 * variables.cc (install_builtin_variables): Call it. |
|
6604 |
|
6605 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6606 warn_divide_by_zero. |
|
6607 * arith-ops.cc: Move all of that here. |
|
6608 (symbols_of_arith_ops): New function. |
|
6609 * variables.cc (install_builtin_variables): Call it. |
|
6610 |
|
6611 * mappers.cc: Add wrappers for ctype is* functions so that they |
|
6612 will work on systems that only define them as macros. |
|
6613 |
|
6614 Mon May 13 00:27:08 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6615 |
|
6616 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6617 suppress_verbose_help_message. |
|
6618 * help.cc: Move all of that here. |
|
6619 (symbols_of_help): New function. |
|
6620 * variables.cc (install_builtin_variables): Call it. |
|
6621 |
|
6622 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6623 treat_neg_dim_as_zero. |
|
6624 * pt-const.cc: Move all of that here. |
|
6625 |
|
6626 * pager.cc (octave_pager_stream::do_sync): Don't return early if |
|
6627 not interactive. |
|
6628 |
|
6629 * data.h: New file. |
|
6630 * Makefile.in (INCLUDES): Add it to the list. |
|
6631 * data.cc (symbols_of_data): New function. Move definition of I, |
|
6632 Inf, J, NaN, e, eps, i, inf, j, nan, pi, realmin, and realmax here. |
|
6633 * variables.cc: From here. |
|
6634 (install_builtin_variables): Call symbols_of_data. |
|
6635 |
|
6636 * file-io.cc (symbols_of_file_io): New function. Move definition |
|
6637 of SEEK_CUR, SEEK_END, SEEK_SET, stdin, stdout, stderr here. |
|
6638 * variables.cc: From here. |
|
6639 (install_builtin_variables): Call symbols_of_file_io. |
|
6640 |
|
6641 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6642 do_fortran_indexing, implicit_str_to_num_ok, |
|
6643 ok_to_lose_imaginary_part, prefer_column_vectors, |
|
6644 prefer_zero_one_indexing, print_answer_id_name, |
|
6645 propagate_empty_matrices, resize_on_range_error, and |
|
6646 struct_levels_to_print. |
|
6647 * pt-const.cc: Move all of that here. |
|
6648 (symbols_of_pt_const): New function. |
|
6649 * variables.cc (install_builtin_variables): Call it. |
|
6650 * pt-fvc.cc (tree_identifier::assign): Use Vresize_on_range_error |
|
6651 instead of user_pref.resize_on_range_error here. |
|
6652 * load-save.cc (save_mat_binary_data): Use Vimplicit_str_to_num_ok |
|
6653 instead of user_pref.implicit_str_to_num_ok here. |
|
6654 * utils.cc (empty_arg): Use Vpropagate_empty_matrices instead of |
|
6655 user_pref.propagate_empty_matrices here. |
|
6656 * pt-exp-base.cc (tree_expression::is_logically_true): Likewise.. |
|
6657 |
|
6658 * pt-fcn.cc (symbols_of_pt_fcn): Also move DEFVAR for |
|
6659 default_return_value here. |
|
6660 |
|
6661 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6662 ps1, ps2, ps4, and completion_append_char. |
|
6663 * input.cc: Move all of that here. |
|
6664 (symbols_of_input): New function. |
|
6665 * variables.cc (install_builtin_variables): Call it. |
|
6666 * pt-pr-code.cc (indent): Use Vps4 instead of user_pref.ps4 here. |
|
6667 * help.cc (Ftype): Also here. |
|
6668 |
|
6669 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6670 automatic_replot, gnuplot_binary, and gnuplot_has_multiplot. |
|
6671 * pt-plot.cc: Move all of that here. |
|
6672 (symbols_of_pt_plot): New function. |
|
6673 * variables.cc (install_builtin_variables): Call it. |
|
6674 |
|
6675 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6676 beep_on_error. |
|
6677 * error.cc: Move all of that here. |
|
6678 (symbols_of_error): New function. |
|
6679 * variables.cc (install_builtin_variables): Call it. |
|
6680 |
|
6681 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6682 empty_list_elements_ok. |
|
6683 * pt-mat.cc: Move all of that here. |
|
6684 (symbols_of_pt_mat): New function. |
|
6685 * variables.cc (install_builtin_variables): Call it. |
|
6686 |
|
6687 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6688 define_all_return_values, return_last_computed_value, and |
|
6689 silent_functions. |
|
6690 * pt-fcn.cc: Move all of that here. |
|
6691 (symbols_of_pt_fcn): New function. |
|
6692 * variables.cc (install_builtin_variables): Call it. |
|
6693 |
|
6694 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6695 whitespace_in_literal_matrix. |
|
6696 * lex.l: Move all of that here. |
|
6697 (symbols_of_lex): New function. |
|
6698 * variables.cc (install_builtin_variables): Call it. |
|
6699 |
|
6700 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6701 warn_assign_as_truth_value, warn_comma_in_global_decl, |
|
6702 warn_function_name_clash, and warn_missing_semicolon. |
|
6703 * parse.y: Move all of that here. |
|
6704 (symbols_of_parse): New function. |
|
6705 * variables.cc (install_builtin_variables): Call it. |
|
6706 |
|
6707 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6708 output_precision, output_max_field_width, print_empty_dimensions, |
|
6709 and split_long_rows. |
|
6710 * pr-output.cc: Move all of that here. |
|
6711 (symbols_of_pr_output): New function. |
|
6712 * variables.cc (install_builtin_variables): Call it. |
|
6713 |
|
6714 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6715 page_screen_output, page_output_immediately, and pager_binary. |
|
6716 * pager.cc: Move all of that here. |
|
6717 |
|
6718 * user-prefs.h (check_preference): Provide declaration. |
|
6719 * user-prefs.cc (check_preference): Make external. |
|
6720 |
|
6721 * toplev.cc (Foctave_config_info): New function. |
|
6722 |
|
6723 * oct-conf.h.in: New file |
|
6724 * Makefile.in (oct-conf.h): New target. |
|
6725 Add it to the appropriate lists. |
|
6726 |
|
6727 * sighandlers.cc (sigchld_handler): Don't complain about wait |
|
6728 returning a negative value. |
|
6729 |
|
6730 * file-io.cc (Fsscanf, Fsprintf): Pass true for second arg of |
|
6731 octave_stream constructor. |
|
6732 |
|
6733 * oct-stream.h (octave_stream): New field, preserve. |
|
6734 (octave_stream::~octave_stream): If preserve, don't delete rep. |
|
6735 |
|
6736 * pager.cc (symbols_of_pager): Set default for |
|
6737 page_output_immediately to 0. |
|
6738 |
|
6739 * toplev.cc (do_system): Correctly handle return_output. |
|
6740 Append ends to output_buf before calling str(). |
|
6741 |
|
6742 * variables.cc: If M_PI and M_E are available, use them. |
|
6743 |
|
6744 * mk-oct-links.in (links_dir): If old link exists, delete it first. |
|
6745 |
|
6746 Sun May 12 01:46:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6747 |
|
6748 * Makefile.in (DISTFILES): List defaults.h.in and oct-gperf.h here. |
|
6749 (INCLUDES): Not here. |
|
6750 (install-inc): New target. |
|
6751 (uninstall): Also delete libraries and include files. |
|
6752 (install-inc): If linkdir is a directory, leave it alone. |
|
6753 (TERMLIBS, LIBPLPLOT, LIBDLFCN): Don't substitute here (now in |
|
6754 Makeconf). |
|
6755 |
|
6756 * oct-stream.cc (octave_base_stream::do_read): Provide initial |
|
6757 value for tmp var. |
|
6758 |
|
6759 * pt-walk.h, pt-pr-code.h, pt-pr-code.cc: New tree-walking classes. |
|
6760 * Makefile.in: Add them to the appropriate lists. |
|
6761 * pt-fvc-base.h, pt-exp-base.cc, pt-fvc-base.cc, pt-mvr-base.cc, |
|
6762 pt-base.cc, pt-mvr.cc, pt-mat.h, pt-mat.cc, pt-fvc.cc, |
|
6763 pt-const.cc, pt-cmd.cc, pt-const.h, pt-misc.cc, pt-plot.cc, |
|
6764 pt-fcn.cc, pt-plot.h, pt-mvr.h, pt-mvr-base.h, pt-misc.h, |
|
6765 pt-fcn.h, pt-exp.h, pt-exp.cc, pt-exp-base.h, pt-fvc.h, pt-cmd.h, |
|
6766 pt-base.h: |
|
6767 Replace print_code stuff with accept() functions. |
|
6768 Add member access functions where necessary. |
|
6769 * help.cc (Ftype): Update to use new method of walking trees to |
|
6770 print text representation of user-defined functions. |
|
6771 |
|
6772 * file-io.cc (Ffscanf): Update doc string. |
|
6773 (Fsscanf): Likewise. |
|
6774 |
|
6775 * oct-stream.cc (octave_base_stream::do_read): Correctly set max_size. |
|
6776 Pad mval with zeros on final resize. |
|
6777 (octave_base_stream::do_scanf): Likewise. |
|
6778 (do_scanf_conv): Correctly resize mval. |
|
6779 |
|
6780 Sat May 11 05:14:09 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6781 |
|
6782 * pager.cc (octave_pager_buf::sync): Correctly set bypass_pager. |
|
6783 |
|
6784 * lex.l (<MATRIX>{SNLCMT}*\]{S}*): Match SNLCMT, not just SNL. |
|
6785 |
|
6786 Fri May 3 11:05:30 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6787 |
|
6788 * pt-const.cc (OCT_VAL_REP::set_index): Complain if type can't be |
|
6789 indexed. |
|
6790 |
|
6791 * input.cc (get_user_input): Don't increment input line number if |
|
6792 input is coming from eval string. |
|
6793 |
|
6794 * user-prefs.cc: Allow empty strings for prompts. |
|
6795 |
|
6796 Thu May 2 10:50:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6797 |
|
6798 * pt-mvr.h (class tree_oct_obj): Declare values data member const. |
|
6799 |
|
6800 Sun Apr 28 03:16:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6801 |
|
6802 * user-prefs.h (user_preferences): New field, |
|
6803 `page_output_immediately'. |
|
6804 * user-prefs.cc (init_user_prefs): Initialize it. |
|
6805 (page_output_immediately): New function. |
|
6806 * pager.cc (syms_of_pager): Add DEFVAR. |
|
6807 (really_flush_to_pager): New file-scope variable. |
|
6808 (flush_octave_stdout): Set and restore it. |
|
6809 (octave_pager_buf::sync): Check it, user_pref.page_screen_output, |
|
6810 and user_pref.page_output_immediately to decide when to really |
|
6811 flush output. |
|
6812 (more_than_a_screenful): New function. If paging but not |
|
6813 immediately, then check this too. |
|
6814 |
|
6815 * pager.cc (default_pager): Move here from variables.cc. If pager |
|
6816 is less and LESS is not in the environment, append useful flags. |
|
6817 (symbols_of_pager): New function. |
|
6818 * variables.cc (install_builtin_variables): Call it. |
|
6819 Delete pager-related DEFVARs. |
|
6820 |
|
6821 * syswait.h (WIFSIGNALLED): Define if sys/wait.h doesn't. |
|
6822 |
|
6823 * sighandlers.cc: Handle SIGCHLD. |
|
6824 |
|
6825 * pager.cc, pager.h: Rewrite. |
|
6826 * pt-mvr.cc, pt-misc.cc, pt-fcn.cc, pt-const.cc, oct-hist.cc, |
|
6827 file-io.cc, help.cc, variables.cc, qpsol.cc, dassl.cc, quad.cc, |
|
6828 npsol.cc, lsode.cc, fsolve.cc, load-save.cc, dirfns.cc, octave.cc, |
|
6829 toplev.cc, error.cc, input.cc: |
|
6830 Write to octave_stdout and octave_diary instead of calling |
|
6831 maybe_page_output() or maybe_write_to_diary_file(). |
|
6832 |
|
6833 * oct-procbuf.h, oct-procbuf.cc: New files. |
|
6834 * procstream.h (class procstreambase): Use octave_procbuf instead |
|
6835 of procbuf from libg++, so we can get pids of subprocesses. |
|
6836 |
|
6837 Fri Apr 26 01:21:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6838 |
|
6839 * pt-const.cc (OCT_VAL_REP::do_index): Call maybe_mutate() before |
|
6840 returning. |
|
6841 |
|
6842 * mappers.h (struct Mapper_fcn): Delete. |
|
6843 (struct builtin_mapper_function): New field ch_mapper. |
|
6844 * pt-fvc.h (tree_builtin): Convert type of mapper_fcn from |
|
6845 Mapper_fcn to builtin_mapper_function. |
|
6846 * variables.cc (install_builtin_mapper): Likewise, for arg. |
|
6847 Simplify, since we don't have to do the copying ourselves now. |
|
6848 * pt-fvc.cc (apply_mapper_function): Handle ch_mapper case. |
|
6849 * defun.h (DEFUN_MAPPER): Likewise. |
|
6850 * mappers.cc (install_builtin_mappers): Likewise. |
|
6851 Add ctype is* functions here. |
|
6852 |
|
6853 Thu Apr 25 00:57:06 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6854 |
|
6855 * arith-ops.h, defun-int.h, defun.h, dynamic-ld.h, gripes.h, |
|
6856 load-save.h, oct-map.h, oct-obj.h, oct-stream.h, pt-cmd.h, |
|
6857 pt-const.h, pt-exp-base.h, pt-exp.h, pt-fcn.h, pt-fvc-base.h, |
|
6858 pt-fvc.h, pt-mat.h, pt-misc.h, pt-mvr-base.h, pt-mvr.h, pt-plot.h, |
|
6859 symtab.h, toplev.h, utils.h, variables.h, xpow.h, Array-tc.cc, |
|
6860 Map-i.cc, Map-tc.cc, SLList-tc.cc, arith-ops.cc, balance.cc, |
|
6861 bogus.cc, chol.cc, colloc.cc, dassl.cc, data.cc, det.cc, |
|
6862 dirfns.cc, eig.cc, error.cc, expm.cc, fft.cc, fft2.cc, file-io.cc, |
|
6863 filter.cc, find.cc, fsolve.cc, fsqp.cc, givens.cc, gripes.cc, |
|
6864 help.cc, hess.cc, ifft.cc, ifft2.cc, input.cc, inv.cc, |
|
6865 load-save.cc, log.cc, lpsolve.cc, lsode.cc, lu.cc, minmax.cc, |
|
6866 npsol.cc, oct-hist.cc, oct-obj.cc, oct-stream.cc, pager.cc, |
|
6867 pinv.cc, pr-output.cc, pt-cmd.cc, pt-const.cc, pt-exp-base.cc, |
|
6868 pt-exp.cc, pt-fcn.cc, pt-fvc-base.cc, pt-fvc.cc, pt-mat.cc, |
|
6869 pt-misc.cc, pt-mvr-base.cc, pt-mvr.cc, pt-plot.cc, qpsol.cc, |
|
6870 qr.cc, quad.cc, qzval.cc, rand.cc, resource.cc, schur.cc, sort.cc, |
|
6871 strfns.cc, svd.cc, syl.cc, symtab.cc, syscalls.cc, sysdep.cc, |
|
6872 timefns.cc, toplev.cc, utils.cc, variables.cc, xpow.cc, parse.y: |
|
6873 Rename tree_constant -> octave_value. |
|
6874 Rename Octave_object -> octave_value_list. |
|
6875 |
|
6876 Wed Apr 24 22:15:34 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6877 |
|
6878 * toplev.cc (Fsystem): Merge functionality of async_system and |
|
6879 sync_system. |
|
6880 |
|
6881 * oct-fstrm.h, oct-iostrm.h, oct-prcstrm.h, oct-stdstrm.h, |
|
6882 oct-stream.h, oct-strstrm.h, oct-fstrm.cc, oct-iostrm.cc, |
|
6883 oct-prcstrm.cc, oct-stdstrm.cc, oct-stream.cc, oct-strstrm.cc, |
|
6884 Array-os.cc: New files. |
|
6885 * Makefile.in: Add them to the appropriate lists. |
|
6886 * file-io.cc: Rewrite to use new stream classes. |
|
6887 |
|
6888 Tue Apr 23 18:59:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6889 |
|
6890 * gripes.cc (gripe_not_supported): New function. |
|
6891 |
|
6892 * toplev.cc (do_octave_atexit, Fatexit): New functions. |
|
6893 (octave_atexit_functions): New file-scope variable. |
|
6894 * octave.cc (main): Register do_octave_atexit with atexit. |
|
6895 |
|
6896 * variables.cc (install_builtin_variables): Call |
|
6897 symbols_of_syscalls here. |
|
6898 |
|
6899 * syscalls.h, syscalls.cc: New files. |
|
6900 |
|
6901 Mon Apr 22 21:14:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6902 |
|
6903 * syscalls.cc: New file. |
|
6904 (Flstat, Fmkfifo, Fstat, Funlink, Fwait, Fwaitpid): Move here. |
|
6905 * file-io.cc: From here. |
|
6906 * Makefile.in (SOURCES): Add syscalls.cc to the list. |
|
6907 |
|
6908 Wed Apr 17 18:34:10 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6909 |
|
6910 * file-info.h, file-info.cc: Delete files. |
|
6911 * Makefile.in: Remove from lists. |
|
6912 |
|
6913 * toplev.cc (Fquit): Accept exit status argument. |
|
6914 (Fflops): Delete (now a function file). |
|
6915 |
|
6916 Thu Apr 11 16:20:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6917 |
|
6918 * lex.l: Recognize `.'. |
|
6919 Update current_input_column even for unrecognized characters. |
|
6920 Return LEXICAL_ERROR for unrecognized characters. |
|
6921 |
|
6922 Mon Apr 8 19:59:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6923 |
|
6924 * variables.cc (install_builtin_variables): Split into several |
|
6925 functions to make compiling with g++ go faster and consume less |
|
6926 memory. |
|
6927 |
|
6928 Sun Apr 7 16:25:35 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6929 |
|
6930 * load-save.cc (Fsave): Print usage if i == argc. |
|
6931 (Fload): Likewise. |
|
6932 |
|
6933 Sat Apr 6 21:26:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6934 |
|
6935 * Makefile.in (clean): Also delete pic/*.o |
|
6936 (maintainer-clean, distclean): Also remove stamp-picdir, |
|
6937 stamp-tinst, stamp-interp, and pic directory. |
|
6938 (stamp-prereq): New target. |
|
6939 |
|
6940 Wed Apr 3 11:19:30 1996 Rick Niles <niles@axp745.gsfc.nasa.gov> |
|
6941 |
|
6942 * resource.cc: Don't make including sys/resource.h and sys/times.h |
|
6943 mutually exclusive. |
|
6944 |
|
6945 Fri Mar 29 13:43:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6946 |
|
6947 * Makefile.in (distclean): Delete so_locations, which is created |
|
6948 on DEC Alpha systems. |
|
6949 |
|
6950 Thu Mar 28 02:53:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6951 |
|
6952 * utils.h (undo_string_escape): Provide extern declaration here. |
|
6953 |
|
6954 * lex.l (NL): Allow \r\n as new line character. |
|
6955 (.): Complain if invalid character is found on input |
|
6956 |
|
6957 Fri Mar 22 03:47:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6958 |
|
6959 * resource.cc (getrusage): If getrusage is missing, try using |
|
6960 times to at least fill in the cpu time values. If neither one is |
|
6961 available, return 0 for cpu times instead of NaN. |
|
6962 |
|
6963 * sighandlers.cc (octave_signal_mask): New file-scope variable. |
|
6964 (octave_save_signal_mask, octave_restore_signal_mask): New functions. |
|
6965 * toplev.cc (main_loop): Use them. |
|
6966 |
|
6967 Wed Mar 20 01:21:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6968 |
|
6969 * utils.cc (get_fcn_file_names (const string&, int)): Resize |
|
6970 retval to value of k, not i. |
|
6971 (get_fcn_file_names (int)): In loop for copying names to retval, |
|
6972 don't increment j twice. |
|
6973 |
|
6974 Mon Mar 18 22:27:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6975 |
|
6976 * Makefile.in ($(MAKEDEPS)): Depend on oct-gperf.h. |
|
6977 |
|
6978 Fri Mar 1 18:15:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6979 |
|
6980 * fsolve.cc (fsolve_options): Delete unused argument nargout. |
|
6981 |
|
6982 * filter.cc: Use MArray instead of Array so that automatic |
|
6983 conversions will work again. |
|
6984 |
|
6985 Tue Feb 27 04:49:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6986 |
|
6987 * variables.cc (looks_like_octave_copyright): Make the strings |
|
6988 that we are trying to match both have length 29. |
|
6989 |
|
6990 * Makefile.in (install-bin): Use $(INSTALL_PROGRAM), not $(INSTALL). |
|
6991 |
|
6992 * load-save.cc (read_mat_binary_data): Make sure name is |
|
6993 NUL terminated. |
|
6994 |
|
6995 Mon Feb 26 18:18:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6996 |
|
6997 * variables.cc (whos): Make argv from tmp_args, not args. |
|
6998 |
|
6999 * defun.h (DEFCONSTX): Don't stringify name. |
|
7000 |
|
7001 Sat Feb 24 01:12:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7002 |
|
7003 * Makefile.in (install-oct): Make mk-oct-links executable. |
|
7004 * mk-oct-links.in (links_dir): Update to match new format of |
|
7005 DEFUN_DLD_BUILTIN macro. Use LN_S, not just LN. |
|
7006 (links_dir): |
|
7007 |
|
7008 * pr-output.cc (octave_print_internal): New arg, extra_indent, for |
|
7009 versions of this function that take matrices and ranges. |
|
7010 * pt-const.cc (TC_REP::print (ostream&)): Fix printing of structures. |
|
7011 Pass struct_indent to octave_print_internal as appropriate. |
|
7012 (print_with_name (ostream&, const string&, bool)): Handle spacing |
|
7013 around `=' differently for structures. |
|
7014 |
|
7015 Fri Feb 23 04:51:04 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7016 |
|
7017 * token.cc (token (double, const string&, int, int)): Store orig_text. |
|
7018 |
|
7019 Tue Feb 20 20:36:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7020 |
|
7021 * variables.cc (Fclear): Fix off-by-one error. |
|
7022 |
|
7023 Sat Feb 17 16:54:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7024 |
|
7025 * oct-hist.cc (default_history_file): Append "/.octave_hist" to |
|
7026 return value, not to home_directory. |
|
7027 |
|
7028 Fri Feb 16 18:10:46 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7029 |
|
7030 * utils.cc: (NINT, D_NINT): Move to liboctave. |
|
7031 |
|
7032 * sysdep.cc (octave_ieee_init): Move to liboctave. |
|
7033 |
|
7034 * procstream.h, procstream.cc: Rewrite. |
|
7035 |
|
7036 * pager.cc (cleanup_oprocstream): New static function. |
|
7037 * toplev.cc (cleanup_iprocstream): Likewise. |
|
7038 * dirfns.cc (cleanup_iprocstream): Likewise. |
|
7039 |
|
7040 * unwind-prot.cc (matrix_cleanup, complex_matrix_cleanup): Delete. |
|
7041 |
|
7042 Thu Feb 15 22:03:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7043 |
|
7044 * oct-obj.cc, oct-obj.h: Move most code to the header. |
|
7045 |
|
7046 * oct-obj.cc (make_argv, all_strings): New member functions. |
|
7047 * utils.cc: Moved from here. |
|
7048 |
|
7049 * load-save.cc: Move byte swapping stuff to liboctave. |
|
7050 Move float format conversion stuff to liboctave. |
|
7051 (all_parts_int, too_large_for_float): Move to liboctave. |
|
7052 |
|
7053 * symtab.cc (valid_identifier): Move here. |
|
7054 * load-save.cc: From here. |
|
7055 |
|
7056 * sysdep.cc: Move floating-point format stuff to liboctave. |
|
7057 * pr-output.cc: Include float-fmt.h here. |
|
7058 |
|
7059 Wed Feb 14 01:49:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7060 |
|
7061 * defun.h, defun-dld.h, defun-int.h: Simplify interface for DEFUN, |
|
7062 DEFUN_DLD, DEFVAR, and DEFCONST macros. Change all uses. |
|
7063 |
|
7064 * qzval.cc: Move guts to liboctave. |
|
7065 |
|
7066 Tue Feb 13 10:28:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7067 |
|
7068 * variables.cc (parse_fcn_file): Also avoid saving history if |
|
7069 input is from a script file. |
|
7070 |
|
7071 * help.cc (Ftype): Call unwind_protect_str for user_pref.ps4. |
|
7072 |
|
7073 * npsol.cc (nonlinear_constraints_ok): Now static. |
|
7074 |
|
7075 * npsol.cc (linear_constraints_ok): Now static. |
|
7076 * qpsol.cc (linear_constraints_ok): Duplicate here. |
|
7077 |
|
7078 * data.cc (Flinspace): Don't print usage message if nargin == 2. |
|
7079 |
|
7080 Sun Feb 11 14:20:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7081 |
|
7082 * mk-oct-links.in: Rename from mk-oct-links. |
|
7083 (LN_S): Use this variable instead of ln. |
|
7084 Set -e option for shell. |
|
7085 Exit with status of last command. |
|
7086 Print message when making link. |
|
7087 * Makefile.in (DISTFILES): Add mk-oct-links.in to the list. |
|
7088 (install-oct): Run ./mk-oct-links, not $(srcdir)/mk-oct-links. |
|
7089 |
|
7090 * variables.cc (install_builtin_variables): Restore accidentally |
|
7091 deleted DEFVAR for save_precision. |
|
7092 |
|
7093 Fri Feb 9 11:24:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7094 |
|
7095 * Makefile.in (INCLUDES): Delete statdefs.h from the list (it's |
|
7096 now in the liboctave directory). |
|
7097 |
|
7098 * toplev.cc (toplevel): Define here. |
|
7099 * octave.cc (toplevel): Not here. |
|
7100 |
|
7101 * toplev.cc (main_loop): New function. |
|
7102 * octave.cc (main): Call it here instead of doing main loop |
|
7103 actions here. |
|
7104 |
|
7105 * user-prefs.cc (do_fortran_indexing): Also set liboctave_dfi_flag. |
|
7106 (prefer_column_vectors): Also set liboctave_pcv_flag. |
|
7107 (prefer_zero_one_indexing): Also set liboctave_pzo_flag. |
|
7108 (resize_on_range_error): Also set liboctave_rre_flag. |
|
7109 |
|
7110 * variables.cc (restore_command_history): New function. |
|
7111 (parse_fcn_file): Use it here in unwind_protect. |
|
7112 |
|
7113 * dynamic-ld.cc (load_octave_oct_file): Reverse sense of test. |
|
7114 (load_octave_builtin): Delete. |
|
7115 (mangle_octave_oct_file_name): Delete. |
|
7116 |
|
7117 * pt-fvc.cc (tree_builtin::eval): Don't try to dynamically load |
|
7118 functions here. |
|
7119 |
|
7120 * pr-output.cc (set_format_style): Decrement argc for first arg too. |
|
7121 |
|
7122 * input.cc (gnu_readline): If readline returns an empty string, |
|
7123 convert it to a string containing a single newline character. |
|
7124 |
|
7125 * octave.cc (octave_argv): Now a static string_vector. |
|
7126 (intern_argv): Use string_vector ops, not charMatrix ops. |
|
7127 * toplev.cc (octave_argv): Delete definition. |
|
7128 * toplev.h (octave_argv): Delete declaration. |
|
7129 |
|
7130 Thu Feb 8 10:58:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7131 |
|
7132 * Makefile.in (conf-dist): New target. |
|
7133 |
|
7134 Tue Feb 6 10:59:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7135 |
|
7136 * help.cc (Ftype): Correctly handle structure names. |
|
7137 |
|
7138 Sun Feb 4 02:02:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7139 |
|
7140 * qpsol.cc (Fqpsol): Call set_options(), not copy() to set |
|
7141 options for QPSOL objects. |
|
7142 |
|
7143 * npsol.cc (Fnpsol): Call set_options(), not copy() to set |
|
7144 options for NPSOL objects. |
|
7145 |
|
7146 * quad.cc (Fquad): Call set_options(), not copy() to set |
|
7147 options for Quad objects. |
|
7148 |
|
7149 * dynamic-ld.cc (load_octave_builtin): Don't call destructor on string. |
|
7150 (load_octave_oct_file): Likewise. |
|
7151 Check oct_file.empty(), not just oct_file. |
|
7152 |
|
7153 * fsolve.cc (Ffsolve): Call set_options(), not copy() to set |
|
7154 options for NLEqn object. |
|
7155 |
|
7156 * variables.cc (do_who): Properly set match patterns from argument |
|
7157 vector for call to maybe_list. |
|
7158 |
|
7159 Sat Feb 3 03:29:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7160 |
|
7161 * octave.cc (long_opts): Properly set second field using new enum. |
|
7162 |
|
7163 * lsode.cc: Change ODE to LSODE where appropriate. |
|
7164 Use LSODE_options, not ODE_options. |
|
7165 |
|
7166 * dassl.cc: Change DAE to DASSL where appropriate. |
|
7167 Use DASSL_options, not ODE_options. |
|
7168 |
|
7169 Fri Feb 2 01:41:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7170 |
|
7171 * dirfns.cc: Include unistd.h. |
|
7172 |
|
7173 * parse.y, lex.l: Handle matrix lists without ml or mlnm stacks. |
|
7174 * pt-mat.h, pt-mat.cc (tree_matrix): |
|
7175 Rewrite to use SLList instead of home brew list. |
|
7176 * SLList-tm.cc: New file |
|
7177 * Makefile.in: Add it to the lists. |
|
7178 * SLStack-tm.cc: Delete. |
|
7179 * Makefile.in: Delete it from the lists. |
|
7180 |
|
7181 * All pt-* files: Use bool instead of int where appropriate. |
|
7182 |
|
7183 * Makefile.in (DEP_SOURCES_3): Add octave.cc. |
|
7184 |
|
7185 * pt-const.h (class tree_constant::tree_constant_rep): Make |
|
7186 everything in this class public, then it doesn't need to declare |
|
7187 the tree_constant class as a friend. |
|
7188 |
|
7189 Thu Feb 1 01:42:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7190 |
|
7191 * lex.h, lex.l, parse.h, parse.y (class lexical_feedback): New |
|
7192 class for lexer flags. Replace lots of global vars with members |
|
7193 of this class. |
|
7194 |
|
7195 * lex.l (class brace_paren_nesting_level): New class to replace |
|
7196 nesting_level stack. nesting_level is now an instance of this |
|
7197 class. |
|
7198 |
|
7199 * lex.l (yum_yum): New typedef. |
|
7200 (ATE_NOTHING): New global var. |
|
7201 (ATE_SPACE_OR_TAB, ATE_NEWLINE): Don't #define these, declare them |
|
7202 as const yum_yum. |
|
7203 (eat_whitespace, eat_continuation): Return yum_yum, not int. |
|
7204 |
|
7205 * lex.l (SHORT_CIRCUIT_LOGICALS): Delete. Always do this for || |
|
7206 and && tokens. |
|
7207 (yy_flex_alloc, yy_flex_realloc, yy_flex_free, next_char_is_space): |
|
7208 Delete. |
|
7209 |
|
7210 * toplev.cc (verbose_flag): Delete definition. |
|
7211 * toplev.h (verbose_flag): And declaration. |
|
7212 * octave.cc (verbose_flag): Now static. |
|
7213 |
|
7214 * lex.l (lookup_identifier): Arg is now string, not char*. |
|
7215 (handle_identifier, is_plot_keyword, is_keyword): Likewise. |
|
7216 (strip_trailing_whitespace): Return value is now string, not char*. |
|
7217 (plot_style_token): Likewise, for both arg and return value. |
|
7218 |
|
7219 * input.cc (octave_gets_line): Delete. |
|
7220 (gnu_readline, octave_gets, octave_read): |
|
7221 Properly handle input when using_readline is either true or false. |
|
7222 Don't limit length of input lines to flex buffer size. |
|
7223 (get_user_input): New function. |
|
7224 |
|
7225 * octave.cc (main): Handle --no-line-editing. |
|
7226 * toplev.h (using_readline): Provide external declaration here. |
|
7227 * input.h: Not here. |
|
7228 * toplev.cc (using_readline): Define here. |
|
7229 * input.cc: Not here. |
|
7230 |
|
7231 * toplev.h (no_line_editing): Delete declaration. |
|
7232 * input.cc (no_line_editing): Delete definition. |
|
7233 |
|
7234 Wed Jan 31 05:28:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7235 |
|
7236 * input.cc (DEFAULT_ARRAY_SIZE, PROMPT_GROWTH): Delete definitions |
|
7237 of unused macros. |
|
7238 (read_octal): Now static. |
|
7239 |
|
7240 * givens.cc (Fgivens): Use new functions from matrix classes |
|
7241 instead of calling Fortran functions directly. |
|
7242 * syl.cc (Fsyl): Likewise. |
|
7243 * expm.cc (Fexpm): Likewise. |
|
7244 |
|
7245 Mon Jan 29 00:00:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7246 |
|
7247 * octave.cc: Use new prog_args class instead of calling getopt |
|
7248 directly. |
|
7249 |
|
7250 * getopt.h, getopt.c, getopt1.c: Move to liboctave directory. |
|
7251 * Makefile: Remove from lists. |
|
7252 |
|
7253 * utils.cc (strconcat, read_until, discard_until): Delete. |
|
7254 |
|
7255 * pager.cc (terminal_columns, terminal_rows): Move to |
|
7256 liboctave/oct-term.cc. |
|
7257 * pager.cc, pr-output.cc: Include oct-term.h. |
|
7258 |
|
7259 * utils.cc (list_in_columns): Moved to liboctave/str-vec.cc. |
|
7260 Change all callers to use new member function syntax. |
|
7261 |
|
7262 * dirfns.cc (absolute_program): Now static. |
|
7263 (absolute_pathname): Delete. |
|
7264 |
|
7265 * pt-plot.cc (save_in_tmp_file): Call oct_tempnam, not |
|
7266 octave_tmp_file_name. Include file-ops.h. |
|
7267 * file-io.cc (do_scanf, Foctave_tmp_file_name): Likewise. |
|
7268 * oct-hist.cc (mk_tmp_hist_file): Likewise. |
|
7269 |
|
7270 * file-io.cc (Foctave_tmp_file_name): Move here. |
|
7271 * utils.cc: From here. |
|
7272 |
|
7273 * utils.cc (octave_tmp_file_name): Move to liboctave/file-ops.cc. |
|
7274 |
|
7275 * tempname.c, tempnam.c: Move to liboctave directory. |
|
7276 * Makefile.in: Remove from lists. |
|
7277 |
|
7278 Sun Jan 28 19:00:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7279 |
|
7280 * xdiv.cc (all xdiv functions): Return Matrix or ComplexMatrix, |
|
7281 not tree_constant. |
|
7282 |
|
7283 * oct-hist.h, oct-hist.cc, toplev.cc, octave.cc, input.cc, |
|
7284 file-io.cc, user-prefs.cc: Rewrite to use new command_history |
|
7285 class instead of calling readline history functions directly. |
|
7286 |
|
7287 * utils.cc (get_fcn_file_names): Delete num arg. |
|
7288 |
|
7289 Thu Jan 25 20:33:54 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7290 |
|
7291 * load-save.cc (matches_patterns): Use new glob_match class |
|
7292 instead of calling fnmatch directly. |
|
7293 * symtab.cc (matches_patterns, symbol_table::glob): Likewise. |
|
7294 * variables.cc (Fclear): Likewise. |
|
7295 |
|
7296 Wed Jan 24 02:05:22 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7297 |
|
7298 * fnmatch.h fnmatch.c: Delete. |
|
7299 * Makefile.in: Add glob stuff in the appropriate places, remove |
|
7300 fnmatch.h and fnmatch.c from lists. |
|
7301 |
|
7302 * octave.cc (program_invocation_name, program_invocation_short_name): |
|
7303 Maybe declare. |
|
7304 (initialize_globals): Maybe initialize them. |
|
7305 |
|
7306 * octave.cc (initialize_pathsearch): Define here, not in pathsearch.cc. |
|
7307 * pathsearch.h, pathsearch.cc: Remove files. |
|
7308 * Makefile.in: Remove them from the lists. |
|
7309 |
|
7310 * help.cc (simple_help): Ignore directories that don't have any .m |
|
7311 or .oct files. |
|
7312 |
|
7313 * utils.cc (search_path_for_file): Use new dir_path class instead |
|
7314 of calling kpathsea routines directly. |
|
7315 (get_fcn_file_names): Likewise. |
|
7316 * help.cc (simple_help): Likewise. |
|
7317 |
|
7318 * dirfns.cc (make_absolute): Don't convert empty arg to "./". |
|
7319 |
|
7320 * sysdir.h: Move to liboctave directory. |
|
7321 * Makefile.in: Remove from lists. |
|
7322 |
|
7323 * dirfns.cc (Freaddir): Use new dir_entry class instead of calling |
|
7324 readdir directly. Include dir-ops.h, not sysdir.h. |
|
7325 * utils.cc (get_fcn_file_names): Likewise. Delete unnecessary |
|
7326 first arg, change all callers. |
|
7327 |
|
7328 Tue Jan 23 00:43:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7329 |
|
7330 * safe-xstat.hin, safe-xstat.cin, statdefs.h, file-ops.h, |
|
7331 file-ops.cc, filemode.c, mkdir.c, rmdir.c, rename.c: |
|
7332 Files moved to liboctave directory. |
|
7333 * Makefile.in: Remove them from lists. Move appropriate rules. |
|
7334 |
|
7335 * acosh.c, asinh.c, atanh.c, erf.c, erfc.c, gamma.c, lgamma.c: |
|
7336 Files moved to liboctave directory. |
|
7337 * Makefile.in: Remove them from lists. |
|
7338 * missing-math.h: Deleted. |
|
7339 * pr-output.cc, sysdep.cc, minmax.cc, mappers.cc, expm.cc, |
|
7340 arith-ops.cc: Include oct-math.h, not cmath or missing-math.h. |
|
7341 |
|
7342 Mon Jan 22 19:33:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7343 |
|
7344 * variables.cc (Fexist): Use file_stat instead of calling stat |
|
7345 directly. Include file-ops.h, not statdefs.h. |
|
7346 * octave.cc (execute_startup_files): Likewise. |
|
7347 * file-io.cc (file_io_get_file, fopen_internal, popen_internal, Fstat): |
|
7348 Likewise. |
|
7349 (mk_stat_map): Likewise, use file_stat object, not struct stat. |
|
7350 * oct-hist.cc (do_history): Likewise. |
|
7351 |
|
7352 * file-ops.h, file-stat.cc: New files. |
|
7353 * Makefile.in: Include them. |
|
7354 * dirfns.cc: Delete is_newer. Don't include statdefs.h. |
|
7355 * toplev.cc: Don't include statdefs.h. |
|
7356 |
|
7357 Sun Jan 21 22:48:03 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7358 |
|
7359 * pt-mvr.h, pt-fvc.h, Map.cc, Map.h, dynamic-ld.h, |
|
7360 pt-fvc-base.cc, SLList-str.cc, pt-fcn.h, pt-fvc-base.h, |
|
7361 SLStack-str.cc, pt-mvr.cc, pt-exp.cc, token.h, token.cc, |
|
7362 user-prefs.h, pt-base.cc, user-prefs.cc, dirfns.h, sysdep.h, |
|
7363 sysdep.cc, input.h, parse.h, lex.l, parse.y, defun.h, mappers.h, |
|
7364 pt-fvc.cc, pt-plot.h, load-save.h, octave.cc, defun-int.h, help.h, |
|
7365 variables.h, oct-map.h, oct-obj.h, oct-obj.cc, pt-const.cc, |
|
7366 oct-map.cc, input.cc, symtab.h, pt-const.h, pathsearch.cc, |
|
7367 pr-output.h, pr-output.cc, toplev.h, timefns.cc, schur.cc, |
|
7368 pt-plot.cc, pager.cc, load-save.cc, dynamic-ld.cc, dirfns.cc, |
|
7369 data.cc, file-info.h, file-info.cc, colloc.cc, utils.h, qpsol.cc, |
|
7370 quad.cc, npsol.cc, lsode.cc, fsolve.cc, dassl.cc, file-io.cc, |
|
7371 help.cc, utils.cc, oct-hist.h, oct-hist.cc, symtab.cc, toplev.cc, |
|
7372 pt-fcn.cc, unwind-prot.h, unwind-prot.cc, variables.cc: |
|
7373 Most functions in these files that deal with character strings |
|
7374 have been converted to use the string class insatead of char*. If |
|
7375 you want more detailed information, you'll have to figure it out |
|
7376 for yourself. |
|
7377 |
|
7378 Sat Jan 20 18:19:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7379 |
|
7380 * dynamic-ld.cc [WITH_DL]: Define RTLD_LAZY to be 1 if it is not |
|
7381 already defined. |
|
7382 |
|
7383 Sun Jan 14 07:48:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7384 |
|
7385 * pt-const.cc (print_as_scalar, print_as_structure): |
|
7386 Make these member functions. |
|
7387 (tree_constant::print_with_name): New function, moved here from |
|
7388 old tree-expr.cc file (where it was called print_constant) and |
|
7389 converted to member function. Change all callers. |
|
7390 |
|
7391 Fri Jan 12 01:54:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7392 |
|
7393 * octave.cc (initialize_globals): Don't do kpathsearch stuff here. |
|
7394 (main): Call initialize_pathsearch() here. |
|
7395 |
|
7396 * pathsearch.cc: New file. |
|
7397 * Makefile.in (SOURCES): Add it to the list |
|
7398 |
|
7399 * oct-hist.h: Rename from octave-hist.h. |
|
7400 * oct-hist.cc: Rename from octave-hist.cc. |
|
7401 * Makefile.in, parse.y, other .cc files: Cope with it. |
|
7402 |
|
7403 * dynamic-ld.cc: Avoid warnings if !WITH_DYNAMIC_LINKING. |
|
7404 |
|
7405 * load-save.cc (save_ascii_data): string::data() returns const char*. |
|
7406 |
|
7407 * utils.h: Don't provide forward declaration for tree_constant. |
|
7408 |
|
7409 * oct-obj.h: Don't include mx-base.h or provide forward |
|
7410 declarations for Matrix and Range types. |
|
7411 |
|
7412 * file-info.h: Don't include oct-obj.h. Do include cstdio. |
|
7413 |
|
7414 * symtab.h: Don't provide forward declaration for ostream. |
|
7415 |
|
7416 * variables.h: Don't provide forward declarations for istream, |
|
7417 ostrstream, tree, builtin_function, or builtin_variable objects. |
|
7418 |
|
7419 * balance.cc, chol.cc, colloc.cc, dassl.cc, det.cc, eig.cc, |
|
7420 expm.cc, fft.cc, fft2.cc, filter.cc, find.cc, fsolve.cc, fsqp.cc, |
|
7421 givens.cc, hess.cc, ifft.cc, ifft2.cc, inv.cc, log.cc, lpsolve.cc, |
|
7422 lsode.cc, lu.cc, minmax.cc, npsol.cc, pinv.cc, qpsol.cc, qr.cc, |
|
7423 quad.cc, qzval.cc, rand.cc, schur.cc, sort.cc, svd.cc, syl.cc: |
|
7424 Clean up #include statements. |
|
7425 |
|
7426 * pt-const.h: Don't include oct-obj.h or tree-base.h. |
|
7427 Provide forward declaration of Octave_object here. |
|
7428 * pt-const.cc: Include oct-obj.h here. |
|
7429 |
|
7430 * pt-mat.h, pt-fcn.h, pt-const.h, pt-misc.h, pt-plot.h, |
|
7431 pt-exp-base.h, pt-cmd.h, pt-fvc-base.h, pt-mvr-base.h, pt-exp.h, |
|
7432 pt-mvr.h, pt-fvc.h: New files, split from tree-expr.h and/or |
|
7433 renamed from other tree-*.h files (pt == parse tree). |
|
7434 * pt-base.cc, pt-const.cc, pt-exp.cc, pt-fvc-base.cc, pt-mat.cc, |
|
7435 pt-mvr-base.cc, pt-plot.cc, pt-cmd.cc, pt-exp-base.cc, pt-fcn.cc, |
|
7436 pt-fvc.cc, pt-misc.cc, pt-mvr.cc: Likewse, split from tree-expr.cc |
|
7437 and/or other tree-*.cc files. |
|
7438 * Makefile.in: Include them in the appropriate lists. |
|
7439 * All: Fix #include statements to match. |
|
7440 |
|
7441 * Array-tc.cc: Don't instantiate ArrayRep objects. |
|
7442 |
|
7443 Thu Jan 11 02:35:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7444 |
|
7445 * tree-const.cc (tree_constant::eval (int, int, const Octave_object&)): |
|
7446 Define here instead of in tree-const.h. |
|
7447 |
|
7448 Wed Jan 10 04:34:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7449 |
|
7450 * tree-const.h (tree_constant::tree_constant (const string&): |
|
7451 * tree-const.cc (TC_REP::tree_constant_rep (const string&)): |
|
7452 New constructor. |
|
7453 |
|
7454 Tue Jan 9 04:10:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7455 |
|
7456 * rand.cc (do_rand): Use string_value() result directly instead of |
|
7457 c_str() conversion. |
|
7458 * balance.cc (Fbalance): Likewise. |
|
7459 |
|
7460 * tree-const.cc (TC_REP::string_value()): |
|
7461 Handle new definition of charMatrix::row_as_string() |
|
7462 * load-save.cc (save_ascii_data): Ditto. |
|
7463 (save_binary_data): Ditto. |
|
7464 * pr-output.cc (octave_print_internal): Ditto. |
|
7465 |
|
7466 * balance.cc (Fbalance): |
|
7467 Handle new definition of TC_REP::string_value() |
|
7468 * colloc.cc (Fcolloc): Ditto. |
|
7469 * dassl.cc (Fdassl_options): Ditto. |
|
7470 * data.cc (Fstruct_contains): Ditto. |
|
7471 * dirfns.cc (Fmkdir): Ditto. |
|
7472 (Freaddir): Ditto. |
|
7473 (Frmdir): Ditto. |
|
7474 (Frename): Ditto. |
|
7475 * error.cc (handle_message): Ditto. |
|
7476 * file-io.cc (process_printf_format): Ditto. |
|
7477 (fopen_internal): Ditto. |
|
7478 (file_io_get_file): Ditto. |
|
7479 (return_valid_file): Ditto. |
|
7480 (Flstat): Ditto. |
|
7481 (Fstat): Ditto. |
|
7482 (unlink_internal): Ditto. |
|
7483 (mkfifo_internal): Ditto. |
|
7484 (async_system_internal): Ditto. |
|
7485 (sync_system_internal): Ditto. |
|
7486 (execute_internal): Ditto. |
|
7487 (popen_internal): Ditto. |
|
7488 (fwrite_internal): Ditto. |
|
7489 (fread_internal): Ditto. |
|
7490 (do_printf): Ditto. |
|
7491 (do_scanf): Ditto. |
|
7492 * input.cc (get_user_input): Ditto. |
|
7493 * lsode.cc (Flsode_options): Ditto. |
|
7494 * npsol.cc (Fnpsol_options):Ditto. |
|
7495 * qpsol.cc (Fqpsol_options):Ditto. |
|
7496 * quad.cc (Fquad_options): Ditto. |
|
7497 * rand.cc (do_rand): Ditto. |
|
7498 * schur.cc (Fschur): Ditto. |
|
7499 * sysdep.cc (Fputenv): Ditto. |
|
7500 (Fgetenv): Ditto. |
|
7501 * timefns.cc (extract_tm): Ditto. |
|
7502 (Fstrftime): Ditto. |
|
7503 * toplev.cc (Fsource): Ditto. |
|
7504 (eval_string): Ditto. |
|
7505 (Fsystem): Ditto. |
|
7506 * tree-plot.cc (subplot::handle_plot_data): Ditto. |
|
7507 * variables.cc (is_valid_function): Ditto. |
|
7508 (Fis_global): Ditto. |
|
7509 (Fexist): Ditto. |
|
7510 (builtin_string_variable): Ditto. |
|
7511 * utils.cc (make_argv): Ditto. |
|
7512 (Fundo_string_escapes): Ditto. |
|
7513 |
|
7514 Mon Jan 8 01:54:50 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7515 |
|
7516 * Makefile.in (install-bin): Use $(LN_S), not just ln. |
|
7517 |
|
7518 * variables.cc (octave_fcn_file_dir): New function. |
|
7519 * tree-expr.cc (mark_as_system_fcn_file): Use it instead of |
|
7520 octave_lib_dir. |
|
7521 |
|
7522 * Makefile.in (clean): If $(SHARED_LIBS), also remove shared libs. |
|
7523 |
|
7524 * pr-output.cc (set_format (const ComplexMatrix&, int&, int&)): |
|
7525 Unconditionally call all_elements_are_int_or_inf_or_nan(). |
|
7526 (set_format (const Matrix&, int&, int&)): Likewise. |
|
7527 |
|
7528 Sun Jan 7 19:12:39 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7529 |
|
7530 * utils.cc (oct_putenv): New function. |
|
7531 * sysdep.cc (Fputenv): Use oct_putenv. |
|
7532 * octave.cc (initialize_globals): Likewise. |
|
7533 |
|
7534 Sat Jan 6 23:22:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7535 |
|
7536 * sysdep.cc (Fputenv): New function. |
|
7537 |
|
7538 * input.cc (initialize_readline): Call rl_initialize() here. |
|
7539 |
|
7540 * octave.cc: Conditionally define atexit to be on_exit here. |
|
7541 * toplev.cc: Not here. |
|
7542 |
|
7543 Fri Jan 5 14:01:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7544 |
|
7545 * toplev.cc: Don't include <pwd.h> here. |
|
7546 |
|
7547 * octave-hist.cc, tree-plot.cc, utils.cc: Do include "sysdep.h". |
|
7548 |
|
7549 * dirfns.cc, file-io.cc, help.cc, load-save.cc, octave.cc, |
|
7550 octave-hist.cc, tree-plot.cc, utils.cc: |
|
7551 Don't include <readline/tilde.h>. |
|
7552 * sysdep.h: Do include it here. |
|
7553 |
|
7554 * tree-const.cc (TC_REP::assign (tree_constant&, Octave_object&)): |
|
7555 If we have a matrix or range, call maybe_mutate before returning. |
|
7556 |
|
7557 Sun Dec 31 15:56:18 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7558 |
|
7559 * npsol.cc (Fnpsol): Improve doc string. |
|
7560 * qpsol.cc (Fqpsol): Likewise. |
|
7561 |
|
7562 Fri Dec 29 21:46:58 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7563 |
|
7564 * defun-dld.h: Make work again for OCTAVE_LITE and |
|
7565 WITH_DYNAMIC_LINKING. |
|
7566 |
|
7567 * Makefile.in: Handle shared libraries. |
|
7568 |
|
7569 Wed Dec 27 17:47:51 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7570 |
|
7571 * mk-oct-links: New file. |
|
7572 * Makefile.in (install-oct): Use it. |
|
7573 * f-*.cc: Rename to *.cc. |
|
7574 |
|
7575 * Makefile.in (install-bin, install-lib, install-oct): New targets. |
|
7576 (install): Use them. |
|
7577 |
|
7578 Tue Dec 26 21:38:22 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7579 |
|
7580 * toplev.cc (reading_startup_message_printed): Move initialization |
|
7581 here and make extern. |
|
7582 |
|
7583 * dirfns.cc, dynamic-ld.cc, help.cc, input.cc, octave-hist.cc, |
|
7584 octave.cc, sighandlers.cc, sysdep.cc, tree-expr.cc, tree-misc.cc, |
|
7585 utils.cc, variables.cc, parse.y, lex.l: Include toplev.h instead |
|
7586 of octave.h. |
|
7587 * toplev.h: rename from octave.h. |
|
7588 |
|
7589 * octave.cc (main): Delete unused variable saved_sigint_handler. |
|
7590 |
|
7591 Sun Dec 24 00:26:54 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7592 |
|
7593 * dynamic-ld.cc: Massive re-write to handle dlopen/dlsym and |
|
7594 shl_load/shl_findsym methods of dynamic linking. |
|
7595 |
|
7596 * utils.cc (get_fcn_file_names): Check for .oct files if |
|
7597 WITH_DYNAMIC_LINKING, not WITH_DLD. |
|
7598 |
|
7599 * Makefile.in (LIB, TERMLIBS): Substitute values. |
|
7600 (octave): Add $(LIBS) to link command and use $(TERMLIBS) instead |
|
7601 of -ltermcap. |
|
7602 |
|
7603 Sat Dec 23 21:56:12 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7604 |
|
7605 * dynamic-ld.h, dynamic-ld.cc: Remove old unused code. |
|
7606 |
|
7607 * variables.cc (load_fcn_from_file): |
|
7608 Always call load_octave_oct_file. |
|
7609 |
|
7610 Wed Dec 20 00:56:57 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7611 |
|
7612 * pr-output.cc (set_real_format, set_real_matrix_format, |
|
7613 set_complex_format, set_complex_matrix_format, set_range_format): |
|
7614 New functions. Ensure the count of the digits to the right of the |
|
7615 decimal point is positive. |
|
7616 |
|
7617 * xpow.cc (xpow (const Matrix&, double)): Print warning if |
|
7618 inverting singular matrix (but return value anyway, in the name of |
|
7619 compatibility). |
|
7620 xpow (const ComplexMatrix&, double)): Likewise. |
|
7621 |
|
7622 * f-inv.cc (Finv): If matrix is singular, return result anyway, in |
|
7623 the name of compatibility. |
|
7624 |
|
7625 * symtab.cc (symbol_record::pop_context): |
|
7626 Don't assert (! context.empty ()). |
|
7627 |
|
7628 * tree-const.cc (TC_REP::char_matrix_value): Don't complain about |
|
7629 type conversion if object is an empty matrix.f |
|
7630 (TC_REP::assign): If rhs is a string, don't convert to numeric |
|
7631 type if rhs is empty or "". |
|
7632 Only widen if rhs is not empty. |
|
7633 Don't return 0x0 char_matrix if it is supposed to be a string. |
|
7634 |
|
7635 * arith-ops.h, mappers.h, pr-output.h, xdiv.h, xpow.h: Include |
|
7636 oct-cmplx.h in place of forward declaration for class Complex. |
|
7637 |
|
7638 * pr-output.cc, mappers.cc, arith-ops.cc, xdiv.cc, xpow.cc, |
|
7639 utils.cc: Include "oct-cmplx.h" instead of <Complex.h>. |
|
7640 |
|
7641 * octave.cc (initialize_error_handlers): Don't call |
|
7642 set_Complex_error_handler(). |
|
7643 (octave_Complex_error_handler): Delete unused function. |
|
7644 Delete declaration for set_Complex_error_handler(). |
|
7645 |
|
7646 * sighandlers.cc (catch_interrupts): New function. |
|
7647 * octave.cc (main): Call catch_interrupts() instead of calling |
|
7648 octave_set_signal_handler() directly. |
|
7649 |
|
7650 Tue Dec 19 03:22:37 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7651 |
|
7652 * variables.cc (looks_like_octave_copyright): Also recognize the |
|
7653 string " This program is free software". |
|
7654 |
|
7655 Thu Dec 14 01:54:06 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7656 |
|
7657 * octave-hist.cc (clean_up_history): Only write history file if |
|
7658 user_pref.saving_history. |
|
7659 |
|
7660 * octave-hist.cc (initialize_history, clean_up_history, |
|
7661 do_history): Perform tilde expansion on history file name. |
|
7662 |
|
7663 * octave.cc (main): Check `defined (HAVE_ON_EXIT)' not just |
|
7664 `(HAVE_ON_EXIT)'. |
|
7665 |
|
7666 * user-prefs.h (user_preferences): New fields, `history_file' and |
|
7667 `history_size'. |
|
7668 * user-prefs.cc (init_user_prefs): Initialize them. |
|
7669 (sv_history_file, history_size): New functions. |
|
7670 * variables.cc (install_builtin_variables): Initialize user-level |
|
7671 variables history_file and history_size. |
|
7672 * octave-hist.cc (default_history_size): Now extern. |
|
7673 (default_history_file): Likewise. |
|
7674 (octave_hist_size, octave_hist_file): Use user preference |
|
7675 variables instead. |
|
7676 * octave.cc (main): Call initialize_history after |
|
7677 execute_startup_files. |
|
7678 |
|
7679 Fri Dec 8 15:53:59 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7680 |
|
7681 * user-prefs.h (user_preferences): New field, `saving_history'. |
|
7682 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7683 (saving_history): New function. |
|
7684 * variables.cc (install_builtin_variables): Initialize user-level |
|
7685 variable saving_history. |
|
7686 * octave.cc (parse_and_execute): Don't reset value of |
|
7687 saving_history here. |
|
7688 (main) Use user_pref.saving_history instead of saving_history. |
|
7689 * variables.cc (parse_fcn_file): Likewise. |
|
7690 * octave-hist.cc (maybe_save_history): Likewise. |
|
7691 Don't save history if input_from_startup_file. |
|
7692 |
|
7693 Mon Nov 27 23:05:52 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7694 |
|
7695 * resource.cc: Include systime.h before <sys/resource.h>. |
|
7696 |
|
7697 Tue Nov 14 14:09:40 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7698 |
|
7699 * error.cc: Include cstring. |
|
7700 |
|
7701 * tree-expr.cc (print_code): Decrement indent level after printing |
|
7702 function body. |
|
7703 |
|
7704 * Makefile.in: Remove references to oct-str.cc, oct-str.h, and |
|
7705 Array-string.cc. |
|
7706 |
|
7707 * tree-const.h: Don't include oct-str.h. |
|
7708 |
|
7709 Mon Nov 6 11:16:49 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7710 |
|
7711 * parse.y (make_plot_command, finish_colon_expression, |
|
7712 make_unwind_protect, make_try_command, make_for_command, |
|
7713 make_break_command, make_continue_command, make_return_command, |
|
7714 start_if_command, finish_if_command, make_elseif_clause, |
|
7715 make_simple_assignment, make_multi_val_ret, start_function_def, |
|
7716 frob_function_def, finish_function_def, start_matrix, |
|
7717 finish_matrix): New functions. Use them in the grammar to clean |
|
7718 things up a bit. Possibly convert matrix lists, colon |
|
7719 expressions, binary expressions, and unary expressions to constant |
|
7720 values. |
|
7721 (tree_matrix_type): Delete. |
|
7722 (simple_expr1): Handle all expression stuff here, including |
|
7723 assignments. |
|
7724 (simple_expr): Just check to see that simple_expr1 produced |
|
7725 something useful. |
|
7726 |
|
7727 * tree-plot.cc, tree-plot.h: Move most simple constructors to the |
|
7728 header file. |
|
7729 |
|
7730 * tree-expr.h (tree_expression::is_constant): Move virtual |
|
7731 function definition here. |
|
7732 (tree_fvc::is_constant): From here. |
|
7733 (tree_expression::is_matrix_constant): New virtual function. |
|
7734 (tree_expression::is_range_constant): New virtual function. |
|
7735 * tree-expr.cc (tree_matrix::is_matrix_constant): New function. |
|
7736 * tree-expr.cc (tree_colon_expression::is_range_constant): New |
|
7737 function. |
|
7738 |
|
7739 Fri Nov 3 03:42:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7740 |
|
7741 * utils.cc, utils.h (jump_to_top_level): Declare as extern "C". |
|
7742 |
|
7743 * tree-const.h (tree_constant::eval ()): Only mutate if printing. |
|
7744 |
|
7745 * tree-const.cc (TC_REP::tree_constant_rep (const Complex&), |
|
7746 TC_REP::tree_constant_rep (const ComplexMatrix&), |
|
7747 TC_REP::tree_constant_rep (const ComplexDiagMatrix&), |
|
7748 TC_REP::tree_constant_rep (const ComplexRowVector&), |
|
7749 TC_REP::tree_constant_rep (const ComplexColumnVector&)): |
|
7750 Also check to see if we can convert to scalar_constant, not just |
|
7751 complex_scalar_constant. |
|
7752 |
|
7753 * user-prefs.h (user_preferences): New field, `exec_path'. |
|
7754 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7755 (sv_exec_path): New function. |
|
7756 * variables.cc (install_builtin_variables): Add DEFUN for EXEC_PATH. |
|
7757 (default_exec_path): New function. |
|
7758 * octave.cc (exec_path): New global variable. |
|
7759 Don't set and putenv() exec path here. |
|
7760 (long_opts): Add --exec-path option. |
|
7761 (main): Handle it. |
|
7762 (initialize_globals): Set default value here. |
|
7763 |
|
7764 * user-prefs.h (user_preferences): New field, `info_prog'. |
|
7765 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7766 (sv_info_prog): New function. |
|
7767 * variables.cc (install_builtin_variables): Add DEFUN for INFO_PROGRAM. |
|
7768 (default_info_prog): New function. |
|
7769 * octave.cc (info_prog): New global variable. |
|
7770 (initialize_globals): Set default value here. |
|
7771 (long_opts): Add --info-prog option. |
|
7772 (main): Handle it. |
|
7773 * help.cc (try_info): Use user_pref.info_prog here. |
|
7774 |
|
7775 * octave.cc (initialize_globals): Put arch_dir and bin_dir ahead |
|
7776 of shell_path when resetting PATH. |
|
7777 |
|
7778 Thu Nov 2 04:30:13 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7779 |
|
7780 * f-rand.cc (Frandn): New function. |
|
7781 (do_initialization): New function. |
|
7782 (do_rand): New function for doing the real work. |
|
7783 (Frand): Use it. |
|
7784 |
|
7785 * octave.cc (parse_and_execute): New arg, warn_for. If given, |
|
7786 print message if file cannot be opened. |
|
7787 Set curr_fcn_file_full_name here. |
|
7788 (Fsource): Pass extra arg to parse_and_execute to get warning message. |
|
7789 |
|
7790 * tree-const.h: Handle line and column info for double, Complex, |
|
7791 and char* constants. |
|
7792 |
|
7793 * parse.y (maybe_convert_to_ans_assign): Pass along line and |
|
7794 column info from expression. |
|
7795 |
|
7796 * parse.y (make_constant): New function. |
|
7797 (simple_expr1, word_list): Use it. |
|
7798 |
|
7799 * input.cc, input.h (curr_fcn_file_full_name): New global. |
|
7800 * variables.cc (load_fcn_from_file): Set it here. |
|
7801 * parse.y (func_def2, yyerror, maybe_warn_missing_semi): Use it. |
|
7802 (func_def2): If !reading_fcn_file, don't call strcmp if |
|
7803 curr_fcn_file_name is 0. |
|
7804 |
|
7805 * octave.cc (Fsource): New function. |
|
7806 (parse_and_execute): Declare file name const char *. |
|
7807 * input.cc (get_input_from_file): Likewise. |
|
7808 |
|
7809 Wed Nov 1 13:54:34 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7810 |
|
7811 * f-filter.cc: New file. |
|
7812 * Makefile.in (DLD_SRC): Add it to the list. |
|
7813 |
|
7814 * sysdep.h (gethostname): Change declaration to match definition |
|
7815 in sysdep.cc. |
|
7816 |
|
7817 * resource.cc: Include sysdep.h here, for octave_NaN. |
|
7818 |
|
7819 Tue Oct 31 02:12:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7820 |
|
7821 * tree-const.cc (TC_REP::assign): After converting rhs to a |
|
7822 numeric type, use the converted value, not the original. |
|
7823 |
|
7824 * dirfns.cc (Fpwd): If nargout == 0, print the directory name |
|
7825 instead of returning it. |
|
7826 |
|
7827 * pager.cc (maybe_page_output): Call maybe_write_to_diary_file here. |
|
7828 (flush_output_to_pager): Not here. |
|
7829 |
|
7830 Mon Oct 30 23:39:43 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7831 |
|
7832 * variables.cc (install_builtin_commands): Add DEFVAR for |
|
7833 echo_executing_commands. |
|
7834 |
|
7835 * octave-hist.cc (do_edit_history): Handle new echo stuff. |
|
7836 * variables.cc (parse_fcn_file): Likewise. |
|
7837 * octave.cc (parse_and_execute): Likewise. |
|
7838 (main): Likewise. |
|
7839 * input.cc (do_input_echo): |
|
7840 (Fecho): New function. |
|
7841 |
|
7842 * tree-expr.cc (tree_function::print_code_function_header, |
|
7843 tree_function::print_code_function_trailer): New functions. |
|
7844 (tree_function::print_code): Use them. |
|
7845 (tree_function::eval): Likewise, if echoing commands. |
|
7846 * tree-misc.cc (tree_statement::maybe_echo_code): New function. |
|
7847 |
|
7848 * user-prefs.h (user_preferences): New field, echo_executing_commands. |
|
7849 (echo_state): New enum, for various types of echoing we do. |
|
7850 * user-prefs.cc (echo_executing_commands): New function. |
|
7851 |
|
7852 * tree-base.cc (print_code_indent): Print PS4 as line prefix. |
|
7853 * help.cc (Ftype): Add unwind_protect for ps4 and set it to "" |
|
7854 before printing code. |
|
7855 |
|
7856 * tree-misc.h (tree_statement_list): New field, function_body. |
|
7857 (tree_statement_list::mark_as_function_body): New function. |
|
7858 * parse.y (func_def3): Mark function bodies. |
|
7859 |
|
7860 * pr-output.cc (octave_print_internal): Undo string escapes when |
|
7861 printing charMatrix as strings. |
|
7862 |
|
7863 Sat Oct 28 17:38:29 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7864 |
|
7865 * utils.h (undo_string_escapes): Add missing const in declaration. |
|
7866 |
|
7867 Fri Oct 27 03:49:44 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7868 |
|
7869 * file-io.cc (next_available_file_number): New stack for keeping |
|
7870 track of next available file number. |
|
7871 (get_next_avail_file_num): New function. |
|
7872 (fopen_file_for_user, fopen_internal, popen_internal, |
|
7873 execute_internal): Use it. |
|
7874 |
|
7875 Mon Oct 23 07:00:09 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7876 |
|
7877 * tree-const.cc (TC_REP::convert_to_matrix_type, |
|
7878 tree_constant::convert_to_matrix_type): New arg, make_complex. |
|
7879 (TC_REP::set_index): New arg, rhs_is_complex. Pass it to |
|
7880 convert_to_matrix_type. |
|
7881 (TC_REP::assign): Pass rhs.is_complex_type() to set_index. |
|
7882 |
|
7883 Thu Oct 19 00:38:38 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7884 |
|
7885 * xpow.cc: Include <climits>. |
|
7886 |
|
7887 * sysdep.cc (Fpause): Do pause even if not interactive. |
|
7888 |
|
7889 * tree-const.cc (TC_REP::assign): Don't make RHS numeric if both |
|
7890 RHS and LHS are strings. |
|
7891 |
|
7892 Wed Oct 18 22:19:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7893 |
|
7894 * f-expm.cc (Fexpm): Avoid taking log of negative number. Also, |
|
7895 don't unnecessarily divide the input matrix by 1.0. |
|
7896 |
|
7897 * input.cc (decode_prompt_string): Recognize \[ and \] too. |
|
7898 (initialize_readline): Bind M-p to history-search-backward and M-n |
|
7899 to history-search-forward. |
|
7900 |
|
7901 Tue Oct 17 04:31:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7902 |
|
7903 * xpow.cc (xpow): Handle integer powers better for complex^double. |
|
7904 (elem_xpow): Likewise. |
|
7905 |
|
7906 * lex.l ({CCHAR}): If nesting_level.top() is BRACE, return ';', |
|
7907 not '\n'. |
|
7908 |
|
7909 Mon Oct 16 19:03:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7910 |
|
7911 * help.cc (Fwhich): Fix doc string. |
|
7912 |
|
7913 * variables.cc (Fexist): Update doc string. |
|
7914 |
|
7915 Sun Oct 15 22:19:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7916 |
|
7917 * Another massive set of changes to support character matrices |
|
7918 with indexing. The Octave_str_object class is no longer used. |
|
7919 Anything having to do with Octave_str_object in the following |
|
7920 files has been changed to use charMatrix instead: octave.h, |
|
7921 load-save.cc, octave.cc, strfns.cc, data.cc, pr-output.h, |
|
7922 pr-output.cc, tree-const.h, dirfns.cc, tree-const.cc, |
|
7923 tree-expr.cc. |
|
7924 |
|
7925 Sat Oct 14 22:28:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7926 |
|
7927 * f-sort.cc (mx_sort): Don't attempt to sort vectors that have |
|
7928 only one element, or matrices that have only one row. |
|
7929 |
|
7930 Thu Oct 12 02:16:58 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7931 |
|
7932 * mappers.cc (install_mapper_functions): Add gammaln as an alias |
|
7933 for lgamma. |
|
7934 |
|
7935 * tree-const.h, tree-const.cc: Massive overhaul of indexing and |
|
7936 indexed assignment functions. |
|
7937 * tc-inlines.h, tc-rep.h: Remove files. |
|
7938 * Makefile.in: Remove mention of them here too. |
|
7939 |
|
7940 * Makefile.in: Include $(TI_SRC) in DEP_SOURCES_3, not |
|
7941 $(TI_SOURCES). |
|
7942 Include $(DLD_SRC) in DEP_SOURCES_3. |
|
7943 Include $(TI_SRC) in DEF_FILES_5. |
|
7944 |
|
7945 Wed Oct 11 01:26:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7946 |
|
7947 * Makefile.in (INCLUDES): Remove tc-inlines.h and tc-rep.h from |
|
7948 the list. |
|
7949 |
|
7950 Mon Oct 9 08:31:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7951 |
|
7952 * lex.l (next_token_is_bin_op): Do match `.+', `.*', etc. |
|
7953 |
|
7954 Sun Oct 8 18:19:56 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7955 |
|
7956 * idx-vector.h, idx-vector.cc: Delete files. |
|
7957 * Makefile.in (SOURCES, INCLUDES): Remove them from lists. |
|
7958 |
|
7959 Fri Oct 6 00:52:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7960 |
|
7961 * f-svd.cc (Fsvd): If nargout == 0 or nargout == 1, don't ask for |
|
7962 U and V. |
|
7963 |
|
7964 Wed Oct 4 00:04:57 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7965 |
|
7966 * f-npsol.cc (Fnpsol, Fnpsol_options): Avoid unused variable |
|
7967 warnings if NPSOL_MISSING. |
|
7968 * f-qpsol.cc (Fqpsol, Fqpsol_options): Likewise for QPSOL_MISSING. |
|
7969 |
|
7970 * Makefile.in (DISTFILES): Add octave.gperf. |
|
7971 |
|
7972 * lex.l (next_token_is_bin_op): Don't ever return true for `.' |
|
7973 since that causes problems with things like [ .1 .1 ]. |
|
7974 |
|
7975 Tue Oct 3 05:30:24 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7976 |
|
7977 * variables.cc (is_valid_function): Avoid setting error_state if |
|
7978 argument is not a string. |
|
7979 |
|
7980 * parse.y (maybe_warn_missing_semi): New function. |
|
7981 (list1, list): Call it if statement not terminated by semicolon. |
|
7982 * tree-misc.h (tree_statement::line, tree_statement::column): |
|
7983 New functions. |
|
7984 * octave.cc (input_from_command_line_file): New global variable. |
|
7985 (main): Set it. |
|
7986 (parse_and_execute): Unwind-protect it and set it to zero. |
|
7987 (eval_string): Likewise. |
|
7988 * variables.cc (parse_fcn_file): Likewise. |
|
7989 |
|
7990 * user-prefs.cc (warn_missing_semicolon): New function. |
|
7991 * user-prefs.h (user_preferences): New field, warn_missing_semicolon. |
|
7992 * variables.cc (install_builtin_variables): DEFVAR it. |
|
7993 |
|
7994 * tree-expr.cc (tree_expression::is_logically_true): Actually use |
|
7995 argument. |
|
7996 |
|
7997 Mon Oct 2 19:55:48 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7998 |
|
7999 * variables.cc (install_builtin_variables): Reduce the default |
|
8000 value of save_precision to 15. |
|
8001 |
|
8002 * variables.cc (builtin_real_scalar_variable): Return 1 for |
|
8003 success, 0 for failure. |
|
8004 |
|
8005 * user-prefs.cc (struct_levels_to_print, set_save_precision, |
|
8006 set_output_max_field_width, set_output_precision): |
|
8007 Change sense of test for builtin_real_scalar_variable return value. |
|
8008 (check_preference): Rename from check_str_pref. Change all callers. |
|
8009 Accept value of 0 to be the same as "false" and nonzero to be the |
|
8010 same as "true". |
|
8011 Delete val to avoid memory leak. |
|
8012 * variables.cc (install_builtin_variables): Change initial values |
|
8013 from "true" to 1, "false" to 0. |
|
8014 |
|
8015 * variables.cc (install_builtin_variables): Add DEFVAR for |
|
8016 gnuplot_has_multiplot. |
|
8017 |
|
8018 * user-prefs.h (user_preferences): New field, |
|
8019 `gnuplot_has_multiplot'. |
|
8020 * user-prefs.cc (init_user_prefs): Initialize it. |
|
8021 (gnuplot_has_multiplot): New function. |
|
8022 |
|
8023 Sat Sep 30 16:52:57 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8024 |
|
8025 * oct-gperf.h, octave.gperf: Newfiles. |
|
8026 * Makefile.in (DISTFILES): Add octave.gperf. |
|
8027 (INCLUDES): Add oct-gperf.h. |
|
8028 (oct-gperf.h): New rule. |
|
8029 (local-dist, dist): Depend on oct-gperf.h. |
|
8030 * lex.l (is_keyword): Use perfect hash function to lookup |
|
8031 keywords. |
|
8032 |
|
8033 Fri Sep 29 04:36:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8034 |
|
8035 * version.h (OCTAVE_NAME_AND_VERSION): Add TARGET_HOST_TYPE to this. |
|
8036 |
|
8037 Thu Sep 28 00:03:51 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8038 |
|
8039 * tree-expr.cc (tree_expression::is_logically_true): New function. |
|
8040 * tree-cmd.cc (tree_while_command::eval): Use it instead of |
|
8041 handling the test directly here. |
|
8042 * tree-misc.cc (tree_if_clause::eval): Likewise |
|
8043 |
|
8044 * tree-const.cc (TC_REP::force_numeric): Don't try to print value |
|
8045 of str_obj with %s. |
|
8046 |
|
8047 * error.cc (buffer_error_messages): Rename from |
|
8048 suppress_octave_error_messages. |
|
8049 (error_message_buffer): New global variable. |
|
8050 (verror): Handle buffering of messages. |
|
8051 (handle_message): New function. |
|
8052 (Ferror, Fwarning, Fusage): Use it instead of duplicating code. |
|
8053 |
|
8054 * octave.cc (Feval): Buffer error messages instead of supressing them. |
|
8055 |
|
8056 * lex.l (is_keyword): Recognize `try', `catch', and `end_try_catch'. |
|
8057 * parse.y (TRY, CATCH): New tokens. |
|
8058 (command): Recognize try-catch block. |
|
8059 (end_error): Add cases for unwind_protect_end and try_catch_end. |
|
8060 * token.h (end_tok_type): New field, try_catch_end. |
|
8061 * tree-cmd.h, tree-cmd.cc (tree_try_catch): New class. |
|
8062 * variables.cc (bind_global_error_variable): New Function. |
|
8063 (clear_global_error_variable): Likewise. |
|
8064 (install_builtin_variables): Add DEFCONST for __error_text__. |
|
8065 * help.cc (keywords): Add `try', `catch', and `end_try_catch'. |
|
8066 |
|
8067 * tree-cmd.cc (tree_unwind_protect::eval): Undo previous change. |
|
8068 |
|
8069 * dirfns.cc (Freaddir, Fmkdir, Frmdir): |
|
8070 Do tilde expansion on the argument. |
|
8071 |
|
8072 Tue Sep 26 00:10:29 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8073 |
|
8074 * f-dassl.cc, f-fsolve.cc, f-lsode.cc, f-npsol.cc, f-quad.cc: |
|
8075 Don't try to figure out if the user-supplied functions take the |
|
8076 correct number of arguments. Simply let the call fail. |
|
8077 * variables.cc (takes_correct_nargs): Delete unused function. |
|
8078 * tree-expr.cc (tree_builtin::eval): Don't complain for too many |
|
8079 arguments to mapper functions. |
|
8080 * tree-expr.h, tree-expr.cc (tree_builtin, tree_function, tree_fvc): |
|
8081 Delete unused function max_expected_args. |
|
8082 |
|
8083 * defun.h (DEFUN): Delete unnecessary args nargin_min and nargout_max. |
|
8084 New arg unused_arg_flags. |
|
8085 (DEFUN_TEXT): Likewise. |
|
8086 * defun-dld.h (DEFUN_DLD_BUILTIN): Likewise. |
|
8087 * defun-int.h (DEFUN_INTERNAL, DECLARE_FUN, DEFINE_FUN_STRUCT): |
|
8088 Do the real work. |
|
8089 |
|
8090 * data.cc, dirfns.cc, dynamic-ld.cc, error.cc, f-balance.cc, |
|
8091 f-chol.cc, f-colloc.cc, f-dassl.cc, f-det.cc, f-eig.cc, f-expm.cc, |
|
8092 f-fft.cc, f-fft2.cc, f-find.cc, f-fsolve.cc, f-fsqp.cc, |
|
8093 f-givens.cc, f-hess.cc, f-ifft.cc, f-ifft2.cc, f-inv.cc, f-log.cc, |
|
8094 f-lpsolve.cc, f-lsode.cc, f-lu.cc, f-minmax.cc, f-npsol.cc, |
|
8095 f-pinv.cc, f-qpsol.cc, f-qr.cc, f-quad.cc, f-qzval.cc, f-rand.cc, |
|
8096 f-schur.cc, f-sort.cc, f-svd.cc, f-syl.cc, file-io.cc, help.cc, |
|
8097 input.cc, lex.l, load-save.cc, mappers.cc, octave-hist.cc, |
|
8098 octave.cc, octave.h, pager.cc, pr-output.cc, resource.cc, |
|
8099 sighandlers.cc, strfns.cc, sysdep.cc, timefns.cc, token.cc, |
|
8100 tree-const.cc, tree-expr.cc, tree-expr.h, tree-plot.cc, |
|
8101 unwind-prot.cc, unwind-prot.h, utils.cc, variables.cc, |
|
8102 variables.h, version.h, xdiv.cc: |
|
8103 Avoid unused variable warnings. |
|
8104 |
|
8105 * tree-expr.h (tree_oct_obj::print_value (ostream&)): |
|
8106 Delete name of unused arg. |
|
8107 (tree_fvc::save (ostream&, int, int): Likewise. |
|
8108 |
|
8109 * tree-const.h (tree_constant::tree_constant (magic_colon)): |
|
8110 Delete name of unused arg. |
|
8111 (tree_constant::tree_constant (all_va_args)): Likewise |
|
8112 (ColumnVector vector_value (int, int)): Likewise. |
|
8113 (ComplexColumnVector vector_value (int, int)): Likewise. |
|
8114 (Octave_object::eval (int, int, const Octave_object&): Likewise. |
|
8115 |
|
8116 * octave.cc (execute_startup_files): Look for octaverc first in |
|
8117 site/m, then in $(version)/m. |
|
8118 * variables.cc (get_local_site_defaults): New function. |
|
8119 * defaults.h.in (OCTAVE_LOCALFCNFILEDIR, OCTAVE_LOCALSTARTUPFILEDIR): |
|
8120 New macros. |
|
8121 * Makefile.in (defaults.h): Also substitute ${localfcndir}. |
|
8122 |
|
8123 Mon Sep 25 17:01:03 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8124 |
|
8125 * variables.cc (install_builtin_variables): Add DEFCONST for "e". |
|
8126 |
|
8127 Fri Sep 22 02:18:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8128 |
|
8129 * dirfns.cc (Fls): Delete ls_command after using it, not before. |
|
8130 |
|
8131 * input.h, input.cc (gnu_readline): Don't declare gnu_readline |
|
8132 `extern "C"'. |
|
8133 |
|
8134 * sysdep.h: Only declare gethostname if it is missing, then don't |
|
8135 declare it `extern "C"'. |
|
8136 |
|
8137 * dirfns.cc: Don't declare strerror(). |
|
8138 |
|
8139 * input.cc (command_generator): Use malloc, not xmalloc. Don't |
|
8140 declare xmalloc. |
|
8141 (gnu_readline): Don't declare this `extern "C"'. |
|
8142 |
|
8143 * octave-hist.cc: Don't declare history_get(). It is now in |
|
8144 readline/history.h. |
|
8145 |
|
8146 * input.cc: Don't declare history_get(). It is now in |
|
8147 readline/readline.h. |
|
8148 |
|
8149 * resource.cc: Don't surround include of sys/resource.h in |
|
8150 `extern "C" { }'. |
|
8151 |
|
8152 * fnmatch.h [__cplusplus]: Surround contents in `extern "C" { }'. |
|
8153 * load-save.cc, symtab.cc, variables.cc: Don't surround |
|
8154 fnmatch.h include in `extern "C" { }'. |
|
8155 |
|
8156 * help.cc: Don't #undef __FUNCTION_DEF before including |
|
8157 readline/tilde.h. |
|
8158 |
|
8159 * dirfuns.cc, file-io.cc, help.cc, load-save.cc, octave-hist.cc, |
|
8160 sysdep.cc, tree-plot.cc, utils.cc, variables.cc: |
|
8161 Don't surround readline includes in `extern "C" { }'. |
|
8162 |
|
8163 * sysdep.cc: Move all include statements to top of file. |
|
8164 |
|
8165 Tue Sep 19 01:58:21 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8166 |
|
8167 * octave.cc (Fsystem): Use iprocstream *, and unwind_protect it. |
|
8168 * pager.cc (flush_output_to_pager): Likewise. |
|
8169 * dirfns.cc (Fls): Likewise. |
|
8170 * tree-plot.cc (plot_stream): Now a pointer. |
|
8171 (open_plot_stream): Deal with it. |
|
8172 (send_to_plot_stream, cleanup_tmp_files, do_external_plotter_cd): |
|
8173 Likewise. |
|
8174 |
|
8175 * procstream.cc (cleanup_iprocstream, cleanup_oprocstream): |
|
8176 New functions. |
|
8177 |
|
8178 * procstream.h, procstream.cc (class iprocstream, class oprocstream): |
|
8179 Keep track of pbuf. Initialize it to 0 in default constructors, |
|
8180 delete it in destructor. Don't call close in destructor. |
|
8181 |
|
8182 * sighandlers.cc (octave_set_signal_handler): New function. |
|
8183 Use this name instead of signal everywhere. |
|
8184 * help.cc (try_info): Likewise. |
|
8185 * pager.cc (flush_output_to_pager): Likewise. |
|
8186 * octave.cc (main): Likewise. |
|
8187 * octave-hist.cc (do_edit_history): Likewise. |
|
8188 |
|
8189 * input.cc (initialize_readline): Set rl_paren_string_delimiters |
|
8190 to avoid treating single quotes as string delimiters when doing |
|
8191 paren matching. |
|
8192 |
|
8193 * Makefile.in (SOURCES): Don't list Map.cc or SLStack.cc here. |
|
8194 |
|
8195 * tree-const.cc: Do include utils.h. |
|
8196 |
|
8197 * sysdep.cc: Don't surround terminal includes in extern "C". |
|
8198 Include them before readline.h. |
|
8199 |
|
8200 * Map.h: Don't include utils.h. |
|
8201 (CHNode::CHNode (const char*, const C&, CHNode *t): |
|
8202 Do strsave() inline. |
|
8203 |
|
8204 * input.cc (generate_possible_completions): Generate name list |
|
8205 even when text == 0. |
|
8206 (operate_and_get_next): Don't declare history_stifled, call |
|
8207 history_is_stifled () instead. |
|
8208 Don't declare history_length, or max_input_history either. |
|
8209 Check (where >= history_length - 1) too, as in recent versions of |
|
8210 bash. |
|
8211 |
|
8212 * user-prefs.h (user_prefs): New field, `completion_append_char'. |
|
8213 * user-prefs.cc (init_user_prefs): Initialize it. |
|
8214 (sv_completion_append_char): New function. |
|
8215 * variables.cc (install_builtin_variables): Install |
|
8216 completion_append_char. |
|
8217 * input.cc (command_generator): Use it. |
|
8218 |
|
8219 * SLList-expr.cc, SLList-misc.cc, SLList-plot.cc, SLList-tc.cc, |
|
8220 DLList-fi.cc: Include config.h. |
|
8221 * DLList-fi.cc: Include file-info.h, not file-io.h. |
|
8222 |
|
8223 Mon Sep 18 11:01:24 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8224 |
|
8225 * octave.h (clean_up_and_exit): Tag with NORETURN instead of using |
|
8226 typedef trick. |
|
8227 * error.h (panic): Likewise. |
|
8228 * utils.h (jump_to_top_level): Likewise. |
|
8229 |
|
8230 * file-io.h: Protect from multiple includes with octave_file_io, |
|
8231 not octave_files. |
|
8232 |
|
8233 * file-info.h (class file_info): Convert to using std C++ string |
|
8234 class from char *. |
|
8235 * file-info.cc: Likewise. Don't include utils.h. |
|
8236 * file-io.cc (return_valid_file, fopen_file_for_user, |
|
8237 fflush_internal, do_scanf): Use operator ==, not strcmp. |
|
8238 (close_files): Call error with file.name ().data (), |
|
8239 not file.name (). |
|
8240 (freport_internal): Call form with file.mode ().data () and |
|
8241 file.name ().data (). |
|
8242 |
|
8243 * file-io.cc, file-io.h: Extract file_info class. |
|
8244 * file-info.cc, file-info.h: New files for file_info class. |
|
8245 |
|
8246 * user-prefs.h (user_prefs): New field, `beep_on_error'. |
|
8247 * user-prefs.cc (init_user_prefs): Initialize it. |
|
8248 (beep_on_error): New function. |
|
8249 * variables.cc (install_builtin_variables): Install beep_on_error. |
|
8250 * octave.cc (maximum_braindamage): Set beep_on_error to "true". |
|
8251 * error.cc (verror): Conditionally beep. |
|
8252 (error): Don't reset error_state until after verror is called. |
|
8253 |
|
8254 Sun Sep 17 16:41:25 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8255 |
|
8256 * load-save.cc (read_mat_binary_data, read_ascii_data, |
|
8257 save_ascii_data, read_binary_data, save_binary_data): |
|
8258 Handle string arrays. |
|
8259 |
|
8260 Fri Sep 15 00:24:19 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8261 |
|
8262 * user-prefs.cc (struct_levels_to_print, |
|
8263 set_output_max_field_width, set_output_precision, |
|
8264 set_save_precision): Eliminate unecessary kludge variable. |
|
8265 |
|
8266 * variables.cc (gobble_leading_white_space): New arg, |
|
8267 in_parts. Change all callers. |
|
8268 |
|
8269 * lex.l (HELP_FCN): Delete start state. The `help' command is now |
|
8270 handled the same as any other text-style function. |
|
8271 |
|
8272 * gripes.cc (gripe_invalid_value_specified): New function |
|
8273 * user-prefs.cc: Use it. |
|
8274 |
|
8275 * sysdep.cc (octave_words_big_endian): New global variable. |
|
8276 (ten_little_endians): New function. |
|
8277 (sysdep_init): Call it. |
|
8278 * load-save.cc (words_big_endian): Use this at run-time instead of |
|
8279 depending on WORDS_BIGENDIAN at compile-time. |
|
8280 |
|
8281 * symtab.h (SYMTAB_VARIABLES): New macro. |
|
8282 * variables.cc (Fclear): Use it instead of just |
|
8283 symbol_def::USER_VARIABLE when looking for variables. |
|
8284 |
|
8285 * octave.cc (main): If there is a file to execute, set |
|
8286 program_invocation_name and program_name to the name of the file |
|
8287 and argv to the remaining args. |
|
8288 (intern_argv): Only define argv if there are some remaining |
|
8289 arguments. |
|
8290 |
|
8291 * defun.h (DEFVAR_INT): New macro. |
|
8292 (DEFVAR): Define in terms of DEFVAR_INT. Delete args protect and |
|
8293 eternal. |
|
8294 (DEFCONST): New macro. |
|
8295 * variables.cc (install_builtin_variables): Use DEFCONST where |
|
8296 appropriate, change uses of DEFVAR to match new definition. |
|
8297 |
|
8298 * variables.cc (bind_builtin_variable): New variant that accepts |
|
8299 const tree_constant& value. |
|
8300 (install_builtin_variables): Properly alphabetize DEFVAR for this. |
|
8301 |
|
8302 * octave.cc (short_opts): Prefix with `+' to prevent argv |
|
8303 permutation. |
|
8304 (main): Don't use readline if forced_interactive. |
|
8305 (traditional): New file-scope variable. |
|
8306 (long_opts, usage_string, verbose_usage): Add `--traditional'. |
|
8307 (maximum_braindamage): New function. |
|
8308 (main): Call it if --traditional. |
|
8309 |
|
8310 * input.cc (do_input_echo): Print prompt correctly when |
|
8311 forced_interactive is either true or false. |
|
8312 |
|
8313 Thu Sep 14 00:54:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8314 |
|
8315 * data.cc (Fstruct_elements): New function. |
|
8316 |
|
8317 * file-io.cc (Fumask): New function. |
|
8318 |
|
8319 * dirfns.cc (Fmkdir, Frmdir, Frename): New functions. |
|
8320 |
|
8321 * Makefile.in: Add rules and dependencies for building safe-stat.o |
|
8322 and safe-lstat.o. |
|
8323 |
|
8324 * mkdir.c, rename.c, rmdir.c: New files. |
|
8325 * Makefile.in (SOURCES): Include them in the list. |
|
8326 |
|
8327 * safe-xstat.hin, safe-xstat.cin: New files |
|
8328 * Makefile.in (DISTFILES): Include them in the list. |
|
8329 |
|
8330 * sighandlers.cc (octave_new_handler): Try to continue on memory |
|
8331 exhausted errors. |
|
8332 (sigfpe_handler): Improve error message. |
|
8333 |
|
8334 * Makefile.in: Use `ifndef omit_deps', not `ifndef $(omit_deps)'. |
|
8335 |
|
8336 * dirfns.cc (Freaddir): New function. |
|
8337 |
|
8338 * f-sort.cc: Complete rewrite. Now uses stable sort algorithm and |
|
8339 correctly handles complex matrices containing columns of all real |
|
8340 numbers. |
|
8341 |
|
8342 Wed Sep 13 03:16:40 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8343 |
|
8344 * arith-ops.cc: Unconditionally #define DIVIDE_BY_ZERO_ERROR. |
|
8345 |
|
8346 * variables.cc (install_builtin_variables): Unconditionally |
|
8347 install NaN and nan. |
|
8348 |
|
8349 * mappers.cc (xisinf): Don't do bogus things if isinf, isnan, or |
|
8350 finite are missing. |
|
8351 (xfinite): Likewise. |
|
8352 |
|
8353 * sysdep.cc (octave_ieee_init): Don't set octave_NaN and |
|
8354 octave_Inf if values are not available. |
|
8355 |
|
8356 * resource.cc (mk_ru_map): Don't use ru_ or tv_ as prefixes to |
|
8357 Octave names for the structure members. |
|
8358 |
|
8359 Tue Sep 12 02:04:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8360 |
|
8361 * procstream.h, procstream.cc: Rewrite. |
|
8362 |
|
8363 Mon Sep 11 18:42:05 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8364 |
|
8365 * filemode.c: New file, from Emacs. |
|
8366 * Makefile.in (SOURCES): Add it to the list. |
|
8367 |
|
8368 * file-io.cc (Fstat, Flstat, mk_stat_map): New functions. |
|
8369 |
|
8370 * timefns.cc (mk_tm_map): Don't use tm_ as prefix to Octave names |
|
8371 for these structure members. |
|
8372 (extract_tm): Likewise. |
|
8373 (Flocaltime): Fix doc string to match. |
|
8374 |
|
8375 Thu Sep 7 02:04:27 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8376 |
|
8377 * load-save.cc (save_user_variables): New function. |
|
8378 * sighandlers.cc (my_friendly_exit): Call it before exiting. |
|
8379 (sigfpe_handler): New function. |
|
8380 (install_signal_handlers) [__alpha__]: Install it. |
|
8381 |
|
8382 Wed Sep 6 14:35:10 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8383 |
|
8384 * tree-cmd.cc (tree_unwind_protect::eval): Ignore errors and |
|
8385 suppress error messages while executing first block of |
|
8386 unwind_protect commands. |
|
8387 |
|
8388 * parse.y (end_error): Add missing case for unwind_protect_end. |
|
8389 |
|
8390 * tree-expr.cc (tree_builtin::eval): Complain if no arguments |
|
8391 given for mapper functions. |
|
8392 (tree_fvc::lookup_map_element): Print error message for invalid |
|
8393 structure reference. |
|
8394 |
|
8395 Tue Sep 5 02:04:12 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8396 |
|
8397 * file-io.cc, input.cc, load-save.cc, octave.cc, sysdep.cc, |
|
8398 variables.cc, octave-hist.cc, utils.cc, f-schur.cc, f-rand.cc, |
|
8399 f-quad.cc, f-qpsol.cc, f-npsol.cc, f-lsode.cc, f-fsolve.cc, |
|
8400 f-dassl.cc, f-colloc.cc, f-balance.cc, error.cc, data.cc: |
|
8401 Add const qualifiers where appropriate. |
|
8402 |
|
8403 * dirfns.h: Include <ctime>, for time_t. |
|
8404 |
|
8405 * tempname.c, file-io.cc, help.cc, input.cc, octave-hist.cc, |
|
8406 octave.cc, sighandlers.cc, sysdep.cc, tree-expr.cc, tree-misc.cc, |
|
8407 tree-plot.cc, utils.cc, variables.cc, sysdir.h: |
|
8408 Move #include <sys/type.h> inside #ifdef HAVE_UNISTD_H. |
|
8409 |
|
8410 * syswait.h: New file. |
|
8411 * Makefile.in (INCLUDES): Add it to the list. |
|
8412 * file-io.cc, sighandlers.cc: Use it instead of including |
|
8413 sys/wait.h directly. |
|
8414 |
|
8415 * octave.cc: Include statdefs.h, not sys/stat.h. |
|
8416 |
|
8417 * sysdir.h: New file. |
|
8418 * Makefile.in (INCLUDES): Add it to the list. |
|
8419 * dirfns.cc, utils.cc: Use it instead of including the headers |
|
8420 directly. |
|
8421 |
|
8422 * pathlen.h: New file. |
|
8423 * Makefile.in (INCLUDES): Add it to the list. |
|
8424 * dirfns.cc, input.cc: Use it instead of including sys/param.h |
|
8425 directly. |
|
8426 * utils.cc: Don't include sys/param.h |
|
8427 |
|
8428 Sun Sep 3 18:52:59 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8429 |
|
8430 * tree-const.cc (TC_REP::string_value): Return const char*, not |
|
8431 char *. |
|
8432 |
|
8433 * All .cc, .y, .l, .y files: Include <cctype>, not <ctype.h>, and |
|
8434 so on for all new C++ versions of these standard C headers. |
|
8435 |
|
8436 Thu Aug 31 17:09:38 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8437 |
|
8438 * pathsearch.h: Also hide `string'. |
|
8439 |
|
8440 * oct-str.cc, oct-str.h: New files. |
|
8441 * Makefile.in: Add to the appropriate lists. |
|
8442 * tc-rep.h: Change char* to Octave_string* in anonymous union. |
|
8443 * tree-expr.cc (tree_matrix::eval): Handle multiple element strings. |
|
8444 * strfns.cc (toascii): Likewise. |
|
8445 * tree-const.cc (print_as_string): Likewise. |
|
8446 (TC_REP::force_numeric, TC_REP::rows, TC_REP::columns, |
|
8447 TC_REP::double_value, TC_REP::complex_value, TC_REP::matrix_value, |
|
8448 TC_REP::complex_matrix_value, TC_REP::convert_to_str): Likewise. |
|
8449 (TC_REP::print): Call octave_print_internal for string case. |
|
8450 (all_strings): New function. |
|
8451 Fix constructors to use new data structure. |
|
8452 * pr-output.cc (octave_print_internal): Add version for strings. |
|
8453 * Array-string.cc: New file. |
|
8454 |
|
8455 * octave.cc (octave_argv): New global variable. |
|
8456 (intern_argv): New function. |
|
8457 (main): Fix argument parsing to do the right thing for arguments |
|
8458 to executable scripts. |
|
8459 * variables.cc: Add DEFUNs for argv, program_invocation_name, and |
|
8460 program_name. |
|
8461 |
|
8462 * defun.h (DEFVAR): Fix comment. |
|
8463 |
|
8464 Thu Aug 24 00:02:00 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8465 |
|
8466 * file-io.cc (fgets_internal): Make second arg optional. Add |
|
8467 optional arg `strip_final_newline'. |
|
8468 (Ffgets): Change to match new definition of fgets_internal. |
|
8469 (Ffgetl): Implement using the new fgets_internal. |
|
8470 |
|
8471 * f-rand.cc (Frand): Update code for sizing return value to match |
|
8472 that used by ones, zeros, and eye. |
|
8473 |
|
8474 Wed Aug 23 19:52:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8475 |
|
8476 * tree-const.cc (do_vector_assign): Don't crash for |
|
8477 A(range) = scalar, or A(matrix) = scalar. |
|
8478 |
|
8479 * f-dassl.cc (set_dassl_option): Rename from do_dassl_option. |
|
8480 (show_dassl_option): New function. |
|
8481 (Fdassl_options): Handle single arg. |
|
8482 * f-fsolve.cc (set_fsolve_option): Rename from do_fsolve_option. |
|
8483 (show_fsolve_option): New function. |
|
8484 (Ffsolve_options): Handle single arg. |
|
8485 * f-fsqp.cc (set_fsqp_option): Rename from do_fsqp_option. |
|
8486 (show_fsqp_option): New function. |
|
8487 (Ffsqp_options): Handle single arg. |
|
8488 * f-lpsolve.cc (set_lpsolve_option): Rename from do_lpsolve_option. |
|
8489 (show_lpsolve_option): New function. |
|
8490 (Flpsolve_options): Handle single arg. |
|
8491 * f-lsode.cc (set_lsode_option): Rename from do_lsode_option. |
|
8492 (show_lsode_option): New function. |
|
8493 (Flsode_options): Handle single arg. |
|
8494 * f-npsol.cc (set_npsol_option): Rename from do_npsol_option. |
|
8495 (show_npsol_option): New function. |
|
8496 (Fnpsol_options): Handle single arg. |
|
8497 * f-qpsol.cc (set_qpsol_option): Rename from do_qpsol_option. |
|
8498 (show_qpsol_option): New function. |
|
8499 (Fqpsol_options): Handle single arg. |
|
8500 * f-quad.cc: (set_quad_option): Rename from do_quad_option. |
|
8501 (show_quad_option): New function. |
|
8502 (Fquad_options): Handle single arg. |
|
8503 (Fquad): Doc fix. |
|
8504 |
|
8505 Tue Aug 22 00:38:05 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8506 |
|
8507 * tree-plot.cc (do_external_plotter_cd): New function. |
|
8508 * dirfns.cc (octave_change_to_directory): New function. If cd is |
|
8509 successful, also call do_external_plotter_cd(). |
|
8510 (Fcd): Call octave_change_to_directory(), not change_to_directory(). |
|
8511 |
|
8512 * pr-output.cc (pr_any_float): Change declaration of counter to |
|
8513 size_t to avoid gcc warnings. |
|
8514 |
|
8515 * idx-vector.cc, octave-hist.cc, tree-const.cc, tree-expr.cc, |
|
8516 tree-misc.cc, utils.cc, xpow.cc, Map.cc: |
|
8517 Update for change in for loop variable scope for gcc 2.7.0. |
|
8518 |
|
8519 Mon Aug 21 19:34:53 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8520 |
|
8521 * tree-const.cc (fortran_style_matrix_assignment): Properly handle |
|
8522 case of complex LHS, real RHS. |
|
8523 |
|
8524 * Makefile.in: Only include dependency files if $(omit_deps) is |
|
8525 not set. |
|
8526 |
|
8527 Wed Jul 5 00:03:58 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8528 |
|
8529 * sysdep.cc: Explicitly include string.h. |
|
8530 |
|
8531 Sun Jun 25 00:18:10 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8532 |
|
8533 * load-save.cc (too_large_for_float (const Matrix&)): |
|
8534 Extract elements as doubles, not Complex. |
|
8535 |
|
8536 Sat Jun 24 22:59:15 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8537 |
|
8538 * pr-output.cc (any_element_is_inf_or_nan): Declare extern, not static. |
|
8539 * f-svd.cc (Fsvd): Call here to avoid trying to take SVD of matrix |
|
8540 containing Inf or NaN values. |
|
8541 |
|
8542 * pr-output.cc (bit_format): New file-scope variable. |
|
8543 (set_format, pr_any_float): Handle bit_format. |
|
8544 (octave_print_internal): Handle bit_format like bank_format. |
|
8545 (init_format_state): Initialize bit_format. |
|
8546 (set_format_style): Allow `format bit' and `format native-bit'. |
|
8547 |
|
8548 Thu Jun 8 15:20:26 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8549 |
|
8550 * mappers.cc (arg, imag, signum): If arg is NaN, return NaN. |
|
8551 |
|
8552 Mon May 15 14:47:04 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8553 |
|
8554 * pager.cc (Fdiary): Initialize diary_file here, not in the |
|
8555 file-scope declaration. |
|
8556 |
|
8557 * tree-expr.cc (tree_index_expression::eval): |
|
8558 Handle nargin == 0 the same as other cases. |
|
8559 |
|
8560 Tue May 2 10:02:23 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8561 |
|
8562 * load-save.cc (do_double_format_conversion): Add missing breaks. |
|
8563 (do_float_format_conversion): Likewise. |
|
8564 |
|
8565 Mon May 1 13:50:24 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8566 |
|
8567 * Makefile.in (OCTAVE_LIBS): Add @LIBPLPLOT@ to the list. |
|
8568 |
|
8569 * timefns.cc (Ftime): Handle GETTIMEOFDAY_NO_TZ. |
|
8570 |
|
8571 * Makefile.in (SOURCES): Delete tc-rep.cc, tc-rep-ass.cc, and |
|
8572 tc-rep-idx.cc from the list. |
|
8573 |
|
8574 * tree-const.h: Add #pragma interface. |
|
8575 * tree-const.cc: Add contents of tc-rep.cc, tc-rep-ass.cc, and |
|
8576 tc-idx.cc to this file. Add #pragma implementation. This makes |
|
8577 tree-const.cc large, but makes the final binary smaller. |
|
8578 |
|
8579 * unwind-prot.h unwind-prot.cc token.cc token.h procstream.cc |
|
8580 procstream.h idx-vector.cc idx-vector.h symtab.cc symtab.h |
|
8581 oct-map.cc oct-map.h oct-obj.cc oct-obj.h tree-plot.h tree-plot.cc |
|
8582 tree-misc.cc tree-misc.h tree-expr.cc tree-expr.h tree-cmd.cc |
|
8583 tree-cmd.h tree-base.cc tree-base.h: |
|
8584 Add #pragma interface/implementation. |
|
8585 |
|
8586 * Makefile.in (OCTAVE_LIBS): Delete @LIBINFO@ from list. |
|
8587 * help.cc: Don't include info headers or extern declarations for |
|
8588 functions from info. |
|
8589 (try_info): Call info as a subprocess. Delete second arg. |
|
8590 Handle SIGINT here, not in help_from_info(). |
|
8591 (help_from_info): Complain if info doesn't work. |
|
8592 |
|
8593 * defun-dld.h (DEFUN_DLD_BUILTIN) [OCTAVE_LITE && MAKE_BUILTINS]: |
|
8594 If ! WITH_DLD, simply emit a character string constant. |
|
8595 |
|
8596 Fri Apr 28 15:23:06 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8597 |
|
8598 * lex.l ({IDENT}{S}*): Don't delete tok. That's handled by |
|
8599 strip_trailing_whitespace() now. |
|
8600 (<HELP_FCN>[^ \t\n]*{S}*|<TEXT_FCN>[^ \t\n\;\,]*{S}*): Ditto. |
|
8601 |
|
8602 * pathsearch.h: Include kpathsea/progname.h. |
|
8603 * octave.cc (initialize_globals): Call kpse_set_progname(). |
|
8604 |
|
8605 * token.h: Declare copy constructor and operator = private. |
|
8606 * token.cc: Abort if copy constructor or operator = is used. |
|
8607 |
|
8608 Thu Apr 27 13:54:39 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8609 |
|
8610 * tree-expr.cc (lookup_map_element): Don't list default argument |
|
8611 values here too. |
|
8612 |
|
8613 * pr-output.cc (hex_format): New file-scope variable. |
|
8614 (set_format, pr_any_float): Handle hex_format. |
|
8615 (octave_print_internal): Handle hex_format like bank_format. |
|
8616 (init_format_state): Initialize hex_format. |
|
8617 (set_format_style): Allow `format hex' and `format native-hex'. |
|
8618 |
|
8619 * variables.cc (bind_ans): Create ans_id each time with new and |
|
8620 ask tree_simple_assignment_expression to handle cleaning it up. |
|
8621 This apparently plugs a memory leak. |
|
8622 |
|
8623 * help.cc (Ftype): Don't try to print map constants. Handle |
|
8624 references to structure members. |
|
8625 |
|
8626 Wed Apr 26 12:40:59 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8627 |
|
8628 * input.cc (generate_struct_completions): New function. |
|
8629 (generate_possible_completions): Likewise. |
|
8630 (looks_like_struct): Likewise. |
|
8631 (command_generator): Handle completion of struct variables. |
|
8632 |
|
8633 * tree-expr.h, tree-expr.cc (tree_fvc::lookup_map_element): |
|
8634 Add insert and silent args. |
|
8635 |
|
8636 * oct-map.cc: New file. |
|
8637 * Makefile.in (SOURCES): Add it to the list. |
|
8638 |
|
8639 Mon Apr 24 09:41:02 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8640 |
|
8641 * variables.cc (Fexist): Handle structure references too. |
|
8642 |
|
8643 * tree-const.cc (lookup_map_element (const char*, int, int): |
|
8644 New function. |
|
8645 (lookup_map_element (SLList<char*>&, int, int): New arg, silent. |
|
8646 * tc-rep.cc (lookup_map_element): New arg, silent. If nonzero, |
|
8647 don't call error(). |
|
8648 |
|
8649 * tc-rep.h (is_empty): Define here. |
|
8650 * tree-const.h (is_empty): Hand off to TC_REP::is_empty(). |
|
8651 |
|
8652 * data.cc (Fstruct_contains): Call lookup_map_element on args(0) |
|
8653 instead of extracting the map and calling contains() on it. |
|
8654 |
|
8655 * parse.y (EPLUS, EMINUS): New tokens. |
|
8656 (simple_expr): Handle EPLUS, EMINUS the same as `+' and `-'. |
|
8657 * lex.l (".+", ".-"): New patterns. Match these separately to |
|
8658 disallow using them as unary operators. |
|
8659 |
|
8660 * lex.l (next_token_is_bin_op): Simplify by noting that spacing |
|
8661 only matters for those tokens that can also be unary ops. |
|
8662 |
|
8663 Fri Apr 21 14:34:45 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8664 |
|
8665 * load-save.cc (read_ascii_data): Allow reading of empty |
|
8666 matrices. |
|
8667 |
|
8668 * tc-rep-ass.cc (vector_assignment): Only assert that we are not |
|
8669 doing fortran-style indexing and that nr <= 1 || nc <= 1. |
|
8670 (do_vector_assign): Handle assignment of [] when one dimension is |
|
8671 zero and the other is anything. |
|
8672 |
|
8673 Thu Apr 20 13:56:21 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8674 |
|
8675 * tc-rep-ass.cc (delete_rows, delete_columns): Simply return if |
|
8676 num_to_delete is 0. |
|
8677 |
|
8678 * lex.l (handle_identifier): Don't match plot option keywords |
|
8679 inside parentheses or braces. |
|
8680 |
|
8681 * variables.cc (parse_fcn_file): Also delete tmp_help_txt if |
|
8682 running a script. |
|
8683 |
|
8684 * tree-cmd.h (tree_command): Add destructor. |
|
8685 |
|
8686 * tree-expr.h tree_simple_assignment_expression (lhs_idx_expr): |
|
8687 Hang on to idx_expr, not just its parts so it can be deleted. |
|
8688 (init): Initialize it. |
|
8689 * tree-expr.cc (~tree_simple_assignment_expression): Delete it. |
|
8690 |
|
8691 * tree-expr.h (tree_multi_val_ret, tree_oct_obj, tree_fvc, |
|
8692 tree_identifier, tree_builtin, tree_function): Add destructors. |
|
8693 * tree-expr.cc (tree_function::~tree_function): Delete some stuff. |
|
8694 |
|
8695 * tree-misc.h (tree_va_return_list): Add destructor. |
|
8696 |
|
8697 * octave.cc (__builtin_new, __builtin_delete): Provide our own, |
|
8698 for debugging. |
|
8699 |
|
8700 * utils.cc (strconcat): Don't depend on the return value from |
|
8701 strcat. |
|
8702 (file_in_path): Simplify logic. |
|
8703 |
|
8704 * parse.y (maybe_convert_to_ans_assign): Create ans_id each time |
|
8705 with new and ask tree_simple_assignment_expression to handle |
|
8706 cleaning it up. This apparently plugs a memory leak. |
|
8707 |
|
8708 * lex.l (strip_trailing_whitespace): Declare retval static. |
|
8709 Delete it before saving next string. |
|
8710 |
|
8711 * error.cc (Ferror): Do call error() for empty string args. |
|
8712 (error_1): Don't print anything if fmt is "" or "\n", but do set |
|
8713 the error state appropriately. |
|
8714 |
|
8715 * tree-cmd.cc (tree_unwind_protect::eval): Handle return and break |
|
8716 in the `try' part of the statement. |
|
8717 |
|
8718 Mon Apr 10 19:29:44 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8719 |
|
8720 * f-expm.cc, f-givens.cc, f-qzval.cc, f-syl.cc, f-rand.cc: |
|
8721 Where appropriate, declare Fortran functions to take reference |
|
8722 instead of pointer args. Change callers. |
|
8723 |
|
8724 * mappers.cc: Declare Fortran functions to take reference instead |
|
8725 of pointer args. Change callers. |
|
8726 |
|
8727 * gamma.c, lgamma.c, erfc.c, erf.c, atanh.c, asinh.c, acosh.c: |
|
8728 Declare Fortran functions to take reference instead of pointer |
|
8729 args. |
|
8730 |
|
8731 Sun Apr 9 19:38:53 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8732 |
|
8733 * file-io.cc (Fpopen, Fpclose, Fexecute, Fsync_system, |
|
8734 Fasync_system, Fwaitpid, Fmkfifo, Funlink): New functions. |
|
8735 |
|
8736 * sighandlers.cc (sigchld_handler): New function. |
|
8737 (install_signal_handlers): Add call to install |
|
8738 sigchld_handler. (This is #if 0'd out, waiting for code to help |
|
8739 determine which child exited and what to do about it). |
|
8740 |
|
8741 * tree-expr.h (tree_oct_obj): New class. |
|
8742 |
|
8743 * tree-expr.h (tree_multi_assignment_expression::preserve): New |
|
8744 data member. Add arg with default value to constructors. Change |
|
8745 callers as necessary. |
|
8746 * tree-expr.cc (~tree_multi_assignment_expression): Conditionally |
|
8747 delete lhs. |
|
8748 |
|
8749 * parse.y (make_multi_val_ret): Pass matrix instead of getting it |
|
8750 from the global matrix list. |
|
8751 (expression): Extract matrix from matrix list before calling |
|
8752 make_multi_val_ret(). |
|
8753 |
|
8754 * parse.y (command): Handle new for loop syntax for structures. |
|
8755 |
|
8756 * tree-plot.h (subplot_list): Include tree_print_code() in |
|
8757 initializer lists for constructors. |
|
8758 * tree-expr.h (tree_statement_list, tree_argument_list, |
|
8759 tree_parameter_list, tree_return_list, tree_global_init_list, |
|
8760 tree_if_command_list, ): Likewise. |
|
8761 |
|
8762 * tree-cmd.h (tree_for_command::id_list): New data member. |
|
8763 (tree_for_command (tree_return_list*, tree_expression*, |
|
8764 tree_statement_list*, int, int)): Likewise. |
|
8765 * tree-cmd.cc (tree_for_command::eval): Handle for loops with |
|
8766 structures. |
|
8767 (do_for_loop_once (tree_return_list*, Octave_object&, int&)): |
|
8768 New form for handling for loops with structures. |
|
8769 |
|
8770 * sysdep.cc (octave_ieee_init): Determine floating point format |
|
8771 here. |
|
8772 (native_float_format): New global variable. |
|
8773 (Fisieee): Compute return value from native_float_format, not by |
|
8774 using preprocessor macros. |
|
8775 * sysdep.h (enum floating_point_format): Move declaration here. |
|
8776 * load-save.cc: From here. |
|
8777 Always define all floating point format conversion routines. |
|
8778 (do_double_format_conversion, do_float_format_conversion): |
|
8779 Use native_float_format instead of preprocessor macros. |
|
8780 |
|
8781 Sat Apr 8 15:41:35 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8782 |
|
8783 * Makefile (TEMPLATE_SRC): New variable. |
|
8784 (DISTFILES): Add $(TEMPLATE_SRC). |
|
8785 (SOURCES): Delete Map.cc and SLStack.cc from here. |
|
8786 |
|
8787 * variables.cc (install_builtin_variables): Use OCTAVE_VERSION |
|
8788 instead of version_string to initialize OCTAVE_VERSION. |
|
8789 * version.h (version_string): Delete. |
|
8790 |
|
8791 * getopt.c (_getopt_internal): Initialize indfound to avoid warning. |
|
8792 |
|
8793 Fri Apr 7 15:29:41 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8794 |
|
8795 * tc-inlines.h (REP_RHS_MATRIX): Just check to see if tc is real |
|
8796 or complex. If conversion fails, return. |
|
8797 |
|
8798 Thu Apr 6 00:10:47 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8799 |
|
8800 * data.cc (Fstruct_contains): New function. |
|
8801 |
|
8802 * tc-rep.cc (print_code): Add extra parens around while condition |
|
8803 to avoid warning. |
|
8804 * utils.cc (undo_string_escapes): Likewise. |
|
8805 * input.cc (decode_prompt_string): Likewise. Also rewrite if |
|
8806 statement to avoid warning. |
|
8807 |
|
8808 Tue Apr 4 22:54:17 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8809 |
|
8810 * tree-expr.cc (tree_multi_assignment_expression::eval, |
|
8811 tree_simple_assignment_expression::eval): Call print_constant |
|
8812 even if user_pref.print_answer_id_name is false. |
|
8813 |
|
8814 Mon Apr 3 17:57:14 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8815 |
|
8816 * tc-inlines.h (TC_REP): Avoid redefinition. |
|
8817 |
|
8818 * tree-const.h (do_binary_op, do_unary_op): Declare as friends of |
|
8819 tree_constant class too. |
|
8820 |
|
8821 * tree-plot.h (subplot_using::have_values): Delete data member. |
|
8822 * tree-plot.cc (subplot_using::eval): Always recompute values. |
|
8823 |
|
8824 Fri Mar 31 10:18:32 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8825 |
|
8826 * tc-rep.cc (print): Print open brace for structures here. |
|
8827 * tree-expr.cc (print_constant): Not here. |
|
8828 |
|
8829 * symtab.cc (define): Don't delete arg if sv_fcn fails. |
|
8830 |
|
8831 * tree-const.cc (print): New function. Create ostrstream buffer |
|
8832 and pass it to rep->print(). |
|
8833 * tree-const.h (eval (int)): Call print(), not rep->print(). |
|
8834 * tc-rep.cc (structure_indent_level): New file-scope variable. |
|
8835 (print): New arg, output_buf, is stream to print to. |
|
8836 Print values of structure elements too. |
|
8837 |
|
8838 * user-prefs.h (user_preferences): New field, struct_levels_to_print. |
|
8839 * user-prefs.cc (struct_levels_to_print): New function. |
|
8840 * variables.cc (install_builtin_variables): Add DEFVAR for new |
|
8841 variable struct_levels_to_print. |
|
8842 |
|
8843 * tree-const.cc (print_as_scalar, print_as_structure): Move here |
|
8844 from tree-expr.cc and make extern. |
|
8845 |
|
8846 * tree-expr.cc (print_as_structure): New function. |
|
8847 (print_constant): Use it. |
|
8848 |
|
8849 * tree-expr.cc (print_constant): New arg, print_padding. |
|
8850 (tree_simple_assignment_expression::eval): Use print_constant |
|
8851 instead of duplicating code here. |
|
8852 (tree_multi_assignment_expression::eval): Likewise. |
|
8853 |
|
8854 Thu Mar 30 13:24:11 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8855 |
|
8856 * Makefile.in (SOURCES): Add resource.cc. |
|
8857 * resource.cc: New file, extracted from timefns.cc. |
|
8858 (Fgetrusage): New function. |
|
8859 * timefns.cc (cputime): Delete (now implemented in a function file |
|
8860 using new getrusage function). |
|
8861 |
|
8862 Wed Mar 29 22:52:42 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8863 |
|
8864 * Makefile.in (SOURCES): Add strftime.c. |
|
8865 * strftime.c: New file, from sh-utils distribution. |
|
8866 |
|
8867 * timefns.cc (mk_tm_map, extract_tm, Ftime, Fgmtime, Flocaltime, |
|
8868 Fmktime, Fstrftime): New basic time functions. |
|
8869 (Fclock, Fdate): Delete (now implemented in function files using new |
|
8870 time functions). |
|
8871 |
|
8872 Tue Mar 28 17:51:51 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8873 |
|
8874 * file-io.cc (return_valid_file, do_printf, do_scanf, |
|
8875 fclose_internal, feof_internal, ferror_internal, fflush_internal, |
|
8876 fgets_internal, fopen_internal, fread_internal, freport_internal, |
|
8877 frewind_internal, fseek_internal, ftell_internal, |
|
8878 fwrite_internal): Declare static. |
|
8879 * file-io.h: Delete extern declarations for them. |
|
8880 |
|
8881 Fri Mar 24 09:52:50 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8882 |
|
8883 * pr-output.cc (pr_col_num_header): New function. |
|
8884 (compact_format): New file-scope variable. |
|
8885 (set_format_style): Handle loose and compact formats. |
|
8886 (octave_print_internal (ostream&, const ComplexMatrix&, int)): |
|
8887 Replace duplicate code with call to pr_col_num_header(). |
|
8888 (octave_print_internal (ostream&, const Matrix&, int): Likewise. |
|
8889 (octave_print_internal (ostream&, const Range&, int): Likewise. |
|
8890 |
|
8891 Tue Mar 21 08:44:48 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8892 |
|
8893 * mappers.cc (xgamma): Always use Slatec library function. |
|
8894 * (xlgamma): Likewise. |
|
8895 * Makefile.in (SOURCES): Don't include lgamma.c. |
|
8896 |
|
8897 Fri Mar 17 22:38:39 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8898 |
|
8899 * tc-rep.cc (TC_REP::new): Don't try to keep track of newlist_tail. |
|
8900 Explicitly initialize newlist to zero. |
|
8901 * tree-const.cc (tree_constant::operator new): Likewise. |
|
8902 |
|
8903 Fri Mar 10 12:40:24 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8904 |
|
8905 * tree-cmd.cc (quit_loop_now): Declare inline. |
|
8906 (tree_for_command::do_for_loop_once): Split into two versions, one |
|
8907 for the general case and one for when the loop variable is a |
|
8908 simple identifier. |
|
8909 (DO_LOOP): New macro. Move tests outside of loop. |
|
8910 (tree_for_command::eval): Speed up by checking to see if loop |
|
8911 variable is a simple identifier and by using DO_LOOP. |
|
8912 |
|
8913 * tree-const.h: New union of rep and freeptr. The freeptr element |
|
8914 is used for our custom memory management functions. |
|
8915 |
|
8916 * tc-rep.h: Add freeptr element to anonymous union (for our custom |
|
8917 memory management functions). |
|
8918 |
|
8919 * tree-const.cc (newlist, newlist_grow_size, newlist_tail): New |
|
8920 static variables. |
|
8921 (tree_constant::operator new): Always define to allow more |
|
8922 efficient allocation of single tree_constants. |
|
8923 (tree_constant::operator delete): Likewise, handle deletion of the |
|
8924 memory we allocate. |
|
8925 |
|
8926 * tc-rep.cc (newlist, newlist_grow_size, newlist_tail): New static |
|
8927 variables. |
|
8928 (tree_constant::operator new): Always define to allow more |
|
8929 efficient allocation of single tree_constants. |
|
8930 (tree_constant::operator delete): Likewise, handle deletion of the |
|
8931 memory we allocate. |
|
8932 |
|
8933 Fri Mar 3 14:00:08 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8934 |
|
8935 * error.cc (verror): Terminate output_buf with ends. |
|
8936 |
|
8937 * statdefs.h: Use C-style comment in first line instead of |
|
8938 C++-style comment. |
|
8939 |
|
8940 Mon Feb 27 10:11:18 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8941 |
|
8942 * parse.y (maybe_convert_to_ans_assign): Only lookup ans once. |
|
8943 * variables.cc (bind_ans): New function. |
|
8944 * tree-expr.cc (tree_identifier::eval (int)): Use it here. |
|
8945 (tree_identifier::eval (int, int, const Octave_object&): And here. |
|
8946 |
|
8947 * tree-expr.cc (install_nargin_and_nargout): New function. |
|
8948 * tree-expr.h (tree_function::tree_function (tree_statement_list *, |
|
8949 symbol_table *, int, int)): Call it. |
|
8950 |
|
8951 * tree-expr.cc (tree_function::bind_nargin_and_nargout): New function. |
|
8952 (tree_function::eval): Call it insead of the one from variables.cc. |
|
8953 |
|
8954 * variables.cc (bind_nargin_and_nargout): #if 0 out. |
|
8955 |
|
8956 Sun Feb 26 00:17:06 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8957 |
|
8958 * load-save.cc (Fload, Fsave): Free fname returned by tilde_expand(). |
|
8959 * dirfns.cc (Fls): Likewise. |
|
8960 |
|
8961 * tree-expr.cc (tree_multi_assignment_expression::eval (int, int, |
|
8962 const Octave_object&)): Call tree_return_list::operator () (Pix) |
|
8963 explicitly. |
|
8964 |
|
8965 * octave.cc (initialize_globals): Put TEXMF in the environment for |
|
8966 kpthsea. |
|
8967 |
|
8968 * Makefile.in (OCTAVE_LIBS): Use @LIBINFO@ and @LIBREADLINE@, |
|
8969 substituted by configure. Use kpathsea.a, not libkpathsea, so we |
|
8970 don't have to modify the kpathsea Makefile. |
|
8971 |
|
8972 Sat Feb 25 18:59:26 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8973 |
|
8974 * pathsearch.cc: New file. |
|
8975 * pathsearch.h: New file. |
|
8976 * Makefile.in (INCLUDES): Include it in the list. |
|
8977 * dynamic-ld.cc, help.cc, utils.cc: Use it instead of repeating |
|
8978 identical code multiple times. |
|
8979 |
|
8980 * variables.cc (install_builtin_variables): Only DEFVAR |
|
8981 suppress_verbose_help_message if USE_GNU_INFO. |
|
8982 |
|
8983 * help.cc (Fhelp): Only handle -i if USE_GNU_INFO. |
|
8984 (additional_help_message): Only print message if USE_GNU_INFO. |
|
8985 (builtin_help): New function. |
|
8986 (help_from_info): New function. Print warning if not USE_GNU_INFO. |
|
8987 |
|
8988 See ChangeLog.1 in the top level directory for earlier changes. |