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