3887
|
1 2002-04-03 Steven G. Johnson <stevenj@alum.mit.edu> |
|
2 |
|
3 * DLD-FUNCTIONS/balance.cc: Use F77_FUNC instead of F77_FCN. |
|
4 * DLD-FUNCTIONS/qz.cc: Likewise. |
|
5 * DLD-FUNCTIONS/rand.cc: Likewise. |
|
6 * octave.cc: Likewise. |
|
7 * src/toplev.cc (Foctave_config_info): Delete use of FORTRAN_MAIN_FLAG. |
|
8 * oct-conf.h.in: Delete use of OCTAVE_CONF_FORTRAN_MAIN_FLAG. |
|
9 * syscalls.cc (mk_stat_map): |
|
10 Use HAVE_STRUCT_STAT_ST_RDEV instead of HAVE_ST_RDEV. |
|
11 Use HAVE_STRUCT_STAT_ST_BLKSIZE instead of HAVE_ST_BLKSIZE. |
|
12 Use HAVE_STRUCT_STAT_ST_BLOCKS instead of HAVE_ST_BLOCKS. |
|
13 |
3881
|
14 2002-04-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
15 |
3883
|
16 * lex.l, lex.h (parser_end_of_input): New global variable. |
|
17 (reset_parser): Reset it here. |
|
18 * parse.y (input): Set it to TRUE on EOF. |
|
19 (parse_and_executed): Save and restore it, check it to correctly |
|
20 break out of parse-execute loop. |
|
21 (parse_fcn_file): Likewise. |
|
22 (eval_string): Likewise. |
3884
|
23 * toplev.cc (main_loop): Likewise. |
3883
|
24 |
3881
|
25 * parse.y (input): Call YYACCEPT for END_OF_INPUT. |
3883
|
26 Return no-op command for bare newline. |
3881
|
27 (parse_and_execute): Handle change in yyparse return value semantics. |
3883
|
28 |
3881
|
29 * toplev.cc (main_loop): Likewise. |
|
30 |
3880
|
31 2002-03-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
32 |
|
33 * parse.y (parse_fcn_file): Call error if there is no input file. |
|
34 (parse_and_execute (FILE *): Protect get_input_from_eval_string. |
|
35 Set get_input_from_eval_string to false before calling yyparse. |
|
36 * lex.l (reset_parser): Also skip yyrestart (stdin) if |
|
37 reading_script_file is true. |
|
38 |
3877
|
39 2002-03-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
40 |
|
41 * pt-loop.cc (evaluating_looping_command): New global. |
|
42 (tree_while_command::eval): Protect evaluating_looping_command. |
|
43 Set it to true while evaluating loop. |
|
44 (tree_do_until_command::eval): Ditto. |
|
45 (tree_simple_for_command::eval): Ditto. |
|
46 (tree_complex_for_command::eval): Ditto. |
|
47 * pt-loop.h (evaluating_looping_command): Provide decl. |
|
48 * parse.y (parse_fcn_file): Protect get_input_from_eval_string. |
|
49 Set get_input_from_eval_string to false before calling yyparse. |
|
50 (make_break_command): Also check evaluating_looping_command. |
|
51 (make_continue_command): Also check evaluating_looping_command. |
|
52 (eval_string (const std::string&, bool, int&, int)): Loop over |
|
53 yyparse to handle multi-line strings. |
|
54 Move call to unwind_protect::run_frame to end of function. |
|
55 Don't reset parser before calling yyparse. |
|
56 Correctly handle return, break, and continue. |
|
57 |
|
58 * input.cc (input_from_eval_string_pending): New global variable. |
|
59 (get_usr_input): Use it. |
|
60 * input.h (input_from_eval_string_pending): Provide decl. |
|
61 |
3876
|
62 2002-03-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
63 |
|
64 * ov-usr-fcn.cc (octave_user_function::do_multi_index_op): |
|
65 Don't unwind_protect num_named_args (it doesn't change on |
|
66 recursive calls). |
|
67 Do re-initialize curr_va_arg_number to num_named_args after |
|
68 unwind_protecting. |
|
69 |
|
70 * ov-usr-fcn.h (octave_user_function::clear_args_passed): Delete. |
|
71 (octave_user_function::saved_args): New data member. |
|
72 (octave_user_function::save_args_passed): New function. |
|
73 (octave_user_function::restore_args_passed): Ditto. |
|
74 * ov-usr-fcn.cc (clear_args_passed): Delete. |
|
75 (restore_args_passed): New function. |
|
76 (octave_user_function::do_multi_index_op): Correctly save and |
|
77 restore args passed for recursive calls. |
|
78 |
|
79 * TEMPLATE-INST/SLStack-ovl.cc: New file. |
|
80 * Makefile.in: Add it to the list. |
|
81 |
3870
|
82 2002-02-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
83 |
3871
|
84 * ov-usr-fcn.cc (octave_user_function::do_multi_index_op): |
|
85 Handle define_all_return_values after function is evaluated. |
|
86 From Paul Kienzle <pkienzle@jazz.ncnr.nist.gov>. |
|
87 |
|
88 * ov-scalar.cc (convert_to_str): Use octave_value (std::string) |
|
89 constructor instead of octave_value (char *) constructor so that |
|
90 setstr (0) will work. |
|
91 |
3870
|
92 * pager.cc (octave_pager_buf::sync): Set pointer to beginning |
|
93 of buffer after calling flush_currnt_contents_to_diary. |
|
94 (octave_diary_buf::sync): Call eback only once. |
|
95 |
3867
|
96 2002-01-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
97 |
|
98 * lex.l (.): Remove test for EOF since it is already handled |
|
99 separately. |
|
100 |
3866
|
101 2001-12-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
102 |
|
103 * load-save.cc (save_mat5_binary_element): |
|
104 Extract dimensions directly from tc. |
|
105 Handle ranges the same as real matrices. |
|
106 |
3864
|
107 2001-11-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
108 |
|
109 * data.cc (DATA_REDUCTION): If no DIM arg, pass -1 to FCN. |
|
110 |
3859
|
111 2001-11-09 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
112 |
|
113 * oct-conf.h.in (FFTW_LIBS, LD_CXX, LIBOCT_PATHSEARCH, |
|
114 LIBOCT_READLINE, MKOCTFILE_LFLAGS): Substitute. |
|
115 * toplev.cc (octave_config_info): Add them to the map. |
|
116 |
|
117 2001-11-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
118 |
|
119 * DLD-FUNCTIONS/lsode.cc (Flsode): Don't bother to give OUTPUT |
|
120 matrix a size before calling integration function. |
|
121 |
3857
|
122 2001-11-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
123 |
|
124 Makefile.in (OCTAVE_LIBS): Add $(LIBOCT_READLINE) and |
|
125 $(LIBOCT_PATHSEARCH) to the list. |
|
126 |
3849
|
127 2001-10-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
128 |
|
129 * DLD-FUNCTIONS/dassl.cc (dassl_user_function): Allow user |
|
130 supplied RES function to return IDID as second value. |
|
131 |
3844
|
132 2001-07-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
133 |
|
134 * parse.y: Clear help_buf after documenting function. |
|
135 |
3842
|
136 2001-06-29 Mumit Khan <khan@nanotech.wisc.edu> |
|
137 |
|
138 * defun-int.h (DEFINE_FUN_INSTALLER_FUN{2,3}): New macros. |
|
139 (DEFINE_FUN_INSTALLER_FUN): Use. |
|
140 * dynamic-ld.cc ({STRINGIFY, STRINGIFY1}): New macros. |
|
141 (octave_dynamic_loader::mangle_name): Support dynamic linking |
|
142 for GNU v3 and Sun C++ ABI. |
|
143 |
3841
|
144 2001-06-26 Mumit Khan <khan@nanotech.wisc.edu> |
|
145 |
|
146 * c-file-ptr-stream.h (c_file_ptr_buf::c_file_ptr_buf): Add GCC3 |
|
147 libstdc++-v3 support. |
|
148 * load-save.cc (save_mat5_binary_element): Cast arguments to the |
|
149 correct type. |
|
150 (save_ascii_data): Eliminate compiler warning. |
|
151 * toplev.cc (system): Prefix std::. |
|
152 |
3836
|
153 2001-05-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
154 |
|
155 * ov-cx-mat.cc: Deleve unnecessary instantiation of assign function. |
|
156 * ov-re-mat.cc: Likewise. |
|
157 * ov-re-nd-array.cc: Likewise. |
|
158 * ov-str-mat.cc: Likewise. |
|
159 * ov-bool-mat.cc: Likewise. |
|
160 |
|
161 * load-save.cc (save_ascii_data): When saving string data, get raw |
|
162 string value for matrix row since there may be embedded nuls. |
|
163 |
|
164 * pt-mat.cc (Vstring_fill_char): No longer static. |
|
165 * pt-mat.h: Provide declaration. |
|
166 |
3834
|
167 2001-05-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
168 |
|
169 * octave.cc (initialize_pathsearch): Save initial value of the |
|
170 TEXMFDBS environment variable here. |
|
171 * toplev.cc (restore_texmfdbs_envvar): New function. |
|
172 (Fsystem): Set TEXMFDBS back to original value before running |
|
173 subprocesses. |
|
174 |
3827
|
175 2001-05-02 Mumit Khan <khan@nanotech.wisc.edu> |
|
176 |
|
177 * Makefile.in (octave): Add $(FFTW_LIBS). |
|
178 |
3826
|
179 2001-04-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
180 |
|
181 * DLD-FUNCTIONS/sort.cc (mx_sort): Check for NaNs in comparisons. |
|
182 |
3822
|
183 2001-04-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
184 |
|
185 * Makefile.in (OCTAVE_LIBS): Delete $(LIBREADLINE) from the list. |
|
186 (octave): Delete TERMLIBS from link command. |
|
187 * oct-conf.h.in: Delete references to LIBREADLINE, TERMLIBS. |
|
188 * toplev.cc (octave_config_info): Delete entries for LIBREADLINE, |
|
189 TERMLIBS. |
|
190 |
3821
|
191 2001-04-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
192 |
|
193 * Makefile.in (install-lib): Don't use mk-libdir-link. |
|
194 (install-inc): Don't use mk-includedir-link. |
|
195 |
3815
|
196 2001-04-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
197 |
|
198 * parse.y (fold (tree_binary_expression *)): |
|
199 Set discard_error_messages here instead of buffer_error_messages. |
|
200 Don't add clear_global_error_variable to the unwind_protect stack. |
|
201 (fold (tree_unary_expression *)): Likewise. |
|
202 (finish_colon_expression): Likewise. |
|
203 (finish_matrix): Likewise. |
|
204 |
|
205 * error.cc (panic): Set discard_error_messages to false here. |
|
206 (verror): Return immediately if discard_error_messages is true. |
|
207 |
|
208 * error.cc (discard_error_messages): New global variable. |
|
209 * error.h: Provide declaration. |
|
210 |
3813
|
211 2001-04-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
212 |
|
213 * lex.l: If unexpected character is EOF, report EOF error instead |
|
214 of invalid character error. |
|
215 |
3812
|
216 2001-04-18 Mumit Khan <khan@nanotech.wisc.edu> |
|
217 |
|
218 * load-save.cc (read_mat5_binary_element): Cast arguments to the |
|
219 correct type when adding stream positions. |
|
220 * DLD-FUNCTIONS/det.cc (det): Explicity create a Complex value to |
|
221 work around a Sun C++ type conversion bug. |
|
222 |
3811
|
223 2001-04-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
224 |
|
225 * symtab.cc (define_builtin_const): Don't call replace_all_defs |
|
226 here. |
|
227 |
|
228 * error.cc (error_message_buffer): Now static. |
|
229 * error.h (error_message_buffer): Delete extern declaration. |
|
230 |
3810
|
231 2001-03-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
232 |
|
233 * DLD-FUNCTIONS/besselj.cc (besselh): Use K arg. |
|
234 From: Thomas Stuart <tstuart@ing.sun.ac.za>. |
|
235 |
|
236 * oct-stream.cc (get_size): Don't allow [Inf, N] as a size |
|
237 specification for the read and scanf functions. |
|
238 (get_size): SIZE is now an Array<double> instead of a Matrix object. |
|
239 (read): Likewise. Change all callers. |
|
240 (scanf): Likewise. Change all callers. |
|
241 |
3808
|
242 2001-03-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
243 |
|
244 * DLD-FUNCTIONS/det.cc (Fdet): Only return rcond if nargout > 1. |
|
245 * DLD-FUNCTIONS/inv.cc (Finv): Only return rcond if nargout > 1. |
|
246 |
|
247 2001-03-26 Paul Kienzle <pkienzle@kienzle.powernet.co.uk> |
|
248 |
|
249 * DLD-FUNCTIONS/det.cc (Fdet): Suppress warning, but return rcond. |
|
250 * DLD_FUNCTIONS/inv.cc (Finv): Return rcond if requested. |
|
251 |
3804
|
252 2001-02-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
253 |
3805
|
254 * pt.h (tree::break_statement): New static member. |
|
255 (tree::break_function): Make const. |
|
256 * pt.cc (tree::break_statement): Initialize here. |
|
257 (tree::break_function): Make const. |
|
258 * pb-bp.h (break_statement): Delete global varaible declaration. |
|
259 * pt-bp.cc (break_statement): Delete global variable definition. |
|
260 |
|
261 * pt-bp.h (tree_breakpoint::bp_list): Rename from lst. |
|
262 |
|
263 * pt.h: Don't inlcude ov-usr-fcn.h. |
|
264 Provide forward declaration of octave_user_function class. |
|
265 |
|
266 2001-02-28 Ben Sapp <bsapp@lanl.gov> |
|
267 |
|
268 * debug.cc (get_user_function): Simplify by using curr_function. |
|
269 (Fdbg_where): New function. |
|
270 (Fdbg_list): Now DLD_TEXT instead of DLD_FCN. |
|
271 (Fdbg_set): Likewise. |
|
272 (Fdbg_delete): Likewise. |
|
273 |
|
274 * pt-bp.h (break_statement): New global variable. |
|
275 (MAYBE_DO_BREAKPOINT): Check for dbg_next and dbg_step. |
|
276 Print line, column, and current statement. |
|
277 * pt-bp.cc (break_statement): New global variable |
|
278 (tree_breakpoint::visit_do_until_command): Return immediately if |
|
279 we've already found the line. |
|
280 (tree_breakpoint::visit_colon_expression): Set breakpoint info here. |
|
281 (tree_breakpoint::visit_binary_expression): Recurse here when |
|
282 checking for breakpoints. |
|
283 |
|
284 * debug.cc: Move here from DLD-FUNCTIONS/debug.cc. |
|
285 * Makefile.in (DIST_SRC): Add it to the list. |
|
286 (DLD_XSRC): Delete it from the list. |
|
287 |
|
288 * pt.h (tree::last_line, tree::break_function): New static members. |
|
289 * pt.cc(tree::last_line, tree::break_function): Initialize them. |
|
290 |
|
291 * pt-cell.h (tree_cell::tree_cell): Accept line and column info. |
|
292 * pt-mat.h (tree_matrix::tree_matrix): Likewise. |
|
293 |
|
294 * ov-usr-fcn.h (octave_user_function::sym_tab): Delete. |
|
295 |
|
296 * input.cc (get_user_input): Handle dbg_next. |
|
297 Set tree:break_function and tree::last_line when doing dbg_step. |
|
298 |
|
299 2001-02-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
300 |
|
301 * lex.l (handle_string): Save line and column information in token. |
|
302 (is_keyword): Save line and column information for plot style and |
|
303 axes tokens. |
|
304 |
3804
|
305 * toplev.cc (main_loop): Set retval to non-zero value if error |
|
306 occurs when not interactive. |
|
307 |
3802
|
308 2001-02-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
309 |
|
310 * parse.y (gobble_leading_white_space): Handle CRLF here too. |
|
311 * lex.l (check_for_garbage_after_fcn_def): Likewise. |
|
312 |
|
313 * lex.l: Add numeric value of character to error message for |
|
314 unrecognized characters. |
|
315 |
3800
|
316 2001-02-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
317 |
|
318 * DLD-FUNCTIONS/minmax.cc (EMPTY_RETURN_CHECK): For empty matrix |
|
319 args, make Octave's min and max behave like Matlab. |
|
320 |
3799
|
321 2001-02-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
322 |
|
323 * OPERATORS/op-s-s.cc (el_or, el_and): Return bool value. |
|
324 |
3798
|
325 2001-02-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
326 |
|
327 * pt-binop.cc (tree_boolean_expression::rvalue): |
|
328 Don't cast result to double. |
|
329 |
|
330 * OPERATORS/op-b-b.cc: Allow & and | operators to return bool values. |
|
331 |
|
332 2001-02-09 John W. Eaton <jwe@bevo.che.wisc.edu> |
3797
|
333 |
|
334 * data.cc (DATA_REDUCTION): Undo previous change. |
|
335 |
|
336 2001-02-13 Matthew W. Roberts <matt@nephi.tamu.edu> |
|
337 |
|
338 * load-save.cc (Fload): Accept -4 as an alias for -v4 and -mat4-binary. |
|
339 (Fsave): Likewise. |
|
340 |
3796
|
341 2001-02-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
342 |
|
343 * lex.l (lexical_feedbac::init): |
|
344 Initialize looking_at_matrix_or_assign_lhs too. |
|
345 |
3795
|
346 2001-02-09 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
347 |
|
348 * data.cc (DATA_REDUCTION): Allow FCN(x,0) to be equivalent to FCN(x). |
|
349 |
3779
|
350 2001-02-06 Mumit Khan <khan@nanotech.wisc.edu> |
|
351 |
|
352 * oct-stream.cc (octave_scan): Partially implement and specialize |
|
353 for char*. Delete the old template instantiations. |
|
354 (BEGIN_S_CONVERSION): Use strings instead of ostrstreambuf. |
|
355 (octave_base_stream::do_scanf): Pass correct parameter to |
|
356 do_scan_conv. |
|
357 |
3775
|
358 2001-02-05 Mumit Khan <khan@nanotech.wisc.edu> |
|
359 |
3776
|
360 * pr-output.cc (set_format): Add std:: namespace qualifier as |
|
361 needed. |
|
362 |
3775
|
363 * oct-stream.cc (octave_scan): Implement, and specialize for |
|
364 char*. Delete the old template instantiations. |
|
365 (BEGIN_S_CONVERSION): Use strings instead of ostrstreambuf. |
|
366 (octave_base_stream::do_scanf): Pass correct parameter to |
|
367 do_scan_conv. |
|
368 |
|
369 * Makefile.in (TEMPLATE_AR, TEMPLATE_ARFLAGS): Use to create |
|
370 archive libraries containing templates. |
|
371 |
|
372 * c-file-ptr-stream.h: Include <fstream>. Use <cstdio> instead of |
|
373 <stdio.h> |
|
374 (c_file_ptr_buf::int_type): Compat typedef for non-ISO libstdc++. |
|
375 (c_file_ptr_buf::{overflow, underflow, uflow, pbackfail): Use. |
|
376 (c_file_ptr_buf::c_file_ptr_buf): Handle various compilers. |
|
377 (c_file_ptr_buf::file_number): New member function. |
|
378 (c_file_ptr_buf::fd): New private data. |
|
379 (i_c_file_ptr_stream::i_c_file_ptr_stream): Initialize stream |
|
380 correctly. |
|
381 (o_c_file_ptr_stream::o_c_file_ptr_stream): Likewise. |
|
382 * c-file-ptr-stream.cc |
|
383 (c_file_ptr_buf::{overflow, underflow, uflow, pbackfail): Add |
|
384 ISO-compliant EOF handling. |
|
385 * oct-stream.cc (octave_base_stream::file_number): Use |
|
386 c_file_ptr_buf::file_number to get underlying file descriptor. |
|
387 |
|
388 * comment-list.cc: Add missing class qualifier. |
|
389 |
|
390 * file-io.cc, load-save.cc, mappers.cc, oct-fstrm.cc, oct-fstrm.h, |
|
391 oct-iostrm.cc, oct-iostrm.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
392 oct-stream.cc, oct-stream.h, oct-strstrm.cc, oct-strstrm.h, |
|
393 ov-base-nd-array.cc, ov-base-scalar.h, ov-complex.cc, ov-cx-mat.cc, |
|
394 pager.cc, pr-output.cc, procstream.h, pt-bp.h, utils.cc: |
|
395 Add std:: namespace qualifier as needed, and replace |
|
396 deprecated or invalid libstdc++-v2 names with standard ones |
|
397 where appropriate. |
|
398 |
|
399 * DLD-FUNCTIONS/minmax.cc: Fix docstring. |
|
400 |
|
401 * oct-fstrm.cc (octave_fstream::octave_fstream): Maintain fix for |
|
402 libstdc++-v2. |
|
403 |
|
404 * oct-stdstrm.cc (octave_ostdiostream::create): Remove default |
|
405 parameter value in definition. |
|
406 |
|
407 * oct-stream.cc (octave_stream::mode_as_string): Don't assume |
|
408 std::iso::openmode is an integral quantity. |
|
409 |
|
410 * pager.cc, procstream.h: Initialize streams correctly. |
|
411 |
|
412 * utils.cc: Use CXX_ISO_COMPLIANT_LIBRARY guard. |
|
413 |
|
414 * ov-base-nd-array.cc (idx_list_to_idx_array): Inline. |
|
415 |
|
416 * ov-base-scalar.h (octave_base_scalar::octave_base_scalar): Use |
|
417 ``const ST& s'' instead of ST to workaround gcc3 complex bug. |
|
418 |
3774
|
419 2001-02-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
420 |
|
421 * lex.l (next_token_is_bin_op): Remove Checks for spacing except |
|
422 for ops that begin with +, - but are not ++, --, +=, or -=. |
|
423 |
3772
|
424 2001-02-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
425 |
|
426 * input.cc (get_user_input): Handle dbg_cont and dbg_step here. |
|
427 * debug.cc (Fdbg_cont): Delete. |
|
428 * pt-bp.h (MAYBE_DO_BREAKPOINT): Check tree::break_next here. |
|
429 * pt.h (tree::break_next): New static member. |
|
430 * pt.cc: Initialize it. |
|
431 |
|
432 * parse.h (feval (const octave_value_list&, int)): |
|
433 Set default value for nargout. |
|
434 (feval (const std::string&, const octave_value_list&, int)): |
|
435 Set default values for args and nargout. |
|
436 |
3770
|
437 2001-02-01 Ben Sapp <bsapp@lanl.gov> |
|
438 |
|
439 * DLD-FUNCTIONS/debug.cc: New file. |
|
440 * pt-bp.h, pt-bp.cc: New files, for breakpoints. |
|
441 * Makefile.in: Add them to the appropriate lists. |
|
442 |
|
443 * pt-stmt.cc (tree_statement_list::set_breakpoint, |
|
444 tree_statement_list::delete_breakpoint, |
|
445 tree_statement_list::list_breakpoints): New functions. |
|
446 |
|
447 * pt.h (tree::break_point): New data member. |
|
448 (tree::set_breakpoint, tree::delete_breakpoint, tree::is_breakpoint): |
|
449 New virtual functions. |
|
450 |
|
451 * pt-mat.cc (tree_matrix::rvalue): Check for breakpoint here. |
|
452 * pt-unop.cc (tree_prefix_expression::rvalue): Likewise. |
|
453 (tree_postfix_expression::rvalue): Likewise. |
|
454 * pt-loop.cc (tree_do_until_command::eval): Likewise. |
|
455 (DO_LOOP): Likewise. |
|
456 (tree_simple_for_command::eval): Likewise. |
|
457 (tree_complex_for_command::eval): Likewise. |
|
458 * pt-assign.cc (tree_simple_assignment::rvalue): Likewise. |
|
459 * pt-binop.cc (tree_binary_expression::rvalue): Likewise. |
|
460 (tree_boolean_expression::rvalue): Likewise. |
|
461 * pt-cell.cc (tree_cell::rvalue): Likewise. |
|
462 * pt-colon.cc (tree_colon_expression::rvalue): Likewise. |
|
463 * pt-except.cc (tree_try_catch_command::eval): Likewise. |
|
464 (tree_unwind_protect_command::eval): Likewise. |
|
465 * pt-id.cc (tree_identifier::rvalue): Likewise. |
|
466 (tree_identifier::lvalue): Likewise. |
|
467 * pt-indir.cc (tree_indirect_ref::rvalue): Likewise. |
|
468 * pt-jump.cc (tree_break_command::eval): Likewise. |
|
469 (tree_continue_command::eval): Likewise. |
|
470 (tree_return_command::eval): Likewise. |
|
471 |
3767
|
472 2001-01-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
473 |
|
474 * Map.h, Map.cc (CHMap<C>::operator = (const CHMap&)): New function. |
|
475 (Map<C>::operator = (const Map&)): Likewise. |
|
476 (Map<C> (const Map&)): Likewise. |
|
477 |
|
478 * OPERATORS/op-cm-cs.cc, OPERATORS/op-cm-s.cc, |
|
479 OPERATORS/op-m-cs.cc, OPERATORS/op-m-s.cc: |
|
480 Make ldiv operator work for row vector by scalar ops. |
|
481 |
|
482 * OPERATORS/op-cs-cm.cc, OPERATORS/op-cs-m.cc, |
|
483 OPERATORS/op-s-cm.cc, OPERATORS/op-s-m.cc: |
|
484 Make div operator work for scalar by column vector ops. |
|
485 |
3765
|
486 2001-01-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
487 |
|
488 * parse.y (safe_fclose): Discard comments at the end of a file. |
|
489 |
3764
|
490 2001-01-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
491 |
|
492 * error.cc (pr_where): Call pr_where_1 with two args, not one, to |
|
493 avoid processing format escapes that might appear in formatted code. |
|
494 |
3762
|
495 2001-01-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
496 |
|
497 * error.cc (vwarning): Write to output_buf, then send formatted |
|
498 message to diary and error streams. |
|
499 |
3760
|
500 2001-01-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
501 |
|
502 * ov-cx-mat.cc (octave_complex_matrix::try_narrowing_conversion): |
|
503 Handle empty matrix dimensions correctly. |
|
504 |
3756
|
505 2000-12-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
506 |
|
507 * pager.h (octave_pager_buf::diary_skip): New data member. |
|
508 (octave_pager_buf::octave_pager_buf): Initialize it. |
|
509 * pager.cc (octave_pager_buf::set_diary_skip): New function. |
|
510 (octave_pager_stream::set_diary_skip): New function. |
|
511 (octave_pager_buf::sync): Call flush_current_contents_to_diary |
|
512 instead of octave_diary.write. |
|
513 (octave_pager_buf::flush_current_contents_to_diary): Use |
|
514 diary_skip, reset when done. |
|
515 (open_diary_file): Call octave_stdout.set_diary_skip here. |
|
516 |
3747
|
517 2000-12-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
518 |
|
519 * DLD-FUNCTIONS/minmax.cc (EMPTY_RETURN_CHECK): New macro. |
|
520 (min, max): Use it. |
|
521 |
|
522 * DLD-FUNCTIONS/minmax.cc (MINMAX_BODY): New macro. If single arg |
|
523 is empty, return empty matrix result and empty matrix for index. |
|
524 (Fmin, Fmax): Use MINMAX_BODY, so we have consistent definition |
|
525 for min and max functions. |
|
526 |
|
527 2000-11-30 Joerg Specht <joerg.specht@ins.uni-stuttgart.de> |
|
528 |
|
529 * help.cc (display_help_text): Append new line at end of doc string. |
|
530 |
|
531 2000-11-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
532 |
|
533 * DLD-FUNCTIONS/lsode.cc (LSODE_ABORT1, LSODE_ABORT2): Omit `##' |
|
534 in macro definition since they are not needed to paste strings |
|
535 together and picky compilers choke on them. |
|
536 * DLD-FUNCTIONS/quad.cc (QUAD_ABORT1, QUAD_ABORT2): Likewise. |
|
537 * DLD-FUNCTIONS/fsolve.cc (FSOLVE_ABORT1, FSOLVE_ABORT2): Likewise. |
|
538 * DLD-FUNCTIONS/dassl.cc (DASSL_ABORT1, DASSL_ABORT2): Likewise. |
|
539 |
3741
|
540 2000-11-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
541 |
3744
|
542 * mkbuiltins (XDEFUNX_INTERNAL): New macro. |
3746
|
543 * mkgendoc (XDEFUNX_INTERNAL): Likewise. |
3744
|
544 * defun-int.h (DEFUNX_INTERNAL): Use it. |
|
545 |
3743
|
546 * defun.h (DEFUNX): New macro. |
|
547 * defun-int.h (DEFUNX_INTERNAL, DECLARE_FUNX): New macro. |
|
548 (DECLARE_FUN): Define in terms of DECLARE_FUNX. |
|
549 |
3742
|
550 * mkdefs: Read and print one line at a time, so we can force |
|
551 patterns to match only at the beginning of a line. |
|
552 |
3741
|
553 * defun-int.h (UNDERSCORIFY): Omit `##' in macro definition since |
|
554 they are not needed to paste strings together and picky compilers |
|
555 choke on them. |
|
556 |
3738
|
557 2000-11-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
558 |
|
559 * load-save.cc (save_ascii_data_for_plotting): New function. |
|
560 * pt-plot.cc (save_in_tmp_file): Use it instead of save_ascii_data. |
|
561 |
|
562 * load-save.cc (save_ascii_data): Warn if saving Inf or NaN values. |
|
563 New arg, infnan_warned. Use it to warn just once per set. |
|
564 Now static. |
|
565 (do_save): New arg, infnan_warned. Pass to save_ascii_data. |
|
566 (save_vars): Initialize infnan_warned here, pass to do_save. |
|
567 |
3737
|
568 2000-11-16 Paul Kienzle <pkienzle@kienzle.powernet.co.uk> |
|
569 |
|
570 * file-io.cc (Ffprintf): If no file id parameter, don't return |
|
571 count of characters if nargout is 0 (for compatibility with |
|
572 Matlab). |
|
573 |
|
574 2000-11-16 Ben Sapp <bsapp@lanl.gov> |
|
575 |
|
576 * DLD-FUNCTIONS/rand.cc (do_rand): Declare loop counter as |
|
577 volatile int, not just volatile. |
|
578 |
3731
|
579 2000-10-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
580 |
|
581 * load-save.cc (skip_comments): Allow % as comment character too. |
|
582 (extract_keyword): Likewise. |
|
583 |
|
584 * Makefile.in (oct-gperf.h): Remove -a, -g, and -p flags for gperf. |
|
585 |
3727
|
586 2000-10-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
587 |
|
588 * load-save.cc (do_load): Allow result to be returned instead of |
|
589 inserting variables in the symbol table. Change patterned after |
|
590 patch by Kian Ming Adam Chai <caijianming@yahoo.co.uk>. |
|
591 |
3726
|
592 2000-10-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
593 |
|
594 * Makefile.in (ops.cc): Don't substitute BLAS_LIBS and LIBS here. |
|
595 |
|
596 * oct-conf.h.in (OCTAVE_CONF_SPECIAL_MATH_LIB): Delete. |
|
597 (OCTAVE_CONF_BLAS_LIBS): Add. |
|
598 * toplev.cc (octave_config_info): Likewise, add BLAS_LIBS and |
|
599 remove SPECIAL_MATH_LIB from the struct. |
|
600 |
|
601 * parse.y (feval (const octave_value_list&, int)): Don't panic |
|
602 while processing arg names if arg.length() and arg_names.length() |
|
603 differ. |
|
604 |
3724
|
605 2000-10-12 Paul Kienzle <pkienzle@kienzle.powernet.co.uk> |
|
606 |
|
607 * ov-cell.h (octave_cell::is_cell): New function. |
|
608 |
|
609 * pt-select.cc (equal): New static function. |
|
610 (tree_switch_case::label_matches): Use it to compare case label |
|
611 against arg. Handle cell arrays as case labels. |
|
612 |
3723
|
613 2000-10-12 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
614 |
|
615 Change patterned after patch by Cai Jianming |
|
616 <caijianming@yahoo.co.uk> to support for DIM arg in 2.0.x sources. |
|
617 |
|
618 * data.cc (DATA_REDUCTION): New macro. Handle second DIM arg here. |
|
619 (Fcumprod): Replace function body with DATA_REDUCTION. |
|
620 (Fcumsum): Likewise. |
|
621 (Fprod): Likewise. |
|
622 (Fsum): Likewise. |
|
623 (Fsumsq): Likewise. |
|
624 |
3719
|
625 2000-10-10 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
626 |
|
627 * error.cc (pr_where_2): New function. |
|
628 (pr_where_1): Use it instead of error_1 to avoid setting error_state. |
|
629 |
|
630 2000-10-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
631 |
|
632 * xdiv.cc (xdiv): Warn if execution falls through to lssolve. |
|
633 |
3716
|
634 2000-09-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
635 |
|
636 * utils.cc (FERRNO): New function (currently commented out). |
|
637 |
|
638 * c-file-ptr-stream.cc (c_file_ptr_buf::close): Call flush here. |
|
639 (c_file_ptr_buf::~c_file_ptr_buf): Not here. |
|
640 * c-file-ptr-stream.h (c_fie_ptr_buf::close_fcn): New typedef. |
|
641 (c_file_ptr_buf::cf): New data member. Add default constructor arg. |
|
642 (class c_file_ptr_buf): Derive from filebuf, not streambuf. |
|
643 (i_c_file_ptr_stream, o_c_file_ptr_stream): Handle close function here. |
|
644 * oct-procstrm.cc (octave_iprocstream, octave_oprocstream): Likewise. |
|
645 (octave_iprocstream::do_close, octave_oprocstream::do_close): Delete. |
|
646 * oct-stdstrm.cc (octave_base_stdiostream::~octave_base_stdiostream): |
|
647 Don't do anything. |
|
648 (octave_istdiostream::create): Handle close function here. |
|
649 (octave_istdiostream::octave_istdiostream): Likewise. |
|
650 (octave_ostdiostream::create): Likewise. |
|
651 (octave_ostdiostream::octave_ostdiostream): Likewise. |
|
652 (class octave_base_stdiostream): Don't cache FILE pointer here. |
|
653 |
3715
|
654 2000-09-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
655 |
|
656 * syscalls.cc (Ffcntl): Don't assume that the file id passed in is |
|
657 the same as the underlying system file id. |
|
658 |
3712
|
659 2000-08-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
660 |
|
661 * parse.y: Use octave_time, not time. |
|
662 |
3711
|
663 2000-08-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
664 |
|
665 * oct-stream.cc (printf_value_cache::double_value): Also set |
|
666 curr_stat to conversion_error if there are no values at all. |
|
667 |
3710
|
668 2000-08-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
669 |
|
670 * dirfns.cc (Flink, Fsymlink, Freadlink): New functions. |
|
671 |
3709
|
672 2000-08-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
673 |
|
674 * load-save.cc (Vsave_header_format_string): New variable. |
|
675 (symbols_of_load_save): DEFVAR it. |
|
676 (save_header_format, default_save_header_format): New functions. |
|
677 (write_header): Use Vsave_header_format_string here. |
|
678 |
3707
|
679 2000-07-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
680 |
3708
|
681 * pt-pr-code.h (tree_print_code::curr_print_indent_level, |
|
682 (tree_print_code::beginning_of_line): No longer static. |
|
683 (tree_print_code::tree_print_code): Initialize them here. |
|
684 * pt-pr-code.cc: Not here. |
|
685 |
|
686 * pt-stmt.cc (tree_statement::eval): Set curr_statement here. |
|
687 (tree_statement_list::eval): Not here. |
|
688 |
3707
|
689 Debug-on-error stuff based on a patch submitted by Paul Kienzle |
|
690 <pkienzle@kienzle.powernet.co.uk> for 2.0.x. |
|
691 |
|
692 * error.cc (Vdebug_on_warning): New static flag variable. |
|
693 (debug_on_warning): New function. |
|
694 (symbols_of_warning): DEFVAR debug_on_warning. |
|
695 (warning): Handle debug_on_warning here. |
|
696 |
|
697 * input.cc (do_keyboard): New function. |
|
698 (Fkeyboard): Use it to do the real work. |
|
699 * pt-stmt.cc (curr_statement): New static variable. |
|
700 (tree_statement::eval): Save and restore it here. |
|
701 * error.cc (Vdebug_on_error): New static flag variable. |
|
702 (debug_on_error): New function. |
|
703 (symbols_of_error): DEFVAR debug_on_error. |
|
704 (pr_where, pr_where_1): New functions. |
|
705 (error): Handle debug_on_error here. |
|
706 |
3705
|
707 2000-07-20 Joao Cardoso <jcardoso@inescporto.pt> |
|
708 |
|
709 * Makefile.in (octave): Link with $(LD_CXX) instead of $(CXX) |
|
710 |
3704
|
711 2000-07-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
712 |
|
713 * oct-stream.cc (octave_base_stream::oscanf): Advance to next |
|
714 format element before attempting to pick up any trailing stuff. |
|
715 |
3697
|
716 2000-07-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
717 |
3698
|
718 * lex.l (next_token_is_bin_op): Don't recognize `..' as a binary op. |
|
719 |
3697
|
720 * load-save.cc (get_file_format): Call read_mat5_binary_file_header |
|
721 with third arg true instead of false, so we don't barf if the file |
|
722 is not a matlab v5 binary file. |
|
723 |
3695
|
724 2000-07-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
725 |
|
726 * Makefile.in (octave): Link to ../libcruft/blas-xtra/xerbla.o here. |
|
727 |
|
728 * octave.cc (main): Remove kluge to attempt linking our version of |
|
729 xerbla. |
|
730 |
|
731 2000-07-07 Steven G. Johnson <stevenj@alum.mit.edu> |
|
732 |
|
733 * load-save.cc (have_h5giterate_bug): New file-scope variable. |
|
734 (hdf5_read_next_data): Only increment current_item if |
|
735 have_h5giterate_bug is true. |
|
736 (read_hdf5_data): Set have_h5giterate_bug here. |
|
737 Only increment hs.current_item if have_h5giterate_bug is true. |
|
738 |
3693
|
739 2000-07-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
740 |
|
741 * c-file-ptr-stream.cc (c_file_ptr_buf::close): |
|
742 Return -1 if file pointer is NULL. |
|
743 Set file pointer to 0 after closing. |
|
744 (c_file_ptr_buf::~c_file_ptr_buf): Call close after flushing. |
|
745 |
3694
|
746 2000-07-05 Steven G. Johnson <stevenj@alum.mit.edu> |
3692
|
747 |
|
748 * Makefile.in (BLAS_LIBS): Substitute here. |
|
749 (octave): Use $(BLAS_LIBS) in the final link command. |
|
750 |
3694
|
751 2000-06-30 Steven G. Johnson <stevenj@alum.mit.edu> |
3690
|
752 |
|
753 * Makefile.in (octave): Link $(FLIBS) last. |
|
754 * octave.cc (main): Force our own xerbla to be linked instead of |
|
755 some system version. |
|
756 |
3688
|
757 2000-06-29 James R. Van Zandt <jrv@vanzandt.mv.com> |
|
758 |
3689
|
759 * load-save.cc (load_save_format): New value, LS_MAT5_BINARY. |
3688
|
760 (arrayclasstype, mat5_data_type): New enums. |
|
761 (read_mat5_binary_data): New function. |
|
762 (read_mat5_tag): New function. |
|
763 (read_mat5_binary_element): New function. |
|
764 (read_mat5_binary_file_header): New function. |
|
765 (get_file_format): Check for mat5 binary format too. |
|
766 (do_load): Handle mat5 binary format. |
|
767 (write_mat5_tag): New function. |
|
768 (write_mat5_array): New function. |
|
769 (class mat5_callback): New class. |
|
770 (save_mat5_binary_element): New functnon. |
|
771 (do_save): Handle mat5 binary format. |
|
772 (write_header): Handle LS_MAT5_BINARY case too. |
|
773 (save_user_variables): Handle LS_MAT5_BINARY case too. |
|
774 (Fsave): Handle LS_MAT5_BINARY case too. |
|
775 (Fload): Handle LS_MAT5_BINARY case too. |
|
776 |
3694
|
777 2000-06-29 Steven G. Johnson <stevenj@alum.mit.edu> |
3687
|
778 |
|
779 All of the following changes are protected by #ifdef HAVE_HDF5. |
|
780 |
|
781 * load-save.cc (load_save_format): New value, LS_HDF5. |
|
782 (make_valid_identifier): New function. |
|
783 (class hdf5_fstreambase, class hdf5_ifstream, class hdf5_ofstream): |
|
784 New classes for reading and writing hdf5 data. |
|
785 (hdf5_types_compatible): New function. |
|
786 (hdf5_import_multidim): New function. |
|
787 (hdf5_check_attr): New function. |
|
788 (hdf5_read_next_data): New function. |
|
789 (hdf5_make_complex_type): New function. |
|
790 (hdf5_make_range_type): New function. |
|
791 (read_hdf5_data): New function. |
|
792 (get_file_format): Handle HDF5 format. |
|
793 (do_load): Handle LS_HDF5 case. |
|
794 (Fload): Handle HDF5 format. |
|
795 (hdf5_add_attr): New function. |
|
796 (save_type_to_hdf5): New function. |
|
797 (add_hdf5_data): New function. |
|
798 (do_save): Handle HDF5 format. |
|
799 (get_default_save_format): Handle LS_HDF5 case. |
|
800 (write_header): Handle LS_HDF5 case. |
|
801 (save_user_variables): Handle HDF5 format. |
|
802 (Fsave): Handle HDF5 format. |
|
803 |
3686
|
804 2000-06-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
805 |
|
806 * help.cc (display_help_text): If writing to filter fails, send |
|
807 unformatted text to output stream. |
|
808 |
3683
|
809 2000-06-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
810 |
3685
|
811 * OPERATORS/op-bm-bm.cc (eq): Define using mx_el_eq, not operator ==. |
|
812 (ne): Likewise, use mx_el_ne, not operator !=. |
|
813 |
3683
|
814 * pr-output.cc (Fdisp): Delete. |
|
815 |
3681
|
816 2000-06-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
817 |
3682
|
818 * pr-output.cc (float_format::float_format): Set default values |
|
819 for width and precision to -1. |
|
820 (operator << (ostream&, pr_formatted_float&): Set width and |
|
821 precision if values are >= 0. |
|
822 (set_real_format, set_real_matrix_format, set_range_format, |
|
823 set_complex_format, set_complex_matrix_format): If we have all |
|
824 integers, infinities, or nans, set precision equal to field width. |
|
825 |
|
826 * load-save.cc (read_ascii_data): Allow empty strings and string |
|
827 vectors to be restored. |
|
828 |
3681
|
829 * variables.cc (var_matches_any_pattern): New function. |
|
830 (Fclear): Use it to make exclusive clear work correctly. |
|
831 |
3676
|
832 2000-06-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
833 |
3678
|
834 * ov-range.h (octave_range::is_numeric_type): New function. |
|
835 |
3676
|
836 * sysdep.cc (Fkbhit): Also ask for input if forced_interactive. |
|
837 |
3675
|
838 2000-06-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
839 |
|
840 * Makefile.in (oct-gperf.h): Use $(GPERF) instead of gperf. |
|
841 |
3671
|
842 2000-05-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
843 |
|
844 * DLD-FUNCTIONS/qz.cc (Fqz): When computing finite generalized |
|
845 eigenvalues, don't write past the end of the array. |
|
846 |
3665
|
847 2000-05-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
848 |
|
849 * ov-base-nd-array.h, ov-base-nd-array.cc, ov-re-nd-array.h, |
|
850 ov-re-nd-array.h: New files. |
|
851 * Makefile.in: Add them to the appropriate lists. |
|
852 |
|
853 * pt-stmt.h, pt-stmt.cc (class tree_statement): |
|
854 Store comments associated with this parse tree element. |
|
855 * pt-select.h, pt-select.cc (class tree_if_clause, |
|
856 class tree_if_command, class tree_switch_case |
|
857 class tree_switch_command): Likewise. |
|
858 * pt-loop.h, pt-loop.cc (class tree_while_command, |
|
859 class tree_do_until_command, class tree_simple_for_command, |
|
860 class tree_complex_for_command): Likewise. |
|
861 * pt-except.h, pt-except.cc (class tree_try_catch_command, |
|
862 class tree_unwind_protect_command): Likewise. |
|
863 * ov-usr-fcn.h, ov-usr-fcn.cc (class octave_user_function): Likewise. |
|
864 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::print_comment_elt, |
|
865 tree_print_code::print_comment_list, |
|
866 tree_print_code::print_indented_comment): New functions. |
|
867 (tree_print_code::visit_simple_for_command, |
|
868 tree_print_code::visit_complex_for_command, |
|
869 tree_print_code::visit_octave_user_function_header, |
|
870 tree_print_code::visit_octave_user_function_trailer, |
|
871 tree_print_code::visit_if_command, tree_print_code::visit_statement, |
|
872 tree_print_code::visit_switch_case, |
|
873 tree_print_code::visit_switch_command, |
|
874 tree_print_code::visit_try_catch_command, |
|
875 tree_print_code::visit_unwind_protect_command |
|
876 tree_print_code::visit_while_command, |
|
877 tree_print_code::visit_do_until_command): Handle comments. |
|
878 * lex.l, parse.y: Handle comments in parse trees. |
|
879 * comment-list.h, comment-list.cc: New files. |
|
880 * Makefile.in: Add them to the appropriate lists. |
|
881 |
3661
|
882 2000-04-23 etienne grossmann <etienne@anonimo.isr.ist.utl.pt> |
|
883 |
|
884 * pt-mat.cc (tm_row_const::tm_row_const_rep::eval_error): |
|
885 New args x and y, for dimension mismatch info. |
|
886 Change callers where appropriate. |
|
887 (tm_const::init): Report mismatched column dimensions. |
|
888 |
3658
|
889 2000-04-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
890 |
|
891 * sysdep.cc (kbhit): Also clear cin if at EOF. |
|
892 |
3657
|
893 2000-04-11 Joao Cardoso <jcardoso@inescn.pt> |
|
894 |
|
895 * sysdep.cc (kbhit): New arg, wait. |
|
896 (raw_mode): Ditto. |
|
897 (Fkbhit): If given an arg, call kbhit with wait = false. |
|
898 |
|
899 * DLD-FUNCTIONS/minmax.cc (Fmax, Fmin): Fix doc string. |
|
900 |
3656
|
901 2000-04-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
902 |
|
903 * dynamic-ld.cc (octave_dynamic_loader::do_load): Undo previous change. |
|
904 |
3655
|
905 2000-04-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
906 |
|
907 * dynamic-ld.cc (octave_dynamic_loader::do_load): Also fail with |
|
908 error message if we don't find the mangled function name in the |
|
909 file. |
|
910 |
3652
|
911 2000-03-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
912 |
3653
|
913 * oct-stream.cc (printf_value_cache::string_value): Return string |
|
914 matrices in a Matlab-compatible way. |
|
915 (printf_value_cache): Redesign the way list_exhausted works. |
|
916 |
3652
|
917 * oct-fstrm.cc (octave_fstream::do_close): New function. |
|
918 * oct-stdstrm.cc (octave_istdiostream::do_close): Ditto. |
|
919 (octave_ostdiostream::do_close): Ditto. |
|
920 * c-file-ptr-stream.cc (c_file_ptr_buf::close): Ditto. |
|
921 (i_c_file_ptr_stream::close): Ditto. |
|
922 (o_c_file_ptr_stream::close): Ditto. |
|
923 * oct-prcstrm.cc (octave_iprocstream::do_close): Ditto. |
|
924 (octave_oprocstream::do_close): Ditto. |
|
925 (octave_iprocstram::~octave_iprocstram): Call do_close here. |
|
926 (octave_iprocstram::~octave_oprocstram): Likewise. |
|
927 |
|
928 * oct-stream.h (octave_base_stream::do_close): New virtual function. |
|
929 (octave_base_stream::close): If stream is open, call do_close. |
|
930 |
|
931 * c-file-ptr-stream.cc (c_file_ptr_buf::flush): New function. |
|
932 (c_file_ptr_buf::~c_file_ptr_buf): Use it. |
|
933 (c_file_ptr_buf::overflow): Ditto. |
|
934 (c_file_ptr_buf::sync): Ditto. |
|
935 |
3649
|
936 2000-03-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
937 |
|
938 * oct-procbuf.cc (octave_procbuf::open): Make output streams line |
|
939 buffered. |
|
940 |
3640
|
941 2000-03-24 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
942 |
3644
|
943 * sighandlers.cc (my_friendly_exit): Prefix failure messages with |
|
944 panic instead of error. |
|
945 |
3642
|
946 * c-file-ptr-stream.cc (c_file_ptr_buf::~c_file_ptr_buf): |
|
947 Avoid dereferencing NULL pointer. |
|
948 |
3640
|
949 * oct-stream.cc (printf_format_list::add_elt_to_list, |
|
950 printf_format_list::process_conversion, |
|
951 printf_format_list::finish_conversion): New args, flags, fw, and prec. |
|
952 (printf_format_list::printf_format_list): Save more complete info. |
|
953 (printf_format_list::printme): Print flags, fw, and prec. |
|
954 (octave_base_stream::printf): Simplify. |
|
955 (do_printf_conv): Delete have_arg arg, since it is always true now. |
|
956 (octave_base_stream::do_printf): Handle case of no args and % |
|
957 directly instead of using do_printf_conv. |
|
958 (printf_value_cache::exhausted): Rename from no_more_values. |
|
959 (DO_PCT_CONVERSION): New macro |
|
960 (octave_base_streain::do_scanf, octave_base_streain::do_oscanf): |
|
961 Use it. |
|
962 (scanf_format_list::finish_conversion): `%' counts as a conversion too. |
|
963 Also don't forget to set type for it. |
|
964 (OCTAVE_SCAN_0): Delete. |
|
965 (OCTAVE_SCAN): Rename from OCTAVE_SCAN_1. |
|
966 (octave_base_stream::scanf, octave_base_stream::oscanf): Don't |
|
967 special-case number of conversions here. |
|
968 (octave_base_stream::oscanf, octave_base_stream::do_oscanf): Only |
|
969 cycle through fmt elements if the number of conversions is greater |
|
970 than 0. |
|
971 |
|
972 * oct-stream.h (scanf_format_list::next): New arg, `cycle'. |
|
973 (printf_format_list::next): New arg, `cycle'. |
|
974 (printf_format_list::last_elt_p): New function. |
|
975 (printf_format_elt): New fields fw, prec, and flags. |
|
976 Define copy constructor and assignment operator. |
|
977 (scanf_format_elt): Define copy constructor and assignment operator. |
|
978 |
3627
|
979 2000-03-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
980 |
3639
|
981 * oct-stream.cc (OCTAVE_SCAN_0, OCTAVE_SCAN_1): New macros. |
|
982 (do_scanf_conv, BEGIN_S_CONVERSION, BEGIN_CHAR_CLASS_CONVERSION, |
|
983 do_scanf, scanf, do_oscanf, do_oscanf, oscanf): Use them instead |
|
984 of calling istream::scan directly. |
|
985 (octave_scan): New function. |
|
986 (do_scanf_conv): Second arg is now scanf_format_elt instead of char*. |
|
987 Change all callers. |
|
988 |
3631
|
989 * oct-procbuf.h, oct-procbuf.cc (octave_procbuf): |
|
990 Derive from c_file_ptr_buf instead of filebuf. |
|
991 |
3627
|
992 * oct-stream.cc (octave_base_stream::printf): Use octave_format |
|
993 instead of ostream::form. Return number of characters written. |
|
994 |
3618
|
995 2000-03-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
996 |
3620
|
997 * oct-stream.cc (do_printf_conv): Use octave_format instead of |
|
998 ostream::form. Return number of characters written. |
|
999 (octave_base_stream::do_printf): Return number of characters written. |
|
1000 |
|
1001 * error.cc (verror, vwarning): Use octave_format instead of |
|
1002 ostream::vform. |
|
1003 |
|
1004 * utils.cc (octave_format, octave_vformat): New functions. |
|
1005 * cutils.c (octave_snprintf, octave_vsnprintf): New functions. |
|
1006 |
3618
|
1007 * oct-lvalue.h (dummy_val): New static variable. |
|
1008 (octave_lvalue::octave_lvalue): Use it to initialize val. |
|
1009 |
|
1010 * variables.cc (is_valid_function): Look in the global symbol |
|
1011 table for functions. |
|
1012 |
3615
|
1013 2000-03-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1014 |
3770
|
1015 * Makefile.in (LIBRARIES): Conditionally define. |
3615
|
1016 (libraries): Depend on $(LIBRARIES). |
|
1017 (octave): Depend on $(LIBRARIES), not libraries. Also depend on |
|
1018 stamp-prereq and stamp-oct-links. |
|
1019 (all): Don't depend on stamp-prereq or stamp-oct-links. |
|
1020 (liboctinterp.$(LIBEXT), liboctinterp.$(SHELXT)): Delete target |
|
1021 before rebuilding. |
|
1022 |
|
1023 2000-03-21 Ben Sapp <bsapp@nua.lampf.lanl.gov>: |
|
1024 |
3770
|
1025 * Makefile.in (libraries): Depend only on library targets, not |
3615
|
1026 archive members. |
|
1027 |
3611
|
1028 2000-03-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1029 |
3613
|
1030 * Makefile.in (objects): New target |
|
1031 |
3611
|
1032 * c_file_ptr_stream.h, c_file_ptr_stream.cc: New files. |
|
1033 * oct-stdstrm.h, oct-stdstrm.cc, oct-prcstrm.cc: |
|
1034 Use c_file_ptr_buf, i_c_file_ptr_stream, and o_c_fie_ptr_stream |
|
1035 instead of stdiobuf, istdiostream, and ostdiostream. |
|
1036 |
|
1037 * pr-output.cc (set_real_format, set_real_matrix_format, |
|
1038 set_complex_format, set_complex_matrix_format, set_range_format): |
|
1039 Do the right thing again for int, NaN, and Inf values. |
|
1040 |
3608
|
1041 2000-03-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1042 |
|
1043 * pr-output.cc (pr_plus_format): Rename from do_plus_format. |
|
1044 Change all callers. |
|
1045 (pr_float, pr_complex): New arg, scale. Handle scaling here. |
|
1046 (float_format): New class for managing details of formatting |
|
1047 floats. Use it instead of character string formats and the |
|
1048 nonstandard form() function from the GNU iostream library. |
|
1049 |
3601
|
1050 2000-02-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1051 |
|
1052 * Makefile.in (clean): Also delete gendoc. |
|
1053 |
3598
|
1054 2000-02-18 James R. Van Zandt <jrv@vanzandt.mv.com> |
|
1055 |
|
1056 * load-save.cc (Vcrash_dumps_octave_core): Fix comment for this var. |
|
1057 |
|
1058 2000-02-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1059 |
|
1060 * lex.l (handle_number): Don't transorm `[Dd]' to `e' if reading |
|
1061 hex. |
|
1062 |
3597
|
1063 2000-02-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1064 |
|
1065 * Makefile.in (install-inc): Install files in |
|
1066 $(octincludedir)/octave. |
|
1067 (uninstall): Remove them from the correct directory too. |
|
1068 |
|
1069 * defaults.h, defaults.cc (Vlocal_ver_arch_lib_dir): New variable. |
|
1070 * defaults.cc (set_default_local_ver_arch_lib_dir): New function. |
|
1071 (install_defaults): Call it. |
|
1072 (exec_path): Prepend the versioned form of the local arch lib |
|
1073 directory to the standard path. |
|
1074 * defaults.h.in (OCTAVE_LOCALVERARCHLIBDIR, |
|
1075 OCTAVE_LOCALVERFCNFILEDIR, OCTAVE_LOCALVEROCTFILEDIR): |
|
1076 Substitute these too. |
|
1077 * toplev.cc (Foctave_config_info): Add them to the struct. |
|
1078 |
3591
|
1079 2000-02-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1080 |
3597
|
1081 * toplev.cc (Foctave_config_info): Add MKOCTFILE_INCFLAGS to the |
|
1082 struct. |
3591
|
1083 * oct-conf.h.in (OCTAVE_CONF_MKOCTFILE_INCFLAGS): Define. |
|
1084 |
3584
|
1085 2000-02-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1086 |
3587
|
1087 * DLD-FUNCTIONS/balance.cc (Fbalance): Explicitly request |
|
1088 conversion from Matrix to ComplexMatrix. |
|
1089 * DLD-FUNCTIONS/qz.cc (Fqz): Likewise. |
|
1090 |
|
1091 * ov-re-mat.h (octave_matrix::complex_matrix_value): Explicitly |
|
1092 request conversion from Matrix type. |
|
1093 |
|
1094 * ov-ch-mat.h (octave_char_matrix::matrix_value): Explicitly |
|
1095 request conversion from charMatrix type. |
|
1096 (octave_char_matrix::complex_matrix_value): Likewise. |
|
1097 * ov-bool-mat.h (octave_bool_matrix::matrix_value): Likewise. |
|
1098 (octave_bool_matrix::complex_matrix_value): Likewise. |
|
1099 |
|
1100 * ov-range.h (octave_range::complex_matrix_value): Explicitly |
|
1101 request conversion from Matrix type. |
|
1102 |
|
1103 * ov-cx-mat.h, ov-re-mat.h: Explicitly request conversions from |
|
1104 diagonal matrix types in constructors. |
|
1105 |
3586
|
1106 * mappers.cc (ximag, xreal): Return double, not Complex. |
|
1107 |
3585
|
1108 * error.cc (panic): Turn off buffering of error messages. |
|
1109 Don't call flush_octave_stdout here, verror will do it for us. |
|
1110 (verror): Don't call flush_octave_stdout if buffering error messages. |
|
1111 |
3584
|
1112 * pt-except.cc (tree_try_catch_command::eval): Only restore |
|
1113 buffer_error_message value (by running the unwind_protect element |
|
1114 for it) if it has been saved. |
|
1115 |
|
1116 * help.cc (Ftype): Return value if nargout is NOT equal to zero. |
|
1117 Delete unnecessary unwind_protect::begin_frame(). |
|
1118 |
|
1119 * toplev.cc (octave_config_info): Stuff lots of new config info in |
|
1120 the struct. |
|
1121 |
|
1122 * oct-conf.h.in: Delete TARGET_HOST_TYPE. |
|
1123 |
3574
|
1124 2000-02-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1125 |
3579
|
1126 * siglist.c: Include <signal.h>. |
|
1127 |
3575
|
1128 * lex.l (is_plot_keyword): Add minimum match length in call to |
|
1129 almost_match. |
|
1130 |
3574
|
1131 * Makefile.in (%.df : %.cc): Don't pass -c to compiler. |
|
1132 |
3564
|
1133 2000-02-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1134 |
3572
|
1135 * ov-base-mat.cc: Include pr-output.h here. |
|
1136 |
3571
|
1137 * DLD-FUNCTIONS/rand.cc (curr_rand_dist): Return const char * |
|
1138 instead of char *. |
|
1139 |
3570
|
1140 * oct-fstrm.cc (octave_fstream::seek, octave_fstream::tell): |
|
1141 Call pubseekoff instead of seekoff. |
|
1142 |
3568
|
1143 * DLD-FUNCTIONS/dassl.cc (print_dassl_option_list): Use stream |
|
1144 manipulators instead of GNU iostream-specific form function. |
|
1145 * DLD-FUNCTIONS/fsolve.cc (print_fsolve_option_list): Ditto. |
|
1146 * DLD-FUNCTIONS/lsode.cc (print_lsode_option_list): Ditto. |
|
1147 * DLD-FUNCTIONS/quad.cc (print_quad_option_list): Ditto. |
|
1148 * pr-output.cc (pr_scale_header): Ditto. |
|
1149 |
3566
|
1150 * sighandlers.h: Include signal.h here. |
|
1151 * sighandlers.cc: Not here. |
|
1152 |
|
1153 * utils.cc: Include setjmp.h, not csetjmp. |
|
1154 * toplev.cc: Ditto. |
|
1155 |
|
1156 * sighandlers.cc: Include signal.h, not csignal. |
|
1157 |
|
1158 * pt-plot.h: Don't include csignal. |
|
1159 * toplev.cc: Ditto. |
|
1160 * oct-hist.cc: Ditto. |
|
1161 * octave.cc: Ditto. |
|
1162 * pager.cc: Ditto. |
|
1163 * input.cc: Ditto. |
|
1164 * help.cc: Ditto. |
|
1165 |
3565
|
1166 * pt-plot.cc (send_to_plot_stream): Use operator== and substr |
|
1167 method to do limited-length string comparison. |
|
1168 * input.cc (generate_completion): Likewise. |
|
1169 * ov-dld-fcn.cc (octave_dld_function::octave_dld_function): Likewise. |
|
1170 * ov-usr-fcn.cc (octave_user_function::mark_as_system_fcn_file): |
|
1171 Likewise. |
|
1172 |
|
1173 * utils.cc (check_preference): Expect exact string matches. |
|
1174 * variables.cc (ignore_function_time_stamp): Likewise. |
|
1175 * lex.l (whitespace_in_literal_matrix): Likewise. |
|
1176 |
3564
|
1177 * mappers.cc (xconj, ximag, xreal): New functions. Use them in |
|
1178 DEFUN_MAPPER calls. |
|
1179 |
|
1180 * defun-int.h (DEFUN_MAPPER_INTERNAL): Cast function pointer args |
|
1181 to octave_mapper constructor. |
|
1182 |
3523
|
1183 2000-02-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1184 |
3564
|
1185 * procstream.cc (procstreambase::procstreambase, |
|
1186 procstreambase::open, procstreambase::close): |
|
1187 Call std::ios::setstate, not set. |
|
1188 |
3561
|
1189 * lex.l (plot_axes_token): Declare plot_axes as const char *. |
|
1190 Declare tmp const char **. |
|
1191 |
3560
|
1192 * oct-procbuf.h: Include fstream, not streambuf.h. |
|
1193 |
3570
|
1194 * load-save.cc (Fsave): Call pubseekoff instead of seekoff. |
3558
|
1195 * oct-strstrm.cc (octave_base_strstream::tell): Likewise. |
|
1196 (octave_base_strstream::seek): Likewise. |
|
1197 |
3553
|
1198 * oct-stream.cc (octave_base_stream::read): Rename count to char_count. |
|
1199 (octave_base_stream::do_gets): Likewise. |
|
1200 |
|
1201 * octave-stream.cc (octave_base_stream::write): Rename flt_fmt to ffmt. |
|
1202 (octave_base_stream::read): Likewise. |
|
1203 |
3552
|
1204 * TEMPLATE-INST/SLStack-sym.cc: Delete meaningless `extern |
|
1205 template' declarations. |
|
1206 * TEMPLATE-INST/Array-tc.cc: Ditto. |
|
1207 |
|
1208 * TEMPLATE-INST/Map-fnc.cc: Don't try to instantiate goodCHptr or |
|
1209 CHptr_to_index here. |
|
1210 * TEMPLATE-INST/Map-tc.cc: Likewise. |
3554
|
1211 * Map.h (CHNode::goodCHptr, CHNode::CHptr_to_index): Now member |
|
1212 functions. Change all callers. |
3552
|
1213 |
|
1214 * load-save.cc (read_binary_file_header): Declare magic_len `const'. |
|
1215 |
|
1216 * token.h (token::token (const token&), token::operator=): |
|
1217 Delete unnecessary definitions. |
|
1218 |
|
1219 * oct-stream.cc (octave_stream::mode_as_string): Use |
|
1220 std::ios::binary, not std::ios::bin. |
|
1221 * load-save.cc (Fsave, Fload, save_user_variables): Likewise. |
|
1222 |
3550
|
1223 * DLD-FUNCTIONS/qz.cc (Fqz): Use Array<int> class instead of |
|
1224 trying to create automatic int array with variable size. |
|
1225 |
3548
|
1226 * variables.cc (F__dump_symbol_info__): Fix continuation char. |
3552
|
1227 * mappers.cc (Ftoupper): Likewise. |
3548
|
1228 * DLD-FUNCTIONS/besselj.cc (Fairy, Fbesselj): Likewise. |
|
1229 * DLD-FUNCTIONS/chol.cc (Fchol): Likewise. |
|
1230 * DLD-FUNCTIONS/det.cc (Fdet): Likewise. |
|
1231 * DLD-FUNCTIONS/eig.cc (Feig): Likewise. |
|
1232 * DLD-FUNCTIONS/gammainc.cc (gammainc): Likewise. |
|
1233 * DLD-FUNCTIONS/givens.cc (givens): Likewise. |
|
1234 * DLD-FUNCTIONS/hess.cc (hess): Likewise. |
|
1235 * DLD-FUNCTIONS/inv.cc (inv): Likewise. |
|
1236 * DLD-FUNCTIONS/log.cc (logm): Likewise. |
|
1237 * DLD-FUNCTIONS/lu.cc (lu): Likewise. |
|
1238 * DLD-FUNCTIONS/qr.cc (qr): Likewise. |
|
1239 * DLD-FUNCTIONS/schur.cc (schur): Likewise. |
|
1240 * DLD-FUNCTIONS/balance.cc (balance): Likewise. |
|
1241 * DLD-FUNCTIONS/svd.cc (svd): Likewise. |
|
1242 * DLD-FUNCTIONS/syl.cc (syl): Likewise. |
|
1243 * DLD-FUNCTIONS/expm.cc (Fexpm): Likewise. |
|
1244 |
|
1245 * token.h (token::token_type, token::end_tok_type, |
|
1246 token::plot_tok_type): Delete extraneous comma from enum decls. |
3552
|
1247 * load-save.cc (load_save_format): Likewise. |
3548
|
1248 |
3546
|
1249 * pt-idx.cc (tree_index_expression::tree_index_expression): |
|
1250 Delete default arg values. |
3552
|
1251 * oct-fstrm.cc (octave_fstream::octave_fstream): Likewise. |
|
1252 * oct-stream.cc (octave_stream::octave_stream): Likewise. |
3546
|
1253 |
|
1254 * siglist.h, siglist.c: New files. |
|
1255 * Makefile.in: Add them to the appropriate lists. |
|
1256 * siglist.c (sys_siglist): Move definition here from sighandlers.cc. |
|
1257 * siglist.h (sys_siglist): Move declaration here from sighandlers.h. |
|
1258 |
3545
|
1259 * ov.h, ov-bool.h, ov-bool-mat.h (bool_matrix_value): |
|
1260 Delete unnecessary arg. |
|
1261 |
3544
|
1262 * ov.h (octave_value::do_multi_index_op): Rename from do_index_op. |
|
1263 |
|
1264 * ov-fcn.h (octave_function::is_system_fcn_file): Now const. |
|
1265 |
3529
|
1266 * Map.cc (index_to_CHptr): Now a macro. |
3530
|
1267 (CHMap<C>::hash): Now a member function. |
3529
|
1268 |
3528
|
1269 * defun-int.h (UNDERSCORIFY): New macro. |
|
1270 (DEFCONST_INTERNAL, DEFCONSTX_INTERNAL): Use it. |
|
1271 |
3526
|
1272 * data.cc (Fis_list): Fix continuation char. |
3532
|
1273 * defaults.cc (IMAGEPATH): Likewise. |
3526
|
1274 |
|
1275 * Map.cc (CHptr_to_index, goodCHptr): Delete static decl. |
|
1276 |
3525
|
1277 * ov.h (unary_op, binary_op, assign_op): Prepend `op_' to elts. |
|
1278 Change all usses |
|
1279 |
3523
|
1280 * All source files: Sprinkle with std:: qualifier as needed. |
|
1281 |
3503
|
1282 2000-01-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1283 |
|
1284 * sighandlers.cc (install_signal_handlers): Add std:: qualifier |
|
1285 for set_net_handler. |
|
1286 |
|
1287 * All source files: Include iostream, fstream, strstream, |
|
1288 etc. as needed instead of using forward declarations for these |
|
1289 classes. |
|
1290 |
3498
|
1291 2000-01-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1292 |
|
1293 * input.cc (input_event_hook, Finput_event_hook): New functions. |
|
1294 (hook_fcn, user_data): New static variables. |
|
1295 |
3489
|
1296 2000-01-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1297 |
3491
|
1298 * pt-except.cc (do_catch_code): Don't do anything special for |
|
1299 tree_return_command::returning, or tree_break_command::breaking. |
|
1300 |
|
1301 * error.cc (vwarning): New function. |
|
1302 (warning): Use it instead of calling verror. |
|
1303 |
|
1304 * oct-stream.cc (octave_base_stream::oscanf): |
|
1305 Result is now always nconv+1 elements. Return count of successful |
|
1306 conversions in last element. |
|
1307 * file-io.cc (Ffscanf, Fsscanf, Fscanf): Fix doc string. |
|
1308 |
3490
|
1309 * pt-except.cc (do_catch_code): Unwind-protect buffer_error_messages. |
|
1310 Be sure to run all unwind-protects before returning. |
|
1311 (tree_try_catch_command::eval): Add do_catch_code cleanup function |
|
1312 to unwind-protect stack before resetting buffer_error_messages. |
|
1313 Use unwind-protect to save and restore buffer_error_messages. |
|
1314 If there is no catch code, discard the cleanup function and run |
|
1315 the unwind-protect for buffer_error_messages. |
|
1316 |
|
1317 * error.cc (bind_global_error_variable): Avoid dereferencing |
|
1318 error_message_buffer if it is NULL. |
|
1319 |
3489
|
1320 * parse.y (evaluating_function_body): New global flag. |
|
1321 * ov-usr-fcn.cc (octave_user_function::do_index_op): |
|
1322 Protect and set it here. |
|
1323 * parse.y (make_break_command, make_return_command): Check it here. |
|
1324 |
|
1325 * error.cc (warning_state): New global flag. |
|
1326 (warning): Set it here. |
|
1327 * lex.l (reset_parser): Clear it here. |
|
1328 * parse.y (fold): Check it here. |
|
1329 |
3484
|
1330 2000-01-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1331 |
3485
|
1332 * pt-walk.h (tree_walker::visit_do_until_command): New pure virtual. |
|
1333 * pt-pr-code.cc (tree_print_code::visit_do_until_command): |
3484
|
1334 New function. |
3485
|
1335 * pt-loop.h (tree_do_until_command): New class. |
3484
|
1336 (tree_while_command::expr, tree_while_command::list): |
|
1337 Now protected instead of private. |
3485
|
1338 * parse.y (make_do_until_command): New function. |
|
1339 (loop_command): Recognize do-until statement. |
3484
|
1340 (DO, UNTIL): New tokens. |
|
1341 |
|
1342 * input.cc (match_sans_spaces): Require non-blank part of test |
|
1343 string to match standard string exactly. |
|
1344 |
3483
|
1345 2000-01-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1346 |
|
1347 * oct-stream.h (scanf_format_elt::char_class): New struct elt. |
|
1348 Add arg to constructor. |
|
1349 (scanf_format_elt::special_conversion): New enum. |
|
1350 * oct-stream.cc (scanf_format_list::add_elt_to_list): New arg, |
|
1351 char_class. Pass it to scanf_format_elt constructor. |
|
1352 (scanf_format_list::scanf_format_list): Create separate list |
|
1353 elements for whitespace and literal conversions. |
|
1354 (expand_char_class): New function. |
|
1355 (scanf_format_list::finish_conversion): Extract character class |
|
1356 (not including the delimiting brackets) and expand the list of |
|
1357 characters. Pass the result to add_elt_to_list. |
|
1358 (scanf_format_list::all_character_conversions): Also accept '^', |
|
1359 scanf_format_elt::literal_conversion, and |
|
1360 scanf_format_elt::whitespace_conversion types too. |
|
1361 (DO_WHITESPACE_CONVERSION, BEGIN_CHAR_CLASS_CONVERSION, |
|
1362 BEGIN_C_CONVERSION, BEGIN_S_CONVERSION, DO_LITERAL_CONVERSION): |
|
1363 New macros. |
|
1364 (octave_base_stream::do_scanf, octave_base_stream::do_oscanf): |
|
1365 Use them to avoid code duplication. |
|
1366 Handle whitespace, literal text, and character class conversions. |
|
1367 (octave_base_stream::oscanf): Loop over all format list elements, |
|
1368 not just the first nconv elements. Clear status flags on is for |
|
1369 all streams. |
|
1370 |
3476
|
1371 2000-01-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1372 |
3480
|
1373 * xdiv.cc (result_ok): Just check value of info. |
|
1374 (solve_singularity_warning): New function. |
|
1375 (xleftdiv, xdiv): Pass pointer to solve_singularity_warning to |
|
1376 solve function. |
|
1377 |
|
1378 * lex.l (handle_identifier): Set next_tok_is_eq if we are looking |
|
1379 at `=', but not if we are looking at `=='. |
|
1380 |
3478
|
1381 * pt-pr-code.cc (tree_print_code::visit_unwind_protect_command): |
|
1382 Print `unwind_protect_cleanup', not `cleanup_code'. |
|
1383 |
3477
|
1384 * pager.cc (octave_pager_buf::flush_current_contents_to_diary): |
|
1385 New function. |
|
1386 (octave_pager_stream::flush_current_contents_to_diary): |
|
1387 Ditto. |
|
1388 (close_diary_file): Use the new octave_pager_stream function to |
|
1389 try to flush the current buffer to the diary when it is closed. |
|
1390 |
3476
|
1391 * variables.cc (Fexist): Return 6 for built-in constants. |
|
1392 |
|
1393 * pt-plot.cc (Fgshow): Don't append " " after last arg. |
|
1394 (Fgset): Likewise. |
|
1395 |
3472
|
1396 2000-01-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1397 |
|
1398 * ov-base-mat.h (octave_base_matrix::length): Return 0 for empty |
|
1399 arrays. |
|
1400 |
3465
|
1401 2000-01-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1402 |
|
1403 * DLD-FUNCTIONS/time.cc (Fstrptime): New function. |
|
1404 |
|
1405 * load-save.cc (Fsave): Add missing else. |
|
1406 |
3442
|
1407 2000-01-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1408 |
3444
|
1409 * DLD-FUNCTIONS/gammainc.cc (Fgammainc): Texinfoize doc string. |
3445
|
1410 * ov-typeinfo.cc (Ftypeinfo): Ditto. |
3446
|
1411 * parse.y (Vwarn_future_time_stamp): Ditto. |
|
1412 * DLD-FUNCTIONS/minmax.cc (Fmax, Fmin): Ditto. |
3445
|
1413 * ov-usr-fcn.cc (Fva_arg, Fva_start, Fvr_val): Ditto. |
3446
|
1414 * defaults.cc (VOCTAVE_HOME, Frehash): Ditto. |
|
1415 * toplev.cc (Fwarranty, Fcasesen): Ditto. |
|
1416 * utils.cc (Fdo_string_escapes, Ffile_in_loadpath): Ditto. |
|
1417 * variables.cc (F__dump_symtab_info__, F__dump_symbol_info__): Ditto. |
3447
|
1418 * ov-list.cc (Flist, Fappend, Fnth, Freverse, Fsplice): Ditto. |
3448
|
1419 * input.cc (Fread_readline_init_file): Ditto. |
|
1420 * file-io.cc (Fis_stream): Ditto. |
|
1421 * ov-cell.cc (Fiscell, Fcell): Ditto. |
|
1422 * pt-assign.cc (Vprint_rhs_assign_val): Ditto. |
|
1423 * pt-decl.cc (Vinitialize_global_variables): Ditto. |
|
1424 * symtab.cc (Vvariables_can_hide_functions): Ditto. |
3443
|
1425 |
3442
|
1426 * pt-plot.cc (Fgraw, Fgset, Fgshow, Vgnuplot_command_plot, |
|
1427 Vgnuplot_command_replot, Vgnuplot_command_splot, |
|
1428 Vgnuplot_command_using, Vgnuplot_command_with, |
|
1429 Vgnuplot_command_axes, Vgnuplot_command_title, |
|
1430 Vgnuplot_command_end): Texinfoize doc strings. |
|
1431 |
3447
|
1432 * oct-procbuf.cc (__kluge_procbuf_delay__): Rename from |
|
1433 kluge_procbuf_delay. Texinfoize doc string. |
|
1434 |
3427
|
1435 2000-01-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1436 |
|
1437 * parse.y (gobble_leading_whitespace): Discard first space character |
|
1438 after consecutive comment characters. |
|
1439 * lex.l (grab_help_text): Ditto. |
|
1440 |
3428
|
1441 * lex.l (Vwhitespace_in_literal_matrix, Vwarn_separator_insert, |
|
1442 Vwarn_single_quote_string): Texinfoize doc string. |
|
1443 |
3418
|
1444 2000-01-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1445 |
3419
|
1446 * ov.h, ov.cc (octave_value::column_vector_value, |
|
1447 octave_value::row_vector_value, |
|
1448 octave_value::complex_column_vector_value, |
|
1449 octave_value::complex_row_vector_value): New functions. |
|
1450 (octave_value::vector_value): Now returns Array<double>. |
|
1451 (octave_value::complex_vector_value): Now returns Array<Complex>. |
|
1452 Sprinkle conversions where necessary. |
|
1453 |
3418
|
1454 * ov.cc (Vprefer_column_vectors): Now static. |
|
1455 * ov.h (octave_value (const ComplexRowVector&), |
|
1456 octave_value (const ComplexColumnVector&), |
|
1457 octave_value (const RowVector&), octave_value (const ColumnVector&)): |
|
1458 Delete second arg. Change all callers. |
3419
|
1459 |
3418
|
1460 * oct-obj.h (octave_value_list (const RowVector&), |
|
1461 octave_value_list (const ColumnVector&), |
|
1462 octave_value_list (const ComplexRowVector&), |
|
1463 octave_value_list (const ComplexColumnVector&)): Likewise. |
|
1464 * ov-cx-mat.h, ov-cx-mat.cc |
|
1465 (octave_complex_matrix (const ComplexRowVector&), |
|
1466 (octave_complex_matrix (const ComplexColumnVector&)): |
|
1467 Delete second arg, simply create object with orientation |
|
1468 corresponding to vector arg. Move constructors to class decl. |
|
1469 * ov-re-mat.h, ov-re-mat.cc (octave_matrix (const RowVector&), |
|
1470 (octave_matrix (const ColumnVector&)): |
|
1471 Delete second arg, simply create object with orientation |
|
1472 corresponding to vector arg. Move constructors to class decl. |
|
1473 |
3411
|
1474 2000-01-07 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
1475 |
|
1476 * mappers.cc (Fconj, Ferf, Ferfc, Fgamma, Fimag, Flgamma, Flog10, |
|
1477 Freal, Fround): Add @seealso{...} to doc strings. |
|
1478 |
3408
|
1479 2000-01-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1480 |
3410
|
1481 * oct-stream.cc (do_scanf): Do the right thing again for character |
|
1482 conversions. |
|
1483 |
3408
|
1484 * help.cc (display_help_text): Also strip out leading spaces |
|
1485 before Texinfo @-commands before sending doc string to makeinfo. |
|
1486 (display_help_text): Improve format of `See also' string. |
|
1487 |
3405
|
1488 2000-01-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1489 |
|
1490 * help.cc (display_help_text): Pass a definition for @seealso |
|
1491 through the filter. |
|
1492 |
3400
|
1493 1999-12-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1494 |
|
1495 * lex.l (Vwarn_single_quote_string): New variable. |
|
1496 (syms_of_lex): DEFVAR it. |
|
1497 (warn_single_quote_string): New function. |
|
1498 (gripe_single_quote_string): New function. |
|
1499 Use new stuff to allow warnings for code that uses single quote |
|
1500 characters to introduce string constants. |
|
1501 |
3399
|
1502 1999-12-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1503 |
|
1504 * mkbuiltins: Add #undef quad to generated file. |
|
1505 |
3388
|
1506 1999-12-15 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1507 |
|
1508 * lex.l (Vwarn_separator_insert): New variable. |
|
1509 (syms_of_lex): DEFVAR it. |
|
1510 (warn_separator_insert): New function. |
|
1511 (maybe_warn_separator_insert): New function. |
|
1512 Use new stuff to allow warnings for code that might result in |
|
1513 auto-insertion of commas or semicolons, depending on the value of |
|
1514 whitespace_in_literal_matrix. |
|
1515 |
|
1516 * parse.y (Fsource): Record function file name here too. |
|
1517 |
3377
|
1518 1999-12-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1519 |
|
1520 * variables.cc (link_to_global_variable): If the local symbol is |
|
1521 not a variable, don't bother to clear it. Instead, just redefine |
|
1522 it by aliasing to the global symbol. |
|
1523 |
3372
|
1524 1999-11-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1525 |
3373
|
1526 * DLD-FUNCTIONS/balance.cc (Fbalance): Texinfoize doc string. |
|
1527 * DLD-FUNCTIONS/det.cc (Fdet): Ditto. |
|
1528 * DLD-FUNCTIONS/eig.cc (Feig): Ditto. |
|
1529 * DLD-FUNCTIONS/givens.cc (Fgivens): Ditto. |
|
1530 * DLD-FUNCTIONS/inv.cc (Finv): Ditto. |
|
1531 * DLD-FUNCTIONS/chol.cc (Fchol): Ditto. |
|
1532 * DLD-FUNCTIONS/hess.cc (Fhess): Ditto. |
|
1533 * DLD-FUNCTIONS/lu.cc (Flu): Ditto. |
|
1534 * DLD-FUNCTIONS/qr.cc (Fqr): Ditto. |
|
1535 * DLD-FUNCTIONS/schur.cc (Fschur): Ditto. |
|
1536 * DLD-FUNCTIONS/svd.cc (Fsvd): Ditto. |
|
1537 * DLD-FUNCTIONS/expm.cc (Fexpm): Ditto. |
|
1538 * DLD-FUNCTIONS/log.cc (Flogm, Fsqrtm): Ditto. |
|
1539 * DLD-FUNCTIONS/syl.cc (Fsyl): Ditto. |
|
1540 * DLD-FUNCTIONS/pinv.cc (Fpinv): Ditto. |
|
1541 * DLD-FUNCTIONS/qz.cc (Fqz): Ditto. |
|
1542 * DLD-FUNCTIONS/dassl.cc (Fdassl, Fdassl_options): Ditto. |
|
1543 * DLD-FUNCTIONS/lsode.cc (Flsode, Flsode_options): Ditto. |
|
1544 * data.cc (Flength, Fsize, Fisempty): Ditto. |
3372
|
1545 * sysdep.cc (Fkbhit): Ditto. |
|
1546 * input.cc (Fkeyboard, Finput): Ditto. |
|
1547 * variables.cc (ans): Ditto. |
|
1548 * pr-output.cc (Fdisp, Fformat): Ditto. |
|
1549 * ov.cc (Vprint_answer_id_name): Ditto. |
3373
|
1550 * defaults.cc (IMAGEPATH): Ditto. |
|
1551 * error.cc (Ferror, Fwarning, Fusage, error_text, beep_on_error): |
|
1552 Ditto. |
3372
|
1553 * load-save.cc (Fload, Fsave, Vdefault_save_format, |
|
1554 Vsave_precision): Ditto. |
|
1555 * file-io.cc (Ffflush, Ffopen, Ffclose, Ffputs, Ffgetl, Ffgets, |
|
1556 Ffprintf, Fsprintf, Fscanf, Ffscanf, Fsscanf, Ffread, Ffwrite, |
|
1557 Ffseek, Fftell, Ffeof, Fferror, Ffreport, Ftmpnam, Vstdin_file, |
|
1558 Vstdout_file, Vstderr_file, SEEK_SET, SEEK_CUR, SEEK_END): Ditto. |
|
1559 * pager.cc (Vpager_binary, Vpage_output_immediately, |
|
1560 Vpage_screen_output, Fmore): Ditto. |
|
1561 |
3369
|
1562 1999-11-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1563 |
|
1564 * utils.cc (Vtreat_neg_dim_as_zero): Texinfoize doc string. |
|
1565 * DLD-FUNCTIONS/find.cc (Ffind): Ditto. |
|
1566 * DLD-FUNCTIONS/rand.cc (Frand, Frandn): Ditto. |
|
1567 * DLD-FUNCTIONS/sort.cc (Fsort): Ditto. |
|
1568 * mappers.cc (Fisinf, Fisnan, Ffinite): Ditto. |
|
1569 * data.cc (Fall, Fany, Fdiag, Fones, Fzeros, Feye, Flinspace): Ditto. |
3371
|
1570 * defaults.cc (Vloadpath, Vdefault_loadpath): Ditto. |
|
1571 * parse.y (Feval, Ffeval, Vdefault_eval_print_flag, |
|
1572 Vwarn_missing_semicolon, Vwarn_function_name_clash, Fsource): Ditto. |
|
1573 * ov-usr-fcn.cc (Vmax_recursion_depth, Vdefault_return_value, |
|
1574 Vdefine_all_return_values, Vreturn_last_computed_value): Ditto. |
|
1575 * ov.cc (Vok_to_lose_imaginary_part, Vdo_fortran_indexing, |
|
1576 Vprefer_column_vectors, Vresize_on_range_error, |
|
1577 Vwarn_divide_by_zero): Ditto. |
|
1578 * pt-stmt.cc (Vsilent_functions): Ditto. |
|
1579 * variables.cc (Vignore_function_time_stamp): Ditto. |
|
1580 * dynamic-ld.cc (Vwarn_reload_forces_clear): Ditto. |
3369
|
1581 |
3367
|
1582 1999-11-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1583 |
3368
|
1584 * DLD-FUNCTIONS/fft.cc (Ffft): Texinfoize doc string. |
|
1585 * DLD-FUNCTIONS/ifft.cc (Fifft): Ditto. |
|
1586 * DLD-FUNCTIONS/fft2.cc (Ffft2): Ditto. |
|
1587 * DLD-FUNCTIONS/ifft2.cc (Fifft2): Ditto. |
|
1588 * DLD-FUNCTIONS/filter.cc (Ffilter): Ditto. |
|
1589 * DLD-FUNCTIONS/quad.cc (Fquad, Fquad_options): Ditto. |
|
1590 * DLD-FUNCTIONS/colloc.cc (Fcolloc): Ditto. |
|
1591 * DLD-FUNCTIONS/fsolve.cc (Ffsolve, Ffsolve_options): Ditto. |
|
1592 * defaults.cc (Veditor): Ditto. |
|
1593 * pt-plot.cc (Vautomatic_replot, Vgnuplot_binary, |
|
1594 Vgnuplot_has_frames, Vgnuplot_has_multiplot, Fclearplot, |
|
1595 Fcloseplot, Fpurge_tmp_files, Fishold, Fhold): |
3367
|
1596 |
|
1597 * Makefile.in (parse.cc): Expect 11 shift/reduce conflicts now. |
|
1598 |
3361
|
1599 1999-11-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1600 |
3366
|
1601 * parse.y (Vwarn_assign_as_truth_value, Vwarn_variable_switch_label): |
|
1602 Texinfoize doc strings. |
|
1603 |
3365
|
1604 * DLD-FUNCTIONS/pinv.cc (Fpinv): Texinfoize doc string. |
|
1605 |
3364
|
1606 * defun-int.h (DEFUN_DLD_INTERNAL): New macro. |
|
1607 * defun-dld.h [MAKE_BUILTINS] (DEFUN_DLD): Simply expand to |
|
1608 DEFUN_DLD_INTERNAL. |
|
1609 * mkbuiltins: Generate code to define DEFUN_DLD_INTERNAL. |
|
1610 * mkgendoc: Likewise. |
|
1611 |
3363
|
1612 * Makefile.in (gendoc.o): Don't optimize when creating gendoc. |
3364
|
1613 (%.dc : %.cc): Delete rule. |
3363
|
1614 |
3361
|
1615 * pt-decl.cc (Vdefault_global_variable_value): Texinofize doc string. |
|
1616 * variables.cc (Fclear, Fdocument, Fexist, Fis_global, Fwho): Ditto. |
|
1617 * help.cc (Ftype, Fwhich): Ditto. |
|
1618 * ov.cc (Vstruct_levels_to_print, Vimplicit_str_to_num_ok): Ditto. |
|
1619 * data.cc (Fis_struct, Fstruct_elements, Fstruct_constains): Ditto. |
|
1620 * strfns.cc (Fisstr, Fsetstr): Ditto. |
|
1621 * pt-mat.cc: (Fimplicit_num_to_str_ok, Fstring_fill_char): Ditto. |
|
1622 * utils.cc (Fundo_string_escapes): Ditto. |
|
1623 * mappers.cc: (Fisalnum, Fisalpha, Fisascii, Fiscntrl, Fisdigit, |
|
1624 Fisgraph, Fislower, Fisprint, Fispunct, Fisspace, Fisupper, |
|
1625 Fisxdigit, Ftoascii, Ftolower, Ftoupper): Ditto. |
|
1626 |
3357
|
1627 1999-11-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1628 |
3360
|
1629 * syscalls.cc (symbols_of_syscalls): Use DEFCONSTX to define |
|
1630 Octave constants for C macros like O_WRONLY. |
|
1631 |
3357
|
1632 * oct-lvalue.cc (octave_lvalue::set_index): Disallow expressions |
|
1633 like x(i)(j) = rhs. |
|
1634 |
3355
|
1635 1999-11-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1636 |
3356
|
1637 * symtab.cc (symbol_record::type_as_string): New function. |
3355
|
1638 |
|
1639 * symtab.cc (symbol_record::which): New functions. |
|
1640 * help.cc (do_which): New functions. |
|
1641 (Fwhich): Use them. |
|
1642 |
|
1643 * help.cc (help_from_symbol_table, help_from_file): New functions. |
|
1644 (builtin_help): Use them. |
|
1645 |
|
1646 * help.cc (do_type): New function. |
3356
|
1647 (symbol_record::type): New function. |
3355
|
1648 (Ftype): Use them. |
|
1649 |
|
1650 * help.cc (print_symbol_type): Delete. |
|
1651 |
|
1652 * symtab.cc (symbol_table::name_list): Delete count arg. |
|
1653 (symbol_table::symbol_list): Likewise. |
|
1654 (symbol_table::glob): Likewise. Also return Array<symbol_record *> |
|
1655 instead of symbol_record **. |
|
1656 Change all callers. |
|
1657 * help.cc (names, display_symtab_names): Delete count arg. |
|
1658 |
|
1659 * help.cc (print_symbol_type, Ftype): No longer need to look up |
|
1660 fcn_file_name in the loadpath. |
|
1661 |
|
1662 * help.cc (print_symbol_type): Handle dld functions. |
|
1663 (help_from_symbol_table, help_from_file): New functions. |
|
1664 (builtin_help): Use them. |
|
1665 |
3354
|
1666 1999-11-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1667 |
|
1668 * ov-cell.cc (Fiscell, Fcell): New Functions. |
|
1669 (octave_cell::do_index_op): New function. |
|
1670 |
|
1671 * utils.cc (get_dimensions): Move here from data.cc and make extern. |
|
1672 (Vtreat_neg_dim_as_zero, treat_neg_dim_as_zero): Likewise. |
|
1673 (symbols_of_utils): New function. |
|
1674 |
|
1675 * data.cc (fill_matrix (const octave_value_list&, double, |
|
1676 const char*)): New function. |
|
1677 (Fones, Fzeros): Use it to avoid some code duplication. |
|
1678 |
3352
|
1679 1999-11-15 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1680 |
|
1681 * pt-cell.h, pt-cell.cc, ov-cell.h, ov-cell.cc, Cell.h, Cell.cc: |
|
1682 New files. |
|
1683 * Makefile.in: Add them to the appropriate lists. |
|
1684 * pt-walk.h (visit_cell (tree_cell&): New pure virtual. |
|
1685 * pt-pr-code.cc (tree_print_code::visit_cell (tree_cell&)): New |
|
1686 function. |
|
1687 * TEMPLATE-INST/Array-tc.cc: Instantiate 2D arrays of octave_value |
|
1688 objects. |
|
1689 * pt-all.h: Include pt-cell.h. |
|
1690 * ov.h, ov.cc (octave_value::is_cell, octave_value::cell_value): |
|
1691 New functions. |
|
1692 * ov-base.h, ov-base.cc (octave_value::is_cell, |
|
1693 octave_value::cell_value): Provide defaults. |
|
1694 * lex.h, lex.l: Handle `{' and `}' tokens (for cell arrays). |
|
1695 (bracketflag): Rename from braceflag. |
|
1696 (handle_close_bracket): Rename from handle_close_brace. |
|
1697 (class bracket_brace_paren_nesting_level): Rename from |
|
1698 brace_paren_nesting_level. |
|
1699 (bracket_brace_paren_nesting_level::bracket, |
|
1700 bracket_brace_paren_nesting_level::is_bracket): New functions to |
|
1701 keep count of nesting level for `[' and `]'. |
|
1702 (bracket_brace_paren_nesting_level::brace, |
|
1703 bracket_brace_paren_nesting_level::is_brace): Now keeps count of |
|
1704 nesting level for `{' and `}'. |
|
1705 * parse.y (tree_cell_type): New type. |
|
1706 Give '{' the same precedence and associativity as '(' and '.' |
|
1707 (matrix_rows, matrix_rows1): Rename from rows, rows1. |
|
1708 (cell, cell_rows, cell_rows1): New non-terminals. |
|
1709 (cell_or_matrix_row): Rename from matrix_row. |
|
1710 (primary_expr): Accept cell here. |
|
1711 (postfix_expr): Allow indexing using '{' arg_list '}'. |
|
1712 (finish_cell): New function. |
|
1713 |
3350
|
1714 1999-11-12 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1715 |
|
1716 * utils.cc (jump_to_top_level): No longer declared extern "C". |
|
1717 |
|
1718 * cutils.c (octave_strcasecmp, octave_strncasecmp): New functions. |
|
1719 * utils.cc (almost_match): Call octave_strncasecmp instead of |
|
1720 calling strncasecmp directly. |
|
1721 |
3347
|
1722 1999-11-10 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1723 |
|
1724 * parse.y: Don't define warn_reload_forces_clear here. |
|
1725 |
|
1726 * Makefile.in (DISTFILES): Include DOCSTRINGS. |
|
1727 |
3340
|
1728 1999-11-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1729 |
3343
|
1730 * sighandlers.cc (install_signal_handlers): Don't install |
|
1731 sigwinch_handler. |
|
1732 |
3342
|
1733 * oct-iostrm.h (octave_istream::eof, octave_ostream::eof): Provide |
|
1734 implementation for these. |
|
1735 |
|
1736 * oct-stream.cc (octave_base_stream::do_scanf): |
|
1737 The stdin stream is only special if we are interactive. |
|
1738 (octave_base_stream::scanf): Ditto. |
|
1739 (octave_base_stream::do_oscanf): Ditto. |
|
1740 (octave_base_stream::oscanf): Ditto. |
|
1741 |
3340
|
1742 * ov.h (octave_value::is_stream): New predicate. |
|
1743 * ov-file.h (octave_file::is_stream): Return true. |
|
1744 * file-io.cc (Fis_stream): New function. |
|
1745 |
|
1746 * ov-file.h (class octave_file): stream is now an object instead |
|
1747 of pointer. |
|
1748 * ov-file.cc (octave_file::print_raw): Handle stream as object |
|
1749 instead of pointer. Also print stream status. |
|
1750 |
|
1751 * ov-base.cc (octave_base_value::stream_value): Return object |
|
1752 instead of pointer. |
|
1753 |
|
1754 * ov.cc (octave_value::stream_value): Return object instead of pointer. |
|
1755 (octave_value::octave_value (const octave_stream&)): Take const |
|
1756 reference instead of pointer arg. |
|
1757 |
|
1758 * TEMPLATE-INST/Array-os.cc: Instantiate Arrays of octave_stream |
|
1759 objects, not pointers to them. |
|
1760 |
|
1761 * OPERATORS/op-fil-b.cc: Cope with octave_stream class changes. |
|
1762 * OPERATORS/op-fil-bm.cc: Likewise. |
|
1763 * OPERATORS/op-fil-cm.cc: Likewise. |
|
1764 * OPERATORS/op-fil-cs.cc: Likewise. |
|
1765 * OPERATORS/op-fil-lis.cc: Likewise. |
|
1766 * OPERATORS/op-fil-m.cc: Likewise. |
|
1767 * OPERATORS/op-fil-rec.cc: Likewise. |
|
1768 * OPERATORS/op-fil-s.cc: Likewise. |
|
1769 * OPERATORS/op-fil-str.cc: Likewise. |
|
1770 * file-io.cc: Likewise. |
|
1771 * syscalls.cc (Fdup): Likewise. |
|
1772 |
|
1773 * oct-fstrm.cc, oct-fstrm.h, oct-iostrm.cc, oct-iostrm.h, |
|
1774 oct-prcstrm.cc, oct-prcstrm.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
1775 oct-stream.cc, oct-stream.h, oct-strstrm.cc, oct-strstrm.h: |
|
1776 Rewrite to allow octave_stream objects to be used like values |
|
1777 instead of having to use pointers. |
|
1778 |
3337
|
1779 1999-11-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1780 |
|
1781 * oct-stream.cc (octave_base_stream::do_scanf): If it looks like |
|
1782 we have a matching failure, then reset the failbit in the stream |
|
1783 state. |
|
1784 (octave_base_stream::do_oscanf): Likewise. |
|
1785 |
3332
|
1786 1999-11-02 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
1787 |
3361
|
1788 * help.cc (Fhelp): Texinfoize doc string. |
|
1789 * input.cc (Fecho, Fcompletion_matches): Ditto. |
|
1790 * oct-hist.cc (Fedit_history, Fhistory, Frun_history): Ditto. |
|
1791 * pager.cc (Fdiary): Ditto. |
|
1792 * sysdep.cc (Fclc): Ditto. |
|
1793 * toplev.cc (Fquit, Fatexit): Ditto. |
3332
|
1794 |
|
1795 1999-11-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1796 |
|
1797 * lex.l (yywrap): No longer static. |
|
1798 (have_continuation): Declare input character as int, not char, so |
|
1799 comparison to EOF will work. |
|
1800 |
3330
|
1801 1999-11-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1802 |
|
1803 * defun.cc (print_usage): Use display_help_text instead of sending |
|
1804 help message directly to octave_stdout. |
|
1805 |
3325
|
1806 1999-10-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1807 |
|
1808 * defun-dld.h (INSTALL_DLD_FCNS, INSTALL_DLD_FCN): Delete definitions. |
|
1809 * DLD-FUNCTIONS/dassl.cc: Don't use INSTALL_DLD_FCN or |
|
1810 INSTALL_DLD_FCNS macros. They are not necessary with the new code |
|
1811 in dynamic-ld.cc. |
|
1812 * DLD-FUNCTIONS/lsode.cc: Ditto. |
|
1813 * DLD-FUNCTIONS/fsolve.cc: Ditto. |
|
1814 * DLD-FUNCTIONS/quad.cc: Ditto. |
|
1815 * DLD-FUNCTIONS/time.cc: Ditto. |
|
1816 * DLD-FUNCTIONS/besselj.cc: Ditto. |
|
1817 * DLD-FUNCTIONS/getgrent.cc: Ditto. |
|
1818 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
1819 * DLD-FUNCTIONS/inv.cc: Ditto. |
|
1820 * DLD-FUNCTIONS/log.cc: Ditto. |
|
1821 * DLD-FUNCTIONS/minmax.cc: Ditto. |
|
1822 * DLD-FUNCTIONS/rand.cc: Ditto. |
|
1823 |
|
1824 * dynamic-ld.cc, dynamic-ld.h: Major rewrite to allow reloading of |
|
1825 dynamically linked functions. |
|
1826 |
|
1827 * symtab.cc (symbol_record::replace_all_defs): Don't allow top |
|
1828 definition to be NULL. |
|
1829 (symbol_table::clear): Allow dynamically linked functions to be |
|
1830 cleared. |
|
1831 |
|
1832 * symtab.h (TYPE): New enum value, DLD_FUCTION. |
|
1833 (symbol_type): Now 8 bits wide. |
|
1834 (SYMTAB_ALL_TYPES): Include DLD_FUNCTION. |
|
1835 (symbol_record::symbol_def::is_function): Also recognize dld functions. |
|
1836 (symbol_record::symbol_def::is_dld_function): New function. |
|
1837 (symbol_record::is_dld_function): Ditto. |
|
1838 |
|
1839 * defun.cc (install_dld_function): New function. |
|
1840 * defun-int.h: Provide declaration here. |
|
1841 (octave_dld_fcn_installer): New typedef. |
|
1842 (DEFINE_FUN_INSTALLER_FUN): Installer function now takes an |
|
1843 oct_shlib object as an arg. Allow installation of a function to |
|
1844 happen more than once. |
|
1845 |
|
1846 * octave.cc (initialize_error_handlers): Call |
|
1847 set_liboctave_warning_handler here too. |
|
1848 |
|
1849 * ov-builtin.h (is_builtin_function): Return true. |
|
1850 Data member is now protected, not private. |
|
1851 |
|
1852 * ov-fcn.h (is_dynamically_loaded_function): New predicate. |
|
1853 (unload): New function. |
|
1854 Data members are now protected, not private. |
|
1855 |
|
1856 * ov.h (is_builtin_function, is_dld_function): New predicates. |
|
1857 * ov-base.h (is_builtin_function, is_dld_function): Ditto. |
|
1858 |
|
1859 * parse.y (Vwarn_reload_forces_clear): New static flag. |
|
1860 (warn_reload_forces_clear): New function. |
|
1861 (symbols_of_parse): DEFVAR warn_reload_forces_clear. |
|
1862 |
|
1863 * variables.cc (Fclear): Look for dld functions too. |
|
1864 |
3770
|
1865 * ov-dld-fcn.cc, ov-dld-fcn.h: New files. |
3325
|
1866 * Makefile.in (OV_INCLUDES, OV_SRC): Add them to the lists. |
|
1867 |
|
1868 * Makefile.in (DEFVAR_PATTERN): Also match DEFCONSTX. |
|
1869 |
3321
|
1870 1999-10-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1871 |
3325
|
1872 * DLList.h, DLList.cc: New files. |
|
1873 * Makefile.in (INCLUDES, DIST_SRC): Add them to the lists. |
|
1874 |
3323
|
1875 * DLD-FUNCTIONS/lsode.cc (Flsode): Be sure to call |
|
1876 unwind_protect::run_frame before returning. |
|
1877 * DLD-FUNCTIONS/quad.cc (Fquad): Likewise. |
|
1878 * DLD-FUNCTIONS/fsolve.cc (Ffsolve): Likewise. |
|
1879 * DLD-FUNCTIONS/dassl.cc (Fdassl): Likewise. |
|
1880 |
|
1881 * load-save.cc (read_mat_ascii_data): When reading from |
|
1882 tmp_stream, check its state, not the state of is. |
|
1883 |
|
1884 * defun-dld.h (INSTALL_DLD_FCN, INSTALL_DLD_FCNS): New macros. |
|
1885 * DLD-FUNCTIONS/dassl.cc: Use them. |
|
1886 * DLD-FUNCTIONS/lsode.cc: Ditto. |
|
1887 * DLD-FUNCTIONS/fsolve.cc: Ditto. |
|
1888 * DLD-FUNCTIONS/quad.cc: Ditto. |
|
1889 * DLD-FUNCTIONS/time.cc: Ditto. |
|
1890 * DLD-FUNCTIONS/besselj.cc: Ditto. |
|
1891 * DLD-FUNCTIONS/getgrent.cc: Ditto. |
|
1892 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
1893 * DLD-FUNCTIONS/inv.cc: Ditto. |
|
1894 * DLD-FUNCTIONS/log.cc: Ditto. |
|
1895 * DLD-FUNCTIONS/minmax.cc: Ditto. |
|
1896 * DLD-FUNCTIONS/rand.cc: Ditto. |
|
1897 |
3322
|
1898 * data.cc (Flinspace): Let linspace functions handle errors. |
|
1899 |
3321
|
1900 * mkgendoc (print_doc_string): Handle quoted names. |
|
1901 |
|
1902 * file-io.cc (symbols_of_file_io): Use DEFCONSTX for SEEK_SET, |
|
1903 SEEK_CUR, and SEEK_END. |
|
1904 |
|
1905 * defun.h (DEFCONST): Just pass name, defn, and doc to |
|
1906 DEFCONST_INTERNAL. |
|
1907 (DEFCONSTX): Likewise, pass name, defn, and doc to DEFCONSTX_INTERNAL. |
|
1908 * defun-int.h [MKBUILTINS] (DEFCONST_INTERNAL): Likewise, pass |
|
1909 name, defn, and doc to XDEFCONST_INTERNAL. |
|
1910 [MKBUILTINS] (DEFCONSTX_INTERNAL): New macro. |
|
1911 (INSTALL_CONST): New macro. |
|
1912 [! MKBUILTINS] (DEFCONST_INTERNAL): Use it to handle details here. |
|
1913 [! MKBUILTINS] (DEFCONSTX_INTERNAL): Ditto. |
|
1914 * mkgendoc: Fix definition of XDEFCONST_INTERNAL to match. |
|
1915 * mkbuiltins: Ditto. |
|
1916 |
|
1917 * mkdefs: Match spaces before BEGIN_INSTALL_BUILTIN. |
|
1918 |
|
1919 * Makefile.in (DEFUN_PATTERN): Also match DEFUN_MAPPER. |
|
1920 |
|
1921 1999-10-26 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
1922 |
|
1923 * data.cc (VI, VInf, VJ, VNaN, Ve, Veps, Vfalse, Vi, Vinf, Vj, |
|
1924 Vnan, Vpi, Vrealmax, Vrealmin): Texinfoize doc strings. |
|
1925 * mappers.cc (Fabs, Facos, Facosh, Fangle, Farg, Fasin, Fasinh, |
|
1926 Fatan, Fatanh, Fceil, Fconj, Fcos, Fcosh, Ferf, Ferfc, Fexp, |
|
1927 Ffinite, Ffix, Ffloor, Fgamma, Fimag, Flgamma, Flog, Flog10, |
|
1928 Freal, Fround, Fsign, Fsin, Fsinh, Fsqrt, Ftan, Ftanh): Ditto. |
|
1929 |
|
1930 1999-10-23 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
1931 |
3361
|
1932 * data.cc (Fis_matrix): Texinfoize doc string. |
|
1933 * ov.cc (Vpropagate_empty_matrices): Ditto. |
|
1934 * pt-mat.cc: (Vempty_list_elements_ok): Ditto. |
|
1935 * pr-output.cc (Vfixed_point_format, Voutput_max_field_width, |
|
1936 Voutput_precision, Vprint_empty_dimensions, Vsplit_long_rows): |
|
1937 Ditto. |
3321
|
1938 |
|
1939 1999-10-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1940 |
3323
|
1941 * ov-usr-fcn.cc (octave_user_function::do_index_op): If |
|
1942 Vmax_recursion_depth is exceeded, call unwind_protect::run_frame |
|
1943 before returning. |
3321
|
1944 |
3308
|
1945 1999-10-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1946 |
3317
|
1947 * cutils.c (do_octave_usleep): Handle useconds > 1e6. |
|
1948 |
3308
|
1949 * variables.h (is_valid_function): Provide default values for the |
|
1950 string argument. |
|
1951 |
|
1952 * symtab.cc (variable_reference): Maybe print warning (or error) |
|
1953 about variables that hide functions of the same name. |
|
1954 (symbol_record::define (const octave_value&, unsigned int)): Ditto. |
|
1955 (Vvariables_can_hide_functions): New static variable. |
|
1956 (variables_can_hide_functions, symbols_of_symtab): New functions. |
|
1957 |
|
1958 * cutils.c: New file. |
|
1959 * Makefile.in (SOURCES): Add it to the list. |
|
1960 * utils.h: Declare octave_usleep here. |
|
1961 * dirfns.cc (Fls): Simply all octave_usleep. |
|
1962 * oct-procbuf.cc (octave_procbuf::open): Ditto. |
|
1963 * sysdep.cc (Fusleep): Ditto. |
|
1964 * toplev.cc (run_command_and_return_output): Ditto. |
|
1965 |
3305
|
1966 1999-10-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1967 |
3307
|
1968 * data.cc (make_diag (const octave_value&, const octave_value&)): |
|
1969 Delete special cases for scalars and simply attempt conversion of |
|
1970 first arg to a matrix value. If that fails, we will still see an |
|
1971 error message. |
|
1972 |
3305
|
1973 * Makefile.in (DISTFILES): Add mkgendoc to the list. |
|
1974 |
3296
|
1975 1999-10-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1976 |
3301
|
1977 * Makefile.in (stmp-pic): New target. |
|
1978 ($(PICOBJS)): Depend on stmp-pic, not pic. |
|
1979 |
|
1980 * ov.h (get_rep): New function. |
|
1981 |
|
1982 * help.cc (display_help_text): Pass definitions for VERSION, |
|
1983 OCTAVE_HOME, and TARGETHOSTTYPE to makeinfo. |
|
1984 |
|
1985 * DLD-FUNCTIONS/getgrent.cc: Texinfoize all doc strings. |
|
1986 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
1987 * DLD-FUNCTIONS/getrusage.cc: Ditto. |
|
1988 * DLD-FUNCTIONS/time.cc: Ditto. |
|
1989 |
|
1990 * defaults.cc (EXEC_PATH, OCTAVE_VERSION): Texinfoize doc strings. |
|
1991 * dirfns.cc (Fcd, Fls, Fpwd, Freaddir, Fmkdir, Frmdir, Frename, |
|
1992 Fglob, Ffnmatch): Ditto. |
|
1993 * file-io.cc (Fpopen, Fpclose, Fumask): Ditto. |
|
1994 * sysdep.cc (Fgetenv, Fputenv, Fpause, Fsleep, Fusleep, Fisieee, |
|
1995 Ftilde_expand): Ditto. |
|
1996 * toplev.cc (Fcomputer, Fsystem, Foctave_config_info): Ditto. |
|
1997 * utils.cc (Ffile_in_path): Ditto. |
|
1998 * syscalls.cc (Fdup2, Fexec, Ffcntl, Ffork, Fgetpgrp, Fgetpid, |
|
1999 Fgetppid, Fgetegid, Fgetgid, Fgeteuid, Fgetuid, Fmkfifo, Fpipe, |
|
2000 Fstat, Funlink, Fwaitpid, F): Ditto. |
|
2001 (Flstat): Refer to stat for doc. |
|
2002 |
|
2003 |
3296
|
2004 * help.cc (looks_like_texinfo): New function. |
|
2005 (display_help_text): Use it to see if the doc string looks like |
|
2006 Texinfo source. If so, use makeinfo to format the text before |
|
2007 displaying it. |
|
2008 |
|
2009 * mkgendoc: New script. |
|
2010 * Makefile.in: Use it to create gendoc.cc, which is compiled and |
|
2011 run to create DOCSTRINGS file from sources. |
|
2012 |
3295
|
2013 1999-10-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2014 |
|
2015 * help.cc (help_from_info): Print `unable to find info' message if |
|
2016 try_info returns 127; otherwise, print `not indexed' message. |
|
2017 Don't sleep after printing `not indexed' message. |
|
2018 |
3292
|
2019 1999-10-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2020 |
|
2021 * parse.y (fold (tree_unary_expression *)): New function. |
|
2022 (make_prefix_op, make_postfix_op): Use it. |
|
2023 |
3281
|
2024 1999-10-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2025 |
3288
|
2026 * Makefile.in (oct-gperf.h): Ask for ANSI-C output from gperf |
|
2027 (requires gperf-2.7 or later). |
|
2028 |
3281
|
2029 * sighandlers.cc (sigwinch_handler): New function. |
|
2030 (install_signal_handlers): Install it. |
|
2031 |
3273
|
2032 Thu Sep 23 19:49:36 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2033 |
|
2034 * toplev.cc (Fsystem): For async case, use execl instead of |
|
2035 system, avoiding the need to exit after executing the subprocess. |
|
2036 |
3268
|
2037 Thu Sep 9 17:09:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2038 |
|
2039 * oct-stream.cc (get_size): Allow zero values. |
|
2040 (get_size): New arg, one_elt_size_spec. |
|
2041 (do_scanf_conv): New arg, `conv_count'. Change instantiation |
|
2042 requests and all callers. |
|
2043 (octave_base_stream::do_scanf): Improve scanning of strings. |
|
2044 (octave_base_stream::do_oscanf): Remove size limit on %s conversions. |
|
2045 |
|
2046 * oct-stream.cc (scanf_format_list::all_character_conversions): |
|
2047 Don't count %p as a character conversion. |
|
2048 |
|
2049 Tue Sep 7 08:31:04 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2050 |
|
2051 * pr-output.cc (set_real_matrix_format, set_complex_matrix_format): |
|
2052 Move check for fixed_point_format ahead of check for |
|
2053 int_or_inf_or_nan. |
|
2054 |
3264
|
2055 Thu Sep 2 11:54:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2056 |
|
2057 * oct-obj.cc (make_argv): Correctly handle empty strings as args. |
|
2058 |
3263
|
2059 Fri Aug 20 08:17:52 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2060 |
|
2061 * DLD-FUNCTIONS/quad.cc (quad): Delete unused label. |
|
2062 |
|
2063 * unwind-prot.cc (saved_variable::~saved_variable): Don't try to |
|
2064 delete gen_ptr_value here. |
|
2065 |
|
2066 Mon Aug 16 21:34:33 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2067 |
|
2068 * lex.l (next_token_is_sep_op): New function. |
|
2069 (handle_close_brace, maybe_unput_comma): Use it. |
|
2070 (have_continuation): Also handle CRLF here. |
|
2071 |
|
2072 Wed Aug 11 16:06:57 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2073 |
|
2074 * file-io.cc (Ffopen): Make fopen ("filename") work and imply that |
|
2075 MODE = "r". |
|
2076 |
3258
|
2077 Wed Jul 21 15:38:52 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2078 |
3259
|
2079 * help.cc (display_names_from_help_list): Sort names before |
|
2080 listing them. |
|
2081 (print_symbol_type, Ftype): Also handle built-in constants. |
|
2082 (LIST_SYMBOLS): Correct call to symbol_table::name_list. |
|
2083 (simple_help): List constants here too. List constants and |
|
2084 variables before functions, not after. Sort names before listing |
|
2085 them. |
|
2086 |
|
2087 * variables.cc (do_who): Display built-in constants in a separate |
|
2088 section. |
|
2089 |
|
2090 * error.cc (bind_global_error_variable, clear_global_error_variable): |
|
2091 Call bind_builtin_constant, not bind_builtin_variable to set |
|
2092 __error_text__. |
|
2093 * octave.cc (intern_argv): Likewise, for argv and __argv__. |
|
2094 |
|
2095 * defun.cc (install_builtin_constant): Move function guts to |
|
2096 bind_builtin_constant in variables.cc. |
|
2097 * variables.cc (bind_builtin_constant): New function. |
|
2098 |
3258
|
2099 * symtab.cc (symbol_record::define, symbol_record::variable_reference): |
|
2100 Handle constants the same as functions. |
|
2101 (symbol_record::link_to_builtin_variable): New function. |
|
2102 (symbol_record::define_builtin_const): New function. |
|
2103 (symbol_record::define_as_fcn): Delete unused function. |
|
2104 (symbol_record::read_only_error): |
|
2105 Handle constants the same as variables. |
|
2106 * symtab.h (symbol_record::BUILTIN_CONSTANT): New enum value. |
|
2107 (symbol_record::symbol_type): Increase width to 7 bits. |
|
2108 (symbol_record::symbol_def::is_constant): New function. |
|
2109 (symbol_record::symbol_def::is_builtin_constant): New function. |
|
2110 (symbol_record::is_constant): New function. |
|
2111 (symbol_record::is_builtin_constant): New function. |
|
2112 (SYMTAB_ALL_TYPES): Add symbol_record::BUILTIN_CONSTANT. |
|
2113 * variables.cc (link_to_builtin_variable): Delete unused function. |
|
2114 (link_to_builtin_or_function): Handle built-in constants here too. |
|
2115 |
|
2116 * defun.cc (install_builtin_variable): Delete inst_as_fcn arg. |
|
2117 (install_builtin_constant): New function. |
|
2118 (install_builtin_variable_as_function): Delete unused function. |
|
2119 * defun.h (DEFVAR_INTERNAL): Delete inst_as_fcn arg. |
|
2120 (DEFCONST_INTERNAL): New macro. |
|
2121 * defun.h (DEFVAR): Delete inst_as_fcn arg. |
|
2122 (DEFCONST, DEFCONSTX): Define using DEFCONST_INTERNAL instead of |
|
2123 DEFVAR_INTERNAL. |
|
2124 * data.cc, defaults.cc, error.cc, help.cc, input.cc, lex.l, |
|
2125 load-save.cc, oct-hist.cc, oct-procbuf.cc, ov-fcn.h, |
|
2126 ov-usr-fcn.cc, ov.cc, pager.cc, parse.y, pr-output.cc, |
|
2127 pt-assign.cc, pt-decl.cc, pt-mat.cc, pt-plot.cc, pt-stmt.cc, |
|
2128 toplev.cc, variables.cc: |
|
2129 Change all invocations of DEFVAR to match new definition. |
|
2130 |
|
2131 * data.cc (symbols_of_data): Add DEFCONSTs for true and false. |
|
2132 |
3255
|
2133 Thu Jul 15 10:59:42 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2134 |
3258
|
2135 * data.cc (Fis_bool, Fis_complex, Fisempty, Fisnumeric, Fis_list, |
|
2136 Fis_map, Fis_struct): Return bool object. |
|
2137 (Fisreal): New function. |
|
2138 |
|
2139 * ov-str-mat.h (octave_char_matrix_str): Only return true if |
|
2140 Vimplicit_str_to_num_ok is also true. |
|
2141 |
3255
|
2142 * DLD-FUNCTIONS/time.cc (Ftime): Print usage message if any |
|
2143 arguments are supplied. |
|
2144 |
|
2145 * variables.cc (symbol_out_of_date): Call octave_time for time stamps. |
|
2146 |
|
2147 * fn-cache.h (octave_fcn_file_name_cache::timestamp): |
|
2148 Now octave_time object. |
|
2149 |
|
2150 * strftime.c: Move to liboctave directory. |
|
2151 * Makefile.in (DIST_SRC): Delete from list. |
|
2152 |
|
2153 * ov-usr-fcn.h (octave_user_function::t_parsed, |
|
2154 octave_user_function::t_checked): Now octave_time objects. |
|
2155 (octave_user_function::time_parsed, |
|
2156 (octave_user_function::time_checked): |
|
2157 Return value is now octave_time object. |
|
2158 (octave_user_function::mark_fcn_file_up_to_date)): |
|
2159 Arg is now octave_time object. |
|
2160 |
|
2161 * ov-fcn.h (octave_function::mark_fcn_file_up_to_date)): |
|
2162 Arg is now octave_time object. |
|
2163 (octave_function::time_parsed, octave_function::time_checked): |
|
2164 Return value is now octave_time object. |
|
2165 |
|
2166 * input.cc (Vlast_prompt_time): Now an octave_time object. |
|
2167 (octave_gets): Call octave_time::stamp() to set Vlast_prompt_time. |
|
2168 |
|
2169 * DLD-FUNCTIONS/time.cc (mk_tm_map, extract_tm, Ftime, Fgmtime, |
|
2170 Flocaltime, Fmktime, Fstrftime): Use new classes defined in |
|
2171 liboctave/oct-time.cc instead of accessing C functions directly. |
|
2172 |
3252
|
2173 Wed Jul 14 17:38:46 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2174 |
|
2175 * systime.h: Move to liboctave directory. |
|
2176 * Makefile.in (INCLUDES): Delete it from the list |
|
2177 |
|
2178 Tue Jul 13 14:34:57 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2179 |
|
2180 * sighandlers.cc (sigchld_handler): Only wait for processes in |
|
2181 octave_child_list. |
|
2182 * toplev.cc (cmd_status): Delete unused static variable. |
|
2183 (cmd_death_handler): Delete unused function. |
|
2184 (run_command_and_return_output): Don't add cmd_death_handler to |
|
2185 octave_child_list. Simply extract command exit status from |
|
2186 calling close() on the procstream object. |
|
2187 |
3249
|
2188 Mon Jul 12 22:38:50 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2189 |
|
2190 * defun.h (DEFUN_MAPPER): Handle new args, d_b_map and c_b_map. |
|
2191 * defun-int.h (DEFUN_MAPPER_INTERNAL): Likewise. |
|
2192 * mappers.cc (install_mapper_functions): Supply new args to |
|
2193 all uses of DEFUN_MAPPER. |
|
2194 * ov-mapper.cc (octave_mapper::apply): Handle mapper functions |
|
2195 that return bool objects. |
|
2196 * ov-mapper.h (octave_mapper::d_b_mapper, octave_mapper::c_b_mapper): |
|
2197 New typedefs. |
|
2198 (octave_mapper::octave_mapper): Handle new mapper function types. |
|
2199 |
|
2200 * DLD-FUNCTIONS/minmax.cc: Do a better job of handling NaNs. |
|
2201 |
|
2202 Sun Jul 11 13:15:17 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2203 |
|
2204 * pr-output.cc (do_plus_format (ostream&, double)): New function. |
|
2205 (octave_print_internal (ostream&, double, bool)): Use it. |
|
2206 (octave_print_internal (ostream&, const Matrix&, bool, int)): Ditto. |
|
2207 |
|
2208 * pr-output.cc (do_plus_format (ostream&, const Complex&)): |
|
2209 New function. |
|
2210 (octave_print_internal (ostream&, const Complex&, bool)): Use it. |
|
2211 (octave_print_internal (ostream&, const ComplexMatrix&, bool, int)): |
|
2212 Ditto. |
|
2213 |
|
2214 Sun Jun 20 23:04:00 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2215 |
|
2216 * sysdep.cc: Include sys/ioctl.h if available. |
|
2217 |
|
2218 Sat Jun 19 12:07:16 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2219 |
|
2220 * variables.cc (do_who): Make pattern and multiple non-option |
|
2221 arguments work. |
|
2222 |
3246
|
2223 Mon Jun 7 09:54:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2224 |
|
2225 * lex.l (next_token_is_bin_op, next_token_is_postfix_unary_op, |
|
2226 handle_number): Delete yytext arg. Change all callers. |
|
2227 (next_token_is_postfix_unary_op): Check the first character |
|
2228 obtained from yyinput before calling it again. |
|
2229 (next_token_is_bin_op): Do a more thorough check. |
|
2230 (handle_identifier): Also enter token in local symbol table if the |
|
2231 following token is a dot and it looks like a binary operator. |
|
2232 (whitespace_in_literal_matrix): Now static. |
|
2233 |
|
2234 * lex.l: Always use unput, not yyunput. |
|
2235 |
3244
|
2236 Fri May 28 11:02:37 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2237 |
|
2238 * DLD-FUNCTIONS/chol.cc (Fchol): If two output arguments, never |
|
2239 produce error message. |
|
2240 |
3243
|
2241 Thu May 27 18:28:35 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2242 |
|
2243 * DLD-FUNCTIONS/chol.cc (Fchol): Also return info as second output. |
|
2244 |
|
2245 * DLD-FUNCTIONS/minmax.cc (max (const ComplexMatrix&, const |
|
2246 ComplexMatrix&)): Correct test for real columns only. |
|
2247 (min (const ComplexMatrix&, const ComplexMatrix&)): Likewise. |
|
2248 |
|
2249 Wed Apr 14 12:54:25 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2250 |
|
2251 * DLD-FUNCTIONS/dassl.cc (Fdassl): Prevent recursive calls. |
|
2252 * DLD-FUNCTIONS/fsolve.cc (Ffsolve): Likewise. |
|
2253 * DLD-FUNCTIONS/lsode.cc (Flsode): Likewise. |
|
2254 * DLD-FUNCTIONS/quad.cc (Fquad): Likewise. |
|
2255 |
|
2256 * file-io.cc (Fsscanf, Ffscanf): Doc fix. |
|
2257 |
3239
|
2258 Sat Mar 27 11:07:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2259 |
|
2260 * ov.h (octave_value::count): New function. |
|
2261 * symtab.cc (symbol_record::dump_symbol_info): New function. |
|
2262 * symtab.cc (symbol_record::symbol_def::dump_symbol_info): Ditto. |
|
2263 * variables.cc (F__dump_symbol_info__): Ditto. |
|
2264 |
|
2265 * pt-misc.cc (tree_parameter_list::clear): New function. |
|
2266 * ov-usr-fcn.h (octave_user_function::clear_args_passed): Ditto. |
|
2267 * ov-usr-fcn.cc (clear_param_list): New function. |
|
2268 (clear_args_passed): New function. |
|
2269 (octave_user_function::do_index_op): Use them to decrement |
|
2270 reference counts on local variables. |
|
2271 |
3238
|
2272 Fri Mar 26 00:51:53 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2273 |
|
2274 * Makefile.in (libraries): Use the libfoo.a(objects) method of |
|
2275 creating static libs. |
|
2276 |
|
2277 * defaults.cc (symbols_of_defaults): Initialize LOADPATH to |
|
2278 Vload_path, not ":". |
|
2279 |
|
2280 Thu Mar 18 12:09:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2281 |
|
2282 * data.cc (Fisnumeric): Fix typo. |
|
2283 |
|
2284 Thu Mar 4 02:17:04 1999 James Macnicol <jamesm@evans.ee.adfa.oz.au> |
|
2285 |
|
2286 * file-io.cc (Ffread, Ffwrite): Add uint16 and uint32 data types |
|
2287 to doc string. |
|
2288 |
|
2289 Wed Mar 3 11:55:17 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2290 |
|
2291 * lex.l (handle_string): Allow "" to pass through unchanged if |
|
2292 working on a gset command. |
|
2293 |
|
2294 Tue Mar 2 01:36:29 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2295 |
|
2296 * variables.cc (Fexist): If a variable isn't defined, only go on |
|
2297 to look for a global by the same name if we are at the top level. |
|
2298 |
|
2299 Fri Jan 29 02:18:36 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2300 |
|
2301 * version.h (OCTAVE_NAME_AND_VERSION): Say `GNU Octave', not just |
|
2302 Octave. |
|
2303 |
3234
|
2304 Thu Jan 28 21:29:16 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2305 |
|
2306 * toplev.cc (Fcomputer): Use CANONICAL_HOST_TYPE, not TARGET_HOST_TYPE. |
|
2307 (octave_config_info): Likewise. |
|
2308 * version.h: Ditto. |
|
2309 |
|
2310 * sysdep.cc (Fpause): Flush output before getting user input. |
|
2311 |
3233
|
2312 Wed Jan 27 14:18:29 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2313 |
|
2314 * Makefile.in (DEFFUN_PATTERN, DEFVAR_PATTERN): Use egrep again. |
|
2315 Make the patterns work with stupid egreps that don't like empty |
|
2316 elements in alternation patterns. |
|
2317 |
|
2318 Fri Jan 22 04:41:48 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2319 |
|
2320 * load-save.cc (save_ascii_data): Check for string type first, |
|
2321 then range, then the rest. |
|
2322 (save_binary_data): Ditto. |
|
2323 |
|
2324 * pager.cc (more_than_a_screenful): Accept length as second arg. |
|
2325 Handle long lines properly, assuming the terminal wraps long lines. |
|
2326 (octave_pager_buf::do_sync): Accept length of data as second arg. |
|
2327 Use write instead of << to put characters on output stream. |
|
2328 (octave_pager_buf::sync): Don't assume data ends at first NUL. |
|
2329 (octave_diary_buf::sync): Ditto. |
|
2330 |
|
2331 Thu Jan 21 22:15:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2332 |
|
2333 * load-save.cc (save_mat_binary_data): Check for string type |
|
2334 first, then range, then the rest. |
|
2335 |
|
2336 Wed Jan 20 12:01:14 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2337 |
|
2338 * oct-stream.cc (octave_base_stream::do_scanf): Handle short and |
|
2339 long ints correctly. |
|
2340 |
|
2341 Fri Jan 15 13:04:58 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2342 |
|
2343 * parse.y (end_error): Handle case of endswitch too. |
|
2344 |
|
2345 * Makefile.in: Use basic regular expressions and grep instead of |
|
2346 egrep to find files that contain DEFVAR, DEFCONST, or DEFUN. |
|
2347 |
|
2348 Wed Dec 9 14:14:11 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2349 |
|
2350 * Makefile.in (octave): Add $(RDYNAMIC_FLAG) to link command. |
|
2351 |
|
2352 Fri Dec 4 20:26:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2353 |
|
2354 * DLD-FUNCTIONS/time.cc (Fstrftime): Make it work even when not |
|
2355 using the GNU version of strftime, which allows passing NULL for |
|
2356 the buffer to determine the required size of the buffer. |
|
2357 |
3225
|
2358 Wed Dec 2 22:38:40 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2359 |
|
2360 * utils.cc (file_in_loadpath): Expect argc == 2, not 3. |
|
2361 |
|
2362 Tue Nov 24 23:38:19 1998 Eric Norum <eric@skatter.USask.Ca> |
|
2363 |
|
2364 * mkbuiltins: Also strip off leading `./' from file names. |
|
2365 * mkops: Ditto. |
|
2366 |
|
2367 Tue Nov 24 23:24:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2368 |
|
2369 * strftime.c: Surround everything with #ifdef HAVE_STRFTIME / #endif. |
|
2370 |
|
2371 * lex.h (YY_FATAL_ERROR): Call yy_falta_error after |
|
2372 jump_to_top_level to avoid gcc warning. |
|
2373 |
|
2374 Fri Nov 20 13:34:47 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2375 |
|
2376 * ov-bool.h, ov-bool.cc (class octave_bool): Derive from |
|
2377 octave_base_scalar and get common functions via derivation. |
|
2378 * ov-scalar.h, ov-scalar.cc (class octave_scalar): Ditto. |
|
2379 * ov-complex.h, ov-complex.cc (class octave_complex): Ditto. |
|
2380 |
|
2381 * ov-base-scalar.h, ov-base-scalar.cc (class octave_base_scalar): |
|
2382 New files for new class definition. Put common scalar data type |
|
2383 stuff here. |
|
2384 * Makefile.in (OV_INCLUDES, OV_SRC): Add them to the lists. |
|
2385 |
3221
|
2386 Thu Nov 19 14:30:25 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
3225
|
2387 |
3222
|
2388 * dynamic-ld.cc (octave_dynamic_loader::mangle_name): |
|
2389 Prepend underscore here. |
|
2390 (octave_dynamic_loader::load_fcn_from_dot_oct_file): Not here. |
|
2391 |
3221
|
2392 * ov-re-mat.h (octave_matrix_value): Delete experimental code for |
|
2393 handling structure references for things like .rows, .cols, etc. |
|
2394 |
3220
|
2395 Wed Nov 18 01:18:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2396 |
3221
|
2397 * Makefile.in (VAR_FILES): Be more careful about matching. |
|
2398 (DEF_FILES): Likewise. |
|
2399 |
|
2400 * ov-base-mat.h, ov-base-mat.cc, ov-bool-mat.h, ov-bool-mat.cc, |
|
2401 ov-ch-mat.h, ov-ch-mat.cc, ov-cx-mat.h, ov-cx-mat.cc, |
|
2402 ov-re-mat.h, ov-re-mat.cc: Move default definition of all, any, |
|
2403 is_matrix_type, is_numeric_type, valid_as_zero_index, and |
|
2404 do_index_op to base class. |
|
2405 Provide definitions that override the defaults where necessary. |
3220
|
2406 |
|
2407 * mappers.cc: Don't include lo-specfun.h. |
|
2408 |
|
2409 Tue Nov 17 14:35:56 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2410 |
|
2411 * besselj.cc (Fbesselh, Fairy); New functions. |
|
2412 (Fbesselj, Fbessely, Fbesselk, Fbesseli): Update doc strings. |
|
2413 (do_bessel): Handle additional args. |
|
2414 |
|
2415 Fri Nov 13 14:47:11 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2416 |
|
2417 * lex.l (NUMBER): Allow hexadecimal constants. |
|
2418 (looks_like_hex): New function. |
|
2419 (handle_number): Check for hexadecimal constants and convert them |
|
2420 to unsigned integer values. |
|
2421 |
3219
|
2422 Thu Nov 12 11:13:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2423 |
|
2424 * input.cc (gnu_readline): Check for EOF from command_editor::readline. |
|
2425 |
|
2426 * ov-str-mat.h, ov-str-mat.cc (class octave_char_matrix_str): |
|
2427 Get common functions via new derivation scheme. |
|
2428 |
|
2429 * ov-bool-mat.h, ov-bool-mat.cc (class octave_bool_matrix): |
|
2430 Derive from octave_base_matrix and get common functions via derivation. |
|
2431 * ov-ch-mat.h, ov-ch-mat.cc (class octave_char_matrix): Ditto. |
|
2432 * ov-cx-mat.h, ov-cx-mat.cc (class octave_complex_matrix): Ditto. |
|
2433 * ov-re-mat.h, ov-re-mat.cc (class octave_real_matrix): Ditto. |
|
2434 |
|
2435 * ov-base-mat.h, ov-base-mat.cc (class octave_base_matrix): New |
|
2436 files for new class definition. Put common matrix data type |
|
2437 stuff here. |
|
2438 |
|
2439 * ov-list.cc (Fnth): New function. |
|
2440 |
|
2441 * ov-list.cc (octave_list::do_index_op): Allow more complex indexing. |
|
2442 |
|
2443 * oct-obj.cc (octave_value_list::index): New function. |
|
2444 (octave_value_list::octve_value_list (Array<octave_value>)): |
|
2445 New private constructor. |
|
2446 |
|
2447 * ov-list.cc (Fsplice): Fix docstring to match. |
|
2448 * oct-obj.cc (octave_value_list::splice): Allow special case |
|
2449 splice (x, length(x)+1, 0, y) to be equivalent to append (x, y). |
|
2450 |
|
2451 * ov-list.cc (Fappend): If an arg is a list, concatenate the lists |
|
2452 instead of appending arg as a single element. |
|
2453 |
|
2454 Wed Nov 11 14:07:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2455 |
|
2456 * load-save.cc (get_mat_data_input_line): New function. |
|
2457 (get_lines_and_columns): Use it here. |
|
2458 (read_mat_ascii_data): And here and do our own reading instead of |
|
2459 using Matrix::operator<<. |
|
2460 |
|
2461 Tue Nov 10 16:12:25 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2462 |
|
2463 * parse.y (make_constant): Initialize retval to 0. |
|
2464 |
|
2465 * toplev.h (clean_up_and_exit (void)): Delete declaration. |
|
2466 * toplev.cc (do_octave_atexit): Move guts of clean_up_for_exit |
|
2467 here, but ensure that the actions are only executed once. |
|
2468 * octave.cc (main): Don't register cleanup_tmp_files with atexit. |
|
2469 |
|
2470 * ov.h, ov.cc (class octave_value): Use DECLARE_OCTAVE_ALLOCATOR |
|
2471 and DEFINE_OCTAVE_ALLOCATOR for uniform declaration and definition |
|
2472 of allocator functions. Use DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA |
|
2473 and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA for uniform declaration |
|
2474 and definition of type id functions and data. |
|
2475 * ov-usr-fcn.h, ov-usr-fcn.cc (class octave_user_function): Ditto. |
|
2476 * ov-scalar.h, ov-scalar.cc (class octave_scalar): Ditto. |
|
2477 * ov-re-mat.h ov-re-mat.cc (class octave_matrix): Ditto. |
|
2478 * ov-range.h, ov-range.cc (class octave_range): Ditto. |
|
2479 * ov-mapper.h, ov-mapper.cc (class octave_mapper): Ditto. |
|
2480 * ov-list.h, ov-list.cc (class octave_list): Ditto. |
|
2481 * ov-file.h, ov-file.cc (class octave_file): Ditto. |
|
2482 * ov-fcn.h, ov-fcn.cc (class octave_function): Ditto. |
|
2483 * ov-cx-mat.h, ov-cx-mat.cc (class octave_complex_matrix): Ditto. |
|
2484 * ov-complex.h, ov-complex.cc (class octave_complex): Ditto. |
|
2485 * ov-ch-mat.h, ov-ch-mat.cc (octave_char_matrix): Ditto. |
|
2486 * ov-builtin.h, ov-builtin.cc (class octave_builtin): Ditto. |
|
2487 * ov-bool.h, ov-bool.cc (class octave_bool): Ditto. |
|
2488 * ov-bool-mat.h, ov-bool-mat.cc (octave_bool_matrix): Ditto. |
|
2489 |
|
2490 * ov.h (DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA): New macro. |
|
2491 (DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA): Ditto. |
|
2492 |
3215
|
2493 Mon Nov 9 16:12:37 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2494 |
|
2495 * pr-output.cc (octave_print_internal): Reorder default args for |
|
2496 charMatrix version. |
|
2497 (octave_print_internal): New function for boolMatrix. |
|
2498 |
|
2499 * version.h (OCTAVE_STARTUP_MESSAGE): Note that this is a |
|
2500 development release. |
|
2501 |
|
2502 * toplev.cc (do_octave_atexit): Call flush_octave_stdout here. |
|
2503 (clean_up_for_exit): And here. |
|
2504 |
|
2505 Mon Nov 9 15:20:53 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2506 |
|
2507 * input.cc (get_user_input): Check retval.length(), not retval.length. |
|
2508 |
|
2509 Sun Nov 8 19:30:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2510 |
|
2511 * pt-assign.cc (tree_simple_assignment::rvalue): If etype is |
|
2512 asn_eq, don't evaluate ult again because retval is just rhs value. |
|
2513 (tree_multi_assignment::rvalue): Likewise. |
|
2514 |
|
2515 Fri Nov 6 12:14:29 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2516 |
|
2517 * pt-loop.cc (tree_for_command::eval): Move code for string RHS |
|
2518 outside if clause for matrix types. |
|
2519 |
|
2520 * pt-idx.cc: Don't forget to define arg_nm. |
|
2521 Move contstructor here. |
|
2522 * pt-idx.h: From here. |
|
2523 |
|
2524 * data.cc (Fisempty): Also return true for empty strings. |
|
2525 |
3212
|
2526 Wed Nov 4 17:21:41 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2527 |
|
2528 * ov-base.cc (octave_base_value::rows, octave_base_value::columns, |
|
2529 octave_base_value::length): Delete. |
|
2530 * ov-base.h (octave_base_value::rows, octave_base_value::columns, |
|
2531 octave_base_value::length): Define here. All return -1 if not |
|
2532 defined in a derived class. |
|
2533 |
|
2534 * data.cc (Fis_matrix): Also return true if the arg is a range. |
|
2535 |
3209
|
2536 Tue Nov 3 09:40:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2537 |
|
2538 * data.cc (Fis_bool): New function. |
|
2539 Also add alias for islogical. |
|
2540 |
|
2541 * ov.h (octave_value::is_bool_type): New function. |
|
2542 * ov-base.h (octave_base_value::is_bool_type): Likewise. |
|
2543 * ov-bool.h (octave_bool::is_bool_type): Likewise. |
|
2544 * ov-bool-mat.h (octave_bool_matrix::is_bool_type): Likewise. |
|
2545 |
3206
|
2546 Mon Nov 2 13:36:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2547 |
3208
|
2548 * lex.l (handle_close_brace): Also handle case of ']' followed by |
|
2549 other assignment ops (+=, -=, ...). |
|
2550 |
|
2551 * pt-assign.cc (tree_simple_assignment::rvalue): Correctly handle |
|
2552 return value and printing for operators other than `='. |
|
2553 (tree_multi_assignment::rvalue): Likewise. |
|
2554 |
|
2555 * pt-assign.h (tree_multi_assignment::etype): New data member. |
|
2556 * pt-assign.cc (tree_multi_assignment::rvalue): Use it instead of |
|
2557 assuming `='. |
|
2558 (tree_multi_assignment::oper): New function. |
|
2559 * pt-pr-code.cc (tree_print_code::visit_multi_assignment): Use |
|
2560 it instead of always printing `='. |
|
2561 * parse.y (make_assign_op): Pass expression type to |
|
2562 tree_multi_assignment constructor. |
|
2563 |
3206
|
2564 * Makefile.in (stmp-pic): New target. |
|
2565 ($(PICOBJ)): Depend on stmp-pic, not pic. |
|
2566 (clean): Delete stmp-pic. |
|
2567 |
|
2568 Sun Nov 1 23:24:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2569 |
|
2570 * mappers.cc (install_mapper_functions): Add alias for isfinite. |
|
2571 |
|
2572 Sat Oct 31 08:46:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2573 |
|
2574 * data.cc (Fisnumeric): New function. |
|
2575 |
3203
|
2576 Fri Oct 30 08:39:30 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2577 |
3205
|
2578 * oct-lvalue.cc (octave_lvalue::do_unary_op): Make it work for |
|
2579 indexed ops too. |
|
2580 * ov.cc (octave_value::unary_op_to_assign_op): New function. |
|
2581 (octave_value::do_non_const_unary_op): New function for indexed ops. |
|
2582 |
3204
|
2583 * parse.y (LEFTDIV_EQ, ELEFTDIV_EQ): New tokens. |
|
2584 (assign_expr): Add rules for them. |
|
2585 (make_assign_op): Handle them here too. |
|
2586 * lex.l: Recognize them. |
|
2587 * ov.h (octave_value::assign_op): Add ldiv_eq and el_ldiv_eq. |
|
2588 * ov.cc (octave_value::assign_op_as_string): Ditto. |
|
2589 (octave_value::op_eq_to_binary_op): Ditto. |
|
2590 (octave_value::assign): Handle OP= style operators with brute force. |
|
2591 (octave_value::simple_assign): New function. |
|
2592 |
3203
|
2593 * parse.y (matrix): Dont' forget to reset |
|
2594 lexer_flags.looking_at_matrix_or_assign_lhs. |
|
2595 |
|
2596 * oct-lvalue.cc (octave_lvalue::assign): Don't call change |
|
2597 function if error occurs. |
|
2598 (octave_lvalue::do_unary_op): If we have an index, fail with message. |
|
2599 |
3202
|
2600 Thu Oct 29 09:27:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2601 |
3203
|
2602 * ov.cc (do_binary_op): Protect against invalid type conversions. |
|
2603 (try_assignment_with_conversion): Likewise. |
|
2604 (do_unary_op): Likewise. |
|
2605 |
|
2606 * ov.h (OV_UNOP_FN, OV_UNOP_OP, OV_UNOP_FN_OP): New macros. |
|
2607 Use them to define not, uminus, transpose, hermitian functions |
|
2608 and operators ! and -. |
|
2609 (OV_BINOP_FN, OV_BINOP_OP, OV_BINOP_FN_OP): New macros. |
|
2610 Use them to define add, sub, mul, div, pow, ldiv, lshift, rshift, |
|
2611 lt, le, eq, ge, gt, ne, el_mul, el_div, el_pow, el_ldiv, el_and, |
|
2612 el_or, struct_ref, functions and operators <, <=, ==, >=, >, !=, |
|
2613 +, -, *, and /. |
|
2614 |
|
2615 * ops.h (CONVDECLX): New macro. |
|
2616 * ov-base.cc (matrix_conv, complex_matrix_conv, string_conv): |
|
2617 Use it to declare these functions. |
|
2618 |
|
2619 * ops.h (CONVDECL, INSTALL_WIDENOP): |
|
2620 Prefix function name with `oct_conv_'. |
|
2621 (INSTALL_BINOP, BINOPDECL): Prefix function name with `oct_binop_'. |
|
2622 (INSTALL_ASSIGNOP, INSTALL_ASSIGNANYOP, ASSIGNOPDECL): |
|
2623 Prefix function name with `oct_assignop_'. |
|
2624 (UNOPDECL, DEFNCUNOP_METHOD, INSTALL_UNOP, INSTALL_NCUNOP): |
|
2625 Prefix function name with `oct_unop_'. |
|
2626 |
|
2627 * ov-str-mat.cc (default_numeric_conversion_function): |
|
2628 Return 0 if conversion fails. |
|
2629 |
|
2630 * parse.y (make_prefix_op, make_postfix_op): Use |
|
2631 octave_value::unary_op enum. |
|
2632 |
|
2633 * pt-unop.cc (tree_prefix_expression::rvalue): Use new unary_op |
|
2634 functions from octave_value and octave_lvalue classes. |
|
2635 (tree_prefix_expression::rvalue): Likewise. |
|
2636 |
|
2637 * pt-unop.cc (tree_unary_expression::oper): Move here. |
|
2638 (tree_prefix_expression::oper, tree_postfix_expression): From here. |
|
2639 |
|
2640 * pt-unop.h (tree_prefix_expression, tree_postfix_expression): |
|
2641 Delete enums. |
|
2642 (tree_unary_expression): Use octave_value::unary_op enum. |
|
2643 * parse.y (make_prefix_op, make_postfix_op): Likewise. |
|
2644 |
|
2645 * oct-lvalue.h (octave_lvalue::do_unary_op): New function. |
|
2646 (octave_lvalue::increment, octave_lvalue::decrement): Delete. |
|
2647 |
|
2648 * ov-typeinfo.h (octave_value_typeinfo::non_const_unary_ops): |
|
2649 New data member. |
|
2650 * ov-typeinfo.h (octave_value_typeinfo::lookup_non_const_unary_op): |
|
2651 New function. |
|
2652 * ov-typeinfo.cc (octave_value_typeinfo::register_non_const_unary_op): |
|
2653 New function. |
|
2654 (octave_value_typeinfo::do_register_non_const_unary_op): Ditto. |
|
2655 (octave_value_typeinfo::do_lookup_non_const_unary_op): Ditto. |
|
2656 |
|
2657 * ov.cc (octave_value::do_non_const_unary_op): New function. |
|
2658 |
|
2659 * Makefile.in (OP_XSRC): Add op-chm.cc and op-range.cc to the list. |
|
2660 |
|
2661 * OPERATORS/op-str-str.cc: Define string matrix unary operators here. |
|
2662 (install_str_str_ops): Install them here. |
|
2663 * ov-bool-mat.h (octave_bool_matrix::transpose, |
|
2664 octave_bool_matrix_value::hermitian): Delete. |
|
2665 |
|
2666 * OPERATORS/op-chm.cc: New file. Define char matrix unary operators. |
|
2667 (install_chm_ops): Install them here. |
|
2668 * ov-ch-mat.h (octave_char_matrix::transpose, |
|
2669 octave_char_matrix_value::hermitian): Delete. |
|
2670 * ops.cc (install_ops): Call install_chm_ops. |
|
2671 |
|
2672 * OPERATORS/op-bm-bm.cc: Define bool matrix unary operators here. |
|
2673 (install_bm_bm_ops): Install them here. |
|
2674 * ov-bool-mat.h (octave_bool_matrix::transpose, |
|
2675 octave_bool_matrix_value::hermitian): Delete. |
|
2676 |
|
2677 * ov-bool.h (octave_bool::not, octave_bool::uminus, |
|
2678 octave_bool::transpose, octave_bool::hermitian): Delete. |
|
2679 |
|
2680 * OPERATORS/op-cs-cs.cc: Define complex scalar unary operators here. |
|
2681 (install_cs_cs_ops): Install them here. |
|
2682 * ov-complex.h (octave_complex::not, octave_complex::uminus, |
|
2683 octave_complex::transpose, octave_complex::hermitian): Delete. |
|
2684 |
|
2685 * OPERATORS/op-cm-cm.cc: Define complex matrix unary operators here. |
|
2686 (install_cm_cm_ops): Install them here. |
|
2687 * ov-cx-mat.h (octave_complex_matrix::not, |
|
2688 octave_complex_matrix::uminus, octave_complex_matrix::transpose, |
|
2689 octave_complex_matrix::hermitian): Delete. |
|
2690 |
|
2691 * OPERATORS/op-m-m.cc: Define matrix unary operators here. |
|
2692 (install_m_m_ops): Install them here. |
|
2693 * ov-re-mat.h (octave_matrix::not, octave_matrix::uminus, |
|
2694 octave_matrix::transpose, octave_matrix::hermitian): Delete. |
|
2695 |
|
2696 * OPERATORS/op-range.cc: New file. Define range unary operators. |
|
2697 (install_range_ops): Install them here. |
|
2698 * ov-range.h (octave_range::not, octave_range::uminus, |
|
2699 octave_range::transpose, octave_range::hermitian): Delete. |
|
2700 * ops.cc (install_ops): Call install_range_ops. |
|
2701 |
|
2702 * OPERATORS/op-s-s.cc: Define scalar unary operators here. |
|
2703 (install_s_s_ops): Install them here. |
|
2704 * ov-scalar.h (octave_scalar::not, octave_scalar::uminus, |
|
2705 octave_scalar::transpose, octave_scalar::hermitian): Delete. |
|
2706 |
|
2707 * ops.h (INSTALL_UNOP, CAST_UNOP_ARG, UNOPDECL, DEFUNOPX, DEFUNOP, |
|
2708 DEFUNOP_OP, DEFUNOP_FN): New macros. |
|
2709 |
|
2710 * ov.h (unary_op_fcn): New typedef. |
|
2711 (octave_value::unary_op): New enum. |
|
2712 * ov.cc (octave_value::octave_value): New function. |
|
2713 |
|
2714 * ov.h (octave_value::not, octave_value::uminus, |
|
2715 octave_value::transpose, octave_value::hermitian, |
|
2716 octave_value::increment, octave_value::decrement): Delete. |
|
2717 |
|
2718 * ov-base.cc (octave_base_value::not, octave_base_value::uminus, |
|
2719 octave_base_value::transpose, octave_base_value::hermitian, |
|
2720 octave_base_value::increment, octave_base_value::decrement): Delete. |
|
2721 |
|
2722 * ov.cc (gripe_unary_op): New function. |
|
2723 (do_unary_op): New function. |
|
2724 * ov-typeinfo.h (octave_value_typeinfo::unary_ops): |
|
2725 New data member. |
|
2726 * ov-typeinfo.cc (octave_value_info::register_unary_op, |
|
2727 octave_value_info::do_register_unary_op, |
|
2728 octave_value_info::lookup_unary_op, |
|
2729 octave_value_info::do_lookup_unary_op): |
|
2730 New functions. |
|
2731 |
3202
|
2732 * ov-list.cc (Fsplice): Use new octave_value::int_value function here. |
|
2733 (octave_list::do_index_op): Likewise. |
|
2734 (octave_list::assign): Likewise. |
|
2735 * toplev.cc (Fquit): Likewise. |
|
2736 * syscalls.cc (Fwaitpid): Likewise. |
|
2737 (Ffcntl): Likewise. |
|
2738 * file-io.cc (do_fread): Likewise. |
|
2739 (do_fwrite): Likewise. |
|
2740 * data.cc (make_diag): Likewise. |
|
2741 (Fsize): Likewise. |
|
2742 (get_dimensions): Likewise. |
|
2743 (Flinspace): |
|
2744 |
|
2745 * ov-base.cc (octave_base_value::int_value): New function. |
|
2746 (octave_base_value::nint_value): Ditto. |
|
2747 * ov.h (octave_value::int_value): Ditto. |
|
2748 (octave_value::nint_value): Ditto. |
|
2749 |
|
2750 * ov-list.cc (octave_list::assign): Fix off-by-one error. |
|
2751 |
3196
|
2752 Wed Oct 28 11:01:37 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2753 |
3202
|
2754 * load-save.cc (read_mat_ascii_data): Try harder to convert file |
|
2755 name to valid variable name. |
|
2756 |
|
2757 * data.cc (Fisempty, Fis_matrix): New functions. |
|
2758 |
|
2759 * ov-str-mat.h (octave_char_matrix_str::is_matrix_type): New function. |
|
2760 |
3196
|
2761 * OPERATORS/op-list.cc: New file. |
|
2762 * Makefile.in (OP_XSRC): Add it to the list. |
|
2763 |
|
2764 * ov-list.cc (octave_list::assign): New function. |
|
2765 |
|
2766 * ov-typeinfo.h (octave_value_typeinfo::assignany_ops): |
|
2767 New data member. |
|
2768 * ov-typeinfo.cc (octave_value_info::register_assignany_op, |
|
2769 octave_value_info::do_register_assignany_op, |
|
2770 octave_value_info::lookup_assignany_op, |
|
2771 octave_value_info::do_lookup_assignany_op): |
|
2772 New functions. |
|
2773 * ov.cc (octave_value::try_assignment (octave_value::assign_op, |
|
2774 const octave_value_list&, const octave_value&)): If no assignment |
|
2775 operator for particular RHS type exists, try finding one for |
|
2776 generic octave_value as RHS type. |
|
2777 * ops.h (DEFASSIGNANYOP_FN): New macro. |
|
2778 |
|
2779 * ov-list.cc (Fsplice): New function. |
|
2780 * oct-obj.cc (octave_value_list::splice): New function. |
|
2781 |
|
2782 * ov.cc (Vresize_on_range_error): No longer static. |
|
2783 * ov.h (Vresize_on_range_error): Provide extern declaration. |
|
2784 |
|
2785 * oct-procbuf.cc (symbols_of_oct_procbuf): Don't declare static. |
|
2786 |
|
2787 * data.cc (Flength): New function. |
|
2788 * ov.h (octave_value::length): New virtual function. |
|
2789 * ov-base.cc (octave_base_value::length): New function. |
|
2790 (octave_base_value::rows, octave_base_value::columns): Move |
|
2791 definitions here, from ov-base.h. Don't return -1. Instead, |
|
2792 gripe about wrong argument type. |
|
2793 * ov-bool-mat.h (octave_bool_matrix::length): New function. |
|
2794 * ov-bool.h (octave_bool::length): Ditto. |
|
2795 * ov-ch-mat.h (octave_char_matrix::length): Ditto. |
|
2796 * ov-complex.h (octave_complex::length): Ditto. |
|
2797 * ov-cx-mat.h (octave_complex_matrix::length): Ditto. |
|
2798 * ov-list.h (octave_list::length): Ditto. |
|
2799 * ov-range.h (octave_range::length): Ditto. |
|
2800 * ov-re-mat.h (octave_matrix::length): Ditto. |
|
2801 * ov-scalar.h (octave_scalar::length): Ditto. |
|
2802 |
|
2803 Tue Oct 27 22:19:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2804 |
|
2805 * ov-list.cc (octave_list::print_raw): Handle case of empty list. |
|
2806 (octave_list::print_name_tag): Likewise. |
|
2807 |
|
2808 * octave.cc (intern_argv): Built-in variable argv is now a list of |
|
2809 strings instead of a string vector. |
|
2810 Always bind argv, making it an empty list if there are no args. |
|
2811 |
|
2812 Mon Oct 26 08:41:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2813 |
|
2814 * xdiv.cc (mx_leftdiv_conform): Explicitly declare args to be |
|
2815 passed as references to const objects. Fix explicit instantiation |
|
2816 requests to match. |
|
2817 (mx_div_conform): Likewise. |
|
2818 |
|
2819 * pt-unop.h (tree_prefix_expression): Reorder constructor args to |
|
2820 put those with default values last. |
|
2821 (tree_postfix_expression): Likewise. |
|
2822 * parse.y: Change all callers. |
|
2823 |
3192
|
2824 Fri Oct 23 12:07:32 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2825 |
3196
|
2826 * utils.cc (Ffile_in_loadpath): New function. |
|
2827 |
|
2828 * defaults.cc (Vload_path, Vdefault_load_path): Now static. |
|
2829 |
|
2830 * help.cc (simple_help): Use Vload_path_dir_path here instead of |
|
2831 trying to reconstruct it from Vload_path. |
|
2832 * fn-cache.cc (octave_fcn_file_name_cache::do_list): Likewise. |
|
2833 (octave_fcn_file_name_cache::update): Likewise. |
|
2834 |
|
2835 * defaults.cc (octave_loadpath): Construct Vload_path_dir_path |
|
2836 using Vdefault_load_path. |
|
2837 (set_default_path): Likewise. |
|
2838 |
|
2839 * defaults.h, defaults.cc (maybe_add_default_load_path): Delete. |
|
2840 |
3192
|
2841 * defaults.cc (Vdefault_load_path): New static variable. |
|
2842 (set_default_path): Set it. |
|
2843 (maybe_add_default_load_path): Use it. |
|
2844 (symbols_of_defaults): Add DEFCONST for DEFAULT_LOADPATH. |
|
2845 Thanks to Rafael Laboissiere <rafael@icp.inpg.fr>. |
|
2846 |
|
2847 * defaults.cc (set_default_path): If OCTAVE_PATH is set in the |
|
2848 environment, call maybe_add_default_load_path on it. |
|
2849 |
|
2850 Tue Oct 20 20:58:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2851 |
|
2852 * defaults.cc (maybe_add_default_load_path): If LOADPATH contains |
|
2853 an embedded "::", insert the default path there too. |
|
2854 |
3189
|
2855 Fri Oct 16 00:52:15 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2856 |
|
2857 * parse.y (in_matrix_or_assign_lhs): New subroutine for lexical |
|
2858 feedback. |
|
2859 (matrix): Use it. |
|
2860 (assign_lhs): Ditto. |
|
2861 * lex.h (lexical_feedback::looking_at_matrix_or_assign_lhs): New |
|
2862 data member. |
|
2863 * lex.l (handle_identifier): Use it to handle keywords like `cd' |
|
2864 as variables in contexts like [ab, cd] = foo (). |
|
2865 |
|
2866 * ov-str-mat.h |
|
2867 (octave_char_matrix_str::octave_char_matrix_str (char c)): |
|
2868 New constructor. |
|
2869 * ov-ch-mat.h (octave_char_matrix::octave_char_matrix (char c)): |
|
2870 New constructor. |
|
2871 * ov.cc (octave_value::octave_value (char c): New constructor. |
|
2872 |
|
2873 * pt-loop.cc (tree_simple_for_command::eval): Handle case of RHS |
|
2874 as string. |
|
2875 |
|
2876 Thu Oct 15 00:56:47 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2877 |
|
2878 * DLD-FUNCTIONS/rand.cc: Declare Fortran subroutines as returning |
|
2879 int, not int*. |
|
2880 |
|
2881 Wed Oct 14 23:51:31 1998 Georg Thimm <thimm@idiap.ch> |
|
2882 |
|
2883 * load-save.cc (Vcrash_dumps_octave_core): New static variable. |
|
2884 (save_user_variables): Only save variables if |
|
2885 Vcrash_dumps_octave_core is true. |
|
2886 (symbols_of_load_save): Add DEFVAR for it here. |
|
2887 (crash_dumps_octave_core): New function. |
|
2888 * octave.cc (maximum_braindamage): Bind crash_dumps_octave_core to |
|
2889 0.0 here. |
|
2890 |
|
2891 Tue Oct 13 22:05:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2892 |
|
2893 * input.cc (read_readline_init_file): New function. |
|
2894 |
|
2895 Thu Oct 8 13:47:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2896 |
|
2897 * oct-procbuf.h (octave_procbuf::wstatus): New data member. |
|
2898 Initialize in constructors. |
|
2899 (octave_procbuf::wait_status): New member function. |
|
2900 * oct-procbuf.cc (octave_procbuf::sys_close): Use class data |
|
2901 member wstatus, not local variable. |
|
2902 * procstream.cc (procstreambase::close): Don't call sys_close directly. |
|
2903 Get subprocess exit status by calling wait_status for our procbuf. |
|
2904 * pt-plot.cc (close_plot_stream): Send "quit" command to gnuplot |
|
2905 before deleting plot_stream. |
|
2906 |
|
2907 |
|
2908 Thu Oct 1 22:39:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2909 |
|
2910 * data.cc (Fis_complex): New function. |
|
2911 |
3185
|
2912 Fri Sep 25 11:50:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2913 |
|
2914 * load-save.cc (write_header): Rename from write_binary_header. |
|
2915 Also write header for Octave ASCII files. |
|
2916 |
|
2917 * load-save.cc (Fsave): Implement -append option. |
|
2918 |
|
2919 * defaults.cc (Frehash): New function. |
|
2920 |
|
2921 Fri Sep 25 11:50:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2922 |
|
2923 * help.cc (help_from_info): Improve error message in case that |
|
2924 info doesn't work. |
|
2925 |
3180
|
2926 Thu Sep 24 10:48:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2927 |
3185
|
2928 * Makefile.in (DLD_XSRC): Replace qzval.cc with qz.cc |
|
2929 |
|
2930 * DLD-FUNCTIONS/balance.cc: Update from A. S. Hodel |
|
2931 <scotte@eng.auburn.edu>. |
|
2932 |
|
2933 * DLD-FUNCTIONS/qz.cc: New file. |
|
2934 |
|
2935 * DLD-FUNCTIONS/qzval.cc: Delete. |
|
2936 |
3180
|
2937 * parse.y (plot_command1): Don't allow it to be empty. |
|
2938 (plot_command): Handle simple `PLOT' and `PLOT ranges' as special |
|
2939 cases here. |
|
2940 |
|
2941 Wed Sep 23 21:10:08 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2942 |
|
2943 * lex.l: Change <MATRIX>{SNLCMT}*\n{SNLCMT}* pattern |
|
2944 to <MATRIX>{S}*{COMMENT}{SNLCMT}* | <MATRIX>{S}*{NL}{SNLCMT}*. |
|
2945 |
|
2946 Fri Sep 4 10:50:00 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2947 |
|
2948 * file-io.cc (Ffwrite): Fix doc string. |
|
2949 |
|
2950 Wed Sep 2 16:22:23 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2951 |
|
2952 * input.cc (match_sans_spaces): Make it work. |
|
2953 |
|
2954 * toplev.cc (quit): Require nargout == 0. |
|
2955 |
|
2956 * input.cc (get_user_input): Only try matching "exit", "quit", and |
|
2957 "return" if debugging. |
|
2958 |
|
2959 Tue Sep 1 12:50:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2960 |
|
2961 * octave.cc: Use -H as single character equivalent of --no-history. |
|
2962 |
|
2963 Sat Aug 29 12:23:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2964 |
|
2965 * oct-obj.cc (octave_value_list::make_argv): If some values are |
|
2966 string vectors, insert all the elements, not just the first. |
|
2967 |
|
2968 Tue Aug 18 16:39:50 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2969 |
|
2970 * oct-stream.cc (octave_base_stream::do_gets): Accept last line of |
|
2971 file even if it doesn't end in a newline character. |
|
2972 |
|
2973 Tue Aug 18 16:25:49 1998 Mumit Khan <khan@xraylith.wisc.edu> |
|
2974 |
|
2975 * xdiv.cc (mx_leftdiv_conform, mx_div_conform): Instantiate correct |
|
2976 templates. |
|
2977 |
|
2978 Thu Jul 30 00:37:43 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2979 |
|
2980 * pt-loop.cc (tree_for_command::eval): Check for range first. |
|
2981 If error occurs when extracting matrix value, return early. |
|
2982 Don't bother to check for string type. |
|
2983 |
|
2984 * ov-ch-mat.h (octave_char_matrix::is_real_matrix): New function. |
|
2985 |
|
2986 Tue Jun 23 15:09:54 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2987 |
|
2988 * parse.y (clear_current_script_file_name): New function. |
|
2989 (parse_fcn_file): Bind current_script_file_name while script is |
|
2990 executing. Use unwind_protect to clear it once the script is |
|
2991 finished. |
|
2992 |
|
2993 * pt-plot.cc (Fgraw): New function. |
|
2994 |
3178
|
2995 Mon Jun 22 22:13:38 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2996 |
|
2997 * variables.cc (is_valid_function): Provide version that takes |
|
2998 function name as string. |
|
2999 |
|
3000 * parse.y (binary_expr): Fix thinko that resulted in incorrect |
|
3001 evaluation of -x^y. Thanks to Richard Allan Holcombe |
|
3002 <raholcom@unity.ncsu.edu>. |
|
3003 (feval): Don't attempt to copy nonexistent arg names. |
|
3004 |
|
3005 Mon Jun 22 21:35:50 1998 Richard Allan Holcombe <raholcom@unity.ncsu.edu> |
|
3006 |
|
3007 * xpow.cc (xpow): Improve efficiency for matrix^(scalar int) case. |
|
3008 |
|
3009 Thu Jun 4 12:42:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3010 |
|
3011 * ov-usr-fcn.cc (octave_user_function::octave_all_va_args): |
|
3012 If num_args_passed < num_named_args, create zero length list. |
|
3013 |
3176
|
3014 Thu May 14 16:23:15 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3015 |
|
3016 * DLD-FUNCTIONS/getrusage.cc: Include sys/types.h too. |
|
3017 |
|
3018 Mon May 11 00:38:45 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3019 |
|
3020 * pager.cc (Fdiary): Don't forget to set write_to_diary file if |
|
3021 just given a file name. |
|
3022 |
|
3023 * input.cc (octave_gets): Only send new line character to |
|
3024 octave_diary if current_input_line is empty or doesn't already end |
|
3025 with a new line character.. |
|
3026 Don't send input from function files or scripts to octave_diary. |
|
3027 |
3174
|
3028 Sun May 3 19:54:38 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3029 |
|
3030 * lex.l (reset_parser): Also call yyrestart if forced_interactive |
|
3031 is true, but not if input_from_startup_file is true. |
|
3032 |
|
3033 Tue Apr 28 14:06:20 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3034 |
|
3035 * oct-procbuf.cc (Vkluge_procbuf_delay): New static variable. |
|
3036 (kluge_procbuf_delay): New function. |
|
3037 (symbols_of_oct_procbuf): New function. |
|
3038 (octave_procbuf::open): Delay Vkluge_procbuf_delay microseconds |
|
3039 after forking. |
|
3040 |
|
3041 Thu Apr 23 15:41:08 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3042 |
|
3043 * defaults.cc (Vload_path_dir_path): New variable. |
|
3044 * utils.cc (file_in_path): Use it. |
|
3045 |
|
3046 * utils.cc (search_path_for_file): Undo previous change. |
|
3047 (file_in_path): Undo previous change. |
|
3048 * defaults.cc (loadpath): Undo previous change. Tilde expansion |
|
3049 is once again handled correctly by the code in |
|
3050 liboctave/pathsearch.cc. |
|
3051 |
|
3052 Mon Apr 20 21:50:34 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3053 |
|
3054 * data.cc (get_dimensions): Allow zeros ([], 3) to work, for |
|
3055 compatibility with Matlab. |
|
3056 |
|
3057 * dynamic-ld.cc [WITH_DL && ! HAVE_DLFCN_H]: Add declarations for |
|
3058 dlopen, dlerror, dlsym, and dlclose. |
|
3059 |
|
3060 * octave.gperf: Handle __FILE__ and __LINE__. |
|
3061 * lex.l (is_keyword): Likewise. |
|
3062 * Makefile.in (oct-gperf.h): Pass -D option to gperf. |
|
3063 Postprocess output of gperf to convert name of static variable |
|
3064 from lookup to gperf_lookup, to avoid conflict with our function |
|
3065 of the same name defined in variables.cc. |
|
3066 |
3168
|
3067 Sat Apr 18 20:17:10 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3068 |
|
3069 * help.cc (USE_GNU_INFO): Delete uses of this macro. |
|
3070 |
3167
|
3071 Thu Apr 16 01:00:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3072 |
|
3073 * dynamic-ld.cc: Only include dlfcn.h if HAVE_DLFCN_H. |
|
3074 |
3165
|
3075 Wed Apr 15 01:03:05 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3076 |
|
3077 * input.cc (Vlast_prompt_time): New global variable. |
|
3078 (octave_gets): Set it. |
3166
|
3079 * ov-fcn.h (octave_function::time_checked): New virtual function |
|
3080 (octave_function::mark_fcn_file_up_to_date): Ditto. |
3165
|
3081 * ov-usr-fcn.h (octave_user_function::time_checked): New function. |
|
3082 (octave_user_function::mark_fcn_file_up_to_date): Ditto. |
|
3083 (octave_user_function::t_checked): New data member. |
|
3084 * variables.cc (symbol_out_of_date): Only check file time stamp if |
|
3085 a prompt has been printed since the last time check. |
|
3086 |
|
3087 * pt-plot.h, pt-plot.cc (subplot_axes): New class. |
|
3088 (subplot): Handle axes. |
|
3089 (Vgnuplot_command_axes): New static variable. |
|
3090 (gnuplot_command_axes): New function. |
|
3091 (symbols_of_pt_plot): DEFVAR gnuplot_command_axes. |
|
3092 * pt-walk.h (tree_walker::visit_subplot_axes): New virtual function. |
|
3093 * parse.y (plot_options): Handle axes. |
|
3094 * lex.l (plot_axes_token): New function. |
|
3095 (is_keyword): Use it. |
|
3096 (is_plot_keyword): Recognize "axes" and "axis". |
|
3097 * lex.h (class lexical_feedback): New field, in_plot_axes. |
|
3098 (lexical_feedback::init): Reset it. |
|
3099 |
|
3100 Tue Apr 14 23:32:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3101 |
|
3102 * parse.y (parse_fcn_file): New arg, force_script. Change callers. |
|
3103 |
3164
|
3104 Fri Apr 10 11:01:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3105 |
|
3106 * help.cc (type): Also print values of variables. |
|
3107 |
3162
|
3108 Wed Apr 8 01:00:58 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3109 |
3164
|
3110 * pr-output.cc (set_format): Set scale to 1.0 if all elements are |
|
3111 int or inf or nan. |
|
3112 |
3162
|
3113 * parse.y (Vwarn_future_time_stamp): New variable. |
|
3114 (symbols_of_parse): Add DEFVAR for it. |
|
3115 (warn_future_time_stamp): New function. |
|
3116 (frob_function_def): Maybe warn about files with future time stamps. |
|
3117 |
|
3118 Thu Apr 2 20:43:45 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3119 |
|
3120 * pt-arg-list.cc (tree_argument_list::convert_to_const_vector): In |
|
3121 error messages, print element numbers starting with 1, not 0. |
|
3122 |
|
3123 Sat Mar 28 15:25:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3124 |
|
3125 * toplev.cc (clean_up_for_exit): New function. |
|
3126 (clean_up_and_exit): Use it. |
|
3127 * sighandlers.cc (my_friendly_exit): Call it instead of |
|
3128 clean_up_and_exit, then do default action for signal. |
|
3129 |
|
3130 * sighandlers.cc (octave_new_handler): Call my_friendly_exit with |
|
3131 signal set to SIGABRT if it is defined, or -1 otherwise. |
|
3132 |
|
3133 * error.cc (verror): Fix thinko in attempt to skip `error: ' tag |
|
3134 when buffering error messages. |
|
3135 * pt-except.cc (tree_try_catch::eval): Reset buffer_error_messages |
|
3136 here if just discarding unwind_protect frame. |
|
3137 |
|
3138 Wed Mar 18 12:35:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3139 |
|
3140 * xpow.cc (elem_xpow): For real-scalar .^ matrix case, result is |
|
3141 complex only if real-scalar is negative and matrix has some |
|
3142 non-integer values. |
|
3143 |
|
3144 Tue Mar 17 17:47:50 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3145 |
|
3146 * pt-plot.cc (Vgnuplot_command_plot, Vgnuplot_command_replot, |
|
3147 Vgnuplot_command_splot, Vgnuplot_command_using, |
|
3148 Vgnuplot_command_with, Vgnuplot_command_title, |
|
3149 Vgnuplot_command_end): New static variables. |
|
3150 (symbols_of_pt_plot): DEFVAR them. |
|
3151 (gnuplot_command_plot, gnuplot_command_replot, |
|
3152 gnuplot_command_splot, gnuplot_command_using, |
|
3153 gnuplot_command_with, gnuplot_command_title, |
|
3154 gnuplot_command_end): New functions. |
|
3155 (open_plot_stream, send_to_plot_stream, tree_plot_command::eval, |
|
3156 subplot_using::print, subplot_style::print, subplot::print, |
|
3157 do_external_plotter_cd, Fgset, Fgshow): Use them instead of the |
|
3158 GPLOT_CMD_PLOT, GPLOT_CMD_REPLOT, GPLOT_CMD_SPLOT, |
|
3159 GPLOT_CMD_USING, GPLOT_CMD_WITH, GPLOT_CMD_TITLE, and |
|
3160 GPLOT_CMD_END macros. |
|
3161 |
3160
|
3162 Fri Feb 27 12:25:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3163 |
|
3164 * help.cc (additional_help_message): Fix www address. |
|
3165 |
|
3166 Tue Feb 24 00:42:59 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3167 |
|
3168 * help.cc (simple_help): Put additional help message first. |
|
3169 (additional_help_message): Add information about web site and |
|
3170 mailing list. |
|
3171 |
3156
|
3172 Fri Feb 20 00:41:06 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3173 |
|
3174 * pt-plot.cc (GPLOT_CMD_REPLOT): Clear before replot. |
|
3175 |
|
3176 * Makefile.in: Better handling of lib flags for linking. |
|
3177 |
|
3178 Thu Feb 19 21:14:30 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3179 |
|
3180 * pt-decl.cc (Vinitialize_global_values): New static variable. |
|
3181 (initialize_global_variables): New function. |
|
3182 (symbols_of_pt_decl): New function. |
|
3183 DEFVAR Vinitialize_global_values and initialize_global_variables. |
|
3184 (tree_global_command::do_init): If initialize_global_variables is |
|
3185 not true and the variable doesn't have an explicit initializer, don't |
|
3186 initialize it. If we are giving it a default value, use the value |
|
3187 of the variable defualt_global_variable_value. |
|
3188 * octave.cc (maximum_braindamage): Set default_global_variable_value |
|
3189 and initialize_global_variables to Matlab-compatible values. |
|
3190 |
|
3191 Wed Feb 18 04:35:31 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3192 |
|
3193 * DLD-FUNCTIONS/besselj.cc: Rename from bessel.cc. |
|
3194 * Makefile.in (DLD_XSRC): Likewise. |
|
3195 |
|
3196 * syscalls.cc (Fvfork): Delete. |
|
3197 |
|
3198 * oct-procbuf.cc: Just use fork. |
|
3199 |
|
3200 * parse.y (feval): Provide version that takes function name |
|
3201 separate from other args. |
|
3202 * parse.h: Declare it. |
|
3203 |
|
3204 * oct-procbuf.cc (octave_procbuf::open): Move declaration of |
|
3205 child_std_end outside of child scope and declare volatile. |
|
3206 |
|
3207 Mon Feb 16 15:04:28 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3208 |
|
3209 * parse.y: Include cstdio, for SEEK_SET. |
|
3210 |
3153
|
3211 Thu Feb 12 22:07:00 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3212 |
|
3213 * system.c: New file. |
|
3214 * Makefile.in (SOURCES): Add it to the list. |
|
3215 |
3148
|
3216 Fri Feb 6 01:23:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3217 |
|
3218 * oct-stream.cc (octave_base_stream::file_number): Rename from fileno. |
|
3219 Change all uses. |
|
3220 |
|
3221 * fsolve.cc (fsolve_option_table): Add missing & to function names. |
|
3222 |
3145
|
3223 Thu Feb 5 02:27:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3224 |
3147
|
3225 * dirfns.cc (Fls): If first attempt at reading process output |
|
3226 fails, sleep once and try again. |
|
3227 * toplev.cc (run_command_and_return_output): Likewise. |
|
3228 |
|
3229 * oct-procbuf.cc (octave_procbuf::open): Use vfork if it is available. |
|
3230 |
|
3231 * syscalls.cc (Fvfork): New function. |
|
3232 |
3145
|
3233 * ov-bool-mat.cc: Only declare assign function if |
|
3234 CXX_NEW_FRIEND_TEMPLATE_DECL is not defined. |
|
3235 |
|
3236 * ov-base.h, ov-bool-mat.h, ov-bool.h, ov-ch-mat.h, ov-complex.h, |
|
3237 ov-cx-mat.h, ov-range.h, ov-re-mat.h, ov-scalar.h: Handle default |
|
3238 args for *_value functions consistently. |
|
3239 |
|
3240 * symtab.cc (maybe_list_cmp_fcn): Declare args as void*, not |
|
3241 void**, then use X_CAST. |
|
3242 |
|
3243 * OPERATORS/op-s-cm.cc: Include mx-cm-s.h. |
|
3244 |
|
3245 * defun-int.h: Include ov-builtin.h, ov-mapper.h, and symtab.h. |
|
3246 (install_builtin_mapper, install_builtin_function, |
|
3247 install_builtin_variable) Use specific types rather than void * in |
|
3248 declaration. |
|
3249 * defun.cc (install_builtin_mapper, install_builtin_function, |
|
3250 install_builtin_variable): Likewise. Eliminate casts. |
|
3251 |
|
3252 * load-save.cc (read_binary_data, read_mat_file_header, |
|
3253 save_binary_data): Use X_CAST, not static_cast. |
|
3254 * unwind-prot.h (unwind_protect::save_ptr): Likewise. |
|
3255 * Map.cc (goodCHptr, index_to_CHptr, CHptr_to_index): Likewise. |
|
3256 * dynamic-ld.cc (octave_dlopen_dynamic_loder::resolve_reference): |
|
3257 Likewise. |
|
3258 |
|
3259 * pt-mat.cc (tm_const::operator bool ()): |
|
3260 (tm_row_const::operator bool ()): Likewise. |
|
3261 * oct-stream.cc (printf_value_cache::operator bool ()): Likewise. |
|
3262 (scanf_format_list::operator bool ()): Likewise. |
|
3263 (printf_format_list::operator bool ()): Likewise. |
|
3264 (octave_stream::operator bool ()): Likewise. |
|
3265 |
|
3266 Wed Feb 4 13:08:29 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3267 |
|
3268 * DLD-FUNCTIONS/minmax.cc: Include cmath, not oct-math.h. |
|
3269 |
|
3270 * syscalls.cc (Fdup2): Convert stream to actual system file id. |
|
3271 |
|
3272 * oct-stream.cc (octave_base_stream::fileno, octave_stream::fileno): |
|
3273 New functions. |
|
3274 |
3141
|
3275 Tue Feb 3 00:24:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3276 |
|
3277 * defaults.cc (exec_path): Append Vbin_dir to std_path. |
|
3278 |
|
3279 * octave.cc (initialize_pathsearch): Set TEXMFDBS, not TEXMF. |
|
3280 Look for OCTAVE_DB_PATH in environment. |
|
3281 Simplify using Vdata_dir and Vlibexec_dir. |
|
3282 |
|
3283 * defaults.h.in (Vdata_dir, Vlibexecdir): Declare new vars. |
|
3284 defaults.cc: Define them. |
|
3285 (set_default_data_dir, set_default_libexecdir): New functions. |
|
3286 (install_defaults): Call them. |
|
3287 |
|
3288 * defaults.h.in (OCTAVE_LIBEXECDIR): Define. |
|
3289 |
|
3290 Mon Feb 2 02:43:16 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3291 |
|
3292 * Makefile.in (install, uninstall): Use $(octlibdir), not $(libdir). |
|
3293 Use mk-libdir-link. |
|
3294 |
|
3295 * defaults.h.in (OCTAVE_OCTLIBDIR): Substitute value. |
|
3296 (Vlib_dir): Delete declaration. |
|
3297 * defaults.cc (Vlib_dir): Delete. |
|
3298 (set_default_lib_dir): Delete. |
|
3299 (install_defaults): Don't call set_default_lib_dir. |
|
3300 (set_default_info_prog): If oct_info_prog is empty, set default to |
|
3301 "info" -- we expect it to be somewhere in the user's path. |
|
3302 |
|
3303 * defun.h (DEFCONST, DEFCONSTX): Eliminate inst_as_fcn and chg_fcn |
|
3304 args. Always pass true for inst_as_fcn and 0 for chg_fcn to |
|
3305 DEFVAR when creating built-in values like `e' or `stderr' that can |
|
3306 be redefined. Change all uses. |
|
3307 |
|
3308 * help.cc (Ftype): Handle script files too. |
|
3309 (Fwhich): Likewise. |
|
3310 |
3136
|
3311 Sat Jan 31 00:00:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3312 |
|
3313 * ov-ch-mat.cc (octave_char_matrix::is_true): Make it work. |
|
3314 * ov-str-mat.h, ov-str-mat.cc (octave_char_matrix_str::is_true): |
|
3315 Delete. |
|
3316 |
|
3317 * load-save.cc (read_ascii_data): Allow strings of length 0. |
|
3318 If we don't find data on the first call, fail with error message. |
|
3319 (do_load): Pass count of items read to read_ascii_data. |
|
3320 Allow `load foo xyz' to work when foo contains only numbers. |
|
3321 |
|
3322 Fri Jan 30 23:46:42 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3323 |
|
3324 * ov-str-mat.h (octave_char_matrix_str::all): Delete. |
|
3325 (octave_char_matrix_str::any): Delete. |
|
3326 * ov-ch-mat.h (octave_char_matrix::all, octave_char_matrix::any): |
|
3327 Call charMatrix::all, charMatrix::any. |
|
3328 |
|
3329 Thu Jan 29 16:25:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3330 |
|
3331 * load-save.cc (read_mat_binary_data): Handle third digit of MOPT |
|
3332 as flag indicating row or column major ordering. |
|
3333 |
3131
|
3334 Wed Jan 28 00:18:17 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3335 |
|
3336 * DLD-FUNCTIONS/dassl.cc (lsode_option_table): |
|
3337 Add missing & to function names. |
|
3338 * DLD-FUNCTIONS/lsode.cc (lsode_option_table): Likewise. |
|
3339 * DLD-FUNCTIONS/quad.cc (quad_option_table): Likewise. |
|
3340 |
|
3341 * Makefile.in (oct-gperf.h): Add -G option to gperf. |
|
3342 |
|
3343 * load-save.cc (get_save_type): Add `UL' and `L' suffixes to large |
|
3344 constant values. For LS_INT, use <= and >= for comparison. |
|
3345 |
|
3346 Mon Jan 26 13:17:59 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3347 |
|
3348 * ov-usr-fcn.cc (Vmax_recursion_depth): New static variable. |
|
3349 (max_recursion_depth): New fucnction |
|
3350 (symbols_of_ov_usr_fcn): DEFVAR max_recursion_depth. |
|
3351 (octave_user_function::do_index_op): Check Vmax_recursion_depth. |
|
3352 |
3130
|
3353 Thu Jan 22 13:45:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3354 |
|
3355 * dynamic-ld.cc (make_dynamic_loader): Fix typo. |
|
3356 |
|
3357 Tue Jan 20 17:02:19 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3358 |
|
3359 * variables.cc (Fexist): If local symbol is undefined, check |
|
3360 global table. |
|
3361 |
|
3362 * pr-output.cc (pr_max_internal): Initial value for result is |
|
3363 -DBL_MAX, not DBL_MIN. |
|
3364 |
3125
|
3365 Thu Jan 8 11:54:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3366 |
|
3367 * xpow.cc (elem_xpow): If second arg of pow is complex, make sure |
|
3368 first arg is also complex. |
|
3369 |
|
3370 * symtab.cc (symbol_table::rename): Properly insert new item at |
|
3371 the front of the list to avoid losing the rest of the items. |
|
3372 |
|
3373 Thu Dec 11 23:30:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3374 |
|
3375 * variables.cc (Fclear): Increment index to skip -x arg. |
|
3376 |
3124
|
3377 Tue Dec 9 02:45:35 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3378 |
|
3379 * Makefile.in (INCLUDES): Don't forget Pix.h. |
|
3380 |
|
3381 * BaseSLList.cc: Don't include nonstandard libg++ header files. |
|
3382 |
3119
|
3383 Sun Nov 30 14:58:56 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3384 |
3124
|
3385 * pr-output.cc: Include cmath, not oct-math. |
|
3386 * sysdep.cc: Likewise. |
|
3387 |
3119
|
3388 * DLD-FUNCTIONS/bessel.cc: New file. |
|
3389 * Makefile.in (DLD_XSRC): Add it to the list. |
|
3390 |
3113
|
3391 Thu Nov 27 23:28:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3392 |
|
3393 * lex.l (handle_string): Constructor for string class takes |
|
3394 (size_t, char) args, not (char, size_t). |
|
3395 |
3111
|
3396 Wed Nov 26 00:39:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3397 |
|
3398 * Makefile.in (OCTAVE_LIBS): Include $(SPECIAL_MATH_LIB) just |
|
3399 ahead of -lcruft. |
|
3400 |
3110
|
3401 Thu Nov 20 15:16:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3402 |
|
3403 * octave.cc (maximum_braindamage): Bind implicit_num_to_str_ok to 1. |
|
3404 * pt-mat.cc (Vimplicit_num_to_str_ok): New static variable. |
|
3405 (implicit_num_to_str_ok): New function. |
|
3406 (symbols_of_pt_mat): DEFVAR implicit_num_to_str_ok. |
|
3407 (tm_row_const::some_str): New data member. |
|
3408 (tm_row_const::some_strings_p): New function. |
|
3409 (tm_row_const::init): Set some_str. |
|
3410 (tm_const::some_str): New data member. |
|
3411 (tm_const::some_strings_p): New function. |
|
3412 (tm_const::init): Set some_str. |
|
3413 (tree_matrix::eval): If Vimplicit_num_to_str_ok is true and some |
|
3414 of the elements are strings, force a string conversion before |
|
3415 returning. |
|
3416 |
|
3417 * parse.y (fold, finish_colon_expression, finish_matrix): |
|
3418 If an error occurs, return the original expression. |
|
3419 Use unwind_protect to restore error_state. |
|
3420 |
|
3421 * ov-ch-mat.h (octave_char_matrix::convert_to_str): Result is |
|
3422 char_matrix_str, not just char_matrix. |
|
3423 |
3107
|
3424 Wed Nov 19 02:05:40 1997 Mumit Khan <khan@dhaka.xraylith.wisc.edu> |
|
3425 |
|
3426 * DLD-FUNCTIONS/filter.cc: Don't include extern template decls if |
3109
|
3427 CXX_NEW_FRIEND_TEMPLATE_DECL is defined. |
3107
|
3428 * ov-cx-mat.cc: Likewise. |
|
3429 * ov-re-mat.cc: Likewise. |
|
3430 * ov-str-mat.cc: Likewise. |
|
3431 |
|
3432 * ov-cx-mat.h (octave_complex_matrix::decrement, |
|
3433 octave_complex_matrix): Use explicit Complex constructor. |
|
3434 |
|
3435 Wed Nov 19 00:08:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3436 |
|
3437 * pt-decl.cc (tree_global_command::do_init): Initialize global |
|
3438 values to `[]'. Only perform explicit initialization once. |
|
3439 |
3103
|
3440 Tue Nov 18 04:27:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3441 |
3105
|
3442 * pr-output.cc (Vfixed_point_format): New variable. |
|
3443 (fixed_point_format): New fucntion. |
|
3444 (symbols_of_pr_output): Add DEFVAR for fixed_point_format. |
|
3445 (set_real_matrix_format): Handle fixed point format |
|
3446 (set_complex_matrix_format): Handle fixed point format |
|
3447 (set_format): New arg, scale in Matrix, ComplexMatrix, Range versions. |
|
3448 (pr_scale_header): New function. |
|
3449 (octave_print_internal): Handle fixed point format in Matrix, |
|
3450 ComplexMatrix, and Range versions. |
|
3451 * octave.cc (maximum_braindamage): Set fixed_point_format to 1.0. |
|
3452 |
3103
|
3453 * utils.cc (do_string_escapes): Move here, from lex.l. |
|
3454 Arg is now const string& instead of char*. |
|
3455 Return new string object instead of modifying arg in place. |
|
3456 (Fdo_string_escapes): New function. |
|
3457 * lex.l (handle_string): Use new version of do_string_escapes. |
3105
|
3458 |
|
3459 * lex.l (Vbackslash_escapes): Delete. |
|
3460 (backslash_escapes): Delete. |
|
3461 (do_string_escapes): Undo previous change. |
|
3462 (eat_whitespace, eat_continuation): Undo previous change. |
|
3463 (handle_string): Undo previous change. |
|
3464 (symbols_of_lex): Undo previous change. |
|
3465 * octave.cc (maximum_braindamage): Undo previous change. |
3103
|
3466 |
3096
|
3467 Fri Nov 14 01:53:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3468 |
3100
|
3469 * parse.y (eval_string (const string&, bool, int&, int)): No |
|
3470 longer static. |
|
3471 * parse.h: Provide declaration. |
|
3472 * input.cc (get_user_input (const octave_value_list&, bool, int)): |
|
3473 New arg, nargout. Pass it to eval_string. |
|
3474 (keyboard): Pass nargout = 0 to get_user_input. |
|
3475 (input): Pass nargout to get_user_input. |
|
3476 |
3098
|
3477 * input.cc (get_user_input (const octave_value_list&, bool)): |
3100
|
3478 Return octave_value_list() if user enters `quit', `exit', or `return'. |
3098
|
3479 If debugging, let eval_string handle the printing chores and |
|
3480 reset error_state before asking for more input. |
|
3481 |
|
3482 * input.cc (Fkeyboard): Unconditionally turn on history here. |
|
3483 |
3096
|
3484 * lex.l (have_continuation, have_ellipsis_continuation): Declare |
|
3485 arg as bool, not int. Change callers. |
|
3486 |
|
3487 * lex.l (Vbackslash_escapes): New static variable. |
|
3488 (backslash_escapes): New function. |
|
3489 (do_string_escapes): Return immediately if ! Vbackslash_escapes. |
|
3490 (eat_whitespace, eat_continuation): Only call have_continuation if |
|
3491 Vbackslash_escapes. |
|
3492 (handle_string): Backslash is only special if Vbackslash_escapes. |
|
3493 (symbols_of_lex): Add DEFVAR for backslash_escapes. |
|
3494 * octave.cc (maximum_braindamage): Set backslash_escapes to 0. |
|
3495 |
3095
|
3496 Thu Nov 13 16:20:40 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3497 |
3096
|
3498 * variables.cc (Fexist): Also return 2 if NAME is a regular file |
|
3499 somewhere in the LOADPATH. |
|
3500 |
3095
|
3501 * data.cc (sumsq): Fix doc string. |
|
3502 |
|
3503 * parse.y (Fsource): Call parse_fcn_file, not parse_and_execute. |
|
3504 |
3092
|
3505 Tue Oct 7 16:51:01 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3506 |
|
3507 * defun-int.h (DEFINE_FUN_INSTALLER_FUN): Set installed to true |
|
3508 after installing the function. |
|
3509 |
3088
|
3510 Thu Sep 25 10:17:26 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3511 |
|
3512 * DLD-FUNCTIONS/filter.cc (Ffilter): Return second output value |
|
3513 even when called with only 3 arguments. |
|
3514 |
3086
|
3515 Mon Sep 22 16:44:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3516 |
|
3517 * DLD-FUNCTIONS/rand.cc (do_rand): Print error if first of two |
|
3518 args is a string but doesn't match "seed". |
3088
|
3519 (Frand, Frandn): Fix doc string. |
3086
|
3520 |
3081
|
3521 Mon Aug 25 10:42:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3522 |
|
3523 * input.cc (get_user_input): Return an empty string if the user |
|
3524 just types RET. |
|
3525 |
3079
|
3526 Thu Jul 31 22:59:04 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3527 |
|
3528 * lex.l <TEXT_FCN>: Ensure that we handle words that begin with |
|
3529 single or double quotes as strings. |
|
3530 |
3074
|
3531 Thu Jul 17 13:06:48 1997 Klaus Gebhardt <gebhardt@crunch.ikp.physik.th-darmstadt.de> |
|
3532 |
|
3533 * DLD-FUNCTIONS/rand.cc (Frand): Use F77_XFCN to call getsd, |
|
3534 setsd, setall, setcgn, dgenunf, and dgennor since they can call |
|
3535 XSTOPX. |
|
3536 |
3072
|
3537 Mon Jul 14 12:54:23 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3538 |
|
3539 * dynamic-ld.cc (octave_dynamic_loader::load_fcn_from_dot_oct_file): |
|
3540 If first attempt to load function fails, prepend and underscore |
|
3541 and try again. |
|
3542 |
|
3543 * Makefile.in (install-inc): If defaults.h, oct-conf.h, or |
|
3544 oct-gperf.h don't exist in the current directory, look in $(srcdir). |
|
3545 |
3068
|
3546 Mon Jul 7 21:14:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3547 |
|
3548 * DLD-FUNCTIONS/qr.cc (Fqr): Correctly handle nargout == 0. |
|
3549 |
3067
|
3550 Wed Jul 2 16:47:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3551 |
|
3552 * matherr.c: New file. Move matherr function here. |
|
3553 * sysdep.cc: From here. |
|
3554 * Makefile.in (DIST_SRC): Add matherr.c to the list. |
|
3555 |
|
3556 * error.cc (handle_message): Avoid bug in g++ snapshot. |
|
3557 |
3065
|
3558 Thu Jun 26 22:04:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3559 |
|
3560 * utils.cc (file_in_path): Add default load path to PATH arg if |
|
3561 it begins or ends with a colon. |
|
3562 |
3060
|
3563 Wed Jun 25 13:31:06 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3564 |
|
3565 * oct-lvalue.h (octave_lvalue::struct_elt_ref): Ensure val is unique. |
|
3566 |
|
3567 Fri Jun 20 12:33:35 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3568 |
|
3569 * toplev.cc (cmd_death_handler): New function. |
|
3570 (run_command_and_return_output): Insert pid of command in |
|
3571 octave_child_list along with pointer to cmd_death_handler so we |
|
3572 can get the exit status without having to block SIGCHLD. |
|
3573 (cleanup_iprocstream): Remove pid of command from octave_child_list. |
|
3574 |
3053
|
3575 Sun Jun 15 16:11:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3576 |
3054
|
3577 * OPERATORS/op-cs-s.cc (ldiv): Doh, v1 is complex, v2 is real. |
|
3578 |
3053
|
3579 * Makefile.in (DISTFILES): Add mkops to the list. |
|
3580 (dist): Correctly link files in DLD-FUNCTIONS, OPERATORS, and |
|
3581 TEMPLATE-INST subdirectories. |
|
3582 |
3040
|
3583 Fri Jun 6 04:30:57 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3584 |
3042
|
3585 * DLD-FUNCTIONS/npsol.cc, DLD-FUNCTIONS/qpsol.cc, |
|
3586 DLD-FUNCTIONS/fsqp.cc: Delete. |
|
3587 * Makefile.in (DLD_XSRC): Remove them from the list. |
|
3588 |
3040
|
3589 * utils.cc (search_path_for_file): New arg, do_tilde_expansion. |
|
3590 If TRUE, perform tilde expansion on path before searching. |
|
3591 (file_in_path): Call search_path_for_file with do_tilde_expansion |
|
3592 set to false, since we've already performed tilde expansion on the |
|
3593 load path. |
|
3594 |
|
3595 * defaults.cc (loadpath): Perform tilde expansion here. |
|
3596 |
3029
|
3597 Thu Jun 5 01:42:39 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3598 |
3034
|
3599 * Makefile.in: Make building of static library optional. |
3036
|
3600 (liboctave.$(SHLEXT_VER)): Add $(SONAME_FLAGS) to command. |
3034
|
3601 |
3033
|
3602 * dynamic-ld.cc (octave_shl_load_dynamic_loader::resolve_reference): |
|
3603 Call shl_findsym with type set to TYPE_UNDEFINED. |
|
3604 |
3029
|
3605 * Makefile.in (stamp-picdir): Delete. |
|
3606 (pic): New target. Don't worry so much about creating pic |
|
3607 directory only when it is really needed. |
|
3608 (stamp-interp): Delete. |
|
3609 (libraries): New target. Depend on shared library directly. |
|
3610 |
3024
|
3611 Wed Jun 4 00:09:42 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3612 |
|
3613 * octave.cc (main): Call dir_path::set_program_name here. |
|
3614 |
3021
|
3615 Tue Jun 3 16:47:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3616 |
3022
|
3617 * variables.cc (symbol_out_of_date): Make it work again. |
|
3618 |
3021
|
3619 * parse.y (parse_and_execute): Move here from toplev.cc |
|
3620 (default_eval_print_flag): Likewise. |
|
3621 (safe_fclose): Likewise. |
|
3622 (eval_string): Likewise. |
|
3623 (Fsource): Likewise. |
|
3624 (Ffeval): Likewise. |
|
3625 (feval): Likewise. |
|
3626 (Feval): Likewise. |
|
3627 (symbols_of_parse): Define default_eval_print_flag here instead of |
|
3628 in varaibles.cc. |
|
3629 (looks_like_octave_copyright): Move here from variables.cc |
|
3630 (gobble_leading_whitespace): Likeiwse. |
|
3631 (is_function_file): Likewise. |
|
3632 (restore_input_stream): Likewise. |
|
3633 (parse_fcn_file): Likewise. |
|
3634 (load_fcn_from_file): Likewise. |
|
3635 (get_help_from_file): Likewise. |
|
3636 |
|
3637 * toplev.cc (syms_of_toplev): Define argv, program_name, and |
|
3638 program_invocation_name here instead of in variables.cc. |
|
3639 |
|
3640 * parse.h (line_editing): Move here from toplev.h. Now bool, not int. |
|
3641 (reading_startup_message_printed) Likewise. |
|
3642 (input_from_startup_file): Likewise. |
|
3643 (input_from_command_line_file): Likewise. |
|
3644 |
|
3645 * load-save.cc: Use bool instead of int where appropriate. |
|
3646 |
|
3647 * input.h (enum echo_state): Move here from variables.h. |
|
3648 (Vecho_executing_commands): Likewise. Now bool, not int. |
|
3649 * input.cc (echo_executing_commands): Move here from variables.cc. |
|
3650 (symbols_of_input): Define echo_executing_commands here instead of |
|
3651 in variables.cc. |
|
3652 |
|
3653 * octave.cc (program_invocation_name): Don't define. |
|
3654 (intern_argv): Don't set program_invocation_name here. |
|
3655 (main): Call octave_env::set_program_name here, not in intern_argv. |
|
3656 |
|
3657 * toplev.cc (quitting_gracefully): Move here from octave.h and |
|
3658 make static bool instead of extern int. |
|
3659 |
|
3660 * error.cc (bind_global_error_variable, clear_global_error_variable): |
|
3661 Move here from variables.cc. |
|
3662 (symbols_of_error): Define error_text here instead of in variables.cc. |
|
3663 |
|
3664 * pager.cc (write_to_diary_file): Now bool, not int. |
|
3665 (really_flush_to_pager): Likewise. |
|
3666 (flushing_to_pager): Likewise. |
|
3667 * sighandlers.h (can_interrupt): Likewise. |
|
3668 * error.h (buffer_error_messages): Likewise. |
|
3669 * oct-hist.h (input_from_tmp_history_file, Vsaving_history): Likewise. |
|
3670 * input.h (forced_interactive): Likewise. |
|
3671 (get_input_from_eval_string): Likeiwse. |
|
3672 (reading_script_file): Likeiwse. |
|
3673 (reading_fcn_file): Likeiwse. |
|
3674 (interactive): Likewise. |
|
3675 |
|
3676 * unwind-prot.cc (saved_variable::saved_variable (bool *, bool)): |
|
3677 Set type_tag to boolean, not int. |
|
3678 |
3016
|
3679 Mon Jun 2 00:40:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3680 |
|
3681 * variables.h (Octave_builtin_fcn): Delete typedef. |
|
3682 |
|
3683 * help.cc (make_name_list): Move here from variables.cc. |
|
3684 (keyword_help, names): Now static. |
|
3685 (struct help_list): Move declaration here from help.h. |
|
3686 |
|
3687 * oct-hist.cc (Vhistory_file, Vhistory_size, Vsaving_history): |
|
3688 Move here from variables.cc. |
|
3689 (symbols_of_oct_hist): New function. |
|
3690 |
|
3691 * version.h: Protect against multiple inclusion. |
|
3692 |
|
3693 * defun.cc (check_version): New function. |
|
3694 * defun-int.h (DEFINE_FUN_INSTALLER_FUN): Use it. |
|
3695 |
|
3696 * help.h, help.cc (additional_help_message): Now extern. |
|
3697 (operator_help): Now static. |
|
3698 |
|
3699 * defun.cc (print_usage): Move here from help.cc |
|
3700 * DLD-FUNCTIONS/*.cc, data.cc, dirfns.cc, file-io.cc, input.cc, |
|
3701 load-save.cc, octave.cc, ov-list.cc, ov-typeinfo.cc, |
|
3702 ov-usr-fcn.cc, pager.cc, pr-output.cc, pt-plot.cc, strfns.cc, |
|
3703 syscalls.cc, sysdep.cc, utils.cc, toplev.cc: |
|
3704 Don't include help.h. |
|
3705 |
|
3706 * TEMPLATE-INST/Array-sym.cc: New file. |
|
3707 |
|
3708 * load-save.cc (do_load): Don't use ostream::form. |
|
3709 * pr-output.cc: Likewise, at least where it is easy to do so. |
|
3710 * oct-stream.cc: Ditto. |
|
3711 |
|
3712 * symtab.h (symbol_record::symbol_def::rows): New function. |
|
3713 (symbol_record::symbol_def::columns): Ditto. |
|
3714 (symbol_record::symbol_def::type_name): Ditto. |
|
3715 (symbol_record::rows): Ditto |
|
3716 (symbol_record::columns): Ditto |
|
3717 (symbol_record::type_name): Ditto |
|
3718 |
|
3719 * symtab.h, symtab.cc (symbol_record::hides_fcn): New function. |
|
3720 (symbol_record::hides_builtin): Ditto. |
|
3721 (symbol_record::print_symbol_info_line): Ditto. |
|
3722 (symbol_table::long_list): Delete. |
|
3723 (symbol_table::symbol_list): New function. |
|
3724 (symbol_table::maybe_list): Delete argc arg. |
|
3725 (symbol_table::name_list): Rename from symbol_table::list. |
|
3726 Change all callers. |
|
3727 |
|
3728 * symtab.h, symtab.cc (class symbol_record_info): Delete. |
|
3729 |
|
3730 * symtab.cc (matches_patterns): Use vector form of glob_match. |
|
3731 |
|
3732 Sun Jun 1 14:04:26 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3733 |
|
3734 * pt-check.h, pt-check.cc: New files, for semantic checking of |
|
3735 parse trees. |
|
3736 |
|
3737 * symtab.h (class symbol_def): Now nested in symbol_record class. |
|
3738 (enum TYPE): Move from symbol_def to symbol record class. Change |
|
3739 all uses. |
|
3740 |
|
3741 * symtab.h, symtab.cc (symbol_table::maybe_list): New function, |
|
3742 from variables.cc. Change all uses. |
|
3743 |
|
3744 * pt-idx.h (tree_identifier::lvalue_ok): New function. |
|
3745 * pt-id.h (tree_index_expression::lvalue_ok): Likewise. |
|
3746 * pt-indir.h (tree_indirect_ref::lvalue_ok): Likewise. |
|
3747 |
|
3748 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_oct_obj): Delete. |
|
3749 * pt-walk.h (tree_walker::visit_oct_obj): Delete declaration. |
|
3750 |
|
3751 * lex.h (class lexical_feedback): Delete maybe_screwed_again. |
|
3752 * lex.l (lexical_feedback::init): Don't set it. |
|
3753 |
|
3754 Fri May 30 16:07:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3755 |
|
3756 * mappers.cc: Include <cfloat> here. |
|
3757 |
|
3758 Tue May 27 10:08:43 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3759 |
|
3760 * toplev.cc (eval_string): Don't index tmp if it is empty. |
|
3761 |
|
3762 Sat May 24 00:18:41 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3763 |
|
3764 * load-save.cc (valid_identifier): Move here and make static. |
|
3765 * symtab.h, symtab.cc (valid_identifier): Delete declaration and |
|
3766 definition. |
|
3767 |
|
3768 Fri May 23 22:54:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3769 |
|
3770 * symtab.h (symbol_def::symbol_def): Use initializer list instead |
|
3771 of calling init_state. |
|
3772 (symbol_def::init_state): Delete. |
|
3773 |
|
3774 * symtab.cc (symbol_table::print_stats): New function. |
|
3775 * variables.cc (F__dump_symtab_info__): New function. |
|
3776 |
|
3777 * symtab.h, symtab.cc (symbol_table::hash): Return masked value. |
|
3778 (symbol_table::table_size): New data member. |
|
3779 (symbol_table::symbol_table): Set size of table in constructor. |
|
3780 (HASH_TABLE_SIZE): Replace uses with table_size. |
|
3781 (HASH_MASK): Delete. |
|
3782 * variables.cc (initialize_symbol_tables): Set top-level and |
|
3783 global symbol table sizes here. |
|
3784 |
2994
|
3785 Thu May 22 13:32:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3786 |
|
3787 * dynamic-ld.cc (octave_shl_load_dynamic_loader::resolve_reference): |
|
3788 Call shl_findsym with type set to TYPE_PROCEDURE. Pass the |
|
3789 address of the pointer we want to define. |
|
3790 |
2993
|
3791 Wed May 21 16:30:25 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3792 |
|
3793 * DLD-FUNCTIONS/time.cc (extract_tm): Avoid memory leak in dealing |
|
3794 with time zone. |
|
3795 |
|
3796 * Makefile.in (install-in): Use new mk-includedir-link macro. |
|
3797 (install-lib): Install in $octlibdir. Use new mk-libdir-link macro. |
|
3798 |
|
3799 Tue May 20 01:24:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3800 |
|
3801 * ov-list.cc (Flist): Rename from Fmake_list. |
|
3802 |
|
3803 Mon May 19 14:45:58 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3804 |
|
3805 * octave.cc (maximum_braindamage): Set default_eval_print_flag to 0. |
|
3806 |
|
3807 Sat May 17 16:32:23 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3808 |
|
3809 * defaults.cc (set_default_editor): Default is now Emacs, not vi. |
|
3810 |
2984
|
3811 Fri May 16 00:07:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3812 |
2991
|
3813 * pt-idx.cc (tree_index_expression::name): New function. |
|
3814 |
|
3815 * pt.cc (tree::str_print_code): New file, new convenience function. |
|
3816 * pt-arg-list.cc (tree_argument_list::get_arg_names): Use it. |
|
3817 * pt-assign.cc (tree_simple_assignment::rvalue): Likewise. |
|
3818 (tree_multi_assignment::rvalue): Likewise. |
|
3819 |
2990
|
3820 * pt-colon.h (tree_colon_expression::save_base): New data memmber. |
|
3821 (tree_colon_expression::preserve_base): New function. |
|
3822 * parse.y (finish_colon_expression): When converting to a simple |
|
3823 expression, be sure to delete the original colon expression but |
|
3824 not the base value. |
|
3825 |
|
3826 * pt-mat.cc (tree_matrix::~tree_matrix): Actually do something. |
|
3827 |
2987
|
3828 * pt-all.h: New file. |
|
3829 * parse.y, lex.l, pt-pr-code.cc: Use it. |
|
3830 |
|
3831 * pt.h: Rename from pt-base.h. |
|
3832 |
|
3833 * All parse tree classes: Add private copy constructors and |
|
3834 assignment operators to prevent copying. |
|
3835 |
|
3836 * pt-base.cc: Delete. |
|
3837 |
2985
|
3838 * unwind-prot.h, unwind-prot.cc: Make a bit more object-oriented. |
|
3839 Change all uses of unwind_protect stuff to match. |
|
3840 |
|
3841 * pt-jump.h, pt-jump.cc (breaking, continuing, returning): |
|
3842 Make these flags static members of the corresponding class. |
|
3843 Change all uses. |
|
3844 |
2984
|
3845 * pt-assign.cc (tree_simple_assignment_expression::eval, |
|
3846 tree_multi_assignment_expression::eval): Clear lvalue index here. |
|
3847 |
|
3848 * oct-lvalue.cc (octave_lvalue::assign): Don't clear index here. |
|
3849 * oct-lvalue.h (octave_lvalue::clear_index): New function. |
|
3850 (octave_lvalue::set_index): Rename from octave_lvalue::index. |
|
3851 Change all callers. |
|
3852 |
2976
|
3853 Thu May 15 11:48:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3854 |
2983
|
3855 * pt-select.h, pt-select.cc (class tree_if_command_list, |
|
3856 class tree_if_clause, class tree_switch_case_list, |
|
3857 class tree_switch_case): Move here from pt-misc.h, pt-misc.cc. |
|
3858 * pt-decl.h, pt-decl.cc (class tree_decl_init_list, |
|
3859 class tree_decl_elt): Move here from pt-mist.h, pt-misc.cc |
|
3860 |
|
3861 * pt-arg-list.h, pt-stmt.h: New files, extracted from pt-misc.h. |
|
3862 * pt-arg-list.cc, pt-stmt.cc: New files, extracted from pt-misc.cc. |
|
3863 |
|
3864 * pt-decl.h, pt-except.h, pt-jump.h, pt-loop.h, pt-select.h: |
|
3865 New files, extraced from pt-cmd.h. |
|
3866 * pt-decl.cc, pt-except.cc, pt-jump.cc, pt-loop.cc, pt-select.cc: |
|
3867 New files, extraced from pt-cmd.cc. |
|
3868 |
2980
|
3869 * pt-unop.h, pt-binop.h, pt-colon.h, pt-idx.h, pt-assign.h: |
|
3870 New files, extracted from pt-exp.h |
|
3871 * pt-unop.cc, pt-binop.cc, pt-colon.cc, pt-idx.cc, pt-assign.cc: |
|
3872 New files, extracted from pt-exp.cc |
|
3873 * pt-exp.h, pt-exp.cc: Rename from pt-exp-base.h, pt-exp-base.cc. |
|
3874 |
2979
|
3875 * oct-lvalue.h: Rename from oct-var-ref.h. Rename class from |
|
3876 octave_variable_reference to octave_lvalue. Change all uses. |
|
3877 * oct-lvalue.cc: Rename from oct-var-ref.cc. |
|
3878 |
2978
|
3879 * variables.cc (bind_ans): Only bind ans and print result if value |
|
3880 is defined. |
|
3881 |
2976
|
3882 * defun.cc: New file. Move functions for installing objects in |
|
3883 the symbol table here from variables.cc. |
|
3884 |
|
3885 * oct-obj.h, oct-obj.cc: Add custom allocator, fwiw. |
|
3886 |
|
3887 * toplev.cc (main_loop): Correctly increment command number. |
|
3888 |
|
3889 * TEMPLATE-INST/SLList-tm.cc: Don't instantiate lists of pointers |
|
3890 to tree_matrix_row objects. |
|
3891 * TEMPLATE-INST/SLList-misc.cc: Do instantiate lists of pointers |
|
3892 to tree_argument_list objects. |
|
3893 |
|
3894 * DLD-FUNCTIONS/dassl.cc: Update to use new octave_function |
|
3895 interface to user-supplied functions. |
|
3896 * DLD-FUNCTIONS/fsolve.cc: Likewise. |
|
3897 * DLD-FUNCTIONS/lsode.cc: Likewise. |
|
3898 * DLD-FUNCTIONS/npsol.cc: Likewise. |
|
3899 * DLD-FUNCTIONS/quad.cc: Likewise. |
|
3900 |
|
3901 * dynamic-ld.h, dynamic-ld.cc (builtin_fcn_installer typedef): |
|
3902 Rename from builtin_fcn. |
|
3903 (octave_dynamic_loader::load_fcn_from_dot_oct_file): |
|
3904 Simplify by using new installer function defined by DEFUN_DLD. |
|
3905 |
|
3906 * defun-dld.h (DEFUN_DLD): Use DEFINE_FUN_INSTALLER_FUN instead of |
|
3907 DEFINE_FUN_STRUCT_FUN. |
|
3908 * defun.h (DEFUN_MAPPER): Use DEFUN_MAPPER_INTERNAL. |
|
3909 * defun-int.h (DEFVAR_INTERNAL): Rename from DEFVAR_INT and move |
|
3910 here from defun.h. Change all uses. |
|
3911 (DEFUN_MAPPER_INTERNAL): New macro. |
|
3912 (DEFINE_FUN_INSTALLER_FUN): New macro to define function that the |
|
3913 dynamic loader calls to do all the work of installing a new function. |
|
3914 (DEFINE_FUN_STRUCT_FUN): Delete. |
|
3915 |
|
3916 * parse.y: Rewrite to handle more general expressions. |
|
3917 * lex.l: Corresponding changes. |
|
3918 |
|
3919 * pt-walk.h, pt-pr-code.h, pt-pr-code.cc: Cope with new parse tree |
|
3920 object structure. |
|
3921 |
|
3922 * pt-misc.cc (class tree_for_command): Split into |
|
3923 tree_simple_for_command and tree_complex_for_command classes. |
|
3924 |
|
3925 * pt-misc.h, pt-misc.cc (tree_statement::eval): Handle identifier |
|
3926 lookup and printing and binding ans here. |
|
3927 (tree_statement_list::eval): Simplify. |
|
3928 (tree_argument_list::all_elements_are_constant): New function. |
|
3929 (class tree_decl_elt): Now contains id and expr, not an assignment |
|
3930 expression. |
|
3931 |
|
3932 * pt-exp-base.h pt-exp.h pt-id.h pt-indir.h pt-mat.h pt-const.h, |
|
3933 pt-exp-base.cc pt-exp.cc pt-id.cc pt-indir.cc pt-mat.cc pt-const.cc: |
|
3934 Replace eval functions with rvalue and lvalue functions. |
|
3935 Change all uses. |
|
3936 (lvalue_ok, rvalue_ok): New functions, for future compile-time |
|
3937 semantic checks. |
|
3938 |
|
3939 * oct-var-ref.h (is_defined, is_map): New functions. |
|
3940 |
|
3941 * pt-exp.h (class tree_oct_obj): Delete. |
|
3942 |
|
3943 * variables.cc (extract_function, is_valid_function): Return |
|
3944 pointer to octave_function, not octave_symbol. |
|
3945 (link_to_global_variable): Rewrite. Handle errors in |
|
3946 symbol_record::mark_as_linked_to_global. |
|
3947 |
|
3948 * symtab.h, symtab.cc (class symbol_def, class symbol_record): |
|
3949 Symbols are now stored as octave_value objects only. |
|
3950 |
|
3951 * ov.cc (install_types): Register function types here. |
|
3952 * ov-fcn.h, ov-fcn.cc, ov-builtin.h, ov-builtin.cc, ov-mapper.h, |
|
3953 ov-mapper.cc, ov-usr-fcn.h, ov-usr-fcn.cc: New classes for |
|
3954 functions as values. |
|
3955 * ov.h (class octave_value): Don't derive from octave_symbol. |
|
3956 * oct-fcn.h, oct-fcn.cc, oct-builtin.h, oct-builtin.cc, |
|
3957 oct-mapper.h, oct-mapper.cc, oct-usr-fcn.h, oct-usr-fcn.cc, |
|
3958 oct-sym.h, oct-sym.cc: Delete. |
|
3959 |
2963
|
3960 Sun May 11 17:51:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3961 |
|
3962 * help.cc (Ftype): Make it work again for functions. |
|
3963 |
|
3964 * pt-pr-code.cc (tree_print_code::print_parens): New function. |
|
3965 Use it in other tree_print_code functions to handle printing all |
|
3966 the parens that we found when parsing the expression, not just one |
|
3967 pair. |
|
3968 * pt-exp-base.h (tree_expression::paren_count): Rename from |
|
3969 is_in_parens. |
|
3970 * parse.y (maybe_warn_assign_as_truth_value): Use new name. |
|
3971 |
|
3972 * parse.y (constant): New non-terminal. |
|
3973 (simple_expr1): Use it. |
|
3974 |
|
3975 * parse.y (make_unary_op): Delete. |
|
3976 (simple_expr1): Where appropriate, use make_prefix_op and |
|
3977 make_postfix_op instead of make_unary_op. Allow increment and |
|
3978 decrement ops to work on expressions, not just identifiers. |
|
3979 (make_prefix_op, make_postfix_op): Arg is expression, not identifier. |
|
3980 Handle old unary_op cases too. |
|
3981 (fold (tree_unary_expression *)): Delete. |
|
3982 * pt-exp.h, pt-exp.cc (tree_prefix_expression::eval): Handle unary |
|
3983 minus and not here. |
|
3984 (tree_postfix_expression::eval): Likewise, for transpose and hermitian. |
|
3985 (class tree_prefix_expression, class tree_postfix_expression): |
|
3986 Derive from tree_unary_expression. Delete identifier member. |
|
3987 Delete ident member function. |
|
3988 (tree_unary_expression): Don't handle evaluation here. |
|
3989 * pt-exp-base.h (mark_in_parens): No longer virtual. Return this. |
|
3990 (reference): New virtual function. |
|
3991 (class tree_expression): Don't handle expression type here. |
|
3992 * pt-mvr-base.h (tree_multi_val_ret::tree_multi_val_ret): Likewise. |
|
3993 * pt-mvr.h, pt-mvr.cc (tree_multi_assignment_expression): Likewise. |
|
3994 * pt-walk.h (visit_unary_expression): Delete declaration. |
|
3995 * pt-pr-code.h, pt-pr-code.cc (visit_unary_expression): Delete. |
|
3996 (visit_prefix_expression): Use operand(), not ident(). |
|
3997 new, visit_postfix_expression): |
|
3998 * pt-id.h, pt-id.cc (increment, decrement): Delete. |
|
3999 |
|
4000 * pt-misc.cc (tree_parameter_list::define_from_arg_vector): Get a |
|
4001 reference to each element and use the assignment operator instead |
|
4002 of tree_identifier::define. |
|
4003 * pt-id.h, pt-id.cc (tree_identifier::define): Delete versions |
|
4004 that take octave_value and octave_symbol args. |
|
4005 |
|
4006 Sat May 10 23:32:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4007 |
|
4008 * pt-indir.h, pt-indir.cc (tree_indirect_reference::value): Delete. |
|
4009 |
|
4010 * oct-var-ref.cc (octave_variable_ref::assign): Clear idx after |
|
4011 assignment. |
|
4012 |
2976
|
4013 * octave_value classes: Add is_constant, is_function, and |
|
4014 function_value functions. |
|
4015 |
2963
|
4016 * ov.h, ov.cc (assign): Return void, not reference to octave_value. |
|
4017 (do_index_op): Rename, from index. |
|
4018 (do_struct_elt_index_op): Rename, from struct_elt_val. |
|
4019 Add version that accepts index arg. |
|
4020 Change all uses and derived classes to match. |
|
4021 * pt-const.h (index): Delete. |
|
4022 * oct-var-ref.h, oct-var-ref.cc (value): Handle indexed structure |
|
4023 ops here too. |
|
4024 |
2949
|
4025 Fri May 9 07:40:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4026 |
2958
|
4027 * pt-exp.cc (print_rhs_assign_val, symbols_of_pt_exp): New functions. |
|
4028 (Vprint_rhs_assign_val): New static variable. |
|
4029 (tree_simple_assignment_expression::eval): Use it to optionally |
|
4030 allow the rhs (which is the result) of an assignment to be printed |
|
4031 instead of the left. |
|
4032 |
2955
|
4033 * pt-exp.cc (tree_simple_assignment_expression::eval): Use new |
|
4034 octave_variabl_reference::index function to handle indexing. |
|
4035 |
|
4036 * oct-var-ref.h, oct-var-ref.cc (idx): New data member. |
|
4037 (octave_variable_reference::index): Set it. |
|
4038 (octave_variable_reference::assign): Handle indexing here. |
|
4039 Delete version of this function htat takes index arg. |
|
4040 |
|
4041 * variables.h (struct builtin_varaible): Delete. |
|
4042 * variables.cc (install_builtin_variable): Take all elts of |
|
4043 builtin_variable struct directly. |
|
4044 * defun.h (DEFVAR_INT): Call install_builtin_variable directly. |
|
4045 |
|
4046 * symtab.h, defun-int.h: Don't include variables.h. |
|
4047 |
|
4048 * symtab.h (symbol_record::sv_function): Move typedef here. |
|
4049 * variables.h: From here. |
|
4050 |
|
4051 * oct-var-ref.h, oct-var-ref.cc: New files for |
|
4052 octave_variable_reference class, extracted from variables.h and |
|
4053 variables.cc |
2956
|
4054 * Makefile.in: Add them to the appropriate lists. |
2955
|
4055 |
|
4056 * oct-obj.h (octave_value_list::empty): New function. |
|
4057 |
2949
|
4058 * variables.h (class octave_variable_reference): Rewrite to work |
|
4059 as a proxy class to store a pointer to octave_value and, |
|
4060 optionally, the change function to call and the name of the |
|
4061 structure element we are referencing. Handle assignment, |
|
4062 increment, decrement, and value operations. |
|
4063 |
2956
|
4064 Thu May 8 23:40:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4065 |
2949
|
4066 * ov-re-mat.h, ov-re-mat.cc (struct_elt_ref, struct_elt_val, |
|
4067 assign_struct_elt): Provide functions for looking up and setting |
|
4068 matrix dimensions. |
|
4069 |
|
4070 * symtab.cc (symbol_record::define): Don't call sv_fcn here. |
|
4071 Don't save and restore value here. |
|
4072 (symbol_record::define_builtin_var): Do call sv_fcn here. |
|
4073 (symbol_record::variable_reference): Don't make value unique here. |
|
4074 Return pointer to sv_fcn in octave_variable_reference. |
|
4075 |
|
4076 * pt-misc.cc (tree_parameter_list::initialize_undefined_elements): |
|
4077 Simplify. |
|
4078 |
|
4079 * pt-id.h, pt-id.cc (tree_identifier::reference): Return |
|
4080 octave_variable_reference, not octave_value&. |
|
4081 * symtab.h, symtab.cc (symbol_record::variable_reference): Ditto. |
|
4082 * pt-indir.h, pt-indir.cc (tree_indirect_ref::reference): Ditto. |
|
4083 Simplify too. |
|
4084 |
|
4085 * pt-const.h (tree_constant::reference, tree_constant::value, |
|
4086 tree_constant::assign): Delete unnecessary functions. |
|
4087 * pt-id.h, pt-id.cc (tree_identifier::assign): Ditto. |
|
4088 |
|
4089 * pt-cmd.cc (tree_for_command::do_for_loop_once): Simplify. |
|
4090 |
|
4091 * ov.h, ov.cc, ov-base.h, ov-base.cc, ov-struct.h, ov-struct.cc |
|
4092 (struct_elt_ref): New arg, octave_value* parent. |
|
4093 Allow deferred lookup. Return octave_variable_reference, not |
|
4094 octave_value&. |
|
4095 |
|
4096 * ov.h, ov.cc, ov-re-mat.h, ov-re-mat.cc (assign_struct_elt): |
|
4097 New virtual functions. |
|
4098 |
|
4099 * ov.h, ov.cc (Vresize_on_range_error): Now static. |
|
4100 |
|
4101 * pt-mvr.cc (tree_index_expression::eval): Delete redundant check |
|
4102 of error_state. |
|
4103 |
2944
|
4104 Wed May 7 21:17:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4105 |
|
4106 * input.cc (generate_completion): Rename from command_generator. |
|
4107 Use string objects instead of char*. |
|
4108 (generate_possible_completions): Let qsort also make matches unique. |
|
4109 (initialize_command_input): Register generate_completion with the |
|
4110 command_editor class. |
|
4111 (completion_matches): Simplify using generate_completion. |
|
4112 |
|
4113 * pt-pr-code.cc (tree_print_code::visit_constant): For val, call |
|
4114 print_raw, not print. |
|
4115 |
|
4116 * oct-usr-fcn.h (octave_user_function::argn_sr): New data member. |
|
4117 (octave_user_function::install_automatic_vars): Rename from |
|
4118 install_nargin_and_nargout. |
|
4119 (octave_user_function::bind_automatic_vars): Rename from |
|
4120 bind_nargin_and_nargout. |
|
4121 * oct-usr-fcn.cc (octave_user_function::eval): Extract arg names |
|
4122 from args vector and bind them to argn. |
|
4123 * oct-obj.h (octave_value_list::names): New data member. |
|
4124 * oct-obj.cc (octave_value_list::stash_name_tags): New function. |
|
4125 (octave_value_list::name_tags): Ditto. |
|
4126 * pt-const.h, pt-const.cc (tree_constant::print_raw): New function. |
|
4127 * pt-misc.h, pt-misc.cc (tree_argument_list::get_arg_names): |
|
4128 New function. |
|
4129 * pt-mvr.h, pt-mvr.cc (class index_expression): Cache arg names. |
|
4130 * toplev.cc (feval): Now static. Handle arg names. |
|
4131 |
|
4132 * mkops: Cope with moving files defining operators to OPERATORS |
|
4133 subdirectory. |
|
4134 |
2937
|
4135 Tue May 6 00:48:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4136 |
|
4137 * DLD-FUNCTIONS/getgrent.cc: Use new octave_group class. |
|
4138 * DLD-FUNCTIONS/getpwent.cc: Use new octave_passwd class. |
|
4139 |
|
4140 * syscalls.cc: Simplify by using new functions defined in |
|
4141 liboctave/oct-syscalls.cc. |
|
4142 |
|
4143 * file-io.cc (Ftmpnam): Accept DIR and PREFIX args. |
|
4144 |
2929
|
4145 Mon May 5 00:54:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4146 |
2932
|
4147 * ov-str-mat.cc (octave_char_matrix_str::print_name_tag): Print |
|
4148 empty strings on one line. |
|
4149 |
2929
|
4150 * DLD-FUNCTIONS, OPERATORS, and TEMPLATE-INST: New subdirectories. |
|
4151 Move appropriate files to new directories. |
|
4152 * Makefile.in: Add DLD-FUNCTIONS, OPERATORS, and TEMPLATE-INST |
|
4153 directories to VPATH. Fix rules to work with new directory |
|
4154 structure. |
|
4155 |
2927
|
4156 Sun May 4 22:40:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4157 |
|
4158 * input.cc (initialize_command_input): Rename from |
|
4159 initialize_readline. |
|
4160 (gnu_readline, octave_gets, get_user_input): Simplify, return |
|
4161 string, not char *. |
|
4162 |
|
4163 * Many of other files: Miscellaneous changes to go along with the |
|
4164 changes described in the liboctave/ChangeLog for May 4. More code |
|
4165 moved from here to liboctave. |
|
4166 |
|
4167 Fri May 2 19:50:33 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4168 |
|
4169 * pathlen.h: Move to ../liboctave. |
|
4170 |
2921
|
4171 Thu May 1 21:50:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4172 |
|
4173 * variables.cc (get_struct_elts): New fucntion. |
|
4174 (looks_like_struct, generate_struct_completions): Move here from |
|
4175 input.cc, rewrite, and make work again. |
|
4176 |
2916
|
4177 Wed Apr 30 00:24:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4178 |
|
4179 * ov-base.h, ov-bool-mat.cc, ov-bool-mat.h, ov-bool.cc, ov-bool.h, |
|
4180 ov-ch-mat.cc, ov-ch-mat.h, ov-complex.cc, ov-complex.h, |
|
4181 ov-cx-mat.cc, ov-cx-mat.h, ov-file.cc, ov-file.h, ov-list.cc, |
|
4182 ov-range.cc, ov-range.h, ov-re-mat.cc, ov-re-mat.h, ov-scalar.cc, |
|
4183 ov-scalar.h, ov-str-mat.cc, ov-struct.cc, ov.h (scalar_value): |
|
4184 New function. Same as double_value, but name is consistent with |
|
4185 octave_scalar class. |
|
4186 |
|
4187 * op-fil-b.cc, op-fil-cm.cc, op-fil-lis.cc, op-fil-rec.cc, |
|
4188 op-fil-str.cc, op-fil-bm.cc, op-fil-cs.cc, op-fil-m.cc, |
|
4189 op-fil-s.cc: New files. |
|
4190 |
|
4191 * ops.h (ASSIGNOPDECL, DEFASSIGNOP, DEFASSIGNOP_FN, CONVDECL, |
|
4192 DEFCONV, BINOPDECL, DEFBINOPX, DEFBINOP, DEFBINOP_OP, DEFBINOP_FN, |
|
4193 BINOP_NONCONFORMANT): New macros. |
|
4194 * op-b-b.cc, op-bm-bm.cc, op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, |
|
4195 op-cm-s.cc, op-cs-cm.cc, op-cs-cs.cc, op-cs-m.cc, op-cs-s.cc, |
|
4196 op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, op-s-cm.cc, |
|
4197 op-s-cs.cc, op-s-m.cc, op-s-s.cc, op-str-str.cc: Use them. |
|
4198 |
|
4199 * Makefile.in (octave): Also depend on ops.o. |
|
4200 |
|
4201 * builtins.h: Delete. |
|
4202 * octave.cc: Add extern declaration here. |
|
4203 |
|
4204 * mappers.h: Delete. |
|
4205 * Makefile.in (INCLUDES): Delete from list. |
|
4206 * mkbuiltins: Add extern declaration in builtins.cc. |
|
4207 |
|
4208 * mkops: New file. |
|
4209 * ops.cc: Delete. |
|
4210 * Makefile.in (SOURCES): Delete from the list. |
|
4211 (ops.cc): New target. |
|
4212 (OP_SOURCES): New list. Move all op-*.cc files here from SOURCES. |
|
4213 Add $(OP_SOURCES) to SOURCES list. |
|
4214 |
|
4215 * variables.cc (symbols_of_variables): No longer static. |
|
4216 * ov.cc (symbols_of_ov): Rename from symbols_of_value. |
|
4217 |
|
4218 * ov-base.h: Delete declaration for install_base_type_conversions. |
|
4219 * op-b-b.h, op-bm-bm.h, op-cm-cm.h, op-cm-cs.h, op-cm-m.h, |
|
4220 op-cm-s.h, op-cs-cm.h, op-cs-cs.h, op-cs-m.h, op-cs-s.h, |
|
4221 op-m-cm.h, op-m-cs.h, op-m-m.h, op-m-s.h, op-s-cm.h, op-s-cs.h, |
|
4222 op-s-m.h, op-s-s.h, op-str-str.h: Delete. |
|
4223 * Makefile.in (INCLUDES): Delete them from the list. |
|
4224 |
|
4225 Tue Apr 29 22:27:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4226 |
|
4227 * variables.h, variables.cc (install_builtin_variables): Delete. |
|
4228 * mkbuiltins: Also generate install_builtin_variables function. |
|
4229 * Makefile.in: Fix rule to call mkbuiltins with correct args. |
|
4230 (clean): Also delete def-files and var-files. |
|
4231 * defaults.h.in, dirfns.h, error.h, file-io.h, help.h, input.h, |
|
4232 lex.h, load-save.h, oct-usr-fcn.h, pager.h, parse.h, pr-output.cc, |
|
4233 pr-output.h, pt-mat.h, pt-misc.h, pt-plot.h, toplev.h: |
|
4234 Delete declarations of symbols_of_* functions. |
|
4235 * data.h, syscalls.h: Delete. |
|
4236 |
|
4237 * pr-output.cc (octave_print_internal): Leave printing of final |
|
4238 new line up to the caller. |
|
4239 |
|
4240 * ov.h, ov.cc (reset_indent_level, increment_indent_level, |
|
4241 decrement_indent_level, newline, indent, reset, |
|
4242 curr_print_indent_level, beginning_of_line): |
|
4243 New functions and static data to manage indent level for printing. |
|
4244 (print_as_scalar): Delete. |
|
4245 (print, print_with_name): Always require stream arg. |
|
4246 Change all callers. |
|
4247 |
|
4248 * oct-stream.h (octave_stream::input_stream): Make publicly available. |
|
4249 (octave_stream::output_stream): Likewise. |
|
4250 |
|
4251 * ov-base.h, ov-base.cc, ov.h, ov.cc, ov-file.h ov-base.h |
|
4252 (is_file, stream_value, stream_number): New functions. |
|
4253 * ov-file.h, ov-file.cc: New files for value class to manage files. |
|
4254 * file-io.cc (symbols_of_file_io): Define stdin, stdout, and |
|
4255 stderr as octve_file objects, not just integers. |
|
4256 (Ffopen, Fpopen): Return octave_file objects, not integer file ids. |
|
4257 * syscalls.cc (Fpipe): Likewise. |
|
4258 * oct-stream.h, oct-stream.cc (octave_stream_list::insert): |
|
4259 Return octave_file object, not integer file id. |
|
4260 |
|
4261 * ov-base.cc, ov-bool-mat.cc, ov-bool.cc, ov-ch-mat.cc, |
|
4262 ov-complex.cc, ov-cx-mat.cc, ov-file.cc, ov-list.cc, ov-range.cc, |
|
4263 ov-re-mat.cc, ov-scalar.cc, ov-str-mat.cc, ov-struct.cc, ov.cc |
|
4264 (print_name_tag, print_raw): New functions. |
|
4265 |
|
4266 * help.cc (Ftype): Don't cast symbol definition to tree_constant *. |
|
4267 |
|
4268 * variables.cc (link_to_global_variable): Don't try to define |
|
4269 symbol with tree_constant objects. |
|
4270 (bind_ans): Call symbol_record::define directly and then |
|
4271 octave_value::print_with_name instead of creating a temporary |
|
4272 assignment expression. |
|
4273 |
|
4274 * pt-pr-code.cc (tree_print_code::indent): Don't use ostream::form. |
|
4275 |
|
4276 * pt-exp-base.h, pt-exp.h, pt-exp.cc (oper): Return string, not |
|
4277 char *. Change all where necessary. |
|
4278 |
|
4279 Mon Apr 28 16:33:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4280 |
|
4281 * ov.h (octave_value binary_op enum): Add lshift and rshift. |
|
4282 (octave_value assign_op enum): Add lshift_eq and rshift_eq. |
|
4283 * ov.cc (assign_op_as_string, binary_op_as_string): Include them. |
|
4284 * parse.y (LSHIFT_EQ RSHIFT_EQ LSHIFT RSHIFT): New tokens. |
|
4285 Add them to the precedence list. |
|
4286 (simple_expr): Add new operators. |
|
4287 (make_assign_op, make_binary_op): Handle new operators. |
|
4288 * lex.l: Recognize new operators. |
|
4289 |
|
4290 * lex.l: Recognize them. |
|
4291 |
|
4292 Sun Apr 27 20:17:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2898
|
4293 |
|
4294 * pt-misc.cc (Vsilent_functions, silent_functions): |
|
4295 Move here from oct-usr-fcn.cc. |
|
4296 (symbols_of_pt_misc): New function. DEFVAR silent_functions. |
|
4297 (tree_statement_list::eval): Handle Vsilent_functions here instead |
|
4298 of in octave_user_function::eval. |
|
4299 (tree_statement::eval): New functions. |
|
4300 (tree_statement_list::eval): Use them. |
|
4301 Change print flag arg to silent flag. Change all callers. |
|
4302 * variables.cc (install_builtin_variables): Call symbols_of_pt_misc. |
|
4303 * toplev.cc (parse_and_execute): Delete print arg. Change all callers. |
|
4304 (eval_string): Change print flag arg to silent flag. Change callers. |
|
4305 |
|
4306 * dynamic-ld.h, dynamic-ld.cc: Rewrite to use singleton class. |
|
4307 * variables.cc (load_fcn_from_file): Use new dynamic linking class. |
|
4308 |
2893
|
4309 * dynamic-ld.h (Octave_builtin_fcn): Delete typedef. |
|
4310 * dynamic-ld.cc: Simplify via the magic of function pointers. |
|
4311 |
|
4312 * pt-fcn.h pt-fcn.cc pt-fvc.h pt-fvc.cc pt-fvc-base.h pt-fvc-base.cc: |
|
4313 Delete obsolete files. |
|
4314 * Makefile.in: Remove them from various lists. |
|
4315 |
|
4316 * pt-walk.h (visit_octave_user_function): Rename from visit_function. |
|
4317 (visit_builtin): Delete. |
|
4318 * pt-pr-code.h, pt-pr-code.cc (visit_octave_user_function): |
|
4319 Rename from visit_function. |
|
4320 (visit_octave_user_function_header): Rename from visit_function_header. |
|
4321 (visit_octave_user_function_trailer): Rename from |
|
4322 visit_function_trailer. |
|
4323 |
|
4324 * ov.h, ov.cc (eval): New functions. |
|
4325 |
|
4326 * dassl.cc, fsolve.cc, lsode.cc, npsol.cc, qpsol.cc, quad.cc: |
|
4327 Declare user-defined functions as a pointer to an octave_symbol |
|
4328 object, not as a pointer to a tree_fvc object. |
|
4329 |
|
4330 * symtab.h, symtab.cc: Use new octave_symbol class. |
|
4331 * variables.cc (install_builtin_function, install_builtin_mapper, |
|
4332 install_builtin_variable, install_builtin_variable_as_function): |
|
4333 Make work with new octave_symbol class and symbol table structure. |
|
4334 |
|
4335 * variables.h: Delete declaration of builtin_function struct. |
|
4336 * defun-dld.h (DEFUN_DLD): Simplify. |
|
4337 * defun-int.h (DEFINE_FUN_STRUCT): Delete. |
|
4338 (DEFINE_FUN_STRUCT_FUN): Rewrite to not use static builtin_function |
|
4339 object. |
|
4340 |
|
4341 * mappers.h: Delete declaration of builtin_mapper_function struct. |
|
4342 * mappers.cc: Declare wrapper functions static. |
|
4343 * defun.h (DEFUN_MAPPER): Simplify. |
|
4344 |
|
4345 * oct-sym.h: New file. Declare base class for Octave symbols. |
|
4346 * ov.h: Derive octave_value class from octave_symbol. |
|
4347 * oct-fcn.h, oct-fcn.cc: New files to declare and define |
|
4348 base class for functions. |
|
4349 * oct-builtin.h, oct-builtin.cc: New files to declare and define |
|
4350 class for built-in functions. |
|
4351 * oct-mapper.h, oct-mapper.cc: New files to declare and define |
|
4352 class for mapper functions. |
|
4353 * oct-usr-fcn.h, oct-usr-fcn.cc: New files to declare and define |
|
4354 base class for user-defined functions. |
|
4355 * Makefile.in: Add new files to appropriate lists. |
|
4356 |
|
4357 * pt-id.h, pt-id.cc: Move tree_identifier class here. |
|
4358 * pt-fvc.h, pt-fvc.cc: From here. |
|
4359 |
|
4360 * pt-indir.h, pt-indir.cc: Move tree_indirect_ref class here. |
|
4361 * pt-fvc.h, pt-fvc.cc: From here. |
|
4362 |
2881
|
4363 Thu Apr 24 03:58:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4364 |
2884
|
4365 * parse.y (magic_colon): New nonterminal. |
|
4366 (arg_list): Simplify using magic_colon. |
|
4367 |
2883
|
4368 * lex.h (class lexical_feedback): Delete maybe_screwed field. |
|
4369 New field, parsed_function name. |
|
4370 * lex.l (lexical_feedback::init): Initialize it. |
|
4371 (handle_identifier): Don't return SCREW. Handle switching |
|
4372 symbol table context properly for `function f ()' vs `function x ='. |
|
4373 (is_keyword): If looking at function keyword, don't set current |
|
4374 symbol table to point to the local table. |
|
4375 * parse.y (recover_from_parsing_function): New function. |
|
4376 (finish_function_def): Use identifier, not token. |
|
4377 Simplify parsing of functions. |
|
4378 |
|
4379 * ov-list.h, ov-list.cc: New files to implement generic list type. |
|
4380 * ov.cc (list_indent): New global variable. |
|
4381 (increment_list_indent, decrement_list_indent): New functions. |
|
4382 (install_types): Register octave_list type. |
|
4383 * ov-base.cc (octave_base_value::is_list): New function. |
|
4384 |
2881
|
4385 * oct-sym.h: New file. |
|
4386 * ov.h (class octave_value): Derive from octave_symbol class. |
|
4387 |
|
4388 * pt-const.h, pt-const.cc: Delete lots of old useless cruft. |
|
4389 |
|
4390 * pt-exp.h, pt-exp.cc (tree_binary_expression): Use type codes for |
|
4391 operators from octave_value instead of repeating them here. |
|
4392 |
|
4393 * pt-fvc-base.cc (tree_fvc::increment, tree_fvc::decrement): Delete. |
|
4394 * pt-fvc.cc (tree_identifier::increment): Get reference to value |
|
4395 and increment that instead of using virutal tree_fvc::increment |
|
4396 function. |
|
4397 |
|
4398 * lex.l: Handle +=, -=, *=, /=, .+=, .-=, .*=, ./=, &=, and |= ops. |
2883
|
4399 * parse.y (make_assign_op): Rename from make_simple_assignment and |
|
4400 handle different op types. |
|
4401 (simple_expr1): Do new ops. |
2881
|
4402 * pt-misc.cc (initialize_undefined_elements): Pass op to assign. |
|
4403 * pt-cmd.cc (tree_for_command::do_for_command_once): Likewise. |
|
4404 * pt-fvc.cc (tree_identifier::assign): Pass op. |
|
4405 * pt-exp.cc (tree_simple_assignment_expression): Handle new ops. |
|
4406 * variables.cc (octave_variable_reference::assign): Likewise. |
|
4407 * ov.h (class octave_value): Likewise. |
|
4408 * ov.cc (octave_value::assign_op_as_string): New function. |
|
4409 (octave_value::assign, octave_value::convert_and_assign, |
|
4410 octave_value::try_assignment_with_conversion, |
|
4411 octave_value::try_assignment): Pass op. |
|
4412 * pt-pr-code.cc (tree_print_code::visit_simple_assignment_expression): |
|
4413 Use expr.oper() instead of printing "=". |
|
4414 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-m-m.cc, |
|
4415 op-m-s.cc, op-str-str.cc: Pass op to INSTALL_ASSIGNOP. |
|
4416 * ops.h (INSTALL_ASSIGNOP): Pass op. |
2883
|
4417 * ov-typeinfo.cc (do_register_assign_op): Include op type in table. |
|
4418 (do_lookup_assign_op): Use op in lookup. |
2881
|
4419 |
|
4420 * ops.h (INSTALL_UNOP): Delete. |
|
4421 |
|
4422 * input.cc (generate_struct_completions, looks_like_struct): |
|
4423 Disable, since they don't work now anyway. |
|
4424 |
|
4425 * help.cc (Ftype): Work with octave_value instead of a pointer to |
|
4426 tree_constant. |
|
4427 * symtab.cc (symbol_record_info::symbol_record_info): Likewise. |
|
4428 |
|
4429 |
|
4430 Tue Apr 22 22:59:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4431 |
|
4432 * file-io.cc (Ffprintf): If first arg is a string, assume FID = 1. |
|
4433 |
|
4434 Fri Apr 18 20:16:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4435 |
|
4436 * oct-obj.h, oct-obj.cc: Implement octave_value_list with |
|
4437 Array<octave_value> as a data member, not as a class derived from |
|
4438 Array<octave_value>. |
|
4439 (octave_value_list::length, octave_value_list::resize, |
|
4440 octave_value_list::prepend, octave_value_list::append, |
|
4441 octave_value_list::reverse): New functions. |
|
4442 |
|
4443 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
4444 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
4445 op-s-cm.cc, op-s-m.cc: Use new bool ops from liboctave instead of |
|
4446 the macros defined in ops.h. |
|
4447 |
2865
|
4448 Thu Apr 17 13:12:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4449 |
|
4450 * parse.y (ABORT_PARSE): Handle forced_interactive the same as |
|
4451 interactive. |
|
4452 |
|
4453 Mon Apr 14 01:46:50 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4454 |
|
4455 * input.cc (octave_read): Don't forget to free input buffer if it |
|
4456 exists and has zero length. |
|
4457 (gnu_readline): Free buf if fgets returns 0. |
|
4458 |
|
4459 Wed Apr 9 00:03:57 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4460 |
|
4461 * time.cc (mk_tm_map): Only set zone field if HAVE_TM_ZONE or |
|
4462 HAVE_TZNAME are defined. |
|
4463 |
|
4464 Tue Apr 8 12:39:21 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4465 |
|
4466 * time.cc (extract_tm): Set tm.tm_zone if HAVE_TM_ZONE is defined, |
|
4467 not if HAVE_TMZONE is defined. |
|
4468 |
|
4469 * Makefile.in (%.oct : %.o): Use $(SH_LD), not $(CXX). |
|
4470 |
|
4471 Wed Apr 2 21:32:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4472 |
|
4473 * dynamic-ld.cc, dynamic-ld.h (init_dynamic_linker): Delete |
|
4474 function and declaration. |
|
4475 * octave.cc (main): Don't call it. |
|
4476 |
2856
|
4477 Mon Mar 31 00:37:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4478 |
2859
|
4479 * pt-base-exp.h (tree_expression::eval): Give arg a default value. |
|
4480 * pt-const.h (tree_constant::eval): Likewise. |
|
4481 * pt-exp.h (tree_prefix_expression::eval, tree_colon_expression::eval, |
|
4482 tree_postfix_expression::eval, tree_unary_expression::eval, |
|
4483 tree_binary_expression::eval, tree_boolean_expression::eval, |
|
4484 tree_simple_assignment_expression::eval): Likewise. |
|
4485 * pt-fcn.h (tree_function::eval): Likewise. |
|
4486 * pt-fvc.h (tree_identifier::eval, tree_indirect_ref::eval, |
|
4487 tree_builtin::eval): Likewise. |
|
4488 * pt-mat.h (tree_matrix::eval): Likewise. |
|
4489 * pt-misc.h (tree_statement_list::eval): Likewise. |
|
4490 * pt-mvr-base.h (tree_multi_val_ret::eval): Likewise. |
|
4491 * pt-mvr.h (tree_oct_obj::eval, tree_index_expression::eval, |
|
4492 tree_multi_assignment_expression::eval): Likewise. |
|
4493 * dassl.cc, fsolve.cc, load-save.cc, lsode.cc, npsol.cc, parse.y, |
|
4494 pt-cmd.cc, pt-exp-base.cc, pt-exp.cc, pt-fvc.cc, pt-mat.cc, |
|
4495 pt-misc.cc, pt-mvr.cc, pt-plot.cc, quad.cc, toplev.cc, variables.cc: |
|
4496 Change callers of eval() to use bool instead of int and to make |
|
4497 use of default argument value. |
|
4498 |
|
4499 * toplev.h, toplev.cc (parse_and_execute, eval_string): Flag args |
|
4500 are now bool instead of int. |
|
4501 |
2856
|
4502 * symtab.h, symtab.cc: Use bool instead of int in more places. |
|
4503 * variables.h, variables.cc: Likewise. |
2857
|
4504 * lex.h, lex.l: Likewise. |
|
4505 * parse.y: Likewise. |
2856
|
4506 * help.cc, input.cc, lex.l, load-save.cc, parse.y, pt-fcn.cc: |
|
4507 Change callers of symbol_table::lookup to use bool instead of int, |
|
4508 and to make use of default arguments. |
|
4509 |
2850
|
4510 Fri Mar 28 15:33:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4511 |
2852
|
4512 * parse.y (Vwarn_comma_in_declaration): Delete. |
|
4513 (symbols_of_parse): Delete DEFVAR for warn_comma_in_declaration. |
|
4514 (decl1): Don't allow commas in declarations. |
|
4515 |
2850
|
4516 * lsode.cc (struct LSODE_OPTIONS): Handle integer options. |
|
4517 (print_lsode_option_list, set_lsode_option, show_lsode_option): Ditto. |
|
4518 (lsode_option_table): Add element for step limit. |
|
4519 (lsode_user_jacobian): New function. |
|
4520 (Flsode): Allow function name arg to be a 2-element string array |
|
4521 specifying the function and jacobian function. |
|
4522 |
|
4523 * variables.cc (get_global_value, set_global_value): New functions. |
|
4524 |
2846
|
4525 Wed Mar 26 17:08:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4526 |
|
4527 Implement static variable declaration: |
|
4528 |
|
4529 * lex.l (is_keyword): Handle static. |
|
4530 * octave.gperf: Likewise. |
|
4531 * parse.y (Vwarn_comma_in_declaration): Rename from |
|
4532 Vwarn_comma_in_global_decl. |
|
4533 Handle new static command. |
|
4534 * pt-cmd.h, pt-cmd.cc (class tree_decl_command): New base class |
|
4535 for static and global declaration commands. |
|
4536 (class tree_global_command): Derive from tree_decl_command. |
|
4537 (class tree_static_command): New class, derived from tree_decl_command. |
|
4538 * pt-fvc.cc, pt-fvc.h (tree_identifier::mark_as_static): New function. |
|
4539 * pt-misc.h, pt-misc.h (class tree_decl_elt): Rename from tree_global. |
|
4540 (class tree_decl_init_list): Rename from tree_global_init_list. |
|
4541 * pt-pr-code.cc, pt-pr-code.h (tree_print_code::visit_decl_command): |
|
4542 Rename from visit_global_command. |
|
4543 (tree_print_code::visit_decl_elt): Rename from visit_global. |
|
4544 (tree_print_code::visit_decl_init_list): Rename from |
|
4545 visit_global_init_list. |
|
4546 * pt-walk.h (tree_walker::visit_decl_command): Rename from |
|
4547 visit_global_command. |
|
4548 (tree_walker::visit_decl_elt): Rename from visit_tree_global. |
|
4549 (tree_walker::visit_decl_init_list): Rename from |
|
4550 visit_global_init_list. |
|
4551 * variables.cc (link_to_global_variable): Trying to make a static |
|
4552 variable global is an error. |
|
4553 * SLList-misc.cc: Instantiate lists of pointers to tree_decl_elt |
|
4554 objects, not tree_global objects. |
|
4555 * symtab.h, symtab.cc (symbol_record::tagged_static): New field. |
|
4556 (symbol_record::mark_as_static, symbol_record::is_static): |
|
4557 New functions. |
|
4558 * symtab.cc (symbol_record::init_state): Initialize tagged_static. |
|
4559 (symbol_record::clear): Don't clear static variables. |
|
4560 * symtab.cc (push_context): Don't do anything for static variables. |
|
4561 |
2825
|
4562 Tue Mar 25 17:17:17 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4563 |
2881
|
4564 * ov-bool-mat.cc, ov-bool-mat.h, ov-bool.cc, ov-bool.h: New files. |
2832
|
4565 |
2831
|
4566 * defaults.cc (symbols_of_defaults): DEFCONST OCTAVE_HOME. |
|
4567 |
|
4568 * toplev.cc (octave_config_info): Delete use of CXXLIBS. |
|
4569 * oct-conf.h.in: Ditto. |
|
4570 |
2830
|
4571 * octave.cc (maximum_braindamage): Don't bind prefer_zero_one_indexing. |
|
4572 * ov.h: Don't declare Vprefer_zero_one_indexing. |
|
4573 * ov.cc: Don't define Vprefer_zero_one_indexing. |
|
4574 (prefer_zero_one_indexing): Delete. |
|
4575 (symbols_of_value): Delete DEFVAR for prefer_zero_one_indexing. |
|
4576 |
2825
|
4577 * ov.h, ov.cc, ov-base.h, ov-base.cc: Add constructors and |
|
4578 extractors for bool and boolMatrix types. |
|
4579 |
|
4580 * ov.cc (install_types): Register octave_bool and |
|
4581 octave_bool_matrix types. |
|
4582 |
|
4583 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
4584 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
4585 op-s-cm.cc, op-s-m.cc, op-s-s.cc, ov-re-mat.cc: |
|
4586 Return boolMatrix instead of Matrix object. |
|
4587 * ops.h (BOOL_OP3, MX_MX_BOOL_OP): Likewise. |
|
4588 |
|
4589 * op-b-b.h, op-b-b.cc, op-bm-bm.h, op-bm-bm.cc: New files. |
|
4590 * Makefile.in: Add them to the lists. |
|
4591 * ops.cc: Include header files here. |
|
4592 (install_ops): Call install_b_b_ops() and install_bm_bm_ops() here. |
|
4593 |
|
4594 * variables.cc (symbols_of_variables): Don't rely on default |
|
4595 conversion from int to double for value returned from |
|
4596 default_history_size(). |
|
4597 |
|
4598 * pr-output.cc: Include cstdio. |
|
4599 |
|
4600 * parse.y (param_list_end): Fix typo in last change. |
|
4601 |
|
4602 * quad.cc (quad): Cast integer return values to double. |
|
4603 * npsol.cc (show_npsol_option): Likewise. |
|
4604 * qpsol.cc (show_qpsol_option): Likewise. |
|
4605 * file-io.cc (Fsprintf, Ffwrite): Likewise. |
|
4606 |
|
4607 Mon Mar 24 13:11:47 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4608 |
|
4609 * ov-typeinfo.cc (typeinfo): If invoked with an argument, return |
|
4610 the type of the argument as a string. Fix doc string. |
|
4611 |
2821
|
4612 Thu Mar 20 14:47:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4613 |
|
4614 * mk-oct-links (links_dir): Don't use -h option for grep. It's |
|
4615 not needed since we are working on one file at a time anyway. |
|
4616 |
2819
|
4617 Mon Mar 17 10:53:29 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4618 |
|
4619 * lex.l (handle_identifier): When handling indirect_ref, set |
|
4620 lexer_flags.quote_is_transpose to 1 so that a.b' to work as |
|
4621 expected. |
|
4622 |
|
4623 * parse.y (param_list_beg, param_list_end): New nonterminals. |
|
4624 (param_list, param_list1): Use them. |
|
4625 |
2811
|
4626 Wed Mar 12 16:57:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4627 |
|
4628 * Makefile.in (install-strip): New target. |
|
4629 |
2806
|
4630 Mon Mar 10 22:38:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4631 |
|
4632 * Makefile.in (clean): Delete .oct files too. |
|
4633 |
|
4634 * toplev.cc (Vdefault_eval_print_flag): New static variable. |
|
4635 (eval_string): New arg, print. |
|
4636 (Feval): Pass Vdefault_eval_print_flag to eval_string. |
|
4637 (default_eval_print_flag): New function. |
|
4638 (symbols_of_toplev): New function. |
|
4639 |
|
4640 * variables.cc (install_builtin_variables): Call it. |
|
4641 |
|
4642 * pt-exp.h, pt-exp.cc (class tree_boolean_expression): Rename enum |
|
4643 fields `and' and `or' to `bool_and' and `bool_or'. |
|
4644 (tree_unary_expression): Rename enum field `not' to `unot'. |
|
4645 (class tree_binary_expression): Rename enum fields `and' and `or' |
|
4646 to `el_and' and `el_or'. |
|
4647 * parse.y: Change all uses. |
|
4648 |
|
4649 * time.cc (extract_tm): Truncate field values instead of rounding. |
|
4650 (gmtime, localtime): Likewise, for timeval. |
|
4651 |
|
4652 * ov.h (class octave_value): Delete unused variable freeptr. |
|
4653 |
|
4654 * mappers.cc: Delete functions that are already in |
|
4655 liboctave/lo-mappers.cc. |
|
4656 |
|
4657 * oct-strstrm.cc (octave_base_strstream::tell): Use const_cast, |
|
4658 not static_cast. |
|
4659 |
|
4660 * help.cc (help_from_list): Add missing const qualifiers. |
|
4661 * help.h (struct help_list): Likewise. |
|
4662 * lex.l (match_any, plot_style_token): Likewise. |
|
4663 * load-save.cc (extract_keyword, ascii_save_type): Likewise. |
|
4664 * oct-hist.cc (mk_tmp_hist_file): Likewise. |
|
4665 * octave.cc (execute_startup_files): Likewise. |
|
4666 * octave.gperf (struct octave_kw): Likewise. |
|
4667 * pr-output.cc (pr_any_float): Likewise. |
|
4668 * pt-mvr.cc (tree_index_expression::eval_error): Likewise. |
|
4669 * pt-exp-base.h, pt-exp.h, pt-exp.cc: Likewise. |
|
4670 * parse.y: Likewise. |
|
4671 |
2800
|
4672 Sun Mar 9 03:46:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4673 |
2806
|
4674 * pt-exp-base.h (tree_expression): Delete extra comma at end of list. |
|
4675 |
|
4676 * dirfns.cc error.cc file-io.cc fsolve.cc input.cc load-save.cc |
|
4677 npsol.cc pt-fcn.cc qpsol.cc quad.cc syscalls.cc toplev.cc |
|
4678 variables.cc: Eliminate embedded newlines in string constants. |
|
4679 |
|
4680 * Map.cc, data.cc, dirfns.cc, dynamic-ld.cc, file-io.cc, |
|
4681 fsolve.cc, getgrent.cc, getpwent.cc, getrusage.cc, help.cc, |
|
4682 input.cc, load-save.cc, mappers.cc, minmax.cc, npsol.cc, |
|
4683 oct-fstrm.cc, oct-procbuf.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
4684 oct-stream.cc, oct-stream.h, oct-strstrm.cc, octave.cc, |
|
4685 ov-base.h, ov-range.cc, ov-typeinfo.cc, ov.cc, pr-output.cc, |
|
4686 pt-cmd.cc, pt-exp.cc, pt-fcn.cc, pt-fvc.cc, pt-mat.cc, |
|
4687 pt-misc.cc, pt-plot.cc, qpsol.cc, quad.cc, sort.cc, strfns.cc, |
|
4688 symtab.cc, syscalls.cc, sysdep.cc, time.cc, toplev.cc, |
|
4689 unwind-prot.cc, unwind-prot.h, variables.cc, xpow.cc: |
|
4690 Use `static_cast<T> (val)' instead of old C-style `(T) val' casts. |
2800
|
4691 |
2799
|
4692 Sat Mar 8 02:35:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4693 |
|
4694 * load-save.cc (save_ascii_data, save_three_d): Where appropriate, |
|
4695 use bool instead of int. |
|
4696 (save_binary_data, save_mat_binary_data, save_ascii_data): |
|
4697 Print warning instead of error for wrong type arg. |
|
4698 |
|
4699 * gripes.cc (gripe_wrong_type_arg): New arg, is_error. |
|
4700 |
|
4701 * pt-plot.cc (save_in_tmp_file): Call save_ascii_data with bool |
|
4702 arg, not int. |
|
4703 |
2797
|
4704 Fri Mar 7 00:56:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4705 |
|
4706 * dassl.cc (show_dassl_option): For values that are determined |
|
4707 automatically, return a string instead of a magic value (-1.0). |
|
4708 * fsolve.cc (show_fsolve_option): Likewise. |
|
4709 * lsode.cc (show_lsode_option): Likewise. |
|
4710 * npsol.cc (show_npsol_option): Likewise. |
|
4711 * qpsol.cc (show_qpsol_option): Likewise. |
|
4712 |
|
4713 * variables.cc (extract_function): New function. |
|
4714 * dassl.cc (Fdassl): Use it instead of is_valid_function. |
|
4715 * fsolve.cc (Ffsolve): Likewise. |
|
4716 * npsol.cc (Fnpsol): Likewise. |
|
4717 * qpsol.cc (Fqpsol): Likewise. |
|
4718 * quad.cc (Fquad): Likewise. |
|
4719 |
2795
|
4720 Thu Mar 6 20:07:24 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4721 |
|
4722 * sighandlers.cc (my_friendly_exit, octave_new_handler, |
|
4723 sigfpe_handler, sigpipe_handler): Don't all error() or warning(). |
|
4724 |
|
4725 * pager.cc (pager_death_handler): Don't try to clear pager, just |
|
4726 print message to cerr. |
|
4727 (do_sync): If the status of the pager is bad or it looks like it |
|
4728 is dead, restore the interrupt handler. |
|
4729 |
|
4730 * load-save.cc (extract_keyword (istream&, char*, int&)): |
|
4731 Move declaration of buf inside loop, to avoid deleting its guts |
|
4732 and then trying to reuse it. |
|
4733 (extract_keyword (istream&, char*)): Likewise. |
|
4734 |
2790
|
4735 Tue Mar 4 20:36:53 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4736 |
2791
|
4737 * pt-fcn.cc (tree_function::eval): Protect function from being |
|
4738 redefined while it is being evaluated. |
|
4739 (unprotect_function): New function, for use with unwind_protect stuff. |
|
4740 * pt-fcn.h (tree_function::symtab_entry): New data member. |
|
4741 (tree_function::init): Initialize it to 0. |
|
4742 (tree_function::stash_symtab_ptr): New function. |
|
4743 * parse.y (frob_function_def): Stash pointer to function's |
|
4744 symbol_record in the function definition. |
|
4745 |
|
4746 * symtab.cc (symbol_record::read_only_error): New argument, |
|
4747 action. Change all callers. |
|
4748 (symbol_record::rename): Don't allow read-only symbols to be renamed. |
|
4749 |
2790
|
4750 * variables.cc (Fexist): Don't let files with `.' in their names |
|
4751 confuse us. |
|
4752 |
|
4753 * symtab.cc (valid_identifier (const string&)): New function. |
|
4754 |
2779
|
4755 Sat Mar 1 15:23:14 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2775
|
4756 |
|
4757 * Version 2.0.5 released. |
|
4758 |
2779
|
4759 Sat Mar 1 01:34:08 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4760 |
|
4761 * Makefile.in (stamp-oct-links): New target. Make links in build |
|
4762 directory too, so that the tests will work. |
|
4763 |
2777
|
4764 * quad.cc: If quad is defined, undefine it. |
|
4765 |
2775
|
4766 * octave.cc: If WITH_KPATHSEARCH is defined, don't define |
|
4767 program_invocation_name or program_invocation_short_name. |
2774
|
4768 |
|
4769 * strftime.c: Update to current version from FSF. |
|
4770 * time.cc (Fstrftime): Call strftime with buf = 0 to get buffer |
|
4771 size, then call again to actually format the time struct. |
|
4772 |
2762
|
4773 Fri Feb 28 01:49:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4774 |
2764
|
4775 Implement switch statement: |
|
4776 |
|
4777 * parse.y (Vwarn_variable_switch_label): New static variable. |
|
4778 (warn_variable_switch_label): New function. |
|
4779 (symbols_of_parse): Provide warn_variable_switch_label as Octave |
|
4780 variable here. |
|
4781 (make_switch_case, finish_switch_command): New functions. |
|
4782 (maybe_warn_variable_switch_label): New function. |
|
4783 (end_error): Handle endswitch. |
|
4784 (switch_command, case_list, case_list1, switch_case, default_case): |
|
4785 New nonterminals. |
|
4786 (command): Add switch_command here. |
|
4787 * lex.l (is_keyword): Handle switch, case, otherwise, and endswitch. |
|
4788 * octave_gperf: Recognize switch, case, otherwise, and endswitch. |
|
4789 * token.h (end_tok_type): New item, switch_end. |
|
4790 * pt-cmd.cc (tree_switch_command): New class. |
|
4791 * pt-misc.cc (tree_switch_case, tree_switch_case_list): New classes. |
|
4792 * pt-pr-code.cc (tree_print_code::visit_switch_case, |
|
4793 tree_print_code::visit_switch_case_list, |
|
4794 tree_print_code::visit_switch_command): New functions. |
|
4795 * pt-walk.h (tree_walker::visit_switch_case, |
|
4796 tree_walker::visit_switch_case_list, |
|
4797 tree_walker::visit_switch_command): New pure virtual declarations. |
|
4798 Implement new switch statement. |
|
4799 * SLList-misc.cc: Instantiate lists of pointers to |
|
4800 tree_switch_case objects too. |
|
4801 |
|
4802 * lex.h, lex.l, parse.y: Delete all references to lexer_flags::iffing. |
|
4803 |
2762
|
4804 * syswait.h: Include sys/wait.h on NeXT systems, but don't use the |
|
4805 WIFEXTED, WEXITSTATUS, and WIFSIGNALLED macros defined there. |
|
4806 Also define waitpid in terms of wait4. From Rex A. Dieter |
|
4807 <rdieter@math.unl.edu>. |
|
4808 |
2759
|
4809 Wed Feb 26 16:43:31 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4810 |
|
4811 * oct-stream.cc (octave_base_stream::do_scanf): Don't report an |
|
4812 error if a conversion fails or we reach EOF. |
|
4813 |
2745
|
4814 Tue Feb 25 22:21:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4815 |
|
4816 * time.cc (strftime): increase initial buffer size. |
|
4817 |
|
4818 Mon Feb 24 17:49:21 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4819 |
|
4820 * pt-fvc.cc (tree_builtin::eval): Enable checking for max number |
|
4821 of arguments. |
|
4822 |
|
4823 * error.cc (handle_message): Don't fail if args is empty. |
|
4824 |
|
4825 Sun Feb 23 22:42:52 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4826 |
|
4827 * lex.h (lexical_feedback::looking_at_return_list): New field. |
|
4828 (lexical_feedback::looking_at_parameter_list): Ditto. |
|
4829 * lex.l (lexical_feedback::init): Initialize them. |
|
4830 (handle_identifier): Use them. |
|
4831 * parse.y: Likewise. |
|
4832 |
2712
|
4833 Fri Feb 21 15:35:18 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4834 |
2716
|
4835 * lex.l: Require flex 2.5 or later (we really want 2.5.4 or later, |
|
4836 but there seems to be no good way to check the patchlevel). |
|
4837 |
2712
|
4838 * oct-stream.cc (octave_base_stream::oscanf): Instead of returning |
|
4839 an error, just quit processing after a conversion fails. |
|
4840 |
2709
|
4841 Thu Feb 20 02:58:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2702
|
4842 |
|
4843 * Version 2.0.4 released. |
|
4844 |
2706
|
4845 Wed Feb 19 10:30:14 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4846 |
2705
|
4847 * sighandlers.cc (octave_ignore_interrupts, |
|
4848 octave_catch_interrupts, octave_set_interrupt_handler): |
|
4849 Return old value, not pointer to static data. Fix all uses. |
|
4850 |
|
4851 * sighandlers.h (octave_interrupt_handler): Move declaration here. |
|
4852 * sighandlers.cc: From here. |
|
4853 |
|
4854 * toplev.cc: Undo previous change. |
|
4855 |
2702
|
4856 * lex.l (handle_identifier): Allow commands like ls, save, etc. to |
|
4857 also be used as simple variable names. Also make it possible to |
|
4858 use the normal function call syntax to invoke them. |
|
4859 |
2693
|
4860 Tue Feb 18 09:22:04 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2689
|
4861 |
2702
|
4862 * Makefile.in (%.oct:%.o, %.oct:pic/%.o): Use $(SH_LDFLAGS) here. |
|
4863 |
2690
|
4864 * Version 2.0.3 released. |
|
4865 |
2693
|
4866 Tue Feb 18 00:27:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4867 |
|
4868 * toplev.cc (run_command_and_return_output): |
|
4869 Block SIGCHLD while running subprocess. |
|
4870 (cleanup_iprocstream): Unblock it here. |
|
4871 |
|
4872 * sighandlers.h (BLOCK_SIGNAL, BLOCK_CHILD, UNBLOCK_CHILD): Move here. |
|
4873 * sighandlers.cc: From here. |
|
4874 |
2692
|
4875 * toplev.cc (system): Shift then mask exit status. |
|
4876 |
|
4877 * help.cc (try_info): Shift first, then mask exit status. |
|
4878 |
2689
|
4879 * toplev.cc (octave_config_info): Handle option argument. |
|
4880 |
2686
|
4881 Fri Feb 14 16:23:30 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4882 |
2687
|
4883 * oct-stream.cc (octave_base_stream::do_scanf): Don't forget to |
|
4884 check to see if the result matrix needs resizing! |
|
4885 |
2686
|
4886 * Makefile.in (bin-dist): Don't write empty strings to LIBRARIES. |
|
4887 |
2669
|
4888 Thu Feb 13 03:02:08 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4889 |
2676
|
4890 * Makefile.in (stamp-prereq): Depend on stamp-picdir. |
|
4891 (all): Don't depend on stamp-prereq or stamp-picdir. |
|
4892 (stamp-tinst, stamp-interp, libtinst.a, liboctinterp.a): |
|
4893 Do depend on stamp-prereq. |
|
4894 (stamp-picdir): Silence noise about making pic. |
|
4895 (stamp-tinst, stamp-interp): Use $(SH_LD) $(SH_LDFLAGS) instead of |
|
4896 $(CXX) -shared. |
|
4897 |
2675
|
4898 * oct-conf.h.in: Reinstate RLD_FLAG. |
|
4899 * toplev.cc (octave_config_info): Likewise. |
|
4900 |
2672
|
4901 * data.cc (map_d_m, map_m_d, map_m_m): Rename from map. |
|
4902 (Fatan2): Use new function names. |
|
4903 |
|
4904 * pt-fvc.cc (apply_mapper_fcn): Use member function map() instead |
|
4905 of friend function. |
|
4906 |
2669
|
4907 * gripes.cc (gripe_wrong_type_arg (const char*, const string&)): |
|
4908 New function. |
|
4909 |
|
4910 Wed Feb 12 17:27:53 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4911 |
|
4912 * syscalls.cc (symbols_of_syscalls): Add O_ASYNC and O_SYNC. |
|
4913 |
|
4914 Mon Feb 10 01:22:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4915 |
|
4916 * dirfns.cc (Freaddir, Fmkdir, Frmdir, Frename): |
|
4917 Also return status and error message. |
|
4918 |
|
4919 * syscalls.cc (Fdup2, Fexec, Ffork, Ffcntl, Funlink, Fmkfifo, |
|
4920 Fpipe, Fwaitpid): Also return error message. |
|
4921 |
2664
|
4922 Sat Feb 8 17:16:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4923 |
2665
|
4924 * pt-exp.cc (tree_simple_assignment_expression::eval): Return |
|
4925 value of RHS, but (if printing) print complete value of LHS. |
|
4926 |
2664
|
4927 * pr-output.cc (octave_print_internal): Print a new line for empty |
|
4928 string matrices. |
|
4929 |
2663
|
4930 Wed Feb 5 14:30:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4931 |
|
4932 * oct-stream.cc (scanf_format_list::process_conversion): Accept |
|
4933 but don't actually use h, l, and L modifiers. Always insert l |
|
4934 modifier for floating point conversions. |
|
4935 |
2652
|
4936 Fri Jan 31 13:55:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4937 |
|
4938 * pager.cc (do_sync): Always flush the cout stream after writing. |
|
4939 |
2643
|
4940 Wed Jan 29 08:25:29 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4941 |
2648
|
4942 * defaults.cc (exec_path): Don't include bin_dir in std_path. |
|
4943 |
2646
|
4944 * pager.cc (do_sync): Flush the cout stream after writing if |
|
4945 running in interactive or forced_interactive mode. |
|
4946 |
|
4947 * mk-oct-links: Rename from mk-oct-links.in. |
|
4948 Don't use symbolic links. |
|
4949 * Makefile.in: Distribute mk-oct-links, not mk-oct-links.in |
|
4950 (mk-oct-links): Delete target. |
|
4951 (install-oct, bin-dist): Don't depend on mk-oct-links. |
|
4952 Run $(srcdir)/mk-oct-links, not ./mk-oct-links. |
|
4953 |
2643
|
4954 * qr.cc (qr): Doc fix. |
|
4955 |
2638
|
4956 Tue Jan 28 10:48:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4957 |
|
4958 * Makefile.in (install-inc): Create a relative symbolic link. |
|
4959 (install-bin): Create a relative symbolic link. |
|
4960 |
2630
|
4961 Mon Jan 27 12:12:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4962 |
2634
|
4963 * Version 2.0.2 released. |
|
4964 |
|
4965 * Makefile.in (CXXFLAGS_NO_PT_FLAGS): Rename from XALL_CXXFLAGS. |
|
4966 Substitute bsd_gcc_kluge_targets_frag. |
|
4967 |
2630
|
4968 * sysdep.cc (Fsleep): New function. |
|
4969 (Fusleep): New function. |
|
4970 |
|
4971 * toplev.cc (octave_config_info): Don't include RLD_FLAG. |
|
4972 * oct-conf.h.in: Don't define RLD_FLAG |
|
4973 |
2626
|
4974 Sun Jan 26 19:41:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4975 |
|
4976 * sighandlers.cc (sigchld_handler): Block SIGCHLD while |
|
4977 sigchld_hander is running. |
|
4978 |
2624
|
4979 Sat Jan 25 22:36:39 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4980 |
|
4981 * Makefile.in (bin-dist): Update for 2.x. |
|
4982 |
2621
|
4983 Fri Jan 24 10:05:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4984 |
|
4985 * mk-oct-links.in: New arg, -p, to just print list of files to link. |
|
4986 |
|
4987 * lex.l (handle_number): Convert `D' or `d' exponents to `e' |
|
4988 before scanning. |
|
4989 |
2620
|
4990 Thu Jan 23 10:00:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4991 |
|
4992 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_no_op_command): |
|
4993 New function. |
|
4994 * pt-cmd.h, pt-cmd.cc (tree_no_op_command): New class. |
|
4995 * parse.y (make_break_command, make_continue_command, |
|
4996 make_return_command): Where they don't really make sense, turn |
|
4997 these commands into no-ops. Accept return and break if reading a |
|
4998 script file. |
|
4999 * toplev.cc (parse_and_execute): Handle return and break in script |
|
5000 files. Quit executing commands if an error occurs when reading a |
|
5001 script file. Set global_command to 0 after deleting it. |
|
5002 (main_loop): If not interactive or forced_interactive, handle |
|
5003 break and return, and quit executing commands if an error occurs. |
|
5004 Set global_command to 0 after deleting it. |
|
5005 * error.cc (Ferror): Doc fix. |
|
5006 * pt-walk.h (tree_walker): Add declaration for visit_no_op_command. |
|
5007 |
2618
|
5008 Wed Jan 22 20:54:12 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5009 |
|
5010 * input.cc (gnu_readline): If not using readline, flush |
|
5011 rl_outstream after printing prompt. |
|
5012 (octave_gets): Also call flush_octave_stdout() if |
|
5013 forced_interactive, not just if interactive. |
|
5014 (do_input_echo): If forced_interactive, only echo prompt and |
|
5015 command line if also reading a script file. |
|
5016 |
2616
|
5017 Tue Jan 21 23:02:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5018 |
|
5019 * SLList.h: Include "BaseSLList.h", not <BaseSLList.h>. |
|
5020 |
2610
|
5021 Mon Jan 20 11:11:12 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5022 |
2614
|
5023 * lex.l (token_stack): Don't declare static. |
|
5024 * pt-plot.cc (tmp_files): Likewise. |
|
5025 * toplev.cc (octave_atexit_functions): Likewise. |
|
5026 * unwind-prot.cc (unwind_protect_list): Likewise. |
|
5027 |
2613
|
5028 * ops.h (MX_MX_BOOL_OP): Correctly handle case of one or both |
|
5029 arguments being empty. Change all callers. |
|
5030 |
|
5031 * oct-stream.cc (printf_value_cache::looking_at_string): |
|
5032 Handle empty strings correctly now that they are 0x0. |
|
5033 |
2610
|
5034 * file-io.cc: Don't include "syswait.h" here. |
|
5035 |
|
5036 Sun Jan 19 22:38:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5037 |
|
5038 * oct-stream.h (octave_base_stream::seek): Declare offset arg as |
|
5039 streamoff, not streampos. |
|
5040 (octave_stream::seek): Likewise. |
|
5041 * oct-strstrm.h (octave_base_strstream::seek): Likewise. |
|
5042 * oct-stdstrm.h (octave_base_stdiostream::seek): Likewise. |
|
5043 * oct-iostrm.h (octave_base_iostream::seek): Likewise. |
|
5044 * oct-fstrm.h (octave_fstream::seek): Likewise. |
|
5045 |
2609
|
5046 Fri Jan 17 18:13:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5047 |
|
5048 * file-io.cc (Ffflush): Handle stdout as a special case. |
|
5049 |
|
5050 * oct-stream.cc (octave_stream_list::do_get_file_number): |
|
5051 Do the work for octave_stream::get_file_number. |
|
5052 (octave_stream_list::get_file_number): Convert to static function. |
|
5053 |
2608
|
5054 Wed Jan 8 11:42:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5055 |
|
5056 * log.cc (sqrtm): For complex arg case, compute sqrt, not log. |
|
5057 |
2602
|
5058 Tue Jan 7 00:16:41 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5059 |
|
5060 * Version 2.0.1 released. |
|
5061 |
|
5062 Mon Jan 6 00:00:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5063 |
|
5064 * pt-mat.cc (tm_row_const_rep::all_mt): New variable. |
|
5065 (tm_row_const::all_empty): New function. |
|
5066 (tm_row_const::tm_row_const_rep::init): Set all_mt here. |
|
5067 (tm_const::all_mt): New variable. |
|
5068 (tm_const::all_emtpy): New function. |
|
5069 (tm_const::init): Set all_mt here. |
|
5070 (tree_matrix::eval): Return an empty matrix if the list contains |
|
5071 only empty elements. If it contains only empty strings, return an |
|
5072 empty string. |
|
5073 |
2601
|
5074 Sun Jan 5 12:50:25 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5075 |
|
5076 * ops.h (SC_MX_BOOL_OP, MX_SC_BOOL_OP): New arg, empty_result. |
|
5077 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
5078 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
5079 op-s-cm.cc, op-s-m.cc, op-str-str.cc: Change all uses of |
|
5080 SC_MX_BOOL_OP and MX_SC_BOOL_OP macros. Return correct results |
|
5081 for empty matrix cases. |
|
5082 |
|
5083 * pt-fcn.cc (tree_function::eval): If Vdefine_all_return_values is |
|
5084 true, initialize return values before evaluating function, for |
|
5085 compatibility with Matlab. |
|
5086 |
|
5087 * oct-stream.cc (get_size): Correctly set size when arg is scalar. |
|
5088 |
|
5089 Thu Jan 2 12:40:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5090 |
|
5091 * Makefile.in (install-oct): Quote $(OCT_FILES) in for loop to |
|
5092 avoid syntax error from ksh. |
|
5093 |
|
5094 * pr-output.cc (octave_print_internal): Avoid unused parameter |
|
5095 warning from gcc. |
|
5096 |
2600
|
5097 Thu Dec 19 12:13:42 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5098 |
|
5099 * oct-stream.cc (octave_base_stream::do_scanf): |
|
5100 Don't treat %l{e,f,g} differently from %{e,f,g}. |
|
5101 (octave_base_stream::do_oscanf): Likewise. |
|
5102 |
|
5103 * sighandlers.cc (sigchld_handler): Fix typos. |
|
5104 |
2598
|
5105 Wed Dec 18 20:17:23 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5106 |
2599
|
5107 * file-io.cc (Ffgetl, Ffgets): Also return number of characters read. |
|
5108 |
|
5109 * ov-range.cc (octave_range::not): New function. |
|
5110 * ov-range.h (octave_range::uminus): New function. |
|
5111 |
2598
|
5112 * BaseSLList.cc: Include error.h. |
|
5113 (BaseSLList::error): Call ::error() to process error message. |
|
5114 |
2589
|
5115 Fri Dec 13 02:38:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5116 |
|
5117 * ov.cc (octave_value::convert_and_assign): Preserve lhs value if |
|
5118 assignment fails. |
|
5119 |
2586
|
5120 Wed Dec 11 12:33:16 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5121 |
|
5122 * pt-plot.cc (GPLOT_CMD_END): Don't put semicolons at the end of |
|
5123 each plot command; it causes trouble with gnuplot 3.5. |
|
5124 |
2580
|
5125 Tue Dec 10 00:31:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5126 |
2583
|
5127 * Version 2.0 released. |
|
5128 |
2584
|
5129 * pr-output.cc (set_format_style): Don't try to access argv unless |
|
5130 argc > 1. |
|
5131 |
2580
|
5132 * SLList-expr.cc SLList-misc.cc SLList-plot.cc SLList-str.cc |
|
5133 SLList-tc.cc SLList-tm.cc SLList.h SLStack-i.cc SLStack-pc.cc |
|
5134 SLStack-str.cc SLStack-sym.cc SLStack-tok.cc SLStack-ue.cc |
|
5135 SLStack-ui.cc, pt-mat.cc: Include Stack.h, Stack.cc, SLStack.cc, |
|
5136 and SLList.cc as necessary. |
|
5137 |
|
5138 * Stack.cc, SLStack.cc, SLList.cc: New files. |
|
5139 * Makefile.in (SOURCES): Add them to the list. |
|
5140 |
2575
|
5141 Mon Dec 9 12:03:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5142 |
2577
|
5143 * Makefile.in (install-bin): Use $(EXE) suffix so install will |
|
5144 find the right file on cygwin32 systems. |
|
5145 |
2575
|
5146 * ov.h: Declare proper form of do_binary_op as friend to |
|
5147 octave_value class. |
|
5148 |
2572
|
5149 Sat Dec 7 22:00:10 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5150 |
|
5151 * oct-stream.cc (do_printf_conv, do_scanf_conv, |
|
5152 do_oscanf_num_conv, do_oscanf_str_conv): Convert to real |
|
5153 functions instead of CPP macros, using templates where necessary. |
|
5154 (do_oscanf_num_conv, do_oscanf_str_conv): Correctly handle |
|
5155 discarded values. |
|
5156 |
2569
|
5157 Fri Dec 6 00:20:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5158 |
2572
|
5159 * Version 1.94. |
|
5160 |
2571
|
5161 * Map-*.cc, SLList-*.cc, SLStack-*.cc: Include config.h. |
|
5162 |
|
5163 * ov.h: Don't include SLList.h. |
|
5164 |
|
5165 * SLStack.cc: Delete. Move everything to SLStack.h. |
|
5166 |
|
5167 * BaseSLList.h, BaseSLList.cc: New files. Split out the |
|
5168 non-template base class parts of SLList. |
|
5169 |
2569
|
5170 * Makefile.in (TEMPLATE_SRC): Delete. Move files to SOURCES. |
|
5171 * Map.h, Map.cc: Add #pragma interface/implementation. |
|
5172 * SLStack.h, SLStack.cc: Add #pragma interface/implementation. |
|
5173 |
|
5174 * SLList.h, SLList.cc: New files, from libg++, but with #pragma |
|
5175 interface/implementation. |
|
5176 * Makefile.in (SOURCES): Add SLList.cc. |
|
5177 (INCLUDES): Add SLList.h. |
|
5178 |
2566
|
5179 Thu Dec 5 18:36:44 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5180 |
|
5181 * octave.cc: Don't include sun-utils.h. |
|
5182 |
2563
|
5183 Tue Dec 3 23:47:09 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5184 |
|
5185 * op-str-str.cc (eq, ne): Handle operations with scalars. |
|
5186 |
2555
|
5187 Thu Nov 21 12:30:36 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5188 |
|
5189 * ov-str-mat.h (octave_char_matrix_str): Provide transpose and |
|
5190 hermitian operators. |
|
5191 * ov-ch-mat.h (octave_char_matrix): Likewise. |
|
5192 |
2548
|
5193 Wed Nov 20 00:35:57 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5194 |
2554
|
5195 * sighandlers.h (struct octave_interrupt_handler): Provide |
|
5196 forward declaration here. |
|
5197 * sighandlers.cc (octave_interrupt_handler): New struct. |
|
5198 (octave_catch_interrupts): Rename from catch_interrupts. |
|
5199 (octave_ignore_interrupts, octave_set_interrupt_handler): |
|
5200 New functions. |
|
5201 * help.cc, oct-hist.cc, pager.cc, toplev.cc: Use new functions for |
|
5202 handling interrupts so that we can hide the details of whether or |
|
5203 not we have to deal with SIGBREAK. |
|
5204 |
|
5205 * pt-plot.cc [! HAVE_POSIX_SIGNALS] (open_plot_stream): |
|
5206 Simply ignore and restore the interrupt handler here. |
|
5207 |
|
5208 * sighandlers.cc (MAYBE_REINSTALL_SIGHANDLER): New macro. Use it |
|
5209 instead of always checking MUST_REINSTALL_SIGHANDLERS everywhere. |
|
5210 (sigchld_handler): If octave_child_list is empty, wait for any |
|
5211 child, but don't hang, and don't collect status info. |
|
5212 [__EMX__] (sigchld_handler): Save and restore handlers for SIGINT, |
|
5213 SIGBREAK, and SIGCHLD. Ignore them while waiting on children. |
|
5214 (install_signal_handlers): If SIGBREAK exists, handle it like SIGINT. |
|
5215 |
2552
|
5216 * toplev.cc [USE_READLINE] (clean_up_and_exit): |
|
5217 Call rl_deprep_terminal() to restore terminal settings. |
|
5218 |
|
5219 * sysdep.cc [__EMX__ && OS2] (Fextproc): New command. |
|
5220 [__EMX__ && OS2] (FEXTPROC): Alias for Fextproc. |
|
5221 |
|
5222 * Version 1.93. |
|
5223 |
2549
|
5224 * sysdep.cc (octave_chdir): [__EMX__]: Make copy of string before |
|
5225 converting to upper case. |
|
5226 |
2548
|
5227 * getgrent.cc (mk_gr_map): Only set the passwd field if |
|
5228 HAVE_GR_PASSWD is defined. |
|
5229 |
2533
|
5230 Tue Nov 19 12:01:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5231 |
2546
|
5232 * sysdep.cc (OS2_init): New function. |
|
5233 [__EMX__] (sysdep_init): Call it. |
|
5234 |
2542
|
5235 * lex.l (plot_style_token): Add new plot styles for gnuplot 3.6. |
2543
|
5236 * pt-plot.cc (subplot_style::columns_ok): Rename from |
|
5237 subplot_style::errorbars. Recognize more styles and do a better |
|
5238 job of diagnosing column number/style mismatches. |
2542
|
5239 |
2536
|
5240 * sighandlers.cc (my_friendly_exit): If we are called twice, try |
|
5241 to remove the signal handler for SIGABRT and the call abort (). |
|
5242 |
2534
|
5243 * help.cc (Ftype): If a function is defined from a file and |
|
5244 transformed text has not been requested, just print the contents |
|
5245 of the file. |
|
5246 |
2533
|
5247 * parse.y (fold): New functions for constant folding for binary |
|
5248 and unary expressions. Keep track of original text even when |
|
5249 transformations occur. |
|
5250 (make_binary_op, make_boolean_op, make_unary_op): Use them. |
|
5251 (finish_colon_expression, finish_matrix): Keep track of original |
|
5252 text even when transformations occur. |
|
5253 |
|
5254 * help.cc (Ftype): Don't mess with Vps4. |
|
5255 Handle new option `-transformed'. |
|
5256 |
|
5257 * pt-const.h, pt-const.cc (tree_constant::print): |
|
5258 New arg, pr_orig_text. |
|
5259 |
|
5260 * pt-exp.h, pt-exp.cc (tree_colon_expression::is_range_constant): |
|
5261 Delete. |
|
5262 |
|
5263 * pt-exp-base.h (tree_expression::original_text): New virtual function. |
|
5264 pt-exp-base.cc (tree_expression::original_text): Default version. |
|
5265 |
|
5266 * pt-pr-code.h (tree_print_code::print_original_text, |
|
5267 tree_print_code::prefix): New fields. |
|
5268 * pt-pr-code.cc (tree_print_code::visit_constant): Pass |
|
5269 print_original_text to tree_constant::print(). |
|
5270 (tree_print_code::indent): Use prefix instead of Vps4. |
|
5271 * pt-fcn.cc (tree_function::print_function_header, |
|
5272 tree_function::print_function_trailer): Pass Vps4 to |
|
5273 tree_print_code_constructor for prefix. |
|
5274 * pt-misc.cc (tree_statement::maybe_echo_code): Pass Vps4 to |
|
5275 tree_print_code_constructor for prefix. |
|
5276 |
|
5277 * pt-mat.h, pt-mat.cc (tree_matrix::all_elements_are_constant): |
|
5278 Rename from is_matrix_constant. |
|
5279 (tree_matrix_row::all_elements_are_constant): Likewise. |
|
5280 Change all callers. |
|
5281 |
|
5282 Mon Nov 18 14:13:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5283 |
|
5284 * Makefile.in (install-inc): Try harder to create the link from |
|
5285 include/octave to include/octave-VERSION. |
|
5286 |
2524
|
5287 Sun Nov 17 14:14:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5288 |
2527
|
5289 * Makefile.in (parse.cc): Expect 13 shift/reduce conflicts. |
2526
|
5290 |
2525
|
5291 * parse.y (set_stmt_print_flag): New function. |
|
5292 (sep_type): New member for bison %union declaration. |
|
5293 Simplify rules for statement lists keeping track of the type of |
|
5294 the first separator in the values associated with the |
|
5295 nonterminals for the separators. |
|
5296 |
2524
|
5297 * lex.l (handle_identifier): Set lexer_flags.doing_set if the |
|
5298 token is "gset", not "set". |
|
5299 |
|
5300 Sat Nov 16 21:41:26 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5301 |
|
5302 * Makefile.in (parse.cc, lex.cc): Add special rules for these files. |
|
5303 Delete pattern rules for .y and .l files. |
|
5304 |
2522
|
5305 Fri Nov 15 13:48:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5306 |
2523
|
5307 * pt-plot.cc: Put semicolons at the ends of all plot commands. |
|
5308 |
2522
|
5309 * defaults.cc (subst_octave_home): Start subsequent searchs from |
|
5310 the end of the replaced text. |
|
5311 |
|
5312 * pr-output.cc (pr_any_float): Kluge for SCO systems. |
|
5313 |
|
5314 * pr-output.cc (pr_any_float, pr_complex): Don't declare inline. |
|
5315 |
|
5316 * mappers.cc: Include lo-ieee.h, for isinf and isnan on SCO |
|
5317 systems. |
|
5318 |
2512
|
5319 Thu Nov 14 00:06:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5320 |
2520
|
5321 * pt-plot.cc (Fgset, Fgshow): New commands. |
|
5322 (Fshow): Print warning and call gshow. |
|
5323 (Fset): Print warning and call gset. |
|
5324 |
2517
|
5325 * variables.cc (parse_fcn_file): Add unwind-protect for file |
|
5326 pointer, so the file is always closed. |
|
5327 (get_help_from_file): Likewise. |
|
5328 * toplev.cc (parse_and_execute): Likewise. |
|
5329 |
2516
|
5330 * Makefile.in (install-oct): Depend on mk-oct-links. |
|
5331 (mk-oct-links): New target. |
|
5332 |
2512
|
5333 * Version 1.92. |
|
5334 |
2508
|
5335 Wed Nov 13 11:13:22 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5336 |
2512
|
5337 * sighandlers.cc (sys_siglist): [__EMX__]: Add definitions. |
|
5338 |
|
5339 * octave.cc (execute_startup_files): Allow init file name ot be |
|
5340 specified by an environment variable. |
|
5341 |
|
5342 * dirfns.cc (make_absolute): [__EMX__]: Path is already absolute |
|
5343 if it begins with any character followed by a colon. |
|
5344 |
2511
|
5345 * load-save.cc (read_mat_ascii_matrix, get_lines_and_columns, |
|
5346 get_complete_line): New functions, for reading headless text files. |
|
5347 (load_save_format): Add LS_MAT_ASCII, for headless text files. |
|
5348 (do_load): Handle LS_MAT_ASCII files. |
|
5349 Thanks to Mel Melchner <mjm@research.att.com> for initial version |
|
5350 of this code. |
|
5351 |
2508
|
5352 * sysdep.cc: Conditionally include ieeefp.h. |
|
5353 (BSD_init, SCO_init): New functions. |
|
5354 (sysdep_init): Conditionally call them here. |
|
5355 |
2499
|
5356 Tue Nov 12 00:14:56 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5357 |
2508
|
5358 * pt-plot.cc (open_plot_stream): Don't block SIGCHLD. |
|
5359 |
2499
|
5360 * load-save.cc (read_binary_data): When reading string arrays, be |
|
5361 sure to create an octave_char_matrix_str object, not just an |
|
5362 octave_char_matrix object. |
|
5363 (read_ascii_data): Likewise. |
|
5364 |
2497
|
5365 Mon Nov 11 22:52:58 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5366 |
|
5367 * load-save.cc (read_binary_data): Don't forget teminating NUL for |
|
5368 string that we plan to insert. |
|
5369 (read_ascii_data): Likewise. |
|
5370 |
2495
|
5371 Sun Nov 10 16:58:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5372 |
2496
|
5373 * dirfns.cc (Ffnmatch): New function. |
|
5374 |
2495
|
5375 * octave.cc (intern_argv): Use new string_vector constructor. |
|
5376 |
|
5377 * ov-str-mat.cc (octave_char_matrix_str::all_strings): Have |
|
5378 charMatrix::row_as_string() strip trailing whitespace. |
|
5379 |
|
5380 * dirfns.cc (Fglob): new function. |
|
5381 |
|
5382 * sysdep.cc (oct_tilde_expand): Provide version that works on |
|
5383 string vectors too. |
|
5384 (Ftilde_expand): Work on string vector args. |
|
5385 |
|
5386 * load-save.cc (save_binary_data): Call char_matrix_value() to |
|
5387 extract charMatrix from octave_value object, not all_strings(). |
|
5388 (save_ascii_data): Likewise. |
|
5389 * pt-mat.cc (tree_matrix::eval): Likewise. |
|
5390 |
|
5391 * ov.h (octave_value::all_strings): Return string_vector, not |
|
5392 charMatrix. |
|
5393 * ov-base.cc (octave_base_value::all_strings): Likewise. |
|
5394 * ov-str-mat.h, ov-str-mat.cc (octave_char_matrix_str::all_strings): |
|
5395 Likewise. |
|
5396 |
2487
|
5397 Fri Nov 8 09:54:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5398 |
2492
|
5399 * defaults.cc, dynamic-ld.cc, fn-cache.cc, help.cc, oct-hist.cc, |
|
5400 octave.cc, pager.cc, pt-fcn.cc, toplev.cc, utils.cc, variables.cc, |
|
5401 lex.l: Change #include "" to #include <> for defaults.h, |
|
5402 oct-conf.h, oct-gperf.h, y.tab.h, and version.h, to avoid getting |
|
5403 them from $srcdir when we really want the version from the build |
|
5404 directory. (Maybe this should be done for all the include files, |
|
5405 not just those that are auto-generated? Hmm.) |
|
5406 |
2488
|
5407 * defaults.h.in (CXXLIB_LIST, CXXLIB_PATH, FLIB_LIST, FLIB_PATH): |
|
5408 Delete. |
|
5409 |
2487
|
5410 * Makefile.in (install-oct): Use $(INSTALL_PROGRAM) for .oct files. |
|
5411 |
2477
|
5412 Thu Nov 7 07:59:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5413 |
2487
|
5414 * variables.cc (gobble_leading_white_space): New arg, update_pos. |
|
5415 * (is_function_file): Don't update file position information here. |
|
5416 |
2482
|
5417 * Version 1.91. |
|
5418 |
2479
|
5419 * pt-fvc.cc (tree_indirect_ref::reference): If the lhs object is |
|
5420 not a map, convert it to one. |
|
5421 |
|
5422 * ov-typeinfo.h (init_tab_sz): New static member. |
|
5423 |
2477
|
5424 * ov-struct.cc, ov-struct.h: Add hooks for custom memory management. |
|
5425 * ov-scalar.cc, ov-scalar.h: Likewise. |
|
5426 * ov-re-mat.cc, ov-re-mat.h: Likewise. |
|
5427 * ov-range.cc, ov-range.h: Likewise. |
|
5428 * ov-cx-mat.cc, ov-cx-mat.h: Likewise. |
|
5429 * ov-complex.cc, ov-complex.h: Likewise. |
|
5430 * ov-ch-mat.cc, ov-ch-mat.h: Likewise. |
|
5431 |
2474
|
5432 Wed Nov 6 12:32:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5433 |
2482
|
5434 * pager.cc (do_sync): Don't call clear_external_pager() here. |
2476
|
5435 |
2475
|
5436 * pt-const.h (tree_constant::allocator) New static member. |
|
5437 (tree_constant::operator new, tree_constant::operator delete): |
|
5438 Implement with custom allocator. |
|
5439 |
|
5440 * syscalls.cc (Fgetgid, Fgetegid): New functions. |
|
5441 |
|
5442 * sighandlers.cc (sigchld_handler): If necessary, reinstall |
|
5443 handler after call to waitpid(). |
|
5444 |
|
5445 * pager.cc (pager_death_handler): Don't use warning() to print |
|
5446 message. |
|
5447 |
|
5448 * getgrent.cc: New file. |
|
5449 * Makefile.in (DLD_SRC): Add it. |
|
5450 |
|
5451 * ov.cc (octave_value::print_with_name): Call is_map() instead of |
|
5452 print_as_structure(). |
|
5453 * ov-struct.cc (octave_struct::print): Likewise. |
|
5454 |
|
5455 * ov.h, ov.cc, pt-const.h: Delete force_numeric(), make_numeric(), |
|
5456 convert_to_matrix_type(), print_as_structure() member functions. |
|
5457 |
2474
|
5458 * variables.cc (is_function_file): Call gobble_leading_whitespace |
|
5459 here to strip all leading whitespace and comments. |
|
5460 (parse_fcn_file): If reading a function file, call |
|
5461 gobble_leading_whitespace again after resetting parser state to |
|
5462 grab help text. |
|
5463 |
2469
|
5464 Tue Nov 5 13:00:35 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5465 |
2472
|
5466 * syscalls.cc (Fgeteuid, Fgetuid): New functions. |
|
5467 |
|
5468 * getpwent.cc: Use gripe_not_supported from gripes.cc, instead of |
|
5469 local gripe_not_implemented function. |
|
5470 |
2470
|
5471 * input.cc, sysdep.cc, variables.cc: Only include readline.h and |
|
5472 history.h if USE_READLINE is defined. |
|
5473 |
|
5474 * help.cc: Make it compile without warnings even if USE_GNU_INFO |
|
5475 is not defined. |
|
5476 |
2469
|
5477 * sighandlers.h (octave_child_list): Don't define |
|
5478 HAVE_POSIX_SIGNALS HERE. |
|
5479 |
|
5480 * sighandlers.cc (SIGHANDLER_RETURN): New macro. |
|
5481 (generic_sig_handler, sigchld_handler, sigfpe_handler, |
|
5482 sigint_handler, sigpipe_handler): Use it. |
|
5483 (sigchld_handler, sigfpe_handler, sigint_handler, sigpipe_handler): |
|
5484 Only reinstall signal handler if MUST_REINSTALL_SIGHANDLER is defined. |
|
5485 |
2463
|
5486 Sun Nov 3 00:45:30 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5487 |
2466
|
5488 * pt-const.cc (tree_constant::print): Just call val.print(). |
|
5489 * ov-base.cc, ov-ch-mat.cc, ov-colon.cc, ov-complex.cc, |
|
5490 ov-cx-mat.cc, ov-range.cc, ov-re-mat.cc, ov-scalar.cc, |
|
5491 ov-str-mat.cc, ov-struct.cc ov-va-args.cc, ov.cc (print): |
|
5492 Handle pr_as_read_syntax arg. |
|
5493 |
|
5494 * defaults.cc (subst_octave_home): Search for prefix repeatedly in |
|
5495 retval, not s. |
|
5496 |
|
5497 * gripes.h: Make declaration of gripes_not_supported match |
|
5498 definition. |
|
5499 |
2465
|
5500 * mk-oct-links.in: In sed command, match "DEFUN_DLD *( *", not |
|
5501 "DEFUN_DLD_BUILTIN *( *". |
|
5502 |
|
5503 * chol.cc, colloc.cc, dassl.cc, det.cc, eig.cc, expm.cc, fft.cc, |
|
5504 fft2.cc, filter.cc, find.cc, fsolve.cc, fsqp.cc, getpwent.cc, |
|
5505 getrusage.cc, givens.cc, hess.cc, ifft.cc, ifft2.cc, inv.cc, |
|
5506 log.cc, lpsolve.cc, lsode.cc, lu.cc, minmax.cc, npsol.cc, pinv.cc, |
|
5507 qpsol.cc, qr.cc, quad.cc, qzval.cc, rand.cc, schur.cc, sort.cc, |
|
5508 svd.cc, syl.cc, time.cc: Change all uses of DEFUN_DLD_BUILTIN to |
|
5509 be just DEFUN_DLD. |
|
5510 |
|
5511 * defun-dld.h: Eliminate DEFUN_DLD_BUILTIN. |
|
5512 |
2464
|
5513 * syswait.h: Use #ifdef HAVE_SYS_WAIT_H, not #if HAVE_SYS_WAIT_H |
|
5514 to decide whether to include sys/wait.h. |
|
5515 |
|
5516 * pt-exp-base.h (tree_expression): Declare oper() here as a |
|
5517 virtual member function. |
|
5518 |
2463
|
5519 * pt-pr-code.cc (tree_print_code::visit_constant): Check for |
|
5520 string before checking for char_matrix. |
|
5521 |
|
5522 * ov-ch-mat.cc (octave_char_matrix::print): Supply correct number |
|
5523 of args to octave_print_internal(). |
|
5524 |
2457
|
5525 Sat Nov 2 20:44:55 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5526 |
2458
|
5527 * file-io.cc (Ftmpnam): Rename from Foctave_temp_file_name. |
|
5528 |
2457
|
5529 * Makefile.in (DLD_SRC): Move time.cc and getrusage.cc here from |
|
5530 SOURCES. Add getpwent.cc. |
|
5531 |
|
5532 * getrusage.cc: Rename from resource.cc. Make getrusage a |
|
5533 loadable function. |
|
5534 |
|
5535 * time.cc: Rename from timefns.cc. Make time functions loadable. |
|
5536 |
|
5537 * getpwent.cc: New file. |
|
5538 |
2439
|
5539 Wed Oct 30 01:06:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5540 |
2452
|
5541 * Version 1.90. |
|
5542 |
|
5543 * Makefile.in (DISTFILES): Add ChangeLog. |
|
5544 |
2449
|
5545 * ov-range.cc (octave_range::convert_to_str): New function. |
|
5546 |
|
5547 * ov-str-mat.h (octave_char_matrix_str::char_matrix_value): |
|
5548 Delete function. Already handled by octave_char_matrix class. |
|
5549 |
|
5550 * ov-ch-mat.h (octave_char_matrix::convert_to_str): New function. |
|
5551 |
2448
|
5552 * pager.cc (Fmore): Set page_screen_output to 1.0 or 0.0, not |
|
5553 "true" or "false". |
|
5554 |
2447
|
5555 * ov-ch-mat.cc, ov-struct.cc, ov-struct.h, pr-output.cc, |
|
5556 pt-cmd.cc, pt-const.cc, pt-const.h, pt-fcn.cc, pt-fvc-base.cc, |
|
5557 pt-fvc-base.h, pt-fvc.cc, pt-fvc.h, rand.cc, sighandlers.cc, |
|
5558 variables.cc, variables.h: Delete unused code. |
|
5559 |
2445
|
5560 * octave.cc: Only include pwd.h if HAVE_PWD_H. |
|
5561 |
|
5562 * oct-strstrm.h: Include <string>, not <string.h>. |
|
5563 |
2442
|
5564 * defaults.cc, dirfns.cc, file-io.cc, help.cc, input.cc, |
|
5565 oct-hist.cc, oct-procbuf.cc, oct-procbuf.h, octave.cc, pager.h, |
|
5566 procstream.h, pt-misc.cc, pt-plot.cc, sighandlers.cc, strftime.c, |
|
5567 syscalls.cc, sysdep.cc, syswait.h, toplev.cc, utils.cc, |
|
5568 variables.cc: Only include sys/types.h if HAVE_SYS_TYPES_H. |
|
5569 |
2440
|
5570 * error.h (panic): Use GCC_ATTR_NORETURN macro, not NORETURN. |
|
5571 * toplev.h (clean_up_and_exit): Likewise. |
|
5572 * utils.h (jump_to_top_level): Likewise. |
|
5573 |
2439
|
5574 * derfaults.h.in, defaults.cc (local_arch_lib_dir): New variable. |
|
5575 * defaults.cc (set_default_local_arch_lib_dir): New function. |
|
5576 (install_defaults): Call it. |
|
5577 (exec_path): Use Vlocal_arch_lib_dir here. |
|
5578 * toplev.cc (octave_config_info): Add localarchlibdir to structure. |
|
5579 |
2436
|
5580 Tue Oct 29 15:54:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5581 |
2437
|
5582 * Makefile.in (install-oct): Don't do anything if $(OCT_FILES) is |
|
5583 empty. |
|
5584 |
2436
|
5585 * ov-range.cc (octave_range::index): New Function. |
|
5586 (octave_range::all, octave_range::any, octave_range::is_true): |
|
5587 Make these functions work. |
|
5588 |
|
5589 * ov.cc (octave_value::try_assignment_with_conversion): Remove |
|
5590 left over debugging print statements. |
|
5591 |
|
5592 Mon Oct 28 10:49:03 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5593 |
|
5594 * strftime.c: Add missing #endif for previous change. |
|
5595 |
2435
|
5596 Sun Oct 27 14:06:44 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5597 |
|
5598 * oct-hist.cc (do_history): Rewite option parsing to avoid |
|
5599 (probably bogus) errors from g++ on cygwin32 system. |
|
5600 |
|
5601 * strftime.c: Use autoconf macros TIME_WITH_SYS_TIME and |
|
5602 HAVE_SYS_TIME_H to decide which time.h files to include. |
|
5603 |
|
5604 * oct-stream.h, oct-stream.cc (octave_stream::error, |
|
5605 octave_base_stream::error): Rename errno => err_num. |
|
5606 |
2432
|
5607 Sat Oct 26 10:40:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5608 |
2434
|
5609 * oct-hist.cc (do_history): Move declaration of file inside |
|
5610 conditional. |
|
5611 |
2432
|
5612 * defun.h (DEFVAR_INT): Set eternal flag with (svc_fcn != 0) |
|
5613 instead of (sv_fcn ? 1 : 0) |
|
5614 |
2427
|
5615 Fri Oct 25 01:10:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5616 |
2431
|
5617 * ov-ch-mat.h (octave_char_matrix::any): Return 0.0 instead of false. |
|
5618 (octave_char_matrix::all): Likewise. |
|
5619 |
|
5620 * input.cc (Fecho): When binding value of echo_executing_commands, |
|
5621 cast ECHO_* to double. |
|
5622 |
|
5623 * sighandlers.cc (octave_child_list::do_remove): Delete unused |
|
5624 variable `enlarge'. |
|
5625 |
|
5626 * pt-const.h (tree_constant::tree_constant (const tree_constant&)): |
|
5627 Don't pass arg to tree_fvc constructor. |
|
5628 |
2427
|
5629 * resource.cc (getrusage): [HAVE_GETRUSAGE && RUSAGE_TIMES_ONLY]: |
|
5630 Only fill in time values. |
|
5631 |
|
5632 Thu Oct 24 20:37:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5633 |
|
5634 * parse.y: Comment out the %expect declaration so byacc can |
|
5635 compile this file. |
|
5636 (if_cmd_list): Add missing semicolon. |
|
5637 Include <cstdlib> for getenv if using byacc. |
|
5638 |
|
5639 * ov.h: Move typedefs outside of octave_value class scope to avoid |
|
5640 problem with cygwin32 beta16 compiler. |
|
5641 |
2421
|
5642 Fri Oct 18 13:44:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5643 |
2423
|
5644 * ov.h (octave_value::index): Undo previous change. |
|
5645 * ov.cc (octave_value constructors): Call maybe_mutate() in most |
|
5646 cases. |
|
5647 |
|
5648 * ov-complex.cc (octave_complex::index): Avoid implicit type |
|
5649 conversion back to scalar type. |
|
5650 * ov-scalar.cc (octave_scalar::index): Likewise. |
|
5651 |
2421
|
5652 * ov.h (octave_value::index): Call maybe_mutate() on retval before |
|
5653 returning it. |
|
5654 |
2418
|
5655 Wed Oct 16 12:00:11 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5656 |
2420
|
5657 * ov.h (octave_value::struct_elt_val): New optional arg, silent. |
|
5658 * ov-base.h, ov-base.cc, ov-struct.h, ov-struct.cc: Likewise, but |
|
5659 for the derived classes the arg is required. |
|
5660 |
|
5661 * data.cc (Fstruct_contains): Require arguments to be struct and |
|
5662 string, respectively. Call octave_value::struct_elt_val with |
|
5663 silent flag set. |
|
5664 |
2419
|
5665 * pt-mat.cc (tm_row_const::tm_row_const_rep::eval_error, |
|
5666 tm_row_const::tm_row_const_rep::eval_warning): New functions. |
|
5667 (tm_row_const::tm_row_const (const tree_matrix_row&): Use them to |
|
5668 give better error messages. |
|
5669 |
2418
|
5670 * pt-fvc.cc (tree_identifier::eval): Avoid dereferencing null |
|
5671 object_to_eval. |
|
5672 |
2412
|
5673 Tue Oct 15 11:35:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5674 |
|
5675 * op-cs-cm.cc, op-cs-cs.cc, op-cs-m.cc, op-cs-s.cc |
|
5676 (complex_matrix_conv): New functions. |
|
5677 Install preferred assignment conversion and widening ops. |
|
5678 |
|
5679 * op-s-cm.cc, op-s-cs.cc (complex_matrix_conv): New functions. |
|
5680 Install preferred assignment conversion and widening ops. |
|
5681 |
|
5682 * op-s-m.cc, op-s-s.cc (matrix_conv): New functions. |
|
5683 Install preferred assignment conversion and widening ops. |
|
5684 |
|
5685 * ov.cc (octave_value::try_assignment_with_conversion, |
|
5686 octave_value::convert_and_assign, octave_value::try_assignment): |
|
5687 New functions. |
|
5688 (octave_value::assign): Use them to implement twisted logic for |
|
5689 type conversions in assigments. |
|
5690 |
|
5691 * pt-const.h (tree_constant::maybe_mutate): New function. |
|
5692 * ov.h (octave_value::maybe_mutate): New function. |
|
5693 (octave_value::try_narrowing_conversion): New function. |
|
5694 Use just one typedef for widening_op_fcn and numeric_conv_fcn. |
|
5695 Change all uses. |
|
5696 * ov-base.h, ov-complex.h, ov-complex.cc, ov-cx-mat.h, |
|
5697 ov-cx-mat.cc, ov-range.h, ov-range.cc, ov-re-mat.h, ov-re-mat.cc, |
|
5698 Provide derived class versions of try try_narrowing_conversion(). |
|
5699 |
|
5700 * pr-output.cc (octave_print_internal): Don't bother handing off |
|
5701 to scalar/real versions, even when it would seem appropriate. |
|
5702 |
|
5703 * symtab.cc (symbol_def::define (tree_constant *)): Call |
|
5704 maybe_mutate on constants here. |
|
5705 |
2405
|
5706 Mon Oct 14 11:05:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5707 |
2407
|
5708 * pt-fvc.cc (tree_identifier::eval): If retval is undefined and |
|
5709 the object to eval is a constant, print error message. |
2406
|
5710 |
2405
|
5711 * Makefile (distclean): Remove *.oct too. |
|
5712 |
|
5713 * defun-int.h: Include variables.h here. |
|
5714 |
2403
|
5715 Sun Oct 13 10:52:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5716 |
2404
|
5717 * variables.cc (print_symbol_info_line): Never print negative |
|
5718 diminsions. |
|
5719 |
|
5720 * symtab.h (octave_symbol_record_info): Store const_type as string. |
|
5721 (octave_symbol_record_info::init): Delete. Fix constructors. |
|
5722 (octave_symbol_record_info::type_name): Handle const_type as string. |
|
5723 |
2403
|
5724 * octave.cc (maximum_braindamage): Replace "true" with 1.0 and |
|
5725 "false" with 0.0 in calls to bind_builtin_variable(). |
|
5726 Include sun-utils.h here. |
2404
|
5727 (intern_argv): Also bind __argv__. |
2403
|
5728 |
2391
|
5729 Sat Oct 12 13:40:21 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5730 |
2399
|
5731 * Makefile.in (distclean): Also delete mk-oct-links. |
|
5732 |
|
5733 Fri Oct 11 13:13:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5734 |
2391
|
5735 Changes for Octave's new type system: |
|
5736 |
|
5737 * arith-ops.cc: Delete. |
|
5738 * pt-const.h, pt-const.cc: Massive changes. Most functionality |
|
5739 moved to ov.h, ov.cc, and derived classes. |
|
5740 |
|
5741 * variables.h, variables.cc (octave_variable_reference): New class |
|
5742 for getting references to variables and structure elements used in |
|
5743 assignments or value contexts. |
|
5744 |
|
5745 * symtab.h, symtab.cc (symbol_record::define (const octave_value&), |
|
5746 symbol_record::variable_value, symbol_record::variable_reference): |
|
5747 New functions. |
|
5748 (symbol_record_info::type_name): Rename from type_as_string. |
|
5749 |
|
5750 * pt-fvc-base.h, pt-fvc-base.cc (tree_fvc::increment, |
|
5751 tree_fvc::decrement): New functions to replace |
|
5752 tree_fvc::bump_value. |
|
5753 #if 0 assign and lookup_map_element functions. |
|
5754 |
|
5755 * pt-mvr.cc (tree_multi_assignment_expression::eval): |
|
5756 Generated RHS value is now a tree_constant. |
|
5757 |
|
5758 * pt-exp.h, pt-exp.cc (tree_boolean_expression): New class. |
|
5759 (tree_unary_expression, tree_binary_expression, |
|
5760 tree_boolean_expression): Move codes here from tree_expression. |
|
5761 (tree_simple_assignment_expression): Cope with changes to way of |
|
5762 doing assignments. |
|
5763 |
|
5764 * pt-exp-base.h, pt-exp-base.cc (enum type): Delete codes for |
|
5765 unary and binary ops. |
|
5766 (tree_expression::expression_type): Delete. |
|
5767 (tree_expression::is_logically_true): Hand off to |
|
5768 octave_value::is_true to do real work. |
|
5769 |
|
5770 * pr-output.h, pr-output.cc (any_element_is_inf_or_nan, |
|
5771 all_elements_are_ints): Delete. Call member new functions for |
|
5772 these operations. |
|
5773 (free_format, plus_format, bank_format, hex_format, |
|
5774 compact_format, print_e, print_big_e): Use bool, not int. |
|
5775 (octave_print_internal): Hand off to scalar/real versions when |
|
5776 appropriate. |
|
5777 |
|
5778 * octave.cc (main): Call initialize_types() and install_ops(). |
|
5779 (verbose_usage): Add WWW address to output. |
|
5780 |
|
5781 * parse.y (indirect_ref): Handle by making a tree instead of a |
|
5782 list using new version of tree_indirect_ref class. |
|
5783 |
|
5784 * parse.y (make_boolean_op): New function. Use it instead of |
|
5785 make_binary_op to create trees for && and || ops. |
|
5786 (make_binary_op): Codes come from tree_binary_expression now, |
|
5787 instead of tree_expression. |
|
5788 (make_unary_op): Codes come from tree_unary_expression now, |
|
5789 instead of tree_expression. |
|
5790 (make_boolean_op): Codes come from tree_boolean_expression. |
|
5791 |
|
5792 *parse.y (tree_constant_type): Change type to tree_constant* from |
|
5793 octave_value*, and rename from octave_value_type. Change uses. |
|
5794 |
|
5795 * defun.h (DEFVAR_INT): Pass octave_value not pointer to |
|
5796 octave_value for defn when creating builtin_variable. |
|
5797 |
|
5798 * gripes.h, gripes.cc (gripe_invalid_conversion): Args are |
|
5799 strings, not char*. |
|
5800 (gripe_implicit_conversion, gripe_divide_by_zero): New extern |
|
5801 gripe functions. |
|
5802 |
|
5803 * mkbuiltins: For each file, create a separate static function to |
|
5804 install builtins, then create another single extern function to |
|
5805 call all of them. |
|
5806 |
|
5807 * pt-fcn.cc (tree_function::bind_nargin_and_nargout): |
|
5808 Just pass doubles and let symbol_record::define handle creating |
|
5809 new value. |
|
5810 |
|
5811 * pt-pr-code.cc, pt-pr-code.h (visit_constant): Renamed from |
|
5812 visit_octave_value. |
|
5813 (visit_unary_expression): Use tree_expression::is_prefix_op() |
|
5814 instead of switch on op types. |
|
5815 |
|
5816 * pt-walk.h (visit_constant): Renamed from visit_octave_value. |
|
5817 |
|
5818 * pt-misc.cc (initialize_undefined_elements): Get reference to |
|
5819 tmp, then assign. |
|
5820 * pt-cmd.cc (do_for_loop_once): Likewise, for loop identifier. |
|
5821 |
|
5822 * input.cc (generate_struct_completions, looks_like_struct): Cast |
|
5823 tmp_fvc to tree_constant*, not octave_value*. |
|
5824 (get_user_input): Call print() on retval, not eval(1). |
|
5825 |
|
5826 * help.cc (Ftype): Cast defn to tree_constant*, not octave_value*. |
|
5827 |
|
5828 * balance.cc: Fix docstring. |
|
5829 |
|
5830 * dassl.cc, fsolve.cc, load-save.cc, lsode.cc, npsol.cc, qpsol.cc, |
|
5831 quad.cc: |
|
5832 Include pt-fvc.h. |
|
5833 |
|
5834 * data.cc (Fstruct_contains): call octave_value::struct_elt_val, |
|
5835 not octave_value::lookup_map_element. |
|
5836 |
|
5837 * dirfns.cc (Fcd): Pass directory name as string directly to |
|
5838 bind_builtin_variable instead of creating new octave_value. |
|
5839 |
|
5840 * toplev.cc: Include pt-fvc.h and lo-mappers.h |
|
5841 |
|
5842 * data.cc, error.cc, file-io.cc, load-save.cc, pager.cc, |
|
5843 pt-mat.cc, pt-plot.cc, syscalls.cc, toplev.cc: |
|
5844 Include variables.h. |
|
5845 |
|
5846 * Array-tc.cc, Map-tc.cc, SLList-misc.cc SLList-tc.cc, data.cc, |
|
5847 defaults.cc, dynamic-ld.cc, error.cc, gripes.cc, lex.l, octave.cc, |
|
5848 oct-map.h, oct-map.cc, oct-obj.h, pt-cmd.cc, pt-exp.cc, pt-fcn.cc, |
|
5849 pt-fvc-base.cc, pt-mat.cc, pt-misc.cc, pt-mvr-base.cc, pt-mvr.h, |
|
5850 resource.cc, strfns.cc, sysdep.cc, timefns.cc, toplev.cc: |
|
5851 Include ov.h instead of pt-const.h. |
|
5852 |
|
5853 * xpow.cc (any_element_is_negative): Delete. |
|
5854 (xpow and elem_xpow functions): Check conformance here. |
|
5855 |
|
5856 * xdiv.cc (mx_leftdiv_conform, mx_div_conform): |
|
5857 Now template-based, taking Matrices instead of dimensions as args. |
|
5858 Change all callers. |
|
5859 |
|
5860 * op-cm-cm.cc, op-cm-cm.h, op-cm-cs.cc, op-cm-cs.h, op-cm-m.cc, |
|
5861 op-cm-m.h, op-cm-s.cc, op-cm-s.h, op-cs-cm.cc, op-cs-cm.h, |
|
5862 op-cs-cs.cc, op-cs-cs.h, op-cs-m.cc, op-cs-m.h, op-cs-s.cc, |
|
5863 op-cs-s.h, op-m-cm.cc, op-m-cm.h, op-m-cs.cc, op-m-cs.h, op-m-m.cc, |
|
5864 op-m-m.h, op-m-s.cc, op-m-s.h, op-s-cm.cc, op-s-cm.h, op-s-cs.cc, |
|
5865 op-s-cs.h, op-s-m.cc, op-s-m.h, op-s-s.cc, op-s-s.h, |
|
5866 op-str-str.cc, op-str-str.h, ops.cc, ops.h, ov-base.cc, ov-base.h, |
|
5867 ov-ch-mat.cc, ov-ch-mat.h, ov-colon.cc, ov-colon.h, ov-complex.cc, |
|
5868 ov-complex.h, ov-cx-mat.cc, ov-cx-mat.h, ov-range.cc, ov-range.h, |
|
5869 ov-re-mat.cc, ov-re-mat.h, ov-scalar.cc, ov-scalar.h, ov-str-mat.cc, |
|
5870 ov-str-mat.h, ov-struct.cc, ov-struct.h, ov-typeinfo.cc, |
|
5871 ov-typeinfo.h, ov-va-args.cc, ov-va-args.h, ov.cc, ov.h: |
|
5872 New files for Octave's new type system. |
|
5873 * Makefile.in: Add them to the appropriate lists. |
|
5874 |
|
5875 Sat Sep 14 21:58:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5876 |
|
5877 * mkbuiltins: Use .df instead of .def. |
|
5878 Write one function for each .df file, then call them |
|
5879 all in install_builtin_functions(). |
|
5880 * Makefile.in: Handle .df instead of .def. |
|
5881 |
|
5882 * balance.cc (balance): Fix typo in doc string. |
|
5883 |
|
5884 Wed Aug 28 21:01:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5885 |
|
5886 * octave.cc (verbose_usage): Include WWW address and bug-octave |
|
5887 mailing list address. |
|
5888 |
2354
|
5889 Tue Aug 20 17:41:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5890 |
2358
|
5891 * Makefile.in: Only define pattern rules for making .oct files if |
|
5892 OCTAVE_LITE is true. |
|
5893 Only add pic/ to $(TI_OBJ) if $(SHARED_LIBS) is true. |
|
5894 (stamp-picdir): Only create a pic subdirectory if SHARED_LIBS or |
|
5895 OCTAVE_LITE is true AND CPICFLAG or CXXPICFLAG is not empty. |
|
5896 |
2354
|
5897 * minmax.cc (Fmin, Fmax): Deal with changes to Matrix class |
|
5898 min/max methods. |
|
5899 |
2345
|
5900 Thu Jul 25 01:42:38 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5901 |
2348
|
5902 * input.cc (generate_possible_completions): Force the names to be |
|
5903 unique. |
|
5904 |
2345
|
5905 * load-save.cc (read_mat_binary_data): Expect to read terminating |
|
5906 NUL character in the variable name. |
|
5907 (save_mat_binary_data): Likewise, save it here. |
|
5908 |
2341
|
5909 Wed Jul 24 05:08:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5910 |
2343
|
5911 * lsode.cc (Flsode): Don't set the return value if an error |
|
5912 occurred during integration. |
2344
|
5913 * dassl.cc (Fdassl): Likewise. |
2343
|
5914 |
2341
|
5915 * file-io.cc (symbols_of_file_io): Redefine values of SEEK_SET, |
|
5916 SEEK_CUR, and SEEK_END for Matlab compatibility. |
|
5917 * oct-stream.cc (seek): Check for compatible values of ORIGIN arg. |
|
5918 Also handle "bof", "cof", and "eof". |
|
5919 |
2338
|
5920 Fri Jul 19 15:24:36 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5921 |
|
5922 * pt-const.cc: When creating octave_value_reps from ComplexMatrix |
|
5923 values, check to see if all the elements are actually real. |
|
5924 |
2330
|
5925 Tue Jul 16 10:53:42 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5926 |
2341
|
5927 * input.cc (decode_prompt_string): Swap meanings of \h and \H. |
2330
|
5928 |
|
5929 Mon Jul 15 16:01:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5930 |
|
5931 * toplev.cc (run_command_and_return_output): Renamed from do_system. |
|
5932 (Fsystem): Make `system ("emacs")' work as one would expect. |
|
5933 |
|
5934 Sun Jul 14 17:34:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5935 |
|
5936 * file-io.cc (Ffopen, Ffread, Ffwrite): Update doc strings, |
|
5937 correctly handle default architecture and precision args. |
|
5938 |
|
5939 * load-save.cc (mopt_digit_to_float_format): Rename from |
|
5940 get_floating_point_format. |
|
5941 (float_format_to_mopt_digit): New function. |
|
5942 |
|
5943 * oct-stream.cc (octave_base_stream::read, octave_base_stream::write): |
|
5944 Simplify by calling Matrix::read and Matrix::write to do real work |
|
5945 of reading, writing, and format conversion. |
|
5946 |
|
5947 * oct-stream.h (octave_base_stream): Move data_type enum to |
|
5948 liboctave/data-conv.h. Use float_format from |
|
5949 liboctave/mach-info.h instead of arch_type enum. |
|
5950 |
|
5951 * sysdep.h, sysdep.cc (octave_words_big_endian, ten_little_endians): |
|
5952 Delete. Now part of oct_mach_info class in liboctave. |
|
5953 |
|
5954 Tue Jul 9 11:18:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5955 |
|
5956 * arith-ops.cc, balance.cc, dassl.cc, data.cc, filter.cc, find.cc, |
|
5957 fsolve.cc, load-save.cc, log.cc, lsode.cc, minmax.cc, npsol.cc, |
|
5958 oct-obj.cc, oct-stream.cc, pr-output.cc, pt-cmd.cc, pt-const.cc, |
|
5959 pt-fvc.cc, pt-plot.cc, quad.cc, rand.cc, sighandlers.cc, sort.cc, |
|
5960 syscalls.cc, unwind-prot.cc, xdiv.cc, xpow.cc: |
|
5961 When indexing arrays, use operator() instead of elem() so that |
|
5962 bounds checking can be done consistently. |
|
5963 |
|
5964 Mon Jun 24 02:13:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5965 |
|
5966 * Makefile.in (install-oct): Use INSTALL_PROGRAM, instead of |
|
5967 INSTALL_DATA for installing shared libraries. |
|
5968 |
|
5969 * lex.l (grab_help_text): Ignore all initial comment characters, |
|
5970 not just the first. |
|
5971 * variables.cc (gobble_leading_white_space): Likewise. |
|
5972 |
|
5973 Sat Jun 22 22:43:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5974 |
|
5975 * input.h, input.cc (octave_completion_matches_called): New varaible. |
|
5976 (Fcompletion_matches): Set it to true on a successful call. |
|
5977 * toplev.cc (main_loop): If octave_completion_matches_called is |
|
5978 true, don't increment current_command_number. |
|
5979 |
|
5980 Thu Jun 13 03:52:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5981 |
|
5982 * variables.cc (is_mapper_function_name, |
|
5983 is_builtin_function_name): New functions. |
|
5984 (Fdocument): Use them. |
|
5985 Define as regular function, not a text style function. |
|
5986 |
|
5987 Thu Jun 6 00:09:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5988 |
|
5989 * pt-plot.cc: Handle new built-in variable `gnuplot_has_frames'. |
|
5990 |
|
5991 Wed Jun 5 14:45:04 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5992 |
|
5993 * input.cc (decode_prompt_string): \h now means the whole host |
|
5994 name and \H is the host name up to the first `.'. |
|
5995 |
|
5996 Thu May 30 23:41:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5997 |
|
5998 * fn-cache.cc (octave_fcn_file_name_cache::do_list): Always |
|
5999 recompute the lists of function files instead of trying to cache |
|
6000 them. |
|
6001 |
|
6002 Tue May 28 12:05:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6003 |
|
6004 * utils.cc (warn_old_style_preference): New function. |
|
6005 (check_preference): Use it. |
|
6006 |
|
6007 * fn-cache.h: Include <ctime> here. |
|
6008 |
|
6009 Fri May 24 00:57:14 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6010 |
|
6011 * input.cc (completion_matches): Don't return empty string_vectors. |
|
6012 |
|
6013 * octave.cc (long_opts): Add braindead. |
|
6014 |
|
6015 Thu May 23 01:49:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6016 |
|
6017 * input.cc (gnu_readline): New optional arg, force_readline. |
|
6018 (get_user_input): Use it. |
|
6019 |
|
6020 * pt-const.cc (OCT_VAL_REP::assign): If converting the rhs to a |
|
6021 numeric value, convert a copy, not the actual object. |
|
6022 (OCT_VAL_REP::do_index): Prevent s([]) from resulting in a string |
|
6023 with zero rows. |
|
6024 |
|
6025 * mappers.cc: Handle toascii here. |
|
6026 * strfns.cc: Not here. |
|
6027 |
|
6028 * mappers.cc: Handle tolower and toupper here. |
|
6029 * mappers.h: Rename can_return_complex_for_real to flag and |
|
6030 overload meaning for ch_mapper. |
|
6031 * pt-fvc.cc (apply_mapper_fcn): Handle overloaded meaning. |
|
6032 |
|
6033 * syscalls.cc (stat): Return 3 values instead of just 1. |
|
6034 (lstat): Likewise. |
|
6035 |
|
6036 Wed May 22 02:34:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6037 |
|
6038 * pt-const.cc (OCT_VAL_REP::make_numeric): For string to number |
|
6039 conversions, correctly set type tag before calling force_numeric. |
|
6040 (do_binary_op): Force string to number conversion if both args are |
|
6041 strings and we are doing some sort of comparison operation. |
|
6042 |
|
6043 * Makefile.in (stamp-tinst, stamp-interp): Use SH_TERMLIBS and |
|
6044 SH_LIBS instead of TERMLIBS and LIBS. |
|
6045 |
|
6046 * pt-const.cc (do_unary_op): Add special case to handle |
|
6047 transposing strings. |
|
6048 |
|
6049 * pt-mat.cc (Vstring_fill_char): New variable. |
|
6050 (symbols_of_pt_mat): DEFVAR it. |
|
6051 |
|
6052 * input.cc (generate_struct_completions, |
|
6053 generate_possible_completions): Return string_vector, not char **. |
|
6054 Change all callers. |
|
6055 |
|
6056 * pt-const.cc (lookup_map_element): Use substr() correctly. |
|
6057 |
|
6058 Tue May 21 21:37:17 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6059 |
|
6060 * oct.h: New file. |
|
6061 * Makefile.in (INCLUDES): Add it to the list. |
|
6062 |
|
6063 * octave.cc: New args --no-site-file and --no-init-file. Delete |
|
6064 --ignore-init-file. The flag --norc (-f) implies both |
|
6065 --no-site-file and --no-init-file. |
|
6066 |
|
6067 Fri May 17 01:54:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6068 |
|
6069 * input.cc (Fcompletion_matches): New function. |
|
6070 |
|
6071 * utils.cc (get_fcn_file_names): Delete. |
|
6072 * help.cc (simple_help): Use new file name cache instead of |
|
6073 calling get_fcn_file_names. |
|
6074 * variables.cc (make_name_list): Likewise. |
|
6075 |
|
6076 * fn-cache.h, fn-cache.cc, Map-fnc.cc: New files. |
|
6077 * Makefile.in: Add them to the lists. |
|
6078 |
|
6079 * Makefile.in (uninstall): Install in octincludedir, not includedir. |
|
6080 |
|
6081 * pt-plot.h: Include <csignal> here. |
|
6082 |
|
6083 Thu May 16 10:52:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6084 |
|
6085 * oct-stream.cc (octave_stream::oscanf, octave_base_stream::oscanf, |
|
6086 octave_base_stream::do_oscanf): New functions for backward |
|
6087 compatibility with older versions of Octave. |
|
6088 (scanf_format_elt, scanf_format_list): Keep track of width specifier. |
|
6089 * file-io.cc (Fscanf): New function. |
|
6090 (Fscanf, Ffscanf, Fsscanf): Handle compatibility arg. |
|
6091 |
|
6092 Wed May 15 01:00:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6093 |
|
6094 * oct-stream.cc (do_scanf): If doing '%c' conversion, unset |
|
6095 ios::skipws on input stream. |
|
6096 |
|
6097 * sighandlers.h, sighandlers.cc (octave_child, octave_child_list): |
|
6098 New classes for keeping track of the child processes we create. |
|
6099 (sigchld_handler): Check in octave_child_list to see if there is |
|
6100 anything we can do for the child that died. |
|
6101 * pager.cc: Register child pager process. |
|
6102 * pt-plot.cc: Likewise, for the plotter. |
|
6103 * Array-oc.cc: New file |
|
6104 * Makefile.in (TI_SRC): Add it to the list. |
|
6105 |
|
6106 * pager.cc (do_sync): Don't check error_state. |
|
6107 (flushing_output_to_pager): New static variable. |
|
6108 (flush_octave_stdout): Use it to avoid doing anything if already |
|
6109 flushing output. |
|
6110 |
|
6111 * sighandlers.cc (sigchld_handler): Call warning instead of |
|
6112 writing directly to cerr. |
|
6113 (sigpipe_handler): Call warning instead of message. |
|
6114 |
|
6115 * octave.cc (main): Call install_signal_handlers, |
|
6116 initialize_file_io, initialize_symbol_tables, and install_builtins |
|
6117 before parsing command line options. |
|
6118 |
|
6119 * user-prefs.h, user-prefs.cc: Delete. |
|
6120 |
|
6121 * utils.cc (check_preference): Move here. |
|
6122 * user-prefs.cc: From here. |
|
6123 |
|
6124 * defaults.cc: New file. Move initialization stuff from |
|
6125 variables.cc. Move DEFVARS for EDITOR, EXEC_PATH, LOADPATH, |
|
6126 IMAGEPATH, and OCTAVE_VERSION here. |
|
6127 |
|
6128 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6129 INFO_FILE and INFO_PROGRAM. |
|
6130 * help.cc: Move all of that here. |
|
6131 (symbols_of_help): Add DEFVARS for INFO_FILE and INFO_PROGRAM. |
|
6132 |
|
6133 Tue May 14 00:23:06 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6134 |
|
6135 * pager.cc (do_sync): Be more defensive about sending stuff to the |
|
6136 external pager. |
|
6137 * sighandlers.cc (sigchld_handler): For now, only wait for |
|
6138 octave_pager_pid. Don't call error(). Do set octave_pager_pid to |
|
6139 -1 if the pager process no longer exists. |
|
6140 |
|
6141 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6142 PWD. |
|
6143 * dirfns.cc: Move all of that here. |
|
6144 (symbols_of_dirfns): New function. |
|
6145 * variables.cc (install_builtin_variables): Call it. |
|
6146 |
|
6147 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6148 default_save_format and save_precision. |
|
6149 * load-save.cc: Move all of that here. |
|
6150 (symbols_of_load_save): New function. |
|
6151 * variables.cc (install_builtin_variables): Call it. |
|
6152 |
|
6153 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6154 warn_divide_by_zero. |
|
6155 * arith-ops.cc: Move all of that here. |
|
6156 (symbols_of_arith_ops): New function. |
|
6157 * variables.cc (install_builtin_variables): Call it. |
|
6158 |
|
6159 * mappers.cc: Add wrappers for ctype is* functions so that they |
|
6160 will work on systems that only define them as macros. |
|
6161 |
|
6162 Mon May 13 00:27:08 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6163 |
|
6164 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6165 suppress_verbose_help_message. |
|
6166 * help.cc: Move all of that here. |
|
6167 (symbols_of_help): New function. |
|
6168 * variables.cc (install_builtin_variables): Call it. |
|
6169 |
|
6170 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6171 treat_neg_dim_as_zero. |
|
6172 * pt-const.cc: Move all of that here. |
|
6173 |
|
6174 * pager.cc (octave_pager_stream::do_sync): Don't return early if |
|
6175 not interactive. |
|
6176 |
|
6177 * data.h: New file. |
|
6178 * Makefile.in (INCLUDES): Add it to the list. |
|
6179 * data.cc (symbols_of_data): New function. Move definition of I, |
|
6180 Inf, J, NaN, e, eps, i, inf, j, nan, pi, realmin, and realmax here. |
|
6181 * variables.cc: From here. |
|
6182 (install_builtin_variables): Call symbols_of_data. |
|
6183 |
|
6184 * file-io.cc (symbols_of_file_io): New function. Move definition |
|
6185 of SEEK_CUR, SEEK_END, SEEK_SET, stdin, stdout, stderr here. |
|
6186 * variables.cc: From here. |
|
6187 (install_builtin_variables): Call symbols_of_file_io. |
|
6188 |
|
6189 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6190 do_fortran_indexing, implicit_str_to_num_ok, |
|
6191 ok_to_lose_imaginary_part, prefer_column_vectors, |
|
6192 prefer_zero_one_indexing, print_answer_id_name, |
|
6193 propagate_empty_matrices, resize_on_range_error, and |
|
6194 struct_levels_to_print. |
|
6195 * pt-const.cc: Move all of that here. |
|
6196 (symbols_of_pt_const): New function. |
|
6197 * variables.cc (install_builtin_variables): Call it. |
|
6198 * pt-fvc.cc (tree_identifier::assign): Use Vresize_on_range_error |
|
6199 instead of user_pref.resize_on_range_error here. |
|
6200 * load-save.cc (save_mat_binary_data): Use Vimplicit_str_to_num_ok |
|
6201 instead of user_pref.implicit_str_to_num_ok here. |
|
6202 * utils.cc (empty_arg): Use Vpropagate_empty_matrices instead of |
|
6203 user_pref.propagate_empty_matrices here. |
|
6204 * pt-exp-base.cc (tree_expression::is_logically_true): Likewise.. |
|
6205 |
|
6206 * pt-fcn.cc (symbols_of_pt_fcn): Also move DEFVAR for |
|
6207 default_return_value here. |
|
6208 |
|
6209 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6210 ps1, ps2, ps4, and completion_append_char. |
|
6211 * input.cc: Move all of that here. |
|
6212 (symbols_of_input): New function. |
|
6213 * variables.cc (install_builtin_variables): Call it. |
|
6214 * pt-pr-code.cc (indent): Use Vps4 instead of user_pref.ps4 here. |
|
6215 * help.cc (Ftype): Also here. |
|
6216 |
|
6217 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6218 automatic_replot, gnuplot_binary, and gnuplot_has_multiplot. |
|
6219 * pt-plot.cc: Move all of that here. |
|
6220 (symbols_of_pt_plot): New function. |
|
6221 * variables.cc (install_builtin_variables): Call it. |
|
6222 |
|
6223 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6224 beep_on_error. |
|
6225 * error.cc: Move all of that here. |
|
6226 (symbols_of_error): New function. |
|
6227 * variables.cc (install_builtin_variables): Call it. |
|
6228 |
|
6229 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6230 empty_list_elements_ok. |
|
6231 * pt-mat.cc: Move all of that here. |
|
6232 (symbols_of_pt_mat): New function. |
|
6233 * variables.cc (install_builtin_variables): Call it. |
|
6234 |
|
6235 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6236 define_all_return_values, return_last_computed_value, and |
|
6237 silent_functions. |
|
6238 * pt-fcn.cc: Move all of that here. |
|
6239 (symbols_of_pt_fcn): New function. |
|
6240 * variables.cc (install_builtin_variables): Call it. |
|
6241 |
|
6242 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6243 whitespace_in_literal_matrix. |
|
6244 * lex.l: Move all of that here. |
|
6245 (symbols_of_lex): New function. |
|
6246 * variables.cc (install_builtin_variables): Call it. |
|
6247 |
|
6248 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6249 warn_assign_as_truth_value, warn_comma_in_global_decl, |
|
6250 warn_function_name_clash, and warn_missing_semicolon. |
|
6251 * parse.y: Move all of that here. |
|
6252 (symbols_of_parse): New function. |
|
6253 * variables.cc (install_builtin_variables): Call it. |
|
6254 |
|
6255 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6256 output_precision, output_max_field_width, print_empty_dimensions, |
|
6257 and split_long_rows. |
|
6258 * pr-output.cc: Move all of that here. |
|
6259 (symbols_of_pr_output): New function. |
|
6260 * variables.cc (install_builtin_variables): Call it. |
|
6261 |
|
6262 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6263 page_screen_output, page_output_immediately, and pager_binary. |
|
6264 * pager.cc: Move all of that here. |
|
6265 |
|
6266 * user-prefs.h (check_preference): Provide declaration. |
|
6267 * user-prefs.cc (check_preference): Make external. |
|
6268 |
|
6269 * toplev.cc (Foctave_config_info): New function. |
|
6270 |
|
6271 * oct-conf.h.in: New file |
|
6272 * Makefile.in (oct-conf.h): New target. |
|
6273 Add it to the appropriate lists. |
|
6274 |
|
6275 * sighandlers.cc (sigchld_handler): Don't complain about wait |
|
6276 returning a negative value. |
|
6277 |
|
6278 * file-io.cc (Fsscanf, Fsprintf): Pass true for second arg of |
|
6279 octave_stream constructor. |
|
6280 |
|
6281 * oct-stream.h (octave_stream): New field, preserve. |
|
6282 (octave_stream::~octave_stream): If preserve, don't delete rep. |
|
6283 |
|
6284 * pager.cc (symbols_of_pager): Set default for |
|
6285 page_output_immediately to 0. |
|
6286 |
|
6287 * toplev.cc (do_system): Correctly handle return_output. |
|
6288 Append ends to output_buf before calling str(). |
|
6289 |
|
6290 * variables.cc: If M_PI and M_E are available, use them. |
|
6291 |
|
6292 * mk-oct-links.in (links_dir): If old link exists, delete it first. |
|
6293 |
|
6294 Sun May 12 01:46:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6295 |
|
6296 * Makefile.in (DISTFILES): List defaults.h.in and oct-gperf.h here. |
|
6297 (INCLUDES): Not here. |
|
6298 (install-inc): New target. |
|
6299 (uninstall): Also delete libraries and include files. |
|
6300 (install-inc): If linkdir is a directory, leave it alone. |
|
6301 (TERMLIBS, LIBPLPLOT, LIBDLFCN): Don't substitute here (now in |
|
6302 Makeconf). |
|
6303 |
|
6304 * oct-stream.cc (octave_base_stream::do_read): Provide initial |
|
6305 value for tmp var. |
|
6306 |
|
6307 * pt-walk.h, pt-pr-code.h, pt-pr-code.cc: New tree-walking classes. |
|
6308 * Makefile.in: Add them to the appropriate lists. |
|
6309 * pt-fvc-base.h, pt-exp-base.cc, pt-fvc-base.cc, pt-mvr-base.cc, |
|
6310 pt-base.cc, pt-mvr.cc, pt-mat.h, pt-mat.cc, pt-fvc.cc, |
|
6311 pt-const.cc, pt-cmd.cc, pt-const.h, pt-misc.cc, pt-plot.cc, |
|
6312 pt-fcn.cc, pt-plot.h, pt-mvr.h, pt-mvr-base.h, pt-misc.h, |
|
6313 pt-fcn.h, pt-exp.h, pt-exp.cc, pt-exp-base.h, pt-fvc.h, pt-cmd.h, |
|
6314 pt-base.h: |
|
6315 Replace print_code stuff with accept() functions. |
|
6316 Add member access functions where necessary. |
|
6317 * help.cc (Ftype): Update to use new method of walking trees to |
|
6318 print text representation of user-defined functions. |
|
6319 |
|
6320 * file-io.cc (Ffscanf): Update doc string. |
|
6321 (Fsscanf): Likewise. |
|
6322 |
|
6323 * oct-stream.cc (octave_base_stream::do_read): Correctly set max_size. |
|
6324 Pad mval with zeros on final resize. |
|
6325 (octave_base_stream::do_scanf): Likewise. |
|
6326 (do_scanf_conv): Correctly resize mval. |
|
6327 |
|
6328 Sat May 11 05:14:09 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6329 |
|
6330 * pager.cc (octave_pager_buf::sync): Correctly set bypass_pager. |
|
6331 |
|
6332 * lex.l (<MATRIX>{SNLCMT}*\]{S}*): Match SNLCMT, not just SNL. |
|
6333 |
|
6334 Fri May 3 11:05:30 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6335 |
|
6336 * pt-const.cc (OCT_VAL_REP::set_index): Complain if type can't be |
|
6337 indexed. |
|
6338 |
|
6339 * input.cc (get_user_input): Don't increment input line number if |
|
6340 input is coming from eval string. |
|
6341 |
|
6342 * user-prefs.cc: Allow empty strings for prompts. |
|
6343 |
|
6344 Thu May 2 10:50:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6345 |
|
6346 * pt-mvr.h (class tree_oct_obj): Declare values data member const. |
|
6347 |
|
6348 Sun Apr 28 03:16:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6349 |
|
6350 * user-prefs.h (user_preferences): New field, |
|
6351 `page_output_immediately'. |
|
6352 * user-prefs.cc (init_user_prefs): Initialize it. |
|
6353 (page_output_immediately): New function. |
|
6354 * pager.cc (syms_of_pager): Add DEFVAR. |
|
6355 (really_flush_to_pager): New file-scope variable. |
|
6356 (flush_octave_stdout): Set and restore it. |
|
6357 (octave_pager_buf::sync): Check it, user_pref.page_screen_output, |
|
6358 and user_pref.page_output_immediately to decide when to really |
|
6359 flush output. |
|
6360 (more_than_a_screenful): New function. If paging but not |
|
6361 immediately, then check this too. |
|
6362 |
|
6363 * pager.cc (default_pager): Move here from variables.cc. If pager |
|
6364 is less and LESS is not in the environment, append useful flags. |
|
6365 (symbols_of_pager): New function. |
|
6366 * variables.cc (install_builtin_variables): Call it. |
|
6367 Delete pager-related DEFVARs. |
|
6368 |
|
6369 * syswait.h (WIFSIGNALLED): Define if sys/wait.h doesn't. |
|
6370 |
|
6371 * sighandlers.cc: Handle SIGCHLD. |
|
6372 |
|
6373 * pager.cc, pager.h: Rewrite. |
|
6374 * pt-mvr.cc, pt-misc.cc, pt-fcn.cc, pt-const.cc, oct-hist.cc, |
|
6375 file-io.cc, help.cc, variables.cc, qpsol.cc, dassl.cc, quad.cc, |
|
6376 npsol.cc, lsode.cc, fsolve.cc, load-save.cc, dirfns.cc, octave.cc, |
|
6377 toplev.cc, error.cc, input.cc: |
|
6378 Write to octave_stdout and octave_diary instead of calling |
|
6379 maybe_page_output() or maybe_write_to_diary_file(). |
|
6380 |
|
6381 * oct-procbuf.h, oct-procbuf.cc: New files. |
|
6382 * procstream.h (class procstreambase): Use octave_procbuf instead |
|
6383 of procbuf from libg++, so we can get pids of subprocesses. |
|
6384 |
|
6385 Fri Apr 26 01:21:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6386 |
|
6387 * pt-const.cc (OCT_VAL_REP::do_index): Call maybe_mutate() before |
|
6388 returning. |
|
6389 |
|
6390 * mappers.h (struct Mapper_fcn): Delete. |
|
6391 (struct builtin_mapper_function): New field ch_mapper. |
|
6392 * pt-fvc.h (tree_builtin): Convert type of mapper_fcn from |
|
6393 Mapper_fcn to builtin_mapper_function. |
|
6394 * variables.cc (install_builtin_mapper): Likewise, for arg. |
|
6395 Simplify, since we don't have to do the copying ourselves now. |
|
6396 * pt-fvc.cc (apply_mapper_function): Handle ch_mapper case. |
|
6397 * defun.h (DEFUN_MAPPER): Likewise. |
|
6398 * mappers.cc (install_builtin_mappers): Likewise. |
|
6399 Add ctype is* functions here. |
|
6400 |
|
6401 Thu Apr 25 00:57:06 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6402 |
|
6403 * arith-ops.h, defun-int.h, defun.h, dynamic-ld.h, gripes.h, |
|
6404 load-save.h, oct-map.h, oct-obj.h, oct-stream.h, pt-cmd.h, |
|
6405 pt-const.h, pt-exp-base.h, pt-exp.h, pt-fcn.h, pt-fvc-base.h, |
|
6406 pt-fvc.h, pt-mat.h, pt-misc.h, pt-mvr-base.h, pt-mvr.h, pt-plot.h, |
|
6407 symtab.h, toplev.h, utils.h, variables.h, xpow.h, Array-tc.cc, |
|
6408 Map-i.cc, Map-tc.cc, SLList-tc.cc, arith-ops.cc, balance.cc, |
|
6409 bogus.cc, chol.cc, colloc.cc, dassl.cc, data.cc, det.cc, |
|
6410 dirfns.cc, eig.cc, error.cc, expm.cc, fft.cc, fft2.cc, file-io.cc, |
|
6411 filter.cc, find.cc, fsolve.cc, fsqp.cc, givens.cc, gripes.cc, |
|
6412 help.cc, hess.cc, ifft.cc, ifft2.cc, input.cc, inv.cc, |
|
6413 load-save.cc, log.cc, lpsolve.cc, lsode.cc, lu.cc, minmax.cc, |
|
6414 npsol.cc, oct-hist.cc, oct-obj.cc, oct-stream.cc, pager.cc, |
|
6415 pinv.cc, pr-output.cc, pt-cmd.cc, pt-const.cc, pt-exp-base.cc, |
|
6416 pt-exp.cc, pt-fcn.cc, pt-fvc-base.cc, pt-fvc.cc, pt-mat.cc, |
|
6417 pt-misc.cc, pt-mvr-base.cc, pt-mvr.cc, pt-plot.cc, qpsol.cc, |
|
6418 qr.cc, quad.cc, qzval.cc, rand.cc, resource.cc, schur.cc, sort.cc, |
|
6419 strfns.cc, svd.cc, syl.cc, symtab.cc, syscalls.cc, sysdep.cc, |
|
6420 timefns.cc, toplev.cc, utils.cc, variables.cc, xpow.cc, parse.y: |
|
6421 Rename tree_constant -> octave_value. |
|
6422 Rename Octave_object -> octave_value_list. |
|
6423 |
|
6424 Wed Apr 24 22:15:34 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6425 |
|
6426 * toplev.cc (Fsystem): Merge functionality of async_system and |
|
6427 sync_system. |
|
6428 |
|
6429 * oct-fstrm.h, oct-iostrm.h, oct-prcstrm.h, oct-stdstrm.h, |
|
6430 oct-stream.h, oct-strstrm.h, oct-fstrm.cc, oct-iostrm.cc, |
|
6431 oct-prcstrm.cc, oct-stdstrm.cc, oct-stream.cc, oct-strstrm.cc, |
|
6432 Array-os.cc: New files. |
|
6433 * Makefile.in: Add them to the appropriate lists. |
|
6434 * file-io.cc: Rewrite to use new stream classes. |
|
6435 |
|
6436 Tue Apr 23 18:59:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6437 |
|
6438 * gripes.cc (gripe_not_supported): New function. |
|
6439 |
|
6440 * toplev.cc (do_octave_atexit, Fatexit): New functions. |
|
6441 (octave_atexit_functions): New file-scope variable. |
|
6442 * octave.cc (main): Register do_octave_atexit with atexit. |
|
6443 |
|
6444 * variables.cc (install_builtin_variables): Call |
|
6445 symbols_of_syscalls here. |
|
6446 |
|
6447 * syscalls.h, syscalls.cc: New files. |
|
6448 |
|
6449 Mon Apr 22 21:14:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6450 |
|
6451 * syscalls.cc: New file. |
|
6452 (Flstat, Fmkfifo, Fstat, Funlink, Fwait, Fwaitpid): Move here. |
|
6453 * file-io.cc: From here. |
|
6454 * Makefile.in (SOURCES): Add syscalls.cc to the list. |
|
6455 |
|
6456 Wed Apr 17 18:34:10 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6457 |
|
6458 * file-info.h, file-info.cc: Delete files. |
|
6459 * Makefile.in: Remove from lists. |
|
6460 |
|
6461 * toplev.cc (Fquit): Accept exit status argument. |
|
6462 (Fflops): Delete (now a function file). |
|
6463 |
|
6464 Thu Apr 11 16:20:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6465 |
|
6466 * lex.l: Recognize `.'. |
|
6467 Update current_input_column even for unrecognized characters. |
|
6468 Return LEXICAL_ERROR for unrecognized characters. |
|
6469 |
|
6470 Mon Apr 8 19:59:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6471 |
|
6472 * variables.cc (install_builtin_variables): Split into several |
|
6473 functions to make compiling with g++ go faster and consume less |
|
6474 memory. |
|
6475 |
|
6476 Sun Apr 7 16:25:35 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6477 |
|
6478 * load-save.cc (Fsave): Print usage if i == argc. |
|
6479 (Fload): Likewise. |
|
6480 |
|
6481 Sat Apr 6 21:26:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6482 |
|
6483 * Makefile.in (clean): Also delete pic/*.o |
|
6484 (maintainer-clean, distclean): Also remove stamp-picdir, |
|
6485 stamp-tinst, stamp-interp, and pic directory. |
|
6486 (stamp-prereq): New target. |
|
6487 |
|
6488 Wed Apr 3 11:19:30 1996 Rick Niles <niles@axp745.gsfc.nasa.gov> |
|
6489 |
|
6490 * resource.cc: Don't make including sys/resource.h and sys/times.h |
|
6491 mutually exclusive. |
|
6492 |
|
6493 Fri Mar 29 13:43:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6494 |
|
6495 * Makefile.in (distclean): Delete so_locations, which is created |
|
6496 on DEC Alpha systems. |
|
6497 |
|
6498 Thu Mar 28 02:53:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6499 |
|
6500 * utils.h (undo_string_escape): Provide extern declaration here. |
|
6501 |
|
6502 * lex.l (NL): Allow \r\n as new line character. |
|
6503 (.): Complain if invalid character is found on input |
|
6504 |
|
6505 Fri Mar 22 03:47:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6506 |
|
6507 * resource.cc (getrusage): If getrusage is missing, try using |
|
6508 times to at least fill in the cpu time values. If neither one is |
|
6509 available, return 0 for cpu times instead of NaN. |
|
6510 |
|
6511 * sighandlers.cc (octave_signal_mask): New file-scope variable. |
|
6512 (octave_save_signal_mask, octave_restore_signal_mask): New functions. |
|
6513 * toplev.cc (main_loop): Use them. |
|
6514 |
|
6515 Wed Mar 20 01:21:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6516 |
|
6517 * utils.cc (get_fcn_file_names (const string&, int)): Resize |
|
6518 retval to value of k, not i. |
|
6519 (get_fcn_file_names (int)): In loop for copying names to retval, |
|
6520 don't increment j twice. |
|
6521 |
|
6522 Mon Mar 18 22:27:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6523 |
|
6524 * Makefile.in ($(MAKEDEPS)): Depend on oct-gperf.h. |
|
6525 |
|
6526 Fri Mar 1 18:15:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6527 |
|
6528 * fsolve.cc (fsolve_options): Delete unused argument nargout. |
|
6529 |
|
6530 * filter.cc: Use MArray instead of Array so that automatic |
|
6531 conversions will work again. |
|
6532 |
|
6533 Tue Feb 27 04:49:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6534 |
|
6535 * variables.cc (looks_like_octave_copyright): Make the strings |
|
6536 that we are trying to match both have length 29. |
|
6537 |
|
6538 * Makefile.in (install-bin): Use $(INSTALL_PROGRAM), not $(INSTALL). |
|
6539 |
|
6540 * load-save.cc (read_mat_binary_data): Make sure name is |
|
6541 NUL terminated. |
|
6542 |
|
6543 Mon Feb 26 18:18:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6544 |
|
6545 * variables.cc (whos): Make argv from tmp_args, not args. |
|
6546 |
|
6547 * defun.h (DEFCONSTX): Don't stringify name. |
|
6548 |
|
6549 Sat Feb 24 01:12:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6550 |
|
6551 * Makefile.in (install-oct): Make mk-oct-links executable. |
|
6552 * mk-oct-links.in (links_dir): Update to match new format of |
|
6553 DEFUN_DLD_BUILTIN macro. Use LN_S, not just LN. |
|
6554 (links_dir): |
|
6555 |
|
6556 * pr-output.cc (octave_print_internal): New arg, extra_indent, for |
|
6557 versions of this function that take matrices and ranges. |
|
6558 * pt-const.cc (TC_REP::print (ostream&)): Fix printing of structures. |
|
6559 Pass struct_indent to octave_print_internal as appropriate. |
|
6560 (print_with_name (ostream&, const string&, bool)): Handle spacing |
|
6561 around `=' differently for structures. |
|
6562 |
|
6563 Fri Feb 23 04:51:04 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6564 |
|
6565 * token.cc (token (double, const string&, int, int)): Store orig_text. |
|
6566 |
|
6567 Tue Feb 20 20:36:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6568 |
|
6569 * variables.cc (Fclear): Fix off-by-one error. |
|
6570 |
|
6571 Sat Feb 17 16:54:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6572 |
|
6573 * oct-hist.cc (default_history_file): Append "/.octave_hist" to |
|
6574 return value, not to home_directory. |
|
6575 |
|
6576 Fri Feb 16 18:10:46 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6577 |
|
6578 * utils.cc: (NINT, D_NINT): Move to liboctave. |
|
6579 |
|
6580 * sysdep.cc (octave_ieee_init): Move to liboctave. |
|
6581 |
|
6582 * procstream.h, procstream.cc: Rewrite. |
|
6583 |
|
6584 * pager.cc (cleanup_oprocstream): New static function. |
|
6585 * toplev.cc (cleanup_iprocstream): Likewise. |
|
6586 * dirfns.cc (cleanup_iprocstream): Likewise. |
|
6587 |
|
6588 * unwind-prot.cc (matrix_cleanup, complex_matrix_cleanup): Delete. |
|
6589 |
|
6590 Thu Feb 15 22:03:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6591 |
|
6592 * oct-obj.cc, oct-obj.h: Move most code to the header. |
|
6593 |
|
6594 * oct-obj.cc (make_argv, all_strings): New member functions. |
|
6595 * utils.cc: Moved from here. |
|
6596 |
|
6597 * load-save.cc: Move byte swapping stuff to liboctave. |
|
6598 Move float format conversion stuff to liboctave. |
|
6599 (all_parts_int, too_large_for_float): Move to liboctave. |
|
6600 |
|
6601 * symtab.cc (valid_identifier): Move here. |
|
6602 * load-save.cc: From here. |
|
6603 |
|
6604 * sysdep.cc: Move floating-point format stuff to liboctave. |
|
6605 * pr-output.cc: Include float-fmt.h here. |
|
6606 |
|
6607 Wed Feb 14 01:49:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6608 |
|
6609 * defun.h, defun-dld.h, defun-int.h: Simplify interface for DEFUN, |
|
6610 DEFUN_DLD, DEFVAR, and DEFCONST macros. Change all uses. |
|
6611 |
|
6612 * qzval.cc: Move guts to liboctave. |
|
6613 |
|
6614 Tue Feb 13 10:28:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6615 |
|
6616 * variables.cc (parse_fcn_file): Also avoid saving history if |
|
6617 input is from a script file. |
|
6618 |
|
6619 * help.cc (Ftype): Call unwind_protect_str for user_pref.ps4. |
|
6620 |
|
6621 * npsol.cc (nonlinear_constraints_ok): Now static. |
|
6622 |
|
6623 * npsol.cc (linear_constraints_ok): Now static. |
|
6624 * qpsol.cc (linear_constraints_ok): Duplicate here. |
|
6625 |
|
6626 * data.cc (Flinspace): Don't print usage message if nargin == 2. |
|
6627 |
|
6628 Sun Feb 11 14:20:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6629 |
|
6630 * mk-oct-links.in: Rename from mk-oct-links. |
|
6631 (LN_S): Use this variable instead of ln. |
|
6632 Set -e option for shell. |
|
6633 Exit with status of last command. |
|
6634 Print message when making link. |
|
6635 * Makefile.in (DISTFILES): Add mk-oct-links.in to the list. |
|
6636 (install-oct): Run ./mk-oct-links, not $(srcdir)/mk-oct-links. |
|
6637 |
|
6638 * variables.cc (install_builtin_variables): Restore accidentally |
|
6639 deleted DEFVAR for save_precision. |
|
6640 |
|
6641 Fri Feb 9 11:24:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6642 |
|
6643 * Makefile.in (INCLUDES): Delete statdefs.h from the list (it's |
|
6644 now in the liboctave directory). |
|
6645 |
|
6646 * toplev.cc (toplevel): Define here. |
|
6647 * octave.cc (toplevel): Not here. |
|
6648 |
|
6649 * toplev.cc (main_loop): New function. |
|
6650 * octave.cc (main): Call it here instead of doing main loop |
|
6651 actions here. |
|
6652 |
|
6653 * user-prefs.cc (do_fortran_indexing): Also set liboctave_dfi_flag. |
|
6654 (prefer_column_vectors): Also set liboctave_pcv_flag. |
|
6655 (prefer_zero_one_indexing): Also set liboctave_pzo_flag. |
|
6656 (resize_on_range_error): Also set liboctave_rre_flag. |
|
6657 |
|
6658 * variables.cc (restore_command_history): New function. |
|
6659 (parse_fcn_file): Use it here in unwind_protect. |
|
6660 |
|
6661 * dynamic-ld.cc (load_octave_oct_file): Reverse sense of test. |
|
6662 (load_octave_builtin): Delete. |
|
6663 (mangle_octave_oct_file_name): Delete. |
|
6664 |
|
6665 * pt-fvc.cc (tree_builtin::eval): Don't try to dynamically load |
|
6666 functions here. |
|
6667 |
|
6668 * pr-output.cc (set_format_style): Decrement argc for first arg too. |
|
6669 |
|
6670 * input.cc (gnu_readline): If readline returns an empty string, |
|
6671 convert it to a string containing a single newline character. |
|
6672 |
|
6673 * octave.cc (octave_argv): Now a static string_vector. |
|
6674 (intern_argv): Use string_vector ops, not charMatrix ops. |
|
6675 * toplev.cc (octave_argv): Delete definition. |
|
6676 * toplev.h (octave_argv): Delete declaration. |
|
6677 |
|
6678 Thu Feb 8 10:58:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6679 |
|
6680 * Makefile.in (conf-dist): New target. |
|
6681 |
|
6682 Tue Feb 6 10:59:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6683 |
|
6684 * help.cc (Ftype): Correctly handle structure names. |
|
6685 |
|
6686 Sun Feb 4 02:02:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6687 |
|
6688 * qpsol.cc (Fqpsol): Call set_options(), not copy() to set |
|
6689 options for QPSOL objects. |
|
6690 |
|
6691 * npsol.cc (Fnpsol): Call set_options(), not copy() to set |
|
6692 options for NPSOL objects. |
|
6693 |
|
6694 * quad.cc (Fquad): Call set_options(), not copy() to set |
|
6695 options for Quad objects. |
|
6696 |
|
6697 * dynamic-ld.cc (load_octave_builtin): Don't call destructor on string. |
|
6698 (load_octave_oct_file): Likewise. |
|
6699 Check oct_file.empty(), not just oct_file. |
|
6700 |
|
6701 * fsolve.cc (Ffsolve): Call set_options(), not copy() to set |
|
6702 options for NLEqn object. |
|
6703 |
|
6704 * variables.cc (do_who): Properly set match patterns from argument |
|
6705 vector for call to maybe_list. |
|
6706 |
|
6707 Sat Feb 3 03:29:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6708 |
|
6709 * octave.cc (long_opts): Properly set second field using new enum. |
|
6710 |
|
6711 * lsode.cc: Change ODE to LSODE where appropriate. |
|
6712 Use LSODE_options, not ODE_options. |
|
6713 |
|
6714 * dassl.cc: Change DAE to DASSL where appropriate. |
|
6715 Use DASSL_options, not ODE_options. |
|
6716 |
|
6717 Fri Feb 2 01:41:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6718 |
|
6719 * dirfns.cc: Include unistd.h. |
|
6720 |
|
6721 * parse.y, lex.l: Handle matrix lists without ml or mlnm stacks. |
|
6722 * pt-mat.h, pt-mat.cc (tree_matrix): |
|
6723 Rewrite to use SLList instead of home brew list. |
|
6724 * SLList-tm.cc: New file |
|
6725 * Makefile.in: Add it to the lists. |
|
6726 * SLStack-tm.cc: Delete. |
|
6727 * Makefile.in: Delete it from the lists. |
|
6728 |
|
6729 * All pt-* files: Use bool instead of int where appropriate. |
|
6730 |
|
6731 * Makefile.in (DEP_SOURCES_3): Add octave.cc. |
|
6732 |
|
6733 * pt-const.h (class tree_constant::tree_constant_rep): Make |
|
6734 everything in this class public, then it doesn't need to declare |
|
6735 the tree_constant class as a friend. |
|
6736 |
|
6737 Thu Feb 1 01:42:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6738 |
|
6739 * lex.h, lex.l, parse.h, parse.y (class lexical_feedback): New |
|
6740 class for lexer flags. Replace lots of global vars with members |
|
6741 of this class. |
|
6742 |
|
6743 * lex.l (class brace_paren_nesting_level): New class to replace |
|
6744 nesting_level stack. nesting_level is now an instance of this |
|
6745 class. |
|
6746 |
|
6747 * lex.l (yum_yum): New typedef. |
|
6748 (ATE_NOTHING): New global var. |
|
6749 (ATE_SPACE_OR_TAB, ATE_NEWLINE): Don't #define these, declare them |
|
6750 as const yum_yum. |
|
6751 (eat_whitespace, eat_continuation): Return yum_yum, not int. |
|
6752 |
|
6753 * lex.l (SHORT_CIRCUIT_LOGICALS): Delete. Always do this for || |
|
6754 and && tokens. |
|
6755 (yy_flex_alloc, yy_flex_realloc, yy_flex_free, next_char_is_space): |
|
6756 Delete. |
|
6757 |
|
6758 * toplev.cc (verbose_flag): Delete definition. |
|
6759 * toplev.h (verbose_flag): And declaration. |
|
6760 * octave.cc (verbose_flag): Now static. |
|
6761 |
|
6762 * lex.l (lookup_identifier): Arg is now string, not char*. |
|
6763 (handle_identifier, is_plot_keyword, is_keyword): Likewise. |
|
6764 (strip_trailing_whitespace): Return value is now string, not char*. |
|
6765 (plot_style_token): Likewise, for both arg and return value. |
|
6766 |
|
6767 * input.cc (octave_gets_line): Delete. |
|
6768 (gnu_readline, octave_gets, octave_read): |
|
6769 Properly handle input when using_readline is either true or false. |
|
6770 Don't limit length of input lines to flex buffer size. |
|
6771 (get_user_input): New function. |
|
6772 |
|
6773 * octave.cc (main): Handle --no-line-editing. |
|
6774 * toplev.h (using_readline): Provide external declaration here. |
|
6775 * input.h: Not here. |
|
6776 * toplev.cc (using_readline): Define here. |
|
6777 * input.cc: Not here. |
|
6778 |
|
6779 * toplev.h (no_line_editing): Delete declaration. |
|
6780 * input.cc (no_line_editing): Delete definition. |
|
6781 |
|
6782 Wed Jan 31 05:28:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6783 |
|
6784 * input.cc (DEFAULT_ARRAY_SIZE, PROMPT_GROWTH): Delete definitions |
|
6785 of unused macros. |
|
6786 (read_octal): Now static. |
|
6787 |
|
6788 * givens.cc (Fgivens): Use new functions from matrix classes |
|
6789 instead of calling Fortran functions directly. |
|
6790 * syl.cc (Fsyl): Likewise. |
|
6791 * expm.cc (Fexpm): Likewise. |
|
6792 |
|
6793 Mon Jan 29 00:00:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6794 |
|
6795 * octave.cc: Use new prog_args class instead of calling getopt |
|
6796 directly. |
|
6797 |
|
6798 * getopt.h, getopt.c, getopt1.c: Move to liboctave directory. |
|
6799 * Makefile: Remove from lists. |
|
6800 |
|
6801 * utils.cc (strconcat, read_until, discard_until): Delete. |
|
6802 |
|
6803 * pager.cc (terminal_columns, terminal_rows): Move to |
|
6804 liboctave/oct-term.cc. |
|
6805 * pager.cc, pr-output.cc: Include oct-term.h. |
|
6806 |
|
6807 * utils.cc (list_in_columns): Moved to liboctave/str-vec.cc. |
|
6808 Change all callers to use new member function syntax. |
|
6809 |
|
6810 * dirfns.cc (absolute_program): Now static. |
|
6811 (absolute_pathname): Delete. |
|
6812 |
|
6813 * pt-plot.cc (save_in_tmp_file): Call oct_tempnam, not |
|
6814 octave_tmp_file_name. Include file-ops.h. |
|
6815 * file-io.cc (do_scanf, Foctave_tmp_file_name): Likewise. |
|
6816 * oct-hist.cc (mk_tmp_hist_file): Likewise. |
|
6817 |
|
6818 * file-io.cc (Foctave_tmp_file_name): Move here. |
|
6819 * utils.cc: From here. |
|
6820 |
|
6821 * utils.cc (octave_tmp_file_name): Move to liboctave/file-ops.cc. |
|
6822 |
|
6823 * tempname.c, tempnam.c: Move to liboctave directory. |
|
6824 * Makefile.in: Remove from lists. |
|
6825 |
|
6826 Sun Jan 28 19:00:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6827 |
|
6828 * xdiv.cc (all xdiv functions): Return Matrix or ComplexMatrix, |
|
6829 not tree_constant. |
|
6830 |
|
6831 * oct-hist.h, oct-hist.cc, toplev.cc, octave.cc, input.cc, |
|
6832 file-io.cc, user-prefs.cc: Rewrite to use new command_history |
|
6833 class instead of calling readline history functions directly. |
|
6834 |
|
6835 * utils.cc (get_fcn_file_names): Delete num arg. |
|
6836 |
|
6837 Thu Jan 25 20:33:54 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6838 |
|
6839 * load-save.cc (matches_patterns): Use new glob_match class |
|
6840 instead of calling fnmatch directly. |
|
6841 * symtab.cc (matches_patterns, symbol_table::glob): Likewise. |
|
6842 * variables.cc (Fclear): Likewise. |
|
6843 |
|
6844 Wed Jan 24 02:05:22 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6845 |
|
6846 * fnmatch.h fnmatch.c: Delete. |
|
6847 * Makefile.in: Add glob stuff in the appropriate places, remove |
|
6848 fnmatch.h and fnmatch.c from lists. |
|
6849 |
|
6850 * octave.cc (program_invocation_name, program_invocation_short_name): |
|
6851 Maybe declare. |
|
6852 (initialize_globals): Maybe initialize them. |
|
6853 |
|
6854 * octave.cc (initialize_pathsearch): Define here, not in pathsearch.cc. |
|
6855 * pathsearch.h, pathsearch.cc: Remove files. |
|
6856 * Makefile.in: Remove them from the lists. |
|
6857 |
|
6858 * help.cc (simple_help): Ignore directories that don't have any .m |
|
6859 or .oct files. |
|
6860 |
|
6861 * utils.cc (search_path_for_file): Use new dir_path class instead |
|
6862 of calling kpathsea routines directly. |
|
6863 (get_fcn_file_names): Likewise. |
|
6864 * help.cc (simple_help): Likewise. |
|
6865 |
|
6866 * dirfns.cc (make_absolute): Don't convert empty arg to "./". |
|
6867 |
|
6868 * sysdir.h: Move to liboctave directory. |
|
6869 * Makefile.in: Remove from lists. |
|
6870 |
|
6871 * dirfns.cc (Freaddir): Use new dir_entry class instead of calling |
|
6872 readdir directly. Include dir-ops.h, not sysdir.h. |
|
6873 * utils.cc (get_fcn_file_names): Likewise. Delete unnecessary |
|
6874 first arg, change all callers. |
|
6875 |
|
6876 Tue Jan 23 00:43:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6877 |
|
6878 * safe-xstat.hin, safe-xstat.cin, statdefs.h, file-ops.h, |
|
6879 file-ops.cc, filemode.c, mkdir.c, rmdir.c, rename.c: |
|
6880 Files moved to liboctave directory. |
|
6881 * Makefile.in: Remove them from lists. Move appropriate rules. |
|
6882 |
|
6883 * acosh.c, asinh.c, atanh.c, erf.c, erfc.c, gamma.c, lgamma.c: |
|
6884 Files moved to liboctave directory. |
|
6885 * Makefile.in: Remove them from lists. |
|
6886 * missing-math.h: Deleted. |
|
6887 * pr-output.cc, sysdep.cc, minmax.cc, mappers.cc, expm.cc, |
|
6888 arith-ops.cc: Include oct-math.h, not cmath or missing-math.h. |
|
6889 |
|
6890 Mon Jan 22 19:33:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6891 |
|
6892 * variables.cc (Fexist): Use file_stat instead of calling stat |
|
6893 directly. Include file-ops.h, not statdefs.h. |
|
6894 * octave.cc (execute_startup_files): Likewise. |
|
6895 * file-io.cc (file_io_get_file, fopen_internal, popen_internal, Fstat): |
|
6896 Likewise. |
|
6897 (mk_stat_map): Likewise, use file_stat object, not struct stat. |
|
6898 * oct-hist.cc (do_history): Likewise. |
|
6899 |
|
6900 * file-ops.h, file-stat.cc: New files. |
|
6901 * Makefile.in: Include them. |
|
6902 * dirfns.cc: Delete is_newer. Don't include statdefs.h. |
|
6903 * toplev.cc: Don't include statdefs.h. |
|
6904 |
|
6905 Sun Jan 21 22:48:03 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6906 |
|
6907 * pt-mvr.h, pt-fvc.h, Map.cc, Map.h, dynamic-ld.h, |
|
6908 pt-fvc-base.cc, SLList-str.cc, pt-fcn.h, pt-fvc-base.h, |
|
6909 SLStack-str.cc, pt-mvr.cc, pt-exp.cc, token.h, token.cc, |
|
6910 user-prefs.h, pt-base.cc, user-prefs.cc, dirfns.h, sysdep.h, |
|
6911 sysdep.cc, input.h, parse.h, lex.l, parse.y, defun.h, mappers.h, |
|
6912 pt-fvc.cc, pt-plot.h, load-save.h, octave.cc, defun-int.h, help.h, |
|
6913 variables.h, oct-map.h, oct-obj.h, oct-obj.cc, pt-const.cc, |
|
6914 oct-map.cc, input.cc, symtab.h, pt-const.h, pathsearch.cc, |
|
6915 pr-output.h, pr-output.cc, toplev.h, timefns.cc, schur.cc, |
|
6916 pt-plot.cc, pager.cc, load-save.cc, dynamic-ld.cc, dirfns.cc, |
|
6917 data.cc, file-info.h, file-info.cc, colloc.cc, utils.h, qpsol.cc, |
|
6918 quad.cc, npsol.cc, lsode.cc, fsolve.cc, dassl.cc, file-io.cc, |
|
6919 help.cc, utils.cc, oct-hist.h, oct-hist.cc, symtab.cc, toplev.cc, |
|
6920 pt-fcn.cc, unwind-prot.h, unwind-prot.cc, variables.cc: |
|
6921 Most functions in these files that deal with character strings |
|
6922 have been converted to use the string class insatead of char*. If |
|
6923 you want more detailed information, you'll have to figure it out |
|
6924 for yourself. |
|
6925 |
|
6926 Sat Jan 20 18:19:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6927 |
|
6928 * dynamic-ld.cc [WITH_DL]: Define RTLD_LAZY to be 1 if it is not |
|
6929 already defined. |
|
6930 |
|
6931 Sun Jan 14 07:48:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6932 |
|
6933 * pt-const.cc (print_as_scalar, print_as_structure): |
|
6934 Make these member functions. |
|
6935 (tree_constant::print_with_name): New function, moved here from |
|
6936 old tree-expr.cc file (where it was called print_constant) and |
|
6937 converted to member function. Change all callers. |
|
6938 |
|
6939 Fri Jan 12 01:54:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6940 |
|
6941 * octave.cc (initialize_globals): Don't do kpathsearch stuff here. |
|
6942 (main): Call initialize_pathsearch() here. |
|
6943 |
|
6944 * pathsearch.cc: New file. |
|
6945 * Makefile.in (SOURCES): Add it to the list |
|
6946 |
|
6947 * oct-hist.h: Rename from octave-hist.h. |
|
6948 * oct-hist.cc: Rename from octave-hist.cc. |
|
6949 * Makefile.in, parse.y, other .cc files: Cope with it. |
|
6950 |
|
6951 * dynamic-ld.cc: Avoid warnings if !WITH_DYNAMIC_LINKING. |
|
6952 |
|
6953 * load-save.cc (save_ascii_data): string::data() returns const char*. |
|
6954 |
|
6955 * utils.h: Don't provide forward declaration for tree_constant. |
|
6956 |
|
6957 * oct-obj.h: Don't include mx-base.h or provide forward |
|
6958 declarations for Matrix and Range types. |
|
6959 |
|
6960 * file-info.h: Don't include oct-obj.h. Do include cstdio. |
|
6961 |
|
6962 * symtab.h: Don't provide forward declaration for ostream. |
|
6963 |
|
6964 * variables.h: Don't provide forward declarations for istream, |
|
6965 ostrstream, tree, builtin_function, or builtin_variable objects. |
|
6966 |
|
6967 * balance.cc, chol.cc, colloc.cc, dassl.cc, det.cc, eig.cc, |
|
6968 expm.cc, fft.cc, fft2.cc, filter.cc, find.cc, fsolve.cc, fsqp.cc, |
|
6969 givens.cc, hess.cc, ifft.cc, ifft2.cc, inv.cc, log.cc, lpsolve.cc, |
|
6970 lsode.cc, lu.cc, minmax.cc, npsol.cc, pinv.cc, qpsol.cc, qr.cc, |
|
6971 quad.cc, qzval.cc, rand.cc, schur.cc, sort.cc, svd.cc, syl.cc: |
|
6972 Clean up #include statements. |
|
6973 |
|
6974 * pt-const.h: Don't include oct-obj.h or tree-base.h. |
|
6975 Provide forward declaration of Octave_object here. |
|
6976 * pt-const.cc: Include oct-obj.h here. |
|
6977 |
|
6978 * pt-mat.h, pt-fcn.h, pt-const.h, pt-misc.h, pt-plot.h, |
|
6979 pt-exp-base.h, pt-cmd.h, pt-fvc-base.h, pt-mvr-base.h, pt-exp.h, |
|
6980 pt-mvr.h, pt-fvc.h: New files, split from tree-expr.h and/or |
|
6981 renamed from other tree-*.h files (pt == parse tree). |
|
6982 * pt-base.cc, pt-const.cc, pt-exp.cc, pt-fvc-base.cc, pt-mat.cc, |
|
6983 pt-mvr-base.cc, pt-plot.cc, pt-cmd.cc, pt-exp-base.cc, pt-fcn.cc, |
|
6984 pt-fvc.cc, pt-misc.cc, pt-mvr.cc: Likewse, split from tree-expr.cc |
|
6985 and/or other tree-*.cc files. |
|
6986 * Makefile.in: Include them in the appropriate lists. |
|
6987 * All: Fix #include statements to match. |
|
6988 |
|
6989 * Array-tc.cc: Don't instantiate ArrayRep objects. |
|
6990 |
|
6991 Thu Jan 11 02:35:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6992 |
|
6993 * tree-const.cc (tree_constant::eval (int, int, const Octave_object&)): |
|
6994 Define here instead of in tree-const.h. |
|
6995 |
|
6996 Wed Jan 10 04:34:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6997 |
|
6998 * tree-const.h (tree_constant::tree_constant (const string&): |
|
6999 * tree-const.cc (TC_REP::tree_constant_rep (const string&)): |
|
7000 New constructor. |
|
7001 |
|
7002 Tue Jan 9 04:10:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7003 |
|
7004 * rand.cc (do_rand): Use string_value() result directly instead of |
|
7005 c_str() conversion. |
|
7006 * balance.cc (Fbalance): Likewise. |
|
7007 |
|
7008 * tree-const.cc (TC_REP::string_value()): |
|
7009 Handle new definition of charMatrix::row_as_string() |
|
7010 * load-save.cc (save_ascii_data): Ditto. |
|
7011 (save_binary_data): Ditto. |
|
7012 * pr-output.cc (octave_print_internal): Ditto. |
|
7013 |
|
7014 * balance.cc (Fbalance): |
|
7015 Handle new definition of TC_REP::string_value() |
|
7016 * colloc.cc (Fcolloc): Ditto. |
|
7017 * dassl.cc (Fdassl_options): Ditto. |
|
7018 * data.cc (Fstruct_contains): Ditto. |
|
7019 * dirfns.cc (Fmkdir): Ditto. |
|
7020 (Freaddir): Ditto. |
|
7021 (Frmdir): Ditto. |
|
7022 (Frename): Ditto. |
|
7023 * error.cc (handle_message): Ditto. |
|
7024 * file-io.cc (process_printf_format): Ditto. |
|
7025 (fopen_internal): Ditto. |
|
7026 (file_io_get_file): Ditto. |
|
7027 (return_valid_file): Ditto. |
|
7028 (Flstat): Ditto. |
|
7029 (Fstat): Ditto. |
|
7030 (unlink_internal): Ditto. |
|
7031 (mkfifo_internal): Ditto. |
|
7032 (async_system_internal): Ditto. |
|
7033 (sync_system_internal): Ditto. |
|
7034 (execute_internal): Ditto. |
|
7035 (popen_internal): Ditto. |
|
7036 (fwrite_internal): Ditto. |
|
7037 (fread_internal): Ditto. |
|
7038 (do_printf): Ditto. |
|
7039 (do_scanf): Ditto. |
|
7040 * input.cc (get_user_input): Ditto. |
|
7041 * lsode.cc (Flsode_options): Ditto. |
|
7042 * npsol.cc (Fnpsol_options):Ditto. |
|
7043 * qpsol.cc (Fqpsol_options):Ditto. |
|
7044 * quad.cc (Fquad_options): Ditto. |
|
7045 * rand.cc (do_rand): Ditto. |
|
7046 * schur.cc (Fschur): Ditto. |
|
7047 * sysdep.cc (Fputenv): Ditto. |
|
7048 (Fgetenv): Ditto. |
|
7049 * timefns.cc (extract_tm): Ditto. |
|
7050 (Fstrftime): Ditto. |
|
7051 * toplev.cc (Fsource): Ditto. |
|
7052 (eval_string): Ditto. |
|
7053 (Fsystem): Ditto. |
|
7054 * tree-plot.cc (subplot::handle_plot_data): Ditto. |
|
7055 * variables.cc (is_valid_function): Ditto. |
|
7056 (Fis_global): Ditto. |
|
7057 (Fexist): Ditto. |
|
7058 (builtin_string_variable): Ditto. |
|
7059 * utils.cc (make_argv): Ditto. |
|
7060 (Fundo_string_escapes): Ditto. |
|
7061 |
|
7062 Mon Jan 8 01:54:50 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7063 |
|
7064 * Makefile.in (install-bin): Use $(LN_S), not just ln. |
|
7065 |
|
7066 * variables.cc (octave_fcn_file_dir): New function. |
|
7067 * tree-expr.cc (mark_as_system_fcn_file): Use it instead of |
|
7068 octave_lib_dir. |
|
7069 |
|
7070 * Makefile.in (clean): If $(SHARED_LIBS), also remove shared libs. |
|
7071 |
|
7072 * pr-output.cc (set_format (const ComplexMatrix&, int&, int&)): |
|
7073 Unconditionally call all_elements_are_int_or_inf_or_nan(). |
|
7074 (set_format (const Matrix&, int&, int&)): Likewise. |
|
7075 |
|
7076 Sun Jan 7 19:12:39 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7077 |
|
7078 * utils.cc (oct_putenv): New function. |
|
7079 * sysdep.cc (Fputenv): Use oct_putenv. |
|
7080 * octave.cc (initialize_globals): Likewise. |
|
7081 |
|
7082 Sat Jan 6 23:22:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7083 |
|
7084 * sysdep.cc (Fputenv): New function. |
|
7085 |
|
7086 * input.cc (initialize_readline): Call rl_initialize() here. |
|
7087 |
|
7088 * octave.cc: Conditionally define atexit to be on_exit here. |
|
7089 * toplev.cc: Not here. |
|
7090 |
|
7091 Fri Jan 5 14:01:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7092 |
|
7093 * toplev.cc: Don't include <pwd.h> here. |
|
7094 |
|
7095 * octave-hist.cc, tree-plot.cc, utils.cc: Do include "sysdep.h". |
|
7096 |
|
7097 * dirfns.cc, file-io.cc, help.cc, load-save.cc, octave.cc, |
|
7098 octave-hist.cc, tree-plot.cc, utils.cc: |
|
7099 Don't include <readline/tilde.h>. |
|
7100 * sysdep.h: Do include it here. |
|
7101 |
|
7102 * tree-const.cc (TC_REP::assign (tree_constant&, Octave_object&)): |
|
7103 If we have a matrix or range, call maybe_mutate before returning. |
|
7104 |
|
7105 Sun Dec 31 15:56:18 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7106 |
|
7107 * npsol.cc (Fnpsol): Improve doc string. |
|
7108 * qpsol.cc (Fqpsol): Likewise. |
|
7109 |
|
7110 Fri Dec 29 21:46:58 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7111 |
|
7112 * defun-dld.h: Make work again for OCTAVE_LITE and |
|
7113 WITH_DYNAMIC_LINKING. |
|
7114 |
|
7115 * Makefile.in: Handle shared libraries. |
|
7116 |
|
7117 Wed Dec 27 17:47:51 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7118 |
|
7119 * mk-oct-links: New file. |
|
7120 * Makefile.in (install-oct): Use it. |
|
7121 * f-*.cc: Rename to *.cc. |
|
7122 |
|
7123 * Makefile.in (install-bin, install-lib, install-oct): New targets. |
|
7124 (install): Use them. |
|
7125 |
|
7126 Tue Dec 26 21:38:22 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7127 |
|
7128 * toplev.cc (reading_startup_message_printed): Move initialization |
|
7129 here and make extern. |
|
7130 |
|
7131 * dirfns.cc, dynamic-ld.cc, help.cc, input.cc, octave-hist.cc, |
|
7132 octave.cc, sighandlers.cc, sysdep.cc, tree-expr.cc, tree-misc.cc, |
|
7133 utils.cc, variables.cc, parse.y, lex.l: Include toplev.h instead |
|
7134 of octave.h. |
|
7135 * toplev.h: rename from octave.h. |
|
7136 |
|
7137 * octave.cc (main): Delete unused variable saved_sigint_handler. |
|
7138 |
|
7139 Sun Dec 24 00:26:54 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7140 |
|
7141 * dynamic-ld.cc: Massive re-write to handle dlopen/dlsym and |
|
7142 shl_load/shl_findsym methods of dynamic linking. |
|
7143 |
|
7144 * utils.cc (get_fcn_file_names): Check for .oct files if |
|
7145 WITH_DYNAMIC_LINKING, not WITH_DLD. |
|
7146 |
|
7147 * Makefile.in (LIB, TERMLIBS): Substitute values. |
|
7148 (octave): Add $(LIBS) to link command and use $(TERMLIBS) instead |
|
7149 of -ltermcap. |
|
7150 |
|
7151 Sat Dec 23 21:56:12 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7152 |
|
7153 * dynamic-ld.h, dynamic-ld.cc: Remove old unused code. |
|
7154 |
|
7155 * variables.cc (load_fcn_from_file): |
|
7156 Always call load_octave_oct_file. |
|
7157 |
|
7158 Wed Dec 20 00:56:57 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7159 |
|
7160 * pr-output.cc (set_real_format, set_real_matrix_format, |
|
7161 set_complex_format, set_complex_matrix_format, set_range_format): |
|
7162 New functions. Ensure the count of the digits to the right of the |
|
7163 decimal point is positive. |
|
7164 |
|
7165 * xpow.cc (xpow (const Matrix&, double)): Print warning if |
|
7166 inverting singular matrix (but return value anyway, in the name of |
|
7167 compatibility). |
|
7168 xpow (const ComplexMatrix&, double)): Likewise. |
|
7169 |
|
7170 * f-inv.cc (Finv): If matrix is singular, return result anyway, in |
|
7171 the name of compatibility. |
|
7172 |
|
7173 * symtab.cc (symbol_record::pop_context): |
|
7174 Don't assert (! context.empty ()). |
|
7175 |
|
7176 * tree-const.cc (TC_REP::char_matrix_value): Don't complain about |
|
7177 type conversion if object is an empty matrix.f |
|
7178 (TC_REP::assign): If rhs is a string, don't convert to numeric |
|
7179 type if rhs is empty or "". |
|
7180 Only widen if rhs is not empty. |
|
7181 Don't return 0x0 char_matrix if it is supposed to be a string. |
|
7182 |
|
7183 * arith-ops.h, mappers.h, pr-output.h, xdiv.h, xpow.h: Include |
|
7184 oct-cmplx.h in place of forward declaration for class Complex. |
|
7185 |
|
7186 * pr-output.cc, mappers.cc, arith-ops.cc, xdiv.cc, xpow.cc, |
|
7187 utils.cc: Include "oct-cmplx.h" instead of <Complex.h>. |
|
7188 |
|
7189 * octave.cc (initialize_error_handlers): Don't call |
|
7190 set_Complex_error_handler(). |
|
7191 (octave_Complex_error_handler): Delete unused function. |
|
7192 Delete declaration for set_Complex_error_handler(). |
|
7193 |
|
7194 * sighandlers.cc (catch_interrupts): New function. |
|
7195 * octave.cc (main): Call catch_interrupts() instead of calling |
|
7196 octave_set_signal_handler() directly. |
|
7197 |
|
7198 Tue Dec 19 03:22:37 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7199 |
|
7200 * variables.cc (looks_like_octave_copyright): Also recognize the |
|
7201 string " This program is free software". |
|
7202 |
|
7203 Thu Dec 14 01:54:06 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7204 |
|
7205 * octave-hist.cc (clean_up_history): Only write history file if |
|
7206 user_pref.saving_history. |
|
7207 |
|
7208 * octave-hist.cc (initialize_history, clean_up_history, |
|
7209 do_history): Perform tilde expansion on history file name. |
|
7210 |
|
7211 * octave.cc (main): Check `defined (HAVE_ON_EXIT)' not just |
|
7212 `(HAVE_ON_EXIT)'. |
|
7213 |
|
7214 * user-prefs.h (user_preferences): New fields, `history_file' and |
|
7215 `history_size'. |
|
7216 * user-prefs.cc (init_user_prefs): Initialize them. |
|
7217 (sv_history_file, history_size): New functions. |
|
7218 * variables.cc (install_builtin_variables): Initialize user-level |
|
7219 variables history_file and history_size. |
|
7220 * octave-hist.cc (default_history_size): Now extern. |
|
7221 (default_history_file): Likewise. |
|
7222 (octave_hist_size, octave_hist_file): Use user preference |
|
7223 variables instead. |
|
7224 * octave.cc (main): Call initialize_history after |
|
7225 execute_startup_files. |
|
7226 |
|
7227 Fri Dec 8 15:53:59 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7228 |
|
7229 * user-prefs.h (user_preferences): New field, `saving_history'. |
|
7230 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7231 (saving_history): New function. |
|
7232 * variables.cc (install_builtin_variables): Initialize user-level |
|
7233 variable saving_history. |
|
7234 * octave.cc (parse_and_execute): Don't reset value of |
|
7235 saving_history here. |
|
7236 (main) Use user_pref.saving_history instead of saving_history. |
|
7237 * variables.cc (parse_fcn_file): Likewise. |
|
7238 * octave-hist.cc (maybe_save_history): Likewise. |
|
7239 Don't save history if input_from_startup_file. |
|
7240 |
|
7241 Mon Nov 27 23:05:52 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7242 |
|
7243 * resource.cc: Include systime.h before <sys/resource.h>. |
|
7244 |
|
7245 Tue Nov 14 14:09:40 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7246 |
|
7247 * error.cc: Include cstring. |
|
7248 |
|
7249 * tree-expr.cc (print_code): Decrement indent level after printing |
|
7250 function body. |
|
7251 |
|
7252 * Makefile.in: Remove references to oct-str.cc, oct-str.h, and |
|
7253 Array-string.cc. |
|
7254 |
|
7255 * tree-const.h: Don't include oct-str.h. |
|
7256 |
|
7257 Mon Nov 6 11:16:49 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7258 |
|
7259 * parse.y (make_plot_command, finish_colon_expression, |
|
7260 make_unwind_protect, make_try_command, make_for_command, |
|
7261 make_break_command, make_continue_command, make_return_command, |
|
7262 start_if_command, finish_if_command, make_elseif_clause, |
|
7263 make_simple_assignment, make_multi_val_ret, start_function_def, |
|
7264 frob_function_def, finish_function_def, start_matrix, |
|
7265 finish_matrix): New functions. Use them in the grammar to clean |
|
7266 things up a bit. Possibly convert matrix lists, colon |
|
7267 expressions, binary expressions, and unary expressions to constant |
|
7268 values. |
|
7269 (tree_matrix_type): Delete. |
|
7270 (simple_expr1): Handle all expression stuff here, including |
|
7271 assignments. |
|
7272 (simple_expr): Just check to see that simple_expr1 produced |
|
7273 something useful. |
|
7274 |
|
7275 * tree-plot.cc, tree-plot.h: Move most simple constructors to the |
|
7276 header file. |
|
7277 |
|
7278 * tree-expr.h (tree_expression::is_constant): Move virtual |
|
7279 function definition here. |
|
7280 (tree_fvc::is_constant): From here. |
|
7281 (tree_expression::is_matrix_constant): New virtual function. |
|
7282 (tree_expression::is_range_constant): New virtual function. |
|
7283 * tree-expr.cc (tree_matrix::is_matrix_constant): New function. |
|
7284 * tree-expr.cc (tree_colon_expression::is_range_constant): New |
|
7285 function. |
|
7286 |
|
7287 Fri Nov 3 03:42:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7288 |
|
7289 * utils.cc, utils.h (jump_to_top_level): Declare as extern "C". |
|
7290 |
|
7291 * tree-const.h (tree_constant::eval ()): Only mutate if printing. |
|
7292 |
|
7293 * tree-const.cc (TC_REP::tree_constant_rep (const Complex&), |
|
7294 TC_REP::tree_constant_rep (const ComplexMatrix&), |
|
7295 TC_REP::tree_constant_rep (const ComplexDiagMatrix&), |
|
7296 TC_REP::tree_constant_rep (const ComplexRowVector&), |
|
7297 TC_REP::tree_constant_rep (const ComplexColumnVector&)): |
|
7298 Also check to see if we can convert to scalar_constant, not just |
|
7299 complex_scalar_constant. |
|
7300 |
|
7301 * user-prefs.h (user_preferences): New field, `exec_path'. |
|
7302 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7303 (sv_exec_path): New function. |
|
7304 * variables.cc (install_builtin_variables): Add DEFUN for EXEC_PATH. |
|
7305 (default_exec_path): New function. |
|
7306 * octave.cc (exec_path): New global variable. |
|
7307 Don't set and putenv() exec path here. |
|
7308 (long_opts): Add --exec-path option. |
|
7309 (main): Handle it. |
|
7310 (initialize_globals): Set default value here. |
|
7311 |
|
7312 * user-prefs.h (user_preferences): New field, `info_prog'. |
|
7313 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7314 (sv_info_prog): New function. |
|
7315 * variables.cc (install_builtin_variables): Add DEFUN for INFO_PROGRAM. |
|
7316 (default_info_prog): New function. |
|
7317 * octave.cc (info_prog): New global variable. |
|
7318 (initialize_globals): Set default value here. |
|
7319 (long_opts): Add --info-prog option. |
|
7320 (main): Handle it. |
|
7321 * help.cc (try_info): Use user_pref.info_prog here. |
|
7322 |
|
7323 * octave.cc (initialize_globals): Put arch_dir and bin_dir ahead |
|
7324 of shell_path when resetting PATH. |
|
7325 |
|
7326 Thu Nov 2 04:30:13 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7327 |
|
7328 * f-rand.cc (Frandn): New function. |
|
7329 (do_initialization): New function. |
|
7330 (do_rand): New function for doing the real work. |
|
7331 (Frand): Use it. |
|
7332 |
|
7333 * octave.cc (parse_and_execute): New arg, warn_for. If given, |
|
7334 print message if file cannot be opened. |
|
7335 Set curr_fcn_file_full_name here. |
|
7336 (Fsource): Pass extra arg to parse_and_execute to get warning message. |
|
7337 |
|
7338 * tree-const.h: Handle line and column info for double, Complex, |
|
7339 and char* constants. |
|
7340 |
|
7341 * parse.y (maybe_convert_to_ans_assign): Pass along line and |
|
7342 column info from expression. |
|
7343 |
|
7344 * parse.y (make_constant): New function. |
|
7345 (simple_expr1, word_list): Use it. |
|
7346 |
|
7347 * input.cc, input.h (curr_fcn_file_full_name): New global. |
|
7348 * variables.cc (load_fcn_from_file): Set it here. |
|
7349 * parse.y (func_def2, yyerror, maybe_warn_missing_semi): Use it. |
|
7350 (func_def2): If !reading_fcn_file, don't call strcmp if |
|
7351 curr_fcn_file_name is 0. |
|
7352 |
|
7353 * octave.cc (Fsource): New function. |
|
7354 (parse_and_execute): Declare file name const char *. |
|
7355 * input.cc (get_input_from_file): Likewise. |
|
7356 |
|
7357 Wed Nov 1 13:54:34 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7358 |
|
7359 * f-filter.cc: New file. |
|
7360 * Makefile.in (DLD_SRC): Add it to the list. |
|
7361 |
|
7362 * sysdep.h (gethostname): Change declaration to match definition |
|
7363 in sysdep.cc. |
|
7364 |
|
7365 * resource.cc: Include sysdep.h here, for octave_NaN. |
|
7366 |
|
7367 Tue Oct 31 02:12:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7368 |
|
7369 * tree-const.cc (TC_REP::assign): After converting rhs to a |
|
7370 numeric type, use the converted value, not the original. |
|
7371 |
|
7372 * dirfns.cc (Fpwd): If nargout == 0, print the directory name |
|
7373 instead of returning it. |
|
7374 |
|
7375 * pager.cc (maybe_page_output): Call maybe_write_to_diary_file here. |
|
7376 (flush_output_to_pager): Not here. |
|
7377 |
|
7378 Mon Oct 30 23:39:43 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7379 |
|
7380 * variables.cc (install_builtin_commands): Add DEFVAR for |
|
7381 echo_executing_commands. |
|
7382 |
|
7383 * octave-hist.cc (do_edit_history): Handle new echo stuff. |
|
7384 * variables.cc (parse_fcn_file): Likewise. |
|
7385 * octave.cc (parse_and_execute): Likewise. |
|
7386 (main): Likewise. |
|
7387 * input.cc (do_input_echo): |
|
7388 (Fecho): New function. |
|
7389 |
|
7390 * tree-expr.cc (tree_function::print_code_function_header, |
|
7391 tree_function::print_code_function_trailer): New functions. |
|
7392 (tree_function::print_code): Use them. |
|
7393 (tree_function::eval): Likewise, if echoing commands. |
|
7394 * tree-misc.cc (tree_statement::maybe_echo_code): New function. |
|
7395 |
|
7396 * user-prefs.h (user_preferences): New field, echo_executing_commands. |
|
7397 (echo_state): New enum, for various types of echoing we do. |
|
7398 * user-prefs.cc (echo_executing_commands): New function. |
|
7399 |
|
7400 * tree-base.cc (print_code_indent): Print PS4 as line prefix. |
|
7401 * help.cc (Ftype): Add unwind_protect for ps4 and set it to "" |
|
7402 before printing code. |
|
7403 |
|
7404 * tree-misc.h (tree_statement_list): New field, function_body. |
|
7405 (tree_statement_list::mark_as_function_body): New function. |
|
7406 * parse.y (func_def3): Mark function bodies. |
|
7407 |
|
7408 * pr-output.cc (octave_print_internal): Undo string escapes when |
|
7409 printing charMatrix as strings. |
|
7410 |
|
7411 Sat Oct 28 17:38:29 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7412 |
|
7413 * utils.h (undo_string_escapes): Add missing const in declaration. |
|
7414 |
|
7415 Fri Oct 27 03:49:44 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7416 |
|
7417 * file-io.cc (next_available_file_number): New stack for keeping |
|
7418 track of next available file number. |
|
7419 (get_next_avail_file_num): New function. |
|
7420 (fopen_file_for_user, fopen_internal, popen_internal, |
|
7421 execute_internal): Use it. |
|
7422 |
|
7423 Mon Oct 23 07:00:09 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7424 |
|
7425 * tree-const.cc (TC_REP::convert_to_matrix_type, |
|
7426 tree_constant::convert_to_matrix_type): New arg, make_complex. |
|
7427 (TC_REP::set_index): New arg, rhs_is_complex. Pass it to |
|
7428 convert_to_matrix_type. |
|
7429 (TC_REP::assign): Pass rhs.is_complex_type() to set_index. |
|
7430 |
|
7431 Thu Oct 19 00:38:38 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7432 |
|
7433 * xpow.cc: Include <climits>. |
|
7434 |
|
7435 * sysdep.cc (Fpause): Do pause even if not interactive. |
|
7436 |
|
7437 * tree-const.cc (TC_REP::assign): Don't make RHS numeric if both |
|
7438 RHS and LHS are strings. |
|
7439 |
|
7440 Wed Oct 18 22:19:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7441 |
|
7442 * f-expm.cc (Fexpm): Avoid taking log of negative number. Also, |
|
7443 don't unnecessarily divide the input matrix by 1.0. |
|
7444 |
|
7445 * input.cc (decode_prompt_string): Recognize \[ and \] too. |
|
7446 (initialize_readline): Bind M-p to history-search-backward and M-n |
|
7447 to history-search-forward. |
|
7448 |
|
7449 Tue Oct 17 04:31:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7450 |
|
7451 * xpow.cc (xpow): Handle integer powers better for complex^double. |
|
7452 (elem_xpow): Likewise. |
|
7453 |
|
7454 * lex.l ({CCHAR}): If nesting_level.top() is BRACE, return ';', |
|
7455 not '\n'. |
|
7456 |
|
7457 Mon Oct 16 19:03:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7458 |
|
7459 * help.cc (Fwhich): Fix doc string. |
|
7460 |
|
7461 * variables.cc (Fexist): Update doc string. |
|
7462 |
|
7463 Sun Oct 15 22:19:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7464 |
|
7465 * Another massive set of changes to support character matrices |
|
7466 with indexing. The Octave_str_object class is no longer used. |
|
7467 Anything having to do with Octave_str_object in the following |
|
7468 files has been changed to use charMatrix instead: octave.h, |
|
7469 load-save.cc, octave.cc, strfns.cc, data.cc, pr-output.h, |
|
7470 pr-output.cc, tree-const.h, dirfns.cc, tree-const.cc, |
|
7471 tree-expr.cc. |
|
7472 |
|
7473 Sat Oct 14 22:28:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7474 |
|
7475 * f-sort.cc (mx_sort): Don't attempt to sort vectors that have |
|
7476 only one element, or matrices that have only one row. |
|
7477 |
|
7478 Thu Oct 12 02:16:58 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7479 |
|
7480 * mappers.cc (install_mapper_functions): Add gammaln as an alias |
|
7481 for lgamma. |
|
7482 |
|
7483 * tree-const.h, tree-const.cc: Massive overhaul of indexing and |
|
7484 indexed assignment functions. |
|
7485 * tc-inlines.h, tc-rep.h: Remove files. |
|
7486 * Makefile.in: Remove mention of them here too. |
|
7487 |
|
7488 * Makefile.in: Include $(TI_SRC) in DEP_SOURCES_3, not |
|
7489 $(TI_SOURCES). |
|
7490 Include $(DLD_SRC) in DEP_SOURCES_3. |
|
7491 Include $(TI_SRC) in DEF_FILES_5. |
|
7492 |
|
7493 Wed Oct 11 01:26:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7494 |
|
7495 * Makefile.in (INCLUDES): Remove tc-inlines.h and tc-rep.h from |
|
7496 the list. |
|
7497 |
|
7498 Mon Oct 9 08:31:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7499 |
|
7500 * lex.l (next_token_is_bin_op): Do match `.+', `.*', etc. |
|
7501 |
|
7502 Sun Oct 8 18:19:56 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7503 |
|
7504 * idx-vector.h, idx-vector.cc: Delete files. |
|
7505 * Makefile.in (SOURCES, INCLUDES): Remove them from lists. |
|
7506 |
|
7507 Fri Oct 6 00:52:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7508 |
|
7509 * f-svd.cc (Fsvd): If nargout == 0 or nargout == 1, don't ask for |
|
7510 U and V. |
|
7511 |
|
7512 Wed Oct 4 00:04:57 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7513 |
|
7514 * f-npsol.cc (Fnpsol, Fnpsol_options): Avoid unused variable |
|
7515 warnings if NPSOL_MISSING. |
|
7516 * f-qpsol.cc (Fqpsol, Fqpsol_options): Likewise for QPSOL_MISSING. |
|
7517 |
|
7518 * Makefile.in (DISTFILES): Add octave.gperf. |
|
7519 |
|
7520 * lex.l (next_token_is_bin_op): Don't ever return true for `.' |
|
7521 since that causes problems with things like [ .1 .1 ]. |
|
7522 |
|
7523 Tue Oct 3 05:30:24 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7524 |
|
7525 * variables.cc (is_valid_function): Avoid setting error_state if |
|
7526 argument is not a string. |
|
7527 |
|
7528 * parse.y (maybe_warn_missing_semi): New function. |
|
7529 (list1, list): Call it if statement not terminated by semicolon. |
|
7530 * tree-misc.h (tree_statement::line, tree_statement::column): |
|
7531 New functions. |
|
7532 * octave.cc (input_from_command_line_file): New global variable. |
|
7533 (main): Set it. |
|
7534 (parse_and_execute): Unwind-protect it and set it to zero. |
|
7535 (eval_string): Likewise. |
|
7536 * variables.cc (parse_fcn_file): Likewise. |
|
7537 |
|
7538 * user-prefs.cc (warn_missing_semicolon): New function. |
|
7539 * user-prefs.h (user_preferences): New field, warn_missing_semicolon. |
|
7540 * variables.cc (install_builtin_variables): DEFVAR it. |
|
7541 |
|
7542 * tree-expr.cc (tree_expression::is_logically_true): Actually use |
|
7543 argument. |
|
7544 |
|
7545 Mon Oct 2 19:55:48 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7546 |
|
7547 * variables.cc (install_builtin_variables): Reduce the default |
|
7548 value of save_precision to 15. |
|
7549 |
|
7550 * variables.cc (builtin_real_scalar_variable): Return 1 for |
|
7551 success, 0 for failure. |
|
7552 |
|
7553 * user-prefs.cc (struct_levels_to_print, set_save_precision, |
|
7554 set_output_max_field_width, set_output_precision): |
|
7555 Change sense of test for builtin_real_scalar_variable return value. |
|
7556 (check_preference): Rename from check_str_pref. Change all callers. |
|
7557 Accept value of 0 to be the same as "false" and nonzero to be the |
|
7558 same as "true". |
|
7559 Delete val to avoid memory leak. |
|
7560 * variables.cc (install_builtin_variables): Change initial values |
|
7561 from "true" to 1, "false" to 0. |
|
7562 |
|
7563 * variables.cc (install_builtin_variables): Add DEFVAR for |
|
7564 gnuplot_has_multiplot. |
|
7565 |
|
7566 * user-prefs.h (user_preferences): New field, |
|
7567 `gnuplot_has_multiplot'. |
|
7568 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7569 (gnuplot_has_multiplot): New function. |
|
7570 |
|
7571 Sat Sep 30 16:52:57 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7572 |
|
7573 * oct-gperf.h, octave.gperf: Newfiles. |
|
7574 * Makefile.in (DISTFILES): Add octave.gperf. |
|
7575 (INCLUDES): Add oct-gperf.h. |
|
7576 (oct-gperf.h): New rule. |
|
7577 (local-dist, dist): Depend on oct-gperf.h. |
|
7578 * lex.l (is_keyword): Use perfect hash function to lookup |
|
7579 keywords. |
|
7580 |
|
7581 Fri Sep 29 04:36:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7582 |
|
7583 * version.h (OCTAVE_NAME_AND_VERSION): Add TARGET_HOST_TYPE to this. |
|
7584 |
|
7585 Thu Sep 28 00:03:51 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7586 |
|
7587 * tree-expr.cc (tree_expression::is_logically_true): New function. |
|
7588 * tree-cmd.cc (tree_while_command::eval): Use it instead of |
|
7589 handling the test directly here. |
|
7590 * tree-misc.cc (tree_if_clause::eval): Likewise |
|
7591 |
|
7592 * tree-const.cc (TC_REP::force_numeric): Don't try to print value |
|
7593 of str_obj with %s. |
|
7594 |
|
7595 * error.cc (buffer_error_messages): Rename from |
|
7596 suppress_octave_error_messages. |
|
7597 (error_message_buffer): New global variable. |
|
7598 (verror): Handle buffering of messages. |
|
7599 (handle_message): New function. |
|
7600 (Ferror, Fwarning, Fusage): Use it instead of duplicating code. |
|
7601 |
|
7602 * octave.cc (Feval): Buffer error messages instead of supressing them. |
|
7603 |
|
7604 * lex.l (is_keyword): Recognize `try', `catch', and `end_try_catch'. |
|
7605 * parse.y (TRY, CATCH): New tokens. |
|
7606 (command): Recognize try-catch block. |
|
7607 (end_error): Add cases for unwind_protect_end and try_catch_end. |
|
7608 * token.h (end_tok_type): New field, try_catch_end. |
|
7609 * tree-cmd.h, tree-cmd.cc (tree_try_catch): New class. |
|
7610 * variables.cc (bind_global_error_variable): New Function. |
|
7611 (clear_global_error_variable): Likewise. |
|
7612 (install_builtin_variables): Add DEFCONST for __error_text__. |
|
7613 * help.cc (keywords): Add `try', `catch', and `end_try_catch'. |
|
7614 |
|
7615 * tree-cmd.cc (tree_unwind_protect::eval): Undo previous change. |
|
7616 |
|
7617 * dirfns.cc (Freaddir, Fmkdir, Frmdir): |
|
7618 Do tilde expansion on the argument. |
|
7619 |
|
7620 Tue Sep 26 00:10:29 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7621 |
|
7622 * f-dassl.cc, f-fsolve.cc, f-lsode.cc, f-npsol.cc, f-quad.cc: |
|
7623 Don't try to figure out if the user-supplied functions take the |
|
7624 correct number of arguments. Simply let the call fail. |
|
7625 * variables.cc (takes_correct_nargs): Delete unused function. |
|
7626 * tree-expr.cc (tree_builtin::eval): Don't complain for too many |
|
7627 arguments to mapper functions. |
|
7628 * tree-expr.h, tree-expr.cc (tree_builtin, tree_function, tree_fvc): |
|
7629 Delete unused function max_expected_args. |
|
7630 |
|
7631 * defun.h (DEFUN): Delete unnecessary args nargin_min and nargout_max. |
|
7632 New arg unused_arg_flags. |
|
7633 (DEFUN_TEXT): Likewise. |
|
7634 * defun-dld.h (DEFUN_DLD_BUILTIN): Likewise. |
|
7635 * defun-int.h (DEFUN_INTERNAL, DECLARE_FUN, DEFINE_FUN_STRUCT): |
|
7636 Do the real work. |
|
7637 |
|
7638 * data.cc, dirfns.cc, dynamic-ld.cc, error.cc, f-balance.cc, |
|
7639 f-chol.cc, f-colloc.cc, f-dassl.cc, f-det.cc, f-eig.cc, f-expm.cc, |
|
7640 f-fft.cc, f-fft2.cc, f-find.cc, f-fsolve.cc, f-fsqp.cc, |
|
7641 f-givens.cc, f-hess.cc, f-ifft.cc, f-ifft2.cc, f-inv.cc, f-log.cc, |
|
7642 f-lpsolve.cc, f-lsode.cc, f-lu.cc, f-minmax.cc, f-npsol.cc, |
|
7643 f-pinv.cc, f-qpsol.cc, f-qr.cc, f-quad.cc, f-qzval.cc, f-rand.cc, |
|
7644 f-schur.cc, f-sort.cc, f-svd.cc, f-syl.cc, file-io.cc, help.cc, |
|
7645 input.cc, lex.l, load-save.cc, mappers.cc, octave-hist.cc, |
|
7646 octave.cc, octave.h, pager.cc, pr-output.cc, resource.cc, |
|
7647 sighandlers.cc, strfns.cc, sysdep.cc, timefns.cc, token.cc, |
|
7648 tree-const.cc, tree-expr.cc, tree-expr.h, tree-plot.cc, |
|
7649 unwind-prot.cc, unwind-prot.h, utils.cc, variables.cc, |
|
7650 variables.h, version.h, xdiv.cc: |
|
7651 Avoid unused variable warnings. |
|
7652 |
|
7653 * tree-expr.h (tree_oct_obj::print_value (ostream&)): |
|
7654 Delete name of unused arg. |
|
7655 (tree_fvc::save (ostream&, int, int): Likewise. |
|
7656 |
|
7657 * tree-const.h (tree_constant::tree_constant (magic_colon)): |
|
7658 Delete name of unused arg. |
|
7659 (tree_constant::tree_constant (all_va_args)): Likewise |
|
7660 (ColumnVector vector_value (int, int)): Likewise. |
|
7661 (ComplexColumnVector vector_value (int, int)): Likewise. |
|
7662 (Octave_object::eval (int, int, const Octave_object&): Likewise. |
|
7663 |
|
7664 * octave.cc (execute_startup_files): Look for octaverc first in |
|
7665 site/m, then in $(version)/m. |
|
7666 * variables.cc (get_local_site_defaults): New function. |
|
7667 * defaults.h.in (OCTAVE_LOCALFCNFILEDIR, OCTAVE_LOCALSTARTUPFILEDIR): |
|
7668 New macros. |
|
7669 * Makefile.in (defaults.h): Also substitute ${localfcndir}. |
|
7670 |
|
7671 Mon Sep 25 17:01:03 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7672 |
|
7673 * variables.cc (install_builtin_variables): Add DEFCONST for "e". |
|
7674 |
|
7675 Fri Sep 22 02:18:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7676 |
|
7677 * dirfns.cc (Fls): Delete ls_command after using it, not before. |
|
7678 |
|
7679 * input.h, input.cc (gnu_readline): Don't declare gnu_readline |
|
7680 `extern "C"'. |
|
7681 |
|
7682 * sysdep.h: Only declare gethostname if it is missing, then don't |
|
7683 declare it `extern "C"'. |
|
7684 |
|
7685 * dirfns.cc: Don't declare strerror(). |
|
7686 |
|
7687 * input.cc (command_generator): Use malloc, not xmalloc. Don't |
|
7688 declare xmalloc. |
|
7689 (gnu_readline): Don't declare this `extern "C"'. |
|
7690 |
|
7691 * octave-hist.cc: Don't declare history_get(). It is now in |
|
7692 readline/history.h. |
|
7693 |
|
7694 * input.cc: Don't declare history_get(). It is now in |
|
7695 readline/readline.h. |
|
7696 |
|
7697 * resource.cc: Don't surround include of sys/resource.h in |
|
7698 `extern "C" { }'. |
|
7699 |
|
7700 * fnmatch.h [__cplusplus]: Surround contents in `extern "C" { }'. |
|
7701 * load-save.cc, symtab.cc, variables.cc: Don't surround |
|
7702 fnmatch.h include in `extern "C" { }'. |
|
7703 |
|
7704 * help.cc: Don't #undef __FUNCTION_DEF before including |
|
7705 readline/tilde.h. |
|
7706 |
|
7707 * dirfuns.cc, file-io.cc, help.cc, load-save.cc, octave-hist.cc, |
|
7708 sysdep.cc, tree-plot.cc, utils.cc, variables.cc: |
|
7709 Don't surround readline includes in `extern "C" { }'. |
|
7710 |
|
7711 * sysdep.cc: Move all include statements to top of file. |
|
7712 |
|
7713 Tue Sep 19 01:58:21 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7714 |
|
7715 * octave.cc (Fsystem): Use iprocstream *, and unwind_protect it. |
|
7716 * pager.cc (flush_output_to_pager): Likewise. |
|
7717 * dirfns.cc (Fls): Likewise. |
|
7718 * tree-plot.cc (plot_stream): Now a pointer. |
|
7719 (open_plot_stream): Deal with it. |
|
7720 (send_to_plot_stream, cleanup_tmp_files, do_external_plotter_cd): |
|
7721 Likewise. |
|
7722 |
|
7723 * procstream.cc (cleanup_iprocstream, cleanup_oprocstream): |
|
7724 New functions. |
|
7725 |
|
7726 * procstream.h, procstream.cc (class iprocstream, class oprocstream): |
|
7727 Keep track of pbuf. Initialize it to 0 in default constructors, |
|
7728 delete it in destructor. Don't call close in destructor. |
|
7729 |
|
7730 * sighandlers.cc (octave_set_signal_handler): New function. |
|
7731 Use this name instead of signal everywhere. |
|
7732 * help.cc (try_info): Likewise. |
|
7733 * pager.cc (flush_output_to_pager): Likewise. |
|
7734 * octave.cc (main): Likewise. |
|
7735 * octave-hist.cc (do_edit_history): Likewise. |
|
7736 |
|
7737 * input.cc (initialize_readline): Set rl_paren_string_delimiters |
|
7738 to avoid treating single quotes as string delimiters when doing |
|
7739 paren matching. |
|
7740 |
|
7741 * Makefile.in (SOURCES): Don't list Map.cc or SLStack.cc here. |
|
7742 |
|
7743 * tree-const.cc: Do include utils.h. |
|
7744 |
|
7745 * sysdep.cc: Don't surround terminal includes in extern "C". |
|
7746 Include them before readline.h. |
|
7747 |
|
7748 * Map.h: Don't include utils.h. |
|
7749 (CHNode::CHNode (const char*, const C&, CHNode *t): |
|
7750 Do strsave() inline. |
|
7751 |
|
7752 * input.cc (generate_possible_completions): Generate name list |
|
7753 even when text == 0. |
|
7754 (operate_and_get_next): Don't declare history_stifled, call |
|
7755 history_is_stifled () instead. |
|
7756 Don't declare history_length, or max_input_history either. |
|
7757 Check (where >= history_length - 1) too, as in recent versions of |
|
7758 bash. |
|
7759 |
|
7760 * user-prefs.h (user_prefs): New field, `completion_append_char'. |
|
7761 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7762 (sv_completion_append_char): New function. |
|
7763 * variables.cc (install_builtin_variables): Install |
|
7764 completion_append_char. |
|
7765 * input.cc (command_generator): Use it. |
|
7766 |
|
7767 * SLList-expr.cc, SLList-misc.cc, SLList-plot.cc, SLList-tc.cc, |
|
7768 DLList-fi.cc: Include config.h. |
|
7769 * DLList-fi.cc: Include file-info.h, not file-io.h. |
|
7770 |
|
7771 Mon Sep 18 11:01:24 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7772 |
|
7773 * octave.h (clean_up_and_exit): Tag with NORETURN instead of using |
|
7774 typedef trick. |
|
7775 * error.h (panic): Likewise. |
|
7776 * utils.h (jump_to_top_level): Likewise. |
|
7777 |
|
7778 * file-io.h: Protect from multiple includes with octave_file_io, |
|
7779 not octave_files. |
|
7780 |
|
7781 * file-info.h (class file_info): Convert to using std C++ string |
|
7782 class from char *. |
|
7783 * file-info.cc: Likewise. Don't include utils.h. |
|
7784 * file-io.cc (return_valid_file, fopen_file_for_user, |
|
7785 fflush_internal, do_scanf): Use operator ==, not strcmp. |
|
7786 (close_files): Call error with file.name ().data (), |
|
7787 not file.name (). |
|
7788 (freport_internal): Call form with file.mode ().data () and |
|
7789 file.name ().data (). |
|
7790 |
|
7791 * file-io.cc, file-io.h: Extract file_info class. |
|
7792 * file-info.cc, file-info.h: New files for file_info class. |
|
7793 |
|
7794 * user-prefs.h (user_prefs): New field, `beep_on_error'. |
|
7795 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7796 (beep_on_error): New function. |
|
7797 * variables.cc (install_builtin_variables): Install beep_on_error. |
|
7798 * octave.cc (maximum_braindamage): Set beep_on_error to "true". |
|
7799 * error.cc (verror): Conditionally beep. |
|
7800 (error): Don't reset error_state until after verror is called. |
|
7801 |
|
7802 Sun Sep 17 16:41:25 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7803 |
|
7804 * load-save.cc (read_mat_binary_data, read_ascii_data, |
|
7805 save_ascii_data, read_binary_data, save_binary_data): |
|
7806 Handle string arrays. |
|
7807 |
|
7808 Fri Sep 15 00:24:19 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7809 |
|
7810 * user-prefs.cc (struct_levels_to_print, |
|
7811 set_output_max_field_width, set_output_precision, |
|
7812 set_save_precision): Eliminate unecessary kludge variable. |
|
7813 |
|
7814 * variables.cc (gobble_leading_white_space): New arg, |
|
7815 in_parts. Change all callers. |
|
7816 |
|
7817 * lex.l (HELP_FCN): Delete start state. The `help' command is now |
|
7818 handled the same as any other text-style function. |
|
7819 |
|
7820 * gripes.cc (gripe_invalid_value_specified): New function |
|
7821 * user-prefs.cc: Use it. |
|
7822 |
|
7823 * sysdep.cc (octave_words_big_endian): New global variable. |
|
7824 (ten_little_endians): New function. |
|
7825 (sysdep_init): Call it. |
|
7826 * load-save.cc (words_big_endian): Use this at run-time instead of |
|
7827 depending on WORDS_BIGENDIAN at compile-time. |
|
7828 |
|
7829 * symtab.h (SYMTAB_VARIABLES): New macro. |
|
7830 * variables.cc (Fclear): Use it instead of just |
|
7831 symbol_def::USER_VARIABLE when looking for variables. |
|
7832 |
|
7833 * octave.cc (main): If there is a file to execute, set |
|
7834 program_invocation_name and program_name to the name of the file |
|
7835 and argv to the remaining args. |
|
7836 (intern_argv): Only define argv if there are some remaining |
|
7837 arguments. |
|
7838 |
|
7839 * defun.h (DEFVAR_INT): New macro. |
|
7840 (DEFVAR): Define in terms of DEFVAR_INT. Delete args protect and |
|
7841 eternal. |
|
7842 (DEFCONST): New macro. |
|
7843 * variables.cc (install_builtin_variables): Use DEFCONST where |
|
7844 appropriate, change uses of DEFVAR to match new definition. |
|
7845 |
|
7846 * variables.cc (bind_builtin_variable): New variant that accepts |
|
7847 const tree_constant& value. |
|
7848 (install_builtin_variables): Properly alphabetize DEFVAR for this. |
|
7849 |
|
7850 * octave.cc (short_opts): Prefix with `+' to prevent argv |
|
7851 permutation. |
|
7852 (main): Don't use readline if forced_interactive. |
|
7853 (traditional): New file-scope variable. |
|
7854 (long_opts, usage_string, verbose_usage): Add `--traditional'. |
|
7855 (maximum_braindamage): New function. |
|
7856 (main): Call it if --traditional. |
|
7857 |
|
7858 * input.cc (do_input_echo): Print prompt correctly when |
|
7859 forced_interactive is either true or false. |
|
7860 |
|
7861 Thu Sep 14 00:54:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7862 |
|
7863 * data.cc (Fstruct_elements): New function. |
|
7864 |
|
7865 * file-io.cc (Fumask): New function. |
|
7866 |
|
7867 * dirfns.cc (Fmkdir, Frmdir, Frename): New functions. |
|
7868 |
|
7869 * Makefile.in: Add rules and dependencies for building safe-stat.o |
|
7870 and safe-lstat.o. |
|
7871 |
|
7872 * mkdir.c, rename.c, rmdir.c: New files. |
|
7873 * Makefile.in (SOURCES): Include them in the list. |
|
7874 |
|
7875 * safe-xstat.hin, safe-xstat.cin: New files |
|
7876 * Makefile.in (DISTFILES): Include them in the list. |
|
7877 |
|
7878 * sighandlers.cc (octave_new_handler): Try to continue on memory |
|
7879 exhausted errors. |
|
7880 (sigfpe_handler): Improve error message. |
|
7881 |
|
7882 * Makefile.in: Use `ifndef omit_deps', not `ifndef $(omit_deps)'. |
|
7883 |
|
7884 * dirfns.cc (Freaddir): New function. |
|
7885 |
|
7886 * f-sort.cc: Complete rewrite. Now uses stable sort algorithm and |
|
7887 correctly handles complex matrices containing columns of all real |
|
7888 numbers. |
|
7889 |
|
7890 Wed Sep 13 03:16:40 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7891 |
|
7892 * arith-ops.cc: Unconditionally #define DIVIDE_BY_ZERO_ERROR. |
|
7893 |
|
7894 * variables.cc (install_builtin_variables): Unconditionally |
|
7895 install NaN and nan. |
|
7896 |
|
7897 * mappers.cc (xisinf): Don't do bogus things if isinf, isnan, or |
|
7898 finite are missing. |
|
7899 (xfinite): Likewise. |
|
7900 |
|
7901 * sysdep.cc (octave_ieee_init): Don't set octave_NaN and |
|
7902 octave_Inf if values are not available. |
|
7903 |
|
7904 * resource.cc (mk_ru_map): Don't use ru_ or tv_ as prefixes to |
|
7905 Octave names for the structure members. |
|
7906 |
|
7907 Tue Sep 12 02:04:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7908 |
|
7909 * procstream.h, procstream.cc: Rewrite. |
|
7910 |
|
7911 Mon Sep 11 18:42:05 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7912 |
|
7913 * filemode.c: New file, from Emacs. |
|
7914 * Makefile.in (SOURCES): Add it to the list. |
|
7915 |
|
7916 * file-io.cc (Fstat, Flstat, mk_stat_map): New functions. |
|
7917 |
|
7918 * timefns.cc (mk_tm_map): Don't use tm_ as prefix to Octave names |
|
7919 for these structure members. |
|
7920 (extract_tm): Likewise. |
|
7921 (Flocaltime): Fix doc string to match. |
|
7922 |
|
7923 Thu Sep 7 02:04:27 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7924 |
|
7925 * load-save.cc (save_user_variables): New function. |
|
7926 * sighandlers.cc (my_friendly_exit): Call it before exiting. |
|
7927 (sigfpe_handler): New function. |
|
7928 (install_signal_handlers) [__alpha__]: Install it. |
|
7929 |
|
7930 Wed Sep 6 14:35:10 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7931 |
|
7932 * tree-cmd.cc (tree_unwind_protect::eval): Ignore errors and |
|
7933 suppress error messages while executing first block of |
|
7934 unwind_protect commands. |
|
7935 |
|
7936 * parse.y (end_error): Add missing case for unwind_protect_end. |
|
7937 |
|
7938 * tree-expr.cc (tree_builtin::eval): Complain if no arguments |
|
7939 given for mapper functions. |
|
7940 (tree_fvc::lookup_map_element): Print error message for invalid |
|
7941 structure reference. |
|
7942 |
|
7943 Tue Sep 5 02:04:12 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7944 |
|
7945 * file-io.cc, input.cc, load-save.cc, octave.cc, sysdep.cc, |
|
7946 variables.cc, octave-hist.cc, utils.cc, f-schur.cc, f-rand.cc, |
|
7947 f-quad.cc, f-qpsol.cc, f-npsol.cc, f-lsode.cc, f-fsolve.cc, |
|
7948 f-dassl.cc, f-colloc.cc, f-balance.cc, error.cc, data.cc: |
|
7949 Add const qualifiers where appropriate. |
|
7950 |
|
7951 * dirfns.h: Include <ctime>, for time_t. |
|
7952 |
|
7953 * tempname.c, file-io.cc, help.cc, input.cc, octave-hist.cc, |
|
7954 octave.cc, sighandlers.cc, sysdep.cc, tree-expr.cc, tree-misc.cc, |
|
7955 tree-plot.cc, utils.cc, variables.cc, sysdir.h: |
|
7956 Move #include <sys/type.h> inside #ifdef HAVE_UNISTD_H. |
|
7957 |
|
7958 * syswait.h: New file. |
|
7959 * Makefile.in (INCLUDES): Add it to the list. |
|
7960 * file-io.cc, sighandlers.cc: Use it instead of including |
|
7961 sys/wait.h directly. |
|
7962 |
|
7963 * octave.cc: Include statdefs.h, not sys/stat.h. |
|
7964 |
|
7965 * sysdir.h: New file. |
|
7966 * Makefile.in (INCLUDES): Add it to the list. |
|
7967 * dirfns.cc, utils.cc: Use it instead of including the headers |
|
7968 directly. |
|
7969 |
|
7970 * pathlen.h: New file. |
|
7971 * Makefile.in (INCLUDES): Add it to the list. |
|
7972 * dirfns.cc, input.cc: Use it instead of including sys/param.h |
|
7973 directly. |
|
7974 * utils.cc: Don't include sys/param.h |
|
7975 |
|
7976 Sun Sep 3 18:52:59 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7977 |
|
7978 * tree-const.cc (TC_REP::string_value): Return const char*, not |
|
7979 char *. |
|
7980 |
|
7981 * All .cc, .y, .l, .y files: Include <cctype>, not <ctype.h>, and |
|
7982 so on for all new C++ versions of these standard C headers. |
|
7983 |
|
7984 Thu Aug 31 17:09:38 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7985 |
|
7986 * pathsearch.h: Also hide `string'. |
|
7987 |
|
7988 * oct-str.cc, oct-str.h: New files. |
|
7989 * Makefile.in: Add to the appropriate lists. |
|
7990 * tc-rep.h: Change char* to Octave_string* in anonymous union. |
|
7991 * tree-expr.cc (tree_matrix::eval): Handle multiple element strings. |
|
7992 * strfns.cc (toascii): Likewise. |
|
7993 * tree-const.cc (print_as_string): Likewise. |
|
7994 (TC_REP::force_numeric, TC_REP::rows, TC_REP::columns, |
|
7995 TC_REP::double_value, TC_REP::complex_value, TC_REP::matrix_value, |
|
7996 TC_REP::complex_matrix_value, TC_REP::convert_to_str): Likewise. |
|
7997 (TC_REP::print): Call octave_print_internal for string case. |
|
7998 (all_strings): New function. |
|
7999 Fix constructors to use new data structure. |
|
8000 * pr-output.cc (octave_print_internal): Add version for strings. |
|
8001 * Array-string.cc: New file. |
|
8002 |
|
8003 * octave.cc (octave_argv): New global variable. |
|
8004 (intern_argv): New function. |
|
8005 (main): Fix argument parsing to do the right thing for arguments |
|
8006 to executable scripts. |
|
8007 * variables.cc: Add DEFUNs for argv, program_invocation_name, and |
|
8008 program_name. |
|
8009 |
|
8010 * defun.h (DEFVAR): Fix comment. |
|
8011 |
|
8012 Thu Aug 24 00:02:00 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8013 |
|
8014 * file-io.cc (fgets_internal): Make second arg optional. Add |
|
8015 optional arg `strip_final_newline'. |
|
8016 (Ffgets): Change to match new definition of fgets_internal. |
|
8017 (Ffgetl): Implement using the new fgets_internal. |
|
8018 |
|
8019 * f-rand.cc (Frand): Update code for sizing return value to match |
|
8020 that used by ones, zeros, and eye. |
|
8021 |
|
8022 Wed Aug 23 19:52:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8023 |
|
8024 * tree-const.cc (do_vector_assign): Don't crash for |
|
8025 A(range) = scalar, or A(matrix) = scalar. |
|
8026 |
|
8027 * f-dassl.cc (set_dassl_option): Rename from do_dassl_option. |
|
8028 (show_dassl_option): New function. |
|
8029 (Fdassl_options): Handle single arg. |
|
8030 * f-fsolve.cc (set_fsolve_option): Rename from do_fsolve_option. |
|
8031 (show_fsolve_option): New function. |
|
8032 (Ffsolve_options): Handle single arg. |
|
8033 * f-fsqp.cc (set_fsqp_option): Rename from do_fsqp_option. |
|
8034 (show_fsqp_option): New function. |
|
8035 (Ffsqp_options): Handle single arg. |
|
8036 * f-lpsolve.cc (set_lpsolve_option): Rename from do_lpsolve_option. |
|
8037 (show_lpsolve_option): New function. |
|
8038 (Flpsolve_options): Handle single arg. |
|
8039 * f-lsode.cc (set_lsode_option): Rename from do_lsode_option. |
|
8040 (show_lsode_option): New function. |
|
8041 (Flsode_options): Handle single arg. |
|
8042 * f-npsol.cc (set_npsol_option): Rename from do_npsol_option. |
|
8043 (show_npsol_option): New function. |
|
8044 (Fnpsol_options): Handle single arg. |
|
8045 * f-qpsol.cc (set_qpsol_option): Rename from do_qpsol_option. |
|
8046 (show_qpsol_option): New function. |
|
8047 (Fqpsol_options): Handle single arg. |
|
8048 * f-quad.cc: (set_quad_option): Rename from do_quad_option. |
|
8049 (show_quad_option): New function. |
|
8050 (Fquad_options): Handle single arg. |
|
8051 (Fquad): Doc fix. |
|
8052 |
|
8053 Tue Aug 22 00:38:05 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8054 |
|
8055 * tree-plot.cc (do_external_plotter_cd): New function. |
|
8056 * dirfns.cc (octave_change_to_directory): New function. If cd is |
|
8057 successful, also call do_external_plotter_cd(). |
|
8058 (Fcd): Call octave_change_to_directory(), not change_to_directory(). |
|
8059 |
|
8060 * pr-output.cc (pr_any_float): Change declaration of counter to |
|
8061 size_t to avoid gcc warnings. |
|
8062 |
|
8063 * idx-vector.cc, octave-hist.cc, tree-const.cc, tree-expr.cc, |
|
8064 tree-misc.cc, utils.cc, xpow.cc, Map.cc: |
|
8065 Update for change in for loop variable scope for gcc 2.7.0. |
|
8066 |
|
8067 Mon Aug 21 19:34:53 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8068 |
|
8069 * tree-const.cc (fortran_style_matrix_assignment): Properly handle |
|
8070 case of complex LHS, real RHS. |
|
8071 |
|
8072 * Makefile.in: Only include dependency files if $(omit_deps) is |
|
8073 not set. |
|
8074 |
|
8075 Wed Jul 5 00:03:58 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8076 |
|
8077 * sysdep.cc: Explicitly include string.h. |
|
8078 |
|
8079 Sun Jun 25 00:18:10 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8080 |
|
8081 * load-save.cc (too_large_for_float (const Matrix&)): |
|
8082 Extract elements as doubles, not Complex. |
|
8083 |
|
8084 Sat Jun 24 22:59:15 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8085 |
|
8086 * pr-output.cc (any_element_is_inf_or_nan): Declare extern, not static. |
|
8087 * f-svd.cc (Fsvd): Call here to avoid trying to take SVD of matrix |
|
8088 containing Inf or NaN values. |
|
8089 |
|
8090 * pr-output.cc (bit_format): New file-scope variable. |
|
8091 (set_format, pr_any_float): Handle bit_format. |
|
8092 (octave_print_internal): Handle bit_format like bank_format. |
|
8093 (init_format_state): Initialize bit_format. |
|
8094 (set_format_style): Allow `format bit' and `format native-bit'. |
|
8095 |
|
8096 Thu Jun 8 15:20:26 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8097 |
|
8098 * mappers.cc (arg, imag, signum): If arg is NaN, return NaN. |
|
8099 |
|
8100 Mon May 15 14:47:04 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8101 |
|
8102 * pager.cc (Fdiary): Initialize diary_file here, not in the |
|
8103 file-scope declaration. |
|
8104 |
|
8105 * tree-expr.cc (tree_index_expression::eval): |
|
8106 Handle nargin == 0 the same as other cases. |
|
8107 |
|
8108 Tue May 2 10:02:23 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8109 |
|
8110 * load-save.cc (do_double_format_conversion): Add missing breaks. |
|
8111 (do_float_format_conversion): Likewise. |
|
8112 |
|
8113 Mon May 1 13:50:24 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8114 |
|
8115 * Makefile.in (OCTAVE_LIBS): Add @LIBPLPLOT@ to the list. |
|
8116 |
|
8117 * timefns.cc (Ftime): Handle GETTIMEOFDAY_NO_TZ. |
|
8118 |
|
8119 * Makefile.in (SOURCES): Delete tc-rep.cc, tc-rep-ass.cc, and |
|
8120 tc-rep-idx.cc from the list. |
|
8121 |
|
8122 * tree-const.h: Add #pragma interface. |
|
8123 * tree-const.cc: Add contents of tc-rep.cc, tc-rep-ass.cc, and |
|
8124 tc-idx.cc to this file. Add #pragma implementation. This makes |
|
8125 tree-const.cc large, but makes the final binary smaller. |
|
8126 |
|
8127 * unwind-prot.h unwind-prot.cc token.cc token.h procstream.cc |
|
8128 procstream.h idx-vector.cc idx-vector.h symtab.cc symtab.h |
|
8129 oct-map.cc oct-map.h oct-obj.cc oct-obj.h tree-plot.h tree-plot.cc |
|
8130 tree-misc.cc tree-misc.h tree-expr.cc tree-expr.h tree-cmd.cc |
|
8131 tree-cmd.h tree-base.cc tree-base.h: |
|
8132 Add #pragma interface/implementation. |
|
8133 |
|
8134 * Makefile.in (OCTAVE_LIBS): Delete @LIBINFO@ from list. |
|
8135 * help.cc: Don't include info headers or extern declarations for |
|
8136 functions from info. |
|
8137 (try_info): Call info as a subprocess. Delete second arg. |
|
8138 Handle SIGINT here, not in help_from_info(). |
|
8139 (help_from_info): Complain if info doesn't work. |
|
8140 |
|
8141 * defun-dld.h (DEFUN_DLD_BUILTIN) [OCTAVE_LITE && MAKE_BUILTINS]: |
|
8142 If ! WITH_DLD, simply emit a character string constant. |
|
8143 |
|
8144 Fri Apr 28 15:23:06 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8145 |
|
8146 * lex.l ({IDENT}{S}*): Don't delete tok. That's handled by |
|
8147 strip_trailing_whitespace() now. |
|
8148 (<HELP_FCN>[^ \t\n]*{S}*|<TEXT_FCN>[^ \t\n\;\,]*{S}*): Ditto. |
|
8149 |
|
8150 * pathsearch.h: Include kpathsea/progname.h. |
|
8151 * octave.cc (initialize_globals): Call kpse_set_progname(). |
|
8152 |
|
8153 * token.h: Declare copy constructor and operator = private. |
|
8154 * token.cc: Abort if copy constructor or operator = is used. |
|
8155 |
|
8156 Thu Apr 27 13:54:39 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8157 |
|
8158 * tree-expr.cc (lookup_map_element): Don't list default argument |
|
8159 values here too. |
|
8160 |
|
8161 * pr-output.cc (hex_format): New file-scope variable. |
|
8162 (set_format, pr_any_float): Handle hex_format. |
|
8163 (octave_print_internal): Handle hex_format like bank_format. |
|
8164 (init_format_state): Initialize hex_format. |
|
8165 (set_format_style): Allow `format hex' and `format native-hex'. |
|
8166 |
|
8167 * variables.cc (bind_ans): Create ans_id each time with new and |
|
8168 ask tree_simple_assignment_expression to handle cleaning it up. |
|
8169 This apparently plugs a memory leak. |
|
8170 |
|
8171 * help.cc (Ftype): Don't try to print map constants. Handle |
|
8172 references to structure members. |
|
8173 |
|
8174 Wed Apr 26 12:40:59 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8175 |
|
8176 * input.cc (generate_struct_completions): New function. |
|
8177 (generate_possible_completions): Likewise. |
|
8178 (looks_like_struct): Likewise. |
|
8179 (command_generator): Handle completion of struct variables. |
|
8180 |
|
8181 * tree-expr.h, tree-expr.cc (tree_fvc::lookup_map_element): |
|
8182 Add insert and silent args. |
|
8183 |
|
8184 * oct-map.cc: New file. |
|
8185 * Makefile.in (SOURCES): Add it to the list. |
|
8186 |
|
8187 Mon Apr 24 09:41:02 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8188 |
|
8189 * variables.cc (Fexist): Handle structure references too. |
|
8190 |
|
8191 * tree-const.cc (lookup_map_element (const char*, int, int): |
|
8192 New function. |
|
8193 (lookup_map_element (SLList<char*>&, int, int): New arg, silent. |
|
8194 * tc-rep.cc (lookup_map_element): New arg, silent. If nonzero, |
|
8195 don't call error(). |
|
8196 |
|
8197 * tc-rep.h (is_empty): Define here. |
|
8198 * tree-const.h (is_empty): Hand off to TC_REP::is_empty(). |
|
8199 |
|
8200 * data.cc (Fstruct_contains): Call lookup_map_element on args(0) |
|
8201 instead of extracting the map and calling contains() on it. |
|
8202 |
|
8203 * parse.y (EPLUS, EMINUS): New tokens. |
|
8204 (simple_expr): Handle EPLUS, EMINUS the same as `+' and `-'. |
|
8205 * lex.l (".+", ".-"): New patterns. Match these separately to |
|
8206 disallow using them as unary operators. |
|
8207 |
|
8208 * lex.l (next_token_is_bin_op): Simplify by noting that spacing |
|
8209 only matters for those tokens that can also be unary ops. |
|
8210 |
|
8211 Fri Apr 21 14:34:45 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8212 |
|
8213 * load-save.cc (read_ascii_data): Allow reading of empty |
|
8214 matrices. |
|
8215 |
|
8216 * tc-rep-ass.cc (vector_assignment): Only assert that we are not |
|
8217 doing fortran-style indexing and that nr <= 1 || nc <= 1. |
|
8218 (do_vector_assign): Handle assignment of [] when one dimension is |
|
8219 zero and the other is anything. |
|
8220 |
|
8221 Thu Apr 20 13:56:21 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8222 |
|
8223 * tc-rep-ass.cc (delete_rows, delete_columns): Simply return if |
|
8224 num_to_delete is 0. |
|
8225 |
|
8226 * lex.l (handle_identifier): Don't match plot option keywords |
|
8227 inside parentheses or braces. |
|
8228 |
|
8229 * variables.cc (parse_fcn_file): Also delete tmp_help_txt if |
|
8230 running a script. |
|
8231 |
|
8232 * tree-cmd.h (tree_command): Add destructor. |
|
8233 |
|
8234 * tree-expr.h tree_simple_assignment_expression (lhs_idx_expr): |
|
8235 Hang on to idx_expr, not just its parts so it can be deleted. |
|
8236 (init): Initialize it. |
|
8237 * tree-expr.cc (~tree_simple_assignment_expression): Delete it. |
|
8238 |
|
8239 * tree-expr.h (tree_multi_val_ret, tree_oct_obj, tree_fvc, |
|
8240 tree_identifier, tree_builtin, tree_function): Add destructors. |
|
8241 * tree-expr.cc (tree_function::~tree_function): Delete some stuff. |
|
8242 |
|
8243 * tree-misc.h (tree_va_return_list): Add destructor. |
|
8244 |
|
8245 * octave.cc (__builtin_new, __builtin_delete): Provide our own, |
|
8246 for debugging. |
|
8247 |
|
8248 * utils.cc (strconcat): Don't depend on the return value from |
|
8249 strcat. |
|
8250 (file_in_path): Simplify logic. |
|
8251 |
|
8252 * parse.y (maybe_convert_to_ans_assign): Create ans_id each time |
|
8253 with new and ask tree_simple_assignment_expression to handle |
|
8254 cleaning it up. This apparently plugs a memory leak. |
|
8255 |
|
8256 * lex.l (strip_trailing_whitespace): Declare retval static. |
|
8257 Delete it before saving next string. |
|
8258 |
|
8259 * error.cc (Ferror): Do call error() for empty string args. |
|
8260 (error_1): Don't print anything if fmt is "" or "\n", but do set |
|
8261 the error state appropriately. |
|
8262 |
|
8263 * tree-cmd.cc (tree_unwind_protect::eval): Handle return and break |
|
8264 in the `try' part of the statement. |
|
8265 |
|
8266 Mon Apr 10 19:29:44 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8267 |
|
8268 * f-expm.cc, f-givens.cc, f-qzval.cc, f-syl.cc, f-rand.cc: |
|
8269 Where appropriate, declare Fortran functions to take reference |
|
8270 instead of pointer args. Change callers. |
|
8271 |
|
8272 * mappers.cc: Declare Fortran functions to take reference instead |
|
8273 of pointer args. Change callers. |
|
8274 |
|
8275 * gamma.c, lgamma.c, erfc.c, erf.c, atanh.c, asinh.c, acosh.c: |
|
8276 Declare Fortran functions to take reference instead of pointer |
|
8277 args. |
|
8278 |
|
8279 Sun Apr 9 19:38:53 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8280 |
|
8281 * file-io.cc (Fpopen, Fpclose, Fexecute, Fsync_system, |
|
8282 Fasync_system, Fwaitpid, Fmkfifo, Funlink): New functions. |
|
8283 |
|
8284 * sighandlers.cc (sigchld_handler): New function. |
|
8285 (install_signal_handlers): Add call to install |
|
8286 sigchld_handler. (This is #if 0'd out, waiting for code to help |
|
8287 determine which child exited and what to do about it). |
|
8288 |
|
8289 * tree-expr.h (tree_oct_obj): New class. |
|
8290 |
|
8291 * tree-expr.h (tree_multi_assignment_expression::preserve): New |
|
8292 data member. Add arg with default value to constructors. Change |
|
8293 callers as necessary. |
|
8294 * tree-expr.cc (~tree_multi_assignment_expression): Conditionally |
|
8295 delete lhs. |
|
8296 |
|
8297 * parse.y (make_multi_val_ret): Pass matrix instead of getting it |
|
8298 from the global matrix list. |
|
8299 (expression): Extract matrix from matrix list before calling |
|
8300 make_multi_val_ret(). |
|
8301 |
|
8302 * parse.y (command): Handle new for loop syntax for structures. |
|
8303 |
|
8304 * tree-plot.h (subplot_list): Include tree_print_code() in |
|
8305 initializer lists for constructors. |
|
8306 * tree-expr.h (tree_statement_list, tree_argument_list, |
|
8307 tree_parameter_list, tree_return_list, tree_global_init_list, |
|
8308 tree_if_command_list, ): Likewise. |
|
8309 |
|
8310 * tree-cmd.h (tree_for_command::id_list): New data member. |
|
8311 (tree_for_command (tree_return_list*, tree_expression*, |
|
8312 tree_statement_list*, int, int)): Likewise. |
|
8313 * tree-cmd.cc (tree_for_command::eval): Handle for loops with |
|
8314 structures. |
|
8315 (do_for_loop_once (tree_return_list*, Octave_object&, int&)): |
|
8316 New form for handling for loops with structures. |
|
8317 |
|
8318 * sysdep.cc (octave_ieee_init): Determine floating point format |
|
8319 here. |
|
8320 (native_float_format): New global variable. |
|
8321 (Fisieee): Compute return value from native_float_format, not by |
|
8322 using preprocessor macros. |
|
8323 * sysdep.h (enum floating_point_format): Move declaration here. |
|
8324 * load-save.cc: From here. |
|
8325 Always define all floating point format conversion routines. |
|
8326 (do_double_format_conversion, do_float_format_conversion): |
|
8327 Use native_float_format instead of preprocessor macros. |
|
8328 |
|
8329 Sat Apr 8 15:41:35 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8330 |
|
8331 * Makefile (TEMPLATE_SRC): New variable. |
|
8332 (DISTFILES): Add $(TEMPLATE_SRC). |
|
8333 (SOURCES): Delete Map.cc and SLStack.cc from here. |
|
8334 |
|
8335 * variables.cc (install_builtin_variables): Use OCTAVE_VERSION |
|
8336 instead of version_string to initialize OCTAVE_VERSION. |
|
8337 * version.h (version_string): Delete. |
|
8338 |
|
8339 * getopt.c (_getopt_internal): Initialize indfound to avoid warning. |
|
8340 |
|
8341 Fri Apr 7 15:29:41 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8342 |
|
8343 * tc-inlines.h (REP_RHS_MATRIX): Just check to see if tc is real |
|
8344 or complex. If conversion fails, return. |
|
8345 |
|
8346 Thu Apr 6 00:10:47 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8347 |
|
8348 * data.cc (Fstruct_contains): New function. |
|
8349 |
|
8350 * tc-rep.cc (print_code): Add extra parens around while condition |
|
8351 to avoid warning. |
|
8352 * utils.cc (undo_string_escapes): Likewise. |
|
8353 * input.cc (decode_prompt_string): Likewise. Also rewrite if |
|
8354 statement to avoid warning. |
|
8355 |
|
8356 Tue Apr 4 22:54:17 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8357 |
|
8358 * tree-expr.cc (tree_multi_assignment_expression::eval, |
|
8359 tree_simple_assignment_expression::eval): Call print_constant |
|
8360 even if user_pref.print_answer_id_name is false. |
|
8361 |
|
8362 Mon Apr 3 17:57:14 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8363 |
|
8364 * tc-inlines.h (TC_REP): Avoid redefinition. |
|
8365 |
|
8366 * tree-const.h (do_binary_op, do_unary_op): Declare as friends of |
|
8367 tree_constant class too. |
|
8368 |
|
8369 * tree-plot.h (subplot_using::have_values): Delete data member. |
|
8370 * tree-plot.cc (subplot_using::eval): Always recompute values. |
|
8371 |
|
8372 Fri Mar 31 10:18:32 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8373 |
|
8374 * tc-rep.cc (print): Print open brace for structures here. |
|
8375 * tree-expr.cc (print_constant): Not here. |
|
8376 |
|
8377 * symtab.cc (define): Don't delete arg if sv_fcn fails. |
|
8378 |
|
8379 * tree-const.cc (print): New function. Create ostrstream buffer |
|
8380 and pass it to rep->print(). |
|
8381 * tree-const.h (eval (int)): Call print(), not rep->print(). |
|
8382 * tc-rep.cc (structure_indent_level): New file-scope variable. |
|
8383 (print): New arg, output_buf, is stream to print to. |
|
8384 Print values of structure elements too. |
|
8385 |
|
8386 * user-prefs.h (user_preferences): New field, struct_levels_to_print. |
|
8387 * user-prefs.cc (struct_levels_to_print): New function. |
|
8388 * variables.cc (install_builtin_variables): Add DEFVAR for new |
|
8389 variable struct_levels_to_print. |
|
8390 |
|
8391 * tree-const.cc (print_as_scalar, print_as_structure): Move here |
|
8392 from tree-expr.cc and make extern. |
|
8393 |
|
8394 * tree-expr.cc (print_as_structure): New function. |
|
8395 (print_constant): Use it. |
|
8396 |
|
8397 * tree-expr.cc (print_constant): New arg, print_padding. |
|
8398 (tree_simple_assignment_expression::eval): Use print_constant |
|
8399 instead of duplicating code here. |
|
8400 (tree_multi_assignment_expression::eval): Likewise. |
|
8401 |
|
8402 Thu Mar 30 13:24:11 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8403 |
|
8404 * Makefile.in (SOURCES): Add resource.cc. |
|
8405 * resource.cc: New file, extracted from timefns.cc. |
|
8406 (Fgetrusage): New function. |
|
8407 * timefns.cc (cputime): Delete (now implemented in a function file |
|
8408 using new getrusage function). |
|
8409 |
|
8410 Wed Mar 29 22:52:42 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8411 |
|
8412 * Makefile.in (SOURCES): Add strftime.c. |
|
8413 * strftime.c: New file, from sh-utils distribution. |
|
8414 |
|
8415 * timefns.cc (mk_tm_map, extract_tm, Ftime, Fgmtime, Flocaltime, |
|
8416 Fmktime, Fstrftime): New basic time functions. |
|
8417 (Fclock, Fdate): Delete (now implemented in function files using new |
|
8418 time functions). |
|
8419 |
|
8420 Tue Mar 28 17:51:51 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8421 |
|
8422 * file-io.cc (return_valid_file, do_printf, do_scanf, |
|
8423 fclose_internal, feof_internal, ferror_internal, fflush_internal, |
|
8424 fgets_internal, fopen_internal, fread_internal, freport_internal, |
|
8425 frewind_internal, fseek_internal, ftell_internal, |
|
8426 fwrite_internal): Declare static. |
|
8427 * file-io.h: Delete extern declarations for them. |
|
8428 |
|
8429 Fri Mar 24 09:52:50 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8430 |
|
8431 * pr-output.cc (pr_col_num_header): New function. |
|
8432 (compact_format): New file-scope variable. |
|
8433 (set_format_style): Handle loose and compact formats. |
|
8434 (octave_print_internal (ostream&, const ComplexMatrix&, int)): |
|
8435 Replace duplicate code with call to pr_col_num_header(). |
|
8436 (octave_print_internal (ostream&, const Matrix&, int): Likewise. |
|
8437 (octave_print_internal (ostream&, const Range&, int): Likewise. |
|
8438 |
|
8439 Tue Mar 21 08:44:48 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8440 |
|
8441 * mappers.cc (xgamma): Always use Slatec library function. |
|
8442 * (xlgamma): Likewise. |
|
8443 * Makefile.in (SOURCES): Don't include lgamma.c. |
|
8444 |
|
8445 Fri Mar 17 22:38:39 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8446 |
|
8447 * tc-rep.cc (TC_REP::new): Don't try to keep track of newlist_tail. |
|
8448 Explicitly initialize newlist to zero. |
|
8449 * tree-const.cc (tree_constant::operator new): Likewise. |
|
8450 |
|
8451 Fri Mar 10 12:40:24 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8452 |
|
8453 * tree-cmd.cc (quit_loop_now): Declare inline. |
|
8454 (tree_for_command::do_for_loop_once): Split into two versions, one |
|
8455 for the general case and one for when the loop variable is a |
|
8456 simple identifier. |
|
8457 (DO_LOOP): New macro. Move tests outside of loop. |
|
8458 (tree_for_command::eval): Speed up by checking to see if loop |
|
8459 variable is a simple identifier and by using DO_LOOP. |
|
8460 |
|
8461 * tree-const.h: New union of rep and freeptr. The freeptr element |
|
8462 is used for our custom memory management functions. |
|
8463 |
|
8464 * tc-rep.h: Add freeptr element to anonymous union (for our custom |
|
8465 memory management functions). |
|
8466 |
|
8467 * tree-const.cc (newlist, newlist_grow_size, newlist_tail): New |
|
8468 static variables. |
|
8469 (tree_constant::operator new): Always define to allow more |
|
8470 efficient allocation of single tree_constants. |
|
8471 (tree_constant::operator delete): Likewise, handle deletion of the |
|
8472 memory we allocate. |
|
8473 |
|
8474 * tc-rep.cc (newlist, newlist_grow_size, newlist_tail): New static |
|
8475 variables. |
|
8476 (tree_constant::operator new): Always define to allow more |
|
8477 efficient allocation of single tree_constants. |
|
8478 (tree_constant::operator delete): Likewise, handle deletion of the |
|
8479 memory we allocate. |
|
8480 |
|
8481 Fri Mar 3 14:00:08 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8482 |
|
8483 * error.cc (verror): Terminate output_buf with ends. |
|
8484 |
|
8485 * statdefs.h: Use C-style comment in first line instead of |
|
8486 C++-style comment. |
|
8487 |
|
8488 Mon Feb 27 10:11:18 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8489 |
|
8490 * parse.y (maybe_convert_to_ans_assign): Only lookup ans once. |
|
8491 * variables.cc (bind_ans): New function. |
|
8492 * tree-expr.cc (tree_identifier::eval (int)): Use it here. |
|
8493 (tree_identifier::eval (int, int, const Octave_object&): And here. |
|
8494 |
|
8495 * tree-expr.cc (install_nargin_and_nargout): New function. |
|
8496 * tree-expr.h (tree_function::tree_function (tree_statement_list *, |
|
8497 symbol_table *, int, int)): Call it. |
|
8498 |
|
8499 * tree-expr.cc (tree_function::bind_nargin_and_nargout): New function. |
|
8500 (tree_function::eval): Call it insead of the one from variables.cc. |
|
8501 |
|
8502 * variables.cc (bind_nargin_and_nargout): #if 0 out. |
|
8503 |
|
8504 Sun Feb 26 00:17:06 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8505 |
|
8506 * load-save.cc (Fload, Fsave): Free fname returned by tilde_expand(). |
|
8507 * dirfns.cc (Fls): Likewise. |
|
8508 |
|
8509 * tree-expr.cc (tree_multi_assignment_expression::eval (int, int, |
|
8510 const Octave_object&)): Call tree_return_list::operator () (Pix) |
|
8511 explicitly. |
|
8512 |
|
8513 * octave.cc (initialize_globals): Put TEXMF in the environment for |
|
8514 kpthsea. |
|
8515 |
|
8516 * Makefile.in (OCTAVE_LIBS): Use @LIBINFO@ and @LIBREADLINE@, |
|
8517 substituted by configure. Use kpathsea.a, not libkpathsea, so we |
|
8518 don't have to modify the kpathsea Makefile. |
|
8519 |
|
8520 Sat Feb 25 18:59:26 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8521 |
|
8522 * pathsearch.cc: New file. |
|
8523 * pathsearch.h: New file. |
|
8524 * Makefile.in (INCLUDES): Include it in the list. |
|
8525 * dynamic-ld.cc, help.cc, utils.cc: Use it instead of repeating |
|
8526 identical code multiple times. |
|
8527 |
|
8528 * variables.cc (install_builtin_variables): Only DEFVAR |
|
8529 suppress_verbose_help_message if USE_GNU_INFO. |
|
8530 |
|
8531 * help.cc (Fhelp): Only handle -i if USE_GNU_INFO. |
|
8532 (additional_help_message): Only print message if USE_GNU_INFO. |
|
8533 (builtin_help): New function. |
|
8534 (help_from_info): New function. Print warning if not USE_GNU_INFO. |
|
8535 |
|
8536 See ChangeLog.1 in the top level directory for earlier changes. |