4005
|
1 2002-07-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2 |
|
3 * ov.cc (silent_functions, Vsilent_functions): Move here. |
|
4 (octave_value::print_with_name): Don't print anything if we are |
|
5 evaluating a function and Vsilent_functions is true. |
|
6 |
|
7 * pt-stmt.cc: From here. |
|
8 (symbols_of_pt_stmt): Delete. |
|
9 (tree_statement_list::eval): Don't bother with Vsilent_functions here. |
|
10 |
3998
|
11 2002-07-24 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
12 |
|
13 * Makefile.in (OPT_HANDLERS): New targets. |
4002
|
14 (doc-files): New target. |
|
15 (gendoc.cc): Depend on doc-files, not $(DOC_FILES). |
3998
|
16 |
|
17 * DLD-FUNCTIONS/daspk.cc, DLD-FUNCTIONS/dasrt.cc, |
|
18 DLD-FUNCTIONS/dassl.cc, DLD-FUNCTIONS/fsolve.cc, |
|
19 DLD-FUNCTIONS/lsode.cc, DLD-FUNCTIONS/odessa.cc |
|
20 DLD-FUNCTIONS/quad.cc: Replace option handling code with include |
|
21 directive. |
|
22 |
|
23 2002-07-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
24 |
|
25 * pt-loop.cc (tree_simple_for_command::eval): Once we know the RHS |
|
26 is a matrix type check for real_type, not real_matrix. |
|
27 |
|
28 2002-07-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
29 |
|
30 * DLD-FUNCTIONS/quad.cc (quad): Cope with changes to Quad constructors. |
|
31 |
3997
|
32 2002-07-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
33 |
|
34 * DLD-FUNCTIONS/daspk.cc (Fdaspk): Also return istate and error |
|
35 message. Only generate error if user is not at least requesting |
|
36 the istate output. |
|
37 * DLD-FUNCTIONS/dasrt.cc (Fdasrt): Likewise. |
|
38 * DLD-FUNCTIONS/dassl.cc (Fdassl): Likewise. |
|
39 * DLD-FUNCTIONS/lsode.cc (Fodessa): Likewise. |
|
40 |
3990
|
41 2002-07-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
42 |
3992
|
43 * DLD-FUNCTIONS/dasrt.cc (Fdasrt): No need to find ng here. |
3993
|
44 (dasrt_user_j): New function. |
|
45 (Fdasrt): Handle Jacobian function. |
3992
|
46 |
3991
|
47 * DLD-FUNCTIONS/dassl.cc (dassl_user_jacobian): New function. |
|
48 (Fdassl): Handle Jacobian function. |
|
49 |
3990
|
50 * DLD-FUNCTIONS/dasrt.cc: New file. |
|
51 * Makefile.in (DLD_XSRC): Add it to the list. |
|
52 |
3988
|
53 2002-07-12 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
54 |
|
55 * lex.l (@): Handle new token. |
|
56 * parse.y (constant): Accept function handle syntax. |
|
57 (make_constant): Create function handles here. |
|
58 |
3986
|
59 2002-07-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
60 |
|
61 * defun.cc (check_version): Improve error message. |
|
62 * error.cc (warning): Only print backtrace once per warning series. |
|
63 Print backtrace before warning messages. |
|
64 |
3984
|
65 2002-07-10 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
66 |
3985
|
67 * lex.l (maybe_unput_comma): Also handle '{' as an indexing op. |
|
68 |
3984
|
69 * DLD-FUNCTIONS/odessa.cc: New file. |
|
70 * Makefile.in (DLD_XSRC): Add it to the list. |
|
71 |
3977
|
72 2002-07-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
73 |
|
74 * pt-assign.cc (tree_multi_assignment::rvalue): Call |
|
75 lhs->nargout_count, not lhs->length. |
|
76 |
|
77 * pt-arg-list.cc (tree_argument_list::convert_to_const_vector): |
|
78 Handle cs-list objects here. |
|
79 (tree_argument_list::nargout_count): New function. |
|
80 * pt-arg-list.h: Provide decl. |
|
81 |
|
82 * ov-cs-list.h, ov-cs-list.cc: New files. |
|
83 * Makefile.in: Add them to the appropriate lists. |
|
84 |
|
85 * ov.cc: Include ov-cs-list.h. |
|
86 New arg, is_cs_list for constructor taking octave_value_list arg. |
|
87 (install_types): Register ov_cs_list. |
|
88 * ov.h (octave_value::is_cs_list): New function. |
|
89 * ov-base.h (octave_base_value::is_cs_list): Likewise. |
|
90 * ov-cell.cc (octave_cell::subsref): Return cs-list for "{" indexing. |
|
91 |
3974
|
92 2002-07-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
93 |
3976
|
94 * pt-mat.cc (Vempty_list_elements_ok): Default value is now 1. |
|
95 * octave.cc (maximum_braindamage): No longer need to set value here. |
|
96 |
3975
|
97 * ov-usr-fcn.cc (Fva_arg, Fva_start, Fvr_val): Warn that these |
|
98 functions are deprecated. |
3974
|
99 * lex.l (EL): Warn that `...' is deprecated. |
|
100 * ov-usr-fcn.cc (octave_user_function::varargout_to_vr_val, |
|
101 octave_user_function::has_varargout): New functions. |
|
102 (Fvr_val): Ensure varargout is not defined. |
|
103 (octave_user_function::do_multi_index_op): Copy values from |
|
104 varargout here. |
|
105 |
3972
|
106 2002-07-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
107 |
3974
|
108 * ov-usr-fcn.h (octave_user_function::varargin_sr): New data member. |
|
109 * ov-usr-fcn.cc (octave_user_function::octave_user_function): |
|
110 Initialize it. |
|
111 (bind_automatic_vars): Handle varargin. Change all callers. |
|
112 |
|
113 * octave.gperf: Handle varargin and varargout as keywords. |
|
114 * lex.l (is_keyword): Likewise. |
|
115 (IDENT): Move all actions into handle_identifier. |
|
116 (handle_identifier): Now takes no args. |
|
117 |
3973
|
118 * lex.l (EL): Return VARARGIN or VARARGOUT, not ELLIPSIS. |
|
119 * parse.y (param_list): Use VARARGIN instead of ELLIPSIS. |
|
120 (return_list): Use VARARGOUT instead of ELLIPSIS. |
|
121 |
3972
|
122 * data.cc (make_diag const octave_value&, const octave_value&): |
|
123 Allow first arg to be 1x0 or 0x1. |
|
124 |
3971
|
125 2002-07-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
126 |
|
127 * defaults.cc (loadpath): Comment out previous change. |
|
128 |
|
129 * DLD-FUNCTIONS/fsolve.cc (Ffsolve): Return message too. Only |
|
130 generate error if user is not at least requesting the info output. |
|
131 |
|
132 * DLD-FUNCTIONS/lsode.cc (Flsode): Fix typos in setting return value. |
|
133 |
3968
|
134 2002-07-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
135 |
3969
|
136 * oct-stream.cc (printf_value_cache::double_value): If the current |
|
137 element is empty and there are no more elements in the value list, |
|
138 set curr_state to conversion_error. |
|
139 |
3968
|
140 * input.cc (initialize_command_input): Include (, ), {, and } as |
|
141 word break characters. |
|
142 |
|
143 * variables.cc (looks_like_struct): Don't evaluate text if it is a |
3969
|
144 function. From Ben Sapp <bsapp@lanl.gov>. |
3968
|
145 |
|
146 * symtab.h (symbol_record::is_function): Also return true if |
|
147 symbol is a text function or a mapper function. |
|
148 |
3965
|
149 2002-06-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
150 |
3967
|
151 * defaults.cc (loadpath): Warn if loadpath doesn't contain |
|
152 leading, trailing, or doubled colon. |
|
153 |
3965
|
154 * pt-decl.cc (tree_static_command::eval, tree_global_command::eval): |
|
155 Call error for any non-zero value of error_state. |
|
156 * pt-select.cc (tree_if_command::eval): Likewise. |
|
157 * pt-loop.cc (tree_while_command::eval_error): Don't check error_state. |
|
158 (tree_do_until_command::eval_error): Likewise. |
|
159 (tree_simple_for_command::eval_error): Likewise. |
|
160 (tree_complex_for_command::eval_error): Likewise. |
|
161 * pt-assign.cc (tree_multi_assignment::eval_error): Likewise. |
|
162 (tree_simple_assignment::eval_error): Likewise. |
|
163 * pt-idx.cc (tree_index_expression::eval_error): Likewise. |
|
164 * pt-colon.cc (tree_colon_expression::eval_error): Likewise. |
|
165 (tree_colon_expression::rvalue): Delete rendundant error_state check. |
|
166 |
3962
|
167 2002-06-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
168 |
|
169 * ov-mapper.cc (MAPPER_LOOP, MAPPER_LOOP_1, MAPPER_LOOP_2): New macros. |
|
170 (octave_mapper::apply): Use them to inline the mapper loops. |
|
171 |
|
172 * pt-unop.cc (tree_prefix_expression::rvalue): Ensure that the |
|
173 operand is defined for op_incr and op_decr. |
|
174 (tree_postfix_expression::rvalue): Likewise. |
|
175 From Ben Sapp <bsapp@lanl.gov>. |
|
176 |
|
177 2002-06-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
178 |
|
179 * ov-mapper.cc (octave_mapper::apply): Exit loops on error. |
|
180 |
|
181 2002-06-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
182 |
|
183 * ov-struct.cc (octave_struct::print_raw): Print field names with |
|
184 data types if Vstruct_levels_to_print is 0. |
|
185 (octave_struct::print_name_tag): Don't emit newline if |
|
186 Vstruct_levels_to_print is negative. |
|
187 * ov.cc (struct_levels_to_print): Allow negative values too. |
|
188 |
3956
|
189 2002-05-24 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
190 |
3959
|
191 * DLD-FUNCTIONS/lsode.cc (Flsode): Also return istate and error |
|
192 message. Only generate error if user is not at least requesting |
|
193 the istate output. |
|
194 |
3956
|
195 * load-save.cc (hdf5_import_multidim, hdf5_check_attr, |
|
196 hdf5_callback_data, hdf5_read_next_data, read_hdf5_data, |
|
197 add_hdf5_data): Use 0, not NULL in calls to HDF routines. |
|
198 |
|
199 * oct-procbuf.cc (octave_procbuf::open): Use NULL, not 0 as last |
|
200 arg in call to execl.xo |
|
201 |
|
202 * debug.cc (get_user_function): Initialise dbg_fcn to 0, not NULL. |
|
203 |
3952
|
204 2002-05-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
205 |
|
206 * DLD-FUNCTIONS/lsode.cc (LSODE_options::da_set_opt_mf, |
|
207 LSODE_options::da_get_opt_mf): New typedefs. |
|
208 (LSODE_OPTIONS::da_set_fcn, LSODE_OPTIONS::da_get_fcn): New fields. |
|
209 (lsode_option_table): Fill them in. |
|
210 (set_lsode_option (const Array<double>&)): New function. |
|
211 (print_lsode_option_list): Handle vector options. |
|
212 (show_lsode_option_list): Likewise. |
|
213 (Flsode_options): Likewise. |
|
214 |
3955
|
215 * DLD-FUNCTIONS/lsode.cc (LSODE_options::s_set_opt_mf, |
|
216 LSODE_options::s_get_opt_mf): New typedefs. |
|
217 (LSODE_OPTIONS::s_set_fcn, LSODE_OPTIONS::s_get_fcn): New fields. |
|
218 (lsode_option_table): Fill them in. |
|
219 (set_lsode_option (const std::string&)): New function. |
|
220 (print_lsode_option_list): Handle string options. |
|
221 (show_lsode_option_list): Likewise. |
|
222 (Flsode_options): Likewise. |
|
223 |
3948
|
224 2002-05-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
225 |
3951
|
226 * c-file-ptr-stream.h (c_file_ptr_buf::fclose): New function. |
|
227 (c_file_ptr_buf::c_file_ptr_buf): Use it as default argument |
|
228 instead of extern "C" fclose function. |
|
229 (i_c_file_ptr_stream::i_c_file_ptr_stream): Likewise. |
|
230 (o_c_file_ptr_stream::o_c_file_ptr_stream): Likewise. |
|
231 * oct-stdstrm.h (octave_istdiostream::octave_istdiostream): Likewise. |
|
232 (octave_istdiostream::create): Likewise. |
|
233 * oct-stdstrm.h (octave_ostdiostream::octave_ostdiostream): Likewise. |
|
234 (octave_ostdiostream::create): Likewise. |
|
235 |
|
236 * oct-prcstrm.cc (cxx_pclose): New static function. |
|
237 (octave_iprocstream::octave_iprocstream): Pass it to |
|
238 octave_istdiostream constructor instead of extern "C" pclose function. |
|
239 (octave_oprocstream::octave_oprocstream): Pass it to |
|
240 octave_ostdiostream constructor instead of extern "C" pclose function. |
|
241 |
3948
|
242 * debug.cc (Fdbtype): Use C++ strings, not C strings. |
|
243 |
3946
|
244 2002-05-22 Mumit Khan <khan@nanotech.wisc.edu> |
|
245 |
|
246 * debug.cc: Include cstdlib instead of stdlib.h. Include cstring. |
|
247 (dbtype): Use strchr instead of index. |
|
248 * TEMPLATE-INST/Array-tc.cc (Array<octave_value>::resize_fill_value): |
|
249 Fix template specialization syntax. |
|
250 |
3944
|
251 2002-05-17 Mumit Khan <khan@nanotech.wisc.edu> |
|
252 |
|
253 * c-file-ptr-stream.h (OCTAVE_STD_FILEBUF): New macro to handle |
|
254 various forms of extensions to std::filebuf. |
|
255 (c_file_ptr_buf::c_file_ptr_buf): Use. |
|
256 * pt-idx.cc (tree_index_expression::tree_index_expression): Remove |
|
257 default arguments are from definition. |
|
258 * symtab.cc (SYMBOL_DEF::print_info): Add std::. |
|
259 (symbol_record::print_info): Likewise. |
|
260 (symbol_table::print_info): Likewise. |
|
261 |
3936
|
262 2002-05-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
263 |
3943
|
264 * oct-map.cc (Octave_map::assign): Resize RHS if it is shorter |
|
265 than existing struct array. |
|
266 |
3940
|
267 * ov-cell.cc (octave_cell::subsasgn): If an error has occurred, |
|
268 skip final assignment step. |
|
269 * ov-list.cc (octave_list::subsasgn): Likewise. |
|
270 * oct-lvalue.cc (octave_lvalue::assign): Add parens to clarify intent. |
|
271 (octave_lvalue::do_unary_op): Likewise. |
|
272 |
3939
|
273 * parse.y (function_end): Also accept end of input as end of |
|
274 function if input is coming from an eval string. |
|
275 |
3936
|
276 * pr-output.cc (pr_any_float): Don't convert -0 to 0. |
|
277 |
3934
|
278 2002-05-15 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
279 |
3935
|
280 * input.cc (generate_completion): If it looks like we are |
|
281 completing a struct, set completion append char to '\0'. |
|
282 |
|
283 * variables.cc (generate_struct_completions): Temporarily set |
|
284 warnings off here. |
|
285 |
3934
|
286 * error.cc (warning): Don't do anything if Vdebug_option == "off". |
|
287 Only print backtrace if Vdebug_option == "backtrace". |
|
288 (handle_message): Now returns a string containing the text of the |
|
289 formatted message. Change all callers. |
|
290 (Fwarning): Now a text-style function. Handle Matlab-compatible |
|
291 warning options. |
3935
|
292 (Flasterr, Flastwarn, set_warning_option): New functions. |
|
293 (Vlast_error_message, Vlast_warning_message, Vwarning_frequency, |
|
294 Vwarning_option): New static variables. |
3934
|
295 (vwarning): Set Vlast_warning_message here too. |
3935
|
296 (verror): Set Vlast_error_message here too. |
3934
|
297 |
3933
|
298 2002-05-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
299 |
|
300 * ov.h (octave_value::get_count): Now const. |
|
301 |
|
302 * ov.h, ov.cc (octave_value::do_non_const_unary_op, |
|
303 octave_value::assign): Idx is now a list of octave_value_list |
|
304 objects. |
|
305 |
|
306 * ov-base.cc, ov-base.h (octave_base_value::do_struct_elt_index_op, |
|
307 octave_base_value::struct_elt_ref): Delete. |
|
308 * ov-struct.cc, ov-struct.h (octave_sruct::do_struct_elt_index_op, |
|
309 octave_struct::struct_elt_ref): Delete. |
|
310 * ov.cc, ov.h (octave_value::do_struct_elt_index_op, |
|
311 octave_value::struct_elt_ref, octave_value::assign_struct_elt, |
|
312 octave_value::convert_and_assign, octave_value::try_assignment, |
|
313 octave_value::try_assignment_with_conversion, |
|
314 octave_value::simple_assign): Delete. |
|
315 |
|
316 * parse.y (make_index_expression): Type is now a single |
|
317 character. Change all callers. If expr is already an index |
|
318 expression, append index to it. |
|
319 (make_indirect_ref): Likewise. |
|
320 |
|
321 * pt-pr-code.cc (octave_print_internal (std::ostream&, const |
|
322 Cell&, bool, int)): Now just a dummy function, panic if called. |
|
323 |
|
324 * pt-idx.cc (tree_index_expression::make_arg_struct): New function. |
|
325 (tree_index_expression::type): Delete enum, rename from itype, now |
|
326 a string. |
|
327 (tree_index_expression::arg_nm): Now a list of string_vector objects. |
|
328 (tree_index_expression::idx): Now a list of tree_argument_list* |
|
329 objects. |
|
330 (tree_index_expression::is_index_expression): Always return true. |
|
331 (tree_index_expression::apend, make_value_list, make_subs_cell): |
|
332 New functions. |
|
333 |
|
334 * pt-pr-code.cc (visit_index_expression): Handle new definition of |
|
335 tree_index_expression object. |
|
336 * pt-check.cc (visit_index_expression): Likewise. |
|
337 * pt-bp.cc (visit_index_expression): Likewise. |
|
338 |
|
339 * ov-usr-fcn.h (octave_user_function::restore_args_passed): |
|
340 Clear args_passed even if nothing was saved. |
|
341 |
|
342 * ov-base.cc (octave_base_value::subsasgn, |
|
343 octave_base_value::map_keys, octave_base_value::print_info): |
|
344 New functions. |
|
345 |
|
346 * ov.h, ov.cc (octave_value::map_keys, octave_value::print_info, |
|
347 octave_value::subsref, octave_value::subsasgn, |
|
348 octave_value::numeric_assign, octave_value::next_subsref): |
|
349 New functions. |
|
350 (octave_value::empty_conv): New static function. |
|
351 (octave_value (octave_value *, int)): New arg, count. |
|
352 |
|
353 * ov-base-mat.cc (octave_base_matrix<MT>::subsref, |
|
354 octave_base_matrix<MT>::subsasgn): New functions. |
|
355 * ov-base-mat.h: Provide decls. |
|
356 |
|
357 * ov-builtin.cc (octave_builtin::subsref): New function. |
|
358 * ov-builtin.h: Provide decl. |
|
359 |
|
360 * ov-range.cc (octave_range::subsref): New function. |
|
361 * ov-range.h: Provide decl. |
|
362 |
|
363 * ov-cell.cc (octave_cell::subsref, octave_cell::subsasgn, |
|
364 octave_cell::list_value, octave_cell::print, |
|
365 octave_cell::print_raw, octave_cell::print_name_tag): New functions. |
|
366 * ov-cell.h: Provide decls. |
|
367 |
|
368 * ov-struct.cc (octave_struct::dotref, octave_struct::subsref, |
|
369 octave_struct::subsasgn, gripe_invalid_index, |
|
370 gripe_invalid_index_for_assignment, grip_invalid_index_type, |
|
371 gripe_failed_assignment): New functions. |
|
372 (octave_struct::numeric_conv): New static function. |
|
373 * ov-struct.h: Provide decls. |
|
374 (octave_struct::is_constant): Return true. |
|
375 (octave_struct::map_keys): New function. |
|
376 |
|
377 * ov-list.cc (octave_list::subsref, octave_list::subsasgn): |
|
378 New functions. |
|
379 * ov-list.h: Provide decls. |
|
380 |
|
381 * ov-usr-fcn.cc (octave_user_function::subsref, |
|
382 octave_user_function::print_symtab_info): New functions. |
|
383 * ov-usr-fcn.h: Provide decl. |
|
384 |
|
385 * ov-mapper.cc (octave_mapper::subsref): New function. |
|
386 * ov-mapper.h: Provide decl. |
|
387 |
|
388 * ov-base.cc (octave_base_value::subsref, |
|
389 octave_base_value::subsasgn): New functions. |
|
390 * ov-base.h: Provide decls. |
|
391 |
|
392 * ov-base.cc (octave_base_value::do_index_op): New arg, resize_ok. |
|
393 * ov-base-mat.cc (octave_base_matrix<MT>::do_index_op): Likewise. |
|
394 * ov-base-nd-array.cc (octave_base_nd_array<AT>::do_index_op): Ditto. |
|
395 * ov-bool-mat.cc (octave_bool::do_index_op): Ditto. |
|
396 * ov-str-mat.cc (octave_char_matrix_str::do_index_op): Ditto. |
|
397 * ov-range.cc (octave_range::do_index_op): Ditto. |
|
398 * ov-list.cc (octave_list::do_index_op): Ditto. |
|
399 * ov.cc (octave_value::do_index_op): Ditto. |
|
400 |
|
401 * ov-base-mat.cc (octave_base_matrix<MT>::print_info): New function. |
|
402 |
|
403 * ov-base-mat.h (octave_base_matrix<MT>::empty_clone): New function. |
|
404 * ov-base-nd-array.h (octave_base_nd_array<AT>::empty_clone): Ditto. |
|
405 * ov-base.h (octave_base_value::empty_clone): Ditto. |
|
406 * ov-bool-mat.h (octave_bool::empty_clone): Ditto. |
|
407 * ov-ch-mat.h (octave_char_matrix::empty_clone): Likewise. |
|
408 * ov-colon.h (octave_magic_colon::empty_clone): Likewise. |
|
409 * ov-complex.h (octave_complex::empty_clone): Likewise. |
|
410 * ov-cx-mat.h (octave_complex_matrix::empty_clone): Likewise. |
|
411 * ov-fcn.cc (octave_function::empty_clone): Likewise. |
|
412 * ov-file.h (octave_file::empty_clone): Likewise. |
|
413 * ov-range.h (octave_range::empty_clone): Likewise. |
|
414 * ov-list.h (octave_list::empty_clone): Likewise. |
|
415 * ov-re-mat.h (octave_matrix::empty_clone): Likewise. |
|
416 * ov-re-nd-array.h (octave_double_nd_array::empty_clone): Likewise. |
|
417 * ov-str-mat.h (octave_char_matrix_str::empty_clone): Likewise. |
|
418 * ov-struct.h (octave_struct::empty_clone): Likewise. |
|
419 * ov-va_args.h (octave_all_va_args::empty_clone): Likewise. |
|
420 * ov.h (octave_value::empty_clone): Likewise. |
|
421 |
|
422 * ov-base-mat.h (octave_base_matrix<MT>::clone): Now const. |
|
423 * ov-base-nd-array.h (octave_base_nd_array<AT>::clone): Likewise. |
|
424 * ov-base.h (octave_base_value::clone): Likewise. |
|
425 * ov-bool-mat.h (octave_bool::clone): Likewise. |
|
426 * ov-ch-mat.h (octave_char_matrix::clone): Likewise. |
|
427 * ov-colon.h (octave_magic_colon::clone): Likewise. |
|
428 * ov-complex.h (octave_complex::clone): Likewise. |
|
429 * ov-cx-mat.h (octave_complex_matrix::clone): Likewise. |
|
430 * ov-fcn.h (octave_function::clone): Likewise. |
|
431 * ov-file.h (octave_file::clone): Likewise. |
|
432 * ov-range.h (octave_range::clone): Likewise. |
|
433 * ov-list.h (octave_list::clone): Likewise. |
|
434 * ov-re-mat.h (octave_matrix::clone): Likewise. |
|
435 * ov-re-nd-array.h (octave_double_nd_array::clone): Likewise. |
|
436 * ov-str-mat.h (octave_char_matrix_str::clone): Likewise. |
|
437 * ov-struct.h (octave_struct::clone): Likewise. |
|
438 * ov-va_args.h (octave_all_va_args::clone): Likewise. |
|
439 * ov.h (octave_value::clone): Likewise. |
|
440 |
|
441 * oct-lvalue.cc (octave_lvalue::assign, octave_lvalue::set_index, |
|
442 octave_lvalue::do_unary_op): Idx is now a list of indices. Simplify. |
|
443 * oct-lvalue.h (octave_lvalue::value): Simplify. |
|
444 (octave_lvalue::struct_elt_names): Delete data member. |
|
445 (octave_lvalue::type): Now string |
|
446 Update decls. |
|
447 |
|
448 * pt-exp.h (tree_expression::is_indirect_ref): |
|
449 Delete virtual function. |
|
450 |
|
451 * pt-plot.cc (subplot::extract_plot_data): Use subsref, instead of |
|
452 do_index_op. |
|
453 |
|
454 * pt-stmt.cc (tree_statement::eval): Don't try to avoid binding |
|
455 ans for structure references. |
|
456 |
|
457 * symtab.cc (symbol_record::symbol_def::print_info): Rename from |
|
458 symbol_record::symbol_def::dump_symbol_info. |
|
459 (symbol_record::print_info): Rename from |
|
460 symbol_record::dump_symbol_info. Now const.. |
|
461 (symbol_record::print_symbol_info_line): Now const. |
|
462 (symbol_table::print_info): Rename from print_stats. Accept |
|
463 ostream arg. Now const. Print more info. |
|
464 * symtab.h: Update decls. |
|
465 |
|
466 * toplev.cc (octave_config_info): Indexing a map now returns a |
|
467 list, but we only want to return the first element. |
|
468 |
|
469 * variables.cc (generate_struct_completions, looks_like_struct): |
|
470 Simplify using eval_string. |
|
471 (F__print_symtab_info__): Rename from F__dump_symtab_info__. |
|
472 Handle "top-level" and individual function names in addition to |
|
473 "global". |
|
474 (F__print_symbol_info__): Rename from F___dump_symbol_info__. |
|
475 |
|
476 * octave.cc (intern_argv): Built-in variable argv is now a cell array. |
|
477 |
|
478 * ov-complex.cc (valid_scalar_indices): Delete. |
|
479 * ov-scalar.cc (valid_scalar_indices): Delete. |
|
480 |
|
481 * oct-obj.cc (octave_value_list::valid_scalar_indices): New function. |
|
482 (octave_value_list::index): New arg, resize_ok. |
|
483 * oct-obj.h: Provide decls. |
|
484 |
|
485 * oct-map.cc (Octave_map::keys): Rename from make_name_list. |
|
486 Change all uses. |
|
487 (Octave_map::assign, Octave_map::index): New functions. |
|
488 * oct-map.h: Provide decls. |
|
489 |
|
490 * data.cc (Fstruct_contains): Use map_value instead of |
|
491 do_struct_elt_index_op. |
|
492 |
|
493 * Cell.h (Cell (const Array2<octave_value>&, int, int)): |
|
494 New constructor. |
|
495 (Cell::resize_fill_value): New static function. |
|
496 |
|
497 * input.cc (initialize_command_input): Set basic and completer |
|
498 word break characters. |
|
499 |
3932
|
500 2002-05-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
501 |
3933
|
502 * ov.h (octave_value::subsref): New function. |
|
503 * ov-base.cc (octave_base_value::subsref): Likewise. |
|
504 |
3932
|
505 * ov-struct.cc (octave_struct::print_raw): Print scalar struct |
|
506 arrays more compactly. |
|
507 |
|
508 * DLD-FUNCTIONS/time.cc (extract_tm): Handle new struct array def. |
|
509 |
|
510 * oct-map.cc (Octave_map::array_len): New data member. |
|
511 (Octave_map::operator[], Octave_map::contsnts): Return |
|
512 octave_value_list, not Octave_value. Change callers as necessary. |
|
513 (Octave_map::assign): New function. |
|
514 (Octave_map::array_length): New fucntion. |
|
515 * oct-obj.cc (octave_value_list::assign): New function. |
|
516 |
3930
|
517 2002-05-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
518 |
3931
|
519 * TEMPLATE-INST/Map-oct-obj.cc: New file. |
|
520 * Makefile.in (TI_XSRC): Add it to the list. |
|
521 |
|
522 * oct-map.h (Octave_map): Make CHMap<octave_value_list> a data |
|
523 member instead of deriving from CHMap<octave_value>, in |
|
524 preparation for structure arrays. |
|
525 |
3930
|
526 * pt-indir.h, pt-indir.cc: Delete. |
|
527 |
|
528 * pt-all.h: Don't include pt-indir.h. |
|
529 |
|
530 * Makefile.in (PT_SRC): Delete pt-indir.cc from the list. |
|
531 (PT_INCLUDES): Delete pt-indir.h from the list. |
|
532 |
|
533 * pt-walk.h (tree_walker::visit_indirect_ref): Delete. |
|
534 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_indirect_ref): |
|
535 Likewise. |
|
536 * pt-check.h, pt-check.cc (tree_checker::visit_indirect_ref): Likewise. |
|
537 * pt-bp.h, pt-bp.cc (tree_breakpoint::visit_indirect_ref): Likewise. |
|
538 |
|
539 * pt-walk.h: Delete forward decl for tree_indirect_ref. |
|
540 * variables.h: Likewise. |
|
541 |
|
542 * parse.y (make_indirect_ref): Return tree_index_expression, not |
|
543 tree_indirect_ref. |
|
544 |
|
545 * pt-idx.h (tree_index_expression::struct_elt_name): New function. |
|
546 |
|
547 * pt-idx.cc (tree_index_expression::lvalue): Handle dot case too. |
|
548 (tree_index_expression::name): Likewise. |
|
549 (tree_index_expression rvalue (int)): Likewise. |
|
550 (tree_index_expression::eval_error): Likewise. |
|
551 * pt-pr-code.cc (visit_index_expression): Likewise. |
|
552 * pt-bp.cc (tree_breakpoint::visit_index_expression): Likewise. |
|
553 |
|
554 * pt-idx.h (tree_index_expression::dot): New type enum element. |
|
555 (tree_index_expression::expr_type): New function. |
|
556 (tree_index_expression::tree_index_expression (tree_expression*, |
|
557 const std::string&, int, int)): New constructor. |
|
558 (tree_index_expression::is_index_expression): Return value is now |
|
559 conditional on itype. |
|
560 (tree_index_expression::is_indirect_ref): New function. |
|
561 (tree_index_expression::lvalue_ok): Also return true if itype is dot. |
|
562 |
3928
|
563 2002-05-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
564 |
3929
|
565 * parse.y (ABORT_PARSE): Maybe restore symbol table context too. |
|
566 |
|
567 * pt-idx.h (tree_index_expression::type): New enum. |
|
568 (tree_index_expression::etype): New data member. |
|
569 * pt-idx.h (tree_index_expression::tree_index_expression): |
|
570 New arg, t, to set type of index. |
|
571 * parse.y (make_index_expression): Likewise. |
|
572 Change all callers. |
|
573 |
3928
|
574 * ov-base.cc (cell_conv): New conversion function. |
|
575 (install_base_type_conversions): Install it. |
|
576 Install conversion for indexed assignment of octave_cells to |
|
577 undefined values. |
|
578 |
|
579 * TEMPLATE-INST/Array-tc.cc: Instantiate assign functions too. |
|
580 (Array<octave_value>::resize_fill_value (void)): |
|
581 Provide specialization for octave_value. |
|
582 |
|
583 * ov-cell.cc (octave_cell::assign (const octave_value_list&, |
|
584 const octave_value&)): New function. |
|
585 * Cell.h (Cell::Cell (const octave_value&)): New function. |
|
586 |
|
587 * OPERATORS/op-cell.cc (install_list_ops): Use DEFASSIGNANYOP_FN |
|
588 and INSTALL_ASSIGNANYOP, not DEFASSIGNOP_FN and INSTALL_ASSIGNOP. |
|
589 |
|
590 2002-05-03 Cai Jianming <caijianming@yahoo.co.uk> |
|
591 |
|
592 * OPERATORS/op-cell.cc: New file. |
|
593 * src/Makefile.in (OP_XSRC): Include it in the list. |
|
594 |
|
595 * parse.y (cell): Return a cell type instead of Matrix type. |
|
596 |
|
597 * ov.cc (install_types): Install octave_cell type. |
|
598 |
|
599 * pr-output.cc (octave_print_internal): Handle Cells. |
|
600 * pr-output.h (octave_print_internal): Provide decl. |
|
601 |
|
602 * ov-cell.h (octave_cell): Derive from octave_base_matrix<Cell>. |
|
603 * ov-cell.cc (do_index_op, assign, print, print_raw, |
|
604 print_name_tag): Delete. |
|
605 |
|
606 * Cell.cc (allocator, index): Delete. |
|
607 * Cell.h (Cell): Derive from Array2<octave_value>. |
|
608 Most functions removed since we can use those from Array2 instead. |
|
609 |
|
610 2002-05-02 Cai Jianming <caijianming@yahoo.co.uk> |
|
611 |
|
612 * ov-base-mat.cc (octave_base_matrix<MT>::assign): |
|
613 New function. |
|
614 * ov-base-mat.h (octave_base_matrix<MT>::assign): Provide decl. |
|
615 * ov-bool-mat.cc (octave_bool_matrix::assign): Delete. |
|
616 * ov-bool-mat.h (octave_bool_matrix:assign): Delete decl |
|
617 * ov-cx-mat.cc (octave_complex_matrix::assign (const |
|
618 octave_value_list& idx, const ComplexMatrix&)): Delete. |
|
619 * ov-cx-mat.h (octave_complex_matrix:assign (const |
|
620 octave_value_list& idx, const ComplexMatrix&)): Replace decl with |
|
621 function. |
|
622 * ov-re-mat.cc (octave_bool_matrix::assign): Delete. |
|
623 * ov-re-mat.h (octave_bool_matrix:assign): Delete decl. |
|
624 |
3927
|
625 2002-05-02 Cai Jianming <caijianming@yahoo.co.uk> |
|
626 |
|
627 * OPERATORS/op-bm-b.cc: New file.x |
|
628 * Makefile.in (OP_XSRC): Add it to the list. |
|
629 |
3920
|
630 2002-04-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
631 |
3922
|
632 * octave.cc (print_version_and_exit): Use |
|
633 OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_AND_WARRANTY, not |
|
634 OCTAVE_NAME_AND_VERSION. |
|
635 |
|
636 * octave.cc (verbose_usage): |
|
637 Use OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_AND_WARRANTY, not |
|
638 OCTAVE_NAME_VERSION_AND_COPYRIGHT. |
|
639 |
|
640 * version.h (OCTAVE_COPYING_STATEMENT, OCTAVE_WARRANTY_STATEMENT, |
|
641 OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_AND_WARRANTY, |
|
642 X_OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_WARRANTY_AND_BUGS, |
|
643 OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_WARRANTY_AND_BUGS, |
|
644 OCTAVE_BUGS_STATEMENT): New macros. |
|
645 (OCTAVE_STARTUP_MESSAGE): Define in terms of |
|
646 X_OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_WARRANTY_AND_BUGS |
|
647 to include bugs address and amplified warranty information. |
|
648 |
3920
|
649 * DLD-FUNCTIONS/lsode.cc (Flsode): Delete unused variable nsteps. |
|
650 |
3917
|
651 2002-04-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
652 |
|
653 * help.cc (additional_help_message): Use www.octave.org, not |
|
654 www.che.wisc.edu/octave/octave.html. |
|
655 * octave.cc (verbose_usage): Likewise. |
|
656 |
3912
|
657 2002-04-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
658 |
|
659 * DLD-FUNCTIONS/daspk.cc: New file. |
|
660 * Makefile.in (DLD_XSRC): Add it to the list. |
|
661 |
3910
|
662 2002-04-25 Paul Kienzle <pkienzle@users.sf.net> |
|
663 |
|
664 * DLD-FUNCTIONS/kron.cc: New file. |
|
665 * Makefile.in (DLD_SRC): Add it to the list. |
|
666 |
3903
|
667 2002-04-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
668 |
|
669 * parse.y (save_symtab): New non-terminal. Save current symbol |
|
670 table context here. |
|
671 (function_beg): Use it. |
|
672 (symtab_context): New file-scope variable. |
|
673 (recover_from_parsing_function): Restore symbol table context here. |
|
674 |
3901
|
675 2002-04-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
676 |
|
677 * load-save.cc (get_lines_and_columns): Handle CRLF as line |
|
678 separator in addition to LF. |
|
679 |
3897
|
680 2002-04-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
681 |
|
682 * load-save.cc (hdf5_ofstream::hdf5_ofstream): |
|
683 Explicitly List std::ostream(0) in constructor. |
|
684 (hdf5_ifstream::hdf5_ifstream): |
|
685 Explicitly List std::istream(0) in constructor. |
|
686 (hdf5_fstreambase::hdf5_fstreambase): Use std::ios::setstate, not set. |
|
687 (hdf5_fstreambase::close): Likewise. |
|
688 (hdf5_fstreambase::open): Likewise. |
|
689 |
3895
|
690 2002-04-10 Ben Sapp <bsapp@lanl.gov> |
|
691 |
|
692 * pt-stmt.cc (delete_breakpoint): List breakpoints if line < 0. |
|
693 * debug.cc (get_user_function): Check symbol by name first. |
|
694 (Fdbstop): Rename from Fdbg_set. |
|
695 (Fdbclear): Rename from Fdbg_delete. |
|
696 (Fdbstatus): Rename from Fdbg_list. |
|
697 (Fdbg_where): Rename from Fdbwhere. |
|
698 (do_dbtype, Fdbtype): New functions. |
|
699 |
|
700 2002-04-10 Peter Van Wieren <peter.vanwiere@avlna.com> |
|
701 |
|
702 * load-save.cc (save_mat5_binary_element): Save elements of 2d |
|
703 character matrices in proper order. |
|
704 |
3893
|
705 2002-04-09 Paul Kienzle <pkienzle@users.sf.net> |
|
706 |
|
707 * utils.cc (do_string_escapes): Handle \0 too. |
|
708 (undo_string_escape): Likewise. |
|
709 |
3892
|
710 2002-04-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
711 |
|
712 * toplev.cc (octave_config_info): Define struct member EXEEXT, not EXE. |
|
713 * Makefile.in (install-bin): Use $(EXEEXT), not $(EXE). |
|
714 * oct-conf.h.in (OCTAVE_CONF_EXEEXT): Define and substitute |
|
715 OCTAVE_CONF_EXEEXT, not OCTAVE_CONF_EXE. |
|
716 |
3887
|
717 2002-04-03 Steven G. Johnson <stevenj@alum.mit.edu> |
|
718 |
|
719 * DLD-FUNCTIONS/balance.cc: Use F77_FUNC instead of F77_FCN. |
|
720 * DLD-FUNCTIONS/qz.cc: Likewise. |
|
721 * DLD-FUNCTIONS/rand.cc: Likewise. |
|
722 * octave.cc: Likewise. |
3910
|
723 * toplev.cc (Foctave_config_info): Delete use of FORTRAN_MAIN_FLAG. |
3887
|
724 * oct-conf.h.in: Delete use of OCTAVE_CONF_FORTRAN_MAIN_FLAG. |
|
725 * syscalls.cc (mk_stat_map): |
|
726 Use HAVE_STRUCT_STAT_ST_RDEV instead of HAVE_ST_RDEV. |
|
727 Use HAVE_STRUCT_STAT_ST_BLKSIZE instead of HAVE_ST_BLKSIZE. |
|
728 Use HAVE_STRUCT_STAT_ST_BLOCKS instead of HAVE_ST_BLOCKS. |
|
729 |
3881
|
730 2002-04-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
731 |
3883
|
732 * lex.l, lex.h (parser_end_of_input): New global variable. |
|
733 (reset_parser): Reset it here. |
|
734 * parse.y (input): Set it to TRUE on EOF. |
|
735 (parse_and_executed): Save and restore it, check it to correctly |
|
736 break out of parse-execute loop. |
|
737 (parse_fcn_file): Likewise. |
|
738 (eval_string): Likewise. |
3884
|
739 * toplev.cc (main_loop): Likewise. |
3883
|
740 |
3881
|
741 * parse.y (input): Call YYACCEPT for END_OF_INPUT. |
3883
|
742 Return no-op command for bare newline. |
3881
|
743 (parse_and_execute): Handle change in yyparse return value semantics. |
3883
|
744 |
3881
|
745 * toplev.cc (main_loop): Likewise. |
|
746 |
3880
|
747 2002-03-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
748 |
|
749 * parse.y (parse_fcn_file): Call error if there is no input file. |
|
750 (parse_and_execute (FILE *): Protect get_input_from_eval_string. |
|
751 Set get_input_from_eval_string to false before calling yyparse. |
|
752 * lex.l (reset_parser): Also skip yyrestart (stdin) if |
|
753 reading_script_file is true. |
|
754 |
3877
|
755 2002-03-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
756 |
|
757 * pt-loop.cc (evaluating_looping_command): New global. |
|
758 (tree_while_command::eval): Protect evaluating_looping_command. |
|
759 Set it to true while evaluating loop. |
|
760 (tree_do_until_command::eval): Ditto. |
|
761 (tree_simple_for_command::eval): Ditto. |
|
762 (tree_complex_for_command::eval): Ditto. |
|
763 * pt-loop.h (evaluating_looping_command): Provide decl. |
|
764 * parse.y (parse_fcn_file): Protect get_input_from_eval_string. |
|
765 Set get_input_from_eval_string to false before calling yyparse. |
|
766 (make_break_command): Also check evaluating_looping_command. |
|
767 (make_continue_command): Also check evaluating_looping_command. |
|
768 (eval_string (const std::string&, bool, int&, int)): Loop over |
|
769 yyparse to handle multi-line strings. |
|
770 Move call to unwind_protect::run_frame to end of function. |
|
771 Don't reset parser before calling yyparse. |
|
772 Correctly handle return, break, and continue. |
|
773 |
|
774 * input.cc (input_from_eval_string_pending): New global variable. |
|
775 (get_usr_input): Use it. |
|
776 * input.h (input_from_eval_string_pending): Provide decl. |
|
777 |
3876
|
778 2002-03-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
779 |
|
780 * ov-usr-fcn.cc (octave_user_function::do_multi_index_op): |
|
781 Don't unwind_protect num_named_args (it doesn't change on |
|
782 recursive calls). |
|
783 Do re-initialize curr_va_arg_number to num_named_args after |
|
784 unwind_protecting. |
|
785 |
|
786 * ov-usr-fcn.h (octave_user_function::clear_args_passed): Delete. |
|
787 (octave_user_function::saved_args): New data member. |
|
788 (octave_user_function::save_args_passed): New function. |
|
789 (octave_user_function::restore_args_passed): Ditto. |
|
790 * ov-usr-fcn.cc (clear_args_passed): Delete. |
|
791 (restore_args_passed): New function. |
|
792 (octave_user_function::do_multi_index_op): Correctly save and |
|
793 restore args passed for recursive calls. |
|
794 |
|
795 * TEMPLATE-INST/SLStack-ovl.cc: New file. |
|
796 * Makefile.in: Add it to the list. |
|
797 |
3870
|
798 2002-02-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
799 |
3871
|
800 * ov-usr-fcn.cc (octave_user_function::do_multi_index_op): |
|
801 Handle define_all_return_values after function is evaluated. |
|
802 From Paul Kienzle <pkienzle@jazz.ncnr.nist.gov>. |
|
803 |
|
804 * ov-scalar.cc (convert_to_str): Use octave_value (std::string) |
|
805 constructor instead of octave_value (char *) constructor so that |
|
806 setstr (0) will work. |
|
807 |
3870
|
808 * pager.cc (octave_pager_buf::sync): Set pointer to beginning |
|
809 of buffer after calling flush_currnt_contents_to_diary. |
|
810 (octave_diary_buf::sync): Call eback only once. |
|
811 |
3867
|
812 2002-01-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
813 |
|
814 * lex.l (.): Remove test for EOF since it is already handled |
|
815 separately. |
|
816 |
3866
|
817 2001-12-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
818 |
|
819 * load-save.cc (save_mat5_binary_element): |
|
820 Extract dimensions directly from tc. |
|
821 Handle ranges the same as real matrices. |
|
822 |
3864
|
823 2001-11-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
824 |
|
825 * data.cc (DATA_REDUCTION): If no DIM arg, pass -1 to FCN. |
|
826 |
3859
|
827 2001-11-09 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
828 |
|
829 * oct-conf.h.in (FFTW_LIBS, LD_CXX, LIBOCT_PATHSEARCH, |
|
830 LIBOCT_READLINE, MKOCTFILE_LFLAGS): Substitute. |
|
831 * toplev.cc (octave_config_info): Add them to the map. |
|
832 |
|
833 2001-11-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
834 |
|
835 * DLD-FUNCTIONS/lsode.cc (Flsode): Don't bother to give OUTPUT |
|
836 matrix a size before calling integration function. |
|
837 |
3857
|
838 2001-11-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
839 |
|
840 Makefile.in (OCTAVE_LIBS): Add $(LIBOCT_READLINE) and |
|
841 $(LIBOCT_PATHSEARCH) to the list. |
|
842 |
3849
|
843 2001-10-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
844 |
|
845 * DLD-FUNCTIONS/dassl.cc (dassl_user_function): Allow user |
|
846 supplied RES function to return IDID as second value. |
|
847 |
3844
|
848 2001-07-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
849 |
|
850 * parse.y: Clear help_buf after documenting function. |
|
851 |
3842
|
852 2001-06-29 Mumit Khan <khan@nanotech.wisc.edu> |
|
853 |
|
854 * defun-int.h (DEFINE_FUN_INSTALLER_FUN{2,3}): New macros. |
|
855 (DEFINE_FUN_INSTALLER_FUN): Use. |
|
856 * dynamic-ld.cc ({STRINGIFY, STRINGIFY1}): New macros. |
|
857 (octave_dynamic_loader::mangle_name): Support dynamic linking |
|
858 for GNU v3 and Sun C++ ABI. |
|
859 |
3841
|
860 2001-06-26 Mumit Khan <khan@nanotech.wisc.edu> |
|
861 |
|
862 * c-file-ptr-stream.h (c_file_ptr_buf::c_file_ptr_buf): Add GCC3 |
|
863 libstdc++-v3 support. |
|
864 * load-save.cc (save_mat5_binary_element): Cast arguments to the |
|
865 correct type. |
|
866 (save_ascii_data): Eliminate compiler warning. |
|
867 * toplev.cc (system): Prefix std::. |
|
868 |
3836
|
869 2001-05-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
870 |
|
871 * ov-cx-mat.cc: Deleve unnecessary instantiation of assign function. |
|
872 * ov-re-mat.cc: Likewise. |
|
873 * ov-re-nd-array.cc: Likewise. |
|
874 * ov-str-mat.cc: Likewise. |
|
875 * ov-bool-mat.cc: Likewise. |
|
876 |
|
877 * load-save.cc (save_ascii_data): When saving string data, get raw |
|
878 string value for matrix row since there may be embedded nuls. |
|
879 |
|
880 * pt-mat.cc (Vstring_fill_char): No longer static. |
|
881 * pt-mat.h: Provide declaration. |
|
882 |
3834
|
883 2001-05-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
884 |
|
885 * octave.cc (initialize_pathsearch): Save initial value of the |
|
886 TEXMFDBS environment variable here. |
|
887 * toplev.cc (restore_texmfdbs_envvar): New function. |
|
888 (Fsystem): Set TEXMFDBS back to original value before running |
|
889 subprocesses. |
|
890 |
3827
|
891 2001-05-02 Mumit Khan <khan@nanotech.wisc.edu> |
|
892 |
|
893 * Makefile.in (octave): Add $(FFTW_LIBS). |
|
894 |
3826
|
895 2001-04-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
896 |
|
897 * DLD-FUNCTIONS/sort.cc (mx_sort): Check for NaNs in comparisons. |
|
898 |
3822
|
899 2001-04-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
900 |
|
901 * Makefile.in (OCTAVE_LIBS): Delete $(LIBREADLINE) from the list. |
|
902 (octave): Delete TERMLIBS from link command. |
|
903 * oct-conf.h.in: Delete references to LIBREADLINE, TERMLIBS. |
|
904 * toplev.cc (octave_config_info): Delete entries for LIBREADLINE, |
|
905 TERMLIBS. |
|
906 |
3821
|
907 2001-04-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
908 |
|
909 * Makefile.in (install-lib): Don't use mk-libdir-link. |
|
910 (install-inc): Don't use mk-includedir-link. |
|
911 |
3815
|
912 2001-04-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
913 |
|
914 * parse.y (fold (tree_binary_expression *)): |
|
915 Set discard_error_messages here instead of buffer_error_messages. |
|
916 Don't add clear_global_error_variable to the unwind_protect stack. |
|
917 (fold (tree_unary_expression *)): Likewise. |
|
918 (finish_colon_expression): Likewise. |
|
919 (finish_matrix): Likewise. |
|
920 |
|
921 * error.cc (panic): Set discard_error_messages to false here. |
|
922 (verror): Return immediately if discard_error_messages is true. |
|
923 |
|
924 * error.cc (discard_error_messages): New global variable. |
|
925 * error.h: Provide declaration. |
|
926 |
3813
|
927 2001-04-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
928 |
|
929 * lex.l: If unexpected character is EOF, report EOF error instead |
|
930 of invalid character error. |
|
931 |
3812
|
932 2001-04-18 Mumit Khan <khan@nanotech.wisc.edu> |
|
933 |
|
934 * load-save.cc (read_mat5_binary_element): Cast arguments to the |
|
935 correct type when adding stream positions. |
|
936 * DLD-FUNCTIONS/det.cc (det): Explicity create a Complex value to |
|
937 work around a Sun C++ type conversion bug. |
|
938 |
3811
|
939 2001-04-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
940 |
|
941 * symtab.cc (define_builtin_const): Don't call replace_all_defs |
|
942 here. |
|
943 |
|
944 * error.cc (error_message_buffer): Now static. |
|
945 * error.h (error_message_buffer): Delete extern declaration. |
|
946 |
3810
|
947 2001-03-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
948 |
|
949 * DLD-FUNCTIONS/besselj.cc (besselh): Use K arg. |
|
950 From: Thomas Stuart <tstuart@ing.sun.ac.za>. |
|
951 |
|
952 * oct-stream.cc (get_size): Don't allow [Inf, N] as a size |
|
953 specification for the read and scanf functions. |
|
954 (get_size): SIZE is now an Array<double> instead of a Matrix object. |
|
955 (read): Likewise. Change all callers. |
|
956 (scanf): Likewise. Change all callers. |
|
957 |
3808
|
958 2001-03-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
959 |
|
960 * DLD-FUNCTIONS/det.cc (Fdet): Only return rcond if nargout > 1. |
|
961 * DLD-FUNCTIONS/inv.cc (Finv): Only return rcond if nargout > 1. |
|
962 |
|
963 2001-03-26 Paul Kienzle <pkienzle@kienzle.powernet.co.uk> |
|
964 |
|
965 * DLD-FUNCTIONS/det.cc (Fdet): Suppress warning, but return rcond. |
|
966 * DLD_FUNCTIONS/inv.cc (Finv): Return rcond if requested. |
|
967 |
3804
|
968 2001-02-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
969 |
3805
|
970 * pt.h (tree::break_statement): New static member. |
|
971 (tree::break_function): Make const. |
|
972 * pt.cc (tree::break_statement): Initialize here. |
|
973 (tree::break_function): Make const. |
|
974 * pb-bp.h (break_statement): Delete global varaible declaration. |
|
975 * pt-bp.cc (break_statement): Delete global variable definition. |
|
976 |
|
977 * pt-bp.h (tree_breakpoint::bp_list): Rename from lst. |
|
978 |
|
979 * pt.h: Don't inlcude ov-usr-fcn.h. |
|
980 Provide forward declaration of octave_user_function class. |
|
981 |
|
982 2001-02-28 Ben Sapp <bsapp@lanl.gov> |
|
983 |
|
984 * debug.cc (get_user_function): Simplify by using curr_function. |
|
985 (Fdbg_where): New function. |
|
986 (Fdbg_list): Now DLD_TEXT instead of DLD_FCN. |
|
987 (Fdbg_set): Likewise. |
|
988 (Fdbg_delete): Likewise. |
|
989 |
|
990 * pt-bp.h (break_statement): New global variable. |
|
991 (MAYBE_DO_BREAKPOINT): Check for dbg_next and dbg_step. |
|
992 Print line, column, and current statement. |
|
993 * pt-bp.cc (break_statement): New global variable |
|
994 (tree_breakpoint::visit_do_until_command): Return immediately if |
|
995 we've already found the line. |
|
996 (tree_breakpoint::visit_colon_expression): Set breakpoint info here. |
|
997 (tree_breakpoint::visit_binary_expression): Recurse here when |
|
998 checking for breakpoints. |
|
999 |
|
1000 * debug.cc: Move here from DLD-FUNCTIONS/debug.cc. |
|
1001 * Makefile.in (DIST_SRC): Add it to the list. |
|
1002 (DLD_XSRC): Delete it from the list. |
|
1003 |
|
1004 * pt.h (tree::last_line, tree::break_function): New static members. |
|
1005 * pt.cc(tree::last_line, tree::break_function): Initialize them. |
|
1006 |
|
1007 * pt-cell.h (tree_cell::tree_cell): Accept line and column info. |
|
1008 * pt-mat.h (tree_matrix::tree_matrix): Likewise. |
|
1009 |
|
1010 * ov-usr-fcn.h (octave_user_function::sym_tab): Delete. |
|
1011 |
|
1012 * input.cc (get_user_input): Handle dbg_next. |
|
1013 Set tree:break_function and tree::last_line when doing dbg_step. |
|
1014 |
|
1015 2001-02-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1016 |
|
1017 * lex.l (handle_string): Save line and column information in token. |
|
1018 (is_keyword): Save line and column information for plot style and |
|
1019 axes tokens. |
|
1020 |
3804
|
1021 * toplev.cc (main_loop): Set retval to non-zero value if error |
|
1022 occurs when not interactive. |
|
1023 |
3802
|
1024 2001-02-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1025 |
|
1026 * parse.y (gobble_leading_white_space): Handle CRLF here too. |
|
1027 * lex.l (check_for_garbage_after_fcn_def): Likewise. |
|
1028 |
|
1029 * lex.l: Add numeric value of character to error message for |
|
1030 unrecognized characters. |
|
1031 |
3800
|
1032 2001-02-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1033 |
|
1034 * DLD-FUNCTIONS/minmax.cc (EMPTY_RETURN_CHECK): For empty matrix |
|
1035 args, make Octave's min and max behave like Matlab. |
|
1036 |
3799
|
1037 2001-02-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1038 |
|
1039 * OPERATORS/op-s-s.cc (el_or, el_and): Return bool value. |
|
1040 |
3798
|
1041 2001-02-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1042 |
|
1043 * pt-binop.cc (tree_boolean_expression::rvalue): |
|
1044 Don't cast result to double. |
|
1045 |
|
1046 * OPERATORS/op-b-b.cc: Allow & and | operators to return bool values. |
|
1047 |
|
1048 2001-02-09 John W. Eaton <jwe@bevo.che.wisc.edu> |
3797
|
1049 |
|
1050 * data.cc (DATA_REDUCTION): Undo previous change. |
|
1051 |
|
1052 2001-02-13 Matthew W. Roberts <matt@nephi.tamu.edu> |
|
1053 |
|
1054 * load-save.cc (Fload): Accept -4 as an alias for -v4 and -mat4-binary. |
|
1055 (Fsave): Likewise. |
|
1056 |
3796
|
1057 2001-02-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1058 |
|
1059 * lex.l (lexical_feedbac::init): |
|
1060 Initialize looking_at_matrix_or_assign_lhs too. |
|
1061 |
3795
|
1062 2001-02-09 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1063 |
|
1064 * data.cc (DATA_REDUCTION): Allow FCN(x,0) to be equivalent to FCN(x). |
|
1065 |
3779
|
1066 2001-02-06 Mumit Khan <khan@nanotech.wisc.edu> |
|
1067 |
|
1068 * oct-stream.cc (octave_scan): Partially implement and specialize |
|
1069 for char*. Delete the old template instantiations. |
|
1070 (BEGIN_S_CONVERSION): Use strings instead of ostrstreambuf. |
|
1071 (octave_base_stream::do_scanf): Pass correct parameter to |
|
1072 do_scan_conv. |
|
1073 |
3775
|
1074 2001-02-05 Mumit Khan <khan@nanotech.wisc.edu> |
|
1075 |
3776
|
1076 * pr-output.cc (set_format): Add std:: namespace qualifier as |
|
1077 needed. |
|
1078 |
3775
|
1079 * oct-stream.cc (octave_scan): Implement, and specialize for |
|
1080 char*. Delete the old template instantiations. |
|
1081 (BEGIN_S_CONVERSION): Use strings instead of ostrstreambuf. |
|
1082 (octave_base_stream::do_scanf): Pass correct parameter to |
|
1083 do_scan_conv. |
|
1084 |
|
1085 * Makefile.in (TEMPLATE_AR, TEMPLATE_ARFLAGS): Use to create |
|
1086 archive libraries containing templates. |
|
1087 |
|
1088 * c-file-ptr-stream.h: Include <fstream>. Use <cstdio> instead of |
|
1089 <stdio.h> |
|
1090 (c_file_ptr_buf::int_type): Compat typedef for non-ISO libstdc++. |
|
1091 (c_file_ptr_buf::{overflow, underflow, uflow, pbackfail): Use. |
|
1092 (c_file_ptr_buf::c_file_ptr_buf): Handle various compilers. |
|
1093 (c_file_ptr_buf::file_number): New member function. |
|
1094 (c_file_ptr_buf::fd): New private data. |
|
1095 (i_c_file_ptr_stream::i_c_file_ptr_stream): Initialize stream |
|
1096 correctly. |
|
1097 (o_c_file_ptr_stream::o_c_file_ptr_stream): Likewise. |
|
1098 * c-file-ptr-stream.cc |
|
1099 (c_file_ptr_buf::{overflow, underflow, uflow, pbackfail): Add |
|
1100 ISO-compliant EOF handling. |
|
1101 * oct-stream.cc (octave_base_stream::file_number): Use |
|
1102 c_file_ptr_buf::file_number to get underlying file descriptor. |
|
1103 |
|
1104 * comment-list.cc: Add missing class qualifier. |
|
1105 |
|
1106 * file-io.cc, load-save.cc, mappers.cc, oct-fstrm.cc, oct-fstrm.h, |
|
1107 oct-iostrm.cc, oct-iostrm.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
1108 oct-stream.cc, oct-stream.h, oct-strstrm.cc, oct-strstrm.h, |
|
1109 ov-base-nd-array.cc, ov-base-scalar.h, ov-complex.cc, ov-cx-mat.cc, |
|
1110 pager.cc, pr-output.cc, procstream.h, pt-bp.h, utils.cc: |
|
1111 Add std:: namespace qualifier as needed, and replace |
|
1112 deprecated or invalid libstdc++-v2 names with standard ones |
|
1113 where appropriate. |
|
1114 |
|
1115 * DLD-FUNCTIONS/minmax.cc: Fix docstring. |
|
1116 |
|
1117 * oct-fstrm.cc (octave_fstream::octave_fstream): Maintain fix for |
|
1118 libstdc++-v2. |
|
1119 |
|
1120 * oct-stdstrm.cc (octave_ostdiostream::create): Remove default |
|
1121 parameter value in definition. |
|
1122 |
|
1123 * oct-stream.cc (octave_stream::mode_as_string): Don't assume |
|
1124 std::iso::openmode is an integral quantity. |
|
1125 |
|
1126 * pager.cc, procstream.h: Initialize streams correctly. |
|
1127 |
|
1128 * utils.cc: Use CXX_ISO_COMPLIANT_LIBRARY guard. |
|
1129 |
|
1130 * ov-base-nd-array.cc (idx_list_to_idx_array): Inline. |
|
1131 |
|
1132 * ov-base-scalar.h (octave_base_scalar::octave_base_scalar): Use |
|
1133 ``const ST& s'' instead of ST to workaround gcc3 complex bug. |
|
1134 |
3774
|
1135 2001-02-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1136 |
|
1137 * lex.l (next_token_is_bin_op): Remove Checks for spacing except |
|
1138 for ops that begin with +, - but are not ++, --, +=, or -=. |
|
1139 |
3772
|
1140 2001-02-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1141 |
|
1142 * input.cc (get_user_input): Handle dbg_cont and dbg_step here. |
|
1143 * debug.cc (Fdbg_cont): Delete. |
|
1144 * pt-bp.h (MAYBE_DO_BREAKPOINT): Check tree::break_next here. |
|
1145 * pt.h (tree::break_next): New static member. |
|
1146 * pt.cc: Initialize it. |
|
1147 |
|
1148 * parse.h (feval (const octave_value_list&, int)): |
|
1149 Set default value for nargout. |
|
1150 (feval (const std::string&, const octave_value_list&, int)): |
|
1151 Set default values for args and nargout. |
|
1152 |
3770
|
1153 2001-02-01 Ben Sapp <bsapp@lanl.gov> |
|
1154 |
|
1155 * DLD-FUNCTIONS/debug.cc: New file. |
|
1156 * pt-bp.h, pt-bp.cc: New files, for breakpoints. |
|
1157 * Makefile.in: Add them to the appropriate lists. |
|
1158 |
|
1159 * pt-stmt.cc (tree_statement_list::set_breakpoint, |
|
1160 tree_statement_list::delete_breakpoint, |
|
1161 tree_statement_list::list_breakpoints): New functions. |
|
1162 |
|
1163 * pt.h (tree::break_point): New data member. |
|
1164 (tree::set_breakpoint, tree::delete_breakpoint, tree::is_breakpoint): |
|
1165 New virtual functions. |
|
1166 |
|
1167 * pt-mat.cc (tree_matrix::rvalue): Check for breakpoint here. |
|
1168 * pt-unop.cc (tree_prefix_expression::rvalue): Likewise. |
|
1169 (tree_postfix_expression::rvalue): Likewise. |
|
1170 * pt-loop.cc (tree_do_until_command::eval): Likewise. |
|
1171 (DO_LOOP): Likewise. |
|
1172 (tree_simple_for_command::eval): Likewise. |
|
1173 (tree_complex_for_command::eval): Likewise. |
|
1174 * pt-assign.cc (tree_simple_assignment::rvalue): Likewise. |
|
1175 * pt-binop.cc (tree_binary_expression::rvalue): Likewise. |
|
1176 (tree_boolean_expression::rvalue): Likewise. |
|
1177 * pt-cell.cc (tree_cell::rvalue): Likewise. |
|
1178 * pt-colon.cc (tree_colon_expression::rvalue): Likewise. |
|
1179 * pt-except.cc (tree_try_catch_command::eval): Likewise. |
|
1180 (tree_unwind_protect_command::eval): Likewise. |
|
1181 * pt-id.cc (tree_identifier::rvalue): Likewise. |
|
1182 (tree_identifier::lvalue): Likewise. |
|
1183 * pt-indir.cc (tree_indirect_ref::rvalue): Likewise. |
|
1184 * pt-jump.cc (tree_break_command::eval): Likewise. |
|
1185 (tree_continue_command::eval): Likewise. |
|
1186 (tree_return_command::eval): Likewise. |
|
1187 |
3767
|
1188 2001-01-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1189 |
|
1190 * Map.h, Map.cc (CHMap<C>::operator = (const CHMap&)): New function. |
|
1191 (Map<C>::operator = (const Map&)): Likewise. |
|
1192 (Map<C> (const Map&)): Likewise. |
|
1193 |
|
1194 * OPERATORS/op-cm-cs.cc, OPERATORS/op-cm-s.cc, |
|
1195 OPERATORS/op-m-cs.cc, OPERATORS/op-m-s.cc: |
|
1196 Make ldiv operator work for row vector by scalar ops. |
|
1197 |
|
1198 * OPERATORS/op-cs-cm.cc, OPERATORS/op-cs-m.cc, |
|
1199 OPERATORS/op-s-cm.cc, OPERATORS/op-s-m.cc: |
|
1200 Make div operator work for scalar by column vector ops. |
|
1201 |
3765
|
1202 2001-01-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1203 |
|
1204 * parse.y (safe_fclose): Discard comments at the end of a file. |
|
1205 |
3764
|
1206 2001-01-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1207 |
|
1208 * error.cc (pr_where): Call pr_where_1 with two args, not one, to |
|
1209 avoid processing format escapes that might appear in formatted code. |
|
1210 |
3762
|
1211 2001-01-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1212 |
|
1213 * error.cc (vwarning): Write to output_buf, then send formatted |
|
1214 message to diary and error streams. |
|
1215 |
3760
|
1216 2001-01-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1217 |
|
1218 * ov-cx-mat.cc (octave_complex_matrix::try_narrowing_conversion): |
|
1219 Handle empty matrix dimensions correctly. |
|
1220 |
3756
|
1221 2000-12-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1222 |
|
1223 * pager.h (octave_pager_buf::diary_skip): New data member. |
|
1224 (octave_pager_buf::octave_pager_buf): Initialize it. |
|
1225 * pager.cc (octave_pager_buf::set_diary_skip): New function. |
|
1226 (octave_pager_stream::set_diary_skip): New function. |
|
1227 (octave_pager_buf::sync): Call flush_current_contents_to_diary |
|
1228 instead of octave_diary.write. |
|
1229 (octave_pager_buf::flush_current_contents_to_diary): Use |
|
1230 diary_skip, reset when done. |
|
1231 (open_diary_file): Call octave_stdout.set_diary_skip here. |
|
1232 |
3747
|
1233 2000-12-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1234 |
|
1235 * DLD-FUNCTIONS/minmax.cc (EMPTY_RETURN_CHECK): New macro. |
|
1236 (min, max): Use it. |
|
1237 |
|
1238 * DLD-FUNCTIONS/minmax.cc (MINMAX_BODY): New macro. If single arg |
|
1239 is empty, return empty matrix result and empty matrix for index. |
|
1240 (Fmin, Fmax): Use MINMAX_BODY, so we have consistent definition |
|
1241 for min and max functions. |
|
1242 |
|
1243 2000-11-30 Joerg Specht <joerg.specht@ins.uni-stuttgart.de> |
|
1244 |
|
1245 * help.cc (display_help_text): Append new line at end of doc string. |
|
1246 |
|
1247 2000-11-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1248 |
|
1249 * DLD-FUNCTIONS/lsode.cc (LSODE_ABORT1, LSODE_ABORT2): Omit `##' |
|
1250 in macro definition since they are not needed to paste strings |
|
1251 together and picky compilers choke on them. |
|
1252 * DLD-FUNCTIONS/quad.cc (QUAD_ABORT1, QUAD_ABORT2): Likewise. |
|
1253 * DLD-FUNCTIONS/fsolve.cc (FSOLVE_ABORT1, FSOLVE_ABORT2): Likewise. |
|
1254 * DLD-FUNCTIONS/dassl.cc (DASSL_ABORT1, DASSL_ABORT2): Likewise. |
|
1255 |
3741
|
1256 2000-11-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1257 |
3744
|
1258 * mkbuiltins (XDEFUNX_INTERNAL): New macro. |
3746
|
1259 * mkgendoc (XDEFUNX_INTERNAL): Likewise. |
3744
|
1260 * defun-int.h (DEFUNX_INTERNAL): Use it. |
|
1261 |
3743
|
1262 * defun.h (DEFUNX): New macro. |
|
1263 * defun-int.h (DEFUNX_INTERNAL, DECLARE_FUNX): New macro. |
|
1264 (DECLARE_FUN): Define in terms of DECLARE_FUNX. |
|
1265 |
3742
|
1266 * mkdefs: Read and print one line at a time, so we can force |
|
1267 patterns to match only at the beginning of a line. |
|
1268 |
3741
|
1269 * defun-int.h (UNDERSCORIFY): Omit `##' in macro definition since |
|
1270 they are not needed to paste strings together and picky compilers |
|
1271 choke on them. |
|
1272 |
3738
|
1273 2000-11-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1274 |
|
1275 * load-save.cc (save_ascii_data_for_plotting): New function. |
|
1276 * pt-plot.cc (save_in_tmp_file): Use it instead of save_ascii_data. |
|
1277 |
|
1278 * load-save.cc (save_ascii_data): Warn if saving Inf or NaN values. |
|
1279 New arg, infnan_warned. Use it to warn just once per set. |
|
1280 Now static. |
|
1281 (do_save): New arg, infnan_warned. Pass to save_ascii_data. |
|
1282 (save_vars): Initialize infnan_warned here, pass to do_save. |
|
1283 |
3737
|
1284 2000-11-16 Paul Kienzle <pkienzle@kienzle.powernet.co.uk> |
|
1285 |
|
1286 * file-io.cc (Ffprintf): If no file id parameter, don't return |
|
1287 count of characters if nargout is 0 (for compatibility with |
|
1288 Matlab). |
|
1289 |
|
1290 2000-11-16 Ben Sapp <bsapp@lanl.gov> |
|
1291 |
|
1292 * DLD-FUNCTIONS/rand.cc (do_rand): Declare loop counter as |
|
1293 volatile int, not just volatile. |
|
1294 |
3731
|
1295 2000-10-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1296 |
|
1297 * load-save.cc (skip_comments): Allow % as comment character too. |
|
1298 (extract_keyword): Likewise. |
|
1299 |
|
1300 * Makefile.in (oct-gperf.h): Remove -a, -g, and -p flags for gperf. |
|
1301 |
3727
|
1302 2000-10-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1303 |
|
1304 * load-save.cc (do_load): Allow result to be returned instead of |
|
1305 inserting variables in the symbol table. Change patterned after |
|
1306 patch by Kian Ming Adam Chai <caijianming@yahoo.co.uk>. |
|
1307 |
3726
|
1308 2000-10-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1309 |
|
1310 * Makefile.in (ops.cc): Don't substitute BLAS_LIBS and LIBS here. |
|
1311 |
|
1312 * oct-conf.h.in (OCTAVE_CONF_SPECIAL_MATH_LIB): Delete. |
|
1313 (OCTAVE_CONF_BLAS_LIBS): Add. |
|
1314 * toplev.cc (octave_config_info): Likewise, add BLAS_LIBS and |
|
1315 remove SPECIAL_MATH_LIB from the struct. |
|
1316 |
|
1317 * parse.y (feval (const octave_value_list&, int)): Don't panic |
|
1318 while processing arg names if arg.length() and arg_names.length() |
|
1319 differ. |
|
1320 |
3724
|
1321 2000-10-12 Paul Kienzle <pkienzle@kienzle.powernet.co.uk> |
|
1322 |
|
1323 * ov-cell.h (octave_cell::is_cell): New function. |
|
1324 |
|
1325 * pt-select.cc (equal): New static function. |
|
1326 (tree_switch_case::label_matches): Use it to compare case label |
|
1327 against arg. Handle cell arrays as case labels. |
|
1328 |
3723
|
1329 2000-10-12 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1330 |
|
1331 Change patterned after patch by Cai Jianming |
|
1332 <caijianming@yahoo.co.uk> to support for DIM arg in 2.0.x sources. |
|
1333 |
|
1334 * data.cc (DATA_REDUCTION): New macro. Handle second DIM arg here. |
|
1335 (Fcumprod): Replace function body with DATA_REDUCTION. |
|
1336 (Fcumsum): Likewise. |
|
1337 (Fprod): Likewise. |
|
1338 (Fsum): Likewise. |
|
1339 (Fsumsq): Likewise. |
|
1340 |
3719
|
1341 2000-10-10 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1342 |
|
1343 * error.cc (pr_where_2): New function. |
|
1344 (pr_where_1): Use it instead of error_1 to avoid setting error_state. |
|
1345 |
|
1346 2000-10-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1347 |
|
1348 * xdiv.cc (xdiv): Warn if execution falls through to lssolve. |
|
1349 |
3716
|
1350 2000-09-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1351 |
|
1352 * utils.cc (FERRNO): New function (currently commented out). |
|
1353 |
|
1354 * c-file-ptr-stream.cc (c_file_ptr_buf::close): Call flush here. |
|
1355 (c_file_ptr_buf::~c_file_ptr_buf): Not here. |
|
1356 * c-file-ptr-stream.h (c_fie_ptr_buf::close_fcn): New typedef. |
|
1357 (c_file_ptr_buf::cf): New data member. Add default constructor arg. |
|
1358 (class c_file_ptr_buf): Derive from filebuf, not streambuf. |
|
1359 (i_c_file_ptr_stream, o_c_file_ptr_stream): Handle close function here. |
|
1360 * oct-procstrm.cc (octave_iprocstream, octave_oprocstream): Likewise. |
|
1361 (octave_iprocstream::do_close, octave_oprocstream::do_close): Delete. |
|
1362 * oct-stdstrm.cc (octave_base_stdiostream::~octave_base_stdiostream): |
|
1363 Don't do anything. |
|
1364 (octave_istdiostream::create): Handle close function here. |
|
1365 (octave_istdiostream::octave_istdiostream): Likewise. |
|
1366 (octave_ostdiostream::create): Likewise. |
|
1367 (octave_ostdiostream::octave_ostdiostream): Likewise. |
|
1368 (class octave_base_stdiostream): Don't cache FILE pointer here. |
|
1369 |
3715
|
1370 2000-09-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1371 |
|
1372 * syscalls.cc (Ffcntl): Don't assume that the file id passed in is |
|
1373 the same as the underlying system file id. |
|
1374 |
3712
|
1375 2000-08-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1376 |
|
1377 * parse.y: Use octave_time, not time. |
|
1378 |
3711
|
1379 2000-08-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1380 |
|
1381 * oct-stream.cc (printf_value_cache::double_value): Also set |
|
1382 curr_stat to conversion_error if there are no values at all. |
|
1383 |
3710
|
1384 2000-08-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1385 |
|
1386 * dirfns.cc (Flink, Fsymlink, Freadlink): New functions. |
|
1387 |
3709
|
1388 2000-08-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1389 |
|
1390 * load-save.cc (Vsave_header_format_string): New variable. |
|
1391 (symbols_of_load_save): DEFVAR it. |
|
1392 (save_header_format, default_save_header_format): New functions. |
|
1393 (write_header): Use Vsave_header_format_string here. |
|
1394 |
3707
|
1395 2000-07-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1396 |
3708
|
1397 * pt-pr-code.h (tree_print_code::curr_print_indent_level, |
|
1398 (tree_print_code::beginning_of_line): No longer static. |
|
1399 (tree_print_code::tree_print_code): Initialize them here. |
|
1400 * pt-pr-code.cc: Not here. |
|
1401 |
|
1402 * pt-stmt.cc (tree_statement::eval): Set curr_statement here. |
|
1403 (tree_statement_list::eval): Not here. |
|
1404 |
3707
|
1405 Debug-on-error stuff based on a patch submitted by Paul Kienzle |
|
1406 <pkienzle@kienzle.powernet.co.uk> for 2.0.x. |
|
1407 |
|
1408 * error.cc (Vdebug_on_warning): New static flag variable. |
|
1409 (debug_on_warning): New function. |
|
1410 (symbols_of_warning): DEFVAR debug_on_warning. |
|
1411 (warning): Handle debug_on_warning here. |
|
1412 |
|
1413 * input.cc (do_keyboard): New function. |
|
1414 (Fkeyboard): Use it to do the real work. |
|
1415 * pt-stmt.cc (curr_statement): New static variable. |
|
1416 (tree_statement::eval): Save and restore it here. |
|
1417 * error.cc (Vdebug_on_error): New static flag variable. |
|
1418 (debug_on_error): New function. |
|
1419 (symbols_of_error): DEFVAR debug_on_error. |
|
1420 (pr_where, pr_where_1): New functions. |
|
1421 (error): Handle debug_on_error here. |
|
1422 |
3705
|
1423 2000-07-20 Joao Cardoso <jcardoso@inescporto.pt> |
|
1424 |
|
1425 * Makefile.in (octave): Link with $(LD_CXX) instead of $(CXX) |
|
1426 |
3704
|
1427 2000-07-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1428 |
|
1429 * oct-stream.cc (octave_base_stream::oscanf): Advance to next |
|
1430 format element before attempting to pick up any trailing stuff. |
|
1431 |
3697
|
1432 2000-07-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1433 |
3698
|
1434 * lex.l (next_token_is_bin_op): Don't recognize `..' as a binary op. |
|
1435 |
3697
|
1436 * load-save.cc (get_file_format): Call read_mat5_binary_file_header |
|
1437 with third arg true instead of false, so we don't barf if the file |
|
1438 is not a matlab v5 binary file. |
|
1439 |
3695
|
1440 2000-07-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1441 |
|
1442 * Makefile.in (octave): Link to ../libcruft/blas-xtra/xerbla.o here. |
|
1443 |
|
1444 * octave.cc (main): Remove kluge to attempt linking our version of |
|
1445 xerbla. |
|
1446 |
|
1447 2000-07-07 Steven G. Johnson <stevenj@alum.mit.edu> |
|
1448 |
|
1449 * load-save.cc (have_h5giterate_bug): New file-scope variable. |
|
1450 (hdf5_read_next_data): Only increment current_item if |
|
1451 have_h5giterate_bug is true. |
|
1452 (read_hdf5_data): Set have_h5giterate_bug here. |
|
1453 Only increment hs.current_item if have_h5giterate_bug is true. |
|
1454 |
3693
|
1455 2000-07-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1456 |
|
1457 * c-file-ptr-stream.cc (c_file_ptr_buf::close): |
|
1458 Return -1 if file pointer is NULL. |
|
1459 Set file pointer to 0 after closing. |
|
1460 (c_file_ptr_buf::~c_file_ptr_buf): Call close after flushing. |
|
1461 |
3694
|
1462 2000-07-05 Steven G. Johnson <stevenj@alum.mit.edu> |
3692
|
1463 |
|
1464 * Makefile.in (BLAS_LIBS): Substitute here. |
|
1465 (octave): Use $(BLAS_LIBS) in the final link command. |
|
1466 |
3694
|
1467 2000-06-30 Steven G. Johnson <stevenj@alum.mit.edu> |
3690
|
1468 |
|
1469 * Makefile.in (octave): Link $(FLIBS) last. |
|
1470 * octave.cc (main): Force our own xerbla to be linked instead of |
|
1471 some system version. |
|
1472 |
3688
|
1473 2000-06-29 James R. Van Zandt <jrv@vanzandt.mv.com> |
|
1474 |
3689
|
1475 * load-save.cc (load_save_format): New value, LS_MAT5_BINARY. |
3688
|
1476 (arrayclasstype, mat5_data_type): New enums. |
|
1477 (read_mat5_binary_data): New function. |
|
1478 (read_mat5_tag): New function. |
|
1479 (read_mat5_binary_element): New function. |
|
1480 (read_mat5_binary_file_header): New function. |
|
1481 (get_file_format): Check for mat5 binary format too. |
|
1482 (do_load): Handle mat5 binary format. |
|
1483 (write_mat5_tag): New function. |
|
1484 (write_mat5_array): New function. |
|
1485 (class mat5_callback): New class. |
|
1486 (save_mat5_binary_element): New functnon. |
|
1487 (do_save): Handle mat5 binary format. |
|
1488 (write_header): Handle LS_MAT5_BINARY case too. |
|
1489 (save_user_variables): Handle LS_MAT5_BINARY case too. |
|
1490 (Fsave): Handle LS_MAT5_BINARY case too. |
|
1491 (Fload): Handle LS_MAT5_BINARY case too. |
|
1492 |
3694
|
1493 2000-06-29 Steven G. Johnson <stevenj@alum.mit.edu> |
3687
|
1494 |
|
1495 All of the following changes are protected by #ifdef HAVE_HDF5. |
|
1496 |
|
1497 * load-save.cc (load_save_format): New value, LS_HDF5. |
|
1498 (make_valid_identifier): New function. |
|
1499 (class hdf5_fstreambase, class hdf5_ifstream, class hdf5_ofstream): |
|
1500 New classes for reading and writing hdf5 data. |
|
1501 (hdf5_types_compatible): New function. |
|
1502 (hdf5_import_multidim): New function. |
|
1503 (hdf5_check_attr): New function. |
|
1504 (hdf5_read_next_data): New function. |
|
1505 (hdf5_make_complex_type): New function. |
|
1506 (hdf5_make_range_type): New function. |
|
1507 (read_hdf5_data): New function. |
|
1508 (get_file_format): Handle HDF5 format. |
|
1509 (do_load): Handle LS_HDF5 case. |
|
1510 (Fload): Handle HDF5 format. |
|
1511 (hdf5_add_attr): New function. |
|
1512 (save_type_to_hdf5): New function. |
|
1513 (add_hdf5_data): New function. |
|
1514 (do_save): Handle HDF5 format. |
|
1515 (get_default_save_format): Handle LS_HDF5 case. |
|
1516 (write_header): Handle LS_HDF5 case. |
|
1517 (save_user_variables): Handle HDF5 format. |
|
1518 (Fsave): Handle HDF5 format. |
|
1519 |
3686
|
1520 2000-06-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1521 |
|
1522 * help.cc (display_help_text): If writing to filter fails, send |
|
1523 unformatted text to output stream. |
|
1524 |
3683
|
1525 2000-06-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1526 |
3685
|
1527 * OPERATORS/op-bm-bm.cc (eq): Define using mx_el_eq, not operator ==. |
|
1528 (ne): Likewise, use mx_el_ne, not operator !=. |
|
1529 |
3683
|
1530 * pr-output.cc (Fdisp): Delete. |
|
1531 |
3681
|
1532 2000-06-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1533 |
3682
|
1534 * pr-output.cc (float_format::float_format): Set default values |
|
1535 for width and precision to -1. |
|
1536 (operator << (ostream&, pr_formatted_float&): Set width and |
|
1537 precision if values are >= 0. |
|
1538 (set_real_format, set_real_matrix_format, set_range_format, |
|
1539 set_complex_format, set_complex_matrix_format): If we have all |
|
1540 integers, infinities, or nans, set precision equal to field width. |
|
1541 |
|
1542 * load-save.cc (read_ascii_data): Allow empty strings and string |
|
1543 vectors to be restored. |
|
1544 |
3681
|
1545 * variables.cc (var_matches_any_pattern): New function. |
|
1546 (Fclear): Use it to make exclusive clear work correctly. |
|
1547 |
3676
|
1548 2000-06-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1549 |
3678
|
1550 * ov-range.h (octave_range::is_numeric_type): New function. |
|
1551 |
3676
|
1552 * sysdep.cc (Fkbhit): Also ask for input if forced_interactive. |
|
1553 |
3675
|
1554 2000-06-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1555 |
|
1556 * Makefile.in (oct-gperf.h): Use $(GPERF) instead of gperf. |
|
1557 |
3671
|
1558 2000-05-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1559 |
|
1560 * DLD-FUNCTIONS/qz.cc (Fqz): When computing finite generalized |
|
1561 eigenvalues, don't write past the end of the array. |
|
1562 |
3665
|
1563 2000-05-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1564 |
|
1565 * ov-base-nd-array.h, ov-base-nd-array.cc, ov-re-nd-array.h, |
|
1566 ov-re-nd-array.h: New files. |
|
1567 * Makefile.in: Add them to the appropriate lists. |
|
1568 |
|
1569 * pt-stmt.h, pt-stmt.cc (class tree_statement): |
|
1570 Store comments associated with this parse tree element. |
|
1571 * pt-select.h, pt-select.cc (class tree_if_clause, |
|
1572 class tree_if_command, class tree_switch_case |
|
1573 class tree_switch_command): Likewise. |
|
1574 * pt-loop.h, pt-loop.cc (class tree_while_command, |
|
1575 class tree_do_until_command, class tree_simple_for_command, |
|
1576 class tree_complex_for_command): Likewise. |
|
1577 * pt-except.h, pt-except.cc (class tree_try_catch_command, |
|
1578 class tree_unwind_protect_command): Likewise. |
|
1579 * ov-usr-fcn.h, ov-usr-fcn.cc (class octave_user_function): Likewise. |
|
1580 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::print_comment_elt, |
|
1581 tree_print_code::print_comment_list, |
|
1582 tree_print_code::print_indented_comment): New functions. |
|
1583 (tree_print_code::visit_simple_for_command, |
|
1584 tree_print_code::visit_complex_for_command, |
|
1585 tree_print_code::visit_octave_user_function_header, |
|
1586 tree_print_code::visit_octave_user_function_trailer, |
|
1587 tree_print_code::visit_if_command, tree_print_code::visit_statement, |
|
1588 tree_print_code::visit_switch_case, |
|
1589 tree_print_code::visit_switch_command, |
|
1590 tree_print_code::visit_try_catch_command, |
|
1591 tree_print_code::visit_unwind_protect_command |
|
1592 tree_print_code::visit_while_command, |
|
1593 tree_print_code::visit_do_until_command): Handle comments. |
|
1594 * lex.l, parse.y: Handle comments in parse trees. |
|
1595 * comment-list.h, comment-list.cc: New files. |
|
1596 * Makefile.in: Add them to the appropriate lists. |
|
1597 |
3661
|
1598 2000-04-23 etienne grossmann <etienne@anonimo.isr.ist.utl.pt> |
|
1599 |
|
1600 * pt-mat.cc (tm_row_const::tm_row_const_rep::eval_error): |
|
1601 New args x and y, for dimension mismatch info. |
|
1602 Change callers where appropriate. |
|
1603 (tm_const::init): Report mismatched column dimensions. |
|
1604 |
3658
|
1605 2000-04-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1606 |
|
1607 * sysdep.cc (kbhit): Also clear cin if at EOF. |
|
1608 |
3657
|
1609 2000-04-11 Joao Cardoso <jcardoso@inescn.pt> |
|
1610 |
|
1611 * sysdep.cc (kbhit): New arg, wait. |
|
1612 (raw_mode): Ditto. |
|
1613 (Fkbhit): If given an arg, call kbhit with wait = false. |
|
1614 |
|
1615 * DLD-FUNCTIONS/minmax.cc (Fmax, Fmin): Fix doc string. |
|
1616 |
3656
|
1617 2000-04-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1618 |
|
1619 * dynamic-ld.cc (octave_dynamic_loader::do_load): Undo previous change. |
|
1620 |
3655
|
1621 2000-04-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1622 |
|
1623 * dynamic-ld.cc (octave_dynamic_loader::do_load): Also fail with |
|
1624 error message if we don't find the mangled function name in the |
|
1625 file. |
|
1626 |
3652
|
1627 2000-03-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1628 |
3653
|
1629 * oct-stream.cc (printf_value_cache::string_value): Return string |
|
1630 matrices in a Matlab-compatible way. |
|
1631 (printf_value_cache): Redesign the way list_exhausted works. |
|
1632 |
3652
|
1633 * oct-fstrm.cc (octave_fstream::do_close): New function. |
|
1634 * oct-stdstrm.cc (octave_istdiostream::do_close): Ditto. |
|
1635 (octave_ostdiostream::do_close): Ditto. |
|
1636 * c-file-ptr-stream.cc (c_file_ptr_buf::close): Ditto. |
|
1637 (i_c_file_ptr_stream::close): Ditto. |
|
1638 (o_c_file_ptr_stream::close): Ditto. |
|
1639 * oct-prcstrm.cc (octave_iprocstream::do_close): Ditto. |
|
1640 (octave_oprocstream::do_close): Ditto. |
|
1641 (octave_iprocstram::~octave_iprocstram): Call do_close here. |
|
1642 (octave_iprocstram::~octave_oprocstram): Likewise. |
|
1643 |
|
1644 * oct-stream.h (octave_base_stream::do_close): New virtual function. |
|
1645 (octave_base_stream::close): If stream is open, call do_close. |
|
1646 |
|
1647 * c-file-ptr-stream.cc (c_file_ptr_buf::flush): New function. |
|
1648 (c_file_ptr_buf::~c_file_ptr_buf): Use it. |
|
1649 (c_file_ptr_buf::overflow): Ditto. |
|
1650 (c_file_ptr_buf::sync): Ditto. |
|
1651 |
3649
|
1652 2000-03-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1653 |
|
1654 * oct-procbuf.cc (octave_procbuf::open): Make output streams line |
|
1655 buffered. |
|
1656 |
3640
|
1657 2000-03-24 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1658 |
3644
|
1659 * sighandlers.cc (my_friendly_exit): Prefix failure messages with |
|
1660 panic instead of error. |
|
1661 |
3642
|
1662 * c-file-ptr-stream.cc (c_file_ptr_buf::~c_file_ptr_buf): |
|
1663 Avoid dereferencing NULL pointer. |
|
1664 |
3640
|
1665 * oct-stream.cc (printf_format_list::add_elt_to_list, |
|
1666 printf_format_list::process_conversion, |
|
1667 printf_format_list::finish_conversion): New args, flags, fw, and prec. |
|
1668 (printf_format_list::printf_format_list): Save more complete info. |
|
1669 (printf_format_list::printme): Print flags, fw, and prec. |
|
1670 (octave_base_stream::printf): Simplify. |
|
1671 (do_printf_conv): Delete have_arg arg, since it is always true now. |
|
1672 (octave_base_stream::do_printf): Handle case of no args and % |
|
1673 directly instead of using do_printf_conv. |
|
1674 (printf_value_cache::exhausted): Rename from no_more_values. |
|
1675 (DO_PCT_CONVERSION): New macro |
|
1676 (octave_base_streain::do_scanf, octave_base_streain::do_oscanf): |
|
1677 Use it. |
|
1678 (scanf_format_list::finish_conversion): `%' counts as a conversion too. |
|
1679 Also don't forget to set type for it. |
|
1680 (OCTAVE_SCAN_0): Delete. |
|
1681 (OCTAVE_SCAN): Rename from OCTAVE_SCAN_1. |
|
1682 (octave_base_stream::scanf, octave_base_stream::oscanf): Don't |
|
1683 special-case number of conversions here. |
|
1684 (octave_base_stream::oscanf, octave_base_stream::do_oscanf): Only |
|
1685 cycle through fmt elements if the number of conversions is greater |
|
1686 than 0. |
|
1687 |
|
1688 * oct-stream.h (scanf_format_list::next): New arg, `cycle'. |
|
1689 (printf_format_list::next): New arg, `cycle'. |
|
1690 (printf_format_list::last_elt_p): New function. |
|
1691 (printf_format_elt): New fields fw, prec, and flags. |
|
1692 Define copy constructor and assignment operator. |
|
1693 (scanf_format_elt): Define copy constructor and assignment operator. |
|
1694 |
3627
|
1695 2000-03-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1696 |
3639
|
1697 * oct-stream.cc (OCTAVE_SCAN_0, OCTAVE_SCAN_1): New macros. |
|
1698 (do_scanf_conv, BEGIN_S_CONVERSION, BEGIN_CHAR_CLASS_CONVERSION, |
|
1699 do_scanf, scanf, do_oscanf, do_oscanf, oscanf): Use them instead |
|
1700 of calling istream::scan directly. |
|
1701 (octave_scan): New function. |
|
1702 (do_scanf_conv): Second arg is now scanf_format_elt instead of char*. |
|
1703 Change all callers. |
|
1704 |
3631
|
1705 * oct-procbuf.h, oct-procbuf.cc (octave_procbuf): |
|
1706 Derive from c_file_ptr_buf instead of filebuf. |
|
1707 |
3627
|
1708 * oct-stream.cc (octave_base_stream::printf): Use octave_format |
|
1709 instead of ostream::form. Return number of characters written. |
|
1710 |
3618
|
1711 2000-03-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1712 |
3620
|
1713 * oct-stream.cc (do_printf_conv): Use octave_format instead of |
|
1714 ostream::form. Return number of characters written. |
|
1715 (octave_base_stream::do_printf): Return number of characters written. |
|
1716 |
|
1717 * error.cc (verror, vwarning): Use octave_format instead of |
|
1718 ostream::vform. |
|
1719 |
|
1720 * utils.cc (octave_format, octave_vformat): New functions. |
|
1721 * cutils.c (octave_snprintf, octave_vsnprintf): New functions. |
|
1722 |
3618
|
1723 * oct-lvalue.h (dummy_val): New static variable. |
|
1724 (octave_lvalue::octave_lvalue): Use it to initialize val. |
|
1725 |
|
1726 * variables.cc (is_valid_function): Look in the global symbol |
|
1727 table for functions. |
|
1728 |
3615
|
1729 2000-03-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1730 |
3770
|
1731 * Makefile.in (LIBRARIES): Conditionally define. |
3615
|
1732 (libraries): Depend on $(LIBRARIES). |
|
1733 (octave): Depend on $(LIBRARIES), not libraries. Also depend on |
|
1734 stamp-prereq and stamp-oct-links. |
|
1735 (all): Don't depend on stamp-prereq or stamp-oct-links. |
|
1736 (liboctinterp.$(LIBEXT), liboctinterp.$(SHELXT)): Delete target |
|
1737 before rebuilding. |
|
1738 |
|
1739 2000-03-21 Ben Sapp <bsapp@nua.lampf.lanl.gov>: |
|
1740 |
3770
|
1741 * Makefile.in (libraries): Depend only on library targets, not |
3615
|
1742 archive members. |
|
1743 |
3611
|
1744 2000-03-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1745 |
3613
|
1746 * Makefile.in (objects): New target |
|
1747 |
3611
|
1748 * c_file_ptr_stream.h, c_file_ptr_stream.cc: New files. |
|
1749 * oct-stdstrm.h, oct-stdstrm.cc, oct-prcstrm.cc: |
|
1750 Use c_file_ptr_buf, i_c_file_ptr_stream, and o_c_fie_ptr_stream |
|
1751 instead of stdiobuf, istdiostream, and ostdiostream. |
|
1752 |
|
1753 * pr-output.cc (set_real_format, set_real_matrix_format, |
|
1754 set_complex_format, set_complex_matrix_format, set_range_format): |
|
1755 Do the right thing again for int, NaN, and Inf values. |
|
1756 |
3608
|
1757 2000-03-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1758 |
|
1759 * pr-output.cc (pr_plus_format): Rename from do_plus_format. |
|
1760 Change all callers. |
|
1761 (pr_float, pr_complex): New arg, scale. Handle scaling here. |
|
1762 (float_format): New class for managing details of formatting |
|
1763 floats. Use it instead of character string formats and the |
|
1764 nonstandard form() function from the GNU iostream library. |
|
1765 |
3601
|
1766 2000-02-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1767 |
|
1768 * Makefile.in (clean): Also delete gendoc. |
|
1769 |
3598
|
1770 2000-02-18 James R. Van Zandt <jrv@vanzandt.mv.com> |
|
1771 |
|
1772 * load-save.cc (Vcrash_dumps_octave_core): Fix comment for this var. |
|
1773 |
|
1774 2000-02-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1775 |
|
1776 * lex.l (handle_number): Don't transorm `[Dd]' to `e' if reading |
|
1777 hex. |
|
1778 |
3597
|
1779 2000-02-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1780 |
|
1781 * Makefile.in (install-inc): Install files in |
|
1782 $(octincludedir)/octave. |
|
1783 (uninstall): Remove them from the correct directory too. |
|
1784 |
|
1785 * defaults.h, defaults.cc (Vlocal_ver_arch_lib_dir): New variable. |
|
1786 * defaults.cc (set_default_local_ver_arch_lib_dir): New function. |
|
1787 (install_defaults): Call it. |
|
1788 (exec_path): Prepend the versioned form of the local arch lib |
|
1789 directory to the standard path. |
|
1790 * defaults.h.in (OCTAVE_LOCALVERARCHLIBDIR, |
|
1791 OCTAVE_LOCALVERFCNFILEDIR, OCTAVE_LOCALVEROCTFILEDIR): |
|
1792 Substitute these too. |
|
1793 * toplev.cc (Foctave_config_info): Add them to the struct. |
|
1794 |
3591
|
1795 2000-02-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1796 |
3597
|
1797 * toplev.cc (Foctave_config_info): Add MKOCTFILE_INCFLAGS to the |
|
1798 struct. |
3591
|
1799 * oct-conf.h.in (OCTAVE_CONF_MKOCTFILE_INCFLAGS): Define. |
|
1800 |
3584
|
1801 2000-02-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1802 |
3587
|
1803 * DLD-FUNCTIONS/balance.cc (Fbalance): Explicitly request |
|
1804 conversion from Matrix to ComplexMatrix. |
|
1805 * DLD-FUNCTIONS/qz.cc (Fqz): Likewise. |
|
1806 |
|
1807 * ov-re-mat.h (octave_matrix::complex_matrix_value): Explicitly |
|
1808 request conversion from Matrix type. |
|
1809 |
|
1810 * ov-ch-mat.h (octave_char_matrix::matrix_value): Explicitly |
|
1811 request conversion from charMatrix type. |
|
1812 (octave_char_matrix::complex_matrix_value): Likewise. |
|
1813 * ov-bool-mat.h (octave_bool_matrix::matrix_value): Likewise. |
|
1814 (octave_bool_matrix::complex_matrix_value): Likewise. |
|
1815 |
|
1816 * ov-range.h (octave_range::complex_matrix_value): Explicitly |
|
1817 request conversion from Matrix type. |
|
1818 |
|
1819 * ov-cx-mat.h, ov-re-mat.h: Explicitly request conversions from |
|
1820 diagonal matrix types in constructors. |
|
1821 |
3586
|
1822 * mappers.cc (ximag, xreal): Return double, not Complex. |
|
1823 |
3585
|
1824 * error.cc (panic): Turn off buffering of error messages. |
|
1825 Don't call flush_octave_stdout here, verror will do it for us. |
|
1826 (verror): Don't call flush_octave_stdout if buffering error messages. |
|
1827 |
3584
|
1828 * pt-except.cc (tree_try_catch_command::eval): Only restore |
|
1829 buffer_error_message value (by running the unwind_protect element |
|
1830 for it) if it has been saved. |
|
1831 |
|
1832 * help.cc (Ftype): Return value if nargout is NOT equal to zero. |
|
1833 Delete unnecessary unwind_protect::begin_frame(). |
|
1834 |
|
1835 * toplev.cc (octave_config_info): Stuff lots of new config info in |
|
1836 the struct. |
|
1837 |
|
1838 * oct-conf.h.in: Delete TARGET_HOST_TYPE. |
|
1839 |
3574
|
1840 2000-02-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1841 |
3579
|
1842 * siglist.c: Include <signal.h>. |
|
1843 |
3575
|
1844 * lex.l (is_plot_keyword): Add minimum match length in call to |
|
1845 almost_match. |
|
1846 |
3574
|
1847 * Makefile.in (%.df : %.cc): Don't pass -c to compiler. |
|
1848 |
3564
|
1849 2000-02-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1850 |
3572
|
1851 * ov-base-mat.cc: Include pr-output.h here. |
|
1852 |
3571
|
1853 * DLD-FUNCTIONS/rand.cc (curr_rand_dist): Return const char * |
|
1854 instead of char *. |
|
1855 |
3570
|
1856 * oct-fstrm.cc (octave_fstream::seek, octave_fstream::tell): |
|
1857 Call pubseekoff instead of seekoff. |
|
1858 |
3568
|
1859 * DLD-FUNCTIONS/dassl.cc (print_dassl_option_list): Use stream |
|
1860 manipulators instead of GNU iostream-specific form function. |
|
1861 * DLD-FUNCTIONS/fsolve.cc (print_fsolve_option_list): Ditto. |
|
1862 * DLD-FUNCTIONS/lsode.cc (print_lsode_option_list): Ditto. |
|
1863 * DLD-FUNCTIONS/quad.cc (print_quad_option_list): Ditto. |
|
1864 * pr-output.cc (pr_scale_header): Ditto. |
|
1865 |
3566
|
1866 * sighandlers.h: Include signal.h here. |
|
1867 * sighandlers.cc: Not here. |
|
1868 |
|
1869 * utils.cc: Include setjmp.h, not csetjmp. |
|
1870 * toplev.cc: Ditto. |
|
1871 |
|
1872 * sighandlers.cc: Include signal.h, not csignal. |
|
1873 |
|
1874 * pt-plot.h: Don't include csignal. |
|
1875 * toplev.cc: Ditto. |
|
1876 * oct-hist.cc: Ditto. |
|
1877 * octave.cc: Ditto. |
|
1878 * pager.cc: Ditto. |
|
1879 * input.cc: Ditto. |
|
1880 * help.cc: Ditto. |
|
1881 |
3565
|
1882 * pt-plot.cc (send_to_plot_stream): Use operator== and substr |
|
1883 method to do limited-length string comparison. |
|
1884 * input.cc (generate_completion): Likewise. |
|
1885 * ov-dld-fcn.cc (octave_dld_function::octave_dld_function): Likewise. |
|
1886 * ov-usr-fcn.cc (octave_user_function::mark_as_system_fcn_file): |
|
1887 Likewise. |
|
1888 |
|
1889 * utils.cc (check_preference): Expect exact string matches. |
|
1890 * variables.cc (ignore_function_time_stamp): Likewise. |
|
1891 * lex.l (whitespace_in_literal_matrix): Likewise. |
|
1892 |
3564
|
1893 * mappers.cc (xconj, ximag, xreal): New functions. Use them in |
|
1894 DEFUN_MAPPER calls. |
|
1895 |
|
1896 * defun-int.h (DEFUN_MAPPER_INTERNAL): Cast function pointer args |
|
1897 to octave_mapper constructor. |
|
1898 |
3523
|
1899 2000-02-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1900 |
3564
|
1901 * procstream.cc (procstreambase::procstreambase, |
|
1902 procstreambase::open, procstreambase::close): |
|
1903 Call std::ios::setstate, not set. |
|
1904 |
3561
|
1905 * lex.l (plot_axes_token): Declare plot_axes as const char *. |
|
1906 Declare tmp const char **. |
|
1907 |
3560
|
1908 * oct-procbuf.h: Include fstream, not streambuf.h. |
|
1909 |
3570
|
1910 * load-save.cc (Fsave): Call pubseekoff instead of seekoff. |
3558
|
1911 * oct-strstrm.cc (octave_base_strstream::tell): Likewise. |
|
1912 (octave_base_strstream::seek): Likewise. |
|
1913 |
3553
|
1914 * oct-stream.cc (octave_base_stream::read): Rename count to char_count. |
|
1915 (octave_base_stream::do_gets): Likewise. |
|
1916 |
|
1917 * octave-stream.cc (octave_base_stream::write): Rename flt_fmt to ffmt. |
|
1918 (octave_base_stream::read): Likewise. |
|
1919 |
3552
|
1920 * TEMPLATE-INST/SLStack-sym.cc: Delete meaningless `extern |
|
1921 template' declarations. |
|
1922 * TEMPLATE-INST/Array-tc.cc: Ditto. |
|
1923 |
|
1924 * TEMPLATE-INST/Map-fnc.cc: Don't try to instantiate goodCHptr or |
|
1925 CHptr_to_index here. |
|
1926 * TEMPLATE-INST/Map-tc.cc: Likewise. |
3554
|
1927 * Map.h (CHNode::goodCHptr, CHNode::CHptr_to_index): Now member |
|
1928 functions. Change all callers. |
3552
|
1929 |
|
1930 * load-save.cc (read_binary_file_header): Declare magic_len `const'. |
|
1931 |
|
1932 * token.h (token::token (const token&), token::operator=): |
|
1933 Delete unnecessary definitions. |
|
1934 |
|
1935 * oct-stream.cc (octave_stream::mode_as_string): Use |
|
1936 std::ios::binary, not std::ios::bin. |
|
1937 * load-save.cc (Fsave, Fload, save_user_variables): Likewise. |
|
1938 |
3550
|
1939 * DLD-FUNCTIONS/qz.cc (Fqz): Use Array<int> class instead of |
|
1940 trying to create automatic int array with variable size. |
|
1941 |
3548
|
1942 * variables.cc (F__dump_symbol_info__): Fix continuation char. |
3552
|
1943 * mappers.cc (Ftoupper): Likewise. |
3548
|
1944 * DLD-FUNCTIONS/besselj.cc (Fairy, Fbesselj): Likewise. |
|
1945 * DLD-FUNCTIONS/chol.cc (Fchol): Likewise. |
|
1946 * DLD-FUNCTIONS/det.cc (Fdet): Likewise. |
|
1947 * DLD-FUNCTIONS/eig.cc (Feig): Likewise. |
|
1948 * DLD-FUNCTIONS/gammainc.cc (gammainc): Likewise. |
|
1949 * DLD-FUNCTIONS/givens.cc (givens): Likewise. |
|
1950 * DLD-FUNCTIONS/hess.cc (hess): Likewise. |
|
1951 * DLD-FUNCTIONS/inv.cc (inv): Likewise. |
|
1952 * DLD-FUNCTIONS/log.cc (logm): Likewise. |
|
1953 * DLD-FUNCTIONS/lu.cc (lu): Likewise. |
|
1954 * DLD-FUNCTIONS/qr.cc (qr): Likewise. |
|
1955 * DLD-FUNCTIONS/schur.cc (schur): Likewise. |
|
1956 * DLD-FUNCTIONS/balance.cc (balance): Likewise. |
|
1957 * DLD-FUNCTIONS/svd.cc (svd): Likewise. |
|
1958 * DLD-FUNCTIONS/syl.cc (syl): Likewise. |
|
1959 * DLD-FUNCTIONS/expm.cc (Fexpm): Likewise. |
|
1960 |
|
1961 * token.h (token::token_type, token::end_tok_type, |
|
1962 token::plot_tok_type): Delete extraneous comma from enum decls. |
3552
|
1963 * load-save.cc (load_save_format): Likewise. |
3548
|
1964 |
3546
|
1965 * pt-idx.cc (tree_index_expression::tree_index_expression): |
|
1966 Delete default arg values. |
3552
|
1967 * oct-fstrm.cc (octave_fstream::octave_fstream): Likewise. |
|
1968 * oct-stream.cc (octave_stream::octave_stream): Likewise. |
3546
|
1969 |
|
1970 * siglist.h, siglist.c: New files. |
|
1971 * Makefile.in: Add them to the appropriate lists. |
|
1972 * siglist.c (sys_siglist): Move definition here from sighandlers.cc. |
|
1973 * siglist.h (sys_siglist): Move declaration here from sighandlers.h. |
|
1974 |
3545
|
1975 * ov.h, ov-bool.h, ov-bool-mat.h (bool_matrix_value): |
|
1976 Delete unnecessary arg. |
|
1977 |
3544
|
1978 * ov.h (octave_value::do_multi_index_op): Rename from do_index_op. |
|
1979 |
|
1980 * ov-fcn.h (octave_function::is_system_fcn_file): Now const. |
|
1981 |
3529
|
1982 * Map.cc (index_to_CHptr): Now a macro. |
3530
|
1983 (CHMap<C>::hash): Now a member function. |
3529
|
1984 |
3528
|
1985 * defun-int.h (UNDERSCORIFY): New macro. |
|
1986 (DEFCONST_INTERNAL, DEFCONSTX_INTERNAL): Use it. |
|
1987 |
3526
|
1988 * data.cc (Fis_list): Fix continuation char. |
3532
|
1989 * defaults.cc (IMAGEPATH): Likewise. |
3526
|
1990 |
|
1991 * Map.cc (CHptr_to_index, goodCHptr): Delete static decl. |
|
1992 |
3525
|
1993 * ov.h (unary_op, binary_op, assign_op): Prepend `op_' to elts. |
|
1994 Change all usses |
|
1995 |
3523
|
1996 * All source files: Sprinkle with std:: qualifier as needed. |
|
1997 |
3503
|
1998 2000-01-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1999 |
|
2000 * sighandlers.cc (install_signal_handlers): Add std:: qualifier |
|
2001 for set_net_handler. |
|
2002 |
|
2003 * All source files: Include iostream, fstream, strstream, |
|
2004 etc. as needed instead of using forward declarations for these |
|
2005 classes. |
|
2006 |
3498
|
2007 2000-01-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2008 |
|
2009 * input.cc (input_event_hook, Finput_event_hook): New functions. |
|
2010 (hook_fcn, user_data): New static variables. |
|
2011 |
3489
|
2012 2000-01-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2013 |
3491
|
2014 * pt-except.cc (do_catch_code): Don't do anything special for |
|
2015 tree_return_command::returning, or tree_break_command::breaking. |
|
2016 |
|
2017 * error.cc (vwarning): New function. |
|
2018 (warning): Use it instead of calling verror. |
|
2019 |
|
2020 * oct-stream.cc (octave_base_stream::oscanf): |
|
2021 Result is now always nconv+1 elements. Return count of successful |
|
2022 conversions in last element. |
|
2023 * file-io.cc (Ffscanf, Fsscanf, Fscanf): Fix doc string. |
|
2024 |
3490
|
2025 * pt-except.cc (do_catch_code): Unwind-protect buffer_error_messages. |
|
2026 Be sure to run all unwind-protects before returning. |
|
2027 (tree_try_catch_command::eval): Add do_catch_code cleanup function |
|
2028 to unwind-protect stack before resetting buffer_error_messages. |
|
2029 Use unwind-protect to save and restore buffer_error_messages. |
|
2030 If there is no catch code, discard the cleanup function and run |
|
2031 the unwind-protect for buffer_error_messages. |
|
2032 |
|
2033 * error.cc (bind_global_error_variable): Avoid dereferencing |
|
2034 error_message_buffer if it is NULL. |
|
2035 |
3489
|
2036 * parse.y (evaluating_function_body): New global flag. |
|
2037 * ov-usr-fcn.cc (octave_user_function::do_index_op): |
|
2038 Protect and set it here. |
|
2039 * parse.y (make_break_command, make_return_command): Check it here. |
|
2040 |
|
2041 * error.cc (warning_state): New global flag. |
|
2042 (warning): Set it here. |
|
2043 * lex.l (reset_parser): Clear it here. |
|
2044 * parse.y (fold): Check it here. |
|
2045 |
3484
|
2046 2000-01-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2047 |
3485
|
2048 * pt-walk.h (tree_walker::visit_do_until_command): New pure virtual. |
|
2049 * pt-pr-code.cc (tree_print_code::visit_do_until_command): |
3484
|
2050 New function. |
3485
|
2051 * pt-loop.h (tree_do_until_command): New class. |
3484
|
2052 (tree_while_command::expr, tree_while_command::list): |
|
2053 Now protected instead of private. |
3485
|
2054 * parse.y (make_do_until_command): New function. |
|
2055 (loop_command): Recognize do-until statement. |
3484
|
2056 (DO, UNTIL): New tokens. |
|
2057 |
|
2058 * input.cc (match_sans_spaces): Require non-blank part of test |
|
2059 string to match standard string exactly. |
|
2060 |
3483
|
2061 2000-01-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2062 |
|
2063 * oct-stream.h (scanf_format_elt::char_class): New struct elt. |
|
2064 Add arg to constructor. |
|
2065 (scanf_format_elt::special_conversion): New enum. |
|
2066 * oct-stream.cc (scanf_format_list::add_elt_to_list): New arg, |
|
2067 char_class. Pass it to scanf_format_elt constructor. |
|
2068 (scanf_format_list::scanf_format_list): Create separate list |
|
2069 elements for whitespace and literal conversions. |
|
2070 (expand_char_class): New function. |
|
2071 (scanf_format_list::finish_conversion): Extract character class |
|
2072 (not including the delimiting brackets) and expand the list of |
|
2073 characters. Pass the result to add_elt_to_list. |
|
2074 (scanf_format_list::all_character_conversions): Also accept '^', |
|
2075 scanf_format_elt::literal_conversion, and |
|
2076 scanf_format_elt::whitespace_conversion types too. |
|
2077 (DO_WHITESPACE_CONVERSION, BEGIN_CHAR_CLASS_CONVERSION, |
|
2078 BEGIN_C_CONVERSION, BEGIN_S_CONVERSION, DO_LITERAL_CONVERSION): |
|
2079 New macros. |
|
2080 (octave_base_stream::do_scanf, octave_base_stream::do_oscanf): |
|
2081 Use them to avoid code duplication. |
|
2082 Handle whitespace, literal text, and character class conversions. |
|
2083 (octave_base_stream::oscanf): Loop over all format list elements, |
|
2084 not just the first nconv elements. Clear status flags on is for |
|
2085 all streams. |
|
2086 |
3476
|
2087 2000-01-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2088 |
3480
|
2089 * xdiv.cc (result_ok): Just check value of info. |
|
2090 (solve_singularity_warning): New function. |
|
2091 (xleftdiv, xdiv): Pass pointer to solve_singularity_warning to |
|
2092 solve function. |
|
2093 |
|
2094 * lex.l (handle_identifier): Set next_tok_is_eq if we are looking |
|
2095 at `=', but not if we are looking at `=='. |
|
2096 |
3478
|
2097 * pt-pr-code.cc (tree_print_code::visit_unwind_protect_command): |
|
2098 Print `unwind_protect_cleanup', not `cleanup_code'. |
|
2099 |
3477
|
2100 * pager.cc (octave_pager_buf::flush_current_contents_to_diary): |
|
2101 New function. |
|
2102 (octave_pager_stream::flush_current_contents_to_diary): |
|
2103 Ditto. |
|
2104 (close_diary_file): Use the new octave_pager_stream function to |
|
2105 try to flush the current buffer to the diary when it is closed. |
|
2106 |
3476
|
2107 * variables.cc (Fexist): Return 6 for built-in constants. |
|
2108 |
|
2109 * pt-plot.cc (Fgshow): Don't append " " after last arg. |
|
2110 (Fgset): Likewise. |
|
2111 |
3472
|
2112 2000-01-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2113 |
|
2114 * ov-base-mat.h (octave_base_matrix::length): Return 0 for empty |
|
2115 arrays. |
|
2116 |
3465
|
2117 2000-01-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2118 |
|
2119 * DLD-FUNCTIONS/time.cc (Fstrptime): New function. |
|
2120 |
|
2121 * load-save.cc (Fsave): Add missing else. |
|
2122 |
3442
|
2123 2000-01-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2124 |
3444
|
2125 * DLD-FUNCTIONS/gammainc.cc (Fgammainc): Texinfoize doc string. |
3445
|
2126 * ov-typeinfo.cc (Ftypeinfo): Ditto. |
3446
|
2127 * parse.y (Vwarn_future_time_stamp): Ditto. |
|
2128 * DLD-FUNCTIONS/minmax.cc (Fmax, Fmin): Ditto. |
3445
|
2129 * ov-usr-fcn.cc (Fva_arg, Fva_start, Fvr_val): Ditto. |
3446
|
2130 * defaults.cc (VOCTAVE_HOME, Frehash): Ditto. |
|
2131 * toplev.cc (Fwarranty, Fcasesen): Ditto. |
|
2132 * utils.cc (Fdo_string_escapes, Ffile_in_loadpath): Ditto. |
|
2133 * variables.cc (F__dump_symtab_info__, F__dump_symbol_info__): Ditto. |
3447
|
2134 * ov-list.cc (Flist, Fappend, Fnth, Freverse, Fsplice): Ditto. |
3448
|
2135 * input.cc (Fread_readline_init_file): Ditto. |
|
2136 * file-io.cc (Fis_stream): Ditto. |
|
2137 * ov-cell.cc (Fiscell, Fcell): Ditto. |
|
2138 * pt-assign.cc (Vprint_rhs_assign_val): Ditto. |
|
2139 * pt-decl.cc (Vinitialize_global_variables): Ditto. |
|
2140 * symtab.cc (Vvariables_can_hide_functions): Ditto. |
3443
|
2141 |
3442
|
2142 * pt-plot.cc (Fgraw, Fgset, Fgshow, Vgnuplot_command_plot, |
|
2143 Vgnuplot_command_replot, Vgnuplot_command_splot, |
|
2144 Vgnuplot_command_using, Vgnuplot_command_with, |
|
2145 Vgnuplot_command_axes, Vgnuplot_command_title, |
|
2146 Vgnuplot_command_end): Texinfoize doc strings. |
|
2147 |
3447
|
2148 * oct-procbuf.cc (__kluge_procbuf_delay__): Rename from |
|
2149 kluge_procbuf_delay. Texinfoize doc string. |
|
2150 |
3427
|
2151 2000-01-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2152 |
|
2153 * parse.y (gobble_leading_whitespace): Discard first space character |
|
2154 after consecutive comment characters. |
|
2155 * lex.l (grab_help_text): Ditto. |
|
2156 |
3428
|
2157 * lex.l (Vwhitespace_in_literal_matrix, Vwarn_separator_insert, |
|
2158 Vwarn_single_quote_string): Texinfoize doc string. |
|
2159 |
3418
|
2160 2000-01-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2161 |
3419
|
2162 * ov.h, ov.cc (octave_value::column_vector_value, |
|
2163 octave_value::row_vector_value, |
|
2164 octave_value::complex_column_vector_value, |
|
2165 octave_value::complex_row_vector_value): New functions. |
|
2166 (octave_value::vector_value): Now returns Array<double>. |
|
2167 (octave_value::complex_vector_value): Now returns Array<Complex>. |
|
2168 Sprinkle conversions where necessary. |
|
2169 |
3418
|
2170 * ov.cc (Vprefer_column_vectors): Now static. |
|
2171 * ov.h (octave_value (const ComplexRowVector&), |
|
2172 octave_value (const ComplexColumnVector&), |
|
2173 octave_value (const RowVector&), octave_value (const ColumnVector&)): |
|
2174 Delete second arg. Change all callers. |
3419
|
2175 |
3418
|
2176 * oct-obj.h (octave_value_list (const RowVector&), |
|
2177 octave_value_list (const ColumnVector&), |
|
2178 octave_value_list (const ComplexRowVector&), |
|
2179 octave_value_list (const ComplexColumnVector&)): Likewise. |
|
2180 * ov-cx-mat.h, ov-cx-mat.cc |
|
2181 (octave_complex_matrix (const ComplexRowVector&), |
|
2182 (octave_complex_matrix (const ComplexColumnVector&)): |
|
2183 Delete second arg, simply create object with orientation |
|
2184 corresponding to vector arg. Move constructors to class decl. |
|
2185 * ov-re-mat.h, ov-re-mat.cc (octave_matrix (const RowVector&), |
|
2186 (octave_matrix (const ColumnVector&)): |
|
2187 Delete second arg, simply create object with orientation |
|
2188 corresponding to vector arg. Move constructors to class decl. |
|
2189 |
3411
|
2190 2000-01-07 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
2191 |
|
2192 * mappers.cc (Fconj, Ferf, Ferfc, Fgamma, Fimag, Flgamma, Flog10, |
|
2193 Freal, Fround): Add @seealso{...} to doc strings. |
|
2194 |
3408
|
2195 2000-01-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2196 |
3410
|
2197 * oct-stream.cc (do_scanf): Do the right thing again for character |
|
2198 conversions. |
|
2199 |
3408
|
2200 * help.cc (display_help_text): Also strip out leading spaces |
|
2201 before Texinfo @-commands before sending doc string to makeinfo. |
|
2202 (display_help_text): Improve format of `See also' string. |
|
2203 |
3405
|
2204 2000-01-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2205 |
|
2206 * help.cc (display_help_text): Pass a definition for @seealso |
|
2207 through the filter. |
|
2208 |
3400
|
2209 1999-12-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2210 |
|
2211 * lex.l (Vwarn_single_quote_string): New variable. |
|
2212 (syms_of_lex): DEFVAR it. |
|
2213 (warn_single_quote_string): New function. |
|
2214 (gripe_single_quote_string): New function. |
|
2215 Use new stuff to allow warnings for code that uses single quote |
|
2216 characters to introduce string constants. |
|
2217 |
3399
|
2218 1999-12-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2219 |
|
2220 * mkbuiltins: Add #undef quad to generated file. |
|
2221 |
3388
|
2222 1999-12-15 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2223 |
|
2224 * lex.l (Vwarn_separator_insert): New variable. |
|
2225 (syms_of_lex): DEFVAR it. |
|
2226 (warn_separator_insert): New function. |
|
2227 (maybe_warn_separator_insert): New function. |
|
2228 Use new stuff to allow warnings for code that might result in |
|
2229 auto-insertion of commas or semicolons, depending on the value of |
|
2230 whitespace_in_literal_matrix. |
|
2231 |
|
2232 * parse.y (Fsource): Record function file name here too. |
|
2233 |
3377
|
2234 1999-12-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2235 |
|
2236 * variables.cc (link_to_global_variable): If the local symbol is |
|
2237 not a variable, don't bother to clear it. Instead, just redefine |
|
2238 it by aliasing to the global symbol. |
|
2239 |
3372
|
2240 1999-11-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2241 |
3373
|
2242 * DLD-FUNCTIONS/balance.cc (Fbalance): Texinfoize doc string. |
|
2243 * DLD-FUNCTIONS/det.cc (Fdet): Ditto. |
|
2244 * DLD-FUNCTIONS/eig.cc (Feig): Ditto. |
|
2245 * DLD-FUNCTIONS/givens.cc (Fgivens): Ditto. |
|
2246 * DLD-FUNCTIONS/inv.cc (Finv): Ditto. |
|
2247 * DLD-FUNCTIONS/chol.cc (Fchol): Ditto. |
|
2248 * DLD-FUNCTIONS/hess.cc (Fhess): Ditto. |
|
2249 * DLD-FUNCTIONS/lu.cc (Flu): Ditto. |
|
2250 * DLD-FUNCTIONS/qr.cc (Fqr): Ditto. |
|
2251 * DLD-FUNCTIONS/schur.cc (Fschur): Ditto. |
|
2252 * DLD-FUNCTIONS/svd.cc (Fsvd): Ditto. |
|
2253 * DLD-FUNCTIONS/expm.cc (Fexpm): Ditto. |
|
2254 * DLD-FUNCTIONS/log.cc (Flogm, Fsqrtm): Ditto. |
|
2255 * DLD-FUNCTIONS/syl.cc (Fsyl): Ditto. |
|
2256 * DLD-FUNCTIONS/pinv.cc (Fpinv): Ditto. |
|
2257 * DLD-FUNCTIONS/qz.cc (Fqz): Ditto. |
|
2258 * DLD-FUNCTIONS/dassl.cc (Fdassl, Fdassl_options): Ditto. |
|
2259 * DLD-FUNCTIONS/lsode.cc (Flsode, Flsode_options): Ditto. |
|
2260 * data.cc (Flength, Fsize, Fisempty): Ditto. |
3372
|
2261 * sysdep.cc (Fkbhit): Ditto. |
|
2262 * input.cc (Fkeyboard, Finput): Ditto. |
|
2263 * variables.cc (ans): Ditto. |
|
2264 * pr-output.cc (Fdisp, Fformat): Ditto. |
|
2265 * ov.cc (Vprint_answer_id_name): Ditto. |
3373
|
2266 * defaults.cc (IMAGEPATH): Ditto. |
|
2267 * error.cc (Ferror, Fwarning, Fusage, error_text, beep_on_error): |
|
2268 Ditto. |
3372
|
2269 * load-save.cc (Fload, Fsave, Vdefault_save_format, |
|
2270 Vsave_precision): Ditto. |
|
2271 * file-io.cc (Ffflush, Ffopen, Ffclose, Ffputs, Ffgetl, Ffgets, |
|
2272 Ffprintf, Fsprintf, Fscanf, Ffscanf, Fsscanf, Ffread, Ffwrite, |
|
2273 Ffseek, Fftell, Ffeof, Fferror, Ffreport, Ftmpnam, Vstdin_file, |
|
2274 Vstdout_file, Vstderr_file, SEEK_SET, SEEK_CUR, SEEK_END): Ditto. |
|
2275 * pager.cc (Vpager_binary, Vpage_output_immediately, |
|
2276 Vpage_screen_output, Fmore): Ditto. |
|
2277 |
3369
|
2278 1999-11-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2279 |
|
2280 * utils.cc (Vtreat_neg_dim_as_zero): Texinfoize doc string. |
|
2281 * DLD-FUNCTIONS/find.cc (Ffind): Ditto. |
|
2282 * DLD-FUNCTIONS/rand.cc (Frand, Frandn): Ditto. |
|
2283 * DLD-FUNCTIONS/sort.cc (Fsort): Ditto. |
|
2284 * mappers.cc (Fisinf, Fisnan, Ffinite): Ditto. |
|
2285 * data.cc (Fall, Fany, Fdiag, Fones, Fzeros, Feye, Flinspace): Ditto. |
3371
|
2286 * defaults.cc (Vloadpath, Vdefault_loadpath): Ditto. |
|
2287 * parse.y (Feval, Ffeval, Vdefault_eval_print_flag, |
|
2288 Vwarn_missing_semicolon, Vwarn_function_name_clash, Fsource): Ditto. |
|
2289 * ov-usr-fcn.cc (Vmax_recursion_depth, Vdefault_return_value, |
|
2290 Vdefine_all_return_values, Vreturn_last_computed_value): Ditto. |
|
2291 * ov.cc (Vok_to_lose_imaginary_part, Vdo_fortran_indexing, |
|
2292 Vprefer_column_vectors, Vresize_on_range_error, |
|
2293 Vwarn_divide_by_zero): Ditto. |
|
2294 * pt-stmt.cc (Vsilent_functions): Ditto. |
|
2295 * variables.cc (Vignore_function_time_stamp): Ditto. |
|
2296 * dynamic-ld.cc (Vwarn_reload_forces_clear): Ditto. |
3369
|
2297 |
3367
|
2298 1999-11-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2299 |
3368
|
2300 * DLD-FUNCTIONS/fft.cc (Ffft): Texinfoize doc string. |
|
2301 * DLD-FUNCTIONS/ifft.cc (Fifft): Ditto. |
|
2302 * DLD-FUNCTIONS/fft2.cc (Ffft2): Ditto. |
|
2303 * DLD-FUNCTIONS/ifft2.cc (Fifft2): Ditto. |
|
2304 * DLD-FUNCTIONS/filter.cc (Ffilter): Ditto. |
|
2305 * DLD-FUNCTIONS/quad.cc (Fquad, Fquad_options): Ditto. |
|
2306 * DLD-FUNCTIONS/colloc.cc (Fcolloc): Ditto. |
|
2307 * DLD-FUNCTIONS/fsolve.cc (Ffsolve, Ffsolve_options): Ditto. |
|
2308 * defaults.cc (Veditor): Ditto. |
|
2309 * pt-plot.cc (Vautomatic_replot, Vgnuplot_binary, |
|
2310 Vgnuplot_has_frames, Vgnuplot_has_multiplot, Fclearplot, |
|
2311 Fcloseplot, Fpurge_tmp_files, Fishold, Fhold): |
3367
|
2312 |
|
2313 * Makefile.in (parse.cc): Expect 11 shift/reduce conflicts now. |
|
2314 |
3361
|
2315 1999-11-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2316 |
3366
|
2317 * parse.y (Vwarn_assign_as_truth_value, Vwarn_variable_switch_label): |
|
2318 Texinfoize doc strings. |
|
2319 |
3365
|
2320 * DLD-FUNCTIONS/pinv.cc (Fpinv): Texinfoize doc string. |
|
2321 |
3364
|
2322 * defun-int.h (DEFUN_DLD_INTERNAL): New macro. |
|
2323 * defun-dld.h [MAKE_BUILTINS] (DEFUN_DLD): Simply expand to |
|
2324 DEFUN_DLD_INTERNAL. |
|
2325 * mkbuiltins: Generate code to define DEFUN_DLD_INTERNAL. |
|
2326 * mkgendoc: Likewise. |
|
2327 |
3363
|
2328 * Makefile.in (gendoc.o): Don't optimize when creating gendoc. |
3364
|
2329 (%.dc : %.cc): Delete rule. |
3363
|
2330 |
3361
|
2331 * pt-decl.cc (Vdefault_global_variable_value): Texinofize doc string. |
|
2332 * variables.cc (Fclear, Fdocument, Fexist, Fis_global, Fwho): Ditto. |
|
2333 * help.cc (Ftype, Fwhich): Ditto. |
|
2334 * ov.cc (Vstruct_levels_to_print, Vimplicit_str_to_num_ok): Ditto. |
|
2335 * data.cc (Fis_struct, Fstruct_elements, Fstruct_constains): Ditto. |
|
2336 * strfns.cc (Fisstr, Fsetstr): Ditto. |
|
2337 * pt-mat.cc: (Fimplicit_num_to_str_ok, Fstring_fill_char): Ditto. |
|
2338 * utils.cc (Fundo_string_escapes): Ditto. |
|
2339 * mappers.cc: (Fisalnum, Fisalpha, Fisascii, Fiscntrl, Fisdigit, |
|
2340 Fisgraph, Fislower, Fisprint, Fispunct, Fisspace, Fisupper, |
|
2341 Fisxdigit, Ftoascii, Ftolower, Ftoupper): Ditto. |
|
2342 |
3357
|
2343 1999-11-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2344 |
3360
|
2345 * syscalls.cc (symbols_of_syscalls): Use DEFCONSTX to define |
|
2346 Octave constants for C macros like O_WRONLY. |
|
2347 |
3357
|
2348 * oct-lvalue.cc (octave_lvalue::set_index): Disallow expressions |
|
2349 like x(i)(j) = rhs. |
|
2350 |
3355
|
2351 1999-11-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2352 |
3356
|
2353 * symtab.cc (symbol_record::type_as_string): New function. |
3355
|
2354 |
|
2355 * symtab.cc (symbol_record::which): New functions. |
|
2356 * help.cc (do_which): New functions. |
|
2357 (Fwhich): Use them. |
|
2358 |
|
2359 * help.cc (help_from_symbol_table, help_from_file): New functions. |
|
2360 (builtin_help): Use them. |
|
2361 |
|
2362 * help.cc (do_type): New function. |
3356
|
2363 (symbol_record::type): New function. |
3355
|
2364 (Ftype): Use them. |
|
2365 |
|
2366 * help.cc (print_symbol_type): Delete. |
|
2367 |
|
2368 * symtab.cc (symbol_table::name_list): Delete count arg. |
|
2369 (symbol_table::symbol_list): Likewise. |
|
2370 (symbol_table::glob): Likewise. Also return Array<symbol_record *> |
|
2371 instead of symbol_record **. |
|
2372 Change all callers. |
|
2373 * help.cc (names, display_symtab_names): Delete count arg. |
|
2374 |
|
2375 * help.cc (print_symbol_type, Ftype): No longer need to look up |
|
2376 fcn_file_name in the loadpath. |
|
2377 |
|
2378 * help.cc (print_symbol_type): Handle dld functions. |
|
2379 (help_from_symbol_table, help_from_file): New functions. |
|
2380 (builtin_help): Use them. |
|
2381 |
3354
|
2382 1999-11-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2383 |
|
2384 * ov-cell.cc (Fiscell, Fcell): New Functions. |
|
2385 (octave_cell::do_index_op): New function. |
|
2386 |
|
2387 * utils.cc (get_dimensions): Move here from data.cc and make extern. |
|
2388 (Vtreat_neg_dim_as_zero, treat_neg_dim_as_zero): Likewise. |
|
2389 (symbols_of_utils): New function. |
|
2390 |
|
2391 * data.cc (fill_matrix (const octave_value_list&, double, |
|
2392 const char*)): New function. |
|
2393 (Fones, Fzeros): Use it to avoid some code duplication. |
|
2394 |
3352
|
2395 1999-11-15 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2396 |
|
2397 * pt-cell.h, pt-cell.cc, ov-cell.h, ov-cell.cc, Cell.h, Cell.cc: |
|
2398 New files. |
|
2399 * Makefile.in: Add them to the appropriate lists. |
|
2400 * pt-walk.h (visit_cell (tree_cell&): New pure virtual. |
|
2401 * pt-pr-code.cc (tree_print_code::visit_cell (tree_cell&)): New |
|
2402 function. |
|
2403 * TEMPLATE-INST/Array-tc.cc: Instantiate 2D arrays of octave_value |
|
2404 objects. |
|
2405 * pt-all.h: Include pt-cell.h. |
|
2406 * ov.h, ov.cc (octave_value::is_cell, octave_value::cell_value): |
|
2407 New functions. |
|
2408 * ov-base.h, ov-base.cc (octave_value::is_cell, |
|
2409 octave_value::cell_value): Provide defaults. |
|
2410 * lex.h, lex.l: Handle `{' and `}' tokens (for cell arrays). |
|
2411 (bracketflag): Rename from braceflag. |
|
2412 (handle_close_bracket): Rename from handle_close_brace. |
|
2413 (class bracket_brace_paren_nesting_level): Rename from |
|
2414 brace_paren_nesting_level. |
|
2415 (bracket_brace_paren_nesting_level::bracket, |
|
2416 bracket_brace_paren_nesting_level::is_bracket): New functions to |
|
2417 keep count of nesting level for `[' and `]'. |
|
2418 (bracket_brace_paren_nesting_level::brace, |
|
2419 bracket_brace_paren_nesting_level::is_brace): Now keeps count of |
|
2420 nesting level for `{' and `}'. |
|
2421 * parse.y (tree_cell_type): New type. |
|
2422 Give '{' the same precedence and associativity as '(' and '.' |
|
2423 (matrix_rows, matrix_rows1): Rename from rows, rows1. |
|
2424 (cell, cell_rows, cell_rows1): New non-terminals. |
|
2425 (cell_or_matrix_row): Rename from matrix_row. |
|
2426 (primary_expr): Accept cell here. |
|
2427 (postfix_expr): Allow indexing using '{' arg_list '}'. |
|
2428 (finish_cell): New function. |
|
2429 |
3350
|
2430 1999-11-12 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2431 |
|
2432 * utils.cc (jump_to_top_level): No longer declared extern "C". |
|
2433 |
|
2434 * cutils.c (octave_strcasecmp, octave_strncasecmp): New functions. |
|
2435 * utils.cc (almost_match): Call octave_strncasecmp instead of |
|
2436 calling strncasecmp directly. |
|
2437 |
3347
|
2438 1999-11-10 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2439 |
|
2440 * parse.y: Don't define warn_reload_forces_clear here. |
|
2441 |
|
2442 * Makefile.in (DISTFILES): Include DOCSTRINGS. |
|
2443 |
3340
|
2444 1999-11-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2445 |
3343
|
2446 * sighandlers.cc (install_signal_handlers): Don't install |
|
2447 sigwinch_handler. |
|
2448 |
3342
|
2449 * oct-iostrm.h (octave_istream::eof, octave_ostream::eof): Provide |
|
2450 implementation for these. |
|
2451 |
|
2452 * oct-stream.cc (octave_base_stream::do_scanf): |
|
2453 The stdin stream is only special if we are interactive. |
|
2454 (octave_base_stream::scanf): Ditto. |
|
2455 (octave_base_stream::do_oscanf): Ditto. |
|
2456 (octave_base_stream::oscanf): Ditto. |
|
2457 |
3340
|
2458 * ov.h (octave_value::is_stream): New predicate. |
|
2459 * ov-file.h (octave_file::is_stream): Return true. |
|
2460 * file-io.cc (Fis_stream): New function. |
|
2461 |
|
2462 * ov-file.h (class octave_file): stream is now an object instead |
|
2463 of pointer. |
|
2464 * ov-file.cc (octave_file::print_raw): Handle stream as object |
|
2465 instead of pointer. Also print stream status. |
|
2466 |
|
2467 * ov-base.cc (octave_base_value::stream_value): Return object |
|
2468 instead of pointer. |
|
2469 |
|
2470 * ov.cc (octave_value::stream_value): Return object instead of pointer. |
|
2471 (octave_value::octave_value (const octave_stream&)): Take const |
|
2472 reference instead of pointer arg. |
|
2473 |
|
2474 * TEMPLATE-INST/Array-os.cc: Instantiate Arrays of octave_stream |
|
2475 objects, not pointers to them. |
|
2476 |
|
2477 * OPERATORS/op-fil-b.cc: Cope with octave_stream class changes. |
|
2478 * OPERATORS/op-fil-bm.cc: Likewise. |
|
2479 * OPERATORS/op-fil-cm.cc: Likewise. |
|
2480 * OPERATORS/op-fil-cs.cc: Likewise. |
|
2481 * OPERATORS/op-fil-lis.cc: Likewise. |
|
2482 * OPERATORS/op-fil-m.cc: Likewise. |
|
2483 * OPERATORS/op-fil-rec.cc: Likewise. |
|
2484 * OPERATORS/op-fil-s.cc: Likewise. |
|
2485 * OPERATORS/op-fil-str.cc: Likewise. |
|
2486 * file-io.cc: Likewise. |
|
2487 * syscalls.cc (Fdup): Likewise. |
|
2488 |
|
2489 * oct-fstrm.cc, oct-fstrm.h, oct-iostrm.cc, oct-iostrm.h, |
|
2490 oct-prcstrm.cc, oct-prcstrm.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
2491 oct-stream.cc, oct-stream.h, oct-strstrm.cc, oct-strstrm.h: |
|
2492 Rewrite to allow octave_stream objects to be used like values |
|
2493 instead of having to use pointers. |
|
2494 |
3337
|
2495 1999-11-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2496 |
|
2497 * oct-stream.cc (octave_base_stream::do_scanf): If it looks like |
|
2498 we have a matching failure, then reset the failbit in the stream |
|
2499 state. |
|
2500 (octave_base_stream::do_oscanf): Likewise. |
|
2501 |
3332
|
2502 1999-11-02 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
2503 |
3361
|
2504 * help.cc (Fhelp): Texinfoize doc string. |
|
2505 * input.cc (Fecho, Fcompletion_matches): Ditto. |
|
2506 * oct-hist.cc (Fedit_history, Fhistory, Frun_history): Ditto. |
|
2507 * pager.cc (Fdiary): Ditto. |
|
2508 * sysdep.cc (Fclc): Ditto. |
|
2509 * toplev.cc (Fquit, Fatexit): Ditto. |
3332
|
2510 |
|
2511 1999-11-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2512 |
|
2513 * lex.l (yywrap): No longer static. |
|
2514 (have_continuation): Declare input character as int, not char, so |
|
2515 comparison to EOF will work. |
|
2516 |
3330
|
2517 1999-11-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2518 |
|
2519 * defun.cc (print_usage): Use display_help_text instead of sending |
|
2520 help message directly to octave_stdout. |
|
2521 |
3325
|
2522 1999-10-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2523 |
|
2524 * defun-dld.h (INSTALL_DLD_FCNS, INSTALL_DLD_FCN): Delete definitions. |
|
2525 * DLD-FUNCTIONS/dassl.cc: Don't use INSTALL_DLD_FCN or |
|
2526 INSTALL_DLD_FCNS macros. They are not necessary with the new code |
|
2527 in dynamic-ld.cc. |
|
2528 * DLD-FUNCTIONS/lsode.cc: Ditto. |
|
2529 * DLD-FUNCTIONS/fsolve.cc: Ditto. |
|
2530 * DLD-FUNCTIONS/quad.cc: Ditto. |
|
2531 * DLD-FUNCTIONS/time.cc: Ditto. |
|
2532 * DLD-FUNCTIONS/besselj.cc: Ditto. |
|
2533 * DLD-FUNCTIONS/getgrent.cc: Ditto. |
|
2534 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
2535 * DLD-FUNCTIONS/inv.cc: Ditto. |
|
2536 * DLD-FUNCTIONS/log.cc: Ditto. |
|
2537 * DLD-FUNCTIONS/minmax.cc: Ditto. |
|
2538 * DLD-FUNCTIONS/rand.cc: Ditto. |
|
2539 |
|
2540 * dynamic-ld.cc, dynamic-ld.h: Major rewrite to allow reloading of |
|
2541 dynamically linked functions. |
|
2542 |
|
2543 * symtab.cc (symbol_record::replace_all_defs): Don't allow top |
|
2544 definition to be NULL. |
|
2545 (symbol_table::clear): Allow dynamically linked functions to be |
|
2546 cleared. |
|
2547 |
|
2548 * symtab.h (TYPE): New enum value, DLD_FUCTION. |
|
2549 (symbol_type): Now 8 bits wide. |
|
2550 (SYMTAB_ALL_TYPES): Include DLD_FUNCTION. |
|
2551 (symbol_record::symbol_def::is_function): Also recognize dld functions. |
|
2552 (symbol_record::symbol_def::is_dld_function): New function. |
|
2553 (symbol_record::is_dld_function): Ditto. |
|
2554 |
|
2555 * defun.cc (install_dld_function): New function. |
|
2556 * defun-int.h: Provide declaration here. |
|
2557 (octave_dld_fcn_installer): New typedef. |
|
2558 (DEFINE_FUN_INSTALLER_FUN): Installer function now takes an |
|
2559 oct_shlib object as an arg. Allow installation of a function to |
|
2560 happen more than once. |
|
2561 |
|
2562 * octave.cc (initialize_error_handlers): Call |
|
2563 set_liboctave_warning_handler here too. |
|
2564 |
|
2565 * ov-builtin.h (is_builtin_function): Return true. |
|
2566 Data member is now protected, not private. |
|
2567 |
|
2568 * ov-fcn.h (is_dynamically_loaded_function): New predicate. |
|
2569 (unload): New function. |
|
2570 Data members are now protected, not private. |
|
2571 |
|
2572 * ov.h (is_builtin_function, is_dld_function): New predicates. |
|
2573 * ov-base.h (is_builtin_function, is_dld_function): Ditto. |
|
2574 |
|
2575 * parse.y (Vwarn_reload_forces_clear): New static flag. |
|
2576 (warn_reload_forces_clear): New function. |
|
2577 (symbols_of_parse): DEFVAR warn_reload_forces_clear. |
|
2578 |
|
2579 * variables.cc (Fclear): Look for dld functions too. |
|
2580 |
3770
|
2581 * ov-dld-fcn.cc, ov-dld-fcn.h: New files. |
3325
|
2582 * Makefile.in (OV_INCLUDES, OV_SRC): Add them to the lists. |
|
2583 |
|
2584 * Makefile.in (DEFVAR_PATTERN): Also match DEFCONSTX. |
|
2585 |
3321
|
2586 1999-10-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2587 |
3325
|
2588 * DLList.h, DLList.cc: New files. |
|
2589 * Makefile.in (INCLUDES, DIST_SRC): Add them to the lists. |
|
2590 |
3323
|
2591 * DLD-FUNCTIONS/lsode.cc (Flsode): Be sure to call |
|
2592 unwind_protect::run_frame before returning. |
|
2593 * DLD-FUNCTIONS/quad.cc (Fquad): Likewise. |
|
2594 * DLD-FUNCTIONS/fsolve.cc (Ffsolve): Likewise. |
|
2595 * DLD-FUNCTIONS/dassl.cc (Fdassl): Likewise. |
|
2596 |
|
2597 * load-save.cc (read_mat_ascii_data): When reading from |
|
2598 tmp_stream, check its state, not the state of is. |
|
2599 |
|
2600 * defun-dld.h (INSTALL_DLD_FCN, INSTALL_DLD_FCNS): New macros. |
|
2601 * DLD-FUNCTIONS/dassl.cc: Use them. |
|
2602 * DLD-FUNCTIONS/lsode.cc: Ditto. |
|
2603 * DLD-FUNCTIONS/fsolve.cc: Ditto. |
|
2604 * DLD-FUNCTIONS/quad.cc: Ditto. |
|
2605 * DLD-FUNCTIONS/time.cc: Ditto. |
|
2606 * DLD-FUNCTIONS/besselj.cc: Ditto. |
|
2607 * DLD-FUNCTIONS/getgrent.cc: Ditto. |
|
2608 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
2609 * DLD-FUNCTIONS/inv.cc: Ditto. |
|
2610 * DLD-FUNCTIONS/log.cc: Ditto. |
|
2611 * DLD-FUNCTIONS/minmax.cc: Ditto. |
|
2612 * DLD-FUNCTIONS/rand.cc: Ditto. |
|
2613 |
3322
|
2614 * data.cc (Flinspace): Let linspace functions handle errors. |
|
2615 |
3321
|
2616 * mkgendoc (print_doc_string): Handle quoted names. |
|
2617 |
|
2618 * file-io.cc (symbols_of_file_io): Use DEFCONSTX for SEEK_SET, |
|
2619 SEEK_CUR, and SEEK_END. |
|
2620 |
|
2621 * defun.h (DEFCONST): Just pass name, defn, and doc to |
|
2622 DEFCONST_INTERNAL. |
|
2623 (DEFCONSTX): Likewise, pass name, defn, and doc to DEFCONSTX_INTERNAL. |
|
2624 * defun-int.h [MKBUILTINS] (DEFCONST_INTERNAL): Likewise, pass |
|
2625 name, defn, and doc to XDEFCONST_INTERNAL. |
|
2626 [MKBUILTINS] (DEFCONSTX_INTERNAL): New macro. |
|
2627 (INSTALL_CONST): New macro. |
|
2628 [! MKBUILTINS] (DEFCONST_INTERNAL): Use it to handle details here. |
|
2629 [! MKBUILTINS] (DEFCONSTX_INTERNAL): Ditto. |
|
2630 * mkgendoc: Fix definition of XDEFCONST_INTERNAL to match. |
|
2631 * mkbuiltins: Ditto. |
|
2632 |
|
2633 * mkdefs: Match spaces before BEGIN_INSTALL_BUILTIN. |
|
2634 |
|
2635 * Makefile.in (DEFUN_PATTERN): Also match DEFUN_MAPPER. |
|
2636 |
|
2637 1999-10-26 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
2638 |
|
2639 * data.cc (VI, VInf, VJ, VNaN, Ve, Veps, Vfalse, Vi, Vinf, Vj, |
|
2640 Vnan, Vpi, Vrealmax, Vrealmin): Texinfoize doc strings. |
|
2641 * mappers.cc (Fabs, Facos, Facosh, Fangle, Farg, Fasin, Fasinh, |
|
2642 Fatan, Fatanh, Fceil, Fconj, Fcos, Fcosh, Ferf, Ferfc, Fexp, |
|
2643 Ffinite, Ffix, Ffloor, Fgamma, Fimag, Flgamma, Flog, Flog10, |
|
2644 Freal, Fround, Fsign, Fsin, Fsinh, Fsqrt, Ftan, Ftanh): Ditto. |
|
2645 |
|
2646 1999-10-23 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
2647 |
3361
|
2648 * data.cc (Fis_matrix): Texinfoize doc string. |
|
2649 * ov.cc (Vpropagate_empty_matrices): Ditto. |
|
2650 * pt-mat.cc: (Vempty_list_elements_ok): Ditto. |
|
2651 * pr-output.cc (Vfixed_point_format, Voutput_max_field_width, |
|
2652 Voutput_precision, Vprint_empty_dimensions, Vsplit_long_rows): |
|
2653 Ditto. |
3321
|
2654 |
|
2655 1999-10-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2656 |
3323
|
2657 * ov-usr-fcn.cc (octave_user_function::do_index_op): If |
|
2658 Vmax_recursion_depth is exceeded, call unwind_protect::run_frame |
|
2659 before returning. |
3321
|
2660 |
3308
|
2661 1999-10-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2662 |
3317
|
2663 * cutils.c (do_octave_usleep): Handle useconds > 1e6. |
|
2664 |
3308
|
2665 * variables.h (is_valid_function): Provide default values for the |
|
2666 string argument. |
|
2667 |
|
2668 * symtab.cc (variable_reference): Maybe print warning (or error) |
|
2669 about variables that hide functions of the same name. |
|
2670 (symbol_record::define (const octave_value&, unsigned int)): Ditto. |
|
2671 (Vvariables_can_hide_functions): New static variable. |
|
2672 (variables_can_hide_functions, symbols_of_symtab): New functions. |
|
2673 |
|
2674 * cutils.c: New file. |
|
2675 * Makefile.in (SOURCES): Add it to the list. |
|
2676 * utils.h: Declare octave_usleep here. |
|
2677 * dirfns.cc (Fls): Simply all octave_usleep. |
|
2678 * oct-procbuf.cc (octave_procbuf::open): Ditto. |
|
2679 * sysdep.cc (Fusleep): Ditto. |
|
2680 * toplev.cc (run_command_and_return_output): Ditto. |
|
2681 |
3305
|
2682 1999-10-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2683 |
3307
|
2684 * data.cc (make_diag (const octave_value&, const octave_value&)): |
|
2685 Delete special cases for scalars and simply attempt conversion of |
|
2686 first arg to a matrix value. If that fails, we will still see an |
|
2687 error message. |
|
2688 |
3305
|
2689 * Makefile.in (DISTFILES): Add mkgendoc to the list. |
|
2690 |
3296
|
2691 1999-10-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2692 |
3301
|
2693 * Makefile.in (stmp-pic): New target. |
|
2694 ($(PICOBJS)): Depend on stmp-pic, not pic. |
|
2695 |
|
2696 * ov.h (get_rep): New function. |
|
2697 |
|
2698 * help.cc (display_help_text): Pass definitions for VERSION, |
|
2699 OCTAVE_HOME, and TARGETHOSTTYPE to makeinfo. |
|
2700 |
|
2701 * DLD-FUNCTIONS/getgrent.cc: Texinfoize all doc strings. |
|
2702 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
2703 * DLD-FUNCTIONS/getrusage.cc: Ditto. |
|
2704 * DLD-FUNCTIONS/time.cc: Ditto. |
|
2705 |
|
2706 * defaults.cc (EXEC_PATH, OCTAVE_VERSION): Texinfoize doc strings. |
|
2707 * dirfns.cc (Fcd, Fls, Fpwd, Freaddir, Fmkdir, Frmdir, Frename, |
|
2708 Fglob, Ffnmatch): Ditto. |
|
2709 * file-io.cc (Fpopen, Fpclose, Fumask): Ditto. |
|
2710 * sysdep.cc (Fgetenv, Fputenv, Fpause, Fsleep, Fusleep, Fisieee, |
|
2711 Ftilde_expand): Ditto. |
|
2712 * toplev.cc (Fcomputer, Fsystem, Foctave_config_info): Ditto. |
|
2713 * utils.cc (Ffile_in_path): Ditto. |
|
2714 * syscalls.cc (Fdup2, Fexec, Ffcntl, Ffork, Fgetpgrp, Fgetpid, |
|
2715 Fgetppid, Fgetegid, Fgetgid, Fgeteuid, Fgetuid, Fmkfifo, Fpipe, |
|
2716 Fstat, Funlink, Fwaitpid, F): Ditto. |
|
2717 (Flstat): Refer to stat for doc. |
|
2718 |
|
2719 |
3296
|
2720 * help.cc (looks_like_texinfo): New function. |
|
2721 (display_help_text): Use it to see if the doc string looks like |
|
2722 Texinfo source. If so, use makeinfo to format the text before |
|
2723 displaying it. |
|
2724 |
|
2725 * mkgendoc: New script. |
|
2726 * Makefile.in: Use it to create gendoc.cc, which is compiled and |
|
2727 run to create DOCSTRINGS file from sources. |
|
2728 |
3295
|
2729 1999-10-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2730 |
|
2731 * help.cc (help_from_info): Print `unable to find info' message if |
|
2732 try_info returns 127; otherwise, print `not indexed' message. |
|
2733 Don't sleep after printing `not indexed' message. |
|
2734 |
3292
|
2735 1999-10-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2736 |
|
2737 * parse.y (fold (tree_unary_expression *)): New function. |
|
2738 (make_prefix_op, make_postfix_op): Use it. |
|
2739 |
3281
|
2740 1999-10-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2741 |
3288
|
2742 * Makefile.in (oct-gperf.h): Ask for ANSI-C output from gperf |
|
2743 (requires gperf-2.7 or later). |
|
2744 |
3281
|
2745 * sighandlers.cc (sigwinch_handler): New function. |
|
2746 (install_signal_handlers): Install it. |
|
2747 |
3273
|
2748 Thu Sep 23 19:49:36 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2749 |
|
2750 * toplev.cc (Fsystem): For async case, use execl instead of |
|
2751 system, avoiding the need to exit after executing the subprocess. |
|
2752 |
3268
|
2753 Thu Sep 9 17:09:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2754 |
|
2755 * oct-stream.cc (get_size): Allow zero values. |
|
2756 (get_size): New arg, one_elt_size_spec. |
|
2757 (do_scanf_conv): New arg, `conv_count'. Change instantiation |
|
2758 requests and all callers. |
|
2759 (octave_base_stream::do_scanf): Improve scanning of strings. |
|
2760 (octave_base_stream::do_oscanf): Remove size limit on %s conversions. |
|
2761 |
|
2762 * oct-stream.cc (scanf_format_list::all_character_conversions): |
|
2763 Don't count %p as a character conversion. |
|
2764 |
|
2765 Tue Sep 7 08:31:04 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2766 |
|
2767 * pr-output.cc (set_real_matrix_format, set_complex_matrix_format): |
|
2768 Move check for fixed_point_format ahead of check for |
|
2769 int_or_inf_or_nan. |
|
2770 |
3264
|
2771 Thu Sep 2 11:54:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2772 |
|
2773 * oct-obj.cc (make_argv): Correctly handle empty strings as args. |
|
2774 |
3263
|
2775 Fri Aug 20 08:17:52 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2776 |
|
2777 * DLD-FUNCTIONS/quad.cc (quad): Delete unused label. |
|
2778 |
|
2779 * unwind-prot.cc (saved_variable::~saved_variable): Don't try to |
|
2780 delete gen_ptr_value here. |
|
2781 |
|
2782 Mon Aug 16 21:34:33 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2783 |
|
2784 * lex.l (next_token_is_sep_op): New function. |
|
2785 (handle_close_brace, maybe_unput_comma): Use it. |
|
2786 (have_continuation): Also handle CRLF here. |
|
2787 |
|
2788 Wed Aug 11 16:06:57 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2789 |
|
2790 * file-io.cc (Ffopen): Make fopen ("filename") work and imply that |
|
2791 MODE = "r". |
|
2792 |
3258
|
2793 Wed Jul 21 15:38:52 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2794 |
3259
|
2795 * help.cc (display_names_from_help_list): Sort names before |
|
2796 listing them. |
|
2797 (print_symbol_type, Ftype): Also handle built-in constants. |
|
2798 (LIST_SYMBOLS): Correct call to symbol_table::name_list. |
|
2799 (simple_help): List constants here too. List constants and |
|
2800 variables before functions, not after. Sort names before listing |
|
2801 them. |
|
2802 |
|
2803 * variables.cc (do_who): Display built-in constants in a separate |
|
2804 section. |
|
2805 |
|
2806 * error.cc (bind_global_error_variable, clear_global_error_variable): |
|
2807 Call bind_builtin_constant, not bind_builtin_variable to set |
|
2808 __error_text__. |
|
2809 * octave.cc (intern_argv): Likewise, for argv and __argv__. |
|
2810 |
|
2811 * defun.cc (install_builtin_constant): Move function guts to |
|
2812 bind_builtin_constant in variables.cc. |
|
2813 * variables.cc (bind_builtin_constant): New function. |
|
2814 |
3258
|
2815 * symtab.cc (symbol_record::define, symbol_record::variable_reference): |
|
2816 Handle constants the same as functions. |
|
2817 (symbol_record::link_to_builtin_variable): New function. |
|
2818 (symbol_record::define_builtin_const): New function. |
|
2819 (symbol_record::define_as_fcn): Delete unused function. |
|
2820 (symbol_record::read_only_error): |
|
2821 Handle constants the same as variables. |
|
2822 * symtab.h (symbol_record::BUILTIN_CONSTANT): New enum value. |
|
2823 (symbol_record::symbol_type): Increase width to 7 bits. |
|
2824 (symbol_record::symbol_def::is_constant): New function. |
|
2825 (symbol_record::symbol_def::is_builtin_constant): New function. |
|
2826 (symbol_record::is_constant): New function. |
|
2827 (symbol_record::is_builtin_constant): New function. |
|
2828 (SYMTAB_ALL_TYPES): Add symbol_record::BUILTIN_CONSTANT. |
|
2829 * variables.cc (link_to_builtin_variable): Delete unused function. |
|
2830 (link_to_builtin_or_function): Handle built-in constants here too. |
|
2831 |
|
2832 * defun.cc (install_builtin_variable): Delete inst_as_fcn arg. |
|
2833 (install_builtin_constant): New function. |
|
2834 (install_builtin_variable_as_function): Delete unused function. |
|
2835 * defun.h (DEFVAR_INTERNAL): Delete inst_as_fcn arg. |
|
2836 (DEFCONST_INTERNAL): New macro. |
|
2837 * defun.h (DEFVAR): Delete inst_as_fcn arg. |
|
2838 (DEFCONST, DEFCONSTX): Define using DEFCONST_INTERNAL instead of |
|
2839 DEFVAR_INTERNAL. |
|
2840 * data.cc, defaults.cc, error.cc, help.cc, input.cc, lex.l, |
|
2841 load-save.cc, oct-hist.cc, oct-procbuf.cc, ov-fcn.h, |
|
2842 ov-usr-fcn.cc, ov.cc, pager.cc, parse.y, pr-output.cc, |
|
2843 pt-assign.cc, pt-decl.cc, pt-mat.cc, pt-plot.cc, pt-stmt.cc, |
|
2844 toplev.cc, variables.cc: |
|
2845 Change all invocations of DEFVAR to match new definition. |
|
2846 |
|
2847 * data.cc (symbols_of_data): Add DEFCONSTs for true and false. |
|
2848 |
3255
|
2849 Thu Jul 15 10:59:42 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2850 |
3258
|
2851 * data.cc (Fis_bool, Fis_complex, Fisempty, Fisnumeric, Fis_list, |
|
2852 Fis_map, Fis_struct): Return bool object. |
|
2853 (Fisreal): New function. |
|
2854 |
|
2855 * ov-str-mat.h (octave_char_matrix_str): Only return true if |
|
2856 Vimplicit_str_to_num_ok is also true. |
|
2857 |
3255
|
2858 * DLD-FUNCTIONS/time.cc (Ftime): Print usage message if any |
|
2859 arguments are supplied. |
|
2860 |
|
2861 * variables.cc (symbol_out_of_date): Call octave_time for time stamps. |
|
2862 |
|
2863 * fn-cache.h (octave_fcn_file_name_cache::timestamp): |
|
2864 Now octave_time object. |
|
2865 |
|
2866 * strftime.c: Move to liboctave directory. |
|
2867 * Makefile.in (DIST_SRC): Delete from list. |
|
2868 |
|
2869 * ov-usr-fcn.h (octave_user_function::t_parsed, |
|
2870 octave_user_function::t_checked): Now octave_time objects. |
|
2871 (octave_user_function::time_parsed, |
|
2872 (octave_user_function::time_checked): |
|
2873 Return value is now octave_time object. |
|
2874 (octave_user_function::mark_fcn_file_up_to_date)): |
|
2875 Arg is now octave_time object. |
|
2876 |
|
2877 * ov-fcn.h (octave_function::mark_fcn_file_up_to_date)): |
|
2878 Arg is now octave_time object. |
|
2879 (octave_function::time_parsed, octave_function::time_checked): |
|
2880 Return value is now octave_time object. |
|
2881 |
|
2882 * input.cc (Vlast_prompt_time): Now an octave_time object. |
|
2883 (octave_gets): Call octave_time::stamp() to set Vlast_prompt_time. |
|
2884 |
|
2885 * DLD-FUNCTIONS/time.cc (mk_tm_map, extract_tm, Ftime, Fgmtime, |
|
2886 Flocaltime, Fmktime, Fstrftime): Use new classes defined in |
|
2887 liboctave/oct-time.cc instead of accessing C functions directly. |
|
2888 |
3252
|
2889 Wed Jul 14 17:38:46 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2890 |
|
2891 * systime.h: Move to liboctave directory. |
|
2892 * Makefile.in (INCLUDES): Delete it from the list |
|
2893 |
|
2894 Tue Jul 13 14:34:57 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2895 |
|
2896 * sighandlers.cc (sigchld_handler): Only wait for processes in |
|
2897 octave_child_list. |
|
2898 * toplev.cc (cmd_status): Delete unused static variable. |
|
2899 (cmd_death_handler): Delete unused function. |
|
2900 (run_command_and_return_output): Don't add cmd_death_handler to |
|
2901 octave_child_list. Simply extract command exit status from |
|
2902 calling close() on the procstream object. |
|
2903 |
3249
|
2904 Mon Jul 12 22:38:50 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2905 |
|
2906 * defun.h (DEFUN_MAPPER): Handle new args, d_b_map and c_b_map. |
|
2907 * defun-int.h (DEFUN_MAPPER_INTERNAL): Likewise. |
|
2908 * mappers.cc (install_mapper_functions): Supply new args to |
|
2909 all uses of DEFUN_MAPPER. |
|
2910 * ov-mapper.cc (octave_mapper::apply): Handle mapper functions |
|
2911 that return bool objects. |
|
2912 * ov-mapper.h (octave_mapper::d_b_mapper, octave_mapper::c_b_mapper): |
|
2913 New typedefs. |
|
2914 (octave_mapper::octave_mapper): Handle new mapper function types. |
|
2915 |
|
2916 * DLD-FUNCTIONS/minmax.cc: Do a better job of handling NaNs. |
|
2917 |
|
2918 Sun Jul 11 13:15:17 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2919 |
|
2920 * pr-output.cc (do_plus_format (ostream&, double)): New function. |
|
2921 (octave_print_internal (ostream&, double, bool)): Use it. |
|
2922 (octave_print_internal (ostream&, const Matrix&, bool, int)): Ditto. |
|
2923 |
|
2924 * pr-output.cc (do_plus_format (ostream&, const Complex&)): |
|
2925 New function. |
|
2926 (octave_print_internal (ostream&, const Complex&, bool)): Use it. |
|
2927 (octave_print_internal (ostream&, const ComplexMatrix&, bool, int)): |
|
2928 Ditto. |
|
2929 |
|
2930 Sun Jun 20 23:04:00 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2931 |
|
2932 * sysdep.cc: Include sys/ioctl.h if available. |
|
2933 |
|
2934 Sat Jun 19 12:07:16 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2935 |
|
2936 * variables.cc (do_who): Make pattern and multiple non-option |
|
2937 arguments work. |
|
2938 |
3246
|
2939 Mon Jun 7 09:54:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2940 |
|
2941 * lex.l (next_token_is_bin_op, next_token_is_postfix_unary_op, |
|
2942 handle_number): Delete yytext arg. Change all callers. |
|
2943 (next_token_is_postfix_unary_op): Check the first character |
|
2944 obtained from yyinput before calling it again. |
|
2945 (next_token_is_bin_op): Do a more thorough check. |
|
2946 (handle_identifier): Also enter token in local symbol table if the |
|
2947 following token is a dot and it looks like a binary operator. |
|
2948 (whitespace_in_literal_matrix): Now static. |
|
2949 |
|
2950 * lex.l: Always use unput, not yyunput. |
|
2951 |
3244
|
2952 Fri May 28 11:02:37 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2953 |
|
2954 * DLD-FUNCTIONS/chol.cc (Fchol): If two output arguments, never |
|
2955 produce error message. |
|
2956 |
3243
|
2957 Thu May 27 18:28:35 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2958 |
|
2959 * DLD-FUNCTIONS/chol.cc (Fchol): Also return info as second output. |
|
2960 |
|
2961 * DLD-FUNCTIONS/minmax.cc (max (const ComplexMatrix&, const |
|
2962 ComplexMatrix&)): Correct test for real columns only. |
|
2963 (min (const ComplexMatrix&, const ComplexMatrix&)): Likewise. |
|
2964 |
|
2965 Wed Apr 14 12:54:25 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2966 |
|
2967 * DLD-FUNCTIONS/dassl.cc (Fdassl): Prevent recursive calls. |
|
2968 * DLD-FUNCTIONS/fsolve.cc (Ffsolve): Likewise. |
|
2969 * DLD-FUNCTIONS/lsode.cc (Flsode): Likewise. |
|
2970 * DLD-FUNCTIONS/quad.cc (Fquad): Likewise. |
|
2971 |
|
2972 * file-io.cc (Fsscanf, Ffscanf): Doc fix. |
|
2973 |
3239
|
2974 Sat Mar 27 11:07:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2975 |
|
2976 * ov.h (octave_value::count): New function. |
|
2977 * symtab.cc (symbol_record::dump_symbol_info): New function. |
|
2978 * symtab.cc (symbol_record::symbol_def::dump_symbol_info): Ditto. |
|
2979 * variables.cc (F__dump_symbol_info__): Ditto. |
|
2980 |
|
2981 * pt-misc.cc (tree_parameter_list::clear): New function. |
|
2982 * ov-usr-fcn.h (octave_user_function::clear_args_passed): Ditto. |
|
2983 * ov-usr-fcn.cc (clear_param_list): New function. |
|
2984 (clear_args_passed): New function. |
|
2985 (octave_user_function::do_index_op): Use them to decrement |
|
2986 reference counts on local variables. |
|
2987 |
3238
|
2988 Fri Mar 26 00:51:53 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2989 |
|
2990 * Makefile.in (libraries): Use the libfoo.a(objects) method of |
|
2991 creating static libs. |
|
2992 |
|
2993 * defaults.cc (symbols_of_defaults): Initialize LOADPATH to |
|
2994 Vload_path, not ":". |
|
2995 |
|
2996 Thu Mar 18 12:09:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2997 |
|
2998 * data.cc (Fisnumeric): Fix typo. |
|
2999 |
|
3000 Thu Mar 4 02:17:04 1999 James Macnicol <jamesm@evans.ee.adfa.oz.au> |
|
3001 |
|
3002 * file-io.cc (Ffread, Ffwrite): Add uint16 and uint32 data types |
|
3003 to doc string. |
|
3004 |
|
3005 Wed Mar 3 11:55:17 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3006 |
|
3007 * lex.l (handle_string): Allow "" to pass through unchanged if |
|
3008 working on a gset command. |
|
3009 |
|
3010 Tue Mar 2 01:36:29 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3011 |
|
3012 * variables.cc (Fexist): If a variable isn't defined, only go on |
|
3013 to look for a global by the same name if we are at the top level. |
|
3014 |
|
3015 Fri Jan 29 02:18:36 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3016 |
|
3017 * version.h (OCTAVE_NAME_AND_VERSION): Say `GNU Octave', not just |
|
3018 Octave. |
|
3019 |
3234
|
3020 Thu Jan 28 21:29:16 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3021 |
|
3022 * toplev.cc (Fcomputer): Use CANONICAL_HOST_TYPE, not TARGET_HOST_TYPE. |
|
3023 (octave_config_info): Likewise. |
|
3024 * version.h: Ditto. |
|
3025 |
|
3026 * sysdep.cc (Fpause): Flush output before getting user input. |
|
3027 |
3233
|
3028 Wed Jan 27 14:18:29 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3029 |
|
3030 * Makefile.in (DEFFUN_PATTERN, DEFVAR_PATTERN): Use egrep again. |
|
3031 Make the patterns work with stupid egreps that don't like empty |
|
3032 elements in alternation patterns. |
|
3033 |
|
3034 Fri Jan 22 04:41:48 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3035 |
|
3036 * load-save.cc (save_ascii_data): Check for string type first, |
|
3037 then range, then the rest. |
|
3038 (save_binary_data): Ditto. |
|
3039 |
|
3040 * pager.cc (more_than_a_screenful): Accept length as second arg. |
|
3041 Handle long lines properly, assuming the terminal wraps long lines. |
|
3042 (octave_pager_buf::do_sync): Accept length of data as second arg. |
|
3043 Use write instead of << to put characters on output stream. |
|
3044 (octave_pager_buf::sync): Don't assume data ends at first NUL. |
|
3045 (octave_diary_buf::sync): Ditto. |
|
3046 |
|
3047 Thu Jan 21 22:15:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3048 |
|
3049 * load-save.cc (save_mat_binary_data): Check for string type |
|
3050 first, then range, then the rest. |
|
3051 |
|
3052 Wed Jan 20 12:01:14 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3053 |
|
3054 * oct-stream.cc (octave_base_stream::do_scanf): Handle short and |
|
3055 long ints correctly. |
|
3056 |
|
3057 Fri Jan 15 13:04:58 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3058 |
|
3059 * parse.y (end_error): Handle case of endswitch too. |
|
3060 |
|
3061 * Makefile.in: Use basic regular expressions and grep instead of |
|
3062 egrep to find files that contain DEFVAR, DEFCONST, or DEFUN. |
|
3063 |
|
3064 Wed Dec 9 14:14:11 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3065 |
|
3066 * Makefile.in (octave): Add $(RDYNAMIC_FLAG) to link command. |
|
3067 |
|
3068 Fri Dec 4 20:26:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3069 |
|
3070 * DLD-FUNCTIONS/time.cc (Fstrftime): Make it work even when not |
|
3071 using the GNU version of strftime, which allows passing NULL for |
|
3072 the buffer to determine the required size of the buffer. |
|
3073 |
3225
|
3074 Wed Dec 2 22:38:40 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3075 |
|
3076 * utils.cc (file_in_loadpath): Expect argc == 2, not 3. |
|
3077 |
|
3078 Tue Nov 24 23:38:19 1998 Eric Norum <eric@skatter.USask.Ca> |
|
3079 |
|
3080 * mkbuiltins: Also strip off leading `./' from file names. |
|
3081 * mkops: Ditto. |
|
3082 |
|
3083 Tue Nov 24 23:24:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3084 |
|
3085 * strftime.c: Surround everything with #ifdef HAVE_STRFTIME / #endif. |
|
3086 |
|
3087 * lex.h (YY_FATAL_ERROR): Call yy_falta_error after |
|
3088 jump_to_top_level to avoid gcc warning. |
|
3089 |
|
3090 Fri Nov 20 13:34:47 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3091 |
|
3092 * ov-bool.h, ov-bool.cc (class octave_bool): Derive from |
|
3093 octave_base_scalar and get common functions via derivation. |
|
3094 * ov-scalar.h, ov-scalar.cc (class octave_scalar): Ditto. |
|
3095 * ov-complex.h, ov-complex.cc (class octave_complex): Ditto. |
|
3096 |
|
3097 * ov-base-scalar.h, ov-base-scalar.cc (class octave_base_scalar): |
|
3098 New files for new class definition. Put common scalar data type |
|
3099 stuff here. |
|
3100 * Makefile.in (OV_INCLUDES, OV_SRC): Add them to the lists. |
|
3101 |
3221
|
3102 Thu Nov 19 14:30:25 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
3225
|
3103 |
3222
|
3104 * dynamic-ld.cc (octave_dynamic_loader::mangle_name): |
|
3105 Prepend underscore here. |
|
3106 (octave_dynamic_loader::load_fcn_from_dot_oct_file): Not here. |
|
3107 |
3221
|
3108 * ov-re-mat.h (octave_matrix_value): Delete experimental code for |
|
3109 handling structure references for things like .rows, .cols, etc. |
|
3110 |
3220
|
3111 Wed Nov 18 01:18:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3112 |
3221
|
3113 * Makefile.in (VAR_FILES): Be more careful about matching. |
|
3114 (DEF_FILES): Likewise. |
|
3115 |
|
3116 * ov-base-mat.h, ov-base-mat.cc, ov-bool-mat.h, ov-bool-mat.cc, |
|
3117 ov-ch-mat.h, ov-ch-mat.cc, ov-cx-mat.h, ov-cx-mat.cc, |
|
3118 ov-re-mat.h, ov-re-mat.cc: Move default definition of all, any, |
|
3119 is_matrix_type, is_numeric_type, valid_as_zero_index, and |
|
3120 do_index_op to base class. |
|
3121 Provide definitions that override the defaults where necessary. |
3220
|
3122 |
|
3123 * mappers.cc: Don't include lo-specfun.h. |
|
3124 |
|
3125 Tue Nov 17 14:35:56 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3126 |
|
3127 * besselj.cc (Fbesselh, Fairy); New functions. |
|
3128 (Fbesselj, Fbessely, Fbesselk, Fbesseli): Update doc strings. |
|
3129 (do_bessel): Handle additional args. |
|
3130 |
|
3131 Fri Nov 13 14:47:11 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3132 |
|
3133 * lex.l (NUMBER): Allow hexadecimal constants. |
|
3134 (looks_like_hex): New function. |
|
3135 (handle_number): Check for hexadecimal constants and convert them |
|
3136 to unsigned integer values. |
|
3137 |
3219
|
3138 Thu Nov 12 11:13:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3139 |
|
3140 * input.cc (gnu_readline): Check for EOF from command_editor::readline. |
|
3141 |
|
3142 * ov-str-mat.h, ov-str-mat.cc (class octave_char_matrix_str): |
|
3143 Get common functions via new derivation scheme. |
|
3144 |
|
3145 * ov-bool-mat.h, ov-bool-mat.cc (class octave_bool_matrix): |
|
3146 Derive from octave_base_matrix and get common functions via derivation. |
|
3147 * ov-ch-mat.h, ov-ch-mat.cc (class octave_char_matrix): Ditto. |
|
3148 * ov-cx-mat.h, ov-cx-mat.cc (class octave_complex_matrix): Ditto. |
|
3149 * ov-re-mat.h, ov-re-mat.cc (class octave_real_matrix): Ditto. |
|
3150 |
|
3151 * ov-base-mat.h, ov-base-mat.cc (class octave_base_matrix): New |
|
3152 files for new class definition. Put common matrix data type |
|
3153 stuff here. |
|
3154 |
|
3155 * ov-list.cc (Fnth): New function. |
|
3156 |
|
3157 * ov-list.cc (octave_list::do_index_op): Allow more complex indexing. |
|
3158 |
|
3159 * oct-obj.cc (octave_value_list::index): New function. |
|
3160 (octave_value_list::octve_value_list (Array<octave_value>)): |
|
3161 New private constructor. |
|
3162 |
|
3163 * ov-list.cc (Fsplice): Fix docstring to match. |
|
3164 * oct-obj.cc (octave_value_list::splice): Allow special case |
|
3165 splice (x, length(x)+1, 0, y) to be equivalent to append (x, y). |
|
3166 |
|
3167 * ov-list.cc (Fappend): If an arg is a list, concatenate the lists |
|
3168 instead of appending arg as a single element. |
|
3169 |
|
3170 Wed Nov 11 14:07:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3171 |
|
3172 * load-save.cc (get_mat_data_input_line): New function. |
|
3173 (get_lines_and_columns): Use it here. |
|
3174 (read_mat_ascii_data): And here and do our own reading instead of |
|
3175 using Matrix::operator<<. |
|
3176 |
|
3177 Tue Nov 10 16:12:25 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3178 |
|
3179 * parse.y (make_constant): Initialize retval to 0. |
|
3180 |
|
3181 * toplev.h (clean_up_and_exit (void)): Delete declaration. |
|
3182 * toplev.cc (do_octave_atexit): Move guts of clean_up_for_exit |
|
3183 here, but ensure that the actions are only executed once. |
|
3184 * octave.cc (main): Don't register cleanup_tmp_files with atexit. |
|
3185 |
|
3186 * ov.h, ov.cc (class octave_value): Use DECLARE_OCTAVE_ALLOCATOR |
|
3187 and DEFINE_OCTAVE_ALLOCATOR for uniform declaration and definition |
|
3188 of allocator functions. Use DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA |
|
3189 and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA for uniform declaration |
|
3190 and definition of type id functions and data. |
|
3191 * ov-usr-fcn.h, ov-usr-fcn.cc (class octave_user_function): Ditto. |
|
3192 * ov-scalar.h, ov-scalar.cc (class octave_scalar): Ditto. |
|
3193 * ov-re-mat.h ov-re-mat.cc (class octave_matrix): Ditto. |
|
3194 * ov-range.h, ov-range.cc (class octave_range): Ditto. |
|
3195 * ov-mapper.h, ov-mapper.cc (class octave_mapper): Ditto. |
|
3196 * ov-list.h, ov-list.cc (class octave_list): Ditto. |
|
3197 * ov-file.h, ov-file.cc (class octave_file): Ditto. |
|
3198 * ov-fcn.h, ov-fcn.cc (class octave_function): Ditto. |
|
3199 * ov-cx-mat.h, ov-cx-mat.cc (class octave_complex_matrix): Ditto. |
|
3200 * ov-complex.h, ov-complex.cc (class octave_complex): Ditto. |
|
3201 * ov-ch-mat.h, ov-ch-mat.cc (octave_char_matrix): Ditto. |
|
3202 * ov-builtin.h, ov-builtin.cc (class octave_builtin): Ditto. |
|
3203 * ov-bool.h, ov-bool.cc (class octave_bool): Ditto. |
|
3204 * ov-bool-mat.h, ov-bool-mat.cc (octave_bool_matrix): Ditto. |
|
3205 |
|
3206 * ov.h (DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA): New macro. |
|
3207 (DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA): Ditto. |
|
3208 |
3215
|
3209 Mon Nov 9 16:12:37 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3210 |
|
3211 * pr-output.cc (octave_print_internal): Reorder default args for |
|
3212 charMatrix version. |
|
3213 (octave_print_internal): New function for boolMatrix. |
|
3214 |
|
3215 * version.h (OCTAVE_STARTUP_MESSAGE): Note that this is a |
|
3216 development release. |
|
3217 |
|
3218 * toplev.cc (do_octave_atexit): Call flush_octave_stdout here. |
|
3219 (clean_up_for_exit): And here. |
|
3220 |
|
3221 Mon Nov 9 15:20:53 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3222 |
|
3223 * input.cc (get_user_input): Check retval.length(), not retval.length. |
|
3224 |
|
3225 Sun Nov 8 19:30:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3226 |
|
3227 * pt-assign.cc (tree_simple_assignment::rvalue): If etype is |
|
3228 asn_eq, don't evaluate ult again because retval is just rhs value. |
|
3229 (tree_multi_assignment::rvalue): Likewise. |
|
3230 |
|
3231 Fri Nov 6 12:14:29 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3232 |
|
3233 * pt-loop.cc (tree_for_command::eval): Move code for string RHS |
|
3234 outside if clause for matrix types. |
|
3235 |
|
3236 * pt-idx.cc: Don't forget to define arg_nm. |
|
3237 Move contstructor here. |
|
3238 * pt-idx.h: From here. |
|
3239 |
|
3240 * data.cc (Fisempty): Also return true for empty strings. |
|
3241 |
3212
|
3242 Wed Nov 4 17:21:41 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3243 |
|
3244 * ov-base.cc (octave_base_value::rows, octave_base_value::columns, |
|
3245 octave_base_value::length): Delete. |
|
3246 * ov-base.h (octave_base_value::rows, octave_base_value::columns, |
|
3247 octave_base_value::length): Define here. All return -1 if not |
|
3248 defined in a derived class. |
|
3249 |
|
3250 * data.cc (Fis_matrix): Also return true if the arg is a range. |
|
3251 |
3209
|
3252 Tue Nov 3 09:40:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3253 |
|
3254 * data.cc (Fis_bool): New function. |
|
3255 Also add alias for islogical. |
|
3256 |
|
3257 * ov.h (octave_value::is_bool_type): New function. |
|
3258 * ov-base.h (octave_base_value::is_bool_type): Likewise. |
|
3259 * ov-bool.h (octave_bool::is_bool_type): Likewise. |
|
3260 * ov-bool-mat.h (octave_bool_matrix::is_bool_type): Likewise. |
|
3261 |
3206
|
3262 Mon Nov 2 13:36:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3263 |
3208
|
3264 * lex.l (handle_close_brace): Also handle case of ']' followed by |
|
3265 other assignment ops (+=, -=, ...). |
|
3266 |
|
3267 * pt-assign.cc (tree_simple_assignment::rvalue): Correctly handle |
|
3268 return value and printing for operators other than `='. |
|
3269 (tree_multi_assignment::rvalue): Likewise. |
|
3270 |
|
3271 * pt-assign.h (tree_multi_assignment::etype): New data member. |
|
3272 * pt-assign.cc (tree_multi_assignment::rvalue): Use it instead of |
|
3273 assuming `='. |
|
3274 (tree_multi_assignment::oper): New function. |
|
3275 * pt-pr-code.cc (tree_print_code::visit_multi_assignment): Use |
|
3276 it instead of always printing `='. |
|
3277 * parse.y (make_assign_op): Pass expression type to |
|
3278 tree_multi_assignment constructor. |
|
3279 |
3206
|
3280 * Makefile.in (stmp-pic): New target. |
|
3281 ($(PICOBJ)): Depend on stmp-pic, not pic. |
|
3282 (clean): Delete stmp-pic. |
|
3283 |
|
3284 Sun Nov 1 23:24:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3285 |
|
3286 * mappers.cc (install_mapper_functions): Add alias for isfinite. |
|
3287 |
|
3288 Sat Oct 31 08:46:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3289 |
|
3290 * data.cc (Fisnumeric): New function. |
|
3291 |
3203
|
3292 Fri Oct 30 08:39:30 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3293 |
3205
|
3294 * oct-lvalue.cc (octave_lvalue::do_unary_op): Make it work for |
|
3295 indexed ops too. |
|
3296 * ov.cc (octave_value::unary_op_to_assign_op): New function. |
|
3297 (octave_value::do_non_const_unary_op): New function for indexed ops. |
|
3298 |
3204
|
3299 * parse.y (LEFTDIV_EQ, ELEFTDIV_EQ): New tokens. |
|
3300 (assign_expr): Add rules for them. |
|
3301 (make_assign_op): Handle them here too. |
|
3302 * lex.l: Recognize them. |
|
3303 * ov.h (octave_value::assign_op): Add ldiv_eq and el_ldiv_eq. |
|
3304 * ov.cc (octave_value::assign_op_as_string): Ditto. |
|
3305 (octave_value::op_eq_to_binary_op): Ditto. |
|
3306 (octave_value::assign): Handle OP= style operators with brute force. |
|
3307 (octave_value::simple_assign): New function. |
|
3308 |
3203
|
3309 * parse.y (matrix): Dont' forget to reset |
|
3310 lexer_flags.looking_at_matrix_or_assign_lhs. |
|
3311 |
|
3312 * oct-lvalue.cc (octave_lvalue::assign): Don't call change |
|
3313 function if error occurs. |
|
3314 (octave_lvalue::do_unary_op): If we have an index, fail with message. |
|
3315 |
3202
|
3316 Thu Oct 29 09:27:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3317 |
3203
|
3318 * ov.cc (do_binary_op): Protect against invalid type conversions. |
|
3319 (try_assignment_with_conversion): Likewise. |
|
3320 (do_unary_op): Likewise. |
|
3321 |
|
3322 * ov.h (OV_UNOP_FN, OV_UNOP_OP, OV_UNOP_FN_OP): New macros. |
|
3323 Use them to define not, uminus, transpose, hermitian functions |
|
3324 and operators ! and -. |
|
3325 (OV_BINOP_FN, OV_BINOP_OP, OV_BINOP_FN_OP): New macros. |
|
3326 Use them to define add, sub, mul, div, pow, ldiv, lshift, rshift, |
|
3327 lt, le, eq, ge, gt, ne, el_mul, el_div, el_pow, el_ldiv, el_and, |
|
3328 el_or, struct_ref, functions and operators <, <=, ==, >=, >, !=, |
|
3329 +, -, *, and /. |
|
3330 |
|
3331 * ops.h (CONVDECLX): New macro. |
|
3332 * ov-base.cc (matrix_conv, complex_matrix_conv, string_conv): |
|
3333 Use it to declare these functions. |
|
3334 |
|
3335 * ops.h (CONVDECL, INSTALL_WIDENOP): |
|
3336 Prefix function name with `oct_conv_'. |
|
3337 (INSTALL_BINOP, BINOPDECL): Prefix function name with `oct_binop_'. |
|
3338 (INSTALL_ASSIGNOP, INSTALL_ASSIGNANYOP, ASSIGNOPDECL): |
|
3339 Prefix function name with `oct_assignop_'. |
|
3340 (UNOPDECL, DEFNCUNOP_METHOD, INSTALL_UNOP, INSTALL_NCUNOP): |
|
3341 Prefix function name with `oct_unop_'. |
|
3342 |
|
3343 * ov-str-mat.cc (default_numeric_conversion_function): |
|
3344 Return 0 if conversion fails. |
|
3345 |
|
3346 * parse.y (make_prefix_op, make_postfix_op): Use |
|
3347 octave_value::unary_op enum. |
|
3348 |
|
3349 * pt-unop.cc (tree_prefix_expression::rvalue): Use new unary_op |
|
3350 functions from octave_value and octave_lvalue classes. |
|
3351 (tree_prefix_expression::rvalue): Likewise. |
|
3352 |
|
3353 * pt-unop.cc (tree_unary_expression::oper): Move here. |
|
3354 (tree_prefix_expression::oper, tree_postfix_expression): From here. |
|
3355 |
|
3356 * pt-unop.h (tree_prefix_expression, tree_postfix_expression): |
|
3357 Delete enums. |
|
3358 (tree_unary_expression): Use octave_value::unary_op enum. |
|
3359 * parse.y (make_prefix_op, make_postfix_op): Likewise. |
|
3360 |
|
3361 * oct-lvalue.h (octave_lvalue::do_unary_op): New function. |
|
3362 (octave_lvalue::increment, octave_lvalue::decrement): Delete. |
|
3363 |
|
3364 * ov-typeinfo.h (octave_value_typeinfo::non_const_unary_ops): |
|
3365 New data member. |
|
3366 * ov-typeinfo.h (octave_value_typeinfo::lookup_non_const_unary_op): |
|
3367 New function. |
|
3368 * ov-typeinfo.cc (octave_value_typeinfo::register_non_const_unary_op): |
|
3369 New function. |
|
3370 (octave_value_typeinfo::do_register_non_const_unary_op): Ditto. |
|
3371 (octave_value_typeinfo::do_lookup_non_const_unary_op): Ditto. |
|
3372 |
|
3373 * ov.cc (octave_value::do_non_const_unary_op): New function. |
|
3374 |
|
3375 * Makefile.in (OP_XSRC): Add op-chm.cc and op-range.cc to the list. |
|
3376 |
|
3377 * OPERATORS/op-str-str.cc: Define string matrix unary operators here. |
|
3378 (install_str_str_ops): Install them here. |
|
3379 * ov-bool-mat.h (octave_bool_matrix::transpose, |
|
3380 octave_bool_matrix_value::hermitian): Delete. |
|
3381 |
|
3382 * OPERATORS/op-chm.cc: New file. Define char matrix unary operators. |
|
3383 (install_chm_ops): Install them here. |
|
3384 * ov-ch-mat.h (octave_char_matrix::transpose, |
|
3385 octave_char_matrix_value::hermitian): Delete. |
|
3386 * ops.cc (install_ops): Call install_chm_ops. |
|
3387 |
|
3388 * OPERATORS/op-bm-bm.cc: Define bool matrix unary operators here. |
|
3389 (install_bm_bm_ops): Install them here. |
|
3390 * ov-bool-mat.h (octave_bool_matrix::transpose, |
|
3391 octave_bool_matrix_value::hermitian): Delete. |
|
3392 |
|
3393 * ov-bool.h (octave_bool::not, octave_bool::uminus, |
|
3394 octave_bool::transpose, octave_bool::hermitian): Delete. |
|
3395 |
|
3396 * OPERATORS/op-cs-cs.cc: Define complex scalar unary operators here. |
|
3397 (install_cs_cs_ops): Install them here. |
|
3398 * ov-complex.h (octave_complex::not, octave_complex::uminus, |
|
3399 octave_complex::transpose, octave_complex::hermitian): Delete. |
|
3400 |
|
3401 * OPERATORS/op-cm-cm.cc: Define complex matrix unary operators here. |
|
3402 (install_cm_cm_ops): Install them here. |
|
3403 * ov-cx-mat.h (octave_complex_matrix::not, |
|
3404 octave_complex_matrix::uminus, octave_complex_matrix::transpose, |
|
3405 octave_complex_matrix::hermitian): Delete. |
|
3406 |
|
3407 * OPERATORS/op-m-m.cc: Define matrix unary operators here. |
|
3408 (install_m_m_ops): Install them here. |
|
3409 * ov-re-mat.h (octave_matrix::not, octave_matrix::uminus, |
|
3410 octave_matrix::transpose, octave_matrix::hermitian): Delete. |
|
3411 |
|
3412 * OPERATORS/op-range.cc: New file. Define range unary operators. |
|
3413 (install_range_ops): Install them here. |
|
3414 * ov-range.h (octave_range::not, octave_range::uminus, |
|
3415 octave_range::transpose, octave_range::hermitian): Delete. |
|
3416 * ops.cc (install_ops): Call install_range_ops. |
|
3417 |
|
3418 * OPERATORS/op-s-s.cc: Define scalar unary operators here. |
|
3419 (install_s_s_ops): Install them here. |
|
3420 * ov-scalar.h (octave_scalar::not, octave_scalar::uminus, |
|
3421 octave_scalar::transpose, octave_scalar::hermitian): Delete. |
|
3422 |
|
3423 * ops.h (INSTALL_UNOP, CAST_UNOP_ARG, UNOPDECL, DEFUNOPX, DEFUNOP, |
|
3424 DEFUNOP_OP, DEFUNOP_FN): New macros. |
|
3425 |
|
3426 * ov.h (unary_op_fcn): New typedef. |
|
3427 (octave_value::unary_op): New enum. |
|
3428 * ov.cc (octave_value::octave_value): New function. |
|
3429 |
|
3430 * ov.h (octave_value::not, octave_value::uminus, |
|
3431 octave_value::transpose, octave_value::hermitian, |
|
3432 octave_value::increment, octave_value::decrement): Delete. |
|
3433 |
|
3434 * ov-base.cc (octave_base_value::not, octave_base_value::uminus, |
|
3435 octave_base_value::transpose, octave_base_value::hermitian, |
|
3436 octave_base_value::increment, octave_base_value::decrement): Delete. |
|
3437 |
|
3438 * ov.cc (gripe_unary_op): New function. |
|
3439 (do_unary_op): New function. |
|
3440 * ov-typeinfo.h (octave_value_typeinfo::unary_ops): |
|
3441 New data member. |
|
3442 * ov-typeinfo.cc (octave_value_info::register_unary_op, |
|
3443 octave_value_info::do_register_unary_op, |
|
3444 octave_value_info::lookup_unary_op, |
|
3445 octave_value_info::do_lookup_unary_op): |
|
3446 New functions. |
|
3447 |
3202
|
3448 * ov-list.cc (Fsplice): Use new octave_value::int_value function here. |
|
3449 (octave_list::do_index_op): Likewise. |
|
3450 (octave_list::assign): Likewise. |
|
3451 * toplev.cc (Fquit): Likewise. |
|
3452 * syscalls.cc (Fwaitpid): Likewise. |
|
3453 (Ffcntl): Likewise. |
|
3454 * file-io.cc (do_fread): Likewise. |
|
3455 (do_fwrite): Likewise. |
|
3456 * data.cc (make_diag): Likewise. |
|
3457 (Fsize): Likewise. |
|
3458 (get_dimensions): Likewise. |
|
3459 (Flinspace): |
|
3460 |
|
3461 * ov-base.cc (octave_base_value::int_value): New function. |
|
3462 (octave_base_value::nint_value): Ditto. |
|
3463 * ov.h (octave_value::int_value): Ditto. |
|
3464 (octave_value::nint_value): Ditto. |
|
3465 |
|
3466 * ov-list.cc (octave_list::assign): Fix off-by-one error. |
|
3467 |
3196
|
3468 Wed Oct 28 11:01:37 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3469 |
3202
|
3470 * load-save.cc (read_mat_ascii_data): Try harder to convert file |
|
3471 name to valid variable name. |
|
3472 |
|
3473 * data.cc (Fisempty, Fis_matrix): New functions. |
|
3474 |
|
3475 * ov-str-mat.h (octave_char_matrix_str::is_matrix_type): New function. |
|
3476 |
3196
|
3477 * OPERATORS/op-list.cc: New file. |
|
3478 * Makefile.in (OP_XSRC): Add it to the list. |
|
3479 |
|
3480 * ov-list.cc (octave_list::assign): New function. |
|
3481 |
|
3482 * ov-typeinfo.h (octave_value_typeinfo::assignany_ops): |
|
3483 New data member. |
|
3484 * ov-typeinfo.cc (octave_value_info::register_assignany_op, |
|
3485 octave_value_info::do_register_assignany_op, |
|
3486 octave_value_info::lookup_assignany_op, |
|
3487 octave_value_info::do_lookup_assignany_op): |
|
3488 New functions. |
|
3489 * ov.cc (octave_value::try_assignment (octave_value::assign_op, |
|
3490 const octave_value_list&, const octave_value&)): If no assignment |
|
3491 operator for particular RHS type exists, try finding one for |
|
3492 generic octave_value as RHS type. |
|
3493 * ops.h (DEFASSIGNANYOP_FN): New macro. |
|
3494 |
|
3495 * ov-list.cc (Fsplice): New function. |
|
3496 * oct-obj.cc (octave_value_list::splice): New function. |
|
3497 |
|
3498 * ov.cc (Vresize_on_range_error): No longer static. |
|
3499 * ov.h (Vresize_on_range_error): Provide extern declaration. |
|
3500 |
|
3501 * oct-procbuf.cc (symbols_of_oct_procbuf): Don't declare static. |
|
3502 |
|
3503 * data.cc (Flength): New function. |
|
3504 * ov.h (octave_value::length): New virtual function. |
|
3505 * ov-base.cc (octave_base_value::length): New function. |
|
3506 (octave_base_value::rows, octave_base_value::columns): Move |
|
3507 definitions here, from ov-base.h. Don't return -1. Instead, |
|
3508 gripe about wrong argument type. |
|
3509 * ov-bool-mat.h (octave_bool_matrix::length): New function. |
|
3510 * ov-bool.h (octave_bool::length): Ditto. |
|
3511 * ov-ch-mat.h (octave_char_matrix::length): Ditto. |
|
3512 * ov-complex.h (octave_complex::length): Ditto. |
|
3513 * ov-cx-mat.h (octave_complex_matrix::length): Ditto. |
|
3514 * ov-list.h (octave_list::length): Ditto. |
|
3515 * ov-range.h (octave_range::length): Ditto. |
|
3516 * ov-re-mat.h (octave_matrix::length): Ditto. |
|
3517 * ov-scalar.h (octave_scalar::length): Ditto. |
|
3518 |
|
3519 Tue Oct 27 22:19:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3520 |
|
3521 * ov-list.cc (octave_list::print_raw): Handle case of empty list. |
|
3522 (octave_list::print_name_tag): Likewise. |
|
3523 |
|
3524 * octave.cc (intern_argv): Built-in variable argv is now a list of |
|
3525 strings instead of a string vector. |
|
3526 Always bind argv, making it an empty list if there are no args. |
|
3527 |
|
3528 Mon Oct 26 08:41:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3529 |
|
3530 * xdiv.cc (mx_leftdiv_conform): Explicitly declare args to be |
|
3531 passed as references to const objects. Fix explicit instantiation |
|
3532 requests to match. |
|
3533 (mx_div_conform): Likewise. |
|
3534 |
|
3535 * pt-unop.h (tree_prefix_expression): Reorder constructor args to |
|
3536 put those with default values last. |
|
3537 (tree_postfix_expression): Likewise. |
|
3538 * parse.y: Change all callers. |
|
3539 |
3192
|
3540 Fri Oct 23 12:07:32 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3541 |
3196
|
3542 * utils.cc (Ffile_in_loadpath): New function. |
|
3543 |
|
3544 * defaults.cc (Vload_path, Vdefault_load_path): Now static. |
|
3545 |
|
3546 * help.cc (simple_help): Use Vload_path_dir_path here instead of |
|
3547 trying to reconstruct it from Vload_path. |
|
3548 * fn-cache.cc (octave_fcn_file_name_cache::do_list): Likewise. |
|
3549 (octave_fcn_file_name_cache::update): Likewise. |
|
3550 |
|
3551 * defaults.cc (octave_loadpath): Construct Vload_path_dir_path |
|
3552 using Vdefault_load_path. |
|
3553 (set_default_path): Likewise. |
|
3554 |
|
3555 * defaults.h, defaults.cc (maybe_add_default_load_path): Delete. |
|
3556 |
3192
|
3557 * defaults.cc (Vdefault_load_path): New static variable. |
|
3558 (set_default_path): Set it. |
|
3559 (maybe_add_default_load_path): Use it. |
|
3560 (symbols_of_defaults): Add DEFCONST for DEFAULT_LOADPATH. |
|
3561 Thanks to Rafael Laboissiere <rafael@icp.inpg.fr>. |
|
3562 |
|
3563 * defaults.cc (set_default_path): If OCTAVE_PATH is set in the |
|
3564 environment, call maybe_add_default_load_path on it. |
|
3565 |
|
3566 Tue Oct 20 20:58:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3567 |
|
3568 * defaults.cc (maybe_add_default_load_path): If LOADPATH contains |
|
3569 an embedded "::", insert the default path there too. |
|
3570 |
3189
|
3571 Fri Oct 16 00:52:15 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3572 |
|
3573 * parse.y (in_matrix_or_assign_lhs): New subroutine for lexical |
|
3574 feedback. |
|
3575 (matrix): Use it. |
|
3576 (assign_lhs): Ditto. |
|
3577 * lex.h (lexical_feedback::looking_at_matrix_or_assign_lhs): New |
|
3578 data member. |
|
3579 * lex.l (handle_identifier): Use it to handle keywords like `cd' |
|
3580 as variables in contexts like [ab, cd] = foo (). |
|
3581 |
|
3582 * ov-str-mat.h |
|
3583 (octave_char_matrix_str::octave_char_matrix_str (char c)): |
|
3584 New constructor. |
|
3585 * ov-ch-mat.h (octave_char_matrix::octave_char_matrix (char c)): |
|
3586 New constructor. |
|
3587 * ov.cc (octave_value::octave_value (char c): New constructor. |
|
3588 |
|
3589 * pt-loop.cc (tree_simple_for_command::eval): Handle case of RHS |
|
3590 as string. |
|
3591 |
|
3592 Thu Oct 15 00:56:47 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3593 |
|
3594 * DLD-FUNCTIONS/rand.cc: Declare Fortran subroutines as returning |
|
3595 int, not int*. |
|
3596 |
|
3597 Wed Oct 14 23:51:31 1998 Georg Thimm <thimm@idiap.ch> |
|
3598 |
|
3599 * load-save.cc (Vcrash_dumps_octave_core): New static variable. |
|
3600 (save_user_variables): Only save variables if |
|
3601 Vcrash_dumps_octave_core is true. |
|
3602 (symbols_of_load_save): Add DEFVAR for it here. |
|
3603 (crash_dumps_octave_core): New function. |
|
3604 * octave.cc (maximum_braindamage): Bind crash_dumps_octave_core to |
|
3605 0.0 here. |
|
3606 |
|
3607 Tue Oct 13 22:05:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3608 |
|
3609 * input.cc (read_readline_init_file): New function. |
|
3610 |
|
3611 Thu Oct 8 13:47:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3612 |
|
3613 * oct-procbuf.h (octave_procbuf::wstatus): New data member. |
|
3614 Initialize in constructors. |
|
3615 (octave_procbuf::wait_status): New member function. |
|
3616 * oct-procbuf.cc (octave_procbuf::sys_close): Use class data |
|
3617 member wstatus, not local variable. |
|
3618 * procstream.cc (procstreambase::close): Don't call sys_close directly. |
|
3619 Get subprocess exit status by calling wait_status for our procbuf. |
|
3620 * pt-plot.cc (close_plot_stream): Send "quit" command to gnuplot |
|
3621 before deleting plot_stream. |
|
3622 |
|
3623 |
|
3624 Thu Oct 1 22:39:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3625 |
|
3626 * data.cc (Fis_complex): New function. |
|
3627 |
3185
|
3628 Fri Sep 25 11:50:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3629 |
|
3630 * load-save.cc (write_header): Rename from write_binary_header. |
|
3631 Also write header for Octave ASCII files. |
|
3632 |
|
3633 * load-save.cc (Fsave): Implement -append option. |
|
3634 |
|
3635 * defaults.cc (Frehash): New function. |
|
3636 |
|
3637 Fri Sep 25 11:50:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3638 |
|
3639 * help.cc (help_from_info): Improve error message in case that |
|
3640 info doesn't work. |
|
3641 |
3180
|
3642 Thu Sep 24 10:48:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3643 |
3185
|
3644 * Makefile.in (DLD_XSRC): Replace qzval.cc with qz.cc |
|
3645 |
|
3646 * DLD-FUNCTIONS/balance.cc: Update from A. S. Hodel |
|
3647 <scotte@eng.auburn.edu>. |
|
3648 |
|
3649 * DLD-FUNCTIONS/qz.cc: New file. |
|
3650 |
|
3651 * DLD-FUNCTIONS/qzval.cc: Delete. |
|
3652 |
3180
|
3653 * parse.y (plot_command1): Don't allow it to be empty. |
|
3654 (plot_command): Handle simple `PLOT' and `PLOT ranges' as special |
|
3655 cases here. |
|
3656 |
|
3657 Wed Sep 23 21:10:08 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3658 |
|
3659 * lex.l: Change <MATRIX>{SNLCMT}*\n{SNLCMT}* pattern |
|
3660 to <MATRIX>{S}*{COMMENT}{SNLCMT}* | <MATRIX>{S}*{NL}{SNLCMT}*. |
|
3661 |
|
3662 Fri Sep 4 10:50:00 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3663 |
|
3664 * file-io.cc (Ffwrite): Fix doc string. |
|
3665 |
|
3666 Wed Sep 2 16:22:23 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3667 |
|
3668 * input.cc (match_sans_spaces): Make it work. |
|
3669 |
|
3670 * toplev.cc (quit): Require nargout == 0. |
|
3671 |
|
3672 * input.cc (get_user_input): Only try matching "exit", "quit", and |
|
3673 "return" if debugging. |
|
3674 |
|
3675 Tue Sep 1 12:50:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3676 |
|
3677 * octave.cc: Use -H as single character equivalent of --no-history. |
|
3678 |
|
3679 Sat Aug 29 12:23:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3680 |
|
3681 * oct-obj.cc (octave_value_list::make_argv): If some values are |
|
3682 string vectors, insert all the elements, not just the first. |
|
3683 |
|
3684 Tue Aug 18 16:39:50 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3685 |
|
3686 * oct-stream.cc (octave_base_stream::do_gets): Accept last line of |
|
3687 file even if it doesn't end in a newline character. |
|
3688 |
|
3689 Tue Aug 18 16:25:49 1998 Mumit Khan <khan@xraylith.wisc.edu> |
|
3690 |
|
3691 * xdiv.cc (mx_leftdiv_conform, mx_div_conform): Instantiate correct |
|
3692 templates. |
|
3693 |
|
3694 Thu Jul 30 00:37:43 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3695 |
|
3696 * pt-loop.cc (tree_for_command::eval): Check for range first. |
|
3697 If error occurs when extracting matrix value, return early. |
|
3698 Don't bother to check for string type. |
|
3699 |
|
3700 * ov-ch-mat.h (octave_char_matrix::is_real_matrix): New function. |
|
3701 |
|
3702 Tue Jun 23 15:09:54 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3703 |
|
3704 * parse.y (clear_current_script_file_name): New function. |
|
3705 (parse_fcn_file): Bind current_script_file_name while script is |
|
3706 executing. Use unwind_protect to clear it once the script is |
|
3707 finished. |
|
3708 |
|
3709 * pt-plot.cc (Fgraw): New function. |
|
3710 |
3178
|
3711 Mon Jun 22 22:13:38 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3712 |
|
3713 * variables.cc (is_valid_function): Provide version that takes |
|
3714 function name as string. |
|
3715 |
|
3716 * parse.y (binary_expr): Fix thinko that resulted in incorrect |
|
3717 evaluation of -x^y. Thanks to Richard Allan Holcombe |
|
3718 <raholcom@unity.ncsu.edu>. |
|
3719 (feval): Don't attempt to copy nonexistent arg names. |
|
3720 |
|
3721 Mon Jun 22 21:35:50 1998 Richard Allan Holcombe <raholcom@unity.ncsu.edu> |
|
3722 |
|
3723 * xpow.cc (xpow): Improve efficiency for matrix^(scalar int) case. |
|
3724 |
|
3725 Thu Jun 4 12:42:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3726 |
|
3727 * ov-usr-fcn.cc (octave_user_function::octave_all_va_args): |
|
3728 If num_args_passed < num_named_args, create zero length list. |
|
3729 |
3176
|
3730 Thu May 14 16:23:15 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3731 |
|
3732 * DLD-FUNCTIONS/getrusage.cc: Include sys/types.h too. |
|
3733 |
|
3734 Mon May 11 00:38:45 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3735 |
|
3736 * pager.cc (Fdiary): Don't forget to set write_to_diary file if |
|
3737 just given a file name. |
|
3738 |
|
3739 * input.cc (octave_gets): Only send new line character to |
|
3740 octave_diary if current_input_line is empty or doesn't already end |
|
3741 with a new line character.. |
|
3742 Don't send input from function files or scripts to octave_diary. |
|
3743 |
3174
|
3744 Sun May 3 19:54:38 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3745 |
|
3746 * lex.l (reset_parser): Also call yyrestart if forced_interactive |
|
3747 is true, but not if input_from_startup_file is true. |
|
3748 |
|
3749 Tue Apr 28 14:06:20 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3750 |
|
3751 * oct-procbuf.cc (Vkluge_procbuf_delay): New static variable. |
|
3752 (kluge_procbuf_delay): New function. |
|
3753 (symbols_of_oct_procbuf): New function. |
|
3754 (octave_procbuf::open): Delay Vkluge_procbuf_delay microseconds |
|
3755 after forking. |
|
3756 |
|
3757 Thu Apr 23 15:41:08 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3758 |
|
3759 * defaults.cc (Vload_path_dir_path): New variable. |
|
3760 * utils.cc (file_in_path): Use it. |
|
3761 |
|
3762 * utils.cc (search_path_for_file): Undo previous change. |
|
3763 (file_in_path): Undo previous change. |
|
3764 * defaults.cc (loadpath): Undo previous change. Tilde expansion |
|
3765 is once again handled correctly by the code in |
|
3766 liboctave/pathsearch.cc. |
|
3767 |
|
3768 Mon Apr 20 21:50:34 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3769 |
|
3770 * data.cc (get_dimensions): Allow zeros ([], 3) to work, for |
|
3771 compatibility with Matlab. |
|
3772 |
|
3773 * dynamic-ld.cc [WITH_DL && ! HAVE_DLFCN_H]: Add declarations for |
|
3774 dlopen, dlerror, dlsym, and dlclose. |
|
3775 |
|
3776 * octave.gperf: Handle __FILE__ and __LINE__. |
|
3777 * lex.l (is_keyword): Likewise. |
|
3778 * Makefile.in (oct-gperf.h): Pass -D option to gperf. |
|
3779 Postprocess output of gperf to convert name of static variable |
|
3780 from lookup to gperf_lookup, to avoid conflict with our function |
|
3781 of the same name defined in variables.cc. |
|
3782 |
3168
|
3783 Sat Apr 18 20:17:10 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3784 |
|
3785 * help.cc (USE_GNU_INFO): Delete uses of this macro. |
|
3786 |
3167
|
3787 Thu Apr 16 01:00:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3788 |
|
3789 * dynamic-ld.cc: Only include dlfcn.h if HAVE_DLFCN_H. |
|
3790 |
3165
|
3791 Wed Apr 15 01:03:05 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3792 |
|
3793 * input.cc (Vlast_prompt_time): New global variable. |
|
3794 (octave_gets): Set it. |
3166
|
3795 * ov-fcn.h (octave_function::time_checked): New virtual function |
|
3796 (octave_function::mark_fcn_file_up_to_date): Ditto. |
3165
|
3797 * ov-usr-fcn.h (octave_user_function::time_checked): New function. |
|
3798 (octave_user_function::mark_fcn_file_up_to_date): Ditto. |
|
3799 (octave_user_function::t_checked): New data member. |
|
3800 * variables.cc (symbol_out_of_date): Only check file time stamp if |
|
3801 a prompt has been printed since the last time check. |
|
3802 |
|
3803 * pt-plot.h, pt-plot.cc (subplot_axes): New class. |
|
3804 (subplot): Handle axes. |
|
3805 (Vgnuplot_command_axes): New static variable. |
|
3806 (gnuplot_command_axes): New function. |
|
3807 (symbols_of_pt_plot): DEFVAR gnuplot_command_axes. |
|
3808 * pt-walk.h (tree_walker::visit_subplot_axes): New virtual function. |
|
3809 * parse.y (plot_options): Handle axes. |
|
3810 * lex.l (plot_axes_token): New function. |
|
3811 (is_keyword): Use it. |
|
3812 (is_plot_keyword): Recognize "axes" and "axis". |
|
3813 * lex.h (class lexical_feedback): New field, in_plot_axes. |
|
3814 (lexical_feedback::init): Reset it. |
|
3815 |
|
3816 Tue Apr 14 23:32:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3817 |
|
3818 * parse.y (parse_fcn_file): New arg, force_script. Change callers. |
|
3819 |
3164
|
3820 Fri Apr 10 11:01:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3821 |
|
3822 * help.cc (type): Also print values of variables. |
|
3823 |
3162
|
3824 Wed Apr 8 01:00:58 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3825 |
3164
|
3826 * pr-output.cc (set_format): Set scale to 1.0 if all elements are |
|
3827 int or inf or nan. |
|
3828 |
3162
|
3829 * parse.y (Vwarn_future_time_stamp): New variable. |
|
3830 (symbols_of_parse): Add DEFVAR for it. |
|
3831 (warn_future_time_stamp): New function. |
|
3832 (frob_function_def): Maybe warn about files with future time stamps. |
|
3833 |
|
3834 Thu Apr 2 20:43:45 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3835 |
|
3836 * pt-arg-list.cc (tree_argument_list::convert_to_const_vector): In |
|
3837 error messages, print element numbers starting with 1, not 0. |
|
3838 |
|
3839 Sat Mar 28 15:25:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3840 |
|
3841 * toplev.cc (clean_up_for_exit): New function. |
|
3842 (clean_up_and_exit): Use it. |
|
3843 * sighandlers.cc (my_friendly_exit): Call it instead of |
|
3844 clean_up_and_exit, then do default action for signal. |
|
3845 |
|
3846 * sighandlers.cc (octave_new_handler): Call my_friendly_exit with |
|
3847 signal set to SIGABRT if it is defined, or -1 otherwise. |
|
3848 |
|
3849 * error.cc (verror): Fix thinko in attempt to skip `error: ' tag |
|
3850 when buffering error messages. |
|
3851 * pt-except.cc (tree_try_catch::eval): Reset buffer_error_messages |
|
3852 here if just discarding unwind_protect frame. |
|
3853 |
|
3854 Wed Mar 18 12:35:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3855 |
|
3856 * xpow.cc (elem_xpow): For real-scalar .^ matrix case, result is |
|
3857 complex only if real-scalar is negative and matrix has some |
|
3858 non-integer values. |
|
3859 |
|
3860 Tue Mar 17 17:47:50 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3861 |
|
3862 * pt-plot.cc (Vgnuplot_command_plot, Vgnuplot_command_replot, |
|
3863 Vgnuplot_command_splot, Vgnuplot_command_using, |
|
3864 Vgnuplot_command_with, Vgnuplot_command_title, |
|
3865 Vgnuplot_command_end): New static variables. |
|
3866 (symbols_of_pt_plot): DEFVAR them. |
|
3867 (gnuplot_command_plot, gnuplot_command_replot, |
|
3868 gnuplot_command_splot, gnuplot_command_using, |
|
3869 gnuplot_command_with, gnuplot_command_title, |
|
3870 gnuplot_command_end): New functions. |
|
3871 (open_plot_stream, send_to_plot_stream, tree_plot_command::eval, |
|
3872 subplot_using::print, subplot_style::print, subplot::print, |
|
3873 do_external_plotter_cd, Fgset, Fgshow): Use them instead of the |
|
3874 GPLOT_CMD_PLOT, GPLOT_CMD_REPLOT, GPLOT_CMD_SPLOT, |
|
3875 GPLOT_CMD_USING, GPLOT_CMD_WITH, GPLOT_CMD_TITLE, and |
|
3876 GPLOT_CMD_END macros. |
|
3877 |
3160
|
3878 Fri Feb 27 12:25:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3879 |
|
3880 * help.cc (additional_help_message): Fix www address. |
|
3881 |
|
3882 Tue Feb 24 00:42:59 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3883 |
|
3884 * help.cc (simple_help): Put additional help message first. |
|
3885 (additional_help_message): Add information about web site and |
|
3886 mailing list. |
|
3887 |
3156
|
3888 Fri Feb 20 00:41:06 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3889 |
|
3890 * pt-plot.cc (GPLOT_CMD_REPLOT): Clear before replot. |
|
3891 |
|
3892 * Makefile.in: Better handling of lib flags for linking. |
|
3893 |
|
3894 Thu Feb 19 21:14:30 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3895 |
|
3896 * pt-decl.cc (Vinitialize_global_values): New static variable. |
|
3897 (initialize_global_variables): New function. |
|
3898 (symbols_of_pt_decl): New function. |
|
3899 DEFVAR Vinitialize_global_values and initialize_global_variables. |
|
3900 (tree_global_command::do_init): If initialize_global_variables is |
|
3901 not true and the variable doesn't have an explicit initializer, don't |
|
3902 initialize it. If we are giving it a default value, use the value |
|
3903 of the variable defualt_global_variable_value. |
|
3904 * octave.cc (maximum_braindamage): Set default_global_variable_value |
|
3905 and initialize_global_variables to Matlab-compatible values. |
|
3906 |
|
3907 Wed Feb 18 04:35:31 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3908 |
|
3909 * DLD-FUNCTIONS/besselj.cc: Rename from bessel.cc. |
|
3910 * Makefile.in (DLD_XSRC): Likewise. |
|
3911 |
|
3912 * syscalls.cc (Fvfork): Delete. |
|
3913 |
|
3914 * oct-procbuf.cc: Just use fork. |
|
3915 |
|
3916 * parse.y (feval): Provide version that takes function name |
|
3917 separate from other args. |
|
3918 * parse.h: Declare it. |
|
3919 |
|
3920 * oct-procbuf.cc (octave_procbuf::open): Move declaration of |
|
3921 child_std_end outside of child scope and declare volatile. |
|
3922 |
|
3923 Mon Feb 16 15:04:28 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3924 |
|
3925 * parse.y: Include cstdio, for SEEK_SET. |
|
3926 |
3153
|
3927 Thu Feb 12 22:07:00 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3928 |
|
3929 * system.c: New file. |
|
3930 * Makefile.in (SOURCES): Add it to the list. |
|
3931 |
3148
|
3932 Fri Feb 6 01:23:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3933 |
|
3934 * oct-stream.cc (octave_base_stream::file_number): Rename from fileno. |
|
3935 Change all uses. |
|
3936 |
|
3937 * fsolve.cc (fsolve_option_table): Add missing & to function names. |
|
3938 |
3145
|
3939 Thu Feb 5 02:27:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3940 |
3147
|
3941 * dirfns.cc (Fls): If first attempt at reading process output |
|
3942 fails, sleep once and try again. |
|
3943 * toplev.cc (run_command_and_return_output): Likewise. |
|
3944 |
|
3945 * oct-procbuf.cc (octave_procbuf::open): Use vfork if it is available. |
|
3946 |
|
3947 * syscalls.cc (Fvfork): New function. |
|
3948 |
3145
|
3949 * ov-bool-mat.cc: Only declare assign function if |
|
3950 CXX_NEW_FRIEND_TEMPLATE_DECL is not defined. |
|
3951 |
|
3952 * ov-base.h, ov-bool-mat.h, ov-bool.h, ov-ch-mat.h, ov-complex.h, |
|
3953 ov-cx-mat.h, ov-range.h, ov-re-mat.h, ov-scalar.h: Handle default |
|
3954 args for *_value functions consistently. |
|
3955 |
|
3956 * symtab.cc (maybe_list_cmp_fcn): Declare args as void*, not |
|
3957 void**, then use X_CAST. |
|
3958 |
|
3959 * OPERATORS/op-s-cm.cc: Include mx-cm-s.h. |
|
3960 |
|
3961 * defun-int.h: Include ov-builtin.h, ov-mapper.h, and symtab.h. |
|
3962 (install_builtin_mapper, install_builtin_function, |
|
3963 install_builtin_variable) Use specific types rather than void * in |
|
3964 declaration. |
|
3965 * defun.cc (install_builtin_mapper, install_builtin_function, |
|
3966 install_builtin_variable): Likewise. Eliminate casts. |
|
3967 |
|
3968 * load-save.cc (read_binary_data, read_mat_file_header, |
|
3969 save_binary_data): Use X_CAST, not static_cast. |
|
3970 * unwind-prot.h (unwind_protect::save_ptr): Likewise. |
|
3971 * Map.cc (goodCHptr, index_to_CHptr, CHptr_to_index): Likewise. |
|
3972 * dynamic-ld.cc (octave_dlopen_dynamic_loder::resolve_reference): |
|
3973 Likewise. |
|
3974 |
|
3975 * pt-mat.cc (tm_const::operator bool ()): |
|
3976 (tm_row_const::operator bool ()): Likewise. |
|
3977 * oct-stream.cc (printf_value_cache::operator bool ()): Likewise. |
|
3978 (scanf_format_list::operator bool ()): Likewise. |
|
3979 (printf_format_list::operator bool ()): Likewise. |
|
3980 (octave_stream::operator bool ()): Likewise. |
|
3981 |
|
3982 Wed Feb 4 13:08:29 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3983 |
|
3984 * DLD-FUNCTIONS/minmax.cc: Include cmath, not oct-math.h. |
|
3985 |
|
3986 * syscalls.cc (Fdup2): Convert stream to actual system file id. |
|
3987 |
|
3988 * oct-stream.cc (octave_base_stream::fileno, octave_stream::fileno): |
|
3989 New functions. |
|
3990 |
3141
|
3991 Tue Feb 3 00:24:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3992 |
|
3993 * defaults.cc (exec_path): Append Vbin_dir to std_path. |
|
3994 |
|
3995 * octave.cc (initialize_pathsearch): Set TEXMFDBS, not TEXMF. |
|
3996 Look for OCTAVE_DB_PATH in environment. |
|
3997 Simplify using Vdata_dir and Vlibexec_dir. |
|
3998 |
|
3999 * defaults.h.in (Vdata_dir, Vlibexecdir): Declare new vars. |
|
4000 defaults.cc: Define them. |
|
4001 (set_default_data_dir, set_default_libexecdir): New functions. |
|
4002 (install_defaults): Call them. |
|
4003 |
|
4004 * defaults.h.in (OCTAVE_LIBEXECDIR): Define. |
|
4005 |
|
4006 Mon Feb 2 02:43:16 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4007 |
|
4008 * Makefile.in (install, uninstall): Use $(octlibdir), not $(libdir). |
|
4009 Use mk-libdir-link. |
|
4010 |
|
4011 * defaults.h.in (OCTAVE_OCTLIBDIR): Substitute value. |
|
4012 (Vlib_dir): Delete declaration. |
|
4013 * defaults.cc (Vlib_dir): Delete. |
|
4014 (set_default_lib_dir): Delete. |
|
4015 (install_defaults): Don't call set_default_lib_dir. |
|
4016 (set_default_info_prog): If oct_info_prog is empty, set default to |
|
4017 "info" -- we expect it to be somewhere in the user's path. |
|
4018 |
|
4019 * defun.h (DEFCONST, DEFCONSTX): Eliminate inst_as_fcn and chg_fcn |
|
4020 args. Always pass true for inst_as_fcn and 0 for chg_fcn to |
|
4021 DEFVAR when creating built-in values like `e' or `stderr' that can |
|
4022 be redefined. Change all uses. |
|
4023 |
|
4024 * help.cc (Ftype): Handle script files too. |
|
4025 (Fwhich): Likewise. |
|
4026 |
3136
|
4027 Sat Jan 31 00:00:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4028 |
|
4029 * ov-ch-mat.cc (octave_char_matrix::is_true): Make it work. |
|
4030 * ov-str-mat.h, ov-str-mat.cc (octave_char_matrix_str::is_true): |
|
4031 Delete. |
|
4032 |
|
4033 * load-save.cc (read_ascii_data): Allow strings of length 0. |
|
4034 If we don't find data on the first call, fail with error message. |
|
4035 (do_load): Pass count of items read to read_ascii_data. |
|
4036 Allow `load foo xyz' to work when foo contains only numbers. |
|
4037 |
|
4038 Fri Jan 30 23:46:42 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4039 |
|
4040 * ov-str-mat.h (octave_char_matrix_str::all): Delete. |
|
4041 (octave_char_matrix_str::any): Delete. |
|
4042 * ov-ch-mat.h (octave_char_matrix::all, octave_char_matrix::any): |
|
4043 Call charMatrix::all, charMatrix::any. |
|
4044 |
|
4045 Thu Jan 29 16:25:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4046 |
|
4047 * load-save.cc (read_mat_binary_data): Handle third digit of MOPT |
|
4048 as flag indicating row or column major ordering. |
|
4049 |
3131
|
4050 Wed Jan 28 00:18:17 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4051 |
|
4052 * DLD-FUNCTIONS/dassl.cc (lsode_option_table): |
|
4053 Add missing & to function names. |
|
4054 * DLD-FUNCTIONS/lsode.cc (lsode_option_table): Likewise. |
|
4055 * DLD-FUNCTIONS/quad.cc (quad_option_table): Likewise. |
|
4056 |
|
4057 * Makefile.in (oct-gperf.h): Add -G option to gperf. |
|
4058 |
|
4059 * load-save.cc (get_save_type): Add `UL' and `L' suffixes to large |
|
4060 constant values. For LS_INT, use <= and >= for comparison. |
|
4061 |
|
4062 Mon Jan 26 13:17:59 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4063 |
|
4064 * ov-usr-fcn.cc (Vmax_recursion_depth): New static variable. |
|
4065 (max_recursion_depth): New fucnction |
|
4066 (symbols_of_ov_usr_fcn): DEFVAR max_recursion_depth. |
|
4067 (octave_user_function::do_index_op): Check Vmax_recursion_depth. |
|
4068 |
3130
|
4069 Thu Jan 22 13:45:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4070 |
|
4071 * dynamic-ld.cc (make_dynamic_loader): Fix typo. |
|
4072 |
|
4073 Tue Jan 20 17:02:19 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4074 |
|
4075 * variables.cc (Fexist): If local symbol is undefined, check |
|
4076 global table. |
|
4077 |
|
4078 * pr-output.cc (pr_max_internal): Initial value for result is |
|
4079 -DBL_MAX, not DBL_MIN. |
|
4080 |
3125
|
4081 Thu Jan 8 11:54:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4082 |
|
4083 * xpow.cc (elem_xpow): If second arg of pow is complex, make sure |
|
4084 first arg is also complex. |
|
4085 |
|
4086 * symtab.cc (symbol_table::rename): Properly insert new item at |
|
4087 the front of the list to avoid losing the rest of the items. |
|
4088 |
|
4089 Thu Dec 11 23:30:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4090 |
|
4091 * variables.cc (Fclear): Increment index to skip -x arg. |
|
4092 |
3124
|
4093 Tue Dec 9 02:45:35 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4094 |
|
4095 * Makefile.in (INCLUDES): Don't forget Pix.h. |
|
4096 |
|
4097 * BaseSLList.cc: Don't include nonstandard libg++ header files. |
|
4098 |
3119
|
4099 Sun Nov 30 14:58:56 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4100 |
3124
|
4101 * pr-output.cc: Include cmath, not oct-math. |
|
4102 * sysdep.cc: Likewise. |
|
4103 |
3119
|
4104 * DLD-FUNCTIONS/bessel.cc: New file. |
|
4105 * Makefile.in (DLD_XSRC): Add it to the list. |
|
4106 |
3113
|
4107 Thu Nov 27 23:28:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4108 |
|
4109 * lex.l (handle_string): Constructor for string class takes |
|
4110 (size_t, char) args, not (char, size_t). |
|
4111 |
3111
|
4112 Wed Nov 26 00:39:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4113 |
|
4114 * Makefile.in (OCTAVE_LIBS): Include $(SPECIAL_MATH_LIB) just |
|
4115 ahead of -lcruft. |
|
4116 |
3110
|
4117 Thu Nov 20 15:16:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4118 |
|
4119 * octave.cc (maximum_braindamage): Bind implicit_num_to_str_ok to 1. |
|
4120 * pt-mat.cc (Vimplicit_num_to_str_ok): New static variable. |
|
4121 (implicit_num_to_str_ok): New function. |
|
4122 (symbols_of_pt_mat): DEFVAR implicit_num_to_str_ok. |
|
4123 (tm_row_const::some_str): New data member. |
|
4124 (tm_row_const::some_strings_p): New function. |
|
4125 (tm_row_const::init): Set some_str. |
|
4126 (tm_const::some_str): New data member. |
|
4127 (tm_const::some_strings_p): New function. |
|
4128 (tm_const::init): Set some_str. |
|
4129 (tree_matrix::eval): If Vimplicit_num_to_str_ok is true and some |
|
4130 of the elements are strings, force a string conversion before |
|
4131 returning. |
|
4132 |
|
4133 * parse.y (fold, finish_colon_expression, finish_matrix): |
|
4134 If an error occurs, return the original expression. |
|
4135 Use unwind_protect to restore error_state. |
|
4136 |
|
4137 * ov-ch-mat.h (octave_char_matrix::convert_to_str): Result is |
|
4138 char_matrix_str, not just char_matrix. |
|
4139 |
3107
|
4140 Wed Nov 19 02:05:40 1997 Mumit Khan <khan@dhaka.xraylith.wisc.edu> |
|
4141 |
|
4142 * DLD-FUNCTIONS/filter.cc: Don't include extern template decls if |
3109
|
4143 CXX_NEW_FRIEND_TEMPLATE_DECL is defined. |
3107
|
4144 * ov-cx-mat.cc: Likewise. |
|
4145 * ov-re-mat.cc: Likewise. |
|
4146 * ov-str-mat.cc: Likewise. |
|
4147 |
|
4148 * ov-cx-mat.h (octave_complex_matrix::decrement, |
|
4149 octave_complex_matrix): Use explicit Complex constructor. |
|
4150 |
|
4151 Wed Nov 19 00:08:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4152 |
|
4153 * pt-decl.cc (tree_global_command::do_init): Initialize global |
|
4154 values to `[]'. Only perform explicit initialization once. |
|
4155 |
3103
|
4156 Tue Nov 18 04:27:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4157 |
3105
|
4158 * pr-output.cc (Vfixed_point_format): New variable. |
|
4159 (fixed_point_format): New fucntion. |
|
4160 (symbols_of_pr_output): Add DEFVAR for fixed_point_format. |
|
4161 (set_real_matrix_format): Handle fixed point format |
|
4162 (set_complex_matrix_format): Handle fixed point format |
|
4163 (set_format): New arg, scale in Matrix, ComplexMatrix, Range versions. |
|
4164 (pr_scale_header): New function. |
|
4165 (octave_print_internal): Handle fixed point format in Matrix, |
|
4166 ComplexMatrix, and Range versions. |
|
4167 * octave.cc (maximum_braindamage): Set fixed_point_format to 1.0. |
|
4168 |
3103
|
4169 * utils.cc (do_string_escapes): Move here, from lex.l. |
|
4170 Arg is now const string& instead of char*. |
|
4171 Return new string object instead of modifying arg in place. |
|
4172 (Fdo_string_escapes): New function. |
|
4173 * lex.l (handle_string): Use new version of do_string_escapes. |
3105
|
4174 |
|
4175 * lex.l (Vbackslash_escapes): Delete. |
|
4176 (backslash_escapes): Delete. |
|
4177 (do_string_escapes): Undo previous change. |
|
4178 (eat_whitespace, eat_continuation): Undo previous change. |
|
4179 (handle_string): Undo previous change. |
|
4180 (symbols_of_lex): Undo previous change. |
|
4181 * octave.cc (maximum_braindamage): Undo previous change. |
3103
|
4182 |
3096
|
4183 Fri Nov 14 01:53:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4184 |
3100
|
4185 * parse.y (eval_string (const string&, bool, int&, int)): No |
|
4186 longer static. |
|
4187 * parse.h: Provide declaration. |
|
4188 * input.cc (get_user_input (const octave_value_list&, bool, int)): |
|
4189 New arg, nargout. Pass it to eval_string. |
|
4190 (keyboard): Pass nargout = 0 to get_user_input. |
|
4191 (input): Pass nargout to get_user_input. |
|
4192 |
3098
|
4193 * input.cc (get_user_input (const octave_value_list&, bool)): |
3100
|
4194 Return octave_value_list() if user enters `quit', `exit', or `return'. |
3098
|
4195 If debugging, let eval_string handle the printing chores and |
|
4196 reset error_state before asking for more input. |
|
4197 |
|
4198 * input.cc (Fkeyboard): Unconditionally turn on history here. |
|
4199 |
3096
|
4200 * lex.l (have_continuation, have_ellipsis_continuation): Declare |
|
4201 arg as bool, not int. Change callers. |
|
4202 |
|
4203 * lex.l (Vbackslash_escapes): New static variable. |
|
4204 (backslash_escapes): New function. |
|
4205 (do_string_escapes): Return immediately if ! Vbackslash_escapes. |
|
4206 (eat_whitespace, eat_continuation): Only call have_continuation if |
|
4207 Vbackslash_escapes. |
|
4208 (handle_string): Backslash is only special if Vbackslash_escapes. |
|
4209 (symbols_of_lex): Add DEFVAR for backslash_escapes. |
|
4210 * octave.cc (maximum_braindamage): Set backslash_escapes to 0. |
|
4211 |
3095
|
4212 Thu Nov 13 16:20:40 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4213 |
3096
|
4214 * variables.cc (Fexist): Also return 2 if NAME is a regular file |
|
4215 somewhere in the LOADPATH. |
|
4216 |
3095
|
4217 * data.cc (sumsq): Fix doc string. |
|
4218 |
|
4219 * parse.y (Fsource): Call parse_fcn_file, not parse_and_execute. |
|
4220 |
3092
|
4221 Tue Oct 7 16:51:01 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4222 |
|
4223 * defun-int.h (DEFINE_FUN_INSTALLER_FUN): Set installed to true |
|
4224 after installing the function. |
|
4225 |
3088
|
4226 Thu Sep 25 10:17:26 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4227 |
|
4228 * DLD-FUNCTIONS/filter.cc (Ffilter): Return second output value |
|
4229 even when called with only 3 arguments. |
|
4230 |
3086
|
4231 Mon Sep 22 16:44:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4232 |
|
4233 * DLD-FUNCTIONS/rand.cc (do_rand): Print error if first of two |
|
4234 args is a string but doesn't match "seed". |
3088
|
4235 (Frand, Frandn): Fix doc string. |
3086
|
4236 |
3081
|
4237 Mon Aug 25 10:42:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4238 |
|
4239 * input.cc (get_user_input): Return an empty string if the user |
|
4240 just types RET. |
|
4241 |
3079
|
4242 Thu Jul 31 22:59:04 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4243 |
|
4244 * lex.l <TEXT_FCN>: Ensure that we handle words that begin with |
|
4245 single or double quotes as strings. |
|
4246 |
3074
|
4247 Thu Jul 17 13:06:48 1997 Klaus Gebhardt <gebhardt@crunch.ikp.physik.th-darmstadt.de> |
|
4248 |
|
4249 * DLD-FUNCTIONS/rand.cc (Frand): Use F77_XFCN to call getsd, |
|
4250 setsd, setall, setcgn, dgenunf, and dgennor since they can call |
|
4251 XSTOPX. |
|
4252 |
3072
|
4253 Mon Jul 14 12:54:23 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4254 |
|
4255 * dynamic-ld.cc (octave_dynamic_loader::load_fcn_from_dot_oct_file): |
|
4256 If first attempt to load function fails, prepend and underscore |
|
4257 and try again. |
|
4258 |
|
4259 * Makefile.in (install-inc): If defaults.h, oct-conf.h, or |
|
4260 oct-gperf.h don't exist in the current directory, look in $(srcdir). |
|
4261 |
3068
|
4262 Mon Jul 7 21:14:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4263 |
|
4264 * DLD-FUNCTIONS/qr.cc (Fqr): Correctly handle nargout == 0. |
|
4265 |
3067
|
4266 Wed Jul 2 16:47:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4267 |
|
4268 * matherr.c: New file. Move matherr function here. |
|
4269 * sysdep.cc: From here. |
|
4270 * Makefile.in (DIST_SRC): Add matherr.c to the list. |
|
4271 |
|
4272 * error.cc (handle_message): Avoid bug in g++ snapshot. |
|
4273 |
3065
|
4274 Thu Jun 26 22:04:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4275 |
|
4276 * utils.cc (file_in_path): Add default load path to PATH arg if |
|
4277 it begins or ends with a colon. |
|
4278 |
3060
|
4279 Wed Jun 25 13:31:06 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4280 |
|
4281 * oct-lvalue.h (octave_lvalue::struct_elt_ref): Ensure val is unique. |
|
4282 |
|
4283 Fri Jun 20 12:33:35 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4284 |
|
4285 * toplev.cc (cmd_death_handler): New function. |
|
4286 (run_command_and_return_output): Insert pid of command in |
|
4287 octave_child_list along with pointer to cmd_death_handler so we |
|
4288 can get the exit status without having to block SIGCHLD. |
|
4289 (cleanup_iprocstream): Remove pid of command from octave_child_list. |
|
4290 |
3053
|
4291 Sun Jun 15 16:11:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4292 |
3054
|
4293 * OPERATORS/op-cs-s.cc (ldiv): Doh, v1 is complex, v2 is real. |
|
4294 |
3053
|
4295 * Makefile.in (DISTFILES): Add mkops to the list. |
|
4296 (dist): Correctly link files in DLD-FUNCTIONS, OPERATORS, and |
|
4297 TEMPLATE-INST subdirectories. |
|
4298 |
3040
|
4299 Fri Jun 6 04:30:57 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4300 |
3042
|
4301 * DLD-FUNCTIONS/npsol.cc, DLD-FUNCTIONS/qpsol.cc, |
|
4302 DLD-FUNCTIONS/fsqp.cc: Delete. |
|
4303 * Makefile.in (DLD_XSRC): Remove them from the list. |
|
4304 |
3040
|
4305 * utils.cc (search_path_for_file): New arg, do_tilde_expansion. |
|
4306 If TRUE, perform tilde expansion on path before searching. |
|
4307 (file_in_path): Call search_path_for_file with do_tilde_expansion |
|
4308 set to false, since we've already performed tilde expansion on the |
|
4309 load path. |
|
4310 |
|
4311 * defaults.cc (loadpath): Perform tilde expansion here. |
|
4312 |
3029
|
4313 Thu Jun 5 01:42:39 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4314 |
3034
|
4315 * Makefile.in: Make building of static library optional. |
3036
|
4316 (liboctave.$(SHLEXT_VER)): Add $(SONAME_FLAGS) to command. |
3034
|
4317 |
3033
|
4318 * dynamic-ld.cc (octave_shl_load_dynamic_loader::resolve_reference): |
|
4319 Call shl_findsym with type set to TYPE_UNDEFINED. |
|
4320 |
3029
|
4321 * Makefile.in (stamp-picdir): Delete. |
|
4322 (pic): New target. Don't worry so much about creating pic |
|
4323 directory only when it is really needed. |
|
4324 (stamp-interp): Delete. |
|
4325 (libraries): New target. Depend on shared library directly. |
|
4326 |
3024
|
4327 Wed Jun 4 00:09:42 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4328 |
|
4329 * octave.cc (main): Call dir_path::set_program_name here. |
|
4330 |
3021
|
4331 Tue Jun 3 16:47:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4332 |
3022
|
4333 * variables.cc (symbol_out_of_date): Make it work again. |
|
4334 |
3021
|
4335 * parse.y (parse_and_execute): Move here from toplev.cc |
|
4336 (default_eval_print_flag): Likewise. |
|
4337 (safe_fclose): Likewise. |
|
4338 (eval_string): Likewise. |
|
4339 (Fsource): Likewise. |
|
4340 (Ffeval): Likewise. |
|
4341 (feval): Likewise. |
|
4342 (Feval): Likewise. |
|
4343 (symbols_of_parse): Define default_eval_print_flag here instead of |
|
4344 in varaibles.cc. |
|
4345 (looks_like_octave_copyright): Move here from variables.cc |
|
4346 (gobble_leading_whitespace): Likeiwse. |
|
4347 (is_function_file): Likewise. |
|
4348 (restore_input_stream): Likewise. |
|
4349 (parse_fcn_file): Likewise. |
|
4350 (load_fcn_from_file): Likewise. |
|
4351 (get_help_from_file): Likewise. |
|
4352 |
|
4353 * toplev.cc (syms_of_toplev): Define argv, program_name, and |
|
4354 program_invocation_name here instead of in variables.cc. |
|
4355 |
|
4356 * parse.h (line_editing): Move here from toplev.h. Now bool, not int. |
|
4357 (reading_startup_message_printed) Likewise. |
|
4358 (input_from_startup_file): Likewise. |
|
4359 (input_from_command_line_file): Likewise. |
|
4360 |
|
4361 * load-save.cc: Use bool instead of int where appropriate. |
|
4362 |
|
4363 * input.h (enum echo_state): Move here from variables.h. |
|
4364 (Vecho_executing_commands): Likewise. Now bool, not int. |
|
4365 * input.cc (echo_executing_commands): Move here from variables.cc. |
|
4366 (symbols_of_input): Define echo_executing_commands here instead of |
|
4367 in variables.cc. |
|
4368 |
|
4369 * octave.cc (program_invocation_name): Don't define. |
|
4370 (intern_argv): Don't set program_invocation_name here. |
|
4371 (main): Call octave_env::set_program_name here, not in intern_argv. |
|
4372 |
|
4373 * toplev.cc (quitting_gracefully): Move here from octave.h and |
|
4374 make static bool instead of extern int. |
|
4375 |
|
4376 * error.cc (bind_global_error_variable, clear_global_error_variable): |
|
4377 Move here from variables.cc. |
|
4378 (symbols_of_error): Define error_text here instead of in variables.cc. |
|
4379 |
|
4380 * pager.cc (write_to_diary_file): Now bool, not int. |
|
4381 (really_flush_to_pager): Likewise. |
|
4382 (flushing_to_pager): Likewise. |
|
4383 * sighandlers.h (can_interrupt): Likewise. |
|
4384 * error.h (buffer_error_messages): Likewise. |
|
4385 * oct-hist.h (input_from_tmp_history_file, Vsaving_history): Likewise. |
|
4386 * input.h (forced_interactive): Likewise. |
|
4387 (get_input_from_eval_string): Likeiwse. |
|
4388 (reading_script_file): Likeiwse. |
|
4389 (reading_fcn_file): Likeiwse. |
|
4390 (interactive): Likewise. |
|
4391 |
|
4392 * unwind-prot.cc (saved_variable::saved_variable (bool *, bool)): |
|
4393 Set type_tag to boolean, not int. |
|
4394 |
3016
|
4395 Mon Jun 2 00:40:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4396 |
|
4397 * variables.h (Octave_builtin_fcn): Delete typedef. |
|
4398 |
|
4399 * help.cc (make_name_list): Move here from variables.cc. |
|
4400 (keyword_help, names): Now static. |
|
4401 (struct help_list): Move declaration here from help.h. |
|
4402 |
|
4403 * oct-hist.cc (Vhistory_file, Vhistory_size, Vsaving_history): |
|
4404 Move here from variables.cc. |
|
4405 (symbols_of_oct_hist): New function. |
|
4406 |
|
4407 * version.h: Protect against multiple inclusion. |
|
4408 |
|
4409 * defun.cc (check_version): New function. |
|
4410 * defun-int.h (DEFINE_FUN_INSTALLER_FUN): Use it. |
|
4411 |
|
4412 * help.h, help.cc (additional_help_message): Now extern. |
|
4413 (operator_help): Now static. |
|
4414 |
|
4415 * defun.cc (print_usage): Move here from help.cc |
|
4416 * DLD-FUNCTIONS/*.cc, data.cc, dirfns.cc, file-io.cc, input.cc, |
|
4417 load-save.cc, octave.cc, ov-list.cc, ov-typeinfo.cc, |
|
4418 ov-usr-fcn.cc, pager.cc, pr-output.cc, pt-plot.cc, strfns.cc, |
|
4419 syscalls.cc, sysdep.cc, utils.cc, toplev.cc: |
|
4420 Don't include help.h. |
|
4421 |
|
4422 * TEMPLATE-INST/Array-sym.cc: New file. |
|
4423 |
|
4424 * load-save.cc (do_load): Don't use ostream::form. |
|
4425 * pr-output.cc: Likewise, at least where it is easy to do so. |
|
4426 * oct-stream.cc: Ditto. |
|
4427 |
|
4428 * symtab.h (symbol_record::symbol_def::rows): New function. |
|
4429 (symbol_record::symbol_def::columns): Ditto. |
|
4430 (symbol_record::symbol_def::type_name): Ditto. |
|
4431 (symbol_record::rows): Ditto |
|
4432 (symbol_record::columns): Ditto |
|
4433 (symbol_record::type_name): Ditto |
|
4434 |
|
4435 * symtab.h, symtab.cc (symbol_record::hides_fcn): New function. |
|
4436 (symbol_record::hides_builtin): Ditto. |
|
4437 (symbol_record::print_symbol_info_line): Ditto. |
|
4438 (symbol_table::long_list): Delete. |
|
4439 (symbol_table::symbol_list): New function. |
|
4440 (symbol_table::maybe_list): Delete argc arg. |
|
4441 (symbol_table::name_list): Rename from symbol_table::list. |
|
4442 Change all callers. |
|
4443 |
|
4444 * symtab.h, symtab.cc (class symbol_record_info): Delete. |
|
4445 |
|
4446 * symtab.cc (matches_patterns): Use vector form of glob_match. |
|
4447 |
|
4448 Sun Jun 1 14:04:26 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4449 |
|
4450 * pt-check.h, pt-check.cc: New files, for semantic checking of |
|
4451 parse trees. |
|
4452 |
|
4453 * symtab.h (class symbol_def): Now nested in symbol_record class. |
|
4454 (enum TYPE): Move from symbol_def to symbol record class. Change |
|
4455 all uses. |
|
4456 |
|
4457 * symtab.h, symtab.cc (symbol_table::maybe_list): New function, |
|
4458 from variables.cc. Change all uses. |
|
4459 |
|
4460 * pt-idx.h (tree_identifier::lvalue_ok): New function. |
|
4461 * pt-id.h (tree_index_expression::lvalue_ok): Likewise. |
|
4462 * pt-indir.h (tree_indirect_ref::lvalue_ok): Likewise. |
|
4463 |
|
4464 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_oct_obj): Delete. |
|
4465 * pt-walk.h (tree_walker::visit_oct_obj): Delete declaration. |
|
4466 |
|
4467 * lex.h (class lexical_feedback): Delete maybe_screwed_again. |
|
4468 * lex.l (lexical_feedback::init): Don't set it. |
|
4469 |
|
4470 Fri May 30 16:07:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4471 |
|
4472 * mappers.cc: Include <cfloat> here. |
|
4473 |
|
4474 Tue May 27 10:08:43 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4475 |
|
4476 * toplev.cc (eval_string): Don't index tmp if it is empty. |
|
4477 |
|
4478 Sat May 24 00:18:41 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4479 |
|
4480 * load-save.cc (valid_identifier): Move here and make static. |
|
4481 * symtab.h, symtab.cc (valid_identifier): Delete declaration and |
|
4482 definition. |
|
4483 |
|
4484 Fri May 23 22:54:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4485 |
|
4486 * symtab.h (symbol_def::symbol_def): Use initializer list instead |
|
4487 of calling init_state. |
|
4488 (symbol_def::init_state): Delete. |
|
4489 |
|
4490 * symtab.cc (symbol_table::print_stats): New function. |
|
4491 * variables.cc (F__dump_symtab_info__): New function. |
|
4492 |
|
4493 * symtab.h, symtab.cc (symbol_table::hash): Return masked value. |
|
4494 (symbol_table::table_size): New data member. |
|
4495 (symbol_table::symbol_table): Set size of table in constructor. |
|
4496 (HASH_TABLE_SIZE): Replace uses with table_size. |
|
4497 (HASH_MASK): Delete. |
|
4498 * variables.cc (initialize_symbol_tables): Set top-level and |
|
4499 global symbol table sizes here. |
|
4500 |
2994
|
4501 Thu May 22 13:32:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4502 |
|
4503 * dynamic-ld.cc (octave_shl_load_dynamic_loader::resolve_reference): |
|
4504 Call shl_findsym with type set to TYPE_PROCEDURE. Pass the |
|
4505 address of the pointer we want to define. |
|
4506 |
2993
|
4507 Wed May 21 16:30:25 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4508 |
|
4509 * DLD-FUNCTIONS/time.cc (extract_tm): Avoid memory leak in dealing |
|
4510 with time zone. |
|
4511 |
|
4512 * Makefile.in (install-in): Use new mk-includedir-link macro. |
|
4513 (install-lib): Install in $octlibdir. Use new mk-libdir-link macro. |
|
4514 |
|
4515 Tue May 20 01:24:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4516 |
|
4517 * ov-list.cc (Flist): Rename from Fmake_list. |
|
4518 |
|
4519 Mon May 19 14:45:58 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4520 |
|
4521 * octave.cc (maximum_braindamage): Set default_eval_print_flag to 0. |
|
4522 |
|
4523 Sat May 17 16:32:23 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4524 |
|
4525 * defaults.cc (set_default_editor): Default is now Emacs, not vi. |
|
4526 |
2984
|
4527 Fri May 16 00:07:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4528 |
2991
|
4529 * pt-idx.cc (tree_index_expression::name): New function. |
|
4530 |
|
4531 * pt.cc (tree::str_print_code): New file, new convenience function. |
|
4532 * pt-arg-list.cc (tree_argument_list::get_arg_names): Use it. |
|
4533 * pt-assign.cc (tree_simple_assignment::rvalue): Likewise. |
|
4534 (tree_multi_assignment::rvalue): Likewise. |
|
4535 |
2990
|
4536 * pt-colon.h (tree_colon_expression::save_base): New data memmber. |
|
4537 (tree_colon_expression::preserve_base): New function. |
|
4538 * parse.y (finish_colon_expression): When converting to a simple |
|
4539 expression, be sure to delete the original colon expression but |
|
4540 not the base value. |
|
4541 |
|
4542 * pt-mat.cc (tree_matrix::~tree_matrix): Actually do something. |
|
4543 |
2987
|
4544 * pt-all.h: New file. |
|
4545 * parse.y, lex.l, pt-pr-code.cc: Use it. |
|
4546 |
|
4547 * pt.h: Rename from pt-base.h. |
|
4548 |
|
4549 * All parse tree classes: Add private copy constructors and |
|
4550 assignment operators to prevent copying. |
|
4551 |
|
4552 * pt-base.cc: Delete. |
|
4553 |
2985
|
4554 * unwind-prot.h, unwind-prot.cc: Make a bit more object-oriented. |
|
4555 Change all uses of unwind_protect stuff to match. |
|
4556 |
|
4557 * pt-jump.h, pt-jump.cc (breaking, continuing, returning): |
|
4558 Make these flags static members of the corresponding class. |
|
4559 Change all uses. |
|
4560 |
2984
|
4561 * pt-assign.cc (tree_simple_assignment_expression::eval, |
|
4562 tree_multi_assignment_expression::eval): Clear lvalue index here. |
|
4563 |
|
4564 * oct-lvalue.cc (octave_lvalue::assign): Don't clear index here. |
|
4565 * oct-lvalue.h (octave_lvalue::clear_index): New function. |
|
4566 (octave_lvalue::set_index): Rename from octave_lvalue::index. |
|
4567 Change all callers. |
|
4568 |
2976
|
4569 Thu May 15 11:48:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4570 |
2983
|
4571 * pt-select.h, pt-select.cc (class tree_if_command_list, |
|
4572 class tree_if_clause, class tree_switch_case_list, |
|
4573 class tree_switch_case): Move here from pt-misc.h, pt-misc.cc. |
|
4574 * pt-decl.h, pt-decl.cc (class tree_decl_init_list, |
|
4575 class tree_decl_elt): Move here from pt-mist.h, pt-misc.cc |
|
4576 |
|
4577 * pt-arg-list.h, pt-stmt.h: New files, extracted from pt-misc.h. |
|
4578 * pt-arg-list.cc, pt-stmt.cc: New files, extracted from pt-misc.cc. |
|
4579 |
|
4580 * pt-decl.h, pt-except.h, pt-jump.h, pt-loop.h, pt-select.h: |
|
4581 New files, extraced from pt-cmd.h. |
|
4582 * pt-decl.cc, pt-except.cc, pt-jump.cc, pt-loop.cc, pt-select.cc: |
|
4583 New files, extraced from pt-cmd.cc. |
|
4584 |
2980
|
4585 * pt-unop.h, pt-binop.h, pt-colon.h, pt-idx.h, pt-assign.h: |
|
4586 New files, extracted from pt-exp.h |
|
4587 * pt-unop.cc, pt-binop.cc, pt-colon.cc, pt-idx.cc, pt-assign.cc: |
|
4588 New files, extracted from pt-exp.cc |
|
4589 * pt-exp.h, pt-exp.cc: Rename from pt-exp-base.h, pt-exp-base.cc. |
|
4590 |
2979
|
4591 * oct-lvalue.h: Rename from oct-var-ref.h. Rename class from |
|
4592 octave_variable_reference to octave_lvalue. Change all uses. |
|
4593 * oct-lvalue.cc: Rename from oct-var-ref.cc. |
|
4594 |
2978
|
4595 * variables.cc (bind_ans): Only bind ans and print result if value |
|
4596 is defined. |
|
4597 |
2976
|
4598 * defun.cc: New file. Move functions for installing objects in |
|
4599 the symbol table here from variables.cc. |
|
4600 |
|
4601 * oct-obj.h, oct-obj.cc: Add custom allocator, fwiw. |
|
4602 |
|
4603 * toplev.cc (main_loop): Correctly increment command number. |
|
4604 |
|
4605 * TEMPLATE-INST/SLList-tm.cc: Don't instantiate lists of pointers |
|
4606 to tree_matrix_row objects. |
|
4607 * TEMPLATE-INST/SLList-misc.cc: Do instantiate lists of pointers |
|
4608 to tree_argument_list objects. |
|
4609 |
|
4610 * DLD-FUNCTIONS/dassl.cc: Update to use new octave_function |
|
4611 interface to user-supplied functions. |
|
4612 * DLD-FUNCTIONS/fsolve.cc: Likewise. |
|
4613 * DLD-FUNCTIONS/lsode.cc: Likewise. |
|
4614 * DLD-FUNCTIONS/npsol.cc: Likewise. |
|
4615 * DLD-FUNCTIONS/quad.cc: Likewise. |
|
4616 |
|
4617 * dynamic-ld.h, dynamic-ld.cc (builtin_fcn_installer typedef): |
|
4618 Rename from builtin_fcn. |
|
4619 (octave_dynamic_loader::load_fcn_from_dot_oct_file): |
|
4620 Simplify by using new installer function defined by DEFUN_DLD. |
|
4621 |
|
4622 * defun-dld.h (DEFUN_DLD): Use DEFINE_FUN_INSTALLER_FUN instead of |
|
4623 DEFINE_FUN_STRUCT_FUN. |
|
4624 * defun.h (DEFUN_MAPPER): Use DEFUN_MAPPER_INTERNAL. |
|
4625 * defun-int.h (DEFVAR_INTERNAL): Rename from DEFVAR_INT and move |
|
4626 here from defun.h. Change all uses. |
|
4627 (DEFUN_MAPPER_INTERNAL): New macro. |
|
4628 (DEFINE_FUN_INSTALLER_FUN): New macro to define function that the |
|
4629 dynamic loader calls to do all the work of installing a new function. |
|
4630 (DEFINE_FUN_STRUCT_FUN): Delete. |
|
4631 |
|
4632 * parse.y: Rewrite to handle more general expressions. |
|
4633 * lex.l: Corresponding changes. |
|
4634 |
|
4635 * pt-walk.h, pt-pr-code.h, pt-pr-code.cc: Cope with new parse tree |
|
4636 object structure. |
|
4637 |
|
4638 * pt-misc.cc (class tree_for_command): Split into |
|
4639 tree_simple_for_command and tree_complex_for_command classes. |
|
4640 |
|
4641 * pt-misc.h, pt-misc.cc (tree_statement::eval): Handle identifier |
|
4642 lookup and printing and binding ans here. |
|
4643 (tree_statement_list::eval): Simplify. |
|
4644 (tree_argument_list::all_elements_are_constant): New function. |
|
4645 (class tree_decl_elt): Now contains id and expr, not an assignment |
|
4646 expression. |
|
4647 |
|
4648 * pt-exp-base.h pt-exp.h pt-id.h pt-indir.h pt-mat.h pt-const.h, |
|
4649 pt-exp-base.cc pt-exp.cc pt-id.cc pt-indir.cc pt-mat.cc pt-const.cc: |
|
4650 Replace eval functions with rvalue and lvalue functions. |
|
4651 Change all uses. |
|
4652 (lvalue_ok, rvalue_ok): New functions, for future compile-time |
|
4653 semantic checks. |
|
4654 |
|
4655 * oct-var-ref.h (is_defined, is_map): New functions. |
|
4656 |
|
4657 * pt-exp.h (class tree_oct_obj): Delete. |
|
4658 |
|
4659 * variables.cc (extract_function, is_valid_function): Return |
|
4660 pointer to octave_function, not octave_symbol. |
|
4661 (link_to_global_variable): Rewrite. Handle errors in |
|
4662 symbol_record::mark_as_linked_to_global. |
|
4663 |
|
4664 * symtab.h, symtab.cc (class symbol_def, class symbol_record): |
|
4665 Symbols are now stored as octave_value objects only. |
|
4666 |
|
4667 * ov.cc (install_types): Register function types here. |
|
4668 * ov-fcn.h, ov-fcn.cc, ov-builtin.h, ov-builtin.cc, ov-mapper.h, |
|
4669 ov-mapper.cc, ov-usr-fcn.h, ov-usr-fcn.cc: New classes for |
|
4670 functions as values. |
|
4671 * ov.h (class octave_value): Don't derive from octave_symbol. |
|
4672 * oct-fcn.h, oct-fcn.cc, oct-builtin.h, oct-builtin.cc, |
|
4673 oct-mapper.h, oct-mapper.cc, oct-usr-fcn.h, oct-usr-fcn.cc, |
|
4674 oct-sym.h, oct-sym.cc: Delete. |
|
4675 |
2963
|
4676 Sun May 11 17:51:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4677 |
|
4678 * help.cc (Ftype): Make it work again for functions. |
|
4679 |
|
4680 * pt-pr-code.cc (tree_print_code::print_parens): New function. |
|
4681 Use it in other tree_print_code functions to handle printing all |
|
4682 the parens that we found when parsing the expression, not just one |
|
4683 pair. |
|
4684 * pt-exp-base.h (tree_expression::paren_count): Rename from |
|
4685 is_in_parens. |
|
4686 * parse.y (maybe_warn_assign_as_truth_value): Use new name. |
|
4687 |
|
4688 * parse.y (constant): New non-terminal. |
|
4689 (simple_expr1): Use it. |
|
4690 |
|
4691 * parse.y (make_unary_op): Delete. |
|
4692 (simple_expr1): Where appropriate, use make_prefix_op and |
|
4693 make_postfix_op instead of make_unary_op. Allow increment and |
|
4694 decrement ops to work on expressions, not just identifiers. |
|
4695 (make_prefix_op, make_postfix_op): Arg is expression, not identifier. |
|
4696 Handle old unary_op cases too. |
|
4697 (fold (tree_unary_expression *)): Delete. |
|
4698 * pt-exp.h, pt-exp.cc (tree_prefix_expression::eval): Handle unary |
|
4699 minus and not here. |
|
4700 (tree_postfix_expression::eval): Likewise, for transpose and hermitian. |
|
4701 (class tree_prefix_expression, class tree_postfix_expression): |
|
4702 Derive from tree_unary_expression. Delete identifier member. |
|
4703 Delete ident member function. |
|
4704 (tree_unary_expression): Don't handle evaluation here. |
|
4705 * pt-exp-base.h (mark_in_parens): No longer virtual. Return this. |
|
4706 (reference): New virtual function. |
|
4707 (class tree_expression): Don't handle expression type here. |
|
4708 * pt-mvr-base.h (tree_multi_val_ret::tree_multi_val_ret): Likewise. |
|
4709 * pt-mvr.h, pt-mvr.cc (tree_multi_assignment_expression): Likewise. |
|
4710 * pt-walk.h (visit_unary_expression): Delete declaration. |
|
4711 * pt-pr-code.h, pt-pr-code.cc (visit_unary_expression): Delete. |
|
4712 (visit_prefix_expression): Use operand(), not ident(). |
|
4713 new, visit_postfix_expression): |
|
4714 * pt-id.h, pt-id.cc (increment, decrement): Delete. |
|
4715 |
|
4716 * pt-misc.cc (tree_parameter_list::define_from_arg_vector): Get a |
|
4717 reference to each element and use the assignment operator instead |
|
4718 of tree_identifier::define. |
|
4719 * pt-id.h, pt-id.cc (tree_identifier::define): Delete versions |
|
4720 that take octave_value and octave_symbol args. |
|
4721 |
|
4722 Sat May 10 23:32:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4723 |
|
4724 * pt-indir.h, pt-indir.cc (tree_indirect_reference::value): Delete. |
|
4725 |
|
4726 * oct-var-ref.cc (octave_variable_ref::assign): Clear idx after |
|
4727 assignment. |
|
4728 |
2976
|
4729 * octave_value classes: Add is_constant, is_function, and |
|
4730 function_value functions. |
|
4731 |
2963
|
4732 * ov.h, ov.cc (assign): Return void, not reference to octave_value. |
|
4733 (do_index_op): Rename, from index. |
|
4734 (do_struct_elt_index_op): Rename, from struct_elt_val. |
|
4735 Add version that accepts index arg. |
|
4736 Change all uses and derived classes to match. |
|
4737 * pt-const.h (index): Delete. |
|
4738 * oct-var-ref.h, oct-var-ref.cc (value): Handle indexed structure |
|
4739 ops here too. |
|
4740 |
2949
|
4741 Fri May 9 07:40:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4742 |
2958
|
4743 * pt-exp.cc (print_rhs_assign_val, symbols_of_pt_exp): New functions. |
|
4744 (Vprint_rhs_assign_val): New static variable. |
|
4745 (tree_simple_assignment_expression::eval): Use it to optionally |
|
4746 allow the rhs (which is the result) of an assignment to be printed |
|
4747 instead of the left. |
|
4748 |
2955
|
4749 * pt-exp.cc (tree_simple_assignment_expression::eval): Use new |
|
4750 octave_variabl_reference::index function to handle indexing. |
|
4751 |
|
4752 * oct-var-ref.h, oct-var-ref.cc (idx): New data member. |
|
4753 (octave_variable_reference::index): Set it. |
|
4754 (octave_variable_reference::assign): Handle indexing here. |
|
4755 Delete version of this function htat takes index arg. |
|
4756 |
|
4757 * variables.h (struct builtin_varaible): Delete. |
|
4758 * variables.cc (install_builtin_variable): Take all elts of |
|
4759 builtin_variable struct directly. |
|
4760 * defun.h (DEFVAR_INT): Call install_builtin_variable directly. |
|
4761 |
|
4762 * symtab.h, defun-int.h: Don't include variables.h. |
|
4763 |
|
4764 * symtab.h (symbol_record::sv_function): Move typedef here. |
|
4765 * variables.h: From here. |
|
4766 |
|
4767 * oct-var-ref.h, oct-var-ref.cc: New files for |
|
4768 octave_variable_reference class, extracted from variables.h and |
|
4769 variables.cc |
2956
|
4770 * Makefile.in: Add them to the appropriate lists. |
2955
|
4771 |
|
4772 * oct-obj.h (octave_value_list::empty): New function. |
|
4773 |
2949
|
4774 * variables.h (class octave_variable_reference): Rewrite to work |
|
4775 as a proxy class to store a pointer to octave_value and, |
|
4776 optionally, the change function to call and the name of the |
|
4777 structure element we are referencing. Handle assignment, |
|
4778 increment, decrement, and value operations. |
|
4779 |
2956
|
4780 Thu May 8 23:40:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4781 |
2949
|
4782 * ov-re-mat.h, ov-re-mat.cc (struct_elt_ref, struct_elt_val, |
|
4783 assign_struct_elt): Provide functions for looking up and setting |
|
4784 matrix dimensions. |
|
4785 |
|
4786 * symtab.cc (symbol_record::define): Don't call sv_fcn here. |
|
4787 Don't save and restore value here. |
|
4788 (symbol_record::define_builtin_var): Do call sv_fcn here. |
|
4789 (symbol_record::variable_reference): Don't make value unique here. |
|
4790 Return pointer to sv_fcn in octave_variable_reference. |
|
4791 |
|
4792 * pt-misc.cc (tree_parameter_list::initialize_undefined_elements): |
|
4793 Simplify. |
|
4794 |
|
4795 * pt-id.h, pt-id.cc (tree_identifier::reference): Return |
|
4796 octave_variable_reference, not octave_value&. |
|
4797 * symtab.h, symtab.cc (symbol_record::variable_reference): Ditto. |
|
4798 * pt-indir.h, pt-indir.cc (tree_indirect_ref::reference): Ditto. |
|
4799 Simplify too. |
|
4800 |
|
4801 * pt-const.h (tree_constant::reference, tree_constant::value, |
|
4802 tree_constant::assign): Delete unnecessary functions. |
|
4803 * pt-id.h, pt-id.cc (tree_identifier::assign): Ditto. |
|
4804 |
|
4805 * pt-cmd.cc (tree_for_command::do_for_loop_once): Simplify. |
|
4806 |
|
4807 * ov.h, ov.cc, ov-base.h, ov-base.cc, ov-struct.h, ov-struct.cc |
|
4808 (struct_elt_ref): New arg, octave_value* parent. |
|
4809 Allow deferred lookup. Return octave_variable_reference, not |
|
4810 octave_value&. |
|
4811 |
|
4812 * ov.h, ov.cc, ov-re-mat.h, ov-re-mat.cc (assign_struct_elt): |
|
4813 New virtual functions. |
|
4814 |
|
4815 * ov.h, ov.cc (Vresize_on_range_error): Now static. |
|
4816 |
|
4817 * pt-mvr.cc (tree_index_expression::eval): Delete redundant check |
|
4818 of error_state. |
|
4819 |
2944
|
4820 Wed May 7 21:17:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4821 |
|
4822 * input.cc (generate_completion): Rename from command_generator. |
|
4823 Use string objects instead of char*. |
|
4824 (generate_possible_completions): Let qsort also make matches unique. |
|
4825 (initialize_command_input): Register generate_completion with the |
|
4826 command_editor class. |
|
4827 (completion_matches): Simplify using generate_completion. |
|
4828 |
|
4829 * pt-pr-code.cc (tree_print_code::visit_constant): For val, call |
|
4830 print_raw, not print. |
|
4831 |
|
4832 * oct-usr-fcn.h (octave_user_function::argn_sr): New data member. |
|
4833 (octave_user_function::install_automatic_vars): Rename from |
|
4834 install_nargin_and_nargout. |
|
4835 (octave_user_function::bind_automatic_vars): Rename from |
|
4836 bind_nargin_and_nargout. |
|
4837 * oct-usr-fcn.cc (octave_user_function::eval): Extract arg names |
|
4838 from args vector and bind them to argn. |
|
4839 * oct-obj.h (octave_value_list::names): New data member. |
|
4840 * oct-obj.cc (octave_value_list::stash_name_tags): New function. |
|
4841 (octave_value_list::name_tags): Ditto. |
|
4842 * pt-const.h, pt-const.cc (tree_constant::print_raw): New function. |
|
4843 * pt-misc.h, pt-misc.cc (tree_argument_list::get_arg_names): |
|
4844 New function. |
|
4845 * pt-mvr.h, pt-mvr.cc (class index_expression): Cache arg names. |
|
4846 * toplev.cc (feval): Now static. Handle arg names. |
|
4847 |
|
4848 * mkops: Cope with moving files defining operators to OPERATORS |
|
4849 subdirectory. |
|
4850 |
2937
|
4851 Tue May 6 00:48:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4852 |
|
4853 * DLD-FUNCTIONS/getgrent.cc: Use new octave_group class. |
|
4854 * DLD-FUNCTIONS/getpwent.cc: Use new octave_passwd class. |
|
4855 |
|
4856 * syscalls.cc: Simplify by using new functions defined in |
|
4857 liboctave/oct-syscalls.cc. |
|
4858 |
|
4859 * file-io.cc (Ftmpnam): Accept DIR and PREFIX args. |
|
4860 |
2929
|
4861 Mon May 5 00:54:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4862 |
2932
|
4863 * ov-str-mat.cc (octave_char_matrix_str::print_name_tag): Print |
|
4864 empty strings on one line. |
|
4865 |
2929
|
4866 * DLD-FUNCTIONS, OPERATORS, and TEMPLATE-INST: New subdirectories. |
|
4867 Move appropriate files to new directories. |
|
4868 * Makefile.in: Add DLD-FUNCTIONS, OPERATORS, and TEMPLATE-INST |
|
4869 directories to VPATH. Fix rules to work with new directory |
|
4870 structure. |
|
4871 |
2927
|
4872 Sun May 4 22:40:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4873 |
|
4874 * input.cc (initialize_command_input): Rename from |
|
4875 initialize_readline. |
|
4876 (gnu_readline, octave_gets, get_user_input): Simplify, return |
|
4877 string, not char *. |
|
4878 |
|
4879 * Many of other files: Miscellaneous changes to go along with the |
|
4880 changes described in the liboctave/ChangeLog for May 4. More code |
|
4881 moved from here to liboctave. |
|
4882 |
|
4883 Fri May 2 19:50:33 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4884 |
|
4885 * pathlen.h: Move to ../liboctave. |
|
4886 |
2921
|
4887 Thu May 1 21:50:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4888 |
|
4889 * variables.cc (get_struct_elts): New fucntion. |
|
4890 (looks_like_struct, generate_struct_completions): Move here from |
|
4891 input.cc, rewrite, and make work again. |
|
4892 |
2916
|
4893 Wed Apr 30 00:24:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4894 |
|
4895 * ov-base.h, ov-bool-mat.cc, ov-bool-mat.h, ov-bool.cc, ov-bool.h, |
|
4896 ov-ch-mat.cc, ov-ch-mat.h, ov-complex.cc, ov-complex.h, |
|
4897 ov-cx-mat.cc, ov-cx-mat.h, ov-file.cc, ov-file.h, ov-list.cc, |
|
4898 ov-range.cc, ov-range.h, ov-re-mat.cc, ov-re-mat.h, ov-scalar.cc, |
|
4899 ov-scalar.h, ov-str-mat.cc, ov-struct.cc, ov.h (scalar_value): |
|
4900 New function. Same as double_value, but name is consistent with |
|
4901 octave_scalar class. |
|
4902 |
|
4903 * op-fil-b.cc, op-fil-cm.cc, op-fil-lis.cc, op-fil-rec.cc, |
|
4904 op-fil-str.cc, op-fil-bm.cc, op-fil-cs.cc, op-fil-m.cc, |
|
4905 op-fil-s.cc: New files. |
|
4906 |
|
4907 * ops.h (ASSIGNOPDECL, DEFASSIGNOP, DEFASSIGNOP_FN, CONVDECL, |
|
4908 DEFCONV, BINOPDECL, DEFBINOPX, DEFBINOP, DEFBINOP_OP, DEFBINOP_FN, |
|
4909 BINOP_NONCONFORMANT): New macros. |
|
4910 * op-b-b.cc, op-bm-bm.cc, op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, |
|
4911 op-cm-s.cc, op-cs-cm.cc, op-cs-cs.cc, op-cs-m.cc, op-cs-s.cc, |
|
4912 op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, op-s-cm.cc, |
|
4913 op-s-cs.cc, op-s-m.cc, op-s-s.cc, op-str-str.cc: Use them. |
|
4914 |
|
4915 * Makefile.in (octave): Also depend on ops.o. |
|
4916 |
|
4917 * builtins.h: Delete. |
|
4918 * octave.cc: Add extern declaration here. |
|
4919 |
|
4920 * mappers.h: Delete. |
|
4921 * Makefile.in (INCLUDES): Delete from list. |
|
4922 * mkbuiltins: Add extern declaration in builtins.cc. |
|
4923 |
|
4924 * mkops: New file. |
|
4925 * ops.cc: Delete. |
|
4926 * Makefile.in (SOURCES): Delete from the list. |
|
4927 (ops.cc): New target. |
|
4928 (OP_SOURCES): New list. Move all op-*.cc files here from SOURCES. |
|
4929 Add $(OP_SOURCES) to SOURCES list. |
|
4930 |
|
4931 * variables.cc (symbols_of_variables): No longer static. |
|
4932 * ov.cc (symbols_of_ov): Rename from symbols_of_value. |
|
4933 |
|
4934 * ov-base.h: Delete declaration for install_base_type_conversions. |
|
4935 * op-b-b.h, op-bm-bm.h, op-cm-cm.h, op-cm-cs.h, op-cm-m.h, |
|
4936 op-cm-s.h, op-cs-cm.h, op-cs-cs.h, op-cs-m.h, op-cs-s.h, |
|
4937 op-m-cm.h, op-m-cs.h, op-m-m.h, op-m-s.h, op-s-cm.h, op-s-cs.h, |
|
4938 op-s-m.h, op-s-s.h, op-str-str.h: Delete. |
|
4939 * Makefile.in (INCLUDES): Delete them from the list. |
|
4940 |
|
4941 Tue Apr 29 22:27:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4942 |
|
4943 * variables.h, variables.cc (install_builtin_variables): Delete. |
|
4944 * mkbuiltins: Also generate install_builtin_variables function. |
|
4945 * Makefile.in: Fix rule to call mkbuiltins with correct args. |
|
4946 (clean): Also delete def-files and var-files. |
|
4947 * defaults.h.in, dirfns.h, error.h, file-io.h, help.h, input.h, |
|
4948 lex.h, load-save.h, oct-usr-fcn.h, pager.h, parse.h, pr-output.cc, |
|
4949 pr-output.h, pt-mat.h, pt-misc.h, pt-plot.h, toplev.h: |
|
4950 Delete declarations of symbols_of_* functions. |
|
4951 * data.h, syscalls.h: Delete. |
|
4952 |
|
4953 * pr-output.cc (octave_print_internal): Leave printing of final |
|
4954 new line up to the caller. |
|
4955 |
|
4956 * ov.h, ov.cc (reset_indent_level, increment_indent_level, |
|
4957 decrement_indent_level, newline, indent, reset, |
|
4958 curr_print_indent_level, beginning_of_line): |
|
4959 New functions and static data to manage indent level for printing. |
|
4960 (print_as_scalar): Delete. |
|
4961 (print, print_with_name): Always require stream arg. |
|
4962 Change all callers. |
|
4963 |
|
4964 * oct-stream.h (octave_stream::input_stream): Make publicly available. |
|
4965 (octave_stream::output_stream): Likewise. |
|
4966 |
|
4967 * ov-base.h, ov-base.cc, ov.h, ov.cc, ov-file.h ov-base.h |
|
4968 (is_file, stream_value, stream_number): New functions. |
|
4969 * ov-file.h, ov-file.cc: New files for value class to manage files. |
|
4970 * file-io.cc (symbols_of_file_io): Define stdin, stdout, and |
|
4971 stderr as octve_file objects, not just integers. |
|
4972 (Ffopen, Fpopen): Return octave_file objects, not integer file ids. |
|
4973 * syscalls.cc (Fpipe): Likewise. |
|
4974 * oct-stream.h, oct-stream.cc (octave_stream_list::insert): |
|
4975 Return octave_file object, not integer file id. |
|
4976 |
|
4977 * ov-base.cc, ov-bool-mat.cc, ov-bool.cc, ov-ch-mat.cc, |
|
4978 ov-complex.cc, ov-cx-mat.cc, ov-file.cc, ov-list.cc, ov-range.cc, |
|
4979 ov-re-mat.cc, ov-scalar.cc, ov-str-mat.cc, ov-struct.cc, ov.cc |
|
4980 (print_name_tag, print_raw): New functions. |
|
4981 |
|
4982 * help.cc (Ftype): Don't cast symbol definition to tree_constant *. |
|
4983 |
|
4984 * variables.cc (link_to_global_variable): Don't try to define |
|
4985 symbol with tree_constant objects. |
|
4986 (bind_ans): Call symbol_record::define directly and then |
|
4987 octave_value::print_with_name instead of creating a temporary |
|
4988 assignment expression. |
|
4989 |
|
4990 * pt-pr-code.cc (tree_print_code::indent): Don't use ostream::form. |
|
4991 |
|
4992 * pt-exp-base.h, pt-exp.h, pt-exp.cc (oper): Return string, not |
|
4993 char *. Change all where necessary. |
|
4994 |
|
4995 Mon Apr 28 16:33:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4996 |
|
4997 * ov.h (octave_value binary_op enum): Add lshift and rshift. |
|
4998 (octave_value assign_op enum): Add lshift_eq and rshift_eq. |
|
4999 * ov.cc (assign_op_as_string, binary_op_as_string): Include them. |
|
5000 * parse.y (LSHIFT_EQ RSHIFT_EQ LSHIFT RSHIFT): New tokens. |
|
5001 Add them to the precedence list. |
|
5002 (simple_expr): Add new operators. |
|
5003 (make_assign_op, make_binary_op): Handle new operators. |
|
5004 * lex.l: Recognize new operators. |
|
5005 |
|
5006 * lex.l: Recognize them. |
|
5007 |
|
5008 Sun Apr 27 20:17:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2898
|
5009 |
|
5010 * pt-misc.cc (Vsilent_functions, silent_functions): |
|
5011 Move here from oct-usr-fcn.cc. |
|
5012 (symbols_of_pt_misc): New function. DEFVAR silent_functions. |
|
5013 (tree_statement_list::eval): Handle Vsilent_functions here instead |
|
5014 of in octave_user_function::eval. |
|
5015 (tree_statement::eval): New functions. |
|
5016 (tree_statement_list::eval): Use them. |
|
5017 Change print flag arg to silent flag. Change all callers. |
|
5018 * variables.cc (install_builtin_variables): Call symbols_of_pt_misc. |
|
5019 * toplev.cc (parse_and_execute): Delete print arg. Change all callers. |
|
5020 (eval_string): Change print flag arg to silent flag. Change callers. |
|
5021 |
|
5022 * dynamic-ld.h, dynamic-ld.cc: Rewrite to use singleton class. |
|
5023 * variables.cc (load_fcn_from_file): Use new dynamic linking class. |
|
5024 |
2893
|
5025 * dynamic-ld.h (Octave_builtin_fcn): Delete typedef. |
|
5026 * dynamic-ld.cc: Simplify via the magic of function pointers. |
|
5027 |
|
5028 * pt-fcn.h pt-fcn.cc pt-fvc.h pt-fvc.cc pt-fvc-base.h pt-fvc-base.cc: |
|
5029 Delete obsolete files. |
|
5030 * Makefile.in: Remove them from various lists. |
|
5031 |
|
5032 * pt-walk.h (visit_octave_user_function): Rename from visit_function. |
|
5033 (visit_builtin): Delete. |
|
5034 * pt-pr-code.h, pt-pr-code.cc (visit_octave_user_function): |
|
5035 Rename from visit_function. |
|
5036 (visit_octave_user_function_header): Rename from visit_function_header. |
|
5037 (visit_octave_user_function_trailer): Rename from |
|
5038 visit_function_trailer. |
|
5039 |
|
5040 * ov.h, ov.cc (eval): New functions. |
|
5041 |
|
5042 * dassl.cc, fsolve.cc, lsode.cc, npsol.cc, qpsol.cc, quad.cc: |
|
5043 Declare user-defined functions as a pointer to an octave_symbol |
|
5044 object, not as a pointer to a tree_fvc object. |
|
5045 |
|
5046 * symtab.h, symtab.cc: Use new octave_symbol class. |
|
5047 * variables.cc (install_builtin_function, install_builtin_mapper, |
|
5048 install_builtin_variable, install_builtin_variable_as_function): |
|
5049 Make work with new octave_symbol class and symbol table structure. |
|
5050 |
|
5051 * variables.h: Delete declaration of builtin_function struct. |
|
5052 * defun-dld.h (DEFUN_DLD): Simplify. |
|
5053 * defun-int.h (DEFINE_FUN_STRUCT): Delete. |
|
5054 (DEFINE_FUN_STRUCT_FUN): Rewrite to not use static builtin_function |
|
5055 object. |
|
5056 |
|
5057 * mappers.h: Delete declaration of builtin_mapper_function struct. |
|
5058 * mappers.cc: Declare wrapper functions static. |
|
5059 * defun.h (DEFUN_MAPPER): Simplify. |
|
5060 |
|
5061 * oct-sym.h: New file. Declare base class for Octave symbols. |
|
5062 * ov.h: Derive octave_value class from octave_symbol. |
|
5063 * oct-fcn.h, oct-fcn.cc: New files to declare and define |
|
5064 base class for functions. |
|
5065 * oct-builtin.h, oct-builtin.cc: New files to declare and define |
|
5066 class for built-in functions. |
|
5067 * oct-mapper.h, oct-mapper.cc: New files to declare and define |
|
5068 class for mapper functions. |
|
5069 * oct-usr-fcn.h, oct-usr-fcn.cc: New files to declare and define |
|
5070 base class for user-defined functions. |
|
5071 * Makefile.in: Add new files to appropriate lists. |
|
5072 |
|
5073 * pt-id.h, pt-id.cc: Move tree_identifier class here. |
|
5074 * pt-fvc.h, pt-fvc.cc: From here. |
|
5075 |
|
5076 * pt-indir.h, pt-indir.cc: Move tree_indirect_ref class here. |
|
5077 * pt-fvc.h, pt-fvc.cc: From here. |
|
5078 |
2881
|
5079 Thu Apr 24 03:58:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5080 |
2884
|
5081 * parse.y (magic_colon): New nonterminal. |
|
5082 (arg_list): Simplify using magic_colon. |
|
5083 |
2883
|
5084 * lex.h (class lexical_feedback): Delete maybe_screwed field. |
|
5085 New field, parsed_function name. |
|
5086 * lex.l (lexical_feedback::init): Initialize it. |
|
5087 (handle_identifier): Don't return SCREW. Handle switching |
|
5088 symbol table context properly for `function f ()' vs `function x ='. |
|
5089 (is_keyword): If looking at function keyword, don't set current |
|
5090 symbol table to point to the local table. |
|
5091 * parse.y (recover_from_parsing_function): New function. |
|
5092 (finish_function_def): Use identifier, not token. |
|
5093 Simplify parsing of functions. |
|
5094 |
|
5095 * ov-list.h, ov-list.cc: New files to implement generic list type. |
|
5096 * ov.cc (list_indent): New global variable. |
|
5097 (increment_list_indent, decrement_list_indent): New functions. |
|
5098 (install_types): Register octave_list type. |
|
5099 * ov-base.cc (octave_base_value::is_list): New function. |
|
5100 |
2881
|
5101 * oct-sym.h: New file. |
|
5102 * ov.h (class octave_value): Derive from octave_symbol class. |
|
5103 |
|
5104 * pt-const.h, pt-const.cc: Delete lots of old useless cruft. |
|
5105 |
|
5106 * pt-exp.h, pt-exp.cc (tree_binary_expression): Use type codes for |
|
5107 operators from octave_value instead of repeating them here. |
|
5108 |
|
5109 * pt-fvc-base.cc (tree_fvc::increment, tree_fvc::decrement): Delete. |
|
5110 * pt-fvc.cc (tree_identifier::increment): Get reference to value |
|
5111 and increment that instead of using virutal tree_fvc::increment |
|
5112 function. |
|
5113 |
|
5114 * lex.l: Handle +=, -=, *=, /=, .+=, .-=, .*=, ./=, &=, and |= ops. |
2883
|
5115 * parse.y (make_assign_op): Rename from make_simple_assignment and |
|
5116 handle different op types. |
|
5117 (simple_expr1): Do new ops. |
2881
|
5118 * pt-misc.cc (initialize_undefined_elements): Pass op to assign. |
|
5119 * pt-cmd.cc (tree_for_command::do_for_command_once): Likewise. |
|
5120 * pt-fvc.cc (tree_identifier::assign): Pass op. |
|
5121 * pt-exp.cc (tree_simple_assignment_expression): Handle new ops. |
|
5122 * variables.cc (octave_variable_reference::assign): Likewise. |
|
5123 * ov.h (class octave_value): Likewise. |
|
5124 * ov.cc (octave_value::assign_op_as_string): New function. |
|
5125 (octave_value::assign, octave_value::convert_and_assign, |
|
5126 octave_value::try_assignment_with_conversion, |
|
5127 octave_value::try_assignment): Pass op. |
|
5128 * pt-pr-code.cc (tree_print_code::visit_simple_assignment_expression): |
|
5129 Use expr.oper() instead of printing "=". |
|
5130 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-m-m.cc, |
|
5131 op-m-s.cc, op-str-str.cc: Pass op to INSTALL_ASSIGNOP. |
|
5132 * ops.h (INSTALL_ASSIGNOP): Pass op. |
2883
|
5133 * ov-typeinfo.cc (do_register_assign_op): Include op type in table. |
|
5134 (do_lookup_assign_op): Use op in lookup. |
2881
|
5135 |
|
5136 * ops.h (INSTALL_UNOP): Delete. |
|
5137 |
|
5138 * input.cc (generate_struct_completions, looks_like_struct): |
|
5139 Disable, since they don't work now anyway. |
|
5140 |
|
5141 * help.cc (Ftype): Work with octave_value instead of a pointer to |
|
5142 tree_constant. |
|
5143 * symtab.cc (symbol_record_info::symbol_record_info): Likewise. |
|
5144 |
|
5145 |
|
5146 Tue Apr 22 22:59:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5147 |
|
5148 * file-io.cc (Ffprintf): If first arg is a string, assume FID = 1. |
|
5149 |
|
5150 Fri Apr 18 20:16:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5151 |
|
5152 * oct-obj.h, oct-obj.cc: Implement octave_value_list with |
|
5153 Array<octave_value> as a data member, not as a class derived from |
|
5154 Array<octave_value>. |
|
5155 (octave_value_list::length, octave_value_list::resize, |
|
5156 octave_value_list::prepend, octave_value_list::append, |
|
5157 octave_value_list::reverse): New functions. |
|
5158 |
|
5159 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
5160 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
5161 op-s-cm.cc, op-s-m.cc: Use new bool ops from liboctave instead of |
|
5162 the macros defined in ops.h. |
|
5163 |
2865
|
5164 Thu Apr 17 13:12:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5165 |
|
5166 * parse.y (ABORT_PARSE): Handle forced_interactive the same as |
|
5167 interactive. |
|
5168 |
|
5169 Mon Apr 14 01:46:50 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5170 |
|
5171 * input.cc (octave_read): Don't forget to free input buffer if it |
|
5172 exists and has zero length. |
|
5173 (gnu_readline): Free buf if fgets returns 0. |
|
5174 |
|
5175 Wed Apr 9 00:03:57 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5176 |
|
5177 * time.cc (mk_tm_map): Only set zone field if HAVE_TM_ZONE or |
|
5178 HAVE_TZNAME are defined. |
|
5179 |
|
5180 Tue Apr 8 12:39:21 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5181 |
|
5182 * time.cc (extract_tm): Set tm.tm_zone if HAVE_TM_ZONE is defined, |
|
5183 not if HAVE_TMZONE is defined. |
|
5184 |
|
5185 * Makefile.in (%.oct : %.o): Use $(SH_LD), not $(CXX). |
|
5186 |
|
5187 Wed Apr 2 21:32:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5188 |
|
5189 * dynamic-ld.cc, dynamic-ld.h (init_dynamic_linker): Delete |
|
5190 function and declaration. |
|
5191 * octave.cc (main): Don't call it. |
|
5192 |
2856
|
5193 Mon Mar 31 00:37:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5194 |
2859
|
5195 * pt-base-exp.h (tree_expression::eval): Give arg a default value. |
|
5196 * pt-const.h (tree_constant::eval): Likewise. |
|
5197 * pt-exp.h (tree_prefix_expression::eval, tree_colon_expression::eval, |
|
5198 tree_postfix_expression::eval, tree_unary_expression::eval, |
|
5199 tree_binary_expression::eval, tree_boolean_expression::eval, |
|
5200 tree_simple_assignment_expression::eval): Likewise. |
|
5201 * pt-fcn.h (tree_function::eval): Likewise. |
|
5202 * pt-fvc.h (tree_identifier::eval, tree_indirect_ref::eval, |
|
5203 tree_builtin::eval): Likewise. |
|
5204 * pt-mat.h (tree_matrix::eval): Likewise. |
|
5205 * pt-misc.h (tree_statement_list::eval): Likewise. |
|
5206 * pt-mvr-base.h (tree_multi_val_ret::eval): Likewise. |
|
5207 * pt-mvr.h (tree_oct_obj::eval, tree_index_expression::eval, |
|
5208 tree_multi_assignment_expression::eval): Likewise. |
|
5209 * dassl.cc, fsolve.cc, load-save.cc, lsode.cc, npsol.cc, parse.y, |
|
5210 pt-cmd.cc, pt-exp-base.cc, pt-exp.cc, pt-fvc.cc, pt-mat.cc, |
|
5211 pt-misc.cc, pt-mvr.cc, pt-plot.cc, quad.cc, toplev.cc, variables.cc: |
|
5212 Change callers of eval() to use bool instead of int and to make |
|
5213 use of default argument value. |
|
5214 |
|
5215 * toplev.h, toplev.cc (parse_and_execute, eval_string): Flag args |
|
5216 are now bool instead of int. |
|
5217 |
2856
|
5218 * symtab.h, symtab.cc: Use bool instead of int in more places. |
|
5219 * variables.h, variables.cc: Likewise. |
2857
|
5220 * lex.h, lex.l: Likewise. |
|
5221 * parse.y: Likewise. |
2856
|
5222 * help.cc, input.cc, lex.l, load-save.cc, parse.y, pt-fcn.cc: |
|
5223 Change callers of symbol_table::lookup to use bool instead of int, |
|
5224 and to make use of default arguments. |
|
5225 |
2850
|
5226 Fri Mar 28 15:33:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5227 |
2852
|
5228 * parse.y (Vwarn_comma_in_declaration): Delete. |
|
5229 (symbols_of_parse): Delete DEFVAR for warn_comma_in_declaration. |
|
5230 (decl1): Don't allow commas in declarations. |
|
5231 |
2850
|
5232 * lsode.cc (struct LSODE_OPTIONS): Handle integer options. |
|
5233 (print_lsode_option_list, set_lsode_option, show_lsode_option): Ditto. |
|
5234 (lsode_option_table): Add element for step limit. |
|
5235 (lsode_user_jacobian): New function. |
|
5236 (Flsode): Allow function name arg to be a 2-element string array |
|
5237 specifying the function and jacobian function. |
|
5238 |
|
5239 * variables.cc (get_global_value, set_global_value): New functions. |
|
5240 |
2846
|
5241 Wed Mar 26 17:08:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5242 |
|
5243 Implement static variable declaration: |
|
5244 |
|
5245 * lex.l (is_keyword): Handle static. |
|
5246 * octave.gperf: Likewise. |
|
5247 * parse.y (Vwarn_comma_in_declaration): Rename from |
|
5248 Vwarn_comma_in_global_decl. |
|
5249 Handle new static command. |
|
5250 * pt-cmd.h, pt-cmd.cc (class tree_decl_command): New base class |
|
5251 for static and global declaration commands. |
|
5252 (class tree_global_command): Derive from tree_decl_command. |
|
5253 (class tree_static_command): New class, derived from tree_decl_command. |
|
5254 * pt-fvc.cc, pt-fvc.h (tree_identifier::mark_as_static): New function. |
|
5255 * pt-misc.h, pt-misc.h (class tree_decl_elt): Rename from tree_global. |
|
5256 (class tree_decl_init_list): Rename from tree_global_init_list. |
|
5257 * pt-pr-code.cc, pt-pr-code.h (tree_print_code::visit_decl_command): |
|
5258 Rename from visit_global_command. |
|
5259 (tree_print_code::visit_decl_elt): Rename from visit_global. |
|
5260 (tree_print_code::visit_decl_init_list): Rename from |
|
5261 visit_global_init_list. |
|
5262 * pt-walk.h (tree_walker::visit_decl_command): Rename from |
|
5263 visit_global_command. |
|
5264 (tree_walker::visit_decl_elt): Rename from visit_tree_global. |
|
5265 (tree_walker::visit_decl_init_list): Rename from |
|
5266 visit_global_init_list. |
|
5267 * variables.cc (link_to_global_variable): Trying to make a static |
|
5268 variable global is an error. |
|
5269 * SLList-misc.cc: Instantiate lists of pointers to tree_decl_elt |
|
5270 objects, not tree_global objects. |
|
5271 * symtab.h, symtab.cc (symbol_record::tagged_static): New field. |
|
5272 (symbol_record::mark_as_static, symbol_record::is_static): |
|
5273 New functions. |
|
5274 * symtab.cc (symbol_record::init_state): Initialize tagged_static. |
|
5275 (symbol_record::clear): Don't clear static variables. |
|
5276 * symtab.cc (push_context): Don't do anything for static variables. |
|
5277 |
2825
|
5278 Tue Mar 25 17:17:17 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5279 |
2881
|
5280 * ov-bool-mat.cc, ov-bool-mat.h, ov-bool.cc, ov-bool.h: New files. |
2832
|
5281 |
2831
|
5282 * defaults.cc (symbols_of_defaults): DEFCONST OCTAVE_HOME. |
|
5283 |
|
5284 * toplev.cc (octave_config_info): Delete use of CXXLIBS. |
|
5285 * oct-conf.h.in: Ditto. |
|
5286 |
2830
|
5287 * octave.cc (maximum_braindamage): Don't bind prefer_zero_one_indexing. |
|
5288 * ov.h: Don't declare Vprefer_zero_one_indexing. |
|
5289 * ov.cc: Don't define Vprefer_zero_one_indexing. |
|
5290 (prefer_zero_one_indexing): Delete. |
|
5291 (symbols_of_value): Delete DEFVAR for prefer_zero_one_indexing. |
|
5292 |
2825
|
5293 * ov.h, ov.cc, ov-base.h, ov-base.cc: Add constructors and |
|
5294 extractors for bool and boolMatrix types. |
|
5295 |
|
5296 * ov.cc (install_types): Register octave_bool and |
|
5297 octave_bool_matrix types. |
|
5298 |
|
5299 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
5300 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
5301 op-s-cm.cc, op-s-m.cc, op-s-s.cc, ov-re-mat.cc: |
|
5302 Return boolMatrix instead of Matrix object. |
|
5303 * ops.h (BOOL_OP3, MX_MX_BOOL_OP): Likewise. |
|
5304 |
|
5305 * op-b-b.h, op-b-b.cc, op-bm-bm.h, op-bm-bm.cc: New files. |
|
5306 * Makefile.in: Add them to the lists. |
|
5307 * ops.cc: Include header files here. |
|
5308 (install_ops): Call install_b_b_ops() and install_bm_bm_ops() here. |
|
5309 |
|
5310 * variables.cc (symbols_of_variables): Don't rely on default |
|
5311 conversion from int to double for value returned from |
|
5312 default_history_size(). |
|
5313 |
|
5314 * pr-output.cc: Include cstdio. |
|
5315 |
|
5316 * parse.y (param_list_end): Fix typo in last change. |
|
5317 |
|
5318 * quad.cc (quad): Cast integer return values to double. |
|
5319 * npsol.cc (show_npsol_option): Likewise. |
|
5320 * qpsol.cc (show_qpsol_option): Likewise. |
|
5321 * file-io.cc (Fsprintf, Ffwrite): Likewise. |
|
5322 |
|
5323 Mon Mar 24 13:11:47 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5324 |
|
5325 * ov-typeinfo.cc (typeinfo): If invoked with an argument, return |
|
5326 the type of the argument as a string. Fix doc string. |
|
5327 |
2821
|
5328 Thu Mar 20 14:47:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5329 |
|
5330 * mk-oct-links (links_dir): Don't use -h option for grep. It's |
|
5331 not needed since we are working on one file at a time anyway. |
|
5332 |
2819
|
5333 Mon Mar 17 10:53:29 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5334 |
|
5335 * lex.l (handle_identifier): When handling indirect_ref, set |
|
5336 lexer_flags.quote_is_transpose to 1 so that a.b' to work as |
|
5337 expected. |
|
5338 |
|
5339 * parse.y (param_list_beg, param_list_end): New nonterminals. |
|
5340 (param_list, param_list1): Use them. |
|
5341 |
2811
|
5342 Wed Mar 12 16:57:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5343 |
|
5344 * Makefile.in (install-strip): New target. |
|
5345 |
2806
|
5346 Mon Mar 10 22:38:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5347 |
|
5348 * Makefile.in (clean): Delete .oct files too. |
|
5349 |
|
5350 * toplev.cc (Vdefault_eval_print_flag): New static variable. |
|
5351 (eval_string): New arg, print. |
|
5352 (Feval): Pass Vdefault_eval_print_flag to eval_string. |
|
5353 (default_eval_print_flag): New function. |
|
5354 (symbols_of_toplev): New function. |
|
5355 |
|
5356 * variables.cc (install_builtin_variables): Call it. |
|
5357 |
|
5358 * pt-exp.h, pt-exp.cc (class tree_boolean_expression): Rename enum |
|
5359 fields `and' and `or' to `bool_and' and `bool_or'. |
|
5360 (tree_unary_expression): Rename enum field `not' to `unot'. |
|
5361 (class tree_binary_expression): Rename enum fields `and' and `or' |
|
5362 to `el_and' and `el_or'. |
|
5363 * parse.y: Change all uses. |
|
5364 |
|
5365 * time.cc (extract_tm): Truncate field values instead of rounding. |
|
5366 (gmtime, localtime): Likewise, for timeval. |
|
5367 |
|
5368 * ov.h (class octave_value): Delete unused variable freeptr. |
|
5369 |
|
5370 * mappers.cc: Delete functions that are already in |
|
5371 liboctave/lo-mappers.cc. |
|
5372 |
|
5373 * oct-strstrm.cc (octave_base_strstream::tell): Use const_cast, |
|
5374 not static_cast. |
|
5375 |
|
5376 * help.cc (help_from_list): Add missing const qualifiers. |
|
5377 * help.h (struct help_list): Likewise. |
|
5378 * lex.l (match_any, plot_style_token): Likewise. |
|
5379 * load-save.cc (extract_keyword, ascii_save_type): Likewise. |
|
5380 * oct-hist.cc (mk_tmp_hist_file): Likewise. |
|
5381 * octave.cc (execute_startup_files): Likewise. |
|
5382 * octave.gperf (struct octave_kw): Likewise. |
|
5383 * pr-output.cc (pr_any_float): Likewise. |
|
5384 * pt-mvr.cc (tree_index_expression::eval_error): Likewise. |
|
5385 * pt-exp-base.h, pt-exp.h, pt-exp.cc: Likewise. |
|
5386 * parse.y: Likewise. |
|
5387 |
2800
|
5388 Sun Mar 9 03:46:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5389 |
2806
|
5390 * pt-exp-base.h (tree_expression): Delete extra comma at end of list. |
|
5391 |
|
5392 * dirfns.cc error.cc file-io.cc fsolve.cc input.cc load-save.cc |
|
5393 npsol.cc pt-fcn.cc qpsol.cc quad.cc syscalls.cc toplev.cc |
|
5394 variables.cc: Eliminate embedded newlines in string constants. |
|
5395 |
|
5396 * Map.cc, data.cc, dirfns.cc, dynamic-ld.cc, file-io.cc, |
|
5397 fsolve.cc, getgrent.cc, getpwent.cc, getrusage.cc, help.cc, |
|
5398 input.cc, load-save.cc, mappers.cc, minmax.cc, npsol.cc, |
|
5399 oct-fstrm.cc, oct-procbuf.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
5400 oct-stream.cc, oct-stream.h, oct-strstrm.cc, octave.cc, |
|
5401 ov-base.h, ov-range.cc, ov-typeinfo.cc, ov.cc, pr-output.cc, |
|
5402 pt-cmd.cc, pt-exp.cc, pt-fcn.cc, pt-fvc.cc, pt-mat.cc, |
|
5403 pt-misc.cc, pt-plot.cc, qpsol.cc, quad.cc, sort.cc, strfns.cc, |
|
5404 symtab.cc, syscalls.cc, sysdep.cc, time.cc, toplev.cc, |
|
5405 unwind-prot.cc, unwind-prot.h, variables.cc, xpow.cc: |
|
5406 Use `static_cast<T> (val)' instead of old C-style `(T) val' casts. |
2800
|
5407 |
2799
|
5408 Sat Mar 8 02:35:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5409 |
|
5410 * load-save.cc (save_ascii_data, save_three_d): Where appropriate, |
|
5411 use bool instead of int. |
|
5412 (save_binary_data, save_mat_binary_data, save_ascii_data): |
|
5413 Print warning instead of error for wrong type arg. |
|
5414 |
|
5415 * gripes.cc (gripe_wrong_type_arg): New arg, is_error. |
|
5416 |
|
5417 * pt-plot.cc (save_in_tmp_file): Call save_ascii_data with bool |
|
5418 arg, not int. |
|
5419 |
2797
|
5420 Fri Mar 7 00:56:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5421 |
|
5422 * dassl.cc (show_dassl_option): For values that are determined |
|
5423 automatically, return a string instead of a magic value (-1.0). |
|
5424 * fsolve.cc (show_fsolve_option): Likewise. |
|
5425 * lsode.cc (show_lsode_option): Likewise. |
|
5426 * npsol.cc (show_npsol_option): Likewise. |
|
5427 * qpsol.cc (show_qpsol_option): Likewise. |
|
5428 |
|
5429 * variables.cc (extract_function): New function. |
|
5430 * dassl.cc (Fdassl): Use it instead of is_valid_function. |
|
5431 * fsolve.cc (Ffsolve): Likewise. |
|
5432 * npsol.cc (Fnpsol): Likewise. |
|
5433 * qpsol.cc (Fqpsol): Likewise. |
|
5434 * quad.cc (Fquad): Likewise. |
|
5435 |
2795
|
5436 Thu Mar 6 20:07:24 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5437 |
|
5438 * sighandlers.cc (my_friendly_exit, octave_new_handler, |
|
5439 sigfpe_handler, sigpipe_handler): Don't all error() or warning(). |
|
5440 |
|
5441 * pager.cc (pager_death_handler): Don't try to clear pager, just |
|
5442 print message to cerr. |
|
5443 (do_sync): If the status of the pager is bad or it looks like it |
|
5444 is dead, restore the interrupt handler. |
|
5445 |
|
5446 * load-save.cc (extract_keyword (istream&, char*, int&)): |
|
5447 Move declaration of buf inside loop, to avoid deleting its guts |
|
5448 and then trying to reuse it. |
|
5449 (extract_keyword (istream&, char*)): Likewise. |
|
5450 |
2790
|
5451 Tue Mar 4 20:36:53 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5452 |
2791
|
5453 * pt-fcn.cc (tree_function::eval): Protect function from being |
|
5454 redefined while it is being evaluated. |
|
5455 (unprotect_function): New function, for use with unwind_protect stuff. |
|
5456 * pt-fcn.h (tree_function::symtab_entry): New data member. |
|
5457 (tree_function::init): Initialize it to 0. |
|
5458 (tree_function::stash_symtab_ptr): New function. |
|
5459 * parse.y (frob_function_def): Stash pointer to function's |
|
5460 symbol_record in the function definition. |
|
5461 |
|
5462 * symtab.cc (symbol_record::read_only_error): New argument, |
|
5463 action. Change all callers. |
|
5464 (symbol_record::rename): Don't allow read-only symbols to be renamed. |
|
5465 |
2790
|
5466 * variables.cc (Fexist): Don't let files with `.' in their names |
|
5467 confuse us. |
|
5468 |
|
5469 * symtab.cc (valid_identifier (const string&)): New function. |
|
5470 |
2779
|
5471 Sat Mar 1 15:23:14 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2775
|
5472 |
|
5473 * Version 2.0.5 released. |
|
5474 |
2779
|
5475 Sat Mar 1 01:34:08 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5476 |
|
5477 * Makefile.in (stamp-oct-links): New target. Make links in build |
|
5478 directory too, so that the tests will work. |
|
5479 |
2777
|
5480 * quad.cc: If quad is defined, undefine it. |
|
5481 |
2775
|
5482 * octave.cc: If WITH_KPATHSEARCH is defined, don't define |
|
5483 program_invocation_name or program_invocation_short_name. |
2774
|
5484 |
|
5485 * strftime.c: Update to current version from FSF. |
|
5486 * time.cc (Fstrftime): Call strftime with buf = 0 to get buffer |
|
5487 size, then call again to actually format the time struct. |
|
5488 |
2762
|
5489 Fri Feb 28 01:49:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5490 |
2764
|
5491 Implement switch statement: |
|
5492 |
|
5493 * parse.y (Vwarn_variable_switch_label): New static variable. |
|
5494 (warn_variable_switch_label): New function. |
|
5495 (symbols_of_parse): Provide warn_variable_switch_label as Octave |
|
5496 variable here. |
|
5497 (make_switch_case, finish_switch_command): New functions. |
|
5498 (maybe_warn_variable_switch_label): New function. |
|
5499 (end_error): Handle endswitch. |
|
5500 (switch_command, case_list, case_list1, switch_case, default_case): |
|
5501 New nonterminals. |
|
5502 (command): Add switch_command here. |
|
5503 * lex.l (is_keyword): Handle switch, case, otherwise, and endswitch. |
|
5504 * octave_gperf: Recognize switch, case, otherwise, and endswitch. |
|
5505 * token.h (end_tok_type): New item, switch_end. |
|
5506 * pt-cmd.cc (tree_switch_command): New class. |
|
5507 * pt-misc.cc (tree_switch_case, tree_switch_case_list): New classes. |
|
5508 * pt-pr-code.cc (tree_print_code::visit_switch_case, |
|
5509 tree_print_code::visit_switch_case_list, |
|
5510 tree_print_code::visit_switch_command): New functions. |
|
5511 * pt-walk.h (tree_walker::visit_switch_case, |
|
5512 tree_walker::visit_switch_case_list, |
|
5513 tree_walker::visit_switch_command): New pure virtual declarations. |
|
5514 Implement new switch statement. |
|
5515 * SLList-misc.cc: Instantiate lists of pointers to |
|
5516 tree_switch_case objects too. |
|
5517 |
|
5518 * lex.h, lex.l, parse.y: Delete all references to lexer_flags::iffing. |
|
5519 |
2762
|
5520 * syswait.h: Include sys/wait.h on NeXT systems, but don't use the |
|
5521 WIFEXTED, WEXITSTATUS, and WIFSIGNALLED macros defined there. |
|
5522 Also define waitpid in terms of wait4. From Rex A. Dieter |
|
5523 <rdieter@math.unl.edu>. |
|
5524 |
2759
|
5525 Wed Feb 26 16:43:31 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5526 |
|
5527 * oct-stream.cc (octave_base_stream::do_scanf): Don't report an |
|
5528 error if a conversion fails or we reach EOF. |
|
5529 |
2745
|
5530 Tue Feb 25 22:21:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5531 |
|
5532 * time.cc (strftime): increase initial buffer size. |
|
5533 |
|
5534 Mon Feb 24 17:49:21 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5535 |
|
5536 * pt-fvc.cc (tree_builtin::eval): Enable checking for max number |
|
5537 of arguments. |
|
5538 |
|
5539 * error.cc (handle_message): Don't fail if args is empty. |
|
5540 |
|
5541 Sun Feb 23 22:42:52 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5542 |
|
5543 * lex.h (lexical_feedback::looking_at_return_list): New field. |
|
5544 (lexical_feedback::looking_at_parameter_list): Ditto. |
|
5545 * lex.l (lexical_feedback::init): Initialize them. |
|
5546 (handle_identifier): Use them. |
|
5547 * parse.y: Likewise. |
|
5548 |
2712
|
5549 Fri Feb 21 15:35:18 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5550 |
2716
|
5551 * lex.l: Require flex 2.5 or later (we really want 2.5.4 or later, |
|
5552 but there seems to be no good way to check the patchlevel). |
|
5553 |
2712
|
5554 * oct-stream.cc (octave_base_stream::oscanf): Instead of returning |
|
5555 an error, just quit processing after a conversion fails. |
|
5556 |
2709
|
5557 Thu Feb 20 02:58:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2702
|
5558 |
|
5559 * Version 2.0.4 released. |
|
5560 |
2706
|
5561 Wed Feb 19 10:30:14 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5562 |
2705
|
5563 * sighandlers.cc (octave_ignore_interrupts, |
|
5564 octave_catch_interrupts, octave_set_interrupt_handler): |
|
5565 Return old value, not pointer to static data. Fix all uses. |
|
5566 |
|
5567 * sighandlers.h (octave_interrupt_handler): Move declaration here. |
|
5568 * sighandlers.cc: From here. |
|
5569 |
|
5570 * toplev.cc: Undo previous change. |
|
5571 |
2702
|
5572 * lex.l (handle_identifier): Allow commands like ls, save, etc. to |
|
5573 also be used as simple variable names. Also make it possible to |
|
5574 use the normal function call syntax to invoke them. |
|
5575 |
2693
|
5576 Tue Feb 18 09:22:04 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2689
|
5577 |
2702
|
5578 * Makefile.in (%.oct:%.o, %.oct:pic/%.o): Use $(SH_LDFLAGS) here. |
|
5579 |
2690
|
5580 * Version 2.0.3 released. |
|
5581 |
2693
|
5582 Tue Feb 18 00:27:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5583 |
|
5584 * toplev.cc (run_command_and_return_output): |
|
5585 Block SIGCHLD while running subprocess. |
|
5586 (cleanup_iprocstream): Unblock it here. |
|
5587 |
|
5588 * sighandlers.h (BLOCK_SIGNAL, BLOCK_CHILD, UNBLOCK_CHILD): Move here. |
|
5589 * sighandlers.cc: From here. |
|
5590 |
2692
|
5591 * toplev.cc (system): Shift then mask exit status. |
|
5592 |
|
5593 * help.cc (try_info): Shift first, then mask exit status. |
|
5594 |
2689
|
5595 * toplev.cc (octave_config_info): Handle option argument. |
|
5596 |
2686
|
5597 Fri Feb 14 16:23:30 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5598 |
2687
|
5599 * oct-stream.cc (octave_base_stream::do_scanf): Don't forget to |
|
5600 check to see if the result matrix needs resizing! |
|
5601 |
2686
|
5602 * Makefile.in (bin-dist): Don't write empty strings to LIBRARIES. |
|
5603 |
2669
|
5604 Thu Feb 13 03:02:08 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5605 |
2676
|
5606 * Makefile.in (stamp-prereq): Depend on stamp-picdir. |
|
5607 (all): Don't depend on stamp-prereq or stamp-picdir. |
|
5608 (stamp-tinst, stamp-interp, libtinst.a, liboctinterp.a): |
|
5609 Do depend on stamp-prereq. |
|
5610 (stamp-picdir): Silence noise about making pic. |
|
5611 (stamp-tinst, stamp-interp): Use $(SH_LD) $(SH_LDFLAGS) instead of |
|
5612 $(CXX) -shared. |
|
5613 |
2675
|
5614 * oct-conf.h.in: Reinstate RLD_FLAG. |
|
5615 * toplev.cc (octave_config_info): Likewise. |
|
5616 |
2672
|
5617 * data.cc (map_d_m, map_m_d, map_m_m): Rename from map. |
|
5618 (Fatan2): Use new function names. |
|
5619 |
|
5620 * pt-fvc.cc (apply_mapper_fcn): Use member function map() instead |
|
5621 of friend function. |
|
5622 |
2669
|
5623 * gripes.cc (gripe_wrong_type_arg (const char*, const string&)): |
|
5624 New function. |
|
5625 |
|
5626 Wed Feb 12 17:27:53 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5627 |
|
5628 * syscalls.cc (symbols_of_syscalls): Add O_ASYNC and O_SYNC. |
|
5629 |
|
5630 Mon Feb 10 01:22:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5631 |
|
5632 * dirfns.cc (Freaddir, Fmkdir, Frmdir, Frename): |
|
5633 Also return status and error message. |
|
5634 |
|
5635 * syscalls.cc (Fdup2, Fexec, Ffork, Ffcntl, Funlink, Fmkfifo, |
|
5636 Fpipe, Fwaitpid): Also return error message. |
|
5637 |
2664
|
5638 Sat Feb 8 17:16:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5639 |
2665
|
5640 * pt-exp.cc (tree_simple_assignment_expression::eval): Return |
|
5641 value of RHS, but (if printing) print complete value of LHS. |
|
5642 |
2664
|
5643 * pr-output.cc (octave_print_internal): Print a new line for empty |
|
5644 string matrices. |
|
5645 |
2663
|
5646 Wed Feb 5 14:30:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5647 |
|
5648 * oct-stream.cc (scanf_format_list::process_conversion): Accept |
|
5649 but don't actually use h, l, and L modifiers. Always insert l |
|
5650 modifier for floating point conversions. |
|
5651 |
2652
|
5652 Fri Jan 31 13:55:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5653 |
|
5654 * pager.cc (do_sync): Always flush the cout stream after writing. |
|
5655 |
2643
|
5656 Wed Jan 29 08:25:29 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5657 |
2648
|
5658 * defaults.cc (exec_path): Don't include bin_dir in std_path. |
|
5659 |
2646
|
5660 * pager.cc (do_sync): Flush the cout stream after writing if |
|
5661 running in interactive or forced_interactive mode. |
|
5662 |
|
5663 * mk-oct-links: Rename from mk-oct-links.in. |
|
5664 Don't use symbolic links. |
|
5665 * Makefile.in: Distribute mk-oct-links, not mk-oct-links.in |
|
5666 (mk-oct-links): Delete target. |
|
5667 (install-oct, bin-dist): Don't depend on mk-oct-links. |
|
5668 Run $(srcdir)/mk-oct-links, not ./mk-oct-links. |
|
5669 |
2643
|
5670 * qr.cc (qr): Doc fix. |
|
5671 |
2638
|
5672 Tue Jan 28 10:48:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5673 |
|
5674 * Makefile.in (install-inc): Create a relative symbolic link. |
|
5675 (install-bin): Create a relative symbolic link. |
|
5676 |
2630
|
5677 Mon Jan 27 12:12:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5678 |
2634
|
5679 * Version 2.0.2 released. |
|
5680 |
|
5681 * Makefile.in (CXXFLAGS_NO_PT_FLAGS): Rename from XALL_CXXFLAGS. |
|
5682 Substitute bsd_gcc_kluge_targets_frag. |
|
5683 |
2630
|
5684 * sysdep.cc (Fsleep): New function. |
|
5685 (Fusleep): New function. |
|
5686 |
|
5687 * toplev.cc (octave_config_info): Don't include RLD_FLAG. |
|
5688 * oct-conf.h.in: Don't define RLD_FLAG |
|
5689 |
2626
|
5690 Sun Jan 26 19:41:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5691 |
|
5692 * sighandlers.cc (sigchld_handler): Block SIGCHLD while |
|
5693 sigchld_hander is running. |
|
5694 |
2624
|
5695 Sat Jan 25 22:36:39 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5696 |
|
5697 * Makefile.in (bin-dist): Update for 2.x. |
|
5698 |
2621
|
5699 Fri Jan 24 10:05:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5700 |
|
5701 * mk-oct-links.in: New arg, -p, to just print list of files to link. |
|
5702 |
|
5703 * lex.l (handle_number): Convert `D' or `d' exponents to `e' |
|
5704 before scanning. |
|
5705 |
2620
|
5706 Thu Jan 23 10:00:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5707 |
|
5708 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_no_op_command): |
|
5709 New function. |
|
5710 * pt-cmd.h, pt-cmd.cc (tree_no_op_command): New class. |
|
5711 * parse.y (make_break_command, make_continue_command, |
|
5712 make_return_command): Where they don't really make sense, turn |
|
5713 these commands into no-ops. Accept return and break if reading a |
|
5714 script file. |
|
5715 * toplev.cc (parse_and_execute): Handle return and break in script |
|
5716 files. Quit executing commands if an error occurs when reading a |
|
5717 script file. Set global_command to 0 after deleting it. |
|
5718 (main_loop): If not interactive or forced_interactive, handle |
|
5719 break and return, and quit executing commands if an error occurs. |
|
5720 Set global_command to 0 after deleting it. |
|
5721 * error.cc (Ferror): Doc fix. |
|
5722 * pt-walk.h (tree_walker): Add declaration for visit_no_op_command. |
|
5723 |
2618
|
5724 Wed Jan 22 20:54:12 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5725 |
|
5726 * input.cc (gnu_readline): If not using readline, flush |
|
5727 rl_outstream after printing prompt. |
|
5728 (octave_gets): Also call flush_octave_stdout() if |
|
5729 forced_interactive, not just if interactive. |
|
5730 (do_input_echo): If forced_interactive, only echo prompt and |
|
5731 command line if also reading a script file. |
|
5732 |
2616
|
5733 Tue Jan 21 23:02:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5734 |
|
5735 * SLList.h: Include "BaseSLList.h", not <BaseSLList.h>. |
|
5736 |
2610
|
5737 Mon Jan 20 11:11:12 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5738 |
2614
|
5739 * lex.l (token_stack): Don't declare static. |
|
5740 * pt-plot.cc (tmp_files): Likewise. |
|
5741 * toplev.cc (octave_atexit_functions): Likewise. |
|
5742 * unwind-prot.cc (unwind_protect_list): Likewise. |
|
5743 |
2613
|
5744 * ops.h (MX_MX_BOOL_OP): Correctly handle case of one or both |
|
5745 arguments being empty. Change all callers. |
|
5746 |
|
5747 * oct-stream.cc (printf_value_cache::looking_at_string): |
|
5748 Handle empty strings correctly now that they are 0x0. |
|
5749 |
2610
|
5750 * file-io.cc: Don't include "syswait.h" here. |
|
5751 |
|
5752 Sun Jan 19 22:38:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5753 |
|
5754 * oct-stream.h (octave_base_stream::seek): Declare offset arg as |
|
5755 streamoff, not streampos. |
|
5756 (octave_stream::seek): Likewise. |
|
5757 * oct-strstrm.h (octave_base_strstream::seek): Likewise. |
|
5758 * oct-stdstrm.h (octave_base_stdiostream::seek): Likewise. |
|
5759 * oct-iostrm.h (octave_base_iostream::seek): Likewise. |
|
5760 * oct-fstrm.h (octave_fstream::seek): Likewise. |
|
5761 |
2609
|
5762 Fri Jan 17 18:13:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5763 |
|
5764 * file-io.cc (Ffflush): Handle stdout as a special case. |
|
5765 |
|
5766 * oct-stream.cc (octave_stream_list::do_get_file_number): |
|
5767 Do the work for octave_stream::get_file_number. |
|
5768 (octave_stream_list::get_file_number): Convert to static function. |
|
5769 |
2608
|
5770 Wed Jan 8 11:42:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5771 |
|
5772 * log.cc (sqrtm): For complex arg case, compute sqrt, not log. |
|
5773 |
2602
|
5774 Tue Jan 7 00:16:41 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5775 |
|
5776 * Version 2.0.1 released. |
|
5777 |
|
5778 Mon Jan 6 00:00:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5779 |
|
5780 * pt-mat.cc (tm_row_const_rep::all_mt): New variable. |
|
5781 (tm_row_const::all_empty): New function. |
|
5782 (tm_row_const::tm_row_const_rep::init): Set all_mt here. |
|
5783 (tm_const::all_mt): New variable. |
|
5784 (tm_const::all_emtpy): New function. |
|
5785 (tm_const::init): Set all_mt here. |
|
5786 (tree_matrix::eval): Return an empty matrix if the list contains |
|
5787 only empty elements. If it contains only empty strings, return an |
|
5788 empty string. |
|
5789 |
2601
|
5790 Sun Jan 5 12:50:25 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5791 |
|
5792 * ops.h (SC_MX_BOOL_OP, MX_SC_BOOL_OP): New arg, empty_result. |
|
5793 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
5794 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
5795 op-s-cm.cc, op-s-m.cc, op-str-str.cc: Change all uses of |
|
5796 SC_MX_BOOL_OP and MX_SC_BOOL_OP macros. Return correct results |
|
5797 for empty matrix cases. |
|
5798 |
|
5799 * pt-fcn.cc (tree_function::eval): If Vdefine_all_return_values is |
|
5800 true, initialize return values before evaluating function, for |
|
5801 compatibility with Matlab. |
|
5802 |
|
5803 * oct-stream.cc (get_size): Correctly set size when arg is scalar. |
|
5804 |
|
5805 Thu Jan 2 12:40:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5806 |
|
5807 * Makefile.in (install-oct): Quote $(OCT_FILES) in for loop to |
|
5808 avoid syntax error from ksh. |
|
5809 |
|
5810 * pr-output.cc (octave_print_internal): Avoid unused parameter |
|
5811 warning from gcc. |
|
5812 |
2600
|
5813 Thu Dec 19 12:13:42 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5814 |
|
5815 * oct-stream.cc (octave_base_stream::do_scanf): |
|
5816 Don't treat %l{e,f,g} differently from %{e,f,g}. |
|
5817 (octave_base_stream::do_oscanf): Likewise. |
|
5818 |
|
5819 * sighandlers.cc (sigchld_handler): Fix typos. |
|
5820 |
2598
|
5821 Wed Dec 18 20:17:23 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5822 |
2599
|
5823 * file-io.cc (Ffgetl, Ffgets): Also return number of characters read. |
|
5824 |
|
5825 * ov-range.cc (octave_range::not): New function. |
|
5826 * ov-range.h (octave_range::uminus): New function. |
|
5827 |
2598
|
5828 * BaseSLList.cc: Include error.h. |
|
5829 (BaseSLList::error): Call ::error() to process error message. |
|
5830 |
2589
|
5831 Fri Dec 13 02:38:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5832 |
|
5833 * ov.cc (octave_value::convert_and_assign): Preserve lhs value if |
|
5834 assignment fails. |
|
5835 |
2586
|
5836 Wed Dec 11 12:33:16 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5837 |
|
5838 * pt-plot.cc (GPLOT_CMD_END): Don't put semicolons at the end of |
|
5839 each plot command; it causes trouble with gnuplot 3.5. |
|
5840 |
2580
|
5841 Tue Dec 10 00:31:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5842 |
2583
|
5843 * Version 2.0 released. |
|
5844 |
2584
|
5845 * pr-output.cc (set_format_style): Don't try to access argv unless |
|
5846 argc > 1. |
|
5847 |
2580
|
5848 * SLList-expr.cc SLList-misc.cc SLList-plot.cc SLList-str.cc |
|
5849 SLList-tc.cc SLList-tm.cc SLList.h SLStack-i.cc SLStack-pc.cc |
|
5850 SLStack-str.cc SLStack-sym.cc SLStack-tok.cc SLStack-ue.cc |
|
5851 SLStack-ui.cc, pt-mat.cc: Include Stack.h, Stack.cc, SLStack.cc, |
|
5852 and SLList.cc as necessary. |
|
5853 |
|
5854 * Stack.cc, SLStack.cc, SLList.cc: New files. |
|
5855 * Makefile.in (SOURCES): Add them to the list. |
|
5856 |
2575
|
5857 Mon Dec 9 12:03:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5858 |
2577
|
5859 * Makefile.in (install-bin): Use $(EXE) suffix so install will |
|
5860 find the right file on cygwin32 systems. |
|
5861 |
2575
|
5862 * ov.h: Declare proper form of do_binary_op as friend to |
|
5863 octave_value class. |
|
5864 |
2572
|
5865 Sat Dec 7 22:00:10 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5866 |
|
5867 * oct-stream.cc (do_printf_conv, do_scanf_conv, |
|
5868 do_oscanf_num_conv, do_oscanf_str_conv): Convert to real |
|
5869 functions instead of CPP macros, using templates where necessary. |
|
5870 (do_oscanf_num_conv, do_oscanf_str_conv): Correctly handle |
|
5871 discarded values. |
|
5872 |
2569
|
5873 Fri Dec 6 00:20:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5874 |
2572
|
5875 * Version 1.94. |
|
5876 |
2571
|
5877 * Map-*.cc, SLList-*.cc, SLStack-*.cc: Include config.h. |
|
5878 |
|
5879 * ov.h: Don't include SLList.h. |
|
5880 |
|
5881 * SLStack.cc: Delete. Move everything to SLStack.h. |
|
5882 |
|
5883 * BaseSLList.h, BaseSLList.cc: New files. Split out the |
|
5884 non-template base class parts of SLList. |
|
5885 |
2569
|
5886 * Makefile.in (TEMPLATE_SRC): Delete. Move files to SOURCES. |
|
5887 * Map.h, Map.cc: Add #pragma interface/implementation. |
|
5888 * SLStack.h, SLStack.cc: Add #pragma interface/implementation. |
|
5889 |
|
5890 * SLList.h, SLList.cc: New files, from libg++, but with #pragma |
|
5891 interface/implementation. |
|
5892 * Makefile.in (SOURCES): Add SLList.cc. |
|
5893 (INCLUDES): Add SLList.h. |
|
5894 |
2566
|
5895 Thu Dec 5 18:36:44 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5896 |
|
5897 * octave.cc: Don't include sun-utils.h. |
|
5898 |
2563
|
5899 Tue Dec 3 23:47:09 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5900 |
|
5901 * op-str-str.cc (eq, ne): Handle operations with scalars. |
|
5902 |
2555
|
5903 Thu Nov 21 12:30:36 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5904 |
|
5905 * ov-str-mat.h (octave_char_matrix_str): Provide transpose and |
|
5906 hermitian operators. |
|
5907 * ov-ch-mat.h (octave_char_matrix): Likewise. |
|
5908 |
2548
|
5909 Wed Nov 20 00:35:57 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5910 |
2554
|
5911 * sighandlers.h (struct octave_interrupt_handler): Provide |
|
5912 forward declaration here. |
|
5913 * sighandlers.cc (octave_interrupt_handler): New struct. |
|
5914 (octave_catch_interrupts): Rename from catch_interrupts. |
|
5915 (octave_ignore_interrupts, octave_set_interrupt_handler): |
|
5916 New functions. |
|
5917 * help.cc, oct-hist.cc, pager.cc, toplev.cc: Use new functions for |
|
5918 handling interrupts so that we can hide the details of whether or |
|
5919 not we have to deal with SIGBREAK. |
|
5920 |
|
5921 * pt-plot.cc [! HAVE_POSIX_SIGNALS] (open_plot_stream): |
|
5922 Simply ignore and restore the interrupt handler here. |
|
5923 |
|
5924 * sighandlers.cc (MAYBE_REINSTALL_SIGHANDLER): New macro. Use it |
|
5925 instead of always checking MUST_REINSTALL_SIGHANDLERS everywhere. |
|
5926 (sigchld_handler): If octave_child_list is empty, wait for any |
|
5927 child, but don't hang, and don't collect status info. |
|
5928 [__EMX__] (sigchld_handler): Save and restore handlers for SIGINT, |
|
5929 SIGBREAK, and SIGCHLD. Ignore them while waiting on children. |
|
5930 (install_signal_handlers): If SIGBREAK exists, handle it like SIGINT. |
|
5931 |
2552
|
5932 * toplev.cc [USE_READLINE] (clean_up_and_exit): |
|
5933 Call rl_deprep_terminal() to restore terminal settings. |
|
5934 |
|
5935 * sysdep.cc [__EMX__ && OS2] (Fextproc): New command. |
|
5936 [__EMX__ && OS2] (FEXTPROC): Alias for Fextproc. |
|
5937 |
|
5938 * Version 1.93. |
|
5939 |
2549
|
5940 * sysdep.cc (octave_chdir): [__EMX__]: Make copy of string before |
|
5941 converting to upper case. |
|
5942 |
2548
|
5943 * getgrent.cc (mk_gr_map): Only set the passwd field if |
|
5944 HAVE_GR_PASSWD is defined. |
|
5945 |
2533
|
5946 Tue Nov 19 12:01:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5947 |
2546
|
5948 * sysdep.cc (OS2_init): New function. |
|
5949 [__EMX__] (sysdep_init): Call it. |
|
5950 |
2542
|
5951 * lex.l (plot_style_token): Add new plot styles for gnuplot 3.6. |
2543
|
5952 * pt-plot.cc (subplot_style::columns_ok): Rename from |
|
5953 subplot_style::errorbars. Recognize more styles and do a better |
|
5954 job of diagnosing column number/style mismatches. |
2542
|
5955 |
2536
|
5956 * sighandlers.cc (my_friendly_exit): If we are called twice, try |
|
5957 to remove the signal handler for SIGABRT and the call abort (). |
|
5958 |
2534
|
5959 * help.cc (Ftype): If a function is defined from a file and |
|
5960 transformed text has not been requested, just print the contents |
|
5961 of the file. |
|
5962 |
2533
|
5963 * parse.y (fold): New functions for constant folding for binary |
|
5964 and unary expressions. Keep track of original text even when |
|
5965 transformations occur. |
|
5966 (make_binary_op, make_boolean_op, make_unary_op): Use them. |
|
5967 (finish_colon_expression, finish_matrix): Keep track of original |
|
5968 text even when transformations occur. |
|
5969 |
|
5970 * help.cc (Ftype): Don't mess with Vps4. |
|
5971 Handle new option `-transformed'. |
|
5972 |
|
5973 * pt-const.h, pt-const.cc (tree_constant::print): |
|
5974 New arg, pr_orig_text. |
|
5975 |
|
5976 * pt-exp.h, pt-exp.cc (tree_colon_expression::is_range_constant): |
|
5977 Delete. |
|
5978 |
|
5979 * pt-exp-base.h (tree_expression::original_text): New virtual function. |
|
5980 pt-exp-base.cc (tree_expression::original_text): Default version. |
|
5981 |
|
5982 * pt-pr-code.h (tree_print_code::print_original_text, |
|
5983 tree_print_code::prefix): New fields. |
|
5984 * pt-pr-code.cc (tree_print_code::visit_constant): Pass |
|
5985 print_original_text to tree_constant::print(). |
|
5986 (tree_print_code::indent): Use prefix instead of Vps4. |
|
5987 * pt-fcn.cc (tree_function::print_function_header, |
|
5988 tree_function::print_function_trailer): Pass Vps4 to |
|
5989 tree_print_code_constructor for prefix. |
|
5990 * pt-misc.cc (tree_statement::maybe_echo_code): Pass Vps4 to |
|
5991 tree_print_code_constructor for prefix. |
|
5992 |
|
5993 * pt-mat.h, pt-mat.cc (tree_matrix::all_elements_are_constant): |
|
5994 Rename from is_matrix_constant. |
|
5995 (tree_matrix_row::all_elements_are_constant): Likewise. |
|
5996 Change all callers. |
|
5997 |
|
5998 Mon Nov 18 14:13:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5999 |
|
6000 * Makefile.in (install-inc): Try harder to create the link from |
|
6001 include/octave to include/octave-VERSION. |
|
6002 |
2524
|
6003 Sun Nov 17 14:14:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6004 |
2527
|
6005 * Makefile.in (parse.cc): Expect 13 shift/reduce conflicts. |
2526
|
6006 |
2525
|
6007 * parse.y (set_stmt_print_flag): New function. |
|
6008 (sep_type): New member for bison %union declaration. |
|
6009 Simplify rules for statement lists keeping track of the type of |
|
6010 the first separator in the values associated with the |
|
6011 nonterminals for the separators. |
|
6012 |
2524
|
6013 * lex.l (handle_identifier): Set lexer_flags.doing_set if the |
|
6014 token is "gset", not "set". |
|
6015 |
|
6016 Sat Nov 16 21:41:26 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6017 |
|
6018 * Makefile.in (parse.cc, lex.cc): Add special rules for these files. |
|
6019 Delete pattern rules for .y and .l files. |
|
6020 |
2522
|
6021 Fri Nov 15 13:48:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6022 |
2523
|
6023 * pt-plot.cc: Put semicolons at the ends of all plot commands. |
|
6024 |
2522
|
6025 * defaults.cc (subst_octave_home): Start subsequent searchs from |
|
6026 the end of the replaced text. |
|
6027 |
|
6028 * pr-output.cc (pr_any_float): Kluge for SCO systems. |
|
6029 |
|
6030 * pr-output.cc (pr_any_float, pr_complex): Don't declare inline. |
|
6031 |
|
6032 * mappers.cc: Include lo-ieee.h, for isinf and isnan on SCO |
|
6033 systems. |
|
6034 |
2512
|
6035 Thu Nov 14 00:06:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6036 |
2520
|
6037 * pt-plot.cc (Fgset, Fgshow): New commands. |
|
6038 (Fshow): Print warning and call gshow. |
|
6039 (Fset): Print warning and call gset. |
|
6040 |
2517
|
6041 * variables.cc (parse_fcn_file): Add unwind-protect for file |
|
6042 pointer, so the file is always closed. |
|
6043 (get_help_from_file): Likewise. |
|
6044 * toplev.cc (parse_and_execute): Likewise. |
|
6045 |
2516
|
6046 * Makefile.in (install-oct): Depend on mk-oct-links. |
|
6047 (mk-oct-links): New target. |
|
6048 |
2512
|
6049 * Version 1.92. |
|
6050 |
2508
|
6051 Wed Nov 13 11:13:22 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6052 |
2512
|
6053 * sighandlers.cc (sys_siglist): [__EMX__]: Add definitions. |
|
6054 |
|
6055 * octave.cc (execute_startup_files): Allow init file name ot be |
|
6056 specified by an environment variable. |
|
6057 |
|
6058 * dirfns.cc (make_absolute): [__EMX__]: Path is already absolute |
|
6059 if it begins with any character followed by a colon. |
|
6060 |
2511
|
6061 * load-save.cc (read_mat_ascii_matrix, get_lines_and_columns, |
|
6062 get_complete_line): New functions, for reading headless text files. |
|
6063 (load_save_format): Add LS_MAT_ASCII, for headless text files. |
|
6064 (do_load): Handle LS_MAT_ASCII files. |
|
6065 Thanks to Mel Melchner <mjm@research.att.com> for initial version |
|
6066 of this code. |
|
6067 |
2508
|
6068 * sysdep.cc: Conditionally include ieeefp.h. |
|
6069 (BSD_init, SCO_init): New functions. |
|
6070 (sysdep_init): Conditionally call them here. |
|
6071 |
2499
|
6072 Tue Nov 12 00:14:56 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6073 |
2508
|
6074 * pt-plot.cc (open_plot_stream): Don't block SIGCHLD. |
|
6075 |
2499
|
6076 * load-save.cc (read_binary_data): When reading string arrays, be |
|
6077 sure to create an octave_char_matrix_str object, not just an |
|
6078 octave_char_matrix object. |
|
6079 (read_ascii_data): Likewise. |
|
6080 |
2497
|
6081 Mon Nov 11 22:52:58 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6082 |
|
6083 * load-save.cc (read_binary_data): Don't forget teminating NUL for |
|
6084 string that we plan to insert. |
|
6085 (read_ascii_data): Likewise. |
|
6086 |
2495
|
6087 Sun Nov 10 16:58:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6088 |
2496
|
6089 * dirfns.cc (Ffnmatch): New function. |
|
6090 |
2495
|
6091 * octave.cc (intern_argv): Use new string_vector constructor. |
|
6092 |
|
6093 * ov-str-mat.cc (octave_char_matrix_str::all_strings): Have |
|
6094 charMatrix::row_as_string() strip trailing whitespace. |
|
6095 |
|
6096 * dirfns.cc (Fglob): new function. |
|
6097 |
|
6098 * sysdep.cc (oct_tilde_expand): Provide version that works on |
|
6099 string vectors too. |
|
6100 (Ftilde_expand): Work on string vector args. |
|
6101 |
|
6102 * load-save.cc (save_binary_data): Call char_matrix_value() to |
|
6103 extract charMatrix from octave_value object, not all_strings(). |
|
6104 (save_ascii_data): Likewise. |
|
6105 * pt-mat.cc (tree_matrix::eval): Likewise. |
|
6106 |
|
6107 * ov.h (octave_value::all_strings): Return string_vector, not |
|
6108 charMatrix. |
|
6109 * ov-base.cc (octave_base_value::all_strings): Likewise. |
|
6110 * ov-str-mat.h, ov-str-mat.cc (octave_char_matrix_str::all_strings): |
|
6111 Likewise. |
|
6112 |
2487
|
6113 Fri Nov 8 09:54:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6114 |
2492
|
6115 * defaults.cc, dynamic-ld.cc, fn-cache.cc, help.cc, oct-hist.cc, |
|
6116 octave.cc, pager.cc, pt-fcn.cc, toplev.cc, utils.cc, variables.cc, |
|
6117 lex.l: Change #include "" to #include <> for defaults.h, |
|
6118 oct-conf.h, oct-gperf.h, y.tab.h, and version.h, to avoid getting |
|
6119 them from $srcdir when we really want the version from the build |
|
6120 directory. (Maybe this should be done for all the include files, |
|
6121 not just those that are auto-generated? Hmm.) |
|
6122 |
2488
|
6123 * defaults.h.in (CXXLIB_LIST, CXXLIB_PATH, FLIB_LIST, FLIB_PATH): |
|
6124 Delete. |
|
6125 |
2487
|
6126 * Makefile.in (install-oct): Use $(INSTALL_PROGRAM) for .oct files. |
|
6127 |
2477
|
6128 Thu Nov 7 07:59:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6129 |
2487
|
6130 * variables.cc (gobble_leading_white_space): New arg, update_pos. |
|
6131 * (is_function_file): Don't update file position information here. |
|
6132 |
2482
|
6133 * Version 1.91. |
|
6134 |
2479
|
6135 * pt-fvc.cc (tree_indirect_ref::reference): If the lhs object is |
|
6136 not a map, convert it to one. |
|
6137 |
|
6138 * ov-typeinfo.h (init_tab_sz): New static member. |
|
6139 |
2477
|
6140 * ov-struct.cc, ov-struct.h: Add hooks for custom memory management. |
|
6141 * ov-scalar.cc, ov-scalar.h: Likewise. |
|
6142 * ov-re-mat.cc, ov-re-mat.h: Likewise. |
|
6143 * ov-range.cc, ov-range.h: Likewise. |
|
6144 * ov-cx-mat.cc, ov-cx-mat.h: Likewise. |
|
6145 * ov-complex.cc, ov-complex.h: Likewise. |
|
6146 * ov-ch-mat.cc, ov-ch-mat.h: Likewise. |
|
6147 |
2474
|
6148 Wed Nov 6 12:32:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6149 |
2482
|
6150 * pager.cc (do_sync): Don't call clear_external_pager() here. |
2476
|
6151 |
2475
|
6152 * pt-const.h (tree_constant::allocator) New static member. |
|
6153 (tree_constant::operator new, tree_constant::operator delete): |
|
6154 Implement with custom allocator. |
|
6155 |
|
6156 * syscalls.cc (Fgetgid, Fgetegid): New functions. |
|
6157 |
|
6158 * sighandlers.cc (sigchld_handler): If necessary, reinstall |
|
6159 handler after call to waitpid(). |
|
6160 |
|
6161 * pager.cc (pager_death_handler): Don't use warning() to print |
|
6162 message. |
|
6163 |
|
6164 * getgrent.cc: New file. |
|
6165 * Makefile.in (DLD_SRC): Add it. |
|
6166 |
|
6167 * ov.cc (octave_value::print_with_name): Call is_map() instead of |
|
6168 print_as_structure(). |
|
6169 * ov-struct.cc (octave_struct::print): Likewise. |
|
6170 |
|
6171 * ov.h, ov.cc, pt-const.h: Delete force_numeric(), make_numeric(), |
|
6172 convert_to_matrix_type(), print_as_structure() member functions. |
|
6173 |
2474
|
6174 * variables.cc (is_function_file): Call gobble_leading_whitespace |
|
6175 here to strip all leading whitespace and comments. |
|
6176 (parse_fcn_file): If reading a function file, call |
|
6177 gobble_leading_whitespace again after resetting parser state to |
|
6178 grab help text. |
|
6179 |
2469
|
6180 Tue Nov 5 13:00:35 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6181 |
2472
|
6182 * syscalls.cc (Fgeteuid, Fgetuid): New functions. |
|
6183 |
|
6184 * getpwent.cc: Use gripe_not_supported from gripes.cc, instead of |
|
6185 local gripe_not_implemented function. |
|
6186 |
2470
|
6187 * input.cc, sysdep.cc, variables.cc: Only include readline.h and |
|
6188 history.h if USE_READLINE is defined. |
|
6189 |
|
6190 * help.cc: Make it compile without warnings even if USE_GNU_INFO |
|
6191 is not defined. |
|
6192 |
2469
|
6193 * sighandlers.h (octave_child_list): Don't define |
|
6194 HAVE_POSIX_SIGNALS HERE. |
|
6195 |
|
6196 * sighandlers.cc (SIGHANDLER_RETURN): New macro. |
|
6197 (generic_sig_handler, sigchld_handler, sigfpe_handler, |
|
6198 sigint_handler, sigpipe_handler): Use it. |
|
6199 (sigchld_handler, sigfpe_handler, sigint_handler, sigpipe_handler): |
|
6200 Only reinstall signal handler if MUST_REINSTALL_SIGHANDLER is defined. |
|
6201 |
2463
|
6202 Sun Nov 3 00:45:30 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6203 |
2466
|
6204 * pt-const.cc (tree_constant::print): Just call val.print(). |
|
6205 * ov-base.cc, ov-ch-mat.cc, ov-colon.cc, ov-complex.cc, |
|
6206 ov-cx-mat.cc, ov-range.cc, ov-re-mat.cc, ov-scalar.cc, |
|
6207 ov-str-mat.cc, ov-struct.cc ov-va-args.cc, ov.cc (print): |
|
6208 Handle pr_as_read_syntax arg. |
|
6209 |
|
6210 * defaults.cc (subst_octave_home): Search for prefix repeatedly in |
|
6211 retval, not s. |
|
6212 |
|
6213 * gripes.h: Make declaration of gripes_not_supported match |
|
6214 definition. |
|
6215 |
2465
|
6216 * mk-oct-links.in: In sed command, match "DEFUN_DLD *( *", not |
|
6217 "DEFUN_DLD_BUILTIN *( *". |
|
6218 |
|
6219 * chol.cc, colloc.cc, dassl.cc, det.cc, eig.cc, expm.cc, fft.cc, |
|
6220 fft2.cc, filter.cc, find.cc, fsolve.cc, fsqp.cc, getpwent.cc, |
|
6221 getrusage.cc, givens.cc, hess.cc, ifft.cc, ifft2.cc, inv.cc, |
|
6222 log.cc, lpsolve.cc, lsode.cc, lu.cc, minmax.cc, npsol.cc, pinv.cc, |
|
6223 qpsol.cc, qr.cc, quad.cc, qzval.cc, rand.cc, schur.cc, sort.cc, |
|
6224 svd.cc, syl.cc, time.cc: Change all uses of DEFUN_DLD_BUILTIN to |
|
6225 be just DEFUN_DLD. |
|
6226 |
|
6227 * defun-dld.h: Eliminate DEFUN_DLD_BUILTIN. |
|
6228 |
2464
|
6229 * syswait.h: Use #ifdef HAVE_SYS_WAIT_H, not #if HAVE_SYS_WAIT_H |
|
6230 to decide whether to include sys/wait.h. |
|
6231 |
|
6232 * pt-exp-base.h (tree_expression): Declare oper() here as a |
|
6233 virtual member function. |
|
6234 |
2463
|
6235 * pt-pr-code.cc (tree_print_code::visit_constant): Check for |
|
6236 string before checking for char_matrix. |
|
6237 |
|
6238 * ov-ch-mat.cc (octave_char_matrix::print): Supply correct number |
|
6239 of args to octave_print_internal(). |
|
6240 |
2457
|
6241 Sat Nov 2 20:44:55 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6242 |
2458
|
6243 * file-io.cc (Ftmpnam): Rename from Foctave_temp_file_name. |
|
6244 |
2457
|
6245 * Makefile.in (DLD_SRC): Move time.cc and getrusage.cc here from |
|
6246 SOURCES. Add getpwent.cc. |
|
6247 |
|
6248 * getrusage.cc: Rename from resource.cc. Make getrusage a |
|
6249 loadable function. |
|
6250 |
|
6251 * time.cc: Rename from timefns.cc. Make time functions loadable. |
|
6252 |
|
6253 * getpwent.cc: New file. |
|
6254 |
2439
|
6255 Wed Oct 30 01:06:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6256 |
2452
|
6257 * Version 1.90. |
|
6258 |
|
6259 * Makefile.in (DISTFILES): Add ChangeLog. |
|
6260 |
2449
|
6261 * ov-range.cc (octave_range::convert_to_str): New function. |
|
6262 |
|
6263 * ov-str-mat.h (octave_char_matrix_str::char_matrix_value): |
|
6264 Delete function. Already handled by octave_char_matrix class. |
|
6265 |
|
6266 * ov-ch-mat.h (octave_char_matrix::convert_to_str): New function. |
|
6267 |
2448
|
6268 * pager.cc (Fmore): Set page_screen_output to 1.0 or 0.0, not |
|
6269 "true" or "false". |
|
6270 |
2447
|
6271 * ov-ch-mat.cc, ov-struct.cc, ov-struct.h, pr-output.cc, |
|
6272 pt-cmd.cc, pt-const.cc, pt-const.h, pt-fcn.cc, pt-fvc-base.cc, |
|
6273 pt-fvc-base.h, pt-fvc.cc, pt-fvc.h, rand.cc, sighandlers.cc, |
|
6274 variables.cc, variables.h: Delete unused code. |
|
6275 |
2445
|
6276 * octave.cc: Only include pwd.h if HAVE_PWD_H. |
|
6277 |
|
6278 * oct-strstrm.h: Include <string>, not <string.h>. |
|
6279 |
2442
|
6280 * defaults.cc, dirfns.cc, file-io.cc, help.cc, input.cc, |
|
6281 oct-hist.cc, oct-procbuf.cc, oct-procbuf.h, octave.cc, pager.h, |
|
6282 procstream.h, pt-misc.cc, pt-plot.cc, sighandlers.cc, strftime.c, |
|
6283 syscalls.cc, sysdep.cc, syswait.h, toplev.cc, utils.cc, |
|
6284 variables.cc: Only include sys/types.h if HAVE_SYS_TYPES_H. |
|
6285 |
2440
|
6286 * error.h (panic): Use GCC_ATTR_NORETURN macro, not NORETURN. |
|
6287 * toplev.h (clean_up_and_exit): Likewise. |
|
6288 * utils.h (jump_to_top_level): Likewise. |
|
6289 |
2439
|
6290 * derfaults.h.in, defaults.cc (local_arch_lib_dir): New variable. |
|
6291 * defaults.cc (set_default_local_arch_lib_dir): New function. |
|
6292 (install_defaults): Call it. |
|
6293 (exec_path): Use Vlocal_arch_lib_dir here. |
|
6294 * toplev.cc (octave_config_info): Add localarchlibdir to structure. |
|
6295 |
2436
|
6296 Tue Oct 29 15:54:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6297 |
2437
|
6298 * Makefile.in (install-oct): Don't do anything if $(OCT_FILES) is |
|
6299 empty. |
|
6300 |
2436
|
6301 * ov-range.cc (octave_range::index): New Function. |
|
6302 (octave_range::all, octave_range::any, octave_range::is_true): |
|
6303 Make these functions work. |
|
6304 |
|
6305 * ov.cc (octave_value::try_assignment_with_conversion): Remove |
|
6306 left over debugging print statements. |
|
6307 |
|
6308 Mon Oct 28 10:49:03 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6309 |
|
6310 * strftime.c: Add missing #endif for previous change. |
|
6311 |
2435
|
6312 Sun Oct 27 14:06:44 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6313 |
|
6314 * oct-hist.cc (do_history): Rewite option parsing to avoid |
|
6315 (probably bogus) errors from g++ on cygwin32 system. |
|
6316 |
|
6317 * strftime.c: Use autoconf macros TIME_WITH_SYS_TIME and |
|
6318 HAVE_SYS_TIME_H to decide which time.h files to include. |
|
6319 |
|
6320 * oct-stream.h, oct-stream.cc (octave_stream::error, |
|
6321 octave_base_stream::error): Rename errno => err_num. |
|
6322 |
2432
|
6323 Sat Oct 26 10:40:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6324 |
2434
|
6325 * oct-hist.cc (do_history): Move declaration of file inside |
|
6326 conditional. |
|
6327 |
2432
|
6328 * defun.h (DEFVAR_INT): Set eternal flag with (svc_fcn != 0) |
|
6329 instead of (sv_fcn ? 1 : 0) |
|
6330 |
2427
|
6331 Fri Oct 25 01:10:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6332 |
2431
|
6333 * ov-ch-mat.h (octave_char_matrix::any): Return 0.0 instead of false. |
|
6334 (octave_char_matrix::all): Likewise. |
|
6335 |
|
6336 * input.cc (Fecho): When binding value of echo_executing_commands, |
|
6337 cast ECHO_* to double. |
|
6338 |
|
6339 * sighandlers.cc (octave_child_list::do_remove): Delete unused |
|
6340 variable `enlarge'. |
|
6341 |
|
6342 * pt-const.h (tree_constant::tree_constant (const tree_constant&)): |
|
6343 Don't pass arg to tree_fvc constructor. |
|
6344 |
2427
|
6345 * resource.cc (getrusage): [HAVE_GETRUSAGE && RUSAGE_TIMES_ONLY]: |
|
6346 Only fill in time values. |
|
6347 |
|
6348 Thu Oct 24 20:37:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6349 |
|
6350 * parse.y: Comment out the %expect declaration so byacc can |
|
6351 compile this file. |
|
6352 (if_cmd_list): Add missing semicolon. |
|
6353 Include <cstdlib> for getenv if using byacc. |
|
6354 |
|
6355 * ov.h: Move typedefs outside of octave_value class scope to avoid |
|
6356 problem with cygwin32 beta16 compiler. |
|
6357 |
2421
|
6358 Fri Oct 18 13:44:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6359 |
2423
|
6360 * ov.h (octave_value::index): Undo previous change. |
|
6361 * ov.cc (octave_value constructors): Call maybe_mutate() in most |
|
6362 cases. |
|
6363 |
|
6364 * ov-complex.cc (octave_complex::index): Avoid implicit type |
|
6365 conversion back to scalar type. |
|
6366 * ov-scalar.cc (octave_scalar::index): Likewise. |
|
6367 |
2421
|
6368 * ov.h (octave_value::index): Call maybe_mutate() on retval before |
|
6369 returning it. |
|
6370 |
2418
|
6371 Wed Oct 16 12:00:11 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6372 |
2420
|
6373 * ov.h (octave_value::struct_elt_val): New optional arg, silent. |
|
6374 * ov-base.h, ov-base.cc, ov-struct.h, ov-struct.cc: Likewise, but |
|
6375 for the derived classes the arg is required. |
|
6376 |
|
6377 * data.cc (Fstruct_contains): Require arguments to be struct and |
|
6378 string, respectively. Call octave_value::struct_elt_val with |
|
6379 silent flag set. |
|
6380 |
2419
|
6381 * pt-mat.cc (tm_row_const::tm_row_const_rep::eval_error, |
|
6382 tm_row_const::tm_row_const_rep::eval_warning): New functions. |
|
6383 (tm_row_const::tm_row_const (const tree_matrix_row&): Use them to |
|
6384 give better error messages. |
|
6385 |
2418
|
6386 * pt-fvc.cc (tree_identifier::eval): Avoid dereferencing null |
|
6387 object_to_eval. |
|
6388 |
2412
|
6389 Tue Oct 15 11:35:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6390 |
|
6391 * op-cs-cm.cc, op-cs-cs.cc, op-cs-m.cc, op-cs-s.cc |
|
6392 (complex_matrix_conv): New functions. |
|
6393 Install preferred assignment conversion and widening ops. |
|
6394 |
|
6395 * op-s-cm.cc, op-s-cs.cc (complex_matrix_conv): New functions. |
|
6396 Install preferred assignment conversion and widening ops. |
|
6397 |
|
6398 * op-s-m.cc, op-s-s.cc (matrix_conv): New functions. |
|
6399 Install preferred assignment conversion and widening ops. |
|
6400 |
|
6401 * ov.cc (octave_value::try_assignment_with_conversion, |
|
6402 octave_value::convert_and_assign, octave_value::try_assignment): |
|
6403 New functions. |
|
6404 (octave_value::assign): Use them to implement twisted logic for |
|
6405 type conversions in assigments. |
|
6406 |
|
6407 * pt-const.h (tree_constant::maybe_mutate): New function. |
|
6408 * ov.h (octave_value::maybe_mutate): New function. |
|
6409 (octave_value::try_narrowing_conversion): New function. |
|
6410 Use just one typedef for widening_op_fcn and numeric_conv_fcn. |
|
6411 Change all uses. |
|
6412 * ov-base.h, ov-complex.h, ov-complex.cc, ov-cx-mat.h, |
|
6413 ov-cx-mat.cc, ov-range.h, ov-range.cc, ov-re-mat.h, ov-re-mat.cc, |
|
6414 Provide derived class versions of try try_narrowing_conversion(). |
|
6415 |
|
6416 * pr-output.cc (octave_print_internal): Don't bother handing off |
|
6417 to scalar/real versions, even when it would seem appropriate. |
|
6418 |
|
6419 * symtab.cc (symbol_def::define (tree_constant *)): Call |
|
6420 maybe_mutate on constants here. |
|
6421 |
2405
|
6422 Mon Oct 14 11:05:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6423 |
2407
|
6424 * pt-fvc.cc (tree_identifier::eval): If retval is undefined and |
|
6425 the object to eval is a constant, print error message. |
2406
|
6426 |
2405
|
6427 * Makefile (distclean): Remove *.oct too. |
|
6428 |
|
6429 * defun-int.h: Include variables.h here. |
|
6430 |
2403
|
6431 Sun Oct 13 10:52:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6432 |
2404
|
6433 * variables.cc (print_symbol_info_line): Never print negative |
|
6434 diminsions. |
|
6435 |
|
6436 * symtab.h (octave_symbol_record_info): Store const_type as string. |
|
6437 (octave_symbol_record_info::init): Delete. Fix constructors. |
|
6438 (octave_symbol_record_info::type_name): Handle const_type as string. |
|
6439 |
2403
|
6440 * octave.cc (maximum_braindamage): Replace "true" with 1.0 and |
|
6441 "false" with 0.0 in calls to bind_builtin_variable(). |
|
6442 Include sun-utils.h here. |
2404
|
6443 (intern_argv): Also bind __argv__. |
2403
|
6444 |
2391
|
6445 Sat Oct 12 13:40:21 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6446 |
2399
|
6447 * Makefile.in (distclean): Also delete mk-oct-links. |
|
6448 |
|
6449 Fri Oct 11 13:13:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6450 |
2391
|
6451 Changes for Octave's new type system: |
|
6452 |
|
6453 * arith-ops.cc: Delete. |
|
6454 * pt-const.h, pt-const.cc: Massive changes. Most functionality |
|
6455 moved to ov.h, ov.cc, and derived classes. |
|
6456 |
|
6457 * variables.h, variables.cc (octave_variable_reference): New class |
|
6458 for getting references to variables and structure elements used in |
|
6459 assignments or value contexts. |
|
6460 |
|
6461 * symtab.h, symtab.cc (symbol_record::define (const octave_value&), |
|
6462 symbol_record::variable_value, symbol_record::variable_reference): |
|
6463 New functions. |
|
6464 (symbol_record_info::type_name): Rename from type_as_string. |
|
6465 |
|
6466 * pt-fvc-base.h, pt-fvc-base.cc (tree_fvc::increment, |
|
6467 tree_fvc::decrement): New functions to replace |
|
6468 tree_fvc::bump_value. |
|
6469 #if 0 assign and lookup_map_element functions. |
|
6470 |
|
6471 * pt-mvr.cc (tree_multi_assignment_expression::eval): |
|
6472 Generated RHS value is now a tree_constant. |
|
6473 |
|
6474 * pt-exp.h, pt-exp.cc (tree_boolean_expression): New class. |
|
6475 (tree_unary_expression, tree_binary_expression, |
|
6476 tree_boolean_expression): Move codes here from tree_expression. |
|
6477 (tree_simple_assignment_expression): Cope with changes to way of |
|
6478 doing assignments. |
|
6479 |
|
6480 * pt-exp-base.h, pt-exp-base.cc (enum type): Delete codes for |
|
6481 unary and binary ops. |
|
6482 (tree_expression::expression_type): Delete. |
|
6483 (tree_expression::is_logically_true): Hand off to |
|
6484 octave_value::is_true to do real work. |
|
6485 |
|
6486 * pr-output.h, pr-output.cc (any_element_is_inf_or_nan, |
|
6487 all_elements_are_ints): Delete. Call member new functions for |
|
6488 these operations. |
|
6489 (free_format, plus_format, bank_format, hex_format, |
|
6490 compact_format, print_e, print_big_e): Use bool, not int. |
|
6491 (octave_print_internal): Hand off to scalar/real versions when |
|
6492 appropriate. |
|
6493 |
|
6494 * octave.cc (main): Call initialize_types() and install_ops(). |
|
6495 (verbose_usage): Add WWW address to output. |
|
6496 |
|
6497 * parse.y (indirect_ref): Handle by making a tree instead of a |
|
6498 list using new version of tree_indirect_ref class. |
|
6499 |
|
6500 * parse.y (make_boolean_op): New function. Use it instead of |
|
6501 make_binary_op to create trees for && and || ops. |
|
6502 (make_binary_op): Codes come from tree_binary_expression now, |
|
6503 instead of tree_expression. |
|
6504 (make_unary_op): Codes come from tree_unary_expression now, |
|
6505 instead of tree_expression. |
|
6506 (make_boolean_op): Codes come from tree_boolean_expression. |
|
6507 |
|
6508 *parse.y (tree_constant_type): Change type to tree_constant* from |
|
6509 octave_value*, and rename from octave_value_type. Change uses. |
|
6510 |
|
6511 * defun.h (DEFVAR_INT): Pass octave_value not pointer to |
|
6512 octave_value for defn when creating builtin_variable. |
|
6513 |
|
6514 * gripes.h, gripes.cc (gripe_invalid_conversion): Args are |
|
6515 strings, not char*. |
|
6516 (gripe_implicit_conversion, gripe_divide_by_zero): New extern |
|
6517 gripe functions. |
|
6518 |
|
6519 * mkbuiltins: For each file, create a separate static function to |
|
6520 install builtins, then create another single extern function to |
|
6521 call all of them. |
|
6522 |
|
6523 * pt-fcn.cc (tree_function::bind_nargin_and_nargout): |
|
6524 Just pass doubles and let symbol_record::define handle creating |
|
6525 new value. |
|
6526 |
|
6527 * pt-pr-code.cc, pt-pr-code.h (visit_constant): Renamed from |
|
6528 visit_octave_value. |
|
6529 (visit_unary_expression): Use tree_expression::is_prefix_op() |
|
6530 instead of switch on op types. |
|
6531 |
|
6532 * pt-walk.h (visit_constant): Renamed from visit_octave_value. |
|
6533 |
|
6534 * pt-misc.cc (initialize_undefined_elements): Get reference to |
|
6535 tmp, then assign. |
|
6536 * pt-cmd.cc (do_for_loop_once): Likewise, for loop identifier. |
|
6537 |
|
6538 * input.cc (generate_struct_completions, looks_like_struct): Cast |
|
6539 tmp_fvc to tree_constant*, not octave_value*. |
|
6540 (get_user_input): Call print() on retval, not eval(1). |
|
6541 |
|
6542 * help.cc (Ftype): Cast defn to tree_constant*, not octave_value*. |
|
6543 |
|
6544 * balance.cc: Fix docstring. |
|
6545 |
|
6546 * dassl.cc, fsolve.cc, load-save.cc, lsode.cc, npsol.cc, qpsol.cc, |
|
6547 quad.cc: |
|
6548 Include pt-fvc.h. |
|
6549 |
|
6550 * data.cc (Fstruct_contains): call octave_value::struct_elt_val, |
|
6551 not octave_value::lookup_map_element. |
|
6552 |
|
6553 * dirfns.cc (Fcd): Pass directory name as string directly to |
|
6554 bind_builtin_variable instead of creating new octave_value. |
|
6555 |
|
6556 * toplev.cc: Include pt-fvc.h and lo-mappers.h |
|
6557 |
|
6558 * data.cc, error.cc, file-io.cc, load-save.cc, pager.cc, |
|
6559 pt-mat.cc, pt-plot.cc, syscalls.cc, toplev.cc: |
|
6560 Include variables.h. |
|
6561 |
|
6562 * Array-tc.cc, Map-tc.cc, SLList-misc.cc SLList-tc.cc, data.cc, |
|
6563 defaults.cc, dynamic-ld.cc, error.cc, gripes.cc, lex.l, octave.cc, |
|
6564 oct-map.h, oct-map.cc, oct-obj.h, pt-cmd.cc, pt-exp.cc, pt-fcn.cc, |
|
6565 pt-fvc-base.cc, pt-mat.cc, pt-misc.cc, pt-mvr-base.cc, pt-mvr.h, |
|
6566 resource.cc, strfns.cc, sysdep.cc, timefns.cc, toplev.cc: |
|
6567 Include ov.h instead of pt-const.h. |
|
6568 |
|
6569 * xpow.cc (any_element_is_negative): Delete. |
|
6570 (xpow and elem_xpow functions): Check conformance here. |
|
6571 |
|
6572 * xdiv.cc (mx_leftdiv_conform, mx_div_conform): |
|
6573 Now template-based, taking Matrices instead of dimensions as args. |
|
6574 Change all callers. |
|
6575 |
|
6576 * op-cm-cm.cc, op-cm-cm.h, op-cm-cs.cc, op-cm-cs.h, op-cm-m.cc, |
|
6577 op-cm-m.h, op-cm-s.cc, op-cm-s.h, op-cs-cm.cc, op-cs-cm.h, |
|
6578 op-cs-cs.cc, op-cs-cs.h, op-cs-m.cc, op-cs-m.h, op-cs-s.cc, |
|
6579 op-cs-s.h, op-m-cm.cc, op-m-cm.h, op-m-cs.cc, op-m-cs.h, op-m-m.cc, |
|
6580 op-m-m.h, op-m-s.cc, op-m-s.h, op-s-cm.cc, op-s-cm.h, op-s-cs.cc, |
|
6581 op-s-cs.h, op-s-m.cc, op-s-m.h, op-s-s.cc, op-s-s.h, |
|
6582 op-str-str.cc, op-str-str.h, ops.cc, ops.h, ov-base.cc, ov-base.h, |
|
6583 ov-ch-mat.cc, ov-ch-mat.h, ov-colon.cc, ov-colon.h, ov-complex.cc, |
|
6584 ov-complex.h, ov-cx-mat.cc, ov-cx-mat.h, ov-range.cc, ov-range.h, |
|
6585 ov-re-mat.cc, ov-re-mat.h, ov-scalar.cc, ov-scalar.h, ov-str-mat.cc, |
|
6586 ov-str-mat.h, ov-struct.cc, ov-struct.h, ov-typeinfo.cc, |
|
6587 ov-typeinfo.h, ov-va-args.cc, ov-va-args.h, ov.cc, ov.h: |
|
6588 New files for Octave's new type system. |
|
6589 * Makefile.in: Add them to the appropriate lists. |
|
6590 |
|
6591 Sat Sep 14 21:58:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6592 |
|
6593 * mkbuiltins: Use .df instead of .def. |
|
6594 Write one function for each .df file, then call them |
|
6595 all in install_builtin_functions(). |
|
6596 * Makefile.in: Handle .df instead of .def. |
|
6597 |
|
6598 * balance.cc (balance): Fix typo in doc string. |
|
6599 |
|
6600 Wed Aug 28 21:01:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6601 |
|
6602 * octave.cc (verbose_usage): Include WWW address and bug-octave |
|
6603 mailing list address. |
|
6604 |
2354
|
6605 Tue Aug 20 17:41:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6606 |
2358
|
6607 * Makefile.in: Only define pattern rules for making .oct files if |
|
6608 OCTAVE_LITE is true. |
|
6609 Only add pic/ to $(TI_OBJ) if $(SHARED_LIBS) is true. |
|
6610 (stamp-picdir): Only create a pic subdirectory if SHARED_LIBS or |
|
6611 OCTAVE_LITE is true AND CPICFLAG or CXXPICFLAG is not empty. |
|
6612 |
2354
|
6613 * minmax.cc (Fmin, Fmax): Deal with changes to Matrix class |
|
6614 min/max methods. |
|
6615 |
2345
|
6616 Thu Jul 25 01:42:38 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6617 |
2348
|
6618 * input.cc (generate_possible_completions): Force the names to be |
|
6619 unique. |
|
6620 |
2345
|
6621 * load-save.cc (read_mat_binary_data): Expect to read terminating |
|
6622 NUL character in the variable name. |
|
6623 (save_mat_binary_data): Likewise, save it here. |
|
6624 |
2341
|
6625 Wed Jul 24 05:08:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6626 |
2343
|
6627 * lsode.cc (Flsode): Don't set the return value if an error |
|
6628 occurred during integration. |
2344
|
6629 * dassl.cc (Fdassl): Likewise. |
2343
|
6630 |
2341
|
6631 * file-io.cc (symbols_of_file_io): Redefine values of SEEK_SET, |
|
6632 SEEK_CUR, and SEEK_END for Matlab compatibility. |
|
6633 * oct-stream.cc (seek): Check for compatible values of ORIGIN arg. |
|
6634 Also handle "bof", "cof", and "eof". |
|
6635 |
2338
|
6636 Fri Jul 19 15:24:36 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6637 |
|
6638 * pt-const.cc: When creating octave_value_reps from ComplexMatrix |
|
6639 values, check to see if all the elements are actually real. |
|
6640 |
2330
|
6641 Tue Jul 16 10:53:42 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6642 |
2341
|
6643 * input.cc (decode_prompt_string): Swap meanings of \h and \H. |
2330
|
6644 |
|
6645 Mon Jul 15 16:01:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6646 |
|
6647 * toplev.cc (run_command_and_return_output): Renamed from do_system. |
|
6648 (Fsystem): Make `system ("emacs")' work as one would expect. |
|
6649 |
|
6650 Sun Jul 14 17:34:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6651 |
|
6652 * file-io.cc (Ffopen, Ffread, Ffwrite): Update doc strings, |
|
6653 correctly handle default architecture and precision args. |
|
6654 |
|
6655 * load-save.cc (mopt_digit_to_float_format): Rename from |
|
6656 get_floating_point_format. |
|
6657 (float_format_to_mopt_digit): New function. |
|
6658 |
|
6659 * oct-stream.cc (octave_base_stream::read, octave_base_stream::write): |
|
6660 Simplify by calling Matrix::read and Matrix::write to do real work |
|
6661 of reading, writing, and format conversion. |
|
6662 |
|
6663 * oct-stream.h (octave_base_stream): Move data_type enum to |
|
6664 liboctave/data-conv.h. Use float_format from |
|
6665 liboctave/mach-info.h instead of arch_type enum. |
|
6666 |
|
6667 * sysdep.h, sysdep.cc (octave_words_big_endian, ten_little_endians): |
|
6668 Delete. Now part of oct_mach_info class in liboctave. |
|
6669 |
|
6670 Tue Jul 9 11:18:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6671 |
|
6672 * arith-ops.cc, balance.cc, dassl.cc, data.cc, filter.cc, find.cc, |
|
6673 fsolve.cc, load-save.cc, log.cc, lsode.cc, minmax.cc, npsol.cc, |
|
6674 oct-obj.cc, oct-stream.cc, pr-output.cc, pt-cmd.cc, pt-const.cc, |
|
6675 pt-fvc.cc, pt-plot.cc, quad.cc, rand.cc, sighandlers.cc, sort.cc, |
|
6676 syscalls.cc, unwind-prot.cc, xdiv.cc, xpow.cc: |
|
6677 When indexing arrays, use operator() instead of elem() so that |
|
6678 bounds checking can be done consistently. |
|
6679 |
|
6680 Mon Jun 24 02:13:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6681 |
|
6682 * Makefile.in (install-oct): Use INSTALL_PROGRAM, instead of |
|
6683 INSTALL_DATA for installing shared libraries. |
|
6684 |
|
6685 * lex.l (grab_help_text): Ignore all initial comment characters, |
|
6686 not just the first. |
|
6687 * variables.cc (gobble_leading_white_space): Likewise. |
|
6688 |
|
6689 Sat Jun 22 22:43:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6690 |
|
6691 * input.h, input.cc (octave_completion_matches_called): New varaible. |
|
6692 (Fcompletion_matches): Set it to true on a successful call. |
|
6693 * toplev.cc (main_loop): If octave_completion_matches_called is |
|
6694 true, don't increment current_command_number. |
|
6695 |
|
6696 Thu Jun 13 03:52:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6697 |
|
6698 * variables.cc (is_mapper_function_name, |
|
6699 is_builtin_function_name): New functions. |
|
6700 (Fdocument): Use them. |
|
6701 Define as regular function, not a text style function. |
|
6702 |
|
6703 Thu Jun 6 00:09:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6704 |
|
6705 * pt-plot.cc: Handle new built-in variable `gnuplot_has_frames'. |
|
6706 |
|
6707 Wed Jun 5 14:45:04 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6708 |
|
6709 * input.cc (decode_prompt_string): \h now means the whole host |
|
6710 name and \H is the host name up to the first `.'. |
|
6711 |
|
6712 Thu May 30 23:41:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6713 |
|
6714 * fn-cache.cc (octave_fcn_file_name_cache::do_list): Always |
|
6715 recompute the lists of function files instead of trying to cache |
|
6716 them. |
|
6717 |
|
6718 Tue May 28 12:05:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6719 |
|
6720 * utils.cc (warn_old_style_preference): New function. |
|
6721 (check_preference): Use it. |
|
6722 |
|
6723 * fn-cache.h: Include <ctime> here. |
|
6724 |
|
6725 Fri May 24 00:57:14 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6726 |
|
6727 * input.cc (completion_matches): Don't return empty string_vectors. |
|
6728 |
|
6729 * octave.cc (long_opts): Add braindead. |
|
6730 |
|
6731 Thu May 23 01:49:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6732 |
|
6733 * input.cc (gnu_readline): New optional arg, force_readline. |
|
6734 (get_user_input): Use it. |
|
6735 |
|
6736 * pt-const.cc (OCT_VAL_REP::assign): If converting the rhs to a |
|
6737 numeric value, convert a copy, not the actual object. |
|
6738 (OCT_VAL_REP::do_index): Prevent s([]) from resulting in a string |
|
6739 with zero rows. |
|
6740 |
|
6741 * mappers.cc: Handle toascii here. |
|
6742 * strfns.cc: Not here. |
|
6743 |
|
6744 * mappers.cc: Handle tolower and toupper here. |
|
6745 * mappers.h: Rename can_return_complex_for_real to flag and |
|
6746 overload meaning for ch_mapper. |
|
6747 * pt-fvc.cc (apply_mapper_fcn): Handle overloaded meaning. |
|
6748 |
|
6749 * syscalls.cc (stat): Return 3 values instead of just 1. |
|
6750 (lstat): Likewise. |
|
6751 |
|
6752 Wed May 22 02:34:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6753 |
|
6754 * pt-const.cc (OCT_VAL_REP::make_numeric): For string to number |
|
6755 conversions, correctly set type tag before calling force_numeric. |
|
6756 (do_binary_op): Force string to number conversion if both args are |
|
6757 strings and we are doing some sort of comparison operation. |
|
6758 |
|
6759 * Makefile.in (stamp-tinst, stamp-interp): Use SH_TERMLIBS and |
|
6760 SH_LIBS instead of TERMLIBS and LIBS. |
|
6761 |
|
6762 * pt-const.cc (do_unary_op): Add special case to handle |
|
6763 transposing strings. |
|
6764 |
|
6765 * pt-mat.cc (Vstring_fill_char): New variable. |
|
6766 (symbols_of_pt_mat): DEFVAR it. |
|
6767 |
|
6768 * input.cc (generate_struct_completions, |
|
6769 generate_possible_completions): Return string_vector, not char **. |
|
6770 Change all callers. |
|
6771 |
|
6772 * pt-const.cc (lookup_map_element): Use substr() correctly. |
|
6773 |
|
6774 Tue May 21 21:37:17 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6775 |
|
6776 * oct.h: New file. |
|
6777 * Makefile.in (INCLUDES): Add it to the list. |
|
6778 |
|
6779 * octave.cc: New args --no-site-file and --no-init-file. Delete |
|
6780 --ignore-init-file. The flag --norc (-f) implies both |
|
6781 --no-site-file and --no-init-file. |
|
6782 |
|
6783 Fri May 17 01:54:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6784 |
|
6785 * input.cc (Fcompletion_matches): New function. |
|
6786 |
|
6787 * utils.cc (get_fcn_file_names): Delete. |
|
6788 * help.cc (simple_help): Use new file name cache instead of |
|
6789 calling get_fcn_file_names. |
|
6790 * variables.cc (make_name_list): Likewise. |
|
6791 |
|
6792 * fn-cache.h, fn-cache.cc, Map-fnc.cc: New files. |
|
6793 * Makefile.in: Add them to the lists. |
|
6794 |
|
6795 * Makefile.in (uninstall): Install in octincludedir, not includedir. |
|
6796 |
|
6797 * pt-plot.h: Include <csignal> here. |
|
6798 |
|
6799 Thu May 16 10:52:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6800 |
|
6801 * oct-stream.cc (octave_stream::oscanf, octave_base_stream::oscanf, |
|
6802 octave_base_stream::do_oscanf): New functions for backward |
|
6803 compatibility with older versions of Octave. |
|
6804 (scanf_format_elt, scanf_format_list): Keep track of width specifier. |
|
6805 * file-io.cc (Fscanf): New function. |
|
6806 (Fscanf, Ffscanf, Fsscanf): Handle compatibility arg. |
|
6807 |
|
6808 Wed May 15 01:00:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6809 |
|
6810 * oct-stream.cc (do_scanf): If doing '%c' conversion, unset |
|
6811 ios::skipws on input stream. |
|
6812 |
|
6813 * sighandlers.h, sighandlers.cc (octave_child, octave_child_list): |
|
6814 New classes for keeping track of the child processes we create. |
|
6815 (sigchld_handler): Check in octave_child_list to see if there is |
|
6816 anything we can do for the child that died. |
|
6817 * pager.cc: Register child pager process. |
|
6818 * pt-plot.cc: Likewise, for the plotter. |
|
6819 * Array-oc.cc: New file |
|
6820 * Makefile.in (TI_SRC): Add it to the list. |
|
6821 |
|
6822 * pager.cc (do_sync): Don't check error_state. |
|
6823 (flushing_output_to_pager): New static variable. |
|
6824 (flush_octave_stdout): Use it to avoid doing anything if already |
|
6825 flushing output. |
|
6826 |
|
6827 * sighandlers.cc (sigchld_handler): Call warning instead of |
|
6828 writing directly to cerr. |
|
6829 (sigpipe_handler): Call warning instead of message. |
|
6830 |
|
6831 * octave.cc (main): Call install_signal_handlers, |
|
6832 initialize_file_io, initialize_symbol_tables, and install_builtins |
|
6833 before parsing command line options. |
|
6834 |
|
6835 * user-prefs.h, user-prefs.cc: Delete. |
|
6836 |
|
6837 * utils.cc (check_preference): Move here. |
|
6838 * user-prefs.cc: From here. |
|
6839 |
|
6840 * defaults.cc: New file. Move initialization stuff from |
|
6841 variables.cc. Move DEFVARS for EDITOR, EXEC_PATH, LOADPATH, |
|
6842 IMAGEPATH, and OCTAVE_VERSION here. |
|
6843 |
|
6844 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6845 INFO_FILE and INFO_PROGRAM. |
|
6846 * help.cc: Move all of that here. |
|
6847 (symbols_of_help): Add DEFVARS for INFO_FILE and INFO_PROGRAM. |
|
6848 |
|
6849 Tue May 14 00:23:06 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6850 |
|
6851 * pager.cc (do_sync): Be more defensive about sending stuff to the |
|
6852 external pager. |
|
6853 * sighandlers.cc (sigchld_handler): For now, only wait for |
|
6854 octave_pager_pid. Don't call error(). Do set octave_pager_pid to |
|
6855 -1 if the pager process no longer exists. |
|
6856 |
|
6857 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6858 PWD. |
|
6859 * dirfns.cc: Move all of that here. |
|
6860 (symbols_of_dirfns): New function. |
|
6861 * variables.cc (install_builtin_variables): Call it. |
|
6862 |
|
6863 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6864 default_save_format and save_precision. |
|
6865 * load-save.cc: Move all of that here. |
|
6866 (symbols_of_load_save): New function. |
|
6867 * variables.cc (install_builtin_variables): Call it. |
|
6868 |
|
6869 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6870 warn_divide_by_zero. |
|
6871 * arith-ops.cc: Move all of that here. |
|
6872 (symbols_of_arith_ops): New function. |
|
6873 * variables.cc (install_builtin_variables): Call it. |
|
6874 |
|
6875 * mappers.cc: Add wrappers for ctype is* functions so that they |
|
6876 will work on systems that only define them as macros. |
|
6877 |
|
6878 Mon May 13 00:27:08 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6879 |
|
6880 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6881 suppress_verbose_help_message. |
|
6882 * help.cc: Move all of that here. |
|
6883 (symbols_of_help): New function. |
|
6884 * variables.cc (install_builtin_variables): Call it. |
|
6885 |
|
6886 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6887 treat_neg_dim_as_zero. |
|
6888 * pt-const.cc: Move all of that here. |
|
6889 |
|
6890 * pager.cc (octave_pager_stream::do_sync): Don't return early if |
|
6891 not interactive. |
|
6892 |
|
6893 * data.h: New file. |
|
6894 * Makefile.in (INCLUDES): Add it to the list. |
|
6895 * data.cc (symbols_of_data): New function. Move definition of I, |
|
6896 Inf, J, NaN, e, eps, i, inf, j, nan, pi, realmin, and realmax here. |
|
6897 * variables.cc: From here. |
|
6898 (install_builtin_variables): Call symbols_of_data. |
|
6899 |
|
6900 * file-io.cc (symbols_of_file_io): New function. Move definition |
|
6901 of SEEK_CUR, SEEK_END, SEEK_SET, stdin, stdout, stderr here. |
|
6902 * variables.cc: From here. |
|
6903 (install_builtin_variables): Call symbols_of_file_io. |
|
6904 |
|
6905 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6906 do_fortran_indexing, implicit_str_to_num_ok, |
|
6907 ok_to_lose_imaginary_part, prefer_column_vectors, |
|
6908 prefer_zero_one_indexing, print_answer_id_name, |
|
6909 propagate_empty_matrices, resize_on_range_error, and |
|
6910 struct_levels_to_print. |
|
6911 * pt-const.cc: Move all of that here. |
|
6912 (symbols_of_pt_const): New function. |
|
6913 * variables.cc (install_builtin_variables): Call it. |
|
6914 * pt-fvc.cc (tree_identifier::assign): Use Vresize_on_range_error |
|
6915 instead of user_pref.resize_on_range_error here. |
|
6916 * load-save.cc (save_mat_binary_data): Use Vimplicit_str_to_num_ok |
|
6917 instead of user_pref.implicit_str_to_num_ok here. |
|
6918 * utils.cc (empty_arg): Use Vpropagate_empty_matrices instead of |
|
6919 user_pref.propagate_empty_matrices here. |
|
6920 * pt-exp-base.cc (tree_expression::is_logically_true): Likewise.. |
|
6921 |
|
6922 * pt-fcn.cc (symbols_of_pt_fcn): Also move DEFVAR for |
|
6923 default_return_value here. |
|
6924 |
|
6925 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6926 ps1, ps2, ps4, and completion_append_char. |
|
6927 * input.cc: Move all of that here. |
|
6928 (symbols_of_input): New function. |
|
6929 * variables.cc (install_builtin_variables): Call it. |
|
6930 * pt-pr-code.cc (indent): Use Vps4 instead of user_pref.ps4 here. |
|
6931 * help.cc (Ftype): Also here. |
|
6932 |
|
6933 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6934 automatic_replot, gnuplot_binary, and gnuplot_has_multiplot. |
|
6935 * pt-plot.cc: Move all of that here. |
|
6936 (symbols_of_pt_plot): New function. |
|
6937 * variables.cc (install_builtin_variables): Call it. |
|
6938 |
|
6939 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6940 beep_on_error. |
|
6941 * error.cc: Move all of that here. |
|
6942 (symbols_of_error): New function. |
|
6943 * variables.cc (install_builtin_variables): Call it. |
|
6944 |
|
6945 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6946 empty_list_elements_ok. |
|
6947 * pt-mat.cc: Move all of that here. |
|
6948 (symbols_of_pt_mat): New function. |
|
6949 * variables.cc (install_builtin_variables): Call it. |
|
6950 |
|
6951 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6952 define_all_return_values, return_last_computed_value, and |
|
6953 silent_functions. |
|
6954 * pt-fcn.cc: Move all of that here. |
|
6955 (symbols_of_pt_fcn): New function. |
|
6956 * variables.cc (install_builtin_variables): Call it. |
|
6957 |
|
6958 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6959 whitespace_in_literal_matrix. |
|
6960 * lex.l: Move all of that here. |
|
6961 (symbols_of_lex): New function. |
|
6962 * variables.cc (install_builtin_variables): Call it. |
|
6963 |
|
6964 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6965 warn_assign_as_truth_value, warn_comma_in_global_decl, |
|
6966 warn_function_name_clash, and warn_missing_semicolon. |
|
6967 * parse.y: Move all of that here. |
|
6968 (symbols_of_parse): New function. |
|
6969 * variables.cc (install_builtin_variables): Call it. |
|
6970 |
|
6971 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6972 output_precision, output_max_field_width, print_empty_dimensions, |
|
6973 and split_long_rows. |
|
6974 * pr-output.cc: Move all of that here. |
|
6975 (symbols_of_pr_output): New function. |
|
6976 * variables.cc (install_builtin_variables): Call it. |
|
6977 |
|
6978 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6979 page_screen_output, page_output_immediately, and pager_binary. |
|
6980 * pager.cc: Move all of that here. |
|
6981 |
|
6982 * user-prefs.h (check_preference): Provide declaration. |
|
6983 * user-prefs.cc (check_preference): Make external. |
|
6984 |
|
6985 * toplev.cc (Foctave_config_info): New function. |
|
6986 |
|
6987 * oct-conf.h.in: New file |
|
6988 * Makefile.in (oct-conf.h): New target. |
|
6989 Add it to the appropriate lists. |
|
6990 |
|
6991 * sighandlers.cc (sigchld_handler): Don't complain about wait |
|
6992 returning a negative value. |
|
6993 |
|
6994 * file-io.cc (Fsscanf, Fsprintf): Pass true for second arg of |
|
6995 octave_stream constructor. |
|
6996 |
|
6997 * oct-stream.h (octave_stream): New field, preserve. |
|
6998 (octave_stream::~octave_stream): If preserve, don't delete rep. |
|
6999 |
|
7000 * pager.cc (symbols_of_pager): Set default for |
|
7001 page_output_immediately to 0. |
|
7002 |
|
7003 * toplev.cc (do_system): Correctly handle return_output. |
|
7004 Append ends to output_buf before calling str(). |
|
7005 |
|
7006 * variables.cc: If M_PI and M_E are available, use them. |
|
7007 |
|
7008 * mk-oct-links.in (links_dir): If old link exists, delete it first. |
|
7009 |
|
7010 Sun May 12 01:46:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7011 |
|
7012 * Makefile.in (DISTFILES): List defaults.h.in and oct-gperf.h here. |
|
7013 (INCLUDES): Not here. |
|
7014 (install-inc): New target. |
|
7015 (uninstall): Also delete libraries and include files. |
|
7016 (install-inc): If linkdir is a directory, leave it alone. |
|
7017 (TERMLIBS, LIBPLPLOT, LIBDLFCN): Don't substitute here (now in |
|
7018 Makeconf). |
|
7019 |
|
7020 * oct-stream.cc (octave_base_stream::do_read): Provide initial |
|
7021 value for tmp var. |
|
7022 |
|
7023 * pt-walk.h, pt-pr-code.h, pt-pr-code.cc: New tree-walking classes. |
|
7024 * Makefile.in: Add them to the appropriate lists. |
|
7025 * pt-fvc-base.h, pt-exp-base.cc, pt-fvc-base.cc, pt-mvr-base.cc, |
|
7026 pt-base.cc, pt-mvr.cc, pt-mat.h, pt-mat.cc, pt-fvc.cc, |
|
7027 pt-const.cc, pt-cmd.cc, pt-const.h, pt-misc.cc, pt-plot.cc, |
|
7028 pt-fcn.cc, pt-plot.h, pt-mvr.h, pt-mvr-base.h, pt-misc.h, |
|
7029 pt-fcn.h, pt-exp.h, pt-exp.cc, pt-exp-base.h, pt-fvc.h, pt-cmd.h, |
|
7030 pt-base.h: |
|
7031 Replace print_code stuff with accept() functions. |
|
7032 Add member access functions where necessary. |
|
7033 * help.cc (Ftype): Update to use new method of walking trees to |
|
7034 print text representation of user-defined functions. |
|
7035 |
|
7036 * file-io.cc (Ffscanf): Update doc string. |
|
7037 (Fsscanf): Likewise. |
|
7038 |
|
7039 * oct-stream.cc (octave_base_stream::do_read): Correctly set max_size. |
|
7040 Pad mval with zeros on final resize. |
|
7041 (octave_base_stream::do_scanf): Likewise. |
|
7042 (do_scanf_conv): Correctly resize mval. |
|
7043 |
|
7044 Sat May 11 05:14:09 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7045 |
|
7046 * pager.cc (octave_pager_buf::sync): Correctly set bypass_pager. |
|
7047 |
|
7048 * lex.l (<MATRIX>{SNLCMT}*\]{S}*): Match SNLCMT, not just SNL. |
|
7049 |
|
7050 Fri May 3 11:05:30 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7051 |
|
7052 * pt-const.cc (OCT_VAL_REP::set_index): Complain if type can't be |
|
7053 indexed. |
|
7054 |
|
7055 * input.cc (get_user_input): Don't increment input line number if |
|
7056 input is coming from eval string. |
|
7057 |
|
7058 * user-prefs.cc: Allow empty strings for prompts. |
|
7059 |
|
7060 Thu May 2 10:50:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7061 |
|
7062 * pt-mvr.h (class tree_oct_obj): Declare values data member const. |
|
7063 |
|
7064 Sun Apr 28 03:16:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7065 |
|
7066 * user-prefs.h (user_preferences): New field, |
|
7067 `page_output_immediately'. |
|
7068 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7069 (page_output_immediately): New function. |
|
7070 * pager.cc (syms_of_pager): Add DEFVAR. |
|
7071 (really_flush_to_pager): New file-scope variable. |
|
7072 (flush_octave_stdout): Set and restore it. |
|
7073 (octave_pager_buf::sync): Check it, user_pref.page_screen_output, |
|
7074 and user_pref.page_output_immediately to decide when to really |
|
7075 flush output. |
|
7076 (more_than_a_screenful): New function. If paging but not |
|
7077 immediately, then check this too. |
|
7078 |
|
7079 * pager.cc (default_pager): Move here from variables.cc. If pager |
|
7080 is less and LESS is not in the environment, append useful flags. |
|
7081 (symbols_of_pager): New function. |
|
7082 * variables.cc (install_builtin_variables): Call it. |
|
7083 Delete pager-related DEFVARs. |
|
7084 |
|
7085 * syswait.h (WIFSIGNALLED): Define if sys/wait.h doesn't. |
|
7086 |
|
7087 * sighandlers.cc: Handle SIGCHLD. |
|
7088 |
|
7089 * pager.cc, pager.h: Rewrite. |
|
7090 * pt-mvr.cc, pt-misc.cc, pt-fcn.cc, pt-const.cc, oct-hist.cc, |
|
7091 file-io.cc, help.cc, variables.cc, qpsol.cc, dassl.cc, quad.cc, |
|
7092 npsol.cc, lsode.cc, fsolve.cc, load-save.cc, dirfns.cc, octave.cc, |
|
7093 toplev.cc, error.cc, input.cc: |
|
7094 Write to octave_stdout and octave_diary instead of calling |
|
7095 maybe_page_output() or maybe_write_to_diary_file(). |
|
7096 |
|
7097 * oct-procbuf.h, oct-procbuf.cc: New files. |
|
7098 * procstream.h (class procstreambase): Use octave_procbuf instead |
|
7099 of procbuf from libg++, so we can get pids of subprocesses. |
|
7100 |
|
7101 Fri Apr 26 01:21:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7102 |
|
7103 * pt-const.cc (OCT_VAL_REP::do_index): Call maybe_mutate() before |
|
7104 returning. |
|
7105 |
|
7106 * mappers.h (struct Mapper_fcn): Delete. |
|
7107 (struct builtin_mapper_function): New field ch_mapper. |
|
7108 * pt-fvc.h (tree_builtin): Convert type of mapper_fcn from |
|
7109 Mapper_fcn to builtin_mapper_function. |
|
7110 * variables.cc (install_builtin_mapper): Likewise, for arg. |
|
7111 Simplify, since we don't have to do the copying ourselves now. |
|
7112 * pt-fvc.cc (apply_mapper_function): Handle ch_mapper case. |
|
7113 * defun.h (DEFUN_MAPPER): Likewise. |
|
7114 * mappers.cc (install_builtin_mappers): Likewise. |
|
7115 Add ctype is* functions here. |
|
7116 |
|
7117 Thu Apr 25 00:57:06 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7118 |
|
7119 * arith-ops.h, defun-int.h, defun.h, dynamic-ld.h, gripes.h, |
|
7120 load-save.h, oct-map.h, oct-obj.h, oct-stream.h, pt-cmd.h, |
|
7121 pt-const.h, pt-exp-base.h, pt-exp.h, pt-fcn.h, pt-fvc-base.h, |
|
7122 pt-fvc.h, pt-mat.h, pt-misc.h, pt-mvr-base.h, pt-mvr.h, pt-plot.h, |
|
7123 symtab.h, toplev.h, utils.h, variables.h, xpow.h, Array-tc.cc, |
|
7124 Map-i.cc, Map-tc.cc, SLList-tc.cc, arith-ops.cc, balance.cc, |
|
7125 bogus.cc, chol.cc, colloc.cc, dassl.cc, data.cc, det.cc, |
|
7126 dirfns.cc, eig.cc, error.cc, expm.cc, fft.cc, fft2.cc, file-io.cc, |
|
7127 filter.cc, find.cc, fsolve.cc, fsqp.cc, givens.cc, gripes.cc, |
|
7128 help.cc, hess.cc, ifft.cc, ifft2.cc, input.cc, inv.cc, |
|
7129 load-save.cc, log.cc, lpsolve.cc, lsode.cc, lu.cc, minmax.cc, |
|
7130 npsol.cc, oct-hist.cc, oct-obj.cc, oct-stream.cc, pager.cc, |
|
7131 pinv.cc, pr-output.cc, pt-cmd.cc, pt-const.cc, pt-exp-base.cc, |
|
7132 pt-exp.cc, pt-fcn.cc, pt-fvc-base.cc, pt-fvc.cc, pt-mat.cc, |
|
7133 pt-misc.cc, pt-mvr-base.cc, pt-mvr.cc, pt-plot.cc, qpsol.cc, |
|
7134 qr.cc, quad.cc, qzval.cc, rand.cc, resource.cc, schur.cc, sort.cc, |
|
7135 strfns.cc, svd.cc, syl.cc, symtab.cc, syscalls.cc, sysdep.cc, |
|
7136 timefns.cc, toplev.cc, utils.cc, variables.cc, xpow.cc, parse.y: |
|
7137 Rename tree_constant -> octave_value. |
|
7138 Rename Octave_object -> octave_value_list. |
|
7139 |
|
7140 Wed Apr 24 22:15:34 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7141 |
|
7142 * toplev.cc (Fsystem): Merge functionality of async_system and |
|
7143 sync_system. |
|
7144 |
|
7145 * oct-fstrm.h, oct-iostrm.h, oct-prcstrm.h, oct-stdstrm.h, |
|
7146 oct-stream.h, oct-strstrm.h, oct-fstrm.cc, oct-iostrm.cc, |
|
7147 oct-prcstrm.cc, oct-stdstrm.cc, oct-stream.cc, oct-strstrm.cc, |
|
7148 Array-os.cc: New files. |
|
7149 * Makefile.in: Add them to the appropriate lists. |
|
7150 * file-io.cc: Rewrite to use new stream classes. |
|
7151 |
|
7152 Tue Apr 23 18:59:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7153 |
|
7154 * gripes.cc (gripe_not_supported): New function. |
|
7155 |
|
7156 * toplev.cc (do_octave_atexit, Fatexit): New functions. |
|
7157 (octave_atexit_functions): New file-scope variable. |
|
7158 * octave.cc (main): Register do_octave_atexit with atexit. |
|
7159 |
|
7160 * variables.cc (install_builtin_variables): Call |
|
7161 symbols_of_syscalls here. |
|
7162 |
|
7163 * syscalls.h, syscalls.cc: New files. |
|
7164 |
|
7165 Mon Apr 22 21:14:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7166 |
|
7167 * syscalls.cc: New file. |
|
7168 (Flstat, Fmkfifo, Fstat, Funlink, Fwait, Fwaitpid): Move here. |
|
7169 * file-io.cc: From here. |
|
7170 * Makefile.in (SOURCES): Add syscalls.cc to the list. |
|
7171 |
|
7172 Wed Apr 17 18:34:10 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7173 |
|
7174 * file-info.h, file-info.cc: Delete files. |
|
7175 * Makefile.in: Remove from lists. |
|
7176 |
|
7177 * toplev.cc (Fquit): Accept exit status argument. |
|
7178 (Fflops): Delete (now a function file). |
|
7179 |
|
7180 Thu Apr 11 16:20:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7181 |
|
7182 * lex.l: Recognize `.'. |
|
7183 Update current_input_column even for unrecognized characters. |
|
7184 Return LEXICAL_ERROR for unrecognized characters. |
|
7185 |
|
7186 Mon Apr 8 19:59:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7187 |
|
7188 * variables.cc (install_builtin_variables): Split into several |
|
7189 functions to make compiling with g++ go faster and consume less |
|
7190 memory. |
|
7191 |
|
7192 Sun Apr 7 16:25:35 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7193 |
|
7194 * load-save.cc (Fsave): Print usage if i == argc. |
|
7195 (Fload): Likewise. |
|
7196 |
|
7197 Sat Apr 6 21:26:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7198 |
|
7199 * Makefile.in (clean): Also delete pic/*.o |
|
7200 (maintainer-clean, distclean): Also remove stamp-picdir, |
|
7201 stamp-tinst, stamp-interp, and pic directory. |
|
7202 (stamp-prereq): New target. |
|
7203 |
|
7204 Wed Apr 3 11:19:30 1996 Rick Niles <niles@axp745.gsfc.nasa.gov> |
|
7205 |
|
7206 * resource.cc: Don't make including sys/resource.h and sys/times.h |
|
7207 mutually exclusive. |
|
7208 |
|
7209 Fri Mar 29 13:43:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7210 |
|
7211 * Makefile.in (distclean): Delete so_locations, which is created |
|
7212 on DEC Alpha systems. |
|
7213 |
|
7214 Thu Mar 28 02:53:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7215 |
|
7216 * utils.h (undo_string_escape): Provide extern declaration here. |
|
7217 |
|
7218 * lex.l (NL): Allow \r\n as new line character. |
|
7219 (.): Complain if invalid character is found on input |
|
7220 |
|
7221 Fri Mar 22 03:47:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7222 |
|
7223 * resource.cc (getrusage): If getrusage is missing, try using |
|
7224 times to at least fill in the cpu time values. If neither one is |
|
7225 available, return 0 for cpu times instead of NaN. |
|
7226 |
|
7227 * sighandlers.cc (octave_signal_mask): New file-scope variable. |
|
7228 (octave_save_signal_mask, octave_restore_signal_mask): New functions. |
|
7229 * toplev.cc (main_loop): Use them. |
|
7230 |
|
7231 Wed Mar 20 01:21:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7232 |
|
7233 * utils.cc (get_fcn_file_names (const string&, int)): Resize |
|
7234 retval to value of k, not i. |
|
7235 (get_fcn_file_names (int)): In loop for copying names to retval, |
|
7236 don't increment j twice. |
|
7237 |
|
7238 Mon Mar 18 22:27:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7239 |
|
7240 * Makefile.in ($(MAKEDEPS)): Depend on oct-gperf.h. |
|
7241 |
|
7242 Fri Mar 1 18:15:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7243 |
|
7244 * fsolve.cc (fsolve_options): Delete unused argument nargout. |
|
7245 |
|
7246 * filter.cc: Use MArray instead of Array so that automatic |
|
7247 conversions will work again. |
|
7248 |
|
7249 Tue Feb 27 04:49:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7250 |
|
7251 * variables.cc (looks_like_octave_copyright): Make the strings |
|
7252 that we are trying to match both have length 29. |
|
7253 |
|
7254 * Makefile.in (install-bin): Use $(INSTALL_PROGRAM), not $(INSTALL). |
|
7255 |
|
7256 * load-save.cc (read_mat_binary_data): Make sure name is |
|
7257 NUL terminated. |
|
7258 |
|
7259 Mon Feb 26 18:18:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7260 |
|
7261 * variables.cc (whos): Make argv from tmp_args, not args. |
|
7262 |
|
7263 * defun.h (DEFCONSTX): Don't stringify name. |
|
7264 |
|
7265 Sat Feb 24 01:12:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7266 |
|
7267 * Makefile.in (install-oct): Make mk-oct-links executable. |
|
7268 * mk-oct-links.in (links_dir): Update to match new format of |
|
7269 DEFUN_DLD_BUILTIN macro. Use LN_S, not just LN. |
|
7270 (links_dir): |
|
7271 |
|
7272 * pr-output.cc (octave_print_internal): New arg, extra_indent, for |
|
7273 versions of this function that take matrices and ranges. |
|
7274 * pt-const.cc (TC_REP::print (ostream&)): Fix printing of structures. |
|
7275 Pass struct_indent to octave_print_internal as appropriate. |
|
7276 (print_with_name (ostream&, const string&, bool)): Handle spacing |
|
7277 around `=' differently for structures. |
|
7278 |
|
7279 Fri Feb 23 04:51:04 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7280 |
|
7281 * token.cc (token (double, const string&, int, int)): Store orig_text. |
|
7282 |
|
7283 Tue Feb 20 20:36:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7284 |
|
7285 * variables.cc (Fclear): Fix off-by-one error. |
|
7286 |
|
7287 Sat Feb 17 16:54:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7288 |
|
7289 * oct-hist.cc (default_history_file): Append "/.octave_hist" to |
|
7290 return value, not to home_directory. |
|
7291 |
|
7292 Fri Feb 16 18:10:46 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7293 |
|
7294 * utils.cc: (NINT, D_NINT): Move to liboctave. |
|
7295 |
|
7296 * sysdep.cc (octave_ieee_init): Move to liboctave. |
|
7297 |
|
7298 * procstream.h, procstream.cc: Rewrite. |
|
7299 |
|
7300 * pager.cc (cleanup_oprocstream): New static function. |
|
7301 * toplev.cc (cleanup_iprocstream): Likewise. |
|
7302 * dirfns.cc (cleanup_iprocstream): Likewise. |
|
7303 |
|
7304 * unwind-prot.cc (matrix_cleanup, complex_matrix_cleanup): Delete. |
|
7305 |
|
7306 Thu Feb 15 22:03:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7307 |
|
7308 * oct-obj.cc, oct-obj.h: Move most code to the header. |
|
7309 |
|
7310 * oct-obj.cc (make_argv, all_strings): New member functions. |
|
7311 * utils.cc: Moved from here. |
|
7312 |
|
7313 * load-save.cc: Move byte swapping stuff to liboctave. |
|
7314 Move float format conversion stuff to liboctave. |
|
7315 (all_parts_int, too_large_for_float): Move to liboctave. |
|
7316 |
|
7317 * symtab.cc (valid_identifier): Move here. |
|
7318 * load-save.cc: From here. |
|
7319 |
|
7320 * sysdep.cc: Move floating-point format stuff to liboctave. |
|
7321 * pr-output.cc: Include float-fmt.h here. |
|
7322 |
|
7323 Wed Feb 14 01:49:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7324 |
|
7325 * defun.h, defun-dld.h, defun-int.h: Simplify interface for DEFUN, |
|
7326 DEFUN_DLD, DEFVAR, and DEFCONST macros. Change all uses. |
|
7327 |
|
7328 * qzval.cc: Move guts to liboctave. |
|
7329 |
|
7330 Tue Feb 13 10:28:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7331 |
|
7332 * variables.cc (parse_fcn_file): Also avoid saving history if |
|
7333 input is from a script file. |
|
7334 |
|
7335 * help.cc (Ftype): Call unwind_protect_str for user_pref.ps4. |
|
7336 |
|
7337 * npsol.cc (nonlinear_constraints_ok): Now static. |
|
7338 |
|
7339 * npsol.cc (linear_constraints_ok): Now static. |
|
7340 * qpsol.cc (linear_constraints_ok): Duplicate here. |
|
7341 |
|
7342 * data.cc (Flinspace): Don't print usage message if nargin == 2. |
|
7343 |
|
7344 Sun Feb 11 14:20:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7345 |
|
7346 * mk-oct-links.in: Rename from mk-oct-links. |
|
7347 (LN_S): Use this variable instead of ln. |
|
7348 Set -e option for shell. |
|
7349 Exit with status of last command. |
|
7350 Print message when making link. |
|
7351 * Makefile.in (DISTFILES): Add mk-oct-links.in to the list. |
|
7352 (install-oct): Run ./mk-oct-links, not $(srcdir)/mk-oct-links. |
|
7353 |
|
7354 * variables.cc (install_builtin_variables): Restore accidentally |
|
7355 deleted DEFVAR for save_precision. |
|
7356 |
|
7357 Fri Feb 9 11:24:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7358 |
|
7359 * Makefile.in (INCLUDES): Delete statdefs.h from the list (it's |
|
7360 now in the liboctave directory). |
|
7361 |
|
7362 * toplev.cc (toplevel): Define here. |
|
7363 * octave.cc (toplevel): Not here. |
|
7364 |
|
7365 * toplev.cc (main_loop): New function. |
|
7366 * octave.cc (main): Call it here instead of doing main loop |
|
7367 actions here. |
|
7368 |
|
7369 * user-prefs.cc (do_fortran_indexing): Also set liboctave_dfi_flag. |
|
7370 (prefer_column_vectors): Also set liboctave_pcv_flag. |
|
7371 (prefer_zero_one_indexing): Also set liboctave_pzo_flag. |
|
7372 (resize_on_range_error): Also set liboctave_rre_flag. |
|
7373 |
|
7374 * variables.cc (restore_command_history): New function. |
|
7375 (parse_fcn_file): Use it here in unwind_protect. |
|
7376 |
|
7377 * dynamic-ld.cc (load_octave_oct_file): Reverse sense of test. |
|
7378 (load_octave_builtin): Delete. |
|
7379 (mangle_octave_oct_file_name): Delete. |
|
7380 |
|
7381 * pt-fvc.cc (tree_builtin::eval): Don't try to dynamically load |
|
7382 functions here. |
|
7383 |
|
7384 * pr-output.cc (set_format_style): Decrement argc for first arg too. |
|
7385 |
|
7386 * input.cc (gnu_readline): If readline returns an empty string, |
|
7387 convert it to a string containing a single newline character. |
|
7388 |
|
7389 * octave.cc (octave_argv): Now a static string_vector. |
|
7390 (intern_argv): Use string_vector ops, not charMatrix ops. |
|
7391 * toplev.cc (octave_argv): Delete definition. |
|
7392 * toplev.h (octave_argv): Delete declaration. |
|
7393 |
|
7394 Thu Feb 8 10:58:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7395 |
|
7396 * Makefile.in (conf-dist): New target. |
|
7397 |
|
7398 Tue Feb 6 10:59:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7399 |
|
7400 * help.cc (Ftype): Correctly handle structure names. |
|
7401 |
|
7402 Sun Feb 4 02:02:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7403 |
|
7404 * qpsol.cc (Fqpsol): Call set_options(), not copy() to set |
|
7405 options for QPSOL objects. |
|
7406 |
|
7407 * npsol.cc (Fnpsol): Call set_options(), not copy() to set |
|
7408 options for NPSOL objects. |
|
7409 |
|
7410 * quad.cc (Fquad): Call set_options(), not copy() to set |
|
7411 options for Quad objects. |
|
7412 |
|
7413 * dynamic-ld.cc (load_octave_builtin): Don't call destructor on string. |
|
7414 (load_octave_oct_file): Likewise. |
|
7415 Check oct_file.empty(), not just oct_file. |
|
7416 |
|
7417 * fsolve.cc (Ffsolve): Call set_options(), not copy() to set |
|
7418 options for NLEqn object. |
|
7419 |
|
7420 * variables.cc (do_who): Properly set match patterns from argument |
|
7421 vector for call to maybe_list. |
|
7422 |
|
7423 Sat Feb 3 03:29:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7424 |
|
7425 * octave.cc (long_opts): Properly set second field using new enum. |
|
7426 |
|
7427 * lsode.cc: Change ODE to LSODE where appropriate. |
|
7428 Use LSODE_options, not ODE_options. |
|
7429 |
|
7430 * dassl.cc: Change DAE to DASSL where appropriate. |
|
7431 Use DASSL_options, not ODE_options. |
|
7432 |
|
7433 Fri Feb 2 01:41:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7434 |
|
7435 * dirfns.cc: Include unistd.h. |
|
7436 |
|
7437 * parse.y, lex.l: Handle matrix lists without ml or mlnm stacks. |
|
7438 * pt-mat.h, pt-mat.cc (tree_matrix): |
|
7439 Rewrite to use SLList instead of home brew list. |
|
7440 * SLList-tm.cc: New file |
|
7441 * Makefile.in: Add it to the lists. |
|
7442 * SLStack-tm.cc: Delete. |
|
7443 * Makefile.in: Delete it from the lists. |
|
7444 |
|
7445 * All pt-* files: Use bool instead of int where appropriate. |
|
7446 |
|
7447 * Makefile.in (DEP_SOURCES_3): Add octave.cc. |
|
7448 |
|
7449 * pt-const.h (class tree_constant::tree_constant_rep): Make |
|
7450 everything in this class public, then it doesn't need to declare |
|
7451 the tree_constant class as a friend. |
|
7452 |
|
7453 Thu Feb 1 01:42:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7454 |
|
7455 * lex.h, lex.l, parse.h, parse.y (class lexical_feedback): New |
|
7456 class for lexer flags. Replace lots of global vars with members |
|
7457 of this class. |
|
7458 |
|
7459 * lex.l (class brace_paren_nesting_level): New class to replace |
|
7460 nesting_level stack. nesting_level is now an instance of this |
|
7461 class. |
|
7462 |
|
7463 * lex.l (yum_yum): New typedef. |
|
7464 (ATE_NOTHING): New global var. |
|
7465 (ATE_SPACE_OR_TAB, ATE_NEWLINE): Don't #define these, declare them |
|
7466 as const yum_yum. |
|
7467 (eat_whitespace, eat_continuation): Return yum_yum, not int. |
|
7468 |
|
7469 * lex.l (SHORT_CIRCUIT_LOGICALS): Delete. Always do this for || |
|
7470 and && tokens. |
|
7471 (yy_flex_alloc, yy_flex_realloc, yy_flex_free, next_char_is_space): |
|
7472 Delete. |
|
7473 |
|
7474 * toplev.cc (verbose_flag): Delete definition. |
|
7475 * toplev.h (verbose_flag): And declaration. |
|
7476 * octave.cc (verbose_flag): Now static. |
|
7477 |
|
7478 * lex.l (lookup_identifier): Arg is now string, not char*. |
|
7479 (handle_identifier, is_plot_keyword, is_keyword): Likewise. |
|
7480 (strip_trailing_whitespace): Return value is now string, not char*. |
|
7481 (plot_style_token): Likewise, for both arg and return value. |
|
7482 |
|
7483 * input.cc (octave_gets_line): Delete. |
|
7484 (gnu_readline, octave_gets, octave_read): |
|
7485 Properly handle input when using_readline is either true or false. |
|
7486 Don't limit length of input lines to flex buffer size. |
|
7487 (get_user_input): New function. |
|
7488 |
|
7489 * octave.cc (main): Handle --no-line-editing. |
|
7490 * toplev.h (using_readline): Provide external declaration here. |
|
7491 * input.h: Not here. |
|
7492 * toplev.cc (using_readline): Define here. |
|
7493 * input.cc: Not here. |
|
7494 |
|
7495 * toplev.h (no_line_editing): Delete declaration. |
|
7496 * input.cc (no_line_editing): Delete definition. |
|
7497 |
|
7498 Wed Jan 31 05:28:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7499 |
|
7500 * input.cc (DEFAULT_ARRAY_SIZE, PROMPT_GROWTH): Delete definitions |
|
7501 of unused macros. |
|
7502 (read_octal): Now static. |
|
7503 |
|
7504 * givens.cc (Fgivens): Use new functions from matrix classes |
|
7505 instead of calling Fortran functions directly. |
|
7506 * syl.cc (Fsyl): Likewise. |
|
7507 * expm.cc (Fexpm): Likewise. |
|
7508 |
|
7509 Mon Jan 29 00:00:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7510 |
|
7511 * octave.cc: Use new prog_args class instead of calling getopt |
|
7512 directly. |
|
7513 |
|
7514 * getopt.h, getopt.c, getopt1.c: Move to liboctave directory. |
|
7515 * Makefile: Remove from lists. |
|
7516 |
|
7517 * utils.cc (strconcat, read_until, discard_until): Delete. |
|
7518 |
|
7519 * pager.cc (terminal_columns, terminal_rows): Move to |
|
7520 liboctave/oct-term.cc. |
|
7521 * pager.cc, pr-output.cc: Include oct-term.h. |
|
7522 |
|
7523 * utils.cc (list_in_columns): Moved to liboctave/str-vec.cc. |
|
7524 Change all callers to use new member function syntax. |
|
7525 |
|
7526 * dirfns.cc (absolute_program): Now static. |
|
7527 (absolute_pathname): Delete. |
|
7528 |
|
7529 * pt-plot.cc (save_in_tmp_file): Call oct_tempnam, not |
|
7530 octave_tmp_file_name. Include file-ops.h. |
|
7531 * file-io.cc (do_scanf, Foctave_tmp_file_name): Likewise. |
|
7532 * oct-hist.cc (mk_tmp_hist_file): Likewise. |
|
7533 |
|
7534 * file-io.cc (Foctave_tmp_file_name): Move here. |
|
7535 * utils.cc: From here. |
|
7536 |
|
7537 * utils.cc (octave_tmp_file_name): Move to liboctave/file-ops.cc. |
|
7538 |
|
7539 * tempname.c, tempnam.c: Move to liboctave directory. |
|
7540 * Makefile.in: Remove from lists. |
|
7541 |
|
7542 Sun Jan 28 19:00:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7543 |
|
7544 * xdiv.cc (all xdiv functions): Return Matrix or ComplexMatrix, |
|
7545 not tree_constant. |
|
7546 |
|
7547 * oct-hist.h, oct-hist.cc, toplev.cc, octave.cc, input.cc, |
|
7548 file-io.cc, user-prefs.cc: Rewrite to use new command_history |
|
7549 class instead of calling readline history functions directly. |
|
7550 |
|
7551 * utils.cc (get_fcn_file_names): Delete num arg. |
|
7552 |
|
7553 Thu Jan 25 20:33:54 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7554 |
|
7555 * load-save.cc (matches_patterns): Use new glob_match class |
|
7556 instead of calling fnmatch directly. |
|
7557 * symtab.cc (matches_patterns, symbol_table::glob): Likewise. |
|
7558 * variables.cc (Fclear): Likewise. |
|
7559 |
|
7560 Wed Jan 24 02:05:22 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7561 |
|
7562 * fnmatch.h fnmatch.c: Delete. |
|
7563 * Makefile.in: Add glob stuff in the appropriate places, remove |
|
7564 fnmatch.h and fnmatch.c from lists. |
|
7565 |
|
7566 * octave.cc (program_invocation_name, program_invocation_short_name): |
|
7567 Maybe declare. |
|
7568 (initialize_globals): Maybe initialize them. |
|
7569 |
|
7570 * octave.cc (initialize_pathsearch): Define here, not in pathsearch.cc. |
|
7571 * pathsearch.h, pathsearch.cc: Remove files. |
|
7572 * Makefile.in: Remove them from the lists. |
|
7573 |
|
7574 * help.cc (simple_help): Ignore directories that don't have any .m |
|
7575 or .oct files. |
|
7576 |
|
7577 * utils.cc (search_path_for_file): Use new dir_path class instead |
|
7578 of calling kpathsea routines directly. |
|
7579 (get_fcn_file_names): Likewise. |
|
7580 * help.cc (simple_help): Likewise. |
|
7581 |
|
7582 * dirfns.cc (make_absolute): Don't convert empty arg to "./". |
|
7583 |
|
7584 * sysdir.h: Move to liboctave directory. |
|
7585 * Makefile.in: Remove from lists. |
|
7586 |
|
7587 * dirfns.cc (Freaddir): Use new dir_entry class instead of calling |
|
7588 readdir directly. Include dir-ops.h, not sysdir.h. |
|
7589 * utils.cc (get_fcn_file_names): Likewise. Delete unnecessary |
|
7590 first arg, change all callers. |
|
7591 |
|
7592 Tue Jan 23 00:43:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7593 |
|
7594 * safe-xstat.hin, safe-xstat.cin, statdefs.h, file-ops.h, |
|
7595 file-ops.cc, filemode.c, mkdir.c, rmdir.c, rename.c: |
|
7596 Files moved to liboctave directory. |
|
7597 * Makefile.in: Remove them from lists. Move appropriate rules. |
|
7598 |
|
7599 * acosh.c, asinh.c, atanh.c, erf.c, erfc.c, gamma.c, lgamma.c: |
|
7600 Files moved to liboctave directory. |
|
7601 * Makefile.in: Remove them from lists. |
|
7602 * missing-math.h: Deleted. |
|
7603 * pr-output.cc, sysdep.cc, minmax.cc, mappers.cc, expm.cc, |
|
7604 arith-ops.cc: Include oct-math.h, not cmath or missing-math.h. |
|
7605 |
|
7606 Mon Jan 22 19:33:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7607 |
|
7608 * variables.cc (Fexist): Use file_stat instead of calling stat |
|
7609 directly. Include file-ops.h, not statdefs.h. |
|
7610 * octave.cc (execute_startup_files): Likewise. |
|
7611 * file-io.cc (file_io_get_file, fopen_internal, popen_internal, Fstat): |
|
7612 Likewise. |
|
7613 (mk_stat_map): Likewise, use file_stat object, not struct stat. |
|
7614 * oct-hist.cc (do_history): Likewise. |
|
7615 |
|
7616 * file-ops.h, file-stat.cc: New files. |
|
7617 * Makefile.in: Include them. |
|
7618 * dirfns.cc: Delete is_newer. Don't include statdefs.h. |
|
7619 * toplev.cc: Don't include statdefs.h. |
|
7620 |
|
7621 Sun Jan 21 22:48:03 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7622 |
|
7623 * pt-mvr.h, pt-fvc.h, Map.cc, Map.h, dynamic-ld.h, |
|
7624 pt-fvc-base.cc, SLList-str.cc, pt-fcn.h, pt-fvc-base.h, |
|
7625 SLStack-str.cc, pt-mvr.cc, pt-exp.cc, token.h, token.cc, |
|
7626 user-prefs.h, pt-base.cc, user-prefs.cc, dirfns.h, sysdep.h, |
|
7627 sysdep.cc, input.h, parse.h, lex.l, parse.y, defun.h, mappers.h, |
|
7628 pt-fvc.cc, pt-plot.h, load-save.h, octave.cc, defun-int.h, help.h, |
|
7629 variables.h, oct-map.h, oct-obj.h, oct-obj.cc, pt-const.cc, |
|
7630 oct-map.cc, input.cc, symtab.h, pt-const.h, pathsearch.cc, |
|
7631 pr-output.h, pr-output.cc, toplev.h, timefns.cc, schur.cc, |
|
7632 pt-plot.cc, pager.cc, load-save.cc, dynamic-ld.cc, dirfns.cc, |
|
7633 data.cc, file-info.h, file-info.cc, colloc.cc, utils.h, qpsol.cc, |
|
7634 quad.cc, npsol.cc, lsode.cc, fsolve.cc, dassl.cc, file-io.cc, |
|
7635 help.cc, utils.cc, oct-hist.h, oct-hist.cc, symtab.cc, toplev.cc, |
|
7636 pt-fcn.cc, unwind-prot.h, unwind-prot.cc, variables.cc: |
|
7637 Most functions in these files that deal with character strings |
|
7638 have been converted to use the string class insatead of char*. If |
|
7639 you want more detailed information, you'll have to figure it out |
|
7640 for yourself. |
|
7641 |
|
7642 Sat Jan 20 18:19:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7643 |
|
7644 * dynamic-ld.cc [WITH_DL]: Define RTLD_LAZY to be 1 if it is not |
|
7645 already defined. |
|
7646 |
|
7647 Sun Jan 14 07:48:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7648 |
|
7649 * pt-const.cc (print_as_scalar, print_as_structure): |
|
7650 Make these member functions. |
|
7651 (tree_constant::print_with_name): New function, moved here from |
|
7652 old tree-expr.cc file (where it was called print_constant) and |
|
7653 converted to member function. Change all callers. |
|
7654 |
|
7655 Fri Jan 12 01:54:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7656 |
|
7657 * octave.cc (initialize_globals): Don't do kpathsearch stuff here. |
|
7658 (main): Call initialize_pathsearch() here. |
|
7659 |
|
7660 * pathsearch.cc: New file. |
|
7661 * Makefile.in (SOURCES): Add it to the list |
|
7662 |
|
7663 * oct-hist.h: Rename from octave-hist.h. |
|
7664 * oct-hist.cc: Rename from octave-hist.cc. |
|
7665 * Makefile.in, parse.y, other .cc files: Cope with it. |
|
7666 |
|
7667 * dynamic-ld.cc: Avoid warnings if !WITH_DYNAMIC_LINKING. |
|
7668 |
|
7669 * load-save.cc (save_ascii_data): string::data() returns const char*. |
|
7670 |
|
7671 * utils.h: Don't provide forward declaration for tree_constant. |
|
7672 |
|
7673 * oct-obj.h: Don't include mx-base.h or provide forward |
|
7674 declarations for Matrix and Range types. |
|
7675 |
|
7676 * file-info.h: Don't include oct-obj.h. Do include cstdio. |
|
7677 |
|
7678 * symtab.h: Don't provide forward declaration for ostream. |
|
7679 |
|
7680 * variables.h: Don't provide forward declarations for istream, |
|
7681 ostrstream, tree, builtin_function, or builtin_variable objects. |
|
7682 |
|
7683 * balance.cc, chol.cc, colloc.cc, dassl.cc, det.cc, eig.cc, |
|
7684 expm.cc, fft.cc, fft2.cc, filter.cc, find.cc, fsolve.cc, fsqp.cc, |
|
7685 givens.cc, hess.cc, ifft.cc, ifft2.cc, inv.cc, log.cc, lpsolve.cc, |
|
7686 lsode.cc, lu.cc, minmax.cc, npsol.cc, pinv.cc, qpsol.cc, qr.cc, |
|
7687 quad.cc, qzval.cc, rand.cc, schur.cc, sort.cc, svd.cc, syl.cc: |
|
7688 Clean up #include statements. |
|
7689 |
|
7690 * pt-const.h: Don't include oct-obj.h or tree-base.h. |
|
7691 Provide forward declaration of Octave_object here. |
|
7692 * pt-const.cc: Include oct-obj.h here. |
|
7693 |
|
7694 * pt-mat.h, pt-fcn.h, pt-const.h, pt-misc.h, pt-plot.h, |
|
7695 pt-exp-base.h, pt-cmd.h, pt-fvc-base.h, pt-mvr-base.h, pt-exp.h, |
|
7696 pt-mvr.h, pt-fvc.h: New files, split from tree-expr.h and/or |
|
7697 renamed from other tree-*.h files (pt == parse tree). |
|
7698 * pt-base.cc, pt-const.cc, pt-exp.cc, pt-fvc-base.cc, pt-mat.cc, |
|
7699 pt-mvr-base.cc, pt-plot.cc, pt-cmd.cc, pt-exp-base.cc, pt-fcn.cc, |
|
7700 pt-fvc.cc, pt-misc.cc, pt-mvr.cc: Likewse, split from tree-expr.cc |
|
7701 and/or other tree-*.cc files. |
|
7702 * Makefile.in: Include them in the appropriate lists. |
|
7703 * All: Fix #include statements to match. |
|
7704 |
|
7705 * Array-tc.cc: Don't instantiate ArrayRep objects. |
|
7706 |
|
7707 Thu Jan 11 02:35:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7708 |
|
7709 * tree-const.cc (tree_constant::eval (int, int, const Octave_object&)): |
|
7710 Define here instead of in tree-const.h. |
|
7711 |
|
7712 Wed Jan 10 04:34:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7713 |
|
7714 * tree-const.h (tree_constant::tree_constant (const string&): |
|
7715 * tree-const.cc (TC_REP::tree_constant_rep (const string&)): |
|
7716 New constructor. |
|
7717 |
|
7718 Tue Jan 9 04:10:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7719 |
|
7720 * rand.cc (do_rand): Use string_value() result directly instead of |
|
7721 c_str() conversion. |
|
7722 * balance.cc (Fbalance): Likewise. |
|
7723 |
|
7724 * tree-const.cc (TC_REP::string_value()): |
|
7725 Handle new definition of charMatrix::row_as_string() |
|
7726 * load-save.cc (save_ascii_data): Ditto. |
|
7727 (save_binary_data): Ditto. |
|
7728 * pr-output.cc (octave_print_internal): Ditto. |
|
7729 |
|
7730 * balance.cc (Fbalance): |
|
7731 Handle new definition of TC_REP::string_value() |
|
7732 * colloc.cc (Fcolloc): Ditto. |
|
7733 * dassl.cc (Fdassl_options): Ditto. |
|
7734 * data.cc (Fstruct_contains): Ditto. |
|
7735 * dirfns.cc (Fmkdir): Ditto. |
|
7736 (Freaddir): Ditto. |
|
7737 (Frmdir): Ditto. |
|
7738 (Frename): Ditto. |
|
7739 * error.cc (handle_message): Ditto. |
|
7740 * file-io.cc (process_printf_format): Ditto. |
|
7741 (fopen_internal): Ditto. |
|
7742 (file_io_get_file): Ditto. |
|
7743 (return_valid_file): Ditto. |
|
7744 (Flstat): Ditto. |
|
7745 (Fstat): Ditto. |
|
7746 (unlink_internal): Ditto. |
|
7747 (mkfifo_internal): Ditto. |
|
7748 (async_system_internal): Ditto. |
|
7749 (sync_system_internal): Ditto. |
|
7750 (execute_internal): Ditto. |
|
7751 (popen_internal): Ditto. |
|
7752 (fwrite_internal): Ditto. |
|
7753 (fread_internal): Ditto. |
|
7754 (do_printf): Ditto. |
|
7755 (do_scanf): Ditto. |
|
7756 * input.cc (get_user_input): Ditto. |
|
7757 * lsode.cc (Flsode_options): Ditto. |
|
7758 * npsol.cc (Fnpsol_options):Ditto. |
|
7759 * qpsol.cc (Fqpsol_options):Ditto. |
|
7760 * quad.cc (Fquad_options): Ditto. |
|
7761 * rand.cc (do_rand): Ditto. |
|
7762 * schur.cc (Fschur): Ditto. |
|
7763 * sysdep.cc (Fputenv): Ditto. |
|
7764 (Fgetenv): Ditto. |
|
7765 * timefns.cc (extract_tm): Ditto. |
|
7766 (Fstrftime): Ditto. |
|
7767 * toplev.cc (Fsource): Ditto. |
|
7768 (eval_string): Ditto. |
|
7769 (Fsystem): Ditto. |
|
7770 * tree-plot.cc (subplot::handle_plot_data): Ditto. |
|
7771 * variables.cc (is_valid_function): Ditto. |
|
7772 (Fis_global): Ditto. |
|
7773 (Fexist): Ditto. |
|
7774 (builtin_string_variable): Ditto. |
|
7775 * utils.cc (make_argv): Ditto. |
|
7776 (Fundo_string_escapes): Ditto. |
|
7777 |
|
7778 Mon Jan 8 01:54:50 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7779 |
|
7780 * Makefile.in (install-bin): Use $(LN_S), not just ln. |
|
7781 |
|
7782 * variables.cc (octave_fcn_file_dir): New function. |
|
7783 * tree-expr.cc (mark_as_system_fcn_file): Use it instead of |
|
7784 octave_lib_dir. |
|
7785 |
|
7786 * Makefile.in (clean): If $(SHARED_LIBS), also remove shared libs. |
|
7787 |
|
7788 * pr-output.cc (set_format (const ComplexMatrix&, int&, int&)): |
|
7789 Unconditionally call all_elements_are_int_or_inf_or_nan(). |
|
7790 (set_format (const Matrix&, int&, int&)): Likewise. |
|
7791 |
|
7792 Sun Jan 7 19:12:39 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7793 |
|
7794 * utils.cc (oct_putenv): New function. |
|
7795 * sysdep.cc (Fputenv): Use oct_putenv. |
|
7796 * octave.cc (initialize_globals): Likewise. |
|
7797 |
|
7798 Sat Jan 6 23:22:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7799 |
|
7800 * sysdep.cc (Fputenv): New function. |
|
7801 |
|
7802 * input.cc (initialize_readline): Call rl_initialize() here. |
|
7803 |
|
7804 * octave.cc: Conditionally define atexit to be on_exit here. |
|
7805 * toplev.cc: Not here. |
|
7806 |
|
7807 Fri Jan 5 14:01:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7808 |
|
7809 * toplev.cc: Don't include <pwd.h> here. |
|
7810 |
|
7811 * octave-hist.cc, tree-plot.cc, utils.cc: Do include "sysdep.h". |
|
7812 |
|
7813 * dirfns.cc, file-io.cc, help.cc, load-save.cc, octave.cc, |
|
7814 octave-hist.cc, tree-plot.cc, utils.cc: |
|
7815 Don't include <readline/tilde.h>. |
|
7816 * sysdep.h: Do include it here. |
|
7817 |
|
7818 * tree-const.cc (TC_REP::assign (tree_constant&, Octave_object&)): |
|
7819 If we have a matrix or range, call maybe_mutate before returning. |
|
7820 |
|
7821 Sun Dec 31 15:56:18 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7822 |
|
7823 * npsol.cc (Fnpsol): Improve doc string. |
|
7824 * qpsol.cc (Fqpsol): Likewise. |
|
7825 |
|
7826 Fri Dec 29 21:46:58 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7827 |
|
7828 * defun-dld.h: Make work again for OCTAVE_LITE and |
|
7829 WITH_DYNAMIC_LINKING. |
|
7830 |
|
7831 * Makefile.in: Handle shared libraries. |
|
7832 |
|
7833 Wed Dec 27 17:47:51 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7834 |
|
7835 * mk-oct-links: New file. |
|
7836 * Makefile.in (install-oct): Use it. |
|
7837 * f-*.cc: Rename to *.cc. |
|
7838 |
|
7839 * Makefile.in (install-bin, install-lib, install-oct): New targets. |
|
7840 (install): Use them. |
|
7841 |
|
7842 Tue Dec 26 21:38:22 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7843 |
|
7844 * toplev.cc (reading_startup_message_printed): Move initialization |
|
7845 here and make extern. |
|
7846 |
|
7847 * dirfns.cc, dynamic-ld.cc, help.cc, input.cc, octave-hist.cc, |
|
7848 octave.cc, sighandlers.cc, sysdep.cc, tree-expr.cc, tree-misc.cc, |
|
7849 utils.cc, variables.cc, parse.y, lex.l: Include toplev.h instead |
|
7850 of octave.h. |
|
7851 * toplev.h: rename from octave.h. |
|
7852 |
|
7853 * octave.cc (main): Delete unused variable saved_sigint_handler. |
|
7854 |
|
7855 Sun Dec 24 00:26:54 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7856 |
|
7857 * dynamic-ld.cc: Massive re-write to handle dlopen/dlsym and |
|
7858 shl_load/shl_findsym methods of dynamic linking. |
|
7859 |
|
7860 * utils.cc (get_fcn_file_names): Check for .oct files if |
|
7861 WITH_DYNAMIC_LINKING, not WITH_DLD. |
|
7862 |
|
7863 * Makefile.in (LIB, TERMLIBS): Substitute values. |
|
7864 (octave): Add $(LIBS) to link command and use $(TERMLIBS) instead |
|
7865 of -ltermcap. |
|
7866 |
|
7867 Sat Dec 23 21:56:12 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7868 |
|
7869 * dynamic-ld.h, dynamic-ld.cc: Remove old unused code. |
|
7870 |
|
7871 * variables.cc (load_fcn_from_file): |
|
7872 Always call load_octave_oct_file. |
|
7873 |
|
7874 Wed Dec 20 00:56:57 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7875 |
|
7876 * pr-output.cc (set_real_format, set_real_matrix_format, |
|
7877 set_complex_format, set_complex_matrix_format, set_range_format): |
|
7878 New functions. Ensure the count of the digits to the right of the |
|
7879 decimal point is positive. |
|
7880 |
|
7881 * xpow.cc (xpow (const Matrix&, double)): Print warning if |
|
7882 inverting singular matrix (but return value anyway, in the name of |
|
7883 compatibility). |
|
7884 xpow (const ComplexMatrix&, double)): Likewise. |
|
7885 |
|
7886 * f-inv.cc (Finv): If matrix is singular, return result anyway, in |
|
7887 the name of compatibility. |
|
7888 |
|
7889 * symtab.cc (symbol_record::pop_context): |
|
7890 Don't assert (! context.empty ()). |
|
7891 |
|
7892 * tree-const.cc (TC_REP::char_matrix_value): Don't complain about |
|
7893 type conversion if object is an empty matrix.f |
|
7894 (TC_REP::assign): If rhs is a string, don't convert to numeric |
|
7895 type if rhs is empty or "". |
|
7896 Only widen if rhs is not empty. |
|
7897 Don't return 0x0 char_matrix if it is supposed to be a string. |
|
7898 |
|
7899 * arith-ops.h, mappers.h, pr-output.h, xdiv.h, xpow.h: Include |
|
7900 oct-cmplx.h in place of forward declaration for class Complex. |
|
7901 |
|
7902 * pr-output.cc, mappers.cc, arith-ops.cc, xdiv.cc, xpow.cc, |
|
7903 utils.cc: Include "oct-cmplx.h" instead of <Complex.h>. |
|
7904 |
|
7905 * octave.cc (initialize_error_handlers): Don't call |
|
7906 set_Complex_error_handler(). |
|
7907 (octave_Complex_error_handler): Delete unused function. |
|
7908 Delete declaration for set_Complex_error_handler(). |
|
7909 |
|
7910 * sighandlers.cc (catch_interrupts): New function. |
|
7911 * octave.cc (main): Call catch_interrupts() instead of calling |
|
7912 octave_set_signal_handler() directly. |
|
7913 |
|
7914 Tue Dec 19 03:22:37 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7915 |
|
7916 * variables.cc (looks_like_octave_copyright): Also recognize the |
|
7917 string " This program is free software". |
|
7918 |
|
7919 Thu Dec 14 01:54:06 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7920 |
|
7921 * octave-hist.cc (clean_up_history): Only write history file if |
|
7922 user_pref.saving_history. |
|
7923 |
|
7924 * octave-hist.cc (initialize_history, clean_up_history, |
|
7925 do_history): Perform tilde expansion on history file name. |
|
7926 |
|
7927 * octave.cc (main): Check `defined (HAVE_ON_EXIT)' not just |
|
7928 `(HAVE_ON_EXIT)'. |
|
7929 |
|
7930 * user-prefs.h (user_preferences): New fields, `history_file' and |
|
7931 `history_size'. |
|
7932 * user-prefs.cc (init_user_prefs): Initialize them. |
|
7933 (sv_history_file, history_size): New functions. |
|
7934 * variables.cc (install_builtin_variables): Initialize user-level |
|
7935 variables history_file and history_size. |
|
7936 * octave-hist.cc (default_history_size): Now extern. |
|
7937 (default_history_file): Likewise. |
|
7938 (octave_hist_size, octave_hist_file): Use user preference |
|
7939 variables instead. |
|
7940 * octave.cc (main): Call initialize_history after |
|
7941 execute_startup_files. |
|
7942 |
|
7943 Fri Dec 8 15:53:59 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7944 |
|
7945 * user-prefs.h (user_preferences): New field, `saving_history'. |
|
7946 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7947 (saving_history): New function. |
|
7948 * variables.cc (install_builtin_variables): Initialize user-level |
|
7949 variable saving_history. |
|
7950 * octave.cc (parse_and_execute): Don't reset value of |
|
7951 saving_history here. |
|
7952 (main) Use user_pref.saving_history instead of saving_history. |
|
7953 * variables.cc (parse_fcn_file): Likewise. |
|
7954 * octave-hist.cc (maybe_save_history): Likewise. |
|
7955 Don't save history if input_from_startup_file. |
|
7956 |
|
7957 Mon Nov 27 23:05:52 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7958 |
|
7959 * resource.cc: Include systime.h before <sys/resource.h>. |
|
7960 |
|
7961 Tue Nov 14 14:09:40 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7962 |
|
7963 * error.cc: Include cstring. |
|
7964 |
|
7965 * tree-expr.cc (print_code): Decrement indent level after printing |
|
7966 function body. |
|
7967 |
|
7968 * Makefile.in: Remove references to oct-str.cc, oct-str.h, and |
|
7969 Array-string.cc. |
|
7970 |
|
7971 * tree-const.h: Don't include oct-str.h. |
|
7972 |
|
7973 Mon Nov 6 11:16:49 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7974 |
|
7975 * parse.y (make_plot_command, finish_colon_expression, |
|
7976 make_unwind_protect, make_try_command, make_for_command, |
|
7977 make_break_command, make_continue_command, make_return_command, |
|
7978 start_if_command, finish_if_command, make_elseif_clause, |
|
7979 make_simple_assignment, make_multi_val_ret, start_function_def, |
|
7980 frob_function_def, finish_function_def, start_matrix, |
|
7981 finish_matrix): New functions. Use them in the grammar to clean |
|
7982 things up a bit. Possibly convert matrix lists, colon |
|
7983 expressions, binary expressions, and unary expressions to constant |
|
7984 values. |
|
7985 (tree_matrix_type): Delete. |
|
7986 (simple_expr1): Handle all expression stuff here, including |
|
7987 assignments. |
|
7988 (simple_expr): Just check to see that simple_expr1 produced |
|
7989 something useful. |
|
7990 |
|
7991 * tree-plot.cc, tree-plot.h: Move most simple constructors to the |
|
7992 header file. |
|
7993 |
|
7994 * tree-expr.h (tree_expression::is_constant): Move virtual |
|
7995 function definition here. |
|
7996 (tree_fvc::is_constant): From here. |
|
7997 (tree_expression::is_matrix_constant): New virtual function. |
|
7998 (tree_expression::is_range_constant): New virtual function. |
|
7999 * tree-expr.cc (tree_matrix::is_matrix_constant): New function. |
|
8000 * tree-expr.cc (tree_colon_expression::is_range_constant): New |
|
8001 function. |
|
8002 |
|
8003 Fri Nov 3 03:42:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8004 |
|
8005 * utils.cc, utils.h (jump_to_top_level): Declare as extern "C". |
|
8006 |
|
8007 * tree-const.h (tree_constant::eval ()): Only mutate if printing. |
|
8008 |
|
8009 * tree-const.cc (TC_REP::tree_constant_rep (const Complex&), |
|
8010 TC_REP::tree_constant_rep (const ComplexMatrix&), |
|
8011 TC_REP::tree_constant_rep (const ComplexDiagMatrix&), |
|
8012 TC_REP::tree_constant_rep (const ComplexRowVector&), |
|
8013 TC_REP::tree_constant_rep (const ComplexColumnVector&)): |
|
8014 Also check to see if we can convert to scalar_constant, not just |
|
8015 complex_scalar_constant. |
|
8016 |
|
8017 * user-prefs.h (user_preferences): New field, `exec_path'. |
|
8018 * user-prefs.cc (init_user_prefs): Initialize it. |
|
8019 (sv_exec_path): New function. |
|
8020 * variables.cc (install_builtin_variables): Add DEFUN for EXEC_PATH. |
|
8021 (default_exec_path): New function. |
|
8022 * octave.cc (exec_path): New global variable. |
|
8023 Don't set and putenv() exec path here. |
|
8024 (long_opts): Add --exec-path option. |
|
8025 (main): Handle it. |
|
8026 (initialize_globals): Set default value here. |
|
8027 |
|
8028 * user-prefs.h (user_preferences): New field, `info_prog'. |
|
8029 * user-prefs.cc (init_user_prefs): Initialize it. |
|
8030 (sv_info_prog): New function. |
|
8031 * variables.cc (install_builtin_variables): Add DEFUN for INFO_PROGRAM. |
|
8032 (default_info_prog): New function. |
|
8033 * octave.cc (info_prog): New global variable. |
|
8034 (initialize_globals): Set default value here. |
|
8035 (long_opts): Add --info-prog option. |
|
8036 (main): Handle it. |
|
8037 * help.cc (try_info): Use user_pref.info_prog here. |
|
8038 |
|
8039 * octave.cc (initialize_globals): Put arch_dir and bin_dir ahead |
|
8040 of shell_path when resetting PATH. |
|
8041 |
|
8042 Thu Nov 2 04:30:13 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8043 |
|
8044 * f-rand.cc (Frandn): New function. |
|
8045 (do_initialization): New function. |
|
8046 (do_rand): New function for doing the real work. |
|
8047 (Frand): Use it. |
|
8048 |
|
8049 * octave.cc (parse_and_execute): New arg, warn_for. If given, |
|
8050 print message if file cannot be opened. |
|
8051 Set curr_fcn_file_full_name here. |
|
8052 (Fsource): Pass extra arg to parse_and_execute to get warning message. |
|
8053 |
|
8054 * tree-const.h: Handle line and column info for double, Complex, |
|
8055 and char* constants. |
|
8056 |
|
8057 * parse.y (maybe_convert_to_ans_assign): Pass along line and |
|
8058 column info from expression. |
|
8059 |
|
8060 * parse.y (make_constant): New function. |
|
8061 (simple_expr1, word_list): Use it. |
|
8062 |
|
8063 * input.cc, input.h (curr_fcn_file_full_name): New global. |
|
8064 * variables.cc (load_fcn_from_file): Set it here. |
|
8065 * parse.y (func_def2, yyerror, maybe_warn_missing_semi): Use it. |
|
8066 (func_def2): If !reading_fcn_file, don't call strcmp if |
|
8067 curr_fcn_file_name is 0. |
|
8068 |
|
8069 * octave.cc (Fsource): New function. |
|
8070 (parse_and_execute): Declare file name const char *. |
|
8071 * input.cc (get_input_from_file): Likewise. |
|
8072 |
|
8073 Wed Nov 1 13:54:34 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8074 |
|
8075 * f-filter.cc: New file. |
|
8076 * Makefile.in (DLD_SRC): Add it to the list. |
|
8077 |
|
8078 * sysdep.h (gethostname): Change declaration to match definition |
|
8079 in sysdep.cc. |
|
8080 |
|
8081 * resource.cc: Include sysdep.h here, for octave_NaN. |
|
8082 |
|
8083 Tue Oct 31 02:12:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8084 |
|
8085 * tree-const.cc (TC_REP::assign): After converting rhs to a |
|
8086 numeric type, use the converted value, not the original. |
|
8087 |
|
8088 * dirfns.cc (Fpwd): If nargout == 0, print the directory name |
|
8089 instead of returning it. |
|
8090 |
|
8091 * pager.cc (maybe_page_output): Call maybe_write_to_diary_file here. |
|
8092 (flush_output_to_pager): Not here. |
|
8093 |
|
8094 Mon Oct 30 23:39:43 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8095 |
|
8096 * variables.cc (install_builtin_commands): Add DEFVAR for |
|
8097 echo_executing_commands. |
|
8098 |
|
8099 * octave-hist.cc (do_edit_history): Handle new echo stuff. |
|
8100 * variables.cc (parse_fcn_file): Likewise. |
|
8101 * octave.cc (parse_and_execute): Likewise. |
|
8102 (main): Likewise. |
|
8103 * input.cc (do_input_echo): |
|
8104 (Fecho): New function. |
|
8105 |
|
8106 * tree-expr.cc (tree_function::print_code_function_header, |
|
8107 tree_function::print_code_function_trailer): New functions. |
|
8108 (tree_function::print_code): Use them. |
|
8109 (tree_function::eval): Likewise, if echoing commands. |
|
8110 * tree-misc.cc (tree_statement::maybe_echo_code): New function. |
|
8111 |
|
8112 * user-prefs.h (user_preferences): New field, echo_executing_commands. |
|
8113 (echo_state): New enum, for various types of echoing we do. |
|
8114 * user-prefs.cc (echo_executing_commands): New function. |
|
8115 |
|
8116 * tree-base.cc (print_code_indent): Print PS4 as line prefix. |
|
8117 * help.cc (Ftype): Add unwind_protect for ps4 and set it to "" |
|
8118 before printing code. |
|
8119 |
|
8120 * tree-misc.h (tree_statement_list): New field, function_body. |
|
8121 (tree_statement_list::mark_as_function_body): New function. |
|
8122 * parse.y (func_def3): Mark function bodies. |
|
8123 |
|
8124 * pr-output.cc (octave_print_internal): Undo string escapes when |
|
8125 printing charMatrix as strings. |
|
8126 |
|
8127 Sat Oct 28 17:38:29 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8128 |
|
8129 * utils.h (undo_string_escapes): Add missing const in declaration. |
|
8130 |
|
8131 Fri Oct 27 03:49:44 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8132 |
|
8133 * file-io.cc (next_available_file_number): New stack for keeping |
|
8134 track of next available file number. |
|
8135 (get_next_avail_file_num): New function. |
|
8136 (fopen_file_for_user, fopen_internal, popen_internal, |
|
8137 execute_internal): Use it. |
|
8138 |
|
8139 Mon Oct 23 07:00:09 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8140 |
|
8141 * tree-const.cc (TC_REP::convert_to_matrix_type, |
|
8142 tree_constant::convert_to_matrix_type): New arg, make_complex. |
|
8143 (TC_REP::set_index): New arg, rhs_is_complex. Pass it to |
|
8144 convert_to_matrix_type. |
|
8145 (TC_REP::assign): Pass rhs.is_complex_type() to set_index. |
|
8146 |
|
8147 Thu Oct 19 00:38:38 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8148 |
|
8149 * xpow.cc: Include <climits>. |
|
8150 |
|
8151 * sysdep.cc (Fpause): Do pause even if not interactive. |
|
8152 |
|
8153 * tree-const.cc (TC_REP::assign): Don't make RHS numeric if both |
|
8154 RHS and LHS are strings. |
|
8155 |
|
8156 Wed Oct 18 22:19:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8157 |
|
8158 * f-expm.cc (Fexpm): Avoid taking log of negative number. Also, |
|
8159 don't unnecessarily divide the input matrix by 1.0. |
|
8160 |
|
8161 * input.cc (decode_prompt_string): Recognize \[ and \] too. |
|
8162 (initialize_readline): Bind M-p to history-search-backward and M-n |
|
8163 to history-search-forward. |
|
8164 |
|
8165 Tue Oct 17 04:31:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8166 |
|
8167 * xpow.cc (xpow): Handle integer powers better for complex^double. |
|
8168 (elem_xpow): Likewise. |
|
8169 |
|
8170 * lex.l ({CCHAR}): If nesting_level.top() is BRACE, return ';', |
|
8171 not '\n'. |
|
8172 |
|
8173 Mon Oct 16 19:03:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8174 |
|
8175 * help.cc (Fwhich): Fix doc string. |
|
8176 |
|
8177 * variables.cc (Fexist): Update doc string. |
|
8178 |
|
8179 Sun Oct 15 22:19:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8180 |
|
8181 * Another massive set of changes to support character matrices |
|
8182 with indexing. The Octave_str_object class is no longer used. |
|
8183 Anything having to do with Octave_str_object in the following |
|
8184 files has been changed to use charMatrix instead: octave.h, |
|
8185 load-save.cc, octave.cc, strfns.cc, data.cc, pr-output.h, |
|
8186 pr-output.cc, tree-const.h, dirfns.cc, tree-const.cc, |
|
8187 tree-expr.cc. |
|
8188 |
|
8189 Sat Oct 14 22:28:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8190 |
|
8191 * f-sort.cc (mx_sort): Don't attempt to sort vectors that have |
|
8192 only one element, or matrices that have only one row. |
|
8193 |
|
8194 Thu Oct 12 02:16:58 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8195 |
|
8196 * mappers.cc (install_mapper_functions): Add gammaln as an alias |
|
8197 for lgamma. |
|
8198 |
|
8199 * tree-const.h, tree-const.cc: Massive overhaul of indexing and |
|
8200 indexed assignment functions. |
|
8201 * tc-inlines.h, tc-rep.h: Remove files. |
|
8202 * Makefile.in: Remove mention of them here too. |
|
8203 |
|
8204 * Makefile.in: Include $(TI_SRC) in DEP_SOURCES_3, not |
|
8205 $(TI_SOURCES). |
|
8206 Include $(DLD_SRC) in DEP_SOURCES_3. |
|
8207 Include $(TI_SRC) in DEF_FILES_5. |
|
8208 |
|
8209 Wed Oct 11 01:26:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8210 |
|
8211 * Makefile.in (INCLUDES): Remove tc-inlines.h and tc-rep.h from |
|
8212 the list. |
|
8213 |
|
8214 Mon Oct 9 08:31:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8215 |
|
8216 * lex.l (next_token_is_bin_op): Do match `.+', `.*', etc. |
|
8217 |
|
8218 Sun Oct 8 18:19:56 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8219 |
|
8220 * idx-vector.h, idx-vector.cc: Delete files. |
|
8221 * Makefile.in (SOURCES, INCLUDES): Remove them from lists. |
|
8222 |
|
8223 Fri Oct 6 00:52:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8224 |
|
8225 * f-svd.cc (Fsvd): If nargout == 0 or nargout == 1, don't ask for |
|
8226 U and V. |
|
8227 |
|
8228 Wed Oct 4 00:04:57 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8229 |
|
8230 * f-npsol.cc (Fnpsol, Fnpsol_options): Avoid unused variable |
|
8231 warnings if NPSOL_MISSING. |
|
8232 * f-qpsol.cc (Fqpsol, Fqpsol_options): Likewise for QPSOL_MISSING. |
|
8233 |
|
8234 * Makefile.in (DISTFILES): Add octave.gperf. |
|
8235 |
|
8236 * lex.l (next_token_is_bin_op): Don't ever return true for `.' |
|
8237 since that causes problems with things like [ .1 .1 ]. |
|
8238 |
|
8239 Tue Oct 3 05:30:24 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8240 |
|
8241 * variables.cc (is_valid_function): Avoid setting error_state if |
|
8242 argument is not a string. |
|
8243 |
|
8244 * parse.y (maybe_warn_missing_semi): New function. |
|
8245 (list1, list): Call it if statement not terminated by semicolon. |
|
8246 * tree-misc.h (tree_statement::line, tree_statement::column): |
|
8247 New functions. |
|
8248 * octave.cc (input_from_command_line_file): New global variable. |
|
8249 (main): Set it. |
|
8250 (parse_and_execute): Unwind-protect it and set it to zero. |
|
8251 (eval_string): Likewise. |
|
8252 * variables.cc (parse_fcn_file): Likewise. |
|
8253 |
|
8254 * user-prefs.cc (warn_missing_semicolon): New function. |
|
8255 * user-prefs.h (user_preferences): New field, warn_missing_semicolon. |
|
8256 * variables.cc (install_builtin_variables): DEFVAR it. |
|
8257 |
|
8258 * tree-expr.cc (tree_expression::is_logically_true): Actually use |
|
8259 argument. |
|
8260 |
|
8261 Mon Oct 2 19:55:48 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8262 |
|
8263 * variables.cc (install_builtin_variables): Reduce the default |
|
8264 value of save_precision to 15. |
|
8265 |
|
8266 * variables.cc (builtin_real_scalar_variable): Return 1 for |
|
8267 success, 0 for failure. |
|
8268 |
|
8269 * user-prefs.cc (struct_levels_to_print, set_save_precision, |
|
8270 set_output_max_field_width, set_output_precision): |
|
8271 Change sense of test for builtin_real_scalar_variable return value. |
|
8272 (check_preference): Rename from check_str_pref. Change all callers. |
|
8273 Accept value of 0 to be the same as "false" and nonzero to be the |
|
8274 same as "true". |
|
8275 Delete val to avoid memory leak. |
|
8276 * variables.cc (install_builtin_variables): Change initial values |
|
8277 from "true" to 1, "false" to 0. |
|
8278 |
|
8279 * variables.cc (install_builtin_variables): Add DEFVAR for |
|
8280 gnuplot_has_multiplot. |
|
8281 |
|
8282 * user-prefs.h (user_preferences): New field, |
|
8283 `gnuplot_has_multiplot'. |
|
8284 * user-prefs.cc (init_user_prefs): Initialize it. |
|
8285 (gnuplot_has_multiplot): New function. |
|
8286 |
|
8287 Sat Sep 30 16:52:57 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8288 |
|
8289 * oct-gperf.h, octave.gperf: Newfiles. |
|
8290 * Makefile.in (DISTFILES): Add octave.gperf. |
|
8291 (INCLUDES): Add oct-gperf.h. |
|
8292 (oct-gperf.h): New rule. |
|
8293 (local-dist, dist): Depend on oct-gperf.h. |
|
8294 * lex.l (is_keyword): Use perfect hash function to lookup |
|
8295 keywords. |
|
8296 |
|
8297 Fri Sep 29 04:36:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8298 |
|
8299 * version.h (OCTAVE_NAME_AND_VERSION): Add TARGET_HOST_TYPE to this. |
|
8300 |
|
8301 Thu Sep 28 00:03:51 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8302 |
|
8303 * tree-expr.cc (tree_expression::is_logically_true): New function. |
|
8304 * tree-cmd.cc (tree_while_command::eval): Use it instead of |
|
8305 handling the test directly here. |
|
8306 * tree-misc.cc (tree_if_clause::eval): Likewise |
|
8307 |
|
8308 * tree-const.cc (TC_REP::force_numeric): Don't try to print value |
|
8309 of str_obj with %s. |
|
8310 |
|
8311 * error.cc (buffer_error_messages): Rename from |
|
8312 suppress_octave_error_messages. |
|
8313 (error_message_buffer): New global variable. |
|
8314 (verror): Handle buffering of messages. |
|
8315 (handle_message): New function. |
|
8316 (Ferror, Fwarning, Fusage): Use it instead of duplicating code. |
|
8317 |
|
8318 * octave.cc (Feval): Buffer error messages instead of supressing them. |
|
8319 |
|
8320 * lex.l (is_keyword): Recognize `try', `catch', and `end_try_catch'. |
|
8321 * parse.y (TRY, CATCH): New tokens. |
|
8322 (command): Recognize try-catch block. |
|
8323 (end_error): Add cases for unwind_protect_end and try_catch_end. |
|
8324 * token.h (end_tok_type): New field, try_catch_end. |
|
8325 * tree-cmd.h, tree-cmd.cc (tree_try_catch): New class. |
|
8326 * variables.cc (bind_global_error_variable): New Function. |
|
8327 (clear_global_error_variable): Likewise. |
|
8328 (install_builtin_variables): Add DEFCONST for __error_text__. |
|
8329 * help.cc (keywords): Add `try', `catch', and `end_try_catch'. |
|
8330 |
|
8331 * tree-cmd.cc (tree_unwind_protect::eval): Undo previous change. |
|
8332 |
|
8333 * dirfns.cc (Freaddir, Fmkdir, Frmdir): |
|
8334 Do tilde expansion on the argument. |
|
8335 |
|
8336 Tue Sep 26 00:10:29 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8337 |
|
8338 * f-dassl.cc, f-fsolve.cc, f-lsode.cc, f-npsol.cc, f-quad.cc: |
|
8339 Don't try to figure out if the user-supplied functions take the |
|
8340 correct number of arguments. Simply let the call fail. |
|
8341 * variables.cc (takes_correct_nargs): Delete unused function. |
|
8342 * tree-expr.cc (tree_builtin::eval): Don't complain for too many |
|
8343 arguments to mapper functions. |
|
8344 * tree-expr.h, tree-expr.cc (tree_builtin, tree_function, tree_fvc): |
|
8345 Delete unused function max_expected_args. |
|
8346 |
|
8347 * defun.h (DEFUN): Delete unnecessary args nargin_min and nargout_max. |
|
8348 New arg unused_arg_flags. |
|
8349 (DEFUN_TEXT): Likewise. |
|
8350 * defun-dld.h (DEFUN_DLD_BUILTIN): Likewise. |
|
8351 * defun-int.h (DEFUN_INTERNAL, DECLARE_FUN, DEFINE_FUN_STRUCT): |
|
8352 Do the real work. |
|
8353 |
|
8354 * data.cc, dirfns.cc, dynamic-ld.cc, error.cc, f-balance.cc, |
|
8355 f-chol.cc, f-colloc.cc, f-dassl.cc, f-det.cc, f-eig.cc, f-expm.cc, |
|
8356 f-fft.cc, f-fft2.cc, f-find.cc, f-fsolve.cc, f-fsqp.cc, |
|
8357 f-givens.cc, f-hess.cc, f-ifft.cc, f-ifft2.cc, f-inv.cc, f-log.cc, |
|
8358 f-lpsolve.cc, f-lsode.cc, f-lu.cc, f-minmax.cc, f-npsol.cc, |
|
8359 f-pinv.cc, f-qpsol.cc, f-qr.cc, f-quad.cc, f-qzval.cc, f-rand.cc, |
|
8360 f-schur.cc, f-sort.cc, f-svd.cc, f-syl.cc, file-io.cc, help.cc, |
|
8361 input.cc, lex.l, load-save.cc, mappers.cc, octave-hist.cc, |
|
8362 octave.cc, octave.h, pager.cc, pr-output.cc, resource.cc, |
|
8363 sighandlers.cc, strfns.cc, sysdep.cc, timefns.cc, token.cc, |
|
8364 tree-const.cc, tree-expr.cc, tree-expr.h, tree-plot.cc, |
|
8365 unwind-prot.cc, unwind-prot.h, utils.cc, variables.cc, |
|
8366 variables.h, version.h, xdiv.cc: |
|
8367 Avoid unused variable warnings. |
|
8368 |
|
8369 * tree-expr.h (tree_oct_obj::print_value (ostream&)): |
|
8370 Delete name of unused arg. |
|
8371 (tree_fvc::save (ostream&, int, int): Likewise. |
|
8372 |
|
8373 * tree-const.h (tree_constant::tree_constant (magic_colon)): |
|
8374 Delete name of unused arg. |
|
8375 (tree_constant::tree_constant (all_va_args)): Likewise |
|
8376 (ColumnVector vector_value (int, int)): Likewise. |
|
8377 (ComplexColumnVector vector_value (int, int)): Likewise. |
|
8378 (Octave_object::eval (int, int, const Octave_object&): Likewise. |
|
8379 |
|
8380 * octave.cc (execute_startup_files): Look for octaverc first in |
|
8381 site/m, then in $(version)/m. |
|
8382 * variables.cc (get_local_site_defaults): New function. |
|
8383 * defaults.h.in (OCTAVE_LOCALFCNFILEDIR, OCTAVE_LOCALSTARTUPFILEDIR): |
|
8384 New macros. |
|
8385 * Makefile.in (defaults.h): Also substitute ${localfcndir}. |
|
8386 |
|
8387 Mon Sep 25 17:01:03 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8388 |
|
8389 * variables.cc (install_builtin_variables): Add DEFCONST for "e". |
|
8390 |
|
8391 Fri Sep 22 02:18:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8392 |
|
8393 * dirfns.cc (Fls): Delete ls_command after using it, not before. |
|
8394 |
|
8395 * input.h, input.cc (gnu_readline): Don't declare gnu_readline |
|
8396 `extern "C"'. |
|
8397 |
|
8398 * sysdep.h: Only declare gethostname if it is missing, then don't |
|
8399 declare it `extern "C"'. |
|
8400 |
|
8401 * dirfns.cc: Don't declare strerror(). |
|
8402 |
|
8403 * input.cc (command_generator): Use malloc, not xmalloc. Don't |
|
8404 declare xmalloc. |
|
8405 (gnu_readline): Don't declare this `extern "C"'. |
|
8406 |
|
8407 * octave-hist.cc: Don't declare history_get(). It is now in |
|
8408 readline/history.h. |
|
8409 |
|
8410 * input.cc: Don't declare history_get(). It is now in |
|
8411 readline/readline.h. |
|
8412 |
|
8413 * resource.cc: Don't surround include of sys/resource.h in |
|
8414 `extern "C" { }'. |
|
8415 |
|
8416 * fnmatch.h [__cplusplus]: Surround contents in `extern "C" { }'. |
|
8417 * load-save.cc, symtab.cc, variables.cc: Don't surround |
|
8418 fnmatch.h include in `extern "C" { }'. |
|
8419 |
|
8420 * help.cc: Don't #undef __FUNCTION_DEF before including |
|
8421 readline/tilde.h. |
|
8422 |
|
8423 * dirfuns.cc, file-io.cc, help.cc, load-save.cc, octave-hist.cc, |
|
8424 sysdep.cc, tree-plot.cc, utils.cc, variables.cc: |
|
8425 Don't surround readline includes in `extern "C" { }'. |
|
8426 |
|
8427 * sysdep.cc: Move all include statements to top of file. |
|
8428 |
|
8429 Tue Sep 19 01:58:21 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8430 |
|
8431 * octave.cc (Fsystem): Use iprocstream *, and unwind_protect it. |
|
8432 * pager.cc (flush_output_to_pager): Likewise. |
|
8433 * dirfns.cc (Fls): Likewise. |
|
8434 * tree-plot.cc (plot_stream): Now a pointer. |
|
8435 (open_plot_stream): Deal with it. |
|
8436 (send_to_plot_stream, cleanup_tmp_files, do_external_plotter_cd): |
|
8437 Likewise. |
|
8438 |
|
8439 * procstream.cc (cleanup_iprocstream, cleanup_oprocstream): |
|
8440 New functions. |
|
8441 |
|
8442 * procstream.h, procstream.cc (class iprocstream, class oprocstream): |
|
8443 Keep track of pbuf. Initialize it to 0 in default constructors, |
|
8444 delete it in destructor. Don't call close in destructor. |
|
8445 |
|
8446 * sighandlers.cc (octave_set_signal_handler): New function. |
|
8447 Use this name instead of signal everywhere. |
|
8448 * help.cc (try_info): Likewise. |
|
8449 * pager.cc (flush_output_to_pager): Likewise. |
|
8450 * octave.cc (main): Likewise. |
|
8451 * octave-hist.cc (do_edit_history): Likewise. |
|
8452 |
|
8453 * input.cc (initialize_readline): Set rl_paren_string_delimiters |
|
8454 to avoid treating single quotes as string delimiters when doing |
|
8455 paren matching. |
|
8456 |
|
8457 * Makefile.in (SOURCES): Don't list Map.cc or SLStack.cc here. |
|
8458 |
|
8459 * tree-const.cc: Do include utils.h. |
|
8460 |
|
8461 * sysdep.cc: Don't surround terminal includes in extern "C". |
|
8462 Include them before readline.h. |
|
8463 |
|
8464 * Map.h: Don't include utils.h. |
|
8465 (CHNode::CHNode (const char*, const C&, CHNode *t): |
|
8466 Do strsave() inline. |
|
8467 |
|
8468 * input.cc (generate_possible_completions): Generate name list |
|
8469 even when text == 0. |
|
8470 (operate_and_get_next): Don't declare history_stifled, call |
|
8471 history_is_stifled () instead. |
|
8472 Don't declare history_length, or max_input_history either. |
|
8473 Check (where >= history_length - 1) too, as in recent versions of |
|
8474 bash. |
|
8475 |
|
8476 * user-prefs.h (user_prefs): New field, `completion_append_char'. |
|
8477 * user-prefs.cc (init_user_prefs): Initialize it. |
|
8478 (sv_completion_append_char): New function. |
|
8479 * variables.cc (install_builtin_variables): Install |
|
8480 completion_append_char. |
|
8481 * input.cc (command_generator): Use it. |
|
8482 |
|
8483 * SLList-expr.cc, SLList-misc.cc, SLList-plot.cc, SLList-tc.cc, |
|
8484 DLList-fi.cc: Include config.h. |
|
8485 * DLList-fi.cc: Include file-info.h, not file-io.h. |
|
8486 |
|
8487 Mon Sep 18 11:01:24 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8488 |
|
8489 * octave.h (clean_up_and_exit): Tag with NORETURN instead of using |
|
8490 typedef trick. |
|
8491 * error.h (panic): Likewise. |
|
8492 * utils.h (jump_to_top_level): Likewise. |
|
8493 |
|
8494 * file-io.h: Protect from multiple includes with octave_file_io, |
|
8495 not octave_files. |
|
8496 |
|
8497 * file-info.h (class file_info): Convert to using std C++ string |
|
8498 class from char *. |
|
8499 * file-info.cc: Likewise. Don't include utils.h. |
|
8500 * file-io.cc (return_valid_file, fopen_file_for_user, |
|
8501 fflush_internal, do_scanf): Use operator ==, not strcmp. |
|
8502 (close_files): Call error with file.name ().data (), |
|
8503 not file.name (). |
|
8504 (freport_internal): Call form with file.mode ().data () and |
|
8505 file.name ().data (). |
|
8506 |
|
8507 * file-io.cc, file-io.h: Extract file_info class. |
|
8508 * file-info.cc, file-info.h: New files for file_info class. |
|
8509 |
|
8510 * user-prefs.h (user_prefs): New field, `beep_on_error'. |
|
8511 * user-prefs.cc (init_user_prefs): Initialize it. |
|
8512 (beep_on_error): New function. |
|
8513 * variables.cc (install_builtin_variables): Install beep_on_error. |
|
8514 * octave.cc (maximum_braindamage): Set beep_on_error to "true". |
|
8515 * error.cc (verror): Conditionally beep. |
|
8516 (error): Don't reset error_state until after verror is called. |
|
8517 |
|
8518 Sun Sep 17 16:41:25 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8519 |
|
8520 * load-save.cc (read_mat_binary_data, read_ascii_data, |
|
8521 save_ascii_data, read_binary_data, save_binary_data): |
|
8522 Handle string arrays. |
|
8523 |
|
8524 Fri Sep 15 00:24:19 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8525 |
|
8526 * user-prefs.cc (struct_levels_to_print, |
|
8527 set_output_max_field_width, set_output_precision, |
|
8528 set_save_precision): Eliminate unecessary kludge variable. |
|
8529 |
|
8530 * variables.cc (gobble_leading_white_space): New arg, |
|
8531 in_parts. Change all callers. |
|
8532 |
|
8533 * lex.l (HELP_FCN): Delete start state. The `help' command is now |
|
8534 handled the same as any other text-style function. |
|
8535 |
|
8536 * gripes.cc (gripe_invalid_value_specified): New function |
|
8537 * user-prefs.cc: Use it. |
|
8538 |
|
8539 * sysdep.cc (octave_words_big_endian): New global variable. |
|
8540 (ten_little_endians): New function. |
|
8541 (sysdep_init): Call it. |
|
8542 * load-save.cc (words_big_endian): Use this at run-time instead of |
|
8543 depending on WORDS_BIGENDIAN at compile-time. |
|
8544 |
|
8545 * symtab.h (SYMTAB_VARIABLES): New macro. |
|
8546 * variables.cc (Fclear): Use it instead of just |
|
8547 symbol_def::USER_VARIABLE when looking for variables. |
|
8548 |
|
8549 * octave.cc (main): If there is a file to execute, set |
|
8550 program_invocation_name and program_name to the name of the file |
|
8551 and argv to the remaining args. |
|
8552 (intern_argv): Only define argv if there are some remaining |
|
8553 arguments. |
|
8554 |
|
8555 * defun.h (DEFVAR_INT): New macro. |
|
8556 (DEFVAR): Define in terms of DEFVAR_INT. Delete args protect and |
|
8557 eternal. |
|
8558 (DEFCONST): New macro. |
|
8559 * variables.cc (install_builtin_variables): Use DEFCONST where |
|
8560 appropriate, change uses of DEFVAR to match new definition. |
|
8561 |
|
8562 * variables.cc (bind_builtin_variable): New variant that accepts |
|
8563 const tree_constant& value. |
|
8564 (install_builtin_variables): Properly alphabetize DEFVAR for this. |
|
8565 |
|
8566 * octave.cc (short_opts): Prefix with `+' to prevent argv |
|
8567 permutation. |
|
8568 (main): Don't use readline if forced_interactive. |
|
8569 (traditional): New file-scope variable. |
|
8570 (long_opts, usage_string, verbose_usage): Add `--traditional'. |
|
8571 (maximum_braindamage): New function. |
|
8572 (main): Call it if --traditional. |
|
8573 |
|
8574 * input.cc (do_input_echo): Print prompt correctly when |
|
8575 forced_interactive is either true or false. |
|
8576 |
|
8577 Thu Sep 14 00:54:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8578 |
|
8579 * data.cc (Fstruct_elements): New function. |
|
8580 |
|
8581 * file-io.cc (Fumask): New function. |
|
8582 |
|
8583 * dirfns.cc (Fmkdir, Frmdir, Frename): New functions. |
|
8584 |
|
8585 * Makefile.in: Add rules and dependencies for building safe-stat.o |
|
8586 and safe-lstat.o. |
|
8587 |
|
8588 * mkdir.c, rename.c, rmdir.c: New files. |
|
8589 * Makefile.in (SOURCES): Include them in the list. |
|
8590 |
|
8591 * safe-xstat.hin, safe-xstat.cin: New files |
|
8592 * Makefile.in (DISTFILES): Include them in the list. |
|
8593 |
|
8594 * sighandlers.cc (octave_new_handler): Try to continue on memory |
|
8595 exhausted errors. |
|
8596 (sigfpe_handler): Improve error message. |
|
8597 |
|
8598 * Makefile.in: Use `ifndef omit_deps', not `ifndef $(omit_deps)'. |
|
8599 |
|
8600 * dirfns.cc (Freaddir): New function. |
|
8601 |
|
8602 * f-sort.cc: Complete rewrite. Now uses stable sort algorithm and |
|
8603 correctly handles complex matrices containing columns of all real |
|
8604 numbers. |
|
8605 |
|
8606 Wed Sep 13 03:16:40 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8607 |
|
8608 * arith-ops.cc: Unconditionally #define DIVIDE_BY_ZERO_ERROR. |
|
8609 |
|
8610 * variables.cc (install_builtin_variables): Unconditionally |
|
8611 install NaN and nan. |
|
8612 |
|
8613 * mappers.cc (xisinf): Don't do bogus things if isinf, isnan, or |
|
8614 finite are missing. |
|
8615 (xfinite): Likewise. |
|
8616 |
|
8617 * sysdep.cc (octave_ieee_init): Don't set octave_NaN and |
|
8618 octave_Inf if values are not available. |
|
8619 |
|
8620 * resource.cc (mk_ru_map): Don't use ru_ or tv_ as prefixes to |
|
8621 Octave names for the structure members. |
|
8622 |
|
8623 Tue Sep 12 02:04:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8624 |
|
8625 * procstream.h, procstream.cc: Rewrite. |
|
8626 |
|
8627 Mon Sep 11 18:42:05 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8628 |
|
8629 * filemode.c: New file, from Emacs. |
|
8630 * Makefile.in (SOURCES): Add it to the list. |
|
8631 |
|
8632 * file-io.cc (Fstat, Flstat, mk_stat_map): New functions. |
|
8633 |
|
8634 * timefns.cc (mk_tm_map): Don't use tm_ as prefix to Octave names |
|
8635 for these structure members. |
|
8636 (extract_tm): Likewise. |
|
8637 (Flocaltime): Fix doc string to match. |
|
8638 |
|
8639 Thu Sep 7 02:04:27 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8640 |
|
8641 * load-save.cc (save_user_variables): New function. |
|
8642 * sighandlers.cc (my_friendly_exit): Call it before exiting. |
|
8643 (sigfpe_handler): New function. |
|
8644 (install_signal_handlers) [__alpha__]: Install it. |
|
8645 |
|
8646 Wed Sep 6 14:35:10 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8647 |
|
8648 * tree-cmd.cc (tree_unwind_protect::eval): Ignore errors and |
|
8649 suppress error messages while executing first block of |
|
8650 unwind_protect commands. |
|
8651 |
|
8652 * parse.y (end_error): Add missing case for unwind_protect_end. |
|
8653 |
|
8654 * tree-expr.cc (tree_builtin::eval): Complain if no arguments |
|
8655 given for mapper functions. |
|
8656 (tree_fvc::lookup_map_element): Print error message for invalid |
|
8657 structure reference. |
|
8658 |
|
8659 Tue Sep 5 02:04:12 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8660 |
|
8661 * file-io.cc, input.cc, load-save.cc, octave.cc, sysdep.cc, |
|
8662 variables.cc, octave-hist.cc, utils.cc, f-schur.cc, f-rand.cc, |
|
8663 f-quad.cc, f-qpsol.cc, f-npsol.cc, f-lsode.cc, f-fsolve.cc, |
|
8664 f-dassl.cc, f-colloc.cc, f-balance.cc, error.cc, data.cc: |
|
8665 Add const qualifiers where appropriate. |
|
8666 |
|
8667 * dirfns.h: Include <ctime>, for time_t. |
|
8668 |
|
8669 * tempname.c, file-io.cc, help.cc, input.cc, octave-hist.cc, |
|
8670 octave.cc, sighandlers.cc, sysdep.cc, tree-expr.cc, tree-misc.cc, |
|
8671 tree-plot.cc, utils.cc, variables.cc, sysdir.h: |
|
8672 Move #include <sys/type.h> inside #ifdef HAVE_UNISTD_H. |
|
8673 |
|
8674 * syswait.h: New file. |
|
8675 * Makefile.in (INCLUDES): Add it to the list. |
|
8676 * file-io.cc, sighandlers.cc: Use it instead of including |
|
8677 sys/wait.h directly. |
|
8678 |
|
8679 * octave.cc: Include statdefs.h, not sys/stat.h. |
|
8680 |
|
8681 * sysdir.h: New file. |
|
8682 * Makefile.in (INCLUDES): Add it to the list. |
|
8683 * dirfns.cc, utils.cc: Use it instead of including the headers |
|
8684 directly. |
|
8685 |
|
8686 * pathlen.h: New file. |
|
8687 * Makefile.in (INCLUDES): Add it to the list. |
|
8688 * dirfns.cc, input.cc: Use it instead of including sys/param.h |
|
8689 directly. |
|
8690 * utils.cc: Don't include sys/param.h |
|
8691 |
|
8692 Sun Sep 3 18:52:59 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8693 |
|
8694 * tree-const.cc (TC_REP::string_value): Return const char*, not |
|
8695 char *. |
|
8696 |
|
8697 * All .cc, .y, .l, .y files: Include <cctype>, not <ctype.h>, and |
|
8698 so on for all new C++ versions of these standard C headers. |
|
8699 |
|
8700 Thu Aug 31 17:09:38 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8701 |
|
8702 * pathsearch.h: Also hide `string'. |
|
8703 |
|
8704 * oct-str.cc, oct-str.h: New files. |
|
8705 * Makefile.in: Add to the appropriate lists. |
|
8706 * tc-rep.h: Change char* to Octave_string* in anonymous union. |
|
8707 * tree-expr.cc (tree_matrix::eval): Handle multiple element strings. |
|
8708 * strfns.cc (toascii): Likewise. |
|
8709 * tree-const.cc (print_as_string): Likewise. |
|
8710 (TC_REP::force_numeric, TC_REP::rows, TC_REP::columns, |
|
8711 TC_REP::double_value, TC_REP::complex_value, TC_REP::matrix_value, |
|
8712 TC_REP::complex_matrix_value, TC_REP::convert_to_str): Likewise. |
|
8713 (TC_REP::print): Call octave_print_internal for string case. |
|
8714 (all_strings): New function. |
|
8715 Fix constructors to use new data structure. |
|
8716 * pr-output.cc (octave_print_internal): Add version for strings. |
|
8717 * Array-string.cc: New file. |
|
8718 |
|
8719 * octave.cc (octave_argv): New global variable. |
|
8720 (intern_argv): New function. |
|
8721 (main): Fix argument parsing to do the right thing for arguments |
|
8722 to executable scripts. |
|
8723 * variables.cc: Add DEFUNs for argv, program_invocation_name, and |
|
8724 program_name. |
|
8725 |
|
8726 * defun.h (DEFVAR): Fix comment. |
|
8727 |
|
8728 Thu Aug 24 00:02:00 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8729 |
|
8730 * file-io.cc (fgets_internal): Make second arg optional. Add |
|
8731 optional arg `strip_final_newline'. |
|
8732 (Ffgets): Change to match new definition of fgets_internal. |
|
8733 (Ffgetl): Implement using the new fgets_internal. |
|
8734 |
|
8735 * f-rand.cc (Frand): Update code for sizing return value to match |
|
8736 that used by ones, zeros, and eye. |
|
8737 |
|
8738 Wed Aug 23 19:52:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8739 |
|
8740 * tree-const.cc (do_vector_assign): Don't crash for |
|
8741 A(range) = scalar, or A(matrix) = scalar. |
|
8742 |
|
8743 * f-dassl.cc (set_dassl_option): Rename from do_dassl_option. |
|
8744 (show_dassl_option): New function. |
|
8745 (Fdassl_options): Handle single arg. |
|
8746 * f-fsolve.cc (set_fsolve_option): Rename from do_fsolve_option. |
|
8747 (show_fsolve_option): New function. |
|
8748 (Ffsolve_options): Handle single arg. |
|
8749 * f-fsqp.cc (set_fsqp_option): Rename from do_fsqp_option. |
|
8750 (show_fsqp_option): New function. |
|
8751 (Ffsqp_options): Handle single arg. |
|
8752 * f-lpsolve.cc (set_lpsolve_option): Rename from do_lpsolve_option. |
|
8753 (show_lpsolve_option): New function. |
|
8754 (Flpsolve_options): Handle single arg. |
|
8755 * f-lsode.cc (set_lsode_option): Rename from do_lsode_option. |
|
8756 (show_lsode_option): New function. |
|
8757 (Flsode_options): Handle single arg. |
|
8758 * f-npsol.cc (set_npsol_option): Rename from do_npsol_option. |
|
8759 (show_npsol_option): New function. |
|
8760 (Fnpsol_options): Handle single arg. |
|
8761 * f-qpsol.cc (set_qpsol_option): Rename from do_qpsol_option. |
|
8762 (show_qpsol_option): New function. |
|
8763 (Fqpsol_options): Handle single arg. |
|
8764 * f-quad.cc: (set_quad_option): Rename from do_quad_option. |
|
8765 (show_quad_option): New function. |
|
8766 (Fquad_options): Handle single arg. |
|
8767 (Fquad): Doc fix. |
|
8768 |
|
8769 Tue Aug 22 00:38:05 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8770 |
|
8771 * tree-plot.cc (do_external_plotter_cd): New function. |
|
8772 * dirfns.cc (octave_change_to_directory): New function. If cd is |
|
8773 successful, also call do_external_plotter_cd(). |
|
8774 (Fcd): Call octave_change_to_directory(), not change_to_directory(). |
|
8775 |
|
8776 * pr-output.cc (pr_any_float): Change declaration of counter to |
|
8777 size_t to avoid gcc warnings. |
|
8778 |
|
8779 * idx-vector.cc, octave-hist.cc, tree-const.cc, tree-expr.cc, |
|
8780 tree-misc.cc, utils.cc, xpow.cc, Map.cc: |
|
8781 Update for change in for loop variable scope for gcc 2.7.0. |
|
8782 |
|
8783 Mon Aug 21 19:34:53 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8784 |
|
8785 * tree-const.cc (fortran_style_matrix_assignment): Properly handle |
|
8786 case of complex LHS, real RHS. |
|
8787 |
|
8788 * Makefile.in: Only include dependency files if $(omit_deps) is |
|
8789 not set. |
|
8790 |
|
8791 Wed Jul 5 00:03:58 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8792 |
|
8793 * sysdep.cc: Explicitly include string.h. |
|
8794 |
|
8795 Sun Jun 25 00:18:10 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8796 |
|
8797 * load-save.cc (too_large_for_float (const Matrix&)): |
|
8798 Extract elements as doubles, not Complex. |
|
8799 |
|
8800 Sat Jun 24 22:59:15 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8801 |
|
8802 * pr-output.cc (any_element_is_inf_or_nan): Declare extern, not static. |
|
8803 * f-svd.cc (Fsvd): Call here to avoid trying to take SVD of matrix |
|
8804 containing Inf or NaN values. |
|
8805 |
|
8806 * pr-output.cc (bit_format): New file-scope variable. |
|
8807 (set_format, pr_any_float): Handle bit_format. |
|
8808 (octave_print_internal): Handle bit_format like bank_format. |
|
8809 (init_format_state): Initialize bit_format. |
|
8810 (set_format_style): Allow `format bit' and `format native-bit'. |
|
8811 |
|
8812 Thu Jun 8 15:20:26 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8813 |
|
8814 * mappers.cc (arg, imag, signum): If arg is NaN, return NaN. |
|
8815 |
|
8816 Mon May 15 14:47:04 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8817 |
|
8818 * pager.cc (Fdiary): Initialize diary_file here, not in the |
|
8819 file-scope declaration. |
|
8820 |
|
8821 * tree-expr.cc (tree_index_expression::eval): |
|
8822 Handle nargin == 0 the same as other cases. |
|
8823 |
|
8824 Tue May 2 10:02:23 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8825 |
|
8826 * load-save.cc (do_double_format_conversion): Add missing breaks. |
|
8827 (do_float_format_conversion): Likewise. |
|
8828 |
|
8829 Mon May 1 13:50:24 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8830 |
|
8831 * Makefile.in (OCTAVE_LIBS): Add @LIBPLPLOT@ to the list. |
|
8832 |
|
8833 * timefns.cc (Ftime): Handle GETTIMEOFDAY_NO_TZ. |
|
8834 |
|
8835 * Makefile.in (SOURCES): Delete tc-rep.cc, tc-rep-ass.cc, and |
|
8836 tc-rep-idx.cc from the list. |
|
8837 |
|
8838 * tree-const.h: Add #pragma interface. |
|
8839 * tree-const.cc: Add contents of tc-rep.cc, tc-rep-ass.cc, and |
|
8840 tc-idx.cc to this file. Add #pragma implementation. This makes |
|
8841 tree-const.cc large, but makes the final binary smaller. |
|
8842 |
|
8843 * unwind-prot.h unwind-prot.cc token.cc token.h procstream.cc |
|
8844 procstream.h idx-vector.cc idx-vector.h symtab.cc symtab.h |
|
8845 oct-map.cc oct-map.h oct-obj.cc oct-obj.h tree-plot.h tree-plot.cc |
|
8846 tree-misc.cc tree-misc.h tree-expr.cc tree-expr.h tree-cmd.cc |
|
8847 tree-cmd.h tree-base.cc tree-base.h: |
|
8848 Add #pragma interface/implementation. |
|
8849 |
|
8850 * Makefile.in (OCTAVE_LIBS): Delete @LIBINFO@ from list. |
|
8851 * help.cc: Don't include info headers or extern declarations for |
|
8852 functions from info. |
|
8853 (try_info): Call info as a subprocess. Delete second arg. |
|
8854 Handle SIGINT here, not in help_from_info(). |
|
8855 (help_from_info): Complain if info doesn't work. |
|
8856 |
|
8857 * defun-dld.h (DEFUN_DLD_BUILTIN) [OCTAVE_LITE && MAKE_BUILTINS]: |
|
8858 If ! WITH_DLD, simply emit a character string constant. |
|
8859 |
|
8860 Fri Apr 28 15:23:06 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8861 |
|
8862 * lex.l ({IDENT}{S}*): Don't delete tok. That's handled by |
|
8863 strip_trailing_whitespace() now. |
|
8864 (<HELP_FCN>[^ \t\n]*{S}*|<TEXT_FCN>[^ \t\n\;\,]*{S}*): Ditto. |
|
8865 |
|
8866 * pathsearch.h: Include kpathsea/progname.h. |
|
8867 * octave.cc (initialize_globals): Call kpse_set_progname(). |
|
8868 |
|
8869 * token.h: Declare copy constructor and operator = private. |
|
8870 * token.cc: Abort if copy constructor or operator = is used. |
|
8871 |
|
8872 Thu Apr 27 13:54:39 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8873 |
|
8874 * tree-expr.cc (lookup_map_element): Don't list default argument |
|
8875 values here too. |
|
8876 |
|
8877 * pr-output.cc (hex_format): New file-scope variable. |
|
8878 (set_format, pr_any_float): Handle hex_format. |
|
8879 (octave_print_internal): Handle hex_format like bank_format. |
|
8880 (init_format_state): Initialize hex_format. |
|
8881 (set_format_style): Allow `format hex' and `format native-hex'. |
|
8882 |
|
8883 * variables.cc (bind_ans): Create ans_id each time with new and |
|
8884 ask tree_simple_assignment_expression to handle cleaning it up. |
|
8885 This apparently plugs a memory leak. |
|
8886 |
|
8887 * help.cc (Ftype): Don't try to print map constants. Handle |
|
8888 references to structure members. |
|
8889 |
|
8890 Wed Apr 26 12:40:59 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8891 |
|
8892 * input.cc (generate_struct_completions): New function. |
|
8893 (generate_possible_completions): Likewise. |
|
8894 (looks_like_struct): Likewise. |
|
8895 (command_generator): Handle completion of struct variables. |
|
8896 |
|
8897 * tree-expr.h, tree-expr.cc (tree_fvc::lookup_map_element): |
|
8898 Add insert and silent args. |
|
8899 |
|
8900 * oct-map.cc: New file. |
|
8901 * Makefile.in (SOURCES): Add it to the list. |
|
8902 |
|
8903 Mon Apr 24 09:41:02 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8904 |
|
8905 * variables.cc (Fexist): Handle structure references too. |
|
8906 |
|
8907 * tree-const.cc (lookup_map_element (const char*, int, int): |
|
8908 New function. |
|
8909 (lookup_map_element (SLList<char*>&, int, int): New arg, silent. |
|
8910 * tc-rep.cc (lookup_map_element): New arg, silent. If nonzero, |
|
8911 don't call error(). |
|
8912 |
|
8913 * tc-rep.h (is_empty): Define here. |
|
8914 * tree-const.h (is_empty): Hand off to TC_REP::is_empty(). |
|
8915 |
|
8916 * data.cc (Fstruct_contains): Call lookup_map_element on args(0) |
|
8917 instead of extracting the map and calling contains() on it. |
|
8918 |
|
8919 * parse.y (EPLUS, EMINUS): New tokens. |
|
8920 (simple_expr): Handle EPLUS, EMINUS the same as `+' and `-'. |
|
8921 * lex.l (".+", ".-"): New patterns. Match these separately to |
|
8922 disallow using them as unary operators. |
|
8923 |
|
8924 * lex.l (next_token_is_bin_op): Simplify by noting that spacing |
|
8925 only matters for those tokens that can also be unary ops. |
|
8926 |
|
8927 Fri Apr 21 14:34:45 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8928 |
|
8929 * load-save.cc (read_ascii_data): Allow reading of empty |
|
8930 matrices. |
|
8931 |
|
8932 * tc-rep-ass.cc (vector_assignment): Only assert that we are not |
|
8933 doing fortran-style indexing and that nr <= 1 || nc <= 1. |
|
8934 (do_vector_assign): Handle assignment of [] when one dimension is |
|
8935 zero and the other is anything. |
|
8936 |
|
8937 Thu Apr 20 13:56:21 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8938 |
|
8939 * tc-rep-ass.cc (delete_rows, delete_columns): Simply return if |
|
8940 num_to_delete is 0. |
|
8941 |
|
8942 * lex.l (handle_identifier): Don't match plot option keywords |
|
8943 inside parentheses or braces. |
|
8944 |
|
8945 * variables.cc (parse_fcn_file): Also delete tmp_help_txt if |
|
8946 running a script. |
|
8947 |
|
8948 * tree-cmd.h (tree_command): Add destructor. |
|
8949 |
|
8950 * tree-expr.h tree_simple_assignment_expression (lhs_idx_expr): |
|
8951 Hang on to idx_expr, not just its parts so it can be deleted. |
|
8952 (init): Initialize it. |
|
8953 * tree-expr.cc (~tree_simple_assignment_expression): Delete it. |
|
8954 |
|
8955 * tree-expr.h (tree_multi_val_ret, tree_oct_obj, tree_fvc, |
|
8956 tree_identifier, tree_builtin, tree_function): Add destructors. |
|
8957 * tree-expr.cc (tree_function::~tree_function): Delete some stuff. |
|
8958 |
|
8959 * tree-misc.h (tree_va_return_list): Add destructor. |
|
8960 |
|
8961 * octave.cc (__builtin_new, __builtin_delete): Provide our own, |
|
8962 for debugging. |
|
8963 |
|
8964 * utils.cc (strconcat): Don't depend on the return value from |
|
8965 strcat. |
|
8966 (file_in_path): Simplify logic. |
|
8967 |
|
8968 * parse.y (maybe_convert_to_ans_assign): Create ans_id each time |
|
8969 with new and ask tree_simple_assignment_expression to handle |
|
8970 cleaning it up. This apparently plugs a memory leak. |
|
8971 |
|
8972 * lex.l (strip_trailing_whitespace): Declare retval static. |
|
8973 Delete it before saving next string. |
|
8974 |
|
8975 * error.cc (Ferror): Do call error() for empty string args. |
|
8976 (error_1): Don't print anything if fmt is "" or "\n", but do set |
|
8977 the error state appropriately. |
|
8978 |
|
8979 * tree-cmd.cc (tree_unwind_protect::eval): Handle return and break |
|
8980 in the `try' part of the statement. |
|
8981 |
|
8982 Mon Apr 10 19:29:44 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8983 |
|
8984 * f-expm.cc, f-givens.cc, f-qzval.cc, f-syl.cc, f-rand.cc: |
|
8985 Where appropriate, declare Fortran functions to take reference |
|
8986 instead of pointer args. Change callers. |
|
8987 |
|
8988 * mappers.cc: Declare Fortran functions to take reference instead |
|
8989 of pointer args. Change callers. |
|
8990 |
|
8991 * gamma.c, lgamma.c, erfc.c, erf.c, atanh.c, asinh.c, acosh.c: |
|
8992 Declare Fortran functions to take reference instead of pointer |
|
8993 args. |
|
8994 |
|
8995 Sun Apr 9 19:38:53 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8996 |
|
8997 * file-io.cc (Fpopen, Fpclose, Fexecute, Fsync_system, |
|
8998 Fasync_system, Fwaitpid, Fmkfifo, Funlink): New functions. |
|
8999 |
|
9000 * sighandlers.cc (sigchld_handler): New function. |
|
9001 (install_signal_handlers): Add call to install |
|
9002 sigchld_handler. (This is #if 0'd out, waiting for code to help |
|
9003 determine which child exited and what to do about it). |
|
9004 |
|
9005 * tree-expr.h (tree_oct_obj): New class. |
|
9006 |
|
9007 * tree-expr.h (tree_multi_assignment_expression::preserve): New |
|
9008 data member. Add arg with default value to constructors. Change |
|
9009 callers as necessary. |
|
9010 * tree-expr.cc (~tree_multi_assignment_expression): Conditionally |
|
9011 delete lhs. |
|
9012 |
|
9013 * parse.y (make_multi_val_ret): Pass matrix instead of getting it |
|
9014 from the global matrix list. |
|
9015 (expression): Extract matrix from matrix list before calling |
|
9016 make_multi_val_ret(). |
|
9017 |
|
9018 * parse.y (command): Handle new for loop syntax for structures. |
|
9019 |
|
9020 * tree-plot.h (subplot_list): Include tree_print_code() in |
|
9021 initializer lists for constructors. |
|
9022 * tree-expr.h (tree_statement_list, tree_argument_list, |
|
9023 tree_parameter_list, tree_return_list, tree_global_init_list, |
|
9024 tree_if_command_list, ): Likewise. |
|
9025 |
|
9026 * tree-cmd.h (tree_for_command::id_list): New data member. |
|
9027 (tree_for_command (tree_return_list*, tree_expression*, |
|
9028 tree_statement_list*, int, int)): Likewise. |
|
9029 * tree-cmd.cc (tree_for_command::eval): Handle for loops with |
|
9030 structures. |
|
9031 (do_for_loop_once (tree_return_list*, Octave_object&, int&)): |
|
9032 New form for handling for loops with structures. |
|
9033 |
|
9034 * sysdep.cc (octave_ieee_init): Determine floating point format |
|
9035 here. |
|
9036 (native_float_format): New global variable. |
|
9037 (Fisieee): Compute return value from native_float_format, not by |
|
9038 using preprocessor macros. |
|
9039 * sysdep.h (enum floating_point_format): Move declaration here. |
|
9040 * load-save.cc: From here. |
|
9041 Always define all floating point format conversion routines. |
|
9042 (do_double_format_conversion, do_float_format_conversion): |
|
9043 Use native_float_format instead of preprocessor macros. |
|
9044 |
|
9045 Sat Apr 8 15:41:35 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9046 |
|
9047 * Makefile (TEMPLATE_SRC): New variable. |
|
9048 (DISTFILES): Add $(TEMPLATE_SRC). |
|
9049 (SOURCES): Delete Map.cc and SLStack.cc from here. |
|
9050 |
|
9051 * variables.cc (install_builtin_variables): Use OCTAVE_VERSION |
|
9052 instead of version_string to initialize OCTAVE_VERSION. |
|
9053 * version.h (version_string): Delete. |
|
9054 |
|
9055 * getopt.c (_getopt_internal): Initialize indfound to avoid warning. |
|
9056 |
|
9057 Fri Apr 7 15:29:41 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9058 |
|
9059 * tc-inlines.h (REP_RHS_MATRIX): Just check to see if tc is real |
|
9060 or complex. If conversion fails, return. |
|
9061 |
|
9062 Thu Apr 6 00:10:47 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9063 |
|
9064 * data.cc (Fstruct_contains): New function. |
|
9065 |
|
9066 * tc-rep.cc (print_code): Add extra parens around while condition |
|
9067 to avoid warning. |
|
9068 * utils.cc (undo_string_escapes): Likewise. |
|
9069 * input.cc (decode_prompt_string): Likewise. Also rewrite if |
|
9070 statement to avoid warning. |
|
9071 |
|
9072 Tue Apr 4 22:54:17 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9073 |
|
9074 * tree-expr.cc (tree_multi_assignment_expression::eval, |
|
9075 tree_simple_assignment_expression::eval): Call print_constant |
|
9076 even if user_pref.print_answer_id_name is false. |
|
9077 |
|
9078 Mon Apr 3 17:57:14 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9079 |
|
9080 * tc-inlines.h (TC_REP): Avoid redefinition. |
|
9081 |
|
9082 * tree-const.h (do_binary_op, do_unary_op): Declare as friends of |
|
9083 tree_constant class too. |
|
9084 |
|
9085 * tree-plot.h (subplot_using::have_values): Delete data member. |
|
9086 * tree-plot.cc (subplot_using::eval): Always recompute values. |
|
9087 |
|
9088 Fri Mar 31 10:18:32 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9089 |
|
9090 * tc-rep.cc (print): Print open brace for structures here. |
|
9091 * tree-expr.cc (print_constant): Not here. |
|
9092 |
|
9093 * symtab.cc (define): Don't delete arg if sv_fcn fails. |
|
9094 |
|
9095 * tree-const.cc (print): New function. Create ostrstream buffer |
|
9096 and pass it to rep->print(). |
|
9097 * tree-const.h (eval (int)): Call print(), not rep->print(). |
|
9098 * tc-rep.cc (structure_indent_level): New file-scope variable. |
|
9099 (print): New arg, output_buf, is stream to print to. |
|
9100 Print values of structure elements too. |
|
9101 |
|
9102 * user-prefs.h (user_preferences): New field, struct_levels_to_print. |
|
9103 * user-prefs.cc (struct_levels_to_print): New function. |
|
9104 * variables.cc (install_builtin_variables): Add DEFVAR for new |
|
9105 variable struct_levels_to_print. |
|
9106 |
|
9107 * tree-const.cc (print_as_scalar, print_as_structure): Move here |
|
9108 from tree-expr.cc and make extern. |
|
9109 |
|
9110 * tree-expr.cc (print_as_structure): New function. |
|
9111 (print_constant): Use it. |
|
9112 |
|
9113 * tree-expr.cc (print_constant): New arg, print_padding. |
|
9114 (tree_simple_assignment_expression::eval): Use print_constant |
|
9115 instead of duplicating code here. |
|
9116 (tree_multi_assignment_expression::eval): Likewise. |
|
9117 |
|
9118 Thu Mar 30 13:24:11 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9119 |
|
9120 * Makefile.in (SOURCES): Add resource.cc. |
|
9121 * resource.cc: New file, extracted from timefns.cc. |
|
9122 (Fgetrusage): New function. |
|
9123 * timefns.cc (cputime): Delete (now implemented in a function file |
|
9124 using new getrusage function). |
|
9125 |
|
9126 Wed Mar 29 22:52:42 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9127 |
|
9128 * Makefile.in (SOURCES): Add strftime.c. |
|
9129 * strftime.c: New file, from sh-utils distribution. |
|
9130 |
|
9131 * timefns.cc (mk_tm_map, extract_tm, Ftime, Fgmtime, Flocaltime, |
|
9132 Fmktime, Fstrftime): New basic time functions. |
|
9133 (Fclock, Fdate): Delete (now implemented in function files using new |
|
9134 time functions). |
|
9135 |
|
9136 Tue Mar 28 17:51:51 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9137 |
|
9138 * file-io.cc (return_valid_file, do_printf, do_scanf, |
|
9139 fclose_internal, feof_internal, ferror_internal, fflush_internal, |
|
9140 fgets_internal, fopen_internal, fread_internal, freport_internal, |
|
9141 frewind_internal, fseek_internal, ftell_internal, |
|
9142 fwrite_internal): Declare static. |
|
9143 * file-io.h: Delete extern declarations for them. |
|
9144 |
|
9145 Fri Mar 24 09:52:50 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9146 |
|
9147 * pr-output.cc (pr_col_num_header): New function. |
|
9148 (compact_format): New file-scope variable. |
|
9149 (set_format_style): Handle loose and compact formats. |
|
9150 (octave_print_internal (ostream&, const ComplexMatrix&, int)): |
|
9151 Replace duplicate code with call to pr_col_num_header(). |
|
9152 (octave_print_internal (ostream&, const Matrix&, int): Likewise. |
|
9153 (octave_print_internal (ostream&, const Range&, int): Likewise. |
|
9154 |
|
9155 Tue Mar 21 08:44:48 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9156 |
|
9157 * mappers.cc (xgamma): Always use Slatec library function. |
|
9158 * (xlgamma): Likewise. |
|
9159 * Makefile.in (SOURCES): Don't include lgamma.c. |
|
9160 |
|
9161 Fri Mar 17 22:38:39 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9162 |
|
9163 * tc-rep.cc (TC_REP::new): Don't try to keep track of newlist_tail. |
|
9164 Explicitly initialize newlist to zero. |
|
9165 * tree-const.cc (tree_constant::operator new): Likewise. |
|
9166 |
|
9167 Fri Mar 10 12:40:24 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9168 |
|
9169 * tree-cmd.cc (quit_loop_now): Declare inline. |
|
9170 (tree_for_command::do_for_loop_once): Split into two versions, one |
|
9171 for the general case and one for when the loop variable is a |
|
9172 simple identifier. |
|
9173 (DO_LOOP): New macro. Move tests outside of loop. |
|
9174 (tree_for_command::eval): Speed up by checking to see if loop |
|
9175 variable is a simple identifier and by using DO_LOOP. |
|
9176 |
|
9177 * tree-const.h: New union of rep and freeptr. The freeptr element |
|
9178 is used for our custom memory management functions. |
|
9179 |
|
9180 * tc-rep.h: Add freeptr element to anonymous union (for our custom |
|
9181 memory management functions). |
|
9182 |
|
9183 * tree-const.cc (newlist, newlist_grow_size, newlist_tail): New |
|
9184 static variables. |
|
9185 (tree_constant::operator new): Always define to allow more |
|
9186 efficient allocation of single tree_constants. |
|
9187 (tree_constant::operator delete): Likewise, handle deletion of the |
|
9188 memory we allocate. |
|
9189 |
|
9190 * tc-rep.cc (newlist, newlist_grow_size, newlist_tail): New static |
|
9191 variables. |
|
9192 (tree_constant::operator new): Always define to allow more |
|
9193 efficient allocation of single tree_constants. |
|
9194 (tree_constant::operator delete): Likewise, handle deletion of the |
|
9195 memory we allocate. |
|
9196 |
|
9197 Fri Mar 3 14:00:08 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9198 |
|
9199 * error.cc (verror): Terminate output_buf with ends. |
|
9200 |
|
9201 * statdefs.h: Use C-style comment in first line instead of |
|
9202 C++-style comment. |
|
9203 |
|
9204 Mon Feb 27 10:11:18 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9205 |
|
9206 * parse.y (maybe_convert_to_ans_assign): Only lookup ans once. |
|
9207 * variables.cc (bind_ans): New function. |
|
9208 * tree-expr.cc (tree_identifier::eval (int)): Use it here. |
|
9209 (tree_identifier::eval (int, int, const Octave_object&): And here. |
|
9210 |
|
9211 * tree-expr.cc (install_nargin_and_nargout): New function. |
|
9212 * tree-expr.h (tree_function::tree_function (tree_statement_list *, |
|
9213 symbol_table *, int, int)): Call it. |
|
9214 |
|
9215 * tree-expr.cc (tree_function::bind_nargin_and_nargout): New function. |
|
9216 (tree_function::eval): Call it insead of the one from variables.cc. |
|
9217 |
|
9218 * variables.cc (bind_nargin_and_nargout): #if 0 out. |
|
9219 |
|
9220 Sun Feb 26 00:17:06 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9221 |
|
9222 * load-save.cc (Fload, Fsave): Free fname returned by tilde_expand(). |
|
9223 * dirfns.cc (Fls): Likewise. |
|
9224 |
|
9225 * tree-expr.cc (tree_multi_assignment_expression::eval (int, int, |
|
9226 const Octave_object&)): Call tree_return_list::operator () (Pix) |
|
9227 explicitly. |
|
9228 |
|
9229 * octave.cc (initialize_globals): Put TEXMF in the environment for |
|
9230 kpthsea. |
|
9231 |
|
9232 * Makefile.in (OCTAVE_LIBS): Use @LIBINFO@ and @LIBREADLINE@, |
|
9233 substituted by configure. Use kpathsea.a, not libkpathsea, so we |
|
9234 don't have to modify the kpathsea Makefile. |
|
9235 |
|
9236 Sat Feb 25 18:59:26 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9237 |
|
9238 * pathsearch.cc: New file. |
|
9239 * pathsearch.h: New file. |
|
9240 * Makefile.in (INCLUDES): Include it in the list. |
|
9241 * dynamic-ld.cc, help.cc, utils.cc: Use it instead of repeating |
|
9242 identical code multiple times. |
|
9243 |
|
9244 * variables.cc (install_builtin_variables): Only DEFVAR |
|
9245 suppress_verbose_help_message if USE_GNU_INFO. |
|
9246 |
|
9247 * help.cc (Fhelp): Only handle -i if USE_GNU_INFO. |
|
9248 (additional_help_message): Only print message if USE_GNU_INFO. |
|
9249 (builtin_help): New function. |
|
9250 (help_from_info): New function. Print warning if not USE_GNU_INFO. |
|
9251 |
|
9252 See ChangeLog.1 in the top level directory for earlier changes. |