3965
|
1 2002-06-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2 |
|
3 * pt-decl.cc (tree_static_command::eval, tree_global_command::eval): |
|
4 Call error for any non-zero value of error_state. |
|
5 * pt-select.cc (tree_if_command::eval): Likewise. |
|
6 * pt-loop.cc (tree_while_command::eval_error): Don't check error_state. |
|
7 (tree_do_until_command::eval_error): Likewise. |
|
8 (tree_simple_for_command::eval_error): Likewise. |
|
9 (tree_complex_for_command::eval_error): Likewise. |
|
10 * pt-assign.cc (tree_multi_assignment::eval_error): Likewise. |
|
11 (tree_simple_assignment::eval_error): Likewise. |
|
12 * pt-idx.cc (tree_index_expression::eval_error): Likewise. |
|
13 * pt-colon.cc (tree_colon_expression::eval_error): Likewise. |
|
14 (tree_colon_expression::rvalue): Delete rendundant error_state check. |
|
15 |
3962
|
16 2002-06-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
17 |
|
18 * ov-mapper.cc (MAPPER_LOOP, MAPPER_LOOP_1, MAPPER_LOOP_2): New macros. |
|
19 (octave_mapper::apply): Use them to inline the mapper loops. |
|
20 |
|
21 * pt-unop.cc (tree_prefix_expression::rvalue): Ensure that the |
|
22 operand is defined for op_incr and op_decr. |
|
23 (tree_postfix_expression::rvalue): Likewise. |
|
24 From Ben Sapp <bsapp@lanl.gov>. |
|
25 |
|
26 2002-06-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
27 |
|
28 * ov-mapper.cc (octave_mapper::apply): Exit loops on error. |
|
29 |
|
30 2002-06-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
31 |
|
32 * ov-struct.cc (octave_struct::print_raw): Print field names with |
|
33 data types if Vstruct_levels_to_print is 0. |
|
34 (octave_struct::print_name_tag): Don't emit newline if |
|
35 Vstruct_levels_to_print is negative. |
|
36 * ov.cc (struct_levels_to_print): Allow negative values too. |
|
37 |
3956
|
38 2002-05-24 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
39 |
3959
|
40 * DLD-FUNCTIONS/lsode.cc (Flsode): Also return istate and error |
|
41 message. Only generate error if user is not at least requesting |
|
42 the istate output. |
|
43 |
3956
|
44 * load-save.cc (hdf5_import_multidim, hdf5_check_attr, |
|
45 hdf5_callback_data, hdf5_read_next_data, read_hdf5_data, |
|
46 add_hdf5_data): Use 0, not NULL in calls to HDF routines. |
|
47 |
|
48 * oct-procbuf.cc (octave_procbuf::open): Use NULL, not 0 as last |
|
49 arg in call to execl.xo |
|
50 |
|
51 * debug.cc (get_user_function): Initialise dbg_fcn to 0, not NULL. |
|
52 |
3952
|
53 2002-05-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
54 |
|
55 * DLD-FUNCTIONS/lsode.cc (LSODE_options::da_set_opt_mf, |
|
56 LSODE_options::da_get_opt_mf): New typedefs. |
|
57 (LSODE_OPTIONS::da_set_fcn, LSODE_OPTIONS::da_get_fcn): New fields. |
|
58 (lsode_option_table): Fill them in. |
|
59 (set_lsode_option (const Array<double>&)): New function. |
|
60 (print_lsode_option_list): Handle vector options. |
|
61 (show_lsode_option_list): Likewise. |
|
62 (Flsode_options): Likewise. |
|
63 |
3955
|
64 * DLD-FUNCTIONS/lsode.cc (LSODE_options::s_set_opt_mf, |
|
65 LSODE_options::s_get_opt_mf): New typedefs. |
|
66 (LSODE_OPTIONS::s_set_fcn, LSODE_OPTIONS::s_get_fcn): New fields. |
|
67 (lsode_option_table): Fill them in. |
|
68 (set_lsode_option (const std::string&)): New function. |
|
69 (print_lsode_option_list): Handle string options. |
|
70 (show_lsode_option_list): Likewise. |
|
71 (Flsode_options): Likewise. |
|
72 |
3948
|
73 2002-05-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
74 |
3951
|
75 * c-file-ptr-stream.h (c_file_ptr_buf::fclose): New function. |
|
76 (c_file_ptr_buf::c_file_ptr_buf): Use it as default argument |
|
77 instead of extern "C" fclose function. |
|
78 (i_c_file_ptr_stream::i_c_file_ptr_stream): Likewise. |
|
79 (o_c_file_ptr_stream::o_c_file_ptr_stream): Likewise. |
|
80 * oct-stdstrm.h (octave_istdiostream::octave_istdiostream): Likewise. |
|
81 (octave_istdiostream::create): Likewise. |
|
82 * oct-stdstrm.h (octave_ostdiostream::octave_ostdiostream): Likewise. |
|
83 (octave_ostdiostream::create): Likewise. |
|
84 |
|
85 * oct-prcstrm.cc (cxx_pclose): New static function. |
|
86 (octave_iprocstream::octave_iprocstream): Pass it to |
|
87 octave_istdiostream constructor instead of extern "C" pclose function. |
|
88 (octave_oprocstream::octave_oprocstream): Pass it to |
|
89 octave_ostdiostream constructor instead of extern "C" pclose function. |
|
90 |
3948
|
91 * debug.cc (Fdbtype): Use C++ strings, not C strings. |
|
92 |
3946
|
93 2002-05-22 Mumit Khan <khan@nanotech.wisc.edu> |
|
94 |
|
95 * debug.cc: Include cstdlib instead of stdlib.h. Include cstring. |
|
96 (dbtype): Use strchr instead of index. |
|
97 * TEMPLATE-INST/Array-tc.cc (Array<octave_value>::resize_fill_value): |
|
98 Fix template specialization syntax. |
|
99 |
3944
|
100 2002-05-17 Mumit Khan <khan@nanotech.wisc.edu> |
|
101 |
|
102 * c-file-ptr-stream.h (OCTAVE_STD_FILEBUF): New macro to handle |
|
103 various forms of extensions to std::filebuf. |
|
104 (c_file_ptr_buf::c_file_ptr_buf): Use. |
|
105 * pt-idx.cc (tree_index_expression::tree_index_expression): Remove |
|
106 default arguments are from definition. |
|
107 * symtab.cc (SYMBOL_DEF::print_info): Add std::. |
|
108 (symbol_record::print_info): Likewise. |
|
109 (symbol_table::print_info): Likewise. |
|
110 |
3936
|
111 2002-05-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
112 |
3943
|
113 * oct-map.cc (Octave_map::assign): Resize RHS if it is shorter |
|
114 than existing struct array. |
|
115 |
3940
|
116 * ov-cell.cc (octave_cell::subsasgn): If an error has occurred, |
|
117 skip final assignment step. |
|
118 * ov-list.cc (octave_list::subsasgn): Likewise. |
|
119 * oct-lvalue.cc (octave_lvalue::assign): Add parens to clarify intent. |
|
120 (octave_lvalue::do_unary_op): Likewise. |
|
121 |
3939
|
122 * parse.y (function_end): Also accept end of input as end of |
|
123 function if input is coming from an eval string. |
|
124 |
3936
|
125 * pr-output.cc (pr_any_float): Don't convert -0 to 0. |
|
126 |
3934
|
127 2002-05-15 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
128 |
3935
|
129 * input.cc (generate_completion): If it looks like we are |
|
130 completing a struct, set completion append char to '\0'. |
|
131 |
|
132 * variables.cc (generate_struct_completions): Temporarily set |
|
133 warnings off here. |
|
134 |
3934
|
135 * error.cc (warning): Don't do anything if Vdebug_option == "off". |
|
136 Only print backtrace if Vdebug_option == "backtrace". |
|
137 (handle_message): Now returns a string containing the text of the |
|
138 formatted message. Change all callers. |
|
139 (Fwarning): Now a text-style function. Handle Matlab-compatible |
|
140 warning options. |
3935
|
141 (Flasterr, Flastwarn, set_warning_option): New functions. |
|
142 (Vlast_error_message, Vlast_warning_message, Vwarning_frequency, |
|
143 Vwarning_option): New static variables. |
3934
|
144 (vwarning): Set Vlast_warning_message here too. |
3935
|
145 (verror): Set Vlast_error_message here too. |
3934
|
146 |
3933
|
147 2002-05-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
148 |
|
149 * ov.h (octave_value::get_count): Now const. |
|
150 |
|
151 * ov.h, ov.cc (octave_value::do_non_const_unary_op, |
|
152 octave_value::assign): Idx is now a list of octave_value_list |
|
153 objects. |
|
154 |
|
155 * ov-base.cc, ov-base.h (octave_base_value::do_struct_elt_index_op, |
|
156 octave_base_value::struct_elt_ref): Delete. |
|
157 * ov-struct.cc, ov-struct.h (octave_sruct::do_struct_elt_index_op, |
|
158 octave_struct::struct_elt_ref): Delete. |
|
159 * ov.cc, ov.h (octave_value::do_struct_elt_index_op, |
|
160 octave_value::struct_elt_ref, octave_value::assign_struct_elt, |
|
161 octave_value::convert_and_assign, octave_value::try_assignment, |
|
162 octave_value::try_assignment_with_conversion, |
|
163 octave_value::simple_assign): Delete. |
|
164 |
|
165 * parse.y (make_index_expression): Type is now a single |
|
166 character. Change all callers. If expr is already an index |
|
167 expression, append index to it. |
|
168 (make_indirect_ref): Likewise. |
|
169 |
|
170 * pt-pr-code.cc (octave_print_internal (std::ostream&, const |
|
171 Cell&, bool, int)): Now just a dummy function, panic if called. |
|
172 |
|
173 * pt-idx.cc (tree_index_expression::make_arg_struct): New function. |
|
174 (tree_index_expression::type): Delete enum, rename from itype, now |
|
175 a string. |
|
176 (tree_index_expression::arg_nm): Now a list of string_vector objects. |
|
177 (tree_index_expression::idx): Now a list of tree_argument_list* |
|
178 objects. |
|
179 (tree_index_expression::is_index_expression): Always return true. |
|
180 (tree_index_expression::apend, make_value_list, make_subs_cell): |
|
181 New functions. |
|
182 |
|
183 * pt-pr-code.cc (visit_index_expression): Handle new definition of |
|
184 tree_index_expression object. |
|
185 * pt-check.cc (visit_index_expression): Likewise. |
|
186 * pt-bp.cc (visit_index_expression): Likewise. |
|
187 |
|
188 * ov-usr-fcn.h (octave_user_function::restore_args_passed): |
|
189 Clear args_passed even if nothing was saved. |
|
190 |
|
191 * ov-base.cc (octave_base_value::subsasgn, |
|
192 octave_base_value::map_keys, octave_base_value::print_info): |
|
193 New functions. |
|
194 |
|
195 * ov.h, ov.cc (octave_value::map_keys, octave_value::print_info, |
|
196 octave_value::subsref, octave_value::subsasgn, |
|
197 octave_value::numeric_assign, octave_value::next_subsref): |
|
198 New functions. |
|
199 (octave_value::empty_conv): New static function. |
|
200 (octave_value (octave_value *, int)): New arg, count. |
|
201 |
|
202 * ov-base-mat.cc (octave_base_matrix<MT>::subsref, |
|
203 octave_base_matrix<MT>::subsasgn): New functions. |
|
204 * ov-base-mat.h: Provide decls. |
|
205 |
|
206 * ov-builtin.cc (octave_builtin::subsref): New function. |
|
207 * ov-builtin.h: Provide decl. |
|
208 |
|
209 * ov-range.cc (octave_range::subsref): New function. |
|
210 * ov-range.h: Provide decl. |
|
211 |
|
212 * ov-cell.cc (octave_cell::subsref, octave_cell::subsasgn, |
|
213 octave_cell::list_value, octave_cell::print, |
|
214 octave_cell::print_raw, octave_cell::print_name_tag): New functions. |
|
215 * ov-cell.h: Provide decls. |
|
216 |
|
217 * ov-struct.cc (octave_struct::dotref, octave_struct::subsref, |
|
218 octave_struct::subsasgn, gripe_invalid_index, |
|
219 gripe_invalid_index_for_assignment, grip_invalid_index_type, |
|
220 gripe_failed_assignment): New functions. |
|
221 (octave_struct::numeric_conv): New static function. |
|
222 * ov-struct.h: Provide decls. |
|
223 (octave_struct::is_constant): Return true. |
|
224 (octave_struct::map_keys): New function. |
|
225 |
|
226 * ov-list.cc (octave_list::subsref, octave_list::subsasgn): |
|
227 New functions. |
|
228 * ov-list.h: Provide decls. |
|
229 |
|
230 * ov-usr-fcn.cc (octave_user_function::subsref, |
|
231 octave_user_function::print_symtab_info): New functions. |
|
232 * ov-usr-fcn.h: Provide decl. |
|
233 |
|
234 * ov-mapper.cc (octave_mapper::subsref): New function. |
|
235 * ov-mapper.h: Provide decl. |
|
236 |
|
237 * ov-base.cc (octave_base_value::subsref, |
|
238 octave_base_value::subsasgn): New functions. |
|
239 * ov-base.h: Provide decls. |
|
240 |
|
241 * ov-base.cc (octave_base_value::do_index_op): New arg, resize_ok. |
|
242 * ov-base-mat.cc (octave_base_matrix<MT>::do_index_op): Likewise. |
|
243 * ov-base-nd-array.cc (octave_base_nd_array<AT>::do_index_op): Ditto. |
|
244 * ov-bool-mat.cc (octave_bool::do_index_op): Ditto. |
|
245 * ov-str-mat.cc (octave_char_matrix_str::do_index_op): Ditto. |
|
246 * ov-range.cc (octave_range::do_index_op): Ditto. |
|
247 * ov-list.cc (octave_list::do_index_op): Ditto. |
|
248 * ov.cc (octave_value::do_index_op): Ditto. |
|
249 |
|
250 * ov-base-mat.cc (octave_base_matrix<MT>::print_info): New function. |
|
251 |
|
252 * ov-base-mat.h (octave_base_matrix<MT>::empty_clone): New function. |
|
253 * ov-base-nd-array.h (octave_base_nd_array<AT>::empty_clone): Ditto. |
|
254 * ov-base.h (octave_base_value::empty_clone): Ditto. |
|
255 * ov-bool-mat.h (octave_bool::empty_clone): Ditto. |
|
256 * ov-ch-mat.h (octave_char_matrix::empty_clone): Likewise. |
|
257 * ov-colon.h (octave_magic_colon::empty_clone): Likewise. |
|
258 * ov-complex.h (octave_complex::empty_clone): Likewise. |
|
259 * ov-cx-mat.h (octave_complex_matrix::empty_clone): Likewise. |
|
260 * ov-fcn.cc (octave_function::empty_clone): Likewise. |
|
261 * ov-file.h (octave_file::empty_clone): Likewise. |
|
262 * ov-range.h (octave_range::empty_clone): Likewise. |
|
263 * ov-list.h (octave_list::empty_clone): Likewise. |
|
264 * ov-re-mat.h (octave_matrix::empty_clone): Likewise. |
|
265 * ov-re-nd-array.h (octave_double_nd_array::empty_clone): Likewise. |
|
266 * ov-str-mat.h (octave_char_matrix_str::empty_clone): Likewise. |
|
267 * ov-struct.h (octave_struct::empty_clone): Likewise. |
|
268 * ov-va_args.h (octave_all_va_args::empty_clone): Likewise. |
|
269 * ov.h (octave_value::empty_clone): Likewise. |
|
270 |
|
271 * ov-base-mat.h (octave_base_matrix<MT>::clone): Now const. |
|
272 * ov-base-nd-array.h (octave_base_nd_array<AT>::clone): Likewise. |
|
273 * ov-base.h (octave_base_value::clone): Likewise. |
|
274 * ov-bool-mat.h (octave_bool::clone): Likewise. |
|
275 * ov-ch-mat.h (octave_char_matrix::clone): Likewise. |
|
276 * ov-colon.h (octave_magic_colon::clone): Likewise. |
|
277 * ov-complex.h (octave_complex::clone): Likewise. |
|
278 * ov-cx-mat.h (octave_complex_matrix::clone): Likewise. |
|
279 * ov-fcn.h (octave_function::clone): Likewise. |
|
280 * ov-file.h (octave_file::clone): Likewise. |
|
281 * ov-range.h (octave_range::clone): Likewise. |
|
282 * ov-list.h (octave_list::clone): Likewise. |
|
283 * ov-re-mat.h (octave_matrix::clone): Likewise. |
|
284 * ov-re-nd-array.h (octave_double_nd_array::clone): Likewise. |
|
285 * ov-str-mat.h (octave_char_matrix_str::clone): Likewise. |
|
286 * ov-struct.h (octave_struct::clone): Likewise. |
|
287 * ov-va_args.h (octave_all_va_args::clone): Likewise. |
|
288 * ov.h (octave_value::clone): Likewise. |
|
289 |
|
290 * oct-lvalue.cc (octave_lvalue::assign, octave_lvalue::set_index, |
|
291 octave_lvalue::do_unary_op): Idx is now a list of indices. Simplify. |
|
292 * oct-lvalue.h (octave_lvalue::value): Simplify. |
|
293 (octave_lvalue::struct_elt_names): Delete data member. |
|
294 (octave_lvalue::type): Now string |
|
295 Update decls. |
|
296 |
|
297 * pt-exp.h (tree_expression::is_indirect_ref): |
|
298 Delete virtual function. |
|
299 |
|
300 * pt-plot.cc (subplot::extract_plot_data): Use subsref, instead of |
|
301 do_index_op. |
|
302 |
|
303 * pt-stmt.cc (tree_statement::eval): Don't try to avoid binding |
|
304 ans for structure references. |
|
305 |
|
306 * symtab.cc (symbol_record::symbol_def::print_info): Rename from |
|
307 symbol_record::symbol_def::dump_symbol_info. |
|
308 (symbol_record::print_info): Rename from |
|
309 symbol_record::dump_symbol_info. Now const.. |
|
310 (symbol_record::print_symbol_info_line): Now const. |
|
311 (symbol_table::print_info): Rename from print_stats. Accept |
|
312 ostream arg. Now const. Print more info. |
|
313 * symtab.h: Update decls. |
|
314 |
|
315 * toplev.cc (octave_config_info): Indexing a map now returns a |
|
316 list, but we only want to return the first element. |
|
317 |
|
318 * variables.cc (generate_struct_completions, looks_like_struct): |
|
319 Simplify using eval_string. |
|
320 (F__print_symtab_info__): Rename from F__dump_symtab_info__. |
|
321 Handle "top-level" and individual function names in addition to |
|
322 "global". |
|
323 (F__print_symbol_info__): Rename from F___dump_symbol_info__. |
|
324 |
|
325 * octave.cc (intern_argv): Built-in variable argv is now a cell array. |
|
326 |
|
327 * ov-complex.cc (valid_scalar_indices): Delete. |
|
328 * ov-scalar.cc (valid_scalar_indices): Delete. |
|
329 |
|
330 * oct-obj.cc (octave_value_list::valid_scalar_indices): New function. |
|
331 (octave_value_list::index): New arg, resize_ok. |
|
332 * oct-obj.h: Provide decls. |
|
333 |
|
334 * oct-map.cc (Octave_map::keys): Rename from make_name_list. |
|
335 Change all uses. |
|
336 (Octave_map::assign, Octave_map::index): New functions. |
|
337 * oct-map.h: Provide decls. |
|
338 |
|
339 * data.cc (Fstruct_contains): Use map_value instead of |
|
340 do_struct_elt_index_op. |
|
341 |
|
342 * Cell.h (Cell (const Array2<octave_value>&, int, int)): |
|
343 New constructor. |
|
344 (Cell::resize_fill_value): New static function. |
|
345 |
|
346 * input.cc (initialize_command_input): Set basic and completer |
|
347 word break characters. |
|
348 |
3932
|
349 2002-05-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
350 |
3933
|
351 * ov.h (octave_value::subsref): New function. |
|
352 * ov-base.cc (octave_base_value::subsref): Likewise. |
|
353 |
3932
|
354 * ov-struct.cc (octave_struct::print_raw): Print scalar struct |
|
355 arrays more compactly. |
|
356 |
|
357 * DLD-FUNCTIONS/time.cc (extract_tm): Handle new struct array def. |
|
358 |
|
359 * oct-map.cc (Octave_map::array_len): New data member. |
|
360 (Octave_map::operator[], Octave_map::contsnts): Return |
|
361 octave_value_list, not Octave_value. Change callers as necessary. |
|
362 (Octave_map::assign): New function. |
|
363 (Octave_map::array_length): New fucntion. |
|
364 * oct-obj.cc (octave_value_list::assign): New function. |
|
365 |
3930
|
366 2002-05-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
367 |
3931
|
368 * TEMPLATE-INST/Map-oct-obj.cc: New file. |
|
369 * Makefile.in (TI_XSRC): Add it to the list. |
|
370 |
|
371 * oct-map.h (Octave_map): Make CHMap<octave_value_list> a data |
|
372 member instead of deriving from CHMap<octave_value>, in |
|
373 preparation for structure arrays. |
|
374 |
3930
|
375 * pt-indir.h, pt-indir.cc: Delete. |
|
376 |
|
377 * pt-all.h: Don't include pt-indir.h. |
|
378 |
|
379 * Makefile.in (PT_SRC): Delete pt-indir.cc from the list. |
|
380 (PT_INCLUDES): Delete pt-indir.h from the list. |
|
381 |
|
382 * pt-walk.h (tree_walker::visit_indirect_ref): Delete. |
|
383 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_indirect_ref): |
|
384 Likewise. |
|
385 * pt-check.h, pt-check.cc (tree_checker::visit_indirect_ref): Likewise. |
|
386 * pt-bp.h, pt-bp.cc (tree_breakpoint::visit_indirect_ref): Likewise. |
|
387 |
|
388 * pt-walk.h: Delete forward decl for tree_indirect_ref. |
|
389 * variables.h: Likewise. |
|
390 |
|
391 * parse.y (make_indirect_ref): Return tree_index_expression, not |
|
392 tree_indirect_ref. |
|
393 |
|
394 * pt-idx.h (tree_index_expression::struct_elt_name): New function. |
|
395 |
|
396 * pt-idx.cc (tree_index_expression::lvalue): Handle dot case too. |
|
397 (tree_index_expression::name): Likewise. |
|
398 (tree_index_expression rvalue (int)): Likewise. |
|
399 (tree_index_expression::eval_error): Likewise. |
|
400 * pt-pr-code.cc (visit_index_expression): Likewise. |
|
401 * pt-bp.cc (tree_breakpoint::visit_index_expression): Likewise. |
|
402 |
|
403 * pt-idx.h (tree_index_expression::dot): New type enum element. |
|
404 (tree_index_expression::expr_type): New function. |
|
405 (tree_index_expression::tree_index_expression (tree_expression*, |
|
406 const std::string&, int, int)): New constructor. |
|
407 (tree_index_expression::is_index_expression): Return value is now |
|
408 conditional on itype. |
|
409 (tree_index_expression::is_indirect_ref): New function. |
|
410 (tree_index_expression::lvalue_ok): Also return true if itype is dot. |
|
411 |
3928
|
412 2002-05-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
413 |
3929
|
414 * parse.y (ABORT_PARSE): Maybe restore symbol table context too. |
|
415 |
|
416 * pt-idx.h (tree_index_expression::type): New enum. |
|
417 (tree_index_expression::etype): New data member. |
|
418 * pt-idx.h (tree_index_expression::tree_index_expression): |
|
419 New arg, t, to set type of index. |
|
420 * parse.y (make_index_expression): Likewise. |
|
421 Change all callers. |
|
422 |
3928
|
423 * ov-base.cc (cell_conv): New conversion function. |
|
424 (install_base_type_conversions): Install it. |
|
425 Install conversion for indexed assignment of octave_cells to |
|
426 undefined values. |
|
427 |
|
428 * TEMPLATE-INST/Array-tc.cc: Instantiate assign functions too. |
|
429 (Array<octave_value>::resize_fill_value (void)): |
|
430 Provide specialization for octave_value. |
|
431 |
|
432 * ov-cell.cc (octave_cell::assign (const octave_value_list&, |
|
433 const octave_value&)): New function. |
|
434 * Cell.h (Cell::Cell (const octave_value&)): New function. |
|
435 |
|
436 * OPERATORS/op-cell.cc (install_list_ops): Use DEFASSIGNANYOP_FN |
|
437 and INSTALL_ASSIGNANYOP, not DEFASSIGNOP_FN and INSTALL_ASSIGNOP. |
|
438 |
|
439 2002-05-03 Cai Jianming <caijianming@yahoo.co.uk> |
|
440 |
|
441 * OPERATORS/op-cell.cc: New file. |
|
442 * src/Makefile.in (OP_XSRC): Include it in the list. |
|
443 |
|
444 * parse.y (cell): Return a cell type instead of Matrix type. |
|
445 |
|
446 * ov.cc (install_types): Install octave_cell type. |
|
447 |
|
448 * pr-output.cc (octave_print_internal): Handle Cells. |
|
449 * pr-output.h (octave_print_internal): Provide decl. |
|
450 |
|
451 * ov-cell.h (octave_cell): Derive from octave_base_matrix<Cell>. |
|
452 * ov-cell.cc (do_index_op, assign, print, print_raw, |
|
453 print_name_tag): Delete. |
|
454 |
|
455 * Cell.cc (allocator, index): Delete. |
|
456 * Cell.h (Cell): Derive from Array2<octave_value>. |
|
457 Most functions removed since we can use those from Array2 instead. |
|
458 |
|
459 2002-05-02 Cai Jianming <caijianming@yahoo.co.uk> |
|
460 |
|
461 * ov-base-mat.cc (octave_base_matrix<MT>::assign): |
|
462 New function. |
|
463 * ov-base-mat.h (octave_base_matrix<MT>::assign): Provide decl. |
|
464 * ov-bool-mat.cc (octave_bool_matrix::assign): Delete. |
|
465 * ov-bool-mat.h (octave_bool_matrix:assign): Delete decl |
|
466 * ov-cx-mat.cc (octave_complex_matrix::assign (const |
|
467 octave_value_list& idx, const ComplexMatrix&)): Delete. |
|
468 * ov-cx-mat.h (octave_complex_matrix:assign (const |
|
469 octave_value_list& idx, const ComplexMatrix&)): Replace decl with |
|
470 function. |
|
471 * ov-re-mat.cc (octave_bool_matrix::assign): Delete. |
|
472 * ov-re-mat.h (octave_bool_matrix:assign): Delete decl. |
|
473 |
3927
|
474 2002-05-02 Cai Jianming <caijianming@yahoo.co.uk> |
|
475 |
|
476 * OPERATORS/op-bm-b.cc: New file.x |
|
477 * Makefile.in (OP_XSRC): Add it to the list. |
|
478 |
3920
|
479 2002-04-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
480 |
3922
|
481 * octave.cc (print_version_and_exit): Use |
|
482 OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_AND_WARRANTY, not |
|
483 OCTAVE_NAME_AND_VERSION. |
|
484 |
|
485 * octave.cc (verbose_usage): |
|
486 Use OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_AND_WARRANTY, not |
|
487 OCTAVE_NAME_VERSION_AND_COPYRIGHT. |
|
488 |
|
489 * version.h (OCTAVE_COPYING_STATEMENT, OCTAVE_WARRANTY_STATEMENT, |
|
490 OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_AND_WARRANTY, |
|
491 X_OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_WARRANTY_AND_BUGS, |
|
492 OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_WARRANTY_AND_BUGS, |
|
493 OCTAVE_BUGS_STATEMENT): New macros. |
|
494 (OCTAVE_STARTUP_MESSAGE): Define in terms of |
|
495 X_OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_WARRANTY_AND_BUGS |
|
496 to include bugs address and amplified warranty information. |
|
497 |
3920
|
498 * DLD-FUNCTIONS/lsode.cc (Flsode): Delete unused variable nsteps. |
|
499 |
3917
|
500 2002-04-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
501 |
|
502 * help.cc (additional_help_message): Use www.octave.org, not |
|
503 www.che.wisc.edu/octave/octave.html. |
|
504 * octave.cc (verbose_usage): Likewise. |
|
505 |
3912
|
506 2002-04-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
507 |
|
508 * DLD-FUNCTIONS/daspk.cc: New file. |
|
509 * Makefile.in (DLD_XSRC): Add it to the list. |
|
510 |
3910
|
511 2002-04-25 Paul Kienzle <pkienzle@users.sf.net> |
|
512 |
|
513 * DLD-FUNCTIONS/kron.cc: New file. |
|
514 * Makefile.in (DLD_SRC): Add it to the list. |
|
515 |
3903
|
516 2002-04-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
517 |
|
518 * parse.y (save_symtab): New non-terminal. Save current symbol |
|
519 table context here. |
|
520 (function_beg): Use it. |
|
521 (symtab_context): New file-scope variable. |
|
522 (recover_from_parsing_function): Restore symbol table context here. |
|
523 |
3901
|
524 2002-04-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
525 |
|
526 * load-save.cc (get_lines_and_columns): Handle CRLF as line |
|
527 separator in addition to LF. |
|
528 |
3897
|
529 2002-04-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
530 |
|
531 * load-save.cc (hdf5_ofstream::hdf5_ofstream): |
|
532 Explicitly List std::ostream(0) in constructor. |
|
533 (hdf5_ifstream::hdf5_ifstream): |
|
534 Explicitly List std::istream(0) in constructor. |
|
535 (hdf5_fstreambase::hdf5_fstreambase): Use std::ios::setstate, not set. |
|
536 (hdf5_fstreambase::close): Likewise. |
|
537 (hdf5_fstreambase::open): Likewise. |
|
538 |
3895
|
539 2002-04-10 Ben Sapp <bsapp@lanl.gov> |
|
540 |
|
541 * pt-stmt.cc (delete_breakpoint): List breakpoints if line < 0. |
|
542 * debug.cc (get_user_function): Check symbol by name first. |
|
543 (Fdbstop): Rename from Fdbg_set. |
|
544 (Fdbclear): Rename from Fdbg_delete. |
|
545 (Fdbstatus): Rename from Fdbg_list. |
|
546 (Fdbg_where): Rename from Fdbwhere. |
|
547 (do_dbtype, Fdbtype): New functions. |
|
548 |
|
549 2002-04-10 Peter Van Wieren <peter.vanwiere@avlna.com> |
|
550 |
|
551 * load-save.cc (save_mat5_binary_element): Save elements of 2d |
|
552 character matrices in proper order. |
|
553 |
3893
|
554 2002-04-09 Paul Kienzle <pkienzle@users.sf.net> |
|
555 |
|
556 * utils.cc (do_string_escapes): Handle \0 too. |
|
557 (undo_string_escape): Likewise. |
|
558 |
3892
|
559 2002-04-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
560 |
|
561 * toplev.cc (octave_config_info): Define struct member EXEEXT, not EXE. |
|
562 * Makefile.in (install-bin): Use $(EXEEXT), not $(EXE). |
|
563 * oct-conf.h.in (OCTAVE_CONF_EXEEXT): Define and substitute |
|
564 OCTAVE_CONF_EXEEXT, not OCTAVE_CONF_EXE. |
|
565 |
3887
|
566 2002-04-03 Steven G. Johnson <stevenj@alum.mit.edu> |
|
567 |
|
568 * DLD-FUNCTIONS/balance.cc: Use F77_FUNC instead of F77_FCN. |
|
569 * DLD-FUNCTIONS/qz.cc: Likewise. |
|
570 * DLD-FUNCTIONS/rand.cc: Likewise. |
|
571 * octave.cc: Likewise. |
3910
|
572 * toplev.cc (Foctave_config_info): Delete use of FORTRAN_MAIN_FLAG. |
3887
|
573 * oct-conf.h.in: Delete use of OCTAVE_CONF_FORTRAN_MAIN_FLAG. |
|
574 * syscalls.cc (mk_stat_map): |
|
575 Use HAVE_STRUCT_STAT_ST_RDEV instead of HAVE_ST_RDEV. |
|
576 Use HAVE_STRUCT_STAT_ST_BLKSIZE instead of HAVE_ST_BLKSIZE. |
|
577 Use HAVE_STRUCT_STAT_ST_BLOCKS instead of HAVE_ST_BLOCKS. |
|
578 |
3881
|
579 2002-04-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
580 |
3883
|
581 * lex.l, lex.h (parser_end_of_input): New global variable. |
|
582 (reset_parser): Reset it here. |
|
583 * parse.y (input): Set it to TRUE on EOF. |
|
584 (parse_and_executed): Save and restore it, check it to correctly |
|
585 break out of parse-execute loop. |
|
586 (parse_fcn_file): Likewise. |
|
587 (eval_string): Likewise. |
3884
|
588 * toplev.cc (main_loop): Likewise. |
3883
|
589 |
3881
|
590 * parse.y (input): Call YYACCEPT for END_OF_INPUT. |
3883
|
591 Return no-op command for bare newline. |
3881
|
592 (parse_and_execute): Handle change in yyparse return value semantics. |
3883
|
593 |
3881
|
594 * toplev.cc (main_loop): Likewise. |
|
595 |
3880
|
596 2002-03-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
597 |
|
598 * parse.y (parse_fcn_file): Call error if there is no input file. |
|
599 (parse_and_execute (FILE *): Protect get_input_from_eval_string. |
|
600 Set get_input_from_eval_string to false before calling yyparse. |
|
601 * lex.l (reset_parser): Also skip yyrestart (stdin) if |
|
602 reading_script_file is true. |
|
603 |
3877
|
604 2002-03-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
605 |
|
606 * pt-loop.cc (evaluating_looping_command): New global. |
|
607 (tree_while_command::eval): Protect evaluating_looping_command. |
|
608 Set it to true while evaluating loop. |
|
609 (tree_do_until_command::eval): Ditto. |
|
610 (tree_simple_for_command::eval): Ditto. |
|
611 (tree_complex_for_command::eval): Ditto. |
|
612 * pt-loop.h (evaluating_looping_command): Provide decl. |
|
613 * parse.y (parse_fcn_file): Protect get_input_from_eval_string. |
|
614 Set get_input_from_eval_string to false before calling yyparse. |
|
615 (make_break_command): Also check evaluating_looping_command. |
|
616 (make_continue_command): Also check evaluating_looping_command. |
|
617 (eval_string (const std::string&, bool, int&, int)): Loop over |
|
618 yyparse to handle multi-line strings. |
|
619 Move call to unwind_protect::run_frame to end of function. |
|
620 Don't reset parser before calling yyparse. |
|
621 Correctly handle return, break, and continue. |
|
622 |
|
623 * input.cc (input_from_eval_string_pending): New global variable. |
|
624 (get_usr_input): Use it. |
|
625 * input.h (input_from_eval_string_pending): Provide decl. |
|
626 |
3876
|
627 2002-03-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
628 |
|
629 * ov-usr-fcn.cc (octave_user_function::do_multi_index_op): |
|
630 Don't unwind_protect num_named_args (it doesn't change on |
|
631 recursive calls). |
|
632 Do re-initialize curr_va_arg_number to num_named_args after |
|
633 unwind_protecting. |
|
634 |
|
635 * ov-usr-fcn.h (octave_user_function::clear_args_passed): Delete. |
|
636 (octave_user_function::saved_args): New data member. |
|
637 (octave_user_function::save_args_passed): New function. |
|
638 (octave_user_function::restore_args_passed): Ditto. |
|
639 * ov-usr-fcn.cc (clear_args_passed): Delete. |
|
640 (restore_args_passed): New function. |
|
641 (octave_user_function::do_multi_index_op): Correctly save and |
|
642 restore args passed for recursive calls. |
|
643 |
|
644 * TEMPLATE-INST/SLStack-ovl.cc: New file. |
|
645 * Makefile.in: Add it to the list. |
|
646 |
3870
|
647 2002-02-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
648 |
3871
|
649 * ov-usr-fcn.cc (octave_user_function::do_multi_index_op): |
|
650 Handle define_all_return_values after function is evaluated. |
|
651 From Paul Kienzle <pkienzle@jazz.ncnr.nist.gov>. |
|
652 |
|
653 * ov-scalar.cc (convert_to_str): Use octave_value (std::string) |
|
654 constructor instead of octave_value (char *) constructor so that |
|
655 setstr (0) will work. |
|
656 |
3870
|
657 * pager.cc (octave_pager_buf::sync): Set pointer to beginning |
|
658 of buffer after calling flush_currnt_contents_to_diary. |
|
659 (octave_diary_buf::sync): Call eback only once. |
|
660 |
3867
|
661 2002-01-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
662 |
|
663 * lex.l (.): Remove test for EOF since it is already handled |
|
664 separately. |
|
665 |
3866
|
666 2001-12-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
667 |
|
668 * load-save.cc (save_mat5_binary_element): |
|
669 Extract dimensions directly from tc. |
|
670 Handle ranges the same as real matrices. |
|
671 |
3864
|
672 2001-11-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
673 |
|
674 * data.cc (DATA_REDUCTION): If no DIM arg, pass -1 to FCN. |
|
675 |
3859
|
676 2001-11-09 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
677 |
|
678 * oct-conf.h.in (FFTW_LIBS, LD_CXX, LIBOCT_PATHSEARCH, |
|
679 LIBOCT_READLINE, MKOCTFILE_LFLAGS): Substitute. |
|
680 * toplev.cc (octave_config_info): Add them to the map. |
|
681 |
|
682 2001-11-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
683 |
|
684 * DLD-FUNCTIONS/lsode.cc (Flsode): Don't bother to give OUTPUT |
|
685 matrix a size before calling integration function. |
|
686 |
3857
|
687 2001-11-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
688 |
|
689 Makefile.in (OCTAVE_LIBS): Add $(LIBOCT_READLINE) and |
|
690 $(LIBOCT_PATHSEARCH) to the list. |
|
691 |
3849
|
692 2001-10-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
693 |
|
694 * DLD-FUNCTIONS/dassl.cc (dassl_user_function): Allow user |
|
695 supplied RES function to return IDID as second value. |
|
696 |
3844
|
697 2001-07-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
698 |
|
699 * parse.y: Clear help_buf after documenting function. |
|
700 |
3842
|
701 2001-06-29 Mumit Khan <khan@nanotech.wisc.edu> |
|
702 |
|
703 * defun-int.h (DEFINE_FUN_INSTALLER_FUN{2,3}): New macros. |
|
704 (DEFINE_FUN_INSTALLER_FUN): Use. |
|
705 * dynamic-ld.cc ({STRINGIFY, STRINGIFY1}): New macros. |
|
706 (octave_dynamic_loader::mangle_name): Support dynamic linking |
|
707 for GNU v3 and Sun C++ ABI. |
|
708 |
3841
|
709 2001-06-26 Mumit Khan <khan@nanotech.wisc.edu> |
|
710 |
|
711 * c-file-ptr-stream.h (c_file_ptr_buf::c_file_ptr_buf): Add GCC3 |
|
712 libstdc++-v3 support. |
|
713 * load-save.cc (save_mat5_binary_element): Cast arguments to the |
|
714 correct type. |
|
715 (save_ascii_data): Eliminate compiler warning. |
|
716 * toplev.cc (system): Prefix std::. |
|
717 |
3836
|
718 2001-05-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
719 |
|
720 * ov-cx-mat.cc: Deleve unnecessary instantiation of assign function. |
|
721 * ov-re-mat.cc: Likewise. |
|
722 * ov-re-nd-array.cc: Likewise. |
|
723 * ov-str-mat.cc: Likewise. |
|
724 * ov-bool-mat.cc: Likewise. |
|
725 |
|
726 * load-save.cc (save_ascii_data): When saving string data, get raw |
|
727 string value for matrix row since there may be embedded nuls. |
|
728 |
|
729 * pt-mat.cc (Vstring_fill_char): No longer static. |
|
730 * pt-mat.h: Provide declaration. |
|
731 |
3834
|
732 2001-05-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
733 |
|
734 * octave.cc (initialize_pathsearch): Save initial value of the |
|
735 TEXMFDBS environment variable here. |
|
736 * toplev.cc (restore_texmfdbs_envvar): New function. |
|
737 (Fsystem): Set TEXMFDBS back to original value before running |
|
738 subprocesses. |
|
739 |
3827
|
740 2001-05-02 Mumit Khan <khan@nanotech.wisc.edu> |
|
741 |
|
742 * Makefile.in (octave): Add $(FFTW_LIBS). |
|
743 |
3826
|
744 2001-04-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
745 |
|
746 * DLD-FUNCTIONS/sort.cc (mx_sort): Check for NaNs in comparisons. |
|
747 |
3822
|
748 2001-04-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
749 |
|
750 * Makefile.in (OCTAVE_LIBS): Delete $(LIBREADLINE) from the list. |
|
751 (octave): Delete TERMLIBS from link command. |
|
752 * oct-conf.h.in: Delete references to LIBREADLINE, TERMLIBS. |
|
753 * toplev.cc (octave_config_info): Delete entries for LIBREADLINE, |
|
754 TERMLIBS. |
|
755 |
3821
|
756 2001-04-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
757 |
|
758 * Makefile.in (install-lib): Don't use mk-libdir-link. |
|
759 (install-inc): Don't use mk-includedir-link. |
|
760 |
3815
|
761 2001-04-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
762 |
|
763 * parse.y (fold (tree_binary_expression *)): |
|
764 Set discard_error_messages here instead of buffer_error_messages. |
|
765 Don't add clear_global_error_variable to the unwind_protect stack. |
|
766 (fold (tree_unary_expression *)): Likewise. |
|
767 (finish_colon_expression): Likewise. |
|
768 (finish_matrix): Likewise. |
|
769 |
|
770 * error.cc (panic): Set discard_error_messages to false here. |
|
771 (verror): Return immediately if discard_error_messages is true. |
|
772 |
|
773 * error.cc (discard_error_messages): New global variable. |
|
774 * error.h: Provide declaration. |
|
775 |
3813
|
776 2001-04-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
777 |
|
778 * lex.l: If unexpected character is EOF, report EOF error instead |
|
779 of invalid character error. |
|
780 |
3812
|
781 2001-04-18 Mumit Khan <khan@nanotech.wisc.edu> |
|
782 |
|
783 * load-save.cc (read_mat5_binary_element): Cast arguments to the |
|
784 correct type when adding stream positions. |
|
785 * DLD-FUNCTIONS/det.cc (det): Explicity create a Complex value to |
|
786 work around a Sun C++ type conversion bug. |
|
787 |
3811
|
788 2001-04-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
789 |
|
790 * symtab.cc (define_builtin_const): Don't call replace_all_defs |
|
791 here. |
|
792 |
|
793 * error.cc (error_message_buffer): Now static. |
|
794 * error.h (error_message_buffer): Delete extern declaration. |
|
795 |
3810
|
796 2001-03-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
797 |
|
798 * DLD-FUNCTIONS/besselj.cc (besselh): Use K arg. |
|
799 From: Thomas Stuart <tstuart@ing.sun.ac.za>. |
|
800 |
|
801 * oct-stream.cc (get_size): Don't allow [Inf, N] as a size |
|
802 specification for the read and scanf functions. |
|
803 (get_size): SIZE is now an Array<double> instead of a Matrix object. |
|
804 (read): Likewise. Change all callers. |
|
805 (scanf): Likewise. Change all callers. |
|
806 |
3808
|
807 2001-03-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
808 |
|
809 * DLD-FUNCTIONS/det.cc (Fdet): Only return rcond if nargout > 1. |
|
810 * DLD-FUNCTIONS/inv.cc (Finv): Only return rcond if nargout > 1. |
|
811 |
|
812 2001-03-26 Paul Kienzle <pkienzle@kienzle.powernet.co.uk> |
|
813 |
|
814 * DLD-FUNCTIONS/det.cc (Fdet): Suppress warning, but return rcond. |
|
815 * DLD_FUNCTIONS/inv.cc (Finv): Return rcond if requested. |
|
816 |
3804
|
817 2001-02-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
818 |
3805
|
819 * pt.h (tree::break_statement): New static member. |
|
820 (tree::break_function): Make const. |
|
821 * pt.cc (tree::break_statement): Initialize here. |
|
822 (tree::break_function): Make const. |
|
823 * pb-bp.h (break_statement): Delete global varaible declaration. |
|
824 * pt-bp.cc (break_statement): Delete global variable definition. |
|
825 |
|
826 * pt-bp.h (tree_breakpoint::bp_list): Rename from lst. |
|
827 |
|
828 * pt.h: Don't inlcude ov-usr-fcn.h. |
|
829 Provide forward declaration of octave_user_function class. |
|
830 |
|
831 2001-02-28 Ben Sapp <bsapp@lanl.gov> |
|
832 |
|
833 * debug.cc (get_user_function): Simplify by using curr_function. |
|
834 (Fdbg_where): New function. |
|
835 (Fdbg_list): Now DLD_TEXT instead of DLD_FCN. |
|
836 (Fdbg_set): Likewise. |
|
837 (Fdbg_delete): Likewise. |
|
838 |
|
839 * pt-bp.h (break_statement): New global variable. |
|
840 (MAYBE_DO_BREAKPOINT): Check for dbg_next and dbg_step. |
|
841 Print line, column, and current statement. |
|
842 * pt-bp.cc (break_statement): New global variable |
|
843 (tree_breakpoint::visit_do_until_command): Return immediately if |
|
844 we've already found the line. |
|
845 (tree_breakpoint::visit_colon_expression): Set breakpoint info here. |
|
846 (tree_breakpoint::visit_binary_expression): Recurse here when |
|
847 checking for breakpoints. |
|
848 |
|
849 * debug.cc: Move here from DLD-FUNCTIONS/debug.cc. |
|
850 * Makefile.in (DIST_SRC): Add it to the list. |
|
851 (DLD_XSRC): Delete it from the list. |
|
852 |
|
853 * pt.h (tree::last_line, tree::break_function): New static members. |
|
854 * pt.cc(tree::last_line, tree::break_function): Initialize them. |
|
855 |
|
856 * pt-cell.h (tree_cell::tree_cell): Accept line and column info. |
|
857 * pt-mat.h (tree_matrix::tree_matrix): Likewise. |
|
858 |
|
859 * ov-usr-fcn.h (octave_user_function::sym_tab): Delete. |
|
860 |
|
861 * input.cc (get_user_input): Handle dbg_next. |
|
862 Set tree:break_function and tree::last_line when doing dbg_step. |
|
863 |
|
864 2001-02-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
865 |
|
866 * lex.l (handle_string): Save line and column information in token. |
|
867 (is_keyword): Save line and column information for plot style and |
|
868 axes tokens. |
|
869 |
3804
|
870 * toplev.cc (main_loop): Set retval to non-zero value if error |
|
871 occurs when not interactive. |
|
872 |
3802
|
873 2001-02-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
874 |
|
875 * parse.y (gobble_leading_white_space): Handle CRLF here too. |
|
876 * lex.l (check_for_garbage_after_fcn_def): Likewise. |
|
877 |
|
878 * lex.l: Add numeric value of character to error message for |
|
879 unrecognized characters. |
|
880 |
3800
|
881 2001-02-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
882 |
|
883 * DLD-FUNCTIONS/minmax.cc (EMPTY_RETURN_CHECK): For empty matrix |
|
884 args, make Octave's min and max behave like Matlab. |
|
885 |
3799
|
886 2001-02-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
887 |
|
888 * OPERATORS/op-s-s.cc (el_or, el_and): Return bool value. |
|
889 |
3798
|
890 2001-02-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
891 |
|
892 * pt-binop.cc (tree_boolean_expression::rvalue): |
|
893 Don't cast result to double. |
|
894 |
|
895 * OPERATORS/op-b-b.cc: Allow & and | operators to return bool values. |
|
896 |
|
897 2001-02-09 John W. Eaton <jwe@bevo.che.wisc.edu> |
3797
|
898 |
|
899 * data.cc (DATA_REDUCTION): Undo previous change. |
|
900 |
|
901 2001-02-13 Matthew W. Roberts <matt@nephi.tamu.edu> |
|
902 |
|
903 * load-save.cc (Fload): Accept -4 as an alias for -v4 and -mat4-binary. |
|
904 (Fsave): Likewise. |
|
905 |
3796
|
906 2001-02-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
907 |
|
908 * lex.l (lexical_feedbac::init): |
|
909 Initialize looking_at_matrix_or_assign_lhs too. |
|
910 |
3795
|
911 2001-02-09 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
912 |
|
913 * data.cc (DATA_REDUCTION): Allow FCN(x,0) to be equivalent to FCN(x). |
|
914 |
3779
|
915 2001-02-06 Mumit Khan <khan@nanotech.wisc.edu> |
|
916 |
|
917 * oct-stream.cc (octave_scan): Partially implement and specialize |
|
918 for char*. Delete the old template instantiations. |
|
919 (BEGIN_S_CONVERSION): Use strings instead of ostrstreambuf. |
|
920 (octave_base_stream::do_scanf): Pass correct parameter to |
|
921 do_scan_conv. |
|
922 |
3775
|
923 2001-02-05 Mumit Khan <khan@nanotech.wisc.edu> |
|
924 |
3776
|
925 * pr-output.cc (set_format): Add std:: namespace qualifier as |
|
926 needed. |
|
927 |
3775
|
928 * oct-stream.cc (octave_scan): Implement, and specialize for |
|
929 char*. Delete the old template instantiations. |
|
930 (BEGIN_S_CONVERSION): Use strings instead of ostrstreambuf. |
|
931 (octave_base_stream::do_scanf): Pass correct parameter to |
|
932 do_scan_conv. |
|
933 |
|
934 * Makefile.in (TEMPLATE_AR, TEMPLATE_ARFLAGS): Use to create |
|
935 archive libraries containing templates. |
|
936 |
|
937 * c-file-ptr-stream.h: Include <fstream>. Use <cstdio> instead of |
|
938 <stdio.h> |
|
939 (c_file_ptr_buf::int_type): Compat typedef for non-ISO libstdc++. |
|
940 (c_file_ptr_buf::{overflow, underflow, uflow, pbackfail): Use. |
|
941 (c_file_ptr_buf::c_file_ptr_buf): Handle various compilers. |
|
942 (c_file_ptr_buf::file_number): New member function. |
|
943 (c_file_ptr_buf::fd): New private data. |
|
944 (i_c_file_ptr_stream::i_c_file_ptr_stream): Initialize stream |
|
945 correctly. |
|
946 (o_c_file_ptr_stream::o_c_file_ptr_stream): Likewise. |
|
947 * c-file-ptr-stream.cc |
|
948 (c_file_ptr_buf::{overflow, underflow, uflow, pbackfail): Add |
|
949 ISO-compliant EOF handling. |
|
950 * oct-stream.cc (octave_base_stream::file_number): Use |
|
951 c_file_ptr_buf::file_number to get underlying file descriptor. |
|
952 |
|
953 * comment-list.cc: Add missing class qualifier. |
|
954 |
|
955 * file-io.cc, load-save.cc, mappers.cc, oct-fstrm.cc, oct-fstrm.h, |
|
956 oct-iostrm.cc, oct-iostrm.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
957 oct-stream.cc, oct-stream.h, oct-strstrm.cc, oct-strstrm.h, |
|
958 ov-base-nd-array.cc, ov-base-scalar.h, ov-complex.cc, ov-cx-mat.cc, |
|
959 pager.cc, pr-output.cc, procstream.h, pt-bp.h, utils.cc: |
|
960 Add std:: namespace qualifier as needed, and replace |
|
961 deprecated or invalid libstdc++-v2 names with standard ones |
|
962 where appropriate. |
|
963 |
|
964 * DLD-FUNCTIONS/minmax.cc: Fix docstring. |
|
965 |
|
966 * oct-fstrm.cc (octave_fstream::octave_fstream): Maintain fix for |
|
967 libstdc++-v2. |
|
968 |
|
969 * oct-stdstrm.cc (octave_ostdiostream::create): Remove default |
|
970 parameter value in definition. |
|
971 |
|
972 * oct-stream.cc (octave_stream::mode_as_string): Don't assume |
|
973 std::iso::openmode is an integral quantity. |
|
974 |
|
975 * pager.cc, procstream.h: Initialize streams correctly. |
|
976 |
|
977 * utils.cc: Use CXX_ISO_COMPLIANT_LIBRARY guard. |
|
978 |
|
979 * ov-base-nd-array.cc (idx_list_to_idx_array): Inline. |
|
980 |
|
981 * ov-base-scalar.h (octave_base_scalar::octave_base_scalar): Use |
|
982 ``const ST& s'' instead of ST to workaround gcc3 complex bug. |
|
983 |
3774
|
984 2001-02-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
985 |
|
986 * lex.l (next_token_is_bin_op): Remove Checks for spacing except |
|
987 for ops that begin with +, - but are not ++, --, +=, or -=. |
|
988 |
3772
|
989 2001-02-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
990 |
|
991 * input.cc (get_user_input): Handle dbg_cont and dbg_step here. |
|
992 * debug.cc (Fdbg_cont): Delete. |
|
993 * pt-bp.h (MAYBE_DO_BREAKPOINT): Check tree::break_next here. |
|
994 * pt.h (tree::break_next): New static member. |
|
995 * pt.cc: Initialize it. |
|
996 |
|
997 * parse.h (feval (const octave_value_list&, int)): |
|
998 Set default value for nargout. |
|
999 (feval (const std::string&, const octave_value_list&, int)): |
|
1000 Set default values for args and nargout. |
|
1001 |
3770
|
1002 2001-02-01 Ben Sapp <bsapp@lanl.gov> |
|
1003 |
|
1004 * DLD-FUNCTIONS/debug.cc: New file. |
|
1005 * pt-bp.h, pt-bp.cc: New files, for breakpoints. |
|
1006 * Makefile.in: Add them to the appropriate lists. |
|
1007 |
|
1008 * pt-stmt.cc (tree_statement_list::set_breakpoint, |
|
1009 tree_statement_list::delete_breakpoint, |
|
1010 tree_statement_list::list_breakpoints): New functions. |
|
1011 |
|
1012 * pt.h (tree::break_point): New data member. |
|
1013 (tree::set_breakpoint, tree::delete_breakpoint, tree::is_breakpoint): |
|
1014 New virtual functions. |
|
1015 |
|
1016 * pt-mat.cc (tree_matrix::rvalue): Check for breakpoint here. |
|
1017 * pt-unop.cc (tree_prefix_expression::rvalue): Likewise. |
|
1018 (tree_postfix_expression::rvalue): Likewise. |
|
1019 * pt-loop.cc (tree_do_until_command::eval): Likewise. |
|
1020 (DO_LOOP): Likewise. |
|
1021 (tree_simple_for_command::eval): Likewise. |
|
1022 (tree_complex_for_command::eval): Likewise. |
|
1023 * pt-assign.cc (tree_simple_assignment::rvalue): Likewise. |
|
1024 * pt-binop.cc (tree_binary_expression::rvalue): Likewise. |
|
1025 (tree_boolean_expression::rvalue): Likewise. |
|
1026 * pt-cell.cc (tree_cell::rvalue): Likewise. |
|
1027 * pt-colon.cc (tree_colon_expression::rvalue): Likewise. |
|
1028 * pt-except.cc (tree_try_catch_command::eval): Likewise. |
|
1029 (tree_unwind_protect_command::eval): Likewise. |
|
1030 * pt-id.cc (tree_identifier::rvalue): Likewise. |
|
1031 (tree_identifier::lvalue): Likewise. |
|
1032 * pt-indir.cc (tree_indirect_ref::rvalue): Likewise. |
|
1033 * pt-jump.cc (tree_break_command::eval): Likewise. |
|
1034 (tree_continue_command::eval): Likewise. |
|
1035 (tree_return_command::eval): Likewise. |
|
1036 |
3767
|
1037 2001-01-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1038 |
|
1039 * Map.h, Map.cc (CHMap<C>::operator = (const CHMap&)): New function. |
|
1040 (Map<C>::operator = (const Map&)): Likewise. |
|
1041 (Map<C> (const Map&)): Likewise. |
|
1042 |
|
1043 * OPERATORS/op-cm-cs.cc, OPERATORS/op-cm-s.cc, |
|
1044 OPERATORS/op-m-cs.cc, OPERATORS/op-m-s.cc: |
|
1045 Make ldiv operator work for row vector by scalar ops. |
|
1046 |
|
1047 * OPERATORS/op-cs-cm.cc, OPERATORS/op-cs-m.cc, |
|
1048 OPERATORS/op-s-cm.cc, OPERATORS/op-s-m.cc: |
|
1049 Make div operator work for scalar by column vector ops. |
|
1050 |
3765
|
1051 2001-01-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1052 |
|
1053 * parse.y (safe_fclose): Discard comments at the end of a file. |
|
1054 |
3764
|
1055 2001-01-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1056 |
|
1057 * error.cc (pr_where): Call pr_where_1 with two args, not one, to |
|
1058 avoid processing format escapes that might appear in formatted code. |
|
1059 |
3762
|
1060 2001-01-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1061 |
|
1062 * error.cc (vwarning): Write to output_buf, then send formatted |
|
1063 message to diary and error streams. |
|
1064 |
3760
|
1065 2001-01-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1066 |
|
1067 * ov-cx-mat.cc (octave_complex_matrix::try_narrowing_conversion): |
|
1068 Handle empty matrix dimensions correctly. |
|
1069 |
3756
|
1070 2000-12-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1071 |
|
1072 * pager.h (octave_pager_buf::diary_skip): New data member. |
|
1073 (octave_pager_buf::octave_pager_buf): Initialize it. |
|
1074 * pager.cc (octave_pager_buf::set_diary_skip): New function. |
|
1075 (octave_pager_stream::set_diary_skip): New function. |
|
1076 (octave_pager_buf::sync): Call flush_current_contents_to_diary |
|
1077 instead of octave_diary.write. |
|
1078 (octave_pager_buf::flush_current_contents_to_diary): Use |
|
1079 diary_skip, reset when done. |
|
1080 (open_diary_file): Call octave_stdout.set_diary_skip here. |
|
1081 |
3747
|
1082 2000-12-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1083 |
|
1084 * DLD-FUNCTIONS/minmax.cc (EMPTY_RETURN_CHECK): New macro. |
|
1085 (min, max): Use it. |
|
1086 |
|
1087 * DLD-FUNCTIONS/minmax.cc (MINMAX_BODY): New macro. If single arg |
|
1088 is empty, return empty matrix result and empty matrix for index. |
|
1089 (Fmin, Fmax): Use MINMAX_BODY, so we have consistent definition |
|
1090 for min and max functions. |
|
1091 |
|
1092 2000-11-30 Joerg Specht <joerg.specht@ins.uni-stuttgart.de> |
|
1093 |
|
1094 * help.cc (display_help_text): Append new line at end of doc string. |
|
1095 |
|
1096 2000-11-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1097 |
|
1098 * DLD-FUNCTIONS/lsode.cc (LSODE_ABORT1, LSODE_ABORT2): Omit `##' |
|
1099 in macro definition since they are not needed to paste strings |
|
1100 together and picky compilers choke on them. |
|
1101 * DLD-FUNCTIONS/quad.cc (QUAD_ABORT1, QUAD_ABORT2): Likewise. |
|
1102 * DLD-FUNCTIONS/fsolve.cc (FSOLVE_ABORT1, FSOLVE_ABORT2): Likewise. |
|
1103 * DLD-FUNCTIONS/dassl.cc (DASSL_ABORT1, DASSL_ABORT2): Likewise. |
|
1104 |
3741
|
1105 2000-11-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1106 |
3744
|
1107 * mkbuiltins (XDEFUNX_INTERNAL): New macro. |
3746
|
1108 * mkgendoc (XDEFUNX_INTERNAL): Likewise. |
3744
|
1109 * defun-int.h (DEFUNX_INTERNAL): Use it. |
|
1110 |
3743
|
1111 * defun.h (DEFUNX): New macro. |
|
1112 * defun-int.h (DEFUNX_INTERNAL, DECLARE_FUNX): New macro. |
|
1113 (DECLARE_FUN): Define in terms of DECLARE_FUNX. |
|
1114 |
3742
|
1115 * mkdefs: Read and print one line at a time, so we can force |
|
1116 patterns to match only at the beginning of a line. |
|
1117 |
3741
|
1118 * defun-int.h (UNDERSCORIFY): Omit `##' in macro definition since |
|
1119 they are not needed to paste strings together and picky compilers |
|
1120 choke on them. |
|
1121 |
3738
|
1122 2000-11-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1123 |
|
1124 * load-save.cc (save_ascii_data_for_plotting): New function. |
|
1125 * pt-plot.cc (save_in_tmp_file): Use it instead of save_ascii_data. |
|
1126 |
|
1127 * load-save.cc (save_ascii_data): Warn if saving Inf or NaN values. |
|
1128 New arg, infnan_warned. Use it to warn just once per set. |
|
1129 Now static. |
|
1130 (do_save): New arg, infnan_warned. Pass to save_ascii_data. |
|
1131 (save_vars): Initialize infnan_warned here, pass to do_save. |
|
1132 |
3737
|
1133 2000-11-16 Paul Kienzle <pkienzle@kienzle.powernet.co.uk> |
|
1134 |
|
1135 * file-io.cc (Ffprintf): If no file id parameter, don't return |
|
1136 count of characters if nargout is 0 (for compatibility with |
|
1137 Matlab). |
|
1138 |
|
1139 2000-11-16 Ben Sapp <bsapp@lanl.gov> |
|
1140 |
|
1141 * DLD-FUNCTIONS/rand.cc (do_rand): Declare loop counter as |
|
1142 volatile int, not just volatile. |
|
1143 |
3731
|
1144 2000-10-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1145 |
|
1146 * load-save.cc (skip_comments): Allow % as comment character too. |
|
1147 (extract_keyword): Likewise. |
|
1148 |
|
1149 * Makefile.in (oct-gperf.h): Remove -a, -g, and -p flags for gperf. |
|
1150 |
3727
|
1151 2000-10-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1152 |
|
1153 * load-save.cc (do_load): Allow result to be returned instead of |
|
1154 inserting variables in the symbol table. Change patterned after |
|
1155 patch by Kian Ming Adam Chai <caijianming@yahoo.co.uk>. |
|
1156 |
3726
|
1157 2000-10-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1158 |
|
1159 * Makefile.in (ops.cc): Don't substitute BLAS_LIBS and LIBS here. |
|
1160 |
|
1161 * oct-conf.h.in (OCTAVE_CONF_SPECIAL_MATH_LIB): Delete. |
|
1162 (OCTAVE_CONF_BLAS_LIBS): Add. |
|
1163 * toplev.cc (octave_config_info): Likewise, add BLAS_LIBS and |
|
1164 remove SPECIAL_MATH_LIB from the struct. |
|
1165 |
|
1166 * parse.y (feval (const octave_value_list&, int)): Don't panic |
|
1167 while processing arg names if arg.length() and arg_names.length() |
|
1168 differ. |
|
1169 |
3724
|
1170 2000-10-12 Paul Kienzle <pkienzle@kienzle.powernet.co.uk> |
|
1171 |
|
1172 * ov-cell.h (octave_cell::is_cell): New function. |
|
1173 |
|
1174 * pt-select.cc (equal): New static function. |
|
1175 (tree_switch_case::label_matches): Use it to compare case label |
|
1176 against arg. Handle cell arrays as case labels. |
|
1177 |
3723
|
1178 2000-10-12 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1179 |
|
1180 Change patterned after patch by Cai Jianming |
|
1181 <caijianming@yahoo.co.uk> to support for DIM arg in 2.0.x sources. |
|
1182 |
|
1183 * data.cc (DATA_REDUCTION): New macro. Handle second DIM arg here. |
|
1184 (Fcumprod): Replace function body with DATA_REDUCTION. |
|
1185 (Fcumsum): Likewise. |
|
1186 (Fprod): Likewise. |
|
1187 (Fsum): Likewise. |
|
1188 (Fsumsq): Likewise. |
|
1189 |
3719
|
1190 2000-10-10 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1191 |
|
1192 * error.cc (pr_where_2): New function. |
|
1193 (pr_where_1): Use it instead of error_1 to avoid setting error_state. |
|
1194 |
|
1195 2000-10-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1196 |
|
1197 * xdiv.cc (xdiv): Warn if execution falls through to lssolve. |
|
1198 |
3716
|
1199 2000-09-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1200 |
|
1201 * utils.cc (FERRNO): New function (currently commented out). |
|
1202 |
|
1203 * c-file-ptr-stream.cc (c_file_ptr_buf::close): Call flush here. |
|
1204 (c_file_ptr_buf::~c_file_ptr_buf): Not here. |
|
1205 * c-file-ptr-stream.h (c_fie_ptr_buf::close_fcn): New typedef. |
|
1206 (c_file_ptr_buf::cf): New data member. Add default constructor arg. |
|
1207 (class c_file_ptr_buf): Derive from filebuf, not streambuf. |
|
1208 (i_c_file_ptr_stream, o_c_file_ptr_stream): Handle close function here. |
|
1209 * oct-procstrm.cc (octave_iprocstream, octave_oprocstream): Likewise. |
|
1210 (octave_iprocstream::do_close, octave_oprocstream::do_close): Delete. |
|
1211 * oct-stdstrm.cc (octave_base_stdiostream::~octave_base_stdiostream): |
|
1212 Don't do anything. |
|
1213 (octave_istdiostream::create): Handle close function here. |
|
1214 (octave_istdiostream::octave_istdiostream): Likewise. |
|
1215 (octave_ostdiostream::create): Likewise. |
|
1216 (octave_ostdiostream::octave_ostdiostream): Likewise. |
|
1217 (class octave_base_stdiostream): Don't cache FILE pointer here. |
|
1218 |
3715
|
1219 2000-09-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1220 |
|
1221 * syscalls.cc (Ffcntl): Don't assume that the file id passed in is |
|
1222 the same as the underlying system file id. |
|
1223 |
3712
|
1224 2000-08-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1225 |
|
1226 * parse.y: Use octave_time, not time. |
|
1227 |
3711
|
1228 2000-08-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1229 |
|
1230 * oct-stream.cc (printf_value_cache::double_value): Also set |
|
1231 curr_stat to conversion_error if there are no values at all. |
|
1232 |
3710
|
1233 2000-08-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1234 |
|
1235 * dirfns.cc (Flink, Fsymlink, Freadlink): New functions. |
|
1236 |
3709
|
1237 2000-08-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1238 |
|
1239 * load-save.cc (Vsave_header_format_string): New variable. |
|
1240 (symbols_of_load_save): DEFVAR it. |
|
1241 (save_header_format, default_save_header_format): New functions. |
|
1242 (write_header): Use Vsave_header_format_string here. |
|
1243 |
3707
|
1244 2000-07-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1245 |
3708
|
1246 * pt-pr-code.h (tree_print_code::curr_print_indent_level, |
|
1247 (tree_print_code::beginning_of_line): No longer static. |
|
1248 (tree_print_code::tree_print_code): Initialize them here. |
|
1249 * pt-pr-code.cc: Not here. |
|
1250 |
|
1251 * pt-stmt.cc (tree_statement::eval): Set curr_statement here. |
|
1252 (tree_statement_list::eval): Not here. |
|
1253 |
3707
|
1254 Debug-on-error stuff based on a patch submitted by Paul Kienzle |
|
1255 <pkienzle@kienzle.powernet.co.uk> for 2.0.x. |
|
1256 |
|
1257 * error.cc (Vdebug_on_warning): New static flag variable. |
|
1258 (debug_on_warning): New function. |
|
1259 (symbols_of_warning): DEFVAR debug_on_warning. |
|
1260 (warning): Handle debug_on_warning here. |
|
1261 |
|
1262 * input.cc (do_keyboard): New function. |
|
1263 (Fkeyboard): Use it to do the real work. |
|
1264 * pt-stmt.cc (curr_statement): New static variable. |
|
1265 (tree_statement::eval): Save and restore it here. |
|
1266 * error.cc (Vdebug_on_error): New static flag variable. |
|
1267 (debug_on_error): New function. |
|
1268 (symbols_of_error): DEFVAR debug_on_error. |
|
1269 (pr_where, pr_where_1): New functions. |
|
1270 (error): Handle debug_on_error here. |
|
1271 |
3705
|
1272 2000-07-20 Joao Cardoso <jcardoso@inescporto.pt> |
|
1273 |
|
1274 * Makefile.in (octave): Link with $(LD_CXX) instead of $(CXX) |
|
1275 |
3704
|
1276 2000-07-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1277 |
|
1278 * oct-stream.cc (octave_base_stream::oscanf): Advance to next |
|
1279 format element before attempting to pick up any trailing stuff. |
|
1280 |
3697
|
1281 2000-07-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1282 |
3698
|
1283 * lex.l (next_token_is_bin_op): Don't recognize `..' as a binary op. |
|
1284 |
3697
|
1285 * load-save.cc (get_file_format): Call read_mat5_binary_file_header |
|
1286 with third arg true instead of false, so we don't barf if the file |
|
1287 is not a matlab v5 binary file. |
|
1288 |
3695
|
1289 2000-07-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1290 |
|
1291 * Makefile.in (octave): Link to ../libcruft/blas-xtra/xerbla.o here. |
|
1292 |
|
1293 * octave.cc (main): Remove kluge to attempt linking our version of |
|
1294 xerbla. |
|
1295 |
|
1296 2000-07-07 Steven G. Johnson <stevenj@alum.mit.edu> |
|
1297 |
|
1298 * load-save.cc (have_h5giterate_bug): New file-scope variable. |
|
1299 (hdf5_read_next_data): Only increment current_item if |
|
1300 have_h5giterate_bug is true. |
|
1301 (read_hdf5_data): Set have_h5giterate_bug here. |
|
1302 Only increment hs.current_item if have_h5giterate_bug is true. |
|
1303 |
3693
|
1304 2000-07-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1305 |
|
1306 * c-file-ptr-stream.cc (c_file_ptr_buf::close): |
|
1307 Return -1 if file pointer is NULL. |
|
1308 Set file pointer to 0 after closing. |
|
1309 (c_file_ptr_buf::~c_file_ptr_buf): Call close after flushing. |
|
1310 |
3694
|
1311 2000-07-05 Steven G. Johnson <stevenj@alum.mit.edu> |
3692
|
1312 |
|
1313 * Makefile.in (BLAS_LIBS): Substitute here. |
|
1314 (octave): Use $(BLAS_LIBS) in the final link command. |
|
1315 |
3694
|
1316 2000-06-30 Steven G. Johnson <stevenj@alum.mit.edu> |
3690
|
1317 |
|
1318 * Makefile.in (octave): Link $(FLIBS) last. |
|
1319 * octave.cc (main): Force our own xerbla to be linked instead of |
|
1320 some system version. |
|
1321 |
3688
|
1322 2000-06-29 James R. Van Zandt <jrv@vanzandt.mv.com> |
|
1323 |
3689
|
1324 * load-save.cc (load_save_format): New value, LS_MAT5_BINARY. |
3688
|
1325 (arrayclasstype, mat5_data_type): New enums. |
|
1326 (read_mat5_binary_data): New function. |
|
1327 (read_mat5_tag): New function. |
|
1328 (read_mat5_binary_element): New function. |
|
1329 (read_mat5_binary_file_header): New function. |
|
1330 (get_file_format): Check for mat5 binary format too. |
|
1331 (do_load): Handle mat5 binary format. |
|
1332 (write_mat5_tag): New function. |
|
1333 (write_mat5_array): New function. |
|
1334 (class mat5_callback): New class. |
|
1335 (save_mat5_binary_element): New functnon. |
|
1336 (do_save): Handle mat5 binary format. |
|
1337 (write_header): Handle LS_MAT5_BINARY case too. |
|
1338 (save_user_variables): Handle LS_MAT5_BINARY case too. |
|
1339 (Fsave): Handle LS_MAT5_BINARY case too. |
|
1340 (Fload): Handle LS_MAT5_BINARY case too. |
|
1341 |
3694
|
1342 2000-06-29 Steven G. Johnson <stevenj@alum.mit.edu> |
3687
|
1343 |
|
1344 All of the following changes are protected by #ifdef HAVE_HDF5. |
|
1345 |
|
1346 * load-save.cc (load_save_format): New value, LS_HDF5. |
|
1347 (make_valid_identifier): New function. |
|
1348 (class hdf5_fstreambase, class hdf5_ifstream, class hdf5_ofstream): |
|
1349 New classes for reading and writing hdf5 data. |
|
1350 (hdf5_types_compatible): New function. |
|
1351 (hdf5_import_multidim): New function. |
|
1352 (hdf5_check_attr): New function. |
|
1353 (hdf5_read_next_data): New function. |
|
1354 (hdf5_make_complex_type): New function. |
|
1355 (hdf5_make_range_type): New function. |
|
1356 (read_hdf5_data): New function. |
|
1357 (get_file_format): Handle HDF5 format. |
|
1358 (do_load): Handle LS_HDF5 case. |
|
1359 (Fload): Handle HDF5 format. |
|
1360 (hdf5_add_attr): New function. |
|
1361 (save_type_to_hdf5): New function. |
|
1362 (add_hdf5_data): New function. |
|
1363 (do_save): Handle HDF5 format. |
|
1364 (get_default_save_format): Handle LS_HDF5 case. |
|
1365 (write_header): Handle LS_HDF5 case. |
|
1366 (save_user_variables): Handle HDF5 format. |
|
1367 (Fsave): Handle HDF5 format. |
|
1368 |
3686
|
1369 2000-06-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1370 |
|
1371 * help.cc (display_help_text): If writing to filter fails, send |
|
1372 unformatted text to output stream. |
|
1373 |
3683
|
1374 2000-06-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1375 |
3685
|
1376 * OPERATORS/op-bm-bm.cc (eq): Define using mx_el_eq, not operator ==. |
|
1377 (ne): Likewise, use mx_el_ne, not operator !=. |
|
1378 |
3683
|
1379 * pr-output.cc (Fdisp): Delete. |
|
1380 |
3681
|
1381 2000-06-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1382 |
3682
|
1383 * pr-output.cc (float_format::float_format): Set default values |
|
1384 for width and precision to -1. |
|
1385 (operator << (ostream&, pr_formatted_float&): Set width and |
|
1386 precision if values are >= 0. |
|
1387 (set_real_format, set_real_matrix_format, set_range_format, |
|
1388 set_complex_format, set_complex_matrix_format): If we have all |
|
1389 integers, infinities, or nans, set precision equal to field width. |
|
1390 |
|
1391 * load-save.cc (read_ascii_data): Allow empty strings and string |
|
1392 vectors to be restored. |
|
1393 |
3681
|
1394 * variables.cc (var_matches_any_pattern): New function. |
|
1395 (Fclear): Use it to make exclusive clear work correctly. |
|
1396 |
3676
|
1397 2000-06-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1398 |
3678
|
1399 * ov-range.h (octave_range::is_numeric_type): New function. |
|
1400 |
3676
|
1401 * sysdep.cc (Fkbhit): Also ask for input if forced_interactive. |
|
1402 |
3675
|
1403 2000-06-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1404 |
|
1405 * Makefile.in (oct-gperf.h): Use $(GPERF) instead of gperf. |
|
1406 |
3671
|
1407 2000-05-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1408 |
|
1409 * DLD-FUNCTIONS/qz.cc (Fqz): When computing finite generalized |
|
1410 eigenvalues, don't write past the end of the array. |
|
1411 |
3665
|
1412 2000-05-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1413 |
|
1414 * ov-base-nd-array.h, ov-base-nd-array.cc, ov-re-nd-array.h, |
|
1415 ov-re-nd-array.h: New files. |
|
1416 * Makefile.in: Add them to the appropriate lists. |
|
1417 |
|
1418 * pt-stmt.h, pt-stmt.cc (class tree_statement): |
|
1419 Store comments associated with this parse tree element. |
|
1420 * pt-select.h, pt-select.cc (class tree_if_clause, |
|
1421 class tree_if_command, class tree_switch_case |
|
1422 class tree_switch_command): Likewise. |
|
1423 * pt-loop.h, pt-loop.cc (class tree_while_command, |
|
1424 class tree_do_until_command, class tree_simple_for_command, |
|
1425 class tree_complex_for_command): Likewise. |
|
1426 * pt-except.h, pt-except.cc (class tree_try_catch_command, |
|
1427 class tree_unwind_protect_command): Likewise. |
|
1428 * ov-usr-fcn.h, ov-usr-fcn.cc (class octave_user_function): Likewise. |
|
1429 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::print_comment_elt, |
|
1430 tree_print_code::print_comment_list, |
|
1431 tree_print_code::print_indented_comment): New functions. |
|
1432 (tree_print_code::visit_simple_for_command, |
|
1433 tree_print_code::visit_complex_for_command, |
|
1434 tree_print_code::visit_octave_user_function_header, |
|
1435 tree_print_code::visit_octave_user_function_trailer, |
|
1436 tree_print_code::visit_if_command, tree_print_code::visit_statement, |
|
1437 tree_print_code::visit_switch_case, |
|
1438 tree_print_code::visit_switch_command, |
|
1439 tree_print_code::visit_try_catch_command, |
|
1440 tree_print_code::visit_unwind_protect_command |
|
1441 tree_print_code::visit_while_command, |
|
1442 tree_print_code::visit_do_until_command): Handle comments. |
|
1443 * lex.l, parse.y: Handle comments in parse trees. |
|
1444 * comment-list.h, comment-list.cc: New files. |
|
1445 * Makefile.in: Add them to the appropriate lists. |
|
1446 |
3661
|
1447 2000-04-23 etienne grossmann <etienne@anonimo.isr.ist.utl.pt> |
|
1448 |
|
1449 * pt-mat.cc (tm_row_const::tm_row_const_rep::eval_error): |
|
1450 New args x and y, for dimension mismatch info. |
|
1451 Change callers where appropriate. |
|
1452 (tm_const::init): Report mismatched column dimensions. |
|
1453 |
3658
|
1454 2000-04-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1455 |
|
1456 * sysdep.cc (kbhit): Also clear cin if at EOF. |
|
1457 |
3657
|
1458 2000-04-11 Joao Cardoso <jcardoso@inescn.pt> |
|
1459 |
|
1460 * sysdep.cc (kbhit): New arg, wait. |
|
1461 (raw_mode): Ditto. |
|
1462 (Fkbhit): If given an arg, call kbhit with wait = false. |
|
1463 |
|
1464 * DLD-FUNCTIONS/minmax.cc (Fmax, Fmin): Fix doc string. |
|
1465 |
3656
|
1466 2000-04-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1467 |
|
1468 * dynamic-ld.cc (octave_dynamic_loader::do_load): Undo previous change. |
|
1469 |
3655
|
1470 2000-04-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1471 |
|
1472 * dynamic-ld.cc (octave_dynamic_loader::do_load): Also fail with |
|
1473 error message if we don't find the mangled function name in the |
|
1474 file. |
|
1475 |
3652
|
1476 2000-03-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1477 |
3653
|
1478 * oct-stream.cc (printf_value_cache::string_value): Return string |
|
1479 matrices in a Matlab-compatible way. |
|
1480 (printf_value_cache): Redesign the way list_exhausted works. |
|
1481 |
3652
|
1482 * oct-fstrm.cc (octave_fstream::do_close): New function. |
|
1483 * oct-stdstrm.cc (octave_istdiostream::do_close): Ditto. |
|
1484 (octave_ostdiostream::do_close): Ditto. |
|
1485 * c-file-ptr-stream.cc (c_file_ptr_buf::close): Ditto. |
|
1486 (i_c_file_ptr_stream::close): Ditto. |
|
1487 (o_c_file_ptr_stream::close): Ditto. |
|
1488 * oct-prcstrm.cc (octave_iprocstream::do_close): Ditto. |
|
1489 (octave_oprocstream::do_close): Ditto. |
|
1490 (octave_iprocstram::~octave_iprocstram): Call do_close here. |
|
1491 (octave_iprocstram::~octave_oprocstram): Likewise. |
|
1492 |
|
1493 * oct-stream.h (octave_base_stream::do_close): New virtual function. |
|
1494 (octave_base_stream::close): If stream is open, call do_close. |
|
1495 |
|
1496 * c-file-ptr-stream.cc (c_file_ptr_buf::flush): New function. |
|
1497 (c_file_ptr_buf::~c_file_ptr_buf): Use it. |
|
1498 (c_file_ptr_buf::overflow): Ditto. |
|
1499 (c_file_ptr_buf::sync): Ditto. |
|
1500 |
3649
|
1501 2000-03-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1502 |
|
1503 * oct-procbuf.cc (octave_procbuf::open): Make output streams line |
|
1504 buffered. |
|
1505 |
3640
|
1506 2000-03-24 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1507 |
3644
|
1508 * sighandlers.cc (my_friendly_exit): Prefix failure messages with |
|
1509 panic instead of error. |
|
1510 |
3642
|
1511 * c-file-ptr-stream.cc (c_file_ptr_buf::~c_file_ptr_buf): |
|
1512 Avoid dereferencing NULL pointer. |
|
1513 |
3640
|
1514 * oct-stream.cc (printf_format_list::add_elt_to_list, |
|
1515 printf_format_list::process_conversion, |
|
1516 printf_format_list::finish_conversion): New args, flags, fw, and prec. |
|
1517 (printf_format_list::printf_format_list): Save more complete info. |
|
1518 (printf_format_list::printme): Print flags, fw, and prec. |
|
1519 (octave_base_stream::printf): Simplify. |
|
1520 (do_printf_conv): Delete have_arg arg, since it is always true now. |
|
1521 (octave_base_stream::do_printf): Handle case of no args and % |
|
1522 directly instead of using do_printf_conv. |
|
1523 (printf_value_cache::exhausted): Rename from no_more_values. |
|
1524 (DO_PCT_CONVERSION): New macro |
|
1525 (octave_base_streain::do_scanf, octave_base_streain::do_oscanf): |
|
1526 Use it. |
|
1527 (scanf_format_list::finish_conversion): `%' counts as a conversion too. |
|
1528 Also don't forget to set type for it. |
|
1529 (OCTAVE_SCAN_0): Delete. |
|
1530 (OCTAVE_SCAN): Rename from OCTAVE_SCAN_1. |
|
1531 (octave_base_stream::scanf, octave_base_stream::oscanf): Don't |
|
1532 special-case number of conversions here. |
|
1533 (octave_base_stream::oscanf, octave_base_stream::do_oscanf): Only |
|
1534 cycle through fmt elements if the number of conversions is greater |
|
1535 than 0. |
|
1536 |
|
1537 * oct-stream.h (scanf_format_list::next): New arg, `cycle'. |
|
1538 (printf_format_list::next): New arg, `cycle'. |
|
1539 (printf_format_list::last_elt_p): New function. |
|
1540 (printf_format_elt): New fields fw, prec, and flags. |
|
1541 Define copy constructor and assignment operator. |
|
1542 (scanf_format_elt): Define copy constructor and assignment operator. |
|
1543 |
3627
|
1544 2000-03-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1545 |
3639
|
1546 * oct-stream.cc (OCTAVE_SCAN_0, OCTAVE_SCAN_1): New macros. |
|
1547 (do_scanf_conv, BEGIN_S_CONVERSION, BEGIN_CHAR_CLASS_CONVERSION, |
|
1548 do_scanf, scanf, do_oscanf, do_oscanf, oscanf): Use them instead |
|
1549 of calling istream::scan directly. |
|
1550 (octave_scan): New function. |
|
1551 (do_scanf_conv): Second arg is now scanf_format_elt instead of char*. |
|
1552 Change all callers. |
|
1553 |
3631
|
1554 * oct-procbuf.h, oct-procbuf.cc (octave_procbuf): |
|
1555 Derive from c_file_ptr_buf instead of filebuf. |
|
1556 |
3627
|
1557 * oct-stream.cc (octave_base_stream::printf): Use octave_format |
|
1558 instead of ostream::form. Return number of characters written. |
|
1559 |
3618
|
1560 2000-03-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1561 |
3620
|
1562 * oct-stream.cc (do_printf_conv): Use octave_format instead of |
|
1563 ostream::form. Return number of characters written. |
|
1564 (octave_base_stream::do_printf): Return number of characters written. |
|
1565 |
|
1566 * error.cc (verror, vwarning): Use octave_format instead of |
|
1567 ostream::vform. |
|
1568 |
|
1569 * utils.cc (octave_format, octave_vformat): New functions. |
|
1570 * cutils.c (octave_snprintf, octave_vsnprintf): New functions. |
|
1571 |
3618
|
1572 * oct-lvalue.h (dummy_val): New static variable. |
|
1573 (octave_lvalue::octave_lvalue): Use it to initialize val. |
|
1574 |
|
1575 * variables.cc (is_valid_function): Look in the global symbol |
|
1576 table for functions. |
|
1577 |
3615
|
1578 2000-03-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1579 |
3770
|
1580 * Makefile.in (LIBRARIES): Conditionally define. |
3615
|
1581 (libraries): Depend on $(LIBRARIES). |
|
1582 (octave): Depend on $(LIBRARIES), not libraries. Also depend on |
|
1583 stamp-prereq and stamp-oct-links. |
|
1584 (all): Don't depend on stamp-prereq or stamp-oct-links. |
|
1585 (liboctinterp.$(LIBEXT), liboctinterp.$(SHELXT)): Delete target |
|
1586 before rebuilding. |
|
1587 |
|
1588 2000-03-21 Ben Sapp <bsapp@nua.lampf.lanl.gov>: |
|
1589 |
3770
|
1590 * Makefile.in (libraries): Depend only on library targets, not |
3615
|
1591 archive members. |
|
1592 |
3611
|
1593 2000-03-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1594 |
3613
|
1595 * Makefile.in (objects): New target |
|
1596 |
3611
|
1597 * c_file_ptr_stream.h, c_file_ptr_stream.cc: New files. |
|
1598 * oct-stdstrm.h, oct-stdstrm.cc, oct-prcstrm.cc: |
|
1599 Use c_file_ptr_buf, i_c_file_ptr_stream, and o_c_fie_ptr_stream |
|
1600 instead of stdiobuf, istdiostream, and ostdiostream. |
|
1601 |
|
1602 * pr-output.cc (set_real_format, set_real_matrix_format, |
|
1603 set_complex_format, set_complex_matrix_format, set_range_format): |
|
1604 Do the right thing again for int, NaN, and Inf values. |
|
1605 |
3608
|
1606 2000-03-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1607 |
|
1608 * pr-output.cc (pr_plus_format): Rename from do_plus_format. |
|
1609 Change all callers. |
|
1610 (pr_float, pr_complex): New arg, scale. Handle scaling here. |
|
1611 (float_format): New class for managing details of formatting |
|
1612 floats. Use it instead of character string formats and the |
|
1613 nonstandard form() function from the GNU iostream library. |
|
1614 |
3601
|
1615 2000-02-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1616 |
|
1617 * Makefile.in (clean): Also delete gendoc. |
|
1618 |
3598
|
1619 2000-02-18 James R. Van Zandt <jrv@vanzandt.mv.com> |
|
1620 |
|
1621 * load-save.cc (Vcrash_dumps_octave_core): Fix comment for this var. |
|
1622 |
|
1623 2000-02-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1624 |
|
1625 * lex.l (handle_number): Don't transorm `[Dd]' to `e' if reading |
|
1626 hex. |
|
1627 |
3597
|
1628 2000-02-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1629 |
|
1630 * Makefile.in (install-inc): Install files in |
|
1631 $(octincludedir)/octave. |
|
1632 (uninstall): Remove them from the correct directory too. |
|
1633 |
|
1634 * defaults.h, defaults.cc (Vlocal_ver_arch_lib_dir): New variable. |
|
1635 * defaults.cc (set_default_local_ver_arch_lib_dir): New function. |
|
1636 (install_defaults): Call it. |
|
1637 (exec_path): Prepend the versioned form of the local arch lib |
|
1638 directory to the standard path. |
|
1639 * defaults.h.in (OCTAVE_LOCALVERARCHLIBDIR, |
|
1640 OCTAVE_LOCALVERFCNFILEDIR, OCTAVE_LOCALVEROCTFILEDIR): |
|
1641 Substitute these too. |
|
1642 * toplev.cc (Foctave_config_info): Add them to the struct. |
|
1643 |
3591
|
1644 2000-02-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1645 |
3597
|
1646 * toplev.cc (Foctave_config_info): Add MKOCTFILE_INCFLAGS to the |
|
1647 struct. |
3591
|
1648 * oct-conf.h.in (OCTAVE_CONF_MKOCTFILE_INCFLAGS): Define. |
|
1649 |
3584
|
1650 2000-02-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1651 |
3587
|
1652 * DLD-FUNCTIONS/balance.cc (Fbalance): Explicitly request |
|
1653 conversion from Matrix to ComplexMatrix. |
|
1654 * DLD-FUNCTIONS/qz.cc (Fqz): Likewise. |
|
1655 |
|
1656 * ov-re-mat.h (octave_matrix::complex_matrix_value): Explicitly |
|
1657 request conversion from Matrix type. |
|
1658 |
|
1659 * ov-ch-mat.h (octave_char_matrix::matrix_value): Explicitly |
|
1660 request conversion from charMatrix type. |
|
1661 (octave_char_matrix::complex_matrix_value): Likewise. |
|
1662 * ov-bool-mat.h (octave_bool_matrix::matrix_value): Likewise. |
|
1663 (octave_bool_matrix::complex_matrix_value): Likewise. |
|
1664 |
|
1665 * ov-range.h (octave_range::complex_matrix_value): Explicitly |
|
1666 request conversion from Matrix type. |
|
1667 |
|
1668 * ov-cx-mat.h, ov-re-mat.h: Explicitly request conversions from |
|
1669 diagonal matrix types in constructors. |
|
1670 |
3586
|
1671 * mappers.cc (ximag, xreal): Return double, not Complex. |
|
1672 |
3585
|
1673 * error.cc (panic): Turn off buffering of error messages. |
|
1674 Don't call flush_octave_stdout here, verror will do it for us. |
|
1675 (verror): Don't call flush_octave_stdout if buffering error messages. |
|
1676 |
3584
|
1677 * pt-except.cc (tree_try_catch_command::eval): Only restore |
|
1678 buffer_error_message value (by running the unwind_protect element |
|
1679 for it) if it has been saved. |
|
1680 |
|
1681 * help.cc (Ftype): Return value if nargout is NOT equal to zero. |
|
1682 Delete unnecessary unwind_protect::begin_frame(). |
|
1683 |
|
1684 * toplev.cc (octave_config_info): Stuff lots of new config info in |
|
1685 the struct. |
|
1686 |
|
1687 * oct-conf.h.in: Delete TARGET_HOST_TYPE. |
|
1688 |
3574
|
1689 2000-02-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1690 |
3579
|
1691 * siglist.c: Include <signal.h>. |
|
1692 |
3575
|
1693 * lex.l (is_plot_keyword): Add minimum match length in call to |
|
1694 almost_match. |
|
1695 |
3574
|
1696 * Makefile.in (%.df : %.cc): Don't pass -c to compiler. |
|
1697 |
3564
|
1698 2000-02-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1699 |
3572
|
1700 * ov-base-mat.cc: Include pr-output.h here. |
|
1701 |
3571
|
1702 * DLD-FUNCTIONS/rand.cc (curr_rand_dist): Return const char * |
|
1703 instead of char *. |
|
1704 |
3570
|
1705 * oct-fstrm.cc (octave_fstream::seek, octave_fstream::tell): |
|
1706 Call pubseekoff instead of seekoff. |
|
1707 |
3568
|
1708 * DLD-FUNCTIONS/dassl.cc (print_dassl_option_list): Use stream |
|
1709 manipulators instead of GNU iostream-specific form function. |
|
1710 * DLD-FUNCTIONS/fsolve.cc (print_fsolve_option_list): Ditto. |
|
1711 * DLD-FUNCTIONS/lsode.cc (print_lsode_option_list): Ditto. |
|
1712 * DLD-FUNCTIONS/quad.cc (print_quad_option_list): Ditto. |
|
1713 * pr-output.cc (pr_scale_header): Ditto. |
|
1714 |
3566
|
1715 * sighandlers.h: Include signal.h here. |
|
1716 * sighandlers.cc: Not here. |
|
1717 |
|
1718 * utils.cc: Include setjmp.h, not csetjmp. |
|
1719 * toplev.cc: Ditto. |
|
1720 |
|
1721 * sighandlers.cc: Include signal.h, not csignal. |
|
1722 |
|
1723 * pt-plot.h: Don't include csignal. |
|
1724 * toplev.cc: Ditto. |
|
1725 * oct-hist.cc: Ditto. |
|
1726 * octave.cc: Ditto. |
|
1727 * pager.cc: Ditto. |
|
1728 * input.cc: Ditto. |
|
1729 * help.cc: Ditto. |
|
1730 |
3565
|
1731 * pt-plot.cc (send_to_plot_stream): Use operator== and substr |
|
1732 method to do limited-length string comparison. |
|
1733 * input.cc (generate_completion): Likewise. |
|
1734 * ov-dld-fcn.cc (octave_dld_function::octave_dld_function): Likewise. |
|
1735 * ov-usr-fcn.cc (octave_user_function::mark_as_system_fcn_file): |
|
1736 Likewise. |
|
1737 |
|
1738 * utils.cc (check_preference): Expect exact string matches. |
|
1739 * variables.cc (ignore_function_time_stamp): Likewise. |
|
1740 * lex.l (whitespace_in_literal_matrix): Likewise. |
|
1741 |
3564
|
1742 * mappers.cc (xconj, ximag, xreal): New functions. Use them in |
|
1743 DEFUN_MAPPER calls. |
|
1744 |
|
1745 * defun-int.h (DEFUN_MAPPER_INTERNAL): Cast function pointer args |
|
1746 to octave_mapper constructor. |
|
1747 |
3523
|
1748 2000-02-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1749 |
3564
|
1750 * procstream.cc (procstreambase::procstreambase, |
|
1751 procstreambase::open, procstreambase::close): |
|
1752 Call std::ios::setstate, not set. |
|
1753 |
3561
|
1754 * lex.l (plot_axes_token): Declare plot_axes as const char *. |
|
1755 Declare tmp const char **. |
|
1756 |
3560
|
1757 * oct-procbuf.h: Include fstream, not streambuf.h. |
|
1758 |
3570
|
1759 * load-save.cc (Fsave): Call pubseekoff instead of seekoff. |
3558
|
1760 * oct-strstrm.cc (octave_base_strstream::tell): Likewise. |
|
1761 (octave_base_strstream::seek): Likewise. |
|
1762 |
3553
|
1763 * oct-stream.cc (octave_base_stream::read): Rename count to char_count. |
|
1764 (octave_base_stream::do_gets): Likewise. |
|
1765 |
|
1766 * octave-stream.cc (octave_base_stream::write): Rename flt_fmt to ffmt. |
|
1767 (octave_base_stream::read): Likewise. |
|
1768 |
3552
|
1769 * TEMPLATE-INST/SLStack-sym.cc: Delete meaningless `extern |
|
1770 template' declarations. |
|
1771 * TEMPLATE-INST/Array-tc.cc: Ditto. |
|
1772 |
|
1773 * TEMPLATE-INST/Map-fnc.cc: Don't try to instantiate goodCHptr or |
|
1774 CHptr_to_index here. |
|
1775 * TEMPLATE-INST/Map-tc.cc: Likewise. |
3554
|
1776 * Map.h (CHNode::goodCHptr, CHNode::CHptr_to_index): Now member |
|
1777 functions. Change all callers. |
3552
|
1778 |
|
1779 * load-save.cc (read_binary_file_header): Declare magic_len `const'. |
|
1780 |
|
1781 * token.h (token::token (const token&), token::operator=): |
|
1782 Delete unnecessary definitions. |
|
1783 |
|
1784 * oct-stream.cc (octave_stream::mode_as_string): Use |
|
1785 std::ios::binary, not std::ios::bin. |
|
1786 * load-save.cc (Fsave, Fload, save_user_variables): Likewise. |
|
1787 |
3550
|
1788 * DLD-FUNCTIONS/qz.cc (Fqz): Use Array<int> class instead of |
|
1789 trying to create automatic int array with variable size. |
|
1790 |
3548
|
1791 * variables.cc (F__dump_symbol_info__): Fix continuation char. |
3552
|
1792 * mappers.cc (Ftoupper): Likewise. |
3548
|
1793 * DLD-FUNCTIONS/besselj.cc (Fairy, Fbesselj): Likewise. |
|
1794 * DLD-FUNCTIONS/chol.cc (Fchol): Likewise. |
|
1795 * DLD-FUNCTIONS/det.cc (Fdet): Likewise. |
|
1796 * DLD-FUNCTIONS/eig.cc (Feig): Likewise. |
|
1797 * DLD-FUNCTIONS/gammainc.cc (gammainc): Likewise. |
|
1798 * DLD-FUNCTIONS/givens.cc (givens): Likewise. |
|
1799 * DLD-FUNCTIONS/hess.cc (hess): Likewise. |
|
1800 * DLD-FUNCTIONS/inv.cc (inv): Likewise. |
|
1801 * DLD-FUNCTIONS/log.cc (logm): Likewise. |
|
1802 * DLD-FUNCTIONS/lu.cc (lu): Likewise. |
|
1803 * DLD-FUNCTIONS/qr.cc (qr): Likewise. |
|
1804 * DLD-FUNCTIONS/schur.cc (schur): Likewise. |
|
1805 * DLD-FUNCTIONS/balance.cc (balance): Likewise. |
|
1806 * DLD-FUNCTIONS/svd.cc (svd): Likewise. |
|
1807 * DLD-FUNCTIONS/syl.cc (syl): Likewise. |
|
1808 * DLD-FUNCTIONS/expm.cc (Fexpm): Likewise. |
|
1809 |
|
1810 * token.h (token::token_type, token::end_tok_type, |
|
1811 token::plot_tok_type): Delete extraneous comma from enum decls. |
3552
|
1812 * load-save.cc (load_save_format): Likewise. |
3548
|
1813 |
3546
|
1814 * pt-idx.cc (tree_index_expression::tree_index_expression): |
|
1815 Delete default arg values. |
3552
|
1816 * oct-fstrm.cc (octave_fstream::octave_fstream): Likewise. |
|
1817 * oct-stream.cc (octave_stream::octave_stream): Likewise. |
3546
|
1818 |
|
1819 * siglist.h, siglist.c: New files. |
|
1820 * Makefile.in: Add them to the appropriate lists. |
|
1821 * siglist.c (sys_siglist): Move definition here from sighandlers.cc. |
|
1822 * siglist.h (sys_siglist): Move declaration here from sighandlers.h. |
|
1823 |
3545
|
1824 * ov.h, ov-bool.h, ov-bool-mat.h (bool_matrix_value): |
|
1825 Delete unnecessary arg. |
|
1826 |
3544
|
1827 * ov.h (octave_value::do_multi_index_op): Rename from do_index_op. |
|
1828 |
|
1829 * ov-fcn.h (octave_function::is_system_fcn_file): Now const. |
|
1830 |
3529
|
1831 * Map.cc (index_to_CHptr): Now a macro. |
3530
|
1832 (CHMap<C>::hash): Now a member function. |
3529
|
1833 |
3528
|
1834 * defun-int.h (UNDERSCORIFY): New macro. |
|
1835 (DEFCONST_INTERNAL, DEFCONSTX_INTERNAL): Use it. |
|
1836 |
3526
|
1837 * data.cc (Fis_list): Fix continuation char. |
3532
|
1838 * defaults.cc (IMAGEPATH): Likewise. |
3526
|
1839 |
|
1840 * Map.cc (CHptr_to_index, goodCHptr): Delete static decl. |
|
1841 |
3525
|
1842 * ov.h (unary_op, binary_op, assign_op): Prepend `op_' to elts. |
|
1843 Change all usses |
|
1844 |
3523
|
1845 * All source files: Sprinkle with std:: qualifier as needed. |
|
1846 |
3503
|
1847 2000-01-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1848 |
|
1849 * sighandlers.cc (install_signal_handlers): Add std:: qualifier |
|
1850 for set_net_handler. |
|
1851 |
|
1852 * All source files: Include iostream, fstream, strstream, |
|
1853 etc. as needed instead of using forward declarations for these |
|
1854 classes. |
|
1855 |
3498
|
1856 2000-01-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1857 |
|
1858 * input.cc (input_event_hook, Finput_event_hook): New functions. |
|
1859 (hook_fcn, user_data): New static variables. |
|
1860 |
3489
|
1861 2000-01-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1862 |
3491
|
1863 * pt-except.cc (do_catch_code): Don't do anything special for |
|
1864 tree_return_command::returning, or tree_break_command::breaking. |
|
1865 |
|
1866 * error.cc (vwarning): New function. |
|
1867 (warning): Use it instead of calling verror. |
|
1868 |
|
1869 * oct-stream.cc (octave_base_stream::oscanf): |
|
1870 Result is now always nconv+1 elements. Return count of successful |
|
1871 conversions in last element. |
|
1872 * file-io.cc (Ffscanf, Fsscanf, Fscanf): Fix doc string. |
|
1873 |
3490
|
1874 * pt-except.cc (do_catch_code): Unwind-protect buffer_error_messages. |
|
1875 Be sure to run all unwind-protects before returning. |
|
1876 (tree_try_catch_command::eval): Add do_catch_code cleanup function |
|
1877 to unwind-protect stack before resetting buffer_error_messages. |
|
1878 Use unwind-protect to save and restore buffer_error_messages. |
|
1879 If there is no catch code, discard the cleanup function and run |
|
1880 the unwind-protect for buffer_error_messages. |
|
1881 |
|
1882 * error.cc (bind_global_error_variable): Avoid dereferencing |
|
1883 error_message_buffer if it is NULL. |
|
1884 |
3489
|
1885 * parse.y (evaluating_function_body): New global flag. |
|
1886 * ov-usr-fcn.cc (octave_user_function::do_index_op): |
|
1887 Protect and set it here. |
|
1888 * parse.y (make_break_command, make_return_command): Check it here. |
|
1889 |
|
1890 * error.cc (warning_state): New global flag. |
|
1891 (warning): Set it here. |
|
1892 * lex.l (reset_parser): Clear it here. |
|
1893 * parse.y (fold): Check it here. |
|
1894 |
3484
|
1895 2000-01-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1896 |
3485
|
1897 * pt-walk.h (tree_walker::visit_do_until_command): New pure virtual. |
|
1898 * pt-pr-code.cc (tree_print_code::visit_do_until_command): |
3484
|
1899 New function. |
3485
|
1900 * pt-loop.h (tree_do_until_command): New class. |
3484
|
1901 (tree_while_command::expr, tree_while_command::list): |
|
1902 Now protected instead of private. |
3485
|
1903 * parse.y (make_do_until_command): New function. |
|
1904 (loop_command): Recognize do-until statement. |
3484
|
1905 (DO, UNTIL): New tokens. |
|
1906 |
|
1907 * input.cc (match_sans_spaces): Require non-blank part of test |
|
1908 string to match standard string exactly. |
|
1909 |
3483
|
1910 2000-01-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1911 |
|
1912 * oct-stream.h (scanf_format_elt::char_class): New struct elt. |
|
1913 Add arg to constructor. |
|
1914 (scanf_format_elt::special_conversion): New enum. |
|
1915 * oct-stream.cc (scanf_format_list::add_elt_to_list): New arg, |
|
1916 char_class. Pass it to scanf_format_elt constructor. |
|
1917 (scanf_format_list::scanf_format_list): Create separate list |
|
1918 elements for whitespace and literal conversions. |
|
1919 (expand_char_class): New function. |
|
1920 (scanf_format_list::finish_conversion): Extract character class |
|
1921 (not including the delimiting brackets) and expand the list of |
|
1922 characters. Pass the result to add_elt_to_list. |
|
1923 (scanf_format_list::all_character_conversions): Also accept '^', |
|
1924 scanf_format_elt::literal_conversion, and |
|
1925 scanf_format_elt::whitespace_conversion types too. |
|
1926 (DO_WHITESPACE_CONVERSION, BEGIN_CHAR_CLASS_CONVERSION, |
|
1927 BEGIN_C_CONVERSION, BEGIN_S_CONVERSION, DO_LITERAL_CONVERSION): |
|
1928 New macros. |
|
1929 (octave_base_stream::do_scanf, octave_base_stream::do_oscanf): |
|
1930 Use them to avoid code duplication. |
|
1931 Handle whitespace, literal text, and character class conversions. |
|
1932 (octave_base_stream::oscanf): Loop over all format list elements, |
|
1933 not just the first nconv elements. Clear status flags on is for |
|
1934 all streams. |
|
1935 |
3476
|
1936 2000-01-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1937 |
3480
|
1938 * xdiv.cc (result_ok): Just check value of info. |
|
1939 (solve_singularity_warning): New function. |
|
1940 (xleftdiv, xdiv): Pass pointer to solve_singularity_warning to |
|
1941 solve function. |
|
1942 |
|
1943 * lex.l (handle_identifier): Set next_tok_is_eq if we are looking |
|
1944 at `=', but not if we are looking at `=='. |
|
1945 |
3478
|
1946 * pt-pr-code.cc (tree_print_code::visit_unwind_protect_command): |
|
1947 Print `unwind_protect_cleanup', not `cleanup_code'. |
|
1948 |
3477
|
1949 * pager.cc (octave_pager_buf::flush_current_contents_to_diary): |
|
1950 New function. |
|
1951 (octave_pager_stream::flush_current_contents_to_diary): |
|
1952 Ditto. |
|
1953 (close_diary_file): Use the new octave_pager_stream function to |
|
1954 try to flush the current buffer to the diary when it is closed. |
|
1955 |
3476
|
1956 * variables.cc (Fexist): Return 6 for built-in constants. |
|
1957 |
|
1958 * pt-plot.cc (Fgshow): Don't append " " after last arg. |
|
1959 (Fgset): Likewise. |
|
1960 |
3472
|
1961 2000-01-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1962 |
|
1963 * ov-base-mat.h (octave_base_matrix::length): Return 0 for empty |
|
1964 arrays. |
|
1965 |
3465
|
1966 2000-01-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1967 |
|
1968 * DLD-FUNCTIONS/time.cc (Fstrptime): New function. |
|
1969 |
|
1970 * load-save.cc (Fsave): Add missing else. |
|
1971 |
3442
|
1972 2000-01-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1973 |
3444
|
1974 * DLD-FUNCTIONS/gammainc.cc (Fgammainc): Texinfoize doc string. |
3445
|
1975 * ov-typeinfo.cc (Ftypeinfo): Ditto. |
3446
|
1976 * parse.y (Vwarn_future_time_stamp): Ditto. |
|
1977 * DLD-FUNCTIONS/minmax.cc (Fmax, Fmin): Ditto. |
3445
|
1978 * ov-usr-fcn.cc (Fva_arg, Fva_start, Fvr_val): Ditto. |
3446
|
1979 * defaults.cc (VOCTAVE_HOME, Frehash): Ditto. |
|
1980 * toplev.cc (Fwarranty, Fcasesen): Ditto. |
|
1981 * utils.cc (Fdo_string_escapes, Ffile_in_loadpath): Ditto. |
|
1982 * variables.cc (F__dump_symtab_info__, F__dump_symbol_info__): Ditto. |
3447
|
1983 * ov-list.cc (Flist, Fappend, Fnth, Freverse, Fsplice): Ditto. |
3448
|
1984 * input.cc (Fread_readline_init_file): Ditto. |
|
1985 * file-io.cc (Fis_stream): Ditto. |
|
1986 * ov-cell.cc (Fiscell, Fcell): Ditto. |
|
1987 * pt-assign.cc (Vprint_rhs_assign_val): Ditto. |
|
1988 * pt-decl.cc (Vinitialize_global_variables): Ditto. |
|
1989 * symtab.cc (Vvariables_can_hide_functions): Ditto. |
3443
|
1990 |
3442
|
1991 * pt-plot.cc (Fgraw, Fgset, Fgshow, Vgnuplot_command_plot, |
|
1992 Vgnuplot_command_replot, Vgnuplot_command_splot, |
|
1993 Vgnuplot_command_using, Vgnuplot_command_with, |
|
1994 Vgnuplot_command_axes, Vgnuplot_command_title, |
|
1995 Vgnuplot_command_end): Texinfoize doc strings. |
|
1996 |
3447
|
1997 * oct-procbuf.cc (__kluge_procbuf_delay__): Rename from |
|
1998 kluge_procbuf_delay. Texinfoize doc string. |
|
1999 |
3427
|
2000 2000-01-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2001 |
|
2002 * parse.y (gobble_leading_whitespace): Discard first space character |
|
2003 after consecutive comment characters. |
|
2004 * lex.l (grab_help_text): Ditto. |
|
2005 |
3428
|
2006 * lex.l (Vwhitespace_in_literal_matrix, Vwarn_separator_insert, |
|
2007 Vwarn_single_quote_string): Texinfoize doc string. |
|
2008 |
3418
|
2009 2000-01-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2010 |
3419
|
2011 * ov.h, ov.cc (octave_value::column_vector_value, |
|
2012 octave_value::row_vector_value, |
|
2013 octave_value::complex_column_vector_value, |
|
2014 octave_value::complex_row_vector_value): New functions. |
|
2015 (octave_value::vector_value): Now returns Array<double>. |
|
2016 (octave_value::complex_vector_value): Now returns Array<Complex>. |
|
2017 Sprinkle conversions where necessary. |
|
2018 |
3418
|
2019 * ov.cc (Vprefer_column_vectors): Now static. |
|
2020 * ov.h (octave_value (const ComplexRowVector&), |
|
2021 octave_value (const ComplexColumnVector&), |
|
2022 octave_value (const RowVector&), octave_value (const ColumnVector&)): |
|
2023 Delete second arg. Change all callers. |
3419
|
2024 |
3418
|
2025 * oct-obj.h (octave_value_list (const RowVector&), |
|
2026 octave_value_list (const ColumnVector&), |
|
2027 octave_value_list (const ComplexRowVector&), |
|
2028 octave_value_list (const ComplexColumnVector&)): Likewise. |
|
2029 * ov-cx-mat.h, ov-cx-mat.cc |
|
2030 (octave_complex_matrix (const ComplexRowVector&), |
|
2031 (octave_complex_matrix (const ComplexColumnVector&)): |
|
2032 Delete second arg, simply create object with orientation |
|
2033 corresponding to vector arg. Move constructors to class decl. |
|
2034 * ov-re-mat.h, ov-re-mat.cc (octave_matrix (const RowVector&), |
|
2035 (octave_matrix (const ColumnVector&)): |
|
2036 Delete second arg, simply create object with orientation |
|
2037 corresponding to vector arg. Move constructors to class decl. |
|
2038 |
3411
|
2039 2000-01-07 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
2040 |
|
2041 * mappers.cc (Fconj, Ferf, Ferfc, Fgamma, Fimag, Flgamma, Flog10, |
|
2042 Freal, Fround): Add @seealso{...} to doc strings. |
|
2043 |
3408
|
2044 2000-01-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2045 |
3410
|
2046 * oct-stream.cc (do_scanf): Do the right thing again for character |
|
2047 conversions. |
|
2048 |
3408
|
2049 * help.cc (display_help_text): Also strip out leading spaces |
|
2050 before Texinfo @-commands before sending doc string to makeinfo. |
|
2051 (display_help_text): Improve format of `See also' string. |
|
2052 |
3405
|
2053 2000-01-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2054 |
|
2055 * help.cc (display_help_text): Pass a definition for @seealso |
|
2056 through the filter. |
|
2057 |
3400
|
2058 1999-12-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2059 |
|
2060 * lex.l (Vwarn_single_quote_string): New variable. |
|
2061 (syms_of_lex): DEFVAR it. |
|
2062 (warn_single_quote_string): New function. |
|
2063 (gripe_single_quote_string): New function. |
|
2064 Use new stuff to allow warnings for code that uses single quote |
|
2065 characters to introduce string constants. |
|
2066 |
3399
|
2067 1999-12-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2068 |
|
2069 * mkbuiltins: Add #undef quad to generated file. |
|
2070 |
3388
|
2071 1999-12-15 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2072 |
|
2073 * lex.l (Vwarn_separator_insert): New variable. |
|
2074 (syms_of_lex): DEFVAR it. |
|
2075 (warn_separator_insert): New function. |
|
2076 (maybe_warn_separator_insert): New function. |
|
2077 Use new stuff to allow warnings for code that might result in |
|
2078 auto-insertion of commas or semicolons, depending on the value of |
|
2079 whitespace_in_literal_matrix. |
|
2080 |
|
2081 * parse.y (Fsource): Record function file name here too. |
|
2082 |
3377
|
2083 1999-12-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2084 |
|
2085 * variables.cc (link_to_global_variable): If the local symbol is |
|
2086 not a variable, don't bother to clear it. Instead, just redefine |
|
2087 it by aliasing to the global symbol. |
|
2088 |
3372
|
2089 1999-11-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2090 |
3373
|
2091 * DLD-FUNCTIONS/balance.cc (Fbalance): Texinfoize doc string. |
|
2092 * DLD-FUNCTIONS/det.cc (Fdet): Ditto. |
|
2093 * DLD-FUNCTIONS/eig.cc (Feig): Ditto. |
|
2094 * DLD-FUNCTIONS/givens.cc (Fgivens): Ditto. |
|
2095 * DLD-FUNCTIONS/inv.cc (Finv): Ditto. |
|
2096 * DLD-FUNCTIONS/chol.cc (Fchol): Ditto. |
|
2097 * DLD-FUNCTIONS/hess.cc (Fhess): Ditto. |
|
2098 * DLD-FUNCTIONS/lu.cc (Flu): Ditto. |
|
2099 * DLD-FUNCTIONS/qr.cc (Fqr): Ditto. |
|
2100 * DLD-FUNCTIONS/schur.cc (Fschur): Ditto. |
|
2101 * DLD-FUNCTIONS/svd.cc (Fsvd): Ditto. |
|
2102 * DLD-FUNCTIONS/expm.cc (Fexpm): Ditto. |
|
2103 * DLD-FUNCTIONS/log.cc (Flogm, Fsqrtm): Ditto. |
|
2104 * DLD-FUNCTIONS/syl.cc (Fsyl): Ditto. |
|
2105 * DLD-FUNCTIONS/pinv.cc (Fpinv): Ditto. |
|
2106 * DLD-FUNCTIONS/qz.cc (Fqz): Ditto. |
|
2107 * DLD-FUNCTIONS/dassl.cc (Fdassl, Fdassl_options): Ditto. |
|
2108 * DLD-FUNCTIONS/lsode.cc (Flsode, Flsode_options): Ditto. |
|
2109 * data.cc (Flength, Fsize, Fisempty): Ditto. |
3372
|
2110 * sysdep.cc (Fkbhit): Ditto. |
|
2111 * input.cc (Fkeyboard, Finput): Ditto. |
|
2112 * variables.cc (ans): Ditto. |
|
2113 * pr-output.cc (Fdisp, Fformat): Ditto. |
|
2114 * ov.cc (Vprint_answer_id_name): Ditto. |
3373
|
2115 * defaults.cc (IMAGEPATH): Ditto. |
|
2116 * error.cc (Ferror, Fwarning, Fusage, error_text, beep_on_error): |
|
2117 Ditto. |
3372
|
2118 * load-save.cc (Fload, Fsave, Vdefault_save_format, |
|
2119 Vsave_precision): Ditto. |
|
2120 * file-io.cc (Ffflush, Ffopen, Ffclose, Ffputs, Ffgetl, Ffgets, |
|
2121 Ffprintf, Fsprintf, Fscanf, Ffscanf, Fsscanf, Ffread, Ffwrite, |
|
2122 Ffseek, Fftell, Ffeof, Fferror, Ffreport, Ftmpnam, Vstdin_file, |
|
2123 Vstdout_file, Vstderr_file, SEEK_SET, SEEK_CUR, SEEK_END): Ditto. |
|
2124 * pager.cc (Vpager_binary, Vpage_output_immediately, |
|
2125 Vpage_screen_output, Fmore): Ditto. |
|
2126 |
3369
|
2127 1999-11-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2128 |
|
2129 * utils.cc (Vtreat_neg_dim_as_zero): Texinfoize doc string. |
|
2130 * DLD-FUNCTIONS/find.cc (Ffind): Ditto. |
|
2131 * DLD-FUNCTIONS/rand.cc (Frand, Frandn): Ditto. |
|
2132 * DLD-FUNCTIONS/sort.cc (Fsort): Ditto. |
|
2133 * mappers.cc (Fisinf, Fisnan, Ffinite): Ditto. |
|
2134 * data.cc (Fall, Fany, Fdiag, Fones, Fzeros, Feye, Flinspace): Ditto. |
3371
|
2135 * defaults.cc (Vloadpath, Vdefault_loadpath): Ditto. |
|
2136 * parse.y (Feval, Ffeval, Vdefault_eval_print_flag, |
|
2137 Vwarn_missing_semicolon, Vwarn_function_name_clash, Fsource): Ditto. |
|
2138 * ov-usr-fcn.cc (Vmax_recursion_depth, Vdefault_return_value, |
|
2139 Vdefine_all_return_values, Vreturn_last_computed_value): Ditto. |
|
2140 * ov.cc (Vok_to_lose_imaginary_part, Vdo_fortran_indexing, |
|
2141 Vprefer_column_vectors, Vresize_on_range_error, |
|
2142 Vwarn_divide_by_zero): Ditto. |
|
2143 * pt-stmt.cc (Vsilent_functions): Ditto. |
|
2144 * variables.cc (Vignore_function_time_stamp): Ditto. |
|
2145 * dynamic-ld.cc (Vwarn_reload_forces_clear): Ditto. |
3369
|
2146 |
3367
|
2147 1999-11-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2148 |
3368
|
2149 * DLD-FUNCTIONS/fft.cc (Ffft): Texinfoize doc string. |
|
2150 * DLD-FUNCTIONS/ifft.cc (Fifft): Ditto. |
|
2151 * DLD-FUNCTIONS/fft2.cc (Ffft2): Ditto. |
|
2152 * DLD-FUNCTIONS/ifft2.cc (Fifft2): Ditto. |
|
2153 * DLD-FUNCTIONS/filter.cc (Ffilter): Ditto. |
|
2154 * DLD-FUNCTIONS/quad.cc (Fquad, Fquad_options): Ditto. |
|
2155 * DLD-FUNCTIONS/colloc.cc (Fcolloc): Ditto. |
|
2156 * DLD-FUNCTIONS/fsolve.cc (Ffsolve, Ffsolve_options): Ditto. |
|
2157 * defaults.cc (Veditor): Ditto. |
|
2158 * pt-plot.cc (Vautomatic_replot, Vgnuplot_binary, |
|
2159 Vgnuplot_has_frames, Vgnuplot_has_multiplot, Fclearplot, |
|
2160 Fcloseplot, Fpurge_tmp_files, Fishold, Fhold): |
3367
|
2161 |
|
2162 * Makefile.in (parse.cc): Expect 11 shift/reduce conflicts now. |
|
2163 |
3361
|
2164 1999-11-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2165 |
3366
|
2166 * parse.y (Vwarn_assign_as_truth_value, Vwarn_variable_switch_label): |
|
2167 Texinfoize doc strings. |
|
2168 |
3365
|
2169 * DLD-FUNCTIONS/pinv.cc (Fpinv): Texinfoize doc string. |
|
2170 |
3364
|
2171 * defun-int.h (DEFUN_DLD_INTERNAL): New macro. |
|
2172 * defun-dld.h [MAKE_BUILTINS] (DEFUN_DLD): Simply expand to |
|
2173 DEFUN_DLD_INTERNAL. |
|
2174 * mkbuiltins: Generate code to define DEFUN_DLD_INTERNAL. |
|
2175 * mkgendoc: Likewise. |
|
2176 |
3363
|
2177 * Makefile.in (gendoc.o): Don't optimize when creating gendoc. |
3364
|
2178 (%.dc : %.cc): Delete rule. |
3363
|
2179 |
3361
|
2180 * pt-decl.cc (Vdefault_global_variable_value): Texinofize doc string. |
|
2181 * variables.cc (Fclear, Fdocument, Fexist, Fis_global, Fwho): Ditto. |
|
2182 * help.cc (Ftype, Fwhich): Ditto. |
|
2183 * ov.cc (Vstruct_levels_to_print, Vimplicit_str_to_num_ok): Ditto. |
|
2184 * data.cc (Fis_struct, Fstruct_elements, Fstruct_constains): Ditto. |
|
2185 * strfns.cc (Fisstr, Fsetstr): Ditto. |
|
2186 * pt-mat.cc: (Fimplicit_num_to_str_ok, Fstring_fill_char): Ditto. |
|
2187 * utils.cc (Fundo_string_escapes): Ditto. |
|
2188 * mappers.cc: (Fisalnum, Fisalpha, Fisascii, Fiscntrl, Fisdigit, |
|
2189 Fisgraph, Fislower, Fisprint, Fispunct, Fisspace, Fisupper, |
|
2190 Fisxdigit, Ftoascii, Ftolower, Ftoupper): Ditto. |
|
2191 |
3357
|
2192 1999-11-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2193 |
3360
|
2194 * syscalls.cc (symbols_of_syscalls): Use DEFCONSTX to define |
|
2195 Octave constants for C macros like O_WRONLY. |
|
2196 |
3357
|
2197 * oct-lvalue.cc (octave_lvalue::set_index): Disallow expressions |
|
2198 like x(i)(j) = rhs. |
|
2199 |
3355
|
2200 1999-11-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2201 |
3356
|
2202 * symtab.cc (symbol_record::type_as_string): New function. |
3355
|
2203 |
|
2204 * symtab.cc (symbol_record::which): New functions. |
|
2205 * help.cc (do_which): New functions. |
|
2206 (Fwhich): Use them. |
|
2207 |
|
2208 * help.cc (help_from_symbol_table, help_from_file): New functions. |
|
2209 (builtin_help): Use them. |
|
2210 |
|
2211 * help.cc (do_type): New function. |
3356
|
2212 (symbol_record::type): New function. |
3355
|
2213 (Ftype): Use them. |
|
2214 |
|
2215 * help.cc (print_symbol_type): Delete. |
|
2216 |
|
2217 * symtab.cc (symbol_table::name_list): Delete count arg. |
|
2218 (symbol_table::symbol_list): Likewise. |
|
2219 (symbol_table::glob): Likewise. Also return Array<symbol_record *> |
|
2220 instead of symbol_record **. |
|
2221 Change all callers. |
|
2222 * help.cc (names, display_symtab_names): Delete count arg. |
|
2223 |
|
2224 * help.cc (print_symbol_type, Ftype): No longer need to look up |
|
2225 fcn_file_name in the loadpath. |
|
2226 |
|
2227 * help.cc (print_symbol_type): Handle dld functions. |
|
2228 (help_from_symbol_table, help_from_file): New functions. |
|
2229 (builtin_help): Use them. |
|
2230 |
3354
|
2231 1999-11-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2232 |
|
2233 * ov-cell.cc (Fiscell, Fcell): New Functions. |
|
2234 (octave_cell::do_index_op): New function. |
|
2235 |
|
2236 * utils.cc (get_dimensions): Move here from data.cc and make extern. |
|
2237 (Vtreat_neg_dim_as_zero, treat_neg_dim_as_zero): Likewise. |
|
2238 (symbols_of_utils): New function. |
|
2239 |
|
2240 * data.cc (fill_matrix (const octave_value_list&, double, |
|
2241 const char*)): New function. |
|
2242 (Fones, Fzeros): Use it to avoid some code duplication. |
|
2243 |
3352
|
2244 1999-11-15 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2245 |
|
2246 * pt-cell.h, pt-cell.cc, ov-cell.h, ov-cell.cc, Cell.h, Cell.cc: |
|
2247 New files. |
|
2248 * Makefile.in: Add them to the appropriate lists. |
|
2249 * pt-walk.h (visit_cell (tree_cell&): New pure virtual. |
|
2250 * pt-pr-code.cc (tree_print_code::visit_cell (tree_cell&)): New |
|
2251 function. |
|
2252 * TEMPLATE-INST/Array-tc.cc: Instantiate 2D arrays of octave_value |
|
2253 objects. |
|
2254 * pt-all.h: Include pt-cell.h. |
|
2255 * ov.h, ov.cc (octave_value::is_cell, octave_value::cell_value): |
|
2256 New functions. |
|
2257 * ov-base.h, ov-base.cc (octave_value::is_cell, |
|
2258 octave_value::cell_value): Provide defaults. |
|
2259 * lex.h, lex.l: Handle `{' and `}' tokens (for cell arrays). |
|
2260 (bracketflag): Rename from braceflag. |
|
2261 (handle_close_bracket): Rename from handle_close_brace. |
|
2262 (class bracket_brace_paren_nesting_level): Rename from |
|
2263 brace_paren_nesting_level. |
|
2264 (bracket_brace_paren_nesting_level::bracket, |
|
2265 bracket_brace_paren_nesting_level::is_bracket): New functions to |
|
2266 keep count of nesting level for `[' and `]'. |
|
2267 (bracket_brace_paren_nesting_level::brace, |
|
2268 bracket_brace_paren_nesting_level::is_brace): Now keeps count of |
|
2269 nesting level for `{' and `}'. |
|
2270 * parse.y (tree_cell_type): New type. |
|
2271 Give '{' the same precedence and associativity as '(' and '.' |
|
2272 (matrix_rows, matrix_rows1): Rename from rows, rows1. |
|
2273 (cell, cell_rows, cell_rows1): New non-terminals. |
|
2274 (cell_or_matrix_row): Rename from matrix_row. |
|
2275 (primary_expr): Accept cell here. |
|
2276 (postfix_expr): Allow indexing using '{' arg_list '}'. |
|
2277 (finish_cell): New function. |
|
2278 |
3350
|
2279 1999-11-12 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2280 |
|
2281 * utils.cc (jump_to_top_level): No longer declared extern "C". |
|
2282 |
|
2283 * cutils.c (octave_strcasecmp, octave_strncasecmp): New functions. |
|
2284 * utils.cc (almost_match): Call octave_strncasecmp instead of |
|
2285 calling strncasecmp directly. |
|
2286 |
3347
|
2287 1999-11-10 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2288 |
|
2289 * parse.y: Don't define warn_reload_forces_clear here. |
|
2290 |
|
2291 * Makefile.in (DISTFILES): Include DOCSTRINGS. |
|
2292 |
3340
|
2293 1999-11-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2294 |
3343
|
2295 * sighandlers.cc (install_signal_handlers): Don't install |
|
2296 sigwinch_handler. |
|
2297 |
3342
|
2298 * oct-iostrm.h (octave_istream::eof, octave_ostream::eof): Provide |
|
2299 implementation for these. |
|
2300 |
|
2301 * oct-stream.cc (octave_base_stream::do_scanf): |
|
2302 The stdin stream is only special if we are interactive. |
|
2303 (octave_base_stream::scanf): Ditto. |
|
2304 (octave_base_stream::do_oscanf): Ditto. |
|
2305 (octave_base_stream::oscanf): Ditto. |
|
2306 |
3340
|
2307 * ov.h (octave_value::is_stream): New predicate. |
|
2308 * ov-file.h (octave_file::is_stream): Return true. |
|
2309 * file-io.cc (Fis_stream): New function. |
|
2310 |
|
2311 * ov-file.h (class octave_file): stream is now an object instead |
|
2312 of pointer. |
|
2313 * ov-file.cc (octave_file::print_raw): Handle stream as object |
|
2314 instead of pointer. Also print stream status. |
|
2315 |
|
2316 * ov-base.cc (octave_base_value::stream_value): Return object |
|
2317 instead of pointer. |
|
2318 |
|
2319 * ov.cc (octave_value::stream_value): Return object instead of pointer. |
|
2320 (octave_value::octave_value (const octave_stream&)): Take const |
|
2321 reference instead of pointer arg. |
|
2322 |
|
2323 * TEMPLATE-INST/Array-os.cc: Instantiate Arrays of octave_stream |
|
2324 objects, not pointers to them. |
|
2325 |
|
2326 * OPERATORS/op-fil-b.cc: Cope with octave_stream class changes. |
|
2327 * OPERATORS/op-fil-bm.cc: Likewise. |
|
2328 * OPERATORS/op-fil-cm.cc: Likewise. |
|
2329 * OPERATORS/op-fil-cs.cc: Likewise. |
|
2330 * OPERATORS/op-fil-lis.cc: Likewise. |
|
2331 * OPERATORS/op-fil-m.cc: Likewise. |
|
2332 * OPERATORS/op-fil-rec.cc: Likewise. |
|
2333 * OPERATORS/op-fil-s.cc: Likewise. |
|
2334 * OPERATORS/op-fil-str.cc: Likewise. |
|
2335 * file-io.cc: Likewise. |
|
2336 * syscalls.cc (Fdup): Likewise. |
|
2337 |
|
2338 * oct-fstrm.cc, oct-fstrm.h, oct-iostrm.cc, oct-iostrm.h, |
|
2339 oct-prcstrm.cc, oct-prcstrm.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
2340 oct-stream.cc, oct-stream.h, oct-strstrm.cc, oct-strstrm.h: |
|
2341 Rewrite to allow octave_stream objects to be used like values |
|
2342 instead of having to use pointers. |
|
2343 |
3337
|
2344 1999-11-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2345 |
|
2346 * oct-stream.cc (octave_base_stream::do_scanf): If it looks like |
|
2347 we have a matching failure, then reset the failbit in the stream |
|
2348 state. |
|
2349 (octave_base_stream::do_oscanf): Likewise. |
|
2350 |
3332
|
2351 1999-11-02 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
2352 |
3361
|
2353 * help.cc (Fhelp): Texinfoize doc string. |
|
2354 * input.cc (Fecho, Fcompletion_matches): Ditto. |
|
2355 * oct-hist.cc (Fedit_history, Fhistory, Frun_history): Ditto. |
|
2356 * pager.cc (Fdiary): Ditto. |
|
2357 * sysdep.cc (Fclc): Ditto. |
|
2358 * toplev.cc (Fquit, Fatexit): Ditto. |
3332
|
2359 |
|
2360 1999-11-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2361 |
|
2362 * lex.l (yywrap): No longer static. |
|
2363 (have_continuation): Declare input character as int, not char, so |
|
2364 comparison to EOF will work. |
|
2365 |
3330
|
2366 1999-11-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2367 |
|
2368 * defun.cc (print_usage): Use display_help_text instead of sending |
|
2369 help message directly to octave_stdout. |
|
2370 |
3325
|
2371 1999-10-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2372 |
|
2373 * defun-dld.h (INSTALL_DLD_FCNS, INSTALL_DLD_FCN): Delete definitions. |
|
2374 * DLD-FUNCTIONS/dassl.cc: Don't use INSTALL_DLD_FCN or |
|
2375 INSTALL_DLD_FCNS macros. They are not necessary with the new code |
|
2376 in dynamic-ld.cc. |
|
2377 * DLD-FUNCTIONS/lsode.cc: Ditto. |
|
2378 * DLD-FUNCTIONS/fsolve.cc: Ditto. |
|
2379 * DLD-FUNCTIONS/quad.cc: Ditto. |
|
2380 * DLD-FUNCTIONS/time.cc: Ditto. |
|
2381 * DLD-FUNCTIONS/besselj.cc: Ditto. |
|
2382 * DLD-FUNCTIONS/getgrent.cc: Ditto. |
|
2383 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
2384 * DLD-FUNCTIONS/inv.cc: Ditto. |
|
2385 * DLD-FUNCTIONS/log.cc: Ditto. |
|
2386 * DLD-FUNCTIONS/minmax.cc: Ditto. |
|
2387 * DLD-FUNCTIONS/rand.cc: Ditto. |
|
2388 |
|
2389 * dynamic-ld.cc, dynamic-ld.h: Major rewrite to allow reloading of |
|
2390 dynamically linked functions. |
|
2391 |
|
2392 * symtab.cc (symbol_record::replace_all_defs): Don't allow top |
|
2393 definition to be NULL. |
|
2394 (symbol_table::clear): Allow dynamically linked functions to be |
|
2395 cleared. |
|
2396 |
|
2397 * symtab.h (TYPE): New enum value, DLD_FUCTION. |
|
2398 (symbol_type): Now 8 bits wide. |
|
2399 (SYMTAB_ALL_TYPES): Include DLD_FUNCTION. |
|
2400 (symbol_record::symbol_def::is_function): Also recognize dld functions. |
|
2401 (symbol_record::symbol_def::is_dld_function): New function. |
|
2402 (symbol_record::is_dld_function): Ditto. |
|
2403 |
|
2404 * defun.cc (install_dld_function): New function. |
|
2405 * defun-int.h: Provide declaration here. |
|
2406 (octave_dld_fcn_installer): New typedef. |
|
2407 (DEFINE_FUN_INSTALLER_FUN): Installer function now takes an |
|
2408 oct_shlib object as an arg. Allow installation of a function to |
|
2409 happen more than once. |
|
2410 |
|
2411 * octave.cc (initialize_error_handlers): Call |
|
2412 set_liboctave_warning_handler here too. |
|
2413 |
|
2414 * ov-builtin.h (is_builtin_function): Return true. |
|
2415 Data member is now protected, not private. |
|
2416 |
|
2417 * ov-fcn.h (is_dynamically_loaded_function): New predicate. |
|
2418 (unload): New function. |
|
2419 Data members are now protected, not private. |
|
2420 |
|
2421 * ov.h (is_builtin_function, is_dld_function): New predicates. |
|
2422 * ov-base.h (is_builtin_function, is_dld_function): Ditto. |
|
2423 |
|
2424 * parse.y (Vwarn_reload_forces_clear): New static flag. |
|
2425 (warn_reload_forces_clear): New function. |
|
2426 (symbols_of_parse): DEFVAR warn_reload_forces_clear. |
|
2427 |
|
2428 * variables.cc (Fclear): Look for dld functions too. |
|
2429 |
3770
|
2430 * ov-dld-fcn.cc, ov-dld-fcn.h: New files. |
3325
|
2431 * Makefile.in (OV_INCLUDES, OV_SRC): Add them to the lists. |
|
2432 |
|
2433 * Makefile.in (DEFVAR_PATTERN): Also match DEFCONSTX. |
|
2434 |
3321
|
2435 1999-10-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2436 |
3325
|
2437 * DLList.h, DLList.cc: New files. |
|
2438 * Makefile.in (INCLUDES, DIST_SRC): Add them to the lists. |
|
2439 |
3323
|
2440 * DLD-FUNCTIONS/lsode.cc (Flsode): Be sure to call |
|
2441 unwind_protect::run_frame before returning. |
|
2442 * DLD-FUNCTIONS/quad.cc (Fquad): Likewise. |
|
2443 * DLD-FUNCTIONS/fsolve.cc (Ffsolve): Likewise. |
|
2444 * DLD-FUNCTIONS/dassl.cc (Fdassl): Likewise. |
|
2445 |
|
2446 * load-save.cc (read_mat_ascii_data): When reading from |
|
2447 tmp_stream, check its state, not the state of is. |
|
2448 |
|
2449 * defun-dld.h (INSTALL_DLD_FCN, INSTALL_DLD_FCNS): New macros. |
|
2450 * DLD-FUNCTIONS/dassl.cc: Use them. |
|
2451 * DLD-FUNCTIONS/lsode.cc: Ditto. |
|
2452 * DLD-FUNCTIONS/fsolve.cc: Ditto. |
|
2453 * DLD-FUNCTIONS/quad.cc: Ditto. |
|
2454 * DLD-FUNCTIONS/time.cc: Ditto. |
|
2455 * DLD-FUNCTIONS/besselj.cc: Ditto. |
|
2456 * DLD-FUNCTIONS/getgrent.cc: Ditto. |
|
2457 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
2458 * DLD-FUNCTIONS/inv.cc: Ditto. |
|
2459 * DLD-FUNCTIONS/log.cc: Ditto. |
|
2460 * DLD-FUNCTIONS/minmax.cc: Ditto. |
|
2461 * DLD-FUNCTIONS/rand.cc: Ditto. |
|
2462 |
3322
|
2463 * data.cc (Flinspace): Let linspace functions handle errors. |
|
2464 |
3321
|
2465 * mkgendoc (print_doc_string): Handle quoted names. |
|
2466 |
|
2467 * file-io.cc (symbols_of_file_io): Use DEFCONSTX for SEEK_SET, |
|
2468 SEEK_CUR, and SEEK_END. |
|
2469 |
|
2470 * defun.h (DEFCONST): Just pass name, defn, and doc to |
|
2471 DEFCONST_INTERNAL. |
|
2472 (DEFCONSTX): Likewise, pass name, defn, and doc to DEFCONSTX_INTERNAL. |
|
2473 * defun-int.h [MKBUILTINS] (DEFCONST_INTERNAL): Likewise, pass |
|
2474 name, defn, and doc to XDEFCONST_INTERNAL. |
|
2475 [MKBUILTINS] (DEFCONSTX_INTERNAL): New macro. |
|
2476 (INSTALL_CONST): New macro. |
|
2477 [! MKBUILTINS] (DEFCONST_INTERNAL): Use it to handle details here. |
|
2478 [! MKBUILTINS] (DEFCONSTX_INTERNAL): Ditto. |
|
2479 * mkgendoc: Fix definition of XDEFCONST_INTERNAL to match. |
|
2480 * mkbuiltins: Ditto. |
|
2481 |
|
2482 * mkdefs: Match spaces before BEGIN_INSTALL_BUILTIN. |
|
2483 |
|
2484 * Makefile.in (DEFUN_PATTERN): Also match DEFUN_MAPPER. |
|
2485 |
|
2486 1999-10-26 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
2487 |
|
2488 * data.cc (VI, VInf, VJ, VNaN, Ve, Veps, Vfalse, Vi, Vinf, Vj, |
|
2489 Vnan, Vpi, Vrealmax, Vrealmin): Texinfoize doc strings. |
|
2490 * mappers.cc (Fabs, Facos, Facosh, Fangle, Farg, Fasin, Fasinh, |
|
2491 Fatan, Fatanh, Fceil, Fconj, Fcos, Fcosh, Ferf, Ferfc, Fexp, |
|
2492 Ffinite, Ffix, Ffloor, Fgamma, Fimag, Flgamma, Flog, Flog10, |
|
2493 Freal, Fround, Fsign, Fsin, Fsinh, Fsqrt, Ftan, Ftanh): Ditto. |
|
2494 |
|
2495 1999-10-23 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
2496 |
3361
|
2497 * data.cc (Fis_matrix): Texinfoize doc string. |
|
2498 * ov.cc (Vpropagate_empty_matrices): Ditto. |
|
2499 * pt-mat.cc: (Vempty_list_elements_ok): Ditto. |
|
2500 * pr-output.cc (Vfixed_point_format, Voutput_max_field_width, |
|
2501 Voutput_precision, Vprint_empty_dimensions, Vsplit_long_rows): |
|
2502 Ditto. |
3321
|
2503 |
|
2504 1999-10-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2505 |
3323
|
2506 * ov-usr-fcn.cc (octave_user_function::do_index_op): If |
|
2507 Vmax_recursion_depth is exceeded, call unwind_protect::run_frame |
|
2508 before returning. |
3321
|
2509 |
3308
|
2510 1999-10-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2511 |
3317
|
2512 * cutils.c (do_octave_usleep): Handle useconds > 1e6. |
|
2513 |
3308
|
2514 * variables.h (is_valid_function): Provide default values for the |
|
2515 string argument. |
|
2516 |
|
2517 * symtab.cc (variable_reference): Maybe print warning (or error) |
|
2518 about variables that hide functions of the same name. |
|
2519 (symbol_record::define (const octave_value&, unsigned int)): Ditto. |
|
2520 (Vvariables_can_hide_functions): New static variable. |
|
2521 (variables_can_hide_functions, symbols_of_symtab): New functions. |
|
2522 |
|
2523 * cutils.c: New file. |
|
2524 * Makefile.in (SOURCES): Add it to the list. |
|
2525 * utils.h: Declare octave_usleep here. |
|
2526 * dirfns.cc (Fls): Simply all octave_usleep. |
|
2527 * oct-procbuf.cc (octave_procbuf::open): Ditto. |
|
2528 * sysdep.cc (Fusleep): Ditto. |
|
2529 * toplev.cc (run_command_and_return_output): Ditto. |
|
2530 |
3305
|
2531 1999-10-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2532 |
3307
|
2533 * data.cc (make_diag (const octave_value&, const octave_value&)): |
|
2534 Delete special cases for scalars and simply attempt conversion of |
|
2535 first arg to a matrix value. If that fails, we will still see an |
|
2536 error message. |
|
2537 |
3305
|
2538 * Makefile.in (DISTFILES): Add mkgendoc to the list. |
|
2539 |
3296
|
2540 1999-10-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2541 |
3301
|
2542 * Makefile.in (stmp-pic): New target. |
|
2543 ($(PICOBJS)): Depend on stmp-pic, not pic. |
|
2544 |
|
2545 * ov.h (get_rep): New function. |
|
2546 |
|
2547 * help.cc (display_help_text): Pass definitions for VERSION, |
|
2548 OCTAVE_HOME, and TARGETHOSTTYPE to makeinfo. |
|
2549 |
|
2550 * DLD-FUNCTIONS/getgrent.cc: Texinfoize all doc strings. |
|
2551 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
2552 * DLD-FUNCTIONS/getrusage.cc: Ditto. |
|
2553 * DLD-FUNCTIONS/time.cc: Ditto. |
|
2554 |
|
2555 * defaults.cc (EXEC_PATH, OCTAVE_VERSION): Texinfoize doc strings. |
|
2556 * dirfns.cc (Fcd, Fls, Fpwd, Freaddir, Fmkdir, Frmdir, Frename, |
|
2557 Fglob, Ffnmatch): Ditto. |
|
2558 * file-io.cc (Fpopen, Fpclose, Fumask): Ditto. |
|
2559 * sysdep.cc (Fgetenv, Fputenv, Fpause, Fsleep, Fusleep, Fisieee, |
|
2560 Ftilde_expand): Ditto. |
|
2561 * toplev.cc (Fcomputer, Fsystem, Foctave_config_info): Ditto. |
|
2562 * utils.cc (Ffile_in_path): Ditto. |
|
2563 * syscalls.cc (Fdup2, Fexec, Ffcntl, Ffork, Fgetpgrp, Fgetpid, |
|
2564 Fgetppid, Fgetegid, Fgetgid, Fgeteuid, Fgetuid, Fmkfifo, Fpipe, |
|
2565 Fstat, Funlink, Fwaitpid, F): Ditto. |
|
2566 (Flstat): Refer to stat for doc. |
|
2567 |
|
2568 |
3296
|
2569 * help.cc (looks_like_texinfo): New function. |
|
2570 (display_help_text): Use it to see if the doc string looks like |
|
2571 Texinfo source. If so, use makeinfo to format the text before |
|
2572 displaying it. |
|
2573 |
|
2574 * mkgendoc: New script. |
|
2575 * Makefile.in: Use it to create gendoc.cc, which is compiled and |
|
2576 run to create DOCSTRINGS file from sources. |
|
2577 |
3295
|
2578 1999-10-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2579 |
|
2580 * help.cc (help_from_info): Print `unable to find info' message if |
|
2581 try_info returns 127; otherwise, print `not indexed' message. |
|
2582 Don't sleep after printing `not indexed' message. |
|
2583 |
3292
|
2584 1999-10-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2585 |
|
2586 * parse.y (fold (tree_unary_expression *)): New function. |
|
2587 (make_prefix_op, make_postfix_op): Use it. |
|
2588 |
3281
|
2589 1999-10-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2590 |
3288
|
2591 * Makefile.in (oct-gperf.h): Ask for ANSI-C output from gperf |
|
2592 (requires gperf-2.7 or later). |
|
2593 |
3281
|
2594 * sighandlers.cc (sigwinch_handler): New function. |
|
2595 (install_signal_handlers): Install it. |
|
2596 |
3273
|
2597 Thu Sep 23 19:49:36 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2598 |
|
2599 * toplev.cc (Fsystem): For async case, use execl instead of |
|
2600 system, avoiding the need to exit after executing the subprocess. |
|
2601 |
3268
|
2602 Thu Sep 9 17:09:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2603 |
|
2604 * oct-stream.cc (get_size): Allow zero values. |
|
2605 (get_size): New arg, one_elt_size_spec. |
|
2606 (do_scanf_conv): New arg, `conv_count'. Change instantiation |
|
2607 requests and all callers. |
|
2608 (octave_base_stream::do_scanf): Improve scanning of strings. |
|
2609 (octave_base_stream::do_oscanf): Remove size limit on %s conversions. |
|
2610 |
|
2611 * oct-stream.cc (scanf_format_list::all_character_conversions): |
|
2612 Don't count %p as a character conversion. |
|
2613 |
|
2614 Tue Sep 7 08:31:04 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2615 |
|
2616 * pr-output.cc (set_real_matrix_format, set_complex_matrix_format): |
|
2617 Move check for fixed_point_format ahead of check for |
|
2618 int_or_inf_or_nan. |
|
2619 |
3264
|
2620 Thu Sep 2 11:54:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2621 |
|
2622 * oct-obj.cc (make_argv): Correctly handle empty strings as args. |
|
2623 |
3263
|
2624 Fri Aug 20 08:17:52 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2625 |
|
2626 * DLD-FUNCTIONS/quad.cc (quad): Delete unused label. |
|
2627 |
|
2628 * unwind-prot.cc (saved_variable::~saved_variable): Don't try to |
|
2629 delete gen_ptr_value here. |
|
2630 |
|
2631 Mon Aug 16 21:34:33 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2632 |
|
2633 * lex.l (next_token_is_sep_op): New function. |
|
2634 (handle_close_brace, maybe_unput_comma): Use it. |
|
2635 (have_continuation): Also handle CRLF here. |
|
2636 |
|
2637 Wed Aug 11 16:06:57 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2638 |
|
2639 * file-io.cc (Ffopen): Make fopen ("filename") work and imply that |
|
2640 MODE = "r". |
|
2641 |
3258
|
2642 Wed Jul 21 15:38:52 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2643 |
3259
|
2644 * help.cc (display_names_from_help_list): Sort names before |
|
2645 listing them. |
|
2646 (print_symbol_type, Ftype): Also handle built-in constants. |
|
2647 (LIST_SYMBOLS): Correct call to symbol_table::name_list. |
|
2648 (simple_help): List constants here too. List constants and |
|
2649 variables before functions, not after. Sort names before listing |
|
2650 them. |
|
2651 |
|
2652 * variables.cc (do_who): Display built-in constants in a separate |
|
2653 section. |
|
2654 |
|
2655 * error.cc (bind_global_error_variable, clear_global_error_variable): |
|
2656 Call bind_builtin_constant, not bind_builtin_variable to set |
|
2657 __error_text__. |
|
2658 * octave.cc (intern_argv): Likewise, for argv and __argv__. |
|
2659 |
|
2660 * defun.cc (install_builtin_constant): Move function guts to |
|
2661 bind_builtin_constant in variables.cc. |
|
2662 * variables.cc (bind_builtin_constant): New function. |
|
2663 |
3258
|
2664 * symtab.cc (symbol_record::define, symbol_record::variable_reference): |
|
2665 Handle constants the same as functions. |
|
2666 (symbol_record::link_to_builtin_variable): New function. |
|
2667 (symbol_record::define_builtin_const): New function. |
|
2668 (symbol_record::define_as_fcn): Delete unused function. |
|
2669 (symbol_record::read_only_error): |
|
2670 Handle constants the same as variables. |
|
2671 * symtab.h (symbol_record::BUILTIN_CONSTANT): New enum value. |
|
2672 (symbol_record::symbol_type): Increase width to 7 bits. |
|
2673 (symbol_record::symbol_def::is_constant): New function. |
|
2674 (symbol_record::symbol_def::is_builtin_constant): New function. |
|
2675 (symbol_record::is_constant): New function. |
|
2676 (symbol_record::is_builtin_constant): New function. |
|
2677 (SYMTAB_ALL_TYPES): Add symbol_record::BUILTIN_CONSTANT. |
|
2678 * variables.cc (link_to_builtin_variable): Delete unused function. |
|
2679 (link_to_builtin_or_function): Handle built-in constants here too. |
|
2680 |
|
2681 * defun.cc (install_builtin_variable): Delete inst_as_fcn arg. |
|
2682 (install_builtin_constant): New function. |
|
2683 (install_builtin_variable_as_function): Delete unused function. |
|
2684 * defun.h (DEFVAR_INTERNAL): Delete inst_as_fcn arg. |
|
2685 (DEFCONST_INTERNAL): New macro. |
|
2686 * defun.h (DEFVAR): Delete inst_as_fcn arg. |
|
2687 (DEFCONST, DEFCONSTX): Define using DEFCONST_INTERNAL instead of |
|
2688 DEFVAR_INTERNAL. |
|
2689 * data.cc, defaults.cc, error.cc, help.cc, input.cc, lex.l, |
|
2690 load-save.cc, oct-hist.cc, oct-procbuf.cc, ov-fcn.h, |
|
2691 ov-usr-fcn.cc, ov.cc, pager.cc, parse.y, pr-output.cc, |
|
2692 pt-assign.cc, pt-decl.cc, pt-mat.cc, pt-plot.cc, pt-stmt.cc, |
|
2693 toplev.cc, variables.cc: |
|
2694 Change all invocations of DEFVAR to match new definition. |
|
2695 |
|
2696 * data.cc (symbols_of_data): Add DEFCONSTs for true and false. |
|
2697 |
3255
|
2698 Thu Jul 15 10:59:42 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2699 |
3258
|
2700 * data.cc (Fis_bool, Fis_complex, Fisempty, Fisnumeric, Fis_list, |
|
2701 Fis_map, Fis_struct): Return bool object. |
|
2702 (Fisreal): New function. |
|
2703 |
|
2704 * ov-str-mat.h (octave_char_matrix_str): Only return true if |
|
2705 Vimplicit_str_to_num_ok is also true. |
|
2706 |
3255
|
2707 * DLD-FUNCTIONS/time.cc (Ftime): Print usage message if any |
|
2708 arguments are supplied. |
|
2709 |
|
2710 * variables.cc (symbol_out_of_date): Call octave_time for time stamps. |
|
2711 |
|
2712 * fn-cache.h (octave_fcn_file_name_cache::timestamp): |
|
2713 Now octave_time object. |
|
2714 |
|
2715 * strftime.c: Move to liboctave directory. |
|
2716 * Makefile.in (DIST_SRC): Delete from list. |
|
2717 |
|
2718 * ov-usr-fcn.h (octave_user_function::t_parsed, |
|
2719 octave_user_function::t_checked): Now octave_time objects. |
|
2720 (octave_user_function::time_parsed, |
|
2721 (octave_user_function::time_checked): |
|
2722 Return value is now octave_time object. |
|
2723 (octave_user_function::mark_fcn_file_up_to_date)): |
|
2724 Arg is now octave_time object. |
|
2725 |
|
2726 * ov-fcn.h (octave_function::mark_fcn_file_up_to_date)): |
|
2727 Arg is now octave_time object. |
|
2728 (octave_function::time_parsed, octave_function::time_checked): |
|
2729 Return value is now octave_time object. |
|
2730 |
|
2731 * input.cc (Vlast_prompt_time): Now an octave_time object. |
|
2732 (octave_gets): Call octave_time::stamp() to set Vlast_prompt_time. |
|
2733 |
|
2734 * DLD-FUNCTIONS/time.cc (mk_tm_map, extract_tm, Ftime, Fgmtime, |
|
2735 Flocaltime, Fmktime, Fstrftime): Use new classes defined in |
|
2736 liboctave/oct-time.cc instead of accessing C functions directly. |
|
2737 |
3252
|
2738 Wed Jul 14 17:38:46 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2739 |
|
2740 * systime.h: Move to liboctave directory. |
|
2741 * Makefile.in (INCLUDES): Delete it from the list |
|
2742 |
|
2743 Tue Jul 13 14:34:57 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2744 |
|
2745 * sighandlers.cc (sigchld_handler): Only wait for processes in |
|
2746 octave_child_list. |
|
2747 * toplev.cc (cmd_status): Delete unused static variable. |
|
2748 (cmd_death_handler): Delete unused function. |
|
2749 (run_command_and_return_output): Don't add cmd_death_handler to |
|
2750 octave_child_list. Simply extract command exit status from |
|
2751 calling close() on the procstream object. |
|
2752 |
3249
|
2753 Mon Jul 12 22:38:50 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2754 |
|
2755 * defun.h (DEFUN_MAPPER): Handle new args, d_b_map and c_b_map. |
|
2756 * defun-int.h (DEFUN_MAPPER_INTERNAL): Likewise. |
|
2757 * mappers.cc (install_mapper_functions): Supply new args to |
|
2758 all uses of DEFUN_MAPPER. |
|
2759 * ov-mapper.cc (octave_mapper::apply): Handle mapper functions |
|
2760 that return bool objects. |
|
2761 * ov-mapper.h (octave_mapper::d_b_mapper, octave_mapper::c_b_mapper): |
|
2762 New typedefs. |
|
2763 (octave_mapper::octave_mapper): Handle new mapper function types. |
|
2764 |
|
2765 * DLD-FUNCTIONS/minmax.cc: Do a better job of handling NaNs. |
|
2766 |
|
2767 Sun Jul 11 13:15:17 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2768 |
|
2769 * pr-output.cc (do_plus_format (ostream&, double)): New function. |
|
2770 (octave_print_internal (ostream&, double, bool)): Use it. |
|
2771 (octave_print_internal (ostream&, const Matrix&, bool, int)): Ditto. |
|
2772 |
|
2773 * pr-output.cc (do_plus_format (ostream&, const Complex&)): |
|
2774 New function. |
|
2775 (octave_print_internal (ostream&, const Complex&, bool)): Use it. |
|
2776 (octave_print_internal (ostream&, const ComplexMatrix&, bool, int)): |
|
2777 Ditto. |
|
2778 |
|
2779 Sun Jun 20 23:04:00 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2780 |
|
2781 * sysdep.cc: Include sys/ioctl.h if available. |
|
2782 |
|
2783 Sat Jun 19 12:07:16 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2784 |
|
2785 * variables.cc (do_who): Make pattern and multiple non-option |
|
2786 arguments work. |
|
2787 |
3246
|
2788 Mon Jun 7 09:54:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2789 |
|
2790 * lex.l (next_token_is_bin_op, next_token_is_postfix_unary_op, |
|
2791 handle_number): Delete yytext arg. Change all callers. |
|
2792 (next_token_is_postfix_unary_op): Check the first character |
|
2793 obtained from yyinput before calling it again. |
|
2794 (next_token_is_bin_op): Do a more thorough check. |
|
2795 (handle_identifier): Also enter token in local symbol table if the |
|
2796 following token is a dot and it looks like a binary operator. |
|
2797 (whitespace_in_literal_matrix): Now static. |
|
2798 |
|
2799 * lex.l: Always use unput, not yyunput. |
|
2800 |
3244
|
2801 Fri May 28 11:02:37 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2802 |
|
2803 * DLD-FUNCTIONS/chol.cc (Fchol): If two output arguments, never |
|
2804 produce error message. |
|
2805 |
3243
|
2806 Thu May 27 18:28:35 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2807 |
|
2808 * DLD-FUNCTIONS/chol.cc (Fchol): Also return info as second output. |
|
2809 |
|
2810 * DLD-FUNCTIONS/minmax.cc (max (const ComplexMatrix&, const |
|
2811 ComplexMatrix&)): Correct test for real columns only. |
|
2812 (min (const ComplexMatrix&, const ComplexMatrix&)): Likewise. |
|
2813 |
|
2814 Wed Apr 14 12:54:25 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2815 |
|
2816 * DLD-FUNCTIONS/dassl.cc (Fdassl): Prevent recursive calls. |
|
2817 * DLD-FUNCTIONS/fsolve.cc (Ffsolve): Likewise. |
|
2818 * DLD-FUNCTIONS/lsode.cc (Flsode): Likewise. |
|
2819 * DLD-FUNCTIONS/quad.cc (Fquad): Likewise. |
|
2820 |
|
2821 * file-io.cc (Fsscanf, Ffscanf): Doc fix. |
|
2822 |
3239
|
2823 Sat Mar 27 11:07:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2824 |
|
2825 * ov.h (octave_value::count): New function. |
|
2826 * symtab.cc (symbol_record::dump_symbol_info): New function. |
|
2827 * symtab.cc (symbol_record::symbol_def::dump_symbol_info): Ditto. |
|
2828 * variables.cc (F__dump_symbol_info__): Ditto. |
|
2829 |
|
2830 * pt-misc.cc (tree_parameter_list::clear): New function. |
|
2831 * ov-usr-fcn.h (octave_user_function::clear_args_passed): Ditto. |
|
2832 * ov-usr-fcn.cc (clear_param_list): New function. |
|
2833 (clear_args_passed): New function. |
|
2834 (octave_user_function::do_index_op): Use them to decrement |
|
2835 reference counts on local variables. |
|
2836 |
3238
|
2837 Fri Mar 26 00:51:53 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2838 |
|
2839 * Makefile.in (libraries): Use the libfoo.a(objects) method of |
|
2840 creating static libs. |
|
2841 |
|
2842 * defaults.cc (symbols_of_defaults): Initialize LOADPATH to |
|
2843 Vload_path, not ":". |
|
2844 |
|
2845 Thu Mar 18 12:09:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2846 |
|
2847 * data.cc (Fisnumeric): Fix typo. |
|
2848 |
|
2849 Thu Mar 4 02:17:04 1999 James Macnicol <jamesm@evans.ee.adfa.oz.au> |
|
2850 |
|
2851 * file-io.cc (Ffread, Ffwrite): Add uint16 and uint32 data types |
|
2852 to doc string. |
|
2853 |
|
2854 Wed Mar 3 11:55:17 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2855 |
|
2856 * lex.l (handle_string): Allow "" to pass through unchanged if |
|
2857 working on a gset command. |
|
2858 |
|
2859 Tue Mar 2 01:36:29 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2860 |
|
2861 * variables.cc (Fexist): If a variable isn't defined, only go on |
|
2862 to look for a global by the same name if we are at the top level. |
|
2863 |
|
2864 Fri Jan 29 02:18:36 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2865 |
|
2866 * version.h (OCTAVE_NAME_AND_VERSION): Say `GNU Octave', not just |
|
2867 Octave. |
|
2868 |
3234
|
2869 Thu Jan 28 21:29:16 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2870 |
|
2871 * toplev.cc (Fcomputer): Use CANONICAL_HOST_TYPE, not TARGET_HOST_TYPE. |
|
2872 (octave_config_info): Likewise. |
|
2873 * version.h: Ditto. |
|
2874 |
|
2875 * sysdep.cc (Fpause): Flush output before getting user input. |
|
2876 |
3233
|
2877 Wed Jan 27 14:18:29 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2878 |
|
2879 * Makefile.in (DEFFUN_PATTERN, DEFVAR_PATTERN): Use egrep again. |
|
2880 Make the patterns work with stupid egreps that don't like empty |
|
2881 elements in alternation patterns. |
|
2882 |
|
2883 Fri Jan 22 04:41:48 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2884 |
|
2885 * load-save.cc (save_ascii_data): Check for string type first, |
|
2886 then range, then the rest. |
|
2887 (save_binary_data): Ditto. |
|
2888 |
|
2889 * pager.cc (more_than_a_screenful): Accept length as second arg. |
|
2890 Handle long lines properly, assuming the terminal wraps long lines. |
|
2891 (octave_pager_buf::do_sync): Accept length of data as second arg. |
|
2892 Use write instead of << to put characters on output stream. |
|
2893 (octave_pager_buf::sync): Don't assume data ends at first NUL. |
|
2894 (octave_diary_buf::sync): Ditto. |
|
2895 |
|
2896 Thu Jan 21 22:15:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2897 |
|
2898 * load-save.cc (save_mat_binary_data): Check for string type |
|
2899 first, then range, then the rest. |
|
2900 |
|
2901 Wed Jan 20 12:01:14 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2902 |
|
2903 * oct-stream.cc (octave_base_stream::do_scanf): Handle short and |
|
2904 long ints correctly. |
|
2905 |
|
2906 Fri Jan 15 13:04:58 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2907 |
|
2908 * parse.y (end_error): Handle case of endswitch too. |
|
2909 |
|
2910 * Makefile.in: Use basic regular expressions and grep instead of |
|
2911 egrep to find files that contain DEFVAR, DEFCONST, or DEFUN. |
|
2912 |
|
2913 Wed Dec 9 14:14:11 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2914 |
|
2915 * Makefile.in (octave): Add $(RDYNAMIC_FLAG) to link command. |
|
2916 |
|
2917 Fri Dec 4 20:26:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2918 |
|
2919 * DLD-FUNCTIONS/time.cc (Fstrftime): Make it work even when not |
|
2920 using the GNU version of strftime, which allows passing NULL for |
|
2921 the buffer to determine the required size of the buffer. |
|
2922 |
3225
|
2923 Wed Dec 2 22:38:40 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2924 |
|
2925 * utils.cc (file_in_loadpath): Expect argc == 2, not 3. |
|
2926 |
|
2927 Tue Nov 24 23:38:19 1998 Eric Norum <eric@skatter.USask.Ca> |
|
2928 |
|
2929 * mkbuiltins: Also strip off leading `./' from file names. |
|
2930 * mkops: Ditto. |
|
2931 |
|
2932 Tue Nov 24 23:24:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2933 |
|
2934 * strftime.c: Surround everything with #ifdef HAVE_STRFTIME / #endif. |
|
2935 |
|
2936 * lex.h (YY_FATAL_ERROR): Call yy_falta_error after |
|
2937 jump_to_top_level to avoid gcc warning. |
|
2938 |
|
2939 Fri Nov 20 13:34:47 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2940 |
|
2941 * ov-bool.h, ov-bool.cc (class octave_bool): Derive from |
|
2942 octave_base_scalar and get common functions via derivation. |
|
2943 * ov-scalar.h, ov-scalar.cc (class octave_scalar): Ditto. |
|
2944 * ov-complex.h, ov-complex.cc (class octave_complex): Ditto. |
|
2945 |
|
2946 * ov-base-scalar.h, ov-base-scalar.cc (class octave_base_scalar): |
|
2947 New files for new class definition. Put common scalar data type |
|
2948 stuff here. |
|
2949 * Makefile.in (OV_INCLUDES, OV_SRC): Add them to the lists. |
|
2950 |
3221
|
2951 Thu Nov 19 14:30:25 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
3225
|
2952 |
3222
|
2953 * dynamic-ld.cc (octave_dynamic_loader::mangle_name): |
|
2954 Prepend underscore here. |
|
2955 (octave_dynamic_loader::load_fcn_from_dot_oct_file): Not here. |
|
2956 |
3221
|
2957 * ov-re-mat.h (octave_matrix_value): Delete experimental code for |
|
2958 handling structure references for things like .rows, .cols, etc. |
|
2959 |
3220
|
2960 Wed Nov 18 01:18:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2961 |
3221
|
2962 * Makefile.in (VAR_FILES): Be more careful about matching. |
|
2963 (DEF_FILES): Likewise. |
|
2964 |
|
2965 * ov-base-mat.h, ov-base-mat.cc, ov-bool-mat.h, ov-bool-mat.cc, |
|
2966 ov-ch-mat.h, ov-ch-mat.cc, ov-cx-mat.h, ov-cx-mat.cc, |
|
2967 ov-re-mat.h, ov-re-mat.cc: Move default definition of all, any, |
|
2968 is_matrix_type, is_numeric_type, valid_as_zero_index, and |
|
2969 do_index_op to base class. |
|
2970 Provide definitions that override the defaults where necessary. |
3220
|
2971 |
|
2972 * mappers.cc: Don't include lo-specfun.h. |
|
2973 |
|
2974 Tue Nov 17 14:35:56 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2975 |
|
2976 * besselj.cc (Fbesselh, Fairy); New functions. |
|
2977 (Fbesselj, Fbessely, Fbesselk, Fbesseli): Update doc strings. |
|
2978 (do_bessel): Handle additional args. |
|
2979 |
|
2980 Fri Nov 13 14:47:11 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2981 |
|
2982 * lex.l (NUMBER): Allow hexadecimal constants. |
|
2983 (looks_like_hex): New function. |
|
2984 (handle_number): Check for hexadecimal constants and convert them |
|
2985 to unsigned integer values. |
|
2986 |
3219
|
2987 Thu Nov 12 11:13:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2988 |
|
2989 * input.cc (gnu_readline): Check for EOF from command_editor::readline. |
|
2990 |
|
2991 * ov-str-mat.h, ov-str-mat.cc (class octave_char_matrix_str): |
|
2992 Get common functions via new derivation scheme. |
|
2993 |
|
2994 * ov-bool-mat.h, ov-bool-mat.cc (class octave_bool_matrix): |
|
2995 Derive from octave_base_matrix and get common functions via derivation. |
|
2996 * ov-ch-mat.h, ov-ch-mat.cc (class octave_char_matrix): Ditto. |
|
2997 * ov-cx-mat.h, ov-cx-mat.cc (class octave_complex_matrix): Ditto. |
|
2998 * ov-re-mat.h, ov-re-mat.cc (class octave_real_matrix): Ditto. |
|
2999 |
|
3000 * ov-base-mat.h, ov-base-mat.cc (class octave_base_matrix): New |
|
3001 files for new class definition. Put common matrix data type |
|
3002 stuff here. |
|
3003 |
|
3004 * ov-list.cc (Fnth): New function. |
|
3005 |
|
3006 * ov-list.cc (octave_list::do_index_op): Allow more complex indexing. |
|
3007 |
|
3008 * oct-obj.cc (octave_value_list::index): New function. |
|
3009 (octave_value_list::octve_value_list (Array<octave_value>)): |
|
3010 New private constructor. |
|
3011 |
|
3012 * ov-list.cc (Fsplice): Fix docstring to match. |
|
3013 * oct-obj.cc (octave_value_list::splice): Allow special case |
|
3014 splice (x, length(x)+1, 0, y) to be equivalent to append (x, y). |
|
3015 |
|
3016 * ov-list.cc (Fappend): If an arg is a list, concatenate the lists |
|
3017 instead of appending arg as a single element. |
|
3018 |
|
3019 Wed Nov 11 14:07:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3020 |
|
3021 * load-save.cc (get_mat_data_input_line): New function. |
|
3022 (get_lines_and_columns): Use it here. |
|
3023 (read_mat_ascii_data): And here and do our own reading instead of |
|
3024 using Matrix::operator<<. |
|
3025 |
|
3026 Tue Nov 10 16:12:25 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3027 |
|
3028 * parse.y (make_constant): Initialize retval to 0. |
|
3029 |
|
3030 * toplev.h (clean_up_and_exit (void)): Delete declaration. |
|
3031 * toplev.cc (do_octave_atexit): Move guts of clean_up_for_exit |
|
3032 here, but ensure that the actions are only executed once. |
|
3033 * octave.cc (main): Don't register cleanup_tmp_files with atexit. |
|
3034 |
|
3035 * ov.h, ov.cc (class octave_value): Use DECLARE_OCTAVE_ALLOCATOR |
|
3036 and DEFINE_OCTAVE_ALLOCATOR for uniform declaration and definition |
|
3037 of allocator functions. Use DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA |
|
3038 and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA for uniform declaration |
|
3039 and definition of type id functions and data. |
|
3040 * ov-usr-fcn.h, ov-usr-fcn.cc (class octave_user_function): Ditto. |
|
3041 * ov-scalar.h, ov-scalar.cc (class octave_scalar): Ditto. |
|
3042 * ov-re-mat.h ov-re-mat.cc (class octave_matrix): Ditto. |
|
3043 * ov-range.h, ov-range.cc (class octave_range): Ditto. |
|
3044 * ov-mapper.h, ov-mapper.cc (class octave_mapper): Ditto. |
|
3045 * ov-list.h, ov-list.cc (class octave_list): Ditto. |
|
3046 * ov-file.h, ov-file.cc (class octave_file): Ditto. |
|
3047 * ov-fcn.h, ov-fcn.cc (class octave_function): Ditto. |
|
3048 * ov-cx-mat.h, ov-cx-mat.cc (class octave_complex_matrix): Ditto. |
|
3049 * ov-complex.h, ov-complex.cc (class octave_complex): Ditto. |
|
3050 * ov-ch-mat.h, ov-ch-mat.cc (octave_char_matrix): Ditto. |
|
3051 * ov-builtin.h, ov-builtin.cc (class octave_builtin): Ditto. |
|
3052 * ov-bool.h, ov-bool.cc (class octave_bool): Ditto. |
|
3053 * ov-bool-mat.h, ov-bool-mat.cc (octave_bool_matrix): Ditto. |
|
3054 |
|
3055 * ov.h (DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA): New macro. |
|
3056 (DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA): Ditto. |
|
3057 |
3215
|
3058 Mon Nov 9 16:12:37 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3059 |
|
3060 * pr-output.cc (octave_print_internal): Reorder default args for |
|
3061 charMatrix version. |
|
3062 (octave_print_internal): New function for boolMatrix. |
|
3063 |
|
3064 * version.h (OCTAVE_STARTUP_MESSAGE): Note that this is a |
|
3065 development release. |
|
3066 |
|
3067 * toplev.cc (do_octave_atexit): Call flush_octave_stdout here. |
|
3068 (clean_up_for_exit): And here. |
|
3069 |
|
3070 Mon Nov 9 15:20:53 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3071 |
|
3072 * input.cc (get_user_input): Check retval.length(), not retval.length. |
|
3073 |
|
3074 Sun Nov 8 19:30:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3075 |
|
3076 * pt-assign.cc (tree_simple_assignment::rvalue): If etype is |
|
3077 asn_eq, don't evaluate ult again because retval is just rhs value. |
|
3078 (tree_multi_assignment::rvalue): Likewise. |
|
3079 |
|
3080 Fri Nov 6 12:14:29 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3081 |
|
3082 * pt-loop.cc (tree_for_command::eval): Move code for string RHS |
|
3083 outside if clause for matrix types. |
|
3084 |
|
3085 * pt-idx.cc: Don't forget to define arg_nm. |
|
3086 Move contstructor here. |
|
3087 * pt-idx.h: From here. |
|
3088 |
|
3089 * data.cc (Fisempty): Also return true for empty strings. |
|
3090 |
3212
|
3091 Wed Nov 4 17:21:41 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3092 |
|
3093 * ov-base.cc (octave_base_value::rows, octave_base_value::columns, |
|
3094 octave_base_value::length): Delete. |
|
3095 * ov-base.h (octave_base_value::rows, octave_base_value::columns, |
|
3096 octave_base_value::length): Define here. All return -1 if not |
|
3097 defined in a derived class. |
|
3098 |
|
3099 * data.cc (Fis_matrix): Also return true if the arg is a range. |
|
3100 |
3209
|
3101 Tue Nov 3 09:40:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3102 |
|
3103 * data.cc (Fis_bool): New function. |
|
3104 Also add alias for islogical. |
|
3105 |
|
3106 * ov.h (octave_value::is_bool_type): New function. |
|
3107 * ov-base.h (octave_base_value::is_bool_type): Likewise. |
|
3108 * ov-bool.h (octave_bool::is_bool_type): Likewise. |
|
3109 * ov-bool-mat.h (octave_bool_matrix::is_bool_type): Likewise. |
|
3110 |
3206
|
3111 Mon Nov 2 13:36:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3112 |
3208
|
3113 * lex.l (handle_close_brace): Also handle case of ']' followed by |
|
3114 other assignment ops (+=, -=, ...). |
|
3115 |
|
3116 * pt-assign.cc (tree_simple_assignment::rvalue): Correctly handle |
|
3117 return value and printing for operators other than `='. |
|
3118 (tree_multi_assignment::rvalue): Likewise. |
|
3119 |
|
3120 * pt-assign.h (tree_multi_assignment::etype): New data member. |
|
3121 * pt-assign.cc (tree_multi_assignment::rvalue): Use it instead of |
|
3122 assuming `='. |
|
3123 (tree_multi_assignment::oper): New function. |
|
3124 * pt-pr-code.cc (tree_print_code::visit_multi_assignment): Use |
|
3125 it instead of always printing `='. |
|
3126 * parse.y (make_assign_op): Pass expression type to |
|
3127 tree_multi_assignment constructor. |
|
3128 |
3206
|
3129 * Makefile.in (stmp-pic): New target. |
|
3130 ($(PICOBJ)): Depend on stmp-pic, not pic. |
|
3131 (clean): Delete stmp-pic. |
|
3132 |
|
3133 Sun Nov 1 23:24:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3134 |
|
3135 * mappers.cc (install_mapper_functions): Add alias for isfinite. |
|
3136 |
|
3137 Sat Oct 31 08:46:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3138 |
|
3139 * data.cc (Fisnumeric): New function. |
|
3140 |
3203
|
3141 Fri Oct 30 08:39:30 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3142 |
3205
|
3143 * oct-lvalue.cc (octave_lvalue::do_unary_op): Make it work for |
|
3144 indexed ops too. |
|
3145 * ov.cc (octave_value::unary_op_to_assign_op): New function. |
|
3146 (octave_value::do_non_const_unary_op): New function for indexed ops. |
|
3147 |
3204
|
3148 * parse.y (LEFTDIV_EQ, ELEFTDIV_EQ): New tokens. |
|
3149 (assign_expr): Add rules for them. |
|
3150 (make_assign_op): Handle them here too. |
|
3151 * lex.l: Recognize them. |
|
3152 * ov.h (octave_value::assign_op): Add ldiv_eq and el_ldiv_eq. |
|
3153 * ov.cc (octave_value::assign_op_as_string): Ditto. |
|
3154 (octave_value::op_eq_to_binary_op): Ditto. |
|
3155 (octave_value::assign): Handle OP= style operators with brute force. |
|
3156 (octave_value::simple_assign): New function. |
|
3157 |
3203
|
3158 * parse.y (matrix): Dont' forget to reset |
|
3159 lexer_flags.looking_at_matrix_or_assign_lhs. |
|
3160 |
|
3161 * oct-lvalue.cc (octave_lvalue::assign): Don't call change |
|
3162 function if error occurs. |
|
3163 (octave_lvalue::do_unary_op): If we have an index, fail with message. |
|
3164 |
3202
|
3165 Thu Oct 29 09:27:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3166 |
3203
|
3167 * ov.cc (do_binary_op): Protect against invalid type conversions. |
|
3168 (try_assignment_with_conversion): Likewise. |
|
3169 (do_unary_op): Likewise. |
|
3170 |
|
3171 * ov.h (OV_UNOP_FN, OV_UNOP_OP, OV_UNOP_FN_OP): New macros. |
|
3172 Use them to define not, uminus, transpose, hermitian functions |
|
3173 and operators ! and -. |
|
3174 (OV_BINOP_FN, OV_BINOP_OP, OV_BINOP_FN_OP): New macros. |
|
3175 Use them to define add, sub, mul, div, pow, ldiv, lshift, rshift, |
|
3176 lt, le, eq, ge, gt, ne, el_mul, el_div, el_pow, el_ldiv, el_and, |
|
3177 el_or, struct_ref, functions and operators <, <=, ==, >=, >, !=, |
|
3178 +, -, *, and /. |
|
3179 |
|
3180 * ops.h (CONVDECLX): New macro. |
|
3181 * ov-base.cc (matrix_conv, complex_matrix_conv, string_conv): |
|
3182 Use it to declare these functions. |
|
3183 |
|
3184 * ops.h (CONVDECL, INSTALL_WIDENOP): |
|
3185 Prefix function name with `oct_conv_'. |
|
3186 (INSTALL_BINOP, BINOPDECL): Prefix function name with `oct_binop_'. |
|
3187 (INSTALL_ASSIGNOP, INSTALL_ASSIGNANYOP, ASSIGNOPDECL): |
|
3188 Prefix function name with `oct_assignop_'. |
|
3189 (UNOPDECL, DEFNCUNOP_METHOD, INSTALL_UNOP, INSTALL_NCUNOP): |
|
3190 Prefix function name with `oct_unop_'. |
|
3191 |
|
3192 * ov-str-mat.cc (default_numeric_conversion_function): |
|
3193 Return 0 if conversion fails. |
|
3194 |
|
3195 * parse.y (make_prefix_op, make_postfix_op): Use |
|
3196 octave_value::unary_op enum. |
|
3197 |
|
3198 * pt-unop.cc (tree_prefix_expression::rvalue): Use new unary_op |
|
3199 functions from octave_value and octave_lvalue classes. |
|
3200 (tree_prefix_expression::rvalue): Likewise. |
|
3201 |
|
3202 * pt-unop.cc (tree_unary_expression::oper): Move here. |
|
3203 (tree_prefix_expression::oper, tree_postfix_expression): From here. |
|
3204 |
|
3205 * pt-unop.h (tree_prefix_expression, tree_postfix_expression): |
|
3206 Delete enums. |
|
3207 (tree_unary_expression): Use octave_value::unary_op enum. |
|
3208 * parse.y (make_prefix_op, make_postfix_op): Likewise. |
|
3209 |
|
3210 * oct-lvalue.h (octave_lvalue::do_unary_op): New function. |
|
3211 (octave_lvalue::increment, octave_lvalue::decrement): Delete. |
|
3212 |
|
3213 * ov-typeinfo.h (octave_value_typeinfo::non_const_unary_ops): |
|
3214 New data member. |
|
3215 * ov-typeinfo.h (octave_value_typeinfo::lookup_non_const_unary_op): |
|
3216 New function. |
|
3217 * ov-typeinfo.cc (octave_value_typeinfo::register_non_const_unary_op): |
|
3218 New function. |
|
3219 (octave_value_typeinfo::do_register_non_const_unary_op): Ditto. |
|
3220 (octave_value_typeinfo::do_lookup_non_const_unary_op): Ditto. |
|
3221 |
|
3222 * ov.cc (octave_value::do_non_const_unary_op): New function. |
|
3223 |
|
3224 * Makefile.in (OP_XSRC): Add op-chm.cc and op-range.cc to the list. |
|
3225 |
|
3226 * OPERATORS/op-str-str.cc: Define string matrix unary operators here. |
|
3227 (install_str_str_ops): Install them here. |
|
3228 * ov-bool-mat.h (octave_bool_matrix::transpose, |
|
3229 octave_bool_matrix_value::hermitian): Delete. |
|
3230 |
|
3231 * OPERATORS/op-chm.cc: New file. Define char matrix unary operators. |
|
3232 (install_chm_ops): Install them here. |
|
3233 * ov-ch-mat.h (octave_char_matrix::transpose, |
|
3234 octave_char_matrix_value::hermitian): Delete. |
|
3235 * ops.cc (install_ops): Call install_chm_ops. |
|
3236 |
|
3237 * OPERATORS/op-bm-bm.cc: Define bool matrix unary operators here. |
|
3238 (install_bm_bm_ops): Install them here. |
|
3239 * ov-bool-mat.h (octave_bool_matrix::transpose, |
|
3240 octave_bool_matrix_value::hermitian): Delete. |
|
3241 |
|
3242 * ov-bool.h (octave_bool::not, octave_bool::uminus, |
|
3243 octave_bool::transpose, octave_bool::hermitian): Delete. |
|
3244 |
|
3245 * OPERATORS/op-cs-cs.cc: Define complex scalar unary operators here. |
|
3246 (install_cs_cs_ops): Install them here. |
|
3247 * ov-complex.h (octave_complex::not, octave_complex::uminus, |
|
3248 octave_complex::transpose, octave_complex::hermitian): Delete. |
|
3249 |
|
3250 * OPERATORS/op-cm-cm.cc: Define complex matrix unary operators here. |
|
3251 (install_cm_cm_ops): Install them here. |
|
3252 * ov-cx-mat.h (octave_complex_matrix::not, |
|
3253 octave_complex_matrix::uminus, octave_complex_matrix::transpose, |
|
3254 octave_complex_matrix::hermitian): Delete. |
|
3255 |
|
3256 * OPERATORS/op-m-m.cc: Define matrix unary operators here. |
|
3257 (install_m_m_ops): Install them here. |
|
3258 * ov-re-mat.h (octave_matrix::not, octave_matrix::uminus, |
|
3259 octave_matrix::transpose, octave_matrix::hermitian): Delete. |
|
3260 |
|
3261 * OPERATORS/op-range.cc: New file. Define range unary operators. |
|
3262 (install_range_ops): Install them here. |
|
3263 * ov-range.h (octave_range::not, octave_range::uminus, |
|
3264 octave_range::transpose, octave_range::hermitian): Delete. |
|
3265 * ops.cc (install_ops): Call install_range_ops. |
|
3266 |
|
3267 * OPERATORS/op-s-s.cc: Define scalar unary operators here. |
|
3268 (install_s_s_ops): Install them here. |
|
3269 * ov-scalar.h (octave_scalar::not, octave_scalar::uminus, |
|
3270 octave_scalar::transpose, octave_scalar::hermitian): Delete. |
|
3271 |
|
3272 * ops.h (INSTALL_UNOP, CAST_UNOP_ARG, UNOPDECL, DEFUNOPX, DEFUNOP, |
|
3273 DEFUNOP_OP, DEFUNOP_FN): New macros. |
|
3274 |
|
3275 * ov.h (unary_op_fcn): New typedef. |
|
3276 (octave_value::unary_op): New enum. |
|
3277 * ov.cc (octave_value::octave_value): New function. |
|
3278 |
|
3279 * ov.h (octave_value::not, octave_value::uminus, |
|
3280 octave_value::transpose, octave_value::hermitian, |
|
3281 octave_value::increment, octave_value::decrement): Delete. |
|
3282 |
|
3283 * ov-base.cc (octave_base_value::not, octave_base_value::uminus, |
|
3284 octave_base_value::transpose, octave_base_value::hermitian, |
|
3285 octave_base_value::increment, octave_base_value::decrement): Delete. |
|
3286 |
|
3287 * ov.cc (gripe_unary_op): New function. |
|
3288 (do_unary_op): New function. |
|
3289 * ov-typeinfo.h (octave_value_typeinfo::unary_ops): |
|
3290 New data member. |
|
3291 * ov-typeinfo.cc (octave_value_info::register_unary_op, |
|
3292 octave_value_info::do_register_unary_op, |
|
3293 octave_value_info::lookup_unary_op, |
|
3294 octave_value_info::do_lookup_unary_op): |
|
3295 New functions. |
|
3296 |
3202
|
3297 * ov-list.cc (Fsplice): Use new octave_value::int_value function here. |
|
3298 (octave_list::do_index_op): Likewise. |
|
3299 (octave_list::assign): Likewise. |
|
3300 * toplev.cc (Fquit): Likewise. |
|
3301 * syscalls.cc (Fwaitpid): Likewise. |
|
3302 (Ffcntl): Likewise. |
|
3303 * file-io.cc (do_fread): Likewise. |
|
3304 (do_fwrite): Likewise. |
|
3305 * data.cc (make_diag): Likewise. |
|
3306 (Fsize): Likewise. |
|
3307 (get_dimensions): Likewise. |
|
3308 (Flinspace): |
|
3309 |
|
3310 * ov-base.cc (octave_base_value::int_value): New function. |
|
3311 (octave_base_value::nint_value): Ditto. |
|
3312 * ov.h (octave_value::int_value): Ditto. |
|
3313 (octave_value::nint_value): Ditto. |
|
3314 |
|
3315 * ov-list.cc (octave_list::assign): Fix off-by-one error. |
|
3316 |
3196
|
3317 Wed Oct 28 11:01:37 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3318 |
3202
|
3319 * load-save.cc (read_mat_ascii_data): Try harder to convert file |
|
3320 name to valid variable name. |
|
3321 |
|
3322 * data.cc (Fisempty, Fis_matrix): New functions. |
|
3323 |
|
3324 * ov-str-mat.h (octave_char_matrix_str::is_matrix_type): New function. |
|
3325 |
3196
|
3326 * OPERATORS/op-list.cc: New file. |
|
3327 * Makefile.in (OP_XSRC): Add it to the list. |
|
3328 |
|
3329 * ov-list.cc (octave_list::assign): New function. |
|
3330 |
|
3331 * ov-typeinfo.h (octave_value_typeinfo::assignany_ops): |
|
3332 New data member. |
|
3333 * ov-typeinfo.cc (octave_value_info::register_assignany_op, |
|
3334 octave_value_info::do_register_assignany_op, |
|
3335 octave_value_info::lookup_assignany_op, |
|
3336 octave_value_info::do_lookup_assignany_op): |
|
3337 New functions. |
|
3338 * ov.cc (octave_value::try_assignment (octave_value::assign_op, |
|
3339 const octave_value_list&, const octave_value&)): If no assignment |
|
3340 operator for particular RHS type exists, try finding one for |
|
3341 generic octave_value as RHS type. |
|
3342 * ops.h (DEFASSIGNANYOP_FN): New macro. |
|
3343 |
|
3344 * ov-list.cc (Fsplice): New function. |
|
3345 * oct-obj.cc (octave_value_list::splice): New function. |
|
3346 |
|
3347 * ov.cc (Vresize_on_range_error): No longer static. |
|
3348 * ov.h (Vresize_on_range_error): Provide extern declaration. |
|
3349 |
|
3350 * oct-procbuf.cc (symbols_of_oct_procbuf): Don't declare static. |
|
3351 |
|
3352 * data.cc (Flength): New function. |
|
3353 * ov.h (octave_value::length): New virtual function. |
|
3354 * ov-base.cc (octave_base_value::length): New function. |
|
3355 (octave_base_value::rows, octave_base_value::columns): Move |
|
3356 definitions here, from ov-base.h. Don't return -1. Instead, |
|
3357 gripe about wrong argument type. |
|
3358 * ov-bool-mat.h (octave_bool_matrix::length): New function. |
|
3359 * ov-bool.h (octave_bool::length): Ditto. |
|
3360 * ov-ch-mat.h (octave_char_matrix::length): Ditto. |
|
3361 * ov-complex.h (octave_complex::length): Ditto. |
|
3362 * ov-cx-mat.h (octave_complex_matrix::length): Ditto. |
|
3363 * ov-list.h (octave_list::length): Ditto. |
|
3364 * ov-range.h (octave_range::length): Ditto. |
|
3365 * ov-re-mat.h (octave_matrix::length): Ditto. |
|
3366 * ov-scalar.h (octave_scalar::length): Ditto. |
|
3367 |
|
3368 Tue Oct 27 22:19:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3369 |
|
3370 * ov-list.cc (octave_list::print_raw): Handle case of empty list. |
|
3371 (octave_list::print_name_tag): Likewise. |
|
3372 |
|
3373 * octave.cc (intern_argv): Built-in variable argv is now a list of |
|
3374 strings instead of a string vector. |
|
3375 Always bind argv, making it an empty list if there are no args. |
|
3376 |
|
3377 Mon Oct 26 08:41:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3378 |
|
3379 * xdiv.cc (mx_leftdiv_conform): Explicitly declare args to be |
|
3380 passed as references to const objects. Fix explicit instantiation |
|
3381 requests to match. |
|
3382 (mx_div_conform): Likewise. |
|
3383 |
|
3384 * pt-unop.h (tree_prefix_expression): Reorder constructor args to |
|
3385 put those with default values last. |
|
3386 (tree_postfix_expression): Likewise. |
|
3387 * parse.y: Change all callers. |
|
3388 |
3192
|
3389 Fri Oct 23 12:07:32 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3390 |
3196
|
3391 * utils.cc (Ffile_in_loadpath): New function. |
|
3392 |
|
3393 * defaults.cc (Vload_path, Vdefault_load_path): Now static. |
|
3394 |
|
3395 * help.cc (simple_help): Use Vload_path_dir_path here instead of |
|
3396 trying to reconstruct it from Vload_path. |
|
3397 * fn-cache.cc (octave_fcn_file_name_cache::do_list): Likewise. |
|
3398 (octave_fcn_file_name_cache::update): Likewise. |
|
3399 |
|
3400 * defaults.cc (octave_loadpath): Construct Vload_path_dir_path |
|
3401 using Vdefault_load_path. |
|
3402 (set_default_path): Likewise. |
|
3403 |
|
3404 * defaults.h, defaults.cc (maybe_add_default_load_path): Delete. |
|
3405 |
3192
|
3406 * defaults.cc (Vdefault_load_path): New static variable. |
|
3407 (set_default_path): Set it. |
|
3408 (maybe_add_default_load_path): Use it. |
|
3409 (symbols_of_defaults): Add DEFCONST for DEFAULT_LOADPATH. |
|
3410 Thanks to Rafael Laboissiere <rafael@icp.inpg.fr>. |
|
3411 |
|
3412 * defaults.cc (set_default_path): If OCTAVE_PATH is set in the |
|
3413 environment, call maybe_add_default_load_path on it. |
|
3414 |
|
3415 Tue Oct 20 20:58:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3416 |
|
3417 * defaults.cc (maybe_add_default_load_path): If LOADPATH contains |
|
3418 an embedded "::", insert the default path there too. |
|
3419 |
3189
|
3420 Fri Oct 16 00:52:15 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3421 |
|
3422 * parse.y (in_matrix_or_assign_lhs): New subroutine for lexical |
|
3423 feedback. |
|
3424 (matrix): Use it. |
|
3425 (assign_lhs): Ditto. |
|
3426 * lex.h (lexical_feedback::looking_at_matrix_or_assign_lhs): New |
|
3427 data member. |
|
3428 * lex.l (handle_identifier): Use it to handle keywords like `cd' |
|
3429 as variables in contexts like [ab, cd] = foo (). |
|
3430 |
|
3431 * ov-str-mat.h |
|
3432 (octave_char_matrix_str::octave_char_matrix_str (char c)): |
|
3433 New constructor. |
|
3434 * ov-ch-mat.h (octave_char_matrix::octave_char_matrix (char c)): |
|
3435 New constructor. |
|
3436 * ov.cc (octave_value::octave_value (char c): New constructor. |
|
3437 |
|
3438 * pt-loop.cc (tree_simple_for_command::eval): Handle case of RHS |
|
3439 as string. |
|
3440 |
|
3441 Thu Oct 15 00:56:47 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3442 |
|
3443 * DLD-FUNCTIONS/rand.cc: Declare Fortran subroutines as returning |
|
3444 int, not int*. |
|
3445 |
|
3446 Wed Oct 14 23:51:31 1998 Georg Thimm <thimm@idiap.ch> |
|
3447 |
|
3448 * load-save.cc (Vcrash_dumps_octave_core): New static variable. |
|
3449 (save_user_variables): Only save variables if |
|
3450 Vcrash_dumps_octave_core is true. |
|
3451 (symbols_of_load_save): Add DEFVAR for it here. |
|
3452 (crash_dumps_octave_core): New function. |
|
3453 * octave.cc (maximum_braindamage): Bind crash_dumps_octave_core to |
|
3454 0.0 here. |
|
3455 |
|
3456 Tue Oct 13 22:05:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3457 |
|
3458 * input.cc (read_readline_init_file): New function. |
|
3459 |
|
3460 Thu Oct 8 13:47:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3461 |
|
3462 * oct-procbuf.h (octave_procbuf::wstatus): New data member. |
|
3463 Initialize in constructors. |
|
3464 (octave_procbuf::wait_status): New member function. |
|
3465 * oct-procbuf.cc (octave_procbuf::sys_close): Use class data |
|
3466 member wstatus, not local variable. |
|
3467 * procstream.cc (procstreambase::close): Don't call sys_close directly. |
|
3468 Get subprocess exit status by calling wait_status for our procbuf. |
|
3469 * pt-plot.cc (close_plot_stream): Send "quit" command to gnuplot |
|
3470 before deleting plot_stream. |
|
3471 |
|
3472 |
|
3473 Thu Oct 1 22:39:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3474 |
|
3475 * data.cc (Fis_complex): New function. |
|
3476 |
3185
|
3477 Fri Sep 25 11:50:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3478 |
|
3479 * load-save.cc (write_header): Rename from write_binary_header. |
|
3480 Also write header for Octave ASCII files. |
|
3481 |
|
3482 * load-save.cc (Fsave): Implement -append option. |
|
3483 |
|
3484 * defaults.cc (Frehash): New function. |
|
3485 |
|
3486 Fri Sep 25 11:50:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3487 |
|
3488 * help.cc (help_from_info): Improve error message in case that |
|
3489 info doesn't work. |
|
3490 |
3180
|
3491 Thu Sep 24 10:48:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3492 |
3185
|
3493 * Makefile.in (DLD_XSRC): Replace qzval.cc with qz.cc |
|
3494 |
|
3495 * DLD-FUNCTIONS/balance.cc: Update from A. S. Hodel |
|
3496 <scotte@eng.auburn.edu>. |
|
3497 |
|
3498 * DLD-FUNCTIONS/qz.cc: New file. |
|
3499 |
|
3500 * DLD-FUNCTIONS/qzval.cc: Delete. |
|
3501 |
3180
|
3502 * parse.y (plot_command1): Don't allow it to be empty. |
|
3503 (plot_command): Handle simple `PLOT' and `PLOT ranges' as special |
|
3504 cases here. |
|
3505 |
|
3506 Wed Sep 23 21:10:08 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3507 |
|
3508 * lex.l: Change <MATRIX>{SNLCMT}*\n{SNLCMT}* pattern |
|
3509 to <MATRIX>{S}*{COMMENT}{SNLCMT}* | <MATRIX>{S}*{NL}{SNLCMT}*. |
|
3510 |
|
3511 Fri Sep 4 10:50:00 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3512 |
|
3513 * file-io.cc (Ffwrite): Fix doc string. |
|
3514 |
|
3515 Wed Sep 2 16:22:23 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3516 |
|
3517 * input.cc (match_sans_spaces): Make it work. |
|
3518 |
|
3519 * toplev.cc (quit): Require nargout == 0. |
|
3520 |
|
3521 * input.cc (get_user_input): Only try matching "exit", "quit", and |
|
3522 "return" if debugging. |
|
3523 |
|
3524 Tue Sep 1 12:50:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3525 |
|
3526 * octave.cc: Use -H as single character equivalent of --no-history. |
|
3527 |
|
3528 Sat Aug 29 12:23:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3529 |
|
3530 * oct-obj.cc (octave_value_list::make_argv): If some values are |
|
3531 string vectors, insert all the elements, not just the first. |
|
3532 |
|
3533 Tue Aug 18 16:39:50 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3534 |
|
3535 * oct-stream.cc (octave_base_stream::do_gets): Accept last line of |
|
3536 file even if it doesn't end in a newline character. |
|
3537 |
|
3538 Tue Aug 18 16:25:49 1998 Mumit Khan <khan@xraylith.wisc.edu> |
|
3539 |
|
3540 * xdiv.cc (mx_leftdiv_conform, mx_div_conform): Instantiate correct |
|
3541 templates. |
|
3542 |
|
3543 Thu Jul 30 00:37:43 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3544 |
|
3545 * pt-loop.cc (tree_for_command::eval): Check for range first. |
|
3546 If error occurs when extracting matrix value, return early. |
|
3547 Don't bother to check for string type. |
|
3548 |
|
3549 * ov-ch-mat.h (octave_char_matrix::is_real_matrix): New function. |
|
3550 |
|
3551 Tue Jun 23 15:09:54 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3552 |
|
3553 * parse.y (clear_current_script_file_name): New function. |
|
3554 (parse_fcn_file): Bind current_script_file_name while script is |
|
3555 executing. Use unwind_protect to clear it once the script is |
|
3556 finished. |
|
3557 |
|
3558 * pt-plot.cc (Fgraw): New function. |
|
3559 |
3178
|
3560 Mon Jun 22 22:13:38 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3561 |
|
3562 * variables.cc (is_valid_function): Provide version that takes |
|
3563 function name as string. |
|
3564 |
|
3565 * parse.y (binary_expr): Fix thinko that resulted in incorrect |
|
3566 evaluation of -x^y. Thanks to Richard Allan Holcombe |
|
3567 <raholcom@unity.ncsu.edu>. |
|
3568 (feval): Don't attempt to copy nonexistent arg names. |
|
3569 |
|
3570 Mon Jun 22 21:35:50 1998 Richard Allan Holcombe <raholcom@unity.ncsu.edu> |
|
3571 |
|
3572 * xpow.cc (xpow): Improve efficiency for matrix^(scalar int) case. |
|
3573 |
|
3574 Thu Jun 4 12:42:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3575 |
|
3576 * ov-usr-fcn.cc (octave_user_function::octave_all_va_args): |
|
3577 If num_args_passed < num_named_args, create zero length list. |
|
3578 |
3176
|
3579 Thu May 14 16:23:15 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3580 |
|
3581 * DLD-FUNCTIONS/getrusage.cc: Include sys/types.h too. |
|
3582 |
|
3583 Mon May 11 00:38:45 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3584 |
|
3585 * pager.cc (Fdiary): Don't forget to set write_to_diary file if |
|
3586 just given a file name. |
|
3587 |
|
3588 * input.cc (octave_gets): Only send new line character to |
|
3589 octave_diary if current_input_line is empty or doesn't already end |
|
3590 with a new line character.. |
|
3591 Don't send input from function files or scripts to octave_diary. |
|
3592 |
3174
|
3593 Sun May 3 19:54:38 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3594 |
|
3595 * lex.l (reset_parser): Also call yyrestart if forced_interactive |
|
3596 is true, but not if input_from_startup_file is true. |
|
3597 |
|
3598 Tue Apr 28 14:06:20 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3599 |
|
3600 * oct-procbuf.cc (Vkluge_procbuf_delay): New static variable. |
|
3601 (kluge_procbuf_delay): New function. |
|
3602 (symbols_of_oct_procbuf): New function. |
|
3603 (octave_procbuf::open): Delay Vkluge_procbuf_delay microseconds |
|
3604 after forking. |
|
3605 |
|
3606 Thu Apr 23 15:41:08 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3607 |
|
3608 * defaults.cc (Vload_path_dir_path): New variable. |
|
3609 * utils.cc (file_in_path): Use it. |
|
3610 |
|
3611 * utils.cc (search_path_for_file): Undo previous change. |
|
3612 (file_in_path): Undo previous change. |
|
3613 * defaults.cc (loadpath): Undo previous change. Tilde expansion |
|
3614 is once again handled correctly by the code in |
|
3615 liboctave/pathsearch.cc. |
|
3616 |
|
3617 Mon Apr 20 21:50:34 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3618 |
|
3619 * data.cc (get_dimensions): Allow zeros ([], 3) to work, for |
|
3620 compatibility with Matlab. |
|
3621 |
|
3622 * dynamic-ld.cc [WITH_DL && ! HAVE_DLFCN_H]: Add declarations for |
|
3623 dlopen, dlerror, dlsym, and dlclose. |
|
3624 |
|
3625 * octave.gperf: Handle __FILE__ and __LINE__. |
|
3626 * lex.l (is_keyword): Likewise. |
|
3627 * Makefile.in (oct-gperf.h): Pass -D option to gperf. |
|
3628 Postprocess output of gperf to convert name of static variable |
|
3629 from lookup to gperf_lookup, to avoid conflict with our function |
|
3630 of the same name defined in variables.cc. |
|
3631 |
3168
|
3632 Sat Apr 18 20:17:10 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3633 |
|
3634 * help.cc (USE_GNU_INFO): Delete uses of this macro. |
|
3635 |
3167
|
3636 Thu Apr 16 01:00:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3637 |
|
3638 * dynamic-ld.cc: Only include dlfcn.h if HAVE_DLFCN_H. |
|
3639 |
3165
|
3640 Wed Apr 15 01:03:05 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3641 |
|
3642 * input.cc (Vlast_prompt_time): New global variable. |
|
3643 (octave_gets): Set it. |
3166
|
3644 * ov-fcn.h (octave_function::time_checked): New virtual function |
|
3645 (octave_function::mark_fcn_file_up_to_date): Ditto. |
3165
|
3646 * ov-usr-fcn.h (octave_user_function::time_checked): New function. |
|
3647 (octave_user_function::mark_fcn_file_up_to_date): Ditto. |
|
3648 (octave_user_function::t_checked): New data member. |
|
3649 * variables.cc (symbol_out_of_date): Only check file time stamp if |
|
3650 a prompt has been printed since the last time check. |
|
3651 |
|
3652 * pt-plot.h, pt-plot.cc (subplot_axes): New class. |
|
3653 (subplot): Handle axes. |
|
3654 (Vgnuplot_command_axes): New static variable. |
|
3655 (gnuplot_command_axes): New function. |
|
3656 (symbols_of_pt_plot): DEFVAR gnuplot_command_axes. |
|
3657 * pt-walk.h (tree_walker::visit_subplot_axes): New virtual function. |
|
3658 * parse.y (plot_options): Handle axes. |
|
3659 * lex.l (plot_axes_token): New function. |
|
3660 (is_keyword): Use it. |
|
3661 (is_plot_keyword): Recognize "axes" and "axis". |
|
3662 * lex.h (class lexical_feedback): New field, in_plot_axes. |
|
3663 (lexical_feedback::init): Reset it. |
|
3664 |
|
3665 Tue Apr 14 23:32:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3666 |
|
3667 * parse.y (parse_fcn_file): New arg, force_script. Change callers. |
|
3668 |
3164
|
3669 Fri Apr 10 11:01:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3670 |
|
3671 * help.cc (type): Also print values of variables. |
|
3672 |
3162
|
3673 Wed Apr 8 01:00:58 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3674 |
3164
|
3675 * pr-output.cc (set_format): Set scale to 1.0 if all elements are |
|
3676 int or inf or nan. |
|
3677 |
3162
|
3678 * parse.y (Vwarn_future_time_stamp): New variable. |
|
3679 (symbols_of_parse): Add DEFVAR for it. |
|
3680 (warn_future_time_stamp): New function. |
|
3681 (frob_function_def): Maybe warn about files with future time stamps. |
|
3682 |
|
3683 Thu Apr 2 20:43:45 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3684 |
|
3685 * pt-arg-list.cc (tree_argument_list::convert_to_const_vector): In |
|
3686 error messages, print element numbers starting with 1, not 0. |
|
3687 |
|
3688 Sat Mar 28 15:25:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3689 |
|
3690 * toplev.cc (clean_up_for_exit): New function. |
|
3691 (clean_up_and_exit): Use it. |
|
3692 * sighandlers.cc (my_friendly_exit): Call it instead of |
|
3693 clean_up_and_exit, then do default action for signal. |
|
3694 |
|
3695 * sighandlers.cc (octave_new_handler): Call my_friendly_exit with |
|
3696 signal set to SIGABRT if it is defined, or -1 otherwise. |
|
3697 |
|
3698 * error.cc (verror): Fix thinko in attempt to skip `error: ' tag |
|
3699 when buffering error messages. |
|
3700 * pt-except.cc (tree_try_catch::eval): Reset buffer_error_messages |
|
3701 here if just discarding unwind_protect frame. |
|
3702 |
|
3703 Wed Mar 18 12:35:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3704 |
|
3705 * xpow.cc (elem_xpow): For real-scalar .^ matrix case, result is |
|
3706 complex only if real-scalar is negative and matrix has some |
|
3707 non-integer values. |
|
3708 |
|
3709 Tue Mar 17 17:47:50 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3710 |
|
3711 * pt-plot.cc (Vgnuplot_command_plot, Vgnuplot_command_replot, |
|
3712 Vgnuplot_command_splot, Vgnuplot_command_using, |
|
3713 Vgnuplot_command_with, Vgnuplot_command_title, |
|
3714 Vgnuplot_command_end): New static variables. |
|
3715 (symbols_of_pt_plot): DEFVAR them. |
|
3716 (gnuplot_command_plot, gnuplot_command_replot, |
|
3717 gnuplot_command_splot, gnuplot_command_using, |
|
3718 gnuplot_command_with, gnuplot_command_title, |
|
3719 gnuplot_command_end): New functions. |
|
3720 (open_plot_stream, send_to_plot_stream, tree_plot_command::eval, |
|
3721 subplot_using::print, subplot_style::print, subplot::print, |
|
3722 do_external_plotter_cd, Fgset, Fgshow): Use them instead of the |
|
3723 GPLOT_CMD_PLOT, GPLOT_CMD_REPLOT, GPLOT_CMD_SPLOT, |
|
3724 GPLOT_CMD_USING, GPLOT_CMD_WITH, GPLOT_CMD_TITLE, and |
|
3725 GPLOT_CMD_END macros. |
|
3726 |
3160
|
3727 Fri Feb 27 12:25:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3728 |
|
3729 * help.cc (additional_help_message): Fix www address. |
|
3730 |
|
3731 Tue Feb 24 00:42:59 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3732 |
|
3733 * help.cc (simple_help): Put additional help message first. |
|
3734 (additional_help_message): Add information about web site and |
|
3735 mailing list. |
|
3736 |
3156
|
3737 Fri Feb 20 00:41:06 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3738 |
|
3739 * pt-plot.cc (GPLOT_CMD_REPLOT): Clear before replot. |
|
3740 |
|
3741 * Makefile.in: Better handling of lib flags for linking. |
|
3742 |
|
3743 Thu Feb 19 21:14:30 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3744 |
|
3745 * pt-decl.cc (Vinitialize_global_values): New static variable. |
|
3746 (initialize_global_variables): New function. |
|
3747 (symbols_of_pt_decl): New function. |
|
3748 DEFVAR Vinitialize_global_values and initialize_global_variables. |
|
3749 (tree_global_command::do_init): If initialize_global_variables is |
|
3750 not true and the variable doesn't have an explicit initializer, don't |
|
3751 initialize it. If we are giving it a default value, use the value |
|
3752 of the variable defualt_global_variable_value. |
|
3753 * octave.cc (maximum_braindamage): Set default_global_variable_value |
|
3754 and initialize_global_variables to Matlab-compatible values. |
|
3755 |
|
3756 Wed Feb 18 04:35:31 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3757 |
|
3758 * DLD-FUNCTIONS/besselj.cc: Rename from bessel.cc. |
|
3759 * Makefile.in (DLD_XSRC): Likewise. |
|
3760 |
|
3761 * syscalls.cc (Fvfork): Delete. |
|
3762 |
|
3763 * oct-procbuf.cc: Just use fork. |
|
3764 |
|
3765 * parse.y (feval): Provide version that takes function name |
|
3766 separate from other args. |
|
3767 * parse.h: Declare it. |
|
3768 |
|
3769 * oct-procbuf.cc (octave_procbuf::open): Move declaration of |
|
3770 child_std_end outside of child scope and declare volatile. |
|
3771 |
|
3772 Mon Feb 16 15:04:28 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3773 |
|
3774 * parse.y: Include cstdio, for SEEK_SET. |
|
3775 |
3153
|
3776 Thu Feb 12 22:07:00 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3777 |
|
3778 * system.c: New file. |
|
3779 * Makefile.in (SOURCES): Add it to the list. |
|
3780 |
3148
|
3781 Fri Feb 6 01:23:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3782 |
|
3783 * oct-stream.cc (octave_base_stream::file_number): Rename from fileno. |
|
3784 Change all uses. |
|
3785 |
|
3786 * fsolve.cc (fsolve_option_table): Add missing & to function names. |
|
3787 |
3145
|
3788 Thu Feb 5 02:27:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3789 |
3147
|
3790 * dirfns.cc (Fls): If first attempt at reading process output |
|
3791 fails, sleep once and try again. |
|
3792 * toplev.cc (run_command_and_return_output): Likewise. |
|
3793 |
|
3794 * oct-procbuf.cc (octave_procbuf::open): Use vfork if it is available. |
|
3795 |
|
3796 * syscalls.cc (Fvfork): New function. |
|
3797 |
3145
|
3798 * ov-bool-mat.cc: Only declare assign function if |
|
3799 CXX_NEW_FRIEND_TEMPLATE_DECL is not defined. |
|
3800 |
|
3801 * ov-base.h, ov-bool-mat.h, ov-bool.h, ov-ch-mat.h, ov-complex.h, |
|
3802 ov-cx-mat.h, ov-range.h, ov-re-mat.h, ov-scalar.h: Handle default |
|
3803 args for *_value functions consistently. |
|
3804 |
|
3805 * symtab.cc (maybe_list_cmp_fcn): Declare args as void*, not |
|
3806 void**, then use X_CAST. |
|
3807 |
|
3808 * OPERATORS/op-s-cm.cc: Include mx-cm-s.h. |
|
3809 |
|
3810 * defun-int.h: Include ov-builtin.h, ov-mapper.h, and symtab.h. |
|
3811 (install_builtin_mapper, install_builtin_function, |
|
3812 install_builtin_variable) Use specific types rather than void * in |
|
3813 declaration. |
|
3814 * defun.cc (install_builtin_mapper, install_builtin_function, |
|
3815 install_builtin_variable): Likewise. Eliminate casts. |
|
3816 |
|
3817 * load-save.cc (read_binary_data, read_mat_file_header, |
|
3818 save_binary_data): Use X_CAST, not static_cast. |
|
3819 * unwind-prot.h (unwind_protect::save_ptr): Likewise. |
|
3820 * Map.cc (goodCHptr, index_to_CHptr, CHptr_to_index): Likewise. |
|
3821 * dynamic-ld.cc (octave_dlopen_dynamic_loder::resolve_reference): |
|
3822 Likewise. |
|
3823 |
|
3824 * pt-mat.cc (tm_const::operator bool ()): |
|
3825 (tm_row_const::operator bool ()): Likewise. |
|
3826 * oct-stream.cc (printf_value_cache::operator bool ()): Likewise. |
|
3827 (scanf_format_list::operator bool ()): Likewise. |
|
3828 (printf_format_list::operator bool ()): Likewise. |
|
3829 (octave_stream::operator bool ()): Likewise. |
|
3830 |
|
3831 Wed Feb 4 13:08:29 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3832 |
|
3833 * DLD-FUNCTIONS/minmax.cc: Include cmath, not oct-math.h. |
|
3834 |
|
3835 * syscalls.cc (Fdup2): Convert stream to actual system file id. |
|
3836 |
|
3837 * oct-stream.cc (octave_base_stream::fileno, octave_stream::fileno): |
|
3838 New functions. |
|
3839 |
3141
|
3840 Tue Feb 3 00:24:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3841 |
|
3842 * defaults.cc (exec_path): Append Vbin_dir to std_path. |
|
3843 |
|
3844 * octave.cc (initialize_pathsearch): Set TEXMFDBS, not TEXMF. |
|
3845 Look for OCTAVE_DB_PATH in environment. |
|
3846 Simplify using Vdata_dir and Vlibexec_dir. |
|
3847 |
|
3848 * defaults.h.in (Vdata_dir, Vlibexecdir): Declare new vars. |
|
3849 defaults.cc: Define them. |
|
3850 (set_default_data_dir, set_default_libexecdir): New functions. |
|
3851 (install_defaults): Call them. |
|
3852 |
|
3853 * defaults.h.in (OCTAVE_LIBEXECDIR): Define. |
|
3854 |
|
3855 Mon Feb 2 02:43:16 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3856 |
|
3857 * Makefile.in (install, uninstall): Use $(octlibdir), not $(libdir). |
|
3858 Use mk-libdir-link. |
|
3859 |
|
3860 * defaults.h.in (OCTAVE_OCTLIBDIR): Substitute value. |
|
3861 (Vlib_dir): Delete declaration. |
|
3862 * defaults.cc (Vlib_dir): Delete. |
|
3863 (set_default_lib_dir): Delete. |
|
3864 (install_defaults): Don't call set_default_lib_dir. |
|
3865 (set_default_info_prog): If oct_info_prog is empty, set default to |
|
3866 "info" -- we expect it to be somewhere in the user's path. |
|
3867 |
|
3868 * defun.h (DEFCONST, DEFCONSTX): Eliminate inst_as_fcn and chg_fcn |
|
3869 args. Always pass true for inst_as_fcn and 0 for chg_fcn to |
|
3870 DEFVAR when creating built-in values like `e' or `stderr' that can |
|
3871 be redefined. Change all uses. |
|
3872 |
|
3873 * help.cc (Ftype): Handle script files too. |
|
3874 (Fwhich): Likewise. |
|
3875 |
3136
|
3876 Sat Jan 31 00:00:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3877 |
|
3878 * ov-ch-mat.cc (octave_char_matrix::is_true): Make it work. |
|
3879 * ov-str-mat.h, ov-str-mat.cc (octave_char_matrix_str::is_true): |
|
3880 Delete. |
|
3881 |
|
3882 * load-save.cc (read_ascii_data): Allow strings of length 0. |
|
3883 If we don't find data on the first call, fail with error message. |
|
3884 (do_load): Pass count of items read to read_ascii_data. |
|
3885 Allow `load foo xyz' to work when foo contains only numbers. |
|
3886 |
|
3887 Fri Jan 30 23:46:42 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3888 |
|
3889 * ov-str-mat.h (octave_char_matrix_str::all): Delete. |
|
3890 (octave_char_matrix_str::any): Delete. |
|
3891 * ov-ch-mat.h (octave_char_matrix::all, octave_char_matrix::any): |
|
3892 Call charMatrix::all, charMatrix::any. |
|
3893 |
|
3894 Thu Jan 29 16:25:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3895 |
|
3896 * load-save.cc (read_mat_binary_data): Handle third digit of MOPT |
|
3897 as flag indicating row or column major ordering. |
|
3898 |
3131
|
3899 Wed Jan 28 00:18:17 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3900 |
|
3901 * DLD-FUNCTIONS/dassl.cc (lsode_option_table): |
|
3902 Add missing & to function names. |
|
3903 * DLD-FUNCTIONS/lsode.cc (lsode_option_table): Likewise. |
|
3904 * DLD-FUNCTIONS/quad.cc (quad_option_table): Likewise. |
|
3905 |
|
3906 * Makefile.in (oct-gperf.h): Add -G option to gperf. |
|
3907 |
|
3908 * load-save.cc (get_save_type): Add `UL' and `L' suffixes to large |
|
3909 constant values. For LS_INT, use <= and >= for comparison. |
|
3910 |
|
3911 Mon Jan 26 13:17:59 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3912 |
|
3913 * ov-usr-fcn.cc (Vmax_recursion_depth): New static variable. |
|
3914 (max_recursion_depth): New fucnction |
|
3915 (symbols_of_ov_usr_fcn): DEFVAR max_recursion_depth. |
|
3916 (octave_user_function::do_index_op): Check Vmax_recursion_depth. |
|
3917 |
3130
|
3918 Thu Jan 22 13:45:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3919 |
|
3920 * dynamic-ld.cc (make_dynamic_loader): Fix typo. |
|
3921 |
|
3922 Tue Jan 20 17:02:19 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3923 |
|
3924 * variables.cc (Fexist): If local symbol is undefined, check |
|
3925 global table. |
|
3926 |
|
3927 * pr-output.cc (pr_max_internal): Initial value for result is |
|
3928 -DBL_MAX, not DBL_MIN. |
|
3929 |
3125
|
3930 Thu Jan 8 11:54:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3931 |
|
3932 * xpow.cc (elem_xpow): If second arg of pow is complex, make sure |
|
3933 first arg is also complex. |
|
3934 |
|
3935 * symtab.cc (symbol_table::rename): Properly insert new item at |
|
3936 the front of the list to avoid losing the rest of the items. |
|
3937 |
|
3938 Thu Dec 11 23:30:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3939 |
|
3940 * variables.cc (Fclear): Increment index to skip -x arg. |
|
3941 |
3124
|
3942 Tue Dec 9 02:45:35 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3943 |
|
3944 * Makefile.in (INCLUDES): Don't forget Pix.h. |
|
3945 |
|
3946 * BaseSLList.cc: Don't include nonstandard libg++ header files. |
|
3947 |
3119
|
3948 Sun Nov 30 14:58:56 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3949 |
3124
|
3950 * pr-output.cc: Include cmath, not oct-math. |
|
3951 * sysdep.cc: Likewise. |
|
3952 |
3119
|
3953 * DLD-FUNCTIONS/bessel.cc: New file. |
|
3954 * Makefile.in (DLD_XSRC): Add it to the list. |
|
3955 |
3113
|
3956 Thu Nov 27 23:28:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3957 |
|
3958 * lex.l (handle_string): Constructor for string class takes |
|
3959 (size_t, char) args, not (char, size_t). |
|
3960 |
3111
|
3961 Wed Nov 26 00:39:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3962 |
|
3963 * Makefile.in (OCTAVE_LIBS): Include $(SPECIAL_MATH_LIB) just |
|
3964 ahead of -lcruft. |
|
3965 |
3110
|
3966 Thu Nov 20 15:16:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3967 |
|
3968 * octave.cc (maximum_braindamage): Bind implicit_num_to_str_ok to 1. |
|
3969 * pt-mat.cc (Vimplicit_num_to_str_ok): New static variable. |
|
3970 (implicit_num_to_str_ok): New function. |
|
3971 (symbols_of_pt_mat): DEFVAR implicit_num_to_str_ok. |
|
3972 (tm_row_const::some_str): New data member. |
|
3973 (tm_row_const::some_strings_p): New function. |
|
3974 (tm_row_const::init): Set some_str. |
|
3975 (tm_const::some_str): New data member. |
|
3976 (tm_const::some_strings_p): New function. |
|
3977 (tm_const::init): Set some_str. |
|
3978 (tree_matrix::eval): If Vimplicit_num_to_str_ok is true and some |
|
3979 of the elements are strings, force a string conversion before |
|
3980 returning. |
|
3981 |
|
3982 * parse.y (fold, finish_colon_expression, finish_matrix): |
|
3983 If an error occurs, return the original expression. |
|
3984 Use unwind_protect to restore error_state. |
|
3985 |
|
3986 * ov-ch-mat.h (octave_char_matrix::convert_to_str): Result is |
|
3987 char_matrix_str, not just char_matrix. |
|
3988 |
3107
|
3989 Wed Nov 19 02:05:40 1997 Mumit Khan <khan@dhaka.xraylith.wisc.edu> |
|
3990 |
|
3991 * DLD-FUNCTIONS/filter.cc: Don't include extern template decls if |
3109
|
3992 CXX_NEW_FRIEND_TEMPLATE_DECL is defined. |
3107
|
3993 * ov-cx-mat.cc: Likewise. |
|
3994 * ov-re-mat.cc: Likewise. |
|
3995 * ov-str-mat.cc: Likewise. |
|
3996 |
|
3997 * ov-cx-mat.h (octave_complex_matrix::decrement, |
|
3998 octave_complex_matrix): Use explicit Complex constructor. |
|
3999 |
|
4000 Wed Nov 19 00:08:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4001 |
|
4002 * pt-decl.cc (tree_global_command::do_init): Initialize global |
|
4003 values to `[]'. Only perform explicit initialization once. |
|
4004 |
3103
|
4005 Tue Nov 18 04:27:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4006 |
3105
|
4007 * pr-output.cc (Vfixed_point_format): New variable. |
|
4008 (fixed_point_format): New fucntion. |
|
4009 (symbols_of_pr_output): Add DEFVAR for fixed_point_format. |
|
4010 (set_real_matrix_format): Handle fixed point format |
|
4011 (set_complex_matrix_format): Handle fixed point format |
|
4012 (set_format): New arg, scale in Matrix, ComplexMatrix, Range versions. |
|
4013 (pr_scale_header): New function. |
|
4014 (octave_print_internal): Handle fixed point format in Matrix, |
|
4015 ComplexMatrix, and Range versions. |
|
4016 * octave.cc (maximum_braindamage): Set fixed_point_format to 1.0. |
|
4017 |
3103
|
4018 * utils.cc (do_string_escapes): Move here, from lex.l. |
|
4019 Arg is now const string& instead of char*. |
|
4020 Return new string object instead of modifying arg in place. |
|
4021 (Fdo_string_escapes): New function. |
|
4022 * lex.l (handle_string): Use new version of do_string_escapes. |
3105
|
4023 |
|
4024 * lex.l (Vbackslash_escapes): Delete. |
|
4025 (backslash_escapes): Delete. |
|
4026 (do_string_escapes): Undo previous change. |
|
4027 (eat_whitespace, eat_continuation): Undo previous change. |
|
4028 (handle_string): Undo previous change. |
|
4029 (symbols_of_lex): Undo previous change. |
|
4030 * octave.cc (maximum_braindamage): Undo previous change. |
3103
|
4031 |
3096
|
4032 Fri Nov 14 01:53:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4033 |
3100
|
4034 * parse.y (eval_string (const string&, bool, int&, int)): No |
|
4035 longer static. |
|
4036 * parse.h: Provide declaration. |
|
4037 * input.cc (get_user_input (const octave_value_list&, bool, int)): |
|
4038 New arg, nargout. Pass it to eval_string. |
|
4039 (keyboard): Pass nargout = 0 to get_user_input. |
|
4040 (input): Pass nargout to get_user_input. |
|
4041 |
3098
|
4042 * input.cc (get_user_input (const octave_value_list&, bool)): |
3100
|
4043 Return octave_value_list() if user enters `quit', `exit', or `return'. |
3098
|
4044 If debugging, let eval_string handle the printing chores and |
|
4045 reset error_state before asking for more input. |
|
4046 |
|
4047 * input.cc (Fkeyboard): Unconditionally turn on history here. |
|
4048 |
3096
|
4049 * lex.l (have_continuation, have_ellipsis_continuation): Declare |
|
4050 arg as bool, not int. Change callers. |
|
4051 |
|
4052 * lex.l (Vbackslash_escapes): New static variable. |
|
4053 (backslash_escapes): New function. |
|
4054 (do_string_escapes): Return immediately if ! Vbackslash_escapes. |
|
4055 (eat_whitespace, eat_continuation): Only call have_continuation if |
|
4056 Vbackslash_escapes. |
|
4057 (handle_string): Backslash is only special if Vbackslash_escapes. |
|
4058 (symbols_of_lex): Add DEFVAR for backslash_escapes. |
|
4059 * octave.cc (maximum_braindamage): Set backslash_escapes to 0. |
|
4060 |
3095
|
4061 Thu Nov 13 16:20:40 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4062 |
3096
|
4063 * variables.cc (Fexist): Also return 2 if NAME is a regular file |
|
4064 somewhere in the LOADPATH. |
|
4065 |
3095
|
4066 * data.cc (sumsq): Fix doc string. |
|
4067 |
|
4068 * parse.y (Fsource): Call parse_fcn_file, not parse_and_execute. |
|
4069 |
3092
|
4070 Tue Oct 7 16:51:01 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4071 |
|
4072 * defun-int.h (DEFINE_FUN_INSTALLER_FUN): Set installed to true |
|
4073 after installing the function. |
|
4074 |
3088
|
4075 Thu Sep 25 10:17:26 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4076 |
|
4077 * DLD-FUNCTIONS/filter.cc (Ffilter): Return second output value |
|
4078 even when called with only 3 arguments. |
|
4079 |
3086
|
4080 Mon Sep 22 16:44:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4081 |
|
4082 * DLD-FUNCTIONS/rand.cc (do_rand): Print error if first of two |
|
4083 args is a string but doesn't match "seed". |
3088
|
4084 (Frand, Frandn): Fix doc string. |
3086
|
4085 |
3081
|
4086 Mon Aug 25 10:42:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4087 |
|
4088 * input.cc (get_user_input): Return an empty string if the user |
|
4089 just types RET. |
|
4090 |
3079
|
4091 Thu Jul 31 22:59:04 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4092 |
|
4093 * lex.l <TEXT_FCN>: Ensure that we handle words that begin with |
|
4094 single or double quotes as strings. |
|
4095 |
3074
|
4096 Thu Jul 17 13:06:48 1997 Klaus Gebhardt <gebhardt@crunch.ikp.physik.th-darmstadt.de> |
|
4097 |
|
4098 * DLD-FUNCTIONS/rand.cc (Frand): Use F77_XFCN to call getsd, |
|
4099 setsd, setall, setcgn, dgenunf, and dgennor since they can call |
|
4100 XSTOPX. |
|
4101 |
3072
|
4102 Mon Jul 14 12:54:23 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4103 |
|
4104 * dynamic-ld.cc (octave_dynamic_loader::load_fcn_from_dot_oct_file): |
|
4105 If first attempt to load function fails, prepend and underscore |
|
4106 and try again. |
|
4107 |
|
4108 * Makefile.in (install-inc): If defaults.h, oct-conf.h, or |
|
4109 oct-gperf.h don't exist in the current directory, look in $(srcdir). |
|
4110 |
3068
|
4111 Mon Jul 7 21:14:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4112 |
|
4113 * DLD-FUNCTIONS/qr.cc (Fqr): Correctly handle nargout == 0. |
|
4114 |
3067
|
4115 Wed Jul 2 16:47:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4116 |
|
4117 * matherr.c: New file. Move matherr function here. |
|
4118 * sysdep.cc: From here. |
|
4119 * Makefile.in (DIST_SRC): Add matherr.c to the list. |
|
4120 |
|
4121 * error.cc (handle_message): Avoid bug in g++ snapshot. |
|
4122 |
3065
|
4123 Thu Jun 26 22:04:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4124 |
|
4125 * utils.cc (file_in_path): Add default load path to PATH arg if |
|
4126 it begins or ends with a colon. |
|
4127 |
3060
|
4128 Wed Jun 25 13:31:06 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4129 |
|
4130 * oct-lvalue.h (octave_lvalue::struct_elt_ref): Ensure val is unique. |
|
4131 |
|
4132 Fri Jun 20 12:33:35 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4133 |
|
4134 * toplev.cc (cmd_death_handler): New function. |
|
4135 (run_command_and_return_output): Insert pid of command in |
|
4136 octave_child_list along with pointer to cmd_death_handler so we |
|
4137 can get the exit status without having to block SIGCHLD. |
|
4138 (cleanup_iprocstream): Remove pid of command from octave_child_list. |
|
4139 |
3053
|
4140 Sun Jun 15 16:11:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4141 |
3054
|
4142 * OPERATORS/op-cs-s.cc (ldiv): Doh, v1 is complex, v2 is real. |
|
4143 |
3053
|
4144 * Makefile.in (DISTFILES): Add mkops to the list. |
|
4145 (dist): Correctly link files in DLD-FUNCTIONS, OPERATORS, and |
|
4146 TEMPLATE-INST subdirectories. |
|
4147 |
3040
|
4148 Fri Jun 6 04:30:57 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4149 |
3042
|
4150 * DLD-FUNCTIONS/npsol.cc, DLD-FUNCTIONS/qpsol.cc, |
|
4151 DLD-FUNCTIONS/fsqp.cc: Delete. |
|
4152 * Makefile.in (DLD_XSRC): Remove them from the list. |
|
4153 |
3040
|
4154 * utils.cc (search_path_for_file): New arg, do_tilde_expansion. |
|
4155 If TRUE, perform tilde expansion on path before searching. |
|
4156 (file_in_path): Call search_path_for_file with do_tilde_expansion |
|
4157 set to false, since we've already performed tilde expansion on the |
|
4158 load path. |
|
4159 |
|
4160 * defaults.cc (loadpath): Perform tilde expansion here. |
|
4161 |
3029
|
4162 Thu Jun 5 01:42:39 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4163 |
3034
|
4164 * Makefile.in: Make building of static library optional. |
3036
|
4165 (liboctave.$(SHLEXT_VER)): Add $(SONAME_FLAGS) to command. |
3034
|
4166 |
3033
|
4167 * dynamic-ld.cc (octave_shl_load_dynamic_loader::resolve_reference): |
|
4168 Call shl_findsym with type set to TYPE_UNDEFINED. |
|
4169 |
3029
|
4170 * Makefile.in (stamp-picdir): Delete. |
|
4171 (pic): New target. Don't worry so much about creating pic |
|
4172 directory only when it is really needed. |
|
4173 (stamp-interp): Delete. |
|
4174 (libraries): New target. Depend on shared library directly. |
|
4175 |
3024
|
4176 Wed Jun 4 00:09:42 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4177 |
|
4178 * octave.cc (main): Call dir_path::set_program_name here. |
|
4179 |
3021
|
4180 Tue Jun 3 16:47:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4181 |
3022
|
4182 * variables.cc (symbol_out_of_date): Make it work again. |
|
4183 |
3021
|
4184 * parse.y (parse_and_execute): Move here from toplev.cc |
|
4185 (default_eval_print_flag): Likewise. |
|
4186 (safe_fclose): Likewise. |
|
4187 (eval_string): Likewise. |
|
4188 (Fsource): Likewise. |
|
4189 (Ffeval): Likewise. |
|
4190 (feval): Likewise. |
|
4191 (Feval): Likewise. |
|
4192 (symbols_of_parse): Define default_eval_print_flag here instead of |
|
4193 in varaibles.cc. |
|
4194 (looks_like_octave_copyright): Move here from variables.cc |
|
4195 (gobble_leading_whitespace): Likeiwse. |
|
4196 (is_function_file): Likewise. |
|
4197 (restore_input_stream): Likewise. |
|
4198 (parse_fcn_file): Likewise. |
|
4199 (load_fcn_from_file): Likewise. |
|
4200 (get_help_from_file): Likewise. |
|
4201 |
|
4202 * toplev.cc (syms_of_toplev): Define argv, program_name, and |
|
4203 program_invocation_name here instead of in variables.cc. |
|
4204 |
|
4205 * parse.h (line_editing): Move here from toplev.h. Now bool, not int. |
|
4206 (reading_startup_message_printed) Likewise. |
|
4207 (input_from_startup_file): Likewise. |
|
4208 (input_from_command_line_file): Likewise. |
|
4209 |
|
4210 * load-save.cc: Use bool instead of int where appropriate. |
|
4211 |
|
4212 * input.h (enum echo_state): Move here from variables.h. |
|
4213 (Vecho_executing_commands): Likewise. Now bool, not int. |
|
4214 * input.cc (echo_executing_commands): Move here from variables.cc. |
|
4215 (symbols_of_input): Define echo_executing_commands here instead of |
|
4216 in variables.cc. |
|
4217 |
|
4218 * octave.cc (program_invocation_name): Don't define. |
|
4219 (intern_argv): Don't set program_invocation_name here. |
|
4220 (main): Call octave_env::set_program_name here, not in intern_argv. |
|
4221 |
|
4222 * toplev.cc (quitting_gracefully): Move here from octave.h and |
|
4223 make static bool instead of extern int. |
|
4224 |
|
4225 * error.cc (bind_global_error_variable, clear_global_error_variable): |
|
4226 Move here from variables.cc. |
|
4227 (symbols_of_error): Define error_text here instead of in variables.cc. |
|
4228 |
|
4229 * pager.cc (write_to_diary_file): Now bool, not int. |
|
4230 (really_flush_to_pager): Likewise. |
|
4231 (flushing_to_pager): Likewise. |
|
4232 * sighandlers.h (can_interrupt): Likewise. |
|
4233 * error.h (buffer_error_messages): Likewise. |
|
4234 * oct-hist.h (input_from_tmp_history_file, Vsaving_history): Likewise. |
|
4235 * input.h (forced_interactive): Likewise. |
|
4236 (get_input_from_eval_string): Likeiwse. |
|
4237 (reading_script_file): Likeiwse. |
|
4238 (reading_fcn_file): Likeiwse. |
|
4239 (interactive): Likewise. |
|
4240 |
|
4241 * unwind-prot.cc (saved_variable::saved_variable (bool *, bool)): |
|
4242 Set type_tag to boolean, not int. |
|
4243 |
3016
|
4244 Mon Jun 2 00:40:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4245 |
|
4246 * variables.h (Octave_builtin_fcn): Delete typedef. |
|
4247 |
|
4248 * help.cc (make_name_list): Move here from variables.cc. |
|
4249 (keyword_help, names): Now static. |
|
4250 (struct help_list): Move declaration here from help.h. |
|
4251 |
|
4252 * oct-hist.cc (Vhistory_file, Vhistory_size, Vsaving_history): |
|
4253 Move here from variables.cc. |
|
4254 (symbols_of_oct_hist): New function. |
|
4255 |
|
4256 * version.h: Protect against multiple inclusion. |
|
4257 |
|
4258 * defun.cc (check_version): New function. |
|
4259 * defun-int.h (DEFINE_FUN_INSTALLER_FUN): Use it. |
|
4260 |
|
4261 * help.h, help.cc (additional_help_message): Now extern. |
|
4262 (operator_help): Now static. |
|
4263 |
|
4264 * defun.cc (print_usage): Move here from help.cc |
|
4265 * DLD-FUNCTIONS/*.cc, data.cc, dirfns.cc, file-io.cc, input.cc, |
|
4266 load-save.cc, octave.cc, ov-list.cc, ov-typeinfo.cc, |
|
4267 ov-usr-fcn.cc, pager.cc, pr-output.cc, pt-plot.cc, strfns.cc, |
|
4268 syscalls.cc, sysdep.cc, utils.cc, toplev.cc: |
|
4269 Don't include help.h. |
|
4270 |
|
4271 * TEMPLATE-INST/Array-sym.cc: New file. |
|
4272 |
|
4273 * load-save.cc (do_load): Don't use ostream::form. |
|
4274 * pr-output.cc: Likewise, at least where it is easy to do so. |
|
4275 * oct-stream.cc: Ditto. |
|
4276 |
|
4277 * symtab.h (symbol_record::symbol_def::rows): New function. |
|
4278 (symbol_record::symbol_def::columns): Ditto. |
|
4279 (symbol_record::symbol_def::type_name): Ditto. |
|
4280 (symbol_record::rows): Ditto |
|
4281 (symbol_record::columns): Ditto |
|
4282 (symbol_record::type_name): Ditto |
|
4283 |
|
4284 * symtab.h, symtab.cc (symbol_record::hides_fcn): New function. |
|
4285 (symbol_record::hides_builtin): Ditto. |
|
4286 (symbol_record::print_symbol_info_line): Ditto. |
|
4287 (symbol_table::long_list): Delete. |
|
4288 (symbol_table::symbol_list): New function. |
|
4289 (symbol_table::maybe_list): Delete argc arg. |
|
4290 (symbol_table::name_list): Rename from symbol_table::list. |
|
4291 Change all callers. |
|
4292 |
|
4293 * symtab.h, symtab.cc (class symbol_record_info): Delete. |
|
4294 |
|
4295 * symtab.cc (matches_patterns): Use vector form of glob_match. |
|
4296 |
|
4297 Sun Jun 1 14:04:26 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4298 |
|
4299 * pt-check.h, pt-check.cc: New files, for semantic checking of |
|
4300 parse trees. |
|
4301 |
|
4302 * symtab.h (class symbol_def): Now nested in symbol_record class. |
|
4303 (enum TYPE): Move from symbol_def to symbol record class. Change |
|
4304 all uses. |
|
4305 |
|
4306 * symtab.h, symtab.cc (symbol_table::maybe_list): New function, |
|
4307 from variables.cc. Change all uses. |
|
4308 |
|
4309 * pt-idx.h (tree_identifier::lvalue_ok): New function. |
|
4310 * pt-id.h (tree_index_expression::lvalue_ok): Likewise. |
|
4311 * pt-indir.h (tree_indirect_ref::lvalue_ok): Likewise. |
|
4312 |
|
4313 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_oct_obj): Delete. |
|
4314 * pt-walk.h (tree_walker::visit_oct_obj): Delete declaration. |
|
4315 |
|
4316 * lex.h (class lexical_feedback): Delete maybe_screwed_again. |
|
4317 * lex.l (lexical_feedback::init): Don't set it. |
|
4318 |
|
4319 Fri May 30 16:07:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4320 |
|
4321 * mappers.cc: Include <cfloat> here. |
|
4322 |
|
4323 Tue May 27 10:08:43 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4324 |
|
4325 * toplev.cc (eval_string): Don't index tmp if it is empty. |
|
4326 |
|
4327 Sat May 24 00:18:41 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4328 |
|
4329 * load-save.cc (valid_identifier): Move here and make static. |
|
4330 * symtab.h, symtab.cc (valid_identifier): Delete declaration and |
|
4331 definition. |
|
4332 |
|
4333 Fri May 23 22:54:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4334 |
|
4335 * symtab.h (symbol_def::symbol_def): Use initializer list instead |
|
4336 of calling init_state. |
|
4337 (symbol_def::init_state): Delete. |
|
4338 |
|
4339 * symtab.cc (symbol_table::print_stats): New function. |
|
4340 * variables.cc (F__dump_symtab_info__): New function. |
|
4341 |
|
4342 * symtab.h, symtab.cc (symbol_table::hash): Return masked value. |
|
4343 (symbol_table::table_size): New data member. |
|
4344 (symbol_table::symbol_table): Set size of table in constructor. |
|
4345 (HASH_TABLE_SIZE): Replace uses with table_size. |
|
4346 (HASH_MASK): Delete. |
|
4347 * variables.cc (initialize_symbol_tables): Set top-level and |
|
4348 global symbol table sizes here. |
|
4349 |
2994
|
4350 Thu May 22 13:32:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4351 |
|
4352 * dynamic-ld.cc (octave_shl_load_dynamic_loader::resolve_reference): |
|
4353 Call shl_findsym with type set to TYPE_PROCEDURE. Pass the |
|
4354 address of the pointer we want to define. |
|
4355 |
2993
|
4356 Wed May 21 16:30:25 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4357 |
|
4358 * DLD-FUNCTIONS/time.cc (extract_tm): Avoid memory leak in dealing |
|
4359 with time zone. |
|
4360 |
|
4361 * Makefile.in (install-in): Use new mk-includedir-link macro. |
|
4362 (install-lib): Install in $octlibdir. Use new mk-libdir-link macro. |
|
4363 |
|
4364 Tue May 20 01:24:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4365 |
|
4366 * ov-list.cc (Flist): Rename from Fmake_list. |
|
4367 |
|
4368 Mon May 19 14:45:58 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4369 |
|
4370 * octave.cc (maximum_braindamage): Set default_eval_print_flag to 0. |
|
4371 |
|
4372 Sat May 17 16:32:23 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4373 |
|
4374 * defaults.cc (set_default_editor): Default is now Emacs, not vi. |
|
4375 |
2984
|
4376 Fri May 16 00:07:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4377 |
2991
|
4378 * pt-idx.cc (tree_index_expression::name): New function. |
|
4379 |
|
4380 * pt.cc (tree::str_print_code): New file, new convenience function. |
|
4381 * pt-arg-list.cc (tree_argument_list::get_arg_names): Use it. |
|
4382 * pt-assign.cc (tree_simple_assignment::rvalue): Likewise. |
|
4383 (tree_multi_assignment::rvalue): Likewise. |
|
4384 |
2990
|
4385 * pt-colon.h (tree_colon_expression::save_base): New data memmber. |
|
4386 (tree_colon_expression::preserve_base): New function. |
|
4387 * parse.y (finish_colon_expression): When converting to a simple |
|
4388 expression, be sure to delete the original colon expression but |
|
4389 not the base value. |
|
4390 |
|
4391 * pt-mat.cc (tree_matrix::~tree_matrix): Actually do something. |
|
4392 |
2987
|
4393 * pt-all.h: New file. |
|
4394 * parse.y, lex.l, pt-pr-code.cc: Use it. |
|
4395 |
|
4396 * pt.h: Rename from pt-base.h. |
|
4397 |
|
4398 * All parse tree classes: Add private copy constructors and |
|
4399 assignment operators to prevent copying. |
|
4400 |
|
4401 * pt-base.cc: Delete. |
|
4402 |
2985
|
4403 * unwind-prot.h, unwind-prot.cc: Make a bit more object-oriented. |
|
4404 Change all uses of unwind_protect stuff to match. |
|
4405 |
|
4406 * pt-jump.h, pt-jump.cc (breaking, continuing, returning): |
|
4407 Make these flags static members of the corresponding class. |
|
4408 Change all uses. |
|
4409 |
2984
|
4410 * pt-assign.cc (tree_simple_assignment_expression::eval, |
|
4411 tree_multi_assignment_expression::eval): Clear lvalue index here. |
|
4412 |
|
4413 * oct-lvalue.cc (octave_lvalue::assign): Don't clear index here. |
|
4414 * oct-lvalue.h (octave_lvalue::clear_index): New function. |
|
4415 (octave_lvalue::set_index): Rename from octave_lvalue::index. |
|
4416 Change all callers. |
|
4417 |
2976
|
4418 Thu May 15 11:48:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4419 |
2983
|
4420 * pt-select.h, pt-select.cc (class tree_if_command_list, |
|
4421 class tree_if_clause, class tree_switch_case_list, |
|
4422 class tree_switch_case): Move here from pt-misc.h, pt-misc.cc. |
|
4423 * pt-decl.h, pt-decl.cc (class tree_decl_init_list, |
|
4424 class tree_decl_elt): Move here from pt-mist.h, pt-misc.cc |
|
4425 |
|
4426 * pt-arg-list.h, pt-stmt.h: New files, extracted from pt-misc.h. |
|
4427 * pt-arg-list.cc, pt-stmt.cc: New files, extracted from pt-misc.cc. |
|
4428 |
|
4429 * pt-decl.h, pt-except.h, pt-jump.h, pt-loop.h, pt-select.h: |
|
4430 New files, extraced from pt-cmd.h. |
|
4431 * pt-decl.cc, pt-except.cc, pt-jump.cc, pt-loop.cc, pt-select.cc: |
|
4432 New files, extraced from pt-cmd.cc. |
|
4433 |
2980
|
4434 * pt-unop.h, pt-binop.h, pt-colon.h, pt-idx.h, pt-assign.h: |
|
4435 New files, extracted from pt-exp.h |
|
4436 * pt-unop.cc, pt-binop.cc, pt-colon.cc, pt-idx.cc, pt-assign.cc: |
|
4437 New files, extracted from pt-exp.cc |
|
4438 * pt-exp.h, pt-exp.cc: Rename from pt-exp-base.h, pt-exp-base.cc. |
|
4439 |
2979
|
4440 * oct-lvalue.h: Rename from oct-var-ref.h. Rename class from |
|
4441 octave_variable_reference to octave_lvalue. Change all uses. |
|
4442 * oct-lvalue.cc: Rename from oct-var-ref.cc. |
|
4443 |
2978
|
4444 * variables.cc (bind_ans): Only bind ans and print result if value |
|
4445 is defined. |
|
4446 |
2976
|
4447 * defun.cc: New file. Move functions for installing objects in |
|
4448 the symbol table here from variables.cc. |
|
4449 |
|
4450 * oct-obj.h, oct-obj.cc: Add custom allocator, fwiw. |
|
4451 |
|
4452 * toplev.cc (main_loop): Correctly increment command number. |
|
4453 |
|
4454 * TEMPLATE-INST/SLList-tm.cc: Don't instantiate lists of pointers |
|
4455 to tree_matrix_row objects. |
|
4456 * TEMPLATE-INST/SLList-misc.cc: Do instantiate lists of pointers |
|
4457 to tree_argument_list objects. |
|
4458 |
|
4459 * DLD-FUNCTIONS/dassl.cc: Update to use new octave_function |
|
4460 interface to user-supplied functions. |
|
4461 * DLD-FUNCTIONS/fsolve.cc: Likewise. |
|
4462 * DLD-FUNCTIONS/lsode.cc: Likewise. |
|
4463 * DLD-FUNCTIONS/npsol.cc: Likewise. |
|
4464 * DLD-FUNCTIONS/quad.cc: Likewise. |
|
4465 |
|
4466 * dynamic-ld.h, dynamic-ld.cc (builtin_fcn_installer typedef): |
|
4467 Rename from builtin_fcn. |
|
4468 (octave_dynamic_loader::load_fcn_from_dot_oct_file): |
|
4469 Simplify by using new installer function defined by DEFUN_DLD. |
|
4470 |
|
4471 * defun-dld.h (DEFUN_DLD): Use DEFINE_FUN_INSTALLER_FUN instead of |
|
4472 DEFINE_FUN_STRUCT_FUN. |
|
4473 * defun.h (DEFUN_MAPPER): Use DEFUN_MAPPER_INTERNAL. |
|
4474 * defun-int.h (DEFVAR_INTERNAL): Rename from DEFVAR_INT and move |
|
4475 here from defun.h. Change all uses. |
|
4476 (DEFUN_MAPPER_INTERNAL): New macro. |
|
4477 (DEFINE_FUN_INSTALLER_FUN): New macro to define function that the |
|
4478 dynamic loader calls to do all the work of installing a new function. |
|
4479 (DEFINE_FUN_STRUCT_FUN): Delete. |
|
4480 |
|
4481 * parse.y: Rewrite to handle more general expressions. |
|
4482 * lex.l: Corresponding changes. |
|
4483 |
|
4484 * pt-walk.h, pt-pr-code.h, pt-pr-code.cc: Cope with new parse tree |
|
4485 object structure. |
|
4486 |
|
4487 * pt-misc.cc (class tree_for_command): Split into |
|
4488 tree_simple_for_command and tree_complex_for_command classes. |
|
4489 |
|
4490 * pt-misc.h, pt-misc.cc (tree_statement::eval): Handle identifier |
|
4491 lookup and printing and binding ans here. |
|
4492 (tree_statement_list::eval): Simplify. |
|
4493 (tree_argument_list::all_elements_are_constant): New function. |
|
4494 (class tree_decl_elt): Now contains id and expr, not an assignment |
|
4495 expression. |
|
4496 |
|
4497 * pt-exp-base.h pt-exp.h pt-id.h pt-indir.h pt-mat.h pt-const.h, |
|
4498 pt-exp-base.cc pt-exp.cc pt-id.cc pt-indir.cc pt-mat.cc pt-const.cc: |
|
4499 Replace eval functions with rvalue and lvalue functions. |
|
4500 Change all uses. |
|
4501 (lvalue_ok, rvalue_ok): New functions, for future compile-time |
|
4502 semantic checks. |
|
4503 |
|
4504 * oct-var-ref.h (is_defined, is_map): New functions. |
|
4505 |
|
4506 * pt-exp.h (class tree_oct_obj): Delete. |
|
4507 |
|
4508 * variables.cc (extract_function, is_valid_function): Return |
|
4509 pointer to octave_function, not octave_symbol. |
|
4510 (link_to_global_variable): Rewrite. Handle errors in |
|
4511 symbol_record::mark_as_linked_to_global. |
|
4512 |
|
4513 * symtab.h, symtab.cc (class symbol_def, class symbol_record): |
|
4514 Symbols are now stored as octave_value objects only. |
|
4515 |
|
4516 * ov.cc (install_types): Register function types here. |
|
4517 * ov-fcn.h, ov-fcn.cc, ov-builtin.h, ov-builtin.cc, ov-mapper.h, |
|
4518 ov-mapper.cc, ov-usr-fcn.h, ov-usr-fcn.cc: New classes for |
|
4519 functions as values. |
|
4520 * ov.h (class octave_value): Don't derive from octave_symbol. |
|
4521 * oct-fcn.h, oct-fcn.cc, oct-builtin.h, oct-builtin.cc, |
|
4522 oct-mapper.h, oct-mapper.cc, oct-usr-fcn.h, oct-usr-fcn.cc, |
|
4523 oct-sym.h, oct-sym.cc: Delete. |
|
4524 |
2963
|
4525 Sun May 11 17:51:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4526 |
|
4527 * help.cc (Ftype): Make it work again for functions. |
|
4528 |
|
4529 * pt-pr-code.cc (tree_print_code::print_parens): New function. |
|
4530 Use it in other tree_print_code functions to handle printing all |
|
4531 the parens that we found when parsing the expression, not just one |
|
4532 pair. |
|
4533 * pt-exp-base.h (tree_expression::paren_count): Rename from |
|
4534 is_in_parens. |
|
4535 * parse.y (maybe_warn_assign_as_truth_value): Use new name. |
|
4536 |
|
4537 * parse.y (constant): New non-terminal. |
|
4538 (simple_expr1): Use it. |
|
4539 |
|
4540 * parse.y (make_unary_op): Delete. |
|
4541 (simple_expr1): Where appropriate, use make_prefix_op and |
|
4542 make_postfix_op instead of make_unary_op. Allow increment and |
|
4543 decrement ops to work on expressions, not just identifiers. |
|
4544 (make_prefix_op, make_postfix_op): Arg is expression, not identifier. |
|
4545 Handle old unary_op cases too. |
|
4546 (fold (tree_unary_expression *)): Delete. |
|
4547 * pt-exp.h, pt-exp.cc (tree_prefix_expression::eval): Handle unary |
|
4548 minus and not here. |
|
4549 (tree_postfix_expression::eval): Likewise, for transpose and hermitian. |
|
4550 (class tree_prefix_expression, class tree_postfix_expression): |
|
4551 Derive from tree_unary_expression. Delete identifier member. |
|
4552 Delete ident member function. |
|
4553 (tree_unary_expression): Don't handle evaluation here. |
|
4554 * pt-exp-base.h (mark_in_parens): No longer virtual. Return this. |
|
4555 (reference): New virtual function. |
|
4556 (class tree_expression): Don't handle expression type here. |
|
4557 * pt-mvr-base.h (tree_multi_val_ret::tree_multi_val_ret): Likewise. |
|
4558 * pt-mvr.h, pt-mvr.cc (tree_multi_assignment_expression): Likewise. |
|
4559 * pt-walk.h (visit_unary_expression): Delete declaration. |
|
4560 * pt-pr-code.h, pt-pr-code.cc (visit_unary_expression): Delete. |
|
4561 (visit_prefix_expression): Use operand(), not ident(). |
|
4562 new, visit_postfix_expression): |
|
4563 * pt-id.h, pt-id.cc (increment, decrement): Delete. |
|
4564 |
|
4565 * pt-misc.cc (tree_parameter_list::define_from_arg_vector): Get a |
|
4566 reference to each element and use the assignment operator instead |
|
4567 of tree_identifier::define. |
|
4568 * pt-id.h, pt-id.cc (tree_identifier::define): Delete versions |
|
4569 that take octave_value and octave_symbol args. |
|
4570 |
|
4571 Sat May 10 23:32:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4572 |
|
4573 * pt-indir.h, pt-indir.cc (tree_indirect_reference::value): Delete. |
|
4574 |
|
4575 * oct-var-ref.cc (octave_variable_ref::assign): Clear idx after |
|
4576 assignment. |
|
4577 |
2976
|
4578 * octave_value classes: Add is_constant, is_function, and |
|
4579 function_value functions. |
|
4580 |
2963
|
4581 * ov.h, ov.cc (assign): Return void, not reference to octave_value. |
|
4582 (do_index_op): Rename, from index. |
|
4583 (do_struct_elt_index_op): Rename, from struct_elt_val. |
|
4584 Add version that accepts index arg. |
|
4585 Change all uses and derived classes to match. |
|
4586 * pt-const.h (index): Delete. |
|
4587 * oct-var-ref.h, oct-var-ref.cc (value): Handle indexed structure |
|
4588 ops here too. |
|
4589 |
2949
|
4590 Fri May 9 07:40:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4591 |
2958
|
4592 * pt-exp.cc (print_rhs_assign_val, symbols_of_pt_exp): New functions. |
|
4593 (Vprint_rhs_assign_val): New static variable. |
|
4594 (tree_simple_assignment_expression::eval): Use it to optionally |
|
4595 allow the rhs (which is the result) of an assignment to be printed |
|
4596 instead of the left. |
|
4597 |
2955
|
4598 * pt-exp.cc (tree_simple_assignment_expression::eval): Use new |
|
4599 octave_variabl_reference::index function to handle indexing. |
|
4600 |
|
4601 * oct-var-ref.h, oct-var-ref.cc (idx): New data member. |
|
4602 (octave_variable_reference::index): Set it. |
|
4603 (octave_variable_reference::assign): Handle indexing here. |
|
4604 Delete version of this function htat takes index arg. |
|
4605 |
|
4606 * variables.h (struct builtin_varaible): Delete. |
|
4607 * variables.cc (install_builtin_variable): Take all elts of |
|
4608 builtin_variable struct directly. |
|
4609 * defun.h (DEFVAR_INT): Call install_builtin_variable directly. |
|
4610 |
|
4611 * symtab.h, defun-int.h: Don't include variables.h. |
|
4612 |
|
4613 * symtab.h (symbol_record::sv_function): Move typedef here. |
|
4614 * variables.h: From here. |
|
4615 |
|
4616 * oct-var-ref.h, oct-var-ref.cc: New files for |
|
4617 octave_variable_reference class, extracted from variables.h and |
|
4618 variables.cc |
2956
|
4619 * Makefile.in: Add them to the appropriate lists. |
2955
|
4620 |
|
4621 * oct-obj.h (octave_value_list::empty): New function. |
|
4622 |
2949
|
4623 * variables.h (class octave_variable_reference): Rewrite to work |
|
4624 as a proxy class to store a pointer to octave_value and, |
|
4625 optionally, the change function to call and the name of the |
|
4626 structure element we are referencing. Handle assignment, |
|
4627 increment, decrement, and value operations. |
|
4628 |
2956
|
4629 Thu May 8 23:40:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4630 |
2949
|
4631 * ov-re-mat.h, ov-re-mat.cc (struct_elt_ref, struct_elt_val, |
|
4632 assign_struct_elt): Provide functions for looking up and setting |
|
4633 matrix dimensions. |
|
4634 |
|
4635 * symtab.cc (symbol_record::define): Don't call sv_fcn here. |
|
4636 Don't save and restore value here. |
|
4637 (symbol_record::define_builtin_var): Do call sv_fcn here. |
|
4638 (symbol_record::variable_reference): Don't make value unique here. |
|
4639 Return pointer to sv_fcn in octave_variable_reference. |
|
4640 |
|
4641 * pt-misc.cc (tree_parameter_list::initialize_undefined_elements): |
|
4642 Simplify. |
|
4643 |
|
4644 * pt-id.h, pt-id.cc (tree_identifier::reference): Return |
|
4645 octave_variable_reference, not octave_value&. |
|
4646 * symtab.h, symtab.cc (symbol_record::variable_reference): Ditto. |
|
4647 * pt-indir.h, pt-indir.cc (tree_indirect_ref::reference): Ditto. |
|
4648 Simplify too. |
|
4649 |
|
4650 * pt-const.h (tree_constant::reference, tree_constant::value, |
|
4651 tree_constant::assign): Delete unnecessary functions. |
|
4652 * pt-id.h, pt-id.cc (tree_identifier::assign): Ditto. |
|
4653 |
|
4654 * pt-cmd.cc (tree_for_command::do_for_loop_once): Simplify. |
|
4655 |
|
4656 * ov.h, ov.cc, ov-base.h, ov-base.cc, ov-struct.h, ov-struct.cc |
|
4657 (struct_elt_ref): New arg, octave_value* parent. |
|
4658 Allow deferred lookup. Return octave_variable_reference, not |
|
4659 octave_value&. |
|
4660 |
|
4661 * ov.h, ov.cc, ov-re-mat.h, ov-re-mat.cc (assign_struct_elt): |
|
4662 New virtual functions. |
|
4663 |
|
4664 * ov.h, ov.cc (Vresize_on_range_error): Now static. |
|
4665 |
|
4666 * pt-mvr.cc (tree_index_expression::eval): Delete redundant check |
|
4667 of error_state. |
|
4668 |
2944
|
4669 Wed May 7 21:17:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4670 |
|
4671 * input.cc (generate_completion): Rename from command_generator. |
|
4672 Use string objects instead of char*. |
|
4673 (generate_possible_completions): Let qsort also make matches unique. |
|
4674 (initialize_command_input): Register generate_completion with the |
|
4675 command_editor class. |
|
4676 (completion_matches): Simplify using generate_completion. |
|
4677 |
|
4678 * pt-pr-code.cc (tree_print_code::visit_constant): For val, call |
|
4679 print_raw, not print. |
|
4680 |
|
4681 * oct-usr-fcn.h (octave_user_function::argn_sr): New data member. |
|
4682 (octave_user_function::install_automatic_vars): Rename from |
|
4683 install_nargin_and_nargout. |
|
4684 (octave_user_function::bind_automatic_vars): Rename from |
|
4685 bind_nargin_and_nargout. |
|
4686 * oct-usr-fcn.cc (octave_user_function::eval): Extract arg names |
|
4687 from args vector and bind them to argn. |
|
4688 * oct-obj.h (octave_value_list::names): New data member. |
|
4689 * oct-obj.cc (octave_value_list::stash_name_tags): New function. |
|
4690 (octave_value_list::name_tags): Ditto. |
|
4691 * pt-const.h, pt-const.cc (tree_constant::print_raw): New function. |
|
4692 * pt-misc.h, pt-misc.cc (tree_argument_list::get_arg_names): |
|
4693 New function. |
|
4694 * pt-mvr.h, pt-mvr.cc (class index_expression): Cache arg names. |
|
4695 * toplev.cc (feval): Now static. Handle arg names. |
|
4696 |
|
4697 * mkops: Cope with moving files defining operators to OPERATORS |
|
4698 subdirectory. |
|
4699 |
2937
|
4700 Tue May 6 00:48:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4701 |
|
4702 * DLD-FUNCTIONS/getgrent.cc: Use new octave_group class. |
|
4703 * DLD-FUNCTIONS/getpwent.cc: Use new octave_passwd class. |
|
4704 |
|
4705 * syscalls.cc: Simplify by using new functions defined in |
|
4706 liboctave/oct-syscalls.cc. |
|
4707 |
|
4708 * file-io.cc (Ftmpnam): Accept DIR and PREFIX args. |
|
4709 |
2929
|
4710 Mon May 5 00:54:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4711 |
2932
|
4712 * ov-str-mat.cc (octave_char_matrix_str::print_name_tag): Print |
|
4713 empty strings on one line. |
|
4714 |
2929
|
4715 * DLD-FUNCTIONS, OPERATORS, and TEMPLATE-INST: New subdirectories. |
|
4716 Move appropriate files to new directories. |
|
4717 * Makefile.in: Add DLD-FUNCTIONS, OPERATORS, and TEMPLATE-INST |
|
4718 directories to VPATH. Fix rules to work with new directory |
|
4719 structure. |
|
4720 |
2927
|
4721 Sun May 4 22:40:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4722 |
|
4723 * input.cc (initialize_command_input): Rename from |
|
4724 initialize_readline. |
|
4725 (gnu_readline, octave_gets, get_user_input): Simplify, return |
|
4726 string, not char *. |
|
4727 |
|
4728 * Many of other files: Miscellaneous changes to go along with the |
|
4729 changes described in the liboctave/ChangeLog for May 4. More code |
|
4730 moved from here to liboctave. |
|
4731 |
|
4732 Fri May 2 19:50:33 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4733 |
|
4734 * pathlen.h: Move to ../liboctave. |
|
4735 |
2921
|
4736 Thu May 1 21:50:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4737 |
|
4738 * variables.cc (get_struct_elts): New fucntion. |
|
4739 (looks_like_struct, generate_struct_completions): Move here from |
|
4740 input.cc, rewrite, and make work again. |
|
4741 |
2916
|
4742 Wed Apr 30 00:24:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4743 |
|
4744 * ov-base.h, ov-bool-mat.cc, ov-bool-mat.h, ov-bool.cc, ov-bool.h, |
|
4745 ov-ch-mat.cc, ov-ch-mat.h, ov-complex.cc, ov-complex.h, |
|
4746 ov-cx-mat.cc, ov-cx-mat.h, ov-file.cc, ov-file.h, ov-list.cc, |
|
4747 ov-range.cc, ov-range.h, ov-re-mat.cc, ov-re-mat.h, ov-scalar.cc, |
|
4748 ov-scalar.h, ov-str-mat.cc, ov-struct.cc, ov.h (scalar_value): |
|
4749 New function. Same as double_value, but name is consistent with |
|
4750 octave_scalar class. |
|
4751 |
|
4752 * op-fil-b.cc, op-fil-cm.cc, op-fil-lis.cc, op-fil-rec.cc, |
|
4753 op-fil-str.cc, op-fil-bm.cc, op-fil-cs.cc, op-fil-m.cc, |
|
4754 op-fil-s.cc: New files. |
|
4755 |
|
4756 * ops.h (ASSIGNOPDECL, DEFASSIGNOP, DEFASSIGNOP_FN, CONVDECL, |
|
4757 DEFCONV, BINOPDECL, DEFBINOPX, DEFBINOP, DEFBINOP_OP, DEFBINOP_FN, |
|
4758 BINOP_NONCONFORMANT): New macros. |
|
4759 * op-b-b.cc, op-bm-bm.cc, op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, |
|
4760 op-cm-s.cc, op-cs-cm.cc, op-cs-cs.cc, op-cs-m.cc, op-cs-s.cc, |
|
4761 op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, op-s-cm.cc, |
|
4762 op-s-cs.cc, op-s-m.cc, op-s-s.cc, op-str-str.cc: Use them. |
|
4763 |
|
4764 * Makefile.in (octave): Also depend on ops.o. |
|
4765 |
|
4766 * builtins.h: Delete. |
|
4767 * octave.cc: Add extern declaration here. |
|
4768 |
|
4769 * mappers.h: Delete. |
|
4770 * Makefile.in (INCLUDES): Delete from list. |
|
4771 * mkbuiltins: Add extern declaration in builtins.cc. |
|
4772 |
|
4773 * mkops: New file. |
|
4774 * ops.cc: Delete. |
|
4775 * Makefile.in (SOURCES): Delete from the list. |
|
4776 (ops.cc): New target. |
|
4777 (OP_SOURCES): New list. Move all op-*.cc files here from SOURCES. |
|
4778 Add $(OP_SOURCES) to SOURCES list. |
|
4779 |
|
4780 * variables.cc (symbols_of_variables): No longer static. |
|
4781 * ov.cc (symbols_of_ov): Rename from symbols_of_value. |
|
4782 |
|
4783 * ov-base.h: Delete declaration for install_base_type_conversions. |
|
4784 * op-b-b.h, op-bm-bm.h, op-cm-cm.h, op-cm-cs.h, op-cm-m.h, |
|
4785 op-cm-s.h, op-cs-cm.h, op-cs-cs.h, op-cs-m.h, op-cs-s.h, |
|
4786 op-m-cm.h, op-m-cs.h, op-m-m.h, op-m-s.h, op-s-cm.h, op-s-cs.h, |
|
4787 op-s-m.h, op-s-s.h, op-str-str.h: Delete. |
|
4788 * Makefile.in (INCLUDES): Delete them from the list. |
|
4789 |
|
4790 Tue Apr 29 22:27:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4791 |
|
4792 * variables.h, variables.cc (install_builtin_variables): Delete. |
|
4793 * mkbuiltins: Also generate install_builtin_variables function. |
|
4794 * Makefile.in: Fix rule to call mkbuiltins with correct args. |
|
4795 (clean): Also delete def-files and var-files. |
|
4796 * defaults.h.in, dirfns.h, error.h, file-io.h, help.h, input.h, |
|
4797 lex.h, load-save.h, oct-usr-fcn.h, pager.h, parse.h, pr-output.cc, |
|
4798 pr-output.h, pt-mat.h, pt-misc.h, pt-plot.h, toplev.h: |
|
4799 Delete declarations of symbols_of_* functions. |
|
4800 * data.h, syscalls.h: Delete. |
|
4801 |
|
4802 * pr-output.cc (octave_print_internal): Leave printing of final |
|
4803 new line up to the caller. |
|
4804 |
|
4805 * ov.h, ov.cc (reset_indent_level, increment_indent_level, |
|
4806 decrement_indent_level, newline, indent, reset, |
|
4807 curr_print_indent_level, beginning_of_line): |
|
4808 New functions and static data to manage indent level for printing. |
|
4809 (print_as_scalar): Delete. |
|
4810 (print, print_with_name): Always require stream arg. |
|
4811 Change all callers. |
|
4812 |
|
4813 * oct-stream.h (octave_stream::input_stream): Make publicly available. |
|
4814 (octave_stream::output_stream): Likewise. |
|
4815 |
|
4816 * ov-base.h, ov-base.cc, ov.h, ov.cc, ov-file.h ov-base.h |
|
4817 (is_file, stream_value, stream_number): New functions. |
|
4818 * ov-file.h, ov-file.cc: New files for value class to manage files. |
|
4819 * file-io.cc (symbols_of_file_io): Define stdin, stdout, and |
|
4820 stderr as octve_file objects, not just integers. |
|
4821 (Ffopen, Fpopen): Return octave_file objects, not integer file ids. |
|
4822 * syscalls.cc (Fpipe): Likewise. |
|
4823 * oct-stream.h, oct-stream.cc (octave_stream_list::insert): |
|
4824 Return octave_file object, not integer file id. |
|
4825 |
|
4826 * ov-base.cc, ov-bool-mat.cc, ov-bool.cc, ov-ch-mat.cc, |
|
4827 ov-complex.cc, ov-cx-mat.cc, ov-file.cc, ov-list.cc, ov-range.cc, |
|
4828 ov-re-mat.cc, ov-scalar.cc, ov-str-mat.cc, ov-struct.cc, ov.cc |
|
4829 (print_name_tag, print_raw): New functions. |
|
4830 |
|
4831 * help.cc (Ftype): Don't cast symbol definition to tree_constant *. |
|
4832 |
|
4833 * variables.cc (link_to_global_variable): Don't try to define |
|
4834 symbol with tree_constant objects. |
|
4835 (bind_ans): Call symbol_record::define directly and then |
|
4836 octave_value::print_with_name instead of creating a temporary |
|
4837 assignment expression. |
|
4838 |
|
4839 * pt-pr-code.cc (tree_print_code::indent): Don't use ostream::form. |
|
4840 |
|
4841 * pt-exp-base.h, pt-exp.h, pt-exp.cc (oper): Return string, not |
|
4842 char *. Change all where necessary. |
|
4843 |
|
4844 Mon Apr 28 16:33:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4845 |
|
4846 * ov.h (octave_value binary_op enum): Add lshift and rshift. |
|
4847 (octave_value assign_op enum): Add lshift_eq and rshift_eq. |
|
4848 * ov.cc (assign_op_as_string, binary_op_as_string): Include them. |
|
4849 * parse.y (LSHIFT_EQ RSHIFT_EQ LSHIFT RSHIFT): New tokens. |
|
4850 Add them to the precedence list. |
|
4851 (simple_expr): Add new operators. |
|
4852 (make_assign_op, make_binary_op): Handle new operators. |
|
4853 * lex.l: Recognize new operators. |
|
4854 |
|
4855 * lex.l: Recognize them. |
|
4856 |
|
4857 Sun Apr 27 20:17:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2898
|
4858 |
|
4859 * pt-misc.cc (Vsilent_functions, silent_functions): |
|
4860 Move here from oct-usr-fcn.cc. |
|
4861 (symbols_of_pt_misc): New function. DEFVAR silent_functions. |
|
4862 (tree_statement_list::eval): Handle Vsilent_functions here instead |
|
4863 of in octave_user_function::eval. |
|
4864 (tree_statement::eval): New functions. |
|
4865 (tree_statement_list::eval): Use them. |
|
4866 Change print flag arg to silent flag. Change all callers. |
|
4867 * variables.cc (install_builtin_variables): Call symbols_of_pt_misc. |
|
4868 * toplev.cc (parse_and_execute): Delete print arg. Change all callers. |
|
4869 (eval_string): Change print flag arg to silent flag. Change callers. |
|
4870 |
|
4871 * dynamic-ld.h, dynamic-ld.cc: Rewrite to use singleton class. |
|
4872 * variables.cc (load_fcn_from_file): Use new dynamic linking class. |
|
4873 |
2893
|
4874 * dynamic-ld.h (Octave_builtin_fcn): Delete typedef. |
|
4875 * dynamic-ld.cc: Simplify via the magic of function pointers. |
|
4876 |
|
4877 * pt-fcn.h pt-fcn.cc pt-fvc.h pt-fvc.cc pt-fvc-base.h pt-fvc-base.cc: |
|
4878 Delete obsolete files. |
|
4879 * Makefile.in: Remove them from various lists. |
|
4880 |
|
4881 * pt-walk.h (visit_octave_user_function): Rename from visit_function. |
|
4882 (visit_builtin): Delete. |
|
4883 * pt-pr-code.h, pt-pr-code.cc (visit_octave_user_function): |
|
4884 Rename from visit_function. |
|
4885 (visit_octave_user_function_header): Rename from visit_function_header. |
|
4886 (visit_octave_user_function_trailer): Rename from |
|
4887 visit_function_trailer. |
|
4888 |
|
4889 * ov.h, ov.cc (eval): New functions. |
|
4890 |
|
4891 * dassl.cc, fsolve.cc, lsode.cc, npsol.cc, qpsol.cc, quad.cc: |
|
4892 Declare user-defined functions as a pointer to an octave_symbol |
|
4893 object, not as a pointer to a tree_fvc object. |
|
4894 |
|
4895 * symtab.h, symtab.cc: Use new octave_symbol class. |
|
4896 * variables.cc (install_builtin_function, install_builtin_mapper, |
|
4897 install_builtin_variable, install_builtin_variable_as_function): |
|
4898 Make work with new octave_symbol class and symbol table structure. |
|
4899 |
|
4900 * variables.h: Delete declaration of builtin_function struct. |
|
4901 * defun-dld.h (DEFUN_DLD): Simplify. |
|
4902 * defun-int.h (DEFINE_FUN_STRUCT): Delete. |
|
4903 (DEFINE_FUN_STRUCT_FUN): Rewrite to not use static builtin_function |
|
4904 object. |
|
4905 |
|
4906 * mappers.h: Delete declaration of builtin_mapper_function struct. |
|
4907 * mappers.cc: Declare wrapper functions static. |
|
4908 * defun.h (DEFUN_MAPPER): Simplify. |
|
4909 |
|
4910 * oct-sym.h: New file. Declare base class for Octave symbols. |
|
4911 * ov.h: Derive octave_value class from octave_symbol. |
|
4912 * oct-fcn.h, oct-fcn.cc: New files to declare and define |
|
4913 base class for functions. |
|
4914 * oct-builtin.h, oct-builtin.cc: New files to declare and define |
|
4915 class for built-in functions. |
|
4916 * oct-mapper.h, oct-mapper.cc: New files to declare and define |
|
4917 class for mapper functions. |
|
4918 * oct-usr-fcn.h, oct-usr-fcn.cc: New files to declare and define |
|
4919 base class for user-defined functions. |
|
4920 * Makefile.in: Add new files to appropriate lists. |
|
4921 |
|
4922 * pt-id.h, pt-id.cc: Move tree_identifier class here. |
|
4923 * pt-fvc.h, pt-fvc.cc: From here. |
|
4924 |
|
4925 * pt-indir.h, pt-indir.cc: Move tree_indirect_ref class here. |
|
4926 * pt-fvc.h, pt-fvc.cc: From here. |
|
4927 |
2881
|
4928 Thu Apr 24 03:58:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4929 |
2884
|
4930 * parse.y (magic_colon): New nonterminal. |
|
4931 (arg_list): Simplify using magic_colon. |
|
4932 |
2883
|
4933 * lex.h (class lexical_feedback): Delete maybe_screwed field. |
|
4934 New field, parsed_function name. |
|
4935 * lex.l (lexical_feedback::init): Initialize it. |
|
4936 (handle_identifier): Don't return SCREW. Handle switching |
|
4937 symbol table context properly for `function f ()' vs `function x ='. |
|
4938 (is_keyword): If looking at function keyword, don't set current |
|
4939 symbol table to point to the local table. |
|
4940 * parse.y (recover_from_parsing_function): New function. |
|
4941 (finish_function_def): Use identifier, not token. |
|
4942 Simplify parsing of functions. |
|
4943 |
|
4944 * ov-list.h, ov-list.cc: New files to implement generic list type. |
|
4945 * ov.cc (list_indent): New global variable. |
|
4946 (increment_list_indent, decrement_list_indent): New functions. |
|
4947 (install_types): Register octave_list type. |
|
4948 * ov-base.cc (octave_base_value::is_list): New function. |
|
4949 |
2881
|
4950 * oct-sym.h: New file. |
|
4951 * ov.h (class octave_value): Derive from octave_symbol class. |
|
4952 |
|
4953 * pt-const.h, pt-const.cc: Delete lots of old useless cruft. |
|
4954 |
|
4955 * pt-exp.h, pt-exp.cc (tree_binary_expression): Use type codes for |
|
4956 operators from octave_value instead of repeating them here. |
|
4957 |
|
4958 * pt-fvc-base.cc (tree_fvc::increment, tree_fvc::decrement): Delete. |
|
4959 * pt-fvc.cc (tree_identifier::increment): Get reference to value |
|
4960 and increment that instead of using virutal tree_fvc::increment |
|
4961 function. |
|
4962 |
|
4963 * lex.l: Handle +=, -=, *=, /=, .+=, .-=, .*=, ./=, &=, and |= ops. |
2883
|
4964 * parse.y (make_assign_op): Rename from make_simple_assignment and |
|
4965 handle different op types. |
|
4966 (simple_expr1): Do new ops. |
2881
|
4967 * pt-misc.cc (initialize_undefined_elements): Pass op to assign. |
|
4968 * pt-cmd.cc (tree_for_command::do_for_command_once): Likewise. |
|
4969 * pt-fvc.cc (tree_identifier::assign): Pass op. |
|
4970 * pt-exp.cc (tree_simple_assignment_expression): Handle new ops. |
|
4971 * variables.cc (octave_variable_reference::assign): Likewise. |
|
4972 * ov.h (class octave_value): Likewise. |
|
4973 * ov.cc (octave_value::assign_op_as_string): New function. |
|
4974 (octave_value::assign, octave_value::convert_and_assign, |
|
4975 octave_value::try_assignment_with_conversion, |
|
4976 octave_value::try_assignment): Pass op. |
|
4977 * pt-pr-code.cc (tree_print_code::visit_simple_assignment_expression): |
|
4978 Use expr.oper() instead of printing "=". |
|
4979 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-m-m.cc, |
|
4980 op-m-s.cc, op-str-str.cc: Pass op to INSTALL_ASSIGNOP. |
|
4981 * ops.h (INSTALL_ASSIGNOP): Pass op. |
2883
|
4982 * ov-typeinfo.cc (do_register_assign_op): Include op type in table. |
|
4983 (do_lookup_assign_op): Use op in lookup. |
2881
|
4984 |
|
4985 * ops.h (INSTALL_UNOP): Delete. |
|
4986 |
|
4987 * input.cc (generate_struct_completions, looks_like_struct): |
|
4988 Disable, since they don't work now anyway. |
|
4989 |
|
4990 * help.cc (Ftype): Work with octave_value instead of a pointer to |
|
4991 tree_constant. |
|
4992 * symtab.cc (symbol_record_info::symbol_record_info): Likewise. |
|
4993 |
|
4994 |
|
4995 Tue Apr 22 22:59:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4996 |
|
4997 * file-io.cc (Ffprintf): If first arg is a string, assume FID = 1. |
|
4998 |
|
4999 Fri Apr 18 20:16:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5000 |
|
5001 * oct-obj.h, oct-obj.cc: Implement octave_value_list with |
|
5002 Array<octave_value> as a data member, not as a class derived from |
|
5003 Array<octave_value>. |
|
5004 (octave_value_list::length, octave_value_list::resize, |
|
5005 octave_value_list::prepend, octave_value_list::append, |
|
5006 octave_value_list::reverse): New functions. |
|
5007 |
|
5008 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
5009 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
5010 op-s-cm.cc, op-s-m.cc: Use new bool ops from liboctave instead of |
|
5011 the macros defined in ops.h. |
|
5012 |
2865
|
5013 Thu Apr 17 13:12:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5014 |
|
5015 * parse.y (ABORT_PARSE): Handle forced_interactive the same as |
|
5016 interactive. |
|
5017 |
|
5018 Mon Apr 14 01:46:50 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5019 |
|
5020 * input.cc (octave_read): Don't forget to free input buffer if it |
|
5021 exists and has zero length. |
|
5022 (gnu_readline): Free buf if fgets returns 0. |
|
5023 |
|
5024 Wed Apr 9 00:03:57 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5025 |
|
5026 * time.cc (mk_tm_map): Only set zone field if HAVE_TM_ZONE or |
|
5027 HAVE_TZNAME are defined. |
|
5028 |
|
5029 Tue Apr 8 12:39:21 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5030 |
|
5031 * time.cc (extract_tm): Set tm.tm_zone if HAVE_TM_ZONE is defined, |
|
5032 not if HAVE_TMZONE is defined. |
|
5033 |
|
5034 * Makefile.in (%.oct : %.o): Use $(SH_LD), not $(CXX). |
|
5035 |
|
5036 Wed Apr 2 21:32:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5037 |
|
5038 * dynamic-ld.cc, dynamic-ld.h (init_dynamic_linker): Delete |
|
5039 function and declaration. |
|
5040 * octave.cc (main): Don't call it. |
|
5041 |
2856
|
5042 Mon Mar 31 00:37:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5043 |
2859
|
5044 * pt-base-exp.h (tree_expression::eval): Give arg a default value. |
|
5045 * pt-const.h (tree_constant::eval): Likewise. |
|
5046 * pt-exp.h (tree_prefix_expression::eval, tree_colon_expression::eval, |
|
5047 tree_postfix_expression::eval, tree_unary_expression::eval, |
|
5048 tree_binary_expression::eval, tree_boolean_expression::eval, |
|
5049 tree_simple_assignment_expression::eval): Likewise. |
|
5050 * pt-fcn.h (tree_function::eval): Likewise. |
|
5051 * pt-fvc.h (tree_identifier::eval, tree_indirect_ref::eval, |
|
5052 tree_builtin::eval): Likewise. |
|
5053 * pt-mat.h (tree_matrix::eval): Likewise. |
|
5054 * pt-misc.h (tree_statement_list::eval): Likewise. |
|
5055 * pt-mvr-base.h (tree_multi_val_ret::eval): Likewise. |
|
5056 * pt-mvr.h (tree_oct_obj::eval, tree_index_expression::eval, |
|
5057 tree_multi_assignment_expression::eval): Likewise. |
|
5058 * dassl.cc, fsolve.cc, load-save.cc, lsode.cc, npsol.cc, parse.y, |
|
5059 pt-cmd.cc, pt-exp-base.cc, pt-exp.cc, pt-fvc.cc, pt-mat.cc, |
|
5060 pt-misc.cc, pt-mvr.cc, pt-plot.cc, quad.cc, toplev.cc, variables.cc: |
|
5061 Change callers of eval() to use bool instead of int and to make |
|
5062 use of default argument value. |
|
5063 |
|
5064 * toplev.h, toplev.cc (parse_and_execute, eval_string): Flag args |
|
5065 are now bool instead of int. |
|
5066 |
2856
|
5067 * symtab.h, symtab.cc: Use bool instead of int in more places. |
|
5068 * variables.h, variables.cc: Likewise. |
2857
|
5069 * lex.h, lex.l: Likewise. |
|
5070 * parse.y: Likewise. |
2856
|
5071 * help.cc, input.cc, lex.l, load-save.cc, parse.y, pt-fcn.cc: |
|
5072 Change callers of symbol_table::lookup to use bool instead of int, |
|
5073 and to make use of default arguments. |
|
5074 |
2850
|
5075 Fri Mar 28 15:33:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5076 |
2852
|
5077 * parse.y (Vwarn_comma_in_declaration): Delete. |
|
5078 (symbols_of_parse): Delete DEFVAR for warn_comma_in_declaration. |
|
5079 (decl1): Don't allow commas in declarations. |
|
5080 |
2850
|
5081 * lsode.cc (struct LSODE_OPTIONS): Handle integer options. |
|
5082 (print_lsode_option_list, set_lsode_option, show_lsode_option): Ditto. |
|
5083 (lsode_option_table): Add element for step limit. |
|
5084 (lsode_user_jacobian): New function. |
|
5085 (Flsode): Allow function name arg to be a 2-element string array |
|
5086 specifying the function and jacobian function. |
|
5087 |
|
5088 * variables.cc (get_global_value, set_global_value): New functions. |
|
5089 |
2846
|
5090 Wed Mar 26 17:08:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5091 |
|
5092 Implement static variable declaration: |
|
5093 |
|
5094 * lex.l (is_keyword): Handle static. |
|
5095 * octave.gperf: Likewise. |
|
5096 * parse.y (Vwarn_comma_in_declaration): Rename from |
|
5097 Vwarn_comma_in_global_decl. |
|
5098 Handle new static command. |
|
5099 * pt-cmd.h, pt-cmd.cc (class tree_decl_command): New base class |
|
5100 for static and global declaration commands. |
|
5101 (class tree_global_command): Derive from tree_decl_command. |
|
5102 (class tree_static_command): New class, derived from tree_decl_command. |
|
5103 * pt-fvc.cc, pt-fvc.h (tree_identifier::mark_as_static): New function. |
|
5104 * pt-misc.h, pt-misc.h (class tree_decl_elt): Rename from tree_global. |
|
5105 (class tree_decl_init_list): Rename from tree_global_init_list. |
|
5106 * pt-pr-code.cc, pt-pr-code.h (tree_print_code::visit_decl_command): |
|
5107 Rename from visit_global_command. |
|
5108 (tree_print_code::visit_decl_elt): Rename from visit_global. |
|
5109 (tree_print_code::visit_decl_init_list): Rename from |
|
5110 visit_global_init_list. |
|
5111 * pt-walk.h (tree_walker::visit_decl_command): Rename from |
|
5112 visit_global_command. |
|
5113 (tree_walker::visit_decl_elt): Rename from visit_tree_global. |
|
5114 (tree_walker::visit_decl_init_list): Rename from |
|
5115 visit_global_init_list. |
|
5116 * variables.cc (link_to_global_variable): Trying to make a static |
|
5117 variable global is an error. |
|
5118 * SLList-misc.cc: Instantiate lists of pointers to tree_decl_elt |
|
5119 objects, not tree_global objects. |
|
5120 * symtab.h, symtab.cc (symbol_record::tagged_static): New field. |
|
5121 (symbol_record::mark_as_static, symbol_record::is_static): |
|
5122 New functions. |
|
5123 * symtab.cc (symbol_record::init_state): Initialize tagged_static. |
|
5124 (symbol_record::clear): Don't clear static variables. |
|
5125 * symtab.cc (push_context): Don't do anything for static variables. |
|
5126 |
2825
|
5127 Tue Mar 25 17:17:17 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5128 |
2881
|
5129 * ov-bool-mat.cc, ov-bool-mat.h, ov-bool.cc, ov-bool.h: New files. |
2832
|
5130 |
2831
|
5131 * defaults.cc (symbols_of_defaults): DEFCONST OCTAVE_HOME. |
|
5132 |
|
5133 * toplev.cc (octave_config_info): Delete use of CXXLIBS. |
|
5134 * oct-conf.h.in: Ditto. |
|
5135 |
2830
|
5136 * octave.cc (maximum_braindamage): Don't bind prefer_zero_one_indexing. |
|
5137 * ov.h: Don't declare Vprefer_zero_one_indexing. |
|
5138 * ov.cc: Don't define Vprefer_zero_one_indexing. |
|
5139 (prefer_zero_one_indexing): Delete. |
|
5140 (symbols_of_value): Delete DEFVAR for prefer_zero_one_indexing. |
|
5141 |
2825
|
5142 * ov.h, ov.cc, ov-base.h, ov-base.cc: Add constructors and |
|
5143 extractors for bool and boolMatrix types. |
|
5144 |
|
5145 * ov.cc (install_types): Register octave_bool and |
|
5146 octave_bool_matrix types. |
|
5147 |
|
5148 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
5149 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
5150 op-s-cm.cc, op-s-m.cc, op-s-s.cc, ov-re-mat.cc: |
|
5151 Return boolMatrix instead of Matrix object. |
|
5152 * ops.h (BOOL_OP3, MX_MX_BOOL_OP): Likewise. |
|
5153 |
|
5154 * op-b-b.h, op-b-b.cc, op-bm-bm.h, op-bm-bm.cc: New files. |
|
5155 * Makefile.in: Add them to the lists. |
|
5156 * ops.cc: Include header files here. |
|
5157 (install_ops): Call install_b_b_ops() and install_bm_bm_ops() here. |
|
5158 |
|
5159 * variables.cc (symbols_of_variables): Don't rely on default |
|
5160 conversion from int to double for value returned from |
|
5161 default_history_size(). |
|
5162 |
|
5163 * pr-output.cc: Include cstdio. |
|
5164 |
|
5165 * parse.y (param_list_end): Fix typo in last change. |
|
5166 |
|
5167 * quad.cc (quad): Cast integer return values to double. |
|
5168 * npsol.cc (show_npsol_option): Likewise. |
|
5169 * qpsol.cc (show_qpsol_option): Likewise. |
|
5170 * file-io.cc (Fsprintf, Ffwrite): Likewise. |
|
5171 |
|
5172 Mon Mar 24 13:11:47 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5173 |
|
5174 * ov-typeinfo.cc (typeinfo): If invoked with an argument, return |
|
5175 the type of the argument as a string. Fix doc string. |
|
5176 |
2821
|
5177 Thu Mar 20 14:47:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5178 |
|
5179 * mk-oct-links (links_dir): Don't use -h option for grep. It's |
|
5180 not needed since we are working on one file at a time anyway. |
|
5181 |
2819
|
5182 Mon Mar 17 10:53:29 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5183 |
|
5184 * lex.l (handle_identifier): When handling indirect_ref, set |
|
5185 lexer_flags.quote_is_transpose to 1 so that a.b' to work as |
|
5186 expected. |
|
5187 |
|
5188 * parse.y (param_list_beg, param_list_end): New nonterminals. |
|
5189 (param_list, param_list1): Use them. |
|
5190 |
2811
|
5191 Wed Mar 12 16:57:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5192 |
|
5193 * Makefile.in (install-strip): New target. |
|
5194 |
2806
|
5195 Mon Mar 10 22:38:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5196 |
|
5197 * Makefile.in (clean): Delete .oct files too. |
|
5198 |
|
5199 * toplev.cc (Vdefault_eval_print_flag): New static variable. |
|
5200 (eval_string): New arg, print. |
|
5201 (Feval): Pass Vdefault_eval_print_flag to eval_string. |
|
5202 (default_eval_print_flag): New function. |
|
5203 (symbols_of_toplev): New function. |
|
5204 |
|
5205 * variables.cc (install_builtin_variables): Call it. |
|
5206 |
|
5207 * pt-exp.h, pt-exp.cc (class tree_boolean_expression): Rename enum |
|
5208 fields `and' and `or' to `bool_and' and `bool_or'. |
|
5209 (tree_unary_expression): Rename enum field `not' to `unot'. |
|
5210 (class tree_binary_expression): Rename enum fields `and' and `or' |
|
5211 to `el_and' and `el_or'. |
|
5212 * parse.y: Change all uses. |
|
5213 |
|
5214 * time.cc (extract_tm): Truncate field values instead of rounding. |
|
5215 (gmtime, localtime): Likewise, for timeval. |
|
5216 |
|
5217 * ov.h (class octave_value): Delete unused variable freeptr. |
|
5218 |
|
5219 * mappers.cc: Delete functions that are already in |
|
5220 liboctave/lo-mappers.cc. |
|
5221 |
|
5222 * oct-strstrm.cc (octave_base_strstream::tell): Use const_cast, |
|
5223 not static_cast. |
|
5224 |
|
5225 * help.cc (help_from_list): Add missing const qualifiers. |
|
5226 * help.h (struct help_list): Likewise. |
|
5227 * lex.l (match_any, plot_style_token): Likewise. |
|
5228 * load-save.cc (extract_keyword, ascii_save_type): Likewise. |
|
5229 * oct-hist.cc (mk_tmp_hist_file): Likewise. |
|
5230 * octave.cc (execute_startup_files): Likewise. |
|
5231 * octave.gperf (struct octave_kw): Likewise. |
|
5232 * pr-output.cc (pr_any_float): Likewise. |
|
5233 * pt-mvr.cc (tree_index_expression::eval_error): Likewise. |
|
5234 * pt-exp-base.h, pt-exp.h, pt-exp.cc: Likewise. |
|
5235 * parse.y: Likewise. |
|
5236 |
2800
|
5237 Sun Mar 9 03:46:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5238 |
2806
|
5239 * pt-exp-base.h (tree_expression): Delete extra comma at end of list. |
|
5240 |
|
5241 * dirfns.cc error.cc file-io.cc fsolve.cc input.cc load-save.cc |
|
5242 npsol.cc pt-fcn.cc qpsol.cc quad.cc syscalls.cc toplev.cc |
|
5243 variables.cc: Eliminate embedded newlines in string constants. |
|
5244 |
|
5245 * Map.cc, data.cc, dirfns.cc, dynamic-ld.cc, file-io.cc, |
|
5246 fsolve.cc, getgrent.cc, getpwent.cc, getrusage.cc, help.cc, |
|
5247 input.cc, load-save.cc, mappers.cc, minmax.cc, npsol.cc, |
|
5248 oct-fstrm.cc, oct-procbuf.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
5249 oct-stream.cc, oct-stream.h, oct-strstrm.cc, octave.cc, |
|
5250 ov-base.h, ov-range.cc, ov-typeinfo.cc, ov.cc, pr-output.cc, |
|
5251 pt-cmd.cc, pt-exp.cc, pt-fcn.cc, pt-fvc.cc, pt-mat.cc, |
|
5252 pt-misc.cc, pt-plot.cc, qpsol.cc, quad.cc, sort.cc, strfns.cc, |
|
5253 symtab.cc, syscalls.cc, sysdep.cc, time.cc, toplev.cc, |
|
5254 unwind-prot.cc, unwind-prot.h, variables.cc, xpow.cc: |
|
5255 Use `static_cast<T> (val)' instead of old C-style `(T) val' casts. |
2800
|
5256 |
2799
|
5257 Sat Mar 8 02:35:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5258 |
|
5259 * load-save.cc (save_ascii_data, save_three_d): Where appropriate, |
|
5260 use bool instead of int. |
|
5261 (save_binary_data, save_mat_binary_data, save_ascii_data): |
|
5262 Print warning instead of error for wrong type arg. |
|
5263 |
|
5264 * gripes.cc (gripe_wrong_type_arg): New arg, is_error. |
|
5265 |
|
5266 * pt-plot.cc (save_in_tmp_file): Call save_ascii_data with bool |
|
5267 arg, not int. |
|
5268 |
2797
|
5269 Fri Mar 7 00:56:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5270 |
|
5271 * dassl.cc (show_dassl_option): For values that are determined |
|
5272 automatically, return a string instead of a magic value (-1.0). |
|
5273 * fsolve.cc (show_fsolve_option): Likewise. |
|
5274 * lsode.cc (show_lsode_option): Likewise. |
|
5275 * npsol.cc (show_npsol_option): Likewise. |
|
5276 * qpsol.cc (show_qpsol_option): Likewise. |
|
5277 |
|
5278 * variables.cc (extract_function): New function. |
|
5279 * dassl.cc (Fdassl): Use it instead of is_valid_function. |
|
5280 * fsolve.cc (Ffsolve): Likewise. |
|
5281 * npsol.cc (Fnpsol): Likewise. |
|
5282 * qpsol.cc (Fqpsol): Likewise. |
|
5283 * quad.cc (Fquad): Likewise. |
|
5284 |
2795
|
5285 Thu Mar 6 20:07:24 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5286 |
|
5287 * sighandlers.cc (my_friendly_exit, octave_new_handler, |
|
5288 sigfpe_handler, sigpipe_handler): Don't all error() or warning(). |
|
5289 |
|
5290 * pager.cc (pager_death_handler): Don't try to clear pager, just |
|
5291 print message to cerr. |
|
5292 (do_sync): If the status of the pager is bad or it looks like it |
|
5293 is dead, restore the interrupt handler. |
|
5294 |
|
5295 * load-save.cc (extract_keyword (istream&, char*, int&)): |
|
5296 Move declaration of buf inside loop, to avoid deleting its guts |
|
5297 and then trying to reuse it. |
|
5298 (extract_keyword (istream&, char*)): Likewise. |
|
5299 |
2790
|
5300 Tue Mar 4 20:36:53 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5301 |
2791
|
5302 * pt-fcn.cc (tree_function::eval): Protect function from being |
|
5303 redefined while it is being evaluated. |
|
5304 (unprotect_function): New function, for use with unwind_protect stuff. |
|
5305 * pt-fcn.h (tree_function::symtab_entry): New data member. |
|
5306 (tree_function::init): Initialize it to 0. |
|
5307 (tree_function::stash_symtab_ptr): New function. |
|
5308 * parse.y (frob_function_def): Stash pointer to function's |
|
5309 symbol_record in the function definition. |
|
5310 |
|
5311 * symtab.cc (symbol_record::read_only_error): New argument, |
|
5312 action. Change all callers. |
|
5313 (symbol_record::rename): Don't allow read-only symbols to be renamed. |
|
5314 |
2790
|
5315 * variables.cc (Fexist): Don't let files with `.' in their names |
|
5316 confuse us. |
|
5317 |
|
5318 * symtab.cc (valid_identifier (const string&)): New function. |
|
5319 |
2779
|
5320 Sat Mar 1 15:23:14 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2775
|
5321 |
|
5322 * Version 2.0.5 released. |
|
5323 |
2779
|
5324 Sat Mar 1 01:34:08 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5325 |
|
5326 * Makefile.in (stamp-oct-links): New target. Make links in build |
|
5327 directory too, so that the tests will work. |
|
5328 |
2777
|
5329 * quad.cc: If quad is defined, undefine it. |
|
5330 |
2775
|
5331 * octave.cc: If WITH_KPATHSEARCH is defined, don't define |
|
5332 program_invocation_name or program_invocation_short_name. |
2774
|
5333 |
|
5334 * strftime.c: Update to current version from FSF. |
|
5335 * time.cc (Fstrftime): Call strftime with buf = 0 to get buffer |
|
5336 size, then call again to actually format the time struct. |
|
5337 |
2762
|
5338 Fri Feb 28 01:49:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5339 |
2764
|
5340 Implement switch statement: |
|
5341 |
|
5342 * parse.y (Vwarn_variable_switch_label): New static variable. |
|
5343 (warn_variable_switch_label): New function. |
|
5344 (symbols_of_parse): Provide warn_variable_switch_label as Octave |
|
5345 variable here. |
|
5346 (make_switch_case, finish_switch_command): New functions. |
|
5347 (maybe_warn_variable_switch_label): New function. |
|
5348 (end_error): Handle endswitch. |
|
5349 (switch_command, case_list, case_list1, switch_case, default_case): |
|
5350 New nonterminals. |
|
5351 (command): Add switch_command here. |
|
5352 * lex.l (is_keyword): Handle switch, case, otherwise, and endswitch. |
|
5353 * octave_gperf: Recognize switch, case, otherwise, and endswitch. |
|
5354 * token.h (end_tok_type): New item, switch_end. |
|
5355 * pt-cmd.cc (tree_switch_command): New class. |
|
5356 * pt-misc.cc (tree_switch_case, tree_switch_case_list): New classes. |
|
5357 * pt-pr-code.cc (tree_print_code::visit_switch_case, |
|
5358 tree_print_code::visit_switch_case_list, |
|
5359 tree_print_code::visit_switch_command): New functions. |
|
5360 * pt-walk.h (tree_walker::visit_switch_case, |
|
5361 tree_walker::visit_switch_case_list, |
|
5362 tree_walker::visit_switch_command): New pure virtual declarations. |
|
5363 Implement new switch statement. |
|
5364 * SLList-misc.cc: Instantiate lists of pointers to |
|
5365 tree_switch_case objects too. |
|
5366 |
|
5367 * lex.h, lex.l, parse.y: Delete all references to lexer_flags::iffing. |
|
5368 |
2762
|
5369 * syswait.h: Include sys/wait.h on NeXT systems, but don't use the |
|
5370 WIFEXTED, WEXITSTATUS, and WIFSIGNALLED macros defined there. |
|
5371 Also define waitpid in terms of wait4. From Rex A. Dieter |
|
5372 <rdieter@math.unl.edu>. |
|
5373 |
2759
|
5374 Wed Feb 26 16:43:31 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5375 |
|
5376 * oct-stream.cc (octave_base_stream::do_scanf): Don't report an |
|
5377 error if a conversion fails or we reach EOF. |
|
5378 |
2745
|
5379 Tue Feb 25 22:21:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5380 |
|
5381 * time.cc (strftime): increase initial buffer size. |
|
5382 |
|
5383 Mon Feb 24 17:49:21 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5384 |
|
5385 * pt-fvc.cc (tree_builtin::eval): Enable checking for max number |
|
5386 of arguments. |
|
5387 |
|
5388 * error.cc (handle_message): Don't fail if args is empty. |
|
5389 |
|
5390 Sun Feb 23 22:42:52 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5391 |
|
5392 * lex.h (lexical_feedback::looking_at_return_list): New field. |
|
5393 (lexical_feedback::looking_at_parameter_list): Ditto. |
|
5394 * lex.l (lexical_feedback::init): Initialize them. |
|
5395 (handle_identifier): Use them. |
|
5396 * parse.y: Likewise. |
|
5397 |
2712
|
5398 Fri Feb 21 15:35:18 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5399 |
2716
|
5400 * lex.l: Require flex 2.5 or later (we really want 2.5.4 or later, |
|
5401 but there seems to be no good way to check the patchlevel). |
|
5402 |
2712
|
5403 * oct-stream.cc (octave_base_stream::oscanf): Instead of returning |
|
5404 an error, just quit processing after a conversion fails. |
|
5405 |
2709
|
5406 Thu Feb 20 02:58:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2702
|
5407 |
|
5408 * Version 2.0.4 released. |
|
5409 |
2706
|
5410 Wed Feb 19 10:30:14 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5411 |
2705
|
5412 * sighandlers.cc (octave_ignore_interrupts, |
|
5413 octave_catch_interrupts, octave_set_interrupt_handler): |
|
5414 Return old value, not pointer to static data. Fix all uses. |
|
5415 |
|
5416 * sighandlers.h (octave_interrupt_handler): Move declaration here. |
|
5417 * sighandlers.cc: From here. |
|
5418 |
|
5419 * toplev.cc: Undo previous change. |
|
5420 |
2702
|
5421 * lex.l (handle_identifier): Allow commands like ls, save, etc. to |
|
5422 also be used as simple variable names. Also make it possible to |
|
5423 use the normal function call syntax to invoke them. |
|
5424 |
2693
|
5425 Tue Feb 18 09:22:04 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2689
|
5426 |
2702
|
5427 * Makefile.in (%.oct:%.o, %.oct:pic/%.o): Use $(SH_LDFLAGS) here. |
|
5428 |
2690
|
5429 * Version 2.0.3 released. |
|
5430 |
2693
|
5431 Tue Feb 18 00:27:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5432 |
|
5433 * toplev.cc (run_command_and_return_output): |
|
5434 Block SIGCHLD while running subprocess. |
|
5435 (cleanup_iprocstream): Unblock it here. |
|
5436 |
|
5437 * sighandlers.h (BLOCK_SIGNAL, BLOCK_CHILD, UNBLOCK_CHILD): Move here. |
|
5438 * sighandlers.cc: From here. |
|
5439 |
2692
|
5440 * toplev.cc (system): Shift then mask exit status. |
|
5441 |
|
5442 * help.cc (try_info): Shift first, then mask exit status. |
|
5443 |
2689
|
5444 * toplev.cc (octave_config_info): Handle option argument. |
|
5445 |
2686
|
5446 Fri Feb 14 16:23:30 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5447 |
2687
|
5448 * oct-stream.cc (octave_base_stream::do_scanf): Don't forget to |
|
5449 check to see if the result matrix needs resizing! |
|
5450 |
2686
|
5451 * Makefile.in (bin-dist): Don't write empty strings to LIBRARIES. |
|
5452 |
2669
|
5453 Thu Feb 13 03:02:08 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5454 |
2676
|
5455 * Makefile.in (stamp-prereq): Depend on stamp-picdir. |
|
5456 (all): Don't depend on stamp-prereq or stamp-picdir. |
|
5457 (stamp-tinst, stamp-interp, libtinst.a, liboctinterp.a): |
|
5458 Do depend on stamp-prereq. |
|
5459 (stamp-picdir): Silence noise about making pic. |
|
5460 (stamp-tinst, stamp-interp): Use $(SH_LD) $(SH_LDFLAGS) instead of |
|
5461 $(CXX) -shared. |
|
5462 |
2675
|
5463 * oct-conf.h.in: Reinstate RLD_FLAG. |
|
5464 * toplev.cc (octave_config_info): Likewise. |
|
5465 |
2672
|
5466 * data.cc (map_d_m, map_m_d, map_m_m): Rename from map. |
|
5467 (Fatan2): Use new function names. |
|
5468 |
|
5469 * pt-fvc.cc (apply_mapper_fcn): Use member function map() instead |
|
5470 of friend function. |
|
5471 |
2669
|
5472 * gripes.cc (gripe_wrong_type_arg (const char*, const string&)): |
|
5473 New function. |
|
5474 |
|
5475 Wed Feb 12 17:27:53 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5476 |
|
5477 * syscalls.cc (symbols_of_syscalls): Add O_ASYNC and O_SYNC. |
|
5478 |
|
5479 Mon Feb 10 01:22:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5480 |
|
5481 * dirfns.cc (Freaddir, Fmkdir, Frmdir, Frename): |
|
5482 Also return status and error message. |
|
5483 |
|
5484 * syscalls.cc (Fdup2, Fexec, Ffork, Ffcntl, Funlink, Fmkfifo, |
|
5485 Fpipe, Fwaitpid): Also return error message. |
|
5486 |
2664
|
5487 Sat Feb 8 17:16:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5488 |
2665
|
5489 * pt-exp.cc (tree_simple_assignment_expression::eval): Return |
|
5490 value of RHS, but (if printing) print complete value of LHS. |
|
5491 |
2664
|
5492 * pr-output.cc (octave_print_internal): Print a new line for empty |
|
5493 string matrices. |
|
5494 |
2663
|
5495 Wed Feb 5 14:30:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5496 |
|
5497 * oct-stream.cc (scanf_format_list::process_conversion): Accept |
|
5498 but don't actually use h, l, and L modifiers. Always insert l |
|
5499 modifier for floating point conversions. |
|
5500 |
2652
|
5501 Fri Jan 31 13:55:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5502 |
|
5503 * pager.cc (do_sync): Always flush the cout stream after writing. |
|
5504 |
2643
|
5505 Wed Jan 29 08:25:29 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5506 |
2648
|
5507 * defaults.cc (exec_path): Don't include bin_dir in std_path. |
|
5508 |
2646
|
5509 * pager.cc (do_sync): Flush the cout stream after writing if |
|
5510 running in interactive or forced_interactive mode. |
|
5511 |
|
5512 * mk-oct-links: Rename from mk-oct-links.in. |
|
5513 Don't use symbolic links. |
|
5514 * Makefile.in: Distribute mk-oct-links, not mk-oct-links.in |
|
5515 (mk-oct-links): Delete target. |
|
5516 (install-oct, bin-dist): Don't depend on mk-oct-links. |
|
5517 Run $(srcdir)/mk-oct-links, not ./mk-oct-links. |
|
5518 |
2643
|
5519 * qr.cc (qr): Doc fix. |
|
5520 |
2638
|
5521 Tue Jan 28 10:48:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5522 |
|
5523 * Makefile.in (install-inc): Create a relative symbolic link. |
|
5524 (install-bin): Create a relative symbolic link. |
|
5525 |
2630
|
5526 Mon Jan 27 12:12:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5527 |
2634
|
5528 * Version 2.0.2 released. |
|
5529 |
|
5530 * Makefile.in (CXXFLAGS_NO_PT_FLAGS): Rename from XALL_CXXFLAGS. |
|
5531 Substitute bsd_gcc_kluge_targets_frag. |
|
5532 |
2630
|
5533 * sysdep.cc (Fsleep): New function. |
|
5534 (Fusleep): New function. |
|
5535 |
|
5536 * toplev.cc (octave_config_info): Don't include RLD_FLAG. |
|
5537 * oct-conf.h.in: Don't define RLD_FLAG |
|
5538 |
2626
|
5539 Sun Jan 26 19:41:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5540 |
|
5541 * sighandlers.cc (sigchld_handler): Block SIGCHLD while |
|
5542 sigchld_hander is running. |
|
5543 |
2624
|
5544 Sat Jan 25 22:36:39 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5545 |
|
5546 * Makefile.in (bin-dist): Update for 2.x. |
|
5547 |
2621
|
5548 Fri Jan 24 10:05:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5549 |
|
5550 * mk-oct-links.in: New arg, -p, to just print list of files to link. |
|
5551 |
|
5552 * lex.l (handle_number): Convert `D' or `d' exponents to `e' |
|
5553 before scanning. |
|
5554 |
2620
|
5555 Thu Jan 23 10:00:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5556 |
|
5557 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_no_op_command): |
|
5558 New function. |
|
5559 * pt-cmd.h, pt-cmd.cc (tree_no_op_command): New class. |
|
5560 * parse.y (make_break_command, make_continue_command, |
|
5561 make_return_command): Where they don't really make sense, turn |
|
5562 these commands into no-ops. Accept return and break if reading a |
|
5563 script file. |
|
5564 * toplev.cc (parse_and_execute): Handle return and break in script |
|
5565 files. Quit executing commands if an error occurs when reading a |
|
5566 script file. Set global_command to 0 after deleting it. |
|
5567 (main_loop): If not interactive or forced_interactive, handle |
|
5568 break and return, and quit executing commands if an error occurs. |
|
5569 Set global_command to 0 after deleting it. |
|
5570 * error.cc (Ferror): Doc fix. |
|
5571 * pt-walk.h (tree_walker): Add declaration for visit_no_op_command. |
|
5572 |
2618
|
5573 Wed Jan 22 20:54:12 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5574 |
|
5575 * input.cc (gnu_readline): If not using readline, flush |
|
5576 rl_outstream after printing prompt. |
|
5577 (octave_gets): Also call flush_octave_stdout() if |
|
5578 forced_interactive, not just if interactive. |
|
5579 (do_input_echo): If forced_interactive, only echo prompt and |
|
5580 command line if also reading a script file. |
|
5581 |
2616
|
5582 Tue Jan 21 23:02:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5583 |
|
5584 * SLList.h: Include "BaseSLList.h", not <BaseSLList.h>. |
|
5585 |
2610
|
5586 Mon Jan 20 11:11:12 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5587 |
2614
|
5588 * lex.l (token_stack): Don't declare static. |
|
5589 * pt-plot.cc (tmp_files): Likewise. |
|
5590 * toplev.cc (octave_atexit_functions): Likewise. |
|
5591 * unwind-prot.cc (unwind_protect_list): Likewise. |
|
5592 |
2613
|
5593 * ops.h (MX_MX_BOOL_OP): Correctly handle case of one or both |
|
5594 arguments being empty. Change all callers. |
|
5595 |
|
5596 * oct-stream.cc (printf_value_cache::looking_at_string): |
|
5597 Handle empty strings correctly now that they are 0x0. |
|
5598 |
2610
|
5599 * file-io.cc: Don't include "syswait.h" here. |
|
5600 |
|
5601 Sun Jan 19 22:38:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5602 |
|
5603 * oct-stream.h (octave_base_stream::seek): Declare offset arg as |
|
5604 streamoff, not streampos. |
|
5605 (octave_stream::seek): Likewise. |
|
5606 * oct-strstrm.h (octave_base_strstream::seek): Likewise. |
|
5607 * oct-stdstrm.h (octave_base_stdiostream::seek): Likewise. |
|
5608 * oct-iostrm.h (octave_base_iostream::seek): Likewise. |
|
5609 * oct-fstrm.h (octave_fstream::seek): Likewise. |
|
5610 |
2609
|
5611 Fri Jan 17 18:13:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5612 |
|
5613 * file-io.cc (Ffflush): Handle stdout as a special case. |
|
5614 |
|
5615 * oct-stream.cc (octave_stream_list::do_get_file_number): |
|
5616 Do the work for octave_stream::get_file_number. |
|
5617 (octave_stream_list::get_file_number): Convert to static function. |
|
5618 |
2608
|
5619 Wed Jan 8 11:42:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5620 |
|
5621 * log.cc (sqrtm): For complex arg case, compute sqrt, not log. |
|
5622 |
2602
|
5623 Tue Jan 7 00:16:41 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5624 |
|
5625 * Version 2.0.1 released. |
|
5626 |
|
5627 Mon Jan 6 00:00:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5628 |
|
5629 * pt-mat.cc (tm_row_const_rep::all_mt): New variable. |
|
5630 (tm_row_const::all_empty): New function. |
|
5631 (tm_row_const::tm_row_const_rep::init): Set all_mt here. |
|
5632 (tm_const::all_mt): New variable. |
|
5633 (tm_const::all_emtpy): New function. |
|
5634 (tm_const::init): Set all_mt here. |
|
5635 (tree_matrix::eval): Return an empty matrix if the list contains |
|
5636 only empty elements. If it contains only empty strings, return an |
|
5637 empty string. |
|
5638 |
2601
|
5639 Sun Jan 5 12:50:25 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5640 |
|
5641 * ops.h (SC_MX_BOOL_OP, MX_SC_BOOL_OP): New arg, empty_result. |
|
5642 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
5643 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
5644 op-s-cm.cc, op-s-m.cc, op-str-str.cc: Change all uses of |
|
5645 SC_MX_BOOL_OP and MX_SC_BOOL_OP macros. Return correct results |
|
5646 for empty matrix cases. |
|
5647 |
|
5648 * pt-fcn.cc (tree_function::eval): If Vdefine_all_return_values is |
|
5649 true, initialize return values before evaluating function, for |
|
5650 compatibility with Matlab. |
|
5651 |
|
5652 * oct-stream.cc (get_size): Correctly set size when arg is scalar. |
|
5653 |
|
5654 Thu Jan 2 12:40:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5655 |
|
5656 * Makefile.in (install-oct): Quote $(OCT_FILES) in for loop to |
|
5657 avoid syntax error from ksh. |
|
5658 |
|
5659 * pr-output.cc (octave_print_internal): Avoid unused parameter |
|
5660 warning from gcc. |
|
5661 |
2600
|
5662 Thu Dec 19 12:13:42 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5663 |
|
5664 * oct-stream.cc (octave_base_stream::do_scanf): |
|
5665 Don't treat %l{e,f,g} differently from %{e,f,g}. |
|
5666 (octave_base_stream::do_oscanf): Likewise. |
|
5667 |
|
5668 * sighandlers.cc (sigchld_handler): Fix typos. |
|
5669 |
2598
|
5670 Wed Dec 18 20:17:23 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5671 |
2599
|
5672 * file-io.cc (Ffgetl, Ffgets): Also return number of characters read. |
|
5673 |
|
5674 * ov-range.cc (octave_range::not): New function. |
|
5675 * ov-range.h (octave_range::uminus): New function. |
|
5676 |
2598
|
5677 * BaseSLList.cc: Include error.h. |
|
5678 (BaseSLList::error): Call ::error() to process error message. |
|
5679 |
2589
|
5680 Fri Dec 13 02:38:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5681 |
|
5682 * ov.cc (octave_value::convert_and_assign): Preserve lhs value if |
|
5683 assignment fails. |
|
5684 |
2586
|
5685 Wed Dec 11 12:33:16 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5686 |
|
5687 * pt-plot.cc (GPLOT_CMD_END): Don't put semicolons at the end of |
|
5688 each plot command; it causes trouble with gnuplot 3.5. |
|
5689 |
2580
|
5690 Tue Dec 10 00:31:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5691 |
2583
|
5692 * Version 2.0 released. |
|
5693 |
2584
|
5694 * pr-output.cc (set_format_style): Don't try to access argv unless |
|
5695 argc > 1. |
|
5696 |
2580
|
5697 * SLList-expr.cc SLList-misc.cc SLList-plot.cc SLList-str.cc |
|
5698 SLList-tc.cc SLList-tm.cc SLList.h SLStack-i.cc SLStack-pc.cc |
|
5699 SLStack-str.cc SLStack-sym.cc SLStack-tok.cc SLStack-ue.cc |
|
5700 SLStack-ui.cc, pt-mat.cc: Include Stack.h, Stack.cc, SLStack.cc, |
|
5701 and SLList.cc as necessary. |
|
5702 |
|
5703 * Stack.cc, SLStack.cc, SLList.cc: New files. |
|
5704 * Makefile.in (SOURCES): Add them to the list. |
|
5705 |
2575
|
5706 Mon Dec 9 12:03:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5707 |
2577
|
5708 * Makefile.in (install-bin): Use $(EXE) suffix so install will |
|
5709 find the right file on cygwin32 systems. |
|
5710 |
2575
|
5711 * ov.h: Declare proper form of do_binary_op as friend to |
|
5712 octave_value class. |
|
5713 |
2572
|
5714 Sat Dec 7 22:00:10 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5715 |
|
5716 * oct-stream.cc (do_printf_conv, do_scanf_conv, |
|
5717 do_oscanf_num_conv, do_oscanf_str_conv): Convert to real |
|
5718 functions instead of CPP macros, using templates where necessary. |
|
5719 (do_oscanf_num_conv, do_oscanf_str_conv): Correctly handle |
|
5720 discarded values. |
|
5721 |
2569
|
5722 Fri Dec 6 00:20:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5723 |
2572
|
5724 * Version 1.94. |
|
5725 |
2571
|
5726 * Map-*.cc, SLList-*.cc, SLStack-*.cc: Include config.h. |
|
5727 |
|
5728 * ov.h: Don't include SLList.h. |
|
5729 |
|
5730 * SLStack.cc: Delete. Move everything to SLStack.h. |
|
5731 |
|
5732 * BaseSLList.h, BaseSLList.cc: New files. Split out the |
|
5733 non-template base class parts of SLList. |
|
5734 |
2569
|
5735 * Makefile.in (TEMPLATE_SRC): Delete. Move files to SOURCES. |
|
5736 * Map.h, Map.cc: Add #pragma interface/implementation. |
|
5737 * SLStack.h, SLStack.cc: Add #pragma interface/implementation. |
|
5738 |
|
5739 * SLList.h, SLList.cc: New files, from libg++, but with #pragma |
|
5740 interface/implementation. |
|
5741 * Makefile.in (SOURCES): Add SLList.cc. |
|
5742 (INCLUDES): Add SLList.h. |
|
5743 |
2566
|
5744 Thu Dec 5 18:36:44 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5745 |
|
5746 * octave.cc: Don't include sun-utils.h. |
|
5747 |
2563
|
5748 Tue Dec 3 23:47:09 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5749 |
|
5750 * op-str-str.cc (eq, ne): Handle operations with scalars. |
|
5751 |
2555
|
5752 Thu Nov 21 12:30:36 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5753 |
|
5754 * ov-str-mat.h (octave_char_matrix_str): Provide transpose and |
|
5755 hermitian operators. |
|
5756 * ov-ch-mat.h (octave_char_matrix): Likewise. |
|
5757 |
2548
|
5758 Wed Nov 20 00:35:57 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5759 |
2554
|
5760 * sighandlers.h (struct octave_interrupt_handler): Provide |
|
5761 forward declaration here. |
|
5762 * sighandlers.cc (octave_interrupt_handler): New struct. |
|
5763 (octave_catch_interrupts): Rename from catch_interrupts. |
|
5764 (octave_ignore_interrupts, octave_set_interrupt_handler): |
|
5765 New functions. |
|
5766 * help.cc, oct-hist.cc, pager.cc, toplev.cc: Use new functions for |
|
5767 handling interrupts so that we can hide the details of whether or |
|
5768 not we have to deal with SIGBREAK. |
|
5769 |
|
5770 * pt-plot.cc [! HAVE_POSIX_SIGNALS] (open_plot_stream): |
|
5771 Simply ignore and restore the interrupt handler here. |
|
5772 |
|
5773 * sighandlers.cc (MAYBE_REINSTALL_SIGHANDLER): New macro. Use it |
|
5774 instead of always checking MUST_REINSTALL_SIGHANDLERS everywhere. |
|
5775 (sigchld_handler): If octave_child_list is empty, wait for any |
|
5776 child, but don't hang, and don't collect status info. |
|
5777 [__EMX__] (sigchld_handler): Save and restore handlers for SIGINT, |
|
5778 SIGBREAK, and SIGCHLD. Ignore them while waiting on children. |
|
5779 (install_signal_handlers): If SIGBREAK exists, handle it like SIGINT. |
|
5780 |
2552
|
5781 * toplev.cc [USE_READLINE] (clean_up_and_exit): |
|
5782 Call rl_deprep_terminal() to restore terminal settings. |
|
5783 |
|
5784 * sysdep.cc [__EMX__ && OS2] (Fextproc): New command. |
|
5785 [__EMX__ && OS2] (FEXTPROC): Alias for Fextproc. |
|
5786 |
|
5787 * Version 1.93. |
|
5788 |
2549
|
5789 * sysdep.cc (octave_chdir): [__EMX__]: Make copy of string before |
|
5790 converting to upper case. |
|
5791 |
2548
|
5792 * getgrent.cc (mk_gr_map): Only set the passwd field if |
|
5793 HAVE_GR_PASSWD is defined. |
|
5794 |
2533
|
5795 Tue Nov 19 12:01:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5796 |
2546
|
5797 * sysdep.cc (OS2_init): New function. |
|
5798 [__EMX__] (sysdep_init): Call it. |
|
5799 |
2542
|
5800 * lex.l (plot_style_token): Add new plot styles for gnuplot 3.6. |
2543
|
5801 * pt-plot.cc (subplot_style::columns_ok): Rename from |
|
5802 subplot_style::errorbars. Recognize more styles and do a better |
|
5803 job of diagnosing column number/style mismatches. |
2542
|
5804 |
2536
|
5805 * sighandlers.cc (my_friendly_exit): If we are called twice, try |
|
5806 to remove the signal handler for SIGABRT and the call abort (). |
|
5807 |
2534
|
5808 * help.cc (Ftype): If a function is defined from a file and |
|
5809 transformed text has not been requested, just print the contents |
|
5810 of the file. |
|
5811 |
2533
|
5812 * parse.y (fold): New functions for constant folding for binary |
|
5813 and unary expressions. Keep track of original text even when |
|
5814 transformations occur. |
|
5815 (make_binary_op, make_boolean_op, make_unary_op): Use them. |
|
5816 (finish_colon_expression, finish_matrix): Keep track of original |
|
5817 text even when transformations occur. |
|
5818 |
|
5819 * help.cc (Ftype): Don't mess with Vps4. |
|
5820 Handle new option `-transformed'. |
|
5821 |
|
5822 * pt-const.h, pt-const.cc (tree_constant::print): |
|
5823 New arg, pr_orig_text. |
|
5824 |
|
5825 * pt-exp.h, pt-exp.cc (tree_colon_expression::is_range_constant): |
|
5826 Delete. |
|
5827 |
|
5828 * pt-exp-base.h (tree_expression::original_text): New virtual function. |
|
5829 pt-exp-base.cc (tree_expression::original_text): Default version. |
|
5830 |
|
5831 * pt-pr-code.h (tree_print_code::print_original_text, |
|
5832 tree_print_code::prefix): New fields. |
|
5833 * pt-pr-code.cc (tree_print_code::visit_constant): Pass |
|
5834 print_original_text to tree_constant::print(). |
|
5835 (tree_print_code::indent): Use prefix instead of Vps4. |
|
5836 * pt-fcn.cc (tree_function::print_function_header, |
|
5837 tree_function::print_function_trailer): Pass Vps4 to |
|
5838 tree_print_code_constructor for prefix. |
|
5839 * pt-misc.cc (tree_statement::maybe_echo_code): Pass Vps4 to |
|
5840 tree_print_code_constructor for prefix. |
|
5841 |
|
5842 * pt-mat.h, pt-mat.cc (tree_matrix::all_elements_are_constant): |
|
5843 Rename from is_matrix_constant. |
|
5844 (tree_matrix_row::all_elements_are_constant): Likewise. |
|
5845 Change all callers. |
|
5846 |
|
5847 Mon Nov 18 14:13:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5848 |
|
5849 * Makefile.in (install-inc): Try harder to create the link from |
|
5850 include/octave to include/octave-VERSION. |
|
5851 |
2524
|
5852 Sun Nov 17 14:14:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5853 |
2527
|
5854 * Makefile.in (parse.cc): Expect 13 shift/reduce conflicts. |
2526
|
5855 |
2525
|
5856 * parse.y (set_stmt_print_flag): New function. |
|
5857 (sep_type): New member for bison %union declaration. |
|
5858 Simplify rules for statement lists keeping track of the type of |
|
5859 the first separator in the values associated with the |
|
5860 nonterminals for the separators. |
|
5861 |
2524
|
5862 * lex.l (handle_identifier): Set lexer_flags.doing_set if the |
|
5863 token is "gset", not "set". |
|
5864 |
|
5865 Sat Nov 16 21:41:26 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5866 |
|
5867 * Makefile.in (parse.cc, lex.cc): Add special rules for these files. |
|
5868 Delete pattern rules for .y and .l files. |
|
5869 |
2522
|
5870 Fri Nov 15 13:48:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5871 |
2523
|
5872 * pt-plot.cc: Put semicolons at the ends of all plot commands. |
|
5873 |
2522
|
5874 * defaults.cc (subst_octave_home): Start subsequent searchs from |
|
5875 the end of the replaced text. |
|
5876 |
|
5877 * pr-output.cc (pr_any_float): Kluge for SCO systems. |
|
5878 |
|
5879 * pr-output.cc (pr_any_float, pr_complex): Don't declare inline. |
|
5880 |
|
5881 * mappers.cc: Include lo-ieee.h, for isinf and isnan on SCO |
|
5882 systems. |
|
5883 |
2512
|
5884 Thu Nov 14 00:06:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5885 |
2520
|
5886 * pt-plot.cc (Fgset, Fgshow): New commands. |
|
5887 (Fshow): Print warning and call gshow. |
|
5888 (Fset): Print warning and call gset. |
|
5889 |
2517
|
5890 * variables.cc (parse_fcn_file): Add unwind-protect for file |
|
5891 pointer, so the file is always closed. |
|
5892 (get_help_from_file): Likewise. |
|
5893 * toplev.cc (parse_and_execute): Likewise. |
|
5894 |
2516
|
5895 * Makefile.in (install-oct): Depend on mk-oct-links. |
|
5896 (mk-oct-links): New target. |
|
5897 |
2512
|
5898 * Version 1.92. |
|
5899 |
2508
|
5900 Wed Nov 13 11:13:22 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5901 |
2512
|
5902 * sighandlers.cc (sys_siglist): [__EMX__]: Add definitions. |
|
5903 |
|
5904 * octave.cc (execute_startup_files): Allow init file name ot be |
|
5905 specified by an environment variable. |
|
5906 |
|
5907 * dirfns.cc (make_absolute): [__EMX__]: Path is already absolute |
|
5908 if it begins with any character followed by a colon. |
|
5909 |
2511
|
5910 * load-save.cc (read_mat_ascii_matrix, get_lines_and_columns, |
|
5911 get_complete_line): New functions, for reading headless text files. |
|
5912 (load_save_format): Add LS_MAT_ASCII, for headless text files. |
|
5913 (do_load): Handle LS_MAT_ASCII files. |
|
5914 Thanks to Mel Melchner <mjm@research.att.com> for initial version |
|
5915 of this code. |
|
5916 |
2508
|
5917 * sysdep.cc: Conditionally include ieeefp.h. |
|
5918 (BSD_init, SCO_init): New functions. |
|
5919 (sysdep_init): Conditionally call them here. |
|
5920 |
2499
|
5921 Tue Nov 12 00:14:56 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5922 |
2508
|
5923 * pt-plot.cc (open_plot_stream): Don't block SIGCHLD. |
|
5924 |
2499
|
5925 * load-save.cc (read_binary_data): When reading string arrays, be |
|
5926 sure to create an octave_char_matrix_str object, not just an |
|
5927 octave_char_matrix object. |
|
5928 (read_ascii_data): Likewise. |
|
5929 |
2497
|
5930 Mon Nov 11 22:52:58 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5931 |
|
5932 * load-save.cc (read_binary_data): Don't forget teminating NUL for |
|
5933 string that we plan to insert. |
|
5934 (read_ascii_data): Likewise. |
|
5935 |
2495
|
5936 Sun Nov 10 16:58:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5937 |
2496
|
5938 * dirfns.cc (Ffnmatch): New function. |
|
5939 |
2495
|
5940 * octave.cc (intern_argv): Use new string_vector constructor. |
|
5941 |
|
5942 * ov-str-mat.cc (octave_char_matrix_str::all_strings): Have |
|
5943 charMatrix::row_as_string() strip trailing whitespace. |
|
5944 |
|
5945 * dirfns.cc (Fglob): new function. |
|
5946 |
|
5947 * sysdep.cc (oct_tilde_expand): Provide version that works on |
|
5948 string vectors too. |
|
5949 (Ftilde_expand): Work on string vector args. |
|
5950 |
|
5951 * load-save.cc (save_binary_data): Call char_matrix_value() to |
|
5952 extract charMatrix from octave_value object, not all_strings(). |
|
5953 (save_ascii_data): Likewise. |
|
5954 * pt-mat.cc (tree_matrix::eval): Likewise. |
|
5955 |
|
5956 * ov.h (octave_value::all_strings): Return string_vector, not |
|
5957 charMatrix. |
|
5958 * ov-base.cc (octave_base_value::all_strings): Likewise. |
|
5959 * ov-str-mat.h, ov-str-mat.cc (octave_char_matrix_str::all_strings): |
|
5960 Likewise. |
|
5961 |
2487
|
5962 Fri Nov 8 09:54:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5963 |
2492
|
5964 * defaults.cc, dynamic-ld.cc, fn-cache.cc, help.cc, oct-hist.cc, |
|
5965 octave.cc, pager.cc, pt-fcn.cc, toplev.cc, utils.cc, variables.cc, |
|
5966 lex.l: Change #include "" to #include <> for defaults.h, |
|
5967 oct-conf.h, oct-gperf.h, y.tab.h, and version.h, to avoid getting |
|
5968 them from $srcdir when we really want the version from the build |
|
5969 directory. (Maybe this should be done for all the include files, |
|
5970 not just those that are auto-generated? Hmm.) |
|
5971 |
2488
|
5972 * defaults.h.in (CXXLIB_LIST, CXXLIB_PATH, FLIB_LIST, FLIB_PATH): |
|
5973 Delete. |
|
5974 |
2487
|
5975 * Makefile.in (install-oct): Use $(INSTALL_PROGRAM) for .oct files. |
|
5976 |
2477
|
5977 Thu Nov 7 07:59:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5978 |
2487
|
5979 * variables.cc (gobble_leading_white_space): New arg, update_pos. |
|
5980 * (is_function_file): Don't update file position information here. |
|
5981 |
2482
|
5982 * Version 1.91. |
|
5983 |
2479
|
5984 * pt-fvc.cc (tree_indirect_ref::reference): If the lhs object is |
|
5985 not a map, convert it to one. |
|
5986 |
|
5987 * ov-typeinfo.h (init_tab_sz): New static member. |
|
5988 |
2477
|
5989 * ov-struct.cc, ov-struct.h: Add hooks for custom memory management. |
|
5990 * ov-scalar.cc, ov-scalar.h: Likewise. |
|
5991 * ov-re-mat.cc, ov-re-mat.h: Likewise. |
|
5992 * ov-range.cc, ov-range.h: Likewise. |
|
5993 * ov-cx-mat.cc, ov-cx-mat.h: Likewise. |
|
5994 * ov-complex.cc, ov-complex.h: Likewise. |
|
5995 * ov-ch-mat.cc, ov-ch-mat.h: Likewise. |
|
5996 |
2474
|
5997 Wed Nov 6 12:32:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5998 |
2482
|
5999 * pager.cc (do_sync): Don't call clear_external_pager() here. |
2476
|
6000 |
2475
|
6001 * pt-const.h (tree_constant::allocator) New static member. |
|
6002 (tree_constant::operator new, tree_constant::operator delete): |
|
6003 Implement with custom allocator. |
|
6004 |
|
6005 * syscalls.cc (Fgetgid, Fgetegid): New functions. |
|
6006 |
|
6007 * sighandlers.cc (sigchld_handler): If necessary, reinstall |
|
6008 handler after call to waitpid(). |
|
6009 |
|
6010 * pager.cc (pager_death_handler): Don't use warning() to print |
|
6011 message. |
|
6012 |
|
6013 * getgrent.cc: New file. |
|
6014 * Makefile.in (DLD_SRC): Add it. |
|
6015 |
|
6016 * ov.cc (octave_value::print_with_name): Call is_map() instead of |
|
6017 print_as_structure(). |
|
6018 * ov-struct.cc (octave_struct::print): Likewise. |
|
6019 |
|
6020 * ov.h, ov.cc, pt-const.h: Delete force_numeric(), make_numeric(), |
|
6021 convert_to_matrix_type(), print_as_structure() member functions. |
|
6022 |
2474
|
6023 * variables.cc (is_function_file): Call gobble_leading_whitespace |
|
6024 here to strip all leading whitespace and comments. |
|
6025 (parse_fcn_file): If reading a function file, call |
|
6026 gobble_leading_whitespace again after resetting parser state to |
|
6027 grab help text. |
|
6028 |
2469
|
6029 Tue Nov 5 13:00:35 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6030 |
2472
|
6031 * syscalls.cc (Fgeteuid, Fgetuid): New functions. |
|
6032 |
|
6033 * getpwent.cc: Use gripe_not_supported from gripes.cc, instead of |
|
6034 local gripe_not_implemented function. |
|
6035 |
2470
|
6036 * input.cc, sysdep.cc, variables.cc: Only include readline.h and |
|
6037 history.h if USE_READLINE is defined. |
|
6038 |
|
6039 * help.cc: Make it compile without warnings even if USE_GNU_INFO |
|
6040 is not defined. |
|
6041 |
2469
|
6042 * sighandlers.h (octave_child_list): Don't define |
|
6043 HAVE_POSIX_SIGNALS HERE. |
|
6044 |
|
6045 * sighandlers.cc (SIGHANDLER_RETURN): New macro. |
|
6046 (generic_sig_handler, sigchld_handler, sigfpe_handler, |
|
6047 sigint_handler, sigpipe_handler): Use it. |
|
6048 (sigchld_handler, sigfpe_handler, sigint_handler, sigpipe_handler): |
|
6049 Only reinstall signal handler if MUST_REINSTALL_SIGHANDLER is defined. |
|
6050 |
2463
|
6051 Sun Nov 3 00:45:30 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6052 |
2466
|
6053 * pt-const.cc (tree_constant::print): Just call val.print(). |
|
6054 * ov-base.cc, ov-ch-mat.cc, ov-colon.cc, ov-complex.cc, |
|
6055 ov-cx-mat.cc, ov-range.cc, ov-re-mat.cc, ov-scalar.cc, |
|
6056 ov-str-mat.cc, ov-struct.cc ov-va-args.cc, ov.cc (print): |
|
6057 Handle pr_as_read_syntax arg. |
|
6058 |
|
6059 * defaults.cc (subst_octave_home): Search for prefix repeatedly in |
|
6060 retval, not s. |
|
6061 |
|
6062 * gripes.h: Make declaration of gripes_not_supported match |
|
6063 definition. |
|
6064 |
2465
|
6065 * mk-oct-links.in: In sed command, match "DEFUN_DLD *( *", not |
|
6066 "DEFUN_DLD_BUILTIN *( *". |
|
6067 |
|
6068 * chol.cc, colloc.cc, dassl.cc, det.cc, eig.cc, expm.cc, fft.cc, |
|
6069 fft2.cc, filter.cc, find.cc, fsolve.cc, fsqp.cc, getpwent.cc, |
|
6070 getrusage.cc, givens.cc, hess.cc, ifft.cc, ifft2.cc, inv.cc, |
|
6071 log.cc, lpsolve.cc, lsode.cc, lu.cc, minmax.cc, npsol.cc, pinv.cc, |
|
6072 qpsol.cc, qr.cc, quad.cc, qzval.cc, rand.cc, schur.cc, sort.cc, |
|
6073 svd.cc, syl.cc, time.cc: Change all uses of DEFUN_DLD_BUILTIN to |
|
6074 be just DEFUN_DLD. |
|
6075 |
|
6076 * defun-dld.h: Eliminate DEFUN_DLD_BUILTIN. |
|
6077 |
2464
|
6078 * syswait.h: Use #ifdef HAVE_SYS_WAIT_H, not #if HAVE_SYS_WAIT_H |
|
6079 to decide whether to include sys/wait.h. |
|
6080 |
|
6081 * pt-exp-base.h (tree_expression): Declare oper() here as a |
|
6082 virtual member function. |
|
6083 |
2463
|
6084 * pt-pr-code.cc (tree_print_code::visit_constant): Check for |
|
6085 string before checking for char_matrix. |
|
6086 |
|
6087 * ov-ch-mat.cc (octave_char_matrix::print): Supply correct number |
|
6088 of args to octave_print_internal(). |
|
6089 |
2457
|
6090 Sat Nov 2 20:44:55 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6091 |
2458
|
6092 * file-io.cc (Ftmpnam): Rename from Foctave_temp_file_name. |
|
6093 |
2457
|
6094 * Makefile.in (DLD_SRC): Move time.cc and getrusage.cc here from |
|
6095 SOURCES. Add getpwent.cc. |
|
6096 |
|
6097 * getrusage.cc: Rename from resource.cc. Make getrusage a |
|
6098 loadable function. |
|
6099 |
|
6100 * time.cc: Rename from timefns.cc. Make time functions loadable. |
|
6101 |
|
6102 * getpwent.cc: New file. |
|
6103 |
2439
|
6104 Wed Oct 30 01:06:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6105 |
2452
|
6106 * Version 1.90. |
|
6107 |
|
6108 * Makefile.in (DISTFILES): Add ChangeLog. |
|
6109 |
2449
|
6110 * ov-range.cc (octave_range::convert_to_str): New function. |
|
6111 |
|
6112 * ov-str-mat.h (octave_char_matrix_str::char_matrix_value): |
|
6113 Delete function. Already handled by octave_char_matrix class. |
|
6114 |
|
6115 * ov-ch-mat.h (octave_char_matrix::convert_to_str): New function. |
|
6116 |
2448
|
6117 * pager.cc (Fmore): Set page_screen_output to 1.0 or 0.0, not |
|
6118 "true" or "false". |
|
6119 |
2447
|
6120 * ov-ch-mat.cc, ov-struct.cc, ov-struct.h, pr-output.cc, |
|
6121 pt-cmd.cc, pt-const.cc, pt-const.h, pt-fcn.cc, pt-fvc-base.cc, |
|
6122 pt-fvc-base.h, pt-fvc.cc, pt-fvc.h, rand.cc, sighandlers.cc, |
|
6123 variables.cc, variables.h: Delete unused code. |
|
6124 |
2445
|
6125 * octave.cc: Only include pwd.h if HAVE_PWD_H. |
|
6126 |
|
6127 * oct-strstrm.h: Include <string>, not <string.h>. |
|
6128 |
2442
|
6129 * defaults.cc, dirfns.cc, file-io.cc, help.cc, input.cc, |
|
6130 oct-hist.cc, oct-procbuf.cc, oct-procbuf.h, octave.cc, pager.h, |
|
6131 procstream.h, pt-misc.cc, pt-plot.cc, sighandlers.cc, strftime.c, |
|
6132 syscalls.cc, sysdep.cc, syswait.h, toplev.cc, utils.cc, |
|
6133 variables.cc: Only include sys/types.h if HAVE_SYS_TYPES_H. |
|
6134 |
2440
|
6135 * error.h (panic): Use GCC_ATTR_NORETURN macro, not NORETURN. |
|
6136 * toplev.h (clean_up_and_exit): Likewise. |
|
6137 * utils.h (jump_to_top_level): Likewise. |
|
6138 |
2439
|
6139 * derfaults.h.in, defaults.cc (local_arch_lib_dir): New variable. |
|
6140 * defaults.cc (set_default_local_arch_lib_dir): New function. |
|
6141 (install_defaults): Call it. |
|
6142 (exec_path): Use Vlocal_arch_lib_dir here. |
|
6143 * toplev.cc (octave_config_info): Add localarchlibdir to structure. |
|
6144 |
2436
|
6145 Tue Oct 29 15:54:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6146 |
2437
|
6147 * Makefile.in (install-oct): Don't do anything if $(OCT_FILES) is |
|
6148 empty. |
|
6149 |
2436
|
6150 * ov-range.cc (octave_range::index): New Function. |
|
6151 (octave_range::all, octave_range::any, octave_range::is_true): |
|
6152 Make these functions work. |
|
6153 |
|
6154 * ov.cc (octave_value::try_assignment_with_conversion): Remove |
|
6155 left over debugging print statements. |
|
6156 |
|
6157 Mon Oct 28 10:49:03 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6158 |
|
6159 * strftime.c: Add missing #endif for previous change. |
|
6160 |
2435
|
6161 Sun Oct 27 14:06:44 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6162 |
|
6163 * oct-hist.cc (do_history): Rewite option parsing to avoid |
|
6164 (probably bogus) errors from g++ on cygwin32 system. |
|
6165 |
|
6166 * strftime.c: Use autoconf macros TIME_WITH_SYS_TIME and |
|
6167 HAVE_SYS_TIME_H to decide which time.h files to include. |
|
6168 |
|
6169 * oct-stream.h, oct-stream.cc (octave_stream::error, |
|
6170 octave_base_stream::error): Rename errno => err_num. |
|
6171 |
2432
|
6172 Sat Oct 26 10:40:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6173 |
2434
|
6174 * oct-hist.cc (do_history): Move declaration of file inside |
|
6175 conditional. |
|
6176 |
2432
|
6177 * defun.h (DEFVAR_INT): Set eternal flag with (svc_fcn != 0) |
|
6178 instead of (sv_fcn ? 1 : 0) |
|
6179 |
2427
|
6180 Fri Oct 25 01:10:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6181 |
2431
|
6182 * ov-ch-mat.h (octave_char_matrix::any): Return 0.0 instead of false. |
|
6183 (octave_char_matrix::all): Likewise. |
|
6184 |
|
6185 * input.cc (Fecho): When binding value of echo_executing_commands, |
|
6186 cast ECHO_* to double. |
|
6187 |
|
6188 * sighandlers.cc (octave_child_list::do_remove): Delete unused |
|
6189 variable `enlarge'. |
|
6190 |
|
6191 * pt-const.h (tree_constant::tree_constant (const tree_constant&)): |
|
6192 Don't pass arg to tree_fvc constructor. |
|
6193 |
2427
|
6194 * resource.cc (getrusage): [HAVE_GETRUSAGE && RUSAGE_TIMES_ONLY]: |
|
6195 Only fill in time values. |
|
6196 |
|
6197 Thu Oct 24 20:37:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6198 |
|
6199 * parse.y: Comment out the %expect declaration so byacc can |
|
6200 compile this file. |
|
6201 (if_cmd_list): Add missing semicolon. |
|
6202 Include <cstdlib> for getenv if using byacc. |
|
6203 |
|
6204 * ov.h: Move typedefs outside of octave_value class scope to avoid |
|
6205 problem with cygwin32 beta16 compiler. |
|
6206 |
2421
|
6207 Fri Oct 18 13:44:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6208 |
2423
|
6209 * ov.h (octave_value::index): Undo previous change. |
|
6210 * ov.cc (octave_value constructors): Call maybe_mutate() in most |
|
6211 cases. |
|
6212 |
|
6213 * ov-complex.cc (octave_complex::index): Avoid implicit type |
|
6214 conversion back to scalar type. |
|
6215 * ov-scalar.cc (octave_scalar::index): Likewise. |
|
6216 |
2421
|
6217 * ov.h (octave_value::index): Call maybe_mutate() on retval before |
|
6218 returning it. |
|
6219 |
2418
|
6220 Wed Oct 16 12:00:11 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6221 |
2420
|
6222 * ov.h (octave_value::struct_elt_val): New optional arg, silent. |
|
6223 * ov-base.h, ov-base.cc, ov-struct.h, ov-struct.cc: Likewise, but |
|
6224 for the derived classes the arg is required. |
|
6225 |
|
6226 * data.cc (Fstruct_contains): Require arguments to be struct and |
|
6227 string, respectively. Call octave_value::struct_elt_val with |
|
6228 silent flag set. |
|
6229 |
2419
|
6230 * pt-mat.cc (tm_row_const::tm_row_const_rep::eval_error, |
|
6231 tm_row_const::tm_row_const_rep::eval_warning): New functions. |
|
6232 (tm_row_const::tm_row_const (const tree_matrix_row&): Use them to |
|
6233 give better error messages. |
|
6234 |
2418
|
6235 * pt-fvc.cc (tree_identifier::eval): Avoid dereferencing null |
|
6236 object_to_eval. |
|
6237 |
2412
|
6238 Tue Oct 15 11:35:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6239 |
|
6240 * op-cs-cm.cc, op-cs-cs.cc, op-cs-m.cc, op-cs-s.cc |
|
6241 (complex_matrix_conv): New functions. |
|
6242 Install preferred assignment conversion and widening ops. |
|
6243 |
|
6244 * op-s-cm.cc, op-s-cs.cc (complex_matrix_conv): New functions. |
|
6245 Install preferred assignment conversion and widening ops. |
|
6246 |
|
6247 * op-s-m.cc, op-s-s.cc (matrix_conv): New functions. |
|
6248 Install preferred assignment conversion and widening ops. |
|
6249 |
|
6250 * ov.cc (octave_value::try_assignment_with_conversion, |
|
6251 octave_value::convert_and_assign, octave_value::try_assignment): |
|
6252 New functions. |
|
6253 (octave_value::assign): Use them to implement twisted logic for |
|
6254 type conversions in assigments. |
|
6255 |
|
6256 * pt-const.h (tree_constant::maybe_mutate): New function. |
|
6257 * ov.h (octave_value::maybe_mutate): New function. |
|
6258 (octave_value::try_narrowing_conversion): New function. |
|
6259 Use just one typedef for widening_op_fcn and numeric_conv_fcn. |
|
6260 Change all uses. |
|
6261 * ov-base.h, ov-complex.h, ov-complex.cc, ov-cx-mat.h, |
|
6262 ov-cx-mat.cc, ov-range.h, ov-range.cc, ov-re-mat.h, ov-re-mat.cc, |
|
6263 Provide derived class versions of try try_narrowing_conversion(). |
|
6264 |
|
6265 * pr-output.cc (octave_print_internal): Don't bother handing off |
|
6266 to scalar/real versions, even when it would seem appropriate. |
|
6267 |
|
6268 * symtab.cc (symbol_def::define (tree_constant *)): Call |
|
6269 maybe_mutate on constants here. |
|
6270 |
2405
|
6271 Mon Oct 14 11:05:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6272 |
2407
|
6273 * pt-fvc.cc (tree_identifier::eval): If retval is undefined and |
|
6274 the object to eval is a constant, print error message. |
2406
|
6275 |
2405
|
6276 * Makefile (distclean): Remove *.oct too. |
|
6277 |
|
6278 * defun-int.h: Include variables.h here. |
|
6279 |
2403
|
6280 Sun Oct 13 10:52:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6281 |
2404
|
6282 * variables.cc (print_symbol_info_line): Never print negative |
|
6283 diminsions. |
|
6284 |
|
6285 * symtab.h (octave_symbol_record_info): Store const_type as string. |
|
6286 (octave_symbol_record_info::init): Delete. Fix constructors. |
|
6287 (octave_symbol_record_info::type_name): Handle const_type as string. |
|
6288 |
2403
|
6289 * octave.cc (maximum_braindamage): Replace "true" with 1.0 and |
|
6290 "false" with 0.0 in calls to bind_builtin_variable(). |
|
6291 Include sun-utils.h here. |
2404
|
6292 (intern_argv): Also bind __argv__. |
2403
|
6293 |
2391
|
6294 Sat Oct 12 13:40:21 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6295 |
2399
|
6296 * Makefile.in (distclean): Also delete mk-oct-links. |
|
6297 |
|
6298 Fri Oct 11 13:13:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6299 |
2391
|
6300 Changes for Octave's new type system: |
|
6301 |
|
6302 * arith-ops.cc: Delete. |
|
6303 * pt-const.h, pt-const.cc: Massive changes. Most functionality |
|
6304 moved to ov.h, ov.cc, and derived classes. |
|
6305 |
|
6306 * variables.h, variables.cc (octave_variable_reference): New class |
|
6307 for getting references to variables and structure elements used in |
|
6308 assignments or value contexts. |
|
6309 |
|
6310 * symtab.h, symtab.cc (symbol_record::define (const octave_value&), |
|
6311 symbol_record::variable_value, symbol_record::variable_reference): |
|
6312 New functions. |
|
6313 (symbol_record_info::type_name): Rename from type_as_string. |
|
6314 |
|
6315 * pt-fvc-base.h, pt-fvc-base.cc (tree_fvc::increment, |
|
6316 tree_fvc::decrement): New functions to replace |
|
6317 tree_fvc::bump_value. |
|
6318 #if 0 assign and lookup_map_element functions. |
|
6319 |
|
6320 * pt-mvr.cc (tree_multi_assignment_expression::eval): |
|
6321 Generated RHS value is now a tree_constant. |
|
6322 |
|
6323 * pt-exp.h, pt-exp.cc (tree_boolean_expression): New class. |
|
6324 (tree_unary_expression, tree_binary_expression, |
|
6325 tree_boolean_expression): Move codes here from tree_expression. |
|
6326 (tree_simple_assignment_expression): Cope with changes to way of |
|
6327 doing assignments. |
|
6328 |
|
6329 * pt-exp-base.h, pt-exp-base.cc (enum type): Delete codes for |
|
6330 unary and binary ops. |
|
6331 (tree_expression::expression_type): Delete. |
|
6332 (tree_expression::is_logically_true): Hand off to |
|
6333 octave_value::is_true to do real work. |
|
6334 |
|
6335 * pr-output.h, pr-output.cc (any_element_is_inf_or_nan, |
|
6336 all_elements_are_ints): Delete. Call member new functions for |
|
6337 these operations. |
|
6338 (free_format, plus_format, bank_format, hex_format, |
|
6339 compact_format, print_e, print_big_e): Use bool, not int. |
|
6340 (octave_print_internal): Hand off to scalar/real versions when |
|
6341 appropriate. |
|
6342 |
|
6343 * octave.cc (main): Call initialize_types() and install_ops(). |
|
6344 (verbose_usage): Add WWW address to output. |
|
6345 |
|
6346 * parse.y (indirect_ref): Handle by making a tree instead of a |
|
6347 list using new version of tree_indirect_ref class. |
|
6348 |
|
6349 * parse.y (make_boolean_op): New function. Use it instead of |
|
6350 make_binary_op to create trees for && and || ops. |
|
6351 (make_binary_op): Codes come from tree_binary_expression now, |
|
6352 instead of tree_expression. |
|
6353 (make_unary_op): Codes come from tree_unary_expression now, |
|
6354 instead of tree_expression. |
|
6355 (make_boolean_op): Codes come from tree_boolean_expression. |
|
6356 |
|
6357 *parse.y (tree_constant_type): Change type to tree_constant* from |
|
6358 octave_value*, and rename from octave_value_type. Change uses. |
|
6359 |
|
6360 * defun.h (DEFVAR_INT): Pass octave_value not pointer to |
|
6361 octave_value for defn when creating builtin_variable. |
|
6362 |
|
6363 * gripes.h, gripes.cc (gripe_invalid_conversion): Args are |
|
6364 strings, not char*. |
|
6365 (gripe_implicit_conversion, gripe_divide_by_zero): New extern |
|
6366 gripe functions. |
|
6367 |
|
6368 * mkbuiltins: For each file, create a separate static function to |
|
6369 install builtins, then create another single extern function to |
|
6370 call all of them. |
|
6371 |
|
6372 * pt-fcn.cc (tree_function::bind_nargin_and_nargout): |
|
6373 Just pass doubles and let symbol_record::define handle creating |
|
6374 new value. |
|
6375 |
|
6376 * pt-pr-code.cc, pt-pr-code.h (visit_constant): Renamed from |
|
6377 visit_octave_value. |
|
6378 (visit_unary_expression): Use tree_expression::is_prefix_op() |
|
6379 instead of switch on op types. |
|
6380 |
|
6381 * pt-walk.h (visit_constant): Renamed from visit_octave_value. |
|
6382 |
|
6383 * pt-misc.cc (initialize_undefined_elements): Get reference to |
|
6384 tmp, then assign. |
|
6385 * pt-cmd.cc (do_for_loop_once): Likewise, for loop identifier. |
|
6386 |
|
6387 * input.cc (generate_struct_completions, looks_like_struct): Cast |
|
6388 tmp_fvc to tree_constant*, not octave_value*. |
|
6389 (get_user_input): Call print() on retval, not eval(1). |
|
6390 |
|
6391 * help.cc (Ftype): Cast defn to tree_constant*, not octave_value*. |
|
6392 |
|
6393 * balance.cc: Fix docstring. |
|
6394 |
|
6395 * dassl.cc, fsolve.cc, load-save.cc, lsode.cc, npsol.cc, qpsol.cc, |
|
6396 quad.cc: |
|
6397 Include pt-fvc.h. |
|
6398 |
|
6399 * data.cc (Fstruct_contains): call octave_value::struct_elt_val, |
|
6400 not octave_value::lookup_map_element. |
|
6401 |
|
6402 * dirfns.cc (Fcd): Pass directory name as string directly to |
|
6403 bind_builtin_variable instead of creating new octave_value. |
|
6404 |
|
6405 * toplev.cc: Include pt-fvc.h and lo-mappers.h |
|
6406 |
|
6407 * data.cc, error.cc, file-io.cc, load-save.cc, pager.cc, |
|
6408 pt-mat.cc, pt-plot.cc, syscalls.cc, toplev.cc: |
|
6409 Include variables.h. |
|
6410 |
|
6411 * Array-tc.cc, Map-tc.cc, SLList-misc.cc SLList-tc.cc, data.cc, |
|
6412 defaults.cc, dynamic-ld.cc, error.cc, gripes.cc, lex.l, octave.cc, |
|
6413 oct-map.h, oct-map.cc, oct-obj.h, pt-cmd.cc, pt-exp.cc, pt-fcn.cc, |
|
6414 pt-fvc-base.cc, pt-mat.cc, pt-misc.cc, pt-mvr-base.cc, pt-mvr.h, |
|
6415 resource.cc, strfns.cc, sysdep.cc, timefns.cc, toplev.cc: |
|
6416 Include ov.h instead of pt-const.h. |
|
6417 |
|
6418 * xpow.cc (any_element_is_negative): Delete. |
|
6419 (xpow and elem_xpow functions): Check conformance here. |
|
6420 |
|
6421 * xdiv.cc (mx_leftdiv_conform, mx_div_conform): |
|
6422 Now template-based, taking Matrices instead of dimensions as args. |
|
6423 Change all callers. |
|
6424 |
|
6425 * op-cm-cm.cc, op-cm-cm.h, op-cm-cs.cc, op-cm-cs.h, op-cm-m.cc, |
|
6426 op-cm-m.h, op-cm-s.cc, op-cm-s.h, op-cs-cm.cc, op-cs-cm.h, |
|
6427 op-cs-cs.cc, op-cs-cs.h, op-cs-m.cc, op-cs-m.h, op-cs-s.cc, |
|
6428 op-cs-s.h, op-m-cm.cc, op-m-cm.h, op-m-cs.cc, op-m-cs.h, op-m-m.cc, |
|
6429 op-m-m.h, op-m-s.cc, op-m-s.h, op-s-cm.cc, op-s-cm.h, op-s-cs.cc, |
|
6430 op-s-cs.h, op-s-m.cc, op-s-m.h, op-s-s.cc, op-s-s.h, |
|
6431 op-str-str.cc, op-str-str.h, ops.cc, ops.h, ov-base.cc, ov-base.h, |
|
6432 ov-ch-mat.cc, ov-ch-mat.h, ov-colon.cc, ov-colon.h, ov-complex.cc, |
|
6433 ov-complex.h, ov-cx-mat.cc, ov-cx-mat.h, ov-range.cc, ov-range.h, |
|
6434 ov-re-mat.cc, ov-re-mat.h, ov-scalar.cc, ov-scalar.h, ov-str-mat.cc, |
|
6435 ov-str-mat.h, ov-struct.cc, ov-struct.h, ov-typeinfo.cc, |
|
6436 ov-typeinfo.h, ov-va-args.cc, ov-va-args.h, ov.cc, ov.h: |
|
6437 New files for Octave's new type system. |
|
6438 * Makefile.in: Add them to the appropriate lists. |
|
6439 |
|
6440 Sat Sep 14 21:58:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6441 |
|
6442 * mkbuiltins: Use .df instead of .def. |
|
6443 Write one function for each .df file, then call them |
|
6444 all in install_builtin_functions(). |
|
6445 * Makefile.in: Handle .df instead of .def. |
|
6446 |
|
6447 * balance.cc (balance): Fix typo in doc string. |
|
6448 |
|
6449 Wed Aug 28 21:01:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6450 |
|
6451 * octave.cc (verbose_usage): Include WWW address and bug-octave |
|
6452 mailing list address. |
|
6453 |
2354
|
6454 Tue Aug 20 17:41:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6455 |
2358
|
6456 * Makefile.in: Only define pattern rules for making .oct files if |
|
6457 OCTAVE_LITE is true. |
|
6458 Only add pic/ to $(TI_OBJ) if $(SHARED_LIBS) is true. |
|
6459 (stamp-picdir): Only create a pic subdirectory if SHARED_LIBS or |
|
6460 OCTAVE_LITE is true AND CPICFLAG or CXXPICFLAG is not empty. |
|
6461 |
2354
|
6462 * minmax.cc (Fmin, Fmax): Deal with changes to Matrix class |
|
6463 min/max methods. |
|
6464 |
2345
|
6465 Thu Jul 25 01:42:38 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6466 |
2348
|
6467 * input.cc (generate_possible_completions): Force the names to be |
|
6468 unique. |
|
6469 |
2345
|
6470 * load-save.cc (read_mat_binary_data): Expect to read terminating |
|
6471 NUL character in the variable name. |
|
6472 (save_mat_binary_data): Likewise, save it here. |
|
6473 |
2341
|
6474 Wed Jul 24 05:08:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6475 |
2343
|
6476 * lsode.cc (Flsode): Don't set the return value if an error |
|
6477 occurred during integration. |
2344
|
6478 * dassl.cc (Fdassl): Likewise. |
2343
|
6479 |
2341
|
6480 * file-io.cc (symbols_of_file_io): Redefine values of SEEK_SET, |
|
6481 SEEK_CUR, and SEEK_END for Matlab compatibility. |
|
6482 * oct-stream.cc (seek): Check for compatible values of ORIGIN arg. |
|
6483 Also handle "bof", "cof", and "eof". |
|
6484 |
2338
|
6485 Fri Jul 19 15:24:36 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6486 |
|
6487 * pt-const.cc: When creating octave_value_reps from ComplexMatrix |
|
6488 values, check to see if all the elements are actually real. |
|
6489 |
2330
|
6490 Tue Jul 16 10:53:42 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6491 |
2341
|
6492 * input.cc (decode_prompt_string): Swap meanings of \h and \H. |
2330
|
6493 |
|
6494 Mon Jul 15 16:01:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6495 |
|
6496 * toplev.cc (run_command_and_return_output): Renamed from do_system. |
|
6497 (Fsystem): Make `system ("emacs")' work as one would expect. |
|
6498 |
|
6499 Sun Jul 14 17:34:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6500 |
|
6501 * file-io.cc (Ffopen, Ffread, Ffwrite): Update doc strings, |
|
6502 correctly handle default architecture and precision args. |
|
6503 |
|
6504 * load-save.cc (mopt_digit_to_float_format): Rename from |
|
6505 get_floating_point_format. |
|
6506 (float_format_to_mopt_digit): New function. |
|
6507 |
|
6508 * oct-stream.cc (octave_base_stream::read, octave_base_stream::write): |
|
6509 Simplify by calling Matrix::read and Matrix::write to do real work |
|
6510 of reading, writing, and format conversion. |
|
6511 |
|
6512 * oct-stream.h (octave_base_stream): Move data_type enum to |
|
6513 liboctave/data-conv.h. Use float_format from |
|
6514 liboctave/mach-info.h instead of arch_type enum. |
|
6515 |
|
6516 * sysdep.h, sysdep.cc (octave_words_big_endian, ten_little_endians): |
|
6517 Delete. Now part of oct_mach_info class in liboctave. |
|
6518 |
|
6519 Tue Jul 9 11:18:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6520 |
|
6521 * arith-ops.cc, balance.cc, dassl.cc, data.cc, filter.cc, find.cc, |
|
6522 fsolve.cc, load-save.cc, log.cc, lsode.cc, minmax.cc, npsol.cc, |
|
6523 oct-obj.cc, oct-stream.cc, pr-output.cc, pt-cmd.cc, pt-const.cc, |
|
6524 pt-fvc.cc, pt-plot.cc, quad.cc, rand.cc, sighandlers.cc, sort.cc, |
|
6525 syscalls.cc, unwind-prot.cc, xdiv.cc, xpow.cc: |
|
6526 When indexing arrays, use operator() instead of elem() so that |
|
6527 bounds checking can be done consistently. |
|
6528 |
|
6529 Mon Jun 24 02:13:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6530 |
|
6531 * Makefile.in (install-oct): Use INSTALL_PROGRAM, instead of |
|
6532 INSTALL_DATA for installing shared libraries. |
|
6533 |
|
6534 * lex.l (grab_help_text): Ignore all initial comment characters, |
|
6535 not just the first. |
|
6536 * variables.cc (gobble_leading_white_space): Likewise. |
|
6537 |
|
6538 Sat Jun 22 22:43:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6539 |
|
6540 * input.h, input.cc (octave_completion_matches_called): New varaible. |
|
6541 (Fcompletion_matches): Set it to true on a successful call. |
|
6542 * toplev.cc (main_loop): If octave_completion_matches_called is |
|
6543 true, don't increment current_command_number. |
|
6544 |
|
6545 Thu Jun 13 03:52:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6546 |
|
6547 * variables.cc (is_mapper_function_name, |
|
6548 is_builtin_function_name): New functions. |
|
6549 (Fdocument): Use them. |
|
6550 Define as regular function, not a text style function. |
|
6551 |
|
6552 Thu Jun 6 00:09:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6553 |
|
6554 * pt-plot.cc: Handle new built-in variable `gnuplot_has_frames'. |
|
6555 |
|
6556 Wed Jun 5 14:45:04 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6557 |
|
6558 * input.cc (decode_prompt_string): \h now means the whole host |
|
6559 name and \H is the host name up to the first `.'. |
|
6560 |
|
6561 Thu May 30 23:41:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6562 |
|
6563 * fn-cache.cc (octave_fcn_file_name_cache::do_list): Always |
|
6564 recompute the lists of function files instead of trying to cache |
|
6565 them. |
|
6566 |
|
6567 Tue May 28 12:05:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6568 |
|
6569 * utils.cc (warn_old_style_preference): New function. |
|
6570 (check_preference): Use it. |
|
6571 |
|
6572 * fn-cache.h: Include <ctime> here. |
|
6573 |
|
6574 Fri May 24 00:57:14 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6575 |
|
6576 * input.cc (completion_matches): Don't return empty string_vectors. |
|
6577 |
|
6578 * octave.cc (long_opts): Add braindead. |
|
6579 |
|
6580 Thu May 23 01:49:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6581 |
|
6582 * input.cc (gnu_readline): New optional arg, force_readline. |
|
6583 (get_user_input): Use it. |
|
6584 |
|
6585 * pt-const.cc (OCT_VAL_REP::assign): If converting the rhs to a |
|
6586 numeric value, convert a copy, not the actual object. |
|
6587 (OCT_VAL_REP::do_index): Prevent s([]) from resulting in a string |
|
6588 with zero rows. |
|
6589 |
|
6590 * mappers.cc: Handle toascii here. |
|
6591 * strfns.cc: Not here. |
|
6592 |
|
6593 * mappers.cc: Handle tolower and toupper here. |
|
6594 * mappers.h: Rename can_return_complex_for_real to flag and |
|
6595 overload meaning for ch_mapper. |
|
6596 * pt-fvc.cc (apply_mapper_fcn): Handle overloaded meaning. |
|
6597 |
|
6598 * syscalls.cc (stat): Return 3 values instead of just 1. |
|
6599 (lstat): Likewise. |
|
6600 |
|
6601 Wed May 22 02:34:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6602 |
|
6603 * pt-const.cc (OCT_VAL_REP::make_numeric): For string to number |
|
6604 conversions, correctly set type tag before calling force_numeric. |
|
6605 (do_binary_op): Force string to number conversion if both args are |
|
6606 strings and we are doing some sort of comparison operation. |
|
6607 |
|
6608 * Makefile.in (stamp-tinst, stamp-interp): Use SH_TERMLIBS and |
|
6609 SH_LIBS instead of TERMLIBS and LIBS. |
|
6610 |
|
6611 * pt-const.cc (do_unary_op): Add special case to handle |
|
6612 transposing strings. |
|
6613 |
|
6614 * pt-mat.cc (Vstring_fill_char): New variable. |
|
6615 (symbols_of_pt_mat): DEFVAR it. |
|
6616 |
|
6617 * input.cc (generate_struct_completions, |
|
6618 generate_possible_completions): Return string_vector, not char **. |
|
6619 Change all callers. |
|
6620 |
|
6621 * pt-const.cc (lookup_map_element): Use substr() correctly. |
|
6622 |
|
6623 Tue May 21 21:37:17 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6624 |
|
6625 * oct.h: New file. |
|
6626 * Makefile.in (INCLUDES): Add it to the list. |
|
6627 |
|
6628 * octave.cc: New args --no-site-file and --no-init-file. Delete |
|
6629 --ignore-init-file. The flag --norc (-f) implies both |
|
6630 --no-site-file and --no-init-file. |
|
6631 |
|
6632 Fri May 17 01:54:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6633 |
|
6634 * input.cc (Fcompletion_matches): New function. |
|
6635 |
|
6636 * utils.cc (get_fcn_file_names): Delete. |
|
6637 * help.cc (simple_help): Use new file name cache instead of |
|
6638 calling get_fcn_file_names. |
|
6639 * variables.cc (make_name_list): Likewise. |
|
6640 |
|
6641 * fn-cache.h, fn-cache.cc, Map-fnc.cc: New files. |
|
6642 * Makefile.in: Add them to the lists. |
|
6643 |
|
6644 * Makefile.in (uninstall): Install in octincludedir, not includedir. |
|
6645 |
|
6646 * pt-plot.h: Include <csignal> here. |
|
6647 |
|
6648 Thu May 16 10:52:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6649 |
|
6650 * oct-stream.cc (octave_stream::oscanf, octave_base_stream::oscanf, |
|
6651 octave_base_stream::do_oscanf): New functions for backward |
|
6652 compatibility with older versions of Octave. |
|
6653 (scanf_format_elt, scanf_format_list): Keep track of width specifier. |
|
6654 * file-io.cc (Fscanf): New function. |
|
6655 (Fscanf, Ffscanf, Fsscanf): Handle compatibility arg. |
|
6656 |
|
6657 Wed May 15 01:00:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6658 |
|
6659 * oct-stream.cc (do_scanf): If doing '%c' conversion, unset |
|
6660 ios::skipws on input stream. |
|
6661 |
|
6662 * sighandlers.h, sighandlers.cc (octave_child, octave_child_list): |
|
6663 New classes for keeping track of the child processes we create. |
|
6664 (sigchld_handler): Check in octave_child_list to see if there is |
|
6665 anything we can do for the child that died. |
|
6666 * pager.cc: Register child pager process. |
|
6667 * pt-plot.cc: Likewise, for the plotter. |
|
6668 * Array-oc.cc: New file |
|
6669 * Makefile.in (TI_SRC): Add it to the list. |
|
6670 |
|
6671 * pager.cc (do_sync): Don't check error_state. |
|
6672 (flushing_output_to_pager): New static variable. |
|
6673 (flush_octave_stdout): Use it to avoid doing anything if already |
|
6674 flushing output. |
|
6675 |
|
6676 * sighandlers.cc (sigchld_handler): Call warning instead of |
|
6677 writing directly to cerr. |
|
6678 (sigpipe_handler): Call warning instead of message. |
|
6679 |
|
6680 * octave.cc (main): Call install_signal_handlers, |
|
6681 initialize_file_io, initialize_symbol_tables, and install_builtins |
|
6682 before parsing command line options. |
|
6683 |
|
6684 * user-prefs.h, user-prefs.cc: Delete. |
|
6685 |
|
6686 * utils.cc (check_preference): Move here. |
|
6687 * user-prefs.cc: From here. |
|
6688 |
|
6689 * defaults.cc: New file. Move initialization stuff from |
|
6690 variables.cc. Move DEFVARS for EDITOR, EXEC_PATH, LOADPATH, |
|
6691 IMAGEPATH, and OCTAVE_VERSION here. |
|
6692 |
|
6693 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6694 INFO_FILE and INFO_PROGRAM. |
|
6695 * help.cc: Move all of that here. |
|
6696 (symbols_of_help): Add DEFVARS for INFO_FILE and INFO_PROGRAM. |
|
6697 |
|
6698 Tue May 14 00:23:06 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6699 |
|
6700 * pager.cc (do_sync): Be more defensive about sending stuff to the |
|
6701 external pager. |
|
6702 * sighandlers.cc (sigchld_handler): For now, only wait for |
|
6703 octave_pager_pid. Don't call error(). Do set octave_pager_pid to |
|
6704 -1 if the pager process no longer exists. |
|
6705 |
|
6706 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6707 PWD. |
|
6708 * dirfns.cc: Move all of that here. |
|
6709 (symbols_of_dirfns): New function. |
|
6710 * variables.cc (install_builtin_variables): Call it. |
|
6711 |
|
6712 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6713 default_save_format and save_precision. |
|
6714 * load-save.cc: Move all of that here. |
|
6715 (symbols_of_load_save): New function. |
|
6716 * variables.cc (install_builtin_variables): Call it. |
|
6717 |
|
6718 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6719 warn_divide_by_zero. |
|
6720 * arith-ops.cc: Move all of that here. |
|
6721 (symbols_of_arith_ops): New function. |
|
6722 * variables.cc (install_builtin_variables): Call it. |
|
6723 |
|
6724 * mappers.cc: Add wrappers for ctype is* functions so that they |
|
6725 will work on systems that only define them as macros. |
|
6726 |
|
6727 Mon May 13 00:27:08 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6728 |
|
6729 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6730 suppress_verbose_help_message. |
|
6731 * help.cc: Move all of that here. |
|
6732 (symbols_of_help): New function. |
|
6733 * variables.cc (install_builtin_variables): Call it. |
|
6734 |
|
6735 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6736 treat_neg_dim_as_zero. |
|
6737 * pt-const.cc: Move all of that here. |
|
6738 |
|
6739 * pager.cc (octave_pager_stream::do_sync): Don't return early if |
|
6740 not interactive. |
|
6741 |
|
6742 * data.h: New file. |
|
6743 * Makefile.in (INCLUDES): Add it to the list. |
|
6744 * data.cc (symbols_of_data): New function. Move definition of I, |
|
6745 Inf, J, NaN, e, eps, i, inf, j, nan, pi, realmin, and realmax here. |
|
6746 * variables.cc: From here. |
|
6747 (install_builtin_variables): Call symbols_of_data. |
|
6748 |
|
6749 * file-io.cc (symbols_of_file_io): New function. Move definition |
|
6750 of SEEK_CUR, SEEK_END, SEEK_SET, stdin, stdout, stderr here. |
|
6751 * variables.cc: From here. |
|
6752 (install_builtin_variables): Call symbols_of_file_io. |
|
6753 |
|
6754 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6755 do_fortran_indexing, implicit_str_to_num_ok, |
|
6756 ok_to_lose_imaginary_part, prefer_column_vectors, |
|
6757 prefer_zero_one_indexing, print_answer_id_name, |
|
6758 propagate_empty_matrices, resize_on_range_error, and |
|
6759 struct_levels_to_print. |
|
6760 * pt-const.cc: Move all of that here. |
|
6761 (symbols_of_pt_const): New function. |
|
6762 * variables.cc (install_builtin_variables): Call it. |
|
6763 * pt-fvc.cc (tree_identifier::assign): Use Vresize_on_range_error |
|
6764 instead of user_pref.resize_on_range_error here. |
|
6765 * load-save.cc (save_mat_binary_data): Use Vimplicit_str_to_num_ok |
|
6766 instead of user_pref.implicit_str_to_num_ok here. |
|
6767 * utils.cc (empty_arg): Use Vpropagate_empty_matrices instead of |
|
6768 user_pref.propagate_empty_matrices here. |
|
6769 * pt-exp-base.cc (tree_expression::is_logically_true): Likewise.. |
|
6770 |
|
6771 * pt-fcn.cc (symbols_of_pt_fcn): Also move DEFVAR for |
|
6772 default_return_value here. |
|
6773 |
|
6774 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6775 ps1, ps2, ps4, and completion_append_char. |
|
6776 * input.cc: Move all of that here. |
|
6777 (symbols_of_input): New function. |
|
6778 * variables.cc (install_builtin_variables): Call it. |
|
6779 * pt-pr-code.cc (indent): Use Vps4 instead of user_pref.ps4 here. |
|
6780 * help.cc (Ftype): Also here. |
|
6781 |
|
6782 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6783 automatic_replot, gnuplot_binary, and gnuplot_has_multiplot. |
|
6784 * pt-plot.cc: Move all of that here. |
|
6785 (symbols_of_pt_plot): New function. |
|
6786 * variables.cc (install_builtin_variables): Call it. |
|
6787 |
|
6788 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6789 beep_on_error. |
|
6790 * error.cc: Move all of that here. |
|
6791 (symbols_of_error): New function. |
|
6792 * variables.cc (install_builtin_variables): Call it. |
|
6793 |
|
6794 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6795 empty_list_elements_ok. |
|
6796 * pt-mat.cc: Move all of that here. |
|
6797 (symbols_of_pt_mat): New function. |
|
6798 * variables.cc (install_builtin_variables): Call it. |
|
6799 |
|
6800 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6801 define_all_return_values, return_last_computed_value, and |
|
6802 silent_functions. |
|
6803 * pt-fcn.cc: Move all of that here. |
|
6804 (symbols_of_pt_fcn): New function. |
|
6805 * variables.cc (install_builtin_variables): Call it. |
|
6806 |
|
6807 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6808 whitespace_in_literal_matrix. |
|
6809 * lex.l: Move all of that here. |
|
6810 (symbols_of_lex): New function. |
|
6811 * variables.cc (install_builtin_variables): Call it. |
|
6812 |
|
6813 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6814 warn_assign_as_truth_value, warn_comma_in_global_decl, |
|
6815 warn_function_name_clash, and warn_missing_semicolon. |
|
6816 * parse.y: Move all of that here. |
|
6817 (symbols_of_parse): New function. |
|
6818 * variables.cc (install_builtin_variables): Call it. |
|
6819 |
|
6820 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6821 output_precision, output_max_field_width, print_empty_dimensions, |
|
6822 and split_long_rows. |
|
6823 * pr-output.cc: Move all of that here. |
|
6824 (symbols_of_pr_output): New function. |
|
6825 * variables.cc (install_builtin_variables): Call it. |
|
6826 |
|
6827 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6828 page_screen_output, page_output_immediately, and pager_binary. |
|
6829 * pager.cc: Move all of that here. |
|
6830 |
|
6831 * user-prefs.h (check_preference): Provide declaration. |
|
6832 * user-prefs.cc (check_preference): Make external. |
|
6833 |
|
6834 * toplev.cc (Foctave_config_info): New function. |
|
6835 |
|
6836 * oct-conf.h.in: New file |
|
6837 * Makefile.in (oct-conf.h): New target. |
|
6838 Add it to the appropriate lists. |
|
6839 |
|
6840 * sighandlers.cc (sigchld_handler): Don't complain about wait |
|
6841 returning a negative value. |
|
6842 |
|
6843 * file-io.cc (Fsscanf, Fsprintf): Pass true for second arg of |
|
6844 octave_stream constructor. |
|
6845 |
|
6846 * oct-stream.h (octave_stream): New field, preserve. |
|
6847 (octave_stream::~octave_stream): If preserve, don't delete rep. |
|
6848 |
|
6849 * pager.cc (symbols_of_pager): Set default for |
|
6850 page_output_immediately to 0. |
|
6851 |
|
6852 * toplev.cc (do_system): Correctly handle return_output. |
|
6853 Append ends to output_buf before calling str(). |
|
6854 |
|
6855 * variables.cc: If M_PI and M_E are available, use them. |
|
6856 |
|
6857 * mk-oct-links.in (links_dir): If old link exists, delete it first. |
|
6858 |
|
6859 Sun May 12 01:46:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6860 |
|
6861 * Makefile.in (DISTFILES): List defaults.h.in and oct-gperf.h here. |
|
6862 (INCLUDES): Not here. |
|
6863 (install-inc): New target. |
|
6864 (uninstall): Also delete libraries and include files. |
|
6865 (install-inc): If linkdir is a directory, leave it alone. |
|
6866 (TERMLIBS, LIBPLPLOT, LIBDLFCN): Don't substitute here (now in |
|
6867 Makeconf). |
|
6868 |
|
6869 * oct-stream.cc (octave_base_stream::do_read): Provide initial |
|
6870 value for tmp var. |
|
6871 |
|
6872 * pt-walk.h, pt-pr-code.h, pt-pr-code.cc: New tree-walking classes. |
|
6873 * Makefile.in: Add them to the appropriate lists. |
|
6874 * pt-fvc-base.h, pt-exp-base.cc, pt-fvc-base.cc, pt-mvr-base.cc, |
|
6875 pt-base.cc, pt-mvr.cc, pt-mat.h, pt-mat.cc, pt-fvc.cc, |
|
6876 pt-const.cc, pt-cmd.cc, pt-const.h, pt-misc.cc, pt-plot.cc, |
|
6877 pt-fcn.cc, pt-plot.h, pt-mvr.h, pt-mvr-base.h, pt-misc.h, |
|
6878 pt-fcn.h, pt-exp.h, pt-exp.cc, pt-exp-base.h, pt-fvc.h, pt-cmd.h, |
|
6879 pt-base.h: |
|
6880 Replace print_code stuff with accept() functions. |
|
6881 Add member access functions where necessary. |
|
6882 * help.cc (Ftype): Update to use new method of walking trees to |
|
6883 print text representation of user-defined functions. |
|
6884 |
|
6885 * file-io.cc (Ffscanf): Update doc string. |
|
6886 (Fsscanf): Likewise. |
|
6887 |
|
6888 * oct-stream.cc (octave_base_stream::do_read): Correctly set max_size. |
|
6889 Pad mval with zeros on final resize. |
|
6890 (octave_base_stream::do_scanf): Likewise. |
|
6891 (do_scanf_conv): Correctly resize mval. |
|
6892 |
|
6893 Sat May 11 05:14:09 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6894 |
|
6895 * pager.cc (octave_pager_buf::sync): Correctly set bypass_pager. |
|
6896 |
|
6897 * lex.l (<MATRIX>{SNLCMT}*\]{S}*): Match SNLCMT, not just SNL. |
|
6898 |
|
6899 Fri May 3 11:05:30 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6900 |
|
6901 * pt-const.cc (OCT_VAL_REP::set_index): Complain if type can't be |
|
6902 indexed. |
|
6903 |
|
6904 * input.cc (get_user_input): Don't increment input line number if |
|
6905 input is coming from eval string. |
|
6906 |
|
6907 * user-prefs.cc: Allow empty strings for prompts. |
|
6908 |
|
6909 Thu May 2 10:50:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6910 |
|
6911 * pt-mvr.h (class tree_oct_obj): Declare values data member const. |
|
6912 |
|
6913 Sun Apr 28 03:16:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6914 |
|
6915 * user-prefs.h (user_preferences): New field, |
|
6916 `page_output_immediately'. |
|
6917 * user-prefs.cc (init_user_prefs): Initialize it. |
|
6918 (page_output_immediately): New function. |
|
6919 * pager.cc (syms_of_pager): Add DEFVAR. |
|
6920 (really_flush_to_pager): New file-scope variable. |
|
6921 (flush_octave_stdout): Set and restore it. |
|
6922 (octave_pager_buf::sync): Check it, user_pref.page_screen_output, |
|
6923 and user_pref.page_output_immediately to decide when to really |
|
6924 flush output. |
|
6925 (more_than_a_screenful): New function. If paging but not |
|
6926 immediately, then check this too. |
|
6927 |
|
6928 * pager.cc (default_pager): Move here from variables.cc. If pager |
|
6929 is less and LESS is not in the environment, append useful flags. |
|
6930 (symbols_of_pager): New function. |
|
6931 * variables.cc (install_builtin_variables): Call it. |
|
6932 Delete pager-related DEFVARs. |
|
6933 |
|
6934 * syswait.h (WIFSIGNALLED): Define if sys/wait.h doesn't. |
|
6935 |
|
6936 * sighandlers.cc: Handle SIGCHLD. |
|
6937 |
|
6938 * pager.cc, pager.h: Rewrite. |
|
6939 * pt-mvr.cc, pt-misc.cc, pt-fcn.cc, pt-const.cc, oct-hist.cc, |
|
6940 file-io.cc, help.cc, variables.cc, qpsol.cc, dassl.cc, quad.cc, |
|
6941 npsol.cc, lsode.cc, fsolve.cc, load-save.cc, dirfns.cc, octave.cc, |
|
6942 toplev.cc, error.cc, input.cc: |
|
6943 Write to octave_stdout and octave_diary instead of calling |
|
6944 maybe_page_output() or maybe_write_to_diary_file(). |
|
6945 |
|
6946 * oct-procbuf.h, oct-procbuf.cc: New files. |
|
6947 * procstream.h (class procstreambase): Use octave_procbuf instead |
|
6948 of procbuf from libg++, so we can get pids of subprocesses. |
|
6949 |
|
6950 Fri Apr 26 01:21:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6951 |
|
6952 * pt-const.cc (OCT_VAL_REP::do_index): Call maybe_mutate() before |
|
6953 returning. |
|
6954 |
|
6955 * mappers.h (struct Mapper_fcn): Delete. |
|
6956 (struct builtin_mapper_function): New field ch_mapper. |
|
6957 * pt-fvc.h (tree_builtin): Convert type of mapper_fcn from |
|
6958 Mapper_fcn to builtin_mapper_function. |
|
6959 * variables.cc (install_builtin_mapper): Likewise, for arg. |
|
6960 Simplify, since we don't have to do the copying ourselves now. |
|
6961 * pt-fvc.cc (apply_mapper_function): Handle ch_mapper case. |
|
6962 * defun.h (DEFUN_MAPPER): Likewise. |
|
6963 * mappers.cc (install_builtin_mappers): Likewise. |
|
6964 Add ctype is* functions here. |
|
6965 |
|
6966 Thu Apr 25 00:57:06 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6967 |
|
6968 * arith-ops.h, defun-int.h, defun.h, dynamic-ld.h, gripes.h, |
|
6969 load-save.h, oct-map.h, oct-obj.h, oct-stream.h, pt-cmd.h, |
|
6970 pt-const.h, pt-exp-base.h, pt-exp.h, pt-fcn.h, pt-fvc-base.h, |
|
6971 pt-fvc.h, pt-mat.h, pt-misc.h, pt-mvr-base.h, pt-mvr.h, pt-plot.h, |
|
6972 symtab.h, toplev.h, utils.h, variables.h, xpow.h, Array-tc.cc, |
|
6973 Map-i.cc, Map-tc.cc, SLList-tc.cc, arith-ops.cc, balance.cc, |
|
6974 bogus.cc, chol.cc, colloc.cc, dassl.cc, data.cc, det.cc, |
|
6975 dirfns.cc, eig.cc, error.cc, expm.cc, fft.cc, fft2.cc, file-io.cc, |
|
6976 filter.cc, find.cc, fsolve.cc, fsqp.cc, givens.cc, gripes.cc, |
|
6977 help.cc, hess.cc, ifft.cc, ifft2.cc, input.cc, inv.cc, |
|
6978 load-save.cc, log.cc, lpsolve.cc, lsode.cc, lu.cc, minmax.cc, |
|
6979 npsol.cc, oct-hist.cc, oct-obj.cc, oct-stream.cc, pager.cc, |
|
6980 pinv.cc, pr-output.cc, pt-cmd.cc, pt-const.cc, pt-exp-base.cc, |
|
6981 pt-exp.cc, pt-fcn.cc, pt-fvc-base.cc, pt-fvc.cc, pt-mat.cc, |
|
6982 pt-misc.cc, pt-mvr-base.cc, pt-mvr.cc, pt-plot.cc, qpsol.cc, |
|
6983 qr.cc, quad.cc, qzval.cc, rand.cc, resource.cc, schur.cc, sort.cc, |
|
6984 strfns.cc, svd.cc, syl.cc, symtab.cc, syscalls.cc, sysdep.cc, |
|
6985 timefns.cc, toplev.cc, utils.cc, variables.cc, xpow.cc, parse.y: |
|
6986 Rename tree_constant -> octave_value. |
|
6987 Rename Octave_object -> octave_value_list. |
|
6988 |
|
6989 Wed Apr 24 22:15:34 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6990 |
|
6991 * toplev.cc (Fsystem): Merge functionality of async_system and |
|
6992 sync_system. |
|
6993 |
|
6994 * oct-fstrm.h, oct-iostrm.h, oct-prcstrm.h, oct-stdstrm.h, |
|
6995 oct-stream.h, oct-strstrm.h, oct-fstrm.cc, oct-iostrm.cc, |
|
6996 oct-prcstrm.cc, oct-stdstrm.cc, oct-stream.cc, oct-strstrm.cc, |
|
6997 Array-os.cc: New files. |
|
6998 * Makefile.in: Add them to the appropriate lists. |
|
6999 * file-io.cc: Rewrite to use new stream classes. |
|
7000 |
|
7001 Tue Apr 23 18:59:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7002 |
|
7003 * gripes.cc (gripe_not_supported): New function. |
|
7004 |
|
7005 * toplev.cc (do_octave_atexit, Fatexit): New functions. |
|
7006 (octave_atexit_functions): New file-scope variable. |
|
7007 * octave.cc (main): Register do_octave_atexit with atexit. |
|
7008 |
|
7009 * variables.cc (install_builtin_variables): Call |
|
7010 symbols_of_syscalls here. |
|
7011 |
|
7012 * syscalls.h, syscalls.cc: New files. |
|
7013 |
|
7014 Mon Apr 22 21:14:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7015 |
|
7016 * syscalls.cc: New file. |
|
7017 (Flstat, Fmkfifo, Fstat, Funlink, Fwait, Fwaitpid): Move here. |
|
7018 * file-io.cc: From here. |
|
7019 * Makefile.in (SOURCES): Add syscalls.cc to the list. |
|
7020 |
|
7021 Wed Apr 17 18:34:10 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7022 |
|
7023 * file-info.h, file-info.cc: Delete files. |
|
7024 * Makefile.in: Remove from lists. |
|
7025 |
|
7026 * toplev.cc (Fquit): Accept exit status argument. |
|
7027 (Fflops): Delete (now a function file). |
|
7028 |
|
7029 Thu Apr 11 16:20:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7030 |
|
7031 * lex.l: Recognize `.'. |
|
7032 Update current_input_column even for unrecognized characters. |
|
7033 Return LEXICAL_ERROR for unrecognized characters. |
|
7034 |
|
7035 Mon Apr 8 19:59:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7036 |
|
7037 * variables.cc (install_builtin_variables): Split into several |
|
7038 functions to make compiling with g++ go faster and consume less |
|
7039 memory. |
|
7040 |
|
7041 Sun Apr 7 16:25:35 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7042 |
|
7043 * load-save.cc (Fsave): Print usage if i == argc. |
|
7044 (Fload): Likewise. |
|
7045 |
|
7046 Sat Apr 6 21:26:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7047 |
|
7048 * Makefile.in (clean): Also delete pic/*.o |
|
7049 (maintainer-clean, distclean): Also remove stamp-picdir, |
|
7050 stamp-tinst, stamp-interp, and pic directory. |
|
7051 (stamp-prereq): New target. |
|
7052 |
|
7053 Wed Apr 3 11:19:30 1996 Rick Niles <niles@axp745.gsfc.nasa.gov> |
|
7054 |
|
7055 * resource.cc: Don't make including sys/resource.h and sys/times.h |
|
7056 mutually exclusive. |
|
7057 |
|
7058 Fri Mar 29 13:43:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7059 |
|
7060 * Makefile.in (distclean): Delete so_locations, which is created |
|
7061 on DEC Alpha systems. |
|
7062 |
|
7063 Thu Mar 28 02:53:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7064 |
|
7065 * utils.h (undo_string_escape): Provide extern declaration here. |
|
7066 |
|
7067 * lex.l (NL): Allow \r\n as new line character. |
|
7068 (.): Complain if invalid character is found on input |
|
7069 |
|
7070 Fri Mar 22 03:47:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7071 |
|
7072 * resource.cc (getrusage): If getrusage is missing, try using |
|
7073 times to at least fill in the cpu time values. If neither one is |
|
7074 available, return 0 for cpu times instead of NaN. |
|
7075 |
|
7076 * sighandlers.cc (octave_signal_mask): New file-scope variable. |
|
7077 (octave_save_signal_mask, octave_restore_signal_mask): New functions. |
|
7078 * toplev.cc (main_loop): Use them. |
|
7079 |
|
7080 Wed Mar 20 01:21:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7081 |
|
7082 * utils.cc (get_fcn_file_names (const string&, int)): Resize |
|
7083 retval to value of k, not i. |
|
7084 (get_fcn_file_names (int)): In loop for copying names to retval, |
|
7085 don't increment j twice. |
|
7086 |
|
7087 Mon Mar 18 22:27:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7088 |
|
7089 * Makefile.in ($(MAKEDEPS)): Depend on oct-gperf.h. |
|
7090 |
|
7091 Fri Mar 1 18:15:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7092 |
|
7093 * fsolve.cc (fsolve_options): Delete unused argument nargout. |
|
7094 |
|
7095 * filter.cc: Use MArray instead of Array so that automatic |
|
7096 conversions will work again. |
|
7097 |
|
7098 Tue Feb 27 04:49:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7099 |
|
7100 * variables.cc (looks_like_octave_copyright): Make the strings |
|
7101 that we are trying to match both have length 29. |
|
7102 |
|
7103 * Makefile.in (install-bin): Use $(INSTALL_PROGRAM), not $(INSTALL). |
|
7104 |
|
7105 * load-save.cc (read_mat_binary_data): Make sure name is |
|
7106 NUL terminated. |
|
7107 |
|
7108 Mon Feb 26 18:18:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7109 |
|
7110 * variables.cc (whos): Make argv from tmp_args, not args. |
|
7111 |
|
7112 * defun.h (DEFCONSTX): Don't stringify name. |
|
7113 |
|
7114 Sat Feb 24 01:12:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7115 |
|
7116 * Makefile.in (install-oct): Make mk-oct-links executable. |
|
7117 * mk-oct-links.in (links_dir): Update to match new format of |
|
7118 DEFUN_DLD_BUILTIN macro. Use LN_S, not just LN. |
|
7119 (links_dir): |
|
7120 |
|
7121 * pr-output.cc (octave_print_internal): New arg, extra_indent, for |
|
7122 versions of this function that take matrices and ranges. |
|
7123 * pt-const.cc (TC_REP::print (ostream&)): Fix printing of structures. |
|
7124 Pass struct_indent to octave_print_internal as appropriate. |
|
7125 (print_with_name (ostream&, const string&, bool)): Handle spacing |
|
7126 around `=' differently for structures. |
|
7127 |
|
7128 Fri Feb 23 04:51:04 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7129 |
|
7130 * token.cc (token (double, const string&, int, int)): Store orig_text. |
|
7131 |
|
7132 Tue Feb 20 20:36:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7133 |
|
7134 * variables.cc (Fclear): Fix off-by-one error. |
|
7135 |
|
7136 Sat Feb 17 16:54:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7137 |
|
7138 * oct-hist.cc (default_history_file): Append "/.octave_hist" to |
|
7139 return value, not to home_directory. |
|
7140 |
|
7141 Fri Feb 16 18:10:46 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7142 |
|
7143 * utils.cc: (NINT, D_NINT): Move to liboctave. |
|
7144 |
|
7145 * sysdep.cc (octave_ieee_init): Move to liboctave. |
|
7146 |
|
7147 * procstream.h, procstream.cc: Rewrite. |
|
7148 |
|
7149 * pager.cc (cleanup_oprocstream): New static function. |
|
7150 * toplev.cc (cleanup_iprocstream): Likewise. |
|
7151 * dirfns.cc (cleanup_iprocstream): Likewise. |
|
7152 |
|
7153 * unwind-prot.cc (matrix_cleanup, complex_matrix_cleanup): Delete. |
|
7154 |
|
7155 Thu Feb 15 22:03:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7156 |
|
7157 * oct-obj.cc, oct-obj.h: Move most code to the header. |
|
7158 |
|
7159 * oct-obj.cc (make_argv, all_strings): New member functions. |
|
7160 * utils.cc: Moved from here. |
|
7161 |
|
7162 * load-save.cc: Move byte swapping stuff to liboctave. |
|
7163 Move float format conversion stuff to liboctave. |
|
7164 (all_parts_int, too_large_for_float): Move to liboctave. |
|
7165 |
|
7166 * symtab.cc (valid_identifier): Move here. |
|
7167 * load-save.cc: From here. |
|
7168 |
|
7169 * sysdep.cc: Move floating-point format stuff to liboctave. |
|
7170 * pr-output.cc: Include float-fmt.h here. |
|
7171 |
|
7172 Wed Feb 14 01:49:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7173 |
|
7174 * defun.h, defun-dld.h, defun-int.h: Simplify interface for DEFUN, |
|
7175 DEFUN_DLD, DEFVAR, and DEFCONST macros. Change all uses. |
|
7176 |
|
7177 * qzval.cc: Move guts to liboctave. |
|
7178 |
|
7179 Tue Feb 13 10:28:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7180 |
|
7181 * variables.cc (parse_fcn_file): Also avoid saving history if |
|
7182 input is from a script file. |
|
7183 |
|
7184 * help.cc (Ftype): Call unwind_protect_str for user_pref.ps4. |
|
7185 |
|
7186 * npsol.cc (nonlinear_constraints_ok): Now static. |
|
7187 |
|
7188 * npsol.cc (linear_constraints_ok): Now static. |
|
7189 * qpsol.cc (linear_constraints_ok): Duplicate here. |
|
7190 |
|
7191 * data.cc (Flinspace): Don't print usage message if nargin == 2. |
|
7192 |
|
7193 Sun Feb 11 14:20:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7194 |
|
7195 * mk-oct-links.in: Rename from mk-oct-links. |
|
7196 (LN_S): Use this variable instead of ln. |
|
7197 Set -e option for shell. |
|
7198 Exit with status of last command. |
|
7199 Print message when making link. |
|
7200 * Makefile.in (DISTFILES): Add mk-oct-links.in to the list. |
|
7201 (install-oct): Run ./mk-oct-links, not $(srcdir)/mk-oct-links. |
|
7202 |
|
7203 * variables.cc (install_builtin_variables): Restore accidentally |
|
7204 deleted DEFVAR for save_precision. |
|
7205 |
|
7206 Fri Feb 9 11:24:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7207 |
|
7208 * Makefile.in (INCLUDES): Delete statdefs.h from the list (it's |
|
7209 now in the liboctave directory). |
|
7210 |
|
7211 * toplev.cc (toplevel): Define here. |
|
7212 * octave.cc (toplevel): Not here. |
|
7213 |
|
7214 * toplev.cc (main_loop): New function. |
|
7215 * octave.cc (main): Call it here instead of doing main loop |
|
7216 actions here. |
|
7217 |
|
7218 * user-prefs.cc (do_fortran_indexing): Also set liboctave_dfi_flag. |
|
7219 (prefer_column_vectors): Also set liboctave_pcv_flag. |
|
7220 (prefer_zero_one_indexing): Also set liboctave_pzo_flag. |
|
7221 (resize_on_range_error): Also set liboctave_rre_flag. |
|
7222 |
|
7223 * variables.cc (restore_command_history): New function. |
|
7224 (parse_fcn_file): Use it here in unwind_protect. |
|
7225 |
|
7226 * dynamic-ld.cc (load_octave_oct_file): Reverse sense of test. |
|
7227 (load_octave_builtin): Delete. |
|
7228 (mangle_octave_oct_file_name): Delete. |
|
7229 |
|
7230 * pt-fvc.cc (tree_builtin::eval): Don't try to dynamically load |
|
7231 functions here. |
|
7232 |
|
7233 * pr-output.cc (set_format_style): Decrement argc for first arg too. |
|
7234 |
|
7235 * input.cc (gnu_readline): If readline returns an empty string, |
|
7236 convert it to a string containing a single newline character. |
|
7237 |
|
7238 * octave.cc (octave_argv): Now a static string_vector. |
|
7239 (intern_argv): Use string_vector ops, not charMatrix ops. |
|
7240 * toplev.cc (octave_argv): Delete definition. |
|
7241 * toplev.h (octave_argv): Delete declaration. |
|
7242 |
|
7243 Thu Feb 8 10:58:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7244 |
|
7245 * Makefile.in (conf-dist): New target. |
|
7246 |
|
7247 Tue Feb 6 10:59:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7248 |
|
7249 * help.cc (Ftype): Correctly handle structure names. |
|
7250 |
|
7251 Sun Feb 4 02:02:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7252 |
|
7253 * qpsol.cc (Fqpsol): Call set_options(), not copy() to set |
|
7254 options for QPSOL objects. |
|
7255 |
|
7256 * npsol.cc (Fnpsol): Call set_options(), not copy() to set |
|
7257 options for NPSOL objects. |
|
7258 |
|
7259 * quad.cc (Fquad): Call set_options(), not copy() to set |
|
7260 options for Quad objects. |
|
7261 |
|
7262 * dynamic-ld.cc (load_octave_builtin): Don't call destructor on string. |
|
7263 (load_octave_oct_file): Likewise. |
|
7264 Check oct_file.empty(), not just oct_file. |
|
7265 |
|
7266 * fsolve.cc (Ffsolve): Call set_options(), not copy() to set |
|
7267 options for NLEqn object. |
|
7268 |
|
7269 * variables.cc (do_who): Properly set match patterns from argument |
|
7270 vector for call to maybe_list. |
|
7271 |
|
7272 Sat Feb 3 03:29:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7273 |
|
7274 * octave.cc (long_opts): Properly set second field using new enum. |
|
7275 |
|
7276 * lsode.cc: Change ODE to LSODE where appropriate. |
|
7277 Use LSODE_options, not ODE_options. |
|
7278 |
|
7279 * dassl.cc: Change DAE to DASSL where appropriate. |
|
7280 Use DASSL_options, not ODE_options. |
|
7281 |
|
7282 Fri Feb 2 01:41:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7283 |
|
7284 * dirfns.cc: Include unistd.h. |
|
7285 |
|
7286 * parse.y, lex.l: Handle matrix lists without ml or mlnm stacks. |
|
7287 * pt-mat.h, pt-mat.cc (tree_matrix): |
|
7288 Rewrite to use SLList instead of home brew list. |
|
7289 * SLList-tm.cc: New file |
|
7290 * Makefile.in: Add it to the lists. |
|
7291 * SLStack-tm.cc: Delete. |
|
7292 * Makefile.in: Delete it from the lists. |
|
7293 |
|
7294 * All pt-* files: Use bool instead of int where appropriate. |
|
7295 |
|
7296 * Makefile.in (DEP_SOURCES_3): Add octave.cc. |
|
7297 |
|
7298 * pt-const.h (class tree_constant::tree_constant_rep): Make |
|
7299 everything in this class public, then it doesn't need to declare |
|
7300 the tree_constant class as a friend. |
|
7301 |
|
7302 Thu Feb 1 01:42:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7303 |
|
7304 * lex.h, lex.l, parse.h, parse.y (class lexical_feedback): New |
|
7305 class for lexer flags. Replace lots of global vars with members |
|
7306 of this class. |
|
7307 |
|
7308 * lex.l (class brace_paren_nesting_level): New class to replace |
|
7309 nesting_level stack. nesting_level is now an instance of this |
|
7310 class. |
|
7311 |
|
7312 * lex.l (yum_yum): New typedef. |
|
7313 (ATE_NOTHING): New global var. |
|
7314 (ATE_SPACE_OR_TAB, ATE_NEWLINE): Don't #define these, declare them |
|
7315 as const yum_yum. |
|
7316 (eat_whitespace, eat_continuation): Return yum_yum, not int. |
|
7317 |
|
7318 * lex.l (SHORT_CIRCUIT_LOGICALS): Delete. Always do this for || |
|
7319 and && tokens. |
|
7320 (yy_flex_alloc, yy_flex_realloc, yy_flex_free, next_char_is_space): |
|
7321 Delete. |
|
7322 |
|
7323 * toplev.cc (verbose_flag): Delete definition. |
|
7324 * toplev.h (verbose_flag): And declaration. |
|
7325 * octave.cc (verbose_flag): Now static. |
|
7326 |
|
7327 * lex.l (lookup_identifier): Arg is now string, not char*. |
|
7328 (handle_identifier, is_plot_keyword, is_keyword): Likewise. |
|
7329 (strip_trailing_whitespace): Return value is now string, not char*. |
|
7330 (plot_style_token): Likewise, for both arg and return value. |
|
7331 |
|
7332 * input.cc (octave_gets_line): Delete. |
|
7333 (gnu_readline, octave_gets, octave_read): |
|
7334 Properly handle input when using_readline is either true or false. |
|
7335 Don't limit length of input lines to flex buffer size. |
|
7336 (get_user_input): New function. |
|
7337 |
|
7338 * octave.cc (main): Handle --no-line-editing. |
|
7339 * toplev.h (using_readline): Provide external declaration here. |
|
7340 * input.h: Not here. |
|
7341 * toplev.cc (using_readline): Define here. |
|
7342 * input.cc: Not here. |
|
7343 |
|
7344 * toplev.h (no_line_editing): Delete declaration. |
|
7345 * input.cc (no_line_editing): Delete definition. |
|
7346 |
|
7347 Wed Jan 31 05:28:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7348 |
|
7349 * input.cc (DEFAULT_ARRAY_SIZE, PROMPT_GROWTH): Delete definitions |
|
7350 of unused macros. |
|
7351 (read_octal): Now static. |
|
7352 |
|
7353 * givens.cc (Fgivens): Use new functions from matrix classes |
|
7354 instead of calling Fortran functions directly. |
|
7355 * syl.cc (Fsyl): Likewise. |
|
7356 * expm.cc (Fexpm): Likewise. |
|
7357 |
|
7358 Mon Jan 29 00:00:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7359 |
|
7360 * octave.cc: Use new prog_args class instead of calling getopt |
|
7361 directly. |
|
7362 |
|
7363 * getopt.h, getopt.c, getopt1.c: Move to liboctave directory. |
|
7364 * Makefile: Remove from lists. |
|
7365 |
|
7366 * utils.cc (strconcat, read_until, discard_until): Delete. |
|
7367 |
|
7368 * pager.cc (terminal_columns, terminal_rows): Move to |
|
7369 liboctave/oct-term.cc. |
|
7370 * pager.cc, pr-output.cc: Include oct-term.h. |
|
7371 |
|
7372 * utils.cc (list_in_columns): Moved to liboctave/str-vec.cc. |
|
7373 Change all callers to use new member function syntax. |
|
7374 |
|
7375 * dirfns.cc (absolute_program): Now static. |
|
7376 (absolute_pathname): Delete. |
|
7377 |
|
7378 * pt-plot.cc (save_in_tmp_file): Call oct_tempnam, not |
|
7379 octave_tmp_file_name. Include file-ops.h. |
|
7380 * file-io.cc (do_scanf, Foctave_tmp_file_name): Likewise. |
|
7381 * oct-hist.cc (mk_tmp_hist_file): Likewise. |
|
7382 |
|
7383 * file-io.cc (Foctave_tmp_file_name): Move here. |
|
7384 * utils.cc: From here. |
|
7385 |
|
7386 * utils.cc (octave_tmp_file_name): Move to liboctave/file-ops.cc. |
|
7387 |
|
7388 * tempname.c, tempnam.c: Move to liboctave directory. |
|
7389 * Makefile.in: Remove from lists. |
|
7390 |
|
7391 Sun Jan 28 19:00:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7392 |
|
7393 * xdiv.cc (all xdiv functions): Return Matrix or ComplexMatrix, |
|
7394 not tree_constant. |
|
7395 |
|
7396 * oct-hist.h, oct-hist.cc, toplev.cc, octave.cc, input.cc, |
|
7397 file-io.cc, user-prefs.cc: Rewrite to use new command_history |
|
7398 class instead of calling readline history functions directly. |
|
7399 |
|
7400 * utils.cc (get_fcn_file_names): Delete num arg. |
|
7401 |
|
7402 Thu Jan 25 20:33:54 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7403 |
|
7404 * load-save.cc (matches_patterns): Use new glob_match class |
|
7405 instead of calling fnmatch directly. |
|
7406 * symtab.cc (matches_patterns, symbol_table::glob): Likewise. |
|
7407 * variables.cc (Fclear): Likewise. |
|
7408 |
|
7409 Wed Jan 24 02:05:22 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7410 |
|
7411 * fnmatch.h fnmatch.c: Delete. |
|
7412 * Makefile.in: Add glob stuff in the appropriate places, remove |
|
7413 fnmatch.h and fnmatch.c from lists. |
|
7414 |
|
7415 * octave.cc (program_invocation_name, program_invocation_short_name): |
|
7416 Maybe declare. |
|
7417 (initialize_globals): Maybe initialize them. |
|
7418 |
|
7419 * octave.cc (initialize_pathsearch): Define here, not in pathsearch.cc. |
|
7420 * pathsearch.h, pathsearch.cc: Remove files. |
|
7421 * Makefile.in: Remove them from the lists. |
|
7422 |
|
7423 * help.cc (simple_help): Ignore directories that don't have any .m |
|
7424 or .oct files. |
|
7425 |
|
7426 * utils.cc (search_path_for_file): Use new dir_path class instead |
|
7427 of calling kpathsea routines directly. |
|
7428 (get_fcn_file_names): Likewise. |
|
7429 * help.cc (simple_help): Likewise. |
|
7430 |
|
7431 * dirfns.cc (make_absolute): Don't convert empty arg to "./". |
|
7432 |
|
7433 * sysdir.h: Move to liboctave directory. |
|
7434 * Makefile.in: Remove from lists. |
|
7435 |
|
7436 * dirfns.cc (Freaddir): Use new dir_entry class instead of calling |
|
7437 readdir directly. Include dir-ops.h, not sysdir.h. |
|
7438 * utils.cc (get_fcn_file_names): Likewise. Delete unnecessary |
|
7439 first arg, change all callers. |
|
7440 |
|
7441 Tue Jan 23 00:43:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7442 |
|
7443 * safe-xstat.hin, safe-xstat.cin, statdefs.h, file-ops.h, |
|
7444 file-ops.cc, filemode.c, mkdir.c, rmdir.c, rename.c: |
|
7445 Files moved to liboctave directory. |
|
7446 * Makefile.in: Remove them from lists. Move appropriate rules. |
|
7447 |
|
7448 * acosh.c, asinh.c, atanh.c, erf.c, erfc.c, gamma.c, lgamma.c: |
|
7449 Files moved to liboctave directory. |
|
7450 * Makefile.in: Remove them from lists. |
|
7451 * missing-math.h: Deleted. |
|
7452 * pr-output.cc, sysdep.cc, minmax.cc, mappers.cc, expm.cc, |
|
7453 arith-ops.cc: Include oct-math.h, not cmath or missing-math.h. |
|
7454 |
|
7455 Mon Jan 22 19:33:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7456 |
|
7457 * variables.cc (Fexist): Use file_stat instead of calling stat |
|
7458 directly. Include file-ops.h, not statdefs.h. |
|
7459 * octave.cc (execute_startup_files): Likewise. |
|
7460 * file-io.cc (file_io_get_file, fopen_internal, popen_internal, Fstat): |
|
7461 Likewise. |
|
7462 (mk_stat_map): Likewise, use file_stat object, not struct stat. |
|
7463 * oct-hist.cc (do_history): Likewise. |
|
7464 |
|
7465 * file-ops.h, file-stat.cc: New files. |
|
7466 * Makefile.in: Include them. |
|
7467 * dirfns.cc: Delete is_newer. Don't include statdefs.h. |
|
7468 * toplev.cc: Don't include statdefs.h. |
|
7469 |
|
7470 Sun Jan 21 22:48:03 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7471 |
|
7472 * pt-mvr.h, pt-fvc.h, Map.cc, Map.h, dynamic-ld.h, |
|
7473 pt-fvc-base.cc, SLList-str.cc, pt-fcn.h, pt-fvc-base.h, |
|
7474 SLStack-str.cc, pt-mvr.cc, pt-exp.cc, token.h, token.cc, |
|
7475 user-prefs.h, pt-base.cc, user-prefs.cc, dirfns.h, sysdep.h, |
|
7476 sysdep.cc, input.h, parse.h, lex.l, parse.y, defun.h, mappers.h, |
|
7477 pt-fvc.cc, pt-plot.h, load-save.h, octave.cc, defun-int.h, help.h, |
|
7478 variables.h, oct-map.h, oct-obj.h, oct-obj.cc, pt-const.cc, |
|
7479 oct-map.cc, input.cc, symtab.h, pt-const.h, pathsearch.cc, |
|
7480 pr-output.h, pr-output.cc, toplev.h, timefns.cc, schur.cc, |
|
7481 pt-plot.cc, pager.cc, load-save.cc, dynamic-ld.cc, dirfns.cc, |
|
7482 data.cc, file-info.h, file-info.cc, colloc.cc, utils.h, qpsol.cc, |
|
7483 quad.cc, npsol.cc, lsode.cc, fsolve.cc, dassl.cc, file-io.cc, |
|
7484 help.cc, utils.cc, oct-hist.h, oct-hist.cc, symtab.cc, toplev.cc, |
|
7485 pt-fcn.cc, unwind-prot.h, unwind-prot.cc, variables.cc: |
|
7486 Most functions in these files that deal with character strings |
|
7487 have been converted to use the string class insatead of char*. If |
|
7488 you want more detailed information, you'll have to figure it out |
|
7489 for yourself. |
|
7490 |
|
7491 Sat Jan 20 18:19:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7492 |
|
7493 * dynamic-ld.cc [WITH_DL]: Define RTLD_LAZY to be 1 if it is not |
|
7494 already defined. |
|
7495 |
|
7496 Sun Jan 14 07:48:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7497 |
|
7498 * pt-const.cc (print_as_scalar, print_as_structure): |
|
7499 Make these member functions. |
|
7500 (tree_constant::print_with_name): New function, moved here from |
|
7501 old tree-expr.cc file (where it was called print_constant) and |
|
7502 converted to member function. Change all callers. |
|
7503 |
|
7504 Fri Jan 12 01:54:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7505 |
|
7506 * octave.cc (initialize_globals): Don't do kpathsearch stuff here. |
|
7507 (main): Call initialize_pathsearch() here. |
|
7508 |
|
7509 * pathsearch.cc: New file. |
|
7510 * Makefile.in (SOURCES): Add it to the list |
|
7511 |
|
7512 * oct-hist.h: Rename from octave-hist.h. |
|
7513 * oct-hist.cc: Rename from octave-hist.cc. |
|
7514 * Makefile.in, parse.y, other .cc files: Cope with it. |
|
7515 |
|
7516 * dynamic-ld.cc: Avoid warnings if !WITH_DYNAMIC_LINKING. |
|
7517 |
|
7518 * load-save.cc (save_ascii_data): string::data() returns const char*. |
|
7519 |
|
7520 * utils.h: Don't provide forward declaration for tree_constant. |
|
7521 |
|
7522 * oct-obj.h: Don't include mx-base.h or provide forward |
|
7523 declarations for Matrix and Range types. |
|
7524 |
|
7525 * file-info.h: Don't include oct-obj.h. Do include cstdio. |
|
7526 |
|
7527 * symtab.h: Don't provide forward declaration for ostream. |
|
7528 |
|
7529 * variables.h: Don't provide forward declarations for istream, |
|
7530 ostrstream, tree, builtin_function, or builtin_variable objects. |
|
7531 |
|
7532 * balance.cc, chol.cc, colloc.cc, dassl.cc, det.cc, eig.cc, |
|
7533 expm.cc, fft.cc, fft2.cc, filter.cc, find.cc, fsolve.cc, fsqp.cc, |
|
7534 givens.cc, hess.cc, ifft.cc, ifft2.cc, inv.cc, log.cc, lpsolve.cc, |
|
7535 lsode.cc, lu.cc, minmax.cc, npsol.cc, pinv.cc, qpsol.cc, qr.cc, |
|
7536 quad.cc, qzval.cc, rand.cc, schur.cc, sort.cc, svd.cc, syl.cc: |
|
7537 Clean up #include statements. |
|
7538 |
|
7539 * pt-const.h: Don't include oct-obj.h or tree-base.h. |
|
7540 Provide forward declaration of Octave_object here. |
|
7541 * pt-const.cc: Include oct-obj.h here. |
|
7542 |
|
7543 * pt-mat.h, pt-fcn.h, pt-const.h, pt-misc.h, pt-plot.h, |
|
7544 pt-exp-base.h, pt-cmd.h, pt-fvc-base.h, pt-mvr-base.h, pt-exp.h, |
|
7545 pt-mvr.h, pt-fvc.h: New files, split from tree-expr.h and/or |
|
7546 renamed from other tree-*.h files (pt == parse tree). |
|
7547 * pt-base.cc, pt-const.cc, pt-exp.cc, pt-fvc-base.cc, pt-mat.cc, |
|
7548 pt-mvr-base.cc, pt-plot.cc, pt-cmd.cc, pt-exp-base.cc, pt-fcn.cc, |
|
7549 pt-fvc.cc, pt-misc.cc, pt-mvr.cc: Likewse, split from tree-expr.cc |
|
7550 and/or other tree-*.cc files. |
|
7551 * Makefile.in: Include them in the appropriate lists. |
|
7552 * All: Fix #include statements to match. |
|
7553 |
|
7554 * Array-tc.cc: Don't instantiate ArrayRep objects. |
|
7555 |
|
7556 Thu Jan 11 02:35:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7557 |
|
7558 * tree-const.cc (tree_constant::eval (int, int, const Octave_object&)): |
|
7559 Define here instead of in tree-const.h. |
|
7560 |
|
7561 Wed Jan 10 04:34:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7562 |
|
7563 * tree-const.h (tree_constant::tree_constant (const string&): |
|
7564 * tree-const.cc (TC_REP::tree_constant_rep (const string&)): |
|
7565 New constructor. |
|
7566 |
|
7567 Tue Jan 9 04:10:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7568 |
|
7569 * rand.cc (do_rand): Use string_value() result directly instead of |
|
7570 c_str() conversion. |
|
7571 * balance.cc (Fbalance): Likewise. |
|
7572 |
|
7573 * tree-const.cc (TC_REP::string_value()): |
|
7574 Handle new definition of charMatrix::row_as_string() |
|
7575 * load-save.cc (save_ascii_data): Ditto. |
|
7576 (save_binary_data): Ditto. |
|
7577 * pr-output.cc (octave_print_internal): Ditto. |
|
7578 |
|
7579 * balance.cc (Fbalance): |
|
7580 Handle new definition of TC_REP::string_value() |
|
7581 * colloc.cc (Fcolloc): Ditto. |
|
7582 * dassl.cc (Fdassl_options): Ditto. |
|
7583 * data.cc (Fstruct_contains): Ditto. |
|
7584 * dirfns.cc (Fmkdir): Ditto. |
|
7585 (Freaddir): Ditto. |
|
7586 (Frmdir): Ditto. |
|
7587 (Frename): Ditto. |
|
7588 * error.cc (handle_message): Ditto. |
|
7589 * file-io.cc (process_printf_format): Ditto. |
|
7590 (fopen_internal): Ditto. |
|
7591 (file_io_get_file): Ditto. |
|
7592 (return_valid_file): Ditto. |
|
7593 (Flstat): Ditto. |
|
7594 (Fstat): Ditto. |
|
7595 (unlink_internal): Ditto. |
|
7596 (mkfifo_internal): Ditto. |
|
7597 (async_system_internal): Ditto. |
|
7598 (sync_system_internal): Ditto. |
|
7599 (execute_internal): Ditto. |
|
7600 (popen_internal): Ditto. |
|
7601 (fwrite_internal): Ditto. |
|
7602 (fread_internal): Ditto. |
|
7603 (do_printf): Ditto. |
|
7604 (do_scanf): Ditto. |
|
7605 * input.cc (get_user_input): Ditto. |
|
7606 * lsode.cc (Flsode_options): Ditto. |
|
7607 * npsol.cc (Fnpsol_options):Ditto. |
|
7608 * qpsol.cc (Fqpsol_options):Ditto. |
|
7609 * quad.cc (Fquad_options): Ditto. |
|
7610 * rand.cc (do_rand): Ditto. |
|
7611 * schur.cc (Fschur): Ditto. |
|
7612 * sysdep.cc (Fputenv): Ditto. |
|
7613 (Fgetenv): Ditto. |
|
7614 * timefns.cc (extract_tm): Ditto. |
|
7615 (Fstrftime): Ditto. |
|
7616 * toplev.cc (Fsource): Ditto. |
|
7617 (eval_string): Ditto. |
|
7618 (Fsystem): Ditto. |
|
7619 * tree-plot.cc (subplot::handle_plot_data): Ditto. |
|
7620 * variables.cc (is_valid_function): Ditto. |
|
7621 (Fis_global): Ditto. |
|
7622 (Fexist): Ditto. |
|
7623 (builtin_string_variable): Ditto. |
|
7624 * utils.cc (make_argv): Ditto. |
|
7625 (Fundo_string_escapes): Ditto. |
|
7626 |
|
7627 Mon Jan 8 01:54:50 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7628 |
|
7629 * Makefile.in (install-bin): Use $(LN_S), not just ln. |
|
7630 |
|
7631 * variables.cc (octave_fcn_file_dir): New function. |
|
7632 * tree-expr.cc (mark_as_system_fcn_file): Use it instead of |
|
7633 octave_lib_dir. |
|
7634 |
|
7635 * Makefile.in (clean): If $(SHARED_LIBS), also remove shared libs. |
|
7636 |
|
7637 * pr-output.cc (set_format (const ComplexMatrix&, int&, int&)): |
|
7638 Unconditionally call all_elements_are_int_or_inf_or_nan(). |
|
7639 (set_format (const Matrix&, int&, int&)): Likewise. |
|
7640 |
|
7641 Sun Jan 7 19:12:39 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7642 |
|
7643 * utils.cc (oct_putenv): New function. |
|
7644 * sysdep.cc (Fputenv): Use oct_putenv. |
|
7645 * octave.cc (initialize_globals): Likewise. |
|
7646 |
|
7647 Sat Jan 6 23:22:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7648 |
|
7649 * sysdep.cc (Fputenv): New function. |
|
7650 |
|
7651 * input.cc (initialize_readline): Call rl_initialize() here. |
|
7652 |
|
7653 * octave.cc: Conditionally define atexit to be on_exit here. |
|
7654 * toplev.cc: Not here. |
|
7655 |
|
7656 Fri Jan 5 14:01:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7657 |
|
7658 * toplev.cc: Don't include <pwd.h> here. |
|
7659 |
|
7660 * octave-hist.cc, tree-plot.cc, utils.cc: Do include "sysdep.h". |
|
7661 |
|
7662 * dirfns.cc, file-io.cc, help.cc, load-save.cc, octave.cc, |
|
7663 octave-hist.cc, tree-plot.cc, utils.cc: |
|
7664 Don't include <readline/tilde.h>. |
|
7665 * sysdep.h: Do include it here. |
|
7666 |
|
7667 * tree-const.cc (TC_REP::assign (tree_constant&, Octave_object&)): |
|
7668 If we have a matrix or range, call maybe_mutate before returning. |
|
7669 |
|
7670 Sun Dec 31 15:56:18 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7671 |
|
7672 * npsol.cc (Fnpsol): Improve doc string. |
|
7673 * qpsol.cc (Fqpsol): Likewise. |
|
7674 |
|
7675 Fri Dec 29 21:46:58 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7676 |
|
7677 * defun-dld.h: Make work again for OCTAVE_LITE and |
|
7678 WITH_DYNAMIC_LINKING. |
|
7679 |
|
7680 * Makefile.in: Handle shared libraries. |
|
7681 |
|
7682 Wed Dec 27 17:47:51 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7683 |
|
7684 * mk-oct-links: New file. |
|
7685 * Makefile.in (install-oct): Use it. |
|
7686 * f-*.cc: Rename to *.cc. |
|
7687 |
|
7688 * Makefile.in (install-bin, install-lib, install-oct): New targets. |
|
7689 (install): Use them. |
|
7690 |
|
7691 Tue Dec 26 21:38:22 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7692 |
|
7693 * toplev.cc (reading_startup_message_printed): Move initialization |
|
7694 here and make extern. |
|
7695 |
|
7696 * dirfns.cc, dynamic-ld.cc, help.cc, input.cc, octave-hist.cc, |
|
7697 octave.cc, sighandlers.cc, sysdep.cc, tree-expr.cc, tree-misc.cc, |
|
7698 utils.cc, variables.cc, parse.y, lex.l: Include toplev.h instead |
|
7699 of octave.h. |
|
7700 * toplev.h: rename from octave.h. |
|
7701 |
|
7702 * octave.cc (main): Delete unused variable saved_sigint_handler. |
|
7703 |
|
7704 Sun Dec 24 00:26:54 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7705 |
|
7706 * dynamic-ld.cc: Massive re-write to handle dlopen/dlsym and |
|
7707 shl_load/shl_findsym methods of dynamic linking. |
|
7708 |
|
7709 * utils.cc (get_fcn_file_names): Check for .oct files if |
|
7710 WITH_DYNAMIC_LINKING, not WITH_DLD. |
|
7711 |
|
7712 * Makefile.in (LIB, TERMLIBS): Substitute values. |
|
7713 (octave): Add $(LIBS) to link command and use $(TERMLIBS) instead |
|
7714 of -ltermcap. |
|
7715 |
|
7716 Sat Dec 23 21:56:12 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7717 |
|
7718 * dynamic-ld.h, dynamic-ld.cc: Remove old unused code. |
|
7719 |
|
7720 * variables.cc (load_fcn_from_file): |
|
7721 Always call load_octave_oct_file. |
|
7722 |
|
7723 Wed Dec 20 00:56:57 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7724 |
|
7725 * pr-output.cc (set_real_format, set_real_matrix_format, |
|
7726 set_complex_format, set_complex_matrix_format, set_range_format): |
|
7727 New functions. Ensure the count of the digits to the right of the |
|
7728 decimal point is positive. |
|
7729 |
|
7730 * xpow.cc (xpow (const Matrix&, double)): Print warning if |
|
7731 inverting singular matrix (but return value anyway, in the name of |
|
7732 compatibility). |
|
7733 xpow (const ComplexMatrix&, double)): Likewise. |
|
7734 |
|
7735 * f-inv.cc (Finv): If matrix is singular, return result anyway, in |
|
7736 the name of compatibility. |
|
7737 |
|
7738 * symtab.cc (symbol_record::pop_context): |
|
7739 Don't assert (! context.empty ()). |
|
7740 |
|
7741 * tree-const.cc (TC_REP::char_matrix_value): Don't complain about |
|
7742 type conversion if object is an empty matrix.f |
|
7743 (TC_REP::assign): If rhs is a string, don't convert to numeric |
|
7744 type if rhs is empty or "". |
|
7745 Only widen if rhs is not empty. |
|
7746 Don't return 0x0 char_matrix if it is supposed to be a string. |
|
7747 |
|
7748 * arith-ops.h, mappers.h, pr-output.h, xdiv.h, xpow.h: Include |
|
7749 oct-cmplx.h in place of forward declaration for class Complex. |
|
7750 |
|
7751 * pr-output.cc, mappers.cc, arith-ops.cc, xdiv.cc, xpow.cc, |
|
7752 utils.cc: Include "oct-cmplx.h" instead of <Complex.h>. |
|
7753 |
|
7754 * octave.cc (initialize_error_handlers): Don't call |
|
7755 set_Complex_error_handler(). |
|
7756 (octave_Complex_error_handler): Delete unused function. |
|
7757 Delete declaration for set_Complex_error_handler(). |
|
7758 |
|
7759 * sighandlers.cc (catch_interrupts): New function. |
|
7760 * octave.cc (main): Call catch_interrupts() instead of calling |
|
7761 octave_set_signal_handler() directly. |
|
7762 |
|
7763 Tue Dec 19 03:22:37 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7764 |
|
7765 * variables.cc (looks_like_octave_copyright): Also recognize the |
|
7766 string " This program is free software". |
|
7767 |
|
7768 Thu Dec 14 01:54:06 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7769 |
|
7770 * octave-hist.cc (clean_up_history): Only write history file if |
|
7771 user_pref.saving_history. |
|
7772 |
|
7773 * octave-hist.cc (initialize_history, clean_up_history, |
|
7774 do_history): Perform tilde expansion on history file name. |
|
7775 |
|
7776 * octave.cc (main): Check `defined (HAVE_ON_EXIT)' not just |
|
7777 `(HAVE_ON_EXIT)'. |
|
7778 |
|
7779 * user-prefs.h (user_preferences): New fields, `history_file' and |
|
7780 `history_size'. |
|
7781 * user-prefs.cc (init_user_prefs): Initialize them. |
|
7782 (sv_history_file, history_size): New functions. |
|
7783 * variables.cc (install_builtin_variables): Initialize user-level |
|
7784 variables history_file and history_size. |
|
7785 * octave-hist.cc (default_history_size): Now extern. |
|
7786 (default_history_file): Likewise. |
|
7787 (octave_hist_size, octave_hist_file): Use user preference |
|
7788 variables instead. |
|
7789 * octave.cc (main): Call initialize_history after |
|
7790 execute_startup_files. |
|
7791 |
|
7792 Fri Dec 8 15:53:59 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7793 |
|
7794 * user-prefs.h (user_preferences): New field, `saving_history'. |
|
7795 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7796 (saving_history): New function. |
|
7797 * variables.cc (install_builtin_variables): Initialize user-level |
|
7798 variable saving_history. |
|
7799 * octave.cc (parse_and_execute): Don't reset value of |
|
7800 saving_history here. |
|
7801 (main) Use user_pref.saving_history instead of saving_history. |
|
7802 * variables.cc (parse_fcn_file): Likewise. |
|
7803 * octave-hist.cc (maybe_save_history): Likewise. |
|
7804 Don't save history if input_from_startup_file. |
|
7805 |
|
7806 Mon Nov 27 23:05:52 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7807 |
|
7808 * resource.cc: Include systime.h before <sys/resource.h>. |
|
7809 |
|
7810 Tue Nov 14 14:09:40 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7811 |
|
7812 * error.cc: Include cstring. |
|
7813 |
|
7814 * tree-expr.cc (print_code): Decrement indent level after printing |
|
7815 function body. |
|
7816 |
|
7817 * Makefile.in: Remove references to oct-str.cc, oct-str.h, and |
|
7818 Array-string.cc. |
|
7819 |
|
7820 * tree-const.h: Don't include oct-str.h. |
|
7821 |
|
7822 Mon Nov 6 11:16:49 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7823 |
|
7824 * parse.y (make_plot_command, finish_colon_expression, |
|
7825 make_unwind_protect, make_try_command, make_for_command, |
|
7826 make_break_command, make_continue_command, make_return_command, |
|
7827 start_if_command, finish_if_command, make_elseif_clause, |
|
7828 make_simple_assignment, make_multi_val_ret, start_function_def, |
|
7829 frob_function_def, finish_function_def, start_matrix, |
|
7830 finish_matrix): New functions. Use them in the grammar to clean |
|
7831 things up a bit. Possibly convert matrix lists, colon |
|
7832 expressions, binary expressions, and unary expressions to constant |
|
7833 values. |
|
7834 (tree_matrix_type): Delete. |
|
7835 (simple_expr1): Handle all expression stuff here, including |
|
7836 assignments. |
|
7837 (simple_expr): Just check to see that simple_expr1 produced |
|
7838 something useful. |
|
7839 |
|
7840 * tree-plot.cc, tree-plot.h: Move most simple constructors to the |
|
7841 header file. |
|
7842 |
|
7843 * tree-expr.h (tree_expression::is_constant): Move virtual |
|
7844 function definition here. |
|
7845 (tree_fvc::is_constant): From here. |
|
7846 (tree_expression::is_matrix_constant): New virtual function. |
|
7847 (tree_expression::is_range_constant): New virtual function. |
|
7848 * tree-expr.cc (tree_matrix::is_matrix_constant): New function. |
|
7849 * tree-expr.cc (tree_colon_expression::is_range_constant): New |
|
7850 function. |
|
7851 |
|
7852 Fri Nov 3 03:42:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7853 |
|
7854 * utils.cc, utils.h (jump_to_top_level): Declare as extern "C". |
|
7855 |
|
7856 * tree-const.h (tree_constant::eval ()): Only mutate if printing. |
|
7857 |
|
7858 * tree-const.cc (TC_REP::tree_constant_rep (const Complex&), |
|
7859 TC_REP::tree_constant_rep (const ComplexMatrix&), |
|
7860 TC_REP::tree_constant_rep (const ComplexDiagMatrix&), |
|
7861 TC_REP::tree_constant_rep (const ComplexRowVector&), |
|
7862 TC_REP::tree_constant_rep (const ComplexColumnVector&)): |
|
7863 Also check to see if we can convert to scalar_constant, not just |
|
7864 complex_scalar_constant. |
|
7865 |
|
7866 * user-prefs.h (user_preferences): New field, `exec_path'. |
|
7867 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7868 (sv_exec_path): New function. |
|
7869 * variables.cc (install_builtin_variables): Add DEFUN for EXEC_PATH. |
|
7870 (default_exec_path): New function. |
|
7871 * octave.cc (exec_path): New global variable. |
|
7872 Don't set and putenv() exec path here. |
|
7873 (long_opts): Add --exec-path option. |
|
7874 (main): Handle it. |
|
7875 (initialize_globals): Set default value here. |
|
7876 |
|
7877 * user-prefs.h (user_preferences): New field, `info_prog'. |
|
7878 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7879 (sv_info_prog): New function. |
|
7880 * variables.cc (install_builtin_variables): Add DEFUN for INFO_PROGRAM. |
|
7881 (default_info_prog): New function. |
|
7882 * octave.cc (info_prog): New global variable. |
|
7883 (initialize_globals): Set default value here. |
|
7884 (long_opts): Add --info-prog option. |
|
7885 (main): Handle it. |
|
7886 * help.cc (try_info): Use user_pref.info_prog here. |
|
7887 |
|
7888 * octave.cc (initialize_globals): Put arch_dir and bin_dir ahead |
|
7889 of shell_path when resetting PATH. |
|
7890 |
|
7891 Thu Nov 2 04:30:13 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7892 |
|
7893 * f-rand.cc (Frandn): New function. |
|
7894 (do_initialization): New function. |
|
7895 (do_rand): New function for doing the real work. |
|
7896 (Frand): Use it. |
|
7897 |
|
7898 * octave.cc (parse_and_execute): New arg, warn_for. If given, |
|
7899 print message if file cannot be opened. |
|
7900 Set curr_fcn_file_full_name here. |
|
7901 (Fsource): Pass extra arg to parse_and_execute to get warning message. |
|
7902 |
|
7903 * tree-const.h: Handle line and column info for double, Complex, |
|
7904 and char* constants. |
|
7905 |
|
7906 * parse.y (maybe_convert_to_ans_assign): Pass along line and |
|
7907 column info from expression. |
|
7908 |
|
7909 * parse.y (make_constant): New function. |
|
7910 (simple_expr1, word_list): Use it. |
|
7911 |
|
7912 * input.cc, input.h (curr_fcn_file_full_name): New global. |
|
7913 * variables.cc (load_fcn_from_file): Set it here. |
|
7914 * parse.y (func_def2, yyerror, maybe_warn_missing_semi): Use it. |
|
7915 (func_def2): If !reading_fcn_file, don't call strcmp if |
|
7916 curr_fcn_file_name is 0. |
|
7917 |
|
7918 * octave.cc (Fsource): New function. |
|
7919 (parse_and_execute): Declare file name const char *. |
|
7920 * input.cc (get_input_from_file): Likewise. |
|
7921 |
|
7922 Wed Nov 1 13:54:34 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7923 |
|
7924 * f-filter.cc: New file. |
|
7925 * Makefile.in (DLD_SRC): Add it to the list. |
|
7926 |
|
7927 * sysdep.h (gethostname): Change declaration to match definition |
|
7928 in sysdep.cc. |
|
7929 |
|
7930 * resource.cc: Include sysdep.h here, for octave_NaN. |
|
7931 |
|
7932 Tue Oct 31 02:12:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7933 |
|
7934 * tree-const.cc (TC_REP::assign): After converting rhs to a |
|
7935 numeric type, use the converted value, not the original. |
|
7936 |
|
7937 * dirfns.cc (Fpwd): If nargout == 0, print the directory name |
|
7938 instead of returning it. |
|
7939 |
|
7940 * pager.cc (maybe_page_output): Call maybe_write_to_diary_file here. |
|
7941 (flush_output_to_pager): Not here. |
|
7942 |
|
7943 Mon Oct 30 23:39:43 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7944 |
|
7945 * variables.cc (install_builtin_commands): Add DEFVAR for |
|
7946 echo_executing_commands. |
|
7947 |
|
7948 * octave-hist.cc (do_edit_history): Handle new echo stuff. |
|
7949 * variables.cc (parse_fcn_file): Likewise. |
|
7950 * octave.cc (parse_and_execute): Likewise. |
|
7951 (main): Likewise. |
|
7952 * input.cc (do_input_echo): |
|
7953 (Fecho): New function. |
|
7954 |
|
7955 * tree-expr.cc (tree_function::print_code_function_header, |
|
7956 tree_function::print_code_function_trailer): New functions. |
|
7957 (tree_function::print_code): Use them. |
|
7958 (tree_function::eval): Likewise, if echoing commands. |
|
7959 * tree-misc.cc (tree_statement::maybe_echo_code): New function. |
|
7960 |
|
7961 * user-prefs.h (user_preferences): New field, echo_executing_commands. |
|
7962 (echo_state): New enum, for various types of echoing we do. |
|
7963 * user-prefs.cc (echo_executing_commands): New function. |
|
7964 |
|
7965 * tree-base.cc (print_code_indent): Print PS4 as line prefix. |
|
7966 * help.cc (Ftype): Add unwind_protect for ps4 and set it to "" |
|
7967 before printing code. |
|
7968 |
|
7969 * tree-misc.h (tree_statement_list): New field, function_body. |
|
7970 (tree_statement_list::mark_as_function_body): New function. |
|
7971 * parse.y (func_def3): Mark function bodies. |
|
7972 |
|
7973 * pr-output.cc (octave_print_internal): Undo string escapes when |
|
7974 printing charMatrix as strings. |
|
7975 |
|
7976 Sat Oct 28 17:38:29 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7977 |
|
7978 * utils.h (undo_string_escapes): Add missing const in declaration. |
|
7979 |
|
7980 Fri Oct 27 03:49:44 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7981 |
|
7982 * file-io.cc (next_available_file_number): New stack for keeping |
|
7983 track of next available file number. |
|
7984 (get_next_avail_file_num): New function. |
|
7985 (fopen_file_for_user, fopen_internal, popen_internal, |
|
7986 execute_internal): Use it. |
|
7987 |
|
7988 Mon Oct 23 07:00:09 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7989 |
|
7990 * tree-const.cc (TC_REP::convert_to_matrix_type, |
|
7991 tree_constant::convert_to_matrix_type): New arg, make_complex. |
|
7992 (TC_REP::set_index): New arg, rhs_is_complex. Pass it to |
|
7993 convert_to_matrix_type. |
|
7994 (TC_REP::assign): Pass rhs.is_complex_type() to set_index. |
|
7995 |
|
7996 Thu Oct 19 00:38:38 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7997 |
|
7998 * xpow.cc: Include <climits>. |
|
7999 |
|
8000 * sysdep.cc (Fpause): Do pause even if not interactive. |
|
8001 |
|
8002 * tree-const.cc (TC_REP::assign): Don't make RHS numeric if both |
|
8003 RHS and LHS are strings. |
|
8004 |
|
8005 Wed Oct 18 22:19:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8006 |
|
8007 * f-expm.cc (Fexpm): Avoid taking log of negative number. Also, |
|
8008 don't unnecessarily divide the input matrix by 1.0. |
|
8009 |
|
8010 * input.cc (decode_prompt_string): Recognize \[ and \] too. |
|
8011 (initialize_readline): Bind M-p to history-search-backward and M-n |
|
8012 to history-search-forward. |
|
8013 |
|
8014 Tue Oct 17 04:31:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8015 |
|
8016 * xpow.cc (xpow): Handle integer powers better for complex^double. |
|
8017 (elem_xpow): Likewise. |
|
8018 |
|
8019 * lex.l ({CCHAR}): If nesting_level.top() is BRACE, return ';', |
|
8020 not '\n'. |
|
8021 |
|
8022 Mon Oct 16 19:03:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8023 |
|
8024 * help.cc (Fwhich): Fix doc string. |
|
8025 |
|
8026 * variables.cc (Fexist): Update doc string. |
|
8027 |
|
8028 Sun Oct 15 22:19:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8029 |
|
8030 * Another massive set of changes to support character matrices |
|
8031 with indexing. The Octave_str_object class is no longer used. |
|
8032 Anything having to do with Octave_str_object in the following |
|
8033 files has been changed to use charMatrix instead: octave.h, |
|
8034 load-save.cc, octave.cc, strfns.cc, data.cc, pr-output.h, |
|
8035 pr-output.cc, tree-const.h, dirfns.cc, tree-const.cc, |
|
8036 tree-expr.cc. |
|
8037 |
|
8038 Sat Oct 14 22:28:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8039 |
|
8040 * f-sort.cc (mx_sort): Don't attempt to sort vectors that have |
|
8041 only one element, or matrices that have only one row. |
|
8042 |
|
8043 Thu Oct 12 02:16:58 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8044 |
|
8045 * mappers.cc (install_mapper_functions): Add gammaln as an alias |
|
8046 for lgamma. |
|
8047 |
|
8048 * tree-const.h, tree-const.cc: Massive overhaul of indexing and |
|
8049 indexed assignment functions. |
|
8050 * tc-inlines.h, tc-rep.h: Remove files. |
|
8051 * Makefile.in: Remove mention of them here too. |
|
8052 |
|
8053 * Makefile.in: Include $(TI_SRC) in DEP_SOURCES_3, not |
|
8054 $(TI_SOURCES). |
|
8055 Include $(DLD_SRC) in DEP_SOURCES_3. |
|
8056 Include $(TI_SRC) in DEF_FILES_5. |
|
8057 |
|
8058 Wed Oct 11 01:26:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8059 |
|
8060 * Makefile.in (INCLUDES): Remove tc-inlines.h and tc-rep.h from |
|
8061 the list. |
|
8062 |
|
8063 Mon Oct 9 08:31:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8064 |
|
8065 * lex.l (next_token_is_bin_op): Do match `.+', `.*', etc. |
|
8066 |
|
8067 Sun Oct 8 18:19:56 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8068 |
|
8069 * idx-vector.h, idx-vector.cc: Delete files. |
|
8070 * Makefile.in (SOURCES, INCLUDES): Remove them from lists. |
|
8071 |
|
8072 Fri Oct 6 00:52:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8073 |
|
8074 * f-svd.cc (Fsvd): If nargout == 0 or nargout == 1, don't ask for |
|
8075 U and V. |
|
8076 |
|
8077 Wed Oct 4 00:04:57 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8078 |
|
8079 * f-npsol.cc (Fnpsol, Fnpsol_options): Avoid unused variable |
|
8080 warnings if NPSOL_MISSING. |
|
8081 * f-qpsol.cc (Fqpsol, Fqpsol_options): Likewise for QPSOL_MISSING. |
|
8082 |
|
8083 * Makefile.in (DISTFILES): Add octave.gperf. |
|
8084 |
|
8085 * lex.l (next_token_is_bin_op): Don't ever return true for `.' |
|
8086 since that causes problems with things like [ .1 .1 ]. |
|
8087 |
|
8088 Tue Oct 3 05:30:24 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8089 |
|
8090 * variables.cc (is_valid_function): Avoid setting error_state if |
|
8091 argument is not a string. |
|
8092 |
|
8093 * parse.y (maybe_warn_missing_semi): New function. |
|
8094 (list1, list): Call it if statement not terminated by semicolon. |
|
8095 * tree-misc.h (tree_statement::line, tree_statement::column): |
|
8096 New functions. |
|
8097 * octave.cc (input_from_command_line_file): New global variable. |
|
8098 (main): Set it. |
|
8099 (parse_and_execute): Unwind-protect it and set it to zero. |
|
8100 (eval_string): Likewise. |
|
8101 * variables.cc (parse_fcn_file): Likewise. |
|
8102 |
|
8103 * user-prefs.cc (warn_missing_semicolon): New function. |
|
8104 * user-prefs.h (user_preferences): New field, warn_missing_semicolon. |
|
8105 * variables.cc (install_builtin_variables): DEFVAR it. |
|
8106 |
|
8107 * tree-expr.cc (tree_expression::is_logically_true): Actually use |
|
8108 argument. |
|
8109 |
|
8110 Mon Oct 2 19:55:48 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8111 |
|
8112 * variables.cc (install_builtin_variables): Reduce the default |
|
8113 value of save_precision to 15. |
|
8114 |
|
8115 * variables.cc (builtin_real_scalar_variable): Return 1 for |
|
8116 success, 0 for failure. |
|
8117 |
|
8118 * user-prefs.cc (struct_levels_to_print, set_save_precision, |
|
8119 set_output_max_field_width, set_output_precision): |
|
8120 Change sense of test for builtin_real_scalar_variable return value. |
|
8121 (check_preference): Rename from check_str_pref. Change all callers. |
|
8122 Accept value of 0 to be the same as "false" and nonzero to be the |
|
8123 same as "true". |
|
8124 Delete val to avoid memory leak. |
|
8125 * variables.cc (install_builtin_variables): Change initial values |
|
8126 from "true" to 1, "false" to 0. |
|
8127 |
|
8128 * variables.cc (install_builtin_variables): Add DEFVAR for |
|
8129 gnuplot_has_multiplot. |
|
8130 |
|
8131 * user-prefs.h (user_preferences): New field, |
|
8132 `gnuplot_has_multiplot'. |
|
8133 * user-prefs.cc (init_user_prefs): Initialize it. |
|
8134 (gnuplot_has_multiplot): New function. |
|
8135 |
|
8136 Sat Sep 30 16:52:57 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8137 |
|
8138 * oct-gperf.h, octave.gperf: Newfiles. |
|
8139 * Makefile.in (DISTFILES): Add octave.gperf. |
|
8140 (INCLUDES): Add oct-gperf.h. |
|
8141 (oct-gperf.h): New rule. |
|
8142 (local-dist, dist): Depend on oct-gperf.h. |
|
8143 * lex.l (is_keyword): Use perfect hash function to lookup |
|
8144 keywords. |
|
8145 |
|
8146 Fri Sep 29 04:36:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8147 |
|
8148 * version.h (OCTAVE_NAME_AND_VERSION): Add TARGET_HOST_TYPE to this. |
|
8149 |
|
8150 Thu Sep 28 00:03:51 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8151 |
|
8152 * tree-expr.cc (tree_expression::is_logically_true): New function. |
|
8153 * tree-cmd.cc (tree_while_command::eval): Use it instead of |
|
8154 handling the test directly here. |
|
8155 * tree-misc.cc (tree_if_clause::eval): Likewise |
|
8156 |
|
8157 * tree-const.cc (TC_REP::force_numeric): Don't try to print value |
|
8158 of str_obj with %s. |
|
8159 |
|
8160 * error.cc (buffer_error_messages): Rename from |
|
8161 suppress_octave_error_messages. |
|
8162 (error_message_buffer): New global variable. |
|
8163 (verror): Handle buffering of messages. |
|
8164 (handle_message): New function. |
|
8165 (Ferror, Fwarning, Fusage): Use it instead of duplicating code. |
|
8166 |
|
8167 * octave.cc (Feval): Buffer error messages instead of supressing them. |
|
8168 |
|
8169 * lex.l (is_keyword): Recognize `try', `catch', and `end_try_catch'. |
|
8170 * parse.y (TRY, CATCH): New tokens. |
|
8171 (command): Recognize try-catch block. |
|
8172 (end_error): Add cases for unwind_protect_end and try_catch_end. |
|
8173 * token.h (end_tok_type): New field, try_catch_end. |
|
8174 * tree-cmd.h, tree-cmd.cc (tree_try_catch): New class. |
|
8175 * variables.cc (bind_global_error_variable): New Function. |
|
8176 (clear_global_error_variable): Likewise. |
|
8177 (install_builtin_variables): Add DEFCONST for __error_text__. |
|
8178 * help.cc (keywords): Add `try', `catch', and `end_try_catch'. |
|
8179 |
|
8180 * tree-cmd.cc (tree_unwind_protect::eval): Undo previous change. |
|
8181 |
|
8182 * dirfns.cc (Freaddir, Fmkdir, Frmdir): |
|
8183 Do tilde expansion on the argument. |
|
8184 |
|
8185 Tue Sep 26 00:10:29 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8186 |
|
8187 * f-dassl.cc, f-fsolve.cc, f-lsode.cc, f-npsol.cc, f-quad.cc: |
|
8188 Don't try to figure out if the user-supplied functions take the |
|
8189 correct number of arguments. Simply let the call fail. |
|
8190 * variables.cc (takes_correct_nargs): Delete unused function. |
|
8191 * tree-expr.cc (tree_builtin::eval): Don't complain for too many |
|
8192 arguments to mapper functions. |
|
8193 * tree-expr.h, tree-expr.cc (tree_builtin, tree_function, tree_fvc): |
|
8194 Delete unused function max_expected_args. |
|
8195 |
|
8196 * defun.h (DEFUN): Delete unnecessary args nargin_min and nargout_max. |
|
8197 New arg unused_arg_flags. |
|
8198 (DEFUN_TEXT): Likewise. |
|
8199 * defun-dld.h (DEFUN_DLD_BUILTIN): Likewise. |
|
8200 * defun-int.h (DEFUN_INTERNAL, DECLARE_FUN, DEFINE_FUN_STRUCT): |
|
8201 Do the real work. |
|
8202 |
|
8203 * data.cc, dirfns.cc, dynamic-ld.cc, error.cc, f-balance.cc, |
|
8204 f-chol.cc, f-colloc.cc, f-dassl.cc, f-det.cc, f-eig.cc, f-expm.cc, |
|
8205 f-fft.cc, f-fft2.cc, f-find.cc, f-fsolve.cc, f-fsqp.cc, |
|
8206 f-givens.cc, f-hess.cc, f-ifft.cc, f-ifft2.cc, f-inv.cc, f-log.cc, |
|
8207 f-lpsolve.cc, f-lsode.cc, f-lu.cc, f-minmax.cc, f-npsol.cc, |
|
8208 f-pinv.cc, f-qpsol.cc, f-qr.cc, f-quad.cc, f-qzval.cc, f-rand.cc, |
|
8209 f-schur.cc, f-sort.cc, f-svd.cc, f-syl.cc, file-io.cc, help.cc, |
|
8210 input.cc, lex.l, load-save.cc, mappers.cc, octave-hist.cc, |
|
8211 octave.cc, octave.h, pager.cc, pr-output.cc, resource.cc, |
|
8212 sighandlers.cc, strfns.cc, sysdep.cc, timefns.cc, token.cc, |
|
8213 tree-const.cc, tree-expr.cc, tree-expr.h, tree-plot.cc, |
|
8214 unwind-prot.cc, unwind-prot.h, utils.cc, variables.cc, |
|
8215 variables.h, version.h, xdiv.cc: |
|
8216 Avoid unused variable warnings. |
|
8217 |
|
8218 * tree-expr.h (tree_oct_obj::print_value (ostream&)): |
|
8219 Delete name of unused arg. |
|
8220 (tree_fvc::save (ostream&, int, int): Likewise. |
|
8221 |
|
8222 * tree-const.h (tree_constant::tree_constant (magic_colon)): |
|
8223 Delete name of unused arg. |
|
8224 (tree_constant::tree_constant (all_va_args)): Likewise |
|
8225 (ColumnVector vector_value (int, int)): Likewise. |
|
8226 (ComplexColumnVector vector_value (int, int)): Likewise. |
|
8227 (Octave_object::eval (int, int, const Octave_object&): Likewise. |
|
8228 |
|
8229 * octave.cc (execute_startup_files): Look for octaverc first in |
|
8230 site/m, then in $(version)/m. |
|
8231 * variables.cc (get_local_site_defaults): New function. |
|
8232 * defaults.h.in (OCTAVE_LOCALFCNFILEDIR, OCTAVE_LOCALSTARTUPFILEDIR): |
|
8233 New macros. |
|
8234 * Makefile.in (defaults.h): Also substitute ${localfcndir}. |
|
8235 |
|
8236 Mon Sep 25 17:01:03 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8237 |
|
8238 * variables.cc (install_builtin_variables): Add DEFCONST for "e". |
|
8239 |
|
8240 Fri Sep 22 02:18:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8241 |
|
8242 * dirfns.cc (Fls): Delete ls_command after using it, not before. |
|
8243 |
|
8244 * input.h, input.cc (gnu_readline): Don't declare gnu_readline |
|
8245 `extern "C"'. |
|
8246 |
|
8247 * sysdep.h: Only declare gethostname if it is missing, then don't |
|
8248 declare it `extern "C"'. |
|
8249 |
|
8250 * dirfns.cc: Don't declare strerror(). |
|
8251 |
|
8252 * input.cc (command_generator): Use malloc, not xmalloc. Don't |
|
8253 declare xmalloc. |
|
8254 (gnu_readline): Don't declare this `extern "C"'. |
|
8255 |
|
8256 * octave-hist.cc: Don't declare history_get(). It is now in |
|
8257 readline/history.h. |
|
8258 |
|
8259 * input.cc: Don't declare history_get(). It is now in |
|
8260 readline/readline.h. |
|
8261 |
|
8262 * resource.cc: Don't surround include of sys/resource.h in |
|
8263 `extern "C" { }'. |
|
8264 |
|
8265 * fnmatch.h [__cplusplus]: Surround contents in `extern "C" { }'. |
|
8266 * load-save.cc, symtab.cc, variables.cc: Don't surround |
|
8267 fnmatch.h include in `extern "C" { }'. |
|
8268 |
|
8269 * help.cc: Don't #undef __FUNCTION_DEF before including |
|
8270 readline/tilde.h. |
|
8271 |
|
8272 * dirfuns.cc, file-io.cc, help.cc, load-save.cc, octave-hist.cc, |
|
8273 sysdep.cc, tree-plot.cc, utils.cc, variables.cc: |
|
8274 Don't surround readline includes in `extern "C" { }'. |
|
8275 |
|
8276 * sysdep.cc: Move all include statements to top of file. |
|
8277 |
|
8278 Tue Sep 19 01:58:21 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8279 |
|
8280 * octave.cc (Fsystem): Use iprocstream *, and unwind_protect it. |
|
8281 * pager.cc (flush_output_to_pager): Likewise. |
|
8282 * dirfns.cc (Fls): Likewise. |
|
8283 * tree-plot.cc (plot_stream): Now a pointer. |
|
8284 (open_plot_stream): Deal with it. |
|
8285 (send_to_plot_stream, cleanup_tmp_files, do_external_plotter_cd): |
|
8286 Likewise. |
|
8287 |
|
8288 * procstream.cc (cleanup_iprocstream, cleanup_oprocstream): |
|
8289 New functions. |
|
8290 |
|
8291 * procstream.h, procstream.cc (class iprocstream, class oprocstream): |
|
8292 Keep track of pbuf. Initialize it to 0 in default constructors, |
|
8293 delete it in destructor. Don't call close in destructor. |
|
8294 |
|
8295 * sighandlers.cc (octave_set_signal_handler): New function. |
|
8296 Use this name instead of signal everywhere. |
|
8297 * help.cc (try_info): Likewise. |
|
8298 * pager.cc (flush_output_to_pager): Likewise. |
|
8299 * octave.cc (main): Likewise. |
|
8300 * octave-hist.cc (do_edit_history): Likewise. |
|
8301 |
|
8302 * input.cc (initialize_readline): Set rl_paren_string_delimiters |
|
8303 to avoid treating single quotes as string delimiters when doing |
|
8304 paren matching. |
|
8305 |
|
8306 * Makefile.in (SOURCES): Don't list Map.cc or SLStack.cc here. |
|
8307 |
|
8308 * tree-const.cc: Do include utils.h. |
|
8309 |
|
8310 * sysdep.cc: Don't surround terminal includes in extern "C". |
|
8311 Include them before readline.h. |
|
8312 |
|
8313 * Map.h: Don't include utils.h. |
|
8314 (CHNode::CHNode (const char*, const C&, CHNode *t): |
|
8315 Do strsave() inline. |
|
8316 |
|
8317 * input.cc (generate_possible_completions): Generate name list |
|
8318 even when text == 0. |
|
8319 (operate_and_get_next): Don't declare history_stifled, call |
|
8320 history_is_stifled () instead. |
|
8321 Don't declare history_length, or max_input_history either. |
|
8322 Check (where >= history_length - 1) too, as in recent versions of |
|
8323 bash. |
|
8324 |
|
8325 * user-prefs.h (user_prefs): New field, `completion_append_char'. |
|
8326 * user-prefs.cc (init_user_prefs): Initialize it. |
|
8327 (sv_completion_append_char): New function. |
|
8328 * variables.cc (install_builtin_variables): Install |
|
8329 completion_append_char. |
|
8330 * input.cc (command_generator): Use it. |
|
8331 |
|
8332 * SLList-expr.cc, SLList-misc.cc, SLList-plot.cc, SLList-tc.cc, |
|
8333 DLList-fi.cc: Include config.h. |
|
8334 * DLList-fi.cc: Include file-info.h, not file-io.h. |
|
8335 |
|
8336 Mon Sep 18 11:01:24 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8337 |
|
8338 * octave.h (clean_up_and_exit): Tag with NORETURN instead of using |
|
8339 typedef trick. |
|
8340 * error.h (panic): Likewise. |
|
8341 * utils.h (jump_to_top_level): Likewise. |
|
8342 |
|
8343 * file-io.h: Protect from multiple includes with octave_file_io, |
|
8344 not octave_files. |
|
8345 |
|
8346 * file-info.h (class file_info): Convert to using std C++ string |
|
8347 class from char *. |
|
8348 * file-info.cc: Likewise. Don't include utils.h. |
|
8349 * file-io.cc (return_valid_file, fopen_file_for_user, |
|
8350 fflush_internal, do_scanf): Use operator ==, not strcmp. |
|
8351 (close_files): Call error with file.name ().data (), |
|
8352 not file.name (). |
|
8353 (freport_internal): Call form with file.mode ().data () and |
|
8354 file.name ().data (). |
|
8355 |
|
8356 * file-io.cc, file-io.h: Extract file_info class. |
|
8357 * file-info.cc, file-info.h: New files for file_info class. |
|
8358 |
|
8359 * user-prefs.h (user_prefs): New field, `beep_on_error'. |
|
8360 * user-prefs.cc (init_user_prefs): Initialize it. |
|
8361 (beep_on_error): New function. |
|
8362 * variables.cc (install_builtin_variables): Install beep_on_error. |
|
8363 * octave.cc (maximum_braindamage): Set beep_on_error to "true". |
|
8364 * error.cc (verror): Conditionally beep. |
|
8365 (error): Don't reset error_state until after verror is called. |
|
8366 |
|
8367 Sun Sep 17 16:41:25 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8368 |
|
8369 * load-save.cc (read_mat_binary_data, read_ascii_data, |
|
8370 save_ascii_data, read_binary_data, save_binary_data): |
|
8371 Handle string arrays. |
|
8372 |
|
8373 Fri Sep 15 00:24:19 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8374 |
|
8375 * user-prefs.cc (struct_levels_to_print, |
|
8376 set_output_max_field_width, set_output_precision, |
|
8377 set_save_precision): Eliminate unecessary kludge variable. |
|
8378 |
|
8379 * variables.cc (gobble_leading_white_space): New arg, |
|
8380 in_parts. Change all callers. |
|
8381 |
|
8382 * lex.l (HELP_FCN): Delete start state. The `help' command is now |
|
8383 handled the same as any other text-style function. |
|
8384 |
|
8385 * gripes.cc (gripe_invalid_value_specified): New function |
|
8386 * user-prefs.cc: Use it. |
|
8387 |
|
8388 * sysdep.cc (octave_words_big_endian): New global variable. |
|
8389 (ten_little_endians): New function. |
|
8390 (sysdep_init): Call it. |
|
8391 * load-save.cc (words_big_endian): Use this at run-time instead of |
|
8392 depending on WORDS_BIGENDIAN at compile-time. |
|
8393 |
|
8394 * symtab.h (SYMTAB_VARIABLES): New macro. |
|
8395 * variables.cc (Fclear): Use it instead of just |
|
8396 symbol_def::USER_VARIABLE when looking for variables. |
|
8397 |
|
8398 * octave.cc (main): If there is a file to execute, set |
|
8399 program_invocation_name and program_name to the name of the file |
|
8400 and argv to the remaining args. |
|
8401 (intern_argv): Only define argv if there are some remaining |
|
8402 arguments. |
|
8403 |
|
8404 * defun.h (DEFVAR_INT): New macro. |
|
8405 (DEFVAR): Define in terms of DEFVAR_INT. Delete args protect and |
|
8406 eternal. |
|
8407 (DEFCONST): New macro. |
|
8408 * variables.cc (install_builtin_variables): Use DEFCONST where |
|
8409 appropriate, change uses of DEFVAR to match new definition. |
|
8410 |
|
8411 * variables.cc (bind_builtin_variable): New variant that accepts |
|
8412 const tree_constant& value. |
|
8413 (install_builtin_variables): Properly alphabetize DEFVAR for this. |
|
8414 |
|
8415 * octave.cc (short_opts): Prefix with `+' to prevent argv |
|
8416 permutation. |
|
8417 (main): Don't use readline if forced_interactive. |
|
8418 (traditional): New file-scope variable. |
|
8419 (long_opts, usage_string, verbose_usage): Add `--traditional'. |
|
8420 (maximum_braindamage): New function. |
|
8421 (main): Call it if --traditional. |
|
8422 |
|
8423 * input.cc (do_input_echo): Print prompt correctly when |
|
8424 forced_interactive is either true or false. |
|
8425 |
|
8426 Thu Sep 14 00:54:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8427 |
|
8428 * data.cc (Fstruct_elements): New function. |
|
8429 |
|
8430 * file-io.cc (Fumask): New function. |
|
8431 |
|
8432 * dirfns.cc (Fmkdir, Frmdir, Frename): New functions. |
|
8433 |
|
8434 * Makefile.in: Add rules and dependencies for building safe-stat.o |
|
8435 and safe-lstat.o. |
|
8436 |
|
8437 * mkdir.c, rename.c, rmdir.c: New files. |
|
8438 * Makefile.in (SOURCES): Include them in the list. |
|
8439 |
|
8440 * safe-xstat.hin, safe-xstat.cin: New files |
|
8441 * Makefile.in (DISTFILES): Include them in the list. |
|
8442 |
|
8443 * sighandlers.cc (octave_new_handler): Try to continue on memory |
|
8444 exhausted errors. |
|
8445 (sigfpe_handler): Improve error message. |
|
8446 |
|
8447 * Makefile.in: Use `ifndef omit_deps', not `ifndef $(omit_deps)'. |
|
8448 |
|
8449 * dirfns.cc (Freaddir): New function. |
|
8450 |
|
8451 * f-sort.cc: Complete rewrite. Now uses stable sort algorithm and |
|
8452 correctly handles complex matrices containing columns of all real |
|
8453 numbers. |
|
8454 |
|
8455 Wed Sep 13 03:16:40 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8456 |
|
8457 * arith-ops.cc: Unconditionally #define DIVIDE_BY_ZERO_ERROR. |
|
8458 |
|
8459 * variables.cc (install_builtin_variables): Unconditionally |
|
8460 install NaN and nan. |
|
8461 |
|
8462 * mappers.cc (xisinf): Don't do bogus things if isinf, isnan, or |
|
8463 finite are missing. |
|
8464 (xfinite): Likewise. |
|
8465 |
|
8466 * sysdep.cc (octave_ieee_init): Don't set octave_NaN and |
|
8467 octave_Inf if values are not available. |
|
8468 |
|
8469 * resource.cc (mk_ru_map): Don't use ru_ or tv_ as prefixes to |
|
8470 Octave names for the structure members. |
|
8471 |
|
8472 Tue Sep 12 02:04:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8473 |
|
8474 * procstream.h, procstream.cc: Rewrite. |
|
8475 |
|
8476 Mon Sep 11 18:42:05 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8477 |
|
8478 * filemode.c: New file, from Emacs. |
|
8479 * Makefile.in (SOURCES): Add it to the list. |
|
8480 |
|
8481 * file-io.cc (Fstat, Flstat, mk_stat_map): New functions. |
|
8482 |
|
8483 * timefns.cc (mk_tm_map): Don't use tm_ as prefix to Octave names |
|
8484 for these structure members. |
|
8485 (extract_tm): Likewise. |
|
8486 (Flocaltime): Fix doc string to match. |
|
8487 |
|
8488 Thu Sep 7 02:04:27 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8489 |
|
8490 * load-save.cc (save_user_variables): New function. |
|
8491 * sighandlers.cc (my_friendly_exit): Call it before exiting. |
|
8492 (sigfpe_handler): New function. |
|
8493 (install_signal_handlers) [__alpha__]: Install it. |
|
8494 |
|
8495 Wed Sep 6 14:35:10 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8496 |
|
8497 * tree-cmd.cc (tree_unwind_protect::eval): Ignore errors and |
|
8498 suppress error messages while executing first block of |
|
8499 unwind_protect commands. |
|
8500 |
|
8501 * parse.y (end_error): Add missing case for unwind_protect_end. |
|
8502 |
|
8503 * tree-expr.cc (tree_builtin::eval): Complain if no arguments |
|
8504 given for mapper functions. |
|
8505 (tree_fvc::lookup_map_element): Print error message for invalid |
|
8506 structure reference. |
|
8507 |
|
8508 Tue Sep 5 02:04:12 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8509 |
|
8510 * file-io.cc, input.cc, load-save.cc, octave.cc, sysdep.cc, |
|
8511 variables.cc, octave-hist.cc, utils.cc, f-schur.cc, f-rand.cc, |
|
8512 f-quad.cc, f-qpsol.cc, f-npsol.cc, f-lsode.cc, f-fsolve.cc, |
|
8513 f-dassl.cc, f-colloc.cc, f-balance.cc, error.cc, data.cc: |
|
8514 Add const qualifiers where appropriate. |
|
8515 |
|
8516 * dirfns.h: Include <ctime>, for time_t. |
|
8517 |
|
8518 * tempname.c, file-io.cc, help.cc, input.cc, octave-hist.cc, |
|
8519 octave.cc, sighandlers.cc, sysdep.cc, tree-expr.cc, tree-misc.cc, |
|
8520 tree-plot.cc, utils.cc, variables.cc, sysdir.h: |
|
8521 Move #include <sys/type.h> inside #ifdef HAVE_UNISTD_H. |
|
8522 |
|
8523 * syswait.h: New file. |
|
8524 * Makefile.in (INCLUDES): Add it to the list. |
|
8525 * file-io.cc, sighandlers.cc: Use it instead of including |
|
8526 sys/wait.h directly. |
|
8527 |
|
8528 * octave.cc: Include statdefs.h, not sys/stat.h. |
|
8529 |
|
8530 * sysdir.h: New file. |
|
8531 * Makefile.in (INCLUDES): Add it to the list. |
|
8532 * dirfns.cc, utils.cc: Use it instead of including the headers |
|
8533 directly. |
|
8534 |
|
8535 * pathlen.h: New file. |
|
8536 * Makefile.in (INCLUDES): Add it to the list. |
|
8537 * dirfns.cc, input.cc: Use it instead of including sys/param.h |
|
8538 directly. |
|
8539 * utils.cc: Don't include sys/param.h |
|
8540 |
|
8541 Sun Sep 3 18:52:59 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8542 |
|
8543 * tree-const.cc (TC_REP::string_value): Return const char*, not |
|
8544 char *. |
|
8545 |
|
8546 * All .cc, .y, .l, .y files: Include <cctype>, not <ctype.h>, and |
|
8547 so on for all new C++ versions of these standard C headers. |
|
8548 |
|
8549 Thu Aug 31 17:09:38 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8550 |
|
8551 * pathsearch.h: Also hide `string'. |
|
8552 |
|
8553 * oct-str.cc, oct-str.h: New files. |
|
8554 * Makefile.in: Add to the appropriate lists. |
|
8555 * tc-rep.h: Change char* to Octave_string* in anonymous union. |
|
8556 * tree-expr.cc (tree_matrix::eval): Handle multiple element strings. |
|
8557 * strfns.cc (toascii): Likewise. |
|
8558 * tree-const.cc (print_as_string): Likewise. |
|
8559 (TC_REP::force_numeric, TC_REP::rows, TC_REP::columns, |
|
8560 TC_REP::double_value, TC_REP::complex_value, TC_REP::matrix_value, |
|
8561 TC_REP::complex_matrix_value, TC_REP::convert_to_str): Likewise. |
|
8562 (TC_REP::print): Call octave_print_internal for string case. |
|
8563 (all_strings): New function. |
|
8564 Fix constructors to use new data structure. |
|
8565 * pr-output.cc (octave_print_internal): Add version for strings. |
|
8566 * Array-string.cc: New file. |
|
8567 |
|
8568 * octave.cc (octave_argv): New global variable. |
|
8569 (intern_argv): New function. |
|
8570 (main): Fix argument parsing to do the right thing for arguments |
|
8571 to executable scripts. |
|
8572 * variables.cc: Add DEFUNs for argv, program_invocation_name, and |
|
8573 program_name. |
|
8574 |
|
8575 * defun.h (DEFVAR): Fix comment. |
|
8576 |
|
8577 Thu Aug 24 00:02:00 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8578 |
|
8579 * file-io.cc (fgets_internal): Make second arg optional. Add |
|
8580 optional arg `strip_final_newline'. |
|
8581 (Ffgets): Change to match new definition of fgets_internal. |
|
8582 (Ffgetl): Implement using the new fgets_internal. |
|
8583 |
|
8584 * f-rand.cc (Frand): Update code for sizing return value to match |
|
8585 that used by ones, zeros, and eye. |
|
8586 |
|
8587 Wed Aug 23 19:52:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8588 |
|
8589 * tree-const.cc (do_vector_assign): Don't crash for |
|
8590 A(range) = scalar, or A(matrix) = scalar. |
|
8591 |
|
8592 * f-dassl.cc (set_dassl_option): Rename from do_dassl_option. |
|
8593 (show_dassl_option): New function. |
|
8594 (Fdassl_options): Handle single arg. |
|
8595 * f-fsolve.cc (set_fsolve_option): Rename from do_fsolve_option. |
|
8596 (show_fsolve_option): New function. |
|
8597 (Ffsolve_options): Handle single arg. |
|
8598 * f-fsqp.cc (set_fsqp_option): Rename from do_fsqp_option. |
|
8599 (show_fsqp_option): New function. |
|
8600 (Ffsqp_options): Handle single arg. |
|
8601 * f-lpsolve.cc (set_lpsolve_option): Rename from do_lpsolve_option. |
|
8602 (show_lpsolve_option): New function. |
|
8603 (Flpsolve_options): Handle single arg. |
|
8604 * f-lsode.cc (set_lsode_option): Rename from do_lsode_option. |
|
8605 (show_lsode_option): New function. |
|
8606 (Flsode_options): Handle single arg. |
|
8607 * f-npsol.cc (set_npsol_option): Rename from do_npsol_option. |
|
8608 (show_npsol_option): New function. |
|
8609 (Fnpsol_options): Handle single arg. |
|
8610 * f-qpsol.cc (set_qpsol_option): Rename from do_qpsol_option. |
|
8611 (show_qpsol_option): New function. |
|
8612 (Fqpsol_options): Handle single arg. |
|
8613 * f-quad.cc: (set_quad_option): Rename from do_quad_option. |
|
8614 (show_quad_option): New function. |
|
8615 (Fquad_options): Handle single arg. |
|
8616 (Fquad): Doc fix. |
|
8617 |
|
8618 Tue Aug 22 00:38:05 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8619 |
|
8620 * tree-plot.cc (do_external_plotter_cd): New function. |
|
8621 * dirfns.cc (octave_change_to_directory): New function. If cd is |
|
8622 successful, also call do_external_plotter_cd(). |
|
8623 (Fcd): Call octave_change_to_directory(), not change_to_directory(). |
|
8624 |
|
8625 * pr-output.cc (pr_any_float): Change declaration of counter to |
|
8626 size_t to avoid gcc warnings. |
|
8627 |
|
8628 * idx-vector.cc, octave-hist.cc, tree-const.cc, tree-expr.cc, |
|
8629 tree-misc.cc, utils.cc, xpow.cc, Map.cc: |
|
8630 Update for change in for loop variable scope for gcc 2.7.0. |
|
8631 |
|
8632 Mon Aug 21 19:34:53 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8633 |
|
8634 * tree-const.cc (fortran_style_matrix_assignment): Properly handle |
|
8635 case of complex LHS, real RHS. |
|
8636 |
|
8637 * Makefile.in: Only include dependency files if $(omit_deps) is |
|
8638 not set. |
|
8639 |
|
8640 Wed Jul 5 00:03:58 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8641 |
|
8642 * sysdep.cc: Explicitly include string.h. |
|
8643 |
|
8644 Sun Jun 25 00:18:10 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8645 |
|
8646 * load-save.cc (too_large_for_float (const Matrix&)): |
|
8647 Extract elements as doubles, not Complex. |
|
8648 |
|
8649 Sat Jun 24 22:59:15 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8650 |
|
8651 * pr-output.cc (any_element_is_inf_or_nan): Declare extern, not static. |
|
8652 * f-svd.cc (Fsvd): Call here to avoid trying to take SVD of matrix |
|
8653 containing Inf or NaN values. |
|
8654 |
|
8655 * pr-output.cc (bit_format): New file-scope variable. |
|
8656 (set_format, pr_any_float): Handle bit_format. |
|
8657 (octave_print_internal): Handle bit_format like bank_format. |
|
8658 (init_format_state): Initialize bit_format. |
|
8659 (set_format_style): Allow `format bit' and `format native-bit'. |
|
8660 |
|
8661 Thu Jun 8 15:20:26 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8662 |
|
8663 * mappers.cc (arg, imag, signum): If arg is NaN, return NaN. |
|
8664 |
|
8665 Mon May 15 14:47:04 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8666 |
|
8667 * pager.cc (Fdiary): Initialize diary_file here, not in the |
|
8668 file-scope declaration. |
|
8669 |
|
8670 * tree-expr.cc (tree_index_expression::eval): |
|
8671 Handle nargin == 0 the same as other cases. |
|
8672 |
|
8673 Tue May 2 10:02:23 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8674 |
|
8675 * load-save.cc (do_double_format_conversion): Add missing breaks. |
|
8676 (do_float_format_conversion): Likewise. |
|
8677 |
|
8678 Mon May 1 13:50:24 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8679 |
|
8680 * Makefile.in (OCTAVE_LIBS): Add @LIBPLPLOT@ to the list. |
|
8681 |
|
8682 * timefns.cc (Ftime): Handle GETTIMEOFDAY_NO_TZ. |
|
8683 |
|
8684 * Makefile.in (SOURCES): Delete tc-rep.cc, tc-rep-ass.cc, and |
|
8685 tc-rep-idx.cc from the list. |
|
8686 |
|
8687 * tree-const.h: Add #pragma interface. |
|
8688 * tree-const.cc: Add contents of tc-rep.cc, tc-rep-ass.cc, and |
|
8689 tc-idx.cc to this file. Add #pragma implementation. This makes |
|
8690 tree-const.cc large, but makes the final binary smaller. |
|
8691 |
|
8692 * unwind-prot.h unwind-prot.cc token.cc token.h procstream.cc |
|
8693 procstream.h idx-vector.cc idx-vector.h symtab.cc symtab.h |
|
8694 oct-map.cc oct-map.h oct-obj.cc oct-obj.h tree-plot.h tree-plot.cc |
|
8695 tree-misc.cc tree-misc.h tree-expr.cc tree-expr.h tree-cmd.cc |
|
8696 tree-cmd.h tree-base.cc tree-base.h: |
|
8697 Add #pragma interface/implementation. |
|
8698 |
|
8699 * Makefile.in (OCTAVE_LIBS): Delete @LIBINFO@ from list. |
|
8700 * help.cc: Don't include info headers or extern declarations for |
|
8701 functions from info. |
|
8702 (try_info): Call info as a subprocess. Delete second arg. |
|
8703 Handle SIGINT here, not in help_from_info(). |
|
8704 (help_from_info): Complain if info doesn't work. |
|
8705 |
|
8706 * defun-dld.h (DEFUN_DLD_BUILTIN) [OCTAVE_LITE && MAKE_BUILTINS]: |
|
8707 If ! WITH_DLD, simply emit a character string constant. |
|
8708 |
|
8709 Fri Apr 28 15:23:06 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8710 |
|
8711 * lex.l ({IDENT}{S}*): Don't delete tok. That's handled by |
|
8712 strip_trailing_whitespace() now. |
|
8713 (<HELP_FCN>[^ \t\n]*{S}*|<TEXT_FCN>[^ \t\n\;\,]*{S}*): Ditto. |
|
8714 |
|
8715 * pathsearch.h: Include kpathsea/progname.h. |
|
8716 * octave.cc (initialize_globals): Call kpse_set_progname(). |
|
8717 |
|
8718 * token.h: Declare copy constructor and operator = private. |
|
8719 * token.cc: Abort if copy constructor or operator = is used. |
|
8720 |
|
8721 Thu Apr 27 13:54:39 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8722 |
|
8723 * tree-expr.cc (lookup_map_element): Don't list default argument |
|
8724 values here too. |
|
8725 |
|
8726 * pr-output.cc (hex_format): New file-scope variable. |
|
8727 (set_format, pr_any_float): Handle hex_format. |
|
8728 (octave_print_internal): Handle hex_format like bank_format. |
|
8729 (init_format_state): Initialize hex_format. |
|
8730 (set_format_style): Allow `format hex' and `format native-hex'. |
|
8731 |
|
8732 * variables.cc (bind_ans): Create ans_id each time with new and |
|
8733 ask tree_simple_assignment_expression to handle cleaning it up. |
|
8734 This apparently plugs a memory leak. |
|
8735 |
|
8736 * help.cc (Ftype): Don't try to print map constants. Handle |
|
8737 references to structure members. |
|
8738 |
|
8739 Wed Apr 26 12:40:59 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8740 |
|
8741 * input.cc (generate_struct_completions): New function. |
|
8742 (generate_possible_completions): Likewise. |
|
8743 (looks_like_struct): Likewise. |
|
8744 (command_generator): Handle completion of struct variables. |
|
8745 |
|
8746 * tree-expr.h, tree-expr.cc (tree_fvc::lookup_map_element): |
|
8747 Add insert and silent args. |
|
8748 |
|
8749 * oct-map.cc: New file. |
|
8750 * Makefile.in (SOURCES): Add it to the list. |
|
8751 |
|
8752 Mon Apr 24 09:41:02 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8753 |
|
8754 * variables.cc (Fexist): Handle structure references too. |
|
8755 |
|
8756 * tree-const.cc (lookup_map_element (const char*, int, int): |
|
8757 New function. |
|
8758 (lookup_map_element (SLList<char*>&, int, int): New arg, silent. |
|
8759 * tc-rep.cc (lookup_map_element): New arg, silent. If nonzero, |
|
8760 don't call error(). |
|
8761 |
|
8762 * tc-rep.h (is_empty): Define here. |
|
8763 * tree-const.h (is_empty): Hand off to TC_REP::is_empty(). |
|
8764 |
|
8765 * data.cc (Fstruct_contains): Call lookup_map_element on args(0) |
|
8766 instead of extracting the map and calling contains() on it. |
|
8767 |
|
8768 * parse.y (EPLUS, EMINUS): New tokens. |
|
8769 (simple_expr): Handle EPLUS, EMINUS the same as `+' and `-'. |
|
8770 * lex.l (".+", ".-"): New patterns. Match these separately to |
|
8771 disallow using them as unary operators. |
|
8772 |
|
8773 * lex.l (next_token_is_bin_op): Simplify by noting that spacing |
|
8774 only matters for those tokens that can also be unary ops. |
|
8775 |
|
8776 Fri Apr 21 14:34:45 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8777 |
|
8778 * load-save.cc (read_ascii_data): Allow reading of empty |
|
8779 matrices. |
|
8780 |
|
8781 * tc-rep-ass.cc (vector_assignment): Only assert that we are not |
|
8782 doing fortran-style indexing and that nr <= 1 || nc <= 1. |
|
8783 (do_vector_assign): Handle assignment of [] when one dimension is |
|
8784 zero and the other is anything. |
|
8785 |
|
8786 Thu Apr 20 13:56:21 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8787 |
|
8788 * tc-rep-ass.cc (delete_rows, delete_columns): Simply return if |
|
8789 num_to_delete is 0. |
|
8790 |
|
8791 * lex.l (handle_identifier): Don't match plot option keywords |
|
8792 inside parentheses or braces. |
|
8793 |
|
8794 * variables.cc (parse_fcn_file): Also delete tmp_help_txt if |
|
8795 running a script. |
|
8796 |
|
8797 * tree-cmd.h (tree_command): Add destructor. |
|
8798 |
|
8799 * tree-expr.h tree_simple_assignment_expression (lhs_idx_expr): |
|
8800 Hang on to idx_expr, not just its parts so it can be deleted. |
|
8801 (init): Initialize it. |
|
8802 * tree-expr.cc (~tree_simple_assignment_expression): Delete it. |
|
8803 |
|
8804 * tree-expr.h (tree_multi_val_ret, tree_oct_obj, tree_fvc, |
|
8805 tree_identifier, tree_builtin, tree_function): Add destructors. |
|
8806 * tree-expr.cc (tree_function::~tree_function): Delete some stuff. |
|
8807 |
|
8808 * tree-misc.h (tree_va_return_list): Add destructor. |
|
8809 |
|
8810 * octave.cc (__builtin_new, __builtin_delete): Provide our own, |
|
8811 for debugging. |
|
8812 |
|
8813 * utils.cc (strconcat): Don't depend on the return value from |
|
8814 strcat. |
|
8815 (file_in_path): Simplify logic. |
|
8816 |
|
8817 * parse.y (maybe_convert_to_ans_assign): Create ans_id each time |
|
8818 with new and ask tree_simple_assignment_expression to handle |
|
8819 cleaning it up. This apparently plugs a memory leak. |
|
8820 |
|
8821 * lex.l (strip_trailing_whitespace): Declare retval static. |
|
8822 Delete it before saving next string. |
|
8823 |
|
8824 * error.cc (Ferror): Do call error() for empty string args. |
|
8825 (error_1): Don't print anything if fmt is "" or "\n", but do set |
|
8826 the error state appropriately. |
|
8827 |
|
8828 * tree-cmd.cc (tree_unwind_protect::eval): Handle return and break |
|
8829 in the `try' part of the statement. |
|
8830 |
|
8831 Mon Apr 10 19:29:44 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8832 |
|
8833 * f-expm.cc, f-givens.cc, f-qzval.cc, f-syl.cc, f-rand.cc: |
|
8834 Where appropriate, declare Fortran functions to take reference |
|
8835 instead of pointer args. Change callers. |
|
8836 |
|
8837 * mappers.cc: Declare Fortran functions to take reference instead |
|
8838 of pointer args. Change callers. |
|
8839 |
|
8840 * gamma.c, lgamma.c, erfc.c, erf.c, atanh.c, asinh.c, acosh.c: |
|
8841 Declare Fortran functions to take reference instead of pointer |
|
8842 args. |
|
8843 |
|
8844 Sun Apr 9 19:38:53 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8845 |
|
8846 * file-io.cc (Fpopen, Fpclose, Fexecute, Fsync_system, |
|
8847 Fasync_system, Fwaitpid, Fmkfifo, Funlink): New functions. |
|
8848 |
|
8849 * sighandlers.cc (sigchld_handler): New function. |
|
8850 (install_signal_handlers): Add call to install |
|
8851 sigchld_handler. (This is #if 0'd out, waiting for code to help |
|
8852 determine which child exited and what to do about it). |
|
8853 |
|
8854 * tree-expr.h (tree_oct_obj): New class. |
|
8855 |
|
8856 * tree-expr.h (tree_multi_assignment_expression::preserve): New |
|
8857 data member. Add arg with default value to constructors. Change |
|
8858 callers as necessary. |
|
8859 * tree-expr.cc (~tree_multi_assignment_expression): Conditionally |
|
8860 delete lhs. |
|
8861 |
|
8862 * parse.y (make_multi_val_ret): Pass matrix instead of getting it |
|
8863 from the global matrix list. |
|
8864 (expression): Extract matrix from matrix list before calling |
|
8865 make_multi_val_ret(). |
|
8866 |
|
8867 * parse.y (command): Handle new for loop syntax for structures. |
|
8868 |
|
8869 * tree-plot.h (subplot_list): Include tree_print_code() in |
|
8870 initializer lists for constructors. |
|
8871 * tree-expr.h (tree_statement_list, tree_argument_list, |
|
8872 tree_parameter_list, tree_return_list, tree_global_init_list, |
|
8873 tree_if_command_list, ): Likewise. |
|
8874 |
|
8875 * tree-cmd.h (tree_for_command::id_list): New data member. |
|
8876 (tree_for_command (tree_return_list*, tree_expression*, |
|
8877 tree_statement_list*, int, int)): Likewise. |
|
8878 * tree-cmd.cc (tree_for_command::eval): Handle for loops with |
|
8879 structures. |
|
8880 (do_for_loop_once (tree_return_list*, Octave_object&, int&)): |
|
8881 New form for handling for loops with structures. |
|
8882 |
|
8883 * sysdep.cc (octave_ieee_init): Determine floating point format |
|
8884 here. |
|
8885 (native_float_format): New global variable. |
|
8886 (Fisieee): Compute return value from native_float_format, not by |
|
8887 using preprocessor macros. |
|
8888 * sysdep.h (enum floating_point_format): Move declaration here. |
|
8889 * load-save.cc: From here. |
|
8890 Always define all floating point format conversion routines. |
|
8891 (do_double_format_conversion, do_float_format_conversion): |
|
8892 Use native_float_format instead of preprocessor macros. |
|
8893 |
|
8894 Sat Apr 8 15:41:35 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8895 |
|
8896 * Makefile (TEMPLATE_SRC): New variable. |
|
8897 (DISTFILES): Add $(TEMPLATE_SRC). |
|
8898 (SOURCES): Delete Map.cc and SLStack.cc from here. |
|
8899 |
|
8900 * variables.cc (install_builtin_variables): Use OCTAVE_VERSION |
|
8901 instead of version_string to initialize OCTAVE_VERSION. |
|
8902 * version.h (version_string): Delete. |
|
8903 |
|
8904 * getopt.c (_getopt_internal): Initialize indfound to avoid warning. |
|
8905 |
|
8906 Fri Apr 7 15:29:41 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8907 |
|
8908 * tc-inlines.h (REP_RHS_MATRIX): Just check to see if tc is real |
|
8909 or complex. If conversion fails, return. |
|
8910 |
|
8911 Thu Apr 6 00:10:47 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8912 |
|
8913 * data.cc (Fstruct_contains): New function. |
|
8914 |
|
8915 * tc-rep.cc (print_code): Add extra parens around while condition |
|
8916 to avoid warning. |
|
8917 * utils.cc (undo_string_escapes): Likewise. |
|
8918 * input.cc (decode_prompt_string): Likewise. Also rewrite if |
|
8919 statement to avoid warning. |
|
8920 |
|
8921 Tue Apr 4 22:54:17 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8922 |
|
8923 * tree-expr.cc (tree_multi_assignment_expression::eval, |
|
8924 tree_simple_assignment_expression::eval): Call print_constant |
|
8925 even if user_pref.print_answer_id_name is false. |
|
8926 |
|
8927 Mon Apr 3 17:57:14 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8928 |
|
8929 * tc-inlines.h (TC_REP): Avoid redefinition. |
|
8930 |
|
8931 * tree-const.h (do_binary_op, do_unary_op): Declare as friends of |
|
8932 tree_constant class too. |
|
8933 |
|
8934 * tree-plot.h (subplot_using::have_values): Delete data member. |
|
8935 * tree-plot.cc (subplot_using::eval): Always recompute values. |
|
8936 |
|
8937 Fri Mar 31 10:18:32 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8938 |
|
8939 * tc-rep.cc (print): Print open brace for structures here. |
|
8940 * tree-expr.cc (print_constant): Not here. |
|
8941 |
|
8942 * symtab.cc (define): Don't delete arg if sv_fcn fails. |
|
8943 |
|
8944 * tree-const.cc (print): New function. Create ostrstream buffer |
|
8945 and pass it to rep->print(). |
|
8946 * tree-const.h (eval (int)): Call print(), not rep->print(). |
|
8947 * tc-rep.cc (structure_indent_level): New file-scope variable. |
|
8948 (print): New arg, output_buf, is stream to print to. |
|
8949 Print values of structure elements too. |
|
8950 |
|
8951 * user-prefs.h (user_preferences): New field, struct_levels_to_print. |
|
8952 * user-prefs.cc (struct_levels_to_print): New function. |
|
8953 * variables.cc (install_builtin_variables): Add DEFVAR for new |
|
8954 variable struct_levels_to_print. |
|
8955 |
|
8956 * tree-const.cc (print_as_scalar, print_as_structure): Move here |
|
8957 from tree-expr.cc and make extern. |
|
8958 |
|
8959 * tree-expr.cc (print_as_structure): New function. |
|
8960 (print_constant): Use it. |
|
8961 |
|
8962 * tree-expr.cc (print_constant): New arg, print_padding. |
|
8963 (tree_simple_assignment_expression::eval): Use print_constant |
|
8964 instead of duplicating code here. |
|
8965 (tree_multi_assignment_expression::eval): Likewise. |
|
8966 |
|
8967 Thu Mar 30 13:24:11 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8968 |
|
8969 * Makefile.in (SOURCES): Add resource.cc. |
|
8970 * resource.cc: New file, extracted from timefns.cc. |
|
8971 (Fgetrusage): New function. |
|
8972 * timefns.cc (cputime): Delete (now implemented in a function file |
|
8973 using new getrusage function). |
|
8974 |
|
8975 Wed Mar 29 22:52:42 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8976 |
|
8977 * Makefile.in (SOURCES): Add strftime.c. |
|
8978 * strftime.c: New file, from sh-utils distribution. |
|
8979 |
|
8980 * timefns.cc (mk_tm_map, extract_tm, Ftime, Fgmtime, Flocaltime, |
|
8981 Fmktime, Fstrftime): New basic time functions. |
|
8982 (Fclock, Fdate): Delete (now implemented in function files using new |
|
8983 time functions). |
|
8984 |
|
8985 Tue Mar 28 17:51:51 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8986 |
|
8987 * file-io.cc (return_valid_file, do_printf, do_scanf, |
|
8988 fclose_internal, feof_internal, ferror_internal, fflush_internal, |
|
8989 fgets_internal, fopen_internal, fread_internal, freport_internal, |
|
8990 frewind_internal, fseek_internal, ftell_internal, |
|
8991 fwrite_internal): Declare static. |
|
8992 * file-io.h: Delete extern declarations for them. |
|
8993 |
|
8994 Fri Mar 24 09:52:50 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8995 |
|
8996 * pr-output.cc (pr_col_num_header): New function. |
|
8997 (compact_format): New file-scope variable. |
|
8998 (set_format_style): Handle loose and compact formats. |
|
8999 (octave_print_internal (ostream&, const ComplexMatrix&, int)): |
|
9000 Replace duplicate code with call to pr_col_num_header(). |
|
9001 (octave_print_internal (ostream&, const Matrix&, int): Likewise. |
|
9002 (octave_print_internal (ostream&, const Range&, int): Likewise. |
|
9003 |
|
9004 Tue Mar 21 08:44:48 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9005 |
|
9006 * mappers.cc (xgamma): Always use Slatec library function. |
|
9007 * (xlgamma): Likewise. |
|
9008 * Makefile.in (SOURCES): Don't include lgamma.c. |
|
9009 |
|
9010 Fri Mar 17 22:38:39 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9011 |
|
9012 * tc-rep.cc (TC_REP::new): Don't try to keep track of newlist_tail. |
|
9013 Explicitly initialize newlist to zero. |
|
9014 * tree-const.cc (tree_constant::operator new): Likewise. |
|
9015 |
|
9016 Fri Mar 10 12:40:24 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9017 |
|
9018 * tree-cmd.cc (quit_loop_now): Declare inline. |
|
9019 (tree_for_command::do_for_loop_once): Split into two versions, one |
|
9020 for the general case and one for when the loop variable is a |
|
9021 simple identifier. |
|
9022 (DO_LOOP): New macro. Move tests outside of loop. |
|
9023 (tree_for_command::eval): Speed up by checking to see if loop |
|
9024 variable is a simple identifier and by using DO_LOOP. |
|
9025 |
|
9026 * tree-const.h: New union of rep and freeptr. The freeptr element |
|
9027 is used for our custom memory management functions. |
|
9028 |
|
9029 * tc-rep.h: Add freeptr element to anonymous union (for our custom |
|
9030 memory management functions). |
|
9031 |
|
9032 * tree-const.cc (newlist, newlist_grow_size, newlist_tail): New |
|
9033 static variables. |
|
9034 (tree_constant::operator new): Always define to allow more |
|
9035 efficient allocation of single tree_constants. |
|
9036 (tree_constant::operator delete): Likewise, handle deletion of the |
|
9037 memory we allocate. |
|
9038 |
|
9039 * tc-rep.cc (newlist, newlist_grow_size, newlist_tail): New static |
|
9040 variables. |
|
9041 (tree_constant::operator new): Always define to allow more |
|
9042 efficient allocation of single tree_constants. |
|
9043 (tree_constant::operator delete): Likewise, handle deletion of the |
|
9044 memory we allocate. |
|
9045 |
|
9046 Fri Mar 3 14:00:08 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9047 |
|
9048 * error.cc (verror): Terminate output_buf with ends. |
|
9049 |
|
9050 * statdefs.h: Use C-style comment in first line instead of |
|
9051 C++-style comment. |
|
9052 |
|
9053 Mon Feb 27 10:11:18 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9054 |
|
9055 * parse.y (maybe_convert_to_ans_assign): Only lookup ans once. |
|
9056 * variables.cc (bind_ans): New function. |
|
9057 * tree-expr.cc (tree_identifier::eval (int)): Use it here. |
|
9058 (tree_identifier::eval (int, int, const Octave_object&): And here. |
|
9059 |
|
9060 * tree-expr.cc (install_nargin_and_nargout): New function. |
|
9061 * tree-expr.h (tree_function::tree_function (tree_statement_list *, |
|
9062 symbol_table *, int, int)): Call it. |
|
9063 |
|
9064 * tree-expr.cc (tree_function::bind_nargin_and_nargout): New function. |
|
9065 (tree_function::eval): Call it insead of the one from variables.cc. |
|
9066 |
|
9067 * variables.cc (bind_nargin_and_nargout): #if 0 out. |
|
9068 |
|
9069 Sun Feb 26 00:17:06 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9070 |
|
9071 * load-save.cc (Fload, Fsave): Free fname returned by tilde_expand(). |
|
9072 * dirfns.cc (Fls): Likewise. |
|
9073 |
|
9074 * tree-expr.cc (tree_multi_assignment_expression::eval (int, int, |
|
9075 const Octave_object&)): Call tree_return_list::operator () (Pix) |
|
9076 explicitly. |
|
9077 |
|
9078 * octave.cc (initialize_globals): Put TEXMF in the environment for |
|
9079 kpthsea. |
|
9080 |
|
9081 * Makefile.in (OCTAVE_LIBS): Use @LIBINFO@ and @LIBREADLINE@, |
|
9082 substituted by configure. Use kpathsea.a, not libkpathsea, so we |
|
9083 don't have to modify the kpathsea Makefile. |
|
9084 |
|
9085 Sat Feb 25 18:59:26 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9086 |
|
9087 * pathsearch.cc: New file. |
|
9088 * pathsearch.h: New file. |
|
9089 * Makefile.in (INCLUDES): Include it in the list. |
|
9090 * dynamic-ld.cc, help.cc, utils.cc: Use it instead of repeating |
|
9091 identical code multiple times. |
|
9092 |
|
9093 * variables.cc (install_builtin_variables): Only DEFVAR |
|
9094 suppress_verbose_help_message if USE_GNU_INFO. |
|
9095 |
|
9096 * help.cc (Fhelp): Only handle -i if USE_GNU_INFO. |
|
9097 (additional_help_message): Only print message if USE_GNU_INFO. |
|
9098 (builtin_help): New function. |
|
9099 (help_from_info): New function. Print warning if not USE_GNU_INFO. |
|
9100 |
|
9101 See ChangeLog.1 in the top level directory for earlier changes. |