3731
|
1 2000-10-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2 |
|
3 * load-save.cc (skip_comments): Allow % as comment character too. |
|
4 (extract_keyword): Likewise. |
|
5 |
|
6 * Makefile.in (oct-gperf.h): Remove -a, -g, and -p flags for gperf. |
|
7 |
3727
|
8 2000-10-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
9 |
|
10 * load-save.cc (do_load): Allow result to be returned instead of |
|
11 inserting variables in the symbol table. Change patterned after |
|
12 patch by Kian Ming Adam Chai <caijianming@yahoo.co.uk>. |
|
13 |
3726
|
14 2000-10-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
15 |
|
16 * Makefile.in (ops.cc): Don't substitute BLAS_LIBS and LIBS here. |
|
17 |
|
18 * oct-conf.h.in (OCTAVE_CONF_SPECIAL_MATH_LIB): Delete. |
|
19 (OCTAVE_CONF_BLAS_LIBS): Add. |
|
20 * toplev.cc (octave_config_info): Likewise, add BLAS_LIBS and |
|
21 remove SPECIAL_MATH_LIB from the struct. |
|
22 |
|
23 * parse.y (feval (const octave_value_list&, int)): Don't panic |
|
24 while processing arg names if arg.length() and arg_names.length() |
|
25 differ. |
|
26 |
3724
|
27 2000-10-12 Paul Kienzle <pkienzle@kienzle.powernet.co.uk> |
|
28 |
|
29 * ov-cell.h (octave_cell::is_cell): New function. |
|
30 |
|
31 * pt-select.cc (equal): New static function. |
|
32 (tree_switch_case::label_matches): Use it to compare case label |
|
33 against arg. Handle cell arrays as case labels. |
|
34 |
3723
|
35 2000-10-12 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
36 |
|
37 Change patterned after patch by Cai Jianming |
|
38 <caijianming@yahoo.co.uk> to support for DIM arg in 2.0.x sources. |
|
39 |
|
40 * data.cc (DATA_REDUCTION): New macro. Handle second DIM arg here. |
|
41 (Fcumprod): Replace function body with DATA_REDUCTION. |
|
42 (Fcumsum): Likewise. |
|
43 (Fprod): Likewise. |
|
44 (Fsum): Likewise. |
|
45 (Fsumsq): Likewise. |
|
46 |
3719
|
47 2000-10-10 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
48 |
|
49 * error.cc (pr_where_2): New function. |
|
50 (pr_where_1): Use it instead of error_1 to avoid setting error_state. |
|
51 |
|
52 2000-10-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
53 |
|
54 * xdiv.cc (xdiv): Warn if execution falls through to lssolve. |
|
55 |
3716
|
56 2000-09-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
57 |
|
58 * utils.cc (FERRNO): New function (currently commented out). |
|
59 |
|
60 * c-file-ptr-stream.cc (c_file_ptr_buf::close): Call flush here. |
|
61 (c_file_ptr_buf::~c_file_ptr_buf): Not here. |
|
62 * c-file-ptr-stream.h (c_fie_ptr_buf::close_fcn): New typedef. |
|
63 (c_file_ptr_buf::cf): New data member. Add default constructor arg. |
|
64 (class c_file_ptr_buf): Derive from filebuf, not streambuf. |
|
65 (i_c_file_ptr_stream, o_c_file_ptr_stream): Handle close function here. |
|
66 * oct-procstrm.cc (octave_iprocstream, octave_oprocstream): Likewise. |
|
67 (octave_iprocstream::do_close, octave_oprocstream::do_close): Delete. |
|
68 * oct-stdstrm.cc (octave_base_stdiostream::~octave_base_stdiostream): |
|
69 Don't do anything. |
|
70 (octave_istdiostream::create): Handle close function here. |
|
71 (octave_istdiostream::octave_istdiostream): Likewise. |
|
72 (octave_ostdiostream::create): Likewise. |
|
73 (octave_ostdiostream::octave_ostdiostream): Likewise. |
|
74 (class octave_base_stdiostream): Don't cache FILE pointer here. |
|
75 |
3715
|
76 2000-09-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
77 |
|
78 * syscalls.cc (Ffcntl): Don't assume that the file id passed in is |
|
79 the same as the underlying system file id. |
|
80 |
3712
|
81 2000-08-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
82 |
|
83 * parse.y: Use octave_time, not time. |
|
84 |
3711
|
85 2000-08-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
86 |
|
87 * oct-stream.cc (printf_value_cache::double_value): Also set |
|
88 curr_stat to conversion_error if there are no values at all. |
|
89 |
3710
|
90 2000-08-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
91 |
|
92 * dirfns.cc (Flink, Fsymlink, Freadlink): New functions. |
|
93 |
3709
|
94 2000-08-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
95 |
|
96 * load-save.cc (Vsave_header_format_string): New variable. |
|
97 (symbols_of_load_save): DEFVAR it. |
|
98 (save_header_format, default_save_header_format): New functions. |
|
99 (write_header): Use Vsave_header_format_string here. |
|
100 |
3707
|
101 2000-07-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
102 |
3708
|
103 * pt-pr-code.h (tree_print_code::curr_print_indent_level, |
|
104 (tree_print_code::beginning_of_line): No longer static. |
|
105 (tree_print_code::tree_print_code): Initialize them here. |
|
106 * pt-pr-code.cc: Not here. |
|
107 |
|
108 * pt-stmt.cc (tree_statement::eval): Set curr_statement here. |
|
109 (tree_statement_list::eval): Not here. |
|
110 |
3707
|
111 Debug-on-error stuff based on a patch submitted by Paul Kienzle |
|
112 <pkienzle@kienzle.powernet.co.uk> for 2.0.x. |
|
113 |
|
114 * error.cc (Vdebug_on_warning): New static flag variable. |
|
115 (debug_on_warning): New function. |
|
116 (symbols_of_warning): DEFVAR debug_on_warning. |
|
117 (warning): Handle debug_on_warning here. |
|
118 |
|
119 * input.cc (do_keyboard): New function. |
|
120 (Fkeyboard): Use it to do the real work. |
|
121 * pt-stmt.cc (curr_statement): New static variable. |
|
122 (tree_statement::eval): Save and restore it here. |
|
123 * error.cc (Vdebug_on_error): New static flag variable. |
|
124 (debug_on_error): New function. |
|
125 (symbols_of_error): DEFVAR debug_on_error. |
|
126 (pr_where, pr_where_1): New functions. |
|
127 (error): Handle debug_on_error here. |
|
128 |
3705
|
129 2000-07-20 Joao Cardoso <jcardoso@inescporto.pt> |
|
130 |
|
131 * Makefile.in (octave): Link with $(LD_CXX) instead of $(CXX) |
|
132 |
3704
|
133 2000-07-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
134 |
|
135 * oct-stream.cc (octave_base_stream::oscanf): Advance to next |
|
136 format element before attempting to pick up any trailing stuff. |
|
137 |
3697
|
138 2000-07-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
139 |
3698
|
140 * lex.l (next_token_is_bin_op): Don't recognize `..' as a binary op. |
|
141 |
3697
|
142 * load-save.cc (get_file_format): Call read_mat5_binary_file_header |
|
143 with third arg true instead of false, so we don't barf if the file |
|
144 is not a matlab v5 binary file. |
|
145 |
3695
|
146 2000-07-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
147 |
|
148 * Makefile.in (octave): Link to ../libcruft/blas-xtra/xerbla.o here. |
|
149 |
|
150 * octave.cc (main): Remove kluge to attempt linking our version of |
|
151 xerbla. |
|
152 |
|
153 2000-07-07 Steven G. Johnson <stevenj@alum.mit.edu> |
|
154 |
|
155 * load-save.cc (have_h5giterate_bug): New file-scope variable. |
|
156 (hdf5_read_next_data): Only increment current_item if |
|
157 have_h5giterate_bug is true. |
|
158 (read_hdf5_data): Set have_h5giterate_bug here. |
|
159 Only increment hs.current_item if have_h5giterate_bug is true. |
|
160 |
3693
|
161 2000-07-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
162 |
|
163 * c-file-ptr-stream.cc (c_file_ptr_buf::close): |
|
164 Return -1 if file pointer is NULL. |
|
165 Set file pointer to 0 after closing. |
|
166 (c_file_ptr_buf::~c_file_ptr_buf): Call close after flushing. |
|
167 |
3694
|
168 2000-07-05 Steven G. Johnson <stevenj@alum.mit.edu> |
3692
|
169 |
|
170 * Makefile.in (BLAS_LIBS): Substitute here. |
|
171 (octave): Use $(BLAS_LIBS) in the final link command. |
|
172 |
3694
|
173 2000-06-30 Steven G. Johnson <stevenj@alum.mit.edu> |
3690
|
174 |
|
175 * Makefile.in (octave): Link $(FLIBS) last. |
|
176 * octave.cc (main): Force our own xerbla to be linked instead of |
|
177 some system version. |
|
178 |
3688
|
179 2000-06-29 James R. Van Zandt <jrv@vanzandt.mv.com> |
|
180 |
3689
|
181 * load-save.cc (load_save_format): New value, LS_MAT5_BINARY. |
3688
|
182 (arrayclasstype, mat5_data_type): New enums. |
|
183 (read_mat5_binary_data): New function. |
|
184 (read_mat5_tag): New function. |
|
185 (read_mat5_binary_element): New function. |
|
186 (read_mat5_binary_file_header): New function. |
|
187 (get_file_format): Check for mat5 binary format too. |
|
188 (do_load): Handle mat5 binary format. |
|
189 (write_mat5_tag): New function. |
|
190 (write_mat5_array): New function. |
|
191 (class mat5_callback): New class. |
|
192 (save_mat5_binary_element): New functnon. |
|
193 (do_save): Handle mat5 binary format. |
|
194 (write_header): Handle LS_MAT5_BINARY case too. |
|
195 (save_user_variables): Handle LS_MAT5_BINARY case too. |
|
196 (Fsave): Handle LS_MAT5_BINARY case too. |
|
197 (Fload): Handle LS_MAT5_BINARY case too. |
|
198 |
3694
|
199 2000-06-29 Steven G. Johnson <stevenj@alum.mit.edu> |
3687
|
200 |
|
201 All of the following changes are protected by #ifdef HAVE_HDF5. |
|
202 |
|
203 * load-save.cc (load_save_format): New value, LS_HDF5. |
|
204 (make_valid_identifier): New function. |
|
205 (class hdf5_fstreambase, class hdf5_ifstream, class hdf5_ofstream): |
|
206 New classes for reading and writing hdf5 data. |
|
207 (hdf5_types_compatible): New function. |
|
208 (hdf5_import_multidim): New function. |
|
209 (hdf5_check_attr): New function. |
|
210 (hdf5_read_next_data): New function. |
|
211 (hdf5_make_complex_type): New function. |
|
212 (hdf5_make_range_type): New function. |
|
213 (read_hdf5_data): New function. |
|
214 (get_file_format): Handle HDF5 format. |
|
215 (do_load): Handle LS_HDF5 case. |
|
216 (Fload): Handle HDF5 format. |
|
217 (hdf5_add_attr): New function. |
|
218 (save_type_to_hdf5): New function. |
|
219 (add_hdf5_data): New function. |
|
220 (do_save): Handle HDF5 format. |
|
221 (get_default_save_format): Handle LS_HDF5 case. |
|
222 (write_header): Handle LS_HDF5 case. |
|
223 (save_user_variables): Handle HDF5 format. |
|
224 (Fsave): Handle HDF5 format. |
|
225 |
3686
|
226 2000-06-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
227 |
|
228 * help.cc (display_help_text): If writing to filter fails, send |
|
229 unformatted text to output stream. |
|
230 |
3683
|
231 2000-06-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
232 |
3685
|
233 * OPERATORS/op-bm-bm.cc (eq): Define using mx_el_eq, not operator ==. |
|
234 (ne): Likewise, use mx_el_ne, not operator !=. |
|
235 |
3683
|
236 * pr-output.cc (Fdisp): Delete. |
|
237 |
3681
|
238 2000-06-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
239 |
3682
|
240 * pr-output.cc (float_format::float_format): Set default values |
|
241 for width and precision to -1. |
|
242 (operator << (ostream&, pr_formatted_float&): Set width and |
|
243 precision if values are >= 0. |
|
244 (set_real_format, set_real_matrix_format, set_range_format, |
|
245 set_complex_format, set_complex_matrix_format): If we have all |
|
246 integers, infinities, or nans, set precision equal to field width. |
|
247 |
|
248 * load-save.cc (read_ascii_data): Allow empty strings and string |
|
249 vectors to be restored. |
|
250 |
3681
|
251 * variables.cc (var_matches_any_pattern): New function. |
|
252 (Fclear): Use it to make exclusive clear work correctly. |
|
253 |
3676
|
254 2000-06-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
255 |
3678
|
256 * ov-range.h (octave_range::is_numeric_type): New function. |
|
257 |
3676
|
258 * sysdep.cc (Fkbhit): Also ask for input if forced_interactive. |
|
259 |
3675
|
260 2000-06-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
261 |
|
262 * Makefile.in (oct-gperf.h): Use $(GPERF) instead of gperf. |
|
263 |
3671
|
264 2000-05-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
265 |
|
266 * DLD-FUNCTIONS/qz.cc (Fqz): When computing finite generalized |
|
267 eigenvalues, don't write past the end of the array. |
|
268 |
3665
|
269 2000-05-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
270 |
|
271 * ov-base-nd-array.h, ov-base-nd-array.cc, ov-re-nd-array.h, |
|
272 ov-re-nd-array.h: New files. |
|
273 * Makefile.in: Add them to the appropriate lists. |
|
274 |
|
275 * pt-stmt.h, pt-stmt.cc (class tree_statement): |
|
276 Store comments associated with this parse tree element. |
|
277 * pt-select.h, pt-select.cc (class tree_if_clause, |
|
278 class tree_if_command, class tree_switch_case |
|
279 class tree_switch_command): Likewise. |
|
280 * pt-loop.h, pt-loop.cc (class tree_while_command, |
|
281 class tree_do_until_command, class tree_simple_for_command, |
|
282 class tree_complex_for_command): Likewise. |
|
283 * pt-except.h, pt-except.cc (class tree_try_catch_command, |
|
284 class tree_unwind_protect_command): Likewise. |
|
285 * ov-usr-fcn.h, ov-usr-fcn.cc (class octave_user_function): Likewise. |
|
286 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::print_comment_elt, |
|
287 tree_print_code::print_comment_list, |
|
288 tree_print_code::print_indented_comment): New functions. |
|
289 (tree_print_code::visit_simple_for_command, |
|
290 tree_print_code::visit_complex_for_command, |
|
291 tree_print_code::visit_octave_user_function_header, |
|
292 tree_print_code::visit_octave_user_function_trailer, |
|
293 tree_print_code::visit_if_command, tree_print_code::visit_statement, |
|
294 tree_print_code::visit_switch_case, |
|
295 tree_print_code::visit_switch_command, |
|
296 tree_print_code::visit_try_catch_command, |
|
297 tree_print_code::visit_unwind_protect_command |
|
298 tree_print_code::visit_while_command, |
|
299 tree_print_code::visit_do_until_command): Handle comments. |
|
300 * lex.l, parse.y: Handle comments in parse trees. |
|
301 * comment-list.h, comment-list.cc: New files. |
|
302 * Makefile.in: Add them to the appropriate lists. |
|
303 |
3661
|
304 2000-04-23 etienne grossmann <etienne@anonimo.isr.ist.utl.pt> |
|
305 |
|
306 * pt-mat.cc (tm_row_const::tm_row_const_rep::eval_error): |
|
307 New args x and y, for dimension mismatch info. |
|
308 Change callers where appropriate. |
|
309 (tm_const::init): Report mismatched column dimensions. |
|
310 |
3658
|
311 2000-04-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
312 |
|
313 * sysdep.cc (kbhit): Also clear cin if at EOF. |
|
314 |
3657
|
315 2000-04-11 Joao Cardoso <jcardoso@inescn.pt> |
|
316 |
|
317 * sysdep.cc (kbhit): New arg, wait. |
|
318 (raw_mode): Ditto. |
|
319 (Fkbhit): If given an arg, call kbhit with wait = false. |
|
320 |
|
321 * DLD-FUNCTIONS/minmax.cc (Fmax, Fmin): Fix doc string. |
|
322 |
3656
|
323 2000-04-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
324 |
|
325 * dynamic-ld.cc (octave_dynamic_loader::do_load): Undo previous change. |
|
326 |
3655
|
327 2000-04-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
328 |
|
329 * dynamic-ld.cc (octave_dynamic_loader::do_load): Also fail with |
|
330 error message if we don't find the mangled function name in the |
|
331 file. |
|
332 |
3652
|
333 2000-03-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
334 |
3653
|
335 * oct-stream.cc (printf_value_cache::string_value): Return string |
|
336 matrices in a Matlab-compatible way. |
|
337 (printf_value_cache): Redesign the way list_exhausted works. |
|
338 |
3652
|
339 * oct-fstrm.cc (octave_fstream::do_close): New function. |
|
340 * oct-stdstrm.cc (octave_istdiostream::do_close): Ditto. |
|
341 (octave_ostdiostream::do_close): Ditto. |
|
342 * c-file-ptr-stream.cc (c_file_ptr_buf::close): Ditto. |
|
343 (i_c_file_ptr_stream::close): Ditto. |
|
344 (o_c_file_ptr_stream::close): Ditto. |
|
345 * oct-prcstrm.cc (octave_iprocstream::do_close): Ditto. |
|
346 (octave_oprocstream::do_close): Ditto. |
|
347 (octave_iprocstram::~octave_iprocstram): Call do_close here. |
|
348 (octave_iprocstram::~octave_oprocstram): Likewise. |
|
349 |
|
350 * oct-stream.h (octave_base_stream::do_close): New virtual function. |
|
351 (octave_base_stream::close): If stream is open, call do_close. |
|
352 |
|
353 * c-file-ptr-stream.cc (c_file_ptr_buf::flush): New function. |
|
354 (c_file_ptr_buf::~c_file_ptr_buf): Use it. |
|
355 (c_file_ptr_buf::overflow): Ditto. |
|
356 (c_file_ptr_buf::sync): Ditto. |
|
357 |
3649
|
358 2000-03-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
359 |
|
360 * oct-procbuf.cc (octave_procbuf::open): Make output streams line |
|
361 buffered. |
|
362 |
3640
|
363 2000-03-24 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
364 |
3644
|
365 * sighandlers.cc (my_friendly_exit): Prefix failure messages with |
|
366 panic instead of error. |
|
367 |
3642
|
368 * c-file-ptr-stream.cc (c_file_ptr_buf::~c_file_ptr_buf): |
|
369 Avoid dereferencing NULL pointer. |
|
370 |
3640
|
371 * oct-stream.cc (printf_format_list::add_elt_to_list, |
|
372 printf_format_list::process_conversion, |
|
373 printf_format_list::finish_conversion): New args, flags, fw, and prec. |
|
374 (printf_format_list::printf_format_list): Save more complete info. |
|
375 (printf_format_list::printme): Print flags, fw, and prec. |
|
376 (octave_base_stream::printf): Simplify. |
|
377 (do_printf_conv): Delete have_arg arg, since it is always true now. |
|
378 (octave_base_stream::do_printf): Handle case of no args and % |
|
379 directly instead of using do_printf_conv. |
|
380 (printf_value_cache::exhausted): Rename from no_more_values. |
|
381 (DO_PCT_CONVERSION): New macro |
|
382 (octave_base_streain::do_scanf, octave_base_streain::do_oscanf): |
|
383 Use it. |
|
384 (scanf_format_list::finish_conversion): `%' counts as a conversion too. |
|
385 Also don't forget to set type for it. |
|
386 (OCTAVE_SCAN_0): Delete. |
|
387 (OCTAVE_SCAN): Rename from OCTAVE_SCAN_1. |
|
388 (octave_base_stream::scanf, octave_base_stream::oscanf): Don't |
|
389 special-case number of conversions here. |
|
390 (octave_base_stream::oscanf, octave_base_stream::do_oscanf): Only |
|
391 cycle through fmt elements if the number of conversions is greater |
|
392 than 0. |
|
393 |
|
394 * oct-stream.h (scanf_format_list::next): New arg, `cycle'. |
|
395 (printf_format_list::next): New arg, `cycle'. |
|
396 (printf_format_list::last_elt_p): New function. |
|
397 (printf_format_elt): New fields fw, prec, and flags. |
|
398 Define copy constructor and assignment operator. |
|
399 (scanf_format_elt): Define copy constructor and assignment operator. |
|
400 |
3627
|
401 2000-03-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
402 |
3639
|
403 * oct-stream.cc (OCTAVE_SCAN_0, OCTAVE_SCAN_1): New macros. |
|
404 (do_scanf_conv, BEGIN_S_CONVERSION, BEGIN_CHAR_CLASS_CONVERSION, |
|
405 do_scanf, scanf, do_oscanf, do_oscanf, oscanf): Use them instead |
|
406 of calling istream::scan directly. |
|
407 (octave_scan): New function. |
|
408 (do_scanf_conv): Second arg is now scanf_format_elt instead of char*. |
|
409 Change all callers. |
|
410 |
3631
|
411 * oct-procbuf.h, oct-procbuf.cc (octave_procbuf): |
|
412 Derive from c_file_ptr_buf instead of filebuf. |
|
413 |
3627
|
414 * oct-stream.cc (octave_base_stream::printf): Use octave_format |
|
415 instead of ostream::form. Return number of characters written. |
|
416 |
3618
|
417 2000-03-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
418 |
3620
|
419 * oct-stream.cc (do_printf_conv): Use octave_format instead of |
|
420 ostream::form. Return number of characters written. |
|
421 (octave_base_stream::do_printf): Return number of characters written. |
|
422 |
|
423 * error.cc (verror, vwarning): Use octave_format instead of |
|
424 ostream::vform. |
|
425 |
|
426 * utils.cc (octave_format, octave_vformat): New functions. |
|
427 * cutils.c (octave_snprintf, octave_vsnprintf): New functions. |
|
428 |
3618
|
429 * oct-lvalue.h (dummy_val): New static variable. |
|
430 (octave_lvalue::octave_lvalue): Use it to initialize val. |
|
431 |
|
432 * variables.cc (is_valid_function): Look in the global symbol |
|
433 table for functions. |
|
434 |
3615
|
435 2000-03-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
436 |
|
437 * src/Makefile.in (LIBRARIES): Conditionally define. |
|
438 (libraries): Depend on $(LIBRARIES). |
|
439 (octave): Depend on $(LIBRARIES), not libraries. Also depend on |
|
440 stamp-prereq and stamp-oct-links. |
|
441 (all): Don't depend on stamp-prereq or stamp-oct-links. |
|
442 (liboctinterp.$(LIBEXT), liboctinterp.$(SHELXT)): Delete target |
|
443 before rebuilding. |
|
444 |
|
445 2000-03-21 Ben Sapp <bsapp@nua.lampf.lanl.gov>: |
|
446 |
|
447 * src/Makefile.in (libraries): Depend only on library targets, not |
|
448 archive members. |
|
449 |
3611
|
450 2000-03-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
451 |
3613
|
452 * Makefile.in (objects): New target |
|
453 |
3611
|
454 * c_file_ptr_stream.h, c_file_ptr_stream.cc: New files. |
|
455 * oct-stdstrm.h, oct-stdstrm.cc, oct-prcstrm.cc: |
|
456 Use c_file_ptr_buf, i_c_file_ptr_stream, and o_c_fie_ptr_stream |
|
457 instead of stdiobuf, istdiostream, and ostdiostream. |
|
458 |
|
459 * pr-output.cc (set_real_format, set_real_matrix_format, |
|
460 set_complex_format, set_complex_matrix_format, set_range_format): |
|
461 Do the right thing again for int, NaN, and Inf values. |
|
462 |
3608
|
463 2000-03-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
464 |
|
465 * pr-output.cc (pr_plus_format): Rename from do_plus_format. |
|
466 Change all callers. |
|
467 (pr_float, pr_complex): New arg, scale. Handle scaling here. |
|
468 (float_format): New class for managing details of formatting |
|
469 floats. Use it instead of character string formats and the |
|
470 nonstandard form() function from the GNU iostream library. |
|
471 |
3601
|
472 2000-02-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
473 |
|
474 * Makefile.in (clean): Also delete gendoc. |
|
475 |
3598
|
476 2000-02-18 James R. Van Zandt <jrv@vanzandt.mv.com> |
|
477 |
|
478 * load-save.cc (Vcrash_dumps_octave_core): Fix comment for this var. |
|
479 |
|
480 2000-02-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
481 |
|
482 * lex.l (handle_number): Don't transorm `[Dd]' to `e' if reading |
|
483 hex. |
|
484 |
3597
|
485 2000-02-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
486 |
|
487 * Makefile.in (install-inc): Install files in |
|
488 $(octincludedir)/octave. |
|
489 (uninstall): Remove them from the correct directory too. |
|
490 |
|
491 * defaults.h, defaults.cc (Vlocal_ver_arch_lib_dir): New variable. |
|
492 * defaults.cc (set_default_local_ver_arch_lib_dir): New function. |
|
493 (install_defaults): Call it. |
|
494 (exec_path): Prepend the versioned form of the local arch lib |
|
495 directory to the standard path. |
|
496 * defaults.h.in (OCTAVE_LOCALVERARCHLIBDIR, |
|
497 OCTAVE_LOCALVERFCNFILEDIR, OCTAVE_LOCALVEROCTFILEDIR): |
|
498 Substitute these too. |
|
499 * toplev.cc (Foctave_config_info): Add them to the struct. |
|
500 |
3591
|
501 2000-02-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
502 |
3597
|
503 * toplev.cc (Foctave_config_info): Add MKOCTFILE_INCFLAGS to the |
|
504 struct. |
3591
|
505 * oct-conf.h.in (OCTAVE_CONF_MKOCTFILE_INCFLAGS): Define. |
|
506 |
3584
|
507 2000-02-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
508 |
3587
|
509 * DLD-FUNCTIONS/balance.cc (Fbalance): Explicitly request |
|
510 conversion from Matrix to ComplexMatrix. |
|
511 * DLD-FUNCTIONS/qz.cc (Fqz): Likewise. |
|
512 |
|
513 * ov-re-mat.h (octave_matrix::complex_matrix_value): Explicitly |
|
514 request conversion from Matrix type. |
|
515 |
|
516 * ov-ch-mat.h (octave_char_matrix::matrix_value): Explicitly |
|
517 request conversion from charMatrix type. |
|
518 (octave_char_matrix::complex_matrix_value): Likewise. |
|
519 * ov-bool-mat.h (octave_bool_matrix::matrix_value): Likewise. |
|
520 (octave_bool_matrix::complex_matrix_value): Likewise. |
|
521 |
|
522 * ov-range.h (octave_range::complex_matrix_value): Explicitly |
|
523 request conversion from Matrix type. |
|
524 |
|
525 * ov-cx-mat.h, ov-re-mat.h: Explicitly request conversions from |
|
526 diagonal matrix types in constructors. |
|
527 |
3586
|
528 * mappers.cc (ximag, xreal): Return double, not Complex. |
|
529 |
3585
|
530 * error.cc (panic): Turn off buffering of error messages. |
|
531 Don't call flush_octave_stdout here, verror will do it for us. |
|
532 (verror): Don't call flush_octave_stdout if buffering error messages. |
|
533 |
3584
|
534 * pt-except.cc (tree_try_catch_command::eval): Only restore |
|
535 buffer_error_message value (by running the unwind_protect element |
|
536 for it) if it has been saved. |
|
537 |
|
538 * help.cc (Ftype): Return value if nargout is NOT equal to zero. |
|
539 Delete unnecessary unwind_protect::begin_frame(). |
|
540 |
|
541 * toplev.cc (octave_config_info): Stuff lots of new config info in |
|
542 the struct. |
|
543 |
|
544 * oct-conf.h.in: Delete TARGET_HOST_TYPE. |
|
545 |
3574
|
546 2000-02-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
547 |
3579
|
548 * siglist.c: Include <signal.h>. |
|
549 |
3575
|
550 * lex.l (is_plot_keyword): Add minimum match length in call to |
|
551 almost_match. |
|
552 |
3574
|
553 * Makefile.in (%.df : %.cc): Don't pass -c to compiler. |
|
554 |
3564
|
555 2000-02-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
556 |
3572
|
557 * ov-base-mat.cc: Include pr-output.h here. |
|
558 |
3571
|
559 * DLD-FUNCTIONS/rand.cc (curr_rand_dist): Return const char * |
|
560 instead of char *. |
|
561 |
3570
|
562 * oct-fstrm.cc (octave_fstream::seek, octave_fstream::tell): |
|
563 Call pubseekoff instead of seekoff. |
|
564 |
3568
|
565 * DLD-FUNCTIONS/dassl.cc (print_dassl_option_list): Use stream |
|
566 manipulators instead of GNU iostream-specific form function. |
|
567 * DLD-FUNCTIONS/fsolve.cc (print_fsolve_option_list): Ditto. |
|
568 * DLD-FUNCTIONS/lsode.cc (print_lsode_option_list): Ditto. |
|
569 * DLD-FUNCTIONS/quad.cc (print_quad_option_list): Ditto. |
|
570 * pr-output.cc (pr_scale_header): Ditto. |
|
571 |
3566
|
572 * sighandlers.h: Include signal.h here. |
|
573 * sighandlers.cc: Not here. |
|
574 |
|
575 * utils.cc: Include setjmp.h, not csetjmp. |
|
576 * toplev.cc: Ditto. |
|
577 |
|
578 * sighandlers.cc: Include signal.h, not csignal. |
|
579 |
|
580 * pt-plot.h: Don't include csignal. |
|
581 * toplev.cc: Ditto. |
|
582 * oct-hist.cc: Ditto. |
|
583 * octave.cc: Ditto. |
|
584 * pager.cc: Ditto. |
|
585 * input.cc: Ditto. |
|
586 * help.cc: Ditto. |
|
587 |
3565
|
588 * pt-plot.cc (send_to_plot_stream): Use operator== and substr |
|
589 method to do limited-length string comparison. |
|
590 * input.cc (generate_completion): Likewise. |
|
591 * ov-dld-fcn.cc (octave_dld_function::octave_dld_function): Likewise. |
|
592 * ov-usr-fcn.cc (octave_user_function::mark_as_system_fcn_file): |
|
593 Likewise. |
|
594 |
|
595 * utils.cc (check_preference): Expect exact string matches. |
|
596 * variables.cc (ignore_function_time_stamp): Likewise. |
|
597 * lex.l (whitespace_in_literal_matrix): Likewise. |
|
598 |
3564
|
599 * mappers.cc (xconj, ximag, xreal): New functions. Use them in |
|
600 DEFUN_MAPPER calls. |
|
601 |
|
602 * defun-int.h (DEFUN_MAPPER_INTERNAL): Cast function pointer args |
|
603 to octave_mapper constructor. |
|
604 |
3523
|
605 2000-02-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
606 |
3564
|
607 * procstream.cc (procstreambase::procstreambase, |
|
608 procstreambase::open, procstreambase::close): |
|
609 Call std::ios::setstate, not set. |
|
610 |
3561
|
611 * lex.l (plot_axes_token): Declare plot_axes as const char *. |
|
612 Declare tmp const char **. |
|
613 |
3560
|
614 * oct-procbuf.h: Include fstream, not streambuf.h. |
|
615 |
3570
|
616 * load-save.cc (Fsave): Call pubseekoff instead of seekoff. |
3558
|
617 * oct-strstrm.cc (octave_base_strstream::tell): Likewise. |
|
618 (octave_base_strstream::seek): Likewise. |
|
619 |
3553
|
620 * oct-stream.cc (octave_base_stream::read): Rename count to char_count. |
|
621 (octave_base_stream::do_gets): Likewise. |
|
622 |
|
623 * octave-stream.cc (octave_base_stream::write): Rename flt_fmt to ffmt. |
|
624 (octave_base_stream::read): Likewise. |
|
625 |
3552
|
626 * TEMPLATE-INST/SLStack-sym.cc: Delete meaningless `extern |
|
627 template' declarations. |
|
628 * TEMPLATE-INST/Array-tc.cc: Ditto. |
|
629 |
|
630 * TEMPLATE-INST/Map-fnc.cc: Don't try to instantiate goodCHptr or |
|
631 CHptr_to_index here. |
|
632 * TEMPLATE-INST/Map-tc.cc: Likewise. |
3554
|
633 * Map.h (CHNode::goodCHptr, CHNode::CHptr_to_index): Now member |
|
634 functions. Change all callers. |
3552
|
635 |
|
636 * load-save.cc (read_binary_file_header): Declare magic_len `const'. |
|
637 |
|
638 * token.h (token::token (const token&), token::operator=): |
|
639 Delete unnecessary definitions. |
|
640 |
|
641 * oct-stream.cc (octave_stream::mode_as_string): Use |
|
642 std::ios::binary, not std::ios::bin. |
|
643 * load-save.cc (Fsave, Fload, save_user_variables): Likewise. |
|
644 |
3550
|
645 * DLD-FUNCTIONS/qz.cc (Fqz): Use Array<int> class instead of |
|
646 trying to create automatic int array with variable size. |
|
647 |
3548
|
648 * variables.cc (F__dump_symbol_info__): Fix continuation char. |
3552
|
649 * mappers.cc (Ftoupper): Likewise. |
3548
|
650 * DLD-FUNCTIONS/besselj.cc (Fairy, Fbesselj): Likewise. |
|
651 * DLD-FUNCTIONS/chol.cc (Fchol): Likewise. |
|
652 * DLD-FUNCTIONS/det.cc (Fdet): Likewise. |
|
653 * DLD-FUNCTIONS/eig.cc (Feig): Likewise. |
|
654 * DLD-FUNCTIONS/gammainc.cc (gammainc): Likewise. |
|
655 * DLD-FUNCTIONS/givens.cc (givens): Likewise. |
|
656 * DLD-FUNCTIONS/hess.cc (hess): Likewise. |
|
657 * DLD-FUNCTIONS/inv.cc (inv): Likewise. |
|
658 * DLD-FUNCTIONS/log.cc (logm): Likewise. |
|
659 * DLD-FUNCTIONS/lu.cc (lu): Likewise. |
|
660 * DLD-FUNCTIONS/qr.cc (qr): Likewise. |
|
661 * DLD-FUNCTIONS/schur.cc (schur): Likewise. |
|
662 * DLD-FUNCTIONS/balance.cc (balance): Likewise. |
|
663 * DLD-FUNCTIONS/svd.cc (svd): Likewise. |
|
664 * DLD-FUNCTIONS/syl.cc (syl): Likewise. |
|
665 * DLD-FUNCTIONS/expm.cc (Fexpm): Likewise. |
|
666 |
|
667 * token.h (token::token_type, token::end_tok_type, |
|
668 token::plot_tok_type): Delete extraneous comma from enum decls. |
3552
|
669 * load-save.cc (load_save_format): Likewise. |
3548
|
670 |
3546
|
671 * pt-idx.cc (tree_index_expression::tree_index_expression): |
|
672 Delete default arg values. |
3552
|
673 * oct-fstrm.cc (octave_fstream::octave_fstream): Likewise. |
|
674 * oct-stream.cc (octave_stream::octave_stream): Likewise. |
3546
|
675 |
|
676 * siglist.h, siglist.c: New files. |
|
677 * Makefile.in: Add them to the appropriate lists. |
|
678 * siglist.c (sys_siglist): Move definition here from sighandlers.cc. |
|
679 * siglist.h (sys_siglist): Move declaration here from sighandlers.h. |
|
680 |
3545
|
681 * ov.h, ov-bool.h, ov-bool-mat.h (bool_matrix_value): |
|
682 Delete unnecessary arg. |
|
683 |
3544
|
684 * ov.h (octave_value::do_multi_index_op): Rename from do_index_op. |
|
685 |
|
686 * ov-fcn.h (octave_function::is_system_fcn_file): Now const. |
|
687 |
3529
|
688 * Map.cc (index_to_CHptr): Now a macro. |
3530
|
689 (CHMap<C>::hash): Now a member function. |
3529
|
690 |
3528
|
691 * defun-int.h (UNDERSCORIFY): New macro. |
|
692 (DEFCONST_INTERNAL, DEFCONSTX_INTERNAL): Use it. |
|
693 |
3526
|
694 * data.cc (Fis_list): Fix continuation char. |
3532
|
695 * defaults.cc (IMAGEPATH): Likewise. |
3526
|
696 |
|
697 * Map.cc (CHptr_to_index, goodCHptr): Delete static decl. |
|
698 |
3525
|
699 * ov.h (unary_op, binary_op, assign_op): Prepend `op_' to elts. |
|
700 Change all usses |
|
701 |
3523
|
702 * All source files: Sprinkle with std:: qualifier as needed. |
|
703 |
3503
|
704 2000-01-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
705 |
|
706 * sighandlers.cc (install_signal_handlers): Add std:: qualifier |
|
707 for set_net_handler. |
|
708 |
|
709 * All source files: Include iostream, fstream, strstream, |
|
710 etc. as needed instead of using forward declarations for these |
|
711 classes. |
|
712 |
3498
|
713 2000-01-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
714 |
|
715 * input.cc (input_event_hook, Finput_event_hook): New functions. |
|
716 (hook_fcn, user_data): New static variables. |
|
717 |
3489
|
718 2000-01-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
719 |
3491
|
720 * pt-except.cc (do_catch_code): Don't do anything special for |
|
721 tree_return_command::returning, or tree_break_command::breaking. |
|
722 |
|
723 * error.cc (vwarning): New function. |
|
724 (warning): Use it instead of calling verror. |
|
725 |
|
726 * oct-stream.cc (octave_base_stream::oscanf): |
|
727 Result is now always nconv+1 elements. Return count of successful |
|
728 conversions in last element. |
|
729 * file-io.cc (Ffscanf, Fsscanf, Fscanf): Fix doc string. |
|
730 |
3490
|
731 * pt-except.cc (do_catch_code): Unwind-protect buffer_error_messages. |
|
732 Be sure to run all unwind-protects before returning. |
|
733 (tree_try_catch_command::eval): Add do_catch_code cleanup function |
|
734 to unwind-protect stack before resetting buffer_error_messages. |
|
735 Use unwind-protect to save and restore buffer_error_messages. |
|
736 If there is no catch code, discard the cleanup function and run |
|
737 the unwind-protect for buffer_error_messages. |
|
738 |
|
739 * error.cc (bind_global_error_variable): Avoid dereferencing |
|
740 error_message_buffer if it is NULL. |
|
741 |
3489
|
742 * parse.y (evaluating_function_body): New global flag. |
|
743 * ov-usr-fcn.cc (octave_user_function::do_index_op): |
|
744 Protect and set it here. |
|
745 * parse.y (make_break_command, make_return_command): Check it here. |
|
746 |
|
747 * error.cc (warning_state): New global flag. |
|
748 (warning): Set it here. |
|
749 * lex.l (reset_parser): Clear it here. |
|
750 * parse.y (fold): Check it here. |
|
751 |
3484
|
752 2000-01-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
753 |
3485
|
754 * pt-walk.h (tree_walker::visit_do_until_command): New pure virtual. |
|
755 * pt-pr-code.cc (tree_print_code::visit_do_until_command): |
3484
|
756 New function. |
3485
|
757 * pt-loop.h (tree_do_until_command): New class. |
3484
|
758 (tree_while_command::expr, tree_while_command::list): |
|
759 Now protected instead of private. |
3485
|
760 * parse.y (make_do_until_command): New function. |
|
761 (loop_command): Recognize do-until statement. |
3484
|
762 (DO, UNTIL): New tokens. |
|
763 |
|
764 * input.cc (match_sans_spaces): Require non-blank part of test |
|
765 string to match standard string exactly. |
|
766 |
3483
|
767 2000-01-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
768 |
|
769 * oct-stream.h (scanf_format_elt::char_class): New struct elt. |
|
770 Add arg to constructor. |
|
771 (scanf_format_elt::special_conversion): New enum. |
|
772 * oct-stream.cc (scanf_format_list::add_elt_to_list): New arg, |
|
773 char_class. Pass it to scanf_format_elt constructor. |
|
774 (scanf_format_list::scanf_format_list): Create separate list |
|
775 elements for whitespace and literal conversions. |
|
776 (expand_char_class): New function. |
|
777 (scanf_format_list::finish_conversion): Extract character class |
|
778 (not including the delimiting brackets) and expand the list of |
|
779 characters. Pass the result to add_elt_to_list. |
|
780 (scanf_format_list::all_character_conversions): Also accept '^', |
|
781 scanf_format_elt::literal_conversion, and |
|
782 scanf_format_elt::whitespace_conversion types too. |
|
783 (DO_WHITESPACE_CONVERSION, BEGIN_CHAR_CLASS_CONVERSION, |
|
784 BEGIN_C_CONVERSION, BEGIN_S_CONVERSION, DO_LITERAL_CONVERSION): |
|
785 New macros. |
|
786 (octave_base_stream::do_scanf, octave_base_stream::do_oscanf): |
|
787 Use them to avoid code duplication. |
|
788 Handle whitespace, literal text, and character class conversions. |
|
789 (octave_base_stream::oscanf): Loop over all format list elements, |
|
790 not just the first nconv elements. Clear status flags on is for |
|
791 all streams. |
|
792 |
3476
|
793 2000-01-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
794 |
3480
|
795 * xdiv.cc (result_ok): Just check value of info. |
|
796 (solve_singularity_warning): New function. |
|
797 (xleftdiv, xdiv): Pass pointer to solve_singularity_warning to |
|
798 solve function. |
|
799 |
|
800 * lex.l (handle_identifier): Set next_tok_is_eq if we are looking |
|
801 at `=', but not if we are looking at `=='. |
|
802 |
3478
|
803 * pt-pr-code.cc (tree_print_code::visit_unwind_protect_command): |
|
804 Print `unwind_protect_cleanup', not `cleanup_code'. |
|
805 |
3477
|
806 * pager.cc (octave_pager_buf::flush_current_contents_to_diary): |
|
807 New function. |
|
808 (octave_pager_stream::flush_current_contents_to_diary): |
|
809 Ditto. |
|
810 (close_diary_file): Use the new octave_pager_stream function to |
|
811 try to flush the current buffer to the diary when it is closed. |
|
812 |
3476
|
813 * variables.cc (Fexist): Return 6 for built-in constants. |
|
814 |
|
815 * pt-plot.cc (Fgshow): Don't append " " after last arg. |
|
816 (Fgset): Likewise. |
|
817 |
3472
|
818 2000-01-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
819 |
|
820 * ov-base-mat.h (octave_base_matrix::length): Return 0 for empty |
|
821 arrays. |
|
822 |
3465
|
823 2000-01-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
824 |
|
825 * DLD-FUNCTIONS/time.cc (Fstrptime): New function. |
|
826 |
|
827 * load-save.cc (Fsave): Add missing else. |
|
828 |
3442
|
829 2000-01-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
830 |
3444
|
831 * DLD-FUNCTIONS/gammainc.cc (Fgammainc): Texinfoize doc string. |
3445
|
832 * ov-typeinfo.cc (Ftypeinfo): Ditto. |
3446
|
833 * parse.y (Vwarn_future_time_stamp): Ditto. |
|
834 * DLD-FUNCTIONS/minmax.cc (Fmax, Fmin): Ditto. |
3445
|
835 * ov-usr-fcn.cc (Fva_arg, Fva_start, Fvr_val): Ditto. |
3446
|
836 * defaults.cc (VOCTAVE_HOME, Frehash): Ditto. |
|
837 * toplev.cc (Fwarranty, Fcasesen): Ditto. |
|
838 * utils.cc (Fdo_string_escapes, Ffile_in_loadpath): Ditto. |
|
839 * variables.cc (F__dump_symtab_info__, F__dump_symbol_info__): Ditto. |
3447
|
840 * ov-list.cc (Flist, Fappend, Fnth, Freverse, Fsplice): Ditto. |
3448
|
841 * input.cc (Fread_readline_init_file): Ditto. |
|
842 * file-io.cc (Fis_stream): Ditto. |
|
843 * ov-cell.cc (Fiscell, Fcell): Ditto. |
|
844 * pt-assign.cc (Vprint_rhs_assign_val): Ditto. |
|
845 * pt-decl.cc (Vinitialize_global_variables): Ditto. |
|
846 * symtab.cc (Vvariables_can_hide_functions): Ditto. |
3443
|
847 |
3442
|
848 * pt-plot.cc (Fgraw, Fgset, Fgshow, Vgnuplot_command_plot, |
|
849 Vgnuplot_command_replot, Vgnuplot_command_splot, |
|
850 Vgnuplot_command_using, Vgnuplot_command_with, |
|
851 Vgnuplot_command_axes, Vgnuplot_command_title, |
|
852 Vgnuplot_command_end): Texinfoize doc strings. |
|
853 |
3447
|
854 * oct-procbuf.cc (__kluge_procbuf_delay__): Rename from |
|
855 kluge_procbuf_delay. Texinfoize doc string. |
|
856 |
3427
|
857 2000-01-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
858 |
|
859 * parse.y (gobble_leading_whitespace): Discard first space character |
|
860 after consecutive comment characters. |
|
861 * lex.l (grab_help_text): Ditto. |
|
862 |
3428
|
863 * lex.l (Vwhitespace_in_literal_matrix, Vwarn_separator_insert, |
|
864 Vwarn_single_quote_string): Texinfoize doc string. |
|
865 |
3418
|
866 2000-01-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
867 |
3419
|
868 * ov.h, ov.cc (octave_value::column_vector_value, |
|
869 octave_value::row_vector_value, |
|
870 octave_value::complex_column_vector_value, |
|
871 octave_value::complex_row_vector_value): New functions. |
|
872 (octave_value::vector_value): Now returns Array<double>. |
|
873 (octave_value::complex_vector_value): Now returns Array<Complex>. |
|
874 Sprinkle conversions where necessary. |
|
875 |
3418
|
876 * ov.cc (Vprefer_column_vectors): Now static. |
|
877 * ov.h (octave_value (const ComplexRowVector&), |
|
878 octave_value (const ComplexColumnVector&), |
|
879 octave_value (const RowVector&), octave_value (const ColumnVector&)): |
|
880 Delete second arg. Change all callers. |
3419
|
881 |
3418
|
882 * oct-obj.h (octave_value_list (const RowVector&), |
|
883 octave_value_list (const ColumnVector&), |
|
884 octave_value_list (const ComplexRowVector&), |
|
885 octave_value_list (const ComplexColumnVector&)): Likewise. |
|
886 * ov-cx-mat.h, ov-cx-mat.cc |
|
887 (octave_complex_matrix (const ComplexRowVector&), |
|
888 (octave_complex_matrix (const ComplexColumnVector&)): |
|
889 Delete second arg, simply create object with orientation |
|
890 corresponding to vector arg. Move constructors to class decl. |
|
891 * ov-re-mat.h, ov-re-mat.cc (octave_matrix (const RowVector&), |
|
892 (octave_matrix (const ColumnVector&)): |
|
893 Delete second arg, simply create object with orientation |
|
894 corresponding to vector arg. Move constructors to class decl. |
|
895 |
3411
|
896 2000-01-07 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
897 |
|
898 * mappers.cc (Fconj, Ferf, Ferfc, Fgamma, Fimag, Flgamma, Flog10, |
|
899 Freal, Fround): Add @seealso{...} to doc strings. |
|
900 |
3408
|
901 2000-01-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
902 |
3410
|
903 * oct-stream.cc (do_scanf): Do the right thing again for character |
|
904 conversions. |
|
905 |
3408
|
906 * help.cc (display_help_text): Also strip out leading spaces |
|
907 before Texinfo @-commands before sending doc string to makeinfo. |
|
908 (display_help_text): Improve format of `See also' string. |
|
909 |
3405
|
910 2000-01-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
911 |
|
912 * help.cc (display_help_text): Pass a definition for @seealso |
|
913 through the filter. |
|
914 |
3400
|
915 1999-12-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
916 |
|
917 * lex.l (Vwarn_single_quote_string): New variable. |
|
918 (syms_of_lex): DEFVAR it. |
|
919 (warn_single_quote_string): New function. |
|
920 (gripe_single_quote_string): New function. |
|
921 Use new stuff to allow warnings for code that uses single quote |
|
922 characters to introduce string constants. |
|
923 |
3399
|
924 1999-12-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
925 |
|
926 * mkbuiltins: Add #undef quad to generated file. |
|
927 |
3388
|
928 1999-12-15 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
929 |
|
930 * lex.l (Vwarn_separator_insert): New variable. |
|
931 (syms_of_lex): DEFVAR it. |
|
932 (warn_separator_insert): New function. |
|
933 (maybe_warn_separator_insert): New function. |
|
934 Use new stuff to allow warnings for code that might result in |
|
935 auto-insertion of commas or semicolons, depending on the value of |
|
936 whitespace_in_literal_matrix. |
|
937 |
|
938 * parse.y (Fsource): Record function file name here too. |
|
939 |
3377
|
940 1999-12-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
941 |
|
942 * variables.cc (link_to_global_variable): If the local symbol is |
|
943 not a variable, don't bother to clear it. Instead, just redefine |
|
944 it by aliasing to the global symbol. |
|
945 |
3372
|
946 1999-11-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
947 |
3373
|
948 * DLD-FUNCTIONS/balance.cc (Fbalance): Texinfoize doc string. |
|
949 * DLD-FUNCTIONS/det.cc (Fdet): Ditto. |
|
950 * DLD-FUNCTIONS/eig.cc (Feig): Ditto. |
|
951 * DLD-FUNCTIONS/givens.cc (Fgivens): Ditto. |
|
952 * DLD-FUNCTIONS/inv.cc (Finv): Ditto. |
|
953 * DLD-FUNCTIONS/chol.cc (Fchol): Ditto. |
|
954 * DLD-FUNCTIONS/hess.cc (Fhess): Ditto. |
|
955 * DLD-FUNCTIONS/lu.cc (Flu): Ditto. |
|
956 * DLD-FUNCTIONS/qr.cc (Fqr): Ditto. |
|
957 * DLD-FUNCTIONS/schur.cc (Fschur): Ditto. |
|
958 * DLD-FUNCTIONS/svd.cc (Fsvd): Ditto. |
|
959 * DLD-FUNCTIONS/expm.cc (Fexpm): Ditto. |
|
960 * DLD-FUNCTIONS/log.cc (Flogm, Fsqrtm): Ditto. |
|
961 * DLD-FUNCTIONS/syl.cc (Fsyl): Ditto. |
|
962 * DLD-FUNCTIONS/pinv.cc (Fpinv): Ditto. |
|
963 * DLD-FUNCTIONS/qz.cc (Fqz): Ditto. |
|
964 * DLD-FUNCTIONS/dassl.cc (Fdassl, Fdassl_options): Ditto. |
|
965 * DLD-FUNCTIONS/lsode.cc (Flsode, Flsode_options): Ditto. |
|
966 * data.cc (Flength, Fsize, Fisempty): Ditto. |
3372
|
967 * sysdep.cc (Fkbhit): Ditto. |
|
968 * input.cc (Fkeyboard, Finput): Ditto. |
|
969 * variables.cc (ans): Ditto. |
|
970 * pr-output.cc (Fdisp, Fformat): Ditto. |
|
971 * ov.cc (Vprint_answer_id_name): Ditto. |
3373
|
972 * defaults.cc (IMAGEPATH): Ditto. |
|
973 * error.cc (Ferror, Fwarning, Fusage, error_text, beep_on_error): |
|
974 Ditto. |
3372
|
975 * load-save.cc (Fload, Fsave, Vdefault_save_format, |
|
976 Vsave_precision): Ditto. |
|
977 * file-io.cc (Ffflush, Ffopen, Ffclose, Ffputs, Ffgetl, Ffgets, |
|
978 Ffprintf, Fsprintf, Fscanf, Ffscanf, Fsscanf, Ffread, Ffwrite, |
|
979 Ffseek, Fftell, Ffeof, Fferror, Ffreport, Ftmpnam, Vstdin_file, |
|
980 Vstdout_file, Vstderr_file, SEEK_SET, SEEK_CUR, SEEK_END): Ditto. |
|
981 * pager.cc (Vpager_binary, Vpage_output_immediately, |
|
982 Vpage_screen_output, Fmore): Ditto. |
|
983 |
3369
|
984 1999-11-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
985 |
|
986 * utils.cc (Vtreat_neg_dim_as_zero): Texinfoize doc string. |
|
987 * DLD-FUNCTIONS/find.cc (Ffind): Ditto. |
|
988 * DLD-FUNCTIONS/rand.cc (Frand, Frandn): Ditto. |
|
989 * DLD-FUNCTIONS/sort.cc (Fsort): Ditto. |
|
990 * mappers.cc (Fisinf, Fisnan, Ffinite): Ditto. |
|
991 * data.cc (Fall, Fany, Fdiag, Fones, Fzeros, Feye, Flinspace): Ditto. |
3371
|
992 * defaults.cc (Vloadpath, Vdefault_loadpath): Ditto. |
|
993 * parse.y (Feval, Ffeval, Vdefault_eval_print_flag, |
|
994 Vwarn_missing_semicolon, Vwarn_function_name_clash, Fsource): Ditto. |
|
995 * ov-usr-fcn.cc (Vmax_recursion_depth, Vdefault_return_value, |
|
996 Vdefine_all_return_values, Vreturn_last_computed_value): Ditto. |
|
997 * ov.cc (Vok_to_lose_imaginary_part, Vdo_fortran_indexing, |
|
998 Vprefer_column_vectors, Vresize_on_range_error, |
|
999 Vwarn_divide_by_zero): Ditto. |
|
1000 * pt-stmt.cc (Vsilent_functions): Ditto. |
|
1001 * variables.cc (Vignore_function_time_stamp): Ditto. |
|
1002 * dynamic-ld.cc (Vwarn_reload_forces_clear): Ditto. |
3369
|
1003 |
3367
|
1004 1999-11-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1005 |
3368
|
1006 * DLD-FUNCTIONS/fft.cc (Ffft): Texinfoize doc string. |
|
1007 * DLD-FUNCTIONS/ifft.cc (Fifft): Ditto. |
|
1008 * DLD-FUNCTIONS/fft2.cc (Ffft2): Ditto. |
|
1009 * DLD-FUNCTIONS/ifft2.cc (Fifft2): Ditto. |
|
1010 * DLD-FUNCTIONS/filter.cc (Ffilter): Ditto. |
|
1011 * DLD-FUNCTIONS/quad.cc (Fquad, Fquad_options): Ditto. |
|
1012 * DLD-FUNCTIONS/colloc.cc (Fcolloc): Ditto. |
|
1013 * DLD-FUNCTIONS/fsolve.cc (Ffsolve, Ffsolve_options): Ditto. |
|
1014 * defaults.cc (Veditor): Ditto. |
|
1015 * pt-plot.cc (Vautomatic_replot, Vgnuplot_binary, |
|
1016 Vgnuplot_has_frames, Vgnuplot_has_multiplot, Fclearplot, |
|
1017 Fcloseplot, Fpurge_tmp_files, Fishold, Fhold): |
3367
|
1018 |
|
1019 * Makefile.in (parse.cc): Expect 11 shift/reduce conflicts now. |
|
1020 |
3361
|
1021 1999-11-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1022 |
3366
|
1023 * parse.y (Vwarn_assign_as_truth_value, Vwarn_variable_switch_label): |
|
1024 Texinfoize doc strings. |
|
1025 |
3365
|
1026 * DLD-FUNCTIONS/pinv.cc (Fpinv): Texinfoize doc string. |
|
1027 |
3364
|
1028 * defun-int.h (DEFUN_DLD_INTERNAL): New macro. |
|
1029 * defun-dld.h [MAKE_BUILTINS] (DEFUN_DLD): Simply expand to |
|
1030 DEFUN_DLD_INTERNAL. |
|
1031 * mkbuiltins: Generate code to define DEFUN_DLD_INTERNAL. |
|
1032 * mkgendoc: Likewise. |
|
1033 |
3363
|
1034 * Makefile.in (gendoc.o): Don't optimize when creating gendoc. |
3364
|
1035 (%.dc : %.cc): Delete rule. |
3363
|
1036 |
3361
|
1037 * pt-decl.cc (Vdefault_global_variable_value): Texinofize doc string. |
|
1038 * variables.cc (Fclear, Fdocument, Fexist, Fis_global, Fwho): Ditto. |
|
1039 * help.cc (Ftype, Fwhich): Ditto. |
|
1040 * ov.cc (Vstruct_levels_to_print, Vimplicit_str_to_num_ok): Ditto. |
|
1041 * data.cc (Fis_struct, Fstruct_elements, Fstruct_constains): Ditto. |
|
1042 * strfns.cc (Fisstr, Fsetstr): Ditto. |
|
1043 * pt-mat.cc: (Fimplicit_num_to_str_ok, Fstring_fill_char): Ditto. |
|
1044 * utils.cc (Fundo_string_escapes): Ditto. |
|
1045 * mappers.cc: (Fisalnum, Fisalpha, Fisascii, Fiscntrl, Fisdigit, |
|
1046 Fisgraph, Fislower, Fisprint, Fispunct, Fisspace, Fisupper, |
|
1047 Fisxdigit, Ftoascii, Ftolower, Ftoupper): Ditto. |
|
1048 |
3357
|
1049 1999-11-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1050 |
3360
|
1051 * syscalls.cc (symbols_of_syscalls): Use DEFCONSTX to define |
|
1052 Octave constants for C macros like O_WRONLY. |
|
1053 |
3357
|
1054 * oct-lvalue.cc (octave_lvalue::set_index): Disallow expressions |
|
1055 like x(i)(j) = rhs. |
|
1056 |
3355
|
1057 1999-11-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1058 |
3356
|
1059 * symtab.cc (symbol_record::type_as_string): New function. |
3355
|
1060 |
|
1061 * symtab.cc (symbol_record::which): New functions. |
|
1062 * help.cc (do_which): New functions. |
|
1063 (Fwhich): Use them. |
|
1064 |
|
1065 * help.cc (help_from_symbol_table, help_from_file): New functions. |
|
1066 (builtin_help): Use them. |
|
1067 |
|
1068 * help.cc (do_type): New function. |
3356
|
1069 (symbol_record::type): New function. |
3355
|
1070 (Ftype): Use them. |
|
1071 |
|
1072 * help.cc (print_symbol_type): Delete. |
|
1073 |
|
1074 * symtab.cc (symbol_table::name_list): Delete count arg. |
|
1075 (symbol_table::symbol_list): Likewise. |
|
1076 (symbol_table::glob): Likewise. Also return Array<symbol_record *> |
|
1077 instead of symbol_record **. |
|
1078 Change all callers. |
|
1079 * help.cc (names, display_symtab_names): Delete count arg. |
|
1080 |
|
1081 * help.cc (print_symbol_type, Ftype): No longer need to look up |
|
1082 fcn_file_name in the loadpath. |
|
1083 |
|
1084 * help.cc (print_symbol_type): Handle dld functions. |
|
1085 (help_from_symbol_table, help_from_file): New functions. |
|
1086 (builtin_help): Use them. |
|
1087 |
3354
|
1088 1999-11-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1089 |
|
1090 * ov-cell.cc (Fiscell, Fcell): New Functions. |
|
1091 (octave_cell::do_index_op): New function. |
|
1092 |
|
1093 * utils.cc (get_dimensions): Move here from data.cc and make extern. |
|
1094 (Vtreat_neg_dim_as_zero, treat_neg_dim_as_zero): Likewise. |
|
1095 (symbols_of_utils): New function. |
|
1096 |
|
1097 * data.cc (fill_matrix (const octave_value_list&, double, |
|
1098 const char*)): New function. |
|
1099 (Fones, Fzeros): Use it to avoid some code duplication. |
|
1100 |
3352
|
1101 1999-11-15 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1102 |
|
1103 * pt-cell.h, pt-cell.cc, ov-cell.h, ov-cell.cc, Cell.h, Cell.cc: |
|
1104 New files. |
|
1105 * Makefile.in: Add them to the appropriate lists. |
|
1106 * pt-walk.h (visit_cell (tree_cell&): New pure virtual. |
|
1107 * pt-pr-code.cc (tree_print_code::visit_cell (tree_cell&)): New |
|
1108 function. |
|
1109 * TEMPLATE-INST/Array-tc.cc: Instantiate 2D arrays of octave_value |
|
1110 objects. |
|
1111 * pt-all.h: Include pt-cell.h. |
|
1112 * ov.h, ov.cc (octave_value::is_cell, octave_value::cell_value): |
|
1113 New functions. |
|
1114 * ov-base.h, ov-base.cc (octave_value::is_cell, |
|
1115 octave_value::cell_value): Provide defaults. |
|
1116 * lex.h, lex.l: Handle `{' and `}' tokens (for cell arrays). |
|
1117 (bracketflag): Rename from braceflag. |
|
1118 (handle_close_bracket): Rename from handle_close_brace. |
|
1119 (class bracket_brace_paren_nesting_level): Rename from |
|
1120 brace_paren_nesting_level. |
|
1121 (bracket_brace_paren_nesting_level::bracket, |
|
1122 bracket_brace_paren_nesting_level::is_bracket): New functions to |
|
1123 keep count of nesting level for `[' and `]'. |
|
1124 (bracket_brace_paren_nesting_level::brace, |
|
1125 bracket_brace_paren_nesting_level::is_brace): Now keeps count of |
|
1126 nesting level for `{' and `}'. |
|
1127 * parse.y (tree_cell_type): New type. |
|
1128 Give '{' the same precedence and associativity as '(' and '.' |
|
1129 (matrix_rows, matrix_rows1): Rename from rows, rows1. |
|
1130 (cell, cell_rows, cell_rows1): New non-terminals. |
|
1131 (cell_or_matrix_row): Rename from matrix_row. |
|
1132 (primary_expr): Accept cell here. |
|
1133 (postfix_expr): Allow indexing using '{' arg_list '}'. |
|
1134 (finish_cell): New function. |
|
1135 |
3350
|
1136 1999-11-12 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1137 |
|
1138 * utils.cc (jump_to_top_level): No longer declared extern "C". |
|
1139 |
|
1140 * cutils.c (octave_strcasecmp, octave_strncasecmp): New functions. |
|
1141 * utils.cc (almost_match): Call octave_strncasecmp instead of |
|
1142 calling strncasecmp directly. |
|
1143 |
3347
|
1144 1999-11-10 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1145 |
|
1146 * parse.y: Don't define warn_reload_forces_clear here. |
|
1147 |
|
1148 * Makefile.in (DISTFILES): Include DOCSTRINGS. |
|
1149 |
3340
|
1150 1999-11-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1151 |
3343
|
1152 * sighandlers.cc (install_signal_handlers): Don't install |
|
1153 sigwinch_handler. |
|
1154 |
3342
|
1155 * oct-iostrm.h (octave_istream::eof, octave_ostream::eof): Provide |
|
1156 implementation for these. |
|
1157 |
|
1158 * oct-stream.cc (octave_base_stream::do_scanf): |
|
1159 The stdin stream is only special if we are interactive. |
|
1160 (octave_base_stream::scanf): Ditto. |
|
1161 (octave_base_stream::do_oscanf): Ditto. |
|
1162 (octave_base_stream::oscanf): Ditto. |
|
1163 |
3340
|
1164 * ov.h (octave_value::is_stream): New predicate. |
|
1165 * ov-file.h (octave_file::is_stream): Return true. |
|
1166 * file-io.cc (Fis_stream): New function. |
|
1167 |
|
1168 * ov-file.h (class octave_file): stream is now an object instead |
|
1169 of pointer. |
|
1170 * ov-file.cc (octave_file::print_raw): Handle stream as object |
|
1171 instead of pointer. Also print stream status. |
|
1172 |
|
1173 * ov-base.cc (octave_base_value::stream_value): Return object |
|
1174 instead of pointer. |
|
1175 |
|
1176 * ov.cc (octave_value::stream_value): Return object instead of pointer. |
|
1177 (octave_value::octave_value (const octave_stream&)): Take const |
|
1178 reference instead of pointer arg. |
|
1179 |
|
1180 * TEMPLATE-INST/Array-os.cc: Instantiate Arrays of octave_stream |
|
1181 objects, not pointers to them. |
|
1182 |
|
1183 * OPERATORS/op-fil-b.cc: Cope with octave_stream class changes. |
|
1184 * OPERATORS/op-fil-bm.cc: Likewise. |
|
1185 * OPERATORS/op-fil-cm.cc: Likewise. |
|
1186 * OPERATORS/op-fil-cs.cc: Likewise. |
|
1187 * OPERATORS/op-fil-lis.cc: Likewise. |
|
1188 * OPERATORS/op-fil-m.cc: Likewise. |
|
1189 * OPERATORS/op-fil-rec.cc: Likewise. |
|
1190 * OPERATORS/op-fil-s.cc: Likewise. |
|
1191 * OPERATORS/op-fil-str.cc: Likewise. |
|
1192 * file-io.cc: Likewise. |
|
1193 * syscalls.cc (Fdup): Likewise. |
|
1194 |
|
1195 * oct-fstrm.cc, oct-fstrm.h, oct-iostrm.cc, oct-iostrm.h, |
|
1196 oct-prcstrm.cc, oct-prcstrm.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
1197 oct-stream.cc, oct-stream.h, oct-strstrm.cc, oct-strstrm.h: |
|
1198 Rewrite to allow octave_stream objects to be used like values |
|
1199 instead of having to use pointers. |
|
1200 |
3337
|
1201 1999-11-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1202 |
|
1203 * oct-stream.cc (octave_base_stream::do_scanf): If it looks like |
|
1204 we have a matching failure, then reset the failbit in the stream |
|
1205 state. |
|
1206 (octave_base_stream::do_oscanf): Likewise. |
|
1207 |
3332
|
1208 1999-11-02 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
1209 |
3361
|
1210 * help.cc (Fhelp): Texinfoize doc string. |
|
1211 * input.cc (Fecho, Fcompletion_matches): Ditto. |
|
1212 * oct-hist.cc (Fedit_history, Fhistory, Frun_history): Ditto. |
|
1213 * pager.cc (Fdiary): Ditto. |
|
1214 * sysdep.cc (Fclc): Ditto. |
|
1215 * toplev.cc (Fquit, Fatexit): Ditto. |
3332
|
1216 |
|
1217 1999-11-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1218 |
|
1219 * lex.l (yywrap): No longer static. |
|
1220 (have_continuation): Declare input character as int, not char, so |
|
1221 comparison to EOF will work. |
|
1222 |
3330
|
1223 1999-11-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1224 |
|
1225 * defun.cc (print_usage): Use display_help_text instead of sending |
|
1226 help message directly to octave_stdout. |
|
1227 |
3325
|
1228 1999-10-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1229 |
|
1230 * defun-dld.h (INSTALL_DLD_FCNS, INSTALL_DLD_FCN): Delete definitions. |
|
1231 * DLD-FUNCTIONS/dassl.cc: Don't use INSTALL_DLD_FCN or |
|
1232 INSTALL_DLD_FCNS macros. They are not necessary with the new code |
|
1233 in dynamic-ld.cc. |
|
1234 * DLD-FUNCTIONS/lsode.cc: Ditto. |
|
1235 * DLD-FUNCTIONS/fsolve.cc: Ditto. |
|
1236 * DLD-FUNCTIONS/quad.cc: Ditto. |
|
1237 * DLD-FUNCTIONS/time.cc: Ditto. |
|
1238 * DLD-FUNCTIONS/besselj.cc: Ditto. |
|
1239 * DLD-FUNCTIONS/getgrent.cc: Ditto. |
|
1240 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
1241 * DLD-FUNCTIONS/inv.cc: Ditto. |
|
1242 * DLD-FUNCTIONS/log.cc: Ditto. |
|
1243 * DLD-FUNCTIONS/minmax.cc: Ditto. |
|
1244 * DLD-FUNCTIONS/rand.cc: Ditto. |
|
1245 |
|
1246 * dynamic-ld.cc, dynamic-ld.h: Major rewrite to allow reloading of |
|
1247 dynamically linked functions. |
|
1248 |
|
1249 * symtab.cc (symbol_record::replace_all_defs): Don't allow top |
|
1250 definition to be NULL. |
|
1251 (symbol_table::clear): Allow dynamically linked functions to be |
|
1252 cleared. |
|
1253 |
|
1254 * symtab.h (TYPE): New enum value, DLD_FUCTION. |
|
1255 (symbol_type): Now 8 bits wide. |
|
1256 (SYMTAB_ALL_TYPES): Include DLD_FUNCTION. |
|
1257 (symbol_record::symbol_def::is_function): Also recognize dld functions. |
|
1258 (symbol_record::symbol_def::is_dld_function): New function. |
|
1259 (symbol_record::is_dld_function): Ditto. |
|
1260 |
|
1261 * defun.cc (install_dld_function): New function. |
|
1262 * defun-int.h: Provide declaration here. |
|
1263 (octave_dld_fcn_installer): New typedef. |
|
1264 (DEFINE_FUN_INSTALLER_FUN): Installer function now takes an |
|
1265 oct_shlib object as an arg. Allow installation of a function to |
|
1266 happen more than once. |
|
1267 |
|
1268 * octave.cc (initialize_error_handlers): Call |
|
1269 set_liboctave_warning_handler here too. |
|
1270 |
|
1271 * ov-builtin.h (is_builtin_function): Return true. |
|
1272 Data member is now protected, not private. |
|
1273 |
|
1274 * ov-fcn.h (is_dynamically_loaded_function): New predicate. |
|
1275 (unload): New function. |
|
1276 Data members are now protected, not private. |
|
1277 |
|
1278 * ov.h (is_builtin_function, is_dld_function): New predicates. |
|
1279 * ov-base.h (is_builtin_function, is_dld_function): Ditto. |
|
1280 |
|
1281 * parse.y (Vwarn_reload_forces_clear): New static flag. |
|
1282 (warn_reload_forces_clear): New function. |
|
1283 (symbols_of_parse): DEFVAR warn_reload_forces_clear. |
|
1284 |
|
1285 * variables.cc (Fclear): Look for dld functions too. |
|
1286 |
|
1287 * ov-dld-fcn.cc, src/ov-dld-fcn.h: New files. |
|
1288 * Makefile.in (OV_INCLUDES, OV_SRC): Add them to the lists. |
|
1289 |
|
1290 * Makefile.in (DEFVAR_PATTERN): Also match DEFCONSTX. |
|
1291 |
3321
|
1292 1999-10-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1293 |
3325
|
1294 * DLList.h, DLList.cc: New files. |
|
1295 * Makefile.in (INCLUDES, DIST_SRC): Add them to the lists. |
|
1296 |
3323
|
1297 * DLD-FUNCTIONS/lsode.cc (Flsode): Be sure to call |
|
1298 unwind_protect::run_frame before returning. |
|
1299 * DLD-FUNCTIONS/quad.cc (Fquad): Likewise. |
|
1300 * DLD-FUNCTIONS/fsolve.cc (Ffsolve): Likewise. |
|
1301 * DLD-FUNCTIONS/dassl.cc (Fdassl): Likewise. |
|
1302 |
|
1303 * load-save.cc (read_mat_ascii_data): When reading from |
|
1304 tmp_stream, check its state, not the state of is. |
|
1305 |
|
1306 * defun-dld.h (INSTALL_DLD_FCN, INSTALL_DLD_FCNS): New macros. |
|
1307 * DLD-FUNCTIONS/dassl.cc: Use them. |
|
1308 * DLD-FUNCTIONS/lsode.cc: Ditto. |
|
1309 * DLD-FUNCTIONS/fsolve.cc: Ditto. |
|
1310 * DLD-FUNCTIONS/quad.cc: Ditto. |
|
1311 * DLD-FUNCTIONS/time.cc: Ditto. |
|
1312 * DLD-FUNCTIONS/besselj.cc: Ditto. |
|
1313 * DLD-FUNCTIONS/getgrent.cc: Ditto. |
|
1314 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
1315 * DLD-FUNCTIONS/inv.cc: Ditto. |
|
1316 * DLD-FUNCTIONS/log.cc: Ditto. |
|
1317 * DLD-FUNCTIONS/minmax.cc: Ditto. |
|
1318 * DLD-FUNCTIONS/rand.cc: Ditto. |
|
1319 |
3322
|
1320 * data.cc (Flinspace): Let linspace functions handle errors. |
|
1321 |
3321
|
1322 * mkgendoc (print_doc_string): Handle quoted names. |
|
1323 |
|
1324 * file-io.cc (symbols_of_file_io): Use DEFCONSTX for SEEK_SET, |
|
1325 SEEK_CUR, and SEEK_END. |
|
1326 |
|
1327 * defun.h (DEFCONST): Just pass name, defn, and doc to |
|
1328 DEFCONST_INTERNAL. |
|
1329 (DEFCONSTX): Likewise, pass name, defn, and doc to DEFCONSTX_INTERNAL. |
|
1330 * defun-int.h [MKBUILTINS] (DEFCONST_INTERNAL): Likewise, pass |
|
1331 name, defn, and doc to XDEFCONST_INTERNAL. |
|
1332 [MKBUILTINS] (DEFCONSTX_INTERNAL): New macro. |
|
1333 (INSTALL_CONST): New macro. |
|
1334 [! MKBUILTINS] (DEFCONST_INTERNAL): Use it to handle details here. |
|
1335 [! MKBUILTINS] (DEFCONSTX_INTERNAL): Ditto. |
|
1336 * mkgendoc: Fix definition of XDEFCONST_INTERNAL to match. |
|
1337 * mkbuiltins: Ditto. |
|
1338 |
|
1339 * mkdefs: Match spaces before BEGIN_INSTALL_BUILTIN. |
|
1340 |
|
1341 * Makefile.in (DEFUN_PATTERN): Also match DEFUN_MAPPER. |
|
1342 |
|
1343 1999-10-26 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
1344 |
|
1345 * data.cc (VI, VInf, VJ, VNaN, Ve, Veps, Vfalse, Vi, Vinf, Vj, |
|
1346 Vnan, Vpi, Vrealmax, Vrealmin): Texinfoize doc strings. |
|
1347 * mappers.cc (Fabs, Facos, Facosh, Fangle, Farg, Fasin, Fasinh, |
|
1348 Fatan, Fatanh, Fceil, Fconj, Fcos, Fcosh, Ferf, Ferfc, Fexp, |
|
1349 Ffinite, Ffix, Ffloor, Fgamma, Fimag, Flgamma, Flog, Flog10, |
|
1350 Freal, Fround, Fsign, Fsin, Fsinh, Fsqrt, Ftan, Ftanh): Ditto. |
|
1351 |
|
1352 1999-10-23 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
1353 |
3361
|
1354 * data.cc (Fis_matrix): Texinfoize doc string. |
|
1355 * ov.cc (Vpropagate_empty_matrices): Ditto. |
|
1356 * pt-mat.cc: (Vempty_list_elements_ok): Ditto. |
|
1357 * pr-output.cc (Vfixed_point_format, Voutput_max_field_width, |
|
1358 Voutput_precision, Vprint_empty_dimensions, Vsplit_long_rows): |
|
1359 Ditto. |
3321
|
1360 |
|
1361 1999-10-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1362 |
3323
|
1363 * ov-usr-fcn.cc (octave_user_function::do_index_op): If |
|
1364 Vmax_recursion_depth is exceeded, call unwind_protect::run_frame |
|
1365 before returning. |
3321
|
1366 |
3308
|
1367 1999-10-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1368 |
3317
|
1369 * cutils.c (do_octave_usleep): Handle useconds > 1e6. |
|
1370 |
3308
|
1371 * variables.h (is_valid_function): Provide default values for the |
|
1372 string argument. |
|
1373 |
|
1374 * symtab.cc (variable_reference): Maybe print warning (or error) |
|
1375 about variables that hide functions of the same name. |
|
1376 (symbol_record::define (const octave_value&, unsigned int)): Ditto. |
|
1377 (Vvariables_can_hide_functions): New static variable. |
|
1378 (variables_can_hide_functions, symbols_of_symtab): New functions. |
|
1379 |
|
1380 * cutils.c: New file. |
|
1381 * Makefile.in (SOURCES): Add it to the list. |
|
1382 * utils.h: Declare octave_usleep here. |
|
1383 * dirfns.cc (Fls): Simply all octave_usleep. |
|
1384 * oct-procbuf.cc (octave_procbuf::open): Ditto. |
|
1385 * sysdep.cc (Fusleep): Ditto. |
|
1386 * toplev.cc (run_command_and_return_output): Ditto. |
|
1387 |
3305
|
1388 1999-10-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1389 |
3307
|
1390 * data.cc (make_diag (const octave_value&, const octave_value&)): |
|
1391 Delete special cases for scalars and simply attempt conversion of |
|
1392 first arg to a matrix value. If that fails, we will still see an |
|
1393 error message. |
|
1394 |
3305
|
1395 * Makefile.in (DISTFILES): Add mkgendoc to the list. |
|
1396 |
3296
|
1397 1999-10-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1398 |
3301
|
1399 * Makefile.in (stmp-pic): New target. |
|
1400 ($(PICOBJS)): Depend on stmp-pic, not pic. |
|
1401 |
|
1402 * ov.h (get_rep): New function. |
|
1403 |
|
1404 * help.cc (display_help_text): Pass definitions for VERSION, |
|
1405 OCTAVE_HOME, and TARGETHOSTTYPE to makeinfo. |
|
1406 |
|
1407 * DLD-FUNCTIONS/getgrent.cc: Texinfoize all doc strings. |
|
1408 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
1409 * DLD-FUNCTIONS/getrusage.cc: Ditto. |
|
1410 * DLD-FUNCTIONS/time.cc: Ditto. |
|
1411 |
|
1412 * defaults.cc (EXEC_PATH, OCTAVE_VERSION): Texinfoize doc strings. |
|
1413 * dirfns.cc (Fcd, Fls, Fpwd, Freaddir, Fmkdir, Frmdir, Frename, |
|
1414 Fglob, Ffnmatch): Ditto. |
|
1415 * file-io.cc (Fpopen, Fpclose, Fumask): Ditto. |
|
1416 * sysdep.cc (Fgetenv, Fputenv, Fpause, Fsleep, Fusleep, Fisieee, |
|
1417 Ftilde_expand): Ditto. |
|
1418 * toplev.cc (Fcomputer, Fsystem, Foctave_config_info): Ditto. |
|
1419 * utils.cc (Ffile_in_path): Ditto. |
|
1420 * syscalls.cc (Fdup2, Fexec, Ffcntl, Ffork, Fgetpgrp, Fgetpid, |
|
1421 Fgetppid, Fgetegid, Fgetgid, Fgeteuid, Fgetuid, Fmkfifo, Fpipe, |
|
1422 Fstat, Funlink, Fwaitpid, F): Ditto. |
|
1423 (Flstat): Refer to stat for doc. |
|
1424 |
|
1425 |
3296
|
1426 * help.cc (looks_like_texinfo): New function. |
|
1427 (display_help_text): Use it to see if the doc string looks like |
|
1428 Texinfo source. If so, use makeinfo to format the text before |
|
1429 displaying it. |
|
1430 |
|
1431 * mkgendoc: New script. |
|
1432 * Makefile.in: Use it to create gendoc.cc, which is compiled and |
|
1433 run to create DOCSTRINGS file from sources. |
|
1434 |
3295
|
1435 1999-10-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1436 |
|
1437 * help.cc (help_from_info): Print `unable to find info' message if |
|
1438 try_info returns 127; otherwise, print `not indexed' message. |
|
1439 Don't sleep after printing `not indexed' message. |
|
1440 |
3292
|
1441 1999-10-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1442 |
|
1443 * parse.y (fold (tree_unary_expression *)): New function. |
|
1444 (make_prefix_op, make_postfix_op): Use it. |
|
1445 |
3281
|
1446 1999-10-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1447 |
3288
|
1448 * Makefile.in (oct-gperf.h): Ask for ANSI-C output from gperf |
|
1449 (requires gperf-2.7 or later). |
|
1450 |
3281
|
1451 * sighandlers.cc (sigwinch_handler): New function. |
|
1452 (install_signal_handlers): Install it. |
|
1453 |
3273
|
1454 Thu Sep 23 19:49:36 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1455 |
|
1456 * toplev.cc (Fsystem): For async case, use execl instead of |
|
1457 system, avoiding the need to exit after executing the subprocess. |
|
1458 |
3268
|
1459 Thu Sep 9 17:09:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1460 |
|
1461 * oct-stream.cc (get_size): Allow zero values. |
|
1462 (get_size): New arg, one_elt_size_spec. |
|
1463 (do_scanf_conv): New arg, `conv_count'. Change instantiation |
|
1464 requests and all callers. |
|
1465 (octave_base_stream::do_scanf): Improve scanning of strings. |
|
1466 (octave_base_stream::do_oscanf): Remove size limit on %s conversions. |
|
1467 |
|
1468 * oct-stream.cc (scanf_format_list::all_character_conversions): |
|
1469 Don't count %p as a character conversion. |
|
1470 |
|
1471 Tue Sep 7 08:31:04 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1472 |
|
1473 * pr-output.cc (set_real_matrix_format, set_complex_matrix_format): |
|
1474 Move check for fixed_point_format ahead of check for |
|
1475 int_or_inf_or_nan. |
|
1476 |
3264
|
1477 Thu Sep 2 11:54:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1478 |
|
1479 * oct-obj.cc (make_argv): Correctly handle empty strings as args. |
|
1480 |
3263
|
1481 Fri Aug 20 08:17:52 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1482 |
|
1483 * DLD-FUNCTIONS/quad.cc (quad): Delete unused label. |
|
1484 |
|
1485 * unwind-prot.cc (saved_variable::~saved_variable): Don't try to |
|
1486 delete gen_ptr_value here. |
|
1487 |
|
1488 Mon Aug 16 21:34:33 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1489 |
|
1490 * lex.l (next_token_is_sep_op): New function. |
|
1491 (handle_close_brace, maybe_unput_comma): Use it. |
|
1492 (have_continuation): Also handle CRLF here. |
|
1493 |
|
1494 Wed Aug 11 16:06:57 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1495 |
|
1496 * file-io.cc (Ffopen): Make fopen ("filename") work and imply that |
|
1497 MODE = "r". |
|
1498 |
3258
|
1499 Wed Jul 21 15:38:52 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1500 |
3259
|
1501 * help.cc (display_names_from_help_list): Sort names before |
|
1502 listing them. |
|
1503 (print_symbol_type, Ftype): Also handle built-in constants. |
|
1504 (LIST_SYMBOLS): Correct call to symbol_table::name_list. |
|
1505 (simple_help): List constants here too. List constants and |
|
1506 variables before functions, not after. Sort names before listing |
|
1507 them. |
|
1508 |
|
1509 * variables.cc (do_who): Display built-in constants in a separate |
|
1510 section. |
|
1511 |
|
1512 * error.cc (bind_global_error_variable, clear_global_error_variable): |
|
1513 Call bind_builtin_constant, not bind_builtin_variable to set |
|
1514 __error_text__. |
|
1515 * octave.cc (intern_argv): Likewise, for argv and __argv__. |
|
1516 |
|
1517 * defun.cc (install_builtin_constant): Move function guts to |
|
1518 bind_builtin_constant in variables.cc. |
|
1519 * variables.cc (bind_builtin_constant): New function. |
|
1520 |
3258
|
1521 * symtab.cc (symbol_record::define, symbol_record::variable_reference): |
|
1522 Handle constants the same as functions. |
|
1523 (symbol_record::link_to_builtin_variable): New function. |
|
1524 (symbol_record::define_builtin_const): New function. |
|
1525 (symbol_record::define_as_fcn): Delete unused function. |
|
1526 (symbol_record::read_only_error): |
|
1527 Handle constants the same as variables. |
|
1528 * symtab.h (symbol_record::BUILTIN_CONSTANT): New enum value. |
|
1529 (symbol_record::symbol_type): Increase width to 7 bits. |
|
1530 (symbol_record::symbol_def::is_constant): New function. |
|
1531 (symbol_record::symbol_def::is_builtin_constant): New function. |
|
1532 (symbol_record::is_constant): New function. |
|
1533 (symbol_record::is_builtin_constant): New function. |
|
1534 (SYMTAB_ALL_TYPES): Add symbol_record::BUILTIN_CONSTANT. |
|
1535 * variables.cc (link_to_builtin_variable): Delete unused function. |
|
1536 (link_to_builtin_or_function): Handle built-in constants here too. |
|
1537 |
|
1538 * defun.cc (install_builtin_variable): Delete inst_as_fcn arg. |
|
1539 (install_builtin_constant): New function. |
|
1540 (install_builtin_variable_as_function): Delete unused function. |
|
1541 * defun.h (DEFVAR_INTERNAL): Delete inst_as_fcn arg. |
|
1542 (DEFCONST_INTERNAL): New macro. |
|
1543 * defun.h (DEFVAR): Delete inst_as_fcn arg. |
|
1544 (DEFCONST, DEFCONSTX): Define using DEFCONST_INTERNAL instead of |
|
1545 DEFVAR_INTERNAL. |
|
1546 * data.cc, defaults.cc, error.cc, help.cc, input.cc, lex.l, |
|
1547 load-save.cc, oct-hist.cc, oct-procbuf.cc, ov-fcn.h, |
|
1548 ov-usr-fcn.cc, ov.cc, pager.cc, parse.y, pr-output.cc, |
|
1549 pt-assign.cc, pt-decl.cc, pt-mat.cc, pt-plot.cc, pt-stmt.cc, |
|
1550 toplev.cc, variables.cc: |
|
1551 Change all invocations of DEFVAR to match new definition. |
|
1552 |
|
1553 * data.cc (symbols_of_data): Add DEFCONSTs for true and false. |
|
1554 |
3255
|
1555 Thu Jul 15 10:59:42 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1556 |
3258
|
1557 * data.cc (Fis_bool, Fis_complex, Fisempty, Fisnumeric, Fis_list, |
|
1558 Fis_map, Fis_struct): Return bool object. |
|
1559 (Fisreal): New function. |
|
1560 |
|
1561 * ov-str-mat.h (octave_char_matrix_str): Only return true if |
|
1562 Vimplicit_str_to_num_ok is also true. |
|
1563 |
3255
|
1564 * DLD-FUNCTIONS/time.cc (Ftime): Print usage message if any |
|
1565 arguments are supplied. |
|
1566 |
|
1567 * variables.cc (symbol_out_of_date): Call octave_time for time stamps. |
|
1568 |
|
1569 * fn-cache.h (octave_fcn_file_name_cache::timestamp): |
|
1570 Now octave_time object. |
|
1571 |
|
1572 * strftime.c: Move to liboctave directory. |
|
1573 * Makefile.in (DIST_SRC): Delete from list. |
|
1574 |
|
1575 * ov-usr-fcn.h (octave_user_function::t_parsed, |
|
1576 octave_user_function::t_checked): Now octave_time objects. |
|
1577 (octave_user_function::time_parsed, |
|
1578 (octave_user_function::time_checked): |
|
1579 Return value is now octave_time object. |
|
1580 (octave_user_function::mark_fcn_file_up_to_date)): |
|
1581 Arg is now octave_time object. |
|
1582 |
|
1583 * ov-fcn.h (octave_function::mark_fcn_file_up_to_date)): |
|
1584 Arg is now octave_time object. |
|
1585 (octave_function::time_parsed, octave_function::time_checked): |
|
1586 Return value is now octave_time object. |
|
1587 |
|
1588 * input.cc (Vlast_prompt_time): Now an octave_time object. |
|
1589 (octave_gets): Call octave_time::stamp() to set Vlast_prompt_time. |
|
1590 |
|
1591 * DLD-FUNCTIONS/time.cc (mk_tm_map, extract_tm, Ftime, Fgmtime, |
|
1592 Flocaltime, Fmktime, Fstrftime): Use new classes defined in |
|
1593 liboctave/oct-time.cc instead of accessing C functions directly. |
|
1594 |
3252
|
1595 Wed Jul 14 17:38:46 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1596 |
|
1597 * systime.h: Move to liboctave directory. |
|
1598 * Makefile.in (INCLUDES): Delete it from the list |
|
1599 |
|
1600 Tue Jul 13 14:34:57 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1601 |
|
1602 * sighandlers.cc (sigchld_handler): Only wait for processes in |
|
1603 octave_child_list. |
|
1604 * toplev.cc (cmd_status): Delete unused static variable. |
|
1605 (cmd_death_handler): Delete unused function. |
|
1606 (run_command_and_return_output): Don't add cmd_death_handler to |
|
1607 octave_child_list. Simply extract command exit status from |
|
1608 calling close() on the procstream object. |
|
1609 |
3249
|
1610 Mon Jul 12 22:38:50 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1611 |
|
1612 * defun.h (DEFUN_MAPPER): Handle new args, d_b_map and c_b_map. |
|
1613 * defun-int.h (DEFUN_MAPPER_INTERNAL): Likewise. |
|
1614 * mappers.cc (install_mapper_functions): Supply new args to |
|
1615 all uses of DEFUN_MAPPER. |
|
1616 * ov-mapper.cc (octave_mapper::apply): Handle mapper functions |
|
1617 that return bool objects. |
|
1618 * ov-mapper.h (octave_mapper::d_b_mapper, octave_mapper::c_b_mapper): |
|
1619 New typedefs. |
|
1620 (octave_mapper::octave_mapper): Handle new mapper function types. |
|
1621 |
|
1622 * DLD-FUNCTIONS/minmax.cc: Do a better job of handling NaNs. |
|
1623 |
|
1624 Sun Jul 11 13:15:17 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1625 |
|
1626 * pr-output.cc (do_plus_format (ostream&, double)): New function. |
|
1627 (octave_print_internal (ostream&, double, bool)): Use it. |
|
1628 (octave_print_internal (ostream&, const Matrix&, bool, int)): Ditto. |
|
1629 |
|
1630 * pr-output.cc (do_plus_format (ostream&, const Complex&)): |
|
1631 New function. |
|
1632 (octave_print_internal (ostream&, const Complex&, bool)): Use it. |
|
1633 (octave_print_internal (ostream&, const ComplexMatrix&, bool, int)): |
|
1634 Ditto. |
|
1635 |
|
1636 Sun Jun 20 23:04:00 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1637 |
|
1638 * sysdep.cc: Include sys/ioctl.h if available. |
|
1639 |
|
1640 Sat Jun 19 12:07:16 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1641 |
|
1642 * variables.cc (do_who): Make pattern and multiple non-option |
|
1643 arguments work. |
|
1644 |
3246
|
1645 Mon Jun 7 09:54:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1646 |
|
1647 * lex.l (next_token_is_bin_op, next_token_is_postfix_unary_op, |
|
1648 handle_number): Delete yytext arg. Change all callers. |
|
1649 (next_token_is_postfix_unary_op): Check the first character |
|
1650 obtained from yyinput before calling it again. |
|
1651 (next_token_is_bin_op): Do a more thorough check. |
|
1652 (handle_identifier): Also enter token in local symbol table if the |
|
1653 following token is a dot and it looks like a binary operator. |
|
1654 (whitespace_in_literal_matrix): Now static. |
|
1655 |
|
1656 * lex.l: Always use unput, not yyunput. |
|
1657 |
3244
|
1658 Fri May 28 11:02:37 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1659 |
|
1660 * DLD-FUNCTIONS/chol.cc (Fchol): If two output arguments, never |
|
1661 produce error message. |
|
1662 |
3243
|
1663 Thu May 27 18:28:35 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1664 |
|
1665 * DLD-FUNCTIONS/chol.cc (Fchol): Also return info as second output. |
|
1666 |
|
1667 * DLD-FUNCTIONS/minmax.cc (max (const ComplexMatrix&, const |
|
1668 ComplexMatrix&)): Correct test for real columns only. |
|
1669 (min (const ComplexMatrix&, const ComplexMatrix&)): Likewise. |
|
1670 |
|
1671 Wed Apr 14 12:54:25 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1672 |
|
1673 * DLD-FUNCTIONS/dassl.cc (Fdassl): Prevent recursive calls. |
|
1674 * DLD-FUNCTIONS/fsolve.cc (Ffsolve): Likewise. |
|
1675 * DLD-FUNCTIONS/lsode.cc (Flsode): Likewise. |
|
1676 * DLD-FUNCTIONS/quad.cc (Fquad): Likewise. |
|
1677 |
|
1678 * file-io.cc (Fsscanf, Ffscanf): Doc fix. |
|
1679 |
3239
|
1680 Sat Mar 27 11:07:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1681 |
|
1682 * ov.h (octave_value::count): New function. |
|
1683 * symtab.cc (symbol_record::dump_symbol_info): New function. |
|
1684 * symtab.cc (symbol_record::symbol_def::dump_symbol_info): Ditto. |
|
1685 * variables.cc (F__dump_symbol_info__): Ditto. |
|
1686 |
|
1687 * pt-misc.cc (tree_parameter_list::clear): New function. |
|
1688 * ov-usr-fcn.h (octave_user_function::clear_args_passed): Ditto. |
|
1689 * ov-usr-fcn.cc (clear_param_list): New function. |
|
1690 (clear_args_passed): New function. |
|
1691 (octave_user_function::do_index_op): Use them to decrement |
|
1692 reference counts on local variables. |
|
1693 |
3238
|
1694 Fri Mar 26 00:51:53 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1695 |
|
1696 * Makefile.in (libraries): Use the libfoo.a(objects) method of |
|
1697 creating static libs. |
|
1698 |
|
1699 * defaults.cc (symbols_of_defaults): Initialize LOADPATH to |
|
1700 Vload_path, not ":". |
|
1701 |
|
1702 Thu Mar 18 12:09:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1703 |
|
1704 * data.cc (Fisnumeric): Fix typo. |
|
1705 |
|
1706 Thu Mar 4 02:17:04 1999 James Macnicol <jamesm@evans.ee.adfa.oz.au> |
|
1707 |
|
1708 * file-io.cc (Ffread, Ffwrite): Add uint16 and uint32 data types |
|
1709 to doc string. |
|
1710 |
|
1711 Wed Mar 3 11:55:17 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1712 |
|
1713 * lex.l (handle_string): Allow "" to pass through unchanged if |
|
1714 working on a gset command. |
|
1715 |
|
1716 Tue Mar 2 01:36:29 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1717 |
|
1718 * variables.cc (Fexist): If a variable isn't defined, only go on |
|
1719 to look for a global by the same name if we are at the top level. |
|
1720 |
|
1721 Fri Jan 29 02:18:36 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1722 |
|
1723 * version.h (OCTAVE_NAME_AND_VERSION): Say `GNU Octave', not just |
|
1724 Octave. |
|
1725 |
3234
|
1726 Thu Jan 28 21:29:16 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1727 |
|
1728 * toplev.cc (Fcomputer): Use CANONICAL_HOST_TYPE, not TARGET_HOST_TYPE. |
|
1729 (octave_config_info): Likewise. |
|
1730 * version.h: Ditto. |
|
1731 |
|
1732 * sysdep.cc (Fpause): Flush output before getting user input. |
|
1733 |
3233
|
1734 Wed Jan 27 14:18:29 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1735 |
|
1736 * Makefile.in (DEFFUN_PATTERN, DEFVAR_PATTERN): Use egrep again. |
|
1737 Make the patterns work with stupid egreps that don't like empty |
|
1738 elements in alternation patterns. |
|
1739 |
|
1740 Fri Jan 22 04:41:48 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1741 |
|
1742 * load-save.cc (save_ascii_data): Check for string type first, |
|
1743 then range, then the rest. |
|
1744 (save_binary_data): Ditto. |
|
1745 |
|
1746 * pager.cc (more_than_a_screenful): Accept length as second arg. |
|
1747 Handle long lines properly, assuming the terminal wraps long lines. |
|
1748 (octave_pager_buf::do_sync): Accept length of data as second arg. |
|
1749 Use write instead of << to put characters on output stream. |
|
1750 (octave_pager_buf::sync): Don't assume data ends at first NUL. |
|
1751 (octave_diary_buf::sync): Ditto. |
|
1752 |
|
1753 Thu Jan 21 22:15:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1754 |
|
1755 * load-save.cc (save_mat_binary_data): Check for string type |
|
1756 first, then range, then the rest. |
|
1757 |
|
1758 Wed Jan 20 12:01:14 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1759 |
|
1760 * oct-stream.cc (octave_base_stream::do_scanf): Handle short and |
|
1761 long ints correctly. |
|
1762 |
|
1763 Fri Jan 15 13:04:58 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1764 |
|
1765 * parse.y (end_error): Handle case of endswitch too. |
|
1766 |
|
1767 * Makefile.in: Use basic regular expressions and grep instead of |
|
1768 egrep to find files that contain DEFVAR, DEFCONST, or DEFUN. |
|
1769 |
|
1770 Wed Dec 9 14:14:11 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1771 |
|
1772 * Makefile.in (octave): Add $(RDYNAMIC_FLAG) to link command. |
|
1773 |
|
1774 Fri Dec 4 20:26:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1775 |
|
1776 * DLD-FUNCTIONS/time.cc (Fstrftime): Make it work even when not |
|
1777 using the GNU version of strftime, which allows passing NULL for |
|
1778 the buffer to determine the required size of the buffer. |
|
1779 |
3225
|
1780 Wed Dec 2 22:38:40 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1781 |
|
1782 * utils.cc (file_in_loadpath): Expect argc == 2, not 3. |
|
1783 |
|
1784 Tue Nov 24 23:38:19 1998 Eric Norum <eric@skatter.USask.Ca> |
|
1785 |
|
1786 * mkbuiltins: Also strip off leading `./' from file names. |
|
1787 * mkops: Ditto. |
|
1788 |
|
1789 Tue Nov 24 23:24:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1790 |
|
1791 * strftime.c: Surround everything with #ifdef HAVE_STRFTIME / #endif. |
|
1792 |
|
1793 * lex.h (YY_FATAL_ERROR): Call yy_falta_error after |
|
1794 jump_to_top_level to avoid gcc warning. |
|
1795 |
|
1796 Fri Nov 20 13:34:47 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1797 |
|
1798 * ov-bool.h, ov-bool.cc (class octave_bool): Derive from |
|
1799 octave_base_scalar and get common functions via derivation. |
|
1800 * ov-scalar.h, ov-scalar.cc (class octave_scalar): Ditto. |
|
1801 * ov-complex.h, ov-complex.cc (class octave_complex): Ditto. |
|
1802 |
|
1803 * ov-base-scalar.h, ov-base-scalar.cc (class octave_base_scalar): |
|
1804 New files for new class definition. Put common scalar data type |
|
1805 stuff here. |
|
1806 * Makefile.in (OV_INCLUDES, OV_SRC): Add them to the lists. |
|
1807 |
3221
|
1808 Thu Nov 19 14:30:25 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
3225
|
1809 |
3222
|
1810 * dynamic-ld.cc (octave_dynamic_loader::mangle_name): |
|
1811 Prepend underscore here. |
|
1812 (octave_dynamic_loader::load_fcn_from_dot_oct_file): Not here. |
|
1813 |
3221
|
1814 * ov-re-mat.h (octave_matrix_value): Delete experimental code for |
|
1815 handling structure references for things like .rows, .cols, etc. |
|
1816 |
3220
|
1817 Wed Nov 18 01:18:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1818 |
3221
|
1819 * Makefile.in (VAR_FILES): Be more careful about matching. |
|
1820 (DEF_FILES): Likewise. |
|
1821 |
|
1822 * ov-base-mat.h, ov-base-mat.cc, ov-bool-mat.h, ov-bool-mat.cc, |
|
1823 ov-ch-mat.h, ov-ch-mat.cc, ov-cx-mat.h, ov-cx-mat.cc, |
|
1824 ov-re-mat.h, ov-re-mat.cc: Move default definition of all, any, |
|
1825 is_matrix_type, is_numeric_type, valid_as_zero_index, and |
|
1826 do_index_op to base class. |
|
1827 Provide definitions that override the defaults where necessary. |
3220
|
1828 |
|
1829 * mappers.cc: Don't include lo-specfun.h. |
|
1830 |
|
1831 Tue Nov 17 14:35:56 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1832 |
|
1833 * besselj.cc (Fbesselh, Fairy); New functions. |
|
1834 (Fbesselj, Fbessely, Fbesselk, Fbesseli): Update doc strings. |
|
1835 (do_bessel): Handle additional args. |
|
1836 |
|
1837 Fri Nov 13 14:47:11 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1838 |
|
1839 * lex.l (NUMBER): Allow hexadecimal constants. |
|
1840 (looks_like_hex): New function. |
|
1841 (handle_number): Check for hexadecimal constants and convert them |
|
1842 to unsigned integer values. |
|
1843 |
3219
|
1844 Thu Nov 12 11:13:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1845 |
|
1846 * input.cc (gnu_readline): Check for EOF from command_editor::readline. |
|
1847 |
|
1848 * ov-str-mat.h, ov-str-mat.cc (class octave_char_matrix_str): |
|
1849 Get common functions via new derivation scheme. |
|
1850 |
|
1851 * ov-bool-mat.h, ov-bool-mat.cc (class octave_bool_matrix): |
|
1852 Derive from octave_base_matrix and get common functions via derivation. |
|
1853 * ov-ch-mat.h, ov-ch-mat.cc (class octave_char_matrix): Ditto. |
|
1854 * ov-cx-mat.h, ov-cx-mat.cc (class octave_complex_matrix): Ditto. |
|
1855 * ov-re-mat.h, ov-re-mat.cc (class octave_real_matrix): Ditto. |
|
1856 |
|
1857 * ov-base-mat.h, ov-base-mat.cc (class octave_base_matrix): New |
|
1858 files for new class definition. Put common matrix data type |
|
1859 stuff here. |
|
1860 |
|
1861 * ov-list.cc (Fnth): New function. |
|
1862 |
|
1863 * ov-list.cc (octave_list::do_index_op): Allow more complex indexing. |
|
1864 |
|
1865 * oct-obj.cc (octave_value_list::index): New function. |
|
1866 (octave_value_list::octve_value_list (Array<octave_value>)): |
|
1867 New private constructor. |
|
1868 |
|
1869 * ov-list.cc (Fsplice): Fix docstring to match. |
|
1870 * oct-obj.cc (octave_value_list::splice): Allow special case |
|
1871 splice (x, length(x)+1, 0, y) to be equivalent to append (x, y). |
|
1872 |
|
1873 * ov-list.cc (Fappend): If an arg is a list, concatenate the lists |
|
1874 instead of appending arg as a single element. |
|
1875 |
|
1876 Wed Nov 11 14:07:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1877 |
|
1878 * load-save.cc (get_mat_data_input_line): New function. |
|
1879 (get_lines_and_columns): Use it here. |
|
1880 (read_mat_ascii_data): And here and do our own reading instead of |
|
1881 using Matrix::operator<<. |
|
1882 |
|
1883 Tue Nov 10 16:12:25 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1884 |
|
1885 * parse.y (make_constant): Initialize retval to 0. |
|
1886 |
|
1887 * toplev.h (clean_up_and_exit (void)): Delete declaration. |
|
1888 * toplev.cc (do_octave_atexit): Move guts of clean_up_for_exit |
|
1889 here, but ensure that the actions are only executed once. |
|
1890 * octave.cc (main): Don't register cleanup_tmp_files with atexit. |
|
1891 |
|
1892 * ov.h, ov.cc (class octave_value): Use DECLARE_OCTAVE_ALLOCATOR |
|
1893 and DEFINE_OCTAVE_ALLOCATOR for uniform declaration and definition |
|
1894 of allocator functions. Use DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA |
|
1895 and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA for uniform declaration |
|
1896 and definition of type id functions and data. |
|
1897 * ov-usr-fcn.h, ov-usr-fcn.cc (class octave_user_function): Ditto. |
|
1898 * ov-scalar.h, ov-scalar.cc (class octave_scalar): Ditto. |
|
1899 * ov-re-mat.h ov-re-mat.cc (class octave_matrix): Ditto. |
|
1900 * ov-range.h, ov-range.cc (class octave_range): Ditto. |
|
1901 * ov-mapper.h, ov-mapper.cc (class octave_mapper): Ditto. |
|
1902 * ov-list.h, ov-list.cc (class octave_list): Ditto. |
|
1903 * ov-file.h, ov-file.cc (class octave_file): Ditto. |
|
1904 * ov-fcn.h, ov-fcn.cc (class octave_function): Ditto. |
|
1905 * ov-cx-mat.h, ov-cx-mat.cc (class octave_complex_matrix): Ditto. |
|
1906 * ov-complex.h, ov-complex.cc (class octave_complex): Ditto. |
|
1907 * ov-ch-mat.h, ov-ch-mat.cc (octave_char_matrix): Ditto. |
|
1908 * ov-builtin.h, ov-builtin.cc (class octave_builtin): Ditto. |
|
1909 * ov-bool.h, ov-bool.cc (class octave_bool): Ditto. |
|
1910 * ov-bool-mat.h, ov-bool-mat.cc (octave_bool_matrix): Ditto. |
|
1911 |
|
1912 * ov.h (DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA): New macro. |
|
1913 (DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA): Ditto. |
|
1914 |
3215
|
1915 Mon Nov 9 16:12:37 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1916 |
|
1917 * pr-output.cc (octave_print_internal): Reorder default args for |
|
1918 charMatrix version. |
|
1919 (octave_print_internal): New function for boolMatrix. |
|
1920 |
|
1921 * version.h (OCTAVE_STARTUP_MESSAGE): Note that this is a |
|
1922 development release. |
|
1923 |
|
1924 * toplev.cc (do_octave_atexit): Call flush_octave_stdout here. |
|
1925 (clean_up_for_exit): And here. |
|
1926 |
|
1927 Mon Nov 9 15:20:53 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1928 |
|
1929 * input.cc (get_user_input): Check retval.length(), not retval.length. |
|
1930 |
|
1931 Sun Nov 8 19:30:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1932 |
|
1933 * pt-assign.cc (tree_simple_assignment::rvalue): If etype is |
|
1934 asn_eq, don't evaluate ult again because retval is just rhs value. |
|
1935 (tree_multi_assignment::rvalue): Likewise. |
|
1936 |
|
1937 Fri Nov 6 12:14:29 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1938 |
|
1939 * pt-loop.cc (tree_for_command::eval): Move code for string RHS |
|
1940 outside if clause for matrix types. |
|
1941 |
|
1942 * pt-idx.cc: Don't forget to define arg_nm. |
|
1943 Move contstructor here. |
|
1944 * pt-idx.h: From here. |
|
1945 |
|
1946 * data.cc (Fisempty): Also return true for empty strings. |
|
1947 |
3212
|
1948 Wed Nov 4 17:21:41 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1949 |
|
1950 * ov-base.cc (octave_base_value::rows, octave_base_value::columns, |
|
1951 octave_base_value::length): Delete. |
|
1952 * ov-base.h (octave_base_value::rows, octave_base_value::columns, |
|
1953 octave_base_value::length): Define here. All return -1 if not |
|
1954 defined in a derived class. |
|
1955 |
|
1956 * data.cc (Fis_matrix): Also return true if the arg is a range. |
|
1957 |
3209
|
1958 Tue Nov 3 09:40:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1959 |
|
1960 * data.cc (Fis_bool): New function. |
|
1961 Also add alias for islogical. |
|
1962 |
|
1963 * ov.h (octave_value::is_bool_type): New function. |
|
1964 * ov-base.h (octave_base_value::is_bool_type): Likewise. |
|
1965 * ov-bool.h (octave_bool::is_bool_type): Likewise. |
|
1966 * ov-bool-mat.h (octave_bool_matrix::is_bool_type): Likewise. |
|
1967 |
3206
|
1968 Mon Nov 2 13:36:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1969 |
3208
|
1970 * lex.l (handle_close_brace): Also handle case of ']' followed by |
|
1971 other assignment ops (+=, -=, ...). |
|
1972 |
|
1973 * pt-assign.cc (tree_simple_assignment::rvalue): Correctly handle |
|
1974 return value and printing for operators other than `='. |
|
1975 (tree_multi_assignment::rvalue): Likewise. |
|
1976 |
|
1977 * pt-assign.h (tree_multi_assignment::etype): New data member. |
|
1978 * pt-assign.cc (tree_multi_assignment::rvalue): Use it instead of |
|
1979 assuming `='. |
|
1980 (tree_multi_assignment::oper): New function. |
|
1981 * pt-pr-code.cc (tree_print_code::visit_multi_assignment): Use |
|
1982 it instead of always printing `='. |
|
1983 * parse.y (make_assign_op): Pass expression type to |
|
1984 tree_multi_assignment constructor. |
|
1985 |
3206
|
1986 * Makefile.in (stmp-pic): New target. |
|
1987 ($(PICOBJ)): Depend on stmp-pic, not pic. |
|
1988 (clean): Delete stmp-pic. |
|
1989 |
|
1990 Sun Nov 1 23:24:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1991 |
|
1992 * mappers.cc (install_mapper_functions): Add alias for isfinite. |
|
1993 |
|
1994 Sat Oct 31 08:46:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1995 |
|
1996 * data.cc (Fisnumeric): New function. |
|
1997 |
3203
|
1998 Fri Oct 30 08:39:30 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1999 |
3205
|
2000 * oct-lvalue.cc (octave_lvalue::do_unary_op): Make it work for |
|
2001 indexed ops too. |
|
2002 * ov.cc (octave_value::unary_op_to_assign_op): New function. |
|
2003 (octave_value::do_non_const_unary_op): New function for indexed ops. |
|
2004 |
3204
|
2005 * parse.y (LEFTDIV_EQ, ELEFTDIV_EQ): New tokens. |
|
2006 (assign_expr): Add rules for them. |
|
2007 (make_assign_op): Handle them here too. |
|
2008 * lex.l: Recognize them. |
|
2009 * ov.h (octave_value::assign_op): Add ldiv_eq and el_ldiv_eq. |
|
2010 * ov.cc (octave_value::assign_op_as_string): Ditto. |
|
2011 (octave_value::op_eq_to_binary_op): Ditto. |
|
2012 (octave_value::assign): Handle OP= style operators with brute force. |
|
2013 (octave_value::simple_assign): New function. |
|
2014 |
3203
|
2015 * parse.y (matrix): Dont' forget to reset |
|
2016 lexer_flags.looking_at_matrix_or_assign_lhs. |
|
2017 |
|
2018 * oct-lvalue.cc (octave_lvalue::assign): Don't call change |
|
2019 function if error occurs. |
|
2020 (octave_lvalue::do_unary_op): If we have an index, fail with message. |
|
2021 |
3202
|
2022 Thu Oct 29 09:27:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2023 |
3203
|
2024 * ov.cc (do_binary_op): Protect against invalid type conversions. |
|
2025 (try_assignment_with_conversion): Likewise. |
|
2026 (do_unary_op): Likewise. |
|
2027 |
|
2028 * ov.h (OV_UNOP_FN, OV_UNOP_OP, OV_UNOP_FN_OP): New macros. |
|
2029 Use them to define not, uminus, transpose, hermitian functions |
|
2030 and operators ! and -. |
|
2031 (OV_BINOP_FN, OV_BINOP_OP, OV_BINOP_FN_OP): New macros. |
|
2032 Use them to define add, sub, mul, div, pow, ldiv, lshift, rshift, |
|
2033 lt, le, eq, ge, gt, ne, el_mul, el_div, el_pow, el_ldiv, el_and, |
|
2034 el_or, struct_ref, functions and operators <, <=, ==, >=, >, !=, |
|
2035 +, -, *, and /. |
|
2036 |
|
2037 * ops.h (CONVDECLX): New macro. |
|
2038 * ov-base.cc (matrix_conv, complex_matrix_conv, string_conv): |
|
2039 Use it to declare these functions. |
|
2040 |
|
2041 * ops.h (CONVDECL, INSTALL_WIDENOP): |
|
2042 Prefix function name with `oct_conv_'. |
|
2043 (INSTALL_BINOP, BINOPDECL): Prefix function name with `oct_binop_'. |
|
2044 (INSTALL_ASSIGNOP, INSTALL_ASSIGNANYOP, ASSIGNOPDECL): |
|
2045 Prefix function name with `oct_assignop_'. |
|
2046 (UNOPDECL, DEFNCUNOP_METHOD, INSTALL_UNOP, INSTALL_NCUNOP): |
|
2047 Prefix function name with `oct_unop_'. |
|
2048 |
|
2049 * ov-str-mat.cc (default_numeric_conversion_function): |
|
2050 Return 0 if conversion fails. |
|
2051 |
|
2052 * parse.y (make_prefix_op, make_postfix_op): Use |
|
2053 octave_value::unary_op enum. |
|
2054 |
|
2055 * pt-unop.cc (tree_prefix_expression::rvalue): Use new unary_op |
|
2056 functions from octave_value and octave_lvalue classes. |
|
2057 (tree_prefix_expression::rvalue): Likewise. |
|
2058 |
|
2059 * pt-unop.cc (tree_unary_expression::oper): Move here. |
|
2060 (tree_prefix_expression::oper, tree_postfix_expression): From here. |
|
2061 |
|
2062 * pt-unop.h (tree_prefix_expression, tree_postfix_expression): |
|
2063 Delete enums. |
|
2064 (tree_unary_expression): Use octave_value::unary_op enum. |
|
2065 * parse.y (make_prefix_op, make_postfix_op): Likewise. |
|
2066 |
|
2067 * oct-lvalue.h (octave_lvalue::do_unary_op): New function. |
|
2068 (octave_lvalue::increment, octave_lvalue::decrement): Delete. |
|
2069 |
|
2070 * ov-typeinfo.h (octave_value_typeinfo::non_const_unary_ops): |
|
2071 New data member. |
|
2072 * ov-typeinfo.h (octave_value_typeinfo::lookup_non_const_unary_op): |
|
2073 New function. |
|
2074 * ov-typeinfo.cc (octave_value_typeinfo::register_non_const_unary_op): |
|
2075 New function. |
|
2076 (octave_value_typeinfo::do_register_non_const_unary_op): Ditto. |
|
2077 (octave_value_typeinfo::do_lookup_non_const_unary_op): Ditto. |
|
2078 |
|
2079 * ov.cc (octave_value::do_non_const_unary_op): New function. |
|
2080 |
|
2081 * Makefile.in (OP_XSRC): Add op-chm.cc and op-range.cc to the list. |
|
2082 |
|
2083 * OPERATORS/op-str-str.cc: Define string matrix unary operators here. |
|
2084 (install_str_str_ops): Install them here. |
|
2085 * ov-bool-mat.h (octave_bool_matrix::transpose, |
|
2086 octave_bool_matrix_value::hermitian): Delete. |
|
2087 |
|
2088 * OPERATORS/op-chm.cc: New file. Define char matrix unary operators. |
|
2089 (install_chm_ops): Install them here. |
|
2090 * ov-ch-mat.h (octave_char_matrix::transpose, |
|
2091 octave_char_matrix_value::hermitian): Delete. |
|
2092 * ops.cc (install_ops): Call install_chm_ops. |
|
2093 |
|
2094 * OPERATORS/op-bm-bm.cc: Define bool matrix unary operators here. |
|
2095 (install_bm_bm_ops): Install them here. |
|
2096 * ov-bool-mat.h (octave_bool_matrix::transpose, |
|
2097 octave_bool_matrix_value::hermitian): Delete. |
|
2098 |
|
2099 * ov-bool.h (octave_bool::not, octave_bool::uminus, |
|
2100 octave_bool::transpose, octave_bool::hermitian): Delete. |
|
2101 |
|
2102 * OPERATORS/op-cs-cs.cc: Define complex scalar unary operators here. |
|
2103 (install_cs_cs_ops): Install them here. |
|
2104 * ov-complex.h (octave_complex::not, octave_complex::uminus, |
|
2105 octave_complex::transpose, octave_complex::hermitian): Delete. |
|
2106 |
|
2107 * OPERATORS/op-cm-cm.cc: Define complex matrix unary operators here. |
|
2108 (install_cm_cm_ops): Install them here. |
|
2109 * ov-cx-mat.h (octave_complex_matrix::not, |
|
2110 octave_complex_matrix::uminus, octave_complex_matrix::transpose, |
|
2111 octave_complex_matrix::hermitian): Delete. |
|
2112 |
|
2113 * OPERATORS/op-m-m.cc: Define matrix unary operators here. |
|
2114 (install_m_m_ops): Install them here. |
|
2115 * ov-re-mat.h (octave_matrix::not, octave_matrix::uminus, |
|
2116 octave_matrix::transpose, octave_matrix::hermitian): Delete. |
|
2117 |
|
2118 * OPERATORS/op-range.cc: New file. Define range unary operators. |
|
2119 (install_range_ops): Install them here. |
|
2120 * ov-range.h (octave_range::not, octave_range::uminus, |
|
2121 octave_range::transpose, octave_range::hermitian): Delete. |
|
2122 * ops.cc (install_ops): Call install_range_ops. |
|
2123 |
|
2124 * OPERATORS/op-s-s.cc: Define scalar unary operators here. |
|
2125 (install_s_s_ops): Install them here. |
|
2126 * ov-scalar.h (octave_scalar::not, octave_scalar::uminus, |
|
2127 octave_scalar::transpose, octave_scalar::hermitian): Delete. |
|
2128 |
|
2129 * ops.h (INSTALL_UNOP, CAST_UNOP_ARG, UNOPDECL, DEFUNOPX, DEFUNOP, |
|
2130 DEFUNOP_OP, DEFUNOP_FN): New macros. |
|
2131 |
|
2132 * ov.h (unary_op_fcn): New typedef. |
|
2133 (octave_value::unary_op): New enum. |
|
2134 * ov.cc (octave_value::octave_value): New function. |
|
2135 |
|
2136 * ov.h (octave_value::not, octave_value::uminus, |
|
2137 octave_value::transpose, octave_value::hermitian, |
|
2138 octave_value::increment, octave_value::decrement): Delete. |
|
2139 |
|
2140 * ov-base.cc (octave_base_value::not, octave_base_value::uminus, |
|
2141 octave_base_value::transpose, octave_base_value::hermitian, |
|
2142 octave_base_value::increment, octave_base_value::decrement): Delete. |
|
2143 |
|
2144 * ov.cc (gripe_unary_op): New function. |
|
2145 (do_unary_op): New function. |
|
2146 * ov-typeinfo.h (octave_value_typeinfo::unary_ops): |
|
2147 New data member. |
|
2148 * ov-typeinfo.cc (octave_value_info::register_unary_op, |
|
2149 octave_value_info::do_register_unary_op, |
|
2150 octave_value_info::lookup_unary_op, |
|
2151 octave_value_info::do_lookup_unary_op): |
|
2152 New functions. |
|
2153 |
3202
|
2154 * ov-list.cc (Fsplice): Use new octave_value::int_value function here. |
|
2155 (octave_list::do_index_op): Likewise. |
|
2156 (octave_list::assign): Likewise. |
|
2157 * toplev.cc (Fquit): Likewise. |
|
2158 * syscalls.cc (Fwaitpid): Likewise. |
|
2159 (Ffcntl): Likewise. |
|
2160 * file-io.cc (do_fread): Likewise. |
|
2161 (do_fwrite): Likewise. |
|
2162 * data.cc (make_diag): Likewise. |
|
2163 (Fsize): Likewise. |
|
2164 (get_dimensions): Likewise. |
|
2165 (Flinspace): |
|
2166 |
|
2167 * ov-base.cc (octave_base_value::int_value): New function. |
|
2168 (octave_base_value::nint_value): Ditto. |
|
2169 * ov.h (octave_value::int_value): Ditto. |
|
2170 (octave_value::nint_value): Ditto. |
|
2171 |
|
2172 * ov-list.cc (octave_list::assign): Fix off-by-one error. |
|
2173 |
3196
|
2174 Wed Oct 28 11:01:37 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2175 |
3202
|
2176 * load-save.cc (read_mat_ascii_data): Try harder to convert file |
|
2177 name to valid variable name. |
|
2178 |
|
2179 * data.cc (Fisempty, Fis_matrix): New functions. |
|
2180 |
|
2181 * ov-str-mat.h (octave_char_matrix_str::is_matrix_type): New function. |
|
2182 |
3196
|
2183 * OPERATORS/op-list.cc: New file. |
|
2184 * Makefile.in (OP_XSRC): Add it to the list. |
|
2185 |
|
2186 * ov-list.cc (octave_list::assign): New function. |
|
2187 |
|
2188 * ov-typeinfo.h (octave_value_typeinfo::assignany_ops): |
|
2189 New data member. |
|
2190 * ov-typeinfo.cc (octave_value_info::register_assignany_op, |
|
2191 octave_value_info::do_register_assignany_op, |
|
2192 octave_value_info::lookup_assignany_op, |
|
2193 octave_value_info::do_lookup_assignany_op): |
|
2194 New functions. |
|
2195 * ov.cc (octave_value::try_assignment (octave_value::assign_op, |
|
2196 const octave_value_list&, const octave_value&)): If no assignment |
|
2197 operator for particular RHS type exists, try finding one for |
|
2198 generic octave_value as RHS type. |
|
2199 * ops.h (DEFASSIGNANYOP_FN): New macro. |
|
2200 |
|
2201 * ov-list.cc (Fsplice): New function. |
|
2202 * oct-obj.cc (octave_value_list::splice): New function. |
|
2203 |
|
2204 * ov.cc (Vresize_on_range_error): No longer static. |
|
2205 * ov.h (Vresize_on_range_error): Provide extern declaration. |
|
2206 |
|
2207 * oct-procbuf.cc (symbols_of_oct_procbuf): Don't declare static. |
|
2208 |
|
2209 * data.cc (Flength): New function. |
|
2210 * ov.h (octave_value::length): New virtual function. |
|
2211 * ov-base.cc (octave_base_value::length): New function. |
|
2212 (octave_base_value::rows, octave_base_value::columns): Move |
|
2213 definitions here, from ov-base.h. Don't return -1. Instead, |
|
2214 gripe about wrong argument type. |
|
2215 * ov-bool-mat.h (octave_bool_matrix::length): New function. |
|
2216 * ov-bool.h (octave_bool::length): Ditto. |
|
2217 * ov-ch-mat.h (octave_char_matrix::length): Ditto. |
|
2218 * ov-complex.h (octave_complex::length): Ditto. |
|
2219 * ov-cx-mat.h (octave_complex_matrix::length): Ditto. |
|
2220 * ov-list.h (octave_list::length): Ditto. |
|
2221 * ov-range.h (octave_range::length): Ditto. |
|
2222 * ov-re-mat.h (octave_matrix::length): Ditto. |
|
2223 * ov-scalar.h (octave_scalar::length): Ditto. |
|
2224 |
|
2225 Tue Oct 27 22:19:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2226 |
|
2227 * ov-list.cc (octave_list::print_raw): Handle case of empty list. |
|
2228 (octave_list::print_name_tag): Likewise. |
|
2229 |
|
2230 * octave.cc (intern_argv): Built-in variable argv is now a list of |
|
2231 strings instead of a string vector. |
|
2232 Always bind argv, making it an empty list if there are no args. |
|
2233 |
|
2234 Mon Oct 26 08:41:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2235 |
|
2236 * xdiv.cc (mx_leftdiv_conform): Explicitly declare args to be |
|
2237 passed as references to const objects. Fix explicit instantiation |
|
2238 requests to match. |
|
2239 (mx_div_conform): Likewise. |
|
2240 |
|
2241 * pt-unop.h (tree_prefix_expression): Reorder constructor args to |
|
2242 put those with default values last. |
|
2243 (tree_postfix_expression): Likewise. |
|
2244 * parse.y: Change all callers. |
|
2245 |
3192
|
2246 Fri Oct 23 12:07:32 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2247 |
3196
|
2248 * utils.cc (Ffile_in_loadpath): New function. |
|
2249 |
|
2250 * defaults.cc (Vload_path, Vdefault_load_path): Now static. |
|
2251 |
|
2252 * help.cc (simple_help): Use Vload_path_dir_path here instead of |
|
2253 trying to reconstruct it from Vload_path. |
|
2254 * fn-cache.cc (octave_fcn_file_name_cache::do_list): Likewise. |
|
2255 (octave_fcn_file_name_cache::update): Likewise. |
|
2256 |
|
2257 * defaults.cc (octave_loadpath): Construct Vload_path_dir_path |
|
2258 using Vdefault_load_path. |
|
2259 (set_default_path): Likewise. |
|
2260 |
|
2261 * defaults.h, defaults.cc (maybe_add_default_load_path): Delete. |
|
2262 |
3192
|
2263 * defaults.cc (Vdefault_load_path): New static variable. |
|
2264 (set_default_path): Set it. |
|
2265 (maybe_add_default_load_path): Use it. |
|
2266 (symbols_of_defaults): Add DEFCONST for DEFAULT_LOADPATH. |
|
2267 Thanks to Rafael Laboissiere <rafael@icp.inpg.fr>. |
|
2268 |
|
2269 * defaults.cc (set_default_path): If OCTAVE_PATH is set in the |
|
2270 environment, call maybe_add_default_load_path on it. |
|
2271 |
|
2272 Tue Oct 20 20:58:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2273 |
|
2274 * defaults.cc (maybe_add_default_load_path): If LOADPATH contains |
|
2275 an embedded "::", insert the default path there too. |
|
2276 |
3189
|
2277 Fri Oct 16 00:52:15 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2278 |
|
2279 * parse.y (in_matrix_or_assign_lhs): New subroutine for lexical |
|
2280 feedback. |
|
2281 (matrix): Use it. |
|
2282 (assign_lhs): Ditto. |
|
2283 * lex.h (lexical_feedback::looking_at_matrix_or_assign_lhs): New |
|
2284 data member. |
|
2285 * lex.l (handle_identifier): Use it to handle keywords like `cd' |
|
2286 as variables in contexts like [ab, cd] = foo (). |
|
2287 |
|
2288 * ov-str-mat.h |
|
2289 (octave_char_matrix_str::octave_char_matrix_str (char c)): |
|
2290 New constructor. |
|
2291 * ov-ch-mat.h (octave_char_matrix::octave_char_matrix (char c)): |
|
2292 New constructor. |
|
2293 * ov.cc (octave_value::octave_value (char c): New constructor. |
|
2294 |
|
2295 * pt-loop.cc (tree_simple_for_command::eval): Handle case of RHS |
|
2296 as string. |
|
2297 |
|
2298 Thu Oct 15 00:56:47 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2299 |
|
2300 * DLD-FUNCTIONS/rand.cc: Declare Fortran subroutines as returning |
|
2301 int, not int*. |
|
2302 |
|
2303 Wed Oct 14 23:51:31 1998 Georg Thimm <thimm@idiap.ch> |
|
2304 |
|
2305 * load-save.cc (Vcrash_dumps_octave_core): New static variable. |
|
2306 (save_user_variables): Only save variables if |
|
2307 Vcrash_dumps_octave_core is true. |
|
2308 (symbols_of_load_save): Add DEFVAR for it here. |
|
2309 (crash_dumps_octave_core): New function. |
|
2310 * octave.cc (maximum_braindamage): Bind crash_dumps_octave_core to |
|
2311 0.0 here. |
|
2312 |
|
2313 Tue Oct 13 22:05:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2314 |
|
2315 * input.cc (read_readline_init_file): New function. |
|
2316 |
|
2317 Thu Oct 8 13:47:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2318 |
|
2319 * oct-procbuf.h (octave_procbuf::wstatus): New data member. |
|
2320 Initialize in constructors. |
|
2321 (octave_procbuf::wait_status): New member function. |
|
2322 * oct-procbuf.cc (octave_procbuf::sys_close): Use class data |
|
2323 member wstatus, not local variable. |
|
2324 * procstream.cc (procstreambase::close): Don't call sys_close directly. |
|
2325 Get subprocess exit status by calling wait_status for our procbuf. |
|
2326 * pt-plot.cc (close_plot_stream): Send "quit" command to gnuplot |
|
2327 before deleting plot_stream. |
|
2328 |
|
2329 |
|
2330 Thu Oct 1 22:39:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2331 |
|
2332 * data.cc (Fis_complex): New function. |
|
2333 |
3185
|
2334 Fri Sep 25 11:50:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2335 |
|
2336 * load-save.cc (write_header): Rename from write_binary_header. |
|
2337 Also write header for Octave ASCII files. |
|
2338 |
|
2339 * load-save.cc (Fsave): Implement -append option. |
|
2340 |
|
2341 * defaults.cc (Frehash): New function. |
|
2342 |
|
2343 Fri Sep 25 11:50:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2344 |
|
2345 * help.cc (help_from_info): Improve error message in case that |
|
2346 info doesn't work. |
|
2347 |
3180
|
2348 Thu Sep 24 10:48:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2349 |
3185
|
2350 * Makefile.in (DLD_XSRC): Replace qzval.cc with qz.cc |
|
2351 |
|
2352 * DLD-FUNCTIONS/balance.cc: Update from A. S. Hodel |
|
2353 <scotte@eng.auburn.edu>. |
|
2354 |
|
2355 * DLD-FUNCTIONS/qz.cc: New file. |
|
2356 |
|
2357 * DLD-FUNCTIONS/qzval.cc: Delete. |
|
2358 |
3180
|
2359 * parse.y (plot_command1): Don't allow it to be empty. |
|
2360 (plot_command): Handle simple `PLOT' and `PLOT ranges' as special |
|
2361 cases here. |
|
2362 |
|
2363 Wed Sep 23 21:10:08 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2364 |
|
2365 * lex.l: Change <MATRIX>{SNLCMT}*\n{SNLCMT}* pattern |
|
2366 to <MATRIX>{S}*{COMMENT}{SNLCMT}* | <MATRIX>{S}*{NL}{SNLCMT}*. |
|
2367 |
|
2368 Fri Sep 4 10:50:00 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2369 |
|
2370 * file-io.cc (Ffwrite): Fix doc string. |
|
2371 |
|
2372 Wed Sep 2 16:22:23 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2373 |
|
2374 * input.cc (match_sans_spaces): Make it work. |
|
2375 |
|
2376 * toplev.cc (quit): Require nargout == 0. |
|
2377 |
|
2378 * input.cc (get_user_input): Only try matching "exit", "quit", and |
|
2379 "return" if debugging. |
|
2380 |
|
2381 Tue Sep 1 12:50:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2382 |
|
2383 * octave.cc: Use -H as single character equivalent of --no-history. |
|
2384 |
|
2385 Sat Aug 29 12:23:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2386 |
|
2387 * oct-obj.cc (octave_value_list::make_argv): If some values are |
|
2388 string vectors, insert all the elements, not just the first. |
|
2389 |
|
2390 Tue Aug 18 16:39:50 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2391 |
|
2392 * oct-stream.cc (octave_base_stream::do_gets): Accept last line of |
|
2393 file even if it doesn't end in a newline character. |
|
2394 |
|
2395 Tue Aug 18 16:25:49 1998 Mumit Khan <khan@xraylith.wisc.edu> |
|
2396 |
|
2397 * xdiv.cc (mx_leftdiv_conform, mx_div_conform): Instantiate correct |
|
2398 templates. |
|
2399 |
|
2400 Thu Jul 30 00:37:43 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2401 |
|
2402 * pt-loop.cc (tree_for_command::eval): Check for range first. |
|
2403 If error occurs when extracting matrix value, return early. |
|
2404 Don't bother to check for string type. |
|
2405 |
|
2406 * ov-ch-mat.h (octave_char_matrix::is_real_matrix): New function. |
|
2407 |
|
2408 Tue Jun 23 15:09:54 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2409 |
|
2410 * parse.y (clear_current_script_file_name): New function. |
|
2411 (parse_fcn_file): Bind current_script_file_name while script is |
|
2412 executing. Use unwind_protect to clear it once the script is |
|
2413 finished. |
|
2414 |
|
2415 * pt-plot.cc (Fgraw): New function. |
|
2416 |
3178
|
2417 Mon Jun 22 22:13:38 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2418 |
|
2419 * variables.cc (is_valid_function): Provide version that takes |
|
2420 function name as string. |
|
2421 |
|
2422 * parse.y (binary_expr): Fix thinko that resulted in incorrect |
|
2423 evaluation of -x^y. Thanks to Richard Allan Holcombe |
|
2424 <raholcom@unity.ncsu.edu>. |
|
2425 (feval): Don't attempt to copy nonexistent arg names. |
|
2426 |
|
2427 Mon Jun 22 21:35:50 1998 Richard Allan Holcombe <raholcom@unity.ncsu.edu> |
|
2428 |
|
2429 * xpow.cc (xpow): Improve efficiency for matrix^(scalar int) case. |
|
2430 |
|
2431 Thu Jun 4 12:42:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2432 |
|
2433 * ov-usr-fcn.cc (octave_user_function::octave_all_va_args): |
|
2434 If num_args_passed < num_named_args, create zero length list. |
|
2435 |
3176
|
2436 Thu May 14 16:23:15 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2437 |
|
2438 * DLD-FUNCTIONS/getrusage.cc: Include sys/types.h too. |
|
2439 |
|
2440 Mon May 11 00:38:45 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2441 |
|
2442 * pager.cc (Fdiary): Don't forget to set write_to_diary file if |
|
2443 just given a file name. |
|
2444 |
|
2445 * input.cc (octave_gets): Only send new line character to |
|
2446 octave_diary if current_input_line is empty or doesn't already end |
|
2447 with a new line character.. |
|
2448 Don't send input from function files or scripts to octave_diary. |
|
2449 |
3174
|
2450 Sun May 3 19:54:38 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2451 |
|
2452 * lex.l (reset_parser): Also call yyrestart if forced_interactive |
|
2453 is true, but not if input_from_startup_file is true. |
|
2454 |
|
2455 Tue Apr 28 14:06:20 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2456 |
|
2457 * oct-procbuf.cc (Vkluge_procbuf_delay): New static variable. |
|
2458 (kluge_procbuf_delay): New function. |
|
2459 (symbols_of_oct_procbuf): New function. |
|
2460 (octave_procbuf::open): Delay Vkluge_procbuf_delay microseconds |
|
2461 after forking. |
|
2462 |
|
2463 Thu Apr 23 15:41:08 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2464 |
|
2465 * defaults.cc (Vload_path_dir_path): New variable. |
|
2466 * utils.cc (file_in_path): Use it. |
|
2467 |
|
2468 * utils.cc (search_path_for_file): Undo previous change. |
|
2469 (file_in_path): Undo previous change. |
|
2470 * defaults.cc (loadpath): Undo previous change. Tilde expansion |
|
2471 is once again handled correctly by the code in |
|
2472 liboctave/pathsearch.cc. |
|
2473 |
|
2474 Mon Apr 20 21:50:34 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2475 |
|
2476 * data.cc (get_dimensions): Allow zeros ([], 3) to work, for |
|
2477 compatibility with Matlab. |
|
2478 |
|
2479 * dynamic-ld.cc [WITH_DL && ! HAVE_DLFCN_H]: Add declarations for |
|
2480 dlopen, dlerror, dlsym, and dlclose. |
|
2481 |
|
2482 * octave.gperf: Handle __FILE__ and __LINE__. |
|
2483 * lex.l (is_keyword): Likewise. |
|
2484 * Makefile.in (oct-gperf.h): Pass -D option to gperf. |
|
2485 Postprocess output of gperf to convert name of static variable |
|
2486 from lookup to gperf_lookup, to avoid conflict with our function |
|
2487 of the same name defined in variables.cc. |
|
2488 |
3168
|
2489 Sat Apr 18 20:17:10 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2490 |
|
2491 * help.cc (USE_GNU_INFO): Delete uses of this macro. |
|
2492 |
3167
|
2493 Thu Apr 16 01:00:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2494 |
|
2495 * dynamic-ld.cc: Only include dlfcn.h if HAVE_DLFCN_H. |
|
2496 |
3165
|
2497 Wed Apr 15 01:03:05 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2498 |
|
2499 * input.cc (Vlast_prompt_time): New global variable. |
|
2500 (octave_gets): Set it. |
3166
|
2501 * ov-fcn.h (octave_function::time_checked): New virtual function |
|
2502 (octave_function::mark_fcn_file_up_to_date): Ditto. |
3165
|
2503 * ov-usr-fcn.h (octave_user_function::time_checked): New function. |
|
2504 (octave_user_function::mark_fcn_file_up_to_date): Ditto. |
|
2505 (octave_user_function::t_checked): New data member. |
|
2506 * variables.cc (symbol_out_of_date): Only check file time stamp if |
|
2507 a prompt has been printed since the last time check. |
|
2508 |
|
2509 * pt-plot.h, pt-plot.cc (subplot_axes): New class. |
|
2510 (subplot): Handle axes. |
|
2511 (Vgnuplot_command_axes): New static variable. |
|
2512 (gnuplot_command_axes): New function. |
|
2513 (symbols_of_pt_plot): DEFVAR gnuplot_command_axes. |
|
2514 * pt-walk.h (tree_walker::visit_subplot_axes): New virtual function. |
|
2515 * parse.y (plot_options): Handle axes. |
|
2516 * lex.l (plot_axes_token): New function. |
|
2517 (is_keyword): Use it. |
|
2518 (is_plot_keyword): Recognize "axes" and "axis". |
|
2519 * lex.h (class lexical_feedback): New field, in_plot_axes. |
|
2520 (lexical_feedback::init): Reset it. |
|
2521 |
|
2522 Tue Apr 14 23:32:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2523 |
|
2524 * parse.y (parse_fcn_file): New arg, force_script. Change callers. |
|
2525 |
3164
|
2526 Fri Apr 10 11:01:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2527 |
|
2528 * help.cc (type): Also print values of variables. |
|
2529 |
3162
|
2530 Wed Apr 8 01:00:58 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2531 |
3164
|
2532 * pr-output.cc (set_format): Set scale to 1.0 if all elements are |
|
2533 int or inf or nan. |
|
2534 |
3162
|
2535 * parse.y (Vwarn_future_time_stamp): New variable. |
|
2536 (symbols_of_parse): Add DEFVAR for it. |
|
2537 (warn_future_time_stamp): New function. |
|
2538 (frob_function_def): Maybe warn about files with future time stamps. |
|
2539 |
|
2540 Thu Apr 2 20:43:45 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2541 |
|
2542 * pt-arg-list.cc (tree_argument_list::convert_to_const_vector): In |
|
2543 error messages, print element numbers starting with 1, not 0. |
|
2544 |
|
2545 Sat Mar 28 15:25:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2546 |
|
2547 * toplev.cc (clean_up_for_exit): New function. |
|
2548 (clean_up_and_exit): Use it. |
|
2549 * sighandlers.cc (my_friendly_exit): Call it instead of |
|
2550 clean_up_and_exit, then do default action for signal. |
|
2551 |
|
2552 * sighandlers.cc (octave_new_handler): Call my_friendly_exit with |
|
2553 signal set to SIGABRT if it is defined, or -1 otherwise. |
|
2554 |
|
2555 * error.cc (verror): Fix thinko in attempt to skip `error: ' tag |
|
2556 when buffering error messages. |
|
2557 * pt-except.cc (tree_try_catch::eval): Reset buffer_error_messages |
|
2558 here if just discarding unwind_protect frame. |
|
2559 |
|
2560 Wed Mar 18 12:35:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2561 |
|
2562 * xpow.cc (elem_xpow): For real-scalar .^ matrix case, result is |
|
2563 complex only if real-scalar is negative and matrix has some |
|
2564 non-integer values. |
|
2565 |
|
2566 Tue Mar 17 17:47:50 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2567 |
|
2568 * pt-plot.cc (Vgnuplot_command_plot, Vgnuplot_command_replot, |
|
2569 Vgnuplot_command_splot, Vgnuplot_command_using, |
|
2570 Vgnuplot_command_with, Vgnuplot_command_title, |
|
2571 Vgnuplot_command_end): New static variables. |
|
2572 (symbols_of_pt_plot): DEFVAR them. |
|
2573 (gnuplot_command_plot, gnuplot_command_replot, |
|
2574 gnuplot_command_splot, gnuplot_command_using, |
|
2575 gnuplot_command_with, gnuplot_command_title, |
|
2576 gnuplot_command_end): New functions. |
|
2577 (open_plot_stream, send_to_plot_stream, tree_plot_command::eval, |
|
2578 subplot_using::print, subplot_style::print, subplot::print, |
|
2579 do_external_plotter_cd, Fgset, Fgshow): Use them instead of the |
|
2580 GPLOT_CMD_PLOT, GPLOT_CMD_REPLOT, GPLOT_CMD_SPLOT, |
|
2581 GPLOT_CMD_USING, GPLOT_CMD_WITH, GPLOT_CMD_TITLE, and |
|
2582 GPLOT_CMD_END macros. |
|
2583 |
3160
|
2584 Fri Feb 27 12:25:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2585 |
|
2586 * help.cc (additional_help_message): Fix www address. |
|
2587 |
|
2588 Tue Feb 24 00:42:59 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2589 |
|
2590 * help.cc (simple_help): Put additional help message first. |
|
2591 (additional_help_message): Add information about web site and |
|
2592 mailing list. |
|
2593 |
3156
|
2594 Fri Feb 20 00:41:06 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2595 |
|
2596 * pt-plot.cc (GPLOT_CMD_REPLOT): Clear before replot. |
|
2597 |
|
2598 * Makefile.in: Better handling of lib flags for linking. |
|
2599 |
|
2600 Thu Feb 19 21:14:30 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2601 |
|
2602 * pt-decl.cc (Vinitialize_global_values): New static variable. |
|
2603 (initialize_global_variables): New function. |
|
2604 (symbols_of_pt_decl): New function. |
|
2605 DEFVAR Vinitialize_global_values and initialize_global_variables. |
|
2606 (tree_global_command::do_init): If initialize_global_variables is |
|
2607 not true and the variable doesn't have an explicit initializer, don't |
|
2608 initialize it. If we are giving it a default value, use the value |
|
2609 of the variable defualt_global_variable_value. |
|
2610 * octave.cc (maximum_braindamage): Set default_global_variable_value |
|
2611 and initialize_global_variables to Matlab-compatible values. |
|
2612 |
|
2613 Wed Feb 18 04:35:31 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2614 |
|
2615 * DLD-FUNCTIONS/besselj.cc: Rename from bessel.cc. |
|
2616 * Makefile.in (DLD_XSRC): Likewise. |
|
2617 |
|
2618 * syscalls.cc (Fvfork): Delete. |
|
2619 |
|
2620 * oct-procbuf.cc: Just use fork. |
|
2621 |
|
2622 * parse.y (feval): Provide version that takes function name |
|
2623 separate from other args. |
|
2624 * parse.h: Declare it. |
|
2625 |
|
2626 * oct-procbuf.cc (octave_procbuf::open): Move declaration of |
|
2627 child_std_end outside of child scope and declare volatile. |
|
2628 |
|
2629 Mon Feb 16 15:04:28 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2630 |
|
2631 * parse.y: Include cstdio, for SEEK_SET. |
|
2632 |
3153
|
2633 Thu Feb 12 22:07:00 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2634 |
|
2635 * system.c: New file. |
|
2636 * Makefile.in (SOURCES): Add it to the list. |
|
2637 |
3148
|
2638 Fri Feb 6 01:23:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2639 |
|
2640 * oct-stream.cc (octave_base_stream::file_number): Rename from fileno. |
|
2641 Change all uses. |
|
2642 |
|
2643 * fsolve.cc (fsolve_option_table): Add missing & to function names. |
|
2644 |
3145
|
2645 Thu Feb 5 02:27:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2646 |
3147
|
2647 * dirfns.cc (Fls): If first attempt at reading process output |
|
2648 fails, sleep once and try again. |
|
2649 * toplev.cc (run_command_and_return_output): Likewise. |
|
2650 |
|
2651 * oct-procbuf.cc (octave_procbuf::open): Use vfork if it is available. |
|
2652 |
|
2653 * syscalls.cc (Fvfork): New function. |
|
2654 |
3145
|
2655 * ov-bool-mat.cc: Only declare assign function if |
|
2656 CXX_NEW_FRIEND_TEMPLATE_DECL is not defined. |
|
2657 |
|
2658 * ov-base.h, ov-bool-mat.h, ov-bool.h, ov-ch-mat.h, ov-complex.h, |
|
2659 ov-cx-mat.h, ov-range.h, ov-re-mat.h, ov-scalar.h: Handle default |
|
2660 args for *_value functions consistently. |
|
2661 |
|
2662 * symtab.cc (maybe_list_cmp_fcn): Declare args as void*, not |
|
2663 void**, then use X_CAST. |
|
2664 |
|
2665 * OPERATORS/op-s-cm.cc: Include mx-cm-s.h. |
|
2666 |
|
2667 * defun-int.h: Include ov-builtin.h, ov-mapper.h, and symtab.h. |
|
2668 (install_builtin_mapper, install_builtin_function, |
|
2669 install_builtin_variable) Use specific types rather than void * in |
|
2670 declaration. |
|
2671 * defun.cc (install_builtin_mapper, install_builtin_function, |
|
2672 install_builtin_variable): Likewise. Eliminate casts. |
|
2673 |
|
2674 * load-save.cc (read_binary_data, read_mat_file_header, |
|
2675 save_binary_data): Use X_CAST, not static_cast. |
|
2676 * unwind-prot.h (unwind_protect::save_ptr): Likewise. |
|
2677 * Map.cc (goodCHptr, index_to_CHptr, CHptr_to_index): Likewise. |
|
2678 * dynamic-ld.cc (octave_dlopen_dynamic_loder::resolve_reference): |
|
2679 Likewise. |
|
2680 |
|
2681 * pt-mat.cc (tm_const::operator bool ()): |
|
2682 (tm_row_const::operator bool ()): Likewise. |
|
2683 * oct-stream.cc (printf_value_cache::operator bool ()): Likewise. |
|
2684 (scanf_format_list::operator bool ()): Likewise. |
|
2685 (printf_format_list::operator bool ()): Likewise. |
|
2686 (octave_stream::operator bool ()): Likewise. |
|
2687 |
|
2688 Wed Feb 4 13:08:29 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2689 |
|
2690 * DLD-FUNCTIONS/minmax.cc: Include cmath, not oct-math.h. |
|
2691 |
|
2692 * syscalls.cc (Fdup2): Convert stream to actual system file id. |
|
2693 |
|
2694 * oct-stream.cc (octave_base_stream::fileno, octave_stream::fileno): |
|
2695 New functions. |
|
2696 |
3141
|
2697 Tue Feb 3 00:24:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2698 |
|
2699 * defaults.cc (exec_path): Append Vbin_dir to std_path. |
|
2700 |
|
2701 * octave.cc (initialize_pathsearch): Set TEXMFDBS, not TEXMF. |
|
2702 Look for OCTAVE_DB_PATH in environment. |
|
2703 Simplify using Vdata_dir and Vlibexec_dir. |
|
2704 |
|
2705 * defaults.h.in (Vdata_dir, Vlibexecdir): Declare new vars. |
|
2706 defaults.cc: Define them. |
|
2707 (set_default_data_dir, set_default_libexecdir): New functions. |
|
2708 (install_defaults): Call them. |
|
2709 |
|
2710 * defaults.h.in (OCTAVE_LIBEXECDIR): Define. |
|
2711 |
|
2712 Mon Feb 2 02:43:16 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2713 |
|
2714 * Makefile.in (install, uninstall): Use $(octlibdir), not $(libdir). |
|
2715 Use mk-libdir-link. |
|
2716 |
|
2717 * defaults.h.in (OCTAVE_OCTLIBDIR): Substitute value. |
|
2718 (Vlib_dir): Delete declaration. |
|
2719 * defaults.cc (Vlib_dir): Delete. |
|
2720 (set_default_lib_dir): Delete. |
|
2721 (install_defaults): Don't call set_default_lib_dir. |
|
2722 (set_default_info_prog): If oct_info_prog is empty, set default to |
|
2723 "info" -- we expect it to be somewhere in the user's path. |
|
2724 |
|
2725 * defun.h (DEFCONST, DEFCONSTX): Eliminate inst_as_fcn and chg_fcn |
|
2726 args. Always pass true for inst_as_fcn and 0 for chg_fcn to |
|
2727 DEFVAR when creating built-in values like `e' or `stderr' that can |
|
2728 be redefined. Change all uses. |
|
2729 |
|
2730 * help.cc (Ftype): Handle script files too. |
|
2731 (Fwhich): Likewise. |
|
2732 |
3136
|
2733 Sat Jan 31 00:00:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2734 |
|
2735 * ov-ch-mat.cc (octave_char_matrix::is_true): Make it work. |
|
2736 * ov-str-mat.h, ov-str-mat.cc (octave_char_matrix_str::is_true): |
|
2737 Delete. |
|
2738 |
|
2739 * load-save.cc (read_ascii_data): Allow strings of length 0. |
|
2740 If we don't find data on the first call, fail with error message. |
|
2741 (do_load): Pass count of items read to read_ascii_data. |
|
2742 Allow `load foo xyz' to work when foo contains only numbers. |
|
2743 |
|
2744 Fri Jan 30 23:46:42 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2745 |
|
2746 * ov-str-mat.h (octave_char_matrix_str::all): Delete. |
|
2747 (octave_char_matrix_str::any): Delete. |
|
2748 * ov-ch-mat.h (octave_char_matrix::all, octave_char_matrix::any): |
|
2749 Call charMatrix::all, charMatrix::any. |
|
2750 |
|
2751 Thu Jan 29 16:25:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2752 |
|
2753 * load-save.cc (read_mat_binary_data): Handle third digit of MOPT |
|
2754 as flag indicating row or column major ordering. |
|
2755 |
3131
|
2756 Wed Jan 28 00:18:17 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2757 |
|
2758 * DLD-FUNCTIONS/dassl.cc (lsode_option_table): |
|
2759 Add missing & to function names. |
|
2760 * DLD-FUNCTIONS/lsode.cc (lsode_option_table): Likewise. |
|
2761 * DLD-FUNCTIONS/quad.cc (quad_option_table): Likewise. |
|
2762 |
|
2763 * Makefile.in (oct-gperf.h): Add -G option to gperf. |
|
2764 |
|
2765 * load-save.cc (get_save_type): Add `UL' and `L' suffixes to large |
|
2766 constant values. For LS_INT, use <= and >= for comparison. |
|
2767 |
|
2768 Mon Jan 26 13:17:59 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2769 |
|
2770 * ov-usr-fcn.cc (Vmax_recursion_depth): New static variable. |
|
2771 (max_recursion_depth): New fucnction |
|
2772 (symbols_of_ov_usr_fcn): DEFVAR max_recursion_depth. |
|
2773 (octave_user_function::do_index_op): Check Vmax_recursion_depth. |
|
2774 |
3130
|
2775 Thu Jan 22 13:45:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2776 |
|
2777 * dynamic-ld.cc (make_dynamic_loader): Fix typo. |
|
2778 |
|
2779 Tue Jan 20 17:02:19 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2780 |
|
2781 * variables.cc (Fexist): If local symbol is undefined, check |
|
2782 global table. |
|
2783 |
|
2784 * pr-output.cc (pr_max_internal): Initial value for result is |
|
2785 -DBL_MAX, not DBL_MIN. |
|
2786 |
3125
|
2787 Thu Jan 8 11:54:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2788 |
|
2789 * xpow.cc (elem_xpow): If second arg of pow is complex, make sure |
|
2790 first arg is also complex. |
|
2791 |
|
2792 * symtab.cc (symbol_table::rename): Properly insert new item at |
|
2793 the front of the list to avoid losing the rest of the items. |
|
2794 |
|
2795 Thu Dec 11 23:30:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2796 |
|
2797 * variables.cc (Fclear): Increment index to skip -x arg. |
|
2798 |
3124
|
2799 Tue Dec 9 02:45:35 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2800 |
|
2801 * Makefile.in (INCLUDES): Don't forget Pix.h. |
|
2802 |
|
2803 * BaseSLList.cc: Don't include nonstandard libg++ header files. |
|
2804 |
3119
|
2805 Sun Nov 30 14:58:56 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2806 |
3124
|
2807 * pr-output.cc: Include cmath, not oct-math. |
|
2808 * sysdep.cc: Likewise. |
|
2809 |
3119
|
2810 * DLD-FUNCTIONS/bessel.cc: New file. |
|
2811 * Makefile.in (DLD_XSRC): Add it to the list. |
|
2812 |
3113
|
2813 Thu Nov 27 23:28:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2814 |
|
2815 * lex.l (handle_string): Constructor for string class takes |
|
2816 (size_t, char) args, not (char, size_t). |
|
2817 |
3111
|
2818 Wed Nov 26 00:39:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2819 |
|
2820 * Makefile.in (OCTAVE_LIBS): Include $(SPECIAL_MATH_LIB) just |
|
2821 ahead of -lcruft. |
|
2822 |
3110
|
2823 Thu Nov 20 15:16:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2824 |
|
2825 * octave.cc (maximum_braindamage): Bind implicit_num_to_str_ok to 1. |
|
2826 * pt-mat.cc (Vimplicit_num_to_str_ok): New static variable. |
|
2827 (implicit_num_to_str_ok): New function. |
|
2828 (symbols_of_pt_mat): DEFVAR implicit_num_to_str_ok. |
|
2829 (tm_row_const::some_str): New data member. |
|
2830 (tm_row_const::some_strings_p): New function. |
|
2831 (tm_row_const::init): Set some_str. |
|
2832 (tm_const::some_str): New data member. |
|
2833 (tm_const::some_strings_p): New function. |
|
2834 (tm_const::init): Set some_str. |
|
2835 (tree_matrix::eval): If Vimplicit_num_to_str_ok is true and some |
|
2836 of the elements are strings, force a string conversion before |
|
2837 returning. |
|
2838 |
|
2839 * parse.y (fold, finish_colon_expression, finish_matrix): |
|
2840 If an error occurs, return the original expression. |
|
2841 Use unwind_protect to restore error_state. |
|
2842 |
|
2843 * ov-ch-mat.h (octave_char_matrix::convert_to_str): Result is |
|
2844 char_matrix_str, not just char_matrix. |
|
2845 |
3107
|
2846 Wed Nov 19 02:05:40 1997 Mumit Khan <khan@dhaka.xraylith.wisc.edu> |
|
2847 |
|
2848 * DLD-FUNCTIONS/filter.cc: Don't include extern template decls if |
3109
|
2849 CXX_NEW_FRIEND_TEMPLATE_DECL is defined. |
3107
|
2850 * ov-cx-mat.cc: Likewise. |
|
2851 * ov-re-mat.cc: Likewise. |
|
2852 * ov-str-mat.cc: Likewise. |
|
2853 |
|
2854 * ov-cx-mat.h (octave_complex_matrix::decrement, |
|
2855 octave_complex_matrix): Use explicit Complex constructor. |
|
2856 |
|
2857 Wed Nov 19 00:08:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2858 |
|
2859 * pt-decl.cc (tree_global_command::do_init): Initialize global |
|
2860 values to `[]'. Only perform explicit initialization once. |
|
2861 |
3103
|
2862 Tue Nov 18 04:27:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2863 |
3105
|
2864 * pr-output.cc (Vfixed_point_format): New variable. |
|
2865 (fixed_point_format): New fucntion. |
|
2866 (symbols_of_pr_output): Add DEFVAR for fixed_point_format. |
|
2867 (set_real_matrix_format): Handle fixed point format |
|
2868 (set_complex_matrix_format): Handle fixed point format |
|
2869 (set_format): New arg, scale in Matrix, ComplexMatrix, Range versions. |
|
2870 (pr_scale_header): New function. |
|
2871 (octave_print_internal): Handle fixed point format in Matrix, |
|
2872 ComplexMatrix, and Range versions. |
|
2873 * octave.cc (maximum_braindamage): Set fixed_point_format to 1.0. |
|
2874 |
3103
|
2875 * utils.cc (do_string_escapes): Move here, from lex.l. |
|
2876 Arg is now const string& instead of char*. |
|
2877 Return new string object instead of modifying arg in place. |
|
2878 (Fdo_string_escapes): New function. |
|
2879 * lex.l (handle_string): Use new version of do_string_escapes. |
3105
|
2880 |
|
2881 * lex.l (Vbackslash_escapes): Delete. |
|
2882 (backslash_escapes): Delete. |
|
2883 (do_string_escapes): Undo previous change. |
|
2884 (eat_whitespace, eat_continuation): Undo previous change. |
|
2885 (handle_string): Undo previous change. |
|
2886 (symbols_of_lex): Undo previous change. |
|
2887 * octave.cc (maximum_braindamage): Undo previous change. |
3103
|
2888 |
3096
|
2889 Fri Nov 14 01:53:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2890 |
3100
|
2891 * parse.y (eval_string (const string&, bool, int&, int)): No |
|
2892 longer static. |
|
2893 * parse.h: Provide declaration. |
|
2894 * input.cc (get_user_input (const octave_value_list&, bool, int)): |
|
2895 New arg, nargout. Pass it to eval_string. |
|
2896 (keyboard): Pass nargout = 0 to get_user_input. |
|
2897 (input): Pass nargout to get_user_input. |
|
2898 |
3098
|
2899 * input.cc (get_user_input (const octave_value_list&, bool)): |
3100
|
2900 Return octave_value_list() if user enters `quit', `exit', or `return'. |
3098
|
2901 If debugging, let eval_string handle the printing chores and |
|
2902 reset error_state before asking for more input. |
|
2903 |
|
2904 * input.cc (Fkeyboard): Unconditionally turn on history here. |
|
2905 |
3096
|
2906 * lex.l (have_continuation, have_ellipsis_continuation): Declare |
|
2907 arg as bool, not int. Change callers. |
|
2908 |
|
2909 * lex.l (Vbackslash_escapes): New static variable. |
|
2910 (backslash_escapes): New function. |
|
2911 (do_string_escapes): Return immediately if ! Vbackslash_escapes. |
|
2912 (eat_whitespace, eat_continuation): Only call have_continuation if |
|
2913 Vbackslash_escapes. |
|
2914 (handle_string): Backslash is only special if Vbackslash_escapes. |
|
2915 (symbols_of_lex): Add DEFVAR for backslash_escapes. |
|
2916 * octave.cc (maximum_braindamage): Set backslash_escapes to 0. |
|
2917 |
3095
|
2918 Thu Nov 13 16:20:40 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2919 |
3096
|
2920 * variables.cc (Fexist): Also return 2 if NAME is a regular file |
|
2921 somewhere in the LOADPATH. |
|
2922 |
3095
|
2923 * data.cc (sumsq): Fix doc string. |
|
2924 |
|
2925 * parse.y (Fsource): Call parse_fcn_file, not parse_and_execute. |
|
2926 |
3092
|
2927 Tue Oct 7 16:51:01 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2928 |
|
2929 * defun-int.h (DEFINE_FUN_INSTALLER_FUN): Set installed to true |
|
2930 after installing the function. |
|
2931 |
3088
|
2932 Thu Sep 25 10:17:26 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2933 |
|
2934 * DLD-FUNCTIONS/filter.cc (Ffilter): Return second output value |
|
2935 even when called with only 3 arguments. |
|
2936 |
3086
|
2937 Mon Sep 22 16:44:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2938 |
|
2939 * DLD-FUNCTIONS/rand.cc (do_rand): Print error if first of two |
|
2940 args is a string but doesn't match "seed". |
3088
|
2941 (Frand, Frandn): Fix doc string. |
3086
|
2942 |
3081
|
2943 Mon Aug 25 10:42:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2944 |
|
2945 * input.cc (get_user_input): Return an empty string if the user |
|
2946 just types RET. |
|
2947 |
3079
|
2948 Thu Jul 31 22:59:04 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2949 |
|
2950 * lex.l <TEXT_FCN>: Ensure that we handle words that begin with |
|
2951 single or double quotes as strings. |
|
2952 |
3074
|
2953 Thu Jul 17 13:06:48 1997 Klaus Gebhardt <gebhardt@crunch.ikp.physik.th-darmstadt.de> |
|
2954 |
|
2955 * DLD-FUNCTIONS/rand.cc (Frand): Use F77_XFCN to call getsd, |
|
2956 setsd, setall, setcgn, dgenunf, and dgennor since they can call |
|
2957 XSTOPX. |
|
2958 |
3072
|
2959 Mon Jul 14 12:54:23 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2960 |
|
2961 * dynamic-ld.cc (octave_dynamic_loader::load_fcn_from_dot_oct_file): |
|
2962 If first attempt to load function fails, prepend and underscore |
|
2963 and try again. |
|
2964 |
|
2965 * Makefile.in (install-inc): If defaults.h, oct-conf.h, or |
|
2966 oct-gperf.h don't exist in the current directory, look in $(srcdir). |
|
2967 |
3068
|
2968 Mon Jul 7 21:14:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2969 |
|
2970 * DLD-FUNCTIONS/qr.cc (Fqr): Correctly handle nargout == 0. |
|
2971 |
3067
|
2972 Wed Jul 2 16:47:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2973 |
|
2974 * matherr.c: New file. Move matherr function here. |
|
2975 * sysdep.cc: From here. |
|
2976 * Makefile.in (DIST_SRC): Add matherr.c to the list. |
|
2977 |
|
2978 * error.cc (handle_message): Avoid bug in g++ snapshot. |
|
2979 |
3065
|
2980 Thu Jun 26 22:04:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2981 |
|
2982 * utils.cc (file_in_path): Add default load path to PATH arg if |
|
2983 it begins or ends with a colon. |
|
2984 |
3060
|
2985 Wed Jun 25 13:31:06 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2986 |
|
2987 * oct-lvalue.h (octave_lvalue::struct_elt_ref): Ensure val is unique. |
|
2988 |
|
2989 Fri Jun 20 12:33:35 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2990 |
|
2991 * toplev.cc (cmd_death_handler): New function. |
|
2992 (run_command_and_return_output): Insert pid of command in |
|
2993 octave_child_list along with pointer to cmd_death_handler so we |
|
2994 can get the exit status without having to block SIGCHLD. |
|
2995 (cleanup_iprocstream): Remove pid of command from octave_child_list. |
|
2996 |
3053
|
2997 Sun Jun 15 16:11:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2998 |
3054
|
2999 * OPERATORS/op-cs-s.cc (ldiv): Doh, v1 is complex, v2 is real. |
|
3000 |
3053
|
3001 * Makefile.in (DISTFILES): Add mkops to the list. |
|
3002 (dist): Correctly link files in DLD-FUNCTIONS, OPERATORS, and |
|
3003 TEMPLATE-INST subdirectories. |
|
3004 |
3040
|
3005 Fri Jun 6 04:30:57 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3006 |
3042
|
3007 * DLD-FUNCTIONS/npsol.cc, DLD-FUNCTIONS/qpsol.cc, |
|
3008 DLD-FUNCTIONS/fsqp.cc: Delete. |
|
3009 * Makefile.in (DLD_XSRC): Remove them from the list. |
|
3010 |
3040
|
3011 * utils.cc (search_path_for_file): New arg, do_tilde_expansion. |
|
3012 If TRUE, perform tilde expansion on path before searching. |
|
3013 (file_in_path): Call search_path_for_file with do_tilde_expansion |
|
3014 set to false, since we've already performed tilde expansion on the |
|
3015 load path. |
|
3016 |
|
3017 * defaults.cc (loadpath): Perform tilde expansion here. |
|
3018 |
3029
|
3019 Thu Jun 5 01:42:39 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3020 |
3034
|
3021 * Makefile.in: Make building of static library optional. |
3036
|
3022 (liboctave.$(SHLEXT_VER)): Add $(SONAME_FLAGS) to command. |
3034
|
3023 |
3033
|
3024 * dynamic-ld.cc (octave_shl_load_dynamic_loader::resolve_reference): |
|
3025 Call shl_findsym with type set to TYPE_UNDEFINED. |
|
3026 |
3029
|
3027 * Makefile.in (stamp-picdir): Delete. |
|
3028 (pic): New target. Don't worry so much about creating pic |
|
3029 directory only when it is really needed. |
|
3030 (stamp-interp): Delete. |
|
3031 (libraries): New target. Depend on shared library directly. |
|
3032 |
3024
|
3033 Wed Jun 4 00:09:42 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3034 |
|
3035 * octave.cc (main): Call dir_path::set_program_name here. |
|
3036 |
3021
|
3037 Tue Jun 3 16:47:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3038 |
3022
|
3039 * variables.cc (symbol_out_of_date): Make it work again. |
|
3040 |
3021
|
3041 * parse.y (parse_and_execute): Move here from toplev.cc |
|
3042 (default_eval_print_flag): Likewise. |
|
3043 (safe_fclose): Likewise. |
|
3044 (eval_string): Likewise. |
|
3045 (Fsource): Likewise. |
|
3046 (Ffeval): Likewise. |
|
3047 (feval): Likewise. |
|
3048 (Feval): Likewise. |
|
3049 (symbols_of_parse): Define default_eval_print_flag here instead of |
|
3050 in varaibles.cc. |
|
3051 (looks_like_octave_copyright): Move here from variables.cc |
|
3052 (gobble_leading_whitespace): Likeiwse. |
|
3053 (is_function_file): Likewise. |
|
3054 (restore_input_stream): Likewise. |
|
3055 (parse_fcn_file): Likewise. |
|
3056 (load_fcn_from_file): Likewise. |
|
3057 (get_help_from_file): Likewise. |
|
3058 |
|
3059 * toplev.cc (syms_of_toplev): Define argv, program_name, and |
|
3060 program_invocation_name here instead of in variables.cc. |
|
3061 |
|
3062 * parse.h (line_editing): Move here from toplev.h. Now bool, not int. |
|
3063 (reading_startup_message_printed) Likewise. |
|
3064 (input_from_startup_file): Likewise. |
|
3065 (input_from_command_line_file): Likewise. |
|
3066 |
|
3067 * load-save.cc: Use bool instead of int where appropriate. |
|
3068 |
|
3069 * input.h (enum echo_state): Move here from variables.h. |
|
3070 (Vecho_executing_commands): Likewise. Now bool, not int. |
|
3071 * input.cc (echo_executing_commands): Move here from variables.cc. |
|
3072 (symbols_of_input): Define echo_executing_commands here instead of |
|
3073 in variables.cc. |
|
3074 |
|
3075 * octave.cc (program_invocation_name): Don't define. |
|
3076 (intern_argv): Don't set program_invocation_name here. |
|
3077 (main): Call octave_env::set_program_name here, not in intern_argv. |
|
3078 |
|
3079 * toplev.cc (quitting_gracefully): Move here from octave.h and |
|
3080 make static bool instead of extern int. |
|
3081 |
|
3082 * error.cc (bind_global_error_variable, clear_global_error_variable): |
|
3083 Move here from variables.cc. |
|
3084 (symbols_of_error): Define error_text here instead of in variables.cc. |
|
3085 |
|
3086 * pager.cc (write_to_diary_file): Now bool, not int. |
|
3087 (really_flush_to_pager): Likewise. |
|
3088 (flushing_to_pager): Likewise. |
|
3089 * sighandlers.h (can_interrupt): Likewise. |
|
3090 * error.h (buffer_error_messages): Likewise. |
|
3091 * oct-hist.h (input_from_tmp_history_file, Vsaving_history): Likewise. |
|
3092 * input.h (forced_interactive): Likewise. |
|
3093 (get_input_from_eval_string): Likeiwse. |
|
3094 (reading_script_file): Likeiwse. |
|
3095 (reading_fcn_file): Likeiwse. |
|
3096 (interactive): Likewise. |
|
3097 |
|
3098 * unwind-prot.cc (saved_variable::saved_variable (bool *, bool)): |
|
3099 Set type_tag to boolean, not int. |
|
3100 |
3016
|
3101 Mon Jun 2 00:40:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3102 |
|
3103 * variables.h (Octave_builtin_fcn): Delete typedef. |
|
3104 |
|
3105 * help.cc (make_name_list): Move here from variables.cc. |
|
3106 (keyword_help, names): Now static. |
|
3107 (struct help_list): Move declaration here from help.h. |
|
3108 |
|
3109 * oct-hist.cc (Vhistory_file, Vhistory_size, Vsaving_history): |
|
3110 Move here from variables.cc. |
|
3111 (symbols_of_oct_hist): New function. |
|
3112 |
|
3113 * version.h: Protect against multiple inclusion. |
|
3114 |
|
3115 * defun.cc (check_version): New function. |
|
3116 * defun-int.h (DEFINE_FUN_INSTALLER_FUN): Use it. |
|
3117 |
|
3118 * help.h, help.cc (additional_help_message): Now extern. |
|
3119 (operator_help): Now static. |
|
3120 |
|
3121 * defun.cc (print_usage): Move here from help.cc |
|
3122 * DLD-FUNCTIONS/*.cc, data.cc, dirfns.cc, file-io.cc, input.cc, |
|
3123 load-save.cc, octave.cc, ov-list.cc, ov-typeinfo.cc, |
|
3124 ov-usr-fcn.cc, pager.cc, pr-output.cc, pt-plot.cc, strfns.cc, |
|
3125 syscalls.cc, sysdep.cc, utils.cc, toplev.cc: |
|
3126 Don't include help.h. |
|
3127 |
|
3128 * TEMPLATE-INST/Array-sym.cc: New file. |
|
3129 |
|
3130 * load-save.cc (do_load): Don't use ostream::form. |
|
3131 * pr-output.cc: Likewise, at least where it is easy to do so. |
|
3132 * oct-stream.cc: Ditto. |
|
3133 |
|
3134 * symtab.h (symbol_record::symbol_def::rows): New function. |
|
3135 (symbol_record::symbol_def::columns): Ditto. |
|
3136 (symbol_record::symbol_def::type_name): Ditto. |
|
3137 (symbol_record::rows): Ditto |
|
3138 (symbol_record::columns): Ditto |
|
3139 (symbol_record::type_name): Ditto |
|
3140 |
|
3141 * symtab.h, symtab.cc (symbol_record::hides_fcn): New function. |
|
3142 (symbol_record::hides_builtin): Ditto. |
|
3143 (symbol_record::print_symbol_info_line): Ditto. |
|
3144 (symbol_table::long_list): Delete. |
|
3145 (symbol_table::symbol_list): New function. |
|
3146 (symbol_table::maybe_list): Delete argc arg. |
|
3147 (symbol_table::name_list): Rename from symbol_table::list. |
|
3148 Change all callers. |
|
3149 |
|
3150 * symtab.h, symtab.cc (class symbol_record_info): Delete. |
|
3151 |
|
3152 * symtab.cc (matches_patterns): Use vector form of glob_match. |
|
3153 |
|
3154 Sun Jun 1 14:04:26 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3155 |
|
3156 * pt-check.h, pt-check.cc: New files, for semantic checking of |
|
3157 parse trees. |
|
3158 |
|
3159 * symtab.h (class symbol_def): Now nested in symbol_record class. |
|
3160 (enum TYPE): Move from symbol_def to symbol record class. Change |
|
3161 all uses. |
|
3162 |
|
3163 * symtab.h, symtab.cc (symbol_table::maybe_list): New function, |
|
3164 from variables.cc. Change all uses. |
|
3165 |
|
3166 * pt-idx.h (tree_identifier::lvalue_ok): New function. |
|
3167 * pt-id.h (tree_index_expression::lvalue_ok): Likewise. |
|
3168 * pt-indir.h (tree_indirect_ref::lvalue_ok): Likewise. |
|
3169 |
|
3170 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_oct_obj): Delete. |
|
3171 * pt-walk.h (tree_walker::visit_oct_obj): Delete declaration. |
|
3172 |
|
3173 * lex.h (class lexical_feedback): Delete maybe_screwed_again. |
|
3174 * lex.l (lexical_feedback::init): Don't set it. |
|
3175 |
|
3176 Fri May 30 16:07:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3177 |
|
3178 * mappers.cc: Include <cfloat> here. |
|
3179 |
|
3180 Tue May 27 10:08:43 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3181 |
|
3182 * toplev.cc (eval_string): Don't index tmp if it is empty. |
|
3183 |
|
3184 Sat May 24 00:18:41 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3185 |
|
3186 * load-save.cc (valid_identifier): Move here and make static. |
|
3187 * symtab.h, symtab.cc (valid_identifier): Delete declaration and |
|
3188 definition. |
|
3189 |
|
3190 Fri May 23 22:54:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3191 |
|
3192 * symtab.h (symbol_def::symbol_def): Use initializer list instead |
|
3193 of calling init_state. |
|
3194 (symbol_def::init_state): Delete. |
|
3195 |
|
3196 * symtab.cc (symbol_table::print_stats): New function. |
|
3197 * variables.cc (F__dump_symtab_info__): New function. |
|
3198 |
|
3199 * symtab.h, symtab.cc (symbol_table::hash): Return masked value. |
|
3200 (symbol_table::table_size): New data member. |
|
3201 (symbol_table::symbol_table): Set size of table in constructor. |
|
3202 (HASH_TABLE_SIZE): Replace uses with table_size. |
|
3203 (HASH_MASK): Delete. |
|
3204 * variables.cc (initialize_symbol_tables): Set top-level and |
|
3205 global symbol table sizes here. |
|
3206 |
2994
|
3207 Thu May 22 13:32:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3208 |
|
3209 * dynamic-ld.cc (octave_shl_load_dynamic_loader::resolve_reference): |
|
3210 Call shl_findsym with type set to TYPE_PROCEDURE. Pass the |
|
3211 address of the pointer we want to define. |
|
3212 |
2993
|
3213 Wed May 21 16:30:25 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3214 |
|
3215 * DLD-FUNCTIONS/time.cc (extract_tm): Avoid memory leak in dealing |
|
3216 with time zone. |
|
3217 |
|
3218 * Makefile.in (install-in): Use new mk-includedir-link macro. |
|
3219 (install-lib): Install in $octlibdir. Use new mk-libdir-link macro. |
|
3220 |
|
3221 Tue May 20 01:24:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3222 |
|
3223 * ov-list.cc (Flist): Rename from Fmake_list. |
|
3224 |
|
3225 Mon May 19 14:45:58 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3226 |
|
3227 * octave.cc (maximum_braindamage): Set default_eval_print_flag to 0. |
|
3228 |
|
3229 Sat May 17 16:32:23 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3230 |
|
3231 * defaults.cc (set_default_editor): Default is now Emacs, not vi. |
|
3232 |
2984
|
3233 Fri May 16 00:07:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3234 |
2991
|
3235 * pt-idx.cc (tree_index_expression::name): New function. |
|
3236 |
|
3237 * pt.cc (tree::str_print_code): New file, new convenience function. |
|
3238 * pt-arg-list.cc (tree_argument_list::get_arg_names): Use it. |
|
3239 * pt-assign.cc (tree_simple_assignment::rvalue): Likewise. |
|
3240 (tree_multi_assignment::rvalue): Likewise. |
|
3241 |
2990
|
3242 * pt-colon.h (tree_colon_expression::save_base): New data memmber. |
|
3243 (tree_colon_expression::preserve_base): New function. |
|
3244 * parse.y (finish_colon_expression): When converting to a simple |
|
3245 expression, be sure to delete the original colon expression but |
|
3246 not the base value. |
|
3247 |
|
3248 * pt-mat.cc (tree_matrix::~tree_matrix): Actually do something. |
|
3249 |
2987
|
3250 * pt-all.h: New file. |
|
3251 * parse.y, lex.l, pt-pr-code.cc: Use it. |
|
3252 |
|
3253 * pt.h: Rename from pt-base.h. |
|
3254 |
|
3255 * All parse tree classes: Add private copy constructors and |
|
3256 assignment operators to prevent copying. |
|
3257 |
|
3258 * pt-base.cc: Delete. |
|
3259 |
2985
|
3260 * unwind-prot.h, unwind-prot.cc: Make a bit more object-oriented. |
|
3261 Change all uses of unwind_protect stuff to match. |
|
3262 |
|
3263 * pt-jump.h, pt-jump.cc (breaking, continuing, returning): |
|
3264 Make these flags static members of the corresponding class. |
|
3265 Change all uses. |
|
3266 |
2984
|
3267 * pt-assign.cc (tree_simple_assignment_expression::eval, |
|
3268 tree_multi_assignment_expression::eval): Clear lvalue index here. |
|
3269 |
|
3270 * oct-lvalue.cc (octave_lvalue::assign): Don't clear index here. |
|
3271 * oct-lvalue.h (octave_lvalue::clear_index): New function. |
|
3272 (octave_lvalue::set_index): Rename from octave_lvalue::index. |
|
3273 Change all callers. |
|
3274 |
2976
|
3275 Thu May 15 11:48:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3276 |
2983
|
3277 * pt-select.h, pt-select.cc (class tree_if_command_list, |
|
3278 class tree_if_clause, class tree_switch_case_list, |
|
3279 class tree_switch_case): Move here from pt-misc.h, pt-misc.cc. |
|
3280 * pt-decl.h, pt-decl.cc (class tree_decl_init_list, |
|
3281 class tree_decl_elt): Move here from pt-mist.h, pt-misc.cc |
|
3282 |
|
3283 * pt-arg-list.h, pt-stmt.h: New files, extracted from pt-misc.h. |
|
3284 * pt-arg-list.cc, pt-stmt.cc: New files, extracted from pt-misc.cc. |
|
3285 |
|
3286 * pt-decl.h, pt-except.h, pt-jump.h, pt-loop.h, pt-select.h: |
|
3287 New files, extraced from pt-cmd.h. |
|
3288 * pt-decl.cc, pt-except.cc, pt-jump.cc, pt-loop.cc, pt-select.cc: |
|
3289 New files, extraced from pt-cmd.cc. |
|
3290 |
2980
|
3291 * pt-unop.h, pt-binop.h, pt-colon.h, pt-idx.h, pt-assign.h: |
|
3292 New files, extracted from pt-exp.h |
|
3293 * pt-unop.cc, pt-binop.cc, pt-colon.cc, pt-idx.cc, pt-assign.cc: |
|
3294 New files, extracted from pt-exp.cc |
|
3295 * pt-exp.h, pt-exp.cc: Rename from pt-exp-base.h, pt-exp-base.cc. |
|
3296 |
2979
|
3297 * oct-lvalue.h: Rename from oct-var-ref.h. Rename class from |
|
3298 octave_variable_reference to octave_lvalue. Change all uses. |
|
3299 * oct-lvalue.cc: Rename from oct-var-ref.cc. |
|
3300 |
2978
|
3301 * variables.cc (bind_ans): Only bind ans and print result if value |
|
3302 is defined. |
|
3303 |
2976
|
3304 * defun.cc: New file. Move functions for installing objects in |
|
3305 the symbol table here from variables.cc. |
|
3306 |
|
3307 * oct-obj.h, oct-obj.cc: Add custom allocator, fwiw. |
|
3308 |
|
3309 * toplev.cc (main_loop): Correctly increment command number. |
|
3310 |
|
3311 * TEMPLATE-INST/SLList-tm.cc: Don't instantiate lists of pointers |
|
3312 to tree_matrix_row objects. |
|
3313 * TEMPLATE-INST/SLList-misc.cc: Do instantiate lists of pointers |
|
3314 to tree_argument_list objects. |
|
3315 |
|
3316 * DLD-FUNCTIONS/dassl.cc: Update to use new octave_function |
|
3317 interface to user-supplied functions. |
|
3318 * DLD-FUNCTIONS/fsolve.cc: Likewise. |
|
3319 * DLD-FUNCTIONS/lsode.cc: Likewise. |
|
3320 * DLD-FUNCTIONS/npsol.cc: Likewise. |
|
3321 * DLD-FUNCTIONS/quad.cc: Likewise. |
|
3322 |
|
3323 * dynamic-ld.h, dynamic-ld.cc (builtin_fcn_installer typedef): |
|
3324 Rename from builtin_fcn. |
|
3325 (octave_dynamic_loader::load_fcn_from_dot_oct_file): |
|
3326 Simplify by using new installer function defined by DEFUN_DLD. |
|
3327 |
|
3328 * defun-dld.h (DEFUN_DLD): Use DEFINE_FUN_INSTALLER_FUN instead of |
|
3329 DEFINE_FUN_STRUCT_FUN. |
|
3330 * defun.h (DEFUN_MAPPER): Use DEFUN_MAPPER_INTERNAL. |
|
3331 * defun-int.h (DEFVAR_INTERNAL): Rename from DEFVAR_INT and move |
|
3332 here from defun.h. Change all uses. |
|
3333 (DEFUN_MAPPER_INTERNAL): New macro. |
|
3334 (DEFINE_FUN_INSTALLER_FUN): New macro to define function that the |
|
3335 dynamic loader calls to do all the work of installing a new function. |
|
3336 (DEFINE_FUN_STRUCT_FUN): Delete. |
|
3337 |
|
3338 * parse.y: Rewrite to handle more general expressions. |
|
3339 * lex.l: Corresponding changes. |
|
3340 |
|
3341 * pt-walk.h, pt-pr-code.h, pt-pr-code.cc: Cope with new parse tree |
|
3342 object structure. |
|
3343 |
|
3344 * pt-misc.cc (class tree_for_command): Split into |
|
3345 tree_simple_for_command and tree_complex_for_command classes. |
|
3346 |
|
3347 * pt-misc.h, pt-misc.cc (tree_statement::eval): Handle identifier |
|
3348 lookup and printing and binding ans here. |
|
3349 (tree_statement_list::eval): Simplify. |
|
3350 (tree_argument_list::all_elements_are_constant): New function. |
|
3351 (class tree_decl_elt): Now contains id and expr, not an assignment |
|
3352 expression. |
|
3353 |
|
3354 * pt-exp-base.h pt-exp.h pt-id.h pt-indir.h pt-mat.h pt-const.h, |
|
3355 pt-exp-base.cc pt-exp.cc pt-id.cc pt-indir.cc pt-mat.cc pt-const.cc: |
|
3356 Replace eval functions with rvalue and lvalue functions. |
|
3357 Change all uses. |
|
3358 (lvalue_ok, rvalue_ok): New functions, for future compile-time |
|
3359 semantic checks. |
|
3360 |
|
3361 * oct-var-ref.h (is_defined, is_map): New functions. |
|
3362 |
|
3363 * pt-exp.h (class tree_oct_obj): Delete. |
|
3364 |
|
3365 * variables.cc (extract_function, is_valid_function): Return |
|
3366 pointer to octave_function, not octave_symbol. |
|
3367 (link_to_global_variable): Rewrite. Handle errors in |
|
3368 symbol_record::mark_as_linked_to_global. |
|
3369 |
|
3370 * symtab.h, symtab.cc (class symbol_def, class symbol_record): |
|
3371 Symbols are now stored as octave_value objects only. |
|
3372 |
|
3373 * ov.cc (install_types): Register function types here. |
|
3374 * ov-fcn.h, ov-fcn.cc, ov-builtin.h, ov-builtin.cc, ov-mapper.h, |
|
3375 ov-mapper.cc, ov-usr-fcn.h, ov-usr-fcn.cc: New classes for |
|
3376 functions as values. |
|
3377 * ov.h (class octave_value): Don't derive from octave_symbol. |
|
3378 * oct-fcn.h, oct-fcn.cc, oct-builtin.h, oct-builtin.cc, |
|
3379 oct-mapper.h, oct-mapper.cc, oct-usr-fcn.h, oct-usr-fcn.cc, |
|
3380 oct-sym.h, oct-sym.cc: Delete. |
|
3381 |
2963
|
3382 Sun May 11 17:51:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3383 |
|
3384 * help.cc (Ftype): Make it work again for functions. |
|
3385 |
|
3386 * pt-pr-code.cc (tree_print_code::print_parens): New function. |
|
3387 Use it in other tree_print_code functions to handle printing all |
|
3388 the parens that we found when parsing the expression, not just one |
|
3389 pair. |
|
3390 * pt-exp-base.h (tree_expression::paren_count): Rename from |
|
3391 is_in_parens. |
|
3392 * parse.y (maybe_warn_assign_as_truth_value): Use new name. |
|
3393 |
|
3394 * parse.y (constant): New non-terminal. |
|
3395 (simple_expr1): Use it. |
|
3396 |
|
3397 * parse.y (make_unary_op): Delete. |
|
3398 (simple_expr1): Where appropriate, use make_prefix_op and |
|
3399 make_postfix_op instead of make_unary_op. Allow increment and |
|
3400 decrement ops to work on expressions, not just identifiers. |
|
3401 (make_prefix_op, make_postfix_op): Arg is expression, not identifier. |
|
3402 Handle old unary_op cases too. |
|
3403 (fold (tree_unary_expression *)): Delete. |
|
3404 * pt-exp.h, pt-exp.cc (tree_prefix_expression::eval): Handle unary |
|
3405 minus and not here. |
|
3406 (tree_postfix_expression::eval): Likewise, for transpose and hermitian. |
|
3407 (class tree_prefix_expression, class tree_postfix_expression): |
|
3408 Derive from tree_unary_expression. Delete identifier member. |
|
3409 Delete ident member function. |
|
3410 (tree_unary_expression): Don't handle evaluation here. |
|
3411 * pt-exp-base.h (mark_in_parens): No longer virtual. Return this. |
|
3412 (reference): New virtual function. |
|
3413 (class tree_expression): Don't handle expression type here. |
|
3414 * pt-mvr-base.h (tree_multi_val_ret::tree_multi_val_ret): Likewise. |
|
3415 * pt-mvr.h, pt-mvr.cc (tree_multi_assignment_expression): Likewise. |
|
3416 * pt-walk.h (visit_unary_expression): Delete declaration. |
|
3417 * pt-pr-code.h, pt-pr-code.cc (visit_unary_expression): Delete. |
|
3418 (visit_prefix_expression): Use operand(), not ident(). |
|
3419 new, visit_postfix_expression): |
|
3420 * pt-id.h, pt-id.cc (increment, decrement): Delete. |
|
3421 |
|
3422 * pt-misc.cc (tree_parameter_list::define_from_arg_vector): Get a |
|
3423 reference to each element and use the assignment operator instead |
|
3424 of tree_identifier::define. |
|
3425 * pt-id.h, pt-id.cc (tree_identifier::define): Delete versions |
|
3426 that take octave_value and octave_symbol args. |
|
3427 |
|
3428 Sat May 10 23:32:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3429 |
|
3430 * pt-indir.h, pt-indir.cc (tree_indirect_reference::value): Delete. |
|
3431 |
|
3432 * oct-var-ref.cc (octave_variable_ref::assign): Clear idx after |
|
3433 assignment. |
|
3434 |
2976
|
3435 * octave_value classes: Add is_constant, is_function, and |
|
3436 function_value functions. |
|
3437 |
2963
|
3438 * ov.h, ov.cc (assign): Return void, not reference to octave_value. |
|
3439 (do_index_op): Rename, from index. |
|
3440 (do_struct_elt_index_op): Rename, from struct_elt_val. |
|
3441 Add version that accepts index arg. |
|
3442 Change all uses and derived classes to match. |
|
3443 * pt-const.h (index): Delete. |
|
3444 * oct-var-ref.h, oct-var-ref.cc (value): Handle indexed structure |
|
3445 ops here too. |
|
3446 |
2949
|
3447 Fri May 9 07:40:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3448 |
2958
|
3449 * pt-exp.cc (print_rhs_assign_val, symbols_of_pt_exp): New functions. |
|
3450 (Vprint_rhs_assign_val): New static variable. |
|
3451 (tree_simple_assignment_expression::eval): Use it to optionally |
|
3452 allow the rhs (which is the result) of an assignment to be printed |
|
3453 instead of the left. |
|
3454 |
2955
|
3455 * pt-exp.cc (tree_simple_assignment_expression::eval): Use new |
|
3456 octave_variabl_reference::index function to handle indexing. |
|
3457 |
|
3458 * oct-var-ref.h, oct-var-ref.cc (idx): New data member. |
|
3459 (octave_variable_reference::index): Set it. |
|
3460 (octave_variable_reference::assign): Handle indexing here. |
|
3461 Delete version of this function htat takes index arg. |
|
3462 |
|
3463 * variables.h (struct builtin_varaible): Delete. |
|
3464 * variables.cc (install_builtin_variable): Take all elts of |
|
3465 builtin_variable struct directly. |
|
3466 * defun.h (DEFVAR_INT): Call install_builtin_variable directly. |
|
3467 |
|
3468 * symtab.h, defun-int.h: Don't include variables.h. |
|
3469 |
|
3470 * symtab.h (symbol_record::sv_function): Move typedef here. |
|
3471 * variables.h: From here. |
|
3472 |
|
3473 * oct-var-ref.h, oct-var-ref.cc: New files for |
|
3474 octave_variable_reference class, extracted from variables.h and |
|
3475 variables.cc |
2956
|
3476 * Makefile.in: Add them to the appropriate lists. |
2955
|
3477 |
|
3478 * oct-obj.h (octave_value_list::empty): New function. |
|
3479 |
2949
|
3480 * variables.h (class octave_variable_reference): Rewrite to work |
|
3481 as a proxy class to store a pointer to octave_value and, |
|
3482 optionally, the change function to call and the name of the |
|
3483 structure element we are referencing. Handle assignment, |
|
3484 increment, decrement, and value operations. |
|
3485 |
2956
|
3486 Thu May 8 23:40:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3487 |
2949
|
3488 * ov-re-mat.h, ov-re-mat.cc (struct_elt_ref, struct_elt_val, |
|
3489 assign_struct_elt): Provide functions for looking up and setting |
|
3490 matrix dimensions. |
|
3491 |
|
3492 * symtab.cc (symbol_record::define): Don't call sv_fcn here. |
|
3493 Don't save and restore value here. |
|
3494 (symbol_record::define_builtin_var): Do call sv_fcn here. |
|
3495 (symbol_record::variable_reference): Don't make value unique here. |
|
3496 Return pointer to sv_fcn in octave_variable_reference. |
|
3497 |
|
3498 * pt-misc.cc (tree_parameter_list::initialize_undefined_elements): |
|
3499 Simplify. |
|
3500 |
|
3501 * pt-id.h, pt-id.cc (tree_identifier::reference): Return |
|
3502 octave_variable_reference, not octave_value&. |
|
3503 * symtab.h, symtab.cc (symbol_record::variable_reference): Ditto. |
|
3504 * pt-indir.h, pt-indir.cc (tree_indirect_ref::reference): Ditto. |
|
3505 Simplify too. |
|
3506 |
|
3507 * pt-const.h (tree_constant::reference, tree_constant::value, |
|
3508 tree_constant::assign): Delete unnecessary functions. |
|
3509 * pt-id.h, pt-id.cc (tree_identifier::assign): Ditto. |
|
3510 |
|
3511 * pt-cmd.cc (tree_for_command::do_for_loop_once): Simplify. |
|
3512 |
|
3513 * ov.h, ov.cc, ov-base.h, ov-base.cc, ov-struct.h, ov-struct.cc |
|
3514 (struct_elt_ref): New arg, octave_value* parent. |
|
3515 Allow deferred lookup. Return octave_variable_reference, not |
|
3516 octave_value&. |
|
3517 |
|
3518 * ov.h, ov.cc, ov-re-mat.h, ov-re-mat.cc (assign_struct_elt): |
|
3519 New virtual functions. |
|
3520 |
|
3521 * ov.h, ov.cc (Vresize_on_range_error): Now static. |
|
3522 |
|
3523 * pt-mvr.cc (tree_index_expression::eval): Delete redundant check |
|
3524 of error_state. |
|
3525 |
2944
|
3526 Wed May 7 21:17:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3527 |
|
3528 * input.cc (generate_completion): Rename from command_generator. |
|
3529 Use string objects instead of char*. |
|
3530 (generate_possible_completions): Let qsort also make matches unique. |
|
3531 (initialize_command_input): Register generate_completion with the |
|
3532 command_editor class. |
|
3533 (completion_matches): Simplify using generate_completion. |
|
3534 |
|
3535 * pt-pr-code.cc (tree_print_code::visit_constant): For val, call |
|
3536 print_raw, not print. |
|
3537 |
|
3538 * oct-usr-fcn.h (octave_user_function::argn_sr): New data member. |
|
3539 (octave_user_function::install_automatic_vars): Rename from |
|
3540 install_nargin_and_nargout. |
|
3541 (octave_user_function::bind_automatic_vars): Rename from |
|
3542 bind_nargin_and_nargout. |
|
3543 * oct-usr-fcn.cc (octave_user_function::eval): Extract arg names |
|
3544 from args vector and bind them to argn. |
|
3545 * oct-obj.h (octave_value_list::names): New data member. |
|
3546 * oct-obj.cc (octave_value_list::stash_name_tags): New function. |
|
3547 (octave_value_list::name_tags): Ditto. |
|
3548 * pt-const.h, pt-const.cc (tree_constant::print_raw): New function. |
|
3549 * pt-misc.h, pt-misc.cc (tree_argument_list::get_arg_names): |
|
3550 New function. |
|
3551 * pt-mvr.h, pt-mvr.cc (class index_expression): Cache arg names. |
|
3552 * toplev.cc (feval): Now static. Handle arg names. |
|
3553 |
|
3554 * mkops: Cope with moving files defining operators to OPERATORS |
|
3555 subdirectory. |
|
3556 |
2937
|
3557 Tue May 6 00:48:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3558 |
|
3559 * DLD-FUNCTIONS/getgrent.cc: Use new octave_group class. |
|
3560 * DLD-FUNCTIONS/getpwent.cc: Use new octave_passwd class. |
|
3561 |
|
3562 * syscalls.cc: Simplify by using new functions defined in |
|
3563 liboctave/oct-syscalls.cc. |
|
3564 |
|
3565 * file-io.cc (Ftmpnam): Accept DIR and PREFIX args. |
|
3566 |
2929
|
3567 Mon May 5 00:54:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3568 |
2932
|
3569 * ov-str-mat.cc (octave_char_matrix_str::print_name_tag): Print |
|
3570 empty strings on one line. |
|
3571 |
2929
|
3572 * DLD-FUNCTIONS, OPERATORS, and TEMPLATE-INST: New subdirectories. |
|
3573 Move appropriate files to new directories. |
|
3574 * Makefile.in: Add DLD-FUNCTIONS, OPERATORS, and TEMPLATE-INST |
|
3575 directories to VPATH. Fix rules to work with new directory |
|
3576 structure. |
|
3577 |
2927
|
3578 Sun May 4 22:40:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3579 |
|
3580 * input.cc (initialize_command_input): Rename from |
|
3581 initialize_readline. |
|
3582 (gnu_readline, octave_gets, get_user_input): Simplify, return |
|
3583 string, not char *. |
|
3584 |
|
3585 * Many of other files: Miscellaneous changes to go along with the |
|
3586 changes described in the liboctave/ChangeLog for May 4. More code |
|
3587 moved from here to liboctave. |
|
3588 |
|
3589 Fri May 2 19:50:33 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3590 |
|
3591 * pathlen.h: Move to ../liboctave. |
|
3592 |
2921
|
3593 Thu May 1 21:50:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3594 |
|
3595 * variables.cc (get_struct_elts): New fucntion. |
|
3596 (looks_like_struct, generate_struct_completions): Move here from |
|
3597 input.cc, rewrite, and make work again. |
|
3598 |
2916
|
3599 Wed Apr 30 00:24:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3600 |
|
3601 * ov-base.h, ov-bool-mat.cc, ov-bool-mat.h, ov-bool.cc, ov-bool.h, |
|
3602 ov-ch-mat.cc, ov-ch-mat.h, ov-complex.cc, ov-complex.h, |
|
3603 ov-cx-mat.cc, ov-cx-mat.h, ov-file.cc, ov-file.h, ov-list.cc, |
|
3604 ov-range.cc, ov-range.h, ov-re-mat.cc, ov-re-mat.h, ov-scalar.cc, |
|
3605 ov-scalar.h, ov-str-mat.cc, ov-struct.cc, ov.h (scalar_value): |
|
3606 New function. Same as double_value, but name is consistent with |
|
3607 octave_scalar class. |
|
3608 |
|
3609 * op-fil-b.cc, op-fil-cm.cc, op-fil-lis.cc, op-fil-rec.cc, |
|
3610 op-fil-str.cc, op-fil-bm.cc, op-fil-cs.cc, op-fil-m.cc, |
|
3611 op-fil-s.cc: New files. |
|
3612 |
|
3613 * ops.h (ASSIGNOPDECL, DEFASSIGNOP, DEFASSIGNOP_FN, CONVDECL, |
|
3614 DEFCONV, BINOPDECL, DEFBINOPX, DEFBINOP, DEFBINOP_OP, DEFBINOP_FN, |
|
3615 BINOP_NONCONFORMANT): New macros. |
|
3616 * op-b-b.cc, op-bm-bm.cc, op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, |
|
3617 op-cm-s.cc, op-cs-cm.cc, op-cs-cs.cc, op-cs-m.cc, op-cs-s.cc, |
|
3618 op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, op-s-cm.cc, |
|
3619 op-s-cs.cc, op-s-m.cc, op-s-s.cc, op-str-str.cc: Use them. |
|
3620 |
|
3621 * Makefile.in (octave): Also depend on ops.o. |
|
3622 |
|
3623 * builtins.h: Delete. |
|
3624 * octave.cc: Add extern declaration here. |
|
3625 |
|
3626 * mappers.h: Delete. |
|
3627 * Makefile.in (INCLUDES): Delete from list. |
|
3628 * mkbuiltins: Add extern declaration in builtins.cc. |
|
3629 |
|
3630 * mkops: New file. |
|
3631 * ops.cc: Delete. |
|
3632 * Makefile.in (SOURCES): Delete from the list. |
|
3633 (ops.cc): New target. |
|
3634 (OP_SOURCES): New list. Move all op-*.cc files here from SOURCES. |
|
3635 Add $(OP_SOURCES) to SOURCES list. |
|
3636 |
|
3637 * variables.cc (symbols_of_variables): No longer static. |
|
3638 * ov.cc (symbols_of_ov): Rename from symbols_of_value. |
|
3639 |
|
3640 * ov-base.h: Delete declaration for install_base_type_conversions. |
|
3641 * op-b-b.h, op-bm-bm.h, op-cm-cm.h, op-cm-cs.h, op-cm-m.h, |
|
3642 op-cm-s.h, op-cs-cm.h, op-cs-cs.h, op-cs-m.h, op-cs-s.h, |
|
3643 op-m-cm.h, op-m-cs.h, op-m-m.h, op-m-s.h, op-s-cm.h, op-s-cs.h, |
|
3644 op-s-m.h, op-s-s.h, op-str-str.h: Delete. |
|
3645 * Makefile.in (INCLUDES): Delete them from the list. |
|
3646 |
|
3647 Tue Apr 29 22:27:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3648 |
|
3649 * variables.h, variables.cc (install_builtin_variables): Delete. |
|
3650 * mkbuiltins: Also generate install_builtin_variables function. |
|
3651 * Makefile.in: Fix rule to call mkbuiltins with correct args. |
|
3652 (clean): Also delete def-files and var-files. |
|
3653 * defaults.h.in, dirfns.h, error.h, file-io.h, help.h, input.h, |
|
3654 lex.h, load-save.h, oct-usr-fcn.h, pager.h, parse.h, pr-output.cc, |
|
3655 pr-output.h, pt-mat.h, pt-misc.h, pt-plot.h, toplev.h: |
|
3656 Delete declarations of symbols_of_* functions. |
|
3657 * data.h, syscalls.h: Delete. |
|
3658 |
|
3659 * pr-output.cc (octave_print_internal): Leave printing of final |
|
3660 new line up to the caller. |
|
3661 |
|
3662 * ov.h, ov.cc (reset_indent_level, increment_indent_level, |
|
3663 decrement_indent_level, newline, indent, reset, |
|
3664 curr_print_indent_level, beginning_of_line): |
|
3665 New functions and static data to manage indent level for printing. |
|
3666 (print_as_scalar): Delete. |
|
3667 (print, print_with_name): Always require stream arg. |
|
3668 Change all callers. |
|
3669 |
|
3670 * oct-stream.h (octave_stream::input_stream): Make publicly available. |
|
3671 (octave_stream::output_stream): Likewise. |
|
3672 |
|
3673 * ov-base.h, ov-base.cc, ov.h, ov.cc, ov-file.h ov-base.h |
|
3674 (is_file, stream_value, stream_number): New functions. |
|
3675 * ov-file.h, ov-file.cc: New files for value class to manage files. |
|
3676 * file-io.cc (symbols_of_file_io): Define stdin, stdout, and |
|
3677 stderr as octve_file objects, not just integers. |
|
3678 (Ffopen, Fpopen): Return octave_file objects, not integer file ids. |
|
3679 * syscalls.cc (Fpipe): Likewise. |
|
3680 * oct-stream.h, oct-stream.cc (octave_stream_list::insert): |
|
3681 Return octave_file object, not integer file id. |
|
3682 |
|
3683 * ov-base.cc, ov-bool-mat.cc, ov-bool.cc, ov-ch-mat.cc, |
|
3684 ov-complex.cc, ov-cx-mat.cc, ov-file.cc, ov-list.cc, ov-range.cc, |
|
3685 ov-re-mat.cc, ov-scalar.cc, ov-str-mat.cc, ov-struct.cc, ov.cc |
|
3686 (print_name_tag, print_raw): New functions. |
|
3687 |
|
3688 * help.cc (Ftype): Don't cast symbol definition to tree_constant *. |
|
3689 |
|
3690 * variables.cc (link_to_global_variable): Don't try to define |
|
3691 symbol with tree_constant objects. |
|
3692 (bind_ans): Call symbol_record::define directly and then |
|
3693 octave_value::print_with_name instead of creating a temporary |
|
3694 assignment expression. |
|
3695 |
|
3696 * pt-pr-code.cc (tree_print_code::indent): Don't use ostream::form. |
|
3697 |
|
3698 * pt-exp-base.h, pt-exp.h, pt-exp.cc (oper): Return string, not |
|
3699 char *. Change all where necessary. |
|
3700 |
|
3701 Mon Apr 28 16:33:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3702 |
|
3703 * ov.h (octave_value binary_op enum): Add lshift and rshift. |
|
3704 (octave_value assign_op enum): Add lshift_eq and rshift_eq. |
|
3705 * ov.cc (assign_op_as_string, binary_op_as_string): Include them. |
|
3706 * parse.y (LSHIFT_EQ RSHIFT_EQ LSHIFT RSHIFT): New tokens. |
|
3707 Add them to the precedence list. |
|
3708 (simple_expr): Add new operators. |
|
3709 (make_assign_op, make_binary_op): Handle new operators. |
|
3710 * lex.l: Recognize new operators. |
|
3711 |
|
3712 * lex.l: Recognize them. |
|
3713 |
|
3714 Sun Apr 27 20:17:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2898
|
3715 |
|
3716 * pt-misc.cc (Vsilent_functions, silent_functions): |
|
3717 Move here from oct-usr-fcn.cc. |
|
3718 (symbols_of_pt_misc): New function. DEFVAR silent_functions. |
|
3719 (tree_statement_list::eval): Handle Vsilent_functions here instead |
|
3720 of in octave_user_function::eval. |
|
3721 (tree_statement::eval): New functions. |
|
3722 (tree_statement_list::eval): Use them. |
|
3723 Change print flag arg to silent flag. Change all callers. |
|
3724 * variables.cc (install_builtin_variables): Call symbols_of_pt_misc. |
|
3725 * toplev.cc (parse_and_execute): Delete print arg. Change all callers. |
|
3726 (eval_string): Change print flag arg to silent flag. Change callers. |
|
3727 |
|
3728 * dynamic-ld.h, dynamic-ld.cc: Rewrite to use singleton class. |
|
3729 * variables.cc (load_fcn_from_file): Use new dynamic linking class. |
|
3730 |
2893
|
3731 * dynamic-ld.h (Octave_builtin_fcn): Delete typedef. |
|
3732 * dynamic-ld.cc: Simplify via the magic of function pointers. |
|
3733 |
|
3734 * pt-fcn.h pt-fcn.cc pt-fvc.h pt-fvc.cc pt-fvc-base.h pt-fvc-base.cc: |
|
3735 Delete obsolete files. |
|
3736 * Makefile.in: Remove them from various lists. |
|
3737 |
|
3738 * pt-walk.h (visit_octave_user_function): Rename from visit_function. |
|
3739 (visit_builtin): Delete. |
|
3740 * pt-pr-code.h, pt-pr-code.cc (visit_octave_user_function): |
|
3741 Rename from visit_function. |
|
3742 (visit_octave_user_function_header): Rename from visit_function_header. |
|
3743 (visit_octave_user_function_trailer): Rename from |
|
3744 visit_function_trailer. |
|
3745 |
|
3746 * ov.h, ov.cc (eval): New functions. |
|
3747 |
|
3748 * dassl.cc, fsolve.cc, lsode.cc, npsol.cc, qpsol.cc, quad.cc: |
|
3749 Declare user-defined functions as a pointer to an octave_symbol |
|
3750 object, not as a pointer to a tree_fvc object. |
|
3751 |
|
3752 * symtab.h, symtab.cc: Use new octave_symbol class. |
|
3753 * variables.cc (install_builtin_function, install_builtin_mapper, |
|
3754 install_builtin_variable, install_builtin_variable_as_function): |
|
3755 Make work with new octave_symbol class and symbol table structure. |
|
3756 |
|
3757 * variables.h: Delete declaration of builtin_function struct. |
|
3758 * defun-dld.h (DEFUN_DLD): Simplify. |
|
3759 * defun-int.h (DEFINE_FUN_STRUCT): Delete. |
|
3760 (DEFINE_FUN_STRUCT_FUN): Rewrite to not use static builtin_function |
|
3761 object. |
|
3762 |
|
3763 * mappers.h: Delete declaration of builtin_mapper_function struct. |
|
3764 * mappers.cc: Declare wrapper functions static. |
|
3765 * defun.h (DEFUN_MAPPER): Simplify. |
|
3766 |
|
3767 * oct-sym.h: New file. Declare base class for Octave symbols. |
|
3768 * ov.h: Derive octave_value class from octave_symbol. |
|
3769 * oct-fcn.h, oct-fcn.cc: New files to declare and define |
|
3770 base class for functions. |
|
3771 * oct-builtin.h, oct-builtin.cc: New files to declare and define |
|
3772 class for built-in functions. |
|
3773 * oct-mapper.h, oct-mapper.cc: New files to declare and define |
|
3774 class for mapper functions. |
|
3775 * oct-usr-fcn.h, oct-usr-fcn.cc: New files to declare and define |
|
3776 base class for user-defined functions. |
|
3777 * Makefile.in: Add new files to appropriate lists. |
|
3778 |
|
3779 * pt-id.h, pt-id.cc: Move tree_identifier class here. |
|
3780 * pt-fvc.h, pt-fvc.cc: From here. |
|
3781 |
|
3782 * pt-indir.h, pt-indir.cc: Move tree_indirect_ref class here. |
|
3783 * pt-fvc.h, pt-fvc.cc: From here. |
|
3784 |
2881
|
3785 Thu Apr 24 03:58:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3786 |
2884
|
3787 * parse.y (magic_colon): New nonterminal. |
|
3788 (arg_list): Simplify using magic_colon. |
|
3789 |
2883
|
3790 * lex.h (class lexical_feedback): Delete maybe_screwed field. |
|
3791 New field, parsed_function name. |
|
3792 * lex.l (lexical_feedback::init): Initialize it. |
|
3793 (handle_identifier): Don't return SCREW. Handle switching |
|
3794 symbol table context properly for `function f ()' vs `function x ='. |
|
3795 (is_keyword): If looking at function keyword, don't set current |
|
3796 symbol table to point to the local table. |
|
3797 * parse.y (recover_from_parsing_function): New function. |
|
3798 (finish_function_def): Use identifier, not token. |
|
3799 Simplify parsing of functions. |
|
3800 |
|
3801 * ov-list.h, ov-list.cc: New files to implement generic list type. |
|
3802 * ov.cc (list_indent): New global variable. |
|
3803 (increment_list_indent, decrement_list_indent): New functions. |
|
3804 (install_types): Register octave_list type. |
|
3805 * ov-base.cc (octave_base_value::is_list): New function. |
|
3806 |
2881
|
3807 * oct-sym.h: New file. |
|
3808 * ov.h (class octave_value): Derive from octave_symbol class. |
|
3809 |
|
3810 * pt-const.h, pt-const.cc: Delete lots of old useless cruft. |
|
3811 |
|
3812 * pt-exp.h, pt-exp.cc (tree_binary_expression): Use type codes for |
|
3813 operators from octave_value instead of repeating them here. |
|
3814 |
|
3815 * pt-fvc-base.cc (tree_fvc::increment, tree_fvc::decrement): Delete. |
|
3816 * pt-fvc.cc (tree_identifier::increment): Get reference to value |
|
3817 and increment that instead of using virutal tree_fvc::increment |
|
3818 function. |
|
3819 |
|
3820 * lex.l: Handle +=, -=, *=, /=, .+=, .-=, .*=, ./=, &=, and |= ops. |
2883
|
3821 * parse.y (make_assign_op): Rename from make_simple_assignment and |
|
3822 handle different op types. |
|
3823 (simple_expr1): Do new ops. |
2881
|
3824 * pt-misc.cc (initialize_undefined_elements): Pass op to assign. |
|
3825 * pt-cmd.cc (tree_for_command::do_for_command_once): Likewise. |
|
3826 * pt-fvc.cc (tree_identifier::assign): Pass op. |
|
3827 * pt-exp.cc (tree_simple_assignment_expression): Handle new ops. |
|
3828 * variables.cc (octave_variable_reference::assign): Likewise. |
|
3829 * ov.h (class octave_value): Likewise. |
|
3830 * ov.cc (octave_value::assign_op_as_string): New function. |
|
3831 (octave_value::assign, octave_value::convert_and_assign, |
|
3832 octave_value::try_assignment_with_conversion, |
|
3833 octave_value::try_assignment): Pass op. |
|
3834 * pt-pr-code.cc (tree_print_code::visit_simple_assignment_expression): |
|
3835 Use expr.oper() instead of printing "=". |
|
3836 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-m-m.cc, |
|
3837 op-m-s.cc, op-str-str.cc: Pass op to INSTALL_ASSIGNOP. |
|
3838 * ops.h (INSTALL_ASSIGNOP): Pass op. |
2883
|
3839 * ov-typeinfo.cc (do_register_assign_op): Include op type in table. |
|
3840 (do_lookup_assign_op): Use op in lookup. |
2881
|
3841 |
|
3842 * ops.h (INSTALL_UNOP): Delete. |
|
3843 |
|
3844 * input.cc (generate_struct_completions, looks_like_struct): |
|
3845 Disable, since they don't work now anyway. |
|
3846 |
|
3847 * help.cc (Ftype): Work with octave_value instead of a pointer to |
|
3848 tree_constant. |
|
3849 * symtab.cc (symbol_record_info::symbol_record_info): Likewise. |
|
3850 |
|
3851 |
|
3852 Tue Apr 22 22:59:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3853 |
|
3854 * file-io.cc (Ffprintf): If first arg is a string, assume FID = 1. |
|
3855 |
|
3856 Fri Apr 18 20:16:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3857 |
|
3858 * oct-obj.h, oct-obj.cc: Implement octave_value_list with |
|
3859 Array<octave_value> as a data member, not as a class derived from |
|
3860 Array<octave_value>. |
|
3861 (octave_value_list::length, octave_value_list::resize, |
|
3862 octave_value_list::prepend, octave_value_list::append, |
|
3863 octave_value_list::reverse): New functions. |
|
3864 |
|
3865 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
3866 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
3867 op-s-cm.cc, op-s-m.cc: Use new bool ops from liboctave instead of |
|
3868 the macros defined in ops.h. |
|
3869 |
2865
|
3870 Thu Apr 17 13:12:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3871 |
|
3872 * parse.y (ABORT_PARSE): Handle forced_interactive the same as |
|
3873 interactive. |
|
3874 |
|
3875 Mon Apr 14 01:46:50 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3876 |
|
3877 * input.cc (octave_read): Don't forget to free input buffer if it |
|
3878 exists and has zero length. |
|
3879 (gnu_readline): Free buf if fgets returns 0. |
|
3880 |
|
3881 Wed Apr 9 00:03:57 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3882 |
|
3883 * time.cc (mk_tm_map): Only set zone field if HAVE_TM_ZONE or |
|
3884 HAVE_TZNAME are defined. |
|
3885 |
|
3886 Tue Apr 8 12:39:21 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3887 |
|
3888 * time.cc (extract_tm): Set tm.tm_zone if HAVE_TM_ZONE is defined, |
|
3889 not if HAVE_TMZONE is defined. |
|
3890 |
|
3891 * Makefile.in (%.oct : %.o): Use $(SH_LD), not $(CXX). |
|
3892 |
|
3893 Wed Apr 2 21:32:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3894 |
|
3895 * dynamic-ld.cc, dynamic-ld.h (init_dynamic_linker): Delete |
|
3896 function and declaration. |
|
3897 * octave.cc (main): Don't call it. |
|
3898 |
2856
|
3899 Mon Mar 31 00:37:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3900 |
2859
|
3901 * pt-base-exp.h (tree_expression::eval): Give arg a default value. |
|
3902 * pt-const.h (tree_constant::eval): Likewise. |
|
3903 * pt-exp.h (tree_prefix_expression::eval, tree_colon_expression::eval, |
|
3904 tree_postfix_expression::eval, tree_unary_expression::eval, |
|
3905 tree_binary_expression::eval, tree_boolean_expression::eval, |
|
3906 tree_simple_assignment_expression::eval): Likewise. |
|
3907 * pt-fcn.h (tree_function::eval): Likewise. |
|
3908 * pt-fvc.h (tree_identifier::eval, tree_indirect_ref::eval, |
|
3909 tree_builtin::eval): Likewise. |
|
3910 * pt-mat.h (tree_matrix::eval): Likewise. |
|
3911 * pt-misc.h (tree_statement_list::eval): Likewise. |
|
3912 * pt-mvr-base.h (tree_multi_val_ret::eval): Likewise. |
|
3913 * pt-mvr.h (tree_oct_obj::eval, tree_index_expression::eval, |
|
3914 tree_multi_assignment_expression::eval): Likewise. |
|
3915 * dassl.cc, fsolve.cc, load-save.cc, lsode.cc, npsol.cc, parse.y, |
|
3916 pt-cmd.cc, pt-exp-base.cc, pt-exp.cc, pt-fvc.cc, pt-mat.cc, |
|
3917 pt-misc.cc, pt-mvr.cc, pt-plot.cc, quad.cc, toplev.cc, variables.cc: |
|
3918 Change callers of eval() to use bool instead of int and to make |
|
3919 use of default argument value. |
|
3920 |
|
3921 * toplev.h, toplev.cc (parse_and_execute, eval_string): Flag args |
|
3922 are now bool instead of int. |
|
3923 |
2856
|
3924 * symtab.h, symtab.cc: Use bool instead of int in more places. |
|
3925 * variables.h, variables.cc: Likewise. |
2857
|
3926 * lex.h, lex.l: Likewise. |
|
3927 * parse.y: Likewise. |
2856
|
3928 * help.cc, input.cc, lex.l, load-save.cc, parse.y, pt-fcn.cc: |
|
3929 Change callers of symbol_table::lookup to use bool instead of int, |
|
3930 and to make use of default arguments. |
|
3931 |
2850
|
3932 Fri Mar 28 15:33:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3933 |
2852
|
3934 * parse.y (Vwarn_comma_in_declaration): Delete. |
|
3935 (symbols_of_parse): Delete DEFVAR for warn_comma_in_declaration. |
|
3936 (decl1): Don't allow commas in declarations. |
|
3937 |
2850
|
3938 * lsode.cc (struct LSODE_OPTIONS): Handle integer options. |
|
3939 (print_lsode_option_list, set_lsode_option, show_lsode_option): Ditto. |
|
3940 (lsode_option_table): Add element for step limit. |
|
3941 (lsode_user_jacobian): New function. |
|
3942 (Flsode): Allow function name arg to be a 2-element string array |
|
3943 specifying the function and jacobian function. |
|
3944 |
|
3945 * variables.cc (get_global_value, set_global_value): New functions. |
|
3946 |
2846
|
3947 Wed Mar 26 17:08:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3948 |
|
3949 Implement static variable declaration: |
|
3950 |
|
3951 * lex.l (is_keyword): Handle static. |
|
3952 * octave.gperf: Likewise. |
|
3953 * parse.y (Vwarn_comma_in_declaration): Rename from |
|
3954 Vwarn_comma_in_global_decl. |
|
3955 Handle new static command. |
|
3956 * pt-cmd.h, pt-cmd.cc (class tree_decl_command): New base class |
|
3957 for static and global declaration commands. |
|
3958 (class tree_global_command): Derive from tree_decl_command. |
|
3959 (class tree_static_command): New class, derived from tree_decl_command. |
|
3960 * pt-fvc.cc, pt-fvc.h (tree_identifier::mark_as_static): New function. |
|
3961 * pt-misc.h, pt-misc.h (class tree_decl_elt): Rename from tree_global. |
|
3962 (class tree_decl_init_list): Rename from tree_global_init_list. |
|
3963 * pt-pr-code.cc, pt-pr-code.h (tree_print_code::visit_decl_command): |
|
3964 Rename from visit_global_command. |
|
3965 (tree_print_code::visit_decl_elt): Rename from visit_global. |
|
3966 (tree_print_code::visit_decl_init_list): Rename from |
|
3967 visit_global_init_list. |
|
3968 * pt-walk.h (tree_walker::visit_decl_command): Rename from |
|
3969 visit_global_command. |
|
3970 (tree_walker::visit_decl_elt): Rename from visit_tree_global. |
|
3971 (tree_walker::visit_decl_init_list): Rename from |
|
3972 visit_global_init_list. |
|
3973 * variables.cc (link_to_global_variable): Trying to make a static |
|
3974 variable global is an error. |
|
3975 * SLList-misc.cc: Instantiate lists of pointers to tree_decl_elt |
|
3976 objects, not tree_global objects. |
|
3977 * symtab.h, symtab.cc (symbol_record::tagged_static): New field. |
|
3978 (symbol_record::mark_as_static, symbol_record::is_static): |
|
3979 New functions. |
|
3980 * symtab.cc (symbol_record::init_state): Initialize tagged_static. |
|
3981 (symbol_record::clear): Don't clear static variables. |
|
3982 * symtab.cc (push_context): Don't do anything for static variables. |
|
3983 |
2825
|
3984 Tue Mar 25 17:17:17 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3985 |
2881
|
3986 * ov-bool-mat.cc, ov-bool-mat.h, ov-bool.cc, ov-bool.h: New files. |
2832
|
3987 |
2831
|
3988 * defaults.cc (symbols_of_defaults): DEFCONST OCTAVE_HOME. |
|
3989 |
|
3990 * toplev.cc (octave_config_info): Delete use of CXXLIBS. |
|
3991 * oct-conf.h.in: Ditto. |
|
3992 |
2830
|
3993 * octave.cc (maximum_braindamage): Don't bind prefer_zero_one_indexing. |
|
3994 * ov.h: Don't declare Vprefer_zero_one_indexing. |
|
3995 * ov.cc: Don't define Vprefer_zero_one_indexing. |
|
3996 (prefer_zero_one_indexing): Delete. |
|
3997 (symbols_of_value): Delete DEFVAR for prefer_zero_one_indexing. |
|
3998 |
2825
|
3999 * ov.h, ov.cc, ov-base.h, ov-base.cc: Add constructors and |
|
4000 extractors for bool and boolMatrix types. |
|
4001 |
|
4002 * ov.cc (install_types): Register octave_bool and |
|
4003 octave_bool_matrix types. |
|
4004 |
|
4005 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
4006 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
4007 op-s-cm.cc, op-s-m.cc, op-s-s.cc, ov-re-mat.cc: |
|
4008 Return boolMatrix instead of Matrix object. |
|
4009 * ops.h (BOOL_OP3, MX_MX_BOOL_OP): Likewise. |
|
4010 |
|
4011 * op-b-b.h, op-b-b.cc, op-bm-bm.h, op-bm-bm.cc: New files. |
|
4012 * Makefile.in: Add them to the lists. |
|
4013 * ops.cc: Include header files here. |
|
4014 (install_ops): Call install_b_b_ops() and install_bm_bm_ops() here. |
|
4015 |
|
4016 * variables.cc (symbols_of_variables): Don't rely on default |
|
4017 conversion from int to double for value returned from |
|
4018 default_history_size(). |
|
4019 |
|
4020 * pr-output.cc: Include cstdio. |
|
4021 |
|
4022 * parse.y (param_list_end): Fix typo in last change. |
|
4023 |
|
4024 * quad.cc (quad): Cast integer return values to double. |
|
4025 * npsol.cc (show_npsol_option): Likewise. |
|
4026 * qpsol.cc (show_qpsol_option): Likewise. |
|
4027 * file-io.cc (Fsprintf, Ffwrite): Likewise. |
|
4028 |
|
4029 Mon Mar 24 13:11:47 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4030 |
|
4031 * ov-typeinfo.cc (typeinfo): If invoked with an argument, return |
|
4032 the type of the argument as a string. Fix doc string. |
|
4033 |
2821
|
4034 Thu Mar 20 14:47:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4035 |
|
4036 * mk-oct-links (links_dir): Don't use -h option for grep. It's |
|
4037 not needed since we are working on one file at a time anyway. |
|
4038 |
2819
|
4039 Mon Mar 17 10:53:29 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4040 |
|
4041 * lex.l (handle_identifier): When handling indirect_ref, set |
|
4042 lexer_flags.quote_is_transpose to 1 so that a.b' to work as |
|
4043 expected. |
|
4044 |
|
4045 * parse.y (param_list_beg, param_list_end): New nonterminals. |
|
4046 (param_list, param_list1): Use them. |
|
4047 |
2811
|
4048 Wed Mar 12 16:57:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4049 |
|
4050 * Makefile.in (install-strip): New target. |
|
4051 |
2806
|
4052 Mon Mar 10 22:38:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4053 |
|
4054 * Makefile.in (clean): Delete .oct files too. |
|
4055 |
|
4056 * toplev.cc (Vdefault_eval_print_flag): New static variable. |
|
4057 (eval_string): New arg, print. |
|
4058 (Feval): Pass Vdefault_eval_print_flag to eval_string. |
|
4059 (default_eval_print_flag): New function. |
|
4060 (symbols_of_toplev): New function. |
|
4061 |
|
4062 * variables.cc (install_builtin_variables): Call it. |
|
4063 |
|
4064 * pt-exp.h, pt-exp.cc (class tree_boolean_expression): Rename enum |
|
4065 fields `and' and `or' to `bool_and' and `bool_or'. |
|
4066 (tree_unary_expression): Rename enum field `not' to `unot'. |
|
4067 (class tree_binary_expression): Rename enum fields `and' and `or' |
|
4068 to `el_and' and `el_or'. |
|
4069 * parse.y: Change all uses. |
|
4070 |
|
4071 * time.cc (extract_tm): Truncate field values instead of rounding. |
|
4072 (gmtime, localtime): Likewise, for timeval. |
|
4073 |
|
4074 * ov.h (class octave_value): Delete unused variable freeptr. |
|
4075 |
|
4076 * mappers.cc: Delete functions that are already in |
|
4077 liboctave/lo-mappers.cc. |
|
4078 |
|
4079 * oct-strstrm.cc (octave_base_strstream::tell): Use const_cast, |
|
4080 not static_cast. |
|
4081 |
|
4082 * help.cc (help_from_list): Add missing const qualifiers. |
|
4083 * help.h (struct help_list): Likewise. |
|
4084 * lex.l (match_any, plot_style_token): Likewise. |
|
4085 * load-save.cc (extract_keyword, ascii_save_type): Likewise. |
|
4086 * oct-hist.cc (mk_tmp_hist_file): Likewise. |
|
4087 * octave.cc (execute_startup_files): Likewise. |
|
4088 * octave.gperf (struct octave_kw): Likewise. |
|
4089 * pr-output.cc (pr_any_float): Likewise. |
|
4090 * pt-mvr.cc (tree_index_expression::eval_error): Likewise. |
|
4091 * pt-exp-base.h, pt-exp.h, pt-exp.cc: Likewise. |
|
4092 * parse.y: Likewise. |
|
4093 |
2800
|
4094 Sun Mar 9 03:46:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4095 |
2806
|
4096 * pt-exp-base.h (tree_expression): Delete extra comma at end of list. |
|
4097 |
|
4098 * dirfns.cc error.cc file-io.cc fsolve.cc input.cc load-save.cc |
|
4099 npsol.cc pt-fcn.cc qpsol.cc quad.cc syscalls.cc toplev.cc |
|
4100 variables.cc: Eliminate embedded newlines in string constants. |
|
4101 |
|
4102 * Map.cc, data.cc, dirfns.cc, dynamic-ld.cc, file-io.cc, |
|
4103 fsolve.cc, getgrent.cc, getpwent.cc, getrusage.cc, help.cc, |
|
4104 input.cc, load-save.cc, mappers.cc, minmax.cc, npsol.cc, |
|
4105 oct-fstrm.cc, oct-procbuf.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
4106 oct-stream.cc, oct-stream.h, oct-strstrm.cc, octave.cc, |
|
4107 ov-base.h, ov-range.cc, ov-typeinfo.cc, ov.cc, pr-output.cc, |
|
4108 pt-cmd.cc, pt-exp.cc, pt-fcn.cc, pt-fvc.cc, pt-mat.cc, |
|
4109 pt-misc.cc, pt-plot.cc, qpsol.cc, quad.cc, sort.cc, strfns.cc, |
|
4110 symtab.cc, syscalls.cc, sysdep.cc, time.cc, toplev.cc, |
|
4111 unwind-prot.cc, unwind-prot.h, variables.cc, xpow.cc: |
|
4112 Use `static_cast<T> (val)' instead of old C-style `(T) val' casts. |
2800
|
4113 |
2799
|
4114 Sat Mar 8 02:35:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4115 |
|
4116 * load-save.cc (save_ascii_data, save_three_d): Where appropriate, |
|
4117 use bool instead of int. |
|
4118 (save_binary_data, save_mat_binary_data, save_ascii_data): |
|
4119 Print warning instead of error for wrong type arg. |
|
4120 |
|
4121 * gripes.cc (gripe_wrong_type_arg): New arg, is_error. |
|
4122 |
|
4123 * pt-plot.cc (save_in_tmp_file): Call save_ascii_data with bool |
|
4124 arg, not int. |
|
4125 |
2797
|
4126 Fri Mar 7 00:56:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4127 |
|
4128 * dassl.cc (show_dassl_option): For values that are determined |
|
4129 automatically, return a string instead of a magic value (-1.0). |
|
4130 * fsolve.cc (show_fsolve_option): Likewise. |
|
4131 * lsode.cc (show_lsode_option): Likewise. |
|
4132 * npsol.cc (show_npsol_option): Likewise. |
|
4133 * qpsol.cc (show_qpsol_option): Likewise. |
|
4134 |
|
4135 * variables.cc (extract_function): New function. |
|
4136 * dassl.cc (Fdassl): Use it instead of is_valid_function. |
|
4137 * fsolve.cc (Ffsolve): Likewise. |
|
4138 * npsol.cc (Fnpsol): Likewise. |
|
4139 * qpsol.cc (Fqpsol): Likewise. |
|
4140 * quad.cc (Fquad): Likewise. |
|
4141 |
2795
|
4142 Thu Mar 6 20:07:24 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4143 |
|
4144 * sighandlers.cc (my_friendly_exit, octave_new_handler, |
|
4145 sigfpe_handler, sigpipe_handler): Don't all error() or warning(). |
|
4146 |
|
4147 * pager.cc (pager_death_handler): Don't try to clear pager, just |
|
4148 print message to cerr. |
|
4149 (do_sync): If the status of the pager is bad or it looks like it |
|
4150 is dead, restore the interrupt handler. |
|
4151 |
|
4152 * load-save.cc (extract_keyword (istream&, char*, int&)): |
|
4153 Move declaration of buf inside loop, to avoid deleting its guts |
|
4154 and then trying to reuse it. |
|
4155 (extract_keyword (istream&, char*)): Likewise. |
|
4156 |
2790
|
4157 Tue Mar 4 20:36:53 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4158 |
2791
|
4159 * pt-fcn.cc (tree_function::eval): Protect function from being |
|
4160 redefined while it is being evaluated. |
|
4161 (unprotect_function): New function, for use with unwind_protect stuff. |
|
4162 * pt-fcn.h (tree_function::symtab_entry): New data member. |
|
4163 (tree_function::init): Initialize it to 0. |
|
4164 (tree_function::stash_symtab_ptr): New function. |
|
4165 * parse.y (frob_function_def): Stash pointer to function's |
|
4166 symbol_record in the function definition. |
|
4167 |
|
4168 * symtab.cc (symbol_record::read_only_error): New argument, |
|
4169 action. Change all callers. |
|
4170 (symbol_record::rename): Don't allow read-only symbols to be renamed. |
|
4171 |
2790
|
4172 * variables.cc (Fexist): Don't let files with `.' in their names |
|
4173 confuse us. |
|
4174 |
|
4175 * symtab.cc (valid_identifier (const string&)): New function. |
|
4176 |
2779
|
4177 Sat Mar 1 15:23:14 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2775
|
4178 |
|
4179 * Version 2.0.5 released. |
|
4180 |
2779
|
4181 Sat Mar 1 01:34:08 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4182 |
|
4183 * Makefile.in (stamp-oct-links): New target. Make links in build |
|
4184 directory too, so that the tests will work. |
|
4185 |
2777
|
4186 * quad.cc: If quad is defined, undefine it. |
|
4187 |
2775
|
4188 * octave.cc: If WITH_KPATHSEARCH is defined, don't define |
|
4189 program_invocation_name or program_invocation_short_name. |
2774
|
4190 |
|
4191 * strftime.c: Update to current version from FSF. |
|
4192 * time.cc (Fstrftime): Call strftime with buf = 0 to get buffer |
|
4193 size, then call again to actually format the time struct. |
|
4194 |
2762
|
4195 Fri Feb 28 01:49:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4196 |
2764
|
4197 Implement switch statement: |
|
4198 |
|
4199 * parse.y (Vwarn_variable_switch_label): New static variable. |
|
4200 (warn_variable_switch_label): New function. |
|
4201 (symbols_of_parse): Provide warn_variable_switch_label as Octave |
|
4202 variable here. |
|
4203 (make_switch_case, finish_switch_command): New functions. |
|
4204 (maybe_warn_variable_switch_label): New function. |
|
4205 (end_error): Handle endswitch. |
|
4206 (switch_command, case_list, case_list1, switch_case, default_case): |
|
4207 New nonterminals. |
|
4208 (command): Add switch_command here. |
|
4209 * lex.l (is_keyword): Handle switch, case, otherwise, and endswitch. |
|
4210 * octave_gperf: Recognize switch, case, otherwise, and endswitch. |
|
4211 * token.h (end_tok_type): New item, switch_end. |
|
4212 * pt-cmd.cc (tree_switch_command): New class. |
|
4213 * pt-misc.cc (tree_switch_case, tree_switch_case_list): New classes. |
|
4214 * pt-pr-code.cc (tree_print_code::visit_switch_case, |
|
4215 tree_print_code::visit_switch_case_list, |
|
4216 tree_print_code::visit_switch_command): New functions. |
|
4217 * pt-walk.h (tree_walker::visit_switch_case, |
|
4218 tree_walker::visit_switch_case_list, |
|
4219 tree_walker::visit_switch_command): New pure virtual declarations. |
|
4220 Implement new switch statement. |
|
4221 * SLList-misc.cc: Instantiate lists of pointers to |
|
4222 tree_switch_case objects too. |
|
4223 |
|
4224 * lex.h, lex.l, parse.y: Delete all references to lexer_flags::iffing. |
|
4225 |
2762
|
4226 * syswait.h: Include sys/wait.h on NeXT systems, but don't use the |
|
4227 WIFEXTED, WEXITSTATUS, and WIFSIGNALLED macros defined there. |
|
4228 Also define waitpid in terms of wait4. From Rex A. Dieter |
|
4229 <rdieter@math.unl.edu>. |
|
4230 |
2759
|
4231 Wed Feb 26 16:43:31 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4232 |
|
4233 * oct-stream.cc (octave_base_stream::do_scanf): Don't report an |
|
4234 error if a conversion fails or we reach EOF. |
|
4235 |
2745
|
4236 Tue Feb 25 22:21:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4237 |
|
4238 * time.cc (strftime): increase initial buffer size. |
|
4239 |
|
4240 Mon Feb 24 17:49:21 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4241 |
|
4242 * pt-fvc.cc (tree_builtin::eval): Enable checking for max number |
|
4243 of arguments. |
|
4244 |
|
4245 * error.cc (handle_message): Don't fail if args is empty. |
|
4246 |
|
4247 Sun Feb 23 22:42:52 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4248 |
|
4249 * lex.h (lexical_feedback::looking_at_return_list): New field. |
|
4250 (lexical_feedback::looking_at_parameter_list): Ditto. |
|
4251 * lex.l (lexical_feedback::init): Initialize them. |
|
4252 (handle_identifier): Use them. |
|
4253 * parse.y: Likewise. |
|
4254 |
2712
|
4255 Fri Feb 21 15:35:18 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4256 |
2716
|
4257 * lex.l: Require flex 2.5 or later (we really want 2.5.4 or later, |
|
4258 but there seems to be no good way to check the patchlevel). |
|
4259 |
2712
|
4260 * oct-stream.cc (octave_base_stream::oscanf): Instead of returning |
|
4261 an error, just quit processing after a conversion fails. |
|
4262 |
2709
|
4263 Thu Feb 20 02:58:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2702
|
4264 |
|
4265 * Version 2.0.4 released. |
|
4266 |
2706
|
4267 Wed Feb 19 10:30:14 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4268 |
2705
|
4269 * sighandlers.cc (octave_ignore_interrupts, |
|
4270 octave_catch_interrupts, octave_set_interrupt_handler): |
|
4271 Return old value, not pointer to static data. Fix all uses. |
|
4272 |
|
4273 * sighandlers.h (octave_interrupt_handler): Move declaration here. |
|
4274 * sighandlers.cc: From here. |
|
4275 |
|
4276 * toplev.cc: Undo previous change. |
|
4277 |
2702
|
4278 * lex.l (handle_identifier): Allow commands like ls, save, etc. to |
|
4279 also be used as simple variable names. Also make it possible to |
|
4280 use the normal function call syntax to invoke them. |
|
4281 |
2693
|
4282 Tue Feb 18 09:22:04 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2689
|
4283 |
2702
|
4284 * Makefile.in (%.oct:%.o, %.oct:pic/%.o): Use $(SH_LDFLAGS) here. |
|
4285 |
2690
|
4286 * Version 2.0.3 released. |
|
4287 |
2693
|
4288 Tue Feb 18 00:27:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4289 |
|
4290 * toplev.cc (run_command_and_return_output): |
|
4291 Block SIGCHLD while running subprocess. |
|
4292 (cleanup_iprocstream): Unblock it here. |
|
4293 |
|
4294 * sighandlers.h (BLOCK_SIGNAL, BLOCK_CHILD, UNBLOCK_CHILD): Move here. |
|
4295 * sighandlers.cc: From here. |
|
4296 |
2692
|
4297 * toplev.cc (system): Shift then mask exit status. |
|
4298 |
|
4299 * help.cc (try_info): Shift first, then mask exit status. |
|
4300 |
2689
|
4301 * toplev.cc (octave_config_info): Handle option argument. |
|
4302 |
2686
|
4303 Fri Feb 14 16:23:30 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4304 |
2687
|
4305 * oct-stream.cc (octave_base_stream::do_scanf): Don't forget to |
|
4306 check to see if the result matrix needs resizing! |
|
4307 |
2686
|
4308 * Makefile.in (bin-dist): Don't write empty strings to LIBRARIES. |
|
4309 |
2669
|
4310 Thu Feb 13 03:02:08 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4311 |
2676
|
4312 * Makefile.in (stamp-prereq): Depend on stamp-picdir. |
|
4313 (all): Don't depend on stamp-prereq or stamp-picdir. |
|
4314 (stamp-tinst, stamp-interp, libtinst.a, liboctinterp.a): |
|
4315 Do depend on stamp-prereq. |
|
4316 (stamp-picdir): Silence noise about making pic. |
|
4317 (stamp-tinst, stamp-interp): Use $(SH_LD) $(SH_LDFLAGS) instead of |
|
4318 $(CXX) -shared. |
|
4319 |
2675
|
4320 * oct-conf.h.in: Reinstate RLD_FLAG. |
|
4321 * toplev.cc (octave_config_info): Likewise. |
|
4322 |
2672
|
4323 * data.cc (map_d_m, map_m_d, map_m_m): Rename from map. |
|
4324 (Fatan2): Use new function names. |
|
4325 |
|
4326 * pt-fvc.cc (apply_mapper_fcn): Use member function map() instead |
|
4327 of friend function. |
|
4328 |
2669
|
4329 * gripes.cc (gripe_wrong_type_arg (const char*, const string&)): |
|
4330 New function. |
|
4331 |
|
4332 Wed Feb 12 17:27:53 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4333 |
|
4334 * syscalls.cc (symbols_of_syscalls): Add O_ASYNC and O_SYNC. |
|
4335 |
|
4336 Mon Feb 10 01:22:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4337 |
|
4338 * dirfns.cc (Freaddir, Fmkdir, Frmdir, Frename): |
|
4339 Also return status and error message. |
|
4340 |
|
4341 * syscalls.cc (Fdup2, Fexec, Ffork, Ffcntl, Funlink, Fmkfifo, |
|
4342 Fpipe, Fwaitpid): Also return error message. |
|
4343 |
2664
|
4344 Sat Feb 8 17:16:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4345 |
2665
|
4346 * pt-exp.cc (tree_simple_assignment_expression::eval): Return |
|
4347 value of RHS, but (if printing) print complete value of LHS. |
|
4348 |
2664
|
4349 * pr-output.cc (octave_print_internal): Print a new line for empty |
|
4350 string matrices. |
|
4351 |
2663
|
4352 Wed Feb 5 14:30:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4353 |
|
4354 * oct-stream.cc (scanf_format_list::process_conversion): Accept |
|
4355 but don't actually use h, l, and L modifiers. Always insert l |
|
4356 modifier for floating point conversions. |
|
4357 |
2652
|
4358 Fri Jan 31 13:55:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4359 |
|
4360 * pager.cc (do_sync): Always flush the cout stream after writing. |
|
4361 |
2643
|
4362 Wed Jan 29 08:25:29 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4363 |
2648
|
4364 * defaults.cc (exec_path): Don't include bin_dir in std_path. |
|
4365 |
2646
|
4366 * pager.cc (do_sync): Flush the cout stream after writing if |
|
4367 running in interactive or forced_interactive mode. |
|
4368 |
|
4369 * mk-oct-links: Rename from mk-oct-links.in. |
|
4370 Don't use symbolic links. |
|
4371 * Makefile.in: Distribute mk-oct-links, not mk-oct-links.in |
|
4372 (mk-oct-links): Delete target. |
|
4373 (install-oct, bin-dist): Don't depend on mk-oct-links. |
|
4374 Run $(srcdir)/mk-oct-links, not ./mk-oct-links. |
|
4375 |
2643
|
4376 * qr.cc (qr): Doc fix. |
|
4377 |
2638
|
4378 Tue Jan 28 10:48:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4379 |
|
4380 * Makefile.in (install-inc): Create a relative symbolic link. |
|
4381 (install-bin): Create a relative symbolic link. |
|
4382 |
2630
|
4383 Mon Jan 27 12:12:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4384 |
2634
|
4385 * Version 2.0.2 released. |
|
4386 |
|
4387 * Makefile.in (CXXFLAGS_NO_PT_FLAGS): Rename from XALL_CXXFLAGS. |
|
4388 Substitute bsd_gcc_kluge_targets_frag. |
|
4389 |
2630
|
4390 * sysdep.cc (Fsleep): New function. |
|
4391 (Fusleep): New function. |
|
4392 |
|
4393 * toplev.cc (octave_config_info): Don't include RLD_FLAG. |
|
4394 * oct-conf.h.in: Don't define RLD_FLAG |
|
4395 |
2626
|
4396 Sun Jan 26 19:41:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4397 |
|
4398 * sighandlers.cc (sigchld_handler): Block SIGCHLD while |
|
4399 sigchld_hander is running. |
|
4400 |
2624
|
4401 Sat Jan 25 22:36:39 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4402 |
|
4403 * Makefile.in (bin-dist): Update for 2.x. |
|
4404 |
2621
|
4405 Fri Jan 24 10:05:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4406 |
|
4407 * mk-oct-links.in: New arg, -p, to just print list of files to link. |
|
4408 |
|
4409 * lex.l (handle_number): Convert `D' or `d' exponents to `e' |
|
4410 before scanning. |
|
4411 |
2620
|
4412 Thu Jan 23 10:00:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4413 |
|
4414 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_no_op_command): |
|
4415 New function. |
|
4416 * pt-cmd.h, pt-cmd.cc (tree_no_op_command): New class. |
|
4417 * parse.y (make_break_command, make_continue_command, |
|
4418 make_return_command): Where they don't really make sense, turn |
|
4419 these commands into no-ops. Accept return and break if reading a |
|
4420 script file. |
|
4421 * toplev.cc (parse_and_execute): Handle return and break in script |
|
4422 files. Quit executing commands if an error occurs when reading a |
|
4423 script file. Set global_command to 0 after deleting it. |
|
4424 (main_loop): If not interactive or forced_interactive, handle |
|
4425 break and return, and quit executing commands if an error occurs. |
|
4426 Set global_command to 0 after deleting it. |
|
4427 * error.cc (Ferror): Doc fix. |
|
4428 * pt-walk.h (tree_walker): Add declaration for visit_no_op_command. |
|
4429 |
2618
|
4430 Wed Jan 22 20:54:12 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4431 |
|
4432 * input.cc (gnu_readline): If not using readline, flush |
|
4433 rl_outstream after printing prompt. |
|
4434 (octave_gets): Also call flush_octave_stdout() if |
|
4435 forced_interactive, not just if interactive. |
|
4436 (do_input_echo): If forced_interactive, only echo prompt and |
|
4437 command line if also reading a script file. |
|
4438 |
2616
|
4439 Tue Jan 21 23:02:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4440 |
|
4441 * SLList.h: Include "BaseSLList.h", not <BaseSLList.h>. |
|
4442 |
2610
|
4443 Mon Jan 20 11:11:12 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4444 |
2614
|
4445 * lex.l (token_stack): Don't declare static. |
|
4446 * pt-plot.cc (tmp_files): Likewise. |
|
4447 * toplev.cc (octave_atexit_functions): Likewise. |
|
4448 * unwind-prot.cc (unwind_protect_list): Likewise. |
|
4449 |
2613
|
4450 * ops.h (MX_MX_BOOL_OP): Correctly handle case of one or both |
|
4451 arguments being empty. Change all callers. |
|
4452 |
|
4453 * oct-stream.cc (printf_value_cache::looking_at_string): |
|
4454 Handle empty strings correctly now that they are 0x0. |
|
4455 |
2610
|
4456 * file-io.cc: Don't include "syswait.h" here. |
|
4457 |
|
4458 Sun Jan 19 22:38:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4459 |
|
4460 * oct-stream.h (octave_base_stream::seek): Declare offset arg as |
|
4461 streamoff, not streampos. |
|
4462 (octave_stream::seek): Likewise. |
|
4463 * oct-strstrm.h (octave_base_strstream::seek): Likewise. |
|
4464 * oct-stdstrm.h (octave_base_stdiostream::seek): Likewise. |
|
4465 * oct-iostrm.h (octave_base_iostream::seek): Likewise. |
|
4466 * oct-fstrm.h (octave_fstream::seek): Likewise. |
|
4467 |
2609
|
4468 Fri Jan 17 18:13:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4469 |
|
4470 * file-io.cc (Ffflush): Handle stdout as a special case. |
|
4471 |
|
4472 * oct-stream.cc (octave_stream_list::do_get_file_number): |
|
4473 Do the work for octave_stream::get_file_number. |
|
4474 (octave_stream_list::get_file_number): Convert to static function. |
|
4475 |
2608
|
4476 Wed Jan 8 11:42:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4477 |
|
4478 * log.cc (sqrtm): For complex arg case, compute sqrt, not log. |
|
4479 |
2602
|
4480 Tue Jan 7 00:16:41 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4481 |
|
4482 * Version 2.0.1 released. |
|
4483 |
|
4484 Mon Jan 6 00:00:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4485 |
|
4486 * pt-mat.cc (tm_row_const_rep::all_mt): New variable. |
|
4487 (tm_row_const::all_empty): New function. |
|
4488 (tm_row_const::tm_row_const_rep::init): Set all_mt here. |
|
4489 (tm_const::all_mt): New variable. |
|
4490 (tm_const::all_emtpy): New function. |
|
4491 (tm_const::init): Set all_mt here. |
|
4492 (tree_matrix::eval): Return an empty matrix if the list contains |
|
4493 only empty elements. If it contains only empty strings, return an |
|
4494 empty string. |
|
4495 |
2601
|
4496 Sun Jan 5 12:50:25 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4497 |
|
4498 * ops.h (SC_MX_BOOL_OP, MX_SC_BOOL_OP): New arg, empty_result. |
|
4499 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
4500 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
4501 op-s-cm.cc, op-s-m.cc, op-str-str.cc: Change all uses of |
|
4502 SC_MX_BOOL_OP and MX_SC_BOOL_OP macros. Return correct results |
|
4503 for empty matrix cases. |
|
4504 |
|
4505 * pt-fcn.cc (tree_function::eval): If Vdefine_all_return_values is |
|
4506 true, initialize return values before evaluating function, for |
|
4507 compatibility with Matlab. |
|
4508 |
|
4509 * oct-stream.cc (get_size): Correctly set size when arg is scalar. |
|
4510 |
|
4511 Thu Jan 2 12:40:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4512 |
|
4513 * Makefile.in (install-oct): Quote $(OCT_FILES) in for loop to |
|
4514 avoid syntax error from ksh. |
|
4515 |
|
4516 * pr-output.cc (octave_print_internal): Avoid unused parameter |
|
4517 warning from gcc. |
|
4518 |
2600
|
4519 Thu Dec 19 12:13:42 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4520 |
|
4521 * oct-stream.cc (octave_base_stream::do_scanf): |
|
4522 Don't treat %l{e,f,g} differently from %{e,f,g}. |
|
4523 (octave_base_stream::do_oscanf): Likewise. |
|
4524 |
|
4525 * sighandlers.cc (sigchld_handler): Fix typos. |
|
4526 |
2598
|
4527 Wed Dec 18 20:17:23 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4528 |
2599
|
4529 * file-io.cc (Ffgetl, Ffgets): Also return number of characters read. |
|
4530 |
|
4531 * ov-range.cc (octave_range::not): New function. |
|
4532 * ov-range.h (octave_range::uminus): New function. |
|
4533 |
2598
|
4534 * BaseSLList.cc: Include error.h. |
|
4535 (BaseSLList::error): Call ::error() to process error message. |
|
4536 |
2589
|
4537 Fri Dec 13 02:38:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4538 |
|
4539 * ov.cc (octave_value::convert_and_assign): Preserve lhs value if |
|
4540 assignment fails. |
|
4541 |
2586
|
4542 Wed Dec 11 12:33:16 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4543 |
|
4544 * pt-plot.cc (GPLOT_CMD_END): Don't put semicolons at the end of |
|
4545 each plot command; it causes trouble with gnuplot 3.5. |
|
4546 |
2580
|
4547 Tue Dec 10 00:31:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4548 |
2583
|
4549 * Version 2.0 released. |
|
4550 |
2584
|
4551 * pr-output.cc (set_format_style): Don't try to access argv unless |
|
4552 argc > 1. |
|
4553 |
2580
|
4554 * SLList-expr.cc SLList-misc.cc SLList-plot.cc SLList-str.cc |
|
4555 SLList-tc.cc SLList-tm.cc SLList.h SLStack-i.cc SLStack-pc.cc |
|
4556 SLStack-str.cc SLStack-sym.cc SLStack-tok.cc SLStack-ue.cc |
|
4557 SLStack-ui.cc, pt-mat.cc: Include Stack.h, Stack.cc, SLStack.cc, |
|
4558 and SLList.cc as necessary. |
|
4559 |
|
4560 * Stack.cc, SLStack.cc, SLList.cc: New files. |
|
4561 * Makefile.in (SOURCES): Add them to the list. |
|
4562 |
2575
|
4563 Mon Dec 9 12:03:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4564 |
2577
|
4565 * Makefile.in (install-bin): Use $(EXE) suffix so install will |
|
4566 find the right file on cygwin32 systems. |
|
4567 |
2575
|
4568 * ov.h: Declare proper form of do_binary_op as friend to |
|
4569 octave_value class. |
|
4570 |
2572
|
4571 Sat Dec 7 22:00:10 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4572 |
|
4573 * oct-stream.cc (do_printf_conv, do_scanf_conv, |
|
4574 do_oscanf_num_conv, do_oscanf_str_conv): Convert to real |
|
4575 functions instead of CPP macros, using templates where necessary. |
|
4576 (do_oscanf_num_conv, do_oscanf_str_conv): Correctly handle |
|
4577 discarded values. |
|
4578 |
2569
|
4579 Fri Dec 6 00:20:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4580 |
2572
|
4581 * Version 1.94. |
|
4582 |
2571
|
4583 * Map-*.cc, SLList-*.cc, SLStack-*.cc: Include config.h. |
|
4584 |
|
4585 * ov.h: Don't include SLList.h. |
|
4586 |
|
4587 * SLStack.cc: Delete. Move everything to SLStack.h. |
|
4588 |
|
4589 * BaseSLList.h, BaseSLList.cc: New files. Split out the |
|
4590 non-template base class parts of SLList. |
|
4591 |
2569
|
4592 * Makefile.in (TEMPLATE_SRC): Delete. Move files to SOURCES. |
|
4593 * Map.h, Map.cc: Add #pragma interface/implementation. |
|
4594 * SLStack.h, SLStack.cc: Add #pragma interface/implementation. |
|
4595 |
|
4596 * SLList.h, SLList.cc: New files, from libg++, but with #pragma |
|
4597 interface/implementation. |
|
4598 * Makefile.in (SOURCES): Add SLList.cc. |
|
4599 (INCLUDES): Add SLList.h. |
|
4600 |
2566
|
4601 Thu Dec 5 18:36:44 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4602 |
|
4603 * octave.cc: Don't include sun-utils.h. |
|
4604 |
2563
|
4605 Tue Dec 3 23:47:09 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4606 |
|
4607 * op-str-str.cc (eq, ne): Handle operations with scalars. |
|
4608 |
2555
|
4609 Thu Nov 21 12:30:36 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4610 |
|
4611 * ov-str-mat.h (octave_char_matrix_str): Provide transpose and |
|
4612 hermitian operators. |
|
4613 * ov-ch-mat.h (octave_char_matrix): Likewise. |
|
4614 |
2548
|
4615 Wed Nov 20 00:35:57 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4616 |
2554
|
4617 * sighandlers.h (struct octave_interrupt_handler): Provide |
|
4618 forward declaration here. |
|
4619 * sighandlers.cc (octave_interrupt_handler): New struct. |
|
4620 (octave_catch_interrupts): Rename from catch_interrupts. |
|
4621 (octave_ignore_interrupts, octave_set_interrupt_handler): |
|
4622 New functions. |
|
4623 * help.cc, oct-hist.cc, pager.cc, toplev.cc: Use new functions for |
|
4624 handling interrupts so that we can hide the details of whether or |
|
4625 not we have to deal with SIGBREAK. |
|
4626 |
|
4627 * pt-plot.cc [! HAVE_POSIX_SIGNALS] (open_plot_stream): |
|
4628 Simply ignore and restore the interrupt handler here. |
|
4629 |
|
4630 * sighandlers.cc (MAYBE_REINSTALL_SIGHANDLER): New macro. Use it |
|
4631 instead of always checking MUST_REINSTALL_SIGHANDLERS everywhere. |
|
4632 (sigchld_handler): If octave_child_list is empty, wait for any |
|
4633 child, but don't hang, and don't collect status info. |
|
4634 [__EMX__] (sigchld_handler): Save and restore handlers for SIGINT, |
|
4635 SIGBREAK, and SIGCHLD. Ignore them while waiting on children. |
|
4636 (install_signal_handlers): If SIGBREAK exists, handle it like SIGINT. |
|
4637 |
2552
|
4638 * toplev.cc [USE_READLINE] (clean_up_and_exit): |
|
4639 Call rl_deprep_terminal() to restore terminal settings. |
|
4640 |
|
4641 * sysdep.cc [__EMX__ && OS2] (Fextproc): New command. |
|
4642 [__EMX__ && OS2] (FEXTPROC): Alias for Fextproc. |
|
4643 |
|
4644 * Version 1.93. |
|
4645 |
2549
|
4646 * sysdep.cc (octave_chdir): [__EMX__]: Make copy of string before |
|
4647 converting to upper case. |
|
4648 |
2548
|
4649 * getgrent.cc (mk_gr_map): Only set the passwd field if |
|
4650 HAVE_GR_PASSWD is defined. |
|
4651 |
2533
|
4652 Tue Nov 19 12:01:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4653 |
2546
|
4654 * sysdep.cc (OS2_init): New function. |
|
4655 [__EMX__] (sysdep_init): Call it. |
|
4656 |
2542
|
4657 * lex.l (plot_style_token): Add new plot styles for gnuplot 3.6. |
2543
|
4658 * pt-plot.cc (subplot_style::columns_ok): Rename from |
|
4659 subplot_style::errorbars. Recognize more styles and do a better |
|
4660 job of diagnosing column number/style mismatches. |
2542
|
4661 |
2536
|
4662 * sighandlers.cc (my_friendly_exit): If we are called twice, try |
|
4663 to remove the signal handler for SIGABRT and the call abort (). |
|
4664 |
2534
|
4665 * help.cc (Ftype): If a function is defined from a file and |
|
4666 transformed text has not been requested, just print the contents |
|
4667 of the file. |
|
4668 |
2533
|
4669 * parse.y (fold): New functions for constant folding for binary |
|
4670 and unary expressions. Keep track of original text even when |
|
4671 transformations occur. |
|
4672 (make_binary_op, make_boolean_op, make_unary_op): Use them. |
|
4673 (finish_colon_expression, finish_matrix): Keep track of original |
|
4674 text even when transformations occur. |
|
4675 |
|
4676 * help.cc (Ftype): Don't mess with Vps4. |
|
4677 Handle new option `-transformed'. |
|
4678 |
|
4679 * pt-const.h, pt-const.cc (tree_constant::print): |
|
4680 New arg, pr_orig_text. |
|
4681 |
|
4682 * pt-exp.h, pt-exp.cc (tree_colon_expression::is_range_constant): |
|
4683 Delete. |
|
4684 |
|
4685 * pt-exp-base.h (tree_expression::original_text): New virtual function. |
|
4686 pt-exp-base.cc (tree_expression::original_text): Default version. |
|
4687 |
|
4688 * pt-pr-code.h (tree_print_code::print_original_text, |
|
4689 tree_print_code::prefix): New fields. |
|
4690 * pt-pr-code.cc (tree_print_code::visit_constant): Pass |
|
4691 print_original_text to tree_constant::print(). |
|
4692 (tree_print_code::indent): Use prefix instead of Vps4. |
|
4693 * pt-fcn.cc (tree_function::print_function_header, |
|
4694 tree_function::print_function_trailer): Pass Vps4 to |
|
4695 tree_print_code_constructor for prefix. |
|
4696 * pt-misc.cc (tree_statement::maybe_echo_code): Pass Vps4 to |
|
4697 tree_print_code_constructor for prefix. |
|
4698 |
|
4699 * pt-mat.h, pt-mat.cc (tree_matrix::all_elements_are_constant): |
|
4700 Rename from is_matrix_constant. |
|
4701 (tree_matrix_row::all_elements_are_constant): Likewise. |
|
4702 Change all callers. |
|
4703 |
|
4704 Mon Nov 18 14:13:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4705 |
|
4706 * Makefile.in (install-inc): Try harder to create the link from |
|
4707 include/octave to include/octave-VERSION. |
|
4708 |
2524
|
4709 Sun Nov 17 14:14:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4710 |
2527
|
4711 * Makefile.in (parse.cc): Expect 13 shift/reduce conflicts. |
2526
|
4712 |
2525
|
4713 * parse.y (set_stmt_print_flag): New function. |
|
4714 (sep_type): New member for bison %union declaration. |
|
4715 Simplify rules for statement lists keeping track of the type of |
|
4716 the first separator in the values associated with the |
|
4717 nonterminals for the separators. |
|
4718 |
2524
|
4719 * lex.l (handle_identifier): Set lexer_flags.doing_set if the |
|
4720 token is "gset", not "set". |
|
4721 |
|
4722 Sat Nov 16 21:41:26 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4723 |
|
4724 * Makefile.in (parse.cc, lex.cc): Add special rules for these files. |
|
4725 Delete pattern rules for .y and .l files. |
|
4726 |
2522
|
4727 Fri Nov 15 13:48:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4728 |
2523
|
4729 * pt-plot.cc: Put semicolons at the ends of all plot commands. |
|
4730 |
2522
|
4731 * defaults.cc (subst_octave_home): Start subsequent searchs from |
|
4732 the end of the replaced text. |
|
4733 |
|
4734 * pr-output.cc (pr_any_float): Kluge for SCO systems. |
|
4735 |
|
4736 * pr-output.cc (pr_any_float, pr_complex): Don't declare inline. |
|
4737 |
|
4738 * mappers.cc: Include lo-ieee.h, for isinf and isnan on SCO |
|
4739 systems. |
|
4740 |
2512
|
4741 Thu Nov 14 00:06:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4742 |
2520
|
4743 * pt-plot.cc (Fgset, Fgshow): New commands. |
|
4744 (Fshow): Print warning and call gshow. |
|
4745 (Fset): Print warning and call gset. |
|
4746 |
2517
|
4747 * variables.cc (parse_fcn_file): Add unwind-protect for file |
|
4748 pointer, so the file is always closed. |
|
4749 (get_help_from_file): Likewise. |
|
4750 * toplev.cc (parse_and_execute): Likewise. |
|
4751 |
2516
|
4752 * Makefile.in (install-oct): Depend on mk-oct-links. |
|
4753 (mk-oct-links): New target. |
|
4754 |
2512
|
4755 * Version 1.92. |
|
4756 |
2508
|
4757 Wed Nov 13 11:13:22 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4758 |
2512
|
4759 * sighandlers.cc (sys_siglist): [__EMX__]: Add definitions. |
|
4760 |
|
4761 * octave.cc (execute_startup_files): Allow init file name ot be |
|
4762 specified by an environment variable. |
|
4763 |
|
4764 * dirfns.cc (make_absolute): [__EMX__]: Path is already absolute |
|
4765 if it begins with any character followed by a colon. |
|
4766 |
2511
|
4767 * load-save.cc (read_mat_ascii_matrix, get_lines_and_columns, |
|
4768 get_complete_line): New functions, for reading headless text files. |
|
4769 (load_save_format): Add LS_MAT_ASCII, for headless text files. |
|
4770 (do_load): Handle LS_MAT_ASCII files. |
|
4771 Thanks to Mel Melchner <mjm@research.att.com> for initial version |
|
4772 of this code. |
|
4773 |
2508
|
4774 * sysdep.cc: Conditionally include ieeefp.h. |
|
4775 (BSD_init, SCO_init): New functions. |
|
4776 (sysdep_init): Conditionally call them here. |
|
4777 |
2499
|
4778 Tue Nov 12 00:14:56 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4779 |
2508
|
4780 * pt-plot.cc (open_plot_stream): Don't block SIGCHLD. |
|
4781 |
2499
|
4782 * load-save.cc (read_binary_data): When reading string arrays, be |
|
4783 sure to create an octave_char_matrix_str object, not just an |
|
4784 octave_char_matrix object. |
|
4785 (read_ascii_data): Likewise. |
|
4786 |
2497
|
4787 Mon Nov 11 22:52:58 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4788 |
|
4789 * load-save.cc (read_binary_data): Don't forget teminating NUL for |
|
4790 string that we plan to insert. |
|
4791 (read_ascii_data): Likewise. |
|
4792 |
2495
|
4793 Sun Nov 10 16:58:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4794 |
2496
|
4795 * dirfns.cc (Ffnmatch): New function. |
|
4796 |
2495
|
4797 * octave.cc (intern_argv): Use new string_vector constructor. |
|
4798 |
|
4799 * ov-str-mat.cc (octave_char_matrix_str::all_strings): Have |
|
4800 charMatrix::row_as_string() strip trailing whitespace. |
|
4801 |
|
4802 * dirfns.cc (Fglob): new function. |
|
4803 |
|
4804 * sysdep.cc (oct_tilde_expand): Provide version that works on |
|
4805 string vectors too. |
|
4806 (Ftilde_expand): Work on string vector args. |
|
4807 |
|
4808 * load-save.cc (save_binary_data): Call char_matrix_value() to |
|
4809 extract charMatrix from octave_value object, not all_strings(). |
|
4810 (save_ascii_data): Likewise. |
|
4811 * pt-mat.cc (tree_matrix::eval): Likewise. |
|
4812 |
|
4813 * ov.h (octave_value::all_strings): Return string_vector, not |
|
4814 charMatrix. |
|
4815 * ov-base.cc (octave_base_value::all_strings): Likewise. |
|
4816 * ov-str-mat.h, ov-str-mat.cc (octave_char_matrix_str::all_strings): |
|
4817 Likewise. |
|
4818 |
2487
|
4819 Fri Nov 8 09:54:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4820 |
2492
|
4821 * defaults.cc, dynamic-ld.cc, fn-cache.cc, help.cc, oct-hist.cc, |
|
4822 octave.cc, pager.cc, pt-fcn.cc, toplev.cc, utils.cc, variables.cc, |
|
4823 lex.l: Change #include "" to #include <> for defaults.h, |
|
4824 oct-conf.h, oct-gperf.h, y.tab.h, and version.h, to avoid getting |
|
4825 them from $srcdir when we really want the version from the build |
|
4826 directory. (Maybe this should be done for all the include files, |
|
4827 not just those that are auto-generated? Hmm.) |
|
4828 |
2488
|
4829 * defaults.h.in (CXXLIB_LIST, CXXLIB_PATH, FLIB_LIST, FLIB_PATH): |
|
4830 Delete. |
|
4831 |
2487
|
4832 * Makefile.in (install-oct): Use $(INSTALL_PROGRAM) for .oct files. |
|
4833 |
2477
|
4834 Thu Nov 7 07:59:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4835 |
2487
|
4836 * variables.cc (gobble_leading_white_space): New arg, update_pos. |
|
4837 * (is_function_file): Don't update file position information here. |
|
4838 |
2482
|
4839 * Version 1.91. |
|
4840 |
2479
|
4841 * pt-fvc.cc (tree_indirect_ref::reference): If the lhs object is |
|
4842 not a map, convert it to one. |
|
4843 |
|
4844 * ov-typeinfo.h (init_tab_sz): New static member. |
|
4845 |
2477
|
4846 * ov-struct.cc, ov-struct.h: Add hooks for custom memory management. |
|
4847 * ov-scalar.cc, ov-scalar.h: Likewise. |
|
4848 * ov-re-mat.cc, ov-re-mat.h: Likewise. |
|
4849 * ov-range.cc, ov-range.h: Likewise. |
|
4850 * ov-cx-mat.cc, ov-cx-mat.h: Likewise. |
|
4851 * ov-complex.cc, ov-complex.h: Likewise. |
|
4852 * ov-ch-mat.cc, ov-ch-mat.h: Likewise. |
|
4853 |
2474
|
4854 Wed Nov 6 12:32:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4855 |
2482
|
4856 * pager.cc (do_sync): Don't call clear_external_pager() here. |
2476
|
4857 |
2475
|
4858 * pt-const.h (tree_constant::allocator) New static member. |
|
4859 (tree_constant::operator new, tree_constant::operator delete): |
|
4860 Implement with custom allocator. |
|
4861 |
|
4862 * syscalls.cc (Fgetgid, Fgetegid): New functions. |
|
4863 |
|
4864 * sighandlers.cc (sigchld_handler): If necessary, reinstall |
|
4865 handler after call to waitpid(). |
|
4866 |
|
4867 * pager.cc (pager_death_handler): Don't use warning() to print |
|
4868 message. |
|
4869 |
|
4870 * getgrent.cc: New file. |
|
4871 * Makefile.in (DLD_SRC): Add it. |
|
4872 |
|
4873 * ov.cc (octave_value::print_with_name): Call is_map() instead of |
|
4874 print_as_structure(). |
|
4875 * ov-struct.cc (octave_struct::print): Likewise. |
|
4876 |
|
4877 * ov.h, ov.cc, pt-const.h: Delete force_numeric(), make_numeric(), |
|
4878 convert_to_matrix_type(), print_as_structure() member functions. |
|
4879 |
2474
|
4880 * variables.cc (is_function_file): Call gobble_leading_whitespace |
|
4881 here to strip all leading whitespace and comments. |
|
4882 (parse_fcn_file): If reading a function file, call |
|
4883 gobble_leading_whitespace again after resetting parser state to |
|
4884 grab help text. |
|
4885 |
2469
|
4886 Tue Nov 5 13:00:35 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4887 |
2472
|
4888 * syscalls.cc (Fgeteuid, Fgetuid): New functions. |
|
4889 |
|
4890 * getpwent.cc: Use gripe_not_supported from gripes.cc, instead of |
|
4891 local gripe_not_implemented function. |
|
4892 |
2470
|
4893 * input.cc, sysdep.cc, variables.cc: Only include readline.h and |
|
4894 history.h if USE_READLINE is defined. |
|
4895 |
|
4896 * help.cc: Make it compile without warnings even if USE_GNU_INFO |
|
4897 is not defined. |
|
4898 |
2469
|
4899 * sighandlers.h (octave_child_list): Don't define |
|
4900 HAVE_POSIX_SIGNALS HERE. |
|
4901 |
|
4902 * sighandlers.cc (SIGHANDLER_RETURN): New macro. |
|
4903 (generic_sig_handler, sigchld_handler, sigfpe_handler, |
|
4904 sigint_handler, sigpipe_handler): Use it. |
|
4905 (sigchld_handler, sigfpe_handler, sigint_handler, sigpipe_handler): |
|
4906 Only reinstall signal handler if MUST_REINSTALL_SIGHANDLER is defined. |
|
4907 |
2463
|
4908 Sun Nov 3 00:45:30 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4909 |
2466
|
4910 * pt-const.cc (tree_constant::print): Just call val.print(). |
|
4911 * ov-base.cc, ov-ch-mat.cc, ov-colon.cc, ov-complex.cc, |
|
4912 ov-cx-mat.cc, ov-range.cc, ov-re-mat.cc, ov-scalar.cc, |
|
4913 ov-str-mat.cc, ov-struct.cc ov-va-args.cc, ov.cc (print): |
|
4914 Handle pr_as_read_syntax arg. |
|
4915 |
|
4916 * defaults.cc (subst_octave_home): Search for prefix repeatedly in |
|
4917 retval, not s. |
|
4918 |
|
4919 * gripes.h: Make declaration of gripes_not_supported match |
|
4920 definition. |
|
4921 |
2465
|
4922 * mk-oct-links.in: In sed command, match "DEFUN_DLD *( *", not |
|
4923 "DEFUN_DLD_BUILTIN *( *". |
|
4924 |
|
4925 * chol.cc, colloc.cc, dassl.cc, det.cc, eig.cc, expm.cc, fft.cc, |
|
4926 fft2.cc, filter.cc, find.cc, fsolve.cc, fsqp.cc, getpwent.cc, |
|
4927 getrusage.cc, givens.cc, hess.cc, ifft.cc, ifft2.cc, inv.cc, |
|
4928 log.cc, lpsolve.cc, lsode.cc, lu.cc, minmax.cc, npsol.cc, pinv.cc, |
|
4929 qpsol.cc, qr.cc, quad.cc, qzval.cc, rand.cc, schur.cc, sort.cc, |
|
4930 svd.cc, syl.cc, time.cc: Change all uses of DEFUN_DLD_BUILTIN to |
|
4931 be just DEFUN_DLD. |
|
4932 |
|
4933 * defun-dld.h: Eliminate DEFUN_DLD_BUILTIN. |
|
4934 |
2464
|
4935 * syswait.h: Use #ifdef HAVE_SYS_WAIT_H, not #if HAVE_SYS_WAIT_H |
|
4936 to decide whether to include sys/wait.h. |
|
4937 |
|
4938 * pt-exp-base.h (tree_expression): Declare oper() here as a |
|
4939 virtual member function. |
|
4940 |
2463
|
4941 * pt-pr-code.cc (tree_print_code::visit_constant): Check for |
|
4942 string before checking for char_matrix. |
|
4943 |
|
4944 * ov-ch-mat.cc (octave_char_matrix::print): Supply correct number |
|
4945 of args to octave_print_internal(). |
|
4946 |
2457
|
4947 Sat Nov 2 20:44:55 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4948 |
2458
|
4949 * file-io.cc (Ftmpnam): Rename from Foctave_temp_file_name. |
|
4950 |
2457
|
4951 * Makefile.in (DLD_SRC): Move time.cc and getrusage.cc here from |
|
4952 SOURCES. Add getpwent.cc. |
|
4953 |
|
4954 * getrusage.cc: Rename from resource.cc. Make getrusage a |
|
4955 loadable function. |
|
4956 |
|
4957 * time.cc: Rename from timefns.cc. Make time functions loadable. |
|
4958 |
|
4959 * getpwent.cc: New file. |
|
4960 |
2439
|
4961 Wed Oct 30 01:06:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4962 |
2452
|
4963 * Version 1.90. |
|
4964 |
|
4965 * Makefile.in (DISTFILES): Add ChangeLog. |
|
4966 |
2449
|
4967 * ov-range.cc (octave_range::convert_to_str): New function. |
|
4968 |
|
4969 * ov-str-mat.h (octave_char_matrix_str::char_matrix_value): |
|
4970 Delete function. Already handled by octave_char_matrix class. |
|
4971 |
|
4972 * ov-ch-mat.h (octave_char_matrix::convert_to_str): New function. |
|
4973 |
2448
|
4974 * pager.cc (Fmore): Set page_screen_output to 1.0 or 0.0, not |
|
4975 "true" or "false". |
|
4976 |
2447
|
4977 * ov-ch-mat.cc, ov-struct.cc, ov-struct.h, pr-output.cc, |
|
4978 pt-cmd.cc, pt-const.cc, pt-const.h, pt-fcn.cc, pt-fvc-base.cc, |
|
4979 pt-fvc-base.h, pt-fvc.cc, pt-fvc.h, rand.cc, sighandlers.cc, |
|
4980 variables.cc, variables.h: Delete unused code. |
|
4981 |
2445
|
4982 * octave.cc: Only include pwd.h if HAVE_PWD_H. |
|
4983 |
|
4984 * oct-strstrm.h: Include <string>, not <string.h>. |
|
4985 |
2442
|
4986 * defaults.cc, dirfns.cc, file-io.cc, help.cc, input.cc, |
|
4987 oct-hist.cc, oct-procbuf.cc, oct-procbuf.h, octave.cc, pager.h, |
|
4988 procstream.h, pt-misc.cc, pt-plot.cc, sighandlers.cc, strftime.c, |
|
4989 syscalls.cc, sysdep.cc, syswait.h, toplev.cc, utils.cc, |
|
4990 variables.cc: Only include sys/types.h if HAVE_SYS_TYPES_H. |
|
4991 |
2440
|
4992 * error.h (panic): Use GCC_ATTR_NORETURN macro, not NORETURN. |
|
4993 * toplev.h (clean_up_and_exit): Likewise. |
|
4994 * utils.h (jump_to_top_level): Likewise. |
|
4995 |
2439
|
4996 * derfaults.h.in, defaults.cc (local_arch_lib_dir): New variable. |
|
4997 * defaults.cc (set_default_local_arch_lib_dir): New function. |
|
4998 (install_defaults): Call it. |
|
4999 (exec_path): Use Vlocal_arch_lib_dir here. |
|
5000 * toplev.cc (octave_config_info): Add localarchlibdir to structure. |
|
5001 |
2436
|
5002 Tue Oct 29 15:54:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5003 |
2437
|
5004 * Makefile.in (install-oct): Don't do anything if $(OCT_FILES) is |
|
5005 empty. |
|
5006 |
2436
|
5007 * ov-range.cc (octave_range::index): New Function. |
|
5008 (octave_range::all, octave_range::any, octave_range::is_true): |
|
5009 Make these functions work. |
|
5010 |
|
5011 * ov.cc (octave_value::try_assignment_with_conversion): Remove |
|
5012 left over debugging print statements. |
|
5013 |
|
5014 Mon Oct 28 10:49:03 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5015 |
|
5016 * strftime.c: Add missing #endif for previous change. |
|
5017 |
2435
|
5018 Sun Oct 27 14:06:44 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5019 |
|
5020 * oct-hist.cc (do_history): Rewite option parsing to avoid |
|
5021 (probably bogus) errors from g++ on cygwin32 system. |
|
5022 |
|
5023 * strftime.c: Use autoconf macros TIME_WITH_SYS_TIME and |
|
5024 HAVE_SYS_TIME_H to decide which time.h files to include. |
|
5025 |
|
5026 * oct-stream.h, oct-stream.cc (octave_stream::error, |
|
5027 octave_base_stream::error): Rename errno => err_num. |
|
5028 |
2432
|
5029 Sat Oct 26 10:40:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5030 |
2434
|
5031 * oct-hist.cc (do_history): Move declaration of file inside |
|
5032 conditional. |
|
5033 |
2432
|
5034 * defun.h (DEFVAR_INT): Set eternal flag with (svc_fcn != 0) |
|
5035 instead of (sv_fcn ? 1 : 0) |
|
5036 |
2427
|
5037 Fri Oct 25 01:10:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5038 |
2431
|
5039 * ov-ch-mat.h (octave_char_matrix::any): Return 0.0 instead of false. |
|
5040 (octave_char_matrix::all): Likewise. |
|
5041 |
|
5042 * input.cc (Fecho): When binding value of echo_executing_commands, |
|
5043 cast ECHO_* to double. |
|
5044 |
|
5045 * sighandlers.cc (octave_child_list::do_remove): Delete unused |
|
5046 variable `enlarge'. |
|
5047 |
|
5048 * pt-const.h (tree_constant::tree_constant (const tree_constant&)): |
|
5049 Don't pass arg to tree_fvc constructor. |
|
5050 |
2427
|
5051 * resource.cc (getrusage): [HAVE_GETRUSAGE && RUSAGE_TIMES_ONLY]: |
|
5052 Only fill in time values. |
|
5053 |
|
5054 Thu Oct 24 20:37:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5055 |
|
5056 * parse.y: Comment out the %expect declaration so byacc can |
|
5057 compile this file. |
|
5058 (if_cmd_list): Add missing semicolon. |
|
5059 Include <cstdlib> for getenv if using byacc. |
|
5060 |
|
5061 * ov.h: Move typedefs outside of octave_value class scope to avoid |
|
5062 problem with cygwin32 beta16 compiler. |
|
5063 |
2421
|
5064 Fri Oct 18 13:44:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5065 |
2423
|
5066 * ov.h (octave_value::index): Undo previous change. |
|
5067 * ov.cc (octave_value constructors): Call maybe_mutate() in most |
|
5068 cases. |
|
5069 |
|
5070 * ov-complex.cc (octave_complex::index): Avoid implicit type |
|
5071 conversion back to scalar type. |
|
5072 * ov-scalar.cc (octave_scalar::index): Likewise. |
|
5073 |
2421
|
5074 * ov.h (octave_value::index): Call maybe_mutate() on retval before |
|
5075 returning it. |
|
5076 |
2418
|
5077 Wed Oct 16 12:00:11 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5078 |
2420
|
5079 * ov.h (octave_value::struct_elt_val): New optional arg, silent. |
|
5080 * ov-base.h, ov-base.cc, ov-struct.h, ov-struct.cc: Likewise, but |
|
5081 for the derived classes the arg is required. |
|
5082 |
|
5083 * data.cc (Fstruct_contains): Require arguments to be struct and |
|
5084 string, respectively. Call octave_value::struct_elt_val with |
|
5085 silent flag set. |
|
5086 |
2419
|
5087 * pt-mat.cc (tm_row_const::tm_row_const_rep::eval_error, |
|
5088 tm_row_const::tm_row_const_rep::eval_warning): New functions. |
|
5089 (tm_row_const::tm_row_const (const tree_matrix_row&): Use them to |
|
5090 give better error messages. |
|
5091 |
2418
|
5092 * pt-fvc.cc (tree_identifier::eval): Avoid dereferencing null |
|
5093 object_to_eval. |
|
5094 |
2412
|
5095 Tue Oct 15 11:35:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5096 |
|
5097 * op-cs-cm.cc, op-cs-cs.cc, op-cs-m.cc, op-cs-s.cc |
|
5098 (complex_matrix_conv): New functions. |
|
5099 Install preferred assignment conversion and widening ops. |
|
5100 |
|
5101 * op-s-cm.cc, op-s-cs.cc (complex_matrix_conv): New functions. |
|
5102 Install preferred assignment conversion and widening ops. |
|
5103 |
|
5104 * op-s-m.cc, op-s-s.cc (matrix_conv): New functions. |
|
5105 Install preferred assignment conversion and widening ops. |
|
5106 |
|
5107 * ov.cc (octave_value::try_assignment_with_conversion, |
|
5108 octave_value::convert_and_assign, octave_value::try_assignment): |
|
5109 New functions. |
|
5110 (octave_value::assign): Use them to implement twisted logic for |
|
5111 type conversions in assigments. |
|
5112 |
|
5113 * pt-const.h (tree_constant::maybe_mutate): New function. |
|
5114 * ov.h (octave_value::maybe_mutate): New function. |
|
5115 (octave_value::try_narrowing_conversion): New function. |
|
5116 Use just one typedef for widening_op_fcn and numeric_conv_fcn. |
|
5117 Change all uses. |
|
5118 * ov-base.h, ov-complex.h, ov-complex.cc, ov-cx-mat.h, |
|
5119 ov-cx-mat.cc, ov-range.h, ov-range.cc, ov-re-mat.h, ov-re-mat.cc, |
|
5120 Provide derived class versions of try try_narrowing_conversion(). |
|
5121 |
|
5122 * pr-output.cc (octave_print_internal): Don't bother handing off |
|
5123 to scalar/real versions, even when it would seem appropriate. |
|
5124 |
|
5125 * symtab.cc (symbol_def::define (tree_constant *)): Call |
|
5126 maybe_mutate on constants here. |
|
5127 |
2405
|
5128 Mon Oct 14 11:05:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5129 |
2407
|
5130 * pt-fvc.cc (tree_identifier::eval): If retval is undefined and |
|
5131 the object to eval is a constant, print error message. |
2406
|
5132 |
2405
|
5133 * Makefile (distclean): Remove *.oct too. |
|
5134 |
|
5135 * defun-int.h: Include variables.h here. |
|
5136 |
2403
|
5137 Sun Oct 13 10:52:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5138 |
2404
|
5139 * variables.cc (print_symbol_info_line): Never print negative |
|
5140 diminsions. |
|
5141 |
|
5142 * symtab.h (octave_symbol_record_info): Store const_type as string. |
|
5143 (octave_symbol_record_info::init): Delete. Fix constructors. |
|
5144 (octave_symbol_record_info::type_name): Handle const_type as string. |
|
5145 |
2403
|
5146 * octave.cc (maximum_braindamage): Replace "true" with 1.0 and |
|
5147 "false" with 0.0 in calls to bind_builtin_variable(). |
|
5148 Include sun-utils.h here. |
2404
|
5149 (intern_argv): Also bind __argv__. |
2403
|
5150 |
2391
|
5151 Sat Oct 12 13:40:21 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5152 |
2399
|
5153 * Makefile.in (distclean): Also delete mk-oct-links. |
|
5154 |
|
5155 Fri Oct 11 13:13:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5156 |
2391
|
5157 Changes for Octave's new type system: |
|
5158 |
|
5159 * arith-ops.cc: Delete. |
|
5160 * pt-const.h, pt-const.cc: Massive changes. Most functionality |
|
5161 moved to ov.h, ov.cc, and derived classes. |
|
5162 |
|
5163 * variables.h, variables.cc (octave_variable_reference): New class |
|
5164 for getting references to variables and structure elements used in |
|
5165 assignments or value contexts. |
|
5166 |
|
5167 * symtab.h, symtab.cc (symbol_record::define (const octave_value&), |
|
5168 symbol_record::variable_value, symbol_record::variable_reference): |
|
5169 New functions. |
|
5170 (symbol_record_info::type_name): Rename from type_as_string. |
|
5171 |
|
5172 * pt-fvc-base.h, pt-fvc-base.cc (tree_fvc::increment, |
|
5173 tree_fvc::decrement): New functions to replace |
|
5174 tree_fvc::bump_value. |
|
5175 #if 0 assign and lookup_map_element functions. |
|
5176 |
|
5177 * pt-mvr.cc (tree_multi_assignment_expression::eval): |
|
5178 Generated RHS value is now a tree_constant. |
|
5179 |
|
5180 * pt-exp.h, pt-exp.cc (tree_boolean_expression): New class. |
|
5181 (tree_unary_expression, tree_binary_expression, |
|
5182 tree_boolean_expression): Move codes here from tree_expression. |
|
5183 (tree_simple_assignment_expression): Cope with changes to way of |
|
5184 doing assignments. |
|
5185 |
|
5186 * pt-exp-base.h, pt-exp-base.cc (enum type): Delete codes for |
|
5187 unary and binary ops. |
|
5188 (tree_expression::expression_type): Delete. |
|
5189 (tree_expression::is_logically_true): Hand off to |
|
5190 octave_value::is_true to do real work. |
|
5191 |
|
5192 * pr-output.h, pr-output.cc (any_element_is_inf_or_nan, |
|
5193 all_elements_are_ints): Delete. Call member new functions for |
|
5194 these operations. |
|
5195 (free_format, plus_format, bank_format, hex_format, |
|
5196 compact_format, print_e, print_big_e): Use bool, not int. |
|
5197 (octave_print_internal): Hand off to scalar/real versions when |
|
5198 appropriate. |
|
5199 |
|
5200 * octave.cc (main): Call initialize_types() and install_ops(). |
|
5201 (verbose_usage): Add WWW address to output. |
|
5202 |
|
5203 * parse.y (indirect_ref): Handle by making a tree instead of a |
|
5204 list using new version of tree_indirect_ref class. |
|
5205 |
|
5206 * parse.y (make_boolean_op): New function. Use it instead of |
|
5207 make_binary_op to create trees for && and || ops. |
|
5208 (make_binary_op): Codes come from tree_binary_expression now, |
|
5209 instead of tree_expression. |
|
5210 (make_unary_op): Codes come from tree_unary_expression now, |
|
5211 instead of tree_expression. |
|
5212 (make_boolean_op): Codes come from tree_boolean_expression. |
|
5213 |
|
5214 *parse.y (tree_constant_type): Change type to tree_constant* from |
|
5215 octave_value*, and rename from octave_value_type. Change uses. |
|
5216 |
|
5217 * defun.h (DEFVAR_INT): Pass octave_value not pointer to |
|
5218 octave_value for defn when creating builtin_variable. |
|
5219 |
|
5220 * gripes.h, gripes.cc (gripe_invalid_conversion): Args are |
|
5221 strings, not char*. |
|
5222 (gripe_implicit_conversion, gripe_divide_by_zero): New extern |
|
5223 gripe functions. |
|
5224 |
|
5225 * mkbuiltins: For each file, create a separate static function to |
|
5226 install builtins, then create another single extern function to |
|
5227 call all of them. |
|
5228 |
|
5229 * pt-fcn.cc (tree_function::bind_nargin_and_nargout): |
|
5230 Just pass doubles and let symbol_record::define handle creating |
|
5231 new value. |
|
5232 |
|
5233 * pt-pr-code.cc, pt-pr-code.h (visit_constant): Renamed from |
|
5234 visit_octave_value. |
|
5235 (visit_unary_expression): Use tree_expression::is_prefix_op() |
|
5236 instead of switch on op types. |
|
5237 |
|
5238 * pt-walk.h (visit_constant): Renamed from visit_octave_value. |
|
5239 |
|
5240 * pt-misc.cc (initialize_undefined_elements): Get reference to |
|
5241 tmp, then assign. |
|
5242 * pt-cmd.cc (do_for_loop_once): Likewise, for loop identifier. |
|
5243 |
|
5244 * input.cc (generate_struct_completions, looks_like_struct): Cast |
|
5245 tmp_fvc to tree_constant*, not octave_value*. |
|
5246 (get_user_input): Call print() on retval, not eval(1). |
|
5247 |
|
5248 * help.cc (Ftype): Cast defn to tree_constant*, not octave_value*. |
|
5249 |
|
5250 * balance.cc: Fix docstring. |
|
5251 |
|
5252 * dassl.cc, fsolve.cc, load-save.cc, lsode.cc, npsol.cc, qpsol.cc, |
|
5253 quad.cc: |
|
5254 Include pt-fvc.h. |
|
5255 |
|
5256 * data.cc (Fstruct_contains): call octave_value::struct_elt_val, |
|
5257 not octave_value::lookup_map_element. |
|
5258 |
|
5259 * dirfns.cc (Fcd): Pass directory name as string directly to |
|
5260 bind_builtin_variable instead of creating new octave_value. |
|
5261 |
|
5262 * toplev.cc: Include pt-fvc.h and lo-mappers.h |
|
5263 |
|
5264 * data.cc, error.cc, file-io.cc, load-save.cc, pager.cc, |
|
5265 pt-mat.cc, pt-plot.cc, syscalls.cc, toplev.cc: |
|
5266 Include variables.h. |
|
5267 |
|
5268 * Array-tc.cc, Map-tc.cc, SLList-misc.cc SLList-tc.cc, data.cc, |
|
5269 defaults.cc, dynamic-ld.cc, error.cc, gripes.cc, lex.l, octave.cc, |
|
5270 oct-map.h, oct-map.cc, oct-obj.h, pt-cmd.cc, pt-exp.cc, pt-fcn.cc, |
|
5271 pt-fvc-base.cc, pt-mat.cc, pt-misc.cc, pt-mvr-base.cc, pt-mvr.h, |
|
5272 resource.cc, strfns.cc, sysdep.cc, timefns.cc, toplev.cc: |
|
5273 Include ov.h instead of pt-const.h. |
|
5274 |
|
5275 * xpow.cc (any_element_is_negative): Delete. |
|
5276 (xpow and elem_xpow functions): Check conformance here. |
|
5277 |
|
5278 * xdiv.cc (mx_leftdiv_conform, mx_div_conform): |
|
5279 Now template-based, taking Matrices instead of dimensions as args. |
|
5280 Change all callers. |
|
5281 |
|
5282 * op-cm-cm.cc, op-cm-cm.h, op-cm-cs.cc, op-cm-cs.h, op-cm-m.cc, |
|
5283 op-cm-m.h, op-cm-s.cc, op-cm-s.h, op-cs-cm.cc, op-cs-cm.h, |
|
5284 op-cs-cs.cc, op-cs-cs.h, op-cs-m.cc, op-cs-m.h, op-cs-s.cc, |
|
5285 op-cs-s.h, op-m-cm.cc, op-m-cm.h, op-m-cs.cc, op-m-cs.h, op-m-m.cc, |
|
5286 op-m-m.h, op-m-s.cc, op-m-s.h, op-s-cm.cc, op-s-cm.h, op-s-cs.cc, |
|
5287 op-s-cs.h, op-s-m.cc, op-s-m.h, op-s-s.cc, op-s-s.h, |
|
5288 op-str-str.cc, op-str-str.h, ops.cc, ops.h, ov-base.cc, ov-base.h, |
|
5289 ov-ch-mat.cc, ov-ch-mat.h, ov-colon.cc, ov-colon.h, ov-complex.cc, |
|
5290 ov-complex.h, ov-cx-mat.cc, ov-cx-mat.h, ov-range.cc, ov-range.h, |
|
5291 ov-re-mat.cc, ov-re-mat.h, ov-scalar.cc, ov-scalar.h, ov-str-mat.cc, |
|
5292 ov-str-mat.h, ov-struct.cc, ov-struct.h, ov-typeinfo.cc, |
|
5293 ov-typeinfo.h, ov-va-args.cc, ov-va-args.h, ov.cc, ov.h: |
|
5294 New files for Octave's new type system. |
|
5295 * Makefile.in: Add them to the appropriate lists. |
|
5296 |
|
5297 Sat Sep 14 21:58:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5298 |
|
5299 * mkbuiltins: Use .df instead of .def. |
|
5300 Write one function for each .df file, then call them |
|
5301 all in install_builtin_functions(). |
|
5302 * Makefile.in: Handle .df instead of .def. |
|
5303 |
|
5304 * balance.cc (balance): Fix typo in doc string. |
|
5305 |
|
5306 Wed Aug 28 21:01:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5307 |
|
5308 * octave.cc (verbose_usage): Include WWW address and bug-octave |
|
5309 mailing list address. |
|
5310 |
2354
|
5311 Tue Aug 20 17:41:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5312 |
2358
|
5313 * Makefile.in: Only define pattern rules for making .oct files if |
|
5314 OCTAVE_LITE is true. |
|
5315 Only add pic/ to $(TI_OBJ) if $(SHARED_LIBS) is true. |
|
5316 (stamp-picdir): Only create a pic subdirectory if SHARED_LIBS or |
|
5317 OCTAVE_LITE is true AND CPICFLAG or CXXPICFLAG is not empty. |
|
5318 |
2354
|
5319 * minmax.cc (Fmin, Fmax): Deal with changes to Matrix class |
|
5320 min/max methods. |
|
5321 |
2345
|
5322 Thu Jul 25 01:42:38 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5323 |
2348
|
5324 * input.cc (generate_possible_completions): Force the names to be |
|
5325 unique. |
|
5326 |
2345
|
5327 * load-save.cc (read_mat_binary_data): Expect to read terminating |
|
5328 NUL character in the variable name. |
|
5329 (save_mat_binary_data): Likewise, save it here. |
|
5330 |
2341
|
5331 Wed Jul 24 05:08:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5332 |
2343
|
5333 * lsode.cc (Flsode): Don't set the return value if an error |
|
5334 occurred during integration. |
2344
|
5335 * dassl.cc (Fdassl): Likewise. |
2343
|
5336 |
2341
|
5337 * file-io.cc (symbols_of_file_io): Redefine values of SEEK_SET, |
|
5338 SEEK_CUR, and SEEK_END for Matlab compatibility. |
|
5339 * oct-stream.cc (seek): Check for compatible values of ORIGIN arg. |
|
5340 Also handle "bof", "cof", and "eof". |
|
5341 |
2338
|
5342 Fri Jul 19 15:24:36 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5343 |
|
5344 * pt-const.cc: When creating octave_value_reps from ComplexMatrix |
|
5345 values, check to see if all the elements are actually real. |
|
5346 |
2330
|
5347 Tue Jul 16 10:53:42 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5348 |
2341
|
5349 * input.cc (decode_prompt_string): Swap meanings of \h and \H. |
2330
|
5350 |
|
5351 Mon Jul 15 16:01:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5352 |
|
5353 * toplev.cc (run_command_and_return_output): Renamed from do_system. |
|
5354 (Fsystem): Make `system ("emacs")' work as one would expect. |
|
5355 |
|
5356 Sun Jul 14 17:34:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5357 |
|
5358 * file-io.cc (Ffopen, Ffread, Ffwrite): Update doc strings, |
|
5359 correctly handle default architecture and precision args. |
|
5360 |
|
5361 * load-save.cc (mopt_digit_to_float_format): Rename from |
|
5362 get_floating_point_format. |
|
5363 (float_format_to_mopt_digit): New function. |
|
5364 |
|
5365 * oct-stream.cc (octave_base_stream::read, octave_base_stream::write): |
|
5366 Simplify by calling Matrix::read and Matrix::write to do real work |
|
5367 of reading, writing, and format conversion. |
|
5368 |
|
5369 * oct-stream.h (octave_base_stream): Move data_type enum to |
|
5370 liboctave/data-conv.h. Use float_format from |
|
5371 liboctave/mach-info.h instead of arch_type enum. |
|
5372 |
|
5373 * sysdep.h, sysdep.cc (octave_words_big_endian, ten_little_endians): |
|
5374 Delete. Now part of oct_mach_info class in liboctave. |
|
5375 |
|
5376 Tue Jul 9 11:18:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5377 |
|
5378 * arith-ops.cc, balance.cc, dassl.cc, data.cc, filter.cc, find.cc, |
|
5379 fsolve.cc, load-save.cc, log.cc, lsode.cc, minmax.cc, npsol.cc, |
|
5380 oct-obj.cc, oct-stream.cc, pr-output.cc, pt-cmd.cc, pt-const.cc, |
|
5381 pt-fvc.cc, pt-plot.cc, quad.cc, rand.cc, sighandlers.cc, sort.cc, |
|
5382 syscalls.cc, unwind-prot.cc, xdiv.cc, xpow.cc: |
|
5383 When indexing arrays, use operator() instead of elem() so that |
|
5384 bounds checking can be done consistently. |
|
5385 |
|
5386 Mon Jun 24 02:13:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5387 |
|
5388 * Makefile.in (install-oct): Use INSTALL_PROGRAM, instead of |
|
5389 INSTALL_DATA for installing shared libraries. |
|
5390 |
|
5391 * lex.l (grab_help_text): Ignore all initial comment characters, |
|
5392 not just the first. |
|
5393 * variables.cc (gobble_leading_white_space): Likewise. |
|
5394 |
|
5395 Sat Jun 22 22:43:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5396 |
|
5397 * input.h, input.cc (octave_completion_matches_called): New varaible. |
|
5398 (Fcompletion_matches): Set it to true on a successful call. |
|
5399 * toplev.cc (main_loop): If octave_completion_matches_called is |
|
5400 true, don't increment current_command_number. |
|
5401 |
|
5402 Thu Jun 13 03:52:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5403 |
|
5404 * variables.cc (is_mapper_function_name, |
|
5405 is_builtin_function_name): New functions. |
|
5406 (Fdocument): Use them. |
|
5407 Define as regular function, not a text style function. |
|
5408 |
|
5409 Thu Jun 6 00:09:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5410 |
|
5411 * pt-plot.cc: Handle new built-in variable `gnuplot_has_frames'. |
|
5412 |
|
5413 Wed Jun 5 14:45:04 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5414 |
|
5415 * input.cc (decode_prompt_string): \h now means the whole host |
|
5416 name and \H is the host name up to the first `.'. |
|
5417 |
|
5418 Thu May 30 23:41:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5419 |
|
5420 * fn-cache.cc (octave_fcn_file_name_cache::do_list): Always |
|
5421 recompute the lists of function files instead of trying to cache |
|
5422 them. |
|
5423 |
|
5424 Tue May 28 12:05:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5425 |
|
5426 * utils.cc (warn_old_style_preference): New function. |
|
5427 (check_preference): Use it. |
|
5428 |
|
5429 * fn-cache.h: Include <ctime> here. |
|
5430 |
|
5431 Fri May 24 00:57:14 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5432 |
|
5433 * input.cc (completion_matches): Don't return empty string_vectors. |
|
5434 |
|
5435 * octave.cc (long_opts): Add braindead. |
|
5436 |
|
5437 Thu May 23 01:49:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5438 |
|
5439 * input.cc (gnu_readline): New optional arg, force_readline. |
|
5440 (get_user_input): Use it. |
|
5441 |
|
5442 * pt-const.cc (OCT_VAL_REP::assign): If converting the rhs to a |
|
5443 numeric value, convert a copy, not the actual object. |
|
5444 (OCT_VAL_REP::do_index): Prevent s([]) from resulting in a string |
|
5445 with zero rows. |
|
5446 |
|
5447 * mappers.cc: Handle toascii here. |
|
5448 * strfns.cc: Not here. |
|
5449 |
|
5450 * mappers.cc: Handle tolower and toupper here. |
|
5451 * mappers.h: Rename can_return_complex_for_real to flag and |
|
5452 overload meaning for ch_mapper. |
|
5453 * pt-fvc.cc (apply_mapper_fcn): Handle overloaded meaning. |
|
5454 |
|
5455 * syscalls.cc (stat): Return 3 values instead of just 1. |
|
5456 (lstat): Likewise. |
|
5457 |
|
5458 Wed May 22 02:34:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5459 |
|
5460 * pt-const.cc (OCT_VAL_REP::make_numeric): For string to number |
|
5461 conversions, correctly set type tag before calling force_numeric. |
|
5462 (do_binary_op): Force string to number conversion if both args are |
|
5463 strings and we are doing some sort of comparison operation. |
|
5464 |
|
5465 * Makefile.in (stamp-tinst, stamp-interp): Use SH_TERMLIBS and |
|
5466 SH_LIBS instead of TERMLIBS and LIBS. |
|
5467 |
|
5468 * pt-const.cc (do_unary_op): Add special case to handle |
|
5469 transposing strings. |
|
5470 |
|
5471 * pt-mat.cc (Vstring_fill_char): New variable. |
|
5472 (symbols_of_pt_mat): DEFVAR it. |
|
5473 |
|
5474 * input.cc (generate_struct_completions, |
|
5475 generate_possible_completions): Return string_vector, not char **. |
|
5476 Change all callers. |
|
5477 |
|
5478 * pt-const.cc (lookup_map_element): Use substr() correctly. |
|
5479 |
|
5480 Tue May 21 21:37:17 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5481 |
|
5482 * oct.h: New file. |
|
5483 * Makefile.in (INCLUDES): Add it to the list. |
|
5484 |
|
5485 * octave.cc: New args --no-site-file and --no-init-file. Delete |
|
5486 --ignore-init-file. The flag --norc (-f) implies both |
|
5487 --no-site-file and --no-init-file. |
|
5488 |
|
5489 Fri May 17 01:54:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5490 |
|
5491 * input.cc (Fcompletion_matches): New function. |
|
5492 |
|
5493 * utils.cc (get_fcn_file_names): Delete. |
|
5494 * help.cc (simple_help): Use new file name cache instead of |
|
5495 calling get_fcn_file_names. |
|
5496 * variables.cc (make_name_list): Likewise. |
|
5497 |
|
5498 * fn-cache.h, fn-cache.cc, Map-fnc.cc: New files. |
|
5499 * Makefile.in: Add them to the lists. |
|
5500 |
|
5501 * Makefile.in (uninstall): Install in octincludedir, not includedir. |
|
5502 |
|
5503 * pt-plot.h: Include <csignal> here. |
|
5504 |
|
5505 Thu May 16 10:52:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5506 |
|
5507 * oct-stream.cc (octave_stream::oscanf, octave_base_stream::oscanf, |
|
5508 octave_base_stream::do_oscanf): New functions for backward |
|
5509 compatibility with older versions of Octave. |
|
5510 (scanf_format_elt, scanf_format_list): Keep track of width specifier. |
|
5511 * file-io.cc (Fscanf): New function. |
|
5512 (Fscanf, Ffscanf, Fsscanf): Handle compatibility arg. |
|
5513 |
|
5514 Wed May 15 01:00:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5515 |
|
5516 * oct-stream.cc (do_scanf): If doing '%c' conversion, unset |
|
5517 ios::skipws on input stream. |
|
5518 |
|
5519 * sighandlers.h, sighandlers.cc (octave_child, octave_child_list): |
|
5520 New classes for keeping track of the child processes we create. |
|
5521 (sigchld_handler): Check in octave_child_list to see if there is |
|
5522 anything we can do for the child that died. |
|
5523 * pager.cc: Register child pager process. |
|
5524 * pt-plot.cc: Likewise, for the plotter. |
|
5525 * Array-oc.cc: New file |
|
5526 * Makefile.in (TI_SRC): Add it to the list. |
|
5527 |
|
5528 * pager.cc (do_sync): Don't check error_state. |
|
5529 (flushing_output_to_pager): New static variable. |
|
5530 (flush_octave_stdout): Use it to avoid doing anything if already |
|
5531 flushing output. |
|
5532 |
|
5533 * sighandlers.cc (sigchld_handler): Call warning instead of |
|
5534 writing directly to cerr. |
|
5535 (sigpipe_handler): Call warning instead of message. |
|
5536 |
|
5537 * octave.cc (main): Call install_signal_handlers, |
|
5538 initialize_file_io, initialize_symbol_tables, and install_builtins |
|
5539 before parsing command line options. |
|
5540 |
|
5541 * user-prefs.h, user-prefs.cc: Delete. |
|
5542 |
|
5543 * utils.cc (check_preference): Move here. |
|
5544 * user-prefs.cc: From here. |
|
5545 |
|
5546 * defaults.cc: New file. Move initialization stuff from |
|
5547 variables.cc. Move DEFVARS for EDITOR, EXEC_PATH, LOADPATH, |
|
5548 IMAGEPATH, and OCTAVE_VERSION here. |
|
5549 |
|
5550 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5551 INFO_FILE and INFO_PROGRAM. |
|
5552 * help.cc: Move all of that here. |
|
5553 (symbols_of_help): Add DEFVARS for INFO_FILE and INFO_PROGRAM. |
|
5554 |
|
5555 Tue May 14 00:23:06 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5556 |
|
5557 * pager.cc (do_sync): Be more defensive about sending stuff to the |
|
5558 external pager. |
|
5559 * sighandlers.cc (sigchld_handler): For now, only wait for |
|
5560 octave_pager_pid. Don't call error(). Do set octave_pager_pid to |
|
5561 -1 if the pager process no longer exists. |
|
5562 |
|
5563 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5564 PWD. |
|
5565 * dirfns.cc: Move all of that here. |
|
5566 (symbols_of_dirfns): New function. |
|
5567 * variables.cc (install_builtin_variables): Call it. |
|
5568 |
|
5569 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5570 default_save_format and save_precision. |
|
5571 * load-save.cc: Move all of that here. |
|
5572 (symbols_of_load_save): New function. |
|
5573 * variables.cc (install_builtin_variables): Call it. |
|
5574 |
|
5575 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5576 warn_divide_by_zero. |
|
5577 * arith-ops.cc: Move all of that here. |
|
5578 (symbols_of_arith_ops): New function. |
|
5579 * variables.cc (install_builtin_variables): Call it. |
|
5580 |
|
5581 * mappers.cc: Add wrappers for ctype is* functions so that they |
|
5582 will work on systems that only define them as macros. |
|
5583 |
|
5584 Mon May 13 00:27:08 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5585 |
|
5586 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5587 suppress_verbose_help_message. |
|
5588 * help.cc: Move all of that here. |
|
5589 (symbols_of_help): New function. |
|
5590 * variables.cc (install_builtin_variables): Call it. |
|
5591 |
|
5592 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5593 treat_neg_dim_as_zero. |
|
5594 * pt-const.cc: Move all of that here. |
|
5595 |
|
5596 * pager.cc (octave_pager_stream::do_sync): Don't return early if |
|
5597 not interactive. |
|
5598 |
|
5599 * data.h: New file. |
|
5600 * Makefile.in (INCLUDES): Add it to the list. |
|
5601 * data.cc (symbols_of_data): New function. Move definition of I, |
|
5602 Inf, J, NaN, e, eps, i, inf, j, nan, pi, realmin, and realmax here. |
|
5603 * variables.cc: From here. |
|
5604 (install_builtin_variables): Call symbols_of_data. |
|
5605 |
|
5606 * file-io.cc (symbols_of_file_io): New function. Move definition |
|
5607 of SEEK_CUR, SEEK_END, SEEK_SET, stdin, stdout, stderr here. |
|
5608 * variables.cc: From here. |
|
5609 (install_builtin_variables): Call symbols_of_file_io. |
|
5610 |
|
5611 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5612 do_fortran_indexing, implicit_str_to_num_ok, |
|
5613 ok_to_lose_imaginary_part, prefer_column_vectors, |
|
5614 prefer_zero_one_indexing, print_answer_id_name, |
|
5615 propagate_empty_matrices, resize_on_range_error, and |
|
5616 struct_levels_to_print. |
|
5617 * pt-const.cc: Move all of that here. |
|
5618 (symbols_of_pt_const): New function. |
|
5619 * variables.cc (install_builtin_variables): Call it. |
|
5620 * pt-fvc.cc (tree_identifier::assign): Use Vresize_on_range_error |
|
5621 instead of user_pref.resize_on_range_error here. |
|
5622 * load-save.cc (save_mat_binary_data): Use Vimplicit_str_to_num_ok |
|
5623 instead of user_pref.implicit_str_to_num_ok here. |
|
5624 * utils.cc (empty_arg): Use Vpropagate_empty_matrices instead of |
|
5625 user_pref.propagate_empty_matrices here. |
|
5626 * pt-exp-base.cc (tree_expression::is_logically_true): Likewise.. |
|
5627 |
|
5628 * pt-fcn.cc (symbols_of_pt_fcn): Also move DEFVAR for |
|
5629 default_return_value here. |
|
5630 |
|
5631 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5632 ps1, ps2, ps4, and completion_append_char. |
|
5633 * input.cc: Move all of that here. |
|
5634 (symbols_of_input): New function. |
|
5635 * variables.cc (install_builtin_variables): Call it. |
|
5636 * pt-pr-code.cc (indent): Use Vps4 instead of user_pref.ps4 here. |
|
5637 * help.cc (Ftype): Also here. |
|
5638 |
|
5639 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5640 automatic_replot, gnuplot_binary, and gnuplot_has_multiplot. |
|
5641 * pt-plot.cc: Move all of that here. |
|
5642 (symbols_of_pt_plot): New function. |
|
5643 * variables.cc (install_builtin_variables): Call it. |
|
5644 |
|
5645 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5646 beep_on_error. |
|
5647 * error.cc: Move all of that here. |
|
5648 (symbols_of_error): New function. |
|
5649 * variables.cc (install_builtin_variables): Call it. |
|
5650 |
|
5651 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5652 empty_list_elements_ok. |
|
5653 * pt-mat.cc: Move all of that here. |
|
5654 (symbols_of_pt_mat): New function. |
|
5655 * variables.cc (install_builtin_variables): Call it. |
|
5656 |
|
5657 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5658 define_all_return_values, return_last_computed_value, and |
|
5659 silent_functions. |
|
5660 * pt-fcn.cc: Move all of that here. |
|
5661 (symbols_of_pt_fcn): New function. |
|
5662 * variables.cc (install_builtin_variables): Call it. |
|
5663 |
|
5664 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5665 whitespace_in_literal_matrix. |
|
5666 * lex.l: Move all of that here. |
|
5667 (symbols_of_lex): New function. |
|
5668 * variables.cc (install_builtin_variables): Call it. |
|
5669 |
|
5670 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5671 warn_assign_as_truth_value, warn_comma_in_global_decl, |
|
5672 warn_function_name_clash, and warn_missing_semicolon. |
|
5673 * parse.y: Move all of that here. |
|
5674 (symbols_of_parse): New function. |
|
5675 * variables.cc (install_builtin_variables): Call it. |
|
5676 |
|
5677 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5678 output_precision, output_max_field_width, print_empty_dimensions, |
|
5679 and split_long_rows. |
|
5680 * pr-output.cc: Move all of that here. |
|
5681 (symbols_of_pr_output): New function. |
|
5682 * variables.cc (install_builtin_variables): Call it. |
|
5683 |
|
5684 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5685 page_screen_output, page_output_immediately, and pager_binary. |
|
5686 * pager.cc: Move all of that here. |
|
5687 |
|
5688 * user-prefs.h (check_preference): Provide declaration. |
|
5689 * user-prefs.cc (check_preference): Make external. |
|
5690 |
|
5691 * toplev.cc (Foctave_config_info): New function. |
|
5692 |
|
5693 * oct-conf.h.in: New file |
|
5694 * Makefile.in (oct-conf.h): New target. |
|
5695 Add it to the appropriate lists. |
|
5696 |
|
5697 * sighandlers.cc (sigchld_handler): Don't complain about wait |
|
5698 returning a negative value. |
|
5699 |
|
5700 * file-io.cc (Fsscanf, Fsprintf): Pass true for second arg of |
|
5701 octave_stream constructor. |
|
5702 |
|
5703 * oct-stream.h (octave_stream): New field, preserve. |
|
5704 (octave_stream::~octave_stream): If preserve, don't delete rep. |
|
5705 |
|
5706 * pager.cc (symbols_of_pager): Set default for |
|
5707 page_output_immediately to 0. |
|
5708 |
|
5709 * toplev.cc (do_system): Correctly handle return_output. |
|
5710 Append ends to output_buf before calling str(). |
|
5711 |
|
5712 * variables.cc: If M_PI and M_E are available, use them. |
|
5713 |
|
5714 * mk-oct-links.in (links_dir): If old link exists, delete it first. |
|
5715 |
|
5716 Sun May 12 01:46:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5717 |
|
5718 * Makefile.in (DISTFILES): List defaults.h.in and oct-gperf.h here. |
|
5719 (INCLUDES): Not here. |
|
5720 (install-inc): New target. |
|
5721 (uninstall): Also delete libraries and include files. |
|
5722 (install-inc): If linkdir is a directory, leave it alone. |
|
5723 (TERMLIBS, LIBPLPLOT, LIBDLFCN): Don't substitute here (now in |
|
5724 Makeconf). |
|
5725 |
|
5726 * oct-stream.cc (octave_base_stream::do_read): Provide initial |
|
5727 value for tmp var. |
|
5728 |
|
5729 * pt-walk.h, pt-pr-code.h, pt-pr-code.cc: New tree-walking classes. |
|
5730 * Makefile.in: Add them to the appropriate lists. |
|
5731 * pt-fvc-base.h, pt-exp-base.cc, pt-fvc-base.cc, pt-mvr-base.cc, |
|
5732 pt-base.cc, pt-mvr.cc, pt-mat.h, pt-mat.cc, pt-fvc.cc, |
|
5733 pt-const.cc, pt-cmd.cc, pt-const.h, pt-misc.cc, pt-plot.cc, |
|
5734 pt-fcn.cc, pt-plot.h, pt-mvr.h, pt-mvr-base.h, pt-misc.h, |
|
5735 pt-fcn.h, pt-exp.h, pt-exp.cc, pt-exp-base.h, pt-fvc.h, pt-cmd.h, |
|
5736 pt-base.h: |
|
5737 Replace print_code stuff with accept() functions. |
|
5738 Add member access functions where necessary. |
|
5739 * help.cc (Ftype): Update to use new method of walking trees to |
|
5740 print text representation of user-defined functions. |
|
5741 |
|
5742 * file-io.cc (Ffscanf): Update doc string. |
|
5743 (Fsscanf): Likewise. |
|
5744 |
|
5745 * oct-stream.cc (octave_base_stream::do_read): Correctly set max_size. |
|
5746 Pad mval with zeros on final resize. |
|
5747 (octave_base_stream::do_scanf): Likewise. |
|
5748 (do_scanf_conv): Correctly resize mval. |
|
5749 |
|
5750 Sat May 11 05:14:09 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5751 |
|
5752 * pager.cc (octave_pager_buf::sync): Correctly set bypass_pager. |
|
5753 |
|
5754 * lex.l (<MATRIX>{SNLCMT}*\]{S}*): Match SNLCMT, not just SNL. |
|
5755 |
|
5756 Fri May 3 11:05:30 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5757 |
|
5758 * pt-const.cc (OCT_VAL_REP::set_index): Complain if type can't be |
|
5759 indexed. |
|
5760 |
|
5761 * input.cc (get_user_input): Don't increment input line number if |
|
5762 input is coming from eval string. |
|
5763 |
|
5764 * user-prefs.cc: Allow empty strings for prompts. |
|
5765 |
|
5766 Thu May 2 10:50:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5767 |
|
5768 * pt-mvr.h (class tree_oct_obj): Declare values data member const. |
|
5769 |
|
5770 Sun Apr 28 03:16:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5771 |
|
5772 * user-prefs.h (user_preferences): New field, |
|
5773 `page_output_immediately'. |
|
5774 * user-prefs.cc (init_user_prefs): Initialize it. |
|
5775 (page_output_immediately): New function. |
|
5776 * pager.cc (syms_of_pager): Add DEFVAR. |
|
5777 (really_flush_to_pager): New file-scope variable. |
|
5778 (flush_octave_stdout): Set and restore it. |
|
5779 (octave_pager_buf::sync): Check it, user_pref.page_screen_output, |
|
5780 and user_pref.page_output_immediately to decide when to really |
|
5781 flush output. |
|
5782 (more_than_a_screenful): New function. If paging but not |
|
5783 immediately, then check this too. |
|
5784 |
|
5785 * pager.cc (default_pager): Move here from variables.cc. If pager |
|
5786 is less and LESS is not in the environment, append useful flags. |
|
5787 (symbols_of_pager): New function. |
|
5788 * variables.cc (install_builtin_variables): Call it. |
|
5789 Delete pager-related DEFVARs. |
|
5790 |
|
5791 * syswait.h (WIFSIGNALLED): Define if sys/wait.h doesn't. |
|
5792 |
|
5793 * sighandlers.cc: Handle SIGCHLD. |
|
5794 |
|
5795 * pager.cc, pager.h: Rewrite. |
|
5796 * pt-mvr.cc, pt-misc.cc, pt-fcn.cc, pt-const.cc, oct-hist.cc, |
|
5797 file-io.cc, help.cc, variables.cc, qpsol.cc, dassl.cc, quad.cc, |
|
5798 npsol.cc, lsode.cc, fsolve.cc, load-save.cc, dirfns.cc, octave.cc, |
|
5799 toplev.cc, error.cc, input.cc: |
|
5800 Write to octave_stdout and octave_diary instead of calling |
|
5801 maybe_page_output() or maybe_write_to_diary_file(). |
|
5802 |
|
5803 * oct-procbuf.h, oct-procbuf.cc: New files. |
|
5804 * procstream.h (class procstreambase): Use octave_procbuf instead |
|
5805 of procbuf from libg++, so we can get pids of subprocesses. |
|
5806 |
|
5807 Fri Apr 26 01:21:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5808 |
|
5809 * pt-const.cc (OCT_VAL_REP::do_index): Call maybe_mutate() before |
|
5810 returning. |
|
5811 |
|
5812 * mappers.h (struct Mapper_fcn): Delete. |
|
5813 (struct builtin_mapper_function): New field ch_mapper. |
|
5814 * pt-fvc.h (tree_builtin): Convert type of mapper_fcn from |
|
5815 Mapper_fcn to builtin_mapper_function. |
|
5816 * variables.cc (install_builtin_mapper): Likewise, for arg. |
|
5817 Simplify, since we don't have to do the copying ourselves now. |
|
5818 * pt-fvc.cc (apply_mapper_function): Handle ch_mapper case. |
|
5819 * defun.h (DEFUN_MAPPER): Likewise. |
|
5820 * mappers.cc (install_builtin_mappers): Likewise. |
|
5821 Add ctype is* functions here. |
|
5822 |
|
5823 Thu Apr 25 00:57:06 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5824 |
|
5825 * arith-ops.h, defun-int.h, defun.h, dynamic-ld.h, gripes.h, |
|
5826 load-save.h, oct-map.h, oct-obj.h, oct-stream.h, pt-cmd.h, |
|
5827 pt-const.h, pt-exp-base.h, pt-exp.h, pt-fcn.h, pt-fvc-base.h, |
|
5828 pt-fvc.h, pt-mat.h, pt-misc.h, pt-mvr-base.h, pt-mvr.h, pt-plot.h, |
|
5829 symtab.h, toplev.h, utils.h, variables.h, xpow.h, Array-tc.cc, |
|
5830 Map-i.cc, Map-tc.cc, SLList-tc.cc, arith-ops.cc, balance.cc, |
|
5831 bogus.cc, chol.cc, colloc.cc, dassl.cc, data.cc, det.cc, |
|
5832 dirfns.cc, eig.cc, error.cc, expm.cc, fft.cc, fft2.cc, file-io.cc, |
|
5833 filter.cc, find.cc, fsolve.cc, fsqp.cc, givens.cc, gripes.cc, |
|
5834 help.cc, hess.cc, ifft.cc, ifft2.cc, input.cc, inv.cc, |
|
5835 load-save.cc, log.cc, lpsolve.cc, lsode.cc, lu.cc, minmax.cc, |
|
5836 npsol.cc, oct-hist.cc, oct-obj.cc, oct-stream.cc, pager.cc, |
|
5837 pinv.cc, pr-output.cc, pt-cmd.cc, pt-const.cc, pt-exp-base.cc, |
|
5838 pt-exp.cc, pt-fcn.cc, pt-fvc-base.cc, pt-fvc.cc, pt-mat.cc, |
|
5839 pt-misc.cc, pt-mvr-base.cc, pt-mvr.cc, pt-plot.cc, qpsol.cc, |
|
5840 qr.cc, quad.cc, qzval.cc, rand.cc, resource.cc, schur.cc, sort.cc, |
|
5841 strfns.cc, svd.cc, syl.cc, symtab.cc, syscalls.cc, sysdep.cc, |
|
5842 timefns.cc, toplev.cc, utils.cc, variables.cc, xpow.cc, parse.y: |
|
5843 Rename tree_constant -> octave_value. |
|
5844 Rename Octave_object -> octave_value_list. |
|
5845 |
|
5846 Wed Apr 24 22:15:34 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5847 |
|
5848 * toplev.cc (Fsystem): Merge functionality of async_system and |
|
5849 sync_system. |
|
5850 |
|
5851 * oct-fstrm.h, oct-iostrm.h, oct-prcstrm.h, oct-stdstrm.h, |
|
5852 oct-stream.h, oct-strstrm.h, oct-fstrm.cc, oct-iostrm.cc, |
|
5853 oct-prcstrm.cc, oct-stdstrm.cc, oct-stream.cc, oct-strstrm.cc, |
|
5854 Array-os.cc: New files. |
|
5855 * Makefile.in: Add them to the appropriate lists. |
|
5856 * file-io.cc: Rewrite to use new stream classes. |
|
5857 |
|
5858 Tue Apr 23 18:59:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5859 |
|
5860 * gripes.cc (gripe_not_supported): New function. |
|
5861 |
|
5862 * toplev.cc (do_octave_atexit, Fatexit): New functions. |
|
5863 (octave_atexit_functions): New file-scope variable. |
|
5864 * octave.cc (main): Register do_octave_atexit with atexit. |
|
5865 |
|
5866 * variables.cc (install_builtin_variables): Call |
|
5867 symbols_of_syscalls here. |
|
5868 |
|
5869 * syscalls.h, syscalls.cc: New files. |
|
5870 |
|
5871 Mon Apr 22 21:14:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5872 |
|
5873 * syscalls.cc: New file. |
|
5874 (Flstat, Fmkfifo, Fstat, Funlink, Fwait, Fwaitpid): Move here. |
|
5875 * file-io.cc: From here. |
|
5876 * Makefile.in (SOURCES): Add syscalls.cc to the list. |
|
5877 |
|
5878 Wed Apr 17 18:34:10 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5879 |
|
5880 * file-info.h, file-info.cc: Delete files. |
|
5881 * Makefile.in: Remove from lists. |
|
5882 |
|
5883 * toplev.cc (Fquit): Accept exit status argument. |
|
5884 (Fflops): Delete (now a function file). |
|
5885 |
|
5886 Thu Apr 11 16:20:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5887 |
|
5888 * lex.l: Recognize `.'. |
|
5889 Update current_input_column even for unrecognized characters. |
|
5890 Return LEXICAL_ERROR for unrecognized characters. |
|
5891 |
|
5892 Mon Apr 8 19:59:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5893 |
|
5894 * variables.cc (install_builtin_variables): Split into several |
|
5895 functions to make compiling with g++ go faster and consume less |
|
5896 memory. |
|
5897 |
|
5898 Sun Apr 7 16:25:35 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5899 |
|
5900 * load-save.cc (Fsave): Print usage if i == argc. |
|
5901 (Fload): Likewise. |
|
5902 |
|
5903 Sat Apr 6 21:26:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5904 |
|
5905 * Makefile.in (clean): Also delete pic/*.o |
|
5906 (maintainer-clean, distclean): Also remove stamp-picdir, |
|
5907 stamp-tinst, stamp-interp, and pic directory. |
|
5908 (stamp-prereq): New target. |
|
5909 |
|
5910 Wed Apr 3 11:19:30 1996 Rick Niles <niles@axp745.gsfc.nasa.gov> |
|
5911 |
|
5912 * resource.cc: Don't make including sys/resource.h and sys/times.h |
|
5913 mutually exclusive. |
|
5914 |
|
5915 Fri Mar 29 13:43:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5916 |
|
5917 * Makefile.in (distclean): Delete so_locations, which is created |
|
5918 on DEC Alpha systems. |
|
5919 |
|
5920 Thu Mar 28 02:53:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5921 |
|
5922 * utils.h (undo_string_escape): Provide extern declaration here. |
|
5923 |
|
5924 * lex.l (NL): Allow \r\n as new line character. |
|
5925 (.): Complain if invalid character is found on input |
|
5926 |
|
5927 Fri Mar 22 03:47:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5928 |
|
5929 * resource.cc (getrusage): If getrusage is missing, try using |
|
5930 times to at least fill in the cpu time values. If neither one is |
|
5931 available, return 0 for cpu times instead of NaN. |
|
5932 |
|
5933 * sighandlers.cc (octave_signal_mask): New file-scope variable. |
|
5934 (octave_save_signal_mask, octave_restore_signal_mask): New functions. |
|
5935 * toplev.cc (main_loop): Use them. |
|
5936 |
|
5937 Wed Mar 20 01:21:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5938 |
|
5939 * utils.cc (get_fcn_file_names (const string&, int)): Resize |
|
5940 retval to value of k, not i. |
|
5941 (get_fcn_file_names (int)): In loop for copying names to retval, |
|
5942 don't increment j twice. |
|
5943 |
|
5944 Mon Mar 18 22:27:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5945 |
|
5946 * Makefile.in ($(MAKEDEPS)): Depend on oct-gperf.h. |
|
5947 |
|
5948 Fri Mar 1 18:15:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5949 |
|
5950 * fsolve.cc (fsolve_options): Delete unused argument nargout. |
|
5951 |
|
5952 * filter.cc: Use MArray instead of Array so that automatic |
|
5953 conversions will work again. |
|
5954 |
|
5955 Tue Feb 27 04:49:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5956 |
|
5957 * variables.cc (looks_like_octave_copyright): Make the strings |
|
5958 that we are trying to match both have length 29. |
|
5959 |
|
5960 * Makefile.in (install-bin): Use $(INSTALL_PROGRAM), not $(INSTALL). |
|
5961 |
|
5962 * load-save.cc (read_mat_binary_data): Make sure name is |
|
5963 NUL terminated. |
|
5964 |
|
5965 Mon Feb 26 18:18:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5966 |
|
5967 * variables.cc (whos): Make argv from tmp_args, not args. |
|
5968 |
|
5969 * defun.h (DEFCONSTX): Don't stringify name. |
|
5970 |
|
5971 Sat Feb 24 01:12:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5972 |
|
5973 * Makefile.in (install-oct): Make mk-oct-links executable. |
|
5974 * mk-oct-links.in (links_dir): Update to match new format of |
|
5975 DEFUN_DLD_BUILTIN macro. Use LN_S, not just LN. |
|
5976 (links_dir): |
|
5977 |
|
5978 * pr-output.cc (octave_print_internal): New arg, extra_indent, for |
|
5979 versions of this function that take matrices and ranges. |
|
5980 * pt-const.cc (TC_REP::print (ostream&)): Fix printing of structures. |
|
5981 Pass struct_indent to octave_print_internal as appropriate. |
|
5982 (print_with_name (ostream&, const string&, bool)): Handle spacing |
|
5983 around `=' differently for structures. |
|
5984 |
|
5985 Fri Feb 23 04:51:04 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5986 |
|
5987 * token.cc (token (double, const string&, int, int)): Store orig_text. |
|
5988 |
|
5989 Tue Feb 20 20:36:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5990 |
|
5991 * variables.cc (Fclear): Fix off-by-one error. |
|
5992 |
|
5993 Sat Feb 17 16:54:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5994 |
|
5995 * oct-hist.cc (default_history_file): Append "/.octave_hist" to |
|
5996 return value, not to home_directory. |
|
5997 |
|
5998 Fri Feb 16 18:10:46 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5999 |
|
6000 * utils.cc: (NINT, D_NINT): Move to liboctave. |
|
6001 |
|
6002 * sysdep.cc (octave_ieee_init): Move to liboctave. |
|
6003 |
|
6004 * procstream.h, procstream.cc: Rewrite. |
|
6005 |
|
6006 * pager.cc (cleanup_oprocstream): New static function. |
|
6007 * toplev.cc (cleanup_iprocstream): Likewise. |
|
6008 * dirfns.cc (cleanup_iprocstream): Likewise. |
|
6009 |
|
6010 * unwind-prot.cc (matrix_cleanup, complex_matrix_cleanup): Delete. |
|
6011 |
|
6012 Thu Feb 15 22:03:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6013 |
|
6014 * oct-obj.cc, oct-obj.h: Move most code to the header. |
|
6015 |
|
6016 * oct-obj.cc (make_argv, all_strings): New member functions. |
|
6017 * utils.cc: Moved from here. |
|
6018 |
|
6019 * load-save.cc: Move byte swapping stuff to liboctave. |
|
6020 Move float format conversion stuff to liboctave. |
|
6021 (all_parts_int, too_large_for_float): Move to liboctave. |
|
6022 |
|
6023 * symtab.cc (valid_identifier): Move here. |
|
6024 * load-save.cc: From here. |
|
6025 |
|
6026 * sysdep.cc: Move floating-point format stuff to liboctave. |
|
6027 * pr-output.cc: Include float-fmt.h here. |
|
6028 |
|
6029 Wed Feb 14 01:49:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6030 |
|
6031 * defun.h, defun-dld.h, defun-int.h: Simplify interface for DEFUN, |
|
6032 DEFUN_DLD, DEFVAR, and DEFCONST macros. Change all uses. |
|
6033 |
|
6034 * qzval.cc: Move guts to liboctave. |
|
6035 |
|
6036 Tue Feb 13 10:28:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6037 |
|
6038 * variables.cc (parse_fcn_file): Also avoid saving history if |
|
6039 input is from a script file. |
|
6040 |
|
6041 * help.cc (Ftype): Call unwind_protect_str for user_pref.ps4. |
|
6042 |
|
6043 * npsol.cc (nonlinear_constraints_ok): Now static. |
|
6044 |
|
6045 * npsol.cc (linear_constraints_ok): Now static. |
|
6046 * qpsol.cc (linear_constraints_ok): Duplicate here. |
|
6047 |
|
6048 * data.cc (Flinspace): Don't print usage message if nargin == 2. |
|
6049 |
|
6050 Sun Feb 11 14:20:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6051 |
|
6052 * mk-oct-links.in: Rename from mk-oct-links. |
|
6053 (LN_S): Use this variable instead of ln. |
|
6054 Set -e option for shell. |
|
6055 Exit with status of last command. |
|
6056 Print message when making link. |
|
6057 * Makefile.in (DISTFILES): Add mk-oct-links.in to the list. |
|
6058 (install-oct): Run ./mk-oct-links, not $(srcdir)/mk-oct-links. |
|
6059 |
|
6060 * variables.cc (install_builtin_variables): Restore accidentally |
|
6061 deleted DEFVAR for save_precision. |
|
6062 |
|
6063 Fri Feb 9 11:24:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6064 |
|
6065 * Makefile.in (INCLUDES): Delete statdefs.h from the list (it's |
|
6066 now in the liboctave directory). |
|
6067 |
|
6068 * toplev.cc (toplevel): Define here. |
|
6069 * octave.cc (toplevel): Not here. |
|
6070 |
|
6071 * toplev.cc (main_loop): New function. |
|
6072 * octave.cc (main): Call it here instead of doing main loop |
|
6073 actions here. |
|
6074 |
|
6075 * user-prefs.cc (do_fortran_indexing): Also set liboctave_dfi_flag. |
|
6076 (prefer_column_vectors): Also set liboctave_pcv_flag. |
|
6077 (prefer_zero_one_indexing): Also set liboctave_pzo_flag. |
|
6078 (resize_on_range_error): Also set liboctave_rre_flag. |
|
6079 |
|
6080 * variables.cc (restore_command_history): New function. |
|
6081 (parse_fcn_file): Use it here in unwind_protect. |
|
6082 |
|
6083 * dynamic-ld.cc (load_octave_oct_file): Reverse sense of test. |
|
6084 (load_octave_builtin): Delete. |
|
6085 (mangle_octave_oct_file_name): Delete. |
|
6086 |
|
6087 * pt-fvc.cc (tree_builtin::eval): Don't try to dynamically load |
|
6088 functions here. |
|
6089 |
|
6090 * pr-output.cc (set_format_style): Decrement argc for first arg too. |
|
6091 |
|
6092 * input.cc (gnu_readline): If readline returns an empty string, |
|
6093 convert it to a string containing a single newline character. |
|
6094 |
|
6095 * octave.cc (octave_argv): Now a static string_vector. |
|
6096 (intern_argv): Use string_vector ops, not charMatrix ops. |
|
6097 * toplev.cc (octave_argv): Delete definition. |
|
6098 * toplev.h (octave_argv): Delete declaration. |
|
6099 |
|
6100 Thu Feb 8 10:58:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6101 |
|
6102 * Makefile.in (conf-dist): New target. |
|
6103 |
|
6104 Tue Feb 6 10:59:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6105 |
|
6106 * help.cc (Ftype): Correctly handle structure names. |
|
6107 |
|
6108 Sun Feb 4 02:02:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6109 |
|
6110 * qpsol.cc (Fqpsol): Call set_options(), not copy() to set |
|
6111 options for QPSOL objects. |
|
6112 |
|
6113 * npsol.cc (Fnpsol): Call set_options(), not copy() to set |
|
6114 options for NPSOL objects. |
|
6115 |
|
6116 * quad.cc (Fquad): Call set_options(), not copy() to set |
|
6117 options for Quad objects. |
|
6118 |
|
6119 * dynamic-ld.cc (load_octave_builtin): Don't call destructor on string. |
|
6120 (load_octave_oct_file): Likewise. |
|
6121 Check oct_file.empty(), not just oct_file. |
|
6122 |
|
6123 * fsolve.cc (Ffsolve): Call set_options(), not copy() to set |
|
6124 options for NLEqn object. |
|
6125 |
|
6126 * variables.cc (do_who): Properly set match patterns from argument |
|
6127 vector for call to maybe_list. |
|
6128 |
|
6129 Sat Feb 3 03:29:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6130 |
|
6131 * octave.cc (long_opts): Properly set second field using new enum. |
|
6132 |
|
6133 * lsode.cc: Change ODE to LSODE where appropriate. |
|
6134 Use LSODE_options, not ODE_options. |
|
6135 |
|
6136 * dassl.cc: Change DAE to DASSL where appropriate. |
|
6137 Use DASSL_options, not ODE_options. |
|
6138 |
|
6139 Fri Feb 2 01:41:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6140 |
|
6141 * dirfns.cc: Include unistd.h. |
|
6142 |
|
6143 * parse.y, lex.l: Handle matrix lists without ml or mlnm stacks. |
|
6144 * pt-mat.h, pt-mat.cc (tree_matrix): |
|
6145 Rewrite to use SLList instead of home brew list. |
|
6146 * SLList-tm.cc: New file |
|
6147 * Makefile.in: Add it to the lists. |
|
6148 * SLStack-tm.cc: Delete. |
|
6149 * Makefile.in: Delete it from the lists. |
|
6150 |
|
6151 * All pt-* files: Use bool instead of int where appropriate. |
|
6152 |
|
6153 * Makefile.in (DEP_SOURCES_3): Add octave.cc. |
|
6154 |
|
6155 * pt-const.h (class tree_constant::tree_constant_rep): Make |
|
6156 everything in this class public, then it doesn't need to declare |
|
6157 the tree_constant class as a friend. |
|
6158 |
|
6159 Thu Feb 1 01:42:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6160 |
|
6161 * lex.h, lex.l, parse.h, parse.y (class lexical_feedback): New |
|
6162 class for lexer flags. Replace lots of global vars with members |
|
6163 of this class. |
|
6164 |
|
6165 * lex.l (class brace_paren_nesting_level): New class to replace |
|
6166 nesting_level stack. nesting_level is now an instance of this |
|
6167 class. |
|
6168 |
|
6169 * lex.l (yum_yum): New typedef. |
|
6170 (ATE_NOTHING): New global var. |
|
6171 (ATE_SPACE_OR_TAB, ATE_NEWLINE): Don't #define these, declare them |
|
6172 as const yum_yum. |
|
6173 (eat_whitespace, eat_continuation): Return yum_yum, not int. |
|
6174 |
|
6175 * lex.l (SHORT_CIRCUIT_LOGICALS): Delete. Always do this for || |
|
6176 and && tokens. |
|
6177 (yy_flex_alloc, yy_flex_realloc, yy_flex_free, next_char_is_space): |
|
6178 Delete. |
|
6179 |
|
6180 * toplev.cc (verbose_flag): Delete definition. |
|
6181 * toplev.h (verbose_flag): And declaration. |
|
6182 * octave.cc (verbose_flag): Now static. |
|
6183 |
|
6184 * lex.l (lookup_identifier): Arg is now string, not char*. |
|
6185 (handle_identifier, is_plot_keyword, is_keyword): Likewise. |
|
6186 (strip_trailing_whitespace): Return value is now string, not char*. |
|
6187 (plot_style_token): Likewise, for both arg and return value. |
|
6188 |
|
6189 * input.cc (octave_gets_line): Delete. |
|
6190 (gnu_readline, octave_gets, octave_read): |
|
6191 Properly handle input when using_readline is either true or false. |
|
6192 Don't limit length of input lines to flex buffer size. |
|
6193 (get_user_input): New function. |
|
6194 |
|
6195 * octave.cc (main): Handle --no-line-editing. |
|
6196 * toplev.h (using_readline): Provide external declaration here. |
|
6197 * input.h: Not here. |
|
6198 * toplev.cc (using_readline): Define here. |
|
6199 * input.cc: Not here. |
|
6200 |
|
6201 * toplev.h (no_line_editing): Delete declaration. |
|
6202 * input.cc (no_line_editing): Delete definition. |
|
6203 |
|
6204 Wed Jan 31 05:28:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6205 |
|
6206 * input.cc (DEFAULT_ARRAY_SIZE, PROMPT_GROWTH): Delete definitions |
|
6207 of unused macros. |
|
6208 (read_octal): Now static. |
|
6209 |
|
6210 * givens.cc (Fgivens): Use new functions from matrix classes |
|
6211 instead of calling Fortran functions directly. |
|
6212 * syl.cc (Fsyl): Likewise. |
|
6213 * expm.cc (Fexpm): Likewise. |
|
6214 |
|
6215 Mon Jan 29 00:00:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6216 |
|
6217 * octave.cc: Use new prog_args class instead of calling getopt |
|
6218 directly. |
|
6219 |
|
6220 * getopt.h, getopt.c, getopt1.c: Move to liboctave directory. |
|
6221 * Makefile: Remove from lists. |
|
6222 |
|
6223 * utils.cc (strconcat, read_until, discard_until): Delete. |
|
6224 |
|
6225 * pager.cc (terminal_columns, terminal_rows): Move to |
|
6226 liboctave/oct-term.cc. |
|
6227 * pager.cc, pr-output.cc: Include oct-term.h. |
|
6228 |
|
6229 * utils.cc (list_in_columns): Moved to liboctave/str-vec.cc. |
|
6230 Change all callers to use new member function syntax. |
|
6231 |
|
6232 * dirfns.cc (absolute_program): Now static. |
|
6233 (absolute_pathname): Delete. |
|
6234 |
|
6235 * pt-plot.cc (save_in_tmp_file): Call oct_tempnam, not |
|
6236 octave_tmp_file_name. Include file-ops.h. |
|
6237 * file-io.cc (do_scanf, Foctave_tmp_file_name): Likewise. |
|
6238 * oct-hist.cc (mk_tmp_hist_file): Likewise. |
|
6239 |
|
6240 * file-io.cc (Foctave_tmp_file_name): Move here. |
|
6241 * utils.cc: From here. |
|
6242 |
|
6243 * utils.cc (octave_tmp_file_name): Move to liboctave/file-ops.cc. |
|
6244 |
|
6245 * tempname.c, tempnam.c: Move to liboctave directory. |
|
6246 * Makefile.in: Remove from lists. |
|
6247 |
|
6248 Sun Jan 28 19:00:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6249 |
|
6250 * xdiv.cc (all xdiv functions): Return Matrix or ComplexMatrix, |
|
6251 not tree_constant. |
|
6252 |
|
6253 * oct-hist.h, oct-hist.cc, toplev.cc, octave.cc, input.cc, |
|
6254 file-io.cc, user-prefs.cc: Rewrite to use new command_history |
|
6255 class instead of calling readline history functions directly. |
|
6256 |
|
6257 * utils.cc (get_fcn_file_names): Delete num arg. |
|
6258 |
|
6259 Thu Jan 25 20:33:54 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6260 |
|
6261 * load-save.cc (matches_patterns): Use new glob_match class |
|
6262 instead of calling fnmatch directly. |
|
6263 * symtab.cc (matches_patterns, symbol_table::glob): Likewise. |
|
6264 * variables.cc (Fclear): Likewise. |
|
6265 |
|
6266 Wed Jan 24 02:05:22 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6267 |
|
6268 * fnmatch.h fnmatch.c: Delete. |
|
6269 * Makefile.in: Add glob stuff in the appropriate places, remove |
|
6270 fnmatch.h and fnmatch.c from lists. |
|
6271 |
|
6272 * octave.cc (program_invocation_name, program_invocation_short_name): |
|
6273 Maybe declare. |
|
6274 (initialize_globals): Maybe initialize them. |
|
6275 |
|
6276 * octave.cc (initialize_pathsearch): Define here, not in pathsearch.cc. |
|
6277 * pathsearch.h, pathsearch.cc: Remove files. |
|
6278 * Makefile.in: Remove them from the lists. |
|
6279 |
|
6280 * help.cc (simple_help): Ignore directories that don't have any .m |
|
6281 or .oct files. |
|
6282 |
|
6283 * utils.cc (search_path_for_file): Use new dir_path class instead |
|
6284 of calling kpathsea routines directly. |
|
6285 (get_fcn_file_names): Likewise. |
|
6286 * help.cc (simple_help): Likewise. |
|
6287 |
|
6288 * dirfns.cc (make_absolute): Don't convert empty arg to "./". |
|
6289 |
|
6290 * sysdir.h: Move to liboctave directory. |
|
6291 * Makefile.in: Remove from lists. |
|
6292 |
|
6293 * dirfns.cc (Freaddir): Use new dir_entry class instead of calling |
|
6294 readdir directly. Include dir-ops.h, not sysdir.h. |
|
6295 * utils.cc (get_fcn_file_names): Likewise. Delete unnecessary |
|
6296 first arg, change all callers. |
|
6297 |
|
6298 Tue Jan 23 00:43:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6299 |
|
6300 * safe-xstat.hin, safe-xstat.cin, statdefs.h, file-ops.h, |
|
6301 file-ops.cc, filemode.c, mkdir.c, rmdir.c, rename.c: |
|
6302 Files moved to liboctave directory. |
|
6303 * Makefile.in: Remove them from lists. Move appropriate rules. |
|
6304 |
|
6305 * acosh.c, asinh.c, atanh.c, erf.c, erfc.c, gamma.c, lgamma.c: |
|
6306 Files moved to liboctave directory. |
|
6307 * Makefile.in: Remove them from lists. |
|
6308 * missing-math.h: Deleted. |
|
6309 * pr-output.cc, sysdep.cc, minmax.cc, mappers.cc, expm.cc, |
|
6310 arith-ops.cc: Include oct-math.h, not cmath or missing-math.h. |
|
6311 |
|
6312 Mon Jan 22 19:33:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6313 |
|
6314 * variables.cc (Fexist): Use file_stat instead of calling stat |
|
6315 directly. Include file-ops.h, not statdefs.h. |
|
6316 * octave.cc (execute_startup_files): Likewise. |
|
6317 * file-io.cc (file_io_get_file, fopen_internal, popen_internal, Fstat): |
|
6318 Likewise. |
|
6319 (mk_stat_map): Likewise, use file_stat object, not struct stat. |
|
6320 * oct-hist.cc (do_history): Likewise. |
|
6321 |
|
6322 * file-ops.h, file-stat.cc: New files. |
|
6323 * Makefile.in: Include them. |
|
6324 * dirfns.cc: Delete is_newer. Don't include statdefs.h. |
|
6325 * toplev.cc: Don't include statdefs.h. |
|
6326 |
|
6327 Sun Jan 21 22:48:03 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6328 |
|
6329 * pt-mvr.h, pt-fvc.h, Map.cc, Map.h, dynamic-ld.h, |
|
6330 pt-fvc-base.cc, SLList-str.cc, pt-fcn.h, pt-fvc-base.h, |
|
6331 SLStack-str.cc, pt-mvr.cc, pt-exp.cc, token.h, token.cc, |
|
6332 user-prefs.h, pt-base.cc, user-prefs.cc, dirfns.h, sysdep.h, |
|
6333 sysdep.cc, input.h, parse.h, lex.l, parse.y, defun.h, mappers.h, |
|
6334 pt-fvc.cc, pt-plot.h, load-save.h, octave.cc, defun-int.h, help.h, |
|
6335 variables.h, oct-map.h, oct-obj.h, oct-obj.cc, pt-const.cc, |
|
6336 oct-map.cc, input.cc, symtab.h, pt-const.h, pathsearch.cc, |
|
6337 pr-output.h, pr-output.cc, toplev.h, timefns.cc, schur.cc, |
|
6338 pt-plot.cc, pager.cc, load-save.cc, dynamic-ld.cc, dirfns.cc, |
|
6339 data.cc, file-info.h, file-info.cc, colloc.cc, utils.h, qpsol.cc, |
|
6340 quad.cc, npsol.cc, lsode.cc, fsolve.cc, dassl.cc, file-io.cc, |
|
6341 help.cc, utils.cc, oct-hist.h, oct-hist.cc, symtab.cc, toplev.cc, |
|
6342 pt-fcn.cc, unwind-prot.h, unwind-prot.cc, variables.cc: |
|
6343 Most functions in these files that deal with character strings |
|
6344 have been converted to use the string class insatead of char*. If |
|
6345 you want more detailed information, you'll have to figure it out |
|
6346 for yourself. |
|
6347 |
|
6348 Sat Jan 20 18:19:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6349 |
|
6350 * dynamic-ld.cc [WITH_DL]: Define RTLD_LAZY to be 1 if it is not |
|
6351 already defined. |
|
6352 |
|
6353 Sun Jan 14 07:48:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6354 |
|
6355 * pt-const.cc (print_as_scalar, print_as_structure): |
|
6356 Make these member functions. |
|
6357 (tree_constant::print_with_name): New function, moved here from |
|
6358 old tree-expr.cc file (where it was called print_constant) and |
|
6359 converted to member function. Change all callers. |
|
6360 |
|
6361 Fri Jan 12 01:54:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6362 |
|
6363 * octave.cc (initialize_globals): Don't do kpathsearch stuff here. |
|
6364 (main): Call initialize_pathsearch() here. |
|
6365 |
|
6366 * pathsearch.cc: New file. |
|
6367 * Makefile.in (SOURCES): Add it to the list |
|
6368 |
|
6369 * oct-hist.h: Rename from octave-hist.h. |
|
6370 * oct-hist.cc: Rename from octave-hist.cc. |
|
6371 * Makefile.in, parse.y, other .cc files: Cope with it. |
|
6372 |
|
6373 * dynamic-ld.cc: Avoid warnings if !WITH_DYNAMIC_LINKING. |
|
6374 |
|
6375 * load-save.cc (save_ascii_data): string::data() returns const char*. |
|
6376 |
|
6377 * utils.h: Don't provide forward declaration for tree_constant. |
|
6378 |
|
6379 * oct-obj.h: Don't include mx-base.h or provide forward |
|
6380 declarations for Matrix and Range types. |
|
6381 |
|
6382 * file-info.h: Don't include oct-obj.h. Do include cstdio. |
|
6383 |
|
6384 * symtab.h: Don't provide forward declaration for ostream. |
|
6385 |
|
6386 * variables.h: Don't provide forward declarations for istream, |
|
6387 ostrstream, tree, builtin_function, or builtin_variable objects. |
|
6388 |
|
6389 * balance.cc, chol.cc, colloc.cc, dassl.cc, det.cc, eig.cc, |
|
6390 expm.cc, fft.cc, fft2.cc, filter.cc, find.cc, fsolve.cc, fsqp.cc, |
|
6391 givens.cc, hess.cc, ifft.cc, ifft2.cc, inv.cc, log.cc, lpsolve.cc, |
|
6392 lsode.cc, lu.cc, minmax.cc, npsol.cc, pinv.cc, qpsol.cc, qr.cc, |
|
6393 quad.cc, qzval.cc, rand.cc, schur.cc, sort.cc, svd.cc, syl.cc: |
|
6394 Clean up #include statements. |
|
6395 |
|
6396 * pt-const.h: Don't include oct-obj.h or tree-base.h. |
|
6397 Provide forward declaration of Octave_object here. |
|
6398 * pt-const.cc: Include oct-obj.h here. |
|
6399 |
|
6400 * pt-mat.h, pt-fcn.h, pt-const.h, pt-misc.h, pt-plot.h, |
|
6401 pt-exp-base.h, pt-cmd.h, pt-fvc-base.h, pt-mvr-base.h, pt-exp.h, |
|
6402 pt-mvr.h, pt-fvc.h: New files, split from tree-expr.h and/or |
|
6403 renamed from other tree-*.h files (pt == parse tree). |
|
6404 * pt-base.cc, pt-const.cc, pt-exp.cc, pt-fvc-base.cc, pt-mat.cc, |
|
6405 pt-mvr-base.cc, pt-plot.cc, pt-cmd.cc, pt-exp-base.cc, pt-fcn.cc, |
|
6406 pt-fvc.cc, pt-misc.cc, pt-mvr.cc: Likewse, split from tree-expr.cc |
|
6407 and/or other tree-*.cc files. |
|
6408 * Makefile.in: Include them in the appropriate lists. |
|
6409 * All: Fix #include statements to match. |
|
6410 |
|
6411 * Array-tc.cc: Don't instantiate ArrayRep objects. |
|
6412 |
|
6413 Thu Jan 11 02:35:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6414 |
|
6415 * tree-const.cc (tree_constant::eval (int, int, const Octave_object&)): |
|
6416 Define here instead of in tree-const.h. |
|
6417 |
|
6418 Wed Jan 10 04:34:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6419 |
|
6420 * tree-const.h (tree_constant::tree_constant (const string&): |
|
6421 * tree-const.cc (TC_REP::tree_constant_rep (const string&)): |
|
6422 New constructor. |
|
6423 |
|
6424 Tue Jan 9 04:10:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6425 |
|
6426 * rand.cc (do_rand): Use string_value() result directly instead of |
|
6427 c_str() conversion. |
|
6428 * balance.cc (Fbalance): Likewise. |
|
6429 |
|
6430 * tree-const.cc (TC_REP::string_value()): |
|
6431 Handle new definition of charMatrix::row_as_string() |
|
6432 * load-save.cc (save_ascii_data): Ditto. |
|
6433 (save_binary_data): Ditto. |
|
6434 * pr-output.cc (octave_print_internal): Ditto. |
|
6435 |
|
6436 * balance.cc (Fbalance): |
|
6437 Handle new definition of TC_REP::string_value() |
|
6438 * colloc.cc (Fcolloc): Ditto. |
|
6439 * dassl.cc (Fdassl_options): Ditto. |
|
6440 * data.cc (Fstruct_contains): Ditto. |
|
6441 * dirfns.cc (Fmkdir): Ditto. |
|
6442 (Freaddir): Ditto. |
|
6443 (Frmdir): Ditto. |
|
6444 (Frename): Ditto. |
|
6445 * error.cc (handle_message): Ditto. |
|
6446 * file-io.cc (process_printf_format): Ditto. |
|
6447 (fopen_internal): Ditto. |
|
6448 (file_io_get_file): Ditto. |
|
6449 (return_valid_file): Ditto. |
|
6450 (Flstat): Ditto. |
|
6451 (Fstat): Ditto. |
|
6452 (unlink_internal): Ditto. |
|
6453 (mkfifo_internal): Ditto. |
|
6454 (async_system_internal): Ditto. |
|
6455 (sync_system_internal): Ditto. |
|
6456 (execute_internal): Ditto. |
|
6457 (popen_internal): Ditto. |
|
6458 (fwrite_internal): Ditto. |
|
6459 (fread_internal): Ditto. |
|
6460 (do_printf): Ditto. |
|
6461 (do_scanf): Ditto. |
|
6462 * input.cc (get_user_input): Ditto. |
|
6463 * lsode.cc (Flsode_options): Ditto. |
|
6464 * npsol.cc (Fnpsol_options):Ditto. |
|
6465 * qpsol.cc (Fqpsol_options):Ditto. |
|
6466 * quad.cc (Fquad_options): Ditto. |
|
6467 * rand.cc (do_rand): Ditto. |
|
6468 * schur.cc (Fschur): Ditto. |
|
6469 * sysdep.cc (Fputenv): Ditto. |
|
6470 (Fgetenv): Ditto. |
|
6471 * timefns.cc (extract_tm): Ditto. |
|
6472 (Fstrftime): Ditto. |
|
6473 * toplev.cc (Fsource): Ditto. |
|
6474 (eval_string): Ditto. |
|
6475 (Fsystem): Ditto. |
|
6476 * tree-plot.cc (subplot::handle_plot_data): Ditto. |
|
6477 * variables.cc (is_valid_function): Ditto. |
|
6478 (Fis_global): Ditto. |
|
6479 (Fexist): Ditto. |
|
6480 (builtin_string_variable): Ditto. |
|
6481 * utils.cc (make_argv): Ditto. |
|
6482 (Fundo_string_escapes): Ditto. |
|
6483 |
|
6484 Mon Jan 8 01:54:50 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6485 |
|
6486 * Makefile.in (install-bin): Use $(LN_S), not just ln. |
|
6487 |
|
6488 * variables.cc (octave_fcn_file_dir): New function. |
|
6489 * tree-expr.cc (mark_as_system_fcn_file): Use it instead of |
|
6490 octave_lib_dir. |
|
6491 |
|
6492 * Makefile.in (clean): If $(SHARED_LIBS), also remove shared libs. |
|
6493 |
|
6494 * pr-output.cc (set_format (const ComplexMatrix&, int&, int&)): |
|
6495 Unconditionally call all_elements_are_int_or_inf_or_nan(). |
|
6496 (set_format (const Matrix&, int&, int&)): Likewise. |
|
6497 |
|
6498 Sun Jan 7 19:12:39 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6499 |
|
6500 * utils.cc (oct_putenv): New function. |
|
6501 * sysdep.cc (Fputenv): Use oct_putenv. |
|
6502 * octave.cc (initialize_globals): Likewise. |
|
6503 |
|
6504 Sat Jan 6 23:22:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6505 |
|
6506 * sysdep.cc (Fputenv): New function. |
|
6507 |
|
6508 * input.cc (initialize_readline): Call rl_initialize() here. |
|
6509 |
|
6510 * octave.cc: Conditionally define atexit to be on_exit here. |
|
6511 * toplev.cc: Not here. |
|
6512 |
|
6513 Fri Jan 5 14:01:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6514 |
|
6515 * toplev.cc: Don't include <pwd.h> here. |
|
6516 |
|
6517 * octave-hist.cc, tree-plot.cc, utils.cc: Do include "sysdep.h". |
|
6518 |
|
6519 * dirfns.cc, file-io.cc, help.cc, load-save.cc, octave.cc, |
|
6520 octave-hist.cc, tree-plot.cc, utils.cc: |
|
6521 Don't include <readline/tilde.h>. |
|
6522 * sysdep.h: Do include it here. |
|
6523 |
|
6524 * tree-const.cc (TC_REP::assign (tree_constant&, Octave_object&)): |
|
6525 If we have a matrix or range, call maybe_mutate before returning. |
|
6526 |
|
6527 Sun Dec 31 15:56:18 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6528 |
|
6529 * npsol.cc (Fnpsol): Improve doc string. |
|
6530 * qpsol.cc (Fqpsol): Likewise. |
|
6531 |
|
6532 Fri Dec 29 21:46:58 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6533 |
|
6534 * defun-dld.h: Make work again for OCTAVE_LITE and |
|
6535 WITH_DYNAMIC_LINKING. |
|
6536 |
|
6537 * Makefile.in: Handle shared libraries. |
|
6538 |
|
6539 Wed Dec 27 17:47:51 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6540 |
|
6541 * mk-oct-links: New file. |
|
6542 * Makefile.in (install-oct): Use it. |
|
6543 * f-*.cc: Rename to *.cc. |
|
6544 |
|
6545 * Makefile.in (install-bin, install-lib, install-oct): New targets. |
|
6546 (install): Use them. |
|
6547 |
|
6548 Tue Dec 26 21:38:22 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6549 |
|
6550 * toplev.cc (reading_startup_message_printed): Move initialization |
|
6551 here and make extern. |
|
6552 |
|
6553 * dirfns.cc, dynamic-ld.cc, help.cc, input.cc, octave-hist.cc, |
|
6554 octave.cc, sighandlers.cc, sysdep.cc, tree-expr.cc, tree-misc.cc, |
|
6555 utils.cc, variables.cc, parse.y, lex.l: Include toplev.h instead |
|
6556 of octave.h. |
|
6557 * toplev.h: rename from octave.h. |
|
6558 |
|
6559 * octave.cc (main): Delete unused variable saved_sigint_handler. |
|
6560 |
|
6561 Sun Dec 24 00:26:54 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6562 |
|
6563 * dynamic-ld.cc: Massive re-write to handle dlopen/dlsym and |
|
6564 shl_load/shl_findsym methods of dynamic linking. |
|
6565 |
|
6566 * utils.cc (get_fcn_file_names): Check for .oct files if |
|
6567 WITH_DYNAMIC_LINKING, not WITH_DLD. |
|
6568 |
|
6569 * Makefile.in (LIB, TERMLIBS): Substitute values. |
|
6570 (octave): Add $(LIBS) to link command and use $(TERMLIBS) instead |
|
6571 of -ltermcap. |
|
6572 |
|
6573 Sat Dec 23 21:56:12 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6574 |
|
6575 * dynamic-ld.h, dynamic-ld.cc: Remove old unused code. |
|
6576 |
|
6577 * variables.cc (load_fcn_from_file): |
|
6578 Always call load_octave_oct_file. |
|
6579 |
|
6580 Wed Dec 20 00:56:57 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6581 |
|
6582 * pr-output.cc (set_real_format, set_real_matrix_format, |
|
6583 set_complex_format, set_complex_matrix_format, set_range_format): |
|
6584 New functions. Ensure the count of the digits to the right of the |
|
6585 decimal point is positive. |
|
6586 |
|
6587 * xpow.cc (xpow (const Matrix&, double)): Print warning if |
|
6588 inverting singular matrix (but return value anyway, in the name of |
|
6589 compatibility). |
|
6590 xpow (const ComplexMatrix&, double)): Likewise. |
|
6591 |
|
6592 * f-inv.cc (Finv): If matrix is singular, return result anyway, in |
|
6593 the name of compatibility. |
|
6594 |
|
6595 * symtab.cc (symbol_record::pop_context): |
|
6596 Don't assert (! context.empty ()). |
|
6597 |
|
6598 * tree-const.cc (TC_REP::char_matrix_value): Don't complain about |
|
6599 type conversion if object is an empty matrix.f |
|
6600 (TC_REP::assign): If rhs is a string, don't convert to numeric |
|
6601 type if rhs is empty or "". |
|
6602 Only widen if rhs is not empty. |
|
6603 Don't return 0x0 char_matrix if it is supposed to be a string. |
|
6604 |
|
6605 * arith-ops.h, mappers.h, pr-output.h, xdiv.h, xpow.h: Include |
|
6606 oct-cmplx.h in place of forward declaration for class Complex. |
|
6607 |
|
6608 * pr-output.cc, mappers.cc, arith-ops.cc, xdiv.cc, xpow.cc, |
|
6609 utils.cc: Include "oct-cmplx.h" instead of <Complex.h>. |
|
6610 |
|
6611 * octave.cc (initialize_error_handlers): Don't call |
|
6612 set_Complex_error_handler(). |
|
6613 (octave_Complex_error_handler): Delete unused function. |
|
6614 Delete declaration for set_Complex_error_handler(). |
|
6615 |
|
6616 * sighandlers.cc (catch_interrupts): New function. |
|
6617 * octave.cc (main): Call catch_interrupts() instead of calling |
|
6618 octave_set_signal_handler() directly. |
|
6619 |
|
6620 Tue Dec 19 03:22:37 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6621 |
|
6622 * variables.cc (looks_like_octave_copyright): Also recognize the |
|
6623 string " This program is free software". |
|
6624 |
|
6625 Thu Dec 14 01:54:06 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6626 |
|
6627 * octave-hist.cc (clean_up_history): Only write history file if |
|
6628 user_pref.saving_history. |
|
6629 |
|
6630 * octave-hist.cc (initialize_history, clean_up_history, |
|
6631 do_history): Perform tilde expansion on history file name. |
|
6632 |
|
6633 * octave.cc (main): Check `defined (HAVE_ON_EXIT)' not just |
|
6634 `(HAVE_ON_EXIT)'. |
|
6635 |
|
6636 * user-prefs.h (user_preferences): New fields, `history_file' and |
|
6637 `history_size'. |
|
6638 * user-prefs.cc (init_user_prefs): Initialize them. |
|
6639 (sv_history_file, history_size): New functions. |
|
6640 * variables.cc (install_builtin_variables): Initialize user-level |
|
6641 variables history_file and history_size. |
|
6642 * octave-hist.cc (default_history_size): Now extern. |
|
6643 (default_history_file): Likewise. |
|
6644 (octave_hist_size, octave_hist_file): Use user preference |
|
6645 variables instead. |
|
6646 * octave.cc (main): Call initialize_history after |
|
6647 execute_startup_files. |
|
6648 |
|
6649 Fri Dec 8 15:53:59 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6650 |
|
6651 * user-prefs.h (user_preferences): New field, `saving_history'. |
|
6652 * user-prefs.cc (init_user_prefs): Initialize it. |
|
6653 (saving_history): New function. |
|
6654 * variables.cc (install_builtin_variables): Initialize user-level |
|
6655 variable saving_history. |
|
6656 * octave.cc (parse_and_execute): Don't reset value of |
|
6657 saving_history here. |
|
6658 (main) Use user_pref.saving_history instead of saving_history. |
|
6659 * variables.cc (parse_fcn_file): Likewise. |
|
6660 * octave-hist.cc (maybe_save_history): Likewise. |
|
6661 Don't save history if input_from_startup_file. |
|
6662 |
|
6663 Mon Nov 27 23:05:52 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6664 |
|
6665 * resource.cc: Include systime.h before <sys/resource.h>. |
|
6666 |
|
6667 Tue Nov 14 14:09:40 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6668 |
|
6669 * error.cc: Include cstring. |
|
6670 |
|
6671 * tree-expr.cc (print_code): Decrement indent level after printing |
|
6672 function body. |
|
6673 |
|
6674 * Makefile.in: Remove references to oct-str.cc, oct-str.h, and |
|
6675 Array-string.cc. |
|
6676 |
|
6677 * tree-const.h: Don't include oct-str.h. |
|
6678 |
|
6679 Mon Nov 6 11:16:49 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6680 |
|
6681 * parse.y (make_plot_command, finish_colon_expression, |
|
6682 make_unwind_protect, make_try_command, make_for_command, |
|
6683 make_break_command, make_continue_command, make_return_command, |
|
6684 start_if_command, finish_if_command, make_elseif_clause, |
|
6685 make_simple_assignment, make_multi_val_ret, start_function_def, |
|
6686 frob_function_def, finish_function_def, start_matrix, |
|
6687 finish_matrix): New functions. Use them in the grammar to clean |
|
6688 things up a bit. Possibly convert matrix lists, colon |
|
6689 expressions, binary expressions, and unary expressions to constant |
|
6690 values. |
|
6691 (tree_matrix_type): Delete. |
|
6692 (simple_expr1): Handle all expression stuff here, including |
|
6693 assignments. |
|
6694 (simple_expr): Just check to see that simple_expr1 produced |
|
6695 something useful. |
|
6696 |
|
6697 * tree-plot.cc, tree-plot.h: Move most simple constructors to the |
|
6698 header file. |
|
6699 |
|
6700 * tree-expr.h (tree_expression::is_constant): Move virtual |
|
6701 function definition here. |
|
6702 (tree_fvc::is_constant): From here. |
|
6703 (tree_expression::is_matrix_constant): New virtual function. |
|
6704 (tree_expression::is_range_constant): New virtual function. |
|
6705 * tree-expr.cc (tree_matrix::is_matrix_constant): New function. |
|
6706 * tree-expr.cc (tree_colon_expression::is_range_constant): New |
|
6707 function. |
|
6708 |
|
6709 Fri Nov 3 03:42:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6710 |
|
6711 * utils.cc, utils.h (jump_to_top_level): Declare as extern "C". |
|
6712 |
|
6713 * tree-const.h (tree_constant::eval ()): Only mutate if printing. |
|
6714 |
|
6715 * tree-const.cc (TC_REP::tree_constant_rep (const Complex&), |
|
6716 TC_REP::tree_constant_rep (const ComplexMatrix&), |
|
6717 TC_REP::tree_constant_rep (const ComplexDiagMatrix&), |
|
6718 TC_REP::tree_constant_rep (const ComplexRowVector&), |
|
6719 TC_REP::tree_constant_rep (const ComplexColumnVector&)): |
|
6720 Also check to see if we can convert to scalar_constant, not just |
|
6721 complex_scalar_constant. |
|
6722 |
|
6723 * user-prefs.h (user_preferences): New field, `exec_path'. |
|
6724 * user-prefs.cc (init_user_prefs): Initialize it. |
|
6725 (sv_exec_path): New function. |
|
6726 * variables.cc (install_builtin_variables): Add DEFUN for EXEC_PATH. |
|
6727 (default_exec_path): New function. |
|
6728 * octave.cc (exec_path): New global variable. |
|
6729 Don't set and putenv() exec path here. |
|
6730 (long_opts): Add --exec-path option. |
|
6731 (main): Handle it. |
|
6732 (initialize_globals): Set default value here. |
|
6733 |
|
6734 * user-prefs.h (user_preferences): New field, `info_prog'. |
|
6735 * user-prefs.cc (init_user_prefs): Initialize it. |
|
6736 (sv_info_prog): New function. |
|
6737 * variables.cc (install_builtin_variables): Add DEFUN for INFO_PROGRAM. |
|
6738 (default_info_prog): New function. |
|
6739 * octave.cc (info_prog): New global variable. |
|
6740 (initialize_globals): Set default value here. |
|
6741 (long_opts): Add --info-prog option. |
|
6742 (main): Handle it. |
|
6743 * help.cc (try_info): Use user_pref.info_prog here. |
|
6744 |
|
6745 * octave.cc (initialize_globals): Put arch_dir and bin_dir ahead |
|
6746 of shell_path when resetting PATH. |
|
6747 |
|
6748 Thu Nov 2 04:30:13 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6749 |
|
6750 * f-rand.cc (Frandn): New function. |
|
6751 (do_initialization): New function. |
|
6752 (do_rand): New function for doing the real work. |
|
6753 (Frand): Use it. |
|
6754 |
|
6755 * octave.cc (parse_and_execute): New arg, warn_for. If given, |
|
6756 print message if file cannot be opened. |
|
6757 Set curr_fcn_file_full_name here. |
|
6758 (Fsource): Pass extra arg to parse_and_execute to get warning message. |
|
6759 |
|
6760 * tree-const.h: Handle line and column info for double, Complex, |
|
6761 and char* constants. |
|
6762 |
|
6763 * parse.y (maybe_convert_to_ans_assign): Pass along line and |
|
6764 column info from expression. |
|
6765 |
|
6766 * parse.y (make_constant): New function. |
|
6767 (simple_expr1, word_list): Use it. |
|
6768 |
|
6769 * input.cc, input.h (curr_fcn_file_full_name): New global. |
|
6770 * variables.cc (load_fcn_from_file): Set it here. |
|
6771 * parse.y (func_def2, yyerror, maybe_warn_missing_semi): Use it. |
|
6772 (func_def2): If !reading_fcn_file, don't call strcmp if |
|
6773 curr_fcn_file_name is 0. |
|
6774 |
|
6775 * octave.cc (Fsource): New function. |
|
6776 (parse_and_execute): Declare file name const char *. |
|
6777 * input.cc (get_input_from_file): Likewise. |
|
6778 |
|
6779 Wed Nov 1 13:54:34 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6780 |
|
6781 * f-filter.cc: New file. |
|
6782 * Makefile.in (DLD_SRC): Add it to the list. |
|
6783 |
|
6784 * sysdep.h (gethostname): Change declaration to match definition |
|
6785 in sysdep.cc. |
|
6786 |
|
6787 * resource.cc: Include sysdep.h here, for octave_NaN. |
|
6788 |
|
6789 Tue Oct 31 02:12:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6790 |
|
6791 * tree-const.cc (TC_REP::assign): After converting rhs to a |
|
6792 numeric type, use the converted value, not the original. |
|
6793 |
|
6794 * dirfns.cc (Fpwd): If nargout == 0, print the directory name |
|
6795 instead of returning it. |
|
6796 |
|
6797 * pager.cc (maybe_page_output): Call maybe_write_to_diary_file here. |
|
6798 (flush_output_to_pager): Not here. |
|
6799 |
|
6800 Mon Oct 30 23:39:43 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6801 |
|
6802 * variables.cc (install_builtin_commands): Add DEFVAR for |
|
6803 echo_executing_commands. |
|
6804 |
|
6805 * octave-hist.cc (do_edit_history): Handle new echo stuff. |
|
6806 * variables.cc (parse_fcn_file): Likewise. |
|
6807 * octave.cc (parse_and_execute): Likewise. |
|
6808 (main): Likewise. |
|
6809 * input.cc (do_input_echo): |
|
6810 (Fecho): New function. |
|
6811 |
|
6812 * tree-expr.cc (tree_function::print_code_function_header, |
|
6813 tree_function::print_code_function_trailer): New functions. |
|
6814 (tree_function::print_code): Use them. |
|
6815 (tree_function::eval): Likewise, if echoing commands. |
|
6816 * tree-misc.cc (tree_statement::maybe_echo_code): New function. |
|
6817 |
|
6818 * user-prefs.h (user_preferences): New field, echo_executing_commands. |
|
6819 (echo_state): New enum, for various types of echoing we do. |
|
6820 * user-prefs.cc (echo_executing_commands): New function. |
|
6821 |
|
6822 * tree-base.cc (print_code_indent): Print PS4 as line prefix. |
|
6823 * help.cc (Ftype): Add unwind_protect for ps4 and set it to "" |
|
6824 before printing code. |
|
6825 |
|
6826 * tree-misc.h (tree_statement_list): New field, function_body. |
|
6827 (tree_statement_list::mark_as_function_body): New function. |
|
6828 * parse.y (func_def3): Mark function bodies. |
|
6829 |
|
6830 * pr-output.cc (octave_print_internal): Undo string escapes when |
|
6831 printing charMatrix as strings. |
|
6832 |
|
6833 Sat Oct 28 17:38:29 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6834 |
|
6835 * utils.h (undo_string_escapes): Add missing const in declaration. |
|
6836 |
|
6837 Fri Oct 27 03:49:44 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6838 |
|
6839 * file-io.cc (next_available_file_number): New stack for keeping |
|
6840 track of next available file number. |
|
6841 (get_next_avail_file_num): New function. |
|
6842 (fopen_file_for_user, fopen_internal, popen_internal, |
|
6843 execute_internal): Use it. |
|
6844 |
|
6845 Mon Oct 23 07:00:09 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6846 |
|
6847 * tree-const.cc (TC_REP::convert_to_matrix_type, |
|
6848 tree_constant::convert_to_matrix_type): New arg, make_complex. |
|
6849 (TC_REP::set_index): New arg, rhs_is_complex. Pass it to |
|
6850 convert_to_matrix_type. |
|
6851 (TC_REP::assign): Pass rhs.is_complex_type() to set_index. |
|
6852 |
|
6853 Thu Oct 19 00:38:38 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6854 |
|
6855 * xpow.cc: Include <climits>. |
|
6856 |
|
6857 * sysdep.cc (Fpause): Do pause even if not interactive. |
|
6858 |
|
6859 * tree-const.cc (TC_REP::assign): Don't make RHS numeric if both |
|
6860 RHS and LHS are strings. |
|
6861 |
|
6862 Wed Oct 18 22:19:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6863 |
|
6864 * f-expm.cc (Fexpm): Avoid taking log of negative number. Also, |
|
6865 don't unnecessarily divide the input matrix by 1.0. |
|
6866 |
|
6867 * input.cc (decode_prompt_string): Recognize \[ and \] too. |
|
6868 (initialize_readline): Bind M-p to history-search-backward and M-n |
|
6869 to history-search-forward. |
|
6870 |
|
6871 Tue Oct 17 04:31:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6872 |
|
6873 * xpow.cc (xpow): Handle integer powers better for complex^double. |
|
6874 (elem_xpow): Likewise. |
|
6875 |
|
6876 * lex.l ({CCHAR}): If nesting_level.top() is BRACE, return ';', |
|
6877 not '\n'. |
|
6878 |
|
6879 Mon Oct 16 19:03:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6880 |
|
6881 * help.cc (Fwhich): Fix doc string. |
|
6882 |
|
6883 * variables.cc (Fexist): Update doc string. |
|
6884 |
|
6885 Sun Oct 15 22:19:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6886 |
|
6887 * Another massive set of changes to support character matrices |
|
6888 with indexing. The Octave_str_object class is no longer used. |
|
6889 Anything having to do with Octave_str_object in the following |
|
6890 files has been changed to use charMatrix instead: octave.h, |
|
6891 load-save.cc, octave.cc, strfns.cc, data.cc, pr-output.h, |
|
6892 pr-output.cc, tree-const.h, dirfns.cc, tree-const.cc, |
|
6893 tree-expr.cc. |
|
6894 |
|
6895 Sat Oct 14 22:28:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6896 |
|
6897 * f-sort.cc (mx_sort): Don't attempt to sort vectors that have |
|
6898 only one element, or matrices that have only one row. |
|
6899 |
|
6900 Thu Oct 12 02:16:58 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6901 |
|
6902 * mappers.cc (install_mapper_functions): Add gammaln as an alias |
|
6903 for lgamma. |
|
6904 |
|
6905 * tree-const.h, tree-const.cc: Massive overhaul of indexing and |
|
6906 indexed assignment functions. |
|
6907 * tc-inlines.h, tc-rep.h: Remove files. |
|
6908 * Makefile.in: Remove mention of them here too. |
|
6909 |
|
6910 * Makefile.in: Include $(TI_SRC) in DEP_SOURCES_3, not |
|
6911 $(TI_SOURCES). |
|
6912 Include $(DLD_SRC) in DEP_SOURCES_3. |
|
6913 Include $(TI_SRC) in DEF_FILES_5. |
|
6914 |
|
6915 Wed Oct 11 01:26:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6916 |
|
6917 * Makefile.in (INCLUDES): Remove tc-inlines.h and tc-rep.h from |
|
6918 the list. |
|
6919 |
|
6920 Mon Oct 9 08:31:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6921 |
|
6922 * lex.l (next_token_is_bin_op): Do match `.+', `.*', etc. |
|
6923 |
|
6924 Sun Oct 8 18:19:56 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6925 |
|
6926 * idx-vector.h, idx-vector.cc: Delete files. |
|
6927 * Makefile.in (SOURCES, INCLUDES): Remove them from lists. |
|
6928 |
|
6929 Fri Oct 6 00:52:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6930 |
|
6931 * f-svd.cc (Fsvd): If nargout == 0 or nargout == 1, don't ask for |
|
6932 U and V. |
|
6933 |
|
6934 Wed Oct 4 00:04:57 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6935 |
|
6936 * f-npsol.cc (Fnpsol, Fnpsol_options): Avoid unused variable |
|
6937 warnings if NPSOL_MISSING. |
|
6938 * f-qpsol.cc (Fqpsol, Fqpsol_options): Likewise for QPSOL_MISSING. |
|
6939 |
|
6940 * Makefile.in (DISTFILES): Add octave.gperf. |
|
6941 |
|
6942 * lex.l (next_token_is_bin_op): Don't ever return true for `.' |
|
6943 since that causes problems with things like [ .1 .1 ]. |
|
6944 |
|
6945 Tue Oct 3 05:30:24 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6946 |
|
6947 * variables.cc (is_valid_function): Avoid setting error_state if |
|
6948 argument is not a string. |
|
6949 |
|
6950 * parse.y (maybe_warn_missing_semi): New function. |
|
6951 (list1, list): Call it if statement not terminated by semicolon. |
|
6952 * tree-misc.h (tree_statement::line, tree_statement::column): |
|
6953 New functions. |
|
6954 * octave.cc (input_from_command_line_file): New global variable. |
|
6955 (main): Set it. |
|
6956 (parse_and_execute): Unwind-protect it and set it to zero. |
|
6957 (eval_string): Likewise. |
|
6958 * variables.cc (parse_fcn_file): Likewise. |
|
6959 |
|
6960 * user-prefs.cc (warn_missing_semicolon): New function. |
|
6961 * user-prefs.h (user_preferences): New field, warn_missing_semicolon. |
|
6962 * variables.cc (install_builtin_variables): DEFVAR it. |
|
6963 |
|
6964 * tree-expr.cc (tree_expression::is_logically_true): Actually use |
|
6965 argument. |
|
6966 |
|
6967 Mon Oct 2 19:55:48 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6968 |
|
6969 * variables.cc (install_builtin_variables): Reduce the default |
|
6970 value of save_precision to 15. |
|
6971 |
|
6972 * variables.cc (builtin_real_scalar_variable): Return 1 for |
|
6973 success, 0 for failure. |
|
6974 |
|
6975 * user-prefs.cc (struct_levels_to_print, set_save_precision, |
|
6976 set_output_max_field_width, set_output_precision): |
|
6977 Change sense of test for builtin_real_scalar_variable return value. |
|
6978 (check_preference): Rename from check_str_pref. Change all callers. |
|
6979 Accept value of 0 to be the same as "false" and nonzero to be the |
|
6980 same as "true". |
|
6981 Delete val to avoid memory leak. |
|
6982 * variables.cc (install_builtin_variables): Change initial values |
|
6983 from "true" to 1, "false" to 0. |
|
6984 |
|
6985 * variables.cc (install_builtin_variables): Add DEFVAR for |
|
6986 gnuplot_has_multiplot. |
|
6987 |
|
6988 * user-prefs.h (user_preferences): New field, |
|
6989 `gnuplot_has_multiplot'. |
|
6990 * user-prefs.cc (init_user_prefs): Initialize it. |
|
6991 (gnuplot_has_multiplot): New function. |
|
6992 |
|
6993 Sat Sep 30 16:52:57 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6994 |
|
6995 * oct-gperf.h, octave.gperf: Newfiles. |
|
6996 * Makefile.in (DISTFILES): Add octave.gperf. |
|
6997 (INCLUDES): Add oct-gperf.h. |
|
6998 (oct-gperf.h): New rule. |
|
6999 (local-dist, dist): Depend on oct-gperf.h. |
|
7000 * lex.l (is_keyword): Use perfect hash function to lookup |
|
7001 keywords. |
|
7002 |
|
7003 Fri Sep 29 04:36:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7004 |
|
7005 * version.h (OCTAVE_NAME_AND_VERSION): Add TARGET_HOST_TYPE to this. |
|
7006 |
|
7007 Thu Sep 28 00:03:51 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7008 |
|
7009 * tree-expr.cc (tree_expression::is_logically_true): New function. |
|
7010 * tree-cmd.cc (tree_while_command::eval): Use it instead of |
|
7011 handling the test directly here. |
|
7012 * tree-misc.cc (tree_if_clause::eval): Likewise |
|
7013 |
|
7014 * tree-const.cc (TC_REP::force_numeric): Don't try to print value |
|
7015 of str_obj with %s. |
|
7016 |
|
7017 * error.cc (buffer_error_messages): Rename from |
|
7018 suppress_octave_error_messages. |
|
7019 (error_message_buffer): New global variable. |
|
7020 (verror): Handle buffering of messages. |
|
7021 (handle_message): New function. |
|
7022 (Ferror, Fwarning, Fusage): Use it instead of duplicating code. |
|
7023 |
|
7024 * octave.cc (Feval): Buffer error messages instead of supressing them. |
|
7025 |
|
7026 * lex.l (is_keyword): Recognize `try', `catch', and `end_try_catch'. |
|
7027 * parse.y (TRY, CATCH): New tokens. |
|
7028 (command): Recognize try-catch block. |
|
7029 (end_error): Add cases for unwind_protect_end and try_catch_end. |
|
7030 * token.h (end_tok_type): New field, try_catch_end. |
|
7031 * tree-cmd.h, tree-cmd.cc (tree_try_catch): New class. |
|
7032 * variables.cc (bind_global_error_variable): New Function. |
|
7033 (clear_global_error_variable): Likewise. |
|
7034 (install_builtin_variables): Add DEFCONST for __error_text__. |
|
7035 * help.cc (keywords): Add `try', `catch', and `end_try_catch'. |
|
7036 |
|
7037 * tree-cmd.cc (tree_unwind_protect::eval): Undo previous change. |
|
7038 |
|
7039 * dirfns.cc (Freaddir, Fmkdir, Frmdir): |
|
7040 Do tilde expansion on the argument. |
|
7041 |
|
7042 Tue Sep 26 00:10:29 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7043 |
|
7044 * f-dassl.cc, f-fsolve.cc, f-lsode.cc, f-npsol.cc, f-quad.cc: |
|
7045 Don't try to figure out if the user-supplied functions take the |
|
7046 correct number of arguments. Simply let the call fail. |
|
7047 * variables.cc (takes_correct_nargs): Delete unused function. |
|
7048 * tree-expr.cc (tree_builtin::eval): Don't complain for too many |
|
7049 arguments to mapper functions. |
|
7050 * tree-expr.h, tree-expr.cc (tree_builtin, tree_function, tree_fvc): |
|
7051 Delete unused function max_expected_args. |
|
7052 |
|
7053 * defun.h (DEFUN): Delete unnecessary args nargin_min and nargout_max. |
|
7054 New arg unused_arg_flags. |
|
7055 (DEFUN_TEXT): Likewise. |
|
7056 * defun-dld.h (DEFUN_DLD_BUILTIN): Likewise. |
|
7057 * defun-int.h (DEFUN_INTERNAL, DECLARE_FUN, DEFINE_FUN_STRUCT): |
|
7058 Do the real work. |
|
7059 |
|
7060 * data.cc, dirfns.cc, dynamic-ld.cc, error.cc, f-balance.cc, |
|
7061 f-chol.cc, f-colloc.cc, f-dassl.cc, f-det.cc, f-eig.cc, f-expm.cc, |
|
7062 f-fft.cc, f-fft2.cc, f-find.cc, f-fsolve.cc, f-fsqp.cc, |
|
7063 f-givens.cc, f-hess.cc, f-ifft.cc, f-ifft2.cc, f-inv.cc, f-log.cc, |
|
7064 f-lpsolve.cc, f-lsode.cc, f-lu.cc, f-minmax.cc, f-npsol.cc, |
|
7065 f-pinv.cc, f-qpsol.cc, f-qr.cc, f-quad.cc, f-qzval.cc, f-rand.cc, |
|
7066 f-schur.cc, f-sort.cc, f-svd.cc, f-syl.cc, file-io.cc, help.cc, |
|
7067 input.cc, lex.l, load-save.cc, mappers.cc, octave-hist.cc, |
|
7068 octave.cc, octave.h, pager.cc, pr-output.cc, resource.cc, |
|
7069 sighandlers.cc, strfns.cc, sysdep.cc, timefns.cc, token.cc, |
|
7070 tree-const.cc, tree-expr.cc, tree-expr.h, tree-plot.cc, |
|
7071 unwind-prot.cc, unwind-prot.h, utils.cc, variables.cc, |
|
7072 variables.h, version.h, xdiv.cc: |
|
7073 Avoid unused variable warnings. |
|
7074 |
|
7075 * tree-expr.h (tree_oct_obj::print_value (ostream&)): |
|
7076 Delete name of unused arg. |
|
7077 (tree_fvc::save (ostream&, int, int): Likewise. |
|
7078 |
|
7079 * tree-const.h (tree_constant::tree_constant (magic_colon)): |
|
7080 Delete name of unused arg. |
|
7081 (tree_constant::tree_constant (all_va_args)): Likewise |
|
7082 (ColumnVector vector_value (int, int)): Likewise. |
|
7083 (ComplexColumnVector vector_value (int, int)): Likewise. |
|
7084 (Octave_object::eval (int, int, const Octave_object&): Likewise. |
|
7085 |
|
7086 * octave.cc (execute_startup_files): Look for octaverc first in |
|
7087 site/m, then in $(version)/m. |
|
7088 * variables.cc (get_local_site_defaults): New function. |
|
7089 * defaults.h.in (OCTAVE_LOCALFCNFILEDIR, OCTAVE_LOCALSTARTUPFILEDIR): |
|
7090 New macros. |
|
7091 * Makefile.in (defaults.h): Also substitute ${localfcndir}. |
|
7092 |
|
7093 Mon Sep 25 17:01:03 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7094 |
|
7095 * variables.cc (install_builtin_variables): Add DEFCONST for "e". |
|
7096 |
|
7097 Fri Sep 22 02:18:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7098 |
|
7099 * dirfns.cc (Fls): Delete ls_command after using it, not before. |
|
7100 |
|
7101 * input.h, input.cc (gnu_readline): Don't declare gnu_readline |
|
7102 `extern "C"'. |
|
7103 |
|
7104 * sysdep.h: Only declare gethostname if it is missing, then don't |
|
7105 declare it `extern "C"'. |
|
7106 |
|
7107 * dirfns.cc: Don't declare strerror(). |
|
7108 |
|
7109 * input.cc (command_generator): Use malloc, not xmalloc. Don't |
|
7110 declare xmalloc. |
|
7111 (gnu_readline): Don't declare this `extern "C"'. |
|
7112 |
|
7113 * octave-hist.cc: Don't declare history_get(). It is now in |
|
7114 readline/history.h. |
|
7115 |
|
7116 * input.cc: Don't declare history_get(). It is now in |
|
7117 readline/readline.h. |
|
7118 |
|
7119 * resource.cc: Don't surround include of sys/resource.h in |
|
7120 `extern "C" { }'. |
|
7121 |
|
7122 * fnmatch.h [__cplusplus]: Surround contents in `extern "C" { }'. |
|
7123 * load-save.cc, symtab.cc, variables.cc: Don't surround |
|
7124 fnmatch.h include in `extern "C" { }'. |
|
7125 |
|
7126 * help.cc: Don't #undef __FUNCTION_DEF before including |
|
7127 readline/tilde.h. |
|
7128 |
|
7129 * dirfuns.cc, file-io.cc, help.cc, load-save.cc, octave-hist.cc, |
|
7130 sysdep.cc, tree-plot.cc, utils.cc, variables.cc: |
|
7131 Don't surround readline includes in `extern "C" { }'. |
|
7132 |
|
7133 * sysdep.cc: Move all include statements to top of file. |
|
7134 |
|
7135 Tue Sep 19 01:58:21 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7136 |
|
7137 * octave.cc (Fsystem): Use iprocstream *, and unwind_protect it. |
|
7138 * pager.cc (flush_output_to_pager): Likewise. |
|
7139 * dirfns.cc (Fls): Likewise. |
|
7140 * tree-plot.cc (plot_stream): Now a pointer. |
|
7141 (open_plot_stream): Deal with it. |
|
7142 (send_to_plot_stream, cleanup_tmp_files, do_external_plotter_cd): |
|
7143 Likewise. |
|
7144 |
|
7145 * procstream.cc (cleanup_iprocstream, cleanup_oprocstream): |
|
7146 New functions. |
|
7147 |
|
7148 * procstream.h, procstream.cc (class iprocstream, class oprocstream): |
|
7149 Keep track of pbuf. Initialize it to 0 in default constructors, |
|
7150 delete it in destructor. Don't call close in destructor. |
|
7151 |
|
7152 * sighandlers.cc (octave_set_signal_handler): New function. |
|
7153 Use this name instead of signal everywhere. |
|
7154 * help.cc (try_info): Likewise. |
|
7155 * pager.cc (flush_output_to_pager): Likewise. |
|
7156 * octave.cc (main): Likewise. |
|
7157 * octave-hist.cc (do_edit_history): Likewise. |
|
7158 |
|
7159 * input.cc (initialize_readline): Set rl_paren_string_delimiters |
|
7160 to avoid treating single quotes as string delimiters when doing |
|
7161 paren matching. |
|
7162 |
|
7163 * Makefile.in (SOURCES): Don't list Map.cc or SLStack.cc here. |
|
7164 |
|
7165 * tree-const.cc: Do include utils.h. |
|
7166 |
|
7167 * sysdep.cc: Don't surround terminal includes in extern "C". |
|
7168 Include them before readline.h. |
|
7169 |
|
7170 * Map.h: Don't include utils.h. |
|
7171 (CHNode::CHNode (const char*, const C&, CHNode *t): |
|
7172 Do strsave() inline. |
|
7173 |
|
7174 * input.cc (generate_possible_completions): Generate name list |
|
7175 even when text == 0. |
|
7176 (operate_and_get_next): Don't declare history_stifled, call |
|
7177 history_is_stifled () instead. |
|
7178 Don't declare history_length, or max_input_history either. |
|
7179 Check (where >= history_length - 1) too, as in recent versions of |
|
7180 bash. |
|
7181 |
|
7182 * user-prefs.h (user_prefs): New field, `completion_append_char'. |
|
7183 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7184 (sv_completion_append_char): New function. |
|
7185 * variables.cc (install_builtin_variables): Install |
|
7186 completion_append_char. |
|
7187 * input.cc (command_generator): Use it. |
|
7188 |
|
7189 * SLList-expr.cc, SLList-misc.cc, SLList-plot.cc, SLList-tc.cc, |
|
7190 DLList-fi.cc: Include config.h. |
|
7191 * DLList-fi.cc: Include file-info.h, not file-io.h. |
|
7192 |
|
7193 Mon Sep 18 11:01:24 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7194 |
|
7195 * octave.h (clean_up_and_exit): Tag with NORETURN instead of using |
|
7196 typedef trick. |
|
7197 * error.h (panic): Likewise. |
|
7198 * utils.h (jump_to_top_level): Likewise. |
|
7199 |
|
7200 * file-io.h: Protect from multiple includes with octave_file_io, |
|
7201 not octave_files. |
|
7202 |
|
7203 * file-info.h (class file_info): Convert to using std C++ string |
|
7204 class from char *. |
|
7205 * file-info.cc: Likewise. Don't include utils.h. |
|
7206 * file-io.cc (return_valid_file, fopen_file_for_user, |
|
7207 fflush_internal, do_scanf): Use operator ==, not strcmp. |
|
7208 (close_files): Call error with file.name ().data (), |
|
7209 not file.name (). |
|
7210 (freport_internal): Call form with file.mode ().data () and |
|
7211 file.name ().data (). |
|
7212 |
|
7213 * file-io.cc, file-io.h: Extract file_info class. |
|
7214 * file-info.cc, file-info.h: New files for file_info class. |
|
7215 |
|
7216 * user-prefs.h (user_prefs): New field, `beep_on_error'. |
|
7217 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7218 (beep_on_error): New function. |
|
7219 * variables.cc (install_builtin_variables): Install beep_on_error. |
|
7220 * octave.cc (maximum_braindamage): Set beep_on_error to "true". |
|
7221 * error.cc (verror): Conditionally beep. |
|
7222 (error): Don't reset error_state until after verror is called. |
|
7223 |
|
7224 Sun Sep 17 16:41:25 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7225 |
|
7226 * load-save.cc (read_mat_binary_data, read_ascii_data, |
|
7227 save_ascii_data, read_binary_data, save_binary_data): |
|
7228 Handle string arrays. |
|
7229 |
|
7230 Fri Sep 15 00:24:19 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7231 |
|
7232 * user-prefs.cc (struct_levels_to_print, |
|
7233 set_output_max_field_width, set_output_precision, |
|
7234 set_save_precision): Eliminate unecessary kludge variable. |
|
7235 |
|
7236 * variables.cc (gobble_leading_white_space): New arg, |
|
7237 in_parts. Change all callers. |
|
7238 |
|
7239 * lex.l (HELP_FCN): Delete start state. The `help' command is now |
|
7240 handled the same as any other text-style function. |
|
7241 |
|
7242 * gripes.cc (gripe_invalid_value_specified): New function |
|
7243 * user-prefs.cc: Use it. |
|
7244 |
|
7245 * sysdep.cc (octave_words_big_endian): New global variable. |
|
7246 (ten_little_endians): New function. |
|
7247 (sysdep_init): Call it. |
|
7248 * load-save.cc (words_big_endian): Use this at run-time instead of |
|
7249 depending on WORDS_BIGENDIAN at compile-time. |
|
7250 |
|
7251 * symtab.h (SYMTAB_VARIABLES): New macro. |
|
7252 * variables.cc (Fclear): Use it instead of just |
|
7253 symbol_def::USER_VARIABLE when looking for variables. |
|
7254 |
|
7255 * octave.cc (main): If there is a file to execute, set |
|
7256 program_invocation_name and program_name to the name of the file |
|
7257 and argv to the remaining args. |
|
7258 (intern_argv): Only define argv if there are some remaining |
|
7259 arguments. |
|
7260 |
|
7261 * defun.h (DEFVAR_INT): New macro. |
|
7262 (DEFVAR): Define in terms of DEFVAR_INT. Delete args protect and |
|
7263 eternal. |
|
7264 (DEFCONST): New macro. |
|
7265 * variables.cc (install_builtin_variables): Use DEFCONST where |
|
7266 appropriate, change uses of DEFVAR to match new definition. |
|
7267 |
|
7268 * variables.cc (bind_builtin_variable): New variant that accepts |
|
7269 const tree_constant& value. |
|
7270 (install_builtin_variables): Properly alphabetize DEFVAR for this. |
|
7271 |
|
7272 * octave.cc (short_opts): Prefix with `+' to prevent argv |
|
7273 permutation. |
|
7274 (main): Don't use readline if forced_interactive. |
|
7275 (traditional): New file-scope variable. |
|
7276 (long_opts, usage_string, verbose_usage): Add `--traditional'. |
|
7277 (maximum_braindamage): New function. |
|
7278 (main): Call it if --traditional. |
|
7279 |
|
7280 * input.cc (do_input_echo): Print prompt correctly when |
|
7281 forced_interactive is either true or false. |
|
7282 |
|
7283 Thu Sep 14 00:54:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7284 |
|
7285 * data.cc (Fstruct_elements): New function. |
|
7286 |
|
7287 * file-io.cc (Fumask): New function. |
|
7288 |
|
7289 * dirfns.cc (Fmkdir, Frmdir, Frename): New functions. |
|
7290 |
|
7291 * Makefile.in: Add rules and dependencies for building safe-stat.o |
|
7292 and safe-lstat.o. |
|
7293 |
|
7294 * mkdir.c, rename.c, rmdir.c: New files. |
|
7295 * Makefile.in (SOURCES): Include them in the list. |
|
7296 |
|
7297 * safe-xstat.hin, safe-xstat.cin: New files |
|
7298 * Makefile.in (DISTFILES): Include them in the list. |
|
7299 |
|
7300 * sighandlers.cc (octave_new_handler): Try to continue on memory |
|
7301 exhausted errors. |
|
7302 (sigfpe_handler): Improve error message. |
|
7303 |
|
7304 * Makefile.in: Use `ifndef omit_deps', not `ifndef $(omit_deps)'. |
|
7305 |
|
7306 * dirfns.cc (Freaddir): New function. |
|
7307 |
|
7308 * f-sort.cc: Complete rewrite. Now uses stable sort algorithm and |
|
7309 correctly handles complex matrices containing columns of all real |
|
7310 numbers. |
|
7311 |
|
7312 Wed Sep 13 03:16:40 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7313 |
|
7314 * arith-ops.cc: Unconditionally #define DIVIDE_BY_ZERO_ERROR. |
|
7315 |
|
7316 * variables.cc (install_builtin_variables): Unconditionally |
|
7317 install NaN and nan. |
|
7318 |
|
7319 * mappers.cc (xisinf): Don't do bogus things if isinf, isnan, or |
|
7320 finite are missing. |
|
7321 (xfinite): Likewise. |
|
7322 |
|
7323 * sysdep.cc (octave_ieee_init): Don't set octave_NaN and |
|
7324 octave_Inf if values are not available. |
|
7325 |
|
7326 * resource.cc (mk_ru_map): Don't use ru_ or tv_ as prefixes to |
|
7327 Octave names for the structure members. |
|
7328 |
|
7329 Tue Sep 12 02:04:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7330 |
|
7331 * procstream.h, procstream.cc: Rewrite. |
|
7332 |
|
7333 Mon Sep 11 18:42:05 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7334 |
|
7335 * filemode.c: New file, from Emacs. |
|
7336 * Makefile.in (SOURCES): Add it to the list. |
|
7337 |
|
7338 * file-io.cc (Fstat, Flstat, mk_stat_map): New functions. |
|
7339 |
|
7340 * timefns.cc (mk_tm_map): Don't use tm_ as prefix to Octave names |
|
7341 for these structure members. |
|
7342 (extract_tm): Likewise. |
|
7343 (Flocaltime): Fix doc string to match. |
|
7344 |
|
7345 Thu Sep 7 02:04:27 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7346 |
|
7347 * load-save.cc (save_user_variables): New function. |
|
7348 * sighandlers.cc (my_friendly_exit): Call it before exiting. |
|
7349 (sigfpe_handler): New function. |
|
7350 (install_signal_handlers) [__alpha__]: Install it. |
|
7351 |
|
7352 Wed Sep 6 14:35:10 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7353 |
|
7354 * tree-cmd.cc (tree_unwind_protect::eval): Ignore errors and |
|
7355 suppress error messages while executing first block of |
|
7356 unwind_protect commands. |
|
7357 |
|
7358 * parse.y (end_error): Add missing case for unwind_protect_end. |
|
7359 |
|
7360 * tree-expr.cc (tree_builtin::eval): Complain if no arguments |
|
7361 given for mapper functions. |
|
7362 (tree_fvc::lookup_map_element): Print error message for invalid |
|
7363 structure reference. |
|
7364 |
|
7365 Tue Sep 5 02:04:12 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7366 |
|
7367 * file-io.cc, input.cc, load-save.cc, octave.cc, sysdep.cc, |
|
7368 variables.cc, octave-hist.cc, utils.cc, f-schur.cc, f-rand.cc, |
|
7369 f-quad.cc, f-qpsol.cc, f-npsol.cc, f-lsode.cc, f-fsolve.cc, |
|
7370 f-dassl.cc, f-colloc.cc, f-balance.cc, error.cc, data.cc: |
|
7371 Add const qualifiers where appropriate. |
|
7372 |
|
7373 * dirfns.h: Include <ctime>, for time_t. |
|
7374 |
|
7375 * tempname.c, file-io.cc, help.cc, input.cc, octave-hist.cc, |
|
7376 octave.cc, sighandlers.cc, sysdep.cc, tree-expr.cc, tree-misc.cc, |
|
7377 tree-plot.cc, utils.cc, variables.cc, sysdir.h: |
|
7378 Move #include <sys/type.h> inside #ifdef HAVE_UNISTD_H. |
|
7379 |
|
7380 * syswait.h: New file. |
|
7381 * Makefile.in (INCLUDES): Add it to the list. |
|
7382 * file-io.cc, sighandlers.cc: Use it instead of including |
|
7383 sys/wait.h directly. |
|
7384 |
|
7385 * octave.cc: Include statdefs.h, not sys/stat.h. |
|
7386 |
|
7387 * sysdir.h: New file. |
|
7388 * Makefile.in (INCLUDES): Add it to the list. |
|
7389 * dirfns.cc, utils.cc: Use it instead of including the headers |
|
7390 directly. |
|
7391 |
|
7392 * pathlen.h: New file. |
|
7393 * Makefile.in (INCLUDES): Add it to the list. |
|
7394 * dirfns.cc, input.cc: Use it instead of including sys/param.h |
|
7395 directly. |
|
7396 * utils.cc: Don't include sys/param.h |
|
7397 |
|
7398 Sun Sep 3 18:52:59 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7399 |
|
7400 * tree-const.cc (TC_REP::string_value): Return const char*, not |
|
7401 char *. |
|
7402 |
|
7403 * All .cc, .y, .l, .y files: Include <cctype>, not <ctype.h>, and |
|
7404 so on for all new C++ versions of these standard C headers. |
|
7405 |
|
7406 Thu Aug 31 17:09:38 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7407 |
|
7408 * pathsearch.h: Also hide `string'. |
|
7409 |
|
7410 * oct-str.cc, oct-str.h: New files. |
|
7411 * Makefile.in: Add to the appropriate lists. |
|
7412 * tc-rep.h: Change char* to Octave_string* in anonymous union. |
|
7413 * tree-expr.cc (tree_matrix::eval): Handle multiple element strings. |
|
7414 * strfns.cc (toascii): Likewise. |
|
7415 * tree-const.cc (print_as_string): Likewise. |
|
7416 (TC_REP::force_numeric, TC_REP::rows, TC_REP::columns, |
|
7417 TC_REP::double_value, TC_REP::complex_value, TC_REP::matrix_value, |
|
7418 TC_REP::complex_matrix_value, TC_REP::convert_to_str): Likewise. |
|
7419 (TC_REP::print): Call octave_print_internal for string case. |
|
7420 (all_strings): New function. |
|
7421 Fix constructors to use new data structure. |
|
7422 * pr-output.cc (octave_print_internal): Add version for strings. |
|
7423 * Array-string.cc: New file. |
|
7424 |
|
7425 * octave.cc (octave_argv): New global variable. |
|
7426 (intern_argv): New function. |
|
7427 (main): Fix argument parsing to do the right thing for arguments |
|
7428 to executable scripts. |
|
7429 * variables.cc: Add DEFUNs for argv, program_invocation_name, and |
|
7430 program_name. |
|
7431 |
|
7432 * defun.h (DEFVAR): Fix comment. |
|
7433 |
|
7434 Thu Aug 24 00:02:00 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7435 |
|
7436 * file-io.cc (fgets_internal): Make second arg optional. Add |
|
7437 optional arg `strip_final_newline'. |
|
7438 (Ffgets): Change to match new definition of fgets_internal. |
|
7439 (Ffgetl): Implement using the new fgets_internal. |
|
7440 |
|
7441 * f-rand.cc (Frand): Update code for sizing return value to match |
|
7442 that used by ones, zeros, and eye. |
|
7443 |
|
7444 Wed Aug 23 19:52:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7445 |
|
7446 * tree-const.cc (do_vector_assign): Don't crash for |
|
7447 A(range) = scalar, or A(matrix) = scalar. |
|
7448 |
|
7449 * f-dassl.cc (set_dassl_option): Rename from do_dassl_option. |
|
7450 (show_dassl_option): New function. |
|
7451 (Fdassl_options): Handle single arg. |
|
7452 * f-fsolve.cc (set_fsolve_option): Rename from do_fsolve_option. |
|
7453 (show_fsolve_option): New function. |
|
7454 (Ffsolve_options): Handle single arg. |
|
7455 * f-fsqp.cc (set_fsqp_option): Rename from do_fsqp_option. |
|
7456 (show_fsqp_option): New function. |
|
7457 (Ffsqp_options): Handle single arg. |
|
7458 * f-lpsolve.cc (set_lpsolve_option): Rename from do_lpsolve_option. |
|
7459 (show_lpsolve_option): New function. |
|
7460 (Flpsolve_options): Handle single arg. |
|
7461 * f-lsode.cc (set_lsode_option): Rename from do_lsode_option. |
|
7462 (show_lsode_option): New function. |
|
7463 (Flsode_options): Handle single arg. |
|
7464 * f-npsol.cc (set_npsol_option): Rename from do_npsol_option. |
|
7465 (show_npsol_option): New function. |
|
7466 (Fnpsol_options): Handle single arg. |
|
7467 * f-qpsol.cc (set_qpsol_option): Rename from do_qpsol_option. |
|
7468 (show_qpsol_option): New function. |
|
7469 (Fqpsol_options): Handle single arg. |
|
7470 * f-quad.cc: (set_quad_option): Rename from do_quad_option. |
|
7471 (show_quad_option): New function. |
|
7472 (Fquad_options): Handle single arg. |
|
7473 (Fquad): Doc fix. |
|
7474 |
|
7475 Tue Aug 22 00:38:05 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7476 |
|
7477 * tree-plot.cc (do_external_plotter_cd): New function. |
|
7478 * dirfns.cc (octave_change_to_directory): New function. If cd is |
|
7479 successful, also call do_external_plotter_cd(). |
|
7480 (Fcd): Call octave_change_to_directory(), not change_to_directory(). |
|
7481 |
|
7482 * pr-output.cc (pr_any_float): Change declaration of counter to |
|
7483 size_t to avoid gcc warnings. |
|
7484 |
|
7485 * idx-vector.cc, octave-hist.cc, tree-const.cc, tree-expr.cc, |
|
7486 tree-misc.cc, utils.cc, xpow.cc, Map.cc: |
|
7487 Update for change in for loop variable scope for gcc 2.7.0. |
|
7488 |
|
7489 Mon Aug 21 19:34:53 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7490 |
|
7491 * tree-const.cc (fortran_style_matrix_assignment): Properly handle |
|
7492 case of complex LHS, real RHS. |
|
7493 |
|
7494 * Makefile.in: Only include dependency files if $(omit_deps) is |
|
7495 not set. |
|
7496 |
|
7497 Wed Jul 5 00:03:58 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7498 |
|
7499 * sysdep.cc: Explicitly include string.h. |
|
7500 |
|
7501 Sun Jun 25 00:18:10 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7502 |
|
7503 * load-save.cc (too_large_for_float (const Matrix&)): |
|
7504 Extract elements as doubles, not Complex. |
|
7505 |
|
7506 Sat Jun 24 22:59:15 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7507 |
|
7508 * pr-output.cc (any_element_is_inf_or_nan): Declare extern, not static. |
|
7509 * f-svd.cc (Fsvd): Call here to avoid trying to take SVD of matrix |
|
7510 containing Inf or NaN values. |
|
7511 |
|
7512 * pr-output.cc (bit_format): New file-scope variable. |
|
7513 (set_format, pr_any_float): Handle bit_format. |
|
7514 (octave_print_internal): Handle bit_format like bank_format. |
|
7515 (init_format_state): Initialize bit_format. |
|
7516 (set_format_style): Allow `format bit' and `format native-bit'. |
|
7517 |
|
7518 Thu Jun 8 15:20:26 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7519 |
|
7520 * mappers.cc (arg, imag, signum): If arg is NaN, return NaN. |
|
7521 |
|
7522 Mon May 15 14:47:04 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7523 |
|
7524 * pager.cc (Fdiary): Initialize diary_file here, not in the |
|
7525 file-scope declaration. |
|
7526 |
|
7527 * tree-expr.cc (tree_index_expression::eval): |
|
7528 Handle nargin == 0 the same as other cases. |
|
7529 |
|
7530 Tue May 2 10:02:23 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7531 |
|
7532 * load-save.cc (do_double_format_conversion): Add missing breaks. |
|
7533 (do_float_format_conversion): Likewise. |
|
7534 |
|
7535 Mon May 1 13:50:24 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7536 |
|
7537 * Makefile.in (OCTAVE_LIBS): Add @LIBPLPLOT@ to the list. |
|
7538 |
|
7539 * timefns.cc (Ftime): Handle GETTIMEOFDAY_NO_TZ. |
|
7540 |
|
7541 * Makefile.in (SOURCES): Delete tc-rep.cc, tc-rep-ass.cc, and |
|
7542 tc-rep-idx.cc from the list. |
|
7543 |
|
7544 * tree-const.h: Add #pragma interface. |
|
7545 * tree-const.cc: Add contents of tc-rep.cc, tc-rep-ass.cc, and |
|
7546 tc-idx.cc to this file. Add #pragma implementation. This makes |
|
7547 tree-const.cc large, but makes the final binary smaller. |
|
7548 |
|
7549 * unwind-prot.h unwind-prot.cc token.cc token.h procstream.cc |
|
7550 procstream.h idx-vector.cc idx-vector.h symtab.cc symtab.h |
|
7551 oct-map.cc oct-map.h oct-obj.cc oct-obj.h tree-plot.h tree-plot.cc |
|
7552 tree-misc.cc tree-misc.h tree-expr.cc tree-expr.h tree-cmd.cc |
|
7553 tree-cmd.h tree-base.cc tree-base.h: |
|
7554 Add #pragma interface/implementation. |
|
7555 |
|
7556 * Makefile.in (OCTAVE_LIBS): Delete @LIBINFO@ from list. |
|
7557 * help.cc: Don't include info headers or extern declarations for |
|
7558 functions from info. |
|
7559 (try_info): Call info as a subprocess. Delete second arg. |
|
7560 Handle SIGINT here, not in help_from_info(). |
|
7561 (help_from_info): Complain if info doesn't work. |
|
7562 |
|
7563 * defun-dld.h (DEFUN_DLD_BUILTIN) [OCTAVE_LITE && MAKE_BUILTINS]: |
|
7564 If ! WITH_DLD, simply emit a character string constant. |
|
7565 |
|
7566 Fri Apr 28 15:23:06 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7567 |
|
7568 * lex.l ({IDENT}{S}*): Don't delete tok. That's handled by |
|
7569 strip_trailing_whitespace() now. |
|
7570 (<HELP_FCN>[^ \t\n]*{S}*|<TEXT_FCN>[^ \t\n\;\,]*{S}*): Ditto. |
|
7571 |
|
7572 * pathsearch.h: Include kpathsea/progname.h. |
|
7573 * octave.cc (initialize_globals): Call kpse_set_progname(). |
|
7574 |
|
7575 * token.h: Declare copy constructor and operator = private. |
|
7576 * token.cc: Abort if copy constructor or operator = is used. |
|
7577 |
|
7578 Thu Apr 27 13:54:39 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7579 |
|
7580 * tree-expr.cc (lookup_map_element): Don't list default argument |
|
7581 values here too. |
|
7582 |
|
7583 * pr-output.cc (hex_format): New file-scope variable. |
|
7584 (set_format, pr_any_float): Handle hex_format. |
|
7585 (octave_print_internal): Handle hex_format like bank_format. |
|
7586 (init_format_state): Initialize hex_format. |
|
7587 (set_format_style): Allow `format hex' and `format native-hex'. |
|
7588 |
|
7589 * variables.cc (bind_ans): Create ans_id each time with new and |
|
7590 ask tree_simple_assignment_expression to handle cleaning it up. |
|
7591 This apparently plugs a memory leak. |
|
7592 |
|
7593 * help.cc (Ftype): Don't try to print map constants. Handle |
|
7594 references to structure members. |
|
7595 |
|
7596 Wed Apr 26 12:40:59 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7597 |
|
7598 * input.cc (generate_struct_completions): New function. |
|
7599 (generate_possible_completions): Likewise. |
|
7600 (looks_like_struct): Likewise. |
|
7601 (command_generator): Handle completion of struct variables. |
|
7602 |
|
7603 * tree-expr.h, tree-expr.cc (tree_fvc::lookup_map_element): |
|
7604 Add insert and silent args. |
|
7605 |
|
7606 * oct-map.cc: New file. |
|
7607 * Makefile.in (SOURCES): Add it to the list. |
|
7608 |
|
7609 Mon Apr 24 09:41:02 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7610 |
|
7611 * variables.cc (Fexist): Handle structure references too. |
|
7612 |
|
7613 * tree-const.cc (lookup_map_element (const char*, int, int): |
|
7614 New function. |
|
7615 (lookup_map_element (SLList<char*>&, int, int): New arg, silent. |
|
7616 * tc-rep.cc (lookup_map_element): New arg, silent. If nonzero, |
|
7617 don't call error(). |
|
7618 |
|
7619 * tc-rep.h (is_empty): Define here. |
|
7620 * tree-const.h (is_empty): Hand off to TC_REP::is_empty(). |
|
7621 |
|
7622 * data.cc (Fstruct_contains): Call lookup_map_element on args(0) |
|
7623 instead of extracting the map and calling contains() on it. |
|
7624 |
|
7625 * parse.y (EPLUS, EMINUS): New tokens. |
|
7626 (simple_expr): Handle EPLUS, EMINUS the same as `+' and `-'. |
|
7627 * lex.l (".+", ".-"): New patterns. Match these separately to |
|
7628 disallow using them as unary operators. |
|
7629 |
|
7630 * lex.l (next_token_is_bin_op): Simplify by noting that spacing |
|
7631 only matters for those tokens that can also be unary ops. |
|
7632 |
|
7633 Fri Apr 21 14:34:45 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7634 |
|
7635 * load-save.cc (read_ascii_data): Allow reading of empty |
|
7636 matrices. |
|
7637 |
|
7638 * tc-rep-ass.cc (vector_assignment): Only assert that we are not |
|
7639 doing fortran-style indexing and that nr <= 1 || nc <= 1. |
|
7640 (do_vector_assign): Handle assignment of [] when one dimension is |
|
7641 zero and the other is anything. |
|
7642 |
|
7643 Thu Apr 20 13:56:21 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7644 |
|
7645 * tc-rep-ass.cc (delete_rows, delete_columns): Simply return if |
|
7646 num_to_delete is 0. |
|
7647 |
|
7648 * lex.l (handle_identifier): Don't match plot option keywords |
|
7649 inside parentheses or braces. |
|
7650 |
|
7651 * variables.cc (parse_fcn_file): Also delete tmp_help_txt if |
|
7652 running a script. |
|
7653 |
|
7654 * tree-cmd.h (tree_command): Add destructor. |
|
7655 |
|
7656 * tree-expr.h tree_simple_assignment_expression (lhs_idx_expr): |
|
7657 Hang on to idx_expr, not just its parts so it can be deleted. |
|
7658 (init): Initialize it. |
|
7659 * tree-expr.cc (~tree_simple_assignment_expression): Delete it. |
|
7660 |
|
7661 * tree-expr.h (tree_multi_val_ret, tree_oct_obj, tree_fvc, |
|
7662 tree_identifier, tree_builtin, tree_function): Add destructors. |
|
7663 * tree-expr.cc (tree_function::~tree_function): Delete some stuff. |
|
7664 |
|
7665 * tree-misc.h (tree_va_return_list): Add destructor. |
|
7666 |
|
7667 * octave.cc (__builtin_new, __builtin_delete): Provide our own, |
|
7668 for debugging. |
|
7669 |
|
7670 * utils.cc (strconcat): Don't depend on the return value from |
|
7671 strcat. |
|
7672 (file_in_path): Simplify logic. |
|
7673 |
|
7674 * parse.y (maybe_convert_to_ans_assign): Create ans_id each time |
|
7675 with new and ask tree_simple_assignment_expression to handle |
|
7676 cleaning it up. This apparently plugs a memory leak. |
|
7677 |
|
7678 * lex.l (strip_trailing_whitespace): Declare retval static. |
|
7679 Delete it before saving next string. |
|
7680 |
|
7681 * error.cc (Ferror): Do call error() for empty string args. |
|
7682 (error_1): Don't print anything if fmt is "" or "\n", but do set |
|
7683 the error state appropriately. |
|
7684 |
|
7685 * tree-cmd.cc (tree_unwind_protect::eval): Handle return and break |
|
7686 in the `try' part of the statement. |
|
7687 |
|
7688 Mon Apr 10 19:29:44 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7689 |
|
7690 * f-expm.cc, f-givens.cc, f-qzval.cc, f-syl.cc, f-rand.cc: |
|
7691 Where appropriate, declare Fortran functions to take reference |
|
7692 instead of pointer args. Change callers. |
|
7693 |
|
7694 * mappers.cc: Declare Fortran functions to take reference instead |
|
7695 of pointer args. Change callers. |
|
7696 |
|
7697 * gamma.c, lgamma.c, erfc.c, erf.c, atanh.c, asinh.c, acosh.c: |
|
7698 Declare Fortran functions to take reference instead of pointer |
|
7699 args. |
|
7700 |
|
7701 Sun Apr 9 19:38:53 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7702 |
|
7703 * file-io.cc (Fpopen, Fpclose, Fexecute, Fsync_system, |
|
7704 Fasync_system, Fwaitpid, Fmkfifo, Funlink): New functions. |
|
7705 |
|
7706 * sighandlers.cc (sigchld_handler): New function. |
|
7707 (install_signal_handlers): Add call to install |
|
7708 sigchld_handler. (This is #if 0'd out, waiting for code to help |
|
7709 determine which child exited and what to do about it). |
|
7710 |
|
7711 * tree-expr.h (tree_oct_obj): New class. |
|
7712 |
|
7713 * tree-expr.h (tree_multi_assignment_expression::preserve): New |
|
7714 data member. Add arg with default value to constructors. Change |
|
7715 callers as necessary. |
|
7716 * tree-expr.cc (~tree_multi_assignment_expression): Conditionally |
|
7717 delete lhs. |
|
7718 |
|
7719 * parse.y (make_multi_val_ret): Pass matrix instead of getting it |
|
7720 from the global matrix list. |
|
7721 (expression): Extract matrix from matrix list before calling |
|
7722 make_multi_val_ret(). |
|
7723 |
|
7724 * parse.y (command): Handle new for loop syntax for structures. |
|
7725 |
|
7726 * tree-plot.h (subplot_list): Include tree_print_code() in |
|
7727 initializer lists for constructors. |
|
7728 * tree-expr.h (tree_statement_list, tree_argument_list, |
|
7729 tree_parameter_list, tree_return_list, tree_global_init_list, |
|
7730 tree_if_command_list, ): Likewise. |
|
7731 |
|
7732 * tree-cmd.h (tree_for_command::id_list): New data member. |
|
7733 (tree_for_command (tree_return_list*, tree_expression*, |
|
7734 tree_statement_list*, int, int)): Likewise. |
|
7735 * tree-cmd.cc (tree_for_command::eval): Handle for loops with |
|
7736 structures. |
|
7737 (do_for_loop_once (tree_return_list*, Octave_object&, int&)): |
|
7738 New form for handling for loops with structures. |
|
7739 |
|
7740 * sysdep.cc (octave_ieee_init): Determine floating point format |
|
7741 here. |
|
7742 (native_float_format): New global variable. |
|
7743 (Fisieee): Compute return value from native_float_format, not by |
|
7744 using preprocessor macros. |
|
7745 * sysdep.h (enum floating_point_format): Move declaration here. |
|
7746 * load-save.cc: From here. |
|
7747 Always define all floating point format conversion routines. |
|
7748 (do_double_format_conversion, do_float_format_conversion): |
|
7749 Use native_float_format instead of preprocessor macros. |
|
7750 |
|
7751 Sat Apr 8 15:41:35 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7752 |
|
7753 * Makefile (TEMPLATE_SRC): New variable. |
|
7754 (DISTFILES): Add $(TEMPLATE_SRC). |
|
7755 (SOURCES): Delete Map.cc and SLStack.cc from here. |
|
7756 |
|
7757 * variables.cc (install_builtin_variables): Use OCTAVE_VERSION |
|
7758 instead of version_string to initialize OCTAVE_VERSION. |
|
7759 * version.h (version_string): Delete. |
|
7760 |
|
7761 * getopt.c (_getopt_internal): Initialize indfound to avoid warning. |
|
7762 |
|
7763 Fri Apr 7 15:29:41 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7764 |
|
7765 * tc-inlines.h (REP_RHS_MATRIX): Just check to see if tc is real |
|
7766 or complex. If conversion fails, return. |
|
7767 |
|
7768 Thu Apr 6 00:10:47 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7769 |
|
7770 * data.cc (Fstruct_contains): New function. |
|
7771 |
|
7772 * tc-rep.cc (print_code): Add extra parens around while condition |
|
7773 to avoid warning. |
|
7774 * utils.cc (undo_string_escapes): Likewise. |
|
7775 * input.cc (decode_prompt_string): Likewise. Also rewrite if |
|
7776 statement to avoid warning. |
|
7777 |
|
7778 Tue Apr 4 22:54:17 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7779 |
|
7780 * tree-expr.cc (tree_multi_assignment_expression::eval, |
|
7781 tree_simple_assignment_expression::eval): Call print_constant |
|
7782 even if user_pref.print_answer_id_name is false. |
|
7783 |
|
7784 Mon Apr 3 17:57:14 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7785 |
|
7786 * tc-inlines.h (TC_REP): Avoid redefinition. |
|
7787 |
|
7788 * tree-const.h (do_binary_op, do_unary_op): Declare as friends of |
|
7789 tree_constant class too. |
|
7790 |
|
7791 * tree-plot.h (subplot_using::have_values): Delete data member. |
|
7792 * tree-plot.cc (subplot_using::eval): Always recompute values. |
|
7793 |
|
7794 Fri Mar 31 10:18:32 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7795 |
|
7796 * tc-rep.cc (print): Print open brace for structures here. |
|
7797 * tree-expr.cc (print_constant): Not here. |
|
7798 |
|
7799 * symtab.cc (define): Don't delete arg if sv_fcn fails. |
|
7800 |
|
7801 * tree-const.cc (print): New function. Create ostrstream buffer |
|
7802 and pass it to rep->print(). |
|
7803 * tree-const.h (eval (int)): Call print(), not rep->print(). |
|
7804 * tc-rep.cc (structure_indent_level): New file-scope variable. |
|
7805 (print): New arg, output_buf, is stream to print to. |
|
7806 Print values of structure elements too. |
|
7807 |
|
7808 * user-prefs.h (user_preferences): New field, struct_levels_to_print. |
|
7809 * user-prefs.cc (struct_levels_to_print): New function. |
|
7810 * variables.cc (install_builtin_variables): Add DEFVAR for new |
|
7811 variable struct_levels_to_print. |
|
7812 |
|
7813 * tree-const.cc (print_as_scalar, print_as_structure): Move here |
|
7814 from tree-expr.cc and make extern. |
|
7815 |
|
7816 * tree-expr.cc (print_as_structure): New function. |
|
7817 (print_constant): Use it. |
|
7818 |
|
7819 * tree-expr.cc (print_constant): New arg, print_padding. |
|
7820 (tree_simple_assignment_expression::eval): Use print_constant |
|
7821 instead of duplicating code here. |
|
7822 (tree_multi_assignment_expression::eval): Likewise. |
|
7823 |
|
7824 Thu Mar 30 13:24:11 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7825 |
|
7826 * Makefile.in (SOURCES): Add resource.cc. |
|
7827 * resource.cc: New file, extracted from timefns.cc. |
|
7828 (Fgetrusage): New function. |
|
7829 * timefns.cc (cputime): Delete (now implemented in a function file |
|
7830 using new getrusage function). |
|
7831 |
|
7832 Wed Mar 29 22:52:42 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7833 |
|
7834 * Makefile.in (SOURCES): Add strftime.c. |
|
7835 * strftime.c: New file, from sh-utils distribution. |
|
7836 |
|
7837 * timefns.cc (mk_tm_map, extract_tm, Ftime, Fgmtime, Flocaltime, |
|
7838 Fmktime, Fstrftime): New basic time functions. |
|
7839 (Fclock, Fdate): Delete (now implemented in function files using new |
|
7840 time functions). |
|
7841 |
|
7842 Tue Mar 28 17:51:51 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7843 |
|
7844 * file-io.cc (return_valid_file, do_printf, do_scanf, |
|
7845 fclose_internal, feof_internal, ferror_internal, fflush_internal, |
|
7846 fgets_internal, fopen_internal, fread_internal, freport_internal, |
|
7847 frewind_internal, fseek_internal, ftell_internal, |
|
7848 fwrite_internal): Declare static. |
|
7849 * file-io.h: Delete extern declarations for them. |
|
7850 |
|
7851 Fri Mar 24 09:52:50 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7852 |
|
7853 * pr-output.cc (pr_col_num_header): New function. |
|
7854 (compact_format): New file-scope variable. |
|
7855 (set_format_style): Handle loose and compact formats. |
|
7856 (octave_print_internal (ostream&, const ComplexMatrix&, int)): |
|
7857 Replace duplicate code with call to pr_col_num_header(). |
|
7858 (octave_print_internal (ostream&, const Matrix&, int): Likewise. |
|
7859 (octave_print_internal (ostream&, const Range&, int): Likewise. |
|
7860 |
|
7861 Tue Mar 21 08:44:48 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7862 |
|
7863 * mappers.cc (xgamma): Always use Slatec library function. |
|
7864 * (xlgamma): Likewise. |
|
7865 * Makefile.in (SOURCES): Don't include lgamma.c. |
|
7866 |
|
7867 Fri Mar 17 22:38:39 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7868 |
|
7869 * tc-rep.cc (TC_REP::new): Don't try to keep track of newlist_tail. |
|
7870 Explicitly initialize newlist to zero. |
|
7871 * tree-const.cc (tree_constant::operator new): Likewise. |
|
7872 |
|
7873 Fri Mar 10 12:40:24 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7874 |
|
7875 * tree-cmd.cc (quit_loop_now): Declare inline. |
|
7876 (tree_for_command::do_for_loop_once): Split into two versions, one |
|
7877 for the general case and one for when the loop variable is a |
|
7878 simple identifier. |
|
7879 (DO_LOOP): New macro. Move tests outside of loop. |
|
7880 (tree_for_command::eval): Speed up by checking to see if loop |
|
7881 variable is a simple identifier and by using DO_LOOP. |
|
7882 |
|
7883 * tree-const.h: New union of rep and freeptr. The freeptr element |
|
7884 is used for our custom memory management functions. |
|
7885 |
|
7886 * tc-rep.h: Add freeptr element to anonymous union (for our custom |
|
7887 memory management functions). |
|
7888 |
|
7889 * tree-const.cc (newlist, newlist_grow_size, newlist_tail): New |
|
7890 static variables. |
|
7891 (tree_constant::operator new): Always define to allow more |
|
7892 efficient allocation of single tree_constants. |
|
7893 (tree_constant::operator delete): Likewise, handle deletion of the |
|
7894 memory we allocate. |
|
7895 |
|
7896 * tc-rep.cc (newlist, newlist_grow_size, newlist_tail): New static |
|
7897 variables. |
|
7898 (tree_constant::operator new): Always define to allow more |
|
7899 efficient allocation of single tree_constants. |
|
7900 (tree_constant::operator delete): Likewise, handle deletion of the |
|
7901 memory we allocate. |
|
7902 |
|
7903 Fri Mar 3 14:00:08 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7904 |
|
7905 * error.cc (verror): Terminate output_buf with ends. |
|
7906 |
|
7907 * statdefs.h: Use C-style comment in first line instead of |
|
7908 C++-style comment. |
|
7909 |
|
7910 Mon Feb 27 10:11:18 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7911 |
|
7912 * parse.y (maybe_convert_to_ans_assign): Only lookup ans once. |
|
7913 * variables.cc (bind_ans): New function. |
|
7914 * tree-expr.cc (tree_identifier::eval (int)): Use it here. |
|
7915 (tree_identifier::eval (int, int, const Octave_object&): And here. |
|
7916 |
|
7917 * tree-expr.cc (install_nargin_and_nargout): New function. |
|
7918 * tree-expr.h (tree_function::tree_function (tree_statement_list *, |
|
7919 symbol_table *, int, int)): Call it. |
|
7920 |
|
7921 * tree-expr.cc (tree_function::bind_nargin_and_nargout): New function. |
|
7922 (tree_function::eval): Call it insead of the one from variables.cc. |
|
7923 |
|
7924 * variables.cc (bind_nargin_and_nargout): #if 0 out. |
|
7925 |
|
7926 Sun Feb 26 00:17:06 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7927 |
|
7928 * load-save.cc (Fload, Fsave): Free fname returned by tilde_expand(). |
|
7929 * dirfns.cc (Fls): Likewise. |
|
7930 |
|
7931 * tree-expr.cc (tree_multi_assignment_expression::eval (int, int, |
|
7932 const Octave_object&)): Call tree_return_list::operator () (Pix) |
|
7933 explicitly. |
|
7934 |
|
7935 * octave.cc (initialize_globals): Put TEXMF in the environment for |
|
7936 kpthsea. |
|
7937 |
|
7938 * Makefile.in (OCTAVE_LIBS): Use @LIBINFO@ and @LIBREADLINE@, |
|
7939 substituted by configure. Use kpathsea.a, not libkpathsea, so we |
|
7940 don't have to modify the kpathsea Makefile. |
|
7941 |
|
7942 Sat Feb 25 18:59:26 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7943 |
|
7944 * pathsearch.cc: New file. |
|
7945 * pathsearch.h: New file. |
|
7946 * Makefile.in (INCLUDES): Include it in the list. |
|
7947 * dynamic-ld.cc, help.cc, utils.cc: Use it instead of repeating |
|
7948 identical code multiple times. |
|
7949 |
|
7950 * variables.cc (install_builtin_variables): Only DEFVAR |
|
7951 suppress_verbose_help_message if USE_GNU_INFO. |
|
7952 |
|
7953 * help.cc (Fhelp): Only handle -i if USE_GNU_INFO. |
|
7954 (additional_help_message): Only print message if USE_GNU_INFO. |
|
7955 (builtin_help): New function. |
|
7956 (help_from_info): New function. Print warning if not USE_GNU_INFO. |
|
7957 |
|
7958 See ChangeLog.1 in the top level directory for earlier changes. |