3956
|
1 2002-05-24 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2 |
3959
|
3 * DLD-FUNCTIONS/lsode.cc (Flsode): Also return istate and error |
|
4 message. Only generate error if user is not at least requesting |
|
5 the istate output. |
|
6 |
3956
|
7 * load-save.cc (hdf5_import_multidim, hdf5_check_attr, |
|
8 hdf5_callback_data, hdf5_read_next_data, read_hdf5_data, |
|
9 add_hdf5_data): Use 0, not NULL in calls to HDF routines. |
|
10 |
|
11 * oct-procbuf.cc (octave_procbuf::open): Use NULL, not 0 as last |
|
12 arg in call to execl.xo |
|
13 |
|
14 * debug.cc (get_user_function): Initialise dbg_fcn to 0, not NULL. |
|
15 |
3952
|
16 2002-05-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
17 |
|
18 * DLD-FUNCTIONS/lsode.cc (LSODE_options::da_set_opt_mf, |
|
19 LSODE_options::da_get_opt_mf): New typedefs. |
|
20 (LSODE_OPTIONS::da_set_fcn, LSODE_OPTIONS::da_get_fcn): New fields. |
|
21 (lsode_option_table): Fill them in. |
|
22 (set_lsode_option (const Array<double>&)): New function. |
|
23 (print_lsode_option_list): Handle vector options. |
|
24 (show_lsode_option_list): Likewise. |
|
25 (Flsode_options): Likewise. |
|
26 |
3955
|
27 * DLD-FUNCTIONS/lsode.cc (LSODE_options::s_set_opt_mf, |
|
28 LSODE_options::s_get_opt_mf): New typedefs. |
|
29 (LSODE_OPTIONS::s_set_fcn, LSODE_OPTIONS::s_get_fcn): New fields. |
|
30 (lsode_option_table): Fill them in. |
|
31 (set_lsode_option (const std::string&)): New function. |
|
32 (print_lsode_option_list): Handle string options. |
|
33 (show_lsode_option_list): Likewise. |
|
34 (Flsode_options): Likewise. |
|
35 |
3948
|
36 2002-05-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
37 |
3951
|
38 * c-file-ptr-stream.h (c_file_ptr_buf::fclose): New function. |
|
39 (c_file_ptr_buf::c_file_ptr_buf): Use it as default argument |
|
40 instead of extern "C" fclose function. |
|
41 (i_c_file_ptr_stream::i_c_file_ptr_stream): Likewise. |
|
42 (o_c_file_ptr_stream::o_c_file_ptr_stream): Likewise. |
|
43 * oct-stdstrm.h (octave_istdiostream::octave_istdiostream): Likewise. |
|
44 (octave_istdiostream::create): Likewise. |
|
45 * oct-stdstrm.h (octave_ostdiostream::octave_ostdiostream): Likewise. |
|
46 (octave_ostdiostream::create): Likewise. |
|
47 |
|
48 * oct-prcstrm.cc (cxx_pclose): New static function. |
|
49 (octave_iprocstream::octave_iprocstream): Pass it to |
|
50 octave_istdiostream constructor instead of extern "C" pclose function. |
|
51 (octave_oprocstream::octave_oprocstream): Pass it to |
|
52 octave_ostdiostream constructor instead of extern "C" pclose function. |
|
53 |
3948
|
54 * debug.cc (Fdbtype): Use C++ strings, not C strings. |
|
55 |
3946
|
56 2002-05-22 Mumit Khan <khan@nanotech.wisc.edu> |
|
57 |
|
58 * debug.cc: Include cstdlib instead of stdlib.h. Include cstring. |
|
59 (dbtype): Use strchr instead of index. |
|
60 * TEMPLATE-INST/Array-tc.cc (Array<octave_value>::resize_fill_value): |
|
61 Fix template specialization syntax. |
|
62 |
3944
|
63 2002-05-17 Mumit Khan <khan@nanotech.wisc.edu> |
|
64 |
|
65 * c-file-ptr-stream.h (OCTAVE_STD_FILEBUF): New macro to handle |
|
66 various forms of extensions to std::filebuf. |
|
67 (c_file_ptr_buf::c_file_ptr_buf): Use. |
|
68 * pt-idx.cc (tree_index_expression::tree_index_expression): Remove |
|
69 default arguments are from definition. |
|
70 * symtab.cc (SYMBOL_DEF::print_info): Add std::. |
|
71 (symbol_record::print_info): Likewise. |
|
72 (symbol_table::print_info): Likewise. |
|
73 |
3936
|
74 2002-05-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
75 |
3943
|
76 * oct-map.cc (Octave_map::assign): Resize RHS if it is shorter |
|
77 than existing struct array. |
|
78 |
3940
|
79 * ov-cell.cc (octave_cell::subsasgn): If an error has occurred, |
|
80 skip final assignment step. |
|
81 * ov-list.cc (octave_list::subsasgn): Likewise. |
|
82 * oct-lvalue.cc (octave_lvalue::assign): Add parens to clarify intent. |
|
83 (octave_lvalue::do_unary_op): Likewise. |
|
84 |
3939
|
85 * parse.y (function_end): Also accept end of input as end of |
|
86 function if input is coming from an eval string. |
|
87 |
3936
|
88 * pr-output.cc (pr_any_float): Don't convert -0 to 0. |
|
89 |
3934
|
90 2002-05-15 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
91 |
3935
|
92 * input.cc (generate_completion): If it looks like we are |
|
93 completing a struct, set completion append char to '\0'. |
|
94 |
|
95 * variables.cc (generate_struct_completions): Temporarily set |
|
96 warnings off here. |
|
97 |
3934
|
98 * error.cc (warning): Don't do anything if Vdebug_option == "off". |
|
99 Only print backtrace if Vdebug_option == "backtrace". |
|
100 (handle_message): Now returns a string containing the text of the |
|
101 formatted message. Change all callers. |
|
102 (Fwarning): Now a text-style function. Handle Matlab-compatible |
|
103 warning options. |
3935
|
104 (Flasterr, Flastwarn, set_warning_option): New functions. |
|
105 (Vlast_error_message, Vlast_warning_message, Vwarning_frequency, |
|
106 Vwarning_option): New static variables. |
3934
|
107 (vwarning): Set Vlast_warning_message here too. |
3935
|
108 (verror): Set Vlast_error_message here too. |
3934
|
109 |
3933
|
110 2002-05-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
111 |
|
112 * ov.h (octave_value::get_count): Now const. |
|
113 |
|
114 * ov.h, ov.cc (octave_value::do_non_const_unary_op, |
|
115 octave_value::assign): Idx is now a list of octave_value_list |
|
116 objects. |
|
117 |
|
118 * ov-base.cc, ov-base.h (octave_base_value::do_struct_elt_index_op, |
|
119 octave_base_value::struct_elt_ref): Delete. |
|
120 * ov-struct.cc, ov-struct.h (octave_sruct::do_struct_elt_index_op, |
|
121 octave_struct::struct_elt_ref): Delete. |
|
122 * ov.cc, ov.h (octave_value::do_struct_elt_index_op, |
|
123 octave_value::struct_elt_ref, octave_value::assign_struct_elt, |
|
124 octave_value::convert_and_assign, octave_value::try_assignment, |
|
125 octave_value::try_assignment_with_conversion, |
|
126 octave_value::simple_assign): Delete. |
|
127 |
|
128 * parse.y (make_index_expression): Type is now a single |
|
129 character. Change all callers. If expr is already an index |
|
130 expression, append index to it. |
|
131 (make_indirect_ref): Likewise. |
|
132 |
|
133 * pt-pr-code.cc (octave_print_internal (std::ostream&, const |
|
134 Cell&, bool, int)): Now just a dummy function, panic if called. |
|
135 |
|
136 * pt-idx.cc (tree_index_expression::make_arg_struct): New function. |
|
137 (tree_index_expression::type): Delete enum, rename from itype, now |
|
138 a string. |
|
139 (tree_index_expression::arg_nm): Now a list of string_vector objects. |
|
140 (tree_index_expression::idx): Now a list of tree_argument_list* |
|
141 objects. |
|
142 (tree_index_expression::is_index_expression): Always return true. |
|
143 (tree_index_expression::apend, make_value_list, make_subs_cell): |
|
144 New functions. |
|
145 |
|
146 * pt-pr-code.cc (visit_index_expression): Handle new definition of |
|
147 tree_index_expression object. |
|
148 * pt-check.cc (visit_index_expression): Likewise. |
|
149 * pt-bp.cc (visit_index_expression): Likewise. |
|
150 |
|
151 * ov-usr-fcn.h (octave_user_function::restore_args_passed): |
|
152 Clear args_passed even if nothing was saved. |
|
153 |
|
154 * ov-base.cc (octave_base_value::subsasgn, |
|
155 octave_base_value::map_keys, octave_base_value::print_info): |
|
156 New functions. |
|
157 |
|
158 * ov.h, ov.cc (octave_value::map_keys, octave_value::print_info, |
|
159 octave_value::subsref, octave_value::subsasgn, |
|
160 octave_value::numeric_assign, octave_value::next_subsref): |
|
161 New functions. |
|
162 (octave_value::empty_conv): New static function. |
|
163 (octave_value (octave_value *, int)): New arg, count. |
|
164 |
|
165 * ov-base-mat.cc (octave_base_matrix<MT>::subsref, |
|
166 octave_base_matrix<MT>::subsasgn): New functions. |
|
167 * ov-base-mat.h: Provide decls. |
|
168 |
|
169 * ov-builtin.cc (octave_builtin::subsref): New function. |
|
170 * ov-builtin.h: Provide decl. |
|
171 |
|
172 * ov-range.cc (octave_range::subsref): New function. |
|
173 * ov-range.h: Provide decl. |
|
174 |
|
175 * ov-cell.cc (octave_cell::subsref, octave_cell::subsasgn, |
|
176 octave_cell::list_value, octave_cell::print, |
|
177 octave_cell::print_raw, octave_cell::print_name_tag): New functions. |
|
178 * ov-cell.h: Provide decls. |
|
179 |
|
180 * ov-struct.cc (octave_struct::dotref, octave_struct::subsref, |
|
181 octave_struct::subsasgn, gripe_invalid_index, |
|
182 gripe_invalid_index_for_assignment, grip_invalid_index_type, |
|
183 gripe_failed_assignment): New functions. |
|
184 (octave_struct::numeric_conv): New static function. |
|
185 * ov-struct.h: Provide decls. |
|
186 (octave_struct::is_constant): Return true. |
|
187 (octave_struct::map_keys): New function. |
|
188 |
|
189 * ov-list.cc (octave_list::subsref, octave_list::subsasgn): |
|
190 New functions. |
|
191 * ov-list.h: Provide decls. |
|
192 |
|
193 * ov-usr-fcn.cc (octave_user_function::subsref, |
|
194 octave_user_function::print_symtab_info): New functions. |
|
195 * ov-usr-fcn.h: Provide decl. |
|
196 |
|
197 * ov-mapper.cc (octave_mapper::subsref): New function. |
|
198 * ov-mapper.h: Provide decl. |
|
199 |
|
200 * ov-base.cc (octave_base_value::subsref, |
|
201 octave_base_value::subsasgn): New functions. |
|
202 * ov-base.h: Provide decls. |
|
203 |
|
204 * ov-base.cc (octave_base_value::do_index_op): New arg, resize_ok. |
|
205 * ov-base-mat.cc (octave_base_matrix<MT>::do_index_op): Likewise. |
|
206 * ov-base-nd-array.cc (octave_base_nd_array<AT>::do_index_op): Ditto. |
|
207 * ov-bool-mat.cc (octave_bool::do_index_op): Ditto. |
|
208 * ov-str-mat.cc (octave_char_matrix_str::do_index_op): Ditto. |
|
209 * ov-range.cc (octave_range::do_index_op): Ditto. |
|
210 * ov-list.cc (octave_list::do_index_op): Ditto. |
|
211 * ov.cc (octave_value::do_index_op): Ditto. |
|
212 |
|
213 * ov-base-mat.cc (octave_base_matrix<MT>::print_info): New function. |
|
214 |
|
215 * ov-base-mat.h (octave_base_matrix<MT>::empty_clone): New function. |
|
216 * ov-base-nd-array.h (octave_base_nd_array<AT>::empty_clone): Ditto. |
|
217 * ov-base.h (octave_base_value::empty_clone): Ditto. |
|
218 * ov-bool-mat.h (octave_bool::empty_clone): Ditto. |
|
219 * ov-ch-mat.h (octave_char_matrix::empty_clone): Likewise. |
|
220 * ov-colon.h (octave_magic_colon::empty_clone): Likewise. |
|
221 * ov-complex.h (octave_complex::empty_clone): Likewise. |
|
222 * ov-cx-mat.h (octave_complex_matrix::empty_clone): Likewise. |
|
223 * ov-fcn.cc (octave_function::empty_clone): Likewise. |
|
224 * ov-file.h (octave_file::empty_clone): Likewise. |
|
225 * ov-range.h (octave_range::empty_clone): Likewise. |
|
226 * ov-list.h (octave_list::empty_clone): Likewise. |
|
227 * ov-re-mat.h (octave_matrix::empty_clone): Likewise. |
|
228 * ov-re-nd-array.h (octave_double_nd_array::empty_clone): Likewise. |
|
229 * ov-str-mat.h (octave_char_matrix_str::empty_clone): Likewise. |
|
230 * ov-struct.h (octave_struct::empty_clone): Likewise. |
|
231 * ov-va_args.h (octave_all_va_args::empty_clone): Likewise. |
|
232 * ov.h (octave_value::empty_clone): Likewise. |
|
233 |
|
234 * ov-base-mat.h (octave_base_matrix<MT>::clone): Now const. |
|
235 * ov-base-nd-array.h (octave_base_nd_array<AT>::clone): Likewise. |
|
236 * ov-base.h (octave_base_value::clone): Likewise. |
|
237 * ov-bool-mat.h (octave_bool::clone): Likewise. |
|
238 * ov-ch-mat.h (octave_char_matrix::clone): Likewise. |
|
239 * ov-colon.h (octave_magic_colon::clone): Likewise. |
|
240 * ov-complex.h (octave_complex::clone): Likewise. |
|
241 * ov-cx-mat.h (octave_complex_matrix::clone): Likewise. |
|
242 * ov-fcn.h (octave_function::clone): Likewise. |
|
243 * ov-file.h (octave_file::clone): Likewise. |
|
244 * ov-range.h (octave_range::clone): Likewise. |
|
245 * ov-list.h (octave_list::clone): Likewise. |
|
246 * ov-re-mat.h (octave_matrix::clone): Likewise. |
|
247 * ov-re-nd-array.h (octave_double_nd_array::clone): Likewise. |
|
248 * ov-str-mat.h (octave_char_matrix_str::clone): Likewise. |
|
249 * ov-struct.h (octave_struct::clone): Likewise. |
|
250 * ov-va_args.h (octave_all_va_args::clone): Likewise. |
|
251 * ov.h (octave_value::clone): Likewise. |
|
252 |
|
253 * oct-lvalue.cc (octave_lvalue::assign, octave_lvalue::set_index, |
|
254 octave_lvalue::do_unary_op): Idx is now a list of indices. Simplify. |
|
255 * oct-lvalue.h (octave_lvalue::value): Simplify. |
|
256 (octave_lvalue::struct_elt_names): Delete data member. |
|
257 (octave_lvalue::type): Now string |
|
258 Update decls. |
|
259 |
|
260 * pt-exp.h (tree_expression::is_indirect_ref): |
|
261 Delete virtual function. |
|
262 |
|
263 * pt-plot.cc (subplot::extract_plot_data): Use subsref, instead of |
|
264 do_index_op. |
|
265 |
|
266 * pt-stmt.cc (tree_statement::eval): Don't try to avoid binding |
|
267 ans for structure references. |
|
268 |
|
269 * symtab.cc (symbol_record::symbol_def::print_info): Rename from |
|
270 symbol_record::symbol_def::dump_symbol_info. |
|
271 (symbol_record::print_info): Rename from |
|
272 symbol_record::dump_symbol_info. Now const.. |
|
273 (symbol_record::print_symbol_info_line): Now const. |
|
274 (symbol_table::print_info): Rename from print_stats. Accept |
|
275 ostream arg. Now const. Print more info. |
|
276 * symtab.h: Update decls. |
|
277 |
|
278 * toplev.cc (octave_config_info): Indexing a map now returns a |
|
279 list, but we only want to return the first element. |
|
280 |
|
281 * variables.cc (generate_struct_completions, looks_like_struct): |
|
282 Simplify using eval_string. |
|
283 (F__print_symtab_info__): Rename from F__dump_symtab_info__. |
|
284 Handle "top-level" and individual function names in addition to |
|
285 "global". |
|
286 (F__print_symbol_info__): Rename from F___dump_symbol_info__. |
|
287 |
|
288 * octave.cc (intern_argv): Built-in variable argv is now a cell array. |
|
289 |
|
290 * ov-complex.cc (valid_scalar_indices): Delete. |
|
291 * ov-scalar.cc (valid_scalar_indices): Delete. |
|
292 |
|
293 * oct-obj.cc (octave_value_list::valid_scalar_indices): New function. |
|
294 (octave_value_list::index): New arg, resize_ok. |
|
295 * oct-obj.h: Provide decls. |
|
296 |
|
297 * oct-map.cc (Octave_map::keys): Rename from make_name_list. |
|
298 Change all uses. |
|
299 (Octave_map::assign, Octave_map::index): New functions. |
|
300 * oct-map.h: Provide decls. |
|
301 |
|
302 * data.cc (Fstruct_contains): Use map_value instead of |
|
303 do_struct_elt_index_op. |
|
304 |
|
305 * Cell.h (Cell (const Array2<octave_value>&, int, int)): |
|
306 New constructor. |
|
307 (Cell::resize_fill_value): New static function. |
|
308 |
|
309 * input.cc (initialize_command_input): Set basic and completer |
|
310 word break characters. |
|
311 |
3932
|
312 2002-05-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
313 |
3933
|
314 * ov.h (octave_value::subsref): New function. |
|
315 * ov-base.cc (octave_base_value::subsref): Likewise. |
|
316 |
3932
|
317 * ov-struct.cc (octave_struct::print_raw): Print scalar struct |
|
318 arrays more compactly. |
|
319 |
|
320 * DLD-FUNCTIONS/time.cc (extract_tm): Handle new struct array def. |
|
321 |
|
322 * oct-map.cc (Octave_map::array_len): New data member. |
|
323 (Octave_map::operator[], Octave_map::contsnts): Return |
|
324 octave_value_list, not Octave_value. Change callers as necessary. |
|
325 (Octave_map::assign): New function. |
|
326 (Octave_map::array_length): New fucntion. |
|
327 * oct-obj.cc (octave_value_list::assign): New function. |
|
328 |
3930
|
329 2002-05-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
330 |
3931
|
331 * TEMPLATE-INST/Map-oct-obj.cc: New file. |
|
332 * Makefile.in (TI_XSRC): Add it to the list. |
|
333 |
|
334 * oct-map.h (Octave_map): Make CHMap<octave_value_list> a data |
|
335 member instead of deriving from CHMap<octave_value>, in |
|
336 preparation for structure arrays. |
|
337 |
3930
|
338 * pt-indir.h, pt-indir.cc: Delete. |
|
339 |
|
340 * pt-all.h: Don't include pt-indir.h. |
|
341 |
|
342 * Makefile.in (PT_SRC): Delete pt-indir.cc from the list. |
|
343 (PT_INCLUDES): Delete pt-indir.h from the list. |
|
344 |
|
345 * pt-walk.h (tree_walker::visit_indirect_ref): Delete. |
|
346 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_indirect_ref): |
|
347 Likewise. |
|
348 * pt-check.h, pt-check.cc (tree_checker::visit_indirect_ref): Likewise. |
|
349 * pt-bp.h, pt-bp.cc (tree_breakpoint::visit_indirect_ref): Likewise. |
|
350 |
|
351 * pt-walk.h: Delete forward decl for tree_indirect_ref. |
|
352 * variables.h: Likewise. |
|
353 |
|
354 * parse.y (make_indirect_ref): Return tree_index_expression, not |
|
355 tree_indirect_ref. |
|
356 |
|
357 * pt-idx.h (tree_index_expression::struct_elt_name): New function. |
|
358 |
|
359 * pt-idx.cc (tree_index_expression::lvalue): Handle dot case too. |
|
360 (tree_index_expression::name): Likewise. |
|
361 (tree_index_expression rvalue (int)): Likewise. |
|
362 (tree_index_expression::eval_error): Likewise. |
|
363 * pt-pr-code.cc (visit_index_expression): Likewise. |
|
364 * pt-bp.cc (tree_breakpoint::visit_index_expression): Likewise. |
|
365 |
|
366 * pt-idx.h (tree_index_expression::dot): New type enum element. |
|
367 (tree_index_expression::expr_type): New function. |
|
368 (tree_index_expression::tree_index_expression (tree_expression*, |
|
369 const std::string&, int, int)): New constructor. |
|
370 (tree_index_expression::is_index_expression): Return value is now |
|
371 conditional on itype. |
|
372 (tree_index_expression::is_indirect_ref): New function. |
|
373 (tree_index_expression::lvalue_ok): Also return true if itype is dot. |
|
374 |
3928
|
375 2002-05-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
376 |
3929
|
377 * parse.y (ABORT_PARSE): Maybe restore symbol table context too. |
|
378 |
|
379 * pt-idx.h (tree_index_expression::type): New enum. |
|
380 (tree_index_expression::etype): New data member. |
|
381 * pt-idx.h (tree_index_expression::tree_index_expression): |
|
382 New arg, t, to set type of index. |
|
383 * parse.y (make_index_expression): Likewise. |
|
384 Change all callers. |
|
385 |
3928
|
386 * ov-base.cc (cell_conv): New conversion function. |
|
387 (install_base_type_conversions): Install it. |
|
388 Install conversion for indexed assignment of octave_cells to |
|
389 undefined values. |
|
390 |
|
391 * TEMPLATE-INST/Array-tc.cc: Instantiate assign functions too. |
|
392 (Array<octave_value>::resize_fill_value (void)): |
|
393 Provide specialization for octave_value. |
|
394 |
|
395 * ov-cell.cc (octave_cell::assign (const octave_value_list&, |
|
396 const octave_value&)): New function. |
|
397 * Cell.h (Cell::Cell (const octave_value&)): New function. |
|
398 |
|
399 * OPERATORS/op-cell.cc (install_list_ops): Use DEFASSIGNANYOP_FN |
|
400 and INSTALL_ASSIGNANYOP, not DEFASSIGNOP_FN and INSTALL_ASSIGNOP. |
|
401 |
|
402 2002-05-03 Cai Jianming <caijianming@yahoo.co.uk> |
|
403 |
|
404 * OPERATORS/op-cell.cc: New file. |
|
405 * src/Makefile.in (OP_XSRC): Include it in the list. |
|
406 |
|
407 * parse.y (cell): Return a cell type instead of Matrix type. |
|
408 |
|
409 * ov.cc (install_types): Install octave_cell type. |
|
410 |
|
411 * pr-output.cc (octave_print_internal): Handle Cells. |
|
412 * pr-output.h (octave_print_internal): Provide decl. |
|
413 |
|
414 * ov-cell.h (octave_cell): Derive from octave_base_matrix<Cell>. |
|
415 * ov-cell.cc (do_index_op, assign, print, print_raw, |
|
416 print_name_tag): Delete. |
|
417 |
|
418 * Cell.cc (allocator, index): Delete. |
|
419 * Cell.h (Cell): Derive from Array2<octave_value>. |
|
420 Most functions removed since we can use those from Array2 instead. |
|
421 |
|
422 2002-05-02 Cai Jianming <caijianming@yahoo.co.uk> |
|
423 |
|
424 * ov-base-mat.cc (octave_base_matrix<MT>::assign): |
|
425 New function. |
|
426 * ov-base-mat.h (octave_base_matrix<MT>::assign): Provide decl. |
|
427 * ov-bool-mat.cc (octave_bool_matrix::assign): Delete. |
|
428 * ov-bool-mat.h (octave_bool_matrix:assign): Delete decl |
|
429 * ov-cx-mat.cc (octave_complex_matrix::assign (const |
|
430 octave_value_list& idx, const ComplexMatrix&)): Delete. |
|
431 * ov-cx-mat.h (octave_complex_matrix:assign (const |
|
432 octave_value_list& idx, const ComplexMatrix&)): Replace decl with |
|
433 function. |
|
434 * ov-re-mat.cc (octave_bool_matrix::assign): Delete. |
|
435 * ov-re-mat.h (octave_bool_matrix:assign): Delete decl. |
|
436 |
3927
|
437 2002-05-02 Cai Jianming <caijianming@yahoo.co.uk> |
|
438 |
|
439 * OPERATORS/op-bm-b.cc: New file.x |
|
440 * Makefile.in (OP_XSRC): Add it to the list. |
|
441 |
3920
|
442 2002-04-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
443 |
3922
|
444 * octave.cc (print_version_and_exit): Use |
|
445 OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_AND_WARRANTY, not |
|
446 OCTAVE_NAME_AND_VERSION. |
|
447 |
|
448 * octave.cc (verbose_usage): |
|
449 Use OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_AND_WARRANTY, not |
|
450 OCTAVE_NAME_VERSION_AND_COPYRIGHT. |
|
451 |
|
452 * version.h (OCTAVE_COPYING_STATEMENT, OCTAVE_WARRANTY_STATEMENT, |
|
453 OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_AND_WARRANTY, |
|
454 X_OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_WARRANTY_AND_BUGS, |
|
455 OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_WARRANTY_AND_BUGS, |
|
456 OCTAVE_BUGS_STATEMENT): New macros. |
|
457 (OCTAVE_STARTUP_MESSAGE): Define in terms of |
|
458 X_OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_WARRANTY_AND_BUGS |
|
459 to include bugs address and amplified warranty information. |
|
460 |
3920
|
461 * DLD-FUNCTIONS/lsode.cc (Flsode): Delete unused variable nsteps. |
|
462 |
3917
|
463 2002-04-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
464 |
|
465 * help.cc (additional_help_message): Use www.octave.org, not |
|
466 www.che.wisc.edu/octave/octave.html. |
|
467 * octave.cc (verbose_usage): Likewise. |
|
468 |
3912
|
469 2002-04-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
470 |
|
471 * DLD-FUNCTIONS/daspk.cc: New file. |
|
472 * Makefile.in (DLD_XSRC): Add it to the list. |
|
473 |
3910
|
474 2002-04-25 Paul Kienzle <pkienzle@users.sf.net> |
|
475 |
|
476 * DLD-FUNCTIONS/kron.cc: New file. |
|
477 * Makefile.in (DLD_SRC): Add it to the list. |
|
478 |
3903
|
479 2002-04-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
480 |
|
481 * parse.y (save_symtab): New non-terminal. Save current symbol |
|
482 table context here. |
|
483 (function_beg): Use it. |
|
484 (symtab_context): New file-scope variable. |
|
485 (recover_from_parsing_function): Restore symbol table context here. |
|
486 |
3901
|
487 2002-04-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
488 |
|
489 * load-save.cc (get_lines_and_columns): Handle CRLF as line |
|
490 separator in addition to LF. |
|
491 |
3897
|
492 2002-04-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
493 |
|
494 * load-save.cc (hdf5_ofstream::hdf5_ofstream): |
|
495 Explicitly List std::ostream(0) in constructor. |
|
496 (hdf5_ifstream::hdf5_ifstream): |
|
497 Explicitly List std::istream(0) in constructor. |
|
498 (hdf5_fstreambase::hdf5_fstreambase): Use std::ios::setstate, not set. |
|
499 (hdf5_fstreambase::close): Likewise. |
|
500 (hdf5_fstreambase::open): Likewise. |
|
501 |
3895
|
502 2002-04-10 Ben Sapp <bsapp@lanl.gov> |
|
503 |
|
504 * pt-stmt.cc (delete_breakpoint): List breakpoints if line < 0. |
|
505 * debug.cc (get_user_function): Check symbol by name first. |
|
506 (Fdbstop): Rename from Fdbg_set. |
|
507 (Fdbclear): Rename from Fdbg_delete. |
|
508 (Fdbstatus): Rename from Fdbg_list. |
|
509 (Fdbg_where): Rename from Fdbwhere. |
|
510 (do_dbtype, Fdbtype): New functions. |
|
511 |
|
512 2002-04-10 Peter Van Wieren <peter.vanwiere@avlna.com> |
|
513 |
|
514 * load-save.cc (save_mat5_binary_element): Save elements of 2d |
|
515 character matrices in proper order. |
|
516 |
3893
|
517 2002-04-09 Paul Kienzle <pkienzle@users.sf.net> |
|
518 |
|
519 * utils.cc (do_string_escapes): Handle \0 too. |
|
520 (undo_string_escape): Likewise. |
|
521 |
3892
|
522 2002-04-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
523 |
|
524 * toplev.cc (octave_config_info): Define struct member EXEEXT, not EXE. |
|
525 * Makefile.in (install-bin): Use $(EXEEXT), not $(EXE). |
|
526 * oct-conf.h.in (OCTAVE_CONF_EXEEXT): Define and substitute |
|
527 OCTAVE_CONF_EXEEXT, not OCTAVE_CONF_EXE. |
|
528 |
3887
|
529 2002-04-03 Steven G. Johnson <stevenj@alum.mit.edu> |
|
530 |
|
531 * DLD-FUNCTIONS/balance.cc: Use F77_FUNC instead of F77_FCN. |
|
532 * DLD-FUNCTIONS/qz.cc: Likewise. |
|
533 * DLD-FUNCTIONS/rand.cc: Likewise. |
|
534 * octave.cc: Likewise. |
3910
|
535 * toplev.cc (Foctave_config_info): Delete use of FORTRAN_MAIN_FLAG. |
3887
|
536 * oct-conf.h.in: Delete use of OCTAVE_CONF_FORTRAN_MAIN_FLAG. |
|
537 * syscalls.cc (mk_stat_map): |
|
538 Use HAVE_STRUCT_STAT_ST_RDEV instead of HAVE_ST_RDEV. |
|
539 Use HAVE_STRUCT_STAT_ST_BLKSIZE instead of HAVE_ST_BLKSIZE. |
|
540 Use HAVE_STRUCT_STAT_ST_BLOCKS instead of HAVE_ST_BLOCKS. |
|
541 |
3881
|
542 2002-04-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
543 |
3883
|
544 * lex.l, lex.h (parser_end_of_input): New global variable. |
|
545 (reset_parser): Reset it here. |
|
546 * parse.y (input): Set it to TRUE on EOF. |
|
547 (parse_and_executed): Save and restore it, check it to correctly |
|
548 break out of parse-execute loop. |
|
549 (parse_fcn_file): Likewise. |
|
550 (eval_string): Likewise. |
3884
|
551 * toplev.cc (main_loop): Likewise. |
3883
|
552 |
3881
|
553 * parse.y (input): Call YYACCEPT for END_OF_INPUT. |
3883
|
554 Return no-op command for bare newline. |
3881
|
555 (parse_and_execute): Handle change in yyparse return value semantics. |
3883
|
556 |
3881
|
557 * toplev.cc (main_loop): Likewise. |
|
558 |
3880
|
559 2002-03-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
560 |
|
561 * parse.y (parse_fcn_file): Call error if there is no input file. |
|
562 (parse_and_execute (FILE *): Protect get_input_from_eval_string. |
|
563 Set get_input_from_eval_string to false before calling yyparse. |
|
564 * lex.l (reset_parser): Also skip yyrestart (stdin) if |
|
565 reading_script_file is true. |
|
566 |
3877
|
567 2002-03-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
568 |
|
569 * pt-loop.cc (evaluating_looping_command): New global. |
|
570 (tree_while_command::eval): Protect evaluating_looping_command. |
|
571 Set it to true while evaluating loop. |
|
572 (tree_do_until_command::eval): Ditto. |
|
573 (tree_simple_for_command::eval): Ditto. |
|
574 (tree_complex_for_command::eval): Ditto. |
|
575 * pt-loop.h (evaluating_looping_command): Provide decl. |
|
576 * parse.y (parse_fcn_file): Protect get_input_from_eval_string. |
|
577 Set get_input_from_eval_string to false before calling yyparse. |
|
578 (make_break_command): Also check evaluating_looping_command. |
|
579 (make_continue_command): Also check evaluating_looping_command. |
|
580 (eval_string (const std::string&, bool, int&, int)): Loop over |
|
581 yyparse to handle multi-line strings. |
|
582 Move call to unwind_protect::run_frame to end of function. |
|
583 Don't reset parser before calling yyparse. |
|
584 Correctly handle return, break, and continue. |
|
585 |
|
586 * input.cc (input_from_eval_string_pending): New global variable. |
|
587 (get_usr_input): Use it. |
|
588 * input.h (input_from_eval_string_pending): Provide decl. |
|
589 |
3876
|
590 2002-03-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
591 |
|
592 * ov-usr-fcn.cc (octave_user_function::do_multi_index_op): |
|
593 Don't unwind_protect num_named_args (it doesn't change on |
|
594 recursive calls). |
|
595 Do re-initialize curr_va_arg_number to num_named_args after |
|
596 unwind_protecting. |
|
597 |
|
598 * ov-usr-fcn.h (octave_user_function::clear_args_passed): Delete. |
|
599 (octave_user_function::saved_args): New data member. |
|
600 (octave_user_function::save_args_passed): New function. |
|
601 (octave_user_function::restore_args_passed): Ditto. |
|
602 * ov-usr-fcn.cc (clear_args_passed): Delete. |
|
603 (restore_args_passed): New function. |
|
604 (octave_user_function::do_multi_index_op): Correctly save and |
|
605 restore args passed for recursive calls. |
|
606 |
|
607 * TEMPLATE-INST/SLStack-ovl.cc: New file. |
|
608 * Makefile.in: Add it to the list. |
|
609 |
3870
|
610 2002-02-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
611 |
3871
|
612 * ov-usr-fcn.cc (octave_user_function::do_multi_index_op): |
|
613 Handle define_all_return_values after function is evaluated. |
|
614 From Paul Kienzle <pkienzle@jazz.ncnr.nist.gov>. |
|
615 |
|
616 * ov-scalar.cc (convert_to_str): Use octave_value (std::string) |
|
617 constructor instead of octave_value (char *) constructor so that |
|
618 setstr (0) will work. |
|
619 |
3870
|
620 * pager.cc (octave_pager_buf::sync): Set pointer to beginning |
|
621 of buffer after calling flush_currnt_contents_to_diary. |
|
622 (octave_diary_buf::sync): Call eback only once. |
|
623 |
3867
|
624 2002-01-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
625 |
|
626 * lex.l (.): Remove test for EOF since it is already handled |
|
627 separately. |
|
628 |
3866
|
629 2001-12-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
630 |
|
631 * load-save.cc (save_mat5_binary_element): |
|
632 Extract dimensions directly from tc. |
|
633 Handle ranges the same as real matrices. |
|
634 |
3864
|
635 2001-11-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
636 |
|
637 * data.cc (DATA_REDUCTION): If no DIM arg, pass -1 to FCN. |
|
638 |
3859
|
639 2001-11-09 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
640 |
|
641 * oct-conf.h.in (FFTW_LIBS, LD_CXX, LIBOCT_PATHSEARCH, |
|
642 LIBOCT_READLINE, MKOCTFILE_LFLAGS): Substitute. |
|
643 * toplev.cc (octave_config_info): Add them to the map. |
|
644 |
|
645 2001-11-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
646 |
|
647 * DLD-FUNCTIONS/lsode.cc (Flsode): Don't bother to give OUTPUT |
|
648 matrix a size before calling integration function. |
|
649 |
3857
|
650 2001-11-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
651 |
|
652 Makefile.in (OCTAVE_LIBS): Add $(LIBOCT_READLINE) and |
|
653 $(LIBOCT_PATHSEARCH) to the list. |
|
654 |
3849
|
655 2001-10-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
656 |
|
657 * DLD-FUNCTIONS/dassl.cc (dassl_user_function): Allow user |
|
658 supplied RES function to return IDID as second value. |
|
659 |
3844
|
660 2001-07-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
661 |
|
662 * parse.y: Clear help_buf after documenting function. |
|
663 |
3842
|
664 2001-06-29 Mumit Khan <khan@nanotech.wisc.edu> |
|
665 |
|
666 * defun-int.h (DEFINE_FUN_INSTALLER_FUN{2,3}): New macros. |
|
667 (DEFINE_FUN_INSTALLER_FUN): Use. |
|
668 * dynamic-ld.cc ({STRINGIFY, STRINGIFY1}): New macros. |
|
669 (octave_dynamic_loader::mangle_name): Support dynamic linking |
|
670 for GNU v3 and Sun C++ ABI. |
|
671 |
3841
|
672 2001-06-26 Mumit Khan <khan@nanotech.wisc.edu> |
|
673 |
|
674 * c-file-ptr-stream.h (c_file_ptr_buf::c_file_ptr_buf): Add GCC3 |
|
675 libstdc++-v3 support. |
|
676 * load-save.cc (save_mat5_binary_element): Cast arguments to the |
|
677 correct type. |
|
678 (save_ascii_data): Eliminate compiler warning. |
|
679 * toplev.cc (system): Prefix std::. |
|
680 |
3836
|
681 2001-05-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
682 |
|
683 * ov-cx-mat.cc: Deleve unnecessary instantiation of assign function. |
|
684 * ov-re-mat.cc: Likewise. |
|
685 * ov-re-nd-array.cc: Likewise. |
|
686 * ov-str-mat.cc: Likewise. |
|
687 * ov-bool-mat.cc: Likewise. |
|
688 |
|
689 * load-save.cc (save_ascii_data): When saving string data, get raw |
|
690 string value for matrix row since there may be embedded nuls. |
|
691 |
|
692 * pt-mat.cc (Vstring_fill_char): No longer static. |
|
693 * pt-mat.h: Provide declaration. |
|
694 |
3834
|
695 2001-05-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
696 |
|
697 * octave.cc (initialize_pathsearch): Save initial value of the |
|
698 TEXMFDBS environment variable here. |
|
699 * toplev.cc (restore_texmfdbs_envvar): New function. |
|
700 (Fsystem): Set TEXMFDBS back to original value before running |
|
701 subprocesses. |
|
702 |
3827
|
703 2001-05-02 Mumit Khan <khan@nanotech.wisc.edu> |
|
704 |
|
705 * Makefile.in (octave): Add $(FFTW_LIBS). |
|
706 |
3826
|
707 2001-04-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
708 |
|
709 * DLD-FUNCTIONS/sort.cc (mx_sort): Check for NaNs in comparisons. |
|
710 |
3822
|
711 2001-04-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
712 |
|
713 * Makefile.in (OCTAVE_LIBS): Delete $(LIBREADLINE) from the list. |
|
714 (octave): Delete TERMLIBS from link command. |
|
715 * oct-conf.h.in: Delete references to LIBREADLINE, TERMLIBS. |
|
716 * toplev.cc (octave_config_info): Delete entries for LIBREADLINE, |
|
717 TERMLIBS. |
|
718 |
3821
|
719 2001-04-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
720 |
|
721 * Makefile.in (install-lib): Don't use mk-libdir-link. |
|
722 (install-inc): Don't use mk-includedir-link. |
|
723 |
3815
|
724 2001-04-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
725 |
|
726 * parse.y (fold (tree_binary_expression *)): |
|
727 Set discard_error_messages here instead of buffer_error_messages. |
|
728 Don't add clear_global_error_variable to the unwind_protect stack. |
|
729 (fold (tree_unary_expression *)): Likewise. |
|
730 (finish_colon_expression): Likewise. |
|
731 (finish_matrix): Likewise. |
|
732 |
|
733 * error.cc (panic): Set discard_error_messages to false here. |
|
734 (verror): Return immediately if discard_error_messages is true. |
|
735 |
|
736 * error.cc (discard_error_messages): New global variable. |
|
737 * error.h: Provide declaration. |
|
738 |
3813
|
739 2001-04-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
740 |
|
741 * lex.l: If unexpected character is EOF, report EOF error instead |
|
742 of invalid character error. |
|
743 |
3812
|
744 2001-04-18 Mumit Khan <khan@nanotech.wisc.edu> |
|
745 |
|
746 * load-save.cc (read_mat5_binary_element): Cast arguments to the |
|
747 correct type when adding stream positions. |
|
748 * DLD-FUNCTIONS/det.cc (det): Explicity create a Complex value to |
|
749 work around a Sun C++ type conversion bug. |
|
750 |
3811
|
751 2001-04-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
752 |
|
753 * symtab.cc (define_builtin_const): Don't call replace_all_defs |
|
754 here. |
|
755 |
|
756 * error.cc (error_message_buffer): Now static. |
|
757 * error.h (error_message_buffer): Delete extern declaration. |
|
758 |
3810
|
759 2001-03-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
760 |
|
761 * DLD-FUNCTIONS/besselj.cc (besselh): Use K arg. |
|
762 From: Thomas Stuart <tstuart@ing.sun.ac.za>. |
|
763 |
|
764 * oct-stream.cc (get_size): Don't allow [Inf, N] as a size |
|
765 specification for the read and scanf functions. |
|
766 (get_size): SIZE is now an Array<double> instead of a Matrix object. |
|
767 (read): Likewise. Change all callers. |
|
768 (scanf): Likewise. Change all callers. |
|
769 |
3808
|
770 2001-03-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
771 |
|
772 * DLD-FUNCTIONS/det.cc (Fdet): Only return rcond if nargout > 1. |
|
773 * DLD-FUNCTIONS/inv.cc (Finv): Only return rcond if nargout > 1. |
|
774 |
|
775 2001-03-26 Paul Kienzle <pkienzle@kienzle.powernet.co.uk> |
|
776 |
|
777 * DLD-FUNCTIONS/det.cc (Fdet): Suppress warning, but return rcond. |
|
778 * DLD_FUNCTIONS/inv.cc (Finv): Return rcond if requested. |
|
779 |
3804
|
780 2001-02-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
781 |
3805
|
782 * pt.h (tree::break_statement): New static member. |
|
783 (tree::break_function): Make const. |
|
784 * pt.cc (tree::break_statement): Initialize here. |
|
785 (tree::break_function): Make const. |
|
786 * pb-bp.h (break_statement): Delete global varaible declaration. |
|
787 * pt-bp.cc (break_statement): Delete global variable definition. |
|
788 |
|
789 * pt-bp.h (tree_breakpoint::bp_list): Rename from lst. |
|
790 |
|
791 * pt.h: Don't inlcude ov-usr-fcn.h. |
|
792 Provide forward declaration of octave_user_function class. |
|
793 |
|
794 2001-02-28 Ben Sapp <bsapp@lanl.gov> |
|
795 |
|
796 * debug.cc (get_user_function): Simplify by using curr_function. |
|
797 (Fdbg_where): New function. |
|
798 (Fdbg_list): Now DLD_TEXT instead of DLD_FCN. |
|
799 (Fdbg_set): Likewise. |
|
800 (Fdbg_delete): Likewise. |
|
801 |
|
802 * pt-bp.h (break_statement): New global variable. |
|
803 (MAYBE_DO_BREAKPOINT): Check for dbg_next and dbg_step. |
|
804 Print line, column, and current statement. |
|
805 * pt-bp.cc (break_statement): New global variable |
|
806 (tree_breakpoint::visit_do_until_command): Return immediately if |
|
807 we've already found the line. |
|
808 (tree_breakpoint::visit_colon_expression): Set breakpoint info here. |
|
809 (tree_breakpoint::visit_binary_expression): Recurse here when |
|
810 checking for breakpoints. |
|
811 |
|
812 * debug.cc: Move here from DLD-FUNCTIONS/debug.cc. |
|
813 * Makefile.in (DIST_SRC): Add it to the list. |
|
814 (DLD_XSRC): Delete it from the list. |
|
815 |
|
816 * pt.h (tree::last_line, tree::break_function): New static members. |
|
817 * pt.cc(tree::last_line, tree::break_function): Initialize them. |
|
818 |
|
819 * pt-cell.h (tree_cell::tree_cell): Accept line and column info. |
|
820 * pt-mat.h (tree_matrix::tree_matrix): Likewise. |
|
821 |
|
822 * ov-usr-fcn.h (octave_user_function::sym_tab): Delete. |
|
823 |
|
824 * input.cc (get_user_input): Handle dbg_next. |
|
825 Set tree:break_function and tree::last_line when doing dbg_step. |
|
826 |
|
827 2001-02-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
828 |
|
829 * lex.l (handle_string): Save line and column information in token. |
|
830 (is_keyword): Save line and column information for plot style and |
|
831 axes tokens. |
|
832 |
3804
|
833 * toplev.cc (main_loop): Set retval to non-zero value if error |
|
834 occurs when not interactive. |
|
835 |
3802
|
836 2001-02-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
837 |
|
838 * parse.y (gobble_leading_white_space): Handle CRLF here too. |
|
839 * lex.l (check_for_garbage_after_fcn_def): Likewise. |
|
840 |
|
841 * lex.l: Add numeric value of character to error message for |
|
842 unrecognized characters. |
|
843 |
3800
|
844 2001-02-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
845 |
|
846 * DLD-FUNCTIONS/minmax.cc (EMPTY_RETURN_CHECK): For empty matrix |
|
847 args, make Octave's min and max behave like Matlab. |
|
848 |
3799
|
849 2001-02-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
850 |
|
851 * OPERATORS/op-s-s.cc (el_or, el_and): Return bool value. |
|
852 |
3798
|
853 2001-02-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
854 |
|
855 * pt-binop.cc (tree_boolean_expression::rvalue): |
|
856 Don't cast result to double. |
|
857 |
|
858 * OPERATORS/op-b-b.cc: Allow & and | operators to return bool values. |
|
859 |
|
860 2001-02-09 John W. Eaton <jwe@bevo.che.wisc.edu> |
3797
|
861 |
|
862 * data.cc (DATA_REDUCTION): Undo previous change. |
|
863 |
|
864 2001-02-13 Matthew W. Roberts <matt@nephi.tamu.edu> |
|
865 |
|
866 * load-save.cc (Fload): Accept -4 as an alias for -v4 and -mat4-binary. |
|
867 (Fsave): Likewise. |
|
868 |
3796
|
869 2001-02-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
870 |
|
871 * lex.l (lexical_feedbac::init): |
|
872 Initialize looking_at_matrix_or_assign_lhs too. |
|
873 |
3795
|
874 2001-02-09 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
875 |
|
876 * data.cc (DATA_REDUCTION): Allow FCN(x,0) to be equivalent to FCN(x). |
|
877 |
3779
|
878 2001-02-06 Mumit Khan <khan@nanotech.wisc.edu> |
|
879 |
|
880 * oct-stream.cc (octave_scan): Partially implement and specialize |
|
881 for char*. Delete the old template instantiations. |
|
882 (BEGIN_S_CONVERSION): Use strings instead of ostrstreambuf. |
|
883 (octave_base_stream::do_scanf): Pass correct parameter to |
|
884 do_scan_conv. |
|
885 |
3775
|
886 2001-02-05 Mumit Khan <khan@nanotech.wisc.edu> |
|
887 |
3776
|
888 * pr-output.cc (set_format): Add std:: namespace qualifier as |
|
889 needed. |
|
890 |
3775
|
891 * oct-stream.cc (octave_scan): Implement, and specialize for |
|
892 char*. Delete the old template instantiations. |
|
893 (BEGIN_S_CONVERSION): Use strings instead of ostrstreambuf. |
|
894 (octave_base_stream::do_scanf): Pass correct parameter to |
|
895 do_scan_conv. |
|
896 |
|
897 * Makefile.in (TEMPLATE_AR, TEMPLATE_ARFLAGS): Use to create |
|
898 archive libraries containing templates. |
|
899 |
|
900 * c-file-ptr-stream.h: Include <fstream>. Use <cstdio> instead of |
|
901 <stdio.h> |
|
902 (c_file_ptr_buf::int_type): Compat typedef for non-ISO libstdc++. |
|
903 (c_file_ptr_buf::{overflow, underflow, uflow, pbackfail): Use. |
|
904 (c_file_ptr_buf::c_file_ptr_buf): Handle various compilers. |
|
905 (c_file_ptr_buf::file_number): New member function. |
|
906 (c_file_ptr_buf::fd): New private data. |
|
907 (i_c_file_ptr_stream::i_c_file_ptr_stream): Initialize stream |
|
908 correctly. |
|
909 (o_c_file_ptr_stream::o_c_file_ptr_stream): Likewise. |
|
910 * c-file-ptr-stream.cc |
|
911 (c_file_ptr_buf::{overflow, underflow, uflow, pbackfail): Add |
|
912 ISO-compliant EOF handling. |
|
913 * oct-stream.cc (octave_base_stream::file_number): Use |
|
914 c_file_ptr_buf::file_number to get underlying file descriptor. |
|
915 |
|
916 * comment-list.cc: Add missing class qualifier. |
|
917 |
|
918 * file-io.cc, load-save.cc, mappers.cc, oct-fstrm.cc, oct-fstrm.h, |
|
919 oct-iostrm.cc, oct-iostrm.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
920 oct-stream.cc, oct-stream.h, oct-strstrm.cc, oct-strstrm.h, |
|
921 ov-base-nd-array.cc, ov-base-scalar.h, ov-complex.cc, ov-cx-mat.cc, |
|
922 pager.cc, pr-output.cc, procstream.h, pt-bp.h, utils.cc: |
|
923 Add std:: namespace qualifier as needed, and replace |
|
924 deprecated or invalid libstdc++-v2 names with standard ones |
|
925 where appropriate. |
|
926 |
|
927 * DLD-FUNCTIONS/minmax.cc: Fix docstring. |
|
928 |
|
929 * oct-fstrm.cc (octave_fstream::octave_fstream): Maintain fix for |
|
930 libstdc++-v2. |
|
931 |
|
932 * oct-stdstrm.cc (octave_ostdiostream::create): Remove default |
|
933 parameter value in definition. |
|
934 |
|
935 * oct-stream.cc (octave_stream::mode_as_string): Don't assume |
|
936 std::iso::openmode is an integral quantity. |
|
937 |
|
938 * pager.cc, procstream.h: Initialize streams correctly. |
|
939 |
|
940 * utils.cc: Use CXX_ISO_COMPLIANT_LIBRARY guard. |
|
941 |
|
942 * ov-base-nd-array.cc (idx_list_to_idx_array): Inline. |
|
943 |
|
944 * ov-base-scalar.h (octave_base_scalar::octave_base_scalar): Use |
|
945 ``const ST& s'' instead of ST to workaround gcc3 complex bug. |
|
946 |
3774
|
947 2001-02-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
948 |
|
949 * lex.l (next_token_is_bin_op): Remove Checks for spacing except |
|
950 for ops that begin with +, - but are not ++, --, +=, or -=. |
|
951 |
3772
|
952 2001-02-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
953 |
|
954 * input.cc (get_user_input): Handle dbg_cont and dbg_step here. |
|
955 * debug.cc (Fdbg_cont): Delete. |
|
956 * pt-bp.h (MAYBE_DO_BREAKPOINT): Check tree::break_next here. |
|
957 * pt.h (tree::break_next): New static member. |
|
958 * pt.cc: Initialize it. |
|
959 |
|
960 * parse.h (feval (const octave_value_list&, int)): |
|
961 Set default value for nargout. |
|
962 (feval (const std::string&, const octave_value_list&, int)): |
|
963 Set default values for args and nargout. |
|
964 |
3770
|
965 2001-02-01 Ben Sapp <bsapp@lanl.gov> |
|
966 |
|
967 * DLD-FUNCTIONS/debug.cc: New file. |
|
968 * pt-bp.h, pt-bp.cc: New files, for breakpoints. |
|
969 * Makefile.in: Add them to the appropriate lists. |
|
970 |
|
971 * pt-stmt.cc (tree_statement_list::set_breakpoint, |
|
972 tree_statement_list::delete_breakpoint, |
|
973 tree_statement_list::list_breakpoints): New functions. |
|
974 |
|
975 * pt.h (tree::break_point): New data member. |
|
976 (tree::set_breakpoint, tree::delete_breakpoint, tree::is_breakpoint): |
|
977 New virtual functions. |
|
978 |
|
979 * pt-mat.cc (tree_matrix::rvalue): Check for breakpoint here. |
|
980 * pt-unop.cc (tree_prefix_expression::rvalue): Likewise. |
|
981 (tree_postfix_expression::rvalue): Likewise. |
|
982 * pt-loop.cc (tree_do_until_command::eval): Likewise. |
|
983 (DO_LOOP): Likewise. |
|
984 (tree_simple_for_command::eval): Likewise. |
|
985 (tree_complex_for_command::eval): Likewise. |
|
986 * pt-assign.cc (tree_simple_assignment::rvalue): Likewise. |
|
987 * pt-binop.cc (tree_binary_expression::rvalue): Likewise. |
|
988 (tree_boolean_expression::rvalue): Likewise. |
|
989 * pt-cell.cc (tree_cell::rvalue): Likewise. |
|
990 * pt-colon.cc (tree_colon_expression::rvalue): Likewise. |
|
991 * pt-except.cc (tree_try_catch_command::eval): Likewise. |
|
992 (tree_unwind_protect_command::eval): Likewise. |
|
993 * pt-id.cc (tree_identifier::rvalue): Likewise. |
|
994 (tree_identifier::lvalue): Likewise. |
|
995 * pt-indir.cc (tree_indirect_ref::rvalue): Likewise. |
|
996 * pt-jump.cc (tree_break_command::eval): Likewise. |
|
997 (tree_continue_command::eval): Likewise. |
|
998 (tree_return_command::eval): Likewise. |
|
999 |
3767
|
1000 2001-01-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1001 |
|
1002 * Map.h, Map.cc (CHMap<C>::operator = (const CHMap&)): New function. |
|
1003 (Map<C>::operator = (const Map&)): Likewise. |
|
1004 (Map<C> (const Map&)): Likewise. |
|
1005 |
|
1006 * OPERATORS/op-cm-cs.cc, OPERATORS/op-cm-s.cc, |
|
1007 OPERATORS/op-m-cs.cc, OPERATORS/op-m-s.cc: |
|
1008 Make ldiv operator work for row vector by scalar ops. |
|
1009 |
|
1010 * OPERATORS/op-cs-cm.cc, OPERATORS/op-cs-m.cc, |
|
1011 OPERATORS/op-s-cm.cc, OPERATORS/op-s-m.cc: |
|
1012 Make div operator work for scalar by column vector ops. |
|
1013 |
3765
|
1014 2001-01-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1015 |
|
1016 * parse.y (safe_fclose): Discard comments at the end of a file. |
|
1017 |
3764
|
1018 2001-01-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1019 |
|
1020 * error.cc (pr_where): Call pr_where_1 with two args, not one, to |
|
1021 avoid processing format escapes that might appear in formatted code. |
|
1022 |
3762
|
1023 2001-01-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1024 |
|
1025 * error.cc (vwarning): Write to output_buf, then send formatted |
|
1026 message to diary and error streams. |
|
1027 |
3760
|
1028 2001-01-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1029 |
|
1030 * ov-cx-mat.cc (octave_complex_matrix::try_narrowing_conversion): |
|
1031 Handle empty matrix dimensions correctly. |
|
1032 |
3756
|
1033 2000-12-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1034 |
|
1035 * pager.h (octave_pager_buf::diary_skip): New data member. |
|
1036 (octave_pager_buf::octave_pager_buf): Initialize it. |
|
1037 * pager.cc (octave_pager_buf::set_diary_skip): New function. |
|
1038 (octave_pager_stream::set_diary_skip): New function. |
|
1039 (octave_pager_buf::sync): Call flush_current_contents_to_diary |
|
1040 instead of octave_diary.write. |
|
1041 (octave_pager_buf::flush_current_contents_to_diary): Use |
|
1042 diary_skip, reset when done. |
|
1043 (open_diary_file): Call octave_stdout.set_diary_skip here. |
|
1044 |
3747
|
1045 2000-12-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1046 |
|
1047 * DLD-FUNCTIONS/minmax.cc (EMPTY_RETURN_CHECK): New macro. |
|
1048 (min, max): Use it. |
|
1049 |
|
1050 * DLD-FUNCTIONS/minmax.cc (MINMAX_BODY): New macro. If single arg |
|
1051 is empty, return empty matrix result and empty matrix for index. |
|
1052 (Fmin, Fmax): Use MINMAX_BODY, so we have consistent definition |
|
1053 for min and max functions. |
|
1054 |
|
1055 2000-11-30 Joerg Specht <joerg.specht@ins.uni-stuttgart.de> |
|
1056 |
|
1057 * help.cc (display_help_text): Append new line at end of doc string. |
|
1058 |
|
1059 2000-11-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1060 |
|
1061 * DLD-FUNCTIONS/lsode.cc (LSODE_ABORT1, LSODE_ABORT2): Omit `##' |
|
1062 in macro definition since they are not needed to paste strings |
|
1063 together and picky compilers choke on them. |
|
1064 * DLD-FUNCTIONS/quad.cc (QUAD_ABORT1, QUAD_ABORT2): Likewise. |
|
1065 * DLD-FUNCTIONS/fsolve.cc (FSOLVE_ABORT1, FSOLVE_ABORT2): Likewise. |
|
1066 * DLD-FUNCTIONS/dassl.cc (DASSL_ABORT1, DASSL_ABORT2): Likewise. |
|
1067 |
3741
|
1068 2000-11-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1069 |
3744
|
1070 * mkbuiltins (XDEFUNX_INTERNAL): New macro. |
3746
|
1071 * mkgendoc (XDEFUNX_INTERNAL): Likewise. |
3744
|
1072 * defun-int.h (DEFUNX_INTERNAL): Use it. |
|
1073 |
3743
|
1074 * defun.h (DEFUNX): New macro. |
|
1075 * defun-int.h (DEFUNX_INTERNAL, DECLARE_FUNX): New macro. |
|
1076 (DECLARE_FUN): Define in terms of DECLARE_FUNX. |
|
1077 |
3742
|
1078 * mkdefs: Read and print one line at a time, so we can force |
|
1079 patterns to match only at the beginning of a line. |
|
1080 |
3741
|
1081 * defun-int.h (UNDERSCORIFY): Omit `##' in macro definition since |
|
1082 they are not needed to paste strings together and picky compilers |
|
1083 choke on them. |
|
1084 |
3738
|
1085 2000-11-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1086 |
|
1087 * load-save.cc (save_ascii_data_for_plotting): New function. |
|
1088 * pt-plot.cc (save_in_tmp_file): Use it instead of save_ascii_data. |
|
1089 |
|
1090 * load-save.cc (save_ascii_data): Warn if saving Inf or NaN values. |
|
1091 New arg, infnan_warned. Use it to warn just once per set. |
|
1092 Now static. |
|
1093 (do_save): New arg, infnan_warned. Pass to save_ascii_data. |
|
1094 (save_vars): Initialize infnan_warned here, pass to do_save. |
|
1095 |
3737
|
1096 2000-11-16 Paul Kienzle <pkienzle@kienzle.powernet.co.uk> |
|
1097 |
|
1098 * file-io.cc (Ffprintf): If no file id parameter, don't return |
|
1099 count of characters if nargout is 0 (for compatibility with |
|
1100 Matlab). |
|
1101 |
|
1102 2000-11-16 Ben Sapp <bsapp@lanl.gov> |
|
1103 |
|
1104 * DLD-FUNCTIONS/rand.cc (do_rand): Declare loop counter as |
|
1105 volatile int, not just volatile. |
|
1106 |
3731
|
1107 2000-10-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1108 |
|
1109 * load-save.cc (skip_comments): Allow % as comment character too. |
|
1110 (extract_keyword): Likewise. |
|
1111 |
|
1112 * Makefile.in (oct-gperf.h): Remove -a, -g, and -p flags for gperf. |
|
1113 |
3727
|
1114 2000-10-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1115 |
|
1116 * load-save.cc (do_load): Allow result to be returned instead of |
|
1117 inserting variables in the symbol table. Change patterned after |
|
1118 patch by Kian Ming Adam Chai <caijianming@yahoo.co.uk>. |
|
1119 |
3726
|
1120 2000-10-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1121 |
|
1122 * Makefile.in (ops.cc): Don't substitute BLAS_LIBS and LIBS here. |
|
1123 |
|
1124 * oct-conf.h.in (OCTAVE_CONF_SPECIAL_MATH_LIB): Delete. |
|
1125 (OCTAVE_CONF_BLAS_LIBS): Add. |
|
1126 * toplev.cc (octave_config_info): Likewise, add BLAS_LIBS and |
|
1127 remove SPECIAL_MATH_LIB from the struct. |
|
1128 |
|
1129 * parse.y (feval (const octave_value_list&, int)): Don't panic |
|
1130 while processing arg names if arg.length() and arg_names.length() |
|
1131 differ. |
|
1132 |
3724
|
1133 2000-10-12 Paul Kienzle <pkienzle@kienzle.powernet.co.uk> |
|
1134 |
|
1135 * ov-cell.h (octave_cell::is_cell): New function. |
|
1136 |
|
1137 * pt-select.cc (equal): New static function. |
|
1138 (tree_switch_case::label_matches): Use it to compare case label |
|
1139 against arg. Handle cell arrays as case labels. |
|
1140 |
3723
|
1141 2000-10-12 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1142 |
|
1143 Change patterned after patch by Cai Jianming |
|
1144 <caijianming@yahoo.co.uk> to support for DIM arg in 2.0.x sources. |
|
1145 |
|
1146 * data.cc (DATA_REDUCTION): New macro. Handle second DIM arg here. |
|
1147 (Fcumprod): Replace function body with DATA_REDUCTION. |
|
1148 (Fcumsum): Likewise. |
|
1149 (Fprod): Likewise. |
|
1150 (Fsum): Likewise. |
|
1151 (Fsumsq): Likewise. |
|
1152 |
3719
|
1153 2000-10-10 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1154 |
|
1155 * error.cc (pr_where_2): New function. |
|
1156 (pr_where_1): Use it instead of error_1 to avoid setting error_state. |
|
1157 |
|
1158 2000-10-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1159 |
|
1160 * xdiv.cc (xdiv): Warn if execution falls through to lssolve. |
|
1161 |
3716
|
1162 2000-09-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1163 |
|
1164 * utils.cc (FERRNO): New function (currently commented out). |
|
1165 |
|
1166 * c-file-ptr-stream.cc (c_file_ptr_buf::close): Call flush here. |
|
1167 (c_file_ptr_buf::~c_file_ptr_buf): Not here. |
|
1168 * c-file-ptr-stream.h (c_fie_ptr_buf::close_fcn): New typedef. |
|
1169 (c_file_ptr_buf::cf): New data member. Add default constructor arg. |
|
1170 (class c_file_ptr_buf): Derive from filebuf, not streambuf. |
|
1171 (i_c_file_ptr_stream, o_c_file_ptr_stream): Handle close function here. |
|
1172 * oct-procstrm.cc (octave_iprocstream, octave_oprocstream): Likewise. |
|
1173 (octave_iprocstream::do_close, octave_oprocstream::do_close): Delete. |
|
1174 * oct-stdstrm.cc (octave_base_stdiostream::~octave_base_stdiostream): |
|
1175 Don't do anything. |
|
1176 (octave_istdiostream::create): Handle close function here. |
|
1177 (octave_istdiostream::octave_istdiostream): Likewise. |
|
1178 (octave_ostdiostream::create): Likewise. |
|
1179 (octave_ostdiostream::octave_ostdiostream): Likewise. |
|
1180 (class octave_base_stdiostream): Don't cache FILE pointer here. |
|
1181 |
3715
|
1182 2000-09-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1183 |
|
1184 * syscalls.cc (Ffcntl): Don't assume that the file id passed in is |
|
1185 the same as the underlying system file id. |
|
1186 |
3712
|
1187 2000-08-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1188 |
|
1189 * parse.y: Use octave_time, not time. |
|
1190 |
3711
|
1191 2000-08-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1192 |
|
1193 * oct-stream.cc (printf_value_cache::double_value): Also set |
|
1194 curr_stat to conversion_error if there are no values at all. |
|
1195 |
3710
|
1196 2000-08-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1197 |
|
1198 * dirfns.cc (Flink, Fsymlink, Freadlink): New functions. |
|
1199 |
3709
|
1200 2000-08-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1201 |
|
1202 * load-save.cc (Vsave_header_format_string): New variable. |
|
1203 (symbols_of_load_save): DEFVAR it. |
|
1204 (save_header_format, default_save_header_format): New functions. |
|
1205 (write_header): Use Vsave_header_format_string here. |
|
1206 |
3707
|
1207 2000-07-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1208 |
3708
|
1209 * pt-pr-code.h (tree_print_code::curr_print_indent_level, |
|
1210 (tree_print_code::beginning_of_line): No longer static. |
|
1211 (tree_print_code::tree_print_code): Initialize them here. |
|
1212 * pt-pr-code.cc: Not here. |
|
1213 |
|
1214 * pt-stmt.cc (tree_statement::eval): Set curr_statement here. |
|
1215 (tree_statement_list::eval): Not here. |
|
1216 |
3707
|
1217 Debug-on-error stuff based on a patch submitted by Paul Kienzle |
|
1218 <pkienzle@kienzle.powernet.co.uk> for 2.0.x. |
|
1219 |
|
1220 * error.cc (Vdebug_on_warning): New static flag variable. |
|
1221 (debug_on_warning): New function. |
|
1222 (symbols_of_warning): DEFVAR debug_on_warning. |
|
1223 (warning): Handle debug_on_warning here. |
|
1224 |
|
1225 * input.cc (do_keyboard): New function. |
|
1226 (Fkeyboard): Use it to do the real work. |
|
1227 * pt-stmt.cc (curr_statement): New static variable. |
|
1228 (tree_statement::eval): Save and restore it here. |
|
1229 * error.cc (Vdebug_on_error): New static flag variable. |
|
1230 (debug_on_error): New function. |
|
1231 (symbols_of_error): DEFVAR debug_on_error. |
|
1232 (pr_where, pr_where_1): New functions. |
|
1233 (error): Handle debug_on_error here. |
|
1234 |
3705
|
1235 2000-07-20 Joao Cardoso <jcardoso@inescporto.pt> |
|
1236 |
|
1237 * Makefile.in (octave): Link with $(LD_CXX) instead of $(CXX) |
|
1238 |
3704
|
1239 2000-07-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1240 |
|
1241 * oct-stream.cc (octave_base_stream::oscanf): Advance to next |
|
1242 format element before attempting to pick up any trailing stuff. |
|
1243 |
3697
|
1244 2000-07-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1245 |
3698
|
1246 * lex.l (next_token_is_bin_op): Don't recognize `..' as a binary op. |
|
1247 |
3697
|
1248 * load-save.cc (get_file_format): Call read_mat5_binary_file_header |
|
1249 with third arg true instead of false, so we don't barf if the file |
|
1250 is not a matlab v5 binary file. |
|
1251 |
3695
|
1252 2000-07-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1253 |
|
1254 * Makefile.in (octave): Link to ../libcruft/blas-xtra/xerbla.o here. |
|
1255 |
|
1256 * octave.cc (main): Remove kluge to attempt linking our version of |
|
1257 xerbla. |
|
1258 |
|
1259 2000-07-07 Steven G. Johnson <stevenj@alum.mit.edu> |
|
1260 |
|
1261 * load-save.cc (have_h5giterate_bug): New file-scope variable. |
|
1262 (hdf5_read_next_data): Only increment current_item if |
|
1263 have_h5giterate_bug is true. |
|
1264 (read_hdf5_data): Set have_h5giterate_bug here. |
|
1265 Only increment hs.current_item if have_h5giterate_bug is true. |
|
1266 |
3693
|
1267 2000-07-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1268 |
|
1269 * c-file-ptr-stream.cc (c_file_ptr_buf::close): |
|
1270 Return -1 if file pointer is NULL. |
|
1271 Set file pointer to 0 after closing. |
|
1272 (c_file_ptr_buf::~c_file_ptr_buf): Call close after flushing. |
|
1273 |
3694
|
1274 2000-07-05 Steven G. Johnson <stevenj@alum.mit.edu> |
3692
|
1275 |
|
1276 * Makefile.in (BLAS_LIBS): Substitute here. |
|
1277 (octave): Use $(BLAS_LIBS) in the final link command. |
|
1278 |
3694
|
1279 2000-06-30 Steven G. Johnson <stevenj@alum.mit.edu> |
3690
|
1280 |
|
1281 * Makefile.in (octave): Link $(FLIBS) last. |
|
1282 * octave.cc (main): Force our own xerbla to be linked instead of |
|
1283 some system version. |
|
1284 |
3688
|
1285 2000-06-29 James R. Van Zandt <jrv@vanzandt.mv.com> |
|
1286 |
3689
|
1287 * load-save.cc (load_save_format): New value, LS_MAT5_BINARY. |
3688
|
1288 (arrayclasstype, mat5_data_type): New enums. |
|
1289 (read_mat5_binary_data): New function. |
|
1290 (read_mat5_tag): New function. |
|
1291 (read_mat5_binary_element): New function. |
|
1292 (read_mat5_binary_file_header): New function. |
|
1293 (get_file_format): Check for mat5 binary format too. |
|
1294 (do_load): Handle mat5 binary format. |
|
1295 (write_mat5_tag): New function. |
|
1296 (write_mat5_array): New function. |
|
1297 (class mat5_callback): New class. |
|
1298 (save_mat5_binary_element): New functnon. |
|
1299 (do_save): Handle mat5 binary format. |
|
1300 (write_header): Handle LS_MAT5_BINARY case too. |
|
1301 (save_user_variables): Handle LS_MAT5_BINARY case too. |
|
1302 (Fsave): Handle LS_MAT5_BINARY case too. |
|
1303 (Fload): Handle LS_MAT5_BINARY case too. |
|
1304 |
3694
|
1305 2000-06-29 Steven G. Johnson <stevenj@alum.mit.edu> |
3687
|
1306 |
|
1307 All of the following changes are protected by #ifdef HAVE_HDF5. |
|
1308 |
|
1309 * load-save.cc (load_save_format): New value, LS_HDF5. |
|
1310 (make_valid_identifier): New function. |
|
1311 (class hdf5_fstreambase, class hdf5_ifstream, class hdf5_ofstream): |
|
1312 New classes for reading and writing hdf5 data. |
|
1313 (hdf5_types_compatible): New function. |
|
1314 (hdf5_import_multidim): New function. |
|
1315 (hdf5_check_attr): New function. |
|
1316 (hdf5_read_next_data): New function. |
|
1317 (hdf5_make_complex_type): New function. |
|
1318 (hdf5_make_range_type): New function. |
|
1319 (read_hdf5_data): New function. |
|
1320 (get_file_format): Handle HDF5 format. |
|
1321 (do_load): Handle LS_HDF5 case. |
|
1322 (Fload): Handle HDF5 format. |
|
1323 (hdf5_add_attr): New function. |
|
1324 (save_type_to_hdf5): New function. |
|
1325 (add_hdf5_data): New function. |
|
1326 (do_save): Handle HDF5 format. |
|
1327 (get_default_save_format): Handle LS_HDF5 case. |
|
1328 (write_header): Handle LS_HDF5 case. |
|
1329 (save_user_variables): Handle HDF5 format. |
|
1330 (Fsave): Handle HDF5 format. |
|
1331 |
3686
|
1332 2000-06-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1333 |
|
1334 * help.cc (display_help_text): If writing to filter fails, send |
|
1335 unformatted text to output stream. |
|
1336 |
3683
|
1337 2000-06-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1338 |
3685
|
1339 * OPERATORS/op-bm-bm.cc (eq): Define using mx_el_eq, not operator ==. |
|
1340 (ne): Likewise, use mx_el_ne, not operator !=. |
|
1341 |
3683
|
1342 * pr-output.cc (Fdisp): Delete. |
|
1343 |
3681
|
1344 2000-06-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1345 |
3682
|
1346 * pr-output.cc (float_format::float_format): Set default values |
|
1347 for width and precision to -1. |
|
1348 (operator << (ostream&, pr_formatted_float&): Set width and |
|
1349 precision if values are >= 0. |
|
1350 (set_real_format, set_real_matrix_format, set_range_format, |
|
1351 set_complex_format, set_complex_matrix_format): If we have all |
|
1352 integers, infinities, or nans, set precision equal to field width. |
|
1353 |
|
1354 * load-save.cc (read_ascii_data): Allow empty strings and string |
|
1355 vectors to be restored. |
|
1356 |
3681
|
1357 * variables.cc (var_matches_any_pattern): New function. |
|
1358 (Fclear): Use it to make exclusive clear work correctly. |
|
1359 |
3676
|
1360 2000-06-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1361 |
3678
|
1362 * ov-range.h (octave_range::is_numeric_type): New function. |
|
1363 |
3676
|
1364 * sysdep.cc (Fkbhit): Also ask for input if forced_interactive. |
|
1365 |
3675
|
1366 2000-06-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1367 |
|
1368 * Makefile.in (oct-gperf.h): Use $(GPERF) instead of gperf. |
|
1369 |
3671
|
1370 2000-05-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1371 |
|
1372 * DLD-FUNCTIONS/qz.cc (Fqz): When computing finite generalized |
|
1373 eigenvalues, don't write past the end of the array. |
|
1374 |
3665
|
1375 2000-05-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1376 |
|
1377 * ov-base-nd-array.h, ov-base-nd-array.cc, ov-re-nd-array.h, |
|
1378 ov-re-nd-array.h: New files. |
|
1379 * Makefile.in: Add them to the appropriate lists. |
|
1380 |
|
1381 * pt-stmt.h, pt-stmt.cc (class tree_statement): |
|
1382 Store comments associated with this parse tree element. |
|
1383 * pt-select.h, pt-select.cc (class tree_if_clause, |
|
1384 class tree_if_command, class tree_switch_case |
|
1385 class tree_switch_command): Likewise. |
|
1386 * pt-loop.h, pt-loop.cc (class tree_while_command, |
|
1387 class tree_do_until_command, class tree_simple_for_command, |
|
1388 class tree_complex_for_command): Likewise. |
|
1389 * pt-except.h, pt-except.cc (class tree_try_catch_command, |
|
1390 class tree_unwind_protect_command): Likewise. |
|
1391 * ov-usr-fcn.h, ov-usr-fcn.cc (class octave_user_function): Likewise. |
|
1392 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::print_comment_elt, |
|
1393 tree_print_code::print_comment_list, |
|
1394 tree_print_code::print_indented_comment): New functions. |
|
1395 (tree_print_code::visit_simple_for_command, |
|
1396 tree_print_code::visit_complex_for_command, |
|
1397 tree_print_code::visit_octave_user_function_header, |
|
1398 tree_print_code::visit_octave_user_function_trailer, |
|
1399 tree_print_code::visit_if_command, tree_print_code::visit_statement, |
|
1400 tree_print_code::visit_switch_case, |
|
1401 tree_print_code::visit_switch_command, |
|
1402 tree_print_code::visit_try_catch_command, |
|
1403 tree_print_code::visit_unwind_protect_command |
|
1404 tree_print_code::visit_while_command, |
|
1405 tree_print_code::visit_do_until_command): Handle comments. |
|
1406 * lex.l, parse.y: Handle comments in parse trees. |
|
1407 * comment-list.h, comment-list.cc: New files. |
|
1408 * Makefile.in: Add them to the appropriate lists. |
|
1409 |
3661
|
1410 2000-04-23 etienne grossmann <etienne@anonimo.isr.ist.utl.pt> |
|
1411 |
|
1412 * pt-mat.cc (tm_row_const::tm_row_const_rep::eval_error): |
|
1413 New args x and y, for dimension mismatch info. |
|
1414 Change callers where appropriate. |
|
1415 (tm_const::init): Report mismatched column dimensions. |
|
1416 |
3658
|
1417 2000-04-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1418 |
|
1419 * sysdep.cc (kbhit): Also clear cin if at EOF. |
|
1420 |
3657
|
1421 2000-04-11 Joao Cardoso <jcardoso@inescn.pt> |
|
1422 |
|
1423 * sysdep.cc (kbhit): New arg, wait. |
|
1424 (raw_mode): Ditto. |
|
1425 (Fkbhit): If given an arg, call kbhit with wait = false. |
|
1426 |
|
1427 * DLD-FUNCTIONS/minmax.cc (Fmax, Fmin): Fix doc string. |
|
1428 |
3656
|
1429 2000-04-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1430 |
|
1431 * dynamic-ld.cc (octave_dynamic_loader::do_load): Undo previous change. |
|
1432 |
3655
|
1433 2000-04-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1434 |
|
1435 * dynamic-ld.cc (octave_dynamic_loader::do_load): Also fail with |
|
1436 error message if we don't find the mangled function name in the |
|
1437 file. |
|
1438 |
3652
|
1439 2000-03-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1440 |
3653
|
1441 * oct-stream.cc (printf_value_cache::string_value): Return string |
|
1442 matrices in a Matlab-compatible way. |
|
1443 (printf_value_cache): Redesign the way list_exhausted works. |
|
1444 |
3652
|
1445 * oct-fstrm.cc (octave_fstream::do_close): New function. |
|
1446 * oct-stdstrm.cc (octave_istdiostream::do_close): Ditto. |
|
1447 (octave_ostdiostream::do_close): Ditto. |
|
1448 * c-file-ptr-stream.cc (c_file_ptr_buf::close): Ditto. |
|
1449 (i_c_file_ptr_stream::close): Ditto. |
|
1450 (o_c_file_ptr_stream::close): Ditto. |
|
1451 * oct-prcstrm.cc (octave_iprocstream::do_close): Ditto. |
|
1452 (octave_oprocstream::do_close): Ditto. |
|
1453 (octave_iprocstram::~octave_iprocstram): Call do_close here. |
|
1454 (octave_iprocstram::~octave_oprocstram): Likewise. |
|
1455 |
|
1456 * oct-stream.h (octave_base_stream::do_close): New virtual function. |
|
1457 (octave_base_stream::close): If stream is open, call do_close. |
|
1458 |
|
1459 * c-file-ptr-stream.cc (c_file_ptr_buf::flush): New function. |
|
1460 (c_file_ptr_buf::~c_file_ptr_buf): Use it. |
|
1461 (c_file_ptr_buf::overflow): Ditto. |
|
1462 (c_file_ptr_buf::sync): Ditto. |
|
1463 |
3649
|
1464 2000-03-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1465 |
|
1466 * oct-procbuf.cc (octave_procbuf::open): Make output streams line |
|
1467 buffered. |
|
1468 |
3640
|
1469 2000-03-24 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1470 |
3644
|
1471 * sighandlers.cc (my_friendly_exit): Prefix failure messages with |
|
1472 panic instead of error. |
|
1473 |
3642
|
1474 * c-file-ptr-stream.cc (c_file_ptr_buf::~c_file_ptr_buf): |
|
1475 Avoid dereferencing NULL pointer. |
|
1476 |
3640
|
1477 * oct-stream.cc (printf_format_list::add_elt_to_list, |
|
1478 printf_format_list::process_conversion, |
|
1479 printf_format_list::finish_conversion): New args, flags, fw, and prec. |
|
1480 (printf_format_list::printf_format_list): Save more complete info. |
|
1481 (printf_format_list::printme): Print flags, fw, and prec. |
|
1482 (octave_base_stream::printf): Simplify. |
|
1483 (do_printf_conv): Delete have_arg arg, since it is always true now. |
|
1484 (octave_base_stream::do_printf): Handle case of no args and % |
|
1485 directly instead of using do_printf_conv. |
|
1486 (printf_value_cache::exhausted): Rename from no_more_values. |
|
1487 (DO_PCT_CONVERSION): New macro |
|
1488 (octave_base_streain::do_scanf, octave_base_streain::do_oscanf): |
|
1489 Use it. |
|
1490 (scanf_format_list::finish_conversion): `%' counts as a conversion too. |
|
1491 Also don't forget to set type for it. |
|
1492 (OCTAVE_SCAN_0): Delete. |
|
1493 (OCTAVE_SCAN): Rename from OCTAVE_SCAN_1. |
|
1494 (octave_base_stream::scanf, octave_base_stream::oscanf): Don't |
|
1495 special-case number of conversions here. |
|
1496 (octave_base_stream::oscanf, octave_base_stream::do_oscanf): Only |
|
1497 cycle through fmt elements if the number of conversions is greater |
|
1498 than 0. |
|
1499 |
|
1500 * oct-stream.h (scanf_format_list::next): New arg, `cycle'. |
|
1501 (printf_format_list::next): New arg, `cycle'. |
|
1502 (printf_format_list::last_elt_p): New function. |
|
1503 (printf_format_elt): New fields fw, prec, and flags. |
|
1504 Define copy constructor and assignment operator. |
|
1505 (scanf_format_elt): Define copy constructor and assignment operator. |
|
1506 |
3627
|
1507 2000-03-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1508 |
3639
|
1509 * oct-stream.cc (OCTAVE_SCAN_0, OCTAVE_SCAN_1): New macros. |
|
1510 (do_scanf_conv, BEGIN_S_CONVERSION, BEGIN_CHAR_CLASS_CONVERSION, |
|
1511 do_scanf, scanf, do_oscanf, do_oscanf, oscanf): Use them instead |
|
1512 of calling istream::scan directly. |
|
1513 (octave_scan): New function. |
|
1514 (do_scanf_conv): Second arg is now scanf_format_elt instead of char*. |
|
1515 Change all callers. |
|
1516 |
3631
|
1517 * oct-procbuf.h, oct-procbuf.cc (octave_procbuf): |
|
1518 Derive from c_file_ptr_buf instead of filebuf. |
|
1519 |
3627
|
1520 * oct-stream.cc (octave_base_stream::printf): Use octave_format |
|
1521 instead of ostream::form. Return number of characters written. |
|
1522 |
3618
|
1523 2000-03-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1524 |
3620
|
1525 * oct-stream.cc (do_printf_conv): Use octave_format instead of |
|
1526 ostream::form. Return number of characters written. |
|
1527 (octave_base_stream::do_printf): Return number of characters written. |
|
1528 |
|
1529 * error.cc (verror, vwarning): Use octave_format instead of |
|
1530 ostream::vform. |
|
1531 |
|
1532 * utils.cc (octave_format, octave_vformat): New functions. |
|
1533 * cutils.c (octave_snprintf, octave_vsnprintf): New functions. |
|
1534 |
3618
|
1535 * oct-lvalue.h (dummy_val): New static variable. |
|
1536 (octave_lvalue::octave_lvalue): Use it to initialize val. |
|
1537 |
|
1538 * variables.cc (is_valid_function): Look in the global symbol |
|
1539 table for functions. |
|
1540 |
3615
|
1541 2000-03-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1542 |
3770
|
1543 * Makefile.in (LIBRARIES): Conditionally define. |
3615
|
1544 (libraries): Depend on $(LIBRARIES). |
|
1545 (octave): Depend on $(LIBRARIES), not libraries. Also depend on |
|
1546 stamp-prereq and stamp-oct-links. |
|
1547 (all): Don't depend on stamp-prereq or stamp-oct-links. |
|
1548 (liboctinterp.$(LIBEXT), liboctinterp.$(SHELXT)): Delete target |
|
1549 before rebuilding. |
|
1550 |
|
1551 2000-03-21 Ben Sapp <bsapp@nua.lampf.lanl.gov>: |
|
1552 |
3770
|
1553 * Makefile.in (libraries): Depend only on library targets, not |
3615
|
1554 archive members. |
|
1555 |
3611
|
1556 2000-03-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1557 |
3613
|
1558 * Makefile.in (objects): New target |
|
1559 |
3611
|
1560 * c_file_ptr_stream.h, c_file_ptr_stream.cc: New files. |
|
1561 * oct-stdstrm.h, oct-stdstrm.cc, oct-prcstrm.cc: |
|
1562 Use c_file_ptr_buf, i_c_file_ptr_stream, and o_c_fie_ptr_stream |
|
1563 instead of stdiobuf, istdiostream, and ostdiostream. |
|
1564 |
|
1565 * pr-output.cc (set_real_format, set_real_matrix_format, |
|
1566 set_complex_format, set_complex_matrix_format, set_range_format): |
|
1567 Do the right thing again for int, NaN, and Inf values. |
|
1568 |
3608
|
1569 2000-03-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1570 |
|
1571 * pr-output.cc (pr_plus_format): Rename from do_plus_format. |
|
1572 Change all callers. |
|
1573 (pr_float, pr_complex): New arg, scale. Handle scaling here. |
|
1574 (float_format): New class for managing details of formatting |
|
1575 floats. Use it instead of character string formats and the |
|
1576 nonstandard form() function from the GNU iostream library. |
|
1577 |
3601
|
1578 2000-02-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1579 |
|
1580 * Makefile.in (clean): Also delete gendoc. |
|
1581 |
3598
|
1582 2000-02-18 James R. Van Zandt <jrv@vanzandt.mv.com> |
|
1583 |
|
1584 * load-save.cc (Vcrash_dumps_octave_core): Fix comment for this var. |
|
1585 |
|
1586 2000-02-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1587 |
|
1588 * lex.l (handle_number): Don't transorm `[Dd]' to `e' if reading |
|
1589 hex. |
|
1590 |
3597
|
1591 2000-02-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1592 |
|
1593 * Makefile.in (install-inc): Install files in |
|
1594 $(octincludedir)/octave. |
|
1595 (uninstall): Remove them from the correct directory too. |
|
1596 |
|
1597 * defaults.h, defaults.cc (Vlocal_ver_arch_lib_dir): New variable. |
|
1598 * defaults.cc (set_default_local_ver_arch_lib_dir): New function. |
|
1599 (install_defaults): Call it. |
|
1600 (exec_path): Prepend the versioned form of the local arch lib |
|
1601 directory to the standard path. |
|
1602 * defaults.h.in (OCTAVE_LOCALVERARCHLIBDIR, |
|
1603 OCTAVE_LOCALVERFCNFILEDIR, OCTAVE_LOCALVEROCTFILEDIR): |
|
1604 Substitute these too. |
|
1605 * toplev.cc (Foctave_config_info): Add them to the struct. |
|
1606 |
3591
|
1607 2000-02-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1608 |
3597
|
1609 * toplev.cc (Foctave_config_info): Add MKOCTFILE_INCFLAGS to the |
|
1610 struct. |
3591
|
1611 * oct-conf.h.in (OCTAVE_CONF_MKOCTFILE_INCFLAGS): Define. |
|
1612 |
3584
|
1613 2000-02-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1614 |
3587
|
1615 * DLD-FUNCTIONS/balance.cc (Fbalance): Explicitly request |
|
1616 conversion from Matrix to ComplexMatrix. |
|
1617 * DLD-FUNCTIONS/qz.cc (Fqz): Likewise. |
|
1618 |
|
1619 * ov-re-mat.h (octave_matrix::complex_matrix_value): Explicitly |
|
1620 request conversion from Matrix type. |
|
1621 |
|
1622 * ov-ch-mat.h (octave_char_matrix::matrix_value): Explicitly |
|
1623 request conversion from charMatrix type. |
|
1624 (octave_char_matrix::complex_matrix_value): Likewise. |
|
1625 * ov-bool-mat.h (octave_bool_matrix::matrix_value): Likewise. |
|
1626 (octave_bool_matrix::complex_matrix_value): Likewise. |
|
1627 |
|
1628 * ov-range.h (octave_range::complex_matrix_value): Explicitly |
|
1629 request conversion from Matrix type. |
|
1630 |
|
1631 * ov-cx-mat.h, ov-re-mat.h: Explicitly request conversions from |
|
1632 diagonal matrix types in constructors. |
|
1633 |
3586
|
1634 * mappers.cc (ximag, xreal): Return double, not Complex. |
|
1635 |
3585
|
1636 * error.cc (panic): Turn off buffering of error messages. |
|
1637 Don't call flush_octave_stdout here, verror will do it for us. |
|
1638 (verror): Don't call flush_octave_stdout if buffering error messages. |
|
1639 |
3584
|
1640 * pt-except.cc (tree_try_catch_command::eval): Only restore |
|
1641 buffer_error_message value (by running the unwind_protect element |
|
1642 for it) if it has been saved. |
|
1643 |
|
1644 * help.cc (Ftype): Return value if nargout is NOT equal to zero. |
|
1645 Delete unnecessary unwind_protect::begin_frame(). |
|
1646 |
|
1647 * toplev.cc (octave_config_info): Stuff lots of new config info in |
|
1648 the struct. |
|
1649 |
|
1650 * oct-conf.h.in: Delete TARGET_HOST_TYPE. |
|
1651 |
3574
|
1652 2000-02-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1653 |
3579
|
1654 * siglist.c: Include <signal.h>. |
|
1655 |
3575
|
1656 * lex.l (is_plot_keyword): Add minimum match length in call to |
|
1657 almost_match. |
|
1658 |
3574
|
1659 * Makefile.in (%.df : %.cc): Don't pass -c to compiler. |
|
1660 |
3564
|
1661 2000-02-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1662 |
3572
|
1663 * ov-base-mat.cc: Include pr-output.h here. |
|
1664 |
3571
|
1665 * DLD-FUNCTIONS/rand.cc (curr_rand_dist): Return const char * |
|
1666 instead of char *. |
|
1667 |
3570
|
1668 * oct-fstrm.cc (octave_fstream::seek, octave_fstream::tell): |
|
1669 Call pubseekoff instead of seekoff. |
|
1670 |
3568
|
1671 * DLD-FUNCTIONS/dassl.cc (print_dassl_option_list): Use stream |
|
1672 manipulators instead of GNU iostream-specific form function. |
|
1673 * DLD-FUNCTIONS/fsolve.cc (print_fsolve_option_list): Ditto. |
|
1674 * DLD-FUNCTIONS/lsode.cc (print_lsode_option_list): Ditto. |
|
1675 * DLD-FUNCTIONS/quad.cc (print_quad_option_list): Ditto. |
|
1676 * pr-output.cc (pr_scale_header): Ditto. |
|
1677 |
3566
|
1678 * sighandlers.h: Include signal.h here. |
|
1679 * sighandlers.cc: Not here. |
|
1680 |
|
1681 * utils.cc: Include setjmp.h, not csetjmp. |
|
1682 * toplev.cc: Ditto. |
|
1683 |
|
1684 * sighandlers.cc: Include signal.h, not csignal. |
|
1685 |
|
1686 * pt-plot.h: Don't include csignal. |
|
1687 * toplev.cc: Ditto. |
|
1688 * oct-hist.cc: Ditto. |
|
1689 * octave.cc: Ditto. |
|
1690 * pager.cc: Ditto. |
|
1691 * input.cc: Ditto. |
|
1692 * help.cc: Ditto. |
|
1693 |
3565
|
1694 * pt-plot.cc (send_to_plot_stream): Use operator== and substr |
|
1695 method to do limited-length string comparison. |
|
1696 * input.cc (generate_completion): Likewise. |
|
1697 * ov-dld-fcn.cc (octave_dld_function::octave_dld_function): Likewise. |
|
1698 * ov-usr-fcn.cc (octave_user_function::mark_as_system_fcn_file): |
|
1699 Likewise. |
|
1700 |
|
1701 * utils.cc (check_preference): Expect exact string matches. |
|
1702 * variables.cc (ignore_function_time_stamp): Likewise. |
|
1703 * lex.l (whitespace_in_literal_matrix): Likewise. |
|
1704 |
3564
|
1705 * mappers.cc (xconj, ximag, xreal): New functions. Use them in |
|
1706 DEFUN_MAPPER calls. |
|
1707 |
|
1708 * defun-int.h (DEFUN_MAPPER_INTERNAL): Cast function pointer args |
|
1709 to octave_mapper constructor. |
|
1710 |
3523
|
1711 2000-02-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1712 |
3564
|
1713 * procstream.cc (procstreambase::procstreambase, |
|
1714 procstreambase::open, procstreambase::close): |
|
1715 Call std::ios::setstate, not set. |
|
1716 |
3561
|
1717 * lex.l (plot_axes_token): Declare plot_axes as const char *. |
|
1718 Declare tmp const char **. |
|
1719 |
3560
|
1720 * oct-procbuf.h: Include fstream, not streambuf.h. |
|
1721 |
3570
|
1722 * load-save.cc (Fsave): Call pubseekoff instead of seekoff. |
3558
|
1723 * oct-strstrm.cc (octave_base_strstream::tell): Likewise. |
|
1724 (octave_base_strstream::seek): Likewise. |
|
1725 |
3553
|
1726 * oct-stream.cc (octave_base_stream::read): Rename count to char_count. |
|
1727 (octave_base_stream::do_gets): Likewise. |
|
1728 |
|
1729 * octave-stream.cc (octave_base_stream::write): Rename flt_fmt to ffmt. |
|
1730 (octave_base_stream::read): Likewise. |
|
1731 |
3552
|
1732 * TEMPLATE-INST/SLStack-sym.cc: Delete meaningless `extern |
|
1733 template' declarations. |
|
1734 * TEMPLATE-INST/Array-tc.cc: Ditto. |
|
1735 |
|
1736 * TEMPLATE-INST/Map-fnc.cc: Don't try to instantiate goodCHptr or |
|
1737 CHptr_to_index here. |
|
1738 * TEMPLATE-INST/Map-tc.cc: Likewise. |
3554
|
1739 * Map.h (CHNode::goodCHptr, CHNode::CHptr_to_index): Now member |
|
1740 functions. Change all callers. |
3552
|
1741 |
|
1742 * load-save.cc (read_binary_file_header): Declare magic_len `const'. |
|
1743 |
|
1744 * token.h (token::token (const token&), token::operator=): |
|
1745 Delete unnecessary definitions. |
|
1746 |
|
1747 * oct-stream.cc (octave_stream::mode_as_string): Use |
|
1748 std::ios::binary, not std::ios::bin. |
|
1749 * load-save.cc (Fsave, Fload, save_user_variables): Likewise. |
|
1750 |
3550
|
1751 * DLD-FUNCTIONS/qz.cc (Fqz): Use Array<int> class instead of |
|
1752 trying to create automatic int array with variable size. |
|
1753 |
3548
|
1754 * variables.cc (F__dump_symbol_info__): Fix continuation char. |
3552
|
1755 * mappers.cc (Ftoupper): Likewise. |
3548
|
1756 * DLD-FUNCTIONS/besselj.cc (Fairy, Fbesselj): Likewise. |
|
1757 * DLD-FUNCTIONS/chol.cc (Fchol): Likewise. |
|
1758 * DLD-FUNCTIONS/det.cc (Fdet): Likewise. |
|
1759 * DLD-FUNCTIONS/eig.cc (Feig): Likewise. |
|
1760 * DLD-FUNCTIONS/gammainc.cc (gammainc): Likewise. |
|
1761 * DLD-FUNCTIONS/givens.cc (givens): Likewise. |
|
1762 * DLD-FUNCTIONS/hess.cc (hess): Likewise. |
|
1763 * DLD-FUNCTIONS/inv.cc (inv): Likewise. |
|
1764 * DLD-FUNCTIONS/log.cc (logm): Likewise. |
|
1765 * DLD-FUNCTIONS/lu.cc (lu): Likewise. |
|
1766 * DLD-FUNCTIONS/qr.cc (qr): Likewise. |
|
1767 * DLD-FUNCTIONS/schur.cc (schur): Likewise. |
|
1768 * DLD-FUNCTIONS/balance.cc (balance): Likewise. |
|
1769 * DLD-FUNCTIONS/svd.cc (svd): Likewise. |
|
1770 * DLD-FUNCTIONS/syl.cc (syl): Likewise. |
|
1771 * DLD-FUNCTIONS/expm.cc (Fexpm): Likewise. |
|
1772 |
|
1773 * token.h (token::token_type, token::end_tok_type, |
|
1774 token::plot_tok_type): Delete extraneous comma from enum decls. |
3552
|
1775 * load-save.cc (load_save_format): Likewise. |
3548
|
1776 |
3546
|
1777 * pt-idx.cc (tree_index_expression::tree_index_expression): |
|
1778 Delete default arg values. |
3552
|
1779 * oct-fstrm.cc (octave_fstream::octave_fstream): Likewise. |
|
1780 * oct-stream.cc (octave_stream::octave_stream): Likewise. |
3546
|
1781 |
|
1782 * siglist.h, siglist.c: New files. |
|
1783 * Makefile.in: Add them to the appropriate lists. |
|
1784 * siglist.c (sys_siglist): Move definition here from sighandlers.cc. |
|
1785 * siglist.h (sys_siglist): Move declaration here from sighandlers.h. |
|
1786 |
3545
|
1787 * ov.h, ov-bool.h, ov-bool-mat.h (bool_matrix_value): |
|
1788 Delete unnecessary arg. |
|
1789 |
3544
|
1790 * ov.h (octave_value::do_multi_index_op): Rename from do_index_op. |
|
1791 |
|
1792 * ov-fcn.h (octave_function::is_system_fcn_file): Now const. |
|
1793 |
3529
|
1794 * Map.cc (index_to_CHptr): Now a macro. |
3530
|
1795 (CHMap<C>::hash): Now a member function. |
3529
|
1796 |
3528
|
1797 * defun-int.h (UNDERSCORIFY): New macro. |
|
1798 (DEFCONST_INTERNAL, DEFCONSTX_INTERNAL): Use it. |
|
1799 |
3526
|
1800 * data.cc (Fis_list): Fix continuation char. |
3532
|
1801 * defaults.cc (IMAGEPATH): Likewise. |
3526
|
1802 |
|
1803 * Map.cc (CHptr_to_index, goodCHptr): Delete static decl. |
|
1804 |
3525
|
1805 * ov.h (unary_op, binary_op, assign_op): Prepend `op_' to elts. |
|
1806 Change all usses |
|
1807 |
3523
|
1808 * All source files: Sprinkle with std:: qualifier as needed. |
|
1809 |
3503
|
1810 2000-01-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1811 |
|
1812 * sighandlers.cc (install_signal_handlers): Add std:: qualifier |
|
1813 for set_net_handler. |
|
1814 |
|
1815 * All source files: Include iostream, fstream, strstream, |
|
1816 etc. as needed instead of using forward declarations for these |
|
1817 classes. |
|
1818 |
3498
|
1819 2000-01-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1820 |
|
1821 * input.cc (input_event_hook, Finput_event_hook): New functions. |
|
1822 (hook_fcn, user_data): New static variables. |
|
1823 |
3489
|
1824 2000-01-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1825 |
3491
|
1826 * pt-except.cc (do_catch_code): Don't do anything special for |
|
1827 tree_return_command::returning, or tree_break_command::breaking. |
|
1828 |
|
1829 * error.cc (vwarning): New function. |
|
1830 (warning): Use it instead of calling verror. |
|
1831 |
|
1832 * oct-stream.cc (octave_base_stream::oscanf): |
|
1833 Result is now always nconv+1 elements. Return count of successful |
|
1834 conversions in last element. |
|
1835 * file-io.cc (Ffscanf, Fsscanf, Fscanf): Fix doc string. |
|
1836 |
3490
|
1837 * pt-except.cc (do_catch_code): Unwind-protect buffer_error_messages. |
|
1838 Be sure to run all unwind-protects before returning. |
|
1839 (tree_try_catch_command::eval): Add do_catch_code cleanup function |
|
1840 to unwind-protect stack before resetting buffer_error_messages. |
|
1841 Use unwind-protect to save and restore buffer_error_messages. |
|
1842 If there is no catch code, discard the cleanup function and run |
|
1843 the unwind-protect for buffer_error_messages. |
|
1844 |
|
1845 * error.cc (bind_global_error_variable): Avoid dereferencing |
|
1846 error_message_buffer if it is NULL. |
|
1847 |
3489
|
1848 * parse.y (evaluating_function_body): New global flag. |
|
1849 * ov-usr-fcn.cc (octave_user_function::do_index_op): |
|
1850 Protect and set it here. |
|
1851 * parse.y (make_break_command, make_return_command): Check it here. |
|
1852 |
|
1853 * error.cc (warning_state): New global flag. |
|
1854 (warning): Set it here. |
|
1855 * lex.l (reset_parser): Clear it here. |
|
1856 * parse.y (fold): Check it here. |
|
1857 |
3484
|
1858 2000-01-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1859 |
3485
|
1860 * pt-walk.h (tree_walker::visit_do_until_command): New pure virtual. |
|
1861 * pt-pr-code.cc (tree_print_code::visit_do_until_command): |
3484
|
1862 New function. |
3485
|
1863 * pt-loop.h (tree_do_until_command): New class. |
3484
|
1864 (tree_while_command::expr, tree_while_command::list): |
|
1865 Now protected instead of private. |
3485
|
1866 * parse.y (make_do_until_command): New function. |
|
1867 (loop_command): Recognize do-until statement. |
3484
|
1868 (DO, UNTIL): New tokens. |
|
1869 |
|
1870 * input.cc (match_sans_spaces): Require non-blank part of test |
|
1871 string to match standard string exactly. |
|
1872 |
3483
|
1873 2000-01-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1874 |
|
1875 * oct-stream.h (scanf_format_elt::char_class): New struct elt. |
|
1876 Add arg to constructor. |
|
1877 (scanf_format_elt::special_conversion): New enum. |
|
1878 * oct-stream.cc (scanf_format_list::add_elt_to_list): New arg, |
|
1879 char_class. Pass it to scanf_format_elt constructor. |
|
1880 (scanf_format_list::scanf_format_list): Create separate list |
|
1881 elements for whitespace and literal conversions. |
|
1882 (expand_char_class): New function. |
|
1883 (scanf_format_list::finish_conversion): Extract character class |
|
1884 (not including the delimiting brackets) and expand the list of |
|
1885 characters. Pass the result to add_elt_to_list. |
|
1886 (scanf_format_list::all_character_conversions): Also accept '^', |
|
1887 scanf_format_elt::literal_conversion, and |
|
1888 scanf_format_elt::whitespace_conversion types too. |
|
1889 (DO_WHITESPACE_CONVERSION, BEGIN_CHAR_CLASS_CONVERSION, |
|
1890 BEGIN_C_CONVERSION, BEGIN_S_CONVERSION, DO_LITERAL_CONVERSION): |
|
1891 New macros. |
|
1892 (octave_base_stream::do_scanf, octave_base_stream::do_oscanf): |
|
1893 Use them to avoid code duplication. |
|
1894 Handle whitespace, literal text, and character class conversions. |
|
1895 (octave_base_stream::oscanf): Loop over all format list elements, |
|
1896 not just the first nconv elements. Clear status flags on is for |
|
1897 all streams. |
|
1898 |
3476
|
1899 2000-01-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1900 |
3480
|
1901 * xdiv.cc (result_ok): Just check value of info. |
|
1902 (solve_singularity_warning): New function. |
|
1903 (xleftdiv, xdiv): Pass pointer to solve_singularity_warning to |
|
1904 solve function. |
|
1905 |
|
1906 * lex.l (handle_identifier): Set next_tok_is_eq if we are looking |
|
1907 at `=', but not if we are looking at `=='. |
|
1908 |
3478
|
1909 * pt-pr-code.cc (tree_print_code::visit_unwind_protect_command): |
|
1910 Print `unwind_protect_cleanup', not `cleanup_code'. |
|
1911 |
3477
|
1912 * pager.cc (octave_pager_buf::flush_current_contents_to_diary): |
|
1913 New function. |
|
1914 (octave_pager_stream::flush_current_contents_to_diary): |
|
1915 Ditto. |
|
1916 (close_diary_file): Use the new octave_pager_stream function to |
|
1917 try to flush the current buffer to the diary when it is closed. |
|
1918 |
3476
|
1919 * variables.cc (Fexist): Return 6 for built-in constants. |
|
1920 |
|
1921 * pt-plot.cc (Fgshow): Don't append " " after last arg. |
|
1922 (Fgset): Likewise. |
|
1923 |
3472
|
1924 2000-01-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1925 |
|
1926 * ov-base-mat.h (octave_base_matrix::length): Return 0 for empty |
|
1927 arrays. |
|
1928 |
3465
|
1929 2000-01-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1930 |
|
1931 * DLD-FUNCTIONS/time.cc (Fstrptime): New function. |
|
1932 |
|
1933 * load-save.cc (Fsave): Add missing else. |
|
1934 |
3442
|
1935 2000-01-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1936 |
3444
|
1937 * DLD-FUNCTIONS/gammainc.cc (Fgammainc): Texinfoize doc string. |
3445
|
1938 * ov-typeinfo.cc (Ftypeinfo): Ditto. |
3446
|
1939 * parse.y (Vwarn_future_time_stamp): Ditto. |
|
1940 * DLD-FUNCTIONS/minmax.cc (Fmax, Fmin): Ditto. |
3445
|
1941 * ov-usr-fcn.cc (Fva_arg, Fva_start, Fvr_val): Ditto. |
3446
|
1942 * defaults.cc (VOCTAVE_HOME, Frehash): Ditto. |
|
1943 * toplev.cc (Fwarranty, Fcasesen): Ditto. |
|
1944 * utils.cc (Fdo_string_escapes, Ffile_in_loadpath): Ditto. |
|
1945 * variables.cc (F__dump_symtab_info__, F__dump_symbol_info__): Ditto. |
3447
|
1946 * ov-list.cc (Flist, Fappend, Fnth, Freverse, Fsplice): Ditto. |
3448
|
1947 * input.cc (Fread_readline_init_file): Ditto. |
|
1948 * file-io.cc (Fis_stream): Ditto. |
|
1949 * ov-cell.cc (Fiscell, Fcell): Ditto. |
|
1950 * pt-assign.cc (Vprint_rhs_assign_val): Ditto. |
|
1951 * pt-decl.cc (Vinitialize_global_variables): Ditto. |
|
1952 * symtab.cc (Vvariables_can_hide_functions): Ditto. |
3443
|
1953 |
3442
|
1954 * pt-plot.cc (Fgraw, Fgset, Fgshow, Vgnuplot_command_plot, |
|
1955 Vgnuplot_command_replot, Vgnuplot_command_splot, |
|
1956 Vgnuplot_command_using, Vgnuplot_command_with, |
|
1957 Vgnuplot_command_axes, Vgnuplot_command_title, |
|
1958 Vgnuplot_command_end): Texinfoize doc strings. |
|
1959 |
3447
|
1960 * oct-procbuf.cc (__kluge_procbuf_delay__): Rename from |
|
1961 kluge_procbuf_delay. Texinfoize doc string. |
|
1962 |
3427
|
1963 2000-01-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1964 |
|
1965 * parse.y (gobble_leading_whitespace): Discard first space character |
|
1966 after consecutive comment characters. |
|
1967 * lex.l (grab_help_text): Ditto. |
|
1968 |
3428
|
1969 * lex.l (Vwhitespace_in_literal_matrix, Vwarn_separator_insert, |
|
1970 Vwarn_single_quote_string): Texinfoize doc string. |
|
1971 |
3418
|
1972 2000-01-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1973 |
3419
|
1974 * ov.h, ov.cc (octave_value::column_vector_value, |
|
1975 octave_value::row_vector_value, |
|
1976 octave_value::complex_column_vector_value, |
|
1977 octave_value::complex_row_vector_value): New functions. |
|
1978 (octave_value::vector_value): Now returns Array<double>. |
|
1979 (octave_value::complex_vector_value): Now returns Array<Complex>. |
|
1980 Sprinkle conversions where necessary. |
|
1981 |
3418
|
1982 * ov.cc (Vprefer_column_vectors): Now static. |
|
1983 * ov.h (octave_value (const ComplexRowVector&), |
|
1984 octave_value (const ComplexColumnVector&), |
|
1985 octave_value (const RowVector&), octave_value (const ColumnVector&)): |
|
1986 Delete second arg. Change all callers. |
3419
|
1987 |
3418
|
1988 * oct-obj.h (octave_value_list (const RowVector&), |
|
1989 octave_value_list (const ColumnVector&), |
|
1990 octave_value_list (const ComplexRowVector&), |
|
1991 octave_value_list (const ComplexColumnVector&)): Likewise. |
|
1992 * ov-cx-mat.h, ov-cx-mat.cc |
|
1993 (octave_complex_matrix (const ComplexRowVector&), |
|
1994 (octave_complex_matrix (const ComplexColumnVector&)): |
|
1995 Delete second arg, simply create object with orientation |
|
1996 corresponding to vector arg. Move constructors to class decl. |
|
1997 * ov-re-mat.h, ov-re-mat.cc (octave_matrix (const RowVector&), |
|
1998 (octave_matrix (const ColumnVector&)): |
|
1999 Delete second arg, simply create object with orientation |
|
2000 corresponding to vector arg. Move constructors to class decl. |
|
2001 |
3411
|
2002 2000-01-07 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
2003 |
|
2004 * mappers.cc (Fconj, Ferf, Ferfc, Fgamma, Fimag, Flgamma, Flog10, |
|
2005 Freal, Fround): Add @seealso{...} to doc strings. |
|
2006 |
3408
|
2007 2000-01-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2008 |
3410
|
2009 * oct-stream.cc (do_scanf): Do the right thing again for character |
|
2010 conversions. |
|
2011 |
3408
|
2012 * help.cc (display_help_text): Also strip out leading spaces |
|
2013 before Texinfo @-commands before sending doc string to makeinfo. |
|
2014 (display_help_text): Improve format of `See also' string. |
|
2015 |
3405
|
2016 2000-01-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2017 |
|
2018 * help.cc (display_help_text): Pass a definition for @seealso |
|
2019 through the filter. |
|
2020 |
3400
|
2021 1999-12-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2022 |
|
2023 * lex.l (Vwarn_single_quote_string): New variable. |
|
2024 (syms_of_lex): DEFVAR it. |
|
2025 (warn_single_quote_string): New function. |
|
2026 (gripe_single_quote_string): New function. |
|
2027 Use new stuff to allow warnings for code that uses single quote |
|
2028 characters to introduce string constants. |
|
2029 |
3399
|
2030 1999-12-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2031 |
|
2032 * mkbuiltins: Add #undef quad to generated file. |
|
2033 |
3388
|
2034 1999-12-15 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2035 |
|
2036 * lex.l (Vwarn_separator_insert): New variable. |
|
2037 (syms_of_lex): DEFVAR it. |
|
2038 (warn_separator_insert): New function. |
|
2039 (maybe_warn_separator_insert): New function. |
|
2040 Use new stuff to allow warnings for code that might result in |
|
2041 auto-insertion of commas or semicolons, depending on the value of |
|
2042 whitespace_in_literal_matrix. |
|
2043 |
|
2044 * parse.y (Fsource): Record function file name here too. |
|
2045 |
3377
|
2046 1999-12-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2047 |
|
2048 * variables.cc (link_to_global_variable): If the local symbol is |
|
2049 not a variable, don't bother to clear it. Instead, just redefine |
|
2050 it by aliasing to the global symbol. |
|
2051 |
3372
|
2052 1999-11-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2053 |
3373
|
2054 * DLD-FUNCTIONS/balance.cc (Fbalance): Texinfoize doc string. |
|
2055 * DLD-FUNCTIONS/det.cc (Fdet): Ditto. |
|
2056 * DLD-FUNCTIONS/eig.cc (Feig): Ditto. |
|
2057 * DLD-FUNCTIONS/givens.cc (Fgivens): Ditto. |
|
2058 * DLD-FUNCTIONS/inv.cc (Finv): Ditto. |
|
2059 * DLD-FUNCTIONS/chol.cc (Fchol): Ditto. |
|
2060 * DLD-FUNCTIONS/hess.cc (Fhess): Ditto. |
|
2061 * DLD-FUNCTIONS/lu.cc (Flu): Ditto. |
|
2062 * DLD-FUNCTIONS/qr.cc (Fqr): Ditto. |
|
2063 * DLD-FUNCTIONS/schur.cc (Fschur): Ditto. |
|
2064 * DLD-FUNCTIONS/svd.cc (Fsvd): Ditto. |
|
2065 * DLD-FUNCTIONS/expm.cc (Fexpm): Ditto. |
|
2066 * DLD-FUNCTIONS/log.cc (Flogm, Fsqrtm): Ditto. |
|
2067 * DLD-FUNCTIONS/syl.cc (Fsyl): Ditto. |
|
2068 * DLD-FUNCTIONS/pinv.cc (Fpinv): Ditto. |
|
2069 * DLD-FUNCTIONS/qz.cc (Fqz): Ditto. |
|
2070 * DLD-FUNCTIONS/dassl.cc (Fdassl, Fdassl_options): Ditto. |
|
2071 * DLD-FUNCTIONS/lsode.cc (Flsode, Flsode_options): Ditto. |
|
2072 * data.cc (Flength, Fsize, Fisempty): Ditto. |
3372
|
2073 * sysdep.cc (Fkbhit): Ditto. |
|
2074 * input.cc (Fkeyboard, Finput): Ditto. |
|
2075 * variables.cc (ans): Ditto. |
|
2076 * pr-output.cc (Fdisp, Fformat): Ditto. |
|
2077 * ov.cc (Vprint_answer_id_name): Ditto. |
3373
|
2078 * defaults.cc (IMAGEPATH): Ditto. |
|
2079 * error.cc (Ferror, Fwarning, Fusage, error_text, beep_on_error): |
|
2080 Ditto. |
3372
|
2081 * load-save.cc (Fload, Fsave, Vdefault_save_format, |
|
2082 Vsave_precision): Ditto. |
|
2083 * file-io.cc (Ffflush, Ffopen, Ffclose, Ffputs, Ffgetl, Ffgets, |
|
2084 Ffprintf, Fsprintf, Fscanf, Ffscanf, Fsscanf, Ffread, Ffwrite, |
|
2085 Ffseek, Fftell, Ffeof, Fferror, Ffreport, Ftmpnam, Vstdin_file, |
|
2086 Vstdout_file, Vstderr_file, SEEK_SET, SEEK_CUR, SEEK_END): Ditto. |
|
2087 * pager.cc (Vpager_binary, Vpage_output_immediately, |
|
2088 Vpage_screen_output, Fmore): Ditto. |
|
2089 |
3369
|
2090 1999-11-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2091 |
|
2092 * utils.cc (Vtreat_neg_dim_as_zero): Texinfoize doc string. |
|
2093 * DLD-FUNCTIONS/find.cc (Ffind): Ditto. |
|
2094 * DLD-FUNCTIONS/rand.cc (Frand, Frandn): Ditto. |
|
2095 * DLD-FUNCTIONS/sort.cc (Fsort): Ditto. |
|
2096 * mappers.cc (Fisinf, Fisnan, Ffinite): Ditto. |
|
2097 * data.cc (Fall, Fany, Fdiag, Fones, Fzeros, Feye, Flinspace): Ditto. |
3371
|
2098 * defaults.cc (Vloadpath, Vdefault_loadpath): Ditto. |
|
2099 * parse.y (Feval, Ffeval, Vdefault_eval_print_flag, |
|
2100 Vwarn_missing_semicolon, Vwarn_function_name_clash, Fsource): Ditto. |
|
2101 * ov-usr-fcn.cc (Vmax_recursion_depth, Vdefault_return_value, |
|
2102 Vdefine_all_return_values, Vreturn_last_computed_value): Ditto. |
|
2103 * ov.cc (Vok_to_lose_imaginary_part, Vdo_fortran_indexing, |
|
2104 Vprefer_column_vectors, Vresize_on_range_error, |
|
2105 Vwarn_divide_by_zero): Ditto. |
|
2106 * pt-stmt.cc (Vsilent_functions): Ditto. |
|
2107 * variables.cc (Vignore_function_time_stamp): Ditto. |
|
2108 * dynamic-ld.cc (Vwarn_reload_forces_clear): Ditto. |
3369
|
2109 |
3367
|
2110 1999-11-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2111 |
3368
|
2112 * DLD-FUNCTIONS/fft.cc (Ffft): Texinfoize doc string. |
|
2113 * DLD-FUNCTIONS/ifft.cc (Fifft): Ditto. |
|
2114 * DLD-FUNCTIONS/fft2.cc (Ffft2): Ditto. |
|
2115 * DLD-FUNCTIONS/ifft2.cc (Fifft2): Ditto. |
|
2116 * DLD-FUNCTIONS/filter.cc (Ffilter): Ditto. |
|
2117 * DLD-FUNCTIONS/quad.cc (Fquad, Fquad_options): Ditto. |
|
2118 * DLD-FUNCTIONS/colloc.cc (Fcolloc): Ditto. |
|
2119 * DLD-FUNCTIONS/fsolve.cc (Ffsolve, Ffsolve_options): Ditto. |
|
2120 * defaults.cc (Veditor): Ditto. |
|
2121 * pt-plot.cc (Vautomatic_replot, Vgnuplot_binary, |
|
2122 Vgnuplot_has_frames, Vgnuplot_has_multiplot, Fclearplot, |
|
2123 Fcloseplot, Fpurge_tmp_files, Fishold, Fhold): |
3367
|
2124 |
|
2125 * Makefile.in (parse.cc): Expect 11 shift/reduce conflicts now. |
|
2126 |
3361
|
2127 1999-11-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2128 |
3366
|
2129 * parse.y (Vwarn_assign_as_truth_value, Vwarn_variable_switch_label): |
|
2130 Texinfoize doc strings. |
|
2131 |
3365
|
2132 * DLD-FUNCTIONS/pinv.cc (Fpinv): Texinfoize doc string. |
|
2133 |
3364
|
2134 * defun-int.h (DEFUN_DLD_INTERNAL): New macro. |
|
2135 * defun-dld.h [MAKE_BUILTINS] (DEFUN_DLD): Simply expand to |
|
2136 DEFUN_DLD_INTERNAL. |
|
2137 * mkbuiltins: Generate code to define DEFUN_DLD_INTERNAL. |
|
2138 * mkgendoc: Likewise. |
|
2139 |
3363
|
2140 * Makefile.in (gendoc.o): Don't optimize when creating gendoc. |
3364
|
2141 (%.dc : %.cc): Delete rule. |
3363
|
2142 |
3361
|
2143 * pt-decl.cc (Vdefault_global_variable_value): Texinofize doc string. |
|
2144 * variables.cc (Fclear, Fdocument, Fexist, Fis_global, Fwho): Ditto. |
|
2145 * help.cc (Ftype, Fwhich): Ditto. |
|
2146 * ov.cc (Vstruct_levels_to_print, Vimplicit_str_to_num_ok): Ditto. |
|
2147 * data.cc (Fis_struct, Fstruct_elements, Fstruct_constains): Ditto. |
|
2148 * strfns.cc (Fisstr, Fsetstr): Ditto. |
|
2149 * pt-mat.cc: (Fimplicit_num_to_str_ok, Fstring_fill_char): Ditto. |
|
2150 * utils.cc (Fundo_string_escapes): Ditto. |
|
2151 * mappers.cc: (Fisalnum, Fisalpha, Fisascii, Fiscntrl, Fisdigit, |
|
2152 Fisgraph, Fislower, Fisprint, Fispunct, Fisspace, Fisupper, |
|
2153 Fisxdigit, Ftoascii, Ftolower, Ftoupper): Ditto. |
|
2154 |
3357
|
2155 1999-11-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2156 |
3360
|
2157 * syscalls.cc (symbols_of_syscalls): Use DEFCONSTX to define |
|
2158 Octave constants for C macros like O_WRONLY. |
|
2159 |
3357
|
2160 * oct-lvalue.cc (octave_lvalue::set_index): Disallow expressions |
|
2161 like x(i)(j) = rhs. |
|
2162 |
3355
|
2163 1999-11-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2164 |
3356
|
2165 * symtab.cc (symbol_record::type_as_string): New function. |
3355
|
2166 |
|
2167 * symtab.cc (symbol_record::which): New functions. |
|
2168 * help.cc (do_which): New functions. |
|
2169 (Fwhich): Use them. |
|
2170 |
|
2171 * help.cc (help_from_symbol_table, help_from_file): New functions. |
|
2172 (builtin_help): Use them. |
|
2173 |
|
2174 * help.cc (do_type): New function. |
3356
|
2175 (symbol_record::type): New function. |
3355
|
2176 (Ftype): Use them. |
|
2177 |
|
2178 * help.cc (print_symbol_type): Delete. |
|
2179 |
|
2180 * symtab.cc (symbol_table::name_list): Delete count arg. |
|
2181 (symbol_table::symbol_list): Likewise. |
|
2182 (symbol_table::glob): Likewise. Also return Array<symbol_record *> |
|
2183 instead of symbol_record **. |
|
2184 Change all callers. |
|
2185 * help.cc (names, display_symtab_names): Delete count arg. |
|
2186 |
|
2187 * help.cc (print_symbol_type, Ftype): No longer need to look up |
|
2188 fcn_file_name in the loadpath. |
|
2189 |
|
2190 * help.cc (print_symbol_type): Handle dld functions. |
|
2191 (help_from_symbol_table, help_from_file): New functions. |
|
2192 (builtin_help): Use them. |
|
2193 |
3354
|
2194 1999-11-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2195 |
|
2196 * ov-cell.cc (Fiscell, Fcell): New Functions. |
|
2197 (octave_cell::do_index_op): New function. |
|
2198 |
|
2199 * utils.cc (get_dimensions): Move here from data.cc and make extern. |
|
2200 (Vtreat_neg_dim_as_zero, treat_neg_dim_as_zero): Likewise. |
|
2201 (symbols_of_utils): New function. |
|
2202 |
|
2203 * data.cc (fill_matrix (const octave_value_list&, double, |
|
2204 const char*)): New function. |
|
2205 (Fones, Fzeros): Use it to avoid some code duplication. |
|
2206 |
3352
|
2207 1999-11-15 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2208 |
|
2209 * pt-cell.h, pt-cell.cc, ov-cell.h, ov-cell.cc, Cell.h, Cell.cc: |
|
2210 New files. |
|
2211 * Makefile.in: Add them to the appropriate lists. |
|
2212 * pt-walk.h (visit_cell (tree_cell&): New pure virtual. |
|
2213 * pt-pr-code.cc (tree_print_code::visit_cell (tree_cell&)): New |
|
2214 function. |
|
2215 * TEMPLATE-INST/Array-tc.cc: Instantiate 2D arrays of octave_value |
|
2216 objects. |
|
2217 * pt-all.h: Include pt-cell.h. |
|
2218 * ov.h, ov.cc (octave_value::is_cell, octave_value::cell_value): |
|
2219 New functions. |
|
2220 * ov-base.h, ov-base.cc (octave_value::is_cell, |
|
2221 octave_value::cell_value): Provide defaults. |
|
2222 * lex.h, lex.l: Handle `{' and `}' tokens (for cell arrays). |
|
2223 (bracketflag): Rename from braceflag. |
|
2224 (handle_close_bracket): Rename from handle_close_brace. |
|
2225 (class bracket_brace_paren_nesting_level): Rename from |
|
2226 brace_paren_nesting_level. |
|
2227 (bracket_brace_paren_nesting_level::bracket, |
|
2228 bracket_brace_paren_nesting_level::is_bracket): New functions to |
|
2229 keep count of nesting level for `[' and `]'. |
|
2230 (bracket_brace_paren_nesting_level::brace, |
|
2231 bracket_brace_paren_nesting_level::is_brace): Now keeps count of |
|
2232 nesting level for `{' and `}'. |
|
2233 * parse.y (tree_cell_type): New type. |
|
2234 Give '{' the same precedence and associativity as '(' and '.' |
|
2235 (matrix_rows, matrix_rows1): Rename from rows, rows1. |
|
2236 (cell, cell_rows, cell_rows1): New non-terminals. |
|
2237 (cell_or_matrix_row): Rename from matrix_row. |
|
2238 (primary_expr): Accept cell here. |
|
2239 (postfix_expr): Allow indexing using '{' arg_list '}'. |
|
2240 (finish_cell): New function. |
|
2241 |
3350
|
2242 1999-11-12 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2243 |
|
2244 * utils.cc (jump_to_top_level): No longer declared extern "C". |
|
2245 |
|
2246 * cutils.c (octave_strcasecmp, octave_strncasecmp): New functions. |
|
2247 * utils.cc (almost_match): Call octave_strncasecmp instead of |
|
2248 calling strncasecmp directly. |
|
2249 |
3347
|
2250 1999-11-10 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2251 |
|
2252 * parse.y: Don't define warn_reload_forces_clear here. |
|
2253 |
|
2254 * Makefile.in (DISTFILES): Include DOCSTRINGS. |
|
2255 |
3340
|
2256 1999-11-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2257 |
3343
|
2258 * sighandlers.cc (install_signal_handlers): Don't install |
|
2259 sigwinch_handler. |
|
2260 |
3342
|
2261 * oct-iostrm.h (octave_istream::eof, octave_ostream::eof): Provide |
|
2262 implementation for these. |
|
2263 |
|
2264 * oct-stream.cc (octave_base_stream::do_scanf): |
|
2265 The stdin stream is only special if we are interactive. |
|
2266 (octave_base_stream::scanf): Ditto. |
|
2267 (octave_base_stream::do_oscanf): Ditto. |
|
2268 (octave_base_stream::oscanf): Ditto. |
|
2269 |
3340
|
2270 * ov.h (octave_value::is_stream): New predicate. |
|
2271 * ov-file.h (octave_file::is_stream): Return true. |
|
2272 * file-io.cc (Fis_stream): New function. |
|
2273 |
|
2274 * ov-file.h (class octave_file): stream is now an object instead |
|
2275 of pointer. |
|
2276 * ov-file.cc (octave_file::print_raw): Handle stream as object |
|
2277 instead of pointer. Also print stream status. |
|
2278 |
|
2279 * ov-base.cc (octave_base_value::stream_value): Return object |
|
2280 instead of pointer. |
|
2281 |
|
2282 * ov.cc (octave_value::stream_value): Return object instead of pointer. |
|
2283 (octave_value::octave_value (const octave_stream&)): Take const |
|
2284 reference instead of pointer arg. |
|
2285 |
|
2286 * TEMPLATE-INST/Array-os.cc: Instantiate Arrays of octave_stream |
|
2287 objects, not pointers to them. |
|
2288 |
|
2289 * OPERATORS/op-fil-b.cc: Cope with octave_stream class changes. |
|
2290 * OPERATORS/op-fil-bm.cc: Likewise. |
|
2291 * OPERATORS/op-fil-cm.cc: Likewise. |
|
2292 * OPERATORS/op-fil-cs.cc: Likewise. |
|
2293 * OPERATORS/op-fil-lis.cc: Likewise. |
|
2294 * OPERATORS/op-fil-m.cc: Likewise. |
|
2295 * OPERATORS/op-fil-rec.cc: Likewise. |
|
2296 * OPERATORS/op-fil-s.cc: Likewise. |
|
2297 * OPERATORS/op-fil-str.cc: Likewise. |
|
2298 * file-io.cc: Likewise. |
|
2299 * syscalls.cc (Fdup): Likewise. |
|
2300 |
|
2301 * oct-fstrm.cc, oct-fstrm.h, oct-iostrm.cc, oct-iostrm.h, |
|
2302 oct-prcstrm.cc, oct-prcstrm.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
2303 oct-stream.cc, oct-stream.h, oct-strstrm.cc, oct-strstrm.h: |
|
2304 Rewrite to allow octave_stream objects to be used like values |
|
2305 instead of having to use pointers. |
|
2306 |
3337
|
2307 1999-11-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2308 |
|
2309 * oct-stream.cc (octave_base_stream::do_scanf): If it looks like |
|
2310 we have a matching failure, then reset the failbit in the stream |
|
2311 state. |
|
2312 (octave_base_stream::do_oscanf): Likewise. |
|
2313 |
3332
|
2314 1999-11-02 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
2315 |
3361
|
2316 * help.cc (Fhelp): Texinfoize doc string. |
|
2317 * input.cc (Fecho, Fcompletion_matches): Ditto. |
|
2318 * oct-hist.cc (Fedit_history, Fhistory, Frun_history): Ditto. |
|
2319 * pager.cc (Fdiary): Ditto. |
|
2320 * sysdep.cc (Fclc): Ditto. |
|
2321 * toplev.cc (Fquit, Fatexit): Ditto. |
3332
|
2322 |
|
2323 1999-11-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2324 |
|
2325 * lex.l (yywrap): No longer static. |
|
2326 (have_continuation): Declare input character as int, not char, so |
|
2327 comparison to EOF will work. |
|
2328 |
3330
|
2329 1999-11-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2330 |
|
2331 * defun.cc (print_usage): Use display_help_text instead of sending |
|
2332 help message directly to octave_stdout. |
|
2333 |
3325
|
2334 1999-10-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2335 |
|
2336 * defun-dld.h (INSTALL_DLD_FCNS, INSTALL_DLD_FCN): Delete definitions. |
|
2337 * DLD-FUNCTIONS/dassl.cc: Don't use INSTALL_DLD_FCN or |
|
2338 INSTALL_DLD_FCNS macros. They are not necessary with the new code |
|
2339 in dynamic-ld.cc. |
|
2340 * DLD-FUNCTIONS/lsode.cc: Ditto. |
|
2341 * DLD-FUNCTIONS/fsolve.cc: Ditto. |
|
2342 * DLD-FUNCTIONS/quad.cc: Ditto. |
|
2343 * DLD-FUNCTIONS/time.cc: Ditto. |
|
2344 * DLD-FUNCTIONS/besselj.cc: Ditto. |
|
2345 * DLD-FUNCTIONS/getgrent.cc: Ditto. |
|
2346 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
2347 * DLD-FUNCTIONS/inv.cc: Ditto. |
|
2348 * DLD-FUNCTIONS/log.cc: Ditto. |
|
2349 * DLD-FUNCTIONS/minmax.cc: Ditto. |
|
2350 * DLD-FUNCTIONS/rand.cc: Ditto. |
|
2351 |
|
2352 * dynamic-ld.cc, dynamic-ld.h: Major rewrite to allow reloading of |
|
2353 dynamically linked functions. |
|
2354 |
|
2355 * symtab.cc (symbol_record::replace_all_defs): Don't allow top |
|
2356 definition to be NULL. |
|
2357 (symbol_table::clear): Allow dynamically linked functions to be |
|
2358 cleared. |
|
2359 |
|
2360 * symtab.h (TYPE): New enum value, DLD_FUCTION. |
|
2361 (symbol_type): Now 8 bits wide. |
|
2362 (SYMTAB_ALL_TYPES): Include DLD_FUNCTION. |
|
2363 (symbol_record::symbol_def::is_function): Also recognize dld functions. |
|
2364 (symbol_record::symbol_def::is_dld_function): New function. |
|
2365 (symbol_record::is_dld_function): Ditto. |
|
2366 |
|
2367 * defun.cc (install_dld_function): New function. |
|
2368 * defun-int.h: Provide declaration here. |
|
2369 (octave_dld_fcn_installer): New typedef. |
|
2370 (DEFINE_FUN_INSTALLER_FUN): Installer function now takes an |
|
2371 oct_shlib object as an arg. Allow installation of a function to |
|
2372 happen more than once. |
|
2373 |
|
2374 * octave.cc (initialize_error_handlers): Call |
|
2375 set_liboctave_warning_handler here too. |
|
2376 |
|
2377 * ov-builtin.h (is_builtin_function): Return true. |
|
2378 Data member is now protected, not private. |
|
2379 |
|
2380 * ov-fcn.h (is_dynamically_loaded_function): New predicate. |
|
2381 (unload): New function. |
|
2382 Data members are now protected, not private. |
|
2383 |
|
2384 * ov.h (is_builtin_function, is_dld_function): New predicates. |
|
2385 * ov-base.h (is_builtin_function, is_dld_function): Ditto. |
|
2386 |
|
2387 * parse.y (Vwarn_reload_forces_clear): New static flag. |
|
2388 (warn_reload_forces_clear): New function. |
|
2389 (symbols_of_parse): DEFVAR warn_reload_forces_clear. |
|
2390 |
|
2391 * variables.cc (Fclear): Look for dld functions too. |
|
2392 |
3770
|
2393 * ov-dld-fcn.cc, ov-dld-fcn.h: New files. |
3325
|
2394 * Makefile.in (OV_INCLUDES, OV_SRC): Add them to the lists. |
|
2395 |
|
2396 * Makefile.in (DEFVAR_PATTERN): Also match DEFCONSTX. |
|
2397 |
3321
|
2398 1999-10-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2399 |
3325
|
2400 * DLList.h, DLList.cc: New files. |
|
2401 * Makefile.in (INCLUDES, DIST_SRC): Add them to the lists. |
|
2402 |
3323
|
2403 * DLD-FUNCTIONS/lsode.cc (Flsode): Be sure to call |
|
2404 unwind_protect::run_frame before returning. |
|
2405 * DLD-FUNCTIONS/quad.cc (Fquad): Likewise. |
|
2406 * DLD-FUNCTIONS/fsolve.cc (Ffsolve): Likewise. |
|
2407 * DLD-FUNCTIONS/dassl.cc (Fdassl): Likewise. |
|
2408 |
|
2409 * load-save.cc (read_mat_ascii_data): When reading from |
|
2410 tmp_stream, check its state, not the state of is. |
|
2411 |
|
2412 * defun-dld.h (INSTALL_DLD_FCN, INSTALL_DLD_FCNS): New macros. |
|
2413 * DLD-FUNCTIONS/dassl.cc: Use them. |
|
2414 * DLD-FUNCTIONS/lsode.cc: Ditto. |
|
2415 * DLD-FUNCTIONS/fsolve.cc: Ditto. |
|
2416 * DLD-FUNCTIONS/quad.cc: Ditto. |
|
2417 * DLD-FUNCTIONS/time.cc: Ditto. |
|
2418 * DLD-FUNCTIONS/besselj.cc: Ditto. |
|
2419 * DLD-FUNCTIONS/getgrent.cc: Ditto. |
|
2420 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
2421 * DLD-FUNCTIONS/inv.cc: Ditto. |
|
2422 * DLD-FUNCTIONS/log.cc: Ditto. |
|
2423 * DLD-FUNCTIONS/minmax.cc: Ditto. |
|
2424 * DLD-FUNCTIONS/rand.cc: Ditto. |
|
2425 |
3322
|
2426 * data.cc (Flinspace): Let linspace functions handle errors. |
|
2427 |
3321
|
2428 * mkgendoc (print_doc_string): Handle quoted names. |
|
2429 |
|
2430 * file-io.cc (symbols_of_file_io): Use DEFCONSTX for SEEK_SET, |
|
2431 SEEK_CUR, and SEEK_END. |
|
2432 |
|
2433 * defun.h (DEFCONST): Just pass name, defn, and doc to |
|
2434 DEFCONST_INTERNAL. |
|
2435 (DEFCONSTX): Likewise, pass name, defn, and doc to DEFCONSTX_INTERNAL. |
|
2436 * defun-int.h [MKBUILTINS] (DEFCONST_INTERNAL): Likewise, pass |
|
2437 name, defn, and doc to XDEFCONST_INTERNAL. |
|
2438 [MKBUILTINS] (DEFCONSTX_INTERNAL): New macro. |
|
2439 (INSTALL_CONST): New macro. |
|
2440 [! MKBUILTINS] (DEFCONST_INTERNAL): Use it to handle details here. |
|
2441 [! MKBUILTINS] (DEFCONSTX_INTERNAL): Ditto. |
|
2442 * mkgendoc: Fix definition of XDEFCONST_INTERNAL to match. |
|
2443 * mkbuiltins: Ditto. |
|
2444 |
|
2445 * mkdefs: Match spaces before BEGIN_INSTALL_BUILTIN. |
|
2446 |
|
2447 * Makefile.in (DEFUN_PATTERN): Also match DEFUN_MAPPER. |
|
2448 |
|
2449 1999-10-26 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
2450 |
|
2451 * data.cc (VI, VInf, VJ, VNaN, Ve, Veps, Vfalse, Vi, Vinf, Vj, |
|
2452 Vnan, Vpi, Vrealmax, Vrealmin): Texinfoize doc strings. |
|
2453 * mappers.cc (Fabs, Facos, Facosh, Fangle, Farg, Fasin, Fasinh, |
|
2454 Fatan, Fatanh, Fceil, Fconj, Fcos, Fcosh, Ferf, Ferfc, Fexp, |
|
2455 Ffinite, Ffix, Ffloor, Fgamma, Fimag, Flgamma, Flog, Flog10, |
|
2456 Freal, Fround, Fsign, Fsin, Fsinh, Fsqrt, Ftan, Ftanh): Ditto. |
|
2457 |
|
2458 1999-10-23 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
2459 |
3361
|
2460 * data.cc (Fis_matrix): Texinfoize doc string. |
|
2461 * ov.cc (Vpropagate_empty_matrices): Ditto. |
|
2462 * pt-mat.cc: (Vempty_list_elements_ok): Ditto. |
|
2463 * pr-output.cc (Vfixed_point_format, Voutput_max_field_width, |
|
2464 Voutput_precision, Vprint_empty_dimensions, Vsplit_long_rows): |
|
2465 Ditto. |
3321
|
2466 |
|
2467 1999-10-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2468 |
3323
|
2469 * ov-usr-fcn.cc (octave_user_function::do_index_op): If |
|
2470 Vmax_recursion_depth is exceeded, call unwind_protect::run_frame |
|
2471 before returning. |
3321
|
2472 |
3308
|
2473 1999-10-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2474 |
3317
|
2475 * cutils.c (do_octave_usleep): Handle useconds > 1e6. |
|
2476 |
3308
|
2477 * variables.h (is_valid_function): Provide default values for the |
|
2478 string argument. |
|
2479 |
|
2480 * symtab.cc (variable_reference): Maybe print warning (or error) |
|
2481 about variables that hide functions of the same name. |
|
2482 (symbol_record::define (const octave_value&, unsigned int)): Ditto. |
|
2483 (Vvariables_can_hide_functions): New static variable. |
|
2484 (variables_can_hide_functions, symbols_of_symtab): New functions. |
|
2485 |
|
2486 * cutils.c: New file. |
|
2487 * Makefile.in (SOURCES): Add it to the list. |
|
2488 * utils.h: Declare octave_usleep here. |
|
2489 * dirfns.cc (Fls): Simply all octave_usleep. |
|
2490 * oct-procbuf.cc (octave_procbuf::open): Ditto. |
|
2491 * sysdep.cc (Fusleep): Ditto. |
|
2492 * toplev.cc (run_command_and_return_output): Ditto. |
|
2493 |
3305
|
2494 1999-10-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2495 |
3307
|
2496 * data.cc (make_diag (const octave_value&, const octave_value&)): |
|
2497 Delete special cases for scalars and simply attempt conversion of |
|
2498 first arg to a matrix value. If that fails, we will still see an |
|
2499 error message. |
|
2500 |
3305
|
2501 * Makefile.in (DISTFILES): Add mkgendoc to the list. |
|
2502 |
3296
|
2503 1999-10-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2504 |
3301
|
2505 * Makefile.in (stmp-pic): New target. |
|
2506 ($(PICOBJS)): Depend on stmp-pic, not pic. |
|
2507 |
|
2508 * ov.h (get_rep): New function. |
|
2509 |
|
2510 * help.cc (display_help_text): Pass definitions for VERSION, |
|
2511 OCTAVE_HOME, and TARGETHOSTTYPE to makeinfo. |
|
2512 |
|
2513 * DLD-FUNCTIONS/getgrent.cc: Texinfoize all doc strings. |
|
2514 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
2515 * DLD-FUNCTIONS/getrusage.cc: Ditto. |
|
2516 * DLD-FUNCTIONS/time.cc: Ditto. |
|
2517 |
|
2518 * defaults.cc (EXEC_PATH, OCTAVE_VERSION): Texinfoize doc strings. |
|
2519 * dirfns.cc (Fcd, Fls, Fpwd, Freaddir, Fmkdir, Frmdir, Frename, |
|
2520 Fglob, Ffnmatch): Ditto. |
|
2521 * file-io.cc (Fpopen, Fpclose, Fumask): Ditto. |
|
2522 * sysdep.cc (Fgetenv, Fputenv, Fpause, Fsleep, Fusleep, Fisieee, |
|
2523 Ftilde_expand): Ditto. |
|
2524 * toplev.cc (Fcomputer, Fsystem, Foctave_config_info): Ditto. |
|
2525 * utils.cc (Ffile_in_path): Ditto. |
|
2526 * syscalls.cc (Fdup2, Fexec, Ffcntl, Ffork, Fgetpgrp, Fgetpid, |
|
2527 Fgetppid, Fgetegid, Fgetgid, Fgeteuid, Fgetuid, Fmkfifo, Fpipe, |
|
2528 Fstat, Funlink, Fwaitpid, F): Ditto. |
|
2529 (Flstat): Refer to stat for doc. |
|
2530 |
|
2531 |
3296
|
2532 * help.cc (looks_like_texinfo): New function. |
|
2533 (display_help_text): Use it to see if the doc string looks like |
|
2534 Texinfo source. If so, use makeinfo to format the text before |
|
2535 displaying it. |
|
2536 |
|
2537 * mkgendoc: New script. |
|
2538 * Makefile.in: Use it to create gendoc.cc, which is compiled and |
|
2539 run to create DOCSTRINGS file from sources. |
|
2540 |
3295
|
2541 1999-10-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2542 |
|
2543 * help.cc (help_from_info): Print `unable to find info' message if |
|
2544 try_info returns 127; otherwise, print `not indexed' message. |
|
2545 Don't sleep after printing `not indexed' message. |
|
2546 |
3292
|
2547 1999-10-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2548 |
|
2549 * parse.y (fold (tree_unary_expression *)): New function. |
|
2550 (make_prefix_op, make_postfix_op): Use it. |
|
2551 |
3281
|
2552 1999-10-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2553 |
3288
|
2554 * Makefile.in (oct-gperf.h): Ask for ANSI-C output from gperf |
|
2555 (requires gperf-2.7 or later). |
|
2556 |
3281
|
2557 * sighandlers.cc (sigwinch_handler): New function. |
|
2558 (install_signal_handlers): Install it. |
|
2559 |
3273
|
2560 Thu Sep 23 19:49:36 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2561 |
|
2562 * toplev.cc (Fsystem): For async case, use execl instead of |
|
2563 system, avoiding the need to exit after executing the subprocess. |
|
2564 |
3268
|
2565 Thu Sep 9 17:09:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2566 |
|
2567 * oct-stream.cc (get_size): Allow zero values. |
|
2568 (get_size): New arg, one_elt_size_spec. |
|
2569 (do_scanf_conv): New arg, `conv_count'. Change instantiation |
|
2570 requests and all callers. |
|
2571 (octave_base_stream::do_scanf): Improve scanning of strings. |
|
2572 (octave_base_stream::do_oscanf): Remove size limit on %s conversions. |
|
2573 |
|
2574 * oct-stream.cc (scanf_format_list::all_character_conversions): |
|
2575 Don't count %p as a character conversion. |
|
2576 |
|
2577 Tue Sep 7 08:31:04 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2578 |
|
2579 * pr-output.cc (set_real_matrix_format, set_complex_matrix_format): |
|
2580 Move check for fixed_point_format ahead of check for |
|
2581 int_or_inf_or_nan. |
|
2582 |
3264
|
2583 Thu Sep 2 11:54:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2584 |
|
2585 * oct-obj.cc (make_argv): Correctly handle empty strings as args. |
|
2586 |
3263
|
2587 Fri Aug 20 08:17:52 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2588 |
|
2589 * DLD-FUNCTIONS/quad.cc (quad): Delete unused label. |
|
2590 |
|
2591 * unwind-prot.cc (saved_variable::~saved_variable): Don't try to |
|
2592 delete gen_ptr_value here. |
|
2593 |
|
2594 Mon Aug 16 21:34:33 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2595 |
|
2596 * lex.l (next_token_is_sep_op): New function. |
|
2597 (handle_close_brace, maybe_unput_comma): Use it. |
|
2598 (have_continuation): Also handle CRLF here. |
|
2599 |
|
2600 Wed Aug 11 16:06:57 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2601 |
|
2602 * file-io.cc (Ffopen): Make fopen ("filename") work and imply that |
|
2603 MODE = "r". |
|
2604 |
3258
|
2605 Wed Jul 21 15:38:52 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2606 |
3259
|
2607 * help.cc (display_names_from_help_list): Sort names before |
|
2608 listing them. |
|
2609 (print_symbol_type, Ftype): Also handle built-in constants. |
|
2610 (LIST_SYMBOLS): Correct call to symbol_table::name_list. |
|
2611 (simple_help): List constants here too. List constants and |
|
2612 variables before functions, not after. Sort names before listing |
|
2613 them. |
|
2614 |
|
2615 * variables.cc (do_who): Display built-in constants in a separate |
|
2616 section. |
|
2617 |
|
2618 * error.cc (bind_global_error_variable, clear_global_error_variable): |
|
2619 Call bind_builtin_constant, not bind_builtin_variable to set |
|
2620 __error_text__. |
|
2621 * octave.cc (intern_argv): Likewise, for argv and __argv__. |
|
2622 |
|
2623 * defun.cc (install_builtin_constant): Move function guts to |
|
2624 bind_builtin_constant in variables.cc. |
|
2625 * variables.cc (bind_builtin_constant): New function. |
|
2626 |
3258
|
2627 * symtab.cc (symbol_record::define, symbol_record::variable_reference): |
|
2628 Handle constants the same as functions. |
|
2629 (symbol_record::link_to_builtin_variable): New function. |
|
2630 (symbol_record::define_builtin_const): New function. |
|
2631 (symbol_record::define_as_fcn): Delete unused function. |
|
2632 (symbol_record::read_only_error): |
|
2633 Handle constants the same as variables. |
|
2634 * symtab.h (symbol_record::BUILTIN_CONSTANT): New enum value. |
|
2635 (symbol_record::symbol_type): Increase width to 7 bits. |
|
2636 (symbol_record::symbol_def::is_constant): New function. |
|
2637 (symbol_record::symbol_def::is_builtin_constant): New function. |
|
2638 (symbol_record::is_constant): New function. |
|
2639 (symbol_record::is_builtin_constant): New function. |
|
2640 (SYMTAB_ALL_TYPES): Add symbol_record::BUILTIN_CONSTANT. |
|
2641 * variables.cc (link_to_builtin_variable): Delete unused function. |
|
2642 (link_to_builtin_or_function): Handle built-in constants here too. |
|
2643 |
|
2644 * defun.cc (install_builtin_variable): Delete inst_as_fcn arg. |
|
2645 (install_builtin_constant): New function. |
|
2646 (install_builtin_variable_as_function): Delete unused function. |
|
2647 * defun.h (DEFVAR_INTERNAL): Delete inst_as_fcn arg. |
|
2648 (DEFCONST_INTERNAL): New macro. |
|
2649 * defun.h (DEFVAR): Delete inst_as_fcn arg. |
|
2650 (DEFCONST, DEFCONSTX): Define using DEFCONST_INTERNAL instead of |
|
2651 DEFVAR_INTERNAL. |
|
2652 * data.cc, defaults.cc, error.cc, help.cc, input.cc, lex.l, |
|
2653 load-save.cc, oct-hist.cc, oct-procbuf.cc, ov-fcn.h, |
|
2654 ov-usr-fcn.cc, ov.cc, pager.cc, parse.y, pr-output.cc, |
|
2655 pt-assign.cc, pt-decl.cc, pt-mat.cc, pt-plot.cc, pt-stmt.cc, |
|
2656 toplev.cc, variables.cc: |
|
2657 Change all invocations of DEFVAR to match new definition. |
|
2658 |
|
2659 * data.cc (symbols_of_data): Add DEFCONSTs for true and false. |
|
2660 |
3255
|
2661 Thu Jul 15 10:59:42 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2662 |
3258
|
2663 * data.cc (Fis_bool, Fis_complex, Fisempty, Fisnumeric, Fis_list, |
|
2664 Fis_map, Fis_struct): Return bool object. |
|
2665 (Fisreal): New function. |
|
2666 |
|
2667 * ov-str-mat.h (octave_char_matrix_str): Only return true if |
|
2668 Vimplicit_str_to_num_ok is also true. |
|
2669 |
3255
|
2670 * DLD-FUNCTIONS/time.cc (Ftime): Print usage message if any |
|
2671 arguments are supplied. |
|
2672 |
|
2673 * variables.cc (symbol_out_of_date): Call octave_time for time stamps. |
|
2674 |
|
2675 * fn-cache.h (octave_fcn_file_name_cache::timestamp): |
|
2676 Now octave_time object. |
|
2677 |
|
2678 * strftime.c: Move to liboctave directory. |
|
2679 * Makefile.in (DIST_SRC): Delete from list. |
|
2680 |
|
2681 * ov-usr-fcn.h (octave_user_function::t_parsed, |
|
2682 octave_user_function::t_checked): Now octave_time objects. |
|
2683 (octave_user_function::time_parsed, |
|
2684 (octave_user_function::time_checked): |
|
2685 Return value is now octave_time object. |
|
2686 (octave_user_function::mark_fcn_file_up_to_date)): |
|
2687 Arg is now octave_time object. |
|
2688 |
|
2689 * ov-fcn.h (octave_function::mark_fcn_file_up_to_date)): |
|
2690 Arg is now octave_time object. |
|
2691 (octave_function::time_parsed, octave_function::time_checked): |
|
2692 Return value is now octave_time object. |
|
2693 |
|
2694 * input.cc (Vlast_prompt_time): Now an octave_time object. |
|
2695 (octave_gets): Call octave_time::stamp() to set Vlast_prompt_time. |
|
2696 |
|
2697 * DLD-FUNCTIONS/time.cc (mk_tm_map, extract_tm, Ftime, Fgmtime, |
|
2698 Flocaltime, Fmktime, Fstrftime): Use new classes defined in |
|
2699 liboctave/oct-time.cc instead of accessing C functions directly. |
|
2700 |
3252
|
2701 Wed Jul 14 17:38:46 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2702 |
|
2703 * systime.h: Move to liboctave directory. |
|
2704 * Makefile.in (INCLUDES): Delete it from the list |
|
2705 |
|
2706 Tue Jul 13 14:34:57 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2707 |
|
2708 * sighandlers.cc (sigchld_handler): Only wait for processes in |
|
2709 octave_child_list. |
|
2710 * toplev.cc (cmd_status): Delete unused static variable. |
|
2711 (cmd_death_handler): Delete unused function. |
|
2712 (run_command_and_return_output): Don't add cmd_death_handler to |
|
2713 octave_child_list. Simply extract command exit status from |
|
2714 calling close() on the procstream object. |
|
2715 |
3249
|
2716 Mon Jul 12 22:38:50 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2717 |
|
2718 * defun.h (DEFUN_MAPPER): Handle new args, d_b_map and c_b_map. |
|
2719 * defun-int.h (DEFUN_MAPPER_INTERNAL): Likewise. |
|
2720 * mappers.cc (install_mapper_functions): Supply new args to |
|
2721 all uses of DEFUN_MAPPER. |
|
2722 * ov-mapper.cc (octave_mapper::apply): Handle mapper functions |
|
2723 that return bool objects. |
|
2724 * ov-mapper.h (octave_mapper::d_b_mapper, octave_mapper::c_b_mapper): |
|
2725 New typedefs. |
|
2726 (octave_mapper::octave_mapper): Handle new mapper function types. |
|
2727 |
|
2728 * DLD-FUNCTIONS/minmax.cc: Do a better job of handling NaNs. |
|
2729 |
|
2730 Sun Jul 11 13:15:17 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2731 |
|
2732 * pr-output.cc (do_plus_format (ostream&, double)): New function. |
|
2733 (octave_print_internal (ostream&, double, bool)): Use it. |
|
2734 (octave_print_internal (ostream&, const Matrix&, bool, int)): Ditto. |
|
2735 |
|
2736 * pr-output.cc (do_plus_format (ostream&, const Complex&)): |
|
2737 New function. |
|
2738 (octave_print_internal (ostream&, const Complex&, bool)): Use it. |
|
2739 (octave_print_internal (ostream&, const ComplexMatrix&, bool, int)): |
|
2740 Ditto. |
|
2741 |
|
2742 Sun Jun 20 23:04:00 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2743 |
|
2744 * sysdep.cc: Include sys/ioctl.h if available. |
|
2745 |
|
2746 Sat Jun 19 12:07:16 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2747 |
|
2748 * variables.cc (do_who): Make pattern and multiple non-option |
|
2749 arguments work. |
|
2750 |
3246
|
2751 Mon Jun 7 09:54:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2752 |
|
2753 * lex.l (next_token_is_bin_op, next_token_is_postfix_unary_op, |
|
2754 handle_number): Delete yytext arg. Change all callers. |
|
2755 (next_token_is_postfix_unary_op): Check the first character |
|
2756 obtained from yyinput before calling it again. |
|
2757 (next_token_is_bin_op): Do a more thorough check. |
|
2758 (handle_identifier): Also enter token in local symbol table if the |
|
2759 following token is a dot and it looks like a binary operator. |
|
2760 (whitespace_in_literal_matrix): Now static. |
|
2761 |
|
2762 * lex.l: Always use unput, not yyunput. |
|
2763 |
3244
|
2764 Fri May 28 11:02:37 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2765 |
|
2766 * DLD-FUNCTIONS/chol.cc (Fchol): If two output arguments, never |
|
2767 produce error message. |
|
2768 |
3243
|
2769 Thu May 27 18:28:35 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2770 |
|
2771 * DLD-FUNCTIONS/chol.cc (Fchol): Also return info as second output. |
|
2772 |
|
2773 * DLD-FUNCTIONS/minmax.cc (max (const ComplexMatrix&, const |
|
2774 ComplexMatrix&)): Correct test for real columns only. |
|
2775 (min (const ComplexMatrix&, const ComplexMatrix&)): Likewise. |
|
2776 |
|
2777 Wed Apr 14 12:54:25 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2778 |
|
2779 * DLD-FUNCTIONS/dassl.cc (Fdassl): Prevent recursive calls. |
|
2780 * DLD-FUNCTIONS/fsolve.cc (Ffsolve): Likewise. |
|
2781 * DLD-FUNCTIONS/lsode.cc (Flsode): Likewise. |
|
2782 * DLD-FUNCTIONS/quad.cc (Fquad): Likewise. |
|
2783 |
|
2784 * file-io.cc (Fsscanf, Ffscanf): Doc fix. |
|
2785 |
3239
|
2786 Sat Mar 27 11:07:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2787 |
|
2788 * ov.h (octave_value::count): New function. |
|
2789 * symtab.cc (symbol_record::dump_symbol_info): New function. |
|
2790 * symtab.cc (symbol_record::symbol_def::dump_symbol_info): Ditto. |
|
2791 * variables.cc (F__dump_symbol_info__): Ditto. |
|
2792 |
|
2793 * pt-misc.cc (tree_parameter_list::clear): New function. |
|
2794 * ov-usr-fcn.h (octave_user_function::clear_args_passed): Ditto. |
|
2795 * ov-usr-fcn.cc (clear_param_list): New function. |
|
2796 (clear_args_passed): New function. |
|
2797 (octave_user_function::do_index_op): Use them to decrement |
|
2798 reference counts on local variables. |
|
2799 |
3238
|
2800 Fri Mar 26 00:51:53 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2801 |
|
2802 * Makefile.in (libraries): Use the libfoo.a(objects) method of |
|
2803 creating static libs. |
|
2804 |
|
2805 * defaults.cc (symbols_of_defaults): Initialize LOADPATH to |
|
2806 Vload_path, not ":". |
|
2807 |
|
2808 Thu Mar 18 12:09:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2809 |
|
2810 * data.cc (Fisnumeric): Fix typo. |
|
2811 |
|
2812 Thu Mar 4 02:17:04 1999 James Macnicol <jamesm@evans.ee.adfa.oz.au> |
|
2813 |
|
2814 * file-io.cc (Ffread, Ffwrite): Add uint16 and uint32 data types |
|
2815 to doc string. |
|
2816 |
|
2817 Wed Mar 3 11:55:17 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2818 |
|
2819 * lex.l (handle_string): Allow "" to pass through unchanged if |
|
2820 working on a gset command. |
|
2821 |
|
2822 Tue Mar 2 01:36:29 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2823 |
|
2824 * variables.cc (Fexist): If a variable isn't defined, only go on |
|
2825 to look for a global by the same name if we are at the top level. |
|
2826 |
|
2827 Fri Jan 29 02:18:36 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2828 |
|
2829 * version.h (OCTAVE_NAME_AND_VERSION): Say `GNU Octave', not just |
|
2830 Octave. |
|
2831 |
3234
|
2832 Thu Jan 28 21:29:16 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2833 |
|
2834 * toplev.cc (Fcomputer): Use CANONICAL_HOST_TYPE, not TARGET_HOST_TYPE. |
|
2835 (octave_config_info): Likewise. |
|
2836 * version.h: Ditto. |
|
2837 |
|
2838 * sysdep.cc (Fpause): Flush output before getting user input. |
|
2839 |
3233
|
2840 Wed Jan 27 14:18:29 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2841 |
|
2842 * Makefile.in (DEFFUN_PATTERN, DEFVAR_PATTERN): Use egrep again. |
|
2843 Make the patterns work with stupid egreps that don't like empty |
|
2844 elements in alternation patterns. |
|
2845 |
|
2846 Fri Jan 22 04:41:48 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2847 |
|
2848 * load-save.cc (save_ascii_data): Check for string type first, |
|
2849 then range, then the rest. |
|
2850 (save_binary_data): Ditto. |
|
2851 |
|
2852 * pager.cc (more_than_a_screenful): Accept length as second arg. |
|
2853 Handle long lines properly, assuming the terminal wraps long lines. |
|
2854 (octave_pager_buf::do_sync): Accept length of data as second arg. |
|
2855 Use write instead of << to put characters on output stream. |
|
2856 (octave_pager_buf::sync): Don't assume data ends at first NUL. |
|
2857 (octave_diary_buf::sync): Ditto. |
|
2858 |
|
2859 Thu Jan 21 22:15:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2860 |
|
2861 * load-save.cc (save_mat_binary_data): Check for string type |
|
2862 first, then range, then the rest. |
|
2863 |
|
2864 Wed Jan 20 12:01:14 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2865 |
|
2866 * oct-stream.cc (octave_base_stream::do_scanf): Handle short and |
|
2867 long ints correctly. |
|
2868 |
|
2869 Fri Jan 15 13:04:58 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2870 |
|
2871 * parse.y (end_error): Handle case of endswitch too. |
|
2872 |
|
2873 * Makefile.in: Use basic regular expressions and grep instead of |
|
2874 egrep to find files that contain DEFVAR, DEFCONST, or DEFUN. |
|
2875 |
|
2876 Wed Dec 9 14:14:11 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2877 |
|
2878 * Makefile.in (octave): Add $(RDYNAMIC_FLAG) to link command. |
|
2879 |
|
2880 Fri Dec 4 20:26:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2881 |
|
2882 * DLD-FUNCTIONS/time.cc (Fstrftime): Make it work even when not |
|
2883 using the GNU version of strftime, which allows passing NULL for |
|
2884 the buffer to determine the required size of the buffer. |
|
2885 |
3225
|
2886 Wed Dec 2 22:38:40 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2887 |
|
2888 * utils.cc (file_in_loadpath): Expect argc == 2, not 3. |
|
2889 |
|
2890 Tue Nov 24 23:38:19 1998 Eric Norum <eric@skatter.USask.Ca> |
|
2891 |
|
2892 * mkbuiltins: Also strip off leading `./' from file names. |
|
2893 * mkops: Ditto. |
|
2894 |
|
2895 Tue Nov 24 23:24:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2896 |
|
2897 * strftime.c: Surround everything with #ifdef HAVE_STRFTIME / #endif. |
|
2898 |
|
2899 * lex.h (YY_FATAL_ERROR): Call yy_falta_error after |
|
2900 jump_to_top_level to avoid gcc warning. |
|
2901 |
|
2902 Fri Nov 20 13:34:47 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2903 |
|
2904 * ov-bool.h, ov-bool.cc (class octave_bool): Derive from |
|
2905 octave_base_scalar and get common functions via derivation. |
|
2906 * ov-scalar.h, ov-scalar.cc (class octave_scalar): Ditto. |
|
2907 * ov-complex.h, ov-complex.cc (class octave_complex): Ditto. |
|
2908 |
|
2909 * ov-base-scalar.h, ov-base-scalar.cc (class octave_base_scalar): |
|
2910 New files for new class definition. Put common scalar data type |
|
2911 stuff here. |
|
2912 * Makefile.in (OV_INCLUDES, OV_SRC): Add them to the lists. |
|
2913 |
3221
|
2914 Thu Nov 19 14:30:25 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
3225
|
2915 |
3222
|
2916 * dynamic-ld.cc (octave_dynamic_loader::mangle_name): |
|
2917 Prepend underscore here. |
|
2918 (octave_dynamic_loader::load_fcn_from_dot_oct_file): Not here. |
|
2919 |
3221
|
2920 * ov-re-mat.h (octave_matrix_value): Delete experimental code for |
|
2921 handling structure references for things like .rows, .cols, etc. |
|
2922 |
3220
|
2923 Wed Nov 18 01:18:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2924 |
3221
|
2925 * Makefile.in (VAR_FILES): Be more careful about matching. |
|
2926 (DEF_FILES): Likewise. |
|
2927 |
|
2928 * ov-base-mat.h, ov-base-mat.cc, ov-bool-mat.h, ov-bool-mat.cc, |
|
2929 ov-ch-mat.h, ov-ch-mat.cc, ov-cx-mat.h, ov-cx-mat.cc, |
|
2930 ov-re-mat.h, ov-re-mat.cc: Move default definition of all, any, |
|
2931 is_matrix_type, is_numeric_type, valid_as_zero_index, and |
|
2932 do_index_op to base class. |
|
2933 Provide definitions that override the defaults where necessary. |
3220
|
2934 |
|
2935 * mappers.cc: Don't include lo-specfun.h. |
|
2936 |
|
2937 Tue Nov 17 14:35:56 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2938 |
|
2939 * besselj.cc (Fbesselh, Fairy); New functions. |
|
2940 (Fbesselj, Fbessely, Fbesselk, Fbesseli): Update doc strings. |
|
2941 (do_bessel): Handle additional args. |
|
2942 |
|
2943 Fri Nov 13 14:47:11 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2944 |
|
2945 * lex.l (NUMBER): Allow hexadecimal constants. |
|
2946 (looks_like_hex): New function. |
|
2947 (handle_number): Check for hexadecimal constants and convert them |
|
2948 to unsigned integer values. |
|
2949 |
3219
|
2950 Thu Nov 12 11:13:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2951 |
|
2952 * input.cc (gnu_readline): Check for EOF from command_editor::readline. |
|
2953 |
|
2954 * ov-str-mat.h, ov-str-mat.cc (class octave_char_matrix_str): |
|
2955 Get common functions via new derivation scheme. |
|
2956 |
|
2957 * ov-bool-mat.h, ov-bool-mat.cc (class octave_bool_matrix): |
|
2958 Derive from octave_base_matrix and get common functions via derivation. |
|
2959 * ov-ch-mat.h, ov-ch-mat.cc (class octave_char_matrix): Ditto. |
|
2960 * ov-cx-mat.h, ov-cx-mat.cc (class octave_complex_matrix): Ditto. |
|
2961 * ov-re-mat.h, ov-re-mat.cc (class octave_real_matrix): Ditto. |
|
2962 |
|
2963 * ov-base-mat.h, ov-base-mat.cc (class octave_base_matrix): New |
|
2964 files for new class definition. Put common matrix data type |
|
2965 stuff here. |
|
2966 |
|
2967 * ov-list.cc (Fnth): New function. |
|
2968 |
|
2969 * ov-list.cc (octave_list::do_index_op): Allow more complex indexing. |
|
2970 |
|
2971 * oct-obj.cc (octave_value_list::index): New function. |
|
2972 (octave_value_list::octve_value_list (Array<octave_value>)): |
|
2973 New private constructor. |
|
2974 |
|
2975 * ov-list.cc (Fsplice): Fix docstring to match. |
|
2976 * oct-obj.cc (octave_value_list::splice): Allow special case |
|
2977 splice (x, length(x)+1, 0, y) to be equivalent to append (x, y). |
|
2978 |
|
2979 * ov-list.cc (Fappend): If an arg is a list, concatenate the lists |
|
2980 instead of appending arg as a single element. |
|
2981 |
|
2982 Wed Nov 11 14:07:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2983 |
|
2984 * load-save.cc (get_mat_data_input_line): New function. |
|
2985 (get_lines_and_columns): Use it here. |
|
2986 (read_mat_ascii_data): And here and do our own reading instead of |
|
2987 using Matrix::operator<<. |
|
2988 |
|
2989 Tue Nov 10 16:12:25 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2990 |
|
2991 * parse.y (make_constant): Initialize retval to 0. |
|
2992 |
|
2993 * toplev.h (clean_up_and_exit (void)): Delete declaration. |
|
2994 * toplev.cc (do_octave_atexit): Move guts of clean_up_for_exit |
|
2995 here, but ensure that the actions are only executed once. |
|
2996 * octave.cc (main): Don't register cleanup_tmp_files with atexit. |
|
2997 |
|
2998 * ov.h, ov.cc (class octave_value): Use DECLARE_OCTAVE_ALLOCATOR |
|
2999 and DEFINE_OCTAVE_ALLOCATOR for uniform declaration and definition |
|
3000 of allocator functions. Use DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA |
|
3001 and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA for uniform declaration |
|
3002 and definition of type id functions and data. |
|
3003 * ov-usr-fcn.h, ov-usr-fcn.cc (class octave_user_function): Ditto. |
|
3004 * ov-scalar.h, ov-scalar.cc (class octave_scalar): Ditto. |
|
3005 * ov-re-mat.h ov-re-mat.cc (class octave_matrix): Ditto. |
|
3006 * ov-range.h, ov-range.cc (class octave_range): Ditto. |
|
3007 * ov-mapper.h, ov-mapper.cc (class octave_mapper): Ditto. |
|
3008 * ov-list.h, ov-list.cc (class octave_list): Ditto. |
|
3009 * ov-file.h, ov-file.cc (class octave_file): Ditto. |
|
3010 * ov-fcn.h, ov-fcn.cc (class octave_function): Ditto. |
|
3011 * ov-cx-mat.h, ov-cx-mat.cc (class octave_complex_matrix): Ditto. |
|
3012 * ov-complex.h, ov-complex.cc (class octave_complex): Ditto. |
|
3013 * ov-ch-mat.h, ov-ch-mat.cc (octave_char_matrix): Ditto. |
|
3014 * ov-builtin.h, ov-builtin.cc (class octave_builtin): Ditto. |
|
3015 * ov-bool.h, ov-bool.cc (class octave_bool): Ditto. |
|
3016 * ov-bool-mat.h, ov-bool-mat.cc (octave_bool_matrix): Ditto. |
|
3017 |
|
3018 * ov.h (DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA): New macro. |
|
3019 (DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA): Ditto. |
|
3020 |
3215
|
3021 Mon Nov 9 16:12:37 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3022 |
|
3023 * pr-output.cc (octave_print_internal): Reorder default args for |
|
3024 charMatrix version. |
|
3025 (octave_print_internal): New function for boolMatrix. |
|
3026 |
|
3027 * version.h (OCTAVE_STARTUP_MESSAGE): Note that this is a |
|
3028 development release. |
|
3029 |
|
3030 * toplev.cc (do_octave_atexit): Call flush_octave_stdout here. |
|
3031 (clean_up_for_exit): And here. |
|
3032 |
|
3033 Mon Nov 9 15:20:53 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3034 |
|
3035 * input.cc (get_user_input): Check retval.length(), not retval.length. |
|
3036 |
|
3037 Sun Nov 8 19:30:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3038 |
|
3039 * pt-assign.cc (tree_simple_assignment::rvalue): If etype is |
|
3040 asn_eq, don't evaluate ult again because retval is just rhs value. |
|
3041 (tree_multi_assignment::rvalue): Likewise. |
|
3042 |
|
3043 Fri Nov 6 12:14:29 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3044 |
|
3045 * pt-loop.cc (tree_for_command::eval): Move code for string RHS |
|
3046 outside if clause for matrix types. |
|
3047 |
|
3048 * pt-idx.cc: Don't forget to define arg_nm. |
|
3049 Move contstructor here. |
|
3050 * pt-idx.h: From here. |
|
3051 |
|
3052 * data.cc (Fisempty): Also return true for empty strings. |
|
3053 |
3212
|
3054 Wed Nov 4 17:21:41 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3055 |
|
3056 * ov-base.cc (octave_base_value::rows, octave_base_value::columns, |
|
3057 octave_base_value::length): Delete. |
|
3058 * ov-base.h (octave_base_value::rows, octave_base_value::columns, |
|
3059 octave_base_value::length): Define here. All return -1 if not |
|
3060 defined in a derived class. |
|
3061 |
|
3062 * data.cc (Fis_matrix): Also return true if the arg is a range. |
|
3063 |
3209
|
3064 Tue Nov 3 09:40:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3065 |
|
3066 * data.cc (Fis_bool): New function. |
|
3067 Also add alias for islogical. |
|
3068 |
|
3069 * ov.h (octave_value::is_bool_type): New function. |
|
3070 * ov-base.h (octave_base_value::is_bool_type): Likewise. |
|
3071 * ov-bool.h (octave_bool::is_bool_type): Likewise. |
|
3072 * ov-bool-mat.h (octave_bool_matrix::is_bool_type): Likewise. |
|
3073 |
3206
|
3074 Mon Nov 2 13:36:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3075 |
3208
|
3076 * lex.l (handle_close_brace): Also handle case of ']' followed by |
|
3077 other assignment ops (+=, -=, ...). |
|
3078 |
|
3079 * pt-assign.cc (tree_simple_assignment::rvalue): Correctly handle |
|
3080 return value and printing for operators other than `='. |
|
3081 (tree_multi_assignment::rvalue): Likewise. |
|
3082 |
|
3083 * pt-assign.h (tree_multi_assignment::etype): New data member. |
|
3084 * pt-assign.cc (tree_multi_assignment::rvalue): Use it instead of |
|
3085 assuming `='. |
|
3086 (tree_multi_assignment::oper): New function. |
|
3087 * pt-pr-code.cc (tree_print_code::visit_multi_assignment): Use |
|
3088 it instead of always printing `='. |
|
3089 * parse.y (make_assign_op): Pass expression type to |
|
3090 tree_multi_assignment constructor. |
|
3091 |
3206
|
3092 * Makefile.in (stmp-pic): New target. |
|
3093 ($(PICOBJ)): Depend on stmp-pic, not pic. |
|
3094 (clean): Delete stmp-pic. |
|
3095 |
|
3096 Sun Nov 1 23:24:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3097 |
|
3098 * mappers.cc (install_mapper_functions): Add alias for isfinite. |
|
3099 |
|
3100 Sat Oct 31 08:46:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3101 |
|
3102 * data.cc (Fisnumeric): New function. |
|
3103 |
3203
|
3104 Fri Oct 30 08:39:30 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3105 |
3205
|
3106 * oct-lvalue.cc (octave_lvalue::do_unary_op): Make it work for |
|
3107 indexed ops too. |
|
3108 * ov.cc (octave_value::unary_op_to_assign_op): New function. |
|
3109 (octave_value::do_non_const_unary_op): New function for indexed ops. |
|
3110 |
3204
|
3111 * parse.y (LEFTDIV_EQ, ELEFTDIV_EQ): New tokens. |
|
3112 (assign_expr): Add rules for them. |
|
3113 (make_assign_op): Handle them here too. |
|
3114 * lex.l: Recognize them. |
|
3115 * ov.h (octave_value::assign_op): Add ldiv_eq and el_ldiv_eq. |
|
3116 * ov.cc (octave_value::assign_op_as_string): Ditto. |
|
3117 (octave_value::op_eq_to_binary_op): Ditto. |
|
3118 (octave_value::assign): Handle OP= style operators with brute force. |
|
3119 (octave_value::simple_assign): New function. |
|
3120 |
3203
|
3121 * parse.y (matrix): Dont' forget to reset |
|
3122 lexer_flags.looking_at_matrix_or_assign_lhs. |
|
3123 |
|
3124 * oct-lvalue.cc (octave_lvalue::assign): Don't call change |
|
3125 function if error occurs. |
|
3126 (octave_lvalue::do_unary_op): If we have an index, fail with message. |
|
3127 |
3202
|
3128 Thu Oct 29 09:27:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3129 |
3203
|
3130 * ov.cc (do_binary_op): Protect against invalid type conversions. |
|
3131 (try_assignment_with_conversion): Likewise. |
|
3132 (do_unary_op): Likewise. |
|
3133 |
|
3134 * ov.h (OV_UNOP_FN, OV_UNOP_OP, OV_UNOP_FN_OP): New macros. |
|
3135 Use them to define not, uminus, transpose, hermitian functions |
|
3136 and operators ! and -. |
|
3137 (OV_BINOP_FN, OV_BINOP_OP, OV_BINOP_FN_OP): New macros. |
|
3138 Use them to define add, sub, mul, div, pow, ldiv, lshift, rshift, |
|
3139 lt, le, eq, ge, gt, ne, el_mul, el_div, el_pow, el_ldiv, el_and, |
|
3140 el_or, struct_ref, functions and operators <, <=, ==, >=, >, !=, |
|
3141 +, -, *, and /. |
|
3142 |
|
3143 * ops.h (CONVDECLX): New macro. |
|
3144 * ov-base.cc (matrix_conv, complex_matrix_conv, string_conv): |
|
3145 Use it to declare these functions. |
|
3146 |
|
3147 * ops.h (CONVDECL, INSTALL_WIDENOP): |
|
3148 Prefix function name with `oct_conv_'. |
|
3149 (INSTALL_BINOP, BINOPDECL): Prefix function name with `oct_binop_'. |
|
3150 (INSTALL_ASSIGNOP, INSTALL_ASSIGNANYOP, ASSIGNOPDECL): |
|
3151 Prefix function name with `oct_assignop_'. |
|
3152 (UNOPDECL, DEFNCUNOP_METHOD, INSTALL_UNOP, INSTALL_NCUNOP): |
|
3153 Prefix function name with `oct_unop_'. |
|
3154 |
|
3155 * ov-str-mat.cc (default_numeric_conversion_function): |
|
3156 Return 0 if conversion fails. |
|
3157 |
|
3158 * parse.y (make_prefix_op, make_postfix_op): Use |
|
3159 octave_value::unary_op enum. |
|
3160 |
|
3161 * pt-unop.cc (tree_prefix_expression::rvalue): Use new unary_op |
|
3162 functions from octave_value and octave_lvalue classes. |
|
3163 (tree_prefix_expression::rvalue): Likewise. |
|
3164 |
|
3165 * pt-unop.cc (tree_unary_expression::oper): Move here. |
|
3166 (tree_prefix_expression::oper, tree_postfix_expression): From here. |
|
3167 |
|
3168 * pt-unop.h (tree_prefix_expression, tree_postfix_expression): |
|
3169 Delete enums. |
|
3170 (tree_unary_expression): Use octave_value::unary_op enum. |
|
3171 * parse.y (make_prefix_op, make_postfix_op): Likewise. |
|
3172 |
|
3173 * oct-lvalue.h (octave_lvalue::do_unary_op): New function. |
|
3174 (octave_lvalue::increment, octave_lvalue::decrement): Delete. |
|
3175 |
|
3176 * ov-typeinfo.h (octave_value_typeinfo::non_const_unary_ops): |
|
3177 New data member. |
|
3178 * ov-typeinfo.h (octave_value_typeinfo::lookup_non_const_unary_op): |
|
3179 New function. |
|
3180 * ov-typeinfo.cc (octave_value_typeinfo::register_non_const_unary_op): |
|
3181 New function. |
|
3182 (octave_value_typeinfo::do_register_non_const_unary_op): Ditto. |
|
3183 (octave_value_typeinfo::do_lookup_non_const_unary_op): Ditto. |
|
3184 |
|
3185 * ov.cc (octave_value::do_non_const_unary_op): New function. |
|
3186 |
|
3187 * Makefile.in (OP_XSRC): Add op-chm.cc and op-range.cc to the list. |
|
3188 |
|
3189 * OPERATORS/op-str-str.cc: Define string matrix unary operators here. |
|
3190 (install_str_str_ops): Install them here. |
|
3191 * ov-bool-mat.h (octave_bool_matrix::transpose, |
|
3192 octave_bool_matrix_value::hermitian): Delete. |
|
3193 |
|
3194 * OPERATORS/op-chm.cc: New file. Define char matrix unary operators. |
|
3195 (install_chm_ops): Install them here. |
|
3196 * ov-ch-mat.h (octave_char_matrix::transpose, |
|
3197 octave_char_matrix_value::hermitian): Delete. |
|
3198 * ops.cc (install_ops): Call install_chm_ops. |
|
3199 |
|
3200 * OPERATORS/op-bm-bm.cc: Define bool matrix unary operators here. |
|
3201 (install_bm_bm_ops): Install them here. |
|
3202 * ov-bool-mat.h (octave_bool_matrix::transpose, |
|
3203 octave_bool_matrix_value::hermitian): Delete. |
|
3204 |
|
3205 * ov-bool.h (octave_bool::not, octave_bool::uminus, |
|
3206 octave_bool::transpose, octave_bool::hermitian): Delete. |
|
3207 |
|
3208 * OPERATORS/op-cs-cs.cc: Define complex scalar unary operators here. |
|
3209 (install_cs_cs_ops): Install them here. |
|
3210 * ov-complex.h (octave_complex::not, octave_complex::uminus, |
|
3211 octave_complex::transpose, octave_complex::hermitian): Delete. |
|
3212 |
|
3213 * OPERATORS/op-cm-cm.cc: Define complex matrix unary operators here. |
|
3214 (install_cm_cm_ops): Install them here. |
|
3215 * ov-cx-mat.h (octave_complex_matrix::not, |
|
3216 octave_complex_matrix::uminus, octave_complex_matrix::transpose, |
|
3217 octave_complex_matrix::hermitian): Delete. |
|
3218 |
|
3219 * OPERATORS/op-m-m.cc: Define matrix unary operators here. |
|
3220 (install_m_m_ops): Install them here. |
|
3221 * ov-re-mat.h (octave_matrix::not, octave_matrix::uminus, |
|
3222 octave_matrix::transpose, octave_matrix::hermitian): Delete. |
|
3223 |
|
3224 * OPERATORS/op-range.cc: New file. Define range unary operators. |
|
3225 (install_range_ops): Install them here. |
|
3226 * ov-range.h (octave_range::not, octave_range::uminus, |
|
3227 octave_range::transpose, octave_range::hermitian): Delete. |
|
3228 * ops.cc (install_ops): Call install_range_ops. |
|
3229 |
|
3230 * OPERATORS/op-s-s.cc: Define scalar unary operators here. |
|
3231 (install_s_s_ops): Install them here. |
|
3232 * ov-scalar.h (octave_scalar::not, octave_scalar::uminus, |
|
3233 octave_scalar::transpose, octave_scalar::hermitian): Delete. |
|
3234 |
|
3235 * ops.h (INSTALL_UNOP, CAST_UNOP_ARG, UNOPDECL, DEFUNOPX, DEFUNOP, |
|
3236 DEFUNOP_OP, DEFUNOP_FN): New macros. |
|
3237 |
|
3238 * ov.h (unary_op_fcn): New typedef. |
|
3239 (octave_value::unary_op): New enum. |
|
3240 * ov.cc (octave_value::octave_value): New function. |
|
3241 |
|
3242 * ov.h (octave_value::not, octave_value::uminus, |
|
3243 octave_value::transpose, octave_value::hermitian, |
|
3244 octave_value::increment, octave_value::decrement): Delete. |
|
3245 |
|
3246 * ov-base.cc (octave_base_value::not, octave_base_value::uminus, |
|
3247 octave_base_value::transpose, octave_base_value::hermitian, |
|
3248 octave_base_value::increment, octave_base_value::decrement): Delete. |
|
3249 |
|
3250 * ov.cc (gripe_unary_op): New function. |
|
3251 (do_unary_op): New function. |
|
3252 * ov-typeinfo.h (octave_value_typeinfo::unary_ops): |
|
3253 New data member. |
|
3254 * ov-typeinfo.cc (octave_value_info::register_unary_op, |
|
3255 octave_value_info::do_register_unary_op, |
|
3256 octave_value_info::lookup_unary_op, |
|
3257 octave_value_info::do_lookup_unary_op): |
|
3258 New functions. |
|
3259 |
3202
|
3260 * ov-list.cc (Fsplice): Use new octave_value::int_value function here. |
|
3261 (octave_list::do_index_op): Likewise. |
|
3262 (octave_list::assign): Likewise. |
|
3263 * toplev.cc (Fquit): Likewise. |
|
3264 * syscalls.cc (Fwaitpid): Likewise. |
|
3265 (Ffcntl): Likewise. |
|
3266 * file-io.cc (do_fread): Likewise. |
|
3267 (do_fwrite): Likewise. |
|
3268 * data.cc (make_diag): Likewise. |
|
3269 (Fsize): Likewise. |
|
3270 (get_dimensions): Likewise. |
|
3271 (Flinspace): |
|
3272 |
|
3273 * ov-base.cc (octave_base_value::int_value): New function. |
|
3274 (octave_base_value::nint_value): Ditto. |
|
3275 * ov.h (octave_value::int_value): Ditto. |
|
3276 (octave_value::nint_value): Ditto. |
|
3277 |
|
3278 * ov-list.cc (octave_list::assign): Fix off-by-one error. |
|
3279 |
3196
|
3280 Wed Oct 28 11:01:37 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3281 |
3202
|
3282 * load-save.cc (read_mat_ascii_data): Try harder to convert file |
|
3283 name to valid variable name. |
|
3284 |
|
3285 * data.cc (Fisempty, Fis_matrix): New functions. |
|
3286 |
|
3287 * ov-str-mat.h (octave_char_matrix_str::is_matrix_type): New function. |
|
3288 |
3196
|
3289 * OPERATORS/op-list.cc: New file. |
|
3290 * Makefile.in (OP_XSRC): Add it to the list. |
|
3291 |
|
3292 * ov-list.cc (octave_list::assign): New function. |
|
3293 |
|
3294 * ov-typeinfo.h (octave_value_typeinfo::assignany_ops): |
|
3295 New data member. |
|
3296 * ov-typeinfo.cc (octave_value_info::register_assignany_op, |
|
3297 octave_value_info::do_register_assignany_op, |
|
3298 octave_value_info::lookup_assignany_op, |
|
3299 octave_value_info::do_lookup_assignany_op): |
|
3300 New functions. |
|
3301 * ov.cc (octave_value::try_assignment (octave_value::assign_op, |
|
3302 const octave_value_list&, const octave_value&)): If no assignment |
|
3303 operator for particular RHS type exists, try finding one for |
|
3304 generic octave_value as RHS type. |
|
3305 * ops.h (DEFASSIGNANYOP_FN): New macro. |
|
3306 |
|
3307 * ov-list.cc (Fsplice): New function. |
|
3308 * oct-obj.cc (octave_value_list::splice): New function. |
|
3309 |
|
3310 * ov.cc (Vresize_on_range_error): No longer static. |
|
3311 * ov.h (Vresize_on_range_error): Provide extern declaration. |
|
3312 |
|
3313 * oct-procbuf.cc (symbols_of_oct_procbuf): Don't declare static. |
|
3314 |
|
3315 * data.cc (Flength): New function. |
|
3316 * ov.h (octave_value::length): New virtual function. |
|
3317 * ov-base.cc (octave_base_value::length): New function. |
|
3318 (octave_base_value::rows, octave_base_value::columns): Move |
|
3319 definitions here, from ov-base.h. Don't return -1. Instead, |
|
3320 gripe about wrong argument type. |
|
3321 * ov-bool-mat.h (octave_bool_matrix::length): New function. |
|
3322 * ov-bool.h (octave_bool::length): Ditto. |
|
3323 * ov-ch-mat.h (octave_char_matrix::length): Ditto. |
|
3324 * ov-complex.h (octave_complex::length): Ditto. |
|
3325 * ov-cx-mat.h (octave_complex_matrix::length): Ditto. |
|
3326 * ov-list.h (octave_list::length): Ditto. |
|
3327 * ov-range.h (octave_range::length): Ditto. |
|
3328 * ov-re-mat.h (octave_matrix::length): Ditto. |
|
3329 * ov-scalar.h (octave_scalar::length): Ditto. |
|
3330 |
|
3331 Tue Oct 27 22:19:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3332 |
|
3333 * ov-list.cc (octave_list::print_raw): Handle case of empty list. |
|
3334 (octave_list::print_name_tag): Likewise. |
|
3335 |
|
3336 * octave.cc (intern_argv): Built-in variable argv is now a list of |
|
3337 strings instead of a string vector. |
|
3338 Always bind argv, making it an empty list if there are no args. |
|
3339 |
|
3340 Mon Oct 26 08:41:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3341 |
|
3342 * xdiv.cc (mx_leftdiv_conform): Explicitly declare args to be |
|
3343 passed as references to const objects. Fix explicit instantiation |
|
3344 requests to match. |
|
3345 (mx_div_conform): Likewise. |
|
3346 |
|
3347 * pt-unop.h (tree_prefix_expression): Reorder constructor args to |
|
3348 put those with default values last. |
|
3349 (tree_postfix_expression): Likewise. |
|
3350 * parse.y: Change all callers. |
|
3351 |
3192
|
3352 Fri Oct 23 12:07:32 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3353 |
3196
|
3354 * utils.cc (Ffile_in_loadpath): New function. |
|
3355 |
|
3356 * defaults.cc (Vload_path, Vdefault_load_path): Now static. |
|
3357 |
|
3358 * help.cc (simple_help): Use Vload_path_dir_path here instead of |
|
3359 trying to reconstruct it from Vload_path. |
|
3360 * fn-cache.cc (octave_fcn_file_name_cache::do_list): Likewise. |
|
3361 (octave_fcn_file_name_cache::update): Likewise. |
|
3362 |
|
3363 * defaults.cc (octave_loadpath): Construct Vload_path_dir_path |
|
3364 using Vdefault_load_path. |
|
3365 (set_default_path): Likewise. |
|
3366 |
|
3367 * defaults.h, defaults.cc (maybe_add_default_load_path): Delete. |
|
3368 |
3192
|
3369 * defaults.cc (Vdefault_load_path): New static variable. |
|
3370 (set_default_path): Set it. |
|
3371 (maybe_add_default_load_path): Use it. |
|
3372 (symbols_of_defaults): Add DEFCONST for DEFAULT_LOADPATH. |
|
3373 Thanks to Rafael Laboissiere <rafael@icp.inpg.fr>. |
|
3374 |
|
3375 * defaults.cc (set_default_path): If OCTAVE_PATH is set in the |
|
3376 environment, call maybe_add_default_load_path on it. |
|
3377 |
|
3378 Tue Oct 20 20:58:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3379 |
|
3380 * defaults.cc (maybe_add_default_load_path): If LOADPATH contains |
|
3381 an embedded "::", insert the default path there too. |
|
3382 |
3189
|
3383 Fri Oct 16 00:52:15 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3384 |
|
3385 * parse.y (in_matrix_or_assign_lhs): New subroutine for lexical |
|
3386 feedback. |
|
3387 (matrix): Use it. |
|
3388 (assign_lhs): Ditto. |
|
3389 * lex.h (lexical_feedback::looking_at_matrix_or_assign_lhs): New |
|
3390 data member. |
|
3391 * lex.l (handle_identifier): Use it to handle keywords like `cd' |
|
3392 as variables in contexts like [ab, cd] = foo (). |
|
3393 |
|
3394 * ov-str-mat.h |
|
3395 (octave_char_matrix_str::octave_char_matrix_str (char c)): |
|
3396 New constructor. |
|
3397 * ov-ch-mat.h (octave_char_matrix::octave_char_matrix (char c)): |
|
3398 New constructor. |
|
3399 * ov.cc (octave_value::octave_value (char c): New constructor. |
|
3400 |
|
3401 * pt-loop.cc (tree_simple_for_command::eval): Handle case of RHS |
|
3402 as string. |
|
3403 |
|
3404 Thu Oct 15 00:56:47 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3405 |
|
3406 * DLD-FUNCTIONS/rand.cc: Declare Fortran subroutines as returning |
|
3407 int, not int*. |
|
3408 |
|
3409 Wed Oct 14 23:51:31 1998 Georg Thimm <thimm@idiap.ch> |
|
3410 |
|
3411 * load-save.cc (Vcrash_dumps_octave_core): New static variable. |
|
3412 (save_user_variables): Only save variables if |
|
3413 Vcrash_dumps_octave_core is true. |
|
3414 (symbols_of_load_save): Add DEFVAR for it here. |
|
3415 (crash_dumps_octave_core): New function. |
|
3416 * octave.cc (maximum_braindamage): Bind crash_dumps_octave_core to |
|
3417 0.0 here. |
|
3418 |
|
3419 Tue Oct 13 22:05:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3420 |
|
3421 * input.cc (read_readline_init_file): New function. |
|
3422 |
|
3423 Thu Oct 8 13:47:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3424 |
|
3425 * oct-procbuf.h (octave_procbuf::wstatus): New data member. |
|
3426 Initialize in constructors. |
|
3427 (octave_procbuf::wait_status): New member function. |
|
3428 * oct-procbuf.cc (octave_procbuf::sys_close): Use class data |
|
3429 member wstatus, not local variable. |
|
3430 * procstream.cc (procstreambase::close): Don't call sys_close directly. |
|
3431 Get subprocess exit status by calling wait_status for our procbuf. |
|
3432 * pt-plot.cc (close_plot_stream): Send "quit" command to gnuplot |
|
3433 before deleting plot_stream. |
|
3434 |
|
3435 |
|
3436 Thu Oct 1 22:39:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3437 |
|
3438 * data.cc (Fis_complex): New function. |
|
3439 |
3185
|
3440 Fri Sep 25 11:50:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3441 |
|
3442 * load-save.cc (write_header): Rename from write_binary_header. |
|
3443 Also write header for Octave ASCII files. |
|
3444 |
|
3445 * load-save.cc (Fsave): Implement -append option. |
|
3446 |
|
3447 * defaults.cc (Frehash): New function. |
|
3448 |
|
3449 Fri Sep 25 11:50:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3450 |
|
3451 * help.cc (help_from_info): Improve error message in case that |
|
3452 info doesn't work. |
|
3453 |
3180
|
3454 Thu Sep 24 10:48:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3455 |
3185
|
3456 * Makefile.in (DLD_XSRC): Replace qzval.cc with qz.cc |
|
3457 |
|
3458 * DLD-FUNCTIONS/balance.cc: Update from A. S. Hodel |
|
3459 <scotte@eng.auburn.edu>. |
|
3460 |
|
3461 * DLD-FUNCTIONS/qz.cc: New file. |
|
3462 |
|
3463 * DLD-FUNCTIONS/qzval.cc: Delete. |
|
3464 |
3180
|
3465 * parse.y (plot_command1): Don't allow it to be empty. |
|
3466 (plot_command): Handle simple `PLOT' and `PLOT ranges' as special |
|
3467 cases here. |
|
3468 |
|
3469 Wed Sep 23 21:10:08 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3470 |
|
3471 * lex.l: Change <MATRIX>{SNLCMT}*\n{SNLCMT}* pattern |
|
3472 to <MATRIX>{S}*{COMMENT}{SNLCMT}* | <MATRIX>{S}*{NL}{SNLCMT}*. |
|
3473 |
|
3474 Fri Sep 4 10:50:00 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3475 |
|
3476 * file-io.cc (Ffwrite): Fix doc string. |
|
3477 |
|
3478 Wed Sep 2 16:22:23 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3479 |
|
3480 * input.cc (match_sans_spaces): Make it work. |
|
3481 |
|
3482 * toplev.cc (quit): Require nargout == 0. |
|
3483 |
|
3484 * input.cc (get_user_input): Only try matching "exit", "quit", and |
|
3485 "return" if debugging. |
|
3486 |
|
3487 Tue Sep 1 12:50:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3488 |
|
3489 * octave.cc: Use -H as single character equivalent of --no-history. |
|
3490 |
|
3491 Sat Aug 29 12:23:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3492 |
|
3493 * oct-obj.cc (octave_value_list::make_argv): If some values are |
|
3494 string vectors, insert all the elements, not just the first. |
|
3495 |
|
3496 Tue Aug 18 16:39:50 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3497 |
|
3498 * oct-stream.cc (octave_base_stream::do_gets): Accept last line of |
|
3499 file even if it doesn't end in a newline character. |
|
3500 |
|
3501 Tue Aug 18 16:25:49 1998 Mumit Khan <khan@xraylith.wisc.edu> |
|
3502 |
|
3503 * xdiv.cc (mx_leftdiv_conform, mx_div_conform): Instantiate correct |
|
3504 templates. |
|
3505 |
|
3506 Thu Jul 30 00:37:43 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3507 |
|
3508 * pt-loop.cc (tree_for_command::eval): Check for range first. |
|
3509 If error occurs when extracting matrix value, return early. |
|
3510 Don't bother to check for string type. |
|
3511 |
|
3512 * ov-ch-mat.h (octave_char_matrix::is_real_matrix): New function. |
|
3513 |
|
3514 Tue Jun 23 15:09:54 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3515 |
|
3516 * parse.y (clear_current_script_file_name): New function. |
|
3517 (parse_fcn_file): Bind current_script_file_name while script is |
|
3518 executing. Use unwind_protect to clear it once the script is |
|
3519 finished. |
|
3520 |
|
3521 * pt-plot.cc (Fgraw): New function. |
|
3522 |
3178
|
3523 Mon Jun 22 22:13:38 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3524 |
|
3525 * variables.cc (is_valid_function): Provide version that takes |
|
3526 function name as string. |
|
3527 |
|
3528 * parse.y (binary_expr): Fix thinko that resulted in incorrect |
|
3529 evaluation of -x^y. Thanks to Richard Allan Holcombe |
|
3530 <raholcom@unity.ncsu.edu>. |
|
3531 (feval): Don't attempt to copy nonexistent arg names. |
|
3532 |
|
3533 Mon Jun 22 21:35:50 1998 Richard Allan Holcombe <raholcom@unity.ncsu.edu> |
|
3534 |
|
3535 * xpow.cc (xpow): Improve efficiency for matrix^(scalar int) case. |
|
3536 |
|
3537 Thu Jun 4 12:42:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3538 |
|
3539 * ov-usr-fcn.cc (octave_user_function::octave_all_va_args): |
|
3540 If num_args_passed < num_named_args, create zero length list. |
|
3541 |
3176
|
3542 Thu May 14 16:23:15 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3543 |
|
3544 * DLD-FUNCTIONS/getrusage.cc: Include sys/types.h too. |
|
3545 |
|
3546 Mon May 11 00:38:45 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3547 |
|
3548 * pager.cc (Fdiary): Don't forget to set write_to_diary file if |
|
3549 just given a file name. |
|
3550 |
|
3551 * input.cc (octave_gets): Only send new line character to |
|
3552 octave_diary if current_input_line is empty or doesn't already end |
|
3553 with a new line character.. |
|
3554 Don't send input from function files or scripts to octave_diary. |
|
3555 |
3174
|
3556 Sun May 3 19:54:38 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3557 |
|
3558 * lex.l (reset_parser): Also call yyrestart if forced_interactive |
|
3559 is true, but not if input_from_startup_file is true. |
|
3560 |
|
3561 Tue Apr 28 14:06:20 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3562 |
|
3563 * oct-procbuf.cc (Vkluge_procbuf_delay): New static variable. |
|
3564 (kluge_procbuf_delay): New function. |
|
3565 (symbols_of_oct_procbuf): New function. |
|
3566 (octave_procbuf::open): Delay Vkluge_procbuf_delay microseconds |
|
3567 after forking. |
|
3568 |
|
3569 Thu Apr 23 15:41:08 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3570 |
|
3571 * defaults.cc (Vload_path_dir_path): New variable. |
|
3572 * utils.cc (file_in_path): Use it. |
|
3573 |
|
3574 * utils.cc (search_path_for_file): Undo previous change. |
|
3575 (file_in_path): Undo previous change. |
|
3576 * defaults.cc (loadpath): Undo previous change. Tilde expansion |
|
3577 is once again handled correctly by the code in |
|
3578 liboctave/pathsearch.cc. |
|
3579 |
|
3580 Mon Apr 20 21:50:34 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3581 |
|
3582 * data.cc (get_dimensions): Allow zeros ([], 3) to work, for |
|
3583 compatibility with Matlab. |
|
3584 |
|
3585 * dynamic-ld.cc [WITH_DL && ! HAVE_DLFCN_H]: Add declarations for |
|
3586 dlopen, dlerror, dlsym, and dlclose. |
|
3587 |
|
3588 * octave.gperf: Handle __FILE__ and __LINE__. |
|
3589 * lex.l (is_keyword): Likewise. |
|
3590 * Makefile.in (oct-gperf.h): Pass -D option to gperf. |
|
3591 Postprocess output of gperf to convert name of static variable |
|
3592 from lookup to gperf_lookup, to avoid conflict with our function |
|
3593 of the same name defined in variables.cc. |
|
3594 |
3168
|
3595 Sat Apr 18 20:17:10 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3596 |
|
3597 * help.cc (USE_GNU_INFO): Delete uses of this macro. |
|
3598 |
3167
|
3599 Thu Apr 16 01:00:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3600 |
|
3601 * dynamic-ld.cc: Only include dlfcn.h if HAVE_DLFCN_H. |
|
3602 |
3165
|
3603 Wed Apr 15 01:03:05 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3604 |
|
3605 * input.cc (Vlast_prompt_time): New global variable. |
|
3606 (octave_gets): Set it. |
3166
|
3607 * ov-fcn.h (octave_function::time_checked): New virtual function |
|
3608 (octave_function::mark_fcn_file_up_to_date): Ditto. |
3165
|
3609 * ov-usr-fcn.h (octave_user_function::time_checked): New function. |
|
3610 (octave_user_function::mark_fcn_file_up_to_date): Ditto. |
|
3611 (octave_user_function::t_checked): New data member. |
|
3612 * variables.cc (symbol_out_of_date): Only check file time stamp if |
|
3613 a prompt has been printed since the last time check. |
|
3614 |
|
3615 * pt-plot.h, pt-plot.cc (subplot_axes): New class. |
|
3616 (subplot): Handle axes. |
|
3617 (Vgnuplot_command_axes): New static variable. |
|
3618 (gnuplot_command_axes): New function. |
|
3619 (symbols_of_pt_plot): DEFVAR gnuplot_command_axes. |
|
3620 * pt-walk.h (tree_walker::visit_subplot_axes): New virtual function. |
|
3621 * parse.y (plot_options): Handle axes. |
|
3622 * lex.l (plot_axes_token): New function. |
|
3623 (is_keyword): Use it. |
|
3624 (is_plot_keyword): Recognize "axes" and "axis". |
|
3625 * lex.h (class lexical_feedback): New field, in_plot_axes. |
|
3626 (lexical_feedback::init): Reset it. |
|
3627 |
|
3628 Tue Apr 14 23:32:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3629 |
|
3630 * parse.y (parse_fcn_file): New arg, force_script. Change callers. |
|
3631 |
3164
|
3632 Fri Apr 10 11:01:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3633 |
|
3634 * help.cc (type): Also print values of variables. |
|
3635 |
3162
|
3636 Wed Apr 8 01:00:58 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3637 |
3164
|
3638 * pr-output.cc (set_format): Set scale to 1.0 if all elements are |
|
3639 int or inf or nan. |
|
3640 |
3162
|
3641 * parse.y (Vwarn_future_time_stamp): New variable. |
|
3642 (symbols_of_parse): Add DEFVAR for it. |
|
3643 (warn_future_time_stamp): New function. |
|
3644 (frob_function_def): Maybe warn about files with future time stamps. |
|
3645 |
|
3646 Thu Apr 2 20:43:45 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3647 |
|
3648 * pt-arg-list.cc (tree_argument_list::convert_to_const_vector): In |
|
3649 error messages, print element numbers starting with 1, not 0. |
|
3650 |
|
3651 Sat Mar 28 15:25:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3652 |
|
3653 * toplev.cc (clean_up_for_exit): New function. |
|
3654 (clean_up_and_exit): Use it. |
|
3655 * sighandlers.cc (my_friendly_exit): Call it instead of |
|
3656 clean_up_and_exit, then do default action for signal. |
|
3657 |
|
3658 * sighandlers.cc (octave_new_handler): Call my_friendly_exit with |
|
3659 signal set to SIGABRT if it is defined, or -1 otherwise. |
|
3660 |
|
3661 * error.cc (verror): Fix thinko in attempt to skip `error: ' tag |
|
3662 when buffering error messages. |
|
3663 * pt-except.cc (tree_try_catch::eval): Reset buffer_error_messages |
|
3664 here if just discarding unwind_protect frame. |
|
3665 |
|
3666 Wed Mar 18 12:35:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3667 |
|
3668 * xpow.cc (elem_xpow): For real-scalar .^ matrix case, result is |
|
3669 complex only if real-scalar is negative and matrix has some |
|
3670 non-integer values. |
|
3671 |
|
3672 Tue Mar 17 17:47:50 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3673 |
|
3674 * pt-plot.cc (Vgnuplot_command_plot, Vgnuplot_command_replot, |
|
3675 Vgnuplot_command_splot, Vgnuplot_command_using, |
|
3676 Vgnuplot_command_with, Vgnuplot_command_title, |
|
3677 Vgnuplot_command_end): New static variables. |
|
3678 (symbols_of_pt_plot): DEFVAR them. |
|
3679 (gnuplot_command_plot, gnuplot_command_replot, |
|
3680 gnuplot_command_splot, gnuplot_command_using, |
|
3681 gnuplot_command_with, gnuplot_command_title, |
|
3682 gnuplot_command_end): New functions. |
|
3683 (open_plot_stream, send_to_plot_stream, tree_plot_command::eval, |
|
3684 subplot_using::print, subplot_style::print, subplot::print, |
|
3685 do_external_plotter_cd, Fgset, Fgshow): Use them instead of the |
|
3686 GPLOT_CMD_PLOT, GPLOT_CMD_REPLOT, GPLOT_CMD_SPLOT, |
|
3687 GPLOT_CMD_USING, GPLOT_CMD_WITH, GPLOT_CMD_TITLE, and |
|
3688 GPLOT_CMD_END macros. |
|
3689 |
3160
|
3690 Fri Feb 27 12:25:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3691 |
|
3692 * help.cc (additional_help_message): Fix www address. |
|
3693 |
|
3694 Tue Feb 24 00:42:59 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3695 |
|
3696 * help.cc (simple_help): Put additional help message first. |
|
3697 (additional_help_message): Add information about web site and |
|
3698 mailing list. |
|
3699 |
3156
|
3700 Fri Feb 20 00:41:06 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3701 |
|
3702 * pt-plot.cc (GPLOT_CMD_REPLOT): Clear before replot. |
|
3703 |
|
3704 * Makefile.in: Better handling of lib flags for linking. |
|
3705 |
|
3706 Thu Feb 19 21:14:30 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3707 |
|
3708 * pt-decl.cc (Vinitialize_global_values): New static variable. |
|
3709 (initialize_global_variables): New function. |
|
3710 (symbols_of_pt_decl): New function. |
|
3711 DEFVAR Vinitialize_global_values and initialize_global_variables. |
|
3712 (tree_global_command::do_init): If initialize_global_variables is |
|
3713 not true and the variable doesn't have an explicit initializer, don't |
|
3714 initialize it. If we are giving it a default value, use the value |
|
3715 of the variable defualt_global_variable_value. |
|
3716 * octave.cc (maximum_braindamage): Set default_global_variable_value |
|
3717 and initialize_global_variables to Matlab-compatible values. |
|
3718 |
|
3719 Wed Feb 18 04:35:31 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3720 |
|
3721 * DLD-FUNCTIONS/besselj.cc: Rename from bessel.cc. |
|
3722 * Makefile.in (DLD_XSRC): Likewise. |
|
3723 |
|
3724 * syscalls.cc (Fvfork): Delete. |
|
3725 |
|
3726 * oct-procbuf.cc: Just use fork. |
|
3727 |
|
3728 * parse.y (feval): Provide version that takes function name |
|
3729 separate from other args. |
|
3730 * parse.h: Declare it. |
|
3731 |
|
3732 * oct-procbuf.cc (octave_procbuf::open): Move declaration of |
|
3733 child_std_end outside of child scope and declare volatile. |
|
3734 |
|
3735 Mon Feb 16 15:04:28 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3736 |
|
3737 * parse.y: Include cstdio, for SEEK_SET. |
|
3738 |
3153
|
3739 Thu Feb 12 22:07:00 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3740 |
|
3741 * system.c: New file. |
|
3742 * Makefile.in (SOURCES): Add it to the list. |
|
3743 |
3148
|
3744 Fri Feb 6 01:23:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3745 |
|
3746 * oct-stream.cc (octave_base_stream::file_number): Rename from fileno. |
|
3747 Change all uses. |
|
3748 |
|
3749 * fsolve.cc (fsolve_option_table): Add missing & to function names. |
|
3750 |
3145
|
3751 Thu Feb 5 02:27:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3752 |
3147
|
3753 * dirfns.cc (Fls): If first attempt at reading process output |
|
3754 fails, sleep once and try again. |
|
3755 * toplev.cc (run_command_and_return_output): Likewise. |
|
3756 |
|
3757 * oct-procbuf.cc (octave_procbuf::open): Use vfork if it is available. |
|
3758 |
|
3759 * syscalls.cc (Fvfork): New function. |
|
3760 |
3145
|
3761 * ov-bool-mat.cc: Only declare assign function if |
|
3762 CXX_NEW_FRIEND_TEMPLATE_DECL is not defined. |
|
3763 |
|
3764 * ov-base.h, ov-bool-mat.h, ov-bool.h, ov-ch-mat.h, ov-complex.h, |
|
3765 ov-cx-mat.h, ov-range.h, ov-re-mat.h, ov-scalar.h: Handle default |
|
3766 args for *_value functions consistently. |
|
3767 |
|
3768 * symtab.cc (maybe_list_cmp_fcn): Declare args as void*, not |
|
3769 void**, then use X_CAST. |
|
3770 |
|
3771 * OPERATORS/op-s-cm.cc: Include mx-cm-s.h. |
|
3772 |
|
3773 * defun-int.h: Include ov-builtin.h, ov-mapper.h, and symtab.h. |
|
3774 (install_builtin_mapper, install_builtin_function, |
|
3775 install_builtin_variable) Use specific types rather than void * in |
|
3776 declaration. |
|
3777 * defun.cc (install_builtin_mapper, install_builtin_function, |
|
3778 install_builtin_variable): Likewise. Eliminate casts. |
|
3779 |
|
3780 * load-save.cc (read_binary_data, read_mat_file_header, |
|
3781 save_binary_data): Use X_CAST, not static_cast. |
|
3782 * unwind-prot.h (unwind_protect::save_ptr): Likewise. |
|
3783 * Map.cc (goodCHptr, index_to_CHptr, CHptr_to_index): Likewise. |
|
3784 * dynamic-ld.cc (octave_dlopen_dynamic_loder::resolve_reference): |
|
3785 Likewise. |
|
3786 |
|
3787 * pt-mat.cc (tm_const::operator bool ()): |
|
3788 (tm_row_const::operator bool ()): Likewise. |
|
3789 * oct-stream.cc (printf_value_cache::operator bool ()): Likewise. |
|
3790 (scanf_format_list::operator bool ()): Likewise. |
|
3791 (printf_format_list::operator bool ()): Likewise. |
|
3792 (octave_stream::operator bool ()): Likewise. |
|
3793 |
|
3794 Wed Feb 4 13:08:29 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3795 |
|
3796 * DLD-FUNCTIONS/minmax.cc: Include cmath, not oct-math.h. |
|
3797 |
|
3798 * syscalls.cc (Fdup2): Convert stream to actual system file id. |
|
3799 |
|
3800 * oct-stream.cc (octave_base_stream::fileno, octave_stream::fileno): |
|
3801 New functions. |
|
3802 |
3141
|
3803 Tue Feb 3 00:24:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3804 |
|
3805 * defaults.cc (exec_path): Append Vbin_dir to std_path. |
|
3806 |
|
3807 * octave.cc (initialize_pathsearch): Set TEXMFDBS, not TEXMF. |
|
3808 Look for OCTAVE_DB_PATH in environment. |
|
3809 Simplify using Vdata_dir and Vlibexec_dir. |
|
3810 |
|
3811 * defaults.h.in (Vdata_dir, Vlibexecdir): Declare new vars. |
|
3812 defaults.cc: Define them. |
|
3813 (set_default_data_dir, set_default_libexecdir): New functions. |
|
3814 (install_defaults): Call them. |
|
3815 |
|
3816 * defaults.h.in (OCTAVE_LIBEXECDIR): Define. |
|
3817 |
|
3818 Mon Feb 2 02:43:16 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3819 |
|
3820 * Makefile.in (install, uninstall): Use $(octlibdir), not $(libdir). |
|
3821 Use mk-libdir-link. |
|
3822 |
|
3823 * defaults.h.in (OCTAVE_OCTLIBDIR): Substitute value. |
|
3824 (Vlib_dir): Delete declaration. |
|
3825 * defaults.cc (Vlib_dir): Delete. |
|
3826 (set_default_lib_dir): Delete. |
|
3827 (install_defaults): Don't call set_default_lib_dir. |
|
3828 (set_default_info_prog): If oct_info_prog is empty, set default to |
|
3829 "info" -- we expect it to be somewhere in the user's path. |
|
3830 |
|
3831 * defun.h (DEFCONST, DEFCONSTX): Eliminate inst_as_fcn and chg_fcn |
|
3832 args. Always pass true for inst_as_fcn and 0 for chg_fcn to |
|
3833 DEFVAR when creating built-in values like `e' or `stderr' that can |
|
3834 be redefined. Change all uses. |
|
3835 |
|
3836 * help.cc (Ftype): Handle script files too. |
|
3837 (Fwhich): Likewise. |
|
3838 |
3136
|
3839 Sat Jan 31 00:00:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3840 |
|
3841 * ov-ch-mat.cc (octave_char_matrix::is_true): Make it work. |
|
3842 * ov-str-mat.h, ov-str-mat.cc (octave_char_matrix_str::is_true): |
|
3843 Delete. |
|
3844 |
|
3845 * load-save.cc (read_ascii_data): Allow strings of length 0. |
|
3846 If we don't find data on the first call, fail with error message. |
|
3847 (do_load): Pass count of items read to read_ascii_data. |
|
3848 Allow `load foo xyz' to work when foo contains only numbers. |
|
3849 |
|
3850 Fri Jan 30 23:46:42 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3851 |
|
3852 * ov-str-mat.h (octave_char_matrix_str::all): Delete. |
|
3853 (octave_char_matrix_str::any): Delete. |
|
3854 * ov-ch-mat.h (octave_char_matrix::all, octave_char_matrix::any): |
|
3855 Call charMatrix::all, charMatrix::any. |
|
3856 |
|
3857 Thu Jan 29 16:25:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3858 |
|
3859 * load-save.cc (read_mat_binary_data): Handle third digit of MOPT |
|
3860 as flag indicating row or column major ordering. |
|
3861 |
3131
|
3862 Wed Jan 28 00:18:17 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3863 |
|
3864 * DLD-FUNCTIONS/dassl.cc (lsode_option_table): |
|
3865 Add missing & to function names. |
|
3866 * DLD-FUNCTIONS/lsode.cc (lsode_option_table): Likewise. |
|
3867 * DLD-FUNCTIONS/quad.cc (quad_option_table): Likewise. |
|
3868 |
|
3869 * Makefile.in (oct-gperf.h): Add -G option to gperf. |
|
3870 |
|
3871 * load-save.cc (get_save_type): Add `UL' and `L' suffixes to large |
|
3872 constant values. For LS_INT, use <= and >= for comparison. |
|
3873 |
|
3874 Mon Jan 26 13:17:59 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3875 |
|
3876 * ov-usr-fcn.cc (Vmax_recursion_depth): New static variable. |
|
3877 (max_recursion_depth): New fucnction |
|
3878 (symbols_of_ov_usr_fcn): DEFVAR max_recursion_depth. |
|
3879 (octave_user_function::do_index_op): Check Vmax_recursion_depth. |
|
3880 |
3130
|
3881 Thu Jan 22 13:45:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3882 |
|
3883 * dynamic-ld.cc (make_dynamic_loader): Fix typo. |
|
3884 |
|
3885 Tue Jan 20 17:02:19 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3886 |
|
3887 * variables.cc (Fexist): If local symbol is undefined, check |
|
3888 global table. |
|
3889 |
|
3890 * pr-output.cc (pr_max_internal): Initial value for result is |
|
3891 -DBL_MAX, not DBL_MIN. |
|
3892 |
3125
|
3893 Thu Jan 8 11:54:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3894 |
|
3895 * xpow.cc (elem_xpow): If second arg of pow is complex, make sure |
|
3896 first arg is also complex. |
|
3897 |
|
3898 * symtab.cc (symbol_table::rename): Properly insert new item at |
|
3899 the front of the list to avoid losing the rest of the items. |
|
3900 |
|
3901 Thu Dec 11 23:30:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3902 |
|
3903 * variables.cc (Fclear): Increment index to skip -x arg. |
|
3904 |
3124
|
3905 Tue Dec 9 02:45:35 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3906 |
|
3907 * Makefile.in (INCLUDES): Don't forget Pix.h. |
|
3908 |
|
3909 * BaseSLList.cc: Don't include nonstandard libg++ header files. |
|
3910 |
3119
|
3911 Sun Nov 30 14:58:56 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3912 |
3124
|
3913 * pr-output.cc: Include cmath, not oct-math. |
|
3914 * sysdep.cc: Likewise. |
|
3915 |
3119
|
3916 * DLD-FUNCTIONS/bessel.cc: New file. |
|
3917 * Makefile.in (DLD_XSRC): Add it to the list. |
|
3918 |
3113
|
3919 Thu Nov 27 23:28:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3920 |
|
3921 * lex.l (handle_string): Constructor for string class takes |
|
3922 (size_t, char) args, not (char, size_t). |
|
3923 |
3111
|
3924 Wed Nov 26 00:39:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3925 |
|
3926 * Makefile.in (OCTAVE_LIBS): Include $(SPECIAL_MATH_LIB) just |
|
3927 ahead of -lcruft. |
|
3928 |
3110
|
3929 Thu Nov 20 15:16:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3930 |
|
3931 * octave.cc (maximum_braindamage): Bind implicit_num_to_str_ok to 1. |
|
3932 * pt-mat.cc (Vimplicit_num_to_str_ok): New static variable. |
|
3933 (implicit_num_to_str_ok): New function. |
|
3934 (symbols_of_pt_mat): DEFVAR implicit_num_to_str_ok. |
|
3935 (tm_row_const::some_str): New data member. |
|
3936 (tm_row_const::some_strings_p): New function. |
|
3937 (tm_row_const::init): Set some_str. |
|
3938 (tm_const::some_str): New data member. |
|
3939 (tm_const::some_strings_p): New function. |
|
3940 (tm_const::init): Set some_str. |
|
3941 (tree_matrix::eval): If Vimplicit_num_to_str_ok is true and some |
|
3942 of the elements are strings, force a string conversion before |
|
3943 returning. |
|
3944 |
|
3945 * parse.y (fold, finish_colon_expression, finish_matrix): |
|
3946 If an error occurs, return the original expression. |
|
3947 Use unwind_protect to restore error_state. |
|
3948 |
|
3949 * ov-ch-mat.h (octave_char_matrix::convert_to_str): Result is |
|
3950 char_matrix_str, not just char_matrix. |
|
3951 |
3107
|
3952 Wed Nov 19 02:05:40 1997 Mumit Khan <khan@dhaka.xraylith.wisc.edu> |
|
3953 |
|
3954 * DLD-FUNCTIONS/filter.cc: Don't include extern template decls if |
3109
|
3955 CXX_NEW_FRIEND_TEMPLATE_DECL is defined. |
3107
|
3956 * ov-cx-mat.cc: Likewise. |
|
3957 * ov-re-mat.cc: Likewise. |
|
3958 * ov-str-mat.cc: Likewise. |
|
3959 |
|
3960 * ov-cx-mat.h (octave_complex_matrix::decrement, |
|
3961 octave_complex_matrix): Use explicit Complex constructor. |
|
3962 |
|
3963 Wed Nov 19 00:08:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3964 |
|
3965 * pt-decl.cc (tree_global_command::do_init): Initialize global |
|
3966 values to `[]'. Only perform explicit initialization once. |
|
3967 |
3103
|
3968 Tue Nov 18 04:27:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3969 |
3105
|
3970 * pr-output.cc (Vfixed_point_format): New variable. |
|
3971 (fixed_point_format): New fucntion. |
|
3972 (symbols_of_pr_output): Add DEFVAR for fixed_point_format. |
|
3973 (set_real_matrix_format): Handle fixed point format |
|
3974 (set_complex_matrix_format): Handle fixed point format |
|
3975 (set_format): New arg, scale in Matrix, ComplexMatrix, Range versions. |
|
3976 (pr_scale_header): New function. |
|
3977 (octave_print_internal): Handle fixed point format in Matrix, |
|
3978 ComplexMatrix, and Range versions. |
|
3979 * octave.cc (maximum_braindamage): Set fixed_point_format to 1.0. |
|
3980 |
3103
|
3981 * utils.cc (do_string_escapes): Move here, from lex.l. |
|
3982 Arg is now const string& instead of char*. |
|
3983 Return new string object instead of modifying arg in place. |
|
3984 (Fdo_string_escapes): New function. |
|
3985 * lex.l (handle_string): Use new version of do_string_escapes. |
3105
|
3986 |
|
3987 * lex.l (Vbackslash_escapes): Delete. |
|
3988 (backslash_escapes): Delete. |
|
3989 (do_string_escapes): Undo previous change. |
|
3990 (eat_whitespace, eat_continuation): Undo previous change. |
|
3991 (handle_string): Undo previous change. |
|
3992 (symbols_of_lex): Undo previous change. |
|
3993 * octave.cc (maximum_braindamage): Undo previous change. |
3103
|
3994 |
3096
|
3995 Fri Nov 14 01:53:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3996 |
3100
|
3997 * parse.y (eval_string (const string&, bool, int&, int)): No |
|
3998 longer static. |
|
3999 * parse.h: Provide declaration. |
|
4000 * input.cc (get_user_input (const octave_value_list&, bool, int)): |
|
4001 New arg, nargout. Pass it to eval_string. |
|
4002 (keyboard): Pass nargout = 0 to get_user_input. |
|
4003 (input): Pass nargout to get_user_input. |
|
4004 |
3098
|
4005 * input.cc (get_user_input (const octave_value_list&, bool)): |
3100
|
4006 Return octave_value_list() if user enters `quit', `exit', or `return'. |
3098
|
4007 If debugging, let eval_string handle the printing chores and |
|
4008 reset error_state before asking for more input. |
|
4009 |
|
4010 * input.cc (Fkeyboard): Unconditionally turn on history here. |
|
4011 |
3096
|
4012 * lex.l (have_continuation, have_ellipsis_continuation): Declare |
|
4013 arg as bool, not int. Change callers. |
|
4014 |
|
4015 * lex.l (Vbackslash_escapes): New static variable. |
|
4016 (backslash_escapes): New function. |
|
4017 (do_string_escapes): Return immediately if ! Vbackslash_escapes. |
|
4018 (eat_whitespace, eat_continuation): Only call have_continuation if |
|
4019 Vbackslash_escapes. |
|
4020 (handle_string): Backslash is only special if Vbackslash_escapes. |
|
4021 (symbols_of_lex): Add DEFVAR for backslash_escapes. |
|
4022 * octave.cc (maximum_braindamage): Set backslash_escapes to 0. |
|
4023 |
3095
|
4024 Thu Nov 13 16:20:40 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4025 |
3096
|
4026 * variables.cc (Fexist): Also return 2 if NAME is a regular file |
|
4027 somewhere in the LOADPATH. |
|
4028 |
3095
|
4029 * data.cc (sumsq): Fix doc string. |
|
4030 |
|
4031 * parse.y (Fsource): Call parse_fcn_file, not parse_and_execute. |
|
4032 |
3092
|
4033 Tue Oct 7 16:51:01 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4034 |
|
4035 * defun-int.h (DEFINE_FUN_INSTALLER_FUN): Set installed to true |
|
4036 after installing the function. |
|
4037 |
3088
|
4038 Thu Sep 25 10:17:26 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4039 |
|
4040 * DLD-FUNCTIONS/filter.cc (Ffilter): Return second output value |
|
4041 even when called with only 3 arguments. |
|
4042 |
3086
|
4043 Mon Sep 22 16:44:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4044 |
|
4045 * DLD-FUNCTIONS/rand.cc (do_rand): Print error if first of two |
|
4046 args is a string but doesn't match "seed". |
3088
|
4047 (Frand, Frandn): Fix doc string. |
3086
|
4048 |
3081
|
4049 Mon Aug 25 10:42:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4050 |
|
4051 * input.cc (get_user_input): Return an empty string if the user |
|
4052 just types RET. |
|
4053 |
3079
|
4054 Thu Jul 31 22:59:04 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4055 |
|
4056 * lex.l <TEXT_FCN>: Ensure that we handle words that begin with |
|
4057 single or double quotes as strings. |
|
4058 |
3074
|
4059 Thu Jul 17 13:06:48 1997 Klaus Gebhardt <gebhardt@crunch.ikp.physik.th-darmstadt.de> |
|
4060 |
|
4061 * DLD-FUNCTIONS/rand.cc (Frand): Use F77_XFCN to call getsd, |
|
4062 setsd, setall, setcgn, dgenunf, and dgennor since they can call |
|
4063 XSTOPX. |
|
4064 |
3072
|
4065 Mon Jul 14 12:54:23 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4066 |
|
4067 * dynamic-ld.cc (octave_dynamic_loader::load_fcn_from_dot_oct_file): |
|
4068 If first attempt to load function fails, prepend and underscore |
|
4069 and try again. |
|
4070 |
|
4071 * Makefile.in (install-inc): If defaults.h, oct-conf.h, or |
|
4072 oct-gperf.h don't exist in the current directory, look in $(srcdir). |
|
4073 |
3068
|
4074 Mon Jul 7 21:14:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4075 |
|
4076 * DLD-FUNCTIONS/qr.cc (Fqr): Correctly handle nargout == 0. |
|
4077 |
3067
|
4078 Wed Jul 2 16:47:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4079 |
|
4080 * matherr.c: New file. Move matherr function here. |
|
4081 * sysdep.cc: From here. |
|
4082 * Makefile.in (DIST_SRC): Add matherr.c to the list. |
|
4083 |
|
4084 * error.cc (handle_message): Avoid bug in g++ snapshot. |
|
4085 |
3065
|
4086 Thu Jun 26 22:04:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4087 |
|
4088 * utils.cc (file_in_path): Add default load path to PATH arg if |
|
4089 it begins or ends with a colon. |
|
4090 |
3060
|
4091 Wed Jun 25 13:31:06 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4092 |
|
4093 * oct-lvalue.h (octave_lvalue::struct_elt_ref): Ensure val is unique. |
|
4094 |
|
4095 Fri Jun 20 12:33:35 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4096 |
|
4097 * toplev.cc (cmd_death_handler): New function. |
|
4098 (run_command_and_return_output): Insert pid of command in |
|
4099 octave_child_list along with pointer to cmd_death_handler so we |
|
4100 can get the exit status without having to block SIGCHLD. |
|
4101 (cleanup_iprocstream): Remove pid of command from octave_child_list. |
|
4102 |
3053
|
4103 Sun Jun 15 16:11:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4104 |
3054
|
4105 * OPERATORS/op-cs-s.cc (ldiv): Doh, v1 is complex, v2 is real. |
|
4106 |
3053
|
4107 * Makefile.in (DISTFILES): Add mkops to the list. |
|
4108 (dist): Correctly link files in DLD-FUNCTIONS, OPERATORS, and |
|
4109 TEMPLATE-INST subdirectories. |
|
4110 |
3040
|
4111 Fri Jun 6 04:30:57 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4112 |
3042
|
4113 * DLD-FUNCTIONS/npsol.cc, DLD-FUNCTIONS/qpsol.cc, |
|
4114 DLD-FUNCTIONS/fsqp.cc: Delete. |
|
4115 * Makefile.in (DLD_XSRC): Remove them from the list. |
|
4116 |
3040
|
4117 * utils.cc (search_path_for_file): New arg, do_tilde_expansion. |
|
4118 If TRUE, perform tilde expansion on path before searching. |
|
4119 (file_in_path): Call search_path_for_file with do_tilde_expansion |
|
4120 set to false, since we've already performed tilde expansion on the |
|
4121 load path. |
|
4122 |
|
4123 * defaults.cc (loadpath): Perform tilde expansion here. |
|
4124 |
3029
|
4125 Thu Jun 5 01:42:39 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4126 |
3034
|
4127 * Makefile.in: Make building of static library optional. |
3036
|
4128 (liboctave.$(SHLEXT_VER)): Add $(SONAME_FLAGS) to command. |
3034
|
4129 |
3033
|
4130 * dynamic-ld.cc (octave_shl_load_dynamic_loader::resolve_reference): |
|
4131 Call shl_findsym with type set to TYPE_UNDEFINED. |
|
4132 |
3029
|
4133 * Makefile.in (stamp-picdir): Delete. |
|
4134 (pic): New target. Don't worry so much about creating pic |
|
4135 directory only when it is really needed. |
|
4136 (stamp-interp): Delete. |
|
4137 (libraries): New target. Depend on shared library directly. |
|
4138 |
3024
|
4139 Wed Jun 4 00:09:42 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4140 |
|
4141 * octave.cc (main): Call dir_path::set_program_name here. |
|
4142 |
3021
|
4143 Tue Jun 3 16:47:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4144 |
3022
|
4145 * variables.cc (symbol_out_of_date): Make it work again. |
|
4146 |
3021
|
4147 * parse.y (parse_and_execute): Move here from toplev.cc |
|
4148 (default_eval_print_flag): Likewise. |
|
4149 (safe_fclose): Likewise. |
|
4150 (eval_string): Likewise. |
|
4151 (Fsource): Likewise. |
|
4152 (Ffeval): Likewise. |
|
4153 (feval): Likewise. |
|
4154 (Feval): Likewise. |
|
4155 (symbols_of_parse): Define default_eval_print_flag here instead of |
|
4156 in varaibles.cc. |
|
4157 (looks_like_octave_copyright): Move here from variables.cc |
|
4158 (gobble_leading_whitespace): Likeiwse. |
|
4159 (is_function_file): Likewise. |
|
4160 (restore_input_stream): Likewise. |
|
4161 (parse_fcn_file): Likewise. |
|
4162 (load_fcn_from_file): Likewise. |
|
4163 (get_help_from_file): Likewise. |
|
4164 |
|
4165 * toplev.cc (syms_of_toplev): Define argv, program_name, and |
|
4166 program_invocation_name here instead of in variables.cc. |
|
4167 |
|
4168 * parse.h (line_editing): Move here from toplev.h. Now bool, not int. |
|
4169 (reading_startup_message_printed) Likewise. |
|
4170 (input_from_startup_file): Likewise. |
|
4171 (input_from_command_line_file): Likewise. |
|
4172 |
|
4173 * load-save.cc: Use bool instead of int where appropriate. |
|
4174 |
|
4175 * input.h (enum echo_state): Move here from variables.h. |
|
4176 (Vecho_executing_commands): Likewise. Now bool, not int. |
|
4177 * input.cc (echo_executing_commands): Move here from variables.cc. |
|
4178 (symbols_of_input): Define echo_executing_commands here instead of |
|
4179 in variables.cc. |
|
4180 |
|
4181 * octave.cc (program_invocation_name): Don't define. |
|
4182 (intern_argv): Don't set program_invocation_name here. |
|
4183 (main): Call octave_env::set_program_name here, not in intern_argv. |
|
4184 |
|
4185 * toplev.cc (quitting_gracefully): Move here from octave.h and |
|
4186 make static bool instead of extern int. |
|
4187 |
|
4188 * error.cc (bind_global_error_variable, clear_global_error_variable): |
|
4189 Move here from variables.cc. |
|
4190 (symbols_of_error): Define error_text here instead of in variables.cc. |
|
4191 |
|
4192 * pager.cc (write_to_diary_file): Now bool, not int. |
|
4193 (really_flush_to_pager): Likewise. |
|
4194 (flushing_to_pager): Likewise. |
|
4195 * sighandlers.h (can_interrupt): Likewise. |
|
4196 * error.h (buffer_error_messages): Likewise. |
|
4197 * oct-hist.h (input_from_tmp_history_file, Vsaving_history): Likewise. |
|
4198 * input.h (forced_interactive): Likewise. |
|
4199 (get_input_from_eval_string): Likeiwse. |
|
4200 (reading_script_file): Likeiwse. |
|
4201 (reading_fcn_file): Likeiwse. |
|
4202 (interactive): Likewise. |
|
4203 |
|
4204 * unwind-prot.cc (saved_variable::saved_variable (bool *, bool)): |
|
4205 Set type_tag to boolean, not int. |
|
4206 |
3016
|
4207 Mon Jun 2 00:40:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4208 |
|
4209 * variables.h (Octave_builtin_fcn): Delete typedef. |
|
4210 |
|
4211 * help.cc (make_name_list): Move here from variables.cc. |
|
4212 (keyword_help, names): Now static. |
|
4213 (struct help_list): Move declaration here from help.h. |
|
4214 |
|
4215 * oct-hist.cc (Vhistory_file, Vhistory_size, Vsaving_history): |
|
4216 Move here from variables.cc. |
|
4217 (symbols_of_oct_hist): New function. |
|
4218 |
|
4219 * version.h: Protect against multiple inclusion. |
|
4220 |
|
4221 * defun.cc (check_version): New function. |
|
4222 * defun-int.h (DEFINE_FUN_INSTALLER_FUN): Use it. |
|
4223 |
|
4224 * help.h, help.cc (additional_help_message): Now extern. |
|
4225 (operator_help): Now static. |
|
4226 |
|
4227 * defun.cc (print_usage): Move here from help.cc |
|
4228 * DLD-FUNCTIONS/*.cc, data.cc, dirfns.cc, file-io.cc, input.cc, |
|
4229 load-save.cc, octave.cc, ov-list.cc, ov-typeinfo.cc, |
|
4230 ov-usr-fcn.cc, pager.cc, pr-output.cc, pt-plot.cc, strfns.cc, |
|
4231 syscalls.cc, sysdep.cc, utils.cc, toplev.cc: |
|
4232 Don't include help.h. |
|
4233 |
|
4234 * TEMPLATE-INST/Array-sym.cc: New file. |
|
4235 |
|
4236 * load-save.cc (do_load): Don't use ostream::form. |
|
4237 * pr-output.cc: Likewise, at least where it is easy to do so. |
|
4238 * oct-stream.cc: Ditto. |
|
4239 |
|
4240 * symtab.h (symbol_record::symbol_def::rows): New function. |
|
4241 (symbol_record::symbol_def::columns): Ditto. |
|
4242 (symbol_record::symbol_def::type_name): Ditto. |
|
4243 (symbol_record::rows): Ditto |
|
4244 (symbol_record::columns): Ditto |
|
4245 (symbol_record::type_name): Ditto |
|
4246 |
|
4247 * symtab.h, symtab.cc (symbol_record::hides_fcn): New function. |
|
4248 (symbol_record::hides_builtin): Ditto. |
|
4249 (symbol_record::print_symbol_info_line): Ditto. |
|
4250 (symbol_table::long_list): Delete. |
|
4251 (symbol_table::symbol_list): New function. |
|
4252 (symbol_table::maybe_list): Delete argc arg. |
|
4253 (symbol_table::name_list): Rename from symbol_table::list. |
|
4254 Change all callers. |
|
4255 |
|
4256 * symtab.h, symtab.cc (class symbol_record_info): Delete. |
|
4257 |
|
4258 * symtab.cc (matches_patterns): Use vector form of glob_match. |
|
4259 |
|
4260 Sun Jun 1 14:04:26 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4261 |
|
4262 * pt-check.h, pt-check.cc: New files, for semantic checking of |
|
4263 parse trees. |
|
4264 |
|
4265 * symtab.h (class symbol_def): Now nested in symbol_record class. |
|
4266 (enum TYPE): Move from symbol_def to symbol record class. Change |
|
4267 all uses. |
|
4268 |
|
4269 * symtab.h, symtab.cc (symbol_table::maybe_list): New function, |
|
4270 from variables.cc. Change all uses. |
|
4271 |
|
4272 * pt-idx.h (tree_identifier::lvalue_ok): New function. |
|
4273 * pt-id.h (tree_index_expression::lvalue_ok): Likewise. |
|
4274 * pt-indir.h (tree_indirect_ref::lvalue_ok): Likewise. |
|
4275 |
|
4276 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_oct_obj): Delete. |
|
4277 * pt-walk.h (tree_walker::visit_oct_obj): Delete declaration. |
|
4278 |
|
4279 * lex.h (class lexical_feedback): Delete maybe_screwed_again. |
|
4280 * lex.l (lexical_feedback::init): Don't set it. |
|
4281 |
|
4282 Fri May 30 16:07:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4283 |
|
4284 * mappers.cc: Include <cfloat> here. |
|
4285 |
|
4286 Tue May 27 10:08:43 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4287 |
|
4288 * toplev.cc (eval_string): Don't index tmp if it is empty. |
|
4289 |
|
4290 Sat May 24 00:18:41 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4291 |
|
4292 * load-save.cc (valid_identifier): Move here and make static. |
|
4293 * symtab.h, symtab.cc (valid_identifier): Delete declaration and |
|
4294 definition. |
|
4295 |
|
4296 Fri May 23 22:54:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4297 |
|
4298 * symtab.h (symbol_def::symbol_def): Use initializer list instead |
|
4299 of calling init_state. |
|
4300 (symbol_def::init_state): Delete. |
|
4301 |
|
4302 * symtab.cc (symbol_table::print_stats): New function. |
|
4303 * variables.cc (F__dump_symtab_info__): New function. |
|
4304 |
|
4305 * symtab.h, symtab.cc (symbol_table::hash): Return masked value. |
|
4306 (symbol_table::table_size): New data member. |
|
4307 (symbol_table::symbol_table): Set size of table in constructor. |
|
4308 (HASH_TABLE_SIZE): Replace uses with table_size. |
|
4309 (HASH_MASK): Delete. |
|
4310 * variables.cc (initialize_symbol_tables): Set top-level and |
|
4311 global symbol table sizes here. |
|
4312 |
2994
|
4313 Thu May 22 13:32:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4314 |
|
4315 * dynamic-ld.cc (octave_shl_load_dynamic_loader::resolve_reference): |
|
4316 Call shl_findsym with type set to TYPE_PROCEDURE. Pass the |
|
4317 address of the pointer we want to define. |
|
4318 |
2993
|
4319 Wed May 21 16:30:25 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4320 |
|
4321 * DLD-FUNCTIONS/time.cc (extract_tm): Avoid memory leak in dealing |
|
4322 with time zone. |
|
4323 |
|
4324 * Makefile.in (install-in): Use new mk-includedir-link macro. |
|
4325 (install-lib): Install in $octlibdir. Use new mk-libdir-link macro. |
|
4326 |
|
4327 Tue May 20 01:24:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4328 |
|
4329 * ov-list.cc (Flist): Rename from Fmake_list. |
|
4330 |
|
4331 Mon May 19 14:45:58 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4332 |
|
4333 * octave.cc (maximum_braindamage): Set default_eval_print_flag to 0. |
|
4334 |
|
4335 Sat May 17 16:32:23 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4336 |
|
4337 * defaults.cc (set_default_editor): Default is now Emacs, not vi. |
|
4338 |
2984
|
4339 Fri May 16 00:07:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4340 |
2991
|
4341 * pt-idx.cc (tree_index_expression::name): New function. |
|
4342 |
|
4343 * pt.cc (tree::str_print_code): New file, new convenience function. |
|
4344 * pt-arg-list.cc (tree_argument_list::get_arg_names): Use it. |
|
4345 * pt-assign.cc (tree_simple_assignment::rvalue): Likewise. |
|
4346 (tree_multi_assignment::rvalue): Likewise. |
|
4347 |
2990
|
4348 * pt-colon.h (tree_colon_expression::save_base): New data memmber. |
|
4349 (tree_colon_expression::preserve_base): New function. |
|
4350 * parse.y (finish_colon_expression): When converting to a simple |
|
4351 expression, be sure to delete the original colon expression but |
|
4352 not the base value. |
|
4353 |
|
4354 * pt-mat.cc (tree_matrix::~tree_matrix): Actually do something. |
|
4355 |
2987
|
4356 * pt-all.h: New file. |
|
4357 * parse.y, lex.l, pt-pr-code.cc: Use it. |
|
4358 |
|
4359 * pt.h: Rename from pt-base.h. |
|
4360 |
|
4361 * All parse tree classes: Add private copy constructors and |
|
4362 assignment operators to prevent copying. |
|
4363 |
|
4364 * pt-base.cc: Delete. |
|
4365 |
2985
|
4366 * unwind-prot.h, unwind-prot.cc: Make a bit more object-oriented. |
|
4367 Change all uses of unwind_protect stuff to match. |
|
4368 |
|
4369 * pt-jump.h, pt-jump.cc (breaking, continuing, returning): |
|
4370 Make these flags static members of the corresponding class. |
|
4371 Change all uses. |
|
4372 |
2984
|
4373 * pt-assign.cc (tree_simple_assignment_expression::eval, |
|
4374 tree_multi_assignment_expression::eval): Clear lvalue index here. |
|
4375 |
|
4376 * oct-lvalue.cc (octave_lvalue::assign): Don't clear index here. |
|
4377 * oct-lvalue.h (octave_lvalue::clear_index): New function. |
|
4378 (octave_lvalue::set_index): Rename from octave_lvalue::index. |
|
4379 Change all callers. |
|
4380 |
2976
|
4381 Thu May 15 11:48:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4382 |
2983
|
4383 * pt-select.h, pt-select.cc (class tree_if_command_list, |
|
4384 class tree_if_clause, class tree_switch_case_list, |
|
4385 class tree_switch_case): Move here from pt-misc.h, pt-misc.cc. |
|
4386 * pt-decl.h, pt-decl.cc (class tree_decl_init_list, |
|
4387 class tree_decl_elt): Move here from pt-mist.h, pt-misc.cc |
|
4388 |
|
4389 * pt-arg-list.h, pt-stmt.h: New files, extracted from pt-misc.h. |
|
4390 * pt-arg-list.cc, pt-stmt.cc: New files, extracted from pt-misc.cc. |
|
4391 |
|
4392 * pt-decl.h, pt-except.h, pt-jump.h, pt-loop.h, pt-select.h: |
|
4393 New files, extraced from pt-cmd.h. |
|
4394 * pt-decl.cc, pt-except.cc, pt-jump.cc, pt-loop.cc, pt-select.cc: |
|
4395 New files, extraced from pt-cmd.cc. |
|
4396 |
2980
|
4397 * pt-unop.h, pt-binop.h, pt-colon.h, pt-idx.h, pt-assign.h: |
|
4398 New files, extracted from pt-exp.h |
|
4399 * pt-unop.cc, pt-binop.cc, pt-colon.cc, pt-idx.cc, pt-assign.cc: |
|
4400 New files, extracted from pt-exp.cc |
|
4401 * pt-exp.h, pt-exp.cc: Rename from pt-exp-base.h, pt-exp-base.cc. |
|
4402 |
2979
|
4403 * oct-lvalue.h: Rename from oct-var-ref.h. Rename class from |
|
4404 octave_variable_reference to octave_lvalue. Change all uses. |
|
4405 * oct-lvalue.cc: Rename from oct-var-ref.cc. |
|
4406 |
2978
|
4407 * variables.cc (bind_ans): Only bind ans and print result if value |
|
4408 is defined. |
|
4409 |
2976
|
4410 * defun.cc: New file. Move functions for installing objects in |
|
4411 the symbol table here from variables.cc. |
|
4412 |
|
4413 * oct-obj.h, oct-obj.cc: Add custom allocator, fwiw. |
|
4414 |
|
4415 * toplev.cc (main_loop): Correctly increment command number. |
|
4416 |
|
4417 * TEMPLATE-INST/SLList-tm.cc: Don't instantiate lists of pointers |
|
4418 to tree_matrix_row objects. |
|
4419 * TEMPLATE-INST/SLList-misc.cc: Do instantiate lists of pointers |
|
4420 to tree_argument_list objects. |
|
4421 |
|
4422 * DLD-FUNCTIONS/dassl.cc: Update to use new octave_function |
|
4423 interface to user-supplied functions. |
|
4424 * DLD-FUNCTIONS/fsolve.cc: Likewise. |
|
4425 * DLD-FUNCTIONS/lsode.cc: Likewise. |
|
4426 * DLD-FUNCTIONS/npsol.cc: Likewise. |
|
4427 * DLD-FUNCTIONS/quad.cc: Likewise. |
|
4428 |
|
4429 * dynamic-ld.h, dynamic-ld.cc (builtin_fcn_installer typedef): |
|
4430 Rename from builtin_fcn. |
|
4431 (octave_dynamic_loader::load_fcn_from_dot_oct_file): |
|
4432 Simplify by using new installer function defined by DEFUN_DLD. |
|
4433 |
|
4434 * defun-dld.h (DEFUN_DLD): Use DEFINE_FUN_INSTALLER_FUN instead of |
|
4435 DEFINE_FUN_STRUCT_FUN. |
|
4436 * defun.h (DEFUN_MAPPER): Use DEFUN_MAPPER_INTERNAL. |
|
4437 * defun-int.h (DEFVAR_INTERNAL): Rename from DEFVAR_INT and move |
|
4438 here from defun.h. Change all uses. |
|
4439 (DEFUN_MAPPER_INTERNAL): New macro. |
|
4440 (DEFINE_FUN_INSTALLER_FUN): New macro to define function that the |
|
4441 dynamic loader calls to do all the work of installing a new function. |
|
4442 (DEFINE_FUN_STRUCT_FUN): Delete. |
|
4443 |
|
4444 * parse.y: Rewrite to handle more general expressions. |
|
4445 * lex.l: Corresponding changes. |
|
4446 |
|
4447 * pt-walk.h, pt-pr-code.h, pt-pr-code.cc: Cope with new parse tree |
|
4448 object structure. |
|
4449 |
|
4450 * pt-misc.cc (class tree_for_command): Split into |
|
4451 tree_simple_for_command and tree_complex_for_command classes. |
|
4452 |
|
4453 * pt-misc.h, pt-misc.cc (tree_statement::eval): Handle identifier |
|
4454 lookup and printing and binding ans here. |
|
4455 (tree_statement_list::eval): Simplify. |
|
4456 (tree_argument_list::all_elements_are_constant): New function. |
|
4457 (class tree_decl_elt): Now contains id and expr, not an assignment |
|
4458 expression. |
|
4459 |
|
4460 * pt-exp-base.h pt-exp.h pt-id.h pt-indir.h pt-mat.h pt-const.h, |
|
4461 pt-exp-base.cc pt-exp.cc pt-id.cc pt-indir.cc pt-mat.cc pt-const.cc: |
|
4462 Replace eval functions with rvalue and lvalue functions. |
|
4463 Change all uses. |
|
4464 (lvalue_ok, rvalue_ok): New functions, for future compile-time |
|
4465 semantic checks. |
|
4466 |
|
4467 * oct-var-ref.h (is_defined, is_map): New functions. |
|
4468 |
|
4469 * pt-exp.h (class tree_oct_obj): Delete. |
|
4470 |
|
4471 * variables.cc (extract_function, is_valid_function): Return |
|
4472 pointer to octave_function, not octave_symbol. |
|
4473 (link_to_global_variable): Rewrite. Handle errors in |
|
4474 symbol_record::mark_as_linked_to_global. |
|
4475 |
|
4476 * symtab.h, symtab.cc (class symbol_def, class symbol_record): |
|
4477 Symbols are now stored as octave_value objects only. |
|
4478 |
|
4479 * ov.cc (install_types): Register function types here. |
|
4480 * ov-fcn.h, ov-fcn.cc, ov-builtin.h, ov-builtin.cc, ov-mapper.h, |
|
4481 ov-mapper.cc, ov-usr-fcn.h, ov-usr-fcn.cc: New classes for |
|
4482 functions as values. |
|
4483 * ov.h (class octave_value): Don't derive from octave_symbol. |
|
4484 * oct-fcn.h, oct-fcn.cc, oct-builtin.h, oct-builtin.cc, |
|
4485 oct-mapper.h, oct-mapper.cc, oct-usr-fcn.h, oct-usr-fcn.cc, |
|
4486 oct-sym.h, oct-sym.cc: Delete. |
|
4487 |
2963
|
4488 Sun May 11 17:51:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4489 |
|
4490 * help.cc (Ftype): Make it work again for functions. |
|
4491 |
|
4492 * pt-pr-code.cc (tree_print_code::print_parens): New function. |
|
4493 Use it in other tree_print_code functions to handle printing all |
|
4494 the parens that we found when parsing the expression, not just one |
|
4495 pair. |
|
4496 * pt-exp-base.h (tree_expression::paren_count): Rename from |
|
4497 is_in_parens. |
|
4498 * parse.y (maybe_warn_assign_as_truth_value): Use new name. |
|
4499 |
|
4500 * parse.y (constant): New non-terminal. |
|
4501 (simple_expr1): Use it. |
|
4502 |
|
4503 * parse.y (make_unary_op): Delete. |
|
4504 (simple_expr1): Where appropriate, use make_prefix_op and |
|
4505 make_postfix_op instead of make_unary_op. Allow increment and |
|
4506 decrement ops to work on expressions, not just identifiers. |
|
4507 (make_prefix_op, make_postfix_op): Arg is expression, not identifier. |
|
4508 Handle old unary_op cases too. |
|
4509 (fold (tree_unary_expression *)): Delete. |
|
4510 * pt-exp.h, pt-exp.cc (tree_prefix_expression::eval): Handle unary |
|
4511 minus and not here. |
|
4512 (tree_postfix_expression::eval): Likewise, for transpose and hermitian. |
|
4513 (class tree_prefix_expression, class tree_postfix_expression): |
|
4514 Derive from tree_unary_expression. Delete identifier member. |
|
4515 Delete ident member function. |
|
4516 (tree_unary_expression): Don't handle evaluation here. |
|
4517 * pt-exp-base.h (mark_in_parens): No longer virtual. Return this. |
|
4518 (reference): New virtual function. |
|
4519 (class tree_expression): Don't handle expression type here. |
|
4520 * pt-mvr-base.h (tree_multi_val_ret::tree_multi_val_ret): Likewise. |
|
4521 * pt-mvr.h, pt-mvr.cc (tree_multi_assignment_expression): Likewise. |
|
4522 * pt-walk.h (visit_unary_expression): Delete declaration. |
|
4523 * pt-pr-code.h, pt-pr-code.cc (visit_unary_expression): Delete. |
|
4524 (visit_prefix_expression): Use operand(), not ident(). |
|
4525 new, visit_postfix_expression): |
|
4526 * pt-id.h, pt-id.cc (increment, decrement): Delete. |
|
4527 |
|
4528 * pt-misc.cc (tree_parameter_list::define_from_arg_vector): Get a |
|
4529 reference to each element and use the assignment operator instead |
|
4530 of tree_identifier::define. |
|
4531 * pt-id.h, pt-id.cc (tree_identifier::define): Delete versions |
|
4532 that take octave_value and octave_symbol args. |
|
4533 |
|
4534 Sat May 10 23:32:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4535 |
|
4536 * pt-indir.h, pt-indir.cc (tree_indirect_reference::value): Delete. |
|
4537 |
|
4538 * oct-var-ref.cc (octave_variable_ref::assign): Clear idx after |
|
4539 assignment. |
|
4540 |
2976
|
4541 * octave_value classes: Add is_constant, is_function, and |
|
4542 function_value functions. |
|
4543 |
2963
|
4544 * ov.h, ov.cc (assign): Return void, not reference to octave_value. |
|
4545 (do_index_op): Rename, from index. |
|
4546 (do_struct_elt_index_op): Rename, from struct_elt_val. |
|
4547 Add version that accepts index arg. |
|
4548 Change all uses and derived classes to match. |
|
4549 * pt-const.h (index): Delete. |
|
4550 * oct-var-ref.h, oct-var-ref.cc (value): Handle indexed structure |
|
4551 ops here too. |
|
4552 |
2949
|
4553 Fri May 9 07:40:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4554 |
2958
|
4555 * pt-exp.cc (print_rhs_assign_val, symbols_of_pt_exp): New functions. |
|
4556 (Vprint_rhs_assign_val): New static variable. |
|
4557 (tree_simple_assignment_expression::eval): Use it to optionally |
|
4558 allow the rhs (which is the result) of an assignment to be printed |
|
4559 instead of the left. |
|
4560 |
2955
|
4561 * pt-exp.cc (tree_simple_assignment_expression::eval): Use new |
|
4562 octave_variabl_reference::index function to handle indexing. |
|
4563 |
|
4564 * oct-var-ref.h, oct-var-ref.cc (idx): New data member. |
|
4565 (octave_variable_reference::index): Set it. |
|
4566 (octave_variable_reference::assign): Handle indexing here. |
|
4567 Delete version of this function htat takes index arg. |
|
4568 |
|
4569 * variables.h (struct builtin_varaible): Delete. |
|
4570 * variables.cc (install_builtin_variable): Take all elts of |
|
4571 builtin_variable struct directly. |
|
4572 * defun.h (DEFVAR_INT): Call install_builtin_variable directly. |
|
4573 |
|
4574 * symtab.h, defun-int.h: Don't include variables.h. |
|
4575 |
|
4576 * symtab.h (symbol_record::sv_function): Move typedef here. |
|
4577 * variables.h: From here. |
|
4578 |
|
4579 * oct-var-ref.h, oct-var-ref.cc: New files for |
|
4580 octave_variable_reference class, extracted from variables.h and |
|
4581 variables.cc |
2956
|
4582 * Makefile.in: Add them to the appropriate lists. |
2955
|
4583 |
|
4584 * oct-obj.h (octave_value_list::empty): New function. |
|
4585 |
2949
|
4586 * variables.h (class octave_variable_reference): Rewrite to work |
|
4587 as a proxy class to store a pointer to octave_value and, |
|
4588 optionally, the change function to call and the name of the |
|
4589 structure element we are referencing. Handle assignment, |
|
4590 increment, decrement, and value operations. |
|
4591 |
2956
|
4592 Thu May 8 23:40:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4593 |
2949
|
4594 * ov-re-mat.h, ov-re-mat.cc (struct_elt_ref, struct_elt_val, |
|
4595 assign_struct_elt): Provide functions for looking up and setting |
|
4596 matrix dimensions. |
|
4597 |
|
4598 * symtab.cc (symbol_record::define): Don't call sv_fcn here. |
|
4599 Don't save and restore value here. |
|
4600 (symbol_record::define_builtin_var): Do call sv_fcn here. |
|
4601 (symbol_record::variable_reference): Don't make value unique here. |
|
4602 Return pointer to sv_fcn in octave_variable_reference. |
|
4603 |
|
4604 * pt-misc.cc (tree_parameter_list::initialize_undefined_elements): |
|
4605 Simplify. |
|
4606 |
|
4607 * pt-id.h, pt-id.cc (tree_identifier::reference): Return |
|
4608 octave_variable_reference, not octave_value&. |
|
4609 * symtab.h, symtab.cc (symbol_record::variable_reference): Ditto. |
|
4610 * pt-indir.h, pt-indir.cc (tree_indirect_ref::reference): Ditto. |
|
4611 Simplify too. |
|
4612 |
|
4613 * pt-const.h (tree_constant::reference, tree_constant::value, |
|
4614 tree_constant::assign): Delete unnecessary functions. |
|
4615 * pt-id.h, pt-id.cc (tree_identifier::assign): Ditto. |
|
4616 |
|
4617 * pt-cmd.cc (tree_for_command::do_for_loop_once): Simplify. |
|
4618 |
|
4619 * ov.h, ov.cc, ov-base.h, ov-base.cc, ov-struct.h, ov-struct.cc |
|
4620 (struct_elt_ref): New arg, octave_value* parent. |
|
4621 Allow deferred lookup. Return octave_variable_reference, not |
|
4622 octave_value&. |
|
4623 |
|
4624 * ov.h, ov.cc, ov-re-mat.h, ov-re-mat.cc (assign_struct_elt): |
|
4625 New virtual functions. |
|
4626 |
|
4627 * ov.h, ov.cc (Vresize_on_range_error): Now static. |
|
4628 |
|
4629 * pt-mvr.cc (tree_index_expression::eval): Delete redundant check |
|
4630 of error_state. |
|
4631 |
2944
|
4632 Wed May 7 21:17:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4633 |
|
4634 * input.cc (generate_completion): Rename from command_generator. |
|
4635 Use string objects instead of char*. |
|
4636 (generate_possible_completions): Let qsort also make matches unique. |
|
4637 (initialize_command_input): Register generate_completion with the |
|
4638 command_editor class. |
|
4639 (completion_matches): Simplify using generate_completion. |
|
4640 |
|
4641 * pt-pr-code.cc (tree_print_code::visit_constant): For val, call |
|
4642 print_raw, not print. |
|
4643 |
|
4644 * oct-usr-fcn.h (octave_user_function::argn_sr): New data member. |
|
4645 (octave_user_function::install_automatic_vars): Rename from |
|
4646 install_nargin_and_nargout. |
|
4647 (octave_user_function::bind_automatic_vars): Rename from |
|
4648 bind_nargin_and_nargout. |
|
4649 * oct-usr-fcn.cc (octave_user_function::eval): Extract arg names |
|
4650 from args vector and bind them to argn. |
|
4651 * oct-obj.h (octave_value_list::names): New data member. |
|
4652 * oct-obj.cc (octave_value_list::stash_name_tags): New function. |
|
4653 (octave_value_list::name_tags): Ditto. |
|
4654 * pt-const.h, pt-const.cc (tree_constant::print_raw): New function. |
|
4655 * pt-misc.h, pt-misc.cc (tree_argument_list::get_arg_names): |
|
4656 New function. |
|
4657 * pt-mvr.h, pt-mvr.cc (class index_expression): Cache arg names. |
|
4658 * toplev.cc (feval): Now static. Handle arg names. |
|
4659 |
|
4660 * mkops: Cope with moving files defining operators to OPERATORS |
|
4661 subdirectory. |
|
4662 |
2937
|
4663 Tue May 6 00:48:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4664 |
|
4665 * DLD-FUNCTIONS/getgrent.cc: Use new octave_group class. |
|
4666 * DLD-FUNCTIONS/getpwent.cc: Use new octave_passwd class. |
|
4667 |
|
4668 * syscalls.cc: Simplify by using new functions defined in |
|
4669 liboctave/oct-syscalls.cc. |
|
4670 |
|
4671 * file-io.cc (Ftmpnam): Accept DIR and PREFIX args. |
|
4672 |
2929
|
4673 Mon May 5 00:54:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4674 |
2932
|
4675 * ov-str-mat.cc (octave_char_matrix_str::print_name_tag): Print |
|
4676 empty strings on one line. |
|
4677 |
2929
|
4678 * DLD-FUNCTIONS, OPERATORS, and TEMPLATE-INST: New subdirectories. |
|
4679 Move appropriate files to new directories. |
|
4680 * Makefile.in: Add DLD-FUNCTIONS, OPERATORS, and TEMPLATE-INST |
|
4681 directories to VPATH. Fix rules to work with new directory |
|
4682 structure. |
|
4683 |
2927
|
4684 Sun May 4 22:40:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4685 |
|
4686 * input.cc (initialize_command_input): Rename from |
|
4687 initialize_readline. |
|
4688 (gnu_readline, octave_gets, get_user_input): Simplify, return |
|
4689 string, not char *. |
|
4690 |
|
4691 * Many of other files: Miscellaneous changes to go along with the |
|
4692 changes described in the liboctave/ChangeLog for May 4. More code |
|
4693 moved from here to liboctave. |
|
4694 |
|
4695 Fri May 2 19:50:33 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4696 |
|
4697 * pathlen.h: Move to ../liboctave. |
|
4698 |
2921
|
4699 Thu May 1 21:50:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4700 |
|
4701 * variables.cc (get_struct_elts): New fucntion. |
|
4702 (looks_like_struct, generate_struct_completions): Move here from |
|
4703 input.cc, rewrite, and make work again. |
|
4704 |
2916
|
4705 Wed Apr 30 00:24:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4706 |
|
4707 * ov-base.h, ov-bool-mat.cc, ov-bool-mat.h, ov-bool.cc, ov-bool.h, |
|
4708 ov-ch-mat.cc, ov-ch-mat.h, ov-complex.cc, ov-complex.h, |
|
4709 ov-cx-mat.cc, ov-cx-mat.h, ov-file.cc, ov-file.h, ov-list.cc, |
|
4710 ov-range.cc, ov-range.h, ov-re-mat.cc, ov-re-mat.h, ov-scalar.cc, |
|
4711 ov-scalar.h, ov-str-mat.cc, ov-struct.cc, ov.h (scalar_value): |
|
4712 New function. Same as double_value, but name is consistent with |
|
4713 octave_scalar class. |
|
4714 |
|
4715 * op-fil-b.cc, op-fil-cm.cc, op-fil-lis.cc, op-fil-rec.cc, |
|
4716 op-fil-str.cc, op-fil-bm.cc, op-fil-cs.cc, op-fil-m.cc, |
|
4717 op-fil-s.cc: New files. |
|
4718 |
|
4719 * ops.h (ASSIGNOPDECL, DEFASSIGNOP, DEFASSIGNOP_FN, CONVDECL, |
|
4720 DEFCONV, BINOPDECL, DEFBINOPX, DEFBINOP, DEFBINOP_OP, DEFBINOP_FN, |
|
4721 BINOP_NONCONFORMANT): New macros. |
|
4722 * op-b-b.cc, op-bm-bm.cc, op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, |
|
4723 op-cm-s.cc, op-cs-cm.cc, op-cs-cs.cc, op-cs-m.cc, op-cs-s.cc, |
|
4724 op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, op-s-cm.cc, |
|
4725 op-s-cs.cc, op-s-m.cc, op-s-s.cc, op-str-str.cc: Use them. |
|
4726 |
|
4727 * Makefile.in (octave): Also depend on ops.o. |
|
4728 |
|
4729 * builtins.h: Delete. |
|
4730 * octave.cc: Add extern declaration here. |
|
4731 |
|
4732 * mappers.h: Delete. |
|
4733 * Makefile.in (INCLUDES): Delete from list. |
|
4734 * mkbuiltins: Add extern declaration in builtins.cc. |
|
4735 |
|
4736 * mkops: New file. |
|
4737 * ops.cc: Delete. |
|
4738 * Makefile.in (SOURCES): Delete from the list. |
|
4739 (ops.cc): New target. |
|
4740 (OP_SOURCES): New list. Move all op-*.cc files here from SOURCES. |
|
4741 Add $(OP_SOURCES) to SOURCES list. |
|
4742 |
|
4743 * variables.cc (symbols_of_variables): No longer static. |
|
4744 * ov.cc (symbols_of_ov): Rename from symbols_of_value. |
|
4745 |
|
4746 * ov-base.h: Delete declaration for install_base_type_conversions. |
|
4747 * op-b-b.h, op-bm-bm.h, op-cm-cm.h, op-cm-cs.h, op-cm-m.h, |
|
4748 op-cm-s.h, op-cs-cm.h, op-cs-cs.h, op-cs-m.h, op-cs-s.h, |
|
4749 op-m-cm.h, op-m-cs.h, op-m-m.h, op-m-s.h, op-s-cm.h, op-s-cs.h, |
|
4750 op-s-m.h, op-s-s.h, op-str-str.h: Delete. |
|
4751 * Makefile.in (INCLUDES): Delete them from the list. |
|
4752 |
|
4753 Tue Apr 29 22:27:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4754 |
|
4755 * variables.h, variables.cc (install_builtin_variables): Delete. |
|
4756 * mkbuiltins: Also generate install_builtin_variables function. |
|
4757 * Makefile.in: Fix rule to call mkbuiltins with correct args. |
|
4758 (clean): Also delete def-files and var-files. |
|
4759 * defaults.h.in, dirfns.h, error.h, file-io.h, help.h, input.h, |
|
4760 lex.h, load-save.h, oct-usr-fcn.h, pager.h, parse.h, pr-output.cc, |
|
4761 pr-output.h, pt-mat.h, pt-misc.h, pt-plot.h, toplev.h: |
|
4762 Delete declarations of symbols_of_* functions. |
|
4763 * data.h, syscalls.h: Delete. |
|
4764 |
|
4765 * pr-output.cc (octave_print_internal): Leave printing of final |
|
4766 new line up to the caller. |
|
4767 |
|
4768 * ov.h, ov.cc (reset_indent_level, increment_indent_level, |
|
4769 decrement_indent_level, newline, indent, reset, |
|
4770 curr_print_indent_level, beginning_of_line): |
|
4771 New functions and static data to manage indent level for printing. |
|
4772 (print_as_scalar): Delete. |
|
4773 (print, print_with_name): Always require stream arg. |
|
4774 Change all callers. |
|
4775 |
|
4776 * oct-stream.h (octave_stream::input_stream): Make publicly available. |
|
4777 (octave_stream::output_stream): Likewise. |
|
4778 |
|
4779 * ov-base.h, ov-base.cc, ov.h, ov.cc, ov-file.h ov-base.h |
|
4780 (is_file, stream_value, stream_number): New functions. |
|
4781 * ov-file.h, ov-file.cc: New files for value class to manage files. |
|
4782 * file-io.cc (symbols_of_file_io): Define stdin, stdout, and |
|
4783 stderr as octve_file objects, not just integers. |
|
4784 (Ffopen, Fpopen): Return octave_file objects, not integer file ids. |
|
4785 * syscalls.cc (Fpipe): Likewise. |
|
4786 * oct-stream.h, oct-stream.cc (octave_stream_list::insert): |
|
4787 Return octave_file object, not integer file id. |
|
4788 |
|
4789 * ov-base.cc, ov-bool-mat.cc, ov-bool.cc, ov-ch-mat.cc, |
|
4790 ov-complex.cc, ov-cx-mat.cc, ov-file.cc, ov-list.cc, ov-range.cc, |
|
4791 ov-re-mat.cc, ov-scalar.cc, ov-str-mat.cc, ov-struct.cc, ov.cc |
|
4792 (print_name_tag, print_raw): New functions. |
|
4793 |
|
4794 * help.cc (Ftype): Don't cast symbol definition to tree_constant *. |
|
4795 |
|
4796 * variables.cc (link_to_global_variable): Don't try to define |
|
4797 symbol with tree_constant objects. |
|
4798 (bind_ans): Call symbol_record::define directly and then |
|
4799 octave_value::print_with_name instead of creating a temporary |
|
4800 assignment expression. |
|
4801 |
|
4802 * pt-pr-code.cc (tree_print_code::indent): Don't use ostream::form. |
|
4803 |
|
4804 * pt-exp-base.h, pt-exp.h, pt-exp.cc (oper): Return string, not |
|
4805 char *. Change all where necessary. |
|
4806 |
|
4807 Mon Apr 28 16:33:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4808 |
|
4809 * ov.h (octave_value binary_op enum): Add lshift and rshift. |
|
4810 (octave_value assign_op enum): Add lshift_eq and rshift_eq. |
|
4811 * ov.cc (assign_op_as_string, binary_op_as_string): Include them. |
|
4812 * parse.y (LSHIFT_EQ RSHIFT_EQ LSHIFT RSHIFT): New tokens. |
|
4813 Add them to the precedence list. |
|
4814 (simple_expr): Add new operators. |
|
4815 (make_assign_op, make_binary_op): Handle new operators. |
|
4816 * lex.l: Recognize new operators. |
|
4817 |
|
4818 * lex.l: Recognize them. |
|
4819 |
|
4820 Sun Apr 27 20:17:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2898
|
4821 |
|
4822 * pt-misc.cc (Vsilent_functions, silent_functions): |
|
4823 Move here from oct-usr-fcn.cc. |
|
4824 (symbols_of_pt_misc): New function. DEFVAR silent_functions. |
|
4825 (tree_statement_list::eval): Handle Vsilent_functions here instead |
|
4826 of in octave_user_function::eval. |
|
4827 (tree_statement::eval): New functions. |
|
4828 (tree_statement_list::eval): Use them. |
|
4829 Change print flag arg to silent flag. Change all callers. |
|
4830 * variables.cc (install_builtin_variables): Call symbols_of_pt_misc. |
|
4831 * toplev.cc (parse_and_execute): Delete print arg. Change all callers. |
|
4832 (eval_string): Change print flag arg to silent flag. Change callers. |
|
4833 |
|
4834 * dynamic-ld.h, dynamic-ld.cc: Rewrite to use singleton class. |
|
4835 * variables.cc (load_fcn_from_file): Use new dynamic linking class. |
|
4836 |
2893
|
4837 * dynamic-ld.h (Octave_builtin_fcn): Delete typedef. |
|
4838 * dynamic-ld.cc: Simplify via the magic of function pointers. |
|
4839 |
|
4840 * pt-fcn.h pt-fcn.cc pt-fvc.h pt-fvc.cc pt-fvc-base.h pt-fvc-base.cc: |
|
4841 Delete obsolete files. |
|
4842 * Makefile.in: Remove them from various lists. |
|
4843 |
|
4844 * pt-walk.h (visit_octave_user_function): Rename from visit_function. |
|
4845 (visit_builtin): Delete. |
|
4846 * pt-pr-code.h, pt-pr-code.cc (visit_octave_user_function): |
|
4847 Rename from visit_function. |
|
4848 (visit_octave_user_function_header): Rename from visit_function_header. |
|
4849 (visit_octave_user_function_trailer): Rename from |
|
4850 visit_function_trailer. |
|
4851 |
|
4852 * ov.h, ov.cc (eval): New functions. |
|
4853 |
|
4854 * dassl.cc, fsolve.cc, lsode.cc, npsol.cc, qpsol.cc, quad.cc: |
|
4855 Declare user-defined functions as a pointer to an octave_symbol |
|
4856 object, not as a pointer to a tree_fvc object. |
|
4857 |
|
4858 * symtab.h, symtab.cc: Use new octave_symbol class. |
|
4859 * variables.cc (install_builtin_function, install_builtin_mapper, |
|
4860 install_builtin_variable, install_builtin_variable_as_function): |
|
4861 Make work with new octave_symbol class and symbol table structure. |
|
4862 |
|
4863 * variables.h: Delete declaration of builtin_function struct. |
|
4864 * defun-dld.h (DEFUN_DLD): Simplify. |
|
4865 * defun-int.h (DEFINE_FUN_STRUCT): Delete. |
|
4866 (DEFINE_FUN_STRUCT_FUN): Rewrite to not use static builtin_function |
|
4867 object. |
|
4868 |
|
4869 * mappers.h: Delete declaration of builtin_mapper_function struct. |
|
4870 * mappers.cc: Declare wrapper functions static. |
|
4871 * defun.h (DEFUN_MAPPER): Simplify. |
|
4872 |
|
4873 * oct-sym.h: New file. Declare base class for Octave symbols. |
|
4874 * ov.h: Derive octave_value class from octave_symbol. |
|
4875 * oct-fcn.h, oct-fcn.cc: New files to declare and define |
|
4876 base class for functions. |
|
4877 * oct-builtin.h, oct-builtin.cc: New files to declare and define |
|
4878 class for built-in functions. |
|
4879 * oct-mapper.h, oct-mapper.cc: New files to declare and define |
|
4880 class for mapper functions. |
|
4881 * oct-usr-fcn.h, oct-usr-fcn.cc: New files to declare and define |
|
4882 base class for user-defined functions. |
|
4883 * Makefile.in: Add new files to appropriate lists. |
|
4884 |
|
4885 * pt-id.h, pt-id.cc: Move tree_identifier class here. |
|
4886 * pt-fvc.h, pt-fvc.cc: From here. |
|
4887 |
|
4888 * pt-indir.h, pt-indir.cc: Move tree_indirect_ref class here. |
|
4889 * pt-fvc.h, pt-fvc.cc: From here. |
|
4890 |
2881
|
4891 Thu Apr 24 03:58:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4892 |
2884
|
4893 * parse.y (magic_colon): New nonterminal. |
|
4894 (arg_list): Simplify using magic_colon. |
|
4895 |
2883
|
4896 * lex.h (class lexical_feedback): Delete maybe_screwed field. |
|
4897 New field, parsed_function name. |
|
4898 * lex.l (lexical_feedback::init): Initialize it. |
|
4899 (handle_identifier): Don't return SCREW. Handle switching |
|
4900 symbol table context properly for `function f ()' vs `function x ='. |
|
4901 (is_keyword): If looking at function keyword, don't set current |
|
4902 symbol table to point to the local table. |
|
4903 * parse.y (recover_from_parsing_function): New function. |
|
4904 (finish_function_def): Use identifier, not token. |
|
4905 Simplify parsing of functions. |
|
4906 |
|
4907 * ov-list.h, ov-list.cc: New files to implement generic list type. |
|
4908 * ov.cc (list_indent): New global variable. |
|
4909 (increment_list_indent, decrement_list_indent): New functions. |
|
4910 (install_types): Register octave_list type. |
|
4911 * ov-base.cc (octave_base_value::is_list): New function. |
|
4912 |
2881
|
4913 * oct-sym.h: New file. |
|
4914 * ov.h (class octave_value): Derive from octave_symbol class. |
|
4915 |
|
4916 * pt-const.h, pt-const.cc: Delete lots of old useless cruft. |
|
4917 |
|
4918 * pt-exp.h, pt-exp.cc (tree_binary_expression): Use type codes for |
|
4919 operators from octave_value instead of repeating them here. |
|
4920 |
|
4921 * pt-fvc-base.cc (tree_fvc::increment, tree_fvc::decrement): Delete. |
|
4922 * pt-fvc.cc (tree_identifier::increment): Get reference to value |
|
4923 and increment that instead of using virutal tree_fvc::increment |
|
4924 function. |
|
4925 |
|
4926 * lex.l: Handle +=, -=, *=, /=, .+=, .-=, .*=, ./=, &=, and |= ops. |
2883
|
4927 * parse.y (make_assign_op): Rename from make_simple_assignment and |
|
4928 handle different op types. |
|
4929 (simple_expr1): Do new ops. |
2881
|
4930 * pt-misc.cc (initialize_undefined_elements): Pass op to assign. |
|
4931 * pt-cmd.cc (tree_for_command::do_for_command_once): Likewise. |
|
4932 * pt-fvc.cc (tree_identifier::assign): Pass op. |
|
4933 * pt-exp.cc (tree_simple_assignment_expression): Handle new ops. |
|
4934 * variables.cc (octave_variable_reference::assign): Likewise. |
|
4935 * ov.h (class octave_value): Likewise. |
|
4936 * ov.cc (octave_value::assign_op_as_string): New function. |
|
4937 (octave_value::assign, octave_value::convert_and_assign, |
|
4938 octave_value::try_assignment_with_conversion, |
|
4939 octave_value::try_assignment): Pass op. |
|
4940 * pt-pr-code.cc (tree_print_code::visit_simple_assignment_expression): |
|
4941 Use expr.oper() instead of printing "=". |
|
4942 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-m-m.cc, |
|
4943 op-m-s.cc, op-str-str.cc: Pass op to INSTALL_ASSIGNOP. |
|
4944 * ops.h (INSTALL_ASSIGNOP): Pass op. |
2883
|
4945 * ov-typeinfo.cc (do_register_assign_op): Include op type in table. |
|
4946 (do_lookup_assign_op): Use op in lookup. |
2881
|
4947 |
|
4948 * ops.h (INSTALL_UNOP): Delete. |
|
4949 |
|
4950 * input.cc (generate_struct_completions, looks_like_struct): |
|
4951 Disable, since they don't work now anyway. |
|
4952 |
|
4953 * help.cc (Ftype): Work with octave_value instead of a pointer to |
|
4954 tree_constant. |
|
4955 * symtab.cc (symbol_record_info::symbol_record_info): Likewise. |
|
4956 |
|
4957 |
|
4958 Tue Apr 22 22:59:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4959 |
|
4960 * file-io.cc (Ffprintf): If first arg is a string, assume FID = 1. |
|
4961 |
|
4962 Fri Apr 18 20:16:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4963 |
|
4964 * oct-obj.h, oct-obj.cc: Implement octave_value_list with |
|
4965 Array<octave_value> as a data member, not as a class derived from |
|
4966 Array<octave_value>. |
|
4967 (octave_value_list::length, octave_value_list::resize, |
|
4968 octave_value_list::prepend, octave_value_list::append, |
|
4969 octave_value_list::reverse): New functions. |
|
4970 |
|
4971 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
4972 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
4973 op-s-cm.cc, op-s-m.cc: Use new bool ops from liboctave instead of |
|
4974 the macros defined in ops.h. |
|
4975 |
2865
|
4976 Thu Apr 17 13:12:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4977 |
|
4978 * parse.y (ABORT_PARSE): Handle forced_interactive the same as |
|
4979 interactive. |
|
4980 |
|
4981 Mon Apr 14 01:46:50 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4982 |
|
4983 * input.cc (octave_read): Don't forget to free input buffer if it |
|
4984 exists and has zero length. |
|
4985 (gnu_readline): Free buf if fgets returns 0. |
|
4986 |
|
4987 Wed Apr 9 00:03:57 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4988 |
|
4989 * time.cc (mk_tm_map): Only set zone field if HAVE_TM_ZONE or |
|
4990 HAVE_TZNAME are defined. |
|
4991 |
|
4992 Tue Apr 8 12:39:21 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4993 |
|
4994 * time.cc (extract_tm): Set tm.tm_zone if HAVE_TM_ZONE is defined, |
|
4995 not if HAVE_TMZONE is defined. |
|
4996 |
|
4997 * Makefile.in (%.oct : %.o): Use $(SH_LD), not $(CXX). |
|
4998 |
|
4999 Wed Apr 2 21:32:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5000 |
|
5001 * dynamic-ld.cc, dynamic-ld.h (init_dynamic_linker): Delete |
|
5002 function and declaration. |
|
5003 * octave.cc (main): Don't call it. |
|
5004 |
2856
|
5005 Mon Mar 31 00:37:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5006 |
2859
|
5007 * pt-base-exp.h (tree_expression::eval): Give arg a default value. |
|
5008 * pt-const.h (tree_constant::eval): Likewise. |
|
5009 * pt-exp.h (tree_prefix_expression::eval, tree_colon_expression::eval, |
|
5010 tree_postfix_expression::eval, tree_unary_expression::eval, |
|
5011 tree_binary_expression::eval, tree_boolean_expression::eval, |
|
5012 tree_simple_assignment_expression::eval): Likewise. |
|
5013 * pt-fcn.h (tree_function::eval): Likewise. |
|
5014 * pt-fvc.h (tree_identifier::eval, tree_indirect_ref::eval, |
|
5015 tree_builtin::eval): Likewise. |
|
5016 * pt-mat.h (tree_matrix::eval): Likewise. |
|
5017 * pt-misc.h (tree_statement_list::eval): Likewise. |
|
5018 * pt-mvr-base.h (tree_multi_val_ret::eval): Likewise. |
|
5019 * pt-mvr.h (tree_oct_obj::eval, tree_index_expression::eval, |
|
5020 tree_multi_assignment_expression::eval): Likewise. |
|
5021 * dassl.cc, fsolve.cc, load-save.cc, lsode.cc, npsol.cc, parse.y, |
|
5022 pt-cmd.cc, pt-exp-base.cc, pt-exp.cc, pt-fvc.cc, pt-mat.cc, |
|
5023 pt-misc.cc, pt-mvr.cc, pt-plot.cc, quad.cc, toplev.cc, variables.cc: |
|
5024 Change callers of eval() to use bool instead of int and to make |
|
5025 use of default argument value. |
|
5026 |
|
5027 * toplev.h, toplev.cc (parse_and_execute, eval_string): Flag args |
|
5028 are now bool instead of int. |
|
5029 |
2856
|
5030 * symtab.h, symtab.cc: Use bool instead of int in more places. |
|
5031 * variables.h, variables.cc: Likewise. |
2857
|
5032 * lex.h, lex.l: Likewise. |
|
5033 * parse.y: Likewise. |
2856
|
5034 * help.cc, input.cc, lex.l, load-save.cc, parse.y, pt-fcn.cc: |
|
5035 Change callers of symbol_table::lookup to use bool instead of int, |
|
5036 and to make use of default arguments. |
|
5037 |
2850
|
5038 Fri Mar 28 15:33:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5039 |
2852
|
5040 * parse.y (Vwarn_comma_in_declaration): Delete. |
|
5041 (symbols_of_parse): Delete DEFVAR for warn_comma_in_declaration. |
|
5042 (decl1): Don't allow commas in declarations. |
|
5043 |
2850
|
5044 * lsode.cc (struct LSODE_OPTIONS): Handle integer options. |
|
5045 (print_lsode_option_list, set_lsode_option, show_lsode_option): Ditto. |
|
5046 (lsode_option_table): Add element for step limit. |
|
5047 (lsode_user_jacobian): New function. |
|
5048 (Flsode): Allow function name arg to be a 2-element string array |
|
5049 specifying the function and jacobian function. |
|
5050 |
|
5051 * variables.cc (get_global_value, set_global_value): New functions. |
|
5052 |
2846
|
5053 Wed Mar 26 17:08:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5054 |
|
5055 Implement static variable declaration: |
|
5056 |
|
5057 * lex.l (is_keyword): Handle static. |
|
5058 * octave.gperf: Likewise. |
|
5059 * parse.y (Vwarn_comma_in_declaration): Rename from |
|
5060 Vwarn_comma_in_global_decl. |
|
5061 Handle new static command. |
|
5062 * pt-cmd.h, pt-cmd.cc (class tree_decl_command): New base class |
|
5063 for static and global declaration commands. |
|
5064 (class tree_global_command): Derive from tree_decl_command. |
|
5065 (class tree_static_command): New class, derived from tree_decl_command. |
|
5066 * pt-fvc.cc, pt-fvc.h (tree_identifier::mark_as_static): New function. |
|
5067 * pt-misc.h, pt-misc.h (class tree_decl_elt): Rename from tree_global. |
|
5068 (class tree_decl_init_list): Rename from tree_global_init_list. |
|
5069 * pt-pr-code.cc, pt-pr-code.h (tree_print_code::visit_decl_command): |
|
5070 Rename from visit_global_command. |
|
5071 (tree_print_code::visit_decl_elt): Rename from visit_global. |
|
5072 (tree_print_code::visit_decl_init_list): Rename from |
|
5073 visit_global_init_list. |
|
5074 * pt-walk.h (tree_walker::visit_decl_command): Rename from |
|
5075 visit_global_command. |
|
5076 (tree_walker::visit_decl_elt): Rename from visit_tree_global. |
|
5077 (tree_walker::visit_decl_init_list): Rename from |
|
5078 visit_global_init_list. |
|
5079 * variables.cc (link_to_global_variable): Trying to make a static |
|
5080 variable global is an error. |
|
5081 * SLList-misc.cc: Instantiate lists of pointers to tree_decl_elt |
|
5082 objects, not tree_global objects. |
|
5083 * symtab.h, symtab.cc (symbol_record::tagged_static): New field. |
|
5084 (symbol_record::mark_as_static, symbol_record::is_static): |
|
5085 New functions. |
|
5086 * symtab.cc (symbol_record::init_state): Initialize tagged_static. |
|
5087 (symbol_record::clear): Don't clear static variables. |
|
5088 * symtab.cc (push_context): Don't do anything for static variables. |
|
5089 |
2825
|
5090 Tue Mar 25 17:17:17 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5091 |
2881
|
5092 * ov-bool-mat.cc, ov-bool-mat.h, ov-bool.cc, ov-bool.h: New files. |
2832
|
5093 |
2831
|
5094 * defaults.cc (symbols_of_defaults): DEFCONST OCTAVE_HOME. |
|
5095 |
|
5096 * toplev.cc (octave_config_info): Delete use of CXXLIBS. |
|
5097 * oct-conf.h.in: Ditto. |
|
5098 |
2830
|
5099 * octave.cc (maximum_braindamage): Don't bind prefer_zero_one_indexing. |
|
5100 * ov.h: Don't declare Vprefer_zero_one_indexing. |
|
5101 * ov.cc: Don't define Vprefer_zero_one_indexing. |
|
5102 (prefer_zero_one_indexing): Delete. |
|
5103 (symbols_of_value): Delete DEFVAR for prefer_zero_one_indexing. |
|
5104 |
2825
|
5105 * ov.h, ov.cc, ov-base.h, ov-base.cc: Add constructors and |
|
5106 extractors for bool and boolMatrix types. |
|
5107 |
|
5108 * ov.cc (install_types): Register octave_bool and |
|
5109 octave_bool_matrix types. |
|
5110 |
|
5111 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
5112 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
5113 op-s-cm.cc, op-s-m.cc, op-s-s.cc, ov-re-mat.cc: |
|
5114 Return boolMatrix instead of Matrix object. |
|
5115 * ops.h (BOOL_OP3, MX_MX_BOOL_OP): Likewise. |
|
5116 |
|
5117 * op-b-b.h, op-b-b.cc, op-bm-bm.h, op-bm-bm.cc: New files. |
|
5118 * Makefile.in: Add them to the lists. |
|
5119 * ops.cc: Include header files here. |
|
5120 (install_ops): Call install_b_b_ops() and install_bm_bm_ops() here. |
|
5121 |
|
5122 * variables.cc (symbols_of_variables): Don't rely on default |
|
5123 conversion from int to double for value returned from |
|
5124 default_history_size(). |
|
5125 |
|
5126 * pr-output.cc: Include cstdio. |
|
5127 |
|
5128 * parse.y (param_list_end): Fix typo in last change. |
|
5129 |
|
5130 * quad.cc (quad): Cast integer return values to double. |
|
5131 * npsol.cc (show_npsol_option): Likewise. |
|
5132 * qpsol.cc (show_qpsol_option): Likewise. |
|
5133 * file-io.cc (Fsprintf, Ffwrite): Likewise. |
|
5134 |
|
5135 Mon Mar 24 13:11:47 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5136 |
|
5137 * ov-typeinfo.cc (typeinfo): If invoked with an argument, return |
|
5138 the type of the argument as a string. Fix doc string. |
|
5139 |
2821
|
5140 Thu Mar 20 14:47:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5141 |
|
5142 * mk-oct-links (links_dir): Don't use -h option for grep. It's |
|
5143 not needed since we are working on one file at a time anyway. |
|
5144 |
2819
|
5145 Mon Mar 17 10:53:29 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5146 |
|
5147 * lex.l (handle_identifier): When handling indirect_ref, set |
|
5148 lexer_flags.quote_is_transpose to 1 so that a.b' to work as |
|
5149 expected. |
|
5150 |
|
5151 * parse.y (param_list_beg, param_list_end): New nonterminals. |
|
5152 (param_list, param_list1): Use them. |
|
5153 |
2811
|
5154 Wed Mar 12 16:57:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5155 |
|
5156 * Makefile.in (install-strip): New target. |
|
5157 |
2806
|
5158 Mon Mar 10 22:38:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5159 |
|
5160 * Makefile.in (clean): Delete .oct files too. |
|
5161 |
|
5162 * toplev.cc (Vdefault_eval_print_flag): New static variable. |
|
5163 (eval_string): New arg, print. |
|
5164 (Feval): Pass Vdefault_eval_print_flag to eval_string. |
|
5165 (default_eval_print_flag): New function. |
|
5166 (symbols_of_toplev): New function. |
|
5167 |
|
5168 * variables.cc (install_builtin_variables): Call it. |
|
5169 |
|
5170 * pt-exp.h, pt-exp.cc (class tree_boolean_expression): Rename enum |
|
5171 fields `and' and `or' to `bool_and' and `bool_or'. |
|
5172 (tree_unary_expression): Rename enum field `not' to `unot'. |
|
5173 (class tree_binary_expression): Rename enum fields `and' and `or' |
|
5174 to `el_and' and `el_or'. |
|
5175 * parse.y: Change all uses. |
|
5176 |
|
5177 * time.cc (extract_tm): Truncate field values instead of rounding. |
|
5178 (gmtime, localtime): Likewise, for timeval. |
|
5179 |
|
5180 * ov.h (class octave_value): Delete unused variable freeptr. |
|
5181 |
|
5182 * mappers.cc: Delete functions that are already in |
|
5183 liboctave/lo-mappers.cc. |
|
5184 |
|
5185 * oct-strstrm.cc (octave_base_strstream::tell): Use const_cast, |
|
5186 not static_cast. |
|
5187 |
|
5188 * help.cc (help_from_list): Add missing const qualifiers. |
|
5189 * help.h (struct help_list): Likewise. |
|
5190 * lex.l (match_any, plot_style_token): Likewise. |
|
5191 * load-save.cc (extract_keyword, ascii_save_type): Likewise. |
|
5192 * oct-hist.cc (mk_tmp_hist_file): Likewise. |
|
5193 * octave.cc (execute_startup_files): Likewise. |
|
5194 * octave.gperf (struct octave_kw): Likewise. |
|
5195 * pr-output.cc (pr_any_float): Likewise. |
|
5196 * pt-mvr.cc (tree_index_expression::eval_error): Likewise. |
|
5197 * pt-exp-base.h, pt-exp.h, pt-exp.cc: Likewise. |
|
5198 * parse.y: Likewise. |
|
5199 |
2800
|
5200 Sun Mar 9 03:46:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5201 |
2806
|
5202 * pt-exp-base.h (tree_expression): Delete extra comma at end of list. |
|
5203 |
|
5204 * dirfns.cc error.cc file-io.cc fsolve.cc input.cc load-save.cc |
|
5205 npsol.cc pt-fcn.cc qpsol.cc quad.cc syscalls.cc toplev.cc |
|
5206 variables.cc: Eliminate embedded newlines in string constants. |
|
5207 |
|
5208 * Map.cc, data.cc, dirfns.cc, dynamic-ld.cc, file-io.cc, |
|
5209 fsolve.cc, getgrent.cc, getpwent.cc, getrusage.cc, help.cc, |
|
5210 input.cc, load-save.cc, mappers.cc, minmax.cc, npsol.cc, |
|
5211 oct-fstrm.cc, oct-procbuf.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
5212 oct-stream.cc, oct-stream.h, oct-strstrm.cc, octave.cc, |
|
5213 ov-base.h, ov-range.cc, ov-typeinfo.cc, ov.cc, pr-output.cc, |
|
5214 pt-cmd.cc, pt-exp.cc, pt-fcn.cc, pt-fvc.cc, pt-mat.cc, |
|
5215 pt-misc.cc, pt-plot.cc, qpsol.cc, quad.cc, sort.cc, strfns.cc, |
|
5216 symtab.cc, syscalls.cc, sysdep.cc, time.cc, toplev.cc, |
|
5217 unwind-prot.cc, unwind-prot.h, variables.cc, xpow.cc: |
|
5218 Use `static_cast<T> (val)' instead of old C-style `(T) val' casts. |
2800
|
5219 |
2799
|
5220 Sat Mar 8 02:35:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5221 |
|
5222 * load-save.cc (save_ascii_data, save_three_d): Where appropriate, |
|
5223 use bool instead of int. |
|
5224 (save_binary_data, save_mat_binary_data, save_ascii_data): |
|
5225 Print warning instead of error for wrong type arg. |
|
5226 |
|
5227 * gripes.cc (gripe_wrong_type_arg): New arg, is_error. |
|
5228 |
|
5229 * pt-plot.cc (save_in_tmp_file): Call save_ascii_data with bool |
|
5230 arg, not int. |
|
5231 |
2797
|
5232 Fri Mar 7 00:56:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5233 |
|
5234 * dassl.cc (show_dassl_option): For values that are determined |
|
5235 automatically, return a string instead of a magic value (-1.0). |
|
5236 * fsolve.cc (show_fsolve_option): Likewise. |
|
5237 * lsode.cc (show_lsode_option): Likewise. |
|
5238 * npsol.cc (show_npsol_option): Likewise. |
|
5239 * qpsol.cc (show_qpsol_option): Likewise. |
|
5240 |
|
5241 * variables.cc (extract_function): New function. |
|
5242 * dassl.cc (Fdassl): Use it instead of is_valid_function. |
|
5243 * fsolve.cc (Ffsolve): Likewise. |
|
5244 * npsol.cc (Fnpsol): Likewise. |
|
5245 * qpsol.cc (Fqpsol): Likewise. |
|
5246 * quad.cc (Fquad): Likewise. |
|
5247 |
2795
|
5248 Thu Mar 6 20:07:24 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5249 |
|
5250 * sighandlers.cc (my_friendly_exit, octave_new_handler, |
|
5251 sigfpe_handler, sigpipe_handler): Don't all error() or warning(). |
|
5252 |
|
5253 * pager.cc (pager_death_handler): Don't try to clear pager, just |
|
5254 print message to cerr. |
|
5255 (do_sync): If the status of the pager is bad or it looks like it |
|
5256 is dead, restore the interrupt handler. |
|
5257 |
|
5258 * load-save.cc (extract_keyword (istream&, char*, int&)): |
|
5259 Move declaration of buf inside loop, to avoid deleting its guts |
|
5260 and then trying to reuse it. |
|
5261 (extract_keyword (istream&, char*)): Likewise. |
|
5262 |
2790
|
5263 Tue Mar 4 20:36:53 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5264 |
2791
|
5265 * pt-fcn.cc (tree_function::eval): Protect function from being |
|
5266 redefined while it is being evaluated. |
|
5267 (unprotect_function): New function, for use with unwind_protect stuff. |
|
5268 * pt-fcn.h (tree_function::symtab_entry): New data member. |
|
5269 (tree_function::init): Initialize it to 0. |
|
5270 (tree_function::stash_symtab_ptr): New function. |
|
5271 * parse.y (frob_function_def): Stash pointer to function's |
|
5272 symbol_record in the function definition. |
|
5273 |
|
5274 * symtab.cc (symbol_record::read_only_error): New argument, |
|
5275 action. Change all callers. |
|
5276 (symbol_record::rename): Don't allow read-only symbols to be renamed. |
|
5277 |
2790
|
5278 * variables.cc (Fexist): Don't let files with `.' in their names |
|
5279 confuse us. |
|
5280 |
|
5281 * symtab.cc (valid_identifier (const string&)): New function. |
|
5282 |
2779
|
5283 Sat Mar 1 15:23:14 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2775
|
5284 |
|
5285 * Version 2.0.5 released. |
|
5286 |
2779
|
5287 Sat Mar 1 01:34:08 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5288 |
|
5289 * Makefile.in (stamp-oct-links): New target. Make links in build |
|
5290 directory too, so that the tests will work. |
|
5291 |
2777
|
5292 * quad.cc: If quad is defined, undefine it. |
|
5293 |
2775
|
5294 * octave.cc: If WITH_KPATHSEARCH is defined, don't define |
|
5295 program_invocation_name or program_invocation_short_name. |
2774
|
5296 |
|
5297 * strftime.c: Update to current version from FSF. |
|
5298 * time.cc (Fstrftime): Call strftime with buf = 0 to get buffer |
|
5299 size, then call again to actually format the time struct. |
|
5300 |
2762
|
5301 Fri Feb 28 01:49:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5302 |
2764
|
5303 Implement switch statement: |
|
5304 |
|
5305 * parse.y (Vwarn_variable_switch_label): New static variable. |
|
5306 (warn_variable_switch_label): New function. |
|
5307 (symbols_of_parse): Provide warn_variable_switch_label as Octave |
|
5308 variable here. |
|
5309 (make_switch_case, finish_switch_command): New functions. |
|
5310 (maybe_warn_variable_switch_label): New function. |
|
5311 (end_error): Handle endswitch. |
|
5312 (switch_command, case_list, case_list1, switch_case, default_case): |
|
5313 New nonterminals. |
|
5314 (command): Add switch_command here. |
|
5315 * lex.l (is_keyword): Handle switch, case, otherwise, and endswitch. |
|
5316 * octave_gperf: Recognize switch, case, otherwise, and endswitch. |
|
5317 * token.h (end_tok_type): New item, switch_end. |
|
5318 * pt-cmd.cc (tree_switch_command): New class. |
|
5319 * pt-misc.cc (tree_switch_case, tree_switch_case_list): New classes. |
|
5320 * pt-pr-code.cc (tree_print_code::visit_switch_case, |
|
5321 tree_print_code::visit_switch_case_list, |
|
5322 tree_print_code::visit_switch_command): New functions. |
|
5323 * pt-walk.h (tree_walker::visit_switch_case, |
|
5324 tree_walker::visit_switch_case_list, |
|
5325 tree_walker::visit_switch_command): New pure virtual declarations. |
|
5326 Implement new switch statement. |
|
5327 * SLList-misc.cc: Instantiate lists of pointers to |
|
5328 tree_switch_case objects too. |
|
5329 |
|
5330 * lex.h, lex.l, parse.y: Delete all references to lexer_flags::iffing. |
|
5331 |
2762
|
5332 * syswait.h: Include sys/wait.h on NeXT systems, but don't use the |
|
5333 WIFEXTED, WEXITSTATUS, and WIFSIGNALLED macros defined there. |
|
5334 Also define waitpid in terms of wait4. From Rex A. Dieter |
|
5335 <rdieter@math.unl.edu>. |
|
5336 |
2759
|
5337 Wed Feb 26 16:43:31 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5338 |
|
5339 * oct-stream.cc (octave_base_stream::do_scanf): Don't report an |
|
5340 error if a conversion fails or we reach EOF. |
|
5341 |
2745
|
5342 Tue Feb 25 22:21:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5343 |
|
5344 * time.cc (strftime): increase initial buffer size. |
|
5345 |
|
5346 Mon Feb 24 17:49:21 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5347 |
|
5348 * pt-fvc.cc (tree_builtin::eval): Enable checking for max number |
|
5349 of arguments. |
|
5350 |
|
5351 * error.cc (handle_message): Don't fail if args is empty. |
|
5352 |
|
5353 Sun Feb 23 22:42:52 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5354 |
|
5355 * lex.h (lexical_feedback::looking_at_return_list): New field. |
|
5356 (lexical_feedback::looking_at_parameter_list): Ditto. |
|
5357 * lex.l (lexical_feedback::init): Initialize them. |
|
5358 (handle_identifier): Use them. |
|
5359 * parse.y: Likewise. |
|
5360 |
2712
|
5361 Fri Feb 21 15:35:18 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5362 |
2716
|
5363 * lex.l: Require flex 2.5 or later (we really want 2.5.4 or later, |
|
5364 but there seems to be no good way to check the patchlevel). |
|
5365 |
2712
|
5366 * oct-stream.cc (octave_base_stream::oscanf): Instead of returning |
|
5367 an error, just quit processing after a conversion fails. |
|
5368 |
2709
|
5369 Thu Feb 20 02:58:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2702
|
5370 |
|
5371 * Version 2.0.4 released. |
|
5372 |
2706
|
5373 Wed Feb 19 10:30:14 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5374 |
2705
|
5375 * sighandlers.cc (octave_ignore_interrupts, |
|
5376 octave_catch_interrupts, octave_set_interrupt_handler): |
|
5377 Return old value, not pointer to static data. Fix all uses. |
|
5378 |
|
5379 * sighandlers.h (octave_interrupt_handler): Move declaration here. |
|
5380 * sighandlers.cc: From here. |
|
5381 |
|
5382 * toplev.cc: Undo previous change. |
|
5383 |
2702
|
5384 * lex.l (handle_identifier): Allow commands like ls, save, etc. to |
|
5385 also be used as simple variable names. Also make it possible to |
|
5386 use the normal function call syntax to invoke them. |
|
5387 |
2693
|
5388 Tue Feb 18 09:22:04 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2689
|
5389 |
2702
|
5390 * Makefile.in (%.oct:%.o, %.oct:pic/%.o): Use $(SH_LDFLAGS) here. |
|
5391 |
2690
|
5392 * Version 2.0.3 released. |
|
5393 |
2693
|
5394 Tue Feb 18 00:27:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5395 |
|
5396 * toplev.cc (run_command_and_return_output): |
|
5397 Block SIGCHLD while running subprocess. |
|
5398 (cleanup_iprocstream): Unblock it here. |
|
5399 |
|
5400 * sighandlers.h (BLOCK_SIGNAL, BLOCK_CHILD, UNBLOCK_CHILD): Move here. |
|
5401 * sighandlers.cc: From here. |
|
5402 |
2692
|
5403 * toplev.cc (system): Shift then mask exit status. |
|
5404 |
|
5405 * help.cc (try_info): Shift first, then mask exit status. |
|
5406 |
2689
|
5407 * toplev.cc (octave_config_info): Handle option argument. |
|
5408 |
2686
|
5409 Fri Feb 14 16:23:30 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5410 |
2687
|
5411 * oct-stream.cc (octave_base_stream::do_scanf): Don't forget to |
|
5412 check to see if the result matrix needs resizing! |
|
5413 |
2686
|
5414 * Makefile.in (bin-dist): Don't write empty strings to LIBRARIES. |
|
5415 |
2669
|
5416 Thu Feb 13 03:02:08 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5417 |
2676
|
5418 * Makefile.in (stamp-prereq): Depend on stamp-picdir. |
|
5419 (all): Don't depend on stamp-prereq or stamp-picdir. |
|
5420 (stamp-tinst, stamp-interp, libtinst.a, liboctinterp.a): |
|
5421 Do depend on stamp-prereq. |
|
5422 (stamp-picdir): Silence noise about making pic. |
|
5423 (stamp-tinst, stamp-interp): Use $(SH_LD) $(SH_LDFLAGS) instead of |
|
5424 $(CXX) -shared. |
|
5425 |
2675
|
5426 * oct-conf.h.in: Reinstate RLD_FLAG. |
|
5427 * toplev.cc (octave_config_info): Likewise. |
|
5428 |
2672
|
5429 * data.cc (map_d_m, map_m_d, map_m_m): Rename from map. |
|
5430 (Fatan2): Use new function names. |
|
5431 |
|
5432 * pt-fvc.cc (apply_mapper_fcn): Use member function map() instead |
|
5433 of friend function. |
|
5434 |
2669
|
5435 * gripes.cc (gripe_wrong_type_arg (const char*, const string&)): |
|
5436 New function. |
|
5437 |
|
5438 Wed Feb 12 17:27:53 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5439 |
|
5440 * syscalls.cc (symbols_of_syscalls): Add O_ASYNC and O_SYNC. |
|
5441 |
|
5442 Mon Feb 10 01:22:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5443 |
|
5444 * dirfns.cc (Freaddir, Fmkdir, Frmdir, Frename): |
|
5445 Also return status and error message. |
|
5446 |
|
5447 * syscalls.cc (Fdup2, Fexec, Ffork, Ffcntl, Funlink, Fmkfifo, |
|
5448 Fpipe, Fwaitpid): Also return error message. |
|
5449 |
2664
|
5450 Sat Feb 8 17:16:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5451 |
2665
|
5452 * pt-exp.cc (tree_simple_assignment_expression::eval): Return |
|
5453 value of RHS, but (if printing) print complete value of LHS. |
|
5454 |
2664
|
5455 * pr-output.cc (octave_print_internal): Print a new line for empty |
|
5456 string matrices. |
|
5457 |
2663
|
5458 Wed Feb 5 14:30:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5459 |
|
5460 * oct-stream.cc (scanf_format_list::process_conversion): Accept |
|
5461 but don't actually use h, l, and L modifiers. Always insert l |
|
5462 modifier for floating point conversions. |
|
5463 |
2652
|
5464 Fri Jan 31 13:55:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5465 |
|
5466 * pager.cc (do_sync): Always flush the cout stream after writing. |
|
5467 |
2643
|
5468 Wed Jan 29 08:25:29 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5469 |
2648
|
5470 * defaults.cc (exec_path): Don't include bin_dir in std_path. |
|
5471 |
2646
|
5472 * pager.cc (do_sync): Flush the cout stream after writing if |
|
5473 running in interactive or forced_interactive mode. |
|
5474 |
|
5475 * mk-oct-links: Rename from mk-oct-links.in. |
|
5476 Don't use symbolic links. |
|
5477 * Makefile.in: Distribute mk-oct-links, not mk-oct-links.in |
|
5478 (mk-oct-links): Delete target. |
|
5479 (install-oct, bin-dist): Don't depend on mk-oct-links. |
|
5480 Run $(srcdir)/mk-oct-links, not ./mk-oct-links. |
|
5481 |
2643
|
5482 * qr.cc (qr): Doc fix. |
|
5483 |
2638
|
5484 Tue Jan 28 10:48:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5485 |
|
5486 * Makefile.in (install-inc): Create a relative symbolic link. |
|
5487 (install-bin): Create a relative symbolic link. |
|
5488 |
2630
|
5489 Mon Jan 27 12:12:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5490 |
2634
|
5491 * Version 2.0.2 released. |
|
5492 |
|
5493 * Makefile.in (CXXFLAGS_NO_PT_FLAGS): Rename from XALL_CXXFLAGS. |
|
5494 Substitute bsd_gcc_kluge_targets_frag. |
|
5495 |
2630
|
5496 * sysdep.cc (Fsleep): New function. |
|
5497 (Fusleep): New function. |
|
5498 |
|
5499 * toplev.cc (octave_config_info): Don't include RLD_FLAG. |
|
5500 * oct-conf.h.in: Don't define RLD_FLAG |
|
5501 |
2626
|
5502 Sun Jan 26 19:41:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5503 |
|
5504 * sighandlers.cc (sigchld_handler): Block SIGCHLD while |
|
5505 sigchld_hander is running. |
|
5506 |
2624
|
5507 Sat Jan 25 22:36:39 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5508 |
|
5509 * Makefile.in (bin-dist): Update for 2.x. |
|
5510 |
2621
|
5511 Fri Jan 24 10:05:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5512 |
|
5513 * mk-oct-links.in: New arg, -p, to just print list of files to link. |
|
5514 |
|
5515 * lex.l (handle_number): Convert `D' or `d' exponents to `e' |
|
5516 before scanning. |
|
5517 |
2620
|
5518 Thu Jan 23 10:00:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5519 |
|
5520 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_no_op_command): |
|
5521 New function. |
|
5522 * pt-cmd.h, pt-cmd.cc (tree_no_op_command): New class. |
|
5523 * parse.y (make_break_command, make_continue_command, |
|
5524 make_return_command): Where they don't really make sense, turn |
|
5525 these commands into no-ops. Accept return and break if reading a |
|
5526 script file. |
|
5527 * toplev.cc (parse_and_execute): Handle return and break in script |
|
5528 files. Quit executing commands if an error occurs when reading a |
|
5529 script file. Set global_command to 0 after deleting it. |
|
5530 (main_loop): If not interactive or forced_interactive, handle |
|
5531 break and return, and quit executing commands if an error occurs. |
|
5532 Set global_command to 0 after deleting it. |
|
5533 * error.cc (Ferror): Doc fix. |
|
5534 * pt-walk.h (tree_walker): Add declaration for visit_no_op_command. |
|
5535 |
2618
|
5536 Wed Jan 22 20:54:12 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5537 |
|
5538 * input.cc (gnu_readline): If not using readline, flush |
|
5539 rl_outstream after printing prompt. |
|
5540 (octave_gets): Also call flush_octave_stdout() if |
|
5541 forced_interactive, not just if interactive. |
|
5542 (do_input_echo): If forced_interactive, only echo prompt and |
|
5543 command line if also reading a script file. |
|
5544 |
2616
|
5545 Tue Jan 21 23:02:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5546 |
|
5547 * SLList.h: Include "BaseSLList.h", not <BaseSLList.h>. |
|
5548 |
2610
|
5549 Mon Jan 20 11:11:12 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5550 |
2614
|
5551 * lex.l (token_stack): Don't declare static. |
|
5552 * pt-plot.cc (tmp_files): Likewise. |
|
5553 * toplev.cc (octave_atexit_functions): Likewise. |
|
5554 * unwind-prot.cc (unwind_protect_list): Likewise. |
|
5555 |
2613
|
5556 * ops.h (MX_MX_BOOL_OP): Correctly handle case of one or both |
|
5557 arguments being empty. Change all callers. |
|
5558 |
|
5559 * oct-stream.cc (printf_value_cache::looking_at_string): |
|
5560 Handle empty strings correctly now that they are 0x0. |
|
5561 |
2610
|
5562 * file-io.cc: Don't include "syswait.h" here. |
|
5563 |
|
5564 Sun Jan 19 22:38:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5565 |
|
5566 * oct-stream.h (octave_base_stream::seek): Declare offset arg as |
|
5567 streamoff, not streampos. |
|
5568 (octave_stream::seek): Likewise. |
|
5569 * oct-strstrm.h (octave_base_strstream::seek): Likewise. |
|
5570 * oct-stdstrm.h (octave_base_stdiostream::seek): Likewise. |
|
5571 * oct-iostrm.h (octave_base_iostream::seek): Likewise. |
|
5572 * oct-fstrm.h (octave_fstream::seek): Likewise. |
|
5573 |
2609
|
5574 Fri Jan 17 18:13:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5575 |
|
5576 * file-io.cc (Ffflush): Handle stdout as a special case. |
|
5577 |
|
5578 * oct-stream.cc (octave_stream_list::do_get_file_number): |
|
5579 Do the work for octave_stream::get_file_number. |
|
5580 (octave_stream_list::get_file_number): Convert to static function. |
|
5581 |
2608
|
5582 Wed Jan 8 11:42:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5583 |
|
5584 * log.cc (sqrtm): For complex arg case, compute sqrt, not log. |
|
5585 |
2602
|
5586 Tue Jan 7 00:16:41 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5587 |
|
5588 * Version 2.0.1 released. |
|
5589 |
|
5590 Mon Jan 6 00:00:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5591 |
|
5592 * pt-mat.cc (tm_row_const_rep::all_mt): New variable. |
|
5593 (tm_row_const::all_empty): New function. |
|
5594 (tm_row_const::tm_row_const_rep::init): Set all_mt here. |
|
5595 (tm_const::all_mt): New variable. |
|
5596 (tm_const::all_emtpy): New function. |
|
5597 (tm_const::init): Set all_mt here. |
|
5598 (tree_matrix::eval): Return an empty matrix if the list contains |
|
5599 only empty elements. If it contains only empty strings, return an |
|
5600 empty string. |
|
5601 |
2601
|
5602 Sun Jan 5 12:50:25 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5603 |
|
5604 * ops.h (SC_MX_BOOL_OP, MX_SC_BOOL_OP): New arg, empty_result. |
|
5605 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
5606 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
5607 op-s-cm.cc, op-s-m.cc, op-str-str.cc: Change all uses of |
|
5608 SC_MX_BOOL_OP and MX_SC_BOOL_OP macros. Return correct results |
|
5609 for empty matrix cases. |
|
5610 |
|
5611 * pt-fcn.cc (tree_function::eval): If Vdefine_all_return_values is |
|
5612 true, initialize return values before evaluating function, for |
|
5613 compatibility with Matlab. |
|
5614 |
|
5615 * oct-stream.cc (get_size): Correctly set size when arg is scalar. |
|
5616 |
|
5617 Thu Jan 2 12:40:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5618 |
|
5619 * Makefile.in (install-oct): Quote $(OCT_FILES) in for loop to |
|
5620 avoid syntax error from ksh. |
|
5621 |
|
5622 * pr-output.cc (octave_print_internal): Avoid unused parameter |
|
5623 warning from gcc. |
|
5624 |
2600
|
5625 Thu Dec 19 12:13:42 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5626 |
|
5627 * oct-stream.cc (octave_base_stream::do_scanf): |
|
5628 Don't treat %l{e,f,g} differently from %{e,f,g}. |
|
5629 (octave_base_stream::do_oscanf): Likewise. |
|
5630 |
|
5631 * sighandlers.cc (sigchld_handler): Fix typos. |
|
5632 |
2598
|
5633 Wed Dec 18 20:17:23 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5634 |
2599
|
5635 * file-io.cc (Ffgetl, Ffgets): Also return number of characters read. |
|
5636 |
|
5637 * ov-range.cc (octave_range::not): New function. |
|
5638 * ov-range.h (octave_range::uminus): New function. |
|
5639 |
2598
|
5640 * BaseSLList.cc: Include error.h. |
|
5641 (BaseSLList::error): Call ::error() to process error message. |
|
5642 |
2589
|
5643 Fri Dec 13 02:38:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5644 |
|
5645 * ov.cc (octave_value::convert_and_assign): Preserve lhs value if |
|
5646 assignment fails. |
|
5647 |
2586
|
5648 Wed Dec 11 12:33:16 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5649 |
|
5650 * pt-plot.cc (GPLOT_CMD_END): Don't put semicolons at the end of |
|
5651 each plot command; it causes trouble with gnuplot 3.5. |
|
5652 |
2580
|
5653 Tue Dec 10 00:31:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5654 |
2583
|
5655 * Version 2.0 released. |
|
5656 |
2584
|
5657 * pr-output.cc (set_format_style): Don't try to access argv unless |
|
5658 argc > 1. |
|
5659 |
2580
|
5660 * SLList-expr.cc SLList-misc.cc SLList-plot.cc SLList-str.cc |
|
5661 SLList-tc.cc SLList-tm.cc SLList.h SLStack-i.cc SLStack-pc.cc |
|
5662 SLStack-str.cc SLStack-sym.cc SLStack-tok.cc SLStack-ue.cc |
|
5663 SLStack-ui.cc, pt-mat.cc: Include Stack.h, Stack.cc, SLStack.cc, |
|
5664 and SLList.cc as necessary. |
|
5665 |
|
5666 * Stack.cc, SLStack.cc, SLList.cc: New files. |
|
5667 * Makefile.in (SOURCES): Add them to the list. |
|
5668 |
2575
|
5669 Mon Dec 9 12:03:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5670 |
2577
|
5671 * Makefile.in (install-bin): Use $(EXE) suffix so install will |
|
5672 find the right file on cygwin32 systems. |
|
5673 |
2575
|
5674 * ov.h: Declare proper form of do_binary_op as friend to |
|
5675 octave_value class. |
|
5676 |
2572
|
5677 Sat Dec 7 22:00:10 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5678 |
|
5679 * oct-stream.cc (do_printf_conv, do_scanf_conv, |
|
5680 do_oscanf_num_conv, do_oscanf_str_conv): Convert to real |
|
5681 functions instead of CPP macros, using templates where necessary. |
|
5682 (do_oscanf_num_conv, do_oscanf_str_conv): Correctly handle |
|
5683 discarded values. |
|
5684 |
2569
|
5685 Fri Dec 6 00:20:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5686 |
2572
|
5687 * Version 1.94. |
|
5688 |
2571
|
5689 * Map-*.cc, SLList-*.cc, SLStack-*.cc: Include config.h. |
|
5690 |
|
5691 * ov.h: Don't include SLList.h. |
|
5692 |
|
5693 * SLStack.cc: Delete. Move everything to SLStack.h. |
|
5694 |
|
5695 * BaseSLList.h, BaseSLList.cc: New files. Split out the |
|
5696 non-template base class parts of SLList. |
|
5697 |
2569
|
5698 * Makefile.in (TEMPLATE_SRC): Delete. Move files to SOURCES. |
|
5699 * Map.h, Map.cc: Add #pragma interface/implementation. |
|
5700 * SLStack.h, SLStack.cc: Add #pragma interface/implementation. |
|
5701 |
|
5702 * SLList.h, SLList.cc: New files, from libg++, but with #pragma |
|
5703 interface/implementation. |
|
5704 * Makefile.in (SOURCES): Add SLList.cc. |
|
5705 (INCLUDES): Add SLList.h. |
|
5706 |
2566
|
5707 Thu Dec 5 18:36:44 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5708 |
|
5709 * octave.cc: Don't include sun-utils.h. |
|
5710 |
2563
|
5711 Tue Dec 3 23:47:09 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5712 |
|
5713 * op-str-str.cc (eq, ne): Handle operations with scalars. |
|
5714 |
2555
|
5715 Thu Nov 21 12:30:36 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5716 |
|
5717 * ov-str-mat.h (octave_char_matrix_str): Provide transpose and |
|
5718 hermitian operators. |
|
5719 * ov-ch-mat.h (octave_char_matrix): Likewise. |
|
5720 |
2548
|
5721 Wed Nov 20 00:35:57 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5722 |
2554
|
5723 * sighandlers.h (struct octave_interrupt_handler): Provide |
|
5724 forward declaration here. |
|
5725 * sighandlers.cc (octave_interrupt_handler): New struct. |
|
5726 (octave_catch_interrupts): Rename from catch_interrupts. |
|
5727 (octave_ignore_interrupts, octave_set_interrupt_handler): |
|
5728 New functions. |
|
5729 * help.cc, oct-hist.cc, pager.cc, toplev.cc: Use new functions for |
|
5730 handling interrupts so that we can hide the details of whether or |
|
5731 not we have to deal with SIGBREAK. |
|
5732 |
|
5733 * pt-plot.cc [! HAVE_POSIX_SIGNALS] (open_plot_stream): |
|
5734 Simply ignore and restore the interrupt handler here. |
|
5735 |
|
5736 * sighandlers.cc (MAYBE_REINSTALL_SIGHANDLER): New macro. Use it |
|
5737 instead of always checking MUST_REINSTALL_SIGHANDLERS everywhere. |
|
5738 (sigchld_handler): If octave_child_list is empty, wait for any |
|
5739 child, but don't hang, and don't collect status info. |
|
5740 [__EMX__] (sigchld_handler): Save and restore handlers for SIGINT, |
|
5741 SIGBREAK, and SIGCHLD. Ignore them while waiting on children. |
|
5742 (install_signal_handlers): If SIGBREAK exists, handle it like SIGINT. |
|
5743 |
2552
|
5744 * toplev.cc [USE_READLINE] (clean_up_and_exit): |
|
5745 Call rl_deprep_terminal() to restore terminal settings. |
|
5746 |
|
5747 * sysdep.cc [__EMX__ && OS2] (Fextproc): New command. |
|
5748 [__EMX__ && OS2] (FEXTPROC): Alias for Fextproc. |
|
5749 |
|
5750 * Version 1.93. |
|
5751 |
2549
|
5752 * sysdep.cc (octave_chdir): [__EMX__]: Make copy of string before |
|
5753 converting to upper case. |
|
5754 |
2548
|
5755 * getgrent.cc (mk_gr_map): Only set the passwd field if |
|
5756 HAVE_GR_PASSWD is defined. |
|
5757 |
2533
|
5758 Tue Nov 19 12:01:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5759 |
2546
|
5760 * sysdep.cc (OS2_init): New function. |
|
5761 [__EMX__] (sysdep_init): Call it. |
|
5762 |
2542
|
5763 * lex.l (plot_style_token): Add new plot styles for gnuplot 3.6. |
2543
|
5764 * pt-plot.cc (subplot_style::columns_ok): Rename from |
|
5765 subplot_style::errorbars. Recognize more styles and do a better |
|
5766 job of diagnosing column number/style mismatches. |
2542
|
5767 |
2536
|
5768 * sighandlers.cc (my_friendly_exit): If we are called twice, try |
|
5769 to remove the signal handler for SIGABRT and the call abort (). |
|
5770 |
2534
|
5771 * help.cc (Ftype): If a function is defined from a file and |
|
5772 transformed text has not been requested, just print the contents |
|
5773 of the file. |
|
5774 |
2533
|
5775 * parse.y (fold): New functions for constant folding for binary |
|
5776 and unary expressions. Keep track of original text even when |
|
5777 transformations occur. |
|
5778 (make_binary_op, make_boolean_op, make_unary_op): Use them. |
|
5779 (finish_colon_expression, finish_matrix): Keep track of original |
|
5780 text even when transformations occur. |
|
5781 |
|
5782 * help.cc (Ftype): Don't mess with Vps4. |
|
5783 Handle new option `-transformed'. |
|
5784 |
|
5785 * pt-const.h, pt-const.cc (tree_constant::print): |
|
5786 New arg, pr_orig_text. |
|
5787 |
|
5788 * pt-exp.h, pt-exp.cc (tree_colon_expression::is_range_constant): |
|
5789 Delete. |
|
5790 |
|
5791 * pt-exp-base.h (tree_expression::original_text): New virtual function. |
|
5792 pt-exp-base.cc (tree_expression::original_text): Default version. |
|
5793 |
|
5794 * pt-pr-code.h (tree_print_code::print_original_text, |
|
5795 tree_print_code::prefix): New fields. |
|
5796 * pt-pr-code.cc (tree_print_code::visit_constant): Pass |
|
5797 print_original_text to tree_constant::print(). |
|
5798 (tree_print_code::indent): Use prefix instead of Vps4. |
|
5799 * pt-fcn.cc (tree_function::print_function_header, |
|
5800 tree_function::print_function_trailer): Pass Vps4 to |
|
5801 tree_print_code_constructor for prefix. |
|
5802 * pt-misc.cc (tree_statement::maybe_echo_code): Pass Vps4 to |
|
5803 tree_print_code_constructor for prefix. |
|
5804 |
|
5805 * pt-mat.h, pt-mat.cc (tree_matrix::all_elements_are_constant): |
|
5806 Rename from is_matrix_constant. |
|
5807 (tree_matrix_row::all_elements_are_constant): Likewise. |
|
5808 Change all callers. |
|
5809 |
|
5810 Mon Nov 18 14:13:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5811 |
|
5812 * Makefile.in (install-inc): Try harder to create the link from |
|
5813 include/octave to include/octave-VERSION. |
|
5814 |
2524
|
5815 Sun Nov 17 14:14:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5816 |
2527
|
5817 * Makefile.in (parse.cc): Expect 13 shift/reduce conflicts. |
2526
|
5818 |
2525
|
5819 * parse.y (set_stmt_print_flag): New function. |
|
5820 (sep_type): New member for bison %union declaration. |
|
5821 Simplify rules for statement lists keeping track of the type of |
|
5822 the first separator in the values associated with the |
|
5823 nonterminals for the separators. |
|
5824 |
2524
|
5825 * lex.l (handle_identifier): Set lexer_flags.doing_set if the |
|
5826 token is "gset", not "set". |
|
5827 |
|
5828 Sat Nov 16 21:41:26 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5829 |
|
5830 * Makefile.in (parse.cc, lex.cc): Add special rules for these files. |
|
5831 Delete pattern rules for .y and .l files. |
|
5832 |
2522
|
5833 Fri Nov 15 13:48:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5834 |
2523
|
5835 * pt-plot.cc: Put semicolons at the ends of all plot commands. |
|
5836 |
2522
|
5837 * defaults.cc (subst_octave_home): Start subsequent searchs from |
|
5838 the end of the replaced text. |
|
5839 |
|
5840 * pr-output.cc (pr_any_float): Kluge for SCO systems. |
|
5841 |
|
5842 * pr-output.cc (pr_any_float, pr_complex): Don't declare inline. |
|
5843 |
|
5844 * mappers.cc: Include lo-ieee.h, for isinf and isnan on SCO |
|
5845 systems. |
|
5846 |
2512
|
5847 Thu Nov 14 00:06:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5848 |
2520
|
5849 * pt-plot.cc (Fgset, Fgshow): New commands. |
|
5850 (Fshow): Print warning and call gshow. |
|
5851 (Fset): Print warning and call gset. |
|
5852 |
2517
|
5853 * variables.cc (parse_fcn_file): Add unwind-protect for file |
|
5854 pointer, so the file is always closed. |
|
5855 (get_help_from_file): Likewise. |
|
5856 * toplev.cc (parse_and_execute): Likewise. |
|
5857 |
2516
|
5858 * Makefile.in (install-oct): Depend on mk-oct-links. |
|
5859 (mk-oct-links): New target. |
|
5860 |
2512
|
5861 * Version 1.92. |
|
5862 |
2508
|
5863 Wed Nov 13 11:13:22 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5864 |
2512
|
5865 * sighandlers.cc (sys_siglist): [__EMX__]: Add definitions. |
|
5866 |
|
5867 * octave.cc (execute_startup_files): Allow init file name ot be |
|
5868 specified by an environment variable. |
|
5869 |
|
5870 * dirfns.cc (make_absolute): [__EMX__]: Path is already absolute |
|
5871 if it begins with any character followed by a colon. |
|
5872 |
2511
|
5873 * load-save.cc (read_mat_ascii_matrix, get_lines_and_columns, |
|
5874 get_complete_line): New functions, for reading headless text files. |
|
5875 (load_save_format): Add LS_MAT_ASCII, for headless text files. |
|
5876 (do_load): Handle LS_MAT_ASCII files. |
|
5877 Thanks to Mel Melchner <mjm@research.att.com> for initial version |
|
5878 of this code. |
|
5879 |
2508
|
5880 * sysdep.cc: Conditionally include ieeefp.h. |
|
5881 (BSD_init, SCO_init): New functions. |
|
5882 (sysdep_init): Conditionally call them here. |
|
5883 |
2499
|
5884 Tue Nov 12 00:14:56 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5885 |
2508
|
5886 * pt-plot.cc (open_plot_stream): Don't block SIGCHLD. |
|
5887 |
2499
|
5888 * load-save.cc (read_binary_data): When reading string arrays, be |
|
5889 sure to create an octave_char_matrix_str object, not just an |
|
5890 octave_char_matrix object. |
|
5891 (read_ascii_data): Likewise. |
|
5892 |
2497
|
5893 Mon Nov 11 22:52:58 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5894 |
|
5895 * load-save.cc (read_binary_data): Don't forget teminating NUL for |
|
5896 string that we plan to insert. |
|
5897 (read_ascii_data): Likewise. |
|
5898 |
2495
|
5899 Sun Nov 10 16:58:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5900 |
2496
|
5901 * dirfns.cc (Ffnmatch): New function. |
|
5902 |
2495
|
5903 * octave.cc (intern_argv): Use new string_vector constructor. |
|
5904 |
|
5905 * ov-str-mat.cc (octave_char_matrix_str::all_strings): Have |
|
5906 charMatrix::row_as_string() strip trailing whitespace. |
|
5907 |
|
5908 * dirfns.cc (Fglob): new function. |
|
5909 |
|
5910 * sysdep.cc (oct_tilde_expand): Provide version that works on |
|
5911 string vectors too. |
|
5912 (Ftilde_expand): Work on string vector args. |
|
5913 |
|
5914 * load-save.cc (save_binary_data): Call char_matrix_value() to |
|
5915 extract charMatrix from octave_value object, not all_strings(). |
|
5916 (save_ascii_data): Likewise. |
|
5917 * pt-mat.cc (tree_matrix::eval): Likewise. |
|
5918 |
|
5919 * ov.h (octave_value::all_strings): Return string_vector, not |
|
5920 charMatrix. |
|
5921 * ov-base.cc (octave_base_value::all_strings): Likewise. |
|
5922 * ov-str-mat.h, ov-str-mat.cc (octave_char_matrix_str::all_strings): |
|
5923 Likewise. |
|
5924 |
2487
|
5925 Fri Nov 8 09:54:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5926 |
2492
|
5927 * defaults.cc, dynamic-ld.cc, fn-cache.cc, help.cc, oct-hist.cc, |
|
5928 octave.cc, pager.cc, pt-fcn.cc, toplev.cc, utils.cc, variables.cc, |
|
5929 lex.l: Change #include "" to #include <> for defaults.h, |
|
5930 oct-conf.h, oct-gperf.h, y.tab.h, and version.h, to avoid getting |
|
5931 them from $srcdir when we really want the version from the build |
|
5932 directory. (Maybe this should be done for all the include files, |
|
5933 not just those that are auto-generated? Hmm.) |
|
5934 |
2488
|
5935 * defaults.h.in (CXXLIB_LIST, CXXLIB_PATH, FLIB_LIST, FLIB_PATH): |
|
5936 Delete. |
|
5937 |
2487
|
5938 * Makefile.in (install-oct): Use $(INSTALL_PROGRAM) for .oct files. |
|
5939 |
2477
|
5940 Thu Nov 7 07:59:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5941 |
2487
|
5942 * variables.cc (gobble_leading_white_space): New arg, update_pos. |
|
5943 * (is_function_file): Don't update file position information here. |
|
5944 |
2482
|
5945 * Version 1.91. |
|
5946 |
2479
|
5947 * pt-fvc.cc (tree_indirect_ref::reference): If the lhs object is |
|
5948 not a map, convert it to one. |
|
5949 |
|
5950 * ov-typeinfo.h (init_tab_sz): New static member. |
|
5951 |
2477
|
5952 * ov-struct.cc, ov-struct.h: Add hooks for custom memory management. |
|
5953 * ov-scalar.cc, ov-scalar.h: Likewise. |
|
5954 * ov-re-mat.cc, ov-re-mat.h: Likewise. |
|
5955 * ov-range.cc, ov-range.h: Likewise. |
|
5956 * ov-cx-mat.cc, ov-cx-mat.h: Likewise. |
|
5957 * ov-complex.cc, ov-complex.h: Likewise. |
|
5958 * ov-ch-mat.cc, ov-ch-mat.h: Likewise. |
|
5959 |
2474
|
5960 Wed Nov 6 12:32:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5961 |
2482
|
5962 * pager.cc (do_sync): Don't call clear_external_pager() here. |
2476
|
5963 |
2475
|
5964 * pt-const.h (tree_constant::allocator) New static member. |
|
5965 (tree_constant::operator new, tree_constant::operator delete): |
|
5966 Implement with custom allocator. |
|
5967 |
|
5968 * syscalls.cc (Fgetgid, Fgetegid): New functions. |
|
5969 |
|
5970 * sighandlers.cc (sigchld_handler): If necessary, reinstall |
|
5971 handler after call to waitpid(). |
|
5972 |
|
5973 * pager.cc (pager_death_handler): Don't use warning() to print |
|
5974 message. |
|
5975 |
|
5976 * getgrent.cc: New file. |
|
5977 * Makefile.in (DLD_SRC): Add it. |
|
5978 |
|
5979 * ov.cc (octave_value::print_with_name): Call is_map() instead of |
|
5980 print_as_structure(). |
|
5981 * ov-struct.cc (octave_struct::print): Likewise. |
|
5982 |
|
5983 * ov.h, ov.cc, pt-const.h: Delete force_numeric(), make_numeric(), |
|
5984 convert_to_matrix_type(), print_as_structure() member functions. |
|
5985 |
2474
|
5986 * variables.cc (is_function_file): Call gobble_leading_whitespace |
|
5987 here to strip all leading whitespace and comments. |
|
5988 (parse_fcn_file): If reading a function file, call |
|
5989 gobble_leading_whitespace again after resetting parser state to |
|
5990 grab help text. |
|
5991 |
2469
|
5992 Tue Nov 5 13:00:35 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5993 |
2472
|
5994 * syscalls.cc (Fgeteuid, Fgetuid): New functions. |
|
5995 |
|
5996 * getpwent.cc: Use gripe_not_supported from gripes.cc, instead of |
|
5997 local gripe_not_implemented function. |
|
5998 |
2470
|
5999 * input.cc, sysdep.cc, variables.cc: Only include readline.h and |
|
6000 history.h if USE_READLINE is defined. |
|
6001 |
|
6002 * help.cc: Make it compile without warnings even if USE_GNU_INFO |
|
6003 is not defined. |
|
6004 |
2469
|
6005 * sighandlers.h (octave_child_list): Don't define |
|
6006 HAVE_POSIX_SIGNALS HERE. |
|
6007 |
|
6008 * sighandlers.cc (SIGHANDLER_RETURN): New macro. |
|
6009 (generic_sig_handler, sigchld_handler, sigfpe_handler, |
|
6010 sigint_handler, sigpipe_handler): Use it. |
|
6011 (sigchld_handler, sigfpe_handler, sigint_handler, sigpipe_handler): |
|
6012 Only reinstall signal handler if MUST_REINSTALL_SIGHANDLER is defined. |
|
6013 |
2463
|
6014 Sun Nov 3 00:45:30 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6015 |
2466
|
6016 * pt-const.cc (tree_constant::print): Just call val.print(). |
|
6017 * ov-base.cc, ov-ch-mat.cc, ov-colon.cc, ov-complex.cc, |
|
6018 ov-cx-mat.cc, ov-range.cc, ov-re-mat.cc, ov-scalar.cc, |
|
6019 ov-str-mat.cc, ov-struct.cc ov-va-args.cc, ov.cc (print): |
|
6020 Handle pr_as_read_syntax arg. |
|
6021 |
|
6022 * defaults.cc (subst_octave_home): Search for prefix repeatedly in |
|
6023 retval, not s. |
|
6024 |
|
6025 * gripes.h: Make declaration of gripes_not_supported match |
|
6026 definition. |
|
6027 |
2465
|
6028 * mk-oct-links.in: In sed command, match "DEFUN_DLD *( *", not |
|
6029 "DEFUN_DLD_BUILTIN *( *". |
|
6030 |
|
6031 * chol.cc, colloc.cc, dassl.cc, det.cc, eig.cc, expm.cc, fft.cc, |
|
6032 fft2.cc, filter.cc, find.cc, fsolve.cc, fsqp.cc, getpwent.cc, |
|
6033 getrusage.cc, givens.cc, hess.cc, ifft.cc, ifft2.cc, inv.cc, |
|
6034 log.cc, lpsolve.cc, lsode.cc, lu.cc, minmax.cc, npsol.cc, pinv.cc, |
|
6035 qpsol.cc, qr.cc, quad.cc, qzval.cc, rand.cc, schur.cc, sort.cc, |
|
6036 svd.cc, syl.cc, time.cc: Change all uses of DEFUN_DLD_BUILTIN to |
|
6037 be just DEFUN_DLD. |
|
6038 |
|
6039 * defun-dld.h: Eliminate DEFUN_DLD_BUILTIN. |
|
6040 |
2464
|
6041 * syswait.h: Use #ifdef HAVE_SYS_WAIT_H, not #if HAVE_SYS_WAIT_H |
|
6042 to decide whether to include sys/wait.h. |
|
6043 |
|
6044 * pt-exp-base.h (tree_expression): Declare oper() here as a |
|
6045 virtual member function. |
|
6046 |
2463
|
6047 * pt-pr-code.cc (tree_print_code::visit_constant): Check for |
|
6048 string before checking for char_matrix. |
|
6049 |
|
6050 * ov-ch-mat.cc (octave_char_matrix::print): Supply correct number |
|
6051 of args to octave_print_internal(). |
|
6052 |
2457
|
6053 Sat Nov 2 20:44:55 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6054 |
2458
|
6055 * file-io.cc (Ftmpnam): Rename from Foctave_temp_file_name. |
|
6056 |
2457
|
6057 * Makefile.in (DLD_SRC): Move time.cc and getrusage.cc here from |
|
6058 SOURCES. Add getpwent.cc. |
|
6059 |
|
6060 * getrusage.cc: Rename from resource.cc. Make getrusage a |
|
6061 loadable function. |
|
6062 |
|
6063 * time.cc: Rename from timefns.cc. Make time functions loadable. |
|
6064 |
|
6065 * getpwent.cc: New file. |
|
6066 |
2439
|
6067 Wed Oct 30 01:06:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6068 |
2452
|
6069 * Version 1.90. |
|
6070 |
|
6071 * Makefile.in (DISTFILES): Add ChangeLog. |
|
6072 |
2449
|
6073 * ov-range.cc (octave_range::convert_to_str): New function. |
|
6074 |
|
6075 * ov-str-mat.h (octave_char_matrix_str::char_matrix_value): |
|
6076 Delete function. Already handled by octave_char_matrix class. |
|
6077 |
|
6078 * ov-ch-mat.h (octave_char_matrix::convert_to_str): New function. |
|
6079 |
2448
|
6080 * pager.cc (Fmore): Set page_screen_output to 1.0 or 0.0, not |
|
6081 "true" or "false". |
|
6082 |
2447
|
6083 * ov-ch-mat.cc, ov-struct.cc, ov-struct.h, pr-output.cc, |
|
6084 pt-cmd.cc, pt-const.cc, pt-const.h, pt-fcn.cc, pt-fvc-base.cc, |
|
6085 pt-fvc-base.h, pt-fvc.cc, pt-fvc.h, rand.cc, sighandlers.cc, |
|
6086 variables.cc, variables.h: Delete unused code. |
|
6087 |
2445
|
6088 * octave.cc: Only include pwd.h if HAVE_PWD_H. |
|
6089 |
|
6090 * oct-strstrm.h: Include <string>, not <string.h>. |
|
6091 |
2442
|
6092 * defaults.cc, dirfns.cc, file-io.cc, help.cc, input.cc, |
|
6093 oct-hist.cc, oct-procbuf.cc, oct-procbuf.h, octave.cc, pager.h, |
|
6094 procstream.h, pt-misc.cc, pt-plot.cc, sighandlers.cc, strftime.c, |
|
6095 syscalls.cc, sysdep.cc, syswait.h, toplev.cc, utils.cc, |
|
6096 variables.cc: Only include sys/types.h if HAVE_SYS_TYPES_H. |
|
6097 |
2440
|
6098 * error.h (panic): Use GCC_ATTR_NORETURN macro, not NORETURN. |
|
6099 * toplev.h (clean_up_and_exit): Likewise. |
|
6100 * utils.h (jump_to_top_level): Likewise. |
|
6101 |
2439
|
6102 * derfaults.h.in, defaults.cc (local_arch_lib_dir): New variable. |
|
6103 * defaults.cc (set_default_local_arch_lib_dir): New function. |
|
6104 (install_defaults): Call it. |
|
6105 (exec_path): Use Vlocal_arch_lib_dir here. |
|
6106 * toplev.cc (octave_config_info): Add localarchlibdir to structure. |
|
6107 |
2436
|
6108 Tue Oct 29 15:54:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6109 |
2437
|
6110 * Makefile.in (install-oct): Don't do anything if $(OCT_FILES) is |
|
6111 empty. |
|
6112 |
2436
|
6113 * ov-range.cc (octave_range::index): New Function. |
|
6114 (octave_range::all, octave_range::any, octave_range::is_true): |
|
6115 Make these functions work. |
|
6116 |
|
6117 * ov.cc (octave_value::try_assignment_with_conversion): Remove |
|
6118 left over debugging print statements. |
|
6119 |
|
6120 Mon Oct 28 10:49:03 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6121 |
|
6122 * strftime.c: Add missing #endif for previous change. |
|
6123 |
2435
|
6124 Sun Oct 27 14:06:44 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6125 |
|
6126 * oct-hist.cc (do_history): Rewite option parsing to avoid |
|
6127 (probably bogus) errors from g++ on cygwin32 system. |
|
6128 |
|
6129 * strftime.c: Use autoconf macros TIME_WITH_SYS_TIME and |
|
6130 HAVE_SYS_TIME_H to decide which time.h files to include. |
|
6131 |
|
6132 * oct-stream.h, oct-stream.cc (octave_stream::error, |
|
6133 octave_base_stream::error): Rename errno => err_num. |
|
6134 |
2432
|
6135 Sat Oct 26 10:40:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6136 |
2434
|
6137 * oct-hist.cc (do_history): Move declaration of file inside |
|
6138 conditional. |
|
6139 |
2432
|
6140 * defun.h (DEFVAR_INT): Set eternal flag with (svc_fcn != 0) |
|
6141 instead of (sv_fcn ? 1 : 0) |
|
6142 |
2427
|
6143 Fri Oct 25 01:10:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6144 |
2431
|
6145 * ov-ch-mat.h (octave_char_matrix::any): Return 0.0 instead of false. |
|
6146 (octave_char_matrix::all): Likewise. |
|
6147 |
|
6148 * input.cc (Fecho): When binding value of echo_executing_commands, |
|
6149 cast ECHO_* to double. |
|
6150 |
|
6151 * sighandlers.cc (octave_child_list::do_remove): Delete unused |
|
6152 variable `enlarge'. |
|
6153 |
|
6154 * pt-const.h (tree_constant::tree_constant (const tree_constant&)): |
|
6155 Don't pass arg to tree_fvc constructor. |
|
6156 |
2427
|
6157 * resource.cc (getrusage): [HAVE_GETRUSAGE && RUSAGE_TIMES_ONLY]: |
|
6158 Only fill in time values. |
|
6159 |
|
6160 Thu Oct 24 20:37:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6161 |
|
6162 * parse.y: Comment out the %expect declaration so byacc can |
|
6163 compile this file. |
|
6164 (if_cmd_list): Add missing semicolon. |
|
6165 Include <cstdlib> for getenv if using byacc. |
|
6166 |
|
6167 * ov.h: Move typedefs outside of octave_value class scope to avoid |
|
6168 problem with cygwin32 beta16 compiler. |
|
6169 |
2421
|
6170 Fri Oct 18 13:44:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6171 |
2423
|
6172 * ov.h (octave_value::index): Undo previous change. |
|
6173 * ov.cc (octave_value constructors): Call maybe_mutate() in most |
|
6174 cases. |
|
6175 |
|
6176 * ov-complex.cc (octave_complex::index): Avoid implicit type |
|
6177 conversion back to scalar type. |
|
6178 * ov-scalar.cc (octave_scalar::index): Likewise. |
|
6179 |
2421
|
6180 * ov.h (octave_value::index): Call maybe_mutate() on retval before |
|
6181 returning it. |
|
6182 |
2418
|
6183 Wed Oct 16 12:00:11 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6184 |
2420
|
6185 * ov.h (octave_value::struct_elt_val): New optional arg, silent. |
|
6186 * ov-base.h, ov-base.cc, ov-struct.h, ov-struct.cc: Likewise, but |
|
6187 for the derived classes the arg is required. |
|
6188 |
|
6189 * data.cc (Fstruct_contains): Require arguments to be struct and |
|
6190 string, respectively. Call octave_value::struct_elt_val with |
|
6191 silent flag set. |
|
6192 |
2419
|
6193 * pt-mat.cc (tm_row_const::tm_row_const_rep::eval_error, |
|
6194 tm_row_const::tm_row_const_rep::eval_warning): New functions. |
|
6195 (tm_row_const::tm_row_const (const tree_matrix_row&): Use them to |
|
6196 give better error messages. |
|
6197 |
2418
|
6198 * pt-fvc.cc (tree_identifier::eval): Avoid dereferencing null |
|
6199 object_to_eval. |
|
6200 |
2412
|
6201 Tue Oct 15 11:35:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6202 |
|
6203 * op-cs-cm.cc, op-cs-cs.cc, op-cs-m.cc, op-cs-s.cc |
|
6204 (complex_matrix_conv): New functions. |
|
6205 Install preferred assignment conversion and widening ops. |
|
6206 |
|
6207 * op-s-cm.cc, op-s-cs.cc (complex_matrix_conv): New functions. |
|
6208 Install preferred assignment conversion and widening ops. |
|
6209 |
|
6210 * op-s-m.cc, op-s-s.cc (matrix_conv): New functions. |
|
6211 Install preferred assignment conversion and widening ops. |
|
6212 |
|
6213 * ov.cc (octave_value::try_assignment_with_conversion, |
|
6214 octave_value::convert_and_assign, octave_value::try_assignment): |
|
6215 New functions. |
|
6216 (octave_value::assign): Use them to implement twisted logic for |
|
6217 type conversions in assigments. |
|
6218 |
|
6219 * pt-const.h (tree_constant::maybe_mutate): New function. |
|
6220 * ov.h (octave_value::maybe_mutate): New function. |
|
6221 (octave_value::try_narrowing_conversion): New function. |
|
6222 Use just one typedef for widening_op_fcn and numeric_conv_fcn. |
|
6223 Change all uses. |
|
6224 * ov-base.h, ov-complex.h, ov-complex.cc, ov-cx-mat.h, |
|
6225 ov-cx-mat.cc, ov-range.h, ov-range.cc, ov-re-mat.h, ov-re-mat.cc, |
|
6226 Provide derived class versions of try try_narrowing_conversion(). |
|
6227 |
|
6228 * pr-output.cc (octave_print_internal): Don't bother handing off |
|
6229 to scalar/real versions, even when it would seem appropriate. |
|
6230 |
|
6231 * symtab.cc (symbol_def::define (tree_constant *)): Call |
|
6232 maybe_mutate on constants here. |
|
6233 |
2405
|
6234 Mon Oct 14 11:05:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6235 |
2407
|
6236 * pt-fvc.cc (tree_identifier::eval): If retval is undefined and |
|
6237 the object to eval is a constant, print error message. |
2406
|
6238 |
2405
|
6239 * Makefile (distclean): Remove *.oct too. |
|
6240 |
|
6241 * defun-int.h: Include variables.h here. |
|
6242 |
2403
|
6243 Sun Oct 13 10:52:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6244 |
2404
|
6245 * variables.cc (print_symbol_info_line): Never print negative |
|
6246 diminsions. |
|
6247 |
|
6248 * symtab.h (octave_symbol_record_info): Store const_type as string. |
|
6249 (octave_symbol_record_info::init): Delete. Fix constructors. |
|
6250 (octave_symbol_record_info::type_name): Handle const_type as string. |
|
6251 |
2403
|
6252 * octave.cc (maximum_braindamage): Replace "true" with 1.0 and |
|
6253 "false" with 0.0 in calls to bind_builtin_variable(). |
|
6254 Include sun-utils.h here. |
2404
|
6255 (intern_argv): Also bind __argv__. |
2403
|
6256 |
2391
|
6257 Sat Oct 12 13:40:21 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6258 |
2399
|
6259 * Makefile.in (distclean): Also delete mk-oct-links. |
|
6260 |
|
6261 Fri Oct 11 13:13:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6262 |
2391
|
6263 Changes for Octave's new type system: |
|
6264 |
|
6265 * arith-ops.cc: Delete. |
|
6266 * pt-const.h, pt-const.cc: Massive changes. Most functionality |
|
6267 moved to ov.h, ov.cc, and derived classes. |
|
6268 |
|
6269 * variables.h, variables.cc (octave_variable_reference): New class |
|
6270 for getting references to variables and structure elements used in |
|
6271 assignments or value contexts. |
|
6272 |
|
6273 * symtab.h, symtab.cc (symbol_record::define (const octave_value&), |
|
6274 symbol_record::variable_value, symbol_record::variable_reference): |
|
6275 New functions. |
|
6276 (symbol_record_info::type_name): Rename from type_as_string. |
|
6277 |
|
6278 * pt-fvc-base.h, pt-fvc-base.cc (tree_fvc::increment, |
|
6279 tree_fvc::decrement): New functions to replace |
|
6280 tree_fvc::bump_value. |
|
6281 #if 0 assign and lookup_map_element functions. |
|
6282 |
|
6283 * pt-mvr.cc (tree_multi_assignment_expression::eval): |
|
6284 Generated RHS value is now a tree_constant. |
|
6285 |
|
6286 * pt-exp.h, pt-exp.cc (tree_boolean_expression): New class. |
|
6287 (tree_unary_expression, tree_binary_expression, |
|
6288 tree_boolean_expression): Move codes here from tree_expression. |
|
6289 (tree_simple_assignment_expression): Cope with changes to way of |
|
6290 doing assignments. |
|
6291 |
|
6292 * pt-exp-base.h, pt-exp-base.cc (enum type): Delete codes for |
|
6293 unary and binary ops. |
|
6294 (tree_expression::expression_type): Delete. |
|
6295 (tree_expression::is_logically_true): Hand off to |
|
6296 octave_value::is_true to do real work. |
|
6297 |
|
6298 * pr-output.h, pr-output.cc (any_element_is_inf_or_nan, |
|
6299 all_elements_are_ints): Delete. Call member new functions for |
|
6300 these operations. |
|
6301 (free_format, plus_format, bank_format, hex_format, |
|
6302 compact_format, print_e, print_big_e): Use bool, not int. |
|
6303 (octave_print_internal): Hand off to scalar/real versions when |
|
6304 appropriate. |
|
6305 |
|
6306 * octave.cc (main): Call initialize_types() and install_ops(). |
|
6307 (verbose_usage): Add WWW address to output. |
|
6308 |
|
6309 * parse.y (indirect_ref): Handle by making a tree instead of a |
|
6310 list using new version of tree_indirect_ref class. |
|
6311 |
|
6312 * parse.y (make_boolean_op): New function. Use it instead of |
|
6313 make_binary_op to create trees for && and || ops. |
|
6314 (make_binary_op): Codes come from tree_binary_expression now, |
|
6315 instead of tree_expression. |
|
6316 (make_unary_op): Codes come from tree_unary_expression now, |
|
6317 instead of tree_expression. |
|
6318 (make_boolean_op): Codes come from tree_boolean_expression. |
|
6319 |
|
6320 *parse.y (tree_constant_type): Change type to tree_constant* from |
|
6321 octave_value*, and rename from octave_value_type. Change uses. |
|
6322 |
|
6323 * defun.h (DEFVAR_INT): Pass octave_value not pointer to |
|
6324 octave_value for defn when creating builtin_variable. |
|
6325 |
|
6326 * gripes.h, gripes.cc (gripe_invalid_conversion): Args are |
|
6327 strings, not char*. |
|
6328 (gripe_implicit_conversion, gripe_divide_by_zero): New extern |
|
6329 gripe functions. |
|
6330 |
|
6331 * mkbuiltins: For each file, create a separate static function to |
|
6332 install builtins, then create another single extern function to |
|
6333 call all of them. |
|
6334 |
|
6335 * pt-fcn.cc (tree_function::bind_nargin_and_nargout): |
|
6336 Just pass doubles and let symbol_record::define handle creating |
|
6337 new value. |
|
6338 |
|
6339 * pt-pr-code.cc, pt-pr-code.h (visit_constant): Renamed from |
|
6340 visit_octave_value. |
|
6341 (visit_unary_expression): Use tree_expression::is_prefix_op() |
|
6342 instead of switch on op types. |
|
6343 |
|
6344 * pt-walk.h (visit_constant): Renamed from visit_octave_value. |
|
6345 |
|
6346 * pt-misc.cc (initialize_undefined_elements): Get reference to |
|
6347 tmp, then assign. |
|
6348 * pt-cmd.cc (do_for_loop_once): Likewise, for loop identifier. |
|
6349 |
|
6350 * input.cc (generate_struct_completions, looks_like_struct): Cast |
|
6351 tmp_fvc to tree_constant*, not octave_value*. |
|
6352 (get_user_input): Call print() on retval, not eval(1). |
|
6353 |
|
6354 * help.cc (Ftype): Cast defn to tree_constant*, not octave_value*. |
|
6355 |
|
6356 * balance.cc: Fix docstring. |
|
6357 |
|
6358 * dassl.cc, fsolve.cc, load-save.cc, lsode.cc, npsol.cc, qpsol.cc, |
|
6359 quad.cc: |
|
6360 Include pt-fvc.h. |
|
6361 |
|
6362 * data.cc (Fstruct_contains): call octave_value::struct_elt_val, |
|
6363 not octave_value::lookup_map_element. |
|
6364 |
|
6365 * dirfns.cc (Fcd): Pass directory name as string directly to |
|
6366 bind_builtin_variable instead of creating new octave_value. |
|
6367 |
|
6368 * toplev.cc: Include pt-fvc.h and lo-mappers.h |
|
6369 |
|
6370 * data.cc, error.cc, file-io.cc, load-save.cc, pager.cc, |
|
6371 pt-mat.cc, pt-plot.cc, syscalls.cc, toplev.cc: |
|
6372 Include variables.h. |
|
6373 |
|
6374 * Array-tc.cc, Map-tc.cc, SLList-misc.cc SLList-tc.cc, data.cc, |
|
6375 defaults.cc, dynamic-ld.cc, error.cc, gripes.cc, lex.l, octave.cc, |
|
6376 oct-map.h, oct-map.cc, oct-obj.h, pt-cmd.cc, pt-exp.cc, pt-fcn.cc, |
|
6377 pt-fvc-base.cc, pt-mat.cc, pt-misc.cc, pt-mvr-base.cc, pt-mvr.h, |
|
6378 resource.cc, strfns.cc, sysdep.cc, timefns.cc, toplev.cc: |
|
6379 Include ov.h instead of pt-const.h. |
|
6380 |
|
6381 * xpow.cc (any_element_is_negative): Delete. |
|
6382 (xpow and elem_xpow functions): Check conformance here. |
|
6383 |
|
6384 * xdiv.cc (mx_leftdiv_conform, mx_div_conform): |
|
6385 Now template-based, taking Matrices instead of dimensions as args. |
|
6386 Change all callers. |
|
6387 |
|
6388 * op-cm-cm.cc, op-cm-cm.h, op-cm-cs.cc, op-cm-cs.h, op-cm-m.cc, |
|
6389 op-cm-m.h, op-cm-s.cc, op-cm-s.h, op-cs-cm.cc, op-cs-cm.h, |
|
6390 op-cs-cs.cc, op-cs-cs.h, op-cs-m.cc, op-cs-m.h, op-cs-s.cc, |
|
6391 op-cs-s.h, op-m-cm.cc, op-m-cm.h, op-m-cs.cc, op-m-cs.h, op-m-m.cc, |
|
6392 op-m-m.h, op-m-s.cc, op-m-s.h, op-s-cm.cc, op-s-cm.h, op-s-cs.cc, |
|
6393 op-s-cs.h, op-s-m.cc, op-s-m.h, op-s-s.cc, op-s-s.h, |
|
6394 op-str-str.cc, op-str-str.h, ops.cc, ops.h, ov-base.cc, ov-base.h, |
|
6395 ov-ch-mat.cc, ov-ch-mat.h, ov-colon.cc, ov-colon.h, ov-complex.cc, |
|
6396 ov-complex.h, ov-cx-mat.cc, ov-cx-mat.h, ov-range.cc, ov-range.h, |
|
6397 ov-re-mat.cc, ov-re-mat.h, ov-scalar.cc, ov-scalar.h, ov-str-mat.cc, |
|
6398 ov-str-mat.h, ov-struct.cc, ov-struct.h, ov-typeinfo.cc, |
|
6399 ov-typeinfo.h, ov-va-args.cc, ov-va-args.h, ov.cc, ov.h: |
|
6400 New files for Octave's new type system. |
|
6401 * Makefile.in: Add them to the appropriate lists. |
|
6402 |
|
6403 Sat Sep 14 21:58:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6404 |
|
6405 * mkbuiltins: Use .df instead of .def. |
|
6406 Write one function for each .df file, then call them |
|
6407 all in install_builtin_functions(). |
|
6408 * Makefile.in: Handle .df instead of .def. |
|
6409 |
|
6410 * balance.cc (balance): Fix typo in doc string. |
|
6411 |
|
6412 Wed Aug 28 21:01:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6413 |
|
6414 * octave.cc (verbose_usage): Include WWW address and bug-octave |
|
6415 mailing list address. |
|
6416 |
2354
|
6417 Tue Aug 20 17:41:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6418 |
2358
|
6419 * Makefile.in: Only define pattern rules for making .oct files if |
|
6420 OCTAVE_LITE is true. |
|
6421 Only add pic/ to $(TI_OBJ) if $(SHARED_LIBS) is true. |
|
6422 (stamp-picdir): Only create a pic subdirectory if SHARED_LIBS or |
|
6423 OCTAVE_LITE is true AND CPICFLAG or CXXPICFLAG is not empty. |
|
6424 |
2354
|
6425 * minmax.cc (Fmin, Fmax): Deal with changes to Matrix class |
|
6426 min/max methods. |
|
6427 |
2345
|
6428 Thu Jul 25 01:42:38 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6429 |
2348
|
6430 * input.cc (generate_possible_completions): Force the names to be |
|
6431 unique. |
|
6432 |
2345
|
6433 * load-save.cc (read_mat_binary_data): Expect to read terminating |
|
6434 NUL character in the variable name. |
|
6435 (save_mat_binary_data): Likewise, save it here. |
|
6436 |
2341
|
6437 Wed Jul 24 05:08:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6438 |
2343
|
6439 * lsode.cc (Flsode): Don't set the return value if an error |
|
6440 occurred during integration. |
2344
|
6441 * dassl.cc (Fdassl): Likewise. |
2343
|
6442 |
2341
|
6443 * file-io.cc (symbols_of_file_io): Redefine values of SEEK_SET, |
|
6444 SEEK_CUR, and SEEK_END for Matlab compatibility. |
|
6445 * oct-stream.cc (seek): Check for compatible values of ORIGIN arg. |
|
6446 Also handle "bof", "cof", and "eof". |
|
6447 |
2338
|
6448 Fri Jul 19 15:24:36 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6449 |
|
6450 * pt-const.cc: When creating octave_value_reps from ComplexMatrix |
|
6451 values, check to see if all the elements are actually real. |
|
6452 |
2330
|
6453 Tue Jul 16 10:53:42 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6454 |
2341
|
6455 * input.cc (decode_prompt_string): Swap meanings of \h and \H. |
2330
|
6456 |
|
6457 Mon Jul 15 16:01:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6458 |
|
6459 * toplev.cc (run_command_and_return_output): Renamed from do_system. |
|
6460 (Fsystem): Make `system ("emacs")' work as one would expect. |
|
6461 |
|
6462 Sun Jul 14 17:34:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6463 |
|
6464 * file-io.cc (Ffopen, Ffread, Ffwrite): Update doc strings, |
|
6465 correctly handle default architecture and precision args. |
|
6466 |
|
6467 * load-save.cc (mopt_digit_to_float_format): Rename from |
|
6468 get_floating_point_format. |
|
6469 (float_format_to_mopt_digit): New function. |
|
6470 |
|
6471 * oct-stream.cc (octave_base_stream::read, octave_base_stream::write): |
|
6472 Simplify by calling Matrix::read and Matrix::write to do real work |
|
6473 of reading, writing, and format conversion. |
|
6474 |
|
6475 * oct-stream.h (octave_base_stream): Move data_type enum to |
|
6476 liboctave/data-conv.h. Use float_format from |
|
6477 liboctave/mach-info.h instead of arch_type enum. |
|
6478 |
|
6479 * sysdep.h, sysdep.cc (octave_words_big_endian, ten_little_endians): |
|
6480 Delete. Now part of oct_mach_info class in liboctave. |
|
6481 |
|
6482 Tue Jul 9 11:18:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6483 |
|
6484 * arith-ops.cc, balance.cc, dassl.cc, data.cc, filter.cc, find.cc, |
|
6485 fsolve.cc, load-save.cc, log.cc, lsode.cc, minmax.cc, npsol.cc, |
|
6486 oct-obj.cc, oct-stream.cc, pr-output.cc, pt-cmd.cc, pt-const.cc, |
|
6487 pt-fvc.cc, pt-plot.cc, quad.cc, rand.cc, sighandlers.cc, sort.cc, |
|
6488 syscalls.cc, unwind-prot.cc, xdiv.cc, xpow.cc: |
|
6489 When indexing arrays, use operator() instead of elem() so that |
|
6490 bounds checking can be done consistently. |
|
6491 |
|
6492 Mon Jun 24 02:13:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6493 |
|
6494 * Makefile.in (install-oct): Use INSTALL_PROGRAM, instead of |
|
6495 INSTALL_DATA for installing shared libraries. |
|
6496 |
|
6497 * lex.l (grab_help_text): Ignore all initial comment characters, |
|
6498 not just the first. |
|
6499 * variables.cc (gobble_leading_white_space): Likewise. |
|
6500 |
|
6501 Sat Jun 22 22:43:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6502 |
|
6503 * input.h, input.cc (octave_completion_matches_called): New varaible. |
|
6504 (Fcompletion_matches): Set it to true on a successful call. |
|
6505 * toplev.cc (main_loop): If octave_completion_matches_called is |
|
6506 true, don't increment current_command_number. |
|
6507 |
|
6508 Thu Jun 13 03:52:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6509 |
|
6510 * variables.cc (is_mapper_function_name, |
|
6511 is_builtin_function_name): New functions. |
|
6512 (Fdocument): Use them. |
|
6513 Define as regular function, not a text style function. |
|
6514 |
|
6515 Thu Jun 6 00:09:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6516 |
|
6517 * pt-plot.cc: Handle new built-in variable `gnuplot_has_frames'. |
|
6518 |
|
6519 Wed Jun 5 14:45:04 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6520 |
|
6521 * input.cc (decode_prompt_string): \h now means the whole host |
|
6522 name and \H is the host name up to the first `.'. |
|
6523 |
|
6524 Thu May 30 23:41:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6525 |
|
6526 * fn-cache.cc (octave_fcn_file_name_cache::do_list): Always |
|
6527 recompute the lists of function files instead of trying to cache |
|
6528 them. |
|
6529 |
|
6530 Tue May 28 12:05:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6531 |
|
6532 * utils.cc (warn_old_style_preference): New function. |
|
6533 (check_preference): Use it. |
|
6534 |
|
6535 * fn-cache.h: Include <ctime> here. |
|
6536 |
|
6537 Fri May 24 00:57:14 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6538 |
|
6539 * input.cc (completion_matches): Don't return empty string_vectors. |
|
6540 |
|
6541 * octave.cc (long_opts): Add braindead. |
|
6542 |
|
6543 Thu May 23 01:49:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6544 |
|
6545 * input.cc (gnu_readline): New optional arg, force_readline. |
|
6546 (get_user_input): Use it. |
|
6547 |
|
6548 * pt-const.cc (OCT_VAL_REP::assign): If converting the rhs to a |
|
6549 numeric value, convert a copy, not the actual object. |
|
6550 (OCT_VAL_REP::do_index): Prevent s([]) from resulting in a string |
|
6551 with zero rows. |
|
6552 |
|
6553 * mappers.cc: Handle toascii here. |
|
6554 * strfns.cc: Not here. |
|
6555 |
|
6556 * mappers.cc: Handle tolower and toupper here. |
|
6557 * mappers.h: Rename can_return_complex_for_real to flag and |
|
6558 overload meaning for ch_mapper. |
|
6559 * pt-fvc.cc (apply_mapper_fcn): Handle overloaded meaning. |
|
6560 |
|
6561 * syscalls.cc (stat): Return 3 values instead of just 1. |
|
6562 (lstat): Likewise. |
|
6563 |
|
6564 Wed May 22 02:34:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6565 |
|
6566 * pt-const.cc (OCT_VAL_REP::make_numeric): For string to number |
|
6567 conversions, correctly set type tag before calling force_numeric. |
|
6568 (do_binary_op): Force string to number conversion if both args are |
|
6569 strings and we are doing some sort of comparison operation. |
|
6570 |
|
6571 * Makefile.in (stamp-tinst, stamp-interp): Use SH_TERMLIBS and |
|
6572 SH_LIBS instead of TERMLIBS and LIBS. |
|
6573 |
|
6574 * pt-const.cc (do_unary_op): Add special case to handle |
|
6575 transposing strings. |
|
6576 |
|
6577 * pt-mat.cc (Vstring_fill_char): New variable. |
|
6578 (symbols_of_pt_mat): DEFVAR it. |
|
6579 |
|
6580 * input.cc (generate_struct_completions, |
|
6581 generate_possible_completions): Return string_vector, not char **. |
|
6582 Change all callers. |
|
6583 |
|
6584 * pt-const.cc (lookup_map_element): Use substr() correctly. |
|
6585 |
|
6586 Tue May 21 21:37:17 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6587 |
|
6588 * oct.h: New file. |
|
6589 * Makefile.in (INCLUDES): Add it to the list. |
|
6590 |
|
6591 * octave.cc: New args --no-site-file and --no-init-file. Delete |
|
6592 --ignore-init-file. The flag --norc (-f) implies both |
|
6593 --no-site-file and --no-init-file. |
|
6594 |
|
6595 Fri May 17 01:54:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6596 |
|
6597 * input.cc (Fcompletion_matches): New function. |
|
6598 |
|
6599 * utils.cc (get_fcn_file_names): Delete. |
|
6600 * help.cc (simple_help): Use new file name cache instead of |
|
6601 calling get_fcn_file_names. |
|
6602 * variables.cc (make_name_list): Likewise. |
|
6603 |
|
6604 * fn-cache.h, fn-cache.cc, Map-fnc.cc: New files. |
|
6605 * Makefile.in: Add them to the lists. |
|
6606 |
|
6607 * Makefile.in (uninstall): Install in octincludedir, not includedir. |
|
6608 |
|
6609 * pt-plot.h: Include <csignal> here. |
|
6610 |
|
6611 Thu May 16 10:52:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6612 |
|
6613 * oct-stream.cc (octave_stream::oscanf, octave_base_stream::oscanf, |
|
6614 octave_base_stream::do_oscanf): New functions for backward |
|
6615 compatibility with older versions of Octave. |
|
6616 (scanf_format_elt, scanf_format_list): Keep track of width specifier. |
|
6617 * file-io.cc (Fscanf): New function. |
|
6618 (Fscanf, Ffscanf, Fsscanf): Handle compatibility arg. |
|
6619 |
|
6620 Wed May 15 01:00:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6621 |
|
6622 * oct-stream.cc (do_scanf): If doing '%c' conversion, unset |
|
6623 ios::skipws on input stream. |
|
6624 |
|
6625 * sighandlers.h, sighandlers.cc (octave_child, octave_child_list): |
|
6626 New classes for keeping track of the child processes we create. |
|
6627 (sigchld_handler): Check in octave_child_list to see if there is |
|
6628 anything we can do for the child that died. |
|
6629 * pager.cc: Register child pager process. |
|
6630 * pt-plot.cc: Likewise, for the plotter. |
|
6631 * Array-oc.cc: New file |
|
6632 * Makefile.in (TI_SRC): Add it to the list. |
|
6633 |
|
6634 * pager.cc (do_sync): Don't check error_state. |
|
6635 (flushing_output_to_pager): New static variable. |
|
6636 (flush_octave_stdout): Use it to avoid doing anything if already |
|
6637 flushing output. |
|
6638 |
|
6639 * sighandlers.cc (sigchld_handler): Call warning instead of |
|
6640 writing directly to cerr. |
|
6641 (sigpipe_handler): Call warning instead of message. |
|
6642 |
|
6643 * octave.cc (main): Call install_signal_handlers, |
|
6644 initialize_file_io, initialize_symbol_tables, and install_builtins |
|
6645 before parsing command line options. |
|
6646 |
|
6647 * user-prefs.h, user-prefs.cc: Delete. |
|
6648 |
|
6649 * utils.cc (check_preference): Move here. |
|
6650 * user-prefs.cc: From here. |
|
6651 |
|
6652 * defaults.cc: New file. Move initialization stuff from |
|
6653 variables.cc. Move DEFVARS for EDITOR, EXEC_PATH, LOADPATH, |
|
6654 IMAGEPATH, and OCTAVE_VERSION here. |
|
6655 |
|
6656 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6657 INFO_FILE and INFO_PROGRAM. |
|
6658 * help.cc: Move all of that here. |
|
6659 (symbols_of_help): Add DEFVARS for INFO_FILE and INFO_PROGRAM. |
|
6660 |
|
6661 Tue May 14 00:23:06 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6662 |
|
6663 * pager.cc (do_sync): Be more defensive about sending stuff to the |
|
6664 external pager. |
|
6665 * sighandlers.cc (sigchld_handler): For now, only wait for |
|
6666 octave_pager_pid. Don't call error(). Do set octave_pager_pid to |
|
6667 -1 if the pager process no longer exists. |
|
6668 |
|
6669 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6670 PWD. |
|
6671 * dirfns.cc: Move all of that here. |
|
6672 (symbols_of_dirfns): New function. |
|
6673 * variables.cc (install_builtin_variables): Call it. |
|
6674 |
|
6675 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6676 default_save_format and save_precision. |
|
6677 * load-save.cc: Move all of that here. |
|
6678 (symbols_of_load_save): New function. |
|
6679 * variables.cc (install_builtin_variables): Call it. |
|
6680 |
|
6681 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6682 warn_divide_by_zero. |
|
6683 * arith-ops.cc: Move all of that here. |
|
6684 (symbols_of_arith_ops): New function. |
|
6685 * variables.cc (install_builtin_variables): Call it. |
|
6686 |
|
6687 * mappers.cc: Add wrappers for ctype is* functions so that they |
|
6688 will work on systems that only define them as macros. |
|
6689 |
|
6690 Mon May 13 00:27:08 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6691 |
|
6692 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6693 suppress_verbose_help_message. |
|
6694 * help.cc: Move all of that here. |
|
6695 (symbols_of_help): New function. |
|
6696 * variables.cc (install_builtin_variables): Call it. |
|
6697 |
|
6698 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6699 treat_neg_dim_as_zero. |
|
6700 * pt-const.cc: Move all of that here. |
|
6701 |
|
6702 * pager.cc (octave_pager_stream::do_sync): Don't return early if |
|
6703 not interactive. |
|
6704 |
|
6705 * data.h: New file. |
|
6706 * Makefile.in (INCLUDES): Add it to the list. |
|
6707 * data.cc (symbols_of_data): New function. Move definition of I, |
|
6708 Inf, J, NaN, e, eps, i, inf, j, nan, pi, realmin, and realmax here. |
|
6709 * variables.cc: From here. |
|
6710 (install_builtin_variables): Call symbols_of_data. |
|
6711 |
|
6712 * file-io.cc (symbols_of_file_io): New function. Move definition |
|
6713 of SEEK_CUR, SEEK_END, SEEK_SET, stdin, stdout, stderr here. |
|
6714 * variables.cc: From here. |
|
6715 (install_builtin_variables): Call symbols_of_file_io. |
|
6716 |
|
6717 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6718 do_fortran_indexing, implicit_str_to_num_ok, |
|
6719 ok_to_lose_imaginary_part, prefer_column_vectors, |
|
6720 prefer_zero_one_indexing, print_answer_id_name, |
|
6721 propagate_empty_matrices, resize_on_range_error, and |
|
6722 struct_levels_to_print. |
|
6723 * pt-const.cc: Move all of that here. |
|
6724 (symbols_of_pt_const): New function. |
|
6725 * variables.cc (install_builtin_variables): Call it. |
|
6726 * pt-fvc.cc (tree_identifier::assign): Use Vresize_on_range_error |
|
6727 instead of user_pref.resize_on_range_error here. |
|
6728 * load-save.cc (save_mat_binary_data): Use Vimplicit_str_to_num_ok |
|
6729 instead of user_pref.implicit_str_to_num_ok here. |
|
6730 * utils.cc (empty_arg): Use Vpropagate_empty_matrices instead of |
|
6731 user_pref.propagate_empty_matrices here. |
|
6732 * pt-exp-base.cc (tree_expression::is_logically_true): Likewise.. |
|
6733 |
|
6734 * pt-fcn.cc (symbols_of_pt_fcn): Also move DEFVAR for |
|
6735 default_return_value here. |
|
6736 |
|
6737 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6738 ps1, ps2, ps4, and completion_append_char. |
|
6739 * input.cc: Move all of that here. |
|
6740 (symbols_of_input): New function. |
|
6741 * variables.cc (install_builtin_variables): Call it. |
|
6742 * pt-pr-code.cc (indent): Use Vps4 instead of user_pref.ps4 here. |
|
6743 * help.cc (Ftype): Also here. |
|
6744 |
|
6745 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6746 automatic_replot, gnuplot_binary, and gnuplot_has_multiplot. |
|
6747 * pt-plot.cc: Move all of that here. |
|
6748 (symbols_of_pt_plot): New function. |
|
6749 * variables.cc (install_builtin_variables): Call it. |
|
6750 |
|
6751 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6752 beep_on_error. |
|
6753 * error.cc: Move all of that here. |
|
6754 (symbols_of_error): New function. |
|
6755 * variables.cc (install_builtin_variables): Call it. |
|
6756 |
|
6757 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6758 empty_list_elements_ok. |
|
6759 * pt-mat.cc: Move all of that here. |
|
6760 (symbols_of_pt_mat): New function. |
|
6761 * variables.cc (install_builtin_variables): Call it. |
|
6762 |
|
6763 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6764 define_all_return_values, return_last_computed_value, and |
|
6765 silent_functions. |
|
6766 * pt-fcn.cc: Move all of that here. |
|
6767 (symbols_of_pt_fcn): New function. |
|
6768 * variables.cc (install_builtin_variables): Call it. |
|
6769 |
|
6770 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6771 whitespace_in_literal_matrix. |
|
6772 * lex.l: Move all of that here. |
|
6773 (symbols_of_lex): New function. |
|
6774 * variables.cc (install_builtin_variables): Call it. |
|
6775 |
|
6776 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6777 warn_assign_as_truth_value, warn_comma_in_global_decl, |
|
6778 warn_function_name_clash, and warn_missing_semicolon. |
|
6779 * parse.y: Move all of that here. |
|
6780 (symbols_of_parse): New function. |
|
6781 * variables.cc (install_builtin_variables): Call it. |
|
6782 |
|
6783 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6784 output_precision, output_max_field_width, print_empty_dimensions, |
|
6785 and split_long_rows. |
|
6786 * pr-output.cc: Move all of that here. |
|
6787 (symbols_of_pr_output): New function. |
|
6788 * variables.cc (install_builtin_variables): Call it. |
|
6789 |
|
6790 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6791 page_screen_output, page_output_immediately, and pager_binary. |
|
6792 * pager.cc: Move all of that here. |
|
6793 |
|
6794 * user-prefs.h (check_preference): Provide declaration. |
|
6795 * user-prefs.cc (check_preference): Make external. |
|
6796 |
|
6797 * toplev.cc (Foctave_config_info): New function. |
|
6798 |
|
6799 * oct-conf.h.in: New file |
|
6800 * Makefile.in (oct-conf.h): New target. |
|
6801 Add it to the appropriate lists. |
|
6802 |
|
6803 * sighandlers.cc (sigchld_handler): Don't complain about wait |
|
6804 returning a negative value. |
|
6805 |
|
6806 * file-io.cc (Fsscanf, Fsprintf): Pass true for second arg of |
|
6807 octave_stream constructor. |
|
6808 |
|
6809 * oct-stream.h (octave_stream): New field, preserve. |
|
6810 (octave_stream::~octave_stream): If preserve, don't delete rep. |
|
6811 |
|
6812 * pager.cc (symbols_of_pager): Set default for |
|
6813 page_output_immediately to 0. |
|
6814 |
|
6815 * toplev.cc (do_system): Correctly handle return_output. |
|
6816 Append ends to output_buf before calling str(). |
|
6817 |
|
6818 * variables.cc: If M_PI and M_E are available, use them. |
|
6819 |
|
6820 * mk-oct-links.in (links_dir): If old link exists, delete it first. |
|
6821 |
|
6822 Sun May 12 01:46:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6823 |
|
6824 * Makefile.in (DISTFILES): List defaults.h.in and oct-gperf.h here. |
|
6825 (INCLUDES): Not here. |
|
6826 (install-inc): New target. |
|
6827 (uninstall): Also delete libraries and include files. |
|
6828 (install-inc): If linkdir is a directory, leave it alone. |
|
6829 (TERMLIBS, LIBPLPLOT, LIBDLFCN): Don't substitute here (now in |
|
6830 Makeconf). |
|
6831 |
|
6832 * oct-stream.cc (octave_base_stream::do_read): Provide initial |
|
6833 value for tmp var. |
|
6834 |
|
6835 * pt-walk.h, pt-pr-code.h, pt-pr-code.cc: New tree-walking classes. |
|
6836 * Makefile.in: Add them to the appropriate lists. |
|
6837 * pt-fvc-base.h, pt-exp-base.cc, pt-fvc-base.cc, pt-mvr-base.cc, |
|
6838 pt-base.cc, pt-mvr.cc, pt-mat.h, pt-mat.cc, pt-fvc.cc, |
|
6839 pt-const.cc, pt-cmd.cc, pt-const.h, pt-misc.cc, pt-plot.cc, |
|
6840 pt-fcn.cc, pt-plot.h, pt-mvr.h, pt-mvr-base.h, pt-misc.h, |
|
6841 pt-fcn.h, pt-exp.h, pt-exp.cc, pt-exp-base.h, pt-fvc.h, pt-cmd.h, |
|
6842 pt-base.h: |
|
6843 Replace print_code stuff with accept() functions. |
|
6844 Add member access functions where necessary. |
|
6845 * help.cc (Ftype): Update to use new method of walking trees to |
|
6846 print text representation of user-defined functions. |
|
6847 |
|
6848 * file-io.cc (Ffscanf): Update doc string. |
|
6849 (Fsscanf): Likewise. |
|
6850 |
|
6851 * oct-stream.cc (octave_base_stream::do_read): Correctly set max_size. |
|
6852 Pad mval with zeros on final resize. |
|
6853 (octave_base_stream::do_scanf): Likewise. |
|
6854 (do_scanf_conv): Correctly resize mval. |
|
6855 |
|
6856 Sat May 11 05:14:09 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6857 |
|
6858 * pager.cc (octave_pager_buf::sync): Correctly set bypass_pager. |
|
6859 |
|
6860 * lex.l (<MATRIX>{SNLCMT}*\]{S}*): Match SNLCMT, not just SNL. |
|
6861 |
|
6862 Fri May 3 11:05:30 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6863 |
|
6864 * pt-const.cc (OCT_VAL_REP::set_index): Complain if type can't be |
|
6865 indexed. |
|
6866 |
|
6867 * input.cc (get_user_input): Don't increment input line number if |
|
6868 input is coming from eval string. |
|
6869 |
|
6870 * user-prefs.cc: Allow empty strings for prompts. |
|
6871 |
|
6872 Thu May 2 10:50:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6873 |
|
6874 * pt-mvr.h (class tree_oct_obj): Declare values data member const. |
|
6875 |
|
6876 Sun Apr 28 03:16:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6877 |
|
6878 * user-prefs.h (user_preferences): New field, |
|
6879 `page_output_immediately'. |
|
6880 * user-prefs.cc (init_user_prefs): Initialize it. |
|
6881 (page_output_immediately): New function. |
|
6882 * pager.cc (syms_of_pager): Add DEFVAR. |
|
6883 (really_flush_to_pager): New file-scope variable. |
|
6884 (flush_octave_stdout): Set and restore it. |
|
6885 (octave_pager_buf::sync): Check it, user_pref.page_screen_output, |
|
6886 and user_pref.page_output_immediately to decide when to really |
|
6887 flush output. |
|
6888 (more_than_a_screenful): New function. If paging but not |
|
6889 immediately, then check this too. |
|
6890 |
|
6891 * pager.cc (default_pager): Move here from variables.cc. If pager |
|
6892 is less and LESS is not in the environment, append useful flags. |
|
6893 (symbols_of_pager): New function. |
|
6894 * variables.cc (install_builtin_variables): Call it. |
|
6895 Delete pager-related DEFVARs. |
|
6896 |
|
6897 * syswait.h (WIFSIGNALLED): Define if sys/wait.h doesn't. |
|
6898 |
|
6899 * sighandlers.cc: Handle SIGCHLD. |
|
6900 |
|
6901 * pager.cc, pager.h: Rewrite. |
|
6902 * pt-mvr.cc, pt-misc.cc, pt-fcn.cc, pt-const.cc, oct-hist.cc, |
|
6903 file-io.cc, help.cc, variables.cc, qpsol.cc, dassl.cc, quad.cc, |
|
6904 npsol.cc, lsode.cc, fsolve.cc, load-save.cc, dirfns.cc, octave.cc, |
|
6905 toplev.cc, error.cc, input.cc: |
|
6906 Write to octave_stdout and octave_diary instead of calling |
|
6907 maybe_page_output() or maybe_write_to_diary_file(). |
|
6908 |
|
6909 * oct-procbuf.h, oct-procbuf.cc: New files. |
|
6910 * procstream.h (class procstreambase): Use octave_procbuf instead |
|
6911 of procbuf from libg++, so we can get pids of subprocesses. |
|
6912 |
|
6913 Fri Apr 26 01:21:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6914 |
|
6915 * pt-const.cc (OCT_VAL_REP::do_index): Call maybe_mutate() before |
|
6916 returning. |
|
6917 |
|
6918 * mappers.h (struct Mapper_fcn): Delete. |
|
6919 (struct builtin_mapper_function): New field ch_mapper. |
|
6920 * pt-fvc.h (tree_builtin): Convert type of mapper_fcn from |
|
6921 Mapper_fcn to builtin_mapper_function. |
|
6922 * variables.cc (install_builtin_mapper): Likewise, for arg. |
|
6923 Simplify, since we don't have to do the copying ourselves now. |
|
6924 * pt-fvc.cc (apply_mapper_function): Handle ch_mapper case. |
|
6925 * defun.h (DEFUN_MAPPER): Likewise. |
|
6926 * mappers.cc (install_builtin_mappers): Likewise. |
|
6927 Add ctype is* functions here. |
|
6928 |
|
6929 Thu Apr 25 00:57:06 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6930 |
|
6931 * arith-ops.h, defun-int.h, defun.h, dynamic-ld.h, gripes.h, |
|
6932 load-save.h, oct-map.h, oct-obj.h, oct-stream.h, pt-cmd.h, |
|
6933 pt-const.h, pt-exp-base.h, pt-exp.h, pt-fcn.h, pt-fvc-base.h, |
|
6934 pt-fvc.h, pt-mat.h, pt-misc.h, pt-mvr-base.h, pt-mvr.h, pt-plot.h, |
|
6935 symtab.h, toplev.h, utils.h, variables.h, xpow.h, Array-tc.cc, |
|
6936 Map-i.cc, Map-tc.cc, SLList-tc.cc, arith-ops.cc, balance.cc, |
|
6937 bogus.cc, chol.cc, colloc.cc, dassl.cc, data.cc, det.cc, |
|
6938 dirfns.cc, eig.cc, error.cc, expm.cc, fft.cc, fft2.cc, file-io.cc, |
|
6939 filter.cc, find.cc, fsolve.cc, fsqp.cc, givens.cc, gripes.cc, |
|
6940 help.cc, hess.cc, ifft.cc, ifft2.cc, input.cc, inv.cc, |
|
6941 load-save.cc, log.cc, lpsolve.cc, lsode.cc, lu.cc, minmax.cc, |
|
6942 npsol.cc, oct-hist.cc, oct-obj.cc, oct-stream.cc, pager.cc, |
|
6943 pinv.cc, pr-output.cc, pt-cmd.cc, pt-const.cc, pt-exp-base.cc, |
|
6944 pt-exp.cc, pt-fcn.cc, pt-fvc-base.cc, pt-fvc.cc, pt-mat.cc, |
|
6945 pt-misc.cc, pt-mvr-base.cc, pt-mvr.cc, pt-plot.cc, qpsol.cc, |
|
6946 qr.cc, quad.cc, qzval.cc, rand.cc, resource.cc, schur.cc, sort.cc, |
|
6947 strfns.cc, svd.cc, syl.cc, symtab.cc, syscalls.cc, sysdep.cc, |
|
6948 timefns.cc, toplev.cc, utils.cc, variables.cc, xpow.cc, parse.y: |
|
6949 Rename tree_constant -> octave_value. |
|
6950 Rename Octave_object -> octave_value_list. |
|
6951 |
|
6952 Wed Apr 24 22:15:34 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6953 |
|
6954 * toplev.cc (Fsystem): Merge functionality of async_system and |
|
6955 sync_system. |
|
6956 |
|
6957 * oct-fstrm.h, oct-iostrm.h, oct-prcstrm.h, oct-stdstrm.h, |
|
6958 oct-stream.h, oct-strstrm.h, oct-fstrm.cc, oct-iostrm.cc, |
|
6959 oct-prcstrm.cc, oct-stdstrm.cc, oct-stream.cc, oct-strstrm.cc, |
|
6960 Array-os.cc: New files. |
|
6961 * Makefile.in: Add them to the appropriate lists. |
|
6962 * file-io.cc: Rewrite to use new stream classes. |
|
6963 |
|
6964 Tue Apr 23 18:59:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6965 |
|
6966 * gripes.cc (gripe_not_supported): New function. |
|
6967 |
|
6968 * toplev.cc (do_octave_atexit, Fatexit): New functions. |
|
6969 (octave_atexit_functions): New file-scope variable. |
|
6970 * octave.cc (main): Register do_octave_atexit with atexit. |
|
6971 |
|
6972 * variables.cc (install_builtin_variables): Call |
|
6973 symbols_of_syscalls here. |
|
6974 |
|
6975 * syscalls.h, syscalls.cc: New files. |
|
6976 |
|
6977 Mon Apr 22 21:14:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6978 |
|
6979 * syscalls.cc: New file. |
|
6980 (Flstat, Fmkfifo, Fstat, Funlink, Fwait, Fwaitpid): Move here. |
|
6981 * file-io.cc: From here. |
|
6982 * Makefile.in (SOURCES): Add syscalls.cc to the list. |
|
6983 |
|
6984 Wed Apr 17 18:34:10 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6985 |
|
6986 * file-info.h, file-info.cc: Delete files. |
|
6987 * Makefile.in: Remove from lists. |
|
6988 |
|
6989 * toplev.cc (Fquit): Accept exit status argument. |
|
6990 (Fflops): Delete (now a function file). |
|
6991 |
|
6992 Thu Apr 11 16:20:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6993 |
|
6994 * lex.l: Recognize `.'. |
|
6995 Update current_input_column even for unrecognized characters. |
|
6996 Return LEXICAL_ERROR for unrecognized characters. |
|
6997 |
|
6998 Mon Apr 8 19:59:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6999 |
|
7000 * variables.cc (install_builtin_variables): Split into several |
|
7001 functions to make compiling with g++ go faster and consume less |
|
7002 memory. |
|
7003 |
|
7004 Sun Apr 7 16:25:35 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7005 |
|
7006 * load-save.cc (Fsave): Print usage if i == argc. |
|
7007 (Fload): Likewise. |
|
7008 |
|
7009 Sat Apr 6 21:26:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7010 |
|
7011 * Makefile.in (clean): Also delete pic/*.o |
|
7012 (maintainer-clean, distclean): Also remove stamp-picdir, |
|
7013 stamp-tinst, stamp-interp, and pic directory. |
|
7014 (stamp-prereq): New target. |
|
7015 |
|
7016 Wed Apr 3 11:19:30 1996 Rick Niles <niles@axp745.gsfc.nasa.gov> |
|
7017 |
|
7018 * resource.cc: Don't make including sys/resource.h and sys/times.h |
|
7019 mutually exclusive. |
|
7020 |
|
7021 Fri Mar 29 13:43:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7022 |
|
7023 * Makefile.in (distclean): Delete so_locations, which is created |
|
7024 on DEC Alpha systems. |
|
7025 |
|
7026 Thu Mar 28 02:53:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7027 |
|
7028 * utils.h (undo_string_escape): Provide extern declaration here. |
|
7029 |
|
7030 * lex.l (NL): Allow \r\n as new line character. |
|
7031 (.): Complain if invalid character is found on input |
|
7032 |
|
7033 Fri Mar 22 03:47:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7034 |
|
7035 * resource.cc (getrusage): If getrusage is missing, try using |
|
7036 times to at least fill in the cpu time values. If neither one is |
|
7037 available, return 0 for cpu times instead of NaN. |
|
7038 |
|
7039 * sighandlers.cc (octave_signal_mask): New file-scope variable. |
|
7040 (octave_save_signal_mask, octave_restore_signal_mask): New functions. |
|
7041 * toplev.cc (main_loop): Use them. |
|
7042 |
|
7043 Wed Mar 20 01:21:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7044 |
|
7045 * utils.cc (get_fcn_file_names (const string&, int)): Resize |
|
7046 retval to value of k, not i. |
|
7047 (get_fcn_file_names (int)): In loop for copying names to retval, |
|
7048 don't increment j twice. |
|
7049 |
|
7050 Mon Mar 18 22:27:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7051 |
|
7052 * Makefile.in ($(MAKEDEPS)): Depend on oct-gperf.h. |
|
7053 |
|
7054 Fri Mar 1 18:15:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7055 |
|
7056 * fsolve.cc (fsolve_options): Delete unused argument nargout. |
|
7057 |
|
7058 * filter.cc: Use MArray instead of Array so that automatic |
|
7059 conversions will work again. |
|
7060 |
|
7061 Tue Feb 27 04:49:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7062 |
|
7063 * variables.cc (looks_like_octave_copyright): Make the strings |
|
7064 that we are trying to match both have length 29. |
|
7065 |
|
7066 * Makefile.in (install-bin): Use $(INSTALL_PROGRAM), not $(INSTALL). |
|
7067 |
|
7068 * load-save.cc (read_mat_binary_data): Make sure name is |
|
7069 NUL terminated. |
|
7070 |
|
7071 Mon Feb 26 18:18:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7072 |
|
7073 * variables.cc (whos): Make argv from tmp_args, not args. |
|
7074 |
|
7075 * defun.h (DEFCONSTX): Don't stringify name. |
|
7076 |
|
7077 Sat Feb 24 01:12:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7078 |
|
7079 * Makefile.in (install-oct): Make mk-oct-links executable. |
|
7080 * mk-oct-links.in (links_dir): Update to match new format of |
|
7081 DEFUN_DLD_BUILTIN macro. Use LN_S, not just LN. |
|
7082 (links_dir): |
|
7083 |
|
7084 * pr-output.cc (octave_print_internal): New arg, extra_indent, for |
|
7085 versions of this function that take matrices and ranges. |
|
7086 * pt-const.cc (TC_REP::print (ostream&)): Fix printing of structures. |
|
7087 Pass struct_indent to octave_print_internal as appropriate. |
|
7088 (print_with_name (ostream&, const string&, bool)): Handle spacing |
|
7089 around `=' differently for structures. |
|
7090 |
|
7091 Fri Feb 23 04:51:04 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7092 |
|
7093 * token.cc (token (double, const string&, int, int)): Store orig_text. |
|
7094 |
|
7095 Tue Feb 20 20:36:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7096 |
|
7097 * variables.cc (Fclear): Fix off-by-one error. |
|
7098 |
|
7099 Sat Feb 17 16:54:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7100 |
|
7101 * oct-hist.cc (default_history_file): Append "/.octave_hist" to |
|
7102 return value, not to home_directory. |
|
7103 |
|
7104 Fri Feb 16 18:10:46 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7105 |
|
7106 * utils.cc: (NINT, D_NINT): Move to liboctave. |
|
7107 |
|
7108 * sysdep.cc (octave_ieee_init): Move to liboctave. |
|
7109 |
|
7110 * procstream.h, procstream.cc: Rewrite. |
|
7111 |
|
7112 * pager.cc (cleanup_oprocstream): New static function. |
|
7113 * toplev.cc (cleanup_iprocstream): Likewise. |
|
7114 * dirfns.cc (cleanup_iprocstream): Likewise. |
|
7115 |
|
7116 * unwind-prot.cc (matrix_cleanup, complex_matrix_cleanup): Delete. |
|
7117 |
|
7118 Thu Feb 15 22:03:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7119 |
|
7120 * oct-obj.cc, oct-obj.h: Move most code to the header. |
|
7121 |
|
7122 * oct-obj.cc (make_argv, all_strings): New member functions. |
|
7123 * utils.cc: Moved from here. |
|
7124 |
|
7125 * load-save.cc: Move byte swapping stuff to liboctave. |
|
7126 Move float format conversion stuff to liboctave. |
|
7127 (all_parts_int, too_large_for_float): Move to liboctave. |
|
7128 |
|
7129 * symtab.cc (valid_identifier): Move here. |
|
7130 * load-save.cc: From here. |
|
7131 |
|
7132 * sysdep.cc: Move floating-point format stuff to liboctave. |
|
7133 * pr-output.cc: Include float-fmt.h here. |
|
7134 |
|
7135 Wed Feb 14 01:49:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7136 |
|
7137 * defun.h, defun-dld.h, defun-int.h: Simplify interface for DEFUN, |
|
7138 DEFUN_DLD, DEFVAR, and DEFCONST macros. Change all uses. |
|
7139 |
|
7140 * qzval.cc: Move guts to liboctave. |
|
7141 |
|
7142 Tue Feb 13 10:28:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7143 |
|
7144 * variables.cc (parse_fcn_file): Also avoid saving history if |
|
7145 input is from a script file. |
|
7146 |
|
7147 * help.cc (Ftype): Call unwind_protect_str for user_pref.ps4. |
|
7148 |
|
7149 * npsol.cc (nonlinear_constraints_ok): Now static. |
|
7150 |
|
7151 * npsol.cc (linear_constraints_ok): Now static. |
|
7152 * qpsol.cc (linear_constraints_ok): Duplicate here. |
|
7153 |
|
7154 * data.cc (Flinspace): Don't print usage message if nargin == 2. |
|
7155 |
|
7156 Sun Feb 11 14:20:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7157 |
|
7158 * mk-oct-links.in: Rename from mk-oct-links. |
|
7159 (LN_S): Use this variable instead of ln. |
|
7160 Set -e option for shell. |
|
7161 Exit with status of last command. |
|
7162 Print message when making link. |
|
7163 * Makefile.in (DISTFILES): Add mk-oct-links.in to the list. |
|
7164 (install-oct): Run ./mk-oct-links, not $(srcdir)/mk-oct-links. |
|
7165 |
|
7166 * variables.cc (install_builtin_variables): Restore accidentally |
|
7167 deleted DEFVAR for save_precision. |
|
7168 |
|
7169 Fri Feb 9 11:24:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7170 |
|
7171 * Makefile.in (INCLUDES): Delete statdefs.h from the list (it's |
|
7172 now in the liboctave directory). |
|
7173 |
|
7174 * toplev.cc (toplevel): Define here. |
|
7175 * octave.cc (toplevel): Not here. |
|
7176 |
|
7177 * toplev.cc (main_loop): New function. |
|
7178 * octave.cc (main): Call it here instead of doing main loop |
|
7179 actions here. |
|
7180 |
|
7181 * user-prefs.cc (do_fortran_indexing): Also set liboctave_dfi_flag. |
|
7182 (prefer_column_vectors): Also set liboctave_pcv_flag. |
|
7183 (prefer_zero_one_indexing): Also set liboctave_pzo_flag. |
|
7184 (resize_on_range_error): Also set liboctave_rre_flag. |
|
7185 |
|
7186 * variables.cc (restore_command_history): New function. |
|
7187 (parse_fcn_file): Use it here in unwind_protect. |
|
7188 |
|
7189 * dynamic-ld.cc (load_octave_oct_file): Reverse sense of test. |
|
7190 (load_octave_builtin): Delete. |
|
7191 (mangle_octave_oct_file_name): Delete. |
|
7192 |
|
7193 * pt-fvc.cc (tree_builtin::eval): Don't try to dynamically load |
|
7194 functions here. |
|
7195 |
|
7196 * pr-output.cc (set_format_style): Decrement argc for first arg too. |
|
7197 |
|
7198 * input.cc (gnu_readline): If readline returns an empty string, |
|
7199 convert it to a string containing a single newline character. |
|
7200 |
|
7201 * octave.cc (octave_argv): Now a static string_vector. |
|
7202 (intern_argv): Use string_vector ops, not charMatrix ops. |
|
7203 * toplev.cc (octave_argv): Delete definition. |
|
7204 * toplev.h (octave_argv): Delete declaration. |
|
7205 |
|
7206 Thu Feb 8 10:58:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7207 |
|
7208 * Makefile.in (conf-dist): New target. |
|
7209 |
|
7210 Tue Feb 6 10:59:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7211 |
|
7212 * help.cc (Ftype): Correctly handle structure names. |
|
7213 |
|
7214 Sun Feb 4 02:02:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7215 |
|
7216 * qpsol.cc (Fqpsol): Call set_options(), not copy() to set |
|
7217 options for QPSOL objects. |
|
7218 |
|
7219 * npsol.cc (Fnpsol): Call set_options(), not copy() to set |
|
7220 options for NPSOL objects. |
|
7221 |
|
7222 * quad.cc (Fquad): Call set_options(), not copy() to set |
|
7223 options for Quad objects. |
|
7224 |
|
7225 * dynamic-ld.cc (load_octave_builtin): Don't call destructor on string. |
|
7226 (load_octave_oct_file): Likewise. |
|
7227 Check oct_file.empty(), not just oct_file. |
|
7228 |
|
7229 * fsolve.cc (Ffsolve): Call set_options(), not copy() to set |
|
7230 options for NLEqn object. |
|
7231 |
|
7232 * variables.cc (do_who): Properly set match patterns from argument |
|
7233 vector for call to maybe_list. |
|
7234 |
|
7235 Sat Feb 3 03:29:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7236 |
|
7237 * octave.cc (long_opts): Properly set second field using new enum. |
|
7238 |
|
7239 * lsode.cc: Change ODE to LSODE where appropriate. |
|
7240 Use LSODE_options, not ODE_options. |
|
7241 |
|
7242 * dassl.cc: Change DAE to DASSL where appropriate. |
|
7243 Use DASSL_options, not ODE_options. |
|
7244 |
|
7245 Fri Feb 2 01:41:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7246 |
|
7247 * dirfns.cc: Include unistd.h. |
|
7248 |
|
7249 * parse.y, lex.l: Handle matrix lists without ml or mlnm stacks. |
|
7250 * pt-mat.h, pt-mat.cc (tree_matrix): |
|
7251 Rewrite to use SLList instead of home brew list. |
|
7252 * SLList-tm.cc: New file |
|
7253 * Makefile.in: Add it to the lists. |
|
7254 * SLStack-tm.cc: Delete. |
|
7255 * Makefile.in: Delete it from the lists. |
|
7256 |
|
7257 * All pt-* files: Use bool instead of int where appropriate. |
|
7258 |
|
7259 * Makefile.in (DEP_SOURCES_3): Add octave.cc. |
|
7260 |
|
7261 * pt-const.h (class tree_constant::tree_constant_rep): Make |
|
7262 everything in this class public, then it doesn't need to declare |
|
7263 the tree_constant class as a friend. |
|
7264 |
|
7265 Thu Feb 1 01:42:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7266 |
|
7267 * lex.h, lex.l, parse.h, parse.y (class lexical_feedback): New |
|
7268 class for lexer flags. Replace lots of global vars with members |
|
7269 of this class. |
|
7270 |
|
7271 * lex.l (class brace_paren_nesting_level): New class to replace |
|
7272 nesting_level stack. nesting_level is now an instance of this |
|
7273 class. |
|
7274 |
|
7275 * lex.l (yum_yum): New typedef. |
|
7276 (ATE_NOTHING): New global var. |
|
7277 (ATE_SPACE_OR_TAB, ATE_NEWLINE): Don't #define these, declare them |
|
7278 as const yum_yum. |
|
7279 (eat_whitespace, eat_continuation): Return yum_yum, not int. |
|
7280 |
|
7281 * lex.l (SHORT_CIRCUIT_LOGICALS): Delete. Always do this for || |
|
7282 and && tokens. |
|
7283 (yy_flex_alloc, yy_flex_realloc, yy_flex_free, next_char_is_space): |
|
7284 Delete. |
|
7285 |
|
7286 * toplev.cc (verbose_flag): Delete definition. |
|
7287 * toplev.h (verbose_flag): And declaration. |
|
7288 * octave.cc (verbose_flag): Now static. |
|
7289 |
|
7290 * lex.l (lookup_identifier): Arg is now string, not char*. |
|
7291 (handle_identifier, is_plot_keyword, is_keyword): Likewise. |
|
7292 (strip_trailing_whitespace): Return value is now string, not char*. |
|
7293 (plot_style_token): Likewise, for both arg and return value. |
|
7294 |
|
7295 * input.cc (octave_gets_line): Delete. |
|
7296 (gnu_readline, octave_gets, octave_read): |
|
7297 Properly handle input when using_readline is either true or false. |
|
7298 Don't limit length of input lines to flex buffer size. |
|
7299 (get_user_input): New function. |
|
7300 |
|
7301 * octave.cc (main): Handle --no-line-editing. |
|
7302 * toplev.h (using_readline): Provide external declaration here. |
|
7303 * input.h: Not here. |
|
7304 * toplev.cc (using_readline): Define here. |
|
7305 * input.cc: Not here. |
|
7306 |
|
7307 * toplev.h (no_line_editing): Delete declaration. |
|
7308 * input.cc (no_line_editing): Delete definition. |
|
7309 |
|
7310 Wed Jan 31 05:28:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7311 |
|
7312 * input.cc (DEFAULT_ARRAY_SIZE, PROMPT_GROWTH): Delete definitions |
|
7313 of unused macros. |
|
7314 (read_octal): Now static. |
|
7315 |
|
7316 * givens.cc (Fgivens): Use new functions from matrix classes |
|
7317 instead of calling Fortran functions directly. |
|
7318 * syl.cc (Fsyl): Likewise. |
|
7319 * expm.cc (Fexpm): Likewise. |
|
7320 |
|
7321 Mon Jan 29 00:00:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7322 |
|
7323 * octave.cc: Use new prog_args class instead of calling getopt |
|
7324 directly. |
|
7325 |
|
7326 * getopt.h, getopt.c, getopt1.c: Move to liboctave directory. |
|
7327 * Makefile: Remove from lists. |
|
7328 |
|
7329 * utils.cc (strconcat, read_until, discard_until): Delete. |
|
7330 |
|
7331 * pager.cc (terminal_columns, terminal_rows): Move to |
|
7332 liboctave/oct-term.cc. |
|
7333 * pager.cc, pr-output.cc: Include oct-term.h. |
|
7334 |
|
7335 * utils.cc (list_in_columns): Moved to liboctave/str-vec.cc. |
|
7336 Change all callers to use new member function syntax. |
|
7337 |
|
7338 * dirfns.cc (absolute_program): Now static. |
|
7339 (absolute_pathname): Delete. |
|
7340 |
|
7341 * pt-plot.cc (save_in_tmp_file): Call oct_tempnam, not |
|
7342 octave_tmp_file_name. Include file-ops.h. |
|
7343 * file-io.cc (do_scanf, Foctave_tmp_file_name): Likewise. |
|
7344 * oct-hist.cc (mk_tmp_hist_file): Likewise. |
|
7345 |
|
7346 * file-io.cc (Foctave_tmp_file_name): Move here. |
|
7347 * utils.cc: From here. |
|
7348 |
|
7349 * utils.cc (octave_tmp_file_name): Move to liboctave/file-ops.cc. |
|
7350 |
|
7351 * tempname.c, tempnam.c: Move to liboctave directory. |
|
7352 * Makefile.in: Remove from lists. |
|
7353 |
|
7354 Sun Jan 28 19:00:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7355 |
|
7356 * xdiv.cc (all xdiv functions): Return Matrix or ComplexMatrix, |
|
7357 not tree_constant. |
|
7358 |
|
7359 * oct-hist.h, oct-hist.cc, toplev.cc, octave.cc, input.cc, |
|
7360 file-io.cc, user-prefs.cc: Rewrite to use new command_history |
|
7361 class instead of calling readline history functions directly. |
|
7362 |
|
7363 * utils.cc (get_fcn_file_names): Delete num arg. |
|
7364 |
|
7365 Thu Jan 25 20:33:54 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7366 |
|
7367 * load-save.cc (matches_patterns): Use new glob_match class |
|
7368 instead of calling fnmatch directly. |
|
7369 * symtab.cc (matches_patterns, symbol_table::glob): Likewise. |
|
7370 * variables.cc (Fclear): Likewise. |
|
7371 |
|
7372 Wed Jan 24 02:05:22 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7373 |
|
7374 * fnmatch.h fnmatch.c: Delete. |
|
7375 * Makefile.in: Add glob stuff in the appropriate places, remove |
|
7376 fnmatch.h and fnmatch.c from lists. |
|
7377 |
|
7378 * octave.cc (program_invocation_name, program_invocation_short_name): |
|
7379 Maybe declare. |
|
7380 (initialize_globals): Maybe initialize them. |
|
7381 |
|
7382 * octave.cc (initialize_pathsearch): Define here, not in pathsearch.cc. |
|
7383 * pathsearch.h, pathsearch.cc: Remove files. |
|
7384 * Makefile.in: Remove them from the lists. |
|
7385 |
|
7386 * help.cc (simple_help): Ignore directories that don't have any .m |
|
7387 or .oct files. |
|
7388 |
|
7389 * utils.cc (search_path_for_file): Use new dir_path class instead |
|
7390 of calling kpathsea routines directly. |
|
7391 (get_fcn_file_names): Likewise. |
|
7392 * help.cc (simple_help): Likewise. |
|
7393 |
|
7394 * dirfns.cc (make_absolute): Don't convert empty arg to "./". |
|
7395 |
|
7396 * sysdir.h: Move to liboctave directory. |
|
7397 * Makefile.in: Remove from lists. |
|
7398 |
|
7399 * dirfns.cc (Freaddir): Use new dir_entry class instead of calling |
|
7400 readdir directly. Include dir-ops.h, not sysdir.h. |
|
7401 * utils.cc (get_fcn_file_names): Likewise. Delete unnecessary |
|
7402 first arg, change all callers. |
|
7403 |
|
7404 Tue Jan 23 00:43:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7405 |
|
7406 * safe-xstat.hin, safe-xstat.cin, statdefs.h, file-ops.h, |
|
7407 file-ops.cc, filemode.c, mkdir.c, rmdir.c, rename.c: |
|
7408 Files moved to liboctave directory. |
|
7409 * Makefile.in: Remove them from lists. Move appropriate rules. |
|
7410 |
|
7411 * acosh.c, asinh.c, atanh.c, erf.c, erfc.c, gamma.c, lgamma.c: |
|
7412 Files moved to liboctave directory. |
|
7413 * Makefile.in: Remove them from lists. |
|
7414 * missing-math.h: Deleted. |
|
7415 * pr-output.cc, sysdep.cc, minmax.cc, mappers.cc, expm.cc, |
|
7416 arith-ops.cc: Include oct-math.h, not cmath or missing-math.h. |
|
7417 |
|
7418 Mon Jan 22 19:33:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7419 |
|
7420 * variables.cc (Fexist): Use file_stat instead of calling stat |
|
7421 directly. Include file-ops.h, not statdefs.h. |
|
7422 * octave.cc (execute_startup_files): Likewise. |
|
7423 * file-io.cc (file_io_get_file, fopen_internal, popen_internal, Fstat): |
|
7424 Likewise. |
|
7425 (mk_stat_map): Likewise, use file_stat object, not struct stat. |
|
7426 * oct-hist.cc (do_history): Likewise. |
|
7427 |
|
7428 * file-ops.h, file-stat.cc: New files. |
|
7429 * Makefile.in: Include them. |
|
7430 * dirfns.cc: Delete is_newer. Don't include statdefs.h. |
|
7431 * toplev.cc: Don't include statdefs.h. |
|
7432 |
|
7433 Sun Jan 21 22:48:03 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7434 |
|
7435 * pt-mvr.h, pt-fvc.h, Map.cc, Map.h, dynamic-ld.h, |
|
7436 pt-fvc-base.cc, SLList-str.cc, pt-fcn.h, pt-fvc-base.h, |
|
7437 SLStack-str.cc, pt-mvr.cc, pt-exp.cc, token.h, token.cc, |
|
7438 user-prefs.h, pt-base.cc, user-prefs.cc, dirfns.h, sysdep.h, |
|
7439 sysdep.cc, input.h, parse.h, lex.l, parse.y, defun.h, mappers.h, |
|
7440 pt-fvc.cc, pt-plot.h, load-save.h, octave.cc, defun-int.h, help.h, |
|
7441 variables.h, oct-map.h, oct-obj.h, oct-obj.cc, pt-const.cc, |
|
7442 oct-map.cc, input.cc, symtab.h, pt-const.h, pathsearch.cc, |
|
7443 pr-output.h, pr-output.cc, toplev.h, timefns.cc, schur.cc, |
|
7444 pt-plot.cc, pager.cc, load-save.cc, dynamic-ld.cc, dirfns.cc, |
|
7445 data.cc, file-info.h, file-info.cc, colloc.cc, utils.h, qpsol.cc, |
|
7446 quad.cc, npsol.cc, lsode.cc, fsolve.cc, dassl.cc, file-io.cc, |
|
7447 help.cc, utils.cc, oct-hist.h, oct-hist.cc, symtab.cc, toplev.cc, |
|
7448 pt-fcn.cc, unwind-prot.h, unwind-prot.cc, variables.cc: |
|
7449 Most functions in these files that deal with character strings |
|
7450 have been converted to use the string class insatead of char*. If |
|
7451 you want more detailed information, you'll have to figure it out |
|
7452 for yourself. |
|
7453 |
|
7454 Sat Jan 20 18:19:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7455 |
|
7456 * dynamic-ld.cc [WITH_DL]: Define RTLD_LAZY to be 1 if it is not |
|
7457 already defined. |
|
7458 |
|
7459 Sun Jan 14 07:48:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7460 |
|
7461 * pt-const.cc (print_as_scalar, print_as_structure): |
|
7462 Make these member functions. |
|
7463 (tree_constant::print_with_name): New function, moved here from |
|
7464 old tree-expr.cc file (where it was called print_constant) and |
|
7465 converted to member function. Change all callers. |
|
7466 |
|
7467 Fri Jan 12 01:54:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7468 |
|
7469 * octave.cc (initialize_globals): Don't do kpathsearch stuff here. |
|
7470 (main): Call initialize_pathsearch() here. |
|
7471 |
|
7472 * pathsearch.cc: New file. |
|
7473 * Makefile.in (SOURCES): Add it to the list |
|
7474 |
|
7475 * oct-hist.h: Rename from octave-hist.h. |
|
7476 * oct-hist.cc: Rename from octave-hist.cc. |
|
7477 * Makefile.in, parse.y, other .cc files: Cope with it. |
|
7478 |
|
7479 * dynamic-ld.cc: Avoid warnings if !WITH_DYNAMIC_LINKING. |
|
7480 |
|
7481 * load-save.cc (save_ascii_data): string::data() returns const char*. |
|
7482 |
|
7483 * utils.h: Don't provide forward declaration for tree_constant. |
|
7484 |
|
7485 * oct-obj.h: Don't include mx-base.h or provide forward |
|
7486 declarations for Matrix and Range types. |
|
7487 |
|
7488 * file-info.h: Don't include oct-obj.h. Do include cstdio. |
|
7489 |
|
7490 * symtab.h: Don't provide forward declaration for ostream. |
|
7491 |
|
7492 * variables.h: Don't provide forward declarations for istream, |
|
7493 ostrstream, tree, builtin_function, or builtin_variable objects. |
|
7494 |
|
7495 * balance.cc, chol.cc, colloc.cc, dassl.cc, det.cc, eig.cc, |
|
7496 expm.cc, fft.cc, fft2.cc, filter.cc, find.cc, fsolve.cc, fsqp.cc, |
|
7497 givens.cc, hess.cc, ifft.cc, ifft2.cc, inv.cc, log.cc, lpsolve.cc, |
|
7498 lsode.cc, lu.cc, minmax.cc, npsol.cc, pinv.cc, qpsol.cc, qr.cc, |
|
7499 quad.cc, qzval.cc, rand.cc, schur.cc, sort.cc, svd.cc, syl.cc: |
|
7500 Clean up #include statements. |
|
7501 |
|
7502 * pt-const.h: Don't include oct-obj.h or tree-base.h. |
|
7503 Provide forward declaration of Octave_object here. |
|
7504 * pt-const.cc: Include oct-obj.h here. |
|
7505 |
|
7506 * pt-mat.h, pt-fcn.h, pt-const.h, pt-misc.h, pt-plot.h, |
|
7507 pt-exp-base.h, pt-cmd.h, pt-fvc-base.h, pt-mvr-base.h, pt-exp.h, |
|
7508 pt-mvr.h, pt-fvc.h: New files, split from tree-expr.h and/or |
|
7509 renamed from other tree-*.h files (pt == parse tree). |
|
7510 * pt-base.cc, pt-const.cc, pt-exp.cc, pt-fvc-base.cc, pt-mat.cc, |
|
7511 pt-mvr-base.cc, pt-plot.cc, pt-cmd.cc, pt-exp-base.cc, pt-fcn.cc, |
|
7512 pt-fvc.cc, pt-misc.cc, pt-mvr.cc: Likewse, split from tree-expr.cc |
|
7513 and/or other tree-*.cc files. |
|
7514 * Makefile.in: Include them in the appropriate lists. |
|
7515 * All: Fix #include statements to match. |
|
7516 |
|
7517 * Array-tc.cc: Don't instantiate ArrayRep objects. |
|
7518 |
|
7519 Thu Jan 11 02:35:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7520 |
|
7521 * tree-const.cc (tree_constant::eval (int, int, const Octave_object&)): |
|
7522 Define here instead of in tree-const.h. |
|
7523 |
|
7524 Wed Jan 10 04:34:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7525 |
|
7526 * tree-const.h (tree_constant::tree_constant (const string&): |
|
7527 * tree-const.cc (TC_REP::tree_constant_rep (const string&)): |
|
7528 New constructor. |
|
7529 |
|
7530 Tue Jan 9 04:10:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7531 |
|
7532 * rand.cc (do_rand): Use string_value() result directly instead of |
|
7533 c_str() conversion. |
|
7534 * balance.cc (Fbalance): Likewise. |
|
7535 |
|
7536 * tree-const.cc (TC_REP::string_value()): |
|
7537 Handle new definition of charMatrix::row_as_string() |
|
7538 * load-save.cc (save_ascii_data): Ditto. |
|
7539 (save_binary_data): Ditto. |
|
7540 * pr-output.cc (octave_print_internal): Ditto. |
|
7541 |
|
7542 * balance.cc (Fbalance): |
|
7543 Handle new definition of TC_REP::string_value() |
|
7544 * colloc.cc (Fcolloc): Ditto. |
|
7545 * dassl.cc (Fdassl_options): Ditto. |
|
7546 * data.cc (Fstruct_contains): Ditto. |
|
7547 * dirfns.cc (Fmkdir): Ditto. |
|
7548 (Freaddir): Ditto. |
|
7549 (Frmdir): Ditto. |
|
7550 (Frename): Ditto. |
|
7551 * error.cc (handle_message): Ditto. |
|
7552 * file-io.cc (process_printf_format): Ditto. |
|
7553 (fopen_internal): Ditto. |
|
7554 (file_io_get_file): Ditto. |
|
7555 (return_valid_file): Ditto. |
|
7556 (Flstat): Ditto. |
|
7557 (Fstat): Ditto. |
|
7558 (unlink_internal): Ditto. |
|
7559 (mkfifo_internal): Ditto. |
|
7560 (async_system_internal): Ditto. |
|
7561 (sync_system_internal): Ditto. |
|
7562 (execute_internal): Ditto. |
|
7563 (popen_internal): Ditto. |
|
7564 (fwrite_internal): Ditto. |
|
7565 (fread_internal): Ditto. |
|
7566 (do_printf): Ditto. |
|
7567 (do_scanf): Ditto. |
|
7568 * input.cc (get_user_input): Ditto. |
|
7569 * lsode.cc (Flsode_options): Ditto. |
|
7570 * npsol.cc (Fnpsol_options):Ditto. |
|
7571 * qpsol.cc (Fqpsol_options):Ditto. |
|
7572 * quad.cc (Fquad_options): Ditto. |
|
7573 * rand.cc (do_rand): Ditto. |
|
7574 * schur.cc (Fschur): Ditto. |
|
7575 * sysdep.cc (Fputenv): Ditto. |
|
7576 (Fgetenv): Ditto. |
|
7577 * timefns.cc (extract_tm): Ditto. |
|
7578 (Fstrftime): Ditto. |
|
7579 * toplev.cc (Fsource): Ditto. |
|
7580 (eval_string): Ditto. |
|
7581 (Fsystem): Ditto. |
|
7582 * tree-plot.cc (subplot::handle_plot_data): Ditto. |
|
7583 * variables.cc (is_valid_function): Ditto. |
|
7584 (Fis_global): Ditto. |
|
7585 (Fexist): Ditto. |
|
7586 (builtin_string_variable): Ditto. |
|
7587 * utils.cc (make_argv): Ditto. |
|
7588 (Fundo_string_escapes): Ditto. |
|
7589 |
|
7590 Mon Jan 8 01:54:50 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7591 |
|
7592 * Makefile.in (install-bin): Use $(LN_S), not just ln. |
|
7593 |
|
7594 * variables.cc (octave_fcn_file_dir): New function. |
|
7595 * tree-expr.cc (mark_as_system_fcn_file): Use it instead of |
|
7596 octave_lib_dir. |
|
7597 |
|
7598 * Makefile.in (clean): If $(SHARED_LIBS), also remove shared libs. |
|
7599 |
|
7600 * pr-output.cc (set_format (const ComplexMatrix&, int&, int&)): |
|
7601 Unconditionally call all_elements_are_int_or_inf_or_nan(). |
|
7602 (set_format (const Matrix&, int&, int&)): Likewise. |
|
7603 |
|
7604 Sun Jan 7 19:12:39 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7605 |
|
7606 * utils.cc (oct_putenv): New function. |
|
7607 * sysdep.cc (Fputenv): Use oct_putenv. |
|
7608 * octave.cc (initialize_globals): Likewise. |
|
7609 |
|
7610 Sat Jan 6 23:22:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7611 |
|
7612 * sysdep.cc (Fputenv): New function. |
|
7613 |
|
7614 * input.cc (initialize_readline): Call rl_initialize() here. |
|
7615 |
|
7616 * octave.cc: Conditionally define atexit to be on_exit here. |
|
7617 * toplev.cc: Not here. |
|
7618 |
|
7619 Fri Jan 5 14:01:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7620 |
|
7621 * toplev.cc: Don't include <pwd.h> here. |
|
7622 |
|
7623 * octave-hist.cc, tree-plot.cc, utils.cc: Do include "sysdep.h". |
|
7624 |
|
7625 * dirfns.cc, file-io.cc, help.cc, load-save.cc, octave.cc, |
|
7626 octave-hist.cc, tree-plot.cc, utils.cc: |
|
7627 Don't include <readline/tilde.h>. |
|
7628 * sysdep.h: Do include it here. |
|
7629 |
|
7630 * tree-const.cc (TC_REP::assign (tree_constant&, Octave_object&)): |
|
7631 If we have a matrix or range, call maybe_mutate before returning. |
|
7632 |
|
7633 Sun Dec 31 15:56:18 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7634 |
|
7635 * npsol.cc (Fnpsol): Improve doc string. |
|
7636 * qpsol.cc (Fqpsol): Likewise. |
|
7637 |
|
7638 Fri Dec 29 21:46:58 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7639 |
|
7640 * defun-dld.h: Make work again for OCTAVE_LITE and |
|
7641 WITH_DYNAMIC_LINKING. |
|
7642 |
|
7643 * Makefile.in: Handle shared libraries. |
|
7644 |
|
7645 Wed Dec 27 17:47:51 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7646 |
|
7647 * mk-oct-links: New file. |
|
7648 * Makefile.in (install-oct): Use it. |
|
7649 * f-*.cc: Rename to *.cc. |
|
7650 |
|
7651 * Makefile.in (install-bin, install-lib, install-oct): New targets. |
|
7652 (install): Use them. |
|
7653 |
|
7654 Tue Dec 26 21:38:22 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7655 |
|
7656 * toplev.cc (reading_startup_message_printed): Move initialization |
|
7657 here and make extern. |
|
7658 |
|
7659 * dirfns.cc, dynamic-ld.cc, help.cc, input.cc, octave-hist.cc, |
|
7660 octave.cc, sighandlers.cc, sysdep.cc, tree-expr.cc, tree-misc.cc, |
|
7661 utils.cc, variables.cc, parse.y, lex.l: Include toplev.h instead |
|
7662 of octave.h. |
|
7663 * toplev.h: rename from octave.h. |
|
7664 |
|
7665 * octave.cc (main): Delete unused variable saved_sigint_handler. |
|
7666 |
|
7667 Sun Dec 24 00:26:54 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7668 |
|
7669 * dynamic-ld.cc: Massive re-write to handle dlopen/dlsym and |
|
7670 shl_load/shl_findsym methods of dynamic linking. |
|
7671 |
|
7672 * utils.cc (get_fcn_file_names): Check for .oct files if |
|
7673 WITH_DYNAMIC_LINKING, not WITH_DLD. |
|
7674 |
|
7675 * Makefile.in (LIB, TERMLIBS): Substitute values. |
|
7676 (octave): Add $(LIBS) to link command and use $(TERMLIBS) instead |
|
7677 of -ltermcap. |
|
7678 |
|
7679 Sat Dec 23 21:56:12 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7680 |
|
7681 * dynamic-ld.h, dynamic-ld.cc: Remove old unused code. |
|
7682 |
|
7683 * variables.cc (load_fcn_from_file): |
|
7684 Always call load_octave_oct_file. |
|
7685 |
|
7686 Wed Dec 20 00:56:57 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7687 |
|
7688 * pr-output.cc (set_real_format, set_real_matrix_format, |
|
7689 set_complex_format, set_complex_matrix_format, set_range_format): |
|
7690 New functions. Ensure the count of the digits to the right of the |
|
7691 decimal point is positive. |
|
7692 |
|
7693 * xpow.cc (xpow (const Matrix&, double)): Print warning if |
|
7694 inverting singular matrix (but return value anyway, in the name of |
|
7695 compatibility). |
|
7696 xpow (const ComplexMatrix&, double)): Likewise. |
|
7697 |
|
7698 * f-inv.cc (Finv): If matrix is singular, return result anyway, in |
|
7699 the name of compatibility. |
|
7700 |
|
7701 * symtab.cc (symbol_record::pop_context): |
|
7702 Don't assert (! context.empty ()). |
|
7703 |
|
7704 * tree-const.cc (TC_REP::char_matrix_value): Don't complain about |
|
7705 type conversion if object is an empty matrix.f |
|
7706 (TC_REP::assign): If rhs is a string, don't convert to numeric |
|
7707 type if rhs is empty or "". |
|
7708 Only widen if rhs is not empty. |
|
7709 Don't return 0x0 char_matrix if it is supposed to be a string. |
|
7710 |
|
7711 * arith-ops.h, mappers.h, pr-output.h, xdiv.h, xpow.h: Include |
|
7712 oct-cmplx.h in place of forward declaration for class Complex. |
|
7713 |
|
7714 * pr-output.cc, mappers.cc, arith-ops.cc, xdiv.cc, xpow.cc, |
|
7715 utils.cc: Include "oct-cmplx.h" instead of <Complex.h>. |
|
7716 |
|
7717 * octave.cc (initialize_error_handlers): Don't call |
|
7718 set_Complex_error_handler(). |
|
7719 (octave_Complex_error_handler): Delete unused function. |
|
7720 Delete declaration for set_Complex_error_handler(). |
|
7721 |
|
7722 * sighandlers.cc (catch_interrupts): New function. |
|
7723 * octave.cc (main): Call catch_interrupts() instead of calling |
|
7724 octave_set_signal_handler() directly. |
|
7725 |
|
7726 Tue Dec 19 03:22:37 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7727 |
|
7728 * variables.cc (looks_like_octave_copyright): Also recognize the |
|
7729 string " This program is free software". |
|
7730 |
|
7731 Thu Dec 14 01:54:06 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7732 |
|
7733 * octave-hist.cc (clean_up_history): Only write history file if |
|
7734 user_pref.saving_history. |
|
7735 |
|
7736 * octave-hist.cc (initialize_history, clean_up_history, |
|
7737 do_history): Perform tilde expansion on history file name. |
|
7738 |
|
7739 * octave.cc (main): Check `defined (HAVE_ON_EXIT)' not just |
|
7740 `(HAVE_ON_EXIT)'. |
|
7741 |
|
7742 * user-prefs.h (user_preferences): New fields, `history_file' and |
|
7743 `history_size'. |
|
7744 * user-prefs.cc (init_user_prefs): Initialize them. |
|
7745 (sv_history_file, history_size): New functions. |
|
7746 * variables.cc (install_builtin_variables): Initialize user-level |
|
7747 variables history_file and history_size. |
|
7748 * octave-hist.cc (default_history_size): Now extern. |
|
7749 (default_history_file): Likewise. |
|
7750 (octave_hist_size, octave_hist_file): Use user preference |
|
7751 variables instead. |
|
7752 * octave.cc (main): Call initialize_history after |
|
7753 execute_startup_files. |
|
7754 |
|
7755 Fri Dec 8 15:53:59 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7756 |
|
7757 * user-prefs.h (user_preferences): New field, `saving_history'. |
|
7758 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7759 (saving_history): New function. |
|
7760 * variables.cc (install_builtin_variables): Initialize user-level |
|
7761 variable saving_history. |
|
7762 * octave.cc (parse_and_execute): Don't reset value of |
|
7763 saving_history here. |
|
7764 (main) Use user_pref.saving_history instead of saving_history. |
|
7765 * variables.cc (parse_fcn_file): Likewise. |
|
7766 * octave-hist.cc (maybe_save_history): Likewise. |
|
7767 Don't save history if input_from_startup_file. |
|
7768 |
|
7769 Mon Nov 27 23:05:52 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7770 |
|
7771 * resource.cc: Include systime.h before <sys/resource.h>. |
|
7772 |
|
7773 Tue Nov 14 14:09:40 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7774 |
|
7775 * error.cc: Include cstring. |
|
7776 |
|
7777 * tree-expr.cc (print_code): Decrement indent level after printing |
|
7778 function body. |
|
7779 |
|
7780 * Makefile.in: Remove references to oct-str.cc, oct-str.h, and |
|
7781 Array-string.cc. |
|
7782 |
|
7783 * tree-const.h: Don't include oct-str.h. |
|
7784 |
|
7785 Mon Nov 6 11:16:49 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7786 |
|
7787 * parse.y (make_plot_command, finish_colon_expression, |
|
7788 make_unwind_protect, make_try_command, make_for_command, |
|
7789 make_break_command, make_continue_command, make_return_command, |
|
7790 start_if_command, finish_if_command, make_elseif_clause, |
|
7791 make_simple_assignment, make_multi_val_ret, start_function_def, |
|
7792 frob_function_def, finish_function_def, start_matrix, |
|
7793 finish_matrix): New functions. Use them in the grammar to clean |
|
7794 things up a bit. Possibly convert matrix lists, colon |
|
7795 expressions, binary expressions, and unary expressions to constant |
|
7796 values. |
|
7797 (tree_matrix_type): Delete. |
|
7798 (simple_expr1): Handle all expression stuff here, including |
|
7799 assignments. |
|
7800 (simple_expr): Just check to see that simple_expr1 produced |
|
7801 something useful. |
|
7802 |
|
7803 * tree-plot.cc, tree-plot.h: Move most simple constructors to the |
|
7804 header file. |
|
7805 |
|
7806 * tree-expr.h (tree_expression::is_constant): Move virtual |
|
7807 function definition here. |
|
7808 (tree_fvc::is_constant): From here. |
|
7809 (tree_expression::is_matrix_constant): New virtual function. |
|
7810 (tree_expression::is_range_constant): New virtual function. |
|
7811 * tree-expr.cc (tree_matrix::is_matrix_constant): New function. |
|
7812 * tree-expr.cc (tree_colon_expression::is_range_constant): New |
|
7813 function. |
|
7814 |
|
7815 Fri Nov 3 03:42:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7816 |
|
7817 * utils.cc, utils.h (jump_to_top_level): Declare as extern "C". |
|
7818 |
|
7819 * tree-const.h (tree_constant::eval ()): Only mutate if printing. |
|
7820 |
|
7821 * tree-const.cc (TC_REP::tree_constant_rep (const Complex&), |
|
7822 TC_REP::tree_constant_rep (const ComplexMatrix&), |
|
7823 TC_REP::tree_constant_rep (const ComplexDiagMatrix&), |
|
7824 TC_REP::tree_constant_rep (const ComplexRowVector&), |
|
7825 TC_REP::tree_constant_rep (const ComplexColumnVector&)): |
|
7826 Also check to see if we can convert to scalar_constant, not just |
|
7827 complex_scalar_constant. |
|
7828 |
|
7829 * user-prefs.h (user_preferences): New field, `exec_path'. |
|
7830 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7831 (sv_exec_path): New function. |
|
7832 * variables.cc (install_builtin_variables): Add DEFUN for EXEC_PATH. |
|
7833 (default_exec_path): New function. |
|
7834 * octave.cc (exec_path): New global variable. |
|
7835 Don't set and putenv() exec path here. |
|
7836 (long_opts): Add --exec-path option. |
|
7837 (main): Handle it. |
|
7838 (initialize_globals): Set default value here. |
|
7839 |
|
7840 * user-prefs.h (user_preferences): New field, `info_prog'. |
|
7841 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7842 (sv_info_prog): New function. |
|
7843 * variables.cc (install_builtin_variables): Add DEFUN for INFO_PROGRAM. |
|
7844 (default_info_prog): New function. |
|
7845 * octave.cc (info_prog): New global variable. |
|
7846 (initialize_globals): Set default value here. |
|
7847 (long_opts): Add --info-prog option. |
|
7848 (main): Handle it. |
|
7849 * help.cc (try_info): Use user_pref.info_prog here. |
|
7850 |
|
7851 * octave.cc (initialize_globals): Put arch_dir and bin_dir ahead |
|
7852 of shell_path when resetting PATH. |
|
7853 |
|
7854 Thu Nov 2 04:30:13 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7855 |
|
7856 * f-rand.cc (Frandn): New function. |
|
7857 (do_initialization): New function. |
|
7858 (do_rand): New function for doing the real work. |
|
7859 (Frand): Use it. |
|
7860 |
|
7861 * octave.cc (parse_and_execute): New arg, warn_for. If given, |
|
7862 print message if file cannot be opened. |
|
7863 Set curr_fcn_file_full_name here. |
|
7864 (Fsource): Pass extra arg to parse_and_execute to get warning message. |
|
7865 |
|
7866 * tree-const.h: Handle line and column info for double, Complex, |
|
7867 and char* constants. |
|
7868 |
|
7869 * parse.y (maybe_convert_to_ans_assign): Pass along line and |
|
7870 column info from expression. |
|
7871 |
|
7872 * parse.y (make_constant): New function. |
|
7873 (simple_expr1, word_list): Use it. |
|
7874 |
|
7875 * input.cc, input.h (curr_fcn_file_full_name): New global. |
|
7876 * variables.cc (load_fcn_from_file): Set it here. |
|
7877 * parse.y (func_def2, yyerror, maybe_warn_missing_semi): Use it. |
|
7878 (func_def2): If !reading_fcn_file, don't call strcmp if |
|
7879 curr_fcn_file_name is 0. |
|
7880 |
|
7881 * octave.cc (Fsource): New function. |
|
7882 (parse_and_execute): Declare file name const char *. |
|
7883 * input.cc (get_input_from_file): Likewise. |
|
7884 |
|
7885 Wed Nov 1 13:54:34 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7886 |
|
7887 * f-filter.cc: New file. |
|
7888 * Makefile.in (DLD_SRC): Add it to the list. |
|
7889 |
|
7890 * sysdep.h (gethostname): Change declaration to match definition |
|
7891 in sysdep.cc. |
|
7892 |
|
7893 * resource.cc: Include sysdep.h here, for octave_NaN. |
|
7894 |
|
7895 Tue Oct 31 02:12:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7896 |
|
7897 * tree-const.cc (TC_REP::assign): After converting rhs to a |
|
7898 numeric type, use the converted value, not the original. |
|
7899 |
|
7900 * dirfns.cc (Fpwd): If nargout == 0, print the directory name |
|
7901 instead of returning it. |
|
7902 |
|
7903 * pager.cc (maybe_page_output): Call maybe_write_to_diary_file here. |
|
7904 (flush_output_to_pager): Not here. |
|
7905 |
|
7906 Mon Oct 30 23:39:43 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7907 |
|
7908 * variables.cc (install_builtin_commands): Add DEFVAR for |
|
7909 echo_executing_commands. |
|
7910 |
|
7911 * octave-hist.cc (do_edit_history): Handle new echo stuff. |
|
7912 * variables.cc (parse_fcn_file): Likewise. |
|
7913 * octave.cc (parse_and_execute): Likewise. |
|
7914 (main): Likewise. |
|
7915 * input.cc (do_input_echo): |
|
7916 (Fecho): New function. |
|
7917 |
|
7918 * tree-expr.cc (tree_function::print_code_function_header, |
|
7919 tree_function::print_code_function_trailer): New functions. |
|
7920 (tree_function::print_code): Use them. |
|
7921 (tree_function::eval): Likewise, if echoing commands. |
|
7922 * tree-misc.cc (tree_statement::maybe_echo_code): New function. |
|
7923 |
|
7924 * user-prefs.h (user_preferences): New field, echo_executing_commands. |
|
7925 (echo_state): New enum, for various types of echoing we do. |
|
7926 * user-prefs.cc (echo_executing_commands): New function. |
|
7927 |
|
7928 * tree-base.cc (print_code_indent): Print PS4 as line prefix. |
|
7929 * help.cc (Ftype): Add unwind_protect for ps4 and set it to "" |
|
7930 before printing code. |
|
7931 |
|
7932 * tree-misc.h (tree_statement_list): New field, function_body. |
|
7933 (tree_statement_list::mark_as_function_body): New function. |
|
7934 * parse.y (func_def3): Mark function bodies. |
|
7935 |
|
7936 * pr-output.cc (octave_print_internal): Undo string escapes when |
|
7937 printing charMatrix as strings. |
|
7938 |
|
7939 Sat Oct 28 17:38:29 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7940 |
|
7941 * utils.h (undo_string_escapes): Add missing const in declaration. |
|
7942 |
|
7943 Fri Oct 27 03:49:44 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7944 |
|
7945 * file-io.cc (next_available_file_number): New stack for keeping |
|
7946 track of next available file number. |
|
7947 (get_next_avail_file_num): New function. |
|
7948 (fopen_file_for_user, fopen_internal, popen_internal, |
|
7949 execute_internal): Use it. |
|
7950 |
|
7951 Mon Oct 23 07:00:09 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7952 |
|
7953 * tree-const.cc (TC_REP::convert_to_matrix_type, |
|
7954 tree_constant::convert_to_matrix_type): New arg, make_complex. |
|
7955 (TC_REP::set_index): New arg, rhs_is_complex. Pass it to |
|
7956 convert_to_matrix_type. |
|
7957 (TC_REP::assign): Pass rhs.is_complex_type() to set_index. |
|
7958 |
|
7959 Thu Oct 19 00:38:38 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7960 |
|
7961 * xpow.cc: Include <climits>. |
|
7962 |
|
7963 * sysdep.cc (Fpause): Do pause even if not interactive. |
|
7964 |
|
7965 * tree-const.cc (TC_REP::assign): Don't make RHS numeric if both |
|
7966 RHS and LHS are strings. |
|
7967 |
|
7968 Wed Oct 18 22:19:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7969 |
|
7970 * f-expm.cc (Fexpm): Avoid taking log of negative number. Also, |
|
7971 don't unnecessarily divide the input matrix by 1.0. |
|
7972 |
|
7973 * input.cc (decode_prompt_string): Recognize \[ and \] too. |
|
7974 (initialize_readline): Bind M-p to history-search-backward and M-n |
|
7975 to history-search-forward. |
|
7976 |
|
7977 Tue Oct 17 04:31:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7978 |
|
7979 * xpow.cc (xpow): Handle integer powers better for complex^double. |
|
7980 (elem_xpow): Likewise. |
|
7981 |
|
7982 * lex.l ({CCHAR}): If nesting_level.top() is BRACE, return ';', |
|
7983 not '\n'. |
|
7984 |
|
7985 Mon Oct 16 19:03:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7986 |
|
7987 * help.cc (Fwhich): Fix doc string. |
|
7988 |
|
7989 * variables.cc (Fexist): Update doc string. |
|
7990 |
|
7991 Sun Oct 15 22:19:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7992 |
|
7993 * Another massive set of changes to support character matrices |
|
7994 with indexing. The Octave_str_object class is no longer used. |
|
7995 Anything having to do with Octave_str_object in the following |
|
7996 files has been changed to use charMatrix instead: octave.h, |
|
7997 load-save.cc, octave.cc, strfns.cc, data.cc, pr-output.h, |
|
7998 pr-output.cc, tree-const.h, dirfns.cc, tree-const.cc, |
|
7999 tree-expr.cc. |
|
8000 |
|
8001 Sat Oct 14 22:28:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8002 |
|
8003 * f-sort.cc (mx_sort): Don't attempt to sort vectors that have |
|
8004 only one element, or matrices that have only one row. |
|
8005 |
|
8006 Thu Oct 12 02:16:58 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8007 |
|
8008 * mappers.cc (install_mapper_functions): Add gammaln as an alias |
|
8009 for lgamma. |
|
8010 |
|
8011 * tree-const.h, tree-const.cc: Massive overhaul of indexing and |
|
8012 indexed assignment functions. |
|
8013 * tc-inlines.h, tc-rep.h: Remove files. |
|
8014 * Makefile.in: Remove mention of them here too. |
|
8015 |
|
8016 * Makefile.in: Include $(TI_SRC) in DEP_SOURCES_3, not |
|
8017 $(TI_SOURCES). |
|
8018 Include $(DLD_SRC) in DEP_SOURCES_3. |
|
8019 Include $(TI_SRC) in DEF_FILES_5. |
|
8020 |
|
8021 Wed Oct 11 01:26:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8022 |
|
8023 * Makefile.in (INCLUDES): Remove tc-inlines.h and tc-rep.h from |
|
8024 the list. |
|
8025 |
|
8026 Mon Oct 9 08:31:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8027 |
|
8028 * lex.l (next_token_is_bin_op): Do match `.+', `.*', etc. |
|
8029 |
|
8030 Sun Oct 8 18:19:56 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8031 |
|
8032 * idx-vector.h, idx-vector.cc: Delete files. |
|
8033 * Makefile.in (SOURCES, INCLUDES): Remove them from lists. |
|
8034 |
|
8035 Fri Oct 6 00:52:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8036 |
|
8037 * f-svd.cc (Fsvd): If nargout == 0 or nargout == 1, don't ask for |
|
8038 U and V. |
|
8039 |
|
8040 Wed Oct 4 00:04:57 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8041 |
|
8042 * f-npsol.cc (Fnpsol, Fnpsol_options): Avoid unused variable |
|
8043 warnings if NPSOL_MISSING. |
|
8044 * f-qpsol.cc (Fqpsol, Fqpsol_options): Likewise for QPSOL_MISSING. |
|
8045 |
|
8046 * Makefile.in (DISTFILES): Add octave.gperf. |
|
8047 |
|
8048 * lex.l (next_token_is_bin_op): Don't ever return true for `.' |
|
8049 since that causes problems with things like [ .1 .1 ]. |
|
8050 |
|
8051 Tue Oct 3 05:30:24 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8052 |
|
8053 * variables.cc (is_valid_function): Avoid setting error_state if |
|
8054 argument is not a string. |
|
8055 |
|
8056 * parse.y (maybe_warn_missing_semi): New function. |
|
8057 (list1, list): Call it if statement not terminated by semicolon. |
|
8058 * tree-misc.h (tree_statement::line, tree_statement::column): |
|
8059 New functions. |
|
8060 * octave.cc (input_from_command_line_file): New global variable. |
|
8061 (main): Set it. |
|
8062 (parse_and_execute): Unwind-protect it and set it to zero. |
|
8063 (eval_string): Likewise. |
|
8064 * variables.cc (parse_fcn_file): Likewise. |
|
8065 |
|
8066 * user-prefs.cc (warn_missing_semicolon): New function. |
|
8067 * user-prefs.h (user_preferences): New field, warn_missing_semicolon. |
|
8068 * variables.cc (install_builtin_variables): DEFVAR it. |
|
8069 |
|
8070 * tree-expr.cc (tree_expression::is_logically_true): Actually use |
|
8071 argument. |
|
8072 |
|
8073 Mon Oct 2 19:55:48 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8074 |
|
8075 * variables.cc (install_builtin_variables): Reduce the default |
|
8076 value of save_precision to 15. |
|
8077 |
|
8078 * variables.cc (builtin_real_scalar_variable): Return 1 for |
|
8079 success, 0 for failure. |
|
8080 |
|
8081 * user-prefs.cc (struct_levels_to_print, set_save_precision, |
|
8082 set_output_max_field_width, set_output_precision): |
|
8083 Change sense of test for builtin_real_scalar_variable return value. |
|
8084 (check_preference): Rename from check_str_pref. Change all callers. |
|
8085 Accept value of 0 to be the same as "false" and nonzero to be the |
|
8086 same as "true". |
|
8087 Delete val to avoid memory leak. |
|
8088 * variables.cc (install_builtin_variables): Change initial values |
|
8089 from "true" to 1, "false" to 0. |
|
8090 |
|
8091 * variables.cc (install_builtin_variables): Add DEFVAR for |
|
8092 gnuplot_has_multiplot. |
|
8093 |
|
8094 * user-prefs.h (user_preferences): New field, |
|
8095 `gnuplot_has_multiplot'. |
|
8096 * user-prefs.cc (init_user_prefs): Initialize it. |
|
8097 (gnuplot_has_multiplot): New function. |
|
8098 |
|
8099 Sat Sep 30 16:52:57 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8100 |
|
8101 * oct-gperf.h, octave.gperf: Newfiles. |
|
8102 * Makefile.in (DISTFILES): Add octave.gperf. |
|
8103 (INCLUDES): Add oct-gperf.h. |
|
8104 (oct-gperf.h): New rule. |
|
8105 (local-dist, dist): Depend on oct-gperf.h. |
|
8106 * lex.l (is_keyword): Use perfect hash function to lookup |
|
8107 keywords. |
|
8108 |
|
8109 Fri Sep 29 04:36:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8110 |
|
8111 * version.h (OCTAVE_NAME_AND_VERSION): Add TARGET_HOST_TYPE to this. |
|
8112 |
|
8113 Thu Sep 28 00:03:51 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8114 |
|
8115 * tree-expr.cc (tree_expression::is_logically_true): New function. |
|
8116 * tree-cmd.cc (tree_while_command::eval): Use it instead of |
|
8117 handling the test directly here. |
|
8118 * tree-misc.cc (tree_if_clause::eval): Likewise |
|
8119 |
|
8120 * tree-const.cc (TC_REP::force_numeric): Don't try to print value |
|
8121 of str_obj with %s. |
|
8122 |
|
8123 * error.cc (buffer_error_messages): Rename from |
|
8124 suppress_octave_error_messages. |
|
8125 (error_message_buffer): New global variable. |
|
8126 (verror): Handle buffering of messages. |
|
8127 (handle_message): New function. |
|
8128 (Ferror, Fwarning, Fusage): Use it instead of duplicating code. |
|
8129 |
|
8130 * octave.cc (Feval): Buffer error messages instead of supressing them. |
|
8131 |
|
8132 * lex.l (is_keyword): Recognize `try', `catch', and `end_try_catch'. |
|
8133 * parse.y (TRY, CATCH): New tokens. |
|
8134 (command): Recognize try-catch block. |
|
8135 (end_error): Add cases for unwind_protect_end and try_catch_end. |
|
8136 * token.h (end_tok_type): New field, try_catch_end. |
|
8137 * tree-cmd.h, tree-cmd.cc (tree_try_catch): New class. |
|
8138 * variables.cc (bind_global_error_variable): New Function. |
|
8139 (clear_global_error_variable): Likewise. |
|
8140 (install_builtin_variables): Add DEFCONST for __error_text__. |
|
8141 * help.cc (keywords): Add `try', `catch', and `end_try_catch'. |
|
8142 |
|
8143 * tree-cmd.cc (tree_unwind_protect::eval): Undo previous change. |
|
8144 |
|
8145 * dirfns.cc (Freaddir, Fmkdir, Frmdir): |
|
8146 Do tilde expansion on the argument. |
|
8147 |
|
8148 Tue Sep 26 00:10:29 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8149 |
|
8150 * f-dassl.cc, f-fsolve.cc, f-lsode.cc, f-npsol.cc, f-quad.cc: |
|
8151 Don't try to figure out if the user-supplied functions take the |
|
8152 correct number of arguments. Simply let the call fail. |
|
8153 * variables.cc (takes_correct_nargs): Delete unused function. |
|
8154 * tree-expr.cc (tree_builtin::eval): Don't complain for too many |
|
8155 arguments to mapper functions. |
|
8156 * tree-expr.h, tree-expr.cc (tree_builtin, tree_function, tree_fvc): |
|
8157 Delete unused function max_expected_args. |
|
8158 |
|
8159 * defun.h (DEFUN): Delete unnecessary args nargin_min and nargout_max. |
|
8160 New arg unused_arg_flags. |
|
8161 (DEFUN_TEXT): Likewise. |
|
8162 * defun-dld.h (DEFUN_DLD_BUILTIN): Likewise. |
|
8163 * defun-int.h (DEFUN_INTERNAL, DECLARE_FUN, DEFINE_FUN_STRUCT): |
|
8164 Do the real work. |
|
8165 |
|
8166 * data.cc, dirfns.cc, dynamic-ld.cc, error.cc, f-balance.cc, |
|
8167 f-chol.cc, f-colloc.cc, f-dassl.cc, f-det.cc, f-eig.cc, f-expm.cc, |
|
8168 f-fft.cc, f-fft2.cc, f-find.cc, f-fsolve.cc, f-fsqp.cc, |
|
8169 f-givens.cc, f-hess.cc, f-ifft.cc, f-ifft2.cc, f-inv.cc, f-log.cc, |
|
8170 f-lpsolve.cc, f-lsode.cc, f-lu.cc, f-minmax.cc, f-npsol.cc, |
|
8171 f-pinv.cc, f-qpsol.cc, f-qr.cc, f-quad.cc, f-qzval.cc, f-rand.cc, |
|
8172 f-schur.cc, f-sort.cc, f-svd.cc, f-syl.cc, file-io.cc, help.cc, |
|
8173 input.cc, lex.l, load-save.cc, mappers.cc, octave-hist.cc, |
|
8174 octave.cc, octave.h, pager.cc, pr-output.cc, resource.cc, |
|
8175 sighandlers.cc, strfns.cc, sysdep.cc, timefns.cc, token.cc, |
|
8176 tree-const.cc, tree-expr.cc, tree-expr.h, tree-plot.cc, |
|
8177 unwind-prot.cc, unwind-prot.h, utils.cc, variables.cc, |
|
8178 variables.h, version.h, xdiv.cc: |
|
8179 Avoid unused variable warnings. |
|
8180 |
|
8181 * tree-expr.h (tree_oct_obj::print_value (ostream&)): |
|
8182 Delete name of unused arg. |
|
8183 (tree_fvc::save (ostream&, int, int): Likewise. |
|
8184 |
|
8185 * tree-const.h (tree_constant::tree_constant (magic_colon)): |
|
8186 Delete name of unused arg. |
|
8187 (tree_constant::tree_constant (all_va_args)): Likewise |
|
8188 (ColumnVector vector_value (int, int)): Likewise. |
|
8189 (ComplexColumnVector vector_value (int, int)): Likewise. |
|
8190 (Octave_object::eval (int, int, const Octave_object&): Likewise. |
|
8191 |
|
8192 * octave.cc (execute_startup_files): Look for octaverc first in |
|
8193 site/m, then in $(version)/m. |
|
8194 * variables.cc (get_local_site_defaults): New function. |
|
8195 * defaults.h.in (OCTAVE_LOCALFCNFILEDIR, OCTAVE_LOCALSTARTUPFILEDIR): |
|
8196 New macros. |
|
8197 * Makefile.in (defaults.h): Also substitute ${localfcndir}. |
|
8198 |
|
8199 Mon Sep 25 17:01:03 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8200 |
|
8201 * variables.cc (install_builtin_variables): Add DEFCONST for "e". |
|
8202 |
|
8203 Fri Sep 22 02:18:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8204 |
|
8205 * dirfns.cc (Fls): Delete ls_command after using it, not before. |
|
8206 |
|
8207 * input.h, input.cc (gnu_readline): Don't declare gnu_readline |
|
8208 `extern "C"'. |
|
8209 |
|
8210 * sysdep.h: Only declare gethostname if it is missing, then don't |
|
8211 declare it `extern "C"'. |
|
8212 |
|
8213 * dirfns.cc: Don't declare strerror(). |
|
8214 |
|
8215 * input.cc (command_generator): Use malloc, not xmalloc. Don't |
|
8216 declare xmalloc. |
|
8217 (gnu_readline): Don't declare this `extern "C"'. |
|
8218 |
|
8219 * octave-hist.cc: Don't declare history_get(). It is now in |
|
8220 readline/history.h. |
|
8221 |
|
8222 * input.cc: Don't declare history_get(). It is now in |
|
8223 readline/readline.h. |
|
8224 |
|
8225 * resource.cc: Don't surround include of sys/resource.h in |
|
8226 `extern "C" { }'. |
|
8227 |
|
8228 * fnmatch.h [__cplusplus]: Surround contents in `extern "C" { }'. |
|
8229 * load-save.cc, symtab.cc, variables.cc: Don't surround |
|
8230 fnmatch.h include in `extern "C" { }'. |
|
8231 |
|
8232 * help.cc: Don't #undef __FUNCTION_DEF before including |
|
8233 readline/tilde.h. |
|
8234 |
|
8235 * dirfuns.cc, file-io.cc, help.cc, load-save.cc, octave-hist.cc, |
|
8236 sysdep.cc, tree-plot.cc, utils.cc, variables.cc: |
|
8237 Don't surround readline includes in `extern "C" { }'. |
|
8238 |
|
8239 * sysdep.cc: Move all include statements to top of file. |
|
8240 |
|
8241 Tue Sep 19 01:58:21 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8242 |
|
8243 * octave.cc (Fsystem): Use iprocstream *, and unwind_protect it. |
|
8244 * pager.cc (flush_output_to_pager): Likewise. |
|
8245 * dirfns.cc (Fls): Likewise. |
|
8246 * tree-plot.cc (plot_stream): Now a pointer. |
|
8247 (open_plot_stream): Deal with it. |
|
8248 (send_to_plot_stream, cleanup_tmp_files, do_external_plotter_cd): |
|
8249 Likewise. |
|
8250 |
|
8251 * procstream.cc (cleanup_iprocstream, cleanup_oprocstream): |
|
8252 New functions. |
|
8253 |
|
8254 * procstream.h, procstream.cc (class iprocstream, class oprocstream): |
|
8255 Keep track of pbuf. Initialize it to 0 in default constructors, |
|
8256 delete it in destructor. Don't call close in destructor. |
|
8257 |
|
8258 * sighandlers.cc (octave_set_signal_handler): New function. |
|
8259 Use this name instead of signal everywhere. |
|
8260 * help.cc (try_info): Likewise. |
|
8261 * pager.cc (flush_output_to_pager): Likewise. |
|
8262 * octave.cc (main): Likewise. |
|
8263 * octave-hist.cc (do_edit_history): Likewise. |
|
8264 |
|
8265 * input.cc (initialize_readline): Set rl_paren_string_delimiters |
|
8266 to avoid treating single quotes as string delimiters when doing |
|
8267 paren matching. |
|
8268 |
|
8269 * Makefile.in (SOURCES): Don't list Map.cc or SLStack.cc here. |
|
8270 |
|
8271 * tree-const.cc: Do include utils.h. |
|
8272 |
|
8273 * sysdep.cc: Don't surround terminal includes in extern "C". |
|
8274 Include them before readline.h. |
|
8275 |
|
8276 * Map.h: Don't include utils.h. |
|
8277 (CHNode::CHNode (const char*, const C&, CHNode *t): |
|
8278 Do strsave() inline. |
|
8279 |
|
8280 * input.cc (generate_possible_completions): Generate name list |
|
8281 even when text == 0. |
|
8282 (operate_and_get_next): Don't declare history_stifled, call |
|
8283 history_is_stifled () instead. |
|
8284 Don't declare history_length, or max_input_history either. |
|
8285 Check (where >= history_length - 1) too, as in recent versions of |
|
8286 bash. |
|
8287 |
|
8288 * user-prefs.h (user_prefs): New field, `completion_append_char'. |
|
8289 * user-prefs.cc (init_user_prefs): Initialize it. |
|
8290 (sv_completion_append_char): New function. |
|
8291 * variables.cc (install_builtin_variables): Install |
|
8292 completion_append_char. |
|
8293 * input.cc (command_generator): Use it. |
|
8294 |
|
8295 * SLList-expr.cc, SLList-misc.cc, SLList-plot.cc, SLList-tc.cc, |
|
8296 DLList-fi.cc: Include config.h. |
|
8297 * DLList-fi.cc: Include file-info.h, not file-io.h. |
|
8298 |
|
8299 Mon Sep 18 11:01:24 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8300 |
|
8301 * octave.h (clean_up_and_exit): Tag with NORETURN instead of using |
|
8302 typedef trick. |
|
8303 * error.h (panic): Likewise. |
|
8304 * utils.h (jump_to_top_level): Likewise. |
|
8305 |
|
8306 * file-io.h: Protect from multiple includes with octave_file_io, |
|
8307 not octave_files. |
|
8308 |
|
8309 * file-info.h (class file_info): Convert to using std C++ string |
|
8310 class from char *. |
|
8311 * file-info.cc: Likewise. Don't include utils.h. |
|
8312 * file-io.cc (return_valid_file, fopen_file_for_user, |
|
8313 fflush_internal, do_scanf): Use operator ==, not strcmp. |
|
8314 (close_files): Call error with file.name ().data (), |
|
8315 not file.name (). |
|
8316 (freport_internal): Call form with file.mode ().data () and |
|
8317 file.name ().data (). |
|
8318 |
|
8319 * file-io.cc, file-io.h: Extract file_info class. |
|
8320 * file-info.cc, file-info.h: New files for file_info class. |
|
8321 |
|
8322 * user-prefs.h (user_prefs): New field, `beep_on_error'. |
|
8323 * user-prefs.cc (init_user_prefs): Initialize it. |
|
8324 (beep_on_error): New function. |
|
8325 * variables.cc (install_builtin_variables): Install beep_on_error. |
|
8326 * octave.cc (maximum_braindamage): Set beep_on_error to "true". |
|
8327 * error.cc (verror): Conditionally beep. |
|
8328 (error): Don't reset error_state until after verror is called. |
|
8329 |
|
8330 Sun Sep 17 16:41:25 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8331 |
|
8332 * load-save.cc (read_mat_binary_data, read_ascii_data, |
|
8333 save_ascii_data, read_binary_data, save_binary_data): |
|
8334 Handle string arrays. |
|
8335 |
|
8336 Fri Sep 15 00:24:19 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8337 |
|
8338 * user-prefs.cc (struct_levels_to_print, |
|
8339 set_output_max_field_width, set_output_precision, |
|
8340 set_save_precision): Eliminate unecessary kludge variable. |
|
8341 |
|
8342 * variables.cc (gobble_leading_white_space): New arg, |
|
8343 in_parts. Change all callers. |
|
8344 |
|
8345 * lex.l (HELP_FCN): Delete start state. The `help' command is now |
|
8346 handled the same as any other text-style function. |
|
8347 |
|
8348 * gripes.cc (gripe_invalid_value_specified): New function |
|
8349 * user-prefs.cc: Use it. |
|
8350 |
|
8351 * sysdep.cc (octave_words_big_endian): New global variable. |
|
8352 (ten_little_endians): New function. |
|
8353 (sysdep_init): Call it. |
|
8354 * load-save.cc (words_big_endian): Use this at run-time instead of |
|
8355 depending on WORDS_BIGENDIAN at compile-time. |
|
8356 |
|
8357 * symtab.h (SYMTAB_VARIABLES): New macro. |
|
8358 * variables.cc (Fclear): Use it instead of just |
|
8359 symbol_def::USER_VARIABLE when looking for variables. |
|
8360 |
|
8361 * octave.cc (main): If there is a file to execute, set |
|
8362 program_invocation_name and program_name to the name of the file |
|
8363 and argv to the remaining args. |
|
8364 (intern_argv): Only define argv if there are some remaining |
|
8365 arguments. |
|
8366 |
|
8367 * defun.h (DEFVAR_INT): New macro. |
|
8368 (DEFVAR): Define in terms of DEFVAR_INT. Delete args protect and |
|
8369 eternal. |
|
8370 (DEFCONST): New macro. |
|
8371 * variables.cc (install_builtin_variables): Use DEFCONST where |
|
8372 appropriate, change uses of DEFVAR to match new definition. |
|
8373 |
|
8374 * variables.cc (bind_builtin_variable): New variant that accepts |
|
8375 const tree_constant& value. |
|
8376 (install_builtin_variables): Properly alphabetize DEFVAR for this. |
|
8377 |
|
8378 * octave.cc (short_opts): Prefix with `+' to prevent argv |
|
8379 permutation. |
|
8380 (main): Don't use readline if forced_interactive. |
|
8381 (traditional): New file-scope variable. |
|
8382 (long_opts, usage_string, verbose_usage): Add `--traditional'. |
|
8383 (maximum_braindamage): New function. |
|
8384 (main): Call it if --traditional. |
|
8385 |
|
8386 * input.cc (do_input_echo): Print prompt correctly when |
|
8387 forced_interactive is either true or false. |
|
8388 |
|
8389 Thu Sep 14 00:54:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8390 |
|
8391 * data.cc (Fstruct_elements): New function. |
|
8392 |
|
8393 * file-io.cc (Fumask): New function. |
|
8394 |
|
8395 * dirfns.cc (Fmkdir, Frmdir, Frename): New functions. |
|
8396 |
|
8397 * Makefile.in: Add rules and dependencies for building safe-stat.o |
|
8398 and safe-lstat.o. |
|
8399 |
|
8400 * mkdir.c, rename.c, rmdir.c: New files. |
|
8401 * Makefile.in (SOURCES): Include them in the list. |
|
8402 |
|
8403 * safe-xstat.hin, safe-xstat.cin: New files |
|
8404 * Makefile.in (DISTFILES): Include them in the list. |
|
8405 |
|
8406 * sighandlers.cc (octave_new_handler): Try to continue on memory |
|
8407 exhausted errors. |
|
8408 (sigfpe_handler): Improve error message. |
|
8409 |
|
8410 * Makefile.in: Use `ifndef omit_deps', not `ifndef $(omit_deps)'. |
|
8411 |
|
8412 * dirfns.cc (Freaddir): New function. |
|
8413 |
|
8414 * f-sort.cc: Complete rewrite. Now uses stable sort algorithm and |
|
8415 correctly handles complex matrices containing columns of all real |
|
8416 numbers. |
|
8417 |
|
8418 Wed Sep 13 03:16:40 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8419 |
|
8420 * arith-ops.cc: Unconditionally #define DIVIDE_BY_ZERO_ERROR. |
|
8421 |
|
8422 * variables.cc (install_builtin_variables): Unconditionally |
|
8423 install NaN and nan. |
|
8424 |
|
8425 * mappers.cc (xisinf): Don't do bogus things if isinf, isnan, or |
|
8426 finite are missing. |
|
8427 (xfinite): Likewise. |
|
8428 |
|
8429 * sysdep.cc (octave_ieee_init): Don't set octave_NaN and |
|
8430 octave_Inf if values are not available. |
|
8431 |
|
8432 * resource.cc (mk_ru_map): Don't use ru_ or tv_ as prefixes to |
|
8433 Octave names for the structure members. |
|
8434 |
|
8435 Tue Sep 12 02:04:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8436 |
|
8437 * procstream.h, procstream.cc: Rewrite. |
|
8438 |
|
8439 Mon Sep 11 18:42:05 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8440 |
|
8441 * filemode.c: New file, from Emacs. |
|
8442 * Makefile.in (SOURCES): Add it to the list. |
|
8443 |
|
8444 * file-io.cc (Fstat, Flstat, mk_stat_map): New functions. |
|
8445 |
|
8446 * timefns.cc (mk_tm_map): Don't use tm_ as prefix to Octave names |
|
8447 for these structure members. |
|
8448 (extract_tm): Likewise. |
|
8449 (Flocaltime): Fix doc string to match. |
|
8450 |
|
8451 Thu Sep 7 02:04:27 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8452 |
|
8453 * load-save.cc (save_user_variables): New function. |
|
8454 * sighandlers.cc (my_friendly_exit): Call it before exiting. |
|
8455 (sigfpe_handler): New function. |
|
8456 (install_signal_handlers) [__alpha__]: Install it. |
|
8457 |
|
8458 Wed Sep 6 14:35:10 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8459 |
|
8460 * tree-cmd.cc (tree_unwind_protect::eval): Ignore errors and |
|
8461 suppress error messages while executing first block of |
|
8462 unwind_protect commands. |
|
8463 |
|
8464 * parse.y (end_error): Add missing case for unwind_protect_end. |
|
8465 |
|
8466 * tree-expr.cc (tree_builtin::eval): Complain if no arguments |
|
8467 given for mapper functions. |
|
8468 (tree_fvc::lookup_map_element): Print error message for invalid |
|
8469 structure reference. |
|
8470 |
|
8471 Tue Sep 5 02:04:12 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8472 |
|
8473 * file-io.cc, input.cc, load-save.cc, octave.cc, sysdep.cc, |
|
8474 variables.cc, octave-hist.cc, utils.cc, f-schur.cc, f-rand.cc, |
|
8475 f-quad.cc, f-qpsol.cc, f-npsol.cc, f-lsode.cc, f-fsolve.cc, |
|
8476 f-dassl.cc, f-colloc.cc, f-balance.cc, error.cc, data.cc: |
|
8477 Add const qualifiers where appropriate. |
|
8478 |
|
8479 * dirfns.h: Include <ctime>, for time_t. |
|
8480 |
|
8481 * tempname.c, file-io.cc, help.cc, input.cc, octave-hist.cc, |
|
8482 octave.cc, sighandlers.cc, sysdep.cc, tree-expr.cc, tree-misc.cc, |
|
8483 tree-plot.cc, utils.cc, variables.cc, sysdir.h: |
|
8484 Move #include <sys/type.h> inside #ifdef HAVE_UNISTD_H. |
|
8485 |
|
8486 * syswait.h: New file. |
|
8487 * Makefile.in (INCLUDES): Add it to the list. |
|
8488 * file-io.cc, sighandlers.cc: Use it instead of including |
|
8489 sys/wait.h directly. |
|
8490 |
|
8491 * octave.cc: Include statdefs.h, not sys/stat.h. |
|
8492 |
|
8493 * sysdir.h: New file. |
|
8494 * Makefile.in (INCLUDES): Add it to the list. |
|
8495 * dirfns.cc, utils.cc: Use it instead of including the headers |
|
8496 directly. |
|
8497 |
|
8498 * pathlen.h: New file. |
|
8499 * Makefile.in (INCLUDES): Add it to the list. |
|
8500 * dirfns.cc, input.cc: Use it instead of including sys/param.h |
|
8501 directly. |
|
8502 * utils.cc: Don't include sys/param.h |
|
8503 |
|
8504 Sun Sep 3 18:52:59 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8505 |
|
8506 * tree-const.cc (TC_REP::string_value): Return const char*, not |
|
8507 char *. |
|
8508 |
|
8509 * All .cc, .y, .l, .y files: Include <cctype>, not <ctype.h>, and |
|
8510 so on for all new C++ versions of these standard C headers. |
|
8511 |
|
8512 Thu Aug 31 17:09:38 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8513 |
|
8514 * pathsearch.h: Also hide `string'. |
|
8515 |
|
8516 * oct-str.cc, oct-str.h: New files. |
|
8517 * Makefile.in: Add to the appropriate lists. |
|
8518 * tc-rep.h: Change char* to Octave_string* in anonymous union. |
|
8519 * tree-expr.cc (tree_matrix::eval): Handle multiple element strings. |
|
8520 * strfns.cc (toascii): Likewise. |
|
8521 * tree-const.cc (print_as_string): Likewise. |
|
8522 (TC_REP::force_numeric, TC_REP::rows, TC_REP::columns, |
|
8523 TC_REP::double_value, TC_REP::complex_value, TC_REP::matrix_value, |
|
8524 TC_REP::complex_matrix_value, TC_REP::convert_to_str): Likewise. |
|
8525 (TC_REP::print): Call octave_print_internal for string case. |
|
8526 (all_strings): New function. |
|
8527 Fix constructors to use new data structure. |
|
8528 * pr-output.cc (octave_print_internal): Add version for strings. |
|
8529 * Array-string.cc: New file. |
|
8530 |
|
8531 * octave.cc (octave_argv): New global variable. |
|
8532 (intern_argv): New function. |
|
8533 (main): Fix argument parsing to do the right thing for arguments |
|
8534 to executable scripts. |
|
8535 * variables.cc: Add DEFUNs for argv, program_invocation_name, and |
|
8536 program_name. |
|
8537 |
|
8538 * defun.h (DEFVAR): Fix comment. |
|
8539 |
|
8540 Thu Aug 24 00:02:00 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8541 |
|
8542 * file-io.cc (fgets_internal): Make second arg optional. Add |
|
8543 optional arg `strip_final_newline'. |
|
8544 (Ffgets): Change to match new definition of fgets_internal. |
|
8545 (Ffgetl): Implement using the new fgets_internal. |
|
8546 |
|
8547 * f-rand.cc (Frand): Update code for sizing return value to match |
|
8548 that used by ones, zeros, and eye. |
|
8549 |
|
8550 Wed Aug 23 19:52:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8551 |
|
8552 * tree-const.cc (do_vector_assign): Don't crash for |
|
8553 A(range) = scalar, or A(matrix) = scalar. |
|
8554 |
|
8555 * f-dassl.cc (set_dassl_option): Rename from do_dassl_option. |
|
8556 (show_dassl_option): New function. |
|
8557 (Fdassl_options): Handle single arg. |
|
8558 * f-fsolve.cc (set_fsolve_option): Rename from do_fsolve_option. |
|
8559 (show_fsolve_option): New function. |
|
8560 (Ffsolve_options): Handle single arg. |
|
8561 * f-fsqp.cc (set_fsqp_option): Rename from do_fsqp_option. |
|
8562 (show_fsqp_option): New function. |
|
8563 (Ffsqp_options): Handle single arg. |
|
8564 * f-lpsolve.cc (set_lpsolve_option): Rename from do_lpsolve_option. |
|
8565 (show_lpsolve_option): New function. |
|
8566 (Flpsolve_options): Handle single arg. |
|
8567 * f-lsode.cc (set_lsode_option): Rename from do_lsode_option. |
|
8568 (show_lsode_option): New function. |
|
8569 (Flsode_options): Handle single arg. |
|
8570 * f-npsol.cc (set_npsol_option): Rename from do_npsol_option. |
|
8571 (show_npsol_option): New function. |
|
8572 (Fnpsol_options): Handle single arg. |
|
8573 * f-qpsol.cc (set_qpsol_option): Rename from do_qpsol_option. |
|
8574 (show_qpsol_option): New function. |
|
8575 (Fqpsol_options): Handle single arg. |
|
8576 * f-quad.cc: (set_quad_option): Rename from do_quad_option. |
|
8577 (show_quad_option): New function. |
|
8578 (Fquad_options): Handle single arg. |
|
8579 (Fquad): Doc fix. |
|
8580 |
|
8581 Tue Aug 22 00:38:05 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8582 |
|
8583 * tree-plot.cc (do_external_plotter_cd): New function. |
|
8584 * dirfns.cc (octave_change_to_directory): New function. If cd is |
|
8585 successful, also call do_external_plotter_cd(). |
|
8586 (Fcd): Call octave_change_to_directory(), not change_to_directory(). |
|
8587 |
|
8588 * pr-output.cc (pr_any_float): Change declaration of counter to |
|
8589 size_t to avoid gcc warnings. |
|
8590 |
|
8591 * idx-vector.cc, octave-hist.cc, tree-const.cc, tree-expr.cc, |
|
8592 tree-misc.cc, utils.cc, xpow.cc, Map.cc: |
|
8593 Update for change in for loop variable scope for gcc 2.7.0. |
|
8594 |
|
8595 Mon Aug 21 19:34:53 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8596 |
|
8597 * tree-const.cc (fortran_style_matrix_assignment): Properly handle |
|
8598 case of complex LHS, real RHS. |
|
8599 |
|
8600 * Makefile.in: Only include dependency files if $(omit_deps) is |
|
8601 not set. |
|
8602 |
|
8603 Wed Jul 5 00:03:58 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8604 |
|
8605 * sysdep.cc: Explicitly include string.h. |
|
8606 |
|
8607 Sun Jun 25 00:18:10 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8608 |
|
8609 * load-save.cc (too_large_for_float (const Matrix&)): |
|
8610 Extract elements as doubles, not Complex. |
|
8611 |
|
8612 Sat Jun 24 22:59:15 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8613 |
|
8614 * pr-output.cc (any_element_is_inf_or_nan): Declare extern, not static. |
|
8615 * f-svd.cc (Fsvd): Call here to avoid trying to take SVD of matrix |
|
8616 containing Inf or NaN values. |
|
8617 |
|
8618 * pr-output.cc (bit_format): New file-scope variable. |
|
8619 (set_format, pr_any_float): Handle bit_format. |
|
8620 (octave_print_internal): Handle bit_format like bank_format. |
|
8621 (init_format_state): Initialize bit_format. |
|
8622 (set_format_style): Allow `format bit' and `format native-bit'. |
|
8623 |
|
8624 Thu Jun 8 15:20:26 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8625 |
|
8626 * mappers.cc (arg, imag, signum): If arg is NaN, return NaN. |
|
8627 |
|
8628 Mon May 15 14:47:04 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8629 |
|
8630 * pager.cc (Fdiary): Initialize diary_file here, not in the |
|
8631 file-scope declaration. |
|
8632 |
|
8633 * tree-expr.cc (tree_index_expression::eval): |
|
8634 Handle nargin == 0 the same as other cases. |
|
8635 |
|
8636 Tue May 2 10:02:23 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8637 |
|
8638 * load-save.cc (do_double_format_conversion): Add missing breaks. |
|
8639 (do_float_format_conversion): Likewise. |
|
8640 |
|
8641 Mon May 1 13:50:24 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8642 |
|
8643 * Makefile.in (OCTAVE_LIBS): Add @LIBPLPLOT@ to the list. |
|
8644 |
|
8645 * timefns.cc (Ftime): Handle GETTIMEOFDAY_NO_TZ. |
|
8646 |
|
8647 * Makefile.in (SOURCES): Delete tc-rep.cc, tc-rep-ass.cc, and |
|
8648 tc-rep-idx.cc from the list. |
|
8649 |
|
8650 * tree-const.h: Add #pragma interface. |
|
8651 * tree-const.cc: Add contents of tc-rep.cc, tc-rep-ass.cc, and |
|
8652 tc-idx.cc to this file. Add #pragma implementation. This makes |
|
8653 tree-const.cc large, but makes the final binary smaller. |
|
8654 |
|
8655 * unwind-prot.h unwind-prot.cc token.cc token.h procstream.cc |
|
8656 procstream.h idx-vector.cc idx-vector.h symtab.cc symtab.h |
|
8657 oct-map.cc oct-map.h oct-obj.cc oct-obj.h tree-plot.h tree-plot.cc |
|
8658 tree-misc.cc tree-misc.h tree-expr.cc tree-expr.h tree-cmd.cc |
|
8659 tree-cmd.h tree-base.cc tree-base.h: |
|
8660 Add #pragma interface/implementation. |
|
8661 |
|
8662 * Makefile.in (OCTAVE_LIBS): Delete @LIBINFO@ from list. |
|
8663 * help.cc: Don't include info headers or extern declarations for |
|
8664 functions from info. |
|
8665 (try_info): Call info as a subprocess. Delete second arg. |
|
8666 Handle SIGINT here, not in help_from_info(). |
|
8667 (help_from_info): Complain if info doesn't work. |
|
8668 |
|
8669 * defun-dld.h (DEFUN_DLD_BUILTIN) [OCTAVE_LITE && MAKE_BUILTINS]: |
|
8670 If ! WITH_DLD, simply emit a character string constant. |
|
8671 |
|
8672 Fri Apr 28 15:23:06 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8673 |
|
8674 * lex.l ({IDENT}{S}*): Don't delete tok. That's handled by |
|
8675 strip_trailing_whitespace() now. |
|
8676 (<HELP_FCN>[^ \t\n]*{S}*|<TEXT_FCN>[^ \t\n\;\,]*{S}*): Ditto. |
|
8677 |
|
8678 * pathsearch.h: Include kpathsea/progname.h. |
|
8679 * octave.cc (initialize_globals): Call kpse_set_progname(). |
|
8680 |
|
8681 * token.h: Declare copy constructor and operator = private. |
|
8682 * token.cc: Abort if copy constructor or operator = is used. |
|
8683 |
|
8684 Thu Apr 27 13:54:39 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8685 |
|
8686 * tree-expr.cc (lookup_map_element): Don't list default argument |
|
8687 values here too. |
|
8688 |
|
8689 * pr-output.cc (hex_format): New file-scope variable. |
|
8690 (set_format, pr_any_float): Handle hex_format. |
|
8691 (octave_print_internal): Handle hex_format like bank_format. |
|
8692 (init_format_state): Initialize hex_format. |
|
8693 (set_format_style): Allow `format hex' and `format native-hex'. |
|
8694 |
|
8695 * variables.cc (bind_ans): Create ans_id each time with new and |
|
8696 ask tree_simple_assignment_expression to handle cleaning it up. |
|
8697 This apparently plugs a memory leak. |
|
8698 |
|
8699 * help.cc (Ftype): Don't try to print map constants. Handle |
|
8700 references to structure members. |
|
8701 |
|
8702 Wed Apr 26 12:40:59 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8703 |
|
8704 * input.cc (generate_struct_completions): New function. |
|
8705 (generate_possible_completions): Likewise. |
|
8706 (looks_like_struct): Likewise. |
|
8707 (command_generator): Handle completion of struct variables. |
|
8708 |
|
8709 * tree-expr.h, tree-expr.cc (tree_fvc::lookup_map_element): |
|
8710 Add insert and silent args. |
|
8711 |
|
8712 * oct-map.cc: New file. |
|
8713 * Makefile.in (SOURCES): Add it to the list. |
|
8714 |
|
8715 Mon Apr 24 09:41:02 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8716 |
|
8717 * variables.cc (Fexist): Handle structure references too. |
|
8718 |
|
8719 * tree-const.cc (lookup_map_element (const char*, int, int): |
|
8720 New function. |
|
8721 (lookup_map_element (SLList<char*>&, int, int): New arg, silent. |
|
8722 * tc-rep.cc (lookup_map_element): New arg, silent. If nonzero, |
|
8723 don't call error(). |
|
8724 |
|
8725 * tc-rep.h (is_empty): Define here. |
|
8726 * tree-const.h (is_empty): Hand off to TC_REP::is_empty(). |
|
8727 |
|
8728 * data.cc (Fstruct_contains): Call lookup_map_element on args(0) |
|
8729 instead of extracting the map and calling contains() on it. |
|
8730 |
|
8731 * parse.y (EPLUS, EMINUS): New tokens. |
|
8732 (simple_expr): Handle EPLUS, EMINUS the same as `+' and `-'. |
|
8733 * lex.l (".+", ".-"): New patterns. Match these separately to |
|
8734 disallow using them as unary operators. |
|
8735 |
|
8736 * lex.l (next_token_is_bin_op): Simplify by noting that spacing |
|
8737 only matters for those tokens that can also be unary ops. |
|
8738 |
|
8739 Fri Apr 21 14:34:45 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8740 |
|
8741 * load-save.cc (read_ascii_data): Allow reading of empty |
|
8742 matrices. |
|
8743 |
|
8744 * tc-rep-ass.cc (vector_assignment): Only assert that we are not |
|
8745 doing fortran-style indexing and that nr <= 1 || nc <= 1. |
|
8746 (do_vector_assign): Handle assignment of [] when one dimension is |
|
8747 zero and the other is anything. |
|
8748 |
|
8749 Thu Apr 20 13:56:21 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8750 |
|
8751 * tc-rep-ass.cc (delete_rows, delete_columns): Simply return if |
|
8752 num_to_delete is 0. |
|
8753 |
|
8754 * lex.l (handle_identifier): Don't match plot option keywords |
|
8755 inside parentheses or braces. |
|
8756 |
|
8757 * variables.cc (parse_fcn_file): Also delete tmp_help_txt if |
|
8758 running a script. |
|
8759 |
|
8760 * tree-cmd.h (tree_command): Add destructor. |
|
8761 |
|
8762 * tree-expr.h tree_simple_assignment_expression (lhs_idx_expr): |
|
8763 Hang on to idx_expr, not just its parts so it can be deleted. |
|
8764 (init): Initialize it. |
|
8765 * tree-expr.cc (~tree_simple_assignment_expression): Delete it. |
|
8766 |
|
8767 * tree-expr.h (tree_multi_val_ret, tree_oct_obj, tree_fvc, |
|
8768 tree_identifier, tree_builtin, tree_function): Add destructors. |
|
8769 * tree-expr.cc (tree_function::~tree_function): Delete some stuff. |
|
8770 |
|
8771 * tree-misc.h (tree_va_return_list): Add destructor. |
|
8772 |
|
8773 * octave.cc (__builtin_new, __builtin_delete): Provide our own, |
|
8774 for debugging. |
|
8775 |
|
8776 * utils.cc (strconcat): Don't depend on the return value from |
|
8777 strcat. |
|
8778 (file_in_path): Simplify logic. |
|
8779 |
|
8780 * parse.y (maybe_convert_to_ans_assign): Create ans_id each time |
|
8781 with new and ask tree_simple_assignment_expression to handle |
|
8782 cleaning it up. This apparently plugs a memory leak. |
|
8783 |
|
8784 * lex.l (strip_trailing_whitespace): Declare retval static. |
|
8785 Delete it before saving next string. |
|
8786 |
|
8787 * error.cc (Ferror): Do call error() for empty string args. |
|
8788 (error_1): Don't print anything if fmt is "" or "\n", but do set |
|
8789 the error state appropriately. |
|
8790 |
|
8791 * tree-cmd.cc (tree_unwind_protect::eval): Handle return and break |
|
8792 in the `try' part of the statement. |
|
8793 |
|
8794 Mon Apr 10 19:29:44 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8795 |
|
8796 * f-expm.cc, f-givens.cc, f-qzval.cc, f-syl.cc, f-rand.cc: |
|
8797 Where appropriate, declare Fortran functions to take reference |
|
8798 instead of pointer args. Change callers. |
|
8799 |
|
8800 * mappers.cc: Declare Fortran functions to take reference instead |
|
8801 of pointer args. Change callers. |
|
8802 |
|
8803 * gamma.c, lgamma.c, erfc.c, erf.c, atanh.c, asinh.c, acosh.c: |
|
8804 Declare Fortran functions to take reference instead of pointer |
|
8805 args. |
|
8806 |
|
8807 Sun Apr 9 19:38:53 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8808 |
|
8809 * file-io.cc (Fpopen, Fpclose, Fexecute, Fsync_system, |
|
8810 Fasync_system, Fwaitpid, Fmkfifo, Funlink): New functions. |
|
8811 |
|
8812 * sighandlers.cc (sigchld_handler): New function. |
|
8813 (install_signal_handlers): Add call to install |
|
8814 sigchld_handler. (This is #if 0'd out, waiting for code to help |
|
8815 determine which child exited and what to do about it). |
|
8816 |
|
8817 * tree-expr.h (tree_oct_obj): New class. |
|
8818 |
|
8819 * tree-expr.h (tree_multi_assignment_expression::preserve): New |
|
8820 data member. Add arg with default value to constructors. Change |
|
8821 callers as necessary. |
|
8822 * tree-expr.cc (~tree_multi_assignment_expression): Conditionally |
|
8823 delete lhs. |
|
8824 |
|
8825 * parse.y (make_multi_val_ret): Pass matrix instead of getting it |
|
8826 from the global matrix list. |
|
8827 (expression): Extract matrix from matrix list before calling |
|
8828 make_multi_val_ret(). |
|
8829 |
|
8830 * parse.y (command): Handle new for loop syntax for structures. |
|
8831 |
|
8832 * tree-plot.h (subplot_list): Include tree_print_code() in |
|
8833 initializer lists for constructors. |
|
8834 * tree-expr.h (tree_statement_list, tree_argument_list, |
|
8835 tree_parameter_list, tree_return_list, tree_global_init_list, |
|
8836 tree_if_command_list, ): Likewise. |
|
8837 |
|
8838 * tree-cmd.h (tree_for_command::id_list): New data member. |
|
8839 (tree_for_command (tree_return_list*, tree_expression*, |
|
8840 tree_statement_list*, int, int)): Likewise. |
|
8841 * tree-cmd.cc (tree_for_command::eval): Handle for loops with |
|
8842 structures. |
|
8843 (do_for_loop_once (tree_return_list*, Octave_object&, int&)): |
|
8844 New form for handling for loops with structures. |
|
8845 |
|
8846 * sysdep.cc (octave_ieee_init): Determine floating point format |
|
8847 here. |
|
8848 (native_float_format): New global variable. |
|
8849 (Fisieee): Compute return value from native_float_format, not by |
|
8850 using preprocessor macros. |
|
8851 * sysdep.h (enum floating_point_format): Move declaration here. |
|
8852 * load-save.cc: From here. |
|
8853 Always define all floating point format conversion routines. |
|
8854 (do_double_format_conversion, do_float_format_conversion): |
|
8855 Use native_float_format instead of preprocessor macros. |
|
8856 |
|
8857 Sat Apr 8 15:41:35 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8858 |
|
8859 * Makefile (TEMPLATE_SRC): New variable. |
|
8860 (DISTFILES): Add $(TEMPLATE_SRC). |
|
8861 (SOURCES): Delete Map.cc and SLStack.cc from here. |
|
8862 |
|
8863 * variables.cc (install_builtin_variables): Use OCTAVE_VERSION |
|
8864 instead of version_string to initialize OCTAVE_VERSION. |
|
8865 * version.h (version_string): Delete. |
|
8866 |
|
8867 * getopt.c (_getopt_internal): Initialize indfound to avoid warning. |
|
8868 |
|
8869 Fri Apr 7 15:29:41 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8870 |
|
8871 * tc-inlines.h (REP_RHS_MATRIX): Just check to see if tc is real |
|
8872 or complex. If conversion fails, return. |
|
8873 |
|
8874 Thu Apr 6 00:10:47 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8875 |
|
8876 * data.cc (Fstruct_contains): New function. |
|
8877 |
|
8878 * tc-rep.cc (print_code): Add extra parens around while condition |
|
8879 to avoid warning. |
|
8880 * utils.cc (undo_string_escapes): Likewise. |
|
8881 * input.cc (decode_prompt_string): Likewise. Also rewrite if |
|
8882 statement to avoid warning. |
|
8883 |
|
8884 Tue Apr 4 22:54:17 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8885 |
|
8886 * tree-expr.cc (tree_multi_assignment_expression::eval, |
|
8887 tree_simple_assignment_expression::eval): Call print_constant |
|
8888 even if user_pref.print_answer_id_name is false. |
|
8889 |
|
8890 Mon Apr 3 17:57:14 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8891 |
|
8892 * tc-inlines.h (TC_REP): Avoid redefinition. |
|
8893 |
|
8894 * tree-const.h (do_binary_op, do_unary_op): Declare as friends of |
|
8895 tree_constant class too. |
|
8896 |
|
8897 * tree-plot.h (subplot_using::have_values): Delete data member. |
|
8898 * tree-plot.cc (subplot_using::eval): Always recompute values. |
|
8899 |
|
8900 Fri Mar 31 10:18:32 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8901 |
|
8902 * tc-rep.cc (print): Print open brace for structures here. |
|
8903 * tree-expr.cc (print_constant): Not here. |
|
8904 |
|
8905 * symtab.cc (define): Don't delete arg if sv_fcn fails. |
|
8906 |
|
8907 * tree-const.cc (print): New function. Create ostrstream buffer |
|
8908 and pass it to rep->print(). |
|
8909 * tree-const.h (eval (int)): Call print(), not rep->print(). |
|
8910 * tc-rep.cc (structure_indent_level): New file-scope variable. |
|
8911 (print): New arg, output_buf, is stream to print to. |
|
8912 Print values of structure elements too. |
|
8913 |
|
8914 * user-prefs.h (user_preferences): New field, struct_levels_to_print. |
|
8915 * user-prefs.cc (struct_levels_to_print): New function. |
|
8916 * variables.cc (install_builtin_variables): Add DEFVAR for new |
|
8917 variable struct_levels_to_print. |
|
8918 |
|
8919 * tree-const.cc (print_as_scalar, print_as_structure): Move here |
|
8920 from tree-expr.cc and make extern. |
|
8921 |
|
8922 * tree-expr.cc (print_as_structure): New function. |
|
8923 (print_constant): Use it. |
|
8924 |
|
8925 * tree-expr.cc (print_constant): New arg, print_padding. |
|
8926 (tree_simple_assignment_expression::eval): Use print_constant |
|
8927 instead of duplicating code here. |
|
8928 (tree_multi_assignment_expression::eval): Likewise. |
|
8929 |
|
8930 Thu Mar 30 13:24:11 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8931 |
|
8932 * Makefile.in (SOURCES): Add resource.cc. |
|
8933 * resource.cc: New file, extracted from timefns.cc. |
|
8934 (Fgetrusage): New function. |
|
8935 * timefns.cc (cputime): Delete (now implemented in a function file |
|
8936 using new getrusage function). |
|
8937 |
|
8938 Wed Mar 29 22:52:42 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8939 |
|
8940 * Makefile.in (SOURCES): Add strftime.c. |
|
8941 * strftime.c: New file, from sh-utils distribution. |
|
8942 |
|
8943 * timefns.cc (mk_tm_map, extract_tm, Ftime, Fgmtime, Flocaltime, |
|
8944 Fmktime, Fstrftime): New basic time functions. |
|
8945 (Fclock, Fdate): Delete (now implemented in function files using new |
|
8946 time functions). |
|
8947 |
|
8948 Tue Mar 28 17:51:51 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8949 |
|
8950 * file-io.cc (return_valid_file, do_printf, do_scanf, |
|
8951 fclose_internal, feof_internal, ferror_internal, fflush_internal, |
|
8952 fgets_internal, fopen_internal, fread_internal, freport_internal, |
|
8953 frewind_internal, fseek_internal, ftell_internal, |
|
8954 fwrite_internal): Declare static. |
|
8955 * file-io.h: Delete extern declarations for them. |
|
8956 |
|
8957 Fri Mar 24 09:52:50 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8958 |
|
8959 * pr-output.cc (pr_col_num_header): New function. |
|
8960 (compact_format): New file-scope variable. |
|
8961 (set_format_style): Handle loose and compact formats. |
|
8962 (octave_print_internal (ostream&, const ComplexMatrix&, int)): |
|
8963 Replace duplicate code with call to pr_col_num_header(). |
|
8964 (octave_print_internal (ostream&, const Matrix&, int): Likewise. |
|
8965 (octave_print_internal (ostream&, const Range&, int): Likewise. |
|
8966 |
|
8967 Tue Mar 21 08:44:48 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8968 |
|
8969 * mappers.cc (xgamma): Always use Slatec library function. |
|
8970 * (xlgamma): Likewise. |
|
8971 * Makefile.in (SOURCES): Don't include lgamma.c. |
|
8972 |
|
8973 Fri Mar 17 22:38:39 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8974 |
|
8975 * tc-rep.cc (TC_REP::new): Don't try to keep track of newlist_tail. |
|
8976 Explicitly initialize newlist to zero. |
|
8977 * tree-const.cc (tree_constant::operator new): Likewise. |
|
8978 |
|
8979 Fri Mar 10 12:40:24 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8980 |
|
8981 * tree-cmd.cc (quit_loop_now): Declare inline. |
|
8982 (tree_for_command::do_for_loop_once): Split into two versions, one |
|
8983 for the general case and one for when the loop variable is a |
|
8984 simple identifier. |
|
8985 (DO_LOOP): New macro. Move tests outside of loop. |
|
8986 (tree_for_command::eval): Speed up by checking to see if loop |
|
8987 variable is a simple identifier and by using DO_LOOP. |
|
8988 |
|
8989 * tree-const.h: New union of rep and freeptr. The freeptr element |
|
8990 is used for our custom memory management functions. |
|
8991 |
|
8992 * tc-rep.h: Add freeptr element to anonymous union (for our custom |
|
8993 memory management functions). |
|
8994 |
|
8995 * tree-const.cc (newlist, newlist_grow_size, newlist_tail): New |
|
8996 static variables. |
|
8997 (tree_constant::operator new): Always define to allow more |
|
8998 efficient allocation of single tree_constants. |
|
8999 (tree_constant::operator delete): Likewise, handle deletion of the |
|
9000 memory we allocate. |
|
9001 |
|
9002 * tc-rep.cc (newlist, newlist_grow_size, newlist_tail): New static |
|
9003 variables. |
|
9004 (tree_constant::operator new): Always define to allow more |
|
9005 efficient allocation of single tree_constants. |
|
9006 (tree_constant::operator delete): Likewise, handle deletion of the |
|
9007 memory we allocate. |
|
9008 |
|
9009 Fri Mar 3 14:00:08 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9010 |
|
9011 * error.cc (verror): Terminate output_buf with ends. |
|
9012 |
|
9013 * statdefs.h: Use C-style comment in first line instead of |
|
9014 C++-style comment. |
|
9015 |
|
9016 Mon Feb 27 10:11:18 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9017 |
|
9018 * parse.y (maybe_convert_to_ans_assign): Only lookup ans once. |
|
9019 * variables.cc (bind_ans): New function. |
|
9020 * tree-expr.cc (tree_identifier::eval (int)): Use it here. |
|
9021 (tree_identifier::eval (int, int, const Octave_object&): And here. |
|
9022 |
|
9023 * tree-expr.cc (install_nargin_and_nargout): New function. |
|
9024 * tree-expr.h (tree_function::tree_function (tree_statement_list *, |
|
9025 symbol_table *, int, int)): Call it. |
|
9026 |
|
9027 * tree-expr.cc (tree_function::bind_nargin_and_nargout): New function. |
|
9028 (tree_function::eval): Call it insead of the one from variables.cc. |
|
9029 |
|
9030 * variables.cc (bind_nargin_and_nargout): #if 0 out. |
|
9031 |
|
9032 Sun Feb 26 00:17:06 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9033 |
|
9034 * load-save.cc (Fload, Fsave): Free fname returned by tilde_expand(). |
|
9035 * dirfns.cc (Fls): Likewise. |
|
9036 |
|
9037 * tree-expr.cc (tree_multi_assignment_expression::eval (int, int, |
|
9038 const Octave_object&)): Call tree_return_list::operator () (Pix) |
|
9039 explicitly. |
|
9040 |
|
9041 * octave.cc (initialize_globals): Put TEXMF in the environment for |
|
9042 kpthsea. |
|
9043 |
|
9044 * Makefile.in (OCTAVE_LIBS): Use @LIBINFO@ and @LIBREADLINE@, |
|
9045 substituted by configure. Use kpathsea.a, not libkpathsea, so we |
|
9046 don't have to modify the kpathsea Makefile. |
|
9047 |
|
9048 Sat Feb 25 18:59:26 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9049 |
|
9050 * pathsearch.cc: New file. |
|
9051 * pathsearch.h: New file. |
|
9052 * Makefile.in (INCLUDES): Include it in the list. |
|
9053 * dynamic-ld.cc, help.cc, utils.cc: Use it instead of repeating |
|
9054 identical code multiple times. |
|
9055 |
|
9056 * variables.cc (install_builtin_variables): Only DEFVAR |
|
9057 suppress_verbose_help_message if USE_GNU_INFO. |
|
9058 |
|
9059 * help.cc (Fhelp): Only handle -i if USE_GNU_INFO. |
|
9060 (additional_help_message): Only print message if USE_GNU_INFO. |
|
9061 (builtin_help): New function. |
|
9062 (help_from_info): New function. Print warning if not USE_GNU_INFO. |
|
9063 |
|
9064 See ChangeLog.1 in the top level directory for earlier changes. |