3815
|
1 2001-04-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2 |
|
3 * parse.y (fold (tree_binary_expression *)): |
|
4 Set discard_error_messages here instead of buffer_error_messages. |
|
5 Don't add clear_global_error_variable to the unwind_protect stack. |
|
6 (fold (tree_unary_expression *)): Likewise. |
|
7 (finish_colon_expression): Likewise. |
|
8 (finish_matrix): Likewise. |
|
9 |
|
10 * error.cc (panic): Set discard_error_messages to false here. |
|
11 (verror): Return immediately if discard_error_messages is true. |
|
12 |
|
13 * error.cc (discard_error_messages): New global variable. |
|
14 * error.h: Provide declaration. |
|
15 |
3813
|
16 2001-04-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
17 |
|
18 * lex.l: If unexpected character is EOF, report EOF error instead |
|
19 of invalid character error. |
|
20 |
3812
|
21 2001-04-18 Mumit Khan <khan@nanotech.wisc.edu> |
|
22 |
|
23 * load-save.cc (read_mat5_binary_element): Cast arguments to the |
|
24 correct type when adding stream positions. |
|
25 * DLD-FUNCTIONS/det.cc (det): Explicity create a Complex value to |
|
26 work around a Sun C++ type conversion bug. |
|
27 |
3811
|
28 2001-04-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
29 |
|
30 * symtab.cc (define_builtin_const): Don't call replace_all_defs |
|
31 here. |
|
32 |
|
33 * error.cc (error_message_buffer): Now static. |
|
34 * error.h (error_message_buffer): Delete extern declaration. |
|
35 |
3810
|
36 2001-03-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
37 |
|
38 * DLD-FUNCTIONS/besselj.cc (besselh): Use K arg. |
|
39 From: Thomas Stuart <tstuart@ing.sun.ac.za>. |
|
40 |
|
41 * oct-stream.cc (get_size): Don't allow [Inf, N] as a size |
|
42 specification for the read and scanf functions. |
|
43 (get_size): SIZE is now an Array<double> instead of a Matrix object. |
|
44 (read): Likewise. Change all callers. |
|
45 (scanf): Likewise. Change all callers. |
|
46 |
3808
|
47 2001-03-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
48 |
|
49 * DLD-FUNCTIONS/det.cc (Fdet): Only return rcond if nargout > 1. |
|
50 * DLD-FUNCTIONS/inv.cc (Finv): Only return rcond if nargout > 1. |
|
51 |
|
52 2001-03-26 Paul Kienzle <pkienzle@kienzle.powernet.co.uk> |
|
53 |
|
54 * DLD-FUNCTIONS/det.cc (Fdet): Suppress warning, but return rcond. |
|
55 * DLD_FUNCTIONS/inv.cc (Finv): Return rcond if requested. |
|
56 |
3804
|
57 2001-02-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
58 |
3805
|
59 * pt.h (tree::break_statement): New static member. |
|
60 (tree::break_function): Make const. |
|
61 * pt.cc (tree::break_statement): Initialize here. |
|
62 (tree::break_function): Make const. |
|
63 * pb-bp.h (break_statement): Delete global varaible declaration. |
|
64 * pt-bp.cc (break_statement): Delete global variable definition. |
|
65 |
|
66 * pt-bp.h (tree_breakpoint::bp_list): Rename from lst. |
|
67 |
|
68 * pt.h: Don't inlcude ov-usr-fcn.h. |
|
69 Provide forward declaration of octave_user_function class. |
|
70 |
|
71 2001-02-28 Ben Sapp <bsapp@lanl.gov> |
|
72 |
|
73 * debug.cc (get_user_function): Simplify by using curr_function. |
|
74 (Fdbg_where): New function. |
|
75 (Fdbg_list): Now DLD_TEXT instead of DLD_FCN. |
|
76 (Fdbg_set): Likewise. |
|
77 (Fdbg_delete): Likewise. |
|
78 |
|
79 * pt-bp.h (break_statement): New global variable. |
|
80 (MAYBE_DO_BREAKPOINT): Check for dbg_next and dbg_step. |
|
81 Print line, column, and current statement. |
|
82 * pt-bp.cc (break_statement): New global variable |
|
83 (tree_breakpoint::visit_do_until_command): Return immediately if |
|
84 we've already found the line. |
|
85 (tree_breakpoint::visit_colon_expression): Set breakpoint info here. |
|
86 (tree_breakpoint::visit_binary_expression): Recurse here when |
|
87 checking for breakpoints. |
|
88 |
|
89 * debug.cc: Move here from DLD-FUNCTIONS/debug.cc. |
|
90 * Makefile.in (DIST_SRC): Add it to the list. |
|
91 (DLD_XSRC): Delete it from the list. |
|
92 |
|
93 * pt.h (tree::last_line, tree::break_function): New static members. |
|
94 * pt.cc(tree::last_line, tree::break_function): Initialize them. |
|
95 |
|
96 * pt-cell.h (tree_cell::tree_cell): Accept line and column info. |
|
97 * pt-mat.h (tree_matrix::tree_matrix): Likewise. |
|
98 |
|
99 * ov-usr-fcn.h (octave_user_function::sym_tab): Delete. |
|
100 |
|
101 * input.cc (get_user_input): Handle dbg_next. |
|
102 Set tree:break_function and tree::last_line when doing dbg_step. |
|
103 |
|
104 2001-02-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
105 |
|
106 * lex.l (handle_string): Save line and column information in token. |
|
107 (is_keyword): Save line and column information for plot style and |
|
108 axes tokens. |
|
109 |
3804
|
110 * toplev.cc (main_loop): Set retval to non-zero value if error |
|
111 occurs when not interactive. |
|
112 |
3802
|
113 2001-02-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
114 |
|
115 * parse.y (gobble_leading_white_space): Handle CRLF here too. |
|
116 * lex.l (check_for_garbage_after_fcn_def): Likewise. |
|
117 |
|
118 * lex.l: Add numeric value of character to error message for |
|
119 unrecognized characters. |
|
120 |
3800
|
121 2001-02-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
122 |
|
123 * DLD-FUNCTIONS/minmax.cc (EMPTY_RETURN_CHECK): For empty matrix |
|
124 args, make Octave's min and max behave like Matlab. |
|
125 |
3799
|
126 2001-02-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
127 |
|
128 * OPERATORS/op-s-s.cc (el_or, el_and): Return bool value. |
|
129 |
3798
|
130 2001-02-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
131 |
|
132 * pt-binop.cc (tree_boolean_expression::rvalue): |
|
133 Don't cast result to double. |
|
134 |
|
135 * OPERATORS/op-b-b.cc: Allow & and | operators to return bool values. |
|
136 |
|
137 2001-02-09 John W. Eaton <jwe@bevo.che.wisc.edu> |
3797
|
138 |
|
139 * data.cc (DATA_REDUCTION): Undo previous change. |
|
140 |
|
141 2001-02-13 Matthew W. Roberts <matt@nephi.tamu.edu> |
|
142 |
|
143 * load-save.cc (Fload): Accept -4 as an alias for -v4 and -mat4-binary. |
|
144 (Fsave): Likewise. |
|
145 |
3796
|
146 2001-02-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
147 |
|
148 * lex.l (lexical_feedbac::init): |
|
149 Initialize looking_at_matrix_or_assign_lhs too. |
|
150 |
3795
|
151 2001-02-09 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
152 |
|
153 * data.cc (DATA_REDUCTION): Allow FCN(x,0) to be equivalent to FCN(x). |
|
154 |
3779
|
155 2001-02-06 Mumit Khan <khan@nanotech.wisc.edu> |
|
156 |
|
157 * oct-stream.cc (octave_scan): Partially implement and specialize |
|
158 for char*. Delete the old template instantiations. |
|
159 (BEGIN_S_CONVERSION): Use strings instead of ostrstreambuf. |
|
160 (octave_base_stream::do_scanf): Pass correct parameter to |
|
161 do_scan_conv. |
|
162 |
3775
|
163 2001-02-05 Mumit Khan <khan@nanotech.wisc.edu> |
|
164 |
3776
|
165 * pr-output.cc (set_format): Add std:: namespace qualifier as |
|
166 needed. |
|
167 |
3775
|
168 * oct-stream.cc (octave_scan): Implement, and specialize for |
|
169 char*. Delete the old template instantiations. |
|
170 (BEGIN_S_CONVERSION): Use strings instead of ostrstreambuf. |
|
171 (octave_base_stream::do_scanf): Pass correct parameter to |
|
172 do_scan_conv. |
|
173 |
|
174 * Makefile.in (TEMPLATE_AR, TEMPLATE_ARFLAGS): Use to create |
|
175 archive libraries containing templates. |
|
176 |
|
177 * c-file-ptr-stream.h: Include <fstream>. Use <cstdio> instead of |
|
178 <stdio.h> |
|
179 (c_file_ptr_buf::int_type): Compat typedef for non-ISO libstdc++. |
|
180 (c_file_ptr_buf::{overflow, underflow, uflow, pbackfail): Use. |
|
181 (c_file_ptr_buf::c_file_ptr_buf): Handle various compilers. |
|
182 (c_file_ptr_buf::file_number): New member function. |
|
183 (c_file_ptr_buf::fd): New private data. |
|
184 (i_c_file_ptr_stream::i_c_file_ptr_stream): Initialize stream |
|
185 correctly. |
|
186 (o_c_file_ptr_stream::o_c_file_ptr_stream): Likewise. |
|
187 * c-file-ptr-stream.cc |
|
188 (c_file_ptr_buf::{overflow, underflow, uflow, pbackfail): Add |
|
189 ISO-compliant EOF handling. |
|
190 * oct-stream.cc (octave_base_stream::file_number): Use |
|
191 c_file_ptr_buf::file_number to get underlying file descriptor. |
|
192 |
|
193 * comment-list.cc: Add missing class qualifier. |
|
194 |
|
195 * file-io.cc, load-save.cc, mappers.cc, oct-fstrm.cc, oct-fstrm.h, |
|
196 oct-iostrm.cc, oct-iostrm.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
197 oct-stream.cc, oct-stream.h, oct-strstrm.cc, oct-strstrm.h, |
|
198 ov-base-nd-array.cc, ov-base-scalar.h, ov-complex.cc, ov-cx-mat.cc, |
|
199 pager.cc, pr-output.cc, procstream.h, pt-bp.h, utils.cc: |
|
200 Add std:: namespace qualifier as needed, and replace |
|
201 deprecated or invalid libstdc++-v2 names with standard ones |
|
202 where appropriate. |
|
203 |
|
204 * DLD-FUNCTIONS/minmax.cc: Fix docstring. |
|
205 |
|
206 * oct-fstrm.cc (octave_fstream::octave_fstream): Maintain fix for |
|
207 libstdc++-v2. |
|
208 |
|
209 * oct-stdstrm.cc (octave_ostdiostream::create): Remove default |
|
210 parameter value in definition. |
|
211 |
|
212 * oct-stream.cc (octave_stream::mode_as_string): Don't assume |
|
213 std::iso::openmode is an integral quantity. |
|
214 |
|
215 * pager.cc, procstream.h: Initialize streams correctly. |
|
216 |
|
217 * utils.cc: Use CXX_ISO_COMPLIANT_LIBRARY guard. |
|
218 |
|
219 * ov-base-nd-array.cc (idx_list_to_idx_array): Inline. |
|
220 |
|
221 * ov-base-scalar.h (octave_base_scalar::octave_base_scalar): Use |
|
222 ``const ST& s'' instead of ST to workaround gcc3 complex bug. |
|
223 |
3774
|
224 2001-02-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
225 |
|
226 * lex.l (next_token_is_bin_op): Remove Checks for spacing except |
|
227 for ops that begin with +, - but are not ++, --, +=, or -=. |
|
228 |
3772
|
229 2001-02-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
230 |
|
231 * input.cc (get_user_input): Handle dbg_cont and dbg_step here. |
|
232 * debug.cc (Fdbg_cont): Delete. |
|
233 * pt-bp.h (MAYBE_DO_BREAKPOINT): Check tree::break_next here. |
|
234 * pt.h (tree::break_next): New static member. |
|
235 * pt.cc: Initialize it. |
|
236 |
|
237 * parse.h (feval (const octave_value_list&, int)): |
|
238 Set default value for nargout. |
|
239 (feval (const std::string&, const octave_value_list&, int)): |
|
240 Set default values for args and nargout. |
|
241 |
3770
|
242 2001-02-01 Ben Sapp <bsapp@lanl.gov> |
|
243 |
|
244 * DLD-FUNCTIONS/debug.cc: New file. |
|
245 * pt-bp.h, pt-bp.cc: New files, for breakpoints. |
|
246 * Makefile.in: Add them to the appropriate lists. |
|
247 |
|
248 * pt-stmt.cc (tree_statement_list::set_breakpoint, |
|
249 tree_statement_list::delete_breakpoint, |
|
250 tree_statement_list::list_breakpoints): New functions. |
|
251 |
|
252 * pt.h (tree::break_point): New data member. |
|
253 (tree::set_breakpoint, tree::delete_breakpoint, tree::is_breakpoint): |
|
254 New virtual functions. |
|
255 |
|
256 * pt-mat.cc (tree_matrix::rvalue): Check for breakpoint here. |
|
257 * pt-unop.cc (tree_prefix_expression::rvalue): Likewise. |
|
258 (tree_postfix_expression::rvalue): Likewise. |
|
259 * pt-loop.cc (tree_do_until_command::eval): Likewise. |
|
260 (DO_LOOP): Likewise. |
|
261 (tree_simple_for_command::eval): Likewise. |
|
262 (tree_complex_for_command::eval): Likewise. |
|
263 * pt-assign.cc (tree_simple_assignment::rvalue): Likewise. |
|
264 * pt-binop.cc (tree_binary_expression::rvalue): Likewise. |
|
265 (tree_boolean_expression::rvalue): Likewise. |
|
266 * pt-cell.cc (tree_cell::rvalue): Likewise. |
|
267 * pt-colon.cc (tree_colon_expression::rvalue): Likewise. |
|
268 * pt-except.cc (tree_try_catch_command::eval): Likewise. |
|
269 (tree_unwind_protect_command::eval): Likewise. |
|
270 * pt-id.cc (tree_identifier::rvalue): Likewise. |
|
271 (tree_identifier::lvalue): Likewise. |
|
272 * pt-indir.cc (tree_indirect_ref::rvalue): Likewise. |
|
273 * pt-jump.cc (tree_break_command::eval): Likewise. |
|
274 (tree_continue_command::eval): Likewise. |
|
275 (tree_return_command::eval): Likewise. |
|
276 |
3767
|
277 2001-01-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
278 |
|
279 * Map.h, Map.cc (CHMap<C>::operator = (const CHMap&)): New function. |
|
280 (Map<C>::operator = (const Map&)): Likewise. |
|
281 (Map<C> (const Map&)): Likewise. |
|
282 |
|
283 * OPERATORS/op-cm-cs.cc, OPERATORS/op-cm-s.cc, |
|
284 OPERATORS/op-m-cs.cc, OPERATORS/op-m-s.cc: |
|
285 Make ldiv operator work for row vector by scalar ops. |
|
286 |
|
287 * OPERATORS/op-cs-cm.cc, OPERATORS/op-cs-m.cc, |
|
288 OPERATORS/op-s-cm.cc, OPERATORS/op-s-m.cc: |
|
289 Make div operator work for scalar by column vector ops. |
|
290 |
3765
|
291 2001-01-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
292 |
|
293 * parse.y (safe_fclose): Discard comments at the end of a file. |
|
294 |
3764
|
295 2001-01-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
296 |
|
297 * error.cc (pr_where): Call pr_where_1 with two args, not one, to |
|
298 avoid processing format escapes that might appear in formatted code. |
|
299 |
3762
|
300 2001-01-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
301 |
|
302 * error.cc (vwarning): Write to output_buf, then send formatted |
|
303 message to diary and error streams. |
|
304 |
3760
|
305 2001-01-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
306 |
|
307 * ov-cx-mat.cc (octave_complex_matrix::try_narrowing_conversion): |
|
308 Handle empty matrix dimensions correctly. |
|
309 |
3756
|
310 2000-12-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
311 |
|
312 * pager.h (octave_pager_buf::diary_skip): New data member. |
|
313 (octave_pager_buf::octave_pager_buf): Initialize it. |
|
314 * pager.cc (octave_pager_buf::set_diary_skip): New function. |
|
315 (octave_pager_stream::set_diary_skip): New function. |
|
316 (octave_pager_buf::sync): Call flush_current_contents_to_diary |
|
317 instead of octave_diary.write. |
|
318 (octave_pager_buf::flush_current_contents_to_diary): Use |
|
319 diary_skip, reset when done. |
|
320 (open_diary_file): Call octave_stdout.set_diary_skip here. |
|
321 |
3747
|
322 2000-12-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
323 |
|
324 * DLD-FUNCTIONS/minmax.cc (EMPTY_RETURN_CHECK): New macro. |
|
325 (min, max): Use it. |
|
326 |
|
327 * DLD-FUNCTIONS/minmax.cc (MINMAX_BODY): New macro. If single arg |
|
328 is empty, return empty matrix result and empty matrix for index. |
|
329 (Fmin, Fmax): Use MINMAX_BODY, so we have consistent definition |
|
330 for min and max functions. |
|
331 |
|
332 2000-11-30 Joerg Specht <joerg.specht@ins.uni-stuttgart.de> |
|
333 |
|
334 * help.cc (display_help_text): Append new line at end of doc string. |
|
335 |
|
336 2000-11-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
337 |
|
338 * DLD-FUNCTIONS/lsode.cc (LSODE_ABORT1, LSODE_ABORT2): Omit `##' |
|
339 in macro definition since they are not needed to paste strings |
|
340 together and picky compilers choke on them. |
|
341 * DLD-FUNCTIONS/quad.cc (QUAD_ABORT1, QUAD_ABORT2): Likewise. |
|
342 * DLD-FUNCTIONS/fsolve.cc (FSOLVE_ABORT1, FSOLVE_ABORT2): Likewise. |
|
343 * DLD-FUNCTIONS/dassl.cc (DASSL_ABORT1, DASSL_ABORT2): Likewise. |
|
344 |
3741
|
345 2000-11-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
346 |
3744
|
347 * mkbuiltins (XDEFUNX_INTERNAL): New macro. |
3746
|
348 * mkgendoc (XDEFUNX_INTERNAL): Likewise. |
3744
|
349 * defun-int.h (DEFUNX_INTERNAL): Use it. |
|
350 |
3743
|
351 * defun.h (DEFUNX): New macro. |
|
352 * defun-int.h (DEFUNX_INTERNAL, DECLARE_FUNX): New macro. |
|
353 (DECLARE_FUN): Define in terms of DECLARE_FUNX. |
|
354 |
3742
|
355 * mkdefs: Read and print one line at a time, so we can force |
|
356 patterns to match only at the beginning of a line. |
|
357 |
3741
|
358 * defun-int.h (UNDERSCORIFY): Omit `##' in macro definition since |
|
359 they are not needed to paste strings together and picky compilers |
|
360 choke on them. |
|
361 |
3738
|
362 2000-11-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
363 |
|
364 * load-save.cc (save_ascii_data_for_plotting): New function. |
|
365 * pt-plot.cc (save_in_tmp_file): Use it instead of save_ascii_data. |
|
366 |
|
367 * load-save.cc (save_ascii_data): Warn if saving Inf or NaN values. |
|
368 New arg, infnan_warned. Use it to warn just once per set. |
|
369 Now static. |
|
370 (do_save): New arg, infnan_warned. Pass to save_ascii_data. |
|
371 (save_vars): Initialize infnan_warned here, pass to do_save. |
|
372 |
3737
|
373 2000-11-16 Paul Kienzle <pkienzle@kienzle.powernet.co.uk> |
|
374 |
|
375 * file-io.cc (Ffprintf): If no file id parameter, don't return |
|
376 count of characters if nargout is 0 (for compatibility with |
|
377 Matlab). |
|
378 |
|
379 2000-11-16 Ben Sapp <bsapp@lanl.gov> |
|
380 |
|
381 * DLD-FUNCTIONS/rand.cc (do_rand): Declare loop counter as |
|
382 volatile int, not just volatile. |
|
383 |
3731
|
384 2000-10-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
385 |
|
386 * load-save.cc (skip_comments): Allow % as comment character too. |
|
387 (extract_keyword): Likewise. |
|
388 |
|
389 * Makefile.in (oct-gperf.h): Remove -a, -g, and -p flags for gperf. |
|
390 |
3727
|
391 2000-10-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
392 |
|
393 * load-save.cc (do_load): Allow result to be returned instead of |
|
394 inserting variables in the symbol table. Change patterned after |
|
395 patch by Kian Ming Adam Chai <caijianming@yahoo.co.uk>. |
|
396 |
3726
|
397 2000-10-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
398 |
|
399 * Makefile.in (ops.cc): Don't substitute BLAS_LIBS and LIBS here. |
|
400 |
|
401 * oct-conf.h.in (OCTAVE_CONF_SPECIAL_MATH_LIB): Delete. |
|
402 (OCTAVE_CONF_BLAS_LIBS): Add. |
|
403 * toplev.cc (octave_config_info): Likewise, add BLAS_LIBS and |
|
404 remove SPECIAL_MATH_LIB from the struct. |
|
405 |
|
406 * parse.y (feval (const octave_value_list&, int)): Don't panic |
|
407 while processing arg names if arg.length() and arg_names.length() |
|
408 differ. |
|
409 |
3724
|
410 2000-10-12 Paul Kienzle <pkienzle@kienzle.powernet.co.uk> |
|
411 |
|
412 * ov-cell.h (octave_cell::is_cell): New function. |
|
413 |
|
414 * pt-select.cc (equal): New static function. |
|
415 (tree_switch_case::label_matches): Use it to compare case label |
|
416 against arg. Handle cell arrays as case labels. |
|
417 |
3723
|
418 2000-10-12 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
419 |
|
420 Change patterned after patch by Cai Jianming |
|
421 <caijianming@yahoo.co.uk> to support for DIM arg in 2.0.x sources. |
|
422 |
|
423 * data.cc (DATA_REDUCTION): New macro. Handle second DIM arg here. |
|
424 (Fcumprod): Replace function body with DATA_REDUCTION. |
|
425 (Fcumsum): Likewise. |
|
426 (Fprod): Likewise. |
|
427 (Fsum): Likewise. |
|
428 (Fsumsq): Likewise. |
|
429 |
3719
|
430 2000-10-10 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
431 |
|
432 * error.cc (pr_where_2): New function. |
|
433 (pr_where_1): Use it instead of error_1 to avoid setting error_state. |
|
434 |
|
435 2000-10-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
436 |
|
437 * xdiv.cc (xdiv): Warn if execution falls through to lssolve. |
|
438 |
3716
|
439 2000-09-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
440 |
|
441 * utils.cc (FERRNO): New function (currently commented out). |
|
442 |
|
443 * c-file-ptr-stream.cc (c_file_ptr_buf::close): Call flush here. |
|
444 (c_file_ptr_buf::~c_file_ptr_buf): Not here. |
|
445 * c-file-ptr-stream.h (c_fie_ptr_buf::close_fcn): New typedef. |
|
446 (c_file_ptr_buf::cf): New data member. Add default constructor arg. |
|
447 (class c_file_ptr_buf): Derive from filebuf, not streambuf. |
|
448 (i_c_file_ptr_stream, o_c_file_ptr_stream): Handle close function here. |
|
449 * oct-procstrm.cc (octave_iprocstream, octave_oprocstream): Likewise. |
|
450 (octave_iprocstream::do_close, octave_oprocstream::do_close): Delete. |
|
451 * oct-stdstrm.cc (octave_base_stdiostream::~octave_base_stdiostream): |
|
452 Don't do anything. |
|
453 (octave_istdiostream::create): Handle close function here. |
|
454 (octave_istdiostream::octave_istdiostream): Likewise. |
|
455 (octave_ostdiostream::create): Likewise. |
|
456 (octave_ostdiostream::octave_ostdiostream): Likewise. |
|
457 (class octave_base_stdiostream): Don't cache FILE pointer here. |
|
458 |
3715
|
459 2000-09-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
460 |
|
461 * syscalls.cc (Ffcntl): Don't assume that the file id passed in is |
|
462 the same as the underlying system file id. |
|
463 |
3712
|
464 2000-08-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
465 |
|
466 * parse.y: Use octave_time, not time. |
|
467 |
3711
|
468 2000-08-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
469 |
|
470 * oct-stream.cc (printf_value_cache::double_value): Also set |
|
471 curr_stat to conversion_error if there are no values at all. |
|
472 |
3710
|
473 2000-08-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
474 |
|
475 * dirfns.cc (Flink, Fsymlink, Freadlink): New functions. |
|
476 |
3709
|
477 2000-08-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
478 |
|
479 * load-save.cc (Vsave_header_format_string): New variable. |
|
480 (symbols_of_load_save): DEFVAR it. |
|
481 (save_header_format, default_save_header_format): New functions. |
|
482 (write_header): Use Vsave_header_format_string here. |
|
483 |
3707
|
484 2000-07-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
485 |
3708
|
486 * pt-pr-code.h (tree_print_code::curr_print_indent_level, |
|
487 (tree_print_code::beginning_of_line): No longer static. |
|
488 (tree_print_code::tree_print_code): Initialize them here. |
|
489 * pt-pr-code.cc: Not here. |
|
490 |
|
491 * pt-stmt.cc (tree_statement::eval): Set curr_statement here. |
|
492 (tree_statement_list::eval): Not here. |
|
493 |
3707
|
494 Debug-on-error stuff based on a patch submitted by Paul Kienzle |
|
495 <pkienzle@kienzle.powernet.co.uk> for 2.0.x. |
|
496 |
|
497 * error.cc (Vdebug_on_warning): New static flag variable. |
|
498 (debug_on_warning): New function. |
|
499 (symbols_of_warning): DEFVAR debug_on_warning. |
|
500 (warning): Handle debug_on_warning here. |
|
501 |
|
502 * input.cc (do_keyboard): New function. |
|
503 (Fkeyboard): Use it to do the real work. |
|
504 * pt-stmt.cc (curr_statement): New static variable. |
|
505 (tree_statement::eval): Save and restore it here. |
|
506 * error.cc (Vdebug_on_error): New static flag variable. |
|
507 (debug_on_error): New function. |
|
508 (symbols_of_error): DEFVAR debug_on_error. |
|
509 (pr_where, pr_where_1): New functions. |
|
510 (error): Handle debug_on_error here. |
|
511 |
3705
|
512 2000-07-20 Joao Cardoso <jcardoso@inescporto.pt> |
|
513 |
|
514 * Makefile.in (octave): Link with $(LD_CXX) instead of $(CXX) |
|
515 |
3704
|
516 2000-07-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
517 |
|
518 * oct-stream.cc (octave_base_stream::oscanf): Advance to next |
|
519 format element before attempting to pick up any trailing stuff. |
|
520 |
3697
|
521 2000-07-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
522 |
3698
|
523 * lex.l (next_token_is_bin_op): Don't recognize `..' as a binary op. |
|
524 |
3697
|
525 * load-save.cc (get_file_format): Call read_mat5_binary_file_header |
|
526 with third arg true instead of false, so we don't barf if the file |
|
527 is not a matlab v5 binary file. |
|
528 |
3695
|
529 2000-07-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
530 |
|
531 * Makefile.in (octave): Link to ../libcruft/blas-xtra/xerbla.o here. |
|
532 |
|
533 * octave.cc (main): Remove kluge to attempt linking our version of |
|
534 xerbla. |
|
535 |
|
536 2000-07-07 Steven G. Johnson <stevenj@alum.mit.edu> |
|
537 |
|
538 * load-save.cc (have_h5giterate_bug): New file-scope variable. |
|
539 (hdf5_read_next_data): Only increment current_item if |
|
540 have_h5giterate_bug is true. |
|
541 (read_hdf5_data): Set have_h5giterate_bug here. |
|
542 Only increment hs.current_item if have_h5giterate_bug is true. |
|
543 |
3693
|
544 2000-07-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
545 |
|
546 * c-file-ptr-stream.cc (c_file_ptr_buf::close): |
|
547 Return -1 if file pointer is NULL. |
|
548 Set file pointer to 0 after closing. |
|
549 (c_file_ptr_buf::~c_file_ptr_buf): Call close after flushing. |
|
550 |
3694
|
551 2000-07-05 Steven G. Johnson <stevenj@alum.mit.edu> |
3692
|
552 |
|
553 * Makefile.in (BLAS_LIBS): Substitute here. |
|
554 (octave): Use $(BLAS_LIBS) in the final link command. |
|
555 |
3694
|
556 2000-06-30 Steven G. Johnson <stevenj@alum.mit.edu> |
3690
|
557 |
|
558 * Makefile.in (octave): Link $(FLIBS) last. |
|
559 * octave.cc (main): Force our own xerbla to be linked instead of |
|
560 some system version. |
|
561 |
3688
|
562 2000-06-29 James R. Van Zandt <jrv@vanzandt.mv.com> |
|
563 |
3689
|
564 * load-save.cc (load_save_format): New value, LS_MAT5_BINARY. |
3688
|
565 (arrayclasstype, mat5_data_type): New enums. |
|
566 (read_mat5_binary_data): New function. |
|
567 (read_mat5_tag): New function. |
|
568 (read_mat5_binary_element): New function. |
|
569 (read_mat5_binary_file_header): New function. |
|
570 (get_file_format): Check for mat5 binary format too. |
|
571 (do_load): Handle mat5 binary format. |
|
572 (write_mat5_tag): New function. |
|
573 (write_mat5_array): New function. |
|
574 (class mat5_callback): New class. |
|
575 (save_mat5_binary_element): New functnon. |
|
576 (do_save): Handle mat5 binary format. |
|
577 (write_header): Handle LS_MAT5_BINARY case too. |
|
578 (save_user_variables): Handle LS_MAT5_BINARY case too. |
|
579 (Fsave): Handle LS_MAT5_BINARY case too. |
|
580 (Fload): Handle LS_MAT5_BINARY case too. |
|
581 |
3694
|
582 2000-06-29 Steven G. Johnson <stevenj@alum.mit.edu> |
3687
|
583 |
|
584 All of the following changes are protected by #ifdef HAVE_HDF5. |
|
585 |
|
586 * load-save.cc (load_save_format): New value, LS_HDF5. |
|
587 (make_valid_identifier): New function. |
|
588 (class hdf5_fstreambase, class hdf5_ifstream, class hdf5_ofstream): |
|
589 New classes for reading and writing hdf5 data. |
|
590 (hdf5_types_compatible): New function. |
|
591 (hdf5_import_multidim): New function. |
|
592 (hdf5_check_attr): New function. |
|
593 (hdf5_read_next_data): New function. |
|
594 (hdf5_make_complex_type): New function. |
|
595 (hdf5_make_range_type): New function. |
|
596 (read_hdf5_data): New function. |
|
597 (get_file_format): Handle HDF5 format. |
|
598 (do_load): Handle LS_HDF5 case. |
|
599 (Fload): Handle HDF5 format. |
|
600 (hdf5_add_attr): New function. |
|
601 (save_type_to_hdf5): New function. |
|
602 (add_hdf5_data): New function. |
|
603 (do_save): Handle HDF5 format. |
|
604 (get_default_save_format): Handle LS_HDF5 case. |
|
605 (write_header): Handle LS_HDF5 case. |
|
606 (save_user_variables): Handle HDF5 format. |
|
607 (Fsave): Handle HDF5 format. |
|
608 |
3686
|
609 2000-06-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
610 |
|
611 * help.cc (display_help_text): If writing to filter fails, send |
|
612 unformatted text to output stream. |
|
613 |
3683
|
614 2000-06-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
615 |
3685
|
616 * OPERATORS/op-bm-bm.cc (eq): Define using mx_el_eq, not operator ==. |
|
617 (ne): Likewise, use mx_el_ne, not operator !=. |
|
618 |
3683
|
619 * pr-output.cc (Fdisp): Delete. |
|
620 |
3681
|
621 2000-06-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
622 |
3682
|
623 * pr-output.cc (float_format::float_format): Set default values |
|
624 for width and precision to -1. |
|
625 (operator << (ostream&, pr_formatted_float&): Set width and |
|
626 precision if values are >= 0. |
|
627 (set_real_format, set_real_matrix_format, set_range_format, |
|
628 set_complex_format, set_complex_matrix_format): If we have all |
|
629 integers, infinities, or nans, set precision equal to field width. |
|
630 |
|
631 * load-save.cc (read_ascii_data): Allow empty strings and string |
|
632 vectors to be restored. |
|
633 |
3681
|
634 * variables.cc (var_matches_any_pattern): New function. |
|
635 (Fclear): Use it to make exclusive clear work correctly. |
|
636 |
3676
|
637 2000-06-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
638 |
3678
|
639 * ov-range.h (octave_range::is_numeric_type): New function. |
|
640 |
3676
|
641 * sysdep.cc (Fkbhit): Also ask for input if forced_interactive. |
|
642 |
3675
|
643 2000-06-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
644 |
|
645 * Makefile.in (oct-gperf.h): Use $(GPERF) instead of gperf. |
|
646 |
3671
|
647 2000-05-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
648 |
|
649 * DLD-FUNCTIONS/qz.cc (Fqz): When computing finite generalized |
|
650 eigenvalues, don't write past the end of the array. |
|
651 |
3665
|
652 2000-05-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
653 |
|
654 * ov-base-nd-array.h, ov-base-nd-array.cc, ov-re-nd-array.h, |
|
655 ov-re-nd-array.h: New files. |
|
656 * Makefile.in: Add them to the appropriate lists. |
|
657 |
|
658 * pt-stmt.h, pt-stmt.cc (class tree_statement): |
|
659 Store comments associated with this parse tree element. |
|
660 * pt-select.h, pt-select.cc (class tree_if_clause, |
|
661 class tree_if_command, class tree_switch_case |
|
662 class tree_switch_command): Likewise. |
|
663 * pt-loop.h, pt-loop.cc (class tree_while_command, |
|
664 class tree_do_until_command, class tree_simple_for_command, |
|
665 class tree_complex_for_command): Likewise. |
|
666 * pt-except.h, pt-except.cc (class tree_try_catch_command, |
|
667 class tree_unwind_protect_command): Likewise. |
|
668 * ov-usr-fcn.h, ov-usr-fcn.cc (class octave_user_function): Likewise. |
|
669 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::print_comment_elt, |
|
670 tree_print_code::print_comment_list, |
|
671 tree_print_code::print_indented_comment): New functions. |
|
672 (tree_print_code::visit_simple_for_command, |
|
673 tree_print_code::visit_complex_for_command, |
|
674 tree_print_code::visit_octave_user_function_header, |
|
675 tree_print_code::visit_octave_user_function_trailer, |
|
676 tree_print_code::visit_if_command, tree_print_code::visit_statement, |
|
677 tree_print_code::visit_switch_case, |
|
678 tree_print_code::visit_switch_command, |
|
679 tree_print_code::visit_try_catch_command, |
|
680 tree_print_code::visit_unwind_protect_command |
|
681 tree_print_code::visit_while_command, |
|
682 tree_print_code::visit_do_until_command): Handle comments. |
|
683 * lex.l, parse.y: Handle comments in parse trees. |
|
684 * comment-list.h, comment-list.cc: New files. |
|
685 * Makefile.in: Add them to the appropriate lists. |
|
686 |
3661
|
687 2000-04-23 etienne grossmann <etienne@anonimo.isr.ist.utl.pt> |
|
688 |
|
689 * pt-mat.cc (tm_row_const::tm_row_const_rep::eval_error): |
|
690 New args x and y, for dimension mismatch info. |
|
691 Change callers where appropriate. |
|
692 (tm_const::init): Report mismatched column dimensions. |
|
693 |
3658
|
694 2000-04-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
695 |
|
696 * sysdep.cc (kbhit): Also clear cin if at EOF. |
|
697 |
3657
|
698 2000-04-11 Joao Cardoso <jcardoso@inescn.pt> |
|
699 |
|
700 * sysdep.cc (kbhit): New arg, wait. |
|
701 (raw_mode): Ditto. |
|
702 (Fkbhit): If given an arg, call kbhit with wait = false. |
|
703 |
|
704 * DLD-FUNCTIONS/minmax.cc (Fmax, Fmin): Fix doc string. |
|
705 |
3656
|
706 2000-04-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
707 |
|
708 * dynamic-ld.cc (octave_dynamic_loader::do_load): Undo previous change. |
|
709 |
3655
|
710 2000-04-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
711 |
|
712 * dynamic-ld.cc (octave_dynamic_loader::do_load): Also fail with |
|
713 error message if we don't find the mangled function name in the |
|
714 file. |
|
715 |
3652
|
716 2000-03-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
717 |
3653
|
718 * oct-stream.cc (printf_value_cache::string_value): Return string |
|
719 matrices in a Matlab-compatible way. |
|
720 (printf_value_cache): Redesign the way list_exhausted works. |
|
721 |
3652
|
722 * oct-fstrm.cc (octave_fstream::do_close): New function. |
|
723 * oct-stdstrm.cc (octave_istdiostream::do_close): Ditto. |
|
724 (octave_ostdiostream::do_close): Ditto. |
|
725 * c-file-ptr-stream.cc (c_file_ptr_buf::close): Ditto. |
|
726 (i_c_file_ptr_stream::close): Ditto. |
|
727 (o_c_file_ptr_stream::close): Ditto. |
|
728 * oct-prcstrm.cc (octave_iprocstream::do_close): Ditto. |
|
729 (octave_oprocstream::do_close): Ditto. |
|
730 (octave_iprocstram::~octave_iprocstram): Call do_close here. |
|
731 (octave_iprocstram::~octave_oprocstram): Likewise. |
|
732 |
|
733 * oct-stream.h (octave_base_stream::do_close): New virtual function. |
|
734 (octave_base_stream::close): If stream is open, call do_close. |
|
735 |
|
736 * c-file-ptr-stream.cc (c_file_ptr_buf::flush): New function. |
|
737 (c_file_ptr_buf::~c_file_ptr_buf): Use it. |
|
738 (c_file_ptr_buf::overflow): Ditto. |
|
739 (c_file_ptr_buf::sync): Ditto. |
|
740 |
3649
|
741 2000-03-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
742 |
|
743 * oct-procbuf.cc (octave_procbuf::open): Make output streams line |
|
744 buffered. |
|
745 |
3640
|
746 2000-03-24 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
747 |
3644
|
748 * sighandlers.cc (my_friendly_exit): Prefix failure messages with |
|
749 panic instead of error. |
|
750 |
3642
|
751 * c-file-ptr-stream.cc (c_file_ptr_buf::~c_file_ptr_buf): |
|
752 Avoid dereferencing NULL pointer. |
|
753 |
3640
|
754 * oct-stream.cc (printf_format_list::add_elt_to_list, |
|
755 printf_format_list::process_conversion, |
|
756 printf_format_list::finish_conversion): New args, flags, fw, and prec. |
|
757 (printf_format_list::printf_format_list): Save more complete info. |
|
758 (printf_format_list::printme): Print flags, fw, and prec. |
|
759 (octave_base_stream::printf): Simplify. |
|
760 (do_printf_conv): Delete have_arg arg, since it is always true now. |
|
761 (octave_base_stream::do_printf): Handle case of no args and % |
|
762 directly instead of using do_printf_conv. |
|
763 (printf_value_cache::exhausted): Rename from no_more_values. |
|
764 (DO_PCT_CONVERSION): New macro |
|
765 (octave_base_streain::do_scanf, octave_base_streain::do_oscanf): |
|
766 Use it. |
|
767 (scanf_format_list::finish_conversion): `%' counts as a conversion too. |
|
768 Also don't forget to set type for it. |
|
769 (OCTAVE_SCAN_0): Delete. |
|
770 (OCTAVE_SCAN): Rename from OCTAVE_SCAN_1. |
|
771 (octave_base_stream::scanf, octave_base_stream::oscanf): Don't |
|
772 special-case number of conversions here. |
|
773 (octave_base_stream::oscanf, octave_base_stream::do_oscanf): Only |
|
774 cycle through fmt elements if the number of conversions is greater |
|
775 than 0. |
|
776 |
|
777 * oct-stream.h (scanf_format_list::next): New arg, `cycle'. |
|
778 (printf_format_list::next): New arg, `cycle'. |
|
779 (printf_format_list::last_elt_p): New function. |
|
780 (printf_format_elt): New fields fw, prec, and flags. |
|
781 Define copy constructor and assignment operator. |
|
782 (scanf_format_elt): Define copy constructor and assignment operator. |
|
783 |
3627
|
784 2000-03-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
785 |
3639
|
786 * oct-stream.cc (OCTAVE_SCAN_0, OCTAVE_SCAN_1): New macros. |
|
787 (do_scanf_conv, BEGIN_S_CONVERSION, BEGIN_CHAR_CLASS_CONVERSION, |
|
788 do_scanf, scanf, do_oscanf, do_oscanf, oscanf): Use them instead |
|
789 of calling istream::scan directly. |
|
790 (octave_scan): New function. |
|
791 (do_scanf_conv): Second arg is now scanf_format_elt instead of char*. |
|
792 Change all callers. |
|
793 |
3631
|
794 * oct-procbuf.h, oct-procbuf.cc (octave_procbuf): |
|
795 Derive from c_file_ptr_buf instead of filebuf. |
|
796 |
3627
|
797 * oct-stream.cc (octave_base_stream::printf): Use octave_format |
|
798 instead of ostream::form. Return number of characters written. |
|
799 |
3618
|
800 2000-03-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
801 |
3620
|
802 * oct-stream.cc (do_printf_conv): Use octave_format instead of |
|
803 ostream::form. Return number of characters written. |
|
804 (octave_base_stream::do_printf): Return number of characters written. |
|
805 |
|
806 * error.cc (verror, vwarning): Use octave_format instead of |
|
807 ostream::vform. |
|
808 |
|
809 * utils.cc (octave_format, octave_vformat): New functions. |
|
810 * cutils.c (octave_snprintf, octave_vsnprintf): New functions. |
|
811 |
3618
|
812 * oct-lvalue.h (dummy_val): New static variable. |
|
813 (octave_lvalue::octave_lvalue): Use it to initialize val. |
|
814 |
|
815 * variables.cc (is_valid_function): Look in the global symbol |
|
816 table for functions. |
|
817 |
3615
|
818 2000-03-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
819 |
3770
|
820 * Makefile.in (LIBRARIES): Conditionally define. |
3615
|
821 (libraries): Depend on $(LIBRARIES). |
|
822 (octave): Depend on $(LIBRARIES), not libraries. Also depend on |
|
823 stamp-prereq and stamp-oct-links. |
|
824 (all): Don't depend on stamp-prereq or stamp-oct-links. |
|
825 (liboctinterp.$(LIBEXT), liboctinterp.$(SHELXT)): Delete target |
|
826 before rebuilding. |
|
827 |
|
828 2000-03-21 Ben Sapp <bsapp@nua.lampf.lanl.gov>: |
|
829 |
3770
|
830 * Makefile.in (libraries): Depend only on library targets, not |
3615
|
831 archive members. |
|
832 |
3611
|
833 2000-03-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
834 |
3613
|
835 * Makefile.in (objects): New target |
|
836 |
3611
|
837 * c_file_ptr_stream.h, c_file_ptr_stream.cc: New files. |
|
838 * oct-stdstrm.h, oct-stdstrm.cc, oct-prcstrm.cc: |
|
839 Use c_file_ptr_buf, i_c_file_ptr_stream, and o_c_fie_ptr_stream |
|
840 instead of stdiobuf, istdiostream, and ostdiostream. |
|
841 |
|
842 * pr-output.cc (set_real_format, set_real_matrix_format, |
|
843 set_complex_format, set_complex_matrix_format, set_range_format): |
|
844 Do the right thing again for int, NaN, and Inf values. |
|
845 |
3608
|
846 2000-03-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
847 |
|
848 * pr-output.cc (pr_plus_format): Rename from do_plus_format. |
|
849 Change all callers. |
|
850 (pr_float, pr_complex): New arg, scale. Handle scaling here. |
|
851 (float_format): New class for managing details of formatting |
|
852 floats. Use it instead of character string formats and the |
|
853 nonstandard form() function from the GNU iostream library. |
|
854 |
3601
|
855 2000-02-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
856 |
|
857 * Makefile.in (clean): Also delete gendoc. |
|
858 |
3598
|
859 2000-02-18 James R. Van Zandt <jrv@vanzandt.mv.com> |
|
860 |
|
861 * load-save.cc (Vcrash_dumps_octave_core): Fix comment for this var. |
|
862 |
|
863 2000-02-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
864 |
|
865 * lex.l (handle_number): Don't transorm `[Dd]' to `e' if reading |
|
866 hex. |
|
867 |
3597
|
868 2000-02-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
869 |
|
870 * Makefile.in (install-inc): Install files in |
|
871 $(octincludedir)/octave. |
|
872 (uninstall): Remove them from the correct directory too. |
|
873 |
|
874 * defaults.h, defaults.cc (Vlocal_ver_arch_lib_dir): New variable. |
|
875 * defaults.cc (set_default_local_ver_arch_lib_dir): New function. |
|
876 (install_defaults): Call it. |
|
877 (exec_path): Prepend the versioned form of the local arch lib |
|
878 directory to the standard path. |
|
879 * defaults.h.in (OCTAVE_LOCALVERARCHLIBDIR, |
|
880 OCTAVE_LOCALVERFCNFILEDIR, OCTAVE_LOCALVEROCTFILEDIR): |
|
881 Substitute these too. |
|
882 * toplev.cc (Foctave_config_info): Add them to the struct. |
|
883 |
3591
|
884 2000-02-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
885 |
3597
|
886 * toplev.cc (Foctave_config_info): Add MKOCTFILE_INCFLAGS to the |
|
887 struct. |
3591
|
888 * oct-conf.h.in (OCTAVE_CONF_MKOCTFILE_INCFLAGS): Define. |
|
889 |
3584
|
890 2000-02-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
891 |
3587
|
892 * DLD-FUNCTIONS/balance.cc (Fbalance): Explicitly request |
|
893 conversion from Matrix to ComplexMatrix. |
|
894 * DLD-FUNCTIONS/qz.cc (Fqz): Likewise. |
|
895 |
|
896 * ov-re-mat.h (octave_matrix::complex_matrix_value): Explicitly |
|
897 request conversion from Matrix type. |
|
898 |
|
899 * ov-ch-mat.h (octave_char_matrix::matrix_value): Explicitly |
|
900 request conversion from charMatrix type. |
|
901 (octave_char_matrix::complex_matrix_value): Likewise. |
|
902 * ov-bool-mat.h (octave_bool_matrix::matrix_value): Likewise. |
|
903 (octave_bool_matrix::complex_matrix_value): Likewise. |
|
904 |
|
905 * ov-range.h (octave_range::complex_matrix_value): Explicitly |
|
906 request conversion from Matrix type. |
|
907 |
|
908 * ov-cx-mat.h, ov-re-mat.h: Explicitly request conversions from |
|
909 diagonal matrix types in constructors. |
|
910 |
3586
|
911 * mappers.cc (ximag, xreal): Return double, not Complex. |
|
912 |
3585
|
913 * error.cc (panic): Turn off buffering of error messages. |
|
914 Don't call flush_octave_stdout here, verror will do it for us. |
|
915 (verror): Don't call flush_octave_stdout if buffering error messages. |
|
916 |
3584
|
917 * pt-except.cc (tree_try_catch_command::eval): Only restore |
|
918 buffer_error_message value (by running the unwind_protect element |
|
919 for it) if it has been saved. |
|
920 |
|
921 * help.cc (Ftype): Return value if nargout is NOT equal to zero. |
|
922 Delete unnecessary unwind_protect::begin_frame(). |
|
923 |
|
924 * toplev.cc (octave_config_info): Stuff lots of new config info in |
|
925 the struct. |
|
926 |
|
927 * oct-conf.h.in: Delete TARGET_HOST_TYPE. |
|
928 |
3574
|
929 2000-02-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
930 |
3579
|
931 * siglist.c: Include <signal.h>. |
|
932 |
3575
|
933 * lex.l (is_plot_keyword): Add minimum match length in call to |
|
934 almost_match. |
|
935 |
3574
|
936 * Makefile.in (%.df : %.cc): Don't pass -c to compiler. |
|
937 |
3564
|
938 2000-02-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
939 |
3572
|
940 * ov-base-mat.cc: Include pr-output.h here. |
|
941 |
3571
|
942 * DLD-FUNCTIONS/rand.cc (curr_rand_dist): Return const char * |
|
943 instead of char *. |
|
944 |
3570
|
945 * oct-fstrm.cc (octave_fstream::seek, octave_fstream::tell): |
|
946 Call pubseekoff instead of seekoff. |
|
947 |
3568
|
948 * DLD-FUNCTIONS/dassl.cc (print_dassl_option_list): Use stream |
|
949 manipulators instead of GNU iostream-specific form function. |
|
950 * DLD-FUNCTIONS/fsolve.cc (print_fsolve_option_list): Ditto. |
|
951 * DLD-FUNCTIONS/lsode.cc (print_lsode_option_list): Ditto. |
|
952 * DLD-FUNCTIONS/quad.cc (print_quad_option_list): Ditto. |
|
953 * pr-output.cc (pr_scale_header): Ditto. |
|
954 |
3566
|
955 * sighandlers.h: Include signal.h here. |
|
956 * sighandlers.cc: Not here. |
|
957 |
|
958 * utils.cc: Include setjmp.h, not csetjmp. |
|
959 * toplev.cc: Ditto. |
|
960 |
|
961 * sighandlers.cc: Include signal.h, not csignal. |
|
962 |
|
963 * pt-plot.h: Don't include csignal. |
|
964 * toplev.cc: Ditto. |
|
965 * oct-hist.cc: Ditto. |
|
966 * octave.cc: Ditto. |
|
967 * pager.cc: Ditto. |
|
968 * input.cc: Ditto. |
|
969 * help.cc: Ditto. |
|
970 |
3565
|
971 * pt-plot.cc (send_to_plot_stream): Use operator== and substr |
|
972 method to do limited-length string comparison. |
|
973 * input.cc (generate_completion): Likewise. |
|
974 * ov-dld-fcn.cc (octave_dld_function::octave_dld_function): Likewise. |
|
975 * ov-usr-fcn.cc (octave_user_function::mark_as_system_fcn_file): |
|
976 Likewise. |
|
977 |
|
978 * utils.cc (check_preference): Expect exact string matches. |
|
979 * variables.cc (ignore_function_time_stamp): Likewise. |
|
980 * lex.l (whitespace_in_literal_matrix): Likewise. |
|
981 |
3564
|
982 * mappers.cc (xconj, ximag, xreal): New functions. Use them in |
|
983 DEFUN_MAPPER calls. |
|
984 |
|
985 * defun-int.h (DEFUN_MAPPER_INTERNAL): Cast function pointer args |
|
986 to octave_mapper constructor. |
|
987 |
3523
|
988 2000-02-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
989 |
3564
|
990 * procstream.cc (procstreambase::procstreambase, |
|
991 procstreambase::open, procstreambase::close): |
|
992 Call std::ios::setstate, not set. |
|
993 |
3561
|
994 * lex.l (plot_axes_token): Declare plot_axes as const char *. |
|
995 Declare tmp const char **. |
|
996 |
3560
|
997 * oct-procbuf.h: Include fstream, not streambuf.h. |
|
998 |
3570
|
999 * load-save.cc (Fsave): Call pubseekoff instead of seekoff. |
3558
|
1000 * oct-strstrm.cc (octave_base_strstream::tell): Likewise. |
|
1001 (octave_base_strstream::seek): Likewise. |
|
1002 |
3553
|
1003 * oct-stream.cc (octave_base_stream::read): Rename count to char_count. |
|
1004 (octave_base_stream::do_gets): Likewise. |
|
1005 |
|
1006 * octave-stream.cc (octave_base_stream::write): Rename flt_fmt to ffmt. |
|
1007 (octave_base_stream::read): Likewise. |
|
1008 |
3552
|
1009 * TEMPLATE-INST/SLStack-sym.cc: Delete meaningless `extern |
|
1010 template' declarations. |
|
1011 * TEMPLATE-INST/Array-tc.cc: Ditto. |
|
1012 |
|
1013 * TEMPLATE-INST/Map-fnc.cc: Don't try to instantiate goodCHptr or |
|
1014 CHptr_to_index here. |
|
1015 * TEMPLATE-INST/Map-tc.cc: Likewise. |
3554
|
1016 * Map.h (CHNode::goodCHptr, CHNode::CHptr_to_index): Now member |
|
1017 functions. Change all callers. |
3552
|
1018 |
|
1019 * load-save.cc (read_binary_file_header): Declare magic_len `const'. |
|
1020 |
|
1021 * token.h (token::token (const token&), token::operator=): |
|
1022 Delete unnecessary definitions. |
|
1023 |
|
1024 * oct-stream.cc (octave_stream::mode_as_string): Use |
|
1025 std::ios::binary, not std::ios::bin. |
|
1026 * load-save.cc (Fsave, Fload, save_user_variables): Likewise. |
|
1027 |
3550
|
1028 * DLD-FUNCTIONS/qz.cc (Fqz): Use Array<int> class instead of |
|
1029 trying to create automatic int array with variable size. |
|
1030 |
3548
|
1031 * variables.cc (F__dump_symbol_info__): Fix continuation char. |
3552
|
1032 * mappers.cc (Ftoupper): Likewise. |
3548
|
1033 * DLD-FUNCTIONS/besselj.cc (Fairy, Fbesselj): Likewise. |
|
1034 * DLD-FUNCTIONS/chol.cc (Fchol): Likewise. |
|
1035 * DLD-FUNCTIONS/det.cc (Fdet): Likewise. |
|
1036 * DLD-FUNCTIONS/eig.cc (Feig): Likewise. |
|
1037 * DLD-FUNCTIONS/gammainc.cc (gammainc): Likewise. |
|
1038 * DLD-FUNCTIONS/givens.cc (givens): Likewise. |
|
1039 * DLD-FUNCTIONS/hess.cc (hess): Likewise. |
|
1040 * DLD-FUNCTIONS/inv.cc (inv): Likewise. |
|
1041 * DLD-FUNCTIONS/log.cc (logm): Likewise. |
|
1042 * DLD-FUNCTIONS/lu.cc (lu): Likewise. |
|
1043 * DLD-FUNCTIONS/qr.cc (qr): Likewise. |
|
1044 * DLD-FUNCTIONS/schur.cc (schur): Likewise. |
|
1045 * DLD-FUNCTIONS/balance.cc (balance): Likewise. |
|
1046 * DLD-FUNCTIONS/svd.cc (svd): Likewise. |
|
1047 * DLD-FUNCTIONS/syl.cc (syl): Likewise. |
|
1048 * DLD-FUNCTIONS/expm.cc (Fexpm): Likewise. |
|
1049 |
|
1050 * token.h (token::token_type, token::end_tok_type, |
|
1051 token::plot_tok_type): Delete extraneous comma from enum decls. |
3552
|
1052 * load-save.cc (load_save_format): Likewise. |
3548
|
1053 |
3546
|
1054 * pt-idx.cc (tree_index_expression::tree_index_expression): |
|
1055 Delete default arg values. |
3552
|
1056 * oct-fstrm.cc (octave_fstream::octave_fstream): Likewise. |
|
1057 * oct-stream.cc (octave_stream::octave_stream): Likewise. |
3546
|
1058 |
|
1059 * siglist.h, siglist.c: New files. |
|
1060 * Makefile.in: Add them to the appropriate lists. |
|
1061 * siglist.c (sys_siglist): Move definition here from sighandlers.cc. |
|
1062 * siglist.h (sys_siglist): Move declaration here from sighandlers.h. |
|
1063 |
3545
|
1064 * ov.h, ov-bool.h, ov-bool-mat.h (bool_matrix_value): |
|
1065 Delete unnecessary arg. |
|
1066 |
3544
|
1067 * ov.h (octave_value::do_multi_index_op): Rename from do_index_op. |
|
1068 |
|
1069 * ov-fcn.h (octave_function::is_system_fcn_file): Now const. |
|
1070 |
3529
|
1071 * Map.cc (index_to_CHptr): Now a macro. |
3530
|
1072 (CHMap<C>::hash): Now a member function. |
3529
|
1073 |
3528
|
1074 * defun-int.h (UNDERSCORIFY): New macro. |
|
1075 (DEFCONST_INTERNAL, DEFCONSTX_INTERNAL): Use it. |
|
1076 |
3526
|
1077 * data.cc (Fis_list): Fix continuation char. |
3532
|
1078 * defaults.cc (IMAGEPATH): Likewise. |
3526
|
1079 |
|
1080 * Map.cc (CHptr_to_index, goodCHptr): Delete static decl. |
|
1081 |
3525
|
1082 * ov.h (unary_op, binary_op, assign_op): Prepend `op_' to elts. |
|
1083 Change all usses |
|
1084 |
3523
|
1085 * All source files: Sprinkle with std:: qualifier as needed. |
|
1086 |
3503
|
1087 2000-01-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1088 |
|
1089 * sighandlers.cc (install_signal_handlers): Add std:: qualifier |
|
1090 for set_net_handler. |
|
1091 |
|
1092 * All source files: Include iostream, fstream, strstream, |
|
1093 etc. as needed instead of using forward declarations for these |
|
1094 classes. |
|
1095 |
3498
|
1096 2000-01-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1097 |
|
1098 * input.cc (input_event_hook, Finput_event_hook): New functions. |
|
1099 (hook_fcn, user_data): New static variables. |
|
1100 |
3489
|
1101 2000-01-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1102 |
3491
|
1103 * pt-except.cc (do_catch_code): Don't do anything special for |
|
1104 tree_return_command::returning, or tree_break_command::breaking. |
|
1105 |
|
1106 * error.cc (vwarning): New function. |
|
1107 (warning): Use it instead of calling verror. |
|
1108 |
|
1109 * oct-stream.cc (octave_base_stream::oscanf): |
|
1110 Result is now always nconv+1 elements. Return count of successful |
|
1111 conversions in last element. |
|
1112 * file-io.cc (Ffscanf, Fsscanf, Fscanf): Fix doc string. |
|
1113 |
3490
|
1114 * pt-except.cc (do_catch_code): Unwind-protect buffer_error_messages. |
|
1115 Be sure to run all unwind-protects before returning. |
|
1116 (tree_try_catch_command::eval): Add do_catch_code cleanup function |
|
1117 to unwind-protect stack before resetting buffer_error_messages. |
|
1118 Use unwind-protect to save and restore buffer_error_messages. |
|
1119 If there is no catch code, discard the cleanup function and run |
|
1120 the unwind-protect for buffer_error_messages. |
|
1121 |
|
1122 * error.cc (bind_global_error_variable): Avoid dereferencing |
|
1123 error_message_buffer if it is NULL. |
|
1124 |
3489
|
1125 * parse.y (evaluating_function_body): New global flag. |
|
1126 * ov-usr-fcn.cc (octave_user_function::do_index_op): |
|
1127 Protect and set it here. |
|
1128 * parse.y (make_break_command, make_return_command): Check it here. |
|
1129 |
|
1130 * error.cc (warning_state): New global flag. |
|
1131 (warning): Set it here. |
|
1132 * lex.l (reset_parser): Clear it here. |
|
1133 * parse.y (fold): Check it here. |
|
1134 |
3484
|
1135 2000-01-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1136 |
3485
|
1137 * pt-walk.h (tree_walker::visit_do_until_command): New pure virtual. |
|
1138 * pt-pr-code.cc (tree_print_code::visit_do_until_command): |
3484
|
1139 New function. |
3485
|
1140 * pt-loop.h (tree_do_until_command): New class. |
3484
|
1141 (tree_while_command::expr, tree_while_command::list): |
|
1142 Now protected instead of private. |
3485
|
1143 * parse.y (make_do_until_command): New function. |
|
1144 (loop_command): Recognize do-until statement. |
3484
|
1145 (DO, UNTIL): New tokens. |
|
1146 |
|
1147 * input.cc (match_sans_spaces): Require non-blank part of test |
|
1148 string to match standard string exactly. |
|
1149 |
3483
|
1150 2000-01-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1151 |
|
1152 * oct-stream.h (scanf_format_elt::char_class): New struct elt. |
|
1153 Add arg to constructor. |
|
1154 (scanf_format_elt::special_conversion): New enum. |
|
1155 * oct-stream.cc (scanf_format_list::add_elt_to_list): New arg, |
|
1156 char_class. Pass it to scanf_format_elt constructor. |
|
1157 (scanf_format_list::scanf_format_list): Create separate list |
|
1158 elements for whitespace and literal conversions. |
|
1159 (expand_char_class): New function. |
|
1160 (scanf_format_list::finish_conversion): Extract character class |
|
1161 (not including the delimiting brackets) and expand the list of |
|
1162 characters. Pass the result to add_elt_to_list. |
|
1163 (scanf_format_list::all_character_conversions): Also accept '^', |
|
1164 scanf_format_elt::literal_conversion, and |
|
1165 scanf_format_elt::whitespace_conversion types too. |
|
1166 (DO_WHITESPACE_CONVERSION, BEGIN_CHAR_CLASS_CONVERSION, |
|
1167 BEGIN_C_CONVERSION, BEGIN_S_CONVERSION, DO_LITERAL_CONVERSION): |
|
1168 New macros. |
|
1169 (octave_base_stream::do_scanf, octave_base_stream::do_oscanf): |
|
1170 Use them to avoid code duplication. |
|
1171 Handle whitespace, literal text, and character class conversions. |
|
1172 (octave_base_stream::oscanf): Loop over all format list elements, |
|
1173 not just the first nconv elements. Clear status flags on is for |
|
1174 all streams. |
|
1175 |
3476
|
1176 2000-01-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1177 |
3480
|
1178 * xdiv.cc (result_ok): Just check value of info. |
|
1179 (solve_singularity_warning): New function. |
|
1180 (xleftdiv, xdiv): Pass pointer to solve_singularity_warning to |
|
1181 solve function. |
|
1182 |
|
1183 * lex.l (handle_identifier): Set next_tok_is_eq if we are looking |
|
1184 at `=', but not if we are looking at `=='. |
|
1185 |
3478
|
1186 * pt-pr-code.cc (tree_print_code::visit_unwind_protect_command): |
|
1187 Print `unwind_protect_cleanup', not `cleanup_code'. |
|
1188 |
3477
|
1189 * pager.cc (octave_pager_buf::flush_current_contents_to_diary): |
|
1190 New function. |
|
1191 (octave_pager_stream::flush_current_contents_to_diary): |
|
1192 Ditto. |
|
1193 (close_diary_file): Use the new octave_pager_stream function to |
|
1194 try to flush the current buffer to the diary when it is closed. |
|
1195 |
3476
|
1196 * variables.cc (Fexist): Return 6 for built-in constants. |
|
1197 |
|
1198 * pt-plot.cc (Fgshow): Don't append " " after last arg. |
|
1199 (Fgset): Likewise. |
|
1200 |
3472
|
1201 2000-01-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1202 |
|
1203 * ov-base-mat.h (octave_base_matrix::length): Return 0 for empty |
|
1204 arrays. |
|
1205 |
3465
|
1206 2000-01-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1207 |
|
1208 * DLD-FUNCTIONS/time.cc (Fstrptime): New function. |
|
1209 |
|
1210 * load-save.cc (Fsave): Add missing else. |
|
1211 |
3442
|
1212 2000-01-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1213 |
3444
|
1214 * DLD-FUNCTIONS/gammainc.cc (Fgammainc): Texinfoize doc string. |
3445
|
1215 * ov-typeinfo.cc (Ftypeinfo): Ditto. |
3446
|
1216 * parse.y (Vwarn_future_time_stamp): Ditto. |
|
1217 * DLD-FUNCTIONS/minmax.cc (Fmax, Fmin): Ditto. |
3445
|
1218 * ov-usr-fcn.cc (Fva_arg, Fva_start, Fvr_val): Ditto. |
3446
|
1219 * defaults.cc (VOCTAVE_HOME, Frehash): Ditto. |
|
1220 * toplev.cc (Fwarranty, Fcasesen): Ditto. |
|
1221 * utils.cc (Fdo_string_escapes, Ffile_in_loadpath): Ditto. |
|
1222 * variables.cc (F__dump_symtab_info__, F__dump_symbol_info__): Ditto. |
3447
|
1223 * ov-list.cc (Flist, Fappend, Fnth, Freverse, Fsplice): Ditto. |
3448
|
1224 * input.cc (Fread_readline_init_file): Ditto. |
|
1225 * file-io.cc (Fis_stream): Ditto. |
|
1226 * ov-cell.cc (Fiscell, Fcell): Ditto. |
|
1227 * pt-assign.cc (Vprint_rhs_assign_val): Ditto. |
|
1228 * pt-decl.cc (Vinitialize_global_variables): Ditto. |
|
1229 * symtab.cc (Vvariables_can_hide_functions): Ditto. |
3443
|
1230 |
3442
|
1231 * pt-plot.cc (Fgraw, Fgset, Fgshow, Vgnuplot_command_plot, |
|
1232 Vgnuplot_command_replot, Vgnuplot_command_splot, |
|
1233 Vgnuplot_command_using, Vgnuplot_command_with, |
|
1234 Vgnuplot_command_axes, Vgnuplot_command_title, |
|
1235 Vgnuplot_command_end): Texinfoize doc strings. |
|
1236 |
3447
|
1237 * oct-procbuf.cc (__kluge_procbuf_delay__): Rename from |
|
1238 kluge_procbuf_delay. Texinfoize doc string. |
|
1239 |
3427
|
1240 2000-01-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1241 |
|
1242 * parse.y (gobble_leading_whitespace): Discard first space character |
|
1243 after consecutive comment characters. |
|
1244 * lex.l (grab_help_text): Ditto. |
|
1245 |
3428
|
1246 * lex.l (Vwhitespace_in_literal_matrix, Vwarn_separator_insert, |
|
1247 Vwarn_single_quote_string): Texinfoize doc string. |
|
1248 |
3418
|
1249 2000-01-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1250 |
3419
|
1251 * ov.h, ov.cc (octave_value::column_vector_value, |
|
1252 octave_value::row_vector_value, |
|
1253 octave_value::complex_column_vector_value, |
|
1254 octave_value::complex_row_vector_value): New functions. |
|
1255 (octave_value::vector_value): Now returns Array<double>. |
|
1256 (octave_value::complex_vector_value): Now returns Array<Complex>. |
|
1257 Sprinkle conversions where necessary. |
|
1258 |
3418
|
1259 * ov.cc (Vprefer_column_vectors): Now static. |
|
1260 * ov.h (octave_value (const ComplexRowVector&), |
|
1261 octave_value (const ComplexColumnVector&), |
|
1262 octave_value (const RowVector&), octave_value (const ColumnVector&)): |
|
1263 Delete second arg. Change all callers. |
3419
|
1264 |
3418
|
1265 * oct-obj.h (octave_value_list (const RowVector&), |
|
1266 octave_value_list (const ColumnVector&), |
|
1267 octave_value_list (const ComplexRowVector&), |
|
1268 octave_value_list (const ComplexColumnVector&)): Likewise. |
|
1269 * ov-cx-mat.h, ov-cx-mat.cc |
|
1270 (octave_complex_matrix (const ComplexRowVector&), |
|
1271 (octave_complex_matrix (const ComplexColumnVector&)): |
|
1272 Delete second arg, simply create object with orientation |
|
1273 corresponding to vector arg. Move constructors to class decl. |
|
1274 * ov-re-mat.h, ov-re-mat.cc (octave_matrix (const RowVector&), |
|
1275 (octave_matrix (const ColumnVector&)): |
|
1276 Delete second arg, simply create object with orientation |
|
1277 corresponding to vector arg. Move constructors to class decl. |
|
1278 |
3411
|
1279 2000-01-07 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
1280 |
|
1281 * mappers.cc (Fconj, Ferf, Ferfc, Fgamma, Fimag, Flgamma, Flog10, |
|
1282 Freal, Fround): Add @seealso{...} to doc strings. |
|
1283 |
3408
|
1284 2000-01-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1285 |
3410
|
1286 * oct-stream.cc (do_scanf): Do the right thing again for character |
|
1287 conversions. |
|
1288 |
3408
|
1289 * help.cc (display_help_text): Also strip out leading spaces |
|
1290 before Texinfo @-commands before sending doc string to makeinfo. |
|
1291 (display_help_text): Improve format of `See also' string. |
|
1292 |
3405
|
1293 2000-01-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1294 |
|
1295 * help.cc (display_help_text): Pass a definition for @seealso |
|
1296 through the filter. |
|
1297 |
3400
|
1298 1999-12-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1299 |
|
1300 * lex.l (Vwarn_single_quote_string): New variable. |
|
1301 (syms_of_lex): DEFVAR it. |
|
1302 (warn_single_quote_string): New function. |
|
1303 (gripe_single_quote_string): New function. |
|
1304 Use new stuff to allow warnings for code that uses single quote |
|
1305 characters to introduce string constants. |
|
1306 |
3399
|
1307 1999-12-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1308 |
|
1309 * mkbuiltins: Add #undef quad to generated file. |
|
1310 |
3388
|
1311 1999-12-15 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1312 |
|
1313 * lex.l (Vwarn_separator_insert): New variable. |
|
1314 (syms_of_lex): DEFVAR it. |
|
1315 (warn_separator_insert): New function. |
|
1316 (maybe_warn_separator_insert): New function. |
|
1317 Use new stuff to allow warnings for code that might result in |
|
1318 auto-insertion of commas or semicolons, depending on the value of |
|
1319 whitespace_in_literal_matrix. |
|
1320 |
|
1321 * parse.y (Fsource): Record function file name here too. |
|
1322 |
3377
|
1323 1999-12-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1324 |
|
1325 * variables.cc (link_to_global_variable): If the local symbol is |
|
1326 not a variable, don't bother to clear it. Instead, just redefine |
|
1327 it by aliasing to the global symbol. |
|
1328 |
3372
|
1329 1999-11-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1330 |
3373
|
1331 * DLD-FUNCTIONS/balance.cc (Fbalance): Texinfoize doc string. |
|
1332 * DLD-FUNCTIONS/det.cc (Fdet): Ditto. |
|
1333 * DLD-FUNCTIONS/eig.cc (Feig): Ditto. |
|
1334 * DLD-FUNCTIONS/givens.cc (Fgivens): Ditto. |
|
1335 * DLD-FUNCTIONS/inv.cc (Finv): Ditto. |
|
1336 * DLD-FUNCTIONS/chol.cc (Fchol): Ditto. |
|
1337 * DLD-FUNCTIONS/hess.cc (Fhess): Ditto. |
|
1338 * DLD-FUNCTIONS/lu.cc (Flu): Ditto. |
|
1339 * DLD-FUNCTIONS/qr.cc (Fqr): Ditto. |
|
1340 * DLD-FUNCTIONS/schur.cc (Fschur): Ditto. |
|
1341 * DLD-FUNCTIONS/svd.cc (Fsvd): Ditto. |
|
1342 * DLD-FUNCTIONS/expm.cc (Fexpm): Ditto. |
|
1343 * DLD-FUNCTIONS/log.cc (Flogm, Fsqrtm): Ditto. |
|
1344 * DLD-FUNCTIONS/syl.cc (Fsyl): Ditto. |
|
1345 * DLD-FUNCTIONS/pinv.cc (Fpinv): Ditto. |
|
1346 * DLD-FUNCTIONS/qz.cc (Fqz): Ditto. |
|
1347 * DLD-FUNCTIONS/dassl.cc (Fdassl, Fdassl_options): Ditto. |
|
1348 * DLD-FUNCTIONS/lsode.cc (Flsode, Flsode_options): Ditto. |
|
1349 * data.cc (Flength, Fsize, Fisempty): Ditto. |
3372
|
1350 * sysdep.cc (Fkbhit): Ditto. |
|
1351 * input.cc (Fkeyboard, Finput): Ditto. |
|
1352 * variables.cc (ans): Ditto. |
|
1353 * pr-output.cc (Fdisp, Fformat): Ditto. |
|
1354 * ov.cc (Vprint_answer_id_name): Ditto. |
3373
|
1355 * defaults.cc (IMAGEPATH): Ditto. |
|
1356 * error.cc (Ferror, Fwarning, Fusage, error_text, beep_on_error): |
|
1357 Ditto. |
3372
|
1358 * load-save.cc (Fload, Fsave, Vdefault_save_format, |
|
1359 Vsave_precision): Ditto. |
|
1360 * file-io.cc (Ffflush, Ffopen, Ffclose, Ffputs, Ffgetl, Ffgets, |
|
1361 Ffprintf, Fsprintf, Fscanf, Ffscanf, Fsscanf, Ffread, Ffwrite, |
|
1362 Ffseek, Fftell, Ffeof, Fferror, Ffreport, Ftmpnam, Vstdin_file, |
|
1363 Vstdout_file, Vstderr_file, SEEK_SET, SEEK_CUR, SEEK_END): Ditto. |
|
1364 * pager.cc (Vpager_binary, Vpage_output_immediately, |
|
1365 Vpage_screen_output, Fmore): Ditto. |
|
1366 |
3369
|
1367 1999-11-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1368 |
|
1369 * utils.cc (Vtreat_neg_dim_as_zero): Texinfoize doc string. |
|
1370 * DLD-FUNCTIONS/find.cc (Ffind): Ditto. |
|
1371 * DLD-FUNCTIONS/rand.cc (Frand, Frandn): Ditto. |
|
1372 * DLD-FUNCTIONS/sort.cc (Fsort): Ditto. |
|
1373 * mappers.cc (Fisinf, Fisnan, Ffinite): Ditto. |
|
1374 * data.cc (Fall, Fany, Fdiag, Fones, Fzeros, Feye, Flinspace): Ditto. |
3371
|
1375 * defaults.cc (Vloadpath, Vdefault_loadpath): Ditto. |
|
1376 * parse.y (Feval, Ffeval, Vdefault_eval_print_flag, |
|
1377 Vwarn_missing_semicolon, Vwarn_function_name_clash, Fsource): Ditto. |
|
1378 * ov-usr-fcn.cc (Vmax_recursion_depth, Vdefault_return_value, |
|
1379 Vdefine_all_return_values, Vreturn_last_computed_value): Ditto. |
|
1380 * ov.cc (Vok_to_lose_imaginary_part, Vdo_fortran_indexing, |
|
1381 Vprefer_column_vectors, Vresize_on_range_error, |
|
1382 Vwarn_divide_by_zero): Ditto. |
|
1383 * pt-stmt.cc (Vsilent_functions): Ditto. |
|
1384 * variables.cc (Vignore_function_time_stamp): Ditto. |
|
1385 * dynamic-ld.cc (Vwarn_reload_forces_clear): Ditto. |
3369
|
1386 |
3367
|
1387 1999-11-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1388 |
3368
|
1389 * DLD-FUNCTIONS/fft.cc (Ffft): Texinfoize doc string. |
|
1390 * DLD-FUNCTIONS/ifft.cc (Fifft): Ditto. |
|
1391 * DLD-FUNCTIONS/fft2.cc (Ffft2): Ditto. |
|
1392 * DLD-FUNCTIONS/ifft2.cc (Fifft2): Ditto. |
|
1393 * DLD-FUNCTIONS/filter.cc (Ffilter): Ditto. |
|
1394 * DLD-FUNCTIONS/quad.cc (Fquad, Fquad_options): Ditto. |
|
1395 * DLD-FUNCTIONS/colloc.cc (Fcolloc): Ditto. |
|
1396 * DLD-FUNCTIONS/fsolve.cc (Ffsolve, Ffsolve_options): Ditto. |
|
1397 * defaults.cc (Veditor): Ditto. |
|
1398 * pt-plot.cc (Vautomatic_replot, Vgnuplot_binary, |
|
1399 Vgnuplot_has_frames, Vgnuplot_has_multiplot, Fclearplot, |
|
1400 Fcloseplot, Fpurge_tmp_files, Fishold, Fhold): |
3367
|
1401 |
|
1402 * Makefile.in (parse.cc): Expect 11 shift/reduce conflicts now. |
|
1403 |
3361
|
1404 1999-11-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1405 |
3366
|
1406 * parse.y (Vwarn_assign_as_truth_value, Vwarn_variable_switch_label): |
|
1407 Texinfoize doc strings. |
|
1408 |
3365
|
1409 * DLD-FUNCTIONS/pinv.cc (Fpinv): Texinfoize doc string. |
|
1410 |
3364
|
1411 * defun-int.h (DEFUN_DLD_INTERNAL): New macro. |
|
1412 * defun-dld.h [MAKE_BUILTINS] (DEFUN_DLD): Simply expand to |
|
1413 DEFUN_DLD_INTERNAL. |
|
1414 * mkbuiltins: Generate code to define DEFUN_DLD_INTERNAL. |
|
1415 * mkgendoc: Likewise. |
|
1416 |
3363
|
1417 * Makefile.in (gendoc.o): Don't optimize when creating gendoc. |
3364
|
1418 (%.dc : %.cc): Delete rule. |
3363
|
1419 |
3361
|
1420 * pt-decl.cc (Vdefault_global_variable_value): Texinofize doc string. |
|
1421 * variables.cc (Fclear, Fdocument, Fexist, Fis_global, Fwho): Ditto. |
|
1422 * help.cc (Ftype, Fwhich): Ditto. |
|
1423 * ov.cc (Vstruct_levels_to_print, Vimplicit_str_to_num_ok): Ditto. |
|
1424 * data.cc (Fis_struct, Fstruct_elements, Fstruct_constains): Ditto. |
|
1425 * strfns.cc (Fisstr, Fsetstr): Ditto. |
|
1426 * pt-mat.cc: (Fimplicit_num_to_str_ok, Fstring_fill_char): Ditto. |
|
1427 * utils.cc (Fundo_string_escapes): Ditto. |
|
1428 * mappers.cc: (Fisalnum, Fisalpha, Fisascii, Fiscntrl, Fisdigit, |
|
1429 Fisgraph, Fislower, Fisprint, Fispunct, Fisspace, Fisupper, |
|
1430 Fisxdigit, Ftoascii, Ftolower, Ftoupper): Ditto. |
|
1431 |
3357
|
1432 1999-11-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1433 |
3360
|
1434 * syscalls.cc (symbols_of_syscalls): Use DEFCONSTX to define |
|
1435 Octave constants for C macros like O_WRONLY. |
|
1436 |
3357
|
1437 * oct-lvalue.cc (octave_lvalue::set_index): Disallow expressions |
|
1438 like x(i)(j) = rhs. |
|
1439 |
3355
|
1440 1999-11-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1441 |
3356
|
1442 * symtab.cc (symbol_record::type_as_string): New function. |
3355
|
1443 |
|
1444 * symtab.cc (symbol_record::which): New functions. |
|
1445 * help.cc (do_which): New functions. |
|
1446 (Fwhich): Use them. |
|
1447 |
|
1448 * help.cc (help_from_symbol_table, help_from_file): New functions. |
|
1449 (builtin_help): Use them. |
|
1450 |
|
1451 * help.cc (do_type): New function. |
3356
|
1452 (symbol_record::type): New function. |
3355
|
1453 (Ftype): Use them. |
|
1454 |
|
1455 * help.cc (print_symbol_type): Delete. |
|
1456 |
|
1457 * symtab.cc (symbol_table::name_list): Delete count arg. |
|
1458 (symbol_table::symbol_list): Likewise. |
|
1459 (symbol_table::glob): Likewise. Also return Array<symbol_record *> |
|
1460 instead of symbol_record **. |
|
1461 Change all callers. |
|
1462 * help.cc (names, display_symtab_names): Delete count arg. |
|
1463 |
|
1464 * help.cc (print_symbol_type, Ftype): No longer need to look up |
|
1465 fcn_file_name in the loadpath. |
|
1466 |
|
1467 * help.cc (print_symbol_type): Handle dld functions. |
|
1468 (help_from_symbol_table, help_from_file): New functions. |
|
1469 (builtin_help): Use them. |
|
1470 |
3354
|
1471 1999-11-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1472 |
|
1473 * ov-cell.cc (Fiscell, Fcell): New Functions. |
|
1474 (octave_cell::do_index_op): New function. |
|
1475 |
|
1476 * utils.cc (get_dimensions): Move here from data.cc and make extern. |
|
1477 (Vtreat_neg_dim_as_zero, treat_neg_dim_as_zero): Likewise. |
|
1478 (symbols_of_utils): New function. |
|
1479 |
|
1480 * data.cc (fill_matrix (const octave_value_list&, double, |
|
1481 const char*)): New function. |
|
1482 (Fones, Fzeros): Use it to avoid some code duplication. |
|
1483 |
3352
|
1484 1999-11-15 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1485 |
|
1486 * pt-cell.h, pt-cell.cc, ov-cell.h, ov-cell.cc, Cell.h, Cell.cc: |
|
1487 New files. |
|
1488 * Makefile.in: Add them to the appropriate lists. |
|
1489 * pt-walk.h (visit_cell (tree_cell&): New pure virtual. |
|
1490 * pt-pr-code.cc (tree_print_code::visit_cell (tree_cell&)): New |
|
1491 function. |
|
1492 * TEMPLATE-INST/Array-tc.cc: Instantiate 2D arrays of octave_value |
|
1493 objects. |
|
1494 * pt-all.h: Include pt-cell.h. |
|
1495 * ov.h, ov.cc (octave_value::is_cell, octave_value::cell_value): |
|
1496 New functions. |
|
1497 * ov-base.h, ov-base.cc (octave_value::is_cell, |
|
1498 octave_value::cell_value): Provide defaults. |
|
1499 * lex.h, lex.l: Handle `{' and `}' tokens (for cell arrays). |
|
1500 (bracketflag): Rename from braceflag. |
|
1501 (handle_close_bracket): Rename from handle_close_brace. |
|
1502 (class bracket_brace_paren_nesting_level): Rename from |
|
1503 brace_paren_nesting_level. |
|
1504 (bracket_brace_paren_nesting_level::bracket, |
|
1505 bracket_brace_paren_nesting_level::is_bracket): New functions to |
|
1506 keep count of nesting level for `[' and `]'. |
|
1507 (bracket_brace_paren_nesting_level::brace, |
|
1508 bracket_brace_paren_nesting_level::is_brace): Now keeps count of |
|
1509 nesting level for `{' and `}'. |
|
1510 * parse.y (tree_cell_type): New type. |
|
1511 Give '{' the same precedence and associativity as '(' and '.' |
|
1512 (matrix_rows, matrix_rows1): Rename from rows, rows1. |
|
1513 (cell, cell_rows, cell_rows1): New non-terminals. |
|
1514 (cell_or_matrix_row): Rename from matrix_row. |
|
1515 (primary_expr): Accept cell here. |
|
1516 (postfix_expr): Allow indexing using '{' arg_list '}'. |
|
1517 (finish_cell): New function. |
|
1518 |
3350
|
1519 1999-11-12 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1520 |
|
1521 * utils.cc (jump_to_top_level): No longer declared extern "C". |
|
1522 |
|
1523 * cutils.c (octave_strcasecmp, octave_strncasecmp): New functions. |
|
1524 * utils.cc (almost_match): Call octave_strncasecmp instead of |
|
1525 calling strncasecmp directly. |
|
1526 |
3347
|
1527 1999-11-10 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1528 |
|
1529 * parse.y: Don't define warn_reload_forces_clear here. |
|
1530 |
|
1531 * Makefile.in (DISTFILES): Include DOCSTRINGS. |
|
1532 |
3340
|
1533 1999-11-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1534 |
3343
|
1535 * sighandlers.cc (install_signal_handlers): Don't install |
|
1536 sigwinch_handler. |
|
1537 |
3342
|
1538 * oct-iostrm.h (octave_istream::eof, octave_ostream::eof): Provide |
|
1539 implementation for these. |
|
1540 |
|
1541 * oct-stream.cc (octave_base_stream::do_scanf): |
|
1542 The stdin stream is only special if we are interactive. |
|
1543 (octave_base_stream::scanf): Ditto. |
|
1544 (octave_base_stream::do_oscanf): Ditto. |
|
1545 (octave_base_stream::oscanf): Ditto. |
|
1546 |
3340
|
1547 * ov.h (octave_value::is_stream): New predicate. |
|
1548 * ov-file.h (octave_file::is_stream): Return true. |
|
1549 * file-io.cc (Fis_stream): New function. |
|
1550 |
|
1551 * ov-file.h (class octave_file): stream is now an object instead |
|
1552 of pointer. |
|
1553 * ov-file.cc (octave_file::print_raw): Handle stream as object |
|
1554 instead of pointer. Also print stream status. |
|
1555 |
|
1556 * ov-base.cc (octave_base_value::stream_value): Return object |
|
1557 instead of pointer. |
|
1558 |
|
1559 * ov.cc (octave_value::stream_value): Return object instead of pointer. |
|
1560 (octave_value::octave_value (const octave_stream&)): Take const |
|
1561 reference instead of pointer arg. |
|
1562 |
|
1563 * TEMPLATE-INST/Array-os.cc: Instantiate Arrays of octave_stream |
|
1564 objects, not pointers to them. |
|
1565 |
|
1566 * OPERATORS/op-fil-b.cc: Cope with octave_stream class changes. |
|
1567 * OPERATORS/op-fil-bm.cc: Likewise. |
|
1568 * OPERATORS/op-fil-cm.cc: Likewise. |
|
1569 * OPERATORS/op-fil-cs.cc: Likewise. |
|
1570 * OPERATORS/op-fil-lis.cc: Likewise. |
|
1571 * OPERATORS/op-fil-m.cc: Likewise. |
|
1572 * OPERATORS/op-fil-rec.cc: Likewise. |
|
1573 * OPERATORS/op-fil-s.cc: Likewise. |
|
1574 * OPERATORS/op-fil-str.cc: Likewise. |
|
1575 * file-io.cc: Likewise. |
|
1576 * syscalls.cc (Fdup): Likewise. |
|
1577 |
|
1578 * oct-fstrm.cc, oct-fstrm.h, oct-iostrm.cc, oct-iostrm.h, |
|
1579 oct-prcstrm.cc, oct-prcstrm.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
1580 oct-stream.cc, oct-stream.h, oct-strstrm.cc, oct-strstrm.h: |
|
1581 Rewrite to allow octave_stream objects to be used like values |
|
1582 instead of having to use pointers. |
|
1583 |
3337
|
1584 1999-11-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1585 |
|
1586 * oct-stream.cc (octave_base_stream::do_scanf): If it looks like |
|
1587 we have a matching failure, then reset the failbit in the stream |
|
1588 state. |
|
1589 (octave_base_stream::do_oscanf): Likewise. |
|
1590 |
3332
|
1591 1999-11-02 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
1592 |
3361
|
1593 * help.cc (Fhelp): Texinfoize doc string. |
|
1594 * input.cc (Fecho, Fcompletion_matches): Ditto. |
|
1595 * oct-hist.cc (Fedit_history, Fhistory, Frun_history): Ditto. |
|
1596 * pager.cc (Fdiary): Ditto. |
|
1597 * sysdep.cc (Fclc): Ditto. |
|
1598 * toplev.cc (Fquit, Fatexit): Ditto. |
3332
|
1599 |
|
1600 1999-11-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1601 |
|
1602 * lex.l (yywrap): No longer static. |
|
1603 (have_continuation): Declare input character as int, not char, so |
|
1604 comparison to EOF will work. |
|
1605 |
3330
|
1606 1999-11-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1607 |
|
1608 * defun.cc (print_usage): Use display_help_text instead of sending |
|
1609 help message directly to octave_stdout. |
|
1610 |
3325
|
1611 1999-10-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1612 |
|
1613 * defun-dld.h (INSTALL_DLD_FCNS, INSTALL_DLD_FCN): Delete definitions. |
|
1614 * DLD-FUNCTIONS/dassl.cc: Don't use INSTALL_DLD_FCN or |
|
1615 INSTALL_DLD_FCNS macros. They are not necessary with the new code |
|
1616 in dynamic-ld.cc. |
|
1617 * DLD-FUNCTIONS/lsode.cc: Ditto. |
|
1618 * DLD-FUNCTIONS/fsolve.cc: Ditto. |
|
1619 * DLD-FUNCTIONS/quad.cc: Ditto. |
|
1620 * DLD-FUNCTIONS/time.cc: Ditto. |
|
1621 * DLD-FUNCTIONS/besselj.cc: Ditto. |
|
1622 * DLD-FUNCTIONS/getgrent.cc: Ditto. |
|
1623 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
1624 * DLD-FUNCTIONS/inv.cc: Ditto. |
|
1625 * DLD-FUNCTIONS/log.cc: Ditto. |
|
1626 * DLD-FUNCTIONS/minmax.cc: Ditto. |
|
1627 * DLD-FUNCTIONS/rand.cc: Ditto. |
|
1628 |
|
1629 * dynamic-ld.cc, dynamic-ld.h: Major rewrite to allow reloading of |
|
1630 dynamically linked functions. |
|
1631 |
|
1632 * symtab.cc (symbol_record::replace_all_defs): Don't allow top |
|
1633 definition to be NULL. |
|
1634 (symbol_table::clear): Allow dynamically linked functions to be |
|
1635 cleared. |
|
1636 |
|
1637 * symtab.h (TYPE): New enum value, DLD_FUCTION. |
|
1638 (symbol_type): Now 8 bits wide. |
|
1639 (SYMTAB_ALL_TYPES): Include DLD_FUNCTION. |
|
1640 (symbol_record::symbol_def::is_function): Also recognize dld functions. |
|
1641 (symbol_record::symbol_def::is_dld_function): New function. |
|
1642 (symbol_record::is_dld_function): Ditto. |
|
1643 |
|
1644 * defun.cc (install_dld_function): New function. |
|
1645 * defun-int.h: Provide declaration here. |
|
1646 (octave_dld_fcn_installer): New typedef. |
|
1647 (DEFINE_FUN_INSTALLER_FUN): Installer function now takes an |
|
1648 oct_shlib object as an arg. Allow installation of a function to |
|
1649 happen more than once. |
|
1650 |
|
1651 * octave.cc (initialize_error_handlers): Call |
|
1652 set_liboctave_warning_handler here too. |
|
1653 |
|
1654 * ov-builtin.h (is_builtin_function): Return true. |
|
1655 Data member is now protected, not private. |
|
1656 |
|
1657 * ov-fcn.h (is_dynamically_loaded_function): New predicate. |
|
1658 (unload): New function. |
|
1659 Data members are now protected, not private. |
|
1660 |
|
1661 * ov.h (is_builtin_function, is_dld_function): New predicates. |
|
1662 * ov-base.h (is_builtin_function, is_dld_function): Ditto. |
|
1663 |
|
1664 * parse.y (Vwarn_reload_forces_clear): New static flag. |
|
1665 (warn_reload_forces_clear): New function. |
|
1666 (symbols_of_parse): DEFVAR warn_reload_forces_clear. |
|
1667 |
|
1668 * variables.cc (Fclear): Look for dld functions too. |
|
1669 |
3770
|
1670 * ov-dld-fcn.cc, ov-dld-fcn.h: New files. |
3325
|
1671 * Makefile.in (OV_INCLUDES, OV_SRC): Add them to the lists. |
|
1672 |
|
1673 * Makefile.in (DEFVAR_PATTERN): Also match DEFCONSTX. |
|
1674 |
3321
|
1675 1999-10-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1676 |
3325
|
1677 * DLList.h, DLList.cc: New files. |
|
1678 * Makefile.in (INCLUDES, DIST_SRC): Add them to the lists. |
|
1679 |
3323
|
1680 * DLD-FUNCTIONS/lsode.cc (Flsode): Be sure to call |
|
1681 unwind_protect::run_frame before returning. |
|
1682 * DLD-FUNCTIONS/quad.cc (Fquad): Likewise. |
|
1683 * DLD-FUNCTIONS/fsolve.cc (Ffsolve): Likewise. |
|
1684 * DLD-FUNCTIONS/dassl.cc (Fdassl): Likewise. |
|
1685 |
|
1686 * load-save.cc (read_mat_ascii_data): When reading from |
|
1687 tmp_stream, check its state, not the state of is. |
|
1688 |
|
1689 * defun-dld.h (INSTALL_DLD_FCN, INSTALL_DLD_FCNS): New macros. |
|
1690 * DLD-FUNCTIONS/dassl.cc: Use them. |
|
1691 * DLD-FUNCTIONS/lsode.cc: Ditto. |
|
1692 * DLD-FUNCTIONS/fsolve.cc: Ditto. |
|
1693 * DLD-FUNCTIONS/quad.cc: Ditto. |
|
1694 * DLD-FUNCTIONS/time.cc: Ditto. |
|
1695 * DLD-FUNCTIONS/besselj.cc: Ditto. |
|
1696 * DLD-FUNCTIONS/getgrent.cc: Ditto. |
|
1697 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
1698 * DLD-FUNCTIONS/inv.cc: Ditto. |
|
1699 * DLD-FUNCTIONS/log.cc: Ditto. |
|
1700 * DLD-FUNCTIONS/minmax.cc: Ditto. |
|
1701 * DLD-FUNCTIONS/rand.cc: Ditto. |
|
1702 |
3322
|
1703 * data.cc (Flinspace): Let linspace functions handle errors. |
|
1704 |
3321
|
1705 * mkgendoc (print_doc_string): Handle quoted names. |
|
1706 |
|
1707 * file-io.cc (symbols_of_file_io): Use DEFCONSTX for SEEK_SET, |
|
1708 SEEK_CUR, and SEEK_END. |
|
1709 |
|
1710 * defun.h (DEFCONST): Just pass name, defn, and doc to |
|
1711 DEFCONST_INTERNAL. |
|
1712 (DEFCONSTX): Likewise, pass name, defn, and doc to DEFCONSTX_INTERNAL. |
|
1713 * defun-int.h [MKBUILTINS] (DEFCONST_INTERNAL): Likewise, pass |
|
1714 name, defn, and doc to XDEFCONST_INTERNAL. |
|
1715 [MKBUILTINS] (DEFCONSTX_INTERNAL): New macro. |
|
1716 (INSTALL_CONST): New macro. |
|
1717 [! MKBUILTINS] (DEFCONST_INTERNAL): Use it to handle details here. |
|
1718 [! MKBUILTINS] (DEFCONSTX_INTERNAL): Ditto. |
|
1719 * mkgendoc: Fix definition of XDEFCONST_INTERNAL to match. |
|
1720 * mkbuiltins: Ditto. |
|
1721 |
|
1722 * mkdefs: Match spaces before BEGIN_INSTALL_BUILTIN. |
|
1723 |
|
1724 * Makefile.in (DEFUN_PATTERN): Also match DEFUN_MAPPER. |
|
1725 |
|
1726 1999-10-26 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
1727 |
|
1728 * data.cc (VI, VInf, VJ, VNaN, Ve, Veps, Vfalse, Vi, Vinf, Vj, |
|
1729 Vnan, Vpi, Vrealmax, Vrealmin): Texinfoize doc strings. |
|
1730 * mappers.cc (Fabs, Facos, Facosh, Fangle, Farg, Fasin, Fasinh, |
|
1731 Fatan, Fatanh, Fceil, Fconj, Fcos, Fcosh, Ferf, Ferfc, Fexp, |
|
1732 Ffinite, Ffix, Ffloor, Fgamma, Fimag, Flgamma, Flog, Flog10, |
|
1733 Freal, Fround, Fsign, Fsin, Fsinh, Fsqrt, Ftan, Ftanh): Ditto. |
|
1734 |
|
1735 1999-10-23 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
1736 |
3361
|
1737 * data.cc (Fis_matrix): Texinfoize doc string. |
|
1738 * ov.cc (Vpropagate_empty_matrices): Ditto. |
|
1739 * pt-mat.cc: (Vempty_list_elements_ok): Ditto. |
|
1740 * pr-output.cc (Vfixed_point_format, Voutput_max_field_width, |
|
1741 Voutput_precision, Vprint_empty_dimensions, Vsplit_long_rows): |
|
1742 Ditto. |
3321
|
1743 |
|
1744 1999-10-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1745 |
3323
|
1746 * ov-usr-fcn.cc (octave_user_function::do_index_op): If |
|
1747 Vmax_recursion_depth is exceeded, call unwind_protect::run_frame |
|
1748 before returning. |
3321
|
1749 |
3308
|
1750 1999-10-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1751 |
3317
|
1752 * cutils.c (do_octave_usleep): Handle useconds > 1e6. |
|
1753 |
3308
|
1754 * variables.h (is_valid_function): Provide default values for the |
|
1755 string argument. |
|
1756 |
|
1757 * symtab.cc (variable_reference): Maybe print warning (or error) |
|
1758 about variables that hide functions of the same name. |
|
1759 (symbol_record::define (const octave_value&, unsigned int)): Ditto. |
|
1760 (Vvariables_can_hide_functions): New static variable. |
|
1761 (variables_can_hide_functions, symbols_of_symtab): New functions. |
|
1762 |
|
1763 * cutils.c: New file. |
|
1764 * Makefile.in (SOURCES): Add it to the list. |
|
1765 * utils.h: Declare octave_usleep here. |
|
1766 * dirfns.cc (Fls): Simply all octave_usleep. |
|
1767 * oct-procbuf.cc (octave_procbuf::open): Ditto. |
|
1768 * sysdep.cc (Fusleep): Ditto. |
|
1769 * toplev.cc (run_command_and_return_output): Ditto. |
|
1770 |
3305
|
1771 1999-10-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1772 |
3307
|
1773 * data.cc (make_diag (const octave_value&, const octave_value&)): |
|
1774 Delete special cases for scalars and simply attempt conversion of |
|
1775 first arg to a matrix value. If that fails, we will still see an |
|
1776 error message. |
|
1777 |
3305
|
1778 * Makefile.in (DISTFILES): Add mkgendoc to the list. |
|
1779 |
3296
|
1780 1999-10-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1781 |
3301
|
1782 * Makefile.in (stmp-pic): New target. |
|
1783 ($(PICOBJS)): Depend on stmp-pic, not pic. |
|
1784 |
|
1785 * ov.h (get_rep): New function. |
|
1786 |
|
1787 * help.cc (display_help_text): Pass definitions for VERSION, |
|
1788 OCTAVE_HOME, and TARGETHOSTTYPE to makeinfo. |
|
1789 |
|
1790 * DLD-FUNCTIONS/getgrent.cc: Texinfoize all doc strings. |
|
1791 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
1792 * DLD-FUNCTIONS/getrusage.cc: Ditto. |
|
1793 * DLD-FUNCTIONS/time.cc: Ditto. |
|
1794 |
|
1795 * defaults.cc (EXEC_PATH, OCTAVE_VERSION): Texinfoize doc strings. |
|
1796 * dirfns.cc (Fcd, Fls, Fpwd, Freaddir, Fmkdir, Frmdir, Frename, |
|
1797 Fglob, Ffnmatch): Ditto. |
|
1798 * file-io.cc (Fpopen, Fpclose, Fumask): Ditto. |
|
1799 * sysdep.cc (Fgetenv, Fputenv, Fpause, Fsleep, Fusleep, Fisieee, |
|
1800 Ftilde_expand): Ditto. |
|
1801 * toplev.cc (Fcomputer, Fsystem, Foctave_config_info): Ditto. |
|
1802 * utils.cc (Ffile_in_path): Ditto. |
|
1803 * syscalls.cc (Fdup2, Fexec, Ffcntl, Ffork, Fgetpgrp, Fgetpid, |
|
1804 Fgetppid, Fgetegid, Fgetgid, Fgeteuid, Fgetuid, Fmkfifo, Fpipe, |
|
1805 Fstat, Funlink, Fwaitpid, F): Ditto. |
|
1806 (Flstat): Refer to stat for doc. |
|
1807 |
|
1808 |
3296
|
1809 * help.cc (looks_like_texinfo): New function. |
|
1810 (display_help_text): Use it to see if the doc string looks like |
|
1811 Texinfo source. If so, use makeinfo to format the text before |
|
1812 displaying it. |
|
1813 |
|
1814 * mkgendoc: New script. |
|
1815 * Makefile.in: Use it to create gendoc.cc, which is compiled and |
|
1816 run to create DOCSTRINGS file from sources. |
|
1817 |
3295
|
1818 1999-10-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1819 |
|
1820 * help.cc (help_from_info): Print `unable to find info' message if |
|
1821 try_info returns 127; otherwise, print `not indexed' message. |
|
1822 Don't sleep after printing `not indexed' message. |
|
1823 |
3292
|
1824 1999-10-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1825 |
|
1826 * parse.y (fold (tree_unary_expression *)): New function. |
|
1827 (make_prefix_op, make_postfix_op): Use it. |
|
1828 |
3281
|
1829 1999-10-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1830 |
3288
|
1831 * Makefile.in (oct-gperf.h): Ask for ANSI-C output from gperf |
|
1832 (requires gperf-2.7 or later). |
|
1833 |
3281
|
1834 * sighandlers.cc (sigwinch_handler): New function. |
|
1835 (install_signal_handlers): Install it. |
|
1836 |
3273
|
1837 Thu Sep 23 19:49:36 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1838 |
|
1839 * toplev.cc (Fsystem): For async case, use execl instead of |
|
1840 system, avoiding the need to exit after executing the subprocess. |
|
1841 |
3268
|
1842 Thu Sep 9 17:09:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1843 |
|
1844 * oct-stream.cc (get_size): Allow zero values. |
|
1845 (get_size): New arg, one_elt_size_spec. |
|
1846 (do_scanf_conv): New arg, `conv_count'. Change instantiation |
|
1847 requests and all callers. |
|
1848 (octave_base_stream::do_scanf): Improve scanning of strings. |
|
1849 (octave_base_stream::do_oscanf): Remove size limit on %s conversions. |
|
1850 |
|
1851 * oct-stream.cc (scanf_format_list::all_character_conversions): |
|
1852 Don't count %p as a character conversion. |
|
1853 |
|
1854 Tue Sep 7 08:31:04 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1855 |
|
1856 * pr-output.cc (set_real_matrix_format, set_complex_matrix_format): |
|
1857 Move check for fixed_point_format ahead of check for |
|
1858 int_or_inf_or_nan. |
|
1859 |
3264
|
1860 Thu Sep 2 11:54:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1861 |
|
1862 * oct-obj.cc (make_argv): Correctly handle empty strings as args. |
|
1863 |
3263
|
1864 Fri Aug 20 08:17:52 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1865 |
|
1866 * DLD-FUNCTIONS/quad.cc (quad): Delete unused label. |
|
1867 |
|
1868 * unwind-prot.cc (saved_variable::~saved_variable): Don't try to |
|
1869 delete gen_ptr_value here. |
|
1870 |
|
1871 Mon Aug 16 21:34:33 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1872 |
|
1873 * lex.l (next_token_is_sep_op): New function. |
|
1874 (handle_close_brace, maybe_unput_comma): Use it. |
|
1875 (have_continuation): Also handle CRLF here. |
|
1876 |
|
1877 Wed Aug 11 16:06:57 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1878 |
|
1879 * file-io.cc (Ffopen): Make fopen ("filename") work and imply that |
|
1880 MODE = "r". |
|
1881 |
3258
|
1882 Wed Jul 21 15:38:52 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1883 |
3259
|
1884 * help.cc (display_names_from_help_list): Sort names before |
|
1885 listing them. |
|
1886 (print_symbol_type, Ftype): Also handle built-in constants. |
|
1887 (LIST_SYMBOLS): Correct call to symbol_table::name_list. |
|
1888 (simple_help): List constants here too. List constants and |
|
1889 variables before functions, not after. Sort names before listing |
|
1890 them. |
|
1891 |
|
1892 * variables.cc (do_who): Display built-in constants in a separate |
|
1893 section. |
|
1894 |
|
1895 * error.cc (bind_global_error_variable, clear_global_error_variable): |
|
1896 Call bind_builtin_constant, not bind_builtin_variable to set |
|
1897 __error_text__. |
|
1898 * octave.cc (intern_argv): Likewise, for argv and __argv__. |
|
1899 |
|
1900 * defun.cc (install_builtin_constant): Move function guts to |
|
1901 bind_builtin_constant in variables.cc. |
|
1902 * variables.cc (bind_builtin_constant): New function. |
|
1903 |
3258
|
1904 * symtab.cc (symbol_record::define, symbol_record::variable_reference): |
|
1905 Handle constants the same as functions. |
|
1906 (symbol_record::link_to_builtin_variable): New function. |
|
1907 (symbol_record::define_builtin_const): New function. |
|
1908 (symbol_record::define_as_fcn): Delete unused function. |
|
1909 (symbol_record::read_only_error): |
|
1910 Handle constants the same as variables. |
|
1911 * symtab.h (symbol_record::BUILTIN_CONSTANT): New enum value. |
|
1912 (symbol_record::symbol_type): Increase width to 7 bits. |
|
1913 (symbol_record::symbol_def::is_constant): New function. |
|
1914 (symbol_record::symbol_def::is_builtin_constant): New function. |
|
1915 (symbol_record::is_constant): New function. |
|
1916 (symbol_record::is_builtin_constant): New function. |
|
1917 (SYMTAB_ALL_TYPES): Add symbol_record::BUILTIN_CONSTANT. |
|
1918 * variables.cc (link_to_builtin_variable): Delete unused function. |
|
1919 (link_to_builtin_or_function): Handle built-in constants here too. |
|
1920 |
|
1921 * defun.cc (install_builtin_variable): Delete inst_as_fcn arg. |
|
1922 (install_builtin_constant): New function. |
|
1923 (install_builtin_variable_as_function): Delete unused function. |
|
1924 * defun.h (DEFVAR_INTERNAL): Delete inst_as_fcn arg. |
|
1925 (DEFCONST_INTERNAL): New macro. |
|
1926 * defun.h (DEFVAR): Delete inst_as_fcn arg. |
|
1927 (DEFCONST, DEFCONSTX): Define using DEFCONST_INTERNAL instead of |
|
1928 DEFVAR_INTERNAL. |
|
1929 * data.cc, defaults.cc, error.cc, help.cc, input.cc, lex.l, |
|
1930 load-save.cc, oct-hist.cc, oct-procbuf.cc, ov-fcn.h, |
|
1931 ov-usr-fcn.cc, ov.cc, pager.cc, parse.y, pr-output.cc, |
|
1932 pt-assign.cc, pt-decl.cc, pt-mat.cc, pt-plot.cc, pt-stmt.cc, |
|
1933 toplev.cc, variables.cc: |
|
1934 Change all invocations of DEFVAR to match new definition. |
|
1935 |
|
1936 * data.cc (symbols_of_data): Add DEFCONSTs for true and false. |
|
1937 |
3255
|
1938 Thu Jul 15 10:59:42 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1939 |
3258
|
1940 * data.cc (Fis_bool, Fis_complex, Fisempty, Fisnumeric, Fis_list, |
|
1941 Fis_map, Fis_struct): Return bool object. |
|
1942 (Fisreal): New function. |
|
1943 |
|
1944 * ov-str-mat.h (octave_char_matrix_str): Only return true if |
|
1945 Vimplicit_str_to_num_ok is also true. |
|
1946 |
3255
|
1947 * DLD-FUNCTIONS/time.cc (Ftime): Print usage message if any |
|
1948 arguments are supplied. |
|
1949 |
|
1950 * variables.cc (symbol_out_of_date): Call octave_time for time stamps. |
|
1951 |
|
1952 * fn-cache.h (octave_fcn_file_name_cache::timestamp): |
|
1953 Now octave_time object. |
|
1954 |
|
1955 * strftime.c: Move to liboctave directory. |
|
1956 * Makefile.in (DIST_SRC): Delete from list. |
|
1957 |
|
1958 * ov-usr-fcn.h (octave_user_function::t_parsed, |
|
1959 octave_user_function::t_checked): Now octave_time objects. |
|
1960 (octave_user_function::time_parsed, |
|
1961 (octave_user_function::time_checked): |
|
1962 Return value is now octave_time object. |
|
1963 (octave_user_function::mark_fcn_file_up_to_date)): |
|
1964 Arg is now octave_time object. |
|
1965 |
|
1966 * ov-fcn.h (octave_function::mark_fcn_file_up_to_date)): |
|
1967 Arg is now octave_time object. |
|
1968 (octave_function::time_parsed, octave_function::time_checked): |
|
1969 Return value is now octave_time object. |
|
1970 |
|
1971 * input.cc (Vlast_prompt_time): Now an octave_time object. |
|
1972 (octave_gets): Call octave_time::stamp() to set Vlast_prompt_time. |
|
1973 |
|
1974 * DLD-FUNCTIONS/time.cc (mk_tm_map, extract_tm, Ftime, Fgmtime, |
|
1975 Flocaltime, Fmktime, Fstrftime): Use new classes defined in |
|
1976 liboctave/oct-time.cc instead of accessing C functions directly. |
|
1977 |
3252
|
1978 Wed Jul 14 17:38:46 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1979 |
|
1980 * systime.h: Move to liboctave directory. |
|
1981 * Makefile.in (INCLUDES): Delete it from the list |
|
1982 |
|
1983 Tue Jul 13 14:34:57 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1984 |
|
1985 * sighandlers.cc (sigchld_handler): Only wait for processes in |
|
1986 octave_child_list. |
|
1987 * toplev.cc (cmd_status): Delete unused static variable. |
|
1988 (cmd_death_handler): Delete unused function. |
|
1989 (run_command_and_return_output): Don't add cmd_death_handler to |
|
1990 octave_child_list. Simply extract command exit status from |
|
1991 calling close() on the procstream object. |
|
1992 |
3249
|
1993 Mon Jul 12 22:38:50 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1994 |
|
1995 * defun.h (DEFUN_MAPPER): Handle new args, d_b_map and c_b_map. |
|
1996 * defun-int.h (DEFUN_MAPPER_INTERNAL): Likewise. |
|
1997 * mappers.cc (install_mapper_functions): Supply new args to |
|
1998 all uses of DEFUN_MAPPER. |
|
1999 * ov-mapper.cc (octave_mapper::apply): Handle mapper functions |
|
2000 that return bool objects. |
|
2001 * ov-mapper.h (octave_mapper::d_b_mapper, octave_mapper::c_b_mapper): |
|
2002 New typedefs. |
|
2003 (octave_mapper::octave_mapper): Handle new mapper function types. |
|
2004 |
|
2005 * DLD-FUNCTIONS/minmax.cc: Do a better job of handling NaNs. |
|
2006 |
|
2007 Sun Jul 11 13:15:17 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2008 |
|
2009 * pr-output.cc (do_plus_format (ostream&, double)): New function. |
|
2010 (octave_print_internal (ostream&, double, bool)): Use it. |
|
2011 (octave_print_internal (ostream&, const Matrix&, bool, int)): Ditto. |
|
2012 |
|
2013 * pr-output.cc (do_plus_format (ostream&, const Complex&)): |
|
2014 New function. |
|
2015 (octave_print_internal (ostream&, const Complex&, bool)): Use it. |
|
2016 (octave_print_internal (ostream&, const ComplexMatrix&, bool, int)): |
|
2017 Ditto. |
|
2018 |
|
2019 Sun Jun 20 23:04:00 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2020 |
|
2021 * sysdep.cc: Include sys/ioctl.h if available. |
|
2022 |
|
2023 Sat Jun 19 12:07:16 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2024 |
|
2025 * variables.cc (do_who): Make pattern and multiple non-option |
|
2026 arguments work. |
|
2027 |
3246
|
2028 Mon Jun 7 09:54:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2029 |
|
2030 * lex.l (next_token_is_bin_op, next_token_is_postfix_unary_op, |
|
2031 handle_number): Delete yytext arg. Change all callers. |
|
2032 (next_token_is_postfix_unary_op): Check the first character |
|
2033 obtained from yyinput before calling it again. |
|
2034 (next_token_is_bin_op): Do a more thorough check. |
|
2035 (handle_identifier): Also enter token in local symbol table if the |
|
2036 following token is a dot and it looks like a binary operator. |
|
2037 (whitespace_in_literal_matrix): Now static. |
|
2038 |
|
2039 * lex.l: Always use unput, not yyunput. |
|
2040 |
3244
|
2041 Fri May 28 11:02:37 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2042 |
|
2043 * DLD-FUNCTIONS/chol.cc (Fchol): If two output arguments, never |
|
2044 produce error message. |
|
2045 |
3243
|
2046 Thu May 27 18:28:35 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2047 |
|
2048 * DLD-FUNCTIONS/chol.cc (Fchol): Also return info as second output. |
|
2049 |
|
2050 * DLD-FUNCTIONS/minmax.cc (max (const ComplexMatrix&, const |
|
2051 ComplexMatrix&)): Correct test for real columns only. |
|
2052 (min (const ComplexMatrix&, const ComplexMatrix&)): Likewise. |
|
2053 |
|
2054 Wed Apr 14 12:54:25 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2055 |
|
2056 * DLD-FUNCTIONS/dassl.cc (Fdassl): Prevent recursive calls. |
|
2057 * DLD-FUNCTIONS/fsolve.cc (Ffsolve): Likewise. |
|
2058 * DLD-FUNCTIONS/lsode.cc (Flsode): Likewise. |
|
2059 * DLD-FUNCTIONS/quad.cc (Fquad): Likewise. |
|
2060 |
|
2061 * file-io.cc (Fsscanf, Ffscanf): Doc fix. |
|
2062 |
3239
|
2063 Sat Mar 27 11:07:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2064 |
|
2065 * ov.h (octave_value::count): New function. |
|
2066 * symtab.cc (symbol_record::dump_symbol_info): New function. |
|
2067 * symtab.cc (symbol_record::symbol_def::dump_symbol_info): Ditto. |
|
2068 * variables.cc (F__dump_symbol_info__): Ditto. |
|
2069 |
|
2070 * pt-misc.cc (tree_parameter_list::clear): New function. |
|
2071 * ov-usr-fcn.h (octave_user_function::clear_args_passed): Ditto. |
|
2072 * ov-usr-fcn.cc (clear_param_list): New function. |
|
2073 (clear_args_passed): New function. |
|
2074 (octave_user_function::do_index_op): Use them to decrement |
|
2075 reference counts on local variables. |
|
2076 |
3238
|
2077 Fri Mar 26 00:51:53 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2078 |
|
2079 * Makefile.in (libraries): Use the libfoo.a(objects) method of |
|
2080 creating static libs. |
|
2081 |
|
2082 * defaults.cc (symbols_of_defaults): Initialize LOADPATH to |
|
2083 Vload_path, not ":". |
|
2084 |
|
2085 Thu Mar 18 12:09:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2086 |
|
2087 * data.cc (Fisnumeric): Fix typo. |
|
2088 |
|
2089 Thu Mar 4 02:17:04 1999 James Macnicol <jamesm@evans.ee.adfa.oz.au> |
|
2090 |
|
2091 * file-io.cc (Ffread, Ffwrite): Add uint16 and uint32 data types |
|
2092 to doc string. |
|
2093 |
|
2094 Wed Mar 3 11:55:17 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2095 |
|
2096 * lex.l (handle_string): Allow "" to pass through unchanged if |
|
2097 working on a gset command. |
|
2098 |
|
2099 Tue Mar 2 01:36:29 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2100 |
|
2101 * variables.cc (Fexist): If a variable isn't defined, only go on |
|
2102 to look for a global by the same name if we are at the top level. |
|
2103 |
|
2104 Fri Jan 29 02:18:36 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2105 |
|
2106 * version.h (OCTAVE_NAME_AND_VERSION): Say `GNU Octave', not just |
|
2107 Octave. |
|
2108 |
3234
|
2109 Thu Jan 28 21:29:16 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2110 |
|
2111 * toplev.cc (Fcomputer): Use CANONICAL_HOST_TYPE, not TARGET_HOST_TYPE. |
|
2112 (octave_config_info): Likewise. |
|
2113 * version.h: Ditto. |
|
2114 |
|
2115 * sysdep.cc (Fpause): Flush output before getting user input. |
|
2116 |
3233
|
2117 Wed Jan 27 14:18:29 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2118 |
|
2119 * Makefile.in (DEFFUN_PATTERN, DEFVAR_PATTERN): Use egrep again. |
|
2120 Make the patterns work with stupid egreps that don't like empty |
|
2121 elements in alternation patterns. |
|
2122 |
|
2123 Fri Jan 22 04:41:48 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2124 |
|
2125 * load-save.cc (save_ascii_data): Check for string type first, |
|
2126 then range, then the rest. |
|
2127 (save_binary_data): Ditto. |
|
2128 |
|
2129 * pager.cc (more_than_a_screenful): Accept length as second arg. |
|
2130 Handle long lines properly, assuming the terminal wraps long lines. |
|
2131 (octave_pager_buf::do_sync): Accept length of data as second arg. |
|
2132 Use write instead of << to put characters on output stream. |
|
2133 (octave_pager_buf::sync): Don't assume data ends at first NUL. |
|
2134 (octave_diary_buf::sync): Ditto. |
|
2135 |
|
2136 Thu Jan 21 22:15:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2137 |
|
2138 * load-save.cc (save_mat_binary_data): Check for string type |
|
2139 first, then range, then the rest. |
|
2140 |
|
2141 Wed Jan 20 12:01:14 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2142 |
|
2143 * oct-stream.cc (octave_base_stream::do_scanf): Handle short and |
|
2144 long ints correctly. |
|
2145 |
|
2146 Fri Jan 15 13:04:58 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2147 |
|
2148 * parse.y (end_error): Handle case of endswitch too. |
|
2149 |
|
2150 * Makefile.in: Use basic regular expressions and grep instead of |
|
2151 egrep to find files that contain DEFVAR, DEFCONST, or DEFUN. |
|
2152 |
|
2153 Wed Dec 9 14:14:11 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2154 |
|
2155 * Makefile.in (octave): Add $(RDYNAMIC_FLAG) to link command. |
|
2156 |
|
2157 Fri Dec 4 20:26:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2158 |
|
2159 * DLD-FUNCTIONS/time.cc (Fstrftime): Make it work even when not |
|
2160 using the GNU version of strftime, which allows passing NULL for |
|
2161 the buffer to determine the required size of the buffer. |
|
2162 |
3225
|
2163 Wed Dec 2 22:38:40 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2164 |
|
2165 * utils.cc (file_in_loadpath): Expect argc == 2, not 3. |
|
2166 |
|
2167 Tue Nov 24 23:38:19 1998 Eric Norum <eric@skatter.USask.Ca> |
|
2168 |
|
2169 * mkbuiltins: Also strip off leading `./' from file names. |
|
2170 * mkops: Ditto. |
|
2171 |
|
2172 Tue Nov 24 23:24:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2173 |
|
2174 * strftime.c: Surround everything with #ifdef HAVE_STRFTIME / #endif. |
|
2175 |
|
2176 * lex.h (YY_FATAL_ERROR): Call yy_falta_error after |
|
2177 jump_to_top_level to avoid gcc warning. |
|
2178 |
|
2179 Fri Nov 20 13:34:47 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2180 |
|
2181 * ov-bool.h, ov-bool.cc (class octave_bool): Derive from |
|
2182 octave_base_scalar and get common functions via derivation. |
|
2183 * ov-scalar.h, ov-scalar.cc (class octave_scalar): Ditto. |
|
2184 * ov-complex.h, ov-complex.cc (class octave_complex): Ditto. |
|
2185 |
|
2186 * ov-base-scalar.h, ov-base-scalar.cc (class octave_base_scalar): |
|
2187 New files for new class definition. Put common scalar data type |
|
2188 stuff here. |
|
2189 * Makefile.in (OV_INCLUDES, OV_SRC): Add them to the lists. |
|
2190 |
3221
|
2191 Thu Nov 19 14:30:25 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
3225
|
2192 |
3222
|
2193 * dynamic-ld.cc (octave_dynamic_loader::mangle_name): |
|
2194 Prepend underscore here. |
|
2195 (octave_dynamic_loader::load_fcn_from_dot_oct_file): Not here. |
|
2196 |
3221
|
2197 * ov-re-mat.h (octave_matrix_value): Delete experimental code for |
|
2198 handling structure references for things like .rows, .cols, etc. |
|
2199 |
3220
|
2200 Wed Nov 18 01:18:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2201 |
3221
|
2202 * Makefile.in (VAR_FILES): Be more careful about matching. |
|
2203 (DEF_FILES): Likewise. |
|
2204 |
|
2205 * ov-base-mat.h, ov-base-mat.cc, ov-bool-mat.h, ov-bool-mat.cc, |
|
2206 ov-ch-mat.h, ov-ch-mat.cc, ov-cx-mat.h, ov-cx-mat.cc, |
|
2207 ov-re-mat.h, ov-re-mat.cc: Move default definition of all, any, |
|
2208 is_matrix_type, is_numeric_type, valid_as_zero_index, and |
|
2209 do_index_op to base class. |
|
2210 Provide definitions that override the defaults where necessary. |
3220
|
2211 |
|
2212 * mappers.cc: Don't include lo-specfun.h. |
|
2213 |
|
2214 Tue Nov 17 14:35:56 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2215 |
|
2216 * besselj.cc (Fbesselh, Fairy); New functions. |
|
2217 (Fbesselj, Fbessely, Fbesselk, Fbesseli): Update doc strings. |
|
2218 (do_bessel): Handle additional args. |
|
2219 |
|
2220 Fri Nov 13 14:47:11 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2221 |
|
2222 * lex.l (NUMBER): Allow hexadecimal constants. |
|
2223 (looks_like_hex): New function. |
|
2224 (handle_number): Check for hexadecimal constants and convert them |
|
2225 to unsigned integer values. |
|
2226 |
3219
|
2227 Thu Nov 12 11:13:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2228 |
|
2229 * input.cc (gnu_readline): Check for EOF from command_editor::readline. |
|
2230 |
|
2231 * ov-str-mat.h, ov-str-mat.cc (class octave_char_matrix_str): |
|
2232 Get common functions via new derivation scheme. |
|
2233 |
|
2234 * ov-bool-mat.h, ov-bool-mat.cc (class octave_bool_matrix): |
|
2235 Derive from octave_base_matrix and get common functions via derivation. |
|
2236 * ov-ch-mat.h, ov-ch-mat.cc (class octave_char_matrix): Ditto. |
|
2237 * ov-cx-mat.h, ov-cx-mat.cc (class octave_complex_matrix): Ditto. |
|
2238 * ov-re-mat.h, ov-re-mat.cc (class octave_real_matrix): Ditto. |
|
2239 |
|
2240 * ov-base-mat.h, ov-base-mat.cc (class octave_base_matrix): New |
|
2241 files for new class definition. Put common matrix data type |
|
2242 stuff here. |
|
2243 |
|
2244 * ov-list.cc (Fnth): New function. |
|
2245 |
|
2246 * ov-list.cc (octave_list::do_index_op): Allow more complex indexing. |
|
2247 |
|
2248 * oct-obj.cc (octave_value_list::index): New function. |
|
2249 (octave_value_list::octve_value_list (Array<octave_value>)): |
|
2250 New private constructor. |
|
2251 |
|
2252 * ov-list.cc (Fsplice): Fix docstring to match. |
|
2253 * oct-obj.cc (octave_value_list::splice): Allow special case |
|
2254 splice (x, length(x)+1, 0, y) to be equivalent to append (x, y). |
|
2255 |
|
2256 * ov-list.cc (Fappend): If an arg is a list, concatenate the lists |
|
2257 instead of appending arg as a single element. |
|
2258 |
|
2259 Wed Nov 11 14:07:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2260 |
|
2261 * load-save.cc (get_mat_data_input_line): New function. |
|
2262 (get_lines_and_columns): Use it here. |
|
2263 (read_mat_ascii_data): And here and do our own reading instead of |
|
2264 using Matrix::operator<<. |
|
2265 |
|
2266 Tue Nov 10 16:12:25 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2267 |
|
2268 * parse.y (make_constant): Initialize retval to 0. |
|
2269 |
|
2270 * toplev.h (clean_up_and_exit (void)): Delete declaration. |
|
2271 * toplev.cc (do_octave_atexit): Move guts of clean_up_for_exit |
|
2272 here, but ensure that the actions are only executed once. |
|
2273 * octave.cc (main): Don't register cleanup_tmp_files with atexit. |
|
2274 |
|
2275 * ov.h, ov.cc (class octave_value): Use DECLARE_OCTAVE_ALLOCATOR |
|
2276 and DEFINE_OCTAVE_ALLOCATOR for uniform declaration and definition |
|
2277 of allocator functions. Use DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA |
|
2278 and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA for uniform declaration |
|
2279 and definition of type id functions and data. |
|
2280 * ov-usr-fcn.h, ov-usr-fcn.cc (class octave_user_function): Ditto. |
|
2281 * ov-scalar.h, ov-scalar.cc (class octave_scalar): Ditto. |
|
2282 * ov-re-mat.h ov-re-mat.cc (class octave_matrix): Ditto. |
|
2283 * ov-range.h, ov-range.cc (class octave_range): Ditto. |
|
2284 * ov-mapper.h, ov-mapper.cc (class octave_mapper): Ditto. |
|
2285 * ov-list.h, ov-list.cc (class octave_list): Ditto. |
|
2286 * ov-file.h, ov-file.cc (class octave_file): Ditto. |
|
2287 * ov-fcn.h, ov-fcn.cc (class octave_function): Ditto. |
|
2288 * ov-cx-mat.h, ov-cx-mat.cc (class octave_complex_matrix): Ditto. |
|
2289 * ov-complex.h, ov-complex.cc (class octave_complex): Ditto. |
|
2290 * ov-ch-mat.h, ov-ch-mat.cc (octave_char_matrix): Ditto. |
|
2291 * ov-builtin.h, ov-builtin.cc (class octave_builtin): Ditto. |
|
2292 * ov-bool.h, ov-bool.cc (class octave_bool): Ditto. |
|
2293 * ov-bool-mat.h, ov-bool-mat.cc (octave_bool_matrix): Ditto. |
|
2294 |
|
2295 * ov.h (DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA): New macro. |
|
2296 (DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA): Ditto. |
|
2297 |
3215
|
2298 Mon Nov 9 16:12:37 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2299 |
|
2300 * pr-output.cc (octave_print_internal): Reorder default args for |
|
2301 charMatrix version. |
|
2302 (octave_print_internal): New function for boolMatrix. |
|
2303 |
|
2304 * version.h (OCTAVE_STARTUP_MESSAGE): Note that this is a |
|
2305 development release. |
|
2306 |
|
2307 * toplev.cc (do_octave_atexit): Call flush_octave_stdout here. |
|
2308 (clean_up_for_exit): And here. |
|
2309 |
|
2310 Mon Nov 9 15:20:53 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2311 |
|
2312 * input.cc (get_user_input): Check retval.length(), not retval.length. |
|
2313 |
|
2314 Sun Nov 8 19:30:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2315 |
|
2316 * pt-assign.cc (tree_simple_assignment::rvalue): If etype is |
|
2317 asn_eq, don't evaluate ult again because retval is just rhs value. |
|
2318 (tree_multi_assignment::rvalue): Likewise. |
|
2319 |
|
2320 Fri Nov 6 12:14:29 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2321 |
|
2322 * pt-loop.cc (tree_for_command::eval): Move code for string RHS |
|
2323 outside if clause for matrix types. |
|
2324 |
|
2325 * pt-idx.cc: Don't forget to define arg_nm. |
|
2326 Move contstructor here. |
|
2327 * pt-idx.h: From here. |
|
2328 |
|
2329 * data.cc (Fisempty): Also return true for empty strings. |
|
2330 |
3212
|
2331 Wed Nov 4 17:21:41 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2332 |
|
2333 * ov-base.cc (octave_base_value::rows, octave_base_value::columns, |
|
2334 octave_base_value::length): Delete. |
|
2335 * ov-base.h (octave_base_value::rows, octave_base_value::columns, |
|
2336 octave_base_value::length): Define here. All return -1 if not |
|
2337 defined in a derived class. |
|
2338 |
|
2339 * data.cc (Fis_matrix): Also return true if the arg is a range. |
|
2340 |
3209
|
2341 Tue Nov 3 09:40:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2342 |
|
2343 * data.cc (Fis_bool): New function. |
|
2344 Also add alias for islogical. |
|
2345 |
|
2346 * ov.h (octave_value::is_bool_type): New function. |
|
2347 * ov-base.h (octave_base_value::is_bool_type): Likewise. |
|
2348 * ov-bool.h (octave_bool::is_bool_type): Likewise. |
|
2349 * ov-bool-mat.h (octave_bool_matrix::is_bool_type): Likewise. |
|
2350 |
3206
|
2351 Mon Nov 2 13:36:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2352 |
3208
|
2353 * lex.l (handle_close_brace): Also handle case of ']' followed by |
|
2354 other assignment ops (+=, -=, ...). |
|
2355 |
|
2356 * pt-assign.cc (tree_simple_assignment::rvalue): Correctly handle |
|
2357 return value and printing for operators other than `='. |
|
2358 (tree_multi_assignment::rvalue): Likewise. |
|
2359 |
|
2360 * pt-assign.h (tree_multi_assignment::etype): New data member. |
|
2361 * pt-assign.cc (tree_multi_assignment::rvalue): Use it instead of |
|
2362 assuming `='. |
|
2363 (tree_multi_assignment::oper): New function. |
|
2364 * pt-pr-code.cc (tree_print_code::visit_multi_assignment): Use |
|
2365 it instead of always printing `='. |
|
2366 * parse.y (make_assign_op): Pass expression type to |
|
2367 tree_multi_assignment constructor. |
|
2368 |
3206
|
2369 * Makefile.in (stmp-pic): New target. |
|
2370 ($(PICOBJ)): Depend on stmp-pic, not pic. |
|
2371 (clean): Delete stmp-pic. |
|
2372 |
|
2373 Sun Nov 1 23:24:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2374 |
|
2375 * mappers.cc (install_mapper_functions): Add alias for isfinite. |
|
2376 |
|
2377 Sat Oct 31 08:46:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2378 |
|
2379 * data.cc (Fisnumeric): New function. |
|
2380 |
3203
|
2381 Fri Oct 30 08:39:30 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2382 |
3205
|
2383 * oct-lvalue.cc (octave_lvalue::do_unary_op): Make it work for |
|
2384 indexed ops too. |
|
2385 * ov.cc (octave_value::unary_op_to_assign_op): New function. |
|
2386 (octave_value::do_non_const_unary_op): New function for indexed ops. |
|
2387 |
3204
|
2388 * parse.y (LEFTDIV_EQ, ELEFTDIV_EQ): New tokens. |
|
2389 (assign_expr): Add rules for them. |
|
2390 (make_assign_op): Handle them here too. |
|
2391 * lex.l: Recognize them. |
|
2392 * ov.h (octave_value::assign_op): Add ldiv_eq and el_ldiv_eq. |
|
2393 * ov.cc (octave_value::assign_op_as_string): Ditto. |
|
2394 (octave_value::op_eq_to_binary_op): Ditto. |
|
2395 (octave_value::assign): Handle OP= style operators with brute force. |
|
2396 (octave_value::simple_assign): New function. |
|
2397 |
3203
|
2398 * parse.y (matrix): Dont' forget to reset |
|
2399 lexer_flags.looking_at_matrix_or_assign_lhs. |
|
2400 |
|
2401 * oct-lvalue.cc (octave_lvalue::assign): Don't call change |
|
2402 function if error occurs. |
|
2403 (octave_lvalue::do_unary_op): If we have an index, fail with message. |
|
2404 |
3202
|
2405 Thu Oct 29 09:27:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2406 |
3203
|
2407 * ov.cc (do_binary_op): Protect against invalid type conversions. |
|
2408 (try_assignment_with_conversion): Likewise. |
|
2409 (do_unary_op): Likewise. |
|
2410 |
|
2411 * ov.h (OV_UNOP_FN, OV_UNOP_OP, OV_UNOP_FN_OP): New macros. |
|
2412 Use them to define not, uminus, transpose, hermitian functions |
|
2413 and operators ! and -. |
|
2414 (OV_BINOP_FN, OV_BINOP_OP, OV_BINOP_FN_OP): New macros. |
|
2415 Use them to define add, sub, mul, div, pow, ldiv, lshift, rshift, |
|
2416 lt, le, eq, ge, gt, ne, el_mul, el_div, el_pow, el_ldiv, el_and, |
|
2417 el_or, struct_ref, functions and operators <, <=, ==, >=, >, !=, |
|
2418 +, -, *, and /. |
|
2419 |
|
2420 * ops.h (CONVDECLX): New macro. |
|
2421 * ov-base.cc (matrix_conv, complex_matrix_conv, string_conv): |
|
2422 Use it to declare these functions. |
|
2423 |
|
2424 * ops.h (CONVDECL, INSTALL_WIDENOP): |
|
2425 Prefix function name with `oct_conv_'. |
|
2426 (INSTALL_BINOP, BINOPDECL): Prefix function name with `oct_binop_'. |
|
2427 (INSTALL_ASSIGNOP, INSTALL_ASSIGNANYOP, ASSIGNOPDECL): |
|
2428 Prefix function name with `oct_assignop_'. |
|
2429 (UNOPDECL, DEFNCUNOP_METHOD, INSTALL_UNOP, INSTALL_NCUNOP): |
|
2430 Prefix function name with `oct_unop_'. |
|
2431 |
|
2432 * ov-str-mat.cc (default_numeric_conversion_function): |
|
2433 Return 0 if conversion fails. |
|
2434 |
|
2435 * parse.y (make_prefix_op, make_postfix_op): Use |
|
2436 octave_value::unary_op enum. |
|
2437 |
|
2438 * pt-unop.cc (tree_prefix_expression::rvalue): Use new unary_op |
|
2439 functions from octave_value and octave_lvalue classes. |
|
2440 (tree_prefix_expression::rvalue): Likewise. |
|
2441 |
|
2442 * pt-unop.cc (tree_unary_expression::oper): Move here. |
|
2443 (tree_prefix_expression::oper, tree_postfix_expression): From here. |
|
2444 |
|
2445 * pt-unop.h (tree_prefix_expression, tree_postfix_expression): |
|
2446 Delete enums. |
|
2447 (tree_unary_expression): Use octave_value::unary_op enum. |
|
2448 * parse.y (make_prefix_op, make_postfix_op): Likewise. |
|
2449 |
|
2450 * oct-lvalue.h (octave_lvalue::do_unary_op): New function. |
|
2451 (octave_lvalue::increment, octave_lvalue::decrement): Delete. |
|
2452 |
|
2453 * ov-typeinfo.h (octave_value_typeinfo::non_const_unary_ops): |
|
2454 New data member. |
|
2455 * ov-typeinfo.h (octave_value_typeinfo::lookup_non_const_unary_op): |
|
2456 New function. |
|
2457 * ov-typeinfo.cc (octave_value_typeinfo::register_non_const_unary_op): |
|
2458 New function. |
|
2459 (octave_value_typeinfo::do_register_non_const_unary_op): Ditto. |
|
2460 (octave_value_typeinfo::do_lookup_non_const_unary_op): Ditto. |
|
2461 |
|
2462 * ov.cc (octave_value::do_non_const_unary_op): New function. |
|
2463 |
|
2464 * Makefile.in (OP_XSRC): Add op-chm.cc and op-range.cc to the list. |
|
2465 |
|
2466 * OPERATORS/op-str-str.cc: Define string matrix unary operators here. |
|
2467 (install_str_str_ops): Install them here. |
|
2468 * ov-bool-mat.h (octave_bool_matrix::transpose, |
|
2469 octave_bool_matrix_value::hermitian): Delete. |
|
2470 |
|
2471 * OPERATORS/op-chm.cc: New file. Define char matrix unary operators. |
|
2472 (install_chm_ops): Install them here. |
|
2473 * ov-ch-mat.h (octave_char_matrix::transpose, |
|
2474 octave_char_matrix_value::hermitian): Delete. |
|
2475 * ops.cc (install_ops): Call install_chm_ops. |
|
2476 |
|
2477 * OPERATORS/op-bm-bm.cc: Define bool matrix unary operators here. |
|
2478 (install_bm_bm_ops): Install them here. |
|
2479 * ov-bool-mat.h (octave_bool_matrix::transpose, |
|
2480 octave_bool_matrix_value::hermitian): Delete. |
|
2481 |
|
2482 * ov-bool.h (octave_bool::not, octave_bool::uminus, |
|
2483 octave_bool::transpose, octave_bool::hermitian): Delete. |
|
2484 |
|
2485 * OPERATORS/op-cs-cs.cc: Define complex scalar unary operators here. |
|
2486 (install_cs_cs_ops): Install them here. |
|
2487 * ov-complex.h (octave_complex::not, octave_complex::uminus, |
|
2488 octave_complex::transpose, octave_complex::hermitian): Delete. |
|
2489 |
|
2490 * OPERATORS/op-cm-cm.cc: Define complex matrix unary operators here. |
|
2491 (install_cm_cm_ops): Install them here. |
|
2492 * ov-cx-mat.h (octave_complex_matrix::not, |
|
2493 octave_complex_matrix::uminus, octave_complex_matrix::transpose, |
|
2494 octave_complex_matrix::hermitian): Delete. |
|
2495 |
|
2496 * OPERATORS/op-m-m.cc: Define matrix unary operators here. |
|
2497 (install_m_m_ops): Install them here. |
|
2498 * ov-re-mat.h (octave_matrix::not, octave_matrix::uminus, |
|
2499 octave_matrix::transpose, octave_matrix::hermitian): Delete. |
|
2500 |
|
2501 * OPERATORS/op-range.cc: New file. Define range unary operators. |
|
2502 (install_range_ops): Install them here. |
|
2503 * ov-range.h (octave_range::not, octave_range::uminus, |
|
2504 octave_range::transpose, octave_range::hermitian): Delete. |
|
2505 * ops.cc (install_ops): Call install_range_ops. |
|
2506 |
|
2507 * OPERATORS/op-s-s.cc: Define scalar unary operators here. |
|
2508 (install_s_s_ops): Install them here. |
|
2509 * ov-scalar.h (octave_scalar::not, octave_scalar::uminus, |
|
2510 octave_scalar::transpose, octave_scalar::hermitian): Delete. |
|
2511 |
|
2512 * ops.h (INSTALL_UNOP, CAST_UNOP_ARG, UNOPDECL, DEFUNOPX, DEFUNOP, |
|
2513 DEFUNOP_OP, DEFUNOP_FN): New macros. |
|
2514 |
|
2515 * ov.h (unary_op_fcn): New typedef. |
|
2516 (octave_value::unary_op): New enum. |
|
2517 * ov.cc (octave_value::octave_value): New function. |
|
2518 |
|
2519 * ov.h (octave_value::not, octave_value::uminus, |
|
2520 octave_value::transpose, octave_value::hermitian, |
|
2521 octave_value::increment, octave_value::decrement): Delete. |
|
2522 |
|
2523 * ov-base.cc (octave_base_value::not, octave_base_value::uminus, |
|
2524 octave_base_value::transpose, octave_base_value::hermitian, |
|
2525 octave_base_value::increment, octave_base_value::decrement): Delete. |
|
2526 |
|
2527 * ov.cc (gripe_unary_op): New function. |
|
2528 (do_unary_op): New function. |
|
2529 * ov-typeinfo.h (octave_value_typeinfo::unary_ops): |
|
2530 New data member. |
|
2531 * ov-typeinfo.cc (octave_value_info::register_unary_op, |
|
2532 octave_value_info::do_register_unary_op, |
|
2533 octave_value_info::lookup_unary_op, |
|
2534 octave_value_info::do_lookup_unary_op): |
|
2535 New functions. |
|
2536 |
3202
|
2537 * ov-list.cc (Fsplice): Use new octave_value::int_value function here. |
|
2538 (octave_list::do_index_op): Likewise. |
|
2539 (octave_list::assign): Likewise. |
|
2540 * toplev.cc (Fquit): Likewise. |
|
2541 * syscalls.cc (Fwaitpid): Likewise. |
|
2542 (Ffcntl): Likewise. |
|
2543 * file-io.cc (do_fread): Likewise. |
|
2544 (do_fwrite): Likewise. |
|
2545 * data.cc (make_diag): Likewise. |
|
2546 (Fsize): Likewise. |
|
2547 (get_dimensions): Likewise. |
|
2548 (Flinspace): |
|
2549 |
|
2550 * ov-base.cc (octave_base_value::int_value): New function. |
|
2551 (octave_base_value::nint_value): Ditto. |
|
2552 * ov.h (octave_value::int_value): Ditto. |
|
2553 (octave_value::nint_value): Ditto. |
|
2554 |
|
2555 * ov-list.cc (octave_list::assign): Fix off-by-one error. |
|
2556 |
3196
|
2557 Wed Oct 28 11:01:37 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2558 |
3202
|
2559 * load-save.cc (read_mat_ascii_data): Try harder to convert file |
|
2560 name to valid variable name. |
|
2561 |
|
2562 * data.cc (Fisempty, Fis_matrix): New functions. |
|
2563 |
|
2564 * ov-str-mat.h (octave_char_matrix_str::is_matrix_type): New function. |
|
2565 |
3196
|
2566 * OPERATORS/op-list.cc: New file. |
|
2567 * Makefile.in (OP_XSRC): Add it to the list. |
|
2568 |
|
2569 * ov-list.cc (octave_list::assign): New function. |
|
2570 |
|
2571 * ov-typeinfo.h (octave_value_typeinfo::assignany_ops): |
|
2572 New data member. |
|
2573 * ov-typeinfo.cc (octave_value_info::register_assignany_op, |
|
2574 octave_value_info::do_register_assignany_op, |
|
2575 octave_value_info::lookup_assignany_op, |
|
2576 octave_value_info::do_lookup_assignany_op): |
|
2577 New functions. |
|
2578 * ov.cc (octave_value::try_assignment (octave_value::assign_op, |
|
2579 const octave_value_list&, const octave_value&)): If no assignment |
|
2580 operator for particular RHS type exists, try finding one for |
|
2581 generic octave_value as RHS type. |
|
2582 * ops.h (DEFASSIGNANYOP_FN): New macro. |
|
2583 |
|
2584 * ov-list.cc (Fsplice): New function. |
|
2585 * oct-obj.cc (octave_value_list::splice): New function. |
|
2586 |
|
2587 * ov.cc (Vresize_on_range_error): No longer static. |
|
2588 * ov.h (Vresize_on_range_error): Provide extern declaration. |
|
2589 |
|
2590 * oct-procbuf.cc (symbols_of_oct_procbuf): Don't declare static. |
|
2591 |
|
2592 * data.cc (Flength): New function. |
|
2593 * ov.h (octave_value::length): New virtual function. |
|
2594 * ov-base.cc (octave_base_value::length): New function. |
|
2595 (octave_base_value::rows, octave_base_value::columns): Move |
|
2596 definitions here, from ov-base.h. Don't return -1. Instead, |
|
2597 gripe about wrong argument type. |
|
2598 * ov-bool-mat.h (octave_bool_matrix::length): New function. |
|
2599 * ov-bool.h (octave_bool::length): Ditto. |
|
2600 * ov-ch-mat.h (octave_char_matrix::length): Ditto. |
|
2601 * ov-complex.h (octave_complex::length): Ditto. |
|
2602 * ov-cx-mat.h (octave_complex_matrix::length): Ditto. |
|
2603 * ov-list.h (octave_list::length): Ditto. |
|
2604 * ov-range.h (octave_range::length): Ditto. |
|
2605 * ov-re-mat.h (octave_matrix::length): Ditto. |
|
2606 * ov-scalar.h (octave_scalar::length): Ditto. |
|
2607 |
|
2608 Tue Oct 27 22:19:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2609 |
|
2610 * ov-list.cc (octave_list::print_raw): Handle case of empty list. |
|
2611 (octave_list::print_name_tag): Likewise. |
|
2612 |
|
2613 * octave.cc (intern_argv): Built-in variable argv is now a list of |
|
2614 strings instead of a string vector. |
|
2615 Always bind argv, making it an empty list if there are no args. |
|
2616 |
|
2617 Mon Oct 26 08:41:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2618 |
|
2619 * xdiv.cc (mx_leftdiv_conform): Explicitly declare args to be |
|
2620 passed as references to const objects. Fix explicit instantiation |
|
2621 requests to match. |
|
2622 (mx_div_conform): Likewise. |
|
2623 |
|
2624 * pt-unop.h (tree_prefix_expression): Reorder constructor args to |
|
2625 put those with default values last. |
|
2626 (tree_postfix_expression): Likewise. |
|
2627 * parse.y: Change all callers. |
|
2628 |
3192
|
2629 Fri Oct 23 12:07:32 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2630 |
3196
|
2631 * utils.cc (Ffile_in_loadpath): New function. |
|
2632 |
|
2633 * defaults.cc (Vload_path, Vdefault_load_path): Now static. |
|
2634 |
|
2635 * help.cc (simple_help): Use Vload_path_dir_path here instead of |
|
2636 trying to reconstruct it from Vload_path. |
|
2637 * fn-cache.cc (octave_fcn_file_name_cache::do_list): Likewise. |
|
2638 (octave_fcn_file_name_cache::update): Likewise. |
|
2639 |
|
2640 * defaults.cc (octave_loadpath): Construct Vload_path_dir_path |
|
2641 using Vdefault_load_path. |
|
2642 (set_default_path): Likewise. |
|
2643 |
|
2644 * defaults.h, defaults.cc (maybe_add_default_load_path): Delete. |
|
2645 |
3192
|
2646 * defaults.cc (Vdefault_load_path): New static variable. |
|
2647 (set_default_path): Set it. |
|
2648 (maybe_add_default_load_path): Use it. |
|
2649 (symbols_of_defaults): Add DEFCONST for DEFAULT_LOADPATH. |
|
2650 Thanks to Rafael Laboissiere <rafael@icp.inpg.fr>. |
|
2651 |
|
2652 * defaults.cc (set_default_path): If OCTAVE_PATH is set in the |
|
2653 environment, call maybe_add_default_load_path on it. |
|
2654 |
|
2655 Tue Oct 20 20:58:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2656 |
|
2657 * defaults.cc (maybe_add_default_load_path): If LOADPATH contains |
|
2658 an embedded "::", insert the default path there too. |
|
2659 |
3189
|
2660 Fri Oct 16 00:52:15 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2661 |
|
2662 * parse.y (in_matrix_or_assign_lhs): New subroutine for lexical |
|
2663 feedback. |
|
2664 (matrix): Use it. |
|
2665 (assign_lhs): Ditto. |
|
2666 * lex.h (lexical_feedback::looking_at_matrix_or_assign_lhs): New |
|
2667 data member. |
|
2668 * lex.l (handle_identifier): Use it to handle keywords like `cd' |
|
2669 as variables in contexts like [ab, cd] = foo (). |
|
2670 |
|
2671 * ov-str-mat.h |
|
2672 (octave_char_matrix_str::octave_char_matrix_str (char c)): |
|
2673 New constructor. |
|
2674 * ov-ch-mat.h (octave_char_matrix::octave_char_matrix (char c)): |
|
2675 New constructor. |
|
2676 * ov.cc (octave_value::octave_value (char c): New constructor. |
|
2677 |
|
2678 * pt-loop.cc (tree_simple_for_command::eval): Handle case of RHS |
|
2679 as string. |
|
2680 |
|
2681 Thu Oct 15 00:56:47 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2682 |
|
2683 * DLD-FUNCTIONS/rand.cc: Declare Fortran subroutines as returning |
|
2684 int, not int*. |
|
2685 |
|
2686 Wed Oct 14 23:51:31 1998 Georg Thimm <thimm@idiap.ch> |
|
2687 |
|
2688 * load-save.cc (Vcrash_dumps_octave_core): New static variable. |
|
2689 (save_user_variables): Only save variables if |
|
2690 Vcrash_dumps_octave_core is true. |
|
2691 (symbols_of_load_save): Add DEFVAR for it here. |
|
2692 (crash_dumps_octave_core): New function. |
|
2693 * octave.cc (maximum_braindamage): Bind crash_dumps_octave_core to |
|
2694 0.0 here. |
|
2695 |
|
2696 Tue Oct 13 22:05:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2697 |
|
2698 * input.cc (read_readline_init_file): New function. |
|
2699 |
|
2700 Thu Oct 8 13:47:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2701 |
|
2702 * oct-procbuf.h (octave_procbuf::wstatus): New data member. |
|
2703 Initialize in constructors. |
|
2704 (octave_procbuf::wait_status): New member function. |
|
2705 * oct-procbuf.cc (octave_procbuf::sys_close): Use class data |
|
2706 member wstatus, not local variable. |
|
2707 * procstream.cc (procstreambase::close): Don't call sys_close directly. |
|
2708 Get subprocess exit status by calling wait_status for our procbuf. |
|
2709 * pt-plot.cc (close_plot_stream): Send "quit" command to gnuplot |
|
2710 before deleting plot_stream. |
|
2711 |
|
2712 |
|
2713 Thu Oct 1 22:39:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2714 |
|
2715 * data.cc (Fis_complex): New function. |
|
2716 |
3185
|
2717 Fri Sep 25 11:50:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2718 |
|
2719 * load-save.cc (write_header): Rename from write_binary_header. |
|
2720 Also write header for Octave ASCII files. |
|
2721 |
|
2722 * load-save.cc (Fsave): Implement -append option. |
|
2723 |
|
2724 * defaults.cc (Frehash): New function. |
|
2725 |
|
2726 Fri Sep 25 11:50:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2727 |
|
2728 * help.cc (help_from_info): Improve error message in case that |
|
2729 info doesn't work. |
|
2730 |
3180
|
2731 Thu Sep 24 10:48:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2732 |
3185
|
2733 * Makefile.in (DLD_XSRC): Replace qzval.cc with qz.cc |
|
2734 |
|
2735 * DLD-FUNCTIONS/balance.cc: Update from A. S. Hodel |
|
2736 <scotte@eng.auburn.edu>. |
|
2737 |
|
2738 * DLD-FUNCTIONS/qz.cc: New file. |
|
2739 |
|
2740 * DLD-FUNCTIONS/qzval.cc: Delete. |
|
2741 |
3180
|
2742 * parse.y (plot_command1): Don't allow it to be empty. |
|
2743 (plot_command): Handle simple `PLOT' and `PLOT ranges' as special |
|
2744 cases here. |
|
2745 |
|
2746 Wed Sep 23 21:10:08 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2747 |
|
2748 * lex.l: Change <MATRIX>{SNLCMT}*\n{SNLCMT}* pattern |
|
2749 to <MATRIX>{S}*{COMMENT}{SNLCMT}* | <MATRIX>{S}*{NL}{SNLCMT}*. |
|
2750 |
|
2751 Fri Sep 4 10:50:00 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2752 |
|
2753 * file-io.cc (Ffwrite): Fix doc string. |
|
2754 |
|
2755 Wed Sep 2 16:22:23 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2756 |
|
2757 * input.cc (match_sans_spaces): Make it work. |
|
2758 |
|
2759 * toplev.cc (quit): Require nargout == 0. |
|
2760 |
|
2761 * input.cc (get_user_input): Only try matching "exit", "quit", and |
|
2762 "return" if debugging. |
|
2763 |
|
2764 Tue Sep 1 12:50:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2765 |
|
2766 * octave.cc: Use -H as single character equivalent of --no-history. |
|
2767 |
|
2768 Sat Aug 29 12:23:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2769 |
|
2770 * oct-obj.cc (octave_value_list::make_argv): If some values are |
|
2771 string vectors, insert all the elements, not just the first. |
|
2772 |
|
2773 Tue Aug 18 16:39:50 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2774 |
|
2775 * oct-stream.cc (octave_base_stream::do_gets): Accept last line of |
|
2776 file even if it doesn't end in a newline character. |
|
2777 |
|
2778 Tue Aug 18 16:25:49 1998 Mumit Khan <khan@xraylith.wisc.edu> |
|
2779 |
|
2780 * xdiv.cc (mx_leftdiv_conform, mx_div_conform): Instantiate correct |
|
2781 templates. |
|
2782 |
|
2783 Thu Jul 30 00:37:43 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2784 |
|
2785 * pt-loop.cc (tree_for_command::eval): Check for range first. |
|
2786 If error occurs when extracting matrix value, return early. |
|
2787 Don't bother to check for string type. |
|
2788 |
|
2789 * ov-ch-mat.h (octave_char_matrix::is_real_matrix): New function. |
|
2790 |
|
2791 Tue Jun 23 15:09:54 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2792 |
|
2793 * parse.y (clear_current_script_file_name): New function. |
|
2794 (parse_fcn_file): Bind current_script_file_name while script is |
|
2795 executing. Use unwind_protect to clear it once the script is |
|
2796 finished. |
|
2797 |
|
2798 * pt-plot.cc (Fgraw): New function. |
|
2799 |
3178
|
2800 Mon Jun 22 22:13:38 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2801 |
|
2802 * variables.cc (is_valid_function): Provide version that takes |
|
2803 function name as string. |
|
2804 |
|
2805 * parse.y (binary_expr): Fix thinko that resulted in incorrect |
|
2806 evaluation of -x^y. Thanks to Richard Allan Holcombe |
|
2807 <raholcom@unity.ncsu.edu>. |
|
2808 (feval): Don't attempt to copy nonexistent arg names. |
|
2809 |
|
2810 Mon Jun 22 21:35:50 1998 Richard Allan Holcombe <raholcom@unity.ncsu.edu> |
|
2811 |
|
2812 * xpow.cc (xpow): Improve efficiency for matrix^(scalar int) case. |
|
2813 |
|
2814 Thu Jun 4 12:42:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2815 |
|
2816 * ov-usr-fcn.cc (octave_user_function::octave_all_va_args): |
|
2817 If num_args_passed < num_named_args, create zero length list. |
|
2818 |
3176
|
2819 Thu May 14 16:23:15 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2820 |
|
2821 * DLD-FUNCTIONS/getrusage.cc: Include sys/types.h too. |
|
2822 |
|
2823 Mon May 11 00:38:45 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2824 |
|
2825 * pager.cc (Fdiary): Don't forget to set write_to_diary file if |
|
2826 just given a file name. |
|
2827 |
|
2828 * input.cc (octave_gets): Only send new line character to |
|
2829 octave_diary if current_input_line is empty or doesn't already end |
|
2830 with a new line character.. |
|
2831 Don't send input from function files or scripts to octave_diary. |
|
2832 |
3174
|
2833 Sun May 3 19:54:38 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2834 |
|
2835 * lex.l (reset_parser): Also call yyrestart if forced_interactive |
|
2836 is true, but not if input_from_startup_file is true. |
|
2837 |
|
2838 Tue Apr 28 14:06:20 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2839 |
|
2840 * oct-procbuf.cc (Vkluge_procbuf_delay): New static variable. |
|
2841 (kluge_procbuf_delay): New function. |
|
2842 (symbols_of_oct_procbuf): New function. |
|
2843 (octave_procbuf::open): Delay Vkluge_procbuf_delay microseconds |
|
2844 after forking. |
|
2845 |
|
2846 Thu Apr 23 15:41:08 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2847 |
|
2848 * defaults.cc (Vload_path_dir_path): New variable. |
|
2849 * utils.cc (file_in_path): Use it. |
|
2850 |
|
2851 * utils.cc (search_path_for_file): Undo previous change. |
|
2852 (file_in_path): Undo previous change. |
|
2853 * defaults.cc (loadpath): Undo previous change. Tilde expansion |
|
2854 is once again handled correctly by the code in |
|
2855 liboctave/pathsearch.cc. |
|
2856 |
|
2857 Mon Apr 20 21:50:34 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2858 |
|
2859 * data.cc (get_dimensions): Allow zeros ([], 3) to work, for |
|
2860 compatibility with Matlab. |
|
2861 |
|
2862 * dynamic-ld.cc [WITH_DL && ! HAVE_DLFCN_H]: Add declarations for |
|
2863 dlopen, dlerror, dlsym, and dlclose. |
|
2864 |
|
2865 * octave.gperf: Handle __FILE__ and __LINE__. |
|
2866 * lex.l (is_keyword): Likewise. |
|
2867 * Makefile.in (oct-gperf.h): Pass -D option to gperf. |
|
2868 Postprocess output of gperf to convert name of static variable |
|
2869 from lookup to gperf_lookup, to avoid conflict with our function |
|
2870 of the same name defined in variables.cc. |
|
2871 |
3168
|
2872 Sat Apr 18 20:17:10 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2873 |
|
2874 * help.cc (USE_GNU_INFO): Delete uses of this macro. |
|
2875 |
3167
|
2876 Thu Apr 16 01:00:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2877 |
|
2878 * dynamic-ld.cc: Only include dlfcn.h if HAVE_DLFCN_H. |
|
2879 |
3165
|
2880 Wed Apr 15 01:03:05 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2881 |
|
2882 * input.cc (Vlast_prompt_time): New global variable. |
|
2883 (octave_gets): Set it. |
3166
|
2884 * ov-fcn.h (octave_function::time_checked): New virtual function |
|
2885 (octave_function::mark_fcn_file_up_to_date): Ditto. |
3165
|
2886 * ov-usr-fcn.h (octave_user_function::time_checked): New function. |
|
2887 (octave_user_function::mark_fcn_file_up_to_date): Ditto. |
|
2888 (octave_user_function::t_checked): New data member. |
|
2889 * variables.cc (symbol_out_of_date): Only check file time stamp if |
|
2890 a prompt has been printed since the last time check. |
|
2891 |
|
2892 * pt-plot.h, pt-plot.cc (subplot_axes): New class. |
|
2893 (subplot): Handle axes. |
|
2894 (Vgnuplot_command_axes): New static variable. |
|
2895 (gnuplot_command_axes): New function. |
|
2896 (symbols_of_pt_plot): DEFVAR gnuplot_command_axes. |
|
2897 * pt-walk.h (tree_walker::visit_subplot_axes): New virtual function. |
|
2898 * parse.y (plot_options): Handle axes. |
|
2899 * lex.l (plot_axes_token): New function. |
|
2900 (is_keyword): Use it. |
|
2901 (is_plot_keyword): Recognize "axes" and "axis". |
|
2902 * lex.h (class lexical_feedback): New field, in_plot_axes. |
|
2903 (lexical_feedback::init): Reset it. |
|
2904 |
|
2905 Tue Apr 14 23:32:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2906 |
|
2907 * parse.y (parse_fcn_file): New arg, force_script. Change callers. |
|
2908 |
3164
|
2909 Fri Apr 10 11:01:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2910 |
|
2911 * help.cc (type): Also print values of variables. |
|
2912 |
3162
|
2913 Wed Apr 8 01:00:58 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2914 |
3164
|
2915 * pr-output.cc (set_format): Set scale to 1.0 if all elements are |
|
2916 int or inf or nan. |
|
2917 |
3162
|
2918 * parse.y (Vwarn_future_time_stamp): New variable. |
|
2919 (symbols_of_parse): Add DEFVAR for it. |
|
2920 (warn_future_time_stamp): New function. |
|
2921 (frob_function_def): Maybe warn about files with future time stamps. |
|
2922 |
|
2923 Thu Apr 2 20:43:45 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2924 |
|
2925 * pt-arg-list.cc (tree_argument_list::convert_to_const_vector): In |
|
2926 error messages, print element numbers starting with 1, not 0. |
|
2927 |
|
2928 Sat Mar 28 15:25:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2929 |
|
2930 * toplev.cc (clean_up_for_exit): New function. |
|
2931 (clean_up_and_exit): Use it. |
|
2932 * sighandlers.cc (my_friendly_exit): Call it instead of |
|
2933 clean_up_and_exit, then do default action for signal. |
|
2934 |
|
2935 * sighandlers.cc (octave_new_handler): Call my_friendly_exit with |
|
2936 signal set to SIGABRT if it is defined, or -1 otherwise. |
|
2937 |
|
2938 * error.cc (verror): Fix thinko in attempt to skip `error: ' tag |
|
2939 when buffering error messages. |
|
2940 * pt-except.cc (tree_try_catch::eval): Reset buffer_error_messages |
|
2941 here if just discarding unwind_protect frame. |
|
2942 |
|
2943 Wed Mar 18 12:35:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2944 |
|
2945 * xpow.cc (elem_xpow): For real-scalar .^ matrix case, result is |
|
2946 complex only if real-scalar is negative and matrix has some |
|
2947 non-integer values. |
|
2948 |
|
2949 Tue Mar 17 17:47:50 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2950 |
|
2951 * pt-plot.cc (Vgnuplot_command_plot, Vgnuplot_command_replot, |
|
2952 Vgnuplot_command_splot, Vgnuplot_command_using, |
|
2953 Vgnuplot_command_with, Vgnuplot_command_title, |
|
2954 Vgnuplot_command_end): New static variables. |
|
2955 (symbols_of_pt_plot): DEFVAR them. |
|
2956 (gnuplot_command_plot, gnuplot_command_replot, |
|
2957 gnuplot_command_splot, gnuplot_command_using, |
|
2958 gnuplot_command_with, gnuplot_command_title, |
|
2959 gnuplot_command_end): New functions. |
|
2960 (open_plot_stream, send_to_plot_stream, tree_plot_command::eval, |
|
2961 subplot_using::print, subplot_style::print, subplot::print, |
|
2962 do_external_plotter_cd, Fgset, Fgshow): Use them instead of the |
|
2963 GPLOT_CMD_PLOT, GPLOT_CMD_REPLOT, GPLOT_CMD_SPLOT, |
|
2964 GPLOT_CMD_USING, GPLOT_CMD_WITH, GPLOT_CMD_TITLE, and |
|
2965 GPLOT_CMD_END macros. |
|
2966 |
3160
|
2967 Fri Feb 27 12:25:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2968 |
|
2969 * help.cc (additional_help_message): Fix www address. |
|
2970 |
|
2971 Tue Feb 24 00:42:59 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2972 |
|
2973 * help.cc (simple_help): Put additional help message first. |
|
2974 (additional_help_message): Add information about web site and |
|
2975 mailing list. |
|
2976 |
3156
|
2977 Fri Feb 20 00:41:06 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2978 |
|
2979 * pt-plot.cc (GPLOT_CMD_REPLOT): Clear before replot. |
|
2980 |
|
2981 * Makefile.in: Better handling of lib flags for linking. |
|
2982 |
|
2983 Thu Feb 19 21:14:30 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2984 |
|
2985 * pt-decl.cc (Vinitialize_global_values): New static variable. |
|
2986 (initialize_global_variables): New function. |
|
2987 (symbols_of_pt_decl): New function. |
|
2988 DEFVAR Vinitialize_global_values and initialize_global_variables. |
|
2989 (tree_global_command::do_init): If initialize_global_variables is |
|
2990 not true and the variable doesn't have an explicit initializer, don't |
|
2991 initialize it. If we are giving it a default value, use the value |
|
2992 of the variable defualt_global_variable_value. |
|
2993 * octave.cc (maximum_braindamage): Set default_global_variable_value |
|
2994 and initialize_global_variables to Matlab-compatible values. |
|
2995 |
|
2996 Wed Feb 18 04:35:31 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2997 |
|
2998 * DLD-FUNCTIONS/besselj.cc: Rename from bessel.cc. |
|
2999 * Makefile.in (DLD_XSRC): Likewise. |
|
3000 |
|
3001 * syscalls.cc (Fvfork): Delete. |
|
3002 |
|
3003 * oct-procbuf.cc: Just use fork. |
|
3004 |
|
3005 * parse.y (feval): Provide version that takes function name |
|
3006 separate from other args. |
|
3007 * parse.h: Declare it. |
|
3008 |
|
3009 * oct-procbuf.cc (octave_procbuf::open): Move declaration of |
|
3010 child_std_end outside of child scope and declare volatile. |
|
3011 |
|
3012 Mon Feb 16 15:04:28 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3013 |
|
3014 * parse.y: Include cstdio, for SEEK_SET. |
|
3015 |
3153
|
3016 Thu Feb 12 22:07:00 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3017 |
|
3018 * system.c: New file. |
|
3019 * Makefile.in (SOURCES): Add it to the list. |
|
3020 |
3148
|
3021 Fri Feb 6 01:23:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3022 |
|
3023 * oct-stream.cc (octave_base_stream::file_number): Rename from fileno. |
|
3024 Change all uses. |
|
3025 |
|
3026 * fsolve.cc (fsolve_option_table): Add missing & to function names. |
|
3027 |
3145
|
3028 Thu Feb 5 02:27:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3029 |
3147
|
3030 * dirfns.cc (Fls): If first attempt at reading process output |
|
3031 fails, sleep once and try again. |
|
3032 * toplev.cc (run_command_and_return_output): Likewise. |
|
3033 |
|
3034 * oct-procbuf.cc (octave_procbuf::open): Use vfork if it is available. |
|
3035 |
|
3036 * syscalls.cc (Fvfork): New function. |
|
3037 |
3145
|
3038 * ov-bool-mat.cc: Only declare assign function if |
|
3039 CXX_NEW_FRIEND_TEMPLATE_DECL is not defined. |
|
3040 |
|
3041 * ov-base.h, ov-bool-mat.h, ov-bool.h, ov-ch-mat.h, ov-complex.h, |
|
3042 ov-cx-mat.h, ov-range.h, ov-re-mat.h, ov-scalar.h: Handle default |
|
3043 args for *_value functions consistently. |
|
3044 |
|
3045 * symtab.cc (maybe_list_cmp_fcn): Declare args as void*, not |
|
3046 void**, then use X_CAST. |
|
3047 |
|
3048 * OPERATORS/op-s-cm.cc: Include mx-cm-s.h. |
|
3049 |
|
3050 * defun-int.h: Include ov-builtin.h, ov-mapper.h, and symtab.h. |
|
3051 (install_builtin_mapper, install_builtin_function, |
|
3052 install_builtin_variable) Use specific types rather than void * in |
|
3053 declaration. |
|
3054 * defun.cc (install_builtin_mapper, install_builtin_function, |
|
3055 install_builtin_variable): Likewise. Eliminate casts. |
|
3056 |
|
3057 * load-save.cc (read_binary_data, read_mat_file_header, |
|
3058 save_binary_data): Use X_CAST, not static_cast. |
|
3059 * unwind-prot.h (unwind_protect::save_ptr): Likewise. |
|
3060 * Map.cc (goodCHptr, index_to_CHptr, CHptr_to_index): Likewise. |
|
3061 * dynamic-ld.cc (octave_dlopen_dynamic_loder::resolve_reference): |
|
3062 Likewise. |
|
3063 |
|
3064 * pt-mat.cc (tm_const::operator bool ()): |
|
3065 (tm_row_const::operator bool ()): Likewise. |
|
3066 * oct-stream.cc (printf_value_cache::operator bool ()): Likewise. |
|
3067 (scanf_format_list::operator bool ()): Likewise. |
|
3068 (printf_format_list::operator bool ()): Likewise. |
|
3069 (octave_stream::operator bool ()): Likewise. |
|
3070 |
|
3071 Wed Feb 4 13:08:29 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3072 |
|
3073 * DLD-FUNCTIONS/minmax.cc: Include cmath, not oct-math.h. |
|
3074 |
|
3075 * syscalls.cc (Fdup2): Convert stream to actual system file id. |
|
3076 |
|
3077 * oct-stream.cc (octave_base_stream::fileno, octave_stream::fileno): |
|
3078 New functions. |
|
3079 |
3141
|
3080 Tue Feb 3 00:24:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3081 |
|
3082 * defaults.cc (exec_path): Append Vbin_dir to std_path. |
|
3083 |
|
3084 * octave.cc (initialize_pathsearch): Set TEXMFDBS, not TEXMF. |
|
3085 Look for OCTAVE_DB_PATH in environment. |
|
3086 Simplify using Vdata_dir and Vlibexec_dir. |
|
3087 |
|
3088 * defaults.h.in (Vdata_dir, Vlibexecdir): Declare new vars. |
|
3089 defaults.cc: Define them. |
|
3090 (set_default_data_dir, set_default_libexecdir): New functions. |
|
3091 (install_defaults): Call them. |
|
3092 |
|
3093 * defaults.h.in (OCTAVE_LIBEXECDIR): Define. |
|
3094 |
|
3095 Mon Feb 2 02:43:16 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3096 |
|
3097 * Makefile.in (install, uninstall): Use $(octlibdir), not $(libdir). |
|
3098 Use mk-libdir-link. |
|
3099 |
|
3100 * defaults.h.in (OCTAVE_OCTLIBDIR): Substitute value. |
|
3101 (Vlib_dir): Delete declaration. |
|
3102 * defaults.cc (Vlib_dir): Delete. |
|
3103 (set_default_lib_dir): Delete. |
|
3104 (install_defaults): Don't call set_default_lib_dir. |
|
3105 (set_default_info_prog): If oct_info_prog is empty, set default to |
|
3106 "info" -- we expect it to be somewhere in the user's path. |
|
3107 |
|
3108 * defun.h (DEFCONST, DEFCONSTX): Eliminate inst_as_fcn and chg_fcn |
|
3109 args. Always pass true for inst_as_fcn and 0 for chg_fcn to |
|
3110 DEFVAR when creating built-in values like `e' or `stderr' that can |
|
3111 be redefined. Change all uses. |
|
3112 |
|
3113 * help.cc (Ftype): Handle script files too. |
|
3114 (Fwhich): Likewise. |
|
3115 |
3136
|
3116 Sat Jan 31 00:00:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3117 |
|
3118 * ov-ch-mat.cc (octave_char_matrix::is_true): Make it work. |
|
3119 * ov-str-mat.h, ov-str-mat.cc (octave_char_matrix_str::is_true): |
|
3120 Delete. |
|
3121 |
|
3122 * load-save.cc (read_ascii_data): Allow strings of length 0. |
|
3123 If we don't find data on the first call, fail with error message. |
|
3124 (do_load): Pass count of items read to read_ascii_data. |
|
3125 Allow `load foo xyz' to work when foo contains only numbers. |
|
3126 |
|
3127 Fri Jan 30 23:46:42 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3128 |
|
3129 * ov-str-mat.h (octave_char_matrix_str::all): Delete. |
|
3130 (octave_char_matrix_str::any): Delete. |
|
3131 * ov-ch-mat.h (octave_char_matrix::all, octave_char_matrix::any): |
|
3132 Call charMatrix::all, charMatrix::any. |
|
3133 |
|
3134 Thu Jan 29 16:25:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3135 |
|
3136 * load-save.cc (read_mat_binary_data): Handle third digit of MOPT |
|
3137 as flag indicating row or column major ordering. |
|
3138 |
3131
|
3139 Wed Jan 28 00:18:17 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3140 |
|
3141 * DLD-FUNCTIONS/dassl.cc (lsode_option_table): |
|
3142 Add missing & to function names. |
|
3143 * DLD-FUNCTIONS/lsode.cc (lsode_option_table): Likewise. |
|
3144 * DLD-FUNCTIONS/quad.cc (quad_option_table): Likewise. |
|
3145 |
|
3146 * Makefile.in (oct-gperf.h): Add -G option to gperf. |
|
3147 |
|
3148 * load-save.cc (get_save_type): Add `UL' and `L' suffixes to large |
|
3149 constant values. For LS_INT, use <= and >= for comparison. |
|
3150 |
|
3151 Mon Jan 26 13:17:59 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3152 |
|
3153 * ov-usr-fcn.cc (Vmax_recursion_depth): New static variable. |
|
3154 (max_recursion_depth): New fucnction |
|
3155 (symbols_of_ov_usr_fcn): DEFVAR max_recursion_depth. |
|
3156 (octave_user_function::do_index_op): Check Vmax_recursion_depth. |
|
3157 |
3130
|
3158 Thu Jan 22 13:45:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3159 |
|
3160 * dynamic-ld.cc (make_dynamic_loader): Fix typo. |
|
3161 |
|
3162 Tue Jan 20 17:02:19 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3163 |
|
3164 * variables.cc (Fexist): If local symbol is undefined, check |
|
3165 global table. |
|
3166 |
|
3167 * pr-output.cc (pr_max_internal): Initial value for result is |
|
3168 -DBL_MAX, not DBL_MIN. |
|
3169 |
3125
|
3170 Thu Jan 8 11:54:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3171 |
|
3172 * xpow.cc (elem_xpow): If second arg of pow is complex, make sure |
|
3173 first arg is also complex. |
|
3174 |
|
3175 * symtab.cc (symbol_table::rename): Properly insert new item at |
|
3176 the front of the list to avoid losing the rest of the items. |
|
3177 |
|
3178 Thu Dec 11 23:30:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3179 |
|
3180 * variables.cc (Fclear): Increment index to skip -x arg. |
|
3181 |
3124
|
3182 Tue Dec 9 02:45:35 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3183 |
|
3184 * Makefile.in (INCLUDES): Don't forget Pix.h. |
|
3185 |
|
3186 * BaseSLList.cc: Don't include nonstandard libg++ header files. |
|
3187 |
3119
|
3188 Sun Nov 30 14:58:56 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3189 |
3124
|
3190 * pr-output.cc: Include cmath, not oct-math. |
|
3191 * sysdep.cc: Likewise. |
|
3192 |
3119
|
3193 * DLD-FUNCTIONS/bessel.cc: New file. |
|
3194 * Makefile.in (DLD_XSRC): Add it to the list. |
|
3195 |
3113
|
3196 Thu Nov 27 23:28:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3197 |
|
3198 * lex.l (handle_string): Constructor for string class takes |
|
3199 (size_t, char) args, not (char, size_t). |
|
3200 |
3111
|
3201 Wed Nov 26 00:39:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3202 |
|
3203 * Makefile.in (OCTAVE_LIBS): Include $(SPECIAL_MATH_LIB) just |
|
3204 ahead of -lcruft. |
|
3205 |
3110
|
3206 Thu Nov 20 15:16:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3207 |
|
3208 * octave.cc (maximum_braindamage): Bind implicit_num_to_str_ok to 1. |
|
3209 * pt-mat.cc (Vimplicit_num_to_str_ok): New static variable. |
|
3210 (implicit_num_to_str_ok): New function. |
|
3211 (symbols_of_pt_mat): DEFVAR implicit_num_to_str_ok. |
|
3212 (tm_row_const::some_str): New data member. |
|
3213 (tm_row_const::some_strings_p): New function. |
|
3214 (tm_row_const::init): Set some_str. |
|
3215 (tm_const::some_str): New data member. |
|
3216 (tm_const::some_strings_p): New function. |
|
3217 (tm_const::init): Set some_str. |
|
3218 (tree_matrix::eval): If Vimplicit_num_to_str_ok is true and some |
|
3219 of the elements are strings, force a string conversion before |
|
3220 returning. |
|
3221 |
|
3222 * parse.y (fold, finish_colon_expression, finish_matrix): |
|
3223 If an error occurs, return the original expression. |
|
3224 Use unwind_protect to restore error_state. |
|
3225 |
|
3226 * ov-ch-mat.h (octave_char_matrix::convert_to_str): Result is |
|
3227 char_matrix_str, not just char_matrix. |
|
3228 |
3107
|
3229 Wed Nov 19 02:05:40 1997 Mumit Khan <khan@dhaka.xraylith.wisc.edu> |
|
3230 |
|
3231 * DLD-FUNCTIONS/filter.cc: Don't include extern template decls if |
3109
|
3232 CXX_NEW_FRIEND_TEMPLATE_DECL is defined. |
3107
|
3233 * ov-cx-mat.cc: Likewise. |
|
3234 * ov-re-mat.cc: Likewise. |
|
3235 * ov-str-mat.cc: Likewise. |
|
3236 |
|
3237 * ov-cx-mat.h (octave_complex_matrix::decrement, |
|
3238 octave_complex_matrix): Use explicit Complex constructor. |
|
3239 |
|
3240 Wed Nov 19 00:08:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3241 |
|
3242 * pt-decl.cc (tree_global_command::do_init): Initialize global |
|
3243 values to `[]'. Only perform explicit initialization once. |
|
3244 |
3103
|
3245 Tue Nov 18 04:27:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3246 |
3105
|
3247 * pr-output.cc (Vfixed_point_format): New variable. |
|
3248 (fixed_point_format): New fucntion. |
|
3249 (symbols_of_pr_output): Add DEFVAR for fixed_point_format. |
|
3250 (set_real_matrix_format): Handle fixed point format |
|
3251 (set_complex_matrix_format): Handle fixed point format |
|
3252 (set_format): New arg, scale in Matrix, ComplexMatrix, Range versions. |
|
3253 (pr_scale_header): New function. |
|
3254 (octave_print_internal): Handle fixed point format in Matrix, |
|
3255 ComplexMatrix, and Range versions. |
|
3256 * octave.cc (maximum_braindamage): Set fixed_point_format to 1.0. |
|
3257 |
3103
|
3258 * utils.cc (do_string_escapes): Move here, from lex.l. |
|
3259 Arg is now const string& instead of char*. |
|
3260 Return new string object instead of modifying arg in place. |
|
3261 (Fdo_string_escapes): New function. |
|
3262 * lex.l (handle_string): Use new version of do_string_escapes. |
3105
|
3263 |
|
3264 * lex.l (Vbackslash_escapes): Delete. |
|
3265 (backslash_escapes): Delete. |
|
3266 (do_string_escapes): Undo previous change. |
|
3267 (eat_whitespace, eat_continuation): Undo previous change. |
|
3268 (handle_string): Undo previous change. |
|
3269 (symbols_of_lex): Undo previous change. |
|
3270 * octave.cc (maximum_braindamage): Undo previous change. |
3103
|
3271 |
3096
|
3272 Fri Nov 14 01:53:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3273 |
3100
|
3274 * parse.y (eval_string (const string&, bool, int&, int)): No |
|
3275 longer static. |
|
3276 * parse.h: Provide declaration. |
|
3277 * input.cc (get_user_input (const octave_value_list&, bool, int)): |
|
3278 New arg, nargout. Pass it to eval_string. |
|
3279 (keyboard): Pass nargout = 0 to get_user_input. |
|
3280 (input): Pass nargout to get_user_input. |
|
3281 |
3098
|
3282 * input.cc (get_user_input (const octave_value_list&, bool)): |
3100
|
3283 Return octave_value_list() if user enters `quit', `exit', or `return'. |
3098
|
3284 If debugging, let eval_string handle the printing chores and |
|
3285 reset error_state before asking for more input. |
|
3286 |
|
3287 * input.cc (Fkeyboard): Unconditionally turn on history here. |
|
3288 |
3096
|
3289 * lex.l (have_continuation, have_ellipsis_continuation): Declare |
|
3290 arg as bool, not int. Change callers. |
|
3291 |
|
3292 * lex.l (Vbackslash_escapes): New static variable. |
|
3293 (backslash_escapes): New function. |
|
3294 (do_string_escapes): Return immediately if ! Vbackslash_escapes. |
|
3295 (eat_whitespace, eat_continuation): Only call have_continuation if |
|
3296 Vbackslash_escapes. |
|
3297 (handle_string): Backslash is only special if Vbackslash_escapes. |
|
3298 (symbols_of_lex): Add DEFVAR for backslash_escapes. |
|
3299 * octave.cc (maximum_braindamage): Set backslash_escapes to 0. |
|
3300 |
3095
|
3301 Thu Nov 13 16:20:40 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3302 |
3096
|
3303 * variables.cc (Fexist): Also return 2 if NAME is a regular file |
|
3304 somewhere in the LOADPATH. |
|
3305 |
3095
|
3306 * data.cc (sumsq): Fix doc string. |
|
3307 |
|
3308 * parse.y (Fsource): Call parse_fcn_file, not parse_and_execute. |
|
3309 |
3092
|
3310 Tue Oct 7 16:51:01 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3311 |
|
3312 * defun-int.h (DEFINE_FUN_INSTALLER_FUN): Set installed to true |
|
3313 after installing the function. |
|
3314 |
3088
|
3315 Thu Sep 25 10:17:26 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3316 |
|
3317 * DLD-FUNCTIONS/filter.cc (Ffilter): Return second output value |
|
3318 even when called with only 3 arguments. |
|
3319 |
3086
|
3320 Mon Sep 22 16:44:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3321 |
|
3322 * DLD-FUNCTIONS/rand.cc (do_rand): Print error if first of two |
|
3323 args is a string but doesn't match "seed". |
3088
|
3324 (Frand, Frandn): Fix doc string. |
3086
|
3325 |
3081
|
3326 Mon Aug 25 10:42:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3327 |
|
3328 * input.cc (get_user_input): Return an empty string if the user |
|
3329 just types RET. |
|
3330 |
3079
|
3331 Thu Jul 31 22:59:04 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3332 |
|
3333 * lex.l <TEXT_FCN>: Ensure that we handle words that begin with |
|
3334 single or double quotes as strings. |
|
3335 |
3074
|
3336 Thu Jul 17 13:06:48 1997 Klaus Gebhardt <gebhardt@crunch.ikp.physik.th-darmstadt.de> |
|
3337 |
|
3338 * DLD-FUNCTIONS/rand.cc (Frand): Use F77_XFCN to call getsd, |
|
3339 setsd, setall, setcgn, dgenunf, and dgennor since they can call |
|
3340 XSTOPX. |
|
3341 |
3072
|
3342 Mon Jul 14 12:54:23 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3343 |
|
3344 * dynamic-ld.cc (octave_dynamic_loader::load_fcn_from_dot_oct_file): |
|
3345 If first attempt to load function fails, prepend and underscore |
|
3346 and try again. |
|
3347 |
|
3348 * Makefile.in (install-inc): If defaults.h, oct-conf.h, or |
|
3349 oct-gperf.h don't exist in the current directory, look in $(srcdir). |
|
3350 |
3068
|
3351 Mon Jul 7 21:14:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3352 |
|
3353 * DLD-FUNCTIONS/qr.cc (Fqr): Correctly handle nargout == 0. |
|
3354 |
3067
|
3355 Wed Jul 2 16:47:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3356 |
|
3357 * matherr.c: New file. Move matherr function here. |
|
3358 * sysdep.cc: From here. |
|
3359 * Makefile.in (DIST_SRC): Add matherr.c to the list. |
|
3360 |
|
3361 * error.cc (handle_message): Avoid bug in g++ snapshot. |
|
3362 |
3065
|
3363 Thu Jun 26 22:04:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3364 |
|
3365 * utils.cc (file_in_path): Add default load path to PATH arg if |
|
3366 it begins or ends with a colon. |
|
3367 |
3060
|
3368 Wed Jun 25 13:31:06 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3369 |
|
3370 * oct-lvalue.h (octave_lvalue::struct_elt_ref): Ensure val is unique. |
|
3371 |
|
3372 Fri Jun 20 12:33:35 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3373 |
|
3374 * toplev.cc (cmd_death_handler): New function. |
|
3375 (run_command_and_return_output): Insert pid of command in |
|
3376 octave_child_list along with pointer to cmd_death_handler so we |
|
3377 can get the exit status without having to block SIGCHLD. |
|
3378 (cleanup_iprocstream): Remove pid of command from octave_child_list. |
|
3379 |
3053
|
3380 Sun Jun 15 16:11:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3381 |
3054
|
3382 * OPERATORS/op-cs-s.cc (ldiv): Doh, v1 is complex, v2 is real. |
|
3383 |
3053
|
3384 * Makefile.in (DISTFILES): Add mkops to the list. |
|
3385 (dist): Correctly link files in DLD-FUNCTIONS, OPERATORS, and |
|
3386 TEMPLATE-INST subdirectories. |
|
3387 |
3040
|
3388 Fri Jun 6 04:30:57 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3389 |
3042
|
3390 * DLD-FUNCTIONS/npsol.cc, DLD-FUNCTIONS/qpsol.cc, |
|
3391 DLD-FUNCTIONS/fsqp.cc: Delete. |
|
3392 * Makefile.in (DLD_XSRC): Remove them from the list. |
|
3393 |
3040
|
3394 * utils.cc (search_path_for_file): New arg, do_tilde_expansion. |
|
3395 If TRUE, perform tilde expansion on path before searching. |
|
3396 (file_in_path): Call search_path_for_file with do_tilde_expansion |
|
3397 set to false, since we've already performed tilde expansion on the |
|
3398 load path. |
|
3399 |
|
3400 * defaults.cc (loadpath): Perform tilde expansion here. |
|
3401 |
3029
|
3402 Thu Jun 5 01:42:39 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3403 |
3034
|
3404 * Makefile.in: Make building of static library optional. |
3036
|
3405 (liboctave.$(SHLEXT_VER)): Add $(SONAME_FLAGS) to command. |
3034
|
3406 |
3033
|
3407 * dynamic-ld.cc (octave_shl_load_dynamic_loader::resolve_reference): |
|
3408 Call shl_findsym with type set to TYPE_UNDEFINED. |
|
3409 |
3029
|
3410 * Makefile.in (stamp-picdir): Delete. |
|
3411 (pic): New target. Don't worry so much about creating pic |
|
3412 directory only when it is really needed. |
|
3413 (stamp-interp): Delete. |
|
3414 (libraries): New target. Depend on shared library directly. |
|
3415 |
3024
|
3416 Wed Jun 4 00:09:42 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3417 |
|
3418 * octave.cc (main): Call dir_path::set_program_name here. |
|
3419 |
3021
|
3420 Tue Jun 3 16:47:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3421 |
3022
|
3422 * variables.cc (symbol_out_of_date): Make it work again. |
|
3423 |
3021
|
3424 * parse.y (parse_and_execute): Move here from toplev.cc |
|
3425 (default_eval_print_flag): Likewise. |
|
3426 (safe_fclose): Likewise. |
|
3427 (eval_string): Likewise. |
|
3428 (Fsource): Likewise. |
|
3429 (Ffeval): Likewise. |
|
3430 (feval): Likewise. |
|
3431 (Feval): Likewise. |
|
3432 (symbols_of_parse): Define default_eval_print_flag here instead of |
|
3433 in varaibles.cc. |
|
3434 (looks_like_octave_copyright): Move here from variables.cc |
|
3435 (gobble_leading_whitespace): Likeiwse. |
|
3436 (is_function_file): Likewise. |
|
3437 (restore_input_stream): Likewise. |
|
3438 (parse_fcn_file): Likewise. |
|
3439 (load_fcn_from_file): Likewise. |
|
3440 (get_help_from_file): Likewise. |
|
3441 |
|
3442 * toplev.cc (syms_of_toplev): Define argv, program_name, and |
|
3443 program_invocation_name here instead of in variables.cc. |
|
3444 |
|
3445 * parse.h (line_editing): Move here from toplev.h. Now bool, not int. |
|
3446 (reading_startup_message_printed) Likewise. |
|
3447 (input_from_startup_file): Likewise. |
|
3448 (input_from_command_line_file): Likewise. |
|
3449 |
|
3450 * load-save.cc: Use bool instead of int where appropriate. |
|
3451 |
|
3452 * input.h (enum echo_state): Move here from variables.h. |
|
3453 (Vecho_executing_commands): Likewise. Now bool, not int. |
|
3454 * input.cc (echo_executing_commands): Move here from variables.cc. |
|
3455 (symbols_of_input): Define echo_executing_commands here instead of |
|
3456 in variables.cc. |
|
3457 |
|
3458 * octave.cc (program_invocation_name): Don't define. |
|
3459 (intern_argv): Don't set program_invocation_name here. |
|
3460 (main): Call octave_env::set_program_name here, not in intern_argv. |
|
3461 |
|
3462 * toplev.cc (quitting_gracefully): Move here from octave.h and |
|
3463 make static bool instead of extern int. |
|
3464 |
|
3465 * error.cc (bind_global_error_variable, clear_global_error_variable): |
|
3466 Move here from variables.cc. |
|
3467 (symbols_of_error): Define error_text here instead of in variables.cc. |
|
3468 |
|
3469 * pager.cc (write_to_diary_file): Now bool, not int. |
|
3470 (really_flush_to_pager): Likewise. |
|
3471 (flushing_to_pager): Likewise. |
|
3472 * sighandlers.h (can_interrupt): Likewise. |
|
3473 * error.h (buffer_error_messages): Likewise. |
|
3474 * oct-hist.h (input_from_tmp_history_file, Vsaving_history): Likewise. |
|
3475 * input.h (forced_interactive): Likewise. |
|
3476 (get_input_from_eval_string): Likeiwse. |
|
3477 (reading_script_file): Likeiwse. |
|
3478 (reading_fcn_file): Likeiwse. |
|
3479 (interactive): Likewise. |
|
3480 |
|
3481 * unwind-prot.cc (saved_variable::saved_variable (bool *, bool)): |
|
3482 Set type_tag to boolean, not int. |
|
3483 |
3016
|
3484 Mon Jun 2 00:40:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3485 |
|
3486 * variables.h (Octave_builtin_fcn): Delete typedef. |
|
3487 |
|
3488 * help.cc (make_name_list): Move here from variables.cc. |
|
3489 (keyword_help, names): Now static. |
|
3490 (struct help_list): Move declaration here from help.h. |
|
3491 |
|
3492 * oct-hist.cc (Vhistory_file, Vhistory_size, Vsaving_history): |
|
3493 Move here from variables.cc. |
|
3494 (symbols_of_oct_hist): New function. |
|
3495 |
|
3496 * version.h: Protect against multiple inclusion. |
|
3497 |
|
3498 * defun.cc (check_version): New function. |
|
3499 * defun-int.h (DEFINE_FUN_INSTALLER_FUN): Use it. |
|
3500 |
|
3501 * help.h, help.cc (additional_help_message): Now extern. |
|
3502 (operator_help): Now static. |
|
3503 |
|
3504 * defun.cc (print_usage): Move here from help.cc |
|
3505 * DLD-FUNCTIONS/*.cc, data.cc, dirfns.cc, file-io.cc, input.cc, |
|
3506 load-save.cc, octave.cc, ov-list.cc, ov-typeinfo.cc, |
|
3507 ov-usr-fcn.cc, pager.cc, pr-output.cc, pt-plot.cc, strfns.cc, |
|
3508 syscalls.cc, sysdep.cc, utils.cc, toplev.cc: |
|
3509 Don't include help.h. |
|
3510 |
|
3511 * TEMPLATE-INST/Array-sym.cc: New file. |
|
3512 |
|
3513 * load-save.cc (do_load): Don't use ostream::form. |
|
3514 * pr-output.cc: Likewise, at least where it is easy to do so. |
|
3515 * oct-stream.cc: Ditto. |
|
3516 |
|
3517 * symtab.h (symbol_record::symbol_def::rows): New function. |
|
3518 (symbol_record::symbol_def::columns): Ditto. |
|
3519 (symbol_record::symbol_def::type_name): Ditto. |
|
3520 (symbol_record::rows): Ditto |
|
3521 (symbol_record::columns): Ditto |
|
3522 (symbol_record::type_name): Ditto |
|
3523 |
|
3524 * symtab.h, symtab.cc (symbol_record::hides_fcn): New function. |
|
3525 (symbol_record::hides_builtin): Ditto. |
|
3526 (symbol_record::print_symbol_info_line): Ditto. |
|
3527 (symbol_table::long_list): Delete. |
|
3528 (symbol_table::symbol_list): New function. |
|
3529 (symbol_table::maybe_list): Delete argc arg. |
|
3530 (symbol_table::name_list): Rename from symbol_table::list. |
|
3531 Change all callers. |
|
3532 |
|
3533 * symtab.h, symtab.cc (class symbol_record_info): Delete. |
|
3534 |
|
3535 * symtab.cc (matches_patterns): Use vector form of glob_match. |
|
3536 |
|
3537 Sun Jun 1 14:04:26 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3538 |
|
3539 * pt-check.h, pt-check.cc: New files, for semantic checking of |
|
3540 parse trees. |
|
3541 |
|
3542 * symtab.h (class symbol_def): Now nested in symbol_record class. |
|
3543 (enum TYPE): Move from symbol_def to symbol record class. Change |
|
3544 all uses. |
|
3545 |
|
3546 * symtab.h, symtab.cc (symbol_table::maybe_list): New function, |
|
3547 from variables.cc. Change all uses. |
|
3548 |
|
3549 * pt-idx.h (tree_identifier::lvalue_ok): New function. |
|
3550 * pt-id.h (tree_index_expression::lvalue_ok): Likewise. |
|
3551 * pt-indir.h (tree_indirect_ref::lvalue_ok): Likewise. |
|
3552 |
|
3553 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_oct_obj): Delete. |
|
3554 * pt-walk.h (tree_walker::visit_oct_obj): Delete declaration. |
|
3555 |
|
3556 * lex.h (class lexical_feedback): Delete maybe_screwed_again. |
|
3557 * lex.l (lexical_feedback::init): Don't set it. |
|
3558 |
|
3559 Fri May 30 16:07:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3560 |
|
3561 * mappers.cc: Include <cfloat> here. |
|
3562 |
|
3563 Tue May 27 10:08:43 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3564 |
|
3565 * toplev.cc (eval_string): Don't index tmp if it is empty. |
|
3566 |
|
3567 Sat May 24 00:18:41 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3568 |
|
3569 * load-save.cc (valid_identifier): Move here and make static. |
|
3570 * symtab.h, symtab.cc (valid_identifier): Delete declaration and |
|
3571 definition. |
|
3572 |
|
3573 Fri May 23 22:54:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3574 |
|
3575 * symtab.h (symbol_def::symbol_def): Use initializer list instead |
|
3576 of calling init_state. |
|
3577 (symbol_def::init_state): Delete. |
|
3578 |
|
3579 * symtab.cc (symbol_table::print_stats): New function. |
|
3580 * variables.cc (F__dump_symtab_info__): New function. |
|
3581 |
|
3582 * symtab.h, symtab.cc (symbol_table::hash): Return masked value. |
|
3583 (symbol_table::table_size): New data member. |
|
3584 (symbol_table::symbol_table): Set size of table in constructor. |
|
3585 (HASH_TABLE_SIZE): Replace uses with table_size. |
|
3586 (HASH_MASK): Delete. |
|
3587 * variables.cc (initialize_symbol_tables): Set top-level and |
|
3588 global symbol table sizes here. |
|
3589 |
2994
|
3590 Thu May 22 13:32:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3591 |
|
3592 * dynamic-ld.cc (octave_shl_load_dynamic_loader::resolve_reference): |
|
3593 Call shl_findsym with type set to TYPE_PROCEDURE. Pass the |
|
3594 address of the pointer we want to define. |
|
3595 |
2993
|
3596 Wed May 21 16:30:25 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3597 |
|
3598 * DLD-FUNCTIONS/time.cc (extract_tm): Avoid memory leak in dealing |
|
3599 with time zone. |
|
3600 |
|
3601 * Makefile.in (install-in): Use new mk-includedir-link macro. |
|
3602 (install-lib): Install in $octlibdir. Use new mk-libdir-link macro. |
|
3603 |
|
3604 Tue May 20 01:24:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3605 |
|
3606 * ov-list.cc (Flist): Rename from Fmake_list. |
|
3607 |
|
3608 Mon May 19 14:45:58 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3609 |
|
3610 * octave.cc (maximum_braindamage): Set default_eval_print_flag to 0. |
|
3611 |
|
3612 Sat May 17 16:32:23 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3613 |
|
3614 * defaults.cc (set_default_editor): Default is now Emacs, not vi. |
|
3615 |
2984
|
3616 Fri May 16 00:07:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3617 |
2991
|
3618 * pt-idx.cc (tree_index_expression::name): New function. |
|
3619 |
|
3620 * pt.cc (tree::str_print_code): New file, new convenience function. |
|
3621 * pt-arg-list.cc (tree_argument_list::get_arg_names): Use it. |
|
3622 * pt-assign.cc (tree_simple_assignment::rvalue): Likewise. |
|
3623 (tree_multi_assignment::rvalue): Likewise. |
|
3624 |
2990
|
3625 * pt-colon.h (tree_colon_expression::save_base): New data memmber. |
|
3626 (tree_colon_expression::preserve_base): New function. |
|
3627 * parse.y (finish_colon_expression): When converting to a simple |
|
3628 expression, be sure to delete the original colon expression but |
|
3629 not the base value. |
|
3630 |
|
3631 * pt-mat.cc (tree_matrix::~tree_matrix): Actually do something. |
|
3632 |
2987
|
3633 * pt-all.h: New file. |
|
3634 * parse.y, lex.l, pt-pr-code.cc: Use it. |
|
3635 |
|
3636 * pt.h: Rename from pt-base.h. |
|
3637 |
|
3638 * All parse tree classes: Add private copy constructors and |
|
3639 assignment operators to prevent copying. |
|
3640 |
|
3641 * pt-base.cc: Delete. |
|
3642 |
2985
|
3643 * unwind-prot.h, unwind-prot.cc: Make a bit more object-oriented. |
|
3644 Change all uses of unwind_protect stuff to match. |
|
3645 |
|
3646 * pt-jump.h, pt-jump.cc (breaking, continuing, returning): |
|
3647 Make these flags static members of the corresponding class. |
|
3648 Change all uses. |
|
3649 |
2984
|
3650 * pt-assign.cc (tree_simple_assignment_expression::eval, |
|
3651 tree_multi_assignment_expression::eval): Clear lvalue index here. |
|
3652 |
|
3653 * oct-lvalue.cc (octave_lvalue::assign): Don't clear index here. |
|
3654 * oct-lvalue.h (octave_lvalue::clear_index): New function. |
|
3655 (octave_lvalue::set_index): Rename from octave_lvalue::index. |
|
3656 Change all callers. |
|
3657 |
2976
|
3658 Thu May 15 11:48:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3659 |
2983
|
3660 * pt-select.h, pt-select.cc (class tree_if_command_list, |
|
3661 class tree_if_clause, class tree_switch_case_list, |
|
3662 class tree_switch_case): Move here from pt-misc.h, pt-misc.cc. |
|
3663 * pt-decl.h, pt-decl.cc (class tree_decl_init_list, |
|
3664 class tree_decl_elt): Move here from pt-mist.h, pt-misc.cc |
|
3665 |
|
3666 * pt-arg-list.h, pt-stmt.h: New files, extracted from pt-misc.h. |
|
3667 * pt-arg-list.cc, pt-stmt.cc: New files, extracted from pt-misc.cc. |
|
3668 |
|
3669 * pt-decl.h, pt-except.h, pt-jump.h, pt-loop.h, pt-select.h: |
|
3670 New files, extraced from pt-cmd.h. |
|
3671 * pt-decl.cc, pt-except.cc, pt-jump.cc, pt-loop.cc, pt-select.cc: |
|
3672 New files, extraced from pt-cmd.cc. |
|
3673 |
2980
|
3674 * pt-unop.h, pt-binop.h, pt-colon.h, pt-idx.h, pt-assign.h: |
|
3675 New files, extracted from pt-exp.h |
|
3676 * pt-unop.cc, pt-binop.cc, pt-colon.cc, pt-idx.cc, pt-assign.cc: |
|
3677 New files, extracted from pt-exp.cc |
|
3678 * pt-exp.h, pt-exp.cc: Rename from pt-exp-base.h, pt-exp-base.cc. |
|
3679 |
2979
|
3680 * oct-lvalue.h: Rename from oct-var-ref.h. Rename class from |
|
3681 octave_variable_reference to octave_lvalue. Change all uses. |
|
3682 * oct-lvalue.cc: Rename from oct-var-ref.cc. |
|
3683 |
2978
|
3684 * variables.cc (bind_ans): Only bind ans and print result if value |
|
3685 is defined. |
|
3686 |
2976
|
3687 * defun.cc: New file. Move functions for installing objects in |
|
3688 the symbol table here from variables.cc. |
|
3689 |
|
3690 * oct-obj.h, oct-obj.cc: Add custom allocator, fwiw. |
|
3691 |
|
3692 * toplev.cc (main_loop): Correctly increment command number. |
|
3693 |
|
3694 * TEMPLATE-INST/SLList-tm.cc: Don't instantiate lists of pointers |
|
3695 to tree_matrix_row objects. |
|
3696 * TEMPLATE-INST/SLList-misc.cc: Do instantiate lists of pointers |
|
3697 to tree_argument_list objects. |
|
3698 |
|
3699 * DLD-FUNCTIONS/dassl.cc: Update to use new octave_function |
|
3700 interface to user-supplied functions. |
|
3701 * DLD-FUNCTIONS/fsolve.cc: Likewise. |
|
3702 * DLD-FUNCTIONS/lsode.cc: Likewise. |
|
3703 * DLD-FUNCTIONS/npsol.cc: Likewise. |
|
3704 * DLD-FUNCTIONS/quad.cc: Likewise. |
|
3705 |
|
3706 * dynamic-ld.h, dynamic-ld.cc (builtin_fcn_installer typedef): |
|
3707 Rename from builtin_fcn. |
|
3708 (octave_dynamic_loader::load_fcn_from_dot_oct_file): |
|
3709 Simplify by using new installer function defined by DEFUN_DLD. |
|
3710 |
|
3711 * defun-dld.h (DEFUN_DLD): Use DEFINE_FUN_INSTALLER_FUN instead of |
|
3712 DEFINE_FUN_STRUCT_FUN. |
|
3713 * defun.h (DEFUN_MAPPER): Use DEFUN_MAPPER_INTERNAL. |
|
3714 * defun-int.h (DEFVAR_INTERNAL): Rename from DEFVAR_INT and move |
|
3715 here from defun.h. Change all uses. |
|
3716 (DEFUN_MAPPER_INTERNAL): New macro. |
|
3717 (DEFINE_FUN_INSTALLER_FUN): New macro to define function that the |
|
3718 dynamic loader calls to do all the work of installing a new function. |
|
3719 (DEFINE_FUN_STRUCT_FUN): Delete. |
|
3720 |
|
3721 * parse.y: Rewrite to handle more general expressions. |
|
3722 * lex.l: Corresponding changes. |
|
3723 |
|
3724 * pt-walk.h, pt-pr-code.h, pt-pr-code.cc: Cope with new parse tree |
|
3725 object structure. |
|
3726 |
|
3727 * pt-misc.cc (class tree_for_command): Split into |
|
3728 tree_simple_for_command and tree_complex_for_command classes. |
|
3729 |
|
3730 * pt-misc.h, pt-misc.cc (tree_statement::eval): Handle identifier |
|
3731 lookup and printing and binding ans here. |
|
3732 (tree_statement_list::eval): Simplify. |
|
3733 (tree_argument_list::all_elements_are_constant): New function. |
|
3734 (class tree_decl_elt): Now contains id and expr, not an assignment |
|
3735 expression. |
|
3736 |
|
3737 * pt-exp-base.h pt-exp.h pt-id.h pt-indir.h pt-mat.h pt-const.h, |
|
3738 pt-exp-base.cc pt-exp.cc pt-id.cc pt-indir.cc pt-mat.cc pt-const.cc: |
|
3739 Replace eval functions with rvalue and lvalue functions. |
|
3740 Change all uses. |
|
3741 (lvalue_ok, rvalue_ok): New functions, for future compile-time |
|
3742 semantic checks. |
|
3743 |
|
3744 * oct-var-ref.h (is_defined, is_map): New functions. |
|
3745 |
|
3746 * pt-exp.h (class tree_oct_obj): Delete. |
|
3747 |
|
3748 * variables.cc (extract_function, is_valid_function): Return |
|
3749 pointer to octave_function, not octave_symbol. |
|
3750 (link_to_global_variable): Rewrite. Handle errors in |
|
3751 symbol_record::mark_as_linked_to_global. |
|
3752 |
|
3753 * symtab.h, symtab.cc (class symbol_def, class symbol_record): |
|
3754 Symbols are now stored as octave_value objects only. |
|
3755 |
|
3756 * ov.cc (install_types): Register function types here. |
|
3757 * ov-fcn.h, ov-fcn.cc, ov-builtin.h, ov-builtin.cc, ov-mapper.h, |
|
3758 ov-mapper.cc, ov-usr-fcn.h, ov-usr-fcn.cc: New classes for |
|
3759 functions as values. |
|
3760 * ov.h (class octave_value): Don't derive from octave_symbol. |
|
3761 * oct-fcn.h, oct-fcn.cc, oct-builtin.h, oct-builtin.cc, |
|
3762 oct-mapper.h, oct-mapper.cc, oct-usr-fcn.h, oct-usr-fcn.cc, |
|
3763 oct-sym.h, oct-sym.cc: Delete. |
|
3764 |
2963
|
3765 Sun May 11 17:51:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3766 |
|
3767 * help.cc (Ftype): Make it work again for functions. |
|
3768 |
|
3769 * pt-pr-code.cc (tree_print_code::print_parens): New function. |
|
3770 Use it in other tree_print_code functions to handle printing all |
|
3771 the parens that we found when parsing the expression, not just one |
|
3772 pair. |
|
3773 * pt-exp-base.h (tree_expression::paren_count): Rename from |
|
3774 is_in_parens. |
|
3775 * parse.y (maybe_warn_assign_as_truth_value): Use new name. |
|
3776 |
|
3777 * parse.y (constant): New non-terminal. |
|
3778 (simple_expr1): Use it. |
|
3779 |
|
3780 * parse.y (make_unary_op): Delete. |
|
3781 (simple_expr1): Where appropriate, use make_prefix_op and |
|
3782 make_postfix_op instead of make_unary_op. Allow increment and |
|
3783 decrement ops to work on expressions, not just identifiers. |
|
3784 (make_prefix_op, make_postfix_op): Arg is expression, not identifier. |
|
3785 Handle old unary_op cases too. |
|
3786 (fold (tree_unary_expression *)): Delete. |
|
3787 * pt-exp.h, pt-exp.cc (tree_prefix_expression::eval): Handle unary |
|
3788 minus and not here. |
|
3789 (tree_postfix_expression::eval): Likewise, for transpose and hermitian. |
|
3790 (class tree_prefix_expression, class tree_postfix_expression): |
|
3791 Derive from tree_unary_expression. Delete identifier member. |
|
3792 Delete ident member function. |
|
3793 (tree_unary_expression): Don't handle evaluation here. |
|
3794 * pt-exp-base.h (mark_in_parens): No longer virtual. Return this. |
|
3795 (reference): New virtual function. |
|
3796 (class tree_expression): Don't handle expression type here. |
|
3797 * pt-mvr-base.h (tree_multi_val_ret::tree_multi_val_ret): Likewise. |
|
3798 * pt-mvr.h, pt-mvr.cc (tree_multi_assignment_expression): Likewise. |
|
3799 * pt-walk.h (visit_unary_expression): Delete declaration. |
|
3800 * pt-pr-code.h, pt-pr-code.cc (visit_unary_expression): Delete. |
|
3801 (visit_prefix_expression): Use operand(), not ident(). |
|
3802 new, visit_postfix_expression): |
|
3803 * pt-id.h, pt-id.cc (increment, decrement): Delete. |
|
3804 |
|
3805 * pt-misc.cc (tree_parameter_list::define_from_arg_vector): Get a |
|
3806 reference to each element and use the assignment operator instead |
|
3807 of tree_identifier::define. |
|
3808 * pt-id.h, pt-id.cc (tree_identifier::define): Delete versions |
|
3809 that take octave_value and octave_symbol args. |
|
3810 |
|
3811 Sat May 10 23:32:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3812 |
|
3813 * pt-indir.h, pt-indir.cc (tree_indirect_reference::value): Delete. |
|
3814 |
|
3815 * oct-var-ref.cc (octave_variable_ref::assign): Clear idx after |
|
3816 assignment. |
|
3817 |
2976
|
3818 * octave_value classes: Add is_constant, is_function, and |
|
3819 function_value functions. |
|
3820 |
2963
|
3821 * ov.h, ov.cc (assign): Return void, not reference to octave_value. |
|
3822 (do_index_op): Rename, from index. |
|
3823 (do_struct_elt_index_op): Rename, from struct_elt_val. |
|
3824 Add version that accepts index arg. |
|
3825 Change all uses and derived classes to match. |
|
3826 * pt-const.h (index): Delete. |
|
3827 * oct-var-ref.h, oct-var-ref.cc (value): Handle indexed structure |
|
3828 ops here too. |
|
3829 |
2949
|
3830 Fri May 9 07:40:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3831 |
2958
|
3832 * pt-exp.cc (print_rhs_assign_val, symbols_of_pt_exp): New functions. |
|
3833 (Vprint_rhs_assign_val): New static variable. |
|
3834 (tree_simple_assignment_expression::eval): Use it to optionally |
|
3835 allow the rhs (which is the result) of an assignment to be printed |
|
3836 instead of the left. |
|
3837 |
2955
|
3838 * pt-exp.cc (tree_simple_assignment_expression::eval): Use new |
|
3839 octave_variabl_reference::index function to handle indexing. |
|
3840 |
|
3841 * oct-var-ref.h, oct-var-ref.cc (idx): New data member. |
|
3842 (octave_variable_reference::index): Set it. |
|
3843 (octave_variable_reference::assign): Handle indexing here. |
|
3844 Delete version of this function htat takes index arg. |
|
3845 |
|
3846 * variables.h (struct builtin_varaible): Delete. |
|
3847 * variables.cc (install_builtin_variable): Take all elts of |
|
3848 builtin_variable struct directly. |
|
3849 * defun.h (DEFVAR_INT): Call install_builtin_variable directly. |
|
3850 |
|
3851 * symtab.h, defun-int.h: Don't include variables.h. |
|
3852 |
|
3853 * symtab.h (symbol_record::sv_function): Move typedef here. |
|
3854 * variables.h: From here. |
|
3855 |
|
3856 * oct-var-ref.h, oct-var-ref.cc: New files for |
|
3857 octave_variable_reference class, extracted from variables.h and |
|
3858 variables.cc |
2956
|
3859 * Makefile.in: Add them to the appropriate lists. |
2955
|
3860 |
|
3861 * oct-obj.h (octave_value_list::empty): New function. |
|
3862 |
2949
|
3863 * variables.h (class octave_variable_reference): Rewrite to work |
|
3864 as a proxy class to store a pointer to octave_value and, |
|
3865 optionally, the change function to call and the name of the |
|
3866 structure element we are referencing. Handle assignment, |
|
3867 increment, decrement, and value operations. |
|
3868 |
2956
|
3869 Thu May 8 23:40:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3870 |
2949
|
3871 * ov-re-mat.h, ov-re-mat.cc (struct_elt_ref, struct_elt_val, |
|
3872 assign_struct_elt): Provide functions for looking up and setting |
|
3873 matrix dimensions. |
|
3874 |
|
3875 * symtab.cc (symbol_record::define): Don't call sv_fcn here. |
|
3876 Don't save and restore value here. |
|
3877 (symbol_record::define_builtin_var): Do call sv_fcn here. |
|
3878 (symbol_record::variable_reference): Don't make value unique here. |
|
3879 Return pointer to sv_fcn in octave_variable_reference. |
|
3880 |
|
3881 * pt-misc.cc (tree_parameter_list::initialize_undefined_elements): |
|
3882 Simplify. |
|
3883 |
|
3884 * pt-id.h, pt-id.cc (tree_identifier::reference): Return |
|
3885 octave_variable_reference, not octave_value&. |
|
3886 * symtab.h, symtab.cc (symbol_record::variable_reference): Ditto. |
|
3887 * pt-indir.h, pt-indir.cc (tree_indirect_ref::reference): Ditto. |
|
3888 Simplify too. |
|
3889 |
|
3890 * pt-const.h (tree_constant::reference, tree_constant::value, |
|
3891 tree_constant::assign): Delete unnecessary functions. |
|
3892 * pt-id.h, pt-id.cc (tree_identifier::assign): Ditto. |
|
3893 |
|
3894 * pt-cmd.cc (tree_for_command::do_for_loop_once): Simplify. |
|
3895 |
|
3896 * ov.h, ov.cc, ov-base.h, ov-base.cc, ov-struct.h, ov-struct.cc |
|
3897 (struct_elt_ref): New arg, octave_value* parent. |
|
3898 Allow deferred lookup. Return octave_variable_reference, not |
|
3899 octave_value&. |
|
3900 |
|
3901 * ov.h, ov.cc, ov-re-mat.h, ov-re-mat.cc (assign_struct_elt): |
|
3902 New virtual functions. |
|
3903 |
|
3904 * ov.h, ov.cc (Vresize_on_range_error): Now static. |
|
3905 |
|
3906 * pt-mvr.cc (tree_index_expression::eval): Delete redundant check |
|
3907 of error_state. |
|
3908 |
2944
|
3909 Wed May 7 21:17:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3910 |
|
3911 * input.cc (generate_completion): Rename from command_generator. |
|
3912 Use string objects instead of char*. |
|
3913 (generate_possible_completions): Let qsort also make matches unique. |
|
3914 (initialize_command_input): Register generate_completion with the |
|
3915 command_editor class. |
|
3916 (completion_matches): Simplify using generate_completion. |
|
3917 |
|
3918 * pt-pr-code.cc (tree_print_code::visit_constant): For val, call |
|
3919 print_raw, not print. |
|
3920 |
|
3921 * oct-usr-fcn.h (octave_user_function::argn_sr): New data member. |
|
3922 (octave_user_function::install_automatic_vars): Rename from |
|
3923 install_nargin_and_nargout. |
|
3924 (octave_user_function::bind_automatic_vars): Rename from |
|
3925 bind_nargin_and_nargout. |
|
3926 * oct-usr-fcn.cc (octave_user_function::eval): Extract arg names |
|
3927 from args vector and bind them to argn. |
|
3928 * oct-obj.h (octave_value_list::names): New data member. |
|
3929 * oct-obj.cc (octave_value_list::stash_name_tags): New function. |
|
3930 (octave_value_list::name_tags): Ditto. |
|
3931 * pt-const.h, pt-const.cc (tree_constant::print_raw): New function. |
|
3932 * pt-misc.h, pt-misc.cc (tree_argument_list::get_arg_names): |
|
3933 New function. |
|
3934 * pt-mvr.h, pt-mvr.cc (class index_expression): Cache arg names. |
|
3935 * toplev.cc (feval): Now static. Handle arg names. |
|
3936 |
|
3937 * mkops: Cope with moving files defining operators to OPERATORS |
|
3938 subdirectory. |
|
3939 |
2937
|
3940 Tue May 6 00:48:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3941 |
|
3942 * DLD-FUNCTIONS/getgrent.cc: Use new octave_group class. |
|
3943 * DLD-FUNCTIONS/getpwent.cc: Use new octave_passwd class. |
|
3944 |
|
3945 * syscalls.cc: Simplify by using new functions defined in |
|
3946 liboctave/oct-syscalls.cc. |
|
3947 |
|
3948 * file-io.cc (Ftmpnam): Accept DIR and PREFIX args. |
|
3949 |
2929
|
3950 Mon May 5 00:54:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3951 |
2932
|
3952 * ov-str-mat.cc (octave_char_matrix_str::print_name_tag): Print |
|
3953 empty strings on one line. |
|
3954 |
2929
|
3955 * DLD-FUNCTIONS, OPERATORS, and TEMPLATE-INST: New subdirectories. |
|
3956 Move appropriate files to new directories. |
|
3957 * Makefile.in: Add DLD-FUNCTIONS, OPERATORS, and TEMPLATE-INST |
|
3958 directories to VPATH. Fix rules to work with new directory |
|
3959 structure. |
|
3960 |
2927
|
3961 Sun May 4 22:40:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3962 |
|
3963 * input.cc (initialize_command_input): Rename from |
|
3964 initialize_readline. |
|
3965 (gnu_readline, octave_gets, get_user_input): Simplify, return |
|
3966 string, not char *. |
|
3967 |
|
3968 * Many of other files: Miscellaneous changes to go along with the |
|
3969 changes described in the liboctave/ChangeLog for May 4. More code |
|
3970 moved from here to liboctave. |
|
3971 |
|
3972 Fri May 2 19:50:33 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3973 |
|
3974 * pathlen.h: Move to ../liboctave. |
|
3975 |
2921
|
3976 Thu May 1 21:50:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3977 |
|
3978 * variables.cc (get_struct_elts): New fucntion. |
|
3979 (looks_like_struct, generate_struct_completions): Move here from |
|
3980 input.cc, rewrite, and make work again. |
|
3981 |
2916
|
3982 Wed Apr 30 00:24:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3983 |
|
3984 * ov-base.h, ov-bool-mat.cc, ov-bool-mat.h, ov-bool.cc, ov-bool.h, |
|
3985 ov-ch-mat.cc, ov-ch-mat.h, ov-complex.cc, ov-complex.h, |
|
3986 ov-cx-mat.cc, ov-cx-mat.h, ov-file.cc, ov-file.h, ov-list.cc, |
|
3987 ov-range.cc, ov-range.h, ov-re-mat.cc, ov-re-mat.h, ov-scalar.cc, |
|
3988 ov-scalar.h, ov-str-mat.cc, ov-struct.cc, ov.h (scalar_value): |
|
3989 New function. Same as double_value, but name is consistent with |
|
3990 octave_scalar class. |
|
3991 |
|
3992 * op-fil-b.cc, op-fil-cm.cc, op-fil-lis.cc, op-fil-rec.cc, |
|
3993 op-fil-str.cc, op-fil-bm.cc, op-fil-cs.cc, op-fil-m.cc, |
|
3994 op-fil-s.cc: New files. |
|
3995 |
|
3996 * ops.h (ASSIGNOPDECL, DEFASSIGNOP, DEFASSIGNOP_FN, CONVDECL, |
|
3997 DEFCONV, BINOPDECL, DEFBINOPX, DEFBINOP, DEFBINOP_OP, DEFBINOP_FN, |
|
3998 BINOP_NONCONFORMANT): New macros. |
|
3999 * op-b-b.cc, op-bm-bm.cc, op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, |
|
4000 op-cm-s.cc, op-cs-cm.cc, op-cs-cs.cc, op-cs-m.cc, op-cs-s.cc, |
|
4001 op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, op-s-cm.cc, |
|
4002 op-s-cs.cc, op-s-m.cc, op-s-s.cc, op-str-str.cc: Use them. |
|
4003 |
|
4004 * Makefile.in (octave): Also depend on ops.o. |
|
4005 |
|
4006 * builtins.h: Delete. |
|
4007 * octave.cc: Add extern declaration here. |
|
4008 |
|
4009 * mappers.h: Delete. |
|
4010 * Makefile.in (INCLUDES): Delete from list. |
|
4011 * mkbuiltins: Add extern declaration in builtins.cc. |
|
4012 |
|
4013 * mkops: New file. |
|
4014 * ops.cc: Delete. |
|
4015 * Makefile.in (SOURCES): Delete from the list. |
|
4016 (ops.cc): New target. |
|
4017 (OP_SOURCES): New list. Move all op-*.cc files here from SOURCES. |
|
4018 Add $(OP_SOURCES) to SOURCES list. |
|
4019 |
|
4020 * variables.cc (symbols_of_variables): No longer static. |
|
4021 * ov.cc (symbols_of_ov): Rename from symbols_of_value. |
|
4022 |
|
4023 * ov-base.h: Delete declaration for install_base_type_conversions. |
|
4024 * op-b-b.h, op-bm-bm.h, op-cm-cm.h, op-cm-cs.h, op-cm-m.h, |
|
4025 op-cm-s.h, op-cs-cm.h, op-cs-cs.h, op-cs-m.h, op-cs-s.h, |
|
4026 op-m-cm.h, op-m-cs.h, op-m-m.h, op-m-s.h, op-s-cm.h, op-s-cs.h, |
|
4027 op-s-m.h, op-s-s.h, op-str-str.h: Delete. |
|
4028 * Makefile.in (INCLUDES): Delete them from the list. |
|
4029 |
|
4030 Tue Apr 29 22:27:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4031 |
|
4032 * variables.h, variables.cc (install_builtin_variables): Delete. |
|
4033 * mkbuiltins: Also generate install_builtin_variables function. |
|
4034 * Makefile.in: Fix rule to call mkbuiltins with correct args. |
|
4035 (clean): Also delete def-files and var-files. |
|
4036 * defaults.h.in, dirfns.h, error.h, file-io.h, help.h, input.h, |
|
4037 lex.h, load-save.h, oct-usr-fcn.h, pager.h, parse.h, pr-output.cc, |
|
4038 pr-output.h, pt-mat.h, pt-misc.h, pt-plot.h, toplev.h: |
|
4039 Delete declarations of symbols_of_* functions. |
|
4040 * data.h, syscalls.h: Delete. |
|
4041 |
|
4042 * pr-output.cc (octave_print_internal): Leave printing of final |
|
4043 new line up to the caller. |
|
4044 |
|
4045 * ov.h, ov.cc (reset_indent_level, increment_indent_level, |
|
4046 decrement_indent_level, newline, indent, reset, |
|
4047 curr_print_indent_level, beginning_of_line): |
|
4048 New functions and static data to manage indent level for printing. |
|
4049 (print_as_scalar): Delete. |
|
4050 (print, print_with_name): Always require stream arg. |
|
4051 Change all callers. |
|
4052 |
|
4053 * oct-stream.h (octave_stream::input_stream): Make publicly available. |
|
4054 (octave_stream::output_stream): Likewise. |
|
4055 |
|
4056 * ov-base.h, ov-base.cc, ov.h, ov.cc, ov-file.h ov-base.h |
|
4057 (is_file, stream_value, stream_number): New functions. |
|
4058 * ov-file.h, ov-file.cc: New files for value class to manage files. |
|
4059 * file-io.cc (symbols_of_file_io): Define stdin, stdout, and |
|
4060 stderr as octve_file objects, not just integers. |
|
4061 (Ffopen, Fpopen): Return octave_file objects, not integer file ids. |
|
4062 * syscalls.cc (Fpipe): Likewise. |
|
4063 * oct-stream.h, oct-stream.cc (octave_stream_list::insert): |
|
4064 Return octave_file object, not integer file id. |
|
4065 |
|
4066 * ov-base.cc, ov-bool-mat.cc, ov-bool.cc, ov-ch-mat.cc, |
|
4067 ov-complex.cc, ov-cx-mat.cc, ov-file.cc, ov-list.cc, ov-range.cc, |
|
4068 ov-re-mat.cc, ov-scalar.cc, ov-str-mat.cc, ov-struct.cc, ov.cc |
|
4069 (print_name_tag, print_raw): New functions. |
|
4070 |
|
4071 * help.cc (Ftype): Don't cast symbol definition to tree_constant *. |
|
4072 |
|
4073 * variables.cc (link_to_global_variable): Don't try to define |
|
4074 symbol with tree_constant objects. |
|
4075 (bind_ans): Call symbol_record::define directly and then |
|
4076 octave_value::print_with_name instead of creating a temporary |
|
4077 assignment expression. |
|
4078 |
|
4079 * pt-pr-code.cc (tree_print_code::indent): Don't use ostream::form. |
|
4080 |
|
4081 * pt-exp-base.h, pt-exp.h, pt-exp.cc (oper): Return string, not |
|
4082 char *. Change all where necessary. |
|
4083 |
|
4084 Mon Apr 28 16:33:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4085 |
|
4086 * ov.h (octave_value binary_op enum): Add lshift and rshift. |
|
4087 (octave_value assign_op enum): Add lshift_eq and rshift_eq. |
|
4088 * ov.cc (assign_op_as_string, binary_op_as_string): Include them. |
|
4089 * parse.y (LSHIFT_EQ RSHIFT_EQ LSHIFT RSHIFT): New tokens. |
|
4090 Add them to the precedence list. |
|
4091 (simple_expr): Add new operators. |
|
4092 (make_assign_op, make_binary_op): Handle new operators. |
|
4093 * lex.l: Recognize new operators. |
|
4094 |
|
4095 * lex.l: Recognize them. |
|
4096 |
|
4097 Sun Apr 27 20:17:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2898
|
4098 |
|
4099 * pt-misc.cc (Vsilent_functions, silent_functions): |
|
4100 Move here from oct-usr-fcn.cc. |
|
4101 (symbols_of_pt_misc): New function. DEFVAR silent_functions. |
|
4102 (tree_statement_list::eval): Handle Vsilent_functions here instead |
|
4103 of in octave_user_function::eval. |
|
4104 (tree_statement::eval): New functions. |
|
4105 (tree_statement_list::eval): Use them. |
|
4106 Change print flag arg to silent flag. Change all callers. |
|
4107 * variables.cc (install_builtin_variables): Call symbols_of_pt_misc. |
|
4108 * toplev.cc (parse_and_execute): Delete print arg. Change all callers. |
|
4109 (eval_string): Change print flag arg to silent flag. Change callers. |
|
4110 |
|
4111 * dynamic-ld.h, dynamic-ld.cc: Rewrite to use singleton class. |
|
4112 * variables.cc (load_fcn_from_file): Use new dynamic linking class. |
|
4113 |
2893
|
4114 * dynamic-ld.h (Octave_builtin_fcn): Delete typedef. |
|
4115 * dynamic-ld.cc: Simplify via the magic of function pointers. |
|
4116 |
|
4117 * pt-fcn.h pt-fcn.cc pt-fvc.h pt-fvc.cc pt-fvc-base.h pt-fvc-base.cc: |
|
4118 Delete obsolete files. |
|
4119 * Makefile.in: Remove them from various lists. |
|
4120 |
|
4121 * pt-walk.h (visit_octave_user_function): Rename from visit_function. |
|
4122 (visit_builtin): Delete. |
|
4123 * pt-pr-code.h, pt-pr-code.cc (visit_octave_user_function): |
|
4124 Rename from visit_function. |
|
4125 (visit_octave_user_function_header): Rename from visit_function_header. |
|
4126 (visit_octave_user_function_trailer): Rename from |
|
4127 visit_function_trailer. |
|
4128 |
|
4129 * ov.h, ov.cc (eval): New functions. |
|
4130 |
|
4131 * dassl.cc, fsolve.cc, lsode.cc, npsol.cc, qpsol.cc, quad.cc: |
|
4132 Declare user-defined functions as a pointer to an octave_symbol |
|
4133 object, not as a pointer to a tree_fvc object. |
|
4134 |
|
4135 * symtab.h, symtab.cc: Use new octave_symbol class. |
|
4136 * variables.cc (install_builtin_function, install_builtin_mapper, |
|
4137 install_builtin_variable, install_builtin_variable_as_function): |
|
4138 Make work with new octave_symbol class and symbol table structure. |
|
4139 |
|
4140 * variables.h: Delete declaration of builtin_function struct. |
|
4141 * defun-dld.h (DEFUN_DLD): Simplify. |
|
4142 * defun-int.h (DEFINE_FUN_STRUCT): Delete. |
|
4143 (DEFINE_FUN_STRUCT_FUN): Rewrite to not use static builtin_function |
|
4144 object. |
|
4145 |
|
4146 * mappers.h: Delete declaration of builtin_mapper_function struct. |
|
4147 * mappers.cc: Declare wrapper functions static. |
|
4148 * defun.h (DEFUN_MAPPER): Simplify. |
|
4149 |
|
4150 * oct-sym.h: New file. Declare base class for Octave symbols. |
|
4151 * ov.h: Derive octave_value class from octave_symbol. |
|
4152 * oct-fcn.h, oct-fcn.cc: New files to declare and define |
|
4153 base class for functions. |
|
4154 * oct-builtin.h, oct-builtin.cc: New files to declare and define |
|
4155 class for built-in functions. |
|
4156 * oct-mapper.h, oct-mapper.cc: New files to declare and define |
|
4157 class for mapper functions. |
|
4158 * oct-usr-fcn.h, oct-usr-fcn.cc: New files to declare and define |
|
4159 base class for user-defined functions. |
|
4160 * Makefile.in: Add new files to appropriate lists. |
|
4161 |
|
4162 * pt-id.h, pt-id.cc: Move tree_identifier class here. |
|
4163 * pt-fvc.h, pt-fvc.cc: From here. |
|
4164 |
|
4165 * pt-indir.h, pt-indir.cc: Move tree_indirect_ref class here. |
|
4166 * pt-fvc.h, pt-fvc.cc: From here. |
|
4167 |
2881
|
4168 Thu Apr 24 03:58:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4169 |
2884
|
4170 * parse.y (magic_colon): New nonterminal. |
|
4171 (arg_list): Simplify using magic_colon. |
|
4172 |
2883
|
4173 * lex.h (class lexical_feedback): Delete maybe_screwed field. |
|
4174 New field, parsed_function name. |
|
4175 * lex.l (lexical_feedback::init): Initialize it. |
|
4176 (handle_identifier): Don't return SCREW. Handle switching |
|
4177 symbol table context properly for `function f ()' vs `function x ='. |
|
4178 (is_keyword): If looking at function keyword, don't set current |
|
4179 symbol table to point to the local table. |
|
4180 * parse.y (recover_from_parsing_function): New function. |
|
4181 (finish_function_def): Use identifier, not token. |
|
4182 Simplify parsing of functions. |
|
4183 |
|
4184 * ov-list.h, ov-list.cc: New files to implement generic list type. |
|
4185 * ov.cc (list_indent): New global variable. |
|
4186 (increment_list_indent, decrement_list_indent): New functions. |
|
4187 (install_types): Register octave_list type. |
|
4188 * ov-base.cc (octave_base_value::is_list): New function. |
|
4189 |
2881
|
4190 * oct-sym.h: New file. |
|
4191 * ov.h (class octave_value): Derive from octave_symbol class. |
|
4192 |
|
4193 * pt-const.h, pt-const.cc: Delete lots of old useless cruft. |
|
4194 |
|
4195 * pt-exp.h, pt-exp.cc (tree_binary_expression): Use type codes for |
|
4196 operators from octave_value instead of repeating them here. |
|
4197 |
|
4198 * pt-fvc-base.cc (tree_fvc::increment, tree_fvc::decrement): Delete. |
|
4199 * pt-fvc.cc (tree_identifier::increment): Get reference to value |
|
4200 and increment that instead of using virutal tree_fvc::increment |
|
4201 function. |
|
4202 |
|
4203 * lex.l: Handle +=, -=, *=, /=, .+=, .-=, .*=, ./=, &=, and |= ops. |
2883
|
4204 * parse.y (make_assign_op): Rename from make_simple_assignment and |
|
4205 handle different op types. |
|
4206 (simple_expr1): Do new ops. |
2881
|
4207 * pt-misc.cc (initialize_undefined_elements): Pass op to assign. |
|
4208 * pt-cmd.cc (tree_for_command::do_for_command_once): Likewise. |
|
4209 * pt-fvc.cc (tree_identifier::assign): Pass op. |
|
4210 * pt-exp.cc (tree_simple_assignment_expression): Handle new ops. |
|
4211 * variables.cc (octave_variable_reference::assign): Likewise. |
|
4212 * ov.h (class octave_value): Likewise. |
|
4213 * ov.cc (octave_value::assign_op_as_string): New function. |
|
4214 (octave_value::assign, octave_value::convert_and_assign, |
|
4215 octave_value::try_assignment_with_conversion, |
|
4216 octave_value::try_assignment): Pass op. |
|
4217 * pt-pr-code.cc (tree_print_code::visit_simple_assignment_expression): |
|
4218 Use expr.oper() instead of printing "=". |
|
4219 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-m-m.cc, |
|
4220 op-m-s.cc, op-str-str.cc: Pass op to INSTALL_ASSIGNOP. |
|
4221 * ops.h (INSTALL_ASSIGNOP): Pass op. |
2883
|
4222 * ov-typeinfo.cc (do_register_assign_op): Include op type in table. |
|
4223 (do_lookup_assign_op): Use op in lookup. |
2881
|
4224 |
|
4225 * ops.h (INSTALL_UNOP): Delete. |
|
4226 |
|
4227 * input.cc (generate_struct_completions, looks_like_struct): |
|
4228 Disable, since they don't work now anyway. |
|
4229 |
|
4230 * help.cc (Ftype): Work with octave_value instead of a pointer to |
|
4231 tree_constant. |
|
4232 * symtab.cc (symbol_record_info::symbol_record_info): Likewise. |
|
4233 |
|
4234 |
|
4235 Tue Apr 22 22:59:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4236 |
|
4237 * file-io.cc (Ffprintf): If first arg is a string, assume FID = 1. |
|
4238 |
|
4239 Fri Apr 18 20:16:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4240 |
|
4241 * oct-obj.h, oct-obj.cc: Implement octave_value_list with |
|
4242 Array<octave_value> as a data member, not as a class derived from |
|
4243 Array<octave_value>. |
|
4244 (octave_value_list::length, octave_value_list::resize, |
|
4245 octave_value_list::prepend, octave_value_list::append, |
|
4246 octave_value_list::reverse): New functions. |
|
4247 |
|
4248 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
4249 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
4250 op-s-cm.cc, op-s-m.cc: Use new bool ops from liboctave instead of |
|
4251 the macros defined in ops.h. |
|
4252 |
2865
|
4253 Thu Apr 17 13:12:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4254 |
|
4255 * parse.y (ABORT_PARSE): Handle forced_interactive the same as |
|
4256 interactive. |
|
4257 |
|
4258 Mon Apr 14 01:46:50 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4259 |
|
4260 * input.cc (octave_read): Don't forget to free input buffer if it |
|
4261 exists and has zero length. |
|
4262 (gnu_readline): Free buf if fgets returns 0. |
|
4263 |
|
4264 Wed Apr 9 00:03:57 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4265 |
|
4266 * time.cc (mk_tm_map): Only set zone field if HAVE_TM_ZONE or |
|
4267 HAVE_TZNAME are defined. |
|
4268 |
|
4269 Tue Apr 8 12:39:21 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4270 |
|
4271 * time.cc (extract_tm): Set tm.tm_zone if HAVE_TM_ZONE is defined, |
|
4272 not if HAVE_TMZONE is defined. |
|
4273 |
|
4274 * Makefile.in (%.oct : %.o): Use $(SH_LD), not $(CXX). |
|
4275 |
|
4276 Wed Apr 2 21:32:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4277 |
|
4278 * dynamic-ld.cc, dynamic-ld.h (init_dynamic_linker): Delete |
|
4279 function and declaration. |
|
4280 * octave.cc (main): Don't call it. |
|
4281 |
2856
|
4282 Mon Mar 31 00:37:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4283 |
2859
|
4284 * pt-base-exp.h (tree_expression::eval): Give arg a default value. |
|
4285 * pt-const.h (tree_constant::eval): Likewise. |
|
4286 * pt-exp.h (tree_prefix_expression::eval, tree_colon_expression::eval, |
|
4287 tree_postfix_expression::eval, tree_unary_expression::eval, |
|
4288 tree_binary_expression::eval, tree_boolean_expression::eval, |
|
4289 tree_simple_assignment_expression::eval): Likewise. |
|
4290 * pt-fcn.h (tree_function::eval): Likewise. |
|
4291 * pt-fvc.h (tree_identifier::eval, tree_indirect_ref::eval, |
|
4292 tree_builtin::eval): Likewise. |
|
4293 * pt-mat.h (tree_matrix::eval): Likewise. |
|
4294 * pt-misc.h (tree_statement_list::eval): Likewise. |
|
4295 * pt-mvr-base.h (tree_multi_val_ret::eval): Likewise. |
|
4296 * pt-mvr.h (tree_oct_obj::eval, tree_index_expression::eval, |
|
4297 tree_multi_assignment_expression::eval): Likewise. |
|
4298 * dassl.cc, fsolve.cc, load-save.cc, lsode.cc, npsol.cc, parse.y, |
|
4299 pt-cmd.cc, pt-exp-base.cc, pt-exp.cc, pt-fvc.cc, pt-mat.cc, |
|
4300 pt-misc.cc, pt-mvr.cc, pt-plot.cc, quad.cc, toplev.cc, variables.cc: |
|
4301 Change callers of eval() to use bool instead of int and to make |
|
4302 use of default argument value. |
|
4303 |
|
4304 * toplev.h, toplev.cc (parse_and_execute, eval_string): Flag args |
|
4305 are now bool instead of int. |
|
4306 |
2856
|
4307 * symtab.h, symtab.cc: Use bool instead of int in more places. |
|
4308 * variables.h, variables.cc: Likewise. |
2857
|
4309 * lex.h, lex.l: Likewise. |
|
4310 * parse.y: Likewise. |
2856
|
4311 * help.cc, input.cc, lex.l, load-save.cc, parse.y, pt-fcn.cc: |
|
4312 Change callers of symbol_table::lookup to use bool instead of int, |
|
4313 and to make use of default arguments. |
|
4314 |
2850
|
4315 Fri Mar 28 15:33:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4316 |
2852
|
4317 * parse.y (Vwarn_comma_in_declaration): Delete. |
|
4318 (symbols_of_parse): Delete DEFVAR for warn_comma_in_declaration. |
|
4319 (decl1): Don't allow commas in declarations. |
|
4320 |
2850
|
4321 * lsode.cc (struct LSODE_OPTIONS): Handle integer options. |
|
4322 (print_lsode_option_list, set_lsode_option, show_lsode_option): Ditto. |
|
4323 (lsode_option_table): Add element for step limit. |
|
4324 (lsode_user_jacobian): New function. |
|
4325 (Flsode): Allow function name arg to be a 2-element string array |
|
4326 specifying the function and jacobian function. |
|
4327 |
|
4328 * variables.cc (get_global_value, set_global_value): New functions. |
|
4329 |
2846
|
4330 Wed Mar 26 17:08:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4331 |
|
4332 Implement static variable declaration: |
|
4333 |
|
4334 * lex.l (is_keyword): Handle static. |
|
4335 * octave.gperf: Likewise. |
|
4336 * parse.y (Vwarn_comma_in_declaration): Rename from |
|
4337 Vwarn_comma_in_global_decl. |
|
4338 Handle new static command. |
|
4339 * pt-cmd.h, pt-cmd.cc (class tree_decl_command): New base class |
|
4340 for static and global declaration commands. |
|
4341 (class tree_global_command): Derive from tree_decl_command. |
|
4342 (class tree_static_command): New class, derived from tree_decl_command. |
|
4343 * pt-fvc.cc, pt-fvc.h (tree_identifier::mark_as_static): New function. |
|
4344 * pt-misc.h, pt-misc.h (class tree_decl_elt): Rename from tree_global. |
|
4345 (class tree_decl_init_list): Rename from tree_global_init_list. |
|
4346 * pt-pr-code.cc, pt-pr-code.h (tree_print_code::visit_decl_command): |
|
4347 Rename from visit_global_command. |
|
4348 (tree_print_code::visit_decl_elt): Rename from visit_global. |
|
4349 (tree_print_code::visit_decl_init_list): Rename from |
|
4350 visit_global_init_list. |
|
4351 * pt-walk.h (tree_walker::visit_decl_command): Rename from |
|
4352 visit_global_command. |
|
4353 (tree_walker::visit_decl_elt): Rename from visit_tree_global. |
|
4354 (tree_walker::visit_decl_init_list): Rename from |
|
4355 visit_global_init_list. |
|
4356 * variables.cc (link_to_global_variable): Trying to make a static |
|
4357 variable global is an error. |
|
4358 * SLList-misc.cc: Instantiate lists of pointers to tree_decl_elt |
|
4359 objects, not tree_global objects. |
|
4360 * symtab.h, symtab.cc (symbol_record::tagged_static): New field. |
|
4361 (symbol_record::mark_as_static, symbol_record::is_static): |
|
4362 New functions. |
|
4363 * symtab.cc (symbol_record::init_state): Initialize tagged_static. |
|
4364 (symbol_record::clear): Don't clear static variables. |
|
4365 * symtab.cc (push_context): Don't do anything for static variables. |
|
4366 |
2825
|
4367 Tue Mar 25 17:17:17 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4368 |
2881
|
4369 * ov-bool-mat.cc, ov-bool-mat.h, ov-bool.cc, ov-bool.h: New files. |
2832
|
4370 |
2831
|
4371 * defaults.cc (symbols_of_defaults): DEFCONST OCTAVE_HOME. |
|
4372 |
|
4373 * toplev.cc (octave_config_info): Delete use of CXXLIBS. |
|
4374 * oct-conf.h.in: Ditto. |
|
4375 |
2830
|
4376 * octave.cc (maximum_braindamage): Don't bind prefer_zero_one_indexing. |
|
4377 * ov.h: Don't declare Vprefer_zero_one_indexing. |
|
4378 * ov.cc: Don't define Vprefer_zero_one_indexing. |
|
4379 (prefer_zero_one_indexing): Delete. |
|
4380 (symbols_of_value): Delete DEFVAR for prefer_zero_one_indexing. |
|
4381 |
2825
|
4382 * ov.h, ov.cc, ov-base.h, ov-base.cc: Add constructors and |
|
4383 extractors for bool and boolMatrix types. |
|
4384 |
|
4385 * ov.cc (install_types): Register octave_bool and |
|
4386 octave_bool_matrix types. |
|
4387 |
|
4388 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
4389 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
4390 op-s-cm.cc, op-s-m.cc, op-s-s.cc, ov-re-mat.cc: |
|
4391 Return boolMatrix instead of Matrix object. |
|
4392 * ops.h (BOOL_OP3, MX_MX_BOOL_OP): Likewise. |
|
4393 |
|
4394 * op-b-b.h, op-b-b.cc, op-bm-bm.h, op-bm-bm.cc: New files. |
|
4395 * Makefile.in: Add them to the lists. |
|
4396 * ops.cc: Include header files here. |
|
4397 (install_ops): Call install_b_b_ops() and install_bm_bm_ops() here. |
|
4398 |
|
4399 * variables.cc (symbols_of_variables): Don't rely on default |
|
4400 conversion from int to double for value returned from |
|
4401 default_history_size(). |
|
4402 |
|
4403 * pr-output.cc: Include cstdio. |
|
4404 |
|
4405 * parse.y (param_list_end): Fix typo in last change. |
|
4406 |
|
4407 * quad.cc (quad): Cast integer return values to double. |
|
4408 * npsol.cc (show_npsol_option): Likewise. |
|
4409 * qpsol.cc (show_qpsol_option): Likewise. |
|
4410 * file-io.cc (Fsprintf, Ffwrite): Likewise. |
|
4411 |
|
4412 Mon Mar 24 13:11:47 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4413 |
|
4414 * ov-typeinfo.cc (typeinfo): If invoked with an argument, return |
|
4415 the type of the argument as a string. Fix doc string. |
|
4416 |
2821
|
4417 Thu Mar 20 14:47:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4418 |
|
4419 * mk-oct-links (links_dir): Don't use -h option for grep. It's |
|
4420 not needed since we are working on one file at a time anyway. |
|
4421 |
2819
|
4422 Mon Mar 17 10:53:29 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4423 |
|
4424 * lex.l (handle_identifier): When handling indirect_ref, set |
|
4425 lexer_flags.quote_is_transpose to 1 so that a.b' to work as |
|
4426 expected. |
|
4427 |
|
4428 * parse.y (param_list_beg, param_list_end): New nonterminals. |
|
4429 (param_list, param_list1): Use them. |
|
4430 |
2811
|
4431 Wed Mar 12 16:57:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4432 |
|
4433 * Makefile.in (install-strip): New target. |
|
4434 |
2806
|
4435 Mon Mar 10 22:38:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4436 |
|
4437 * Makefile.in (clean): Delete .oct files too. |
|
4438 |
|
4439 * toplev.cc (Vdefault_eval_print_flag): New static variable. |
|
4440 (eval_string): New arg, print. |
|
4441 (Feval): Pass Vdefault_eval_print_flag to eval_string. |
|
4442 (default_eval_print_flag): New function. |
|
4443 (symbols_of_toplev): New function. |
|
4444 |
|
4445 * variables.cc (install_builtin_variables): Call it. |
|
4446 |
|
4447 * pt-exp.h, pt-exp.cc (class tree_boolean_expression): Rename enum |
|
4448 fields `and' and `or' to `bool_and' and `bool_or'. |
|
4449 (tree_unary_expression): Rename enum field `not' to `unot'. |
|
4450 (class tree_binary_expression): Rename enum fields `and' and `or' |
|
4451 to `el_and' and `el_or'. |
|
4452 * parse.y: Change all uses. |
|
4453 |
|
4454 * time.cc (extract_tm): Truncate field values instead of rounding. |
|
4455 (gmtime, localtime): Likewise, for timeval. |
|
4456 |
|
4457 * ov.h (class octave_value): Delete unused variable freeptr. |
|
4458 |
|
4459 * mappers.cc: Delete functions that are already in |
|
4460 liboctave/lo-mappers.cc. |
|
4461 |
|
4462 * oct-strstrm.cc (octave_base_strstream::tell): Use const_cast, |
|
4463 not static_cast. |
|
4464 |
|
4465 * help.cc (help_from_list): Add missing const qualifiers. |
|
4466 * help.h (struct help_list): Likewise. |
|
4467 * lex.l (match_any, plot_style_token): Likewise. |
|
4468 * load-save.cc (extract_keyword, ascii_save_type): Likewise. |
|
4469 * oct-hist.cc (mk_tmp_hist_file): Likewise. |
|
4470 * octave.cc (execute_startup_files): Likewise. |
|
4471 * octave.gperf (struct octave_kw): Likewise. |
|
4472 * pr-output.cc (pr_any_float): Likewise. |
|
4473 * pt-mvr.cc (tree_index_expression::eval_error): Likewise. |
|
4474 * pt-exp-base.h, pt-exp.h, pt-exp.cc: Likewise. |
|
4475 * parse.y: Likewise. |
|
4476 |
2800
|
4477 Sun Mar 9 03:46:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4478 |
2806
|
4479 * pt-exp-base.h (tree_expression): Delete extra comma at end of list. |
|
4480 |
|
4481 * dirfns.cc error.cc file-io.cc fsolve.cc input.cc load-save.cc |
|
4482 npsol.cc pt-fcn.cc qpsol.cc quad.cc syscalls.cc toplev.cc |
|
4483 variables.cc: Eliminate embedded newlines in string constants. |
|
4484 |
|
4485 * Map.cc, data.cc, dirfns.cc, dynamic-ld.cc, file-io.cc, |
|
4486 fsolve.cc, getgrent.cc, getpwent.cc, getrusage.cc, help.cc, |
|
4487 input.cc, load-save.cc, mappers.cc, minmax.cc, npsol.cc, |
|
4488 oct-fstrm.cc, oct-procbuf.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
4489 oct-stream.cc, oct-stream.h, oct-strstrm.cc, octave.cc, |
|
4490 ov-base.h, ov-range.cc, ov-typeinfo.cc, ov.cc, pr-output.cc, |
|
4491 pt-cmd.cc, pt-exp.cc, pt-fcn.cc, pt-fvc.cc, pt-mat.cc, |
|
4492 pt-misc.cc, pt-plot.cc, qpsol.cc, quad.cc, sort.cc, strfns.cc, |
|
4493 symtab.cc, syscalls.cc, sysdep.cc, time.cc, toplev.cc, |
|
4494 unwind-prot.cc, unwind-prot.h, variables.cc, xpow.cc: |
|
4495 Use `static_cast<T> (val)' instead of old C-style `(T) val' casts. |
2800
|
4496 |
2799
|
4497 Sat Mar 8 02:35:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4498 |
|
4499 * load-save.cc (save_ascii_data, save_three_d): Where appropriate, |
|
4500 use bool instead of int. |
|
4501 (save_binary_data, save_mat_binary_data, save_ascii_data): |
|
4502 Print warning instead of error for wrong type arg. |
|
4503 |
|
4504 * gripes.cc (gripe_wrong_type_arg): New arg, is_error. |
|
4505 |
|
4506 * pt-plot.cc (save_in_tmp_file): Call save_ascii_data with bool |
|
4507 arg, not int. |
|
4508 |
2797
|
4509 Fri Mar 7 00:56:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4510 |
|
4511 * dassl.cc (show_dassl_option): For values that are determined |
|
4512 automatically, return a string instead of a magic value (-1.0). |
|
4513 * fsolve.cc (show_fsolve_option): Likewise. |
|
4514 * lsode.cc (show_lsode_option): Likewise. |
|
4515 * npsol.cc (show_npsol_option): Likewise. |
|
4516 * qpsol.cc (show_qpsol_option): Likewise. |
|
4517 |
|
4518 * variables.cc (extract_function): New function. |
|
4519 * dassl.cc (Fdassl): Use it instead of is_valid_function. |
|
4520 * fsolve.cc (Ffsolve): Likewise. |
|
4521 * npsol.cc (Fnpsol): Likewise. |
|
4522 * qpsol.cc (Fqpsol): Likewise. |
|
4523 * quad.cc (Fquad): Likewise. |
|
4524 |
2795
|
4525 Thu Mar 6 20:07:24 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4526 |
|
4527 * sighandlers.cc (my_friendly_exit, octave_new_handler, |
|
4528 sigfpe_handler, sigpipe_handler): Don't all error() or warning(). |
|
4529 |
|
4530 * pager.cc (pager_death_handler): Don't try to clear pager, just |
|
4531 print message to cerr. |
|
4532 (do_sync): If the status of the pager is bad or it looks like it |
|
4533 is dead, restore the interrupt handler. |
|
4534 |
|
4535 * load-save.cc (extract_keyword (istream&, char*, int&)): |
|
4536 Move declaration of buf inside loop, to avoid deleting its guts |
|
4537 and then trying to reuse it. |
|
4538 (extract_keyword (istream&, char*)): Likewise. |
|
4539 |
2790
|
4540 Tue Mar 4 20:36:53 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4541 |
2791
|
4542 * pt-fcn.cc (tree_function::eval): Protect function from being |
|
4543 redefined while it is being evaluated. |
|
4544 (unprotect_function): New function, for use with unwind_protect stuff. |
|
4545 * pt-fcn.h (tree_function::symtab_entry): New data member. |
|
4546 (tree_function::init): Initialize it to 0. |
|
4547 (tree_function::stash_symtab_ptr): New function. |
|
4548 * parse.y (frob_function_def): Stash pointer to function's |
|
4549 symbol_record in the function definition. |
|
4550 |
|
4551 * symtab.cc (symbol_record::read_only_error): New argument, |
|
4552 action. Change all callers. |
|
4553 (symbol_record::rename): Don't allow read-only symbols to be renamed. |
|
4554 |
2790
|
4555 * variables.cc (Fexist): Don't let files with `.' in their names |
|
4556 confuse us. |
|
4557 |
|
4558 * symtab.cc (valid_identifier (const string&)): New function. |
|
4559 |
2779
|
4560 Sat Mar 1 15:23:14 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2775
|
4561 |
|
4562 * Version 2.0.5 released. |
|
4563 |
2779
|
4564 Sat Mar 1 01:34:08 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4565 |
|
4566 * Makefile.in (stamp-oct-links): New target. Make links in build |
|
4567 directory too, so that the tests will work. |
|
4568 |
2777
|
4569 * quad.cc: If quad is defined, undefine it. |
|
4570 |
2775
|
4571 * octave.cc: If WITH_KPATHSEARCH is defined, don't define |
|
4572 program_invocation_name or program_invocation_short_name. |
2774
|
4573 |
|
4574 * strftime.c: Update to current version from FSF. |
|
4575 * time.cc (Fstrftime): Call strftime with buf = 0 to get buffer |
|
4576 size, then call again to actually format the time struct. |
|
4577 |
2762
|
4578 Fri Feb 28 01:49:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4579 |
2764
|
4580 Implement switch statement: |
|
4581 |
|
4582 * parse.y (Vwarn_variable_switch_label): New static variable. |
|
4583 (warn_variable_switch_label): New function. |
|
4584 (symbols_of_parse): Provide warn_variable_switch_label as Octave |
|
4585 variable here. |
|
4586 (make_switch_case, finish_switch_command): New functions. |
|
4587 (maybe_warn_variable_switch_label): New function. |
|
4588 (end_error): Handle endswitch. |
|
4589 (switch_command, case_list, case_list1, switch_case, default_case): |
|
4590 New nonterminals. |
|
4591 (command): Add switch_command here. |
|
4592 * lex.l (is_keyword): Handle switch, case, otherwise, and endswitch. |
|
4593 * octave_gperf: Recognize switch, case, otherwise, and endswitch. |
|
4594 * token.h (end_tok_type): New item, switch_end. |
|
4595 * pt-cmd.cc (tree_switch_command): New class. |
|
4596 * pt-misc.cc (tree_switch_case, tree_switch_case_list): New classes. |
|
4597 * pt-pr-code.cc (tree_print_code::visit_switch_case, |
|
4598 tree_print_code::visit_switch_case_list, |
|
4599 tree_print_code::visit_switch_command): New functions. |
|
4600 * pt-walk.h (tree_walker::visit_switch_case, |
|
4601 tree_walker::visit_switch_case_list, |
|
4602 tree_walker::visit_switch_command): New pure virtual declarations. |
|
4603 Implement new switch statement. |
|
4604 * SLList-misc.cc: Instantiate lists of pointers to |
|
4605 tree_switch_case objects too. |
|
4606 |
|
4607 * lex.h, lex.l, parse.y: Delete all references to lexer_flags::iffing. |
|
4608 |
2762
|
4609 * syswait.h: Include sys/wait.h on NeXT systems, but don't use the |
|
4610 WIFEXTED, WEXITSTATUS, and WIFSIGNALLED macros defined there. |
|
4611 Also define waitpid in terms of wait4. From Rex A. Dieter |
|
4612 <rdieter@math.unl.edu>. |
|
4613 |
2759
|
4614 Wed Feb 26 16:43:31 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4615 |
|
4616 * oct-stream.cc (octave_base_stream::do_scanf): Don't report an |
|
4617 error if a conversion fails or we reach EOF. |
|
4618 |
2745
|
4619 Tue Feb 25 22:21:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4620 |
|
4621 * time.cc (strftime): increase initial buffer size. |
|
4622 |
|
4623 Mon Feb 24 17:49:21 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4624 |
|
4625 * pt-fvc.cc (tree_builtin::eval): Enable checking for max number |
|
4626 of arguments. |
|
4627 |
|
4628 * error.cc (handle_message): Don't fail if args is empty. |
|
4629 |
|
4630 Sun Feb 23 22:42:52 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4631 |
|
4632 * lex.h (lexical_feedback::looking_at_return_list): New field. |
|
4633 (lexical_feedback::looking_at_parameter_list): Ditto. |
|
4634 * lex.l (lexical_feedback::init): Initialize them. |
|
4635 (handle_identifier): Use them. |
|
4636 * parse.y: Likewise. |
|
4637 |
2712
|
4638 Fri Feb 21 15:35:18 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4639 |
2716
|
4640 * lex.l: Require flex 2.5 or later (we really want 2.5.4 or later, |
|
4641 but there seems to be no good way to check the patchlevel). |
|
4642 |
2712
|
4643 * oct-stream.cc (octave_base_stream::oscanf): Instead of returning |
|
4644 an error, just quit processing after a conversion fails. |
|
4645 |
2709
|
4646 Thu Feb 20 02:58:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2702
|
4647 |
|
4648 * Version 2.0.4 released. |
|
4649 |
2706
|
4650 Wed Feb 19 10:30:14 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4651 |
2705
|
4652 * sighandlers.cc (octave_ignore_interrupts, |
|
4653 octave_catch_interrupts, octave_set_interrupt_handler): |
|
4654 Return old value, not pointer to static data. Fix all uses. |
|
4655 |
|
4656 * sighandlers.h (octave_interrupt_handler): Move declaration here. |
|
4657 * sighandlers.cc: From here. |
|
4658 |
|
4659 * toplev.cc: Undo previous change. |
|
4660 |
2702
|
4661 * lex.l (handle_identifier): Allow commands like ls, save, etc. to |
|
4662 also be used as simple variable names. Also make it possible to |
|
4663 use the normal function call syntax to invoke them. |
|
4664 |
2693
|
4665 Tue Feb 18 09:22:04 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2689
|
4666 |
2702
|
4667 * Makefile.in (%.oct:%.o, %.oct:pic/%.o): Use $(SH_LDFLAGS) here. |
|
4668 |
2690
|
4669 * Version 2.0.3 released. |
|
4670 |
2693
|
4671 Tue Feb 18 00:27:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4672 |
|
4673 * toplev.cc (run_command_and_return_output): |
|
4674 Block SIGCHLD while running subprocess. |
|
4675 (cleanup_iprocstream): Unblock it here. |
|
4676 |
|
4677 * sighandlers.h (BLOCK_SIGNAL, BLOCK_CHILD, UNBLOCK_CHILD): Move here. |
|
4678 * sighandlers.cc: From here. |
|
4679 |
2692
|
4680 * toplev.cc (system): Shift then mask exit status. |
|
4681 |
|
4682 * help.cc (try_info): Shift first, then mask exit status. |
|
4683 |
2689
|
4684 * toplev.cc (octave_config_info): Handle option argument. |
|
4685 |
2686
|
4686 Fri Feb 14 16:23:30 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4687 |
2687
|
4688 * oct-stream.cc (octave_base_stream::do_scanf): Don't forget to |
|
4689 check to see if the result matrix needs resizing! |
|
4690 |
2686
|
4691 * Makefile.in (bin-dist): Don't write empty strings to LIBRARIES. |
|
4692 |
2669
|
4693 Thu Feb 13 03:02:08 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4694 |
2676
|
4695 * Makefile.in (stamp-prereq): Depend on stamp-picdir. |
|
4696 (all): Don't depend on stamp-prereq or stamp-picdir. |
|
4697 (stamp-tinst, stamp-interp, libtinst.a, liboctinterp.a): |
|
4698 Do depend on stamp-prereq. |
|
4699 (stamp-picdir): Silence noise about making pic. |
|
4700 (stamp-tinst, stamp-interp): Use $(SH_LD) $(SH_LDFLAGS) instead of |
|
4701 $(CXX) -shared. |
|
4702 |
2675
|
4703 * oct-conf.h.in: Reinstate RLD_FLAG. |
|
4704 * toplev.cc (octave_config_info): Likewise. |
|
4705 |
2672
|
4706 * data.cc (map_d_m, map_m_d, map_m_m): Rename from map. |
|
4707 (Fatan2): Use new function names. |
|
4708 |
|
4709 * pt-fvc.cc (apply_mapper_fcn): Use member function map() instead |
|
4710 of friend function. |
|
4711 |
2669
|
4712 * gripes.cc (gripe_wrong_type_arg (const char*, const string&)): |
|
4713 New function. |
|
4714 |
|
4715 Wed Feb 12 17:27:53 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4716 |
|
4717 * syscalls.cc (symbols_of_syscalls): Add O_ASYNC and O_SYNC. |
|
4718 |
|
4719 Mon Feb 10 01:22:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4720 |
|
4721 * dirfns.cc (Freaddir, Fmkdir, Frmdir, Frename): |
|
4722 Also return status and error message. |
|
4723 |
|
4724 * syscalls.cc (Fdup2, Fexec, Ffork, Ffcntl, Funlink, Fmkfifo, |
|
4725 Fpipe, Fwaitpid): Also return error message. |
|
4726 |
2664
|
4727 Sat Feb 8 17:16:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4728 |
2665
|
4729 * pt-exp.cc (tree_simple_assignment_expression::eval): Return |
|
4730 value of RHS, but (if printing) print complete value of LHS. |
|
4731 |
2664
|
4732 * pr-output.cc (octave_print_internal): Print a new line for empty |
|
4733 string matrices. |
|
4734 |
2663
|
4735 Wed Feb 5 14:30:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4736 |
|
4737 * oct-stream.cc (scanf_format_list::process_conversion): Accept |
|
4738 but don't actually use h, l, and L modifiers. Always insert l |
|
4739 modifier for floating point conversions. |
|
4740 |
2652
|
4741 Fri Jan 31 13:55:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4742 |
|
4743 * pager.cc (do_sync): Always flush the cout stream after writing. |
|
4744 |
2643
|
4745 Wed Jan 29 08:25:29 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4746 |
2648
|
4747 * defaults.cc (exec_path): Don't include bin_dir in std_path. |
|
4748 |
2646
|
4749 * pager.cc (do_sync): Flush the cout stream after writing if |
|
4750 running in interactive or forced_interactive mode. |
|
4751 |
|
4752 * mk-oct-links: Rename from mk-oct-links.in. |
|
4753 Don't use symbolic links. |
|
4754 * Makefile.in: Distribute mk-oct-links, not mk-oct-links.in |
|
4755 (mk-oct-links): Delete target. |
|
4756 (install-oct, bin-dist): Don't depend on mk-oct-links. |
|
4757 Run $(srcdir)/mk-oct-links, not ./mk-oct-links. |
|
4758 |
2643
|
4759 * qr.cc (qr): Doc fix. |
|
4760 |
2638
|
4761 Tue Jan 28 10:48:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4762 |
|
4763 * Makefile.in (install-inc): Create a relative symbolic link. |
|
4764 (install-bin): Create a relative symbolic link. |
|
4765 |
2630
|
4766 Mon Jan 27 12:12:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4767 |
2634
|
4768 * Version 2.0.2 released. |
|
4769 |
|
4770 * Makefile.in (CXXFLAGS_NO_PT_FLAGS): Rename from XALL_CXXFLAGS. |
|
4771 Substitute bsd_gcc_kluge_targets_frag. |
|
4772 |
2630
|
4773 * sysdep.cc (Fsleep): New function. |
|
4774 (Fusleep): New function. |
|
4775 |
|
4776 * toplev.cc (octave_config_info): Don't include RLD_FLAG. |
|
4777 * oct-conf.h.in: Don't define RLD_FLAG |
|
4778 |
2626
|
4779 Sun Jan 26 19:41:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4780 |
|
4781 * sighandlers.cc (sigchld_handler): Block SIGCHLD while |
|
4782 sigchld_hander is running. |
|
4783 |
2624
|
4784 Sat Jan 25 22:36:39 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4785 |
|
4786 * Makefile.in (bin-dist): Update for 2.x. |
|
4787 |
2621
|
4788 Fri Jan 24 10:05:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4789 |
|
4790 * mk-oct-links.in: New arg, -p, to just print list of files to link. |
|
4791 |
|
4792 * lex.l (handle_number): Convert `D' or `d' exponents to `e' |
|
4793 before scanning. |
|
4794 |
2620
|
4795 Thu Jan 23 10:00:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4796 |
|
4797 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_no_op_command): |
|
4798 New function. |
|
4799 * pt-cmd.h, pt-cmd.cc (tree_no_op_command): New class. |
|
4800 * parse.y (make_break_command, make_continue_command, |
|
4801 make_return_command): Where they don't really make sense, turn |
|
4802 these commands into no-ops. Accept return and break if reading a |
|
4803 script file. |
|
4804 * toplev.cc (parse_and_execute): Handle return and break in script |
|
4805 files. Quit executing commands if an error occurs when reading a |
|
4806 script file. Set global_command to 0 after deleting it. |
|
4807 (main_loop): If not interactive or forced_interactive, handle |
|
4808 break and return, and quit executing commands if an error occurs. |
|
4809 Set global_command to 0 after deleting it. |
|
4810 * error.cc (Ferror): Doc fix. |
|
4811 * pt-walk.h (tree_walker): Add declaration for visit_no_op_command. |
|
4812 |
2618
|
4813 Wed Jan 22 20:54:12 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4814 |
|
4815 * input.cc (gnu_readline): If not using readline, flush |
|
4816 rl_outstream after printing prompt. |
|
4817 (octave_gets): Also call flush_octave_stdout() if |
|
4818 forced_interactive, not just if interactive. |
|
4819 (do_input_echo): If forced_interactive, only echo prompt and |
|
4820 command line if also reading a script file. |
|
4821 |
2616
|
4822 Tue Jan 21 23:02:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4823 |
|
4824 * SLList.h: Include "BaseSLList.h", not <BaseSLList.h>. |
|
4825 |
2610
|
4826 Mon Jan 20 11:11:12 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4827 |
2614
|
4828 * lex.l (token_stack): Don't declare static. |
|
4829 * pt-plot.cc (tmp_files): Likewise. |
|
4830 * toplev.cc (octave_atexit_functions): Likewise. |
|
4831 * unwind-prot.cc (unwind_protect_list): Likewise. |
|
4832 |
2613
|
4833 * ops.h (MX_MX_BOOL_OP): Correctly handle case of one or both |
|
4834 arguments being empty. Change all callers. |
|
4835 |
|
4836 * oct-stream.cc (printf_value_cache::looking_at_string): |
|
4837 Handle empty strings correctly now that they are 0x0. |
|
4838 |
2610
|
4839 * file-io.cc: Don't include "syswait.h" here. |
|
4840 |
|
4841 Sun Jan 19 22:38:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4842 |
|
4843 * oct-stream.h (octave_base_stream::seek): Declare offset arg as |
|
4844 streamoff, not streampos. |
|
4845 (octave_stream::seek): Likewise. |
|
4846 * oct-strstrm.h (octave_base_strstream::seek): Likewise. |
|
4847 * oct-stdstrm.h (octave_base_stdiostream::seek): Likewise. |
|
4848 * oct-iostrm.h (octave_base_iostream::seek): Likewise. |
|
4849 * oct-fstrm.h (octave_fstream::seek): Likewise. |
|
4850 |
2609
|
4851 Fri Jan 17 18:13:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4852 |
|
4853 * file-io.cc (Ffflush): Handle stdout as a special case. |
|
4854 |
|
4855 * oct-stream.cc (octave_stream_list::do_get_file_number): |
|
4856 Do the work for octave_stream::get_file_number. |
|
4857 (octave_stream_list::get_file_number): Convert to static function. |
|
4858 |
2608
|
4859 Wed Jan 8 11:42:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4860 |
|
4861 * log.cc (sqrtm): For complex arg case, compute sqrt, not log. |
|
4862 |
2602
|
4863 Tue Jan 7 00:16:41 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4864 |
|
4865 * Version 2.0.1 released. |
|
4866 |
|
4867 Mon Jan 6 00:00:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4868 |
|
4869 * pt-mat.cc (tm_row_const_rep::all_mt): New variable. |
|
4870 (tm_row_const::all_empty): New function. |
|
4871 (tm_row_const::tm_row_const_rep::init): Set all_mt here. |
|
4872 (tm_const::all_mt): New variable. |
|
4873 (tm_const::all_emtpy): New function. |
|
4874 (tm_const::init): Set all_mt here. |
|
4875 (tree_matrix::eval): Return an empty matrix if the list contains |
|
4876 only empty elements. If it contains only empty strings, return an |
|
4877 empty string. |
|
4878 |
2601
|
4879 Sun Jan 5 12:50:25 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4880 |
|
4881 * ops.h (SC_MX_BOOL_OP, MX_SC_BOOL_OP): New arg, empty_result. |
|
4882 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
4883 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
4884 op-s-cm.cc, op-s-m.cc, op-str-str.cc: Change all uses of |
|
4885 SC_MX_BOOL_OP and MX_SC_BOOL_OP macros. Return correct results |
|
4886 for empty matrix cases. |
|
4887 |
|
4888 * pt-fcn.cc (tree_function::eval): If Vdefine_all_return_values is |
|
4889 true, initialize return values before evaluating function, for |
|
4890 compatibility with Matlab. |
|
4891 |
|
4892 * oct-stream.cc (get_size): Correctly set size when arg is scalar. |
|
4893 |
|
4894 Thu Jan 2 12:40:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4895 |
|
4896 * Makefile.in (install-oct): Quote $(OCT_FILES) in for loop to |
|
4897 avoid syntax error from ksh. |
|
4898 |
|
4899 * pr-output.cc (octave_print_internal): Avoid unused parameter |
|
4900 warning from gcc. |
|
4901 |
2600
|
4902 Thu Dec 19 12:13:42 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4903 |
|
4904 * oct-stream.cc (octave_base_stream::do_scanf): |
|
4905 Don't treat %l{e,f,g} differently from %{e,f,g}. |
|
4906 (octave_base_stream::do_oscanf): Likewise. |
|
4907 |
|
4908 * sighandlers.cc (sigchld_handler): Fix typos. |
|
4909 |
2598
|
4910 Wed Dec 18 20:17:23 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4911 |
2599
|
4912 * file-io.cc (Ffgetl, Ffgets): Also return number of characters read. |
|
4913 |
|
4914 * ov-range.cc (octave_range::not): New function. |
|
4915 * ov-range.h (octave_range::uminus): New function. |
|
4916 |
2598
|
4917 * BaseSLList.cc: Include error.h. |
|
4918 (BaseSLList::error): Call ::error() to process error message. |
|
4919 |
2589
|
4920 Fri Dec 13 02:38:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4921 |
|
4922 * ov.cc (octave_value::convert_and_assign): Preserve lhs value if |
|
4923 assignment fails. |
|
4924 |
2586
|
4925 Wed Dec 11 12:33:16 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4926 |
|
4927 * pt-plot.cc (GPLOT_CMD_END): Don't put semicolons at the end of |
|
4928 each plot command; it causes trouble with gnuplot 3.5. |
|
4929 |
2580
|
4930 Tue Dec 10 00:31:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4931 |
2583
|
4932 * Version 2.0 released. |
|
4933 |
2584
|
4934 * pr-output.cc (set_format_style): Don't try to access argv unless |
|
4935 argc > 1. |
|
4936 |
2580
|
4937 * SLList-expr.cc SLList-misc.cc SLList-plot.cc SLList-str.cc |
|
4938 SLList-tc.cc SLList-tm.cc SLList.h SLStack-i.cc SLStack-pc.cc |
|
4939 SLStack-str.cc SLStack-sym.cc SLStack-tok.cc SLStack-ue.cc |
|
4940 SLStack-ui.cc, pt-mat.cc: Include Stack.h, Stack.cc, SLStack.cc, |
|
4941 and SLList.cc as necessary. |
|
4942 |
|
4943 * Stack.cc, SLStack.cc, SLList.cc: New files. |
|
4944 * Makefile.in (SOURCES): Add them to the list. |
|
4945 |
2575
|
4946 Mon Dec 9 12:03:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4947 |
2577
|
4948 * Makefile.in (install-bin): Use $(EXE) suffix so install will |
|
4949 find the right file on cygwin32 systems. |
|
4950 |
2575
|
4951 * ov.h: Declare proper form of do_binary_op as friend to |
|
4952 octave_value class. |
|
4953 |
2572
|
4954 Sat Dec 7 22:00:10 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4955 |
|
4956 * oct-stream.cc (do_printf_conv, do_scanf_conv, |
|
4957 do_oscanf_num_conv, do_oscanf_str_conv): Convert to real |
|
4958 functions instead of CPP macros, using templates where necessary. |
|
4959 (do_oscanf_num_conv, do_oscanf_str_conv): Correctly handle |
|
4960 discarded values. |
|
4961 |
2569
|
4962 Fri Dec 6 00:20:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4963 |
2572
|
4964 * Version 1.94. |
|
4965 |
2571
|
4966 * Map-*.cc, SLList-*.cc, SLStack-*.cc: Include config.h. |
|
4967 |
|
4968 * ov.h: Don't include SLList.h. |
|
4969 |
|
4970 * SLStack.cc: Delete. Move everything to SLStack.h. |
|
4971 |
|
4972 * BaseSLList.h, BaseSLList.cc: New files. Split out the |
|
4973 non-template base class parts of SLList. |
|
4974 |
2569
|
4975 * Makefile.in (TEMPLATE_SRC): Delete. Move files to SOURCES. |
|
4976 * Map.h, Map.cc: Add #pragma interface/implementation. |
|
4977 * SLStack.h, SLStack.cc: Add #pragma interface/implementation. |
|
4978 |
|
4979 * SLList.h, SLList.cc: New files, from libg++, but with #pragma |
|
4980 interface/implementation. |
|
4981 * Makefile.in (SOURCES): Add SLList.cc. |
|
4982 (INCLUDES): Add SLList.h. |
|
4983 |
2566
|
4984 Thu Dec 5 18:36:44 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4985 |
|
4986 * octave.cc: Don't include sun-utils.h. |
|
4987 |
2563
|
4988 Tue Dec 3 23:47:09 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4989 |
|
4990 * op-str-str.cc (eq, ne): Handle operations with scalars. |
|
4991 |
2555
|
4992 Thu Nov 21 12:30:36 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4993 |
|
4994 * ov-str-mat.h (octave_char_matrix_str): Provide transpose and |
|
4995 hermitian operators. |
|
4996 * ov-ch-mat.h (octave_char_matrix): Likewise. |
|
4997 |
2548
|
4998 Wed Nov 20 00:35:57 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4999 |
2554
|
5000 * sighandlers.h (struct octave_interrupt_handler): Provide |
|
5001 forward declaration here. |
|
5002 * sighandlers.cc (octave_interrupt_handler): New struct. |
|
5003 (octave_catch_interrupts): Rename from catch_interrupts. |
|
5004 (octave_ignore_interrupts, octave_set_interrupt_handler): |
|
5005 New functions. |
|
5006 * help.cc, oct-hist.cc, pager.cc, toplev.cc: Use new functions for |
|
5007 handling interrupts so that we can hide the details of whether or |
|
5008 not we have to deal with SIGBREAK. |
|
5009 |
|
5010 * pt-plot.cc [! HAVE_POSIX_SIGNALS] (open_plot_stream): |
|
5011 Simply ignore and restore the interrupt handler here. |
|
5012 |
|
5013 * sighandlers.cc (MAYBE_REINSTALL_SIGHANDLER): New macro. Use it |
|
5014 instead of always checking MUST_REINSTALL_SIGHANDLERS everywhere. |
|
5015 (sigchld_handler): If octave_child_list is empty, wait for any |
|
5016 child, but don't hang, and don't collect status info. |
|
5017 [__EMX__] (sigchld_handler): Save and restore handlers for SIGINT, |
|
5018 SIGBREAK, and SIGCHLD. Ignore them while waiting on children. |
|
5019 (install_signal_handlers): If SIGBREAK exists, handle it like SIGINT. |
|
5020 |
2552
|
5021 * toplev.cc [USE_READLINE] (clean_up_and_exit): |
|
5022 Call rl_deprep_terminal() to restore terminal settings. |
|
5023 |
|
5024 * sysdep.cc [__EMX__ && OS2] (Fextproc): New command. |
|
5025 [__EMX__ && OS2] (FEXTPROC): Alias for Fextproc. |
|
5026 |
|
5027 * Version 1.93. |
|
5028 |
2549
|
5029 * sysdep.cc (octave_chdir): [__EMX__]: Make copy of string before |
|
5030 converting to upper case. |
|
5031 |
2548
|
5032 * getgrent.cc (mk_gr_map): Only set the passwd field if |
|
5033 HAVE_GR_PASSWD is defined. |
|
5034 |
2533
|
5035 Tue Nov 19 12:01:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5036 |
2546
|
5037 * sysdep.cc (OS2_init): New function. |
|
5038 [__EMX__] (sysdep_init): Call it. |
|
5039 |
2542
|
5040 * lex.l (plot_style_token): Add new plot styles for gnuplot 3.6. |
2543
|
5041 * pt-plot.cc (subplot_style::columns_ok): Rename from |
|
5042 subplot_style::errorbars. Recognize more styles and do a better |
|
5043 job of diagnosing column number/style mismatches. |
2542
|
5044 |
2536
|
5045 * sighandlers.cc (my_friendly_exit): If we are called twice, try |
|
5046 to remove the signal handler for SIGABRT and the call abort (). |
|
5047 |
2534
|
5048 * help.cc (Ftype): If a function is defined from a file and |
|
5049 transformed text has not been requested, just print the contents |
|
5050 of the file. |
|
5051 |
2533
|
5052 * parse.y (fold): New functions for constant folding for binary |
|
5053 and unary expressions. Keep track of original text even when |
|
5054 transformations occur. |
|
5055 (make_binary_op, make_boolean_op, make_unary_op): Use them. |
|
5056 (finish_colon_expression, finish_matrix): Keep track of original |
|
5057 text even when transformations occur. |
|
5058 |
|
5059 * help.cc (Ftype): Don't mess with Vps4. |
|
5060 Handle new option `-transformed'. |
|
5061 |
|
5062 * pt-const.h, pt-const.cc (tree_constant::print): |
|
5063 New arg, pr_orig_text. |
|
5064 |
|
5065 * pt-exp.h, pt-exp.cc (tree_colon_expression::is_range_constant): |
|
5066 Delete. |
|
5067 |
|
5068 * pt-exp-base.h (tree_expression::original_text): New virtual function. |
|
5069 pt-exp-base.cc (tree_expression::original_text): Default version. |
|
5070 |
|
5071 * pt-pr-code.h (tree_print_code::print_original_text, |
|
5072 tree_print_code::prefix): New fields. |
|
5073 * pt-pr-code.cc (tree_print_code::visit_constant): Pass |
|
5074 print_original_text to tree_constant::print(). |
|
5075 (tree_print_code::indent): Use prefix instead of Vps4. |
|
5076 * pt-fcn.cc (tree_function::print_function_header, |
|
5077 tree_function::print_function_trailer): Pass Vps4 to |
|
5078 tree_print_code_constructor for prefix. |
|
5079 * pt-misc.cc (tree_statement::maybe_echo_code): Pass Vps4 to |
|
5080 tree_print_code_constructor for prefix. |
|
5081 |
|
5082 * pt-mat.h, pt-mat.cc (tree_matrix::all_elements_are_constant): |
|
5083 Rename from is_matrix_constant. |
|
5084 (tree_matrix_row::all_elements_are_constant): Likewise. |
|
5085 Change all callers. |
|
5086 |
|
5087 Mon Nov 18 14:13:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5088 |
|
5089 * Makefile.in (install-inc): Try harder to create the link from |
|
5090 include/octave to include/octave-VERSION. |
|
5091 |
2524
|
5092 Sun Nov 17 14:14:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5093 |
2527
|
5094 * Makefile.in (parse.cc): Expect 13 shift/reduce conflicts. |
2526
|
5095 |
2525
|
5096 * parse.y (set_stmt_print_flag): New function. |
|
5097 (sep_type): New member for bison %union declaration. |
|
5098 Simplify rules for statement lists keeping track of the type of |
|
5099 the first separator in the values associated with the |
|
5100 nonterminals for the separators. |
|
5101 |
2524
|
5102 * lex.l (handle_identifier): Set lexer_flags.doing_set if the |
|
5103 token is "gset", not "set". |
|
5104 |
|
5105 Sat Nov 16 21:41:26 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5106 |
|
5107 * Makefile.in (parse.cc, lex.cc): Add special rules for these files. |
|
5108 Delete pattern rules for .y and .l files. |
|
5109 |
2522
|
5110 Fri Nov 15 13:48:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5111 |
2523
|
5112 * pt-plot.cc: Put semicolons at the ends of all plot commands. |
|
5113 |
2522
|
5114 * defaults.cc (subst_octave_home): Start subsequent searchs from |
|
5115 the end of the replaced text. |
|
5116 |
|
5117 * pr-output.cc (pr_any_float): Kluge for SCO systems. |
|
5118 |
|
5119 * pr-output.cc (pr_any_float, pr_complex): Don't declare inline. |
|
5120 |
|
5121 * mappers.cc: Include lo-ieee.h, for isinf and isnan on SCO |
|
5122 systems. |
|
5123 |
2512
|
5124 Thu Nov 14 00:06:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5125 |
2520
|
5126 * pt-plot.cc (Fgset, Fgshow): New commands. |
|
5127 (Fshow): Print warning and call gshow. |
|
5128 (Fset): Print warning and call gset. |
|
5129 |
2517
|
5130 * variables.cc (parse_fcn_file): Add unwind-protect for file |
|
5131 pointer, so the file is always closed. |
|
5132 (get_help_from_file): Likewise. |
|
5133 * toplev.cc (parse_and_execute): Likewise. |
|
5134 |
2516
|
5135 * Makefile.in (install-oct): Depend on mk-oct-links. |
|
5136 (mk-oct-links): New target. |
|
5137 |
2512
|
5138 * Version 1.92. |
|
5139 |
2508
|
5140 Wed Nov 13 11:13:22 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5141 |
2512
|
5142 * sighandlers.cc (sys_siglist): [__EMX__]: Add definitions. |
|
5143 |
|
5144 * octave.cc (execute_startup_files): Allow init file name ot be |
|
5145 specified by an environment variable. |
|
5146 |
|
5147 * dirfns.cc (make_absolute): [__EMX__]: Path is already absolute |
|
5148 if it begins with any character followed by a colon. |
|
5149 |
2511
|
5150 * load-save.cc (read_mat_ascii_matrix, get_lines_and_columns, |
|
5151 get_complete_line): New functions, for reading headless text files. |
|
5152 (load_save_format): Add LS_MAT_ASCII, for headless text files. |
|
5153 (do_load): Handle LS_MAT_ASCII files. |
|
5154 Thanks to Mel Melchner <mjm@research.att.com> for initial version |
|
5155 of this code. |
|
5156 |
2508
|
5157 * sysdep.cc: Conditionally include ieeefp.h. |
|
5158 (BSD_init, SCO_init): New functions. |
|
5159 (sysdep_init): Conditionally call them here. |
|
5160 |
2499
|
5161 Tue Nov 12 00:14:56 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5162 |
2508
|
5163 * pt-plot.cc (open_plot_stream): Don't block SIGCHLD. |
|
5164 |
2499
|
5165 * load-save.cc (read_binary_data): When reading string arrays, be |
|
5166 sure to create an octave_char_matrix_str object, not just an |
|
5167 octave_char_matrix object. |
|
5168 (read_ascii_data): Likewise. |
|
5169 |
2497
|
5170 Mon Nov 11 22:52:58 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5171 |
|
5172 * load-save.cc (read_binary_data): Don't forget teminating NUL for |
|
5173 string that we plan to insert. |
|
5174 (read_ascii_data): Likewise. |
|
5175 |
2495
|
5176 Sun Nov 10 16:58:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5177 |
2496
|
5178 * dirfns.cc (Ffnmatch): New function. |
|
5179 |
2495
|
5180 * octave.cc (intern_argv): Use new string_vector constructor. |
|
5181 |
|
5182 * ov-str-mat.cc (octave_char_matrix_str::all_strings): Have |
|
5183 charMatrix::row_as_string() strip trailing whitespace. |
|
5184 |
|
5185 * dirfns.cc (Fglob): new function. |
|
5186 |
|
5187 * sysdep.cc (oct_tilde_expand): Provide version that works on |
|
5188 string vectors too. |
|
5189 (Ftilde_expand): Work on string vector args. |
|
5190 |
|
5191 * load-save.cc (save_binary_data): Call char_matrix_value() to |
|
5192 extract charMatrix from octave_value object, not all_strings(). |
|
5193 (save_ascii_data): Likewise. |
|
5194 * pt-mat.cc (tree_matrix::eval): Likewise. |
|
5195 |
|
5196 * ov.h (octave_value::all_strings): Return string_vector, not |
|
5197 charMatrix. |
|
5198 * ov-base.cc (octave_base_value::all_strings): Likewise. |
|
5199 * ov-str-mat.h, ov-str-mat.cc (octave_char_matrix_str::all_strings): |
|
5200 Likewise. |
|
5201 |
2487
|
5202 Fri Nov 8 09:54:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5203 |
2492
|
5204 * defaults.cc, dynamic-ld.cc, fn-cache.cc, help.cc, oct-hist.cc, |
|
5205 octave.cc, pager.cc, pt-fcn.cc, toplev.cc, utils.cc, variables.cc, |
|
5206 lex.l: Change #include "" to #include <> for defaults.h, |
|
5207 oct-conf.h, oct-gperf.h, y.tab.h, and version.h, to avoid getting |
|
5208 them from $srcdir when we really want the version from the build |
|
5209 directory. (Maybe this should be done for all the include files, |
|
5210 not just those that are auto-generated? Hmm.) |
|
5211 |
2488
|
5212 * defaults.h.in (CXXLIB_LIST, CXXLIB_PATH, FLIB_LIST, FLIB_PATH): |
|
5213 Delete. |
|
5214 |
2487
|
5215 * Makefile.in (install-oct): Use $(INSTALL_PROGRAM) for .oct files. |
|
5216 |
2477
|
5217 Thu Nov 7 07:59:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5218 |
2487
|
5219 * variables.cc (gobble_leading_white_space): New arg, update_pos. |
|
5220 * (is_function_file): Don't update file position information here. |
|
5221 |
2482
|
5222 * Version 1.91. |
|
5223 |
2479
|
5224 * pt-fvc.cc (tree_indirect_ref::reference): If the lhs object is |
|
5225 not a map, convert it to one. |
|
5226 |
|
5227 * ov-typeinfo.h (init_tab_sz): New static member. |
|
5228 |
2477
|
5229 * ov-struct.cc, ov-struct.h: Add hooks for custom memory management. |
|
5230 * ov-scalar.cc, ov-scalar.h: Likewise. |
|
5231 * ov-re-mat.cc, ov-re-mat.h: Likewise. |
|
5232 * ov-range.cc, ov-range.h: Likewise. |
|
5233 * ov-cx-mat.cc, ov-cx-mat.h: Likewise. |
|
5234 * ov-complex.cc, ov-complex.h: Likewise. |
|
5235 * ov-ch-mat.cc, ov-ch-mat.h: Likewise. |
|
5236 |
2474
|
5237 Wed Nov 6 12:32:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5238 |
2482
|
5239 * pager.cc (do_sync): Don't call clear_external_pager() here. |
2476
|
5240 |
2475
|
5241 * pt-const.h (tree_constant::allocator) New static member. |
|
5242 (tree_constant::operator new, tree_constant::operator delete): |
|
5243 Implement with custom allocator. |
|
5244 |
|
5245 * syscalls.cc (Fgetgid, Fgetegid): New functions. |
|
5246 |
|
5247 * sighandlers.cc (sigchld_handler): If necessary, reinstall |
|
5248 handler after call to waitpid(). |
|
5249 |
|
5250 * pager.cc (pager_death_handler): Don't use warning() to print |
|
5251 message. |
|
5252 |
|
5253 * getgrent.cc: New file. |
|
5254 * Makefile.in (DLD_SRC): Add it. |
|
5255 |
|
5256 * ov.cc (octave_value::print_with_name): Call is_map() instead of |
|
5257 print_as_structure(). |
|
5258 * ov-struct.cc (octave_struct::print): Likewise. |
|
5259 |
|
5260 * ov.h, ov.cc, pt-const.h: Delete force_numeric(), make_numeric(), |
|
5261 convert_to_matrix_type(), print_as_structure() member functions. |
|
5262 |
2474
|
5263 * variables.cc (is_function_file): Call gobble_leading_whitespace |
|
5264 here to strip all leading whitespace and comments. |
|
5265 (parse_fcn_file): If reading a function file, call |
|
5266 gobble_leading_whitespace again after resetting parser state to |
|
5267 grab help text. |
|
5268 |
2469
|
5269 Tue Nov 5 13:00:35 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5270 |
2472
|
5271 * syscalls.cc (Fgeteuid, Fgetuid): New functions. |
|
5272 |
|
5273 * getpwent.cc: Use gripe_not_supported from gripes.cc, instead of |
|
5274 local gripe_not_implemented function. |
|
5275 |
2470
|
5276 * input.cc, sysdep.cc, variables.cc: Only include readline.h and |
|
5277 history.h if USE_READLINE is defined. |
|
5278 |
|
5279 * help.cc: Make it compile without warnings even if USE_GNU_INFO |
|
5280 is not defined. |
|
5281 |
2469
|
5282 * sighandlers.h (octave_child_list): Don't define |
|
5283 HAVE_POSIX_SIGNALS HERE. |
|
5284 |
|
5285 * sighandlers.cc (SIGHANDLER_RETURN): New macro. |
|
5286 (generic_sig_handler, sigchld_handler, sigfpe_handler, |
|
5287 sigint_handler, sigpipe_handler): Use it. |
|
5288 (sigchld_handler, sigfpe_handler, sigint_handler, sigpipe_handler): |
|
5289 Only reinstall signal handler if MUST_REINSTALL_SIGHANDLER is defined. |
|
5290 |
2463
|
5291 Sun Nov 3 00:45:30 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5292 |
2466
|
5293 * pt-const.cc (tree_constant::print): Just call val.print(). |
|
5294 * ov-base.cc, ov-ch-mat.cc, ov-colon.cc, ov-complex.cc, |
|
5295 ov-cx-mat.cc, ov-range.cc, ov-re-mat.cc, ov-scalar.cc, |
|
5296 ov-str-mat.cc, ov-struct.cc ov-va-args.cc, ov.cc (print): |
|
5297 Handle pr_as_read_syntax arg. |
|
5298 |
|
5299 * defaults.cc (subst_octave_home): Search for prefix repeatedly in |
|
5300 retval, not s. |
|
5301 |
|
5302 * gripes.h: Make declaration of gripes_not_supported match |
|
5303 definition. |
|
5304 |
2465
|
5305 * mk-oct-links.in: In sed command, match "DEFUN_DLD *( *", not |
|
5306 "DEFUN_DLD_BUILTIN *( *". |
|
5307 |
|
5308 * chol.cc, colloc.cc, dassl.cc, det.cc, eig.cc, expm.cc, fft.cc, |
|
5309 fft2.cc, filter.cc, find.cc, fsolve.cc, fsqp.cc, getpwent.cc, |
|
5310 getrusage.cc, givens.cc, hess.cc, ifft.cc, ifft2.cc, inv.cc, |
|
5311 log.cc, lpsolve.cc, lsode.cc, lu.cc, minmax.cc, npsol.cc, pinv.cc, |
|
5312 qpsol.cc, qr.cc, quad.cc, qzval.cc, rand.cc, schur.cc, sort.cc, |
|
5313 svd.cc, syl.cc, time.cc: Change all uses of DEFUN_DLD_BUILTIN to |
|
5314 be just DEFUN_DLD. |
|
5315 |
|
5316 * defun-dld.h: Eliminate DEFUN_DLD_BUILTIN. |
|
5317 |
2464
|
5318 * syswait.h: Use #ifdef HAVE_SYS_WAIT_H, not #if HAVE_SYS_WAIT_H |
|
5319 to decide whether to include sys/wait.h. |
|
5320 |
|
5321 * pt-exp-base.h (tree_expression): Declare oper() here as a |
|
5322 virtual member function. |
|
5323 |
2463
|
5324 * pt-pr-code.cc (tree_print_code::visit_constant): Check for |
|
5325 string before checking for char_matrix. |
|
5326 |
|
5327 * ov-ch-mat.cc (octave_char_matrix::print): Supply correct number |
|
5328 of args to octave_print_internal(). |
|
5329 |
2457
|
5330 Sat Nov 2 20:44:55 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5331 |
2458
|
5332 * file-io.cc (Ftmpnam): Rename from Foctave_temp_file_name. |
|
5333 |
2457
|
5334 * Makefile.in (DLD_SRC): Move time.cc and getrusage.cc here from |
|
5335 SOURCES. Add getpwent.cc. |
|
5336 |
|
5337 * getrusage.cc: Rename from resource.cc. Make getrusage a |
|
5338 loadable function. |
|
5339 |
|
5340 * time.cc: Rename from timefns.cc. Make time functions loadable. |
|
5341 |
|
5342 * getpwent.cc: New file. |
|
5343 |
2439
|
5344 Wed Oct 30 01:06:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5345 |
2452
|
5346 * Version 1.90. |
|
5347 |
|
5348 * Makefile.in (DISTFILES): Add ChangeLog. |
|
5349 |
2449
|
5350 * ov-range.cc (octave_range::convert_to_str): New function. |
|
5351 |
|
5352 * ov-str-mat.h (octave_char_matrix_str::char_matrix_value): |
|
5353 Delete function. Already handled by octave_char_matrix class. |
|
5354 |
|
5355 * ov-ch-mat.h (octave_char_matrix::convert_to_str): New function. |
|
5356 |
2448
|
5357 * pager.cc (Fmore): Set page_screen_output to 1.0 or 0.0, not |
|
5358 "true" or "false". |
|
5359 |
2447
|
5360 * ov-ch-mat.cc, ov-struct.cc, ov-struct.h, pr-output.cc, |
|
5361 pt-cmd.cc, pt-const.cc, pt-const.h, pt-fcn.cc, pt-fvc-base.cc, |
|
5362 pt-fvc-base.h, pt-fvc.cc, pt-fvc.h, rand.cc, sighandlers.cc, |
|
5363 variables.cc, variables.h: Delete unused code. |
|
5364 |
2445
|
5365 * octave.cc: Only include pwd.h if HAVE_PWD_H. |
|
5366 |
|
5367 * oct-strstrm.h: Include <string>, not <string.h>. |
|
5368 |
2442
|
5369 * defaults.cc, dirfns.cc, file-io.cc, help.cc, input.cc, |
|
5370 oct-hist.cc, oct-procbuf.cc, oct-procbuf.h, octave.cc, pager.h, |
|
5371 procstream.h, pt-misc.cc, pt-plot.cc, sighandlers.cc, strftime.c, |
|
5372 syscalls.cc, sysdep.cc, syswait.h, toplev.cc, utils.cc, |
|
5373 variables.cc: Only include sys/types.h if HAVE_SYS_TYPES_H. |
|
5374 |
2440
|
5375 * error.h (panic): Use GCC_ATTR_NORETURN macro, not NORETURN. |
|
5376 * toplev.h (clean_up_and_exit): Likewise. |
|
5377 * utils.h (jump_to_top_level): Likewise. |
|
5378 |
2439
|
5379 * derfaults.h.in, defaults.cc (local_arch_lib_dir): New variable. |
|
5380 * defaults.cc (set_default_local_arch_lib_dir): New function. |
|
5381 (install_defaults): Call it. |
|
5382 (exec_path): Use Vlocal_arch_lib_dir here. |
|
5383 * toplev.cc (octave_config_info): Add localarchlibdir to structure. |
|
5384 |
2436
|
5385 Tue Oct 29 15:54:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5386 |
2437
|
5387 * Makefile.in (install-oct): Don't do anything if $(OCT_FILES) is |
|
5388 empty. |
|
5389 |
2436
|
5390 * ov-range.cc (octave_range::index): New Function. |
|
5391 (octave_range::all, octave_range::any, octave_range::is_true): |
|
5392 Make these functions work. |
|
5393 |
|
5394 * ov.cc (octave_value::try_assignment_with_conversion): Remove |
|
5395 left over debugging print statements. |
|
5396 |
|
5397 Mon Oct 28 10:49:03 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5398 |
|
5399 * strftime.c: Add missing #endif for previous change. |
|
5400 |
2435
|
5401 Sun Oct 27 14:06:44 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5402 |
|
5403 * oct-hist.cc (do_history): Rewite option parsing to avoid |
|
5404 (probably bogus) errors from g++ on cygwin32 system. |
|
5405 |
|
5406 * strftime.c: Use autoconf macros TIME_WITH_SYS_TIME and |
|
5407 HAVE_SYS_TIME_H to decide which time.h files to include. |
|
5408 |
|
5409 * oct-stream.h, oct-stream.cc (octave_stream::error, |
|
5410 octave_base_stream::error): Rename errno => err_num. |
|
5411 |
2432
|
5412 Sat Oct 26 10:40:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5413 |
2434
|
5414 * oct-hist.cc (do_history): Move declaration of file inside |
|
5415 conditional. |
|
5416 |
2432
|
5417 * defun.h (DEFVAR_INT): Set eternal flag with (svc_fcn != 0) |
|
5418 instead of (sv_fcn ? 1 : 0) |
|
5419 |
2427
|
5420 Fri Oct 25 01:10:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5421 |
2431
|
5422 * ov-ch-mat.h (octave_char_matrix::any): Return 0.0 instead of false. |
|
5423 (octave_char_matrix::all): Likewise. |
|
5424 |
|
5425 * input.cc (Fecho): When binding value of echo_executing_commands, |
|
5426 cast ECHO_* to double. |
|
5427 |
|
5428 * sighandlers.cc (octave_child_list::do_remove): Delete unused |
|
5429 variable `enlarge'. |
|
5430 |
|
5431 * pt-const.h (tree_constant::tree_constant (const tree_constant&)): |
|
5432 Don't pass arg to tree_fvc constructor. |
|
5433 |
2427
|
5434 * resource.cc (getrusage): [HAVE_GETRUSAGE && RUSAGE_TIMES_ONLY]: |
|
5435 Only fill in time values. |
|
5436 |
|
5437 Thu Oct 24 20:37:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5438 |
|
5439 * parse.y: Comment out the %expect declaration so byacc can |
|
5440 compile this file. |
|
5441 (if_cmd_list): Add missing semicolon. |
|
5442 Include <cstdlib> for getenv if using byacc. |
|
5443 |
|
5444 * ov.h: Move typedefs outside of octave_value class scope to avoid |
|
5445 problem with cygwin32 beta16 compiler. |
|
5446 |
2421
|
5447 Fri Oct 18 13:44:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5448 |
2423
|
5449 * ov.h (octave_value::index): Undo previous change. |
|
5450 * ov.cc (octave_value constructors): Call maybe_mutate() in most |
|
5451 cases. |
|
5452 |
|
5453 * ov-complex.cc (octave_complex::index): Avoid implicit type |
|
5454 conversion back to scalar type. |
|
5455 * ov-scalar.cc (octave_scalar::index): Likewise. |
|
5456 |
2421
|
5457 * ov.h (octave_value::index): Call maybe_mutate() on retval before |
|
5458 returning it. |
|
5459 |
2418
|
5460 Wed Oct 16 12:00:11 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5461 |
2420
|
5462 * ov.h (octave_value::struct_elt_val): New optional arg, silent. |
|
5463 * ov-base.h, ov-base.cc, ov-struct.h, ov-struct.cc: Likewise, but |
|
5464 for the derived classes the arg is required. |
|
5465 |
|
5466 * data.cc (Fstruct_contains): Require arguments to be struct and |
|
5467 string, respectively. Call octave_value::struct_elt_val with |
|
5468 silent flag set. |
|
5469 |
2419
|
5470 * pt-mat.cc (tm_row_const::tm_row_const_rep::eval_error, |
|
5471 tm_row_const::tm_row_const_rep::eval_warning): New functions. |
|
5472 (tm_row_const::tm_row_const (const tree_matrix_row&): Use them to |
|
5473 give better error messages. |
|
5474 |
2418
|
5475 * pt-fvc.cc (tree_identifier::eval): Avoid dereferencing null |
|
5476 object_to_eval. |
|
5477 |
2412
|
5478 Tue Oct 15 11:35:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5479 |
|
5480 * op-cs-cm.cc, op-cs-cs.cc, op-cs-m.cc, op-cs-s.cc |
|
5481 (complex_matrix_conv): New functions. |
|
5482 Install preferred assignment conversion and widening ops. |
|
5483 |
|
5484 * op-s-cm.cc, op-s-cs.cc (complex_matrix_conv): New functions. |
|
5485 Install preferred assignment conversion and widening ops. |
|
5486 |
|
5487 * op-s-m.cc, op-s-s.cc (matrix_conv): New functions. |
|
5488 Install preferred assignment conversion and widening ops. |
|
5489 |
|
5490 * ov.cc (octave_value::try_assignment_with_conversion, |
|
5491 octave_value::convert_and_assign, octave_value::try_assignment): |
|
5492 New functions. |
|
5493 (octave_value::assign): Use them to implement twisted logic for |
|
5494 type conversions in assigments. |
|
5495 |
|
5496 * pt-const.h (tree_constant::maybe_mutate): New function. |
|
5497 * ov.h (octave_value::maybe_mutate): New function. |
|
5498 (octave_value::try_narrowing_conversion): New function. |
|
5499 Use just one typedef for widening_op_fcn and numeric_conv_fcn. |
|
5500 Change all uses. |
|
5501 * ov-base.h, ov-complex.h, ov-complex.cc, ov-cx-mat.h, |
|
5502 ov-cx-mat.cc, ov-range.h, ov-range.cc, ov-re-mat.h, ov-re-mat.cc, |
|
5503 Provide derived class versions of try try_narrowing_conversion(). |
|
5504 |
|
5505 * pr-output.cc (octave_print_internal): Don't bother handing off |
|
5506 to scalar/real versions, even when it would seem appropriate. |
|
5507 |
|
5508 * symtab.cc (symbol_def::define (tree_constant *)): Call |
|
5509 maybe_mutate on constants here. |
|
5510 |
2405
|
5511 Mon Oct 14 11:05:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5512 |
2407
|
5513 * pt-fvc.cc (tree_identifier::eval): If retval is undefined and |
|
5514 the object to eval is a constant, print error message. |
2406
|
5515 |
2405
|
5516 * Makefile (distclean): Remove *.oct too. |
|
5517 |
|
5518 * defun-int.h: Include variables.h here. |
|
5519 |
2403
|
5520 Sun Oct 13 10:52:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5521 |
2404
|
5522 * variables.cc (print_symbol_info_line): Never print negative |
|
5523 diminsions. |
|
5524 |
|
5525 * symtab.h (octave_symbol_record_info): Store const_type as string. |
|
5526 (octave_symbol_record_info::init): Delete. Fix constructors. |
|
5527 (octave_symbol_record_info::type_name): Handle const_type as string. |
|
5528 |
2403
|
5529 * octave.cc (maximum_braindamage): Replace "true" with 1.0 and |
|
5530 "false" with 0.0 in calls to bind_builtin_variable(). |
|
5531 Include sun-utils.h here. |
2404
|
5532 (intern_argv): Also bind __argv__. |
2403
|
5533 |
2391
|
5534 Sat Oct 12 13:40:21 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5535 |
2399
|
5536 * Makefile.in (distclean): Also delete mk-oct-links. |
|
5537 |
|
5538 Fri Oct 11 13:13:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5539 |
2391
|
5540 Changes for Octave's new type system: |
|
5541 |
|
5542 * arith-ops.cc: Delete. |
|
5543 * pt-const.h, pt-const.cc: Massive changes. Most functionality |
|
5544 moved to ov.h, ov.cc, and derived classes. |
|
5545 |
|
5546 * variables.h, variables.cc (octave_variable_reference): New class |
|
5547 for getting references to variables and structure elements used in |
|
5548 assignments or value contexts. |
|
5549 |
|
5550 * symtab.h, symtab.cc (symbol_record::define (const octave_value&), |
|
5551 symbol_record::variable_value, symbol_record::variable_reference): |
|
5552 New functions. |
|
5553 (symbol_record_info::type_name): Rename from type_as_string. |
|
5554 |
|
5555 * pt-fvc-base.h, pt-fvc-base.cc (tree_fvc::increment, |
|
5556 tree_fvc::decrement): New functions to replace |
|
5557 tree_fvc::bump_value. |
|
5558 #if 0 assign and lookup_map_element functions. |
|
5559 |
|
5560 * pt-mvr.cc (tree_multi_assignment_expression::eval): |
|
5561 Generated RHS value is now a tree_constant. |
|
5562 |
|
5563 * pt-exp.h, pt-exp.cc (tree_boolean_expression): New class. |
|
5564 (tree_unary_expression, tree_binary_expression, |
|
5565 tree_boolean_expression): Move codes here from tree_expression. |
|
5566 (tree_simple_assignment_expression): Cope with changes to way of |
|
5567 doing assignments. |
|
5568 |
|
5569 * pt-exp-base.h, pt-exp-base.cc (enum type): Delete codes for |
|
5570 unary and binary ops. |
|
5571 (tree_expression::expression_type): Delete. |
|
5572 (tree_expression::is_logically_true): Hand off to |
|
5573 octave_value::is_true to do real work. |
|
5574 |
|
5575 * pr-output.h, pr-output.cc (any_element_is_inf_or_nan, |
|
5576 all_elements_are_ints): Delete. Call member new functions for |
|
5577 these operations. |
|
5578 (free_format, plus_format, bank_format, hex_format, |
|
5579 compact_format, print_e, print_big_e): Use bool, not int. |
|
5580 (octave_print_internal): Hand off to scalar/real versions when |
|
5581 appropriate. |
|
5582 |
|
5583 * octave.cc (main): Call initialize_types() and install_ops(). |
|
5584 (verbose_usage): Add WWW address to output. |
|
5585 |
|
5586 * parse.y (indirect_ref): Handle by making a tree instead of a |
|
5587 list using new version of tree_indirect_ref class. |
|
5588 |
|
5589 * parse.y (make_boolean_op): New function. Use it instead of |
|
5590 make_binary_op to create trees for && and || ops. |
|
5591 (make_binary_op): Codes come from tree_binary_expression now, |
|
5592 instead of tree_expression. |
|
5593 (make_unary_op): Codes come from tree_unary_expression now, |
|
5594 instead of tree_expression. |
|
5595 (make_boolean_op): Codes come from tree_boolean_expression. |
|
5596 |
|
5597 *parse.y (tree_constant_type): Change type to tree_constant* from |
|
5598 octave_value*, and rename from octave_value_type. Change uses. |
|
5599 |
|
5600 * defun.h (DEFVAR_INT): Pass octave_value not pointer to |
|
5601 octave_value for defn when creating builtin_variable. |
|
5602 |
|
5603 * gripes.h, gripes.cc (gripe_invalid_conversion): Args are |
|
5604 strings, not char*. |
|
5605 (gripe_implicit_conversion, gripe_divide_by_zero): New extern |
|
5606 gripe functions. |
|
5607 |
|
5608 * mkbuiltins: For each file, create a separate static function to |
|
5609 install builtins, then create another single extern function to |
|
5610 call all of them. |
|
5611 |
|
5612 * pt-fcn.cc (tree_function::bind_nargin_and_nargout): |
|
5613 Just pass doubles and let symbol_record::define handle creating |
|
5614 new value. |
|
5615 |
|
5616 * pt-pr-code.cc, pt-pr-code.h (visit_constant): Renamed from |
|
5617 visit_octave_value. |
|
5618 (visit_unary_expression): Use tree_expression::is_prefix_op() |
|
5619 instead of switch on op types. |
|
5620 |
|
5621 * pt-walk.h (visit_constant): Renamed from visit_octave_value. |
|
5622 |
|
5623 * pt-misc.cc (initialize_undefined_elements): Get reference to |
|
5624 tmp, then assign. |
|
5625 * pt-cmd.cc (do_for_loop_once): Likewise, for loop identifier. |
|
5626 |
|
5627 * input.cc (generate_struct_completions, looks_like_struct): Cast |
|
5628 tmp_fvc to tree_constant*, not octave_value*. |
|
5629 (get_user_input): Call print() on retval, not eval(1). |
|
5630 |
|
5631 * help.cc (Ftype): Cast defn to tree_constant*, not octave_value*. |
|
5632 |
|
5633 * balance.cc: Fix docstring. |
|
5634 |
|
5635 * dassl.cc, fsolve.cc, load-save.cc, lsode.cc, npsol.cc, qpsol.cc, |
|
5636 quad.cc: |
|
5637 Include pt-fvc.h. |
|
5638 |
|
5639 * data.cc (Fstruct_contains): call octave_value::struct_elt_val, |
|
5640 not octave_value::lookup_map_element. |
|
5641 |
|
5642 * dirfns.cc (Fcd): Pass directory name as string directly to |
|
5643 bind_builtin_variable instead of creating new octave_value. |
|
5644 |
|
5645 * toplev.cc: Include pt-fvc.h and lo-mappers.h |
|
5646 |
|
5647 * data.cc, error.cc, file-io.cc, load-save.cc, pager.cc, |
|
5648 pt-mat.cc, pt-plot.cc, syscalls.cc, toplev.cc: |
|
5649 Include variables.h. |
|
5650 |
|
5651 * Array-tc.cc, Map-tc.cc, SLList-misc.cc SLList-tc.cc, data.cc, |
|
5652 defaults.cc, dynamic-ld.cc, error.cc, gripes.cc, lex.l, octave.cc, |
|
5653 oct-map.h, oct-map.cc, oct-obj.h, pt-cmd.cc, pt-exp.cc, pt-fcn.cc, |
|
5654 pt-fvc-base.cc, pt-mat.cc, pt-misc.cc, pt-mvr-base.cc, pt-mvr.h, |
|
5655 resource.cc, strfns.cc, sysdep.cc, timefns.cc, toplev.cc: |
|
5656 Include ov.h instead of pt-const.h. |
|
5657 |
|
5658 * xpow.cc (any_element_is_negative): Delete. |
|
5659 (xpow and elem_xpow functions): Check conformance here. |
|
5660 |
|
5661 * xdiv.cc (mx_leftdiv_conform, mx_div_conform): |
|
5662 Now template-based, taking Matrices instead of dimensions as args. |
|
5663 Change all callers. |
|
5664 |
|
5665 * op-cm-cm.cc, op-cm-cm.h, op-cm-cs.cc, op-cm-cs.h, op-cm-m.cc, |
|
5666 op-cm-m.h, op-cm-s.cc, op-cm-s.h, op-cs-cm.cc, op-cs-cm.h, |
|
5667 op-cs-cs.cc, op-cs-cs.h, op-cs-m.cc, op-cs-m.h, op-cs-s.cc, |
|
5668 op-cs-s.h, op-m-cm.cc, op-m-cm.h, op-m-cs.cc, op-m-cs.h, op-m-m.cc, |
|
5669 op-m-m.h, op-m-s.cc, op-m-s.h, op-s-cm.cc, op-s-cm.h, op-s-cs.cc, |
|
5670 op-s-cs.h, op-s-m.cc, op-s-m.h, op-s-s.cc, op-s-s.h, |
|
5671 op-str-str.cc, op-str-str.h, ops.cc, ops.h, ov-base.cc, ov-base.h, |
|
5672 ov-ch-mat.cc, ov-ch-mat.h, ov-colon.cc, ov-colon.h, ov-complex.cc, |
|
5673 ov-complex.h, ov-cx-mat.cc, ov-cx-mat.h, ov-range.cc, ov-range.h, |
|
5674 ov-re-mat.cc, ov-re-mat.h, ov-scalar.cc, ov-scalar.h, ov-str-mat.cc, |
|
5675 ov-str-mat.h, ov-struct.cc, ov-struct.h, ov-typeinfo.cc, |
|
5676 ov-typeinfo.h, ov-va-args.cc, ov-va-args.h, ov.cc, ov.h: |
|
5677 New files for Octave's new type system. |
|
5678 * Makefile.in: Add them to the appropriate lists. |
|
5679 |
|
5680 Sat Sep 14 21:58:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5681 |
|
5682 * mkbuiltins: Use .df instead of .def. |
|
5683 Write one function for each .df file, then call them |
|
5684 all in install_builtin_functions(). |
|
5685 * Makefile.in: Handle .df instead of .def. |
|
5686 |
|
5687 * balance.cc (balance): Fix typo in doc string. |
|
5688 |
|
5689 Wed Aug 28 21:01:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5690 |
|
5691 * octave.cc (verbose_usage): Include WWW address and bug-octave |
|
5692 mailing list address. |
|
5693 |
2354
|
5694 Tue Aug 20 17:41:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5695 |
2358
|
5696 * Makefile.in: Only define pattern rules for making .oct files if |
|
5697 OCTAVE_LITE is true. |
|
5698 Only add pic/ to $(TI_OBJ) if $(SHARED_LIBS) is true. |
|
5699 (stamp-picdir): Only create a pic subdirectory if SHARED_LIBS or |
|
5700 OCTAVE_LITE is true AND CPICFLAG or CXXPICFLAG is not empty. |
|
5701 |
2354
|
5702 * minmax.cc (Fmin, Fmax): Deal with changes to Matrix class |
|
5703 min/max methods. |
|
5704 |
2345
|
5705 Thu Jul 25 01:42:38 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5706 |
2348
|
5707 * input.cc (generate_possible_completions): Force the names to be |
|
5708 unique. |
|
5709 |
2345
|
5710 * load-save.cc (read_mat_binary_data): Expect to read terminating |
|
5711 NUL character in the variable name. |
|
5712 (save_mat_binary_data): Likewise, save it here. |
|
5713 |
2341
|
5714 Wed Jul 24 05:08:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5715 |
2343
|
5716 * lsode.cc (Flsode): Don't set the return value if an error |
|
5717 occurred during integration. |
2344
|
5718 * dassl.cc (Fdassl): Likewise. |
2343
|
5719 |
2341
|
5720 * file-io.cc (symbols_of_file_io): Redefine values of SEEK_SET, |
|
5721 SEEK_CUR, and SEEK_END for Matlab compatibility. |
|
5722 * oct-stream.cc (seek): Check for compatible values of ORIGIN arg. |
|
5723 Also handle "bof", "cof", and "eof". |
|
5724 |
2338
|
5725 Fri Jul 19 15:24:36 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5726 |
|
5727 * pt-const.cc: When creating octave_value_reps from ComplexMatrix |
|
5728 values, check to see if all the elements are actually real. |
|
5729 |
2330
|
5730 Tue Jul 16 10:53:42 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5731 |
2341
|
5732 * input.cc (decode_prompt_string): Swap meanings of \h and \H. |
2330
|
5733 |
|
5734 Mon Jul 15 16:01:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5735 |
|
5736 * toplev.cc (run_command_and_return_output): Renamed from do_system. |
|
5737 (Fsystem): Make `system ("emacs")' work as one would expect. |
|
5738 |
|
5739 Sun Jul 14 17:34:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5740 |
|
5741 * file-io.cc (Ffopen, Ffread, Ffwrite): Update doc strings, |
|
5742 correctly handle default architecture and precision args. |
|
5743 |
|
5744 * load-save.cc (mopt_digit_to_float_format): Rename from |
|
5745 get_floating_point_format. |
|
5746 (float_format_to_mopt_digit): New function. |
|
5747 |
|
5748 * oct-stream.cc (octave_base_stream::read, octave_base_stream::write): |
|
5749 Simplify by calling Matrix::read and Matrix::write to do real work |
|
5750 of reading, writing, and format conversion. |
|
5751 |
|
5752 * oct-stream.h (octave_base_stream): Move data_type enum to |
|
5753 liboctave/data-conv.h. Use float_format from |
|
5754 liboctave/mach-info.h instead of arch_type enum. |
|
5755 |
|
5756 * sysdep.h, sysdep.cc (octave_words_big_endian, ten_little_endians): |
|
5757 Delete. Now part of oct_mach_info class in liboctave. |
|
5758 |
|
5759 Tue Jul 9 11:18:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5760 |
|
5761 * arith-ops.cc, balance.cc, dassl.cc, data.cc, filter.cc, find.cc, |
|
5762 fsolve.cc, load-save.cc, log.cc, lsode.cc, minmax.cc, npsol.cc, |
|
5763 oct-obj.cc, oct-stream.cc, pr-output.cc, pt-cmd.cc, pt-const.cc, |
|
5764 pt-fvc.cc, pt-plot.cc, quad.cc, rand.cc, sighandlers.cc, sort.cc, |
|
5765 syscalls.cc, unwind-prot.cc, xdiv.cc, xpow.cc: |
|
5766 When indexing arrays, use operator() instead of elem() so that |
|
5767 bounds checking can be done consistently. |
|
5768 |
|
5769 Mon Jun 24 02:13:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5770 |
|
5771 * Makefile.in (install-oct): Use INSTALL_PROGRAM, instead of |
|
5772 INSTALL_DATA for installing shared libraries. |
|
5773 |
|
5774 * lex.l (grab_help_text): Ignore all initial comment characters, |
|
5775 not just the first. |
|
5776 * variables.cc (gobble_leading_white_space): Likewise. |
|
5777 |
|
5778 Sat Jun 22 22:43:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5779 |
|
5780 * input.h, input.cc (octave_completion_matches_called): New varaible. |
|
5781 (Fcompletion_matches): Set it to true on a successful call. |
|
5782 * toplev.cc (main_loop): If octave_completion_matches_called is |
|
5783 true, don't increment current_command_number. |
|
5784 |
|
5785 Thu Jun 13 03:52:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5786 |
|
5787 * variables.cc (is_mapper_function_name, |
|
5788 is_builtin_function_name): New functions. |
|
5789 (Fdocument): Use them. |
|
5790 Define as regular function, not a text style function. |
|
5791 |
|
5792 Thu Jun 6 00:09:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5793 |
|
5794 * pt-plot.cc: Handle new built-in variable `gnuplot_has_frames'. |
|
5795 |
|
5796 Wed Jun 5 14:45:04 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5797 |
|
5798 * input.cc (decode_prompt_string): \h now means the whole host |
|
5799 name and \H is the host name up to the first `.'. |
|
5800 |
|
5801 Thu May 30 23:41:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5802 |
|
5803 * fn-cache.cc (octave_fcn_file_name_cache::do_list): Always |
|
5804 recompute the lists of function files instead of trying to cache |
|
5805 them. |
|
5806 |
|
5807 Tue May 28 12:05:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5808 |
|
5809 * utils.cc (warn_old_style_preference): New function. |
|
5810 (check_preference): Use it. |
|
5811 |
|
5812 * fn-cache.h: Include <ctime> here. |
|
5813 |
|
5814 Fri May 24 00:57:14 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5815 |
|
5816 * input.cc (completion_matches): Don't return empty string_vectors. |
|
5817 |
|
5818 * octave.cc (long_opts): Add braindead. |
|
5819 |
|
5820 Thu May 23 01:49:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5821 |
|
5822 * input.cc (gnu_readline): New optional arg, force_readline. |
|
5823 (get_user_input): Use it. |
|
5824 |
|
5825 * pt-const.cc (OCT_VAL_REP::assign): If converting the rhs to a |
|
5826 numeric value, convert a copy, not the actual object. |
|
5827 (OCT_VAL_REP::do_index): Prevent s([]) from resulting in a string |
|
5828 with zero rows. |
|
5829 |
|
5830 * mappers.cc: Handle toascii here. |
|
5831 * strfns.cc: Not here. |
|
5832 |
|
5833 * mappers.cc: Handle tolower and toupper here. |
|
5834 * mappers.h: Rename can_return_complex_for_real to flag and |
|
5835 overload meaning for ch_mapper. |
|
5836 * pt-fvc.cc (apply_mapper_fcn): Handle overloaded meaning. |
|
5837 |
|
5838 * syscalls.cc (stat): Return 3 values instead of just 1. |
|
5839 (lstat): Likewise. |
|
5840 |
|
5841 Wed May 22 02:34:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5842 |
|
5843 * pt-const.cc (OCT_VAL_REP::make_numeric): For string to number |
|
5844 conversions, correctly set type tag before calling force_numeric. |
|
5845 (do_binary_op): Force string to number conversion if both args are |
|
5846 strings and we are doing some sort of comparison operation. |
|
5847 |
|
5848 * Makefile.in (stamp-tinst, stamp-interp): Use SH_TERMLIBS and |
|
5849 SH_LIBS instead of TERMLIBS and LIBS. |
|
5850 |
|
5851 * pt-const.cc (do_unary_op): Add special case to handle |
|
5852 transposing strings. |
|
5853 |
|
5854 * pt-mat.cc (Vstring_fill_char): New variable. |
|
5855 (symbols_of_pt_mat): DEFVAR it. |
|
5856 |
|
5857 * input.cc (generate_struct_completions, |
|
5858 generate_possible_completions): Return string_vector, not char **. |
|
5859 Change all callers. |
|
5860 |
|
5861 * pt-const.cc (lookup_map_element): Use substr() correctly. |
|
5862 |
|
5863 Tue May 21 21:37:17 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5864 |
|
5865 * oct.h: New file. |
|
5866 * Makefile.in (INCLUDES): Add it to the list. |
|
5867 |
|
5868 * octave.cc: New args --no-site-file and --no-init-file. Delete |
|
5869 --ignore-init-file. The flag --norc (-f) implies both |
|
5870 --no-site-file and --no-init-file. |
|
5871 |
|
5872 Fri May 17 01:54:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5873 |
|
5874 * input.cc (Fcompletion_matches): New function. |
|
5875 |
|
5876 * utils.cc (get_fcn_file_names): Delete. |
|
5877 * help.cc (simple_help): Use new file name cache instead of |
|
5878 calling get_fcn_file_names. |
|
5879 * variables.cc (make_name_list): Likewise. |
|
5880 |
|
5881 * fn-cache.h, fn-cache.cc, Map-fnc.cc: New files. |
|
5882 * Makefile.in: Add them to the lists. |
|
5883 |
|
5884 * Makefile.in (uninstall): Install in octincludedir, not includedir. |
|
5885 |
|
5886 * pt-plot.h: Include <csignal> here. |
|
5887 |
|
5888 Thu May 16 10:52:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5889 |
|
5890 * oct-stream.cc (octave_stream::oscanf, octave_base_stream::oscanf, |
|
5891 octave_base_stream::do_oscanf): New functions for backward |
|
5892 compatibility with older versions of Octave. |
|
5893 (scanf_format_elt, scanf_format_list): Keep track of width specifier. |
|
5894 * file-io.cc (Fscanf): New function. |
|
5895 (Fscanf, Ffscanf, Fsscanf): Handle compatibility arg. |
|
5896 |
|
5897 Wed May 15 01:00:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5898 |
|
5899 * oct-stream.cc (do_scanf): If doing '%c' conversion, unset |
|
5900 ios::skipws on input stream. |
|
5901 |
|
5902 * sighandlers.h, sighandlers.cc (octave_child, octave_child_list): |
|
5903 New classes for keeping track of the child processes we create. |
|
5904 (sigchld_handler): Check in octave_child_list to see if there is |
|
5905 anything we can do for the child that died. |
|
5906 * pager.cc: Register child pager process. |
|
5907 * pt-plot.cc: Likewise, for the plotter. |
|
5908 * Array-oc.cc: New file |
|
5909 * Makefile.in (TI_SRC): Add it to the list. |
|
5910 |
|
5911 * pager.cc (do_sync): Don't check error_state. |
|
5912 (flushing_output_to_pager): New static variable. |
|
5913 (flush_octave_stdout): Use it to avoid doing anything if already |
|
5914 flushing output. |
|
5915 |
|
5916 * sighandlers.cc (sigchld_handler): Call warning instead of |
|
5917 writing directly to cerr. |
|
5918 (sigpipe_handler): Call warning instead of message. |
|
5919 |
|
5920 * octave.cc (main): Call install_signal_handlers, |
|
5921 initialize_file_io, initialize_symbol_tables, and install_builtins |
|
5922 before parsing command line options. |
|
5923 |
|
5924 * user-prefs.h, user-prefs.cc: Delete. |
|
5925 |
|
5926 * utils.cc (check_preference): Move here. |
|
5927 * user-prefs.cc: From here. |
|
5928 |
|
5929 * defaults.cc: New file. Move initialization stuff from |
|
5930 variables.cc. Move DEFVARS for EDITOR, EXEC_PATH, LOADPATH, |
|
5931 IMAGEPATH, and OCTAVE_VERSION here. |
|
5932 |
|
5933 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5934 INFO_FILE and INFO_PROGRAM. |
|
5935 * help.cc: Move all of that here. |
|
5936 (symbols_of_help): Add DEFVARS for INFO_FILE and INFO_PROGRAM. |
|
5937 |
|
5938 Tue May 14 00:23:06 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5939 |
|
5940 * pager.cc (do_sync): Be more defensive about sending stuff to the |
|
5941 external pager. |
|
5942 * sighandlers.cc (sigchld_handler): For now, only wait for |
|
5943 octave_pager_pid. Don't call error(). Do set octave_pager_pid to |
|
5944 -1 if the pager process no longer exists. |
|
5945 |
|
5946 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5947 PWD. |
|
5948 * dirfns.cc: Move all of that here. |
|
5949 (symbols_of_dirfns): New function. |
|
5950 * variables.cc (install_builtin_variables): Call it. |
|
5951 |
|
5952 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5953 default_save_format and save_precision. |
|
5954 * load-save.cc: Move all of that here. |
|
5955 (symbols_of_load_save): New function. |
|
5956 * variables.cc (install_builtin_variables): Call it. |
|
5957 |
|
5958 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5959 warn_divide_by_zero. |
|
5960 * arith-ops.cc: Move all of that here. |
|
5961 (symbols_of_arith_ops): New function. |
|
5962 * variables.cc (install_builtin_variables): Call it. |
|
5963 |
|
5964 * mappers.cc: Add wrappers for ctype is* functions so that they |
|
5965 will work on systems that only define them as macros. |
|
5966 |
|
5967 Mon May 13 00:27:08 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5968 |
|
5969 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5970 suppress_verbose_help_message. |
|
5971 * help.cc: Move all of that here. |
|
5972 (symbols_of_help): New function. |
|
5973 * variables.cc (install_builtin_variables): Call it. |
|
5974 |
|
5975 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5976 treat_neg_dim_as_zero. |
|
5977 * pt-const.cc: Move all of that here. |
|
5978 |
|
5979 * pager.cc (octave_pager_stream::do_sync): Don't return early if |
|
5980 not interactive. |
|
5981 |
|
5982 * data.h: New file. |
|
5983 * Makefile.in (INCLUDES): Add it to the list. |
|
5984 * data.cc (symbols_of_data): New function. Move definition of I, |
|
5985 Inf, J, NaN, e, eps, i, inf, j, nan, pi, realmin, and realmax here. |
|
5986 * variables.cc: From here. |
|
5987 (install_builtin_variables): Call symbols_of_data. |
|
5988 |
|
5989 * file-io.cc (symbols_of_file_io): New function. Move definition |
|
5990 of SEEK_CUR, SEEK_END, SEEK_SET, stdin, stdout, stderr here. |
|
5991 * variables.cc: From here. |
|
5992 (install_builtin_variables): Call symbols_of_file_io. |
|
5993 |
|
5994 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
5995 do_fortran_indexing, implicit_str_to_num_ok, |
|
5996 ok_to_lose_imaginary_part, prefer_column_vectors, |
|
5997 prefer_zero_one_indexing, print_answer_id_name, |
|
5998 propagate_empty_matrices, resize_on_range_error, and |
|
5999 struct_levels_to_print. |
|
6000 * pt-const.cc: Move all of that here. |
|
6001 (symbols_of_pt_const): New function. |
|
6002 * variables.cc (install_builtin_variables): Call it. |
|
6003 * pt-fvc.cc (tree_identifier::assign): Use Vresize_on_range_error |
|
6004 instead of user_pref.resize_on_range_error here. |
|
6005 * load-save.cc (save_mat_binary_data): Use Vimplicit_str_to_num_ok |
|
6006 instead of user_pref.implicit_str_to_num_ok here. |
|
6007 * utils.cc (empty_arg): Use Vpropagate_empty_matrices instead of |
|
6008 user_pref.propagate_empty_matrices here. |
|
6009 * pt-exp-base.cc (tree_expression::is_logically_true): Likewise.. |
|
6010 |
|
6011 * pt-fcn.cc (symbols_of_pt_fcn): Also move DEFVAR for |
|
6012 default_return_value here. |
|
6013 |
|
6014 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6015 ps1, ps2, ps4, and completion_append_char. |
|
6016 * input.cc: Move all of that here. |
|
6017 (symbols_of_input): New function. |
|
6018 * variables.cc (install_builtin_variables): Call it. |
|
6019 * pt-pr-code.cc (indent): Use Vps4 instead of user_pref.ps4 here. |
|
6020 * help.cc (Ftype): Also here. |
|
6021 |
|
6022 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6023 automatic_replot, gnuplot_binary, and gnuplot_has_multiplot. |
|
6024 * pt-plot.cc: Move all of that here. |
|
6025 (symbols_of_pt_plot): New function. |
|
6026 * variables.cc (install_builtin_variables): Call it. |
|
6027 |
|
6028 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6029 beep_on_error. |
|
6030 * error.cc: Move all of that here. |
|
6031 (symbols_of_error): New function. |
|
6032 * variables.cc (install_builtin_variables): Call it. |
|
6033 |
|
6034 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6035 empty_list_elements_ok. |
|
6036 * pt-mat.cc: Move all of that here. |
|
6037 (symbols_of_pt_mat): New function. |
|
6038 * variables.cc (install_builtin_variables): Call it. |
|
6039 |
|
6040 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6041 define_all_return_values, return_last_computed_value, and |
|
6042 silent_functions. |
|
6043 * pt-fcn.cc: Move all of that here. |
|
6044 (symbols_of_pt_fcn): New function. |
|
6045 * variables.cc (install_builtin_variables): Call it. |
|
6046 |
|
6047 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6048 whitespace_in_literal_matrix. |
|
6049 * lex.l: Move all of that here. |
|
6050 (symbols_of_lex): New function. |
|
6051 * variables.cc (install_builtin_variables): Call it. |
|
6052 |
|
6053 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6054 warn_assign_as_truth_value, warn_comma_in_global_decl, |
|
6055 warn_function_name_clash, and warn_missing_semicolon. |
|
6056 * parse.y: Move all of that here. |
|
6057 (symbols_of_parse): New function. |
|
6058 * variables.cc (install_builtin_variables): Call it. |
|
6059 |
|
6060 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6061 output_precision, output_max_field_width, print_empty_dimensions, |
|
6062 and split_long_rows. |
|
6063 * pr-output.cc: Move all of that here. |
|
6064 (symbols_of_pr_output): New function. |
|
6065 * variables.cc (install_builtin_variables): Call it. |
|
6066 |
|
6067 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6068 page_screen_output, page_output_immediately, and pager_binary. |
|
6069 * pager.cc: Move all of that here. |
|
6070 |
|
6071 * user-prefs.h (check_preference): Provide declaration. |
|
6072 * user-prefs.cc (check_preference): Make external. |
|
6073 |
|
6074 * toplev.cc (Foctave_config_info): New function. |
|
6075 |
|
6076 * oct-conf.h.in: New file |
|
6077 * Makefile.in (oct-conf.h): New target. |
|
6078 Add it to the appropriate lists. |
|
6079 |
|
6080 * sighandlers.cc (sigchld_handler): Don't complain about wait |
|
6081 returning a negative value. |
|
6082 |
|
6083 * file-io.cc (Fsscanf, Fsprintf): Pass true for second arg of |
|
6084 octave_stream constructor. |
|
6085 |
|
6086 * oct-stream.h (octave_stream): New field, preserve. |
|
6087 (octave_stream::~octave_stream): If preserve, don't delete rep. |
|
6088 |
|
6089 * pager.cc (symbols_of_pager): Set default for |
|
6090 page_output_immediately to 0. |
|
6091 |
|
6092 * toplev.cc (do_system): Correctly handle return_output. |
|
6093 Append ends to output_buf before calling str(). |
|
6094 |
|
6095 * variables.cc: If M_PI and M_E are available, use them. |
|
6096 |
|
6097 * mk-oct-links.in (links_dir): If old link exists, delete it first. |
|
6098 |
|
6099 Sun May 12 01:46:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6100 |
|
6101 * Makefile.in (DISTFILES): List defaults.h.in and oct-gperf.h here. |
|
6102 (INCLUDES): Not here. |
|
6103 (install-inc): New target. |
|
6104 (uninstall): Also delete libraries and include files. |
|
6105 (install-inc): If linkdir is a directory, leave it alone. |
|
6106 (TERMLIBS, LIBPLPLOT, LIBDLFCN): Don't substitute here (now in |
|
6107 Makeconf). |
|
6108 |
|
6109 * oct-stream.cc (octave_base_stream::do_read): Provide initial |
|
6110 value for tmp var. |
|
6111 |
|
6112 * pt-walk.h, pt-pr-code.h, pt-pr-code.cc: New tree-walking classes. |
|
6113 * Makefile.in: Add them to the appropriate lists. |
|
6114 * pt-fvc-base.h, pt-exp-base.cc, pt-fvc-base.cc, pt-mvr-base.cc, |
|
6115 pt-base.cc, pt-mvr.cc, pt-mat.h, pt-mat.cc, pt-fvc.cc, |
|
6116 pt-const.cc, pt-cmd.cc, pt-const.h, pt-misc.cc, pt-plot.cc, |
|
6117 pt-fcn.cc, pt-plot.h, pt-mvr.h, pt-mvr-base.h, pt-misc.h, |
|
6118 pt-fcn.h, pt-exp.h, pt-exp.cc, pt-exp-base.h, pt-fvc.h, pt-cmd.h, |
|
6119 pt-base.h: |
|
6120 Replace print_code stuff with accept() functions. |
|
6121 Add member access functions where necessary. |
|
6122 * help.cc (Ftype): Update to use new method of walking trees to |
|
6123 print text representation of user-defined functions. |
|
6124 |
|
6125 * file-io.cc (Ffscanf): Update doc string. |
|
6126 (Fsscanf): Likewise. |
|
6127 |
|
6128 * oct-stream.cc (octave_base_stream::do_read): Correctly set max_size. |
|
6129 Pad mval with zeros on final resize. |
|
6130 (octave_base_stream::do_scanf): Likewise. |
|
6131 (do_scanf_conv): Correctly resize mval. |
|
6132 |
|
6133 Sat May 11 05:14:09 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6134 |
|
6135 * pager.cc (octave_pager_buf::sync): Correctly set bypass_pager. |
|
6136 |
|
6137 * lex.l (<MATRIX>{SNLCMT}*\]{S}*): Match SNLCMT, not just SNL. |
|
6138 |
|
6139 Fri May 3 11:05:30 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6140 |
|
6141 * pt-const.cc (OCT_VAL_REP::set_index): Complain if type can't be |
|
6142 indexed. |
|
6143 |
|
6144 * input.cc (get_user_input): Don't increment input line number if |
|
6145 input is coming from eval string. |
|
6146 |
|
6147 * user-prefs.cc: Allow empty strings for prompts. |
|
6148 |
|
6149 Thu May 2 10:50:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6150 |
|
6151 * pt-mvr.h (class tree_oct_obj): Declare values data member const. |
|
6152 |
|
6153 Sun Apr 28 03:16:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6154 |
|
6155 * user-prefs.h (user_preferences): New field, |
|
6156 `page_output_immediately'. |
|
6157 * user-prefs.cc (init_user_prefs): Initialize it. |
|
6158 (page_output_immediately): New function. |
|
6159 * pager.cc (syms_of_pager): Add DEFVAR. |
|
6160 (really_flush_to_pager): New file-scope variable. |
|
6161 (flush_octave_stdout): Set and restore it. |
|
6162 (octave_pager_buf::sync): Check it, user_pref.page_screen_output, |
|
6163 and user_pref.page_output_immediately to decide when to really |
|
6164 flush output. |
|
6165 (more_than_a_screenful): New function. If paging but not |
|
6166 immediately, then check this too. |
|
6167 |
|
6168 * pager.cc (default_pager): Move here from variables.cc. If pager |
|
6169 is less and LESS is not in the environment, append useful flags. |
|
6170 (symbols_of_pager): New function. |
|
6171 * variables.cc (install_builtin_variables): Call it. |
|
6172 Delete pager-related DEFVARs. |
|
6173 |
|
6174 * syswait.h (WIFSIGNALLED): Define if sys/wait.h doesn't. |
|
6175 |
|
6176 * sighandlers.cc: Handle SIGCHLD. |
|
6177 |
|
6178 * pager.cc, pager.h: Rewrite. |
|
6179 * pt-mvr.cc, pt-misc.cc, pt-fcn.cc, pt-const.cc, oct-hist.cc, |
|
6180 file-io.cc, help.cc, variables.cc, qpsol.cc, dassl.cc, quad.cc, |
|
6181 npsol.cc, lsode.cc, fsolve.cc, load-save.cc, dirfns.cc, octave.cc, |
|
6182 toplev.cc, error.cc, input.cc: |
|
6183 Write to octave_stdout and octave_diary instead of calling |
|
6184 maybe_page_output() or maybe_write_to_diary_file(). |
|
6185 |
|
6186 * oct-procbuf.h, oct-procbuf.cc: New files. |
|
6187 * procstream.h (class procstreambase): Use octave_procbuf instead |
|
6188 of procbuf from libg++, so we can get pids of subprocesses. |
|
6189 |
|
6190 Fri Apr 26 01:21:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6191 |
|
6192 * pt-const.cc (OCT_VAL_REP::do_index): Call maybe_mutate() before |
|
6193 returning. |
|
6194 |
|
6195 * mappers.h (struct Mapper_fcn): Delete. |
|
6196 (struct builtin_mapper_function): New field ch_mapper. |
|
6197 * pt-fvc.h (tree_builtin): Convert type of mapper_fcn from |
|
6198 Mapper_fcn to builtin_mapper_function. |
|
6199 * variables.cc (install_builtin_mapper): Likewise, for arg. |
|
6200 Simplify, since we don't have to do the copying ourselves now. |
|
6201 * pt-fvc.cc (apply_mapper_function): Handle ch_mapper case. |
|
6202 * defun.h (DEFUN_MAPPER): Likewise. |
|
6203 * mappers.cc (install_builtin_mappers): Likewise. |
|
6204 Add ctype is* functions here. |
|
6205 |
|
6206 Thu Apr 25 00:57:06 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6207 |
|
6208 * arith-ops.h, defun-int.h, defun.h, dynamic-ld.h, gripes.h, |
|
6209 load-save.h, oct-map.h, oct-obj.h, oct-stream.h, pt-cmd.h, |
|
6210 pt-const.h, pt-exp-base.h, pt-exp.h, pt-fcn.h, pt-fvc-base.h, |
|
6211 pt-fvc.h, pt-mat.h, pt-misc.h, pt-mvr-base.h, pt-mvr.h, pt-plot.h, |
|
6212 symtab.h, toplev.h, utils.h, variables.h, xpow.h, Array-tc.cc, |
|
6213 Map-i.cc, Map-tc.cc, SLList-tc.cc, arith-ops.cc, balance.cc, |
|
6214 bogus.cc, chol.cc, colloc.cc, dassl.cc, data.cc, det.cc, |
|
6215 dirfns.cc, eig.cc, error.cc, expm.cc, fft.cc, fft2.cc, file-io.cc, |
|
6216 filter.cc, find.cc, fsolve.cc, fsqp.cc, givens.cc, gripes.cc, |
|
6217 help.cc, hess.cc, ifft.cc, ifft2.cc, input.cc, inv.cc, |
|
6218 load-save.cc, log.cc, lpsolve.cc, lsode.cc, lu.cc, minmax.cc, |
|
6219 npsol.cc, oct-hist.cc, oct-obj.cc, oct-stream.cc, pager.cc, |
|
6220 pinv.cc, pr-output.cc, pt-cmd.cc, pt-const.cc, pt-exp-base.cc, |
|
6221 pt-exp.cc, pt-fcn.cc, pt-fvc-base.cc, pt-fvc.cc, pt-mat.cc, |
|
6222 pt-misc.cc, pt-mvr-base.cc, pt-mvr.cc, pt-plot.cc, qpsol.cc, |
|
6223 qr.cc, quad.cc, qzval.cc, rand.cc, resource.cc, schur.cc, sort.cc, |
|
6224 strfns.cc, svd.cc, syl.cc, symtab.cc, syscalls.cc, sysdep.cc, |
|
6225 timefns.cc, toplev.cc, utils.cc, variables.cc, xpow.cc, parse.y: |
|
6226 Rename tree_constant -> octave_value. |
|
6227 Rename Octave_object -> octave_value_list. |
|
6228 |
|
6229 Wed Apr 24 22:15:34 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6230 |
|
6231 * toplev.cc (Fsystem): Merge functionality of async_system and |
|
6232 sync_system. |
|
6233 |
|
6234 * oct-fstrm.h, oct-iostrm.h, oct-prcstrm.h, oct-stdstrm.h, |
|
6235 oct-stream.h, oct-strstrm.h, oct-fstrm.cc, oct-iostrm.cc, |
|
6236 oct-prcstrm.cc, oct-stdstrm.cc, oct-stream.cc, oct-strstrm.cc, |
|
6237 Array-os.cc: New files. |
|
6238 * Makefile.in: Add them to the appropriate lists. |
|
6239 * file-io.cc: Rewrite to use new stream classes. |
|
6240 |
|
6241 Tue Apr 23 18:59:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6242 |
|
6243 * gripes.cc (gripe_not_supported): New function. |
|
6244 |
|
6245 * toplev.cc (do_octave_atexit, Fatexit): New functions. |
|
6246 (octave_atexit_functions): New file-scope variable. |
|
6247 * octave.cc (main): Register do_octave_atexit with atexit. |
|
6248 |
|
6249 * variables.cc (install_builtin_variables): Call |
|
6250 symbols_of_syscalls here. |
|
6251 |
|
6252 * syscalls.h, syscalls.cc: New files. |
|
6253 |
|
6254 Mon Apr 22 21:14:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6255 |
|
6256 * syscalls.cc: New file. |
|
6257 (Flstat, Fmkfifo, Fstat, Funlink, Fwait, Fwaitpid): Move here. |
|
6258 * file-io.cc: From here. |
|
6259 * Makefile.in (SOURCES): Add syscalls.cc to the list. |
|
6260 |
|
6261 Wed Apr 17 18:34:10 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6262 |
|
6263 * file-info.h, file-info.cc: Delete files. |
|
6264 * Makefile.in: Remove from lists. |
|
6265 |
|
6266 * toplev.cc (Fquit): Accept exit status argument. |
|
6267 (Fflops): Delete (now a function file). |
|
6268 |
|
6269 Thu Apr 11 16:20:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6270 |
|
6271 * lex.l: Recognize `.'. |
|
6272 Update current_input_column even for unrecognized characters. |
|
6273 Return LEXICAL_ERROR for unrecognized characters. |
|
6274 |
|
6275 Mon Apr 8 19:59:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6276 |
|
6277 * variables.cc (install_builtin_variables): Split into several |
|
6278 functions to make compiling with g++ go faster and consume less |
|
6279 memory. |
|
6280 |
|
6281 Sun Apr 7 16:25:35 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6282 |
|
6283 * load-save.cc (Fsave): Print usage if i == argc. |
|
6284 (Fload): Likewise. |
|
6285 |
|
6286 Sat Apr 6 21:26:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6287 |
|
6288 * Makefile.in (clean): Also delete pic/*.o |
|
6289 (maintainer-clean, distclean): Also remove stamp-picdir, |
|
6290 stamp-tinst, stamp-interp, and pic directory. |
|
6291 (stamp-prereq): New target. |
|
6292 |
|
6293 Wed Apr 3 11:19:30 1996 Rick Niles <niles@axp745.gsfc.nasa.gov> |
|
6294 |
|
6295 * resource.cc: Don't make including sys/resource.h and sys/times.h |
|
6296 mutually exclusive. |
|
6297 |
|
6298 Fri Mar 29 13:43:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6299 |
|
6300 * Makefile.in (distclean): Delete so_locations, which is created |
|
6301 on DEC Alpha systems. |
|
6302 |
|
6303 Thu Mar 28 02:53:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6304 |
|
6305 * utils.h (undo_string_escape): Provide extern declaration here. |
|
6306 |
|
6307 * lex.l (NL): Allow \r\n as new line character. |
|
6308 (.): Complain if invalid character is found on input |
|
6309 |
|
6310 Fri Mar 22 03:47:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6311 |
|
6312 * resource.cc (getrusage): If getrusage is missing, try using |
|
6313 times to at least fill in the cpu time values. If neither one is |
|
6314 available, return 0 for cpu times instead of NaN. |
|
6315 |
|
6316 * sighandlers.cc (octave_signal_mask): New file-scope variable. |
|
6317 (octave_save_signal_mask, octave_restore_signal_mask): New functions. |
|
6318 * toplev.cc (main_loop): Use them. |
|
6319 |
|
6320 Wed Mar 20 01:21:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6321 |
|
6322 * utils.cc (get_fcn_file_names (const string&, int)): Resize |
|
6323 retval to value of k, not i. |
|
6324 (get_fcn_file_names (int)): In loop for copying names to retval, |
|
6325 don't increment j twice. |
|
6326 |
|
6327 Mon Mar 18 22:27:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6328 |
|
6329 * Makefile.in ($(MAKEDEPS)): Depend on oct-gperf.h. |
|
6330 |
|
6331 Fri Mar 1 18:15:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6332 |
|
6333 * fsolve.cc (fsolve_options): Delete unused argument nargout. |
|
6334 |
|
6335 * filter.cc: Use MArray instead of Array so that automatic |
|
6336 conversions will work again. |
|
6337 |
|
6338 Tue Feb 27 04:49:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6339 |
|
6340 * variables.cc (looks_like_octave_copyright): Make the strings |
|
6341 that we are trying to match both have length 29. |
|
6342 |
|
6343 * Makefile.in (install-bin): Use $(INSTALL_PROGRAM), not $(INSTALL). |
|
6344 |
|
6345 * load-save.cc (read_mat_binary_data): Make sure name is |
|
6346 NUL terminated. |
|
6347 |
|
6348 Mon Feb 26 18:18:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6349 |
|
6350 * variables.cc (whos): Make argv from tmp_args, not args. |
|
6351 |
|
6352 * defun.h (DEFCONSTX): Don't stringify name. |
|
6353 |
|
6354 Sat Feb 24 01:12:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6355 |
|
6356 * Makefile.in (install-oct): Make mk-oct-links executable. |
|
6357 * mk-oct-links.in (links_dir): Update to match new format of |
|
6358 DEFUN_DLD_BUILTIN macro. Use LN_S, not just LN. |
|
6359 (links_dir): |
|
6360 |
|
6361 * pr-output.cc (octave_print_internal): New arg, extra_indent, for |
|
6362 versions of this function that take matrices and ranges. |
|
6363 * pt-const.cc (TC_REP::print (ostream&)): Fix printing of structures. |
|
6364 Pass struct_indent to octave_print_internal as appropriate. |
|
6365 (print_with_name (ostream&, const string&, bool)): Handle spacing |
|
6366 around `=' differently for structures. |
|
6367 |
|
6368 Fri Feb 23 04:51:04 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6369 |
|
6370 * token.cc (token (double, const string&, int, int)): Store orig_text. |
|
6371 |
|
6372 Tue Feb 20 20:36:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6373 |
|
6374 * variables.cc (Fclear): Fix off-by-one error. |
|
6375 |
|
6376 Sat Feb 17 16:54:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6377 |
|
6378 * oct-hist.cc (default_history_file): Append "/.octave_hist" to |
|
6379 return value, not to home_directory. |
|
6380 |
|
6381 Fri Feb 16 18:10:46 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6382 |
|
6383 * utils.cc: (NINT, D_NINT): Move to liboctave. |
|
6384 |
|
6385 * sysdep.cc (octave_ieee_init): Move to liboctave. |
|
6386 |
|
6387 * procstream.h, procstream.cc: Rewrite. |
|
6388 |
|
6389 * pager.cc (cleanup_oprocstream): New static function. |
|
6390 * toplev.cc (cleanup_iprocstream): Likewise. |
|
6391 * dirfns.cc (cleanup_iprocstream): Likewise. |
|
6392 |
|
6393 * unwind-prot.cc (matrix_cleanup, complex_matrix_cleanup): Delete. |
|
6394 |
|
6395 Thu Feb 15 22:03:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6396 |
|
6397 * oct-obj.cc, oct-obj.h: Move most code to the header. |
|
6398 |
|
6399 * oct-obj.cc (make_argv, all_strings): New member functions. |
|
6400 * utils.cc: Moved from here. |
|
6401 |
|
6402 * load-save.cc: Move byte swapping stuff to liboctave. |
|
6403 Move float format conversion stuff to liboctave. |
|
6404 (all_parts_int, too_large_for_float): Move to liboctave. |
|
6405 |
|
6406 * symtab.cc (valid_identifier): Move here. |
|
6407 * load-save.cc: From here. |
|
6408 |
|
6409 * sysdep.cc: Move floating-point format stuff to liboctave. |
|
6410 * pr-output.cc: Include float-fmt.h here. |
|
6411 |
|
6412 Wed Feb 14 01:49:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6413 |
|
6414 * defun.h, defun-dld.h, defun-int.h: Simplify interface for DEFUN, |
|
6415 DEFUN_DLD, DEFVAR, and DEFCONST macros. Change all uses. |
|
6416 |
|
6417 * qzval.cc: Move guts to liboctave. |
|
6418 |
|
6419 Tue Feb 13 10:28:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6420 |
|
6421 * variables.cc (parse_fcn_file): Also avoid saving history if |
|
6422 input is from a script file. |
|
6423 |
|
6424 * help.cc (Ftype): Call unwind_protect_str for user_pref.ps4. |
|
6425 |
|
6426 * npsol.cc (nonlinear_constraints_ok): Now static. |
|
6427 |
|
6428 * npsol.cc (linear_constraints_ok): Now static. |
|
6429 * qpsol.cc (linear_constraints_ok): Duplicate here. |
|
6430 |
|
6431 * data.cc (Flinspace): Don't print usage message if nargin == 2. |
|
6432 |
|
6433 Sun Feb 11 14:20:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6434 |
|
6435 * mk-oct-links.in: Rename from mk-oct-links. |
|
6436 (LN_S): Use this variable instead of ln. |
|
6437 Set -e option for shell. |
|
6438 Exit with status of last command. |
|
6439 Print message when making link. |
|
6440 * Makefile.in (DISTFILES): Add mk-oct-links.in to the list. |
|
6441 (install-oct): Run ./mk-oct-links, not $(srcdir)/mk-oct-links. |
|
6442 |
|
6443 * variables.cc (install_builtin_variables): Restore accidentally |
|
6444 deleted DEFVAR for save_precision. |
|
6445 |
|
6446 Fri Feb 9 11:24:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6447 |
|
6448 * Makefile.in (INCLUDES): Delete statdefs.h from the list (it's |
|
6449 now in the liboctave directory). |
|
6450 |
|
6451 * toplev.cc (toplevel): Define here. |
|
6452 * octave.cc (toplevel): Not here. |
|
6453 |
|
6454 * toplev.cc (main_loop): New function. |
|
6455 * octave.cc (main): Call it here instead of doing main loop |
|
6456 actions here. |
|
6457 |
|
6458 * user-prefs.cc (do_fortran_indexing): Also set liboctave_dfi_flag. |
|
6459 (prefer_column_vectors): Also set liboctave_pcv_flag. |
|
6460 (prefer_zero_one_indexing): Also set liboctave_pzo_flag. |
|
6461 (resize_on_range_error): Also set liboctave_rre_flag. |
|
6462 |
|
6463 * variables.cc (restore_command_history): New function. |
|
6464 (parse_fcn_file): Use it here in unwind_protect. |
|
6465 |
|
6466 * dynamic-ld.cc (load_octave_oct_file): Reverse sense of test. |
|
6467 (load_octave_builtin): Delete. |
|
6468 (mangle_octave_oct_file_name): Delete. |
|
6469 |
|
6470 * pt-fvc.cc (tree_builtin::eval): Don't try to dynamically load |
|
6471 functions here. |
|
6472 |
|
6473 * pr-output.cc (set_format_style): Decrement argc for first arg too. |
|
6474 |
|
6475 * input.cc (gnu_readline): If readline returns an empty string, |
|
6476 convert it to a string containing a single newline character. |
|
6477 |
|
6478 * octave.cc (octave_argv): Now a static string_vector. |
|
6479 (intern_argv): Use string_vector ops, not charMatrix ops. |
|
6480 * toplev.cc (octave_argv): Delete definition. |
|
6481 * toplev.h (octave_argv): Delete declaration. |
|
6482 |
|
6483 Thu Feb 8 10:58:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6484 |
|
6485 * Makefile.in (conf-dist): New target. |
|
6486 |
|
6487 Tue Feb 6 10:59:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6488 |
|
6489 * help.cc (Ftype): Correctly handle structure names. |
|
6490 |
|
6491 Sun Feb 4 02:02:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6492 |
|
6493 * qpsol.cc (Fqpsol): Call set_options(), not copy() to set |
|
6494 options for QPSOL objects. |
|
6495 |
|
6496 * npsol.cc (Fnpsol): Call set_options(), not copy() to set |
|
6497 options for NPSOL objects. |
|
6498 |
|
6499 * quad.cc (Fquad): Call set_options(), not copy() to set |
|
6500 options for Quad objects. |
|
6501 |
|
6502 * dynamic-ld.cc (load_octave_builtin): Don't call destructor on string. |
|
6503 (load_octave_oct_file): Likewise. |
|
6504 Check oct_file.empty(), not just oct_file. |
|
6505 |
|
6506 * fsolve.cc (Ffsolve): Call set_options(), not copy() to set |
|
6507 options for NLEqn object. |
|
6508 |
|
6509 * variables.cc (do_who): Properly set match patterns from argument |
|
6510 vector for call to maybe_list. |
|
6511 |
|
6512 Sat Feb 3 03:29:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6513 |
|
6514 * octave.cc (long_opts): Properly set second field using new enum. |
|
6515 |
|
6516 * lsode.cc: Change ODE to LSODE where appropriate. |
|
6517 Use LSODE_options, not ODE_options. |
|
6518 |
|
6519 * dassl.cc: Change DAE to DASSL where appropriate. |
|
6520 Use DASSL_options, not ODE_options. |
|
6521 |
|
6522 Fri Feb 2 01:41:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6523 |
|
6524 * dirfns.cc: Include unistd.h. |
|
6525 |
|
6526 * parse.y, lex.l: Handle matrix lists without ml or mlnm stacks. |
|
6527 * pt-mat.h, pt-mat.cc (tree_matrix): |
|
6528 Rewrite to use SLList instead of home brew list. |
|
6529 * SLList-tm.cc: New file |
|
6530 * Makefile.in: Add it to the lists. |
|
6531 * SLStack-tm.cc: Delete. |
|
6532 * Makefile.in: Delete it from the lists. |
|
6533 |
|
6534 * All pt-* files: Use bool instead of int where appropriate. |
|
6535 |
|
6536 * Makefile.in (DEP_SOURCES_3): Add octave.cc. |
|
6537 |
|
6538 * pt-const.h (class tree_constant::tree_constant_rep): Make |
|
6539 everything in this class public, then it doesn't need to declare |
|
6540 the tree_constant class as a friend. |
|
6541 |
|
6542 Thu Feb 1 01:42:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6543 |
|
6544 * lex.h, lex.l, parse.h, parse.y (class lexical_feedback): New |
|
6545 class for lexer flags. Replace lots of global vars with members |
|
6546 of this class. |
|
6547 |
|
6548 * lex.l (class brace_paren_nesting_level): New class to replace |
|
6549 nesting_level stack. nesting_level is now an instance of this |
|
6550 class. |
|
6551 |
|
6552 * lex.l (yum_yum): New typedef. |
|
6553 (ATE_NOTHING): New global var. |
|
6554 (ATE_SPACE_OR_TAB, ATE_NEWLINE): Don't #define these, declare them |
|
6555 as const yum_yum. |
|
6556 (eat_whitespace, eat_continuation): Return yum_yum, not int. |
|
6557 |
|
6558 * lex.l (SHORT_CIRCUIT_LOGICALS): Delete. Always do this for || |
|
6559 and && tokens. |
|
6560 (yy_flex_alloc, yy_flex_realloc, yy_flex_free, next_char_is_space): |
|
6561 Delete. |
|
6562 |
|
6563 * toplev.cc (verbose_flag): Delete definition. |
|
6564 * toplev.h (verbose_flag): And declaration. |
|
6565 * octave.cc (verbose_flag): Now static. |
|
6566 |
|
6567 * lex.l (lookup_identifier): Arg is now string, not char*. |
|
6568 (handle_identifier, is_plot_keyword, is_keyword): Likewise. |
|
6569 (strip_trailing_whitespace): Return value is now string, not char*. |
|
6570 (plot_style_token): Likewise, for both arg and return value. |
|
6571 |
|
6572 * input.cc (octave_gets_line): Delete. |
|
6573 (gnu_readline, octave_gets, octave_read): |
|
6574 Properly handle input when using_readline is either true or false. |
|
6575 Don't limit length of input lines to flex buffer size. |
|
6576 (get_user_input): New function. |
|
6577 |
|
6578 * octave.cc (main): Handle --no-line-editing. |
|
6579 * toplev.h (using_readline): Provide external declaration here. |
|
6580 * input.h: Not here. |
|
6581 * toplev.cc (using_readline): Define here. |
|
6582 * input.cc: Not here. |
|
6583 |
|
6584 * toplev.h (no_line_editing): Delete declaration. |
|
6585 * input.cc (no_line_editing): Delete definition. |
|
6586 |
|
6587 Wed Jan 31 05:28:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6588 |
|
6589 * input.cc (DEFAULT_ARRAY_SIZE, PROMPT_GROWTH): Delete definitions |
|
6590 of unused macros. |
|
6591 (read_octal): Now static. |
|
6592 |
|
6593 * givens.cc (Fgivens): Use new functions from matrix classes |
|
6594 instead of calling Fortran functions directly. |
|
6595 * syl.cc (Fsyl): Likewise. |
|
6596 * expm.cc (Fexpm): Likewise. |
|
6597 |
|
6598 Mon Jan 29 00:00:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6599 |
|
6600 * octave.cc: Use new prog_args class instead of calling getopt |
|
6601 directly. |
|
6602 |
|
6603 * getopt.h, getopt.c, getopt1.c: Move to liboctave directory. |
|
6604 * Makefile: Remove from lists. |
|
6605 |
|
6606 * utils.cc (strconcat, read_until, discard_until): Delete. |
|
6607 |
|
6608 * pager.cc (terminal_columns, terminal_rows): Move to |
|
6609 liboctave/oct-term.cc. |
|
6610 * pager.cc, pr-output.cc: Include oct-term.h. |
|
6611 |
|
6612 * utils.cc (list_in_columns): Moved to liboctave/str-vec.cc. |
|
6613 Change all callers to use new member function syntax. |
|
6614 |
|
6615 * dirfns.cc (absolute_program): Now static. |
|
6616 (absolute_pathname): Delete. |
|
6617 |
|
6618 * pt-plot.cc (save_in_tmp_file): Call oct_tempnam, not |
|
6619 octave_tmp_file_name. Include file-ops.h. |
|
6620 * file-io.cc (do_scanf, Foctave_tmp_file_name): Likewise. |
|
6621 * oct-hist.cc (mk_tmp_hist_file): Likewise. |
|
6622 |
|
6623 * file-io.cc (Foctave_tmp_file_name): Move here. |
|
6624 * utils.cc: From here. |
|
6625 |
|
6626 * utils.cc (octave_tmp_file_name): Move to liboctave/file-ops.cc. |
|
6627 |
|
6628 * tempname.c, tempnam.c: Move to liboctave directory. |
|
6629 * Makefile.in: Remove from lists. |
|
6630 |
|
6631 Sun Jan 28 19:00:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6632 |
|
6633 * xdiv.cc (all xdiv functions): Return Matrix or ComplexMatrix, |
|
6634 not tree_constant. |
|
6635 |
|
6636 * oct-hist.h, oct-hist.cc, toplev.cc, octave.cc, input.cc, |
|
6637 file-io.cc, user-prefs.cc: Rewrite to use new command_history |
|
6638 class instead of calling readline history functions directly. |
|
6639 |
|
6640 * utils.cc (get_fcn_file_names): Delete num arg. |
|
6641 |
|
6642 Thu Jan 25 20:33:54 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6643 |
|
6644 * load-save.cc (matches_patterns): Use new glob_match class |
|
6645 instead of calling fnmatch directly. |
|
6646 * symtab.cc (matches_patterns, symbol_table::glob): Likewise. |
|
6647 * variables.cc (Fclear): Likewise. |
|
6648 |
|
6649 Wed Jan 24 02:05:22 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6650 |
|
6651 * fnmatch.h fnmatch.c: Delete. |
|
6652 * Makefile.in: Add glob stuff in the appropriate places, remove |
|
6653 fnmatch.h and fnmatch.c from lists. |
|
6654 |
|
6655 * octave.cc (program_invocation_name, program_invocation_short_name): |
|
6656 Maybe declare. |
|
6657 (initialize_globals): Maybe initialize them. |
|
6658 |
|
6659 * octave.cc (initialize_pathsearch): Define here, not in pathsearch.cc. |
|
6660 * pathsearch.h, pathsearch.cc: Remove files. |
|
6661 * Makefile.in: Remove them from the lists. |
|
6662 |
|
6663 * help.cc (simple_help): Ignore directories that don't have any .m |
|
6664 or .oct files. |
|
6665 |
|
6666 * utils.cc (search_path_for_file): Use new dir_path class instead |
|
6667 of calling kpathsea routines directly. |
|
6668 (get_fcn_file_names): Likewise. |
|
6669 * help.cc (simple_help): Likewise. |
|
6670 |
|
6671 * dirfns.cc (make_absolute): Don't convert empty arg to "./". |
|
6672 |
|
6673 * sysdir.h: Move to liboctave directory. |
|
6674 * Makefile.in: Remove from lists. |
|
6675 |
|
6676 * dirfns.cc (Freaddir): Use new dir_entry class instead of calling |
|
6677 readdir directly. Include dir-ops.h, not sysdir.h. |
|
6678 * utils.cc (get_fcn_file_names): Likewise. Delete unnecessary |
|
6679 first arg, change all callers. |
|
6680 |
|
6681 Tue Jan 23 00:43:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6682 |
|
6683 * safe-xstat.hin, safe-xstat.cin, statdefs.h, file-ops.h, |
|
6684 file-ops.cc, filemode.c, mkdir.c, rmdir.c, rename.c: |
|
6685 Files moved to liboctave directory. |
|
6686 * Makefile.in: Remove them from lists. Move appropriate rules. |
|
6687 |
|
6688 * acosh.c, asinh.c, atanh.c, erf.c, erfc.c, gamma.c, lgamma.c: |
|
6689 Files moved to liboctave directory. |
|
6690 * Makefile.in: Remove them from lists. |
|
6691 * missing-math.h: Deleted. |
|
6692 * pr-output.cc, sysdep.cc, minmax.cc, mappers.cc, expm.cc, |
|
6693 arith-ops.cc: Include oct-math.h, not cmath or missing-math.h. |
|
6694 |
|
6695 Mon Jan 22 19:33:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6696 |
|
6697 * variables.cc (Fexist): Use file_stat instead of calling stat |
|
6698 directly. Include file-ops.h, not statdefs.h. |
|
6699 * octave.cc (execute_startup_files): Likewise. |
|
6700 * file-io.cc (file_io_get_file, fopen_internal, popen_internal, Fstat): |
|
6701 Likewise. |
|
6702 (mk_stat_map): Likewise, use file_stat object, not struct stat. |
|
6703 * oct-hist.cc (do_history): Likewise. |
|
6704 |
|
6705 * file-ops.h, file-stat.cc: New files. |
|
6706 * Makefile.in: Include them. |
|
6707 * dirfns.cc: Delete is_newer. Don't include statdefs.h. |
|
6708 * toplev.cc: Don't include statdefs.h. |
|
6709 |
|
6710 Sun Jan 21 22:48:03 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6711 |
|
6712 * pt-mvr.h, pt-fvc.h, Map.cc, Map.h, dynamic-ld.h, |
|
6713 pt-fvc-base.cc, SLList-str.cc, pt-fcn.h, pt-fvc-base.h, |
|
6714 SLStack-str.cc, pt-mvr.cc, pt-exp.cc, token.h, token.cc, |
|
6715 user-prefs.h, pt-base.cc, user-prefs.cc, dirfns.h, sysdep.h, |
|
6716 sysdep.cc, input.h, parse.h, lex.l, parse.y, defun.h, mappers.h, |
|
6717 pt-fvc.cc, pt-plot.h, load-save.h, octave.cc, defun-int.h, help.h, |
|
6718 variables.h, oct-map.h, oct-obj.h, oct-obj.cc, pt-const.cc, |
|
6719 oct-map.cc, input.cc, symtab.h, pt-const.h, pathsearch.cc, |
|
6720 pr-output.h, pr-output.cc, toplev.h, timefns.cc, schur.cc, |
|
6721 pt-plot.cc, pager.cc, load-save.cc, dynamic-ld.cc, dirfns.cc, |
|
6722 data.cc, file-info.h, file-info.cc, colloc.cc, utils.h, qpsol.cc, |
|
6723 quad.cc, npsol.cc, lsode.cc, fsolve.cc, dassl.cc, file-io.cc, |
|
6724 help.cc, utils.cc, oct-hist.h, oct-hist.cc, symtab.cc, toplev.cc, |
|
6725 pt-fcn.cc, unwind-prot.h, unwind-prot.cc, variables.cc: |
|
6726 Most functions in these files that deal with character strings |
|
6727 have been converted to use the string class insatead of char*. If |
|
6728 you want more detailed information, you'll have to figure it out |
|
6729 for yourself. |
|
6730 |
|
6731 Sat Jan 20 18:19:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6732 |
|
6733 * dynamic-ld.cc [WITH_DL]: Define RTLD_LAZY to be 1 if it is not |
|
6734 already defined. |
|
6735 |
|
6736 Sun Jan 14 07:48:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6737 |
|
6738 * pt-const.cc (print_as_scalar, print_as_structure): |
|
6739 Make these member functions. |
|
6740 (tree_constant::print_with_name): New function, moved here from |
|
6741 old tree-expr.cc file (where it was called print_constant) and |
|
6742 converted to member function. Change all callers. |
|
6743 |
|
6744 Fri Jan 12 01:54:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6745 |
|
6746 * octave.cc (initialize_globals): Don't do kpathsearch stuff here. |
|
6747 (main): Call initialize_pathsearch() here. |
|
6748 |
|
6749 * pathsearch.cc: New file. |
|
6750 * Makefile.in (SOURCES): Add it to the list |
|
6751 |
|
6752 * oct-hist.h: Rename from octave-hist.h. |
|
6753 * oct-hist.cc: Rename from octave-hist.cc. |
|
6754 * Makefile.in, parse.y, other .cc files: Cope with it. |
|
6755 |
|
6756 * dynamic-ld.cc: Avoid warnings if !WITH_DYNAMIC_LINKING. |
|
6757 |
|
6758 * load-save.cc (save_ascii_data): string::data() returns const char*. |
|
6759 |
|
6760 * utils.h: Don't provide forward declaration for tree_constant. |
|
6761 |
|
6762 * oct-obj.h: Don't include mx-base.h or provide forward |
|
6763 declarations for Matrix and Range types. |
|
6764 |
|
6765 * file-info.h: Don't include oct-obj.h. Do include cstdio. |
|
6766 |
|
6767 * symtab.h: Don't provide forward declaration for ostream. |
|
6768 |
|
6769 * variables.h: Don't provide forward declarations for istream, |
|
6770 ostrstream, tree, builtin_function, or builtin_variable objects. |
|
6771 |
|
6772 * balance.cc, chol.cc, colloc.cc, dassl.cc, det.cc, eig.cc, |
|
6773 expm.cc, fft.cc, fft2.cc, filter.cc, find.cc, fsolve.cc, fsqp.cc, |
|
6774 givens.cc, hess.cc, ifft.cc, ifft2.cc, inv.cc, log.cc, lpsolve.cc, |
|
6775 lsode.cc, lu.cc, minmax.cc, npsol.cc, pinv.cc, qpsol.cc, qr.cc, |
|
6776 quad.cc, qzval.cc, rand.cc, schur.cc, sort.cc, svd.cc, syl.cc: |
|
6777 Clean up #include statements. |
|
6778 |
|
6779 * pt-const.h: Don't include oct-obj.h or tree-base.h. |
|
6780 Provide forward declaration of Octave_object here. |
|
6781 * pt-const.cc: Include oct-obj.h here. |
|
6782 |
|
6783 * pt-mat.h, pt-fcn.h, pt-const.h, pt-misc.h, pt-plot.h, |
|
6784 pt-exp-base.h, pt-cmd.h, pt-fvc-base.h, pt-mvr-base.h, pt-exp.h, |
|
6785 pt-mvr.h, pt-fvc.h: New files, split from tree-expr.h and/or |
|
6786 renamed from other tree-*.h files (pt == parse tree). |
|
6787 * pt-base.cc, pt-const.cc, pt-exp.cc, pt-fvc-base.cc, pt-mat.cc, |
|
6788 pt-mvr-base.cc, pt-plot.cc, pt-cmd.cc, pt-exp-base.cc, pt-fcn.cc, |
|
6789 pt-fvc.cc, pt-misc.cc, pt-mvr.cc: Likewse, split from tree-expr.cc |
|
6790 and/or other tree-*.cc files. |
|
6791 * Makefile.in: Include them in the appropriate lists. |
|
6792 * All: Fix #include statements to match. |
|
6793 |
|
6794 * Array-tc.cc: Don't instantiate ArrayRep objects. |
|
6795 |
|
6796 Thu Jan 11 02:35:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6797 |
|
6798 * tree-const.cc (tree_constant::eval (int, int, const Octave_object&)): |
|
6799 Define here instead of in tree-const.h. |
|
6800 |
|
6801 Wed Jan 10 04:34:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6802 |
|
6803 * tree-const.h (tree_constant::tree_constant (const string&): |
|
6804 * tree-const.cc (TC_REP::tree_constant_rep (const string&)): |
|
6805 New constructor. |
|
6806 |
|
6807 Tue Jan 9 04:10:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6808 |
|
6809 * rand.cc (do_rand): Use string_value() result directly instead of |
|
6810 c_str() conversion. |
|
6811 * balance.cc (Fbalance): Likewise. |
|
6812 |
|
6813 * tree-const.cc (TC_REP::string_value()): |
|
6814 Handle new definition of charMatrix::row_as_string() |
|
6815 * load-save.cc (save_ascii_data): Ditto. |
|
6816 (save_binary_data): Ditto. |
|
6817 * pr-output.cc (octave_print_internal): Ditto. |
|
6818 |
|
6819 * balance.cc (Fbalance): |
|
6820 Handle new definition of TC_REP::string_value() |
|
6821 * colloc.cc (Fcolloc): Ditto. |
|
6822 * dassl.cc (Fdassl_options): Ditto. |
|
6823 * data.cc (Fstruct_contains): Ditto. |
|
6824 * dirfns.cc (Fmkdir): Ditto. |
|
6825 (Freaddir): Ditto. |
|
6826 (Frmdir): Ditto. |
|
6827 (Frename): Ditto. |
|
6828 * error.cc (handle_message): Ditto. |
|
6829 * file-io.cc (process_printf_format): Ditto. |
|
6830 (fopen_internal): Ditto. |
|
6831 (file_io_get_file): Ditto. |
|
6832 (return_valid_file): Ditto. |
|
6833 (Flstat): Ditto. |
|
6834 (Fstat): Ditto. |
|
6835 (unlink_internal): Ditto. |
|
6836 (mkfifo_internal): Ditto. |
|
6837 (async_system_internal): Ditto. |
|
6838 (sync_system_internal): Ditto. |
|
6839 (execute_internal): Ditto. |
|
6840 (popen_internal): Ditto. |
|
6841 (fwrite_internal): Ditto. |
|
6842 (fread_internal): Ditto. |
|
6843 (do_printf): Ditto. |
|
6844 (do_scanf): Ditto. |
|
6845 * input.cc (get_user_input): Ditto. |
|
6846 * lsode.cc (Flsode_options): Ditto. |
|
6847 * npsol.cc (Fnpsol_options):Ditto. |
|
6848 * qpsol.cc (Fqpsol_options):Ditto. |
|
6849 * quad.cc (Fquad_options): Ditto. |
|
6850 * rand.cc (do_rand): Ditto. |
|
6851 * schur.cc (Fschur): Ditto. |
|
6852 * sysdep.cc (Fputenv): Ditto. |
|
6853 (Fgetenv): Ditto. |
|
6854 * timefns.cc (extract_tm): Ditto. |
|
6855 (Fstrftime): Ditto. |
|
6856 * toplev.cc (Fsource): Ditto. |
|
6857 (eval_string): Ditto. |
|
6858 (Fsystem): Ditto. |
|
6859 * tree-plot.cc (subplot::handle_plot_data): Ditto. |
|
6860 * variables.cc (is_valid_function): Ditto. |
|
6861 (Fis_global): Ditto. |
|
6862 (Fexist): Ditto. |
|
6863 (builtin_string_variable): Ditto. |
|
6864 * utils.cc (make_argv): Ditto. |
|
6865 (Fundo_string_escapes): Ditto. |
|
6866 |
|
6867 Mon Jan 8 01:54:50 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6868 |
|
6869 * Makefile.in (install-bin): Use $(LN_S), not just ln. |
|
6870 |
|
6871 * variables.cc (octave_fcn_file_dir): New function. |
|
6872 * tree-expr.cc (mark_as_system_fcn_file): Use it instead of |
|
6873 octave_lib_dir. |
|
6874 |
|
6875 * Makefile.in (clean): If $(SHARED_LIBS), also remove shared libs. |
|
6876 |
|
6877 * pr-output.cc (set_format (const ComplexMatrix&, int&, int&)): |
|
6878 Unconditionally call all_elements_are_int_or_inf_or_nan(). |
|
6879 (set_format (const Matrix&, int&, int&)): Likewise. |
|
6880 |
|
6881 Sun Jan 7 19:12:39 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6882 |
|
6883 * utils.cc (oct_putenv): New function. |
|
6884 * sysdep.cc (Fputenv): Use oct_putenv. |
|
6885 * octave.cc (initialize_globals): Likewise. |
|
6886 |
|
6887 Sat Jan 6 23:22:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6888 |
|
6889 * sysdep.cc (Fputenv): New function. |
|
6890 |
|
6891 * input.cc (initialize_readline): Call rl_initialize() here. |
|
6892 |
|
6893 * octave.cc: Conditionally define atexit to be on_exit here. |
|
6894 * toplev.cc: Not here. |
|
6895 |
|
6896 Fri Jan 5 14:01:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6897 |
|
6898 * toplev.cc: Don't include <pwd.h> here. |
|
6899 |
|
6900 * octave-hist.cc, tree-plot.cc, utils.cc: Do include "sysdep.h". |
|
6901 |
|
6902 * dirfns.cc, file-io.cc, help.cc, load-save.cc, octave.cc, |
|
6903 octave-hist.cc, tree-plot.cc, utils.cc: |
|
6904 Don't include <readline/tilde.h>. |
|
6905 * sysdep.h: Do include it here. |
|
6906 |
|
6907 * tree-const.cc (TC_REP::assign (tree_constant&, Octave_object&)): |
|
6908 If we have a matrix or range, call maybe_mutate before returning. |
|
6909 |
|
6910 Sun Dec 31 15:56:18 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6911 |
|
6912 * npsol.cc (Fnpsol): Improve doc string. |
|
6913 * qpsol.cc (Fqpsol): Likewise. |
|
6914 |
|
6915 Fri Dec 29 21:46:58 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6916 |
|
6917 * defun-dld.h: Make work again for OCTAVE_LITE and |
|
6918 WITH_DYNAMIC_LINKING. |
|
6919 |
|
6920 * Makefile.in: Handle shared libraries. |
|
6921 |
|
6922 Wed Dec 27 17:47:51 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6923 |
|
6924 * mk-oct-links: New file. |
|
6925 * Makefile.in (install-oct): Use it. |
|
6926 * f-*.cc: Rename to *.cc. |
|
6927 |
|
6928 * Makefile.in (install-bin, install-lib, install-oct): New targets. |
|
6929 (install): Use them. |
|
6930 |
|
6931 Tue Dec 26 21:38:22 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6932 |
|
6933 * toplev.cc (reading_startup_message_printed): Move initialization |
|
6934 here and make extern. |
|
6935 |
|
6936 * dirfns.cc, dynamic-ld.cc, help.cc, input.cc, octave-hist.cc, |
|
6937 octave.cc, sighandlers.cc, sysdep.cc, tree-expr.cc, tree-misc.cc, |
|
6938 utils.cc, variables.cc, parse.y, lex.l: Include toplev.h instead |
|
6939 of octave.h. |
|
6940 * toplev.h: rename from octave.h. |
|
6941 |
|
6942 * octave.cc (main): Delete unused variable saved_sigint_handler. |
|
6943 |
|
6944 Sun Dec 24 00:26:54 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6945 |
|
6946 * dynamic-ld.cc: Massive re-write to handle dlopen/dlsym and |
|
6947 shl_load/shl_findsym methods of dynamic linking. |
|
6948 |
|
6949 * utils.cc (get_fcn_file_names): Check for .oct files if |
|
6950 WITH_DYNAMIC_LINKING, not WITH_DLD. |
|
6951 |
|
6952 * Makefile.in (LIB, TERMLIBS): Substitute values. |
|
6953 (octave): Add $(LIBS) to link command and use $(TERMLIBS) instead |
|
6954 of -ltermcap. |
|
6955 |
|
6956 Sat Dec 23 21:56:12 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6957 |
|
6958 * dynamic-ld.h, dynamic-ld.cc: Remove old unused code. |
|
6959 |
|
6960 * variables.cc (load_fcn_from_file): |
|
6961 Always call load_octave_oct_file. |
|
6962 |
|
6963 Wed Dec 20 00:56:57 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6964 |
|
6965 * pr-output.cc (set_real_format, set_real_matrix_format, |
|
6966 set_complex_format, set_complex_matrix_format, set_range_format): |
|
6967 New functions. Ensure the count of the digits to the right of the |
|
6968 decimal point is positive. |
|
6969 |
|
6970 * xpow.cc (xpow (const Matrix&, double)): Print warning if |
|
6971 inverting singular matrix (but return value anyway, in the name of |
|
6972 compatibility). |
|
6973 xpow (const ComplexMatrix&, double)): Likewise. |
|
6974 |
|
6975 * f-inv.cc (Finv): If matrix is singular, return result anyway, in |
|
6976 the name of compatibility. |
|
6977 |
|
6978 * symtab.cc (symbol_record::pop_context): |
|
6979 Don't assert (! context.empty ()). |
|
6980 |
|
6981 * tree-const.cc (TC_REP::char_matrix_value): Don't complain about |
|
6982 type conversion if object is an empty matrix.f |
|
6983 (TC_REP::assign): If rhs is a string, don't convert to numeric |
|
6984 type if rhs is empty or "". |
|
6985 Only widen if rhs is not empty. |
|
6986 Don't return 0x0 char_matrix if it is supposed to be a string. |
|
6987 |
|
6988 * arith-ops.h, mappers.h, pr-output.h, xdiv.h, xpow.h: Include |
|
6989 oct-cmplx.h in place of forward declaration for class Complex. |
|
6990 |
|
6991 * pr-output.cc, mappers.cc, arith-ops.cc, xdiv.cc, xpow.cc, |
|
6992 utils.cc: Include "oct-cmplx.h" instead of <Complex.h>. |
|
6993 |
|
6994 * octave.cc (initialize_error_handlers): Don't call |
|
6995 set_Complex_error_handler(). |
|
6996 (octave_Complex_error_handler): Delete unused function. |
|
6997 Delete declaration for set_Complex_error_handler(). |
|
6998 |
|
6999 * sighandlers.cc (catch_interrupts): New function. |
|
7000 * octave.cc (main): Call catch_interrupts() instead of calling |
|
7001 octave_set_signal_handler() directly. |
|
7002 |
|
7003 Tue Dec 19 03:22:37 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7004 |
|
7005 * variables.cc (looks_like_octave_copyright): Also recognize the |
|
7006 string " This program is free software". |
|
7007 |
|
7008 Thu Dec 14 01:54:06 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7009 |
|
7010 * octave-hist.cc (clean_up_history): Only write history file if |
|
7011 user_pref.saving_history. |
|
7012 |
|
7013 * octave-hist.cc (initialize_history, clean_up_history, |
|
7014 do_history): Perform tilde expansion on history file name. |
|
7015 |
|
7016 * octave.cc (main): Check `defined (HAVE_ON_EXIT)' not just |
|
7017 `(HAVE_ON_EXIT)'. |
|
7018 |
|
7019 * user-prefs.h (user_preferences): New fields, `history_file' and |
|
7020 `history_size'. |
|
7021 * user-prefs.cc (init_user_prefs): Initialize them. |
|
7022 (sv_history_file, history_size): New functions. |
|
7023 * variables.cc (install_builtin_variables): Initialize user-level |
|
7024 variables history_file and history_size. |
|
7025 * octave-hist.cc (default_history_size): Now extern. |
|
7026 (default_history_file): Likewise. |
|
7027 (octave_hist_size, octave_hist_file): Use user preference |
|
7028 variables instead. |
|
7029 * octave.cc (main): Call initialize_history after |
|
7030 execute_startup_files. |
|
7031 |
|
7032 Fri Dec 8 15:53:59 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7033 |
|
7034 * user-prefs.h (user_preferences): New field, `saving_history'. |
|
7035 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7036 (saving_history): New function. |
|
7037 * variables.cc (install_builtin_variables): Initialize user-level |
|
7038 variable saving_history. |
|
7039 * octave.cc (parse_and_execute): Don't reset value of |
|
7040 saving_history here. |
|
7041 (main) Use user_pref.saving_history instead of saving_history. |
|
7042 * variables.cc (parse_fcn_file): Likewise. |
|
7043 * octave-hist.cc (maybe_save_history): Likewise. |
|
7044 Don't save history if input_from_startup_file. |
|
7045 |
|
7046 Mon Nov 27 23:05:52 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7047 |
|
7048 * resource.cc: Include systime.h before <sys/resource.h>. |
|
7049 |
|
7050 Tue Nov 14 14:09:40 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7051 |
|
7052 * error.cc: Include cstring. |
|
7053 |
|
7054 * tree-expr.cc (print_code): Decrement indent level after printing |
|
7055 function body. |
|
7056 |
|
7057 * Makefile.in: Remove references to oct-str.cc, oct-str.h, and |
|
7058 Array-string.cc. |
|
7059 |
|
7060 * tree-const.h: Don't include oct-str.h. |
|
7061 |
|
7062 Mon Nov 6 11:16:49 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7063 |
|
7064 * parse.y (make_plot_command, finish_colon_expression, |
|
7065 make_unwind_protect, make_try_command, make_for_command, |
|
7066 make_break_command, make_continue_command, make_return_command, |
|
7067 start_if_command, finish_if_command, make_elseif_clause, |
|
7068 make_simple_assignment, make_multi_val_ret, start_function_def, |
|
7069 frob_function_def, finish_function_def, start_matrix, |
|
7070 finish_matrix): New functions. Use them in the grammar to clean |
|
7071 things up a bit. Possibly convert matrix lists, colon |
|
7072 expressions, binary expressions, and unary expressions to constant |
|
7073 values. |
|
7074 (tree_matrix_type): Delete. |
|
7075 (simple_expr1): Handle all expression stuff here, including |
|
7076 assignments. |
|
7077 (simple_expr): Just check to see that simple_expr1 produced |
|
7078 something useful. |
|
7079 |
|
7080 * tree-plot.cc, tree-plot.h: Move most simple constructors to the |
|
7081 header file. |
|
7082 |
|
7083 * tree-expr.h (tree_expression::is_constant): Move virtual |
|
7084 function definition here. |
|
7085 (tree_fvc::is_constant): From here. |
|
7086 (tree_expression::is_matrix_constant): New virtual function. |
|
7087 (tree_expression::is_range_constant): New virtual function. |
|
7088 * tree-expr.cc (tree_matrix::is_matrix_constant): New function. |
|
7089 * tree-expr.cc (tree_colon_expression::is_range_constant): New |
|
7090 function. |
|
7091 |
|
7092 Fri Nov 3 03:42:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7093 |
|
7094 * utils.cc, utils.h (jump_to_top_level): Declare as extern "C". |
|
7095 |
|
7096 * tree-const.h (tree_constant::eval ()): Only mutate if printing. |
|
7097 |
|
7098 * tree-const.cc (TC_REP::tree_constant_rep (const Complex&), |
|
7099 TC_REP::tree_constant_rep (const ComplexMatrix&), |
|
7100 TC_REP::tree_constant_rep (const ComplexDiagMatrix&), |
|
7101 TC_REP::tree_constant_rep (const ComplexRowVector&), |
|
7102 TC_REP::tree_constant_rep (const ComplexColumnVector&)): |
|
7103 Also check to see if we can convert to scalar_constant, not just |
|
7104 complex_scalar_constant. |
|
7105 |
|
7106 * user-prefs.h (user_preferences): New field, `exec_path'. |
|
7107 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7108 (sv_exec_path): New function. |
|
7109 * variables.cc (install_builtin_variables): Add DEFUN for EXEC_PATH. |
|
7110 (default_exec_path): New function. |
|
7111 * octave.cc (exec_path): New global variable. |
|
7112 Don't set and putenv() exec path here. |
|
7113 (long_opts): Add --exec-path option. |
|
7114 (main): Handle it. |
|
7115 (initialize_globals): Set default value here. |
|
7116 |
|
7117 * user-prefs.h (user_preferences): New field, `info_prog'. |
|
7118 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7119 (sv_info_prog): New function. |
|
7120 * variables.cc (install_builtin_variables): Add DEFUN for INFO_PROGRAM. |
|
7121 (default_info_prog): New function. |
|
7122 * octave.cc (info_prog): New global variable. |
|
7123 (initialize_globals): Set default value here. |
|
7124 (long_opts): Add --info-prog option. |
|
7125 (main): Handle it. |
|
7126 * help.cc (try_info): Use user_pref.info_prog here. |
|
7127 |
|
7128 * octave.cc (initialize_globals): Put arch_dir and bin_dir ahead |
|
7129 of shell_path when resetting PATH. |
|
7130 |
|
7131 Thu Nov 2 04:30:13 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7132 |
|
7133 * f-rand.cc (Frandn): New function. |
|
7134 (do_initialization): New function. |
|
7135 (do_rand): New function for doing the real work. |
|
7136 (Frand): Use it. |
|
7137 |
|
7138 * octave.cc (parse_and_execute): New arg, warn_for. If given, |
|
7139 print message if file cannot be opened. |
|
7140 Set curr_fcn_file_full_name here. |
|
7141 (Fsource): Pass extra arg to parse_and_execute to get warning message. |
|
7142 |
|
7143 * tree-const.h: Handle line and column info for double, Complex, |
|
7144 and char* constants. |
|
7145 |
|
7146 * parse.y (maybe_convert_to_ans_assign): Pass along line and |
|
7147 column info from expression. |
|
7148 |
|
7149 * parse.y (make_constant): New function. |
|
7150 (simple_expr1, word_list): Use it. |
|
7151 |
|
7152 * input.cc, input.h (curr_fcn_file_full_name): New global. |
|
7153 * variables.cc (load_fcn_from_file): Set it here. |
|
7154 * parse.y (func_def2, yyerror, maybe_warn_missing_semi): Use it. |
|
7155 (func_def2): If !reading_fcn_file, don't call strcmp if |
|
7156 curr_fcn_file_name is 0. |
|
7157 |
|
7158 * octave.cc (Fsource): New function. |
|
7159 (parse_and_execute): Declare file name const char *. |
|
7160 * input.cc (get_input_from_file): Likewise. |
|
7161 |
|
7162 Wed Nov 1 13:54:34 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7163 |
|
7164 * f-filter.cc: New file. |
|
7165 * Makefile.in (DLD_SRC): Add it to the list. |
|
7166 |
|
7167 * sysdep.h (gethostname): Change declaration to match definition |
|
7168 in sysdep.cc. |
|
7169 |
|
7170 * resource.cc: Include sysdep.h here, for octave_NaN. |
|
7171 |
|
7172 Tue Oct 31 02:12:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7173 |
|
7174 * tree-const.cc (TC_REP::assign): After converting rhs to a |
|
7175 numeric type, use the converted value, not the original. |
|
7176 |
|
7177 * dirfns.cc (Fpwd): If nargout == 0, print the directory name |
|
7178 instead of returning it. |
|
7179 |
|
7180 * pager.cc (maybe_page_output): Call maybe_write_to_diary_file here. |
|
7181 (flush_output_to_pager): Not here. |
|
7182 |
|
7183 Mon Oct 30 23:39:43 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7184 |
|
7185 * variables.cc (install_builtin_commands): Add DEFVAR for |
|
7186 echo_executing_commands. |
|
7187 |
|
7188 * octave-hist.cc (do_edit_history): Handle new echo stuff. |
|
7189 * variables.cc (parse_fcn_file): Likewise. |
|
7190 * octave.cc (parse_and_execute): Likewise. |
|
7191 (main): Likewise. |
|
7192 * input.cc (do_input_echo): |
|
7193 (Fecho): New function. |
|
7194 |
|
7195 * tree-expr.cc (tree_function::print_code_function_header, |
|
7196 tree_function::print_code_function_trailer): New functions. |
|
7197 (tree_function::print_code): Use them. |
|
7198 (tree_function::eval): Likewise, if echoing commands. |
|
7199 * tree-misc.cc (tree_statement::maybe_echo_code): New function. |
|
7200 |
|
7201 * user-prefs.h (user_preferences): New field, echo_executing_commands. |
|
7202 (echo_state): New enum, for various types of echoing we do. |
|
7203 * user-prefs.cc (echo_executing_commands): New function. |
|
7204 |
|
7205 * tree-base.cc (print_code_indent): Print PS4 as line prefix. |
|
7206 * help.cc (Ftype): Add unwind_protect for ps4 and set it to "" |
|
7207 before printing code. |
|
7208 |
|
7209 * tree-misc.h (tree_statement_list): New field, function_body. |
|
7210 (tree_statement_list::mark_as_function_body): New function. |
|
7211 * parse.y (func_def3): Mark function bodies. |
|
7212 |
|
7213 * pr-output.cc (octave_print_internal): Undo string escapes when |
|
7214 printing charMatrix as strings. |
|
7215 |
|
7216 Sat Oct 28 17:38:29 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7217 |
|
7218 * utils.h (undo_string_escapes): Add missing const in declaration. |
|
7219 |
|
7220 Fri Oct 27 03:49:44 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7221 |
|
7222 * file-io.cc (next_available_file_number): New stack for keeping |
|
7223 track of next available file number. |
|
7224 (get_next_avail_file_num): New function. |
|
7225 (fopen_file_for_user, fopen_internal, popen_internal, |
|
7226 execute_internal): Use it. |
|
7227 |
|
7228 Mon Oct 23 07:00:09 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7229 |
|
7230 * tree-const.cc (TC_REP::convert_to_matrix_type, |
|
7231 tree_constant::convert_to_matrix_type): New arg, make_complex. |
|
7232 (TC_REP::set_index): New arg, rhs_is_complex. Pass it to |
|
7233 convert_to_matrix_type. |
|
7234 (TC_REP::assign): Pass rhs.is_complex_type() to set_index. |
|
7235 |
|
7236 Thu Oct 19 00:38:38 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7237 |
|
7238 * xpow.cc: Include <climits>. |
|
7239 |
|
7240 * sysdep.cc (Fpause): Do pause even if not interactive. |
|
7241 |
|
7242 * tree-const.cc (TC_REP::assign): Don't make RHS numeric if both |
|
7243 RHS and LHS are strings. |
|
7244 |
|
7245 Wed Oct 18 22:19:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7246 |
|
7247 * f-expm.cc (Fexpm): Avoid taking log of negative number. Also, |
|
7248 don't unnecessarily divide the input matrix by 1.0. |
|
7249 |
|
7250 * input.cc (decode_prompt_string): Recognize \[ and \] too. |
|
7251 (initialize_readline): Bind M-p to history-search-backward and M-n |
|
7252 to history-search-forward. |
|
7253 |
|
7254 Tue Oct 17 04:31:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7255 |
|
7256 * xpow.cc (xpow): Handle integer powers better for complex^double. |
|
7257 (elem_xpow): Likewise. |
|
7258 |
|
7259 * lex.l ({CCHAR}): If nesting_level.top() is BRACE, return ';', |
|
7260 not '\n'. |
|
7261 |
|
7262 Mon Oct 16 19:03:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7263 |
|
7264 * help.cc (Fwhich): Fix doc string. |
|
7265 |
|
7266 * variables.cc (Fexist): Update doc string. |
|
7267 |
|
7268 Sun Oct 15 22:19:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7269 |
|
7270 * Another massive set of changes to support character matrices |
|
7271 with indexing. The Octave_str_object class is no longer used. |
|
7272 Anything having to do with Octave_str_object in the following |
|
7273 files has been changed to use charMatrix instead: octave.h, |
|
7274 load-save.cc, octave.cc, strfns.cc, data.cc, pr-output.h, |
|
7275 pr-output.cc, tree-const.h, dirfns.cc, tree-const.cc, |
|
7276 tree-expr.cc. |
|
7277 |
|
7278 Sat Oct 14 22:28:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7279 |
|
7280 * f-sort.cc (mx_sort): Don't attempt to sort vectors that have |
|
7281 only one element, or matrices that have only one row. |
|
7282 |
|
7283 Thu Oct 12 02:16:58 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7284 |
|
7285 * mappers.cc (install_mapper_functions): Add gammaln as an alias |
|
7286 for lgamma. |
|
7287 |
|
7288 * tree-const.h, tree-const.cc: Massive overhaul of indexing and |
|
7289 indexed assignment functions. |
|
7290 * tc-inlines.h, tc-rep.h: Remove files. |
|
7291 * Makefile.in: Remove mention of them here too. |
|
7292 |
|
7293 * Makefile.in: Include $(TI_SRC) in DEP_SOURCES_3, not |
|
7294 $(TI_SOURCES). |
|
7295 Include $(DLD_SRC) in DEP_SOURCES_3. |
|
7296 Include $(TI_SRC) in DEF_FILES_5. |
|
7297 |
|
7298 Wed Oct 11 01:26:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7299 |
|
7300 * Makefile.in (INCLUDES): Remove tc-inlines.h and tc-rep.h from |
|
7301 the list. |
|
7302 |
|
7303 Mon Oct 9 08:31:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7304 |
|
7305 * lex.l (next_token_is_bin_op): Do match `.+', `.*', etc. |
|
7306 |
|
7307 Sun Oct 8 18:19:56 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7308 |
|
7309 * idx-vector.h, idx-vector.cc: Delete files. |
|
7310 * Makefile.in (SOURCES, INCLUDES): Remove them from lists. |
|
7311 |
|
7312 Fri Oct 6 00:52:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7313 |
|
7314 * f-svd.cc (Fsvd): If nargout == 0 or nargout == 1, don't ask for |
|
7315 U and V. |
|
7316 |
|
7317 Wed Oct 4 00:04:57 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7318 |
|
7319 * f-npsol.cc (Fnpsol, Fnpsol_options): Avoid unused variable |
|
7320 warnings if NPSOL_MISSING. |
|
7321 * f-qpsol.cc (Fqpsol, Fqpsol_options): Likewise for QPSOL_MISSING. |
|
7322 |
|
7323 * Makefile.in (DISTFILES): Add octave.gperf. |
|
7324 |
|
7325 * lex.l (next_token_is_bin_op): Don't ever return true for `.' |
|
7326 since that causes problems with things like [ .1 .1 ]. |
|
7327 |
|
7328 Tue Oct 3 05:30:24 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7329 |
|
7330 * variables.cc (is_valid_function): Avoid setting error_state if |
|
7331 argument is not a string. |
|
7332 |
|
7333 * parse.y (maybe_warn_missing_semi): New function. |
|
7334 (list1, list): Call it if statement not terminated by semicolon. |
|
7335 * tree-misc.h (tree_statement::line, tree_statement::column): |
|
7336 New functions. |
|
7337 * octave.cc (input_from_command_line_file): New global variable. |
|
7338 (main): Set it. |
|
7339 (parse_and_execute): Unwind-protect it and set it to zero. |
|
7340 (eval_string): Likewise. |
|
7341 * variables.cc (parse_fcn_file): Likewise. |
|
7342 |
|
7343 * user-prefs.cc (warn_missing_semicolon): New function. |
|
7344 * user-prefs.h (user_preferences): New field, warn_missing_semicolon. |
|
7345 * variables.cc (install_builtin_variables): DEFVAR it. |
|
7346 |
|
7347 * tree-expr.cc (tree_expression::is_logically_true): Actually use |
|
7348 argument. |
|
7349 |
|
7350 Mon Oct 2 19:55:48 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7351 |
|
7352 * variables.cc (install_builtin_variables): Reduce the default |
|
7353 value of save_precision to 15. |
|
7354 |
|
7355 * variables.cc (builtin_real_scalar_variable): Return 1 for |
|
7356 success, 0 for failure. |
|
7357 |
|
7358 * user-prefs.cc (struct_levels_to_print, set_save_precision, |
|
7359 set_output_max_field_width, set_output_precision): |
|
7360 Change sense of test for builtin_real_scalar_variable return value. |
|
7361 (check_preference): Rename from check_str_pref. Change all callers. |
|
7362 Accept value of 0 to be the same as "false" and nonzero to be the |
|
7363 same as "true". |
|
7364 Delete val to avoid memory leak. |
|
7365 * variables.cc (install_builtin_variables): Change initial values |
|
7366 from "true" to 1, "false" to 0. |
|
7367 |
|
7368 * variables.cc (install_builtin_variables): Add DEFVAR for |
|
7369 gnuplot_has_multiplot. |
|
7370 |
|
7371 * user-prefs.h (user_preferences): New field, |
|
7372 `gnuplot_has_multiplot'. |
|
7373 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7374 (gnuplot_has_multiplot): New function. |
|
7375 |
|
7376 Sat Sep 30 16:52:57 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7377 |
|
7378 * oct-gperf.h, octave.gperf: Newfiles. |
|
7379 * Makefile.in (DISTFILES): Add octave.gperf. |
|
7380 (INCLUDES): Add oct-gperf.h. |
|
7381 (oct-gperf.h): New rule. |
|
7382 (local-dist, dist): Depend on oct-gperf.h. |
|
7383 * lex.l (is_keyword): Use perfect hash function to lookup |
|
7384 keywords. |
|
7385 |
|
7386 Fri Sep 29 04:36:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7387 |
|
7388 * version.h (OCTAVE_NAME_AND_VERSION): Add TARGET_HOST_TYPE to this. |
|
7389 |
|
7390 Thu Sep 28 00:03:51 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7391 |
|
7392 * tree-expr.cc (tree_expression::is_logically_true): New function. |
|
7393 * tree-cmd.cc (tree_while_command::eval): Use it instead of |
|
7394 handling the test directly here. |
|
7395 * tree-misc.cc (tree_if_clause::eval): Likewise |
|
7396 |
|
7397 * tree-const.cc (TC_REP::force_numeric): Don't try to print value |
|
7398 of str_obj with %s. |
|
7399 |
|
7400 * error.cc (buffer_error_messages): Rename from |
|
7401 suppress_octave_error_messages. |
|
7402 (error_message_buffer): New global variable. |
|
7403 (verror): Handle buffering of messages. |
|
7404 (handle_message): New function. |
|
7405 (Ferror, Fwarning, Fusage): Use it instead of duplicating code. |
|
7406 |
|
7407 * octave.cc (Feval): Buffer error messages instead of supressing them. |
|
7408 |
|
7409 * lex.l (is_keyword): Recognize `try', `catch', and `end_try_catch'. |
|
7410 * parse.y (TRY, CATCH): New tokens. |
|
7411 (command): Recognize try-catch block. |
|
7412 (end_error): Add cases for unwind_protect_end and try_catch_end. |
|
7413 * token.h (end_tok_type): New field, try_catch_end. |
|
7414 * tree-cmd.h, tree-cmd.cc (tree_try_catch): New class. |
|
7415 * variables.cc (bind_global_error_variable): New Function. |
|
7416 (clear_global_error_variable): Likewise. |
|
7417 (install_builtin_variables): Add DEFCONST for __error_text__. |
|
7418 * help.cc (keywords): Add `try', `catch', and `end_try_catch'. |
|
7419 |
|
7420 * tree-cmd.cc (tree_unwind_protect::eval): Undo previous change. |
|
7421 |
|
7422 * dirfns.cc (Freaddir, Fmkdir, Frmdir): |
|
7423 Do tilde expansion on the argument. |
|
7424 |
|
7425 Tue Sep 26 00:10:29 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7426 |
|
7427 * f-dassl.cc, f-fsolve.cc, f-lsode.cc, f-npsol.cc, f-quad.cc: |
|
7428 Don't try to figure out if the user-supplied functions take the |
|
7429 correct number of arguments. Simply let the call fail. |
|
7430 * variables.cc (takes_correct_nargs): Delete unused function. |
|
7431 * tree-expr.cc (tree_builtin::eval): Don't complain for too many |
|
7432 arguments to mapper functions. |
|
7433 * tree-expr.h, tree-expr.cc (tree_builtin, tree_function, tree_fvc): |
|
7434 Delete unused function max_expected_args. |
|
7435 |
|
7436 * defun.h (DEFUN): Delete unnecessary args nargin_min and nargout_max. |
|
7437 New arg unused_arg_flags. |
|
7438 (DEFUN_TEXT): Likewise. |
|
7439 * defun-dld.h (DEFUN_DLD_BUILTIN): Likewise. |
|
7440 * defun-int.h (DEFUN_INTERNAL, DECLARE_FUN, DEFINE_FUN_STRUCT): |
|
7441 Do the real work. |
|
7442 |
|
7443 * data.cc, dirfns.cc, dynamic-ld.cc, error.cc, f-balance.cc, |
|
7444 f-chol.cc, f-colloc.cc, f-dassl.cc, f-det.cc, f-eig.cc, f-expm.cc, |
|
7445 f-fft.cc, f-fft2.cc, f-find.cc, f-fsolve.cc, f-fsqp.cc, |
|
7446 f-givens.cc, f-hess.cc, f-ifft.cc, f-ifft2.cc, f-inv.cc, f-log.cc, |
|
7447 f-lpsolve.cc, f-lsode.cc, f-lu.cc, f-minmax.cc, f-npsol.cc, |
|
7448 f-pinv.cc, f-qpsol.cc, f-qr.cc, f-quad.cc, f-qzval.cc, f-rand.cc, |
|
7449 f-schur.cc, f-sort.cc, f-svd.cc, f-syl.cc, file-io.cc, help.cc, |
|
7450 input.cc, lex.l, load-save.cc, mappers.cc, octave-hist.cc, |
|
7451 octave.cc, octave.h, pager.cc, pr-output.cc, resource.cc, |
|
7452 sighandlers.cc, strfns.cc, sysdep.cc, timefns.cc, token.cc, |
|
7453 tree-const.cc, tree-expr.cc, tree-expr.h, tree-plot.cc, |
|
7454 unwind-prot.cc, unwind-prot.h, utils.cc, variables.cc, |
|
7455 variables.h, version.h, xdiv.cc: |
|
7456 Avoid unused variable warnings. |
|
7457 |
|
7458 * tree-expr.h (tree_oct_obj::print_value (ostream&)): |
|
7459 Delete name of unused arg. |
|
7460 (tree_fvc::save (ostream&, int, int): Likewise. |
|
7461 |
|
7462 * tree-const.h (tree_constant::tree_constant (magic_colon)): |
|
7463 Delete name of unused arg. |
|
7464 (tree_constant::tree_constant (all_va_args)): Likewise |
|
7465 (ColumnVector vector_value (int, int)): Likewise. |
|
7466 (ComplexColumnVector vector_value (int, int)): Likewise. |
|
7467 (Octave_object::eval (int, int, const Octave_object&): Likewise. |
|
7468 |
|
7469 * octave.cc (execute_startup_files): Look for octaverc first in |
|
7470 site/m, then in $(version)/m. |
|
7471 * variables.cc (get_local_site_defaults): New function. |
|
7472 * defaults.h.in (OCTAVE_LOCALFCNFILEDIR, OCTAVE_LOCALSTARTUPFILEDIR): |
|
7473 New macros. |
|
7474 * Makefile.in (defaults.h): Also substitute ${localfcndir}. |
|
7475 |
|
7476 Mon Sep 25 17:01:03 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7477 |
|
7478 * variables.cc (install_builtin_variables): Add DEFCONST for "e". |
|
7479 |
|
7480 Fri Sep 22 02:18:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7481 |
|
7482 * dirfns.cc (Fls): Delete ls_command after using it, not before. |
|
7483 |
|
7484 * input.h, input.cc (gnu_readline): Don't declare gnu_readline |
|
7485 `extern "C"'. |
|
7486 |
|
7487 * sysdep.h: Only declare gethostname if it is missing, then don't |
|
7488 declare it `extern "C"'. |
|
7489 |
|
7490 * dirfns.cc: Don't declare strerror(). |
|
7491 |
|
7492 * input.cc (command_generator): Use malloc, not xmalloc. Don't |
|
7493 declare xmalloc. |
|
7494 (gnu_readline): Don't declare this `extern "C"'. |
|
7495 |
|
7496 * octave-hist.cc: Don't declare history_get(). It is now in |
|
7497 readline/history.h. |
|
7498 |
|
7499 * input.cc: Don't declare history_get(). It is now in |
|
7500 readline/readline.h. |
|
7501 |
|
7502 * resource.cc: Don't surround include of sys/resource.h in |
|
7503 `extern "C" { }'. |
|
7504 |
|
7505 * fnmatch.h [__cplusplus]: Surround contents in `extern "C" { }'. |
|
7506 * load-save.cc, symtab.cc, variables.cc: Don't surround |
|
7507 fnmatch.h include in `extern "C" { }'. |
|
7508 |
|
7509 * help.cc: Don't #undef __FUNCTION_DEF before including |
|
7510 readline/tilde.h. |
|
7511 |
|
7512 * dirfuns.cc, file-io.cc, help.cc, load-save.cc, octave-hist.cc, |
|
7513 sysdep.cc, tree-plot.cc, utils.cc, variables.cc: |
|
7514 Don't surround readline includes in `extern "C" { }'. |
|
7515 |
|
7516 * sysdep.cc: Move all include statements to top of file. |
|
7517 |
|
7518 Tue Sep 19 01:58:21 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7519 |
|
7520 * octave.cc (Fsystem): Use iprocstream *, and unwind_protect it. |
|
7521 * pager.cc (flush_output_to_pager): Likewise. |
|
7522 * dirfns.cc (Fls): Likewise. |
|
7523 * tree-plot.cc (plot_stream): Now a pointer. |
|
7524 (open_plot_stream): Deal with it. |
|
7525 (send_to_plot_stream, cleanup_tmp_files, do_external_plotter_cd): |
|
7526 Likewise. |
|
7527 |
|
7528 * procstream.cc (cleanup_iprocstream, cleanup_oprocstream): |
|
7529 New functions. |
|
7530 |
|
7531 * procstream.h, procstream.cc (class iprocstream, class oprocstream): |
|
7532 Keep track of pbuf. Initialize it to 0 in default constructors, |
|
7533 delete it in destructor. Don't call close in destructor. |
|
7534 |
|
7535 * sighandlers.cc (octave_set_signal_handler): New function. |
|
7536 Use this name instead of signal everywhere. |
|
7537 * help.cc (try_info): Likewise. |
|
7538 * pager.cc (flush_output_to_pager): Likewise. |
|
7539 * octave.cc (main): Likewise. |
|
7540 * octave-hist.cc (do_edit_history): Likewise. |
|
7541 |
|
7542 * input.cc (initialize_readline): Set rl_paren_string_delimiters |
|
7543 to avoid treating single quotes as string delimiters when doing |
|
7544 paren matching. |
|
7545 |
|
7546 * Makefile.in (SOURCES): Don't list Map.cc or SLStack.cc here. |
|
7547 |
|
7548 * tree-const.cc: Do include utils.h. |
|
7549 |
|
7550 * sysdep.cc: Don't surround terminal includes in extern "C". |
|
7551 Include them before readline.h. |
|
7552 |
|
7553 * Map.h: Don't include utils.h. |
|
7554 (CHNode::CHNode (const char*, const C&, CHNode *t): |
|
7555 Do strsave() inline. |
|
7556 |
|
7557 * input.cc (generate_possible_completions): Generate name list |
|
7558 even when text == 0. |
|
7559 (operate_and_get_next): Don't declare history_stifled, call |
|
7560 history_is_stifled () instead. |
|
7561 Don't declare history_length, or max_input_history either. |
|
7562 Check (where >= history_length - 1) too, as in recent versions of |
|
7563 bash. |
|
7564 |
|
7565 * user-prefs.h (user_prefs): New field, `completion_append_char'. |
|
7566 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7567 (sv_completion_append_char): New function. |
|
7568 * variables.cc (install_builtin_variables): Install |
|
7569 completion_append_char. |
|
7570 * input.cc (command_generator): Use it. |
|
7571 |
|
7572 * SLList-expr.cc, SLList-misc.cc, SLList-plot.cc, SLList-tc.cc, |
|
7573 DLList-fi.cc: Include config.h. |
|
7574 * DLList-fi.cc: Include file-info.h, not file-io.h. |
|
7575 |
|
7576 Mon Sep 18 11:01:24 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7577 |
|
7578 * octave.h (clean_up_and_exit): Tag with NORETURN instead of using |
|
7579 typedef trick. |
|
7580 * error.h (panic): Likewise. |
|
7581 * utils.h (jump_to_top_level): Likewise. |
|
7582 |
|
7583 * file-io.h: Protect from multiple includes with octave_file_io, |
|
7584 not octave_files. |
|
7585 |
|
7586 * file-info.h (class file_info): Convert to using std C++ string |
|
7587 class from char *. |
|
7588 * file-info.cc: Likewise. Don't include utils.h. |
|
7589 * file-io.cc (return_valid_file, fopen_file_for_user, |
|
7590 fflush_internal, do_scanf): Use operator ==, not strcmp. |
|
7591 (close_files): Call error with file.name ().data (), |
|
7592 not file.name (). |
|
7593 (freport_internal): Call form with file.mode ().data () and |
|
7594 file.name ().data (). |
|
7595 |
|
7596 * file-io.cc, file-io.h: Extract file_info class. |
|
7597 * file-info.cc, file-info.h: New files for file_info class. |
|
7598 |
|
7599 * user-prefs.h (user_prefs): New field, `beep_on_error'. |
|
7600 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7601 (beep_on_error): New function. |
|
7602 * variables.cc (install_builtin_variables): Install beep_on_error. |
|
7603 * octave.cc (maximum_braindamage): Set beep_on_error to "true". |
|
7604 * error.cc (verror): Conditionally beep. |
|
7605 (error): Don't reset error_state until after verror is called. |
|
7606 |
|
7607 Sun Sep 17 16:41:25 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7608 |
|
7609 * load-save.cc (read_mat_binary_data, read_ascii_data, |
|
7610 save_ascii_data, read_binary_data, save_binary_data): |
|
7611 Handle string arrays. |
|
7612 |
|
7613 Fri Sep 15 00:24:19 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7614 |
|
7615 * user-prefs.cc (struct_levels_to_print, |
|
7616 set_output_max_field_width, set_output_precision, |
|
7617 set_save_precision): Eliminate unecessary kludge variable. |
|
7618 |
|
7619 * variables.cc (gobble_leading_white_space): New arg, |
|
7620 in_parts. Change all callers. |
|
7621 |
|
7622 * lex.l (HELP_FCN): Delete start state. The `help' command is now |
|
7623 handled the same as any other text-style function. |
|
7624 |
|
7625 * gripes.cc (gripe_invalid_value_specified): New function |
|
7626 * user-prefs.cc: Use it. |
|
7627 |
|
7628 * sysdep.cc (octave_words_big_endian): New global variable. |
|
7629 (ten_little_endians): New function. |
|
7630 (sysdep_init): Call it. |
|
7631 * load-save.cc (words_big_endian): Use this at run-time instead of |
|
7632 depending on WORDS_BIGENDIAN at compile-time. |
|
7633 |
|
7634 * symtab.h (SYMTAB_VARIABLES): New macro. |
|
7635 * variables.cc (Fclear): Use it instead of just |
|
7636 symbol_def::USER_VARIABLE when looking for variables. |
|
7637 |
|
7638 * octave.cc (main): If there is a file to execute, set |
|
7639 program_invocation_name and program_name to the name of the file |
|
7640 and argv to the remaining args. |
|
7641 (intern_argv): Only define argv if there are some remaining |
|
7642 arguments. |
|
7643 |
|
7644 * defun.h (DEFVAR_INT): New macro. |
|
7645 (DEFVAR): Define in terms of DEFVAR_INT. Delete args protect and |
|
7646 eternal. |
|
7647 (DEFCONST): New macro. |
|
7648 * variables.cc (install_builtin_variables): Use DEFCONST where |
|
7649 appropriate, change uses of DEFVAR to match new definition. |
|
7650 |
|
7651 * variables.cc (bind_builtin_variable): New variant that accepts |
|
7652 const tree_constant& value. |
|
7653 (install_builtin_variables): Properly alphabetize DEFVAR for this. |
|
7654 |
|
7655 * octave.cc (short_opts): Prefix with `+' to prevent argv |
|
7656 permutation. |
|
7657 (main): Don't use readline if forced_interactive. |
|
7658 (traditional): New file-scope variable. |
|
7659 (long_opts, usage_string, verbose_usage): Add `--traditional'. |
|
7660 (maximum_braindamage): New function. |
|
7661 (main): Call it if --traditional. |
|
7662 |
|
7663 * input.cc (do_input_echo): Print prompt correctly when |
|
7664 forced_interactive is either true or false. |
|
7665 |
|
7666 Thu Sep 14 00:54:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7667 |
|
7668 * data.cc (Fstruct_elements): New function. |
|
7669 |
|
7670 * file-io.cc (Fumask): New function. |
|
7671 |
|
7672 * dirfns.cc (Fmkdir, Frmdir, Frename): New functions. |
|
7673 |
|
7674 * Makefile.in: Add rules and dependencies for building safe-stat.o |
|
7675 and safe-lstat.o. |
|
7676 |
|
7677 * mkdir.c, rename.c, rmdir.c: New files. |
|
7678 * Makefile.in (SOURCES): Include them in the list. |
|
7679 |
|
7680 * safe-xstat.hin, safe-xstat.cin: New files |
|
7681 * Makefile.in (DISTFILES): Include them in the list. |
|
7682 |
|
7683 * sighandlers.cc (octave_new_handler): Try to continue on memory |
|
7684 exhausted errors. |
|
7685 (sigfpe_handler): Improve error message. |
|
7686 |
|
7687 * Makefile.in: Use `ifndef omit_deps', not `ifndef $(omit_deps)'. |
|
7688 |
|
7689 * dirfns.cc (Freaddir): New function. |
|
7690 |
|
7691 * f-sort.cc: Complete rewrite. Now uses stable sort algorithm and |
|
7692 correctly handles complex matrices containing columns of all real |
|
7693 numbers. |
|
7694 |
|
7695 Wed Sep 13 03:16:40 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7696 |
|
7697 * arith-ops.cc: Unconditionally #define DIVIDE_BY_ZERO_ERROR. |
|
7698 |
|
7699 * variables.cc (install_builtin_variables): Unconditionally |
|
7700 install NaN and nan. |
|
7701 |
|
7702 * mappers.cc (xisinf): Don't do bogus things if isinf, isnan, or |
|
7703 finite are missing. |
|
7704 (xfinite): Likewise. |
|
7705 |
|
7706 * sysdep.cc (octave_ieee_init): Don't set octave_NaN and |
|
7707 octave_Inf if values are not available. |
|
7708 |
|
7709 * resource.cc (mk_ru_map): Don't use ru_ or tv_ as prefixes to |
|
7710 Octave names for the structure members. |
|
7711 |
|
7712 Tue Sep 12 02:04:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7713 |
|
7714 * procstream.h, procstream.cc: Rewrite. |
|
7715 |
|
7716 Mon Sep 11 18:42:05 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7717 |
|
7718 * filemode.c: New file, from Emacs. |
|
7719 * Makefile.in (SOURCES): Add it to the list. |
|
7720 |
|
7721 * file-io.cc (Fstat, Flstat, mk_stat_map): New functions. |
|
7722 |
|
7723 * timefns.cc (mk_tm_map): Don't use tm_ as prefix to Octave names |
|
7724 for these structure members. |
|
7725 (extract_tm): Likewise. |
|
7726 (Flocaltime): Fix doc string to match. |
|
7727 |
|
7728 Thu Sep 7 02:04:27 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7729 |
|
7730 * load-save.cc (save_user_variables): New function. |
|
7731 * sighandlers.cc (my_friendly_exit): Call it before exiting. |
|
7732 (sigfpe_handler): New function. |
|
7733 (install_signal_handlers) [__alpha__]: Install it. |
|
7734 |
|
7735 Wed Sep 6 14:35:10 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7736 |
|
7737 * tree-cmd.cc (tree_unwind_protect::eval): Ignore errors and |
|
7738 suppress error messages while executing first block of |
|
7739 unwind_protect commands. |
|
7740 |
|
7741 * parse.y (end_error): Add missing case for unwind_protect_end. |
|
7742 |
|
7743 * tree-expr.cc (tree_builtin::eval): Complain if no arguments |
|
7744 given for mapper functions. |
|
7745 (tree_fvc::lookup_map_element): Print error message for invalid |
|
7746 structure reference. |
|
7747 |
|
7748 Tue Sep 5 02:04:12 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7749 |
|
7750 * file-io.cc, input.cc, load-save.cc, octave.cc, sysdep.cc, |
|
7751 variables.cc, octave-hist.cc, utils.cc, f-schur.cc, f-rand.cc, |
|
7752 f-quad.cc, f-qpsol.cc, f-npsol.cc, f-lsode.cc, f-fsolve.cc, |
|
7753 f-dassl.cc, f-colloc.cc, f-balance.cc, error.cc, data.cc: |
|
7754 Add const qualifiers where appropriate. |
|
7755 |
|
7756 * dirfns.h: Include <ctime>, for time_t. |
|
7757 |
|
7758 * tempname.c, file-io.cc, help.cc, input.cc, octave-hist.cc, |
|
7759 octave.cc, sighandlers.cc, sysdep.cc, tree-expr.cc, tree-misc.cc, |
|
7760 tree-plot.cc, utils.cc, variables.cc, sysdir.h: |
|
7761 Move #include <sys/type.h> inside #ifdef HAVE_UNISTD_H. |
|
7762 |
|
7763 * syswait.h: New file. |
|
7764 * Makefile.in (INCLUDES): Add it to the list. |
|
7765 * file-io.cc, sighandlers.cc: Use it instead of including |
|
7766 sys/wait.h directly. |
|
7767 |
|
7768 * octave.cc: Include statdefs.h, not sys/stat.h. |
|
7769 |
|
7770 * sysdir.h: New file. |
|
7771 * Makefile.in (INCLUDES): Add it to the list. |
|
7772 * dirfns.cc, utils.cc: Use it instead of including the headers |
|
7773 directly. |
|
7774 |
|
7775 * pathlen.h: New file. |
|
7776 * Makefile.in (INCLUDES): Add it to the list. |
|
7777 * dirfns.cc, input.cc: Use it instead of including sys/param.h |
|
7778 directly. |
|
7779 * utils.cc: Don't include sys/param.h |
|
7780 |
|
7781 Sun Sep 3 18:52:59 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7782 |
|
7783 * tree-const.cc (TC_REP::string_value): Return const char*, not |
|
7784 char *. |
|
7785 |
|
7786 * All .cc, .y, .l, .y files: Include <cctype>, not <ctype.h>, and |
|
7787 so on for all new C++ versions of these standard C headers. |
|
7788 |
|
7789 Thu Aug 31 17:09:38 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7790 |
|
7791 * pathsearch.h: Also hide `string'. |
|
7792 |
|
7793 * oct-str.cc, oct-str.h: New files. |
|
7794 * Makefile.in: Add to the appropriate lists. |
|
7795 * tc-rep.h: Change char* to Octave_string* in anonymous union. |
|
7796 * tree-expr.cc (tree_matrix::eval): Handle multiple element strings. |
|
7797 * strfns.cc (toascii): Likewise. |
|
7798 * tree-const.cc (print_as_string): Likewise. |
|
7799 (TC_REP::force_numeric, TC_REP::rows, TC_REP::columns, |
|
7800 TC_REP::double_value, TC_REP::complex_value, TC_REP::matrix_value, |
|
7801 TC_REP::complex_matrix_value, TC_REP::convert_to_str): Likewise. |
|
7802 (TC_REP::print): Call octave_print_internal for string case. |
|
7803 (all_strings): New function. |
|
7804 Fix constructors to use new data structure. |
|
7805 * pr-output.cc (octave_print_internal): Add version for strings. |
|
7806 * Array-string.cc: New file. |
|
7807 |
|
7808 * octave.cc (octave_argv): New global variable. |
|
7809 (intern_argv): New function. |
|
7810 (main): Fix argument parsing to do the right thing for arguments |
|
7811 to executable scripts. |
|
7812 * variables.cc: Add DEFUNs for argv, program_invocation_name, and |
|
7813 program_name. |
|
7814 |
|
7815 * defun.h (DEFVAR): Fix comment. |
|
7816 |
|
7817 Thu Aug 24 00:02:00 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7818 |
|
7819 * file-io.cc (fgets_internal): Make second arg optional. Add |
|
7820 optional arg `strip_final_newline'. |
|
7821 (Ffgets): Change to match new definition of fgets_internal. |
|
7822 (Ffgetl): Implement using the new fgets_internal. |
|
7823 |
|
7824 * f-rand.cc (Frand): Update code for sizing return value to match |
|
7825 that used by ones, zeros, and eye. |
|
7826 |
|
7827 Wed Aug 23 19:52:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7828 |
|
7829 * tree-const.cc (do_vector_assign): Don't crash for |
|
7830 A(range) = scalar, or A(matrix) = scalar. |
|
7831 |
|
7832 * f-dassl.cc (set_dassl_option): Rename from do_dassl_option. |
|
7833 (show_dassl_option): New function. |
|
7834 (Fdassl_options): Handle single arg. |
|
7835 * f-fsolve.cc (set_fsolve_option): Rename from do_fsolve_option. |
|
7836 (show_fsolve_option): New function. |
|
7837 (Ffsolve_options): Handle single arg. |
|
7838 * f-fsqp.cc (set_fsqp_option): Rename from do_fsqp_option. |
|
7839 (show_fsqp_option): New function. |
|
7840 (Ffsqp_options): Handle single arg. |
|
7841 * f-lpsolve.cc (set_lpsolve_option): Rename from do_lpsolve_option. |
|
7842 (show_lpsolve_option): New function. |
|
7843 (Flpsolve_options): Handle single arg. |
|
7844 * f-lsode.cc (set_lsode_option): Rename from do_lsode_option. |
|
7845 (show_lsode_option): New function. |
|
7846 (Flsode_options): Handle single arg. |
|
7847 * f-npsol.cc (set_npsol_option): Rename from do_npsol_option. |
|
7848 (show_npsol_option): New function. |
|
7849 (Fnpsol_options): Handle single arg. |
|
7850 * f-qpsol.cc (set_qpsol_option): Rename from do_qpsol_option. |
|
7851 (show_qpsol_option): New function. |
|
7852 (Fqpsol_options): Handle single arg. |
|
7853 * f-quad.cc: (set_quad_option): Rename from do_quad_option. |
|
7854 (show_quad_option): New function. |
|
7855 (Fquad_options): Handle single arg. |
|
7856 (Fquad): Doc fix. |
|
7857 |
|
7858 Tue Aug 22 00:38:05 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7859 |
|
7860 * tree-plot.cc (do_external_plotter_cd): New function. |
|
7861 * dirfns.cc (octave_change_to_directory): New function. If cd is |
|
7862 successful, also call do_external_plotter_cd(). |
|
7863 (Fcd): Call octave_change_to_directory(), not change_to_directory(). |
|
7864 |
|
7865 * pr-output.cc (pr_any_float): Change declaration of counter to |
|
7866 size_t to avoid gcc warnings. |
|
7867 |
|
7868 * idx-vector.cc, octave-hist.cc, tree-const.cc, tree-expr.cc, |
|
7869 tree-misc.cc, utils.cc, xpow.cc, Map.cc: |
|
7870 Update for change in for loop variable scope for gcc 2.7.0. |
|
7871 |
|
7872 Mon Aug 21 19:34:53 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7873 |
|
7874 * tree-const.cc (fortran_style_matrix_assignment): Properly handle |
|
7875 case of complex LHS, real RHS. |
|
7876 |
|
7877 * Makefile.in: Only include dependency files if $(omit_deps) is |
|
7878 not set. |
|
7879 |
|
7880 Wed Jul 5 00:03:58 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7881 |
|
7882 * sysdep.cc: Explicitly include string.h. |
|
7883 |
|
7884 Sun Jun 25 00:18:10 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7885 |
|
7886 * load-save.cc (too_large_for_float (const Matrix&)): |
|
7887 Extract elements as doubles, not Complex. |
|
7888 |
|
7889 Sat Jun 24 22:59:15 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7890 |
|
7891 * pr-output.cc (any_element_is_inf_or_nan): Declare extern, not static. |
|
7892 * f-svd.cc (Fsvd): Call here to avoid trying to take SVD of matrix |
|
7893 containing Inf or NaN values. |
|
7894 |
|
7895 * pr-output.cc (bit_format): New file-scope variable. |
|
7896 (set_format, pr_any_float): Handle bit_format. |
|
7897 (octave_print_internal): Handle bit_format like bank_format. |
|
7898 (init_format_state): Initialize bit_format. |
|
7899 (set_format_style): Allow `format bit' and `format native-bit'. |
|
7900 |
|
7901 Thu Jun 8 15:20:26 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7902 |
|
7903 * mappers.cc (arg, imag, signum): If arg is NaN, return NaN. |
|
7904 |
|
7905 Mon May 15 14:47:04 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7906 |
|
7907 * pager.cc (Fdiary): Initialize diary_file here, not in the |
|
7908 file-scope declaration. |
|
7909 |
|
7910 * tree-expr.cc (tree_index_expression::eval): |
|
7911 Handle nargin == 0 the same as other cases. |
|
7912 |
|
7913 Tue May 2 10:02:23 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7914 |
|
7915 * load-save.cc (do_double_format_conversion): Add missing breaks. |
|
7916 (do_float_format_conversion): Likewise. |
|
7917 |
|
7918 Mon May 1 13:50:24 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7919 |
|
7920 * Makefile.in (OCTAVE_LIBS): Add @LIBPLPLOT@ to the list. |
|
7921 |
|
7922 * timefns.cc (Ftime): Handle GETTIMEOFDAY_NO_TZ. |
|
7923 |
|
7924 * Makefile.in (SOURCES): Delete tc-rep.cc, tc-rep-ass.cc, and |
|
7925 tc-rep-idx.cc from the list. |
|
7926 |
|
7927 * tree-const.h: Add #pragma interface. |
|
7928 * tree-const.cc: Add contents of tc-rep.cc, tc-rep-ass.cc, and |
|
7929 tc-idx.cc to this file. Add #pragma implementation. This makes |
|
7930 tree-const.cc large, but makes the final binary smaller. |
|
7931 |
|
7932 * unwind-prot.h unwind-prot.cc token.cc token.h procstream.cc |
|
7933 procstream.h idx-vector.cc idx-vector.h symtab.cc symtab.h |
|
7934 oct-map.cc oct-map.h oct-obj.cc oct-obj.h tree-plot.h tree-plot.cc |
|
7935 tree-misc.cc tree-misc.h tree-expr.cc tree-expr.h tree-cmd.cc |
|
7936 tree-cmd.h tree-base.cc tree-base.h: |
|
7937 Add #pragma interface/implementation. |
|
7938 |
|
7939 * Makefile.in (OCTAVE_LIBS): Delete @LIBINFO@ from list. |
|
7940 * help.cc: Don't include info headers or extern declarations for |
|
7941 functions from info. |
|
7942 (try_info): Call info as a subprocess. Delete second arg. |
|
7943 Handle SIGINT here, not in help_from_info(). |
|
7944 (help_from_info): Complain if info doesn't work. |
|
7945 |
|
7946 * defun-dld.h (DEFUN_DLD_BUILTIN) [OCTAVE_LITE && MAKE_BUILTINS]: |
|
7947 If ! WITH_DLD, simply emit a character string constant. |
|
7948 |
|
7949 Fri Apr 28 15:23:06 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7950 |
|
7951 * lex.l ({IDENT}{S}*): Don't delete tok. That's handled by |
|
7952 strip_trailing_whitespace() now. |
|
7953 (<HELP_FCN>[^ \t\n]*{S}*|<TEXT_FCN>[^ \t\n\;\,]*{S}*): Ditto. |
|
7954 |
|
7955 * pathsearch.h: Include kpathsea/progname.h. |
|
7956 * octave.cc (initialize_globals): Call kpse_set_progname(). |
|
7957 |
|
7958 * token.h: Declare copy constructor and operator = private. |
|
7959 * token.cc: Abort if copy constructor or operator = is used. |
|
7960 |
|
7961 Thu Apr 27 13:54:39 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7962 |
|
7963 * tree-expr.cc (lookup_map_element): Don't list default argument |
|
7964 values here too. |
|
7965 |
|
7966 * pr-output.cc (hex_format): New file-scope variable. |
|
7967 (set_format, pr_any_float): Handle hex_format. |
|
7968 (octave_print_internal): Handle hex_format like bank_format. |
|
7969 (init_format_state): Initialize hex_format. |
|
7970 (set_format_style): Allow `format hex' and `format native-hex'. |
|
7971 |
|
7972 * variables.cc (bind_ans): Create ans_id each time with new and |
|
7973 ask tree_simple_assignment_expression to handle cleaning it up. |
|
7974 This apparently plugs a memory leak. |
|
7975 |
|
7976 * help.cc (Ftype): Don't try to print map constants. Handle |
|
7977 references to structure members. |
|
7978 |
|
7979 Wed Apr 26 12:40:59 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7980 |
|
7981 * input.cc (generate_struct_completions): New function. |
|
7982 (generate_possible_completions): Likewise. |
|
7983 (looks_like_struct): Likewise. |
|
7984 (command_generator): Handle completion of struct variables. |
|
7985 |
|
7986 * tree-expr.h, tree-expr.cc (tree_fvc::lookup_map_element): |
|
7987 Add insert and silent args. |
|
7988 |
|
7989 * oct-map.cc: New file. |
|
7990 * Makefile.in (SOURCES): Add it to the list. |
|
7991 |
|
7992 Mon Apr 24 09:41:02 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7993 |
|
7994 * variables.cc (Fexist): Handle structure references too. |
|
7995 |
|
7996 * tree-const.cc (lookup_map_element (const char*, int, int): |
|
7997 New function. |
|
7998 (lookup_map_element (SLList<char*>&, int, int): New arg, silent. |
|
7999 * tc-rep.cc (lookup_map_element): New arg, silent. If nonzero, |
|
8000 don't call error(). |
|
8001 |
|
8002 * tc-rep.h (is_empty): Define here. |
|
8003 * tree-const.h (is_empty): Hand off to TC_REP::is_empty(). |
|
8004 |
|
8005 * data.cc (Fstruct_contains): Call lookup_map_element on args(0) |
|
8006 instead of extracting the map and calling contains() on it. |
|
8007 |
|
8008 * parse.y (EPLUS, EMINUS): New tokens. |
|
8009 (simple_expr): Handle EPLUS, EMINUS the same as `+' and `-'. |
|
8010 * lex.l (".+", ".-"): New patterns. Match these separately to |
|
8011 disallow using them as unary operators. |
|
8012 |
|
8013 * lex.l (next_token_is_bin_op): Simplify by noting that spacing |
|
8014 only matters for those tokens that can also be unary ops. |
|
8015 |
|
8016 Fri Apr 21 14:34:45 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8017 |
|
8018 * load-save.cc (read_ascii_data): Allow reading of empty |
|
8019 matrices. |
|
8020 |
|
8021 * tc-rep-ass.cc (vector_assignment): Only assert that we are not |
|
8022 doing fortran-style indexing and that nr <= 1 || nc <= 1. |
|
8023 (do_vector_assign): Handle assignment of [] when one dimension is |
|
8024 zero and the other is anything. |
|
8025 |
|
8026 Thu Apr 20 13:56:21 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8027 |
|
8028 * tc-rep-ass.cc (delete_rows, delete_columns): Simply return if |
|
8029 num_to_delete is 0. |
|
8030 |
|
8031 * lex.l (handle_identifier): Don't match plot option keywords |
|
8032 inside parentheses or braces. |
|
8033 |
|
8034 * variables.cc (parse_fcn_file): Also delete tmp_help_txt if |
|
8035 running a script. |
|
8036 |
|
8037 * tree-cmd.h (tree_command): Add destructor. |
|
8038 |
|
8039 * tree-expr.h tree_simple_assignment_expression (lhs_idx_expr): |
|
8040 Hang on to idx_expr, not just its parts so it can be deleted. |
|
8041 (init): Initialize it. |
|
8042 * tree-expr.cc (~tree_simple_assignment_expression): Delete it. |
|
8043 |
|
8044 * tree-expr.h (tree_multi_val_ret, tree_oct_obj, tree_fvc, |
|
8045 tree_identifier, tree_builtin, tree_function): Add destructors. |
|
8046 * tree-expr.cc (tree_function::~tree_function): Delete some stuff. |
|
8047 |
|
8048 * tree-misc.h (tree_va_return_list): Add destructor. |
|
8049 |
|
8050 * octave.cc (__builtin_new, __builtin_delete): Provide our own, |
|
8051 for debugging. |
|
8052 |
|
8053 * utils.cc (strconcat): Don't depend on the return value from |
|
8054 strcat. |
|
8055 (file_in_path): Simplify logic. |
|
8056 |
|
8057 * parse.y (maybe_convert_to_ans_assign): Create ans_id each time |
|
8058 with new and ask tree_simple_assignment_expression to handle |
|
8059 cleaning it up. This apparently plugs a memory leak. |
|
8060 |
|
8061 * lex.l (strip_trailing_whitespace): Declare retval static. |
|
8062 Delete it before saving next string. |
|
8063 |
|
8064 * error.cc (Ferror): Do call error() for empty string args. |
|
8065 (error_1): Don't print anything if fmt is "" or "\n", but do set |
|
8066 the error state appropriately. |
|
8067 |
|
8068 * tree-cmd.cc (tree_unwind_protect::eval): Handle return and break |
|
8069 in the `try' part of the statement. |
|
8070 |
|
8071 Mon Apr 10 19:29:44 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8072 |
|
8073 * f-expm.cc, f-givens.cc, f-qzval.cc, f-syl.cc, f-rand.cc: |
|
8074 Where appropriate, declare Fortran functions to take reference |
|
8075 instead of pointer args. Change callers. |
|
8076 |
|
8077 * mappers.cc: Declare Fortran functions to take reference instead |
|
8078 of pointer args. Change callers. |
|
8079 |
|
8080 * gamma.c, lgamma.c, erfc.c, erf.c, atanh.c, asinh.c, acosh.c: |
|
8081 Declare Fortran functions to take reference instead of pointer |
|
8082 args. |
|
8083 |
|
8084 Sun Apr 9 19:38:53 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8085 |
|
8086 * file-io.cc (Fpopen, Fpclose, Fexecute, Fsync_system, |
|
8087 Fasync_system, Fwaitpid, Fmkfifo, Funlink): New functions. |
|
8088 |
|
8089 * sighandlers.cc (sigchld_handler): New function. |
|
8090 (install_signal_handlers): Add call to install |
|
8091 sigchld_handler. (This is #if 0'd out, waiting for code to help |
|
8092 determine which child exited and what to do about it). |
|
8093 |
|
8094 * tree-expr.h (tree_oct_obj): New class. |
|
8095 |
|
8096 * tree-expr.h (tree_multi_assignment_expression::preserve): New |
|
8097 data member. Add arg with default value to constructors. Change |
|
8098 callers as necessary. |
|
8099 * tree-expr.cc (~tree_multi_assignment_expression): Conditionally |
|
8100 delete lhs. |
|
8101 |
|
8102 * parse.y (make_multi_val_ret): Pass matrix instead of getting it |
|
8103 from the global matrix list. |
|
8104 (expression): Extract matrix from matrix list before calling |
|
8105 make_multi_val_ret(). |
|
8106 |
|
8107 * parse.y (command): Handle new for loop syntax for structures. |
|
8108 |
|
8109 * tree-plot.h (subplot_list): Include tree_print_code() in |
|
8110 initializer lists for constructors. |
|
8111 * tree-expr.h (tree_statement_list, tree_argument_list, |
|
8112 tree_parameter_list, tree_return_list, tree_global_init_list, |
|
8113 tree_if_command_list, ): Likewise. |
|
8114 |
|
8115 * tree-cmd.h (tree_for_command::id_list): New data member. |
|
8116 (tree_for_command (tree_return_list*, tree_expression*, |
|
8117 tree_statement_list*, int, int)): Likewise. |
|
8118 * tree-cmd.cc (tree_for_command::eval): Handle for loops with |
|
8119 structures. |
|
8120 (do_for_loop_once (tree_return_list*, Octave_object&, int&)): |
|
8121 New form for handling for loops with structures. |
|
8122 |
|
8123 * sysdep.cc (octave_ieee_init): Determine floating point format |
|
8124 here. |
|
8125 (native_float_format): New global variable. |
|
8126 (Fisieee): Compute return value from native_float_format, not by |
|
8127 using preprocessor macros. |
|
8128 * sysdep.h (enum floating_point_format): Move declaration here. |
|
8129 * load-save.cc: From here. |
|
8130 Always define all floating point format conversion routines. |
|
8131 (do_double_format_conversion, do_float_format_conversion): |
|
8132 Use native_float_format instead of preprocessor macros. |
|
8133 |
|
8134 Sat Apr 8 15:41:35 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8135 |
|
8136 * Makefile (TEMPLATE_SRC): New variable. |
|
8137 (DISTFILES): Add $(TEMPLATE_SRC). |
|
8138 (SOURCES): Delete Map.cc and SLStack.cc from here. |
|
8139 |
|
8140 * variables.cc (install_builtin_variables): Use OCTAVE_VERSION |
|
8141 instead of version_string to initialize OCTAVE_VERSION. |
|
8142 * version.h (version_string): Delete. |
|
8143 |
|
8144 * getopt.c (_getopt_internal): Initialize indfound to avoid warning. |
|
8145 |
|
8146 Fri Apr 7 15:29:41 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8147 |
|
8148 * tc-inlines.h (REP_RHS_MATRIX): Just check to see if tc is real |
|
8149 or complex. If conversion fails, return. |
|
8150 |
|
8151 Thu Apr 6 00:10:47 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8152 |
|
8153 * data.cc (Fstruct_contains): New function. |
|
8154 |
|
8155 * tc-rep.cc (print_code): Add extra parens around while condition |
|
8156 to avoid warning. |
|
8157 * utils.cc (undo_string_escapes): Likewise. |
|
8158 * input.cc (decode_prompt_string): Likewise. Also rewrite if |
|
8159 statement to avoid warning. |
|
8160 |
|
8161 Tue Apr 4 22:54:17 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8162 |
|
8163 * tree-expr.cc (tree_multi_assignment_expression::eval, |
|
8164 tree_simple_assignment_expression::eval): Call print_constant |
|
8165 even if user_pref.print_answer_id_name is false. |
|
8166 |
|
8167 Mon Apr 3 17:57:14 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8168 |
|
8169 * tc-inlines.h (TC_REP): Avoid redefinition. |
|
8170 |
|
8171 * tree-const.h (do_binary_op, do_unary_op): Declare as friends of |
|
8172 tree_constant class too. |
|
8173 |
|
8174 * tree-plot.h (subplot_using::have_values): Delete data member. |
|
8175 * tree-plot.cc (subplot_using::eval): Always recompute values. |
|
8176 |
|
8177 Fri Mar 31 10:18:32 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8178 |
|
8179 * tc-rep.cc (print): Print open brace for structures here. |
|
8180 * tree-expr.cc (print_constant): Not here. |
|
8181 |
|
8182 * symtab.cc (define): Don't delete arg if sv_fcn fails. |
|
8183 |
|
8184 * tree-const.cc (print): New function. Create ostrstream buffer |
|
8185 and pass it to rep->print(). |
|
8186 * tree-const.h (eval (int)): Call print(), not rep->print(). |
|
8187 * tc-rep.cc (structure_indent_level): New file-scope variable. |
|
8188 (print): New arg, output_buf, is stream to print to. |
|
8189 Print values of structure elements too. |
|
8190 |
|
8191 * user-prefs.h (user_preferences): New field, struct_levels_to_print. |
|
8192 * user-prefs.cc (struct_levels_to_print): New function. |
|
8193 * variables.cc (install_builtin_variables): Add DEFVAR for new |
|
8194 variable struct_levels_to_print. |
|
8195 |
|
8196 * tree-const.cc (print_as_scalar, print_as_structure): Move here |
|
8197 from tree-expr.cc and make extern. |
|
8198 |
|
8199 * tree-expr.cc (print_as_structure): New function. |
|
8200 (print_constant): Use it. |
|
8201 |
|
8202 * tree-expr.cc (print_constant): New arg, print_padding. |
|
8203 (tree_simple_assignment_expression::eval): Use print_constant |
|
8204 instead of duplicating code here. |
|
8205 (tree_multi_assignment_expression::eval): Likewise. |
|
8206 |
|
8207 Thu Mar 30 13:24:11 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8208 |
|
8209 * Makefile.in (SOURCES): Add resource.cc. |
|
8210 * resource.cc: New file, extracted from timefns.cc. |
|
8211 (Fgetrusage): New function. |
|
8212 * timefns.cc (cputime): Delete (now implemented in a function file |
|
8213 using new getrusage function). |
|
8214 |
|
8215 Wed Mar 29 22:52:42 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8216 |
|
8217 * Makefile.in (SOURCES): Add strftime.c. |
|
8218 * strftime.c: New file, from sh-utils distribution. |
|
8219 |
|
8220 * timefns.cc (mk_tm_map, extract_tm, Ftime, Fgmtime, Flocaltime, |
|
8221 Fmktime, Fstrftime): New basic time functions. |
|
8222 (Fclock, Fdate): Delete (now implemented in function files using new |
|
8223 time functions). |
|
8224 |
|
8225 Tue Mar 28 17:51:51 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8226 |
|
8227 * file-io.cc (return_valid_file, do_printf, do_scanf, |
|
8228 fclose_internal, feof_internal, ferror_internal, fflush_internal, |
|
8229 fgets_internal, fopen_internal, fread_internal, freport_internal, |
|
8230 frewind_internal, fseek_internal, ftell_internal, |
|
8231 fwrite_internal): Declare static. |
|
8232 * file-io.h: Delete extern declarations for them. |
|
8233 |
|
8234 Fri Mar 24 09:52:50 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8235 |
|
8236 * pr-output.cc (pr_col_num_header): New function. |
|
8237 (compact_format): New file-scope variable. |
|
8238 (set_format_style): Handle loose and compact formats. |
|
8239 (octave_print_internal (ostream&, const ComplexMatrix&, int)): |
|
8240 Replace duplicate code with call to pr_col_num_header(). |
|
8241 (octave_print_internal (ostream&, const Matrix&, int): Likewise. |
|
8242 (octave_print_internal (ostream&, const Range&, int): Likewise. |
|
8243 |
|
8244 Tue Mar 21 08:44:48 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8245 |
|
8246 * mappers.cc (xgamma): Always use Slatec library function. |
|
8247 * (xlgamma): Likewise. |
|
8248 * Makefile.in (SOURCES): Don't include lgamma.c. |
|
8249 |
|
8250 Fri Mar 17 22:38:39 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8251 |
|
8252 * tc-rep.cc (TC_REP::new): Don't try to keep track of newlist_tail. |
|
8253 Explicitly initialize newlist to zero. |
|
8254 * tree-const.cc (tree_constant::operator new): Likewise. |
|
8255 |
|
8256 Fri Mar 10 12:40:24 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8257 |
|
8258 * tree-cmd.cc (quit_loop_now): Declare inline. |
|
8259 (tree_for_command::do_for_loop_once): Split into two versions, one |
|
8260 for the general case and one for when the loop variable is a |
|
8261 simple identifier. |
|
8262 (DO_LOOP): New macro. Move tests outside of loop. |
|
8263 (tree_for_command::eval): Speed up by checking to see if loop |
|
8264 variable is a simple identifier and by using DO_LOOP. |
|
8265 |
|
8266 * tree-const.h: New union of rep and freeptr. The freeptr element |
|
8267 is used for our custom memory management functions. |
|
8268 |
|
8269 * tc-rep.h: Add freeptr element to anonymous union (for our custom |
|
8270 memory management functions). |
|
8271 |
|
8272 * tree-const.cc (newlist, newlist_grow_size, newlist_tail): New |
|
8273 static variables. |
|
8274 (tree_constant::operator new): Always define to allow more |
|
8275 efficient allocation of single tree_constants. |
|
8276 (tree_constant::operator delete): Likewise, handle deletion of the |
|
8277 memory we allocate. |
|
8278 |
|
8279 * tc-rep.cc (newlist, newlist_grow_size, newlist_tail): New static |
|
8280 variables. |
|
8281 (tree_constant::operator new): Always define to allow more |
|
8282 efficient allocation of single tree_constants. |
|
8283 (tree_constant::operator delete): Likewise, handle deletion of the |
|
8284 memory we allocate. |
|
8285 |
|
8286 Fri Mar 3 14:00:08 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8287 |
|
8288 * error.cc (verror): Terminate output_buf with ends. |
|
8289 |
|
8290 * statdefs.h: Use C-style comment in first line instead of |
|
8291 C++-style comment. |
|
8292 |
|
8293 Mon Feb 27 10:11:18 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8294 |
|
8295 * parse.y (maybe_convert_to_ans_assign): Only lookup ans once. |
|
8296 * variables.cc (bind_ans): New function. |
|
8297 * tree-expr.cc (tree_identifier::eval (int)): Use it here. |
|
8298 (tree_identifier::eval (int, int, const Octave_object&): And here. |
|
8299 |
|
8300 * tree-expr.cc (install_nargin_and_nargout): New function. |
|
8301 * tree-expr.h (tree_function::tree_function (tree_statement_list *, |
|
8302 symbol_table *, int, int)): Call it. |
|
8303 |
|
8304 * tree-expr.cc (tree_function::bind_nargin_and_nargout): New function. |
|
8305 (tree_function::eval): Call it insead of the one from variables.cc. |
|
8306 |
|
8307 * variables.cc (bind_nargin_and_nargout): #if 0 out. |
|
8308 |
|
8309 Sun Feb 26 00:17:06 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8310 |
|
8311 * load-save.cc (Fload, Fsave): Free fname returned by tilde_expand(). |
|
8312 * dirfns.cc (Fls): Likewise. |
|
8313 |
|
8314 * tree-expr.cc (tree_multi_assignment_expression::eval (int, int, |
|
8315 const Octave_object&)): Call tree_return_list::operator () (Pix) |
|
8316 explicitly. |
|
8317 |
|
8318 * octave.cc (initialize_globals): Put TEXMF in the environment for |
|
8319 kpthsea. |
|
8320 |
|
8321 * Makefile.in (OCTAVE_LIBS): Use @LIBINFO@ and @LIBREADLINE@, |
|
8322 substituted by configure. Use kpathsea.a, not libkpathsea, so we |
|
8323 don't have to modify the kpathsea Makefile. |
|
8324 |
|
8325 Sat Feb 25 18:59:26 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8326 |
|
8327 * pathsearch.cc: New file. |
|
8328 * pathsearch.h: New file. |
|
8329 * Makefile.in (INCLUDES): Include it in the list. |
|
8330 * dynamic-ld.cc, help.cc, utils.cc: Use it instead of repeating |
|
8331 identical code multiple times. |
|
8332 |
|
8333 * variables.cc (install_builtin_variables): Only DEFVAR |
|
8334 suppress_verbose_help_message if USE_GNU_INFO. |
|
8335 |
|
8336 * help.cc (Fhelp): Only handle -i if USE_GNU_INFO. |
|
8337 (additional_help_message): Only print message if USE_GNU_INFO. |
|
8338 (builtin_help): New function. |
|
8339 (help_from_info): New function. Print warning if not USE_GNU_INFO. |
|
8340 |
|
8341 See ChangeLog.1 in the top level directory for earlier changes. |