3712
|
1 2000-08-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2 |
|
3 * parse.y: Use octave_time, not time. |
|
4 |
3711
|
5 2000-08-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6 |
|
7 * oct-stream.cc (printf_value_cache::double_value): Also set |
|
8 curr_stat to conversion_error if there are no values at all. |
|
9 |
3710
|
10 2000-08-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
11 |
|
12 * dirfns.cc (Flink, Fsymlink, Freadlink): New functions. |
|
13 |
3709
|
14 2000-08-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
15 |
|
16 * load-save.cc (Vsave_header_format_string): New variable. |
|
17 (symbols_of_load_save): DEFVAR it. |
|
18 (save_header_format, default_save_header_format): New functions. |
|
19 (write_header): Use Vsave_header_format_string here. |
|
20 |
3707
|
21 2000-07-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
22 |
3708
|
23 * pt-pr-code.h (tree_print_code::curr_print_indent_level, |
|
24 (tree_print_code::beginning_of_line): No longer static. |
|
25 (tree_print_code::tree_print_code): Initialize them here. |
|
26 * pt-pr-code.cc: Not here. |
|
27 |
|
28 * pt-stmt.cc (tree_statement::eval): Set curr_statement here. |
|
29 (tree_statement_list::eval): Not here. |
|
30 |
3707
|
31 Debug-on-error stuff based on a patch submitted by Paul Kienzle |
|
32 <pkienzle@kienzle.powernet.co.uk> for 2.0.x. |
|
33 |
|
34 * error.cc (Vdebug_on_warning): New static flag variable. |
|
35 (debug_on_warning): New function. |
|
36 (symbols_of_warning): DEFVAR debug_on_warning. |
|
37 (warning): Handle debug_on_warning here. |
|
38 |
|
39 * input.cc (do_keyboard): New function. |
|
40 (Fkeyboard): Use it to do the real work. |
|
41 * pt-stmt.cc (curr_statement): New static variable. |
|
42 (tree_statement::eval): Save and restore it here. |
|
43 * error.cc (Vdebug_on_error): New static flag variable. |
|
44 (debug_on_error): New function. |
|
45 (symbols_of_error): DEFVAR debug_on_error. |
|
46 (pr_where, pr_where_1): New functions. |
|
47 (error): Handle debug_on_error here. |
|
48 |
3705
|
49 2000-07-20 Joao Cardoso <jcardoso@inescporto.pt> |
|
50 |
|
51 * Makefile.in (octave): Link with $(LD_CXX) instead of $(CXX) |
|
52 |
3704
|
53 2000-07-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
54 |
|
55 * oct-stream.cc (octave_base_stream::oscanf): Advance to next |
|
56 format element before attempting to pick up any trailing stuff. |
|
57 |
3697
|
58 2000-07-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
59 |
3698
|
60 * lex.l (next_token_is_bin_op): Don't recognize `..' as a binary op. |
|
61 |
3697
|
62 * load-save.cc (get_file_format): Call read_mat5_binary_file_header |
|
63 with third arg true instead of false, so we don't barf if the file |
|
64 is not a matlab v5 binary file. |
|
65 |
3695
|
66 2000-07-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
67 |
|
68 * Makefile.in (octave): Link to ../libcruft/blas-xtra/xerbla.o here. |
|
69 |
|
70 * octave.cc (main): Remove kluge to attempt linking our version of |
|
71 xerbla. |
|
72 |
|
73 2000-07-07 Steven G. Johnson <stevenj@alum.mit.edu> |
|
74 |
|
75 * load-save.cc (have_h5giterate_bug): New file-scope variable. |
|
76 (hdf5_read_next_data): Only increment current_item if |
|
77 have_h5giterate_bug is true. |
|
78 (read_hdf5_data): Set have_h5giterate_bug here. |
|
79 Only increment hs.current_item if have_h5giterate_bug is true. |
|
80 |
3693
|
81 2000-07-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
82 |
|
83 * c-file-ptr-stream.cc (c_file_ptr_buf::close): |
|
84 Return -1 if file pointer is NULL. |
|
85 Set file pointer to 0 after closing. |
|
86 (c_file_ptr_buf::~c_file_ptr_buf): Call close after flushing. |
|
87 |
3694
|
88 2000-07-05 Steven G. Johnson <stevenj@alum.mit.edu> |
3692
|
89 |
|
90 * Makefile.in (BLAS_LIBS): Substitute here. |
|
91 (octave): Use $(BLAS_LIBS) in the final link command. |
|
92 |
3694
|
93 2000-06-30 Steven G. Johnson <stevenj@alum.mit.edu> |
3690
|
94 |
|
95 * Makefile.in (octave): Link $(FLIBS) last. |
|
96 * octave.cc (main): Force our own xerbla to be linked instead of |
|
97 some system version. |
|
98 |
3688
|
99 2000-06-29 James R. Van Zandt <jrv@vanzandt.mv.com> |
|
100 |
3689
|
101 * load-save.cc (load_save_format): New value, LS_MAT5_BINARY. |
3688
|
102 (arrayclasstype, mat5_data_type): New enums. |
|
103 (read_mat5_binary_data): New function. |
|
104 (read_mat5_tag): New function. |
|
105 (read_mat5_binary_element): New function. |
|
106 (read_mat5_binary_file_header): New function. |
|
107 (get_file_format): Check for mat5 binary format too. |
|
108 (do_load): Handle mat5 binary format. |
|
109 (write_mat5_tag): New function. |
|
110 (write_mat5_array): New function. |
|
111 (class mat5_callback): New class. |
|
112 (save_mat5_binary_element): New functnon. |
|
113 (do_save): Handle mat5 binary format. |
|
114 (write_header): Handle LS_MAT5_BINARY case too. |
|
115 (save_user_variables): Handle LS_MAT5_BINARY case too. |
|
116 (Fsave): Handle LS_MAT5_BINARY case too. |
|
117 (Fload): Handle LS_MAT5_BINARY case too. |
|
118 |
3694
|
119 2000-06-29 Steven G. Johnson <stevenj@alum.mit.edu> |
3687
|
120 |
|
121 All of the following changes are protected by #ifdef HAVE_HDF5. |
|
122 |
|
123 * load-save.cc (load_save_format): New value, LS_HDF5. |
|
124 (make_valid_identifier): New function. |
|
125 (class hdf5_fstreambase, class hdf5_ifstream, class hdf5_ofstream): |
|
126 New classes for reading and writing hdf5 data. |
|
127 (hdf5_types_compatible): New function. |
|
128 (hdf5_import_multidim): New function. |
|
129 (hdf5_check_attr): New function. |
|
130 (hdf5_read_next_data): New function. |
|
131 (hdf5_make_complex_type): New function. |
|
132 (hdf5_make_range_type): New function. |
|
133 (read_hdf5_data): New function. |
|
134 (get_file_format): Handle HDF5 format. |
|
135 (do_load): Handle LS_HDF5 case. |
|
136 (Fload): Handle HDF5 format. |
|
137 (hdf5_add_attr): New function. |
|
138 (save_type_to_hdf5): New function. |
|
139 (add_hdf5_data): New function. |
|
140 (do_save): Handle HDF5 format. |
|
141 (get_default_save_format): Handle LS_HDF5 case. |
|
142 (write_header): Handle LS_HDF5 case. |
|
143 (save_user_variables): Handle HDF5 format. |
|
144 (Fsave): Handle HDF5 format. |
|
145 |
3686
|
146 2000-06-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
147 |
|
148 * help.cc (display_help_text): If writing to filter fails, send |
|
149 unformatted text to output stream. |
|
150 |
3683
|
151 2000-06-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
152 |
3685
|
153 * OPERATORS/op-bm-bm.cc (eq): Define using mx_el_eq, not operator ==. |
|
154 (ne): Likewise, use mx_el_ne, not operator !=. |
|
155 |
3683
|
156 * pr-output.cc (Fdisp): Delete. |
|
157 |
3681
|
158 2000-06-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
159 |
3682
|
160 * pr-output.cc (float_format::float_format): Set default values |
|
161 for width and precision to -1. |
|
162 (operator << (ostream&, pr_formatted_float&): Set width and |
|
163 precision if values are >= 0. |
|
164 (set_real_format, set_real_matrix_format, set_range_format, |
|
165 set_complex_format, set_complex_matrix_format): If we have all |
|
166 integers, infinities, or nans, set precision equal to field width. |
|
167 |
|
168 * load-save.cc (read_ascii_data): Allow empty strings and string |
|
169 vectors to be restored. |
|
170 |
3681
|
171 * variables.cc (var_matches_any_pattern): New function. |
|
172 (Fclear): Use it to make exclusive clear work correctly. |
|
173 |
3676
|
174 2000-06-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
175 |
3678
|
176 * ov-range.h (octave_range::is_numeric_type): New function. |
|
177 |
3676
|
178 * sysdep.cc (Fkbhit): Also ask for input if forced_interactive. |
|
179 |
3675
|
180 2000-06-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
181 |
|
182 * Makefile.in (oct-gperf.h): Use $(GPERF) instead of gperf. |
|
183 |
3671
|
184 2000-05-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
185 |
|
186 * DLD-FUNCTIONS/qz.cc (Fqz): When computing finite generalized |
|
187 eigenvalues, don't write past the end of the array. |
|
188 |
3665
|
189 2000-05-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
190 |
|
191 * ov-base-nd-array.h, ov-base-nd-array.cc, ov-re-nd-array.h, |
|
192 ov-re-nd-array.h: New files. |
|
193 * Makefile.in: Add them to the appropriate lists. |
|
194 |
|
195 * pt-stmt.h, pt-stmt.cc (class tree_statement): |
|
196 Store comments associated with this parse tree element. |
|
197 * pt-select.h, pt-select.cc (class tree_if_clause, |
|
198 class tree_if_command, class tree_switch_case |
|
199 class tree_switch_command): Likewise. |
|
200 * pt-loop.h, pt-loop.cc (class tree_while_command, |
|
201 class tree_do_until_command, class tree_simple_for_command, |
|
202 class tree_complex_for_command): Likewise. |
|
203 * pt-except.h, pt-except.cc (class tree_try_catch_command, |
|
204 class tree_unwind_protect_command): Likewise. |
|
205 * ov-usr-fcn.h, ov-usr-fcn.cc (class octave_user_function): Likewise. |
|
206 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::print_comment_elt, |
|
207 tree_print_code::print_comment_list, |
|
208 tree_print_code::print_indented_comment): New functions. |
|
209 (tree_print_code::visit_simple_for_command, |
|
210 tree_print_code::visit_complex_for_command, |
|
211 tree_print_code::visit_octave_user_function_header, |
|
212 tree_print_code::visit_octave_user_function_trailer, |
|
213 tree_print_code::visit_if_command, tree_print_code::visit_statement, |
|
214 tree_print_code::visit_switch_case, |
|
215 tree_print_code::visit_switch_command, |
|
216 tree_print_code::visit_try_catch_command, |
|
217 tree_print_code::visit_unwind_protect_command |
|
218 tree_print_code::visit_while_command, |
|
219 tree_print_code::visit_do_until_command): Handle comments. |
|
220 * lex.l, parse.y: Handle comments in parse trees. |
|
221 * comment-list.h, comment-list.cc: New files. |
|
222 * Makefile.in: Add them to the appropriate lists. |
|
223 |
3661
|
224 2000-04-23 etienne grossmann <etienne@anonimo.isr.ist.utl.pt> |
|
225 |
|
226 * pt-mat.cc (tm_row_const::tm_row_const_rep::eval_error): |
|
227 New args x and y, for dimension mismatch info. |
|
228 Change callers where appropriate. |
|
229 (tm_const::init): Report mismatched column dimensions. |
|
230 |
3658
|
231 2000-04-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
232 |
|
233 * sysdep.cc (kbhit): Also clear cin if at EOF. |
|
234 |
3657
|
235 2000-04-11 Joao Cardoso <jcardoso@inescn.pt> |
|
236 |
|
237 * sysdep.cc (kbhit): New arg, wait. |
|
238 (raw_mode): Ditto. |
|
239 (Fkbhit): If given an arg, call kbhit with wait = false. |
|
240 |
|
241 * DLD-FUNCTIONS/minmax.cc (Fmax, Fmin): Fix doc string. |
|
242 |
3656
|
243 2000-04-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
244 |
|
245 * dynamic-ld.cc (octave_dynamic_loader::do_load): Undo previous change. |
|
246 |
3655
|
247 2000-04-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
248 |
|
249 * dynamic-ld.cc (octave_dynamic_loader::do_load): Also fail with |
|
250 error message if we don't find the mangled function name in the |
|
251 file. |
|
252 |
3652
|
253 2000-03-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
254 |
3653
|
255 * oct-stream.cc (printf_value_cache::string_value): Return string |
|
256 matrices in a Matlab-compatible way. |
|
257 (printf_value_cache): Redesign the way list_exhausted works. |
|
258 |
3652
|
259 * oct-fstrm.cc (octave_fstream::do_close): New function. |
|
260 * oct-stdstrm.cc (octave_istdiostream::do_close): Ditto. |
|
261 (octave_ostdiostream::do_close): Ditto. |
|
262 * c-file-ptr-stream.cc (c_file_ptr_buf::close): Ditto. |
|
263 (i_c_file_ptr_stream::close): Ditto. |
|
264 (o_c_file_ptr_stream::close): Ditto. |
|
265 * oct-prcstrm.cc (octave_iprocstream::do_close): Ditto. |
|
266 (octave_oprocstream::do_close): Ditto. |
|
267 (octave_iprocstram::~octave_iprocstram): Call do_close here. |
|
268 (octave_iprocstram::~octave_oprocstram): Likewise. |
|
269 |
|
270 * oct-stream.h (octave_base_stream::do_close): New virtual function. |
|
271 (octave_base_stream::close): If stream is open, call do_close. |
|
272 |
|
273 * c-file-ptr-stream.cc (c_file_ptr_buf::flush): New function. |
|
274 (c_file_ptr_buf::~c_file_ptr_buf): Use it. |
|
275 (c_file_ptr_buf::overflow): Ditto. |
|
276 (c_file_ptr_buf::sync): Ditto. |
|
277 |
3649
|
278 2000-03-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
279 |
|
280 * oct-procbuf.cc (octave_procbuf::open): Make output streams line |
|
281 buffered. |
|
282 |
3640
|
283 2000-03-24 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
284 |
3644
|
285 * sighandlers.cc (my_friendly_exit): Prefix failure messages with |
|
286 panic instead of error. |
|
287 |
3642
|
288 * c-file-ptr-stream.cc (c_file_ptr_buf::~c_file_ptr_buf): |
|
289 Avoid dereferencing NULL pointer. |
|
290 |
3640
|
291 * oct-stream.cc (printf_format_list::add_elt_to_list, |
|
292 printf_format_list::process_conversion, |
|
293 printf_format_list::finish_conversion): New args, flags, fw, and prec. |
|
294 (printf_format_list::printf_format_list): Save more complete info. |
|
295 (printf_format_list::printme): Print flags, fw, and prec. |
|
296 (octave_base_stream::printf): Simplify. |
|
297 (do_printf_conv): Delete have_arg arg, since it is always true now. |
|
298 (octave_base_stream::do_printf): Handle case of no args and % |
|
299 directly instead of using do_printf_conv. |
|
300 (printf_value_cache::exhausted): Rename from no_more_values. |
|
301 (DO_PCT_CONVERSION): New macro |
|
302 (octave_base_streain::do_scanf, octave_base_streain::do_oscanf): |
|
303 Use it. |
|
304 (scanf_format_list::finish_conversion): `%' counts as a conversion too. |
|
305 Also don't forget to set type for it. |
|
306 (OCTAVE_SCAN_0): Delete. |
|
307 (OCTAVE_SCAN): Rename from OCTAVE_SCAN_1. |
|
308 (octave_base_stream::scanf, octave_base_stream::oscanf): Don't |
|
309 special-case number of conversions here. |
|
310 (octave_base_stream::oscanf, octave_base_stream::do_oscanf): Only |
|
311 cycle through fmt elements if the number of conversions is greater |
|
312 than 0. |
|
313 |
|
314 * oct-stream.h (scanf_format_list::next): New arg, `cycle'. |
|
315 (printf_format_list::next): New arg, `cycle'. |
|
316 (printf_format_list::last_elt_p): New function. |
|
317 (printf_format_elt): New fields fw, prec, and flags. |
|
318 Define copy constructor and assignment operator. |
|
319 (scanf_format_elt): Define copy constructor and assignment operator. |
|
320 |
3627
|
321 2000-03-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
322 |
3639
|
323 * oct-stream.cc (OCTAVE_SCAN_0, OCTAVE_SCAN_1): New macros. |
|
324 (do_scanf_conv, BEGIN_S_CONVERSION, BEGIN_CHAR_CLASS_CONVERSION, |
|
325 do_scanf, scanf, do_oscanf, do_oscanf, oscanf): Use them instead |
|
326 of calling istream::scan directly. |
|
327 (octave_scan): New function. |
|
328 (do_scanf_conv): Second arg is now scanf_format_elt instead of char*. |
|
329 Change all callers. |
|
330 |
3631
|
331 * oct-procbuf.h, oct-procbuf.cc (octave_procbuf): |
|
332 Derive from c_file_ptr_buf instead of filebuf. |
|
333 |
3627
|
334 * oct-stream.cc (octave_base_stream::printf): Use octave_format |
|
335 instead of ostream::form. Return number of characters written. |
|
336 |
3618
|
337 2000-03-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
338 |
3620
|
339 * oct-stream.cc (do_printf_conv): Use octave_format instead of |
|
340 ostream::form. Return number of characters written. |
|
341 (octave_base_stream::do_printf): Return number of characters written. |
|
342 |
|
343 * error.cc (verror, vwarning): Use octave_format instead of |
|
344 ostream::vform. |
|
345 |
|
346 * utils.cc (octave_format, octave_vformat): New functions. |
|
347 * cutils.c (octave_snprintf, octave_vsnprintf): New functions. |
|
348 |
3618
|
349 * oct-lvalue.h (dummy_val): New static variable. |
|
350 (octave_lvalue::octave_lvalue): Use it to initialize val. |
|
351 |
|
352 * variables.cc (is_valid_function): Look in the global symbol |
|
353 table for functions. |
|
354 |
3615
|
355 2000-03-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
356 |
|
357 * src/Makefile.in (LIBRARIES): Conditionally define. |
|
358 (libraries): Depend on $(LIBRARIES). |
|
359 (octave): Depend on $(LIBRARIES), not libraries. Also depend on |
|
360 stamp-prereq and stamp-oct-links. |
|
361 (all): Don't depend on stamp-prereq or stamp-oct-links. |
|
362 (liboctinterp.$(LIBEXT), liboctinterp.$(SHELXT)): Delete target |
|
363 before rebuilding. |
|
364 |
|
365 2000-03-21 Ben Sapp <bsapp@nua.lampf.lanl.gov>: |
|
366 |
|
367 * src/Makefile.in (libraries): Depend only on library targets, not |
|
368 archive members. |
|
369 |
3611
|
370 2000-03-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
371 |
3613
|
372 * Makefile.in (objects): New target |
|
373 |
3611
|
374 * c_file_ptr_stream.h, c_file_ptr_stream.cc: New files. |
|
375 * oct-stdstrm.h, oct-stdstrm.cc, oct-prcstrm.cc: |
|
376 Use c_file_ptr_buf, i_c_file_ptr_stream, and o_c_fie_ptr_stream |
|
377 instead of stdiobuf, istdiostream, and ostdiostream. |
|
378 |
|
379 * pr-output.cc (set_real_format, set_real_matrix_format, |
|
380 set_complex_format, set_complex_matrix_format, set_range_format): |
|
381 Do the right thing again for int, NaN, and Inf values. |
|
382 |
3608
|
383 2000-03-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
384 |
|
385 * pr-output.cc (pr_plus_format): Rename from do_plus_format. |
|
386 Change all callers. |
|
387 (pr_float, pr_complex): New arg, scale. Handle scaling here. |
|
388 (float_format): New class for managing details of formatting |
|
389 floats. Use it instead of character string formats and the |
|
390 nonstandard form() function from the GNU iostream library. |
|
391 |
3601
|
392 2000-02-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
393 |
|
394 * Makefile.in (clean): Also delete gendoc. |
|
395 |
3598
|
396 2000-02-18 James R. Van Zandt <jrv@vanzandt.mv.com> |
|
397 |
|
398 * load-save.cc (Vcrash_dumps_octave_core): Fix comment for this var. |
|
399 |
|
400 2000-02-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
401 |
|
402 * lex.l (handle_number): Don't transorm `[Dd]' to `e' if reading |
|
403 hex. |
|
404 |
3597
|
405 2000-02-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
406 |
|
407 * Makefile.in (install-inc): Install files in |
|
408 $(octincludedir)/octave. |
|
409 (uninstall): Remove them from the correct directory too. |
|
410 |
|
411 * defaults.h, defaults.cc (Vlocal_ver_arch_lib_dir): New variable. |
|
412 * defaults.cc (set_default_local_ver_arch_lib_dir): New function. |
|
413 (install_defaults): Call it. |
|
414 (exec_path): Prepend the versioned form of the local arch lib |
|
415 directory to the standard path. |
|
416 * defaults.h.in (OCTAVE_LOCALVERARCHLIBDIR, |
|
417 OCTAVE_LOCALVERFCNFILEDIR, OCTAVE_LOCALVEROCTFILEDIR): |
|
418 Substitute these too. |
|
419 * toplev.cc (Foctave_config_info): Add them to the struct. |
|
420 |
3591
|
421 2000-02-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
422 |
3597
|
423 * toplev.cc (Foctave_config_info): Add MKOCTFILE_INCFLAGS to the |
|
424 struct. |
3591
|
425 * oct-conf.h.in (OCTAVE_CONF_MKOCTFILE_INCFLAGS): Define. |
|
426 |
3584
|
427 2000-02-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
428 |
3587
|
429 * DLD-FUNCTIONS/balance.cc (Fbalance): Explicitly request |
|
430 conversion from Matrix to ComplexMatrix. |
|
431 * DLD-FUNCTIONS/qz.cc (Fqz): Likewise. |
|
432 |
|
433 * ov-re-mat.h (octave_matrix::complex_matrix_value): Explicitly |
|
434 request conversion from Matrix type. |
|
435 |
|
436 * ov-ch-mat.h (octave_char_matrix::matrix_value): Explicitly |
|
437 request conversion from charMatrix type. |
|
438 (octave_char_matrix::complex_matrix_value): Likewise. |
|
439 * ov-bool-mat.h (octave_bool_matrix::matrix_value): Likewise. |
|
440 (octave_bool_matrix::complex_matrix_value): Likewise. |
|
441 |
|
442 * ov-range.h (octave_range::complex_matrix_value): Explicitly |
|
443 request conversion from Matrix type. |
|
444 |
|
445 * ov-cx-mat.h, ov-re-mat.h: Explicitly request conversions from |
|
446 diagonal matrix types in constructors. |
|
447 |
3586
|
448 * mappers.cc (ximag, xreal): Return double, not Complex. |
|
449 |
3585
|
450 * error.cc (panic): Turn off buffering of error messages. |
|
451 Don't call flush_octave_stdout here, verror will do it for us. |
|
452 (verror): Don't call flush_octave_stdout if buffering error messages. |
|
453 |
3584
|
454 * pt-except.cc (tree_try_catch_command::eval): Only restore |
|
455 buffer_error_message value (by running the unwind_protect element |
|
456 for it) if it has been saved. |
|
457 |
|
458 * help.cc (Ftype): Return value if nargout is NOT equal to zero. |
|
459 Delete unnecessary unwind_protect::begin_frame(). |
|
460 |
|
461 * toplev.cc (octave_config_info): Stuff lots of new config info in |
|
462 the struct. |
|
463 |
|
464 * oct-conf.h.in: Delete TARGET_HOST_TYPE. |
|
465 |
3574
|
466 2000-02-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
467 |
3579
|
468 * siglist.c: Include <signal.h>. |
|
469 |
3575
|
470 * lex.l (is_plot_keyword): Add minimum match length in call to |
|
471 almost_match. |
|
472 |
3574
|
473 * Makefile.in (%.df : %.cc): Don't pass -c to compiler. |
|
474 |
3564
|
475 2000-02-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
476 |
3572
|
477 * ov-base-mat.cc: Include pr-output.h here. |
|
478 |
3571
|
479 * DLD-FUNCTIONS/rand.cc (curr_rand_dist): Return const char * |
|
480 instead of char *. |
|
481 |
3570
|
482 * oct-fstrm.cc (octave_fstream::seek, octave_fstream::tell): |
|
483 Call pubseekoff instead of seekoff. |
|
484 |
3568
|
485 * DLD-FUNCTIONS/dassl.cc (print_dassl_option_list): Use stream |
|
486 manipulators instead of GNU iostream-specific form function. |
|
487 * DLD-FUNCTIONS/fsolve.cc (print_fsolve_option_list): Ditto. |
|
488 * DLD-FUNCTIONS/lsode.cc (print_lsode_option_list): Ditto. |
|
489 * DLD-FUNCTIONS/quad.cc (print_quad_option_list): Ditto. |
|
490 * pr-output.cc (pr_scale_header): Ditto. |
|
491 |
3566
|
492 * sighandlers.h: Include signal.h here. |
|
493 * sighandlers.cc: Not here. |
|
494 |
|
495 * utils.cc: Include setjmp.h, not csetjmp. |
|
496 * toplev.cc: Ditto. |
|
497 |
|
498 * sighandlers.cc: Include signal.h, not csignal. |
|
499 |
|
500 * pt-plot.h: Don't include csignal. |
|
501 * toplev.cc: Ditto. |
|
502 * oct-hist.cc: Ditto. |
|
503 * octave.cc: Ditto. |
|
504 * pager.cc: Ditto. |
|
505 * input.cc: Ditto. |
|
506 * help.cc: Ditto. |
|
507 |
3565
|
508 * pt-plot.cc (send_to_plot_stream): Use operator== and substr |
|
509 method to do limited-length string comparison. |
|
510 * input.cc (generate_completion): Likewise. |
|
511 * ov-dld-fcn.cc (octave_dld_function::octave_dld_function): Likewise. |
|
512 * ov-usr-fcn.cc (octave_user_function::mark_as_system_fcn_file): |
|
513 Likewise. |
|
514 |
|
515 * utils.cc (check_preference): Expect exact string matches. |
|
516 * variables.cc (ignore_function_time_stamp): Likewise. |
|
517 * lex.l (whitespace_in_literal_matrix): Likewise. |
|
518 |
3564
|
519 * mappers.cc (xconj, ximag, xreal): New functions. Use them in |
|
520 DEFUN_MAPPER calls. |
|
521 |
|
522 * defun-int.h (DEFUN_MAPPER_INTERNAL): Cast function pointer args |
|
523 to octave_mapper constructor. |
|
524 |
3523
|
525 2000-02-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
526 |
3564
|
527 * procstream.cc (procstreambase::procstreambase, |
|
528 procstreambase::open, procstreambase::close): |
|
529 Call std::ios::setstate, not set. |
|
530 |
3561
|
531 * lex.l (plot_axes_token): Declare plot_axes as const char *. |
|
532 Declare tmp const char **. |
|
533 |
3560
|
534 * oct-procbuf.h: Include fstream, not streambuf.h. |
|
535 |
3570
|
536 * load-save.cc (Fsave): Call pubseekoff instead of seekoff. |
3558
|
537 * oct-strstrm.cc (octave_base_strstream::tell): Likewise. |
|
538 (octave_base_strstream::seek): Likewise. |
|
539 |
3553
|
540 * oct-stream.cc (octave_base_stream::read): Rename count to char_count. |
|
541 (octave_base_stream::do_gets): Likewise. |
|
542 |
|
543 * octave-stream.cc (octave_base_stream::write): Rename flt_fmt to ffmt. |
|
544 (octave_base_stream::read): Likewise. |
|
545 |
3552
|
546 * TEMPLATE-INST/SLStack-sym.cc: Delete meaningless `extern |
|
547 template' declarations. |
|
548 * TEMPLATE-INST/Array-tc.cc: Ditto. |
|
549 |
|
550 * TEMPLATE-INST/Map-fnc.cc: Don't try to instantiate goodCHptr or |
|
551 CHptr_to_index here. |
|
552 * TEMPLATE-INST/Map-tc.cc: Likewise. |
3554
|
553 * Map.h (CHNode::goodCHptr, CHNode::CHptr_to_index): Now member |
|
554 functions. Change all callers. |
3552
|
555 |
|
556 * load-save.cc (read_binary_file_header): Declare magic_len `const'. |
|
557 |
|
558 * token.h (token::token (const token&), token::operator=): |
|
559 Delete unnecessary definitions. |
|
560 |
|
561 * oct-stream.cc (octave_stream::mode_as_string): Use |
|
562 std::ios::binary, not std::ios::bin. |
|
563 * load-save.cc (Fsave, Fload, save_user_variables): Likewise. |
|
564 |
3550
|
565 * DLD-FUNCTIONS/qz.cc (Fqz): Use Array<int> class instead of |
|
566 trying to create automatic int array with variable size. |
|
567 |
3548
|
568 * variables.cc (F__dump_symbol_info__): Fix continuation char. |
3552
|
569 * mappers.cc (Ftoupper): Likewise. |
3548
|
570 * DLD-FUNCTIONS/besselj.cc (Fairy, Fbesselj): Likewise. |
|
571 * DLD-FUNCTIONS/chol.cc (Fchol): Likewise. |
|
572 * DLD-FUNCTIONS/det.cc (Fdet): Likewise. |
|
573 * DLD-FUNCTIONS/eig.cc (Feig): Likewise. |
|
574 * DLD-FUNCTIONS/gammainc.cc (gammainc): Likewise. |
|
575 * DLD-FUNCTIONS/givens.cc (givens): Likewise. |
|
576 * DLD-FUNCTIONS/hess.cc (hess): Likewise. |
|
577 * DLD-FUNCTIONS/inv.cc (inv): Likewise. |
|
578 * DLD-FUNCTIONS/log.cc (logm): Likewise. |
|
579 * DLD-FUNCTIONS/lu.cc (lu): Likewise. |
|
580 * DLD-FUNCTIONS/qr.cc (qr): Likewise. |
|
581 * DLD-FUNCTIONS/schur.cc (schur): Likewise. |
|
582 * DLD-FUNCTIONS/balance.cc (balance): Likewise. |
|
583 * DLD-FUNCTIONS/svd.cc (svd): Likewise. |
|
584 * DLD-FUNCTIONS/syl.cc (syl): Likewise. |
|
585 * DLD-FUNCTIONS/expm.cc (Fexpm): Likewise. |
|
586 |
|
587 * token.h (token::token_type, token::end_tok_type, |
|
588 token::plot_tok_type): Delete extraneous comma from enum decls. |
3552
|
589 * load-save.cc (load_save_format): Likewise. |
3548
|
590 |
3546
|
591 * pt-idx.cc (tree_index_expression::tree_index_expression): |
|
592 Delete default arg values. |
3552
|
593 * oct-fstrm.cc (octave_fstream::octave_fstream): Likewise. |
|
594 * oct-stream.cc (octave_stream::octave_stream): Likewise. |
3546
|
595 |
|
596 * siglist.h, siglist.c: New files. |
|
597 * Makefile.in: Add them to the appropriate lists. |
|
598 * siglist.c (sys_siglist): Move definition here from sighandlers.cc. |
|
599 * siglist.h (sys_siglist): Move declaration here from sighandlers.h. |
|
600 |
3545
|
601 * ov.h, ov-bool.h, ov-bool-mat.h (bool_matrix_value): |
|
602 Delete unnecessary arg. |
|
603 |
3544
|
604 * ov.h (octave_value::do_multi_index_op): Rename from do_index_op. |
|
605 |
|
606 * ov-fcn.h (octave_function::is_system_fcn_file): Now const. |
|
607 |
3529
|
608 * Map.cc (index_to_CHptr): Now a macro. |
3530
|
609 (CHMap<C>::hash): Now a member function. |
3529
|
610 |
3528
|
611 * defun-int.h (UNDERSCORIFY): New macro. |
|
612 (DEFCONST_INTERNAL, DEFCONSTX_INTERNAL): Use it. |
|
613 |
3526
|
614 * data.cc (Fis_list): Fix continuation char. |
3532
|
615 * defaults.cc (IMAGEPATH): Likewise. |
3526
|
616 |
|
617 * Map.cc (CHptr_to_index, goodCHptr): Delete static decl. |
|
618 |
3525
|
619 * ov.h (unary_op, binary_op, assign_op): Prepend `op_' to elts. |
|
620 Change all usses |
|
621 |
3523
|
622 * All source files: Sprinkle with std:: qualifier as needed. |
|
623 |
3503
|
624 2000-01-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
625 |
|
626 * sighandlers.cc (install_signal_handlers): Add std:: qualifier |
|
627 for set_net_handler. |
|
628 |
|
629 * All source files: Include iostream, fstream, strstream, |
|
630 etc. as needed instead of using forward declarations for these |
|
631 classes. |
|
632 |
3498
|
633 2000-01-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
634 |
|
635 * input.cc (input_event_hook, Finput_event_hook): New functions. |
|
636 (hook_fcn, user_data): New static variables. |
|
637 |
3489
|
638 2000-01-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
639 |
3491
|
640 * pt-except.cc (do_catch_code): Don't do anything special for |
|
641 tree_return_command::returning, or tree_break_command::breaking. |
|
642 |
|
643 * error.cc (vwarning): New function. |
|
644 (warning): Use it instead of calling verror. |
|
645 |
|
646 * oct-stream.cc (octave_base_stream::oscanf): |
|
647 Result is now always nconv+1 elements. Return count of successful |
|
648 conversions in last element. |
|
649 * file-io.cc (Ffscanf, Fsscanf, Fscanf): Fix doc string. |
|
650 |
3490
|
651 * pt-except.cc (do_catch_code): Unwind-protect buffer_error_messages. |
|
652 Be sure to run all unwind-protects before returning. |
|
653 (tree_try_catch_command::eval): Add do_catch_code cleanup function |
|
654 to unwind-protect stack before resetting buffer_error_messages. |
|
655 Use unwind-protect to save and restore buffer_error_messages. |
|
656 If there is no catch code, discard the cleanup function and run |
|
657 the unwind-protect for buffer_error_messages. |
|
658 |
|
659 * error.cc (bind_global_error_variable): Avoid dereferencing |
|
660 error_message_buffer if it is NULL. |
|
661 |
3489
|
662 * parse.y (evaluating_function_body): New global flag. |
|
663 * ov-usr-fcn.cc (octave_user_function::do_index_op): |
|
664 Protect and set it here. |
|
665 * parse.y (make_break_command, make_return_command): Check it here. |
|
666 |
|
667 * error.cc (warning_state): New global flag. |
|
668 (warning): Set it here. |
|
669 * lex.l (reset_parser): Clear it here. |
|
670 * parse.y (fold): Check it here. |
|
671 |
3484
|
672 2000-01-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
673 |
3485
|
674 * pt-walk.h (tree_walker::visit_do_until_command): New pure virtual. |
|
675 * pt-pr-code.cc (tree_print_code::visit_do_until_command): |
3484
|
676 New function. |
3485
|
677 * pt-loop.h (tree_do_until_command): New class. |
3484
|
678 (tree_while_command::expr, tree_while_command::list): |
|
679 Now protected instead of private. |
3485
|
680 * parse.y (make_do_until_command): New function. |
|
681 (loop_command): Recognize do-until statement. |
3484
|
682 (DO, UNTIL): New tokens. |
|
683 |
|
684 * input.cc (match_sans_spaces): Require non-blank part of test |
|
685 string to match standard string exactly. |
|
686 |
3483
|
687 2000-01-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
688 |
|
689 * oct-stream.h (scanf_format_elt::char_class): New struct elt. |
|
690 Add arg to constructor. |
|
691 (scanf_format_elt::special_conversion): New enum. |
|
692 * oct-stream.cc (scanf_format_list::add_elt_to_list): New arg, |
|
693 char_class. Pass it to scanf_format_elt constructor. |
|
694 (scanf_format_list::scanf_format_list): Create separate list |
|
695 elements for whitespace and literal conversions. |
|
696 (expand_char_class): New function. |
|
697 (scanf_format_list::finish_conversion): Extract character class |
|
698 (not including the delimiting brackets) and expand the list of |
|
699 characters. Pass the result to add_elt_to_list. |
|
700 (scanf_format_list::all_character_conversions): Also accept '^', |
|
701 scanf_format_elt::literal_conversion, and |
|
702 scanf_format_elt::whitespace_conversion types too. |
|
703 (DO_WHITESPACE_CONVERSION, BEGIN_CHAR_CLASS_CONVERSION, |
|
704 BEGIN_C_CONVERSION, BEGIN_S_CONVERSION, DO_LITERAL_CONVERSION): |
|
705 New macros. |
|
706 (octave_base_stream::do_scanf, octave_base_stream::do_oscanf): |
|
707 Use them to avoid code duplication. |
|
708 Handle whitespace, literal text, and character class conversions. |
|
709 (octave_base_stream::oscanf): Loop over all format list elements, |
|
710 not just the first nconv elements. Clear status flags on is for |
|
711 all streams. |
|
712 |
3476
|
713 2000-01-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
714 |
3480
|
715 * xdiv.cc (result_ok): Just check value of info. |
|
716 (solve_singularity_warning): New function. |
|
717 (xleftdiv, xdiv): Pass pointer to solve_singularity_warning to |
|
718 solve function. |
|
719 |
|
720 * lex.l (handle_identifier): Set next_tok_is_eq if we are looking |
|
721 at `=', but not if we are looking at `=='. |
|
722 |
3478
|
723 * pt-pr-code.cc (tree_print_code::visit_unwind_protect_command): |
|
724 Print `unwind_protect_cleanup', not `cleanup_code'. |
|
725 |
3477
|
726 * pager.cc (octave_pager_buf::flush_current_contents_to_diary): |
|
727 New function. |
|
728 (octave_pager_stream::flush_current_contents_to_diary): |
|
729 Ditto. |
|
730 (close_diary_file): Use the new octave_pager_stream function to |
|
731 try to flush the current buffer to the diary when it is closed. |
|
732 |
3476
|
733 * variables.cc (Fexist): Return 6 for built-in constants. |
|
734 |
|
735 * pt-plot.cc (Fgshow): Don't append " " after last arg. |
|
736 (Fgset): Likewise. |
|
737 |
3472
|
738 2000-01-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
739 |
|
740 * ov-base-mat.h (octave_base_matrix::length): Return 0 for empty |
|
741 arrays. |
|
742 |
3465
|
743 2000-01-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
744 |
|
745 * DLD-FUNCTIONS/time.cc (Fstrptime): New function. |
|
746 |
|
747 * load-save.cc (Fsave): Add missing else. |
|
748 |
3442
|
749 2000-01-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
750 |
3444
|
751 * DLD-FUNCTIONS/gammainc.cc (Fgammainc): Texinfoize doc string. |
3445
|
752 * ov-typeinfo.cc (Ftypeinfo): Ditto. |
3446
|
753 * parse.y (Vwarn_future_time_stamp): Ditto. |
|
754 * DLD-FUNCTIONS/minmax.cc (Fmax, Fmin): Ditto. |
3445
|
755 * ov-usr-fcn.cc (Fva_arg, Fva_start, Fvr_val): Ditto. |
3446
|
756 * defaults.cc (VOCTAVE_HOME, Frehash): Ditto. |
|
757 * toplev.cc (Fwarranty, Fcasesen): Ditto. |
|
758 * utils.cc (Fdo_string_escapes, Ffile_in_loadpath): Ditto. |
|
759 * variables.cc (F__dump_symtab_info__, F__dump_symbol_info__): Ditto. |
3447
|
760 * ov-list.cc (Flist, Fappend, Fnth, Freverse, Fsplice): Ditto. |
3448
|
761 * input.cc (Fread_readline_init_file): Ditto. |
|
762 * file-io.cc (Fis_stream): Ditto. |
|
763 * ov-cell.cc (Fiscell, Fcell): Ditto. |
|
764 * pt-assign.cc (Vprint_rhs_assign_val): Ditto. |
|
765 * pt-decl.cc (Vinitialize_global_variables): Ditto. |
|
766 * symtab.cc (Vvariables_can_hide_functions): Ditto. |
3443
|
767 |
3442
|
768 * pt-plot.cc (Fgraw, Fgset, Fgshow, Vgnuplot_command_plot, |
|
769 Vgnuplot_command_replot, Vgnuplot_command_splot, |
|
770 Vgnuplot_command_using, Vgnuplot_command_with, |
|
771 Vgnuplot_command_axes, Vgnuplot_command_title, |
|
772 Vgnuplot_command_end): Texinfoize doc strings. |
|
773 |
3447
|
774 * oct-procbuf.cc (__kluge_procbuf_delay__): Rename from |
|
775 kluge_procbuf_delay. Texinfoize doc string. |
|
776 |
3427
|
777 2000-01-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
778 |
|
779 * parse.y (gobble_leading_whitespace): Discard first space character |
|
780 after consecutive comment characters. |
|
781 * lex.l (grab_help_text): Ditto. |
|
782 |
3428
|
783 * lex.l (Vwhitespace_in_literal_matrix, Vwarn_separator_insert, |
|
784 Vwarn_single_quote_string): Texinfoize doc string. |
|
785 |
3418
|
786 2000-01-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
787 |
3419
|
788 * ov.h, ov.cc (octave_value::column_vector_value, |
|
789 octave_value::row_vector_value, |
|
790 octave_value::complex_column_vector_value, |
|
791 octave_value::complex_row_vector_value): New functions. |
|
792 (octave_value::vector_value): Now returns Array<double>. |
|
793 (octave_value::complex_vector_value): Now returns Array<Complex>. |
|
794 Sprinkle conversions where necessary. |
|
795 |
3418
|
796 * ov.cc (Vprefer_column_vectors): Now static. |
|
797 * ov.h (octave_value (const ComplexRowVector&), |
|
798 octave_value (const ComplexColumnVector&), |
|
799 octave_value (const RowVector&), octave_value (const ColumnVector&)): |
|
800 Delete second arg. Change all callers. |
3419
|
801 |
3418
|
802 * oct-obj.h (octave_value_list (const RowVector&), |
|
803 octave_value_list (const ColumnVector&), |
|
804 octave_value_list (const ComplexRowVector&), |
|
805 octave_value_list (const ComplexColumnVector&)): Likewise. |
|
806 * ov-cx-mat.h, ov-cx-mat.cc |
|
807 (octave_complex_matrix (const ComplexRowVector&), |
|
808 (octave_complex_matrix (const ComplexColumnVector&)): |
|
809 Delete second arg, simply create object with orientation |
|
810 corresponding to vector arg. Move constructors to class decl. |
|
811 * ov-re-mat.h, ov-re-mat.cc (octave_matrix (const RowVector&), |
|
812 (octave_matrix (const ColumnVector&)): |
|
813 Delete second arg, simply create object with orientation |
|
814 corresponding to vector arg. Move constructors to class decl. |
|
815 |
3411
|
816 2000-01-07 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
817 |
|
818 * mappers.cc (Fconj, Ferf, Ferfc, Fgamma, Fimag, Flgamma, Flog10, |
|
819 Freal, Fround): Add @seealso{...} to doc strings. |
|
820 |
3408
|
821 2000-01-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
822 |
3410
|
823 * oct-stream.cc (do_scanf): Do the right thing again for character |
|
824 conversions. |
|
825 |
3408
|
826 * help.cc (display_help_text): Also strip out leading spaces |
|
827 before Texinfo @-commands before sending doc string to makeinfo. |
|
828 (display_help_text): Improve format of `See also' string. |
|
829 |
3405
|
830 2000-01-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
831 |
|
832 * help.cc (display_help_text): Pass a definition for @seealso |
|
833 through the filter. |
|
834 |
3400
|
835 1999-12-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
836 |
|
837 * lex.l (Vwarn_single_quote_string): New variable. |
|
838 (syms_of_lex): DEFVAR it. |
|
839 (warn_single_quote_string): New function. |
|
840 (gripe_single_quote_string): New function. |
|
841 Use new stuff to allow warnings for code that uses single quote |
|
842 characters to introduce string constants. |
|
843 |
3399
|
844 1999-12-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
845 |
|
846 * mkbuiltins: Add #undef quad to generated file. |
|
847 |
3388
|
848 1999-12-15 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
849 |
|
850 * lex.l (Vwarn_separator_insert): New variable. |
|
851 (syms_of_lex): DEFVAR it. |
|
852 (warn_separator_insert): New function. |
|
853 (maybe_warn_separator_insert): New function. |
|
854 Use new stuff to allow warnings for code that might result in |
|
855 auto-insertion of commas or semicolons, depending on the value of |
|
856 whitespace_in_literal_matrix. |
|
857 |
|
858 * parse.y (Fsource): Record function file name here too. |
|
859 |
3377
|
860 1999-12-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
861 |
|
862 * variables.cc (link_to_global_variable): If the local symbol is |
|
863 not a variable, don't bother to clear it. Instead, just redefine |
|
864 it by aliasing to the global symbol. |
|
865 |
3372
|
866 1999-11-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
867 |
3373
|
868 * DLD-FUNCTIONS/balance.cc (Fbalance): Texinfoize doc string. |
|
869 * DLD-FUNCTIONS/det.cc (Fdet): Ditto. |
|
870 * DLD-FUNCTIONS/eig.cc (Feig): Ditto. |
|
871 * DLD-FUNCTIONS/givens.cc (Fgivens): Ditto. |
|
872 * DLD-FUNCTIONS/inv.cc (Finv): Ditto. |
|
873 * DLD-FUNCTIONS/chol.cc (Fchol): Ditto. |
|
874 * DLD-FUNCTIONS/hess.cc (Fhess): Ditto. |
|
875 * DLD-FUNCTIONS/lu.cc (Flu): Ditto. |
|
876 * DLD-FUNCTIONS/qr.cc (Fqr): Ditto. |
|
877 * DLD-FUNCTIONS/schur.cc (Fschur): Ditto. |
|
878 * DLD-FUNCTIONS/svd.cc (Fsvd): Ditto. |
|
879 * DLD-FUNCTIONS/expm.cc (Fexpm): Ditto. |
|
880 * DLD-FUNCTIONS/log.cc (Flogm, Fsqrtm): Ditto. |
|
881 * DLD-FUNCTIONS/syl.cc (Fsyl): Ditto. |
|
882 * DLD-FUNCTIONS/pinv.cc (Fpinv): Ditto. |
|
883 * DLD-FUNCTIONS/qz.cc (Fqz): Ditto. |
|
884 * DLD-FUNCTIONS/dassl.cc (Fdassl, Fdassl_options): Ditto. |
|
885 * DLD-FUNCTIONS/lsode.cc (Flsode, Flsode_options): Ditto. |
|
886 * data.cc (Flength, Fsize, Fisempty): Ditto. |
3372
|
887 * sysdep.cc (Fkbhit): Ditto. |
|
888 * input.cc (Fkeyboard, Finput): Ditto. |
|
889 * variables.cc (ans): Ditto. |
|
890 * pr-output.cc (Fdisp, Fformat): Ditto. |
|
891 * ov.cc (Vprint_answer_id_name): Ditto. |
3373
|
892 * defaults.cc (IMAGEPATH): Ditto. |
|
893 * error.cc (Ferror, Fwarning, Fusage, error_text, beep_on_error): |
|
894 Ditto. |
3372
|
895 * load-save.cc (Fload, Fsave, Vdefault_save_format, |
|
896 Vsave_precision): Ditto. |
|
897 * file-io.cc (Ffflush, Ffopen, Ffclose, Ffputs, Ffgetl, Ffgets, |
|
898 Ffprintf, Fsprintf, Fscanf, Ffscanf, Fsscanf, Ffread, Ffwrite, |
|
899 Ffseek, Fftell, Ffeof, Fferror, Ffreport, Ftmpnam, Vstdin_file, |
|
900 Vstdout_file, Vstderr_file, SEEK_SET, SEEK_CUR, SEEK_END): Ditto. |
|
901 * pager.cc (Vpager_binary, Vpage_output_immediately, |
|
902 Vpage_screen_output, Fmore): Ditto. |
|
903 |
3369
|
904 1999-11-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
905 |
|
906 * utils.cc (Vtreat_neg_dim_as_zero): Texinfoize doc string. |
|
907 * DLD-FUNCTIONS/find.cc (Ffind): Ditto. |
|
908 * DLD-FUNCTIONS/rand.cc (Frand, Frandn): Ditto. |
|
909 * DLD-FUNCTIONS/sort.cc (Fsort): Ditto. |
|
910 * mappers.cc (Fisinf, Fisnan, Ffinite): Ditto. |
|
911 * data.cc (Fall, Fany, Fdiag, Fones, Fzeros, Feye, Flinspace): Ditto. |
3371
|
912 * defaults.cc (Vloadpath, Vdefault_loadpath): Ditto. |
|
913 * parse.y (Feval, Ffeval, Vdefault_eval_print_flag, |
|
914 Vwarn_missing_semicolon, Vwarn_function_name_clash, Fsource): Ditto. |
|
915 * ov-usr-fcn.cc (Vmax_recursion_depth, Vdefault_return_value, |
|
916 Vdefine_all_return_values, Vreturn_last_computed_value): Ditto. |
|
917 * ov.cc (Vok_to_lose_imaginary_part, Vdo_fortran_indexing, |
|
918 Vprefer_column_vectors, Vresize_on_range_error, |
|
919 Vwarn_divide_by_zero): Ditto. |
|
920 * pt-stmt.cc (Vsilent_functions): Ditto. |
|
921 * variables.cc (Vignore_function_time_stamp): Ditto. |
|
922 * dynamic-ld.cc (Vwarn_reload_forces_clear): Ditto. |
3369
|
923 |
3367
|
924 1999-11-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
925 |
3368
|
926 * DLD-FUNCTIONS/fft.cc (Ffft): Texinfoize doc string. |
|
927 * DLD-FUNCTIONS/ifft.cc (Fifft): Ditto. |
|
928 * DLD-FUNCTIONS/fft2.cc (Ffft2): Ditto. |
|
929 * DLD-FUNCTIONS/ifft2.cc (Fifft2): Ditto. |
|
930 * DLD-FUNCTIONS/filter.cc (Ffilter): Ditto. |
|
931 * DLD-FUNCTIONS/quad.cc (Fquad, Fquad_options): Ditto. |
|
932 * DLD-FUNCTIONS/colloc.cc (Fcolloc): Ditto. |
|
933 * DLD-FUNCTIONS/fsolve.cc (Ffsolve, Ffsolve_options): Ditto. |
|
934 * defaults.cc (Veditor): Ditto. |
|
935 * pt-plot.cc (Vautomatic_replot, Vgnuplot_binary, |
|
936 Vgnuplot_has_frames, Vgnuplot_has_multiplot, Fclearplot, |
|
937 Fcloseplot, Fpurge_tmp_files, Fishold, Fhold): |
3367
|
938 |
|
939 * Makefile.in (parse.cc): Expect 11 shift/reduce conflicts now. |
|
940 |
3361
|
941 1999-11-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
942 |
3366
|
943 * parse.y (Vwarn_assign_as_truth_value, Vwarn_variable_switch_label): |
|
944 Texinfoize doc strings. |
|
945 |
3365
|
946 * DLD-FUNCTIONS/pinv.cc (Fpinv): Texinfoize doc string. |
|
947 |
3364
|
948 * defun-int.h (DEFUN_DLD_INTERNAL): New macro. |
|
949 * defun-dld.h [MAKE_BUILTINS] (DEFUN_DLD): Simply expand to |
|
950 DEFUN_DLD_INTERNAL. |
|
951 * mkbuiltins: Generate code to define DEFUN_DLD_INTERNAL. |
|
952 * mkgendoc: Likewise. |
|
953 |
3363
|
954 * Makefile.in (gendoc.o): Don't optimize when creating gendoc. |
3364
|
955 (%.dc : %.cc): Delete rule. |
3363
|
956 |
3361
|
957 * pt-decl.cc (Vdefault_global_variable_value): Texinofize doc string. |
|
958 * variables.cc (Fclear, Fdocument, Fexist, Fis_global, Fwho): Ditto. |
|
959 * help.cc (Ftype, Fwhich): Ditto. |
|
960 * ov.cc (Vstruct_levels_to_print, Vimplicit_str_to_num_ok): Ditto. |
|
961 * data.cc (Fis_struct, Fstruct_elements, Fstruct_constains): Ditto. |
|
962 * strfns.cc (Fisstr, Fsetstr): Ditto. |
|
963 * pt-mat.cc: (Fimplicit_num_to_str_ok, Fstring_fill_char): Ditto. |
|
964 * utils.cc (Fundo_string_escapes): Ditto. |
|
965 * mappers.cc: (Fisalnum, Fisalpha, Fisascii, Fiscntrl, Fisdigit, |
|
966 Fisgraph, Fislower, Fisprint, Fispunct, Fisspace, Fisupper, |
|
967 Fisxdigit, Ftoascii, Ftolower, Ftoupper): Ditto. |
|
968 |
3357
|
969 1999-11-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
970 |
3360
|
971 * syscalls.cc (symbols_of_syscalls): Use DEFCONSTX to define |
|
972 Octave constants for C macros like O_WRONLY. |
|
973 |
3357
|
974 * oct-lvalue.cc (octave_lvalue::set_index): Disallow expressions |
|
975 like x(i)(j) = rhs. |
|
976 |
3355
|
977 1999-11-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
978 |
3356
|
979 * symtab.cc (symbol_record::type_as_string): New function. |
3355
|
980 |
|
981 * symtab.cc (symbol_record::which): New functions. |
|
982 * help.cc (do_which): New functions. |
|
983 (Fwhich): Use them. |
|
984 |
|
985 * help.cc (help_from_symbol_table, help_from_file): New functions. |
|
986 (builtin_help): Use them. |
|
987 |
|
988 * help.cc (do_type): New function. |
3356
|
989 (symbol_record::type): New function. |
3355
|
990 (Ftype): Use them. |
|
991 |
|
992 * help.cc (print_symbol_type): Delete. |
|
993 |
|
994 * symtab.cc (symbol_table::name_list): Delete count arg. |
|
995 (symbol_table::symbol_list): Likewise. |
|
996 (symbol_table::glob): Likewise. Also return Array<symbol_record *> |
|
997 instead of symbol_record **. |
|
998 Change all callers. |
|
999 * help.cc (names, display_symtab_names): Delete count arg. |
|
1000 |
|
1001 * help.cc (print_symbol_type, Ftype): No longer need to look up |
|
1002 fcn_file_name in the loadpath. |
|
1003 |
|
1004 * help.cc (print_symbol_type): Handle dld functions. |
|
1005 (help_from_symbol_table, help_from_file): New functions. |
|
1006 (builtin_help): Use them. |
|
1007 |
3354
|
1008 1999-11-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1009 |
|
1010 * ov-cell.cc (Fiscell, Fcell): New Functions. |
|
1011 (octave_cell::do_index_op): New function. |
|
1012 |
|
1013 * utils.cc (get_dimensions): Move here from data.cc and make extern. |
|
1014 (Vtreat_neg_dim_as_zero, treat_neg_dim_as_zero): Likewise. |
|
1015 (symbols_of_utils): New function. |
|
1016 |
|
1017 * data.cc (fill_matrix (const octave_value_list&, double, |
|
1018 const char*)): New function. |
|
1019 (Fones, Fzeros): Use it to avoid some code duplication. |
|
1020 |
3352
|
1021 1999-11-15 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1022 |
|
1023 * pt-cell.h, pt-cell.cc, ov-cell.h, ov-cell.cc, Cell.h, Cell.cc: |
|
1024 New files. |
|
1025 * Makefile.in: Add them to the appropriate lists. |
|
1026 * pt-walk.h (visit_cell (tree_cell&): New pure virtual. |
|
1027 * pt-pr-code.cc (tree_print_code::visit_cell (tree_cell&)): New |
|
1028 function. |
|
1029 * TEMPLATE-INST/Array-tc.cc: Instantiate 2D arrays of octave_value |
|
1030 objects. |
|
1031 * pt-all.h: Include pt-cell.h. |
|
1032 * ov.h, ov.cc (octave_value::is_cell, octave_value::cell_value): |
|
1033 New functions. |
|
1034 * ov-base.h, ov-base.cc (octave_value::is_cell, |
|
1035 octave_value::cell_value): Provide defaults. |
|
1036 * lex.h, lex.l: Handle `{' and `}' tokens (for cell arrays). |
|
1037 (bracketflag): Rename from braceflag. |
|
1038 (handle_close_bracket): Rename from handle_close_brace. |
|
1039 (class bracket_brace_paren_nesting_level): Rename from |
|
1040 brace_paren_nesting_level. |
|
1041 (bracket_brace_paren_nesting_level::bracket, |
|
1042 bracket_brace_paren_nesting_level::is_bracket): New functions to |
|
1043 keep count of nesting level for `[' and `]'. |
|
1044 (bracket_brace_paren_nesting_level::brace, |
|
1045 bracket_brace_paren_nesting_level::is_brace): Now keeps count of |
|
1046 nesting level for `{' and `}'. |
|
1047 * parse.y (tree_cell_type): New type. |
|
1048 Give '{' the same precedence and associativity as '(' and '.' |
|
1049 (matrix_rows, matrix_rows1): Rename from rows, rows1. |
|
1050 (cell, cell_rows, cell_rows1): New non-terminals. |
|
1051 (cell_or_matrix_row): Rename from matrix_row. |
|
1052 (primary_expr): Accept cell here. |
|
1053 (postfix_expr): Allow indexing using '{' arg_list '}'. |
|
1054 (finish_cell): New function. |
|
1055 |
3350
|
1056 1999-11-12 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1057 |
|
1058 * utils.cc (jump_to_top_level): No longer declared extern "C". |
|
1059 |
|
1060 * cutils.c (octave_strcasecmp, octave_strncasecmp): New functions. |
|
1061 * utils.cc (almost_match): Call octave_strncasecmp instead of |
|
1062 calling strncasecmp directly. |
|
1063 |
3347
|
1064 1999-11-10 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1065 |
|
1066 * parse.y: Don't define warn_reload_forces_clear here. |
|
1067 |
|
1068 * Makefile.in (DISTFILES): Include DOCSTRINGS. |
|
1069 |
3340
|
1070 1999-11-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1071 |
3343
|
1072 * sighandlers.cc (install_signal_handlers): Don't install |
|
1073 sigwinch_handler. |
|
1074 |
3342
|
1075 * oct-iostrm.h (octave_istream::eof, octave_ostream::eof): Provide |
|
1076 implementation for these. |
|
1077 |
|
1078 * oct-stream.cc (octave_base_stream::do_scanf): |
|
1079 The stdin stream is only special if we are interactive. |
|
1080 (octave_base_stream::scanf): Ditto. |
|
1081 (octave_base_stream::do_oscanf): Ditto. |
|
1082 (octave_base_stream::oscanf): Ditto. |
|
1083 |
3340
|
1084 * ov.h (octave_value::is_stream): New predicate. |
|
1085 * ov-file.h (octave_file::is_stream): Return true. |
|
1086 * file-io.cc (Fis_stream): New function. |
|
1087 |
|
1088 * ov-file.h (class octave_file): stream is now an object instead |
|
1089 of pointer. |
|
1090 * ov-file.cc (octave_file::print_raw): Handle stream as object |
|
1091 instead of pointer. Also print stream status. |
|
1092 |
|
1093 * ov-base.cc (octave_base_value::stream_value): Return object |
|
1094 instead of pointer. |
|
1095 |
|
1096 * ov.cc (octave_value::stream_value): Return object instead of pointer. |
|
1097 (octave_value::octave_value (const octave_stream&)): Take const |
|
1098 reference instead of pointer arg. |
|
1099 |
|
1100 * TEMPLATE-INST/Array-os.cc: Instantiate Arrays of octave_stream |
|
1101 objects, not pointers to them. |
|
1102 |
|
1103 * OPERATORS/op-fil-b.cc: Cope with octave_stream class changes. |
|
1104 * OPERATORS/op-fil-bm.cc: Likewise. |
|
1105 * OPERATORS/op-fil-cm.cc: Likewise. |
|
1106 * OPERATORS/op-fil-cs.cc: Likewise. |
|
1107 * OPERATORS/op-fil-lis.cc: Likewise. |
|
1108 * OPERATORS/op-fil-m.cc: Likewise. |
|
1109 * OPERATORS/op-fil-rec.cc: Likewise. |
|
1110 * OPERATORS/op-fil-s.cc: Likewise. |
|
1111 * OPERATORS/op-fil-str.cc: Likewise. |
|
1112 * file-io.cc: Likewise. |
|
1113 * syscalls.cc (Fdup): Likewise. |
|
1114 |
|
1115 * oct-fstrm.cc, oct-fstrm.h, oct-iostrm.cc, oct-iostrm.h, |
|
1116 oct-prcstrm.cc, oct-prcstrm.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
1117 oct-stream.cc, oct-stream.h, oct-strstrm.cc, oct-strstrm.h: |
|
1118 Rewrite to allow octave_stream objects to be used like values |
|
1119 instead of having to use pointers. |
|
1120 |
3337
|
1121 1999-11-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1122 |
|
1123 * oct-stream.cc (octave_base_stream::do_scanf): If it looks like |
|
1124 we have a matching failure, then reset the failbit in the stream |
|
1125 state. |
|
1126 (octave_base_stream::do_oscanf): Likewise. |
|
1127 |
3332
|
1128 1999-11-02 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
1129 |
3361
|
1130 * help.cc (Fhelp): Texinfoize doc string. |
|
1131 * input.cc (Fecho, Fcompletion_matches): Ditto. |
|
1132 * oct-hist.cc (Fedit_history, Fhistory, Frun_history): Ditto. |
|
1133 * pager.cc (Fdiary): Ditto. |
|
1134 * sysdep.cc (Fclc): Ditto. |
|
1135 * toplev.cc (Fquit, Fatexit): Ditto. |
3332
|
1136 |
|
1137 1999-11-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1138 |
|
1139 * lex.l (yywrap): No longer static. |
|
1140 (have_continuation): Declare input character as int, not char, so |
|
1141 comparison to EOF will work. |
|
1142 |
3330
|
1143 1999-11-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1144 |
|
1145 * defun.cc (print_usage): Use display_help_text instead of sending |
|
1146 help message directly to octave_stdout. |
|
1147 |
3325
|
1148 1999-10-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1149 |
|
1150 * defun-dld.h (INSTALL_DLD_FCNS, INSTALL_DLD_FCN): Delete definitions. |
|
1151 * DLD-FUNCTIONS/dassl.cc: Don't use INSTALL_DLD_FCN or |
|
1152 INSTALL_DLD_FCNS macros. They are not necessary with the new code |
|
1153 in dynamic-ld.cc. |
|
1154 * DLD-FUNCTIONS/lsode.cc: Ditto. |
|
1155 * DLD-FUNCTIONS/fsolve.cc: Ditto. |
|
1156 * DLD-FUNCTIONS/quad.cc: Ditto. |
|
1157 * DLD-FUNCTIONS/time.cc: Ditto. |
|
1158 * DLD-FUNCTIONS/besselj.cc: Ditto. |
|
1159 * DLD-FUNCTIONS/getgrent.cc: Ditto. |
|
1160 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
1161 * DLD-FUNCTIONS/inv.cc: Ditto. |
|
1162 * DLD-FUNCTIONS/log.cc: Ditto. |
|
1163 * DLD-FUNCTIONS/minmax.cc: Ditto. |
|
1164 * DLD-FUNCTIONS/rand.cc: Ditto. |
|
1165 |
|
1166 * dynamic-ld.cc, dynamic-ld.h: Major rewrite to allow reloading of |
|
1167 dynamically linked functions. |
|
1168 |
|
1169 * symtab.cc (symbol_record::replace_all_defs): Don't allow top |
|
1170 definition to be NULL. |
|
1171 (symbol_table::clear): Allow dynamically linked functions to be |
|
1172 cleared. |
|
1173 |
|
1174 * symtab.h (TYPE): New enum value, DLD_FUCTION. |
|
1175 (symbol_type): Now 8 bits wide. |
|
1176 (SYMTAB_ALL_TYPES): Include DLD_FUNCTION. |
|
1177 (symbol_record::symbol_def::is_function): Also recognize dld functions. |
|
1178 (symbol_record::symbol_def::is_dld_function): New function. |
|
1179 (symbol_record::is_dld_function): Ditto. |
|
1180 |
|
1181 * defun.cc (install_dld_function): New function. |
|
1182 * defun-int.h: Provide declaration here. |
|
1183 (octave_dld_fcn_installer): New typedef. |
|
1184 (DEFINE_FUN_INSTALLER_FUN): Installer function now takes an |
|
1185 oct_shlib object as an arg. Allow installation of a function to |
|
1186 happen more than once. |
|
1187 |
|
1188 * octave.cc (initialize_error_handlers): Call |
|
1189 set_liboctave_warning_handler here too. |
|
1190 |
|
1191 * ov-builtin.h (is_builtin_function): Return true. |
|
1192 Data member is now protected, not private. |
|
1193 |
|
1194 * ov-fcn.h (is_dynamically_loaded_function): New predicate. |
|
1195 (unload): New function. |
|
1196 Data members are now protected, not private. |
|
1197 |
|
1198 * ov.h (is_builtin_function, is_dld_function): New predicates. |
|
1199 * ov-base.h (is_builtin_function, is_dld_function): Ditto. |
|
1200 |
|
1201 * parse.y (Vwarn_reload_forces_clear): New static flag. |
|
1202 (warn_reload_forces_clear): New function. |
|
1203 (symbols_of_parse): DEFVAR warn_reload_forces_clear. |
|
1204 |
|
1205 * variables.cc (Fclear): Look for dld functions too. |
|
1206 |
|
1207 * ov-dld-fcn.cc, src/ov-dld-fcn.h: New files. |
|
1208 * Makefile.in (OV_INCLUDES, OV_SRC): Add them to the lists. |
|
1209 |
|
1210 * Makefile.in (DEFVAR_PATTERN): Also match DEFCONSTX. |
|
1211 |
3321
|
1212 1999-10-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1213 |
3325
|
1214 * DLList.h, DLList.cc: New files. |
|
1215 * Makefile.in (INCLUDES, DIST_SRC): Add them to the lists. |
|
1216 |
3323
|
1217 * DLD-FUNCTIONS/lsode.cc (Flsode): Be sure to call |
|
1218 unwind_protect::run_frame before returning. |
|
1219 * DLD-FUNCTIONS/quad.cc (Fquad): Likewise. |
|
1220 * DLD-FUNCTIONS/fsolve.cc (Ffsolve): Likewise. |
|
1221 * DLD-FUNCTIONS/dassl.cc (Fdassl): Likewise. |
|
1222 |
|
1223 * load-save.cc (read_mat_ascii_data): When reading from |
|
1224 tmp_stream, check its state, not the state of is. |
|
1225 |
|
1226 * defun-dld.h (INSTALL_DLD_FCN, INSTALL_DLD_FCNS): New macros. |
|
1227 * DLD-FUNCTIONS/dassl.cc: Use them. |
|
1228 * DLD-FUNCTIONS/lsode.cc: Ditto. |
|
1229 * DLD-FUNCTIONS/fsolve.cc: Ditto. |
|
1230 * DLD-FUNCTIONS/quad.cc: Ditto. |
|
1231 * DLD-FUNCTIONS/time.cc: Ditto. |
|
1232 * DLD-FUNCTIONS/besselj.cc: Ditto. |
|
1233 * DLD-FUNCTIONS/getgrent.cc: Ditto. |
|
1234 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
1235 * DLD-FUNCTIONS/inv.cc: Ditto. |
|
1236 * DLD-FUNCTIONS/log.cc: Ditto. |
|
1237 * DLD-FUNCTIONS/minmax.cc: Ditto. |
|
1238 * DLD-FUNCTIONS/rand.cc: Ditto. |
|
1239 |
3322
|
1240 * data.cc (Flinspace): Let linspace functions handle errors. |
|
1241 |
3321
|
1242 * mkgendoc (print_doc_string): Handle quoted names. |
|
1243 |
|
1244 * file-io.cc (symbols_of_file_io): Use DEFCONSTX for SEEK_SET, |
|
1245 SEEK_CUR, and SEEK_END. |
|
1246 |
|
1247 * defun.h (DEFCONST): Just pass name, defn, and doc to |
|
1248 DEFCONST_INTERNAL. |
|
1249 (DEFCONSTX): Likewise, pass name, defn, and doc to DEFCONSTX_INTERNAL. |
|
1250 * defun-int.h [MKBUILTINS] (DEFCONST_INTERNAL): Likewise, pass |
|
1251 name, defn, and doc to XDEFCONST_INTERNAL. |
|
1252 [MKBUILTINS] (DEFCONSTX_INTERNAL): New macro. |
|
1253 (INSTALL_CONST): New macro. |
|
1254 [! MKBUILTINS] (DEFCONST_INTERNAL): Use it to handle details here. |
|
1255 [! MKBUILTINS] (DEFCONSTX_INTERNAL): Ditto. |
|
1256 * mkgendoc: Fix definition of XDEFCONST_INTERNAL to match. |
|
1257 * mkbuiltins: Ditto. |
|
1258 |
|
1259 * mkdefs: Match spaces before BEGIN_INSTALL_BUILTIN. |
|
1260 |
|
1261 * Makefile.in (DEFUN_PATTERN): Also match DEFUN_MAPPER. |
|
1262 |
|
1263 1999-10-26 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
1264 |
|
1265 * data.cc (VI, VInf, VJ, VNaN, Ve, Veps, Vfalse, Vi, Vinf, Vj, |
|
1266 Vnan, Vpi, Vrealmax, Vrealmin): Texinfoize doc strings. |
|
1267 * mappers.cc (Fabs, Facos, Facosh, Fangle, Farg, Fasin, Fasinh, |
|
1268 Fatan, Fatanh, Fceil, Fconj, Fcos, Fcosh, Ferf, Ferfc, Fexp, |
|
1269 Ffinite, Ffix, Ffloor, Fgamma, Fimag, Flgamma, Flog, Flog10, |
|
1270 Freal, Fround, Fsign, Fsin, Fsinh, Fsqrt, Ftan, Ftanh): Ditto. |
|
1271 |
|
1272 1999-10-23 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
1273 |
3361
|
1274 * data.cc (Fis_matrix): Texinfoize doc string. |
|
1275 * ov.cc (Vpropagate_empty_matrices): Ditto. |
|
1276 * pt-mat.cc: (Vempty_list_elements_ok): Ditto. |
|
1277 * pr-output.cc (Vfixed_point_format, Voutput_max_field_width, |
|
1278 Voutput_precision, Vprint_empty_dimensions, Vsplit_long_rows): |
|
1279 Ditto. |
3321
|
1280 |
|
1281 1999-10-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1282 |
3323
|
1283 * ov-usr-fcn.cc (octave_user_function::do_index_op): If |
|
1284 Vmax_recursion_depth is exceeded, call unwind_protect::run_frame |
|
1285 before returning. |
3321
|
1286 |
3308
|
1287 1999-10-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1288 |
3317
|
1289 * cutils.c (do_octave_usleep): Handle useconds > 1e6. |
|
1290 |
3308
|
1291 * variables.h (is_valid_function): Provide default values for the |
|
1292 string argument. |
|
1293 |
|
1294 * symtab.cc (variable_reference): Maybe print warning (or error) |
|
1295 about variables that hide functions of the same name. |
|
1296 (symbol_record::define (const octave_value&, unsigned int)): Ditto. |
|
1297 (Vvariables_can_hide_functions): New static variable. |
|
1298 (variables_can_hide_functions, symbols_of_symtab): New functions. |
|
1299 |
|
1300 * cutils.c: New file. |
|
1301 * Makefile.in (SOURCES): Add it to the list. |
|
1302 * utils.h: Declare octave_usleep here. |
|
1303 * dirfns.cc (Fls): Simply all octave_usleep. |
|
1304 * oct-procbuf.cc (octave_procbuf::open): Ditto. |
|
1305 * sysdep.cc (Fusleep): Ditto. |
|
1306 * toplev.cc (run_command_and_return_output): Ditto. |
|
1307 |
3305
|
1308 1999-10-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1309 |
3307
|
1310 * data.cc (make_diag (const octave_value&, const octave_value&)): |
|
1311 Delete special cases for scalars and simply attempt conversion of |
|
1312 first arg to a matrix value. If that fails, we will still see an |
|
1313 error message. |
|
1314 |
3305
|
1315 * Makefile.in (DISTFILES): Add mkgendoc to the list. |
|
1316 |
3296
|
1317 1999-10-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1318 |
3301
|
1319 * Makefile.in (stmp-pic): New target. |
|
1320 ($(PICOBJS)): Depend on stmp-pic, not pic. |
|
1321 |
|
1322 * ov.h (get_rep): New function. |
|
1323 |
|
1324 * help.cc (display_help_text): Pass definitions for VERSION, |
|
1325 OCTAVE_HOME, and TARGETHOSTTYPE to makeinfo. |
|
1326 |
|
1327 * DLD-FUNCTIONS/getgrent.cc: Texinfoize all doc strings. |
|
1328 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
1329 * DLD-FUNCTIONS/getrusage.cc: Ditto. |
|
1330 * DLD-FUNCTIONS/time.cc: Ditto. |
|
1331 |
|
1332 * defaults.cc (EXEC_PATH, OCTAVE_VERSION): Texinfoize doc strings. |
|
1333 * dirfns.cc (Fcd, Fls, Fpwd, Freaddir, Fmkdir, Frmdir, Frename, |
|
1334 Fglob, Ffnmatch): Ditto. |
|
1335 * file-io.cc (Fpopen, Fpclose, Fumask): Ditto. |
|
1336 * sysdep.cc (Fgetenv, Fputenv, Fpause, Fsleep, Fusleep, Fisieee, |
|
1337 Ftilde_expand): Ditto. |
|
1338 * toplev.cc (Fcomputer, Fsystem, Foctave_config_info): Ditto. |
|
1339 * utils.cc (Ffile_in_path): Ditto. |
|
1340 * syscalls.cc (Fdup2, Fexec, Ffcntl, Ffork, Fgetpgrp, Fgetpid, |
|
1341 Fgetppid, Fgetegid, Fgetgid, Fgeteuid, Fgetuid, Fmkfifo, Fpipe, |
|
1342 Fstat, Funlink, Fwaitpid, F): Ditto. |
|
1343 (Flstat): Refer to stat for doc. |
|
1344 |
|
1345 |
3296
|
1346 * help.cc (looks_like_texinfo): New function. |
|
1347 (display_help_text): Use it to see if the doc string looks like |
|
1348 Texinfo source. If so, use makeinfo to format the text before |
|
1349 displaying it. |
|
1350 |
|
1351 * mkgendoc: New script. |
|
1352 * Makefile.in: Use it to create gendoc.cc, which is compiled and |
|
1353 run to create DOCSTRINGS file from sources. |
|
1354 |
3295
|
1355 1999-10-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1356 |
|
1357 * help.cc (help_from_info): Print `unable to find info' message if |
|
1358 try_info returns 127; otherwise, print `not indexed' message. |
|
1359 Don't sleep after printing `not indexed' message. |
|
1360 |
3292
|
1361 1999-10-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1362 |
|
1363 * parse.y (fold (tree_unary_expression *)): New function. |
|
1364 (make_prefix_op, make_postfix_op): Use it. |
|
1365 |
3281
|
1366 1999-10-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1367 |
3288
|
1368 * Makefile.in (oct-gperf.h): Ask for ANSI-C output from gperf |
|
1369 (requires gperf-2.7 or later). |
|
1370 |
3281
|
1371 * sighandlers.cc (sigwinch_handler): New function. |
|
1372 (install_signal_handlers): Install it. |
|
1373 |
3273
|
1374 Thu Sep 23 19:49:36 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1375 |
|
1376 * toplev.cc (Fsystem): For async case, use execl instead of |
|
1377 system, avoiding the need to exit after executing the subprocess. |
|
1378 |
3268
|
1379 Thu Sep 9 17:09:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1380 |
|
1381 * oct-stream.cc (get_size): Allow zero values. |
|
1382 (get_size): New arg, one_elt_size_spec. |
|
1383 (do_scanf_conv): New arg, `conv_count'. Change instantiation |
|
1384 requests and all callers. |
|
1385 (octave_base_stream::do_scanf): Improve scanning of strings. |
|
1386 (octave_base_stream::do_oscanf): Remove size limit on %s conversions. |
|
1387 |
|
1388 * oct-stream.cc (scanf_format_list::all_character_conversions): |
|
1389 Don't count %p as a character conversion. |
|
1390 |
|
1391 Tue Sep 7 08:31:04 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1392 |
|
1393 * pr-output.cc (set_real_matrix_format, set_complex_matrix_format): |
|
1394 Move check for fixed_point_format ahead of check for |
|
1395 int_or_inf_or_nan. |
|
1396 |
3264
|
1397 Thu Sep 2 11:54:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1398 |
|
1399 * oct-obj.cc (make_argv): Correctly handle empty strings as args. |
|
1400 |
3263
|
1401 Fri Aug 20 08:17:52 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1402 |
|
1403 * DLD-FUNCTIONS/quad.cc (quad): Delete unused label. |
|
1404 |
|
1405 * unwind-prot.cc (saved_variable::~saved_variable): Don't try to |
|
1406 delete gen_ptr_value here. |
|
1407 |
|
1408 Mon Aug 16 21:34:33 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1409 |
|
1410 * lex.l (next_token_is_sep_op): New function. |
|
1411 (handle_close_brace, maybe_unput_comma): Use it. |
|
1412 (have_continuation): Also handle CRLF here. |
|
1413 |
|
1414 Wed Aug 11 16:06:57 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1415 |
|
1416 * file-io.cc (Ffopen): Make fopen ("filename") work and imply that |
|
1417 MODE = "r". |
|
1418 |
3258
|
1419 Wed Jul 21 15:38:52 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1420 |
3259
|
1421 * help.cc (display_names_from_help_list): Sort names before |
|
1422 listing them. |
|
1423 (print_symbol_type, Ftype): Also handle built-in constants. |
|
1424 (LIST_SYMBOLS): Correct call to symbol_table::name_list. |
|
1425 (simple_help): List constants here too. List constants and |
|
1426 variables before functions, not after. Sort names before listing |
|
1427 them. |
|
1428 |
|
1429 * variables.cc (do_who): Display built-in constants in a separate |
|
1430 section. |
|
1431 |
|
1432 * error.cc (bind_global_error_variable, clear_global_error_variable): |
|
1433 Call bind_builtin_constant, not bind_builtin_variable to set |
|
1434 __error_text__. |
|
1435 * octave.cc (intern_argv): Likewise, for argv and __argv__. |
|
1436 |
|
1437 * defun.cc (install_builtin_constant): Move function guts to |
|
1438 bind_builtin_constant in variables.cc. |
|
1439 * variables.cc (bind_builtin_constant): New function. |
|
1440 |
3258
|
1441 * symtab.cc (symbol_record::define, symbol_record::variable_reference): |
|
1442 Handle constants the same as functions. |
|
1443 (symbol_record::link_to_builtin_variable): New function. |
|
1444 (symbol_record::define_builtin_const): New function. |
|
1445 (symbol_record::define_as_fcn): Delete unused function. |
|
1446 (symbol_record::read_only_error): |
|
1447 Handle constants the same as variables. |
|
1448 * symtab.h (symbol_record::BUILTIN_CONSTANT): New enum value. |
|
1449 (symbol_record::symbol_type): Increase width to 7 bits. |
|
1450 (symbol_record::symbol_def::is_constant): New function. |
|
1451 (symbol_record::symbol_def::is_builtin_constant): New function. |
|
1452 (symbol_record::is_constant): New function. |
|
1453 (symbol_record::is_builtin_constant): New function. |
|
1454 (SYMTAB_ALL_TYPES): Add symbol_record::BUILTIN_CONSTANT. |
|
1455 * variables.cc (link_to_builtin_variable): Delete unused function. |
|
1456 (link_to_builtin_or_function): Handle built-in constants here too. |
|
1457 |
|
1458 * defun.cc (install_builtin_variable): Delete inst_as_fcn arg. |
|
1459 (install_builtin_constant): New function. |
|
1460 (install_builtin_variable_as_function): Delete unused function. |
|
1461 * defun.h (DEFVAR_INTERNAL): Delete inst_as_fcn arg. |
|
1462 (DEFCONST_INTERNAL): New macro. |
|
1463 * defun.h (DEFVAR): Delete inst_as_fcn arg. |
|
1464 (DEFCONST, DEFCONSTX): Define using DEFCONST_INTERNAL instead of |
|
1465 DEFVAR_INTERNAL. |
|
1466 * data.cc, defaults.cc, error.cc, help.cc, input.cc, lex.l, |
|
1467 load-save.cc, oct-hist.cc, oct-procbuf.cc, ov-fcn.h, |
|
1468 ov-usr-fcn.cc, ov.cc, pager.cc, parse.y, pr-output.cc, |
|
1469 pt-assign.cc, pt-decl.cc, pt-mat.cc, pt-plot.cc, pt-stmt.cc, |
|
1470 toplev.cc, variables.cc: |
|
1471 Change all invocations of DEFVAR to match new definition. |
|
1472 |
|
1473 * data.cc (symbols_of_data): Add DEFCONSTs for true and false. |
|
1474 |
3255
|
1475 Thu Jul 15 10:59:42 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1476 |
3258
|
1477 * data.cc (Fis_bool, Fis_complex, Fisempty, Fisnumeric, Fis_list, |
|
1478 Fis_map, Fis_struct): Return bool object. |
|
1479 (Fisreal): New function. |
|
1480 |
|
1481 * ov-str-mat.h (octave_char_matrix_str): Only return true if |
|
1482 Vimplicit_str_to_num_ok is also true. |
|
1483 |
3255
|
1484 * DLD-FUNCTIONS/time.cc (Ftime): Print usage message if any |
|
1485 arguments are supplied. |
|
1486 |
|
1487 * variables.cc (symbol_out_of_date): Call octave_time for time stamps. |
|
1488 |
|
1489 * fn-cache.h (octave_fcn_file_name_cache::timestamp): |
|
1490 Now octave_time object. |
|
1491 |
|
1492 * strftime.c: Move to liboctave directory. |
|
1493 * Makefile.in (DIST_SRC): Delete from list. |
|
1494 |
|
1495 * ov-usr-fcn.h (octave_user_function::t_parsed, |
|
1496 octave_user_function::t_checked): Now octave_time objects. |
|
1497 (octave_user_function::time_parsed, |
|
1498 (octave_user_function::time_checked): |
|
1499 Return value is now octave_time object. |
|
1500 (octave_user_function::mark_fcn_file_up_to_date)): |
|
1501 Arg is now octave_time object. |
|
1502 |
|
1503 * ov-fcn.h (octave_function::mark_fcn_file_up_to_date)): |
|
1504 Arg is now octave_time object. |
|
1505 (octave_function::time_parsed, octave_function::time_checked): |
|
1506 Return value is now octave_time object. |
|
1507 |
|
1508 * input.cc (Vlast_prompt_time): Now an octave_time object. |
|
1509 (octave_gets): Call octave_time::stamp() to set Vlast_prompt_time. |
|
1510 |
|
1511 * DLD-FUNCTIONS/time.cc (mk_tm_map, extract_tm, Ftime, Fgmtime, |
|
1512 Flocaltime, Fmktime, Fstrftime): Use new classes defined in |
|
1513 liboctave/oct-time.cc instead of accessing C functions directly. |
|
1514 |
3252
|
1515 Wed Jul 14 17:38:46 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1516 |
|
1517 * systime.h: Move to liboctave directory. |
|
1518 * Makefile.in (INCLUDES): Delete it from the list |
|
1519 |
|
1520 Tue Jul 13 14:34:57 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1521 |
|
1522 * sighandlers.cc (sigchld_handler): Only wait for processes in |
|
1523 octave_child_list. |
|
1524 * toplev.cc (cmd_status): Delete unused static variable. |
|
1525 (cmd_death_handler): Delete unused function. |
|
1526 (run_command_and_return_output): Don't add cmd_death_handler to |
|
1527 octave_child_list. Simply extract command exit status from |
|
1528 calling close() on the procstream object. |
|
1529 |
3249
|
1530 Mon Jul 12 22:38:50 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1531 |
|
1532 * defun.h (DEFUN_MAPPER): Handle new args, d_b_map and c_b_map. |
|
1533 * defun-int.h (DEFUN_MAPPER_INTERNAL): Likewise. |
|
1534 * mappers.cc (install_mapper_functions): Supply new args to |
|
1535 all uses of DEFUN_MAPPER. |
|
1536 * ov-mapper.cc (octave_mapper::apply): Handle mapper functions |
|
1537 that return bool objects. |
|
1538 * ov-mapper.h (octave_mapper::d_b_mapper, octave_mapper::c_b_mapper): |
|
1539 New typedefs. |
|
1540 (octave_mapper::octave_mapper): Handle new mapper function types. |
|
1541 |
|
1542 * DLD-FUNCTIONS/minmax.cc: Do a better job of handling NaNs. |
|
1543 |
|
1544 Sun Jul 11 13:15:17 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1545 |
|
1546 * pr-output.cc (do_plus_format (ostream&, double)): New function. |
|
1547 (octave_print_internal (ostream&, double, bool)): Use it. |
|
1548 (octave_print_internal (ostream&, const Matrix&, bool, int)): Ditto. |
|
1549 |
|
1550 * pr-output.cc (do_plus_format (ostream&, const Complex&)): |
|
1551 New function. |
|
1552 (octave_print_internal (ostream&, const Complex&, bool)): Use it. |
|
1553 (octave_print_internal (ostream&, const ComplexMatrix&, bool, int)): |
|
1554 Ditto. |
|
1555 |
|
1556 Sun Jun 20 23:04:00 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1557 |
|
1558 * sysdep.cc: Include sys/ioctl.h if available. |
|
1559 |
|
1560 Sat Jun 19 12:07:16 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1561 |
|
1562 * variables.cc (do_who): Make pattern and multiple non-option |
|
1563 arguments work. |
|
1564 |
3246
|
1565 Mon Jun 7 09:54:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1566 |
|
1567 * lex.l (next_token_is_bin_op, next_token_is_postfix_unary_op, |
|
1568 handle_number): Delete yytext arg. Change all callers. |
|
1569 (next_token_is_postfix_unary_op): Check the first character |
|
1570 obtained from yyinput before calling it again. |
|
1571 (next_token_is_bin_op): Do a more thorough check. |
|
1572 (handle_identifier): Also enter token in local symbol table if the |
|
1573 following token is a dot and it looks like a binary operator. |
|
1574 (whitespace_in_literal_matrix): Now static. |
|
1575 |
|
1576 * lex.l: Always use unput, not yyunput. |
|
1577 |
3244
|
1578 Fri May 28 11:02:37 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1579 |
|
1580 * DLD-FUNCTIONS/chol.cc (Fchol): If two output arguments, never |
|
1581 produce error message. |
|
1582 |
3243
|
1583 Thu May 27 18:28:35 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1584 |
|
1585 * DLD-FUNCTIONS/chol.cc (Fchol): Also return info as second output. |
|
1586 |
|
1587 * DLD-FUNCTIONS/minmax.cc (max (const ComplexMatrix&, const |
|
1588 ComplexMatrix&)): Correct test for real columns only. |
|
1589 (min (const ComplexMatrix&, const ComplexMatrix&)): Likewise. |
|
1590 |
|
1591 Wed Apr 14 12:54:25 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1592 |
|
1593 * DLD-FUNCTIONS/dassl.cc (Fdassl): Prevent recursive calls. |
|
1594 * DLD-FUNCTIONS/fsolve.cc (Ffsolve): Likewise. |
|
1595 * DLD-FUNCTIONS/lsode.cc (Flsode): Likewise. |
|
1596 * DLD-FUNCTIONS/quad.cc (Fquad): Likewise. |
|
1597 |
|
1598 * file-io.cc (Fsscanf, Ffscanf): Doc fix. |
|
1599 |
3239
|
1600 Sat Mar 27 11:07:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1601 |
|
1602 * ov.h (octave_value::count): New function. |
|
1603 * symtab.cc (symbol_record::dump_symbol_info): New function. |
|
1604 * symtab.cc (symbol_record::symbol_def::dump_symbol_info): Ditto. |
|
1605 * variables.cc (F__dump_symbol_info__): Ditto. |
|
1606 |
|
1607 * pt-misc.cc (tree_parameter_list::clear): New function. |
|
1608 * ov-usr-fcn.h (octave_user_function::clear_args_passed): Ditto. |
|
1609 * ov-usr-fcn.cc (clear_param_list): New function. |
|
1610 (clear_args_passed): New function. |
|
1611 (octave_user_function::do_index_op): Use them to decrement |
|
1612 reference counts on local variables. |
|
1613 |
3238
|
1614 Fri Mar 26 00:51:53 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1615 |
|
1616 * Makefile.in (libraries): Use the libfoo.a(objects) method of |
|
1617 creating static libs. |
|
1618 |
|
1619 * defaults.cc (symbols_of_defaults): Initialize LOADPATH to |
|
1620 Vload_path, not ":". |
|
1621 |
|
1622 Thu Mar 18 12:09:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1623 |
|
1624 * data.cc (Fisnumeric): Fix typo. |
|
1625 |
|
1626 Thu Mar 4 02:17:04 1999 James Macnicol <jamesm@evans.ee.adfa.oz.au> |
|
1627 |
|
1628 * file-io.cc (Ffread, Ffwrite): Add uint16 and uint32 data types |
|
1629 to doc string. |
|
1630 |
|
1631 Wed Mar 3 11:55:17 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1632 |
|
1633 * lex.l (handle_string): Allow "" to pass through unchanged if |
|
1634 working on a gset command. |
|
1635 |
|
1636 Tue Mar 2 01:36:29 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1637 |
|
1638 * variables.cc (Fexist): If a variable isn't defined, only go on |
|
1639 to look for a global by the same name if we are at the top level. |
|
1640 |
|
1641 Fri Jan 29 02:18:36 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1642 |
|
1643 * version.h (OCTAVE_NAME_AND_VERSION): Say `GNU Octave', not just |
|
1644 Octave. |
|
1645 |
3234
|
1646 Thu Jan 28 21:29:16 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1647 |
|
1648 * toplev.cc (Fcomputer): Use CANONICAL_HOST_TYPE, not TARGET_HOST_TYPE. |
|
1649 (octave_config_info): Likewise. |
|
1650 * version.h: Ditto. |
|
1651 |
|
1652 * sysdep.cc (Fpause): Flush output before getting user input. |
|
1653 |
3233
|
1654 Wed Jan 27 14:18:29 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1655 |
|
1656 * Makefile.in (DEFFUN_PATTERN, DEFVAR_PATTERN): Use egrep again. |
|
1657 Make the patterns work with stupid egreps that don't like empty |
|
1658 elements in alternation patterns. |
|
1659 |
|
1660 Fri Jan 22 04:41:48 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1661 |
|
1662 * load-save.cc (save_ascii_data): Check for string type first, |
|
1663 then range, then the rest. |
|
1664 (save_binary_data): Ditto. |
|
1665 |
|
1666 * pager.cc (more_than_a_screenful): Accept length as second arg. |
|
1667 Handle long lines properly, assuming the terminal wraps long lines. |
|
1668 (octave_pager_buf::do_sync): Accept length of data as second arg. |
|
1669 Use write instead of << to put characters on output stream. |
|
1670 (octave_pager_buf::sync): Don't assume data ends at first NUL. |
|
1671 (octave_diary_buf::sync): Ditto. |
|
1672 |
|
1673 Thu Jan 21 22:15:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1674 |
|
1675 * load-save.cc (save_mat_binary_data): Check for string type |
|
1676 first, then range, then the rest. |
|
1677 |
|
1678 Wed Jan 20 12:01:14 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1679 |
|
1680 * oct-stream.cc (octave_base_stream::do_scanf): Handle short and |
|
1681 long ints correctly. |
|
1682 |
|
1683 Fri Jan 15 13:04:58 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1684 |
|
1685 * parse.y (end_error): Handle case of endswitch too. |
|
1686 |
|
1687 * Makefile.in: Use basic regular expressions and grep instead of |
|
1688 egrep to find files that contain DEFVAR, DEFCONST, or DEFUN. |
|
1689 |
|
1690 Wed Dec 9 14:14:11 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1691 |
|
1692 * Makefile.in (octave): Add $(RDYNAMIC_FLAG) to link command. |
|
1693 |
|
1694 Fri Dec 4 20:26:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1695 |
|
1696 * DLD-FUNCTIONS/time.cc (Fstrftime): Make it work even when not |
|
1697 using the GNU version of strftime, which allows passing NULL for |
|
1698 the buffer to determine the required size of the buffer. |
|
1699 |
3225
|
1700 Wed Dec 2 22:38:40 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1701 |
|
1702 * utils.cc (file_in_loadpath): Expect argc == 2, not 3. |
|
1703 |
|
1704 Tue Nov 24 23:38:19 1998 Eric Norum <eric@skatter.USask.Ca> |
|
1705 |
|
1706 * mkbuiltins: Also strip off leading `./' from file names. |
|
1707 * mkops: Ditto. |
|
1708 |
|
1709 Tue Nov 24 23:24:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1710 |
|
1711 * strftime.c: Surround everything with #ifdef HAVE_STRFTIME / #endif. |
|
1712 |
|
1713 * lex.h (YY_FATAL_ERROR): Call yy_falta_error after |
|
1714 jump_to_top_level to avoid gcc warning. |
|
1715 |
|
1716 Fri Nov 20 13:34:47 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1717 |
|
1718 * ov-bool.h, ov-bool.cc (class octave_bool): Derive from |
|
1719 octave_base_scalar and get common functions via derivation. |
|
1720 * ov-scalar.h, ov-scalar.cc (class octave_scalar): Ditto. |
|
1721 * ov-complex.h, ov-complex.cc (class octave_complex): Ditto. |
|
1722 |
|
1723 * ov-base-scalar.h, ov-base-scalar.cc (class octave_base_scalar): |
|
1724 New files for new class definition. Put common scalar data type |
|
1725 stuff here. |
|
1726 * Makefile.in (OV_INCLUDES, OV_SRC): Add them to the lists. |
|
1727 |
3221
|
1728 Thu Nov 19 14:30:25 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
3225
|
1729 |
3222
|
1730 * dynamic-ld.cc (octave_dynamic_loader::mangle_name): |
|
1731 Prepend underscore here. |
|
1732 (octave_dynamic_loader::load_fcn_from_dot_oct_file): Not here. |
|
1733 |
3221
|
1734 * ov-re-mat.h (octave_matrix_value): Delete experimental code for |
|
1735 handling structure references for things like .rows, .cols, etc. |
|
1736 |
3220
|
1737 Wed Nov 18 01:18:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1738 |
3221
|
1739 * Makefile.in (VAR_FILES): Be more careful about matching. |
|
1740 (DEF_FILES): Likewise. |
|
1741 |
|
1742 * ov-base-mat.h, ov-base-mat.cc, ov-bool-mat.h, ov-bool-mat.cc, |
|
1743 ov-ch-mat.h, ov-ch-mat.cc, ov-cx-mat.h, ov-cx-mat.cc, |
|
1744 ov-re-mat.h, ov-re-mat.cc: Move default definition of all, any, |
|
1745 is_matrix_type, is_numeric_type, valid_as_zero_index, and |
|
1746 do_index_op to base class. |
|
1747 Provide definitions that override the defaults where necessary. |
3220
|
1748 |
|
1749 * mappers.cc: Don't include lo-specfun.h. |
|
1750 |
|
1751 Tue Nov 17 14:35:56 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1752 |
|
1753 * besselj.cc (Fbesselh, Fairy); New functions. |
|
1754 (Fbesselj, Fbessely, Fbesselk, Fbesseli): Update doc strings. |
|
1755 (do_bessel): Handle additional args. |
|
1756 |
|
1757 Fri Nov 13 14:47:11 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1758 |
|
1759 * lex.l (NUMBER): Allow hexadecimal constants. |
|
1760 (looks_like_hex): New function. |
|
1761 (handle_number): Check for hexadecimal constants and convert them |
|
1762 to unsigned integer values. |
|
1763 |
3219
|
1764 Thu Nov 12 11:13:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1765 |
|
1766 * input.cc (gnu_readline): Check for EOF from command_editor::readline. |
|
1767 |
|
1768 * ov-str-mat.h, ov-str-mat.cc (class octave_char_matrix_str): |
|
1769 Get common functions via new derivation scheme. |
|
1770 |
|
1771 * ov-bool-mat.h, ov-bool-mat.cc (class octave_bool_matrix): |
|
1772 Derive from octave_base_matrix and get common functions via derivation. |
|
1773 * ov-ch-mat.h, ov-ch-mat.cc (class octave_char_matrix): Ditto. |
|
1774 * ov-cx-mat.h, ov-cx-mat.cc (class octave_complex_matrix): Ditto. |
|
1775 * ov-re-mat.h, ov-re-mat.cc (class octave_real_matrix): Ditto. |
|
1776 |
|
1777 * ov-base-mat.h, ov-base-mat.cc (class octave_base_matrix): New |
|
1778 files for new class definition. Put common matrix data type |
|
1779 stuff here. |
|
1780 |
|
1781 * ov-list.cc (Fnth): New function. |
|
1782 |
|
1783 * ov-list.cc (octave_list::do_index_op): Allow more complex indexing. |
|
1784 |
|
1785 * oct-obj.cc (octave_value_list::index): New function. |
|
1786 (octave_value_list::octve_value_list (Array<octave_value>)): |
|
1787 New private constructor. |
|
1788 |
|
1789 * ov-list.cc (Fsplice): Fix docstring to match. |
|
1790 * oct-obj.cc (octave_value_list::splice): Allow special case |
|
1791 splice (x, length(x)+1, 0, y) to be equivalent to append (x, y). |
|
1792 |
|
1793 * ov-list.cc (Fappend): If an arg is a list, concatenate the lists |
|
1794 instead of appending arg as a single element. |
|
1795 |
|
1796 Wed Nov 11 14:07:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1797 |
|
1798 * load-save.cc (get_mat_data_input_line): New function. |
|
1799 (get_lines_and_columns): Use it here. |
|
1800 (read_mat_ascii_data): And here and do our own reading instead of |
|
1801 using Matrix::operator<<. |
|
1802 |
|
1803 Tue Nov 10 16:12:25 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1804 |
|
1805 * parse.y (make_constant): Initialize retval to 0. |
|
1806 |
|
1807 * toplev.h (clean_up_and_exit (void)): Delete declaration. |
|
1808 * toplev.cc (do_octave_atexit): Move guts of clean_up_for_exit |
|
1809 here, but ensure that the actions are only executed once. |
|
1810 * octave.cc (main): Don't register cleanup_tmp_files with atexit. |
|
1811 |
|
1812 * ov.h, ov.cc (class octave_value): Use DECLARE_OCTAVE_ALLOCATOR |
|
1813 and DEFINE_OCTAVE_ALLOCATOR for uniform declaration and definition |
|
1814 of allocator functions. Use DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA |
|
1815 and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA for uniform declaration |
|
1816 and definition of type id functions and data. |
|
1817 * ov-usr-fcn.h, ov-usr-fcn.cc (class octave_user_function): Ditto. |
|
1818 * ov-scalar.h, ov-scalar.cc (class octave_scalar): Ditto. |
|
1819 * ov-re-mat.h ov-re-mat.cc (class octave_matrix): Ditto. |
|
1820 * ov-range.h, ov-range.cc (class octave_range): Ditto. |
|
1821 * ov-mapper.h, ov-mapper.cc (class octave_mapper): Ditto. |
|
1822 * ov-list.h, ov-list.cc (class octave_list): Ditto. |
|
1823 * ov-file.h, ov-file.cc (class octave_file): Ditto. |
|
1824 * ov-fcn.h, ov-fcn.cc (class octave_function): Ditto. |
|
1825 * ov-cx-mat.h, ov-cx-mat.cc (class octave_complex_matrix): Ditto. |
|
1826 * ov-complex.h, ov-complex.cc (class octave_complex): Ditto. |
|
1827 * ov-ch-mat.h, ov-ch-mat.cc (octave_char_matrix): Ditto. |
|
1828 * ov-builtin.h, ov-builtin.cc (class octave_builtin): Ditto. |
|
1829 * ov-bool.h, ov-bool.cc (class octave_bool): Ditto. |
|
1830 * ov-bool-mat.h, ov-bool-mat.cc (octave_bool_matrix): Ditto. |
|
1831 |
|
1832 * ov.h (DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA): New macro. |
|
1833 (DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA): Ditto. |
|
1834 |
3215
|
1835 Mon Nov 9 16:12:37 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1836 |
|
1837 * pr-output.cc (octave_print_internal): Reorder default args for |
|
1838 charMatrix version. |
|
1839 (octave_print_internal): New function for boolMatrix. |
|
1840 |
|
1841 * version.h (OCTAVE_STARTUP_MESSAGE): Note that this is a |
|
1842 development release. |
|
1843 |
|
1844 * toplev.cc (do_octave_atexit): Call flush_octave_stdout here. |
|
1845 (clean_up_for_exit): And here. |
|
1846 |
|
1847 Mon Nov 9 15:20:53 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1848 |
|
1849 * input.cc (get_user_input): Check retval.length(), not retval.length. |
|
1850 |
|
1851 Sun Nov 8 19:30:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1852 |
|
1853 * pt-assign.cc (tree_simple_assignment::rvalue): If etype is |
|
1854 asn_eq, don't evaluate ult again because retval is just rhs value. |
|
1855 (tree_multi_assignment::rvalue): Likewise. |
|
1856 |
|
1857 Fri Nov 6 12:14:29 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1858 |
|
1859 * pt-loop.cc (tree_for_command::eval): Move code for string RHS |
|
1860 outside if clause for matrix types. |
|
1861 |
|
1862 * pt-idx.cc: Don't forget to define arg_nm. |
|
1863 Move contstructor here. |
|
1864 * pt-idx.h: From here. |
|
1865 |
|
1866 * data.cc (Fisempty): Also return true for empty strings. |
|
1867 |
3212
|
1868 Wed Nov 4 17:21:41 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1869 |
|
1870 * ov-base.cc (octave_base_value::rows, octave_base_value::columns, |
|
1871 octave_base_value::length): Delete. |
|
1872 * ov-base.h (octave_base_value::rows, octave_base_value::columns, |
|
1873 octave_base_value::length): Define here. All return -1 if not |
|
1874 defined in a derived class. |
|
1875 |
|
1876 * data.cc (Fis_matrix): Also return true if the arg is a range. |
|
1877 |
3209
|
1878 Tue Nov 3 09:40:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1879 |
|
1880 * data.cc (Fis_bool): New function. |
|
1881 Also add alias for islogical. |
|
1882 |
|
1883 * ov.h (octave_value::is_bool_type): New function. |
|
1884 * ov-base.h (octave_base_value::is_bool_type): Likewise. |
|
1885 * ov-bool.h (octave_bool::is_bool_type): Likewise. |
|
1886 * ov-bool-mat.h (octave_bool_matrix::is_bool_type): Likewise. |
|
1887 |
3206
|
1888 Mon Nov 2 13:36:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1889 |
3208
|
1890 * lex.l (handle_close_brace): Also handle case of ']' followed by |
|
1891 other assignment ops (+=, -=, ...). |
|
1892 |
|
1893 * pt-assign.cc (tree_simple_assignment::rvalue): Correctly handle |
|
1894 return value and printing for operators other than `='. |
|
1895 (tree_multi_assignment::rvalue): Likewise. |
|
1896 |
|
1897 * pt-assign.h (tree_multi_assignment::etype): New data member. |
|
1898 * pt-assign.cc (tree_multi_assignment::rvalue): Use it instead of |
|
1899 assuming `='. |
|
1900 (tree_multi_assignment::oper): New function. |
|
1901 * pt-pr-code.cc (tree_print_code::visit_multi_assignment): Use |
|
1902 it instead of always printing `='. |
|
1903 * parse.y (make_assign_op): Pass expression type to |
|
1904 tree_multi_assignment constructor. |
|
1905 |
3206
|
1906 * Makefile.in (stmp-pic): New target. |
|
1907 ($(PICOBJ)): Depend on stmp-pic, not pic. |
|
1908 (clean): Delete stmp-pic. |
|
1909 |
|
1910 Sun Nov 1 23:24:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1911 |
|
1912 * mappers.cc (install_mapper_functions): Add alias for isfinite. |
|
1913 |
|
1914 Sat Oct 31 08:46:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1915 |
|
1916 * data.cc (Fisnumeric): New function. |
|
1917 |
3203
|
1918 Fri Oct 30 08:39:30 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1919 |
3205
|
1920 * oct-lvalue.cc (octave_lvalue::do_unary_op): Make it work for |
|
1921 indexed ops too. |
|
1922 * ov.cc (octave_value::unary_op_to_assign_op): New function. |
|
1923 (octave_value::do_non_const_unary_op): New function for indexed ops. |
|
1924 |
3204
|
1925 * parse.y (LEFTDIV_EQ, ELEFTDIV_EQ): New tokens. |
|
1926 (assign_expr): Add rules for them. |
|
1927 (make_assign_op): Handle them here too. |
|
1928 * lex.l: Recognize them. |
|
1929 * ov.h (octave_value::assign_op): Add ldiv_eq and el_ldiv_eq. |
|
1930 * ov.cc (octave_value::assign_op_as_string): Ditto. |
|
1931 (octave_value::op_eq_to_binary_op): Ditto. |
|
1932 (octave_value::assign): Handle OP= style operators with brute force. |
|
1933 (octave_value::simple_assign): New function. |
|
1934 |
3203
|
1935 * parse.y (matrix): Dont' forget to reset |
|
1936 lexer_flags.looking_at_matrix_or_assign_lhs. |
|
1937 |
|
1938 * oct-lvalue.cc (octave_lvalue::assign): Don't call change |
|
1939 function if error occurs. |
|
1940 (octave_lvalue::do_unary_op): If we have an index, fail with message. |
|
1941 |
3202
|
1942 Thu Oct 29 09:27:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1943 |
3203
|
1944 * ov.cc (do_binary_op): Protect against invalid type conversions. |
|
1945 (try_assignment_with_conversion): Likewise. |
|
1946 (do_unary_op): Likewise. |
|
1947 |
|
1948 * ov.h (OV_UNOP_FN, OV_UNOP_OP, OV_UNOP_FN_OP): New macros. |
|
1949 Use them to define not, uminus, transpose, hermitian functions |
|
1950 and operators ! and -. |
|
1951 (OV_BINOP_FN, OV_BINOP_OP, OV_BINOP_FN_OP): New macros. |
|
1952 Use them to define add, sub, mul, div, pow, ldiv, lshift, rshift, |
|
1953 lt, le, eq, ge, gt, ne, el_mul, el_div, el_pow, el_ldiv, el_and, |
|
1954 el_or, struct_ref, functions and operators <, <=, ==, >=, >, !=, |
|
1955 +, -, *, and /. |
|
1956 |
|
1957 * ops.h (CONVDECLX): New macro. |
|
1958 * ov-base.cc (matrix_conv, complex_matrix_conv, string_conv): |
|
1959 Use it to declare these functions. |
|
1960 |
|
1961 * ops.h (CONVDECL, INSTALL_WIDENOP): |
|
1962 Prefix function name with `oct_conv_'. |
|
1963 (INSTALL_BINOP, BINOPDECL): Prefix function name with `oct_binop_'. |
|
1964 (INSTALL_ASSIGNOP, INSTALL_ASSIGNANYOP, ASSIGNOPDECL): |
|
1965 Prefix function name with `oct_assignop_'. |
|
1966 (UNOPDECL, DEFNCUNOP_METHOD, INSTALL_UNOP, INSTALL_NCUNOP): |
|
1967 Prefix function name with `oct_unop_'. |
|
1968 |
|
1969 * ov-str-mat.cc (default_numeric_conversion_function): |
|
1970 Return 0 if conversion fails. |
|
1971 |
|
1972 * parse.y (make_prefix_op, make_postfix_op): Use |
|
1973 octave_value::unary_op enum. |
|
1974 |
|
1975 * pt-unop.cc (tree_prefix_expression::rvalue): Use new unary_op |
|
1976 functions from octave_value and octave_lvalue classes. |
|
1977 (tree_prefix_expression::rvalue): Likewise. |
|
1978 |
|
1979 * pt-unop.cc (tree_unary_expression::oper): Move here. |
|
1980 (tree_prefix_expression::oper, tree_postfix_expression): From here. |
|
1981 |
|
1982 * pt-unop.h (tree_prefix_expression, tree_postfix_expression): |
|
1983 Delete enums. |
|
1984 (tree_unary_expression): Use octave_value::unary_op enum. |
|
1985 * parse.y (make_prefix_op, make_postfix_op): Likewise. |
|
1986 |
|
1987 * oct-lvalue.h (octave_lvalue::do_unary_op): New function. |
|
1988 (octave_lvalue::increment, octave_lvalue::decrement): Delete. |
|
1989 |
|
1990 * ov-typeinfo.h (octave_value_typeinfo::non_const_unary_ops): |
|
1991 New data member. |
|
1992 * ov-typeinfo.h (octave_value_typeinfo::lookup_non_const_unary_op): |
|
1993 New function. |
|
1994 * ov-typeinfo.cc (octave_value_typeinfo::register_non_const_unary_op): |
|
1995 New function. |
|
1996 (octave_value_typeinfo::do_register_non_const_unary_op): Ditto. |
|
1997 (octave_value_typeinfo::do_lookup_non_const_unary_op): Ditto. |
|
1998 |
|
1999 * ov.cc (octave_value::do_non_const_unary_op): New function. |
|
2000 |
|
2001 * Makefile.in (OP_XSRC): Add op-chm.cc and op-range.cc to the list. |
|
2002 |
|
2003 * OPERATORS/op-str-str.cc: Define string matrix unary operators here. |
|
2004 (install_str_str_ops): Install them here. |
|
2005 * ov-bool-mat.h (octave_bool_matrix::transpose, |
|
2006 octave_bool_matrix_value::hermitian): Delete. |
|
2007 |
|
2008 * OPERATORS/op-chm.cc: New file. Define char matrix unary operators. |
|
2009 (install_chm_ops): Install them here. |
|
2010 * ov-ch-mat.h (octave_char_matrix::transpose, |
|
2011 octave_char_matrix_value::hermitian): Delete. |
|
2012 * ops.cc (install_ops): Call install_chm_ops. |
|
2013 |
|
2014 * OPERATORS/op-bm-bm.cc: Define bool matrix unary operators here. |
|
2015 (install_bm_bm_ops): Install them here. |
|
2016 * ov-bool-mat.h (octave_bool_matrix::transpose, |
|
2017 octave_bool_matrix_value::hermitian): Delete. |
|
2018 |
|
2019 * ov-bool.h (octave_bool::not, octave_bool::uminus, |
|
2020 octave_bool::transpose, octave_bool::hermitian): Delete. |
|
2021 |
|
2022 * OPERATORS/op-cs-cs.cc: Define complex scalar unary operators here. |
|
2023 (install_cs_cs_ops): Install them here. |
|
2024 * ov-complex.h (octave_complex::not, octave_complex::uminus, |
|
2025 octave_complex::transpose, octave_complex::hermitian): Delete. |
|
2026 |
|
2027 * OPERATORS/op-cm-cm.cc: Define complex matrix unary operators here. |
|
2028 (install_cm_cm_ops): Install them here. |
|
2029 * ov-cx-mat.h (octave_complex_matrix::not, |
|
2030 octave_complex_matrix::uminus, octave_complex_matrix::transpose, |
|
2031 octave_complex_matrix::hermitian): Delete. |
|
2032 |
|
2033 * OPERATORS/op-m-m.cc: Define matrix unary operators here. |
|
2034 (install_m_m_ops): Install them here. |
|
2035 * ov-re-mat.h (octave_matrix::not, octave_matrix::uminus, |
|
2036 octave_matrix::transpose, octave_matrix::hermitian): Delete. |
|
2037 |
|
2038 * OPERATORS/op-range.cc: New file. Define range unary operators. |
|
2039 (install_range_ops): Install them here. |
|
2040 * ov-range.h (octave_range::not, octave_range::uminus, |
|
2041 octave_range::transpose, octave_range::hermitian): Delete. |
|
2042 * ops.cc (install_ops): Call install_range_ops. |
|
2043 |
|
2044 * OPERATORS/op-s-s.cc: Define scalar unary operators here. |
|
2045 (install_s_s_ops): Install them here. |
|
2046 * ov-scalar.h (octave_scalar::not, octave_scalar::uminus, |
|
2047 octave_scalar::transpose, octave_scalar::hermitian): Delete. |
|
2048 |
|
2049 * ops.h (INSTALL_UNOP, CAST_UNOP_ARG, UNOPDECL, DEFUNOPX, DEFUNOP, |
|
2050 DEFUNOP_OP, DEFUNOP_FN): New macros. |
|
2051 |
|
2052 * ov.h (unary_op_fcn): New typedef. |
|
2053 (octave_value::unary_op): New enum. |
|
2054 * ov.cc (octave_value::octave_value): New function. |
|
2055 |
|
2056 * ov.h (octave_value::not, octave_value::uminus, |
|
2057 octave_value::transpose, octave_value::hermitian, |
|
2058 octave_value::increment, octave_value::decrement): Delete. |
|
2059 |
|
2060 * ov-base.cc (octave_base_value::not, octave_base_value::uminus, |
|
2061 octave_base_value::transpose, octave_base_value::hermitian, |
|
2062 octave_base_value::increment, octave_base_value::decrement): Delete. |
|
2063 |
|
2064 * ov.cc (gripe_unary_op): New function. |
|
2065 (do_unary_op): New function. |
|
2066 * ov-typeinfo.h (octave_value_typeinfo::unary_ops): |
|
2067 New data member. |
|
2068 * ov-typeinfo.cc (octave_value_info::register_unary_op, |
|
2069 octave_value_info::do_register_unary_op, |
|
2070 octave_value_info::lookup_unary_op, |
|
2071 octave_value_info::do_lookup_unary_op): |
|
2072 New functions. |
|
2073 |
3202
|
2074 * ov-list.cc (Fsplice): Use new octave_value::int_value function here. |
|
2075 (octave_list::do_index_op): Likewise. |
|
2076 (octave_list::assign): Likewise. |
|
2077 * toplev.cc (Fquit): Likewise. |
|
2078 * syscalls.cc (Fwaitpid): Likewise. |
|
2079 (Ffcntl): Likewise. |
|
2080 * file-io.cc (do_fread): Likewise. |
|
2081 (do_fwrite): Likewise. |
|
2082 * data.cc (make_diag): Likewise. |
|
2083 (Fsize): Likewise. |
|
2084 (get_dimensions): Likewise. |
|
2085 (Flinspace): |
|
2086 |
|
2087 * ov-base.cc (octave_base_value::int_value): New function. |
|
2088 (octave_base_value::nint_value): Ditto. |
|
2089 * ov.h (octave_value::int_value): Ditto. |
|
2090 (octave_value::nint_value): Ditto. |
|
2091 |
|
2092 * ov-list.cc (octave_list::assign): Fix off-by-one error. |
|
2093 |
3196
|
2094 Wed Oct 28 11:01:37 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2095 |
3202
|
2096 * load-save.cc (read_mat_ascii_data): Try harder to convert file |
|
2097 name to valid variable name. |
|
2098 |
|
2099 * data.cc (Fisempty, Fis_matrix): New functions. |
|
2100 |
|
2101 * ov-str-mat.h (octave_char_matrix_str::is_matrix_type): New function. |
|
2102 |
3196
|
2103 * OPERATORS/op-list.cc: New file. |
|
2104 * Makefile.in (OP_XSRC): Add it to the list. |
|
2105 |
|
2106 * ov-list.cc (octave_list::assign): New function. |
|
2107 |
|
2108 * ov-typeinfo.h (octave_value_typeinfo::assignany_ops): |
|
2109 New data member. |
|
2110 * ov-typeinfo.cc (octave_value_info::register_assignany_op, |
|
2111 octave_value_info::do_register_assignany_op, |
|
2112 octave_value_info::lookup_assignany_op, |
|
2113 octave_value_info::do_lookup_assignany_op): |
|
2114 New functions. |
|
2115 * ov.cc (octave_value::try_assignment (octave_value::assign_op, |
|
2116 const octave_value_list&, const octave_value&)): If no assignment |
|
2117 operator for particular RHS type exists, try finding one for |
|
2118 generic octave_value as RHS type. |
|
2119 * ops.h (DEFASSIGNANYOP_FN): New macro. |
|
2120 |
|
2121 * ov-list.cc (Fsplice): New function. |
|
2122 * oct-obj.cc (octave_value_list::splice): New function. |
|
2123 |
|
2124 * ov.cc (Vresize_on_range_error): No longer static. |
|
2125 * ov.h (Vresize_on_range_error): Provide extern declaration. |
|
2126 |
|
2127 * oct-procbuf.cc (symbols_of_oct_procbuf): Don't declare static. |
|
2128 |
|
2129 * data.cc (Flength): New function. |
|
2130 * ov.h (octave_value::length): New virtual function. |
|
2131 * ov-base.cc (octave_base_value::length): New function. |
|
2132 (octave_base_value::rows, octave_base_value::columns): Move |
|
2133 definitions here, from ov-base.h. Don't return -1. Instead, |
|
2134 gripe about wrong argument type. |
|
2135 * ov-bool-mat.h (octave_bool_matrix::length): New function. |
|
2136 * ov-bool.h (octave_bool::length): Ditto. |
|
2137 * ov-ch-mat.h (octave_char_matrix::length): Ditto. |
|
2138 * ov-complex.h (octave_complex::length): Ditto. |
|
2139 * ov-cx-mat.h (octave_complex_matrix::length): Ditto. |
|
2140 * ov-list.h (octave_list::length): Ditto. |
|
2141 * ov-range.h (octave_range::length): Ditto. |
|
2142 * ov-re-mat.h (octave_matrix::length): Ditto. |
|
2143 * ov-scalar.h (octave_scalar::length): Ditto. |
|
2144 |
|
2145 Tue Oct 27 22:19:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2146 |
|
2147 * ov-list.cc (octave_list::print_raw): Handle case of empty list. |
|
2148 (octave_list::print_name_tag): Likewise. |
|
2149 |
|
2150 * octave.cc (intern_argv): Built-in variable argv is now a list of |
|
2151 strings instead of a string vector. |
|
2152 Always bind argv, making it an empty list if there are no args. |
|
2153 |
|
2154 Mon Oct 26 08:41:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2155 |
|
2156 * xdiv.cc (mx_leftdiv_conform): Explicitly declare args to be |
|
2157 passed as references to const objects. Fix explicit instantiation |
|
2158 requests to match. |
|
2159 (mx_div_conform): Likewise. |
|
2160 |
|
2161 * pt-unop.h (tree_prefix_expression): Reorder constructor args to |
|
2162 put those with default values last. |
|
2163 (tree_postfix_expression): Likewise. |
|
2164 * parse.y: Change all callers. |
|
2165 |
3192
|
2166 Fri Oct 23 12:07:32 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2167 |
3196
|
2168 * utils.cc (Ffile_in_loadpath): New function. |
|
2169 |
|
2170 * defaults.cc (Vload_path, Vdefault_load_path): Now static. |
|
2171 |
|
2172 * help.cc (simple_help): Use Vload_path_dir_path here instead of |
|
2173 trying to reconstruct it from Vload_path. |
|
2174 * fn-cache.cc (octave_fcn_file_name_cache::do_list): Likewise. |
|
2175 (octave_fcn_file_name_cache::update): Likewise. |
|
2176 |
|
2177 * defaults.cc (octave_loadpath): Construct Vload_path_dir_path |
|
2178 using Vdefault_load_path. |
|
2179 (set_default_path): Likewise. |
|
2180 |
|
2181 * defaults.h, defaults.cc (maybe_add_default_load_path): Delete. |
|
2182 |
3192
|
2183 * defaults.cc (Vdefault_load_path): New static variable. |
|
2184 (set_default_path): Set it. |
|
2185 (maybe_add_default_load_path): Use it. |
|
2186 (symbols_of_defaults): Add DEFCONST for DEFAULT_LOADPATH. |
|
2187 Thanks to Rafael Laboissiere <rafael@icp.inpg.fr>. |
|
2188 |
|
2189 * defaults.cc (set_default_path): If OCTAVE_PATH is set in the |
|
2190 environment, call maybe_add_default_load_path on it. |
|
2191 |
|
2192 Tue Oct 20 20:58:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2193 |
|
2194 * defaults.cc (maybe_add_default_load_path): If LOADPATH contains |
|
2195 an embedded "::", insert the default path there too. |
|
2196 |
3189
|
2197 Fri Oct 16 00:52:15 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2198 |
|
2199 * parse.y (in_matrix_or_assign_lhs): New subroutine for lexical |
|
2200 feedback. |
|
2201 (matrix): Use it. |
|
2202 (assign_lhs): Ditto. |
|
2203 * lex.h (lexical_feedback::looking_at_matrix_or_assign_lhs): New |
|
2204 data member. |
|
2205 * lex.l (handle_identifier): Use it to handle keywords like `cd' |
|
2206 as variables in contexts like [ab, cd] = foo (). |
|
2207 |
|
2208 * ov-str-mat.h |
|
2209 (octave_char_matrix_str::octave_char_matrix_str (char c)): |
|
2210 New constructor. |
|
2211 * ov-ch-mat.h (octave_char_matrix::octave_char_matrix (char c)): |
|
2212 New constructor. |
|
2213 * ov.cc (octave_value::octave_value (char c): New constructor. |
|
2214 |
|
2215 * pt-loop.cc (tree_simple_for_command::eval): Handle case of RHS |
|
2216 as string. |
|
2217 |
|
2218 Thu Oct 15 00:56:47 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2219 |
|
2220 * DLD-FUNCTIONS/rand.cc: Declare Fortran subroutines as returning |
|
2221 int, not int*. |
|
2222 |
|
2223 Wed Oct 14 23:51:31 1998 Georg Thimm <thimm@idiap.ch> |
|
2224 |
|
2225 * load-save.cc (Vcrash_dumps_octave_core): New static variable. |
|
2226 (save_user_variables): Only save variables if |
|
2227 Vcrash_dumps_octave_core is true. |
|
2228 (symbols_of_load_save): Add DEFVAR for it here. |
|
2229 (crash_dumps_octave_core): New function. |
|
2230 * octave.cc (maximum_braindamage): Bind crash_dumps_octave_core to |
|
2231 0.0 here. |
|
2232 |
|
2233 Tue Oct 13 22:05:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2234 |
|
2235 * input.cc (read_readline_init_file): New function. |
|
2236 |
|
2237 Thu Oct 8 13:47:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2238 |
|
2239 * oct-procbuf.h (octave_procbuf::wstatus): New data member. |
|
2240 Initialize in constructors. |
|
2241 (octave_procbuf::wait_status): New member function. |
|
2242 * oct-procbuf.cc (octave_procbuf::sys_close): Use class data |
|
2243 member wstatus, not local variable. |
|
2244 * procstream.cc (procstreambase::close): Don't call sys_close directly. |
|
2245 Get subprocess exit status by calling wait_status for our procbuf. |
|
2246 * pt-plot.cc (close_plot_stream): Send "quit" command to gnuplot |
|
2247 before deleting plot_stream. |
|
2248 |
|
2249 |
|
2250 Thu Oct 1 22:39:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2251 |
|
2252 * data.cc (Fis_complex): New function. |
|
2253 |
3185
|
2254 Fri Sep 25 11:50:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2255 |
|
2256 * load-save.cc (write_header): Rename from write_binary_header. |
|
2257 Also write header for Octave ASCII files. |
|
2258 |
|
2259 * load-save.cc (Fsave): Implement -append option. |
|
2260 |
|
2261 * defaults.cc (Frehash): New function. |
|
2262 |
|
2263 Fri Sep 25 11:50:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2264 |
|
2265 * help.cc (help_from_info): Improve error message in case that |
|
2266 info doesn't work. |
|
2267 |
3180
|
2268 Thu Sep 24 10:48:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2269 |
3185
|
2270 * Makefile.in (DLD_XSRC): Replace qzval.cc with qz.cc |
|
2271 |
|
2272 * DLD-FUNCTIONS/balance.cc: Update from A. S. Hodel |
|
2273 <scotte@eng.auburn.edu>. |
|
2274 |
|
2275 * DLD-FUNCTIONS/qz.cc: New file. |
|
2276 |
|
2277 * DLD-FUNCTIONS/qzval.cc: Delete. |
|
2278 |
3180
|
2279 * parse.y (plot_command1): Don't allow it to be empty. |
|
2280 (plot_command): Handle simple `PLOT' and `PLOT ranges' as special |
|
2281 cases here. |
|
2282 |
|
2283 Wed Sep 23 21:10:08 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2284 |
|
2285 * lex.l: Change <MATRIX>{SNLCMT}*\n{SNLCMT}* pattern |
|
2286 to <MATRIX>{S}*{COMMENT}{SNLCMT}* | <MATRIX>{S}*{NL}{SNLCMT}*. |
|
2287 |
|
2288 Fri Sep 4 10:50:00 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2289 |
|
2290 * file-io.cc (Ffwrite): Fix doc string. |
|
2291 |
|
2292 Wed Sep 2 16:22:23 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2293 |
|
2294 * input.cc (match_sans_spaces): Make it work. |
|
2295 |
|
2296 * toplev.cc (quit): Require nargout == 0. |
|
2297 |
|
2298 * input.cc (get_user_input): Only try matching "exit", "quit", and |
|
2299 "return" if debugging. |
|
2300 |
|
2301 Tue Sep 1 12:50:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2302 |
|
2303 * octave.cc: Use -H as single character equivalent of --no-history. |
|
2304 |
|
2305 Sat Aug 29 12:23:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2306 |
|
2307 * oct-obj.cc (octave_value_list::make_argv): If some values are |
|
2308 string vectors, insert all the elements, not just the first. |
|
2309 |
|
2310 Tue Aug 18 16:39:50 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2311 |
|
2312 * oct-stream.cc (octave_base_stream::do_gets): Accept last line of |
|
2313 file even if it doesn't end in a newline character. |
|
2314 |
|
2315 Tue Aug 18 16:25:49 1998 Mumit Khan <khan@xraylith.wisc.edu> |
|
2316 |
|
2317 * xdiv.cc (mx_leftdiv_conform, mx_div_conform): Instantiate correct |
|
2318 templates. |
|
2319 |
|
2320 Thu Jul 30 00:37:43 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2321 |
|
2322 * pt-loop.cc (tree_for_command::eval): Check for range first. |
|
2323 If error occurs when extracting matrix value, return early. |
|
2324 Don't bother to check for string type. |
|
2325 |
|
2326 * ov-ch-mat.h (octave_char_matrix::is_real_matrix): New function. |
|
2327 |
|
2328 Tue Jun 23 15:09:54 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2329 |
|
2330 * parse.y (clear_current_script_file_name): New function. |
|
2331 (parse_fcn_file): Bind current_script_file_name while script is |
|
2332 executing. Use unwind_protect to clear it once the script is |
|
2333 finished. |
|
2334 |
|
2335 * pt-plot.cc (Fgraw): New function. |
|
2336 |
3178
|
2337 Mon Jun 22 22:13:38 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2338 |
|
2339 * variables.cc (is_valid_function): Provide version that takes |
|
2340 function name as string. |
|
2341 |
|
2342 * parse.y (binary_expr): Fix thinko that resulted in incorrect |
|
2343 evaluation of -x^y. Thanks to Richard Allan Holcombe |
|
2344 <raholcom@unity.ncsu.edu>. |
|
2345 (feval): Don't attempt to copy nonexistent arg names. |
|
2346 |
|
2347 Mon Jun 22 21:35:50 1998 Richard Allan Holcombe <raholcom@unity.ncsu.edu> |
|
2348 |
|
2349 * xpow.cc (xpow): Improve efficiency for matrix^(scalar int) case. |
|
2350 |
|
2351 Thu Jun 4 12:42:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2352 |
|
2353 * ov-usr-fcn.cc (octave_user_function::octave_all_va_args): |
|
2354 If num_args_passed < num_named_args, create zero length list. |
|
2355 |
3176
|
2356 Thu May 14 16:23:15 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2357 |
|
2358 * DLD-FUNCTIONS/getrusage.cc: Include sys/types.h too. |
|
2359 |
|
2360 Mon May 11 00:38:45 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2361 |
|
2362 * pager.cc (Fdiary): Don't forget to set write_to_diary file if |
|
2363 just given a file name. |
|
2364 |
|
2365 * input.cc (octave_gets): Only send new line character to |
|
2366 octave_diary if current_input_line is empty or doesn't already end |
|
2367 with a new line character.. |
|
2368 Don't send input from function files or scripts to octave_diary. |
|
2369 |
3174
|
2370 Sun May 3 19:54:38 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2371 |
|
2372 * lex.l (reset_parser): Also call yyrestart if forced_interactive |
|
2373 is true, but not if input_from_startup_file is true. |
|
2374 |
|
2375 Tue Apr 28 14:06:20 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2376 |
|
2377 * oct-procbuf.cc (Vkluge_procbuf_delay): New static variable. |
|
2378 (kluge_procbuf_delay): New function. |
|
2379 (symbols_of_oct_procbuf): New function. |
|
2380 (octave_procbuf::open): Delay Vkluge_procbuf_delay microseconds |
|
2381 after forking. |
|
2382 |
|
2383 Thu Apr 23 15:41:08 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2384 |
|
2385 * defaults.cc (Vload_path_dir_path): New variable. |
|
2386 * utils.cc (file_in_path): Use it. |
|
2387 |
|
2388 * utils.cc (search_path_for_file): Undo previous change. |
|
2389 (file_in_path): Undo previous change. |
|
2390 * defaults.cc (loadpath): Undo previous change. Tilde expansion |
|
2391 is once again handled correctly by the code in |
|
2392 liboctave/pathsearch.cc. |
|
2393 |
|
2394 Mon Apr 20 21:50:34 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2395 |
|
2396 * data.cc (get_dimensions): Allow zeros ([], 3) to work, for |
|
2397 compatibility with Matlab. |
|
2398 |
|
2399 * dynamic-ld.cc [WITH_DL && ! HAVE_DLFCN_H]: Add declarations for |
|
2400 dlopen, dlerror, dlsym, and dlclose. |
|
2401 |
|
2402 * octave.gperf: Handle __FILE__ and __LINE__. |
|
2403 * lex.l (is_keyword): Likewise. |
|
2404 * Makefile.in (oct-gperf.h): Pass -D option to gperf. |
|
2405 Postprocess output of gperf to convert name of static variable |
|
2406 from lookup to gperf_lookup, to avoid conflict with our function |
|
2407 of the same name defined in variables.cc. |
|
2408 |
3168
|
2409 Sat Apr 18 20:17:10 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2410 |
|
2411 * help.cc (USE_GNU_INFO): Delete uses of this macro. |
|
2412 |
3167
|
2413 Thu Apr 16 01:00:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2414 |
|
2415 * dynamic-ld.cc: Only include dlfcn.h if HAVE_DLFCN_H. |
|
2416 |
3165
|
2417 Wed Apr 15 01:03:05 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2418 |
|
2419 * input.cc (Vlast_prompt_time): New global variable. |
|
2420 (octave_gets): Set it. |
3166
|
2421 * ov-fcn.h (octave_function::time_checked): New virtual function |
|
2422 (octave_function::mark_fcn_file_up_to_date): Ditto. |
3165
|
2423 * ov-usr-fcn.h (octave_user_function::time_checked): New function. |
|
2424 (octave_user_function::mark_fcn_file_up_to_date): Ditto. |
|
2425 (octave_user_function::t_checked): New data member. |
|
2426 * variables.cc (symbol_out_of_date): Only check file time stamp if |
|
2427 a prompt has been printed since the last time check. |
|
2428 |
|
2429 * pt-plot.h, pt-plot.cc (subplot_axes): New class. |
|
2430 (subplot): Handle axes. |
|
2431 (Vgnuplot_command_axes): New static variable. |
|
2432 (gnuplot_command_axes): New function. |
|
2433 (symbols_of_pt_plot): DEFVAR gnuplot_command_axes. |
|
2434 * pt-walk.h (tree_walker::visit_subplot_axes): New virtual function. |
|
2435 * parse.y (plot_options): Handle axes. |
|
2436 * lex.l (plot_axes_token): New function. |
|
2437 (is_keyword): Use it. |
|
2438 (is_plot_keyword): Recognize "axes" and "axis". |
|
2439 * lex.h (class lexical_feedback): New field, in_plot_axes. |
|
2440 (lexical_feedback::init): Reset it. |
|
2441 |
|
2442 Tue Apr 14 23:32:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2443 |
|
2444 * parse.y (parse_fcn_file): New arg, force_script. Change callers. |
|
2445 |
3164
|
2446 Fri Apr 10 11:01:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2447 |
|
2448 * help.cc (type): Also print values of variables. |
|
2449 |
3162
|
2450 Wed Apr 8 01:00:58 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2451 |
3164
|
2452 * pr-output.cc (set_format): Set scale to 1.0 if all elements are |
|
2453 int or inf or nan. |
|
2454 |
3162
|
2455 * parse.y (Vwarn_future_time_stamp): New variable. |
|
2456 (symbols_of_parse): Add DEFVAR for it. |
|
2457 (warn_future_time_stamp): New function. |
|
2458 (frob_function_def): Maybe warn about files with future time stamps. |
|
2459 |
|
2460 Thu Apr 2 20:43:45 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2461 |
|
2462 * pt-arg-list.cc (tree_argument_list::convert_to_const_vector): In |
|
2463 error messages, print element numbers starting with 1, not 0. |
|
2464 |
|
2465 Sat Mar 28 15:25:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2466 |
|
2467 * toplev.cc (clean_up_for_exit): New function. |
|
2468 (clean_up_and_exit): Use it. |
|
2469 * sighandlers.cc (my_friendly_exit): Call it instead of |
|
2470 clean_up_and_exit, then do default action for signal. |
|
2471 |
|
2472 * sighandlers.cc (octave_new_handler): Call my_friendly_exit with |
|
2473 signal set to SIGABRT if it is defined, or -1 otherwise. |
|
2474 |
|
2475 * error.cc (verror): Fix thinko in attempt to skip `error: ' tag |
|
2476 when buffering error messages. |
|
2477 * pt-except.cc (tree_try_catch::eval): Reset buffer_error_messages |
|
2478 here if just discarding unwind_protect frame. |
|
2479 |
|
2480 Wed Mar 18 12:35:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2481 |
|
2482 * xpow.cc (elem_xpow): For real-scalar .^ matrix case, result is |
|
2483 complex only if real-scalar is negative and matrix has some |
|
2484 non-integer values. |
|
2485 |
|
2486 Tue Mar 17 17:47:50 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2487 |
|
2488 * pt-plot.cc (Vgnuplot_command_plot, Vgnuplot_command_replot, |
|
2489 Vgnuplot_command_splot, Vgnuplot_command_using, |
|
2490 Vgnuplot_command_with, Vgnuplot_command_title, |
|
2491 Vgnuplot_command_end): New static variables. |
|
2492 (symbols_of_pt_plot): DEFVAR them. |
|
2493 (gnuplot_command_plot, gnuplot_command_replot, |
|
2494 gnuplot_command_splot, gnuplot_command_using, |
|
2495 gnuplot_command_with, gnuplot_command_title, |
|
2496 gnuplot_command_end): New functions. |
|
2497 (open_plot_stream, send_to_plot_stream, tree_plot_command::eval, |
|
2498 subplot_using::print, subplot_style::print, subplot::print, |
|
2499 do_external_plotter_cd, Fgset, Fgshow): Use them instead of the |
|
2500 GPLOT_CMD_PLOT, GPLOT_CMD_REPLOT, GPLOT_CMD_SPLOT, |
|
2501 GPLOT_CMD_USING, GPLOT_CMD_WITH, GPLOT_CMD_TITLE, and |
|
2502 GPLOT_CMD_END macros. |
|
2503 |
3160
|
2504 Fri Feb 27 12:25:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2505 |
|
2506 * help.cc (additional_help_message): Fix www address. |
|
2507 |
|
2508 Tue Feb 24 00:42:59 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2509 |
|
2510 * help.cc (simple_help): Put additional help message first. |
|
2511 (additional_help_message): Add information about web site and |
|
2512 mailing list. |
|
2513 |
3156
|
2514 Fri Feb 20 00:41:06 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2515 |
|
2516 * pt-plot.cc (GPLOT_CMD_REPLOT): Clear before replot. |
|
2517 |
|
2518 * Makefile.in: Better handling of lib flags for linking. |
|
2519 |
|
2520 Thu Feb 19 21:14:30 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2521 |
|
2522 * pt-decl.cc (Vinitialize_global_values): New static variable. |
|
2523 (initialize_global_variables): New function. |
|
2524 (symbols_of_pt_decl): New function. |
|
2525 DEFVAR Vinitialize_global_values and initialize_global_variables. |
|
2526 (tree_global_command::do_init): If initialize_global_variables is |
|
2527 not true and the variable doesn't have an explicit initializer, don't |
|
2528 initialize it. If we are giving it a default value, use the value |
|
2529 of the variable defualt_global_variable_value. |
|
2530 * octave.cc (maximum_braindamage): Set default_global_variable_value |
|
2531 and initialize_global_variables to Matlab-compatible values. |
|
2532 |
|
2533 Wed Feb 18 04:35:31 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2534 |
|
2535 * DLD-FUNCTIONS/besselj.cc: Rename from bessel.cc. |
|
2536 * Makefile.in (DLD_XSRC): Likewise. |
|
2537 |
|
2538 * syscalls.cc (Fvfork): Delete. |
|
2539 |
|
2540 * oct-procbuf.cc: Just use fork. |
|
2541 |
|
2542 * parse.y (feval): Provide version that takes function name |
|
2543 separate from other args. |
|
2544 * parse.h: Declare it. |
|
2545 |
|
2546 * oct-procbuf.cc (octave_procbuf::open): Move declaration of |
|
2547 child_std_end outside of child scope and declare volatile. |
|
2548 |
|
2549 Mon Feb 16 15:04:28 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2550 |
|
2551 * parse.y: Include cstdio, for SEEK_SET. |
|
2552 |
3153
|
2553 Thu Feb 12 22:07:00 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2554 |
|
2555 * system.c: New file. |
|
2556 * Makefile.in (SOURCES): Add it to the list. |
|
2557 |
3148
|
2558 Fri Feb 6 01:23:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2559 |
|
2560 * oct-stream.cc (octave_base_stream::file_number): Rename from fileno. |
|
2561 Change all uses. |
|
2562 |
|
2563 * fsolve.cc (fsolve_option_table): Add missing & to function names. |
|
2564 |
3145
|
2565 Thu Feb 5 02:27:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2566 |
3147
|
2567 * dirfns.cc (Fls): If first attempt at reading process output |
|
2568 fails, sleep once and try again. |
|
2569 * toplev.cc (run_command_and_return_output): Likewise. |
|
2570 |
|
2571 * oct-procbuf.cc (octave_procbuf::open): Use vfork if it is available. |
|
2572 |
|
2573 * syscalls.cc (Fvfork): New function. |
|
2574 |
3145
|
2575 * ov-bool-mat.cc: Only declare assign function if |
|
2576 CXX_NEW_FRIEND_TEMPLATE_DECL is not defined. |
|
2577 |
|
2578 * ov-base.h, ov-bool-mat.h, ov-bool.h, ov-ch-mat.h, ov-complex.h, |
|
2579 ov-cx-mat.h, ov-range.h, ov-re-mat.h, ov-scalar.h: Handle default |
|
2580 args for *_value functions consistently. |
|
2581 |
|
2582 * symtab.cc (maybe_list_cmp_fcn): Declare args as void*, not |
|
2583 void**, then use X_CAST. |
|
2584 |
|
2585 * OPERATORS/op-s-cm.cc: Include mx-cm-s.h. |
|
2586 |
|
2587 * defun-int.h: Include ov-builtin.h, ov-mapper.h, and symtab.h. |
|
2588 (install_builtin_mapper, install_builtin_function, |
|
2589 install_builtin_variable) Use specific types rather than void * in |
|
2590 declaration. |
|
2591 * defun.cc (install_builtin_mapper, install_builtin_function, |
|
2592 install_builtin_variable): Likewise. Eliminate casts. |
|
2593 |
|
2594 * load-save.cc (read_binary_data, read_mat_file_header, |
|
2595 save_binary_data): Use X_CAST, not static_cast. |
|
2596 * unwind-prot.h (unwind_protect::save_ptr): Likewise. |
|
2597 * Map.cc (goodCHptr, index_to_CHptr, CHptr_to_index): Likewise. |
|
2598 * dynamic-ld.cc (octave_dlopen_dynamic_loder::resolve_reference): |
|
2599 Likewise. |
|
2600 |
|
2601 * pt-mat.cc (tm_const::operator bool ()): |
|
2602 (tm_row_const::operator bool ()): Likewise. |
|
2603 * oct-stream.cc (printf_value_cache::operator bool ()): Likewise. |
|
2604 (scanf_format_list::operator bool ()): Likewise. |
|
2605 (printf_format_list::operator bool ()): Likewise. |
|
2606 (octave_stream::operator bool ()): Likewise. |
|
2607 |
|
2608 Wed Feb 4 13:08:29 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2609 |
|
2610 * DLD-FUNCTIONS/minmax.cc: Include cmath, not oct-math.h. |
|
2611 |
|
2612 * syscalls.cc (Fdup2): Convert stream to actual system file id. |
|
2613 |
|
2614 * oct-stream.cc (octave_base_stream::fileno, octave_stream::fileno): |
|
2615 New functions. |
|
2616 |
3141
|
2617 Tue Feb 3 00:24:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2618 |
|
2619 * defaults.cc (exec_path): Append Vbin_dir to std_path. |
|
2620 |
|
2621 * octave.cc (initialize_pathsearch): Set TEXMFDBS, not TEXMF. |
|
2622 Look for OCTAVE_DB_PATH in environment. |
|
2623 Simplify using Vdata_dir and Vlibexec_dir. |
|
2624 |
|
2625 * defaults.h.in (Vdata_dir, Vlibexecdir): Declare new vars. |
|
2626 defaults.cc: Define them. |
|
2627 (set_default_data_dir, set_default_libexecdir): New functions. |
|
2628 (install_defaults): Call them. |
|
2629 |
|
2630 * defaults.h.in (OCTAVE_LIBEXECDIR): Define. |
|
2631 |
|
2632 Mon Feb 2 02:43:16 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2633 |
|
2634 * Makefile.in (install, uninstall): Use $(octlibdir), not $(libdir). |
|
2635 Use mk-libdir-link. |
|
2636 |
|
2637 * defaults.h.in (OCTAVE_OCTLIBDIR): Substitute value. |
|
2638 (Vlib_dir): Delete declaration. |
|
2639 * defaults.cc (Vlib_dir): Delete. |
|
2640 (set_default_lib_dir): Delete. |
|
2641 (install_defaults): Don't call set_default_lib_dir. |
|
2642 (set_default_info_prog): If oct_info_prog is empty, set default to |
|
2643 "info" -- we expect it to be somewhere in the user's path. |
|
2644 |
|
2645 * defun.h (DEFCONST, DEFCONSTX): Eliminate inst_as_fcn and chg_fcn |
|
2646 args. Always pass true for inst_as_fcn and 0 for chg_fcn to |
|
2647 DEFVAR when creating built-in values like `e' or `stderr' that can |
|
2648 be redefined. Change all uses. |
|
2649 |
|
2650 * help.cc (Ftype): Handle script files too. |
|
2651 (Fwhich): Likewise. |
|
2652 |
3136
|
2653 Sat Jan 31 00:00:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2654 |
|
2655 * ov-ch-mat.cc (octave_char_matrix::is_true): Make it work. |
|
2656 * ov-str-mat.h, ov-str-mat.cc (octave_char_matrix_str::is_true): |
|
2657 Delete. |
|
2658 |
|
2659 * load-save.cc (read_ascii_data): Allow strings of length 0. |
|
2660 If we don't find data on the first call, fail with error message. |
|
2661 (do_load): Pass count of items read to read_ascii_data. |
|
2662 Allow `load foo xyz' to work when foo contains only numbers. |
|
2663 |
|
2664 Fri Jan 30 23:46:42 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2665 |
|
2666 * ov-str-mat.h (octave_char_matrix_str::all): Delete. |
|
2667 (octave_char_matrix_str::any): Delete. |
|
2668 * ov-ch-mat.h (octave_char_matrix::all, octave_char_matrix::any): |
|
2669 Call charMatrix::all, charMatrix::any. |
|
2670 |
|
2671 Thu Jan 29 16:25:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2672 |
|
2673 * load-save.cc (read_mat_binary_data): Handle third digit of MOPT |
|
2674 as flag indicating row or column major ordering. |
|
2675 |
3131
|
2676 Wed Jan 28 00:18:17 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2677 |
|
2678 * DLD-FUNCTIONS/dassl.cc (lsode_option_table): |
|
2679 Add missing & to function names. |
|
2680 * DLD-FUNCTIONS/lsode.cc (lsode_option_table): Likewise. |
|
2681 * DLD-FUNCTIONS/quad.cc (quad_option_table): Likewise. |
|
2682 |
|
2683 * Makefile.in (oct-gperf.h): Add -G option to gperf. |
|
2684 |
|
2685 * load-save.cc (get_save_type): Add `UL' and `L' suffixes to large |
|
2686 constant values. For LS_INT, use <= and >= for comparison. |
|
2687 |
|
2688 Mon Jan 26 13:17:59 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2689 |
|
2690 * ov-usr-fcn.cc (Vmax_recursion_depth): New static variable. |
|
2691 (max_recursion_depth): New fucnction |
|
2692 (symbols_of_ov_usr_fcn): DEFVAR max_recursion_depth. |
|
2693 (octave_user_function::do_index_op): Check Vmax_recursion_depth. |
|
2694 |
3130
|
2695 Thu Jan 22 13:45:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2696 |
|
2697 * dynamic-ld.cc (make_dynamic_loader): Fix typo. |
|
2698 |
|
2699 Tue Jan 20 17:02:19 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2700 |
|
2701 * variables.cc (Fexist): If local symbol is undefined, check |
|
2702 global table. |
|
2703 |
|
2704 * pr-output.cc (pr_max_internal): Initial value for result is |
|
2705 -DBL_MAX, not DBL_MIN. |
|
2706 |
3125
|
2707 Thu Jan 8 11:54:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2708 |
|
2709 * xpow.cc (elem_xpow): If second arg of pow is complex, make sure |
|
2710 first arg is also complex. |
|
2711 |
|
2712 * symtab.cc (symbol_table::rename): Properly insert new item at |
|
2713 the front of the list to avoid losing the rest of the items. |
|
2714 |
|
2715 Thu Dec 11 23:30:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2716 |
|
2717 * variables.cc (Fclear): Increment index to skip -x arg. |
|
2718 |
3124
|
2719 Tue Dec 9 02:45:35 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2720 |
|
2721 * Makefile.in (INCLUDES): Don't forget Pix.h. |
|
2722 |
|
2723 * BaseSLList.cc: Don't include nonstandard libg++ header files. |
|
2724 |
3119
|
2725 Sun Nov 30 14:58:56 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2726 |
3124
|
2727 * pr-output.cc: Include cmath, not oct-math. |
|
2728 * sysdep.cc: Likewise. |
|
2729 |
3119
|
2730 * DLD-FUNCTIONS/bessel.cc: New file. |
|
2731 * Makefile.in (DLD_XSRC): Add it to the list. |
|
2732 |
3113
|
2733 Thu Nov 27 23:28:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2734 |
|
2735 * lex.l (handle_string): Constructor for string class takes |
|
2736 (size_t, char) args, not (char, size_t). |
|
2737 |
3111
|
2738 Wed Nov 26 00:39:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2739 |
|
2740 * Makefile.in (OCTAVE_LIBS): Include $(SPECIAL_MATH_LIB) just |
|
2741 ahead of -lcruft. |
|
2742 |
3110
|
2743 Thu Nov 20 15:16:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2744 |
|
2745 * octave.cc (maximum_braindamage): Bind implicit_num_to_str_ok to 1. |
|
2746 * pt-mat.cc (Vimplicit_num_to_str_ok): New static variable. |
|
2747 (implicit_num_to_str_ok): New function. |
|
2748 (symbols_of_pt_mat): DEFVAR implicit_num_to_str_ok. |
|
2749 (tm_row_const::some_str): New data member. |
|
2750 (tm_row_const::some_strings_p): New function. |
|
2751 (tm_row_const::init): Set some_str. |
|
2752 (tm_const::some_str): New data member. |
|
2753 (tm_const::some_strings_p): New function. |
|
2754 (tm_const::init): Set some_str. |
|
2755 (tree_matrix::eval): If Vimplicit_num_to_str_ok is true and some |
|
2756 of the elements are strings, force a string conversion before |
|
2757 returning. |
|
2758 |
|
2759 * parse.y (fold, finish_colon_expression, finish_matrix): |
|
2760 If an error occurs, return the original expression. |
|
2761 Use unwind_protect to restore error_state. |
|
2762 |
|
2763 * ov-ch-mat.h (octave_char_matrix::convert_to_str): Result is |
|
2764 char_matrix_str, not just char_matrix. |
|
2765 |
3107
|
2766 Wed Nov 19 02:05:40 1997 Mumit Khan <khan@dhaka.xraylith.wisc.edu> |
|
2767 |
|
2768 * DLD-FUNCTIONS/filter.cc: Don't include extern template decls if |
3109
|
2769 CXX_NEW_FRIEND_TEMPLATE_DECL is defined. |
3107
|
2770 * ov-cx-mat.cc: Likewise. |
|
2771 * ov-re-mat.cc: Likewise. |
|
2772 * ov-str-mat.cc: Likewise. |
|
2773 |
|
2774 * ov-cx-mat.h (octave_complex_matrix::decrement, |
|
2775 octave_complex_matrix): Use explicit Complex constructor. |
|
2776 |
|
2777 Wed Nov 19 00:08:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2778 |
|
2779 * pt-decl.cc (tree_global_command::do_init): Initialize global |
|
2780 values to `[]'. Only perform explicit initialization once. |
|
2781 |
3103
|
2782 Tue Nov 18 04:27:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2783 |
3105
|
2784 * pr-output.cc (Vfixed_point_format): New variable. |
|
2785 (fixed_point_format): New fucntion. |
|
2786 (symbols_of_pr_output): Add DEFVAR for fixed_point_format. |
|
2787 (set_real_matrix_format): Handle fixed point format |
|
2788 (set_complex_matrix_format): Handle fixed point format |
|
2789 (set_format): New arg, scale in Matrix, ComplexMatrix, Range versions. |
|
2790 (pr_scale_header): New function. |
|
2791 (octave_print_internal): Handle fixed point format in Matrix, |
|
2792 ComplexMatrix, and Range versions. |
|
2793 * octave.cc (maximum_braindamage): Set fixed_point_format to 1.0. |
|
2794 |
3103
|
2795 * utils.cc (do_string_escapes): Move here, from lex.l. |
|
2796 Arg is now const string& instead of char*. |
|
2797 Return new string object instead of modifying arg in place. |
|
2798 (Fdo_string_escapes): New function. |
|
2799 * lex.l (handle_string): Use new version of do_string_escapes. |
3105
|
2800 |
|
2801 * lex.l (Vbackslash_escapes): Delete. |
|
2802 (backslash_escapes): Delete. |
|
2803 (do_string_escapes): Undo previous change. |
|
2804 (eat_whitespace, eat_continuation): Undo previous change. |
|
2805 (handle_string): Undo previous change. |
|
2806 (symbols_of_lex): Undo previous change. |
|
2807 * octave.cc (maximum_braindamage): Undo previous change. |
3103
|
2808 |
3096
|
2809 Fri Nov 14 01:53:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2810 |
3100
|
2811 * parse.y (eval_string (const string&, bool, int&, int)): No |
|
2812 longer static. |
|
2813 * parse.h: Provide declaration. |
|
2814 * input.cc (get_user_input (const octave_value_list&, bool, int)): |
|
2815 New arg, nargout. Pass it to eval_string. |
|
2816 (keyboard): Pass nargout = 0 to get_user_input. |
|
2817 (input): Pass nargout to get_user_input. |
|
2818 |
3098
|
2819 * input.cc (get_user_input (const octave_value_list&, bool)): |
3100
|
2820 Return octave_value_list() if user enters `quit', `exit', or `return'. |
3098
|
2821 If debugging, let eval_string handle the printing chores and |
|
2822 reset error_state before asking for more input. |
|
2823 |
|
2824 * input.cc (Fkeyboard): Unconditionally turn on history here. |
|
2825 |
3096
|
2826 * lex.l (have_continuation, have_ellipsis_continuation): Declare |
|
2827 arg as bool, not int. Change callers. |
|
2828 |
|
2829 * lex.l (Vbackslash_escapes): New static variable. |
|
2830 (backslash_escapes): New function. |
|
2831 (do_string_escapes): Return immediately if ! Vbackslash_escapes. |
|
2832 (eat_whitespace, eat_continuation): Only call have_continuation if |
|
2833 Vbackslash_escapes. |
|
2834 (handle_string): Backslash is only special if Vbackslash_escapes. |
|
2835 (symbols_of_lex): Add DEFVAR for backslash_escapes. |
|
2836 * octave.cc (maximum_braindamage): Set backslash_escapes to 0. |
|
2837 |
3095
|
2838 Thu Nov 13 16:20:40 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2839 |
3096
|
2840 * variables.cc (Fexist): Also return 2 if NAME is a regular file |
|
2841 somewhere in the LOADPATH. |
|
2842 |
3095
|
2843 * data.cc (sumsq): Fix doc string. |
|
2844 |
|
2845 * parse.y (Fsource): Call parse_fcn_file, not parse_and_execute. |
|
2846 |
3092
|
2847 Tue Oct 7 16:51:01 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2848 |
|
2849 * defun-int.h (DEFINE_FUN_INSTALLER_FUN): Set installed to true |
|
2850 after installing the function. |
|
2851 |
3088
|
2852 Thu Sep 25 10:17:26 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2853 |
|
2854 * DLD-FUNCTIONS/filter.cc (Ffilter): Return second output value |
|
2855 even when called with only 3 arguments. |
|
2856 |
3086
|
2857 Mon Sep 22 16:44:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2858 |
|
2859 * DLD-FUNCTIONS/rand.cc (do_rand): Print error if first of two |
|
2860 args is a string but doesn't match "seed". |
3088
|
2861 (Frand, Frandn): Fix doc string. |
3086
|
2862 |
3081
|
2863 Mon Aug 25 10:42:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2864 |
|
2865 * input.cc (get_user_input): Return an empty string if the user |
|
2866 just types RET. |
|
2867 |
3079
|
2868 Thu Jul 31 22:59:04 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2869 |
|
2870 * lex.l <TEXT_FCN>: Ensure that we handle words that begin with |
|
2871 single or double quotes as strings. |
|
2872 |
3074
|
2873 Thu Jul 17 13:06:48 1997 Klaus Gebhardt <gebhardt@crunch.ikp.physik.th-darmstadt.de> |
|
2874 |
|
2875 * DLD-FUNCTIONS/rand.cc (Frand): Use F77_XFCN to call getsd, |
|
2876 setsd, setall, setcgn, dgenunf, and dgennor since they can call |
|
2877 XSTOPX. |
|
2878 |
3072
|
2879 Mon Jul 14 12:54:23 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2880 |
|
2881 * dynamic-ld.cc (octave_dynamic_loader::load_fcn_from_dot_oct_file): |
|
2882 If first attempt to load function fails, prepend and underscore |
|
2883 and try again. |
|
2884 |
|
2885 * Makefile.in (install-inc): If defaults.h, oct-conf.h, or |
|
2886 oct-gperf.h don't exist in the current directory, look in $(srcdir). |
|
2887 |
3068
|
2888 Mon Jul 7 21:14:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2889 |
|
2890 * DLD-FUNCTIONS/qr.cc (Fqr): Correctly handle nargout == 0. |
|
2891 |
3067
|
2892 Wed Jul 2 16:47:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2893 |
|
2894 * matherr.c: New file. Move matherr function here. |
|
2895 * sysdep.cc: From here. |
|
2896 * Makefile.in (DIST_SRC): Add matherr.c to the list. |
|
2897 |
|
2898 * error.cc (handle_message): Avoid bug in g++ snapshot. |
|
2899 |
3065
|
2900 Thu Jun 26 22:04:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2901 |
|
2902 * utils.cc (file_in_path): Add default load path to PATH arg if |
|
2903 it begins or ends with a colon. |
|
2904 |
3060
|
2905 Wed Jun 25 13:31:06 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2906 |
|
2907 * oct-lvalue.h (octave_lvalue::struct_elt_ref): Ensure val is unique. |
|
2908 |
|
2909 Fri Jun 20 12:33:35 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2910 |
|
2911 * toplev.cc (cmd_death_handler): New function. |
|
2912 (run_command_and_return_output): Insert pid of command in |
|
2913 octave_child_list along with pointer to cmd_death_handler so we |
|
2914 can get the exit status without having to block SIGCHLD. |
|
2915 (cleanup_iprocstream): Remove pid of command from octave_child_list. |
|
2916 |
3053
|
2917 Sun Jun 15 16:11:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2918 |
3054
|
2919 * OPERATORS/op-cs-s.cc (ldiv): Doh, v1 is complex, v2 is real. |
|
2920 |
3053
|
2921 * Makefile.in (DISTFILES): Add mkops to the list. |
|
2922 (dist): Correctly link files in DLD-FUNCTIONS, OPERATORS, and |
|
2923 TEMPLATE-INST subdirectories. |
|
2924 |
3040
|
2925 Fri Jun 6 04:30:57 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2926 |
3042
|
2927 * DLD-FUNCTIONS/npsol.cc, DLD-FUNCTIONS/qpsol.cc, |
|
2928 DLD-FUNCTIONS/fsqp.cc: Delete. |
|
2929 * Makefile.in (DLD_XSRC): Remove them from the list. |
|
2930 |
3040
|
2931 * utils.cc (search_path_for_file): New arg, do_tilde_expansion. |
|
2932 If TRUE, perform tilde expansion on path before searching. |
|
2933 (file_in_path): Call search_path_for_file with do_tilde_expansion |
|
2934 set to false, since we've already performed tilde expansion on the |
|
2935 load path. |
|
2936 |
|
2937 * defaults.cc (loadpath): Perform tilde expansion here. |
|
2938 |
3029
|
2939 Thu Jun 5 01:42:39 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2940 |
3034
|
2941 * Makefile.in: Make building of static library optional. |
3036
|
2942 (liboctave.$(SHLEXT_VER)): Add $(SONAME_FLAGS) to command. |
3034
|
2943 |
3033
|
2944 * dynamic-ld.cc (octave_shl_load_dynamic_loader::resolve_reference): |
|
2945 Call shl_findsym with type set to TYPE_UNDEFINED. |
|
2946 |
3029
|
2947 * Makefile.in (stamp-picdir): Delete. |
|
2948 (pic): New target. Don't worry so much about creating pic |
|
2949 directory only when it is really needed. |
|
2950 (stamp-interp): Delete. |
|
2951 (libraries): New target. Depend on shared library directly. |
|
2952 |
3024
|
2953 Wed Jun 4 00:09:42 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2954 |
|
2955 * octave.cc (main): Call dir_path::set_program_name here. |
|
2956 |
3021
|
2957 Tue Jun 3 16:47:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2958 |
3022
|
2959 * variables.cc (symbol_out_of_date): Make it work again. |
|
2960 |
3021
|
2961 * parse.y (parse_and_execute): Move here from toplev.cc |
|
2962 (default_eval_print_flag): Likewise. |
|
2963 (safe_fclose): Likewise. |
|
2964 (eval_string): Likewise. |
|
2965 (Fsource): Likewise. |
|
2966 (Ffeval): Likewise. |
|
2967 (feval): Likewise. |
|
2968 (Feval): Likewise. |
|
2969 (symbols_of_parse): Define default_eval_print_flag here instead of |
|
2970 in varaibles.cc. |
|
2971 (looks_like_octave_copyright): Move here from variables.cc |
|
2972 (gobble_leading_whitespace): Likeiwse. |
|
2973 (is_function_file): Likewise. |
|
2974 (restore_input_stream): Likewise. |
|
2975 (parse_fcn_file): Likewise. |
|
2976 (load_fcn_from_file): Likewise. |
|
2977 (get_help_from_file): Likewise. |
|
2978 |
|
2979 * toplev.cc (syms_of_toplev): Define argv, program_name, and |
|
2980 program_invocation_name here instead of in variables.cc. |
|
2981 |
|
2982 * parse.h (line_editing): Move here from toplev.h. Now bool, not int. |
|
2983 (reading_startup_message_printed) Likewise. |
|
2984 (input_from_startup_file): Likewise. |
|
2985 (input_from_command_line_file): Likewise. |
|
2986 |
|
2987 * load-save.cc: Use bool instead of int where appropriate. |
|
2988 |
|
2989 * input.h (enum echo_state): Move here from variables.h. |
|
2990 (Vecho_executing_commands): Likewise. Now bool, not int. |
|
2991 * input.cc (echo_executing_commands): Move here from variables.cc. |
|
2992 (symbols_of_input): Define echo_executing_commands here instead of |
|
2993 in variables.cc. |
|
2994 |
|
2995 * octave.cc (program_invocation_name): Don't define. |
|
2996 (intern_argv): Don't set program_invocation_name here. |
|
2997 (main): Call octave_env::set_program_name here, not in intern_argv. |
|
2998 |
|
2999 * toplev.cc (quitting_gracefully): Move here from octave.h and |
|
3000 make static bool instead of extern int. |
|
3001 |
|
3002 * error.cc (bind_global_error_variable, clear_global_error_variable): |
|
3003 Move here from variables.cc. |
|
3004 (symbols_of_error): Define error_text here instead of in variables.cc. |
|
3005 |
|
3006 * pager.cc (write_to_diary_file): Now bool, not int. |
|
3007 (really_flush_to_pager): Likewise. |
|
3008 (flushing_to_pager): Likewise. |
|
3009 * sighandlers.h (can_interrupt): Likewise. |
|
3010 * error.h (buffer_error_messages): Likewise. |
|
3011 * oct-hist.h (input_from_tmp_history_file, Vsaving_history): Likewise. |
|
3012 * input.h (forced_interactive): Likewise. |
|
3013 (get_input_from_eval_string): Likeiwse. |
|
3014 (reading_script_file): Likeiwse. |
|
3015 (reading_fcn_file): Likeiwse. |
|
3016 (interactive): Likewise. |
|
3017 |
|
3018 * unwind-prot.cc (saved_variable::saved_variable (bool *, bool)): |
|
3019 Set type_tag to boolean, not int. |
|
3020 |
3016
|
3021 Mon Jun 2 00:40:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3022 |
|
3023 * variables.h (Octave_builtin_fcn): Delete typedef. |
|
3024 |
|
3025 * help.cc (make_name_list): Move here from variables.cc. |
|
3026 (keyword_help, names): Now static. |
|
3027 (struct help_list): Move declaration here from help.h. |
|
3028 |
|
3029 * oct-hist.cc (Vhistory_file, Vhistory_size, Vsaving_history): |
|
3030 Move here from variables.cc. |
|
3031 (symbols_of_oct_hist): New function. |
|
3032 |
|
3033 * version.h: Protect against multiple inclusion. |
|
3034 |
|
3035 * defun.cc (check_version): New function. |
|
3036 * defun-int.h (DEFINE_FUN_INSTALLER_FUN): Use it. |
|
3037 |
|
3038 * help.h, help.cc (additional_help_message): Now extern. |
|
3039 (operator_help): Now static. |
|
3040 |
|
3041 * defun.cc (print_usage): Move here from help.cc |
|
3042 * DLD-FUNCTIONS/*.cc, data.cc, dirfns.cc, file-io.cc, input.cc, |
|
3043 load-save.cc, octave.cc, ov-list.cc, ov-typeinfo.cc, |
|
3044 ov-usr-fcn.cc, pager.cc, pr-output.cc, pt-plot.cc, strfns.cc, |
|
3045 syscalls.cc, sysdep.cc, utils.cc, toplev.cc: |
|
3046 Don't include help.h. |
|
3047 |
|
3048 * TEMPLATE-INST/Array-sym.cc: New file. |
|
3049 |
|
3050 * load-save.cc (do_load): Don't use ostream::form. |
|
3051 * pr-output.cc: Likewise, at least where it is easy to do so. |
|
3052 * oct-stream.cc: Ditto. |
|
3053 |
|
3054 * symtab.h (symbol_record::symbol_def::rows): New function. |
|
3055 (symbol_record::symbol_def::columns): Ditto. |
|
3056 (symbol_record::symbol_def::type_name): Ditto. |
|
3057 (symbol_record::rows): Ditto |
|
3058 (symbol_record::columns): Ditto |
|
3059 (symbol_record::type_name): Ditto |
|
3060 |
|
3061 * symtab.h, symtab.cc (symbol_record::hides_fcn): New function. |
|
3062 (symbol_record::hides_builtin): Ditto. |
|
3063 (symbol_record::print_symbol_info_line): Ditto. |
|
3064 (symbol_table::long_list): Delete. |
|
3065 (symbol_table::symbol_list): New function. |
|
3066 (symbol_table::maybe_list): Delete argc arg. |
|
3067 (symbol_table::name_list): Rename from symbol_table::list. |
|
3068 Change all callers. |
|
3069 |
|
3070 * symtab.h, symtab.cc (class symbol_record_info): Delete. |
|
3071 |
|
3072 * symtab.cc (matches_patterns): Use vector form of glob_match. |
|
3073 |
|
3074 Sun Jun 1 14:04:26 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3075 |
|
3076 * pt-check.h, pt-check.cc: New files, for semantic checking of |
|
3077 parse trees. |
|
3078 |
|
3079 * symtab.h (class symbol_def): Now nested in symbol_record class. |
|
3080 (enum TYPE): Move from symbol_def to symbol record class. Change |
|
3081 all uses. |
|
3082 |
|
3083 * symtab.h, symtab.cc (symbol_table::maybe_list): New function, |
|
3084 from variables.cc. Change all uses. |
|
3085 |
|
3086 * pt-idx.h (tree_identifier::lvalue_ok): New function. |
|
3087 * pt-id.h (tree_index_expression::lvalue_ok): Likewise. |
|
3088 * pt-indir.h (tree_indirect_ref::lvalue_ok): Likewise. |
|
3089 |
|
3090 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_oct_obj): Delete. |
|
3091 * pt-walk.h (tree_walker::visit_oct_obj): Delete declaration. |
|
3092 |
|
3093 * lex.h (class lexical_feedback): Delete maybe_screwed_again. |
|
3094 * lex.l (lexical_feedback::init): Don't set it. |
|
3095 |
|
3096 Fri May 30 16:07:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3097 |
|
3098 * mappers.cc: Include <cfloat> here. |
|
3099 |
|
3100 Tue May 27 10:08:43 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3101 |
|
3102 * toplev.cc (eval_string): Don't index tmp if it is empty. |
|
3103 |
|
3104 Sat May 24 00:18:41 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3105 |
|
3106 * load-save.cc (valid_identifier): Move here and make static. |
|
3107 * symtab.h, symtab.cc (valid_identifier): Delete declaration and |
|
3108 definition. |
|
3109 |
|
3110 Fri May 23 22:54:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3111 |
|
3112 * symtab.h (symbol_def::symbol_def): Use initializer list instead |
|
3113 of calling init_state. |
|
3114 (symbol_def::init_state): Delete. |
|
3115 |
|
3116 * symtab.cc (symbol_table::print_stats): New function. |
|
3117 * variables.cc (F__dump_symtab_info__): New function. |
|
3118 |
|
3119 * symtab.h, symtab.cc (symbol_table::hash): Return masked value. |
|
3120 (symbol_table::table_size): New data member. |
|
3121 (symbol_table::symbol_table): Set size of table in constructor. |
|
3122 (HASH_TABLE_SIZE): Replace uses with table_size. |
|
3123 (HASH_MASK): Delete. |
|
3124 * variables.cc (initialize_symbol_tables): Set top-level and |
|
3125 global symbol table sizes here. |
|
3126 |
2994
|
3127 Thu May 22 13:32:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3128 |
|
3129 * dynamic-ld.cc (octave_shl_load_dynamic_loader::resolve_reference): |
|
3130 Call shl_findsym with type set to TYPE_PROCEDURE. Pass the |
|
3131 address of the pointer we want to define. |
|
3132 |
2993
|
3133 Wed May 21 16:30:25 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3134 |
|
3135 * DLD-FUNCTIONS/time.cc (extract_tm): Avoid memory leak in dealing |
|
3136 with time zone. |
|
3137 |
|
3138 * Makefile.in (install-in): Use new mk-includedir-link macro. |
|
3139 (install-lib): Install in $octlibdir. Use new mk-libdir-link macro. |
|
3140 |
|
3141 Tue May 20 01:24:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3142 |
|
3143 * ov-list.cc (Flist): Rename from Fmake_list. |
|
3144 |
|
3145 Mon May 19 14:45:58 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3146 |
|
3147 * octave.cc (maximum_braindamage): Set default_eval_print_flag to 0. |
|
3148 |
|
3149 Sat May 17 16:32:23 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3150 |
|
3151 * defaults.cc (set_default_editor): Default is now Emacs, not vi. |
|
3152 |
2984
|
3153 Fri May 16 00:07:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3154 |
2991
|
3155 * pt-idx.cc (tree_index_expression::name): New function. |
|
3156 |
|
3157 * pt.cc (tree::str_print_code): New file, new convenience function. |
|
3158 * pt-arg-list.cc (tree_argument_list::get_arg_names): Use it. |
|
3159 * pt-assign.cc (tree_simple_assignment::rvalue): Likewise. |
|
3160 (tree_multi_assignment::rvalue): Likewise. |
|
3161 |
2990
|
3162 * pt-colon.h (tree_colon_expression::save_base): New data memmber. |
|
3163 (tree_colon_expression::preserve_base): New function. |
|
3164 * parse.y (finish_colon_expression): When converting to a simple |
|
3165 expression, be sure to delete the original colon expression but |
|
3166 not the base value. |
|
3167 |
|
3168 * pt-mat.cc (tree_matrix::~tree_matrix): Actually do something. |
|
3169 |
2987
|
3170 * pt-all.h: New file. |
|
3171 * parse.y, lex.l, pt-pr-code.cc: Use it. |
|
3172 |
|
3173 * pt.h: Rename from pt-base.h. |
|
3174 |
|
3175 * All parse tree classes: Add private copy constructors and |
|
3176 assignment operators to prevent copying. |
|
3177 |
|
3178 * pt-base.cc: Delete. |
|
3179 |
2985
|
3180 * unwind-prot.h, unwind-prot.cc: Make a bit more object-oriented. |
|
3181 Change all uses of unwind_protect stuff to match. |
|
3182 |
|
3183 * pt-jump.h, pt-jump.cc (breaking, continuing, returning): |
|
3184 Make these flags static members of the corresponding class. |
|
3185 Change all uses. |
|
3186 |
2984
|
3187 * pt-assign.cc (tree_simple_assignment_expression::eval, |
|
3188 tree_multi_assignment_expression::eval): Clear lvalue index here. |
|
3189 |
|
3190 * oct-lvalue.cc (octave_lvalue::assign): Don't clear index here. |
|
3191 * oct-lvalue.h (octave_lvalue::clear_index): New function. |
|
3192 (octave_lvalue::set_index): Rename from octave_lvalue::index. |
|
3193 Change all callers. |
|
3194 |
2976
|
3195 Thu May 15 11:48:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3196 |
2983
|
3197 * pt-select.h, pt-select.cc (class tree_if_command_list, |
|
3198 class tree_if_clause, class tree_switch_case_list, |
|
3199 class tree_switch_case): Move here from pt-misc.h, pt-misc.cc. |
|
3200 * pt-decl.h, pt-decl.cc (class tree_decl_init_list, |
|
3201 class tree_decl_elt): Move here from pt-mist.h, pt-misc.cc |
|
3202 |
|
3203 * pt-arg-list.h, pt-stmt.h: New files, extracted from pt-misc.h. |
|
3204 * pt-arg-list.cc, pt-stmt.cc: New files, extracted from pt-misc.cc. |
|
3205 |
|
3206 * pt-decl.h, pt-except.h, pt-jump.h, pt-loop.h, pt-select.h: |
|
3207 New files, extraced from pt-cmd.h. |
|
3208 * pt-decl.cc, pt-except.cc, pt-jump.cc, pt-loop.cc, pt-select.cc: |
|
3209 New files, extraced from pt-cmd.cc. |
|
3210 |
2980
|
3211 * pt-unop.h, pt-binop.h, pt-colon.h, pt-idx.h, pt-assign.h: |
|
3212 New files, extracted from pt-exp.h |
|
3213 * pt-unop.cc, pt-binop.cc, pt-colon.cc, pt-idx.cc, pt-assign.cc: |
|
3214 New files, extracted from pt-exp.cc |
|
3215 * pt-exp.h, pt-exp.cc: Rename from pt-exp-base.h, pt-exp-base.cc. |
|
3216 |
2979
|
3217 * oct-lvalue.h: Rename from oct-var-ref.h. Rename class from |
|
3218 octave_variable_reference to octave_lvalue. Change all uses. |
|
3219 * oct-lvalue.cc: Rename from oct-var-ref.cc. |
|
3220 |
2978
|
3221 * variables.cc (bind_ans): Only bind ans and print result if value |
|
3222 is defined. |
|
3223 |
2976
|
3224 * defun.cc: New file. Move functions for installing objects in |
|
3225 the symbol table here from variables.cc. |
|
3226 |
|
3227 * oct-obj.h, oct-obj.cc: Add custom allocator, fwiw. |
|
3228 |
|
3229 * toplev.cc (main_loop): Correctly increment command number. |
|
3230 |
|
3231 * TEMPLATE-INST/SLList-tm.cc: Don't instantiate lists of pointers |
|
3232 to tree_matrix_row objects. |
|
3233 * TEMPLATE-INST/SLList-misc.cc: Do instantiate lists of pointers |
|
3234 to tree_argument_list objects. |
|
3235 |
|
3236 * DLD-FUNCTIONS/dassl.cc: Update to use new octave_function |
|
3237 interface to user-supplied functions. |
|
3238 * DLD-FUNCTIONS/fsolve.cc: Likewise. |
|
3239 * DLD-FUNCTIONS/lsode.cc: Likewise. |
|
3240 * DLD-FUNCTIONS/npsol.cc: Likewise. |
|
3241 * DLD-FUNCTIONS/quad.cc: Likewise. |
|
3242 |
|
3243 * dynamic-ld.h, dynamic-ld.cc (builtin_fcn_installer typedef): |
|
3244 Rename from builtin_fcn. |
|
3245 (octave_dynamic_loader::load_fcn_from_dot_oct_file): |
|
3246 Simplify by using new installer function defined by DEFUN_DLD. |
|
3247 |
|
3248 * defun-dld.h (DEFUN_DLD): Use DEFINE_FUN_INSTALLER_FUN instead of |
|
3249 DEFINE_FUN_STRUCT_FUN. |
|
3250 * defun.h (DEFUN_MAPPER): Use DEFUN_MAPPER_INTERNAL. |
|
3251 * defun-int.h (DEFVAR_INTERNAL): Rename from DEFVAR_INT and move |
|
3252 here from defun.h. Change all uses. |
|
3253 (DEFUN_MAPPER_INTERNAL): New macro. |
|
3254 (DEFINE_FUN_INSTALLER_FUN): New macro to define function that the |
|
3255 dynamic loader calls to do all the work of installing a new function. |
|
3256 (DEFINE_FUN_STRUCT_FUN): Delete. |
|
3257 |
|
3258 * parse.y: Rewrite to handle more general expressions. |
|
3259 * lex.l: Corresponding changes. |
|
3260 |
|
3261 * pt-walk.h, pt-pr-code.h, pt-pr-code.cc: Cope with new parse tree |
|
3262 object structure. |
|
3263 |
|
3264 * pt-misc.cc (class tree_for_command): Split into |
|
3265 tree_simple_for_command and tree_complex_for_command classes. |
|
3266 |
|
3267 * pt-misc.h, pt-misc.cc (tree_statement::eval): Handle identifier |
|
3268 lookup and printing and binding ans here. |
|
3269 (tree_statement_list::eval): Simplify. |
|
3270 (tree_argument_list::all_elements_are_constant): New function. |
|
3271 (class tree_decl_elt): Now contains id and expr, not an assignment |
|
3272 expression. |
|
3273 |
|
3274 * pt-exp-base.h pt-exp.h pt-id.h pt-indir.h pt-mat.h pt-const.h, |
|
3275 pt-exp-base.cc pt-exp.cc pt-id.cc pt-indir.cc pt-mat.cc pt-const.cc: |
|
3276 Replace eval functions with rvalue and lvalue functions. |
|
3277 Change all uses. |
|
3278 (lvalue_ok, rvalue_ok): New functions, for future compile-time |
|
3279 semantic checks. |
|
3280 |
|
3281 * oct-var-ref.h (is_defined, is_map): New functions. |
|
3282 |
|
3283 * pt-exp.h (class tree_oct_obj): Delete. |
|
3284 |
|
3285 * variables.cc (extract_function, is_valid_function): Return |
|
3286 pointer to octave_function, not octave_symbol. |
|
3287 (link_to_global_variable): Rewrite. Handle errors in |
|
3288 symbol_record::mark_as_linked_to_global. |
|
3289 |
|
3290 * symtab.h, symtab.cc (class symbol_def, class symbol_record): |
|
3291 Symbols are now stored as octave_value objects only. |
|
3292 |
|
3293 * ov.cc (install_types): Register function types here. |
|
3294 * ov-fcn.h, ov-fcn.cc, ov-builtin.h, ov-builtin.cc, ov-mapper.h, |
|
3295 ov-mapper.cc, ov-usr-fcn.h, ov-usr-fcn.cc: New classes for |
|
3296 functions as values. |
|
3297 * ov.h (class octave_value): Don't derive from octave_symbol. |
|
3298 * oct-fcn.h, oct-fcn.cc, oct-builtin.h, oct-builtin.cc, |
|
3299 oct-mapper.h, oct-mapper.cc, oct-usr-fcn.h, oct-usr-fcn.cc, |
|
3300 oct-sym.h, oct-sym.cc: Delete. |
|
3301 |
2963
|
3302 Sun May 11 17:51:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3303 |
|
3304 * help.cc (Ftype): Make it work again for functions. |
|
3305 |
|
3306 * pt-pr-code.cc (tree_print_code::print_parens): New function. |
|
3307 Use it in other tree_print_code functions to handle printing all |
|
3308 the parens that we found when parsing the expression, not just one |
|
3309 pair. |
|
3310 * pt-exp-base.h (tree_expression::paren_count): Rename from |
|
3311 is_in_parens. |
|
3312 * parse.y (maybe_warn_assign_as_truth_value): Use new name. |
|
3313 |
|
3314 * parse.y (constant): New non-terminal. |
|
3315 (simple_expr1): Use it. |
|
3316 |
|
3317 * parse.y (make_unary_op): Delete. |
|
3318 (simple_expr1): Where appropriate, use make_prefix_op and |
|
3319 make_postfix_op instead of make_unary_op. Allow increment and |
|
3320 decrement ops to work on expressions, not just identifiers. |
|
3321 (make_prefix_op, make_postfix_op): Arg is expression, not identifier. |
|
3322 Handle old unary_op cases too. |
|
3323 (fold (tree_unary_expression *)): Delete. |
|
3324 * pt-exp.h, pt-exp.cc (tree_prefix_expression::eval): Handle unary |
|
3325 minus and not here. |
|
3326 (tree_postfix_expression::eval): Likewise, for transpose and hermitian. |
|
3327 (class tree_prefix_expression, class tree_postfix_expression): |
|
3328 Derive from tree_unary_expression. Delete identifier member. |
|
3329 Delete ident member function. |
|
3330 (tree_unary_expression): Don't handle evaluation here. |
|
3331 * pt-exp-base.h (mark_in_parens): No longer virtual. Return this. |
|
3332 (reference): New virtual function. |
|
3333 (class tree_expression): Don't handle expression type here. |
|
3334 * pt-mvr-base.h (tree_multi_val_ret::tree_multi_val_ret): Likewise. |
|
3335 * pt-mvr.h, pt-mvr.cc (tree_multi_assignment_expression): Likewise. |
|
3336 * pt-walk.h (visit_unary_expression): Delete declaration. |
|
3337 * pt-pr-code.h, pt-pr-code.cc (visit_unary_expression): Delete. |
|
3338 (visit_prefix_expression): Use operand(), not ident(). |
|
3339 new, visit_postfix_expression): |
|
3340 * pt-id.h, pt-id.cc (increment, decrement): Delete. |
|
3341 |
|
3342 * pt-misc.cc (tree_parameter_list::define_from_arg_vector): Get a |
|
3343 reference to each element and use the assignment operator instead |
|
3344 of tree_identifier::define. |
|
3345 * pt-id.h, pt-id.cc (tree_identifier::define): Delete versions |
|
3346 that take octave_value and octave_symbol args. |
|
3347 |
|
3348 Sat May 10 23:32:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3349 |
|
3350 * pt-indir.h, pt-indir.cc (tree_indirect_reference::value): Delete. |
|
3351 |
|
3352 * oct-var-ref.cc (octave_variable_ref::assign): Clear idx after |
|
3353 assignment. |
|
3354 |
2976
|
3355 * octave_value classes: Add is_constant, is_function, and |
|
3356 function_value functions. |
|
3357 |
2963
|
3358 * ov.h, ov.cc (assign): Return void, not reference to octave_value. |
|
3359 (do_index_op): Rename, from index. |
|
3360 (do_struct_elt_index_op): Rename, from struct_elt_val. |
|
3361 Add version that accepts index arg. |
|
3362 Change all uses and derived classes to match. |
|
3363 * pt-const.h (index): Delete. |
|
3364 * oct-var-ref.h, oct-var-ref.cc (value): Handle indexed structure |
|
3365 ops here too. |
|
3366 |
2949
|
3367 Fri May 9 07:40:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3368 |
2958
|
3369 * pt-exp.cc (print_rhs_assign_val, symbols_of_pt_exp): New functions. |
|
3370 (Vprint_rhs_assign_val): New static variable. |
|
3371 (tree_simple_assignment_expression::eval): Use it to optionally |
|
3372 allow the rhs (which is the result) of an assignment to be printed |
|
3373 instead of the left. |
|
3374 |
2955
|
3375 * pt-exp.cc (tree_simple_assignment_expression::eval): Use new |
|
3376 octave_variabl_reference::index function to handle indexing. |
|
3377 |
|
3378 * oct-var-ref.h, oct-var-ref.cc (idx): New data member. |
|
3379 (octave_variable_reference::index): Set it. |
|
3380 (octave_variable_reference::assign): Handle indexing here. |
|
3381 Delete version of this function htat takes index arg. |
|
3382 |
|
3383 * variables.h (struct builtin_varaible): Delete. |
|
3384 * variables.cc (install_builtin_variable): Take all elts of |
|
3385 builtin_variable struct directly. |
|
3386 * defun.h (DEFVAR_INT): Call install_builtin_variable directly. |
|
3387 |
|
3388 * symtab.h, defun-int.h: Don't include variables.h. |
|
3389 |
|
3390 * symtab.h (symbol_record::sv_function): Move typedef here. |
|
3391 * variables.h: From here. |
|
3392 |
|
3393 * oct-var-ref.h, oct-var-ref.cc: New files for |
|
3394 octave_variable_reference class, extracted from variables.h and |
|
3395 variables.cc |
2956
|
3396 * Makefile.in: Add them to the appropriate lists. |
2955
|
3397 |
|
3398 * oct-obj.h (octave_value_list::empty): New function. |
|
3399 |
2949
|
3400 * variables.h (class octave_variable_reference): Rewrite to work |
|
3401 as a proxy class to store a pointer to octave_value and, |
|
3402 optionally, the change function to call and the name of the |
|
3403 structure element we are referencing. Handle assignment, |
|
3404 increment, decrement, and value operations. |
|
3405 |
2956
|
3406 Thu May 8 23:40:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3407 |
2949
|
3408 * ov-re-mat.h, ov-re-mat.cc (struct_elt_ref, struct_elt_val, |
|
3409 assign_struct_elt): Provide functions for looking up and setting |
|
3410 matrix dimensions. |
|
3411 |
|
3412 * symtab.cc (symbol_record::define): Don't call sv_fcn here. |
|
3413 Don't save and restore value here. |
|
3414 (symbol_record::define_builtin_var): Do call sv_fcn here. |
|
3415 (symbol_record::variable_reference): Don't make value unique here. |
|
3416 Return pointer to sv_fcn in octave_variable_reference. |
|
3417 |
|
3418 * pt-misc.cc (tree_parameter_list::initialize_undefined_elements): |
|
3419 Simplify. |
|
3420 |
|
3421 * pt-id.h, pt-id.cc (tree_identifier::reference): Return |
|
3422 octave_variable_reference, not octave_value&. |
|
3423 * symtab.h, symtab.cc (symbol_record::variable_reference): Ditto. |
|
3424 * pt-indir.h, pt-indir.cc (tree_indirect_ref::reference): Ditto. |
|
3425 Simplify too. |
|
3426 |
|
3427 * pt-const.h (tree_constant::reference, tree_constant::value, |
|
3428 tree_constant::assign): Delete unnecessary functions. |
|
3429 * pt-id.h, pt-id.cc (tree_identifier::assign): Ditto. |
|
3430 |
|
3431 * pt-cmd.cc (tree_for_command::do_for_loop_once): Simplify. |
|
3432 |
|
3433 * ov.h, ov.cc, ov-base.h, ov-base.cc, ov-struct.h, ov-struct.cc |
|
3434 (struct_elt_ref): New arg, octave_value* parent. |
|
3435 Allow deferred lookup. Return octave_variable_reference, not |
|
3436 octave_value&. |
|
3437 |
|
3438 * ov.h, ov.cc, ov-re-mat.h, ov-re-mat.cc (assign_struct_elt): |
|
3439 New virtual functions. |
|
3440 |
|
3441 * ov.h, ov.cc (Vresize_on_range_error): Now static. |
|
3442 |
|
3443 * pt-mvr.cc (tree_index_expression::eval): Delete redundant check |
|
3444 of error_state. |
|
3445 |
2944
|
3446 Wed May 7 21:17:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3447 |
|
3448 * input.cc (generate_completion): Rename from command_generator. |
|
3449 Use string objects instead of char*. |
|
3450 (generate_possible_completions): Let qsort also make matches unique. |
|
3451 (initialize_command_input): Register generate_completion with the |
|
3452 command_editor class. |
|
3453 (completion_matches): Simplify using generate_completion. |
|
3454 |
|
3455 * pt-pr-code.cc (tree_print_code::visit_constant): For val, call |
|
3456 print_raw, not print. |
|
3457 |
|
3458 * oct-usr-fcn.h (octave_user_function::argn_sr): New data member. |
|
3459 (octave_user_function::install_automatic_vars): Rename from |
|
3460 install_nargin_and_nargout. |
|
3461 (octave_user_function::bind_automatic_vars): Rename from |
|
3462 bind_nargin_and_nargout. |
|
3463 * oct-usr-fcn.cc (octave_user_function::eval): Extract arg names |
|
3464 from args vector and bind them to argn. |
|
3465 * oct-obj.h (octave_value_list::names): New data member. |
|
3466 * oct-obj.cc (octave_value_list::stash_name_tags): New function. |
|
3467 (octave_value_list::name_tags): Ditto. |
|
3468 * pt-const.h, pt-const.cc (tree_constant::print_raw): New function. |
|
3469 * pt-misc.h, pt-misc.cc (tree_argument_list::get_arg_names): |
|
3470 New function. |
|
3471 * pt-mvr.h, pt-mvr.cc (class index_expression): Cache arg names. |
|
3472 * toplev.cc (feval): Now static. Handle arg names. |
|
3473 |
|
3474 * mkops: Cope with moving files defining operators to OPERATORS |
|
3475 subdirectory. |
|
3476 |
2937
|
3477 Tue May 6 00:48:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3478 |
|
3479 * DLD-FUNCTIONS/getgrent.cc: Use new octave_group class. |
|
3480 * DLD-FUNCTIONS/getpwent.cc: Use new octave_passwd class. |
|
3481 |
|
3482 * syscalls.cc: Simplify by using new functions defined in |
|
3483 liboctave/oct-syscalls.cc. |
|
3484 |
|
3485 * file-io.cc (Ftmpnam): Accept DIR and PREFIX args. |
|
3486 |
2929
|
3487 Mon May 5 00:54:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3488 |
2932
|
3489 * ov-str-mat.cc (octave_char_matrix_str::print_name_tag): Print |
|
3490 empty strings on one line. |
|
3491 |
2929
|
3492 * DLD-FUNCTIONS, OPERATORS, and TEMPLATE-INST: New subdirectories. |
|
3493 Move appropriate files to new directories. |
|
3494 * Makefile.in: Add DLD-FUNCTIONS, OPERATORS, and TEMPLATE-INST |
|
3495 directories to VPATH. Fix rules to work with new directory |
|
3496 structure. |
|
3497 |
2927
|
3498 Sun May 4 22:40:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3499 |
|
3500 * input.cc (initialize_command_input): Rename from |
|
3501 initialize_readline. |
|
3502 (gnu_readline, octave_gets, get_user_input): Simplify, return |
|
3503 string, not char *. |
|
3504 |
|
3505 * Many of other files: Miscellaneous changes to go along with the |
|
3506 changes described in the liboctave/ChangeLog for May 4. More code |
|
3507 moved from here to liboctave. |
|
3508 |
|
3509 Fri May 2 19:50:33 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3510 |
|
3511 * pathlen.h: Move to ../liboctave. |
|
3512 |
2921
|
3513 Thu May 1 21:50:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3514 |
|
3515 * variables.cc (get_struct_elts): New fucntion. |
|
3516 (looks_like_struct, generate_struct_completions): Move here from |
|
3517 input.cc, rewrite, and make work again. |
|
3518 |
2916
|
3519 Wed Apr 30 00:24:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3520 |
|
3521 * ov-base.h, ov-bool-mat.cc, ov-bool-mat.h, ov-bool.cc, ov-bool.h, |
|
3522 ov-ch-mat.cc, ov-ch-mat.h, ov-complex.cc, ov-complex.h, |
|
3523 ov-cx-mat.cc, ov-cx-mat.h, ov-file.cc, ov-file.h, ov-list.cc, |
|
3524 ov-range.cc, ov-range.h, ov-re-mat.cc, ov-re-mat.h, ov-scalar.cc, |
|
3525 ov-scalar.h, ov-str-mat.cc, ov-struct.cc, ov.h (scalar_value): |
|
3526 New function. Same as double_value, but name is consistent with |
|
3527 octave_scalar class. |
|
3528 |
|
3529 * op-fil-b.cc, op-fil-cm.cc, op-fil-lis.cc, op-fil-rec.cc, |
|
3530 op-fil-str.cc, op-fil-bm.cc, op-fil-cs.cc, op-fil-m.cc, |
|
3531 op-fil-s.cc: New files. |
|
3532 |
|
3533 * ops.h (ASSIGNOPDECL, DEFASSIGNOP, DEFASSIGNOP_FN, CONVDECL, |
|
3534 DEFCONV, BINOPDECL, DEFBINOPX, DEFBINOP, DEFBINOP_OP, DEFBINOP_FN, |
|
3535 BINOP_NONCONFORMANT): New macros. |
|
3536 * op-b-b.cc, op-bm-bm.cc, op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, |
|
3537 op-cm-s.cc, op-cs-cm.cc, op-cs-cs.cc, op-cs-m.cc, op-cs-s.cc, |
|
3538 op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, op-s-cm.cc, |
|
3539 op-s-cs.cc, op-s-m.cc, op-s-s.cc, op-str-str.cc: Use them. |
|
3540 |
|
3541 * Makefile.in (octave): Also depend on ops.o. |
|
3542 |
|
3543 * builtins.h: Delete. |
|
3544 * octave.cc: Add extern declaration here. |
|
3545 |
|
3546 * mappers.h: Delete. |
|
3547 * Makefile.in (INCLUDES): Delete from list. |
|
3548 * mkbuiltins: Add extern declaration in builtins.cc. |
|
3549 |
|
3550 * mkops: New file. |
|
3551 * ops.cc: Delete. |
|
3552 * Makefile.in (SOURCES): Delete from the list. |
|
3553 (ops.cc): New target. |
|
3554 (OP_SOURCES): New list. Move all op-*.cc files here from SOURCES. |
|
3555 Add $(OP_SOURCES) to SOURCES list. |
|
3556 |
|
3557 * variables.cc (symbols_of_variables): No longer static. |
|
3558 * ov.cc (symbols_of_ov): Rename from symbols_of_value. |
|
3559 |
|
3560 * ov-base.h: Delete declaration for install_base_type_conversions. |
|
3561 * op-b-b.h, op-bm-bm.h, op-cm-cm.h, op-cm-cs.h, op-cm-m.h, |
|
3562 op-cm-s.h, op-cs-cm.h, op-cs-cs.h, op-cs-m.h, op-cs-s.h, |
|
3563 op-m-cm.h, op-m-cs.h, op-m-m.h, op-m-s.h, op-s-cm.h, op-s-cs.h, |
|
3564 op-s-m.h, op-s-s.h, op-str-str.h: Delete. |
|
3565 * Makefile.in (INCLUDES): Delete them from the list. |
|
3566 |
|
3567 Tue Apr 29 22:27:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3568 |
|
3569 * variables.h, variables.cc (install_builtin_variables): Delete. |
|
3570 * mkbuiltins: Also generate install_builtin_variables function. |
|
3571 * Makefile.in: Fix rule to call mkbuiltins with correct args. |
|
3572 (clean): Also delete def-files and var-files. |
|
3573 * defaults.h.in, dirfns.h, error.h, file-io.h, help.h, input.h, |
|
3574 lex.h, load-save.h, oct-usr-fcn.h, pager.h, parse.h, pr-output.cc, |
|
3575 pr-output.h, pt-mat.h, pt-misc.h, pt-plot.h, toplev.h: |
|
3576 Delete declarations of symbols_of_* functions. |
|
3577 * data.h, syscalls.h: Delete. |
|
3578 |
|
3579 * pr-output.cc (octave_print_internal): Leave printing of final |
|
3580 new line up to the caller. |
|
3581 |
|
3582 * ov.h, ov.cc (reset_indent_level, increment_indent_level, |
|
3583 decrement_indent_level, newline, indent, reset, |
|
3584 curr_print_indent_level, beginning_of_line): |
|
3585 New functions and static data to manage indent level for printing. |
|
3586 (print_as_scalar): Delete. |
|
3587 (print, print_with_name): Always require stream arg. |
|
3588 Change all callers. |
|
3589 |
|
3590 * oct-stream.h (octave_stream::input_stream): Make publicly available. |
|
3591 (octave_stream::output_stream): Likewise. |
|
3592 |
|
3593 * ov-base.h, ov-base.cc, ov.h, ov.cc, ov-file.h ov-base.h |
|
3594 (is_file, stream_value, stream_number): New functions. |
|
3595 * ov-file.h, ov-file.cc: New files for value class to manage files. |
|
3596 * file-io.cc (symbols_of_file_io): Define stdin, stdout, and |
|
3597 stderr as octve_file objects, not just integers. |
|
3598 (Ffopen, Fpopen): Return octave_file objects, not integer file ids. |
|
3599 * syscalls.cc (Fpipe): Likewise. |
|
3600 * oct-stream.h, oct-stream.cc (octave_stream_list::insert): |
|
3601 Return octave_file object, not integer file id. |
|
3602 |
|
3603 * ov-base.cc, ov-bool-mat.cc, ov-bool.cc, ov-ch-mat.cc, |
|
3604 ov-complex.cc, ov-cx-mat.cc, ov-file.cc, ov-list.cc, ov-range.cc, |
|
3605 ov-re-mat.cc, ov-scalar.cc, ov-str-mat.cc, ov-struct.cc, ov.cc |
|
3606 (print_name_tag, print_raw): New functions. |
|
3607 |
|
3608 * help.cc (Ftype): Don't cast symbol definition to tree_constant *. |
|
3609 |
|
3610 * variables.cc (link_to_global_variable): Don't try to define |
|
3611 symbol with tree_constant objects. |
|
3612 (bind_ans): Call symbol_record::define directly and then |
|
3613 octave_value::print_with_name instead of creating a temporary |
|
3614 assignment expression. |
|
3615 |
|
3616 * pt-pr-code.cc (tree_print_code::indent): Don't use ostream::form. |
|
3617 |
|
3618 * pt-exp-base.h, pt-exp.h, pt-exp.cc (oper): Return string, not |
|
3619 char *. Change all where necessary. |
|
3620 |
|
3621 Mon Apr 28 16:33:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3622 |
|
3623 * ov.h (octave_value binary_op enum): Add lshift and rshift. |
|
3624 (octave_value assign_op enum): Add lshift_eq and rshift_eq. |
|
3625 * ov.cc (assign_op_as_string, binary_op_as_string): Include them. |
|
3626 * parse.y (LSHIFT_EQ RSHIFT_EQ LSHIFT RSHIFT): New tokens. |
|
3627 Add them to the precedence list. |
|
3628 (simple_expr): Add new operators. |
|
3629 (make_assign_op, make_binary_op): Handle new operators. |
|
3630 * lex.l: Recognize new operators. |
|
3631 |
|
3632 * lex.l: Recognize them. |
|
3633 |
|
3634 Sun Apr 27 20:17:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2898
|
3635 |
|
3636 * pt-misc.cc (Vsilent_functions, silent_functions): |
|
3637 Move here from oct-usr-fcn.cc. |
|
3638 (symbols_of_pt_misc): New function. DEFVAR silent_functions. |
|
3639 (tree_statement_list::eval): Handle Vsilent_functions here instead |
|
3640 of in octave_user_function::eval. |
|
3641 (tree_statement::eval): New functions. |
|
3642 (tree_statement_list::eval): Use them. |
|
3643 Change print flag arg to silent flag. Change all callers. |
|
3644 * variables.cc (install_builtin_variables): Call symbols_of_pt_misc. |
|
3645 * toplev.cc (parse_and_execute): Delete print arg. Change all callers. |
|
3646 (eval_string): Change print flag arg to silent flag. Change callers. |
|
3647 |
|
3648 * dynamic-ld.h, dynamic-ld.cc: Rewrite to use singleton class. |
|
3649 * variables.cc (load_fcn_from_file): Use new dynamic linking class. |
|
3650 |
2893
|
3651 * dynamic-ld.h (Octave_builtin_fcn): Delete typedef. |
|
3652 * dynamic-ld.cc: Simplify via the magic of function pointers. |
|
3653 |
|
3654 * pt-fcn.h pt-fcn.cc pt-fvc.h pt-fvc.cc pt-fvc-base.h pt-fvc-base.cc: |
|
3655 Delete obsolete files. |
|
3656 * Makefile.in: Remove them from various lists. |
|
3657 |
|
3658 * pt-walk.h (visit_octave_user_function): Rename from visit_function. |
|
3659 (visit_builtin): Delete. |
|
3660 * pt-pr-code.h, pt-pr-code.cc (visit_octave_user_function): |
|
3661 Rename from visit_function. |
|
3662 (visit_octave_user_function_header): Rename from visit_function_header. |
|
3663 (visit_octave_user_function_trailer): Rename from |
|
3664 visit_function_trailer. |
|
3665 |
|
3666 * ov.h, ov.cc (eval): New functions. |
|
3667 |
|
3668 * dassl.cc, fsolve.cc, lsode.cc, npsol.cc, qpsol.cc, quad.cc: |
|
3669 Declare user-defined functions as a pointer to an octave_symbol |
|
3670 object, not as a pointer to a tree_fvc object. |
|
3671 |
|
3672 * symtab.h, symtab.cc: Use new octave_symbol class. |
|
3673 * variables.cc (install_builtin_function, install_builtin_mapper, |
|
3674 install_builtin_variable, install_builtin_variable_as_function): |
|
3675 Make work with new octave_symbol class and symbol table structure. |
|
3676 |
|
3677 * variables.h: Delete declaration of builtin_function struct. |
|
3678 * defun-dld.h (DEFUN_DLD): Simplify. |
|
3679 * defun-int.h (DEFINE_FUN_STRUCT): Delete. |
|
3680 (DEFINE_FUN_STRUCT_FUN): Rewrite to not use static builtin_function |
|
3681 object. |
|
3682 |
|
3683 * mappers.h: Delete declaration of builtin_mapper_function struct. |
|
3684 * mappers.cc: Declare wrapper functions static. |
|
3685 * defun.h (DEFUN_MAPPER): Simplify. |
|
3686 |
|
3687 * oct-sym.h: New file. Declare base class for Octave symbols. |
|
3688 * ov.h: Derive octave_value class from octave_symbol. |
|
3689 * oct-fcn.h, oct-fcn.cc: New files to declare and define |
|
3690 base class for functions. |
|
3691 * oct-builtin.h, oct-builtin.cc: New files to declare and define |
|
3692 class for built-in functions. |
|
3693 * oct-mapper.h, oct-mapper.cc: New files to declare and define |
|
3694 class for mapper functions. |
|
3695 * oct-usr-fcn.h, oct-usr-fcn.cc: New files to declare and define |
|
3696 base class for user-defined functions. |
|
3697 * Makefile.in: Add new files to appropriate lists. |
|
3698 |
|
3699 * pt-id.h, pt-id.cc: Move tree_identifier class here. |
|
3700 * pt-fvc.h, pt-fvc.cc: From here. |
|
3701 |
|
3702 * pt-indir.h, pt-indir.cc: Move tree_indirect_ref class here. |
|
3703 * pt-fvc.h, pt-fvc.cc: From here. |
|
3704 |
2881
|
3705 Thu Apr 24 03:58:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3706 |
2884
|
3707 * parse.y (magic_colon): New nonterminal. |
|
3708 (arg_list): Simplify using magic_colon. |
|
3709 |
2883
|
3710 * lex.h (class lexical_feedback): Delete maybe_screwed field. |
|
3711 New field, parsed_function name. |
|
3712 * lex.l (lexical_feedback::init): Initialize it. |
|
3713 (handle_identifier): Don't return SCREW. Handle switching |
|
3714 symbol table context properly for `function f ()' vs `function x ='. |
|
3715 (is_keyword): If looking at function keyword, don't set current |
|
3716 symbol table to point to the local table. |
|
3717 * parse.y (recover_from_parsing_function): New function. |
|
3718 (finish_function_def): Use identifier, not token. |
|
3719 Simplify parsing of functions. |
|
3720 |
|
3721 * ov-list.h, ov-list.cc: New files to implement generic list type. |
|
3722 * ov.cc (list_indent): New global variable. |
|
3723 (increment_list_indent, decrement_list_indent): New functions. |
|
3724 (install_types): Register octave_list type. |
|
3725 * ov-base.cc (octave_base_value::is_list): New function. |
|
3726 |
2881
|
3727 * oct-sym.h: New file. |
|
3728 * ov.h (class octave_value): Derive from octave_symbol class. |
|
3729 |
|
3730 * pt-const.h, pt-const.cc: Delete lots of old useless cruft. |
|
3731 |
|
3732 * pt-exp.h, pt-exp.cc (tree_binary_expression): Use type codes for |
|
3733 operators from octave_value instead of repeating them here. |
|
3734 |
|
3735 * pt-fvc-base.cc (tree_fvc::increment, tree_fvc::decrement): Delete. |
|
3736 * pt-fvc.cc (tree_identifier::increment): Get reference to value |
|
3737 and increment that instead of using virutal tree_fvc::increment |
|
3738 function. |
|
3739 |
|
3740 * lex.l: Handle +=, -=, *=, /=, .+=, .-=, .*=, ./=, &=, and |= ops. |
2883
|
3741 * parse.y (make_assign_op): Rename from make_simple_assignment and |
|
3742 handle different op types. |
|
3743 (simple_expr1): Do new ops. |
2881
|
3744 * pt-misc.cc (initialize_undefined_elements): Pass op to assign. |
|
3745 * pt-cmd.cc (tree_for_command::do_for_command_once): Likewise. |
|
3746 * pt-fvc.cc (tree_identifier::assign): Pass op. |
|
3747 * pt-exp.cc (tree_simple_assignment_expression): Handle new ops. |
|
3748 * variables.cc (octave_variable_reference::assign): Likewise. |
|
3749 * ov.h (class octave_value): Likewise. |
|
3750 * ov.cc (octave_value::assign_op_as_string): New function. |
|
3751 (octave_value::assign, octave_value::convert_and_assign, |
|
3752 octave_value::try_assignment_with_conversion, |
|
3753 octave_value::try_assignment): Pass op. |
|
3754 * pt-pr-code.cc (tree_print_code::visit_simple_assignment_expression): |
|
3755 Use expr.oper() instead of printing "=". |
|
3756 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-m-m.cc, |
|
3757 op-m-s.cc, op-str-str.cc: Pass op to INSTALL_ASSIGNOP. |
|
3758 * ops.h (INSTALL_ASSIGNOP): Pass op. |
2883
|
3759 * ov-typeinfo.cc (do_register_assign_op): Include op type in table. |
|
3760 (do_lookup_assign_op): Use op in lookup. |
2881
|
3761 |
|
3762 * ops.h (INSTALL_UNOP): Delete. |
|
3763 |
|
3764 * input.cc (generate_struct_completions, looks_like_struct): |
|
3765 Disable, since they don't work now anyway. |
|
3766 |
|
3767 * help.cc (Ftype): Work with octave_value instead of a pointer to |
|
3768 tree_constant. |
|
3769 * symtab.cc (symbol_record_info::symbol_record_info): Likewise. |
|
3770 |
|
3771 |
|
3772 Tue Apr 22 22:59:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3773 |
|
3774 * file-io.cc (Ffprintf): If first arg is a string, assume FID = 1. |
|
3775 |
|
3776 Fri Apr 18 20:16:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3777 |
|
3778 * oct-obj.h, oct-obj.cc: Implement octave_value_list with |
|
3779 Array<octave_value> as a data member, not as a class derived from |
|
3780 Array<octave_value>. |
|
3781 (octave_value_list::length, octave_value_list::resize, |
|
3782 octave_value_list::prepend, octave_value_list::append, |
|
3783 octave_value_list::reverse): New functions. |
|
3784 |
|
3785 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
3786 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
3787 op-s-cm.cc, op-s-m.cc: Use new bool ops from liboctave instead of |
|
3788 the macros defined in ops.h. |
|
3789 |
2865
|
3790 Thu Apr 17 13:12:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3791 |
|
3792 * parse.y (ABORT_PARSE): Handle forced_interactive the same as |
|
3793 interactive. |
|
3794 |
|
3795 Mon Apr 14 01:46:50 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3796 |
|
3797 * input.cc (octave_read): Don't forget to free input buffer if it |
|
3798 exists and has zero length. |
|
3799 (gnu_readline): Free buf if fgets returns 0. |
|
3800 |
|
3801 Wed Apr 9 00:03:57 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3802 |
|
3803 * time.cc (mk_tm_map): Only set zone field if HAVE_TM_ZONE or |
|
3804 HAVE_TZNAME are defined. |
|
3805 |
|
3806 Tue Apr 8 12:39:21 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3807 |
|
3808 * time.cc (extract_tm): Set tm.tm_zone if HAVE_TM_ZONE is defined, |
|
3809 not if HAVE_TMZONE is defined. |
|
3810 |
|
3811 * Makefile.in (%.oct : %.o): Use $(SH_LD), not $(CXX). |
|
3812 |
|
3813 Wed Apr 2 21:32:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3814 |
|
3815 * dynamic-ld.cc, dynamic-ld.h (init_dynamic_linker): Delete |
|
3816 function and declaration. |
|
3817 * octave.cc (main): Don't call it. |
|
3818 |
2856
|
3819 Mon Mar 31 00:37:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3820 |
2859
|
3821 * pt-base-exp.h (tree_expression::eval): Give arg a default value. |
|
3822 * pt-const.h (tree_constant::eval): Likewise. |
|
3823 * pt-exp.h (tree_prefix_expression::eval, tree_colon_expression::eval, |
|
3824 tree_postfix_expression::eval, tree_unary_expression::eval, |
|
3825 tree_binary_expression::eval, tree_boolean_expression::eval, |
|
3826 tree_simple_assignment_expression::eval): Likewise. |
|
3827 * pt-fcn.h (tree_function::eval): Likewise. |
|
3828 * pt-fvc.h (tree_identifier::eval, tree_indirect_ref::eval, |
|
3829 tree_builtin::eval): Likewise. |
|
3830 * pt-mat.h (tree_matrix::eval): Likewise. |
|
3831 * pt-misc.h (tree_statement_list::eval): Likewise. |
|
3832 * pt-mvr-base.h (tree_multi_val_ret::eval): Likewise. |
|
3833 * pt-mvr.h (tree_oct_obj::eval, tree_index_expression::eval, |
|
3834 tree_multi_assignment_expression::eval): Likewise. |
|
3835 * dassl.cc, fsolve.cc, load-save.cc, lsode.cc, npsol.cc, parse.y, |
|
3836 pt-cmd.cc, pt-exp-base.cc, pt-exp.cc, pt-fvc.cc, pt-mat.cc, |
|
3837 pt-misc.cc, pt-mvr.cc, pt-plot.cc, quad.cc, toplev.cc, variables.cc: |
|
3838 Change callers of eval() to use bool instead of int and to make |
|
3839 use of default argument value. |
|
3840 |
|
3841 * toplev.h, toplev.cc (parse_and_execute, eval_string): Flag args |
|
3842 are now bool instead of int. |
|
3843 |
2856
|
3844 * symtab.h, symtab.cc: Use bool instead of int in more places. |
|
3845 * variables.h, variables.cc: Likewise. |
2857
|
3846 * lex.h, lex.l: Likewise. |
|
3847 * parse.y: Likewise. |
2856
|
3848 * help.cc, input.cc, lex.l, load-save.cc, parse.y, pt-fcn.cc: |
|
3849 Change callers of symbol_table::lookup to use bool instead of int, |
|
3850 and to make use of default arguments. |
|
3851 |
2850
|
3852 Fri Mar 28 15:33:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3853 |
2852
|
3854 * parse.y (Vwarn_comma_in_declaration): Delete. |
|
3855 (symbols_of_parse): Delete DEFVAR for warn_comma_in_declaration. |
|
3856 (decl1): Don't allow commas in declarations. |
|
3857 |
2850
|
3858 * lsode.cc (struct LSODE_OPTIONS): Handle integer options. |
|
3859 (print_lsode_option_list, set_lsode_option, show_lsode_option): Ditto. |
|
3860 (lsode_option_table): Add element for step limit. |
|
3861 (lsode_user_jacobian): New function. |
|
3862 (Flsode): Allow function name arg to be a 2-element string array |
|
3863 specifying the function and jacobian function. |
|
3864 |
|
3865 * variables.cc (get_global_value, set_global_value): New functions. |
|
3866 |
2846
|
3867 Wed Mar 26 17:08:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3868 |
|
3869 Implement static variable declaration: |
|
3870 |
|
3871 * lex.l (is_keyword): Handle static. |
|
3872 * octave.gperf: Likewise. |
|
3873 * parse.y (Vwarn_comma_in_declaration): Rename from |
|
3874 Vwarn_comma_in_global_decl. |
|
3875 Handle new static command. |
|
3876 * pt-cmd.h, pt-cmd.cc (class tree_decl_command): New base class |
|
3877 for static and global declaration commands. |
|
3878 (class tree_global_command): Derive from tree_decl_command. |
|
3879 (class tree_static_command): New class, derived from tree_decl_command. |
|
3880 * pt-fvc.cc, pt-fvc.h (tree_identifier::mark_as_static): New function. |
|
3881 * pt-misc.h, pt-misc.h (class tree_decl_elt): Rename from tree_global. |
|
3882 (class tree_decl_init_list): Rename from tree_global_init_list. |
|
3883 * pt-pr-code.cc, pt-pr-code.h (tree_print_code::visit_decl_command): |
|
3884 Rename from visit_global_command. |
|
3885 (tree_print_code::visit_decl_elt): Rename from visit_global. |
|
3886 (tree_print_code::visit_decl_init_list): Rename from |
|
3887 visit_global_init_list. |
|
3888 * pt-walk.h (tree_walker::visit_decl_command): Rename from |
|
3889 visit_global_command. |
|
3890 (tree_walker::visit_decl_elt): Rename from visit_tree_global. |
|
3891 (tree_walker::visit_decl_init_list): Rename from |
|
3892 visit_global_init_list. |
|
3893 * variables.cc (link_to_global_variable): Trying to make a static |
|
3894 variable global is an error. |
|
3895 * SLList-misc.cc: Instantiate lists of pointers to tree_decl_elt |
|
3896 objects, not tree_global objects. |
|
3897 * symtab.h, symtab.cc (symbol_record::tagged_static): New field. |
|
3898 (symbol_record::mark_as_static, symbol_record::is_static): |
|
3899 New functions. |
|
3900 * symtab.cc (symbol_record::init_state): Initialize tagged_static. |
|
3901 (symbol_record::clear): Don't clear static variables. |
|
3902 * symtab.cc (push_context): Don't do anything for static variables. |
|
3903 |
2825
|
3904 Tue Mar 25 17:17:17 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3905 |
2881
|
3906 * ov-bool-mat.cc, ov-bool-mat.h, ov-bool.cc, ov-bool.h: New files. |
2832
|
3907 |
2831
|
3908 * defaults.cc (symbols_of_defaults): DEFCONST OCTAVE_HOME. |
|
3909 |
|
3910 * toplev.cc (octave_config_info): Delete use of CXXLIBS. |
|
3911 * oct-conf.h.in: Ditto. |
|
3912 |
2830
|
3913 * octave.cc (maximum_braindamage): Don't bind prefer_zero_one_indexing. |
|
3914 * ov.h: Don't declare Vprefer_zero_one_indexing. |
|
3915 * ov.cc: Don't define Vprefer_zero_one_indexing. |
|
3916 (prefer_zero_one_indexing): Delete. |
|
3917 (symbols_of_value): Delete DEFVAR for prefer_zero_one_indexing. |
|
3918 |
2825
|
3919 * ov.h, ov.cc, ov-base.h, ov-base.cc: Add constructors and |
|
3920 extractors for bool and boolMatrix types. |
|
3921 |
|
3922 * ov.cc (install_types): Register octave_bool and |
|
3923 octave_bool_matrix types. |
|
3924 |
|
3925 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
3926 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
3927 op-s-cm.cc, op-s-m.cc, op-s-s.cc, ov-re-mat.cc: |
|
3928 Return boolMatrix instead of Matrix object. |
|
3929 * ops.h (BOOL_OP3, MX_MX_BOOL_OP): Likewise. |
|
3930 |
|
3931 * op-b-b.h, op-b-b.cc, op-bm-bm.h, op-bm-bm.cc: New files. |
|
3932 * Makefile.in: Add them to the lists. |
|
3933 * ops.cc: Include header files here. |
|
3934 (install_ops): Call install_b_b_ops() and install_bm_bm_ops() here. |
|
3935 |
|
3936 * variables.cc (symbols_of_variables): Don't rely on default |
|
3937 conversion from int to double for value returned from |
|
3938 default_history_size(). |
|
3939 |
|
3940 * pr-output.cc: Include cstdio. |
|
3941 |
|
3942 * parse.y (param_list_end): Fix typo in last change. |
|
3943 |
|
3944 * quad.cc (quad): Cast integer return values to double. |
|
3945 * npsol.cc (show_npsol_option): Likewise. |
|
3946 * qpsol.cc (show_qpsol_option): Likewise. |
|
3947 * file-io.cc (Fsprintf, Ffwrite): Likewise. |
|
3948 |
|
3949 Mon Mar 24 13:11:47 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3950 |
|
3951 * ov-typeinfo.cc (typeinfo): If invoked with an argument, return |
|
3952 the type of the argument as a string. Fix doc string. |
|
3953 |
2821
|
3954 Thu Mar 20 14:47:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3955 |
|
3956 * mk-oct-links (links_dir): Don't use -h option for grep. It's |
|
3957 not needed since we are working on one file at a time anyway. |
|
3958 |
2819
|
3959 Mon Mar 17 10:53:29 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3960 |
|
3961 * lex.l (handle_identifier): When handling indirect_ref, set |
|
3962 lexer_flags.quote_is_transpose to 1 so that a.b' to work as |
|
3963 expected. |
|
3964 |
|
3965 * parse.y (param_list_beg, param_list_end): New nonterminals. |
|
3966 (param_list, param_list1): Use them. |
|
3967 |
2811
|
3968 Wed Mar 12 16:57:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3969 |
|
3970 * Makefile.in (install-strip): New target. |
|
3971 |
2806
|
3972 Mon Mar 10 22:38:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3973 |
|
3974 * Makefile.in (clean): Delete .oct files too. |
|
3975 |
|
3976 * toplev.cc (Vdefault_eval_print_flag): New static variable. |
|
3977 (eval_string): New arg, print. |
|
3978 (Feval): Pass Vdefault_eval_print_flag to eval_string. |
|
3979 (default_eval_print_flag): New function. |
|
3980 (symbols_of_toplev): New function. |
|
3981 |
|
3982 * variables.cc (install_builtin_variables): Call it. |
|
3983 |
|
3984 * pt-exp.h, pt-exp.cc (class tree_boolean_expression): Rename enum |
|
3985 fields `and' and `or' to `bool_and' and `bool_or'. |
|
3986 (tree_unary_expression): Rename enum field `not' to `unot'. |
|
3987 (class tree_binary_expression): Rename enum fields `and' and `or' |
|
3988 to `el_and' and `el_or'. |
|
3989 * parse.y: Change all uses. |
|
3990 |
|
3991 * time.cc (extract_tm): Truncate field values instead of rounding. |
|
3992 (gmtime, localtime): Likewise, for timeval. |
|
3993 |
|
3994 * ov.h (class octave_value): Delete unused variable freeptr. |
|
3995 |
|
3996 * mappers.cc: Delete functions that are already in |
|
3997 liboctave/lo-mappers.cc. |
|
3998 |
|
3999 * oct-strstrm.cc (octave_base_strstream::tell): Use const_cast, |
|
4000 not static_cast. |
|
4001 |
|
4002 * help.cc (help_from_list): Add missing const qualifiers. |
|
4003 * help.h (struct help_list): Likewise. |
|
4004 * lex.l (match_any, plot_style_token): Likewise. |
|
4005 * load-save.cc (extract_keyword, ascii_save_type): Likewise. |
|
4006 * oct-hist.cc (mk_tmp_hist_file): Likewise. |
|
4007 * octave.cc (execute_startup_files): Likewise. |
|
4008 * octave.gperf (struct octave_kw): Likewise. |
|
4009 * pr-output.cc (pr_any_float): Likewise. |
|
4010 * pt-mvr.cc (tree_index_expression::eval_error): Likewise. |
|
4011 * pt-exp-base.h, pt-exp.h, pt-exp.cc: Likewise. |
|
4012 * parse.y: Likewise. |
|
4013 |
2800
|
4014 Sun Mar 9 03:46:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4015 |
2806
|
4016 * pt-exp-base.h (tree_expression): Delete extra comma at end of list. |
|
4017 |
|
4018 * dirfns.cc error.cc file-io.cc fsolve.cc input.cc load-save.cc |
|
4019 npsol.cc pt-fcn.cc qpsol.cc quad.cc syscalls.cc toplev.cc |
|
4020 variables.cc: Eliminate embedded newlines in string constants. |
|
4021 |
|
4022 * Map.cc, data.cc, dirfns.cc, dynamic-ld.cc, file-io.cc, |
|
4023 fsolve.cc, getgrent.cc, getpwent.cc, getrusage.cc, help.cc, |
|
4024 input.cc, load-save.cc, mappers.cc, minmax.cc, npsol.cc, |
|
4025 oct-fstrm.cc, oct-procbuf.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
4026 oct-stream.cc, oct-stream.h, oct-strstrm.cc, octave.cc, |
|
4027 ov-base.h, ov-range.cc, ov-typeinfo.cc, ov.cc, pr-output.cc, |
|
4028 pt-cmd.cc, pt-exp.cc, pt-fcn.cc, pt-fvc.cc, pt-mat.cc, |
|
4029 pt-misc.cc, pt-plot.cc, qpsol.cc, quad.cc, sort.cc, strfns.cc, |
|
4030 symtab.cc, syscalls.cc, sysdep.cc, time.cc, toplev.cc, |
|
4031 unwind-prot.cc, unwind-prot.h, variables.cc, xpow.cc: |
|
4032 Use `static_cast<T> (val)' instead of old C-style `(T) val' casts. |
2800
|
4033 |
2799
|
4034 Sat Mar 8 02:35:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4035 |
|
4036 * load-save.cc (save_ascii_data, save_three_d): Where appropriate, |
|
4037 use bool instead of int. |
|
4038 (save_binary_data, save_mat_binary_data, save_ascii_data): |
|
4039 Print warning instead of error for wrong type arg. |
|
4040 |
|
4041 * gripes.cc (gripe_wrong_type_arg): New arg, is_error. |
|
4042 |
|
4043 * pt-plot.cc (save_in_tmp_file): Call save_ascii_data with bool |
|
4044 arg, not int. |
|
4045 |
2797
|
4046 Fri Mar 7 00:56:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4047 |
|
4048 * dassl.cc (show_dassl_option): For values that are determined |
|
4049 automatically, return a string instead of a magic value (-1.0). |
|
4050 * fsolve.cc (show_fsolve_option): Likewise. |
|
4051 * lsode.cc (show_lsode_option): Likewise. |
|
4052 * npsol.cc (show_npsol_option): Likewise. |
|
4053 * qpsol.cc (show_qpsol_option): Likewise. |
|
4054 |
|
4055 * variables.cc (extract_function): New function. |
|
4056 * dassl.cc (Fdassl): Use it instead of is_valid_function. |
|
4057 * fsolve.cc (Ffsolve): Likewise. |
|
4058 * npsol.cc (Fnpsol): Likewise. |
|
4059 * qpsol.cc (Fqpsol): Likewise. |
|
4060 * quad.cc (Fquad): Likewise. |
|
4061 |
2795
|
4062 Thu Mar 6 20:07:24 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4063 |
|
4064 * sighandlers.cc (my_friendly_exit, octave_new_handler, |
|
4065 sigfpe_handler, sigpipe_handler): Don't all error() or warning(). |
|
4066 |
|
4067 * pager.cc (pager_death_handler): Don't try to clear pager, just |
|
4068 print message to cerr. |
|
4069 (do_sync): If the status of the pager is bad or it looks like it |
|
4070 is dead, restore the interrupt handler. |
|
4071 |
|
4072 * load-save.cc (extract_keyword (istream&, char*, int&)): |
|
4073 Move declaration of buf inside loop, to avoid deleting its guts |
|
4074 and then trying to reuse it. |
|
4075 (extract_keyword (istream&, char*)): Likewise. |
|
4076 |
2790
|
4077 Tue Mar 4 20:36:53 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4078 |
2791
|
4079 * pt-fcn.cc (tree_function::eval): Protect function from being |
|
4080 redefined while it is being evaluated. |
|
4081 (unprotect_function): New function, for use with unwind_protect stuff. |
|
4082 * pt-fcn.h (tree_function::symtab_entry): New data member. |
|
4083 (tree_function::init): Initialize it to 0. |
|
4084 (tree_function::stash_symtab_ptr): New function. |
|
4085 * parse.y (frob_function_def): Stash pointer to function's |
|
4086 symbol_record in the function definition. |
|
4087 |
|
4088 * symtab.cc (symbol_record::read_only_error): New argument, |
|
4089 action. Change all callers. |
|
4090 (symbol_record::rename): Don't allow read-only symbols to be renamed. |
|
4091 |
2790
|
4092 * variables.cc (Fexist): Don't let files with `.' in their names |
|
4093 confuse us. |
|
4094 |
|
4095 * symtab.cc (valid_identifier (const string&)): New function. |
|
4096 |
2779
|
4097 Sat Mar 1 15:23:14 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2775
|
4098 |
|
4099 * Version 2.0.5 released. |
|
4100 |
2779
|
4101 Sat Mar 1 01:34:08 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4102 |
|
4103 * Makefile.in (stamp-oct-links): New target. Make links in build |
|
4104 directory too, so that the tests will work. |
|
4105 |
2777
|
4106 * quad.cc: If quad is defined, undefine it. |
|
4107 |
2775
|
4108 * octave.cc: If WITH_KPATHSEARCH is defined, don't define |
|
4109 program_invocation_name or program_invocation_short_name. |
2774
|
4110 |
|
4111 * strftime.c: Update to current version from FSF. |
|
4112 * time.cc (Fstrftime): Call strftime with buf = 0 to get buffer |
|
4113 size, then call again to actually format the time struct. |
|
4114 |
2762
|
4115 Fri Feb 28 01:49:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4116 |
2764
|
4117 Implement switch statement: |
|
4118 |
|
4119 * parse.y (Vwarn_variable_switch_label): New static variable. |
|
4120 (warn_variable_switch_label): New function. |
|
4121 (symbols_of_parse): Provide warn_variable_switch_label as Octave |
|
4122 variable here. |
|
4123 (make_switch_case, finish_switch_command): New functions. |
|
4124 (maybe_warn_variable_switch_label): New function. |
|
4125 (end_error): Handle endswitch. |
|
4126 (switch_command, case_list, case_list1, switch_case, default_case): |
|
4127 New nonterminals. |
|
4128 (command): Add switch_command here. |
|
4129 * lex.l (is_keyword): Handle switch, case, otherwise, and endswitch. |
|
4130 * octave_gperf: Recognize switch, case, otherwise, and endswitch. |
|
4131 * token.h (end_tok_type): New item, switch_end. |
|
4132 * pt-cmd.cc (tree_switch_command): New class. |
|
4133 * pt-misc.cc (tree_switch_case, tree_switch_case_list): New classes. |
|
4134 * pt-pr-code.cc (tree_print_code::visit_switch_case, |
|
4135 tree_print_code::visit_switch_case_list, |
|
4136 tree_print_code::visit_switch_command): New functions. |
|
4137 * pt-walk.h (tree_walker::visit_switch_case, |
|
4138 tree_walker::visit_switch_case_list, |
|
4139 tree_walker::visit_switch_command): New pure virtual declarations. |
|
4140 Implement new switch statement. |
|
4141 * SLList-misc.cc: Instantiate lists of pointers to |
|
4142 tree_switch_case objects too. |
|
4143 |
|
4144 * lex.h, lex.l, parse.y: Delete all references to lexer_flags::iffing. |
|
4145 |
2762
|
4146 * syswait.h: Include sys/wait.h on NeXT systems, but don't use the |
|
4147 WIFEXTED, WEXITSTATUS, and WIFSIGNALLED macros defined there. |
|
4148 Also define waitpid in terms of wait4. From Rex A. Dieter |
|
4149 <rdieter@math.unl.edu>. |
|
4150 |
2759
|
4151 Wed Feb 26 16:43:31 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4152 |
|
4153 * oct-stream.cc (octave_base_stream::do_scanf): Don't report an |
|
4154 error if a conversion fails or we reach EOF. |
|
4155 |
2745
|
4156 Tue Feb 25 22:21:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4157 |
|
4158 * time.cc (strftime): increase initial buffer size. |
|
4159 |
|
4160 Mon Feb 24 17:49:21 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4161 |
|
4162 * pt-fvc.cc (tree_builtin::eval): Enable checking for max number |
|
4163 of arguments. |
|
4164 |
|
4165 * error.cc (handle_message): Don't fail if args is empty. |
|
4166 |
|
4167 Sun Feb 23 22:42:52 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4168 |
|
4169 * lex.h (lexical_feedback::looking_at_return_list): New field. |
|
4170 (lexical_feedback::looking_at_parameter_list): Ditto. |
|
4171 * lex.l (lexical_feedback::init): Initialize them. |
|
4172 (handle_identifier): Use them. |
|
4173 * parse.y: Likewise. |
|
4174 |
2712
|
4175 Fri Feb 21 15:35:18 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4176 |
2716
|
4177 * lex.l: Require flex 2.5 or later (we really want 2.5.4 or later, |
|
4178 but there seems to be no good way to check the patchlevel). |
|
4179 |
2712
|
4180 * oct-stream.cc (octave_base_stream::oscanf): Instead of returning |
|
4181 an error, just quit processing after a conversion fails. |
|
4182 |
2709
|
4183 Thu Feb 20 02:58:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2702
|
4184 |
|
4185 * Version 2.0.4 released. |
|
4186 |
2706
|
4187 Wed Feb 19 10:30:14 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4188 |
2705
|
4189 * sighandlers.cc (octave_ignore_interrupts, |
|
4190 octave_catch_interrupts, octave_set_interrupt_handler): |
|
4191 Return old value, not pointer to static data. Fix all uses. |
|
4192 |
|
4193 * sighandlers.h (octave_interrupt_handler): Move declaration here. |
|
4194 * sighandlers.cc: From here. |
|
4195 |
|
4196 * toplev.cc: Undo previous change. |
|
4197 |
2702
|
4198 * lex.l (handle_identifier): Allow commands like ls, save, etc. to |
|
4199 also be used as simple variable names. Also make it possible to |
|
4200 use the normal function call syntax to invoke them. |
|
4201 |
2693
|
4202 Tue Feb 18 09:22:04 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2689
|
4203 |
2702
|
4204 * Makefile.in (%.oct:%.o, %.oct:pic/%.o): Use $(SH_LDFLAGS) here. |
|
4205 |
2690
|
4206 * Version 2.0.3 released. |
|
4207 |
2693
|
4208 Tue Feb 18 00:27:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4209 |
|
4210 * toplev.cc (run_command_and_return_output): |
|
4211 Block SIGCHLD while running subprocess. |
|
4212 (cleanup_iprocstream): Unblock it here. |
|
4213 |
|
4214 * sighandlers.h (BLOCK_SIGNAL, BLOCK_CHILD, UNBLOCK_CHILD): Move here. |
|
4215 * sighandlers.cc: From here. |
|
4216 |
2692
|
4217 * toplev.cc (system): Shift then mask exit status. |
|
4218 |
|
4219 * help.cc (try_info): Shift first, then mask exit status. |
|
4220 |
2689
|
4221 * toplev.cc (octave_config_info): Handle option argument. |
|
4222 |
2686
|
4223 Fri Feb 14 16:23:30 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4224 |
2687
|
4225 * oct-stream.cc (octave_base_stream::do_scanf): Don't forget to |
|
4226 check to see if the result matrix needs resizing! |
|
4227 |
2686
|
4228 * Makefile.in (bin-dist): Don't write empty strings to LIBRARIES. |
|
4229 |
2669
|
4230 Thu Feb 13 03:02:08 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4231 |
2676
|
4232 * Makefile.in (stamp-prereq): Depend on stamp-picdir. |
|
4233 (all): Don't depend on stamp-prereq or stamp-picdir. |
|
4234 (stamp-tinst, stamp-interp, libtinst.a, liboctinterp.a): |
|
4235 Do depend on stamp-prereq. |
|
4236 (stamp-picdir): Silence noise about making pic. |
|
4237 (stamp-tinst, stamp-interp): Use $(SH_LD) $(SH_LDFLAGS) instead of |
|
4238 $(CXX) -shared. |
|
4239 |
2675
|
4240 * oct-conf.h.in: Reinstate RLD_FLAG. |
|
4241 * toplev.cc (octave_config_info): Likewise. |
|
4242 |
2672
|
4243 * data.cc (map_d_m, map_m_d, map_m_m): Rename from map. |
|
4244 (Fatan2): Use new function names. |
|
4245 |
|
4246 * pt-fvc.cc (apply_mapper_fcn): Use member function map() instead |
|
4247 of friend function. |
|
4248 |
2669
|
4249 * gripes.cc (gripe_wrong_type_arg (const char*, const string&)): |
|
4250 New function. |
|
4251 |
|
4252 Wed Feb 12 17:27:53 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4253 |
|
4254 * syscalls.cc (symbols_of_syscalls): Add O_ASYNC and O_SYNC. |
|
4255 |
|
4256 Mon Feb 10 01:22:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4257 |
|
4258 * dirfns.cc (Freaddir, Fmkdir, Frmdir, Frename): |
|
4259 Also return status and error message. |
|
4260 |
|
4261 * syscalls.cc (Fdup2, Fexec, Ffork, Ffcntl, Funlink, Fmkfifo, |
|
4262 Fpipe, Fwaitpid): Also return error message. |
|
4263 |
2664
|
4264 Sat Feb 8 17:16:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4265 |
2665
|
4266 * pt-exp.cc (tree_simple_assignment_expression::eval): Return |
|
4267 value of RHS, but (if printing) print complete value of LHS. |
|
4268 |
2664
|
4269 * pr-output.cc (octave_print_internal): Print a new line for empty |
|
4270 string matrices. |
|
4271 |
2663
|
4272 Wed Feb 5 14:30:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4273 |
|
4274 * oct-stream.cc (scanf_format_list::process_conversion): Accept |
|
4275 but don't actually use h, l, and L modifiers. Always insert l |
|
4276 modifier for floating point conversions. |
|
4277 |
2652
|
4278 Fri Jan 31 13:55:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4279 |
|
4280 * pager.cc (do_sync): Always flush the cout stream after writing. |
|
4281 |
2643
|
4282 Wed Jan 29 08:25:29 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4283 |
2648
|
4284 * defaults.cc (exec_path): Don't include bin_dir in std_path. |
|
4285 |
2646
|
4286 * pager.cc (do_sync): Flush the cout stream after writing if |
|
4287 running in interactive or forced_interactive mode. |
|
4288 |
|
4289 * mk-oct-links: Rename from mk-oct-links.in. |
|
4290 Don't use symbolic links. |
|
4291 * Makefile.in: Distribute mk-oct-links, not mk-oct-links.in |
|
4292 (mk-oct-links): Delete target. |
|
4293 (install-oct, bin-dist): Don't depend on mk-oct-links. |
|
4294 Run $(srcdir)/mk-oct-links, not ./mk-oct-links. |
|
4295 |
2643
|
4296 * qr.cc (qr): Doc fix. |
|
4297 |
2638
|
4298 Tue Jan 28 10:48:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4299 |
|
4300 * Makefile.in (install-inc): Create a relative symbolic link. |
|
4301 (install-bin): Create a relative symbolic link. |
|
4302 |
2630
|
4303 Mon Jan 27 12:12:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4304 |
2634
|
4305 * Version 2.0.2 released. |
|
4306 |
|
4307 * Makefile.in (CXXFLAGS_NO_PT_FLAGS): Rename from XALL_CXXFLAGS. |
|
4308 Substitute bsd_gcc_kluge_targets_frag. |
|
4309 |
2630
|
4310 * sysdep.cc (Fsleep): New function. |
|
4311 (Fusleep): New function. |
|
4312 |
|
4313 * toplev.cc (octave_config_info): Don't include RLD_FLAG. |
|
4314 * oct-conf.h.in: Don't define RLD_FLAG |
|
4315 |
2626
|
4316 Sun Jan 26 19:41:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4317 |
|
4318 * sighandlers.cc (sigchld_handler): Block SIGCHLD while |
|
4319 sigchld_hander is running. |
|
4320 |
2624
|
4321 Sat Jan 25 22:36:39 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4322 |
|
4323 * Makefile.in (bin-dist): Update for 2.x. |
|
4324 |
2621
|
4325 Fri Jan 24 10:05:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4326 |
|
4327 * mk-oct-links.in: New arg, -p, to just print list of files to link. |
|
4328 |
|
4329 * lex.l (handle_number): Convert `D' or `d' exponents to `e' |
|
4330 before scanning. |
|
4331 |
2620
|
4332 Thu Jan 23 10:00:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4333 |
|
4334 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_no_op_command): |
|
4335 New function. |
|
4336 * pt-cmd.h, pt-cmd.cc (tree_no_op_command): New class. |
|
4337 * parse.y (make_break_command, make_continue_command, |
|
4338 make_return_command): Where they don't really make sense, turn |
|
4339 these commands into no-ops. Accept return and break if reading a |
|
4340 script file. |
|
4341 * toplev.cc (parse_and_execute): Handle return and break in script |
|
4342 files. Quit executing commands if an error occurs when reading a |
|
4343 script file. Set global_command to 0 after deleting it. |
|
4344 (main_loop): If not interactive or forced_interactive, handle |
|
4345 break and return, and quit executing commands if an error occurs. |
|
4346 Set global_command to 0 after deleting it. |
|
4347 * error.cc (Ferror): Doc fix. |
|
4348 * pt-walk.h (tree_walker): Add declaration for visit_no_op_command. |
|
4349 |
2618
|
4350 Wed Jan 22 20:54:12 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4351 |
|
4352 * input.cc (gnu_readline): If not using readline, flush |
|
4353 rl_outstream after printing prompt. |
|
4354 (octave_gets): Also call flush_octave_stdout() if |
|
4355 forced_interactive, not just if interactive. |
|
4356 (do_input_echo): If forced_interactive, only echo prompt and |
|
4357 command line if also reading a script file. |
|
4358 |
2616
|
4359 Tue Jan 21 23:02:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4360 |
|
4361 * SLList.h: Include "BaseSLList.h", not <BaseSLList.h>. |
|
4362 |
2610
|
4363 Mon Jan 20 11:11:12 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4364 |
2614
|
4365 * lex.l (token_stack): Don't declare static. |
|
4366 * pt-plot.cc (tmp_files): Likewise. |
|
4367 * toplev.cc (octave_atexit_functions): Likewise. |
|
4368 * unwind-prot.cc (unwind_protect_list): Likewise. |
|
4369 |
2613
|
4370 * ops.h (MX_MX_BOOL_OP): Correctly handle case of one or both |
|
4371 arguments being empty. Change all callers. |
|
4372 |
|
4373 * oct-stream.cc (printf_value_cache::looking_at_string): |
|
4374 Handle empty strings correctly now that they are 0x0. |
|
4375 |
2610
|
4376 * file-io.cc: Don't include "syswait.h" here. |
|
4377 |
|
4378 Sun Jan 19 22:38:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4379 |
|
4380 * oct-stream.h (octave_base_stream::seek): Declare offset arg as |
|
4381 streamoff, not streampos. |
|
4382 (octave_stream::seek): Likewise. |
|
4383 * oct-strstrm.h (octave_base_strstream::seek): Likewise. |
|
4384 * oct-stdstrm.h (octave_base_stdiostream::seek): Likewise. |
|
4385 * oct-iostrm.h (octave_base_iostream::seek): Likewise. |
|
4386 * oct-fstrm.h (octave_fstream::seek): Likewise. |
|
4387 |
2609
|
4388 Fri Jan 17 18:13:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4389 |
|
4390 * file-io.cc (Ffflush): Handle stdout as a special case. |
|
4391 |
|
4392 * oct-stream.cc (octave_stream_list::do_get_file_number): |
|
4393 Do the work for octave_stream::get_file_number. |
|
4394 (octave_stream_list::get_file_number): Convert to static function. |
|
4395 |
2608
|
4396 Wed Jan 8 11:42:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4397 |
|
4398 * log.cc (sqrtm): For complex arg case, compute sqrt, not log. |
|
4399 |
2602
|
4400 Tue Jan 7 00:16:41 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4401 |
|
4402 * Version 2.0.1 released. |
|
4403 |
|
4404 Mon Jan 6 00:00:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4405 |
|
4406 * pt-mat.cc (tm_row_const_rep::all_mt): New variable. |
|
4407 (tm_row_const::all_empty): New function. |
|
4408 (tm_row_const::tm_row_const_rep::init): Set all_mt here. |
|
4409 (tm_const::all_mt): New variable. |
|
4410 (tm_const::all_emtpy): New function. |
|
4411 (tm_const::init): Set all_mt here. |
|
4412 (tree_matrix::eval): Return an empty matrix if the list contains |
|
4413 only empty elements. If it contains only empty strings, return an |
|
4414 empty string. |
|
4415 |
2601
|
4416 Sun Jan 5 12:50:25 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4417 |
|
4418 * ops.h (SC_MX_BOOL_OP, MX_SC_BOOL_OP): New arg, empty_result. |
|
4419 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
4420 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
4421 op-s-cm.cc, op-s-m.cc, op-str-str.cc: Change all uses of |
|
4422 SC_MX_BOOL_OP and MX_SC_BOOL_OP macros. Return correct results |
|
4423 for empty matrix cases. |
|
4424 |
|
4425 * pt-fcn.cc (tree_function::eval): If Vdefine_all_return_values is |
|
4426 true, initialize return values before evaluating function, for |
|
4427 compatibility with Matlab. |
|
4428 |
|
4429 * oct-stream.cc (get_size): Correctly set size when arg is scalar. |
|
4430 |
|
4431 Thu Jan 2 12:40:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4432 |
|
4433 * Makefile.in (install-oct): Quote $(OCT_FILES) in for loop to |
|
4434 avoid syntax error from ksh. |
|
4435 |
|
4436 * pr-output.cc (octave_print_internal): Avoid unused parameter |
|
4437 warning from gcc. |
|
4438 |
2600
|
4439 Thu Dec 19 12:13:42 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4440 |
|
4441 * oct-stream.cc (octave_base_stream::do_scanf): |
|
4442 Don't treat %l{e,f,g} differently from %{e,f,g}. |
|
4443 (octave_base_stream::do_oscanf): Likewise. |
|
4444 |
|
4445 * sighandlers.cc (sigchld_handler): Fix typos. |
|
4446 |
2598
|
4447 Wed Dec 18 20:17:23 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4448 |
2599
|
4449 * file-io.cc (Ffgetl, Ffgets): Also return number of characters read. |
|
4450 |
|
4451 * ov-range.cc (octave_range::not): New function. |
|
4452 * ov-range.h (octave_range::uminus): New function. |
|
4453 |
2598
|
4454 * BaseSLList.cc: Include error.h. |
|
4455 (BaseSLList::error): Call ::error() to process error message. |
|
4456 |
2589
|
4457 Fri Dec 13 02:38:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4458 |
|
4459 * ov.cc (octave_value::convert_and_assign): Preserve lhs value if |
|
4460 assignment fails. |
|
4461 |
2586
|
4462 Wed Dec 11 12:33:16 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4463 |
|
4464 * pt-plot.cc (GPLOT_CMD_END): Don't put semicolons at the end of |
|
4465 each plot command; it causes trouble with gnuplot 3.5. |
|
4466 |
2580
|
4467 Tue Dec 10 00:31:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4468 |
2583
|
4469 * Version 2.0 released. |
|
4470 |
2584
|
4471 * pr-output.cc (set_format_style): Don't try to access argv unless |
|
4472 argc > 1. |
|
4473 |
2580
|
4474 * SLList-expr.cc SLList-misc.cc SLList-plot.cc SLList-str.cc |
|
4475 SLList-tc.cc SLList-tm.cc SLList.h SLStack-i.cc SLStack-pc.cc |
|
4476 SLStack-str.cc SLStack-sym.cc SLStack-tok.cc SLStack-ue.cc |
|
4477 SLStack-ui.cc, pt-mat.cc: Include Stack.h, Stack.cc, SLStack.cc, |
|
4478 and SLList.cc as necessary. |
|
4479 |
|
4480 * Stack.cc, SLStack.cc, SLList.cc: New files. |
|
4481 * Makefile.in (SOURCES): Add them to the list. |
|
4482 |
2575
|
4483 Mon Dec 9 12:03:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4484 |
2577
|
4485 * Makefile.in (install-bin): Use $(EXE) suffix so install will |
|
4486 find the right file on cygwin32 systems. |
|
4487 |
2575
|
4488 * ov.h: Declare proper form of do_binary_op as friend to |
|
4489 octave_value class. |
|
4490 |
2572
|
4491 Sat Dec 7 22:00:10 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4492 |
|
4493 * oct-stream.cc (do_printf_conv, do_scanf_conv, |
|
4494 do_oscanf_num_conv, do_oscanf_str_conv): Convert to real |
|
4495 functions instead of CPP macros, using templates where necessary. |
|
4496 (do_oscanf_num_conv, do_oscanf_str_conv): Correctly handle |
|
4497 discarded values. |
|
4498 |
2569
|
4499 Fri Dec 6 00:20:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4500 |
2572
|
4501 * Version 1.94. |
|
4502 |
2571
|
4503 * Map-*.cc, SLList-*.cc, SLStack-*.cc: Include config.h. |
|
4504 |
|
4505 * ov.h: Don't include SLList.h. |
|
4506 |
|
4507 * SLStack.cc: Delete. Move everything to SLStack.h. |
|
4508 |
|
4509 * BaseSLList.h, BaseSLList.cc: New files. Split out the |
|
4510 non-template base class parts of SLList. |
|
4511 |
2569
|
4512 * Makefile.in (TEMPLATE_SRC): Delete. Move files to SOURCES. |
|
4513 * Map.h, Map.cc: Add #pragma interface/implementation. |
|
4514 * SLStack.h, SLStack.cc: Add #pragma interface/implementation. |
|
4515 |
|
4516 * SLList.h, SLList.cc: New files, from libg++, but with #pragma |
|
4517 interface/implementation. |
|
4518 * Makefile.in (SOURCES): Add SLList.cc. |
|
4519 (INCLUDES): Add SLList.h. |
|
4520 |
2566
|
4521 Thu Dec 5 18:36:44 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4522 |
|
4523 * octave.cc: Don't include sun-utils.h. |
|
4524 |
2563
|
4525 Tue Dec 3 23:47:09 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4526 |
|
4527 * op-str-str.cc (eq, ne): Handle operations with scalars. |
|
4528 |
2555
|
4529 Thu Nov 21 12:30:36 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4530 |
|
4531 * ov-str-mat.h (octave_char_matrix_str): Provide transpose and |
|
4532 hermitian operators. |
|
4533 * ov-ch-mat.h (octave_char_matrix): Likewise. |
|
4534 |
2548
|
4535 Wed Nov 20 00:35:57 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4536 |
2554
|
4537 * sighandlers.h (struct octave_interrupt_handler): Provide |
|
4538 forward declaration here. |
|
4539 * sighandlers.cc (octave_interrupt_handler): New struct. |
|
4540 (octave_catch_interrupts): Rename from catch_interrupts. |
|
4541 (octave_ignore_interrupts, octave_set_interrupt_handler): |
|
4542 New functions. |
|
4543 * help.cc, oct-hist.cc, pager.cc, toplev.cc: Use new functions for |
|
4544 handling interrupts so that we can hide the details of whether or |
|
4545 not we have to deal with SIGBREAK. |
|
4546 |
|
4547 * pt-plot.cc [! HAVE_POSIX_SIGNALS] (open_plot_stream): |
|
4548 Simply ignore and restore the interrupt handler here. |
|
4549 |
|
4550 * sighandlers.cc (MAYBE_REINSTALL_SIGHANDLER): New macro. Use it |
|
4551 instead of always checking MUST_REINSTALL_SIGHANDLERS everywhere. |
|
4552 (sigchld_handler): If octave_child_list is empty, wait for any |
|
4553 child, but don't hang, and don't collect status info. |
|
4554 [__EMX__] (sigchld_handler): Save and restore handlers for SIGINT, |
|
4555 SIGBREAK, and SIGCHLD. Ignore them while waiting on children. |
|
4556 (install_signal_handlers): If SIGBREAK exists, handle it like SIGINT. |
|
4557 |
2552
|
4558 * toplev.cc [USE_READLINE] (clean_up_and_exit): |
|
4559 Call rl_deprep_terminal() to restore terminal settings. |
|
4560 |
|
4561 * sysdep.cc [__EMX__ && OS2] (Fextproc): New command. |
|
4562 [__EMX__ && OS2] (FEXTPROC): Alias for Fextproc. |
|
4563 |
|
4564 * Version 1.93. |
|
4565 |
2549
|
4566 * sysdep.cc (octave_chdir): [__EMX__]: Make copy of string before |
|
4567 converting to upper case. |
|
4568 |
2548
|
4569 * getgrent.cc (mk_gr_map): Only set the passwd field if |
|
4570 HAVE_GR_PASSWD is defined. |
|
4571 |
2533
|
4572 Tue Nov 19 12:01:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4573 |
2546
|
4574 * sysdep.cc (OS2_init): New function. |
|
4575 [__EMX__] (sysdep_init): Call it. |
|
4576 |
2542
|
4577 * lex.l (plot_style_token): Add new plot styles for gnuplot 3.6. |
2543
|
4578 * pt-plot.cc (subplot_style::columns_ok): Rename from |
|
4579 subplot_style::errorbars. Recognize more styles and do a better |
|
4580 job of diagnosing column number/style mismatches. |
2542
|
4581 |
2536
|
4582 * sighandlers.cc (my_friendly_exit): If we are called twice, try |
|
4583 to remove the signal handler for SIGABRT and the call abort (). |
|
4584 |
2534
|
4585 * help.cc (Ftype): If a function is defined from a file and |
|
4586 transformed text has not been requested, just print the contents |
|
4587 of the file. |
|
4588 |
2533
|
4589 * parse.y (fold): New functions for constant folding for binary |
|
4590 and unary expressions. Keep track of original text even when |
|
4591 transformations occur. |
|
4592 (make_binary_op, make_boolean_op, make_unary_op): Use them. |
|
4593 (finish_colon_expression, finish_matrix): Keep track of original |
|
4594 text even when transformations occur. |
|
4595 |
|
4596 * help.cc (Ftype): Don't mess with Vps4. |
|
4597 Handle new option `-transformed'. |
|
4598 |
|
4599 * pt-const.h, pt-const.cc (tree_constant::print): |
|
4600 New arg, pr_orig_text. |
|
4601 |
|
4602 * pt-exp.h, pt-exp.cc (tree_colon_expression::is_range_constant): |
|
4603 Delete. |
|
4604 |
|
4605 * pt-exp-base.h (tree_expression::original_text): New virtual function. |
|
4606 pt-exp-base.cc (tree_expression::original_text): Default version. |
|
4607 |
|
4608 * pt-pr-code.h (tree_print_code::print_original_text, |
|
4609 tree_print_code::prefix): New fields. |
|
4610 * pt-pr-code.cc (tree_print_code::visit_constant): Pass |
|
4611 print_original_text to tree_constant::print(). |
|
4612 (tree_print_code::indent): Use prefix instead of Vps4. |
|
4613 * pt-fcn.cc (tree_function::print_function_header, |
|
4614 tree_function::print_function_trailer): Pass Vps4 to |
|
4615 tree_print_code_constructor for prefix. |
|
4616 * pt-misc.cc (tree_statement::maybe_echo_code): Pass Vps4 to |
|
4617 tree_print_code_constructor for prefix. |
|
4618 |
|
4619 * pt-mat.h, pt-mat.cc (tree_matrix::all_elements_are_constant): |
|
4620 Rename from is_matrix_constant. |
|
4621 (tree_matrix_row::all_elements_are_constant): Likewise. |
|
4622 Change all callers. |
|
4623 |
|
4624 Mon Nov 18 14:13:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4625 |
|
4626 * Makefile.in (install-inc): Try harder to create the link from |
|
4627 include/octave to include/octave-VERSION. |
|
4628 |
2524
|
4629 Sun Nov 17 14:14:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4630 |
2527
|
4631 * Makefile.in (parse.cc): Expect 13 shift/reduce conflicts. |
2526
|
4632 |
2525
|
4633 * parse.y (set_stmt_print_flag): New function. |
|
4634 (sep_type): New member for bison %union declaration. |
|
4635 Simplify rules for statement lists keeping track of the type of |
|
4636 the first separator in the values associated with the |
|
4637 nonterminals for the separators. |
|
4638 |
2524
|
4639 * lex.l (handle_identifier): Set lexer_flags.doing_set if the |
|
4640 token is "gset", not "set". |
|
4641 |
|
4642 Sat Nov 16 21:41:26 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4643 |
|
4644 * Makefile.in (parse.cc, lex.cc): Add special rules for these files. |
|
4645 Delete pattern rules for .y and .l files. |
|
4646 |
2522
|
4647 Fri Nov 15 13:48:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4648 |
2523
|
4649 * pt-plot.cc: Put semicolons at the ends of all plot commands. |
|
4650 |
2522
|
4651 * defaults.cc (subst_octave_home): Start subsequent searchs from |
|
4652 the end of the replaced text. |
|
4653 |
|
4654 * pr-output.cc (pr_any_float): Kluge for SCO systems. |
|
4655 |
|
4656 * pr-output.cc (pr_any_float, pr_complex): Don't declare inline. |
|
4657 |
|
4658 * mappers.cc: Include lo-ieee.h, for isinf and isnan on SCO |
|
4659 systems. |
|
4660 |
2512
|
4661 Thu Nov 14 00:06:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4662 |
2520
|
4663 * pt-plot.cc (Fgset, Fgshow): New commands. |
|
4664 (Fshow): Print warning and call gshow. |
|
4665 (Fset): Print warning and call gset. |
|
4666 |
2517
|
4667 * variables.cc (parse_fcn_file): Add unwind-protect for file |
|
4668 pointer, so the file is always closed. |
|
4669 (get_help_from_file): Likewise. |
|
4670 * toplev.cc (parse_and_execute): Likewise. |
|
4671 |
2516
|
4672 * Makefile.in (install-oct): Depend on mk-oct-links. |
|
4673 (mk-oct-links): New target. |
|
4674 |
2512
|
4675 * Version 1.92. |
|
4676 |
2508
|
4677 Wed Nov 13 11:13:22 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4678 |
2512
|
4679 * sighandlers.cc (sys_siglist): [__EMX__]: Add definitions. |
|
4680 |
|
4681 * octave.cc (execute_startup_files): Allow init file name ot be |
|
4682 specified by an environment variable. |
|
4683 |
|
4684 * dirfns.cc (make_absolute): [__EMX__]: Path is already absolute |
|
4685 if it begins with any character followed by a colon. |
|
4686 |
2511
|
4687 * load-save.cc (read_mat_ascii_matrix, get_lines_and_columns, |
|
4688 get_complete_line): New functions, for reading headless text files. |
|
4689 (load_save_format): Add LS_MAT_ASCII, for headless text files. |
|
4690 (do_load): Handle LS_MAT_ASCII files. |
|
4691 Thanks to Mel Melchner <mjm@research.att.com> for initial version |
|
4692 of this code. |
|
4693 |
2508
|
4694 * sysdep.cc: Conditionally include ieeefp.h. |
|
4695 (BSD_init, SCO_init): New functions. |
|
4696 (sysdep_init): Conditionally call them here. |
|
4697 |
2499
|
4698 Tue Nov 12 00:14:56 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4699 |
2508
|
4700 * pt-plot.cc (open_plot_stream): Don't block SIGCHLD. |
|
4701 |
2499
|
4702 * load-save.cc (read_binary_data): When reading string arrays, be |
|
4703 sure to create an octave_char_matrix_str object, not just an |
|
4704 octave_char_matrix object. |
|
4705 (read_ascii_data): Likewise. |
|
4706 |
2497
|
4707 Mon Nov 11 22:52:58 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4708 |
|
4709 * load-save.cc (read_binary_data): Don't forget teminating NUL for |
|
4710 string that we plan to insert. |
|
4711 (read_ascii_data): Likewise. |
|
4712 |
2495
|
4713 Sun Nov 10 16:58:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4714 |
2496
|
4715 * dirfns.cc (Ffnmatch): New function. |
|
4716 |
2495
|
4717 * octave.cc (intern_argv): Use new string_vector constructor. |
|
4718 |
|
4719 * ov-str-mat.cc (octave_char_matrix_str::all_strings): Have |
|
4720 charMatrix::row_as_string() strip trailing whitespace. |
|
4721 |
|
4722 * dirfns.cc (Fglob): new function. |
|
4723 |
|
4724 * sysdep.cc (oct_tilde_expand): Provide version that works on |
|
4725 string vectors too. |
|
4726 (Ftilde_expand): Work on string vector args. |
|
4727 |
|
4728 * load-save.cc (save_binary_data): Call char_matrix_value() to |
|
4729 extract charMatrix from octave_value object, not all_strings(). |
|
4730 (save_ascii_data): Likewise. |
|
4731 * pt-mat.cc (tree_matrix::eval): Likewise. |
|
4732 |
|
4733 * ov.h (octave_value::all_strings): Return string_vector, not |
|
4734 charMatrix. |
|
4735 * ov-base.cc (octave_base_value::all_strings): Likewise. |
|
4736 * ov-str-mat.h, ov-str-mat.cc (octave_char_matrix_str::all_strings): |
|
4737 Likewise. |
|
4738 |
2487
|
4739 Fri Nov 8 09:54:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4740 |
2492
|
4741 * defaults.cc, dynamic-ld.cc, fn-cache.cc, help.cc, oct-hist.cc, |
|
4742 octave.cc, pager.cc, pt-fcn.cc, toplev.cc, utils.cc, variables.cc, |
|
4743 lex.l: Change #include "" to #include <> for defaults.h, |
|
4744 oct-conf.h, oct-gperf.h, y.tab.h, and version.h, to avoid getting |
|
4745 them from $srcdir when we really want the version from the build |
|
4746 directory. (Maybe this should be done for all the include files, |
|
4747 not just those that are auto-generated? Hmm.) |
|
4748 |
2488
|
4749 * defaults.h.in (CXXLIB_LIST, CXXLIB_PATH, FLIB_LIST, FLIB_PATH): |
|
4750 Delete. |
|
4751 |
2487
|
4752 * Makefile.in (install-oct): Use $(INSTALL_PROGRAM) for .oct files. |
|
4753 |
2477
|
4754 Thu Nov 7 07:59:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4755 |
2487
|
4756 * variables.cc (gobble_leading_white_space): New arg, update_pos. |
|
4757 * (is_function_file): Don't update file position information here. |
|
4758 |
2482
|
4759 * Version 1.91. |
|
4760 |
2479
|
4761 * pt-fvc.cc (tree_indirect_ref::reference): If the lhs object is |
|
4762 not a map, convert it to one. |
|
4763 |
|
4764 * ov-typeinfo.h (init_tab_sz): New static member. |
|
4765 |
2477
|
4766 * ov-struct.cc, ov-struct.h: Add hooks for custom memory management. |
|
4767 * ov-scalar.cc, ov-scalar.h: Likewise. |
|
4768 * ov-re-mat.cc, ov-re-mat.h: Likewise. |
|
4769 * ov-range.cc, ov-range.h: Likewise. |
|
4770 * ov-cx-mat.cc, ov-cx-mat.h: Likewise. |
|
4771 * ov-complex.cc, ov-complex.h: Likewise. |
|
4772 * ov-ch-mat.cc, ov-ch-mat.h: Likewise. |
|
4773 |
2474
|
4774 Wed Nov 6 12:32:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4775 |
2482
|
4776 * pager.cc (do_sync): Don't call clear_external_pager() here. |
2476
|
4777 |
2475
|
4778 * pt-const.h (tree_constant::allocator) New static member. |
|
4779 (tree_constant::operator new, tree_constant::operator delete): |
|
4780 Implement with custom allocator. |
|
4781 |
|
4782 * syscalls.cc (Fgetgid, Fgetegid): New functions. |
|
4783 |
|
4784 * sighandlers.cc (sigchld_handler): If necessary, reinstall |
|
4785 handler after call to waitpid(). |
|
4786 |
|
4787 * pager.cc (pager_death_handler): Don't use warning() to print |
|
4788 message. |
|
4789 |
|
4790 * getgrent.cc: New file. |
|
4791 * Makefile.in (DLD_SRC): Add it. |
|
4792 |
|
4793 * ov.cc (octave_value::print_with_name): Call is_map() instead of |
|
4794 print_as_structure(). |
|
4795 * ov-struct.cc (octave_struct::print): Likewise. |
|
4796 |
|
4797 * ov.h, ov.cc, pt-const.h: Delete force_numeric(), make_numeric(), |
|
4798 convert_to_matrix_type(), print_as_structure() member functions. |
|
4799 |
2474
|
4800 * variables.cc (is_function_file): Call gobble_leading_whitespace |
|
4801 here to strip all leading whitespace and comments. |
|
4802 (parse_fcn_file): If reading a function file, call |
|
4803 gobble_leading_whitespace again after resetting parser state to |
|
4804 grab help text. |
|
4805 |
2469
|
4806 Tue Nov 5 13:00:35 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4807 |
2472
|
4808 * syscalls.cc (Fgeteuid, Fgetuid): New functions. |
|
4809 |
|
4810 * getpwent.cc: Use gripe_not_supported from gripes.cc, instead of |
|
4811 local gripe_not_implemented function. |
|
4812 |
2470
|
4813 * input.cc, sysdep.cc, variables.cc: Only include readline.h and |
|
4814 history.h if USE_READLINE is defined. |
|
4815 |
|
4816 * help.cc: Make it compile without warnings even if USE_GNU_INFO |
|
4817 is not defined. |
|
4818 |
2469
|
4819 * sighandlers.h (octave_child_list): Don't define |
|
4820 HAVE_POSIX_SIGNALS HERE. |
|
4821 |
|
4822 * sighandlers.cc (SIGHANDLER_RETURN): New macro. |
|
4823 (generic_sig_handler, sigchld_handler, sigfpe_handler, |
|
4824 sigint_handler, sigpipe_handler): Use it. |
|
4825 (sigchld_handler, sigfpe_handler, sigint_handler, sigpipe_handler): |
|
4826 Only reinstall signal handler if MUST_REINSTALL_SIGHANDLER is defined. |
|
4827 |
2463
|
4828 Sun Nov 3 00:45:30 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4829 |
2466
|
4830 * pt-const.cc (tree_constant::print): Just call val.print(). |
|
4831 * ov-base.cc, ov-ch-mat.cc, ov-colon.cc, ov-complex.cc, |
|
4832 ov-cx-mat.cc, ov-range.cc, ov-re-mat.cc, ov-scalar.cc, |
|
4833 ov-str-mat.cc, ov-struct.cc ov-va-args.cc, ov.cc (print): |
|
4834 Handle pr_as_read_syntax arg. |
|
4835 |
|
4836 * defaults.cc (subst_octave_home): Search for prefix repeatedly in |
|
4837 retval, not s. |
|
4838 |
|
4839 * gripes.h: Make declaration of gripes_not_supported match |
|
4840 definition. |
|
4841 |
2465
|
4842 * mk-oct-links.in: In sed command, match "DEFUN_DLD *( *", not |
|
4843 "DEFUN_DLD_BUILTIN *( *". |
|
4844 |
|
4845 * chol.cc, colloc.cc, dassl.cc, det.cc, eig.cc, expm.cc, fft.cc, |
|
4846 fft2.cc, filter.cc, find.cc, fsolve.cc, fsqp.cc, getpwent.cc, |
|
4847 getrusage.cc, givens.cc, hess.cc, ifft.cc, ifft2.cc, inv.cc, |
|
4848 log.cc, lpsolve.cc, lsode.cc, lu.cc, minmax.cc, npsol.cc, pinv.cc, |
|
4849 qpsol.cc, qr.cc, quad.cc, qzval.cc, rand.cc, schur.cc, sort.cc, |
|
4850 svd.cc, syl.cc, time.cc: Change all uses of DEFUN_DLD_BUILTIN to |
|
4851 be just DEFUN_DLD. |
|
4852 |
|
4853 * defun-dld.h: Eliminate DEFUN_DLD_BUILTIN. |
|
4854 |
2464
|
4855 * syswait.h: Use #ifdef HAVE_SYS_WAIT_H, not #if HAVE_SYS_WAIT_H |
|
4856 to decide whether to include sys/wait.h. |
|
4857 |
|
4858 * pt-exp-base.h (tree_expression): Declare oper() here as a |
|
4859 virtual member function. |
|
4860 |
2463
|
4861 * pt-pr-code.cc (tree_print_code::visit_constant): Check for |
|
4862 string before checking for char_matrix. |
|
4863 |
|
4864 * ov-ch-mat.cc (octave_char_matrix::print): Supply correct number |
|
4865 of args to octave_print_internal(). |
|
4866 |
2457
|
4867 Sat Nov 2 20:44:55 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4868 |
2458
|
4869 * file-io.cc (Ftmpnam): Rename from Foctave_temp_file_name. |
|
4870 |
2457
|
4871 * Makefile.in (DLD_SRC): Move time.cc and getrusage.cc here from |
|
4872 SOURCES. Add getpwent.cc. |
|
4873 |
|
4874 * getrusage.cc: Rename from resource.cc. Make getrusage a |
|
4875 loadable function. |
|
4876 |
|
4877 * time.cc: Rename from timefns.cc. Make time functions loadable. |
|
4878 |
|
4879 * getpwent.cc: New file. |
|
4880 |
2439
|
4881 Wed Oct 30 01:06:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4882 |
2452
|
4883 * Version 1.90. |
|
4884 |
|
4885 * Makefile.in (DISTFILES): Add ChangeLog. |
|
4886 |
2449
|
4887 * ov-range.cc (octave_range::convert_to_str): New function. |
|
4888 |
|
4889 * ov-str-mat.h (octave_char_matrix_str::char_matrix_value): |
|
4890 Delete function. Already handled by octave_char_matrix class. |
|
4891 |
|
4892 * ov-ch-mat.h (octave_char_matrix::convert_to_str): New function. |
|
4893 |
2448
|
4894 * pager.cc (Fmore): Set page_screen_output to 1.0 or 0.0, not |
|
4895 "true" or "false". |
|
4896 |
2447
|
4897 * ov-ch-mat.cc, ov-struct.cc, ov-struct.h, pr-output.cc, |
|
4898 pt-cmd.cc, pt-const.cc, pt-const.h, pt-fcn.cc, pt-fvc-base.cc, |
|
4899 pt-fvc-base.h, pt-fvc.cc, pt-fvc.h, rand.cc, sighandlers.cc, |
|
4900 variables.cc, variables.h: Delete unused code. |
|
4901 |
2445
|
4902 * octave.cc: Only include pwd.h if HAVE_PWD_H. |
|
4903 |
|
4904 * oct-strstrm.h: Include <string>, not <string.h>. |
|
4905 |
2442
|
4906 * defaults.cc, dirfns.cc, file-io.cc, help.cc, input.cc, |
|
4907 oct-hist.cc, oct-procbuf.cc, oct-procbuf.h, octave.cc, pager.h, |
|
4908 procstream.h, pt-misc.cc, pt-plot.cc, sighandlers.cc, strftime.c, |
|
4909 syscalls.cc, sysdep.cc, syswait.h, toplev.cc, utils.cc, |
|
4910 variables.cc: Only include sys/types.h if HAVE_SYS_TYPES_H. |
|
4911 |
2440
|
4912 * error.h (panic): Use GCC_ATTR_NORETURN macro, not NORETURN. |
|
4913 * toplev.h (clean_up_and_exit): Likewise. |
|
4914 * utils.h (jump_to_top_level): Likewise. |
|
4915 |
2439
|
4916 * derfaults.h.in, defaults.cc (local_arch_lib_dir): New variable. |
|
4917 * defaults.cc (set_default_local_arch_lib_dir): New function. |
|
4918 (install_defaults): Call it. |
|
4919 (exec_path): Use Vlocal_arch_lib_dir here. |
|
4920 * toplev.cc (octave_config_info): Add localarchlibdir to structure. |
|
4921 |
2436
|
4922 Tue Oct 29 15:54:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4923 |
2437
|
4924 * Makefile.in (install-oct): Don't do anything if $(OCT_FILES) is |
|
4925 empty. |
|
4926 |
2436
|
4927 * ov-range.cc (octave_range::index): New Function. |
|
4928 (octave_range::all, octave_range::any, octave_range::is_true): |
|
4929 Make these functions work. |
|
4930 |
|
4931 * ov.cc (octave_value::try_assignment_with_conversion): Remove |
|
4932 left over debugging print statements. |
|
4933 |
|
4934 Mon Oct 28 10:49:03 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4935 |
|
4936 * strftime.c: Add missing #endif for previous change. |
|
4937 |
2435
|
4938 Sun Oct 27 14:06:44 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4939 |
|
4940 * oct-hist.cc (do_history): Rewite option parsing to avoid |
|
4941 (probably bogus) errors from g++ on cygwin32 system. |
|
4942 |
|
4943 * strftime.c: Use autoconf macros TIME_WITH_SYS_TIME and |
|
4944 HAVE_SYS_TIME_H to decide which time.h files to include. |
|
4945 |
|
4946 * oct-stream.h, oct-stream.cc (octave_stream::error, |
|
4947 octave_base_stream::error): Rename errno => err_num. |
|
4948 |
2432
|
4949 Sat Oct 26 10:40:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4950 |
2434
|
4951 * oct-hist.cc (do_history): Move declaration of file inside |
|
4952 conditional. |
|
4953 |
2432
|
4954 * defun.h (DEFVAR_INT): Set eternal flag with (svc_fcn != 0) |
|
4955 instead of (sv_fcn ? 1 : 0) |
|
4956 |
2427
|
4957 Fri Oct 25 01:10:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4958 |
2431
|
4959 * ov-ch-mat.h (octave_char_matrix::any): Return 0.0 instead of false. |
|
4960 (octave_char_matrix::all): Likewise. |
|
4961 |
|
4962 * input.cc (Fecho): When binding value of echo_executing_commands, |
|
4963 cast ECHO_* to double. |
|
4964 |
|
4965 * sighandlers.cc (octave_child_list::do_remove): Delete unused |
|
4966 variable `enlarge'. |
|
4967 |
|
4968 * pt-const.h (tree_constant::tree_constant (const tree_constant&)): |
|
4969 Don't pass arg to tree_fvc constructor. |
|
4970 |
2427
|
4971 * resource.cc (getrusage): [HAVE_GETRUSAGE && RUSAGE_TIMES_ONLY]: |
|
4972 Only fill in time values. |
|
4973 |
|
4974 Thu Oct 24 20:37:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4975 |
|
4976 * parse.y: Comment out the %expect declaration so byacc can |
|
4977 compile this file. |
|
4978 (if_cmd_list): Add missing semicolon. |
|
4979 Include <cstdlib> for getenv if using byacc. |
|
4980 |
|
4981 * ov.h: Move typedefs outside of octave_value class scope to avoid |
|
4982 problem with cygwin32 beta16 compiler. |
|
4983 |
2421
|
4984 Fri Oct 18 13:44:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4985 |
2423
|
4986 * ov.h (octave_value::index): Undo previous change. |
|
4987 * ov.cc (octave_value constructors): Call maybe_mutate() in most |
|
4988 cases. |
|
4989 |
|
4990 * ov-complex.cc (octave_complex::index): Avoid implicit type |
|
4991 conversion back to scalar type. |
|
4992 * ov-scalar.cc (octave_scalar::index): Likewise. |
|
4993 |
2421
|
4994 * ov.h (octave_value::index): Call maybe_mutate() on retval before |
|
4995 returning it. |
|
4996 |
2418
|
4997 Wed Oct 16 12:00:11 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4998 |
2420
|
4999 * ov.h (octave_value::struct_elt_val): New optional arg, silent. |
|
5000 * ov-base.h, ov-base.cc, ov-struct.h, ov-struct.cc: Likewise, but |
|
5001 for the derived classes the arg is required. |
|
5002 |
|
5003 * data.cc (Fstruct_contains): Require arguments to be struct and |
|
5004 string, respectively. Call octave_value::struct_elt_val with |
|
5005 silent flag set. |
|
5006 |
2419
|
5007 * pt-mat.cc (tm_row_const::tm_row_const_rep::eval_error, |
|
5008 tm_row_const::tm_row_const_rep::eval_warning): New functions. |
|
5009 (tm_row_const::tm_row_const (const tree_matrix_row&): Use them to |
|
5010 give better error messages. |
|
5011 |
2418
|
5012 * pt-fvc.cc (tree_identifier::eval): Avoid dereferencing null |
|
5013 object_to_eval. |
|
5014 |
2412
|
5015 Tue Oct 15 11:35:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5016 |
|
5017 * op-cs-cm.cc, op-cs-cs.cc, op-cs-m.cc, op-cs-s.cc |
|
5018 (complex_matrix_conv): New functions. |
|
5019 Install preferred assignment conversion and widening ops. |
|
5020 |
|
5021 * op-s-cm.cc, op-s-cs.cc (complex_matrix_conv): New functions. |
|
5022 Install preferred assignment conversion and widening ops. |
|
5023 |
|
5024 * op-s-m.cc, op-s-s.cc (matrix_conv): New functions. |
|
5025 Install preferred assignment conversion and widening ops. |
|
5026 |
|
5027 * ov.cc (octave_value::try_assignment_with_conversion, |
|
5028 octave_value::convert_and_assign, octave_value::try_assignment): |
|
5029 New functions. |
|
5030 (octave_value::assign): Use them to implement twisted logic for |
|
5031 type conversions in assigments. |
|
5032 |
|
5033 * pt-const.h (tree_constant::maybe_mutate): New function. |
|
5034 * ov.h (octave_value::maybe_mutate): New function. |
|
5035 (octave_value::try_narrowing_conversion): New function. |
|
5036 Use just one typedef for widening_op_fcn and numeric_conv_fcn. |
|
5037 Change all uses. |
|
5038 * ov-base.h, ov-complex.h, ov-complex.cc, ov-cx-mat.h, |
|
5039 ov-cx-mat.cc, ov-range.h, ov-range.cc, ov-re-mat.h, ov-re-mat.cc, |
|
5040 Provide derived class versions of try try_narrowing_conversion(). |
|
5041 |
|
5042 * pr-output.cc (octave_print_internal): Don't bother handing off |
|
5043 to scalar/real versions, even when it would seem appropriate. |
|
5044 |
|
5045 * symtab.cc (symbol_def::define (tree_constant *)): Call |
|
5046 maybe_mutate on constants here. |
|
5047 |
2405
|
5048 Mon Oct 14 11:05:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5049 |
2407
|
5050 * pt-fvc.cc (tree_identifier::eval): If retval is undefined and |
|
5051 the object to eval is a constant, print error message. |
2406
|
5052 |
2405
|
5053 * Makefile (distclean): Remove *.oct too. |
|
5054 |
|
5055 * defun-int.h: Include variables.h here. |
|
5056 |
2403
|
5057 Sun Oct 13 10:52:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5058 |
2404
|
5059 * variables.cc (print_symbol_info_line): Never print negative |
|
5060 diminsions. |
|
5061 |
|
5062 * symtab.h (octave_symbol_record_info): Store const_type as string. |
|
5063 (octave_symbol_record_info::init): Delete. Fix constructors. |
|
5064 (octave_symbol_record_info::type_name): Handle const_type as string. |
|
5065 |
2403
|
5066 * octave.cc (maximum_braindamage): Replace "true" with 1.0 and |
|
5067 "false" with 0.0 in calls to bind_builtin_variable(). |
|
5068 Include sun-utils.h here. |
2404
|
5069 (intern_argv): Also bind __argv__. |
2403
|
5070 |
2391
|
5071 Sat Oct 12 13:40:21 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5072 |
2399
|
5073 * Makefile.in (distclean): Also delete mk-oct-links. |
|
5074 |
|
5075 Fri Oct 11 13:13:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5076 |
2391
|
5077 Changes for Octave's new type system: |
|
5078 |
|
5079 * arith-ops.cc: Delete. |
|
5080 * pt-const.h, pt-const.cc: Massive changes. Most functionality |
|
5081 moved to ov.h, ov.cc, and derived classes. |
|
5082 |
|
5083 * variables.h, variables.cc (octave_variable_reference): New class |
|
5084 for getting references to variables and structure elements used in |
|
5085 assignments or value contexts. |
|
5086 |
|
5087 * symtab.h, symtab.cc (symbol_record::define (const octave_value&), |
|
5088 symbol_record::variable_value, symbol_record::variable_reference): |
|
5089 New functions. |
|
5090 (symbol_record_info::type_name): Rename from type_as_string. |
|
5091 |
|
5092 * pt-fvc-base.h, pt-fvc-base.cc (tree_fvc::increment, |
|
5093 tree_fvc::decrement): New functions to replace |
|
5094 tree_fvc::bump_value. |
|
5095 #if 0 assign and lookup_map_element functions. |
|
5096 |
|
5097 * pt-mvr.cc (tree_multi_assignment_expression::eval): |
|
5098 Generated RHS value is now a tree_constant. |
|
5099 |
|
5100 * pt-exp.h, pt-exp.cc (tree_boolean_expression): New class. |
|
5101 (tree_unary_expression, tree_binary_expression, |
|
5102 tree_boolean_expression): Move codes here from tree_expression. |
|
5103 (tree_simple_assignment_expression): Cope with changes to way of |
|
5104 doing assignments. |
|
5105 |
|
5106 * pt-exp-base.h, pt-exp-base.cc (enum type): Delete codes for |
|
5107 unary and binary ops. |
|
5108 (tree_expression::expression_type): Delete. |
|
5109 (tree_expression::is_logically_true): Hand off to |
|
5110 octave_value::is_true to do real work. |
|
5111 |
|
5112 * pr-output.h, pr-output.cc (any_element_is_inf_or_nan, |
|
5113 all_elements_are_ints): Delete. Call member new functions for |
|
5114 these operations. |
|
5115 (free_format, plus_format, bank_format, hex_format, |
|
5116 compact_format, print_e, print_big_e): Use bool, not int. |
|
5117 (octave_print_internal): Hand off to scalar/real versions when |
|
5118 appropriate. |
|
5119 |
|
5120 * octave.cc (main): Call initialize_types() and install_ops(). |
|
5121 (verbose_usage): Add WWW address to output. |
|
5122 |
|
5123 * parse.y (indirect_ref): Handle by making a tree instead of a |
|
5124 list using new version of tree_indirect_ref class. |
|
5125 |
|
5126 * parse.y (make_boolean_op): New function. Use it instead of |
|
5127 make_binary_op to create trees for && and || ops. |
|
5128 (make_binary_op): Codes come from tree_binary_expression now, |
|
5129 instead of tree_expression. |
|
5130 (make_unary_op): Codes come from tree_unary_expression now, |
|
5131 instead of tree_expression. |
|
5132 (make_boolean_op): Codes come from tree_boolean_expression. |
|
5133 |
|
5134 *parse.y (tree_constant_type): Change type to tree_constant* from |
|
5135 octave_value*, and rename from octave_value_type. Change uses. |
|
5136 |
|
5137 * defun.h (DEFVAR_INT): Pass octave_value not pointer to |
|
5138 octave_value for defn when creating builtin_variable. |
|
5139 |
|
5140 * gripes.h, gripes.cc (gripe_invalid_conversion): Args are |
|
5141 strings, not char*. |
|
5142 (gripe_implicit_conversion, gripe_divide_by_zero): New extern |
|
5143 gripe functions. |
|
5144 |
|
5145 * mkbuiltins: For each file, create a separate static function to |
|
5146 install builtins, then create another single extern function to |
|
5147 call all of them. |
|
5148 |
|
5149 * pt-fcn.cc (tree_function::bind_nargin_and_nargout): |
|
5150 Just pass doubles and let symbol_record::define handle creating |
|
5151 new value. |
|
5152 |
|
5153 * pt-pr-code.cc, pt-pr-code.h (visit_constant): Renamed from |
|
5154 visit_octave_value. |
|
5155 (visit_unary_expression): Use tree_expression::is_prefix_op() |
|
5156 instead of switch on op types. |
|
5157 |
|
5158 * pt-walk.h (visit_constant): Renamed from visit_octave_value. |
|
5159 |
|
5160 * pt-misc.cc (initialize_undefined_elements): Get reference to |
|
5161 tmp, then assign. |
|
5162 * pt-cmd.cc (do_for_loop_once): Likewise, for loop identifier. |
|
5163 |
|
5164 * input.cc (generate_struct_completions, looks_like_struct): Cast |
|
5165 tmp_fvc to tree_constant*, not octave_value*. |
|
5166 (get_user_input): Call print() on retval, not eval(1). |
|
5167 |
|
5168 * help.cc (Ftype): Cast defn to tree_constant*, not octave_value*. |
|
5169 |
|
5170 * balance.cc: Fix docstring. |
|
5171 |
|
5172 * dassl.cc, fsolve.cc, load-save.cc, lsode.cc, npsol.cc, qpsol.cc, |
|
5173 quad.cc: |
|
5174 Include pt-fvc.h. |
|
5175 |
|
5176 * data.cc (Fstruct_contains): call octave_value::struct_elt_val, |
|
5177 not octave_value::lookup_map_element. |
|
5178 |
|
5179 * dirfns.cc (Fcd): Pass directory name as string directly to |
|
5180 bind_builtin_variable instead of creating new octave_value. |
|
5181 |
|
5182 * toplev.cc: Include pt-fvc.h and lo-mappers.h |
|
5183 |
|
5184 * data.cc, error.cc, file-io.cc, load-save.cc, pager.cc, |
|
5185 pt-mat.cc, pt-plot.cc, syscalls.cc, toplev.cc: |
|
5186 Include variables.h. |
|
5187 |
|
5188 * Array-tc.cc, Map-tc.cc, SLList-misc.cc SLList-tc.cc, data.cc, |
|
5189 defaults.cc, dynamic-ld.cc, error.cc, gripes.cc, lex.l, octave.cc, |
|
5190 oct-map.h, oct-map.cc, oct-obj.h, pt-cmd.cc, pt-exp.cc, pt-fcn.cc, |
|
5191 pt-fvc-base.cc, pt-mat.cc, pt-misc.cc, pt-mvr-base.cc, pt-mvr.h, |
|
5192 resource.cc, strfns.cc, sysdep.cc, timefns.cc, toplev.cc: |
|
5193 Include ov.h instead of pt-const.h. |
|
5194 |
|
5195 * xpow.cc (any_element_is_negative): Delete. |
|
5196 (xpow and elem_xpow functions): Check conformance here. |
|
5197 |
|
5198 * xdiv.cc (mx_leftdiv_conform, mx_div_conform): |
|
5199 Now template-based, taking Matrices instead of dimensions as args. |
|
5200 Change all callers. |
|
5201 |
|
5202 * op-cm-cm.cc, op-cm-cm.h, op-cm-cs.cc, op-cm-cs.h, op-cm-m.cc, |
|
5203 op-cm-m.h, op-cm-s.cc, op-cm-s.h, op-cs-cm.cc, op-cs-cm.h, |
|
5204 op-cs-cs.cc, op-cs-cs.h, op-cs-m.cc, op-cs-m.h, op-cs-s.cc, |
|
5205 op-cs-s.h, op-m-cm.cc, op-m-cm.h, op-m-cs.cc, op-m-cs.h, op-m-m.cc, |
|
5206 op-m-m.h, op-m-s.cc, op-m-s.h, op-s-cm.cc, op-s-cm.h, op-s-cs.cc, |
|
5207 op-s-cs.h, op-s-m.cc, op-s-m.h, op-s-s.cc, op-s-s.h, |
|
5208 op-str-str.cc, op-str-str.h, ops.cc, ops.h, ov-base.cc, ov-base.h, |
|
5209 ov-ch-mat.cc, ov-ch-mat.h, ov-colon.cc, ov-colon.h, ov-complex.cc, |
|
5210 ov-complex.h, ov-cx-mat.cc, ov-cx-mat.h, ov-range.cc, ov-range.h, |
|
5211 ov-re-mat.cc, ov-re-mat.h, ov-scalar.cc, ov-scalar.h, ov-str-mat.cc, |
|
5212 ov-str-mat.h, ov-struct.cc, ov-struct.h, ov-typeinfo.cc, |
|
5213 ov-typeinfo.h, ov-va-args.cc, ov-va-args.h, ov.cc, ov.h: |
|
5214 New files for Octave's new type system. |
|
5215 * Makefile.in: Add them to the appropriate lists. |
|
5216 |
|
5217 Sat Sep 14 21:58:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5218 |
|
5219 * mkbuiltins: Use .df instead of .def. |
|
5220 Write one function for each .df file, then call them |
|
5221 all in install_builtin_functions(). |
|
5222 * Makefile.in: Handle .df instead of .def. |
|
5223 |
|
5224 * balance.cc (balance): Fix typo in doc string. |
|
5225 |
|
5226 Wed Aug 28 21:01:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5227 |
|
5228 * octave.cc (verbose_usage): Include WWW address and bug-octave |
|
5229 mailing list address. |
|
5230 |
2354
|
5231 Tue Aug 20 17:41:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5232 |
2358
|
5233 * Makefile.in: Only define pattern rules for making .oct files if |
|
5234 OCTAVE_LITE is true. |
|
5235 Only add pic/ to $(TI_OBJ) if $(SHARED_LIBS) is true. |
|
5236 (stamp-picdir): Only create a pic subdirectory if SHARED_LIBS or |
|
5237 OCTAVE_LITE is true AND CPICFLAG or CXXPICFLAG is not empty. |
|
5238 |
2354
|
5239 * minmax.cc (Fmin, Fmax): Deal with changes to Matrix class |
|
5240 min/max methods. |
|
5241 |
2345
|
5242 Thu Jul 25 01:42:38 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5243 |
2348
|
5244 * input.cc (generate_possible_completions): Force the names to be |
|
5245 unique. |
|
5246 |
2345
|
5247 * load-save.cc (read_mat_binary_data): Expect to read terminating |
|
5248 NUL character in the variable name. |
|
5249 (save_mat_binary_data): Likewise, save it here. |
|
5250 |
2341
|
5251 Wed Jul 24 05:08:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5252 |
2343
|
5253 * lsode.cc (Flsode): Don't set the return value if an error |
|
5254 occurred during integration. |
2344
|
5255 * dassl.cc (Fdassl): Likewise. |
2343
|
5256 |
2341
|
5257 * file-io.cc (symbols_of_file_io): Redefine values of SEEK_SET, |
|
5258 SEEK_CUR, and SEEK_END for Matlab compatibility. |
|
5259 * oct-stream.cc (seek): Check for compatible values of ORIGIN arg. |
|
5260 Also handle "bof", "cof", and "eof". |
|
5261 |
2338
|
5262 Fri Jul 19 15:24:36 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5263 |
|
5264 * pt-const.cc: When creating octave_value_reps from ComplexMatrix |
|
5265 values, check to see if all the elements are actually real. |
|
5266 |
2330
|
5267 Tue Jul 16 10:53:42 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5268 |
2341
|
5269 * input.cc (decode_prompt_string): Swap meanings of \h and \H. |
2330
|
5270 |
|
5271 Mon Jul 15 16:01:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5272 |
|
5273 * toplev.cc (run_command_and_return_output): Renamed from do_system. |
|
5274 (Fsystem): Make `system ("emacs")' work as one would expect. |
|
5275 |
|
5276 Sun Jul 14 17:34:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5277 |
|
5278 * file-io.cc (Ffopen, Ffread, Ffwrite): Update doc strings, |
|
5279 correctly handle default architecture and precision args. |
|
5280 |
|
5281 * load-save.cc (mopt_digit_to_float_format): Rename from |
|
5282 get_floating_point_format. |
|
5283 (float_format_to_mopt_digit): New function. |
|
5284 |
|
5285 * oct-stream.cc (octave_base_stream::read, octave_base_stream::write): |
|
5286 Simplify by calling Matrix::read and Matrix::write to do real work |
|
5287 of reading, writing, and format conversion. |
|
5288 |
|
5289 * oct-stream.h (octave_base_stream): Move data_type enum to |
|
5290 liboctave/data-conv.h. Use float_format from |
|
5291 liboctave/mach-info.h instead of arch_type enum. |
|
5292 |
|
5293 * sysdep.h, sysdep.cc (octave_words_big_endian, ten_little_endians): |
|
5294 Delete. Now part of oct_mach_info class in liboctave. |
|
5295 |
|
5296 Tue Jul 9 11:18:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5297 |
|
5298 * arith-ops.cc, balance.cc, dassl.cc, data.cc, filter.cc, find.cc, |
|
5299 fsolve.cc, load-save.cc, log.cc, lsode.cc, minmax.cc, npsol.cc, |
|
5300 oct-obj.cc, oct-stream.cc, pr-output.cc, pt-cmd.cc, pt-const.cc, |
|
5301 pt-fvc.cc, pt-plot.cc, quad.cc, rand.cc, sighandlers.cc, sort.cc, |
|
5302 syscalls.cc, unwind-prot.cc, xdiv.cc, xpow.cc: |
|
5303 When indexing arrays, use operator() instead of elem() so that |
|
5304 bounds checking can be done consistently. |
|
5305 |
|
5306 Mon Jun 24 02:13:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5307 |
|
5308 * Makefile.in (install-oct): Use INSTALL_PROGRAM, instead of |
|
5309 INSTALL_DATA for installing shared libraries. |
|
5310 |
|
5311 * lex.l (grab_help_text): Ignore all initial comment characters, |
|
5312 not just the first. |
|
5313 * variables.cc (gobble_leading_white_space): Likewise. |
|
5314 |
|
5315 Sat Jun 22 22:43:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5316 |
|
5317 * input.h, input.cc (octave_completion_matches_called): New varaible. |
|
5318 (Fcompletion_matches): Set it to true on a successful call. |
|
5319 * toplev.cc (main_loop): If octave_completion_matches_called is |
|
5320 true, don't increment current_command_number. |
|
5321 |
|
5322 Thu Jun 13 03:52:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5323 |
|
5324 * variables.cc (is_mapper_function_name, |
|
5325 is_builtin_function_name): New functions. |
|
5326 (Fdocument): Use them. |
|
5327 Define as regular function, not a text style function. |
|
5328 |
|
5329 Thu Jun 6 00:09:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5330 |
|
5331 * pt-plot.cc: Handle new built-in variable `gnuplot_has_frames'. |
|
5332 |
|
5333 Wed Jun 5 14:45:04 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5334 |
|
5335 * input.cc (decode_prompt_string): \h now means the whole host |
|
5336 name and \H is the host name up to the first `.'. |
|
5337 |
|
5338 Thu May 30 23:41:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5339 |
|
5340 * fn-cache.cc (octave_fcn_file_name_cache::do_list): Always |
|
5341 recompute the lists of function files instead of trying to cache |
|
5342 them. |
|
5343 |
|
5344 Tue May 28 12:05:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5345 |
|
5346 * utils.cc (warn_old_style_preference): New function. |
|
5347 (check_preference): Use it. |
|
5348 |
|
5349 * fn-cache.h: Include <ctime> here. |
|
5350 |
|
5351 Fri May 24 00:57:14 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5352 |
|
5353 * input.cc (completion_matches): Don't return empty string_vectors. |
|
5354 |
|
5355 * octave.cc (long_opts): Add braindead. |
|
5356 |
|
5357 Thu May 23 01:49:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5358 |
|
5359 * input.cc (gnu_readline): New optional arg, force_readline. |
|
5360 (get_user_input): Use it. |
|
5361 |
|
5362 * pt-const.cc (OCT_VAL_REP::assign): If converting the rhs to a |
|
5363 numeric value, convert a copy, not the actual object. |
|
5364 (OCT_VAL_REP::do_index): Prevent s([]) from resulting in a string |
|
5365 with zero rows. |
|
5366 |
|
5367 * mappers.cc: Handle toascii here. |
|
5368 * strfns.cc: Not here. |
|
5369 |
|
5370 * mappers.cc: Handle tolower and toupper here. |
|
5371 * mappers.h: Rename can_return_complex_for_real to flag and |
|
5372 overload meaning for ch_mapper. |
|
5373 * pt-fvc.cc (apply_mapper_fcn): Handle overloaded meaning. |
|
5374 |
|
5375 * syscalls.cc (stat): Return 3 values instead of just 1. |
|
5376 (lstat): Likewise. |
|
5377 |
|
5378 Wed May 22 02:34:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5379 |
|
5380 * pt-const.cc (OCT_VAL_REP::make_numeric): For string to number |
|
5381 conversions, correctly set type tag before calling force_numeric. |
|
5382 (do_binary_op): Force string to number conversion if both args are |
|
5383 strings and we are doing some sort of comparison operation. |
|
5384 |
|
5385 * Makefile.in (stamp-tinst, stamp-interp): Use SH_TERMLIBS and |
|
5386 SH_LIBS instead of TERMLIBS and LIBS. |
|
5387 |
|
5388 * pt-const.cc (do_unary_op): Add special case to handle |
|
5389 transposing strings. |
|
5390 |
|
5391 * pt-mat.cc (Vstring_fill_char): New variable. |
|
5392 (symbols_of_pt_mat): DEFVAR it. |
|
5393 |
|
5394 * input.cc (generate_struct_completions, |
|
5395 generate_possible_completions): Return string_vector, not char **. |
|
5396 Change all callers. |
|
5397 |
|
5398 * pt-const.cc (lookup_map_element): Use substr() correctly. |
|
5399 |
|
5400 Tue May 21 21:37:17 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5401 |
|
5402 * oct.h: New file. |
|
5403 * Makefile.in (INCLUDES): Add it to the list. |
|
5404 |
|
5405 * octave.cc: New args --no-site-file and --no-init-file. Delete |
|
5406 --ignore-init-file. The flag --norc (-f) implies both |
|
5407 --no-site-file and --no-init-file. |
|
5408 |
|
5409 Fri May 17 01:54:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5410 |
|
5411 * input.cc (Fcompletion_matches): New function. |
|
5412 |
|
5413 * utils.cc (get_fcn_file_names): Delete. |
|
5414 * help.cc (simple_help): Use new file name cache instead of |
|
5415 calling get_fcn_file_names. |
|
5416 * variables.cc (make_name_list): Likewise. |
|
5417 |
|
5418 * fn-cache.h, fn-cache.cc, Map-fnc.cc: New files. |
|
5419 * Makefile.in: Add them to the lists. |
|
5420 |
|
5421 * Makefile.in (uninstall): Install in octincludedir, not includedir. |
|
5422 |
|
5423 * pt-plot.h: Include <csignal> here. |
|
5424 |
|
5425 Thu May 16 10:52:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5426 |
|
5427 * oct-stream.cc (octave_stream::oscanf, octave_base_stream::oscanf, |
|
5428 octave_base_stream::do_oscanf): New functions for backward |
|
5429 compatibility with older versions of Octave. |
|
5430 (scanf_format_elt, scanf_format_list): Keep track of width specifier. |
|
5431 * file-io.cc (Fscanf): New function. |
|
5432 (Fscanf, Ffscanf, Fsscanf): Handle compatibility arg. |
|
5433 |
|
5434 Wed May 15 01:00:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5435 |
|
5436 * oct-stream.cc (do_scanf): If doing '%c' conversion, unset |
|
5437 ios::skipws on input stream. |
|
5438 |
|
5439 * sighandlers.h, sighandlers.cc (octave_child, octave_child_list): |
|
5440 New classes for keeping track of the child processes we create. |
|
5441 (sigchld_handler): Check in octave_child_list to see if there is |
|
5442 anything we can do for the child that died. |
|
5443 * pager.cc: Register child pager process. |
|
5444 * pt-plot.cc: Likewise, for the plotter. |
|
5445 * Array-oc.cc: New file |
|
5446 * Makefile.in (TI_SRC): Add it to the list. |
|
5447 |
|
5448 * pager.cc (do_sync): Don't check error_state. |
|
5449 (flushing_output_to_pager): New static variable. |
|
5450 (flush_octave_stdout): Use it to avoid doing anything if already |
|
5451 flushing output. |
|
5452 |
|
5453 * sighandlers.cc (sigchld_handler): Call warning instead of |
|
5454 writing directly to cerr. |
|
5455 (sigpipe_handler): Call warning instead of message. |
|
5456 |
|
5457 * octave.cc (main): Call install_signal_handlers, |
|
5458 initialize_file_io, initialize_symbol_tables, and install_builtins |
|
5459 before parsing command line options. |
|
5460 |
|
5461 * user-prefs.h, user-prefs.cc: Delete. |
|
5462 |
|
5463 * utils.cc (check_preference): Move here. |
|
5464 * user-prefs.cc: From here. |
|
5465 |
|
5466 * defaults.cc: New file. Move initialization stuff from |
|
5467 variables.cc. Move DEFVARS for EDITOR, EXEC_PATH, LOADPATH, |
|
5468 IMAGEPATH, and OCTAVE_VERSION here. |
|
5469 |
|
5470 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5471 INFO_FILE and INFO_PROGRAM. |
|
5472 * help.cc: Move all of that here. |
|
5473 (symbols_of_help): Add DEFVARS for INFO_FILE and INFO_PROGRAM. |
|
5474 |
|
5475 Tue May 14 00:23:06 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5476 |
|
5477 * pager.cc (do_sync): Be more defensive about sending stuff to the |
|
5478 external pager. |
|
5479 * sighandlers.cc (sigchld_handler): For now, only wait for |
|
5480 octave_pager_pid. Don't call error(). Do set octave_pager_pid to |
|
5481 -1 if the pager process no longer exists. |
|
5482 |
|
5483 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5484 PWD. |
|
5485 * dirfns.cc: Move all of that here. |
|
5486 (symbols_of_dirfns): New function. |
|
5487 * variables.cc (install_builtin_variables): Call it. |
|
5488 |
|
5489 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5490 default_save_format and save_precision. |
|
5491 * load-save.cc: Move all of that here. |
|
5492 (symbols_of_load_save): New function. |
|
5493 * variables.cc (install_builtin_variables): Call it. |
|
5494 |
|
5495 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5496 warn_divide_by_zero. |
|
5497 * arith-ops.cc: Move all of that here. |
|
5498 (symbols_of_arith_ops): New function. |
|
5499 * variables.cc (install_builtin_variables): Call it. |
|
5500 |
|
5501 * mappers.cc: Add wrappers for ctype is* functions so that they |
|
5502 will work on systems that only define them as macros. |
|
5503 |
|
5504 Mon May 13 00:27:08 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5505 |
|
5506 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5507 suppress_verbose_help_message. |
|
5508 * help.cc: Move all of that here. |
|
5509 (symbols_of_help): New function. |
|
5510 * variables.cc (install_builtin_variables): Call it. |
|
5511 |
|
5512 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5513 treat_neg_dim_as_zero. |
|
5514 * pt-const.cc: Move all of that here. |
|
5515 |
|
5516 * pager.cc (octave_pager_stream::do_sync): Don't return early if |
|
5517 not interactive. |
|
5518 |
|
5519 * data.h: New file. |
|
5520 * Makefile.in (INCLUDES): Add it to the list. |
|
5521 * data.cc (symbols_of_data): New function. Move definition of I, |
|
5522 Inf, J, NaN, e, eps, i, inf, j, nan, pi, realmin, and realmax here. |
|
5523 * variables.cc: From here. |
|
5524 (install_builtin_variables): Call symbols_of_data. |
|
5525 |
|
5526 * file-io.cc (symbols_of_file_io): New function. Move definition |
|
5527 of SEEK_CUR, SEEK_END, SEEK_SET, stdin, stdout, stderr here. |
|
5528 * variables.cc: From here. |
|
5529 (install_builtin_variables): Call symbols_of_file_io. |
|
5530 |
|
5531 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5532 do_fortran_indexing, implicit_str_to_num_ok, |
|
5533 ok_to_lose_imaginary_part, prefer_column_vectors, |
|
5534 prefer_zero_one_indexing, print_answer_id_name, |
|
5535 propagate_empty_matrices, resize_on_range_error, and |
|
5536 struct_levels_to_print. |
|
5537 * pt-const.cc: Move all of that here. |
|
5538 (symbols_of_pt_const): New function. |
|
5539 * variables.cc (install_builtin_variables): Call it. |
|
5540 * pt-fvc.cc (tree_identifier::assign): Use Vresize_on_range_error |
|
5541 instead of user_pref.resize_on_range_error here. |
|
5542 * load-save.cc (save_mat_binary_data): Use Vimplicit_str_to_num_ok |
|
5543 instead of user_pref.implicit_str_to_num_ok here. |
|
5544 * utils.cc (empty_arg): Use Vpropagate_empty_matrices instead of |
|
5545 user_pref.propagate_empty_matrices here. |
|
5546 * pt-exp-base.cc (tree_expression::is_logically_true): Likewise.. |
|
5547 |
|
5548 * pt-fcn.cc (symbols_of_pt_fcn): Also move DEFVAR for |
|
5549 default_return_value here. |
|
5550 |
|
5551 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5552 ps1, ps2, ps4, and completion_append_char. |
|
5553 * input.cc: Move all of that here. |
|
5554 (symbols_of_input): New function. |
|
5555 * variables.cc (install_builtin_variables): Call it. |
|
5556 * pt-pr-code.cc (indent): Use Vps4 instead of user_pref.ps4 here. |
|
5557 * help.cc (Ftype): Also here. |
|
5558 |
|
5559 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5560 automatic_replot, gnuplot_binary, and gnuplot_has_multiplot. |
|
5561 * pt-plot.cc: Move all of that here. |
|
5562 (symbols_of_pt_plot): New function. |
|
5563 * variables.cc (install_builtin_variables): Call it. |
|
5564 |
|
5565 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5566 beep_on_error. |
|
5567 * error.cc: Move all of that here. |
|
5568 (symbols_of_error): New function. |
|
5569 * variables.cc (install_builtin_variables): Call it. |
|
5570 |
|
5571 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5572 empty_list_elements_ok. |
|
5573 * pt-mat.cc: Move all of that here. |
|
5574 (symbols_of_pt_mat): New function. |
|
5575 * variables.cc (install_builtin_variables): Call it. |
|
5576 |
|
5577 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5578 define_all_return_values, return_last_computed_value, and |
|
5579 silent_functions. |
|
5580 * pt-fcn.cc: Move all of that here. |
|
5581 (symbols_of_pt_fcn): New function. |
|
5582 * variables.cc (install_builtin_variables): Call it. |
|
5583 |
|
5584 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5585 whitespace_in_literal_matrix. |
|
5586 * lex.l: Move all of that here. |
|
5587 (symbols_of_lex): New function. |
|
5588 * variables.cc (install_builtin_variables): Call it. |
|
5589 |
|
5590 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5591 warn_assign_as_truth_value, warn_comma_in_global_decl, |
|
5592 warn_function_name_clash, and warn_missing_semicolon. |
|
5593 * parse.y: Move all of that here. |
|
5594 (symbols_of_parse): New function. |
|
5595 * variables.cc (install_builtin_variables): Call it. |
|
5596 |
|
5597 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5598 output_precision, output_max_field_width, print_empty_dimensions, |
|
5599 and split_long_rows. |
|
5600 * pr-output.cc: Move all of that here. |
|
5601 (symbols_of_pr_output): New function. |
|
5602 * variables.cc (install_builtin_variables): Call it. |
|
5603 |
|
5604 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5605 page_screen_output, page_output_immediately, and pager_binary. |
|
5606 * pager.cc: Move all of that here. |
|
5607 |
|
5608 * user-prefs.h (check_preference): Provide declaration. |
|
5609 * user-prefs.cc (check_preference): Make external. |
|
5610 |
|
5611 * toplev.cc (Foctave_config_info): New function. |
|
5612 |
|
5613 * oct-conf.h.in: New file |
|
5614 * Makefile.in (oct-conf.h): New target. |
|
5615 Add it to the appropriate lists. |
|
5616 |
|
5617 * sighandlers.cc (sigchld_handler): Don't complain about wait |
|
5618 returning a negative value. |
|
5619 |
|
5620 * file-io.cc (Fsscanf, Fsprintf): Pass true for second arg of |
|
5621 octave_stream constructor. |
|
5622 |
|
5623 * oct-stream.h (octave_stream): New field, preserve. |
|
5624 (octave_stream::~octave_stream): If preserve, don't delete rep. |
|
5625 |
|
5626 * pager.cc (symbols_of_pager): Set default for |
|
5627 page_output_immediately to 0. |
|
5628 |
|
5629 * toplev.cc (do_system): Correctly handle return_output. |
|
5630 Append ends to output_buf before calling str(). |
|
5631 |
|
5632 * variables.cc: If M_PI and M_E are available, use them. |
|
5633 |
|
5634 * mk-oct-links.in (links_dir): If old link exists, delete it first. |
|
5635 |
|
5636 Sun May 12 01:46:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5637 |
|
5638 * Makefile.in (DISTFILES): List defaults.h.in and oct-gperf.h here. |
|
5639 (INCLUDES): Not here. |
|
5640 (install-inc): New target. |
|
5641 (uninstall): Also delete libraries and include files. |
|
5642 (install-inc): If linkdir is a directory, leave it alone. |
|
5643 (TERMLIBS, LIBPLPLOT, LIBDLFCN): Don't substitute here (now in |
|
5644 Makeconf). |
|
5645 |
|
5646 * oct-stream.cc (octave_base_stream::do_read): Provide initial |
|
5647 value for tmp var. |
|
5648 |
|
5649 * pt-walk.h, pt-pr-code.h, pt-pr-code.cc: New tree-walking classes. |
|
5650 * Makefile.in: Add them to the appropriate lists. |
|
5651 * pt-fvc-base.h, pt-exp-base.cc, pt-fvc-base.cc, pt-mvr-base.cc, |
|
5652 pt-base.cc, pt-mvr.cc, pt-mat.h, pt-mat.cc, pt-fvc.cc, |
|
5653 pt-const.cc, pt-cmd.cc, pt-const.h, pt-misc.cc, pt-plot.cc, |
|
5654 pt-fcn.cc, pt-plot.h, pt-mvr.h, pt-mvr-base.h, pt-misc.h, |
|
5655 pt-fcn.h, pt-exp.h, pt-exp.cc, pt-exp-base.h, pt-fvc.h, pt-cmd.h, |
|
5656 pt-base.h: |
|
5657 Replace print_code stuff with accept() functions. |
|
5658 Add member access functions where necessary. |
|
5659 * help.cc (Ftype): Update to use new method of walking trees to |
|
5660 print text representation of user-defined functions. |
|
5661 |
|
5662 * file-io.cc (Ffscanf): Update doc string. |
|
5663 (Fsscanf): Likewise. |
|
5664 |
|
5665 * oct-stream.cc (octave_base_stream::do_read): Correctly set max_size. |
|
5666 Pad mval with zeros on final resize. |
|
5667 (octave_base_stream::do_scanf): Likewise. |
|
5668 (do_scanf_conv): Correctly resize mval. |
|
5669 |
|
5670 Sat May 11 05:14:09 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5671 |
|
5672 * pager.cc (octave_pager_buf::sync): Correctly set bypass_pager. |
|
5673 |
|
5674 * lex.l (<MATRIX>{SNLCMT}*\]{S}*): Match SNLCMT, not just SNL. |
|
5675 |
|
5676 Fri May 3 11:05:30 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5677 |
|
5678 * pt-const.cc (OCT_VAL_REP::set_index): Complain if type can't be |
|
5679 indexed. |
|
5680 |
|
5681 * input.cc (get_user_input): Don't increment input line number if |
|
5682 input is coming from eval string. |
|
5683 |
|
5684 * user-prefs.cc: Allow empty strings for prompts. |
|
5685 |
|
5686 Thu May 2 10:50:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5687 |
|
5688 * pt-mvr.h (class tree_oct_obj): Declare values data member const. |
|
5689 |
|
5690 Sun Apr 28 03:16:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5691 |
|
5692 * user-prefs.h (user_preferences): New field, |
|
5693 `page_output_immediately'. |
|
5694 * user-prefs.cc (init_user_prefs): Initialize it. |
|
5695 (page_output_immediately): New function. |
|
5696 * pager.cc (syms_of_pager): Add DEFVAR. |
|
5697 (really_flush_to_pager): New file-scope variable. |
|
5698 (flush_octave_stdout): Set and restore it. |
|
5699 (octave_pager_buf::sync): Check it, user_pref.page_screen_output, |
|
5700 and user_pref.page_output_immediately to decide when to really |
|
5701 flush output. |
|
5702 (more_than_a_screenful): New function. If paging but not |
|
5703 immediately, then check this too. |
|
5704 |
|
5705 * pager.cc (default_pager): Move here from variables.cc. If pager |
|
5706 is less and LESS is not in the environment, append useful flags. |
|
5707 (symbols_of_pager): New function. |
|
5708 * variables.cc (install_builtin_variables): Call it. |
|
5709 Delete pager-related DEFVARs. |
|
5710 |
|
5711 * syswait.h (WIFSIGNALLED): Define if sys/wait.h doesn't. |
|
5712 |
|
5713 * sighandlers.cc: Handle SIGCHLD. |
|
5714 |
|
5715 * pager.cc, pager.h: Rewrite. |
|
5716 * pt-mvr.cc, pt-misc.cc, pt-fcn.cc, pt-const.cc, oct-hist.cc, |
|
5717 file-io.cc, help.cc, variables.cc, qpsol.cc, dassl.cc, quad.cc, |
|
5718 npsol.cc, lsode.cc, fsolve.cc, load-save.cc, dirfns.cc, octave.cc, |
|
5719 toplev.cc, error.cc, input.cc: |
|
5720 Write to octave_stdout and octave_diary instead of calling |
|
5721 maybe_page_output() or maybe_write_to_diary_file(). |
|
5722 |
|
5723 * oct-procbuf.h, oct-procbuf.cc: New files. |
|
5724 * procstream.h (class procstreambase): Use octave_procbuf instead |
|
5725 of procbuf from libg++, so we can get pids of subprocesses. |
|
5726 |
|
5727 Fri Apr 26 01:21:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5728 |
|
5729 * pt-const.cc (OCT_VAL_REP::do_index): Call maybe_mutate() before |
|
5730 returning. |
|
5731 |
|
5732 * mappers.h (struct Mapper_fcn): Delete. |
|
5733 (struct builtin_mapper_function): New field ch_mapper. |
|
5734 * pt-fvc.h (tree_builtin): Convert type of mapper_fcn from |
|
5735 Mapper_fcn to builtin_mapper_function. |
|
5736 * variables.cc (install_builtin_mapper): Likewise, for arg. |
|
5737 Simplify, since we don't have to do the copying ourselves now. |
|
5738 * pt-fvc.cc (apply_mapper_function): Handle ch_mapper case. |
|
5739 * defun.h (DEFUN_MAPPER): Likewise. |
|
5740 * mappers.cc (install_builtin_mappers): Likewise. |
|
5741 Add ctype is* functions here. |
|
5742 |
|
5743 Thu Apr 25 00:57:06 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5744 |
|
5745 * arith-ops.h, defun-int.h, defun.h, dynamic-ld.h, gripes.h, |
|
5746 load-save.h, oct-map.h, oct-obj.h, oct-stream.h, pt-cmd.h, |
|
5747 pt-const.h, pt-exp-base.h, pt-exp.h, pt-fcn.h, pt-fvc-base.h, |
|
5748 pt-fvc.h, pt-mat.h, pt-misc.h, pt-mvr-base.h, pt-mvr.h, pt-plot.h, |
|
5749 symtab.h, toplev.h, utils.h, variables.h, xpow.h, Array-tc.cc, |
|
5750 Map-i.cc, Map-tc.cc, SLList-tc.cc, arith-ops.cc, balance.cc, |
|
5751 bogus.cc, chol.cc, colloc.cc, dassl.cc, data.cc, det.cc, |
|
5752 dirfns.cc, eig.cc, error.cc, expm.cc, fft.cc, fft2.cc, file-io.cc, |
|
5753 filter.cc, find.cc, fsolve.cc, fsqp.cc, givens.cc, gripes.cc, |
|
5754 help.cc, hess.cc, ifft.cc, ifft2.cc, input.cc, inv.cc, |
|
5755 load-save.cc, log.cc, lpsolve.cc, lsode.cc, lu.cc, minmax.cc, |
|
5756 npsol.cc, oct-hist.cc, oct-obj.cc, oct-stream.cc, pager.cc, |
|
5757 pinv.cc, pr-output.cc, pt-cmd.cc, pt-const.cc, pt-exp-base.cc, |
|
5758 pt-exp.cc, pt-fcn.cc, pt-fvc-base.cc, pt-fvc.cc, pt-mat.cc, |
|
5759 pt-misc.cc, pt-mvr-base.cc, pt-mvr.cc, pt-plot.cc, qpsol.cc, |
|
5760 qr.cc, quad.cc, qzval.cc, rand.cc, resource.cc, schur.cc, sort.cc, |
|
5761 strfns.cc, svd.cc, syl.cc, symtab.cc, syscalls.cc, sysdep.cc, |
|
5762 timefns.cc, toplev.cc, utils.cc, variables.cc, xpow.cc, parse.y: |
|
5763 Rename tree_constant -> octave_value. |
|
5764 Rename Octave_object -> octave_value_list. |
|
5765 |
|
5766 Wed Apr 24 22:15:34 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5767 |
|
5768 * toplev.cc (Fsystem): Merge functionality of async_system and |
|
5769 sync_system. |
|
5770 |
|
5771 * oct-fstrm.h, oct-iostrm.h, oct-prcstrm.h, oct-stdstrm.h, |
|
5772 oct-stream.h, oct-strstrm.h, oct-fstrm.cc, oct-iostrm.cc, |
|
5773 oct-prcstrm.cc, oct-stdstrm.cc, oct-stream.cc, oct-strstrm.cc, |
|
5774 Array-os.cc: New files. |
|
5775 * Makefile.in: Add them to the appropriate lists. |
|
5776 * file-io.cc: Rewrite to use new stream classes. |
|
5777 |
|
5778 Tue Apr 23 18:59:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5779 |
|
5780 * gripes.cc (gripe_not_supported): New function. |
|
5781 |
|
5782 * toplev.cc (do_octave_atexit, Fatexit): New functions. |
|
5783 (octave_atexit_functions): New file-scope variable. |
|
5784 * octave.cc (main): Register do_octave_atexit with atexit. |
|
5785 |
|
5786 * variables.cc (install_builtin_variables): Call |
|
5787 symbols_of_syscalls here. |
|
5788 |
|
5789 * syscalls.h, syscalls.cc: New files. |
|
5790 |
|
5791 Mon Apr 22 21:14:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5792 |
|
5793 * syscalls.cc: New file. |
|
5794 (Flstat, Fmkfifo, Fstat, Funlink, Fwait, Fwaitpid): Move here. |
|
5795 * file-io.cc: From here. |
|
5796 * Makefile.in (SOURCES): Add syscalls.cc to the list. |
|
5797 |
|
5798 Wed Apr 17 18:34:10 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5799 |
|
5800 * file-info.h, file-info.cc: Delete files. |
|
5801 * Makefile.in: Remove from lists. |
|
5802 |
|
5803 * toplev.cc (Fquit): Accept exit status argument. |
|
5804 (Fflops): Delete (now a function file). |
|
5805 |
|
5806 Thu Apr 11 16:20:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5807 |
|
5808 * lex.l: Recognize `.'. |
|
5809 Update current_input_column even for unrecognized characters. |
|
5810 Return LEXICAL_ERROR for unrecognized characters. |
|
5811 |
|
5812 Mon Apr 8 19:59:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5813 |
|
5814 * variables.cc (install_builtin_variables): Split into several |
|
5815 functions to make compiling with g++ go faster and consume less |
|
5816 memory. |
|
5817 |
|
5818 Sun Apr 7 16:25:35 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5819 |
|
5820 * load-save.cc (Fsave): Print usage if i == argc. |
|
5821 (Fload): Likewise. |
|
5822 |
|
5823 Sat Apr 6 21:26:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5824 |
|
5825 * Makefile.in (clean): Also delete pic/*.o |
|
5826 (maintainer-clean, distclean): Also remove stamp-picdir, |
|
5827 stamp-tinst, stamp-interp, and pic directory. |
|
5828 (stamp-prereq): New target. |
|
5829 |
|
5830 Wed Apr 3 11:19:30 1996 Rick Niles <niles@axp745.gsfc.nasa.gov> |
|
5831 |
|
5832 * resource.cc: Don't make including sys/resource.h and sys/times.h |
|
5833 mutually exclusive. |
|
5834 |
|
5835 Fri Mar 29 13:43:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5836 |
|
5837 * Makefile.in (distclean): Delete so_locations, which is created |
|
5838 on DEC Alpha systems. |
|
5839 |
|
5840 Thu Mar 28 02:53:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5841 |
|
5842 * utils.h (undo_string_escape): Provide extern declaration here. |
|
5843 |
|
5844 * lex.l (NL): Allow \r\n as new line character. |
|
5845 (.): Complain if invalid character is found on input |
|
5846 |
|
5847 Fri Mar 22 03:47:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5848 |
|
5849 * resource.cc (getrusage): If getrusage is missing, try using |
|
5850 times to at least fill in the cpu time values. If neither one is |
|
5851 available, return 0 for cpu times instead of NaN. |
|
5852 |
|
5853 * sighandlers.cc (octave_signal_mask): New file-scope variable. |
|
5854 (octave_save_signal_mask, octave_restore_signal_mask): New functions. |
|
5855 * toplev.cc (main_loop): Use them. |
|
5856 |
|
5857 Wed Mar 20 01:21:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5858 |
|
5859 * utils.cc (get_fcn_file_names (const string&, int)): Resize |
|
5860 retval to value of k, not i. |
|
5861 (get_fcn_file_names (int)): In loop for copying names to retval, |
|
5862 don't increment j twice. |
|
5863 |
|
5864 Mon Mar 18 22:27:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5865 |
|
5866 * Makefile.in ($(MAKEDEPS)): Depend on oct-gperf.h. |
|
5867 |
|
5868 Fri Mar 1 18:15:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5869 |
|
5870 * fsolve.cc (fsolve_options): Delete unused argument nargout. |
|
5871 |
|
5872 * filter.cc: Use MArray instead of Array so that automatic |
|
5873 conversions will work again. |
|
5874 |
|
5875 Tue Feb 27 04:49:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5876 |
|
5877 * variables.cc (looks_like_octave_copyright): Make the strings |
|
5878 that we are trying to match both have length 29. |
|
5879 |
|
5880 * Makefile.in (install-bin): Use $(INSTALL_PROGRAM), not $(INSTALL). |
|
5881 |
|
5882 * load-save.cc (read_mat_binary_data): Make sure name is |
|
5883 NUL terminated. |
|
5884 |
|
5885 Mon Feb 26 18:18:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5886 |
|
5887 * variables.cc (whos): Make argv from tmp_args, not args. |
|
5888 |
|
5889 * defun.h (DEFCONSTX): Don't stringify name. |
|
5890 |
|
5891 Sat Feb 24 01:12:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5892 |
|
5893 * Makefile.in (install-oct): Make mk-oct-links executable. |
|
5894 * mk-oct-links.in (links_dir): Update to match new format of |
|
5895 DEFUN_DLD_BUILTIN macro. Use LN_S, not just LN. |
|
5896 (links_dir): |
|
5897 |
|
5898 * pr-output.cc (octave_print_internal): New arg, extra_indent, for |
|
5899 versions of this function that take matrices and ranges. |
|
5900 * pt-const.cc (TC_REP::print (ostream&)): Fix printing of structures. |
|
5901 Pass struct_indent to octave_print_internal as appropriate. |
|
5902 (print_with_name (ostream&, const string&, bool)): Handle spacing |
|
5903 around `=' differently for structures. |
|
5904 |
|
5905 Fri Feb 23 04:51:04 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5906 |
|
5907 * token.cc (token (double, const string&, int, int)): Store orig_text. |
|
5908 |
|
5909 Tue Feb 20 20:36:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5910 |
|
5911 * variables.cc (Fclear): Fix off-by-one error. |
|
5912 |
|
5913 Sat Feb 17 16:54:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5914 |
|
5915 * oct-hist.cc (default_history_file): Append "/.octave_hist" to |
|
5916 return value, not to home_directory. |
|
5917 |
|
5918 Fri Feb 16 18:10:46 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5919 |
|
5920 * utils.cc: (NINT, D_NINT): Move to liboctave. |
|
5921 |
|
5922 * sysdep.cc (octave_ieee_init): Move to liboctave. |
|
5923 |
|
5924 * procstream.h, procstream.cc: Rewrite. |
|
5925 |
|
5926 * pager.cc (cleanup_oprocstream): New static function. |
|
5927 * toplev.cc (cleanup_iprocstream): Likewise. |
|
5928 * dirfns.cc (cleanup_iprocstream): Likewise. |
|
5929 |
|
5930 * unwind-prot.cc (matrix_cleanup, complex_matrix_cleanup): Delete. |
|
5931 |
|
5932 Thu Feb 15 22:03:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5933 |
|
5934 * oct-obj.cc, oct-obj.h: Move most code to the header. |
|
5935 |
|
5936 * oct-obj.cc (make_argv, all_strings): New member functions. |
|
5937 * utils.cc: Moved from here. |
|
5938 |
|
5939 * load-save.cc: Move byte swapping stuff to liboctave. |
|
5940 Move float format conversion stuff to liboctave. |
|
5941 (all_parts_int, too_large_for_float): Move to liboctave. |
|
5942 |
|
5943 * symtab.cc (valid_identifier): Move here. |
|
5944 * load-save.cc: From here. |
|
5945 |
|
5946 * sysdep.cc: Move floating-point format stuff to liboctave. |
|
5947 * pr-output.cc: Include float-fmt.h here. |
|
5948 |
|
5949 Wed Feb 14 01:49:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5950 |
|
5951 * defun.h, defun-dld.h, defun-int.h: Simplify interface for DEFUN, |
|
5952 DEFUN_DLD, DEFVAR, and DEFCONST macros. Change all uses. |
|
5953 |
|
5954 * qzval.cc: Move guts to liboctave. |
|
5955 |
|
5956 Tue Feb 13 10:28:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5957 |
|
5958 * variables.cc (parse_fcn_file): Also avoid saving history if |
|
5959 input is from a script file. |
|
5960 |
|
5961 * help.cc (Ftype): Call unwind_protect_str for user_pref.ps4. |
|
5962 |
|
5963 * npsol.cc (nonlinear_constraints_ok): Now static. |
|
5964 |
|
5965 * npsol.cc (linear_constraints_ok): Now static. |
|
5966 * qpsol.cc (linear_constraints_ok): Duplicate here. |
|
5967 |
|
5968 * data.cc (Flinspace): Don't print usage message if nargin == 2. |
|
5969 |
|
5970 Sun Feb 11 14:20:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5971 |
|
5972 * mk-oct-links.in: Rename from mk-oct-links. |
|
5973 (LN_S): Use this variable instead of ln. |
|
5974 Set -e option for shell. |
|
5975 Exit with status of last command. |
|
5976 Print message when making link. |
|
5977 * Makefile.in (DISTFILES): Add mk-oct-links.in to the list. |
|
5978 (install-oct): Run ./mk-oct-links, not $(srcdir)/mk-oct-links. |
|
5979 |
|
5980 * variables.cc (install_builtin_variables): Restore accidentally |
|
5981 deleted DEFVAR for save_precision. |
|
5982 |
|
5983 Fri Feb 9 11:24:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5984 |
|
5985 * Makefile.in (INCLUDES): Delete statdefs.h from the list (it's |
|
5986 now in the liboctave directory). |
|
5987 |
|
5988 * toplev.cc (toplevel): Define here. |
|
5989 * octave.cc (toplevel): Not here. |
|
5990 |
|
5991 * toplev.cc (main_loop): New function. |
|
5992 * octave.cc (main): Call it here instead of doing main loop |
|
5993 actions here. |
|
5994 |
|
5995 * user-prefs.cc (do_fortran_indexing): Also set liboctave_dfi_flag. |
|
5996 (prefer_column_vectors): Also set liboctave_pcv_flag. |
|
5997 (prefer_zero_one_indexing): Also set liboctave_pzo_flag. |
|
5998 (resize_on_range_error): Also set liboctave_rre_flag. |
|
5999 |
|
6000 * variables.cc (restore_command_history): New function. |
|
6001 (parse_fcn_file): Use it here in unwind_protect. |
|
6002 |
|
6003 * dynamic-ld.cc (load_octave_oct_file): Reverse sense of test. |
|
6004 (load_octave_builtin): Delete. |
|
6005 (mangle_octave_oct_file_name): Delete. |
|
6006 |
|
6007 * pt-fvc.cc (tree_builtin::eval): Don't try to dynamically load |
|
6008 functions here. |
|
6009 |
|
6010 * pr-output.cc (set_format_style): Decrement argc for first arg too. |
|
6011 |
|
6012 * input.cc (gnu_readline): If readline returns an empty string, |
|
6013 convert it to a string containing a single newline character. |
|
6014 |
|
6015 * octave.cc (octave_argv): Now a static string_vector. |
|
6016 (intern_argv): Use string_vector ops, not charMatrix ops. |
|
6017 * toplev.cc (octave_argv): Delete definition. |
|
6018 * toplev.h (octave_argv): Delete declaration. |
|
6019 |
|
6020 Thu Feb 8 10:58:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6021 |
|
6022 * Makefile.in (conf-dist): New target. |
|
6023 |
|
6024 Tue Feb 6 10:59:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6025 |
|
6026 * help.cc (Ftype): Correctly handle structure names. |
|
6027 |
|
6028 Sun Feb 4 02:02:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6029 |
|
6030 * qpsol.cc (Fqpsol): Call set_options(), not copy() to set |
|
6031 options for QPSOL objects. |
|
6032 |
|
6033 * npsol.cc (Fnpsol): Call set_options(), not copy() to set |
|
6034 options for NPSOL objects. |
|
6035 |
|
6036 * quad.cc (Fquad): Call set_options(), not copy() to set |
|
6037 options for Quad objects. |
|
6038 |
|
6039 * dynamic-ld.cc (load_octave_builtin): Don't call destructor on string. |
|
6040 (load_octave_oct_file): Likewise. |
|
6041 Check oct_file.empty(), not just oct_file. |
|
6042 |
|
6043 * fsolve.cc (Ffsolve): Call set_options(), not copy() to set |
|
6044 options for NLEqn object. |
|
6045 |
|
6046 * variables.cc (do_who): Properly set match patterns from argument |
|
6047 vector for call to maybe_list. |
|
6048 |
|
6049 Sat Feb 3 03:29:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6050 |
|
6051 * octave.cc (long_opts): Properly set second field using new enum. |
|
6052 |
|
6053 * lsode.cc: Change ODE to LSODE where appropriate. |
|
6054 Use LSODE_options, not ODE_options. |
|
6055 |
|
6056 * dassl.cc: Change DAE to DASSL where appropriate. |
|
6057 Use DASSL_options, not ODE_options. |
|
6058 |
|
6059 Fri Feb 2 01:41:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6060 |
|
6061 * dirfns.cc: Include unistd.h. |
|
6062 |
|
6063 * parse.y, lex.l: Handle matrix lists without ml or mlnm stacks. |
|
6064 * pt-mat.h, pt-mat.cc (tree_matrix): |
|
6065 Rewrite to use SLList instead of home brew list. |
|
6066 * SLList-tm.cc: New file |
|
6067 * Makefile.in: Add it to the lists. |
|
6068 * SLStack-tm.cc: Delete. |
|
6069 * Makefile.in: Delete it from the lists. |
|
6070 |
|
6071 * All pt-* files: Use bool instead of int where appropriate. |
|
6072 |
|
6073 * Makefile.in (DEP_SOURCES_3): Add octave.cc. |
|
6074 |
|
6075 * pt-const.h (class tree_constant::tree_constant_rep): Make |
|
6076 everything in this class public, then it doesn't need to declare |
|
6077 the tree_constant class as a friend. |
|
6078 |
|
6079 Thu Feb 1 01:42:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6080 |
|
6081 * lex.h, lex.l, parse.h, parse.y (class lexical_feedback): New |
|
6082 class for lexer flags. Replace lots of global vars with members |
|
6083 of this class. |
|
6084 |
|
6085 * lex.l (class brace_paren_nesting_level): New class to replace |
|
6086 nesting_level stack. nesting_level is now an instance of this |
|
6087 class. |
|
6088 |
|
6089 * lex.l (yum_yum): New typedef. |
|
6090 (ATE_NOTHING): New global var. |
|
6091 (ATE_SPACE_OR_TAB, ATE_NEWLINE): Don't #define these, declare them |
|
6092 as const yum_yum. |
|
6093 (eat_whitespace, eat_continuation): Return yum_yum, not int. |
|
6094 |
|
6095 * lex.l (SHORT_CIRCUIT_LOGICALS): Delete. Always do this for || |
|
6096 and && tokens. |
|
6097 (yy_flex_alloc, yy_flex_realloc, yy_flex_free, next_char_is_space): |
|
6098 Delete. |
|
6099 |
|
6100 * toplev.cc (verbose_flag): Delete definition. |
|
6101 * toplev.h (verbose_flag): And declaration. |
|
6102 * octave.cc (verbose_flag): Now static. |
|
6103 |
|
6104 * lex.l (lookup_identifier): Arg is now string, not char*. |
|
6105 (handle_identifier, is_plot_keyword, is_keyword): Likewise. |
|
6106 (strip_trailing_whitespace): Return value is now string, not char*. |
|
6107 (plot_style_token): Likewise, for both arg and return value. |
|
6108 |
|
6109 * input.cc (octave_gets_line): Delete. |
|
6110 (gnu_readline, octave_gets, octave_read): |
|
6111 Properly handle input when using_readline is either true or false. |
|
6112 Don't limit length of input lines to flex buffer size. |
|
6113 (get_user_input): New function. |
|
6114 |
|
6115 * octave.cc (main): Handle --no-line-editing. |
|
6116 * toplev.h (using_readline): Provide external declaration here. |
|
6117 * input.h: Not here. |
|
6118 * toplev.cc (using_readline): Define here. |
|
6119 * input.cc: Not here. |
|
6120 |
|
6121 * toplev.h (no_line_editing): Delete declaration. |
|
6122 * input.cc (no_line_editing): Delete definition. |
|
6123 |
|
6124 Wed Jan 31 05:28:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6125 |
|
6126 * input.cc (DEFAULT_ARRAY_SIZE, PROMPT_GROWTH): Delete definitions |
|
6127 of unused macros. |
|
6128 (read_octal): Now static. |
|
6129 |
|
6130 * givens.cc (Fgivens): Use new functions from matrix classes |
|
6131 instead of calling Fortran functions directly. |
|
6132 * syl.cc (Fsyl): Likewise. |
|
6133 * expm.cc (Fexpm): Likewise. |
|
6134 |
|
6135 Mon Jan 29 00:00:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6136 |
|
6137 * octave.cc: Use new prog_args class instead of calling getopt |
|
6138 directly. |
|
6139 |
|
6140 * getopt.h, getopt.c, getopt1.c: Move to liboctave directory. |
|
6141 * Makefile: Remove from lists. |
|
6142 |
|
6143 * utils.cc (strconcat, read_until, discard_until): Delete. |
|
6144 |
|
6145 * pager.cc (terminal_columns, terminal_rows): Move to |
|
6146 liboctave/oct-term.cc. |
|
6147 * pager.cc, pr-output.cc: Include oct-term.h. |
|
6148 |
|
6149 * utils.cc (list_in_columns): Moved to liboctave/str-vec.cc. |
|
6150 Change all callers to use new member function syntax. |
|
6151 |
|
6152 * dirfns.cc (absolute_program): Now static. |
|
6153 (absolute_pathname): Delete. |
|
6154 |
|
6155 * pt-plot.cc (save_in_tmp_file): Call oct_tempnam, not |
|
6156 octave_tmp_file_name. Include file-ops.h. |
|
6157 * file-io.cc (do_scanf, Foctave_tmp_file_name): Likewise. |
|
6158 * oct-hist.cc (mk_tmp_hist_file): Likewise. |
|
6159 |
|
6160 * file-io.cc (Foctave_tmp_file_name): Move here. |
|
6161 * utils.cc: From here. |
|
6162 |
|
6163 * utils.cc (octave_tmp_file_name): Move to liboctave/file-ops.cc. |
|
6164 |
|
6165 * tempname.c, tempnam.c: Move to liboctave directory. |
|
6166 * Makefile.in: Remove from lists. |
|
6167 |
|
6168 Sun Jan 28 19:00:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6169 |
|
6170 * xdiv.cc (all xdiv functions): Return Matrix or ComplexMatrix, |
|
6171 not tree_constant. |
|
6172 |
|
6173 * oct-hist.h, oct-hist.cc, toplev.cc, octave.cc, input.cc, |
|
6174 file-io.cc, user-prefs.cc: Rewrite to use new command_history |
|
6175 class instead of calling readline history functions directly. |
|
6176 |
|
6177 * utils.cc (get_fcn_file_names): Delete num arg. |
|
6178 |
|
6179 Thu Jan 25 20:33:54 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6180 |
|
6181 * load-save.cc (matches_patterns): Use new glob_match class |
|
6182 instead of calling fnmatch directly. |
|
6183 * symtab.cc (matches_patterns, symbol_table::glob): Likewise. |
|
6184 * variables.cc (Fclear): Likewise. |
|
6185 |
|
6186 Wed Jan 24 02:05:22 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6187 |
|
6188 * fnmatch.h fnmatch.c: Delete. |
|
6189 * Makefile.in: Add glob stuff in the appropriate places, remove |
|
6190 fnmatch.h and fnmatch.c from lists. |
|
6191 |
|
6192 * octave.cc (program_invocation_name, program_invocation_short_name): |
|
6193 Maybe declare. |
|
6194 (initialize_globals): Maybe initialize them. |
|
6195 |
|
6196 * octave.cc (initialize_pathsearch): Define here, not in pathsearch.cc. |
|
6197 * pathsearch.h, pathsearch.cc: Remove files. |
|
6198 * Makefile.in: Remove them from the lists. |
|
6199 |
|
6200 * help.cc (simple_help): Ignore directories that don't have any .m |
|
6201 or .oct files. |
|
6202 |
|
6203 * utils.cc (search_path_for_file): Use new dir_path class instead |
|
6204 of calling kpathsea routines directly. |
|
6205 (get_fcn_file_names): Likewise. |
|
6206 * help.cc (simple_help): Likewise. |
|
6207 |
|
6208 * dirfns.cc (make_absolute): Don't convert empty arg to "./". |
|
6209 |
|
6210 * sysdir.h: Move to liboctave directory. |
|
6211 * Makefile.in: Remove from lists. |
|
6212 |
|
6213 * dirfns.cc (Freaddir): Use new dir_entry class instead of calling |
|
6214 readdir directly. Include dir-ops.h, not sysdir.h. |
|
6215 * utils.cc (get_fcn_file_names): Likewise. Delete unnecessary |
|
6216 first arg, change all callers. |
|
6217 |
|
6218 Tue Jan 23 00:43:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6219 |
|
6220 * safe-xstat.hin, safe-xstat.cin, statdefs.h, file-ops.h, |
|
6221 file-ops.cc, filemode.c, mkdir.c, rmdir.c, rename.c: |
|
6222 Files moved to liboctave directory. |
|
6223 * Makefile.in: Remove them from lists. Move appropriate rules. |
|
6224 |
|
6225 * acosh.c, asinh.c, atanh.c, erf.c, erfc.c, gamma.c, lgamma.c: |
|
6226 Files moved to liboctave directory. |
|
6227 * Makefile.in: Remove them from lists. |
|
6228 * missing-math.h: Deleted. |
|
6229 * pr-output.cc, sysdep.cc, minmax.cc, mappers.cc, expm.cc, |
|
6230 arith-ops.cc: Include oct-math.h, not cmath or missing-math.h. |
|
6231 |
|
6232 Mon Jan 22 19:33:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6233 |
|
6234 * variables.cc (Fexist): Use file_stat instead of calling stat |
|
6235 directly. Include file-ops.h, not statdefs.h. |
|
6236 * octave.cc (execute_startup_files): Likewise. |
|
6237 * file-io.cc (file_io_get_file, fopen_internal, popen_internal, Fstat): |
|
6238 Likewise. |
|
6239 (mk_stat_map): Likewise, use file_stat object, not struct stat. |
|
6240 * oct-hist.cc (do_history): Likewise. |
|
6241 |
|
6242 * file-ops.h, file-stat.cc: New files. |
|
6243 * Makefile.in: Include them. |
|
6244 * dirfns.cc: Delete is_newer. Don't include statdefs.h. |
|
6245 * toplev.cc: Don't include statdefs.h. |
|
6246 |
|
6247 Sun Jan 21 22:48:03 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6248 |
|
6249 * pt-mvr.h, pt-fvc.h, Map.cc, Map.h, dynamic-ld.h, |
|
6250 pt-fvc-base.cc, SLList-str.cc, pt-fcn.h, pt-fvc-base.h, |
|
6251 SLStack-str.cc, pt-mvr.cc, pt-exp.cc, token.h, token.cc, |
|
6252 user-prefs.h, pt-base.cc, user-prefs.cc, dirfns.h, sysdep.h, |
|
6253 sysdep.cc, input.h, parse.h, lex.l, parse.y, defun.h, mappers.h, |
|
6254 pt-fvc.cc, pt-plot.h, load-save.h, octave.cc, defun-int.h, help.h, |
|
6255 variables.h, oct-map.h, oct-obj.h, oct-obj.cc, pt-const.cc, |
|
6256 oct-map.cc, input.cc, symtab.h, pt-const.h, pathsearch.cc, |
|
6257 pr-output.h, pr-output.cc, toplev.h, timefns.cc, schur.cc, |
|
6258 pt-plot.cc, pager.cc, load-save.cc, dynamic-ld.cc, dirfns.cc, |
|
6259 data.cc, file-info.h, file-info.cc, colloc.cc, utils.h, qpsol.cc, |
|
6260 quad.cc, npsol.cc, lsode.cc, fsolve.cc, dassl.cc, file-io.cc, |
|
6261 help.cc, utils.cc, oct-hist.h, oct-hist.cc, symtab.cc, toplev.cc, |
|
6262 pt-fcn.cc, unwind-prot.h, unwind-prot.cc, variables.cc: |
|
6263 Most functions in these files that deal with character strings |
|
6264 have been converted to use the string class insatead of char*. If |
|
6265 you want more detailed information, you'll have to figure it out |
|
6266 for yourself. |
|
6267 |
|
6268 Sat Jan 20 18:19:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6269 |
|
6270 * dynamic-ld.cc [WITH_DL]: Define RTLD_LAZY to be 1 if it is not |
|
6271 already defined. |
|
6272 |
|
6273 Sun Jan 14 07:48:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6274 |
|
6275 * pt-const.cc (print_as_scalar, print_as_structure): |
|
6276 Make these member functions. |
|
6277 (tree_constant::print_with_name): New function, moved here from |
|
6278 old tree-expr.cc file (where it was called print_constant) and |
|
6279 converted to member function. Change all callers. |
|
6280 |
|
6281 Fri Jan 12 01:54:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6282 |
|
6283 * octave.cc (initialize_globals): Don't do kpathsearch stuff here. |
|
6284 (main): Call initialize_pathsearch() here. |
|
6285 |
|
6286 * pathsearch.cc: New file. |
|
6287 * Makefile.in (SOURCES): Add it to the list |
|
6288 |
|
6289 * oct-hist.h: Rename from octave-hist.h. |
|
6290 * oct-hist.cc: Rename from octave-hist.cc. |
|
6291 * Makefile.in, parse.y, other .cc files: Cope with it. |
|
6292 |
|
6293 * dynamic-ld.cc: Avoid warnings if !WITH_DYNAMIC_LINKING. |
|
6294 |
|
6295 * load-save.cc (save_ascii_data): string::data() returns const char*. |
|
6296 |
|
6297 * utils.h: Don't provide forward declaration for tree_constant. |
|
6298 |
|
6299 * oct-obj.h: Don't include mx-base.h or provide forward |
|
6300 declarations for Matrix and Range types. |
|
6301 |
|
6302 * file-info.h: Don't include oct-obj.h. Do include cstdio. |
|
6303 |
|
6304 * symtab.h: Don't provide forward declaration for ostream. |
|
6305 |
|
6306 * variables.h: Don't provide forward declarations for istream, |
|
6307 ostrstream, tree, builtin_function, or builtin_variable objects. |
|
6308 |
|
6309 * balance.cc, chol.cc, colloc.cc, dassl.cc, det.cc, eig.cc, |
|
6310 expm.cc, fft.cc, fft2.cc, filter.cc, find.cc, fsolve.cc, fsqp.cc, |
|
6311 givens.cc, hess.cc, ifft.cc, ifft2.cc, inv.cc, log.cc, lpsolve.cc, |
|
6312 lsode.cc, lu.cc, minmax.cc, npsol.cc, pinv.cc, qpsol.cc, qr.cc, |
|
6313 quad.cc, qzval.cc, rand.cc, schur.cc, sort.cc, svd.cc, syl.cc: |
|
6314 Clean up #include statements. |
|
6315 |
|
6316 * pt-const.h: Don't include oct-obj.h or tree-base.h. |
|
6317 Provide forward declaration of Octave_object here. |
|
6318 * pt-const.cc: Include oct-obj.h here. |
|
6319 |
|
6320 * pt-mat.h, pt-fcn.h, pt-const.h, pt-misc.h, pt-plot.h, |
|
6321 pt-exp-base.h, pt-cmd.h, pt-fvc-base.h, pt-mvr-base.h, pt-exp.h, |
|
6322 pt-mvr.h, pt-fvc.h: New files, split from tree-expr.h and/or |
|
6323 renamed from other tree-*.h files (pt == parse tree). |
|
6324 * pt-base.cc, pt-const.cc, pt-exp.cc, pt-fvc-base.cc, pt-mat.cc, |
|
6325 pt-mvr-base.cc, pt-plot.cc, pt-cmd.cc, pt-exp-base.cc, pt-fcn.cc, |
|
6326 pt-fvc.cc, pt-misc.cc, pt-mvr.cc: Likewse, split from tree-expr.cc |
|
6327 and/or other tree-*.cc files. |
|
6328 * Makefile.in: Include them in the appropriate lists. |
|
6329 * All: Fix #include statements to match. |
|
6330 |
|
6331 * Array-tc.cc: Don't instantiate ArrayRep objects. |
|
6332 |
|
6333 Thu Jan 11 02:35:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6334 |
|
6335 * tree-const.cc (tree_constant::eval (int, int, const Octave_object&)): |
|
6336 Define here instead of in tree-const.h. |
|
6337 |
|
6338 Wed Jan 10 04:34:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6339 |
|
6340 * tree-const.h (tree_constant::tree_constant (const string&): |
|
6341 * tree-const.cc (TC_REP::tree_constant_rep (const string&)): |
|
6342 New constructor. |
|
6343 |
|
6344 Tue Jan 9 04:10:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6345 |
|
6346 * rand.cc (do_rand): Use string_value() result directly instead of |
|
6347 c_str() conversion. |
|
6348 * balance.cc (Fbalance): Likewise. |
|
6349 |
|
6350 * tree-const.cc (TC_REP::string_value()): |
|
6351 Handle new definition of charMatrix::row_as_string() |
|
6352 * load-save.cc (save_ascii_data): Ditto. |
|
6353 (save_binary_data): Ditto. |
|
6354 * pr-output.cc (octave_print_internal): Ditto. |
|
6355 |
|
6356 * balance.cc (Fbalance): |
|
6357 Handle new definition of TC_REP::string_value() |
|
6358 * colloc.cc (Fcolloc): Ditto. |
|
6359 * dassl.cc (Fdassl_options): Ditto. |
|
6360 * data.cc (Fstruct_contains): Ditto. |
|
6361 * dirfns.cc (Fmkdir): Ditto. |
|
6362 (Freaddir): Ditto. |
|
6363 (Frmdir): Ditto. |
|
6364 (Frename): Ditto. |
|
6365 * error.cc (handle_message): Ditto. |
|
6366 * file-io.cc (process_printf_format): Ditto. |
|
6367 (fopen_internal): Ditto. |
|
6368 (file_io_get_file): Ditto. |
|
6369 (return_valid_file): Ditto. |
|
6370 (Flstat): Ditto. |
|
6371 (Fstat): Ditto. |
|
6372 (unlink_internal): Ditto. |
|
6373 (mkfifo_internal): Ditto. |
|
6374 (async_system_internal): Ditto. |
|
6375 (sync_system_internal): Ditto. |
|
6376 (execute_internal): Ditto. |
|
6377 (popen_internal): Ditto. |
|
6378 (fwrite_internal): Ditto. |
|
6379 (fread_internal): Ditto. |
|
6380 (do_printf): Ditto. |
|
6381 (do_scanf): Ditto. |
|
6382 * input.cc (get_user_input): Ditto. |
|
6383 * lsode.cc (Flsode_options): Ditto. |
|
6384 * npsol.cc (Fnpsol_options):Ditto. |
|
6385 * qpsol.cc (Fqpsol_options):Ditto. |
|
6386 * quad.cc (Fquad_options): Ditto. |
|
6387 * rand.cc (do_rand): Ditto. |
|
6388 * schur.cc (Fschur): Ditto. |
|
6389 * sysdep.cc (Fputenv): Ditto. |
|
6390 (Fgetenv): Ditto. |
|
6391 * timefns.cc (extract_tm): Ditto. |
|
6392 (Fstrftime): Ditto. |
|
6393 * toplev.cc (Fsource): Ditto. |
|
6394 (eval_string): Ditto. |
|
6395 (Fsystem): Ditto. |
|
6396 * tree-plot.cc (subplot::handle_plot_data): Ditto. |
|
6397 * variables.cc (is_valid_function): Ditto. |
|
6398 (Fis_global): Ditto. |
|
6399 (Fexist): Ditto. |
|
6400 (builtin_string_variable): Ditto. |
|
6401 * utils.cc (make_argv): Ditto. |
|
6402 (Fundo_string_escapes): Ditto. |
|
6403 |
|
6404 Mon Jan 8 01:54:50 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6405 |
|
6406 * Makefile.in (install-bin): Use $(LN_S), not just ln. |
|
6407 |
|
6408 * variables.cc (octave_fcn_file_dir): New function. |
|
6409 * tree-expr.cc (mark_as_system_fcn_file): Use it instead of |
|
6410 octave_lib_dir. |
|
6411 |
|
6412 * Makefile.in (clean): If $(SHARED_LIBS), also remove shared libs. |
|
6413 |
|
6414 * pr-output.cc (set_format (const ComplexMatrix&, int&, int&)): |
|
6415 Unconditionally call all_elements_are_int_or_inf_or_nan(). |
|
6416 (set_format (const Matrix&, int&, int&)): Likewise. |
|
6417 |
|
6418 Sun Jan 7 19:12:39 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6419 |
|
6420 * utils.cc (oct_putenv): New function. |
|
6421 * sysdep.cc (Fputenv): Use oct_putenv. |
|
6422 * octave.cc (initialize_globals): Likewise. |
|
6423 |
|
6424 Sat Jan 6 23:22:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6425 |
|
6426 * sysdep.cc (Fputenv): New function. |
|
6427 |
|
6428 * input.cc (initialize_readline): Call rl_initialize() here. |
|
6429 |
|
6430 * octave.cc: Conditionally define atexit to be on_exit here. |
|
6431 * toplev.cc: Not here. |
|
6432 |
|
6433 Fri Jan 5 14:01:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6434 |
|
6435 * toplev.cc: Don't include <pwd.h> here. |
|
6436 |
|
6437 * octave-hist.cc, tree-plot.cc, utils.cc: Do include "sysdep.h". |
|
6438 |
|
6439 * dirfns.cc, file-io.cc, help.cc, load-save.cc, octave.cc, |
|
6440 octave-hist.cc, tree-plot.cc, utils.cc: |
|
6441 Don't include <readline/tilde.h>. |
|
6442 * sysdep.h: Do include it here. |
|
6443 |
|
6444 * tree-const.cc (TC_REP::assign (tree_constant&, Octave_object&)): |
|
6445 If we have a matrix or range, call maybe_mutate before returning. |
|
6446 |
|
6447 Sun Dec 31 15:56:18 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6448 |
|
6449 * npsol.cc (Fnpsol): Improve doc string. |
|
6450 * qpsol.cc (Fqpsol): Likewise. |
|
6451 |
|
6452 Fri Dec 29 21:46:58 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6453 |
|
6454 * defun-dld.h: Make work again for OCTAVE_LITE and |
|
6455 WITH_DYNAMIC_LINKING. |
|
6456 |
|
6457 * Makefile.in: Handle shared libraries. |
|
6458 |
|
6459 Wed Dec 27 17:47:51 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6460 |
|
6461 * mk-oct-links: New file. |
|
6462 * Makefile.in (install-oct): Use it. |
|
6463 * f-*.cc: Rename to *.cc. |
|
6464 |
|
6465 * Makefile.in (install-bin, install-lib, install-oct): New targets. |
|
6466 (install): Use them. |
|
6467 |
|
6468 Tue Dec 26 21:38:22 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6469 |
|
6470 * toplev.cc (reading_startup_message_printed): Move initialization |
|
6471 here and make extern. |
|
6472 |
|
6473 * dirfns.cc, dynamic-ld.cc, help.cc, input.cc, octave-hist.cc, |
|
6474 octave.cc, sighandlers.cc, sysdep.cc, tree-expr.cc, tree-misc.cc, |
|
6475 utils.cc, variables.cc, parse.y, lex.l: Include toplev.h instead |
|
6476 of octave.h. |
|
6477 * toplev.h: rename from octave.h. |
|
6478 |
|
6479 * octave.cc (main): Delete unused variable saved_sigint_handler. |
|
6480 |
|
6481 Sun Dec 24 00:26:54 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6482 |
|
6483 * dynamic-ld.cc: Massive re-write to handle dlopen/dlsym and |
|
6484 shl_load/shl_findsym methods of dynamic linking. |
|
6485 |
|
6486 * utils.cc (get_fcn_file_names): Check for .oct files if |
|
6487 WITH_DYNAMIC_LINKING, not WITH_DLD. |
|
6488 |
|
6489 * Makefile.in (LIB, TERMLIBS): Substitute values. |
|
6490 (octave): Add $(LIBS) to link command and use $(TERMLIBS) instead |
|
6491 of -ltermcap. |
|
6492 |
|
6493 Sat Dec 23 21:56:12 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6494 |
|
6495 * dynamic-ld.h, dynamic-ld.cc: Remove old unused code. |
|
6496 |
|
6497 * variables.cc (load_fcn_from_file): |
|
6498 Always call load_octave_oct_file. |
|
6499 |
|
6500 Wed Dec 20 00:56:57 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6501 |
|
6502 * pr-output.cc (set_real_format, set_real_matrix_format, |
|
6503 set_complex_format, set_complex_matrix_format, set_range_format): |
|
6504 New functions. Ensure the count of the digits to the right of the |
|
6505 decimal point is positive. |
|
6506 |
|
6507 * xpow.cc (xpow (const Matrix&, double)): Print warning if |
|
6508 inverting singular matrix (but return value anyway, in the name of |
|
6509 compatibility). |
|
6510 xpow (const ComplexMatrix&, double)): Likewise. |
|
6511 |
|
6512 * f-inv.cc (Finv): If matrix is singular, return result anyway, in |
|
6513 the name of compatibility. |
|
6514 |
|
6515 * symtab.cc (symbol_record::pop_context): |
|
6516 Don't assert (! context.empty ()). |
|
6517 |
|
6518 * tree-const.cc (TC_REP::char_matrix_value): Don't complain about |
|
6519 type conversion if object is an empty matrix.f |
|
6520 (TC_REP::assign): If rhs is a string, don't convert to numeric |
|
6521 type if rhs is empty or "". |
|
6522 Only widen if rhs is not empty. |
|
6523 Don't return 0x0 char_matrix if it is supposed to be a string. |
|
6524 |
|
6525 * arith-ops.h, mappers.h, pr-output.h, xdiv.h, xpow.h: Include |
|
6526 oct-cmplx.h in place of forward declaration for class Complex. |
|
6527 |
|
6528 * pr-output.cc, mappers.cc, arith-ops.cc, xdiv.cc, xpow.cc, |
|
6529 utils.cc: Include "oct-cmplx.h" instead of <Complex.h>. |
|
6530 |
|
6531 * octave.cc (initialize_error_handlers): Don't call |
|
6532 set_Complex_error_handler(). |
|
6533 (octave_Complex_error_handler): Delete unused function. |
|
6534 Delete declaration for set_Complex_error_handler(). |
|
6535 |
|
6536 * sighandlers.cc (catch_interrupts): New function. |
|
6537 * octave.cc (main): Call catch_interrupts() instead of calling |
|
6538 octave_set_signal_handler() directly. |
|
6539 |
|
6540 Tue Dec 19 03:22:37 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6541 |
|
6542 * variables.cc (looks_like_octave_copyright): Also recognize the |
|
6543 string " This program is free software". |
|
6544 |
|
6545 Thu Dec 14 01:54:06 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6546 |
|
6547 * octave-hist.cc (clean_up_history): Only write history file if |
|
6548 user_pref.saving_history. |
|
6549 |
|
6550 * octave-hist.cc (initialize_history, clean_up_history, |
|
6551 do_history): Perform tilde expansion on history file name. |
|
6552 |
|
6553 * octave.cc (main): Check `defined (HAVE_ON_EXIT)' not just |
|
6554 `(HAVE_ON_EXIT)'. |
|
6555 |
|
6556 * user-prefs.h (user_preferences): New fields, `history_file' and |
|
6557 `history_size'. |
|
6558 * user-prefs.cc (init_user_prefs): Initialize them. |
|
6559 (sv_history_file, history_size): New functions. |
|
6560 * variables.cc (install_builtin_variables): Initialize user-level |
|
6561 variables history_file and history_size. |
|
6562 * octave-hist.cc (default_history_size): Now extern. |
|
6563 (default_history_file): Likewise. |
|
6564 (octave_hist_size, octave_hist_file): Use user preference |
|
6565 variables instead. |
|
6566 * octave.cc (main): Call initialize_history after |
|
6567 execute_startup_files. |
|
6568 |
|
6569 Fri Dec 8 15:53:59 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6570 |
|
6571 * user-prefs.h (user_preferences): New field, `saving_history'. |
|
6572 * user-prefs.cc (init_user_prefs): Initialize it. |
|
6573 (saving_history): New function. |
|
6574 * variables.cc (install_builtin_variables): Initialize user-level |
|
6575 variable saving_history. |
|
6576 * octave.cc (parse_and_execute): Don't reset value of |
|
6577 saving_history here. |
|
6578 (main) Use user_pref.saving_history instead of saving_history. |
|
6579 * variables.cc (parse_fcn_file): Likewise. |
|
6580 * octave-hist.cc (maybe_save_history): Likewise. |
|
6581 Don't save history if input_from_startup_file. |
|
6582 |
|
6583 Mon Nov 27 23:05:52 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6584 |
|
6585 * resource.cc: Include systime.h before <sys/resource.h>. |
|
6586 |
|
6587 Tue Nov 14 14:09:40 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6588 |
|
6589 * error.cc: Include cstring. |
|
6590 |
|
6591 * tree-expr.cc (print_code): Decrement indent level after printing |
|
6592 function body. |
|
6593 |
|
6594 * Makefile.in: Remove references to oct-str.cc, oct-str.h, and |
|
6595 Array-string.cc. |
|
6596 |
|
6597 * tree-const.h: Don't include oct-str.h. |
|
6598 |
|
6599 Mon Nov 6 11:16:49 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6600 |
|
6601 * parse.y (make_plot_command, finish_colon_expression, |
|
6602 make_unwind_protect, make_try_command, make_for_command, |
|
6603 make_break_command, make_continue_command, make_return_command, |
|
6604 start_if_command, finish_if_command, make_elseif_clause, |
|
6605 make_simple_assignment, make_multi_val_ret, start_function_def, |
|
6606 frob_function_def, finish_function_def, start_matrix, |
|
6607 finish_matrix): New functions. Use them in the grammar to clean |
|
6608 things up a bit. Possibly convert matrix lists, colon |
|
6609 expressions, binary expressions, and unary expressions to constant |
|
6610 values. |
|
6611 (tree_matrix_type): Delete. |
|
6612 (simple_expr1): Handle all expression stuff here, including |
|
6613 assignments. |
|
6614 (simple_expr): Just check to see that simple_expr1 produced |
|
6615 something useful. |
|
6616 |
|
6617 * tree-plot.cc, tree-plot.h: Move most simple constructors to the |
|
6618 header file. |
|
6619 |
|
6620 * tree-expr.h (tree_expression::is_constant): Move virtual |
|
6621 function definition here. |
|
6622 (tree_fvc::is_constant): From here. |
|
6623 (tree_expression::is_matrix_constant): New virtual function. |
|
6624 (tree_expression::is_range_constant): New virtual function. |
|
6625 * tree-expr.cc (tree_matrix::is_matrix_constant): New function. |
|
6626 * tree-expr.cc (tree_colon_expression::is_range_constant): New |
|
6627 function. |
|
6628 |
|
6629 Fri Nov 3 03:42:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6630 |
|
6631 * utils.cc, utils.h (jump_to_top_level): Declare as extern "C". |
|
6632 |
|
6633 * tree-const.h (tree_constant::eval ()): Only mutate if printing. |
|
6634 |
|
6635 * tree-const.cc (TC_REP::tree_constant_rep (const Complex&), |
|
6636 TC_REP::tree_constant_rep (const ComplexMatrix&), |
|
6637 TC_REP::tree_constant_rep (const ComplexDiagMatrix&), |
|
6638 TC_REP::tree_constant_rep (const ComplexRowVector&), |
|
6639 TC_REP::tree_constant_rep (const ComplexColumnVector&)): |
|
6640 Also check to see if we can convert to scalar_constant, not just |
|
6641 complex_scalar_constant. |
|
6642 |
|
6643 * user-prefs.h (user_preferences): New field, `exec_path'. |
|
6644 * user-prefs.cc (init_user_prefs): Initialize it. |
|
6645 (sv_exec_path): New function. |
|
6646 * variables.cc (install_builtin_variables): Add DEFUN for EXEC_PATH. |
|
6647 (default_exec_path): New function. |
|
6648 * octave.cc (exec_path): New global variable. |
|
6649 Don't set and putenv() exec path here. |
|
6650 (long_opts): Add --exec-path option. |
|
6651 (main): Handle it. |
|
6652 (initialize_globals): Set default value here. |
|
6653 |
|
6654 * user-prefs.h (user_preferences): New field, `info_prog'. |
|
6655 * user-prefs.cc (init_user_prefs): Initialize it. |
|
6656 (sv_info_prog): New function. |
|
6657 * variables.cc (install_builtin_variables): Add DEFUN for INFO_PROGRAM. |
|
6658 (default_info_prog): New function. |
|
6659 * octave.cc (info_prog): New global variable. |
|
6660 (initialize_globals): Set default value here. |
|
6661 (long_opts): Add --info-prog option. |
|
6662 (main): Handle it. |
|
6663 * help.cc (try_info): Use user_pref.info_prog here. |
|
6664 |
|
6665 * octave.cc (initialize_globals): Put arch_dir and bin_dir ahead |
|
6666 of shell_path when resetting PATH. |
|
6667 |
|
6668 Thu Nov 2 04:30:13 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6669 |
|
6670 * f-rand.cc (Frandn): New function. |
|
6671 (do_initialization): New function. |
|
6672 (do_rand): New function for doing the real work. |
|
6673 (Frand): Use it. |
|
6674 |
|
6675 * octave.cc (parse_and_execute): New arg, warn_for. If given, |
|
6676 print message if file cannot be opened. |
|
6677 Set curr_fcn_file_full_name here. |
|
6678 (Fsource): Pass extra arg to parse_and_execute to get warning message. |
|
6679 |
|
6680 * tree-const.h: Handle line and column info for double, Complex, |
|
6681 and char* constants. |
|
6682 |
|
6683 * parse.y (maybe_convert_to_ans_assign): Pass along line and |
|
6684 column info from expression. |
|
6685 |
|
6686 * parse.y (make_constant): New function. |
|
6687 (simple_expr1, word_list): Use it. |
|
6688 |
|
6689 * input.cc, input.h (curr_fcn_file_full_name): New global. |
|
6690 * variables.cc (load_fcn_from_file): Set it here. |
|
6691 * parse.y (func_def2, yyerror, maybe_warn_missing_semi): Use it. |
|
6692 (func_def2): If !reading_fcn_file, don't call strcmp if |
|
6693 curr_fcn_file_name is 0. |
|
6694 |
|
6695 * octave.cc (Fsource): New function. |
|
6696 (parse_and_execute): Declare file name const char *. |
|
6697 * input.cc (get_input_from_file): Likewise. |
|
6698 |
|
6699 Wed Nov 1 13:54:34 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6700 |
|
6701 * f-filter.cc: New file. |
|
6702 * Makefile.in (DLD_SRC): Add it to the list. |
|
6703 |
|
6704 * sysdep.h (gethostname): Change declaration to match definition |
|
6705 in sysdep.cc. |
|
6706 |
|
6707 * resource.cc: Include sysdep.h here, for octave_NaN. |
|
6708 |
|
6709 Tue Oct 31 02:12:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6710 |
|
6711 * tree-const.cc (TC_REP::assign): After converting rhs to a |
|
6712 numeric type, use the converted value, not the original. |
|
6713 |
|
6714 * dirfns.cc (Fpwd): If nargout == 0, print the directory name |
|
6715 instead of returning it. |
|
6716 |
|
6717 * pager.cc (maybe_page_output): Call maybe_write_to_diary_file here. |
|
6718 (flush_output_to_pager): Not here. |
|
6719 |
|
6720 Mon Oct 30 23:39:43 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6721 |
|
6722 * variables.cc (install_builtin_commands): Add DEFVAR for |
|
6723 echo_executing_commands. |
|
6724 |
|
6725 * octave-hist.cc (do_edit_history): Handle new echo stuff. |
|
6726 * variables.cc (parse_fcn_file): Likewise. |
|
6727 * octave.cc (parse_and_execute): Likewise. |
|
6728 (main): Likewise. |
|
6729 * input.cc (do_input_echo): |
|
6730 (Fecho): New function. |
|
6731 |
|
6732 * tree-expr.cc (tree_function::print_code_function_header, |
|
6733 tree_function::print_code_function_trailer): New functions. |
|
6734 (tree_function::print_code): Use them. |
|
6735 (tree_function::eval): Likewise, if echoing commands. |
|
6736 * tree-misc.cc (tree_statement::maybe_echo_code): New function. |
|
6737 |
|
6738 * user-prefs.h (user_preferences): New field, echo_executing_commands. |
|
6739 (echo_state): New enum, for various types of echoing we do. |
|
6740 * user-prefs.cc (echo_executing_commands): New function. |
|
6741 |
|
6742 * tree-base.cc (print_code_indent): Print PS4 as line prefix. |
|
6743 * help.cc (Ftype): Add unwind_protect for ps4 and set it to "" |
|
6744 before printing code. |
|
6745 |
|
6746 * tree-misc.h (tree_statement_list): New field, function_body. |
|
6747 (tree_statement_list::mark_as_function_body): New function. |
|
6748 * parse.y (func_def3): Mark function bodies. |
|
6749 |
|
6750 * pr-output.cc (octave_print_internal): Undo string escapes when |
|
6751 printing charMatrix as strings. |
|
6752 |
|
6753 Sat Oct 28 17:38:29 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6754 |
|
6755 * utils.h (undo_string_escapes): Add missing const in declaration. |
|
6756 |
|
6757 Fri Oct 27 03:49:44 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6758 |
|
6759 * file-io.cc (next_available_file_number): New stack for keeping |
|
6760 track of next available file number. |
|
6761 (get_next_avail_file_num): New function. |
|
6762 (fopen_file_for_user, fopen_internal, popen_internal, |
|
6763 execute_internal): Use it. |
|
6764 |
|
6765 Mon Oct 23 07:00:09 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6766 |
|
6767 * tree-const.cc (TC_REP::convert_to_matrix_type, |
|
6768 tree_constant::convert_to_matrix_type): New arg, make_complex. |
|
6769 (TC_REP::set_index): New arg, rhs_is_complex. Pass it to |
|
6770 convert_to_matrix_type. |
|
6771 (TC_REP::assign): Pass rhs.is_complex_type() to set_index. |
|
6772 |
|
6773 Thu Oct 19 00:38:38 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6774 |
|
6775 * xpow.cc: Include <climits>. |
|
6776 |
|
6777 * sysdep.cc (Fpause): Do pause even if not interactive. |
|
6778 |
|
6779 * tree-const.cc (TC_REP::assign): Don't make RHS numeric if both |
|
6780 RHS and LHS are strings. |
|
6781 |
|
6782 Wed Oct 18 22:19:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6783 |
|
6784 * f-expm.cc (Fexpm): Avoid taking log of negative number. Also, |
|
6785 don't unnecessarily divide the input matrix by 1.0. |
|
6786 |
|
6787 * input.cc (decode_prompt_string): Recognize \[ and \] too. |
|
6788 (initialize_readline): Bind M-p to history-search-backward and M-n |
|
6789 to history-search-forward. |
|
6790 |
|
6791 Tue Oct 17 04:31:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6792 |
|
6793 * xpow.cc (xpow): Handle integer powers better for complex^double. |
|
6794 (elem_xpow): Likewise. |
|
6795 |
|
6796 * lex.l ({CCHAR}): If nesting_level.top() is BRACE, return ';', |
|
6797 not '\n'. |
|
6798 |
|
6799 Mon Oct 16 19:03:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6800 |
|
6801 * help.cc (Fwhich): Fix doc string. |
|
6802 |
|
6803 * variables.cc (Fexist): Update doc string. |
|
6804 |
|
6805 Sun Oct 15 22:19:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6806 |
|
6807 * Another massive set of changes to support character matrices |
|
6808 with indexing. The Octave_str_object class is no longer used. |
|
6809 Anything having to do with Octave_str_object in the following |
|
6810 files has been changed to use charMatrix instead: octave.h, |
|
6811 load-save.cc, octave.cc, strfns.cc, data.cc, pr-output.h, |
|
6812 pr-output.cc, tree-const.h, dirfns.cc, tree-const.cc, |
|
6813 tree-expr.cc. |
|
6814 |
|
6815 Sat Oct 14 22:28:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6816 |
|
6817 * f-sort.cc (mx_sort): Don't attempt to sort vectors that have |
|
6818 only one element, or matrices that have only one row. |
|
6819 |
|
6820 Thu Oct 12 02:16:58 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6821 |
|
6822 * mappers.cc (install_mapper_functions): Add gammaln as an alias |
|
6823 for lgamma. |
|
6824 |
|
6825 * tree-const.h, tree-const.cc: Massive overhaul of indexing and |
|
6826 indexed assignment functions. |
|
6827 * tc-inlines.h, tc-rep.h: Remove files. |
|
6828 * Makefile.in: Remove mention of them here too. |
|
6829 |
|
6830 * Makefile.in: Include $(TI_SRC) in DEP_SOURCES_3, not |
|
6831 $(TI_SOURCES). |
|
6832 Include $(DLD_SRC) in DEP_SOURCES_3. |
|
6833 Include $(TI_SRC) in DEF_FILES_5. |
|
6834 |
|
6835 Wed Oct 11 01:26:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6836 |
|
6837 * Makefile.in (INCLUDES): Remove tc-inlines.h and tc-rep.h from |
|
6838 the list. |
|
6839 |
|
6840 Mon Oct 9 08:31:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6841 |
|
6842 * lex.l (next_token_is_bin_op): Do match `.+', `.*', etc. |
|
6843 |
|
6844 Sun Oct 8 18:19:56 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6845 |
|
6846 * idx-vector.h, idx-vector.cc: Delete files. |
|
6847 * Makefile.in (SOURCES, INCLUDES): Remove them from lists. |
|
6848 |
|
6849 Fri Oct 6 00:52:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6850 |
|
6851 * f-svd.cc (Fsvd): If nargout == 0 or nargout == 1, don't ask for |
|
6852 U and V. |
|
6853 |
|
6854 Wed Oct 4 00:04:57 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6855 |
|
6856 * f-npsol.cc (Fnpsol, Fnpsol_options): Avoid unused variable |
|
6857 warnings if NPSOL_MISSING. |
|
6858 * f-qpsol.cc (Fqpsol, Fqpsol_options): Likewise for QPSOL_MISSING. |
|
6859 |
|
6860 * Makefile.in (DISTFILES): Add octave.gperf. |
|
6861 |
|
6862 * lex.l (next_token_is_bin_op): Don't ever return true for `.' |
|
6863 since that causes problems with things like [ .1 .1 ]. |
|
6864 |
|
6865 Tue Oct 3 05:30:24 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6866 |
|
6867 * variables.cc (is_valid_function): Avoid setting error_state if |
|
6868 argument is not a string. |
|
6869 |
|
6870 * parse.y (maybe_warn_missing_semi): New function. |
|
6871 (list1, list): Call it if statement not terminated by semicolon. |
|
6872 * tree-misc.h (tree_statement::line, tree_statement::column): |
|
6873 New functions. |
|
6874 * octave.cc (input_from_command_line_file): New global variable. |
|
6875 (main): Set it. |
|
6876 (parse_and_execute): Unwind-protect it and set it to zero. |
|
6877 (eval_string): Likewise. |
|
6878 * variables.cc (parse_fcn_file): Likewise. |
|
6879 |
|
6880 * user-prefs.cc (warn_missing_semicolon): New function. |
|
6881 * user-prefs.h (user_preferences): New field, warn_missing_semicolon. |
|
6882 * variables.cc (install_builtin_variables): DEFVAR it. |
|
6883 |
|
6884 * tree-expr.cc (tree_expression::is_logically_true): Actually use |
|
6885 argument. |
|
6886 |
|
6887 Mon Oct 2 19:55:48 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6888 |
|
6889 * variables.cc (install_builtin_variables): Reduce the default |
|
6890 value of save_precision to 15. |
|
6891 |
|
6892 * variables.cc (builtin_real_scalar_variable): Return 1 for |
|
6893 success, 0 for failure. |
|
6894 |
|
6895 * user-prefs.cc (struct_levels_to_print, set_save_precision, |
|
6896 set_output_max_field_width, set_output_precision): |
|
6897 Change sense of test for builtin_real_scalar_variable return value. |
|
6898 (check_preference): Rename from check_str_pref. Change all callers. |
|
6899 Accept value of 0 to be the same as "false" and nonzero to be the |
|
6900 same as "true". |
|
6901 Delete val to avoid memory leak. |
|
6902 * variables.cc (install_builtin_variables): Change initial values |
|
6903 from "true" to 1, "false" to 0. |
|
6904 |
|
6905 * variables.cc (install_builtin_variables): Add DEFVAR for |
|
6906 gnuplot_has_multiplot. |
|
6907 |
|
6908 * user-prefs.h (user_preferences): New field, |
|
6909 `gnuplot_has_multiplot'. |
|
6910 * user-prefs.cc (init_user_prefs): Initialize it. |
|
6911 (gnuplot_has_multiplot): New function. |
|
6912 |
|
6913 Sat Sep 30 16:52:57 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6914 |
|
6915 * oct-gperf.h, octave.gperf: Newfiles. |
|
6916 * Makefile.in (DISTFILES): Add octave.gperf. |
|
6917 (INCLUDES): Add oct-gperf.h. |
|
6918 (oct-gperf.h): New rule. |
|
6919 (local-dist, dist): Depend on oct-gperf.h. |
|
6920 * lex.l (is_keyword): Use perfect hash function to lookup |
|
6921 keywords. |
|
6922 |
|
6923 Fri Sep 29 04:36:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6924 |
|
6925 * version.h (OCTAVE_NAME_AND_VERSION): Add TARGET_HOST_TYPE to this. |
|
6926 |
|
6927 Thu Sep 28 00:03:51 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6928 |
|
6929 * tree-expr.cc (tree_expression::is_logically_true): New function. |
|
6930 * tree-cmd.cc (tree_while_command::eval): Use it instead of |
|
6931 handling the test directly here. |
|
6932 * tree-misc.cc (tree_if_clause::eval): Likewise |
|
6933 |
|
6934 * tree-const.cc (TC_REP::force_numeric): Don't try to print value |
|
6935 of str_obj with %s. |
|
6936 |
|
6937 * error.cc (buffer_error_messages): Rename from |
|
6938 suppress_octave_error_messages. |
|
6939 (error_message_buffer): New global variable. |
|
6940 (verror): Handle buffering of messages. |
|
6941 (handle_message): New function. |
|
6942 (Ferror, Fwarning, Fusage): Use it instead of duplicating code. |
|
6943 |
|
6944 * octave.cc (Feval): Buffer error messages instead of supressing them. |
|
6945 |
|
6946 * lex.l (is_keyword): Recognize `try', `catch', and `end_try_catch'. |
|
6947 * parse.y (TRY, CATCH): New tokens. |
|
6948 (command): Recognize try-catch block. |
|
6949 (end_error): Add cases for unwind_protect_end and try_catch_end. |
|
6950 * token.h (end_tok_type): New field, try_catch_end. |
|
6951 * tree-cmd.h, tree-cmd.cc (tree_try_catch): New class. |
|
6952 * variables.cc (bind_global_error_variable): New Function. |
|
6953 (clear_global_error_variable): Likewise. |
|
6954 (install_builtin_variables): Add DEFCONST for __error_text__. |
|
6955 * help.cc (keywords): Add `try', `catch', and `end_try_catch'. |
|
6956 |
|
6957 * tree-cmd.cc (tree_unwind_protect::eval): Undo previous change. |
|
6958 |
|
6959 * dirfns.cc (Freaddir, Fmkdir, Frmdir): |
|
6960 Do tilde expansion on the argument. |
|
6961 |
|
6962 Tue Sep 26 00:10:29 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
6963 |
|
6964 * f-dassl.cc, f-fsolve.cc, f-lsode.cc, f-npsol.cc, f-quad.cc: |
|
6965 Don't try to figure out if the user-supplied functions take the |
|
6966 correct number of arguments. Simply let the call fail. |
|
6967 * variables.cc (takes_correct_nargs): Delete unused function. |
|
6968 * tree-expr.cc (tree_builtin::eval): Don't complain for too many |
|
6969 arguments to mapper functions. |
|
6970 * tree-expr.h, tree-expr.cc (tree_builtin, tree_function, tree_fvc): |
|
6971 Delete unused function max_expected_args. |
|
6972 |
|
6973 * defun.h (DEFUN): Delete unnecessary args nargin_min and nargout_max. |
|
6974 New arg unused_arg_flags. |
|
6975 (DEFUN_TEXT): Likewise. |
|
6976 * defun-dld.h (DEFUN_DLD_BUILTIN): Likewise. |
|
6977 * defun-int.h (DEFUN_INTERNAL, DECLARE_FUN, DEFINE_FUN_STRUCT): |
|
6978 Do the real work. |
|
6979 |
|
6980 * data.cc, dirfns.cc, dynamic-ld.cc, error.cc, f-balance.cc, |
|
6981 f-chol.cc, f-colloc.cc, f-dassl.cc, f-det.cc, f-eig.cc, f-expm.cc, |
|
6982 f-fft.cc, f-fft2.cc, f-find.cc, f-fsolve.cc, f-fsqp.cc, |
|
6983 f-givens.cc, f-hess.cc, f-ifft.cc, f-ifft2.cc, f-inv.cc, f-log.cc, |
|
6984 f-lpsolve.cc, f-lsode.cc, f-lu.cc, f-minmax.cc, f-npsol.cc, |
|
6985 f-pinv.cc, f-qpsol.cc, f-qr.cc, f-quad.cc, f-qzval.cc, f-rand.cc, |
|
6986 f-schur.cc, f-sort.cc, f-svd.cc, f-syl.cc, file-io.cc, help.cc, |
|
6987 input.cc, lex.l, load-save.cc, mappers.cc, octave-hist.cc, |
|
6988 octave.cc, octave.h, pager.cc, pr-output.cc, resource.cc, |
|
6989 sighandlers.cc, strfns.cc, sysdep.cc, timefns.cc, token.cc, |
|
6990 tree-const.cc, tree-expr.cc, tree-expr.h, tree-plot.cc, |
|
6991 unwind-prot.cc, unwind-prot.h, utils.cc, variables.cc, |
|
6992 variables.h, version.h, xdiv.cc: |
|
6993 Avoid unused variable warnings. |
|
6994 |
|
6995 * tree-expr.h (tree_oct_obj::print_value (ostream&)): |
|
6996 Delete name of unused arg. |
|
6997 (tree_fvc::save (ostream&, int, int): Likewise. |
|
6998 |
|
6999 * tree-const.h (tree_constant::tree_constant (magic_colon)): |
|
7000 Delete name of unused arg. |
|
7001 (tree_constant::tree_constant (all_va_args)): Likewise |
|
7002 (ColumnVector vector_value (int, int)): Likewise. |
|
7003 (ComplexColumnVector vector_value (int, int)): Likewise. |
|
7004 (Octave_object::eval (int, int, const Octave_object&): Likewise. |
|
7005 |
|
7006 * octave.cc (execute_startup_files): Look for octaverc first in |
|
7007 site/m, then in $(version)/m. |
|
7008 * variables.cc (get_local_site_defaults): New function. |
|
7009 * defaults.h.in (OCTAVE_LOCALFCNFILEDIR, OCTAVE_LOCALSTARTUPFILEDIR): |
|
7010 New macros. |
|
7011 * Makefile.in (defaults.h): Also substitute ${localfcndir}. |
|
7012 |
|
7013 Mon Sep 25 17:01:03 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7014 |
|
7015 * variables.cc (install_builtin_variables): Add DEFCONST for "e". |
|
7016 |
|
7017 Fri Sep 22 02:18:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7018 |
|
7019 * dirfns.cc (Fls): Delete ls_command after using it, not before. |
|
7020 |
|
7021 * input.h, input.cc (gnu_readline): Don't declare gnu_readline |
|
7022 `extern "C"'. |
|
7023 |
|
7024 * sysdep.h: Only declare gethostname if it is missing, then don't |
|
7025 declare it `extern "C"'. |
|
7026 |
|
7027 * dirfns.cc: Don't declare strerror(). |
|
7028 |
|
7029 * input.cc (command_generator): Use malloc, not xmalloc. Don't |
|
7030 declare xmalloc. |
|
7031 (gnu_readline): Don't declare this `extern "C"'. |
|
7032 |
|
7033 * octave-hist.cc: Don't declare history_get(). It is now in |
|
7034 readline/history.h. |
|
7035 |
|
7036 * input.cc: Don't declare history_get(). It is now in |
|
7037 readline/readline.h. |
|
7038 |
|
7039 * resource.cc: Don't surround include of sys/resource.h in |
|
7040 `extern "C" { }'. |
|
7041 |
|
7042 * fnmatch.h [__cplusplus]: Surround contents in `extern "C" { }'. |
|
7043 * load-save.cc, symtab.cc, variables.cc: Don't surround |
|
7044 fnmatch.h include in `extern "C" { }'. |
|
7045 |
|
7046 * help.cc: Don't #undef __FUNCTION_DEF before including |
|
7047 readline/tilde.h. |
|
7048 |
|
7049 * dirfuns.cc, file-io.cc, help.cc, load-save.cc, octave-hist.cc, |
|
7050 sysdep.cc, tree-plot.cc, utils.cc, variables.cc: |
|
7051 Don't surround readline includes in `extern "C" { }'. |
|
7052 |
|
7053 * sysdep.cc: Move all include statements to top of file. |
|
7054 |
|
7055 Tue Sep 19 01:58:21 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7056 |
|
7057 * octave.cc (Fsystem): Use iprocstream *, and unwind_protect it. |
|
7058 * pager.cc (flush_output_to_pager): Likewise. |
|
7059 * dirfns.cc (Fls): Likewise. |
|
7060 * tree-plot.cc (plot_stream): Now a pointer. |
|
7061 (open_plot_stream): Deal with it. |
|
7062 (send_to_plot_stream, cleanup_tmp_files, do_external_plotter_cd): |
|
7063 Likewise. |
|
7064 |
|
7065 * procstream.cc (cleanup_iprocstream, cleanup_oprocstream): |
|
7066 New functions. |
|
7067 |
|
7068 * procstream.h, procstream.cc (class iprocstream, class oprocstream): |
|
7069 Keep track of pbuf. Initialize it to 0 in default constructors, |
|
7070 delete it in destructor. Don't call close in destructor. |
|
7071 |
|
7072 * sighandlers.cc (octave_set_signal_handler): New function. |
|
7073 Use this name instead of signal everywhere. |
|
7074 * help.cc (try_info): Likewise. |
|
7075 * pager.cc (flush_output_to_pager): Likewise. |
|
7076 * octave.cc (main): Likewise. |
|
7077 * octave-hist.cc (do_edit_history): Likewise. |
|
7078 |
|
7079 * input.cc (initialize_readline): Set rl_paren_string_delimiters |
|
7080 to avoid treating single quotes as string delimiters when doing |
|
7081 paren matching. |
|
7082 |
|
7083 * Makefile.in (SOURCES): Don't list Map.cc or SLStack.cc here. |
|
7084 |
|
7085 * tree-const.cc: Do include utils.h. |
|
7086 |
|
7087 * sysdep.cc: Don't surround terminal includes in extern "C". |
|
7088 Include them before readline.h. |
|
7089 |
|
7090 * Map.h: Don't include utils.h. |
|
7091 (CHNode::CHNode (const char*, const C&, CHNode *t): |
|
7092 Do strsave() inline. |
|
7093 |
|
7094 * input.cc (generate_possible_completions): Generate name list |
|
7095 even when text == 0. |
|
7096 (operate_and_get_next): Don't declare history_stifled, call |
|
7097 history_is_stifled () instead. |
|
7098 Don't declare history_length, or max_input_history either. |
|
7099 Check (where >= history_length - 1) too, as in recent versions of |
|
7100 bash. |
|
7101 |
|
7102 * user-prefs.h (user_prefs): New field, `completion_append_char'. |
|
7103 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7104 (sv_completion_append_char): New function. |
|
7105 * variables.cc (install_builtin_variables): Install |
|
7106 completion_append_char. |
|
7107 * input.cc (command_generator): Use it. |
|
7108 |
|
7109 * SLList-expr.cc, SLList-misc.cc, SLList-plot.cc, SLList-tc.cc, |
|
7110 DLList-fi.cc: Include config.h. |
|
7111 * DLList-fi.cc: Include file-info.h, not file-io.h. |
|
7112 |
|
7113 Mon Sep 18 11:01:24 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7114 |
|
7115 * octave.h (clean_up_and_exit): Tag with NORETURN instead of using |
|
7116 typedef trick. |
|
7117 * error.h (panic): Likewise. |
|
7118 * utils.h (jump_to_top_level): Likewise. |
|
7119 |
|
7120 * file-io.h: Protect from multiple includes with octave_file_io, |
|
7121 not octave_files. |
|
7122 |
|
7123 * file-info.h (class file_info): Convert to using std C++ string |
|
7124 class from char *. |
|
7125 * file-info.cc: Likewise. Don't include utils.h. |
|
7126 * file-io.cc (return_valid_file, fopen_file_for_user, |
|
7127 fflush_internal, do_scanf): Use operator ==, not strcmp. |
|
7128 (close_files): Call error with file.name ().data (), |
|
7129 not file.name (). |
|
7130 (freport_internal): Call form with file.mode ().data () and |
|
7131 file.name ().data (). |
|
7132 |
|
7133 * file-io.cc, file-io.h: Extract file_info class. |
|
7134 * file-info.cc, file-info.h: New files for file_info class. |
|
7135 |
|
7136 * user-prefs.h (user_prefs): New field, `beep_on_error'. |
|
7137 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7138 (beep_on_error): New function. |
|
7139 * variables.cc (install_builtin_variables): Install beep_on_error. |
|
7140 * octave.cc (maximum_braindamage): Set beep_on_error to "true". |
|
7141 * error.cc (verror): Conditionally beep. |
|
7142 (error): Don't reset error_state until after verror is called. |
|
7143 |
|
7144 Sun Sep 17 16:41:25 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7145 |
|
7146 * load-save.cc (read_mat_binary_data, read_ascii_data, |
|
7147 save_ascii_data, read_binary_data, save_binary_data): |
|
7148 Handle string arrays. |
|
7149 |
|
7150 Fri Sep 15 00:24:19 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7151 |
|
7152 * user-prefs.cc (struct_levels_to_print, |
|
7153 set_output_max_field_width, set_output_precision, |
|
7154 set_save_precision): Eliminate unecessary kludge variable. |
|
7155 |
|
7156 * variables.cc (gobble_leading_white_space): New arg, |
|
7157 in_parts. Change all callers. |
|
7158 |
|
7159 * lex.l (HELP_FCN): Delete start state. The `help' command is now |
|
7160 handled the same as any other text-style function. |
|
7161 |
|
7162 * gripes.cc (gripe_invalid_value_specified): New function |
|
7163 * user-prefs.cc: Use it. |
|
7164 |
|
7165 * sysdep.cc (octave_words_big_endian): New global variable. |
|
7166 (ten_little_endians): New function. |
|
7167 (sysdep_init): Call it. |
|
7168 * load-save.cc (words_big_endian): Use this at run-time instead of |
|
7169 depending on WORDS_BIGENDIAN at compile-time. |
|
7170 |
|
7171 * symtab.h (SYMTAB_VARIABLES): New macro. |
|
7172 * variables.cc (Fclear): Use it instead of just |
|
7173 symbol_def::USER_VARIABLE when looking for variables. |
|
7174 |
|
7175 * octave.cc (main): If there is a file to execute, set |
|
7176 program_invocation_name and program_name to the name of the file |
|
7177 and argv to the remaining args. |
|
7178 (intern_argv): Only define argv if there are some remaining |
|
7179 arguments. |
|
7180 |
|
7181 * defun.h (DEFVAR_INT): New macro. |
|
7182 (DEFVAR): Define in terms of DEFVAR_INT. Delete args protect and |
|
7183 eternal. |
|
7184 (DEFCONST): New macro. |
|
7185 * variables.cc (install_builtin_variables): Use DEFCONST where |
|
7186 appropriate, change uses of DEFVAR to match new definition. |
|
7187 |
|
7188 * variables.cc (bind_builtin_variable): New variant that accepts |
|
7189 const tree_constant& value. |
|
7190 (install_builtin_variables): Properly alphabetize DEFVAR for this. |
|
7191 |
|
7192 * octave.cc (short_opts): Prefix with `+' to prevent argv |
|
7193 permutation. |
|
7194 (main): Don't use readline if forced_interactive. |
|
7195 (traditional): New file-scope variable. |
|
7196 (long_opts, usage_string, verbose_usage): Add `--traditional'. |
|
7197 (maximum_braindamage): New function. |
|
7198 (main): Call it if --traditional. |
|
7199 |
|
7200 * input.cc (do_input_echo): Print prompt correctly when |
|
7201 forced_interactive is either true or false. |
|
7202 |
|
7203 Thu Sep 14 00:54:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7204 |
|
7205 * data.cc (Fstruct_elements): New function. |
|
7206 |
|
7207 * file-io.cc (Fumask): New function. |
|
7208 |
|
7209 * dirfns.cc (Fmkdir, Frmdir, Frename): New functions. |
|
7210 |
|
7211 * Makefile.in: Add rules and dependencies for building safe-stat.o |
|
7212 and safe-lstat.o. |
|
7213 |
|
7214 * mkdir.c, rename.c, rmdir.c: New files. |
|
7215 * Makefile.in (SOURCES): Include them in the list. |
|
7216 |
|
7217 * safe-xstat.hin, safe-xstat.cin: New files |
|
7218 * Makefile.in (DISTFILES): Include them in the list. |
|
7219 |
|
7220 * sighandlers.cc (octave_new_handler): Try to continue on memory |
|
7221 exhausted errors. |
|
7222 (sigfpe_handler): Improve error message. |
|
7223 |
|
7224 * Makefile.in: Use `ifndef omit_deps', not `ifndef $(omit_deps)'. |
|
7225 |
|
7226 * dirfns.cc (Freaddir): New function. |
|
7227 |
|
7228 * f-sort.cc: Complete rewrite. Now uses stable sort algorithm and |
|
7229 correctly handles complex matrices containing columns of all real |
|
7230 numbers. |
|
7231 |
|
7232 Wed Sep 13 03:16:40 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7233 |
|
7234 * arith-ops.cc: Unconditionally #define DIVIDE_BY_ZERO_ERROR. |
|
7235 |
|
7236 * variables.cc (install_builtin_variables): Unconditionally |
|
7237 install NaN and nan. |
|
7238 |
|
7239 * mappers.cc (xisinf): Don't do bogus things if isinf, isnan, or |
|
7240 finite are missing. |
|
7241 (xfinite): Likewise. |
|
7242 |
|
7243 * sysdep.cc (octave_ieee_init): Don't set octave_NaN and |
|
7244 octave_Inf if values are not available. |
|
7245 |
|
7246 * resource.cc (mk_ru_map): Don't use ru_ or tv_ as prefixes to |
|
7247 Octave names for the structure members. |
|
7248 |
|
7249 Tue Sep 12 02:04:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7250 |
|
7251 * procstream.h, procstream.cc: Rewrite. |
|
7252 |
|
7253 Mon Sep 11 18:42:05 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7254 |
|
7255 * filemode.c: New file, from Emacs. |
|
7256 * Makefile.in (SOURCES): Add it to the list. |
|
7257 |
|
7258 * file-io.cc (Fstat, Flstat, mk_stat_map): New functions. |
|
7259 |
|
7260 * timefns.cc (mk_tm_map): Don't use tm_ as prefix to Octave names |
|
7261 for these structure members. |
|
7262 (extract_tm): Likewise. |
|
7263 (Flocaltime): Fix doc string to match. |
|
7264 |
|
7265 Thu Sep 7 02:04:27 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7266 |
|
7267 * load-save.cc (save_user_variables): New function. |
|
7268 * sighandlers.cc (my_friendly_exit): Call it before exiting. |
|
7269 (sigfpe_handler): New function. |
|
7270 (install_signal_handlers) [__alpha__]: Install it. |
|
7271 |
|
7272 Wed Sep 6 14:35:10 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7273 |
|
7274 * tree-cmd.cc (tree_unwind_protect::eval): Ignore errors and |
|
7275 suppress error messages while executing first block of |
|
7276 unwind_protect commands. |
|
7277 |
|
7278 * parse.y (end_error): Add missing case for unwind_protect_end. |
|
7279 |
|
7280 * tree-expr.cc (tree_builtin::eval): Complain if no arguments |
|
7281 given for mapper functions. |
|
7282 (tree_fvc::lookup_map_element): Print error message for invalid |
|
7283 structure reference. |
|
7284 |
|
7285 Tue Sep 5 02:04:12 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7286 |
|
7287 * file-io.cc, input.cc, load-save.cc, octave.cc, sysdep.cc, |
|
7288 variables.cc, octave-hist.cc, utils.cc, f-schur.cc, f-rand.cc, |
|
7289 f-quad.cc, f-qpsol.cc, f-npsol.cc, f-lsode.cc, f-fsolve.cc, |
|
7290 f-dassl.cc, f-colloc.cc, f-balance.cc, error.cc, data.cc: |
|
7291 Add const qualifiers where appropriate. |
|
7292 |
|
7293 * dirfns.h: Include <ctime>, for time_t. |
|
7294 |
|
7295 * tempname.c, file-io.cc, help.cc, input.cc, octave-hist.cc, |
|
7296 octave.cc, sighandlers.cc, sysdep.cc, tree-expr.cc, tree-misc.cc, |
|
7297 tree-plot.cc, utils.cc, variables.cc, sysdir.h: |
|
7298 Move #include <sys/type.h> inside #ifdef HAVE_UNISTD_H. |
|
7299 |
|
7300 * syswait.h: New file. |
|
7301 * Makefile.in (INCLUDES): Add it to the list. |
|
7302 * file-io.cc, sighandlers.cc: Use it instead of including |
|
7303 sys/wait.h directly. |
|
7304 |
|
7305 * octave.cc: Include statdefs.h, not sys/stat.h. |
|
7306 |
|
7307 * sysdir.h: New file. |
|
7308 * Makefile.in (INCLUDES): Add it to the list. |
|
7309 * dirfns.cc, utils.cc: Use it instead of including the headers |
|
7310 directly. |
|
7311 |
|
7312 * pathlen.h: New file. |
|
7313 * Makefile.in (INCLUDES): Add it to the list. |
|
7314 * dirfns.cc, input.cc: Use it instead of including sys/param.h |
|
7315 directly. |
|
7316 * utils.cc: Don't include sys/param.h |
|
7317 |
|
7318 Sun Sep 3 18:52:59 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7319 |
|
7320 * tree-const.cc (TC_REP::string_value): Return const char*, not |
|
7321 char *. |
|
7322 |
|
7323 * All .cc, .y, .l, .y files: Include <cctype>, not <ctype.h>, and |
|
7324 so on for all new C++ versions of these standard C headers. |
|
7325 |
|
7326 Thu Aug 31 17:09:38 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7327 |
|
7328 * pathsearch.h: Also hide `string'. |
|
7329 |
|
7330 * oct-str.cc, oct-str.h: New files. |
|
7331 * Makefile.in: Add to the appropriate lists. |
|
7332 * tc-rep.h: Change char* to Octave_string* in anonymous union. |
|
7333 * tree-expr.cc (tree_matrix::eval): Handle multiple element strings. |
|
7334 * strfns.cc (toascii): Likewise. |
|
7335 * tree-const.cc (print_as_string): Likewise. |
|
7336 (TC_REP::force_numeric, TC_REP::rows, TC_REP::columns, |
|
7337 TC_REP::double_value, TC_REP::complex_value, TC_REP::matrix_value, |
|
7338 TC_REP::complex_matrix_value, TC_REP::convert_to_str): Likewise. |
|
7339 (TC_REP::print): Call octave_print_internal for string case. |
|
7340 (all_strings): New function. |
|
7341 Fix constructors to use new data structure. |
|
7342 * pr-output.cc (octave_print_internal): Add version for strings. |
|
7343 * Array-string.cc: New file. |
|
7344 |
|
7345 * octave.cc (octave_argv): New global variable. |
|
7346 (intern_argv): New function. |
|
7347 (main): Fix argument parsing to do the right thing for arguments |
|
7348 to executable scripts. |
|
7349 * variables.cc: Add DEFUNs for argv, program_invocation_name, and |
|
7350 program_name. |
|
7351 |
|
7352 * defun.h (DEFVAR): Fix comment. |
|
7353 |
|
7354 Thu Aug 24 00:02:00 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7355 |
|
7356 * file-io.cc (fgets_internal): Make second arg optional. Add |
|
7357 optional arg `strip_final_newline'. |
|
7358 (Ffgets): Change to match new definition of fgets_internal. |
|
7359 (Ffgetl): Implement using the new fgets_internal. |
|
7360 |
|
7361 * f-rand.cc (Frand): Update code for sizing return value to match |
|
7362 that used by ones, zeros, and eye. |
|
7363 |
|
7364 Wed Aug 23 19:52:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7365 |
|
7366 * tree-const.cc (do_vector_assign): Don't crash for |
|
7367 A(range) = scalar, or A(matrix) = scalar. |
|
7368 |
|
7369 * f-dassl.cc (set_dassl_option): Rename from do_dassl_option. |
|
7370 (show_dassl_option): New function. |
|
7371 (Fdassl_options): Handle single arg. |
|
7372 * f-fsolve.cc (set_fsolve_option): Rename from do_fsolve_option. |
|
7373 (show_fsolve_option): New function. |
|
7374 (Ffsolve_options): Handle single arg. |
|
7375 * f-fsqp.cc (set_fsqp_option): Rename from do_fsqp_option. |
|
7376 (show_fsqp_option): New function. |
|
7377 (Ffsqp_options): Handle single arg. |
|
7378 * f-lpsolve.cc (set_lpsolve_option): Rename from do_lpsolve_option. |
|
7379 (show_lpsolve_option): New function. |
|
7380 (Flpsolve_options): Handle single arg. |
|
7381 * f-lsode.cc (set_lsode_option): Rename from do_lsode_option. |
|
7382 (show_lsode_option): New function. |
|
7383 (Flsode_options): Handle single arg. |
|
7384 * f-npsol.cc (set_npsol_option): Rename from do_npsol_option. |
|
7385 (show_npsol_option): New function. |
|
7386 (Fnpsol_options): Handle single arg. |
|
7387 * f-qpsol.cc (set_qpsol_option): Rename from do_qpsol_option. |
|
7388 (show_qpsol_option): New function. |
|
7389 (Fqpsol_options): Handle single arg. |
|
7390 * f-quad.cc: (set_quad_option): Rename from do_quad_option. |
|
7391 (show_quad_option): New function. |
|
7392 (Fquad_options): Handle single arg. |
|
7393 (Fquad): Doc fix. |
|
7394 |
|
7395 Tue Aug 22 00:38:05 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7396 |
|
7397 * tree-plot.cc (do_external_plotter_cd): New function. |
|
7398 * dirfns.cc (octave_change_to_directory): New function. If cd is |
|
7399 successful, also call do_external_plotter_cd(). |
|
7400 (Fcd): Call octave_change_to_directory(), not change_to_directory(). |
|
7401 |
|
7402 * pr-output.cc (pr_any_float): Change declaration of counter to |
|
7403 size_t to avoid gcc warnings. |
|
7404 |
|
7405 * idx-vector.cc, octave-hist.cc, tree-const.cc, tree-expr.cc, |
|
7406 tree-misc.cc, utils.cc, xpow.cc, Map.cc: |
|
7407 Update for change in for loop variable scope for gcc 2.7.0. |
|
7408 |
|
7409 Mon Aug 21 19:34:53 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7410 |
|
7411 * tree-const.cc (fortran_style_matrix_assignment): Properly handle |
|
7412 case of complex LHS, real RHS. |
|
7413 |
|
7414 * Makefile.in: Only include dependency files if $(omit_deps) is |
|
7415 not set. |
|
7416 |
|
7417 Wed Jul 5 00:03:58 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7418 |
|
7419 * sysdep.cc: Explicitly include string.h. |
|
7420 |
|
7421 Sun Jun 25 00:18:10 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7422 |
|
7423 * load-save.cc (too_large_for_float (const Matrix&)): |
|
7424 Extract elements as doubles, not Complex. |
|
7425 |
|
7426 Sat Jun 24 22:59:15 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7427 |
|
7428 * pr-output.cc (any_element_is_inf_or_nan): Declare extern, not static. |
|
7429 * f-svd.cc (Fsvd): Call here to avoid trying to take SVD of matrix |
|
7430 containing Inf or NaN values. |
|
7431 |
|
7432 * pr-output.cc (bit_format): New file-scope variable. |
|
7433 (set_format, pr_any_float): Handle bit_format. |
|
7434 (octave_print_internal): Handle bit_format like bank_format. |
|
7435 (init_format_state): Initialize bit_format. |
|
7436 (set_format_style): Allow `format bit' and `format native-bit'. |
|
7437 |
|
7438 Thu Jun 8 15:20:26 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7439 |
|
7440 * mappers.cc (arg, imag, signum): If arg is NaN, return NaN. |
|
7441 |
|
7442 Mon May 15 14:47:04 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7443 |
|
7444 * pager.cc (Fdiary): Initialize diary_file here, not in the |
|
7445 file-scope declaration. |
|
7446 |
|
7447 * tree-expr.cc (tree_index_expression::eval): |
|
7448 Handle nargin == 0 the same as other cases. |
|
7449 |
|
7450 Tue May 2 10:02:23 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7451 |
|
7452 * load-save.cc (do_double_format_conversion): Add missing breaks. |
|
7453 (do_float_format_conversion): Likewise. |
|
7454 |
|
7455 Mon May 1 13:50:24 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7456 |
|
7457 * Makefile.in (OCTAVE_LIBS): Add @LIBPLPLOT@ to the list. |
|
7458 |
|
7459 * timefns.cc (Ftime): Handle GETTIMEOFDAY_NO_TZ. |
|
7460 |
|
7461 * Makefile.in (SOURCES): Delete tc-rep.cc, tc-rep-ass.cc, and |
|
7462 tc-rep-idx.cc from the list. |
|
7463 |
|
7464 * tree-const.h: Add #pragma interface. |
|
7465 * tree-const.cc: Add contents of tc-rep.cc, tc-rep-ass.cc, and |
|
7466 tc-idx.cc to this file. Add #pragma implementation. This makes |
|
7467 tree-const.cc large, but makes the final binary smaller. |
|
7468 |
|
7469 * unwind-prot.h unwind-prot.cc token.cc token.h procstream.cc |
|
7470 procstream.h idx-vector.cc idx-vector.h symtab.cc symtab.h |
|
7471 oct-map.cc oct-map.h oct-obj.cc oct-obj.h tree-plot.h tree-plot.cc |
|
7472 tree-misc.cc tree-misc.h tree-expr.cc tree-expr.h tree-cmd.cc |
|
7473 tree-cmd.h tree-base.cc tree-base.h: |
|
7474 Add #pragma interface/implementation. |
|
7475 |
|
7476 * Makefile.in (OCTAVE_LIBS): Delete @LIBINFO@ from list. |
|
7477 * help.cc: Don't include info headers or extern declarations for |
|
7478 functions from info. |
|
7479 (try_info): Call info as a subprocess. Delete second arg. |
|
7480 Handle SIGINT here, not in help_from_info(). |
|
7481 (help_from_info): Complain if info doesn't work. |
|
7482 |
|
7483 * defun-dld.h (DEFUN_DLD_BUILTIN) [OCTAVE_LITE && MAKE_BUILTINS]: |
|
7484 If ! WITH_DLD, simply emit a character string constant. |
|
7485 |
|
7486 Fri Apr 28 15:23:06 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7487 |
|
7488 * lex.l ({IDENT}{S}*): Don't delete tok. That's handled by |
|
7489 strip_trailing_whitespace() now. |
|
7490 (<HELP_FCN>[^ \t\n]*{S}*|<TEXT_FCN>[^ \t\n\;\,]*{S}*): Ditto. |
|
7491 |
|
7492 * pathsearch.h: Include kpathsea/progname.h. |
|
7493 * octave.cc (initialize_globals): Call kpse_set_progname(). |
|
7494 |
|
7495 * token.h: Declare copy constructor and operator = private. |
|
7496 * token.cc: Abort if copy constructor or operator = is used. |
|
7497 |
|
7498 Thu Apr 27 13:54:39 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7499 |
|
7500 * tree-expr.cc (lookup_map_element): Don't list default argument |
|
7501 values here too. |
|
7502 |
|
7503 * pr-output.cc (hex_format): New file-scope variable. |
|
7504 (set_format, pr_any_float): Handle hex_format. |
|
7505 (octave_print_internal): Handle hex_format like bank_format. |
|
7506 (init_format_state): Initialize hex_format. |
|
7507 (set_format_style): Allow `format hex' and `format native-hex'. |
|
7508 |
|
7509 * variables.cc (bind_ans): Create ans_id each time with new and |
|
7510 ask tree_simple_assignment_expression to handle cleaning it up. |
|
7511 This apparently plugs a memory leak. |
|
7512 |
|
7513 * help.cc (Ftype): Don't try to print map constants. Handle |
|
7514 references to structure members. |
|
7515 |
|
7516 Wed Apr 26 12:40:59 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7517 |
|
7518 * input.cc (generate_struct_completions): New function. |
|
7519 (generate_possible_completions): Likewise. |
|
7520 (looks_like_struct): Likewise. |
|
7521 (command_generator): Handle completion of struct variables. |
|
7522 |
|
7523 * tree-expr.h, tree-expr.cc (tree_fvc::lookup_map_element): |
|
7524 Add insert and silent args. |
|
7525 |
|
7526 * oct-map.cc: New file. |
|
7527 * Makefile.in (SOURCES): Add it to the list. |
|
7528 |
|
7529 Mon Apr 24 09:41:02 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7530 |
|
7531 * variables.cc (Fexist): Handle structure references too. |
|
7532 |
|
7533 * tree-const.cc (lookup_map_element (const char*, int, int): |
|
7534 New function. |
|
7535 (lookup_map_element (SLList<char*>&, int, int): New arg, silent. |
|
7536 * tc-rep.cc (lookup_map_element): New arg, silent. If nonzero, |
|
7537 don't call error(). |
|
7538 |
|
7539 * tc-rep.h (is_empty): Define here. |
|
7540 * tree-const.h (is_empty): Hand off to TC_REP::is_empty(). |
|
7541 |
|
7542 * data.cc (Fstruct_contains): Call lookup_map_element on args(0) |
|
7543 instead of extracting the map and calling contains() on it. |
|
7544 |
|
7545 * parse.y (EPLUS, EMINUS): New tokens. |
|
7546 (simple_expr): Handle EPLUS, EMINUS the same as `+' and `-'. |
|
7547 * lex.l (".+", ".-"): New patterns. Match these separately to |
|
7548 disallow using them as unary operators. |
|
7549 |
|
7550 * lex.l (next_token_is_bin_op): Simplify by noting that spacing |
|
7551 only matters for those tokens that can also be unary ops. |
|
7552 |
|
7553 Fri Apr 21 14:34:45 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7554 |
|
7555 * load-save.cc (read_ascii_data): Allow reading of empty |
|
7556 matrices. |
|
7557 |
|
7558 * tc-rep-ass.cc (vector_assignment): Only assert that we are not |
|
7559 doing fortran-style indexing and that nr <= 1 || nc <= 1. |
|
7560 (do_vector_assign): Handle assignment of [] when one dimension is |
|
7561 zero and the other is anything. |
|
7562 |
|
7563 Thu Apr 20 13:56:21 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7564 |
|
7565 * tc-rep-ass.cc (delete_rows, delete_columns): Simply return if |
|
7566 num_to_delete is 0. |
|
7567 |
|
7568 * lex.l (handle_identifier): Don't match plot option keywords |
|
7569 inside parentheses or braces. |
|
7570 |
|
7571 * variables.cc (parse_fcn_file): Also delete tmp_help_txt if |
|
7572 running a script. |
|
7573 |
|
7574 * tree-cmd.h (tree_command): Add destructor. |
|
7575 |
|
7576 * tree-expr.h tree_simple_assignment_expression (lhs_idx_expr): |
|
7577 Hang on to idx_expr, not just its parts so it can be deleted. |
|
7578 (init): Initialize it. |
|
7579 * tree-expr.cc (~tree_simple_assignment_expression): Delete it. |
|
7580 |
|
7581 * tree-expr.h (tree_multi_val_ret, tree_oct_obj, tree_fvc, |
|
7582 tree_identifier, tree_builtin, tree_function): Add destructors. |
|
7583 * tree-expr.cc (tree_function::~tree_function): Delete some stuff. |
|
7584 |
|
7585 * tree-misc.h (tree_va_return_list): Add destructor. |
|
7586 |
|
7587 * octave.cc (__builtin_new, __builtin_delete): Provide our own, |
|
7588 for debugging. |
|
7589 |
|
7590 * utils.cc (strconcat): Don't depend on the return value from |
|
7591 strcat. |
|
7592 (file_in_path): Simplify logic. |
|
7593 |
|
7594 * parse.y (maybe_convert_to_ans_assign): Create ans_id each time |
|
7595 with new and ask tree_simple_assignment_expression to handle |
|
7596 cleaning it up. This apparently plugs a memory leak. |
|
7597 |
|
7598 * lex.l (strip_trailing_whitespace): Declare retval static. |
|
7599 Delete it before saving next string. |
|
7600 |
|
7601 * error.cc (Ferror): Do call error() for empty string args. |
|
7602 (error_1): Don't print anything if fmt is "" or "\n", but do set |
|
7603 the error state appropriately. |
|
7604 |
|
7605 * tree-cmd.cc (tree_unwind_protect::eval): Handle return and break |
|
7606 in the `try' part of the statement. |
|
7607 |
|
7608 Mon Apr 10 19:29:44 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7609 |
|
7610 * f-expm.cc, f-givens.cc, f-qzval.cc, f-syl.cc, f-rand.cc: |
|
7611 Where appropriate, declare Fortran functions to take reference |
|
7612 instead of pointer args. Change callers. |
|
7613 |
|
7614 * mappers.cc: Declare Fortran functions to take reference instead |
|
7615 of pointer args. Change callers. |
|
7616 |
|
7617 * gamma.c, lgamma.c, erfc.c, erf.c, atanh.c, asinh.c, acosh.c: |
|
7618 Declare Fortran functions to take reference instead of pointer |
|
7619 args. |
|
7620 |
|
7621 Sun Apr 9 19:38:53 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7622 |
|
7623 * file-io.cc (Fpopen, Fpclose, Fexecute, Fsync_system, |
|
7624 Fasync_system, Fwaitpid, Fmkfifo, Funlink): New functions. |
|
7625 |
|
7626 * sighandlers.cc (sigchld_handler): New function. |
|
7627 (install_signal_handlers): Add call to install |
|
7628 sigchld_handler. (This is #if 0'd out, waiting for code to help |
|
7629 determine which child exited and what to do about it). |
|
7630 |
|
7631 * tree-expr.h (tree_oct_obj): New class. |
|
7632 |
|
7633 * tree-expr.h (tree_multi_assignment_expression::preserve): New |
|
7634 data member. Add arg with default value to constructors. Change |
|
7635 callers as necessary. |
|
7636 * tree-expr.cc (~tree_multi_assignment_expression): Conditionally |
|
7637 delete lhs. |
|
7638 |
|
7639 * parse.y (make_multi_val_ret): Pass matrix instead of getting it |
|
7640 from the global matrix list. |
|
7641 (expression): Extract matrix from matrix list before calling |
|
7642 make_multi_val_ret(). |
|
7643 |
|
7644 * parse.y (command): Handle new for loop syntax for structures. |
|
7645 |
|
7646 * tree-plot.h (subplot_list): Include tree_print_code() in |
|
7647 initializer lists for constructors. |
|
7648 * tree-expr.h (tree_statement_list, tree_argument_list, |
|
7649 tree_parameter_list, tree_return_list, tree_global_init_list, |
|
7650 tree_if_command_list, ): Likewise. |
|
7651 |
|
7652 * tree-cmd.h (tree_for_command::id_list): New data member. |
|
7653 (tree_for_command (tree_return_list*, tree_expression*, |
|
7654 tree_statement_list*, int, int)): Likewise. |
|
7655 * tree-cmd.cc (tree_for_command::eval): Handle for loops with |
|
7656 structures. |
|
7657 (do_for_loop_once (tree_return_list*, Octave_object&, int&)): |
|
7658 New form for handling for loops with structures. |
|
7659 |
|
7660 * sysdep.cc (octave_ieee_init): Determine floating point format |
|
7661 here. |
|
7662 (native_float_format): New global variable. |
|
7663 (Fisieee): Compute return value from native_float_format, not by |
|
7664 using preprocessor macros. |
|
7665 * sysdep.h (enum floating_point_format): Move declaration here. |
|
7666 * load-save.cc: From here. |
|
7667 Always define all floating point format conversion routines. |
|
7668 (do_double_format_conversion, do_float_format_conversion): |
|
7669 Use native_float_format instead of preprocessor macros. |
|
7670 |
|
7671 Sat Apr 8 15:41:35 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7672 |
|
7673 * Makefile (TEMPLATE_SRC): New variable. |
|
7674 (DISTFILES): Add $(TEMPLATE_SRC). |
|
7675 (SOURCES): Delete Map.cc and SLStack.cc from here. |
|
7676 |
|
7677 * variables.cc (install_builtin_variables): Use OCTAVE_VERSION |
|
7678 instead of version_string to initialize OCTAVE_VERSION. |
|
7679 * version.h (version_string): Delete. |
|
7680 |
|
7681 * getopt.c (_getopt_internal): Initialize indfound to avoid warning. |
|
7682 |
|
7683 Fri Apr 7 15:29:41 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7684 |
|
7685 * tc-inlines.h (REP_RHS_MATRIX): Just check to see if tc is real |
|
7686 or complex. If conversion fails, return. |
|
7687 |
|
7688 Thu Apr 6 00:10:47 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7689 |
|
7690 * data.cc (Fstruct_contains): New function. |
|
7691 |
|
7692 * tc-rep.cc (print_code): Add extra parens around while condition |
|
7693 to avoid warning. |
|
7694 * utils.cc (undo_string_escapes): Likewise. |
|
7695 * input.cc (decode_prompt_string): Likewise. Also rewrite if |
|
7696 statement to avoid warning. |
|
7697 |
|
7698 Tue Apr 4 22:54:17 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7699 |
|
7700 * tree-expr.cc (tree_multi_assignment_expression::eval, |
|
7701 tree_simple_assignment_expression::eval): Call print_constant |
|
7702 even if user_pref.print_answer_id_name is false. |
|
7703 |
|
7704 Mon Apr 3 17:57:14 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7705 |
|
7706 * tc-inlines.h (TC_REP): Avoid redefinition. |
|
7707 |
|
7708 * tree-const.h (do_binary_op, do_unary_op): Declare as friends of |
|
7709 tree_constant class too. |
|
7710 |
|
7711 * tree-plot.h (subplot_using::have_values): Delete data member. |
|
7712 * tree-plot.cc (subplot_using::eval): Always recompute values. |
|
7713 |
|
7714 Fri Mar 31 10:18:32 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7715 |
|
7716 * tc-rep.cc (print): Print open brace for structures here. |
|
7717 * tree-expr.cc (print_constant): Not here. |
|
7718 |
|
7719 * symtab.cc (define): Don't delete arg if sv_fcn fails. |
|
7720 |
|
7721 * tree-const.cc (print): New function. Create ostrstream buffer |
|
7722 and pass it to rep->print(). |
|
7723 * tree-const.h (eval (int)): Call print(), not rep->print(). |
|
7724 * tc-rep.cc (structure_indent_level): New file-scope variable. |
|
7725 (print): New arg, output_buf, is stream to print to. |
|
7726 Print values of structure elements too. |
|
7727 |
|
7728 * user-prefs.h (user_preferences): New field, struct_levels_to_print. |
|
7729 * user-prefs.cc (struct_levels_to_print): New function. |
|
7730 * variables.cc (install_builtin_variables): Add DEFVAR for new |
|
7731 variable struct_levels_to_print. |
|
7732 |
|
7733 * tree-const.cc (print_as_scalar, print_as_structure): Move here |
|
7734 from tree-expr.cc and make extern. |
|
7735 |
|
7736 * tree-expr.cc (print_as_structure): New function. |
|
7737 (print_constant): Use it. |
|
7738 |
|
7739 * tree-expr.cc (print_constant): New arg, print_padding. |
|
7740 (tree_simple_assignment_expression::eval): Use print_constant |
|
7741 instead of duplicating code here. |
|
7742 (tree_multi_assignment_expression::eval): Likewise. |
|
7743 |
|
7744 Thu Mar 30 13:24:11 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7745 |
|
7746 * Makefile.in (SOURCES): Add resource.cc. |
|
7747 * resource.cc: New file, extracted from timefns.cc. |
|
7748 (Fgetrusage): New function. |
|
7749 * timefns.cc (cputime): Delete (now implemented in a function file |
|
7750 using new getrusage function). |
|
7751 |
|
7752 Wed Mar 29 22:52:42 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7753 |
|
7754 * Makefile.in (SOURCES): Add strftime.c. |
|
7755 * strftime.c: New file, from sh-utils distribution. |
|
7756 |
|
7757 * timefns.cc (mk_tm_map, extract_tm, Ftime, Fgmtime, Flocaltime, |
|
7758 Fmktime, Fstrftime): New basic time functions. |
|
7759 (Fclock, Fdate): Delete (now implemented in function files using new |
|
7760 time functions). |
|
7761 |
|
7762 Tue Mar 28 17:51:51 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7763 |
|
7764 * file-io.cc (return_valid_file, do_printf, do_scanf, |
|
7765 fclose_internal, feof_internal, ferror_internal, fflush_internal, |
|
7766 fgets_internal, fopen_internal, fread_internal, freport_internal, |
|
7767 frewind_internal, fseek_internal, ftell_internal, |
|
7768 fwrite_internal): Declare static. |
|
7769 * file-io.h: Delete extern declarations for them. |
|
7770 |
|
7771 Fri Mar 24 09:52:50 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7772 |
|
7773 * pr-output.cc (pr_col_num_header): New function. |
|
7774 (compact_format): New file-scope variable. |
|
7775 (set_format_style): Handle loose and compact formats. |
|
7776 (octave_print_internal (ostream&, const ComplexMatrix&, int)): |
|
7777 Replace duplicate code with call to pr_col_num_header(). |
|
7778 (octave_print_internal (ostream&, const Matrix&, int): Likewise. |
|
7779 (octave_print_internal (ostream&, const Range&, int): Likewise. |
|
7780 |
|
7781 Tue Mar 21 08:44:48 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7782 |
|
7783 * mappers.cc (xgamma): Always use Slatec library function. |
|
7784 * (xlgamma): Likewise. |
|
7785 * Makefile.in (SOURCES): Don't include lgamma.c. |
|
7786 |
|
7787 Fri Mar 17 22:38:39 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7788 |
|
7789 * tc-rep.cc (TC_REP::new): Don't try to keep track of newlist_tail. |
|
7790 Explicitly initialize newlist to zero. |
|
7791 * tree-const.cc (tree_constant::operator new): Likewise. |
|
7792 |
|
7793 Fri Mar 10 12:40:24 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7794 |
|
7795 * tree-cmd.cc (quit_loop_now): Declare inline. |
|
7796 (tree_for_command::do_for_loop_once): Split into two versions, one |
|
7797 for the general case and one for when the loop variable is a |
|
7798 simple identifier. |
|
7799 (DO_LOOP): New macro. Move tests outside of loop. |
|
7800 (tree_for_command::eval): Speed up by checking to see if loop |
|
7801 variable is a simple identifier and by using DO_LOOP. |
|
7802 |
|
7803 * tree-const.h: New union of rep and freeptr. The freeptr element |
|
7804 is used for our custom memory management functions. |
|
7805 |
|
7806 * tc-rep.h: Add freeptr element to anonymous union (for our custom |
|
7807 memory management functions). |
|
7808 |
|
7809 * tree-const.cc (newlist, newlist_grow_size, newlist_tail): New |
|
7810 static variables. |
|
7811 (tree_constant::operator new): Always define to allow more |
|
7812 efficient allocation of single tree_constants. |
|
7813 (tree_constant::operator delete): Likewise, handle deletion of the |
|
7814 memory we allocate. |
|
7815 |
|
7816 * tc-rep.cc (newlist, newlist_grow_size, newlist_tail): New static |
|
7817 variables. |
|
7818 (tree_constant::operator new): Always define to allow more |
|
7819 efficient allocation of single tree_constants. |
|
7820 (tree_constant::operator delete): Likewise, handle deletion of the |
|
7821 memory we allocate. |
|
7822 |
|
7823 Fri Mar 3 14:00:08 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7824 |
|
7825 * error.cc (verror): Terminate output_buf with ends. |
|
7826 |
|
7827 * statdefs.h: Use C-style comment in first line instead of |
|
7828 C++-style comment. |
|
7829 |
|
7830 Mon Feb 27 10:11:18 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7831 |
|
7832 * parse.y (maybe_convert_to_ans_assign): Only lookup ans once. |
|
7833 * variables.cc (bind_ans): New function. |
|
7834 * tree-expr.cc (tree_identifier::eval (int)): Use it here. |
|
7835 (tree_identifier::eval (int, int, const Octave_object&): And here. |
|
7836 |
|
7837 * tree-expr.cc (install_nargin_and_nargout): New function. |
|
7838 * tree-expr.h (tree_function::tree_function (tree_statement_list *, |
|
7839 symbol_table *, int, int)): Call it. |
|
7840 |
|
7841 * tree-expr.cc (tree_function::bind_nargin_and_nargout): New function. |
|
7842 (tree_function::eval): Call it insead of the one from variables.cc. |
|
7843 |
|
7844 * variables.cc (bind_nargin_and_nargout): #if 0 out. |
|
7845 |
|
7846 Sun Feb 26 00:17:06 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7847 |
|
7848 * load-save.cc (Fload, Fsave): Free fname returned by tilde_expand(). |
|
7849 * dirfns.cc (Fls): Likewise. |
|
7850 |
|
7851 * tree-expr.cc (tree_multi_assignment_expression::eval (int, int, |
|
7852 const Octave_object&)): Call tree_return_list::operator () (Pix) |
|
7853 explicitly. |
|
7854 |
|
7855 * octave.cc (initialize_globals): Put TEXMF in the environment for |
|
7856 kpthsea. |
|
7857 |
|
7858 * Makefile.in (OCTAVE_LIBS): Use @LIBINFO@ and @LIBREADLINE@, |
|
7859 substituted by configure. Use kpathsea.a, not libkpathsea, so we |
|
7860 don't have to modify the kpathsea Makefile. |
|
7861 |
|
7862 Sat Feb 25 18:59:26 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7863 |
|
7864 * pathsearch.cc: New file. |
|
7865 * pathsearch.h: New file. |
|
7866 * Makefile.in (INCLUDES): Include it in the list. |
|
7867 * dynamic-ld.cc, help.cc, utils.cc: Use it instead of repeating |
|
7868 identical code multiple times. |
|
7869 |
|
7870 * variables.cc (install_builtin_variables): Only DEFVAR |
|
7871 suppress_verbose_help_message if USE_GNU_INFO. |
|
7872 |
|
7873 * help.cc (Fhelp): Only handle -i if USE_GNU_INFO. |
|
7874 (additional_help_message): Only print message if USE_GNU_INFO. |
|
7875 (builtin_help): New function. |
|
7876 (help_from_info): New function. Print warning if not USE_GNU_INFO. |
|
7877 |
|
7878 See ChangeLog.1 in the top level directory for earlier changes. |