3857
|
1 2001-11-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2 |
|
3 Makefile.in (OCTAVE_LIBS): Add $(LIBOCT_READLINE) and |
|
4 $(LIBOCT_PATHSEARCH) to the list. |
|
5 |
3849
|
6 2001-10-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7 |
|
8 * DLD-FUNCTIONS/dassl.cc (dassl_user_function): Allow user |
|
9 supplied RES function to return IDID as second value. |
|
10 |
3844
|
11 2001-07-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
12 |
|
13 * parse.y: Clear help_buf after documenting function. |
|
14 |
3842
|
15 2001-06-29 Mumit Khan <khan@nanotech.wisc.edu> |
|
16 |
|
17 * defun-int.h (DEFINE_FUN_INSTALLER_FUN{2,3}): New macros. |
|
18 (DEFINE_FUN_INSTALLER_FUN): Use. |
|
19 * dynamic-ld.cc ({STRINGIFY, STRINGIFY1}): New macros. |
|
20 (octave_dynamic_loader::mangle_name): Support dynamic linking |
|
21 for GNU v3 and Sun C++ ABI. |
|
22 |
3841
|
23 2001-06-26 Mumit Khan <khan@nanotech.wisc.edu> |
|
24 |
|
25 * c-file-ptr-stream.h (c_file_ptr_buf::c_file_ptr_buf): Add GCC3 |
|
26 libstdc++-v3 support. |
|
27 * load-save.cc (save_mat5_binary_element): Cast arguments to the |
|
28 correct type. |
|
29 (save_ascii_data): Eliminate compiler warning. |
|
30 * toplev.cc (system): Prefix std::. |
|
31 |
3836
|
32 2001-05-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
33 |
|
34 * ov-cx-mat.cc: Deleve unnecessary instantiation of assign function. |
|
35 * ov-re-mat.cc: Likewise. |
|
36 * ov-re-nd-array.cc: Likewise. |
|
37 * ov-str-mat.cc: Likewise. |
|
38 * ov-bool-mat.cc: Likewise. |
|
39 |
|
40 * load-save.cc (save_ascii_data): When saving string data, get raw |
|
41 string value for matrix row since there may be embedded nuls. |
|
42 |
|
43 * pt-mat.cc (Vstring_fill_char): No longer static. |
|
44 * pt-mat.h: Provide declaration. |
|
45 |
3834
|
46 2001-05-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
47 |
|
48 * octave.cc (initialize_pathsearch): Save initial value of the |
|
49 TEXMFDBS environment variable here. |
|
50 * toplev.cc (restore_texmfdbs_envvar): New function. |
|
51 (Fsystem): Set TEXMFDBS back to original value before running |
|
52 subprocesses. |
|
53 |
3827
|
54 2001-05-02 Mumit Khan <khan@nanotech.wisc.edu> |
|
55 |
|
56 * Makefile.in (octave): Add $(FFTW_LIBS). |
|
57 |
3826
|
58 2001-04-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
59 |
|
60 * DLD-FUNCTIONS/sort.cc (mx_sort): Check for NaNs in comparisons. |
|
61 |
3822
|
62 2001-04-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
63 |
|
64 * Makefile.in (OCTAVE_LIBS): Delete $(LIBREADLINE) from the list. |
|
65 (octave): Delete TERMLIBS from link command. |
|
66 * oct-conf.h.in: Delete references to LIBREADLINE, TERMLIBS. |
|
67 * toplev.cc (octave_config_info): Delete entries for LIBREADLINE, |
|
68 TERMLIBS. |
|
69 |
3821
|
70 2001-04-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
71 |
|
72 * Makefile.in (install-lib): Don't use mk-libdir-link. |
|
73 (install-inc): Don't use mk-includedir-link. |
|
74 |
3815
|
75 2001-04-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
76 |
|
77 * parse.y (fold (tree_binary_expression *)): |
|
78 Set discard_error_messages here instead of buffer_error_messages. |
|
79 Don't add clear_global_error_variable to the unwind_protect stack. |
|
80 (fold (tree_unary_expression *)): Likewise. |
|
81 (finish_colon_expression): Likewise. |
|
82 (finish_matrix): Likewise. |
|
83 |
|
84 * error.cc (panic): Set discard_error_messages to false here. |
|
85 (verror): Return immediately if discard_error_messages is true. |
|
86 |
|
87 * error.cc (discard_error_messages): New global variable. |
|
88 * error.h: Provide declaration. |
|
89 |
3813
|
90 2001-04-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
91 |
|
92 * lex.l: If unexpected character is EOF, report EOF error instead |
|
93 of invalid character error. |
|
94 |
3812
|
95 2001-04-18 Mumit Khan <khan@nanotech.wisc.edu> |
|
96 |
|
97 * load-save.cc (read_mat5_binary_element): Cast arguments to the |
|
98 correct type when adding stream positions. |
|
99 * DLD-FUNCTIONS/det.cc (det): Explicity create a Complex value to |
|
100 work around a Sun C++ type conversion bug. |
|
101 |
3811
|
102 2001-04-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
103 |
|
104 * symtab.cc (define_builtin_const): Don't call replace_all_defs |
|
105 here. |
|
106 |
|
107 * error.cc (error_message_buffer): Now static. |
|
108 * error.h (error_message_buffer): Delete extern declaration. |
|
109 |
3810
|
110 2001-03-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
111 |
|
112 * DLD-FUNCTIONS/besselj.cc (besselh): Use K arg. |
|
113 From: Thomas Stuart <tstuart@ing.sun.ac.za>. |
|
114 |
|
115 * oct-stream.cc (get_size): Don't allow [Inf, N] as a size |
|
116 specification for the read and scanf functions. |
|
117 (get_size): SIZE is now an Array<double> instead of a Matrix object. |
|
118 (read): Likewise. Change all callers. |
|
119 (scanf): Likewise. Change all callers. |
|
120 |
3808
|
121 2001-03-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
122 |
|
123 * DLD-FUNCTIONS/det.cc (Fdet): Only return rcond if nargout > 1. |
|
124 * DLD-FUNCTIONS/inv.cc (Finv): Only return rcond if nargout > 1. |
|
125 |
|
126 2001-03-26 Paul Kienzle <pkienzle@kienzle.powernet.co.uk> |
|
127 |
|
128 * DLD-FUNCTIONS/det.cc (Fdet): Suppress warning, but return rcond. |
|
129 * DLD_FUNCTIONS/inv.cc (Finv): Return rcond if requested. |
|
130 |
3804
|
131 2001-02-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
132 |
3805
|
133 * pt.h (tree::break_statement): New static member. |
|
134 (tree::break_function): Make const. |
|
135 * pt.cc (tree::break_statement): Initialize here. |
|
136 (tree::break_function): Make const. |
|
137 * pb-bp.h (break_statement): Delete global varaible declaration. |
|
138 * pt-bp.cc (break_statement): Delete global variable definition. |
|
139 |
|
140 * pt-bp.h (tree_breakpoint::bp_list): Rename from lst. |
|
141 |
|
142 * pt.h: Don't inlcude ov-usr-fcn.h. |
|
143 Provide forward declaration of octave_user_function class. |
|
144 |
|
145 2001-02-28 Ben Sapp <bsapp@lanl.gov> |
|
146 |
|
147 * debug.cc (get_user_function): Simplify by using curr_function. |
|
148 (Fdbg_where): New function. |
|
149 (Fdbg_list): Now DLD_TEXT instead of DLD_FCN. |
|
150 (Fdbg_set): Likewise. |
|
151 (Fdbg_delete): Likewise. |
|
152 |
|
153 * pt-bp.h (break_statement): New global variable. |
|
154 (MAYBE_DO_BREAKPOINT): Check for dbg_next and dbg_step. |
|
155 Print line, column, and current statement. |
|
156 * pt-bp.cc (break_statement): New global variable |
|
157 (tree_breakpoint::visit_do_until_command): Return immediately if |
|
158 we've already found the line. |
|
159 (tree_breakpoint::visit_colon_expression): Set breakpoint info here. |
|
160 (tree_breakpoint::visit_binary_expression): Recurse here when |
|
161 checking for breakpoints. |
|
162 |
|
163 * debug.cc: Move here from DLD-FUNCTIONS/debug.cc. |
|
164 * Makefile.in (DIST_SRC): Add it to the list. |
|
165 (DLD_XSRC): Delete it from the list. |
|
166 |
|
167 * pt.h (tree::last_line, tree::break_function): New static members. |
|
168 * pt.cc(tree::last_line, tree::break_function): Initialize them. |
|
169 |
|
170 * pt-cell.h (tree_cell::tree_cell): Accept line and column info. |
|
171 * pt-mat.h (tree_matrix::tree_matrix): Likewise. |
|
172 |
|
173 * ov-usr-fcn.h (octave_user_function::sym_tab): Delete. |
|
174 |
|
175 * input.cc (get_user_input): Handle dbg_next. |
|
176 Set tree:break_function and tree::last_line when doing dbg_step. |
|
177 |
|
178 2001-02-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
179 |
|
180 * lex.l (handle_string): Save line and column information in token. |
|
181 (is_keyword): Save line and column information for plot style and |
|
182 axes tokens. |
|
183 |
3804
|
184 * toplev.cc (main_loop): Set retval to non-zero value if error |
|
185 occurs when not interactive. |
|
186 |
3802
|
187 2001-02-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
188 |
|
189 * parse.y (gobble_leading_white_space): Handle CRLF here too. |
|
190 * lex.l (check_for_garbage_after_fcn_def): Likewise. |
|
191 |
|
192 * lex.l: Add numeric value of character to error message for |
|
193 unrecognized characters. |
|
194 |
3800
|
195 2001-02-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
196 |
|
197 * DLD-FUNCTIONS/minmax.cc (EMPTY_RETURN_CHECK): For empty matrix |
|
198 args, make Octave's min and max behave like Matlab. |
|
199 |
3799
|
200 2001-02-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
201 |
|
202 * OPERATORS/op-s-s.cc (el_or, el_and): Return bool value. |
|
203 |
3798
|
204 2001-02-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
205 |
|
206 * pt-binop.cc (tree_boolean_expression::rvalue): |
|
207 Don't cast result to double. |
|
208 |
|
209 * OPERATORS/op-b-b.cc: Allow & and | operators to return bool values. |
|
210 |
|
211 2001-02-09 John W. Eaton <jwe@bevo.che.wisc.edu> |
3797
|
212 |
|
213 * data.cc (DATA_REDUCTION): Undo previous change. |
|
214 |
|
215 2001-02-13 Matthew W. Roberts <matt@nephi.tamu.edu> |
|
216 |
|
217 * load-save.cc (Fload): Accept -4 as an alias for -v4 and -mat4-binary. |
|
218 (Fsave): Likewise. |
|
219 |
3796
|
220 2001-02-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
221 |
|
222 * lex.l (lexical_feedbac::init): |
|
223 Initialize looking_at_matrix_or_assign_lhs too. |
|
224 |
3795
|
225 2001-02-09 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
226 |
|
227 * data.cc (DATA_REDUCTION): Allow FCN(x,0) to be equivalent to FCN(x). |
|
228 |
3779
|
229 2001-02-06 Mumit Khan <khan@nanotech.wisc.edu> |
|
230 |
|
231 * oct-stream.cc (octave_scan): Partially implement and specialize |
|
232 for char*. Delete the old template instantiations. |
|
233 (BEGIN_S_CONVERSION): Use strings instead of ostrstreambuf. |
|
234 (octave_base_stream::do_scanf): Pass correct parameter to |
|
235 do_scan_conv. |
|
236 |
3775
|
237 2001-02-05 Mumit Khan <khan@nanotech.wisc.edu> |
|
238 |
3776
|
239 * pr-output.cc (set_format): Add std:: namespace qualifier as |
|
240 needed. |
|
241 |
3775
|
242 * oct-stream.cc (octave_scan): Implement, and specialize for |
|
243 char*. Delete the old template instantiations. |
|
244 (BEGIN_S_CONVERSION): Use strings instead of ostrstreambuf. |
|
245 (octave_base_stream::do_scanf): Pass correct parameter to |
|
246 do_scan_conv. |
|
247 |
|
248 * Makefile.in (TEMPLATE_AR, TEMPLATE_ARFLAGS): Use to create |
|
249 archive libraries containing templates. |
|
250 |
|
251 * c-file-ptr-stream.h: Include <fstream>. Use <cstdio> instead of |
|
252 <stdio.h> |
|
253 (c_file_ptr_buf::int_type): Compat typedef for non-ISO libstdc++. |
|
254 (c_file_ptr_buf::{overflow, underflow, uflow, pbackfail): Use. |
|
255 (c_file_ptr_buf::c_file_ptr_buf): Handle various compilers. |
|
256 (c_file_ptr_buf::file_number): New member function. |
|
257 (c_file_ptr_buf::fd): New private data. |
|
258 (i_c_file_ptr_stream::i_c_file_ptr_stream): Initialize stream |
|
259 correctly. |
|
260 (o_c_file_ptr_stream::o_c_file_ptr_stream): Likewise. |
|
261 * c-file-ptr-stream.cc |
|
262 (c_file_ptr_buf::{overflow, underflow, uflow, pbackfail): Add |
|
263 ISO-compliant EOF handling. |
|
264 * oct-stream.cc (octave_base_stream::file_number): Use |
|
265 c_file_ptr_buf::file_number to get underlying file descriptor. |
|
266 |
|
267 * comment-list.cc: Add missing class qualifier. |
|
268 |
|
269 * file-io.cc, load-save.cc, mappers.cc, oct-fstrm.cc, oct-fstrm.h, |
|
270 oct-iostrm.cc, oct-iostrm.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
271 oct-stream.cc, oct-stream.h, oct-strstrm.cc, oct-strstrm.h, |
|
272 ov-base-nd-array.cc, ov-base-scalar.h, ov-complex.cc, ov-cx-mat.cc, |
|
273 pager.cc, pr-output.cc, procstream.h, pt-bp.h, utils.cc: |
|
274 Add std:: namespace qualifier as needed, and replace |
|
275 deprecated or invalid libstdc++-v2 names with standard ones |
|
276 where appropriate. |
|
277 |
|
278 * DLD-FUNCTIONS/minmax.cc: Fix docstring. |
|
279 |
|
280 * oct-fstrm.cc (octave_fstream::octave_fstream): Maintain fix for |
|
281 libstdc++-v2. |
|
282 |
|
283 * oct-stdstrm.cc (octave_ostdiostream::create): Remove default |
|
284 parameter value in definition. |
|
285 |
|
286 * oct-stream.cc (octave_stream::mode_as_string): Don't assume |
|
287 std::iso::openmode is an integral quantity. |
|
288 |
|
289 * pager.cc, procstream.h: Initialize streams correctly. |
|
290 |
|
291 * utils.cc: Use CXX_ISO_COMPLIANT_LIBRARY guard. |
|
292 |
|
293 * ov-base-nd-array.cc (idx_list_to_idx_array): Inline. |
|
294 |
|
295 * ov-base-scalar.h (octave_base_scalar::octave_base_scalar): Use |
|
296 ``const ST& s'' instead of ST to workaround gcc3 complex bug. |
|
297 |
3774
|
298 2001-02-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
299 |
|
300 * lex.l (next_token_is_bin_op): Remove Checks for spacing except |
|
301 for ops that begin with +, - but are not ++, --, +=, or -=. |
|
302 |
3772
|
303 2001-02-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
304 |
|
305 * input.cc (get_user_input): Handle dbg_cont and dbg_step here. |
|
306 * debug.cc (Fdbg_cont): Delete. |
|
307 * pt-bp.h (MAYBE_DO_BREAKPOINT): Check tree::break_next here. |
|
308 * pt.h (tree::break_next): New static member. |
|
309 * pt.cc: Initialize it. |
|
310 |
|
311 * parse.h (feval (const octave_value_list&, int)): |
|
312 Set default value for nargout. |
|
313 (feval (const std::string&, const octave_value_list&, int)): |
|
314 Set default values for args and nargout. |
|
315 |
3770
|
316 2001-02-01 Ben Sapp <bsapp@lanl.gov> |
|
317 |
|
318 * DLD-FUNCTIONS/debug.cc: New file. |
|
319 * pt-bp.h, pt-bp.cc: New files, for breakpoints. |
|
320 * Makefile.in: Add them to the appropriate lists. |
|
321 |
|
322 * pt-stmt.cc (tree_statement_list::set_breakpoint, |
|
323 tree_statement_list::delete_breakpoint, |
|
324 tree_statement_list::list_breakpoints): New functions. |
|
325 |
|
326 * pt.h (tree::break_point): New data member. |
|
327 (tree::set_breakpoint, tree::delete_breakpoint, tree::is_breakpoint): |
|
328 New virtual functions. |
|
329 |
|
330 * pt-mat.cc (tree_matrix::rvalue): Check for breakpoint here. |
|
331 * pt-unop.cc (tree_prefix_expression::rvalue): Likewise. |
|
332 (tree_postfix_expression::rvalue): Likewise. |
|
333 * pt-loop.cc (tree_do_until_command::eval): Likewise. |
|
334 (DO_LOOP): Likewise. |
|
335 (tree_simple_for_command::eval): Likewise. |
|
336 (tree_complex_for_command::eval): Likewise. |
|
337 * pt-assign.cc (tree_simple_assignment::rvalue): Likewise. |
|
338 * pt-binop.cc (tree_binary_expression::rvalue): Likewise. |
|
339 (tree_boolean_expression::rvalue): Likewise. |
|
340 * pt-cell.cc (tree_cell::rvalue): Likewise. |
|
341 * pt-colon.cc (tree_colon_expression::rvalue): Likewise. |
|
342 * pt-except.cc (tree_try_catch_command::eval): Likewise. |
|
343 (tree_unwind_protect_command::eval): Likewise. |
|
344 * pt-id.cc (tree_identifier::rvalue): Likewise. |
|
345 (tree_identifier::lvalue): Likewise. |
|
346 * pt-indir.cc (tree_indirect_ref::rvalue): Likewise. |
|
347 * pt-jump.cc (tree_break_command::eval): Likewise. |
|
348 (tree_continue_command::eval): Likewise. |
|
349 (tree_return_command::eval): Likewise. |
|
350 |
3767
|
351 2001-01-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
352 |
|
353 * Map.h, Map.cc (CHMap<C>::operator = (const CHMap&)): New function. |
|
354 (Map<C>::operator = (const Map&)): Likewise. |
|
355 (Map<C> (const Map&)): Likewise. |
|
356 |
|
357 * OPERATORS/op-cm-cs.cc, OPERATORS/op-cm-s.cc, |
|
358 OPERATORS/op-m-cs.cc, OPERATORS/op-m-s.cc: |
|
359 Make ldiv operator work for row vector by scalar ops. |
|
360 |
|
361 * OPERATORS/op-cs-cm.cc, OPERATORS/op-cs-m.cc, |
|
362 OPERATORS/op-s-cm.cc, OPERATORS/op-s-m.cc: |
|
363 Make div operator work for scalar by column vector ops. |
|
364 |
3765
|
365 2001-01-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
366 |
|
367 * parse.y (safe_fclose): Discard comments at the end of a file. |
|
368 |
3764
|
369 2001-01-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
370 |
|
371 * error.cc (pr_where): Call pr_where_1 with two args, not one, to |
|
372 avoid processing format escapes that might appear in formatted code. |
|
373 |
3762
|
374 2001-01-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
375 |
|
376 * error.cc (vwarning): Write to output_buf, then send formatted |
|
377 message to diary and error streams. |
|
378 |
3760
|
379 2001-01-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
380 |
|
381 * ov-cx-mat.cc (octave_complex_matrix::try_narrowing_conversion): |
|
382 Handle empty matrix dimensions correctly. |
|
383 |
3756
|
384 2000-12-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
385 |
|
386 * pager.h (octave_pager_buf::diary_skip): New data member. |
|
387 (octave_pager_buf::octave_pager_buf): Initialize it. |
|
388 * pager.cc (octave_pager_buf::set_diary_skip): New function. |
|
389 (octave_pager_stream::set_diary_skip): New function. |
|
390 (octave_pager_buf::sync): Call flush_current_contents_to_diary |
|
391 instead of octave_diary.write. |
|
392 (octave_pager_buf::flush_current_contents_to_diary): Use |
|
393 diary_skip, reset when done. |
|
394 (open_diary_file): Call octave_stdout.set_diary_skip here. |
|
395 |
3747
|
396 2000-12-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
397 |
|
398 * DLD-FUNCTIONS/minmax.cc (EMPTY_RETURN_CHECK): New macro. |
|
399 (min, max): Use it. |
|
400 |
|
401 * DLD-FUNCTIONS/minmax.cc (MINMAX_BODY): New macro. If single arg |
|
402 is empty, return empty matrix result and empty matrix for index. |
|
403 (Fmin, Fmax): Use MINMAX_BODY, so we have consistent definition |
|
404 for min and max functions. |
|
405 |
|
406 2000-11-30 Joerg Specht <joerg.specht@ins.uni-stuttgart.de> |
|
407 |
|
408 * help.cc (display_help_text): Append new line at end of doc string. |
|
409 |
|
410 2000-11-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
411 |
|
412 * DLD-FUNCTIONS/lsode.cc (LSODE_ABORT1, LSODE_ABORT2): Omit `##' |
|
413 in macro definition since they are not needed to paste strings |
|
414 together and picky compilers choke on them. |
|
415 * DLD-FUNCTIONS/quad.cc (QUAD_ABORT1, QUAD_ABORT2): Likewise. |
|
416 * DLD-FUNCTIONS/fsolve.cc (FSOLVE_ABORT1, FSOLVE_ABORT2): Likewise. |
|
417 * DLD-FUNCTIONS/dassl.cc (DASSL_ABORT1, DASSL_ABORT2): Likewise. |
|
418 |
3741
|
419 2000-11-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
420 |
3744
|
421 * mkbuiltins (XDEFUNX_INTERNAL): New macro. |
3746
|
422 * mkgendoc (XDEFUNX_INTERNAL): Likewise. |
3744
|
423 * defun-int.h (DEFUNX_INTERNAL): Use it. |
|
424 |
3743
|
425 * defun.h (DEFUNX): New macro. |
|
426 * defun-int.h (DEFUNX_INTERNAL, DECLARE_FUNX): New macro. |
|
427 (DECLARE_FUN): Define in terms of DECLARE_FUNX. |
|
428 |
3742
|
429 * mkdefs: Read and print one line at a time, so we can force |
|
430 patterns to match only at the beginning of a line. |
|
431 |
3741
|
432 * defun-int.h (UNDERSCORIFY): Omit `##' in macro definition since |
|
433 they are not needed to paste strings together and picky compilers |
|
434 choke on them. |
|
435 |
3738
|
436 2000-11-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
437 |
|
438 * load-save.cc (save_ascii_data_for_plotting): New function. |
|
439 * pt-plot.cc (save_in_tmp_file): Use it instead of save_ascii_data. |
|
440 |
|
441 * load-save.cc (save_ascii_data): Warn if saving Inf or NaN values. |
|
442 New arg, infnan_warned. Use it to warn just once per set. |
|
443 Now static. |
|
444 (do_save): New arg, infnan_warned. Pass to save_ascii_data. |
|
445 (save_vars): Initialize infnan_warned here, pass to do_save. |
|
446 |
3737
|
447 2000-11-16 Paul Kienzle <pkienzle@kienzle.powernet.co.uk> |
|
448 |
|
449 * file-io.cc (Ffprintf): If no file id parameter, don't return |
|
450 count of characters if nargout is 0 (for compatibility with |
|
451 Matlab). |
|
452 |
|
453 2000-11-16 Ben Sapp <bsapp@lanl.gov> |
|
454 |
|
455 * DLD-FUNCTIONS/rand.cc (do_rand): Declare loop counter as |
|
456 volatile int, not just volatile. |
|
457 |
3731
|
458 2000-10-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
459 |
|
460 * load-save.cc (skip_comments): Allow % as comment character too. |
|
461 (extract_keyword): Likewise. |
|
462 |
|
463 * Makefile.in (oct-gperf.h): Remove -a, -g, and -p flags for gperf. |
|
464 |
3727
|
465 2000-10-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
466 |
|
467 * load-save.cc (do_load): Allow result to be returned instead of |
|
468 inserting variables in the symbol table. Change patterned after |
|
469 patch by Kian Ming Adam Chai <caijianming@yahoo.co.uk>. |
|
470 |
3726
|
471 2000-10-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
472 |
|
473 * Makefile.in (ops.cc): Don't substitute BLAS_LIBS and LIBS here. |
|
474 |
|
475 * oct-conf.h.in (OCTAVE_CONF_SPECIAL_MATH_LIB): Delete. |
|
476 (OCTAVE_CONF_BLAS_LIBS): Add. |
|
477 * toplev.cc (octave_config_info): Likewise, add BLAS_LIBS and |
|
478 remove SPECIAL_MATH_LIB from the struct. |
|
479 |
|
480 * parse.y (feval (const octave_value_list&, int)): Don't panic |
|
481 while processing arg names if arg.length() and arg_names.length() |
|
482 differ. |
|
483 |
3724
|
484 2000-10-12 Paul Kienzle <pkienzle@kienzle.powernet.co.uk> |
|
485 |
|
486 * ov-cell.h (octave_cell::is_cell): New function. |
|
487 |
|
488 * pt-select.cc (equal): New static function. |
|
489 (tree_switch_case::label_matches): Use it to compare case label |
|
490 against arg. Handle cell arrays as case labels. |
|
491 |
3723
|
492 2000-10-12 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
493 |
|
494 Change patterned after patch by Cai Jianming |
|
495 <caijianming@yahoo.co.uk> to support for DIM arg in 2.0.x sources. |
|
496 |
|
497 * data.cc (DATA_REDUCTION): New macro. Handle second DIM arg here. |
|
498 (Fcumprod): Replace function body with DATA_REDUCTION. |
|
499 (Fcumsum): Likewise. |
|
500 (Fprod): Likewise. |
|
501 (Fsum): Likewise. |
|
502 (Fsumsq): Likewise. |
|
503 |
3719
|
504 2000-10-10 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
505 |
|
506 * error.cc (pr_where_2): New function. |
|
507 (pr_where_1): Use it instead of error_1 to avoid setting error_state. |
|
508 |
|
509 2000-10-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
510 |
|
511 * xdiv.cc (xdiv): Warn if execution falls through to lssolve. |
|
512 |
3716
|
513 2000-09-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
514 |
|
515 * utils.cc (FERRNO): New function (currently commented out). |
|
516 |
|
517 * c-file-ptr-stream.cc (c_file_ptr_buf::close): Call flush here. |
|
518 (c_file_ptr_buf::~c_file_ptr_buf): Not here. |
|
519 * c-file-ptr-stream.h (c_fie_ptr_buf::close_fcn): New typedef. |
|
520 (c_file_ptr_buf::cf): New data member. Add default constructor arg. |
|
521 (class c_file_ptr_buf): Derive from filebuf, not streambuf. |
|
522 (i_c_file_ptr_stream, o_c_file_ptr_stream): Handle close function here. |
|
523 * oct-procstrm.cc (octave_iprocstream, octave_oprocstream): Likewise. |
|
524 (octave_iprocstream::do_close, octave_oprocstream::do_close): Delete. |
|
525 * oct-stdstrm.cc (octave_base_stdiostream::~octave_base_stdiostream): |
|
526 Don't do anything. |
|
527 (octave_istdiostream::create): Handle close function here. |
|
528 (octave_istdiostream::octave_istdiostream): Likewise. |
|
529 (octave_ostdiostream::create): Likewise. |
|
530 (octave_ostdiostream::octave_ostdiostream): Likewise. |
|
531 (class octave_base_stdiostream): Don't cache FILE pointer here. |
|
532 |
3715
|
533 2000-09-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
534 |
|
535 * syscalls.cc (Ffcntl): Don't assume that the file id passed in is |
|
536 the same as the underlying system file id. |
|
537 |
3712
|
538 2000-08-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
539 |
|
540 * parse.y: Use octave_time, not time. |
|
541 |
3711
|
542 2000-08-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
543 |
|
544 * oct-stream.cc (printf_value_cache::double_value): Also set |
|
545 curr_stat to conversion_error if there are no values at all. |
|
546 |
3710
|
547 2000-08-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
548 |
|
549 * dirfns.cc (Flink, Fsymlink, Freadlink): New functions. |
|
550 |
3709
|
551 2000-08-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
552 |
|
553 * load-save.cc (Vsave_header_format_string): New variable. |
|
554 (symbols_of_load_save): DEFVAR it. |
|
555 (save_header_format, default_save_header_format): New functions. |
|
556 (write_header): Use Vsave_header_format_string here. |
|
557 |
3707
|
558 2000-07-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
559 |
3708
|
560 * pt-pr-code.h (tree_print_code::curr_print_indent_level, |
|
561 (tree_print_code::beginning_of_line): No longer static. |
|
562 (tree_print_code::tree_print_code): Initialize them here. |
|
563 * pt-pr-code.cc: Not here. |
|
564 |
|
565 * pt-stmt.cc (tree_statement::eval): Set curr_statement here. |
|
566 (tree_statement_list::eval): Not here. |
|
567 |
3707
|
568 Debug-on-error stuff based on a patch submitted by Paul Kienzle |
|
569 <pkienzle@kienzle.powernet.co.uk> for 2.0.x. |
|
570 |
|
571 * error.cc (Vdebug_on_warning): New static flag variable. |
|
572 (debug_on_warning): New function. |
|
573 (symbols_of_warning): DEFVAR debug_on_warning. |
|
574 (warning): Handle debug_on_warning here. |
|
575 |
|
576 * input.cc (do_keyboard): New function. |
|
577 (Fkeyboard): Use it to do the real work. |
|
578 * pt-stmt.cc (curr_statement): New static variable. |
|
579 (tree_statement::eval): Save and restore it here. |
|
580 * error.cc (Vdebug_on_error): New static flag variable. |
|
581 (debug_on_error): New function. |
|
582 (symbols_of_error): DEFVAR debug_on_error. |
|
583 (pr_where, pr_where_1): New functions. |
|
584 (error): Handle debug_on_error here. |
|
585 |
3705
|
586 2000-07-20 Joao Cardoso <jcardoso@inescporto.pt> |
|
587 |
|
588 * Makefile.in (octave): Link with $(LD_CXX) instead of $(CXX) |
|
589 |
3704
|
590 2000-07-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
591 |
|
592 * oct-stream.cc (octave_base_stream::oscanf): Advance to next |
|
593 format element before attempting to pick up any trailing stuff. |
|
594 |
3697
|
595 2000-07-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
596 |
3698
|
597 * lex.l (next_token_is_bin_op): Don't recognize `..' as a binary op. |
|
598 |
3697
|
599 * load-save.cc (get_file_format): Call read_mat5_binary_file_header |
|
600 with third arg true instead of false, so we don't barf if the file |
|
601 is not a matlab v5 binary file. |
|
602 |
3695
|
603 2000-07-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
604 |
|
605 * Makefile.in (octave): Link to ../libcruft/blas-xtra/xerbla.o here. |
|
606 |
|
607 * octave.cc (main): Remove kluge to attempt linking our version of |
|
608 xerbla. |
|
609 |
|
610 2000-07-07 Steven G. Johnson <stevenj@alum.mit.edu> |
|
611 |
|
612 * load-save.cc (have_h5giterate_bug): New file-scope variable. |
|
613 (hdf5_read_next_data): Only increment current_item if |
|
614 have_h5giterate_bug is true. |
|
615 (read_hdf5_data): Set have_h5giterate_bug here. |
|
616 Only increment hs.current_item if have_h5giterate_bug is true. |
|
617 |
3693
|
618 2000-07-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
619 |
|
620 * c-file-ptr-stream.cc (c_file_ptr_buf::close): |
|
621 Return -1 if file pointer is NULL. |
|
622 Set file pointer to 0 after closing. |
|
623 (c_file_ptr_buf::~c_file_ptr_buf): Call close after flushing. |
|
624 |
3694
|
625 2000-07-05 Steven G. Johnson <stevenj@alum.mit.edu> |
3692
|
626 |
|
627 * Makefile.in (BLAS_LIBS): Substitute here. |
|
628 (octave): Use $(BLAS_LIBS) in the final link command. |
|
629 |
3694
|
630 2000-06-30 Steven G. Johnson <stevenj@alum.mit.edu> |
3690
|
631 |
|
632 * Makefile.in (octave): Link $(FLIBS) last. |
|
633 * octave.cc (main): Force our own xerbla to be linked instead of |
|
634 some system version. |
|
635 |
3688
|
636 2000-06-29 James R. Van Zandt <jrv@vanzandt.mv.com> |
|
637 |
3689
|
638 * load-save.cc (load_save_format): New value, LS_MAT5_BINARY. |
3688
|
639 (arrayclasstype, mat5_data_type): New enums. |
|
640 (read_mat5_binary_data): New function. |
|
641 (read_mat5_tag): New function. |
|
642 (read_mat5_binary_element): New function. |
|
643 (read_mat5_binary_file_header): New function. |
|
644 (get_file_format): Check for mat5 binary format too. |
|
645 (do_load): Handle mat5 binary format. |
|
646 (write_mat5_tag): New function. |
|
647 (write_mat5_array): New function. |
|
648 (class mat5_callback): New class. |
|
649 (save_mat5_binary_element): New functnon. |
|
650 (do_save): Handle mat5 binary format. |
|
651 (write_header): Handle LS_MAT5_BINARY case too. |
|
652 (save_user_variables): Handle LS_MAT5_BINARY case too. |
|
653 (Fsave): Handle LS_MAT5_BINARY case too. |
|
654 (Fload): Handle LS_MAT5_BINARY case too. |
|
655 |
3694
|
656 2000-06-29 Steven G. Johnson <stevenj@alum.mit.edu> |
3687
|
657 |
|
658 All of the following changes are protected by #ifdef HAVE_HDF5. |
|
659 |
|
660 * load-save.cc (load_save_format): New value, LS_HDF5. |
|
661 (make_valid_identifier): New function. |
|
662 (class hdf5_fstreambase, class hdf5_ifstream, class hdf5_ofstream): |
|
663 New classes for reading and writing hdf5 data. |
|
664 (hdf5_types_compatible): New function. |
|
665 (hdf5_import_multidim): New function. |
|
666 (hdf5_check_attr): New function. |
|
667 (hdf5_read_next_data): New function. |
|
668 (hdf5_make_complex_type): New function. |
|
669 (hdf5_make_range_type): New function. |
|
670 (read_hdf5_data): New function. |
|
671 (get_file_format): Handle HDF5 format. |
|
672 (do_load): Handle LS_HDF5 case. |
|
673 (Fload): Handle HDF5 format. |
|
674 (hdf5_add_attr): New function. |
|
675 (save_type_to_hdf5): New function. |
|
676 (add_hdf5_data): New function. |
|
677 (do_save): Handle HDF5 format. |
|
678 (get_default_save_format): Handle LS_HDF5 case. |
|
679 (write_header): Handle LS_HDF5 case. |
|
680 (save_user_variables): Handle HDF5 format. |
|
681 (Fsave): Handle HDF5 format. |
|
682 |
3686
|
683 2000-06-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
684 |
|
685 * help.cc (display_help_text): If writing to filter fails, send |
|
686 unformatted text to output stream. |
|
687 |
3683
|
688 2000-06-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
689 |
3685
|
690 * OPERATORS/op-bm-bm.cc (eq): Define using mx_el_eq, not operator ==. |
|
691 (ne): Likewise, use mx_el_ne, not operator !=. |
|
692 |
3683
|
693 * pr-output.cc (Fdisp): Delete. |
|
694 |
3681
|
695 2000-06-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
696 |
3682
|
697 * pr-output.cc (float_format::float_format): Set default values |
|
698 for width and precision to -1. |
|
699 (operator << (ostream&, pr_formatted_float&): Set width and |
|
700 precision if values are >= 0. |
|
701 (set_real_format, set_real_matrix_format, set_range_format, |
|
702 set_complex_format, set_complex_matrix_format): If we have all |
|
703 integers, infinities, or nans, set precision equal to field width. |
|
704 |
|
705 * load-save.cc (read_ascii_data): Allow empty strings and string |
|
706 vectors to be restored. |
|
707 |
3681
|
708 * variables.cc (var_matches_any_pattern): New function. |
|
709 (Fclear): Use it to make exclusive clear work correctly. |
|
710 |
3676
|
711 2000-06-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
712 |
3678
|
713 * ov-range.h (octave_range::is_numeric_type): New function. |
|
714 |
3676
|
715 * sysdep.cc (Fkbhit): Also ask for input if forced_interactive. |
|
716 |
3675
|
717 2000-06-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
718 |
|
719 * Makefile.in (oct-gperf.h): Use $(GPERF) instead of gperf. |
|
720 |
3671
|
721 2000-05-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
722 |
|
723 * DLD-FUNCTIONS/qz.cc (Fqz): When computing finite generalized |
|
724 eigenvalues, don't write past the end of the array. |
|
725 |
3665
|
726 2000-05-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
727 |
|
728 * ov-base-nd-array.h, ov-base-nd-array.cc, ov-re-nd-array.h, |
|
729 ov-re-nd-array.h: New files. |
|
730 * Makefile.in: Add them to the appropriate lists. |
|
731 |
|
732 * pt-stmt.h, pt-stmt.cc (class tree_statement): |
|
733 Store comments associated with this parse tree element. |
|
734 * pt-select.h, pt-select.cc (class tree_if_clause, |
|
735 class tree_if_command, class tree_switch_case |
|
736 class tree_switch_command): Likewise. |
|
737 * pt-loop.h, pt-loop.cc (class tree_while_command, |
|
738 class tree_do_until_command, class tree_simple_for_command, |
|
739 class tree_complex_for_command): Likewise. |
|
740 * pt-except.h, pt-except.cc (class tree_try_catch_command, |
|
741 class tree_unwind_protect_command): Likewise. |
|
742 * ov-usr-fcn.h, ov-usr-fcn.cc (class octave_user_function): Likewise. |
|
743 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::print_comment_elt, |
|
744 tree_print_code::print_comment_list, |
|
745 tree_print_code::print_indented_comment): New functions. |
|
746 (tree_print_code::visit_simple_for_command, |
|
747 tree_print_code::visit_complex_for_command, |
|
748 tree_print_code::visit_octave_user_function_header, |
|
749 tree_print_code::visit_octave_user_function_trailer, |
|
750 tree_print_code::visit_if_command, tree_print_code::visit_statement, |
|
751 tree_print_code::visit_switch_case, |
|
752 tree_print_code::visit_switch_command, |
|
753 tree_print_code::visit_try_catch_command, |
|
754 tree_print_code::visit_unwind_protect_command |
|
755 tree_print_code::visit_while_command, |
|
756 tree_print_code::visit_do_until_command): Handle comments. |
|
757 * lex.l, parse.y: Handle comments in parse trees. |
|
758 * comment-list.h, comment-list.cc: New files. |
|
759 * Makefile.in: Add them to the appropriate lists. |
|
760 |
3661
|
761 2000-04-23 etienne grossmann <etienne@anonimo.isr.ist.utl.pt> |
|
762 |
|
763 * pt-mat.cc (tm_row_const::tm_row_const_rep::eval_error): |
|
764 New args x and y, for dimension mismatch info. |
|
765 Change callers where appropriate. |
|
766 (tm_const::init): Report mismatched column dimensions. |
|
767 |
3658
|
768 2000-04-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
769 |
|
770 * sysdep.cc (kbhit): Also clear cin if at EOF. |
|
771 |
3657
|
772 2000-04-11 Joao Cardoso <jcardoso@inescn.pt> |
|
773 |
|
774 * sysdep.cc (kbhit): New arg, wait. |
|
775 (raw_mode): Ditto. |
|
776 (Fkbhit): If given an arg, call kbhit with wait = false. |
|
777 |
|
778 * DLD-FUNCTIONS/minmax.cc (Fmax, Fmin): Fix doc string. |
|
779 |
3656
|
780 2000-04-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
781 |
|
782 * dynamic-ld.cc (octave_dynamic_loader::do_load): Undo previous change. |
|
783 |
3655
|
784 2000-04-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
785 |
|
786 * dynamic-ld.cc (octave_dynamic_loader::do_load): Also fail with |
|
787 error message if we don't find the mangled function name in the |
|
788 file. |
|
789 |
3652
|
790 2000-03-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
791 |
3653
|
792 * oct-stream.cc (printf_value_cache::string_value): Return string |
|
793 matrices in a Matlab-compatible way. |
|
794 (printf_value_cache): Redesign the way list_exhausted works. |
|
795 |
3652
|
796 * oct-fstrm.cc (octave_fstream::do_close): New function. |
|
797 * oct-stdstrm.cc (octave_istdiostream::do_close): Ditto. |
|
798 (octave_ostdiostream::do_close): Ditto. |
|
799 * c-file-ptr-stream.cc (c_file_ptr_buf::close): Ditto. |
|
800 (i_c_file_ptr_stream::close): Ditto. |
|
801 (o_c_file_ptr_stream::close): Ditto. |
|
802 * oct-prcstrm.cc (octave_iprocstream::do_close): Ditto. |
|
803 (octave_oprocstream::do_close): Ditto. |
|
804 (octave_iprocstram::~octave_iprocstram): Call do_close here. |
|
805 (octave_iprocstram::~octave_oprocstram): Likewise. |
|
806 |
|
807 * oct-stream.h (octave_base_stream::do_close): New virtual function. |
|
808 (octave_base_stream::close): If stream is open, call do_close. |
|
809 |
|
810 * c-file-ptr-stream.cc (c_file_ptr_buf::flush): New function. |
|
811 (c_file_ptr_buf::~c_file_ptr_buf): Use it. |
|
812 (c_file_ptr_buf::overflow): Ditto. |
|
813 (c_file_ptr_buf::sync): Ditto. |
|
814 |
3649
|
815 2000-03-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
816 |
|
817 * oct-procbuf.cc (octave_procbuf::open): Make output streams line |
|
818 buffered. |
|
819 |
3640
|
820 2000-03-24 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
821 |
3644
|
822 * sighandlers.cc (my_friendly_exit): Prefix failure messages with |
|
823 panic instead of error. |
|
824 |
3642
|
825 * c-file-ptr-stream.cc (c_file_ptr_buf::~c_file_ptr_buf): |
|
826 Avoid dereferencing NULL pointer. |
|
827 |
3640
|
828 * oct-stream.cc (printf_format_list::add_elt_to_list, |
|
829 printf_format_list::process_conversion, |
|
830 printf_format_list::finish_conversion): New args, flags, fw, and prec. |
|
831 (printf_format_list::printf_format_list): Save more complete info. |
|
832 (printf_format_list::printme): Print flags, fw, and prec. |
|
833 (octave_base_stream::printf): Simplify. |
|
834 (do_printf_conv): Delete have_arg arg, since it is always true now. |
|
835 (octave_base_stream::do_printf): Handle case of no args and % |
|
836 directly instead of using do_printf_conv. |
|
837 (printf_value_cache::exhausted): Rename from no_more_values. |
|
838 (DO_PCT_CONVERSION): New macro |
|
839 (octave_base_streain::do_scanf, octave_base_streain::do_oscanf): |
|
840 Use it. |
|
841 (scanf_format_list::finish_conversion): `%' counts as a conversion too. |
|
842 Also don't forget to set type for it. |
|
843 (OCTAVE_SCAN_0): Delete. |
|
844 (OCTAVE_SCAN): Rename from OCTAVE_SCAN_1. |
|
845 (octave_base_stream::scanf, octave_base_stream::oscanf): Don't |
|
846 special-case number of conversions here. |
|
847 (octave_base_stream::oscanf, octave_base_stream::do_oscanf): Only |
|
848 cycle through fmt elements if the number of conversions is greater |
|
849 than 0. |
|
850 |
|
851 * oct-stream.h (scanf_format_list::next): New arg, `cycle'. |
|
852 (printf_format_list::next): New arg, `cycle'. |
|
853 (printf_format_list::last_elt_p): New function. |
|
854 (printf_format_elt): New fields fw, prec, and flags. |
|
855 Define copy constructor and assignment operator. |
|
856 (scanf_format_elt): Define copy constructor and assignment operator. |
|
857 |
3627
|
858 2000-03-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
859 |
3639
|
860 * oct-stream.cc (OCTAVE_SCAN_0, OCTAVE_SCAN_1): New macros. |
|
861 (do_scanf_conv, BEGIN_S_CONVERSION, BEGIN_CHAR_CLASS_CONVERSION, |
|
862 do_scanf, scanf, do_oscanf, do_oscanf, oscanf): Use them instead |
|
863 of calling istream::scan directly. |
|
864 (octave_scan): New function. |
|
865 (do_scanf_conv): Second arg is now scanf_format_elt instead of char*. |
|
866 Change all callers. |
|
867 |
3631
|
868 * oct-procbuf.h, oct-procbuf.cc (octave_procbuf): |
|
869 Derive from c_file_ptr_buf instead of filebuf. |
|
870 |
3627
|
871 * oct-stream.cc (octave_base_stream::printf): Use octave_format |
|
872 instead of ostream::form. Return number of characters written. |
|
873 |
3618
|
874 2000-03-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
875 |
3620
|
876 * oct-stream.cc (do_printf_conv): Use octave_format instead of |
|
877 ostream::form. Return number of characters written. |
|
878 (octave_base_stream::do_printf): Return number of characters written. |
|
879 |
|
880 * error.cc (verror, vwarning): Use octave_format instead of |
|
881 ostream::vform. |
|
882 |
|
883 * utils.cc (octave_format, octave_vformat): New functions. |
|
884 * cutils.c (octave_snprintf, octave_vsnprintf): New functions. |
|
885 |
3618
|
886 * oct-lvalue.h (dummy_val): New static variable. |
|
887 (octave_lvalue::octave_lvalue): Use it to initialize val. |
|
888 |
|
889 * variables.cc (is_valid_function): Look in the global symbol |
|
890 table for functions. |
|
891 |
3615
|
892 2000-03-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
893 |
3770
|
894 * Makefile.in (LIBRARIES): Conditionally define. |
3615
|
895 (libraries): Depend on $(LIBRARIES). |
|
896 (octave): Depend on $(LIBRARIES), not libraries. Also depend on |
|
897 stamp-prereq and stamp-oct-links. |
|
898 (all): Don't depend on stamp-prereq or stamp-oct-links. |
|
899 (liboctinterp.$(LIBEXT), liboctinterp.$(SHELXT)): Delete target |
|
900 before rebuilding. |
|
901 |
|
902 2000-03-21 Ben Sapp <bsapp@nua.lampf.lanl.gov>: |
|
903 |
3770
|
904 * Makefile.in (libraries): Depend only on library targets, not |
3615
|
905 archive members. |
|
906 |
3611
|
907 2000-03-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
908 |
3613
|
909 * Makefile.in (objects): New target |
|
910 |
3611
|
911 * c_file_ptr_stream.h, c_file_ptr_stream.cc: New files. |
|
912 * oct-stdstrm.h, oct-stdstrm.cc, oct-prcstrm.cc: |
|
913 Use c_file_ptr_buf, i_c_file_ptr_stream, and o_c_fie_ptr_stream |
|
914 instead of stdiobuf, istdiostream, and ostdiostream. |
|
915 |
|
916 * pr-output.cc (set_real_format, set_real_matrix_format, |
|
917 set_complex_format, set_complex_matrix_format, set_range_format): |
|
918 Do the right thing again for int, NaN, and Inf values. |
|
919 |
3608
|
920 2000-03-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
921 |
|
922 * pr-output.cc (pr_plus_format): Rename from do_plus_format. |
|
923 Change all callers. |
|
924 (pr_float, pr_complex): New arg, scale. Handle scaling here. |
|
925 (float_format): New class for managing details of formatting |
|
926 floats. Use it instead of character string formats and the |
|
927 nonstandard form() function from the GNU iostream library. |
|
928 |
3601
|
929 2000-02-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
930 |
|
931 * Makefile.in (clean): Also delete gendoc. |
|
932 |
3598
|
933 2000-02-18 James R. Van Zandt <jrv@vanzandt.mv.com> |
|
934 |
|
935 * load-save.cc (Vcrash_dumps_octave_core): Fix comment for this var. |
|
936 |
|
937 2000-02-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
938 |
|
939 * lex.l (handle_number): Don't transorm `[Dd]' to `e' if reading |
|
940 hex. |
|
941 |
3597
|
942 2000-02-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
943 |
|
944 * Makefile.in (install-inc): Install files in |
|
945 $(octincludedir)/octave. |
|
946 (uninstall): Remove them from the correct directory too. |
|
947 |
|
948 * defaults.h, defaults.cc (Vlocal_ver_arch_lib_dir): New variable. |
|
949 * defaults.cc (set_default_local_ver_arch_lib_dir): New function. |
|
950 (install_defaults): Call it. |
|
951 (exec_path): Prepend the versioned form of the local arch lib |
|
952 directory to the standard path. |
|
953 * defaults.h.in (OCTAVE_LOCALVERARCHLIBDIR, |
|
954 OCTAVE_LOCALVERFCNFILEDIR, OCTAVE_LOCALVEROCTFILEDIR): |
|
955 Substitute these too. |
|
956 * toplev.cc (Foctave_config_info): Add them to the struct. |
|
957 |
3591
|
958 2000-02-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
959 |
3597
|
960 * toplev.cc (Foctave_config_info): Add MKOCTFILE_INCFLAGS to the |
|
961 struct. |
3591
|
962 * oct-conf.h.in (OCTAVE_CONF_MKOCTFILE_INCFLAGS): Define. |
|
963 |
3584
|
964 2000-02-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
965 |
3587
|
966 * DLD-FUNCTIONS/balance.cc (Fbalance): Explicitly request |
|
967 conversion from Matrix to ComplexMatrix. |
|
968 * DLD-FUNCTIONS/qz.cc (Fqz): Likewise. |
|
969 |
|
970 * ov-re-mat.h (octave_matrix::complex_matrix_value): Explicitly |
|
971 request conversion from Matrix type. |
|
972 |
|
973 * ov-ch-mat.h (octave_char_matrix::matrix_value): Explicitly |
|
974 request conversion from charMatrix type. |
|
975 (octave_char_matrix::complex_matrix_value): Likewise. |
|
976 * ov-bool-mat.h (octave_bool_matrix::matrix_value): Likewise. |
|
977 (octave_bool_matrix::complex_matrix_value): Likewise. |
|
978 |
|
979 * ov-range.h (octave_range::complex_matrix_value): Explicitly |
|
980 request conversion from Matrix type. |
|
981 |
|
982 * ov-cx-mat.h, ov-re-mat.h: Explicitly request conversions from |
|
983 diagonal matrix types in constructors. |
|
984 |
3586
|
985 * mappers.cc (ximag, xreal): Return double, not Complex. |
|
986 |
3585
|
987 * error.cc (panic): Turn off buffering of error messages. |
|
988 Don't call flush_octave_stdout here, verror will do it for us. |
|
989 (verror): Don't call flush_octave_stdout if buffering error messages. |
|
990 |
3584
|
991 * pt-except.cc (tree_try_catch_command::eval): Only restore |
|
992 buffer_error_message value (by running the unwind_protect element |
|
993 for it) if it has been saved. |
|
994 |
|
995 * help.cc (Ftype): Return value if nargout is NOT equal to zero. |
|
996 Delete unnecessary unwind_protect::begin_frame(). |
|
997 |
|
998 * toplev.cc (octave_config_info): Stuff lots of new config info in |
|
999 the struct. |
|
1000 |
|
1001 * oct-conf.h.in: Delete TARGET_HOST_TYPE. |
|
1002 |
3574
|
1003 2000-02-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1004 |
3579
|
1005 * siglist.c: Include <signal.h>. |
|
1006 |
3575
|
1007 * lex.l (is_plot_keyword): Add minimum match length in call to |
|
1008 almost_match. |
|
1009 |
3574
|
1010 * Makefile.in (%.df : %.cc): Don't pass -c to compiler. |
|
1011 |
3564
|
1012 2000-02-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1013 |
3572
|
1014 * ov-base-mat.cc: Include pr-output.h here. |
|
1015 |
3571
|
1016 * DLD-FUNCTIONS/rand.cc (curr_rand_dist): Return const char * |
|
1017 instead of char *. |
|
1018 |
3570
|
1019 * oct-fstrm.cc (octave_fstream::seek, octave_fstream::tell): |
|
1020 Call pubseekoff instead of seekoff. |
|
1021 |
3568
|
1022 * DLD-FUNCTIONS/dassl.cc (print_dassl_option_list): Use stream |
|
1023 manipulators instead of GNU iostream-specific form function. |
|
1024 * DLD-FUNCTIONS/fsolve.cc (print_fsolve_option_list): Ditto. |
|
1025 * DLD-FUNCTIONS/lsode.cc (print_lsode_option_list): Ditto. |
|
1026 * DLD-FUNCTIONS/quad.cc (print_quad_option_list): Ditto. |
|
1027 * pr-output.cc (pr_scale_header): Ditto. |
|
1028 |
3566
|
1029 * sighandlers.h: Include signal.h here. |
|
1030 * sighandlers.cc: Not here. |
|
1031 |
|
1032 * utils.cc: Include setjmp.h, not csetjmp. |
|
1033 * toplev.cc: Ditto. |
|
1034 |
|
1035 * sighandlers.cc: Include signal.h, not csignal. |
|
1036 |
|
1037 * pt-plot.h: Don't include csignal. |
|
1038 * toplev.cc: Ditto. |
|
1039 * oct-hist.cc: Ditto. |
|
1040 * octave.cc: Ditto. |
|
1041 * pager.cc: Ditto. |
|
1042 * input.cc: Ditto. |
|
1043 * help.cc: Ditto. |
|
1044 |
3565
|
1045 * pt-plot.cc (send_to_plot_stream): Use operator== and substr |
|
1046 method to do limited-length string comparison. |
|
1047 * input.cc (generate_completion): Likewise. |
|
1048 * ov-dld-fcn.cc (octave_dld_function::octave_dld_function): Likewise. |
|
1049 * ov-usr-fcn.cc (octave_user_function::mark_as_system_fcn_file): |
|
1050 Likewise. |
|
1051 |
|
1052 * utils.cc (check_preference): Expect exact string matches. |
|
1053 * variables.cc (ignore_function_time_stamp): Likewise. |
|
1054 * lex.l (whitespace_in_literal_matrix): Likewise. |
|
1055 |
3564
|
1056 * mappers.cc (xconj, ximag, xreal): New functions. Use them in |
|
1057 DEFUN_MAPPER calls. |
|
1058 |
|
1059 * defun-int.h (DEFUN_MAPPER_INTERNAL): Cast function pointer args |
|
1060 to octave_mapper constructor. |
|
1061 |
3523
|
1062 2000-02-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1063 |
3564
|
1064 * procstream.cc (procstreambase::procstreambase, |
|
1065 procstreambase::open, procstreambase::close): |
|
1066 Call std::ios::setstate, not set. |
|
1067 |
3561
|
1068 * lex.l (plot_axes_token): Declare plot_axes as const char *. |
|
1069 Declare tmp const char **. |
|
1070 |
3560
|
1071 * oct-procbuf.h: Include fstream, not streambuf.h. |
|
1072 |
3570
|
1073 * load-save.cc (Fsave): Call pubseekoff instead of seekoff. |
3558
|
1074 * oct-strstrm.cc (octave_base_strstream::tell): Likewise. |
|
1075 (octave_base_strstream::seek): Likewise. |
|
1076 |
3553
|
1077 * oct-stream.cc (octave_base_stream::read): Rename count to char_count. |
|
1078 (octave_base_stream::do_gets): Likewise. |
|
1079 |
|
1080 * octave-stream.cc (octave_base_stream::write): Rename flt_fmt to ffmt. |
|
1081 (octave_base_stream::read): Likewise. |
|
1082 |
3552
|
1083 * TEMPLATE-INST/SLStack-sym.cc: Delete meaningless `extern |
|
1084 template' declarations. |
|
1085 * TEMPLATE-INST/Array-tc.cc: Ditto. |
|
1086 |
|
1087 * TEMPLATE-INST/Map-fnc.cc: Don't try to instantiate goodCHptr or |
|
1088 CHptr_to_index here. |
|
1089 * TEMPLATE-INST/Map-tc.cc: Likewise. |
3554
|
1090 * Map.h (CHNode::goodCHptr, CHNode::CHptr_to_index): Now member |
|
1091 functions. Change all callers. |
3552
|
1092 |
|
1093 * load-save.cc (read_binary_file_header): Declare magic_len `const'. |
|
1094 |
|
1095 * token.h (token::token (const token&), token::operator=): |
|
1096 Delete unnecessary definitions. |
|
1097 |
|
1098 * oct-stream.cc (octave_stream::mode_as_string): Use |
|
1099 std::ios::binary, not std::ios::bin. |
|
1100 * load-save.cc (Fsave, Fload, save_user_variables): Likewise. |
|
1101 |
3550
|
1102 * DLD-FUNCTIONS/qz.cc (Fqz): Use Array<int> class instead of |
|
1103 trying to create automatic int array with variable size. |
|
1104 |
3548
|
1105 * variables.cc (F__dump_symbol_info__): Fix continuation char. |
3552
|
1106 * mappers.cc (Ftoupper): Likewise. |
3548
|
1107 * DLD-FUNCTIONS/besselj.cc (Fairy, Fbesselj): Likewise. |
|
1108 * DLD-FUNCTIONS/chol.cc (Fchol): Likewise. |
|
1109 * DLD-FUNCTIONS/det.cc (Fdet): Likewise. |
|
1110 * DLD-FUNCTIONS/eig.cc (Feig): Likewise. |
|
1111 * DLD-FUNCTIONS/gammainc.cc (gammainc): Likewise. |
|
1112 * DLD-FUNCTIONS/givens.cc (givens): Likewise. |
|
1113 * DLD-FUNCTIONS/hess.cc (hess): Likewise. |
|
1114 * DLD-FUNCTIONS/inv.cc (inv): Likewise. |
|
1115 * DLD-FUNCTIONS/log.cc (logm): Likewise. |
|
1116 * DLD-FUNCTIONS/lu.cc (lu): Likewise. |
|
1117 * DLD-FUNCTIONS/qr.cc (qr): Likewise. |
|
1118 * DLD-FUNCTIONS/schur.cc (schur): Likewise. |
|
1119 * DLD-FUNCTIONS/balance.cc (balance): Likewise. |
|
1120 * DLD-FUNCTIONS/svd.cc (svd): Likewise. |
|
1121 * DLD-FUNCTIONS/syl.cc (syl): Likewise. |
|
1122 * DLD-FUNCTIONS/expm.cc (Fexpm): Likewise. |
|
1123 |
|
1124 * token.h (token::token_type, token::end_tok_type, |
|
1125 token::plot_tok_type): Delete extraneous comma from enum decls. |
3552
|
1126 * load-save.cc (load_save_format): Likewise. |
3548
|
1127 |
3546
|
1128 * pt-idx.cc (tree_index_expression::tree_index_expression): |
|
1129 Delete default arg values. |
3552
|
1130 * oct-fstrm.cc (octave_fstream::octave_fstream): Likewise. |
|
1131 * oct-stream.cc (octave_stream::octave_stream): Likewise. |
3546
|
1132 |
|
1133 * siglist.h, siglist.c: New files. |
|
1134 * Makefile.in: Add them to the appropriate lists. |
|
1135 * siglist.c (sys_siglist): Move definition here from sighandlers.cc. |
|
1136 * siglist.h (sys_siglist): Move declaration here from sighandlers.h. |
|
1137 |
3545
|
1138 * ov.h, ov-bool.h, ov-bool-mat.h (bool_matrix_value): |
|
1139 Delete unnecessary arg. |
|
1140 |
3544
|
1141 * ov.h (octave_value::do_multi_index_op): Rename from do_index_op. |
|
1142 |
|
1143 * ov-fcn.h (octave_function::is_system_fcn_file): Now const. |
|
1144 |
3529
|
1145 * Map.cc (index_to_CHptr): Now a macro. |
3530
|
1146 (CHMap<C>::hash): Now a member function. |
3529
|
1147 |
3528
|
1148 * defun-int.h (UNDERSCORIFY): New macro. |
|
1149 (DEFCONST_INTERNAL, DEFCONSTX_INTERNAL): Use it. |
|
1150 |
3526
|
1151 * data.cc (Fis_list): Fix continuation char. |
3532
|
1152 * defaults.cc (IMAGEPATH): Likewise. |
3526
|
1153 |
|
1154 * Map.cc (CHptr_to_index, goodCHptr): Delete static decl. |
|
1155 |
3525
|
1156 * ov.h (unary_op, binary_op, assign_op): Prepend `op_' to elts. |
|
1157 Change all usses |
|
1158 |
3523
|
1159 * All source files: Sprinkle with std:: qualifier as needed. |
|
1160 |
3503
|
1161 2000-01-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1162 |
|
1163 * sighandlers.cc (install_signal_handlers): Add std:: qualifier |
|
1164 for set_net_handler. |
|
1165 |
|
1166 * All source files: Include iostream, fstream, strstream, |
|
1167 etc. as needed instead of using forward declarations for these |
|
1168 classes. |
|
1169 |
3498
|
1170 2000-01-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1171 |
|
1172 * input.cc (input_event_hook, Finput_event_hook): New functions. |
|
1173 (hook_fcn, user_data): New static variables. |
|
1174 |
3489
|
1175 2000-01-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1176 |
3491
|
1177 * pt-except.cc (do_catch_code): Don't do anything special for |
|
1178 tree_return_command::returning, or tree_break_command::breaking. |
|
1179 |
|
1180 * error.cc (vwarning): New function. |
|
1181 (warning): Use it instead of calling verror. |
|
1182 |
|
1183 * oct-stream.cc (octave_base_stream::oscanf): |
|
1184 Result is now always nconv+1 elements. Return count of successful |
|
1185 conversions in last element. |
|
1186 * file-io.cc (Ffscanf, Fsscanf, Fscanf): Fix doc string. |
|
1187 |
3490
|
1188 * pt-except.cc (do_catch_code): Unwind-protect buffer_error_messages. |
|
1189 Be sure to run all unwind-protects before returning. |
|
1190 (tree_try_catch_command::eval): Add do_catch_code cleanup function |
|
1191 to unwind-protect stack before resetting buffer_error_messages. |
|
1192 Use unwind-protect to save and restore buffer_error_messages. |
|
1193 If there is no catch code, discard the cleanup function and run |
|
1194 the unwind-protect for buffer_error_messages. |
|
1195 |
|
1196 * error.cc (bind_global_error_variable): Avoid dereferencing |
|
1197 error_message_buffer if it is NULL. |
|
1198 |
3489
|
1199 * parse.y (evaluating_function_body): New global flag. |
|
1200 * ov-usr-fcn.cc (octave_user_function::do_index_op): |
|
1201 Protect and set it here. |
|
1202 * parse.y (make_break_command, make_return_command): Check it here. |
|
1203 |
|
1204 * error.cc (warning_state): New global flag. |
|
1205 (warning): Set it here. |
|
1206 * lex.l (reset_parser): Clear it here. |
|
1207 * parse.y (fold): Check it here. |
|
1208 |
3484
|
1209 2000-01-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1210 |
3485
|
1211 * pt-walk.h (tree_walker::visit_do_until_command): New pure virtual. |
|
1212 * pt-pr-code.cc (tree_print_code::visit_do_until_command): |
3484
|
1213 New function. |
3485
|
1214 * pt-loop.h (tree_do_until_command): New class. |
3484
|
1215 (tree_while_command::expr, tree_while_command::list): |
|
1216 Now protected instead of private. |
3485
|
1217 * parse.y (make_do_until_command): New function. |
|
1218 (loop_command): Recognize do-until statement. |
3484
|
1219 (DO, UNTIL): New tokens. |
|
1220 |
|
1221 * input.cc (match_sans_spaces): Require non-blank part of test |
|
1222 string to match standard string exactly. |
|
1223 |
3483
|
1224 2000-01-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1225 |
|
1226 * oct-stream.h (scanf_format_elt::char_class): New struct elt. |
|
1227 Add arg to constructor. |
|
1228 (scanf_format_elt::special_conversion): New enum. |
|
1229 * oct-stream.cc (scanf_format_list::add_elt_to_list): New arg, |
|
1230 char_class. Pass it to scanf_format_elt constructor. |
|
1231 (scanf_format_list::scanf_format_list): Create separate list |
|
1232 elements for whitespace and literal conversions. |
|
1233 (expand_char_class): New function. |
|
1234 (scanf_format_list::finish_conversion): Extract character class |
|
1235 (not including the delimiting brackets) and expand the list of |
|
1236 characters. Pass the result to add_elt_to_list. |
|
1237 (scanf_format_list::all_character_conversions): Also accept '^', |
|
1238 scanf_format_elt::literal_conversion, and |
|
1239 scanf_format_elt::whitespace_conversion types too. |
|
1240 (DO_WHITESPACE_CONVERSION, BEGIN_CHAR_CLASS_CONVERSION, |
|
1241 BEGIN_C_CONVERSION, BEGIN_S_CONVERSION, DO_LITERAL_CONVERSION): |
|
1242 New macros. |
|
1243 (octave_base_stream::do_scanf, octave_base_stream::do_oscanf): |
|
1244 Use them to avoid code duplication. |
|
1245 Handle whitespace, literal text, and character class conversions. |
|
1246 (octave_base_stream::oscanf): Loop over all format list elements, |
|
1247 not just the first nconv elements. Clear status flags on is for |
|
1248 all streams. |
|
1249 |
3476
|
1250 2000-01-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1251 |
3480
|
1252 * xdiv.cc (result_ok): Just check value of info. |
|
1253 (solve_singularity_warning): New function. |
|
1254 (xleftdiv, xdiv): Pass pointer to solve_singularity_warning to |
|
1255 solve function. |
|
1256 |
|
1257 * lex.l (handle_identifier): Set next_tok_is_eq if we are looking |
|
1258 at `=', but not if we are looking at `=='. |
|
1259 |
3478
|
1260 * pt-pr-code.cc (tree_print_code::visit_unwind_protect_command): |
|
1261 Print `unwind_protect_cleanup', not `cleanup_code'. |
|
1262 |
3477
|
1263 * pager.cc (octave_pager_buf::flush_current_contents_to_diary): |
|
1264 New function. |
|
1265 (octave_pager_stream::flush_current_contents_to_diary): |
|
1266 Ditto. |
|
1267 (close_diary_file): Use the new octave_pager_stream function to |
|
1268 try to flush the current buffer to the diary when it is closed. |
|
1269 |
3476
|
1270 * variables.cc (Fexist): Return 6 for built-in constants. |
|
1271 |
|
1272 * pt-plot.cc (Fgshow): Don't append " " after last arg. |
|
1273 (Fgset): Likewise. |
|
1274 |
3472
|
1275 2000-01-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1276 |
|
1277 * ov-base-mat.h (octave_base_matrix::length): Return 0 for empty |
|
1278 arrays. |
|
1279 |
3465
|
1280 2000-01-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1281 |
|
1282 * DLD-FUNCTIONS/time.cc (Fstrptime): New function. |
|
1283 |
|
1284 * load-save.cc (Fsave): Add missing else. |
|
1285 |
3442
|
1286 2000-01-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1287 |
3444
|
1288 * DLD-FUNCTIONS/gammainc.cc (Fgammainc): Texinfoize doc string. |
3445
|
1289 * ov-typeinfo.cc (Ftypeinfo): Ditto. |
3446
|
1290 * parse.y (Vwarn_future_time_stamp): Ditto. |
|
1291 * DLD-FUNCTIONS/minmax.cc (Fmax, Fmin): Ditto. |
3445
|
1292 * ov-usr-fcn.cc (Fva_arg, Fva_start, Fvr_val): Ditto. |
3446
|
1293 * defaults.cc (VOCTAVE_HOME, Frehash): Ditto. |
|
1294 * toplev.cc (Fwarranty, Fcasesen): Ditto. |
|
1295 * utils.cc (Fdo_string_escapes, Ffile_in_loadpath): Ditto. |
|
1296 * variables.cc (F__dump_symtab_info__, F__dump_symbol_info__): Ditto. |
3447
|
1297 * ov-list.cc (Flist, Fappend, Fnth, Freverse, Fsplice): Ditto. |
3448
|
1298 * input.cc (Fread_readline_init_file): Ditto. |
|
1299 * file-io.cc (Fis_stream): Ditto. |
|
1300 * ov-cell.cc (Fiscell, Fcell): Ditto. |
|
1301 * pt-assign.cc (Vprint_rhs_assign_val): Ditto. |
|
1302 * pt-decl.cc (Vinitialize_global_variables): Ditto. |
|
1303 * symtab.cc (Vvariables_can_hide_functions): Ditto. |
3443
|
1304 |
3442
|
1305 * pt-plot.cc (Fgraw, Fgset, Fgshow, Vgnuplot_command_plot, |
|
1306 Vgnuplot_command_replot, Vgnuplot_command_splot, |
|
1307 Vgnuplot_command_using, Vgnuplot_command_with, |
|
1308 Vgnuplot_command_axes, Vgnuplot_command_title, |
|
1309 Vgnuplot_command_end): Texinfoize doc strings. |
|
1310 |
3447
|
1311 * oct-procbuf.cc (__kluge_procbuf_delay__): Rename from |
|
1312 kluge_procbuf_delay. Texinfoize doc string. |
|
1313 |
3427
|
1314 2000-01-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1315 |
|
1316 * parse.y (gobble_leading_whitespace): Discard first space character |
|
1317 after consecutive comment characters. |
|
1318 * lex.l (grab_help_text): Ditto. |
|
1319 |
3428
|
1320 * lex.l (Vwhitespace_in_literal_matrix, Vwarn_separator_insert, |
|
1321 Vwarn_single_quote_string): Texinfoize doc string. |
|
1322 |
3418
|
1323 2000-01-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1324 |
3419
|
1325 * ov.h, ov.cc (octave_value::column_vector_value, |
|
1326 octave_value::row_vector_value, |
|
1327 octave_value::complex_column_vector_value, |
|
1328 octave_value::complex_row_vector_value): New functions. |
|
1329 (octave_value::vector_value): Now returns Array<double>. |
|
1330 (octave_value::complex_vector_value): Now returns Array<Complex>. |
|
1331 Sprinkle conversions where necessary. |
|
1332 |
3418
|
1333 * ov.cc (Vprefer_column_vectors): Now static. |
|
1334 * ov.h (octave_value (const ComplexRowVector&), |
|
1335 octave_value (const ComplexColumnVector&), |
|
1336 octave_value (const RowVector&), octave_value (const ColumnVector&)): |
|
1337 Delete second arg. Change all callers. |
3419
|
1338 |
3418
|
1339 * oct-obj.h (octave_value_list (const RowVector&), |
|
1340 octave_value_list (const ColumnVector&), |
|
1341 octave_value_list (const ComplexRowVector&), |
|
1342 octave_value_list (const ComplexColumnVector&)): Likewise. |
|
1343 * ov-cx-mat.h, ov-cx-mat.cc |
|
1344 (octave_complex_matrix (const ComplexRowVector&), |
|
1345 (octave_complex_matrix (const ComplexColumnVector&)): |
|
1346 Delete second arg, simply create object with orientation |
|
1347 corresponding to vector arg. Move constructors to class decl. |
|
1348 * ov-re-mat.h, ov-re-mat.cc (octave_matrix (const RowVector&), |
|
1349 (octave_matrix (const ColumnVector&)): |
|
1350 Delete second arg, simply create object with orientation |
|
1351 corresponding to vector arg. Move constructors to class decl. |
|
1352 |
3411
|
1353 2000-01-07 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
1354 |
|
1355 * mappers.cc (Fconj, Ferf, Ferfc, Fgamma, Fimag, Flgamma, Flog10, |
|
1356 Freal, Fround): Add @seealso{...} to doc strings. |
|
1357 |
3408
|
1358 2000-01-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1359 |
3410
|
1360 * oct-stream.cc (do_scanf): Do the right thing again for character |
|
1361 conversions. |
|
1362 |
3408
|
1363 * help.cc (display_help_text): Also strip out leading spaces |
|
1364 before Texinfo @-commands before sending doc string to makeinfo. |
|
1365 (display_help_text): Improve format of `See also' string. |
|
1366 |
3405
|
1367 2000-01-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1368 |
|
1369 * help.cc (display_help_text): Pass a definition for @seealso |
|
1370 through the filter. |
|
1371 |
3400
|
1372 1999-12-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1373 |
|
1374 * lex.l (Vwarn_single_quote_string): New variable. |
|
1375 (syms_of_lex): DEFVAR it. |
|
1376 (warn_single_quote_string): New function. |
|
1377 (gripe_single_quote_string): New function. |
|
1378 Use new stuff to allow warnings for code that uses single quote |
|
1379 characters to introduce string constants. |
|
1380 |
3399
|
1381 1999-12-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1382 |
|
1383 * mkbuiltins: Add #undef quad to generated file. |
|
1384 |
3388
|
1385 1999-12-15 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1386 |
|
1387 * lex.l (Vwarn_separator_insert): New variable. |
|
1388 (syms_of_lex): DEFVAR it. |
|
1389 (warn_separator_insert): New function. |
|
1390 (maybe_warn_separator_insert): New function. |
|
1391 Use new stuff to allow warnings for code that might result in |
|
1392 auto-insertion of commas or semicolons, depending on the value of |
|
1393 whitespace_in_literal_matrix. |
|
1394 |
|
1395 * parse.y (Fsource): Record function file name here too. |
|
1396 |
3377
|
1397 1999-12-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1398 |
|
1399 * variables.cc (link_to_global_variable): If the local symbol is |
|
1400 not a variable, don't bother to clear it. Instead, just redefine |
|
1401 it by aliasing to the global symbol. |
|
1402 |
3372
|
1403 1999-11-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1404 |
3373
|
1405 * DLD-FUNCTIONS/balance.cc (Fbalance): Texinfoize doc string. |
|
1406 * DLD-FUNCTIONS/det.cc (Fdet): Ditto. |
|
1407 * DLD-FUNCTIONS/eig.cc (Feig): Ditto. |
|
1408 * DLD-FUNCTIONS/givens.cc (Fgivens): Ditto. |
|
1409 * DLD-FUNCTIONS/inv.cc (Finv): Ditto. |
|
1410 * DLD-FUNCTIONS/chol.cc (Fchol): Ditto. |
|
1411 * DLD-FUNCTIONS/hess.cc (Fhess): Ditto. |
|
1412 * DLD-FUNCTIONS/lu.cc (Flu): Ditto. |
|
1413 * DLD-FUNCTIONS/qr.cc (Fqr): Ditto. |
|
1414 * DLD-FUNCTIONS/schur.cc (Fschur): Ditto. |
|
1415 * DLD-FUNCTIONS/svd.cc (Fsvd): Ditto. |
|
1416 * DLD-FUNCTIONS/expm.cc (Fexpm): Ditto. |
|
1417 * DLD-FUNCTIONS/log.cc (Flogm, Fsqrtm): Ditto. |
|
1418 * DLD-FUNCTIONS/syl.cc (Fsyl): Ditto. |
|
1419 * DLD-FUNCTIONS/pinv.cc (Fpinv): Ditto. |
|
1420 * DLD-FUNCTIONS/qz.cc (Fqz): Ditto. |
|
1421 * DLD-FUNCTIONS/dassl.cc (Fdassl, Fdassl_options): Ditto. |
|
1422 * DLD-FUNCTIONS/lsode.cc (Flsode, Flsode_options): Ditto. |
|
1423 * data.cc (Flength, Fsize, Fisempty): Ditto. |
3372
|
1424 * sysdep.cc (Fkbhit): Ditto. |
|
1425 * input.cc (Fkeyboard, Finput): Ditto. |
|
1426 * variables.cc (ans): Ditto. |
|
1427 * pr-output.cc (Fdisp, Fformat): Ditto. |
|
1428 * ov.cc (Vprint_answer_id_name): Ditto. |
3373
|
1429 * defaults.cc (IMAGEPATH): Ditto. |
|
1430 * error.cc (Ferror, Fwarning, Fusage, error_text, beep_on_error): |
|
1431 Ditto. |
3372
|
1432 * load-save.cc (Fload, Fsave, Vdefault_save_format, |
|
1433 Vsave_precision): Ditto. |
|
1434 * file-io.cc (Ffflush, Ffopen, Ffclose, Ffputs, Ffgetl, Ffgets, |
|
1435 Ffprintf, Fsprintf, Fscanf, Ffscanf, Fsscanf, Ffread, Ffwrite, |
|
1436 Ffseek, Fftell, Ffeof, Fferror, Ffreport, Ftmpnam, Vstdin_file, |
|
1437 Vstdout_file, Vstderr_file, SEEK_SET, SEEK_CUR, SEEK_END): Ditto. |
|
1438 * pager.cc (Vpager_binary, Vpage_output_immediately, |
|
1439 Vpage_screen_output, Fmore): Ditto. |
|
1440 |
3369
|
1441 1999-11-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1442 |
|
1443 * utils.cc (Vtreat_neg_dim_as_zero): Texinfoize doc string. |
|
1444 * DLD-FUNCTIONS/find.cc (Ffind): Ditto. |
|
1445 * DLD-FUNCTIONS/rand.cc (Frand, Frandn): Ditto. |
|
1446 * DLD-FUNCTIONS/sort.cc (Fsort): Ditto. |
|
1447 * mappers.cc (Fisinf, Fisnan, Ffinite): Ditto. |
|
1448 * data.cc (Fall, Fany, Fdiag, Fones, Fzeros, Feye, Flinspace): Ditto. |
3371
|
1449 * defaults.cc (Vloadpath, Vdefault_loadpath): Ditto. |
|
1450 * parse.y (Feval, Ffeval, Vdefault_eval_print_flag, |
|
1451 Vwarn_missing_semicolon, Vwarn_function_name_clash, Fsource): Ditto. |
|
1452 * ov-usr-fcn.cc (Vmax_recursion_depth, Vdefault_return_value, |
|
1453 Vdefine_all_return_values, Vreturn_last_computed_value): Ditto. |
|
1454 * ov.cc (Vok_to_lose_imaginary_part, Vdo_fortran_indexing, |
|
1455 Vprefer_column_vectors, Vresize_on_range_error, |
|
1456 Vwarn_divide_by_zero): Ditto. |
|
1457 * pt-stmt.cc (Vsilent_functions): Ditto. |
|
1458 * variables.cc (Vignore_function_time_stamp): Ditto. |
|
1459 * dynamic-ld.cc (Vwarn_reload_forces_clear): Ditto. |
3369
|
1460 |
3367
|
1461 1999-11-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1462 |
3368
|
1463 * DLD-FUNCTIONS/fft.cc (Ffft): Texinfoize doc string. |
|
1464 * DLD-FUNCTIONS/ifft.cc (Fifft): Ditto. |
|
1465 * DLD-FUNCTIONS/fft2.cc (Ffft2): Ditto. |
|
1466 * DLD-FUNCTIONS/ifft2.cc (Fifft2): Ditto. |
|
1467 * DLD-FUNCTIONS/filter.cc (Ffilter): Ditto. |
|
1468 * DLD-FUNCTIONS/quad.cc (Fquad, Fquad_options): Ditto. |
|
1469 * DLD-FUNCTIONS/colloc.cc (Fcolloc): Ditto. |
|
1470 * DLD-FUNCTIONS/fsolve.cc (Ffsolve, Ffsolve_options): Ditto. |
|
1471 * defaults.cc (Veditor): Ditto. |
|
1472 * pt-plot.cc (Vautomatic_replot, Vgnuplot_binary, |
|
1473 Vgnuplot_has_frames, Vgnuplot_has_multiplot, Fclearplot, |
|
1474 Fcloseplot, Fpurge_tmp_files, Fishold, Fhold): |
3367
|
1475 |
|
1476 * Makefile.in (parse.cc): Expect 11 shift/reduce conflicts now. |
|
1477 |
3361
|
1478 1999-11-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1479 |
3366
|
1480 * parse.y (Vwarn_assign_as_truth_value, Vwarn_variable_switch_label): |
|
1481 Texinfoize doc strings. |
|
1482 |
3365
|
1483 * DLD-FUNCTIONS/pinv.cc (Fpinv): Texinfoize doc string. |
|
1484 |
3364
|
1485 * defun-int.h (DEFUN_DLD_INTERNAL): New macro. |
|
1486 * defun-dld.h [MAKE_BUILTINS] (DEFUN_DLD): Simply expand to |
|
1487 DEFUN_DLD_INTERNAL. |
|
1488 * mkbuiltins: Generate code to define DEFUN_DLD_INTERNAL. |
|
1489 * mkgendoc: Likewise. |
|
1490 |
3363
|
1491 * Makefile.in (gendoc.o): Don't optimize when creating gendoc. |
3364
|
1492 (%.dc : %.cc): Delete rule. |
3363
|
1493 |
3361
|
1494 * pt-decl.cc (Vdefault_global_variable_value): Texinofize doc string. |
|
1495 * variables.cc (Fclear, Fdocument, Fexist, Fis_global, Fwho): Ditto. |
|
1496 * help.cc (Ftype, Fwhich): Ditto. |
|
1497 * ov.cc (Vstruct_levels_to_print, Vimplicit_str_to_num_ok): Ditto. |
|
1498 * data.cc (Fis_struct, Fstruct_elements, Fstruct_constains): Ditto. |
|
1499 * strfns.cc (Fisstr, Fsetstr): Ditto. |
|
1500 * pt-mat.cc: (Fimplicit_num_to_str_ok, Fstring_fill_char): Ditto. |
|
1501 * utils.cc (Fundo_string_escapes): Ditto. |
|
1502 * mappers.cc: (Fisalnum, Fisalpha, Fisascii, Fiscntrl, Fisdigit, |
|
1503 Fisgraph, Fislower, Fisprint, Fispunct, Fisspace, Fisupper, |
|
1504 Fisxdigit, Ftoascii, Ftolower, Ftoupper): Ditto. |
|
1505 |
3357
|
1506 1999-11-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1507 |
3360
|
1508 * syscalls.cc (symbols_of_syscalls): Use DEFCONSTX to define |
|
1509 Octave constants for C macros like O_WRONLY. |
|
1510 |
3357
|
1511 * oct-lvalue.cc (octave_lvalue::set_index): Disallow expressions |
|
1512 like x(i)(j) = rhs. |
|
1513 |
3355
|
1514 1999-11-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1515 |
3356
|
1516 * symtab.cc (symbol_record::type_as_string): New function. |
3355
|
1517 |
|
1518 * symtab.cc (symbol_record::which): New functions. |
|
1519 * help.cc (do_which): New functions. |
|
1520 (Fwhich): Use them. |
|
1521 |
|
1522 * help.cc (help_from_symbol_table, help_from_file): New functions. |
|
1523 (builtin_help): Use them. |
|
1524 |
|
1525 * help.cc (do_type): New function. |
3356
|
1526 (symbol_record::type): New function. |
3355
|
1527 (Ftype): Use them. |
|
1528 |
|
1529 * help.cc (print_symbol_type): Delete. |
|
1530 |
|
1531 * symtab.cc (symbol_table::name_list): Delete count arg. |
|
1532 (symbol_table::symbol_list): Likewise. |
|
1533 (symbol_table::glob): Likewise. Also return Array<symbol_record *> |
|
1534 instead of symbol_record **. |
|
1535 Change all callers. |
|
1536 * help.cc (names, display_symtab_names): Delete count arg. |
|
1537 |
|
1538 * help.cc (print_symbol_type, Ftype): No longer need to look up |
|
1539 fcn_file_name in the loadpath. |
|
1540 |
|
1541 * help.cc (print_symbol_type): Handle dld functions. |
|
1542 (help_from_symbol_table, help_from_file): New functions. |
|
1543 (builtin_help): Use them. |
|
1544 |
3354
|
1545 1999-11-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1546 |
|
1547 * ov-cell.cc (Fiscell, Fcell): New Functions. |
|
1548 (octave_cell::do_index_op): New function. |
|
1549 |
|
1550 * utils.cc (get_dimensions): Move here from data.cc and make extern. |
|
1551 (Vtreat_neg_dim_as_zero, treat_neg_dim_as_zero): Likewise. |
|
1552 (symbols_of_utils): New function. |
|
1553 |
|
1554 * data.cc (fill_matrix (const octave_value_list&, double, |
|
1555 const char*)): New function. |
|
1556 (Fones, Fzeros): Use it to avoid some code duplication. |
|
1557 |
3352
|
1558 1999-11-15 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1559 |
|
1560 * pt-cell.h, pt-cell.cc, ov-cell.h, ov-cell.cc, Cell.h, Cell.cc: |
|
1561 New files. |
|
1562 * Makefile.in: Add them to the appropriate lists. |
|
1563 * pt-walk.h (visit_cell (tree_cell&): New pure virtual. |
|
1564 * pt-pr-code.cc (tree_print_code::visit_cell (tree_cell&)): New |
|
1565 function. |
|
1566 * TEMPLATE-INST/Array-tc.cc: Instantiate 2D arrays of octave_value |
|
1567 objects. |
|
1568 * pt-all.h: Include pt-cell.h. |
|
1569 * ov.h, ov.cc (octave_value::is_cell, octave_value::cell_value): |
|
1570 New functions. |
|
1571 * ov-base.h, ov-base.cc (octave_value::is_cell, |
|
1572 octave_value::cell_value): Provide defaults. |
|
1573 * lex.h, lex.l: Handle `{' and `}' tokens (for cell arrays). |
|
1574 (bracketflag): Rename from braceflag. |
|
1575 (handle_close_bracket): Rename from handle_close_brace. |
|
1576 (class bracket_brace_paren_nesting_level): Rename from |
|
1577 brace_paren_nesting_level. |
|
1578 (bracket_brace_paren_nesting_level::bracket, |
|
1579 bracket_brace_paren_nesting_level::is_bracket): New functions to |
|
1580 keep count of nesting level for `[' and `]'. |
|
1581 (bracket_brace_paren_nesting_level::brace, |
|
1582 bracket_brace_paren_nesting_level::is_brace): Now keeps count of |
|
1583 nesting level for `{' and `}'. |
|
1584 * parse.y (tree_cell_type): New type. |
|
1585 Give '{' the same precedence and associativity as '(' and '.' |
|
1586 (matrix_rows, matrix_rows1): Rename from rows, rows1. |
|
1587 (cell, cell_rows, cell_rows1): New non-terminals. |
|
1588 (cell_or_matrix_row): Rename from matrix_row. |
|
1589 (primary_expr): Accept cell here. |
|
1590 (postfix_expr): Allow indexing using '{' arg_list '}'. |
|
1591 (finish_cell): New function. |
|
1592 |
3350
|
1593 1999-11-12 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1594 |
|
1595 * utils.cc (jump_to_top_level): No longer declared extern "C". |
|
1596 |
|
1597 * cutils.c (octave_strcasecmp, octave_strncasecmp): New functions. |
|
1598 * utils.cc (almost_match): Call octave_strncasecmp instead of |
|
1599 calling strncasecmp directly. |
|
1600 |
3347
|
1601 1999-11-10 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1602 |
|
1603 * parse.y: Don't define warn_reload_forces_clear here. |
|
1604 |
|
1605 * Makefile.in (DISTFILES): Include DOCSTRINGS. |
|
1606 |
3340
|
1607 1999-11-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1608 |
3343
|
1609 * sighandlers.cc (install_signal_handlers): Don't install |
|
1610 sigwinch_handler. |
|
1611 |
3342
|
1612 * oct-iostrm.h (octave_istream::eof, octave_ostream::eof): Provide |
|
1613 implementation for these. |
|
1614 |
|
1615 * oct-stream.cc (octave_base_stream::do_scanf): |
|
1616 The stdin stream is only special if we are interactive. |
|
1617 (octave_base_stream::scanf): Ditto. |
|
1618 (octave_base_stream::do_oscanf): Ditto. |
|
1619 (octave_base_stream::oscanf): Ditto. |
|
1620 |
3340
|
1621 * ov.h (octave_value::is_stream): New predicate. |
|
1622 * ov-file.h (octave_file::is_stream): Return true. |
|
1623 * file-io.cc (Fis_stream): New function. |
|
1624 |
|
1625 * ov-file.h (class octave_file): stream is now an object instead |
|
1626 of pointer. |
|
1627 * ov-file.cc (octave_file::print_raw): Handle stream as object |
|
1628 instead of pointer. Also print stream status. |
|
1629 |
|
1630 * ov-base.cc (octave_base_value::stream_value): Return object |
|
1631 instead of pointer. |
|
1632 |
|
1633 * ov.cc (octave_value::stream_value): Return object instead of pointer. |
|
1634 (octave_value::octave_value (const octave_stream&)): Take const |
|
1635 reference instead of pointer arg. |
|
1636 |
|
1637 * TEMPLATE-INST/Array-os.cc: Instantiate Arrays of octave_stream |
|
1638 objects, not pointers to them. |
|
1639 |
|
1640 * OPERATORS/op-fil-b.cc: Cope with octave_stream class changes. |
|
1641 * OPERATORS/op-fil-bm.cc: Likewise. |
|
1642 * OPERATORS/op-fil-cm.cc: Likewise. |
|
1643 * OPERATORS/op-fil-cs.cc: Likewise. |
|
1644 * OPERATORS/op-fil-lis.cc: Likewise. |
|
1645 * OPERATORS/op-fil-m.cc: Likewise. |
|
1646 * OPERATORS/op-fil-rec.cc: Likewise. |
|
1647 * OPERATORS/op-fil-s.cc: Likewise. |
|
1648 * OPERATORS/op-fil-str.cc: Likewise. |
|
1649 * file-io.cc: Likewise. |
|
1650 * syscalls.cc (Fdup): Likewise. |
|
1651 |
|
1652 * oct-fstrm.cc, oct-fstrm.h, oct-iostrm.cc, oct-iostrm.h, |
|
1653 oct-prcstrm.cc, oct-prcstrm.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
1654 oct-stream.cc, oct-stream.h, oct-strstrm.cc, oct-strstrm.h: |
|
1655 Rewrite to allow octave_stream objects to be used like values |
|
1656 instead of having to use pointers. |
|
1657 |
3337
|
1658 1999-11-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1659 |
|
1660 * oct-stream.cc (octave_base_stream::do_scanf): If it looks like |
|
1661 we have a matching failure, then reset the failbit in the stream |
|
1662 state. |
|
1663 (octave_base_stream::do_oscanf): Likewise. |
|
1664 |
3332
|
1665 1999-11-02 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
1666 |
3361
|
1667 * help.cc (Fhelp): Texinfoize doc string. |
|
1668 * input.cc (Fecho, Fcompletion_matches): Ditto. |
|
1669 * oct-hist.cc (Fedit_history, Fhistory, Frun_history): Ditto. |
|
1670 * pager.cc (Fdiary): Ditto. |
|
1671 * sysdep.cc (Fclc): Ditto. |
|
1672 * toplev.cc (Fquit, Fatexit): Ditto. |
3332
|
1673 |
|
1674 1999-11-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1675 |
|
1676 * lex.l (yywrap): No longer static. |
|
1677 (have_continuation): Declare input character as int, not char, so |
|
1678 comparison to EOF will work. |
|
1679 |
3330
|
1680 1999-11-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1681 |
|
1682 * defun.cc (print_usage): Use display_help_text instead of sending |
|
1683 help message directly to octave_stdout. |
|
1684 |
3325
|
1685 1999-10-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1686 |
|
1687 * defun-dld.h (INSTALL_DLD_FCNS, INSTALL_DLD_FCN): Delete definitions. |
|
1688 * DLD-FUNCTIONS/dassl.cc: Don't use INSTALL_DLD_FCN or |
|
1689 INSTALL_DLD_FCNS macros. They are not necessary with the new code |
|
1690 in dynamic-ld.cc. |
|
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 |
|
1703 * dynamic-ld.cc, dynamic-ld.h: Major rewrite to allow reloading of |
|
1704 dynamically linked functions. |
|
1705 |
|
1706 * symtab.cc (symbol_record::replace_all_defs): Don't allow top |
|
1707 definition to be NULL. |
|
1708 (symbol_table::clear): Allow dynamically linked functions to be |
|
1709 cleared. |
|
1710 |
|
1711 * symtab.h (TYPE): New enum value, DLD_FUCTION. |
|
1712 (symbol_type): Now 8 bits wide. |
|
1713 (SYMTAB_ALL_TYPES): Include DLD_FUNCTION. |
|
1714 (symbol_record::symbol_def::is_function): Also recognize dld functions. |
|
1715 (symbol_record::symbol_def::is_dld_function): New function. |
|
1716 (symbol_record::is_dld_function): Ditto. |
|
1717 |
|
1718 * defun.cc (install_dld_function): New function. |
|
1719 * defun-int.h: Provide declaration here. |
|
1720 (octave_dld_fcn_installer): New typedef. |
|
1721 (DEFINE_FUN_INSTALLER_FUN): Installer function now takes an |
|
1722 oct_shlib object as an arg. Allow installation of a function to |
|
1723 happen more than once. |
|
1724 |
|
1725 * octave.cc (initialize_error_handlers): Call |
|
1726 set_liboctave_warning_handler here too. |
|
1727 |
|
1728 * ov-builtin.h (is_builtin_function): Return true. |
|
1729 Data member is now protected, not private. |
|
1730 |
|
1731 * ov-fcn.h (is_dynamically_loaded_function): New predicate. |
|
1732 (unload): New function. |
|
1733 Data members are now protected, not private. |
|
1734 |
|
1735 * ov.h (is_builtin_function, is_dld_function): New predicates. |
|
1736 * ov-base.h (is_builtin_function, is_dld_function): Ditto. |
|
1737 |
|
1738 * parse.y (Vwarn_reload_forces_clear): New static flag. |
|
1739 (warn_reload_forces_clear): New function. |
|
1740 (symbols_of_parse): DEFVAR warn_reload_forces_clear. |
|
1741 |
|
1742 * variables.cc (Fclear): Look for dld functions too. |
|
1743 |
3770
|
1744 * ov-dld-fcn.cc, ov-dld-fcn.h: New files. |
3325
|
1745 * Makefile.in (OV_INCLUDES, OV_SRC): Add them to the lists. |
|
1746 |
|
1747 * Makefile.in (DEFVAR_PATTERN): Also match DEFCONSTX. |
|
1748 |
3321
|
1749 1999-10-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1750 |
3325
|
1751 * DLList.h, DLList.cc: New files. |
|
1752 * Makefile.in (INCLUDES, DIST_SRC): Add them to the lists. |
|
1753 |
3323
|
1754 * DLD-FUNCTIONS/lsode.cc (Flsode): Be sure to call |
|
1755 unwind_protect::run_frame before returning. |
|
1756 * DLD-FUNCTIONS/quad.cc (Fquad): Likewise. |
|
1757 * DLD-FUNCTIONS/fsolve.cc (Ffsolve): Likewise. |
|
1758 * DLD-FUNCTIONS/dassl.cc (Fdassl): Likewise. |
|
1759 |
|
1760 * load-save.cc (read_mat_ascii_data): When reading from |
|
1761 tmp_stream, check its state, not the state of is. |
|
1762 |
|
1763 * defun-dld.h (INSTALL_DLD_FCN, INSTALL_DLD_FCNS): New macros. |
|
1764 * DLD-FUNCTIONS/dassl.cc: Use them. |
|
1765 * DLD-FUNCTIONS/lsode.cc: Ditto. |
|
1766 * DLD-FUNCTIONS/fsolve.cc: Ditto. |
|
1767 * DLD-FUNCTIONS/quad.cc: Ditto. |
|
1768 * DLD-FUNCTIONS/time.cc: Ditto. |
|
1769 * DLD-FUNCTIONS/besselj.cc: Ditto. |
|
1770 * DLD-FUNCTIONS/getgrent.cc: Ditto. |
|
1771 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
1772 * DLD-FUNCTIONS/inv.cc: Ditto. |
|
1773 * DLD-FUNCTIONS/log.cc: Ditto. |
|
1774 * DLD-FUNCTIONS/minmax.cc: Ditto. |
|
1775 * DLD-FUNCTIONS/rand.cc: Ditto. |
|
1776 |
3322
|
1777 * data.cc (Flinspace): Let linspace functions handle errors. |
|
1778 |
3321
|
1779 * mkgendoc (print_doc_string): Handle quoted names. |
|
1780 |
|
1781 * file-io.cc (symbols_of_file_io): Use DEFCONSTX for SEEK_SET, |
|
1782 SEEK_CUR, and SEEK_END. |
|
1783 |
|
1784 * defun.h (DEFCONST): Just pass name, defn, and doc to |
|
1785 DEFCONST_INTERNAL. |
|
1786 (DEFCONSTX): Likewise, pass name, defn, and doc to DEFCONSTX_INTERNAL. |
|
1787 * defun-int.h [MKBUILTINS] (DEFCONST_INTERNAL): Likewise, pass |
|
1788 name, defn, and doc to XDEFCONST_INTERNAL. |
|
1789 [MKBUILTINS] (DEFCONSTX_INTERNAL): New macro. |
|
1790 (INSTALL_CONST): New macro. |
|
1791 [! MKBUILTINS] (DEFCONST_INTERNAL): Use it to handle details here. |
|
1792 [! MKBUILTINS] (DEFCONSTX_INTERNAL): Ditto. |
|
1793 * mkgendoc: Fix definition of XDEFCONST_INTERNAL to match. |
|
1794 * mkbuiltins: Ditto. |
|
1795 |
|
1796 * mkdefs: Match spaces before BEGIN_INSTALL_BUILTIN. |
|
1797 |
|
1798 * Makefile.in (DEFUN_PATTERN): Also match DEFUN_MAPPER. |
|
1799 |
|
1800 1999-10-26 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
1801 |
|
1802 * data.cc (VI, VInf, VJ, VNaN, Ve, Veps, Vfalse, Vi, Vinf, Vj, |
|
1803 Vnan, Vpi, Vrealmax, Vrealmin): Texinfoize doc strings. |
|
1804 * mappers.cc (Fabs, Facos, Facosh, Fangle, Farg, Fasin, Fasinh, |
|
1805 Fatan, Fatanh, Fceil, Fconj, Fcos, Fcosh, Ferf, Ferfc, Fexp, |
|
1806 Ffinite, Ffix, Ffloor, Fgamma, Fimag, Flgamma, Flog, Flog10, |
|
1807 Freal, Fround, Fsign, Fsin, Fsinh, Fsqrt, Ftan, Ftanh): Ditto. |
|
1808 |
|
1809 1999-10-23 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
1810 |
3361
|
1811 * data.cc (Fis_matrix): Texinfoize doc string. |
|
1812 * ov.cc (Vpropagate_empty_matrices): Ditto. |
|
1813 * pt-mat.cc: (Vempty_list_elements_ok): Ditto. |
|
1814 * pr-output.cc (Vfixed_point_format, Voutput_max_field_width, |
|
1815 Voutput_precision, Vprint_empty_dimensions, Vsplit_long_rows): |
|
1816 Ditto. |
3321
|
1817 |
|
1818 1999-10-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1819 |
3323
|
1820 * ov-usr-fcn.cc (octave_user_function::do_index_op): If |
|
1821 Vmax_recursion_depth is exceeded, call unwind_protect::run_frame |
|
1822 before returning. |
3321
|
1823 |
3308
|
1824 1999-10-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1825 |
3317
|
1826 * cutils.c (do_octave_usleep): Handle useconds > 1e6. |
|
1827 |
3308
|
1828 * variables.h (is_valid_function): Provide default values for the |
|
1829 string argument. |
|
1830 |
|
1831 * symtab.cc (variable_reference): Maybe print warning (or error) |
|
1832 about variables that hide functions of the same name. |
|
1833 (symbol_record::define (const octave_value&, unsigned int)): Ditto. |
|
1834 (Vvariables_can_hide_functions): New static variable. |
|
1835 (variables_can_hide_functions, symbols_of_symtab): New functions. |
|
1836 |
|
1837 * cutils.c: New file. |
|
1838 * Makefile.in (SOURCES): Add it to the list. |
|
1839 * utils.h: Declare octave_usleep here. |
|
1840 * dirfns.cc (Fls): Simply all octave_usleep. |
|
1841 * oct-procbuf.cc (octave_procbuf::open): Ditto. |
|
1842 * sysdep.cc (Fusleep): Ditto. |
|
1843 * toplev.cc (run_command_and_return_output): Ditto. |
|
1844 |
3305
|
1845 1999-10-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1846 |
3307
|
1847 * data.cc (make_diag (const octave_value&, const octave_value&)): |
|
1848 Delete special cases for scalars and simply attempt conversion of |
|
1849 first arg to a matrix value. If that fails, we will still see an |
|
1850 error message. |
|
1851 |
3305
|
1852 * Makefile.in (DISTFILES): Add mkgendoc to the list. |
|
1853 |
3296
|
1854 1999-10-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1855 |
3301
|
1856 * Makefile.in (stmp-pic): New target. |
|
1857 ($(PICOBJS)): Depend on stmp-pic, not pic. |
|
1858 |
|
1859 * ov.h (get_rep): New function. |
|
1860 |
|
1861 * help.cc (display_help_text): Pass definitions for VERSION, |
|
1862 OCTAVE_HOME, and TARGETHOSTTYPE to makeinfo. |
|
1863 |
|
1864 * DLD-FUNCTIONS/getgrent.cc: Texinfoize all doc strings. |
|
1865 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
1866 * DLD-FUNCTIONS/getrusage.cc: Ditto. |
|
1867 * DLD-FUNCTIONS/time.cc: Ditto. |
|
1868 |
|
1869 * defaults.cc (EXEC_PATH, OCTAVE_VERSION): Texinfoize doc strings. |
|
1870 * dirfns.cc (Fcd, Fls, Fpwd, Freaddir, Fmkdir, Frmdir, Frename, |
|
1871 Fglob, Ffnmatch): Ditto. |
|
1872 * file-io.cc (Fpopen, Fpclose, Fumask): Ditto. |
|
1873 * sysdep.cc (Fgetenv, Fputenv, Fpause, Fsleep, Fusleep, Fisieee, |
|
1874 Ftilde_expand): Ditto. |
|
1875 * toplev.cc (Fcomputer, Fsystem, Foctave_config_info): Ditto. |
|
1876 * utils.cc (Ffile_in_path): Ditto. |
|
1877 * syscalls.cc (Fdup2, Fexec, Ffcntl, Ffork, Fgetpgrp, Fgetpid, |
|
1878 Fgetppid, Fgetegid, Fgetgid, Fgeteuid, Fgetuid, Fmkfifo, Fpipe, |
|
1879 Fstat, Funlink, Fwaitpid, F): Ditto. |
|
1880 (Flstat): Refer to stat for doc. |
|
1881 |
|
1882 |
3296
|
1883 * help.cc (looks_like_texinfo): New function. |
|
1884 (display_help_text): Use it to see if the doc string looks like |
|
1885 Texinfo source. If so, use makeinfo to format the text before |
|
1886 displaying it. |
|
1887 |
|
1888 * mkgendoc: New script. |
|
1889 * Makefile.in: Use it to create gendoc.cc, which is compiled and |
|
1890 run to create DOCSTRINGS file from sources. |
|
1891 |
3295
|
1892 1999-10-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1893 |
|
1894 * help.cc (help_from_info): Print `unable to find info' message if |
|
1895 try_info returns 127; otherwise, print `not indexed' message. |
|
1896 Don't sleep after printing `not indexed' message. |
|
1897 |
3292
|
1898 1999-10-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1899 |
|
1900 * parse.y (fold (tree_unary_expression *)): New function. |
|
1901 (make_prefix_op, make_postfix_op): Use it. |
|
1902 |
3281
|
1903 1999-10-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1904 |
3288
|
1905 * Makefile.in (oct-gperf.h): Ask for ANSI-C output from gperf |
|
1906 (requires gperf-2.7 or later). |
|
1907 |
3281
|
1908 * sighandlers.cc (sigwinch_handler): New function. |
|
1909 (install_signal_handlers): Install it. |
|
1910 |
3273
|
1911 Thu Sep 23 19:49:36 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1912 |
|
1913 * toplev.cc (Fsystem): For async case, use execl instead of |
|
1914 system, avoiding the need to exit after executing the subprocess. |
|
1915 |
3268
|
1916 Thu Sep 9 17:09:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1917 |
|
1918 * oct-stream.cc (get_size): Allow zero values. |
|
1919 (get_size): New arg, one_elt_size_spec. |
|
1920 (do_scanf_conv): New arg, `conv_count'. Change instantiation |
|
1921 requests and all callers. |
|
1922 (octave_base_stream::do_scanf): Improve scanning of strings. |
|
1923 (octave_base_stream::do_oscanf): Remove size limit on %s conversions. |
|
1924 |
|
1925 * oct-stream.cc (scanf_format_list::all_character_conversions): |
|
1926 Don't count %p as a character conversion. |
|
1927 |
|
1928 Tue Sep 7 08:31:04 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1929 |
|
1930 * pr-output.cc (set_real_matrix_format, set_complex_matrix_format): |
|
1931 Move check for fixed_point_format ahead of check for |
|
1932 int_or_inf_or_nan. |
|
1933 |
3264
|
1934 Thu Sep 2 11:54:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1935 |
|
1936 * oct-obj.cc (make_argv): Correctly handle empty strings as args. |
|
1937 |
3263
|
1938 Fri Aug 20 08:17:52 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1939 |
|
1940 * DLD-FUNCTIONS/quad.cc (quad): Delete unused label. |
|
1941 |
|
1942 * unwind-prot.cc (saved_variable::~saved_variable): Don't try to |
|
1943 delete gen_ptr_value here. |
|
1944 |
|
1945 Mon Aug 16 21:34:33 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1946 |
|
1947 * lex.l (next_token_is_sep_op): New function. |
|
1948 (handle_close_brace, maybe_unput_comma): Use it. |
|
1949 (have_continuation): Also handle CRLF here. |
|
1950 |
|
1951 Wed Aug 11 16:06:57 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1952 |
|
1953 * file-io.cc (Ffopen): Make fopen ("filename") work and imply that |
|
1954 MODE = "r". |
|
1955 |
3258
|
1956 Wed Jul 21 15:38:52 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1957 |
3259
|
1958 * help.cc (display_names_from_help_list): Sort names before |
|
1959 listing them. |
|
1960 (print_symbol_type, Ftype): Also handle built-in constants. |
|
1961 (LIST_SYMBOLS): Correct call to symbol_table::name_list. |
|
1962 (simple_help): List constants here too. List constants and |
|
1963 variables before functions, not after. Sort names before listing |
|
1964 them. |
|
1965 |
|
1966 * variables.cc (do_who): Display built-in constants in a separate |
|
1967 section. |
|
1968 |
|
1969 * error.cc (bind_global_error_variable, clear_global_error_variable): |
|
1970 Call bind_builtin_constant, not bind_builtin_variable to set |
|
1971 __error_text__. |
|
1972 * octave.cc (intern_argv): Likewise, for argv and __argv__. |
|
1973 |
|
1974 * defun.cc (install_builtin_constant): Move function guts to |
|
1975 bind_builtin_constant in variables.cc. |
|
1976 * variables.cc (bind_builtin_constant): New function. |
|
1977 |
3258
|
1978 * symtab.cc (symbol_record::define, symbol_record::variable_reference): |
|
1979 Handle constants the same as functions. |
|
1980 (symbol_record::link_to_builtin_variable): New function. |
|
1981 (symbol_record::define_builtin_const): New function. |
|
1982 (symbol_record::define_as_fcn): Delete unused function. |
|
1983 (symbol_record::read_only_error): |
|
1984 Handle constants the same as variables. |
|
1985 * symtab.h (symbol_record::BUILTIN_CONSTANT): New enum value. |
|
1986 (symbol_record::symbol_type): Increase width to 7 bits. |
|
1987 (symbol_record::symbol_def::is_constant): New function. |
|
1988 (symbol_record::symbol_def::is_builtin_constant): New function. |
|
1989 (symbol_record::is_constant): New function. |
|
1990 (symbol_record::is_builtin_constant): New function. |
|
1991 (SYMTAB_ALL_TYPES): Add symbol_record::BUILTIN_CONSTANT. |
|
1992 * variables.cc (link_to_builtin_variable): Delete unused function. |
|
1993 (link_to_builtin_or_function): Handle built-in constants here too. |
|
1994 |
|
1995 * defun.cc (install_builtin_variable): Delete inst_as_fcn arg. |
|
1996 (install_builtin_constant): New function. |
|
1997 (install_builtin_variable_as_function): Delete unused function. |
|
1998 * defun.h (DEFVAR_INTERNAL): Delete inst_as_fcn arg. |
|
1999 (DEFCONST_INTERNAL): New macro. |
|
2000 * defun.h (DEFVAR): Delete inst_as_fcn arg. |
|
2001 (DEFCONST, DEFCONSTX): Define using DEFCONST_INTERNAL instead of |
|
2002 DEFVAR_INTERNAL. |
|
2003 * data.cc, defaults.cc, error.cc, help.cc, input.cc, lex.l, |
|
2004 load-save.cc, oct-hist.cc, oct-procbuf.cc, ov-fcn.h, |
|
2005 ov-usr-fcn.cc, ov.cc, pager.cc, parse.y, pr-output.cc, |
|
2006 pt-assign.cc, pt-decl.cc, pt-mat.cc, pt-plot.cc, pt-stmt.cc, |
|
2007 toplev.cc, variables.cc: |
|
2008 Change all invocations of DEFVAR to match new definition. |
|
2009 |
|
2010 * data.cc (symbols_of_data): Add DEFCONSTs for true and false. |
|
2011 |
3255
|
2012 Thu Jul 15 10:59:42 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2013 |
3258
|
2014 * data.cc (Fis_bool, Fis_complex, Fisempty, Fisnumeric, Fis_list, |
|
2015 Fis_map, Fis_struct): Return bool object. |
|
2016 (Fisreal): New function. |
|
2017 |
|
2018 * ov-str-mat.h (octave_char_matrix_str): Only return true if |
|
2019 Vimplicit_str_to_num_ok is also true. |
|
2020 |
3255
|
2021 * DLD-FUNCTIONS/time.cc (Ftime): Print usage message if any |
|
2022 arguments are supplied. |
|
2023 |
|
2024 * variables.cc (symbol_out_of_date): Call octave_time for time stamps. |
|
2025 |
|
2026 * fn-cache.h (octave_fcn_file_name_cache::timestamp): |
|
2027 Now octave_time object. |
|
2028 |
|
2029 * strftime.c: Move to liboctave directory. |
|
2030 * Makefile.in (DIST_SRC): Delete from list. |
|
2031 |
|
2032 * ov-usr-fcn.h (octave_user_function::t_parsed, |
|
2033 octave_user_function::t_checked): Now octave_time objects. |
|
2034 (octave_user_function::time_parsed, |
|
2035 (octave_user_function::time_checked): |
|
2036 Return value is now octave_time object. |
|
2037 (octave_user_function::mark_fcn_file_up_to_date)): |
|
2038 Arg is now octave_time object. |
|
2039 |
|
2040 * ov-fcn.h (octave_function::mark_fcn_file_up_to_date)): |
|
2041 Arg is now octave_time object. |
|
2042 (octave_function::time_parsed, octave_function::time_checked): |
|
2043 Return value is now octave_time object. |
|
2044 |
|
2045 * input.cc (Vlast_prompt_time): Now an octave_time object. |
|
2046 (octave_gets): Call octave_time::stamp() to set Vlast_prompt_time. |
|
2047 |
|
2048 * DLD-FUNCTIONS/time.cc (mk_tm_map, extract_tm, Ftime, Fgmtime, |
|
2049 Flocaltime, Fmktime, Fstrftime): Use new classes defined in |
|
2050 liboctave/oct-time.cc instead of accessing C functions directly. |
|
2051 |
3252
|
2052 Wed Jul 14 17:38:46 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2053 |
|
2054 * systime.h: Move to liboctave directory. |
|
2055 * Makefile.in (INCLUDES): Delete it from the list |
|
2056 |
|
2057 Tue Jul 13 14:34:57 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2058 |
|
2059 * sighandlers.cc (sigchld_handler): Only wait for processes in |
|
2060 octave_child_list. |
|
2061 * toplev.cc (cmd_status): Delete unused static variable. |
|
2062 (cmd_death_handler): Delete unused function. |
|
2063 (run_command_and_return_output): Don't add cmd_death_handler to |
|
2064 octave_child_list. Simply extract command exit status from |
|
2065 calling close() on the procstream object. |
|
2066 |
3249
|
2067 Mon Jul 12 22:38:50 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2068 |
|
2069 * defun.h (DEFUN_MAPPER): Handle new args, d_b_map and c_b_map. |
|
2070 * defun-int.h (DEFUN_MAPPER_INTERNAL): Likewise. |
|
2071 * mappers.cc (install_mapper_functions): Supply new args to |
|
2072 all uses of DEFUN_MAPPER. |
|
2073 * ov-mapper.cc (octave_mapper::apply): Handle mapper functions |
|
2074 that return bool objects. |
|
2075 * ov-mapper.h (octave_mapper::d_b_mapper, octave_mapper::c_b_mapper): |
|
2076 New typedefs. |
|
2077 (octave_mapper::octave_mapper): Handle new mapper function types. |
|
2078 |
|
2079 * DLD-FUNCTIONS/minmax.cc: Do a better job of handling NaNs. |
|
2080 |
|
2081 Sun Jul 11 13:15:17 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2082 |
|
2083 * pr-output.cc (do_plus_format (ostream&, double)): New function. |
|
2084 (octave_print_internal (ostream&, double, bool)): Use it. |
|
2085 (octave_print_internal (ostream&, const Matrix&, bool, int)): Ditto. |
|
2086 |
|
2087 * pr-output.cc (do_plus_format (ostream&, const Complex&)): |
|
2088 New function. |
|
2089 (octave_print_internal (ostream&, const Complex&, bool)): Use it. |
|
2090 (octave_print_internal (ostream&, const ComplexMatrix&, bool, int)): |
|
2091 Ditto. |
|
2092 |
|
2093 Sun Jun 20 23:04:00 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2094 |
|
2095 * sysdep.cc: Include sys/ioctl.h if available. |
|
2096 |
|
2097 Sat Jun 19 12:07:16 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2098 |
|
2099 * variables.cc (do_who): Make pattern and multiple non-option |
|
2100 arguments work. |
|
2101 |
3246
|
2102 Mon Jun 7 09:54:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2103 |
|
2104 * lex.l (next_token_is_bin_op, next_token_is_postfix_unary_op, |
|
2105 handle_number): Delete yytext arg. Change all callers. |
|
2106 (next_token_is_postfix_unary_op): Check the first character |
|
2107 obtained from yyinput before calling it again. |
|
2108 (next_token_is_bin_op): Do a more thorough check. |
|
2109 (handle_identifier): Also enter token in local symbol table if the |
|
2110 following token is a dot and it looks like a binary operator. |
|
2111 (whitespace_in_literal_matrix): Now static. |
|
2112 |
|
2113 * lex.l: Always use unput, not yyunput. |
|
2114 |
3244
|
2115 Fri May 28 11:02:37 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2116 |
|
2117 * DLD-FUNCTIONS/chol.cc (Fchol): If two output arguments, never |
|
2118 produce error message. |
|
2119 |
3243
|
2120 Thu May 27 18:28:35 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2121 |
|
2122 * DLD-FUNCTIONS/chol.cc (Fchol): Also return info as second output. |
|
2123 |
|
2124 * DLD-FUNCTIONS/minmax.cc (max (const ComplexMatrix&, const |
|
2125 ComplexMatrix&)): Correct test for real columns only. |
|
2126 (min (const ComplexMatrix&, const ComplexMatrix&)): Likewise. |
|
2127 |
|
2128 Wed Apr 14 12:54:25 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2129 |
|
2130 * DLD-FUNCTIONS/dassl.cc (Fdassl): Prevent recursive calls. |
|
2131 * DLD-FUNCTIONS/fsolve.cc (Ffsolve): Likewise. |
|
2132 * DLD-FUNCTIONS/lsode.cc (Flsode): Likewise. |
|
2133 * DLD-FUNCTIONS/quad.cc (Fquad): Likewise. |
|
2134 |
|
2135 * file-io.cc (Fsscanf, Ffscanf): Doc fix. |
|
2136 |
3239
|
2137 Sat Mar 27 11:07:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2138 |
|
2139 * ov.h (octave_value::count): New function. |
|
2140 * symtab.cc (symbol_record::dump_symbol_info): New function. |
|
2141 * symtab.cc (symbol_record::symbol_def::dump_symbol_info): Ditto. |
|
2142 * variables.cc (F__dump_symbol_info__): Ditto. |
|
2143 |
|
2144 * pt-misc.cc (tree_parameter_list::clear): New function. |
|
2145 * ov-usr-fcn.h (octave_user_function::clear_args_passed): Ditto. |
|
2146 * ov-usr-fcn.cc (clear_param_list): New function. |
|
2147 (clear_args_passed): New function. |
|
2148 (octave_user_function::do_index_op): Use them to decrement |
|
2149 reference counts on local variables. |
|
2150 |
3238
|
2151 Fri Mar 26 00:51:53 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2152 |
|
2153 * Makefile.in (libraries): Use the libfoo.a(objects) method of |
|
2154 creating static libs. |
|
2155 |
|
2156 * defaults.cc (symbols_of_defaults): Initialize LOADPATH to |
|
2157 Vload_path, not ":". |
|
2158 |
|
2159 Thu Mar 18 12:09:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2160 |
|
2161 * data.cc (Fisnumeric): Fix typo. |
|
2162 |
|
2163 Thu Mar 4 02:17:04 1999 James Macnicol <jamesm@evans.ee.adfa.oz.au> |
|
2164 |
|
2165 * file-io.cc (Ffread, Ffwrite): Add uint16 and uint32 data types |
|
2166 to doc string. |
|
2167 |
|
2168 Wed Mar 3 11:55:17 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2169 |
|
2170 * lex.l (handle_string): Allow "" to pass through unchanged if |
|
2171 working on a gset command. |
|
2172 |
|
2173 Tue Mar 2 01:36:29 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2174 |
|
2175 * variables.cc (Fexist): If a variable isn't defined, only go on |
|
2176 to look for a global by the same name if we are at the top level. |
|
2177 |
|
2178 Fri Jan 29 02:18:36 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2179 |
|
2180 * version.h (OCTAVE_NAME_AND_VERSION): Say `GNU Octave', not just |
|
2181 Octave. |
|
2182 |
3234
|
2183 Thu Jan 28 21:29:16 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2184 |
|
2185 * toplev.cc (Fcomputer): Use CANONICAL_HOST_TYPE, not TARGET_HOST_TYPE. |
|
2186 (octave_config_info): Likewise. |
|
2187 * version.h: Ditto. |
|
2188 |
|
2189 * sysdep.cc (Fpause): Flush output before getting user input. |
|
2190 |
3233
|
2191 Wed Jan 27 14:18:29 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2192 |
|
2193 * Makefile.in (DEFFUN_PATTERN, DEFVAR_PATTERN): Use egrep again. |
|
2194 Make the patterns work with stupid egreps that don't like empty |
|
2195 elements in alternation patterns. |
|
2196 |
|
2197 Fri Jan 22 04:41:48 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2198 |
|
2199 * load-save.cc (save_ascii_data): Check for string type first, |
|
2200 then range, then the rest. |
|
2201 (save_binary_data): Ditto. |
|
2202 |
|
2203 * pager.cc (more_than_a_screenful): Accept length as second arg. |
|
2204 Handle long lines properly, assuming the terminal wraps long lines. |
|
2205 (octave_pager_buf::do_sync): Accept length of data as second arg. |
|
2206 Use write instead of << to put characters on output stream. |
|
2207 (octave_pager_buf::sync): Don't assume data ends at first NUL. |
|
2208 (octave_diary_buf::sync): Ditto. |
|
2209 |
|
2210 Thu Jan 21 22:15:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2211 |
|
2212 * load-save.cc (save_mat_binary_data): Check for string type |
|
2213 first, then range, then the rest. |
|
2214 |
|
2215 Wed Jan 20 12:01:14 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2216 |
|
2217 * oct-stream.cc (octave_base_stream::do_scanf): Handle short and |
|
2218 long ints correctly. |
|
2219 |
|
2220 Fri Jan 15 13:04:58 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2221 |
|
2222 * parse.y (end_error): Handle case of endswitch too. |
|
2223 |
|
2224 * Makefile.in: Use basic regular expressions and grep instead of |
|
2225 egrep to find files that contain DEFVAR, DEFCONST, or DEFUN. |
|
2226 |
|
2227 Wed Dec 9 14:14:11 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2228 |
|
2229 * Makefile.in (octave): Add $(RDYNAMIC_FLAG) to link command. |
|
2230 |
|
2231 Fri Dec 4 20:26:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2232 |
|
2233 * DLD-FUNCTIONS/time.cc (Fstrftime): Make it work even when not |
|
2234 using the GNU version of strftime, which allows passing NULL for |
|
2235 the buffer to determine the required size of the buffer. |
|
2236 |
3225
|
2237 Wed Dec 2 22:38:40 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2238 |
|
2239 * utils.cc (file_in_loadpath): Expect argc == 2, not 3. |
|
2240 |
|
2241 Tue Nov 24 23:38:19 1998 Eric Norum <eric@skatter.USask.Ca> |
|
2242 |
|
2243 * mkbuiltins: Also strip off leading `./' from file names. |
|
2244 * mkops: Ditto. |
|
2245 |
|
2246 Tue Nov 24 23:24:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2247 |
|
2248 * strftime.c: Surround everything with #ifdef HAVE_STRFTIME / #endif. |
|
2249 |
|
2250 * lex.h (YY_FATAL_ERROR): Call yy_falta_error after |
|
2251 jump_to_top_level to avoid gcc warning. |
|
2252 |
|
2253 Fri Nov 20 13:34:47 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2254 |
|
2255 * ov-bool.h, ov-bool.cc (class octave_bool): Derive from |
|
2256 octave_base_scalar and get common functions via derivation. |
|
2257 * ov-scalar.h, ov-scalar.cc (class octave_scalar): Ditto. |
|
2258 * ov-complex.h, ov-complex.cc (class octave_complex): Ditto. |
|
2259 |
|
2260 * ov-base-scalar.h, ov-base-scalar.cc (class octave_base_scalar): |
|
2261 New files for new class definition. Put common scalar data type |
|
2262 stuff here. |
|
2263 * Makefile.in (OV_INCLUDES, OV_SRC): Add them to the lists. |
|
2264 |
3221
|
2265 Thu Nov 19 14:30:25 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
3225
|
2266 |
3222
|
2267 * dynamic-ld.cc (octave_dynamic_loader::mangle_name): |
|
2268 Prepend underscore here. |
|
2269 (octave_dynamic_loader::load_fcn_from_dot_oct_file): Not here. |
|
2270 |
3221
|
2271 * ov-re-mat.h (octave_matrix_value): Delete experimental code for |
|
2272 handling structure references for things like .rows, .cols, etc. |
|
2273 |
3220
|
2274 Wed Nov 18 01:18:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2275 |
3221
|
2276 * Makefile.in (VAR_FILES): Be more careful about matching. |
|
2277 (DEF_FILES): Likewise. |
|
2278 |
|
2279 * ov-base-mat.h, ov-base-mat.cc, ov-bool-mat.h, ov-bool-mat.cc, |
|
2280 ov-ch-mat.h, ov-ch-mat.cc, ov-cx-mat.h, ov-cx-mat.cc, |
|
2281 ov-re-mat.h, ov-re-mat.cc: Move default definition of all, any, |
|
2282 is_matrix_type, is_numeric_type, valid_as_zero_index, and |
|
2283 do_index_op to base class. |
|
2284 Provide definitions that override the defaults where necessary. |
3220
|
2285 |
|
2286 * mappers.cc: Don't include lo-specfun.h. |
|
2287 |
|
2288 Tue Nov 17 14:35:56 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2289 |
|
2290 * besselj.cc (Fbesselh, Fairy); New functions. |
|
2291 (Fbesselj, Fbessely, Fbesselk, Fbesseli): Update doc strings. |
|
2292 (do_bessel): Handle additional args. |
|
2293 |
|
2294 Fri Nov 13 14:47:11 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2295 |
|
2296 * lex.l (NUMBER): Allow hexadecimal constants. |
|
2297 (looks_like_hex): New function. |
|
2298 (handle_number): Check for hexadecimal constants and convert them |
|
2299 to unsigned integer values. |
|
2300 |
3219
|
2301 Thu Nov 12 11:13:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2302 |
|
2303 * input.cc (gnu_readline): Check for EOF from command_editor::readline. |
|
2304 |
|
2305 * ov-str-mat.h, ov-str-mat.cc (class octave_char_matrix_str): |
|
2306 Get common functions via new derivation scheme. |
|
2307 |
|
2308 * ov-bool-mat.h, ov-bool-mat.cc (class octave_bool_matrix): |
|
2309 Derive from octave_base_matrix and get common functions via derivation. |
|
2310 * ov-ch-mat.h, ov-ch-mat.cc (class octave_char_matrix): Ditto. |
|
2311 * ov-cx-mat.h, ov-cx-mat.cc (class octave_complex_matrix): Ditto. |
|
2312 * ov-re-mat.h, ov-re-mat.cc (class octave_real_matrix): Ditto. |
|
2313 |
|
2314 * ov-base-mat.h, ov-base-mat.cc (class octave_base_matrix): New |
|
2315 files for new class definition. Put common matrix data type |
|
2316 stuff here. |
|
2317 |
|
2318 * ov-list.cc (Fnth): New function. |
|
2319 |
|
2320 * ov-list.cc (octave_list::do_index_op): Allow more complex indexing. |
|
2321 |
|
2322 * oct-obj.cc (octave_value_list::index): New function. |
|
2323 (octave_value_list::octve_value_list (Array<octave_value>)): |
|
2324 New private constructor. |
|
2325 |
|
2326 * ov-list.cc (Fsplice): Fix docstring to match. |
|
2327 * oct-obj.cc (octave_value_list::splice): Allow special case |
|
2328 splice (x, length(x)+1, 0, y) to be equivalent to append (x, y). |
|
2329 |
|
2330 * ov-list.cc (Fappend): If an arg is a list, concatenate the lists |
|
2331 instead of appending arg as a single element. |
|
2332 |
|
2333 Wed Nov 11 14:07:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2334 |
|
2335 * load-save.cc (get_mat_data_input_line): New function. |
|
2336 (get_lines_and_columns): Use it here. |
|
2337 (read_mat_ascii_data): And here and do our own reading instead of |
|
2338 using Matrix::operator<<. |
|
2339 |
|
2340 Tue Nov 10 16:12:25 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2341 |
|
2342 * parse.y (make_constant): Initialize retval to 0. |
|
2343 |
|
2344 * toplev.h (clean_up_and_exit (void)): Delete declaration. |
|
2345 * toplev.cc (do_octave_atexit): Move guts of clean_up_for_exit |
|
2346 here, but ensure that the actions are only executed once. |
|
2347 * octave.cc (main): Don't register cleanup_tmp_files with atexit. |
|
2348 |
|
2349 * ov.h, ov.cc (class octave_value): Use DECLARE_OCTAVE_ALLOCATOR |
|
2350 and DEFINE_OCTAVE_ALLOCATOR for uniform declaration and definition |
|
2351 of allocator functions. Use DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA |
|
2352 and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA for uniform declaration |
|
2353 and definition of type id functions and data. |
|
2354 * ov-usr-fcn.h, ov-usr-fcn.cc (class octave_user_function): Ditto. |
|
2355 * ov-scalar.h, ov-scalar.cc (class octave_scalar): Ditto. |
|
2356 * ov-re-mat.h ov-re-mat.cc (class octave_matrix): Ditto. |
|
2357 * ov-range.h, ov-range.cc (class octave_range): Ditto. |
|
2358 * ov-mapper.h, ov-mapper.cc (class octave_mapper): Ditto. |
|
2359 * ov-list.h, ov-list.cc (class octave_list): Ditto. |
|
2360 * ov-file.h, ov-file.cc (class octave_file): Ditto. |
|
2361 * ov-fcn.h, ov-fcn.cc (class octave_function): Ditto. |
|
2362 * ov-cx-mat.h, ov-cx-mat.cc (class octave_complex_matrix): Ditto. |
|
2363 * ov-complex.h, ov-complex.cc (class octave_complex): Ditto. |
|
2364 * ov-ch-mat.h, ov-ch-mat.cc (octave_char_matrix): Ditto. |
|
2365 * ov-builtin.h, ov-builtin.cc (class octave_builtin): Ditto. |
|
2366 * ov-bool.h, ov-bool.cc (class octave_bool): Ditto. |
|
2367 * ov-bool-mat.h, ov-bool-mat.cc (octave_bool_matrix): Ditto. |
|
2368 |
|
2369 * ov.h (DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA): New macro. |
|
2370 (DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA): Ditto. |
|
2371 |
3215
|
2372 Mon Nov 9 16:12:37 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2373 |
|
2374 * pr-output.cc (octave_print_internal): Reorder default args for |
|
2375 charMatrix version. |
|
2376 (octave_print_internal): New function for boolMatrix. |
|
2377 |
|
2378 * version.h (OCTAVE_STARTUP_MESSAGE): Note that this is a |
|
2379 development release. |
|
2380 |
|
2381 * toplev.cc (do_octave_atexit): Call flush_octave_stdout here. |
|
2382 (clean_up_for_exit): And here. |
|
2383 |
|
2384 Mon Nov 9 15:20:53 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2385 |
|
2386 * input.cc (get_user_input): Check retval.length(), not retval.length. |
|
2387 |
|
2388 Sun Nov 8 19:30:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2389 |
|
2390 * pt-assign.cc (tree_simple_assignment::rvalue): If etype is |
|
2391 asn_eq, don't evaluate ult again because retval is just rhs value. |
|
2392 (tree_multi_assignment::rvalue): Likewise. |
|
2393 |
|
2394 Fri Nov 6 12:14:29 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2395 |
|
2396 * pt-loop.cc (tree_for_command::eval): Move code for string RHS |
|
2397 outside if clause for matrix types. |
|
2398 |
|
2399 * pt-idx.cc: Don't forget to define arg_nm. |
|
2400 Move contstructor here. |
|
2401 * pt-idx.h: From here. |
|
2402 |
|
2403 * data.cc (Fisempty): Also return true for empty strings. |
|
2404 |
3212
|
2405 Wed Nov 4 17:21:41 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2406 |
|
2407 * ov-base.cc (octave_base_value::rows, octave_base_value::columns, |
|
2408 octave_base_value::length): Delete. |
|
2409 * ov-base.h (octave_base_value::rows, octave_base_value::columns, |
|
2410 octave_base_value::length): Define here. All return -1 if not |
|
2411 defined in a derived class. |
|
2412 |
|
2413 * data.cc (Fis_matrix): Also return true if the arg is a range. |
|
2414 |
3209
|
2415 Tue Nov 3 09:40:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2416 |
|
2417 * data.cc (Fis_bool): New function. |
|
2418 Also add alias for islogical. |
|
2419 |
|
2420 * ov.h (octave_value::is_bool_type): New function. |
|
2421 * ov-base.h (octave_base_value::is_bool_type): Likewise. |
|
2422 * ov-bool.h (octave_bool::is_bool_type): Likewise. |
|
2423 * ov-bool-mat.h (octave_bool_matrix::is_bool_type): Likewise. |
|
2424 |
3206
|
2425 Mon Nov 2 13:36:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2426 |
3208
|
2427 * lex.l (handle_close_brace): Also handle case of ']' followed by |
|
2428 other assignment ops (+=, -=, ...). |
|
2429 |
|
2430 * pt-assign.cc (tree_simple_assignment::rvalue): Correctly handle |
|
2431 return value and printing for operators other than `='. |
|
2432 (tree_multi_assignment::rvalue): Likewise. |
|
2433 |
|
2434 * pt-assign.h (tree_multi_assignment::etype): New data member. |
|
2435 * pt-assign.cc (tree_multi_assignment::rvalue): Use it instead of |
|
2436 assuming `='. |
|
2437 (tree_multi_assignment::oper): New function. |
|
2438 * pt-pr-code.cc (tree_print_code::visit_multi_assignment): Use |
|
2439 it instead of always printing `='. |
|
2440 * parse.y (make_assign_op): Pass expression type to |
|
2441 tree_multi_assignment constructor. |
|
2442 |
3206
|
2443 * Makefile.in (stmp-pic): New target. |
|
2444 ($(PICOBJ)): Depend on stmp-pic, not pic. |
|
2445 (clean): Delete stmp-pic. |
|
2446 |
|
2447 Sun Nov 1 23:24:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2448 |
|
2449 * mappers.cc (install_mapper_functions): Add alias for isfinite. |
|
2450 |
|
2451 Sat Oct 31 08:46:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2452 |
|
2453 * data.cc (Fisnumeric): New function. |
|
2454 |
3203
|
2455 Fri Oct 30 08:39:30 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2456 |
3205
|
2457 * oct-lvalue.cc (octave_lvalue::do_unary_op): Make it work for |
|
2458 indexed ops too. |
|
2459 * ov.cc (octave_value::unary_op_to_assign_op): New function. |
|
2460 (octave_value::do_non_const_unary_op): New function for indexed ops. |
|
2461 |
3204
|
2462 * parse.y (LEFTDIV_EQ, ELEFTDIV_EQ): New tokens. |
|
2463 (assign_expr): Add rules for them. |
|
2464 (make_assign_op): Handle them here too. |
|
2465 * lex.l: Recognize them. |
|
2466 * ov.h (octave_value::assign_op): Add ldiv_eq and el_ldiv_eq. |
|
2467 * ov.cc (octave_value::assign_op_as_string): Ditto. |
|
2468 (octave_value::op_eq_to_binary_op): Ditto. |
|
2469 (octave_value::assign): Handle OP= style operators with brute force. |
|
2470 (octave_value::simple_assign): New function. |
|
2471 |
3203
|
2472 * parse.y (matrix): Dont' forget to reset |
|
2473 lexer_flags.looking_at_matrix_or_assign_lhs. |
|
2474 |
|
2475 * oct-lvalue.cc (octave_lvalue::assign): Don't call change |
|
2476 function if error occurs. |
|
2477 (octave_lvalue::do_unary_op): If we have an index, fail with message. |
|
2478 |
3202
|
2479 Thu Oct 29 09:27:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2480 |
3203
|
2481 * ov.cc (do_binary_op): Protect against invalid type conversions. |
|
2482 (try_assignment_with_conversion): Likewise. |
|
2483 (do_unary_op): Likewise. |
|
2484 |
|
2485 * ov.h (OV_UNOP_FN, OV_UNOP_OP, OV_UNOP_FN_OP): New macros. |
|
2486 Use them to define not, uminus, transpose, hermitian functions |
|
2487 and operators ! and -. |
|
2488 (OV_BINOP_FN, OV_BINOP_OP, OV_BINOP_FN_OP): New macros. |
|
2489 Use them to define add, sub, mul, div, pow, ldiv, lshift, rshift, |
|
2490 lt, le, eq, ge, gt, ne, el_mul, el_div, el_pow, el_ldiv, el_and, |
|
2491 el_or, struct_ref, functions and operators <, <=, ==, >=, >, !=, |
|
2492 +, -, *, and /. |
|
2493 |
|
2494 * ops.h (CONVDECLX): New macro. |
|
2495 * ov-base.cc (matrix_conv, complex_matrix_conv, string_conv): |
|
2496 Use it to declare these functions. |
|
2497 |
|
2498 * ops.h (CONVDECL, INSTALL_WIDENOP): |
|
2499 Prefix function name with `oct_conv_'. |
|
2500 (INSTALL_BINOP, BINOPDECL): Prefix function name with `oct_binop_'. |
|
2501 (INSTALL_ASSIGNOP, INSTALL_ASSIGNANYOP, ASSIGNOPDECL): |
|
2502 Prefix function name with `oct_assignop_'. |
|
2503 (UNOPDECL, DEFNCUNOP_METHOD, INSTALL_UNOP, INSTALL_NCUNOP): |
|
2504 Prefix function name with `oct_unop_'. |
|
2505 |
|
2506 * ov-str-mat.cc (default_numeric_conversion_function): |
|
2507 Return 0 if conversion fails. |
|
2508 |
|
2509 * parse.y (make_prefix_op, make_postfix_op): Use |
|
2510 octave_value::unary_op enum. |
|
2511 |
|
2512 * pt-unop.cc (tree_prefix_expression::rvalue): Use new unary_op |
|
2513 functions from octave_value and octave_lvalue classes. |
|
2514 (tree_prefix_expression::rvalue): Likewise. |
|
2515 |
|
2516 * pt-unop.cc (tree_unary_expression::oper): Move here. |
|
2517 (tree_prefix_expression::oper, tree_postfix_expression): From here. |
|
2518 |
|
2519 * pt-unop.h (tree_prefix_expression, tree_postfix_expression): |
|
2520 Delete enums. |
|
2521 (tree_unary_expression): Use octave_value::unary_op enum. |
|
2522 * parse.y (make_prefix_op, make_postfix_op): Likewise. |
|
2523 |
|
2524 * oct-lvalue.h (octave_lvalue::do_unary_op): New function. |
|
2525 (octave_lvalue::increment, octave_lvalue::decrement): Delete. |
|
2526 |
|
2527 * ov-typeinfo.h (octave_value_typeinfo::non_const_unary_ops): |
|
2528 New data member. |
|
2529 * ov-typeinfo.h (octave_value_typeinfo::lookup_non_const_unary_op): |
|
2530 New function. |
|
2531 * ov-typeinfo.cc (octave_value_typeinfo::register_non_const_unary_op): |
|
2532 New function. |
|
2533 (octave_value_typeinfo::do_register_non_const_unary_op): Ditto. |
|
2534 (octave_value_typeinfo::do_lookup_non_const_unary_op): Ditto. |
|
2535 |
|
2536 * ov.cc (octave_value::do_non_const_unary_op): New function. |
|
2537 |
|
2538 * Makefile.in (OP_XSRC): Add op-chm.cc and op-range.cc to the list. |
|
2539 |
|
2540 * OPERATORS/op-str-str.cc: Define string matrix unary operators here. |
|
2541 (install_str_str_ops): Install them here. |
|
2542 * ov-bool-mat.h (octave_bool_matrix::transpose, |
|
2543 octave_bool_matrix_value::hermitian): Delete. |
|
2544 |
|
2545 * OPERATORS/op-chm.cc: New file. Define char matrix unary operators. |
|
2546 (install_chm_ops): Install them here. |
|
2547 * ov-ch-mat.h (octave_char_matrix::transpose, |
|
2548 octave_char_matrix_value::hermitian): Delete. |
|
2549 * ops.cc (install_ops): Call install_chm_ops. |
|
2550 |
|
2551 * OPERATORS/op-bm-bm.cc: Define bool matrix unary operators here. |
|
2552 (install_bm_bm_ops): Install them here. |
|
2553 * ov-bool-mat.h (octave_bool_matrix::transpose, |
|
2554 octave_bool_matrix_value::hermitian): Delete. |
|
2555 |
|
2556 * ov-bool.h (octave_bool::not, octave_bool::uminus, |
|
2557 octave_bool::transpose, octave_bool::hermitian): Delete. |
|
2558 |
|
2559 * OPERATORS/op-cs-cs.cc: Define complex scalar unary operators here. |
|
2560 (install_cs_cs_ops): Install them here. |
|
2561 * ov-complex.h (octave_complex::not, octave_complex::uminus, |
|
2562 octave_complex::transpose, octave_complex::hermitian): Delete. |
|
2563 |
|
2564 * OPERATORS/op-cm-cm.cc: Define complex matrix unary operators here. |
|
2565 (install_cm_cm_ops): Install them here. |
|
2566 * ov-cx-mat.h (octave_complex_matrix::not, |
|
2567 octave_complex_matrix::uminus, octave_complex_matrix::transpose, |
|
2568 octave_complex_matrix::hermitian): Delete. |
|
2569 |
|
2570 * OPERATORS/op-m-m.cc: Define matrix unary operators here. |
|
2571 (install_m_m_ops): Install them here. |
|
2572 * ov-re-mat.h (octave_matrix::not, octave_matrix::uminus, |
|
2573 octave_matrix::transpose, octave_matrix::hermitian): Delete. |
|
2574 |
|
2575 * OPERATORS/op-range.cc: New file. Define range unary operators. |
|
2576 (install_range_ops): Install them here. |
|
2577 * ov-range.h (octave_range::not, octave_range::uminus, |
|
2578 octave_range::transpose, octave_range::hermitian): Delete. |
|
2579 * ops.cc (install_ops): Call install_range_ops. |
|
2580 |
|
2581 * OPERATORS/op-s-s.cc: Define scalar unary operators here. |
|
2582 (install_s_s_ops): Install them here. |
|
2583 * ov-scalar.h (octave_scalar::not, octave_scalar::uminus, |
|
2584 octave_scalar::transpose, octave_scalar::hermitian): Delete. |
|
2585 |
|
2586 * ops.h (INSTALL_UNOP, CAST_UNOP_ARG, UNOPDECL, DEFUNOPX, DEFUNOP, |
|
2587 DEFUNOP_OP, DEFUNOP_FN): New macros. |
|
2588 |
|
2589 * ov.h (unary_op_fcn): New typedef. |
|
2590 (octave_value::unary_op): New enum. |
|
2591 * ov.cc (octave_value::octave_value): New function. |
|
2592 |
|
2593 * ov.h (octave_value::not, octave_value::uminus, |
|
2594 octave_value::transpose, octave_value::hermitian, |
|
2595 octave_value::increment, octave_value::decrement): Delete. |
|
2596 |
|
2597 * ov-base.cc (octave_base_value::not, octave_base_value::uminus, |
|
2598 octave_base_value::transpose, octave_base_value::hermitian, |
|
2599 octave_base_value::increment, octave_base_value::decrement): Delete. |
|
2600 |
|
2601 * ov.cc (gripe_unary_op): New function. |
|
2602 (do_unary_op): New function. |
|
2603 * ov-typeinfo.h (octave_value_typeinfo::unary_ops): |
|
2604 New data member. |
|
2605 * ov-typeinfo.cc (octave_value_info::register_unary_op, |
|
2606 octave_value_info::do_register_unary_op, |
|
2607 octave_value_info::lookup_unary_op, |
|
2608 octave_value_info::do_lookup_unary_op): |
|
2609 New functions. |
|
2610 |
3202
|
2611 * ov-list.cc (Fsplice): Use new octave_value::int_value function here. |
|
2612 (octave_list::do_index_op): Likewise. |
|
2613 (octave_list::assign): Likewise. |
|
2614 * toplev.cc (Fquit): Likewise. |
|
2615 * syscalls.cc (Fwaitpid): Likewise. |
|
2616 (Ffcntl): Likewise. |
|
2617 * file-io.cc (do_fread): Likewise. |
|
2618 (do_fwrite): Likewise. |
|
2619 * data.cc (make_diag): Likewise. |
|
2620 (Fsize): Likewise. |
|
2621 (get_dimensions): Likewise. |
|
2622 (Flinspace): |
|
2623 |
|
2624 * ov-base.cc (octave_base_value::int_value): New function. |
|
2625 (octave_base_value::nint_value): Ditto. |
|
2626 * ov.h (octave_value::int_value): Ditto. |
|
2627 (octave_value::nint_value): Ditto. |
|
2628 |
|
2629 * ov-list.cc (octave_list::assign): Fix off-by-one error. |
|
2630 |
3196
|
2631 Wed Oct 28 11:01:37 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2632 |
3202
|
2633 * load-save.cc (read_mat_ascii_data): Try harder to convert file |
|
2634 name to valid variable name. |
|
2635 |
|
2636 * data.cc (Fisempty, Fis_matrix): New functions. |
|
2637 |
|
2638 * ov-str-mat.h (octave_char_matrix_str::is_matrix_type): New function. |
|
2639 |
3196
|
2640 * OPERATORS/op-list.cc: New file. |
|
2641 * Makefile.in (OP_XSRC): Add it to the list. |
|
2642 |
|
2643 * ov-list.cc (octave_list::assign): New function. |
|
2644 |
|
2645 * ov-typeinfo.h (octave_value_typeinfo::assignany_ops): |
|
2646 New data member. |
|
2647 * ov-typeinfo.cc (octave_value_info::register_assignany_op, |
|
2648 octave_value_info::do_register_assignany_op, |
|
2649 octave_value_info::lookup_assignany_op, |
|
2650 octave_value_info::do_lookup_assignany_op): |
|
2651 New functions. |
|
2652 * ov.cc (octave_value::try_assignment (octave_value::assign_op, |
|
2653 const octave_value_list&, const octave_value&)): If no assignment |
|
2654 operator for particular RHS type exists, try finding one for |
|
2655 generic octave_value as RHS type. |
|
2656 * ops.h (DEFASSIGNANYOP_FN): New macro. |
|
2657 |
|
2658 * ov-list.cc (Fsplice): New function. |
|
2659 * oct-obj.cc (octave_value_list::splice): New function. |
|
2660 |
|
2661 * ov.cc (Vresize_on_range_error): No longer static. |
|
2662 * ov.h (Vresize_on_range_error): Provide extern declaration. |
|
2663 |
|
2664 * oct-procbuf.cc (symbols_of_oct_procbuf): Don't declare static. |
|
2665 |
|
2666 * data.cc (Flength): New function. |
|
2667 * ov.h (octave_value::length): New virtual function. |
|
2668 * ov-base.cc (octave_base_value::length): New function. |
|
2669 (octave_base_value::rows, octave_base_value::columns): Move |
|
2670 definitions here, from ov-base.h. Don't return -1. Instead, |
|
2671 gripe about wrong argument type. |
|
2672 * ov-bool-mat.h (octave_bool_matrix::length): New function. |
|
2673 * ov-bool.h (octave_bool::length): Ditto. |
|
2674 * ov-ch-mat.h (octave_char_matrix::length): Ditto. |
|
2675 * ov-complex.h (octave_complex::length): Ditto. |
|
2676 * ov-cx-mat.h (octave_complex_matrix::length): Ditto. |
|
2677 * ov-list.h (octave_list::length): Ditto. |
|
2678 * ov-range.h (octave_range::length): Ditto. |
|
2679 * ov-re-mat.h (octave_matrix::length): Ditto. |
|
2680 * ov-scalar.h (octave_scalar::length): Ditto. |
|
2681 |
|
2682 Tue Oct 27 22:19:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2683 |
|
2684 * ov-list.cc (octave_list::print_raw): Handle case of empty list. |
|
2685 (octave_list::print_name_tag): Likewise. |
|
2686 |
|
2687 * octave.cc (intern_argv): Built-in variable argv is now a list of |
|
2688 strings instead of a string vector. |
|
2689 Always bind argv, making it an empty list if there are no args. |
|
2690 |
|
2691 Mon Oct 26 08:41:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2692 |
|
2693 * xdiv.cc (mx_leftdiv_conform): Explicitly declare args to be |
|
2694 passed as references to const objects. Fix explicit instantiation |
|
2695 requests to match. |
|
2696 (mx_div_conform): Likewise. |
|
2697 |
|
2698 * pt-unop.h (tree_prefix_expression): Reorder constructor args to |
|
2699 put those with default values last. |
|
2700 (tree_postfix_expression): Likewise. |
|
2701 * parse.y: Change all callers. |
|
2702 |
3192
|
2703 Fri Oct 23 12:07:32 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2704 |
3196
|
2705 * utils.cc (Ffile_in_loadpath): New function. |
|
2706 |
|
2707 * defaults.cc (Vload_path, Vdefault_load_path): Now static. |
|
2708 |
|
2709 * help.cc (simple_help): Use Vload_path_dir_path here instead of |
|
2710 trying to reconstruct it from Vload_path. |
|
2711 * fn-cache.cc (octave_fcn_file_name_cache::do_list): Likewise. |
|
2712 (octave_fcn_file_name_cache::update): Likewise. |
|
2713 |
|
2714 * defaults.cc (octave_loadpath): Construct Vload_path_dir_path |
|
2715 using Vdefault_load_path. |
|
2716 (set_default_path): Likewise. |
|
2717 |
|
2718 * defaults.h, defaults.cc (maybe_add_default_load_path): Delete. |
|
2719 |
3192
|
2720 * defaults.cc (Vdefault_load_path): New static variable. |
|
2721 (set_default_path): Set it. |
|
2722 (maybe_add_default_load_path): Use it. |
|
2723 (symbols_of_defaults): Add DEFCONST for DEFAULT_LOADPATH. |
|
2724 Thanks to Rafael Laboissiere <rafael@icp.inpg.fr>. |
|
2725 |
|
2726 * defaults.cc (set_default_path): If OCTAVE_PATH is set in the |
|
2727 environment, call maybe_add_default_load_path on it. |
|
2728 |
|
2729 Tue Oct 20 20:58:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2730 |
|
2731 * defaults.cc (maybe_add_default_load_path): If LOADPATH contains |
|
2732 an embedded "::", insert the default path there too. |
|
2733 |
3189
|
2734 Fri Oct 16 00:52:15 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2735 |
|
2736 * parse.y (in_matrix_or_assign_lhs): New subroutine for lexical |
|
2737 feedback. |
|
2738 (matrix): Use it. |
|
2739 (assign_lhs): Ditto. |
|
2740 * lex.h (lexical_feedback::looking_at_matrix_or_assign_lhs): New |
|
2741 data member. |
|
2742 * lex.l (handle_identifier): Use it to handle keywords like `cd' |
|
2743 as variables in contexts like [ab, cd] = foo (). |
|
2744 |
|
2745 * ov-str-mat.h |
|
2746 (octave_char_matrix_str::octave_char_matrix_str (char c)): |
|
2747 New constructor. |
|
2748 * ov-ch-mat.h (octave_char_matrix::octave_char_matrix (char c)): |
|
2749 New constructor. |
|
2750 * ov.cc (octave_value::octave_value (char c): New constructor. |
|
2751 |
|
2752 * pt-loop.cc (tree_simple_for_command::eval): Handle case of RHS |
|
2753 as string. |
|
2754 |
|
2755 Thu Oct 15 00:56:47 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2756 |
|
2757 * DLD-FUNCTIONS/rand.cc: Declare Fortran subroutines as returning |
|
2758 int, not int*. |
|
2759 |
|
2760 Wed Oct 14 23:51:31 1998 Georg Thimm <thimm@idiap.ch> |
|
2761 |
|
2762 * load-save.cc (Vcrash_dumps_octave_core): New static variable. |
|
2763 (save_user_variables): Only save variables if |
|
2764 Vcrash_dumps_octave_core is true. |
|
2765 (symbols_of_load_save): Add DEFVAR for it here. |
|
2766 (crash_dumps_octave_core): New function. |
|
2767 * octave.cc (maximum_braindamage): Bind crash_dumps_octave_core to |
|
2768 0.0 here. |
|
2769 |
|
2770 Tue Oct 13 22:05:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2771 |
|
2772 * input.cc (read_readline_init_file): New function. |
|
2773 |
|
2774 Thu Oct 8 13:47:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2775 |
|
2776 * oct-procbuf.h (octave_procbuf::wstatus): New data member. |
|
2777 Initialize in constructors. |
|
2778 (octave_procbuf::wait_status): New member function. |
|
2779 * oct-procbuf.cc (octave_procbuf::sys_close): Use class data |
|
2780 member wstatus, not local variable. |
|
2781 * procstream.cc (procstreambase::close): Don't call sys_close directly. |
|
2782 Get subprocess exit status by calling wait_status for our procbuf. |
|
2783 * pt-plot.cc (close_plot_stream): Send "quit" command to gnuplot |
|
2784 before deleting plot_stream. |
|
2785 |
|
2786 |
|
2787 Thu Oct 1 22:39:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2788 |
|
2789 * data.cc (Fis_complex): New function. |
|
2790 |
3185
|
2791 Fri Sep 25 11:50:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2792 |
|
2793 * load-save.cc (write_header): Rename from write_binary_header. |
|
2794 Also write header for Octave ASCII files. |
|
2795 |
|
2796 * load-save.cc (Fsave): Implement -append option. |
|
2797 |
|
2798 * defaults.cc (Frehash): New function. |
|
2799 |
|
2800 Fri Sep 25 11:50:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2801 |
|
2802 * help.cc (help_from_info): Improve error message in case that |
|
2803 info doesn't work. |
|
2804 |
3180
|
2805 Thu Sep 24 10:48:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2806 |
3185
|
2807 * Makefile.in (DLD_XSRC): Replace qzval.cc with qz.cc |
|
2808 |
|
2809 * DLD-FUNCTIONS/balance.cc: Update from A. S. Hodel |
|
2810 <scotte@eng.auburn.edu>. |
|
2811 |
|
2812 * DLD-FUNCTIONS/qz.cc: New file. |
|
2813 |
|
2814 * DLD-FUNCTIONS/qzval.cc: Delete. |
|
2815 |
3180
|
2816 * parse.y (plot_command1): Don't allow it to be empty. |
|
2817 (plot_command): Handle simple `PLOT' and `PLOT ranges' as special |
|
2818 cases here. |
|
2819 |
|
2820 Wed Sep 23 21:10:08 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2821 |
|
2822 * lex.l: Change <MATRIX>{SNLCMT}*\n{SNLCMT}* pattern |
|
2823 to <MATRIX>{S}*{COMMENT}{SNLCMT}* | <MATRIX>{S}*{NL}{SNLCMT}*. |
|
2824 |
|
2825 Fri Sep 4 10:50:00 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2826 |
|
2827 * file-io.cc (Ffwrite): Fix doc string. |
|
2828 |
|
2829 Wed Sep 2 16:22:23 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2830 |
|
2831 * input.cc (match_sans_spaces): Make it work. |
|
2832 |
|
2833 * toplev.cc (quit): Require nargout == 0. |
|
2834 |
|
2835 * input.cc (get_user_input): Only try matching "exit", "quit", and |
|
2836 "return" if debugging. |
|
2837 |
|
2838 Tue Sep 1 12:50:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2839 |
|
2840 * octave.cc: Use -H as single character equivalent of --no-history. |
|
2841 |
|
2842 Sat Aug 29 12:23:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2843 |
|
2844 * oct-obj.cc (octave_value_list::make_argv): If some values are |
|
2845 string vectors, insert all the elements, not just the first. |
|
2846 |
|
2847 Tue Aug 18 16:39:50 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2848 |
|
2849 * oct-stream.cc (octave_base_stream::do_gets): Accept last line of |
|
2850 file even if it doesn't end in a newline character. |
|
2851 |
|
2852 Tue Aug 18 16:25:49 1998 Mumit Khan <khan@xraylith.wisc.edu> |
|
2853 |
|
2854 * xdiv.cc (mx_leftdiv_conform, mx_div_conform): Instantiate correct |
|
2855 templates. |
|
2856 |
|
2857 Thu Jul 30 00:37:43 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2858 |
|
2859 * pt-loop.cc (tree_for_command::eval): Check for range first. |
|
2860 If error occurs when extracting matrix value, return early. |
|
2861 Don't bother to check for string type. |
|
2862 |
|
2863 * ov-ch-mat.h (octave_char_matrix::is_real_matrix): New function. |
|
2864 |
|
2865 Tue Jun 23 15:09:54 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2866 |
|
2867 * parse.y (clear_current_script_file_name): New function. |
|
2868 (parse_fcn_file): Bind current_script_file_name while script is |
|
2869 executing. Use unwind_protect to clear it once the script is |
|
2870 finished. |
|
2871 |
|
2872 * pt-plot.cc (Fgraw): New function. |
|
2873 |
3178
|
2874 Mon Jun 22 22:13:38 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2875 |
|
2876 * variables.cc (is_valid_function): Provide version that takes |
|
2877 function name as string. |
|
2878 |
|
2879 * parse.y (binary_expr): Fix thinko that resulted in incorrect |
|
2880 evaluation of -x^y. Thanks to Richard Allan Holcombe |
|
2881 <raholcom@unity.ncsu.edu>. |
|
2882 (feval): Don't attempt to copy nonexistent arg names. |
|
2883 |
|
2884 Mon Jun 22 21:35:50 1998 Richard Allan Holcombe <raholcom@unity.ncsu.edu> |
|
2885 |
|
2886 * xpow.cc (xpow): Improve efficiency for matrix^(scalar int) case. |
|
2887 |
|
2888 Thu Jun 4 12:42:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2889 |
|
2890 * ov-usr-fcn.cc (octave_user_function::octave_all_va_args): |
|
2891 If num_args_passed < num_named_args, create zero length list. |
|
2892 |
3176
|
2893 Thu May 14 16:23:15 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2894 |
|
2895 * DLD-FUNCTIONS/getrusage.cc: Include sys/types.h too. |
|
2896 |
|
2897 Mon May 11 00:38:45 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2898 |
|
2899 * pager.cc (Fdiary): Don't forget to set write_to_diary file if |
|
2900 just given a file name. |
|
2901 |
|
2902 * input.cc (octave_gets): Only send new line character to |
|
2903 octave_diary if current_input_line is empty or doesn't already end |
|
2904 with a new line character.. |
|
2905 Don't send input from function files or scripts to octave_diary. |
|
2906 |
3174
|
2907 Sun May 3 19:54:38 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2908 |
|
2909 * lex.l (reset_parser): Also call yyrestart if forced_interactive |
|
2910 is true, but not if input_from_startup_file is true. |
|
2911 |
|
2912 Tue Apr 28 14:06:20 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2913 |
|
2914 * oct-procbuf.cc (Vkluge_procbuf_delay): New static variable. |
|
2915 (kluge_procbuf_delay): New function. |
|
2916 (symbols_of_oct_procbuf): New function. |
|
2917 (octave_procbuf::open): Delay Vkluge_procbuf_delay microseconds |
|
2918 after forking. |
|
2919 |
|
2920 Thu Apr 23 15:41:08 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2921 |
|
2922 * defaults.cc (Vload_path_dir_path): New variable. |
|
2923 * utils.cc (file_in_path): Use it. |
|
2924 |
|
2925 * utils.cc (search_path_for_file): Undo previous change. |
|
2926 (file_in_path): Undo previous change. |
|
2927 * defaults.cc (loadpath): Undo previous change. Tilde expansion |
|
2928 is once again handled correctly by the code in |
|
2929 liboctave/pathsearch.cc. |
|
2930 |
|
2931 Mon Apr 20 21:50:34 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2932 |
|
2933 * data.cc (get_dimensions): Allow zeros ([], 3) to work, for |
|
2934 compatibility with Matlab. |
|
2935 |
|
2936 * dynamic-ld.cc [WITH_DL && ! HAVE_DLFCN_H]: Add declarations for |
|
2937 dlopen, dlerror, dlsym, and dlclose. |
|
2938 |
|
2939 * octave.gperf: Handle __FILE__ and __LINE__. |
|
2940 * lex.l (is_keyword): Likewise. |
|
2941 * Makefile.in (oct-gperf.h): Pass -D option to gperf. |
|
2942 Postprocess output of gperf to convert name of static variable |
|
2943 from lookup to gperf_lookup, to avoid conflict with our function |
|
2944 of the same name defined in variables.cc. |
|
2945 |
3168
|
2946 Sat Apr 18 20:17:10 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2947 |
|
2948 * help.cc (USE_GNU_INFO): Delete uses of this macro. |
|
2949 |
3167
|
2950 Thu Apr 16 01:00:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2951 |
|
2952 * dynamic-ld.cc: Only include dlfcn.h if HAVE_DLFCN_H. |
|
2953 |
3165
|
2954 Wed Apr 15 01:03:05 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2955 |
|
2956 * input.cc (Vlast_prompt_time): New global variable. |
|
2957 (octave_gets): Set it. |
3166
|
2958 * ov-fcn.h (octave_function::time_checked): New virtual function |
|
2959 (octave_function::mark_fcn_file_up_to_date): Ditto. |
3165
|
2960 * ov-usr-fcn.h (octave_user_function::time_checked): New function. |
|
2961 (octave_user_function::mark_fcn_file_up_to_date): Ditto. |
|
2962 (octave_user_function::t_checked): New data member. |
|
2963 * variables.cc (symbol_out_of_date): Only check file time stamp if |
|
2964 a prompt has been printed since the last time check. |
|
2965 |
|
2966 * pt-plot.h, pt-plot.cc (subplot_axes): New class. |
|
2967 (subplot): Handle axes. |
|
2968 (Vgnuplot_command_axes): New static variable. |
|
2969 (gnuplot_command_axes): New function. |
|
2970 (symbols_of_pt_plot): DEFVAR gnuplot_command_axes. |
|
2971 * pt-walk.h (tree_walker::visit_subplot_axes): New virtual function. |
|
2972 * parse.y (plot_options): Handle axes. |
|
2973 * lex.l (plot_axes_token): New function. |
|
2974 (is_keyword): Use it. |
|
2975 (is_plot_keyword): Recognize "axes" and "axis". |
|
2976 * lex.h (class lexical_feedback): New field, in_plot_axes. |
|
2977 (lexical_feedback::init): Reset it. |
|
2978 |
|
2979 Tue Apr 14 23:32:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2980 |
|
2981 * parse.y (parse_fcn_file): New arg, force_script. Change callers. |
|
2982 |
3164
|
2983 Fri Apr 10 11:01:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2984 |
|
2985 * help.cc (type): Also print values of variables. |
|
2986 |
3162
|
2987 Wed Apr 8 01:00:58 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2988 |
3164
|
2989 * pr-output.cc (set_format): Set scale to 1.0 if all elements are |
|
2990 int or inf or nan. |
|
2991 |
3162
|
2992 * parse.y (Vwarn_future_time_stamp): New variable. |
|
2993 (symbols_of_parse): Add DEFVAR for it. |
|
2994 (warn_future_time_stamp): New function. |
|
2995 (frob_function_def): Maybe warn about files with future time stamps. |
|
2996 |
|
2997 Thu Apr 2 20:43:45 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2998 |
|
2999 * pt-arg-list.cc (tree_argument_list::convert_to_const_vector): In |
|
3000 error messages, print element numbers starting with 1, not 0. |
|
3001 |
|
3002 Sat Mar 28 15:25:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3003 |
|
3004 * toplev.cc (clean_up_for_exit): New function. |
|
3005 (clean_up_and_exit): Use it. |
|
3006 * sighandlers.cc (my_friendly_exit): Call it instead of |
|
3007 clean_up_and_exit, then do default action for signal. |
|
3008 |
|
3009 * sighandlers.cc (octave_new_handler): Call my_friendly_exit with |
|
3010 signal set to SIGABRT if it is defined, or -1 otherwise. |
|
3011 |
|
3012 * error.cc (verror): Fix thinko in attempt to skip `error: ' tag |
|
3013 when buffering error messages. |
|
3014 * pt-except.cc (tree_try_catch::eval): Reset buffer_error_messages |
|
3015 here if just discarding unwind_protect frame. |
|
3016 |
|
3017 Wed Mar 18 12:35:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3018 |
|
3019 * xpow.cc (elem_xpow): For real-scalar .^ matrix case, result is |
|
3020 complex only if real-scalar is negative and matrix has some |
|
3021 non-integer values. |
|
3022 |
|
3023 Tue Mar 17 17:47:50 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3024 |
|
3025 * pt-plot.cc (Vgnuplot_command_plot, Vgnuplot_command_replot, |
|
3026 Vgnuplot_command_splot, Vgnuplot_command_using, |
|
3027 Vgnuplot_command_with, Vgnuplot_command_title, |
|
3028 Vgnuplot_command_end): New static variables. |
|
3029 (symbols_of_pt_plot): DEFVAR them. |
|
3030 (gnuplot_command_plot, gnuplot_command_replot, |
|
3031 gnuplot_command_splot, gnuplot_command_using, |
|
3032 gnuplot_command_with, gnuplot_command_title, |
|
3033 gnuplot_command_end): New functions. |
|
3034 (open_plot_stream, send_to_plot_stream, tree_plot_command::eval, |
|
3035 subplot_using::print, subplot_style::print, subplot::print, |
|
3036 do_external_plotter_cd, Fgset, Fgshow): Use them instead of the |
|
3037 GPLOT_CMD_PLOT, GPLOT_CMD_REPLOT, GPLOT_CMD_SPLOT, |
|
3038 GPLOT_CMD_USING, GPLOT_CMD_WITH, GPLOT_CMD_TITLE, and |
|
3039 GPLOT_CMD_END macros. |
|
3040 |
3160
|
3041 Fri Feb 27 12:25:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3042 |
|
3043 * help.cc (additional_help_message): Fix www address. |
|
3044 |
|
3045 Tue Feb 24 00:42:59 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3046 |
|
3047 * help.cc (simple_help): Put additional help message first. |
|
3048 (additional_help_message): Add information about web site and |
|
3049 mailing list. |
|
3050 |
3156
|
3051 Fri Feb 20 00:41:06 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3052 |
|
3053 * pt-plot.cc (GPLOT_CMD_REPLOT): Clear before replot. |
|
3054 |
|
3055 * Makefile.in: Better handling of lib flags for linking. |
|
3056 |
|
3057 Thu Feb 19 21:14:30 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3058 |
|
3059 * pt-decl.cc (Vinitialize_global_values): New static variable. |
|
3060 (initialize_global_variables): New function. |
|
3061 (symbols_of_pt_decl): New function. |
|
3062 DEFVAR Vinitialize_global_values and initialize_global_variables. |
|
3063 (tree_global_command::do_init): If initialize_global_variables is |
|
3064 not true and the variable doesn't have an explicit initializer, don't |
|
3065 initialize it. If we are giving it a default value, use the value |
|
3066 of the variable defualt_global_variable_value. |
|
3067 * octave.cc (maximum_braindamage): Set default_global_variable_value |
|
3068 and initialize_global_variables to Matlab-compatible values. |
|
3069 |
|
3070 Wed Feb 18 04:35:31 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3071 |
|
3072 * DLD-FUNCTIONS/besselj.cc: Rename from bessel.cc. |
|
3073 * Makefile.in (DLD_XSRC): Likewise. |
|
3074 |
|
3075 * syscalls.cc (Fvfork): Delete. |
|
3076 |
|
3077 * oct-procbuf.cc: Just use fork. |
|
3078 |
|
3079 * parse.y (feval): Provide version that takes function name |
|
3080 separate from other args. |
|
3081 * parse.h: Declare it. |
|
3082 |
|
3083 * oct-procbuf.cc (octave_procbuf::open): Move declaration of |
|
3084 child_std_end outside of child scope and declare volatile. |
|
3085 |
|
3086 Mon Feb 16 15:04:28 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3087 |
|
3088 * parse.y: Include cstdio, for SEEK_SET. |
|
3089 |
3153
|
3090 Thu Feb 12 22:07:00 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3091 |
|
3092 * system.c: New file. |
|
3093 * Makefile.in (SOURCES): Add it to the list. |
|
3094 |
3148
|
3095 Fri Feb 6 01:23:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3096 |
|
3097 * oct-stream.cc (octave_base_stream::file_number): Rename from fileno. |
|
3098 Change all uses. |
|
3099 |
|
3100 * fsolve.cc (fsolve_option_table): Add missing & to function names. |
|
3101 |
3145
|
3102 Thu Feb 5 02:27:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3103 |
3147
|
3104 * dirfns.cc (Fls): If first attempt at reading process output |
|
3105 fails, sleep once and try again. |
|
3106 * toplev.cc (run_command_and_return_output): Likewise. |
|
3107 |
|
3108 * oct-procbuf.cc (octave_procbuf::open): Use vfork if it is available. |
|
3109 |
|
3110 * syscalls.cc (Fvfork): New function. |
|
3111 |
3145
|
3112 * ov-bool-mat.cc: Only declare assign function if |
|
3113 CXX_NEW_FRIEND_TEMPLATE_DECL is not defined. |
|
3114 |
|
3115 * ov-base.h, ov-bool-mat.h, ov-bool.h, ov-ch-mat.h, ov-complex.h, |
|
3116 ov-cx-mat.h, ov-range.h, ov-re-mat.h, ov-scalar.h: Handle default |
|
3117 args for *_value functions consistently. |
|
3118 |
|
3119 * symtab.cc (maybe_list_cmp_fcn): Declare args as void*, not |
|
3120 void**, then use X_CAST. |
|
3121 |
|
3122 * OPERATORS/op-s-cm.cc: Include mx-cm-s.h. |
|
3123 |
|
3124 * defun-int.h: Include ov-builtin.h, ov-mapper.h, and symtab.h. |
|
3125 (install_builtin_mapper, install_builtin_function, |
|
3126 install_builtin_variable) Use specific types rather than void * in |
|
3127 declaration. |
|
3128 * defun.cc (install_builtin_mapper, install_builtin_function, |
|
3129 install_builtin_variable): Likewise. Eliminate casts. |
|
3130 |
|
3131 * load-save.cc (read_binary_data, read_mat_file_header, |
|
3132 save_binary_data): Use X_CAST, not static_cast. |
|
3133 * unwind-prot.h (unwind_protect::save_ptr): Likewise. |
|
3134 * Map.cc (goodCHptr, index_to_CHptr, CHptr_to_index): Likewise. |
|
3135 * dynamic-ld.cc (octave_dlopen_dynamic_loder::resolve_reference): |
|
3136 Likewise. |
|
3137 |
|
3138 * pt-mat.cc (tm_const::operator bool ()): |
|
3139 (tm_row_const::operator bool ()): Likewise. |
|
3140 * oct-stream.cc (printf_value_cache::operator bool ()): Likewise. |
|
3141 (scanf_format_list::operator bool ()): Likewise. |
|
3142 (printf_format_list::operator bool ()): Likewise. |
|
3143 (octave_stream::operator bool ()): Likewise. |
|
3144 |
|
3145 Wed Feb 4 13:08:29 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3146 |
|
3147 * DLD-FUNCTIONS/minmax.cc: Include cmath, not oct-math.h. |
|
3148 |
|
3149 * syscalls.cc (Fdup2): Convert stream to actual system file id. |
|
3150 |
|
3151 * oct-stream.cc (octave_base_stream::fileno, octave_stream::fileno): |
|
3152 New functions. |
|
3153 |
3141
|
3154 Tue Feb 3 00:24:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3155 |
|
3156 * defaults.cc (exec_path): Append Vbin_dir to std_path. |
|
3157 |
|
3158 * octave.cc (initialize_pathsearch): Set TEXMFDBS, not TEXMF. |
|
3159 Look for OCTAVE_DB_PATH in environment. |
|
3160 Simplify using Vdata_dir and Vlibexec_dir. |
|
3161 |
|
3162 * defaults.h.in (Vdata_dir, Vlibexecdir): Declare new vars. |
|
3163 defaults.cc: Define them. |
|
3164 (set_default_data_dir, set_default_libexecdir): New functions. |
|
3165 (install_defaults): Call them. |
|
3166 |
|
3167 * defaults.h.in (OCTAVE_LIBEXECDIR): Define. |
|
3168 |
|
3169 Mon Feb 2 02:43:16 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3170 |
|
3171 * Makefile.in (install, uninstall): Use $(octlibdir), not $(libdir). |
|
3172 Use mk-libdir-link. |
|
3173 |
|
3174 * defaults.h.in (OCTAVE_OCTLIBDIR): Substitute value. |
|
3175 (Vlib_dir): Delete declaration. |
|
3176 * defaults.cc (Vlib_dir): Delete. |
|
3177 (set_default_lib_dir): Delete. |
|
3178 (install_defaults): Don't call set_default_lib_dir. |
|
3179 (set_default_info_prog): If oct_info_prog is empty, set default to |
|
3180 "info" -- we expect it to be somewhere in the user's path. |
|
3181 |
|
3182 * defun.h (DEFCONST, DEFCONSTX): Eliminate inst_as_fcn and chg_fcn |
|
3183 args. Always pass true for inst_as_fcn and 0 for chg_fcn to |
|
3184 DEFVAR when creating built-in values like `e' or `stderr' that can |
|
3185 be redefined. Change all uses. |
|
3186 |
|
3187 * help.cc (Ftype): Handle script files too. |
|
3188 (Fwhich): Likewise. |
|
3189 |
3136
|
3190 Sat Jan 31 00:00:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3191 |
|
3192 * ov-ch-mat.cc (octave_char_matrix::is_true): Make it work. |
|
3193 * ov-str-mat.h, ov-str-mat.cc (octave_char_matrix_str::is_true): |
|
3194 Delete. |
|
3195 |
|
3196 * load-save.cc (read_ascii_data): Allow strings of length 0. |
|
3197 If we don't find data on the first call, fail with error message. |
|
3198 (do_load): Pass count of items read to read_ascii_data. |
|
3199 Allow `load foo xyz' to work when foo contains only numbers. |
|
3200 |
|
3201 Fri Jan 30 23:46:42 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3202 |
|
3203 * ov-str-mat.h (octave_char_matrix_str::all): Delete. |
|
3204 (octave_char_matrix_str::any): Delete. |
|
3205 * ov-ch-mat.h (octave_char_matrix::all, octave_char_matrix::any): |
|
3206 Call charMatrix::all, charMatrix::any. |
|
3207 |
|
3208 Thu Jan 29 16:25:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3209 |
|
3210 * load-save.cc (read_mat_binary_data): Handle third digit of MOPT |
|
3211 as flag indicating row or column major ordering. |
|
3212 |
3131
|
3213 Wed Jan 28 00:18:17 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3214 |
|
3215 * DLD-FUNCTIONS/dassl.cc (lsode_option_table): |
|
3216 Add missing & to function names. |
|
3217 * DLD-FUNCTIONS/lsode.cc (lsode_option_table): Likewise. |
|
3218 * DLD-FUNCTIONS/quad.cc (quad_option_table): Likewise. |
|
3219 |
|
3220 * Makefile.in (oct-gperf.h): Add -G option to gperf. |
|
3221 |
|
3222 * load-save.cc (get_save_type): Add `UL' and `L' suffixes to large |
|
3223 constant values. For LS_INT, use <= and >= for comparison. |
|
3224 |
|
3225 Mon Jan 26 13:17:59 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3226 |
|
3227 * ov-usr-fcn.cc (Vmax_recursion_depth): New static variable. |
|
3228 (max_recursion_depth): New fucnction |
|
3229 (symbols_of_ov_usr_fcn): DEFVAR max_recursion_depth. |
|
3230 (octave_user_function::do_index_op): Check Vmax_recursion_depth. |
|
3231 |
3130
|
3232 Thu Jan 22 13:45:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3233 |
|
3234 * dynamic-ld.cc (make_dynamic_loader): Fix typo. |
|
3235 |
|
3236 Tue Jan 20 17:02:19 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3237 |
|
3238 * variables.cc (Fexist): If local symbol is undefined, check |
|
3239 global table. |
|
3240 |
|
3241 * pr-output.cc (pr_max_internal): Initial value for result is |
|
3242 -DBL_MAX, not DBL_MIN. |
|
3243 |
3125
|
3244 Thu Jan 8 11:54:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3245 |
|
3246 * xpow.cc (elem_xpow): If second arg of pow is complex, make sure |
|
3247 first arg is also complex. |
|
3248 |
|
3249 * symtab.cc (symbol_table::rename): Properly insert new item at |
|
3250 the front of the list to avoid losing the rest of the items. |
|
3251 |
|
3252 Thu Dec 11 23:30:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3253 |
|
3254 * variables.cc (Fclear): Increment index to skip -x arg. |
|
3255 |
3124
|
3256 Tue Dec 9 02:45:35 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3257 |
|
3258 * Makefile.in (INCLUDES): Don't forget Pix.h. |
|
3259 |
|
3260 * BaseSLList.cc: Don't include nonstandard libg++ header files. |
|
3261 |
3119
|
3262 Sun Nov 30 14:58:56 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3263 |
3124
|
3264 * pr-output.cc: Include cmath, not oct-math. |
|
3265 * sysdep.cc: Likewise. |
|
3266 |
3119
|
3267 * DLD-FUNCTIONS/bessel.cc: New file. |
|
3268 * Makefile.in (DLD_XSRC): Add it to the list. |
|
3269 |
3113
|
3270 Thu Nov 27 23:28:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3271 |
|
3272 * lex.l (handle_string): Constructor for string class takes |
|
3273 (size_t, char) args, not (char, size_t). |
|
3274 |
3111
|
3275 Wed Nov 26 00:39:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3276 |
|
3277 * Makefile.in (OCTAVE_LIBS): Include $(SPECIAL_MATH_LIB) just |
|
3278 ahead of -lcruft. |
|
3279 |
3110
|
3280 Thu Nov 20 15:16:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3281 |
|
3282 * octave.cc (maximum_braindamage): Bind implicit_num_to_str_ok to 1. |
|
3283 * pt-mat.cc (Vimplicit_num_to_str_ok): New static variable. |
|
3284 (implicit_num_to_str_ok): New function. |
|
3285 (symbols_of_pt_mat): DEFVAR implicit_num_to_str_ok. |
|
3286 (tm_row_const::some_str): New data member. |
|
3287 (tm_row_const::some_strings_p): New function. |
|
3288 (tm_row_const::init): Set some_str. |
|
3289 (tm_const::some_str): New data member. |
|
3290 (tm_const::some_strings_p): New function. |
|
3291 (tm_const::init): Set some_str. |
|
3292 (tree_matrix::eval): If Vimplicit_num_to_str_ok is true and some |
|
3293 of the elements are strings, force a string conversion before |
|
3294 returning. |
|
3295 |
|
3296 * parse.y (fold, finish_colon_expression, finish_matrix): |
|
3297 If an error occurs, return the original expression. |
|
3298 Use unwind_protect to restore error_state. |
|
3299 |
|
3300 * ov-ch-mat.h (octave_char_matrix::convert_to_str): Result is |
|
3301 char_matrix_str, not just char_matrix. |
|
3302 |
3107
|
3303 Wed Nov 19 02:05:40 1997 Mumit Khan <khan@dhaka.xraylith.wisc.edu> |
|
3304 |
|
3305 * DLD-FUNCTIONS/filter.cc: Don't include extern template decls if |
3109
|
3306 CXX_NEW_FRIEND_TEMPLATE_DECL is defined. |
3107
|
3307 * ov-cx-mat.cc: Likewise. |
|
3308 * ov-re-mat.cc: Likewise. |
|
3309 * ov-str-mat.cc: Likewise. |
|
3310 |
|
3311 * ov-cx-mat.h (octave_complex_matrix::decrement, |
|
3312 octave_complex_matrix): Use explicit Complex constructor. |
|
3313 |
|
3314 Wed Nov 19 00:08:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3315 |
|
3316 * pt-decl.cc (tree_global_command::do_init): Initialize global |
|
3317 values to `[]'. Only perform explicit initialization once. |
|
3318 |
3103
|
3319 Tue Nov 18 04:27:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3320 |
3105
|
3321 * pr-output.cc (Vfixed_point_format): New variable. |
|
3322 (fixed_point_format): New fucntion. |
|
3323 (symbols_of_pr_output): Add DEFVAR for fixed_point_format. |
|
3324 (set_real_matrix_format): Handle fixed point format |
|
3325 (set_complex_matrix_format): Handle fixed point format |
|
3326 (set_format): New arg, scale in Matrix, ComplexMatrix, Range versions. |
|
3327 (pr_scale_header): New function. |
|
3328 (octave_print_internal): Handle fixed point format in Matrix, |
|
3329 ComplexMatrix, and Range versions. |
|
3330 * octave.cc (maximum_braindamage): Set fixed_point_format to 1.0. |
|
3331 |
3103
|
3332 * utils.cc (do_string_escapes): Move here, from lex.l. |
|
3333 Arg is now const string& instead of char*. |
|
3334 Return new string object instead of modifying arg in place. |
|
3335 (Fdo_string_escapes): New function. |
|
3336 * lex.l (handle_string): Use new version of do_string_escapes. |
3105
|
3337 |
|
3338 * lex.l (Vbackslash_escapes): Delete. |
|
3339 (backslash_escapes): Delete. |
|
3340 (do_string_escapes): Undo previous change. |
|
3341 (eat_whitespace, eat_continuation): Undo previous change. |
|
3342 (handle_string): Undo previous change. |
|
3343 (symbols_of_lex): Undo previous change. |
|
3344 * octave.cc (maximum_braindamage): Undo previous change. |
3103
|
3345 |
3096
|
3346 Fri Nov 14 01:53:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3347 |
3100
|
3348 * parse.y (eval_string (const string&, bool, int&, int)): No |
|
3349 longer static. |
|
3350 * parse.h: Provide declaration. |
|
3351 * input.cc (get_user_input (const octave_value_list&, bool, int)): |
|
3352 New arg, nargout. Pass it to eval_string. |
|
3353 (keyboard): Pass nargout = 0 to get_user_input. |
|
3354 (input): Pass nargout to get_user_input. |
|
3355 |
3098
|
3356 * input.cc (get_user_input (const octave_value_list&, bool)): |
3100
|
3357 Return octave_value_list() if user enters `quit', `exit', or `return'. |
3098
|
3358 If debugging, let eval_string handle the printing chores and |
|
3359 reset error_state before asking for more input. |
|
3360 |
|
3361 * input.cc (Fkeyboard): Unconditionally turn on history here. |
|
3362 |
3096
|
3363 * lex.l (have_continuation, have_ellipsis_continuation): Declare |
|
3364 arg as bool, not int. Change callers. |
|
3365 |
|
3366 * lex.l (Vbackslash_escapes): New static variable. |
|
3367 (backslash_escapes): New function. |
|
3368 (do_string_escapes): Return immediately if ! Vbackslash_escapes. |
|
3369 (eat_whitespace, eat_continuation): Only call have_continuation if |
|
3370 Vbackslash_escapes. |
|
3371 (handle_string): Backslash is only special if Vbackslash_escapes. |
|
3372 (symbols_of_lex): Add DEFVAR for backslash_escapes. |
|
3373 * octave.cc (maximum_braindamage): Set backslash_escapes to 0. |
|
3374 |
3095
|
3375 Thu Nov 13 16:20:40 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3376 |
3096
|
3377 * variables.cc (Fexist): Also return 2 if NAME is a regular file |
|
3378 somewhere in the LOADPATH. |
|
3379 |
3095
|
3380 * data.cc (sumsq): Fix doc string. |
|
3381 |
|
3382 * parse.y (Fsource): Call parse_fcn_file, not parse_and_execute. |
|
3383 |
3092
|
3384 Tue Oct 7 16:51:01 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3385 |
|
3386 * defun-int.h (DEFINE_FUN_INSTALLER_FUN): Set installed to true |
|
3387 after installing the function. |
|
3388 |
3088
|
3389 Thu Sep 25 10:17:26 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3390 |
|
3391 * DLD-FUNCTIONS/filter.cc (Ffilter): Return second output value |
|
3392 even when called with only 3 arguments. |
|
3393 |
3086
|
3394 Mon Sep 22 16:44:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3395 |
|
3396 * DLD-FUNCTIONS/rand.cc (do_rand): Print error if first of two |
|
3397 args is a string but doesn't match "seed". |
3088
|
3398 (Frand, Frandn): Fix doc string. |
3086
|
3399 |
3081
|
3400 Mon Aug 25 10:42:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3401 |
|
3402 * input.cc (get_user_input): Return an empty string if the user |
|
3403 just types RET. |
|
3404 |
3079
|
3405 Thu Jul 31 22:59:04 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3406 |
|
3407 * lex.l <TEXT_FCN>: Ensure that we handle words that begin with |
|
3408 single or double quotes as strings. |
|
3409 |
3074
|
3410 Thu Jul 17 13:06:48 1997 Klaus Gebhardt <gebhardt@crunch.ikp.physik.th-darmstadt.de> |
|
3411 |
|
3412 * DLD-FUNCTIONS/rand.cc (Frand): Use F77_XFCN to call getsd, |
|
3413 setsd, setall, setcgn, dgenunf, and dgennor since they can call |
|
3414 XSTOPX. |
|
3415 |
3072
|
3416 Mon Jul 14 12:54:23 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3417 |
|
3418 * dynamic-ld.cc (octave_dynamic_loader::load_fcn_from_dot_oct_file): |
|
3419 If first attempt to load function fails, prepend and underscore |
|
3420 and try again. |
|
3421 |
|
3422 * Makefile.in (install-inc): If defaults.h, oct-conf.h, or |
|
3423 oct-gperf.h don't exist in the current directory, look in $(srcdir). |
|
3424 |
3068
|
3425 Mon Jul 7 21:14:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3426 |
|
3427 * DLD-FUNCTIONS/qr.cc (Fqr): Correctly handle nargout == 0. |
|
3428 |
3067
|
3429 Wed Jul 2 16:47:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3430 |
|
3431 * matherr.c: New file. Move matherr function here. |
|
3432 * sysdep.cc: From here. |
|
3433 * Makefile.in (DIST_SRC): Add matherr.c to the list. |
|
3434 |
|
3435 * error.cc (handle_message): Avoid bug in g++ snapshot. |
|
3436 |
3065
|
3437 Thu Jun 26 22:04:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3438 |
|
3439 * utils.cc (file_in_path): Add default load path to PATH arg if |
|
3440 it begins or ends with a colon. |
|
3441 |
3060
|
3442 Wed Jun 25 13:31:06 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3443 |
|
3444 * oct-lvalue.h (octave_lvalue::struct_elt_ref): Ensure val is unique. |
|
3445 |
|
3446 Fri Jun 20 12:33:35 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3447 |
|
3448 * toplev.cc (cmd_death_handler): New function. |
|
3449 (run_command_and_return_output): Insert pid of command in |
|
3450 octave_child_list along with pointer to cmd_death_handler so we |
|
3451 can get the exit status without having to block SIGCHLD. |
|
3452 (cleanup_iprocstream): Remove pid of command from octave_child_list. |
|
3453 |
3053
|
3454 Sun Jun 15 16:11:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3455 |
3054
|
3456 * OPERATORS/op-cs-s.cc (ldiv): Doh, v1 is complex, v2 is real. |
|
3457 |
3053
|
3458 * Makefile.in (DISTFILES): Add mkops to the list. |
|
3459 (dist): Correctly link files in DLD-FUNCTIONS, OPERATORS, and |
|
3460 TEMPLATE-INST subdirectories. |
|
3461 |
3040
|
3462 Fri Jun 6 04:30:57 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3463 |
3042
|
3464 * DLD-FUNCTIONS/npsol.cc, DLD-FUNCTIONS/qpsol.cc, |
|
3465 DLD-FUNCTIONS/fsqp.cc: Delete. |
|
3466 * Makefile.in (DLD_XSRC): Remove them from the list. |
|
3467 |
3040
|
3468 * utils.cc (search_path_for_file): New arg, do_tilde_expansion. |
|
3469 If TRUE, perform tilde expansion on path before searching. |
|
3470 (file_in_path): Call search_path_for_file with do_tilde_expansion |
|
3471 set to false, since we've already performed tilde expansion on the |
|
3472 load path. |
|
3473 |
|
3474 * defaults.cc (loadpath): Perform tilde expansion here. |
|
3475 |
3029
|
3476 Thu Jun 5 01:42:39 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3477 |
3034
|
3478 * Makefile.in: Make building of static library optional. |
3036
|
3479 (liboctave.$(SHLEXT_VER)): Add $(SONAME_FLAGS) to command. |
3034
|
3480 |
3033
|
3481 * dynamic-ld.cc (octave_shl_load_dynamic_loader::resolve_reference): |
|
3482 Call shl_findsym with type set to TYPE_UNDEFINED. |
|
3483 |
3029
|
3484 * Makefile.in (stamp-picdir): Delete. |
|
3485 (pic): New target. Don't worry so much about creating pic |
|
3486 directory only when it is really needed. |
|
3487 (stamp-interp): Delete. |
|
3488 (libraries): New target. Depend on shared library directly. |
|
3489 |
3024
|
3490 Wed Jun 4 00:09:42 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3491 |
|
3492 * octave.cc (main): Call dir_path::set_program_name here. |
|
3493 |
3021
|
3494 Tue Jun 3 16:47:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3495 |
3022
|
3496 * variables.cc (symbol_out_of_date): Make it work again. |
|
3497 |
3021
|
3498 * parse.y (parse_and_execute): Move here from toplev.cc |
|
3499 (default_eval_print_flag): Likewise. |
|
3500 (safe_fclose): Likewise. |
|
3501 (eval_string): Likewise. |
|
3502 (Fsource): Likewise. |
|
3503 (Ffeval): Likewise. |
|
3504 (feval): Likewise. |
|
3505 (Feval): Likewise. |
|
3506 (symbols_of_parse): Define default_eval_print_flag here instead of |
|
3507 in varaibles.cc. |
|
3508 (looks_like_octave_copyright): Move here from variables.cc |
|
3509 (gobble_leading_whitespace): Likeiwse. |
|
3510 (is_function_file): Likewise. |
|
3511 (restore_input_stream): Likewise. |
|
3512 (parse_fcn_file): Likewise. |
|
3513 (load_fcn_from_file): Likewise. |
|
3514 (get_help_from_file): Likewise. |
|
3515 |
|
3516 * toplev.cc (syms_of_toplev): Define argv, program_name, and |
|
3517 program_invocation_name here instead of in variables.cc. |
|
3518 |
|
3519 * parse.h (line_editing): Move here from toplev.h. Now bool, not int. |
|
3520 (reading_startup_message_printed) Likewise. |
|
3521 (input_from_startup_file): Likewise. |
|
3522 (input_from_command_line_file): Likewise. |
|
3523 |
|
3524 * load-save.cc: Use bool instead of int where appropriate. |
|
3525 |
|
3526 * input.h (enum echo_state): Move here from variables.h. |
|
3527 (Vecho_executing_commands): Likewise. Now bool, not int. |
|
3528 * input.cc (echo_executing_commands): Move here from variables.cc. |
|
3529 (symbols_of_input): Define echo_executing_commands here instead of |
|
3530 in variables.cc. |
|
3531 |
|
3532 * octave.cc (program_invocation_name): Don't define. |
|
3533 (intern_argv): Don't set program_invocation_name here. |
|
3534 (main): Call octave_env::set_program_name here, not in intern_argv. |
|
3535 |
|
3536 * toplev.cc (quitting_gracefully): Move here from octave.h and |
|
3537 make static bool instead of extern int. |
|
3538 |
|
3539 * error.cc (bind_global_error_variable, clear_global_error_variable): |
|
3540 Move here from variables.cc. |
|
3541 (symbols_of_error): Define error_text here instead of in variables.cc. |
|
3542 |
|
3543 * pager.cc (write_to_diary_file): Now bool, not int. |
|
3544 (really_flush_to_pager): Likewise. |
|
3545 (flushing_to_pager): Likewise. |
|
3546 * sighandlers.h (can_interrupt): Likewise. |
|
3547 * error.h (buffer_error_messages): Likewise. |
|
3548 * oct-hist.h (input_from_tmp_history_file, Vsaving_history): Likewise. |
|
3549 * input.h (forced_interactive): Likewise. |
|
3550 (get_input_from_eval_string): Likeiwse. |
|
3551 (reading_script_file): Likeiwse. |
|
3552 (reading_fcn_file): Likeiwse. |
|
3553 (interactive): Likewise. |
|
3554 |
|
3555 * unwind-prot.cc (saved_variable::saved_variable (bool *, bool)): |
|
3556 Set type_tag to boolean, not int. |
|
3557 |
3016
|
3558 Mon Jun 2 00:40:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3559 |
|
3560 * variables.h (Octave_builtin_fcn): Delete typedef. |
|
3561 |
|
3562 * help.cc (make_name_list): Move here from variables.cc. |
|
3563 (keyword_help, names): Now static. |
|
3564 (struct help_list): Move declaration here from help.h. |
|
3565 |
|
3566 * oct-hist.cc (Vhistory_file, Vhistory_size, Vsaving_history): |
|
3567 Move here from variables.cc. |
|
3568 (symbols_of_oct_hist): New function. |
|
3569 |
|
3570 * version.h: Protect against multiple inclusion. |
|
3571 |
|
3572 * defun.cc (check_version): New function. |
|
3573 * defun-int.h (DEFINE_FUN_INSTALLER_FUN): Use it. |
|
3574 |
|
3575 * help.h, help.cc (additional_help_message): Now extern. |
|
3576 (operator_help): Now static. |
|
3577 |
|
3578 * defun.cc (print_usage): Move here from help.cc |
|
3579 * DLD-FUNCTIONS/*.cc, data.cc, dirfns.cc, file-io.cc, input.cc, |
|
3580 load-save.cc, octave.cc, ov-list.cc, ov-typeinfo.cc, |
|
3581 ov-usr-fcn.cc, pager.cc, pr-output.cc, pt-plot.cc, strfns.cc, |
|
3582 syscalls.cc, sysdep.cc, utils.cc, toplev.cc: |
|
3583 Don't include help.h. |
|
3584 |
|
3585 * TEMPLATE-INST/Array-sym.cc: New file. |
|
3586 |
|
3587 * load-save.cc (do_load): Don't use ostream::form. |
|
3588 * pr-output.cc: Likewise, at least where it is easy to do so. |
|
3589 * oct-stream.cc: Ditto. |
|
3590 |
|
3591 * symtab.h (symbol_record::symbol_def::rows): New function. |
|
3592 (symbol_record::symbol_def::columns): Ditto. |
|
3593 (symbol_record::symbol_def::type_name): Ditto. |
|
3594 (symbol_record::rows): Ditto |
|
3595 (symbol_record::columns): Ditto |
|
3596 (symbol_record::type_name): Ditto |
|
3597 |
|
3598 * symtab.h, symtab.cc (symbol_record::hides_fcn): New function. |
|
3599 (symbol_record::hides_builtin): Ditto. |
|
3600 (symbol_record::print_symbol_info_line): Ditto. |
|
3601 (symbol_table::long_list): Delete. |
|
3602 (symbol_table::symbol_list): New function. |
|
3603 (symbol_table::maybe_list): Delete argc arg. |
|
3604 (symbol_table::name_list): Rename from symbol_table::list. |
|
3605 Change all callers. |
|
3606 |
|
3607 * symtab.h, symtab.cc (class symbol_record_info): Delete. |
|
3608 |
|
3609 * symtab.cc (matches_patterns): Use vector form of glob_match. |
|
3610 |
|
3611 Sun Jun 1 14:04:26 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3612 |
|
3613 * pt-check.h, pt-check.cc: New files, for semantic checking of |
|
3614 parse trees. |
|
3615 |
|
3616 * symtab.h (class symbol_def): Now nested in symbol_record class. |
|
3617 (enum TYPE): Move from symbol_def to symbol record class. Change |
|
3618 all uses. |
|
3619 |
|
3620 * symtab.h, symtab.cc (symbol_table::maybe_list): New function, |
|
3621 from variables.cc. Change all uses. |
|
3622 |
|
3623 * pt-idx.h (tree_identifier::lvalue_ok): New function. |
|
3624 * pt-id.h (tree_index_expression::lvalue_ok): Likewise. |
|
3625 * pt-indir.h (tree_indirect_ref::lvalue_ok): Likewise. |
|
3626 |
|
3627 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_oct_obj): Delete. |
|
3628 * pt-walk.h (tree_walker::visit_oct_obj): Delete declaration. |
|
3629 |
|
3630 * lex.h (class lexical_feedback): Delete maybe_screwed_again. |
|
3631 * lex.l (lexical_feedback::init): Don't set it. |
|
3632 |
|
3633 Fri May 30 16:07:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3634 |
|
3635 * mappers.cc: Include <cfloat> here. |
|
3636 |
|
3637 Tue May 27 10:08:43 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3638 |
|
3639 * toplev.cc (eval_string): Don't index tmp if it is empty. |
|
3640 |
|
3641 Sat May 24 00:18:41 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3642 |
|
3643 * load-save.cc (valid_identifier): Move here and make static. |
|
3644 * symtab.h, symtab.cc (valid_identifier): Delete declaration and |
|
3645 definition. |
|
3646 |
|
3647 Fri May 23 22:54:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3648 |
|
3649 * symtab.h (symbol_def::symbol_def): Use initializer list instead |
|
3650 of calling init_state. |
|
3651 (symbol_def::init_state): Delete. |
|
3652 |
|
3653 * symtab.cc (symbol_table::print_stats): New function. |
|
3654 * variables.cc (F__dump_symtab_info__): New function. |
|
3655 |
|
3656 * symtab.h, symtab.cc (symbol_table::hash): Return masked value. |
|
3657 (symbol_table::table_size): New data member. |
|
3658 (symbol_table::symbol_table): Set size of table in constructor. |
|
3659 (HASH_TABLE_SIZE): Replace uses with table_size. |
|
3660 (HASH_MASK): Delete. |
|
3661 * variables.cc (initialize_symbol_tables): Set top-level and |
|
3662 global symbol table sizes here. |
|
3663 |
2994
|
3664 Thu May 22 13:32:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3665 |
|
3666 * dynamic-ld.cc (octave_shl_load_dynamic_loader::resolve_reference): |
|
3667 Call shl_findsym with type set to TYPE_PROCEDURE. Pass the |
|
3668 address of the pointer we want to define. |
|
3669 |
2993
|
3670 Wed May 21 16:30:25 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3671 |
|
3672 * DLD-FUNCTIONS/time.cc (extract_tm): Avoid memory leak in dealing |
|
3673 with time zone. |
|
3674 |
|
3675 * Makefile.in (install-in): Use new mk-includedir-link macro. |
|
3676 (install-lib): Install in $octlibdir. Use new mk-libdir-link macro. |
|
3677 |
|
3678 Tue May 20 01:24:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3679 |
|
3680 * ov-list.cc (Flist): Rename from Fmake_list. |
|
3681 |
|
3682 Mon May 19 14:45:58 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3683 |
|
3684 * octave.cc (maximum_braindamage): Set default_eval_print_flag to 0. |
|
3685 |
|
3686 Sat May 17 16:32:23 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3687 |
|
3688 * defaults.cc (set_default_editor): Default is now Emacs, not vi. |
|
3689 |
2984
|
3690 Fri May 16 00:07:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3691 |
2991
|
3692 * pt-idx.cc (tree_index_expression::name): New function. |
|
3693 |
|
3694 * pt.cc (tree::str_print_code): New file, new convenience function. |
|
3695 * pt-arg-list.cc (tree_argument_list::get_arg_names): Use it. |
|
3696 * pt-assign.cc (tree_simple_assignment::rvalue): Likewise. |
|
3697 (tree_multi_assignment::rvalue): Likewise. |
|
3698 |
2990
|
3699 * pt-colon.h (tree_colon_expression::save_base): New data memmber. |
|
3700 (tree_colon_expression::preserve_base): New function. |
|
3701 * parse.y (finish_colon_expression): When converting to a simple |
|
3702 expression, be sure to delete the original colon expression but |
|
3703 not the base value. |
|
3704 |
|
3705 * pt-mat.cc (tree_matrix::~tree_matrix): Actually do something. |
|
3706 |
2987
|
3707 * pt-all.h: New file. |
|
3708 * parse.y, lex.l, pt-pr-code.cc: Use it. |
|
3709 |
|
3710 * pt.h: Rename from pt-base.h. |
|
3711 |
|
3712 * All parse tree classes: Add private copy constructors and |
|
3713 assignment operators to prevent copying. |
|
3714 |
|
3715 * pt-base.cc: Delete. |
|
3716 |
2985
|
3717 * unwind-prot.h, unwind-prot.cc: Make a bit more object-oriented. |
|
3718 Change all uses of unwind_protect stuff to match. |
|
3719 |
|
3720 * pt-jump.h, pt-jump.cc (breaking, continuing, returning): |
|
3721 Make these flags static members of the corresponding class. |
|
3722 Change all uses. |
|
3723 |
2984
|
3724 * pt-assign.cc (tree_simple_assignment_expression::eval, |
|
3725 tree_multi_assignment_expression::eval): Clear lvalue index here. |
|
3726 |
|
3727 * oct-lvalue.cc (octave_lvalue::assign): Don't clear index here. |
|
3728 * oct-lvalue.h (octave_lvalue::clear_index): New function. |
|
3729 (octave_lvalue::set_index): Rename from octave_lvalue::index. |
|
3730 Change all callers. |
|
3731 |
2976
|
3732 Thu May 15 11:48:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3733 |
2983
|
3734 * pt-select.h, pt-select.cc (class tree_if_command_list, |
|
3735 class tree_if_clause, class tree_switch_case_list, |
|
3736 class tree_switch_case): Move here from pt-misc.h, pt-misc.cc. |
|
3737 * pt-decl.h, pt-decl.cc (class tree_decl_init_list, |
|
3738 class tree_decl_elt): Move here from pt-mist.h, pt-misc.cc |
|
3739 |
|
3740 * pt-arg-list.h, pt-stmt.h: New files, extracted from pt-misc.h. |
|
3741 * pt-arg-list.cc, pt-stmt.cc: New files, extracted from pt-misc.cc. |
|
3742 |
|
3743 * pt-decl.h, pt-except.h, pt-jump.h, pt-loop.h, pt-select.h: |
|
3744 New files, extraced from pt-cmd.h. |
|
3745 * pt-decl.cc, pt-except.cc, pt-jump.cc, pt-loop.cc, pt-select.cc: |
|
3746 New files, extraced from pt-cmd.cc. |
|
3747 |
2980
|
3748 * pt-unop.h, pt-binop.h, pt-colon.h, pt-idx.h, pt-assign.h: |
|
3749 New files, extracted from pt-exp.h |
|
3750 * pt-unop.cc, pt-binop.cc, pt-colon.cc, pt-idx.cc, pt-assign.cc: |
|
3751 New files, extracted from pt-exp.cc |
|
3752 * pt-exp.h, pt-exp.cc: Rename from pt-exp-base.h, pt-exp-base.cc. |
|
3753 |
2979
|
3754 * oct-lvalue.h: Rename from oct-var-ref.h. Rename class from |
|
3755 octave_variable_reference to octave_lvalue. Change all uses. |
|
3756 * oct-lvalue.cc: Rename from oct-var-ref.cc. |
|
3757 |
2978
|
3758 * variables.cc (bind_ans): Only bind ans and print result if value |
|
3759 is defined. |
|
3760 |
2976
|
3761 * defun.cc: New file. Move functions for installing objects in |
|
3762 the symbol table here from variables.cc. |
|
3763 |
|
3764 * oct-obj.h, oct-obj.cc: Add custom allocator, fwiw. |
|
3765 |
|
3766 * toplev.cc (main_loop): Correctly increment command number. |
|
3767 |
|
3768 * TEMPLATE-INST/SLList-tm.cc: Don't instantiate lists of pointers |
|
3769 to tree_matrix_row objects. |
|
3770 * TEMPLATE-INST/SLList-misc.cc: Do instantiate lists of pointers |
|
3771 to tree_argument_list objects. |
|
3772 |
|
3773 * DLD-FUNCTIONS/dassl.cc: Update to use new octave_function |
|
3774 interface to user-supplied functions. |
|
3775 * DLD-FUNCTIONS/fsolve.cc: Likewise. |
|
3776 * DLD-FUNCTIONS/lsode.cc: Likewise. |
|
3777 * DLD-FUNCTIONS/npsol.cc: Likewise. |
|
3778 * DLD-FUNCTIONS/quad.cc: Likewise. |
|
3779 |
|
3780 * dynamic-ld.h, dynamic-ld.cc (builtin_fcn_installer typedef): |
|
3781 Rename from builtin_fcn. |
|
3782 (octave_dynamic_loader::load_fcn_from_dot_oct_file): |
|
3783 Simplify by using new installer function defined by DEFUN_DLD. |
|
3784 |
|
3785 * defun-dld.h (DEFUN_DLD): Use DEFINE_FUN_INSTALLER_FUN instead of |
|
3786 DEFINE_FUN_STRUCT_FUN. |
|
3787 * defun.h (DEFUN_MAPPER): Use DEFUN_MAPPER_INTERNAL. |
|
3788 * defun-int.h (DEFVAR_INTERNAL): Rename from DEFVAR_INT and move |
|
3789 here from defun.h. Change all uses. |
|
3790 (DEFUN_MAPPER_INTERNAL): New macro. |
|
3791 (DEFINE_FUN_INSTALLER_FUN): New macro to define function that the |
|
3792 dynamic loader calls to do all the work of installing a new function. |
|
3793 (DEFINE_FUN_STRUCT_FUN): Delete. |
|
3794 |
|
3795 * parse.y: Rewrite to handle more general expressions. |
|
3796 * lex.l: Corresponding changes. |
|
3797 |
|
3798 * pt-walk.h, pt-pr-code.h, pt-pr-code.cc: Cope with new parse tree |
|
3799 object structure. |
|
3800 |
|
3801 * pt-misc.cc (class tree_for_command): Split into |
|
3802 tree_simple_for_command and tree_complex_for_command classes. |
|
3803 |
|
3804 * pt-misc.h, pt-misc.cc (tree_statement::eval): Handle identifier |
|
3805 lookup and printing and binding ans here. |
|
3806 (tree_statement_list::eval): Simplify. |
|
3807 (tree_argument_list::all_elements_are_constant): New function. |
|
3808 (class tree_decl_elt): Now contains id and expr, not an assignment |
|
3809 expression. |
|
3810 |
|
3811 * pt-exp-base.h pt-exp.h pt-id.h pt-indir.h pt-mat.h pt-const.h, |
|
3812 pt-exp-base.cc pt-exp.cc pt-id.cc pt-indir.cc pt-mat.cc pt-const.cc: |
|
3813 Replace eval functions with rvalue and lvalue functions. |
|
3814 Change all uses. |
|
3815 (lvalue_ok, rvalue_ok): New functions, for future compile-time |
|
3816 semantic checks. |
|
3817 |
|
3818 * oct-var-ref.h (is_defined, is_map): New functions. |
|
3819 |
|
3820 * pt-exp.h (class tree_oct_obj): Delete. |
|
3821 |
|
3822 * variables.cc (extract_function, is_valid_function): Return |
|
3823 pointer to octave_function, not octave_symbol. |
|
3824 (link_to_global_variable): Rewrite. Handle errors in |
|
3825 symbol_record::mark_as_linked_to_global. |
|
3826 |
|
3827 * symtab.h, symtab.cc (class symbol_def, class symbol_record): |
|
3828 Symbols are now stored as octave_value objects only. |
|
3829 |
|
3830 * ov.cc (install_types): Register function types here. |
|
3831 * ov-fcn.h, ov-fcn.cc, ov-builtin.h, ov-builtin.cc, ov-mapper.h, |
|
3832 ov-mapper.cc, ov-usr-fcn.h, ov-usr-fcn.cc: New classes for |
|
3833 functions as values. |
|
3834 * ov.h (class octave_value): Don't derive from octave_symbol. |
|
3835 * oct-fcn.h, oct-fcn.cc, oct-builtin.h, oct-builtin.cc, |
|
3836 oct-mapper.h, oct-mapper.cc, oct-usr-fcn.h, oct-usr-fcn.cc, |
|
3837 oct-sym.h, oct-sym.cc: Delete. |
|
3838 |
2963
|
3839 Sun May 11 17:51:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3840 |
|
3841 * help.cc (Ftype): Make it work again for functions. |
|
3842 |
|
3843 * pt-pr-code.cc (tree_print_code::print_parens): New function. |
|
3844 Use it in other tree_print_code functions to handle printing all |
|
3845 the parens that we found when parsing the expression, not just one |
|
3846 pair. |
|
3847 * pt-exp-base.h (tree_expression::paren_count): Rename from |
|
3848 is_in_parens. |
|
3849 * parse.y (maybe_warn_assign_as_truth_value): Use new name. |
|
3850 |
|
3851 * parse.y (constant): New non-terminal. |
|
3852 (simple_expr1): Use it. |
|
3853 |
|
3854 * parse.y (make_unary_op): Delete. |
|
3855 (simple_expr1): Where appropriate, use make_prefix_op and |
|
3856 make_postfix_op instead of make_unary_op. Allow increment and |
|
3857 decrement ops to work on expressions, not just identifiers. |
|
3858 (make_prefix_op, make_postfix_op): Arg is expression, not identifier. |
|
3859 Handle old unary_op cases too. |
|
3860 (fold (tree_unary_expression *)): Delete. |
|
3861 * pt-exp.h, pt-exp.cc (tree_prefix_expression::eval): Handle unary |
|
3862 minus and not here. |
|
3863 (tree_postfix_expression::eval): Likewise, for transpose and hermitian. |
|
3864 (class tree_prefix_expression, class tree_postfix_expression): |
|
3865 Derive from tree_unary_expression. Delete identifier member. |
|
3866 Delete ident member function. |
|
3867 (tree_unary_expression): Don't handle evaluation here. |
|
3868 * pt-exp-base.h (mark_in_parens): No longer virtual. Return this. |
|
3869 (reference): New virtual function. |
|
3870 (class tree_expression): Don't handle expression type here. |
|
3871 * pt-mvr-base.h (tree_multi_val_ret::tree_multi_val_ret): Likewise. |
|
3872 * pt-mvr.h, pt-mvr.cc (tree_multi_assignment_expression): Likewise. |
|
3873 * pt-walk.h (visit_unary_expression): Delete declaration. |
|
3874 * pt-pr-code.h, pt-pr-code.cc (visit_unary_expression): Delete. |
|
3875 (visit_prefix_expression): Use operand(), not ident(). |
|
3876 new, visit_postfix_expression): |
|
3877 * pt-id.h, pt-id.cc (increment, decrement): Delete. |
|
3878 |
|
3879 * pt-misc.cc (tree_parameter_list::define_from_arg_vector): Get a |
|
3880 reference to each element and use the assignment operator instead |
|
3881 of tree_identifier::define. |
|
3882 * pt-id.h, pt-id.cc (tree_identifier::define): Delete versions |
|
3883 that take octave_value and octave_symbol args. |
|
3884 |
|
3885 Sat May 10 23:32:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3886 |
|
3887 * pt-indir.h, pt-indir.cc (tree_indirect_reference::value): Delete. |
|
3888 |
|
3889 * oct-var-ref.cc (octave_variable_ref::assign): Clear idx after |
|
3890 assignment. |
|
3891 |
2976
|
3892 * octave_value classes: Add is_constant, is_function, and |
|
3893 function_value functions. |
|
3894 |
2963
|
3895 * ov.h, ov.cc (assign): Return void, not reference to octave_value. |
|
3896 (do_index_op): Rename, from index. |
|
3897 (do_struct_elt_index_op): Rename, from struct_elt_val. |
|
3898 Add version that accepts index arg. |
|
3899 Change all uses and derived classes to match. |
|
3900 * pt-const.h (index): Delete. |
|
3901 * oct-var-ref.h, oct-var-ref.cc (value): Handle indexed structure |
|
3902 ops here too. |
|
3903 |
2949
|
3904 Fri May 9 07:40:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3905 |
2958
|
3906 * pt-exp.cc (print_rhs_assign_val, symbols_of_pt_exp): New functions. |
|
3907 (Vprint_rhs_assign_val): New static variable. |
|
3908 (tree_simple_assignment_expression::eval): Use it to optionally |
|
3909 allow the rhs (which is the result) of an assignment to be printed |
|
3910 instead of the left. |
|
3911 |
2955
|
3912 * pt-exp.cc (tree_simple_assignment_expression::eval): Use new |
|
3913 octave_variabl_reference::index function to handle indexing. |
|
3914 |
|
3915 * oct-var-ref.h, oct-var-ref.cc (idx): New data member. |
|
3916 (octave_variable_reference::index): Set it. |
|
3917 (octave_variable_reference::assign): Handle indexing here. |
|
3918 Delete version of this function htat takes index arg. |
|
3919 |
|
3920 * variables.h (struct builtin_varaible): Delete. |
|
3921 * variables.cc (install_builtin_variable): Take all elts of |
|
3922 builtin_variable struct directly. |
|
3923 * defun.h (DEFVAR_INT): Call install_builtin_variable directly. |
|
3924 |
|
3925 * symtab.h, defun-int.h: Don't include variables.h. |
|
3926 |
|
3927 * symtab.h (symbol_record::sv_function): Move typedef here. |
|
3928 * variables.h: From here. |
|
3929 |
|
3930 * oct-var-ref.h, oct-var-ref.cc: New files for |
|
3931 octave_variable_reference class, extracted from variables.h and |
|
3932 variables.cc |
2956
|
3933 * Makefile.in: Add them to the appropriate lists. |
2955
|
3934 |
|
3935 * oct-obj.h (octave_value_list::empty): New function. |
|
3936 |
2949
|
3937 * variables.h (class octave_variable_reference): Rewrite to work |
|
3938 as a proxy class to store a pointer to octave_value and, |
|
3939 optionally, the change function to call and the name of the |
|
3940 structure element we are referencing. Handle assignment, |
|
3941 increment, decrement, and value operations. |
|
3942 |
2956
|
3943 Thu May 8 23:40:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3944 |
2949
|
3945 * ov-re-mat.h, ov-re-mat.cc (struct_elt_ref, struct_elt_val, |
|
3946 assign_struct_elt): Provide functions for looking up and setting |
|
3947 matrix dimensions. |
|
3948 |
|
3949 * symtab.cc (symbol_record::define): Don't call sv_fcn here. |
|
3950 Don't save and restore value here. |
|
3951 (symbol_record::define_builtin_var): Do call sv_fcn here. |
|
3952 (symbol_record::variable_reference): Don't make value unique here. |
|
3953 Return pointer to sv_fcn in octave_variable_reference. |
|
3954 |
|
3955 * pt-misc.cc (tree_parameter_list::initialize_undefined_elements): |
|
3956 Simplify. |
|
3957 |
|
3958 * pt-id.h, pt-id.cc (tree_identifier::reference): Return |
|
3959 octave_variable_reference, not octave_value&. |
|
3960 * symtab.h, symtab.cc (symbol_record::variable_reference): Ditto. |
|
3961 * pt-indir.h, pt-indir.cc (tree_indirect_ref::reference): Ditto. |
|
3962 Simplify too. |
|
3963 |
|
3964 * pt-const.h (tree_constant::reference, tree_constant::value, |
|
3965 tree_constant::assign): Delete unnecessary functions. |
|
3966 * pt-id.h, pt-id.cc (tree_identifier::assign): Ditto. |
|
3967 |
|
3968 * pt-cmd.cc (tree_for_command::do_for_loop_once): Simplify. |
|
3969 |
|
3970 * ov.h, ov.cc, ov-base.h, ov-base.cc, ov-struct.h, ov-struct.cc |
|
3971 (struct_elt_ref): New arg, octave_value* parent. |
|
3972 Allow deferred lookup. Return octave_variable_reference, not |
|
3973 octave_value&. |
|
3974 |
|
3975 * ov.h, ov.cc, ov-re-mat.h, ov-re-mat.cc (assign_struct_elt): |
|
3976 New virtual functions. |
|
3977 |
|
3978 * ov.h, ov.cc (Vresize_on_range_error): Now static. |
|
3979 |
|
3980 * pt-mvr.cc (tree_index_expression::eval): Delete redundant check |
|
3981 of error_state. |
|
3982 |
2944
|
3983 Wed May 7 21:17:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3984 |
|
3985 * input.cc (generate_completion): Rename from command_generator. |
|
3986 Use string objects instead of char*. |
|
3987 (generate_possible_completions): Let qsort also make matches unique. |
|
3988 (initialize_command_input): Register generate_completion with the |
|
3989 command_editor class. |
|
3990 (completion_matches): Simplify using generate_completion. |
|
3991 |
|
3992 * pt-pr-code.cc (tree_print_code::visit_constant): For val, call |
|
3993 print_raw, not print. |
|
3994 |
|
3995 * oct-usr-fcn.h (octave_user_function::argn_sr): New data member. |
|
3996 (octave_user_function::install_automatic_vars): Rename from |
|
3997 install_nargin_and_nargout. |
|
3998 (octave_user_function::bind_automatic_vars): Rename from |
|
3999 bind_nargin_and_nargout. |
|
4000 * oct-usr-fcn.cc (octave_user_function::eval): Extract arg names |
|
4001 from args vector and bind them to argn. |
|
4002 * oct-obj.h (octave_value_list::names): New data member. |
|
4003 * oct-obj.cc (octave_value_list::stash_name_tags): New function. |
|
4004 (octave_value_list::name_tags): Ditto. |
|
4005 * pt-const.h, pt-const.cc (tree_constant::print_raw): New function. |
|
4006 * pt-misc.h, pt-misc.cc (tree_argument_list::get_arg_names): |
|
4007 New function. |
|
4008 * pt-mvr.h, pt-mvr.cc (class index_expression): Cache arg names. |
|
4009 * toplev.cc (feval): Now static. Handle arg names. |
|
4010 |
|
4011 * mkops: Cope with moving files defining operators to OPERATORS |
|
4012 subdirectory. |
|
4013 |
2937
|
4014 Tue May 6 00:48:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4015 |
|
4016 * DLD-FUNCTIONS/getgrent.cc: Use new octave_group class. |
|
4017 * DLD-FUNCTIONS/getpwent.cc: Use new octave_passwd class. |
|
4018 |
|
4019 * syscalls.cc: Simplify by using new functions defined in |
|
4020 liboctave/oct-syscalls.cc. |
|
4021 |
|
4022 * file-io.cc (Ftmpnam): Accept DIR and PREFIX args. |
|
4023 |
2929
|
4024 Mon May 5 00:54:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4025 |
2932
|
4026 * ov-str-mat.cc (octave_char_matrix_str::print_name_tag): Print |
|
4027 empty strings on one line. |
|
4028 |
2929
|
4029 * DLD-FUNCTIONS, OPERATORS, and TEMPLATE-INST: New subdirectories. |
|
4030 Move appropriate files to new directories. |
|
4031 * Makefile.in: Add DLD-FUNCTIONS, OPERATORS, and TEMPLATE-INST |
|
4032 directories to VPATH. Fix rules to work with new directory |
|
4033 structure. |
|
4034 |
2927
|
4035 Sun May 4 22:40:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4036 |
|
4037 * input.cc (initialize_command_input): Rename from |
|
4038 initialize_readline. |
|
4039 (gnu_readline, octave_gets, get_user_input): Simplify, return |
|
4040 string, not char *. |
|
4041 |
|
4042 * Many of other files: Miscellaneous changes to go along with the |
|
4043 changes described in the liboctave/ChangeLog for May 4. More code |
|
4044 moved from here to liboctave. |
|
4045 |
|
4046 Fri May 2 19:50:33 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4047 |
|
4048 * pathlen.h: Move to ../liboctave. |
|
4049 |
2921
|
4050 Thu May 1 21:50:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4051 |
|
4052 * variables.cc (get_struct_elts): New fucntion. |
|
4053 (looks_like_struct, generate_struct_completions): Move here from |
|
4054 input.cc, rewrite, and make work again. |
|
4055 |
2916
|
4056 Wed Apr 30 00:24:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4057 |
|
4058 * ov-base.h, ov-bool-mat.cc, ov-bool-mat.h, ov-bool.cc, ov-bool.h, |
|
4059 ov-ch-mat.cc, ov-ch-mat.h, ov-complex.cc, ov-complex.h, |
|
4060 ov-cx-mat.cc, ov-cx-mat.h, ov-file.cc, ov-file.h, ov-list.cc, |
|
4061 ov-range.cc, ov-range.h, ov-re-mat.cc, ov-re-mat.h, ov-scalar.cc, |
|
4062 ov-scalar.h, ov-str-mat.cc, ov-struct.cc, ov.h (scalar_value): |
|
4063 New function. Same as double_value, but name is consistent with |
|
4064 octave_scalar class. |
|
4065 |
|
4066 * op-fil-b.cc, op-fil-cm.cc, op-fil-lis.cc, op-fil-rec.cc, |
|
4067 op-fil-str.cc, op-fil-bm.cc, op-fil-cs.cc, op-fil-m.cc, |
|
4068 op-fil-s.cc: New files. |
|
4069 |
|
4070 * ops.h (ASSIGNOPDECL, DEFASSIGNOP, DEFASSIGNOP_FN, CONVDECL, |
|
4071 DEFCONV, BINOPDECL, DEFBINOPX, DEFBINOP, DEFBINOP_OP, DEFBINOP_FN, |
|
4072 BINOP_NONCONFORMANT): New macros. |
|
4073 * op-b-b.cc, op-bm-bm.cc, op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, |
|
4074 op-cm-s.cc, op-cs-cm.cc, op-cs-cs.cc, op-cs-m.cc, op-cs-s.cc, |
|
4075 op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, op-s-cm.cc, |
|
4076 op-s-cs.cc, op-s-m.cc, op-s-s.cc, op-str-str.cc: Use them. |
|
4077 |
|
4078 * Makefile.in (octave): Also depend on ops.o. |
|
4079 |
|
4080 * builtins.h: Delete. |
|
4081 * octave.cc: Add extern declaration here. |
|
4082 |
|
4083 * mappers.h: Delete. |
|
4084 * Makefile.in (INCLUDES): Delete from list. |
|
4085 * mkbuiltins: Add extern declaration in builtins.cc. |
|
4086 |
|
4087 * mkops: New file. |
|
4088 * ops.cc: Delete. |
|
4089 * Makefile.in (SOURCES): Delete from the list. |
|
4090 (ops.cc): New target. |
|
4091 (OP_SOURCES): New list. Move all op-*.cc files here from SOURCES. |
|
4092 Add $(OP_SOURCES) to SOURCES list. |
|
4093 |
|
4094 * variables.cc (symbols_of_variables): No longer static. |
|
4095 * ov.cc (symbols_of_ov): Rename from symbols_of_value. |
|
4096 |
|
4097 * ov-base.h: Delete declaration for install_base_type_conversions. |
|
4098 * op-b-b.h, op-bm-bm.h, op-cm-cm.h, op-cm-cs.h, op-cm-m.h, |
|
4099 op-cm-s.h, op-cs-cm.h, op-cs-cs.h, op-cs-m.h, op-cs-s.h, |
|
4100 op-m-cm.h, op-m-cs.h, op-m-m.h, op-m-s.h, op-s-cm.h, op-s-cs.h, |
|
4101 op-s-m.h, op-s-s.h, op-str-str.h: Delete. |
|
4102 * Makefile.in (INCLUDES): Delete them from the list. |
|
4103 |
|
4104 Tue Apr 29 22:27:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4105 |
|
4106 * variables.h, variables.cc (install_builtin_variables): Delete. |
|
4107 * mkbuiltins: Also generate install_builtin_variables function. |
|
4108 * Makefile.in: Fix rule to call mkbuiltins with correct args. |
|
4109 (clean): Also delete def-files and var-files. |
|
4110 * defaults.h.in, dirfns.h, error.h, file-io.h, help.h, input.h, |
|
4111 lex.h, load-save.h, oct-usr-fcn.h, pager.h, parse.h, pr-output.cc, |
|
4112 pr-output.h, pt-mat.h, pt-misc.h, pt-plot.h, toplev.h: |
|
4113 Delete declarations of symbols_of_* functions. |
|
4114 * data.h, syscalls.h: Delete. |
|
4115 |
|
4116 * pr-output.cc (octave_print_internal): Leave printing of final |
|
4117 new line up to the caller. |
|
4118 |
|
4119 * ov.h, ov.cc (reset_indent_level, increment_indent_level, |
|
4120 decrement_indent_level, newline, indent, reset, |
|
4121 curr_print_indent_level, beginning_of_line): |
|
4122 New functions and static data to manage indent level for printing. |
|
4123 (print_as_scalar): Delete. |
|
4124 (print, print_with_name): Always require stream arg. |
|
4125 Change all callers. |
|
4126 |
|
4127 * oct-stream.h (octave_stream::input_stream): Make publicly available. |
|
4128 (octave_stream::output_stream): Likewise. |
|
4129 |
|
4130 * ov-base.h, ov-base.cc, ov.h, ov.cc, ov-file.h ov-base.h |
|
4131 (is_file, stream_value, stream_number): New functions. |
|
4132 * ov-file.h, ov-file.cc: New files for value class to manage files. |
|
4133 * file-io.cc (symbols_of_file_io): Define stdin, stdout, and |
|
4134 stderr as octve_file objects, not just integers. |
|
4135 (Ffopen, Fpopen): Return octave_file objects, not integer file ids. |
|
4136 * syscalls.cc (Fpipe): Likewise. |
|
4137 * oct-stream.h, oct-stream.cc (octave_stream_list::insert): |
|
4138 Return octave_file object, not integer file id. |
|
4139 |
|
4140 * ov-base.cc, ov-bool-mat.cc, ov-bool.cc, ov-ch-mat.cc, |
|
4141 ov-complex.cc, ov-cx-mat.cc, ov-file.cc, ov-list.cc, ov-range.cc, |
|
4142 ov-re-mat.cc, ov-scalar.cc, ov-str-mat.cc, ov-struct.cc, ov.cc |
|
4143 (print_name_tag, print_raw): New functions. |
|
4144 |
|
4145 * help.cc (Ftype): Don't cast symbol definition to tree_constant *. |
|
4146 |
|
4147 * variables.cc (link_to_global_variable): Don't try to define |
|
4148 symbol with tree_constant objects. |
|
4149 (bind_ans): Call symbol_record::define directly and then |
|
4150 octave_value::print_with_name instead of creating a temporary |
|
4151 assignment expression. |
|
4152 |
|
4153 * pt-pr-code.cc (tree_print_code::indent): Don't use ostream::form. |
|
4154 |
|
4155 * pt-exp-base.h, pt-exp.h, pt-exp.cc (oper): Return string, not |
|
4156 char *. Change all where necessary. |
|
4157 |
|
4158 Mon Apr 28 16:33:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4159 |
|
4160 * ov.h (octave_value binary_op enum): Add lshift and rshift. |
|
4161 (octave_value assign_op enum): Add lshift_eq and rshift_eq. |
|
4162 * ov.cc (assign_op_as_string, binary_op_as_string): Include them. |
|
4163 * parse.y (LSHIFT_EQ RSHIFT_EQ LSHIFT RSHIFT): New tokens. |
|
4164 Add them to the precedence list. |
|
4165 (simple_expr): Add new operators. |
|
4166 (make_assign_op, make_binary_op): Handle new operators. |
|
4167 * lex.l: Recognize new operators. |
|
4168 |
|
4169 * lex.l: Recognize them. |
|
4170 |
|
4171 Sun Apr 27 20:17:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2898
|
4172 |
|
4173 * pt-misc.cc (Vsilent_functions, silent_functions): |
|
4174 Move here from oct-usr-fcn.cc. |
|
4175 (symbols_of_pt_misc): New function. DEFVAR silent_functions. |
|
4176 (tree_statement_list::eval): Handle Vsilent_functions here instead |
|
4177 of in octave_user_function::eval. |
|
4178 (tree_statement::eval): New functions. |
|
4179 (tree_statement_list::eval): Use them. |
|
4180 Change print flag arg to silent flag. Change all callers. |
|
4181 * variables.cc (install_builtin_variables): Call symbols_of_pt_misc. |
|
4182 * toplev.cc (parse_and_execute): Delete print arg. Change all callers. |
|
4183 (eval_string): Change print flag arg to silent flag. Change callers. |
|
4184 |
|
4185 * dynamic-ld.h, dynamic-ld.cc: Rewrite to use singleton class. |
|
4186 * variables.cc (load_fcn_from_file): Use new dynamic linking class. |
|
4187 |
2893
|
4188 * dynamic-ld.h (Octave_builtin_fcn): Delete typedef. |
|
4189 * dynamic-ld.cc: Simplify via the magic of function pointers. |
|
4190 |
|
4191 * pt-fcn.h pt-fcn.cc pt-fvc.h pt-fvc.cc pt-fvc-base.h pt-fvc-base.cc: |
|
4192 Delete obsolete files. |
|
4193 * Makefile.in: Remove them from various lists. |
|
4194 |
|
4195 * pt-walk.h (visit_octave_user_function): Rename from visit_function. |
|
4196 (visit_builtin): Delete. |
|
4197 * pt-pr-code.h, pt-pr-code.cc (visit_octave_user_function): |
|
4198 Rename from visit_function. |
|
4199 (visit_octave_user_function_header): Rename from visit_function_header. |
|
4200 (visit_octave_user_function_trailer): Rename from |
|
4201 visit_function_trailer. |
|
4202 |
|
4203 * ov.h, ov.cc (eval): New functions. |
|
4204 |
|
4205 * dassl.cc, fsolve.cc, lsode.cc, npsol.cc, qpsol.cc, quad.cc: |
|
4206 Declare user-defined functions as a pointer to an octave_symbol |
|
4207 object, not as a pointer to a tree_fvc object. |
|
4208 |
|
4209 * symtab.h, symtab.cc: Use new octave_symbol class. |
|
4210 * variables.cc (install_builtin_function, install_builtin_mapper, |
|
4211 install_builtin_variable, install_builtin_variable_as_function): |
|
4212 Make work with new octave_symbol class and symbol table structure. |
|
4213 |
|
4214 * variables.h: Delete declaration of builtin_function struct. |
|
4215 * defun-dld.h (DEFUN_DLD): Simplify. |
|
4216 * defun-int.h (DEFINE_FUN_STRUCT): Delete. |
|
4217 (DEFINE_FUN_STRUCT_FUN): Rewrite to not use static builtin_function |
|
4218 object. |
|
4219 |
|
4220 * mappers.h: Delete declaration of builtin_mapper_function struct. |
|
4221 * mappers.cc: Declare wrapper functions static. |
|
4222 * defun.h (DEFUN_MAPPER): Simplify. |
|
4223 |
|
4224 * oct-sym.h: New file. Declare base class for Octave symbols. |
|
4225 * ov.h: Derive octave_value class from octave_symbol. |
|
4226 * oct-fcn.h, oct-fcn.cc: New files to declare and define |
|
4227 base class for functions. |
|
4228 * oct-builtin.h, oct-builtin.cc: New files to declare and define |
|
4229 class for built-in functions. |
|
4230 * oct-mapper.h, oct-mapper.cc: New files to declare and define |
|
4231 class for mapper functions. |
|
4232 * oct-usr-fcn.h, oct-usr-fcn.cc: New files to declare and define |
|
4233 base class for user-defined functions. |
|
4234 * Makefile.in: Add new files to appropriate lists. |
|
4235 |
|
4236 * pt-id.h, pt-id.cc: Move tree_identifier class here. |
|
4237 * pt-fvc.h, pt-fvc.cc: From here. |
|
4238 |
|
4239 * pt-indir.h, pt-indir.cc: Move tree_indirect_ref class here. |
|
4240 * pt-fvc.h, pt-fvc.cc: From here. |
|
4241 |
2881
|
4242 Thu Apr 24 03:58:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4243 |
2884
|
4244 * parse.y (magic_colon): New nonterminal. |
|
4245 (arg_list): Simplify using magic_colon. |
|
4246 |
2883
|
4247 * lex.h (class lexical_feedback): Delete maybe_screwed field. |
|
4248 New field, parsed_function name. |
|
4249 * lex.l (lexical_feedback::init): Initialize it. |
|
4250 (handle_identifier): Don't return SCREW. Handle switching |
|
4251 symbol table context properly for `function f ()' vs `function x ='. |
|
4252 (is_keyword): If looking at function keyword, don't set current |
|
4253 symbol table to point to the local table. |
|
4254 * parse.y (recover_from_parsing_function): New function. |
|
4255 (finish_function_def): Use identifier, not token. |
|
4256 Simplify parsing of functions. |
|
4257 |
|
4258 * ov-list.h, ov-list.cc: New files to implement generic list type. |
|
4259 * ov.cc (list_indent): New global variable. |
|
4260 (increment_list_indent, decrement_list_indent): New functions. |
|
4261 (install_types): Register octave_list type. |
|
4262 * ov-base.cc (octave_base_value::is_list): New function. |
|
4263 |
2881
|
4264 * oct-sym.h: New file. |
|
4265 * ov.h (class octave_value): Derive from octave_symbol class. |
|
4266 |
|
4267 * pt-const.h, pt-const.cc: Delete lots of old useless cruft. |
|
4268 |
|
4269 * pt-exp.h, pt-exp.cc (tree_binary_expression): Use type codes for |
|
4270 operators from octave_value instead of repeating them here. |
|
4271 |
|
4272 * pt-fvc-base.cc (tree_fvc::increment, tree_fvc::decrement): Delete. |
|
4273 * pt-fvc.cc (tree_identifier::increment): Get reference to value |
|
4274 and increment that instead of using virutal tree_fvc::increment |
|
4275 function. |
|
4276 |
|
4277 * lex.l: Handle +=, -=, *=, /=, .+=, .-=, .*=, ./=, &=, and |= ops. |
2883
|
4278 * parse.y (make_assign_op): Rename from make_simple_assignment and |
|
4279 handle different op types. |
|
4280 (simple_expr1): Do new ops. |
2881
|
4281 * pt-misc.cc (initialize_undefined_elements): Pass op to assign. |
|
4282 * pt-cmd.cc (tree_for_command::do_for_command_once): Likewise. |
|
4283 * pt-fvc.cc (tree_identifier::assign): Pass op. |
|
4284 * pt-exp.cc (tree_simple_assignment_expression): Handle new ops. |
|
4285 * variables.cc (octave_variable_reference::assign): Likewise. |
|
4286 * ov.h (class octave_value): Likewise. |
|
4287 * ov.cc (octave_value::assign_op_as_string): New function. |
|
4288 (octave_value::assign, octave_value::convert_and_assign, |
|
4289 octave_value::try_assignment_with_conversion, |
|
4290 octave_value::try_assignment): Pass op. |
|
4291 * pt-pr-code.cc (tree_print_code::visit_simple_assignment_expression): |
|
4292 Use expr.oper() instead of printing "=". |
|
4293 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-m-m.cc, |
|
4294 op-m-s.cc, op-str-str.cc: Pass op to INSTALL_ASSIGNOP. |
|
4295 * ops.h (INSTALL_ASSIGNOP): Pass op. |
2883
|
4296 * ov-typeinfo.cc (do_register_assign_op): Include op type in table. |
|
4297 (do_lookup_assign_op): Use op in lookup. |
2881
|
4298 |
|
4299 * ops.h (INSTALL_UNOP): Delete. |
|
4300 |
|
4301 * input.cc (generate_struct_completions, looks_like_struct): |
|
4302 Disable, since they don't work now anyway. |
|
4303 |
|
4304 * help.cc (Ftype): Work with octave_value instead of a pointer to |
|
4305 tree_constant. |
|
4306 * symtab.cc (symbol_record_info::symbol_record_info): Likewise. |
|
4307 |
|
4308 |
|
4309 Tue Apr 22 22:59:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4310 |
|
4311 * file-io.cc (Ffprintf): If first arg is a string, assume FID = 1. |
|
4312 |
|
4313 Fri Apr 18 20:16:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4314 |
|
4315 * oct-obj.h, oct-obj.cc: Implement octave_value_list with |
|
4316 Array<octave_value> as a data member, not as a class derived from |
|
4317 Array<octave_value>. |
|
4318 (octave_value_list::length, octave_value_list::resize, |
|
4319 octave_value_list::prepend, octave_value_list::append, |
|
4320 octave_value_list::reverse): New functions. |
|
4321 |
|
4322 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
4323 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
4324 op-s-cm.cc, op-s-m.cc: Use new bool ops from liboctave instead of |
|
4325 the macros defined in ops.h. |
|
4326 |
2865
|
4327 Thu Apr 17 13:12:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4328 |
|
4329 * parse.y (ABORT_PARSE): Handle forced_interactive the same as |
|
4330 interactive. |
|
4331 |
|
4332 Mon Apr 14 01:46:50 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4333 |
|
4334 * input.cc (octave_read): Don't forget to free input buffer if it |
|
4335 exists and has zero length. |
|
4336 (gnu_readline): Free buf if fgets returns 0. |
|
4337 |
|
4338 Wed Apr 9 00:03:57 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4339 |
|
4340 * time.cc (mk_tm_map): Only set zone field if HAVE_TM_ZONE or |
|
4341 HAVE_TZNAME are defined. |
|
4342 |
|
4343 Tue Apr 8 12:39:21 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4344 |
|
4345 * time.cc (extract_tm): Set tm.tm_zone if HAVE_TM_ZONE is defined, |
|
4346 not if HAVE_TMZONE is defined. |
|
4347 |
|
4348 * Makefile.in (%.oct : %.o): Use $(SH_LD), not $(CXX). |
|
4349 |
|
4350 Wed Apr 2 21:32:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4351 |
|
4352 * dynamic-ld.cc, dynamic-ld.h (init_dynamic_linker): Delete |
|
4353 function and declaration. |
|
4354 * octave.cc (main): Don't call it. |
|
4355 |
2856
|
4356 Mon Mar 31 00:37:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4357 |
2859
|
4358 * pt-base-exp.h (tree_expression::eval): Give arg a default value. |
|
4359 * pt-const.h (tree_constant::eval): Likewise. |
|
4360 * pt-exp.h (tree_prefix_expression::eval, tree_colon_expression::eval, |
|
4361 tree_postfix_expression::eval, tree_unary_expression::eval, |
|
4362 tree_binary_expression::eval, tree_boolean_expression::eval, |
|
4363 tree_simple_assignment_expression::eval): Likewise. |
|
4364 * pt-fcn.h (tree_function::eval): Likewise. |
|
4365 * pt-fvc.h (tree_identifier::eval, tree_indirect_ref::eval, |
|
4366 tree_builtin::eval): Likewise. |
|
4367 * pt-mat.h (tree_matrix::eval): Likewise. |
|
4368 * pt-misc.h (tree_statement_list::eval): Likewise. |
|
4369 * pt-mvr-base.h (tree_multi_val_ret::eval): Likewise. |
|
4370 * pt-mvr.h (tree_oct_obj::eval, tree_index_expression::eval, |
|
4371 tree_multi_assignment_expression::eval): Likewise. |
|
4372 * dassl.cc, fsolve.cc, load-save.cc, lsode.cc, npsol.cc, parse.y, |
|
4373 pt-cmd.cc, pt-exp-base.cc, pt-exp.cc, pt-fvc.cc, pt-mat.cc, |
|
4374 pt-misc.cc, pt-mvr.cc, pt-plot.cc, quad.cc, toplev.cc, variables.cc: |
|
4375 Change callers of eval() to use bool instead of int and to make |
|
4376 use of default argument value. |
|
4377 |
|
4378 * toplev.h, toplev.cc (parse_and_execute, eval_string): Flag args |
|
4379 are now bool instead of int. |
|
4380 |
2856
|
4381 * symtab.h, symtab.cc: Use bool instead of int in more places. |
|
4382 * variables.h, variables.cc: Likewise. |
2857
|
4383 * lex.h, lex.l: Likewise. |
|
4384 * parse.y: Likewise. |
2856
|
4385 * help.cc, input.cc, lex.l, load-save.cc, parse.y, pt-fcn.cc: |
|
4386 Change callers of symbol_table::lookup to use bool instead of int, |
|
4387 and to make use of default arguments. |
|
4388 |
2850
|
4389 Fri Mar 28 15:33:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4390 |
2852
|
4391 * parse.y (Vwarn_comma_in_declaration): Delete. |
|
4392 (symbols_of_parse): Delete DEFVAR for warn_comma_in_declaration. |
|
4393 (decl1): Don't allow commas in declarations. |
|
4394 |
2850
|
4395 * lsode.cc (struct LSODE_OPTIONS): Handle integer options. |
|
4396 (print_lsode_option_list, set_lsode_option, show_lsode_option): Ditto. |
|
4397 (lsode_option_table): Add element for step limit. |
|
4398 (lsode_user_jacobian): New function. |
|
4399 (Flsode): Allow function name arg to be a 2-element string array |
|
4400 specifying the function and jacobian function. |
|
4401 |
|
4402 * variables.cc (get_global_value, set_global_value): New functions. |
|
4403 |
2846
|
4404 Wed Mar 26 17:08:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4405 |
|
4406 Implement static variable declaration: |
|
4407 |
|
4408 * lex.l (is_keyword): Handle static. |
|
4409 * octave.gperf: Likewise. |
|
4410 * parse.y (Vwarn_comma_in_declaration): Rename from |
|
4411 Vwarn_comma_in_global_decl. |
|
4412 Handle new static command. |
|
4413 * pt-cmd.h, pt-cmd.cc (class tree_decl_command): New base class |
|
4414 for static and global declaration commands. |
|
4415 (class tree_global_command): Derive from tree_decl_command. |
|
4416 (class tree_static_command): New class, derived from tree_decl_command. |
|
4417 * pt-fvc.cc, pt-fvc.h (tree_identifier::mark_as_static): New function. |
|
4418 * pt-misc.h, pt-misc.h (class tree_decl_elt): Rename from tree_global. |
|
4419 (class tree_decl_init_list): Rename from tree_global_init_list. |
|
4420 * pt-pr-code.cc, pt-pr-code.h (tree_print_code::visit_decl_command): |
|
4421 Rename from visit_global_command. |
|
4422 (tree_print_code::visit_decl_elt): Rename from visit_global. |
|
4423 (tree_print_code::visit_decl_init_list): Rename from |
|
4424 visit_global_init_list. |
|
4425 * pt-walk.h (tree_walker::visit_decl_command): Rename from |
|
4426 visit_global_command. |
|
4427 (tree_walker::visit_decl_elt): Rename from visit_tree_global. |
|
4428 (tree_walker::visit_decl_init_list): Rename from |
|
4429 visit_global_init_list. |
|
4430 * variables.cc (link_to_global_variable): Trying to make a static |
|
4431 variable global is an error. |
|
4432 * SLList-misc.cc: Instantiate lists of pointers to tree_decl_elt |
|
4433 objects, not tree_global objects. |
|
4434 * symtab.h, symtab.cc (symbol_record::tagged_static): New field. |
|
4435 (symbol_record::mark_as_static, symbol_record::is_static): |
|
4436 New functions. |
|
4437 * symtab.cc (symbol_record::init_state): Initialize tagged_static. |
|
4438 (symbol_record::clear): Don't clear static variables. |
|
4439 * symtab.cc (push_context): Don't do anything for static variables. |
|
4440 |
2825
|
4441 Tue Mar 25 17:17:17 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4442 |
2881
|
4443 * ov-bool-mat.cc, ov-bool-mat.h, ov-bool.cc, ov-bool.h: New files. |
2832
|
4444 |
2831
|
4445 * defaults.cc (symbols_of_defaults): DEFCONST OCTAVE_HOME. |
|
4446 |
|
4447 * toplev.cc (octave_config_info): Delete use of CXXLIBS. |
|
4448 * oct-conf.h.in: Ditto. |
|
4449 |
2830
|
4450 * octave.cc (maximum_braindamage): Don't bind prefer_zero_one_indexing. |
|
4451 * ov.h: Don't declare Vprefer_zero_one_indexing. |
|
4452 * ov.cc: Don't define Vprefer_zero_one_indexing. |
|
4453 (prefer_zero_one_indexing): Delete. |
|
4454 (symbols_of_value): Delete DEFVAR for prefer_zero_one_indexing. |
|
4455 |
2825
|
4456 * ov.h, ov.cc, ov-base.h, ov-base.cc: Add constructors and |
|
4457 extractors for bool and boolMatrix types. |
|
4458 |
|
4459 * ov.cc (install_types): Register octave_bool and |
|
4460 octave_bool_matrix types. |
|
4461 |
|
4462 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
4463 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
4464 op-s-cm.cc, op-s-m.cc, op-s-s.cc, ov-re-mat.cc: |
|
4465 Return boolMatrix instead of Matrix object. |
|
4466 * ops.h (BOOL_OP3, MX_MX_BOOL_OP): Likewise. |
|
4467 |
|
4468 * op-b-b.h, op-b-b.cc, op-bm-bm.h, op-bm-bm.cc: New files. |
|
4469 * Makefile.in: Add them to the lists. |
|
4470 * ops.cc: Include header files here. |
|
4471 (install_ops): Call install_b_b_ops() and install_bm_bm_ops() here. |
|
4472 |
|
4473 * variables.cc (symbols_of_variables): Don't rely on default |
|
4474 conversion from int to double for value returned from |
|
4475 default_history_size(). |
|
4476 |
|
4477 * pr-output.cc: Include cstdio. |
|
4478 |
|
4479 * parse.y (param_list_end): Fix typo in last change. |
|
4480 |
|
4481 * quad.cc (quad): Cast integer return values to double. |
|
4482 * npsol.cc (show_npsol_option): Likewise. |
|
4483 * qpsol.cc (show_qpsol_option): Likewise. |
|
4484 * file-io.cc (Fsprintf, Ffwrite): Likewise. |
|
4485 |
|
4486 Mon Mar 24 13:11:47 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4487 |
|
4488 * ov-typeinfo.cc (typeinfo): If invoked with an argument, return |
|
4489 the type of the argument as a string. Fix doc string. |
|
4490 |
2821
|
4491 Thu Mar 20 14:47:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4492 |
|
4493 * mk-oct-links (links_dir): Don't use -h option for grep. It's |
|
4494 not needed since we are working on one file at a time anyway. |
|
4495 |
2819
|
4496 Mon Mar 17 10:53:29 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4497 |
|
4498 * lex.l (handle_identifier): When handling indirect_ref, set |
|
4499 lexer_flags.quote_is_transpose to 1 so that a.b' to work as |
|
4500 expected. |
|
4501 |
|
4502 * parse.y (param_list_beg, param_list_end): New nonterminals. |
|
4503 (param_list, param_list1): Use them. |
|
4504 |
2811
|
4505 Wed Mar 12 16:57:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4506 |
|
4507 * Makefile.in (install-strip): New target. |
|
4508 |
2806
|
4509 Mon Mar 10 22:38:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4510 |
|
4511 * Makefile.in (clean): Delete .oct files too. |
|
4512 |
|
4513 * toplev.cc (Vdefault_eval_print_flag): New static variable. |
|
4514 (eval_string): New arg, print. |
|
4515 (Feval): Pass Vdefault_eval_print_flag to eval_string. |
|
4516 (default_eval_print_flag): New function. |
|
4517 (symbols_of_toplev): New function. |
|
4518 |
|
4519 * variables.cc (install_builtin_variables): Call it. |
|
4520 |
|
4521 * pt-exp.h, pt-exp.cc (class tree_boolean_expression): Rename enum |
|
4522 fields `and' and `or' to `bool_and' and `bool_or'. |
|
4523 (tree_unary_expression): Rename enum field `not' to `unot'. |
|
4524 (class tree_binary_expression): Rename enum fields `and' and `or' |
|
4525 to `el_and' and `el_or'. |
|
4526 * parse.y: Change all uses. |
|
4527 |
|
4528 * time.cc (extract_tm): Truncate field values instead of rounding. |
|
4529 (gmtime, localtime): Likewise, for timeval. |
|
4530 |
|
4531 * ov.h (class octave_value): Delete unused variable freeptr. |
|
4532 |
|
4533 * mappers.cc: Delete functions that are already in |
|
4534 liboctave/lo-mappers.cc. |
|
4535 |
|
4536 * oct-strstrm.cc (octave_base_strstream::tell): Use const_cast, |
|
4537 not static_cast. |
|
4538 |
|
4539 * help.cc (help_from_list): Add missing const qualifiers. |
|
4540 * help.h (struct help_list): Likewise. |
|
4541 * lex.l (match_any, plot_style_token): Likewise. |
|
4542 * load-save.cc (extract_keyword, ascii_save_type): Likewise. |
|
4543 * oct-hist.cc (mk_tmp_hist_file): Likewise. |
|
4544 * octave.cc (execute_startup_files): Likewise. |
|
4545 * octave.gperf (struct octave_kw): Likewise. |
|
4546 * pr-output.cc (pr_any_float): Likewise. |
|
4547 * pt-mvr.cc (tree_index_expression::eval_error): Likewise. |
|
4548 * pt-exp-base.h, pt-exp.h, pt-exp.cc: Likewise. |
|
4549 * parse.y: Likewise. |
|
4550 |
2800
|
4551 Sun Mar 9 03:46:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4552 |
2806
|
4553 * pt-exp-base.h (tree_expression): Delete extra comma at end of list. |
|
4554 |
|
4555 * dirfns.cc error.cc file-io.cc fsolve.cc input.cc load-save.cc |
|
4556 npsol.cc pt-fcn.cc qpsol.cc quad.cc syscalls.cc toplev.cc |
|
4557 variables.cc: Eliminate embedded newlines in string constants. |
|
4558 |
|
4559 * Map.cc, data.cc, dirfns.cc, dynamic-ld.cc, file-io.cc, |
|
4560 fsolve.cc, getgrent.cc, getpwent.cc, getrusage.cc, help.cc, |
|
4561 input.cc, load-save.cc, mappers.cc, minmax.cc, npsol.cc, |
|
4562 oct-fstrm.cc, oct-procbuf.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
4563 oct-stream.cc, oct-stream.h, oct-strstrm.cc, octave.cc, |
|
4564 ov-base.h, ov-range.cc, ov-typeinfo.cc, ov.cc, pr-output.cc, |
|
4565 pt-cmd.cc, pt-exp.cc, pt-fcn.cc, pt-fvc.cc, pt-mat.cc, |
|
4566 pt-misc.cc, pt-plot.cc, qpsol.cc, quad.cc, sort.cc, strfns.cc, |
|
4567 symtab.cc, syscalls.cc, sysdep.cc, time.cc, toplev.cc, |
|
4568 unwind-prot.cc, unwind-prot.h, variables.cc, xpow.cc: |
|
4569 Use `static_cast<T> (val)' instead of old C-style `(T) val' casts. |
2800
|
4570 |
2799
|
4571 Sat Mar 8 02:35:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4572 |
|
4573 * load-save.cc (save_ascii_data, save_three_d): Where appropriate, |
|
4574 use bool instead of int. |
|
4575 (save_binary_data, save_mat_binary_data, save_ascii_data): |
|
4576 Print warning instead of error for wrong type arg. |
|
4577 |
|
4578 * gripes.cc (gripe_wrong_type_arg): New arg, is_error. |
|
4579 |
|
4580 * pt-plot.cc (save_in_tmp_file): Call save_ascii_data with bool |
|
4581 arg, not int. |
|
4582 |
2797
|
4583 Fri Mar 7 00:56:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4584 |
|
4585 * dassl.cc (show_dassl_option): For values that are determined |
|
4586 automatically, return a string instead of a magic value (-1.0). |
|
4587 * fsolve.cc (show_fsolve_option): Likewise. |
|
4588 * lsode.cc (show_lsode_option): Likewise. |
|
4589 * npsol.cc (show_npsol_option): Likewise. |
|
4590 * qpsol.cc (show_qpsol_option): Likewise. |
|
4591 |
|
4592 * variables.cc (extract_function): New function. |
|
4593 * dassl.cc (Fdassl): Use it instead of is_valid_function. |
|
4594 * fsolve.cc (Ffsolve): Likewise. |
|
4595 * npsol.cc (Fnpsol): Likewise. |
|
4596 * qpsol.cc (Fqpsol): Likewise. |
|
4597 * quad.cc (Fquad): Likewise. |
|
4598 |
2795
|
4599 Thu Mar 6 20:07:24 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4600 |
|
4601 * sighandlers.cc (my_friendly_exit, octave_new_handler, |
|
4602 sigfpe_handler, sigpipe_handler): Don't all error() or warning(). |
|
4603 |
|
4604 * pager.cc (pager_death_handler): Don't try to clear pager, just |
|
4605 print message to cerr. |
|
4606 (do_sync): If the status of the pager is bad or it looks like it |
|
4607 is dead, restore the interrupt handler. |
|
4608 |
|
4609 * load-save.cc (extract_keyword (istream&, char*, int&)): |
|
4610 Move declaration of buf inside loop, to avoid deleting its guts |
|
4611 and then trying to reuse it. |
|
4612 (extract_keyword (istream&, char*)): Likewise. |
|
4613 |
2790
|
4614 Tue Mar 4 20:36:53 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4615 |
2791
|
4616 * pt-fcn.cc (tree_function::eval): Protect function from being |
|
4617 redefined while it is being evaluated. |
|
4618 (unprotect_function): New function, for use with unwind_protect stuff. |
|
4619 * pt-fcn.h (tree_function::symtab_entry): New data member. |
|
4620 (tree_function::init): Initialize it to 0. |
|
4621 (tree_function::stash_symtab_ptr): New function. |
|
4622 * parse.y (frob_function_def): Stash pointer to function's |
|
4623 symbol_record in the function definition. |
|
4624 |
|
4625 * symtab.cc (symbol_record::read_only_error): New argument, |
|
4626 action. Change all callers. |
|
4627 (symbol_record::rename): Don't allow read-only symbols to be renamed. |
|
4628 |
2790
|
4629 * variables.cc (Fexist): Don't let files with `.' in their names |
|
4630 confuse us. |
|
4631 |
|
4632 * symtab.cc (valid_identifier (const string&)): New function. |
|
4633 |
2779
|
4634 Sat Mar 1 15:23:14 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2775
|
4635 |
|
4636 * Version 2.0.5 released. |
|
4637 |
2779
|
4638 Sat Mar 1 01:34:08 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4639 |
|
4640 * Makefile.in (stamp-oct-links): New target. Make links in build |
|
4641 directory too, so that the tests will work. |
|
4642 |
2777
|
4643 * quad.cc: If quad is defined, undefine it. |
|
4644 |
2775
|
4645 * octave.cc: If WITH_KPATHSEARCH is defined, don't define |
|
4646 program_invocation_name or program_invocation_short_name. |
2774
|
4647 |
|
4648 * strftime.c: Update to current version from FSF. |
|
4649 * time.cc (Fstrftime): Call strftime with buf = 0 to get buffer |
|
4650 size, then call again to actually format the time struct. |
|
4651 |
2762
|
4652 Fri Feb 28 01:49:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4653 |
2764
|
4654 Implement switch statement: |
|
4655 |
|
4656 * parse.y (Vwarn_variable_switch_label): New static variable. |
|
4657 (warn_variable_switch_label): New function. |
|
4658 (symbols_of_parse): Provide warn_variable_switch_label as Octave |
|
4659 variable here. |
|
4660 (make_switch_case, finish_switch_command): New functions. |
|
4661 (maybe_warn_variable_switch_label): New function. |
|
4662 (end_error): Handle endswitch. |
|
4663 (switch_command, case_list, case_list1, switch_case, default_case): |
|
4664 New nonterminals. |
|
4665 (command): Add switch_command here. |
|
4666 * lex.l (is_keyword): Handle switch, case, otherwise, and endswitch. |
|
4667 * octave_gperf: Recognize switch, case, otherwise, and endswitch. |
|
4668 * token.h (end_tok_type): New item, switch_end. |
|
4669 * pt-cmd.cc (tree_switch_command): New class. |
|
4670 * pt-misc.cc (tree_switch_case, tree_switch_case_list): New classes. |
|
4671 * pt-pr-code.cc (tree_print_code::visit_switch_case, |
|
4672 tree_print_code::visit_switch_case_list, |
|
4673 tree_print_code::visit_switch_command): New functions. |
|
4674 * pt-walk.h (tree_walker::visit_switch_case, |
|
4675 tree_walker::visit_switch_case_list, |
|
4676 tree_walker::visit_switch_command): New pure virtual declarations. |
|
4677 Implement new switch statement. |
|
4678 * SLList-misc.cc: Instantiate lists of pointers to |
|
4679 tree_switch_case objects too. |
|
4680 |
|
4681 * lex.h, lex.l, parse.y: Delete all references to lexer_flags::iffing. |
|
4682 |
2762
|
4683 * syswait.h: Include sys/wait.h on NeXT systems, but don't use the |
|
4684 WIFEXTED, WEXITSTATUS, and WIFSIGNALLED macros defined there. |
|
4685 Also define waitpid in terms of wait4. From Rex A. Dieter |
|
4686 <rdieter@math.unl.edu>. |
|
4687 |
2759
|
4688 Wed Feb 26 16:43:31 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4689 |
|
4690 * oct-stream.cc (octave_base_stream::do_scanf): Don't report an |
|
4691 error if a conversion fails or we reach EOF. |
|
4692 |
2745
|
4693 Tue Feb 25 22:21:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4694 |
|
4695 * time.cc (strftime): increase initial buffer size. |
|
4696 |
|
4697 Mon Feb 24 17:49:21 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4698 |
|
4699 * pt-fvc.cc (tree_builtin::eval): Enable checking for max number |
|
4700 of arguments. |
|
4701 |
|
4702 * error.cc (handle_message): Don't fail if args is empty. |
|
4703 |
|
4704 Sun Feb 23 22:42:52 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4705 |
|
4706 * lex.h (lexical_feedback::looking_at_return_list): New field. |
|
4707 (lexical_feedback::looking_at_parameter_list): Ditto. |
|
4708 * lex.l (lexical_feedback::init): Initialize them. |
|
4709 (handle_identifier): Use them. |
|
4710 * parse.y: Likewise. |
|
4711 |
2712
|
4712 Fri Feb 21 15:35:18 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4713 |
2716
|
4714 * lex.l: Require flex 2.5 or later (we really want 2.5.4 or later, |
|
4715 but there seems to be no good way to check the patchlevel). |
|
4716 |
2712
|
4717 * oct-stream.cc (octave_base_stream::oscanf): Instead of returning |
|
4718 an error, just quit processing after a conversion fails. |
|
4719 |
2709
|
4720 Thu Feb 20 02:58:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2702
|
4721 |
|
4722 * Version 2.0.4 released. |
|
4723 |
2706
|
4724 Wed Feb 19 10:30:14 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4725 |
2705
|
4726 * sighandlers.cc (octave_ignore_interrupts, |
|
4727 octave_catch_interrupts, octave_set_interrupt_handler): |
|
4728 Return old value, not pointer to static data. Fix all uses. |
|
4729 |
|
4730 * sighandlers.h (octave_interrupt_handler): Move declaration here. |
|
4731 * sighandlers.cc: From here. |
|
4732 |
|
4733 * toplev.cc: Undo previous change. |
|
4734 |
2702
|
4735 * lex.l (handle_identifier): Allow commands like ls, save, etc. to |
|
4736 also be used as simple variable names. Also make it possible to |
|
4737 use the normal function call syntax to invoke them. |
|
4738 |
2693
|
4739 Tue Feb 18 09:22:04 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2689
|
4740 |
2702
|
4741 * Makefile.in (%.oct:%.o, %.oct:pic/%.o): Use $(SH_LDFLAGS) here. |
|
4742 |
2690
|
4743 * Version 2.0.3 released. |
|
4744 |
2693
|
4745 Tue Feb 18 00:27:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4746 |
|
4747 * toplev.cc (run_command_and_return_output): |
|
4748 Block SIGCHLD while running subprocess. |
|
4749 (cleanup_iprocstream): Unblock it here. |
|
4750 |
|
4751 * sighandlers.h (BLOCK_SIGNAL, BLOCK_CHILD, UNBLOCK_CHILD): Move here. |
|
4752 * sighandlers.cc: From here. |
|
4753 |
2692
|
4754 * toplev.cc (system): Shift then mask exit status. |
|
4755 |
|
4756 * help.cc (try_info): Shift first, then mask exit status. |
|
4757 |
2689
|
4758 * toplev.cc (octave_config_info): Handle option argument. |
|
4759 |
2686
|
4760 Fri Feb 14 16:23:30 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4761 |
2687
|
4762 * oct-stream.cc (octave_base_stream::do_scanf): Don't forget to |
|
4763 check to see if the result matrix needs resizing! |
|
4764 |
2686
|
4765 * Makefile.in (bin-dist): Don't write empty strings to LIBRARIES. |
|
4766 |
2669
|
4767 Thu Feb 13 03:02:08 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4768 |
2676
|
4769 * Makefile.in (stamp-prereq): Depend on stamp-picdir. |
|
4770 (all): Don't depend on stamp-prereq or stamp-picdir. |
|
4771 (stamp-tinst, stamp-interp, libtinst.a, liboctinterp.a): |
|
4772 Do depend on stamp-prereq. |
|
4773 (stamp-picdir): Silence noise about making pic. |
|
4774 (stamp-tinst, stamp-interp): Use $(SH_LD) $(SH_LDFLAGS) instead of |
|
4775 $(CXX) -shared. |
|
4776 |
2675
|
4777 * oct-conf.h.in: Reinstate RLD_FLAG. |
|
4778 * toplev.cc (octave_config_info): Likewise. |
|
4779 |
2672
|
4780 * data.cc (map_d_m, map_m_d, map_m_m): Rename from map. |
|
4781 (Fatan2): Use new function names. |
|
4782 |
|
4783 * pt-fvc.cc (apply_mapper_fcn): Use member function map() instead |
|
4784 of friend function. |
|
4785 |
2669
|
4786 * gripes.cc (gripe_wrong_type_arg (const char*, const string&)): |
|
4787 New function. |
|
4788 |
|
4789 Wed Feb 12 17:27:53 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4790 |
|
4791 * syscalls.cc (symbols_of_syscalls): Add O_ASYNC and O_SYNC. |
|
4792 |
|
4793 Mon Feb 10 01:22:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4794 |
|
4795 * dirfns.cc (Freaddir, Fmkdir, Frmdir, Frename): |
|
4796 Also return status and error message. |
|
4797 |
|
4798 * syscalls.cc (Fdup2, Fexec, Ffork, Ffcntl, Funlink, Fmkfifo, |
|
4799 Fpipe, Fwaitpid): Also return error message. |
|
4800 |
2664
|
4801 Sat Feb 8 17:16:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4802 |
2665
|
4803 * pt-exp.cc (tree_simple_assignment_expression::eval): Return |
|
4804 value of RHS, but (if printing) print complete value of LHS. |
|
4805 |
2664
|
4806 * pr-output.cc (octave_print_internal): Print a new line for empty |
|
4807 string matrices. |
|
4808 |
2663
|
4809 Wed Feb 5 14:30:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4810 |
|
4811 * oct-stream.cc (scanf_format_list::process_conversion): Accept |
|
4812 but don't actually use h, l, and L modifiers. Always insert l |
|
4813 modifier for floating point conversions. |
|
4814 |
2652
|
4815 Fri Jan 31 13:55:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4816 |
|
4817 * pager.cc (do_sync): Always flush the cout stream after writing. |
|
4818 |
2643
|
4819 Wed Jan 29 08:25:29 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4820 |
2648
|
4821 * defaults.cc (exec_path): Don't include bin_dir in std_path. |
|
4822 |
2646
|
4823 * pager.cc (do_sync): Flush the cout stream after writing if |
|
4824 running in interactive or forced_interactive mode. |
|
4825 |
|
4826 * mk-oct-links: Rename from mk-oct-links.in. |
|
4827 Don't use symbolic links. |
|
4828 * Makefile.in: Distribute mk-oct-links, not mk-oct-links.in |
|
4829 (mk-oct-links): Delete target. |
|
4830 (install-oct, bin-dist): Don't depend on mk-oct-links. |
|
4831 Run $(srcdir)/mk-oct-links, not ./mk-oct-links. |
|
4832 |
2643
|
4833 * qr.cc (qr): Doc fix. |
|
4834 |
2638
|
4835 Tue Jan 28 10:48:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4836 |
|
4837 * Makefile.in (install-inc): Create a relative symbolic link. |
|
4838 (install-bin): Create a relative symbolic link. |
|
4839 |
2630
|
4840 Mon Jan 27 12:12:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4841 |
2634
|
4842 * Version 2.0.2 released. |
|
4843 |
|
4844 * Makefile.in (CXXFLAGS_NO_PT_FLAGS): Rename from XALL_CXXFLAGS. |
|
4845 Substitute bsd_gcc_kluge_targets_frag. |
|
4846 |
2630
|
4847 * sysdep.cc (Fsleep): New function. |
|
4848 (Fusleep): New function. |
|
4849 |
|
4850 * toplev.cc (octave_config_info): Don't include RLD_FLAG. |
|
4851 * oct-conf.h.in: Don't define RLD_FLAG |
|
4852 |
2626
|
4853 Sun Jan 26 19:41:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4854 |
|
4855 * sighandlers.cc (sigchld_handler): Block SIGCHLD while |
|
4856 sigchld_hander is running. |
|
4857 |
2624
|
4858 Sat Jan 25 22:36:39 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4859 |
|
4860 * Makefile.in (bin-dist): Update for 2.x. |
|
4861 |
2621
|
4862 Fri Jan 24 10:05:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4863 |
|
4864 * mk-oct-links.in: New arg, -p, to just print list of files to link. |
|
4865 |
|
4866 * lex.l (handle_number): Convert `D' or `d' exponents to `e' |
|
4867 before scanning. |
|
4868 |
2620
|
4869 Thu Jan 23 10:00:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4870 |
|
4871 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_no_op_command): |
|
4872 New function. |
|
4873 * pt-cmd.h, pt-cmd.cc (tree_no_op_command): New class. |
|
4874 * parse.y (make_break_command, make_continue_command, |
|
4875 make_return_command): Where they don't really make sense, turn |
|
4876 these commands into no-ops. Accept return and break if reading a |
|
4877 script file. |
|
4878 * toplev.cc (parse_and_execute): Handle return and break in script |
|
4879 files. Quit executing commands if an error occurs when reading a |
|
4880 script file. Set global_command to 0 after deleting it. |
|
4881 (main_loop): If not interactive or forced_interactive, handle |
|
4882 break and return, and quit executing commands if an error occurs. |
|
4883 Set global_command to 0 after deleting it. |
|
4884 * error.cc (Ferror): Doc fix. |
|
4885 * pt-walk.h (tree_walker): Add declaration for visit_no_op_command. |
|
4886 |
2618
|
4887 Wed Jan 22 20:54:12 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4888 |
|
4889 * input.cc (gnu_readline): If not using readline, flush |
|
4890 rl_outstream after printing prompt. |
|
4891 (octave_gets): Also call flush_octave_stdout() if |
|
4892 forced_interactive, not just if interactive. |
|
4893 (do_input_echo): If forced_interactive, only echo prompt and |
|
4894 command line if also reading a script file. |
|
4895 |
2616
|
4896 Tue Jan 21 23:02:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4897 |
|
4898 * SLList.h: Include "BaseSLList.h", not <BaseSLList.h>. |
|
4899 |
2610
|
4900 Mon Jan 20 11:11:12 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4901 |
2614
|
4902 * lex.l (token_stack): Don't declare static. |
|
4903 * pt-plot.cc (tmp_files): Likewise. |
|
4904 * toplev.cc (octave_atexit_functions): Likewise. |
|
4905 * unwind-prot.cc (unwind_protect_list): Likewise. |
|
4906 |
2613
|
4907 * ops.h (MX_MX_BOOL_OP): Correctly handle case of one or both |
|
4908 arguments being empty. Change all callers. |
|
4909 |
|
4910 * oct-stream.cc (printf_value_cache::looking_at_string): |
|
4911 Handle empty strings correctly now that they are 0x0. |
|
4912 |
2610
|
4913 * file-io.cc: Don't include "syswait.h" here. |
|
4914 |
|
4915 Sun Jan 19 22:38:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4916 |
|
4917 * oct-stream.h (octave_base_stream::seek): Declare offset arg as |
|
4918 streamoff, not streampos. |
|
4919 (octave_stream::seek): Likewise. |
|
4920 * oct-strstrm.h (octave_base_strstream::seek): Likewise. |
|
4921 * oct-stdstrm.h (octave_base_stdiostream::seek): Likewise. |
|
4922 * oct-iostrm.h (octave_base_iostream::seek): Likewise. |
|
4923 * oct-fstrm.h (octave_fstream::seek): Likewise. |
|
4924 |
2609
|
4925 Fri Jan 17 18:13:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4926 |
|
4927 * file-io.cc (Ffflush): Handle stdout as a special case. |
|
4928 |
|
4929 * oct-stream.cc (octave_stream_list::do_get_file_number): |
|
4930 Do the work for octave_stream::get_file_number. |
|
4931 (octave_stream_list::get_file_number): Convert to static function. |
|
4932 |
2608
|
4933 Wed Jan 8 11:42:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4934 |
|
4935 * log.cc (sqrtm): For complex arg case, compute sqrt, not log. |
|
4936 |
2602
|
4937 Tue Jan 7 00:16:41 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4938 |
|
4939 * Version 2.0.1 released. |
|
4940 |
|
4941 Mon Jan 6 00:00:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4942 |
|
4943 * pt-mat.cc (tm_row_const_rep::all_mt): New variable. |
|
4944 (tm_row_const::all_empty): New function. |
|
4945 (tm_row_const::tm_row_const_rep::init): Set all_mt here. |
|
4946 (tm_const::all_mt): New variable. |
|
4947 (tm_const::all_emtpy): New function. |
|
4948 (tm_const::init): Set all_mt here. |
|
4949 (tree_matrix::eval): Return an empty matrix if the list contains |
|
4950 only empty elements. If it contains only empty strings, return an |
|
4951 empty string. |
|
4952 |
2601
|
4953 Sun Jan 5 12:50:25 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4954 |
|
4955 * ops.h (SC_MX_BOOL_OP, MX_SC_BOOL_OP): New arg, empty_result. |
|
4956 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
4957 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
4958 op-s-cm.cc, op-s-m.cc, op-str-str.cc: Change all uses of |
|
4959 SC_MX_BOOL_OP and MX_SC_BOOL_OP macros. Return correct results |
|
4960 for empty matrix cases. |
|
4961 |
|
4962 * pt-fcn.cc (tree_function::eval): If Vdefine_all_return_values is |
|
4963 true, initialize return values before evaluating function, for |
|
4964 compatibility with Matlab. |
|
4965 |
|
4966 * oct-stream.cc (get_size): Correctly set size when arg is scalar. |
|
4967 |
|
4968 Thu Jan 2 12:40:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4969 |
|
4970 * Makefile.in (install-oct): Quote $(OCT_FILES) in for loop to |
|
4971 avoid syntax error from ksh. |
|
4972 |
|
4973 * pr-output.cc (octave_print_internal): Avoid unused parameter |
|
4974 warning from gcc. |
|
4975 |
2600
|
4976 Thu Dec 19 12:13:42 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4977 |
|
4978 * oct-stream.cc (octave_base_stream::do_scanf): |
|
4979 Don't treat %l{e,f,g} differently from %{e,f,g}. |
|
4980 (octave_base_stream::do_oscanf): Likewise. |
|
4981 |
|
4982 * sighandlers.cc (sigchld_handler): Fix typos. |
|
4983 |
2598
|
4984 Wed Dec 18 20:17:23 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4985 |
2599
|
4986 * file-io.cc (Ffgetl, Ffgets): Also return number of characters read. |
|
4987 |
|
4988 * ov-range.cc (octave_range::not): New function. |
|
4989 * ov-range.h (octave_range::uminus): New function. |
|
4990 |
2598
|
4991 * BaseSLList.cc: Include error.h. |
|
4992 (BaseSLList::error): Call ::error() to process error message. |
|
4993 |
2589
|
4994 Fri Dec 13 02:38:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4995 |
|
4996 * ov.cc (octave_value::convert_and_assign): Preserve lhs value if |
|
4997 assignment fails. |
|
4998 |
2586
|
4999 Wed Dec 11 12:33:16 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5000 |
|
5001 * pt-plot.cc (GPLOT_CMD_END): Don't put semicolons at the end of |
|
5002 each plot command; it causes trouble with gnuplot 3.5. |
|
5003 |
2580
|
5004 Tue Dec 10 00:31:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5005 |
2583
|
5006 * Version 2.0 released. |
|
5007 |
2584
|
5008 * pr-output.cc (set_format_style): Don't try to access argv unless |
|
5009 argc > 1. |
|
5010 |
2580
|
5011 * SLList-expr.cc SLList-misc.cc SLList-plot.cc SLList-str.cc |
|
5012 SLList-tc.cc SLList-tm.cc SLList.h SLStack-i.cc SLStack-pc.cc |
|
5013 SLStack-str.cc SLStack-sym.cc SLStack-tok.cc SLStack-ue.cc |
|
5014 SLStack-ui.cc, pt-mat.cc: Include Stack.h, Stack.cc, SLStack.cc, |
|
5015 and SLList.cc as necessary. |
|
5016 |
|
5017 * Stack.cc, SLStack.cc, SLList.cc: New files. |
|
5018 * Makefile.in (SOURCES): Add them to the list. |
|
5019 |
2575
|
5020 Mon Dec 9 12:03:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5021 |
2577
|
5022 * Makefile.in (install-bin): Use $(EXE) suffix so install will |
|
5023 find the right file on cygwin32 systems. |
|
5024 |
2575
|
5025 * ov.h: Declare proper form of do_binary_op as friend to |
|
5026 octave_value class. |
|
5027 |
2572
|
5028 Sat Dec 7 22:00:10 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5029 |
|
5030 * oct-stream.cc (do_printf_conv, do_scanf_conv, |
|
5031 do_oscanf_num_conv, do_oscanf_str_conv): Convert to real |
|
5032 functions instead of CPP macros, using templates where necessary. |
|
5033 (do_oscanf_num_conv, do_oscanf_str_conv): Correctly handle |
|
5034 discarded values. |
|
5035 |
2569
|
5036 Fri Dec 6 00:20:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5037 |
2572
|
5038 * Version 1.94. |
|
5039 |
2571
|
5040 * Map-*.cc, SLList-*.cc, SLStack-*.cc: Include config.h. |
|
5041 |
|
5042 * ov.h: Don't include SLList.h. |
|
5043 |
|
5044 * SLStack.cc: Delete. Move everything to SLStack.h. |
|
5045 |
|
5046 * BaseSLList.h, BaseSLList.cc: New files. Split out the |
|
5047 non-template base class parts of SLList. |
|
5048 |
2569
|
5049 * Makefile.in (TEMPLATE_SRC): Delete. Move files to SOURCES. |
|
5050 * Map.h, Map.cc: Add #pragma interface/implementation. |
|
5051 * SLStack.h, SLStack.cc: Add #pragma interface/implementation. |
|
5052 |
|
5053 * SLList.h, SLList.cc: New files, from libg++, but with #pragma |
|
5054 interface/implementation. |
|
5055 * Makefile.in (SOURCES): Add SLList.cc. |
|
5056 (INCLUDES): Add SLList.h. |
|
5057 |
2566
|
5058 Thu Dec 5 18:36:44 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5059 |
|
5060 * octave.cc: Don't include sun-utils.h. |
|
5061 |
2563
|
5062 Tue Dec 3 23:47:09 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5063 |
|
5064 * op-str-str.cc (eq, ne): Handle operations with scalars. |
|
5065 |
2555
|
5066 Thu Nov 21 12:30:36 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5067 |
|
5068 * ov-str-mat.h (octave_char_matrix_str): Provide transpose and |
|
5069 hermitian operators. |
|
5070 * ov-ch-mat.h (octave_char_matrix): Likewise. |
|
5071 |
2548
|
5072 Wed Nov 20 00:35:57 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5073 |
2554
|
5074 * sighandlers.h (struct octave_interrupt_handler): Provide |
|
5075 forward declaration here. |
|
5076 * sighandlers.cc (octave_interrupt_handler): New struct. |
|
5077 (octave_catch_interrupts): Rename from catch_interrupts. |
|
5078 (octave_ignore_interrupts, octave_set_interrupt_handler): |
|
5079 New functions. |
|
5080 * help.cc, oct-hist.cc, pager.cc, toplev.cc: Use new functions for |
|
5081 handling interrupts so that we can hide the details of whether or |
|
5082 not we have to deal with SIGBREAK. |
|
5083 |
|
5084 * pt-plot.cc [! HAVE_POSIX_SIGNALS] (open_plot_stream): |
|
5085 Simply ignore and restore the interrupt handler here. |
|
5086 |
|
5087 * sighandlers.cc (MAYBE_REINSTALL_SIGHANDLER): New macro. Use it |
|
5088 instead of always checking MUST_REINSTALL_SIGHANDLERS everywhere. |
|
5089 (sigchld_handler): If octave_child_list is empty, wait for any |
|
5090 child, but don't hang, and don't collect status info. |
|
5091 [__EMX__] (sigchld_handler): Save and restore handlers for SIGINT, |
|
5092 SIGBREAK, and SIGCHLD. Ignore them while waiting on children. |
|
5093 (install_signal_handlers): If SIGBREAK exists, handle it like SIGINT. |
|
5094 |
2552
|
5095 * toplev.cc [USE_READLINE] (clean_up_and_exit): |
|
5096 Call rl_deprep_terminal() to restore terminal settings. |
|
5097 |
|
5098 * sysdep.cc [__EMX__ && OS2] (Fextproc): New command. |
|
5099 [__EMX__ && OS2] (FEXTPROC): Alias for Fextproc. |
|
5100 |
|
5101 * Version 1.93. |
|
5102 |
2549
|
5103 * sysdep.cc (octave_chdir): [__EMX__]: Make copy of string before |
|
5104 converting to upper case. |
|
5105 |
2548
|
5106 * getgrent.cc (mk_gr_map): Only set the passwd field if |
|
5107 HAVE_GR_PASSWD is defined. |
|
5108 |
2533
|
5109 Tue Nov 19 12:01:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5110 |
2546
|
5111 * sysdep.cc (OS2_init): New function. |
|
5112 [__EMX__] (sysdep_init): Call it. |
|
5113 |
2542
|
5114 * lex.l (plot_style_token): Add new plot styles for gnuplot 3.6. |
2543
|
5115 * pt-plot.cc (subplot_style::columns_ok): Rename from |
|
5116 subplot_style::errorbars. Recognize more styles and do a better |
|
5117 job of diagnosing column number/style mismatches. |
2542
|
5118 |
2536
|
5119 * sighandlers.cc (my_friendly_exit): If we are called twice, try |
|
5120 to remove the signal handler for SIGABRT and the call abort (). |
|
5121 |
2534
|
5122 * help.cc (Ftype): If a function is defined from a file and |
|
5123 transformed text has not been requested, just print the contents |
|
5124 of the file. |
|
5125 |
2533
|
5126 * parse.y (fold): New functions for constant folding for binary |
|
5127 and unary expressions. Keep track of original text even when |
|
5128 transformations occur. |
|
5129 (make_binary_op, make_boolean_op, make_unary_op): Use them. |
|
5130 (finish_colon_expression, finish_matrix): Keep track of original |
|
5131 text even when transformations occur. |
|
5132 |
|
5133 * help.cc (Ftype): Don't mess with Vps4. |
|
5134 Handle new option `-transformed'. |
|
5135 |
|
5136 * pt-const.h, pt-const.cc (tree_constant::print): |
|
5137 New arg, pr_orig_text. |
|
5138 |
|
5139 * pt-exp.h, pt-exp.cc (tree_colon_expression::is_range_constant): |
|
5140 Delete. |
|
5141 |
|
5142 * pt-exp-base.h (tree_expression::original_text): New virtual function. |
|
5143 pt-exp-base.cc (tree_expression::original_text): Default version. |
|
5144 |
|
5145 * pt-pr-code.h (tree_print_code::print_original_text, |
|
5146 tree_print_code::prefix): New fields. |
|
5147 * pt-pr-code.cc (tree_print_code::visit_constant): Pass |
|
5148 print_original_text to tree_constant::print(). |
|
5149 (tree_print_code::indent): Use prefix instead of Vps4. |
|
5150 * pt-fcn.cc (tree_function::print_function_header, |
|
5151 tree_function::print_function_trailer): Pass Vps4 to |
|
5152 tree_print_code_constructor for prefix. |
|
5153 * pt-misc.cc (tree_statement::maybe_echo_code): Pass Vps4 to |
|
5154 tree_print_code_constructor for prefix. |
|
5155 |
|
5156 * pt-mat.h, pt-mat.cc (tree_matrix::all_elements_are_constant): |
|
5157 Rename from is_matrix_constant. |
|
5158 (tree_matrix_row::all_elements_are_constant): Likewise. |
|
5159 Change all callers. |
|
5160 |
|
5161 Mon Nov 18 14:13:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5162 |
|
5163 * Makefile.in (install-inc): Try harder to create the link from |
|
5164 include/octave to include/octave-VERSION. |
|
5165 |
2524
|
5166 Sun Nov 17 14:14:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5167 |
2527
|
5168 * Makefile.in (parse.cc): Expect 13 shift/reduce conflicts. |
2526
|
5169 |
2525
|
5170 * parse.y (set_stmt_print_flag): New function. |
|
5171 (sep_type): New member for bison %union declaration. |
|
5172 Simplify rules for statement lists keeping track of the type of |
|
5173 the first separator in the values associated with the |
|
5174 nonterminals for the separators. |
|
5175 |
2524
|
5176 * lex.l (handle_identifier): Set lexer_flags.doing_set if the |
|
5177 token is "gset", not "set". |
|
5178 |
|
5179 Sat Nov 16 21:41:26 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5180 |
|
5181 * Makefile.in (parse.cc, lex.cc): Add special rules for these files. |
|
5182 Delete pattern rules for .y and .l files. |
|
5183 |
2522
|
5184 Fri Nov 15 13:48:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5185 |
2523
|
5186 * pt-plot.cc: Put semicolons at the ends of all plot commands. |
|
5187 |
2522
|
5188 * defaults.cc (subst_octave_home): Start subsequent searchs from |
|
5189 the end of the replaced text. |
|
5190 |
|
5191 * pr-output.cc (pr_any_float): Kluge for SCO systems. |
|
5192 |
|
5193 * pr-output.cc (pr_any_float, pr_complex): Don't declare inline. |
|
5194 |
|
5195 * mappers.cc: Include lo-ieee.h, for isinf and isnan on SCO |
|
5196 systems. |
|
5197 |
2512
|
5198 Thu Nov 14 00:06:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5199 |
2520
|
5200 * pt-plot.cc (Fgset, Fgshow): New commands. |
|
5201 (Fshow): Print warning and call gshow. |
|
5202 (Fset): Print warning and call gset. |
|
5203 |
2517
|
5204 * variables.cc (parse_fcn_file): Add unwind-protect for file |
|
5205 pointer, so the file is always closed. |
|
5206 (get_help_from_file): Likewise. |
|
5207 * toplev.cc (parse_and_execute): Likewise. |
|
5208 |
2516
|
5209 * Makefile.in (install-oct): Depend on mk-oct-links. |
|
5210 (mk-oct-links): New target. |
|
5211 |
2512
|
5212 * Version 1.92. |
|
5213 |
2508
|
5214 Wed Nov 13 11:13:22 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5215 |
2512
|
5216 * sighandlers.cc (sys_siglist): [__EMX__]: Add definitions. |
|
5217 |
|
5218 * octave.cc (execute_startup_files): Allow init file name ot be |
|
5219 specified by an environment variable. |
|
5220 |
|
5221 * dirfns.cc (make_absolute): [__EMX__]: Path is already absolute |
|
5222 if it begins with any character followed by a colon. |
|
5223 |
2511
|
5224 * load-save.cc (read_mat_ascii_matrix, get_lines_and_columns, |
|
5225 get_complete_line): New functions, for reading headless text files. |
|
5226 (load_save_format): Add LS_MAT_ASCII, for headless text files. |
|
5227 (do_load): Handle LS_MAT_ASCII files. |
|
5228 Thanks to Mel Melchner <mjm@research.att.com> for initial version |
|
5229 of this code. |
|
5230 |
2508
|
5231 * sysdep.cc: Conditionally include ieeefp.h. |
|
5232 (BSD_init, SCO_init): New functions. |
|
5233 (sysdep_init): Conditionally call them here. |
|
5234 |
2499
|
5235 Tue Nov 12 00:14:56 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5236 |
2508
|
5237 * pt-plot.cc (open_plot_stream): Don't block SIGCHLD. |
|
5238 |
2499
|
5239 * load-save.cc (read_binary_data): When reading string arrays, be |
|
5240 sure to create an octave_char_matrix_str object, not just an |
|
5241 octave_char_matrix object. |
|
5242 (read_ascii_data): Likewise. |
|
5243 |
2497
|
5244 Mon Nov 11 22:52:58 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5245 |
|
5246 * load-save.cc (read_binary_data): Don't forget teminating NUL for |
|
5247 string that we plan to insert. |
|
5248 (read_ascii_data): Likewise. |
|
5249 |
2495
|
5250 Sun Nov 10 16:58:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5251 |
2496
|
5252 * dirfns.cc (Ffnmatch): New function. |
|
5253 |
2495
|
5254 * octave.cc (intern_argv): Use new string_vector constructor. |
|
5255 |
|
5256 * ov-str-mat.cc (octave_char_matrix_str::all_strings): Have |
|
5257 charMatrix::row_as_string() strip trailing whitespace. |
|
5258 |
|
5259 * dirfns.cc (Fglob): new function. |
|
5260 |
|
5261 * sysdep.cc (oct_tilde_expand): Provide version that works on |
|
5262 string vectors too. |
|
5263 (Ftilde_expand): Work on string vector args. |
|
5264 |
|
5265 * load-save.cc (save_binary_data): Call char_matrix_value() to |
|
5266 extract charMatrix from octave_value object, not all_strings(). |
|
5267 (save_ascii_data): Likewise. |
|
5268 * pt-mat.cc (tree_matrix::eval): Likewise. |
|
5269 |
|
5270 * ov.h (octave_value::all_strings): Return string_vector, not |
|
5271 charMatrix. |
|
5272 * ov-base.cc (octave_base_value::all_strings): Likewise. |
|
5273 * ov-str-mat.h, ov-str-mat.cc (octave_char_matrix_str::all_strings): |
|
5274 Likewise. |
|
5275 |
2487
|
5276 Fri Nov 8 09:54:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5277 |
2492
|
5278 * defaults.cc, dynamic-ld.cc, fn-cache.cc, help.cc, oct-hist.cc, |
|
5279 octave.cc, pager.cc, pt-fcn.cc, toplev.cc, utils.cc, variables.cc, |
|
5280 lex.l: Change #include "" to #include <> for defaults.h, |
|
5281 oct-conf.h, oct-gperf.h, y.tab.h, and version.h, to avoid getting |
|
5282 them from $srcdir when we really want the version from the build |
|
5283 directory. (Maybe this should be done for all the include files, |
|
5284 not just those that are auto-generated? Hmm.) |
|
5285 |
2488
|
5286 * defaults.h.in (CXXLIB_LIST, CXXLIB_PATH, FLIB_LIST, FLIB_PATH): |
|
5287 Delete. |
|
5288 |
2487
|
5289 * Makefile.in (install-oct): Use $(INSTALL_PROGRAM) for .oct files. |
|
5290 |
2477
|
5291 Thu Nov 7 07:59:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5292 |
2487
|
5293 * variables.cc (gobble_leading_white_space): New arg, update_pos. |
|
5294 * (is_function_file): Don't update file position information here. |
|
5295 |
2482
|
5296 * Version 1.91. |
|
5297 |
2479
|
5298 * pt-fvc.cc (tree_indirect_ref::reference): If the lhs object is |
|
5299 not a map, convert it to one. |
|
5300 |
|
5301 * ov-typeinfo.h (init_tab_sz): New static member. |
|
5302 |
2477
|
5303 * ov-struct.cc, ov-struct.h: Add hooks for custom memory management. |
|
5304 * ov-scalar.cc, ov-scalar.h: Likewise. |
|
5305 * ov-re-mat.cc, ov-re-mat.h: Likewise. |
|
5306 * ov-range.cc, ov-range.h: Likewise. |
|
5307 * ov-cx-mat.cc, ov-cx-mat.h: Likewise. |
|
5308 * ov-complex.cc, ov-complex.h: Likewise. |
|
5309 * ov-ch-mat.cc, ov-ch-mat.h: Likewise. |
|
5310 |
2474
|
5311 Wed Nov 6 12:32:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5312 |
2482
|
5313 * pager.cc (do_sync): Don't call clear_external_pager() here. |
2476
|
5314 |
2475
|
5315 * pt-const.h (tree_constant::allocator) New static member. |
|
5316 (tree_constant::operator new, tree_constant::operator delete): |
|
5317 Implement with custom allocator. |
|
5318 |
|
5319 * syscalls.cc (Fgetgid, Fgetegid): New functions. |
|
5320 |
|
5321 * sighandlers.cc (sigchld_handler): If necessary, reinstall |
|
5322 handler after call to waitpid(). |
|
5323 |
|
5324 * pager.cc (pager_death_handler): Don't use warning() to print |
|
5325 message. |
|
5326 |
|
5327 * getgrent.cc: New file. |
|
5328 * Makefile.in (DLD_SRC): Add it. |
|
5329 |
|
5330 * ov.cc (octave_value::print_with_name): Call is_map() instead of |
|
5331 print_as_structure(). |
|
5332 * ov-struct.cc (octave_struct::print): Likewise. |
|
5333 |
|
5334 * ov.h, ov.cc, pt-const.h: Delete force_numeric(), make_numeric(), |
|
5335 convert_to_matrix_type(), print_as_structure() member functions. |
|
5336 |
2474
|
5337 * variables.cc (is_function_file): Call gobble_leading_whitespace |
|
5338 here to strip all leading whitespace and comments. |
|
5339 (parse_fcn_file): If reading a function file, call |
|
5340 gobble_leading_whitespace again after resetting parser state to |
|
5341 grab help text. |
|
5342 |
2469
|
5343 Tue Nov 5 13:00:35 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5344 |
2472
|
5345 * syscalls.cc (Fgeteuid, Fgetuid): New functions. |
|
5346 |
|
5347 * getpwent.cc: Use gripe_not_supported from gripes.cc, instead of |
|
5348 local gripe_not_implemented function. |
|
5349 |
2470
|
5350 * input.cc, sysdep.cc, variables.cc: Only include readline.h and |
|
5351 history.h if USE_READLINE is defined. |
|
5352 |
|
5353 * help.cc: Make it compile without warnings even if USE_GNU_INFO |
|
5354 is not defined. |
|
5355 |
2469
|
5356 * sighandlers.h (octave_child_list): Don't define |
|
5357 HAVE_POSIX_SIGNALS HERE. |
|
5358 |
|
5359 * sighandlers.cc (SIGHANDLER_RETURN): New macro. |
|
5360 (generic_sig_handler, sigchld_handler, sigfpe_handler, |
|
5361 sigint_handler, sigpipe_handler): Use it. |
|
5362 (sigchld_handler, sigfpe_handler, sigint_handler, sigpipe_handler): |
|
5363 Only reinstall signal handler if MUST_REINSTALL_SIGHANDLER is defined. |
|
5364 |
2463
|
5365 Sun Nov 3 00:45:30 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5366 |
2466
|
5367 * pt-const.cc (tree_constant::print): Just call val.print(). |
|
5368 * ov-base.cc, ov-ch-mat.cc, ov-colon.cc, ov-complex.cc, |
|
5369 ov-cx-mat.cc, ov-range.cc, ov-re-mat.cc, ov-scalar.cc, |
|
5370 ov-str-mat.cc, ov-struct.cc ov-va-args.cc, ov.cc (print): |
|
5371 Handle pr_as_read_syntax arg. |
|
5372 |
|
5373 * defaults.cc (subst_octave_home): Search for prefix repeatedly in |
|
5374 retval, not s. |
|
5375 |
|
5376 * gripes.h: Make declaration of gripes_not_supported match |
|
5377 definition. |
|
5378 |
2465
|
5379 * mk-oct-links.in: In sed command, match "DEFUN_DLD *( *", not |
|
5380 "DEFUN_DLD_BUILTIN *( *". |
|
5381 |
|
5382 * chol.cc, colloc.cc, dassl.cc, det.cc, eig.cc, expm.cc, fft.cc, |
|
5383 fft2.cc, filter.cc, find.cc, fsolve.cc, fsqp.cc, getpwent.cc, |
|
5384 getrusage.cc, givens.cc, hess.cc, ifft.cc, ifft2.cc, inv.cc, |
|
5385 log.cc, lpsolve.cc, lsode.cc, lu.cc, minmax.cc, npsol.cc, pinv.cc, |
|
5386 qpsol.cc, qr.cc, quad.cc, qzval.cc, rand.cc, schur.cc, sort.cc, |
|
5387 svd.cc, syl.cc, time.cc: Change all uses of DEFUN_DLD_BUILTIN to |
|
5388 be just DEFUN_DLD. |
|
5389 |
|
5390 * defun-dld.h: Eliminate DEFUN_DLD_BUILTIN. |
|
5391 |
2464
|
5392 * syswait.h: Use #ifdef HAVE_SYS_WAIT_H, not #if HAVE_SYS_WAIT_H |
|
5393 to decide whether to include sys/wait.h. |
|
5394 |
|
5395 * pt-exp-base.h (tree_expression): Declare oper() here as a |
|
5396 virtual member function. |
|
5397 |
2463
|
5398 * pt-pr-code.cc (tree_print_code::visit_constant): Check for |
|
5399 string before checking for char_matrix. |
|
5400 |
|
5401 * ov-ch-mat.cc (octave_char_matrix::print): Supply correct number |
|
5402 of args to octave_print_internal(). |
|
5403 |
2457
|
5404 Sat Nov 2 20:44:55 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5405 |
2458
|
5406 * file-io.cc (Ftmpnam): Rename from Foctave_temp_file_name. |
|
5407 |
2457
|
5408 * Makefile.in (DLD_SRC): Move time.cc and getrusage.cc here from |
|
5409 SOURCES. Add getpwent.cc. |
|
5410 |
|
5411 * getrusage.cc: Rename from resource.cc. Make getrusage a |
|
5412 loadable function. |
|
5413 |
|
5414 * time.cc: Rename from timefns.cc. Make time functions loadable. |
|
5415 |
|
5416 * getpwent.cc: New file. |
|
5417 |
2439
|
5418 Wed Oct 30 01:06:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5419 |
2452
|
5420 * Version 1.90. |
|
5421 |
|
5422 * Makefile.in (DISTFILES): Add ChangeLog. |
|
5423 |
2449
|
5424 * ov-range.cc (octave_range::convert_to_str): New function. |
|
5425 |
|
5426 * ov-str-mat.h (octave_char_matrix_str::char_matrix_value): |
|
5427 Delete function. Already handled by octave_char_matrix class. |
|
5428 |
|
5429 * ov-ch-mat.h (octave_char_matrix::convert_to_str): New function. |
|
5430 |
2448
|
5431 * pager.cc (Fmore): Set page_screen_output to 1.0 or 0.0, not |
|
5432 "true" or "false". |
|
5433 |
2447
|
5434 * ov-ch-mat.cc, ov-struct.cc, ov-struct.h, pr-output.cc, |
|
5435 pt-cmd.cc, pt-const.cc, pt-const.h, pt-fcn.cc, pt-fvc-base.cc, |
|
5436 pt-fvc-base.h, pt-fvc.cc, pt-fvc.h, rand.cc, sighandlers.cc, |
|
5437 variables.cc, variables.h: Delete unused code. |
|
5438 |
2445
|
5439 * octave.cc: Only include pwd.h if HAVE_PWD_H. |
|
5440 |
|
5441 * oct-strstrm.h: Include <string>, not <string.h>. |
|
5442 |
2442
|
5443 * defaults.cc, dirfns.cc, file-io.cc, help.cc, input.cc, |
|
5444 oct-hist.cc, oct-procbuf.cc, oct-procbuf.h, octave.cc, pager.h, |
|
5445 procstream.h, pt-misc.cc, pt-plot.cc, sighandlers.cc, strftime.c, |
|
5446 syscalls.cc, sysdep.cc, syswait.h, toplev.cc, utils.cc, |
|
5447 variables.cc: Only include sys/types.h if HAVE_SYS_TYPES_H. |
|
5448 |
2440
|
5449 * error.h (panic): Use GCC_ATTR_NORETURN macro, not NORETURN. |
|
5450 * toplev.h (clean_up_and_exit): Likewise. |
|
5451 * utils.h (jump_to_top_level): Likewise. |
|
5452 |
2439
|
5453 * derfaults.h.in, defaults.cc (local_arch_lib_dir): New variable. |
|
5454 * defaults.cc (set_default_local_arch_lib_dir): New function. |
|
5455 (install_defaults): Call it. |
|
5456 (exec_path): Use Vlocal_arch_lib_dir here. |
|
5457 * toplev.cc (octave_config_info): Add localarchlibdir to structure. |
|
5458 |
2436
|
5459 Tue Oct 29 15:54:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5460 |
2437
|
5461 * Makefile.in (install-oct): Don't do anything if $(OCT_FILES) is |
|
5462 empty. |
|
5463 |
2436
|
5464 * ov-range.cc (octave_range::index): New Function. |
|
5465 (octave_range::all, octave_range::any, octave_range::is_true): |
|
5466 Make these functions work. |
|
5467 |
|
5468 * ov.cc (octave_value::try_assignment_with_conversion): Remove |
|
5469 left over debugging print statements. |
|
5470 |
|
5471 Mon Oct 28 10:49:03 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5472 |
|
5473 * strftime.c: Add missing #endif for previous change. |
|
5474 |
2435
|
5475 Sun Oct 27 14:06:44 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5476 |
|
5477 * oct-hist.cc (do_history): Rewite option parsing to avoid |
|
5478 (probably bogus) errors from g++ on cygwin32 system. |
|
5479 |
|
5480 * strftime.c: Use autoconf macros TIME_WITH_SYS_TIME and |
|
5481 HAVE_SYS_TIME_H to decide which time.h files to include. |
|
5482 |
|
5483 * oct-stream.h, oct-stream.cc (octave_stream::error, |
|
5484 octave_base_stream::error): Rename errno => err_num. |
|
5485 |
2432
|
5486 Sat Oct 26 10:40:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5487 |
2434
|
5488 * oct-hist.cc (do_history): Move declaration of file inside |
|
5489 conditional. |
|
5490 |
2432
|
5491 * defun.h (DEFVAR_INT): Set eternal flag with (svc_fcn != 0) |
|
5492 instead of (sv_fcn ? 1 : 0) |
|
5493 |
2427
|
5494 Fri Oct 25 01:10:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5495 |
2431
|
5496 * ov-ch-mat.h (octave_char_matrix::any): Return 0.0 instead of false. |
|
5497 (octave_char_matrix::all): Likewise. |
|
5498 |
|
5499 * input.cc (Fecho): When binding value of echo_executing_commands, |
|
5500 cast ECHO_* to double. |
|
5501 |
|
5502 * sighandlers.cc (octave_child_list::do_remove): Delete unused |
|
5503 variable `enlarge'. |
|
5504 |
|
5505 * pt-const.h (tree_constant::tree_constant (const tree_constant&)): |
|
5506 Don't pass arg to tree_fvc constructor. |
|
5507 |
2427
|
5508 * resource.cc (getrusage): [HAVE_GETRUSAGE && RUSAGE_TIMES_ONLY]: |
|
5509 Only fill in time values. |
|
5510 |
|
5511 Thu Oct 24 20:37:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5512 |
|
5513 * parse.y: Comment out the %expect declaration so byacc can |
|
5514 compile this file. |
|
5515 (if_cmd_list): Add missing semicolon. |
|
5516 Include <cstdlib> for getenv if using byacc. |
|
5517 |
|
5518 * ov.h: Move typedefs outside of octave_value class scope to avoid |
|
5519 problem with cygwin32 beta16 compiler. |
|
5520 |
2421
|
5521 Fri Oct 18 13:44:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5522 |
2423
|
5523 * ov.h (octave_value::index): Undo previous change. |
|
5524 * ov.cc (octave_value constructors): Call maybe_mutate() in most |
|
5525 cases. |
|
5526 |
|
5527 * ov-complex.cc (octave_complex::index): Avoid implicit type |
|
5528 conversion back to scalar type. |
|
5529 * ov-scalar.cc (octave_scalar::index): Likewise. |
|
5530 |
2421
|
5531 * ov.h (octave_value::index): Call maybe_mutate() on retval before |
|
5532 returning it. |
|
5533 |
2418
|
5534 Wed Oct 16 12:00:11 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5535 |
2420
|
5536 * ov.h (octave_value::struct_elt_val): New optional arg, silent. |
|
5537 * ov-base.h, ov-base.cc, ov-struct.h, ov-struct.cc: Likewise, but |
|
5538 for the derived classes the arg is required. |
|
5539 |
|
5540 * data.cc (Fstruct_contains): Require arguments to be struct and |
|
5541 string, respectively. Call octave_value::struct_elt_val with |
|
5542 silent flag set. |
|
5543 |
2419
|
5544 * pt-mat.cc (tm_row_const::tm_row_const_rep::eval_error, |
|
5545 tm_row_const::tm_row_const_rep::eval_warning): New functions. |
|
5546 (tm_row_const::tm_row_const (const tree_matrix_row&): Use them to |
|
5547 give better error messages. |
|
5548 |
2418
|
5549 * pt-fvc.cc (tree_identifier::eval): Avoid dereferencing null |
|
5550 object_to_eval. |
|
5551 |
2412
|
5552 Tue Oct 15 11:35:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5553 |
|
5554 * op-cs-cm.cc, op-cs-cs.cc, op-cs-m.cc, op-cs-s.cc |
|
5555 (complex_matrix_conv): New functions. |
|
5556 Install preferred assignment conversion and widening ops. |
|
5557 |
|
5558 * op-s-cm.cc, op-s-cs.cc (complex_matrix_conv): New functions. |
|
5559 Install preferred assignment conversion and widening ops. |
|
5560 |
|
5561 * op-s-m.cc, op-s-s.cc (matrix_conv): New functions. |
|
5562 Install preferred assignment conversion and widening ops. |
|
5563 |
|
5564 * ov.cc (octave_value::try_assignment_with_conversion, |
|
5565 octave_value::convert_and_assign, octave_value::try_assignment): |
|
5566 New functions. |
|
5567 (octave_value::assign): Use them to implement twisted logic for |
|
5568 type conversions in assigments. |
|
5569 |
|
5570 * pt-const.h (tree_constant::maybe_mutate): New function. |
|
5571 * ov.h (octave_value::maybe_mutate): New function. |
|
5572 (octave_value::try_narrowing_conversion): New function. |
|
5573 Use just one typedef for widening_op_fcn and numeric_conv_fcn. |
|
5574 Change all uses. |
|
5575 * ov-base.h, ov-complex.h, ov-complex.cc, ov-cx-mat.h, |
|
5576 ov-cx-mat.cc, ov-range.h, ov-range.cc, ov-re-mat.h, ov-re-mat.cc, |
|
5577 Provide derived class versions of try try_narrowing_conversion(). |
|
5578 |
|
5579 * pr-output.cc (octave_print_internal): Don't bother handing off |
|
5580 to scalar/real versions, even when it would seem appropriate. |
|
5581 |
|
5582 * symtab.cc (symbol_def::define (tree_constant *)): Call |
|
5583 maybe_mutate on constants here. |
|
5584 |
2405
|
5585 Mon Oct 14 11:05:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5586 |
2407
|
5587 * pt-fvc.cc (tree_identifier::eval): If retval is undefined and |
|
5588 the object to eval is a constant, print error message. |
2406
|
5589 |
2405
|
5590 * Makefile (distclean): Remove *.oct too. |
|
5591 |
|
5592 * defun-int.h: Include variables.h here. |
|
5593 |
2403
|
5594 Sun Oct 13 10:52:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5595 |
2404
|
5596 * variables.cc (print_symbol_info_line): Never print negative |
|
5597 diminsions. |
|
5598 |
|
5599 * symtab.h (octave_symbol_record_info): Store const_type as string. |
|
5600 (octave_symbol_record_info::init): Delete. Fix constructors. |
|
5601 (octave_symbol_record_info::type_name): Handle const_type as string. |
|
5602 |
2403
|
5603 * octave.cc (maximum_braindamage): Replace "true" with 1.0 and |
|
5604 "false" with 0.0 in calls to bind_builtin_variable(). |
|
5605 Include sun-utils.h here. |
2404
|
5606 (intern_argv): Also bind __argv__. |
2403
|
5607 |
2391
|
5608 Sat Oct 12 13:40:21 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5609 |
2399
|
5610 * Makefile.in (distclean): Also delete mk-oct-links. |
|
5611 |
|
5612 Fri Oct 11 13:13:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5613 |
2391
|
5614 Changes for Octave's new type system: |
|
5615 |
|
5616 * arith-ops.cc: Delete. |
|
5617 * pt-const.h, pt-const.cc: Massive changes. Most functionality |
|
5618 moved to ov.h, ov.cc, and derived classes. |
|
5619 |
|
5620 * variables.h, variables.cc (octave_variable_reference): New class |
|
5621 for getting references to variables and structure elements used in |
|
5622 assignments or value contexts. |
|
5623 |
|
5624 * symtab.h, symtab.cc (symbol_record::define (const octave_value&), |
|
5625 symbol_record::variable_value, symbol_record::variable_reference): |
|
5626 New functions. |
|
5627 (symbol_record_info::type_name): Rename from type_as_string. |
|
5628 |
|
5629 * pt-fvc-base.h, pt-fvc-base.cc (tree_fvc::increment, |
|
5630 tree_fvc::decrement): New functions to replace |
|
5631 tree_fvc::bump_value. |
|
5632 #if 0 assign and lookup_map_element functions. |
|
5633 |
|
5634 * pt-mvr.cc (tree_multi_assignment_expression::eval): |
|
5635 Generated RHS value is now a tree_constant. |
|
5636 |
|
5637 * pt-exp.h, pt-exp.cc (tree_boolean_expression): New class. |
|
5638 (tree_unary_expression, tree_binary_expression, |
|
5639 tree_boolean_expression): Move codes here from tree_expression. |
|
5640 (tree_simple_assignment_expression): Cope with changes to way of |
|
5641 doing assignments. |
|
5642 |
|
5643 * pt-exp-base.h, pt-exp-base.cc (enum type): Delete codes for |
|
5644 unary and binary ops. |
|
5645 (tree_expression::expression_type): Delete. |
|
5646 (tree_expression::is_logically_true): Hand off to |
|
5647 octave_value::is_true to do real work. |
|
5648 |
|
5649 * pr-output.h, pr-output.cc (any_element_is_inf_or_nan, |
|
5650 all_elements_are_ints): Delete. Call member new functions for |
|
5651 these operations. |
|
5652 (free_format, plus_format, bank_format, hex_format, |
|
5653 compact_format, print_e, print_big_e): Use bool, not int. |
|
5654 (octave_print_internal): Hand off to scalar/real versions when |
|
5655 appropriate. |
|
5656 |
|
5657 * octave.cc (main): Call initialize_types() and install_ops(). |
|
5658 (verbose_usage): Add WWW address to output. |
|
5659 |
|
5660 * parse.y (indirect_ref): Handle by making a tree instead of a |
|
5661 list using new version of tree_indirect_ref class. |
|
5662 |
|
5663 * parse.y (make_boolean_op): New function. Use it instead of |
|
5664 make_binary_op to create trees for && and || ops. |
|
5665 (make_binary_op): Codes come from tree_binary_expression now, |
|
5666 instead of tree_expression. |
|
5667 (make_unary_op): Codes come from tree_unary_expression now, |
|
5668 instead of tree_expression. |
|
5669 (make_boolean_op): Codes come from tree_boolean_expression. |
|
5670 |
|
5671 *parse.y (tree_constant_type): Change type to tree_constant* from |
|
5672 octave_value*, and rename from octave_value_type. Change uses. |
|
5673 |
|
5674 * defun.h (DEFVAR_INT): Pass octave_value not pointer to |
|
5675 octave_value for defn when creating builtin_variable. |
|
5676 |
|
5677 * gripes.h, gripes.cc (gripe_invalid_conversion): Args are |
|
5678 strings, not char*. |
|
5679 (gripe_implicit_conversion, gripe_divide_by_zero): New extern |
|
5680 gripe functions. |
|
5681 |
|
5682 * mkbuiltins: For each file, create a separate static function to |
|
5683 install builtins, then create another single extern function to |
|
5684 call all of them. |
|
5685 |
|
5686 * pt-fcn.cc (tree_function::bind_nargin_and_nargout): |
|
5687 Just pass doubles and let symbol_record::define handle creating |
|
5688 new value. |
|
5689 |
|
5690 * pt-pr-code.cc, pt-pr-code.h (visit_constant): Renamed from |
|
5691 visit_octave_value. |
|
5692 (visit_unary_expression): Use tree_expression::is_prefix_op() |
|
5693 instead of switch on op types. |
|
5694 |
|
5695 * pt-walk.h (visit_constant): Renamed from visit_octave_value. |
|
5696 |
|
5697 * pt-misc.cc (initialize_undefined_elements): Get reference to |
|
5698 tmp, then assign. |
|
5699 * pt-cmd.cc (do_for_loop_once): Likewise, for loop identifier. |
|
5700 |
|
5701 * input.cc (generate_struct_completions, looks_like_struct): Cast |
|
5702 tmp_fvc to tree_constant*, not octave_value*. |
|
5703 (get_user_input): Call print() on retval, not eval(1). |
|
5704 |
|
5705 * help.cc (Ftype): Cast defn to tree_constant*, not octave_value*. |
|
5706 |
|
5707 * balance.cc: Fix docstring. |
|
5708 |
|
5709 * dassl.cc, fsolve.cc, load-save.cc, lsode.cc, npsol.cc, qpsol.cc, |
|
5710 quad.cc: |
|
5711 Include pt-fvc.h. |
|
5712 |
|
5713 * data.cc (Fstruct_contains): call octave_value::struct_elt_val, |
|
5714 not octave_value::lookup_map_element. |
|
5715 |
|
5716 * dirfns.cc (Fcd): Pass directory name as string directly to |
|
5717 bind_builtin_variable instead of creating new octave_value. |
|
5718 |
|
5719 * toplev.cc: Include pt-fvc.h and lo-mappers.h |
|
5720 |
|
5721 * data.cc, error.cc, file-io.cc, load-save.cc, pager.cc, |
|
5722 pt-mat.cc, pt-plot.cc, syscalls.cc, toplev.cc: |
|
5723 Include variables.h. |
|
5724 |
|
5725 * Array-tc.cc, Map-tc.cc, SLList-misc.cc SLList-tc.cc, data.cc, |
|
5726 defaults.cc, dynamic-ld.cc, error.cc, gripes.cc, lex.l, octave.cc, |
|
5727 oct-map.h, oct-map.cc, oct-obj.h, pt-cmd.cc, pt-exp.cc, pt-fcn.cc, |
|
5728 pt-fvc-base.cc, pt-mat.cc, pt-misc.cc, pt-mvr-base.cc, pt-mvr.h, |
|
5729 resource.cc, strfns.cc, sysdep.cc, timefns.cc, toplev.cc: |
|
5730 Include ov.h instead of pt-const.h. |
|
5731 |
|
5732 * xpow.cc (any_element_is_negative): Delete. |
|
5733 (xpow and elem_xpow functions): Check conformance here. |
|
5734 |
|
5735 * xdiv.cc (mx_leftdiv_conform, mx_div_conform): |
|
5736 Now template-based, taking Matrices instead of dimensions as args. |
|
5737 Change all callers. |
|
5738 |
|
5739 * op-cm-cm.cc, op-cm-cm.h, op-cm-cs.cc, op-cm-cs.h, op-cm-m.cc, |
|
5740 op-cm-m.h, op-cm-s.cc, op-cm-s.h, op-cs-cm.cc, op-cs-cm.h, |
|
5741 op-cs-cs.cc, op-cs-cs.h, op-cs-m.cc, op-cs-m.h, op-cs-s.cc, |
|
5742 op-cs-s.h, op-m-cm.cc, op-m-cm.h, op-m-cs.cc, op-m-cs.h, op-m-m.cc, |
|
5743 op-m-m.h, op-m-s.cc, op-m-s.h, op-s-cm.cc, op-s-cm.h, op-s-cs.cc, |
|
5744 op-s-cs.h, op-s-m.cc, op-s-m.h, op-s-s.cc, op-s-s.h, |
|
5745 op-str-str.cc, op-str-str.h, ops.cc, ops.h, ov-base.cc, ov-base.h, |
|
5746 ov-ch-mat.cc, ov-ch-mat.h, ov-colon.cc, ov-colon.h, ov-complex.cc, |
|
5747 ov-complex.h, ov-cx-mat.cc, ov-cx-mat.h, ov-range.cc, ov-range.h, |
|
5748 ov-re-mat.cc, ov-re-mat.h, ov-scalar.cc, ov-scalar.h, ov-str-mat.cc, |
|
5749 ov-str-mat.h, ov-struct.cc, ov-struct.h, ov-typeinfo.cc, |
|
5750 ov-typeinfo.h, ov-va-args.cc, ov-va-args.h, ov.cc, ov.h: |
|
5751 New files for Octave's new type system. |
|
5752 * Makefile.in: Add them to the appropriate lists. |
|
5753 |
|
5754 Sat Sep 14 21:58:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5755 |
|
5756 * mkbuiltins: Use .df instead of .def. |
|
5757 Write one function for each .df file, then call them |
|
5758 all in install_builtin_functions(). |
|
5759 * Makefile.in: Handle .df instead of .def. |
|
5760 |
|
5761 * balance.cc (balance): Fix typo in doc string. |
|
5762 |
|
5763 Wed Aug 28 21:01:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5764 |
|
5765 * octave.cc (verbose_usage): Include WWW address and bug-octave |
|
5766 mailing list address. |
|
5767 |
2354
|
5768 Tue Aug 20 17:41:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5769 |
2358
|
5770 * Makefile.in: Only define pattern rules for making .oct files if |
|
5771 OCTAVE_LITE is true. |
|
5772 Only add pic/ to $(TI_OBJ) if $(SHARED_LIBS) is true. |
|
5773 (stamp-picdir): Only create a pic subdirectory if SHARED_LIBS or |
|
5774 OCTAVE_LITE is true AND CPICFLAG or CXXPICFLAG is not empty. |
|
5775 |
2354
|
5776 * minmax.cc (Fmin, Fmax): Deal with changes to Matrix class |
|
5777 min/max methods. |
|
5778 |
2345
|
5779 Thu Jul 25 01:42:38 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5780 |
2348
|
5781 * input.cc (generate_possible_completions): Force the names to be |
|
5782 unique. |
|
5783 |
2345
|
5784 * load-save.cc (read_mat_binary_data): Expect to read terminating |
|
5785 NUL character in the variable name. |
|
5786 (save_mat_binary_data): Likewise, save it here. |
|
5787 |
2341
|
5788 Wed Jul 24 05:08:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5789 |
2343
|
5790 * lsode.cc (Flsode): Don't set the return value if an error |
|
5791 occurred during integration. |
2344
|
5792 * dassl.cc (Fdassl): Likewise. |
2343
|
5793 |
2341
|
5794 * file-io.cc (symbols_of_file_io): Redefine values of SEEK_SET, |
|
5795 SEEK_CUR, and SEEK_END for Matlab compatibility. |
|
5796 * oct-stream.cc (seek): Check for compatible values of ORIGIN arg. |
|
5797 Also handle "bof", "cof", and "eof". |
|
5798 |
2338
|
5799 Fri Jul 19 15:24:36 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5800 |
|
5801 * pt-const.cc: When creating octave_value_reps from ComplexMatrix |
|
5802 values, check to see if all the elements are actually real. |
|
5803 |
2330
|
5804 Tue Jul 16 10:53:42 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5805 |
2341
|
5806 * input.cc (decode_prompt_string): Swap meanings of \h and \H. |
2330
|
5807 |
|
5808 Mon Jul 15 16:01:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5809 |
|
5810 * toplev.cc (run_command_and_return_output): Renamed from do_system. |
|
5811 (Fsystem): Make `system ("emacs")' work as one would expect. |
|
5812 |
|
5813 Sun Jul 14 17:34:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5814 |
|
5815 * file-io.cc (Ffopen, Ffread, Ffwrite): Update doc strings, |
|
5816 correctly handle default architecture and precision args. |
|
5817 |
|
5818 * load-save.cc (mopt_digit_to_float_format): Rename from |
|
5819 get_floating_point_format. |
|
5820 (float_format_to_mopt_digit): New function. |
|
5821 |
|
5822 * oct-stream.cc (octave_base_stream::read, octave_base_stream::write): |
|
5823 Simplify by calling Matrix::read and Matrix::write to do real work |
|
5824 of reading, writing, and format conversion. |
|
5825 |
|
5826 * oct-stream.h (octave_base_stream): Move data_type enum to |
|
5827 liboctave/data-conv.h. Use float_format from |
|
5828 liboctave/mach-info.h instead of arch_type enum. |
|
5829 |
|
5830 * sysdep.h, sysdep.cc (octave_words_big_endian, ten_little_endians): |
|
5831 Delete. Now part of oct_mach_info class in liboctave. |
|
5832 |
|
5833 Tue Jul 9 11:18:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5834 |
|
5835 * arith-ops.cc, balance.cc, dassl.cc, data.cc, filter.cc, find.cc, |
|
5836 fsolve.cc, load-save.cc, log.cc, lsode.cc, minmax.cc, npsol.cc, |
|
5837 oct-obj.cc, oct-stream.cc, pr-output.cc, pt-cmd.cc, pt-const.cc, |
|
5838 pt-fvc.cc, pt-plot.cc, quad.cc, rand.cc, sighandlers.cc, sort.cc, |
|
5839 syscalls.cc, unwind-prot.cc, xdiv.cc, xpow.cc: |
|
5840 When indexing arrays, use operator() instead of elem() so that |
|
5841 bounds checking can be done consistently. |
|
5842 |
|
5843 Mon Jun 24 02:13:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5844 |
|
5845 * Makefile.in (install-oct): Use INSTALL_PROGRAM, instead of |
|
5846 INSTALL_DATA for installing shared libraries. |
|
5847 |
|
5848 * lex.l (grab_help_text): Ignore all initial comment characters, |
|
5849 not just the first. |
|
5850 * variables.cc (gobble_leading_white_space): Likewise. |
|
5851 |
|
5852 Sat Jun 22 22:43:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5853 |
|
5854 * input.h, input.cc (octave_completion_matches_called): New varaible. |
|
5855 (Fcompletion_matches): Set it to true on a successful call. |
|
5856 * toplev.cc (main_loop): If octave_completion_matches_called is |
|
5857 true, don't increment current_command_number. |
|
5858 |
|
5859 Thu Jun 13 03:52:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5860 |
|
5861 * variables.cc (is_mapper_function_name, |
|
5862 is_builtin_function_name): New functions. |
|
5863 (Fdocument): Use them. |
|
5864 Define as regular function, not a text style function. |
|
5865 |
|
5866 Thu Jun 6 00:09:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5867 |
|
5868 * pt-plot.cc: Handle new built-in variable `gnuplot_has_frames'. |
|
5869 |
|
5870 Wed Jun 5 14:45:04 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5871 |
|
5872 * input.cc (decode_prompt_string): \h now means the whole host |
|
5873 name and \H is the host name up to the first `.'. |
|
5874 |
|
5875 Thu May 30 23:41:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5876 |
|
5877 * fn-cache.cc (octave_fcn_file_name_cache::do_list): Always |
|
5878 recompute the lists of function files instead of trying to cache |
|
5879 them. |
|
5880 |
|
5881 Tue May 28 12:05:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5882 |
|
5883 * utils.cc (warn_old_style_preference): New function. |
|
5884 (check_preference): Use it. |
|
5885 |
|
5886 * fn-cache.h: Include <ctime> here. |
|
5887 |
|
5888 Fri May 24 00:57:14 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5889 |
|
5890 * input.cc (completion_matches): Don't return empty string_vectors. |
|
5891 |
|
5892 * octave.cc (long_opts): Add braindead. |
|
5893 |
|
5894 Thu May 23 01:49:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5895 |
|
5896 * input.cc (gnu_readline): New optional arg, force_readline. |
|
5897 (get_user_input): Use it. |
|
5898 |
|
5899 * pt-const.cc (OCT_VAL_REP::assign): If converting the rhs to a |
|
5900 numeric value, convert a copy, not the actual object. |
|
5901 (OCT_VAL_REP::do_index): Prevent s([]) from resulting in a string |
|
5902 with zero rows. |
|
5903 |
|
5904 * mappers.cc: Handle toascii here. |
|
5905 * strfns.cc: Not here. |
|
5906 |
|
5907 * mappers.cc: Handle tolower and toupper here. |
|
5908 * mappers.h: Rename can_return_complex_for_real to flag and |
|
5909 overload meaning for ch_mapper. |
|
5910 * pt-fvc.cc (apply_mapper_fcn): Handle overloaded meaning. |
|
5911 |
|
5912 * syscalls.cc (stat): Return 3 values instead of just 1. |
|
5913 (lstat): Likewise. |
|
5914 |
|
5915 Wed May 22 02:34:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5916 |
|
5917 * pt-const.cc (OCT_VAL_REP::make_numeric): For string to number |
|
5918 conversions, correctly set type tag before calling force_numeric. |
|
5919 (do_binary_op): Force string to number conversion if both args are |
|
5920 strings and we are doing some sort of comparison operation. |
|
5921 |
|
5922 * Makefile.in (stamp-tinst, stamp-interp): Use SH_TERMLIBS and |
|
5923 SH_LIBS instead of TERMLIBS and LIBS. |
|
5924 |
|
5925 * pt-const.cc (do_unary_op): Add special case to handle |
|
5926 transposing strings. |
|
5927 |
|
5928 * pt-mat.cc (Vstring_fill_char): New variable. |
|
5929 (symbols_of_pt_mat): DEFVAR it. |
|
5930 |
|
5931 * input.cc (generate_struct_completions, |
|
5932 generate_possible_completions): Return string_vector, not char **. |
|
5933 Change all callers. |
|
5934 |
|
5935 * pt-const.cc (lookup_map_element): Use substr() correctly. |
|
5936 |
|
5937 Tue May 21 21:37:17 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5938 |
|
5939 * oct.h: New file. |
|
5940 * Makefile.in (INCLUDES): Add it to the list. |
|
5941 |
|
5942 * octave.cc: New args --no-site-file and --no-init-file. Delete |
|
5943 --ignore-init-file. The flag --norc (-f) implies both |
|
5944 --no-site-file and --no-init-file. |
|
5945 |
|
5946 Fri May 17 01:54:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5947 |
|
5948 * input.cc (Fcompletion_matches): New function. |
|
5949 |
|
5950 * utils.cc (get_fcn_file_names): Delete. |
|
5951 * help.cc (simple_help): Use new file name cache instead of |
|
5952 calling get_fcn_file_names. |
|
5953 * variables.cc (make_name_list): Likewise. |
|
5954 |
|
5955 * fn-cache.h, fn-cache.cc, Map-fnc.cc: New files. |
|
5956 * Makefile.in: Add them to the lists. |
|
5957 |
|
5958 * Makefile.in (uninstall): Install in octincludedir, not includedir. |
|
5959 |
|
5960 * pt-plot.h: Include <csignal> here. |
|
5961 |
|
5962 Thu May 16 10:52:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5963 |
|
5964 * oct-stream.cc (octave_stream::oscanf, octave_base_stream::oscanf, |
|
5965 octave_base_stream::do_oscanf): New functions for backward |
|
5966 compatibility with older versions of Octave. |
|
5967 (scanf_format_elt, scanf_format_list): Keep track of width specifier. |
|
5968 * file-io.cc (Fscanf): New function. |
|
5969 (Fscanf, Ffscanf, Fsscanf): Handle compatibility arg. |
|
5970 |
|
5971 Wed May 15 01:00:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5972 |
|
5973 * oct-stream.cc (do_scanf): If doing '%c' conversion, unset |
|
5974 ios::skipws on input stream. |
|
5975 |
|
5976 * sighandlers.h, sighandlers.cc (octave_child, octave_child_list): |
|
5977 New classes for keeping track of the child processes we create. |
|
5978 (sigchld_handler): Check in octave_child_list to see if there is |
|
5979 anything we can do for the child that died. |
|
5980 * pager.cc: Register child pager process. |
|
5981 * pt-plot.cc: Likewise, for the plotter. |
|
5982 * Array-oc.cc: New file |
|
5983 * Makefile.in (TI_SRC): Add it to the list. |
|
5984 |
|
5985 * pager.cc (do_sync): Don't check error_state. |
|
5986 (flushing_output_to_pager): New static variable. |
|
5987 (flush_octave_stdout): Use it to avoid doing anything if already |
|
5988 flushing output. |
|
5989 |
|
5990 * sighandlers.cc (sigchld_handler): Call warning instead of |
|
5991 writing directly to cerr. |
|
5992 (sigpipe_handler): Call warning instead of message. |
|
5993 |
|
5994 * octave.cc (main): Call install_signal_handlers, |
|
5995 initialize_file_io, initialize_symbol_tables, and install_builtins |
|
5996 before parsing command line options. |
|
5997 |
|
5998 * user-prefs.h, user-prefs.cc: Delete. |
|
5999 |
|
6000 * utils.cc (check_preference): Move here. |
|
6001 * user-prefs.cc: From here. |
|
6002 |
|
6003 * defaults.cc: New file. Move initialization stuff from |
|
6004 variables.cc. Move DEFVARS for EDITOR, EXEC_PATH, LOADPATH, |
|
6005 IMAGEPATH, and OCTAVE_VERSION here. |
|
6006 |
|
6007 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6008 INFO_FILE and INFO_PROGRAM. |
|
6009 * help.cc: Move all of that here. |
|
6010 (symbols_of_help): Add DEFVARS for INFO_FILE and INFO_PROGRAM. |
|
6011 |
|
6012 Tue May 14 00:23:06 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6013 |
|
6014 * pager.cc (do_sync): Be more defensive about sending stuff to the |
|
6015 external pager. |
|
6016 * sighandlers.cc (sigchld_handler): For now, only wait for |
|
6017 octave_pager_pid. Don't call error(). Do set octave_pager_pid to |
|
6018 -1 if the pager process no longer exists. |
|
6019 |
|
6020 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6021 PWD. |
|
6022 * dirfns.cc: Move all of that here. |
|
6023 (symbols_of_dirfns): New function. |
|
6024 * variables.cc (install_builtin_variables): Call it. |
|
6025 |
|
6026 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6027 default_save_format and save_precision. |
|
6028 * load-save.cc: Move all of that here. |
|
6029 (symbols_of_load_save): New function. |
|
6030 * variables.cc (install_builtin_variables): Call it. |
|
6031 |
|
6032 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6033 warn_divide_by_zero. |
|
6034 * arith-ops.cc: Move all of that here. |
|
6035 (symbols_of_arith_ops): New function. |
|
6036 * variables.cc (install_builtin_variables): Call it. |
|
6037 |
|
6038 * mappers.cc: Add wrappers for ctype is* functions so that they |
|
6039 will work on systems that only define them as macros. |
|
6040 |
|
6041 Mon May 13 00:27:08 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6042 |
|
6043 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6044 suppress_verbose_help_message. |
|
6045 * help.cc: Move all of that here. |
|
6046 (symbols_of_help): New function. |
|
6047 * variables.cc (install_builtin_variables): Call it. |
|
6048 |
|
6049 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6050 treat_neg_dim_as_zero. |
|
6051 * pt-const.cc: Move all of that here. |
|
6052 |
|
6053 * pager.cc (octave_pager_stream::do_sync): Don't return early if |
|
6054 not interactive. |
|
6055 |
|
6056 * data.h: New file. |
|
6057 * Makefile.in (INCLUDES): Add it to the list. |
|
6058 * data.cc (symbols_of_data): New function. Move definition of I, |
|
6059 Inf, J, NaN, e, eps, i, inf, j, nan, pi, realmin, and realmax here. |
|
6060 * variables.cc: From here. |
|
6061 (install_builtin_variables): Call symbols_of_data. |
|
6062 |
|
6063 * file-io.cc (symbols_of_file_io): New function. Move definition |
|
6064 of SEEK_CUR, SEEK_END, SEEK_SET, stdin, stdout, stderr here. |
|
6065 * variables.cc: From here. |
|
6066 (install_builtin_variables): Call symbols_of_file_io. |
|
6067 |
|
6068 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6069 do_fortran_indexing, implicit_str_to_num_ok, |
|
6070 ok_to_lose_imaginary_part, prefer_column_vectors, |
|
6071 prefer_zero_one_indexing, print_answer_id_name, |
|
6072 propagate_empty_matrices, resize_on_range_error, and |
|
6073 struct_levels_to_print. |
|
6074 * pt-const.cc: Move all of that here. |
|
6075 (symbols_of_pt_const): New function. |
|
6076 * variables.cc (install_builtin_variables): Call it. |
|
6077 * pt-fvc.cc (tree_identifier::assign): Use Vresize_on_range_error |
|
6078 instead of user_pref.resize_on_range_error here. |
|
6079 * load-save.cc (save_mat_binary_data): Use Vimplicit_str_to_num_ok |
|
6080 instead of user_pref.implicit_str_to_num_ok here. |
|
6081 * utils.cc (empty_arg): Use Vpropagate_empty_matrices instead of |
|
6082 user_pref.propagate_empty_matrices here. |
|
6083 * pt-exp-base.cc (tree_expression::is_logically_true): Likewise.. |
|
6084 |
|
6085 * pt-fcn.cc (symbols_of_pt_fcn): Also move DEFVAR for |
|
6086 default_return_value here. |
|
6087 |
|
6088 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6089 ps1, ps2, ps4, and completion_append_char. |
|
6090 * input.cc: Move all of that here. |
|
6091 (symbols_of_input): New function. |
|
6092 * variables.cc (install_builtin_variables): Call it. |
|
6093 * pt-pr-code.cc (indent): Use Vps4 instead of user_pref.ps4 here. |
|
6094 * help.cc (Ftype): Also here. |
|
6095 |
|
6096 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6097 automatic_replot, gnuplot_binary, and gnuplot_has_multiplot. |
|
6098 * pt-plot.cc: Move all of that here. |
|
6099 (symbols_of_pt_plot): New function. |
|
6100 * variables.cc (install_builtin_variables): Call it. |
|
6101 |
|
6102 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6103 beep_on_error. |
|
6104 * error.cc: Move all of that here. |
|
6105 (symbols_of_error): New function. |
|
6106 * variables.cc (install_builtin_variables): Call it. |
|
6107 |
|
6108 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6109 empty_list_elements_ok. |
|
6110 * pt-mat.cc: Move all of that here. |
|
6111 (symbols_of_pt_mat): New function. |
|
6112 * variables.cc (install_builtin_variables): Call it. |
|
6113 |
|
6114 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6115 define_all_return_values, return_last_computed_value, and |
|
6116 silent_functions. |
|
6117 * pt-fcn.cc: Move all of that here. |
|
6118 (symbols_of_pt_fcn): New function. |
|
6119 * variables.cc (install_builtin_variables): Call it. |
|
6120 |
|
6121 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6122 whitespace_in_literal_matrix. |
|
6123 * lex.l: Move all of that here. |
|
6124 (symbols_of_lex): New function. |
|
6125 * variables.cc (install_builtin_variables): Call it. |
|
6126 |
|
6127 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6128 warn_assign_as_truth_value, warn_comma_in_global_decl, |
|
6129 warn_function_name_clash, and warn_missing_semicolon. |
|
6130 * parse.y: Move all of that here. |
|
6131 (symbols_of_parse): New function. |
|
6132 * variables.cc (install_builtin_variables): Call it. |
|
6133 |
|
6134 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6135 output_precision, output_max_field_width, print_empty_dimensions, |
|
6136 and split_long_rows. |
|
6137 * pr-output.cc: Move all of that here. |
|
6138 (symbols_of_pr_output): New function. |
|
6139 * variables.cc (install_builtin_variables): Call it. |
|
6140 |
|
6141 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
6142 page_screen_output, page_output_immediately, and pager_binary. |
|
6143 * pager.cc: Move all of that here. |
|
6144 |
|
6145 * user-prefs.h (check_preference): Provide declaration. |
|
6146 * user-prefs.cc (check_preference): Make external. |
|
6147 |
|
6148 * toplev.cc (Foctave_config_info): New function. |
|
6149 |
|
6150 * oct-conf.h.in: New file |
|
6151 * Makefile.in (oct-conf.h): New target. |
|
6152 Add it to the appropriate lists. |
|
6153 |
|
6154 * sighandlers.cc (sigchld_handler): Don't complain about wait |
|
6155 returning a negative value. |
|
6156 |
|
6157 * file-io.cc (Fsscanf, Fsprintf): Pass true for second arg of |
|
6158 octave_stream constructor. |
|
6159 |
|
6160 * oct-stream.h (octave_stream): New field, preserve. |
|
6161 (octave_stream::~octave_stream): If preserve, don't delete rep. |
|
6162 |
|
6163 * pager.cc (symbols_of_pager): Set default for |
|
6164 page_output_immediately to 0. |
|
6165 |
|
6166 * toplev.cc (do_system): Correctly handle return_output. |
|
6167 Append ends to output_buf before calling str(). |
|
6168 |
|
6169 * variables.cc: If M_PI and M_E are available, use them. |
|
6170 |
|
6171 * mk-oct-links.in (links_dir): If old link exists, delete it first. |
|
6172 |
|
6173 Sun May 12 01:46:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6174 |
|
6175 * Makefile.in (DISTFILES): List defaults.h.in and oct-gperf.h here. |
|
6176 (INCLUDES): Not here. |
|
6177 (install-inc): New target. |
|
6178 (uninstall): Also delete libraries and include files. |
|
6179 (install-inc): If linkdir is a directory, leave it alone. |
|
6180 (TERMLIBS, LIBPLPLOT, LIBDLFCN): Don't substitute here (now in |
|
6181 Makeconf). |
|
6182 |
|
6183 * oct-stream.cc (octave_base_stream::do_read): Provide initial |
|
6184 value for tmp var. |
|
6185 |
|
6186 * pt-walk.h, pt-pr-code.h, pt-pr-code.cc: New tree-walking classes. |
|
6187 * Makefile.in: Add them to the appropriate lists. |
|
6188 * pt-fvc-base.h, pt-exp-base.cc, pt-fvc-base.cc, pt-mvr-base.cc, |
|
6189 pt-base.cc, pt-mvr.cc, pt-mat.h, pt-mat.cc, pt-fvc.cc, |
|
6190 pt-const.cc, pt-cmd.cc, pt-const.h, pt-misc.cc, pt-plot.cc, |
|
6191 pt-fcn.cc, pt-plot.h, pt-mvr.h, pt-mvr-base.h, pt-misc.h, |
|
6192 pt-fcn.h, pt-exp.h, pt-exp.cc, pt-exp-base.h, pt-fvc.h, pt-cmd.h, |
|
6193 pt-base.h: |
|
6194 Replace print_code stuff with accept() functions. |
|
6195 Add member access functions where necessary. |
|
6196 * help.cc (Ftype): Update to use new method of walking trees to |
|
6197 print text representation of user-defined functions. |
|
6198 |
|
6199 * file-io.cc (Ffscanf): Update doc string. |
|
6200 (Fsscanf): Likewise. |
|
6201 |
|
6202 * oct-stream.cc (octave_base_stream::do_read): Correctly set max_size. |
|
6203 Pad mval with zeros on final resize. |
|
6204 (octave_base_stream::do_scanf): Likewise. |
|
6205 (do_scanf_conv): Correctly resize mval. |
|
6206 |
|
6207 Sat May 11 05:14:09 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6208 |
|
6209 * pager.cc (octave_pager_buf::sync): Correctly set bypass_pager. |
|
6210 |
|
6211 * lex.l (<MATRIX>{SNLCMT}*\]{S}*): Match SNLCMT, not just SNL. |
|
6212 |
|
6213 Fri May 3 11:05:30 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6214 |
|
6215 * pt-const.cc (OCT_VAL_REP::set_index): Complain if type can't be |
|
6216 indexed. |
|
6217 |
|
6218 * input.cc (get_user_input): Don't increment input line number if |
|
6219 input is coming from eval string. |
|
6220 |
|
6221 * user-prefs.cc: Allow empty strings for prompts. |
|
6222 |
|
6223 Thu May 2 10:50:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6224 |
|
6225 * pt-mvr.h (class tree_oct_obj): Declare values data member const. |
|
6226 |
|
6227 Sun Apr 28 03:16:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6228 |
|
6229 * user-prefs.h (user_preferences): New field, |
|
6230 `page_output_immediately'. |
|
6231 * user-prefs.cc (init_user_prefs): Initialize it. |
|
6232 (page_output_immediately): New function. |
|
6233 * pager.cc (syms_of_pager): Add DEFVAR. |
|
6234 (really_flush_to_pager): New file-scope variable. |
|
6235 (flush_octave_stdout): Set and restore it. |
|
6236 (octave_pager_buf::sync): Check it, user_pref.page_screen_output, |
|
6237 and user_pref.page_output_immediately to decide when to really |
|
6238 flush output. |
|
6239 (more_than_a_screenful): New function. If paging but not |
|
6240 immediately, then check this too. |
|
6241 |
|
6242 * pager.cc (default_pager): Move here from variables.cc. If pager |
|
6243 is less and LESS is not in the environment, append useful flags. |
|
6244 (symbols_of_pager): New function. |
|
6245 * variables.cc (install_builtin_variables): Call it. |
|
6246 Delete pager-related DEFVARs. |
|
6247 |
|
6248 * syswait.h (WIFSIGNALLED): Define if sys/wait.h doesn't. |
|
6249 |
|
6250 * sighandlers.cc: Handle SIGCHLD. |
|
6251 |
|
6252 * pager.cc, pager.h: Rewrite. |
|
6253 * pt-mvr.cc, pt-misc.cc, pt-fcn.cc, pt-const.cc, oct-hist.cc, |
|
6254 file-io.cc, help.cc, variables.cc, qpsol.cc, dassl.cc, quad.cc, |
|
6255 npsol.cc, lsode.cc, fsolve.cc, load-save.cc, dirfns.cc, octave.cc, |
|
6256 toplev.cc, error.cc, input.cc: |
|
6257 Write to octave_stdout and octave_diary instead of calling |
|
6258 maybe_page_output() or maybe_write_to_diary_file(). |
|
6259 |
|
6260 * oct-procbuf.h, oct-procbuf.cc: New files. |
|
6261 * procstream.h (class procstreambase): Use octave_procbuf instead |
|
6262 of procbuf from libg++, so we can get pids of subprocesses. |
|
6263 |
|
6264 Fri Apr 26 01:21:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6265 |
|
6266 * pt-const.cc (OCT_VAL_REP::do_index): Call maybe_mutate() before |
|
6267 returning. |
|
6268 |
|
6269 * mappers.h (struct Mapper_fcn): Delete. |
|
6270 (struct builtin_mapper_function): New field ch_mapper. |
|
6271 * pt-fvc.h (tree_builtin): Convert type of mapper_fcn from |
|
6272 Mapper_fcn to builtin_mapper_function. |
|
6273 * variables.cc (install_builtin_mapper): Likewise, for arg. |
|
6274 Simplify, since we don't have to do the copying ourselves now. |
|
6275 * pt-fvc.cc (apply_mapper_function): Handle ch_mapper case. |
|
6276 * defun.h (DEFUN_MAPPER): Likewise. |
|
6277 * mappers.cc (install_builtin_mappers): Likewise. |
|
6278 Add ctype is* functions here. |
|
6279 |
|
6280 Thu Apr 25 00:57:06 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6281 |
|
6282 * arith-ops.h, defun-int.h, defun.h, dynamic-ld.h, gripes.h, |
|
6283 load-save.h, oct-map.h, oct-obj.h, oct-stream.h, pt-cmd.h, |
|
6284 pt-const.h, pt-exp-base.h, pt-exp.h, pt-fcn.h, pt-fvc-base.h, |
|
6285 pt-fvc.h, pt-mat.h, pt-misc.h, pt-mvr-base.h, pt-mvr.h, pt-plot.h, |
|
6286 symtab.h, toplev.h, utils.h, variables.h, xpow.h, Array-tc.cc, |
|
6287 Map-i.cc, Map-tc.cc, SLList-tc.cc, arith-ops.cc, balance.cc, |
|
6288 bogus.cc, chol.cc, colloc.cc, dassl.cc, data.cc, det.cc, |
|
6289 dirfns.cc, eig.cc, error.cc, expm.cc, fft.cc, fft2.cc, file-io.cc, |
|
6290 filter.cc, find.cc, fsolve.cc, fsqp.cc, givens.cc, gripes.cc, |
|
6291 help.cc, hess.cc, ifft.cc, ifft2.cc, input.cc, inv.cc, |
|
6292 load-save.cc, log.cc, lpsolve.cc, lsode.cc, lu.cc, minmax.cc, |
|
6293 npsol.cc, oct-hist.cc, oct-obj.cc, oct-stream.cc, pager.cc, |
|
6294 pinv.cc, pr-output.cc, pt-cmd.cc, pt-const.cc, pt-exp-base.cc, |
|
6295 pt-exp.cc, pt-fcn.cc, pt-fvc-base.cc, pt-fvc.cc, pt-mat.cc, |
|
6296 pt-misc.cc, pt-mvr-base.cc, pt-mvr.cc, pt-plot.cc, qpsol.cc, |
|
6297 qr.cc, quad.cc, qzval.cc, rand.cc, resource.cc, schur.cc, sort.cc, |
|
6298 strfns.cc, svd.cc, syl.cc, symtab.cc, syscalls.cc, sysdep.cc, |
|
6299 timefns.cc, toplev.cc, utils.cc, variables.cc, xpow.cc, parse.y: |
|
6300 Rename tree_constant -> octave_value. |
|
6301 Rename Octave_object -> octave_value_list. |
|
6302 |
|
6303 Wed Apr 24 22:15:34 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6304 |
|
6305 * toplev.cc (Fsystem): Merge functionality of async_system and |
|
6306 sync_system. |
|
6307 |
|
6308 * oct-fstrm.h, oct-iostrm.h, oct-prcstrm.h, oct-stdstrm.h, |
|
6309 oct-stream.h, oct-strstrm.h, oct-fstrm.cc, oct-iostrm.cc, |
|
6310 oct-prcstrm.cc, oct-stdstrm.cc, oct-stream.cc, oct-strstrm.cc, |
|
6311 Array-os.cc: New files. |
|
6312 * Makefile.in: Add them to the appropriate lists. |
|
6313 * file-io.cc: Rewrite to use new stream classes. |
|
6314 |
|
6315 Tue Apr 23 18:59:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6316 |
|
6317 * gripes.cc (gripe_not_supported): New function. |
|
6318 |
|
6319 * toplev.cc (do_octave_atexit, Fatexit): New functions. |
|
6320 (octave_atexit_functions): New file-scope variable. |
|
6321 * octave.cc (main): Register do_octave_atexit with atexit. |
|
6322 |
|
6323 * variables.cc (install_builtin_variables): Call |
|
6324 symbols_of_syscalls here. |
|
6325 |
|
6326 * syscalls.h, syscalls.cc: New files. |
|
6327 |
|
6328 Mon Apr 22 21:14:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6329 |
|
6330 * syscalls.cc: New file. |
|
6331 (Flstat, Fmkfifo, Fstat, Funlink, Fwait, Fwaitpid): Move here. |
|
6332 * file-io.cc: From here. |
|
6333 * Makefile.in (SOURCES): Add syscalls.cc to the list. |
|
6334 |
|
6335 Wed Apr 17 18:34:10 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6336 |
|
6337 * file-info.h, file-info.cc: Delete files. |
|
6338 * Makefile.in: Remove from lists. |
|
6339 |
|
6340 * toplev.cc (Fquit): Accept exit status argument. |
|
6341 (Fflops): Delete (now a function file). |
|
6342 |
|
6343 Thu Apr 11 16:20:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6344 |
|
6345 * lex.l: Recognize `.'. |
|
6346 Update current_input_column even for unrecognized characters. |
|
6347 Return LEXICAL_ERROR for unrecognized characters. |
|
6348 |
|
6349 Mon Apr 8 19:59:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6350 |
|
6351 * variables.cc (install_builtin_variables): Split into several |
|
6352 functions to make compiling with g++ go faster and consume less |
|
6353 memory. |
|
6354 |
|
6355 Sun Apr 7 16:25:35 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6356 |
|
6357 * load-save.cc (Fsave): Print usage if i == argc. |
|
6358 (Fload): Likewise. |
|
6359 |
|
6360 Sat Apr 6 21:26:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6361 |
|
6362 * Makefile.in (clean): Also delete pic/*.o |
|
6363 (maintainer-clean, distclean): Also remove stamp-picdir, |
|
6364 stamp-tinst, stamp-interp, and pic directory. |
|
6365 (stamp-prereq): New target. |
|
6366 |
|
6367 Wed Apr 3 11:19:30 1996 Rick Niles <niles@axp745.gsfc.nasa.gov> |
|
6368 |
|
6369 * resource.cc: Don't make including sys/resource.h and sys/times.h |
|
6370 mutually exclusive. |
|
6371 |
|
6372 Fri Mar 29 13:43:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6373 |
|
6374 * Makefile.in (distclean): Delete so_locations, which is created |
|
6375 on DEC Alpha systems. |
|
6376 |
|
6377 Thu Mar 28 02:53:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6378 |
|
6379 * utils.h (undo_string_escape): Provide extern declaration here. |
|
6380 |
|
6381 * lex.l (NL): Allow \r\n as new line character. |
|
6382 (.): Complain if invalid character is found on input |
|
6383 |
|
6384 Fri Mar 22 03:47:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6385 |
|
6386 * resource.cc (getrusage): If getrusage is missing, try using |
|
6387 times to at least fill in the cpu time values. If neither one is |
|
6388 available, return 0 for cpu times instead of NaN. |
|
6389 |
|
6390 * sighandlers.cc (octave_signal_mask): New file-scope variable. |
|
6391 (octave_save_signal_mask, octave_restore_signal_mask): New functions. |
|
6392 * toplev.cc (main_loop): Use them. |
|
6393 |
|
6394 Wed Mar 20 01:21:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6395 |
|
6396 * utils.cc (get_fcn_file_names (const string&, int)): Resize |
|
6397 retval to value of k, not i. |
|
6398 (get_fcn_file_names (int)): In loop for copying names to retval, |
|
6399 don't increment j twice. |
|
6400 |
|
6401 Mon Mar 18 22:27:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6402 |
|
6403 * Makefile.in ($(MAKEDEPS)): Depend on oct-gperf.h. |
|
6404 |
|
6405 Fri Mar 1 18:15:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6406 |
|
6407 * fsolve.cc (fsolve_options): Delete unused argument nargout. |
|
6408 |
|
6409 * filter.cc: Use MArray instead of Array so that automatic |
|
6410 conversions will work again. |
|
6411 |
|
6412 Tue Feb 27 04:49:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6413 |
|
6414 * variables.cc (looks_like_octave_copyright): Make the strings |
|
6415 that we are trying to match both have length 29. |
|
6416 |
|
6417 * Makefile.in (install-bin): Use $(INSTALL_PROGRAM), not $(INSTALL). |
|
6418 |
|
6419 * load-save.cc (read_mat_binary_data): Make sure name is |
|
6420 NUL terminated. |
|
6421 |
|
6422 Mon Feb 26 18:18:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6423 |
|
6424 * variables.cc (whos): Make argv from tmp_args, not args. |
|
6425 |
|
6426 * defun.h (DEFCONSTX): Don't stringify name. |
|
6427 |
|
6428 Sat Feb 24 01:12:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6429 |
|
6430 * Makefile.in (install-oct): Make mk-oct-links executable. |
|
6431 * mk-oct-links.in (links_dir): Update to match new format of |
|
6432 DEFUN_DLD_BUILTIN macro. Use LN_S, not just LN. |
|
6433 (links_dir): |
|
6434 |
|
6435 * pr-output.cc (octave_print_internal): New arg, extra_indent, for |
|
6436 versions of this function that take matrices and ranges. |
|
6437 * pt-const.cc (TC_REP::print (ostream&)): Fix printing of structures. |
|
6438 Pass struct_indent to octave_print_internal as appropriate. |
|
6439 (print_with_name (ostream&, const string&, bool)): Handle spacing |
|
6440 around `=' differently for structures. |
|
6441 |
|
6442 Fri Feb 23 04:51:04 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6443 |
|
6444 * token.cc (token (double, const string&, int, int)): Store orig_text. |
|
6445 |
|
6446 Tue Feb 20 20:36:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6447 |
|
6448 * variables.cc (Fclear): Fix off-by-one error. |
|
6449 |
|
6450 Sat Feb 17 16:54:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6451 |
|
6452 * oct-hist.cc (default_history_file): Append "/.octave_hist" to |
|
6453 return value, not to home_directory. |
|
6454 |
|
6455 Fri Feb 16 18:10:46 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6456 |
|
6457 * utils.cc: (NINT, D_NINT): Move to liboctave. |
|
6458 |
|
6459 * sysdep.cc (octave_ieee_init): Move to liboctave. |
|
6460 |
|
6461 * procstream.h, procstream.cc: Rewrite. |
|
6462 |
|
6463 * pager.cc (cleanup_oprocstream): New static function. |
|
6464 * toplev.cc (cleanup_iprocstream): Likewise. |
|
6465 * dirfns.cc (cleanup_iprocstream): Likewise. |
|
6466 |
|
6467 * unwind-prot.cc (matrix_cleanup, complex_matrix_cleanup): Delete. |
|
6468 |
|
6469 Thu Feb 15 22:03:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6470 |
|
6471 * oct-obj.cc, oct-obj.h: Move most code to the header. |
|
6472 |
|
6473 * oct-obj.cc (make_argv, all_strings): New member functions. |
|
6474 * utils.cc: Moved from here. |
|
6475 |
|
6476 * load-save.cc: Move byte swapping stuff to liboctave. |
|
6477 Move float format conversion stuff to liboctave. |
|
6478 (all_parts_int, too_large_for_float): Move to liboctave. |
|
6479 |
|
6480 * symtab.cc (valid_identifier): Move here. |
|
6481 * load-save.cc: From here. |
|
6482 |
|
6483 * sysdep.cc: Move floating-point format stuff to liboctave. |
|
6484 * pr-output.cc: Include float-fmt.h here. |
|
6485 |
|
6486 Wed Feb 14 01:49:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6487 |
|
6488 * defun.h, defun-dld.h, defun-int.h: Simplify interface for DEFUN, |
|
6489 DEFUN_DLD, DEFVAR, and DEFCONST macros. Change all uses. |
|
6490 |
|
6491 * qzval.cc: Move guts to liboctave. |
|
6492 |
|
6493 Tue Feb 13 10:28:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6494 |
|
6495 * variables.cc (parse_fcn_file): Also avoid saving history if |
|
6496 input is from a script file. |
|
6497 |
|
6498 * help.cc (Ftype): Call unwind_protect_str for user_pref.ps4. |
|
6499 |
|
6500 * npsol.cc (nonlinear_constraints_ok): Now static. |
|
6501 |
|
6502 * npsol.cc (linear_constraints_ok): Now static. |
|
6503 * qpsol.cc (linear_constraints_ok): Duplicate here. |
|
6504 |
|
6505 * data.cc (Flinspace): Don't print usage message if nargin == 2. |
|
6506 |
|
6507 Sun Feb 11 14:20:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6508 |
|
6509 * mk-oct-links.in: Rename from mk-oct-links. |
|
6510 (LN_S): Use this variable instead of ln. |
|
6511 Set -e option for shell. |
|
6512 Exit with status of last command. |
|
6513 Print message when making link. |
|
6514 * Makefile.in (DISTFILES): Add mk-oct-links.in to the list. |
|
6515 (install-oct): Run ./mk-oct-links, not $(srcdir)/mk-oct-links. |
|
6516 |
|
6517 * variables.cc (install_builtin_variables): Restore accidentally |
|
6518 deleted DEFVAR for save_precision. |
|
6519 |
|
6520 Fri Feb 9 11:24:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6521 |
|
6522 * Makefile.in (INCLUDES): Delete statdefs.h from the list (it's |
|
6523 now in the liboctave directory). |
|
6524 |
|
6525 * toplev.cc (toplevel): Define here. |
|
6526 * octave.cc (toplevel): Not here. |
|
6527 |
|
6528 * toplev.cc (main_loop): New function. |
|
6529 * octave.cc (main): Call it here instead of doing main loop |
|
6530 actions here. |
|
6531 |
|
6532 * user-prefs.cc (do_fortran_indexing): Also set liboctave_dfi_flag. |
|
6533 (prefer_column_vectors): Also set liboctave_pcv_flag. |
|
6534 (prefer_zero_one_indexing): Also set liboctave_pzo_flag. |
|
6535 (resize_on_range_error): Also set liboctave_rre_flag. |
|
6536 |
|
6537 * variables.cc (restore_command_history): New function. |
|
6538 (parse_fcn_file): Use it here in unwind_protect. |
|
6539 |
|
6540 * dynamic-ld.cc (load_octave_oct_file): Reverse sense of test. |
|
6541 (load_octave_builtin): Delete. |
|
6542 (mangle_octave_oct_file_name): Delete. |
|
6543 |
|
6544 * pt-fvc.cc (tree_builtin::eval): Don't try to dynamically load |
|
6545 functions here. |
|
6546 |
|
6547 * pr-output.cc (set_format_style): Decrement argc for first arg too. |
|
6548 |
|
6549 * input.cc (gnu_readline): If readline returns an empty string, |
|
6550 convert it to a string containing a single newline character. |
|
6551 |
|
6552 * octave.cc (octave_argv): Now a static string_vector. |
|
6553 (intern_argv): Use string_vector ops, not charMatrix ops. |
|
6554 * toplev.cc (octave_argv): Delete definition. |
|
6555 * toplev.h (octave_argv): Delete declaration. |
|
6556 |
|
6557 Thu Feb 8 10:58:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6558 |
|
6559 * Makefile.in (conf-dist): New target. |
|
6560 |
|
6561 Tue Feb 6 10:59:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6562 |
|
6563 * help.cc (Ftype): Correctly handle structure names. |
|
6564 |
|
6565 Sun Feb 4 02:02:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6566 |
|
6567 * qpsol.cc (Fqpsol): Call set_options(), not copy() to set |
|
6568 options for QPSOL objects. |
|
6569 |
|
6570 * npsol.cc (Fnpsol): Call set_options(), not copy() to set |
|
6571 options for NPSOL objects. |
|
6572 |
|
6573 * quad.cc (Fquad): Call set_options(), not copy() to set |
|
6574 options for Quad objects. |
|
6575 |
|
6576 * dynamic-ld.cc (load_octave_builtin): Don't call destructor on string. |
|
6577 (load_octave_oct_file): Likewise. |
|
6578 Check oct_file.empty(), not just oct_file. |
|
6579 |
|
6580 * fsolve.cc (Ffsolve): Call set_options(), not copy() to set |
|
6581 options for NLEqn object. |
|
6582 |
|
6583 * variables.cc (do_who): Properly set match patterns from argument |
|
6584 vector for call to maybe_list. |
|
6585 |
|
6586 Sat Feb 3 03:29:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6587 |
|
6588 * octave.cc (long_opts): Properly set second field using new enum. |
|
6589 |
|
6590 * lsode.cc: Change ODE to LSODE where appropriate. |
|
6591 Use LSODE_options, not ODE_options. |
|
6592 |
|
6593 * dassl.cc: Change DAE to DASSL where appropriate. |
|
6594 Use DASSL_options, not ODE_options. |
|
6595 |
|
6596 Fri Feb 2 01:41:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6597 |
|
6598 * dirfns.cc: Include unistd.h. |
|
6599 |
|
6600 * parse.y, lex.l: Handle matrix lists without ml or mlnm stacks. |
|
6601 * pt-mat.h, pt-mat.cc (tree_matrix): |
|
6602 Rewrite to use SLList instead of home brew list. |
|
6603 * SLList-tm.cc: New file |
|
6604 * Makefile.in: Add it to the lists. |
|
6605 * SLStack-tm.cc: Delete. |
|
6606 * Makefile.in: Delete it from the lists. |
|
6607 |
|
6608 * All pt-* files: Use bool instead of int where appropriate. |
|
6609 |
|
6610 * Makefile.in (DEP_SOURCES_3): Add octave.cc. |
|
6611 |
|
6612 * pt-const.h (class tree_constant::tree_constant_rep): Make |
|
6613 everything in this class public, then it doesn't need to declare |
|
6614 the tree_constant class as a friend. |
|
6615 |
|
6616 Thu Feb 1 01:42:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6617 |
|
6618 * lex.h, lex.l, parse.h, parse.y (class lexical_feedback): New |
|
6619 class for lexer flags. Replace lots of global vars with members |
|
6620 of this class. |
|
6621 |
|
6622 * lex.l (class brace_paren_nesting_level): New class to replace |
|
6623 nesting_level stack. nesting_level is now an instance of this |
|
6624 class. |
|
6625 |
|
6626 * lex.l (yum_yum): New typedef. |
|
6627 (ATE_NOTHING): New global var. |
|
6628 (ATE_SPACE_OR_TAB, ATE_NEWLINE): Don't #define these, declare them |
|
6629 as const yum_yum. |
|
6630 (eat_whitespace, eat_continuation): Return yum_yum, not int. |
|
6631 |
|
6632 * lex.l (SHORT_CIRCUIT_LOGICALS): Delete. Always do this for || |
|
6633 and && tokens. |
|
6634 (yy_flex_alloc, yy_flex_realloc, yy_flex_free, next_char_is_space): |
|
6635 Delete. |
|
6636 |
|
6637 * toplev.cc (verbose_flag): Delete definition. |
|
6638 * toplev.h (verbose_flag): And declaration. |
|
6639 * octave.cc (verbose_flag): Now static. |
|
6640 |
|
6641 * lex.l (lookup_identifier): Arg is now string, not char*. |
|
6642 (handle_identifier, is_plot_keyword, is_keyword): Likewise. |
|
6643 (strip_trailing_whitespace): Return value is now string, not char*. |
|
6644 (plot_style_token): Likewise, for both arg and return value. |
|
6645 |
|
6646 * input.cc (octave_gets_line): Delete. |
|
6647 (gnu_readline, octave_gets, octave_read): |
|
6648 Properly handle input when using_readline is either true or false. |
|
6649 Don't limit length of input lines to flex buffer size. |
|
6650 (get_user_input): New function. |
|
6651 |
|
6652 * octave.cc (main): Handle --no-line-editing. |
|
6653 * toplev.h (using_readline): Provide external declaration here. |
|
6654 * input.h: Not here. |
|
6655 * toplev.cc (using_readline): Define here. |
|
6656 * input.cc: Not here. |
|
6657 |
|
6658 * toplev.h (no_line_editing): Delete declaration. |
|
6659 * input.cc (no_line_editing): Delete definition. |
|
6660 |
|
6661 Wed Jan 31 05:28:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6662 |
|
6663 * input.cc (DEFAULT_ARRAY_SIZE, PROMPT_GROWTH): Delete definitions |
|
6664 of unused macros. |
|
6665 (read_octal): Now static. |
|
6666 |
|
6667 * givens.cc (Fgivens): Use new functions from matrix classes |
|
6668 instead of calling Fortran functions directly. |
|
6669 * syl.cc (Fsyl): Likewise. |
|
6670 * expm.cc (Fexpm): Likewise. |
|
6671 |
|
6672 Mon Jan 29 00:00:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6673 |
|
6674 * octave.cc: Use new prog_args class instead of calling getopt |
|
6675 directly. |
|
6676 |
|
6677 * getopt.h, getopt.c, getopt1.c: Move to liboctave directory. |
|
6678 * Makefile: Remove from lists. |
|
6679 |
|
6680 * utils.cc (strconcat, read_until, discard_until): Delete. |
|
6681 |
|
6682 * pager.cc (terminal_columns, terminal_rows): Move to |
|
6683 liboctave/oct-term.cc. |
|
6684 * pager.cc, pr-output.cc: Include oct-term.h. |
|
6685 |
|
6686 * utils.cc (list_in_columns): Moved to liboctave/str-vec.cc. |
|
6687 Change all callers to use new member function syntax. |
|
6688 |
|
6689 * dirfns.cc (absolute_program): Now static. |
|
6690 (absolute_pathname): Delete. |
|
6691 |
|
6692 * pt-plot.cc (save_in_tmp_file): Call oct_tempnam, not |
|
6693 octave_tmp_file_name. Include file-ops.h. |
|
6694 * file-io.cc (do_scanf, Foctave_tmp_file_name): Likewise. |
|
6695 * oct-hist.cc (mk_tmp_hist_file): Likewise. |
|
6696 |
|
6697 * file-io.cc (Foctave_tmp_file_name): Move here. |
|
6698 * utils.cc: From here. |
|
6699 |
|
6700 * utils.cc (octave_tmp_file_name): Move to liboctave/file-ops.cc. |
|
6701 |
|
6702 * tempname.c, tempnam.c: Move to liboctave directory. |
|
6703 * Makefile.in: Remove from lists. |
|
6704 |
|
6705 Sun Jan 28 19:00:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6706 |
|
6707 * xdiv.cc (all xdiv functions): Return Matrix or ComplexMatrix, |
|
6708 not tree_constant. |
|
6709 |
|
6710 * oct-hist.h, oct-hist.cc, toplev.cc, octave.cc, input.cc, |
|
6711 file-io.cc, user-prefs.cc: Rewrite to use new command_history |
|
6712 class instead of calling readline history functions directly. |
|
6713 |
|
6714 * utils.cc (get_fcn_file_names): Delete num arg. |
|
6715 |
|
6716 Thu Jan 25 20:33:54 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6717 |
|
6718 * load-save.cc (matches_patterns): Use new glob_match class |
|
6719 instead of calling fnmatch directly. |
|
6720 * symtab.cc (matches_patterns, symbol_table::glob): Likewise. |
|
6721 * variables.cc (Fclear): Likewise. |
|
6722 |
|
6723 Wed Jan 24 02:05:22 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6724 |
|
6725 * fnmatch.h fnmatch.c: Delete. |
|
6726 * Makefile.in: Add glob stuff in the appropriate places, remove |
|
6727 fnmatch.h and fnmatch.c from lists. |
|
6728 |
|
6729 * octave.cc (program_invocation_name, program_invocation_short_name): |
|
6730 Maybe declare. |
|
6731 (initialize_globals): Maybe initialize them. |
|
6732 |
|
6733 * octave.cc (initialize_pathsearch): Define here, not in pathsearch.cc. |
|
6734 * pathsearch.h, pathsearch.cc: Remove files. |
|
6735 * Makefile.in: Remove them from the lists. |
|
6736 |
|
6737 * help.cc (simple_help): Ignore directories that don't have any .m |
|
6738 or .oct files. |
|
6739 |
|
6740 * utils.cc (search_path_for_file): Use new dir_path class instead |
|
6741 of calling kpathsea routines directly. |
|
6742 (get_fcn_file_names): Likewise. |
|
6743 * help.cc (simple_help): Likewise. |
|
6744 |
|
6745 * dirfns.cc (make_absolute): Don't convert empty arg to "./". |
|
6746 |
|
6747 * sysdir.h: Move to liboctave directory. |
|
6748 * Makefile.in: Remove from lists. |
|
6749 |
|
6750 * dirfns.cc (Freaddir): Use new dir_entry class instead of calling |
|
6751 readdir directly. Include dir-ops.h, not sysdir.h. |
|
6752 * utils.cc (get_fcn_file_names): Likewise. Delete unnecessary |
|
6753 first arg, change all callers. |
|
6754 |
|
6755 Tue Jan 23 00:43:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6756 |
|
6757 * safe-xstat.hin, safe-xstat.cin, statdefs.h, file-ops.h, |
|
6758 file-ops.cc, filemode.c, mkdir.c, rmdir.c, rename.c: |
|
6759 Files moved to liboctave directory. |
|
6760 * Makefile.in: Remove them from lists. Move appropriate rules. |
|
6761 |
|
6762 * acosh.c, asinh.c, atanh.c, erf.c, erfc.c, gamma.c, lgamma.c: |
|
6763 Files moved to liboctave directory. |
|
6764 * Makefile.in: Remove them from lists. |
|
6765 * missing-math.h: Deleted. |
|
6766 * pr-output.cc, sysdep.cc, minmax.cc, mappers.cc, expm.cc, |
|
6767 arith-ops.cc: Include oct-math.h, not cmath or missing-math.h. |
|
6768 |
|
6769 Mon Jan 22 19:33:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6770 |
|
6771 * variables.cc (Fexist): Use file_stat instead of calling stat |
|
6772 directly. Include file-ops.h, not statdefs.h. |
|
6773 * octave.cc (execute_startup_files): Likewise. |
|
6774 * file-io.cc (file_io_get_file, fopen_internal, popen_internal, Fstat): |
|
6775 Likewise. |
|
6776 (mk_stat_map): Likewise, use file_stat object, not struct stat. |
|
6777 * oct-hist.cc (do_history): Likewise. |
|
6778 |
|
6779 * file-ops.h, file-stat.cc: New files. |
|
6780 * Makefile.in: Include them. |
|
6781 * dirfns.cc: Delete is_newer. Don't include statdefs.h. |
|
6782 * toplev.cc: Don't include statdefs.h. |
|
6783 |
|
6784 Sun Jan 21 22:48:03 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6785 |
|
6786 * pt-mvr.h, pt-fvc.h, Map.cc, Map.h, dynamic-ld.h, |
|
6787 pt-fvc-base.cc, SLList-str.cc, pt-fcn.h, pt-fvc-base.h, |
|
6788 SLStack-str.cc, pt-mvr.cc, pt-exp.cc, token.h, token.cc, |
|
6789 user-prefs.h, pt-base.cc, user-prefs.cc, dirfns.h, sysdep.h, |
|
6790 sysdep.cc, input.h, parse.h, lex.l, parse.y, defun.h, mappers.h, |
|
6791 pt-fvc.cc, pt-plot.h, load-save.h, octave.cc, defun-int.h, help.h, |
|
6792 variables.h, oct-map.h, oct-obj.h, oct-obj.cc, pt-const.cc, |
|
6793 oct-map.cc, input.cc, symtab.h, pt-const.h, pathsearch.cc, |
|
6794 pr-output.h, pr-output.cc, toplev.h, timefns.cc, schur.cc, |
|
6795 pt-plot.cc, pager.cc, load-save.cc, dynamic-ld.cc, dirfns.cc, |
|
6796 data.cc, file-info.h, file-info.cc, colloc.cc, utils.h, qpsol.cc, |
|
6797 quad.cc, npsol.cc, lsode.cc, fsolve.cc, dassl.cc, file-io.cc, |
|
6798 help.cc, utils.cc, oct-hist.h, oct-hist.cc, symtab.cc, toplev.cc, |
|
6799 pt-fcn.cc, unwind-prot.h, unwind-prot.cc, variables.cc: |
|
6800 Most functions in these files that deal with character strings |
|
6801 have been converted to use the string class insatead of char*. If |
|
6802 you want more detailed information, you'll have to figure it out |
|
6803 for yourself. |
|
6804 |
|
6805 Sat Jan 20 18:19:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6806 |
|
6807 * dynamic-ld.cc [WITH_DL]: Define RTLD_LAZY to be 1 if it is not |
|
6808 already defined. |
|
6809 |
|
6810 Sun Jan 14 07:48:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6811 |
|
6812 * pt-const.cc (print_as_scalar, print_as_structure): |
|
6813 Make these member functions. |
|
6814 (tree_constant::print_with_name): New function, moved here from |
|
6815 old tree-expr.cc file (where it was called print_constant) and |
|
6816 converted to member function. Change all callers. |
|
6817 |
|
6818 Fri Jan 12 01:54:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6819 |
|
6820 * octave.cc (initialize_globals): Don't do kpathsearch stuff here. |
|
6821 (main): Call initialize_pathsearch() here. |
|
6822 |
|
6823 * pathsearch.cc: New file. |
|
6824 * Makefile.in (SOURCES): Add it to the list |
|
6825 |
|
6826 * oct-hist.h: Rename from octave-hist.h. |
|
6827 * oct-hist.cc: Rename from octave-hist.cc. |
|
6828 * Makefile.in, parse.y, other .cc files: Cope with it. |
|
6829 |
|
6830 * dynamic-ld.cc: Avoid warnings if !WITH_DYNAMIC_LINKING. |
|
6831 |
|
6832 * load-save.cc (save_ascii_data): string::data() returns const char*. |
|
6833 |
|
6834 * utils.h: Don't provide forward declaration for tree_constant. |
|
6835 |
|
6836 * oct-obj.h: Don't include mx-base.h or provide forward |
|
6837 declarations for Matrix and Range types. |
|
6838 |
|
6839 * file-info.h: Don't include oct-obj.h. Do include cstdio. |
|
6840 |
|
6841 * symtab.h: Don't provide forward declaration for ostream. |
|
6842 |
|
6843 * variables.h: Don't provide forward declarations for istream, |
|
6844 ostrstream, tree, builtin_function, or builtin_variable objects. |
|
6845 |
|
6846 * balance.cc, chol.cc, colloc.cc, dassl.cc, det.cc, eig.cc, |
|
6847 expm.cc, fft.cc, fft2.cc, filter.cc, find.cc, fsolve.cc, fsqp.cc, |
|
6848 givens.cc, hess.cc, ifft.cc, ifft2.cc, inv.cc, log.cc, lpsolve.cc, |
|
6849 lsode.cc, lu.cc, minmax.cc, npsol.cc, pinv.cc, qpsol.cc, qr.cc, |
|
6850 quad.cc, qzval.cc, rand.cc, schur.cc, sort.cc, svd.cc, syl.cc: |
|
6851 Clean up #include statements. |
|
6852 |
|
6853 * pt-const.h: Don't include oct-obj.h or tree-base.h. |
|
6854 Provide forward declaration of Octave_object here. |
|
6855 * pt-const.cc: Include oct-obj.h here. |
|
6856 |
|
6857 * pt-mat.h, pt-fcn.h, pt-const.h, pt-misc.h, pt-plot.h, |
|
6858 pt-exp-base.h, pt-cmd.h, pt-fvc-base.h, pt-mvr-base.h, pt-exp.h, |
|
6859 pt-mvr.h, pt-fvc.h: New files, split from tree-expr.h and/or |
|
6860 renamed from other tree-*.h files (pt == parse tree). |
|
6861 * pt-base.cc, pt-const.cc, pt-exp.cc, pt-fvc-base.cc, pt-mat.cc, |
|
6862 pt-mvr-base.cc, pt-plot.cc, pt-cmd.cc, pt-exp-base.cc, pt-fcn.cc, |
|
6863 pt-fvc.cc, pt-misc.cc, pt-mvr.cc: Likewse, split from tree-expr.cc |
|
6864 and/or other tree-*.cc files. |
|
6865 * Makefile.in: Include them in the appropriate lists. |
|
6866 * All: Fix #include statements to match. |
|
6867 |
|
6868 * Array-tc.cc: Don't instantiate ArrayRep objects. |
|
6869 |
|
6870 Thu Jan 11 02:35:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6871 |
|
6872 * tree-const.cc (tree_constant::eval (int, int, const Octave_object&)): |
|
6873 Define here instead of in tree-const.h. |
|
6874 |
|
6875 Wed Jan 10 04:34:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6876 |
|
6877 * tree-const.h (tree_constant::tree_constant (const string&): |
|
6878 * tree-const.cc (TC_REP::tree_constant_rep (const string&)): |
|
6879 New constructor. |
|
6880 |
|
6881 Tue Jan 9 04:10:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6882 |
|
6883 * rand.cc (do_rand): Use string_value() result directly instead of |
|
6884 c_str() conversion. |
|
6885 * balance.cc (Fbalance): Likewise. |
|
6886 |
|
6887 * tree-const.cc (TC_REP::string_value()): |
|
6888 Handle new definition of charMatrix::row_as_string() |
|
6889 * load-save.cc (save_ascii_data): Ditto. |
|
6890 (save_binary_data): Ditto. |
|
6891 * pr-output.cc (octave_print_internal): Ditto. |
|
6892 |
|
6893 * balance.cc (Fbalance): |
|
6894 Handle new definition of TC_REP::string_value() |
|
6895 * colloc.cc (Fcolloc): Ditto. |
|
6896 * dassl.cc (Fdassl_options): Ditto. |
|
6897 * data.cc (Fstruct_contains): Ditto. |
|
6898 * dirfns.cc (Fmkdir): Ditto. |
|
6899 (Freaddir): Ditto. |
|
6900 (Frmdir): Ditto. |
|
6901 (Frename): Ditto. |
|
6902 * error.cc (handle_message): Ditto. |
|
6903 * file-io.cc (process_printf_format): Ditto. |
|
6904 (fopen_internal): Ditto. |
|
6905 (file_io_get_file): Ditto. |
|
6906 (return_valid_file): Ditto. |
|
6907 (Flstat): Ditto. |
|
6908 (Fstat): Ditto. |
|
6909 (unlink_internal): Ditto. |
|
6910 (mkfifo_internal): Ditto. |
|
6911 (async_system_internal): Ditto. |
|
6912 (sync_system_internal): Ditto. |
|
6913 (execute_internal): Ditto. |
|
6914 (popen_internal): Ditto. |
|
6915 (fwrite_internal): Ditto. |
|
6916 (fread_internal): Ditto. |
|
6917 (do_printf): Ditto. |
|
6918 (do_scanf): Ditto. |
|
6919 * input.cc (get_user_input): Ditto. |
|
6920 * lsode.cc (Flsode_options): Ditto. |
|
6921 * npsol.cc (Fnpsol_options):Ditto. |
|
6922 * qpsol.cc (Fqpsol_options):Ditto. |
|
6923 * quad.cc (Fquad_options): Ditto. |
|
6924 * rand.cc (do_rand): Ditto. |
|
6925 * schur.cc (Fschur): Ditto. |
|
6926 * sysdep.cc (Fputenv): Ditto. |
|
6927 (Fgetenv): Ditto. |
|
6928 * timefns.cc (extract_tm): Ditto. |
|
6929 (Fstrftime): Ditto. |
|
6930 * toplev.cc (Fsource): Ditto. |
|
6931 (eval_string): Ditto. |
|
6932 (Fsystem): Ditto. |
|
6933 * tree-plot.cc (subplot::handle_plot_data): Ditto. |
|
6934 * variables.cc (is_valid_function): Ditto. |
|
6935 (Fis_global): Ditto. |
|
6936 (Fexist): Ditto. |
|
6937 (builtin_string_variable): Ditto. |
|
6938 * utils.cc (make_argv): Ditto. |
|
6939 (Fundo_string_escapes): Ditto. |
|
6940 |
|
6941 Mon Jan 8 01:54:50 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6942 |
|
6943 * Makefile.in (install-bin): Use $(LN_S), not just ln. |
|
6944 |
|
6945 * variables.cc (octave_fcn_file_dir): New function. |
|
6946 * tree-expr.cc (mark_as_system_fcn_file): Use it instead of |
|
6947 octave_lib_dir. |
|
6948 |
|
6949 * Makefile.in (clean): If $(SHARED_LIBS), also remove shared libs. |
|
6950 |
|
6951 * pr-output.cc (set_format (const ComplexMatrix&, int&, int&)): |
|
6952 Unconditionally call all_elements_are_int_or_inf_or_nan(). |
|
6953 (set_format (const Matrix&, int&, int&)): Likewise. |
|
6954 |
|
6955 Sun Jan 7 19:12:39 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6956 |
|
6957 * utils.cc (oct_putenv): New function. |
|
6958 * sysdep.cc (Fputenv): Use oct_putenv. |
|
6959 * octave.cc (initialize_globals): Likewise. |
|
6960 |
|
6961 Sat Jan 6 23:22:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6962 |
|
6963 * sysdep.cc (Fputenv): New function. |
|
6964 |
|
6965 * input.cc (initialize_readline): Call rl_initialize() here. |
|
6966 |
|
6967 * octave.cc: Conditionally define atexit to be on_exit here. |
|
6968 * toplev.cc: Not here. |
|
6969 |
|
6970 Fri Jan 5 14:01:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6971 |
|
6972 * toplev.cc: Don't include <pwd.h> here. |
|
6973 |
|
6974 * octave-hist.cc, tree-plot.cc, utils.cc: Do include "sysdep.h". |
|
6975 |
|
6976 * dirfns.cc, file-io.cc, help.cc, load-save.cc, octave.cc, |
|
6977 octave-hist.cc, tree-plot.cc, utils.cc: |
|
6978 Don't include <readline/tilde.h>. |
|
6979 * sysdep.h: Do include it here. |
|
6980 |
|
6981 * tree-const.cc (TC_REP::assign (tree_constant&, Octave_object&)): |
|
6982 If we have a matrix or range, call maybe_mutate before returning. |
|
6983 |
|
6984 Sun Dec 31 15:56:18 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6985 |
|
6986 * npsol.cc (Fnpsol): Improve doc string. |
|
6987 * qpsol.cc (Fqpsol): Likewise. |
|
6988 |
|
6989 Fri Dec 29 21:46:58 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6990 |
|
6991 * defun-dld.h: Make work again for OCTAVE_LITE and |
|
6992 WITH_DYNAMIC_LINKING. |
|
6993 |
|
6994 * Makefile.in: Handle shared libraries. |
|
6995 |
|
6996 Wed Dec 27 17:47:51 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6997 |
|
6998 * mk-oct-links: New file. |
|
6999 * Makefile.in (install-oct): Use it. |
|
7000 * f-*.cc: Rename to *.cc. |
|
7001 |
|
7002 * Makefile.in (install-bin, install-lib, install-oct): New targets. |
|
7003 (install): Use them. |
|
7004 |
|
7005 Tue Dec 26 21:38:22 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7006 |
|
7007 * toplev.cc (reading_startup_message_printed): Move initialization |
|
7008 here and make extern. |
|
7009 |
|
7010 * dirfns.cc, dynamic-ld.cc, help.cc, input.cc, octave-hist.cc, |
|
7011 octave.cc, sighandlers.cc, sysdep.cc, tree-expr.cc, tree-misc.cc, |
|
7012 utils.cc, variables.cc, parse.y, lex.l: Include toplev.h instead |
|
7013 of octave.h. |
|
7014 * toplev.h: rename from octave.h. |
|
7015 |
|
7016 * octave.cc (main): Delete unused variable saved_sigint_handler. |
|
7017 |
|
7018 Sun Dec 24 00:26:54 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7019 |
|
7020 * dynamic-ld.cc: Massive re-write to handle dlopen/dlsym and |
|
7021 shl_load/shl_findsym methods of dynamic linking. |
|
7022 |
|
7023 * utils.cc (get_fcn_file_names): Check for .oct files if |
|
7024 WITH_DYNAMIC_LINKING, not WITH_DLD. |
|
7025 |
|
7026 * Makefile.in (LIB, TERMLIBS): Substitute values. |
|
7027 (octave): Add $(LIBS) to link command and use $(TERMLIBS) instead |
|
7028 of -ltermcap. |
|
7029 |
|
7030 Sat Dec 23 21:56:12 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7031 |
|
7032 * dynamic-ld.h, dynamic-ld.cc: Remove old unused code. |
|
7033 |
|
7034 * variables.cc (load_fcn_from_file): |
|
7035 Always call load_octave_oct_file. |
|
7036 |
|
7037 Wed Dec 20 00:56:57 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7038 |
|
7039 * pr-output.cc (set_real_format, set_real_matrix_format, |
|
7040 set_complex_format, set_complex_matrix_format, set_range_format): |
|
7041 New functions. Ensure the count of the digits to the right of the |
|
7042 decimal point is positive. |
|
7043 |
|
7044 * xpow.cc (xpow (const Matrix&, double)): Print warning if |
|
7045 inverting singular matrix (but return value anyway, in the name of |
|
7046 compatibility). |
|
7047 xpow (const ComplexMatrix&, double)): Likewise. |
|
7048 |
|
7049 * f-inv.cc (Finv): If matrix is singular, return result anyway, in |
|
7050 the name of compatibility. |
|
7051 |
|
7052 * symtab.cc (symbol_record::pop_context): |
|
7053 Don't assert (! context.empty ()). |
|
7054 |
|
7055 * tree-const.cc (TC_REP::char_matrix_value): Don't complain about |
|
7056 type conversion if object is an empty matrix.f |
|
7057 (TC_REP::assign): If rhs is a string, don't convert to numeric |
|
7058 type if rhs is empty or "". |
|
7059 Only widen if rhs is not empty. |
|
7060 Don't return 0x0 char_matrix if it is supposed to be a string. |
|
7061 |
|
7062 * arith-ops.h, mappers.h, pr-output.h, xdiv.h, xpow.h: Include |
|
7063 oct-cmplx.h in place of forward declaration for class Complex. |
|
7064 |
|
7065 * pr-output.cc, mappers.cc, arith-ops.cc, xdiv.cc, xpow.cc, |
|
7066 utils.cc: Include "oct-cmplx.h" instead of <Complex.h>. |
|
7067 |
|
7068 * octave.cc (initialize_error_handlers): Don't call |
|
7069 set_Complex_error_handler(). |
|
7070 (octave_Complex_error_handler): Delete unused function. |
|
7071 Delete declaration for set_Complex_error_handler(). |
|
7072 |
|
7073 * sighandlers.cc (catch_interrupts): New function. |
|
7074 * octave.cc (main): Call catch_interrupts() instead of calling |
|
7075 octave_set_signal_handler() directly. |
|
7076 |
|
7077 Tue Dec 19 03:22:37 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7078 |
|
7079 * variables.cc (looks_like_octave_copyright): Also recognize the |
|
7080 string " This program is free software". |
|
7081 |
|
7082 Thu Dec 14 01:54:06 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7083 |
|
7084 * octave-hist.cc (clean_up_history): Only write history file if |
|
7085 user_pref.saving_history. |
|
7086 |
|
7087 * octave-hist.cc (initialize_history, clean_up_history, |
|
7088 do_history): Perform tilde expansion on history file name. |
|
7089 |
|
7090 * octave.cc (main): Check `defined (HAVE_ON_EXIT)' not just |
|
7091 `(HAVE_ON_EXIT)'. |
|
7092 |
|
7093 * user-prefs.h (user_preferences): New fields, `history_file' and |
|
7094 `history_size'. |
|
7095 * user-prefs.cc (init_user_prefs): Initialize them. |
|
7096 (sv_history_file, history_size): New functions. |
|
7097 * variables.cc (install_builtin_variables): Initialize user-level |
|
7098 variables history_file and history_size. |
|
7099 * octave-hist.cc (default_history_size): Now extern. |
|
7100 (default_history_file): Likewise. |
|
7101 (octave_hist_size, octave_hist_file): Use user preference |
|
7102 variables instead. |
|
7103 * octave.cc (main): Call initialize_history after |
|
7104 execute_startup_files. |
|
7105 |
|
7106 Fri Dec 8 15:53:59 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7107 |
|
7108 * user-prefs.h (user_preferences): New field, `saving_history'. |
|
7109 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7110 (saving_history): New function. |
|
7111 * variables.cc (install_builtin_variables): Initialize user-level |
|
7112 variable saving_history. |
|
7113 * octave.cc (parse_and_execute): Don't reset value of |
|
7114 saving_history here. |
|
7115 (main) Use user_pref.saving_history instead of saving_history. |
|
7116 * variables.cc (parse_fcn_file): Likewise. |
|
7117 * octave-hist.cc (maybe_save_history): Likewise. |
|
7118 Don't save history if input_from_startup_file. |
|
7119 |
|
7120 Mon Nov 27 23:05:52 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7121 |
|
7122 * resource.cc: Include systime.h before <sys/resource.h>. |
|
7123 |
|
7124 Tue Nov 14 14:09:40 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7125 |
|
7126 * error.cc: Include cstring. |
|
7127 |
|
7128 * tree-expr.cc (print_code): Decrement indent level after printing |
|
7129 function body. |
|
7130 |
|
7131 * Makefile.in: Remove references to oct-str.cc, oct-str.h, and |
|
7132 Array-string.cc. |
|
7133 |
|
7134 * tree-const.h: Don't include oct-str.h. |
|
7135 |
|
7136 Mon Nov 6 11:16:49 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7137 |
|
7138 * parse.y (make_plot_command, finish_colon_expression, |
|
7139 make_unwind_protect, make_try_command, make_for_command, |
|
7140 make_break_command, make_continue_command, make_return_command, |
|
7141 start_if_command, finish_if_command, make_elseif_clause, |
|
7142 make_simple_assignment, make_multi_val_ret, start_function_def, |
|
7143 frob_function_def, finish_function_def, start_matrix, |
|
7144 finish_matrix): New functions. Use them in the grammar to clean |
|
7145 things up a bit. Possibly convert matrix lists, colon |
|
7146 expressions, binary expressions, and unary expressions to constant |
|
7147 values. |
|
7148 (tree_matrix_type): Delete. |
|
7149 (simple_expr1): Handle all expression stuff here, including |
|
7150 assignments. |
|
7151 (simple_expr): Just check to see that simple_expr1 produced |
|
7152 something useful. |
|
7153 |
|
7154 * tree-plot.cc, tree-plot.h: Move most simple constructors to the |
|
7155 header file. |
|
7156 |
|
7157 * tree-expr.h (tree_expression::is_constant): Move virtual |
|
7158 function definition here. |
|
7159 (tree_fvc::is_constant): From here. |
|
7160 (tree_expression::is_matrix_constant): New virtual function. |
|
7161 (tree_expression::is_range_constant): New virtual function. |
|
7162 * tree-expr.cc (tree_matrix::is_matrix_constant): New function. |
|
7163 * tree-expr.cc (tree_colon_expression::is_range_constant): New |
|
7164 function. |
|
7165 |
|
7166 Fri Nov 3 03:42:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7167 |
|
7168 * utils.cc, utils.h (jump_to_top_level): Declare as extern "C". |
|
7169 |
|
7170 * tree-const.h (tree_constant::eval ()): Only mutate if printing. |
|
7171 |
|
7172 * tree-const.cc (TC_REP::tree_constant_rep (const Complex&), |
|
7173 TC_REP::tree_constant_rep (const ComplexMatrix&), |
|
7174 TC_REP::tree_constant_rep (const ComplexDiagMatrix&), |
|
7175 TC_REP::tree_constant_rep (const ComplexRowVector&), |
|
7176 TC_REP::tree_constant_rep (const ComplexColumnVector&)): |
|
7177 Also check to see if we can convert to scalar_constant, not just |
|
7178 complex_scalar_constant. |
|
7179 |
|
7180 * user-prefs.h (user_preferences): New field, `exec_path'. |
|
7181 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7182 (sv_exec_path): New function. |
|
7183 * variables.cc (install_builtin_variables): Add DEFUN for EXEC_PATH. |
|
7184 (default_exec_path): New function. |
|
7185 * octave.cc (exec_path): New global variable. |
|
7186 Don't set and putenv() exec path here. |
|
7187 (long_opts): Add --exec-path option. |
|
7188 (main): Handle it. |
|
7189 (initialize_globals): Set default value here. |
|
7190 |
|
7191 * user-prefs.h (user_preferences): New field, `info_prog'. |
|
7192 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7193 (sv_info_prog): New function. |
|
7194 * variables.cc (install_builtin_variables): Add DEFUN for INFO_PROGRAM. |
|
7195 (default_info_prog): New function. |
|
7196 * octave.cc (info_prog): New global variable. |
|
7197 (initialize_globals): Set default value here. |
|
7198 (long_opts): Add --info-prog option. |
|
7199 (main): Handle it. |
|
7200 * help.cc (try_info): Use user_pref.info_prog here. |
|
7201 |
|
7202 * octave.cc (initialize_globals): Put arch_dir and bin_dir ahead |
|
7203 of shell_path when resetting PATH. |
|
7204 |
|
7205 Thu Nov 2 04:30:13 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7206 |
|
7207 * f-rand.cc (Frandn): New function. |
|
7208 (do_initialization): New function. |
|
7209 (do_rand): New function for doing the real work. |
|
7210 (Frand): Use it. |
|
7211 |
|
7212 * octave.cc (parse_and_execute): New arg, warn_for. If given, |
|
7213 print message if file cannot be opened. |
|
7214 Set curr_fcn_file_full_name here. |
|
7215 (Fsource): Pass extra arg to parse_and_execute to get warning message. |
|
7216 |
|
7217 * tree-const.h: Handle line and column info for double, Complex, |
|
7218 and char* constants. |
|
7219 |
|
7220 * parse.y (maybe_convert_to_ans_assign): Pass along line and |
|
7221 column info from expression. |
|
7222 |
|
7223 * parse.y (make_constant): New function. |
|
7224 (simple_expr1, word_list): Use it. |
|
7225 |
|
7226 * input.cc, input.h (curr_fcn_file_full_name): New global. |
|
7227 * variables.cc (load_fcn_from_file): Set it here. |
|
7228 * parse.y (func_def2, yyerror, maybe_warn_missing_semi): Use it. |
|
7229 (func_def2): If !reading_fcn_file, don't call strcmp if |
|
7230 curr_fcn_file_name is 0. |
|
7231 |
|
7232 * octave.cc (Fsource): New function. |
|
7233 (parse_and_execute): Declare file name const char *. |
|
7234 * input.cc (get_input_from_file): Likewise. |
|
7235 |
|
7236 Wed Nov 1 13:54:34 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7237 |
|
7238 * f-filter.cc: New file. |
|
7239 * Makefile.in (DLD_SRC): Add it to the list. |
|
7240 |
|
7241 * sysdep.h (gethostname): Change declaration to match definition |
|
7242 in sysdep.cc. |
|
7243 |
|
7244 * resource.cc: Include sysdep.h here, for octave_NaN. |
|
7245 |
|
7246 Tue Oct 31 02:12:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7247 |
|
7248 * tree-const.cc (TC_REP::assign): After converting rhs to a |
|
7249 numeric type, use the converted value, not the original. |
|
7250 |
|
7251 * dirfns.cc (Fpwd): If nargout == 0, print the directory name |
|
7252 instead of returning it. |
|
7253 |
|
7254 * pager.cc (maybe_page_output): Call maybe_write_to_diary_file here. |
|
7255 (flush_output_to_pager): Not here. |
|
7256 |
|
7257 Mon Oct 30 23:39:43 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7258 |
|
7259 * variables.cc (install_builtin_commands): Add DEFVAR for |
|
7260 echo_executing_commands. |
|
7261 |
|
7262 * octave-hist.cc (do_edit_history): Handle new echo stuff. |
|
7263 * variables.cc (parse_fcn_file): Likewise. |
|
7264 * octave.cc (parse_and_execute): Likewise. |
|
7265 (main): Likewise. |
|
7266 * input.cc (do_input_echo): |
|
7267 (Fecho): New function. |
|
7268 |
|
7269 * tree-expr.cc (tree_function::print_code_function_header, |
|
7270 tree_function::print_code_function_trailer): New functions. |
|
7271 (tree_function::print_code): Use them. |
|
7272 (tree_function::eval): Likewise, if echoing commands. |
|
7273 * tree-misc.cc (tree_statement::maybe_echo_code): New function. |
|
7274 |
|
7275 * user-prefs.h (user_preferences): New field, echo_executing_commands. |
|
7276 (echo_state): New enum, for various types of echoing we do. |
|
7277 * user-prefs.cc (echo_executing_commands): New function. |
|
7278 |
|
7279 * tree-base.cc (print_code_indent): Print PS4 as line prefix. |
|
7280 * help.cc (Ftype): Add unwind_protect for ps4 and set it to "" |
|
7281 before printing code. |
|
7282 |
|
7283 * tree-misc.h (tree_statement_list): New field, function_body. |
|
7284 (tree_statement_list::mark_as_function_body): New function. |
|
7285 * parse.y (func_def3): Mark function bodies. |
|
7286 |
|
7287 * pr-output.cc (octave_print_internal): Undo string escapes when |
|
7288 printing charMatrix as strings. |
|
7289 |
|
7290 Sat Oct 28 17:38:29 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7291 |
|
7292 * utils.h (undo_string_escapes): Add missing const in declaration. |
|
7293 |
|
7294 Fri Oct 27 03:49:44 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7295 |
|
7296 * file-io.cc (next_available_file_number): New stack for keeping |
|
7297 track of next available file number. |
|
7298 (get_next_avail_file_num): New function. |
|
7299 (fopen_file_for_user, fopen_internal, popen_internal, |
|
7300 execute_internal): Use it. |
|
7301 |
|
7302 Mon Oct 23 07:00:09 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7303 |
|
7304 * tree-const.cc (TC_REP::convert_to_matrix_type, |
|
7305 tree_constant::convert_to_matrix_type): New arg, make_complex. |
|
7306 (TC_REP::set_index): New arg, rhs_is_complex. Pass it to |
|
7307 convert_to_matrix_type. |
|
7308 (TC_REP::assign): Pass rhs.is_complex_type() to set_index. |
|
7309 |
|
7310 Thu Oct 19 00:38:38 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7311 |
|
7312 * xpow.cc: Include <climits>. |
|
7313 |
|
7314 * sysdep.cc (Fpause): Do pause even if not interactive. |
|
7315 |
|
7316 * tree-const.cc (TC_REP::assign): Don't make RHS numeric if both |
|
7317 RHS and LHS are strings. |
|
7318 |
|
7319 Wed Oct 18 22:19:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7320 |
|
7321 * f-expm.cc (Fexpm): Avoid taking log of negative number. Also, |
|
7322 don't unnecessarily divide the input matrix by 1.0. |
|
7323 |
|
7324 * input.cc (decode_prompt_string): Recognize \[ and \] too. |
|
7325 (initialize_readline): Bind M-p to history-search-backward and M-n |
|
7326 to history-search-forward. |
|
7327 |
|
7328 Tue Oct 17 04:31:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7329 |
|
7330 * xpow.cc (xpow): Handle integer powers better for complex^double. |
|
7331 (elem_xpow): Likewise. |
|
7332 |
|
7333 * lex.l ({CCHAR}): If nesting_level.top() is BRACE, return ';', |
|
7334 not '\n'. |
|
7335 |
|
7336 Mon Oct 16 19:03:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7337 |
|
7338 * help.cc (Fwhich): Fix doc string. |
|
7339 |
|
7340 * variables.cc (Fexist): Update doc string. |
|
7341 |
|
7342 Sun Oct 15 22:19:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7343 |
|
7344 * Another massive set of changes to support character matrices |
|
7345 with indexing. The Octave_str_object class is no longer used. |
|
7346 Anything having to do with Octave_str_object in the following |
|
7347 files has been changed to use charMatrix instead: octave.h, |
|
7348 load-save.cc, octave.cc, strfns.cc, data.cc, pr-output.h, |
|
7349 pr-output.cc, tree-const.h, dirfns.cc, tree-const.cc, |
|
7350 tree-expr.cc. |
|
7351 |
|
7352 Sat Oct 14 22:28:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7353 |
|
7354 * f-sort.cc (mx_sort): Don't attempt to sort vectors that have |
|
7355 only one element, or matrices that have only one row. |
|
7356 |
|
7357 Thu Oct 12 02:16:58 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7358 |
|
7359 * mappers.cc (install_mapper_functions): Add gammaln as an alias |
|
7360 for lgamma. |
|
7361 |
|
7362 * tree-const.h, tree-const.cc: Massive overhaul of indexing and |
|
7363 indexed assignment functions. |
|
7364 * tc-inlines.h, tc-rep.h: Remove files. |
|
7365 * Makefile.in: Remove mention of them here too. |
|
7366 |
|
7367 * Makefile.in: Include $(TI_SRC) in DEP_SOURCES_3, not |
|
7368 $(TI_SOURCES). |
|
7369 Include $(DLD_SRC) in DEP_SOURCES_3. |
|
7370 Include $(TI_SRC) in DEF_FILES_5. |
|
7371 |
|
7372 Wed Oct 11 01:26:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7373 |
|
7374 * Makefile.in (INCLUDES): Remove tc-inlines.h and tc-rep.h from |
|
7375 the list. |
|
7376 |
|
7377 Mon Oct 9 08:31:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7378 |
|
7379 * lex.l (next_token_is_bin_op): Do match `.+', `.*', etc. |
|
7380 |
|
7381 Sun Oct 8 18:19:56 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7382 |
|
7383 * idx-vector.h, idx-vector.cc: Delete files. |
|
7384 * Makefile.in (SOURCES, INCLUDES): Remove them from lists. |
|
7385 |
|
7386 Fri Oct 6 00:52:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7387 |
|
7388 * f-svd.cc (Fsvd): If nargout == 0 or nargout == 1, don't ask for |
|
7389 U and V. |
|
7390 |
|
7391 Wed Oct 4 00:04:57 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7392 |
|
7393 * f-npsol.cc (Fnpsol, Fnpsol_options): Avoid unused variable |
|
7394 warnings if NPSOL_MISSING. |
|
7395 * f-qpsol.cc (Fqpsol, Fqpsol_options): Likewise for QPSOL_MISSING. |
|
7396 |
|
7397 * Makefile.in (DISTFILES): Add octave.gperf. |
|
7398 |
|
7399 * lex.l (next_token_is_bin_op): Don't ever return true for `.' |
|
7400 since that causes problems with things like [ .1 .1 ]. |
|
7401 |
|
7402 Tue Oct 3 05:30:24 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7403 |
|
7404 * variables.cc (is_valid_function): Avoid setting error_state if |
|
7405 argument is not a string. |
|
7406 |
|
7407 * parse.y (maybe_warn_missing_semi): New function. |
|
7408 (list1, list): Call it if statement not terminated by semicolon. |
|
7409 * tree-misc.h (tree_statement::line, tree_statement::column): |
|
7410 New functions. |
|
7411 * octave.cc (input_from_command_line_file): New global variable. |
|
7412 (main): Set it. |
|
7413 (parse_and_execute): Unwind-protect it and set it to zero. |
|
7414 (eval_string): Likewise. |
|
7415 * variables.cc (parse_fcn_file): Likewise. |
|
7416 |
|
7417 * user-prefs.cc (warn_missing_semicolon): New function. |
|
7418 * user-prefs.h (user_preferences): New field, warn_missing_semicolon. |
|
7419 * variables.cc (install_builtin_variables): DEFVAR it. |
|
7420 |
|
7421 * tree-expr.cc (tree_expression::is_logically_true): Actually use |
|
7422 argument. |
|
7423 |
|
7424 Mon Oct 2 19:55:48 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7425 |
|
7426 * variables.cc (install_builtin_variables): Reduce the default |
|
7427 value of save_precision to 15. |
|
7428 |
|
7429 * variables.cc (builtin_real_scalar_variable): Return 1 for |
|
7430 success, 0 for failure. |
|
7431 |
|
7432 * user-prefs.cc (struct_levels_to_print, set_save_precision, |
|
7433 set_output_max_field_width, set_output_precision): |
|
7434 Change sense of test for builtin_real_scalar_variable return value. |
|
7435 (check_preference): Rename from check_str_pref. Change all callers. |
|
7436 Accept value of 0 to be the same as "false" and nonzero to be the |
|
7437 same as "true". |
|
7438 Delete val to avoid memory leak. |
|
7439 * variables.cc (install_builtin_variables): Change initial values |
|
7440 from "true" to 1, "false" to 0. |
|
7441 |
|
7442 * variables.cc (install_builtin_variables): Add DEFVAR for |
|
7443 gnuplot_has_multiplot. |
|
7444 |
|
7445 * user-prefs.h (user_preferences): New field, |
|
7446 `gnuplot_has_multiplot'. |
|
7447 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7448 (gnuplot_has_multiplot): New function. |
|
7449 |
|
7450 Sat Sep 30 16:52:57 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7451 |
|
7452 * oct-gperf.h, octave.gperf: Newfiles. |
|
7453 * Makefile.in (DISTFILES): Add octave.gperf. |
|
7454 (INCLUDES): Add oct-gperf.h. |
|
7455 (oct-gperf.h): New rule. |
|
7456 (local-dist, dist): Depend on oct-gperf.h. |
|
7457 * lex.l (is_keyword): Use perfect hash function to lookup |
|
7458 keywords. |
|
7459 |
|
7460 Fri Sep 29 04:36:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7461 |
|
7462 * version.h (OCTAVE_NAME_AND_VERSION): Add TARGET_HOST_TYPE to this. |
|
7463 |
|
7464 Thu Sep 28 00:03:51 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7465 |
|
7466 * tree-expr.cc (tree_expression::is_logically_true): New function. |
|
7467 * tree-cmd.cc (tree_while_command::eval): Use it instead of |
|
7468 handling the test directly here. |
|
7469 * tree-misc.cc (tree_if_clause::eval): Likewise |
|
7470 |
|
7471 * tree-const.cc (TC_REP::force_numeric): Don't try to print value |
|
7472 of str_obj with %s. |
|
7473 |
|
7474 * error.cc (buffer_error_messages): Rename from |
|
7475 suppress_octave_error_messages. |
|
7476 (error_message_buffer): New global variable. |
|
7477 (verror): Handle buffering of messages. |
|
7478 (handle_message): New function. |
|
7479 (Ferror, Fwarning, Fusage): Use it instead of duplicating code. |
|
7480 |
|
7481 * octave.cc (Feval): Buffer error messages instead of supressing them. |
|
7482 |
|
7483 * lex.l (is_keyword): Recognize `try', `catch', and `end_try_catch'. |
|
7484 * parse.y (TRY, CATCH): New tokens. |
|
7485 (command): Recognize try-catch block. |
|
7486 (end_error): Add cases for unwind_protect_end and try_catch_end. |
|
7487 * token.h (end_tok_type): New field, try_catch_end. |
|
7488 * tree-cmd.h, tree-cmd.cc (tree_try_catch): New class. |
|
7489 * variables.cc (bind_global_error_variable): New Function. |
|
7490 (clear_global_error_variable): Likewise. |
|
7491 (install_builtin_variables): Add DEFCONST for __error_text__. |
|
7492 * help.cc (keywords): Add `try', `catch', and `end_try_catch'. |
|
7493 |
|
7494 * tree-cmd.cc (tree_unwind_protect::eval): Undo previous change. |
|
7495 |
|
7496 * dirfns.cc (Freaddir, Fmkdir, Frmdir): |
|
7497 Do tilde expansion on the argument. |
|
7498 |
|
7499 Tue Sep 26 00:10:29 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7500 |
|
7501 * f-dassl.cc, f-fsolve.cc, f-lsode.cc, f-npsol.cc, f-quad.cc: |
|
7502 Don't try to figure out if the user-supplied functions take the |
|
7503 correct number of arguments. Simply let the call fail. |
|
7504 * variables.cc (takes_correct_nargs): Delete unused function. |
|
7505 * tree-expr.cc (tree_builtin::eval): Don't complain for too many |
|
7506 arguments to mapper functions. |
|
7507 * tree-expr.h, tree-expr.cc (tree_builtin, tree_function, tree_fvc): |
|
7508 Delete unused function max_expected_args. |
|
7509 |
|
7510 * defun.h (DEFUN): Delete unnecessary args nargin_min and nargout_max. |
|
7511 New arg unused_arg_flags. |
|
7512 (DEFUN_TEXT): Likewise. |
|
7513 * defun-dld.h (DEFUN_DLD_BUILTIN): Likewise. |
|
7514 * defun-int.h (DEFUN_INTERNAL, DECLARE_FUN, DEFINE_FUN_STRUCT): |
|
7515 Do the real work. |
|
7516 |
|
7517 * data.cc, dirfns.cc, dynamic-ld.cc, error.cc, f-balance.cc, |
|
7518 f-chol.cc, f-colloc.cc, f-dassl.cc, f-det.cc, f-eig.cc, f-expm.cc, |
|
7519 f-fft.cc, f-fft2.cc, f-find.cc, f-fsolve.cc, f-fsqp.cc, |
|
7520 f-givens.cc, f-hess.cc, f-ifft.cc, f-ifft2.cc, f-inv.cc, f-log.cc, |
|
7521 f-lpsolve.cc, f-lsode.cc, f-lu.cc, f-minmax.cc, f-npsol.cc, |
|
7522 f-pinv.cc, f-qpsol.cc, f-qr.cc, f-quad.cc, f-qzval.cc, f-rand.cc, |
|
7523 f-schur.cc, f-sort.cc, f-svd.cc, f-syl.cc, file-io.cc, help.cc, |
|
7524 input.cc, lex.l, load-save.cc, mappers.cc, octave-hist.cc, |
|
7525 octave.cc, octave.h, pager.cc, pr-output.cc, resource.cc, |
|
7526 sighandlers.cc, strfns.cc, sysdep.cc, timefns.cc, token.cc, |
|
7527 tree-const.cc, tree-expr.cc, tree-expr.h, tree-plot.cc, |
|
7528 unwind-prot.cc, unwind-prot.h, utils.cc, variables.cc, |
|
7529 variables.h, version.h, xdiv.cc: |
|
7530 Avoid unused variable warnings. |
|
7531 |
|
7532 * tree-expr.h (tree_oct_obj::print_value (ostream&)): |
|
7533 Delete name of unused arg. |
|
7534 (tree_fvc::save (ostream&, int, int): Likewise. |
|
7535 |
|
7536 * tree-const.h (tree_constant::tree_constant (magic_colon)): |
|
7537 Delete name of unused arg. |
|
7538 (tree_constant::tree_constant (all_va_args)): Likewise |
|
7539 (ColumnVector vector_value (int, int)): Likewise. |
|
7540 (ComplexColumnVector vector_value (int, int)): Likewise. |
|
7541 (Octave_object::eval (int, int, const Octave_object&): Likewise. |
|
7542 |
|
7543 * octave.cc (execute_startup_files): Look for octaverc first in |
|
7544 site/m, then in $(version)/m. |
|
7545 * variables.cc (get_local_site_defaults): New function. |
|
7546 * defaults.h.in (OCTAVE_LOCALFCNFILEDIR, OCTAVE_LOCALSTARTUPFILEDIR): |
|
7547 New macros. |
|
7548 * Makefile.in (defaults.h): Also substitute ${localfcndir}. |
|
7549 |
|
7550 Mon Sep 25 17:01:03 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7551 |
|
7552 * variables.cc (install_builtin_variables): Add DEFCONST for "e". |
|
7553 |
|
7554 Fri Sep 22 02:18:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7555 |
|
7556 * dirfns.cc (Fls): Delete ls_command after using it, not before. |
|
7557 |
|
7558 * input.h, input.cc (gnu_readline): Don't declare gnu_readline |
|
7559 `extern "C"'. |
|
7560 |
|
7561 * sysdep.h: Only declare gethostname if it is missing, then don't |
|
7562 declare it `extern "C"'. |
|
7563 |
|
7564 * dirfns.cc: Don't declare strerror(). |
|
7565 |
|
7566 * input.cc (command_generator): Use malloc, not xmalloc. Don't |
|
7567 declare xmalloc. |
|
7568 (gnu_readline): Don't declare this `extern "C"'. |
|
7569 |
|
7570 * octave-hist.cc: Don't declare history_get(). It is now in |
|
7571 readline/history.h. |
|
7572 |
|
7573 * input.cc: Don't declare history_get(). It is now in |
|
7574 readline/readline.h. |
|
7575 |
|
7576 * resource.cc: Don't surround include of sys/resource.h in |
|
7577 `extern "C" { }'. |
|
7578 |
|
7579 * fnmatch.h [__cplusplus]: Surround contents in `extern "C" { }'. |
|
7580 * load-save.cc, symtab.cc, variables.cc: Don't surround |
|
7581 fnmatch.h include in `extern "C" { }'. |
|
7582 |
|
7583 * help.cc: Don't #undef __FUNCTION_DEF before including |
|
7584 readline/tilde.h. |
|
7585 |
|
7586 * dirfuns.cc, file-io.cc, help.cc, load-save.cc, octave-hist.cc, |
|
7587 sysdep.cc, tree-plot.cc, utils.cc, variables.cc: |
|
7588 Don't surround readline includes in `extern "C" { }'. |
|
7589 |
|
7590 * sysdep.cc: Move all include statements to top of file. |
|
7591 |
|
7592 Tue Sep 19 01:58:21 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7593 |
|
7594 * octave.cc (Fsystem): Use iprocstream *, and unwind_protect it. |
|
7595 * pager.cc (flush_output_to_pager): Likewise. |
|
7596 * dirfns.cc (Fls): Likewise. |
|
7597 * tree-plot.cc (plot_stream): Now a pointer. |
|
7598 (open_plot_stream): Deal with it. |
|
7599 (send_to_plot_stream, cleanup_tmp_files, do_external_plotter_cd): |
|
7600 Likewise. |
|
7601 |
|
7602 * procstream.cc (cleanup_iprocstream, cleanup_oprocstream): |
|
7603 New functions. |
|
7604 |
|
7605 * procstream.h, procstream.cc (class iprocstream, class oprocstream): |
|
7606 Keep track of pbuf. Initialize it to 0 in default constructors, |
|
7607 delete it in destructor. Don't call close in destructor. |
|
7608 |
|
7609 * sighandlers.cc (octave_set_signal_handler): New function. |
|
7610 Use this name instead of signal everywhere. |
|
7611 * help.cc (try_info): Likewise. |
|
7612 * pager.cc (flush_output_to_pager): Likewise. |
|
7613 * octave.cc (main): Likewise. |
|
7614 * octave-hist.cc (do_edit_history): Likewise. |
|
7615 |
|
7616 * input.cc (initialize_readline): Set rl_paren_string_delimiters |
|
7617 to avoid treating single quotes as string delimiters when doing |
|
7618 paren matching. |
|
7619 |
|
7620 * Makefile.in (SOURCES): Don't list Map.cc or SLStack.cc here. |
|
7621 |
|
7622 * tree-const.cc: Do include utils.h. |
|
7623 |
|
7624 * sysdep.cc: Don't surround terminal includes in extern "C". |
|
7625 Include them before readline.h. |
|
7626 |
|
7627 * Map.h: Don't include utils.h. |
|
7628 (CHNode::CHNode (const char*, const C&, CHNode *t): |
|
7629 Do strsave() inline. |
|
7630 |
|
7631 * input.cc (generate_possible_completions): Generate name list |
|
7632 even when text == 0. |
|
7633 (operate_and_get_next): Don't declare history_stifled, call |
|
7634 history_is_stifled () instead. |
|
7635 Don't declare history_length, or max_input_history either. |
|
7636 Check (where >= history_length - 1) too, as in recent versions of |
|
7637 bash. |
|
7638 |
|
7639 * user-prefs.h (user_prefs): New field, `completion_append_char'. |
|
7640 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7641 (sv_completion_append_char): New function. |
|
7642 * variables.cc (install_builtin_variables): Install |
|
7643 completion_append_char. |
|
7644 * input.cc (command_generator): Use it. |
|
7645 |
|
7646 * SLList-expr.cc, SLList-misc.cc, SLList-plot.cc, SLList-tc.cc, |
|
7647 DLList-fi.cc: Include config.h. |
|
7648 * DLList-fi.cc: Include file-info.h, not file-io.h. |
|
7649 |
|
7650 Mon Sep 18 11:01:24 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7651 |
|
7652 * octave.h (clean_up_and_exit): Tag with NORETURN instead of using |
|
7653 typedef trick. |
|
7654 * error.h (panic): Likewise. |
|
7655 * utils.h (jump_to_top_level): Likewise. |
|
7656 |
|
7657 * file-io.h: Protect from multiple includes with octave_file_io, |
|
7658 not octave_files. |
|
7659 |
|
7660 * file-info.h (class file_info): Convert to using std C++ string |
|
7661 class from char *. |
|
7662 * file-info.cc: Likewise. Don't include utils.h. |
|
7663 * file-io.cc (return_valid_file, fopen_file_for_user, |
|
7664 fflush_internal, do_scanf): Use operator ==, not strcmp. |
|
7665 (close_files): Call error with file.name ().data (), |
|
7666 not file.name (). |
|
7667 (freport_internal): Call form with file.mode ().data () and |
|
7668 file.name ().data (). |
|
7669 |
|
7670 * file-io.cc, file-io.h: Extract file_info class. |
|
7671 * file-info.cc, file-info.h: New files for file_info class. |
|
7672 |
|
7673 * user-prefs.h (user_prefs): New field, `beep_on_error'. |
|
7674 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7675 (beep_on_error): New function. |
|
7676 * variables.cc (install_builtin_variables): Install beep_on_error. |
|
7677 * octave.cc (maximum_braindamage): Set beep_on_error to "true". |
|
7678 * error.cc (verror): Conditionally beep. |
|
7679 (error): Don't reset error_state until after verror is called. |
|
7680 |
|
7681 Sun Sep 17 16:41:25 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7682 |
|
7683 * load-save.cc (read_mat_binary_data, read_ascii_data, |
|
7684 save_ascii_data, read_binary_data, save_binary_data): |
|
7685 Handle string arrays. |
|
7686 |
|
7687 Fri Sep 15 00:24:19 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7688 |
|
7689 * user-prefs.cc (struct_levels_to_print, |
|
7690 set_output_max_field_width, set_output_precision, |
|
7691 set_save_precision): Eliminate unecessary kludge variable. |
|
7692 |
|
7693 * variables.cc (gobble_leading_white_space): New arg, |
|
7694 in_parts. Change all callers. |
|
7695 |
|
7696 * lex.l (HELP_FCN): Delete start state. The `help' command is now |
|
7697 handled the same as any other text-style function. |
|
7698 |
|
7699 * gripes.cc (gripe_invalid_value_specified): New function |
|
7700 * user-prefs.cc: Use it. |
|
7701 |
|
7702 * sysdep.cc (octave_words_big_endian): New global variable. |
|
7703 (ten_little_endians): New function. |
|
7704 (sysdep_init): Call it. |
|
7705 * load-save.cc (words_big_endian): Use this at run-time instead of |
|
7706 depending on WORDS_BIGENDIAN at compile-time. |
|
7707 |
|
7708 * symtab.h (SYMTAB_VARIABLES): New macro. |
|
7709 * variables.cc (Fclear): Use it instead of just |
|
7710 symbol_def::USER_VARIABLE when looking for variables. |
|
7711 |
|
7712 * octave.cc (main): If there is a file to execute, set |
|
7713 program_invocation_name and program_name to the name of the file |
|
7714 and argv to the remaining args. |
|
7715 (intern_argv): Only define argv if there are some remaining |
|
7716 arguments. |
|
7717 |
|
7718 * defun.h (DEFVAR_INT): New macro. |
|
7719 (DEFVAR): Define in terms of DEFVAR_INT. Delete args protect and |
|
7720 eternal. |
|
7721 (DEFCONST): New macro. |
|
7722 * variables.cc (install_builtin_variables): Use DEFCONST where |
|
7723 appropriate, change uses of DEFVAR to match new definition. |
|
7724 |
|
7725 * variables.cc (bind_builtin_variable): New variant that accepts |
|
7726 const tree_constant& value. |
|
7727 (install_builtin_variables): Properly alphabetize DEFVAR for this. |
|
7728 |
|
7729 * octave.cc (short_opts): Prefix with `+' to prevent argv |
|
7730 permutation. |
|
7731 (main): Don't use readline if forced_interactive. |
|
7732 (traditional): New file-scope variable. |
|
7733 (long_opts, usage_string, verbose_usage): Add `--traditional'. |
|
7734 (maximum_braindamage): New function. |
|
7735 (main): Call it if --traditional. |
|
7736 |
|
7737 * input.cc (do_input_echo): Print prompt correctly when |
|
7738 forced_interactive is either true or false. |
|
7739 |
|
7740 Thu Sep 14 00:54:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7741 |
|
7742 * data.cc (Fstruct_elements): New function. |
|
7743 |
|
7744 * file-io.cc (Fumask): New function. |
|
7745 |
|
7746 * dirfns.cc (Fmkdir, Frmdir, Frename): New functions. |
|
7747 |
|
7748 * Makefile.in: Add rules and dependencies for building safe-stat.o |
|
7749 and safe-lstat.o. |
|
7750 |
|
7751 * mkdir.c, rename.c, rmdir.c: New files. |
|
7752 * Makefile.in (SOURCES): Include them in the list. |
|
7753 |
|
7754 * safe-xstat.hin, safe-xstat.cin: New files |
|
7755 * Makefile.in (DISTFILES): Include them in the list. |
|
7756 |
|
7757 * sighandlers.cc (octave_new_handler): Try to continue on memory |
|
7758 exhausted errors. |
|
7759 (sigfpe_handler): Improve error message. |
|
7760 |
|
7761 * Makefile.in: Use `ifndef omit_deps', not `ifndef $(omit_deps)'. |
|
7762 |
|
7763 * dirfns.cc (Freaddir): New function. |
|
7764 |
|
7765 * f-sort.cc: Complete rewrite. Now uses stable sort algorithm and |
|
7766 correctly handles complex matrices containing columns of all real |
|
7767 numbers. |
|
7768 |
|
7769 Wed Sep 13 03:16:40 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7770 |
|
7771 * arith-ops.cc: Unconditionally #define DIVIDE_BY_ZERO_ERROR. |
|
7772 |
|
7773 * variables.cc (install_builtin_variables): Unconditionally |
|
7774 install NaN and nan. |
|
7775 |
|
7776 * mappers.cc (xisinf): Don't do bogus things if isinf, isnan, or |
|
7777 finite are missing. |
|
7778 (xfinite): Likewise. |
|
7779 |
|
7780 * sysdep.cc (octave_ieee_init): Don't set octave_NaN and |
|
7781 octave_Inf if values are not available. |
|
7782 |
|
7783 * resource.cc (mk_ru_map): Don't use ru_ or tv_ as prefixes to |
|
7784 Octave names for the structure members. |
|
7785 |
|
7786 Tue Sep 12 02:04:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7787 |
|
7788 * procstream.h, procstream.cc: Rewrite. |
|
7789 |
|
7790 Mon Sep 11 18:42:05 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7791 |
|
7792 * filemode.c: New file, from Emacs. |
|
7793 * Makefile.in (SOURCES): Add it to the list. |
|
7794 |
|
7795 * file-io.cc (Fstat, Flstat, mk_stat_map): New functions. |
|
7796 |
|
7797 * timefns.cc (mk_tm_map): Don't use tm_ as prefix to Octave names |
|
7798 for these structure members. |
|
7799 (extract_tm): Likewise. |
|
7800 (Flocaltime): Fix doc string to match. |
|
7801 |
|
7802 Thu Sep 7 02:04:27 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7803 |
|
7804 * load-save.cc (save_user_variables): New function. |
|
7805 * sighandlers.cc (my_friendly_exit): Call it before exiting. |
|
7806 (sigfpe_handler): New function. |
|
7807 (install_signal_handlers) [__alpha__]: Install it. |
|
7808 |
|
7809 Wed Sep 6 14:35:10 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7810 |
|
7811 * tree-cmd.cc (tree_unwind_protect::eval): Ignore errors and |
|
7812 suppress error messages while executing first block of |
|
7813 unwind_protect commands. |
|
7814 |
|
7815 * parse.y (end_error): Add missing case for unwind_protect_end. |
|
7816 |
|
7817 * tree-expr.cc (tree_builtin::eval): Complain if no arguments |
|
7818 given for mapper functions. |
|
7819 (tree_fvc::lookup_map_element): Print error message for invalid |
|
7820 structure reference. |
|
7821 |
|
7822 Tue Sep 5 02:04:12 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7823 |
|
7824 * file-io.cc, input.cc, load-save.cc, octave.cc, sysdep.cc, |
|
7825 variables.cc, octave-hist.cc, utils.cc, f-schur.cc, f-rand.cc, |
|
7826 f-quad.cc, f-qpsol.cc, f-npsol.cc, f-lsode.cc, f-fsolve.cc, |
|
7827 f-dassl.cc, f-colloc.cc, f-balance.cc, error.cc, data.cc: |
|
7828 Add const qualifiers where appropriate. |
|
7829 |
|
7830 * dirfns.h: Include <ctime>, for time_t. |
|
7831 |
|
7832 * tempname.c, file-io.cc, help.cc, input.cc, octave-hist.cc, |
|
7833 octave.cc, sighandlers.cc, sysdep.cc, tree-expr.cc, tree-misc.cc, |
|
7834 tree-plot.cc, utils.cc, variables.cc, sysdir.h: |
|
7835 Move #include <sys/type.h> inside #ifdef HAVE_UNISTD_H. |
|
7836 |
|
7837 * syswait.h: New file. |
|
7838 * Makefile.in (INCLUDES): Add it to the list. |
|
7839 * file-io.cc, sighandlers.cc: Use it instead of including |
|
7840 sys/wait.h directly. |
|
7841 |
|
7842 * octave.cc: Include statdefs.h, not sys/stat.h. |
|
7843 |
|
7844 * sysdir.h: New file. |
|
7845 * Makefile.in (INCLUDES): Add it to the list. |
|
7846 * dirfns.cc, utils.cc: Use it instead of including the headers |
|
7847 directly. |
|
7848 |
|
7849 * pathlen.h: New file. |
|
7850 * Makefile.in (INCLUDES): Add it to the list. |
|
7851 * dirfns.cc, input.cc: Use it instead of including sys/param.h |
|
7852 directly. |
|
7853 * utils.cc: Don't include sys/param.h |
|
7854 |
|
7855 Sun Sep 3 18:52:59 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7856 |
|
7857 * tree-const.cc (TC_REP::string_value): Return const char*, not |
|
7858 char *. |
|
7859 |
|
7860 * All .cc, .y, .l, .y files: Include <cctype>, not <ctype.h>, and |
|
7861 so on for all new C++ versions of these standard C headers. |
|
7862 |
|
7863 Thu Aug 31 17:09:38 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7864 |
|
7865 * pathsearch.h: Also hide `string'. |
|
7866 |
|
7867 * oct-str.cc, oct-str.h: New files. |
|
7868 * Makefile.in: Add to the appropriate lists. |
|
7869 * tc-rep.h: Change char* to Octave_string* in anonymous union. |
|
7870 * tree-expr.cc (tree_matrix::eval): Handle multiple element strings. |
|
7871 * strfns.cc (toascii): Likewise. |
|
7872 * tree-const.cc (print_as_string): Likewise. |
|
7873 (TC_REP::force_numeric, TC_REP::rows, TC_REP::columns, |
|
7874 TC_REP::double_value, TC_REP::complex_value, TC_REP::matrix_value, |
|
7875 TC_REP::complex_matrix_value, TC_REP::convert_to_str): Likewise. |
|
7876 (TC_REP::print): Call octave_print_internal for string case. |
|
7877 (all_strings): New function. |
|
7878 Fix constructors to use new data structure. |
|
7879 * pr-output.cc (octave_print_internal): Add version for strings. |
|
7880 * Array-string.cc: New file. |
|
7881 |
|
7882 * octave.cc (octave_argv): New global variable. |
|
7883 (intern_argv): New function. |
|
7884 (main): Fix argument parsing to do the right thing for arguments |
|
7885 to executable scripts. |
|
7886 * variables.cc: Add DEFUNs for argv, program_invocation_name, and |
|
7887 program_name. |
|
7888 |
|
7889 * defun.h (DEFVAR): Fix comment. |
|
7890 |
|
7891 Thu Aug 24 00:02:00 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7892 |
|
7893 * file-io.cc (fgets_internal): Make second arg optional. Add |
|
7894 optional arg `strip_final_newline'. |
|
7895 (Ffgets): Change to match new definition of fgets_internal. |
|
7896 (Ffgetl): Implement using the new fgets_internal. |
|
7897 |
|
7898 * f-rand.cc (Frand): Update code for sizing return value to match |
|
7899 that used by ones, zeros, and eye. |
|
7900 |
|
7901 Wed Aug 23 19:52:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7902 |
|
7903 * tree-const.cc (do_vector_assign): Don't crash for |
|
7904 A(range) = scalar, or A(matrix) = scalar. |
|
7905 |
|
7906 * f-dassl.cc (set_dassl_option): Rename from do_dassl_option. |
|
7907 (show_dassl_option): New function. |
|
7908 (Fdassl_options): Handle single arg. |
|
7909 * f-fsolve.cc (set_fsolve_option): Rename from do_fsolve_option. |
|
7910 (show_fsolve_option): New function. |
|
7911 (Ffsolve_options): Handle single arg. |
|
7912 * f-fsqp.cc (set_fsqp_option): Rename from do_fsqp_option. |
|
7913 (show_fsqp_option): New function. |
|
7914 (Ffsqp_options): Handle single arg. |
|
7915 * f-lpsolve.cc (set_lpsolve_option): Rename from do_lpsolve_option. |
|
7916 (show_lpsolve_option): New function. |
|
7917 (Flpsolve_options): Handle single arg. |
|
7918 * f-lsode.cc (set_lsode_option): Rename from do_lsode_option. |
|
7919 (show_lsode_option): New function. |
|
7920 (Flsode_options): Handle single arg. |
|
7921 * f-npsol.cc (set_npsol_option): Rename from do_npsol_option. |
|
7922 (show_npsol_option): New function. |
|
7923 (Fnpsol_options): Handle single arg. |
|
7924 * f-qpsol.cc (set_qpsol_option): Rename from do_qpsol_option. |
|
7925 (show_qpsol_option): New function. |
|
7926 (Fqpsol_options): Handle single arg. |
|
7927 * f-quad.cc: (set_quad_option): Rename from do_quad_option. |
|
7928 (show_quad_option): New function. |
|
7929 (Fquad_options): Handle single arg. |
|
7930 (Fquad): Doc fix. |
|
7931 |
|
7932 Tue Aug 22 00:38:05 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7933 |
|
7934 * tree-plot.cc (do_external_plotter_cd): New function. |
|
7935 * dirfns.cc (octave_change_to_directory): New function. If cd is |
|
7936 successful, also call do_external_plotter_cd(). |
|
7937 (Fcd): Call octave_change_to_directory(), not change_to_directory(). |
|
7938 |
|
7939 * pr-output.cc (pr_any_float): Change declaration of counter to |
|
7940 size_t to avoid gcc warnings. |
|
7941 |
|
7942 * idx-vector.cc, octave-hist.cc, tree-const.cc, tree-expr.cc, |
|
7943 tree-misc.cc, utils.cc, xpow.cc, Map.cc: |
|
7944 Update for change in for loop variable scope for gcc 2.7.0. |
|
7945 |
|
7946 Mon Aug 21 19:34:53 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7947 |
|
7948 * tree-const.cc (fortran_style_matrix_assignment): Properly handle |
|
7949 case of complex LHS, real RHS. |
|
7950 |
|
7951 * Makefile.in: Only include dependency files if $(omit_deps) is |
|
7952 not set. |
|
7953 |
|
7954 Wed Jul 5 00:03:58 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
7955 |
|
7956 * sysdep.cc: Explicitly include string.h. |
|
7957 |
|
7958 Sun Jun 25 00:18:10 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7959 |
|
7960 * load-save.cc (too_large_for_float (const Matrix&)): |
|
7961 Extract elements as doubles, not Complex. |
|
7962 |
|
7963 Sat Jun 24 22:59:15 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7964 |
|
7965 * pr-output.cc (any_element_is_inf_or_nan): Declare extern, not static. |
|
7966 * f-svd.cc (Fsvd): Call here to avoid trying to take SVD of matrix |
|
7967 containing Inf or NaN values. |
|
7968 |
|
7969 * pr-output.cc (bit_format): New file-scope variable. |
|
7970 (set_format, pr_any_float): Handle bit_format. |
|
7971 (octave_print_internal): Handle bit_format like bank_format. |
|
7972 (init_format_state): Initialize bit_format. |
|
7973 (set_format_style): Allow `format bit' and `format native-bit'. |
|
7974 |
|
7975 Thu Jun 8 15:20:26 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7976 |
|
7977 * mappers.cc (arg, imag, signum): If arg is NaN, return NaN. |
|
7978 |
|
7979 Mon May 15 14:47:04 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7980 |
|
7981 * pager.cc (Fdiary): Initialize diary_file here, not in the |
|
7982 file-scope declaration. |
|
7983 |
|
7984 * tree-expr.cc (tree_index_expression::eval): |
|
7985 Handle nargin == 0 the same as other cases. |
|
7986 |
|
7987 Tue May 2 10:02:23 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7988 |
|
7989 * load-save.cc (do_double_format_conversion): Add missing breaks. |
|
7990 (do_float_format_conversion): Likewise. |
|
7991 |
|
7992 Mon May 1 13:50:24 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
7993 |
|
7994 * Makefile.in (OCTAVE_LIBS): Add @LIBPLPLOT@ to the list. |
|
7995 |
|
7996 * timefns.cc (Ftime): Handle GETTIMEOFDAY_NO_TZ. |
|
7997 |
|
7998 * Makefile.in (SOURCES): Delete tc-rep.cc, tc-rep-ass.cc, and |
|
7999 tc-rep-idx.cc from the list. |
|
8000 |
|
8001 * tree-const.h: Add #pragma interface. |
|
8002 * tree-const.cc: Add contents of tc-rep.cc, tc-rep-ass.cc, and |
|
8003 tc-idx.cc to this file. Add #pragma implementation. This makes |
|
8004 tree-const.cc large, but makes the final binary smaller. |
|
8005 |
|
8006 * unwind-prot.h unwind-prot.cc token.cc token.h procstream.cc |
|
8007 procstream.h idx-vector.cc idx-vector.h symtab.cc symtab.h |
|
8008 oct-map.cc oct-map.h oct-obj.cc oct-obj.h tree-plot.h tree-plot.cc |
|
8009 tree-misc.cc tree-misc.h tree-expr.cc tree-expr.h tree-cmd.cc |
|
8010 tree-cmd.h tree-base.cc tree-base.h: |
|
8011 Add #pragma interface/implementation. |
|
8012 |
|
8013 * Makefile.in (OCTAVE_LIBS): Delete @LIBINFO@ from list. |
|
8014 * help.cc: Don't include info headers or extern declarations for |
|
8015 functions from info. |
|
8016 (try_info): Call info as a subprocess. Delete second arg. |
|
8017 Handle SIGINT here, not in help_from_info(). |
|
8018 (help_from_info): Complain if info doesn't work. |
|
8019 |
|
8020 * defun-dld.h (DEFUN_DLD_BUILTIN) [OCTAVE_LITE && MAKE_BUILTINS]: |
|
8021 If ! WITH_DLD, simply emit a character string constant. |
|
8022 |
|
8023 Fri Apr 28 15:23:06 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8024 |
|
8025 * lex.l ({IDENT}{S}*): Don't delete tok. That's handled by |
|
8026 strip_trailing_whitespace() now. |
|
8027 (<HELP_FCN>[^ \t\n]*{S}*|<TEXT_FCN>[^ \t\n\;\,]*{S}*): Ditto. |
|
8028 |
|
8029 * pathsearch.h: Include kpathsea/progname.h. |
|
8030 * octave.cc (initialize_globals): Call kpse_set_progname(). |
|
8031 |
|
8032 * token.h: Declare copy constructor and operator = private. |
|
8033 * token.cc: Abort if copy constructor or operator = is used. |
|
8034 |
|
8035 Thu Apr 27 13:54:39 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8036 |
|
8037 * tree-expr.cc (lookup_map_element): Don't list default argument |
|
8038 values here too. |
|
8039 |
|
8040 * pr-output.cc (hex_format): New file-scope variable. |
|
8041 (set_format, pr_any_float): Handle hex_format. |
|
8042 (octave_print_internal): Handle hex_format like bank_format. |
|
8043 (init_format_state): Initialize hex_format. |
|
8044 (set_format_style): Allow `format hex' and `format native-hex'. |
|
8045 |
|
8046 * variables.cc (bind_ans): Create ans_id each time with new and |
|
8047 ask tree_simple_assignment_expression to handle cleaning it up. |
|
8048 This apparently plugs a memory leak. |
|
8049 |
|
8050 * help.cc (Ftype): Don't try to print map constants. Handle |
|
8051 references to structure members. |
|
8052 |
|
8053 Wed Apr 26 12:40:59 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8054 |
|
8055 * input.cc (generate_struct_completions): New function. |
|
8056 (generate_possible_completions): Likewise. |
|
8057 (looks_like_struct): Likewise. |
|
8058 (command_generator): Handle completion of struct variables. |
|
8059 |
|
8060 * tree-expr.h, tree-expr.cc (tree_fvc::lookup_map_element): |
|
8061 Add insert and silent args. |
|
8062 |
|
8063 * oct-map.cc: New file. |
|
8064 * Makefile.in (SOURCES): Add it to the list. |
|
8065 |
|
8066 Mon Apr 24 09:41:02 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8067 |
|
8068 * variables.cc (Fexist): Handle structure references too. |
|
8069 |
|
8070 * tree-const.cc (lookup_map_element (const char*, int, int): |
|
8071 New function. |
|
8072 (lookup_map_element (SLList<char*>&, int, int): New arg, silent. |
|
8073 * tc-rep.cc (lookup_map_element): New arg, silent. If nonzero, |
|
8074 don't call error(). |
|
8075 |
|
8076 * tc-rep.h (is_empty): Define here. |
|
8077 * tree-const.h (is_empty): Hand off to TC_REP::is_empty(). |
|
8078 |
|
8079 * data.cc (Fstruct_contains): Call lookup_map_element on args(0) |
|
8080 instead of extracting the map and calling contains() on it. |
|
8081 |
|
8082 * parse.y (EPLUS, EMINUS): New tokens. |
|
8083 (simple_expr): Handle EPLUS, EMINUS the same as `+' and `-'. |
|
8084 * lex.l (".+", ".-"): New patterns. Match these separately to |
|
8085 disallow using them as unary operators. |
|
8086 |
|
8087 * lex.l (next_token_is_bin_op): Simplify by noting that spacing |
|
8088 only matters for those tokens that can also be unary ops. |
|
8089 |
|
8090 Fri Apr 21 14:34:45 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8091 |
|
8092 * load-save.cc (read_ascii_data): Allow reading of empty |
|
8093 matrices. |
|
8094 |
|
8095 * tc-rep-ass.cc (vector_assignment): Only assert that we are not |
|
8096 doing fortran-style indexing and that nr <= 1 || nc <= 1. |
|
8097 (do_vector_assign): Handle assignment of [] when one dimension is |
|
8098 zero and the other is anything. |
|
8099 |
|
8100 Thu Apr 20 13:56:21 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8101 |
|
8102 * tc-rep-ass.cc (delete_rows, delete_columns): Simply return if |
|
8103 num_to_delete is 0. |
|
8104 |
|
8105 * lex.l (handle_identifier): Don't match plot option keywords |
|
8106 inside parentheses or braces. |
|
8107 |
|
8108 * variables.cc (parse_fcn_file): Also delete tmp_help_txt if |
|
8109 running a script. |
|
8110 |
|
8111 * tree-cmd.h (tree_command): Add destructor. |
|
8112 |
|
8113 * tree-expr.h tree_simple_assignment_expression (lhs_idx_expr): |
|
8114 Hang on to idx_expr, not just its parts so it can be deleted. |
|
8115 (init): Initialize it. |
|
8116 * tree-expr.cc (~tree_simple_assignment_expression): Delete it. |
|
8117 |
|
8118 * tree-expr.h (tree_multi_val_ret, tree_oct_obj, tree_fvc, |
|
8119 tree_identifier, tree_builtin, tree_function): Add destructors. |
|
8120 * tree-expr.cc (tree_function::~tree_function): Delete some stuff. |
|
8121 |
|
8122 * tree-misc.h (tree_va_return_list): Add destructor. |
|
8123 |
|
8124 * octave.cc (__builtin_new, __builtin_delete): Provide our own, |
|
8125 for debugging. |
|
8126 |
|
8127 * utils.cc (strconcat): Don't depend on the return value from |
|
8128 strcat. |
|
8129 (file_in_path): Simplify logic. |
|
8130 |
|
8131 * parse.y (maybe_convert_to_ans_assign): Create ans_id each time |
|
8132 with new and ask tree_simple_assignment_expression to handle |
|
8133 cleaning it up. This apparently plugs a memory leak. |
|
8134 |
|
8135 * lex.l (strip_trailing_whitespace): Declare retval static. |
|
8136 Delete it before saving next string. |
|
8137 |
|
8138 * error.cc (Ferror): Do call error() for empty string args. |
|
8139 (error_1): Don't print anything if fmt is "" or "\n", but do set |
|
8140 the error state appropriately. |
|
8141 |
|
8142 * tree-cmd.cc (tree_unwind_protect::eval): Handle return and break |
|
8143 in the `try' part of the statement. |
|
8144 |
|
8145 Mon Apr 10 19:29:44 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8146 |
|
8147 * f-expm.cc, f-givens.cc, f-qzval.cc, f-syl.cc, f-rand.cc: |
|
8148 Where appropriate, declare Fortran functions to take reference |
|
8149 instead of pointer args. Change callers. |
|
8150 |
|
8151 * mappers.cc: Declare Fortran functions to take reference instead |
|
8152 of pointer args. Change callers. |
|
8153 |
|
8154 * gamma.c, lgamma.c, erfc.c, erf.c, atanh.c, asinh.c, acosh.c: |
|
8155 Declare Fortran functions to take reference instead of pointer |
|
8156 args. |
|
8157 |
|
8158 Sun Apr 9 19:38:53 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8159 |
|
8160 * file-io.cc (Fpopen, Fpclose, Fexecute, Fsync_system, |
|
8161 Fasync_system, Fwaitpid, Fmkfifo, Funlink): New functions. |
|
8162 |
|
8163 * sighandlers.cc (sigchld_handler): New function. |
|
8164 (install_signal_handlers): Add call to install |
|
8165 sigchld_handler. (This is #if 0'd out, waiting for code to help |
|
8166 determine which child exited and what to do about it). |
|
8167 |
|
8168 * tree-expr.h (tree_oct_obj): New class. |
|
8169 |
|
8170 * tree-expr.h (tree_multi_assignment_expression::preserve): New |
|
8171 data member. Add arg with default value to constructors. Change |
|
8172 callers as necessary. |
|
8173 * tree-expr.cc (~tree_multi_assignment_expression): Conditionally |
|
8174 delete lhs. |
|
8175 |
|
8176 * parse.y (make_multi_val_ret): Pass matrix instead of getting it |
|
8177 from the global matrix list. |
|
8178 (expression): Extract matrix from matrix list before calling |
|
8179 make_multi_val_ret(). |
|
8180 |
|
8181 * parse.y (command): Handle new for loop syntax for structures. |
|
8182 |
|
8183 * tree-plot.h (subplot_list): Include tree_print_code() in |
|
8184 initializer lists for constructors. |
|
8185 * tree-expr.h (tree_statement_list, tree_argument_list, |
|
8186 tree_parameter_list, tree_return_list, tree_global_init_list, |
|
8187 tree_if_command_list, ): Likewise. |
|
8188 |
|
8189 * tree-cmd.h (tree_for_command::id_list): New data member. |
|
8190 (tree_for_command (tree_return_list*, tree_expression*, |
|
8191 tree_statement_list*, int, int)): Likewise. |
|
8192 * tree-cmd.cc (tree_for_command::eval): Handle for loops with |
|
8193 structures. |
|
8194 (do_for_loop_once (tree_return_list*, Octave_object&, int&)): |
|
8195 New form for handling for loops with structures. |
|
8196 |
|
8197 * sysdep.cc (octave_ieee_init): Determine floating point format |
|
8198 here. |
|
8199 (native_float_format): New global variable. |
|
8200 (Fisieee): Compute return value from native_float_format, not by |
|
8201 using preprocessor macros. |
|
8202 * sysdep.h (enum floating_point_format): Move declaration here. |
|
8203 * load-save.cc: From here. |
|
8204 Always define all floating point format conversion routines. |
|
8205 (do_double_format_conversion, do_float_format_conversion): |
|
8206 Use native_float_format instead of preprocessor macros. |
|
8207 |
|
8208 Sat Apr 8 15:41:35 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8209 |
|
8210 * Makefile (TEMPLATE_SRC): New variable. |
|
8211 (DISTFILES): Add $(TEMPLATE_SRC). |
|
8212 (SOURCES): Delete Map.cc and SLStack.cc from here. |
|
8213 |
|
8214 * variables.cc (install_builtin_variables): Use OCTAVE_VERSION |
|
8215 instead of version_string to initialize OCTAVE_VERSION. |
|
8216 * version.h (version_string): Delete. |
|
8217 |
|
8218 * getopt.c (_getopt_internal): Initialize indfound to avoid warning. |
|
8219 |
|
8220 Fri Apr 7 15:29:41 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8221 |
|
8222 * tc-inlines.h (REP_RHS_MATRIX): Just check to see if tc is real |
|
8223 or complex. If conversion fails, return. |
|
8224 |
|
8225 Thu Apr 6 00:10:47 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8226 |
|
8227 * data.cc (Fstruct_contains): New function. |
|
8228 |
|
8229 * tc-rep.cc (print_code): Add extra parens around while condition |
|
8230 to avoid warning. |
|
8231 * utils.cc (undo_string_escapes): Likewise. |
|
8232 * input.cc (decode_prompt_string): Likewise. Also rewrite if |
|
8233 statement to avoid warning. |
|
8234 |
|
8235 Tue Apr 4 22:54:17 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8236 |
|
8237 * tree-expr.cc (tree_multi_assignment_expression::eval, |
|
8238 tree_simple_assignment_expression::eval): Call print_constant |
|
8239 even if user_pref.print_answer_id_name is false. |
|
8240 |
|
8241 Mon Apr 3 17:57:14 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8242 |
|
8243 * tc-inlines.h (TC_REP): Avoid redefinition. |
|
8244 |
|
8245 * tree-const.h (do_binary_op, do_unary_op): Declare as friends of |
|
8246 tree_constant class too. |
|
8247 |
|
8248 * tree-plot.h (subplot_using::have_values): Delete data member. |
|
8249 * tree-plot.cc (subplot_using::eval): Always recompute values. |
|
8250 |
|
8251 Fri Mar 31 10:18:32 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8252 |
|
8253 * tc-rep.cc (print): Print open brace for structures here. |
|
8254 * tree-expr.cc (print_constant): Not here. |
|
8255 |
|
8256 * symtab.cc (define): Don't delete arg if sv_fcn fails. |
|
8257 |
|
8258 * tree-const.cc (print): New function. Create ostrstream buffer |
|
8259 and pass it to rep->print(). |
|
8260 * tree-const.h (eval (int)): Call print(), not rep->print(). |
|
8261 * tc-rep.cc (structure_indent_level): New file-scope variable. |
|
8262 (print): New arg, output_buf, is stream to print to. |
|
8263 Print values of structure elements too. |
|
8264 |
|
8265 * user-prefs.h (user_preferences): New field, struct_levels_to_print. |
|
8266 * user-prefs.cc (struct_levels_to_print): New function. |
|
8267 * variables.cc (install_builtin_variables): Add DEFVAR for new |
|
8268 variable struct_levels_to_print. |
|
8269 |
|
8270 * tree-const.cc (print_as_scalar, print_as_structure): Move here |
|
8271 from tree-expr.cc and make extern. |
|
8272 |
|
8273 * tree-expr.cc (print_as_structure): New function. |
|
8274 (print_constant): Use it. |
|
8275 |
|
8276 * tree-expr.cc (print_constant): New arg, print_padding. |
|
8277 (tree_simple_assignment_expression::eval): Use print_constant |
|
8278 instead of duplicating code here. |
|
8279 (tree_multi_assignment_expression::eval): Likewise. |
|
8280 |
|
8281 Thu Mar 30 13:24:11 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8282 |
|
8283 * Makefile.in (SOURCES): Add resource.cc. |
|
8284 * resource.cc: New file, extracted from timefns.cc. |
|
8285 (Fgetrusage): New function. |
|
8286 * timefns.cc (cputime): Delete (now implemented in a function file |
|
8287 using new getrusage function). |
|
8288 |
|
8289 Wed Mar 29 22:52:42 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8290 |
|
8291 * Makefile.in (SOURCES): Add strftime.c. |
|
8292 * strftime.c: New file, from sh-utils distribution. |
|
8293 |
|
8294 * timefns.cc (mk_tm_map, extract_tm, Ftime, Fgmtime, Flocaltime, |
|
8295 Fmktime, Fstrftime): New basic time functions. |
|
8296 (Fclock, Fdate): Delete (now implemented in function files using new |
|
8297 time functions). |
|
8298 |
|
8299 Tue Mar 28 17:51:51 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8300 |
|
8301 * file-io.cc (return_valid_file, do_printf, do_scanf, |
|
8302 fclose_internal, feof_internal, ferror_internal, fflush_internal, |
|
8303 fgets_internal, fopen_internal, fread_internal, freport_internal, |
|
8304 frewind_internal, fseek_internal, ftell_internal, |
|
8305 fwrite_internal): Declare static. |
|
8306 * file-io.h: Delete extern declarations for them. |
|
8307 |
|
8308 Fri Mar 24 09:52:50 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8309 |
|
8310 * pr-output.cc (pr_col_num_header): New function. |
|
8311 (compact_format): New file-scope variable. |
|
8312 (set_format_style): Handle loose and compact formats. |
|
8313 (octave_print_internal (ostream&, const ComplexMatrix&, int)): |
|
8314 Replace duplicate code with call to pr_col_num_header(). |
|
8315 (octave_print_internal (ostream&, const Matrix&, int): Likewise. |
|
8316 (octave_print_internal (ostream&, const Range&, int): Likewise. |
|
8317 |
|
8318 Tue Mar 21 08:44:48 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8319 |
|
8320 * mappers.cc (xgamma): Always use Slatec library function. |
|
8321 * (xlgamma): Likewise. |
|
8322 * Makefile.in (SOURCES): Don't include lgamma.c. |
|
8323 |
|
8324 Fri Mar 17 22:38:39 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8325 |
|
8326 * tc-rep.cc (TC_REP::new): Don't try to keep track of newlist_tail. |
|
8327 Explicitly initialize newlist to zero. |
|
8328 * tree-const.cc (tree_constant::operator new): Likewise. |
|
8329 |
|
8330 Fri Mar 10 12:40:24 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8331 |
|
8332 * tree-cmd.cc (quit_loop_now): Declare inline. |
|
8333 (tree_for_command::do_for_loop_once): Split into two versions, one |
|
8334 for the general case and one for when the loop variable is a |
|
8335 simple identifier. |
|
8336 (DO_LOOP): New macro. Move tests outside of loop. |
|
8337 (tree_for_command::eval): Speed up by checking to see if loop |
|
8338 variable is a simple identifier and by using DO_LOOP. |
|
8339 |
|
8340 * tree-const.h: New union of rep and freeptr. The freeptr element |
|
8341 is used for our custom memory management functions. |
|
8342 |
|
8343 * tc-rep.h: Add freeptr element to anonymous union (for our custom |
|
8344 memory management functions). |
|
8345 |
|
8346 * tree-const.cc (newlist, newlist_grow_size, newlist_tail): New |
|
8347 static variables. |
|
8348 (tree_constant::operator new): Always define to allow more |
|
8349 efficient allocation of single tree_constants. |
|
8350 (tree_constant::operator delete): Likewise, handle deletion of the |
|
8351 memory we allocate. |
|
8352 |
|
8353 * tc-rep.cc (newlist, newlist_grow_size, newlist_tail): New static |
|
8354 variables. |
|
8355 (tree_constant::operator new): Always define to allow more |
|
8356 efficient allocation of single tree_constants. |
|
8357 (tree_constant::operator delete): Likewise, handle deletion of the |
|
8358 memory we allocate. |
|
8359 |
|
8360 Fri Mar 3 14:00:08 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8361 |
|
8362 * error.cc (verror): Terminate output_buf with ends. |
|
8363 |
|
8364 * statdefs.h: Use C-style comment in first line instead of |
|
8365 C++-style comment. |
|
8366 |
|
8367 Mon Feb 27 10:11:18 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8368 |
|
8369 * parse.y (maybe_convert_to_ans_assign): Only lookup ans once. |
|
8370 * variables.cc (bind_ans): New function. |
|
8371 * tree-expr.cc (tree_identifier::eval (int)): Use it here. |
|
8372 (tree_identifier::eval (int, int, const Octave_object&): And here. |
|
8373 |
|
8374 * tree-expr.cc (install_nargin_and_nargout): New function. |
|
8375 * tree-expr.h (tree_function::tree_function (tree_statement_list *, |
|
8376 symbol_table *, int, int)): Call it. |
|
8377 |
|
8378 * tree-expr.cc (tree_function::bind_nargin_and_nargout): New function. |
|
8379 (tree_function::eval): Call it insead of the one from variables.cc. |
|
8380 |
|
8381 * variables.cc (bind_nargin_and_nargout): #if 0 out. |
|
8382 |
|
8383 Sun Feb 26 00:17:06 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8384 |
|
8385 * load-save.cc (Fload, Fsave): Free fname returned by tilde_expand(). |
|
8386 * dirfns.cc (Fls): Likewise. |
|
8387 |
|
8388 * tree-expr.cc (tree_multi_assignment_expression::eval (int, int, |
|
8389 const Octave_object&)): Call tree_return_list::operator () (Pix) |
|
8390 explicitly. |
|
8391 |
|
8392 * octave.cc (initialize_globals): Put TEXMF in the environment for |
|
8393 kpthsea. |
|
8394 |
|
8395 * Makefile.in (OCTAVE_LIBS): Use @LIBINFO@ and @LIBREADLINE@, |
|
8396 substituted by configure. Use kpathsea.a, not libkpathsea, so we |
|
8397 don't have to modify the kpathsea Makefile. |
|
8398 |
|
8399 Sat Feb 25 18:59:26 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
8400 |
|
8401 * pathsearch.cc: New file. |
|
8402 * pathsearch.h: New file. |
|
8403 * Makefile.in (INCLUDES): Include it in the list. |
|
8404 * dynamic-ld.cc, help.cc, utils.cc: Use it instead of repeating |
|
8405 identical code multiple times. |
|
8406 |
|
8407 * variables.cc (install_builtin_variables): Only DEFVAR |
|
8408 suppress_verbose_help_message if USE_GNU_INFO. |
|
8409 |
|
8410 * help.cc (Fhelp): Only handle -i if USE_GNU_INFO. |
|
8411 (additional_help_message): Only print message if USE_GNU_INFO. |
|
8412 (builtin_help): New function. |
|
8413 (help_from_info): New function. Print warning if not USE_GNU_INFO. |
|
8414 |
|
8415 See ChangeLog.1 in the top level directory for earlier changes. |