3910
|
1 2002-04-25 Paul Kienzle <pkienzle@users.sf.net> |
|
2 |
|
3 * DLD-FUNCTIONS/kron.cc: New file. |
|
4 * Makefile.in (DLD_SRC): Add it to the list. |
|
5 |
3903
|
6 2002-04-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7 |
|
8 * parse.y (save_symtab): New non-terminal. Save current symbol |
|
9 table context here. |
|
10 (function_beg): Use it. |
|
11 (symtab_context): New file-scope variable. |
|
12 (recover_from_parsing_function): Restore symbol table context here. |
|
13 |
3901
|
14 2002-04-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
15 |
|
16 * load-save.cc (get_lines_and_columns): Handle CRLF as line |
|
17 separator in addition to LF. |
|
18 |
3897
|
19 2002-04-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
20 |
|
21 * load-save.cc (hdf5_ofstream::hdf5_ofstream): |
|
22 Explicitly List std::ostream(0) in constructor. |
|
23 (hdf5_ifstream::hdf5_ifstream): |
|
24 Explicitly List std::istream(0) in constructor. |
|
25 (hdf5_fstreambase::hdf5_fstreambase): Use std::ios::setstate, not set. |
|
26 (hdf5_fstreambase::close): Likewise. |
|
27 (hdf5_fstreambase::open): Likewise. |
|
28 |
3895
|
29 2002-04-10 Ben Sapp <bsapp@lanl.gov> |
|
30 |
|
31 * pt-stmt.cc (delete_breakpoint): List breakpoints if line < 0. |
|
32 * debug.cc (get_user_function): Check symbol by name first. |
|
33 (Fdbstop): Rename from Fdbg_set. |
|
34 (Fdbclear): Rename from Fdbg_delete. |
|
35 (Fdbstatus): Rename from Fdbg_list. |
|
36 (Fdbg_where): Rename from Fdbwhere. |
|
37 (do_dbtype, Fdbtype): New functions. |
|
38 |
|
39 2002-04-10 Peter Van Wieren <peter.vanwiere@avlna.com> |
|
40 |
|
41 * load-save.cc (save_mat5_binary_element): Save elements of 2d |
|
42 character matrices in proper order. |
|
43 |
3893
|
44 2002-04-09 Paul Kienzle <pkienzle@users.sf.net> |
|
45 |
|
46 * utils.cc (do_string_escapes): Handle \0 too. |
|
47 (undo_string_escape): Likewise. |
|
48 |
3892
|
49 2002-04-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
50 |
|
51 * toplev.cc (octave_config_info): Define struct member EXEEXT, not EXE. |
|
52 * Makefile.in (install-bin): Use $(EXEEXT), not $(EXE). |
|
53 * oct-conf.h.in (OCTAVE_CONF_EXEEXT): Define and substitute |
|
54 OCTAVE_CONF_EXEEXT, not OCTAVE_CONF_EXE. |
|
55 |
3887
|
56 2002-04-03 Steven G. Johnson <stevenj@alum.mit.edu> |
|
57 |
|
58 * DLD-FUNCTIONS/balance.cc: Use F77_FUNC instead of F77_FCN. |
|
59 * DLD-FUNCTIONS/qz.cc: Likewise. |
|
60 * DLD-FUNCTIONS/rand.cc: Likewise. |
|
61 * octave.cc: Likewise. |
3910
|
62 * toplev.cc (Foctave_config_info): Delete use of FORTRAN_MAIN_FLAG. |
3887
|
63 * oct-conf.h.in: Delete use of OCTAVE_CONF_FORTRAN_MAIN_FLAG. |
|
64 * syscalls.cc (mk_stat_map): |
|
65 Use HAVE_STRUCT_STAT_ST_RDEV instead of HAVE_ST_RDEV. |
|
66 Use HAVE_STRUCT_STAT_ST_BLKSIZE instead of HAVE_ST_BLKSIZE. |
|
67 Use HAVE_STRUCT_STAT_ST_BLOCKS instead of HAVE_ST_BLOCKS. |
|
68 |
3881
|
69 2002-04-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
70 |
3883
|
71 * lex.l, lex.h (parser_end_of_input): New global variable. |
|
72 (reset_parser): Reset it here. |
|
73 * parse.y (input): Set it to TRUE on EOF. |
|
74 (parse_and_executed): Save and restore it, check it to correctly |
|
75 break out of parse-execute loop. |
|
76 (parse_fcn_file): Likewise. |
|
77 (eval_string): Likewise. |
3884
|
78 * toplev.cc (main_loop): Likewise. |
3883
|
79 |
3881
|
80 * parse.y (input): Call YYACCEPT for END_OF_INPUT. |
3883
|
81 Return no-op command for bare newline. |
3881
|
82 (parse_and_execute): Handle change in yyparse return value semantics. |
3883
|
83 |
3881
|
84 * toplev.cc (main_loop): Likewise. |
|
85 |
3880
|
86 2002-03-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
87 |
|
88 * parse.y (parse_fcn_file): Call error if there is no input file. |
|
89 (parse_and_execute (FILE *): Protect get_input_from_eval_string. |
|
90 Set get_input_from_eval_string to false before calling yyparse. |
|
91 * lex.l (reset_parser): Also skip yyrestart (stdin) if |
|
92 reading_script_file is true. |
|
93 |
3877
|
94 2002-03-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
95 |
|
96 * pt-loop.cc (evaluating_looping_command): New global. |
|
97 (tree_while_command::eval): Protect evaluating_looping_command. |
|
98 Set it to true while evaluating loop. |
|
99 (tree_do_until_command::eval): Ditto. |
|
100 (tree_simple_for_command::eval): Ditto. |
|
101 (tree_complex_for_command::eval): Ditto. |
|
102 * pt-loop.h (evaluating_looping_command): Provide decl. |
|
103 * parse.y (parse_fcn_file): Protect get_input_from_eval_string. |
|
104 Set get_input_from_eval_string to false before calling yyparse. |
|
105 (make_break_command): Also check evaluating_looping_command. |
|
106 (make_continue_command): Also check evaluating_looping_command. |
|
107 (eval_string (const std::string&, bool, int&, int)): Loop over |
|
108 yyparse to handle multi-line strings. |
|
109 Move call to unwind_protect::run_frame to end of function. |
|
110 Don't reset parser before calling yyparse. |
|
111 Correctly handle return, break, and continue. |
|
112 |
|
113 * input.cc (input_from_eval_string_pending): New global variable. |
|
114 (get_usr_input): Use it. |
|
115 * input.h (input_from_eval_string_pending): Provide decl. |
|
116 |
3876
|
117 2002-03-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
118 |
|
119 * ov-usr-fcn.cc (octave_user_function::do_multi_index_op): |
|
120 Don't unwind_protect num_named_args (it doesn't change on |
|
121 recursive calls). |
|
122 Do re-initialize curr_va_arg_number to num_named_args after |
|
123 unwind_protecting. |
|
124 |
|
125 * ov-usr-fcn.h (octave_user_function::clear_args_passed): Delete. |
|
126 (octave_user_function::saved_args): New data member. |
|
127 (octave_user_function::save_args_passed): New function. |
|
128 (octave_user_function::restore_args_passed): Ditto. |
|
129 * ov-usr-fcn.cc (clear_args_passed): Delete. |
|
130 (restore_args_passed): New function. |
|
131 (octave_user_function::do_multi_index_op): Correctly save and |
|
132 restore args passed for recursive calls. |
|
133 |
|
134 * TEMPLATE-INST/SLStack-ovl.cc: New file. |
|
135 * Makefile.in: Add it to the list. |
|
136 |
3870
|
137 2002-02-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
138 |
3871
|
139 * ov-usr-fcn.cc (octave_user_function::do_multi_index_op): |
|
140 Handle define_all_return_values after function is evaluated. |
|
141 From Paul Kienzle <pkienzle@jazz.ncnr.nist.gov>. |
|
142 |
|
143 * ov-scalar.cc (convert_to_str): Use octave_value (std::string) |
|
144 constructor instead of octave_value (char *) constructor so that |
|
145 setstr (0) will work. |
|
146 |
3870
|
147 * pager.cc (octave_pager_buf::sync): Set pointer to beginning |
|
148 of buffer after calling flush_currnt_contents_to_diary. |
|
149 (octave_diary_buf::sync): Call eback only once. |
|
150 |
3867
|
151 2002-01-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
152 |
|
153 * lex.l (.): Remove test for EOF since it is already handled |
|
154 separately. |
|
155 |
3866
|
156 2001-12-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
157 |
|
158 * load-save.cc (save_mat5_binary_element): |
|
159 Extract dimensions directly from tc. |
|
160 Handle ranges the same as real matrices. |
|
161 |
3864
|
162 2001-11-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
163 |
|
164 * data.cc (DATA_REDUCTION): If no DIM arg, pass -1 to FCN. |
|
165 |
3859
|
166 2001-11-09 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
167 |
|
168 * oct-conf.h.in (FFTW_LIBS, LD_CXX, LIBOCT_PATHSEARCH, |
|
169 LIBOCT_READLINE, MKOCTFILE_LFLAGS): Substitute. |
|
170 * toplev.cc (octave_config_info): Add them to the map. |
|
171 |
|
172 2001-11-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
173 |
|
174 * DLD-FUNCTIONS/lsode.cc (Flsode): Don't bother to give OUTPUT |
|
175 matrix a size before calling integration function. |
|
176 |
3857
|
177 2001-11-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
178 |
|
179 Makefile.in (OCTAVE_LIBS): Add $(LIBOCT_READLINE) and |
|
180 $(LIBOCT_PATHSEARCH) to the list. |
|
181 |
3849
|
182 2001-10-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
183 |
|
184 * DLD-FUNCTIONS/dassl.cc (dassl_user_function): Allow user |
|
185 supplied RES function to return IDID as second value. |
|
186 |
3844
|
187 2001-07-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
188 |
|
189 * parse.y: Clear help_buf after documenting function. |
|
190 |
3842
|
191 2001-06-29 Mumit Khan <khan@nanotech.wisc.edu> |
|
192 |
|
193 * defun-int.h (DEFINE_FUN_INSTALLER_FUN{2,3}): New macros. |
|
194 (DEFINE_FUN_INSTALLER_FUN): Use. |
|
195 * dynamic-ld.cc ({STRINGIFY, STRINGIFY1}): New macros. |
|
196 (octave_dynamic_loader::mangle_name): Support dynamic linking |
|
197 for GNU v3 and Sun C++ ABI. |
|
198 |
3841
|
199 2001-06-26 Mumit Khan <khan@nanotech.wisc.edu> |
|
200 |
|
201 * c-file-ptr-stream.h (c_file_ptr_buf::c_file_ptr_buf): Add GCC3 |
|
202 libstdc++-v3 support. |
|
203 * load-save.cc (save_mat5_binary_element): Cast arguments to the |
|
204 correct type. |
|
205 (save_ascii_data): Eliminate compiler warning. |
|
206 * toplev.cc (system): Prefix std::. |
|
207 |
3836
|
208 2001-05-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
209 |
|
210 * ov-cx-mat.cc: Deleve unnecessary instantiation of assign function. |
|
211 * ov-re-mat.cc: Likewise. |
|
212 * ov-re-nd-array.cc: Likewise. |
|
213 * ov-str-mat.cc: Likewise. |
|
214 * ov-bool-mat.cc: Likewise. |
|
215 |
|
216 * load-save.cc (save_ascii_data): When saving string data, get raw |
|
217 string value for matrix row since there may be embedded nuls. |
|
218 |
|
219 * pt-mat.cc (Vstring_fill_char): No longer static. |
|
220 * pt-mat.h: Provide declaration. |
|
221 |
3834
|
222 2001-05-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
223 |
|
224 * octave.cc (initialize_pathsearch): Save initial value of the |
|
225 TEXMFDBS environment variable here. |
|
226 * toplev.cc (restore_texmfdbs_envvar): New function. |
|
227 (Fsystem): Set TEXMFDBS back to original value before running |
|
228 subprocesses. |
|
229 |
3827
|
230 2001-05-02 Mumit Khan <khan@nanotech.wisc.edu> |
|
231 |
|
232 * Makefile.in (octave): Add $(FFTW_LIBS). |
|
233 |
3826
|
234 2001-04-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
235 |
|
236 * DLD-FUNCTIONS/sort.cc (mx_sort): Check for NaNs in comparisons. |
|
237 |
3822
|
238 2001-04-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
239 |
|
240 * Makefile.in (OCTAVE_LIBS): Delete $(LIBREADLINE) from the list. |
|
241 (octave): Delete TERMLIBS from link command. |
|
242 * oct-conf.h.in: Delete references to LIBREADLINE, TERMLIBS. |
|
243 * toplev.cc (octave_config_info): Delete entries for LIBREADLINE, |
|
244 TERMLIBS. |
|
245 |
3821
|
246 2001-04-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
247 |
|
248 * Makefile.in (install-lib): Don't use mk-libdir-link. |
|
249 (install-inc): Don't use mk-includedir-link. |
|
250 |
3815
|
251 2001-04-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
252 |
|
253 * parse.y (fold (tree_binary_expression *)): |
|
254 Set discard_error_messages here instead of buffer_error_messages. |
|
255 Don't add clear_global_error_variable to the unwind_protect stack. |
|
256 (fold (tree_unary_expression *)): Likewise. |
|
257 (finish_colon_expression): Likewise. |
|
258 (finish_matrix): Likewise. |
|
259 |
|
260 * error.cc (panic): Set discard_error_messages to false here. |
|
261 (verror): Return immediately if discard_error_messages is true. |
|
262 |
|
263 * error.cc (discard_error_messages): New global variable. |
|
264 * error.h: Provide declaration. |
|
265 |
3813
|
266 2001-04-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
267 |
|
268 * lex.l: If unexpected character is EOF, report EOF error instead |
|
269 of invalid character error. |
|
270 |
3812
|
271 2001-04-18 Mumit Khan <khan@nanotech.wisc.edu> |
|
272 |
|
273 * load-save.cc (read_mat5_binary_element): Cast arguments to the |
|
274 correct type when adding stream positions. |
|
275 * DLD-FUNCTIONS/det.cc (det): Explicity create a Complex value to |
|
276 work around a Sun C++ type conversion bug. |
|
277 |
3811
|
278 2001-04-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
279 |
|
280 * symtab.cc (define_builtin_const): Don't call replace_all_defs |
|
281 here. |
|
282 |
|
283 * error.cc (error_message_buffer): Now static. |
|
284 * error.h (error_message_buffer): Delete extern declaration. |
|
285 |
3810
|
286 2001-03-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
287 |
|
288 * DLD-FUNCTIONS/besselj.cc (besselh): Use K arg. |
|
289 From: Thomas Stuart <tstuart@ing.sun.ac.za>. |
|
290 |
|
291 * oct-stream.cc (get_size): Don't allow [Inf, N] as a size |
|
292 specification for the read and scanf functions. |
|
293 (get_size): SIZE is now an Array<double> instead of a Matrix object. |
|
294 (read): Likewise. Change all callers. |
|
295 (scanf): Likewise. Change all callers. |
|
296 |
3808
|
297 2001-03-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
298 |
|
299 * DLD-FUNCTIONS/det.cc (Fdet): Only return rcond if nargout > 1. |
|
300 * DLD-FUNCTIONS/inv.cc (Finv): Only return rcond if nargout > 1. |
|
301 |
|
302 2001-03-26 Paul Kienzle <pkienzle@kienzle.powernet.co.uk> |
|
303 |
|
304 * DLD-FUNCTIONS/det.cc (Fdet): Suppress warning, but return rcond. |
|
305 * DLD_FUNCTIONS/inv.cc (Finv): Return rcond if requested. |
|
306 |
3804
|
307 2001-02-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
308 |
3805
|
309 * pt.h (tree::break_statement): New static member. |
|
310 (tree::break_function): Make const. |
|
311 * pt.cc (tree::break_statement): Initialize here. |
|
312 (tree::break_function): Make const. |
|
313 * pb-bp.h (break_statement): Delete global varaible declaration. |
|
314 * pt-bp.cc (break_statement): Delete global variable definition. |
|
315 |
|
316 * pt-bp.h (tree_breakpoint::bp_list): Rename from lst. |
|
317 |
|
318 * pt.h: Don't inlcude ov-usr-fcn.h. |
|
319 Provide forward declaration of octave_user_function class. |
|
320 |
|
321 2001-02-28 Ben Sapp <bsapp@lanl.gov> |
|
322 |
|
323 * debug.cc (get_user_function): Simplify by using curr_function. |
|
324 (Fdbg_where): New function. |
|
325 (Fdbg_list): Now DLD_TEXT instead of DLD_FCN. |
|
326 (Fdbg_set): Likewise. |
|
327 (Fdbg_delete): Likewise. |
|
328 |
|
329 * pt-bp.h (break_statement): New global variable. |
|
330 (MAYBE_DO_BREAKPOINT): Check for dbg_next and dbg_step. |
|
331 Print line, column, and current statement. |
|
332 * pt-bp.cc (break_statement): New global variable |
|
333 (tree_breakpoint::visit_do_until_command): Return immediately if |
|
334 we've already found the line. |
|
335 (tree_breakpoint::visit_colon_expression): Set breakpoint info here. |
|
336 (tree_breakpoint::visit_binary_expression): Recurse here when |
|
337 checking for breakpoints. |
|
338 |
|
339 * debug.cc: Move here from DLD-FUNCTIONS/debug.cc. |
|
340 * Makefile.in (DIST_SRC): Add it to the list. |
|
341 (DLD_XSRC): Delete it from the list. |
|
342 |
|
343 * pt.h (tree::last_line, tree::break_function): New static members. |
|
344 * pt.cc(tree::last_line, tree::break_function): Initialize them. |
|
345 |
|
346 * pt-cell.h (tree_cell::tree_cell): Accept line and column info. |
|
347 * pt-mat.h (tree_matrix::tree_matrix): Likewise. |
|
348 |
|
349 * ov-usr-fcn.h (octave_user_function::sym_tab): Delete. |
|
350 |
|
351 * input.cc (get_user_input): Handle dbg_next. |
|
352 Set tree:break_function and tree::last_line when doing dbg_step. |
|
353 |
|
354 2001-02-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
355 |
|
356 * lex.l (handle_string): Save line and column information in token. |
|
357 (is_keyword): Save line and column information for plot style and |
|
358 axes tokens. |
|
359 |
3804
|
360 * toplev.cc (main_loop): Set retval to non-zero value if error |
|
361 occurs when not interactive. |
|
362 |
3802
|
363 2001-02-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
364 |
|
365 * parse.y (gobble_leading_white_space): Handle CRLF here too. |
|
366 * lex.l (check_for_garbage_after_fcn_def): Likewise. |
|
367 |
|
368 * lex.l: Add numeric value of character to error message for |
|
369 unrecognized characters. |
|
370 |
3800
|
371 2001-02-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
372 |
|
373 * DLD-FUNCTIONS/minmax.cc (EMPTY_RETURN_CHECK): For empty matrix |
|
374 args, make Octave's min and max behave like Matlab. |
|
375 |
3799
|
376 2001-02-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
377 |
|
378 * OPERATORS/op-s-s.cc (el_or, el_and): Return bool value. |
|
379 |
3798
|
380 2001-02-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
381 |
|
382 * pt-binop.cc (tree_boolean_expression::rvalue): |
|
383 Don't cast result to double. |
|
384 |
|
385 * OPERATORS/op-b-b.cc: Allow & and | operators to return bool values. |
|
386 |
|
387 2001-02-09 John W. Eaton <jwe@bevo.che.wisc.edu> |
3797
|
388 |
|
389 * data.cc (DATA_REDUCTION): Undo previous change. |
|
390 |
|
391 2001-02-13 Matthew W. Roberts <matt@nephi.tamu.edu> |
|
392 |
|
393 * load-save.cc (Fload): Accept -4 as an alias for -v4 and -mat4-binary. |
|
394 (Fsave): Likewise. |
|
395 |
3796
|
396 2001-02-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
397 |
|
398 * lex.l (lexical_feedbac::init): |
|
399 Initialize looking_at_matrix_or_assign_lhs too. |
|
400 |
3795
|
401 2001-02-09 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
402 |
|
403 * data.cc (DATA_REDUCTION): Allow FCN(x,0) to be equivalent to FCN(x). |
|
404 |
3779
|
405 2001-02-06 Mumit Khan <khan@nanotech.wisc.edu> |
|
406 |
|
407 * oct-stream.cc (octave_scan): Partially implement and specialize |
|
408 for char*. Delete the old template instantiations. |
|
409 (BEGIN_S_CONVERSION): Use strings instead of ostrstreambuf. |
|
410 (octave_base_stream::do_scanf): Pass correct parameter to |
|
411 do_scan_conv. |
|
412 |
3775
|
413 2001-02-05 Mumit Khan <khan@nanotech.wisc.edu> |
|
414 |
3776
|
415 * pr-output.cc (set_format): Add std:: namespace qualifier as |
|
416 needed. |
|
417 |
3775
|
418 * oct-stream.cc (octave_scan): Implement, and specialize for |
|
419 char*. Delete the old template instantiations. |
|
420 (BEGIN_S_CONVERSION): Use strings instead of ostrstreambuf. |
|
421 (octave_base_stream::do_scanf): Pass correct parameter to |
|
422 do_scan_conv. |
|
423 |
|
424 * Makefile.in (TEMPLATE_AR, TEMPLATE_ARFLAGS): Use to create |
|
425 archive libraries containing templates. |
|
426 |
|
427 * c-file-ptr-stream.h: Include <fstream>. Use <cstdio> instead of |
|
428 <stdio.h> |
|
429 (c_file_ptr_buf::int_type): Compat typedef for non-ISO libstdc++. |
|
430 (c_file_ptr_buf::{overflow, underflow, uflow, pbackfail): Use. |
|
431 (c_file_ptr_buf::c_file_ptr_buf): Handle various compilers. |
|
432 (c_file_ptr_buf::file_number): New member function. |
|
433 (c_file_ptr_buf::fd): New private data. |
|
434 (i_c_file_ptr_stream::i_c_file_ptr_stream): Initialize stream |
|
435 correctly. |
|
436 (o_c_file_ptr_stream::o_c_file_ptr_stream): Likewise. |
|
437 * c-file-ptr-stream.cc |
|
438 (c_file_ptr_buf::{overflow, underflow, uflow, pbackfail): Add |
|
439 ISO-compliant EOF handling. |
|
440 * oct-stream.cc (octave_base_stream::file_number): Use |
|
441 c_file_ptr_buf::file_number to get underlying file descriptor. |
|
442 |
|
443 * comment-list.cc: Add missing class qualifier. |
|
444 |
|
445 * file-io.cc, load-save.cc, mappers.cc, oct-fstrm.cc, oct-fstrm.h, |
|
446 oct-iostrm.cc, oct-iostrm.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
447 oct-stream.cc, oct-stream.h, oct-strstrm.cc, oct-strstrm.h, |
|
448 ov-base-nd-array.cc, ov-base-scalar.h, ov-complex.cc, ov-cx-mat.cc, |
|
449 pager.cc, pr-output.cc, procstream.h, pt-bp.h, utils.cc: |
|
450 Add std:: namespace qualifier as needed, and replace |
|
451 deprecated or invalid libstdc++-v2 names with standard ones |
|
452 where appropriate. |
|
453 |
|
454 * DLD-FUNCTIONS/minmax.cc: Fix docstring. |
|
455 |
|
456 * oct-fstrm.cc (octave_fstream::octave_fstream): Maintain fix for |
|
457 libstdc++-v2. |
|
458 |
|
459 * oct-stdstrm.cc (octave_ostdiostream::create): Remove default |
|
460 parameter value in definition. |
|
461 |
|
462 * oct-stream.cc (octave_stream::mode_as_string): Don't assume |
|
463 std::iso::openmode is an integral quantity. |
|
464 |
|
465 * pager.cc, procstream.h: Initialize streams correctly. |
|
466 |
|
467 * utils.cc: Use CXX_ISO_COMPLIANT_LIBRARY guard. |
|
468 |
|
469 * ov-base-nd-array.cc (idx_list_to_idx_array): Inline. |
|
470 |
|
471 * ov-base-scalar.h (octave_base_scalar::octave_base_scalar): Use |
|
472 ``const ST& s'' instead of ST to workaround gcc3 complex bug. |
|
473 |
3774
|
474 2001-02-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
475 |
|
476 * lex.l (next_token_is_bin_op): Remove Checks for spacing except |
|
477 for ops that begin with +, - but are not ++, --, +=, or -=. |
|
478 |
3772
|
479 2001-02-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
480 |
|
481 * input.cc (get_user_input): Handle dbg_cont and dbg_step here. |
|
482 * debug.cc (Fdbg_cont): Delete. |
|
483 * pt-bp.h (MAYBE_DO_BREAKPOINT): Check tree::break_next here. |
|
484 * pt.h (tree::break_next): New static member. |
|
485 * pt.cc: Initialize it. |
|
486 |
|
487 * parse.h (feval (const octave_value_list&, int)): |
|
488 Set default value for nargout. |
|
489 (feval (const std::string&, const octave_value_list&, int)): |
|
490 Set default values for args and nargout. |
|
491 |
3770
|
492 2001-02-01 Ben Sapp <bsapp@lanl.gov> |
|
493 |
|
494 * DLD-FUNCTIONS/debug.cc: New file. |
|
495 * pt-bp.h, pt-bp.cc: New files, for breakpoints. |
|
496 * Makefile.in: Add them to the appropriate lists. |
|
497 |
|
498 * pt-stmt.cc (tree_statement_list::set_breakpoint, |
|
499 tree_statement_list::delete_breakpoint, |
|
500 tree_statement_list::list_breakpoints): New functions. |
|
501 |
|
502 * pt.h (tree::break_point): New data member. |
|
503 (tree::set_breakpoint, tree::delete_breakpoint, tree::is_breakpoint): |
|
504 New virtual functions. |
|
505 |
|
506 * pt-mat.cc (tree_matrix::rvalue): Check for breakpoint here. |
|
507 * pt-unop.cc (tree_prefix_expression::rvalue): Likewise. |
|
508 (tree_postfix_expression::rvalue): Likewise. |
|
509 * pt-loop.cc (tree_do_until_command::eval): Likewise. |
|
510 (DO_LOOP): Likewise. |
|
511 (tree_simple_for_command::eval): Likewise. |
|
512 (tree_complex_for_command::eval): Likewise. |
|
513 * pt-assign.cc (tree_simple_assignment::rvalue): Likewise. |
|
514 * pt-binop.cc (tree_binary_expression::rvalue): Likewise. |
|
515 (tree_boolean_expression::rvalue): Likewise. |
|
516 * pt-cell.cc (tree_cell::rvalue): Likewise. |
|
517 * pt-colon.cc (tree_colon_expression::rvalue): Likewise. |
|
518 * pt-except.cc (tree_try_catch_command::eval): Likewise. |
|
519 (tree_unwind_protect_command::eval): Likewise. |
|
520 * pt-id.cc (tree_identifier::rvalue): Likewise. |
|
521 (tree_identifier::lvalue): Likewise. |
|
522 * pt-indir.cc (tree_indirect_ref::rvalue): Likewise. |
|
523 * pt-jump.cc (tree_break_command::eval): Likewise. |
|
524 (tree_continue_command::eval): Likewise. |
|
525 (tree_return_command::eval): Likewise. |
|
526 |
3767
|
527 2001-01-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
528 |
|
529 * Map.h, Map.cc (CHMap<C>::operator = (const CHMap&)): New function. |
|
530 (Map<C>::operator = (const Map&)): Likewise. |
|
531 (Map<C> (const Map&)): Likewise. |
|
532 |
|
533 * OPERATORS/op-cm-cs.cc, OPERATORS/op-cm-s.cc, |
|
534 OPERATORS/op-m-cs.cc, OPERATORS/op-m-s.cc: |
|
535 Make ldiv operator work for row vector by scalar ops. |
|
536 |
|
537 * OPERATORS/op-cs-cm.cc, OPERATORS/op-cs-m.cc, |
|
538 OPERATORS/op-s-cm.cc, OPERATORS/op-s-m.cc: |
|
539 Make div operator work for scalar by column vector ops. |
|
540 |
3765
|
541 2001-01-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
542 |
|
543 * parse.y (safe_fclose): Discard comments at the end of a file. |
|
544 |
3764
|
545 2001-01-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
546 |
|
547 * error.cc (pr_where): Call pr_where_1 with two args, not one, to |
|
548 avoid processing format escapes that might appear in formatted code. |
|
549 |
3762
|
550 2001-01-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
551 |
|
552 * error.cc (vwarning): Write to output_buf, then send formatted |
|
553 message to diary and error streams. |
|
554 |
3760
|
555 2001-01-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
556 |
|
557 * ov-cx-mat.cc (octave_complex_matrix::try_narrowing_conversion): |
|
558 Handle empty matrix dimensions correctly. |
|
559 |
3756
|
560 2000-12-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
561 |
|
562 * pager.h (octave_pager_buf::diary_skip): New data member. |
|
563 (octave_pager_buf::octave_pager_buf): Initialize it. |
|
564 * pager.cc (octave_pager_buf::set_diary_skip): New function. |
|
565 (octave_pager_stream::set_diary_skip): New function. |
|
566 (octave_pager_buf::sync): Call flush_current_contents_to_diary |
|
567 instead of octave_diary.write. |
|
568 (octave_pager_buf::flush_current_contents_to_diary): Use |
|
569 diary_skip, reset when done. |
|
570 (open_diary_file): Call octave_stdout.set_diary_skip here. |
|
571 |
3747
|
572 2000-12-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
573 |
|
574 * DLD-FUNCTIONS/minmax.cc (EMPTY_RETURN_CHECK): New macro. |
|
575 (min, max): Use it. |
|
576 |
|
577 * DLD-FUNCTIONS/minmax.cc (MINMAX_BODY): New macro. If single arg |
|
578 is empty, return empty matrix result and empty matrix for index. |
|
579 (Fmin, Fmax): Use MINMAX_BODY, so we have consistent definition |
|
580 for min and max functions. |
|
581 |
|
582 2000-11-30 Joerg Specht <joerg.specht@ins.uni-stuttgart.de> |
|
583 |
|
584 * help.cc (display_help_text): Append new line at end of doc string. |
|
585 |
|
586 2000-11-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
587 |
|
588 * DLD-FUNCTIONS/lsode.cc (LSODE_ABORT1, LSODE_ABORT2): Omit `##' |
|
589 in macro definition since they are not needed to paste strings |
|
590 together and picky compilers choke on them. |
|
591 * DLD-FUNCTIONS/quad.cc (QUAD_ABORT1, QUAD_ABORT2): Likewise. |
|
592 * DLD-FUNCTIONS/fsolve.cc (FSOLVE_ABORT1, FSOLVE_ABORT2): Likewise. |
|
593 * DLD-FUNCTIONS/dassl.cc (DASSL_ABORT1, DASSL_ABORT2): Likewise. |
|
594 |
3741
|
595 2000-11-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
596 |
3744
|
597 * mkbuiltins (XDEFUNX_INTERNAL): New macro. |
3746
|
598 * mkgendoc (XDEFUNX_INTERNAL): Likewise. |
3744
|
599 * defun-int.h (DEFUNX_INTERNAL): Use it. |
|
600 |
3743
|
601 * defun.h (DEFUNX): New macro. |
|
602 * defun-int.h (DEFUNX_INTERNAL, DECLARE_FUNX): New macro. |
|
603 (DECLARE_FUN): Define in terms of DECLARE_FUNX. |
|
604 |
3742
|
605 * mkdefs: Read and print one line at a time, so we can force |
|
606 patterns to match only at the beginning of a line. |
|
607 |
3741
|
608 * defun-int.h (UNDERSCORIFY): Omit `##' in macro definition since |
|
609 they are not needed to paste strings together and picky compilers |
|
610 choke on them. |
|
611 |
3738
|
612 2000-11-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
613 |
|
614 * load-save.cc (save_ascii_data_for_plotting): New function. |
|
615 * pt-plot.cc (save_in_tmp_file): Use it instead of save_ascii_data. |
|
616 |
|
617 * load-save.cc (save_ascii_data): Warn if saving Inf or NaN values. |
|
618 New arg, infnan_warned. Use it to warn just once per set. |
|
619 Now static. |
|
620 (do_save): New arg, infnan_warned. Pass to save_ascii_data. |
|
621 (save_vars): Initialize infnan_warned here, pass to do_save. |
|
622 |
3737
|
623 2000-11-16 Paul Kienzle <pkienzle@kienzle.powernet.co.uk> |
|
624 |
|
625 * file-io.cc (Ffprintf): If no file id parameter, don't return |
|
626 count of characters if nargout is 0 (for compatibility with |
|
627 Matlab). |
|
628 |
|
629 2000-11-16 Ben Sapp <bsapp@lanl.gov> |
|
630 |
|
631 * DLD-FUNCTIONS/rand.cc (do_rand): Declare loop counter as |
|
632 volatile int, not just volatile. |
|
633 |
3731
|
634 2000-10-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
635 |
|
636 * load-save.cc (skip_comments): Allow % as comment character too. |
|
637 (extract_keyword): Likewise. |
|
638 |
|
639 * Makefile.in (oct-gperf.h): Remove -a, -g, and -p flags for gperf. |
|
640 |
3727
|
641 2000-10-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
642 |
|
643 * load-save.cc (do_load): Allow result to be returned instead of |
|
644 inserting variables in the symbol table. Change patterned after |
|
645 patch by Kian Ming Adam Chai <caijianming@yahoo.co.uk>. |
|
646 |
3726
|
647 2000-10-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
648 |
|
649 * Makefile.in (ops.cc): Don't substitute BLAS_LIBS and LIBS here. |
|
650 |
|
651 * oct-conf.h.in (OCTAVE_CONF_SPECIAL_MATH_LIB): Delete. |
|
652 (OCTAVE_CONF_BLAS_LIBS): Add. |
|
653 * toplev.cc (octave_config_info): Likewise, add BLAS_LIBS and |
|
654 remove SPECIAL_MATH_LIB from the struct. |
|
655 |
|
656 * parse.y (feval (const octave_value_list&, int)): Don't panic |
|
657 while processing arg names if arg.length() and arg_names.length() |
|
658 differ. |
|
659 |
3724
|
660 2000-10-12 Paul Kienzle <pkienzle@kienzle.powernet.co.uk> |
|
661 |
|
662 * ov-cell.h (octave_cell::is_cell): New function. |
|
663 |
|
664 * pt-select.cc (equal): New static function. |
|
665 (tree_switch_case::label_matches): Use it to compare case label |
|
666 against arg. Handle cell arrays as case labels. |
|
667 |
3723
|
668 2000-10-12 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
669 |
|
670 Change patterned after patch by Cai Jianming |
|
671 <caijianming@yahoo.co.uk> to support for DIM arg in 2.0.x sources. |
|
672 |
|
673 * data.cc (DATA_REDUCTION): New macro. Handle second DIM arg here. |
|
674 (Fcumprod): Replace function body with DATA_REDUCTION. |
|
675 (Fcumsum): Likewise. |
|
676 (Fprod): Likewise. |
|
677 (Fsum): Likewise. |
|
678 (Fsumsq): Likewise. |
|
679 |
3719
|
680 2000-10-10 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
681 |
|
682 * error.cc (pr_where_2): New function. |
|
683 (pr_where_1): Use it instead of error_1 to avoid setting error_state. |
|
684 |
|
685 2000-10-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
686 |
|
687 * xdiv.cc (xdiv): Warn if execution falls through to lssolve. |
|
688 |
3716
|
689 2000-09-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
690 |
|
691 * utils.cc (FERRNO): New function (currently commented out). |
|
692 |
|
693 * c-file-ptr-stream.cc (c_file_ptr_buf::close): Call flush here. |
|
694 (c_file_ptr_buf::~c_file_ptr_buf): Not here. |
|
695 * c-file-ptr-stream.h (c_fie_ptr_buf::close_fcn): New typedef. |
|
696 (c_file_ptr_buf::cf): New data member. Add default constructor arg. |
|
697 (class c_file_ptr_buf): Derive from filebuf, not streambuf. |
|
698 (i_c_file_ptr_stream, o_c_file_ptr_stream): Handle close function here. |
|
699 * oct-procstrm.cc (octave_iprocstream, octave_oprocstream): Likewise. |
|
700 (octave_iprocstream::do_close, octave_oprocstream::do_close): Delete. |
|
701 * oct-stdstrm.cc (octave_base_stdiostream::~octave_base_stdiostream): |
|
702 Don't do anything. |
|
703 (octave_istdiostream::create): Handle close function here. |
|
704 (octave_istdiostream::octave_istdiostream): Likewise. |
|
705 (octave_ostdiostream::create): Likewise. |
|
706 (octave_ostdiostream::octave_ostdiostream): Likewise. |
|
707 (class octave_base_stdiostream): Don't cache FILE pointer here. |
|
708 |
3715
|
709 2000-09-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
710 |
|
711 * syscalls.cc (Ffcntl): Don't assume that the file id passed in is |
|
712 the same as the underlying system file id. |
|
713 |
3712
|
714 2000-08-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
715 |
|
716 * parse.y: Use octave_time, not time. |
|
717 |
3711
|
718 2000-08-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
719 |
|
720 * oct-stream.cc (printf_value_cache::double_value): Also set |
|
721 curr_stat to conversion_error if there are no values at all. |
|
722 |
3710
|
723 2000-08-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
724 |
|
725 * dirfns.cc (Flink, Fsymlink, Freadlink): New functions. |
|
726 |
3709
|
727 2000-08-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
728 |
|
729 * load-save.cc (Vsave_header_format_string): New variable. |
|
730 (symbols_of_load_save): DEFVAR it. |
|
731 (save_header_format, default_save_header_format): New functions. |
|
732 (write_header): Use Vsave_header_format_string here. |
|
733 |
3707
|
734 2000-07-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
735 |
3708
|
736 * pt-pr-code.h (tree_print_code::curr_print_indent_level, |
|
737 (tree_print_code::beginning_of_line): No longer static. |
|
738 (tree_print_code::tree_print_code): Initialize them here. |
|
739 * pt-pr-code.cc: Not here. |
|
740 |
|
741 * pt-stmt.cc (tree_statement::eval): Set curr_statement here. |
|
742 (tree_statement_list::eval): Not here. |
|
743 |
3707
|
744 Debug-on-error stuff based on a patch submitted by Paul Kienzle |
|
745 <pkienzle@kienzle.powernet.co.uk> for 2.0.x. |
|
746 |
|
747 * error.cc (Vdebug_on_warning): New static flag variable. |
|
748 (debug_on_warning): New function. |
|
749 (symbols_of_warning): DEFVAR debug_on_warning. |
|
750 (warning): Handle debug_on_warning here. |
|
751 |
|
752 * input.cc (do_keyboard): New function. |
|
753 (Fkeyboard): Use it to do the real work. |
|
754 * pt-stmt.cc (curr_statement): New static variable. |
|
755 (tree_statement::eval): Save and restore it here. |
|
756 * error.cc (Vdebug_on_error): New static flag variable. |
|
757 (debug_on_error): New function. |
|
758 (symbols_of_error): DEFVAR debug_on_error. |
|
759 (pr_where, pr_where_1): New functions. |
|
760 (error): Handle debug_on_error here. |
|
761 |
3705
|
762 2000-07-20 Joao Cardoso <jcardoso@inescporto.pt> |
|
763 |
|
764 * Makefile.in (octave): Link with $(LD_CXX) instead of $(CXX) |
|
765 |
3704
|
766 2000-07-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
767 |
|
768 * oct-stream.cc (octave_base_stream::oscanf): Advance to next |
|
769 format element before attempting to pick up any trailing stuff. |
|
770 |
3697
|
771 2000-07-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
772 |
3698
|
773 * lex.l (next_token_is_bin_op): Don't recognize `..' as a binary op. |
|
774 |
3697
|
775 * load-save.cc (get_file_format): Call read_mat5_binary_file_header |
|
776 with third arg true instead of false, so we don't barf if the file |
|
777 is not a matlab v5 binary file. |
|
778 |
3695
|
779 2000-07-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
780 |
|
781 * Makefile.in (octave): Link to ../libcruft/blas-xtra/xerbla.o here. |
|
782 |
|
783 * octave.cc (main): Remove kluge to attempt linking our version of |
|
784 xerbla. |
|
785 |
|
786 2000-07-07 Steven G. Johnson <stevenj@alum.mit.edu> |
|
787 |
|
788 * load-save.cc (have_h5giterate_bug): New file-scope variable. |
|
789 (hdf5_read_next_data): Only increment current_item if |
|
790 have_h5giterate_bug is true. |
|
791 (read_hdf5_data): Set have_h5giterate_bug here. |
|
792 Only increment hs.current_item if have_h5giterate_bug is true. |
|
793 |
3693
|
794 2000-07-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
795 |
|
796 * c-file-ptr-stream.cc (c_file_ptr_buf::close): |
|
797 Return -1 if file pointer is NULL. |
|
798 Set file pointer to 0 after closing. |
|
799 (c_file_ptr_buf::~c_file_ptr_buf): Call close after flushing. |
|
800 |
3694
|
801 2000-07-05 Steven G. Johnson <stevenj@alum.mit.edu> |
3692
|
802 |
|
803 * Makefile.in (BLAS_LIBS): Substitute here. |
|
804 (octave): Use $(BLAS_LIBS) in the final link command. |
|
805 |
3694
|
806 2000-06-30 Steven G. Johnson <stevenj@alum.mit.edu> |
3690
|
807 |
|
808 * Makefile.in (octave): Link $(FLIBS) last. |
|
809 * octave.cc (main): Force our own xerbla to be linked instead of |
|
810 some system version. |
|
811 |
3688
|
812 2000-06-29 James R. Van Zandt <jrv@vanzandt.mv.com> |
|
813 |
3689
|
814 * load-save.cc (load_save_format): New value, LS_MAT5_BINARY. |
3688
|
815 (arrayclasstype, mat5_data_type): New enums. |
|
816 (read_mat5_binary_data): New function. |
|
817 (read_mat5_tag): New function. |
|
818 (read_mat5_binary_element): New function. |
|
819 (read_mat5_binary_file_header): New function. |
|
820 (get_file_format): Check for mat5 binary format too. |
|
821 (do_load): Handle mat5 binary format. |
|
822 (write_mat5_tag): New function. |
|
823 (write_mat5_array): New function. |
|
824 (class mat5_callback): New class. |
|
825 (save_mat5_binary_element): New functnon. |
|
826 (do_save): Handle mat5 binary format. |
|
827 (write_header): Handle LS_MAT5_BINARY case too. |
|
828 (save_user_variables): Handle LS_MAT5_BINARY case too. |
|
829 (Fsave): Handle LS_MAT5_BINARY case too. |
|
830 (Fload): Handle LS_MAT5_BINARY case too. |
|
831 |
3694
|
832 2000-06-29 Steven G. Johnson <stevenj@alum.mit.edu> |
3687
|
833 |
|
834 All of the following changes are protected by #ifdef HAVE_HDF5. |
|
835 |
|
836 * load-save.cc (load_save_format): New value, LS_HDF5. |
|
837 (make_valid_identifier): New function. |
|
838 (class hdf5_fstreambase, class hdf5_ifstream, class hdf5_ofstream): |
|
839 New classes for reading and writing hdf5 data. |
|
840 (hdf5_types_compatible): New function. |
|
841 (hdf5_import_multidim): New function. |
|
842 (hdf5_check_attr): New function. |
|
843 (hdf5_read_next_data): New function. |
|
844 (hdf5_make_complex_type): New function. |
|
845 (hdf5_make_range_type): New function. |
|
846 (read_hdf5_data): New function. |
|
847 (get_file_format): Handle HDF5 format. |
|
848 (do_load): Handle LS_HDF5 case. |
|
849 (Fload): Handle HDF5 format. |
|
850 (hdf5_add_attr): New function. |
|
851 (save_type_to_hdf5): New function. |
|
852 (add_hdf5_data): New function. |
|
853 (do_save): Handle HDF5 format. |
|
854 (get_default_save_format): Handle LS_HDF5 case. |
|
855 (write_header): Handle LS_HDF5 case. |
|
856 (save_user_variables): Handle HDF5 format. |
|
857 (Fsave): Handle HDF5 format. |
|
858 |
3686
|
859 2000-06-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
860 |
|
861 * help.cc (display_help_text): If writing to filter fails, send |
|
862 unformatted text to output stream. |
|
863 |
3683
|
864 2000-06-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
865 |
3685
|
866 * OPERATORS/op-bm-bm.cc (eq): Define using mx_el_eq, not operator ==. |
|
867 (ne): Likewise, use mx_el_ne, not operator !=. |
|
868 |
3683
|
869 * pr-output.cc (Fdisp): Delete. |
|
870 |
3681
|
871 2000-06-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
872 |
3682
|
873 * pr-output.cc (float_format::float_format): Set default values |
|
874 for width and precision to -1. |
|
875 (operator << (ostream&, pr_formatted_float&): Set width and |
|
876 precision if values are >= 0. |
|
877 (set_real_format, set_real_matrix_format, set_range_format, |
|
878 set_complex_format, set_complex_matrix_format): If we have all |
|
879 integers, infinities, or nans, set precision equal to field width. |
|
880 |
|
881 * load-save.cc (read_ascii_data): Allow empty strings and string |
|
882 vectors to be restored. |
|
883 |
3681
|
884 * variables.cc (var_matches_any_pattern): New function. |
|
885 (Fclear): Use it to make exclusive clear work correctly. |
|
886 |
3676
|
887 2000-06-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
888 |
3678
|
889 * ov-range.h (octave_range::is_numeric_type): New function. |
|
890 |
3676
|
891 * sysdep.cc (Fkbhit): Also ask for input if forced_interactive. |
|
892 |
3675
|
893 2000-06-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
894 |
|
895 * Makefile.in (oct-gperf.h): Use $(GPERF) instead of gperf. |
|
896 |
3671
|
897 2000-05-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
898 |
|
899 * DLD-FUNCTIONS/qz.cc (Fqz): When computing finite generalized |
|
900 eigenvalues, don't write past the end of the array. |
|
901 |
3665
|
902 2000-05-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
903 |
|
904 * ov-base-nd-array.h, ov-base-nd-array.cc, ov-re-nd-array.h, |
|
905 ov-re-nd-array.h: New files. |
|
906 * Makefile.in: Add them to the appropriate lists. |
|
907 |
|
908 * pt-stmt.h, pt-stmt.cc (class tree_statement): |
|
909 Store comments associated with this parse tree element. |
|
910 * pt-select.h, pt-select.cc (class tree_if_clause, |
|
911 class tree_if_command, class tree_switch_case |
|
912 class tree_switch_command): Likewise. |
|
913 * pt-loop.h, pt-loop.cc (class tree_while_command, |
|
914 class tree_do_until_command, class tree_simple_for_command, |
|
915 class tree_complex_for_command): Likewise. |
|
916 * pt-except.h, pt-except.cc (class tree_try_catch_command, |
|
917 class tree_unwind_protect_command): Likewise. |
|
918 * ov-usr-fcn.h, ov-usr-fcn.cc (class octave_user_function): Likewise. |
|
919 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::print_comment_elt, |
|
920 tree_print_code::print_comment_list, |
|
921 tree_print_code::print_indented_comment): New functions. |
|
922 (tree_print_code::visit_simple_for_command, |
|
923 tree_print_code::visit_complex_for_command, |
|
924 tree_print_code::visit_octave_user_function_header, |
|
925 tree_print_code::visit_octave_user_function_trailer, |
|
926 tree_print_code::visit_if_command, tree_print_code::visit_statement, |
|
927 tree_print_code::visit_switch_case, |
|
928 tree_print_code::visit_switch_command, |
|
929 tree_print_code::visit_try_catch_command, |
|
930 tree_print_code::visit_unwind_protect_command |
|
931 tree_print_code::visit_while_command, |
|
932 tree_print_code::visit_do_until_command): Handle comments. |
|
933 * lex.l, parse.y: Handle comments in parse trees. |
|
934 * comment-list.h, comment-list.cc: New files. |
|
935 * Makefile.in: Add them to the appropriate lists. |
|
936 |
3661
|
937 2000-04-23 etienne grossmann <etienne@anonimo.isr.ist.utl.pt> |
|
938 |
|
939 * pt-mat.cc (tm_row_const::tm_row_const_rep::eval_error): |
|
940 New args x and y, for dimension mismatch info. |
|
941 Change callers where appropriate. |
|
942 (tm_const::init): Report mismatched column dimensions. |
|
943 |
3658
|
944 2000-04-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
945 |
|
946 * sysdep.cc (kbhit): Also clear cin if at EOF. |
|
947 |
3657
|
948 2000-04-11 Joao Cardoso <jcardoso@inescn.pt> |
|
949 |
|
950 * sysdep.cc (kbhit): New arg, wait. |
|
951 (raw_mode): Ditto. |
|
952 (Fkbhit): If given an arg, call kbhit with wait = false. |
|
953 |
|
954 * DLD-FUNCTIONS/minmax.cc (Fmax, Fmin): Fix doc string. |
|
955 |
3656
|
956 2000-04-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
957 |
|
958 * dynamic-ld.cc (octave_dynamic_loader::do_load): Undo previous change. |
|
959 |
3655
|
960 2000-04-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
961 |
|
962 * dynamic-ld.cc (octave_dynamic_loader::do_load): Also fail with |
|
963 error message if we don't find the mangled function name in the |
|
964 file. |
|
965 |
3652
|
966 2000-03-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
967 |
3653
|
968 * oct-stream.cc (printf_value_cache::string_value): Return string |
|
969 matrices in a Matlab-compatible way. |
|
970 (printf_value_cache): Redesign the way list_exhausted works. |
|
971 |
3652
|
972 * oct-fstrm.cc (octave_fstream::do_close): New function. |
|
973 * oct-stdstrm.cc (octave_istdiostream::do_close): Ditto. |
|
974 (octave_ostdiostream::do_close): Ditto. |
|
975 * c-file-ptr-stream.cc (c_file_ptr_buf::close): Ditto. |
|
976 (i_c_file_ptr_stream::close): Ditto. |
|
977 (o_c_file_ptr_stream::close): Ditto. |
|
978 * oct-prcstrm.cc (octave_iprocstream::do_close): Ditto. |
|
979 (octave_oprocstream::do_close): Ditto. |
|
980 (octave_iprocstram::~octave_iprocstram): Call do_close here. |
|
981 (octave_iprocstram::~octave_oprocstram): Likewise. |
|
982 |
|
983 * oct-stream.h (octave_base_stream::do_close): New virtual function. |
|
984 (octave_base_stream::close): If stream is open, call do_close. |
|
985 |
|
986 * c-file-ptr-stream.cc (c_file_ptr_buf::flush): New function. |
|
987 (c_file_ptr_buf::~c_file_ptr_buf): Use it. |
|
988 (c_file_ptr_buf::overflow): Ditto. |
|
989 (c_file_ptr_buf::sync): Ditto. |
|
990 |
3649
|
991 2000-03-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
992 |
|
993 * oct-procbuf.cc (octave_procbuf::open): Make output streams line |
|
994 buffered. |
|
995 |
3640
|
996 2000-03-24 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
997 |
3644
|
998 * sighandlers.cc (my_friendly_exit): Prefix failure messages with |
|
999 panic instead of error. |
|
1000 |
3642
|
1001 * c-file-ptr-stream.cc (c_file_ptr_buf::~c_file_ptr_buf): |
|
1002 Avoid dereferencing NULL pointer. |
|
1003 |
3640
|
1004 * oct-stream.cc (printf_format_list::add_elt_to_list, |
|
1005 printf_format_list::process_conversion, |
|
1006 printf_format_list::finish_conversion): New args, flags, fw, and prec. |
|
1007 (printf_format_list::printf_format_list): Save more complete info. |
|
1008 (printf_format_list::printme): Print flags, fw, and prec. |
|
1009 (octave_base_stream::printf): Simplify. |
|
1010 (do_printf_conv): Delete have_arg arg, since it is always true now. |
|
1011 (octave_base_stream::do_printf): Handle case of no args and % |
|
1012 directly instead of using do_printf_conv. |
|
1013 (printf_value_cache::exhausted): Rename from no_more_values. |
|
1014 (DO_PCT_CONVERSION): New macro |
|
1015 (octave_base_streain::do_scanf, octave_base_streain::do_oscanf): |
|
1016 Use it. |
|
1017 (scanf_format_list::finish_conversion): `%' counts as a conversion too. |
|
1018 Also don't forget to set type for it. |
|
1019 (OCTAVE_SCAN_0): Delete. |
|
1020 (OCTAVE_SCAN): Rename from OCTAVE_SCAN_1. |
|
1021 (octave_base_stream::scanf, octave_base_stream::oscanf): Don't |
|
1022 special-case number of conversions here. |
|
1023 (octave_base_stream::oscanf, octave_base_stream::do_oscanf): Only |
|
1024 cycle through fmt elements if the number of conversions is greater |
|
1025 than 0. |
|
1026 |
|
1027 * oct-stream.h (scanf_format_list::next): New arg, `cycle'. |
|
1028 (printf_format_list::next): New arg, `cycle'. |
|
1029 (printf_format_list::last_elt_p): New function. |
|
1030 (printf_format_elt): New fields fw, prec, and flags. |
|
1031 Define copy constructor and assignment operator. |
|
1032 (scanf_format_elt): Define copy constructor and assignment operator. |
|
1033 |
3627
|
1034 2000-03-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1035 |
3639
|
1036 * oct-stream.cc (OCTAVE_SCAN_0, OCTAVE_SCAN_1): New macros. |
|
1037 (do_scanf_conv, BEGIN_S_CONVERSION, BEGIN_CHAR_CLASS_CONVERSION, |
|
1038 do_scanf, scanf, do_oscanf, do_oscanf, oscanf): Use them instead |
|
1039 of calling istream::scan directly. |
|
1040 (octave_scan): New function. |
|
1041 (do_scanf_conv): Second arg is now scanf_format_elt instead of char*. |
|
1042 Change all callers. |
|
1043 |
3631
|
1044 * oct-procbuf.h, oct-procbuf.cc (octave_procbuf): |
|
1045 Derive from c_file_ptr_buf instead of filebuf. |
|
1046 |
3627
|
1047 * oct-stream.cc (octave_base_stream::printf): Use octave_format |
|
1048 instead of ostream::form. Return number of characters written. |
|
1049 |
3618
|
1050 2000-03-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1051 |
3620
|
1052 * oct-stream.cc (do_printf_conv): Use octave_format instead of |
|
1053 ostream::form. Return number of characters written. |
|
1054 (octave_base_stream::do_printf): Return number of characters written. |
|
1055 |
|
1056 * error.cc (verror, vwarning): Use octave_format instead of |
|
1057 ostream::vform. |
|
1058 |
|
1059 * utils.cc (octave_format, octave_vformat): New functions. |
|
1060 * cutils.c (octave_snprintf, octave_vsnprintf): New functions. |
|
1061 |
3618
|
1062 * oct-lvalue.h (dummy_val): New static variable. |
|
1063 (octave_lvalue::octave_lvalue): Use it to initialize val. |
|
1064 |
|
1065 * variables.cc (is_valid_function): Look in the global symbol |
|
1066 table for functions. |
|
1067 |
3615
|
1068 2000-03-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1069 |
3770
|
1070 * Makefile.in (LIBRARIES): Conditionally define. |
3615
|
1071 (libraries): Depend on $(LIBRARIES). |
|
1072 (octave): Depend on $(LIBRARIES), not libraries. Also depend on |
|
1073 stamp-prereq and stamp-oct-links. |
|
1074 (all): Don't depend on stamp-prereq or stamp-oct-links. |
|
1075 (liboctinterp.$(LIBEXT), liboctinterp.$(SHELXT)): Delete target |
|
1076 before rebuilding. |
|
1077 |
|
1078 2000-03-21 Ben Sapp <bsapp@nua.lampf.lanl.gov>: |
|
1079 |
3770
|
1080 * Makefile.in (libraries): Depend only on library targets, not |
3615
|
1081 archive members. |
|
1082 |
3611
|
1083 2000-03-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1084 |
3613
|
1085 * Makefile.in (objects): New target |
|
1086 |
3611
|
1087 * c_file_ptr_stream.h, c_file_ptr_stream.cc: New files. |
|
1088 * oct-stdstrm.h, oct-stdstrm.cc, oct-prcstrm.cc: |
|
1089 Use c_file_ptr_buf, i_c_file_ptr_stream, and o_c_fie_ptr_stream |
|
1090 instead of stdiobuf, istdiostream, and ostdiostream. |
|
1091 |
|
1092 * pr-output.cc (set_real_format, set_real_matrix_format, |
|
1093 set_complex_format, set_complex_matrix_format, set_range_format): |
|
1094 Do the right thing again for int, NaN, and Inf values. |
|
1095 |
3608
|
1096 2000-03-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1097 |
|
1098 * pr-output.cc (pr_plus_format): Rename from do_plus_format. |
|
1099 Change all callers. |
|
1100 (pr_float, pr_complex): New arg, scale. Handle scaling here. |
|
1101 (float_format): New class for managing details of formatting |
|
1102 floats. Use it instead of character string formats and the |
|
1103 nonstandard form() function from the GNU iostream library. |
|
1104 |
3601
|
1105 2000-02-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1106 |
|
1107 * Makefile.in (clean): Also delete gendoc. |
|
1108 |
3598
|
1109 2000-02-18 James R. Van Zandt <jrv@vanzandt.mv.com> |
|
1110 |
|
1111 * load-save.cc (Vcrash_dumps_octave_core): Fix comment for this var. |
|
1112 |
|
1113 2000-02-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1114 |
|
1115 * lex.l (handle_number): Don't transorm `[Dd]' to `e' if reading |
|
1116 hex. |
|
1117 |
3597
|
1118 2000-02-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1119 |
|
1120 * Makefile.in (install-inc): Install files in |
|
1121 $(octincludedir)/octave. |
|
1122 (uninstall): Remove them from the correct directory too. |
|
1123 |
|
1124 * defaults.h, defaults.cc (Vlocal_ver_arch_lib_dir): New variable. |
|
1125 * defaults.cc (set_default_local_ver_arch_lib_dir): New function. |
|
1126 (install_defaults): Call it. |
|
1127 (exec_path): Prepend the versioned form of the local arch lib |
|
1128 directory to the standard path. |
|
1129 * defaults.h.in (OCTAVE_LOCALVERARCHLIBDIR, |
|
1130 OCTAVE_LOCALVERFCNFILEDIR, OCTAVE_LOCALVEROCTFILEDIR): |
|
1131 Substitute these too. |
|
1132 * toplev.cc (Foctave_config_info): Add them to the struct. |
|
1133 |
3591
|
1134 2000-02-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1135 |
3597
|
1136 * toplev.cc (Foctave_config_info): Add MKOCTFILE_INCFLAGS to the |
|
1137 struct. |
3591
|
1138 * oct-conf.h.in (OCTAVE_CONF_MKOCTFILE_INCFLAGS): Define. |
|
1139 |
3584
|
1140 2000-02-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1141 |
3587
|
1142 * DLD-FUNCTIONS/balance.cc (Fbalance): Explicitly request |
|
1143 conversion from Matrix to ComplexMatrix. |
|
1144 * DLD-FUNCTIONS/qz.cc (Fqz): Likewise. |
|
1145 |
|
1146 * ov-re-mat.h (octave_matrix::complex_matrix_value): Explicitly |
|
1147 request conversion from Matrix type. |
|
1148 |
|
1149 * ov-ch-mat.h (octave_char_matrix::matrix_value): Explicitly |
|
1150 request conversion from charMatrix type. |
|
1151 (octave_char_matrix::complex_matrix_value): Likewise. |
|
1152 * ov-bool-mat.h (octave_bool_matrix::matrix_value): Likewise. |
|
1153 (octave_bool_matrix::complex_matrix_value): Likewise. |
|
1154 |
|
1155 * ov-range.h (octave_range::complex_matrix_value): Explicitly |
|
1156 request conversion from Matrix type. |
|
1157 |
|
1158 * ov-cx-mat.h, ov-re-mat.h: Explicitly request conversions from |
|
1159 diagonal matrix types in constructors. |
|
1160 |
3586
|
1161 * mappers.cc (ximag, xreal): Return double, not Complex. |
|
1162 |
3585
|
1163 * error.cc (panic): Turn off buffering of error messages. |
|
1164 Don't call flush_octave_stdout here, verror will do it for us. |
|
1165 (verror): Don't call flush_octave_stdout if buffering error messages. |
|
1166 |
3584
|
1167 * pt-except.cc (tree_try_catch_command::eval): Only restore |
|
1168 buffer_error_message value (by running the unwind_protect element |
|
1169 for it) if it has been saved. |
|
1170 |
|
1171 * help.cc (Ftype): Return value if nargout is NOT equal to zero. |
|
1172 Delete unnecessary unwind_protect::begin_frame(). |
|
1173 |
|
1174 * toplev.cc (octave_config_info): Stuff lots of new config info in |
|
1175 the struct. |
|
1176 |
|
1177 * oct-conf.h.in: Delete TARGET_HOST_TYPE. |
|
1178 |
3574
|
1179 2000-02-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1180 |
3579
|
1181 * siglist.c: Include <signal.h>. |
|
1182 |
3575
|
1183 * lex.l (is_plot_keyword): Add minimum match length in call to |
|
1184 almost_match. |
|
1185 |
3574
|
1186 * Makefile.in (%.df : %.cc): Don't pass -c to compiler. |
|
1187 |
3564
|
1188 2000-02-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1189 |
3572
|
1190 * ov-base-mat.cc: Include pr-output.h here. |
|
1191 |
3571
|
1192 * DLD-FUNCTIONS/rand.cc (curr_rand_dist): Return const char * |
|
1193 instead of char *. |
|
1194 |
3570
|
1195 * oct-fstrm.cc (octave_fstream::seek, octave_fstream::tell): |
|
1196 Call pubseekoff instead of seekoff. |
|
1197 |
3568
|
1198 * DLD-FUNCTIONS/dassl.cc (print_dassl_option_list): Use stream |
|
1199 manipulators instead of GNU iostream-specific form function. |
|
1200 * DLD-FUNCTIONS/fsolve.cc (print_fsolve_option_list): Ditto. |
|
1201 * DLD-FUNCTIONS/lsode.cc (print_lsode_option_list): Ditto. |
|
1202 * DLD-FUNCTIONS/quad.cc (print_quad_option_list): Ditto. |
|
1203 * pr-output.cc (pr_scale_header): Ditto. |
|
1204 |
3566
|
1205 * sighandlers.h: Include signal.h here. |
|
1206 * sighandlers.cc: Not here. |
|
1207 |
|
1208 * utils.cc: Include setjmp.h, not csetjmp. |
|
1209 * toplev.cc: Ditto. |
|
1210 |
|
1211 * sighandlers.cc: Include signal.h, not csignal. |
|
1212 |
|
1213 * pt-plot.h: Don't include csignal. |
|
1214 * toplev.cc: Ditto. |
|
1215 * oct-hist.cc: Ditto. |
|
1216 * octave.cc: Ditto. |
|
1217 * pager.cc: Ditto. |
|
1218 * input.cc: Ditto. |
|
1219 * help.cc: Ditto. |
|
1220 |
3565
|
1221 * pt-plot.cc (send_to_plot_stream): Use operator== and substr |
|
1222 method to do limited-length string comparison. |
|
1223 * input.cc (generate_completion): Likewise. |
|
1224 * ov-dld-fcn.cc (octave_dld_function::octave_dld_function): Likewise. |
|
1225 * ov-usr-fcn.cc (octave_user_function::mark_as_system_fcn_file): |
|
1226 Likewise. |
|
1227 |
|
1228 * utils.cc (check_preference): Expect exact string matches. |
|
1229 * variables.cc (ignore_function_time_stamp): Likewise. |
|
1230 * lex.l (whitespace_in_literal_matrix): Likewise. |
|
1231 |
3564
|
1232 * mappers.cc (xconj, ximag, xreal): New functions. Use them in |
|
1233 DEFUN_MAPPER calls. |
|
1234 |
|
1235 * defun-int.h (DEFUN_MAPPER_INTERNAL): Cast function pointer args |
|
1236 to octave_mapper constructor. |
|
1237 |
3523
|
1238 2000-02-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1239 |
3564
|
1240 * procstream.cc (procstreambase::procstreambase, |
|
1241 procstreambase::open, procstreambase::close): |
|
1242 Call std::ios::setstate, not set. |
|
1243 |
3561
|
1244 * lex.l (plot_axes_token): Declare plot_axes as const char *. |
|
1245 Declare tmp const char **. |
|
1246 |
3560
|
1247 * oct-procbuf.h: Include fstream, not streambuf.h. |
|
1248 |
3570
|
1249 * load-save.cc (Fsave): Call pubseekoff instead of seekoff. |
3558
|
1250 * oct-strstrm.cc (octave_base_strstream::tell): Likewise. |
|
1251 (octave_base_strstream::seek): Likewise. |
|
1252 |
3553
|
1253 * oct-stream.cc (octave_base_stream::read): Rename count to char_count. |
|
1254 (octave_base_stream::do_gets): Likewise. |
|
1255 |
|
1256 * octave-stream.cc (octave_base_stream::write): Rename flt_fmt to ffmt. |
|
1257 (octave_base_stream::read): Likewise. |
|
1258 |
3552
|
1259 * TEMPLATE-INST/SLStack-sym.cc: Delete meaningless `extern |
|
1260 template' declarations. |
|
1261 * TEMPLATE-INST/Array-tc.cc: Ditto. |
|
1262 |
|
1263 * TEMPLATE-INST/Map-fnc.cc: Don't try to instantiate goodCHptr or |
|
1264 CHptr_to_index here. |
|
1265 * TEMPLATE-INST/Map-tc.cc: Likewise. |
3554
|
1266 * Map.h (CHNode::goodCHptr, CHNode::CHptr_to_index): Now member |
|
1267 functions. Change all callers. |
3552
|
1268 |
|
1269 * load-save.cc (read_binary_file_header): Declare magic_len `const'. |
|
1270 |
|
1271 * token.h (token::token (const token&), token::operator=): |
|
1272 Delete unnecessary definitions. |
|
1273 |
|
1274 * oct-stream.cc (octave_stream::mode_as_string): Use |
|
1275 std::ios::binary, not std::ios::bin. |
|
1276 * load-save.cc (Fsave, Fload, save_user_variables): Likewise. |
|
1277 |
3550
|
1278 * DLD-FUNCTIONS/qz.cc (Fqz): Use Array<int> class instead of |
|
1279 trying to create automatic int array with variable size. |
|
1280 |
3548
|
1281 * variables.cc (F__dump_symbol_info__): Fix continuation char. |
3552
|
1282 * mappers.cc (Ftoupper): Likewise. |
3548
|
1283 * DLD-FUNCTIONS/besselj.cc (Fairy, Fbesselj): Likewise. |
|
1284 * DLD-FUNCTIONS/chol.cc (Fchol): Likewise. |
|
1285 * DLD-FUNCTIONS/det.cc (Fdet): Likewise. |
|
1286 * DLD-FUNCTIONS/eig.cc (Feig): Likewise. |
|
1287 * DLD-FUNCTIONS/gammainc.cc (gammainc): Likewise. |
|
1288 * DLD-FUNCTIONS/givens.cc (givens): Likewise. |
|
1289 * DLD-FUNCTIONS/hess.cc (hess): Likewise. |
|
1290 * DLD-FUNCTIONS/inv.cc (inv): Likewise. |
|
1291 * DLD-FUNCTIONS/log.cc (logm): Likewise. |
|
1292 * DLD-FUNCTIONS/lu.cc (lu): Likewise. |
|
1293 * DLD-FUNCTIONS/qr.cc (qr): Likewise. |
|
1294 * DLD-FUNCTIONS/schur.cc (schur): Likewise. |
|
1295 * DLD-FUNCTIONS/balance.cc (balance): Likewise. |
|
1296 * DLD-FUNCTIONS/svd.cc (svd): Likewise. |
|
1297 * DLD-FUNCTIONS/syl.cc (syl): Likewise. |
|
1298 * DLD-FUNCTIONS/expm.cc (Fexpm): Likewise. |
|
1299 |
|
1300 * token.h (token::token_type, token::end_tok_type, |
|
1301 token::plot_tok_type): Delete extraneous comma from enum decls. |
3552
|
1302 * load-save.cc (load_save_format): Likewise. |
3548
|
1303 |
3546
|
1304 * pt-idx.cc (tree_index_expression::tree_index_expression): |
|
1305 Delete default arg values. |
3552
|
1306 * oct-fstrm.cc (octave_fstream::octave_fstream): Likewise. |
|
1307 * oct-stream.cc (octave_stream::octave_stream): Likewise. |
3546
|
1308 |
|
1309 * siglist.h, siglist.c: New files. |
|
1310 * Makefile.in: Add them to the appropriate lists. |
|
1311 * siglist.c (sys_siglist): Move definition here from sighandlers.cc. |
|
1312 * siglist.h (sys_siglist): Move declaration here from sighandlers.h. |
|
1313 |
3545
|
1314 * ov.h, ov-bool.h, ov-bool-mat.h (bool_matrix_value): |
|
1315 Delete unnecessary arg. |
|
1316 |
3544
|
1317 * ov.h (octave_value::do_multi_index_op): Rename from do_index_op. |
|
1318 |
|
1319 * ov-fcn.h (octave_function::is_system_fcn_file): Now const. |
|
1320 |
3529
|
1321 * Map.cc (index_to_CHptr): Now a macro. |
3530
|
1322 (CHMap<C>::hash): Now a member function. |
3529
|
1323 |
3528
|
1324 * defun-int.h (UNDERSCORIFY): New macro. |
|
1325 (DEFCONST_INTERNAL, DEFCONSTX_INTERNAL): Use it. |
|
1326 |
3526
|
1327 * data.cc (Fis_list): Fix continuation char. |
3532
|
1328 * defaults.cc (IMAGEPATH): Likewise. |
3526
|
1329 |
|
1330 * Map.cc (CHptr_to_index, goodCHptr): Delete static decl. |
|
1331 |
3525
|
1332 * ov.h (unary_op, binary_op, assign_op): Prepend `op_' to elts. |
|
1333 Change all usses |
|
1334 |
3523
|
1335 * All source files: Sprinkle with std:: qualifier as needed. |
|
1336 |
3503
|
1337 2000-01-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1338 |
|
1339 * sighandlers.cc (install_signal_handlers): Add std:: qualifier |
|
1340 for set_net_handler. |
|
1341 |
|
1342 * All source files: Include iostream, fstream, strstream, |
|
1343 etc. as needed instead of using forward declarations for these |
|
1344 classes. |
|
1345 |
3498
|
1346 2000-01-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1347 |
|
1348 * input.cc (input_event_hook, Finput_event_hook): New functions. |
|
1349 (hook_fcn, user_data): New static variables. |
|
1350 |
3489
|
1351 2000-01-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1352 |
3491
|
1353 * pt-except.cc (do_catch_code): Don't do anything special for |
|
1354 tree_return_command::returning, or tree_break_command::breaking. |
|
1355 |
|
1356 * error.cc (vwarning): New function. |
|
1357 (warning): Use it instead of calling verror. |
|
1358 |
|
1359 * oct-stream.cc (octave_base_stream::oscanf): |
|
1360 Result is now always nconv+1 elements. Return count of successful |
|
1361 conversions in last element. |
|
1362 * file-io.cc (Ffscanf, Fsscanf, Fscanf): Fix doc string. |
|
1363 |
3490
|
1364 * pt-except.cc (do_catch_code): Unwind-protect buffer_error_messages. |
|
1365 Be sure to run all unwind-protects before returning. |
|
1366 (tree_try_catch_command::eval): Add do_catch_code cleanup function |
|
1367 to unwind-protect stack before resetting buffer_error_messages. |
|
1368 Use unwind-protect to save and restore buffer_error_messages. |
|
1369 If there is no catch code, discard the cleanup function and run |
|
1370 the unwind-protect for buffer_error_messages. |
|
1371 |
|
1372 * error.cc (bind_global_error_variable): Avoid dereferencing |
|
1373 error_message_buffer if it is NULL. |
|
1374 |
3489
|
1375 * parse.y (evaluating_function_body): New global flag. |
|
1376 * ov-usr-fcn.cc (octave_user_function::do_index_op): |
|
1377 Protect and set it here. |
|
1378 * parse.y (make_break_command, make_return_command): Check it here. |
|
1379 |
|
1380 * error.cc (warning_state): New global flag. |
|
1381 (warning): Set it here. |
|
1382 * lex.l (reset_parser): Clear it here. |
|
1383 * parse.y (fold): Check it here. |
|
1384 |
3484
|
1385 2000-01-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1386 |
3485
|
1387 * pt-walk.h (tree_walker::visit_do_until_command): New pure virtual. |
|
1388 * pt-pr-code.cc (tree_print_code::visit_do_until_command): |
3484
|
1389 New function. |
3485
|
1390 * pt-loop.h (tree_do_until_command): New class. |
3484
|
1391 (tree_while_command::expr, tree_while_command::list): |
|
1392 Now protected instead of private. |
3485
|
1393 * parse.y (make_do_until_command): New function. |
|
1394 (loop_command): Recognize do-until statement. |
3484
|
1395 (DO, UNTIL): New tokens. |
|
1396 |
|
1397 * input.cc (match_sans_spaces): Require non-blank part of test |
|
1398 string to match standard string exactly. |
|
1399 |
3483
|
1400 2000-01-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1401 |
|
1402 * oct-stream.h (scanf_format_elt::char_class): New struct elt. |
|
1403 Add arg to constructor. |
|
1404 (scanf_format_elt::special_conversion): New enum. |
|
1405 * oct-stream.cc (scanf_format_list::add_elt_to_list): New arg, |
|
1406 char_class. Pass it to scanf_format_elt constructor. |
|
1407 (scanf_format_list::scanf_format_list): Create separate list |
|
1408 elements for whitespace and literal conversions. |
|
1409 (expand_char_class): New function. |
|
1410 (scanf_format_list::finish_conversion): Extract character class |
|
1411 (not including the delimiting brackets) and expand the list of |
|
1412 characters. Pass the result to add_elt_to_list. |
|
1413 (scanf_format_list::all_character_conversions): Also accept '^', |
|
1414 scanf_format_elt::literal_conversion, and |
|
1415 scanf_format_elt::whitespace_conversion types too. |
|
1416 (DO_WHITESPACE_CONVERSION, BEGIN_CHAR_CLASS_CONVERSION, |
|
1417 BEGIN_C_CONVERSION, BEGIN_S_CONVERSION, DO_LITERAL_CONVERSION): |
|
1418 New macros. |
|
1419 (octave_base_stream::do_scanf, octave_base_stream::do_oscanf): |
|
1420 Use them to avoid code duplication. |
|
1421 Handle whitespace, literal text, and character class conversions. |
|
1422 (octave_base_stream::oscanf): Loop over all format list elements, |
|
1423 not just the first nconv elements. Clear status flags on is for |
|
1424 all streams. |
|
1425 |
3476
|
1426 2000-01-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1427 |
3480
|
1428 * xdiv.cc (result_ok): Just check value of info. |
|
1429 (solve_singularity_warning): New function. |
|
1430 (xleftdiv, xdiv): Pass pointer to solve_singularity_warning to |
|
1431 solve function. |
|
1432 |
|
1433 * lex.l (handle_identifier): Set next_tok_is_eq if we are looking |
|
1434 at `=', but not if we are looking at `=='. |
|
1435 |
3478
|
1436 * pt-pr-code.cc (tree_print_code::visit_unwind_protect_command): |
|
1437 Print `unwind_protect_cleanup', not `cleanup_code'. |
|
1438 |
3477
|
1439 * pager.cc (octave_pager_buf::flush_current_contents_to_diary): |
|
1440 New function. |
|
1441 (octave_pager_stream::flush_current_contents_to_diary): |
|
1442 Ditto. |
|
1443 (close_diary_file): Use the new octave_pager_stream function to |
|
1444 try to flush the current buffer to the diary when it is closed. |
|
1445 |
3476
|
1446 * variables.cc (Fexist): Return 6 for built-in constants. |
|
1447 |
|
1448 * pt-plot.cc (Fgshow): Don't append " " after last arg. |
|
1449 (Fgset): Likewise. |
|
1450 |
3472
|
1451 2000-01-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1452 |
|
1453 * ov-base-mat.h (octave_base_matrix::length): Return 0 for empty |
|
1454 arrays. |
|
1455 |
3465
|
1456 2000-01-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1457 |
|
1458 * DLD-FUNCTIONS/time.cc (Fstrptime): New function. |
|
1459 |
|
1460 * load-save.cc (Fsave): Add missing else. |
|
1461 |
3442
|
1462 2000-01-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1463 |
3444
|
1464 * DLD-FUNCTIONS/gammainc.cc (Fgammainc): Texinfoize doc string. |
3445
|
1465 * ov-typeinfo.cc (Ftypeinfo): Ditto. |
3446
|
1466 * parse.y (Vwarn_future_time_stamp): Ditto. |
|
1467 * DLD-FUNCTIONS/minmax.cc (Fmax, Fmin): Ditto. |
3445
|
1468 * ov-usr-fcn.cc (Fva_arg, Fva_start, Fvr_val): Ditto. |
3446
|
1469 * defaults.cc (VOCTAVE_HOME, Frehash): Ditto. |
|
1470 * toplev.cc (Fwarranty, Fcasesen): Ditto. |
|
1471 * utils.cc (Fdo_string_escapes, Ffile_in_loadpath): Ditto. |
|
1472 * variables.cc (F__dump_symtab_info__, F__dump_symbol_info__): Ditto. |
3447
|
1473 * ov-list.cc (Flist, Fappend, Fnth, Freverse, Fsplice): Ditto. |
3448
|
1474 * input.cc (Fread_readline_init_file): Ditto. |
|
1475 * file-io.cc (Fis_stream): Ditto. |
|
1476 * ov-cell.cc (Fiscell, Fcell): Ditto. |
|
1477 * pt-assign.cc (Vprint_rhs_assign_val): Ditto. |
|
1478 * pt-decl.cc (Vinitialize_global_variables): Ditto. |
|
1479 * symtab.cc (Vvariables_can_hide_functions): Ditto. |
3443
|
1480 |
3442
|
1481 * pt-plot.cc (Fgraw, Fgset, Fgshow, Vgnuplot_command_plot, |
|
1482 Vgnuplot_command_replot, Vgnuplot_command_splot, |
|
1483 Vgnuplot_command_using, Vgnuplot_command_with, |
|
1484 Vgnuplot_command_axes, Vgnuplot_command_title, |
|
1485 Vgnuplot_command_end): Texinfoize doc strings. |
|
1486 |
3447
|
1487 * oct-procbuf.cc (__kluge_procbuf_delay__): Rename from |
|
1488 kluge_procbuf_delay. Texinfoize doc string. |
|
1489 |
3427
|
1490 2000-01-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1491 |
|
1492 * parse.y (gobble_leading_whitespace): Discard first space character |
|
1493 after consecutive comment characters. |
|
1494 * lex.l (grab_help_text): Ditto. |
|
1495 |
3428
|
1496 * lex.l (Vwhitespace_in_literal_matrix, Vwarn_separator_insert, |
|
1497 Vwarn_single_quote_string): Texinfoize doc string. |
|
1498 |
3418
|
1499 2000-01-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1500 |
3419
|
1501 * ov.h, ov.cc (octave_value::column_vector_value, |
|
1502 octave_value::row_vector_value, |
|
1503 octave_value::complex_column_vector_value, |
|
1504 octave_value::complex_row_vector_value): New functions. |
|
1505 (octave_value::vector_value): Now returns Array<double>. |
|
1506 (octave_value::complex_vector_value): Now returns Array<Complex>. |
|
1507 Sprinkle conversions where necessary. |
|
1508 |
3418
|
1509 * ov.cc (Vprefer_column_vectors): Now static. |
|
1510 * ov.h (octave_value (const ComplexRowVector&), |
|
1511 octave_value (const ComplexColumnVector&), |
|
1512 octave_value (const RowVector&), octave_value (const ColumnVector&)): |
|
1513 Delete second arg. Change all callers. |
3419
|
1514 |
3418
|
1515 * oct-obj.h (octave_value_list (const RowVector&), |
|
1516 octave_value_list (const ColumnVector&), |
|
1517 octave_value_list (const ComplexRowVector&), |
|
1518 octave_value_list (const ComplexColumnVector&)): Likewise. |
|
1519 * ov-cx-mat.h, ov-cx-mat.cc |
|
1520 (octave_complex_matrix (const ComplexRowVector&), |
|
1521 (octave_complex_matrix (const ComplexColumnVector&)): |
|
1522 Delete second arg, simply create object with orientation |
|
1523 corresponding to vector arg. Move constructors to class decl. |
|
1524 * ov-re-mat.h, ov-re-mat.cc (octave_matrix (const RowVector&), |
|
1525 (octave_matrix (const ColumnVector&)): |
|
1526 Delete second arg, simply create object with orientation |
|
1527 corresponding to vector arg. Move constructors to class decl. |
|
1528 |
3411
|
1529 2000-01-07 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
1530 |
|
1531 * mappers.cc (Fconj, Ferf, Ferfc, Fgamma, Fimag, Flgamma, Flog10, |
|
1532 Freal, Fround): Add @seealso{...} to doc strings. |
|
1533 |
3408
|
1534 2000-01-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1535 |
3410
|
1536 * oct-stream.cc (do_scanf): Do the right thing again for character |
|
1537 conversions. |
|
1538 |
3408
|
1539 * help.cc (display_help_text): Also strip out leading spaces |
|
1540 before Texinfo @-commands before sending doc string to makeinfo. |
|
1541 (display_help_text): Improve format of `See also' string. |
|
1542 |
3405
|
1543 2000-01-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1544 |
|
1545 * help.cc (display_help_text): Pass a definition for @seealso |
|
1546 through the filter. |
|
1547 |
3400
|
1548 1999-12-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1549 |
|
1550 * lex.l (Vwarn_single_quote_string): New variable. |
|
1551 (syms_of_lex): DEFVAR it. |
|
1552 (warn_single_quote_string): New function. |
|
1553 (gripe_single_quote_string): New function. |
|
1554 Use new stuff to allow warnings for code that uses single quote |
|
1555 characters to introduce string constants. |
|
1556 |
3399
|
1557 1999-12-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1558 |
|
1559 * mkbuiltins: Add #undef quad to generated file. |
|
1560 |
3388
|
1561 1999-12-15 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1562 |
|
1563 * lex.l (Vwarn_separator_insert): New variable. |
|
1564 (syms_of_lex): DEFVAR it. |
|
1565 (warn_separator_insert): New function. |
|
1566 (maybe_warn_separator_insert): New function. |
|
1567 Use new stuff to allow warnings for code that might result in |
|
1568 auto-insertion of commas or semicolons, depending on the value of |
|
1569 whitespace_in_literal_matrix. |
|
1570 |
|
1571 * parse.y (Fsource): Record function file name here too. |
|
1572 |
3377
|
1573 1999-12-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1574 |
|
1575 * variables.cc (link_to_global_variable): If the local symbol is |
|
1576 not a variable, don't bother to clear it. Instead, just redefine |
|
1577 it by aliasing to the global symbol. |
|
1578 |
3372
|
1579 1999-11-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1580 |
3373
|
1581 * DLD-FUNCTIONS/balance.cc (Fbalance): Texinfoize doc string. |
|
1582 * DLD-FUNCTIONS/det.cc (Fdet): Ditto. |
|
1583 * DLD-FUNCTIONS/eig.cc (Feig): Ditto. |
|
1584 * DLD-FUNCTIONS/givens.cc (Fgivens): Ditto. |
|
1585 * DLD-FUNCTIONS/inv.cc (Finv): Ditto. |
|
1586 * DLD-FUNCTIONS/chol.cc (Fchol): Ditto. |
|
1587 * DLD-FUNCTIONS/hess.cc (Fhess): Ditto. |
|
1588 * DLD-FUNCTIONS/lu.cc (Flu): Ditto. |
|
1589 * DLD-FUNCTIONS/qr.cc (Fqr): Ditto. |
|
1590 * DLD-FUNCTIONS/schur.cc (Fschur): Ditto. |
|
1591 * DLD-FUNCTIONS/svd.cc (Fsvd): Ditto. |
|
1592 * DLD-FUNCTIONS/expm.cc (Fexpm): Ditto. |
|
1593 * DLD-FUNCTIONS/log.cc (Flogm, Fsqrtm): Ditto. |
|
1594 * DLD-FUNCTIONS/syl.cc (Fsyl): Ditto. |
|
1595 * DLD-FUNCTIONS/pinv.cc (Fpinv): Ditto. |
|
1596 * DLD-FUNCTIONS/qz.cc (Fqz): Ditto. |
|
1597 * DLD-FUNCTIONS/dassl.cc (Fdassl, Fdassl_options): Ditto. |
|
1598 * DLD-FUNCTIONS/lsode.cc (Flsode, Flsode_options): Ditto. |
|
1599 * data.cc (Flength, Fsize, Fisempty): Ditto. |
3372
|
1600 * sysdep.cc (Fkbhit): Ditto. |
|
1601 * input.cc (Fkeyboard, Finput): Ditto. |
|
1602 * variables.cc (ans): Ditto. |
|
1603 * pr-output.cc (Fdisp, Fformat): Ditto. |
|
1604 * ov.cc (Vprint_answer_id_name): Ditto. |
3373
|
1605 * defaults.cc (IMAGEPATH): Ditto. |
|
1606 * error.cc (Ferror, Fwarning, Fusage, error_text, beep_on_error): |
|
1607 Ditto. |
3372
|
1608 * load-save.cc (Fload, Fsave, Vdefault_save_format, |
|
1609 Vsave_precision): Ditto. |
|
1610 * file-io.cc (Ffflush, Ffopen, Ffclose, Ffputs, Ffgetl, Ffgets, |
|
1611 Ffprintf, Fsprintf, Fscanf, Ffscanf, Fsscanf, Ffread, Ffwrite, |
|
1612 Ffseek, Fftell, Ffeof, Fferror, Ffreport, Ftmpnam, Vstdin_file, |
|
1613 Vstdout_file, Vstderr_file, SEEK_SET, SEEK_CUR, SEEK_END): Ditto. |
|
1614 * pager.cc (Vpager_binary, Vpage_output_immediately, |
|
1615 Vpage_screen_output, Fmore): Ditto. |
|
1616 |
3369
|
1617 1999-11-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1618 |
|
1619 * utils.cc (Vtreat_neg_dim_as_zero): Texinfoize doc string. |
|
1620 * DLD-FUNCTIONS/find.cc (Ffind): Ditto. |
|
1621 * DLD-FUNCTIONS/rand.cc (Frand, Frandn): Ditto. |
|
1622 * DLD-FUNCTIONS/sort.cc (Fsort): Ditto. |
|
1623 * mappers.cc (Fisinf, Fisnan, Ffinite): Ditto. |
|
1624 * data.cc (Fall, Fany, Fdiag, Fones, Fzeros, Feye, Flinspace): Ditto. |
3371
|
1625 * defaults.cc (Vloadpath, Vdefault_loadpath): Ditto. |
|
1626 * parse.y (Feval, Ffeval, Vdefault_eval_print_flag, |
|
1627 Vwarn_missing_semicolon, Vwarn_function_name_clash, Fsource): Ditto. |
|
1628 * ov-usr-fcn.cc (Vmax_recursion_depth, Vdefault_return_value, |
|
1629 Vdefine_all_return_values, Vreturn_last_computed_value): Ditto. |
|
1630 * ov.cc (Vok_to_lose_imaginary_part, Vdo_fortran_indexing, |
|
1631 Vprefer_column_vectors, Vresize_on_range_error, |
|
1632 Vwarn_divide_by_zero): Ditto. |
|
1633 * pt-stmt.cc (Vsilent_functions): Ditto. |
|
1634 * variables.cc (Vignore_function_time_stamp): Ditto. |
|
1635 * dynamic-ld.cc (Vwarn_reload_forces_clear): Ditto. |
3369
|
1636 |
3367
|
1637 1999-11-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1638 |
3368
|
1639 * DLD-FUNCTIONS/fft.cc (Ffft): Texinfoize doc string. |
|
1640 * DLD-FUNCTIONS/ifft.cc (Fifft): Ditto. |
|
1641 * DLD-FUNCTIONS/fft2.cc (Ffft2): Ditto. |
|
1642 * DLD-FUNCTIONS/ifft2.cc (Fifft2): Ditto. |
|
1643 * DLD-FUNCTIONS/filter.cc (Ffilter): Ditto. |
|
1644 * DLD-FUNCTIONS/quad.cc (Fquad, Fquad_options): Ditto. |
|
1645 * DLD-FUNCTIONS/colloc.cc (Fcolloc): Ditto. |
|
1646 * DLD-FUNCTIONS/fsolve.cc (Ffsolve, Ffsolve_options): Ditto. |
|
1647 * defaults.cc (Veditor): Ditto. |
|
1648 * pt-plot.cc (Vautomatic_replot, Vgnuplot_binary, |
|
1649 Vgnuplot_has_frames, Vgnuplot_has_multiplot, Fclearplot, |
|
1650 Fcloseplot, Fpurge_tmp_files, Fishold, Fhold): |
3367
|
1651 |
|
1652 * Makefile.in (parse.cc): Expect 11 shift/reduce conflicts now. |
|
1653 |
3361
|
1654 1999-11-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1655 |
3366
|
1656 * parse.y (Vwarn_assign_as_truth_value, Vwarn_variable_switch_label): |
|
1657 Texinfoize doc strings. |
|
1658 |
3365
|
1659 * DLD-FUNCTIONS/pinv.cc (Fpinv): Texinfoize doc string. |
|
1660 |
3364
|
1661 * defun-int.h (DEFUN_DLD_INTERNAL): New macro. |
|
1662 * defun-dld.h [MAKE_BUILTINS] (DEFUN_DLD): Simply expand to |
|
1663 DEFUN_DLD_INTERNAL. |
|
1664 * mkbuiltins: Generate code to define DEFUN_DLD_INTERNAL. |
|
1665 * mkgendoc: Likewise. |
|
1666 |
3363
|
1667 * Makefile.in (gendoc.o): Don't optimize when creating gendoc. |
3364
|
1668 (%.dc : %.cc): Delete rule. |
3363
|
1669 |
3361
|
1670 * pt-decl.cc (Vdefault_global_variable_value): Texinofize doc string. |
|
1671 * variables.cc (Fclear, Fdocument, Fexist, Fis_global, Fwho): Ditto. |
|
1672 * help.cc (Ftype, Fwhich): Ditto. |
|
1673 * ov.cc (Vstruct_levels_to_print, Vimplicit_str_to_num_ok): Ditto. |
|
1674 * data.cc (Fis_struct, Fstruct_elements, Fstruct_constains): Ditto. |
|
1675 * strfns.cc (Fisstr, Fsetstr): Ditto. |
|
1676 * pt-mat.cc: (Fimplicit_num_to_str_ok, Fstring_fill_char): Ditto. |
|
1677 * utils.cc (Fundo_string_escapes): Ditto. |
|
1678 * mappers.cc: (Fisalnum, Fisalpha, Fisascii, Fiscntrl, Fisdigit, |
|
1679 Fisgraph, Fislower, Fisprint, Fispunct, Fisspace, Fisupper, |
|
1680 Fisxdigit, Ftoascii, Ftolower, Ftoupper): Ditto. |
|
1681 |
3357
|
1682 1999-11-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1683 |
3360
|
1684 * syscalls.cc (symbols_of_syscalls): Use DEFCONSTX to define |
|
1685 Octave constants for C macros like O_WRONLY. |
|
1686 |
3357
|
1687 * oct-lvalue.cc (octave_lvalue::set_index): Disallow expressions |
|
1688 like x(i)(j) = rhs. |
|
1689 |
3355
|
1690 1999-11-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1691 |
3356
|
1692 * symtab.cc (symbol_record::type_as_string): New function. |
3355
|
1693 |
|
1694 * symtab.cc (symbol_record::which): New functions. |
|
1695 * help.cc (do_which): New functions. |
|
1696 (Fwhich): Use them. |
|
1697 |
|
1698 * help.cc (help_from_symbol_table, help_from_file): New functions. |
|
1699 (builtin_help): Use them. |
|
1700 |
|
1701 * help.cc (do_type): New function. |
3356
|
1702 (symbol_record::type): New function. |
3355
|
1703 (Ftype): Use them. |
|
1704 |
|
1705 * help.cc (print_symbol_type): Delete. |
|
1706 |
|
1707 * symtab.cc (symbol_table::name_list): Delete count arg. |
|
1708 (symbol_table::symbol_list): Likewise. |
|
1709 (symbol_table::glob): Likewise. Also return Array<symbol_record *> |
|
1710 instead of symbol_record **. |
|
1711 Change all callers. |
|
1712 * help.cc (names, display_symtab_names): Delete count arg. |
|
1713 |
|
1714 * help.cc (print_symbol_type, Ftype): No longer need to look up |
|
1715 fcn_file_name in the loadpath. |
|
1716 |
|
1717 * help.cc (print_symbol_type): Handle dld functions. |
|
1718 (help_from_symbol_table, help_from_file): New functions. |
|
1719 (builtin_help): Use them. |
|
1720 |
3354
|
1721 1999-11-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1722 |
|
1723 * ov-cell.cc (Fiscell, Fcell): New Functions. |
|
1724 (octave_cell::do_index_op): New function. |
|
1725 |
|
1726 * utils.cc (get_dimensions): Move here from data.cc and make extern. |
|
1727 (Vtreat_neg_dim_as_zero, treat_neg_dim_as_zero): Likewise. |
|
1728 (symbols_of_utils): New function. |
|
1729 |
|
1730 * data.cc (fill_matrix (const octave_value_list&, double, |
|
1731 const char*)): New function. |
|
1732 (Fones, Fzeros): Use it to avoid some code duplication. |
|
1733 |
3352
|
1734 1999-11-15 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1735 |
|
1736 * pt-cell.h, pt-cell.cc, ov-cell.h, ov-cell.cc, Cell.h, Cell.cc: |
|
1737 New files. |
|
1738 * Makefile.in: Add them to the appropriate lists. |
|
1739 * pt-walk.h (visit_cell (tree_cell&): New pure virtual. |
|
1740 * pt-pr-code.cc (tree_print_code::visit_cell (tree_cell&)): New |
|
1741 function. |
|
1742 * TEMPLATE-INST/Array-tc.cc: Instantiate 2D arrays of octave_value |
|
1743 objects. |
|
1744 * pt-all.h: Include pt-cell.h. |
|
1745 * ov.h, ov.cc (octave_value::is_cell, octave_value::cell_value): |
|
1746 New functions. |
|
1747 * ov-base.h, ov-base.cc (octave_value::is_cell, |
|
1748 octave_value::cell_value): Provide defaults. |
|
1749 * lex.h, lex.l: Handle `{' and `}' tokens (for cell arrays). |
|
1750 (bracketflag): Rename from braceflag. |
|
1751 (handle_close_bracket): Rename from handle_close_brace. |
|
1752 (class bracket_brace_paren_nesting_level): Rename from |
|
1753 brace_paren_nesting_level. |
|
1754 (bracket_brace_paren_nesting_level::bracket, |
|
1755 bracket_brace_paren_nesting_level::is_bracket): New functions to |
|
1756 keep count of nesting level for `[' and `]'. |
|
1757 (bracket_brace_paren_nesting_level::brace, |
|
1758 bracket_brace_paren_nesting_level::is_brace): Now keeps count of |
|
1759 nesting level for `{' and `}'. |
|
1760 * parse.y (tree_cell_type): New type. |
|
1761 Give '{' the same precedence and associativity as '(' and '.' |
|
1762 (matrix_rows, matrix_rows1): Rename from rows, rows1. |
|
1763 (cell, cell_rows, cell_rows1): New non-terminals. |
|
1764 (cell_or_matrix_row): Rename from matrix_row. |
|
1765 (primary_expr): Accept cell here. |
|
1766 (postfix_expr): Allow indexing using '{' arg_list '}'. |
|
1767 (finish_cell): New function. |
|
1768 |
3350
|
1769 1999-11-12 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1770 |
|
1771 * utils.cc (jump_to_top_level): No longer declared extern "C". |
|
1772 |
|
1773 * cutils.c (octave_strcasecmp, octave_strncasecmp): New functions. |
|
1774 * utils.cc (almost_match): Call octave_strncasecmp instead of |
|
1775 calling strncasecmp directly. |
|
1776 |
3347
|
1777 1999-11-10 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1778 |
|
1779 * parse.y: Don't define warn_reload_forces_clear here. |
|
1780 |
|
1781 * Makefile.in (DISTFILES): Include DOCSTRINGS. |
|
1782 |
3340
|
1783 1999-11-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1784 |
3343
|
1785 * sighandlers.cc (install_signal_handlers): Don't install |
|
1786 sigwinch_handler. |
|
1787 |
3342
|
1788 * oct-iostrm.h (octave_istream::eof, octave_ostream::eof): Provide |
|
1789 implementation for these. |
|
1790 |
|
1791 * oct-stream.cc (octave_base_stream::do_scanf): |
|
1792 The stdin stream is only special if we are interactive. |
|
1793 (octave_base_stream::scanf): Ditto. |
|
1794 (octave_base_stream::do_oscanf): Ditto. |
|
1795 (octave_base_stream::oscanf): Ditto. |
|
1796 |
3340
|
1797 * ov.h (octave_value::is_stream): New predicate. |
|
1798 * ov-file.h (octave_file::is_stream): Return true. |
|
1799 * file-io.cc (Fis_stream): New function. |
|
1800 |
|
1801 * ov-file.h (class octave_file): stream is now an object instead |
|
1802 of pointer. |
|
1803 * ov-file.cc (octave_file::print_raw): Handle stream as object |
|
1804 instead of pointer. Also print stream status. |
|
1805 |
|
1806 * ov-base.cc (octave_base_value::stream_value): Return object |
|
1807 instead of pointer. |
|
1808 |
|
1809 * ov.cc (octave_value::stream_value): Return object instead of pointer. |
|
1810 (octave_value::octave_value (const octave_stream&)): Take const |
|
1811 reference instead of pointer arg. |
|
1812 |
|
1813 * TEMPLATE-INST/Array-os.cc: Instantiate Arrays of octave_stream |
|
1814 objects, not pointers to them. |
|
1815 |
|
1816 * OPERATORS/op-fil-b.cc: Cope with octave_stream class changes. |
|
1817 * OPERATORS/op-fil-bm.cc: Likewise. |
|
1818 * OPERATORS/op-fil-cm.cc: Likewise. |
|
1819 * OPERATORS/op-fil-cs.cc: Likewise. |
|
1820 * OPERATORS/op-fil-lis.cc: Likewise. |
|
1821 * OPERATORS/op-fil-m.cc: Likewise. |
|
1822 * OPERATORS/op-fil-rec.cc: Likewise. |
|
1823 * OPERATORS/op-fil-s.cc: Likewise. |
|
1824 * OPERATORS/op-fil-str.cc: Likewise. |
|
1825 * file-io.cc: Likewise. |
|
1826 * syscalls.cc (Fdup): Likewise. |
|
1827 |
|
1828 * oct-fstrm.cc, oct-fstrm.h, oct-iostrm.cc, oct-iostrm.h, |
|
1829 oct-prcstrm.cc, oct-prcstrm.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
1830 oct-stream.cc, oct-stream.h, oct-strstrm.cc, oct-strstrm.h: |
|
1831 Rewrite to allow octave_stream objects to be used like values |
|
1832 instead of having to use pointers. |
|
1833 |
3337
|
1834 1999-11-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1835 |
|
1836 * oct-stream.cc (octave_base_stream::do_scanf): If it looks like |
|
1837 we have a matching failure, then reset the failbit in the stream |
|
1838 state. |
|
1839 (octave_base_stream::do_oscanf): Likewise. |
|
1840 |
3332
|
1841 1999-11-02 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
1842 |
3361
|
1843 * help.cc (Fhelp): Texinfoize doc string. |
|
1844 * input.cc (Fecho, Fcompletion_matches): Ditto. |
|
1845 * oct-hist.cc (Fedit_history, Fhistory, Frun_history): Ditto. |
|
1846 * pager.cc (Fdiary): Ditto. |
|
1847 * sysdep.cc (Fclc): Ditto. |
|
1848 * toplev.cc (Fquit, Fatexit): Ditto. |
3332
|
1849 |
|
1850 1999-11-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1851 |
|
1852 * lex.l (yywrap): No longer static. |
|
1853 (have_continuation): Declare input character as int, not char, so |
|
1854 comparison to EOF will work. |
|
1855 |
3330
|
1856 1999-11-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1857 |
|
1858 * defun.cc (print_usage): Use display_help_text instead of sending |
|
1859 help message directly to octave_stdout. |
|
1860 |
3325
|
1861 1999-10-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1862 |
|
1863 * defun-dld.h (INSTALL_DLD_FCNS, INSTALL_DLD_FCN): Delete definitions. |
|
1864 * DLD-FUNCTIONS/dassl.cc: Don't use INSTALL_DLD_FCN or |
|
1865 INSTALL_DLD_FCNS macros. They are not necessary with the new code |
|
1866 in dynamic-ld.cc. |
|
1867 * DLD-FUNCTIONS/lsode.cc: Ditto. |
|
1868 * DLD-FUNCTIONS/fsolve.cc: Ditto. |
|
1869 * DLD-FUNCTIONS/quad.cc: Ditto. |
|
1870 * DLD-FUNCTIONS/time.cc: Ditto. |
|
1871 * DLD-FUNCTIONS/besselj.cc: Ditto. |
|
1872 * DLD-FUNCTIONS/getgrent.cc: Ditto. |
|
1873 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
1874 * DLD-FUNCTIONS/inv.cc: Ditto. |
|
1875 * DLD-FUNCTIONS/log.cc: Ditto. |
|
1876 * DLD-FUNCTIONS/minmax.cc: Ditto. |
|
1877 * DLD-FUNCTIONS/rand.cc: Ditto. |
|
1878 |
|
1879 * dynamic-ld.cc, dynamic-ld.h: Major rewrite to allow reloading of |
|
1880 dynamically linked functions. |
|
1881 |
|
1882 * symtab.cc (symbol_record::replace_all_defs): Don't allow top |
|
1883 definition to be NULL. |
|
1884 (symbol_table::clear): Allow dynamically linked functions to be |
|
1885 cleared. |
|
1886 |
|
1887 * symtab.h (TYPE): New enum value, DLD_FUCTION. |
|
1888 (symbol_type): Now 8 bits wide. |
|
1889 (SYMTAB_ALL_TYPES): Include DLD_FUNCTION. |
|
1890 (symbol_record::symbol_def::is_function): Also recognize dld functions. |
|
1891 (symbol_record::symbol_def::is_dld_function): New function. |
|
1892 (symbol_record::is_dld_function): Ditto. |
|
1893 |
|
1894 * defun.cc (install_dld_function): New function. |
|
1895 * defun-int.h: Provide declaration here. |
|
1896 (octave_dld_fcn_installer): New typedef. |
|
1897 (DEFINE_FUN_INSTALLER_FUN): Installer function now takes an |
|
1898 oct_shlib object as an arg. Allow installation of a function to |
|
1899 happen more than once. |
|
1900 |
|
1901 * octave.cc (initialize_error_handlers): Call |
|
1902 set_liboctave_warning_handler here too. |
|
1903 |
|
1904 * ov-builtin.h (is_builtin_function): Return true. |
|
1905 Data member is now protected, not private. |
|
1906 |
|
1907 * ov-fcn.h (is_dynamically_loaded_function): New predicate. |
|
1908 (unload): New function. |
|
1909 Data members are now protected, not private. |
|
1910 |
|
1911 * ov.h (is_builtin_function, is_dld_function): New predicates. |
|
1912 * ov-base.h (is_builtin_function, is_dld_function): Ditto. |
|
1913 |
|
1914 * parse.y (Vwarn_reload_forces_clear): New static flag. |
|
1915 (warn_reload_forces_clear): New function. |
|
1916 (symbols_of_parse): DEFVAR warn_reload_forces_clear. |
|
1917 |
|
1918 * variables.cc (Fclear): Look for dld functions too. |
|
1919 |
3770
|
1920 * ov-dld-fcn.cc, ov-dld-fcn.h: New files. |
3325
|
1921 * Makefile.in (OV_INCLUDES, OV_SRC): Add them to the lists. |
|
1922 |
|
1923 * Makefile.in (DEFVAR_PATTERN): Also match DEFCONSTX. |
|
1924 |
3321
|
1925 1999-10-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1926 |
3325
|
1927 * DLList.h, DLList.cc: New files. |
|
1928 * Makefile.in (INCLUDES, DIST_SRC): Add them to the lists. |
|
1929 |
3323
|
1930 * DLD-FUNCTIONS/lsode.cc (Flsode): Be sure to call |
|
1931 unwind_protect::run_frame before returning. |
|
1932 * DLD-FUNCTIONS/quad.cc (Fquad): Likewise. |
|
1933 * DLD-FUNCTIONS/fsolve.cc (Ffsolve): Likewise. |
|
1934 * DLD-FUNCTIONS/dassl.cc (Fdassl): Likewise. |
|
1935 |
|
1936 * load-save.cc (read_mat_ascii_data): When reading from |
|
1937 tmp_stream, check its state, not the state of is. |
|
1938 |
|
1939 * defun-dld.h (INSTALL_DLD_FCN, INSTALL_DLD_FCNS): New macros. |
|
1940 * DLD-FUNCTIONS/dassl.cc: Use them. |
|
1941 * DLD-FUNCTIONS/lsode.cc: Ditto. |
|
1942 * DLD-FUNCTIONS/fsolve.cc: Ditto. |
|
1943 * DLD-FUNCTIONS/quad.cc: Ditto. |
|
1944 * DLD-FUNCTIONS/time.cc: Ditto. |
|
1945 * DLD-FUNCTIONS/besselj.cc: Ditto. |
|
1946 * DLD-FUNCTIONS/getgrent.cc: Ditto. |
|
1947 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
1948 * DLD-FUNCTIONS/inv.cc: Ditto. |
|
1949 * DLD-FUNCTIONS/log.cc: Ditto. |
|
1950 * DLD-FUNCTIONS/minmax.cc: Ditto. |
|
1951 * DLD-FUNCTIONS/rand.cc: Ditto. |
|
1952 |
3322
|
1953 * data.cc (Flinspace): Let linspace functions handle errors. |
|
1954 |
3321
|
1955 * mkgendoc (print_doc_string): Handle quoted names. |
|
1956 |
|
1957 * file-io.cc (symbols_of_file_io): Use DEFCONSTX for SEEK_SET, |
|
1958 SEEK_CUR, and SEEK_END. |
|
1959 |
|
1960 * defun.h (DEFCONST): Just pass name, defn, and doc to |
|
1961 DEFCONST_INTERNAL. |
|
1962 (DEFCONSTX): Likewise, pass name, defn, and doc to DEFCONSTX_INTERNAL. |
|
1963 * defun-int.h [MKBUILTINS] (DEFCONST_INTERNAL): Likewise, pass |
|
1964 name, defn, and doc to XDEFCONST_INTERNAL. |
|
1965 [MKBUILTINS] (DEFCONSTX_INTERNAL): New macro. |
|
1966 (INSTALL_CONST): New macro. |
|
1967 [! MKBUILTINS] (DEFCONST_INTERNAL): Use it to handle details here. |
|
1968 [! MKBUILTINS] (DEFCONSTX_INTERNAL): Ditto. |
|
1969 * mkgendoc: Fix definition of XDEFCONST_INTERNAL to match. |
|
1970 * mkbuiltins: Ditto. |
|
1971 |
|
1972 * mkdefs: Match spaces before BEGIN_INSTALL_BUILTIN. |
|
1973 |
|
1974 * Makefile.in (DEFUN_PATTERN): Also match DEFUN_MAPPER. |
|
1975 |
|
1976 1999-10-26 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
1977 |
|
1978 * data.cc (VI, VInf, VJ, VNaN, Ve, Veps, Vfalse, Vi, Vinf, Vj, |
|
1979 Vnan, Vpi, Vrealmax, Vrealmin): Texinfoize doc strings. |
|
1980 * mappers.cc (Fabs, Facos, Facosh, Fangle, Farg, Fasin, Fasinh, |
|
1981 Fatan, Fatanh, Fceil, Fconj, Fcos, Fcosh, Ferf, Ferfc, Fexp, |
|
1982 Ffinite, Ffix, Ffloor, Fgamma, Fimag, Flgamma, Flog, Flog10, |
|
1983 Freal, Fround, Fsign, Fsin, Fsinh, Fsqrt, Ftan, Ftanh): Ditto. |
|
1984 |
|
1985 1999-10-23 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
1986 |
3361
|
1987 * data.cc (Fis_matrix): Texinfoize doc string. |
|
1988 * ov.cc (Vpropagate_empty_matrices): Ditto. |
|
1989 * pt-mat.cc: (Vempty_list_elements_ok): Ditto. |
|
1990 * pr-output.cc (Vfixed_point_format, Voutput_max_field_width, |
|
1991 Voutput_precision, Vprint_empty_dimensions, Vsplit_long_rows): |
|
1992 Ditto. |
3321
|
1993 |
|
1994 1999-10-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1995 |
3323
|
1996 * ov-usr-fcn.cc (octave_user_function::do_index_op): If |
|
1997 Vmax_recursion_depth is exceeded, call unwind_protect::run_frame |
|
1998 before returning. |
3321
|
1999 |
3308
|
2000 1999-10-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2001 |
3317
|
2002 * cutils.c (do_octave_usleep): Handle useconds > 1e6. |
|
2003 |
3308
|
2004 * variables.h (is_valid_function): Provide default values for the |
|
2005 string argument. |
|
2006 |
|
2007 * symtab.cc (variable_reference): Maybe print warning (or error) |
|
2008 about variables that hide functions of the same name. |
|
2009 (symbol_record::define (const octave_value&, unsigned int)): Ditto. |
|
2010 (Vvariables_can_hide_functions): New static variable. |
|
2011 (variables_can_hide_functions, symbols_of_symtab): New functions. |
|
2012 |
|
2013 * cutils.c: New file. |
|
2014 * Makefile.in (SOURCES): Add it to the list. |
|
2015 * utils.h: Declare octave_usleep here. |
|
2016 * dirfns.cc (Fls): Simply all octave_usleep. |
|
2017 * oct-procbuf.cc (octave_procbuf::open): Ditto. |
|
2018 * sysdep.cc (Fusleep): Ditto. |
|
2019 * toplev.cc (run_command_and_return_output): Ditto. |
|
2020 |
3305
|
2021 1999-10-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2022 |
3307
|
2023 * data.cc (make_diag (const octave_value&, const octave_value&)): |
|
2024 Delete special cases for scalars and simply attempt conversion of |
|
2025 first arg to a matrix value. If that fails, we will still see an |
|
2026 error message. |
|
2027 |
3305
|
2028 * Makefile.in (DISTFILES): Add mkgendoc to the list. |
|
2029 |
3296
|
2030 1999-10-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2031 |
3301
|
2032 * Makefile.in (stmp-pic): New target. |
|
2033 ($(PICOBJS)): Depend on stmp-pic, not pic. |
|
2034 |
|
2035 * ov.h (get_rep): New function. |
|
2036 |
|
2037 * help.cc (display_help_text): Pass definitions for VERSION, |
|
2038 OCTAVE_HOME, and TARGETHOSTTYPE to makeinfo. |
|
2039 |
|
2040 * DLD-FUNCTIONS/getgrent.cc: Texinfoize all doc strings. |
|
2041 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
2042 * DLD-FUNCTIONS/getrusage.cc: Ditto. |
|
2043 * DLD-FUNCTIONS/time.cc: Ditto. |
|
2044 |
|
2045 * defaults.cc (EXEC_PATH, OCTAVE_VERSION): Texinfoize doc strings. |
|
2046 * dirfns.cc (Fcd, Fls, Fpwd, Freaddir, Fmkdir, Frmdir, Frename, |
|
2047 Fglob, Ffnmatch): Ditto. |
|
2048 * file-io.cc (Fpopen, Fpclose, Fumask): Ditto. |
|
2049 * sysdep.cc (Fgetenv, Fputenv, Fpause, Fsleep, Fusleep, Fisieee, |
|
2050 Ftilde_expand): Ditto. |
|
2051 * toplev.cc (Fcomputer, Fsystem, Foctave_config_info): Ditto. |
|
2052 * utils.cc (Ffile_in_path): Ditto. |
|
2053 * syscalls.cc (Fdup2, Fexec, Ffcntl, Ffork, Fgetpgrp, Fgetpid, |
|
2054 Fgetppid, Fgetegid, Fgetgid, Fgeteuid, Fgetuid, Fmkfifo, Fpipe, |
|
2055 Fstat, Funlink, Fwaitpid, F): Ditto. |
|
2056 (Flstat): Refer to stat for doc. |
|
2057 |
|
2058 |
3296
|
2059 * help.cc (looks_like_texinfo): New function. |
|
2060 (display_help_text): Use it to see if the doc string looks like |
|
2061 Texinfo source. If so, use makeinfo to format the text before |
|
2062 displaying it. |
|
2063 |
|
2064 * mkgendoc: New script. |
|
2065 * Makefile.in: Use it to create gendoc.cc, which is compiled and |
|
2066 run to create DOCSTRINGS file from sources. |
|
2067 |
3295
|
2068 1999-10-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2069 |
|
2070 * help.cc (help_from_info): Print `unable to find info' message if |
|
2071 try_info returns 127; otherwise, print `not indexed' message. |
|
2072 Don't sleep after printing `not indexed' message. |
|
2073 |
3292
|
2074 1999-10-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2075 |
|
2076 * parse.y (fold (tree_unary_expression *)): New function. |
|
2077 (make_prefix_op, make_postfix_op): Use it. |
|
2078 |
3281
|
2079 1999-10-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2080 |
3288
|
2081 * Makefile.in (oct-gperf.h): Ask for ANSI-C output from gperf |
|
2082 (requires gperf-2.7 or later). |
|
2083 |
3281
|
2084 * sighandlers.cc (sigwinch_handler): New function. |
|
2085 (install_signal_handlers): Install it. |
|
2086 |
3273
|
2087 Thu Sep 23 19:49:36 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2088 |
|
2089 * toplev.cc (Fsystem): For async case, use execl instead of |
|
2090 system, avoiding the need to exit after executing the subprocess. |
|
2091 |
3268
|
2092 Thu Sep 9 17:09:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2093 |
|
2094 * oct-stream.cc (get_size): Allow zero values. |
|
2095 (get_size): New arg, one_elt_size_spec. |
|
2096 (do_scanf_conv): New arg, `conv_count'. Change instantiation |
|
2097 requests and all callers. |
|
2098 (octave_base_stream::do_scanf): Improve scanning of strings. |
|
2099 (octave_base_stream::do_oscanf): Remove size limit on %s conversions. |
|
2100 |
|
2101 * oct-stream.cc (scanf_format_list::all_character_conversions): |
|
2102 Don't count %p as a character conversion. |
|
2103 |
|
2104 Tue Sep 7 08:31:04 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2105 |
|
2106 * pr-output.cc (set_real_matrix_format, set_complex_matrix_format): |
|
2107 Move check for fixed_point_format ahead of check for |
|
2108 int_or_inf_or_nan. |
|
2109 |
3264
|
2110 Thu Sep 2 11:54:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2111 |
|
2112 * oct-obj.cc (make_argv): Correctly handle empty strings as args. |
|
2113 |
3263
|
2114 Fri Aug 20 08:17:52 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2115 |
|
2116 * DLD-FUNCTIONS/quad.cc (quad): Delete unused label. |
|
2117 |
|
2118 * unwind-prot.cc (saved_variable::~saved_variable): Don't try to |
|
2119 delete gen_ptr_value here. |
|
2120 |
|
2121 Mon Aug 16 21:34:33 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2122 |
|
2123 * lex.l (next_token_is_sep_op): New function. |
|
2124 (handle_close_brace, maybe_unput_comma): Use it. |
|
2125 (have_continuation): Also handle CRLF here. |
|
2126 |
|
2127 Wed Aug 11 16:06:57 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2128 |
|
2129 * file-io.cc (Ffopen): Make fopen ("filename") work and imply that |
|
2130 MODE = "r". |
|
2131 |
3258
|
2132 Wed Jul 21 15:38:52 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2133 |
3259
|
2134 * help.cc (display_names_from_help_list): Sort names before |
|
2135 listing them. |
|
2136 (print_symbol_type, Ftype): Also handle built-in constants. |
|
2137 (LIST_SYMBOLS): Correct call to symbol_table::name_list. |
|
2138 (simple_help): List constants here too. List constants and |
|
2139 variables before functions, not after. Sort names before listing |
|
2140 them. |
|
2141 |
|
2142 * variables.cc (do_who): Display built-in constants in a separate |
|
2143 section. |
|
2144 |
|
2145 * error.cc (bind_global_error_variable, clear_global_error_variable): |
|
2146 Call bind_builtin_constant, not bind_builtin_variable to set |
|
2147 __error_text__. |
|
2148 * octave.cc (intern_argv): Likewise, for argv and __argv__. |
|
2149 |
|
2150 * defun.cc (install_builtin_constant): Move function guts to |
|
2151 bind_builtin_constant in variables.cc. |
|
2152 * variables.cc (bind_builtin_constant): New function. |
|
2153 |
3258
|
2154 * symtab.cc (symbol_record::define, symbol_record::variable_reference): |
|
2155 Handle constants the same as functions. |
|
2156 (symbol_record::link_to_builtin_variable): New function. |
|
2157 (symbol_record::define_builtin_const): New function. |
|
2158 (symbol_record::define_as_fcn): Delete unused function. |
|
2159 (symbol_record::read_only_error): |
|
2160 Handle constants the same as variables. |
|
2161 * symtab.h (symbol_record::BUILTIN_CONSTANT): New enum value. |
|
2162 (symbol_record::symbol_type): Increase width to 7 bits. |
|
2163 (symbol_record::symbol_def::is_constant): New function. |
|
2164 (symbol_record::symbol_def::is_builtin_constant): New function. |
|
2165 (symbol_record::is_constant): New function. |
|
2166 (symbol_record::is_builtin_constant): New function. |
|
2167 (SYMTAB_ALL_TYPES): Add symbol_record::BUILTIN_CONSTANT. |
|
2168 * variables.cc (link_to_builtin_variable): Delete unused function. |
|
2169 (link_to_builtin_or_function): Handle built-in constants here too. |
|
2170 |
|
2171 * defun.cc (install_builtin_variable): Delete inst_as_fcn arg. |
|
2172 (install_builtin_constant): New function. |
|
2173 (install_builtin_variable_as_function): Delete unused function. |
|
2174 * defun.h (DEFVAR_INTERNAL): Delete inst_as_fcn arg. |
|
2175 (DEFCONST_INTERNAL): New macro. |
|
2176 * defun.h (DEFVAR): Delete inst_as_fcn arg. |
|
2177 (DEFCONST, DEFCONSTX): Define using DEFCONST_INTERNAL instead of |
|
2178 DEFVAR_INTERNAL. |
|
2179 * data.cc, defaults.cc, error.cc, help.cc, input.cc, lex.l, |
|
2180 load-save.cc, oct-hist.cc, oct-procbuf.cc, ov-fcn.h, |
|
2181 ov-usr-fcn.cc, ov.cc, pager.cc, parse.y, pr-output.cc, |
|
2182 pt-assign.cc, pt-decl.cc, pt-mat.cc, pt-plot.cc, pt-stmt.cc, |
|
2183 toplev.cc, variables.cc: |
|
2184 Change all invocations of DEFVAR to match new definition. |
|
2185 |
|
2186 * data.cc (symbols_of_data): Add DEFCONSTs for true and false. |
|
2187 |
3255
|
2188 Thu Jul 15 10:59:42 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2189 |
3258
|
2190 * data.cc (Fis_bool, Fis_complex, Fisempty, Fisnumeric, Fis_list, |
|
2191 Fis_map, Fis_struct): Return bool object. |
|
2192 (Fisreal): New function. |
|
2193 |
|
2194 * ov-str-mat.h (octave_char_matrix_str): Only return true if |
|
2195 Vimplicit_str_to_num_ok is also true. |
|
2196 |
3255
|
2197 * DLD-FUNCTIONS/time.cc (Ftime): Print usage message if any |
|
2198 arguments are supplied. |
|
2199 |
|
2200 * variables.cc (symbol_out_of_date): Call octave_time for time stamps. |
|
2201 |
|
2202 * fn-cache.h (octave_fcn_file_name_cache::timestamp): |
|
2203 Now octave_time object. |
|
2204 |
|
2205 * strftime.c: Move to liboctave directory. |
|
2206 * Makefile.in (DIST_SRC): Delete from list. |
|
2207 |
|
2208 * ov-usr-fcn.h (octave_user_function::t_parsed, |
|
2209 octave_user_function::t_checked): Now octave_time objects. |
|
2210 (octave_user_function::time_parsed, |
|
2211 (octave_user_function::time_checked): |
|
2212 Return value is now octave_time object. |
|
2213 (octave_user_function::mark_fcn_file_up_to_date)): |
|
2214 Arg is now octave_time object. |
|
2215 |
|
2216 * ov-fcn.h (octave_function::mark_fcn_file_up_to_date)): |
|
2217 Arg is now octave_time object. |
|
2218 (octave_function::time_parsed, octave_function::time_checked): |
|
2219 Return value is now octave_time object. |
|
2220 |
|
2221 * input.cc (Vlast_prompt_time): Now an octave_time object. |
|
2222 (octave_gets): Call octave_time::stamp() to set Vlast_prompt_time. |
|
2223 |
|
2224 * DLD-FUNCTIONS/time.cc (mk_tm_map, extract_tm, Ftime, Fgmtime, |
|
2225 Flocaltime, Fmktime, Fstrftime): Use new classes defined in |
|
2226 liboctave/oct-time.cc instead of accessing C functions directly. |
|
2227 |
3252
|
2228 Wed Jul 14 17:38:46 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2229 |
|
2230 * systime.h: Move to liboctave directory. |
|
2231 * Makefile.in (INCLUDES): Delete it from the list |
|
2232 |
|
2233 Tue Jul 13 14:34:57 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2234 |
|
2235 * sighandlers.cc (sigchld_handler): Only wait for processes in |
|
2236 octave_child_list. |
|
2237 * toplev.cc (cmd_status): Delete unused static variable. |
|
2238 (cmd_death_handler): Delete unused function. |
|
2239 (run_command_and_return_output): Don't add cmd_death_handler to |
|
2240 octave_child_list. Simply extract command exit status from |
|
2241 calling close() on the procstream object. |
|
2242 |
3249
|
2243 Mon Jul 12 22:38:50 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2244 |
|
2245 * defun.h (DEFUN_MAPPER): Handle new args, d_b_map and c_b_map. |
|
2246 * defun-int.h (DEFUN_MAPPER_INTERNAL): Likewise. |
|
2247 * mappers.cc (install_mapper_functions): Supply new args to |
|
2248 all uses of DEFUN_MAPPER. |
|
2249 * ov-mapper.cc (octave_mapper::apply): Handle mapper functions |
|
2250 that return bool objects. |
|
2251 * ov-mapper.h (octave_mapper::d_b_mapper, octave_mapper::c_b_mapper): |
|
2252 New typedefs. |
|
2253 (octave_mapper::octave_mapper): Handle new mapper function types. |
|
2254 |
|
2255 * DLD-FUNCTIONS/minmax.cc: Do a better job of handling NaNs. |
|
2256 |
|
2257 Sun Jul 11 13:15:17 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2258 |
|
2259 * pr-output.cc (do_plus_format (ostream&, double)): New function. |
|
2260 (octave_print_internal (ostream&, double, bool)): Use it. |
|
2261 (octave_print_internal (ostream&, const Matrix&, bool, int)): Ditto. |
|
2262 |
|
2263 * pr-output.cc (do_plus_format (ostream&, const Complex&)): |
|
2264 New function. |
|
2265 (octave_print_internal (ostream&, const Complex&, bool)): Use it. |
|
2266 (octave_print_internal (ostream&, const ComplexMatrix&, bool, int)): |
|
2267 Ditto. |
|
2268 |
|
2269 Sun Jun 20 23:04:00 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2270 |
|
2271 * sysdep.cc: Include sys/ioctl.h if available. |
|
2272 |
|
2273 Sat Jun 19 12:07:16 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2274 |
|
2275 * variables.cc (do_who): Make pattern and multiple non-option |
|
2276 arguments work. |
|
2277 |
3246
|
2278 Mon Jun 7 09:54:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2279 |
|
2280 * lex.l (next_token_is_bin_op, next_token_is_postfix_unary_op, |
|
2281 handle_number): Delete yytext arg. Change all callers. |
|
2282 (next_token_is_postfix_unary_op): Check the first character |
|
2283 obtained from yyinput before calling it again. |
|
2284 (next_token_is_bin_op): Do a more thorough check. |
|
2285 (handle_identifier): Also enter token in local symbol table if the |
|
2286 following token is a dot and it looks like a binary operator. |
|
2287 (whitespace_in_literal_matrix): Now static. |
|
2288 |
|
2289 * lex.l: Always use unput, not yyunput. |
|
2290 |
3244
|
2291 Fri May 28 11:02:37 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2292 |
|
2293 * DLD-FUNCTIONS/chol.cc (Fchol): If two output arguments, never |
|
2294 produce error message. |
|
2295 |
3243
|
2296 Thu May 27 18:28:35 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2297 |
|
2298 * DLD-FUNCTIONS/chol.cc (Fchol): Also return info as second output. |
|
2299 |
|
2300 * DLD-FUNCTIONS/minmax.cc (max (const ComplexMatrix&, const |
|
2301 ComplexMatrix&)): Correct test for real columns only. |
|
2302 (min (const ComplexMatrix&, const ComplexMatrix&)): Likewise. |
|
2303 |
|
2304 Wed Apr 14 12:54:25 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2305 |
|
2306 * DLD-FUNCTIONS/dassl.cc (Fdassl): Prevent recursive calls. |
|
2307 * DLD-FUNCTIONS/fsolve.cc (Ffsolve): Likewise. |
|
2308 * DLD-FUNCTIONS/lsode.cc (Flsode): Likewise. |
|
2309 * DLD-FUNCTIONS/quad.cc (Fquad): Likewise. |
|
2310 |
|
2311 * file-io.cc (Fsscanf, Ffscanf): Doc fix. |
|
2312 |
3239
|
2313 Sat Mar 27 11:07:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2314 |
|
2315 * ov.h (octave_value::count): New function. |
|
2316 * symtab.cc (symbol_record::dump_symbol_info): New function. |
|
2317 * symtab.cc (symbol_record::symbol_def::dump_symbol_info): Ditto. |
|
2318 * variables.cc (F__dump_symbol_info__): Ditto. |
|
2319 |
|
2320 * pt-misc.cc (tree_parameter_list::clear): New function. |
|
2321 * ov-usr-fcn.h (octave_user_function::clear_args_passed): Ditto. |
|
2322 * ov-usr-fcn.cc (clear_param_list): New function. |
|
2323 (clear_args_passed): New function. |
|
2324 (octave_user_function::do_index_op): Use them to decrement |
|
2325 reference counts on local variables. |
|
2326 |
3238
|
2327 Fri Mar 26 00:51:53 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2328 |
|
2329 * Makefile.in (libraries): Use the libfoo.a(objects) method of |
|
2330 creating static libs. |
|
2331 |
|
2332 * defaults.cc (symbols_of_defaults): Initialize LOADPATH to |
|
2333 Vload_path, not ":". |
|
2334 |
|
2335 Thu Mar 18 12:09:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2336 |
|
2337 * data.cc (Fisnumeric): Fix typo. |
|
2338 |
|
2339 Thu Mar 4 02:17:04 1999 James Macnicol <jamesm@evans.ee.adfa.oz.au> |
|
2340 |
|
2341 * file-io.cc (Ffread, Ffwrite): Add uint16 and uint32 data types |
|
2342 to doc string. |
|
2343 |
|
2344 Wed Mar 3 11:55:17 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2345 |
|
2346 * lex.l (handle_string): Allow "" to pass through unchanged if |
|
2347 working on a gset command. |
|
2348 |
|
2349 Tue Mar 2 01:36:29 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2350 |
|
2351 * variables.cc (Fexist): If a variable isn't defined, only go on |
|
2352 to look for a global by the same name if we are at the top level. |
|
2353 |
|
2354 Fri Jan 29 02:18:36 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2355 |
|
2356 * version.h (OCTAVE_NAME_AND_VERSION): Say `GNU Octave', not just |
|
2357 Octave. |
|
2358 |
3234
|
2359 Thu Jan 28 21:29:16 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2360 |
|
2361 * toplev.cc (Fcomputer): Use CANONICAL_HOST_TYPE, not TARGET_HOST_TYPE. |
|
2362 (octave_config_info): Likewise. |
|
2363 * version.h: Ditto. |
|
2364 |
|
2365 * sysdep.cc (Fpause): Flush output before getting user input. |
|
2366 |
3233
|
2367 Wed Jan 27 14:18:29 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2368 |
|
2369 * Makefile.in (DEFFUN_PATTERN, DEFVAR_PATTERN): Use egrep again. |
|
2370 Make the patterns work with stupid egreps that don't like empty |
|
2371 elements in alternation patterns. |
|
2372 |
|
2373 Fri Jan 22 04:41:48 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2374 |
|
2375 * load-save.cc (save_ascii_data): Check for string type first, |
|
2376 then range, then the rest. |
|
2377 (save_binary_data): Ditto. |
|
2378 |
|
2379 * pager.cc (more_than_a_screenful): Accept length as second arg. |
|
2380 Handle long lines properly, assuming the terminal wraps long lines. |
|
2381 (octave_pager_buf::do_sync): Accept length of data as second arg. |
|
2382 Use write instead of << to put characters on output stream. |
|
2383 (octave_pager_buf::sync): Don't assume data ends at first NUL. |
|
2384 (octave_diary_buf::sync): Ditto. |
|
2385 |
|
2386 Thu Jan 21 22:15:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2387 |
|
2388 * load-save.cc (save_mat_binary_data): Check for string type |
|
2389 first, then range, then the rest. |
|
2390 |
|
2391 Wed Jan 20 12:01:14 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2392 |
|
2393 * oct-stream.cc (octave_base_stream::do_scanf): Handle short and |
|
2394 long ints correctly. |
|
2395 |
|
2396 Fri Jan 15 13:04:58 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2397 |
|
2398 * parse.y (end_error): Handle case of endswitch too. |
|
2399 |
|
2400 * Makefile.in: Use basic regular expressions and grep instead of |
|
2401 egrep to find files that contain DEFVAR, DEFCONST, or DEFUN. |
|
2402 |
|
2403 Wed Dec 9 14:14:11 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2404 |
|
2405 * Makefile.in (octave): Add $(RDYNAMIC_FLAG) to link command. |
|
2406 |
|
2407 Fri Dec 4 20:26:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2408 |
|
2409 * DLD-FUNCTIONS/time.cc (Fstrftime): Make it work even when not |
|
2410 using the GNU version of strftime, which allows passing NULL for |
|
2411 the buffer to determine the required size of the buffer. |
|
2412 |
3225
|
2413 Wed Dec 2 22:38:40 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2414 |
|
2415 * utils.cc (file_in_loadpath): Expect argc == 2, not 3. |
|
2416 |
|
2417 Tue Nov 24 23:38:19 1998 Eric Norum <eric@skatter.USask.Ca> |
|
2418 |
|
2419 * mkbuiltins: Also strip off leading `./' from file names. |
|
2420 * mkops: Ditto. |
|
2421 |
|
2422 Tue Nov 24 23:24:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2423 |
|
2424 * strftime.c: Surround everything with #ifdef HAVE_STRFTIME / #endif. |
|
2425 |
|
2426 * lex.h (YY_FATAL_ERROR): Call yy_falta_error after |
|
2427 jump_to_top_level to avoid gcc warning. |
|
2428 |
|
2429 Fri Nov 20 13:34:47 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2430 |
|
2431 * ov-bool.h, ov-bool.cc (class octave_bool): Derive from |
|
2432 octave_base_scalar and get common functions via derivation. |
|
2433 * ov-scalar.h, ov-scalar.cc (class octave_scalar): Ditto. |
|
2434 * ov-complex.h, ov-complex.cc (class octave_complex): Ditto. |
|
2435 |
|
2436 * ov-base-scalar.h, ov-base-scalar.cc (class octave_base_scalar): |
|
2437 New files for new class definition. Put common scalar data type |
|
2438 stuff here. |
|
2439 * Makefile.in (OV_INCLUDES, OV_SRC): Add them to the lists. |
|
2440 |
3221
|
2441 Thu Nov 19 14:30:25 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
3225
|
2442 |
3222
|
2443 * dynamic-ld.cc (octave_dynamic_loader::mangle_name): |
|
2444 Prepend underscore here. |
|
2445 (octave_dynamic_loader::load_fcn_from_dot_oct_file): Not here. |
|
2446 |
3221
|
2447 * ov-re-mat.h (octave_matrix_value): Delete experimental code for |
|
2448 handling structure references for things like .rows, .cols, etc. |
|
2449 |
3220
|
2450 Wed Nov 18 01:18:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2451 |
3221
|
2452 * Makefile.in (VAR_FILES): Be more careful about matching. |
|
2453 (DEF_FILES): Likewise. |
|
2454 |
|
2455 * ov-base-mat.h, ov-base-mat.cc, ov-bool-mat.h, ov-bool-mat.cc, |
|
2456 ov-ch-mat.h, ov-ch-mat.cc, ov-cx-mat.h, ov-cx-mat.cc, |
|
2457 ov-re-mat.h, ov-re-mat.cc: Move default definition of all, any, |
|
2458 is_matrix_type, is_numeric_type, valid_as_zero_index, and |
|
2459 do_index_op to base class. |
|
2460 Provide definitions that override the defaults where necessary. |
3220
|
2461 |
|
2462 * mappers.cc: Don't include lo-specfun.h. |
|
2463 |
|
2464 Tue Nov 17 14:35:56 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2465 |
|
2466 * besselj.cc (Fbesselh, Fairy); New functions. |
|
2467 (Fbesselj, Fbessely, Fbesselk, Fbesseli): Update doc strings. |
|
2468 (do_bessel): Handle additional args. |
|
2469 |
|
2470 Fri Nov 13 14:47:11 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2471 |
|
2472 * lex.l (NUMBER): Allow hexadecimal constants. |
|
2473 (looks_like_hex): New function. |
|
2474 (handle_number): Check for hexadecimal constants and convert them |
|
2475 to unsigned integer values. |
|
2476 |
3219
|
2477 Thu Nov 12 11:13:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2478 |
|
2479 * input.cc (gnu_readline): Check for EOF from command_editor::readline. |
|
2480 |
|
2481 * ov-str-mat.h, ov-str-mat.cc (class octave_char_matrix_str): |
|
2482 Get common functions via new derivation scheme. |
|
2483 |
|
2484 * ov-bool-mat.h, ov-bool-mat.cc (class octave_bool_matrix): |
|
2485 Derive from octave_base_matrix and get common functions via derivation. |
|
2486 * ov-ch-mat.h, ov-ch-mat.cc (class octave_char_matrix): Ditto. |
|
2487 * ov-cx-mat.h, ov-cx-mat.cc (class octave_complex_matrix): Ditto. |
|
2488 * ov-re-mat.h, ov-re-mat.cc (class octave_real_matrix): Ditto. |
|
2489 |
|
2490 * ov-base-mat.h, ov-base-mat.cc (class octave_base_matrix): New |
|
2491 files for new class definition. Put common matrix data type |
|
2492 stuff here. |
|
2493 |
|
2494 * ov-list.cc (Fnth): New function. |
|
2495 |
|
2496 * ov-list.cc (octave_list::do_index_op): Allow more complex indexing. |
|
2497 |
|
2498 * oct-obj.cc (octave_value_list::index): New function. |
|
2499 (octave_value_list::octve_value_list (Array<octave_value>)): |
|
2500 New private constructor. |
|
2501 |
|
2502 * ov-list.cc (Fsplice): Fix docstring to match. |
|
2503 * oct-obj.cc (octave_value_list::splice): Allow special case |
|
2504 splice (x, length(x)+1, 0, y) to be equivalent to append (x, y). |
|
2505 |
|
2506 * ov-list.cc (Fappend): If an arg is a list, concatenate the lists |
|
2507 instead of appending arg as a single element. |
|
2508 |
|
2509 Wed Nov 11 14:07:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2510 |
|
2511 * load-save.cc (get_mat_data_input_line): New function. |
|
2512 (get_lines_and_columns): Use it here. |
|
2513 (read_mat_ascii_data): And here and do our own reading instead of |
|
2514 using Matrix::operator<<. |
|
2515 |
|
2516 Tue Nov 10 16:12:25 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2517 |
|
2518 * parse.y (make_constant): Initialize retval to 0. |
|
2519 |
|
2520 * toplev.h (clean_up_and_exit (void)): Delete declaration. |
|
2521 * toplev.cc (do_octave_atexit): Move guts of clean_up_for_exit |
|
2522 here, but ensure that the actions are only executed once. |
|
2523 * octave.cc (main): Don't register cleanup_tmp_files with atexit. |
|
2524 |
|
2525 * ov.h, ov.cc (class octave_value): Use DECLARE_OCTAVE_ALLOCATOR |
|
2526 and DEFINE_OCTAVE_ALLOCATOR for uniform declaration and definition |
|
2527 of allocator functions. Use DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA |
|
2528 and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA for uniform declaration |
|
2529 and definition of type id functions and data. |
|
2530 * ov-usr-fcn.h, ov-usr-fcn.cc (class octave_user_function): Ditto. |
|
2531 * ov-scalar.h, ov-scalar.cc (class octave_scalar): Ditto. |
|
2532 * ov-re-mat.h ov-re-mat.cc (class octave_matrix): Ditto. |
|
2533 * ov-range.h, ov-range.cc (class octave_range): Ditto. |
|
2534 * ov-mapper.h, ov-mapper.cc (class octave_mapper): Ditto. |
|
2535 * ov-list.h, ov-list.cc (class octave_list): Ditto. |
|
2536 * ov-file.h, ov-file.cc (class octave_file): Ditto. |
|
2537 * ov-fcn.h, ov-fcn.cc (class octave_function): Ditto. |
|
2538 * ov-cx-mat.h, ov-cx-mat.cc (class octave_complex_matrix): Ditto. |
|
2539 * ov-complex.h, ov-complex.cc (class octave_complex): Ditto. |
|
2540 * ov-ch-mat.h, ov-ch-mat.cc (octave_char_matrix): Ditto. |
|
2541 * ov-builtin.h, ov-builtin.cc (class octave_builtin): Ditto. |
|
2542 * ov-bool.h, ov-bool.cc (class octave_bool): Ditto. |
|
2543 * ov-bool-mat.h, ov-bool-mat.cc (octave_bool_matrix): Ditto. |
|
2544 |
|
2545 * ov.h (DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA): New macro. |
|
2546 (DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA): Ditto. |
|
2547 |
3215
|
2548 Mon Nov 9 16:12:37 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2549 |
|
2550 * pr-output.cc (octave_print_internal): Reorder default args for |
|
2551 charMatrix version. |
|
2552 (octave_print_internal): New function for boolMatrix. |
|
2553 |
|
2554 * version.h (OCTAVE_STARTUP_MESSAGE): Note that this is a |
|
2555 development release. |
|
2556 |
|
2557 * toplev.cc (do_octave_atexit): Call flush_octave_stdout here. |
|
2558 (clean_up_for_exit): And here. |
|
2559 |
|
2560 Mon Nov 9 15:20:53 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2561 |
|
2562 * input.cc (get_user_input): Check retval.length(), not retval.length. |
|
2563 |
|
2564 Sun Nov 8 19:30:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2565 |
|
2566 * pt-assign.cc (tree_simple_assignment::rvalue): If etype is |
|
2567 asn_eq, don't evaluate ult again because retval is just rhs value. |
|
2568 (tree_multi_assignment::rvalue): Likewise. |
|
2569 |
|
2570 Fri Nov 6 12:14:29 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2571 |
|
2572 * pt-loop.cc (tree_for_command::eval): Move code for string RHS |
|
2573 outside if clause for matrix types. |
|
2574 |
|
2575 * pt-idx.cc: Don't forget to define arg_nm. |
|
2576 Move contstructor here. |
|
2577 * pt-idx.h: From here. |
|
2578 |
|
2579 * data.cc (Fisempty): Also return true for empty strings. |
|
2580 |
3212
|
2581 Wed Nov 4 17:21:41 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2582 |
|
2583 * ov-base.cc (octave_base_value::rows, octave_base_value::columns, |
|
2584 octave_base_value::length): Delete. |
|
2585 * ov-base.h (octave_base_value::rows, octave_base_value::columns, |
|
2586 octave_base_value::length): Define here. All return -1 if not |
|
2587 defined in a derived class. |
|
2588 |
|
2589 * data.cc (Fis_matrix): Also return true if the arg is a range. |
|
2590 |
3209
|
2591 Tue Nov 3 09:40:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2592 |
|
2593 * data.cc (Fis_bool): New function. |
|
2594 Also add alias for islogical. |
|
2595 |
|
2596 * ov.h (octave_value::is_bool_type): New function. |
|
2597 * ov-base.h (octave_base_value::is_bool_type): Likewise. |
|
2598 * ov-bool.h (octave_bool::is_bool_type): Likewise. |
|
2599 * ov-bool-mat.h (octave_bool_matrix::is_bool_type): Likewise. |
|
2600 |
3206
|
2601 Mon Nov 2 13:36:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2602 |
3208
|
2603 * lex.l (handle_close_brace): Also handle case of ']' followed by |
|
2604 other assignment ops (+=, -=, ...). |
|
2605 |
|
2606 * pt-assign.cc (tree_simple_assignment::rvalue): Correctly handle |
|
2607 return value and printing for operators other than `='. |
|
2608 (tree_multi_assignment::rvalue): Likewise. |
|
2609 |
|
2610 * pt-assign.h (tree_multi_assignment::etype): New data member. |
|
2611 * pt-assign.cc (tree_multi_assignment::rvalue): Use it instead of |
|
2612 assuming `='. |
|
2613 (tree_multi_assignment::oper): New function. |
|
2614 * pt-pr-code.cc (tree_print_code::visit_multi_assignment): Use |
|
2615 it instead of always printing `='. |
|
2616 * parse.y (make_assign_op): Pass expression type to |
|
2617 tree_multi_assignment constructor. |
|
2618 |
3206
|
2619 * Makefile.in (stmp-pic): New target. |
|
2620 ($(PICOBJ)): Depend on stmp-pic, not pic. |
|
2621 (clean): Delete stmp-pic. |
|
2622 |
|
2623 Sun Nov 1 23:24:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2624 |
|
2625 * mappers.cc (install_mapper_functions): Add alias for isfinite. |
|
2626 |
|
2627 Sat Oct 31 08:46:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2628 |
|
2629 * data.cc (Fisnumeric): New function. |
|
2630 |
3203
|
2631 Fri Oct 30 08:39:30 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2632 |
3205
|
2633 * oct-lvalue.cc (octave_lvalue::do_unary_op): Make it work for |
|
2634 indexed ops too. |
|
2635 * ov.cc (octave_value::unary_op_to_assign_op): New function. |
|
2636 (octave_value::do_non_const_unary_op): New function for indexed ops. |
|
2637 |
3204
|
2638 * parse.y (LEFTDIV_EQ, ELEFTDIV_EQ): New tokens. |
|
2639 (assign_expr): Add rules for them. |
|
2640 (make_assign_op): Handle them here too. |
|
2641 * lex.l: Recognize them. |
|
2642 * ov.h (octave_value::assign_op): Add ldiv_eq and el_ldiv_eq. |
|
2643 * ov.cc (octave_value::assign_op_as_string): Ditto. |
|
2644 (octave_value::op_eq_to_binary_op): Ditto. |
|
2645 (octave_value::assign): Handle OP= style operators with brute force. |
|
2646 (octave_value::simple_assign): New function. |
|
2647 |
3203
|
2648 * parse.y (matrix): Dont' forget to reset |
|
2649 lexer_flags.looking_at_matrix_or_assign_lhs. |
|
2650 |
|
2651 * oct-lvalue.cc (octave_lvalue::assign): Don't call change |
|
2652 function if error occurs. |
|
2653 (octave_lvalue::do_unary_op): If we have an index, fail with message. |
|
2654 |
3202
|
2655 Thu Oct 29 09:27:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2656 |
3203
|
2657 * ov.cc (do_binary_op): Protect against invalid type conversions. |
|
2658 (try_assignment_with_conversion): Likewise. |
|
2659 (do_unary_op): Likewise. |
|
2660 |
|
2661 * ov.h (OV_UNOP_FN, OV_UNOP_OP, OV_UNOP_FN_OP): New macros. |
|
2662 Use them to define not, uminus, transpose, hermitian functions |
|
2663 and operators ! and -. |
|
2664 (OV_BINOP_FN, OV_BINOP_OP, OV_BINOP_FN_OP): New macros. |
|
2665 Use them to define add, sub, mul, div, pow, ldiv, lshift, rshift, |
|
2666 lt, le, eq, ge, gt, ne, el_mul, el_div, el_pow, el_ldiv, el_and, |
|
2667 el_or, struct_ref, functions and operators <, <=, ==, >=, >, !=, |
|
2668 +, -, *, and /. |
|
2669 |
|
2670 * ops.h (CONVDECLX): New macro. |
|
2671 * ov-base.cc (matrix_conv, complex_matrix_conv, string_conv): |
|
2672 Use it to declare these functions. |
|
2673 |
|
2674 * ops.h (CONVDECL, INSTALL_WIDENOP): |
|
2675 Prefix function name with `oct_conv_'. |
|
2676 (INSTALL_BINOP, BINOPDECL): Prefix function name with `oct_binop_'. |
|
2677 (INSTALL_ASSIGNOP, INSTALL_ASSIGNANYOP, ASSIGNOPDECL): |
|
2678 Prefix function name with `oct_assignop_'. |
|
2679 (UNOPDECL, DEFNCUNOP_METHOD, INSTALL_UNOP, INSTALL_NCUNOP): |
|
2680 Prefix function name with `oct_unop_'. |
|
2681 |
|
2682 * ov-str-mat.cc (default_numeric_conversion_function): |
|
2683 Return 0 if conversion fails. |
|
2684 |
|
2685 * parse.y (make_prefix_op, make_postfix_op): Use |
|
2686 octave_value::unary_op enum. |
|
2687 |
|
2688 * pt-unop.cc (tree_prefix_expression::rvalue): Use new unary_op |
|
2689 functions from octave_value and octave_lvalue classes. |
|
2690 (tree_prefix_expression::rvalue): Likewise. |
|
2691 |
|
2692 * pt-unop.cc (tree_unary_expression::oper): Move here. |
|
2693 (tree_prefix_expression::oper, tree_postfix_expression): From here. |
|
2694 |
|
2695 * pt-unop.h (tree_prefix_expression, tree_postfix_expression): |
|
2696 Delete enums. |
|
2697 (tree_unary_expression): Use octave_value::unary_op enum. |
|
2698 * parse.y (make_prefix_op, make_postfix_op): Likewise. |
|
2699 |
|
2700 * oct-lvalue.h (octave_lvalue::do_unary_op): New function. |
|
2701 (octave_lvalue::increment, octave_lvalue::decrement): Delete. |
|
2702 |
|
2703 * ov-typeinfo.h (octave_value_typeinfo::non_const_unary_ops): |
|
2704 New data member. |
|
2705 * ov-typeinfo.h (octave_value_typeinfo::lookup_non_const_unary_op): |
|
2706 New function. |
|
2707 * ov-typeinfo.cc (octave_value_typeinfo::register_non_const_unary_op): |
|
2708 New function. |
|
2709 (octave_value_typeinfo::do_register_non_const_unary_op): Ditto. |
|
2710 (octave_value_typeinfo::do_lookup_non_const_unary_op): Ditto. |
|
2711 |
|
2712 * ov.cc (octave_value::do_non_const_unary_op): New function. |
|
2713 |
|
2714 * Makefile.in (OP_XSRC): Add op-chm.cc and op-range.cc to the list. |
|
2715 |
|
2716 * OPERATORS/op-str-str.cc: Define string matrix unary operators here. |
|
2717 (install_str_str_ops): Install them here. |
|
2718 * ov-bool-mat.h (octave_bool_matrix::transpose, |
|
2719 octave_bool_matrix_value::hermitian): Delete. |
|
2720 |
|
2721 * OPERATORS/op-chm.cc: New file. Define char matrix unary operators. |
|
2722 (install_chm_ops): Install them here. |
|
2723 * ov-ch-mat.h (octave_char_matrix::transpose, |
|
2724 octave_char_matrix_value::hermitian): Delete. |
|
2725 * ops.cc (install_ops): Call install_chm_ops. |
|
2726 |
|
2727 * OPERATORS/op-bm-bm.cc: Define bool matrix unary operators here. |
|
2728 (install_bm_bm_ops): Install them here. |
|
2729 * ov-bool-mat.h (octave_bool_matrix::transpose, |
|
2730 octave_bool_matrix_value::hermitian): Delete. |
|
2731 |
|
2732 * ov-bool.h (octave_bool::not, octave_bool::uminus, |
|
2733 octave_bool::transpose, octave_bool::hermitian): Delete. |
|
2734 |
|
2735 * OPERATORS/op-cs-cs.cc: Define complex scalar unary operators here. |
|
2736 (install_cs_cs_ops): Install them here. |
|
2737 * ov-complex.h (octave_complex::not, octave_complex::uminus, |
|
2738 octave_complex::transpose, octave_complex::hermitian): Delete. |
|
2739 |
|
2740 * OPERATORS/op-cm-cm.cc: Define complex matrix unary operators here. |
|
2741 (install_cm_cm_ops): Install them here. |
|
2742 * ov-cx-mat.h (octave_complex_matrix::not, |
|
2743 octave_complex_matrix::uminus, octave_complex_matrix::transpose, |
|
2744 octave_complex_matrix::hermitian): Delete. |
|
2745 |
|
2746 * OPERATORS/op-m-m.cc: Define matrix unary operators here. |
|
2747 (install_m_m_ops): Install them here. |
|
2748 * ov-re-mat.h (octave_matrix::not, octave_matrix::uminus, |
|
2749 octave_matrix::transpose, octave_matrix::hermitian): Delete. |
|
2750 |
|
2751 * OPERATORS/op-range.cc: New file. Define range unary operators. |
|
2752 (install_range_ops): Install them here. |
|
2753 * ov-range.h (octave_range::not, octave_range::uminus, |
|
2754 octave_range::transpose, octave_range::hermitian): Delete. |
|
2755 * ops.cc (install_ops): Call install_range_ops. |
|
2756 |
|
2757 * OPERATORS/op-s-s.cc: Define scalar unary operators here. |
|
2758 (install_s_s_ops): Install them here. |
|
2759 * ov-scalar.h (octave_scalar::not, octave_scalar::uminus, |
|
2760 octave_scalar::transpose, octave_scalar::hermitian): Delete. |
|
2761 |
|
2762 * ops.h (INSTALL_UNOP, CAST_UNOP_ARG, UNOPDECL, DEFUNOPX, DEFUNOP, |
|
2763 DEFUNOP_OP, DEFUNOP_FN): New macros. |
|
2764 |
|
2765 * ov.h (unary_op_fcn): New typedef. |
|
2766 (octave_value::unary_op): New enum. |
|
2767 * ov.cc (octave_value::octave_value): New function. |
|
2768 |
|
2769 * ov.h (octave_value::not, octave_value::uminus, |
|
2770 octave_value::transpose, octave_value::hermitian, |
|
2771 octave_value::increment, octave_value::decrement): Delete. |
|
2772 |
|
2773 * ov-base.cc (octave_base_value::not, octave_base_value::uminus, |
|
2774 octave_base_value::transpose, octave_base_value::hermitian, |
|
2775 octave_base_value::increment, octave_base_value::decrement): Delete. |
|
2776 |
|
2777 * ov.cc (gripe_unary_op): New function. |
|
2778 (do_unary_op): New function. |
|
2779 * ov-typeinfo.h (octave_value_typeinfo::unary_ops): |
|
2780 New data member. |
|
2781 * ov-typeinfo.cc (octave_value_info::register_unary_op, |
|
2782 octave_value_info::do_register_unary_op, |
|
2783 octave_value_info::lookup_unary_op, |
|
2784 octave_value_info::do_lookup_unary_op): |
|
2785 New functions. |
|
2786 |
3202
|
2787 * ov-list.cc (Fsplice): Use new octave_value::int_value function here. |
|
2788 (octave_list::do_index_op): Likewise. |
|
2789 (octave_list::assign): Likewise. |
|
2790 * toplev.cc (Fquit): Likewise. |
|
2791 * syscalls.cc (Fwaitpid): Likewise. |
|
2792 (Ffcntl): Likewise. |
|
2793 * file-io.cc (do_fread): Likewise. |
|
2794 (do_fwrite): Likewise. |
|
2795 * data.cc (make_diag): Likewise. |
|
2796 (Fsize): Likewise. |
|
2797 (get_dimensions): Likewise. |
|
2798 (Flinspace): |
|
2799 |
|
2800 * ov-base.cc (octave_base_value::int_value): New function. |
|
2801 (octave_base_value::nint_value): Ditto. |
|
2802 * ov.h (octave_value::int_value): Ditto. |
|
2803 (octave_value::nint_value): Ditto. |
|
2804 |
|
2805 * ov-list.cc (octave_list::assign): Fix off-by-one error. |
|
2806 |
3196
|
2807 Wed Oct 28 11:01:37 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2808 |
3202
|
2809 * load-save.cc (read_mat_ascii_data): Try harder to convert file |
|
2810 name to valid variable name. |
|
2811 |
|
2812 * data.cc (Fisempty, Fis_matrix): New functions. |
|
2813 |
|
2814 * ov-str-mat.h (octave_char_matrix_str::is_matrix_type): New function. |
|
2815 |
3196
|
2816 * OPERATORS/op-list.cc: New file. |
|
2817 * Makefile.in (OP_XSRC): Add it to the list. |
|
2818 |
|
2819 * ov-list.cc (octave_list::assign): New function. |
|
2820 |
|
2821 * ov-typeinfo.h (octave_value_typeinfo::assignany_ops): |
|
2822 New data member. |
|
2823 * ov-typeinfo.cc (octave_value_info::register_assignany_op, |
|
2824 octave_value_info::do_register_assignany_op, |
|
2825 octave_value_info::lookup_assignany_op, |
|
2826 octave_value_info::do_lookup_assignany_op): |
|
2827 New functions. |
|
2828 * ov.cc (octave_value::try_assignment (octave_value::assign_op, |
|
2829 const octave_value_list&, const octave_value&)): If no assignment |
|
2830 operator for particular RHS type exists, try finding one for |
|
2831 generic octave_value as RHS type. |
|
2832 * ops.h (DEFASSIGNANYOP_FN): New macro. |
|
2833 |
|
2834 * ov-list.cc (Fsplice): New function. |
|
2835 * oct-obj.cc (octave_value_list::splice): New function. |
|
2836 |
|
2837 * ov.cc (Vresize_on_range_error): No longer static. |
|
2838 * ov.h (Vresize_on_range_error): Provide extern declaration. |
|
2839 |
|
2840 * oct-procbuf.cc (symbols_of_oct_procbuf): Don't declare static. |
|
2841 |
|
2842 * data.cc (Flength): New function. |
|
2843 * ov.h (octave_value::length): New virtual function. |
|
2844 * ov-base.cc (octave_base_value::length): New function. |
|
2845 (octave_base_value::rows, octave_base_value::columns): Move |
|
2846 definitions here, from ov-base.h. Don't return -1. Instead, |
|
2847 gripe about wrong argument type. |
|
2848 * ov-bool-mat.h (octave_bool_matrix::length): New function. |
|
2849 * ov-bool.h (octave_bool::length): Ditto. |
|
2850 * ov-ch-mat.h (octave_char_matrix::length): Ditto. |
|
2851 * ov-complex.h (octave_complex::length): Ditto. |
|
2852 * ov-cx-mat.h (octave_complex_matrix::length): Ditto. |
|
2853 * ov-list.h (octave_list::length): Ditto. |
|
2854 * ov-range.h (octave_range::length): Ditto. |
|
2855 * ov-re-mat.h (octave_matrix::length): Ditto. |
|
2856 * ov-scalar.h (octave_scalar::length): Ditto. |
|
2857 |
|
2858 Tue Oct 27 22:19:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2859 |
|
2860 * ov-list.cc (octave_list::print_raw): Handle case of empty list. |
|
2861 (octave_list::print_name_tag): Likewise. |
|
2862 |
|
2863 * octave.cc (intern_argv): Built-in variable argv is now a list of |
|
2864 strings instead of a string vector. |
|
2865 Always bind argv, making it an empty list if there are no args. |
|
2866 |
|
2867 Mon Oct 26 08:41:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2868 |
|
2869 * xdiv.cc (mx_leftdiv_conform): Explicitly declare args to be |
|
2870 passed as references to const objects. Fix explicit instantiation |
|
2871 requests to match. |
|
2872 (mx_div_conform): Likewise. |
|
2873 |
|
2874 * pt-unop.h (tree_prefix_expression): Reorder constructor args to |
|
2875 put those with default values last. |
|
2876 (tree_postfix_expression): Likewise. |
|
2877 * parse.y: Change all callers. |
|
2878 |
3192
|
2879 Fri Oct 23 12:07:32 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2880 |
3196
|
2881 * utils.cc (Ffile_in_loadpath): New function. |
|
2882 |
|
2883 * defaults.cc (Vload_path, Vdefault_load_path): Now static. |
|
2884 |
|
2885 * help.cc (simple_help): Use Vload_path_dir_path here instead of |
|
2886 trying to reconstruct it from Vload_path. |
|
2887 * fn-cache.cc (octave_fcn_file_name_cache::do_list): Likewise. |
|
2888 (octave_fcn_file_name_cache::update): Likewise. |
|
2889 |
|
2890 * defaults.cc (octave_loadpath): Construct Vload_path_dir_path |
|
2891 using Vdefault_load_path. |
|
2892 (set_default_path): Likewise. |
|
2893 |
|
2894 * defaults.h, defaults.cc (maybe_add_default_load_path): Delete. |
|
2895 |
3192
|
2896 * defaults.cc (Vdefault_load_path): New static variable. |
|
2897 (set_default_path): Set it. |
|
2898 (maybe_add_default_load_path): Use it. |
|
2899 (symbols_of_defaults): Add DEFCONST for DEFAULT_LOADPATH. |
|
2900 Thanks to Rafael Laboissiere <rafael@icp.inpg.fr>. |
|
2901 |
|
2902 * defaults.cc (set_default_path): If OCTAVE_PATH is set in the |
|
2903 environment, call maybe_add_default_load_path on it. |
|
2904 |
|
2905 Tue Oct 20 20:58:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2906 |
|
2907 * defaults.cc (maybe_add_default_load_path): If LOADPATH contains |
|
2908 an embedded "::", insert the default path there too. |
|
2909 |
3189
|
2910 Fri Oct 16 00:52:15 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2911 |
|
2912 * parse.y (in_matrix_or_assign_lhs): New subroutine for lexical |
|
2913 feedback. |
|
2914 (matrix): Use it. |
|
2915 (assign_lhs): Ditto. |
|
2916 * lex.h (lexical_feedback::looking_at_matrix_or_assign_lhs): New |
|
2917 data member. |
|
2918 * lex.l (handle_identifier): Use it to handle keywords like `cd' |
|
2919 as variables in contexts like [ab, cd] = foo (). |
|
2920 |
|
2921 * ov-str-mat.h |
|
2922 (octave_char_matrix_str::octave_char_matrix_str (char c)): |
|
2923 New constructor. |
|
2924 * ov-ch-mat.h (octave_char_matrix::octave_char_matrix (char c)): |
|
2925 New constructor. |
|
2926 * ov.cc (octave_value::octave_value (char c): New constructor. |
|
2927 |
|
2928 * pt-loop.cc (tree_simple_for_command::eval): Handle case of RHS |
|
2929 as string. |
|
2930 |
|
2931 Thu Oct 15 00:56:47 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2932 |
|
2933 * DLD-FUNCTIONS/rand.cc: Declare Fortran subroutines as returning |
|
2934 int, not int*. |
|
2935 |
|
2936 Wed Oct 14 23:51:31 1998 Georg Thimm <thimm@idiap.ch> |
|
2937 |
|
2938 * load-save.cc (Vcrash_dumps_octave_core): New static variable. |
|
2939 (save_user_variables): Only save variables if |
|
2940 Vcrash_dumps_octave_core is true. |
|
2941 (symbols_of_load_save): Add DEFVAR for it here. |
|
2942 (crash_dumps_octave_core): New function. |
|
2943 * octave.cc (maximum_braindamage): Bind crash_dumps_octave_core to |
|
2944 0.0 here. |
|
2945 |
|
2946 Tue Oct 13 22:05:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2947 |
|
2948 * input.cc (read_readline_init_file): New function. |
|
2949 |
|
2950 Thu Oct 8 13:47:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2951 |
|
2952 * oct-procbuf.h (octave_procbuf::wstatus): New data member. |
|
2953 Initialize in constructors. |
|
2954 (octave_procbuf::wait_status): New member function. |
|
2955 * oct-procbuf.cc (octave_procbuf::sys_close): Use class data |
|
2956 member wstatus, not local variable. |
|
2957 * procstream.cc (procstreambase::close): Don't call sys_close directly. |
|
2958 Get subprocess exit status by calling wait_status for our procbuf. |
|
2959 * pt-plot.cc (close_plot_stream): Send "quit" command to gnuplot |
|
2960 before deleting plot_stream. |
|
2961 |
|
2962 |
|
2963 Thu Oct 1 22:39:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2964 |
|
2965 * data.cc (Fis_complex): New function. |
|
2966 |
3185
|
2967 Fri Sep 25 11:50:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2968 |
|
2969 * load-save.cc (write_header): Rename from write_binary_header. |
|
2970 Also write header for Octave ASCII files. |
|
2971 |
|
2972 * load-save.cc (Fsave): Implement -append option. |
|
2973 |
|
2974 * defaults.cc (Frehash): New function. |
|
2975 |
|
2976 Fri Sep 25 11:50:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2977 |
|
2978 * help.cc (help_from_info): Improve error message in case that |
|
2979 info doesn't work. |
|
2980 |
3180
|
2981 Thu Sep 24 10:48:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2982 |
3185
|
2983 * Makefile.in (DLD_XSRC): Replace qzval.cc with qz.cc |
|
2984 |
|
2985 * DLD-FUNCTIONS/balance.cc: Update from A. S. Hodel |
|
2986 <scotte@eng.auburn.edu>. |
|
2987 |
|
2988 * DLD-FUNCTIONS/qz.cc: New file. |
|
2989 |
|
2990 * DLD-FUNCTIONS/qzval.cc: Delete. |
|
2991 |
3180
|
2992 * parse.y (plot_command1): Don't allow it to be empty. |
|
2993 (plot_command): Handle simple `PLOT' and `PLOT ranges' as special |
|
2994 cases here. |
|
2995 |
|
2996 Wed Sep 23 21:10:08 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2997 |
|
2998 * lex.l: Change <MATRIX>{SNLCMT}*\n{SNLCMT}* pattern |
|
2999 to <MATRIX>{S}*{COMMENT}{SNLCMT}* | <MATRIX>{S}*{NL}{SNLCMT}*. |
|
3000 |
|
3001 Fri Sep 4 10:50:00 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3002 |
|
3003 * file-io.cc (Ffwrite): Fix doc string. |
|
3004 |
|
3005 Wed Sep 2 16:22:23 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3006 |
|
3007 * input.cc (match_sans_spaces): Make it work. |
|
3008 |
|
3009 * toplev.cc (quit): Require nargout == 0. |
|
3010 |
|
3011 * input.cc (get_user_input): Only try matching "exit", "quit", and |
|
3012 "return" if debugging. |
|
3013 |
|
3014 Tue Sep 1 12:50:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3015 |
|
3016 * octave.cc: Use -H as single character equivalent of --no-history. |
|
3017 |
|
3018 Sat Aug 29 12:23:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3019 |
|
3020 * oct-obj.cc (octave_value_list::make_argv): If some values are |
|
3021 string vectors, insert all the elements, not just the first. |
|
3022 |
|
3023 Tue Aug 18 16:39:50 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3024 |
|
3025 * oct-stream.cc (octave_base_stream::do_gets): Accept last line of |
|
3026 file even if it doesn't end in a newline character. |
|
3027 |
|
3028 Tue Aug 18 16:25:49 1998 Mumit Khan <khan@xraylith.wisc.edu> |
|
3029 |
|
3030 * xdiv.cc (mx_leftdiv_conform, mx_div_conform): Instantiate correct |
|
3031 templates. |
|
3032 |
|
3033 Thu Jul 30 00:37:43 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3034 |
|
3035 * pt-loop.cc (tree_for_command::eval): Check for range first. |
|
3036 If error occurs when extracting matrix value, return early. |
|
3037 Don't bother to check for string type. |
|
3038 |
|
3039 * ov-ch-mat.h (octave_char_matrix::is_real_matrix): New function. |
|
3040 |
|
3041 Tue Jun 23 15:09:54 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3042 |
|
3043 * parse.y (clear_current_script_file_name): New function. |
|
3044 (parse_fcn_file): Bind current_script_file_name while script is |
|
3045 executing. Use unwind_protect to clear it once the script is |
|
3046 finished. |
|
3047 |
|
3048 * pt-plot.cc (Fgraw): New function. |
|
3049 |
3178
|
3050 Mon Jun 22 22:13:38 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3051 |
|
3052 * variables.cc (is_valid_function): Provide version that takes |
|
3053 function name as string. |
|
3054 |
|
3055 * parse.y (binary_expr): Fix thinko that resulted in incorrect |
|
3056 evaluation of -x^y. Thanks to Richard Allan Holcombe |
|
3057 <raholcom@unity.ncsu.edu>. |
|
3058 (feval): Don't attempt to copy nonexistent arg names. |
|
3059 |
|
3060 Mon Jun 22 21:35:50 1998 Richard Allan Holcombe <raholcom@unity.ncsu.edu> |
|
3061 |
|
3062 * xpow.cc (xpow): Improve efficiency for matrix^(scalar int) case. |
|
3063 |
|
3064 Thu Jun 4 12:42:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3065 |
|
3066 * ov-usr-fcn.cc (octave_user_function::octave_all_va_args): |
|
3067 If num_args_passed < num_named_args, create zero length list. |
|
3068 |
3176
|
3069 Thu May 14 16:23:15 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3070 |
|
3071 * DLD-FUNCTIONS/getrusage.cc: Include sys/types.h too. |
|
3072 |
|
3073 Mon May 11 00:38:45 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3074 |
|
3075 * pager.cc (Fdiary): Don't forget to set write_to_diary file if |
|
3076 just given a file name. |
|
3077 |
|
3078 * input.cc (octave_gets): Only send new line character to |
|
3079 octave_diary if current_input_line is empty or doesn't already end |
|
3080 with a new line character.. |
|
3081 Don't send input from function files or scripts to octave_diary. |
|
3082 |
3174
|
3083 Sun May 3 19:54:38 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3084 |
|
3085 * lex.l (reset_parser): Also call yyrestart if forced_interactive |
|
3086 is true, but not if input_from_startup_file is true. |
|
3087 |
|
3088 Tue Apr 28 14:06:20 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3089 |
|
3090 * oct-procbuf.cc (Vkluge_procbuf_delay): New static variable. |
|
3091 (kluge_procbuf_delay): New function. |
|
3092 (symbols_of_oct_procbuf): New function. |
|
3093 (octave_procbuf::open): Delay Vkluge_procbuf_delay microseconds |
|
3094 after forking. |
|
3095 |
|
3096 Thu Apr 23 15:41:08 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3097 |
|
3098 * defaults.cc (Vload_path_dir_path): New variable. |
|
3099 * utils.cc (file_in_path): Use it. |
|
3100 |
|
3101 * utils.cc (search_path_for_file): Undo previous change. |
|
3102 (file_in_path): Undo previous change. |
|
3103 * defaults.cc (loadpath): Undo previous change. Tilde expansion |
|
3104 is once again handled correctly by the code in |
|
3105 liboctave/pathsearch.cc. |
|
3106 |
|
3107 Mon Apr 20 21:50:34 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3108 |
|
3109 * data.cc (get_dimensions): Allow zeros ([], 3) to work, for |
|
3110 compatibility with Matlab. |
|
3111 |
|
3112 * dynamic-ld.cc [WITH_DL && ! HAVE_DLFCN_H]: Add declarations for |
|
3113 dlopen, dlerror, dlsym, and dlclose. |
|
3114 |
|
3115 * octave.gperf: Handle __FILE__ and __LINE__. |
|
3116 * lex.l (is_keyword): Likewise. |
|
3117 * Makefile.in (oct-gperf.h): Pass -D option to gperf. |
|
3118 Postprocess output of gperf to convert name of static variable |
|
3119 from lookup to gperf_lookup, to avoid conflict with our function |
|
3120 of the same name defined in variables.cc. |
|
3121 |
3168
|
3122 Sat Apr 18 20:17:10 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3123 |
|
3124 * help.cc (USE_GNU_INFO): Delete uses of this macro. |
|
3125 |
3167
|
3126 Thu Apr 16 01:00:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3127 |
|
3128 * dynamic-ld.cc: Only include dlfcn.h if HAVE_DLFCN_H. |
|
3129 |
3165
|
3130 Wed Apr 15 01:03:05 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3131 |
|
3132 * input.cc (Vlast_prompt_time): New global variable. |
|
3133 (octave_gets): Set it. |
3166
|
3134 * ov-fcn.h (octave_function::time_checked): New virtual function |
|
3135 (octave_function::mark_fcn_file_up_to_date): Ditto. |
3165
|
3136 * ov-usr-fcn.h (octave_user_function::time_checked): New function. |
|
3137 (octave_user_function::mark_fcn_file_up_to_date): Ditto. |
|
3138 (octave_user_function::t_checked): New data member. |
|
3139 * variables.cc (symbol_out_of_date): Only check file time stamp if |
|
3140 a prompt has been printed since the last time check. |
|
3141 |
|
3142 * pt-plot.h, pt-plot.cc (subplot_axes): New class. |
|
3143 (subplot): Handle axes. |
|
3144 (Vgnuplot_command_axes): New static variable. |
|
3145 (gnuplot_command_axes): New function. |
|
3146 (symbols_of_pt_plot): DEFVAR gnuplot_command_axes. |
|
3147 * pt-walk.h (tree_walker::visit_subplot_axes): New virtual function. |
|
3148 * parse.y (plot_options): Handle axes. |
|
3149 * lex.l (plot_axes_token): New function. |
|
3150 (is_keyword): Use it. |
|
3151 (is_plot_keyword): Recognize "axes" and "axis". |
|
3152 * lex.h (class lexical_feedback): New field, in_plot_axes. |
|
3153 (lexical_feedback::init): Reset it. |
|
3154 |
|
3155 Tue Apr 14 23:32:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3156 |
|
3157 * parse.y (parse_fcn_file): New arg, force_script. Change callers. |
|
3158 |
3164
|
3159 Fri Apr 10 11:01:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3160 |
|
3161 * help.cc (type): Also print values of variables. |
|
3162 |
3162
|
3163 Wed Apr 8 01:00:58 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3164 |
3164
|
3165 * pr-output.cc (set_format): Set scale to 1.0 if all elements are |
|
3166 int or inf or nan. |
|
3167 |
3162
|
3168 * parse.y (Vwarn_future_time_stamp): New variable. |
|
3169 (symbols_of_parse): Add DEFVAR for it. |
|
3170 (warn_future_time_stamp): New function. |
|
3171 (frob_function_def): Maybe warn about files with future time stamps. |
|
3172 |
|
3173 Thu Apr 2 20:43:45 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3174 |
|
3175 * pt-arg-list.cc (tree_argument_list::convert_to_const_vector): In |
|
3176 error messages, print element numbers starting with 1, not 0. |
|
3177 |
|
3178 Sat Mar 28 15:25:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3179 |
|
3180 * toplev.cc (clean_up_for_exit): New function. |
|
3181 (clean_up_and_exit): Use it. |
|
3182 * sighandlers.cc (my_friendly_exit): Call it instead of |
|
3183 clean_up_and_exit, then do default action for signal. |
|
3184 |
|
3185 * sighandlers.cc (octave_new_handler): Call my_friendly_exit with |
|
3186 signal set to SIGABRT if it is defined, or -1 otherwise. |
|
3187 |
|
3188 * error.cc (verror): Fix thinko in attempt to skip `error: ' tag |
|
3189 when buffering error messages. |
|
3190 * pt-except.cc (tree_try_catch::eval): Reset buffer_error_messages |
|
3191 here if just discarding unwind_protect frame. |
|
3192 |
|
3193 Wed Mar 18 12:35:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3194 |
|
3195 * xpow.cc (elem_xpow): For real-scalar .^ matrix case, result is |
|
3196 complex only if real-scalar is negative and matrix has some |
|
3197 non-integer values. |
|
3198 |
|
3199 Tue Mar 17 17:47:50 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3200 |
|
3201 * pt-plot.cc (Vgnuplot_command_plot, Vgnuplot_command_replot, |
|
3202 Vgnuplot_command_splot, Vgnuplot_command_using, |
|
3203 Vgnuplot_command_with, Vgnuplot_command_title, |
|
3204 Vgnuplot_command_end): New static variables. |
|
3205 (symbols_of_pt_plot): DEFVAR them. |
|
3206 (gnuplot_command_plot, gnuplot_command_replot, |
|
3207 gnuplot_command_splot, gnuplot_command_using, |
|
3208 gnuplot_command_with, gnuplot_command_title, |
|
3209 gnuplot_command_end): New functions. |
|
3210 (open_plot_stream, send_to_plot_stream, tree_plot_command::eval, |
|
3211 subplot_using::print, subplot_style::print, subplot::print, |
|
3212 do_external_plotter_cd, Fgset, Fgshow): Use them instead of the |
|
3213 GPLOT_CMD_PLOT, GPLOT_CMD_REPLOT, GPLOT_CMD_SPLOT, |
|
3214 GPLOT_CMD_USING, GPLOT_CMD_WITH, GPLOT_CMD_TITLE, and |
|
3215 GPLOT_CMD_END macros. |
|
3216 |
3160
|
3217 Fri Feb 27 12:25:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3218 |
|
3219 * help.cc (additional_help_message): Fix www address. |
|
3220 |
|
3221 Tue Feb 24 00:42:59 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3222 |
|
3223 * help.cc (simple_help): Put additional help message first. |
|
3224 (additional_help_message): Add information about web site and |
|
3225 mailing list. |
|
3226 |
3156
|
3227 Fri Feb 20 00:41:06 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3228 |
|
3229 * pt-plot.cc (GPLOT_CMD_REPLOT): Clear before replot. |
|
3230 |
|
3231 * Makefile.in: Better handling of lib flags for linking. |
|
3232 |
|
3233 Thu Feb 19 21:14:30 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3234 |
|
3235 * pt-decl.cc (Vinitialize_global_values): New static variable. |
|
3236 (initialize_global_variables): New function. |
|
3237 (symbols_of_pt_decl): New function. |
|
3238 DEFVAR Vinitialize_global_values and initialize_global_variables. |
|
3239 (tree_global_command::do_init): If initialize_global_variables is |
|
3240 not true and the variable doesn't have an explicit initializer, don't |
|
3241 initialize it. If we are giving it a default value, use the value |
|
3242 of the variable defualt_global_variable_value. |
|
3243 * octave.cc (maximum_braindamage): Set default_global_variable_value |
|
3244 and initialize_global_variables to Matlab-compatible values. |
|
3245 |
|
3246 Wed Feb 18 04:35:31 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3247 |
|
3248 * DLD-FUNCTIONS/besselj.cc: Rename from bessel.cc. |
|
3249 * Makefile.in (DLD_XSRC): Likewise. |
|
3250 |
|
3251 * syscalls.cc (Fvfork): Delete. |
|
3252 |
|
3253 * oct-procbuf.cc: Just use fork. |
|
3254 |
|
3255 * parse.y (feval): Provide version that takes function name |
|
3256 separate from other args. |
|
3257 * parse.h: Declare it. |
|
3258 |
|
3259 * oct-procbuf.cc (octave_procbuf::open): Move declaration of |
|
3260 child_std_end outside of child scope and declare volatile. |
|
3261 |
|
3262 Mon Feb 16 15:04:28 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3263 |
|
3264 * parse.y: Include cstdio, for SEEK_SET. |
|
3265 |
3153
|
3266 Thu Feb 12 22:07:00 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3267 |
|
3268 * system.c: New file. |
|
3269 * Makefile.in (SOURCES): Add it to the list. |
|
3270 |
3148
|
3271 Fri Feb 6 01:23:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3272 |
|
3273 * oct-stream.cc (octave_base_stream::file_number): Rename from fileno. |
|
3274 Change all uses. |
|
3275 |
|
3276 * fsolve.cc (fsolve_option_table): Add missing & to function names. |
|
3277 |
3145
|
3278 Thu Feb 5 02:27:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3279 |
3147
|
3280 * dirfns.cc (Fls): If first attempt at reading process output |
|
3281 fails, sleep once and try again. |
|
3282 * toplev.cc (run_command_and_return_output): Likewise. |
|
3283 |
|
3284 * oct-procbuf.cc (octave_procbuf::open): Use vfork if it is available. |
|
3285 |
|
3286 * syscalls.cc (Fvfork): New function. |
|
3287 |
3145
|
3288 * ov-bool-mat.cc: Only declare assign function if |
|
3289 CXX_NEW_FRIEND_TEMPLATE_DECL is not defined. |
|
3290 |
|
3291 * ov-base.h, ov-bool-mat.h, ov-bool.h, ov-ch-mat.h, ov-complex.h, |
|
3292 ov-cx-mat.h, ov-range.h, ov-re-mat.h, ov-scalar.h: Handle default |
|
3293 args for *_value functions consistently. |
|
3294 |
|
3295 * symtab.cc (maybe_list_cmp_fcn): Declare args as void*, not |
|
3296 void**, then use X_CAST. |
|
3297 |
|
3298 * OPERATORS/op-s-cm.cc: Include mx-cm-s.h. |
|
3299 |
|
3300 * defun-int.h: Include ov-builtin.h, ov-mapper.h, and symtab.h. |
|
3301 (install_builtin_mapper, install_builtin_function, |
|
3302 install_builtin_variable) Use specific types rather than void * in |
|
3303 declaration. |
|
3304 * defun.cc (install_builtin_mapper, install_builtin_function, |
|
3305 install_builtin_variable): Likewise. Eliminate casts. |
|
3306 |
|
3307 * load-save.cc (read_binary_data, read_mat_file_header, |
|
3308 save_binary_data): Use X_CAST, not static_cast. |
|
3309 * unwind-prot.h (unwind_protect::save_ptr): Likewise. |
|
3310 * Map.cc (goodCHptr, index_to_CHptr, CHptr_to_index): Likewise. |
|
3311 * dynamic-ld.cc (octave_dlopen_dynamic_loder::resolve_reference): |
|
3312 Likewise. |
|
3313 |
|
3314 * pt-mat.cc (tm_const::operator bool ()): |
|
3315 (tm_row_const::operator bool ()): Likewise. |
|
3316 * oct-stream.cc (printf_value_cache::operator bool ()): Likewise. |
|
3317 (scanf_format_list::operator bool ()): Likewise. |
|
3318 (printf_format_list::operator bool ()): Likewise. |
|
3319 (octave_stream::operator bool ()): Likewise. |
|
3320 |
|
3321 Wed Feb 4 13:08:29 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3322 |
|
3323 * DLD-FUNCTIONS/minmax.cc: Include cmath, not oct-math.h. |
|
3324 |
|
3325 * syscalls.cc (Fdup2): Convert stream to actual system file id. |
|
3326 |
|
3327 * oct-stream.cc (octave_base_stream::fileno, octave_stream::fileno): |
|
3328 New functions. |
|
3329 |
3141
|
3330 Tue Feb 3 00:24:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3331 |
|
3332 * defaults.cc (exec_path): Append Vbin_dir to std_path. |
|
3333 |
|
3334 * octave.cc (initialize_pathsearch): Set TEXMFDBS, not TEXMF. |
|
3335 Look for OCTAVE_DB_PATH in environment. |
|
3336 Simplify using Vdata_dir and Vlibexec_dir. |
|
3337 |
|
3338 * defaults.h.in (Vdata_dir, Vlibexecdir): Declare new vars. |
|
3339 defaults.cc: Define them. |
|
3340 (set_default_data_dir, set_default_libexecdir): New functions. |
|
3341 (install_defaults): Call them. |
|
3342 |
|
3343 * defaults.h.in (OCTAVE_LIBEXECDIR): Define. |
|
3344 |
|
3345 Mon Feb 2 02:43:16 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3346 |
|
3347 * Makefile.in (install, uninstall): Use $(octlibdir), not $(libdir). |
|
3348 Use mk-libdir-link. |
|
3349 |
|
3350 * defaults.h.in (OCTAVE_OCTLIBDIR): Substitute value. |
|
3351 (Vlib_dir): Delete declaration. |
|
3352 * defaults.cc (Vlib_dir): Delete. |
|
3353 (set_default_lib_dir): Delete. |
|
3354 (install_defaults): Don't call set_default_lib_dir. |
|
3355 (set_default_info_prog): If oct_info_prog is empty, set default to |
|
3356 "info" -- we expect it to be somewhere in the user's path. |
|
3357 |
|
3358 * defun.h (DEFCONST, DEFCONSTX): Eliminate inst_as_fcn and chg_fcn |
|
3359 args. Always pass true for inst_as_fcn and 0 for chg_fcn to |
|
3360 DEFVAR when creating built-in values like `e' or `stderr' that can |
|
3361 be redefined. Change all uses. |
|
3362 |
|
3363 * help.cc (Ftype): Handle script files too. |
|
3364 (Fwhich): Likewise. |
|
3365 |
3136
|
3366 Sat Jan 31 00:00:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3367 |
|
3368 * ov-ch-mat.cc (octave_char_matrix::is_true): Make it work. |
|
3369 * ov-str-mat.h, ov-str-mat.cc (octave_char_matrix_str::is_true): |
|
3370 Delete. |
|
3371 |
|
3372 * load-save.cc (read_ascii_data): Allow strings of length 0. |
|
3373 If we don't find data on the first call, fail with error message. |
|
3374 (do_load): Pass count of items read to read_ascii_data. |
|
3375 Allow `load foo xyz' to work when foo contains only numbers. |
|
3376 |
|
3377 Fri Jan 30 23:46:42 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3378 |
|
3379 * ov-str-mat.h (octave_char_matrix_str::all): Delete. |
|
3380 (octave_char_matrix_str::any): Delete. |
|
3381 * ov-ch-mat.h (octave_char_matrix::all, octave_char_matrix::any): |
|
3382 Call charMatrix::all, charMatrix::any. |
|
3383 |
|
3384 Thu Jan 29 16:25:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3385 |
|
3386 * load-save.cc (read_mat_binary_data): Handle third digit of MOPT |
|
3387 as flag indicating row or column major ordering. |
|
3388 |
3131
|
3389 Wed Jan 28 00:18:17 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3390 |
|
3391 * DLD-FUNCTIONS/dassl.cc (lsode_option_table): |
|
3392 Add missing & to function names. |
|
3393 * DLD-FUNCTIONS/lsode.cc (lsode_option_table): Likewise. |
|
3394 * DLD-FUNCTIONS/quad.cc (quad_option_table): Likewise. |
|
3395 |
|
3396 * Makefile.in (oct-gperf.h): Add -G option to gperf. |
|
3397 |
|
3398 * load-save.cc (get_save_type): Add `UL' and `L' suffixes to large |
|
3399 constant values. For LS_INT, use <= and >= for comparison. |
|
3400 |
|
3401 Mon Jan 26 13:17:59 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3402 |
|
3403 * ov-usr-fcn.cc (Vmax_recursion_depth): New static variable. |
|
3404 (max_recursion_depth): New fucnction |
|
3405 (symbols_of_ov_usr_fcn): DEFVAR max_recursion_depth. |
|
3406 (octave_user_function::do_index_op): Check Vmax_recursion_depth. |
|
3407 |
3130
|
3408 Thu Jan 22 13:45:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3409 |
|
3410 * dynamic-ld.cc (make_dynamic_loader): Fix typo. |
|
3411 |
|
3412 Tue Jan 20 17:02:19 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3413 |
|
3414 * variables.cc (Fexist): If local symbol is undefined, check |
|
3415 global table. |
|
3416 |
|
3417 * pr-output.cc (pr_max_internal): Initial value for result is |
|
3418 -DBL_MAX, not DBL_MIN. |
|
3419 |
3125
|
3420 Thu Jan 8 11:54:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3421 |
|
3422 * xpow.cc (elem_xpow): If second arg of pow is complex, make sure |
|
3423 first arg is also complex. |
|
3424 |
|
3425 * symtab.cc (symbol_table::rename): Properly insert new item at |
|
3426 the front of the list to avoid losing the rest of the items. |
|
3427 |
|
3428 Thu Dec 11 23:30:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3429 |
|
3430 * variables.cc (Fclear): Increment index to skip -x arg. |
|
3431 |
3124
|
3432 Tue Dec 9 02:45:35 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3433 |
|
3434 * Makefile.in (INCLUDES): Don't forget Pix.h. |
|
3435 |
|
3436 * BaseSLList.cc: Don't include nonstandard libg++ header files. |
|
3437 |
3119
|
3438 Sun Nov 30 14:58:56 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3439 |
3124
|
3440 * pr-output.cc: Include cmath, not oct-math. |
|
3441 * sysdep.cc: Likewise. |
|
3442 |
3119
|
3443 * DLD-FUNCTIONS/bessel.cc: New file. |
|
3444 * Makefile.in (DLD_XSRC): Add it to the list. |
|
3445 |
3113
|
3446 Thu Nov 27 23:28:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3447 |
|
3448 * lex.l (handle_string): Constructor for string class takes |
|
3449 (size_t, char) args, not (char, size_t). |
|
3450 |
3111
|
3451 Wed Nov 26 00:39:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3452 |
|
3453 * Makefile.in (OCTAVE_LIBS): Include $(SPECIAL_MATH_LIB) just |
|
3454 ahead of -lcruft. |
|
3455 |
3110
|
3456 Thu Nov 20 15:16:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3457 |
|
3458 * octave.cc (maximum_braindamage): Bind implicit_num_to_str_ok to 1. |
|
3459 * pt-mat.cc (Vimplicit_num_to_str_ok): New static variable. |
|
3460 (implicit_num_to_str_ok): New function. |
|
3461 (symbols_of_pt_mat): DEFVAR implicit_num_to_str_ok. |
|
3462 (tm_row_const::some_str): New data member. |
|
3463 (tm_row_const::some_strings_p): New function. |
|
3464 (tm_row_const::init): Set some_str. |
|
3465 (tm_const::some_str): New data member. |
|
3466 (tm_const::some_strings_p): New function. |
|
3467 (tm_const::init): Set some_str. |
|
3468 (tree_matrix::eval): If Vimplicit_num_to_str_ok is true and some |
|
3469 of the elements are strings, force a string conversion before |
|
3470 returning. |
|
3471 |
|
3472 * parse.y (fold, finish_colon_expression, finish_matrix): |
|
3473 If an error occurs, return the original expression. |
|
3474 Use unwind_protect to restore error_state. |
|
3475 |
|
3476 * ov-ch-mat.h (octave_char_matrix::convert_to_str): Result is |
|
3477 char_matrix_str, not just char_matrix. |
|
3478 |
3107
|
3479 Wed Nov 19 02:05:40 1997 Mumit Khan <khan@dhaka.xraylith.wisc.edu> |
|
3480 |
|
3481 * DLD-FUNCTIONS/filter.cc: Don't include extern template decls if |
3109
|
3482 CXX_NEW_FRIEND_TEMPLATE_DECL is defined. |
3107
|
3483 * ov-cx-mat.cc: Likewise. |
|
3484 * ov-re-mat.cc: Likewise. |
|
3485 * ov-str-mat.cc: Likewise. |
|
3486 |
|
3487 * ov-cx-mat.h (octave_complex_matrix::decrement, |
|
3488 octave_complex_matrix): Use explicit Complex constructor. |
|
3489 |
|
3490 Wed Nov 19 00:08:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3491 |
|
3492 * pt-decl.cc (tree_global_command::do_init): Initialize global |
|
3493 values to `[]'. Only perform explicit initialization once. |
|
3494 |
3103
|
3495 Tue Nov 18 04:27:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3496 |
3105
|
3497 * pr-output.cc (Vfixed_point_format): New variable. |
|
3498 (fixed_point_format): New fucntion. |
|
3499 (symbols_of_pr_output): Add DEFVAR for fixed_point_format. |
|
3500 (set_real_matrix_format): Handle fixed point format |
|
3501 (set_complex_matrix_format): Handle fixed point format |
|
3502 (set_format): New arg, scale in Matrix, ComplexMatrix, Range versions. |
|
3503 (pr_scale_header): New function. |
|
3504 (octave_print_internal): Handle fixed point format in Matrix, |
|
3505 ComplexMatrix, and Range versions. |
|
3506 * octave.cc (maximum_braindamage): Set fixed_point_format to 1.0. |
|
3507 |
3103
|
3508 * utils.cc (do_string_escapes): Move here, from lex.l. |
|
3509 Arg is now const string& instead of char*. |
|
3510 Return new string object instead of modifying arg in place. |
|
3511 (Fdo_string_escapes): New function. |
|
3512 * lex.l (handle_string): Use new version of do_string_escapes. |
3105
|
3513 |
|
3514 * lex.l (Vbackslash_escapes): Delete. |
|
3515 (backslash_escapes): Delete. |
|
3516 (do_string_escapes): Undo previous change. |
|
3517 (eat_whitespace, eat_continuation): Undo previous change. |
|
3518 (handle_string): Undo previous change. |
|
3519 (symbols_of_lex): Undo previous change. |
|
3520 * octave.cc (maximum_braindamage): Undo previous change. |
3103
|
3521 |
3096
|
3522 Fri Nov 14 01:53:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3523 |
3100
|
3524 * parse.y (eval_string (const string&, bool, int&, int)): No |
|
3525 longer static. |
|
3526 * parse.h: Provide declaration. |
|
3527 * input.cc (get_user_input (const octave_value_list&, bool, int)): |
|
3528 New arg, nargout. Pass it to eval_string. |
|
3529 (keyboard): Pass nargout = 0 to get_user_input. |
|
3530 (input): Pass nargout to get_user_input. |
|
3531 |
3098
|
3532 * input.cc (get_user_input (const octave_value_list&, bool)): |
3100
|
3533 Return octave_value_list() if user enters `quit', `exit', or `return'. |
3098
|
3534 If debugging, let eval_string handle the printing chores and |
|
3535 reset error_state before asking for more input. |
|
3536 |
|
3537 * input.cc (Fkeyboard): Unconditionally turn on history here. |
|
3538 |
3096
|
3539 * lex.l (have_continuation, have_ellipsis_continuation): Declare |
|
3540 arg as bool, not int. Change callers. |
|
3541 |
|
3542 * lex.l (Vbackslash_escapes): New static variable. |
|
3543 (backslash_escapes): New function. |
|
3544 (do_string_escapes): Return immediately if ! Vbackslash_escapes. |
|
3545 (eat_whitespace, eat_continuation): Only call have_continuation if |
|
3546 Vbackslash_escapes. |
|
3547 (handle_string): Backslash is only special if Vbackslash_escapes. |
|
3548 (symbols_of_lex): Add DEFVAR for backslash_escapes. |
|
3549 * octave.cc (maximum_braindamage): Set backslash_escapes to 0. |
|
3550 |
3095
|
3551 Thu Nov 13 16:20:40 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3552 |
3096
|
3553 * variables.cc (Fexist): Also return 2 if NAME is a regular file |
|
3554 somewhere in the LOADPATH. |
|
3555 |
3095
|
3556 * data.cc (sumsq): Fix doc string. |
|
3557 |
|
3558 * parse.y (Fsource): Call parse_fcn_file, not parse_and_execute. |
|
3559 |
3092
|
3560 Tue Oct 7 16:51:01 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3561 |
|
3562 * defun-int.h (DEFINE_FUN_INSTALLER_FUN): Set installed to true |
|
3563 after installing the function. |
|
3564 |
3088
|
3565 Thu Sep 25 10:17:26 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3566 |
|
3567 * DLD-FUNCTIONS/filter.cc (Ffilter): Return second output value |
|
3568 even when called with only 3 arguments. |
|
3569 |
3086
|
3570 Mon Sep 22 16:44:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3571 |
|
3572 * DLD-FUNCTIONS/rand.cc (do_rand): Print error if first of two |
|
3573 args is a string but doesn't match "seed". |
3088
|
3574 (Frand, Frandn): Fix doc string. |
3086
|
3575 |
3081
|
3576 Mon Aug 25 10:42:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3577 |
|
3578 * input.cc (get_user_input): Return an empty string if the user |
|
3579 just types RET. |
|
3580 |
3079
|
3581 Thu Jul 31 22:59:04 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3582 |
|
3583 * lex.l <TEXT_FCN>: Ensure that we handle words that begin with |
|
3584 single or double quotes as strings. |
|
3585 |
3074
|
3586 Thu Jul 17 13:06:48 1997 Klaus Gebhardt <gebhardt@crunch.ikp.physik.th-darmstadt.de> |
|
3587 |
|
3588 * DLD-FUNCTIONS/rand.cc (Frand): Use F77_XFCN to call getsd, |
|
3589 setsd, setall, setcgn, dgenunf, and dgennor since they can call |
|
3590 XSTOPX. |
|
3591 |
3072
|
3592 Mon Jul 14 12:54:23 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3593 |
|
3594 * dynamic-ld.cc (octave_dynamic_loader::load_fcn_from_dot_oct_file): |
|
3595 If first attempt to load function fails, prepend and underscore |
|
3596 and try again. |
|
3597 |
|
3598 * Makefile.in (install-inc): If defaults.h, oct-conf.h, or |
|
3599 oct-gperf.h don't exist in the current directory, look in $(srcdir). |
|
3600 |
3068
|
3601 Mon Jul 7 21:14:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3602 |
|
3603 * DLD-FUNCTIONS/qr.cc (Fqr): Correctly handle nargout == 0. |
|
3604 |
3067
|
3605 Wed Jul 2 16:47:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3606 |
|
3607 * matherr.c: New file. Move matherr function here. |
|
3608 * sysdep.cc: From here. |
|
3609 * Makefile.in (DIST_SRC): Add matherr.c to the list. |
|
3610 |
|
3611 * error.cc (handle_message): Avoid bug in g++ snapshot. |
|
3612 |
3065
|
3613 Thu Jun 26 22:04:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3614 |
|
3615 * utils.cc (file_in_path): Add default load path to PATH arg if |
|
3616 it begins or ends with a colon. |
|
3617 |
3060
|
3618 Wed Jun 25 13:31:06 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3619 |
|
3620 * oct-lvalue.h (octave_lvalue::struct_elt_ref): Ensure val is unique. |
|
3621 |
|
3622 Fri Jun 20 12:33:35 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3623 |
|
3624 * toplev.cc (cmd_death_handler): New function. |
|
3625 (run_command_and_return_output): Insert pid of command in |
|
3626 octave_child_list along with pointer to cmd_death_handler so we |
|
3627 can get the exit status without having to block SIGCHLD. |
|
3628 (cleanup_iprocstream): Remove pid of command from octave_child_list. |
|
3629 |
3053
|
3630 Sun Jun 15 16:11:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3631 |
3054
|
3632 * OPERATORS/op-cs-s.cc (ldiv): Doh, v1 is complex, v2 is real. |
|
3633 |
3053
|
3634 * Makefile.in (DISTFILES): Add mkops to the list. |
|
3635 (dist): Correctly link files in DLD-FUNCTIONS, OPERATORS, and |
|
3636 TEMPLATE-INST subdirectories. |
|
3637 |
3040
|
3638 Fri Jun 6 04:30:57 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3639 |
3042
|
3640 * DLD-FUNCTIONS/npsol.cc, DLD-FUNCTIONS/qpsol.cc, |
|
3641 DLD-FUNCTIONS/fsqp.cc: Delete. |
|
3642 * Makefile.in (DLD_XSRC): Remove them from the list. |
|
3643 |
3040
|
3644 * utils.cc (search_path_for_file): New arg, do_tilde_expansion. |
|
3645 If TRUE, perform tilde expansion on path before searching. |
|
3646 (file_in_path): Call search_path_for_file with do_tilde_expansion |
|
3647 set to false, since we've already performed tilde expansion on the |
|
3648 load path. |
|
3649 |
|
3650 * defaults.cc (loadpath): Perform tilde expansion here. |
|
3651 |
3029
|
3652 Thu Jun 5 01:42:39 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3653 |
3034
|
3654 * Makefile.in: Make building of static library optional. |
3036
|
3655 (liboctave.$(SHLEXT_VER)): Add $(SONAME_FLAGS) to command. |
3034
|
3656 |
3033
|
3657 * dynamic-ld.cc (octave_shl_load_dynamic_loader::resolve_reference): |
|
3658 Call shl_findsym with type set to TYPE_UNDEFINED. |
|
3659 |
3029
|
3660 * Makefile.in (stamp-picdir): Delete. |
|
3661 (pic): New target. Don't worry so much about creating pic |
|
3662 directory only when it is really needed. |
|
3663 (stamp-interp): Delete. |
|
3664 (libraries): New target. Depend on shared library directly. |
|
3665 |
3024
|
3666 Wed Jun 4 00:09:42 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3667 |
|
3668 * octave.cc (main): Call dir_path::set_program_name here. |
|
3669 |
3021
|
3670 Tue Jun 3 16:47:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3671 |
3022
|
3672 * variables.cc (symbol_out_of_date): Make it work again. |
|
3673 |
3021
|
3674 * parse.y (parse_and_execute): Move here from toplev.cc |
|
3675 (default_eval_print_flag): Likewise. |
|
3676 (safe_fclose): Likewise. |
|
3677 (eval_string): Likewise. |
|
3678 (Fsource): Likewise. |
|
3679 (Ffeval): Likewise. |
|
3680 (feval): Likewise. |
|
3681 (Feval): Likewise. |
|
3682 (symbols_of_parse): Define default_eval_print_flag here instead of |
|
3683 in varaibles.cc. |
|
3684 (looks_like_octave_copyright): Move here from variables.cc |
|
3685 (gobble_leading_whitespace): Likeiwse. |
|
3686 (is_function_file): Likewise. |
|
3687 (restore_input_stream): Likewise. |
|
3688 (parse_fcn_file): Likewise. |
|
3689 (load_fcn_from_file): Likewise. |
|
3690 (get_help_from_file): Likewise. |
|
3691 |
|
3692 * toplev.cc (syms_of_toplev): Define argv, program_name, and |
|
3693 program_invocation_name here instead of in variables.cc. |
|
3694 |
|
3695 * parse.h (line_editing): Move here from toplev.h. Now bool, not int. |
|
3696 (reading_startup_message_printed) Likewise. |
|
3697 (input_from_startup_file): Likewise. |
|
3698 (input_from_command_line_file): Likewise. |
|
3699 |
|
3700 * load-save.cc: Use bool instead of int where appropriate. |
|
3701 |
|
3702 * input.h (enum echo_state): Move here from variables.h. |
|
3703 (Vecho_executing_commands): Likewise. Now bool, not int. |
|
3704 * input.cc (echo_executing_commands): Move here from variables.cc. |
|
3705 (symbols_of_input): Define echo_executing_commands here instead of |
|
3706 in variables.cc. |
|
3707 |
|
3708 * octave.cc (program_invocation_name): Don't define. |
|
3709 (intern_argv): Don't set program_invocation_name here. |
|
3710 (main): Call octave_env::set_program_name here, not in intern_argv. |
|
3711 |
|
3712 * toplev.cc (quitting_gracefully): Move here from octave.h and |
|
3713 make static bool instead of extern int. |
|
3714 |
|
3715 * error.cc (bind_global_error_variable, clear_global_error_variable): |
|
3716 Move here from variables.cc. |
|
3717 (symbols_of_error): Define error_text here instead of in variables.cc. |
|
3718 |
|
3719 * pager.cc (write_to_diary_file): Now bool, not int. |
|
3720 (really_flush_to_pager): Likewise. |
|
3721 (flushing_to_pager): Likewise. |
|
3722 * sighandlers.h (can_interrupt): Likewise. |
|
3723 * error.h (buffer_error_messages): Likewise. |
|
3724 * oct-hist.h (input_from_tmp_history_file, Vsaving_history): Likewise. |
|
3725 * input.h (forced_interactive): Likewise. |
|
3726 (get_input_from_eval_string): Likeiwse. |
|
3727 (reading_script_file): Likeiwse. |
|
3728 (reading_fcn_file): Likeiwse. |
|
3729 (interactive): Likewise. |
|
3730 |
|
3731 * unwind-prot.cc (saved_variable::saved_variable (bool *, bool)): |
|
3732 Set type_tag to boolean, not int. |
|
3733 |
3016
|
3734 Mon Jun 2 00:40:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3735 |
|
3736 * variables.h (Octave_builtin_fcn): Delete typedef. |
|
3737 |
|
3738 * help.cc (make_name_list): Move here from variables.cc. |
|
3739 (keyword_help, names): Now static. |
|
3740 (struct help_list): Move declaration here from help.h. |
|
3741 |
|
3742 * oct-hist.cc (Vhistory_file, Vhistory_size, Vsaving_history): |
|
3743 Move here from variables.cc. |
|
3744 (symbols_of_oct_hist): New function. |
|
3745 |
|
3746 * version.h: Protect against multiple inclusion. |
|
3747 |
|
3748 * defun.cc (check_version): New function. |
|
3749 * defun-int.h (DEFINE_FUN_INSTALLER_FUN): Use it. |
|
3750 |
|
3751 * help.h, help.cc (additional_help_message): Now extern. |
|
3752 (operator_help): Now static. |
|
3753 |
|
3754 * defun.cc (print_usage): Move here from help.cc |
|
3755 * DLD-FUNCTIONS/*.cc, data.cc, dirfns.cc, file-io.cc, input.cc, |
|
3756 load-save.cc, octave.cc, ov-list.cc, ov-typeinfo.cc, |
|
3757 ov-usr-fcn.cc, pager.cc, pr-output.cc, pt-plot.cc, strfns.cc, |
|
3758 syscalls.cc, sysdep.cc, utils.cc, toplev.cc: |
|
3759 Don't include help.h. |
|
3760 |
|
3761 * TEMPLATE-INST/Array-sym.cc: New file. |
|
3762 |
|
3763 * load-save.cc (do_load): Don't use ostream::form. |
|
3764 * pr-output.cc: Likewise, at least where it is easy to do so. |
|
3765 * oct-stream.cc: Ditto. |
|
3766 |
|
3767 * symtab.h (symbol_record::symbol_def::rows): New function. |
|
3768 (symbol_record::symbol_def::columns): Ditto. |
|
3769 (symbol_record::symbol_def::type_name): Ditto. |
|
3770 (symbol_record::rows): Ditto |
|
3771 (symbol_record::columns): Ditto |
|
3772 (symbol_record::type_name): Ditto |
|
3773 |
|
3774 * symtab.h, symtab.cc (symbol_record::hides_fcn): New function. |
|
3775 (symbol_record::hides_builtin): Ditto. |
|
3776 (symbol_record::print_symbol_info_line): Ditto. |
|
3777 (symbol_table::long_list): Delete. |
|
3778 (symbol_table::symbol_list): New function. |
|
3779 (symbol_table::maybe_list): Delete argc arg. |
|
3780 (symbol_table::name_list): Rename from symbol_table::list. |
|
3781 Change all callers. |
|
3782 |
|
3783 * symtab.h, symtab.cc (class symbol_record_info): Delete. |
|
3784 |
|
3785 * symtab.cc (matches_patterns): Use vector form of glob_match. |
|
3786 |
|
3787 Sun Jun 1 14:04:26 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3788 |
|
3789 * pt-check.h, pt-check.cc: New files, for semantic checking of |
|
3790 parse trees. |
|
3791 |
|
3792 * symtab.h (class symbol_def): Now nested in symbol_record class. |
|
3793 (enum TYPE): Move from symbol_def to symbol record class. Change |
|
3794 all uses. |
|
3795 |
|
3796 * symtab.h, symtab.cc (symbol_table::maybe_list): New function, |
|
3797 from variables.cc. Change all uses. |
|
3798 |
|
3799 * pt-idx.h (tree_identifier::lvalue_ok): New function. |
|
3800 * pt-id.h (tree_index_expression::lvalue_ok): Likewise. |
|
3801 * pt-indir.h (tree_indirect_ref::lvalue_ok): Likewise. |
|
3802 |
|
3803 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_oct_obj): Delete. |
|
3804 * pt-walk.h (tree_walker::visit_oct_obj): Delete declaration. |
|
3805 |
|
3806 * lex.h (class lexical_feedback): Delete maybe_screwed_again. |
|
3807 * lex.l (lexical_feedback::init): Don't set it. |
|
3808 |
|
3809 Fri May 30 16:07:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3810 |
|
3811 * mappers.cc: Include <cfloat> here. |
|
3812 |
|
3813 Tue May 27 10:08:43 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3814 |
|
3815 * toplev.cc (eval_string): Don't index tmp if it is empty. |
|
3816 |
|
3817 Sat May 24 00:18:41 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3818 |
|
3819 * load-save.cc (valid_identifier): Move here and make static. |
|
3820 * symtab.h, symtab.cc (valid_identifier): Delete declaration and |
|
3821 definition. |
|
3822 |
|
3823 Fri May 23 22:54:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3824 |
|
3825 * symtab.h (symbol_def::symbol_def): Use initializer list instead |
|
3826 of calling init_state. |
|
3827 (symbol_def::init_state): Delete. |
|
3828 |
|
3829 * symtab.cc (symbol_table::print_stats): New function. |
|
3830 * variables.cc (F__dump_symtab_info__): New function. |
|
3831 |
|
3832 * symtab.h, symtab.cc (symbol_table::hash): Return masked value. |
|
3833 (symbol_table::table_size): New data member. |
|
3834 (symbol_table::symbol_table): Set size of table in constructor. |
|
3835 (HASH_TABLE_SIZE): Replace uses with table_size. |
|
3836 (HASH_MASK): Delete. |
|
3837 * variables.cc (initialize_symbol_tables): Set top-level and |
|
3838 global symbol table sizes here. |
|
3839 |
2994
|
3840 Thu May 22 13:32:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3841 |
|
3842 * dynamic-ld.cc (octave_shl_load_dynamic_loader::resolve_reference): |
|
3843 Call shl_findsym with type set to TYPE_PROCEDURE. Pass the |
|
3844 address of the pointer we want to define. |
|
3845 |
2993
|
3846 Wed May 21 16:30:25 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3847 |
|
3848 * DLD-FUNCTIONS/time.cc (extract_tm): Avoid memory leak in dealing |
|
3849 with time zone. |
|
3850 |
|
3851 * Makefile.in (install-in): Use new mk-includedir-link macro. |
|
3852 (install-lib): Install in $octlibdir. Use new mk-libdir-link macro. |
|
3853 |
|
3854 Tue May 20 01:24:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3855 |
|
3856 * ov-list.cc (Flist): Rename from Fmake_list. |
|
3857 |
|
3858 Mon May 19 14:45:58 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3859 |
|
3860 * octave.cc (maximum_braindamage): Set default_eval_print_flag to 0. |
|
3861 |
|
3862 Sat May 17 16:32:23 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3863 |
|
3864 * defaults.cc (set_default_editor): Default is now Emacs, not vi. |
|
3865 |
2984
|
3866 Fri May 16 00:07:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3867 |
2991
|
3868 * pt-idx.cc (tree_index_expression::name): New function. |
|
3869 |
|
3870 * pt.cc (tree::str_print_code): New file, new convenience function. |
|
3871 * pt-arg-list.cc (tree_argument_list::get_arg_names): Use it. |
|
3872 * pt-assign.cc (tree_simple_assignment::rvalue): Likewise. |
|
3873 (tree_multi_assignment::rvalue): Likewise. |
|
3874 |
2990
|
3875 * pt-colon.h (tree_colon_expression::save_base): New data memmber. |
|
3876 (tree_colon_expression::preserve_base): New function. |
|
3877 * parse.y (finish_colon_expression): When converting to a simple |
|
3878 expression, be sure to delete the original colon expression but |
|
3879 not the base value. |
|
3880 |
|
3881 * pt-mat.cc (tree_matrix::~tree_matrix): Actually do something. |
|
3882 |
2987
|
3883 * pt-all.h: New file. |
|
3884 * parse.y, lex.l, pt-pr-code.cc: Use it. |
|
3885 |
|
3886 * pt.h: Rename from pt-base.h. |
|
3887 |
|
3888 * All parse tree classes: Add private copy constructors and |
|
3889 assignment operators to prevent copying. |
|
3890 |
|
3891 * pt-base.cc: Delete. |
|
3892 |
2985
|
3893 * unwind-prot.h, unwind-prot.cc: Make a bit more object-oriented. |
|
3894 Change all uses of unwind_protect stuff to match. |
|
3895 |
|
3896 * pt-jump.h, pt-jump.cc (breaking, continuing, returning): |
|
3897 Make these flags static members of the corresponding class. |
|
3898 Change all uses. |
|
3899 |
2984
|
3900 * pt-assign.cc (tree_simple_assignment_expression::eval, |
|
3901 tree_multi_assignment_expression::eval): Clear lvalue index here. |
|
3902 |
|
3903 * oct-lvalue.cc (octave_lvalue::assign): Don't clear index here. |
|
3904 * oct-lvalue.h (octave_lvalue::clear_index): New function. |
|
3905 (octave_lvalue::set_index): Rename from octave_lvalue::index. |
|
3906 Change all callers. |
|
3907 |
2976
|
3908 Thu May 15 11:48:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3909 |
2983
|
3910 * pt-select.h, pt-select.cc (class tree_if_command_list, |
|
3911 class tree_if_clause, class tree_switch_case_list, |
|
3912 class tree_switch_case): Move here from pt-misc.h, pt-misc.cc. |
|
3913 * pt-decl.h, pt-decl.cc (class tree_decl_init_list, |
|
3914 class tree_decl_elt): Move here from pt-mist.h, pt-misc.cc |
|
3915 |
|
3916 * pt-arg-list.h, pt-stmt.h: New files, extracted from pt-misc.h. |
|
3917 * pt-arg-list.cc, pt-stmt.cc: New files, extracted from pt-misc.cc. |
|
3918 |
|
3919 * pt-decl.h, pt-except.h, pt-jump.h, pt-loop.h, pt-select.h: |
|
3920 New files, extraced from pt-cmd.h. |
|
3921 * pt-decl.cc, pt-except.cc, pt-jump.cc, pt-loop.cc, pt-select.cc: |
|
3922 New files, extraced from pt-cmd.cc. |
|
3923 |
2980
|
3924 * pt-unop.h, pt-binop.h, pt-colon.h, pt-idx.h, pt-assign.h: |
|
3925 New files, extracted from pt-exp.h |
|
3926 * pt-unop.cc, pt-binop.cc, pt-colon.cc, pt-idx.cc, pt-assign.cc: |
|
3927 New files, extracted from pt-exp.cc |
|
3928 * pt-exp.h, pt-exp.cc: Rename from pt-exp-base.h, pt-exp-base.cc. |
|
3929 |
2979
|
3930 * oct-lvalue.h: Rename from oct-var-ref.h. Rename class from |
|
3931 octave_variable_reference to octave_lvalue. Change all uses. |
|
3932 * oct-lvalue.cc: Rename from oct-var-ref.cc. |
|
3933 |
2978
|
3934 * variables.cc (bind_ans): Only bind ans and print result if value |
|
3935 is defined. |
|
3936 |
2976
|
3937 * defun.cc: New file. Move functions for installing objects in |
|
3938 the symbol table here from variables.cc. |
|
3939 |
|
3940 * oct-obj.h, oct-obj.cc: Add custom allocator, fwiw. |
|
3941 |
|
3942 * toplev.cc (main_loop): Correctly increment command number. |
|
3943 |
|
3944 * TEMPLATE-INST/SLList-tm.cc: Don't instantiate lists of pointers |
|
3945 to tree_matrix_row objects. |
|
3946 * TEMPLATE-INST/SLList-misc.cc: Do instantiate lists of pointers |
|
3947 to tree_argument_list objects. |
|
3948 |
|
3949 * DLD-FUNCTIONS/dassl.cc: Update to use new octave_function |
|
3950 interface to user-supplied functions. |
|
3951 * DLD-FUNCTIONS/fsolve.cc: Likewise. |
|
3952 * DLD-FUNCTIONS/lsode.cc: Likewise. |
|
3953 * DLD-FUNCTIONS/npsol.cc: Likewise. |
|
3954 * DLD-FUNCTIONS/quad.cc: Likewise. |
|
3955 |
|
3956 * dynamic-ld.h, dynamic-ld.cc (builtin_fcn_installer typedef): |
|
3957 Rename from builtin_fcn. |
|
3958 (octave_dynamic_loader::load_fcn_from_dot_oct_file): |
|
3959 Simplify by using new installer function defined by DEFUN_DLD. |
|
3960 |
|
3961 * defun-dld.h (DEFUN_DLD): Use DEFINE_FUN_INSTALLER_FUN instead of |
|
3962 DEFINE_FUN_STRUCT_FUN. |
|
3963 * defun.h (DEFUN_MAPPER): Use DEFUN_MAPPER_INTERNAL. |
|
3964 * defun-int.h (DEFVAR_INTERNAL): Rename from DEFVAR_INT and move |
|
3965 here from defun.h. Change all uses. |
|
3966 (DEFUN_MAPPER_INTERNAL): New macro. |
|
3967 (DEFINE_FUN_INSTALLER_FUN): New macro to define function that the |
|
3968 dynamic loader calls to do all the work of installing a new function. |
|
3969 (DEFINE_FUN_STRUCT_FUN): Delete. |
|
3970 |
|
3971 * parse.y: Rewrite to handle more general expressions. |
|
3972 * lex.l: Corresponding changes. |
|
3973 |
|
3974 * pt-walk.h, pt-pr-code.h, pt-pr-code.cc: Cope with new parse tree |
|
3975 object structure. |
|
3976 |
|
3977 * pt-misc.cc (class tree_for_command): Split into |
|
3978 tree_simple_for_command and tree_complex_for_command classes. |
|
3979 |
|
3980 * pt-misc.h, pt-misc.cc (tree_statement::eval): Handle identifier |
|
3981 lookup and printing and binding ans here. |
|
3982 (tree_statement_list::eval): Simplify. |
|
3983 (tree_argument_list::all_elements_are_constant): New function. |
|
3984 (class tree_decl_elt): Now contains id and expr, not an assignment |
|
3985 expression. |
|
3986 |
|
3987 * pt-exp-base.h pt-exp.h pt-id.h pt-indir.h pt-mat.h pt-const.h, |
|
3988 pt-exp-base.cc pt-exp.cc pt-id.cc pt-indir.cc pt-mat.cc pt-const.cc: |
|
3989 Replace eval functions with rvalue and lvalue functions. |
|
3990 Change all uses. |
|
3991 (lvalue_ok, rvalue_ok): New functions, for future compile-time |
|
3992 semantic checks. |
|
3993 |
|
3994 * oct-var-ref.h (is_defined, is_map): New functions. |
|
3995 |
|
3996 * pt-exp.h (class tree_oct_obj): Delete. |
|
3997 |
|
3998 * variables.cc (extract_function, is_valid_function): Return |
|
3999 pointer to octave_function, not octave_symbol. |
|
4000 (link_to_global_variable): Rewrite. Handle errors in |
|
4001 symbol_record::mark_as_linked_to_global. |
|
4002 |
|
4003 * symtab.h, symtab.cc (class symbol_def, class symbol_record): |
|
4004 Symbols are now stored as octave_value objects only. |
|
4005 |
|
4006 * ov.cc (install_types): Register function types here. |
|
4007 * ov-fcn.h, ov-fcn.cc, ov-builtin.h, ov-builtin.cc, ov-mapper.h, |
|
4008 ov-mapper.cc, ov-usr-fcn.h, ov-usr-fcn.cc: New classes for |
|
4009 functions as values. |
|
4010 * ov.h (class octave_value): Don't derive from octave_symbol. |
|
4011 * oct-fcn.h, oct-fcn.cc, oct-builtin.h, oct-builtin.cc, |
|
4012 oct-mapper.h, oct-mapper.cc, oct-usr-fcn.h, oct-usr-fcn.cc, |
|
4013 oct-sym.h, oct-sym.cc: Delete. |
|
4014 |
2963
|
4015 Sun May 11 17:51:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4016 |
|
4017 * help.cc (Ftype): Make it work again for functions. |
|
4018 |
|
4019 * pt-pr-code.cc (tree_print_code::print_parens): New function. |
|
4020 Use it in other tree_print_code functions to handle printing all |
|
4021 the parens that we found when parsing the expression, not just one |
|
4022 pair. |
|
4023 * pt-exp-base.h (tree_expression::paren_count): Rename from |
|
4024 is_in_parens. |
|
4025 * parse.y (maybe_warn_assign_as_truth_value): Use new name. |
|
4026 |
|
4027 * parse.y (constant): New non-terminal. |
|
4028 (simple_expr1): Use it. |
|
4029 |
|
4030 * parse.y (make_unary_op): Delete. |
|
4031 (simple_expr1): Where appropriate, use make_prefix_op and |
|
4032 make_postfix_op instead of make_unary_op. Allow increment and |
|
4033 decrement ops to work on expressions, not just identifiers. |
|
4034 (make_prefix_op, make_postfix_op): Arg is expression, not identifier. |
|
4035 Handle old unary_op cases too. |
|
4036 (fold (tree_unary_expression *)): Delete. |
|
4037 * pt-exp.h, pt-exp.cc (tree_prefix_expression::eval): Handle unary |
|
4038 minus and not here. |
|
4039 (tree_postfix_expression::eval): Likewise, for transpose and hermitian. |
|
4040 (class tree_prefix_expression, class tree_postfix_expression): |
|
4041 Derive from tree_unary_expression. Delete identifier member. |
|
4042 Delete ident member function. |
|
4043 (tree_unary_expression): Don't handle evaluation here. |
|
4044 * pt-exp-base.h (mark_in_parens): No longer virtual. Return this. |
|
4045 (reference): New virtual function. |
|
4046 (class tree_expression): Don't handle expression type here. |
|
4047 * pt-mvr-base.h (tree_multi_val_ret::tree_multi_val_ret): Likewise. |
|
4048 * pt-mvr.h, pt-mvr.cc (tree_multi_assignment_expression): Likewise. |
|
4049 * pt-walk.h (visit_unary_expression): Delete declaration. |
|
4050 * pt-pr-code.h, pt-pr-code.cc (visit_unary_expression): Delete. |
|
4051 (visit_prefix_expression): Use operand(), not ident(). |
|
4052 new, visit_postfix_expression): |
|
4053 * pt-id.h, pt-id.cc (increment, decrement): Delete. |
|
4054 |
|
4055 * pt-misc.cc (tree_parameter_list::define_from_arg_vector): Get a |
|
4056 reference to each element and use the assignment operator instead |
|
4057 of tree_identifier::define. |
|
4058 * pt-id.h, pt-id.cc (tree_identifier::define): Delete versions |
|
4059 that take octave_value and octave_symbol args. |
|
4060 |
|
4061 Sat May 10 23:32:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4062 |
|
4063 * pt-indir.h, pt-indir.cc (tree_indirect_reference::value): Delete. |
|
4064 |
|
4065 * oct-var-ref.cc (octave_variable_ref::assign): Clear idx after |
|
4066 assignment. |
|
4067 |
2976
|
4068 * octave_value classes: Add is_constant, is_function, and |
|
4069 function_value functions. |
|
4070 |
2963
|
4071 * ov.h, ov.cc (assign): Return void, not reference to octave_value. |
|
4072 (do_index_op): Rename, from index. |
|
4073 (do_struct_elt_index_op): Rename, from struct_elt_val. |
|
4074 Add version that accepts index arg. |
|
4075 Change all uses and derived classes to match. |
|
4076 * pt-const.h (index): Delete. |
|
4077 * oct-var-ref.h, oct-var-ref.cc (value): Handle indexed structure |
|
4078 ops here too. |
|
4079 |
2949
|
4080 Fri May 9 07:40:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4081 |
2958
|
4082 * pt-exp.cc (print_rhs_assign_val, symbols_of_pt_exp): New functions. |
|
4083 (Vprint_rhs_assign_val): New static variable. |
|
4084 (tree_simple_assignment_expression::eval): Use it to optionally |
|
4085 allow the rhs (which is the result) of an assignment to be printed |
|
4086 instead of the left. |
|
4087 |
2955
|
4088 * pt-exp.cc (tree_simple_assignment_expression::eval): Use new |
|
4089 octave_variabl_reference::index function to handle indexing. |
|
4090 |
|
4091 * oct-var-ref.h, oct-var-ref.cc (idx): New data member. |
|
4092 (octave_variable_reference::index): Set it. |
|
4093 (octave_variable_reference::assign): Handle indexing here. |
|
4094 Delete version of this function htat takes index arg. |
|
4095 |
|
4096 * variables.h (struct builtin_varaible): Delete. |
|
4097 * variables.cc (install_builtin_variable): Take all elts of |
|
4098 builtin_variable struct directly. |
|
4099 * defun.h (DEFVAR_INT): Call install_builtin_variable directly. |
|
4100 |
|
4101 * symtab.h, defun-int.h: Don't include variables.h. |
|
4102 |
|
4103 * symtab.h (symbol_record::sv_function): Move typedef here. |
|
4104 * variables.h: From here. |
|
4105 |
|
4106 * oct-var-ref.h, oct-var-ref.cc: New files for |
|
4107 octave_variable_reference class, extracted from variables.h and |
|
4108 variables.cc |
2956
|
4109 * Makefile.in: Add them to the appropriate lists. |
2955
|
4110 |
|
4111 * oct-obj.h (octave_value_list::empty): New function. |
|
4112 |
2949
|
4113 * variables.h (class octave_variable_reference): Rewrite to work |
|
4114 as a proxy class to store a pointer to octave_value and, |
|
4115 optionally, the change function to call and the name of the |
|
4116 structure element we are referencing. Handle assignment, |
|
4117 increment, decrement, and value operations. |
|
4118 |
2956
|
4119 Thu May 8 23:40:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4120 |
2949
|
4121 * ov-re-mat.h, ov-re-mat.cc (struct_elt_ref, struct_elt_val, |
|
4122 assign_struct_elt): Provide functions for looking up and setting |
|
4123 matrix dimensions. |
|
4124 |
|
4125 * symtab.cc (symbol_record::define): Don't call sv_fcn here. |
|
4126 Don't save and restore value here. |
|
4127 (symbol_record::define_builtin_var): Do call sv_fcn here. |
|
4128 (symbol_record::variable_reference): Don't make value unique here. |
|
4129 Return pointer to sv_fcn in octave_variable_reference. |
|
4130 |
|
4131 * pt-misc.cc (tree_parameter_list::initialize_undefined_elements): |
|
4132 Simplify. |
|
4133 |
|
4134 * pt-id.h, pt-id.cc (tree_identifier::reference): Return |
|
4135 octave_variable_reference, not octave_value&. |
|
4136 * symtab.h, symtab.cc (symbol_record::variable_reference): Ditto. |
|
4137 * pt-indir.h, pt-indir.cc (tree_indirect_ref::reference): Ditto. |
|
4138 Simplify too. |
|
4139 |
|
4140 * pt-const.h (tree_constant::reference, tree_constant::value, |
|
4141 tree_constant::assign): Delete unnecessary functions. |
|
4142 * pt-id.h, pt-id.cc (tree_identifier::assign): Ditto. |
|
4143 |
|
4144 * pt-cmd.cc (tree_for_command::do_for_loop_once): Simplify. |
|
4145 |
|
4146 * ov.h, ov.cc, ov-base.h, ov-base.cc, ov-struct.h, ov-struct.cc |
|
4147 (struct_elt_ref): New arg, octave_value* parent. |
|
4148 Allow deferred lookup. Return octave_variable_reference, not |
|
4149 octave_value&. |
|
4150 |
|
4151 * ov.h, ov.cc, ov-re-mat.h, ov-re-mat.cc (assign_struct_elt): |
|
4152 New virtual functions. |
|
4153 |
|
4154 * ov.h, ov.cc (Vresize_on_range_error): Now static. |
|
4155 |
|
4156 * pt-mvr.cc (tree_index_expression::eval): Delete redundant check |
|
4157 of error_state. |
|
4158 |
2944
|
4159 Wed May 7 21:17:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4160 |
|
4161 * input.cc (generate_completion): Rename from command_generator. |
|
4162 Use string objects instead of char*. |
|
4163 (generate_possible_completions): Let qsort also make matches unique. |
|
4164 (initialize_command_input): Register generate_completion with the |
|
4165 command_editor class. |
|
4166 (completion_matches): Simplify using generate_completion. |
|
4167 |
|
4168 * pt-pr-code.cc (tree_print_code::visit_constant): For val, call |
|
4169 print_raw, not print. |
|
4170 |
|
4171 * oct-usr-fcn.h (octave_user_function::argn_sr): New data member. |
|
4172 (octave_user_function::install_automatic_vars): Rename from |
|
4173 install_nargin_and_nargout. |
|
4174 (octave_user_function::bind_automatic_vars): Rename from |
|
4175 bind_nargin_and_nargout. |
|
4176 * oct-usr-fcn.cc (octave_user_function::eval): Extract arg names |
|
4177 from args vector and bind them to argn. |
|
4178 * oct-obj.h (octave_value_list::names): New data member. |
|
4179 * oct-obj.cc (octave_value_list::stash_name_tags): New function. |
|
4180 (octave_value_list::name_tags): Ditto. |
|
4181 * pt-const.h, pt-const.cc (tree_constant::print_raw): New function. |
|
4182 * pt-misc.h, pt-misc.cc (tree_argument_list::get_arg_names): |
|
4183 New function. |
|
4184 * pt-mvr.h, pt-mvr.cc (class index_expression): Cache arg names. |
|
4185 * toplev.cc (feval): Now static. Handle arg names. |
|
4186 |
|
4187 * mkops: Cope with moving files defining operators to OPERATORS |
|
4188 subdirectory. |
|
4189 |
2937
|
4190 Tue May 6 00:48:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4191 |
|
4192 * DLD-FUNCTIONS/getgrent.cc: Use new octave_group class. |
|
4193 * DLD-FUNCTIONS/getpwent.cc: Use new octave_passwd class. |
|
4194 |
|
4195 * syscalls.cc: Simplify by using new functions defined in |
|
4196 liboctave/oct-syscalls.cc. |
|
4197 |
|
4198 * file-io.cc (Ftmpnam): Accept DIR and PREFIX args. |
|
4199 |
2929
|
4200 Mon May 5 00:54:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4201 |
2932
|
4202 * ov-str-mat.cc (octave_char_matrix_str::print_name_tag): Print |
|
4203 empty strings on one line. |
|
4204 |
2929
|
4205 * DLD-FUNCTIONS, OPERATORS, and TEMPLATE-INST: New subdirectories. |
|
4206 Move appropriate files to new directories. |
|
4207 * Makefile.in: Add DLD-FUNCTIONS, OPERATORS, and TEMPLATE-INST |
|
4208 directories to VPATH. Fix rules to work with new directory |
|
4209 structure. |
|
4210 |
2927
|
4211 Sun May 4 22:40:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4212 |
|
4213 * input.cc (initialize_command_input): Rename from |
|
4214 initialize_readline. |
|
4215 (gnu_readline, octave_gets, get_user_input): Simplify, return |
|
4216 string, not char *. |
|
4217 |
|
4218 * Many of other files: Miscellaneous changes to go along with the |
|
4219 changes described in the liboctave/ChangeLog for May 4. More code |
|
4220 moved from here to liboctave. |
|
4221 |
|
4222 Fri May 2 19:50:33 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4223 |
|
4224 * pathlen.h: Move to ../liboctave. |
|
4225 |
2921
|
4226 Thu May 1 21:50:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4227 |
|
4228 * variables.cc (get_struct_elts): New fucntion. |
|
4229 (looks_like_struct, generate_struct_completions): Move here from |
|
4230 input.cc, rewrite, and make work again. |
|
4231 |
2916
|
4232 Wed Apr 30 00:24:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4233 |
|
4234 * ov-base.h, ov-bool-mat.cc, ov-bool-mat.h, ov-bool.cc, ov-bool.h, |
|
4235 ov-ch-mat.cc, ov-ch-mat.h, ov-complex.cc, ov-complex.h, |
|
4236 ov-cx-mat.cc, ov-cx-mat.h, ov-file.cc, ov-file.h, ov-list.cc, |
|
4237 ov-range.cc, ov-range.h, ov-re-mat.cc, ov-re-mat.h, ov-scalar.cc, |
|
4238 ov-scalar.h, ov-str-mat.cc, ov-struct.cc, ov.h (scalar_value): |
|
4239 New function. Same as double_value, but name is consistent with |
|
4240 octave_scalar class. |
|
4241 |
|
4242 * op-fil-b.cc, op-fil-cm.cc, op-fil-lis.cc, op-fil-rec.cc, |
|
4243 op-fil-str.cc, op-fil-bm.cc, op-fil-cs.cc, op-fil-m.cc, |
|
4244 op-fil-s.cc: New files. |
|
4245 |
|
4246 * ops.h (ASSIGNOPDECL, DEFASSIGNOP, DEFASSIGNOP_FN, CONVDECL, |
|
4247 DEFCONV, BINOPDECL, DEFBINOPX, DEFBINOP, DEFBINOP_OP, DEFBINOP_FN, |
|
4248 BINOP_NONCONFORMANT): New macros. |
|
4249 * op-b-b.cc, op-bm-bm.cc, op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, |
|
4250 op-cm-s.cc, op-cs-cm.cc, op-cs-cs.cc, op-cs-m.cc, op-cs-s.cc, |
|
4251 op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, op-s-cm.cc, |
|
4252 op-s-cs.cc, op-s-m.cc, op-s-s.cc, op-str-str.cc: Use them. |
|
4253 |
|
4254 * Makefile.in (octave): Also depend on ops.o. |
|
4255 |
|
4256 * builtins.h: Delete. |
|
4257 * octave.cc: Add extern declaration here. |
|
4258 |
|
4259 * mappers.h: Delete. |
|
4260 * Makefile.in (INCLUDES): Delete from list. |
|
4261 * mkbuiltins: Add extern declaration in builtins.cc. |
|
4262 |
|
4263 * mkops: New file. |
|
4264 * ops.cc: Delete. |
|
4265 * Makefile.in (SOURCES): Delete from the list. |
|
4266 (ops.cc): New target. |
|
4267 (OP_SOURCES): New list. Move all op-*.cc files here from SOURCES. |
|
4268 Add $(OP_SOURCES) to SOURCES list. |
|
4269 |
|
4270 * variables.cc (symbols_of_variables): No longer static. |
|
4271 * ov.cc (symbols_of_ov): Rename from symbols_of_value. |
|
4272 |
|
4273 * ov-base.h: Delete declaration for install_base_type_conversions. |
|
4274 * op-b-b.h, op-bm-bm.h, op-cm-cm.h, op-cm-cs.h, op-cm-m.h, |
|
4275 op-cm-s.h, op-cs-cm.h, op-cs-cs.h, op-cs-m.h, op-cs-s.h, |
|
4276 op-m-cm.h, op-m-cs.h, op-m-m.h, op-m-s.h, op-s-cm.h, op-s-cs.h, |
|
4277 op-s-m.h, op-s-s.h, op-str-str.h: Delete. |
|
4278 * Makefile.in (INCLUDES): Delete them from the list. |
|
4279 |
|
4280 Tue Apr 29 22:27:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4281 |
|
4282 * variables.h, variables.cc (install_builtin_variables): Delete. |
|
4283 * mkbuiltins: Also generate install_builtin_variables function. |
|
4284 * Makefile.in: Fix rule to call mkbuiltins with correct args. |
|
4285 (clean): Also delete def-files and var-files. |
|
4286 * defaults.h.in, dirfns.h, error.h, file-io.h, help.h, input.h, |
|
4287 lex.h, load-save.h, oct-usr-fcn.h, pager.h, parse.h, pr-output.cc, |
|
4288 pr-output.h, pt-mat.h, pt-misc.h, pt-plot.h, toplev.h: |
|
4289 Delete declarations of symbols_of_* functions. |
|
4290 * data.h, syscalls.h: Delete. |
|
4291 |
|
4292 * pr-output.cc (octave_print_internal): Leave printing of final |
|
4293 new line up to the caller. |
|
4294 |
|
4295 * ov.h, ov.cc (reset_indent_level, increment_indent_level, |
|
4296 decrement_indent_level, newline, indent, reset, |
|
4297 curr_print_indent_level, beginning_of_line): |
|
4298 New functions and static data to manage indent level for printing. |
|
4299 (print_as_scalar): Delete. |
|
4300 (print, print_with_name): Always require stream arg. |
|
4301 Change all callers. |
|
4302 |
|
4303 * oct-stream.h (octave_stream::input_stream): Make publicly available. |
|
4304 (octave_stream::output_stream): Likewise. |
|
4305 |
|
4306 * ov-base.h, ov-base.cc, ov.h, ov.cc, ov-file.h ov-base.h |
|
4307 (is_file, stream_value, stream_number): New functions. |
|
4308 * ov-file.h, ov-file.cc: New files for value class to manage files. |
|
4309 * file-io.cc (symbols_of_file_io): Define stdin, stdout, and |
|
4310 stderr as octve_file objects, not just integers. |
|
4311 (Ffopen, Fpopen): Return octave_file objects, not integer file ids. |
|
4312 * syscalls.cc (Fpipe): Likewise. |
|
4313 * oct-stream.h, oct-stream.cc (octave_stream_list::insert): |
|
4314 Return octave_file object, not integer file id. |
|
4315 |
|
4316 * ov-base.cc, ov-bool-mat.cc, ov-bool.cc, ov-ch-mat.cc, |
|
4317 ov-complex.cc, ov-cx-mat.cc, ov-file.cc, ov-list.cc, ov-range.cc, |
|
4318 ov-re-mat.cc, ov-scalar.cc, ov-str-mat.cc, ov-struct.cc, ov.cc |
|
4319 (print_name_tag, print_raw): New functions. |
|
4320 |
|
4321 * help.cc (Ftype): Don't cast symbol definition to tree_constant *. |
|
4322 |
|
4323 * variables.cc (link_to_global_variable): Don't try to define |
|
4324 symbol with tree_constant objects. |
|
4325 (bind_ans): Call symbol_record::define directly and then |
|
4326 octave_value::print_with_name instead of creating a temporary |
|
4327 assignment expression. |
|
4328 |
|
4329 * pt-pr-code.cc (tree_print_code::indent): Don't use ostream::form. |
|
4330 |
|
4331 * pt-exp-base.h, pt-exp.h, pt-exp.cc (oper): Return string, not |
|
4332 char *. Change all where necessary. |
|
4333 |
|
4334 Mon Apr 28 16:33:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4335 |
|
4336 * ov.h (octave_value binary_op enum): Add lshift and rshift. |
|
4337 (octave_value assign_op enum): Add lshift_eq and rshift_eq. |
|
4338 * ov.cc (assign_op_as_string, binary_op_as_string): Include them. |
|
4339 * parse.y (LSHIFT_EQ RSHIFT_EQ LSHIFT RSHIFT): New tokens. |
|
4340 Add them to the precedence list. |
|
4341 (simple_expr): Add new operators. |
|
4342 (make_assign_op, make_binary_op): Handle new operators. |
|
4343 * lex.l: Recognize new operators. |
|
4344 |
|
4345 * lex.l: Recognize them. |
|
4346 |
|
4347 Sun Apr 27 20:17:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2898
|
4348 |
|
4349 * pt-misc.cc (Vsilent_functions, silent_functions): |
|
4350 Move here from oct-usr-fcn.cc. |
|
4351 (symbols_of_pt_misc): New function. DEFVAR silent_functions. |
|
4352 (tree_statement_list::eval): Handle Vsilent_functions here instead |
|
4353 of in octave_user_function::eval. |
|
4354 (tree_statement::eval): New functions. |
|
4355 (tree_statement_list::eval): Use them. |
|
4356 Change print flag arg to silent flag. Change all callers. |
|
4357 * variables.cc (install_builtin_variables): Call symbols_of_pt_misc. |
|
4358 * toplev.cc (parse_and_execute): Delete print arg. Change all callers. |
|
4359 (eval_string): Change print flag arg to silent flag. Change callers. |
|
4360 |
|
4361 * dynamic-ld.h, dynamic-ld.cc: Rewrite to use singleton class. |
|
4362 * variables.cc (load_fcn_from_file): Use new dynamic linking class. |
|
4363 |
2893
|
4364 * dynamic-ld.h (Octave_builtin_fcn): Delete typedef. |
|
4365 * dynamic-ld.cc: Simplify via the magic of function pointers. |
|
4366 |
|
4367 * pt-fcn.h pt-fcn.cc pt-fvc.h pt-fvc.cc pt-fvc-base.h pt-fvc-base.cc: |
|
4368 Delete obsolete files. |
|
4369 * Makefile.in: Remove them from various lists. |
|
4370 |
|
4371 * pt-walk.h (visit_octave_user_function): Rename from visit_function. |
|
4372 (visit_builtin): Delete. |
|
4373 * pt-pr-code.h, pt-pr-code.cc (visit_octave_user_function): |
|
4374 Rename from visit_function. |
|
4375 (visit_octave_user_function_header): Rename from visit_function_header. |
|
4376 (visit_octave_user_function_trailer): Rename from |
|
4377 visit_function_trailer. |
|
4378 |
|
4379 * ov.h, ov.cc (eval): New functions. |
|
4380 |
|
4381 * dassl.cc, fsolve.cc, lsode.cc, npsol.cc, qpsol.cc, quad.cc: |
|
4382 Declare user-defined functions as a pointer to an octave_symbol |
|
4383 object, not as a pointer to a tree_fvc object. |
|
4384 |
|
4385 * symtab.h, symtab.cc: Use new octave_symbol class. |
|
4386 * variables.cc (install_builtin_function, install_builtin_mapper, |
|
4387 install_builtin_variable, install_builtin_variable_as_function): |
|
4388 Make work with new octave_symbol class and symbol table structure. |
|
4389 |
|
4390 * variables.h: Delete declaration of builtin_function struct. |
|
4391 * defun-dld.h (DEFUN_DLD): Simplify. |
|
4392 * defun-int.h (DEFINE_FUN_STRUCT): Delete. |
|
4393 (DEFINE_FUN_STRUCT_FUN): Rewrite to not use static builtin_function |
|
4394 object. |
|
4395 |
|
4396 * mappers.h: Delete declaration of builtin_mapper_function struct. |
|
4397 * mappers.cc: Declare wrapper functions static. |
|
4398 * defun.h (DEFUN_MAPPER): Simplify. |
|
4399 |
|
4400 * oct-sym.h: New file. Declare base class for Octave symbols. |
|
4401 * ov.h: Derive octave_value class from octave_symbol. |
|
4402 * oct-fcn.h, oct-fcn.cc: New files to declare and define |
|
4403 base class for functions. |
|
4404 * oct-builtin.h, oct-builtin.cc: New files to declare and define |
|
4405 class for built-in functions. |
|
4406 * oct-mapper.h, oct-mapper.cc: New files to declare and define |
|
4407 class for mapper functions. |
|
4408 * oct-usr-fcn.h, oct-usr-fcn.cc: New files to declare and define |
|
4409 base class for user-defined functions. |
|
4410 * Makefile.in: Add new files to appropriate lists. |
|
4411 |
|
4412 * pt-id.h, pt-id.cc: Move tree_identifier class here. |
|
4413 * pt-fvc.h, pt-fvc.cc: From here. |
|
4414 |
|
4415 * pt-indir.h, pt-indir.cc: Move tree_indirect_ref class here. |
|
4416 * pt-fvc.h, pt-fvc.cc: From here. |
|
4417 |
2881
|
4418 Thu Apr 24 03:58:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4419 |
2884
|
4420 * parse.y (magic_colon): New nonterminal. |
|
4421 (arg_list): Simplify using magic_colon. |
|
4422 |
2883
|
4423 * lex.h (class lexical_feedback): Delete maybe_screwed field. |
|
4424 New field, parsed_function name. |
|
4425 * lex.l (lexical_feedback::init): Initialize it. |
|
4426 (handle_identifier): Don't return SCREW. Handle switching |
|
4427 symbol table context properly for `function f ()' vs `function x ='. |
|
4428 (is_keyword): If looking at function keyword, don't set current |
|
4429 symbol table to point to the local table. |
|
4430 * parse.y (recover_from_parsing_function): New function. |
|
4431 (finish_function_def): Use identifier, not token. |
|
4432 Simplify parsing of functions. |
|
4433 |
|
4434 * ov-list.h, ov-list.cc: New files to implement generic list type. |
|
4435 * ov.cc (list_indent): New global variable. |
|
4436 (increment_list_indent, decrement_list_indent): New functions. |
|
4437 (install_types): Register octave_list type. |
|
4438 * ov-base.cc (octave_base_value::is_list): New function. |
|
4439 |
2881
|
4440 * oct-sym.h: New file. |
|
4441 * ov.h (class octave_value): Derive from octave_symbol class. |
|
4442 |
|
4443 * pt-const.h, pt-const.cc: Delete lots of old useless cruft. |
|
4444 |
|
4445 * pt-exp.h, pt-exp.cc (tree_binary_expression): Use type codes for |
|
4446 operators from octave_value instead of repeating them here. |
|
4447 |
|
4448 * pt-fvc-base.cc (tree_fvc::increment, tree_fvc::decrement): Delete. |
|
4449 * pt-fvc.cc (tree_identifier::increment): Get reference to value |
|
4450 and increment that instead of using virutal tree_fvc::increment |
|
4451 function. |
|
4452 |
|
4453 * lex.l: Handle +=, -=, *=, /=, .+=, .-=, .*=, ./=, &=, and |= ops. |
2883
|
4454 * parse.y (make_assign_op): Rename from make_simple_assignment and |
|
4455 handle different op types. |
|
4456 (simple_expr1): Do new ops. |
2881
|
4457 * pt-misc.cc (initialize_undefined_elements): Pass op to assign. |
|
4458 * pt-cmd.cc (tree_for_command::do_for_command_once): Likewise. |
|
4459 * pt-fvc.cc (tree_identifier::assign): Pass op. |
|
4460 * pt-exp.cc (tree_simple_assignment_expression): Handle new ops. |
|
4461 * variables.cc (octave_variable_reference::assign): Likewise. |
|
4462 * ov.h (class octave_value): Likewise. |
|
4463 * ov.cc (octave_value::assign_op_as_string): New function. |
|
4464 (octave_value::assign, octave_value::convert_and_assign, |
|
4465 octave_value::try_assignment_with_conversion, |
|
4466 octave_value::try_assignment): Pass op. |
|
4467 * pt-pr-code.cc (tree_print_code::visit_simple_assignment_expression): |
|
4468 Use expr.oper() instead of printing "=". |
|
4469 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-m-m.cc, |
|
4470 op-m-s.cc, op-str-str.cc: Pass op to INSTALL_ASSIGNOP. |
|
4471 * ops.h (INSTALL_ASSIGNOP): Pass op. |
2883
|
4472 * ov-typeinfo.cc (do_register_assign_op): Include op type in table. |
|
4473 (do_lookup_assign_op): Use op in lookup. |
2881
|
4474 |
|
4475 * ops.h (INSTALL_UNOP): Delete. |
|
4476 |
|
4477 * input.cc (generate_struct_completions, looks_like_struct): |
|
4478 Disable, since they don't work now anyway. |
|
4479 |
|
4480 * help.cc (Ftype): Work with octave_value instead of a pointer to |
|
4481 tree_constant. |
|
4482 * symtab.cc (symbol_record_info::symbol_record_info): Likewise. |
|
4483 |
|
4484 |
|
4485 Tue Apr 22 22:59:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4486 |
|
4487 * file-io.cc (Ffprintf): If first arg is a string, assume FID = 1. |
|
4488 |
|
4489 Fri Apr 18 20:16:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4490 |
|
4491 * oct-obj.h, oct-obj.cc: Implement octave_value_list with |
|
4492 Array<octave_value> as a data member, not as a class derived from |
|
4493 Array<octave_value>. |
|
4494 (octave_value_list::length, octave_value_list::resize, |
|
4495 octave_value_list::prepend, octave_value_list::append, |
|
4496 octave_value_list::reverse): New functions. |
|
4497 |
|
4498 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
4499 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
4500 op-s-cm.cc, op-s-m.cc: Use new bool ops from liboctave instead of |
|
4501 the macros defined in ops.h. |
|
4502 |
2865
|
4503 Thu Apr 17 13:12:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4504 |
|
4505 * parse.y (ABORT_PARSE): Handle forced_interactive the same as |
|
4506 interactive. |
|
4507 |
|
4508 Mon Apr 14 01:46:50 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4509 |
|
4510 * input.cc (octave_read): Don't forget to free input buffer if it |
|
4511 exists and has zero length. |
|
4512 (gnu_readline): Free buf if fgets returns 0. |
|
4513 |
|
4514 Wed Apr 9 00:03:57 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4515 |
|
4516 * time.cc (mk_tm_map): Only set zone field if HAVE_TM_ZONE or |
|
4517 HAVE_TZNAME are defined. |
|
4518 |
|
4519 Tue Apr 8 12:39:21 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4520 |
|
4521 * time.cc (extract_tm): Set tm.tm_zone if HAVE_TM_ZONE is defined, |
|
4522 not if HAVE_TMZONE is defined. |
|
4523 |
|
4524 * Makefile.in (%.oct : %.o): Use $(SH_LD), not $(CXX). |
|
4525 |
|
4526 Wed Apr 2 21:32:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4527 |
|
4528 * dynamic-ld.cc, dynamic-ld.h (init_dynamic_linker): Delete |
|
4529 function and declaration. |
|
4530 * octave.cc (main): Don't call it. |
|
4531 |
2856
|
4532 Mon Mar 31 00:37:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4533 |
2859
|
4534 * pt-base-exp.h (tree_expression::eval): Give arg a default value. |
|
4535 * pt-const.h (tree_constant::eval): Likewise. |
|
4536 * pt-exp.h (tree_prefix_expression::eval, tree_colon_expression::eval, |
|
4537 tree_postfix_expression::eval, tree_unary_expression::eval, |
|
4538 tree_binary_expression::eval, tree_boolean_expression::eval, |
|
4539 tree_simple_assignment_expression::eval): Likewise. |
|
4540 * pt-fcn.h (tree_function::eval): Likewise. |
|
4541 * pt-fvc.h (tree_identifier::eval, tree_indirect_ref::eval, |
|
4542 tree_builtin::eval): Likewise. |
|
4543 * pt-mat.h (tree_matrix::eval): Likewise. |
|
4544 * pt-misc.h (tree_statement_list::eval): Likewise. |
|
4545 * pt-mvr-base.h (tree_multi_val_ret::eval): Likewise. |
|
4546 * pt-mvr.h (tree_oct_obj::eval, tree_index_expression::eval, |
|
4547 tree_multi_assignment_expression::eval): Likewise. |
|
4548 * dassl.cc, fsolve.cc, load-save.cc, lsode.cc, npsol.cc, parse.y, |
|
4549 pt-cmd.cc, pt-exp-base.cc, pt-exp.cc, pt-fvc.cc, pt-mat.cc, |
|
4550 pt-misc.cc, pt-mvr.cc, pt-plot.cc, quad.cc, toplev.cc, variables.cc: |
|
4551 Change callers of eval() to use bool instead of int and to make |
|
4552 use of default argument value. |
|
4553 |
|
4554 * toplev.h, toplev.cc (parse_and_execute, eval_string): Flag args |
|
4555 are now bool instead of int. |
|
4556 |
2856
|
4557 * symtab.h, symtab.cc: Use bool instead of int in more places. |
|
4558 * variables.h, variables.cc: Likewise. |
2857
|
4559 * lex.h, lex.l: Likewise. |
|
4560 * parse.y: Likewise. |
2856
|
4561 * help.cc, input.cc, lex.l, load-save.cc, parse.y, pt-fcn.cc: |
|
4562 Change callers of symbol_table::lookup to use bool instead of int, |
|
4563 and to make use of default arguments. |
|
4564 |
2850
|
4565 Fri Mar 28 15:33:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4566 |
2852
|
4567 * parse.y (Vwarn_comma_in_declaration): Delete. |
|
4568 (symbols_of_parse): Delete DEFVAR for warn_comma_in_declaration. |
|
4569 (decl1): Don't allow commas in declarations. |
|
4570 |
2850
|
4571 * lsode.cc (struct LSODE_OPTIONS): Handle integer options. |
|
4572 (print_lsode_option_list, set_lsode_option, show_lsode_option): Ditto. |
|
4573 (lsode_option_table): Add element for step limit. |
|
4574 (lsode_user_jacobian): New function. |
|
4575 (Flsode): Allow function name arg to be a 2-element string array |
|
4576 specifying the function and jacobian function. |
|
4577 |
|
4578 * variables.cc (get_global_value, set_global_value): New functions. |
|
4579 |
2846
|
4580 Wed Mar 26 17:08:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4581 |
|
4582 Implement static variable declaration: |
|
4583 |
|
4584 * lex.l (is_keyword): Handle static. |
|
4585 * octave.gperf: Likewise. |
|
4586 * parse.y (Vwarn_comma_in_declaration): Rename from |
|
4587 Vwarn_comma_in_global_decl. |
|
4588 Handle new static command. |
|
4589 * pt-cmd.h, pt-cmd.cc (class tree_decl_command): New base class |
|
4590 for static and global declaration commands. |
|
4591 (class tree_global_command): Derive from tree_decl_command. |
|
4592 (class tree_static_command): New class, derived from tree_decl_command. |
|
4593 * pt-fvc.cc, pt-fvc.h (tree_identifier::mark_as_static): New function. |
|
4594 * pt-misc.h, pt-misc.h (class tree_decl_elt): Rename from tree_global. |
|
4595 (class tree_decl_init_list): Rename from tree_global_init_list. |
|
4596 * pt-pr-code.cc, pt-pr-code.h (tree_print_code::visit_decl_command): |
|
4597 Rename from visit_global_command. |
|
4598 (tree_print_code::visit_decl_elt): Rename from visit_global. |
|
4599 (tree_print_code::visit_decl_init_list): Rename from |
|
4600 visit_global_init_list. |
|
4601 * pt-walk.h (tree_walker::visit_decl_command): Rename from |
|
4602 visit_global_command. |
|
4603 (tree_walker::visit_decl_elt): Rename from visit_tree_global. |
|
4604 (tree_walker::visit_decl_init_list): Rename from |
|
4605 visit_global_init_list. |
|
4606 * variables.cc (link_to_global_variable): Trying to make a static |
|
4607 variable global is an error. |
|
4608 * SLList-misc.cc: Instantiate lists of pointers to tree_decl_elt |
|
4609 objects, not tree_global objects. |
|
4610 * symtab.h, symtab.cc (symbol_record::tagged_static): New field. |
|
4611 (symbol_record::mark_as_static, symbol_record::is_static): |
|
4612 New functions. |
|
4613 * symtab.cc (symbol_record::init_state): Initialize tagged_static. |
|
4614 (symbol_record::clear): Don't clear static variables. |
|
4615 * symtab.cc (push_context): Don't do anything for static variables. |
|
4616 |
2825
|
4617 Tue Mar 25 17:17:17 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4618 |
2881
|
4619 * ov-bool-mat.cc, ov-bool-mat.h, ov-bool.cc, ov-bool.h: New files. |
2832
|
4620 |
2831
|
4621 * defaults.cc (symbols_of_defaults): DEFCONST OCTAVE_HOME. |
|
4622 |
|
4623 * toplev.cc (octave_config_info): Delete use of CXXLIBS. |
|
4624 * oct-conf.h.in: Ditto. |
|
4625 |
2830
|
4626 * octave.cc (maximum_braindamage): Don't bind prefer_zero_one_indexing. |
|
4627 * ov.h: Don't declare Vprefer_zero_one_indexing. |
|
4628 * ov.cc: Don't define Vprefer_zero_one_indexing. |
|
4629 (prefer_zero_one_indexing): Delete. |
|
4630 (symbols_of_value): Delete DEFVAR for prefer_zero_one_indexing. |
|
4631 |
2825
|
4632 * ov.h, ov.cc, ov-base.h, ov-base.cc: Add constructors and |
|
4633 extractors for bool and boolMatrix types. |
|
4634 |
|
4635 * ov.cc (install_types): Register octave_bool and |
|
4636 octave_bool_matrix types. |
|
4637 |
|
4638 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
4639 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
4640 op-s-cm.cc, op-s-m.cc, op-s-s.cc, ov-re-mat.cc: |
|
4641 Return boolMatrix instead of Matrix object. |
|
4642 * ops.h (BOOL_OP3, MX_MX_BOOL_OP): Likewise. |
|
4643 |
|
4644 * op-b-b.h, op-b-b.cc, op-bm-bm.h, op-bm-bm.cc: New files. |
|
4645 * Makefile.in: Add them to the lists. |
|
4646 * ops.cc: Include header files here. |
|
4647 (install_ops): Call install_b_b_ops() and install_bm_bm_ops() here. |
|
4648 |
|
4649 * variables.cc (symbols_of_variables): Don't rely on default |
|
4650 conversion from int to double for value returned from |
|
4651 default_history_size(). |
|
4652 |
|
4653 * pr-output.cc: Include cstdio. |
|
4654 |
|
4655 * parse.y (param_list_end): Fix typo in last change. |
|
4656 |
|
4657 * quad.cc (quad): Cast integer return values to double. |
|
4658 * npsol.cc (show_npsol_option): Likewise. |
|
4659 * qpsol.cc (show_qpsol_option): Likewise. |
|
4660 * file-io.cc (Fsprintf, Ffwrite): Likewise. |
|
4661 |
|
4662 Mon Mar 24 13:11:47 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4663 |
|
4664 * ov-typeinfo.cc (typeinfo): If invoked with an argument, return |
|
4665 the type of the argument as a string. Fix doc string. |
|
4666 |
2821
|
4667 Thu Mar 20 14:47:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4668 |
|
4669 * mk-oct-links (links_dir): Don't use -h option for grep. It's |
|
4670 not needed since we are working on one file at a time anyway. |
|
4671 |
2819
|
4672 Mon Mar 17 10:53:29 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4673 |
|
4674 * lex.l (handle_identifier): When handling indirect_ref, set |
|
4675 lexer_flags.quote_is_transpose to 1 so that a.b' to work as |
|
4676 expected. |
|
4677 |
|
4678 * parse.y (param_list_beg, param_list_end): New nonterminals. |
|
4679 (param_list, param_list1): Use them. |
|
4680 |
2811
|
4681 Wed Mar 12 16:57:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4682 |
|
4683 * Makefile.in (install-strip): New target. |
|
4684 |
2806
|
4685 Mon Mar 10 22:38:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4686 |
|
4687 * Makefile.in (clean): Delete .oct files too. |
|
4688 |
|
4689 * toplev.cc (Vdefault_eval_print_flag): New static variable. |
|
4690 (eval_string): New arg, print. |
|
4691 (Feval): Pass Vdefault_eval_print_flag to eval_string. |
|
4692 (default_eval_print_flag): New function. |
|
4693 (symbols_of_toplev): New function. |
|
4694 |
|
4695 * variables.cc (install_builtin_variables): Call it. |
|
4696 |
|
4697 * pt-exp.h, pt-exp.cc (class tree_boolean_expression): Rename enum |
|
4698 fields `and' and `or' to `bool_and' and `bool_or'. |
|
4699 (tree_unary_expression): Rename enum field `not' to `unot'. |
|
4700 (class tree_binary_expression): Rename enum fields `and' and `or' |
|
4701 to `el_and' and `el_or'. |
|
4702 * parse.y: Change all uses. |
|
4703 |
|
4704 * time.cc (extract_tm): Truncate field values instead of rounding. |
|
4705 (gmtime, localtime): Likewise, for timeval. |
|
4706 |
|
4707 * ov.h (class octave_value): Delete unused variable freeptr. |
|
4708 |
|
4709 * mappers.cc: Delete functions that are already in |
|
4710 liboctave/lo-mappers.cc. |
|
4711 |
|
4712 * oct-strstrm.cc (octave_base_strstream::tell): Use const_cast, |
|
4713 not static_cast. |
|
4714 |
|
4715 * help.cc (help_from_list): Add missing const qualifiers. |
|
4716 * help.h (struct help_list): Likewise. |
|
4717 * lex.l (match_any, plot_style_token): Likewise. |
|
4718 * load-save.cc (extract_keyword, ascii_save_type): Likewise. |
|
4719 * oct-hist.cc (mk_tmp_hist_file): Likewise. |
|
4720 * octave.cc (execute_startup_files): Likewise. |
|
4721 * octave.gperf (struct octave_kw): Likewise. |
|
4722 * pr-output.cc (pr_any_float): Likewise. |
|
4723 * pt-mvr.cc (tree_index_expression::eval_error): Likewise. |
|
4724 * pt-exp-base.h, pt-exp.h, pt-exp.cc: Likewise. |
|
4725 * parse.y: Likewise. |
|
4726 |
2800
|
4727 Sun Mar 9 03:46:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4728 |
2806
|
4729 * pt-exp-base.h (tree_expression): Delete extra comma at end of list. |
|
4730 |
|
4731 * dirfns.cc error.cc file-io.cc fsolve.cc input.cc load-save.cc |
|
4732 npsol.cc pt-fcn.cc qpsol.cc quad.cc syscalls.cc toplev.cc |
|
4733 variables.cc: Eliminate embedded newlines in string constants. |
|
4734 |
|
4735 * Map.cc, data.cc, dirfns.cc, dynamic-ld.cc, file-io.cc, |
|
4736 fsolve.cc, getgrent.cc, getpwent.cc, getrusage.cc, help.cc, |
|
4737 input.cc, load-save.cc, mappers.cc, minmax.cc, npsol.cc, |
|
4738 oct-fstrm.cc, oct-procbuf.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
4739 oct-stream.cc, oct-stream.h, oct-strstrm.cc, octave.cc, |
|
4740 ov-base.h, ov-range.cc, ov-typeinfo.cc, ov.cc, pr-output.cc, |
|
4741 pt-cmd.cc, pt-exp.cc, pt-fcn.cc, pt-fvc.cc, pt-mat.cc, |
|
4742 pt-misc.cc, pt-plot.cc, qpsol.cc, quad.cc, sort.cc, strfns.cc, |
|
4743 symtab.cc, syscalls.cc, sysdep.cc, time.cc, toplev.cc, |
|
4744 unwind-prot.cc, unwind-prot.h, variables.cc, xpow.cc: |
|
4745 Use `static_cast<T> (val)' instead of old C-style `(T) val' casts. |
2800
|
4746 |
2799
|
4747 Sat Mar 8 02:35:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4748 |
|
4749 * load-save.cc (save_ascii_data, save_three_d): Where appropriate, |
|
4750 use bool instead of int. |
|
4751 (save_binary_data, save_mat_binary_data, save_ascii_data): |
|
4752 Print warning instead of error for wrong type arg. |
|
4753 |
|
4754 * gripes.cc (gripe_wrong_type_arg): New arg, is_error. |
|
4755 |
|
4756 * pt-plot.cc (save_in_tmp_file): Call save_ascii_data with bool |
|
4757 arg, not int. |
|
4758 |
2797
|
4759 Fri Mar 7 00:56:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4760 |
|
4761 * dassl.cc (show_dassl_option): For values that are determined |
|
4762 automatically, return a string instead of a magic value (-1.0). |
|
4763 * fsolve.cc (show_fsolve_option): Likewise. |
|
4764 * lsode.cc (show_lsode_option): Likewise. |
|
4765 * npsol.cc (show_npsol_option): Likewise. |
|
4766 * qpsol.cc (show_qpsol_option): Likewise. |
|
4767 |
|
4768 * variables.cc (extract_function): New function. |
|
4769 * dassl.cc (Fdassl): Use it instead of is_valid_function. |
|
4770 * fsolve.cc (Ffsolve): Likewise. |
|
4771 * npsol.cc (Fnpsol): Likewise. |
|
4772 * qpsol.cc (Fqpsol): Likewise. |
|
4773 * quad.cc (Fquad): Likewise. |
|
4774 |
2795
|
4775 Thu Mar 6 20:07:24 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4776 |
|
4777 * sighandlers.cc (my_friendly_exit, octave_new_handler, |
|
4778 sigfpe_handler, sigpipe_handler): Don't all error() or warning(). |
|
4779 |
|
4780 * pager.cc (pager_death_handler): Don't try to clear pager, just |
|
4781 print message to cerr. |
|
4782 (do_sync): If the status of the pager is bad or it looks like it |
|
4783 is dead, restore the interrupt handler. |
|
4784 |
|
4785 * load-save.cc (extract_keyword (istream&, char*, int&)): |
|
4786 Move declaration of buf inside loop, to avoid deleting its guts |
|
4787 and then trying to reuse it. |
|
4788 (extract_keyword (istream&, char*)): Likewise. |
|
4789 |
2790
|
4790 Tue Mar 4 20:36:53 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4791 |
2791
|
4792 * pt-fcn.cc (tree_function::eval): Protect function from being |
|
4793 redefined while it is being evaluated. |
|
4794 (unprotect_function): New function, for use with unwind_protect stuff. |
|
4795 * pt-fcn.h (tree_function::symtab_entry): New data member. |
|
4796 (tree_function::init): Initialize it to 0. |
|
4797 (tree_function::stash_symtab_ptr): New function. |
|
4798 * parse.y (frob_function_def): Stash pointer to function's |
|
4799 symbol_record in the function definition. |
|
4800 |
|
4801 * symtab.cc (symbol_record::read_only_error): New argument, |
|
4802 action. Change all callers. |
|
4803 (symbol_record::rename): Don't allow read-only symbols to be renamed. |
|
4804 |
2790
|
4805 * variables.cc (Fexist): Don't let files with `.' in their names |
|
4806 confuse us. |
|
4807 |
|
4808 * symtab.cc (valid_identifier (const string&)): New function. |
|
4809 |
2779
|
4810 Sat Mar 1 15:23:14 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2775
|
4811 |
|
4812 * Version 2.0.5 released. |
|
4813 |
2779
|
4814 Sat Mar 1 01:34:08 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4815 |
|
4816 * Makefile.in (stamp-oct-links): New target. Make links in build |
|
4817 directory too, so that the tests will work. |
|
4818 |
2777
|
4819 * quad.cc: If quad is defined, undefine it. |
|
4820 |
2775
|
4821 * octave.cc: If WITH_KPATHSEARCH is defined, don't define |
|
4822 program_invocation_name or program_invocation_short_name. |
2774
|
4823 |
|
4824 * strftime.c: Update to current version from FSF. |
|
4825 * time.cc (Fstrftime): Call strftime with buf = 0 to get buffer |
|
4826 size, then call again to actually format the time struct. |
|
4827 |
2762
|
4828 Fri Feb 28 01:49:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4829 |
2764
|
4830 Implement switch statement: |
|
4831 |
|
4832 * parse.y (Vwarn_variable_switch_label): New static variable. |
|
4833 (warn_variable_switch_label): New function. |
|
4834 (symbols_of_parse): Provide warn_variable_switch_label as Octave |
|
4835 variable here. |
|
4836 (make_switch_case, finish_switch_command): New functions. |
|
4837 (maybe_warn_variable_switch_label): New function. |
|
4838 (end_error): Handle endswitch. |
|
4839 (switch_command, case_list, case_list1, switch_case, default_case): |
|
4840 New nonterminals. |
|
4841 (command): Add switch_command here. |
|
4842 * lex.l (is_keyword): Handle switch, case, otherwise, and endswitch. |
|
4843 * octave_gperf: Recognize switch, case, otherwise, and endswitch. |
|
4844 * token.h (end_tok_type): New item, switch_end. |
|
4845 * pt-cmd.cc (tree_switch_command): New class. |
|
4846 * pt-misc.cc (tree_switch_case, tree_switch_case_list): New classes. |
|
4847 * pt-pr-code.cc (tree_print_code::visit_switch_case, |
|
4848 tree_print_code::visit_switch_case_list, |
|
4849 tree_print_code::visit_switch_command): New functions. |
|
4850 * pt-walk.h (tree_walker::visit_switch_case, |
|
4851 tree_walker::visit_switch_case_list, |
|
4852 tree_walker::visit_switch_command): New pure virtual declarations. |
|
4853 Implement new switch statement. |
|
4854 * SLList-misc.cc: Instantiate lists of pointers to |
|
4855 tree_switch_case objects too. |
|
4856 |
|
4857 * lex.h, lex.l, parse.y: Delete all references to lexer_flags::iffing. |
|
4858 |
2762
|
4859 * syswait.h: Include sys/wait.h on NeXT systems, but don't use the |
|
4860 WIFEXTED, WEXITSTATUS, and WIFSIGNALLED macros defined there. |
|
4861 Also define waitpid in terms of wait4. From Rex A. Dieter |
|
4862 <rdieter@math.unl.edu>. |
|
4863 |
2759
|
4864 Wed Feb 26 16:43:31 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4865 |
|
4866 * oct-stream.cc (octave_base_stream::do_scanf): Don't report an |
|
4867 error if a conversion fails or we reach EOF. |
|
4868 |
2745
|
4869 Tue Feb 25 22:21:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4870 |
|
4871 * time.cc (strftime): increase initial buffer size. |
|
4872 |
|
4873 Mon Feb 24 17:49:21 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4874 |
|
4875 * pt-fvc.cc (tree_builtin::eval): Enable checking for max number |
|
4876 of arguments. |
|
4877 |
|
4878 * error.cc (handle_message): Don't fail if args is empty. |
|
4879 |
|
4880 Sun Feb 23 22:42:52 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4881 |
|
4882 * lex.h (lexical_feedback::looking_at_return_list): New field. |
|
4883 (lexical_feedback::looking_at_parameter_list): Ditto. |
|
4884 * lex.l (lexical_feedback::init): Initialize them. |
|
4885 (handle_identifier): Use them. |
|
4886 * parse.y: Likewise. |
|
4887 |
2712
|
4888 Fri Feb 21 15:35:18 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4889 |
2716
|
4890 * lex.l: Require flex 2.5 or later (we really want 2.5.4 or later, |
|
4891 but there seems to be no good way to check the patchlevel). |
|
4892 |
2712
|
4893 * oct-stream.cc (octave_base_stream::oscanf): Instead of returning |
|
4894 an error, just quit processing after a conversion fails. |
|
4895 |
2709
|
4896 Thu Feb 20 02:58:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2702
|
4897 |
|
4898 * Version 2.0.4 released. |
|
4899 |
2706
|
4900 Wed Feb 19 10:30:14 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4901 |
2705
|
4902 * sighandlers.cc (octave_ignore_interrupts, |
|
4903 octave_catch_interrupts, octave_set_interrupt_handler): |
|
4904 Return old value, not pointer to static data. Fix all uses. |
|
4905 |
|
4906 * sighandlers.h (octave_interrupt_handler): Move declaration here. |
|
4907 * sighandlers.cc: From here. |
|
4908 |
|
4909 * toplev.cc: Undo previous change. |
|
4910 |
2702
|
4911 * lex.l (handle_identifier): Allow commands like ls, save, etc. to |
|
4912 also be used as simple variable names. Also make it possible to |
|
4913 use the normal function call syntax to invoke them. |
|
4914 |
2693
|
4915 Tue Feb 18 09:22:04 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2689
|
4916 |
2702
|
4917 * Makefile.in (%.oct:%.o, %.oct:pic/%.o): Use $(SH_LDFLAGS) here. |
|
4918 |
2690
|
4919 * Version 2.0.3 released. |
|
4920 |
2693
|
4921 Tue Feb 18 00:27:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4922 |
|
4923 * toplev.cc (run_command_and_return_output): |
|
4924 Block SIGCHLD while running subprocess. |
|
4925 (cleanup_iprocstream): Unblock it here. |
|
4926 |
|
4927 * sighandlers.h (BLOCK_SIGNAL, BLOCK_CHILD, UNBLOCK_CHILD): Move here. |
|
4928 * sighandlers.cc: From here. |
|
4929 |
2692
|
4930 * toplev.cc (system): Shift then mask exit status. |
|
4931 |
|
4932 * help.cc (try_info): Shift first, then mask exit status. |
|
4933 |
2689
|
4934 * toplev.cc (octave_config_info): Handle option argument. |
|
4935 |
2686
|
4936 Fri Feb 14 16:23:30 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4937 |
2687
|
4938 * oct-stream.cc (octave_base_stream::do_scanf): Don't forget to |
|
4939 check to see if the result matrix needs resizing! |
|
4940 |
2686
|
4941 * Makefile.in (bin-dist): Don't write empty strings to LIBRARIES. |
|
4942 |
2669
|
4943 Thu Feb 13 03:02:08 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4944 |
2676
|
4945 * Makefile.in (stamp-prereq): Depend on stamp-picdir. |
|
4946 (all): Don't depend on stamp-prereq or stamp-picdir. |
|
4947 (stamp-tinst, stamp-interp, libtinst.a, liboctinterp.a): |
|
4948 Do depend on stamp-prereq. |
|
4949 (stamp-picdir): Silence noise about making pic. |
|
4950 (stamp-tinst, stamp-interp): Use $(SH_LD) $(SH_LDFLAGS) instead of |
|
4951 $(CXX) -shared. |
|
4952 |
2675
|
4953 * oct-conf.h.in: Reinstate RLD_FLAG. |
|
4954 * toplev.cc (octave_config_info): Likewise. |
|
4955 |
2672
|
4956 * data.cc (map_d_m, map_m_d, map_m_m): Rename from map. |
|
4957 (Fatan2): Use new function names. |
|
4958 |
|
4959 * pt-fvc.cc (apply_mapper_fcn): Use member function map() instead |
|
4960 of friend function. |
|
4961 |
2669
|
4962 * gripes.cc (gripe_wrong_type_arg (const char*, const string&)): |
|
4963 New function. |
|
4964 |
|
4965 Wed Feb 12 17:27:53 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4966 |
|
4967 * syscalls.cc (symbols_of_syscalls): Add O_ASYNC and O_SYNC. |
|
4968 |
|
4969 Mon Feb 10 01:22:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4970 |
|
4971 * dirfns.cc (Freaddir, Fmkdir, Frmdir, Frename): |
|
4972 Also return status and error message. |
|
4973 |
|
4974 * syscalls.cc (Fdup2, Fexec, Ffork, Ffcntl, Funlink, Fmkfifo, |
|
4975 Fpipe, Fwaitpid): Also return error message. |
|
4976 |
2664
|
4977 Sat Feb 8 17:16:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4978 |
2665
|
4979 * pt-exp.cc (tree_simple_assignment_expression::eval): Return |
|
4980 value of RHS, but (if printing) print complete value of LHS. |
|
4981 |
2664
|
4982 * pr-output.cc (octave_print_internal): Print a new line for empty |
|
4983 string matrices. |
|
4984 |
2663
|
4985 Wed Feb 5 14:30:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4986 |
|
4987 * oct-stream.cc (scanf_format_list::process_conversion): Accept |
|
4988 but don't actually use h, l, and L modifiers. Always insert l |
|
4989 modifier for floating point conversions. |
|
4990 |
2652
|
4991 Fri Jan 31 13:55:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4992 |
|
4993 * pager.cc (do_sync): Always flush the cout stream after writing. |
|
4994 |
2643
|
4995 Wed Jan 29 08:25:29 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4996 |
2648
|
4997 * defaults.cc (exec_path): Don't include bin_dir in std_path. |
|
4998 |
2646
|
4999 * pager.cc (do_sync): Flush the cout stream after writing if |
|
5000 running in interactive or forced_interactive mode. |
|
5001 |
|
5002 * mk-oct-links: Rename from mk-oct-links.in. |
|
5003 Don't use symbolic links. |
|
5004 * Makefile.in: Distribute mk-oct-links, not mk-oct-links.in |
|
5005 (mk-oct-links): Delete target. |
|
5006 (install-oct, bin-dist): Don't depend on mk-oct-links. |
|
5007 Run $(srcdir)/mk-oct-links, not ./mk-oct-links. |
|
5008 |
2643
|
5009 * qr.cc (qr): Doc fix. |
|
5010 |
2638
|
5011 Tue Jan 28 10:48:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5012 |
|
5013 * Makefile.in (install-inc): Create a relative symbolic link. |
|
5014 (install-bin): Create a relative symbolic link. |
|
5015 |
2630
|
5016 Mon Jan 27 12:12:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5017 |
2634
|
5018 * Version 2.0.2 released. |
|
5019 |
|
5020 * Makefile.in (CXXFLAGS_NO_PT_FLAGS): Rename from XALL_CXXFLAGS. |
|
5021 Substitute bsd_gcc_kluge_targets_frag. |
|
5022 |
2630
|
5023 * sysdep.cc (Fsleep): New function. |
|
5024 (Fusleep): New function. |
|
5025 |
|
5026 * toplev.cc (octave_config_info): Don't include RLD_FLAG. |
|
5027 * oct-conf.h.in: Don't define RLD_FLAG |
|
5028 |
2626
|
5029 Sun Jan 26 19:41:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5030 |
|
5031 * sighandlers.cc (sigchld_handler): Block SIGCHLD while |
|
5032 sigchld_hander is running. |
|
5033 |
2624
|
5034 Sat Jan 25 22:36:39 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5035 |
|
5036 * Makefile.in (bin-dist): Update for 2.x. |
|
5037 |
2621
|
5038 Fri Jan 24 10:05:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5039 |
|
5040 * mk-oct-links.in: New arg, -p, to just print list of files to link. |
|
5041 |
|
5042 * lex.l (handle_number): Convert `D' or `d' exponents to `e' |
|
5043 before scanning. |
|
5044 |
2620
|
5045 Thu Jan 23 10:00:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5046 |
|
5047 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_no_op_command): |
|
5048 New function. |
|
5049 * pt-cmd.h, pt-cmd.cc (tree_no_op_command): New class. |
|
5050 * parse.y (make_break_command, make_continue_command, |
|
5051 make_return_command): Where they don't really make sense, turn |
|
5052 these commands into no-ops. Accept return and break if reading a |
|
5053 script file. |
|
5054 * toplev.cc (parse_and_execute): Handle return and break in script |
|
5055 files. Quit executing commands if an error occurs when reading a |
|
5056 script file. Set global_command to 0 after deleting it. |
|
5057 (main_loop): If not interactive or forced_interactive, handle |
|
5058 break and return, and quit executing commands if an error occurs. |
|
5059 Set global_command to 0 after deleting it. |
|
5060 * error.cc (Ferror): Doc fix. |
|
5061 * pt-walk.h (tree_walker): Add declaration for visit_no_op_command. |
|
5062 |
2618
|
5063 Wed Jan 22 20:54:12 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5064 |
|
5065 * input.cc (gnu_readline): If not using readline, flush |
|
5066 rl_outstream after printing prompt. |
|
5067 (octave_gets): Also call flush_octave_stdout() if |
|
5068 forced_interactive, not just if interactive. |
|
5069 (do_input_echo): If forced_interactive, only echo prompt and |
|
5070 command line if also reading a script file. |
|
5071 |
2616
|
5072 Tue Jan 21 23:02:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5073 |
|
5074 * SLList.h: Include "BaseSLList.h", not <BaseSLList.h>. |
|
5075 |
2610
|
5076 Mon Jan 20 11:11:12 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5077 |
2614
|
5078 * lex.l (token_stack): Don't declare static. |
|
5079 * pt-plot.cc (tmp_files): Likewise. |
|
5080 * toplev.cc (octave_atexit_functions): Likewise. |
|
5081 * unwind-prot.cc (unwind_protect_list): Likewise. |
|
5082 |
2613
|
5083 * ops.h (MX_MX_BOOL_OP): Correctly handle case of one or both |
|
5084 arguments being empty. Change all callers. |
|
5085 |
|
5086 * oct-stream.cc (printf_value_cache::looking_at_string): |
|
5087 Handle empty strings correctly now that they are 0x0. |
|
5088 |
2610
|
5089 * file-io.cc: Don't include "syswait.h" here. |
|
5090 |
|
5091 Sun Jan 19 22:38:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5092 |
|
5093 * oct-stream.h (octave_base_stream::seek): Declare offset arg as |
|
5094 streamoff, not streampos. |
|
5095 (octave_stream::seek): Likewise. |
|
5096 * oct-strstrm.h (octave_base_strstream::seek): Likewise. |
|
5097 * oct-stdstrm.h (octave_base_stdiostream::seek): Likewise. |
|
5098 * oct-iostrm.h (octave_base_iostream::seek): Likewise. |
|
5099 * oct-fstrm.h (octave_fstream::seek): Likewise. |
|
5100 |
2609
|
5101 Fri Jan 17 18:13:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5102 |
|
5103 * file-io.cc (Ffflush): Handle stdout as a special case. |
|
5104 |
|
5105 * oct-stream.cc (octave_stream_list::do_get_file_number): |
|
5106 Do the work for octave_stream::get_file_number. |
|
5107 (octave_stream_list::get_file_number): Convert to static function. |
|
5108 |
2608
|
5109 Wed Jan 8 11:42:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5110 |
|
5111 * log.cc (sqrtm): For complex arg case, compute sqrt, not log. |
|
5112 |
2602
|
5113 Tue Jan 7 00:16:41 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5114 |
|
5115 * Version 2.0.1 released. |
|
5116 |
|
5117 Mon Jan 6 00:00:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5118 |
|
5119 * pt-mat.cc (tm_row_const_rep::all_mt): New variable. |
|
5120 (tm_row_const::all_empty): New function. |
|
5121 (tm_row_const::tm_row_const_rep::init): Set all_mt here. |
|
5122 (tm_const::all_mt): New variable. |
|
5123 (tm_const::all_emtpy): New function. |
|
5124 (tm_const::init): Set all_mt here. |
|
5125 (tree_matrix::eval): Return an empty matrix if the list contains |
|
5126 only empty elements. If it contains only empty strings, return an |
|
5127 empty string. |
|
5128 |
2601
|
5129 Sun Jan 5 12:50:25 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5130 |
|
5131 * ops.h (SC_MX_BOOL_OP, MX_SC_BOOL_OP): New arg, empty_result. |
|
5132 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
5133 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
5134 op-s-cm.cc, op-s-m.cc, op-str-str.cc: Change all uses of |
|
5135 SC_MX_BOOL_OP and MX_SC_BOOL_OP macros. Return correct results |
|
5136 for empty matrix cases. |
|
5137 |
|
5138 * pt-fcn.cc (tree_function::eval): If Vdefine_all_return_values is |
|
5139 true, initialize return values before evaluating function, for |
|
5140 compatibility with Matlab. |
|
5141 |
|
5142 * oct-stream.cc (get_size): Correctly set size when arg is scalar. |
|
5143 |
|
5144 Thu Jan 2 12:40:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5145 |
|
5146 * Makefile.in (install-oct): Quote $(OCT_FILES) in for loop to |
|
5147 avoid syntax error from ksh. |
|
5148 |
|
5149 * pr-output.cc (octave_print_internal): Avoid unused parameter |
|
5150 warning from gcc. |
|
5151 |
2600
|
5152 Thu Dec 19 12:13:42 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5153 |
|
5154 * oct-stream.cc (octave_base_stream::do_scanf): |
|
5155 Don't treat %l{e,f,g} differently from %{e,f,g}. |
|
5156 (octave_base_stream::do_oscanf): Likewise. |
|
5157 |
|
5158 * sighandlers.cc (sigchld_handler): Fix typos. |
|
5159 |
2598
|
5160 Wed Dec 18 20:17:23 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5161 |
2599
|
5162 * file-io.cc (Ffgetl, Ffgets): Also return number of characters read. |
|
5163 |
|
5164 * ov-range.cc (octave_range::not): New function. |
|
5165 * ov-range.h (octave_range::uminus): New function. |
|
5166 |
2598
|
5167 * BaseSLList.cc: Include error.h. |
|
5168 (BaseSLList::error): Call ::error() to process error message. |
|
5169 |
2589
|
5170 Fri Dec 13 02:38:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5171 |
|
5172 * ov.cc (octave_value::convert_and_assign): Preserve lhs value if |
|
5173 assignment fails. |
|
5174 |
2586
|
5175 Wed Dec 11 12:33:16 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5176 |
|
5177 * pt-plot.cc (GPLOT_CMD_END): Don't put semicolons at the end of |
|
5178 each plot command; it causes trouble with gnuplot 3.5. |
|
5179 |
2580
|
5180 Tue Dec 10 00:31:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5181 |
2583
|
5182 * Version 2.0 released. |
|
5183 |
2584
|
5184 * pr-output.cc (set_format_style): Don't try to access argv unless |
|
5185 argc > 1. |
|
5186 |
2580
|
5187 * SLList-expr.cc SLList-misc.cc SLList-plot.cc SLList-str.cc |
|
5188 SLList-tc.cc SLList-tm.cc SLList.h SLStack-i.cc SLStack-pc.cc |
|
5189 SLStack-str.cc SLStack-sym.cc SLStack-tok.cc SLStack-ue.cc |
|
5190 SLStack-ui.cc, pt-mat.cc: Include Stack.h, Stack.cc, SLStack.cc, |
|
5191 and SLList.cc as necessary. |
|
5192 |
|
5193 * Stack.cc, SLStack.cc, SLList.cc: New files. |
|
5194 * Makefile.in (SOURCES): Add them to the list. |
|
5195 |
2575
|
5196 Mon Dec 9 12:03:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5197 |
2577
|
5198 * Makefile.in (install-bin): Use $(EXE) suffix so install will |
|
5199 find the right file on cygwin32 systems. |
|
5200 |
2575
|
5201 * ov.h: Declare proper form of do_binary_op as friend to |
|
5202 octave_value class. |
|
5203 |
2572
|
5204 Sat Dec 7 22:00:10 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5205 |
|
5206 * oct-stream.cc (do_printf_conv, do_scanf_conv, |
|
5207 do_oscanf_num_conv, do_oscanf_str_conv): Convert to real |
|
5208 functions instead of CPP macros, using templates where necessary. |
|
5209 (do_oscanf_num_conv, do_oscanf_str_conv): Correctly handle |
|
5210 discarded values. |
|
5211 |
2569
|
5212 Fri Dec 6 00:20:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5213 |
2572
|
5214 * Version 1.94. |
|
5215 |
2571
|
5216 * Map-*.cc, SLList-*.cc, SLStack-*.cc: Include config.h. |
|
5217 |
|
5218 * ov.h: Don't include SLList.h. |
|
5219 |
|
5220 * SLStack.cc: Delete. Move everything to SLStack.h. |
|
5221 |
|
5222 * BaseSLList.h, BaseSLList.cc: New files. Split out the |
|
5223 non-template base class parts of SLList. |
|
5224 |
2569
|
5225 * Makefile.in (TEMPLATE_SRC): Delete. Move files to SOURCES. |
|
5226 * Map.h, Map.cc: Add #pragma interface/implementation. |
|
5227 * SLStack.h, SLStack.cc: Add #pragma interface/implementation. |
|
5228 |
|
5229 * SLList.h, SLList.cc: New files, from libg++, but with #pragma |
|
5230 interface/implementation. |
|
5231 * Makefile.in (SOURCES): Add SLList.cc. |
|
5232 (INCLUDES): Add SLList.h. |
|
5233 |
2566
|
5234 Thu Dec 5 18:36:44 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5235 |
|
5236 * octave.cc: Don't include sun-utils.h. |
|
5237 |
2563
|
5238 Tue Dec 3 23:47:09 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5239 |
|
5240 * op-str-str.cc (eq, ne): Handle operations with scalars. |
|
5241 |
2555
|
5242 Thu Nov 21 12:30:36 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5243 |
|
5244 * ov-str-mat.h (octave_char_matrix_str): Provide transpose and |
|
5245 hermitian operators. |
|
5246 * ov-ch-mat.h (octave_char_matrix): Likewise. |
|
5247 |
2548
|
5248 Wed Nov 20 00:35:57 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5249 |
2554
|
5250 * sighandlers.h (struct octave_interrupt_handler): Provide |
|
5251 forward declaration here. |
|
5252 * sighandlers.cc (octave_interrupt_handler): New struct. |
|
5253 (octave_catch_interrupts): Rename from catch_interrupts. |
|
5254 (octave_ignore_interrupts, octave_set_interrupt_handler): |
|
5255 New functions. |
|
5256 * help.cc, oct-hist.cc, pager.cc, toplev.cc: Use new functions for |
|
5257 handling interrupts so that we can hide the details of whether or |
|
5258 not we have to deal with SIGBREAK. |
|
5259 |
|
5260 * pt-plot.cc [! HAVE_POSIX_SIGNALS] (open_plot_stream): |
|
5261 Simply ignore and restore the interrupt handler here. |
|
5262 |
|
5263 * sighandlers.cc (MAYBE_REINSTALL_SIGHANDLER): New macro. Use it |
|
5264 instead of always checking MUST_REINSTALL_SIGHANDLERS everywhere. |
|
5265 (sigchld_handler): If octave_child_list is empty, wait for any |
|
5266 child, but don't hang, and don't collect status info. |
|
5267 [__EMX__] (sigchld_handler): Save and restore handlers for SIGINT, |
|
5268 SIGBREAK, and SIGCHLD. Ignore them while waiting on children. |
|
5269 (install_signal_handlers): If SIGBREAK exists, handle it like SIGINT. |
|
5270 |
2552
|
5271 * toplev.cc [USE_READLINE] (clean_up_and_exit): |
|
5272 Call rl_deprep_terminal() to restore terminal settings. |
|
5273 |
|
5274 * sysdep.cc [__EMX__ && OS2] (Fextproc): New command. |
|
5275 [__EMX__ && OS2] (FEXTPROC): Alias for Fextproc. |
|
5276 |
|
5277 * Version 1.93. |
|
5278 |
2549
|
5279 * sysdep.cc (octave_chdir): [__EMX__]: Make copy of string before |
|
5280 converting to upper case. |
|
5281 |
2548
|
5282 * getgrent.cc (mk_gr_map): Only set the passwd field if |
|
5283 HAVE_GR_PASSWD is defined. |
|
5284 |
2533
|
5285 Tue Nov 19 12:01:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5286 |
2546
|
5287 * sysdep.cc (OS2_init): New function. |
|
5288 [__EMX__] (sysdep_init): Call it. |
|
5289 |
2542
|
5290 * lex.l (plot_style_token): Add new plot styles for gnuplot 3.6. |
2543
|
5291 * pt-plot.cc (subplot_style::columns_ok): Rename from |
|
5292 subplot_style::errorbars. Recognize more styles and do a better |
|
5293 job of diagnosing column number/style mismatches. |
2542
|
5294 |
2536
|
5295 * sighandlers.cc (my_friendly_exit): If we are called twice, try |
|
5296 to remove the signal handler for SIGABRT and the call abort (). |
|
5297 |
2534
|
5298 * help.cc (Ftype): If a function is defined from a file and |
|
5299 transformed text has not been requested, just print the contents |
|
5300 of the file. |
|
5301 |
2533
|
5302 * parse.y (fold): New functions for constant folding for binary |
|
5303 and unary expressions. Keep track of original text even when |
|
5304 transformations occur. |
|
5305 (make_binary_op, make_boolean_op, make_unary_op): Use them. |
|
5306 (finish_colon_expression, finish_matrix): Keep track of original |
|
5307 text even when transformations occur. |
|
5308 |
|
5309 * help.cc (Ftype): Don't mess with Vps4. |
|
5310 Handle new option `-transformed'. |
|
5311 |
|
5312 * pt-const.h, pt-const.cc (tree_constant::print): |
|
5313 New arg, pr_orig_text. |
|
5314 |
|
5315 * pt-exp.h, pt-exp.cc (tree_colon_expression::is_range_constant): |
|
5316 Delete. |
|
5317 |
|
5318 * pt-exp-base.h (tree_expression::original_text): New virtual function. |
|
5319 pt-exp-base.cc (tree_expression::original_text): Default version. |
|
5320 |
|
5321 * pt-pr-code.h (tree_print_code::print_original_text, |
|
5322 tree_print_code::prefix): New fields. |
|
5323 * pt-pr-code.cc (tree_print_code::visit_constant): Pass |
|
5324 print_original_text to tree_constant::print(). |
|
5325 (tree_print_code::indent): Use prefix instead of Vps4. |
|
5326 * pt-fcn.cc (tree_function::print_function_header, |
|
5327 tree_function::print_function_trailer): Pass Vps4 to |
|
5328 tree_print_code_constructor for prefix. |
|
5329 * pt-misc.cc (tree_statement::maybe_echo_code): Pass Vps4 to |
|
5330 tree_print_code_constructor for prefix. |
|
5331 |
|
5332 * pt-mat.h, pt-mat.cc (tree_matrix::all_elements_are_constant): |
|
5333 Rename from is_matrix_constant. |
|
5334 (tree_matrix_row::all_elements_are_constant): Likewise. |
|
5335 Change all callers. |
|
5336 |
|
5337 Mon Nov 18 14:13:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5338 |
|
5339 * Makefile.in (install-inc): Try harder to create the link from |
|
5340 include/octave to include/octave-VERSION. |
|
5341 |
2524
|
5342 Sun Nov 17 14:14:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5343 |
2527
|
5344 * Makefile.in (parse.cc): Expect 13 shift/reduce conflicts. |
2526
|
5345 |
2525
|
5346 * parse.y (set_stmt_print_flag): New function. |
|
5347 (sep_type): New member for bison %union declaration. |
|
5348 Simplify rules for statement lists keeping track of the type of |
|
5349 the first separator in the values associated with the |
|
5350 nonterminals for the separators. |
|
5351 |
2524
|
5352 * lex.l (handle_identifier): Set lexer_flags.doing_set if the |
|
5353 token is "gset", not "set". |
|
5354 |
|
5355 Sat Nov 16 21:41:26 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5356 |
|
5357 * Makefile.in (parse.cc, lex.cc): Add special rules for these files. |
|
5358 Delete pattern rules for .y and .l files. |
|
5359 |
2522
|
5360 Fri Nov 15 13:48:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5361 |
2523
|
5362 * pt-plot.cc: Put semicolons at the ends of all plot commands. |
|
5363 |
2522
|
5364 * defaults.cc (subst_octave_home): Start subsequent searchs from |
|
5365 the end of the replaced text. |
|
5366 |
|
5367 * pr-output.cc (pr_any_float): Kluge for SCO systems. |
|
5368 |
|
5369 * pr-output.cc (pr_any_float, pr_complex): Don't declare inline. |
|
5370 |
|
5371 * mappers.cc: Include lo-ieee.h, for isinf and isnan on SCO |
|
5372 systems. |
|
5373 |
2512
|
5374 Thu Nov 14 00:06:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5375 |
2520
|
5376 * pt-plot.cc (Fgset, Fgshow): New commands. |
|
5377 (Fshow): Print warning and call gshow. |
|
5378 (Fset): Print warning and call gset. |
|
5379 |
2517
|
5380 * variables.cc (parse_fcn_file): Add unwind-protect for file |
|
5381 pointer, so the file is always closed. |
|
5382 (get_help_from_file): Likewise. |
|
5383 * toplev.cc (parse_and_execute): Likewise. |
|
5384 |
2516
|
5385 * Makefile.in (install-oct): Depend on mk-oct-links. |
|
5386 (mk-oct-links): New target. |
|
5387 |
2512
|
5388 * Version 1.92. |
|
5389 |
2508
|
5390 Wed Nov 13 11:13:22 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5391 |
2512
|
5392 * sighandlers.cc (sys_siglist): [__EMX__]: Add definitions. |
|
5393 |
|
5394 * octave.cc (execute_startup_files): Allow init file name ot be |
|
5395 specified by an environment variable. |
|
5396 |
|
5397 * dirfns.cc (make_absolute): [__EMX__]: Path is already absolute |
|
5398 if it begins with any character followed by a colon. |
|
5399 |
2511
|
5400 * load-save.cc (read_mat_ascii_matrix, get_lines_and_columns, |
|
5401 get_complete_line): New functions, for reading headless text files. |
|
5402 (load_save_format): Add LS_MAT_ASCII, for headless text files. |
|
5403 (do_load): Handle LS_MAT_ASCII files. |
|
5404 Thanks to Mel Melchner <mjm@research.att.com> for initial version |
|
5405 of this code. |
|
5406 |
2508
|
5407 * sysdep.cc: Conditionally include ieeefp.h. |
|
5408 (BSD_init, SCO_init): New functions. |
|
5409 (sysdep_init): Conditionally call them here. |
|
5410 |
2499
|
5411 Tue Nov 12 00:14:56 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5412 |
2508
|
5413 * pt-plot.cc (open_plot_stream): Don't block SIGCHLD. |
|
5414 |
2499
|
5415 * load-save.cc (read_binary_data): When reading string arrays, be |
|
5416 sure to create an octave_char_matrix_str object, not just an |
|
5417 octave_char_matrix object. |
|
5418 (read_ascii_data): Likewise. |
|
5419 |
2497
|
5420 Mon Nov 11 22:52:58 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5421 |
|
5422 * load-save.cc (read_binary_data): Don't forget teminating NUL for |
|
5423 string that we plan to insert. |
|
5424 (read_ascii_data): Likewise. |
|
5425 |
2495
|
5426 Sun Nov 10 16:58:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5427 |
2496
|
5428 * dirfns.cc (Ffnmatch): New function. |
|
5429 |
2495
|
5430 * octave.cc (intern_argv): Use new string_vector constructor. |
|
5431 |
|
5432 * ov-str-mat.cc (octave_char_matrix_str::all_strings): Have |
|
5433 charMatrix::row_as_string() strip trailing whitespace. |
|
5434 |
|
5435 * dirfns.cc (Fglob): new function. |
|
5436 |
|
5437 * sysdep.cc (oct_tilde_expand): Provide version that works on |
|
5438 string vectors too. |
|
5439 (Ftilde_expand): Work on string vector args. |
|
5440 |
|
5441 * load-save.cc (save_binary_data): Call char_matrix_value() to |
|
5442 extract charMatrix from octave_value object, not all_strings(). |
|
5443 (save_ascii_data): Likewise. |
|
5444 * pt-mat.cc (tree_matrix::eval): Likewise. |
|
5445 |
|
5446 * ov.h (octave_value::all_strings): Return string_vector, not |
|
5447 charMatrix. |
|
5448 * ov-base.cc (octave_base_value::all_strings): Likewise. |
|
5449 * ov-str-mat.h, ov-str-mat.cc (octave_char_matrix_str::all_strings): |
|
5450 Likewise. |
|
5451 |
2487
|
5452 Fri Nov 8 09:54:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5453 |
2492
|
5454 * defaults.cc, dynamic-ld.cc, fn-cache.cc, help.cc, oct-hist.cc, |
|
5455 octave.cc, pager.cc, pt-fcn.cc, toplev.cc, utils.cc, variables.cc, |
|
5456 lex.l: Change #include "" to #include <> for defaults.h, |
|
5457 oct-conf.h, oct-gperf.h, y.tab.h, and version.h, to avoid getting |
|
5458 them from $srcdir when we really want the version from the build |
|
5459 directory. (Maybe this should be done for all the include files, |
|
5460 not just those that are auto-generated? Hmm.) |
|
5461 |
2488
|
5462 * defaults.h.in (CXXLIB_LIST, CXXLIB_PATH, FLIB_LIST, FLIB_PATH): |
|
5463 Delete. |
|
5464 |
2487
|
5465 * Makefile.in (install-oct): Use $(INSTALL_PROGRAM) for .oct files. |
|
5466 |
2477
|
5467 Thu Nov 7 07:59:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5468 |
2487
|
5469 * variables.cc (gobble_leading_white_space): New arg, update_pos. |
|
5470 * (is_function_file): Don't update file position information here. |
|
5471 |
2482
|
5472 * Version 1.91. |
|
5473 |
2479
|
5474 * pt-fvc.cc (tree_indirect_ref::reference): If the lhs object is |
|
5475 not a map, convert it to one. |
|
5476 |
|
5477 * ov-typeinfo.h (init_tab_sz): New static member. |
|
5478 |
2477
|
5479 * ov-struct.cc, ov-struct.h: Add hooks for custom memory management. |
|
5480 * ov-scalar.cc, ov-scalar.h: Likewise. |
|
5481 * ov-re-mat.cc, ov-re-mat.h: Likewise. |
|
5482 * ov-range.cc, ov-range.h: Likewise. |
|
5483 * ov-cx-mat.cc, ov-cx-mat.h: Likewise. |
|
5484 * ov-complex.cc, ov-complex.h: Likewise. |
|
5485 * ov-ch-mat.cc, ov-ch-mat.h: Likewise. |
|
5486 |
2474
|
5487 Wed Nov 6 12:32:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5488 |
2482
|
5489 * pager.cc (do_sync): Don't call clear_external_pager() here. |
2476
|
5490 |
2475
|
5491 * pt-const.h (tree_constant::allocator) New static member. |
|
5492 (tree_constant::operator new, tree_constant::operator delete): |
|
5493 Implement with custom allocator. |
|
5494 |
|
5495 * syscalls.cc (Fgetgid, Fgetegid): New functions. |
|
5496 |
|
5497 * sighandlers.cc (sigchld_handler): If necessary, reinstall |
|
5498 handler after call to waitpid(). |
|
5499 |
|
5500 * pager.cc (pager_death_handler): Don't use warning() to print |
|
5501 message. |
|
5502 |
|
5503 * getgrent.cc: New file. |
|
5504 * Makefile.in (DLD_SRC): Add it. |
|
5505 |
|
5506 * ov.cc (octave_value::print_with_name): Call is_map() instead of |
|
5507 print_as_structure(). |
|
5508 * ov-struct.cc (octave_struct::print): Likewise. |
|
5509 |
|
5510 * ov.h, ov.cc, pt-const.h: Delete force_numeric(), make_numeric(), |
|
5511 convert_to_matrix_type(), print_as_structure() member functions. |
|
5512 |
2474
|
5513 * variables.cc (is_function_file): Call gobble_leading_whitespace |
|
5514 here to strip all leading whitespace and comments. |
|
5515 (parse_fcn_file): If reading a function file, call |
|
5516 gobble_leading_whitespace again after resetting parser state to |
|
5517 grab help text. |
|
5518 |
2469
|
5519 Tue Nov 5 13:00:35 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5520 |
2472
|
5521 * syscalls.cc (Fgeteuid, Fgetuid): New functions. |
|
5522 |
|
5523 * getpwent.cc: Use gripe_not_supported from gripes.cc, instead of |
|
5524 local gripe_not_implemented function. |
|
5525 |
2470
|
5526 * input.cc, sysdep.cc, variables.cc: Only include readline.h and |
|
5527 history.h if USE_READLINE is defined. |
|
5528 |
|
5529 * help.cc: Make it compile without warnings even if USE_GNU_INFO |
|
5530 is not defined. |
|
5531 |
2469
|
5532 * sighandlers.h (octave_child_list): Don't define |
|
5533 HAVE_POSIX_SIGNALS HERE. |
|
5534 |
|
5535 * sighandlers.cc (SIGHANDLER_RETURN): New macro. |
|
5536 (generic_sig_handler, sigchld_handler, sigfpe_handler, |
|
5537 sigint_handler, sigpipe_handler): Use it. |
|
5538 (sigchld_handler, sigfpe_handler, sigint_handler, sigpipe_handler): |
|
5539 Only reinstall signal handler if MUST_REINSTALL_SIGHANDLER is defined. |
|
5540 |
2463
|
5541 Sun Nov 3 00:45:30 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5542 |
2466
|
5543 * pt-const.cc (tree_constant::print): Just call val.print(). |
|
5544 * ov-base.cc, ov-ch-mat.cc, ov-colon.cc, ov-complex.cc, |
|
5545 ov-cx-mat.cc, ov-range.cc, ov-re-mat.cc, ov-scalar.cc, |
|
5546 ov-str-mat.cc, ov-struct.cc ov-va-args.cc, ov.cc (print): |
|
5547 Handle pr_as_read_syntax arg. |
|
5548 |
|
5549 * defaults.cc (subst_octave_home): Search for prefix repeatedly in |
|
5550 retval, not s. |
|
5551 |
|
5552 * gripes.h: Make declaration of gripes_not_supported match |
|
5553 definition. |
|
5554 |
2465
|
5555 * mk-oct-links.in: In sed command, match "DEFUN_DLD *( *", not |
|
5556 "DEFUN_DLD_BUILTIN *( *". |
|
5557 |
|
5558 * chol.cc, colloc.cc, dassl.cc, det.cc, eig.cc, expm.cc, fft.cc, |
|
5559 fft2.cc, filter.cc, find.cc, fsolve.cc, fsqp.cc, getpwent.cc, |
|
5560 getrusage.cc, givens.cc, hess.cc, ifft.cc, ifft2.cc, inv.cc, |
|
5561 log.cc, lpsolve.cc, lsode.cc, lu.cc, minmax.cc, npsol.cc, pinv.cc, |
|
5562 qpsol.cc, qr.cc, quad.cc, qzval.cc, rand.cc, schur.cc, sort.cc, |
|
5563 svd.cc, syl.cc, time.cc: Change all uses of DEFUN_DLD_BUILTIN to |
|
5564 be just DEFUN_DLD. |
|
5565 |
|
5566 * defun-dld.h: Eliminate DEFUN_DLD_BUILTIN. |
|
5567 |
2464
|
5568 * syswait.h: Use #ifdef HAVE_SYS_WAIT_H, not #if HAVE_SYS_WAIT_H |
|
5569 to decide whether to include sys/wait.h. |
|
5570 |
|
5571 * pt-exp-base.h (tree_expression): Declare oper() here as a |
|
5572 virtual member function. |
|
5573 |
2463
|
5574 * pt-pr-code.cc (tree_print_code::visit_constant): Check for |
|
5575 string before checking for char_matrix. |
|
5576 |
|
5577 * ov-ch-mat.cc (octave_char_matrix::print): Supply correct number |
|
5578 of args to octave_print_internal(). |
|
5579 |
2457
|
5580 Sat Nov 2 20:44:55 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5581 |
2458
|
5582 * file-io.cc (Ftmpnam): Rename from Foctave_temp_file_name. |
|
5583 |
2457
|
5584 * Makefile.in (DLD_SRC): Move time.cc and getrusage.cc here from |
|
5585 SOURCES. Add getpwent.cc. |
|
5586 |
|
5587 * getrusage.cc: Rename from resource.cc. Make getrusage a |
|
5588 loadable function. |
|
5589 |
|
5590 * time.cc: Rename from timefns.cc. Make time functions loadable. |
|
5591 |
|
5592 * getpwent.cc: New file. |
|
5593 |
2439
|
5594 Wed Oct 30 01:06:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5595 |
2452
|
5596 * Version 1.90. |
|
5597 |
|
5598 * Makefile.in (DISTFILES): Add ChangeLog. |
|
5599 |
2449
|
5600 * ov-range.cc (octave_range::convert_to_str): New function. |
|
5601 |
|
5602 * ov-str-mat.h (octave_char_matrix_str::char_matrix_value): |
|
5603 Delete function. Already handled by octave_char_matrix class. |
|
5604 |
|
5605 * ov-ch-mat.h (octave_char_matrix::convert_to_str): New function. |
|
5606 |
2448
|
5607 * pager.cc (Fmore): Set page_screen_output to 1.0 or 0.0, not |
|
5608 "true" or "false". |
|
5609 |
2447
|
5610 * ov-ch-mat.cc, ov-struct.cc, ov-struct.h, pr-output.cc, |
|
5611 pt-cmd.cc, pt-const.cc, pt-const.h, pt-fcn.cc, pt-fvc-base.cc, |
|
5612 pt-fvc-base.h, pt-fvc.cc, pt-fvc.h, rand.cc, sighandlers.cc, |
|
5613 variables.cc, variables.h: Delete unused code. |
|
5614 |
2445
|
5615 * octave.cc: Only include pwd.h if HAVE_PWD_H. |
|
5616 |
|
5617 * oct-strstrm.h: Include <string>, not <string.h>. |
|
5618 |
2442
|
5619 * defaults.cc, dirfns.cc, file-io.cc, help.cc, input.cc, |
|
5620 oct-hist.cc, oct-procbuf.cc, oct-procbuf.h, octave.cc, pager.h, |
|
5621 procstream.h, pt-misc.cc, pt-plot.cc, sighandlers.cc, strftime.c, |
|
5622 syscalls.cc, sysdep.cc, syswait.h, toplev.cc, utils.cc, |
|
5623 variables.cc: Only include sys/types.h if HAVE_SYS_TYPES_H. |
|
5624 |
2440
|
5625 * error.h (panic): Use GCC_ATTR_NORETURN macro, not NORETURN. |
|
5626 * toplev.h (clean_up_and_exit): Likewise. |
|
5627 * utils.h (jump_to_top_level): Likewise. |
|
5628 |
2439
|
5629 * derfaults.h.in, defaults.cc (local_arch_lib_dir): New variable. |
|
5630 * defaults.cc (set_default_local_arch_lib_dir): New function. |
|
5631 (install_defaults): Call it. |
|
5632 (exec_path): Use Vlocal_arch_lib_dir here. |
|
5633 * toplev.cc (octave_config_info): Add localarchlibdir to structure. |
|
5634 |
2436
|
5635 Tue Oct 29 15:54:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5636 |
2437
|
5637 * Makefile.in (install-oct): Don't do anything if $(OCT_FILES) is |
|
5638 empty. |
|
5639 |
2436
|
5640 * ov-range.cc (octave_range::index): New Function. |
|
5641 (octave_range::all, octave_range::any, octave_range::is_true): |
|
5642 Make these functions work. |
|
5643 |
|
5644 * ov.cc (octave_value::try_assignment_with_conversion): Remove |
|
5645 left over debugging print statements. |
|
5646 |
|
5647 Mon Oct 28 10:49:03 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5648 |
|
5649 * strftime.c: Add missing #endif for previous change. |
|
5650 |
2435
|
5651 Sun Oct 27 14:06:44 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5652 |
|
5653 * oct-hist.cc (do_history): Rewite option parsing to avoid |
|
5654 (probably bogus) errors from g++ on cygwin32 system. |
|
5655 |
|
5656 * strftime.c: Use autoconf macros TIME_WITH_SYS_TIME and |
|
5657 HAVE_SYS_TIME_H to decide which time.h files to include. |
|
5658 |
|
5659 * oct-stream.h, oct-stream.cc (octave_stream::error, |
|
5660 octave_base_stream::error): Rename errno => err_num. |
|
5661 |
2432
|
5662 Sat Oct 26 10:40:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5663 |
2434
|
5664 * oct-hist.cc (do_history): Move declaration of file inside |
|
5665 conditional. |
|
5666 |
2432
|
5667 * defun.h (DEFVAR_INT): Set eternal flag with (svc_fcn != 0) |
|
5668 instead of (sv_fcn ? 1 : 0) |
|
5669 |
2427
|
5670 Fri Oct 25 01:10:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5671 |
2431
|
5672 * ov-ch-mat.h (octave_char_matrix::any): Return 0.0 instead of false. |
|
5673 (octave_char_matrix::all): Likewise. |
|
5674 |
|
5675 * input.cc (Fecho): When binding value of echo_executing_commands, |
|
5676 cast ECHO_* to double. |
|
5677 |
|
5678 * sighandlers.cc (octave_child_list::do_remove): Delete unused |
|
5679 variable `enlarge'. |
|
5680 |
|
5681 * pt-const.h (tree_constant::tree_constant (const tree_constant&)): |
|
5682 Don't pass arg to tree_fvc constructor. |
|
5683 |
2427
|
5684 * resource.cc (getrusage): [HAVE_GETRUSAGE && RUSAGE_TIMES_ONLY]: |
|
5685 Only fill in time values. |
|
5686 |
|
5687 Thu Oct 24 20:37:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5688 |
|
5689 * parse.y: Comment out the %expect declaration so byacc can |
|
5690 compile this file. |
|
5691 (if_cmd_list): Add missing semicolon. |
|
5692 Include <cstdlib> for getenv if using byacc. |
|
5693 |
|
5694 * ov.h: Move typedefs outside of octave_value class scope to avoid |
|
5695 problem with cygwin32 beta16 compiler. |
|
5696 |
2421
|
5697 Fri Oct 18 13:44:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5698 |
2423
|
5699 * ov.h (octave_value::index): Undo previous change. |
|
5700 * ov.cc (octave_value constructors): Call maybe_mutate() in most |
|
5701 cases. |
|
5702 |
|
5703 * ov-complex.cc (octave_complex::index): Avoid implicit type |
|
5704 conversion back to scalar type. |
|
5705 * ov-scalar.cc (octave_scalar::index): Likewise. |
|
5706 |
2421
|
5707 * ov.h (octave_value::index): Call maybe_mutate() on retval before |
|
5708 returning it. |
|
5709 |
2418
|
5710 Wed Oct 16 12:00:11 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5711 |
2420
|
5712 * ov.h (octave_value::struct_elt_val): New optional arg, silent. |
|
5713 * ov-base.h, ov-base.cc, ov-struct.h, ov-struct.cc: Likewise, but |
|
5714 for the derived classes the arg is required. |
|
5715 |
|
5716 * data.cc (Fstruct_contains): Require arguments to be struct and |
|
5717 string, respectively. Call octave_value::struct_elt_val with |
|
5718 silent flag set. |
|
5719 |
2419
|
5720 * pt-mat.cc (tm_row_const::tm_row_const_rep::eval_error, |
|
5721 tm_row_const::tm_row_const_rep::eval_warning): New functions. |
|
5722 (tm_row_const::tm_row_const (const tree_matrix_row&): Use them to |
|
5723 give better error messages. |
|
5724 |
2418
|
5725 * pt-fvc.cc (tree_identifier::eval): Avoid dereferencing null |
|
5726 object_to_eval. |
|
5727 |
2412
|
5728 Tue Oct 15 11:35:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5729 |
|
5730 * op-cs-cm.cc, op-cs-cs.cc, op-cs-m.cc, op-cs-s.cc |
|
5731 (complex_matrix_conv): New functions. |
|
5732 Install preferred assignment conversion and widening ops. |
|
5733 |
|
5734 * op-s-cm.cc, op-s-cs.cc (complex_matrix_conv): New functions. |
|
5735 Install preferred assignment conversion and widening ops. |
|
5736 |
|
5737 * op-s-m.cc, op-s-s.cc (matrix_conv): New functions. |
|
5738 Install preferred assignment conversion and widening ops. |
|
5739 |
|
5740 * ov.cc (octave_value::try_assignment_with_conversion, |
|
5741 octave_value::convert_and_assign, octave_value::try_assignment): |
|
5742 New functions. |
|
5743 (octave_value::assign): Use them to implement twisted logic for |
|
5744 type conversions in assigments. |
|
5745 |
|
5746 * pt-const.h (tree_constant::maybe_mutate): New function. |
|
5747 * ov.h (octave_value::maybe_mutate): New function. |
|
5748 (octave_value::try_narrowing_conversion): New function. |
|
5749 Use just one typedef for widening_op_fcn and numeric_conv_fcn. |
|
5750 Change all uses. |
|
5751 * ov-base.h, ov-complex.h, ov-complex.cc, ov-cx-mat.h, |
|
5752 ov-cx-mat.cc, ov-range.h, ov-range.cc, ov-re-mat.h, ov-re-mat.cc, |
|
5753 Provide derived class versions of try try_narrowing_conversion(). |
|
5754 |
|
5755 * pr-output.cc (octave_print_internal): Don't bother handing off |
|
5756 to scalar/real versions, even when it would seem appropriate. |
|
5757 |
|
5758 * symtab.cc (symbol_def::define (tree_constant *)): Call |
|
5759 maybe_mutate on constants here. |
|
5760 |
2405
|
5761 Mon Oct 14 11:05:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5762 |
2407
|
5763 * pt-fvc.cc (tree_identifier::eval): If retval is undefined and |
|
5764 the object to eval is a constant, print error message. |
2406
|
5765 |
2405
|
5766 * Makefile (distclean): Remove *.oct too. |
|
5767 |
|
5768 * defun-int.h: Include variables.h here. |
|
5769 |
2403
|
5770 Sun Oct 13 10:52:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5771 |
2404
|
5772 * variables.cc (print_symbol_info_line): Never print negative |
|
5773 diminsions. |
|
5774 |
|
5775 * symtab.h (octave_symbol_record_info): Store const_type as string. |
|
5776 (octave_symbol_record_info::init): Delete. Fix constructors. |
|
5777 (octave_symbol_record_info::type_name): Handle const_type as string. |
|
5778 |
2403
|
5779 * octave.cc (maximum_braindamage): Replace "true" with 1.0 and |
|
5780 "false" with 0.0 in calls to bind_builtin_variable(). |
|
5781 Include sun-utils.h here. |
2404
|
5782 (intern_argv): Also bind __argv__. |
2403
|
5783 |
2391
|
5784 Sat Oct 12 13:40:21 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5785 |
2399
|
5786 * Makefile.in (distclean): Also delete mk-oct-links. |
|
5787 |
|
5788 Fri Oct 11 13:13:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5789 |
2391
|
5790 Changes for Octave's new type system: |
|
5791 |
|
5792 * arith-ops.cc: Delete. |
|
5793 * pt-const.h, pt-const.cc: Massive changes. Most functionality |
|
5794 moved to ov.h, ov.cc, and derived classes. |
|
5795 |
|
5796 * variables.h, variables.cc (octave_variable_reference): New class |
|
5797 for getting references to variables and structure elements used in |
|
5798 assignments or value contexts. |
|
5799 |
|
5800 * symtab.h, symtab.cc (symbol_record::define (const octave_value&), |
|
5801 symbol_record::variable_value, symbol_record::variable_reference): |
|
5802 New functions. |
|
5803 (symbol_record_info::type_name): Rename from type_as_string. |
|
5804 |
|
5805 * pt-fvc-base.h, pt-fvc-base.cc (tree_fvc::increment, |
|
5806 tree_fvc::decrement): New functions to replace |
|
5807 tree_fvc::bump_value. |
|
5808 #if 0 assign and lookup_map_element functions. |
|
5809 |
|
5810 * pt-mvr.cc (tree_multi_assignment_expression::eval): |
|
5811 Generated RHS value is now a tree_constant. |
|
5812 |
|
5813 * pt-exp.h, pt-exp.cc (tree_boolean_expression): New class. |
|
5814 (tree_unary_expression, tree_binary_expression, |
|
5815 tree_boolean_expression): Move codes here from tree_expression. |
|
5816 (tree_simple_assignment_expression): Cope with changes to way of |
|
5817 doing assignments. |
|
5818 |
|
5819 * pt-exp-base.h, pt-exp-base.cc (enum type): Delete codes for |
|
5820 unary and binary ops. |
|
5821 (tree_expression::expression_type): Delete. |
|
5822 (tree_expression::is_logically_true): Hand off to |
|
5823 octave_value::is_true to do real work. |
|
5824 |
|
5825 * pr-output.h, pr-output.cc (any_element_is_inf_or_nan, |
|
5826 all_elements_are_ints): Delete. Call member new functions for |
|
5827 these operations. |
|
5828 (free_format, plus_format, bank_format, hex_format, |
|
5829 compact_format, print_e, print_big_e): Use bool, not int. |
|
5830 (octave_print_internal): Hand off to scalar/real versions when |
|
5831 appropriate. |
|
5832 |
|
5833 * octave.cc (main): Call initialize_types() and install_ops(). |
|
5834 (verbose_usage): Add WWW address to output. |
|
5835 |
|
5836 * parse.y (indirect_ref): Handle by making a tree instead of a |
|
5837 list using new version of tree_indirect_ref class. |
|
5838 |
|
5839 * parse.y (make_boolean_op): New function. Use it instead of |
|
5840 make_binary_op to create trees for && and || ops. |
|
5841 (make_binary_op): Codes come from tree_binary_expression now, |
|
5842 instead of tree_expression. |
|
5843 (make_unary_op): Codes come from tree_unary_expression now, |
|
5844 instead of tree_expression. |
|
5845 (make_boolean_op): Codes come from tree_boolean_expression. |
|
5846 |
|
5847 *parse.y (tree_constant_type): Change type to tree_constant* from |
|
5848 octave_value*, and rename from octave_value_type. Change uses. |
|
5849 |
|
5850 * defun.h (DEFVAR_INT): Pass octave_value not pointer to |
|
5851 octave_value for defn when creating builtin_variable. |
|
5852 |
|
5853 * gripes.h, gripes.cc (gripe_invalid_conversion): Args are |
|
5854 strings, not char*. |
|
5855 (gripe_implicit_conversion, gripe_divide_by_zero): New extern |
|
5856 gripe functions. |
|
5857 |
|
5858 * mkbuiltins: For each file, create a separate static function to |
|
5859 install builtins, then create another single extern function to |
|
5860 call all of them. |
|
5861 |
|
5862 * pt-fcn.cc (tree_function::bind_nargin_and_nargout): |
|
5863 Just pass doubles and let symbol_record::define handle creating |
|
5864 new value. |
|
5865 |
|
5866 * pt-pr-code.cc, pt-pr-code.h (visit_constant): Renamed from |
|
5867 visit_octave_value. |
|
5868 (visit_unary_expression): Use tree_expression::is_prefix_op() |
|
5869 instead of switch on op types. |
|
5870 |
|
5871 * pt-walk.h (visit_constant): Renamed from visit_octave_value. |
|
5872 |
|
5873 * pt-misc.cc (initialize_undefined_elements): Get reference to |
|
5874 tmp, then assign. |
|
5875 * pt-cmd.cc (do_for_loop_once): Likewise, for loop identifier. |
|
5876 |
|
5877 * input.cc (generate_struct_completions, looks_like_struct): Cast |
|
5878 tmp_fvc to tree_constant*, not octave_value*. |
|
5879 (get_user_input): Call print() on retval, not eval(1). |
|
5880 |
|
5881 * help.cc (Ftype): Cast defn to tree_constant*, not octave_value*. |
|
5882 |
|
5883 * balance.cc: Fix docstring. |
|
5884 |
|
5885 * dassl.cc, fsolve.cc, load-save.cc, lsode.cc, npsol.cc, qpsol.cc, |
|
5886 quad.cc: |
|
5887 Include pt-fvc.h. |
|
5888 |
|
5889 * data.cc (Fstruct_contains): call octave_value::struct_elt_val, |
|
5890 not octave_value::lookup_map_element. |
|
5891 |
|
5892 * dirfns.cc (Fcd): Pass directory name as string directly to |
|
5893 bind_builtin_variable instead of creating new octave_value. |
|
5894 |
|
5895 * toplev.cc: Include pt-fvc.h and lo-mappers.h |
|
5896 |
|
5897 * data.cc, error.cc, file-io.cc, load-save.cc, pager.cc, |
|
5898 pt-mat.cc, pt-plot.cc, syscalls.cc, toplev.cc: |
|
5899 Include variables.h. |
|
5900 |
|
5901 * Array-tc.cc, Map-tc.cc, SLList-misc.cc SLList-tc.cc, data.cc, |
|
5902 defaults.cc, dynamic-ld.cc, error.cc, gripes.cc, lex.l, octave.cc, |
|
5903 oct-map.h, oct-map.cc, oct-obj.h, pt-cmd.cc, pt-exp.cc, pt-fcn.cc, |
|
5904 pt-fvc-base.cc, pt-mat.cc, pt-misc.cc, pt-mvr-base.cc, pt-mvr.h, |
|
5905 resource.cc, strfns.cc, sysdep.cc, timefns.cc, toplev.cc: |
|
5906 Include ov.h instead of pt-const.h. |
|
5907 |
|
5908 * xpow.cc (any_element_is_negative): Delete. |
|
5909 (xpow and elem_xpow functions): Check conformance here. |
|
5910 |
|
5911 * xdiv.cc (mx_leftdiv_conform, mx_div_conform): |
|
5912 Now template-based, taking Matrices instead of dimensions as args. |
|
5913 Change all callers. |
|
5914 |
|
5915 * op-cm-cm.cc, op-cm-cm.h, op-cm-cs.cc, op-cm-cs.h, op-cm-m.cc, |
|
5916 op-cm-m.h, op-cm-s.cc, op-cm-s.h, op-cs-cm.cc, op-cs-cm.h, |
|
5917 op-cs-cs.cc, op-cs-cs.h, op-cs-m.cc, op-cs-m.h, op-cs-s.cc, |
|
5918 op-cs-s.h, op-m-cm.cc, op-m-cm.h, op-m-cs.cc, op-m-cs.h, op-m-m.cc, |
|
5919 op-m-m.h, op-m-s.cc, op-m-s.h, op-s-cm.cc, op-s-cm.h, op-s-cs.cc, |
|
5920 op-s-cs.h, op-s-m.cc, op-s-m.h, op-s-s.cc, op-s-s.h, |
|
5921 op-str-str.cc, op-str-str.h, ops.cc, ops.h, ov-base.cc, ov-base.h, |
|
5922 ov-ch-mat.cc, ov-ch-mat.h, ov-colon.cc, ov-colon.h, ov-complex.cc, |
|
5923 ov-complex.h, ov-cx-mat.cc, ov-cx-mat.h, ov-range.cc, ov-range.h, |
|
5924 ov-re-mat.cc, ov-re-mat.h, ov-scalar.cc, ov-scalar.h, ov-str-mat.cc, |
|
5925 ov-str-mat.h, ov-struct.cc, ov-struct.h, ov-typeinfo.cc, |
|
5926 ov-typeinfo.h, ov-va-args.cc, ov-va-args.h, ov.cc, ov.h: |
|
5927 New files for Octave's new type system. |
|
5928 * Makefile.in: Add them to the appropriate lists. |
|
5929 |
|
5930 Sat Sep 14 21:58:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5931 |
|
5932 * mkbuiltins: Use .df instead of .def. |
|
5933 Write one function for each .df file, then call them |
|
5934 all in install_builtin_functions(). |
|
5935 * Makefile.in: Handle .df instead of .def. |
|
5936 |
|
5937 * balance.cc (balance): Fix typo in doc string. |
|
5938 |
|
5939 Wed Aug 28 21:01:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5940 |
|
5941 * octave.cc (verbose_usage): Include WWW address and bug-octave |
|
5942 mailing list address. |
|
5943 |
2354
|
5944 Tue Aug 20 17:41:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5945 |
2358
|
5946 * Makefile.in: Only define pattern rules for making .oct files if |
|
5947 OCTAVE_LITE is true. |
|
5948 Only add pic/ to $(TI_OBJ) if $(SHARED_LIBS) is true. |
|
5949 (stamp-picdir): Only create a pic subdirectory if SHARED_LIBS or |
|
5950 OCTAVE_LITE is true AND CPICFLAG or CXXPICFLAG is not empty. |
|
5951 |
2354
|
5952 * minmax.cc (Fmin, Fmax): Deal with changes to Matrix class |
|
5953 min/max methods. |
|
5954 |
2345
|
5955 Thu Jul 25 01:42:38 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5956 |
2348
|
5957 * input.cc (generate_possible_completions): Force the names to be |
|
5958 unique. |
|
5959 |
2345
|
5960 * load-save.cc (read_mat_binary_data): Expect to read terminating |
|
5961 NUL character in the variable name. |
|
5962 (save_mat_binary_data): Likewise, save it here. |
|
5963 |
2341
|
5964 Wed Jul 24 05:08:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5965 |
2343
|
5966 * lsode.cc (Flsode): Don't set the return value if an error |
|
5967 occurred during integration. |
2344
|
5968 * dassl.cc (Fdassl): Likewise. |
2343
|
5969 |
2341
|
5970 * file-io.cc (symbols_of_file_io): Redefine values of SEEK_SET, |
|
5971 SEEK_CUR, and SEEK_END for Matlab compatibility. |
|
5972 * oct-stream.cc (seek): Check for compatible values of ORIGIN arg. |
|
5973 Also handle "bof", "cof", and "eof". |
|
5974 |
2338
|
5975 Fri Jul 19 15:24:36 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5976 |
|
5977 * pt-const.cc: When creating octave_value_reps from ComplexMatrix |
|
5978 values, check to see if all the elements are actually real. |
|
5979 |
2330
|
5980 Tue Jul 16 10:53:42 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5981 |
2341
|
5982 * input.cc (decode_prompt_string): Swap meanings of \h and \H. |
2330
|
5983 |
|
5984 Mon Jul 15 16:01:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5985 |
|
5986 * toplev.cc (run_command_and_return_output): Renamed from do_system. |
|
5987 (Fsystem): Make `system ("emacs")' work as one would expect. |
|
5988 |
|
5989 Sun Jul 14 17:34:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5990 |
|
5991 * file-io.cc (Ffopen, Ffread, Ffwrite): Update doc strings, |
|
5992 correctly handle default architecture and precision args. |
|
5993 |
|
5994 * load-save.cc (mopt_digit_to_float_format): Rename from |
|
5995 get_floating_point_format. |
|
5996 (float_format_to_mopt_digit): New function. |
|
5997 |
|
5998 * oct-stream.cc (octave_base_stream::read, octave_base_stream::write): |
|
5999 Simplify by calling Matrix::read and Matrix::write to do real work |
|
6000 of reading, writing, and format conversion. |
|
6001 |
|
6002 * oct-stream.h (octave_base_stream): Move data_type enum to |
|
6003 liboctave/data-conv.h. Use float_format from |
|
6004 liboctave/mach-info.h instead of arch_type enum. |
|
6005 |
|
6006 * sysdep.h, sysdep.cc (octave_words_big_endian, ten_little_endians): |
|
6007 Delete. Now part of oct_mach_info class in liboctave. |
|
6008 |
|
6009 Tue Jul 9 11:18:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6010 |
|
6011 * arith-ops.cc, balance.cc, dassl.cc, data.cc, filter.cc, find.cc, |
|
6012 fsolve.cc, load-save.cc, log.cc, lsode.cc, minmax.cc, npsol.cc, |
|
6013 oct-obj.cc, oct-stream.cc, pr-output.cc, pt-cmd.cc, pt-const.cc, |
|
6014 pt-fvc.cc, pt-plot.cc, quad.cc, rand.cc, sighandlers.cc, sort.cc, |
|
6015 syscalls.cc, unwind-prot.cc, xdiv.cc, xpow.cc: |
|
6016 When indexing arrays, use operator() instead of elem() so that |
|
6017 bounds checking can be done consistently. |
|
6018 |
|
6019 Mon Jun 24 02:13:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6020 |
|
6021 * Makefile.in (install-oct): Use INSTALL_PROGRAM, instead of |
|
6022 INSTALL_DATA for installing shared libraries. |
|
6023 |
|
6024 * lex.l (grab_help_text): Ignore all initial comment characters, |
|
6025 not just the first. |
|
6026 * variables.cc (gobble_leading_white_space): Likewise. |
|
6027 |
|
6028 Sat Jun 22 22:43:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6029 |
|
6030 * input.h, input.cc (octave_completion_matches_called): New varaible. |
|
6031 (Fcompletion_matches): Set it to true on a successful call. |
|
6032 * toplev.cc (main_loop): If octave_completion_matches_called is |
|
6033 true, don't increment current_command_number. |
|
6034 |
|
6035 Thu Jun 13 03:52:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6036 |
|
6037 * variables.cc (is_mapper_function_name, |
|
6038 is_builtin_function_name): New functions. |
|
6039 (Fdocument): Use them. |
|
6040 Define as regular function, not a text style function. |
|
6041 |
|
6042 Thu Jun 6 00:09:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6043 |
|
6044 * pt-plot.cc: Handle new built-in variable `gnuplot_has_frames'. |
|
6045 |
|
6046 Wed Jun 5 14:45:04 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6047 |
|
6048 * input.cc (decode_prompt_string): \h now means the whole host |
|
6049 name and \H is the host name up to the first `.'. |
|
6050 |
|
6051 Thu May 30 23:41:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6052 |
|
6053 * fn-cache.cc (octave_fcn_file_name_cache::do_list): Always |
|
6054 recompute the lists of function files instead of trying to cache |
|
6055 them. |
|
6056 |
|
6057 Tue May 28 12:05:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6058 |
|
6059 * utils.cc (warn_old_style_preference): New function. |
|
6060 (check_preference): Use it. |
|
6061 |
|
6062 * fn-cache.h: Include <ctime> here. |
|
6063 |
|
6064 Fri May 24 00:57:14 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6065 |
|
6066 * input.cc (completion_matches): Don't return empty string_vectors. |
|
6067 |
|
6068 * octave.cc (long_opts): Add braindead. |
|
6069 |
|
6070 Thu May 23 01:49:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6071 |
|
6072 * input.cc (gnu_readline): New optional arg, force_readline. |
|
6073 (get_user_input): Use it. |
|
6074 |
|
6075 * pt-const.cc (OCT_VAL_REP::assign): If converting the rhs to a |
|
6076 numeric value, convert a copy, not the actual object. |
|
6077 (OCT_VAL_REP::do_index): Prevent s([]) from resulting in a string |
|
6078 with zero rows. |
|
6079 |
|
6080 * mappers.cc: Handle toascii here. |
|
6081 * strfns.cc: Not here. |
|
6082 |
|
6083 * mappers.cc: Handle tolower and toupper here. |
|
6084 * mappers.h: Rename can_return_complex_for_real to flag and |
|
6085 overload meaning for ch_mapper. |
|
6086 * pt-fvc.cc (apply_mapper_fcn): Handle overloaded meaning. |
|
6087 |
|
6088 * syscalls.cc (stat): Return 3 values instead of just 1. |
|
6089 (lstat): Likewise. |
|
6090 |
|
6091 Wed May 22 02:34:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6092 |
|
6093 * pt-const.cc (OCT_VAL_REP::make_numeric): For string to number |
|
6094 conversions, correctly set type tag before calling force_numeric. |
|
6095 (do_binary_op): Force string to number conversion if both args are |
|
6096 strings and we are doing some sort of comparison operation. |
|
6097 |
|
6098 * Makefile.in (stamp-tinst, stamp-interp): Use SH_TERMLIBS and |
|
6099 SH_LIBS instead of TERMLIBS and LIBS. |
|
6100 |
|
6101 * pt-const.cc (do_unary_op): Add special case to handle |
|
6102 transposing strings. |
|
6103 |
|
6104 * pt-mat.cc (Vstring_fill_char): New variable. |
|
6105 (symbols_of_pt_mat): DEFVAR it. |
|
6106 |
|
6107 * input.cc (generate_struct_completions, |
|
6108 generate_possible_completions): Return string_vector, not char **. |
|
6109 Change all callers. |
|
6110 |
|
6111 * pt-const.cc (lookup_map_element): Use substr() correctly. |
|
6112 |
|
6113 Tue May 21 21:37:17 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6114 |
|
6115 * oct.h: New file. |
|
6116 * Makefile.in (INCLUDES): Add it to the list. |
|
6117 |
|
6118 * octave.cc: New args --no-site-file and --no-init-file. Delete |
|
6119 --ignore-init-file. The flag --norc (-f) implies both |
|
6120 --no-site-file and --no-init-file. |
|
6121 |
|
6122 Fri May 17 01:54:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6123 |
|
6124 * input.cc (Fcompletion_matches): New function. |
|
6125 |
|
6126 * utils.cc (get_fcn_file_names): Delete. |
|
6127 * help.cc (simple_help): Use new file name cache instead of |
|
6128 calling get_fcn_file_names. |
|
6129 * variables.cc (make_name_list): Likewise. |
|
6130 |
|
6131 * fn-cache.h, fn-cache.cc, Map-fnc.cc: New files. |
|
6132 * Makefile.in: Add them to the lists. |
|
6133 |
|
6134 * Makefile.in (uninstall): Install in octincludedir, not includedir. |
|
6135 |
|
6136 * pt-plot.h: Include <csignal> here. |
|
6137 |
|
6138 Thu May 16 10:52:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6139 |
|
6140 * oct-stream.cc (octave_stream::oscanf, octave_base_stream::oscanf, |
|
6141 octave_base_stream::do_oscanf): New functions for backward |
|
6142 compatibility with older versions of Octave. |
|
6143 (scanf_format_elt, scanf_format_list): Keep track of width specifier. |
|
6144 * file-io.cc (Fscanf): New function. |
|
6145 (Fscanf, Ffscanf, Fsscanf): Handle compatibility arg. |
|
6146 |
|
6147 Wed May 15 01:00:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6148 |
|
6149 * oct-stream.cc (do_scanf): If doing '%c' conversion, unset |
|
6150 ios::skipws on input stream. |
|
6151 |
|
6152 * sighandlers.h, sighandlers.cc (octave_child, octave_child_list): |
|
6153 New classes for keeping track of the child processes we create. |
|
6154 (sigchld_handler): Check in octave_child_list to see if there is |
|
6155 anything we can do for the child that died. |
|
6156 * pager.cc: Register child pager process. |
|
6157 * pt-plot.cc: Likewise, for the plotter. |
|
6158 * Array-oc.cc: New file |
|
6159 * Makefile.in (TI_SRC): Add it to the list. |
|
6160 |
|
6161 * pager.cc (do_sync): Don't check error_state. |
|
6162 (flushing_output_to_pager): New static variable. |
|
6163 (flush_octave_stdout): Use it to avoid doing anything if already |
|
6164 flushing output. |
|
6165 |
|
6166 * sighandlers.cc (sigchld_handler): Call warning instead of |
|
6167 writing directly to cerr. |
|
6168 (sigpipe_handler): Call warning instead of message. |
|
6169 |
|
6170 * octave.cc (main): Call install_signal_handlers, |
|
6171 initialize_file_io, initialize_symbol_tables, and install_builtins |
|
6172 before parsing command line options. |
|
6173 |
|
6174 * user-prefs.h, user-prefs.cc: Delete. |
|
6175 |
|
6176 * utils.cc (check_preference): Move here. |
|
6177 * user-prefs.cc: From here. |
|
6178 |
|
6179 * defaults.cc: New file. Move initialization stuff from |
|
6180 variables.cc. Move DEFVARS for EDITOR, EXEC_PATH, LOADPATH, |
|
6181 IMAGEPATH, and OCTAVE_VERSION here. |
|
6182 |
|
6183 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6184 INFO_FILE and INFO_PROGRAM. |
|
6185 * help.cc: Move all of that here. |
|
6186 (symbols_of_help): Add DEFVARS for INFO_FILE and INFO_PROGRAM. |
|
6187 |
|
6188 Tue May 14 00:23:06 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6189 |
|
6190 * pager.cc (do_sync): Be more defensive about sending stuff to the |
|
6191 external pager. |
|
6192 * sighandlers.cc (sigchld_handler): For now, only wait for |
|
6193 octave_pager_pid. Don't call error(). Do set octave_pager_pid to |
|
6194 -1 if the pager process no longer exists. |
|
6195 |
|
6196 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6197 PWD. |
|
6198 * dirfns.cc: Move all of that here. |
|
6199 (symbols_of_dirfns): New function. |
|
6200 * variables.cc (install_builtin_variables): Call it. |
|
6201 |
|
6202 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6203 default_save_format and save_precision. |
|
6204 * load-save.cc: Move all of that here. |
|
6205 (symbols_of_load_save): New function. |
|
6206 * variables.cc (install_builtin_variables): Call it. |
|
6207 |
|
6208 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6209 warn_divide_by_zero. |
|
6210 * arith-ops.cc: Move all of that here. |
|
6211 (symbols_of_arith_ops): New function. |
|
6212 * variables.cc (install_builtin_variables): Call it. |
|
6213 |
|
6214 * mappers.cc: Add wrappers for ctype is* functions so that they |
|
6215 will work on systems that only define them as macros. |
|
6216 |
|
6217 Mon May 13 00:27:08 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6218 |
|
6219 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6220 suppress_verbose_help_message. |
|
6221 * help.cc: Move all of that here. |
|
6222 (symbols_of_help): New function. |
|
6223 * variables.cc (install_builtin_variables): Call it. |
|
6224 |
|
6225 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6226 treat_neg_dim_as_zero. |
|
6227 * pt-const.cc: Move all of that here. |
|
6228 |
|
6229 * pager.cc (octave_pager_stream::do_sync): Don't return early if |
|
6230 not interactive. |
|
6231 |
|
6232 * data.h: New file. |
|
6233 * Makefile.in (INCLUDES): Add it to the list. |
|
6234 * data.cc (symbols_of_data): New function. Move definition of I, |
|
6235 Inf, J, NaN, e, eps, i, inf, j, nan, pi, realmin, and realmax here. |
|
6236 * variables.cc: From here. |
|
6237 (install_builtin_variables): Call symbols_of_data. |
|
6238 |
|
6239 * file-io.cc (symbols_of_file_io): New function. Move definition |
|
6240 of SEEK_CUR, SEEK_END, SEEK_SET, stdin, stdout, stderr here. |
|
6241 * variables.cc: From here. |
|
6242 (install_builtin_variables): Call symbols_of_file_io. |
|
6243 |
|
6244 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6245 do_fortran_indexing, implicit_str_to_num_ok, |
|
6246 ok_to_lose_imaginary_part, prefer_column_vectors, |
|
6247 prefer_zero_one_indexing, print_answer_id_name, |
|
6248 propagate_empty_matrices, resize_on_range_error, and |
|
6249 struct_levels_to_print. |
|
6250 * pt-const.cc: Move all of that here. |
|
6251 (symbols_of_pt_const): New function. |
|
6252 * variables.cc (install_builtin_variables): Call it. |
|
6253 * pt-fvc.cc (tree_identifier::assign): Use Vresize_on_range_error |
|
6254 instead of user_pref.resize_on_range_error here. |
|
6255 * load-save.cc (save_mat_binary_data): Use Vimplicit_str_to_num_ok |
|
6256 instead of user_pref.implicit_str_to_num_ok here. |
|
6257 * utils.cc (empty_arg): Use Vpropagate_empty_matrices instead of |
|
6258 user_pref.propagate_empty_matrices here. |
|
6259 * pt-exp-base.cc (tree_expression::is_logically_true): Likewise.. |
|
6260 |
|
6261 * pt-fcn.cc (symbols_of_pt_fcn): Also move DEFVAR for |
|
6262 default_return_value here. |
|
6263 |
|
6264 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6265 ps1, ps2, ps4, and completion_append_char. |
|
6266 * input.cc: Move all of that here. |
|
6267 (symbols_of_input): New function. |
|
6268 * variables.cc (install_builtin_variables): Call it. |
|
6269 * pt-pr-code.cc (indent): Use Vps4 instead of user_pref.ps4 here. |
|
6270 * help.cc (Ftype): Also here. |
|
6271 |
|
6272 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6273 automatic_replot, gnuplot_binary, and gnuplot_has_multiplot. |
|
6274 * pt-plot.cc: Move all of that here. |
|
6275 (symbols_of_pt_plot): New function. |
|
6276 * variables.cc (install_builtin_variables): Call it. |
|
6277 |
|
6278 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6279 beep_on_error. |
|
6280 * error.cc: Move all of that here. |
|
6281 (symbols_of_error): New function. |
|
6282 * variables.cc (install_builtin_variables): Call it. |
|
6283 |
|
6284 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6285 empty_list_elements_ok. |
|
6286 * pt-mat.cc: Move all of that here. |
|
6287 (symbols_of_pt_mat): New function. |
|
6288 * variables.cc (install_builtin_variables): Call it. |
|
6289 |
|
6290 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6291 define_all_return_values, return_last_computed_value, and |
|
6292 silent_functions. |
|
6293 * pt-fcn.cc: Move all of that here. |
|
6294 (symbols_of_pt_fcn): New function. |
|
6295 * variables.cc (install_builtin_variables): Call it. |
|
6296 |
|
6297 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6298 whitespace_in_literal_matrix. |
|
6299 * lex.l: Move all of that here. |
|
6300 (symbols_of_lex): New function. |
|
6301 * variables.cc (install_builtin_variables): Call it. |
|
6302 |
|
6303 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6304 warn_assign_as_truth_value, warn_comma_in_global_decl, |
|
6305 warn_function_name_clash, and warn_missing_semicolon. |
|
6306 * parse.y: Move all of that here. |
|
6307 (symbols_of_parse): New function. |
|
6308 * variables.cc (install_builtin_variables): Call it. |
|
6309 |
|
6310 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6311 output_precision, output_max_field_width, print_empty_dimensions, |
|
6312 and split_long_rows. |
|
6313 * pr-output.cc: Move all of that here. |
|
6314 (symbols_of_pr_output): New function. |
|
6315 * variables.cc (install_builtin_variables): Call it. |
|
6316 |
|
6317 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6318 page_screen_output, page_output_immediately, and pager_binary. |
|
6319 * pager.cc: Move all of that here. |
|
6320 |
|
6321 * user-prefs.h (check_preference): Provide declaration. |
|
6322 * user-prefs.cc (check_preference): Make external. |
|
6323 |
|
6324 * toplev.cc (Foctave_config_info): New function. |
|
6325 |
|
6326 * oct-conf.h.in: New file |
|
6327 * Makefile.in (oct-conf.h): New target. |
|
6328 Add it to the appropriate lists. |
|
6329 |
|
6330 * sighandlers.cc (sigchld_handler): Don't complain about wait |
|
6331 returning a negative value. |
|
6332 |
|
6333 * file-io.cc (Fsscanf, Fsprintf): Pass true for second arg of |
|
6334 octave_stream constructor. |
|
6335 |
|
6336 * oct-stream.h (octave_stream): New field, preserve. |
|
6337 (octave_stream::~octave_stream): If preserve, don't delete rep. |
|
6338 |
|
6339 * pager.cc (symbols_of_pager): Set default for |
|
6340 page_output_immediately to 0. |
|
6341 |
|
6342 * toplev.cc (do_system): Correctly handle return_output. |
|
6343 Append ends to output_buf before calling str(). |
|
6344 |
|
6345 * variables.cc: If M_PI and M_E are available, use them. |
|
6346 |
|
6347 * mk-oct-links.in (links_dir): If old link exists, delete it first. |
|
6348 |
|
6349 Sun May 12 01:46:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6350 |
|
6351 * Makefile.in (DISTFILES): List defaults.h.in and oct-gperf.h here. |
|
6352 (INCLUDES): Not here. |
|
6353 (install-inc): New target. |
|
6354 (uninstall): Also delete libraries and include files. |
|
6355 (install-inc): If linkdir is a directory, leave it alone. |
|
6356 (TERMLIBS, LIBPLPLOT, LIBDLFCN): Don't substitute here (now in |
|
6357 Makeconf). |
|
6358 |
|
6359 * oct-stream.cc (octave_base_stream::do_read): Provide initial |
|
6360 value for tmp var. |
|
6361 |
|
6362 * pt-walk.h, pt-pr-code.h, pt-pr-code.cc: New tree-walking classes. |
|
6363 * Makefile.in: Add them to the appropriate lists. |
|
6364 * pt-fvc-base.h, pt-exp-base.cc, pt-fvc-base.cc, pt-mvr-base.cc, |
|
6365 pt-base.cc, pt-mvr.cc, pt-mat.h, pt-mat.cc, pt-fvc.cc, |
|
6366 pt-const.cc, pt-cmd.cc, pt-const.h, pt-misc.cc, pt-plot.cc, |
|
6367 pt-fcn.cc, pt-plot.h, pt-mvr.h, pt-mvr-base.h, pt-misc.h, |
|
6368 pt-fcn.h, pt-exp.h, pt-exp.cc, pt-exp-base.h, pt-fvc.h, pt-cmd.h, |
|
6369 pt-base.h: |
|
6370 Replace print_code stuff with accept() functions. |
|
6371 Add member access functions where necessary. |
|
6372 * help.cc (Ftype): Update to use new method of walking trees to |
|
6373 print text representation of user-defined functions. |
|
6374 |
|
6375 * file-io.cc (Ffscanf): Update doc string. |
|
6376 (Fsscanf): Likewise. |
|
6377 |
|
6378 * oct-stream.cc (octave_base_stream::do_read): Correctly set max_size. |
|
6379 Pad mval with zeros on final resize. |
|
6380 (octave_base_stream::do_scanf): Likewise. |
|
6381 (do_scanf_conv): Correctly resize mval. |
|
6382 |
|
6383 Sat May 11 05:14:09 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6384 |
|
6385 * pager.cc (octave_pager_buf::sync): Correctly set bypass_pager. |
|
6386 |
|
6387 * lex.l (<MATRIX>{SNLCMT}*\]{S}*): Match SNLCMT, not just SNL. |
|
6388 |
|
6389 Fri May 3 11:05:30 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6390 |
|
6391 * pt-const.cc (OCT_VAL_REP::set_index): Complain if type can't be |
|
6392 indexed. |
|
6393 |
|
6394 * input.cc (get_user_input): Don't increment input line number if |
|
6395 input is coming from eval string. |
|
6396 |
|
6397 * user-prefs.cc: Allow empty strings for prompts. |
|
6398 |
|
6399 Thu May 2 10:50:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6400 |
|
6401 * pt-mvr.h (class tree_oct_obj): Declare values data member const. |
|
6402 |
|
6403 Sun Apr 28 03:16:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6404 |
|
6405 * user-prefs.h (user_preferences): New field, |
|
6406 `page_output_immediately'. |
|
6407 * user-prefs.cc (init_user_prefs): Initialize it. |
|
6408 (page_output_immediately): New function. |
|
6409 * pager.cc (syms_of_pager): Add DEFVAR. |
|
6410 (really_flush_to_pager): New file-scope variable. |
|
6411 (flush_octave_stdout): Set and restore it. |
|
6412 (octave_pager_buf::sync): Check it, user_pref.page_screen_output, |
|
6413 and user_pref.page_output_immediately to decide when to really |
|
6414 flush output. |
|
6415 (more_than_a_screenful): New function. If paging but not |
|
6416 immediately, then check this too. |
|
6417 |
|
6418 * pager.cc (default_pager): Move here from variables.cc. If pager |
|
6419 is less and LESS is not in the environment, append useful flags. |
|
6420 (symbols_of_pager): New function. |
|
6421 * variables.cc (install_builtin_variables): Call it. |
|
6422 Delete pager-related DEFVARs. |
|
6423 |
|
6424 * syswait.h (WIFSIGNALLED): Define if sys/wait.h doesn't. |
|
6425 |
|
6426 * sighandlers.cc: Handle SIGCHLD. |
|
6427 |
|
6428 * pager.cc, pager.h: Rewrite. |
|
6429 * pt-mvr.cc, pt-misc.cc, pt-fcn.cc, pt-const.cc, oct-hist.cc, |
|
6430 file-io.cc, help.cc, variables.cc, qpsol.cc, dassl.cc, quad.cc, |
|
6431 npsol.cc, lsode.cc, fsolve.cc, load-save.cc, dirfns.cc, octave.cc, |
|
6432 toplev.cc, error.cc, input.cc: |
|
6433 Write to octave_stdout and octave_diary instead of calling |
|
6434 maybe_page_output() or maybe_write_to_diary_file(). |
|
6435 |
|
6436 * oct-procbuf.h, oct-procbuf.cc: New files. |
|
6437 * procstream.h (class procstreambase): Use octave_procbuf instead |
|
6438 of procbuf from libg++, so we can get pids of subprocesses. |
|
6439 |
|
6440 Fri Apr 26 01:21:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6441 |
|
6442 * pt-const.cc (OCT_VAL_REP::do_index): Call maybe_mutate() before |
|
6443 returning. |
|
6444 |
|
6445 * mappers.h (struct Mapper_fcn): Delete. |
|
6446 (struct builtin_mapper_function): New field ch_mapper. |
|
6447 * pt-fvc.h (tree_builtin): Convert type of mapper_fcn from |
|
6448 Mapper_fcn to builtin_mapper_function. |
|
6449 * variables.cc (install_builtin_mapper): Likewise, for arg. |
|
6450 Simplify, since we don't have to do the copying ourselves now. |
|
6451 * pt-fvc.cc (apply_mapper_function): Handle ch_mapper case. |
|
6452 * defun.h (DEFUN_MAPPER): Likewise. |
|
6453 * mappers.cc (install_builtin_mappers): Likewise. |
|
6454 Add ctype is* functions here. |
|
6455 |
|
6456 Thu Apr 25 00:57:06 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6457 |
|
6458 * arith-ops.h, defun-int.h, defun.h, dynamic-ld.h, gripes.h, |
|
6459 load-save.h, oct-map.h, oct-obj.h, oct-stream.h, pt-cmd.h, |
|
6460 pt-const.h, pt-exp-base.h, pt-exp.h, pt-fcn.h, pt-fvc-base.h, |
|
6461 pt-fvc.h, pt-mat.h, pt-misc.h, pt-mvr-base.h, pt-mvr.h, pt-plot.h, |
|
6462 symtab.h, toplev.h, utils.h, variables.h, xpow.h, Array-tc.cc, |
|
6463 Map-i.cc, Map-tc.cc, SLList-tc.cc, arith-ops.cc, balance.cc, |
|
6464 bogus.cc, chol.cc, colloc.cc, dassl.cc, data.cc, det.cc, |
|
6465 dirfns.cc, eig.cc, error.cc, expm.cc, fft.cc, fft2.cc, file-io.cc, |
|
6466 filter.cc, find.cc, fsolve.cc, fsqp.cc, givens.cc, gripes.cc, |
|
6467 help.cc, hess.cc, ifft.cc, ifft2.cc, input.cc, inv.cc, |
|
6468 load-save.cc, log.cc, lpsolve.cc, lsode.cc, lu.cc, minmax.cc, |
|
6469 npsol.cc, oct-hist.cc, oct-obj.cc, oct-stream.cc, pager.cc, |
|
6470 pinv.cc, pr-output.cc, pt-cmd.cc, pt-const.cc, pt-exp-base.cc, |
|
6471 pt-exp.cc, pt-fcn.cc, pt-fvc-base.cc, pt-fvc.cc, pt-mat.cc, |
|
6472 pt-misc.cc, pt-mvr-base.cc, pt-mvr.cc, pt-plot.cc, qpsol.cc, |
|
6473 qr.cc, quad.cc, qzval.cc, rand.cc, resource.cc, schur.cc, sort.cc, |
|
6474 strfns.cc, svd.cc, syl.cc, symtab.cc, syscalls.cc, sysdep.cc, |
|
6475 timefns.cc, toplev.cc, utils.cc, variables.cc, xpow.cc, parse.y: |
|
6476 Rename tree_constant -> octave_value. |
|
6477 Rename Octave_object -> octave_value_list. |
|
6478 |
|
6479 Wed Apr 24 22:15:34 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6480 |
|
6481 * toplev.cc (Fsystem): Merge functionality of async_system and |
|
6482 sync_system. |
|
6483 |
|
6484 * oct-fstrm.h, oct-iostrm.h, oct-prcstrm.h, oct-stdstrm.h, |
|
6485 oct-stream.h, oct-strstrm.h, oct-fstrm.cc, oct-iostrm.cc, |
|
6486 oct-prcstrm.cc, oct-stdstrm.cc, oct-stream.cc, oct-strstrm.cc, |
|
6487 Array-os.cc: New files. |
|
6488 * Makefile.in: Add them to the appropriate lists. |
|
6489 * file-io.cc: Rewrite to use new stream classes. |
|
6490 |
|
6491 Tue Apr 23 18:59:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6492 |
|
6493 * gripes.cc (gripe_not_supported): New function. |
|
6494 |
|
6495 * toplev.cc (do_octave_atexit, Fatexit): New functions. |
|
6496 (octave_atexit_functions): New file-scope variable. |
|
6497 * octave.cc (main): Register do_octave_atexit with atexit. |
|
6498 |
|
6499 * variables.cc (install_builtin_variables): Call |
|
6500 symbols_of_syscalls here. |
|
6501 |
|
6502 * syscalls.h, syscalls.cc: New files. |
|
6503 |
|
6504 Mon Apr 22 21:14:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6505 |
|
6506 * syscalls.cc: New file. |
|
6507 (Flstat, Fmkfifo, Fstat, Funlink, Fwait, Fwaitpid): Move here. |
|
6508 * file-io.cc: From here. |
|
6509 * Makefile.in (SOURCES): Add syscalls.cc to the list. |
|
6510 |
|
6511 Wed Apr 17 18:34:10 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6512 |
|
6513 * file-info.h, file-info.cc: Delete files. |
|
6514 * Makefile.in: Remove from lists. |
|
6515 |
|
6516 * toplev.cc (Fquit): Accept exit status argument. |
|
6517 (Fflops): Delete (now a function file). |
|
6518 |
|
6519 Thu Apr 11 16:20:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6520 |
|
6521 * lex.l: Recognize `.'. |
|
6522 Update current_input_column even for unrecognized characters. |
|
6523 Return LEXICAL_ERROR for unrecognized characters. |
|
6524 |
|
6525 Mon Apr 8 19:59:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6526 |
|
6527 * variables.cc (install_builtin_variables): Split into several |
|
6528 functions to make compiling with g++ go faster and consume less |
|
6529 memory. |
|
6530 |
|
6531 Sun Apr 7 16:25:35 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6532 |
|
6533 * load-save.cc (Fsave): Print usage if i == argc. |
|
6534 (Fload): Likewise. |
|
6535 |
|
6536 Sat Apr 6 21:26:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6537 |
|
6538 * Makefile.in (clean): Also delete pic/*.o |
|
6539 (maintainer-clean, distclean): Also remove stamp-picdir, |
|
6540 stamp-tinst, stamp-interp, and pic directory. |
|
6541 (stamp-prereq): New target. |
|
6542 |
|
6543 Wed Apr 3 11:19:30 1996 Rick Niles <niles@axp745.gsfc.nasa.gov> |
|
6544 |
|
6545 * resource.cc: Don't make including sys/resource.h and sys/times.h |
|
6546 mutually exclusive. |
|
6547 |
|
6548 Fri Mar 29 13:43:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6549 |
|
6550 * Makefile.in (distclean): Delete so_locations, which is created |
|
6551 on DEC Alpha systems. |
|
6552 |
|
6553 Thu Mar 28 02:53:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6554 |
|
6555 * utils.h (undo_string_escape): Provide extern declaration here. |
|
6556 |
|
6557 * lex.l (NL): Allow \r\n as new line character. |
|
6558 (.): Complain if invalid character is found on input |
|
6559 |
|
6560 Fri Mar 22 03:47:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6561 |
|
6562 * resource.cc (getrusage): If getrusage is missing, try using |
|
6563 times to at least fill in the cpu time values. If neither one is |
|
6564 available, return 0 for cpu times instead of NaN. |
|
6565 |
|
6566 * sighandlers.cc (octave_signal_mask): New file-scope variable. |
|
6567 (octave_save_signal_mask, octave_restore_signal_mask): New functions. |
|
6568 * toplev.cc (main_loop): Use them. |
|
6569 |
|
6570 Wed Mar 20 01:21:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6571 |
|
6572 * utils.cc (get_fcn_file_names (const string&, int)): Resize |
|
6573 retval to value of k, not i. |
|
6574 (get_fcn_file_names (int)): In loop for copying names to retval, |
|
6575 don't increment j twice. |
|
6576 |
|
6577 Mon Mar 18 22:27:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6578 |
|
6579 * Makefile.in ($(MAKEDEPS)): Depend on oct-gperf.h. |
|
6580 |
|
6581 Fri Mar 1 18:15:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6582 |
|
6583 * fsolve.cc (fsolve_options): Delete unused argument nargout. |
|
6584 |
|
6585 * filter.cc: Use MArray instead of Array so that automatic |
|
6586 conversions will work again. |
|
6587 |
|
6588 Tue Feb 27 04:49:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6589 |
|
6590 * variables.cc (looks_like_octave_copyright): Make the strings |
|
6591 that we are trying to match both have length 29. |
|
6592 |
|
6593 * Makefile.in (install-bin): Use $(INSTALL_PROGRAM), not $(INSTALL). |
|
6594 |
|
6595 * load-save.cc (read_mat_binary_data): Make sure name is |
|
6596 NUL terminated. |
|
6597 |
|
6598 Mon Feb 26 18:18:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6599 |
|
6600 * variables.cc (whos): Make argv from tmp_args, not args. |
|
6601 |
|
6602 * defun.h (DEFCONSTX): Don't stringify name. |
|
6603 |
|
6604 Sat Feb 24 01:12:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6605 |
|
6606 * Makefile.in (install-oct): Make mk-oct-links executable. |
|
6607 * mk-oct-links.in (links_dir): Update to match new format of |
|
6608 DEFUN_DLD_BUILTIN macro. Use LN_S, not just LN. |
|
6609 (links_dir): |
|
6610 |
|
6611 * pr-output.cc (octave_print_internal): New arg, extra_indent, for |
|
6612 versions of this function that take matrices and ranges. |
|
6613 * pt-const.cc (TC_REP::print (ostream&)): Fix printing of structures. |
|
6614 Pass struct_indent to octave_print_internal as appropriate. |
|
6615 (print_with_name (ostream&, const string&, bool)): Handle spacing |
|
6616 around `=' differently for structures. |
|
6617 |
|
6618 Fri Feb 23 04:51:04 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6619 |
|
6620 * token.cc (token (double, const string&, int, int)): Store orig_text. |
|
6621 |
|
6622 Tue Feb 20 20:36:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6623 |
|
6624 * variables.cc (Fclear): Fix off-by-one error. |
|
6625 |
|
6626 Sat Feb 17 16:54:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6627 |
|
6628 * oct-hist.cc (default_history_file): Append "/.octave_hist" to |
|
6629 return value, not to home_directory. |
|
6630 |
|
6631 Fri Feb 16 18:10:46 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6632 |
|
6633 * utils.cc: (NINT, D_NINT): Move to liboctave. |
|
6634 |
|
6635 * sysdep.cc (octave_ieee_init): Move to liboctave. |
|
6636 |
|
6637 * procstream.h, procstream.cc: Rewrite. |
|
6638 |
|
6639 * pager.cc (cleanup_oprocstream): New static function. |
|
6640 * toplev.cc (cleanup_iprocstream): Likewise. |
|
6641 * dirfns.cc (cleanup_iprocstream): Likewise. |
|
6642 |
|
6643 * unwind-prot.cc (matrix_cleanup, complex_matrix_cleanup): Delete. |
|
6644 |
|
6645 Thu Feb 15 22:03:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6646 |
|
6647 * oct-obj.cc, oct-obj.h: Move most code to the header. |
|
6648 |
|
6649 * oct-obj.cc (make_argv, all_strings): New member functions. |
|
6650 * utils.cc: Moved from here. |
|
6651 |
|
6652 * load-save.cc: Move byte swapping stuff to liboctave. |
|
6653 Move float format conversion stuff to liboctave. |
|
6654 (all_parts_int, too_large_for_float): Move to liboctave. |
|
6655 |
|
6656 * symtab.cc (valid_identifier): Move here. |
|
6657 * load-save.cc: From here. |
|
6658 |
|
6659 * sysdep.cc: Move floating-point format stuff to liboctave. |
|
6660 * pr-output.cc: Include float-fmt.h here. |
|
6661 |
|
6662 Wed Feb 14 01:49:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6663 |
|
6664 * defun.h, defun-dld.h, defun-int.h: Simplify interface for DEFUN, |
|
6665 DEFUN_DLD, DEFVAR, and DEFCONST macros. Change all uses. |
|
6666 |
|
6667 * qzval.cc: Move guts to liboctave. |
|
6668 |
|
6669 Tue Feb 13 10:28:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6670 |
|
6671 * variables.cc (parse_fcn_file): Also avoid saving history if |
|
6672 input is from a script file. |
|
6673 |
|
6674 * help.cc (Ftype): Call unwind_protect_str for user_pref.ps4. |
|
6675 |
|
6676 * npsol.cc (nonlinear_constraints_ok): Now static. |
|
6677 |
|
6678 * npsol.cc (linear_constraints_ok): Now static. |
|
6679 * qpsol.cc (linear_constraints_ok): Duplicate here. |
|
6680 |
|
6681 * data.cc (Flinspace): Don't print usage message if nargin == 2. |
|
6682 |
|
6683 Sun Feb 11 14:20:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6684 |
|
6685 * mk-oct-links.in: Rename from mk-oct-links. |
|
6686 (LN_S): Use this variable instead of ln. |
|
6687 Set -e option for shell. |
|
6688 Exit with status of last command. |
|
6689 Print message when making link. |
|
6690 * Makefile.in (DISTFILES): Add mk-oct-links.in to the list. |
|
6691 (install-oct): Run ./mk-oct-links, not $(srcdir)/mk-oct-links. |
|
6692 |
|
6693 * variables.cc (install_builtin_variables): Restore accidentally |
|
6694 deleted DEFVAR for save_precision. |
|
6695 |
|
6696 Fri Feb 9 11:24:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6697 |
|
6698 * Makefile.in (INCLUDES): Delete statdefs.h from the list (it's |
|
6699 now in the liboctave directory). |
|
6700 |
|
6701 * toplev.cc (toplevel): Define here. |
|
6702 * octave.cc (toplevel): Not here. |
|
6703 |
|
6704 * toplev.cc (main_loop): New function. |
|
6705 * octave.cc (main): Call it here instead of doing main loop |
|
6706 actions here. |
|
6707 |
|
6708 * user-prefs.cc (do_fortran_indexing): Also set liboctave_dfi_flag. |
|
6709 (prefer_column_vectors): Also set liboctave_pcv_flag. |
|
6710 (prefer_zero_one_indexing): Also set liboctave_pzo_flag. |
|
6711 (resize_on_range_error): Also set liboctave_rre_flag. |
|
6712 |
|
6713 * variables.cc (restore_command_history): New function. |
|
6714 (parse_fcn_file): Use it here in unwind_protect. |
|
6715 |
|
6716 * dynamic-ld.cc (load_octave_oct_file): Reverse sense of test. |
|
6717 (load_octave_builtin): Delete. |
|
6718 (mangle_octave_oct_file_name): Delete. |
|
6719 |
|
6720 * pt-fvc.cc (tree_builtin::eval): Don't try to dynamically load |
|
6721 functions here. |
|
6722 |
|
6723 * pr-output.cc (set_format_style): Decrement argc for first arg too. |
|
6724 |
|
6725 * input.cc (gnu_readline): If readline returns an empty string, |
|
6726 convert it to a string containing a single newline character. |
|
6727 |
|
6728 * octave.cc (octave_argv): Now a static string_vector. |
|
6729 (intern_argv): Use string_vector ops, not charMatrix ops. |
|
6730 * toplev.cc (octave_argv): Delete definition. |
|
6731 * toplev.h (octave_argv): Delete declaration. |
|
6732 |
|
6733 Thu Feb 8 10:58:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6734 |
|
6735 * Makefile.in (conf-dist): New target. |
|
6736 |
|
6737 Tue Feb 6 10:59:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6738 |
|
6739 * help.cc (Ftype): Correctly handle structure names. |
|
6740 |
|
6741 Sun Feb 4 02:02:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6742 |
|
6743 * qpsol.cc (Fqpsol): Call set_options(), not copy() to set |
|
6744 options for QPSOL objects. |
|
6745 |
|
6746 * npsol.cc (Fnpsol): Call set_options(), not copy() to set |
|
6747 options for NPSOL objects. |
|
6748 |
|
6749 * quad.cc (Fquad): Call set_options(), not copy() to set |
|
6750 options for Quad objects. |
|
6751 |
|
6752 * dynamic-ld.cc (load_octave_builtin): Don't call destructor on string. |
|
6753 (load_octave_oct_file): Likewise. |
|
6754 Check oct_file.empty(), not just oct_file. |
|
6755 |
|
6756 * fsolve.cc (Ffsolve): Call set_options(), not copy() to set |
|
6757 options for NLEqn object. |
|
6758 |
|
6759 * variables.cc (do_who): Properly set match patterns from argument |
|
6760 vector for call to maybe_list. |
|
6761 |
|
6762 Sat Feb 3 03:29:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6763 |
|
6764 * octave.cc (long_opts): Properly set second field using new enum. |
|
6765 |
|
6766 * lsode.cc: Change ODE to LSODE where appropriate. |
|
6767 Use LSODE_options, not ODE_options. |
|
6768 |
|
6769 * dassl.cc: Change DAE to DASSL where appropriate. |
|
6770 Use DASSL_options, not ODE_options. |
|
6771 |
|
6772 Fri Feb 2 01:41:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6773 |
|
6774 * dirfns.cc: Include unistd.h. |
|
6775 |
|
6776 * parse.y, lex.l: Handle matrix lists without ml or mlnm stacks. |
|
6777 * pt-mat.h, pt-mat.cc (tree_matrix): |
|
6778 Rewrite to use SLList instead of home brew list. |
|
6779 * SLList-tm.cc: New file |
|
6780 * Makefile.in: Add it to the lists. |
|
6781 * SLStack-tm.cc: Delete. |
|
6782 * Makefile.in: Delete it from the lists. |
|
6783 |
|
6784 * All pt-* files: Use bool instead of int where appropriate. |
|
6785 |
|
6786 * Makefile.in (DEP_SOURCES_3): Add octave.cc. |
|
6787 |
|
6788 * pt-const.h (class tree_constant::tree_constant_rep): Make |
|
6789 everything in this class public, then it doesn't need to declare |
|
6790 the tree_constant class as a friend. |
|
6791 |
|
6792 Thu Feb 1 01:42:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6793 |
|
6794 * lex.h, lex.l, parse.h, parse.y (class lexical_feedback): New |
|
6795 class for lexer flags. Replace lots of global vars with members |
|
6796 of this class. |
|
6797 |
|
6798 * lex.l (class brace_paren_nesting_level): New class to replace |
|
6799 nesting_level stack. nesting_level is now an instance of this |
|
6800 class. |
|
6801 |
|
6802 * lex.l (yum_yum): New typedef. |
|
6803 (ATE_NOTHING): New global var. |
|
6804 (ATE_SPACE_OR_TAB, ATE_NEWLINE): Don't #define these, declare them |
|
6805 as const yum_yum. |
|
6806 (eat_whitespace, eat_continuation): Return yum_yum, not int. |
|
6807 |
|
6808 * lex.l (SHORT_CIRCUIT_LOGICALS): Delete. Always do this for || |
|
6809 and && tokens. |
|
6810 (yy_flex_alloc, yy_flex_realloc, yy_flex_free, next_char_is_space): |
|
6811 Delete. |
|
6812 |
|
6813 * toplev.cc (verbose_flag): Delete definition. |
|
6814 * toplev.h (verbose_flag): And declaration. |
|
6815 * octave.cc (verbose_flag): Now static. |
|
6816 |
|
6817 * lex.l (lookup_identifier): Arg is now string, not char*. |
|
6818 (handle_identifier, is_plot_keyword, is_keyword): Likewise. |
|
6819 (strip_trailing_whitespace): Return value is now string, not char*. |
|
6820 (plot_style_token): Likewise, for both arg and return value. |
|
6821 |
|
6822 * input.cc (octave_gets_line): Delete. |
|
6823 (gnu_readline, octave_gets, octave_read): |
|
6824 Properly handle input when using_readline is either true or false. |
|
6825 Don't limit length of input lines to flex buffer size. |
|
6826 (get_user_input): New function. |
|
6827 |
|
6828 * octave.cc (main): Handle --no-line-editing. |
|
6829 * toplev.h (using_readline): Provide external declaration here. |
|
6830 * input.h: Not here. |
|
6831 * toplev.cc (using_readline): Define here. |
|
6832 * input.cc: Not here. |
|
6833 |
|
6834 * toplev.h (no_line_editing): Delete declaration. |
|
6835 * input.cc (no_line_editing): Delete definition. |
|
6836 |
|
6837 Wed Jan 31 05:28:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6838 |
|
6839 * input.cc (DEFAULT_ARRAY_SIZE, PROMPT_GROWTH): Delete definitions |
|
6840 of unused macros. |
|
6841 (read_octal): Now static. |
|
6842 |
|
6843 * givens.cc (Fgivens): Use new functions from matrix classes |
|
6844 instead of calling Fortran functions directly. |
|
6845 * syl.cc (Fsyl): Likewise. |
|
6846 * expm.cc (Fexpm): Likewise. |
|
6847 |
|
6848 Mon Jan 29 00:00:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6849 |
|
6850 * octave.cc: Use new prog_args class instead of calling getopt |
|
6851 directly. |
|
6852 |
|
6853 * getopt.h, getopt.c, getopt1.c: Move to liboctave directory. |
|
6854 * Makefile: Remove from lists. |
|
6855 |
|
6856 * utils.cc (strconcat, read_until, discard_until): Delete. |
|
6857 |
|
6858 * pager.cc (terminal_columns, terminal_rows): Move to |
|
6859 liboctave/oct-term.cc. |
|
6860 * pager.cc, pr-output.cc: Include oct-term.h. |
|
6861 |
|
6862 * utils.cc (list_in_columns): Moved to liboctave/str-vec.cc. |
|
6863 Change all callers to use new member function syntax. |
|
6864 |
|
6865 * dirfns.cc (absolute_program): Now static. |
|
6866 (absolute_pathname): Delete. |
|
6867 |
|
6868 * pt-plot.cc (save_in_tmp_file): Call oct_tempnam, not |
|
6869 octave_tmp_file_name. Include file-ops.h. |
|
6870 * file-io.cc (do_scanf, Foctave_tmp_file_name): Likewise. |
|
6871 * oct-hist.cc (mk_tmp_hist_file): Likewise. |
|
6872 |
|
6873 * file-io.cc (Foctave_tmp_file_name): Move here. |
|
6874 * utils.cc: From here. |
|
6875 |
|
6876 * utils.cc (octave_tmp_file_name): Move to liboctave/file-ops.cc. |
|
6877 |
|
6878 * tempname.c, tempnam.c: Move to liboctave directory. |
|
6879 * Makefile.in: Remove from lists. |
|
6880 |
|
6881 Sun Jan 28 19:00:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6882 |
|
6883 * xdiv.cc (all xdiv functions): Return Matrix or ComplexMatrix, |
|
6884 not tree_constant. |
|
6885 |
|
6886 * oct-hist.h, oct-hist.cc, toplev.cc, octave.cc, input.cc, |
|
6887 file-io.cc, user-prefs.cc: Rewrite to use new command_history |
|
6888 class instead of calling readline history functions directly. |
|
6889 |
|
6890 * utils.cc (get_fcn_file_names): Delete num arg. |
|
6891 |
|
6892 Thu Jan 25 20:33:54 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6893 |
|
6894 * load-save.cc (matches_patterns): Use new glob_match class |
|
6895 instead of calling fnmatch directly. |
|
6896 * symtab.cc (matches_patterns, symbol_table::glob): Likewise. |
|
6897 * variables.cc (Fclear): Likewise. |
|
6898 |
|
6899 Wed Jan 24 02:05:22 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6900 |
|
6901 * fnmatch.h fnmatch.c: Delete. |
|
6902 * Makefile.in: Add glob stuff in the appropriate places, remove |
|
6903 fnmatch.h and fnmatch.c from lists. |
|
6904 |
|
6905 * octave.cc (program_invocation_name, program_invocation_short_name): |
|
6906 Maybe declare. |
|
6907 (initialize_globals): Maybe initialize them. |
|
6908 |
|
6909 * octave.cc (initialize_pathsearch): Define here, not in pathsearch.cc. |
|
6910 * pathsearch.h, pathsearch.cc: Remove files. |
|
6911 * Makefile.in: Remove them from the lists. |
|
6912 |
|
6913 * help.cc (simple_help): Ignore directories that don't have any .m |
|
6914 or .oct files. |
|
6915 |
|
6916 * utils.cc (search_path_for_file): Use new dir_path class instead |
|
6917 of calling kpathsea routines directly. |
|
6918 (get_fcn_file_names): Likewise. |
|
6919 * help.cc (simple_help): Likewise. |
|
6920 |
|
6921 * dirfns.cc (make_absolute): Don't convert empty arg to "./". |
|
6922 |
|
6923 * sysdir.h: Move to liboctave directory. |
|
6924 * Makefile.in: Remove from lists. |
|
6925 |
|
6926 * dirfns.cc (Freaddir): Use new dir_entry class instead of calling |
|
6927 readdir directly. Include dir-ops.h, not sysdir.h. |
|
6928 * utils.cc (get_fcn_file_names): Likewise. Delete unnecessary |
|
6929 first arg, change all callers. |
|
6930 |
|
6931 Tue Jan 23 00:43:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6932 |
|
6933 * safe-xstat.hin, safe-xstat.cin, statdefs.h, file-ops.h, |
|
6934 file-ops.cc, filemode.c, mkdir.c, rmdir.c, rename.c: |
|
6935 Files moved to liboctave directory. |
|
6936 * Makefile.in: Remove them from lists. Move appropriate rules. |
|
6937 |
|
6938 * acosh.c, asinh.c, atanh.c, erf.c, erfc.c, gamma.c, lgamma.c: |
|
6939 Files moved to liboctave directory. |
|
6940 * Makefile.in: Remove them from lists. |
|
6941 * missing-math.h: Deleted. |
|
6942 * pr-output.cc, sysdep.cc, minmax.cc, mappers.cc, expm.cc, |
|
6943 arith-ops.cc: Include oct-math.h, not cmath or missing-math.h. |
|
6944 |
|
6945 Mon Jan 22 19:33:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6946 |
|
6947 * variables.cc (Fexist): Use file_stat instead of calling stat |
|
6948 directly. Include file-ops.h, not statdefs.h. |
|
6949 * octave.cc (execute_startup_files): Likewise. |
|
6950 * file-io.cc (file_io_get_file, fopen_internal, popen_internal, Fstat): |
|
6951 Likewise. |
|
6952 (mk_stat_map): Likewise, use file_stat object, not struct stat. |
|
6953 * oct-hist.cc (do_history): Likewise. |
|
6954 |
|
6955 * file-ops.h, file-stat.cc: New files. |
|
6956 * Makefile.in: Include them. |
|
6957 * dirfns.cc: Delete is_newer. Don't include statdefs.h. |
|
6958 * toplev.cc: Don't include statdefs.h. |
|
6959 |
|
6960 Sun Jan 21 22:48:03 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6961 |
|
6962 * pt-mvr.h, pt-fvc.h, Map.cc, Map.h, dynamic-ld.h, |
|
6963 pt-fvc-base.cc, SLList-str.cc, pt-fcn.h, pt-fvc-base.h, |
|
6964 SLStack-str.cc, pt-mvr.cc, pt-exp.cc, token.h, token.cc, |
|
6965 user-prefs.h, pt-base.cc, user-prefs.cc, dirfns.h, sysdep.h, |
|
6966 sysdep.cc, input.h, parse.h, lex.l, parse.y, defun.h, mappers.h, |
|
6967 pt-fvc.cc, pt-plot.h, load-save.h, octave.cc, defun-int.h, help.h, |
|
6968 variables.h, oct-map.h, oct-obj.h, oct-obj.cc, pt-const.cc, |
|
6969 oct-map.cc, input.cc, symtab.h, pt-const.h, pathsearch.cc, |
|
6970 pr-output.h, pr-output.cc, toplev.h, timefns.cc, schur.cc, |
|
6971 pt-plot.cc, pager.cc, load-save.cc, dynamic-ld.cc, dirfns.cc, |
|
6972 data.cc, file-info.h, file-info.cc, colloc.cc, utils.h, qpsol.cc, |
|
6973 quad.cc, npsol.cc, lsode.cc, fsolve.cc, dassl.cc, file-io.cc, |
|
6974 help.cc, utils.cc, oct-hist.h, oct-hist.cc, symtab.cc, toplev.cc, |
|
6975 pt-fcn.cc, unwind-prot.h, unwind-prot.cc, variables.cc: |
|
6976 Most functions in these files that deal with character strings |
|
6977 have been converted to use the string class insatead of char*. If |
|
6978 you want more detailed information, you'll have to figure it out |
|
6979 for yourself. |
|
6980 |
|
6981 Sat Jan 20 18:19:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6982 |
|
6983 * dynamic-ld.cc [WITH_DL]: Define RTLD_LAZY to be 1 if it is not |
|
6984 already defined. |
|
6985 |
|
6986 Sun Jan 14 07:48:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6987 |
|
6988 * pt-const.cc (print_as_scalar, print_as_structure): |
|
6989 Make these member functions. |
|
6990 (tree_constant::print_with_name): New function, moved here from |
|
6991 old tree-expr.cc file (where it was called print_constant) and |
|
6992 converted to member function. Change all callers. |
|
6993 |
|
6994 Fri Jan 12 01:54:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6995 |
|
6996 * octave.cc (initialize_globals): Don't do kpathsearch stuff here. |
|
6997 (main): Call initialize_pathsearch() here. |
|
6998 |
|
6999 * pathsearch.cc: New file. |
|
7000 * Makefile.in (SOURCES): Add it to the list |
|
7001 |
|
7002 * oct-hist.h: Rename from octave-hist.h. |
|
7003 * oct-hist.cc: Rename from octave-hist.cc. |
|
7004 * Makefile.in, parse.y, other .cc files: Cope with it. |
|
7005 |
|
7006 * dynamic-ld.cc: Avoid warnings if !WITH_DYNAMIC_LINKING. |
|
7007 |
|
7008 * load-save.cc (save_ascii_data): string::data() returns const char*. |
|
7009 |
|
7010 * utils.h: Don't provide forward declaration for tree_constant. |
|
7011 |
|
7012 * oct-obj.h: Don't include mx-base.h or provide forward |
|
7013 declarations for Matrix and Range types. |
|
7014 |
|
7015 * file-info.h: Don't include oct-obj.h. Do include cstdio. |
|
7016 |
|
7017 * symtab.h: Don't provide forward declaration for ostream. |
|
7018 |
|
7019 * variables.h: Don't provide forward declarations for istream, |
|
7020 ostrstream, tree, builtin_function, or builtin_variable objects. |
|
7021 |
|
7022 * balance.cc, chol.cc, colloc.cc, dassl.cc, det.cc, eig.cc, |
|
7023 expm.cc, fft.cc, fft2.cc, filter.cc, find.cc, fsolve.cc, fsqp.cc, |
|
7024 givens.cc, hess.cc, ifft.cc, ifft2.cc, inv.cc, log.cc, lpsolve.cc, |
|
7025 lsode.cc, lu.cc, minmax.cc, npsol.cc, pinv.cc, qpsol.cc, qr.cc, |
|
7026 quad.cc, qzval.cc, rand.cc, schur.cc, sort.cc, svd.cc, syl.cc: |
|
7027 Clean up #include statements. |
|
7028 |
|
7029 * pt-const.h: Don't include oct-obj.h or tree-base.h. |
|
7030 Provide forward declaration of Octave_object here. |
|
7031 * pt-const.cc: Include oct-obj.h here. |
|
7032 |
|
7033 * pt-mat.h, pt-fcn.h, pt-const.h, pt-misc.h, pt-plot.h, |
|
7034 pt-exp-base.h, pt-cmd.h, pt-fvc-base.h, pt-mvr-base.h, pt-exp.h, |
|
7035 pt-mvr.h, pt-fvc.h: New files, split from tree-expr.h and/or |
|
7036 renamed from other tree-*.h files (pt == parse tree). |
|
7037 * pt-base.cc, pt-const.cc, pt-exp.cc, pt-fvc-base.cc, pt-mat.cc, |
|
7038 pt-mvr-base.cc, pt-plot.cc, pt-cmd.cc, pt-exp-base.cc, pt-fcn.cc, |
|
7039 pt-fvc.cc, pt-misc.cc, pt-mvr.cc: Likewse, split from tree-expr.cc |
|
7040 and/or other tree-*.cc files. |
|
7041 * Makefile.in: Include them in the appropriate lists. |
|
7042 * All: Fix #include statements to match. |
|
7043 |
|
7044 * Array-tc.cc: Don't instantiate ArrayRep objects. |
|
7045 |
|
7046 Thu Jan 11 02:35:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7047 |
|
7048 * tree-const.cc (tree_constant::eval (int, int, const Octave_object&)): |
|
7049 Define here instead of in tree-const.h. |
|
7050 |
|
7051 Wed Jan 10 04:34:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7052 |
|
7053 * tree-const.h (tree_constant::tree_constant (const string&): |
|
7054 * tree-const.cc (TC_REP::tree_constant_rep (const string&)): |
|
7055 New constructor. |
|
7056 |
|
7057 Tue Jan 9 04:10:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7058 |
|
7059 * rand.cc (do_rand): Use string_value() result directly instead of |
|
7060 c_str() conversion. |
|
7061 * balance.cc (Fbalance): Likewise. |
|
7062 |
|
7063 * tree-const.cc (TC_REP::string_value()): |
|
7064 Handle new definition of charMatrix::row_as_string() |
|
7065 * load-save.cc (save_ascii_data): Ditto. |
|
7066 (save_binary_data): Ditto. |
|
7067 * pr-output.cc (octave_print_internal): Ditto. |
|
7068 |
|
7069 * balance.cc (Fbalance): |
|
7070 Handle new definition of TC_REP::string_value() |
|
7071 * colloc.cc (Fcolloc): Ditto. |
|
7072 * dassl.cc (Fdassl_options): Ditto. |
|
7073 * data.cc (Fstruct_contains): Ditto. |
|
7074 * dirfns.cc (Fmkdir): Ditto. |
|
7075 (Freaddir): Ditto. |
|
7076 (Frmdir): Ditto. |
|
7077 (Frename): Ditto. |
|
7078 * error.cc (handle_message): Ditto. |
|
7079 * file-io.cc (process_printf_format): Ditto. |
|
7080 (fopen_internal): Ditto. |
|
7081 (file_io_get_file): Ditto. |
|
7082 (return_valid_file): Ditto. |
|
7083 (Flstat): Ditto. |
|
7084 (Fstat): Ditto. |
|
7085 (unlink_internal): Ditto. |
|
7086 (mkfifo_internal): Ditto. |
|
7087 (async_system_internal): Ditto. |
|
7088 (sync_system_internal): Ditto. |
|
7089 (execute_internal): Ditto. |
|
7090 (popen_internal): Ditto. |
|
7091 (fwrite_internal): Ditto. |
|
7092 (fread_internal): Ditto. |
|
7093 (do_printf): Ditto. |
|
7094 (do_scanf): Ditto. |
|
7095 * input.cc (get_user_input): Ditto. |
|
7096 * lsode.cc (Flsode_options): Ditto. |
|
7097 * npsol.cc (Fnpsol_options):Ditto. |
|
7098 * qpsol.cc (Fqpsol_options):Ditto. |
|
7099 * quad.cc (Fquad_options): Ditto. |
|
7100 * rand.cc (do_rand): Ditto. |
|
7101 * schur.cc (Fschur): Ditto. |
|
7102 * sysdep.cc (Fputenv): Ditto. |
|
7103 (Fgetenv): Ditto. |
|
7104 * timefns.cc (extract_tm): Ditto. |
|
7105 (Fstrftime): Ditto. |
|
7106 * toplev.cc (Fsource): Ditto. |
|
7107 (eval_string): Ditto. |
|
7108 (Fsystem): Ditto. |
|
7109 * tree-plot.cc (subplot::handle_plot_data): Ditto. |
|
7110 * variables.cc (is_valid_function): Ditto. |
|
7111 (Fis_global): Ditto. |
|
7112 (Fexist): Ditto. |
|
7113 (builtin_string_variable): Ditto. |
|
7114 * utils.cc (make_argv): Ditto. |
|
7115 (Fundo_string_escapes): Ditto. |
|
7116 |
|
7117 Mon Jan 8 01:54:50 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7118 |
|
7119 * Makefile.in (install-bin): Use $(LN_S), not just ln. |
|
7120 |
|
7121 * variables.cc (octave_fcn_file_dir): New function. |
|
7122 * tree-expr.cc (mark_as_system_fcn_file): Use it instead of |
|
7123 octave_lib_dir. |
|
7124 |
|
7125 * Makefile.in (clean): If $(SHARED_LIBS), also remove shared libs. |
|
7126 |
|
7127 * pr-output.cc (set_format (const ComplexMatrix&, int&, int&)): |
|
7128 Unconditionally call all_elements_are_int_or_inf_or_nan(). |
|
7129 (set_format (const Matrix&, int&, int&)): Likewise. |
|
7130 |
|
7131 Sun Jan 7 19:12:39 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7132 |
|
7133 * utils.cc (oct_putenv): New function. |
|
7134 * sysdep.cc (Fputenv): Use oct_putenv. |
|
7135 * octave.cc (initialize_globals): Likewise. |
|
7136 |
|
7137 Sat Jan 6 23:22:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7138 |
|
7139 * sysdep.cc (Fputenv): New function. |
|
7140 |
|
7141 * input.cc (initialize_readline): Call rl_initialize() here. |
|
7142 |
|
7143 * octave.cc: Conditionally define atexit to be on_exit here. |
|
7144 * toplev.cc: Not here. |
|
7145 |
|
7146 Fri Jan 5 14:01:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7147 |
|
7148 * toplev.cc: Don't include <pwd.h> here. |
|
7149 |
|
7150 * octave-hist.cc, tree-plot.cc, utils.cc: Do include "sysdep.h". |
|
7151 |
|
7152 * dirfns.cc, file-io.cc, help.cc, load-save.cc, octave.cc, |
|
7153 octave-hist.cc, tree-plot.cc, utils.cc: |
|
7154 Don't include <readline/tilde.h>. |
|
7155 * sysdep.h: Do include it here. |
|
7156 |
|
7157 * tree-const.cc (TC_REP::assign (tree_constant&, Octave_object&)): |
|
7158 If we have a matrix or range, call maybe_mutate before returning. |
|
7159 |
|
7160 Sun Dec 31 15:56:18 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7161 |
|
7162 * npsol.cc (Fnpsol): Improve doc string. |
|
7163 * qpsol.cc (Fqpsol): Likewise. |
|
7164 |
|
7165 Fri Dec 29 21:46:58 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7166 |
|
7167 * defun-dld.h: Make work again for OCTAVE_LITE and |
|
7168 WITH_DYNAMIC_LINKING. |
|
7169 |
|
7170 * Makefile.in: Handle shared libraries. |
|
7171 |
|
7172 Wed Dec 27 17:47:51 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7173 |
|
7174 * mk-oct-links: New file. |
|
7175 * Makefile.in (install-oct): Use it. |
|
7176 * f-*.cc: Rename to *.cc. |
|
7177 |
|
7178 * Makefile.in (install-bin, install-lib, install-oct): New targets. |
|
7179 (install): Use them. |
|
7180 |
|
7181 Tue Dec 26 21:38:22 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7182 |
|
7183 * toplev.cc (reading_startup_message_printed): Move initialization |
|
7184 here and make extern. |
|
7185 |
|
7186 * dirfns.cc, dynamic-ld.cc, help.cc, input.cc, octave-hist.cc, |
|
7187 octave.cc, sighandlers.cc, sysdep.cc, tree-expr.cc, tree-misc.cc, |
|
7188 utils.cc, variables.cc, parse.y, lex.l: Include toplev.h instead |
|
7189 of octave.h. |
|
7190 * toplev.h: rename from octave.h. |
|
7191 |
|
7192 * octave.cc (main): Delete unused variable saved_sigint_handler. |
|
7193 |
|
7194 Sun Dec 24 00:26:54 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7195 |
|
7196 * dynamic-ld.cc: Massive re-write to handle dlopen/dlsym and |
|
7197 shl_load/shl_findsym methods of dynamic linking. |
|
7198 |
|
7199 * utils.cc (get_fcn_file_names): Check for .oct files if |
|
7200 WITH_DYNAMIC_LINKING, not WITH_DLD. |
|
7201 |
|
7202 * Makefile.in (LIB, TERMLIBS): Substitute values. |
|
7203 (octave): Add $(LIBS) to link command and use $(TERMLIBS) instead |
|
7204 of -ltermcap. |
|
7205 |
|
7206 Sat Dec 23 21:56:12 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7207 |
|
7208 * dynamic-ld.h, dynamic-ld.cc: Remove old unused code. |
|
7209 |
|
7210 * variables.cc (load_fcn_from_file): |
|
7211 Always call load_octave_oct_file. |
|
7212 |
|
7213 Wed Dec 20 00:56:57 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7214 |
|
7215 * pr-output.cc (set_real_format, set_real_matrix_format, |
|
7216 set_complex_format, set_complex_matrix_format, set_range_format): |
|
7217 New functions. Ensure the count of the digits to the right of the |
|
7218 decimal point is positive. |
|
7219 |
|
7220 * xpow.cc (xpow (const Matrix&, double)): Print warning if |
|
7221 inverting singular matrix (but return value anyway, in the name of |
|
7222 compatibility). |
|
7223 xpow (const ComplexMatrix&, double)): Likewise. |
|
7224 |
|
7225 * f-inv.cc (Finv): If matrix is singular, return result anyway, in |
|
7226 the name of compatibility. |
|
7227 |
|
7228 * symtab.cc (symbol_record::pop_context): |
|
7229 Don't assert (! context.empty ()). |
|
7230 |
|
7231 * tree-const.cc (TC_REP::char_matrix_value): Don't complain about |
|
7232 type conversion if object is an empty matrix.f |
|
7233 (TC_REP::assign): If rhs is a string, don't convert to numeric |
|
7234 type if rhs is empty or "". |
|
7235 Only widen if rhs is not empty. |
|
7236 Don't return 0x0 char_matrix if it is supposed to be a string. |
|
7237 |
|
7238 * arith-ops.h, mappers.h, pr-output.h, xdiv.h, xpow.h: Include |
|
7239 oct-cmplx.h in place of forward declaration for class Complex. |
|
7240 |
|
7241 * pr-output.cc, mappers.cc, arith-ops.cc, xdiv.cc, xpow.cc, |
|
7242 utils.cc: Include "oct-cmplx.h" instead of <Complex.h>. |
|
7243 |
|
7244 * octave.cc (initialize_error_handlers): Don't call |
|
7245 set_Complex_error_handler(). |
|
7246 (octave_Complex_error_handler): Delete unused function. |
|
7247 Delete declaration for set_Complex_error_handler(). |
|
7248 |
|
7249 * sighandlers.cc (catch_interrupts): New function. |
|
7250 * octave.cc (main): Call catch_interrupts() instead of calling |
|
7251 octave_set_signal_handler() directly. |
|
7252 |
|
7253 Tue Dec 19 03:22:37 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7254 |
|
7255 * variables.cc (looks_like_octave_copyright): Also recognize the |
|
7256 string " This program is free software". |
|
7257 |
|
7258 Thu Dec 14 01:54:06 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7259 |
|
7260 * octave-hist.cc (clean_up_history): Only write history file if |
|
7261 user_pref.saving_history. |
|
7262 |
|
7263 * octave-hist.cc (initialize_history, clean_up_history, |
|
7264 do_history): Perform tilde expansion on history file name. |
|
7265 |
|
7266 * octave.cc (main): Check `defined (HAVE_ON_EXIT)' not just |
|
7267 `(HAVE_ON_EXIT)'. |
|
7268 |
|
7269 * user-prefs.h (user_preferences): New fields, `history_file' and |
|
7270 `history_size'. |
|
7271 * user-prefs.cc (init_user_prefs): Initialize them. |
|
7272 (sv_history_file, history_size): New functions. |
|
7273 * variables.cc (install_builtin_variables): Initialize user-level |
|
7274 variables history_file and history_size. |
|
7275 * octave-hist.cc (default_history_size): Now extern. |
|
7276 (default_history_file): Likewise. |
|
7277 (octave_hist_size, octave_hist_file): Use user preference |
|
7278 variables instead. |
|
7279 * octave.cc (main): Call initialize_history after |
|
7280 execute_startup_files. |
|
7281 |
|
7282 Fri Dec 8 15:53:59 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7283 |
|
7284 * user-prefs.h (user_preferences): New field, `saving_history'. |
|
7285 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7286 (saving_history): New function. |
|
7287 * variables.cc (install_builtin_variables): Initialize user-level |
|
7288 variable saving_history. |
|
7289 * octave.cc (parse_and_execute): Don't reset value of |
|
7290 saving_history here. |
|
7291 (main) Use user_pref.saving_history instead of saving_history. |
|
7292 * variables.cc (parse_fcn_file): Likewise. |
|
7293 * octave-hist.cc (maybe_save_history): Likewise. |
|
7294 Don't save history if input_from_startup_file. |
|
7295 |
|
7296 Mon Nov 27 23:05:52 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7297 |
|
7298 * resource.cc: Include systime.h before <sys/resource.h>. |
|
7299 |
|
7300 Tue Nov 14 14:09:40 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7301 |
|
7302 * error.cc: Include cstring. |
|
7303 |
|
7304 * tree-expr.cc (print_code): Decrement indent level after printing |
|
7305 function body. |
|
7306 |
|
7307 * Makefile.in: Remove references to oct-str.cc, oct-str.h, and |
|
7308 Array-string.cc. |
|
7309 |
|
7310 * tree-const.h: Don't include oct-str.h. |
|
7311 |
|
7312 Mon Nov 6 11:16:49 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7313 |
|
7314 * parse.y (make_plot_command, finish_colon_expression, |
|
7315 make_unwind_protect, make_try_command, make_for_command, |
|
7316 make_break_command, make_continue_command, make_return_command, |
|
7317 start_if_command, finish_if_command, make_elseif_clause, |
|
7318 make_simple_assignment, make_multi_val_ret, start_function_def, |
|
7319 frob_function_def, finish_function_def, start_matrix, |
|
7320 finish_matrix): New functions. Use them in the grammar to clean |
|
7321 things up a bit. Possibly convert matrix lists, colon |
|
7322 expressions, binary expressions, and unary expressions to constant |
|
7323 values. |
|
7324 (tree_matrix_type): Delete. |
|
7325 (simple_expr1): Handle all expression stuff here, including |
|
7326 assignments. |
|
7327 (simple_expr): Just check to see that simple_expr1 produced |
|
7328 something useful. |
|
7329 |
|
7330 * tree-plot.cc, tree-plot.h: Move most simple constructors to the |
|
7331 header file. |
|
7332 |
|
7333 * tree-expr.h (tree_expression::is_constant): Move virtual |
|
7334 function definition here. |
|
7335 (tree_fvc::is_constant): From here. |
|
7336 (tree_expression::is_matrix_constant): New virtual function. |
|
7337 (tree_expression::is_range_constant): New virtual function. |
|
7338 * tree-expr.cc (tree_matrix::is_matrix_constant): New function. |
|
7339 * tree-expr.cc (tree_colon_expression::is_range_constant): New |
|
7340 function. |
|
7341 |
|
7342 Fri Nov 3 03:42:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7343 |
|
7344 * utils.cc, utils.h (jump_to_top_level): Declare as extern "C". |
|
7345 |
|
7346 * tree-const.h (tree_constant::eval ()): Only mutate if printing. |
|
7347 |
|
7348 * tree-const.cc (TC_REP::tree_constant_rep (const Complex&), |
|
7349 TC_REP::tree_constant_rep (const ComplexMatrix&), |
|
7350 TC_REP::tree_constant_rep (const ComplexDiagMatrix&), |
|
7351 TC_REP::tree_constant_rep (const ComplexRowVector&), |
|
7352 TC_REP::tree_constant_rep (const ComplexColumnVector&)): |
|
7353 Also check to see if we can convert to scalar_constant, not just |
|
7354 complex_scalar_constant. |
|
7355 |
|
7356 * user-prefs.h (user_preferences): New field, `exec_path'. |
|
7357 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7358 (sv_exec_path): New function. |
|
7359 * variables.cc (install_builtin_variables): Add DEFUN for EXEC_PATH. |
|
7360 (default_exec_path): New function. |
|
7361 * octave.cc (exec_path): New global variable. |
|
7362 Don't set and putenv() exec path here. |
|
7363 (long_opts): Add --exec-path option. |
|
7364 (main): Handle it. |
|
7365 (initialize_globals): Set default value here. |
|
7366 |
|
7367 * user-prefs.h (user_preferences): New field, `info_prog'. |
|
7368 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7369 (sv_info_prog): New function. |
|
7370 * variables.cc (install_builtin_variables): Add DEFUN for INFO_PROGRAM. |
|
7371 (default_info_prog): New function. |
|
7372 * octave.cc (info_prog): New global variable. |
|
7373 (initialize_globals): Set default value here. |
|
7374 (long_opts): Add --info-prog option. |
|
7375 (main): Handle it. |
|
7376 * help.cc (try_info): Use user_pref.info_prog here. |
|
7377 |
|
7378 * octave.cc (initialize_globals): Put arch_dir and bin_dir ahead |
|
7379 of shell_path when resetting PATH. |
|
7380 |
|
7381 Thu Nov 2 04:30:13 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7382 |
|
7383 * f-rand.cc (Frandn): New function. |
|
7384 (do_initialization): New function. |
|
7385 (do_rand): New function for doing the real work. |
|
7386 (Frand): Use it. |
|
7387 |
|
7388 * octave.cc (parse_and_execute): New arg, warn_for. If given, |
|
7389 print message if file cannot be opened. |
|
7390 Set curr_fcn_file_full_name here. |
|
7391 (Fsource): Pass extra arg to parse_and_execute to get warning message. |
|
7392 |
|
7393 * tree-const.h: Handle line and column info for double, Complex, |
|
7394 and char* constants. |
|
7395 |
|
7396 * parse.y (maybe_convert_to_ans_assign): Pass along line and |
|
7397 column info from expression. |
|
7398 |
|
7399 * parse.y (make_constant): New function. |
|
7400 (simple_expr1, word_list): Use it. |
|
7401 |
|
7402 * input.cc, input.h (curr_fcn_file_full_name): New global. |
|
7403 * variables.cc (load_fcn_from_file): Set it here. |
|
7404 * parse.y (func_def2, yyerror, maybe_warn_missing_semi): Use it. |
|
7405 (func_def2): If !reading_fcn_file, don't call strcmp if |
|
7406 curr_fcn_file_name is 0. |
|
7407 |
|
7408 * octave.cc (Fsource): New function. |
|
7409 (parse_and_execute): Declare file name const char *. |
|
7410 * input.cc (get_input_from_file): Likewise. |
|
7411 |
|
7412 Wed Nov 1 13:54:34 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7413 |
|
7414 * f-filter.cc: New file. |
|
7415 * Makefile.in (DLD_SRC): Add it to the list. |
|
7416 |
|
7417 * sysdep.h (gethostname): Change declaration to match definition |
|
7418 in sysdep.cc. |
|
7419 |
|
7420 * resource.cc: Include sysdep.h here, for octave_NaN. |
|
7421 |
|
7422 Tue Oct 31 02:12:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7423 |
|
7424 * tree-const.cc (TC_REP::assign): After converting rhs to a |
|
7425 numeric type, use the converted value, not the original. |
|
7426 |
|
7427 * dirfns.cc (Fpwd): If nargout == 0, print the directory name |
|
7428 instead of returning it. |
|
7429 |
|
7430 * pager.cc (maybe_page_output): Call maybe_write_to_diary_file here. |
|
7431 (flush_output_to_pager): Not here. |
|
7432 |
|
7433 Mon Oct 30 23:39:43 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7434 |
|
7435 * variables.cc (install_builtin_commands): Add DEFVAR for |
|
7436 echo_executing_commands. |
|
7437 |
|
7438 * octave-hist.cc (do_edit_history): Handle new echo stuff. |
|
7439 * variables.cc (parse_fcn_file): Likewise. |
|
7440 * octave.cc (parse_and_execute): Likewise. |
|
7441 (main): Likewise. |
|
7442 * input.cc (do_input_echo): |
|
7443 (Fecho): New function. |
|
7444 |
|
7445 * tree-expr.cc (tree_function::print_code_function_header, |
|
7446 tree_function::print_code_function_trailer): New functions. |
|
7447 (tree_function::print_code): Use them. |
|
7448 (tree_function::eval): Likewise, if echoing commands. |
|
7449 * tree-misc.cc (tree_statement::maybe_echo_code): New function. |
|
7450 |
|
7451 * user-prefs.h (user_preferences): New field, echo_executing_commands. |
|
7452 (echo_state): New enum, for various types of echoing we do. |
|
7453 * user-prefs.cc (echo_executing_commands): New function. |
|
7454 |
|
7455 * tree-base.cc (print_code_indent): Print PS4 as line prefix. |
|
7456 * help.cc (Ftype): Add unwind_protect for ps4 and set it to "" |
|
7457 before printing code. |
|
7458 |
|
7459 * tree-misc.h (tree_statement_list): New field, function_body. |
|
7460 (tree_statement_list::mark_as_function_body): New function. |
|
7461 * parse.y (func_def3): Mark function bodies. |
|
7462 |
|
7463 * pr-output.cc (octave_print_internal): Undo string escapes when |
|
7464 printing charMatrix as strings. |
|
7465 |
|
7466 Sat Oct 28 17:38:29 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7467 |
|
7468 * utils.h (undo_string_escapes): Add missing const in declaration. |
|
7469 |
|
7470 Fri Oct 27 03:49:44 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7471 |
|
7472 * file-io.cc (next_available_file_number): New stack for keeping |
|
7473 track of next available file number. |
|
7474 (get_next_avail_file_num): New function. |
|
7475 (fopen_file_for_user, fopen_internal, popen_internal, |
|
7476 execute_internal): Use it. |
|
7477 |
|
7478 Mon Oct 23 07:00:09 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7479 |
|
7480 * tree-const.cc (TC_REP::convert_to_matrix_type, |
|
7481 tree_constant::convert_to_matrix_type): New arg, make_complex. |
|
7482 (TC_REP::set_index): New arg, rhs_is_complex. Pass it to |
|
7483 convert_to_matrix_type. |
|
7484 (TC_REP::assign): Pass rhs.is_complex_type() to set_index. |
|
7485 |
|
7486 Thu Oct 19 00:38:38 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7487 |
|
7488 * xpow.cc: Include <climits>. |
|
7489 |
|
7490 * sysdep.cc (Fpause): Do pause even if not interactive. |
|
7491 |
|
7492 * tree-const.cc (TC_REP::assign): Don't make RHS numeric if both |
|
7493 RHS and LHS are strings. |
|
7494 |
|
7495 Wed Oct 18 22:19:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7496 |
|
7497 * f-expm.cc (Fexpm): Avoid taking log of negative number. Also, |
|
7498 don't unnecessarily divide the input matrix by 1.0. |
|
7499 |
|
7500 * input.cc (decode_prompt_string): Recognize \[ and \] too. |
|
7501 (initialize_readline): Bind M-p to history-search-backward and M-n |
|
7502 to history-search-forward. |
|
7503 |
|
7504 Tue Oct 17 04:31:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7505 |
|
7506 * xpow.cc (xpow): Handle integer powers better for complex^double. |
|
7507 (elem_xpow): Likewise. |
|
7508 |
|
7509 * lex.l ({CCHAR}): If nesting_level.top() is BRACE, return ';', |
|
7510 not '\n'. |
|
7511 |
|
7512 Mon Oct 16 19:03:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7513 |
|
7514 * help.cc (Fwhich): Fix doc string. |
|
7515 |
|
7516 * variables.cc (Fexist): Update doc string. |
|
7517 |
|
7518 Sun Oct 15 22:19:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7519 |
|
7520 * Another massive set of changes to support character matrices |
|
7521 with indexing. The Octave_str_object class is no longer used. |
|
7522 Anything having to do with Octave_str_object in the following |
|
7523 files has been changed to use charMatrix instead: octave.h, |
|
7524 load-save.cc, octave.cc, strfns.cc, data.cc, pr-output.h, |
|
7525 pr-output.cc, tree-const.h, dirfns.cc, tree-const.cc, |
|
7526 tree-expr.cc. |
|
7527 |
|
7528 Sat Oct 14 22:28:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7529 |
|
7530 * f-sort.cc (mx_sort): Don't attempt to sort vectors that have |
|
7531 only one element, or matrices that have only one row. |
|
7532 |
|
7533 Thu Oct 12 02:16:58 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7534 |
|
7535 * mappers.cc (install_mapper_functions): Add gammaln as an alias |
|
7536 for lgamma. |
|
7537 |
|
7538 * tree-const.h, tree-const.cc: Massive overhaul of indexing and |
|
7539 indexed assignment functions. |
|
7540 * tc-inlines.h, tc-rep.h: Remove files. |
|
7541 * Makefile.in: Remove mention of them here too. |
|
7542 |
|
7543 * Makefile.in: Include $(TI_SRC) in DEP_SOURCES_3, not |
|
7544 $(TI_SOURCES). |
|
7545 Include $(DLD_SRC) in DEP_SOURCES_3. |
|
7546 Include $(TI_SRC) in DEF_FILES_5. |
|
7547 |
|
7548 Wed Oct 11 01:26:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7549 |
|
7550 * Makefile.in (INCLUDES): Remove tc-inlines.h and tc-rep.h from |
|
7551 the list. |
|
7552 |
|
7553 Mon Oct 9 08:31:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7554 |
|
7555 * lex.l (next_token_is_bin_op): Do match `.+', `.*', etc. |
|
7556 |
|
7557 Sun Oct 8 18:19:56 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7558 |
|
7559 * idx-vector.h, idx-vector.cc: Delete files. |
|
7560 * Makefile.in (SOURCES, INCLUDES): Remove them from lists. |
|
7561 |
|
7562 Fri Oct 6 00:52:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7563 |
|
7564 * f-svd.cc (Fsvd): If nargout == 0 or nargout == 1, don't ask for |
|
7565 U and V. |
|
7566 |
|
7567 Wed Oct 4 00:04:57 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7568 |
|
7569 * f-npsol.cc (Fnpsol, Fnpsol_options): Avoid unused variable |
|
7570 warnings if NPSOL_MISSING. |
|
7571 * f-qpsol.cc (Fqpsol, Fqpsol_options): Likewise for QPSOL_MISSING. |
|
7572 |
|
7573 * Makefile.in (DISTFILES): Add octave.gperf. |
|
7574 |
|
7575 * lex.l (next_token_is_bin_op): Don't ever return true for `.' |
|
7576 since that causes problems with things like [ .1 .1 ]. |
|
7577 |
|
7578 Tue Oct 3 05:30:24 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7579 |
|
7580 * variables.cc (is_valid_function): Avoid setting error_state if |
|
7581 argument is not a string. |
|
7582 |
|
7583 * parse.y (maybe_warn_missing_semi): New function. |
|
7584 (list1, list): Call it if statement not terminated by semicolon. |
|
7585 * tree-misc.h (tree_statement::line, tree_statement::column): |
|
7586 New functions. |
|
7587 * octave.cc (input_from_command_line_file): New global variable. |
|
7588 (main): Set it. |
|
7589 (parse_and_execute): Unwind-protect it and set it to zero. |
|
7590 (eval_string): Likewise. |
|
7591 * variables.cc (parse_fcn_file): Likewise. |
|
7592 |
|
7593 * user-prefs.cc (warn_missing_semicolon): New function. |
|
7594 * user-prefs.h (user_preferences): New field, warn_missing_semicolon. |
|
7595 * variables.cc (install_builtin_variables): DEFVAR it. |
|
7596 |
|
7597 * tree-expr.cc (tree_expression::is_logically_true): Actually use |
|
7598 argument. |
|
7599 |
|
7600 Mon Oct 2 19:55:48 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7601 |
|
7602 * variables.cc (install_builtin_variables): Reduce the default |
|
7603 value of save_precision to 15. |
|
7604 |
|
7605 * variables.cc (builtin_real_scalar_variable): Return 1 for |
|
7606 success, 0 for failure. |
|
7607 |
|
7608 * user-prefs.cc (struct_levels_to_print, set_save_precision, |
|
7609 set_output_max_field_width, set_output_precision): |
|
7610 Change sense of test for builtin_real_scalar_variable return value. |
|
7611 (check_preference): Rename from check_str_pref. Change all callers. |
|
7612 Accept value of 0 to be the same as "false" and nonzero to be the |
|
7613 same as "true". |
|
7614 Delete val to avoid memory leak. |
|
7615 * variables.cc (install_builtin_variables): Change initial values |
|
7616 from "true" to 1, "false" to 0. |
|
7617 |
|
7618 * variables.cc (install_builtin_variables): Add DEFVAR for |
|
7619 gnuplot_has_multiplot. |
|
7620 |
|
7621 * user-prefs.h (user_preferences): New field, |
|
7622 `gnuplot_has_multiplot'. |
|
7623 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7624 (gnuplot_has_multiplot): New function. |
|
7625 |
|
7626 Sat Sep 30 16:52:57 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7627 |
|
7628 * oct-gperf.h, octave.gperf: Newfiles. |
|
7629 * Makefile.in (DISTFILES): Add octave.gperf. |
|
7630 (INCLUDES): Add oct-gperf.h. |
|
7631 (oct-gperf.h): New rule. |
|
7632 (local-dist, dist): Depend on oct-gperf.h. |
|
7633 * lex.l (is_keyword): Use perfect hash function to lookup |
|
7634 keywords. |
|
7635 |
|
7636 Fri Sep 29 04:36:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7637 |
|
7638 * version.h (OCTAVE_NAME_AND_VERSION): Add TARGET_HOST_TYPE to this. |
|
7639 |
|
7640 Thu Sep 28 00:03:51 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7641 |
|
7642 * tree-expr.cc (tree_expression::is_logically_true): New function. |
|
7643 * tree-cmd.cc (tree_while_command::eval): Use it instead of |
|
7644 handling the test directly here. |
|
7645 * tree-misc.cc (tree_if_clause::eval): Likewise |
|
7646 |
|
7647 * tree-const.cc (TC_REP::force_numeric): Don't try to print value |
|
7648 of str_obj with %s. |
|
7649 |
|
7650 * error.cc (buffer_error_messages): Rename from |
|
7651 suppress_octave_error_messages. |
|
7652 (error_message_buffer): New global variable. |
|
7653 (verror): Handle buffering of messages. |
|
7654 (handle_message): New function. |
|
7655 (Ferror, Fwarning, Fusage): Use it instead of duplicating code. |
|
7656 |
|
7657 * octave.cc (Feval): Buffer error messages instead of supressing them. |
|
7658 |
|
7659 * lex.l (is_keyword): Recognize `try', `catch', and `end_try_catch'. |
|
7660 * parse.y (TRY, CATCH): New tokens. |
|
7661 (command): Recognize try-catch block. |
|
7662 (end_error): Add cases for unwind_protect_end and try_catch_end. |
|
7663 * token.h (end_tok_type): New field, try_catch_end. |
|
7664 * tree-cmd.h, tree-cmd.cc (tree_try_catch): New class. |
|
7665 * variables.cc (bind_global_error_variable): New Function. |
|
7666 (clear_global_error_variable): Likewise. |
|
7667 (install_builtin_variables): Add DEFCONST for __error_text__. |
|
7668 * help.cc (keywords): Add `try', `catch', and `end_try_catch'. |
|
7669 |
|
7670 * tree-cmd.cc (tree_unwind_protect::eval): Undo previous change. |
|
7671 |
|
7672 * dirfns.cc (Freaddir, Fmkdir, Frmdir): |
|
7673 Do tilde expansion on the argument. |
|
7674 |
|
7675 Tue Sep 26 00:10:29 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7676 |
|
7677 * f-dassl.cc, f-fsolve.cc, f-lsode.cc, f-npsol.cc, f-quad.cc: |
|
7678 Don't try to figure out if the user-supplied functions take the |
|
7679 correct number of arguments. Simply let the call fail. |
|
7680 * variables.cc (takes_correct_nargs): Delete unused function. |
|
7681 * tree-expr.cc (tree_builtin::eval): Don't complain for too many |
|
7682 arguments to mapper functions. |
|
7683 * tree-expr.h, tree-expr.cc (tree_builtin, tree_function, tree_fvc): |
|
7684 Delete unused function max_expected_args. |
|
7685 |
|
7686 * defun.h (DEFUN): Delete unnecessary args nargin_min and nargout_max. |
|
7687 New arg unused_arg_flags. |
|
7688 (DEFUN_TEXT): Likewise. |
|
7689 * defun-dld.h (DEFUN_DLD_BUILTIN): Likewise. |
|
7690 * defun-int.h (DEFUN_INTERNAL, DECLARE_FUN, DEFINE_FUN_STRUCT): |
|
7691 Do the real work. |
|
7692 |
|
7693 * data.cc, dirfns.cc, dynamic-ld.cc, error.cc, f-balance.cc, |
|
7694 f-chol.cc, f-colloc.cc, f-dassl.cc, f-det.cc, f-eig.cc, f-expm.cc, |
|
7695 f-fft.cc, f-fft2.cc, f-find.cc, f-fsolve.cc, f-fsqp.cc, |
|
7696 f-givens.cc, f-hess.cc, f-ifft.cc, f-ifft2.cc, f-inv.cc, f-log.cc, |
|
7697 f-lpsolve.cc, f-lsode.cc, f-lu.cc, f-minmax.cc, f-npsol.cc, |
|
7698 f-pinv.cc, f-qpsol.cc, f-qr.cc, f-quad.cc, f-qzval.cc, f-rand.cc, |
|
7699 f-schur.cc, f-sort.cc, f-svd.cc, f-syl.cc, file-io.cc, help.cc, |
|
7700 input.cc, lex.l, load-save.cc, mappers.cc, octave-hist.cc, |
|
7701 octave.cc, octave.h, pager.cc, pr-output.cc, resource.cc, |
|
7702 sighandlers.cc, strfns.cc, sysdep.cc, timefns.cc, token.cc, |
|
7703 tree-const.cc, tree-expr.cc, tree-expr.h, tree-plot.cc, |
|
7704 unwind-prot.cc, unwind-prot.h, utils.cc, variables.cc, |
|
7705 variables.h, version.h, xdiv.cc: |
|
7706 Avoid unused variable warnings. |
|
7707 |
|
7708 * tree-expr.h (tree_oct_obj::print_value (ostream&)): |
|
7709 Delete name of unused arg. |
|
7710 (tree_fvc::save (ostream&, int, int): Likewise. |
|
7711 |
|
7712 * tree-const.h (tree_constant::tree_constant (magic_colon)): |
|
7713 Delete name of unused arg. |
|
7714 (tree_constant::tree_constant (all_va_args)): Likewise |
|
7715 (ColumnVector vector_value (int, int)): Likewise. |
|
7716 (ComplexColumnVector vector_value (int, int)): Likewise. |
|
7717 (Octave_object::eval (int, int, const Octave_object&): Likewise. |
|
7718 |
|
7719 * octave.cc (execute_startup_files): Look for octaverc first in |
|
7720 site/m, then in $(version)/m. |
|
7721 * variables.cc (get_local_site_defaults): New function. |
|
7722 * defaults.h.in (OCTAVE_LOCALFCNFILEDIR, OCTAVE_LOCALSTARTUPFILEDIR): |
|
7723 New macros. |
|
7724 * Makefile.in (defaults.h): Also substitute ${localfcndir}. |
|
7725 |
|
7726 Mon Sep 25 17:01:03 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7727 |
|
7728 * variables.cc (install_builtin_variables): Add DEFCONST for "e". |
|
7729 |
|
7730 Fri Sep 22 02:18:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7731 |
|
7732 * dirfns.cc (Fls): Delete ls_command after using it, not before. |
|
7733 |
|
7734 * input.h, input.cc (gnu_readline): Don't declare gnu_readline |
|
7735 `extern "C"'. |
|
7736 |
|
7737 * sysdep.h: Only declare gethostname if it is missing, then don't |
|
7738 declare it `extern "C"'. |
|
7739 |
|
7740 * dirfns.cc: Don't declare strerror(). |
|
7741 |
|
7742 * input.cc (command_generator): Use malloc, not xmalloc. Don't |
|
7743 declare xmalloc. |
|
7744 (gnu_readline): Don't declare this `extern "C"'. |
|
7745 |
|
7746 * octave-hist.cc: Don't declare history_get(). It is now in |
|
7747 readline/history.h. |
|
7748 |
|
7749 * input.cc: Don't declare history_get(). It is now in |
|
7750 readline/readline.h. |
|
7751 |
|
7752 * resource.cc: Don't surround include of sys/resource.h in |
|
7753 `extern "C" { }'. |
|
7754 |
|
7755 * fnmatch.h [__cplusplus]: Surround contents in `extern "C" { }'. |
|
7756 * load-save.cc, symtab.cc, variables.cc: Don't surround |
|
7757 fnmatch.h include in `extern "C" { }'. |
|
7758 |
|
7759 * help.cc: Don't #undef __FUNCTION_DEF before including |
|
7760 readline/tilde.h. |
|
7761 |
|
7762 * dirfuns.cc, file-io.cc, help.cc, load-save.cc, octave-hist.cc, |
|
7763 sysdep.cc, tree-plot.cc, utils.cc, variables.cc: |
|
7764 Don't surround readline includes in `extern "C" { }'. |
|
7765 |
|
7766 * sysdep.cc: Move all include statements to top of file. |
|
7767 |
|
7768 Tue Sep 19 01:58:21 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7769 |
|
7770 * octave.cc (Fsystem): Use iprocstream *, and unwind_protect it. |
|
7771 * pager.cc (flush_output_to_pager): Likewise. |
|
7772 * dirfns.cc (Fls): Likewise. |
|
7773 * tree-plot.cc (plot_stream): Now a pointer. |
|
7774 (open_plot_stream): Deal with it. |
|
7775 (send_to_plot_stream, cleanup_tmp_files, do_external_plotter_cd): |
|
7776 Likewise. |
|
7777 |
|
7778 * procstream.cc (cleanup_iprocstream, cleanup_oprocstream): |
|
7779 New functions. |
|
7780 |
|
7781 * procstream.h, procstream.cc (class iprocstream, class oprocstream): |
|
7782 Keep track of pbuf. Initialize it to 0 in default constructors, |
|
7783 delete it in destructor. Don't call close in destructor. |
|
7784 |
|
7785 * sighandlers.cc (octave_set_signal_handler): New function. |
|
7786 Use this name instead of signal everywhere. |
|
7787 * help.cc (try_info): Likewise. |
|
7788 * pager.cc (flush_output_to_pager): Likewise. |
|
7789 * octave.cc (main): Likewise. |
|
7790 * octave-hist.cc (do_edit_history): Likewise. |
|
7791 |
|
7792 * input.cc (initialize_readline): Set rl_paren_string_delimiters |
|
7793 to avoid treating single quotes as string delimiters when doing |
|
7794 paren matching. |
|
7795 |
|
7796 * Makefile.in (SOURCES): Don't list Map.cc or SLStack.cc here. |
|
7797 |
|
7798 * tree-const.cc: Do include utils.h. |
|
7799 |
|
7800 * sysdep.cc: Don't surround terminal includes in extern "C". |
|
7801 Include them before readline.h. |
|
7802 |
|
7803 * Map.h: Don't include utils.h. |
|
7804 (CHNode::CHNode (const char*, const C&, CHNode *t): |
|
7805 Do strsave() inline. |
|
7806 |
|
7807 * input.cc (generate_possible_completions): Generate name list |
|
7808 even when text == 0. |
|
7809 (operate_and_get_next): Don't declare history_stifled, call |
|
7810 history_is_stifled () instead. |
|
7811 Don't declare history_length, or max_input_history either. |
|
7812 Check (where >= history_length - 1) too, as in recent versions of |
|
7813 bash. |
|
7814 |
|
7815 * user-prefs.h (user_prefs): New field, `completion_append_char'. |
|
7816 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7817 (sv_completion_append_char): New function. |
|
7818 * variables.cc (install_builtin_variables): Install |
|
7819 completion_append_char. |
|
7820 * input.cc (command_generator): Use it. |
|
7821 |
|
7822 * SLList-expr.cc, SLList-misc.cc, SLList-plot.cc, SLList-tc.cc, |
|
7823 DLList-fi.cc: Include config.h. |
|
7824 * DLList-fi.cc: Include file-info.h, not file-io.h. |
|
7825 |
|
7826 Mon Sep 18 11:01:24 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7827 |
|
7828 * octave.h (clean_up_and_exit): Tag with NORETURN instead of using |
|
7829 typedef trick. |
|
7830 * error.h (panic): Likewise. |
|
7831 * utils.h (jump_to_top_level): Likewise. |
|
7832 |
|
7833 * file-io.h: Protect from multiple includes with octave_file_io, |
|
7834 not octave_files. |
|
7835 |
|
7836 * file-info.h (class file_info): Convert to using std C++ string |
|
7837 class from char *. |
|
7838 * file-info.cc: Likewise. Don't include utils.h. |
|
7839 * file-io.cc (return_valid_file, fopen_file_for_user, |
|
7840 fflush_internal, do_scanf): Use operator ==, not strcmp. |
|
7841 (close_files): Call error with file.name ().data (), |
|
7842 not file.name (). |
|
7843 (freport_internal): Call form with file.mode ().data () and |
|
7844 file.name ().data (). |
|
7845 |
|
7846 * file-io.cc, file-io.h: Extract file_info class. |
|
7847 * file-info.cc, file-info.h: New files for file_info class. |
|
7848 |
|
7849 * user-prefs.h (user_prefs): New field, `beep_on_error'. |
|
7850 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7851 (beep_on_error): New function. |
|
7852 * variables.cc (install_builtin_variables): Install beep_on_error. |
|
7853 * octave.cc (maximum_braindamage): Set beep_on_error to "true". |
|
7854 * error.cc (verror): Conditionally beep. |
|
7855 (error): Don't reset error_state until after verror is called. |
|
7856 |
|
7857 Sun Sep 17 16:41:25 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7858 |
|
7859 * load-save.cc (read_mat_binary_data, read_ascii_data, |
|
7860 save_ascii_data, read_binary_data, save_binary_data): |
|
7861 Handle string arrays. |
|
7862 |
|
7863 Fri Sep 15 00:24:19 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7864 |
|
7865 * user-prefs.cc (struct_levels_to_print, |
|
7866 set_output_max_field_width, set_output_precision, |
|
7867 set_save_precision): Eliminate unecessary kludge variable. |
|
7868 |
|
7869 * variables.cc (gobble_leading_white_space): New arg, |
|
7870 in_parts. Change all callers. |
|
7871 |
|
7872 * lex.l (HELP_FCN): Delete start state. The `help' command is now |
|
7873 handled the same as any other text-style function. |
|
7874 |
|
7875 * gripes.cc (gripe_invalid_value_specified): New function |
|
7876 * user-prefs.cc: Use it. |
|
7877 |
|
7878 * sysdep.cc (octave_words_big_endian): New global variable. |
|
7879 (ten_little_endians): New function. |
|
7880 (sysdep_init): Call it. |
|
7881 * load-save.cc (words_big_endian): Use this at run-time instead of |
|
7882 depending on WORDS_BIGENDIAN at compile-time. |
|
7883 |
|
7884 * symtab.h (SYMTAB_VARIABLES): New macro. |
|
7885 * variables.cc (Fclear): Use it instead of just |
|
7886 symbol_def::USER_VARIABLE when looking for variables. |
|
7887 |
|
7888 * octave.cc (main): If there is a file to execute, set |
|
7889 program_invocation_name and program_name to the name of the file |
|
7890 and argv to the remaining args. |
|
7891 (intern_argv): Only define argv if there are some remaining |
|
7892 arguments. |
|
7893 |
|
7894 * defun.h (DEFVAR_INT): New macro. |
|
7895 (DEFVAR): Define in terms of DEFVAR_INT. Delete args protect and |
|
7896 eternal. |
|
7897 (DEFCONST): New macro. |
|
7898 * variables.cc (install_builtin_variables): Use DEFCONST where |
|
7899 appropriate, change uses of DEFVAR to match new definition. |
|
7900 |
|
7901 * variables.cc (bind_builtin_variable): New variant that accepts |
|
7902 const tree_constant& value. |
|
7903 (install_builtin_variables): Properly alphabetize DEFVAR for this. |
|
7904 |
|
7905 * octave.cc (short_opts): Prefix with `+' to prevent argv |
|
7906 permutation. |
|
7907 (main): Don't use readline if forced_interactive. |
|
7908 (traditional): New file-scope variable. |
|
7909 (long_opts, usage_string, verbose_usage): Add `--traditional'. |
|
7910 (maximum_braindamage): New function. |
|
7911 (main): Call it if --traditional. |
|
7912 |
|
7913 * input.cc (do_input_echo): Print prompt correctly when |
|
7914 forced_interactive is either true or false. |
|
7915 |
|
7916 Thu Sep 14 00:54:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7917 |
|
7918 * data.cc (Fstruct_elements): New function. |
|
7919 |
|
7920 * file-io.cc (Fumask): New function. |
|
7921 |
|
7922 * dirfns.cc (Fmkdir, Frmdir, Frename): New functions. |
|
7923 |
|
7924 * Makefile.in: Add rules and dependencies for building safe-stat.o |
|
7925 and safe-lstat.o. |
|
7926 |
|
7927 * mkdir.c, rename.c, rmdir.c: New files. |
|
7928 * Makefile.in (SOURCES): Include them in the list. |
|
7929 |
|
7930 * safe-xstat.hin, safe-xstat.cin: New files |
|
7931 * Makefile.in (DISTFILES): Include them in the list. |
|
7932 |
|
7933 * sighandlers.cc (octave_new_handler): Try to continue on memory |
|
7934 exhausted errors. |
|
7935 (sigfpe_handler): Improve error message. |
|
7936 |
|
7937 * Makefile.in: Use `ifndef omit_deps', not `ifndef $(omit_deps)'. |
|
7938 |
|
7939 * dirfns.cc (Freaddir): New function. |
|
7940 |
|
7941 * f-sort.cc: Complete rewrite. Now uses stable sort algorithm and |
|
7942 correctly handles complex matrices containing columns of all real |
|
7943 numbers. |
|
7944 |
|
7945 Wed Sep 13 03:16:40 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7946 |
|
7947 * arith-ops.cc: Unconditionally #define DIVIDE_BY_ZERO_ERROR. |
|
7948 |
|
7949 * variables.cc (install_builtin_variables): Unconditionally |
|
7950 install NaN and nan. |
|
7951 |
|
7952 * mappers.cc (xisinf): Don't do bogus things if isinf, isnan, or |
|
7953 finite are missing. |
|
7954 (xfinite): Likewise. |
|
7955 |
|
7956 * sysdep.cc (octave_ieee_init): Don't set octave_NaN and |
|
7957 octave_Inf if values are not available. |
|
7958 |
|
7959 * resource.cc (mk_ru_map): Don't use ru_ or tv_ as prefixes to |
|
7960 Octave names for the structure members. |
|
7961 |
|
7962 Tue Sep 12 02:04:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7963 |
|
7964 * procstream.h, procstream.cc: Rewrite. |
|
7965 |
|
7966 Mon Sep 11 18:42:05 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7967 |
|
7968 * filemode.c: New file, from Emacs. |
|
7969 * Makefile.in (SOURCES): Add it to the list. |
|
7970 |
|
7971 * file-io.cc (Fstat, Flstat, mk_stat_map): New functions. |
|
7972 |
|
7973 * timefns.cc (mk_tm_map): Don't use tm_ as prefix to Octave names |
|
7974 for these structure members. |
|
7975 (extract_tm): Likewise. |
|
7976 (Flocaltime): Fix doc string to match. |
|
7977 |
|
7978 Thu Sep 7 02:04:27 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7979 |
|
7980 * load-save.cc (save_user_variables): New function. |
|
7981 * sighandlers.cc (my_friendly_exit): Call it before exiting. |
|
7982 (sigfpe_handler): New function. |
|
7983 (install_signal_handlers) [__alpha__]: Install it. |
|
7984 |
|
7985 Wed Sep 6 14:35:10 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7986 |
|
7987 * tree-cmd.cc (tree_unwind_protect::eval): Ignore errors and |
|
7988 suppress error messages while executing first block of |
|
7989 unwind_protect commands. |
|
7990 |
|
7991 * parse.y (end_error): Add missing case for unwind_protect_end. |
|
7992 |
|
7993 * tree-expr.cc (tree_builtin::eval): Complain if no arguments |
|
7994 given for mapper functions. |
|
7995 (tree_fvc::lookup_map_element): Print error message for invalid |
|
7996 structure reference. |
|
7997 |
|
7998 Tue Sep 5 02:04:12 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7999 |
|
8000 * file-io.cc, input.cc, load-save.cc, octave.cc, sysdep.cc, |
|
8001 variables.cc, octave-hist.cc, utils.cc, f-schur.cc, f-rand.cc, |
|
8002 f-quad.cc, f-qpsol.cc, f-npsol.cc, f-lsode.cc, f-fsolve.cc, |
|
8003 f-dassl.cc, f-colloc.cc, f-balance.cc, error.cc, data.cc: |
|
8004 Add const qualifiers where appropriate. |
|
8005 |
|
8006 * dirfns.h: Include <ctime>, for time_t. |
|
8007 |
|
8008 * tempname.c, file-io.cc, help.cc, input.cc, octave-hist.cc, |
|
8009 octave.cc, sighandlers.cc, sysdep.cc, tree-expr.cc, tree-misc.cc, |
|
8010 tree-plot.cc, utils.cc, variables.cc, sysdir.h: |
|
8011 Move #include <sys/type.h> inside #ifdef HAVE_UNISTD_H. |
|
8012 |
|
8013 * syswait.h: New file. |
|
8014 * Makefile.in (INCLUDES): Add it to the list. |
|
8015 * file-io.cc, sighandlers.cc: Use it instead of including |
|
8016 sys/wait.h directly. |
|
8017 |
|
8018 * octave.cc: Include statdefs.h, not sys/stat.h. |
|
8019 |
|
8020 * sysdir.h: New file. |
|
8021 * Makefile.in (INCLUDES): Add it to the list. |
|
8022 * dirfns.cc, utils.cc: Use it instead of including the headers |
|
8023 directly. |
|
8024 |
|
8025 * pathlen.h: New file. |
|
8026 * Makefile.in (INCLUDES): Add it to the list. |
|
8027 * dirfns.cc, input.cc: Use it instead of including sys/param.h |
|
8028 directly. |
|
8029 * utils.cc: Don't include sys/param.h |
|
8030 |
|
8031 Sun Sep 3 18:52:59 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8032 |
|
8033 * tree-const.cc (TC_REP::string_value): Return const char*, not |
|
8034 char *. |
|
8035 |
|
8036 * All .cc, .y, .l, .y files: Include <cctype>, not <ctype.h>, and |
|
8037 so on for all new C++ versions of these standard C headers. |
|
8038 |
|
8039 Thu Aug 31 17:09:38 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8040 |
|
8041 * pathsearch.h: Also hide `string'. |
|
8042 |
|
8043 * oct-str.cc, oct-str.h: New files. |
|
8044 * Makefile.in: Add to the appropriate lists. |
|
8045 * tc-rep.h: Change char* to Octave_string* in anonymous union. |
|
8046 * tree-expr.cc (tree_matrix::eval): Handle multiple element strings. |
|
8047 * strfns.cc (toascii): Likewise. |
|
8048 * tree-const.cc (print_as_string): Likewise. |
|
8049 (TC_REP::force_numeric, TC_REP::rows, TC_REP::columns, |
|
8050 TC_REP::double_value, TC_REP::complex_value, TC_REP::matrix_value, |
|
8051 TC_REP::complex_matrix_value, TC_REP::convert_to_str): Likewise. |
|
8052 (TC_REP::print): Call octave_print_internal for string case. |
|
8053 (all_strings): New function. |
|
8054 Fix constructors to use new data structure. |
|
8055 * pr-output.cc (octave_print_internal): Add version for strings. |
|
8056 * Array-string.cc: New file. |
|
8057 |
|
8058 * octave.cc (octave_argv): New global variable. |
|
8059 (intern_argv): New function. |
|
8060 (main): Fix argument parsing to do the right thing for arguments |
|
8061 to executable scripts. |
|
8062 * variables.cc: Add DEFUNs for argv, program_invocation_name, and |
|
8063 program_name. |
|
8064 |
|
8065 * defun.h (DEFVAR): Fix comment. |
|
8066 |
|
8067 Thu Aug 24 00:02:00 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8068 |
|
8069 * file-io.cc (fgets_internal): Make second arg optional. Add |
|
8070 optional arg `strip_final_newline'. |
|
8071 (Ffgets): Change to match new definition of fgets_internal. |
|
8072 (Ffgetl): Implement using the new fgets_internal. |
|
8073 |
|
8074 * f-rand.cc (Frand): Update code for sizing return value to match |
|
8075 that used by ones, zeros, and eye. |
|
8076 |
|
8077 Wed Aug 23 19:52:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8078 |
|
8079 * tree-const.cc (do_vector_assign): Don't crash for |
|
8080 A(range) = scalar, or A(matrix) = scalar. |
|
8081 |
|
8082 * f-dassl.cc (set_dassl_option): Rename from do_dassl_option. |
|
8083 (show_dassl_option): New function. |
|
8084 (Fdassl_options): Handle single arg. |
|
8085 * f-fsolve.cc (set_fsolve_option): Rename from do_fsolve_option. |
|
8086 (show_fsolve_option): New function. |
|
8087 (Ffsolve_options): Handle single arg. |
|
8088 * f-fsqp.cc (set_fsqp_option): Rename from do_fsqp_option. |
|
8089 (show_fsqp_option): New function. |
|
8090 (Ffsqp_options): Handle single arg. |
|
8091 * f-lpsolve.cc (set_lpsolve_option): Rename from do_lpsolve_option. |
|
8092 (show_lpsolve_option): New function. |
|
8093 (Flpsolve_options): Handle single arg. |
|
8094 * f-lsode.cc (set_lsode_option): Rename from do_lsode_option. |
|
8095 (show_lsode_option): New function. |
|
8096 (Flsode_options): Handle single arg. |
|
8097 * f-npsol.cc (set_npsol_option): Rename from do_npsol_option. |
|
8098 (show_npsol_option): New function. |
|
8099 (Fnpsol_options): Handle single arg. |
|
8100 * f-qpsol.cc (set_qpsol_option): Rename from do_qpsol_option. |
|
8101 (show_qpsol_option): New function. |
|
8102 (Fqpsol_options): Handle single arg. |
|
8103 * f-quad.cc: (set_quad_option): Rename from do_quad_option. |
|
8104 (show_quad_option): New function. |
|
8105 (Fquad_options): Handle single arg. |
|
8106 (Fquad): Doc fix. |
|
8107 |
|
8108 Tue Aug 22 00:38:05 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8109 |
|
8110 * tree-plot.cc (do_external_plotter_cd): New function. |
|
8111 * dirfns.cc (octave_change_to_directory): New function. If cd is |
|
8112 successful, also call do_external_plotter_cd(). |
|
8113 (Fcd): Call octave_change_to_directory(), not change_to_directory(). |
|
8114 |
|
8115 * pr-output.cc (pr_any_float): Change declaration of counter to |
|
8116 size_t to avoid gcc warnings. |
|
8117 |
|
8118 * idx-vector.cc, octave-hist.cc, tree-const.cc, tree-expr.cc, |
|
8119 tree-misc.cc, utils.cc, xpow.cc, Map.cc: |
|
8120 Update for change in for loop variable scope for gcc 2.7.0. |
|
8121 |
|
8122 Mon Aug 21 19:34:53 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8123 |
|
8124 * tree-const.cc (fortran_style_matrix_assignment): Properly handle |
|
8125 case of complex LHS, real RHS. |
|
8126 |
|
8127 * Makefile.in: Only include dependency files if $(omit_deps) is |
|
8128 not set. |
|
8129 |
|
8130 Wed Jul 5 00:03:58 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8131 |
|
8132 * sysdep.cc: Explicitly include string.h. |
|
8133 |
|
8134 Sun Jun 25 00:18:10 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8135 |
|
8136 * load-save.cc (too_large_for_float (const Matrix&)): |
|
8137 Extract elements as doubles, not Complex. |
|
8138 |
|
8139 Sat Jun 24 22:59:15 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8140 |
|
8141 * pr-output.cc (any_element_is_inf_or_nan): Declare extern, not static. |
|
8142 * f-svd.cc (Fsvd): Call here to avoid trying to take SVD of matrix |
|
8143 containing Inf or NaN values. |
|
8144 |
|
8145 * pr-output.cc (bit_format): New file-scope variable. |
|
8146 (set_format, pr_any_float): Handle bit_format. |
|
8147 (octave_print_internal): Handle bit_format like bank_format. |
|
8148 (init_format_state): Initialize bit_format. |
|
8149 (set_format_style): Allow `format bit' and `format native-bit'. |
|
8150 |
|
8151 Thu Jun 8 15:20:26 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8152 |
|
8153 * mappers.cc (arg, imag, signum): If arg is NaN, return NaN. |
|
8154 |
|
8155 Mon May 15 14:47:04 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8156 |
|
8157 * pager.cc (Fdiary): Initialize diary_file here, not in the |
|
8158 file-scope declaration. |
|
8159 |
|
8160 * tree-expr.cc (tree_index_expression::eval): |
|
8161 Handle nargin == 0 the same as other cases. |
|
8162 |
|
8163 Tue May 2 10:02:23 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8164 |
|
8165 * load-save.cc (do_double_format_conversion): Add missing breaks. |
|
8166 (do_float_format_conversion): Likewise. |
|
8167 |
|
8168 Mon May 1 13:50:24 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8169 |
|
8170 * Makefile.in (OCTAVE_LIBS): Add @LIBPLPLOT@ to the list. |
|
8171 |
|
8172 * timefns.cc (Ftime): Handle GETTIMEOFDAY_NO_TZ. |
|
8173 |
|
8174 * Makefile.in (SOURCES): Delete tc-rep.cc, tc-rep-ass.cc, and |
|
8175 tc-rep-idx.cc from the list. |
|
8176 |
|
8177 * tree-const.h: Add #pragma interface. |
|
8178 * tree-const.cc: Add contents of tc-rep.cc, tc-rep-ass.cc, and |
|
8179 tc-idx.cc to this file. Add #pragma implementation. This makes |
|
8180 tree-const.cc large, but makes the final binary smaller. |
|
8181 |
|
8182 * unwind-prot.h unwind-prot.cc token.cc token.h procstream.cc |
|
8183 procstream.h idx-vector.cc idx-vector.h symtab.cc symtab.h |
|
8184 oct-map.cc oct-map.h oct-obj.cc oct-obj.h tree-plot.h tree-plot.cc |
|
8185 tree-misc.cc tree-misc.h tree-expr.cc tree-expr.h tree-cmd.cc |
|
8186 tree-cmd.h tree-base.cc tree-base.h: |
|
8187 Add #pragma interface/implementation. |
|
8188 |
|
8189 * Makefile.in (OCTAVE_LIBS): Delete @LIBINFO@ from list. |
|
8190 * help.cc: Don't include info headers or extern declarations for |
|
8191 functions from info. |
|
8192 (try_info): Call info as a subprocess. Delete second arg. |
|
8193 Handle SIGINT here, not in help_from_info(). |
|
8194 (help_from_info): Complain if info doesn't work. |
|
8195 |
|
8196 * defun-dld.h (DEFUN_DLD_BUILTIN) [OCTAVE_LITE && MAKE_BUILTINS]: |
|
8197 If ! WITH_DLD, simply emit a character string constant. |
|
8198 |
|
8199 Fri Apr 28 15:23:06 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8200 |
|
8201 * lex.l ({IDENT}{S}*): Don't delete tok. That's handled by |
|
8202 strip_trailing_whitespace() now. |
|
8203 (<HELP_FCN>[^ \t\n]*{S}*|<TEXT_FCN>[^ \t\n\;\,]*{S}*): Ditto. |
|
8204 |
|
8205 * pathsearch.h: Include kpathsea/progname.h. |
|
8206 * octave.cc (initialize_globals): Call kpse_set_progname(). |
|
8207 |
|
8208 * token.h: Declare copy constructor and operator = private. |
|
8209 * token.cc: Abort if copy constructor or operator = is used. |
|
8210 |
|
8211 Thu Apr 27 13:54:39 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8212 |
|
8213 * tree-expr.cc (lookup_map_element): Don't list default argument |
|
8214 values here too. |
|
8215 |
|
8216 * pr-output.cc (hex_format): New file-scope variable. |
|
8217 (set_format, pr_any_float): Handle hex_format. |
|
8218 (octave_print_internal): Handle hex_format like bank_format. |
|
8219 (init_format_state): Initialize hex_format. |
|
8220 (set_format_style): Allow `format hex' and `format native-hex'. |
|
8221 |
|
8222 * variables.cc (bind_ans): Create ans_id each time with new and |
|
8223 ask tree_simple_assignment_expression to handle cleaning it up. |
|
8224 This apparently plugs a memory leak. |
|
8225 |
|
8226 * help.cc (Ftype): Don't try to print map constants. Handle |
|
8227 references to structure members. |
|
8228 |
|
8229 Wed Apr 26 12:40:59 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8230 |
|
8231 * input.cc (generate_struct_completions): New function. |
|
8232 (generate_possible_completions): Likewise. |
|
8233 (looks_like_struct): Likewise. |
|
8234 (command_generator): Handle completion of struct variables. |
|
8235 |
|
8236 * tree-expr.h, tree-expr.cc (tree_fvc::lookup_map_element): |
|
8237 Add insert and silent args. |
|
8238 |
|
8239 * oct-map.cc: New file. |
|
8240 * Makefile.in (SOURCES): Add it to the list. |
|
8241 |
|
8242 Mon Apr 24 09:41:02 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8243 |
|
8244 * variables.cc (Fexist): Handle structure references too. |
|
8245 |
|
8246 * tree-const.cc (lookup_map_element (const char*, int, int): |
|
8247 New function. |
|
8248 (lookup_map_element (SLList<char*>&, int, int): New arg, silent. |
|
8249 * tc-rep.cc (lookup_map_element): New arg, silent. If nonzero, |
|
8250 don't call error(). |
|
8251 |
|
8252 * tc-rep.h (is_empty): Define here. |
|
8253 * tree-const.h (is_empty): Hand off to TC_REP::is_empty(). |
|
8254 |
|
8255 * data.cc (Fstruct_contains): Call lookup_map_element on args(0) |
|
8256 instead of extracting the map and calling contains() on it. |
|
8257 |
|
8258 * parse.y (EPLUS, EMINUS): New tokens. |
|
8259 (simple_expr): Handle EPLUS, EMINUS the same as `+' and `-'. |
|
8260 * lex.l (".+", ".-"): New patterns. Match these separately to |
|
8261 disallow using them as unary operators. |
|
8262 |
|
8263 * lex.l (next_token_is_bin_op): Simplify by noting that spacing |
|
8264 only matters for those tokens that can also be unary ops. |
|
8265 |
|
8266 Fri Apr 21 14:34:45 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8267 |
|
8268 * load-save.cc (read_ascii_data): Allow reading of empty |
|
8269 matrices. |
|
8270 |
|
8271 * tc-rep-ass.cc (vector_assignment): Only assert that we are not |
|
8272 doing fortran-style indexing and that nr <= 1 || nc <= 1. |
|
8273 (do_vector_assign): Handle assignment of [] when one dimension is |
|
8274 zero and the other is anything. |
|
8275 |
|
8276 Thu Apr 20 13:56:21 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8277 |
|
8278 * tc-rep-ass.cc (delete_rows, delete_columns): Simply return if |
|
8279 num_to_delete is 0. |
|
8280 |
|
8281 * lex.l (handle_identifier): Don't match plot option keywords |
|
8282 inside parentheses or braces. |
|
8283 |
|
8284 * variables.cc (parse_fcn_file): Also delete tmp_help_txt if |
|
8285 running a script. |
|
8286 |
|
8287 * tree-cmd.h (tree_command): Add destructor. |
|
8288 |
|
8289 * tree-expr.h tree_simple_assignment_expression (lhs_idx_expr): |
|
8290 Hang on to idx_expr, not just its parts so it can be deleted. |
|
8291 (init): Initialize it. |
|
8292 * tree-expr.cc (~tree_simple_assignment_expression): Delete it. |
|
8293 |
|
8294 * tree-expr.h (tree_multi_val_ret, tree_oct_obj, tree_fvc, |
|
8295 tree_identifier, tree_builtin, tree_function): Add destructors. |
|
8296 * tree-expr.cc (tree_function::~tree_function): Delete some stuff. |
|
8297 |
|
8298 * tree-misc.h (tree_va_return_list): Add destructor. |
|
8299 |
|
8300 * octave.cc (__builtin_new, __builtin_delete): Provide our own, |
|
8301 for debugging. |
|
8302 |
|
8303 * utils.cc (strconcat): Don't depend on the return value from |
|
8304 strcat. |
|
8305 (file_in_path): Simplify logic. |
|
8306 |
|
8307 * parse.y (maybe_convert_to_ans_assign): Create ans_id each time |
|
8308 with new and ask tree_simple_assignment_expression to handle |
|
8309 cleaning it up. This apparently plugs a memory leak. |
|
8310 |
|
8311 * lex.l (strip_trailing_whitespace): Declare retval static. |
|
8312 Delete it before saving next string. |
|
8313 |
|
8314 * error.cc (Ferror): Do call error() for empty string args. |
|
8315 (error_1): Don't print anything if fmt is "" or "\n", but do set |
|
8316 the error state appropriately. |
|
8317 |
|
8318 * tree-cmd.cc (tree_unwind_protect::eval): Handle return and break |
|
8319 in the `try' part of the statement. |
|
8320 |
|
8321 Mon Apr 10 19:29:44 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8322 |
|
8323 * f-expm.cc, f-givens.cc, f-qzval.cc, f-syl.cc, f-rand.cc: |
|
8324 Where appropriate, declare Fortran functions to take reference |
|
8325 instead of pointer args. Change callers. |
|
8326 |
|
8327 * mappers.cc: Declare Fortran functions to take reference instead |
|
8328 of pointer args. Change callers. |
|
8329 |
|
8330 * gamma.c, lgamma.c, erfc.c, erf.c, atanh.c, asinh.c, acosh.c: |
|
8331 Declare Fortran functions to take reference instead of pointer |
|
8332 args. |
|
8333 |
|
8334 Sun Apr 9 19:38:53 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8335 |
|
8336 * file-io.cc (Fpopen, Fpclose, Fexecute, Fsync_system, |
|
8337 Fasync_system, Fwaitpid, Fmkfifo, Funlink): New functions. |
|
8338 |
|
8339 * sighandlers.cc (sigchld_handler): New function. |
|
8340 (install_signal_handlers): Add call to install |
|
8341 sigchld_handler. (This is #if 0'd out, waiting for code to help |
|
8342 determine which child exited and what to do about it). |
|
8343 |
|
8344 * tree-expr.h (tree_oct_obj): New class. |
|
8345 |
|
8346 * tree-expr.h (tree_multi_assignment_expression::preserve): New |
|
8347 data member. Add arg with default value to constructors. Change |
|
8348 callers as necessary. |
|
8349 * tree-expr.cc (~tree_multi_assignment_expression): Conditionally |
|
8350 delete lhs. |
|
8351 |
|
8352 * parse.y (make_multi_val_ret): Pass matrix instead of getting it |
|
8353 from the global matrix list. |
|
8354 (expression): Extract matrix from matrix list before calling |
|
8355 make_multi_val_ret(). |
|
8356 |
|
8357 * parse.y (command): Handle new for loop syntax for structures. |
|
8358 |
|
8359 * tree-plot.h (subplot_list): Include tree_print_code() in |
|
8360 initializer lists for constructors. |
|
8361 * tree-expr.h (tree_statement_list, tree_argument_list, |
|
8362 tree_parameter_list, tree_return_list, tree_global_init_list, |
|
8363 tree_if_command_list, ): Likewise. |
|
8364 |
|
8365 * tree-cmd.h (tree_for_command::id_list): New data member. |
|
8366 (tree_for_command (tree_return_list*, tree_expression*, |
|
8367 tree_statement_list*, int, int)): Likewise. |
|
8368 * tree-cmd.cc (tree_for_command::eval): Handle for loops with |
|
8369 structures. |
|
8370 (do_for_loop_once (tree_return_list*, Octave_object&, int&)): |
|
8371 New form for handling for loops with structures. |
|
8372 |
|
8373 * sysdep.cc (octave_ieee_init): Determine floating point format |
|
8374 here. |
|
8375 (native_float_format): New global variable. |
|
8376 (Fisieee): Compute return value from native_float_format, not by |
|
8377 using preprocessor macros. |
|
8378 * sysdep.h (enum floating_point_format): Move declaration here. |
|
8379 * load-save.cc: From here. |
|
8380 Always define all floating point format conversion routines. |
|
8381 (do_double_format_conversion, do_float_format_conversion): |
|
8382 Use native_float_format instead of preprocessor macros. |
|
8383 |
|
8384 Sat Apr 8 15:41:35 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8385 |
|
8386 * Makefile (TEMPLATE_SRC): New variable. |
|
8387 (DISTFILES): Add $(TEMPLATE_SRC). |
|
8388 (SOURCES): Delete Map.cc and SLStack.cc from here. |
|
8389 |
|
8390 * variables.cc (install_builtin_variables): Use OCTAVE_VERSION |
|
8391 instead of version_string to initialize OCTAVE_VERSION. |
|
8392 * version.h (version_string): Delete. |
|
8393 |
|
8394 * getopt.c (_getopt_internal): Initialize indfound to avoid warning. |
|
8395 |
|
8396 Fri Apr 7 15:29:41 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8397 |
|
8398 * tc-inlines.h (REP_RHS_MATRIX): Just check to see if tc is real |
|
8399 or complex. If conversion fails, return. |
|
8400 |
|
8401 Thu Apr 6 00:10:47 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8402 |
|
8403 * data.cc (Fstruct_contains): New function. |
|
8404 |
|
8405 * tc-rep.cc (print_code): Add extra parens around while condition |
|
8406 to avoid warning. |
|
8407 * utils.cc (undo_string_escapes): Likewise. |
|
8408 * input.cc (decode_prompt_string): Likewise. Also rewrite if |
|
8409 statement to avoid warning. |
|
8410 |
|
8411 Tue Apr 4 22:54:17 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8412 |
|
8413 * tree-expr.cc (tree_multi_assignment_expression::eval, |
|
8414 tree_simple_assignment_expression::eval): Call print_constant |
|
8415 even if user_pref.print_answer_id_name is false. |
|
8416 |
|
8417 Mon Apr 3 17:57:14 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8418 |
|
8419 * tc-inlines.h (TC_REP): Avoid redefinition. |
|
8420 |
|
8421 * tree-const.h (do_binary_op, do_unary_op): Declare as friends of |
|
8422 tree_constant class too. |
|
8423 |
|
8424 * tree-plot.h (subplot_using::have_values): Delete data member. |
|
8425 * tree-plot.cc (subplot_using::eval): Always recompute values. |
|
8426 |
|
8427 Fri Mar 31 10:18:32 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8428 |
|
8429 * tc-rep.cc (print): Print open brace for structures here. |
|
8430 * tree-expr.cc (print_constant): Not here. |
|
8431 |
|
8432 * symtab.cc (define): Don't delete arg if sv_fcn fails. |
|
8433 |
|
8434 * tree-const.cc (print): New function. Create ostrstream buffer |
|
8435 and pass it to rep->print(). |
|
8436 * tree-const.h (eval (int)): Call print(), not rep->print(). |
|
8437 * tc-rep.cc (structure_indent_level): New file-scope variable. |
|
8438 (print): New arg, output_buf, is stream to print to. |
|
8439 Print values of structure elements too. |
|
8440 |
|
8441 * user-prefs.h (user_preferences): New field, struct_levels_to_print. |
|
8442 * user-prefs.cc (struct_levels_to_print): New function. |
|
8443 * variables.cc (install_builtin_variables): Add DEFVAR for new |
|
8444 variable struct_levels_to_print. |
|
8445 |
|
8446 * tree-const.cc (print_as_scalar, print_as_structure): Move here |
|
8447 from tree-expr.cc and make extern. |
|
8448 |
|
8449 * tree-expr.cc (print_as_structure): New function. |
|
8450 (print_constant): Use it. |
|
8451 |
|
8452 * tree-expr.cc (print_constant): New arg, print_padding. |
|
8453 (tree_simple_assignment_expression::eval): Use print_constant |
|
8454 instead of duplicating code here. |
|
8455 (tree_multi_assignment_expression::eval): Likewise. |
|
8456 |
|
8457 Thu Mar 30 13:24:11 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8458 |
|
8459 * Makefile.in (SOURCES): Add resource.cc. |
|
8460 * resource.cc: New file, extracted from timefns.cc. |
|
8461 (Fgetrusage): New function. |
|
8462 * timefns.cc (cputime): Delete (now implemented in a function file |
|
8463 using new getrusage function). |
|
8464 |
|
8465 Wed Mar 29 22:52:42 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8466 |
|
8467 * Makefile.in (SOURCES): Add strftime.c. |
|
8468 * strftime.c: New file, from sh-utils distribution. |
|
8469 |
|
8470 * timefns.cc (mk_tm_map, extract_tm, Ftime, Fgmtime, Flocaltime, |
|
8471 Fmktime, Fstrftime): New basic time functions. |
|
8472 (Fclock, Fdate): Delete (now implemented in function files using new |
|
8473 time functions). |
|
8474 |
|
8475 Tue Mar 28 17:51:51 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8476 |
|
8477 * file-io.cc (return_valid_file, do_printf, do_scanf, |
|
8478 fclose_internal, feof_internal, ferror_internal, fflush_internal, |
|
8479 fgets_internal, fopen_internal, fread_internal, freport_internal, |
|
8480 frewind_internal, fseek_internal, ftell_internal, |
|
8481 fwrite_internal): Declare static. |
|
8482 * file-io.h: Delete extern declarations for them. |
|
8483 |
|
8484 Fri Mar 24 09:52:50 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8485 |
|
8486 * pr-output.cc (pr_col_num_header): New function. |
|
8487 (compact_format): New file-scope variable. |
|
8488 (set_format_style): Handle loose and compact formats. |
|
8489 (octave_print_internal (ostream&, const ComplexMatrix&, int)): |
|
8490 Replace duplicate code with call to pr_col_num_header(). |
|
8491 (octave_print_internal (ostream&, const Matrix&, int): Likewise. |
|
8492 (octave_print_internal (ostream&, const Range&, int): Likewise. |
|
8493 |
|
8494 Tue Mar 21 08:44:48 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8495 |
|
8496 * mappers.cc (xgamma): Always use Slatec library function. |
|
8497 * (xlgamma): Likewise. |
|
8498 * Makefile.in (SOURCES): Don't include lgamma.c. |
|
8499 |
|
8500 Fri Mar 17 22:38:39 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8501 |
|
8502 * tc-rep.cc (TC_REP::new): Don't try to keep track of newlist_tail. |
|
8503 Explicitly initialize newlist to zero. |
|
8504 * tree-const.cc (tree_constant::operator new): Likewise. |
|
8505 |
|
8506 Fri Mar 10 12:40:24 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8507 |
|
8508 * tree-cmd.cc (quit_loop_now): Declare inline. |
|
8509 (tree_for_command::do_for_loop_once): Split into two versions, one |
|
8510 for the general case and one for when the loop variable is a |
|
8511 simple identifier. |
|
8512 (DO_LOOP): New macro. Move tests outside of loop. |
|
8513 (tree_for_command::eval): Speed up by checking to see if loop |
|
8514 variable is a simple identifier and by using DO_LOOP. |
|
8515 |
|
8516 * tree-const.h: New union of rep and freeptr. The freeptr element |
|
8517 is used for our custom memory management functions. |
|
8518 |
|
8519 * tc-rep.h: Add freeptr element to anonymous union (for our custom |
|
8520 memory management functions). |
|
8521 |
|
8522 * tree-const.cc (newlist, newlist_grow_size, newlist_tail): New |
|
8523 static variables. |
|
8524 (tree_constant::operator new): Always define to allow more |
|
8525 efficient allocation of single tree_constants. |
|
8526 (tree_constant::operator delete): Likewise, handle deletion of the |
|
8527 memory we allocate. |
|
8528 |
|
8529 * tc-rep.cc (newlist, newlist_grow_size, newlist_tail): New static |
|
8530 variables. |
|
8531 (tree_constant::operator new): Always define to allow more |
|
8532 efficient allocation of single tree_constants. |
|
8533 (tree_constant::operator delete): Likewise, handle deletion of the |
|
8534 memory we allocate. |
|
8535 |
|
8536 Fri Mar 3 14:00:08 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8537 |
|
8538 * error.cc (verror): Terminate output_buf with ends. |
|
8539 |
|
8540 * statdefs.h: Use C-style comment in first line instead of |
|
8541 C++-style comment. |
|
8542 |
|
8543 Mon Feb 27 10:11:18 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8544 |
|
8545 * parse.y (maybe_convert_to_ans_assign): Only lookup ans once. |
|
8546 * variables.cc (bind_ans): New function. |
|
8547 * tree-expr.cc (tree_identifier::eval (int)): Use it here. |
|
8548 (tree_identifier::eval (int, int, const Octave_object&): And here. |
|
8549 |
|
8550 * tree-expr.cc (install_nargin_and_nargout): New function. |
|
8551 * tree-expr.h (tree_function::tree_function (tree_statement_list *, |
|
8552 symbol_table *, int, int)): Call it. |
|
8553 |
|
8554 * tree-expr.cc (tree_function::bind_nargin_and_nargout): New function. |
|
8555 (tree_function::eval): Call it insead of the one from variables.cc. |
|
8556 |
|
8557 * variables.cc (bind_nargin_and_nargout): #if 0 out. |
|
8558 |
|
8559 Sun Feb 26 00:17:06 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8560 |
|
8561 * load-save.cc (Fload, Fsave): Free fname returned by tilde_expand(). |
|
8562 * dirfns.cc (Fls): Likewise. |
|
8563 |
|
8564 * tree-expr.cc (tree_multi_assignment_expression::eval (int, int, |
|
8565 const Octave_object&)): Call tree_return_list::operator () (Pix) |
|
8566 explicitly. |
|
8567 |
|
8568 * octave.cc (initialize_globals): Put TEXMF in the environment for |
|
8569 kpthsea. |
|
8570 |
|
8571 * Makefile.in (OCTAVE_LIBS): Use @LIBINFO@ and @LIBREADLINE@, |
|
8572 substituted by configure. Use kpathsea.a, not libkpathsea, so we |
|
8573 don't have to modify the kpathsea Makefile. |
|
8574 |
|
8575 Sat Feb 25 18:59:26 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8576 |
|
8577 * pathsearch.cc: New file. |
|
8578 * pathsearch.h: New file. |
|
8579 * Makefile.in (INCLUDES): Include it in the list. |
|
8580 * dynamic-ld.cc, help.cc, utils.cc: Use it instead of repeating |
|
8581 identical code multiple times. |
|
8582 |
|
8583 * variables.cc (install_builtin_variables): Only DEFVAR |
|
8584 suppress_verbose_help_message if USE_GNU_INFO. |
|
8585 |
|
8586 * help.cc (Fhelp): Only handle -i if USE_GNU_INFO. |
|
8587 (additional_help_message): Only print message if USE_GNU_INFO. |
|
8588 (builtin_help): New function. |
|
8589 (help_from_info): New function. Print warning if not USE_GNU_INFO. |
|
8590 |
|
8591 See ChangeLog.1 in the top level directory for earlier changes. |