4093
|
1 2002-10-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2 |
|
3 * Makefile.in (gendoc): Use $(BUILD_CXX), not $(CXX). |
|
4 |
|
5 2002-10-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6 |
|
7 * utils.cc (octave_sleep): Cast result of modf to unsigned int. |
|
8 |
4092
|
9 2002-10-07 Paul Kienzle <pkienzle@users.sf.net> |
|
10 |
|
11 * sighandlers.cc (my_friendly_exit): If kill is unavailable, use |
|
12 raise. |
|
13 |
4090
|
14 2002-10-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
15 |
4091
|
16 * sysdep.cc (CYGWIN_init): New function. |
|
17 (sysdep_init) [__CYGWIN__]: Call it. |
|
18 |
4090
|
19 * pt-plot.cc (subplot::handle_plot_data): Surround file names in |
|
20 single quotes, not double (for Windows). |
|
21 (do_external_plotter_cd): Likewise. |
|
22 |
4086
|
23 2002-10-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
24 |
|
25 * cutils.c (octave_usleep): Call octave_sleep, not sleep. |
|
26 |
|
27 * utils.cc (octave_sleep (double)): New function. |
|
28 * utils.h: Provide decl. |
|
29 * sysdep.cc (Fpause, Fsleep): Use it. |
|
30 |
|
31 * cutils.c (do_octave_usleep): Merge with octave_usleep. |
|
32 (octave_usleep): Make it work for Windows systems. From Paul |
|
33 Kienzle <pkienzle@users.sf.net>. |
|
34 |
|
35 2002-10-03 Paul Kienzle <pkienzle@users.sf.net> |
|
36 |
|
37 * cutils.c (octave_usleep): Make it work for Windows systems. |
|
38 |
|
39 * toplev.cc (Fsystem): Error message if fork is not available. |
|
40 |
4084
|
41 2002-10-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
42 |
|
43 * cutils.c (octave_sleep): Handle Windows, which may not have |
|
44 sleep, but should have Sleep. |
|
45 |
|
46 * oct-conf.h.in (OCTAVE_CONF_SED): Add an entry for SED. |
|
47 * toplev.cc (octave_config_info): Likewise. |
|
48 * Makefile.in (oct-gperf.h): Use $(SED), not sed. |
|
49 |
4070
|
50 2002-09-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
51 |
|
52 * file-io.cc (fopen_mode_to_ios_mode): Set ios::ate instead of |
|
53 ios::app for "a+" mode. |
|
54 * oct-stream.cc (octave_stream::mode_as_string): Recognize |
|
55 ios::ate, not ios::app as "a+" mode. |
4078
|
56 (octave_stream::mode_as_string): Use parens since | has lower |
|
57 precedence than ==. |
4070
|
58 |
4067
|
59 2002-09-26 Paul Kienzle <pkienzle@users.sf.net> |
|
60 |
|
61 * sysdep.cc: Include conio.h if it exists. |
|
62 (octave_kbhit): Rename from kbhit. Implement with _kbhit if it |
|
63 exists. Change all callers. |
|
64 * cutils.c (octave_sleep): New function. |
|
65 Change all callers of sleep to use octave_sleep instead. |
|
66 |
4066
|
67 2002-09-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
68 |
|
69 * BaseSLList.cc, BaseSLList.h, Cell.cc, Cell.h, DLList.cc, |
|
70 DLList.h, Map.cc, Map.h, OPERATORS/op-b-b.cc, |
|
71 OPERATORS/op-bm-b.cc, OPERATORS/op-bm-bm.cc, OPERATORS/op-cell.cc, |
|
72 OPERATORS/op-chm.cc, OPERATORS/op-cm-cm.cc, OPERATORS/op-cm-cs.cc, |
|
73 OPERATORS/op-cm-m.cc, OPERATORS/op-cm-s.cc, OPERATORS/op-cs-cm.cc, |
|
74 OPERATORS/op-cs-cs.cc, OPERATORS/op-cs-m.cc, OPERATORS/op-cs-s.cc, |
|
75 OPERATORS/op-fil-b.cc, OPERATORS/op-fil-bm.cc, |
|
76 OPERATORS/op-fil-cm.cc, OPERATORS/op-fil-cs.cc, |
|
77 OPERATORS/op-fil-lis.cc, OPERATORS/op-fil-m.cc, |
|
78 OPERATORS/op-fil-rec.cc, OPERATORS/op-fil-s.cc, |
|
79 OPERATORS/op-fil-str.cc, OPERATORS/op-list.cc, |
|
80 OPERATORS/op-m-cm.cc, OPERATORS/op-m-cs.cc, OPERATORS/op-m-m.cc, |
|
81 OPERATORS/op-m-s.cc, OPERATORS/op-range.cc, OPERATORS/op-s-cm.cc, |
|
82 OPERATORS/op-s-cs.cc, OPERATORS/op-s-m.cc, OPERATORS/op-s-s.cc, |
|
83 OPERATORS/op-str-str.cc, SLList.cc, SLList.h, SLStack.cc, |
|
84 SLStack.h, Stack.cc, Stack.h, c-file-ptr-stream.cc, |
|
85 c-file-ptr-stream.h, comment-list.cc, comment-list.h, oct-map.cc, |
|
86 oct-map.h, oct-obj.cc, oct-obj.h, ov-base-mat.cc, ov-base-mat.h, |
|
87 ov-base-nd-array.cc, ov-base-nd-array.h, ov-base-scalar.cc, |
|
88 ov-base-scalar.h, ov-base.cc, ov-base.h, ov-bool-mat.cc, |
|
89 ov-bool-mat.h, ov-bool.cc, ov-bool.h, ov-builtin.cc, ov-builtin.h, |
|
90 ov-cell.cc, ov-cell.h, ov-ch-mat.cc, ov-ch-mat.h, ov-colon.cc, |
|
91 ov-complex.cc, ov-complex.h, ov-cs-list.cc ov-cs-list.h, |
|
92 ov-cx-mat.cc, ov-cx-mat.h, ov-dld-fcn.cc, ov-dld-fcn.h, ov-fcn.cc, |
|
93 ov-fcn.h, ov-file.cc, ov-file.h, ov-list.cc, ov-list.h, |
|
94 ov-mapper.cc, ov-mapper.h, ov-range.cc, ov-range.h, ov-re-mat.cc, |
|
95 ov-re-mat.h, ov-re-nd-array.cc, ov-re-nd-array.h, ov-scalar.cc, |
|
96 ov-scalar.h, ov-str-mat.cc, ov-str-mat.h, ov-struct.cc, |
|
97 ov-struct.h, ov-typeinfo.cc, ov-typeinfo.h, ov-usr-fcn.cc, |
|
98 ov-usr-fcn.h, ov-va-args.cc, ov.cc, ov.h, procstream.cc, |
|
99 procstream.h, pt-arg-list.cc, pt-arg-list.h, pt-assign.cc, |
|
100 pt-assign.h, pt-binop.cc, pt-binop.h, pt-bp.cc, pt-bp.h, |
|
101 pt-cell.cc, pt-cell.h, pt-check.cc, pt-check.h, pt-cmd.cc, |
|
102 pt-cmd.h, pt-colon.cc, pt-colon.h, pt-const.cc, pt-const.h, |
|
103 pt-decl.cc, pt-decl.h, pt-except.cc, pt-except.h, pt-exp.cc, |
|
104 pt-exp.h, pt-id.cc, pt-id.h, pt-idx.cc, pt-idx.h, pt-jump.cc, |
|
105 pt-jump.h, pt-loop.cc, pt-loop.h, pt-mat.cc, pt-mat.h, pt-misc.cc, |
|
106 pt-misc.h, pt-plot.cc, pt-plot.h, pt-pr-code.cc, pt-pr-code.h, |
|
107 pt-select.cc, pt-select.h, pt-stmt.cc, pt-stmt.h, pt-unop.cc, |
|
108 pt-unop.h, pt.cc, pt.h, symtab.cc, symtab.h, token.cc, token.h, |
|
109 unwind-prot.cc, unwind-prot.h: |
|
110 If __GNUG__, use pragma interface/implementation. Allow this to |
|
111 be turned off by defining NO_PRAGMA_INTERFACE_IMPLEMENTATION. |
|
112 |
4064
|
113 2002-09-26 Paul Kienzle <pkienzle@users.sf.net> |
|
114 |
4065
|
115 * mappers.cc (install_mapper_functions): Install erf, not xerf. |
|
116 Install erfc, not xerfc. |
|
117 |
4064
|
118 * pt-bp.cc (tree_breakpoint::visit_unwind_protect_command): |
|
119 Rename lst1 and lst2 to avoid dlgs.h conflict. |
|
120 |
|
121 * parse.y: Replace TEXT with STRING to avoid winnt.h conflict. |
|
122 * lex.l: Ditto. |
|
123 |
|
124 * sysdep.cc (raw_mode): Non-fatal warning if raw_mode is not |
|
125 supported. |
|
126 |
|
127 * sighandlers.cc: Don't define handlers for non-existent signals. |
|
128 |
|
129 * utils.cc: Don't include unneeded termio headers. |
|
130 |
4061
|
131 2002-09-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
132 |
|
133 * BaseSLList.cc, BaseSLList.h, Cell.cc, Cell.h, DLList.cc, |
|
134 DLList.h, Map.cc, Map.h, OPERATORS/op-b-b.cc, |
|
135 OPERATORS/op-bm-b.cc, OPERATORS/op-bm-bm.cc, OPERATORS/op-cell.cc, |
|
136 OPERATORS/op-chm.cc, OPERATORS/op-cm-cm.cc, OPERATORS/op-cm-cs.cc, |
|
137 OPERATORS/op-cm-m.cc, OPERATORS/op-cm-s.cc, OPERATORS/op-cs-cm.cc, |
|
138 OPERATORS/op-cs-cs.cc, OPERATORS/op-cs-m.cc, OPERATORS/op-cs-s.cc, |
|
139 OPERATORS/op-fil-b.cc, OPERATORS/op-fil-bm.cc, |
|
140 OPERATORS/op-fil-cm.cc, OPERATORS/op-fil-cs.cc, |
|
141 OPERATORS/op-fil-lis.cc, OPERATORS/op-fil-m.cc, |
|
142 OPERATORS/op-fil-rec.cc, OPERATORS/op-fil-s.cc, |
|
143 OPERATORS/op-fil-str.cc, OPERATORS/op-list.cc, |
|
144 OPERATORS/op-m-cm.cc, OPERATORS/op-m-cs.cc, OPERATORS/op-m-m.cc, |
|
145 OPERATORS/op-m-s.cc, OPERATORS/op-range.cc, OPERATORS/op-s-cm.cc, |
|
146 OPERATORS/op-s-cs.cc, OPERATORS/op-s-m.cc, OPERATORS/op-s-s.cc, |
|
147 OPERATORS/op-str-str.cc, SLList.cc, SLList.h, SLStack.cc, |
|
148 SLStack.h, Stack.cc, Stack.h, c-file-ptr-stream.cc, |
|
149 c-file-ptr-stream.h, comment-list.cc, comment-list.h, oct-map.cc, |
|
150 oct-map.h, oct-obj.cc, oct-obj.h, ov-base-mat.cc, ov-base-mat.h, |
|
151 ov-base-nd-array.cc, ov-base-nd-array.h, ov-base-scalar.cc, |
|
152 ov-base-scalar.h, ov-base.cc, ov-base.h, ov-bool-mat.cc, |
|
153 ov-bool-mat.h, ov-bool.cc, ov-bool.h, ov-builtin.cc, ov-builtin.h, |
|
154 ov-cell.cc, ov-cell.h, ov-ch-mat.cc, ov-ch-mat.h, ov-colon.cc, |
|
155 ov-complex.cc, ov-complex.h, ov-cs-list.cc ov-cs-list.h, |
|
156 ov-cx-mat.cc, ov-cx-mat.h, ov-dld-fcn.cc, ov-dld-fcn.h, ov-fcn.cc, |
|
157 ov-fcn.h, ov-file.cc, ov-file.h, ov-list.cc, ov-list.h, |
|
158 ov-mapper.cc, ov-mapper.h, ov-range.cc, ov-range.h, ov-re-mat.cc, |
|
159 ov-re-mat.h, ov-re-nd-array.cc, ov-re-nd-array.h, ov-scalar.cc, |
|
160 ov-scalar.h, ov-str-mat.cc, ov-str-mat.h, ov-struct.cc, |
|
161 ov-struct.h, ov-typeinfo.cc, ov-typeinfo.h, ov-usr-fcn.cc, |
|
162 ov-usr-fcn.h, ov-va-args.cc, ov.cc, ov.h, procstream.cc, |
|
163 procstream.h, pt-arg-list.cc, pt-arg-list.h, pt-assign.cc, |
|
164 pt-assign.h, pt-binop.cc, pt-binop.h, pt-bp.cc, pt-bp.h, |
|
165 pt-cell.cc, pt-cell.h, pt-check.cc, pt-check.h, pt-cmd.cc, |
|
166 pt-cmd.h, pt-colon.cc, pt-colon.h, pt-const.cc, pt-const.h, |
|
167 pt-decl.cc, pt-decl.h, pt-except.cc, pt-except.h, pt-exp.cc, |
|
168 pt-exp.h, pt-id.cc, pt-id.h, pt-idx.cc, pt-idx.h, pt-jump.cc, |
|
169 pt-jump.h, pt-loop.cc, pt-loop.h, pt-mat.cc, pt-mat.h, pt-misc.cc, |
|
170 pt-misc.h, pt-plot.cc, pt-plot.h, pt-pr-code.cc, pt-pr-code.h, |
|
171 pt-select.cc, pt-select.h, pt-stmt.cc, pt-stmt.h, pt-unop.cc, |
|
172 pt-unop.h, pt.cc, pt.h, symtab.cc, symtab.h, token.cc, token.h, |
|
173 unwind-prot.cc, unwind-prot.h: |
|
174 Use USE_PRAGMA_INTERFACE_IMPLEMENTATION instead of __GNUG__ to |
|
175 decide whether to use the interface/implementation pragmas. |
|
176 |
4059
|
177 2002-09-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
178 |
4060
|
179 * load-save.cc: Undo previous change. |
|
180 |
4059
|
181 * ov-struct.cc (octave_struct::subsasgn): Ensure that indexed |
|
182 object is not shared before calling subsasgn. |
|
183 |
4057
|
184 2002-09-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
185 |
|
186 * load-save.cc: Use % instead of # as comment character in ascii |
|
187 data files. |
|
188 |
4055
|
189 2002-08-17 Mumit Khan <khan@nanotech.wisc.edu> |
|
190 |
|
191 * c-file-ptr-stream.h (c_file_ptr_buf::c_file_ptr_buf): Add Intel |
|
192 C++ runtime support. |
|
193 |
|
194 * Cell.h, gripes.cc, ov-base-scalar.cc, ov-colon.cc, ov-fcn.cc, |
|
195 ov-file.cc, ov-mapper.h, ov-va-args.cc, token.cc, xpow.cc, |
|
196 OPERATORS/op-b-b.cc, OPERATORS/op-bm-b.cc, OPERATORS/op-bm-bm.cc, |
|
197 OPERATORS/op-cell.cc, OPERATORS/op-chm.cc, OPERATORS/op-cm-cm.cc, |
|
198 OPERATORS/op-cm-cs.cc, OPERATORS/op-cm-m.cc, OPERATORS/op-cm-s.cc, |
|
199 OPERATORS/op-cs-cm.cc, OPERATORS/op-cs-cs.cc, OPERATORS/op-cs-m.cc, |
|
200 OPERATORS/op-cs-s.cc, OPERATORS/op-fil-b.cc, OPERATORS/op-fil-bm.cc, |
|
201 OPERATORS/op-fil-cm.cc, OPERATORS/op-fil-cs.cc, |
|
202 OPERATORS/op-fil-lis.cc, OPERATORS/op-fil-m.cc, |
|
203 OPERATORS/op-fil-rec.cc, OPERATORS/op-fil-s.cc, |
|
204 OPERATORS/op-fil-str.cc, OPERATORS/op-list.cc, OPERATORS/op-m-cm.cc, |
|
205 OPERATORS/op-m-cs.cc, OPERATORS/op-m-m.cc, OPERATORS/op-m-s.cc, |
|
206 OPERATORS/op-range.cc, OPERATORS/op-s-cm.cc, OPERATORS/op-s-cs.cc, |
|
207 OPERATORS/op-s-m.cc, OPERATORS/op-s-s.cc, OPERATORS/op-str-str.cc, |
|
208 TEMPLATE-INST/Array-sym.cc, TEMPLATE-INST/Array-tc.cc, |
|
209 TEMPLATE-INST/Map-tc.cc, TEMPLATE-INST/SLList-expr.cc, |
|
210 TEMPLATE-INST/SLList-tc.cc, TEMPLATE-INST/SLList-tm.cc, |
|
211 TEMPLATE-INST/SLStack-sym.cc: Make the implementation of |
|
212 octave_value_list visibile for template instantiation. |
|
213 |
4051
|
214 2002-08-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
215 |
4052
|
216 * DLD-FUNCTIONS/dasrt.cc: Include <iostream> not <iostream.h>. |
|
217 |
4051
|
218 * pager.h: Include lo-sstream.h and use macros instead of using |
|
219 strstreambuf class directly. |
|
220 |
|
221 * load-save.cc (read_mat_ascii_data): Handle istrstream here too. |
|
222 |
|
223 * procstream.h (procstream::procstream): Also accept std::string arg. |
|
224 (iprocstream::iprocstream, iprocstream::open): Likewise. |
|
225 (oprocstream::oprocstream, oprocstream::open): Likewise. |
|
226 (procstreambase::procstreambase, procstreambase::open): Likewise. |
|
227 |
|
228 * pt-plot.cc (gnuplot_terminal_type): Now std::string&, not char*. |
|
229 (send_to_plot_stream): Likewise, for cmd arg. |
|
230 |
|
231 * pt-plot.h, pt-plot.cc: Include lo-sstream.h and use macros |
|
232 instead of using strstream classes directly. |
|
233 * oct-strstrm.h: Likewise. |
|
234 * error.h, error.cc: Likewise. |
|
235 * oct-stream.h, oct-stream.cc: Likewise. |
|
236 * lex.l: Likewise. |
|
237 * toplev.cc: Likewise. |
|
238 * utils.cc: Likewise. |
|
239 * pt.cc: Likewise. |
|
240 * pr-output.cc: Likewise. |
|
241 * ov-list.cc: Likewise. |
|
242 * ov-cs-list.cc: Likewise. |
|
243 * ov-cell.cc: Likewise. |
|
244 * load-save.cc: Likewise. |
|
245 * help.cc: Likewise. |
|
246 * dirfns.cc: Likewise. |
|
247 |
4048
|
248 2002-08-15 Paul Kienzle <pkienzle@jazz.ncnr.nist.gov> |
|
249 |
|
250 * input.cc (octave_read): Do a better job of buffering. |
|
251 |
4044
|
252 2002-08-15 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
253 |
4045
|
254 * Makefile.in (DLD_DEF_FILES): New macro. |
|
255 (DEF_5): Delete. |
|
256 (DEF_4): Now only includes $(SOURCES). |
|
257 (DEF_FILES): Append $(DLD_DEF_FILES) here. |
|
258 (stamp-oct-links): Pass $(DLD_DEF_FILES) to mk-oct-links instead |
|
259 of a list of source files. |
|
260 * mk-oct-links: Work on .df files instead of .cc files. |
|
261 |
4044
|
262 * parse.y (case_list): Allow it to be empty. |
|
263 |
|
264 * ov.cc, ov.h (octave_value::int_vector_value): New function. |
|
265 |
4038
|
266 2002-08-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
267 |
|
268 * Makefile.in (OCTAVE_LIBS): Only include $(LIBKPATHSEA) if not |
|
269 using shared libraries. |
|
270 |
|
271 * ov.cc (octave_value::octave_value (const octave_value_list&, bool)): |
|
272 Don't forget to assign rep. |
|
273 |
4036
|
274 2002-08-12 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
275 |
4037
|
276 * lex.l: Warn for various Matlab-incompatibilities. |
|
277 No longer accept <> for NOTEQ. |
|
278 (gripe_matlab_incompatible): New function. |
|
279 (maybe_gripe_matlab_incompatible_comment): Likewise. |
|
280 (gripe_matlab_incompatible_continuation): Likewise. |
|
281 (gripe_matlab_incompatible_operator): Likewise. |
|
282 (warn_matlab_incompatible): New function. |
|
283 (Vwarn_matlab_incompatible): New static variable. |
|
284 (symbols_of_lex): Add a DEFVAR for it. |
|
285 |
|
286 |
4036
|
287 * file-io.cc (fopen_mode_to_ios_mode): Default value is std::ios::in. |
|
288 Return std::ios::openmode instead of int. |
|
289 |
4035
|
290 2002-08-10 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
291 |
|
292 * DLD-FUNCTIONS/dasrt.cc (DASRT_ABORT1, DASRT_ABORT2): |
|
293 "##" pastes tokens, not strings. |
|
294 |
|
295 * DLD-FUNCTIONS/odessa.cc: Add std:: qualifiers as needed. |
|
296 |
4025
|
297 2002-08-09 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
298 |
4028
|
299 * variables.cc (Fisglobal): Rename from Fis_global. |
|
300 * file-io.cc (Fisstream): Rename from Fis_stream. |
|
301 * data.cc (Fisbool): Rename from Fis_bool. |
|
302 (Fiscomplex): Rename from Fis_complex. |
|
303 (Fislist): Rename from Fis_list. |
|
304 (Fismatrix): Rename from Fis_matrix. |
|
305 (Fisstruct): Rename from Fis_struct. |
|
306 |
4025
|
307 * parse.y (switch_case): Make list of command optional. |
|
308 |
|
309 2002-08-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
310 |
|
311 * pr-output.cc (pr_max_internal): Use octave_is_NaN_or_NA instead |
|
312 of xisnan. |
|
313 (pr_min_internal): Likewise. |
|
314 (output_max_field_width): Likewise. |
|
315 (output_precision): Likewise. |
|
316 (pr_any_float): Handle NA. |
|
317 * mappers.cc (Fisna, F_is_nan_or_na): New functions. |
|
318 * data.cc (symbols_of_data): New constant, NA. |
|
319 |
4023
|
320 2002-08-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
321 |
|
322 * pt-binop.h (tree_binary_expression::is_binary_expression): |
|
323 New function, return true. |
|
324 (tree_boolean_expression::is_boolean_expression): New function, |
|
325 return true. |
|
326 * pt-exp.h (tree_expression::is_binary_expression): New function. |
|
327 (tree_expression::is_boolean_expression): Likewise. |
|
328 * parse.y (EXPR_OR_OR): Now lower precedence than EXPR_AND_AND. |
|
329 (EXPR_OR): Now lower precedence than EXPR_AND. |
|
330 (make_boolean_op): Maybe warn about change in precedence. |
|
331 (make_binary_op): Likewise. |
|
332 (Vwarn_precedence_change): New static variable. |
|
333 (warn_precedence_change): New function. |
|
334 (Vwarn_precedence_change): New DEFVAR. |
|
335 |
4021
|
336 2002-08-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
337 |
|
338 * data.cc (ANY_ALL): Improve arg checks. |
|
339 |
4018
|
340 2002-08-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
341 |
|
342 * ov.h (octave_value::assign_op): New enum values, op_pow_eq and |
|
343 op_el_pow_eq. |
|
344 * ov.cc (octave_value::assign_op_as_string): Handle them here. |
|
345 (ocatave_value::op_eq_to_binary_op): And here. |
|
346 * parse.y (POW_EQ, EPOW_EQ): New tokens. |
|
347 (assign_expr): Handle them here too. |
|
348 (make_assign_op): And here. |
|
349 |
|
350 * lex.l: Recognize {POW}= and {EPOW}=. |
|
351 |
4015
|
352 2002-08-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
353 |
4017
|
354 * ov-base-scalar.h (octave_base_scalar::all): New int arg. |
|
355 (octave_base_scalar::any): Likewise. |
|
356 * ov-range.h (octave_range::all): Likewise. |
|
357 (octave_range::any): Likewise. |
|
358 |
4016
|
359 * Makefile.in (doc-files): Use mv, not move-if-change here. |
|
360 |
|
361 * variables.cc (symbol_exist): New function. |
|
362 (Fexist): Use it. Handle optional type arg. Make return codes |
|
363 more compatible with Matlab. |
|
364 |
4015
|
365 * data.cc (ANY_ALL): New macro. |
|
366 (Fany, Fall): Replace guts with ANY_ALL. |
|
367 |
4011
|
368 2002-08-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
369 |
4015
|
370 * data.cc (Fall, Fany): Handle optional DIM argument. |
|
371 |
|
372 * ov.h (octave_value::any): New arg, dim. |
|
373 (octave_value::all): Likewise. |
|
374 * ov-base.h (octave_base_value::any): Likewise. |
|
375 (octave_base_value::all): Likewise. |
|
376 * ov-base-mat.h (octave_base_matrix::any): Likewise. |
|
377 (octave_base_matrix::all): Likewise. |
|
378 |
4014
|
379 * Makefile.in: Use $@-t instead of $@.t. |
|
380 (doc-files): Use move-if-change when creating doc-files. |
|
381 |
|
382 * error.cc (warning): Don't print warning backtrace at top level. |
|
383 |
4011
|
384 * ov-cell.cc (octave_cell::print_raw): Print empty dimensions too. |
|
385 (octave_cell::print_name_tag): Don't print new line if cell is empty. |
|
386 |
|
387 * octave.cc (intern_argv): Don't install __argv__. |
|
388 |
|
389 * defun-int.h (UNDERSCORIFY): Delete. |
|
390 (DEFCONST_INTERNAL): Don't install double underscore versions of |
|
391 constants since they aren't really needed. |
|
392 (DEFCONSTX_INTERNAL): Likewise. |
|
393 |
4009
|
394 2002-07-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
395 |
|
396 * symtab.cc (symbol_table::clear (void)): Clear all records. |
|
397 (symbol_table::clear (const std::string&)): Delete second arg. |
|
398 Clear any symbol that matches, regardless of type. |
|
399 |
|
400 * symtab.h (symbol_table::variable_name_list): New function. |
|
401 (symbol_table::global_variable_name_list): Likewise. |
|
402 (symbol_table::user_function_name_list): Likewise. |
|
403 |
|
404 * symtab.h, symtab.cc (symbol_table::clear_variables): New function. |
|
405 (symbol_table::clear_functions): Likewise. |
|
406 (symbol_table::clear_globals): Likewise. |
|
407 (symbol_table::clear_variable): New function. |
|
408 (symbol_table::clear_function): Likewise. |
|
409 (symbol_table::clear_global): Likewise. |
|
410 (symbol_table::clear_variable_pattern): New function. |
|
411 (symbol_table::clear_function_pattern): Likewise. |
|
412 (symbol_table::clear_global_pattern): Likewise. |
|
413 |
|
414 * variables.cc (name_matches_any_pattern): Rename from |
|
415 var_matches_any_pattern. |
|
416 (is_local_variable): New static inline function. |
|
417 (maybe_warn_exclusive): Likewise. |
|
418 (do_clear_all): Likewise. |
|
419 (do_clear_functions): Likewise. |
|
420 (do_clear_globals): Likewise. |
|
421 (do_clear_variables): Likewise. |
|
422 (do_clear_function): Likewise. |
|
423 (do_clear_global): Likewise. |
|
424 (do_clear_variable): Likewise. |
|
425 (do_clear_symbol): Likewise. |
|
426 (do_clear_function_pattern): Likewise. |
|
427 (do_clear_global_pattern): Likewise. |
|
428 (do_clear_variable_pattern): Likewise. |
|
429 (do_clear_symbol_pattern): Likewise. |
|
430 (do_clear_functions): Likewise. |
|
431 (do_clear_functions): Likewise. |
|
432 (do_clear_globals): Likewise. |
|
433 (do_clear_variables): Likewise. |
|
434 (do_clear_symbols): Likewise. |
|
435 (do_matlab_compatible_clear): Likewise. |
|
436 (CLEAR_OPTION_ERROR): New macro. |
|
437 (Fclear): Rewrite for Matlab compatibility and to cope with new |
|
438 symbol table semantics. |
|
439 |
|
440 2002-07-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
441 |
|
442 * symtab.cc (symbol_table::clear): Simply clear everything. |
|
443 (symbol_table::clear_functions, symbol_table::clear_globals, |
|
444 symbol_table::clear_all): New functions. |
|
445 |
|
446 * symtab.h (symbol_record::symbol_def::next_elem): Delete. |
|
447 (symbol_record::symbol_def::symbol_def): Delete intializer. |
|
448 |
|
449 * symtab.h, symtab.cc (symbol_record::push_def): Delete. |
|
450 (symbol_record::remove_top_def): Delete. |
|
451 (symbol_record::replace_all_defs): Delete. |
|
452 (symbol_record::hides_fcn): Delete. |
|
453 (symbol_record::hides_builtin): Delete. |
|
454 |
|
455 * symtab.h (symbol_table::~symbol_table): Call clear before |
|
456 deleting the table. |
|
457 |
|
458 * variables.cc (initialize_symbol_tables): Create fbi_sym_tab too. |
|
459 (Fexist): Look in fbi_sym_tab, not global_sym_tab. |
|
460 |
|
461 * parse.y (function_symtab): Rename from global_symtab. |
|
462 Set curr_sym_tab to fbi_sym_tab, not global_sym_tab. |
|
463 Change all uses of global_symtab to be function_symtab instead. |
|
464 (frob_function): Rename and look for function name in fbi_sym_tab, |
|
465 not global_sym_tab. |
|
466 (parse_fcn_file): Clear function name from fbi_sym_tab, not |
|
467 global_sym_tab. |
|
468 |
|
469 * load-save.cc (save_vars): Look for built-in vars in fbi_sym_tab. |
|
470 * symtab.cc (symbol_record::link_to_builtin_variable): Likewise. |
|
471 * variables.cc (is_builtin_variable): Likewise. |
|
472 (bind_ans): Likewise. |
|
473 (bind_builtin_constant): Likewise. |
|
474 (bind_builtin_variable): Likewise. |
|
475 (builtin_string_variable): Likewise. |
|
476 (builtin_real_scalar_variable): Likewise. |
|
477 (builtin_any_variable): Likewise. |
|
478 (is_text_function_name): Likewise, for functions. |
|
479 (force_link_to_function): Likewise. |
|
480 (is_builtin_function_name): Likewise. |
|
481 (is_mapper_function_name): Likewise. |
|
482 (is_valid_function): Likewise. |
|
483 (Fclear): Likewise. |
|
484 (F__print_symtab_info__): Likewise. |
|
485 * defun.cc (print_usage): Likewise. |
|
486 (install_builtin_mapper): Likewise. |
|
487 (install_builtin_function): Likewise. |
|
488 (install_dld_function): Likewise. |
|
489 (Falias): Likewise. |
|
490 * dynamic-ld.cc (clear_function): Likewise. |
|
491 * variables.cc (do_who): Likewise, for built-ins and functions. |
|
492 (link_to_builtin_or_function): Likewise. |
|
493 * help.cc (LIST_SYMBOLS): Likewise. |
|
494 (make_name_list): Handle fbi_sym_tab too. |
|
495 |
|
496 * variables.cc (fbi_sym_tab): New symbol table. |
|
497 * variables.h (fbi_sym_tab): Provide decl. |
|
498 |
|
499 2002-07-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
500 |
|
501 * symtab.h (symbol_record::alias): Delete unused arg force. |
|
502 Change all callers. |
|
503 |
|
504 * variables.cc (link_to_global_variable): Give local variable |
|
505 global value. |
|
506 |
|
507 * pt-id.cc (tree_identifier::link_to_global): Warn about global |
|
508 variables that have been defined before being declared global. |
|
509 for a global variable to be used before it is declared global. |
|
510 * pt-decl.cc (tree_global_command::do_init): Handle possible error |
|
511 from tree_identifier::link_to_global. |
|
512 |
4005
|
513 2002-07-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
514 |
|
515 * ov.cc (silent_functions, Vsilent_functions): Move here. |
|
516 (octave_value::print_with_name): Don't print anything if we are |
|
517 evaluating a function and Vsilent_functions is true. |
|
518 |
|
519 * pt-stmt.cc: From here. |
|
520 (symbols_of_pt_stmt): Delete. |
|
521 (tree_statement_list::eval): Don't bother with Vsilent_functions here. |
|
522 |
3998
|
523 2002-07-24 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
524 |
|
525 * Makefile.in (OPT_HANDLERS): New targets. |
4002
|
526 (doc-files): New target. |
|
527 (gendoc.cc): Depend on doc-files, not $(DOC_FILES). |
3998
|
528 |
|
529 * DLD-FUNCTIONS/daspk.cc, DLD-FUNCTIONS/dasrt.cc, |
|
530 DLD-FUNCTIONS/dassl.cc, DLD-FUNCTIONS/fsolve.cc, |
|
531 DLD-FUNCTIONS/lsode.cc, DLD-FUNCTIONS/odessa.cc |
|
532 DLD-FUNCTIONS/quad.cc: Replace option handling code with include |
|
533 directive. |
|
534 |
|
535 2002-07-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
536 |
|
537 * pt-loop.cc (tree_simple_for_command::eval): Once we know the RHS |
|
538 is a matrix type check for real_type, not real_matrix. |
|
539 |
|
540 2002-07-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
541 |
|
542 * DLD-FUNCTIONS/quad.cc (quad): Cope with changes to Quad constructors. |
|
543 |
3997
|
544 2002-07-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
545 |
|
546 * DLD-FUNCTIONS/daspk.cc (Fdaspk): Also return istate and error |
|
547 message. Only generate error if user is not at least requesting |
|
548 the istate output. |
|
549 * DLD-FUNCTIONS/dasrt.cc (Fdasrt): Likewise. |
|
550 * DLD-FUNCTIONS/dassl.cc (Fdassl): Likewise. |
|
551 * DLD-FUNCTIONS/lsode.cc (Fodessa): Likewise. |
|
552 |
3990
|
553 2002-07-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
554 |
3992
|
555 * DLD-FUNCTIONS/dasrt.cc (Fdasrt): No need to find ng here. |
3993
|
556 (dasrt_user_j): New function. |
|
557 (Fdasrt): Handle Jacobian function. |
3992
|
558 |
3991
|
559 * DLD-FUNCTIONS/dassl.cc (dassl_user_jacobian): New function. |
|
560 (Fdassl): Handle Jacobian function. |
|
561 |
3990
|
562 * DLD-FUNCTIONS/dasrt.cc: New file. |
|
563 * Makefile.in (DLD_XSRC): Add it to the list. |
|
564 |
3988
|
565 2002-07-12 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
566 |
|
567 * lex.l (@): Handle new token. |
|
568 * parse.y (constant): Accept function handle syntax. |
|
569 (make_constant): Create function handles here. |
|
570 |
3986
|
571 2002-07-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
572 |
|
573 * defun.cc (check_version): Improve error message. |
|
574 * error.cc (warning): Only print backtrace once per warning series. |
|
575 Print backtrace before warning messages. |
|
576 |
3984
|
577 2002-07-10 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
578 |
3985
|
579 * lex.l (maybe_unput_comma): Also handle '{' as an indexing op. |
|
580 |
3984
|
581 * DLD-FUNCTIONS/odessa.cc: New file. |
|
582 * Makefile.in (DLD_XSRC): Add it to the list. |
|
583 |
3977
|
584 2002-07-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
585 |
|
586 * pt-assign.cc (tree_multi_assignment::rvalue): Call |
|
587 lhs->nargout_count, not lhs->length. |
|
588 |
|
589 * pt-arg-list.cc (tree_argument_list::convert_to_const_vector): |
|
590 Handle cs-list objects here. |
|
591 (tree_argument_list::nargout_count): New function. |
|
592 * pt-arg-list.h: Provide decl. |
|
593 |
|
594 * ov-cs-list.h, ov-cs-list.cc: New files. |
|
595 * Makefile.in: Add them to the appropriate lists. |
|
596 |
|
597 * ov.cc: Include ov-cs-list.h. |
|
598 New arg, is_cs_list for constructor taking octave_value_list arg. |
|
599 (install_types): Register ov_cs_list. |
|
600 * ov.h (octave_value::is_cs_list): New function. |
|
601 * ov-base.h (octave_base_value::is_cs_list): Likewise. |
|
602 * ov-cell.cc (octave_cell::subsref): Return cs-list for "{" indexing. |
|
603 |
3974
|
604 2002-07-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
605 |
3976
|
606 * pt-mat.cc (Vempty_list_elements_ok): Default value is now 1. |
|
607 * octave.cc (maximum_braindamage): No longer need to set value here. |
|
608 |
3975
|
609 * ov-usr-fcn.cc (Fva_arg, Fva_start, Fvr_val): Warn that these |
|
610 functions are deprecated. |
3974
|
611 * lex.l (EL): Warn that `...' is deprecated. |
|
612 * ov-usr-fcn.cc (octave_user_function::varargout_to_vr_val, |
|
613 octave_user_function::has_varargout): New functions. |
|
614 (Fvr_val): Ensure varargout is not defined. |
|
615 (octave_user_function::do_multi_index_op): Copy values from |
|
616 varargout here. |
|
617 |
3972
|
618 2002-07-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
619 |
3974
|
620 * ov-usr-fcn.h (octave_user_function::varargin_sr): New data member. |
|
621 * ov-usr-fcn.cc (octave_user_function::octave_user_function): |
|
622 Initialize it. |
|
623 (bind_automatic_vars): Handle varargin. Change all callers. |
|
624 |
|
625 * octave.gperf: Handle varargin and varargout as keywords. |
|
626 * lex.l (is_keyword): Likewise. |
|
627 (IDENT): Move all actions into handle_identifier. |
|
628 (handle_identifier): Now takes no args. |
|
629 |
3973
|
630 * lex.l (EL): Return VARARGIN or VARARGOUT, not ELLIPSIS. |
|
631 * parse.y (param_list): Use VARARGIN instead of ELLIPSIS. |
|
632 (return_list): Use VARARGOUT instead of ELLIPSIS. |
|
633 |
3972
|
634 * data.cc (make_diag const octave_value&, const octave_value&): |
|
635 Allow first arg to be 1x0 or 0x1. |
|
636 |
3971
|
637 2002-07-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
638 |
|
639 * defaults.cc (loadpath): Comment out previous change. |
|
640 |
|
641 * DLD-FUNCTIONS/fsolve.cc (Ffsolve): Return message too. Only |
|
642 generate error if user is not at least requesting the info output. |
|
643 |
|
644 * DLD-FUNCTIONS/lsode.cc (Flsode): Fix typos in setting return value. |
|
645 |
3968
|
646 2002-07-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
647 |
3969
|
648 * oct-stream.cc (printf_value_cache::double_value): If the current |
|
649 element is empty and there are no more elements in the value list, |
|
650 set curr_state to conversion_error. |
|
651 |
3968
|
652 * input.cc (initialize_command_input): Include (, ), {, and } as |
|
653 word break characters. |
|
654 |
|
655 * variables.cc (looks_like_struct): Don't evaluate text if it is a |
3969
|
656 function. From Ben Sapp <bsapp@lanl.gov>. |
3968
|
657 |
|
658 * symtab.h (symbol_record::is_function): Also return true if |
|
659 symbol is a text function or a mapper function. |
|
660 |
3965
|
661 2002-06-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
662 |
3967
|
663 * defaults.cc (loadpath): Warn if loadpath doesn't contain |
|
664 leading, trailing, or doubled colon. |
|
665 |
3965
|
666 * pt-decl.cc (tree_static_command::eval, tree_global_command::eval): |
|
667 Call error for any non-zero value of error_state. |
|
668 * pt-select.cc (tree_if_command::eval): Likewise. |
|
669 * pt-loop.cc (tree_while_command::eval_error): Don't check error_state. |
|
670 (tree_do_until_command::eval_error): Likewise. |
|
671 (tree_simple_for_command::eval_error): Likewise. |
|
672 (tree_complex_for_command::eval_error): Likewise. |
|
673 * pt-assign.cc (tree_multi_assignment::eval_error): Likewise. |
|
674 (tree_simple_assignment::eval_error): Likewise. |
|
675 * pt-idx.cc (tree_index_expression::eval_error): Likewise. |
|
676 * pt-colon.cc (tree_colon_expression::eval_error): Likewise. |
|
677 (tree_colon_expression::rvalue): Delete rendundant error_state check. |
|
678 |
3962
|
679 2002-06-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
680 |
|
681 * ov-mapper.cc (MAPPER_LOOP, MAPPER_LOOP_1, MAPPER_LOOP_2): New macros. |
|
682 (octave_mapper::apply): Use them to inline the mapper loops. |
|
683 |
|
684 * pt-unop.cc (tree_prefix_expression::rvalue): Ensure that the |
|
685 operand is defined for op_incr and op_decr. |
|
686 (tree_postfix_expression::rvalue): Likewise. |
|
687 From Ben Sapp <bsapp@lanl.gov>. |
|
688 |
|
689 2002-06-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
690 |
|
691 * ov-mapper.cc (octave_mapper::apply): Exit loops on error. |
|
692 |
|
693 2002-06-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
694 |
|
695 * ov-struct.cc (octave_struct::print_raw): Print field names with |
|
696 data types if Vstruct_levels_to_print is 0. |
|
697 (octave_struct::print_name_tag): Don't emit newline if |
|
698 Vstruct_levels_to_print is negative. |
|
699 * ov.cc (struct_levels_to_print): Allow negative values too. |
|
700 |
3956
|
701 2002-05-24 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
702 |
3959
|
703 * DLD-FUNCTIONS/lsode.cc (Flsode): Also return istate and error |
|
704 message. Only generate error if user is not at least requesting |
|
705 the istate output. |
|
706 |
3956
|
707 * load-save.cc (hdf5_import_multidim, hdf5_check_attr, |
|
708 hdf5_callback_data, hdf5_read_next_data, read_hdf5_data, |
|
709 add_hdf5_data): Use 0, not NULL in calls to HDF routines. |
|
710 |
|
711 * oct-procbuf.cc (octave_procbuf::open): Use NULL, not 0 as last |
|
712 arg in call to execl.xo |
|
713 |
|
714 * debug.cc (get_user_function): Initialise dbg_fcn to 0, not NULL. |
|
715 |
3952
|
716 2002-05-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
717 |
|
718 * DLD-FUNCTIONS/lsode.cc (LSODE_options::da_set_opt_mf, |
|
719 LSODE_options::da_get_opt_mf): New typedefs. |
|
720 (LSODE_OPTIONS::da_set_fcn, LSODE_OPTIONS::da_get_fcn): New fields. |
|
721 (lsode_option_table): Fill them in. |
|
722 (set_lsode_option (const Array<double>&)): New function. |
|
723 (print_lsode_option_list): Handle vector options. |
|
724 (show_lsode_option_list): Likewise. |
|
725 (Flsode_options): Likewise. |
|
726 |
3955
|
727 * DLD-FUNCTIONS/lsode.cc (LSODE_options::s_set_opt_mf, |
|
728 LSODE_options::s_get_opt_mf): New typedefs. |
|
729 (LSODE_OPTIONS::s_set_fcn, LSODE_OPTIONS::s_get_fcn): New fields. |
|
730 (lsode_option_table): Fill them in. |
|
731 (set_lsode_option (const std::string&)): New function. |
|
732 (print_lsode_option_list): Handle string options. |
|
733 (show_lsode_option_list): Likewise. |
|
734 (Flsode_options): Likewise. |
|
735 |
3948
|
736 2002-05-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
737 |
3951
|
738 * c-file-ptr-stream.h (c_file_ptr_buf::fclose): New function. |
|
739 (c_file_ptr_buf::c_file_ptr_buf): Use it as default argument |
|
740 instead of extern "C" fclose function. |
|
741 (i_c_file_ptr_stream::i_c_file_ptr_stream): Likewise. |
|
742 (o_c_file_ptr_stream::o_c_file_ptr_stream): Likewise. |
|
743 * oct-stdstrm.h (octave_istdiostream::octave_istdiostream): Likewise. |
|
744 (octave_istdiostream::create): Likewise. |
|
745 * oct-stdstrm.h (octave_ostdiostream::octave_ostdiostream): Likewise. |
|
746 (octave_ostdiostream::create): Likewise. |
|
747 |
|
748 * oct-prcstrm.cc (cxx_pclose): New static function. |
|
749 (octave_iprocstream::octave_iprocstream): Pass it to |
|
750 octave_istdiostream constructor instead of extern "C" pclose function. |
|
751 (octave_oprocstream::octave_oprocstream): Pass it to |
|
752 octave_ostdiostream constructor instead of extern "C" pclose function. |
|
753 |
3948
|
754 * debug.cc (Fdbtype): Use C++ strings, not C strings. |
|
755 |
3946
|
756 2002-05-22 Mumit Khan <khan@nanotech.wisc.edu> |
|
757 |
|
758 * debug.cc: Include cstdlib instead of stdlib.h. Include cstring. |
|
759 (dbtype): Use strchr instead of index. |
|
760 * TEMPLATE-INST/Array-tc.cc (Array<octave_value>::resize_fill_value): |
|
761 Fix template specialization syntax. |
|
762 |
3944
|
763 2002-05-17 Mumit Khan <khan@nanotech.wisc.edu> |
|
764 |
|
765 * c-file-ptr-stream.h (OCTAVE_STD_FILEBUF): New macro to handle |
|
766 various forms of extensions to std::filebuf. |
|
767 (c_file_ptr_buf::c_file_ptr_buf): Use. |
|
768 * pt-idx.cc (tree_index_expression::tree_index_expression): Remove |
|
769 default arguments are from definition. |
|
770 * symtab.cc (SYMBOL_DEF::print_info): Add std::. |
|
771 (symbol_record::print_info): Likewise. |
|
772 (symbol_table::print_info): Likewise. |
|
773 |
3936
|
774 2002-05-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
775 |
3943
|
776 * oct-map.cc (Octave_map::assign): Resize RHS if it is shorter |
|
777 than existing struct array. |
|
778 |
3940
|
779 * ov-cell.cc (octave_cell::subsasgn): If an error has occurred, |
|
780 skip final assignment step. |
|
781 * ov-list.cc (octave_list::subsasgn): Likewise. |
|
782 * oct-lvalue.cc (octave_lvalue::assign): Add parens to clarify intent. |
|
783 (octave_lvalue::do_unary_op): Likewise. |
|
784 |
3939
|
785 * parse.y (function_end): Also accept end of input as end of |
|
786 function if input is coming from an eval string. |
|
787 |
3936
|
788 * pr-output.cc (pr_any_float): Don't convert -0 to 0. |
|
789 |
3934
|
790 2002-05-15 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
791 |
3935
|
792 * input.cc (generate_completion): If it looks like we are |
|
793 completing a struct, set completion append char to '\0'. |
|
794 |
|
795 * variables.cc (generate_struct_completions): Temporarily set |
|
796 warnings off here. |
|
797 |
3934
|
798 * error.cc (warning): Don't do anything if Vdebug_option == "off". |
|
799 Only print backtrace if Vdebug_option == "backtrace". |
|
800 (handle_message): Now returns a string containing the text of the |
|
801 formatted message. Change all callers. |
|
802 (Fwarning): Now a text-style function. Handle Matlab-compatible |
|
803 warning options. |
3935
|
804 (Flasterr, Flastwarn, set_warning_option): New functions. |
|
805 (Vlast_error_message, Vlast_warning_message, Vwarning_frequency, |
|
806 Vwarning_option): New static variables. |
3934
|
807 (vwarning): Set Vlast_warning_message here too. |
3935
|
808 (verror): Set Vlast_error_message here too. |
3934
|
809 |
3933
|
810 2002-05-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
811 |
|
812 * ov.h (octave_value::get_count): Now const. |
|
813 |
|
814 * ov.h, ov.cc (octave_value::do_non_const_unary_op, |
|
815 octave_value::assign): Idx is now a list of octave_value_list |
|
816 objects. |
|
817 |
|
818 * ov-base.cc, ov-base.h (octave_base_value::do_struct_elt_index_op, |
|
819 octave_base_value::struct_elt_ref): Delete. |
|
820 * ov-struct.cc, ov-struct.h (octave_sruct::do_struct_elt_index_op, |
|
821 octave_struct::struct_elt_ref): Delete. |
|
822 * ov.cc, ov.h (octave_value::do_struct_elt_index_op, |
|
823 octave_value::struct_elt_ref, octave_value::assign_struct_elt, |
|
824 octave_value::convert_and_assign, octave_value::try_assignment, |
|
825 octave_value::try_assignment_with_conversion, |
|
826 octave_value::simple_assign): Delete. |
|
827 |
|
828 * parse.y (make_index_expression): Type is now a single |
|
829 character. Change all callers. If expr is already an index |
|
830 expression, append index to it. |
|
831 (make_indirect_ref): Likewise. |
|
832 |
|
833 * pt-pr-code.cc (octave_print_internal (std::ostream&, const |
|
834 Cell&, bool, int)): Now just a dummy function, panic if called. |
|
835 |
|
836 * pt-idx.cc (tree_index_expression::make_arg_struct): New function. |
|
837 (tree_index_expression::type): Delete enum, rename from itype, now |
|
838 a string. |
|
839 (tree_index_expression::arg_nm): Now a list of string_vector objects. |
|
840 (tree_index_expression::idx): Now a list of tree_argument_list* |
|
841 objects. |
|
842 (tree_index_expression::is_index_expression): Always return true. |
|
843 (tree_index_expression::apend, make_value_list, make_subs_cell): |
|
844 New functions. |
|
845 |
|
846 * pt-pr-code.cc (visit_index_expression): Handle new definition of |
|
847 tree_index_expression object. |
|
848 * pt-check.cc (visit_index_expression): Likewise. |
|
849 * pt-bp.cc (visit_index_expression): Likewise. |
|
850 |
|
851 * ov-usr-fcn.h (octave_user_function::restore_args_passed): |
|
852 Clear args_passed even if nothing was saved. |
|
853 |
|
854 * ov-base.cc (octave_base_value::subsasgn, |
|
855 octave_base_value::map_keys, octave_base_value::print_info): |
|
856 New functions. |
|
857 |
|
858 * ov.h, ov.cc (octave_value::map_keys, octave_value::print_info, |
|
859 octave_value::subsref, octave_value::subsasgn, |
|
860 octave_value::numeric_assign, octave_value::next_subsref): |
|
861 New functions. |
|
862 (octave_value::empty_conv): New static function. |
|
863 (octave_value (octave_value *, int)): New arg, count. |
|
864 |
|
865 * ov-base-mat.cc (octave_base_matrix<MT>::subsref, |
|
866 octave_base_matrix<MT>::subsasgn): New functions. |
|
867 * ov-base-mat.h: Provide decls. |
|
868 |
|
869 * ov-builtin.cc (octave_builtin::subsref): New function. |
|
870 * ov-builtin.h: Provide decl. |
|
871 |
|
872 * ov-range.cc (octave_range::subsref): New function. |
|
873 * ov-range.h: Provide decl. |
|
874 |
|
875 * ov-cell.cc (octave_cell::subsref, octave_cell::subsasgn, |
|
876 octave_cell::list_value, octave_cell::print, |
|
877 octave_cell::print_raw, octave_cell::print_name_tag): New functions. |
|
878 * ov-cell.h: Provide decls. |
|
879 |
|
880 * ov-struct.cc (octave_struct::dotref, octave_struct::subsref, |
|
881 octave_struct::subsasgn, gripe_invalid_index, |
|
882 gripe_invalid_index_for_assignment, grip_invalid_index_type, |
|
883 gripe_failed_assignment): New functions. |
|
884 (octave_struct::numeric_conv): New static function. |
|
885 * ov-struct.h: Provide decls. |
|
886 (octave_struct::is_constant): Return true. |
|
887 (octave_struct::map_keys): New function. |
|
888 |
|
889 * ov-list.cc (octave_list::subsref, octave_list::subsasgn): |
|
890 New functions. |
|
891 * ov-list.h: Provide decls. |
|
892 |
|
893 * ov-usr-fcn.cc (octave_user_function::subsref, |
|
894 octave_user_function::print_symtab_info): New functions. |
|
895 * ov-usr-fcn.h: Provide decl. |
|
896 |
|
897 * ov-mapper.cc (octave_mapper::subsref): New function. |
|
898 * ov-mapper.h: Provide decl. |
|
899 |
|
900 * ov-base.cc (octave_base_value::subsref, |
|
901 octave_base_value::subsasgn): New functions. |
|
902 * ov-base.h: Provide decls. |
|
903 |
|
904 * ov-base.cc (octave_base_value::do_index_op): New arg, resize_ok. |
|
905 * ov-base-mat.cc (octave_base_matrix<MT>::do_index_op): Likewise. |
|
906 * ov-base-nd-array.cc (octave_base_nd_array<AT>::do_index_op): Ditto. |
|
907 * ov-bool-mat.cc (octave_bool::do_index_op): Ditto. |
|
908 * ov-str-mat.cc (octave_char_matrix_str::do_index_op): Ditto. |
|
909 * ov-range.cc (octave_range::do_index_op): Ditto. |
|
910 * ov-list.cc (octave_list::do_index_op): Ditto. |
|
911 * ov.cc (octave_value::do_index_op): Ditto. |
|
912 |
|
913 * ov-base-mat.cc (octave_base_matrix<MT>::print_info): New function. |
|
914 |
|
915 * ov-base-mat.h (octave_base_matrix<MT>::empty_clone): New function. |
|
916 * ov-base-nd-array.h (octave_base_nd_array<AT>::empty_clone): Ditto. |
|
917 * ov-base.h (octave_base_value::empty_clone): Ditto. |
|
918 * ov-bool-mat.h (octave_bool::empty_clone): Ditto. |
|
919 * ov-ch-mat.h (octave_char_matrix::empty_clone): Likewise. |
|
920 * ov-colon.h (octave_magic_colon::empty_clone): Likewise. |
|
921 * ov-complex.h (octave_complex::empty_clone): Likewise. |
|
922 * ov-cx-mat.h (octave_complex_matrix::empty_clone): Likewise. |
|
923 * ov-fcn.cc (octave_function::empty_clone): Likewise. |
|
924 * ov-file.h (octave_file::empty_clone): Likewise. |
|
925 * ov-range.h (octave_range::empty_clone): Likewise. |
|
926 * ov-list.h (octave_list::empty_clone): Likewise. |
|
927 * ov-re-mat.h (octave_matrix::empty_clone): Likewise. |
|
928 * ov-re-nd-array.h (octave_double_nd_array::empty_clone): Likewise. |
|
929 * ov-str-mat.h (octave_char_matrix_str::empty_clone): Likewise. |
|
930 * ov-struct.h (octave_struct::empty_clone): Likewise. |
|
931 * ov-va_args.h (octave_all_va_args::empty_clone): Likewise. |
|
932 * ov.h (octave_value::empty_clone): Likewise. |
|
933 |
|
934 * ov-base-mat.h (octave_base_matrix<MT>::clone): Now const. |
|
935 * ov-base-nd-array.h (octave_base_nd_array<AT>::clone): Likewise. |
|
936 * ov-base.h (octave_base_value::clone): Likewise. |
|
937 * ov-bool-mat.h (octave_bool::clone): Likewise. |
|
938 * ov-ch-mat.h (octave_char_matrix::clone): Likewise. |
|
939 * ov-colon.h (octave_magic_colon::clone): Likewise. |
|
940 * ov-complex.h (octave_complex::clone): Likewise. |
|
941 * ov-cx-mat.h (octave_complex_matrix::clone): Likewise. |
|
942 * ov-fcn.h (octave_function::clone): Likewise. |
|
943 * ov-file.h (octave_file::clone): Likewise. |
|
944 * ov-range.h (octave_range::clone): Likewise. |
|
945 * ov-list.h (octave_list::clone): Likewise. |
|
946 * ov-re-mat.h (octave_matrix::clone): Likewise. |
|
947 * ov-re-nd-array.h (octave_double_nd_array::clone): Likewise. |
|
948 * ov-str-mat.h (octave_char_matrix_str::clone): Likewise. |
|
949 * ov-struct.h (octave_struct::clone): Likewise. |
|
950 * ov-va_args.h (octave_all_va_args::clone): Likewise. |
|
951 * ov.h (octave_value::clone): Likewise. |
|
952 |
|
953 * oct-lvalue.cc (octave_lvalue::assign, octave_lvalue::set_index, |
|
954 octave_lvalue::do_unary_op): Idx is now a list of indices. Simplify. |
|
955 * oct-lvalue.h (octave_lvalue::value): Simplify. |
|
956 (octave_lvalue::struct_elt_names): Delete data member. |
|
957 (octave_lvalue::type): Now string |
|
958 Update decls. |
|
959 |
|
960 * pt-exp.h (tree_expression::is_indirect_ref): |
|
961 Delete virtual function. |
|
962 |
|
963 * pt-plot.cc (subplot::extract_plot_data): Use subsref, instead of |
|
964 do_index_op. |
|
965 |
|
966 * pt-stmt.cc (tree_statement::eval): Don't try to avoid binding |
|
967 ans for structure references. |
|
968 |
|
969 * symtab.cc (symbol_record::symbol_def::print_info): Rename from |
|
970 symbol_record::symbol_def::dump_symbol_info. |
|
971 (symbol_record::print_info): Rename from |
|
972 symbol_record::dump_symbol_info. Now const.. |
|
973 (symbol_record::print_symbol_info_line): Now const. |
|
974 (symbol_table::print_info): Rename from print_stats. Accept |
|
975 ostream arg. Now const. Print more info. |
|
976 * symtab.h: Update decls. |
|
977 |
|
978 * toplev.cc (octave_config_info): Indexing a map now returns a |
|
979 list, but we only want to return the first element. |
|
980 |
|
981 * variables.cc (generate_struct_completions, looks_like_struct): |
|
982 Simplify using eval_string. |
|
983 (F__print_symtab_info__): Rename from F__dump_symtab_info__. |
|
984 Handle "top-level" and individual function names in addition to |
|
985 "global". |
|
986 (F__print_symbol_info__): Rename from F___dump_symbol_info__. |
|
987 |
|
988 * octave.cc (intern_argv): Built-in variable argv is now a cell array. |
|
989 |
|
990 * ov-complex.cc (valid_scalar_indices): Delete. |
|
991 * ov-scalar.cc (valid_scalar_indices): Delete. |
|
992 |
|
993 * oct-obj.cc (octave_value_list::valid_scalar_indices): New function. |
|
994 (octave_value_list::index): New arg, resize_ok. |
|
995 * oct-obj.h: Provide decls. |
|
996 |
|
997 * oct-map.cc (Octave_map::keys): Rename from make_name_list. |
|
998 Change all uses. |
|
999 (Octave_map::assign, Octave_map::index): New functions. |
|
1000 * oct-map.h: Provide decls. |
|
1001 |
|
1002 * data.cc (Fstruct_contains): Use map_value instead of |
|
1003 do_struct_elt_index_op. |
|
1004 |
|
1005 * Cell.h (Cell (const Array2<octave_value>&, int, int)): |
|
1006 New constructor. |
|
1007 (Cell::resize_fill_value): New static function. |
|
1008 |
|
1009 * input.cc (initialize_command_input): Set basic and completer |
|
1010 word break characters. |
|
1011 |
3932
|
1012 2002-05-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1013 |
3933
|
1014 * ov.h (octave_value::subsref): New function. |
|
1015 * ov-base.cc (octave_base_value::subsref): Likewise. |
|
1016 |
3932
|
1017 * ov-struct.cc (octave_struct::print_raw): Print scalar struct |
|
1018 arrays more compactly. |
|
1019 |
|
1020 * DLD-FUNCTIONS/time.cc (extract_tm): Handle new struct array def. |
|
1021 |
|
1022 * oct-map.cc (Octave_map::array_len): New data member. |
|
1023 (Octave_map::operator[], Octave_map::contsnts): Return |
|
1024 octave_value_list, not Octave_value. Change callers as necessary. |
|
1025 (Octave_map::assign): New function. |
|
1026 (Octave_map::array_length): New fucntion. |
|
1027 * oct-obj.cc (octave_value_list::assign): New function. |
|
1028 |
3930
|
1029 2002-05-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1030 |
3931
|
1031 * TEMPLATE-INST/Map-oct-obj.cc: New file. |
|
1032 * Makefile.in (TI_XSRC): Add it to the list. |
|
1033 |
|
1034 * oct-map.h (Octave_map): Make CHMap<octave_value_list> a data |
|
1035 member instead of deriving from CHMap<octave_value>, in |
|
1036 preparation for structure arrays. |
|
1037 |
3930
|
1038 * pt-indir.h, pt-indir.cc: Delete. |
|
1039 |
|
1040 * pt-all.h: Don't include pt-indir.h. |
|
1041 |
|
1042 * Makefile.in (PT_SRC): Delete pt-indir.cc from the list. |
|
1043 (PT_INCLUDES): Delete pt-indir.h from the list. |
|
1044 |
|
1045 * pt-walk.h (tree_walker::visit_indirect_ref): Delete. |
|
1046 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_indirect_ref): |
|
1047 Likewise. |
|
1048 * pt-check.h, pt-check.cc (tree_checker::visit_indirect_ref): Likewise. |
|
1049 * pt-bp.h, pt-bp.cc (tree_breakpoint::visit_indirect_ref): Likewise. |
|
1050 |
|
1051 * pt-walk.h: Delete forward decl for tree_indirect_ref. |
|
1052 * variables.h: Likewise. |
|
1053 |
|
1054 * parse.y (make_indirect_ref): Return tree_index_expression, not |
|
1055 tree_indirect_ref. |
|
1056 |
|
1057 * pt-idx.h (tree_index_expression::struct_elt_name): New function. |
|
1058 |
|
1059 * pt-idx.cc (tree_index_expression::lvalue): Handle dot case too. |
|
1060 (tree_index_expression::name): Likewise. |
|
1061 (tree_index_expression rvalue (int)): Likewise. |
|
1062 (tree_index_expression::eval_error): Likewise. |
|
1063 * pt-pr-code.cc (visit_index_expression): Likewise. |
|
1064 * pt-bp.cc (tree_breakpoint::visit_index_expression): Likewise. |
|
1065 |
|
1066 * pt-idx.h (tree_index_expression::dot): New type enum element. |
|
1067 (tree_index_expression::expr_type): New function. |
|
1068 (tree_index_expression::tree_index_expression (tree_expression*, |
|
1069 const std::string&, int, int)): New constructor. |
|
1070 (tree_index_expression::is_index_expression): Return value is now |
|
1071 conditional on itype. |
|
1072 (tree_index_expression::is_indirect_ref): New function. |
|
1073 (tree_index_expression::lvalue_ok): Also return true if itype is dot. |
|
1074 |
3928
|
1075 2002-05-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1076 |
3929
|
1077 * parse.y (ABORT_PARSE): Maybe restore symbol table context too. |
|
1078 |
|
1079 * pt-idx.h (tree_index_expression::type): New enum. |
|
1080 (tree_index_expression::etype): New data member. |
|
1081 * pt-idx.h (tree_index_expression::tree_index_expression): |
|
1082 New arg, t, to set type of index. |
|
1083 * parse.y (make_index_expression): Likewise. |
|
1084 Change all callers. |
|
1085 |
3928
|
1086 * ov-base.cc (cell_conv): New conversion function. |
|
1087 (install_base_type_conversions): Install it. |
|
1088 Install conversion for indexed assignment of octave_cells to |
|
1089 undefined values. |
|
1090 |
|
1091 * TEMPLATE-INST/Array-tc.cc: Instantiate assign functions too. |
|
1092 (Array<octave_value>::resize_fill_value (void)): |
|
1093 Provide specialization for octave_value. |
|
1094 |
|
1095 * ov-cell.cc (octave_cell::assign (const octave_value_list&, |
|
1096 const octave_value&)): New function. |
|
1097 * Cell.h (Cell::Cell (const octave_value&)): New function. |
|
1098 |
|
1099 * OPERATORS/op-cell.cc (install_list_ops): Use DEFASSIGNANYOP_FN |
|
1100 and INSTALL_ASSIGNANYOP, not DEFASSIGNOP_FN and INSTALL_ASSIGNOP. |
|
1101 |
|
1102 2002-05-03 Cai Jianming <caijianming@yahoo.co.uk> |
|
1103 |
|
1104 * OPERATORS/op-cell.cc: New file. |
|
1105 * src/Makefile.in (OP_XSRC): Include it in the list. |
|
1106 |
|
1107 * parse.y (cell): Return a cell type instead of Matrix type. |
|
1108 |
|
1109 * ov.cc (install_types): Install octave_cell type. |
|
1110 |
|
1111 * pr-output.cc (octave_print_internal): Handle Cells. |
|
1112 * pr-output.h (octave_print_internal): Provide decl. |
|
1113 |
|
1114 * ov-cell.h (octave_cell): Derive from octave_base_matrix<Cell>. |
|
1115 * ov-cell.cc (do_index_op, assign, print, print_raw, |
|
1116 print_name_tag): Delete. |
|
1117 |
|
1118 * Cell.cc (allocator, index): Delete. |
|
1119 * Cell.h (Cell): Derive from Array2<octave_value>. |
|
1120 Most functions removed since we can use those from Array2 instead. |
|
1121 |
|
1122 2002-05-02 Cai Jianming <caijianming@yahoo.co.uk> |
|
1123 |
|
1124 * ov-base-mat.cc (octave_base_matrix<MT>::assign): |
|
1125 New function. |
|
1126 * ov-base-mat.h (octave_base_matrix<MT>::assign): Provide decl. |
|
1127 * ov-bool-mat.cc (octave_bool_matrix::assign): Delete. |
|
1128 * ov-bool-mat.h (octave_bool_matrix:assign): Delete decl |
|
1129 * ov-cx-mat.cc (octave_complex_matrix::assign (const |
|
1130 octave_value_list& idx, const ComplexMatrix&)): Delete. |
|
1131 * ov-cx-mat.h (octave_complex_matrix:assign (const |
|
1132 octave_value_list& idx, const ComplexMatrix&)): Replace decl with |
|
1133 function. |
|
1134 * ov-re-mat.cc (octave_bool_matrix::assign): Delete. |
|
1135 * ov-re-mat.h (octave_bool_matrix:assign): Delete decl. |
|
1136 |
3927
|
1137 2002-05-02 Cai Jianming <caijianming@yahoo.co.uk> |
|
1138 |
|
1139 * OPERATORS/op-bm-b.cc: New file.x |
|
1140 * Makefile.in (OP_XSRC): Add it to the list. |
|
1141 |
3920
|
1142 2002-04-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1143 |
3922
|
1144 * octave.cc (print_version_and_exit): Use |
|
1145 OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_AND_WARRANTY, not |
|
1146 OCTAVE_NAME_AND_VERSION. |
|
1147 |
|
1148 * octave.cc (verbose_usage): |
|
1149 Use OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_AND_WARRANTY, not |
|
1150 OCTAVE_NAME_VERSION_AND_COPYRIGHT. |
|
1151 |
|
1152 * version.h (OCTAVE_COPYING_STATEMENT, OCTAVE_WARRANTY_STATEMENT, |
|
1153 OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_AND_WARRANTY, |
|
1154 X_OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_WARRANTY_AND_BUGS, |
|
1155 OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_WARRANTY_AND_BUGS, |
|
1156 OCTAVE_BUGS_STATEMENT): New macros. |
|
1157 (OCTAVE_STARTUP_MESSAGE): Define in terms of |
|
1158 X_OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_WARRANTY_AND_BUGS |
|
1159 to include bugs address and amplified warranty information. |
|
1160 |
3920
|
1161 * DLD-FUNCTIONS/lsode.cc (Flsode): Delete unused variable nsteps. |
|
1162 |
3917
|
1163 2002-04-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1164 |
|
1165 * help.cc (additional_help_message): Use www.octave.org, not |
|
1166 www.che.wisc.edu/octave/octave.html. |
|
1167 * octave.cc (verbose_usage): Likewise. |
|
1168 |
3912
|
1169 2002-04-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1170 |
|
1171 * DLD-FUNCTIONS/daspk.cc: New file. |
|
1172 * Makefile.in (DLD_XSRC): Add it to the list. |
|
1173 |
3910
|
1174 2002-04-25 Paul Kienzle <pkienzle@users.sf.net> |
|
1175 |
|
1176 * DLD-FUNCTIONS/kron.cc: New file. |
|
1177 * Makefile.in (DLD_SRC): Add it to the list. |
|
1178 |
3903
|
1179 2002-04-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1180 |
|
1181 * parse.y (save_symtab): New non-terminal. Save current symbol |
|
1182 table context here. |
|
1183 (function_beg): Use it. |
|
1184 (symtab_context): New file-scope variable. |
|
1185 (recover_from_parsing_function): Restore symbol table context here. |
|
1186 |
3901
|
1187 2002-04-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1188 |
|
1189 * load-save.cc (get_lines_and_columns): Handle CRLF as line |
|
1190 separator in addition to LF. |
|
1191 |
3897
|
1192 2002-04-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1193 |
|
1194 * load-save.cc (hdf5_ofstream::hdf5_ofstream): |
|
1195 Explicitly List std::ostream(0) in constructor. |
|
1196 (hdf5_ifstream::hdf5_ifstream): |
|
1197 Explicitly List std::istream(0) in constructor. |
|
1198 (hdf5_fstreambase::hdf5_fstreambase): Use std::ios::setstate, not set. |
|
1199 (hdf5_fstreambase::close): Likewise. |
|
1200 (hdf5_fstreambase::open): Likewise. |
|
1201 |
3895
|
1202 2002-04-10 Ben Sapp <bsapp@lanl.gov> |
|
1203 |
|
1204 * pt-stmt.cc (delete_breakpoint): List breakpoints if line < 0. |
|
1205 * debug.cc (get_user_function): Check symbol by name first. |
|
1206 (Fdbstop): Rename from Fdbg_set. |
|
1207 (Fdbclear): Rename from Fdbg_delete. |
|
1208 (Fdbstatus): Rename from Fdbg_list. |
|
1209 (Fdbg_where): Rename from Fdbwhere. |
|
1210 (do_dbtype, Fdbtype): New functions. |
|
1211 |
|
1212 2002-04-10 Peter Van Wieren <peter.vanwiere@avlna.com> |
|
1213 |
|
1214 * load-save.cc (save_mat5_binary_element): Save elements of 2d |
|
1215 character matrices in proper order. |
|
1216 |
3893
|
1217 2002-04-09 Paul Kienzle <pkienzle@users.sf.net> |
|
1218 |
|
1219 * utils.cc (do_string_escapes): Handle \0 too. |
|
1220 (undo_string_escape): Likewise. |
|
1221 |
3892
|
1222 2002-04-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1223 |
|
1224 * toplev.cc (octave_config_info): Define struct member EXEEXT, not EXE. |
|
1225 * Makefile.in (install-bin): Use $(EXEEXT), not $(EXE). |
|
1226 * oct-conf.h.in (OCTAVE_CONF_EXEEXT): Define and substitute |
|
1227 OCTAVE_CONF_EXEEXT, not OCTAVE_CONF_EXE. |
|
1228 |
3887
|
1229 2002-04-03 Steven G. Johnson <stevenj@alum.mit.edu> |
|
1230 |
|
1231 * DLD-FUNCTIONS/balance.cc: Use F77_FUNC instead of F77_FCN. |
|
1232 * DLD-FUNCTIONS/qz.cc: Likewise. |
|
1233 * DLD-FUNCTIONS/rand.cc: Likewise. |
|
1234 * octave.cc: Likewise. |
3910
|
1235 * toplev.cc (Foctave_config_info): Delete use of FORTRAN_MAIN_FLAG. |
3887
|
1236 * oct-conf.h.in: Delete use of OCTAVE_CONF_FORTRAN_MAIN_FLAG. |
|
1237 * syscalls.cc (mk_stat_map): |
|
1238 Use HAVE_STRUCT_STAT_ST_RDEV instead of HAVE_ST_RDEV. |
|
1239 Use HAVE_STRUCT_STAT_ST_BLKSIZE instead of HAVE_ST_BLKSIZE. |
|
1240 Use HAVE_STRUCT_STAT_ST_BLOCKS instead of HAVE_ST_BLOCKS. |
|
1241 |
3881
|
1242 2002-04-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1243 |
3883
|
1244 * lex.l, lex.h (parser_end_of_input): New global variable. |
|
1245 (reset_parser): Reset it here. |
|
1246 * parse.y (input): Set it to TRUE on EOF. |
|
1247 (parse_and_executed): Save and restore it, check it to correctly |
|
1248 break out of parse-execute loop. |
|
1249 (parse_fcn_file): Likewise. |
|
1250 (eval_string): Likewise. |
3884
|
1251 * toplev.cc (main_loop): Likewise. |
3883
|
1252 |
3881
|
1253 * parse.y (input): Call YYACCEPT for END_OF_INPUT. |
3883
|
1254 Return no-op command for bare newline. |
3881
|
1255 (parse_and_execute): Handle change in yyparse return value semantics. |
3883
|
1256 |
3881
|
1257 * toplev.cc (main_loop): Likewise. |
|
1258 |
3880
|
1259 2002-03-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1260 |
|
1261 * parse.y (parse_fcn_file): Call error if there is no input file. |
|
1262 (parse_and_execute (FILE *): Protect get_input_from_eval_string. |
|
1263 Set get_input_from_eval_string to false before calling yyparse. |
|
1264 * lex.l (reset_parser): Also skip yyrestart (stdin) if |
|
1265 reading_script_file is true. |
|
1266 |
3877
|
1267 2002-03-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1268 |
|
1269 * pt-loop.cc (evaluating_looping_command): New global. |
|
1270 (tree_while_command::eval): Protect evaluating_looping_command. |
|
1271 Set it to true while evaluating loop. |
|
1272 (tree_do_until_command::eval): Ditto. |
|
1273 (tree_simple_for_command::eval): Ditto. |
|
1274 (tree_complex_for_command::eval): Ditto. |
|
1275 * pt-loop.h (evaluating_looping_command): Provide decl. |
|
1276 * parse.y (parse_fcn_file): Protect get_input_from_eval_string. |
|
1277 Set get_input_from_eval_string to false before calling yyparse. |
|
1278 (make_break_command): Also check evaluating_looping_command. |
|
1279 (make_continue_command): Also check evaluating_looping_command. |
|
1280 (eval_string (const std::string&, bool, int&, int)): Loop over |
|
1281 yyparse to handle multi-line strings. |
|
1282 Move call to unwind_protect::run_frame to end of function. |
|
1283 Don't reset parser before calling yyparse. |
|
1284 Correctly handle return, break, and continue. |
|
1285 |
|
1286 * input.cc (input_from_eval_string_pending): New global variable. |
|
1287 (get_usr_input): Use it. |
|
1288 * input.h (input_from_eval_string_pending): Provide decl. |
|
1289 |
3876
|
1290 2002-03-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1291 |
|
1292 * ov-usr-fcn.cc (octave_user_function::do_multi_index_op): |
|
1293 Don't unwind_protect num_named_args (it doesn't change on |
|
1294 recursive calls). |
|
1295 Do re-initialize curr_va_arg_number to num_named_args after |
|
1296 unwind_protecting. |
|
1297 |
|
1298 * ov-usr-fcn.h (octave_user_function::clear_args_passed): Delete. |
|
1299 (octave_user_function::saved_args): New data member. |
|
1300 (octave_user_function::save_args_passed): New function. |
|
1301 (octave_user_function::restore_args_passed): Ditto. |
|
1302 * ov-usr-fcn.cc (clear_args_passed): Delete. |
|
1303 (restore_args_passed): New function. |
|
1304 (octave_user_function::do_multi_index_op): Correctly save and |
|
1305 restore args passed for recursive calls. |
|
1306 |
|
1307 * TEMPLATE-INST/SLStack-ovl.cc: New file. |
|
1308 * Makefile.in: Add it to the list. |
|
1309 |
3870
|
1310 2002-02-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1311 |
3871
|
1312 * ov-usr-fcn.cc (octave_user_function::do_multi_index_op): |
|
1313 Handle define_all_return_values after function is evaluated. |
|
1314 From Paul Kienzle <pkienzle@jazz.ncnr.nist.gov>. |
|
1315 |
|
1316 * ov-scalar.cc (convert_to_str): Use octave_value (std::string) |
|
1317 constructor instead of octave_value (char *) constructor so that |
|
1318 setstr (0) will work. |
|
1319 |
3870
|
1320 * pager.cc (octave_pager_buf::sync): Set pointer to beginning |
|
1321 of buffer after calling flush_currnt_contents_to_diary. |
|
1322 (octave_diary_buf::sync): Call eback only once. |
|
1323 |
3867
|
1324 2002-01-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1325 |
|
1326 * lex.l (.): Remove test for EOF since it is already handled |
|
1327 separately. |
|
1328 |
3866
|
1329 2001-12-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1330 |
|
1331 * load-save.cc (save_mat5_binary_element): |
|
1332 Extract dimensions directly from tc. |
|
1333 Handle ranges the same as real matrices. |
|
1334 |
3864
|
1335 2001-11-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1336 |
|
1337 * data.cc (DATA_REDUCTION): If no DIM arg, pass -1 to FCN. |
|
1338 |
3859
|
1339 2001-11-09 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1340 |
|
1341 * oct-conf.h.in (FFTW_LIBS, LD_CXX, LIBOCT_PATHSEARCH, |
|
1342 LIBOCT_READLINE, MKOCTFILE_LFLAGS): Substitute. |
|
1343 * toplev.cc (octave_config_info): Add them to the map. |
|
1344 |
|
1345 2001-11-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1346 |
|
1347 * DLD-FUNCTIONS/lsode.cc (Flsode): Don't bother to give OUTPUT |
|
1348 matrix a size before calling integration function. |
|
1349 |
3857
|
1350 2001-11-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1351 |
|
1352 Makefile.in (OCTAVE_LIBS): Add $(LIBOCT_READLINE) and |
|
1353 $(LIBOCT_PATHSEARCH) to the list. |
|
1354 |
3849
|
1355 2001-10-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1356 |
|
1357 * DLD-FUNCTIONS/dassl.cc (dassl_user_function): Allow user |
|
1358 supplied RES function to return IDID as second value. |
|
1359 |
3844
|
1360 2001-07-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1361 |
|
1362 * parse.y: Clear help_buf after documenting function. |
|
1363 |
3842
|
1364 2001-06-29 Mumit Khan <khan@nanotech.wisc.edu> |
|
1365 |
|
1366 * defun-int.h (DEFINE_FUN_INSTALLER_FUN{2,3}): New macros. |
|
1367 (DEFINE_FUN_INSTALLER_FUN): Use. |
|
1368 * dynamic-ld.cc ({STRINGIFY, STRINGIFY1}): New macros. |
|
1369 (octave_dynamic_loader::mangle_name): Support dynamic linking |
|
1370 for GNU v3 and Sun C++ ABI. |
|
1371 |
3841
|
1372 2001-06-26 Mumit Khan <khan@nanotech.wisc.edu> |
|
1373 |
|
1374 * c-file-ptr-stream.h (c_file_ptr_buf::c_file_ptr_buf): Add GCC3 |
|
1375 libstdc++-v3 support. |
|
1376 * load-save.cc (save_mat5_binary_element): Cast arguments to the |
|
1377 correct type. |
|
1378 (save_ascii_data): Eliminate compiler warning. |
|
1379 * toplev.cc (system): Prefix std::. |
|
1380 |
3836
|
1381 2001-05-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1382 |
|
1383 * ov-cx-mat.cc: Deleve unnecessary instantiation of assign function. |
|
1384 * ov-re-mat.cc: Likewise. |
|
1385 * ov-re-nd-array.cc: Likewise. |
|
1386 * ov-str-mat.cc: Likewise. |
|
1387 * ov-bool-mat.cc: Likewise. |
|
1388 |
|
1389 * load-save.cc (save_ascii_data): When saving string data, get raw |
|
1390 string value for matrix row since there may be embedded nuls. |
|
1391 |
|
1392 * pt-mat.cc (Vstring_fill_char): No longer static. |
|
1393 * pt-mat.h: Provide declaration. |
|
1394 |
3834
|
1395 2001-05-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1396 |
|
1397 * octave.cc (initialize_pathsearch): Save initial value of the |
|
1398 TEXMFDBS environment variable here. |
|
1399 * toplev.cc (restore_texmfdbs_envvar): New function. |
|
1400 (Fsystem): Set TEXMFDBS back to original value before running |
|
1401 subprocesses. |
|
1402 |
3827
|
1403 2001-05-02 Mumit Khan <khan@nanotech.wisc.edu> |
|
1404 |
|
1405 * Makefile.in (octave): Add $(FFTW_LIBS). |
|
1406 |
3826
|
1407 2001-04-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1408 |
|
1409 * DLD-FUNCTIONS/sort.cc (mx_sort): Check for NaNs in comparisons. |
|
1410 |
3822
|
1411 2001-04-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1412 |
|
1413 * Makefile.in (OCTAVE_LIBS): Delete $(LIBREADLINE) from the list. |
|
1414 (octave): Delete TERMLIBS from link command. |
|
1415 * oct-conf.h.in: Delete references to LIBREADLINE, TERMLIBS. |
|
1416 * toplev.cc (octave_config_info): Delete entries for LIBREADLINE, |
|
1417 TERMLIBS. |
|
1418 |
3821
|
1419 2001-04-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1420 |
|
1421 * Makefile.in (install-lib): Don't use mk-libdir-link. |
|
1422 (install-inc): Don't use mk-includedir-link. |
|
1423 |
3815
|
1424 2001-04-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1425 |
|
1426 * parse.y (fold (tree_binary_expression *)): |
|
1427 Set discard_error_messages here instead of buffer_error_messages. |
|
1428 Don't add clear_global_error_variable to the unwind_protect stack. |
|
1429 (fold (tree_unary_expression *)): Likewise. |
|
1430 (finish_colon_expression): Likewise. |
|
1431 (finish_matrix): Likewise. |
|
1432 |
|
1433 * error.cc (panic): Set discard_error_messages to false here. |
|
1434 (verror): Return immediately if discard_error_messages is true. |
|
1435 |
|
1436 * error.cc (discard_error_messages): New global variable. |
|
1437 * error.h: Provide declaration. |
|
1438 |
3813
|
1439 2001-04-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1440 |
|
1441 * lex.l: If unexpected character is EOF, report EOF error instead |
|
1442 of invalid character error. |
|
1443 |
3812
|
1444 2001-04-18 Mumit Khan <khan@nanotech.wisc.edu> |
|
1445 |
|
1446 * load-save.cc (read_mat5_binary_element): Cast arguments to the |
|
1447 correct type when adding stream positions. |
|
1448 * DLD-FUNCTIONS/det.cc (det): Explicity create a Complex value to |
|
1449 work around a Sun C++ type conversion bug. |
|
1450 |
3811
|
1451 2001-04-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1452 |
|
1453 * symtab.cc (define_builtin_const): Don't call replace_all_defs |
|
1454 here. |
|
1455 |
|
1456 * error.cc (error_message_buffer): Now static. |
|
1457 * error.h (error_message_buffer): Delete extern declaration. |
|
1458 |
3810
|
1459 2001-03-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1460 |
|
1461 * DLD-FUNCTIONS/besselj.cc (besselh): Use K arg. |
|
1462 From: Thomas Stuart <tstuart@ing.sun.ac.za>. |
|
1463 |
|
1464 * oct-stream.cc (get_size): Don't allow [Inf, N] as a size |
|
1465 specification for the read and scanf functions. |
|
1466 (get_size): SIZE is now an Array<double> instead of a Matrix object. |
|
1467 (read): Likewise. Change all callers. |
|
1468 (scanf): Likewise. Change all callers. |
|
1469 |
3808
|
1470 2001-03-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1471 |
|
1472 * DLD-FUNCTIONS/det.cc (Fdet): Only return rcond if nargout > 1. |
|
1473 * DLD-FUNCTIONS/inv.cc (Finv): Only return rcond if nargout > 1. |
|
1474 |
|
1475 2001-03-26 Paul Kienzle <pkienzle@kienzle.powernet.co.uk> |
|
1476 |
|
1477 * DLD-FUNCTIONS/det.cc (Fdet): Suppress warning, but return rcond. |
|
1478 * DLD_FUNCTIONS/inv.cc (Finv): Return rcond if requested. |
|
1479 |
3804
|
1480 2001-02-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1481 |
3805
|
1482 * pt.h (tree::break_statement): New static member. |
|
1483 (tree::break_function): Make const. |
|
1484 * pt.cc (tree::break_statement): Initialize here. |
|
1485 (tree::break_function): Make const. |
|
1486 * pb-bp.h (break_statement): Delete global varaible declaration. |
|
1487 * pt-bp.cc (break_statement): Delete global variable definition. |
|
1488 |
|
1489 * pt-bp.h (tree_breakpoint::bp_list): Rename from lst. |
|
1490 |
|
1491 * pt.h: Don't inlcude ov-usr-fcn.h. |
|
1492 Provide forward declaration of octave_user_function class. |
|
1493 |
|
1494 2001-02-28 Ben Sapp <bsapp@lanl.gov> |
|
1495 |
|
1496 * debug.cc (get_user_function): Simplify by using curr_function. |
|
1497 (Fdbg_where): New function. |
|
1498 (Fdbg_list): Now DLD_TEXT instead of DLD_FCN. |
|
1499 (Fdbg_set): Likewise. |
|
1500 (Fdbg_delete): Likewise. |
|
1501 |
|
1502 * pt-bp.h (break_statement): New global variable. |
|
1503 (MAYBE_DO_BREAKPOINT): Check for dbg_next and dbg_step. |
|
1504 Print line, column, and current statement. |
|
1505 * pt-bp.cc (break_statement): New global variable |
|
1506 (tree_breakpoint::visit_do_until_command): Return immediately if |
|
1507 we've already found the line. |
|
1508 (tree_breakpoint::visit_colon_expression): Set breakpoint info here. |
|
1509 (tree_breakpoint::visit_binary_expression): Recurse here when |
|
1510 checking for breakpoints. |
|
1511 |
|
1512 * debug.cc: Move here from DLD-FUNCTIONS/debug.cc. |
|
1513 * Makefile.in (DIST_SRC): Add it to the list. |
|
1514 (DLD_XSRC): Delete it from the list. |
|
1515 |
|
1516 * pt.h (tree::last_line, tree::break_function): New static members. |
|
1517 * pt.cc(tree::last_line, tree::break_function): Initialize them. |
|
1518 |
|
1519 * pt-cell.h (tree_cell::tree_cell): Accept line and column info. |
|
1520 * pt-mat.h (tree_matrix::tree_matrix): Likewise. |
|
1521 |
|
1522 * ov-usr-fcn.h (octave_user_function::sym_tab): Delete. |
|
1523 |
|
1524 * input.cc (get_user_input): Handle dbg_next. |
|
1525 Set tree:break_function and tree::last_line when doing dbg_step. |
|
1526 |
|
1527 2001-02-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1528 |
|
1529 * lex.l (handle_string): Save line and column information in token. |
|
1530 (is_keyword): Save line and column information for plot style and |
|
1531 axes tokens. |
|
1532 |
3804
|
1533 * toplev.cc (main_loop): Set retval to non-zero value if error |
|
1534 occurs when not interactive. |
|
1535 |
3802
|
1536 2001-02-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1537 |
|
1538 * parse.y (gobble_leading_white_space): Handle CRLF here too. |
|
1539 * lex.l (check_for_garbage_after_fcn_def): Likewise. |
|
1540 |
|
1541 * lex.l: Add numeric value of character to error message for |
|
1542 unrecognized characters. |
|
1543 |
3800
|
1544 2001-02-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1545 |
|
1546 * DLD-FUNCTIONS/minmax.cc (EMPTY_RETURN_CHECK): For empty matrix |
|
1547 args, make Octave's min and max behave like Matlab. |
|
1548 |
3799
|
1549 2001-02-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1550 |
|
1551 * OPERATORS/op-s-s.cc (el_or, el_and): Return bool value. |
|
1552 |
3798
|
1553 2001-02-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1554 |
|
1555 * pt-binop.cc (tree_boolean_expression::rvalue): |
|
1556 Don't cast result to double. |
|
1557 |
|
1558 * OPERATORS/op-b-b.cc: Allow & and | operators to return bool values. |
|
1559 |
|
1560 2001-02-09 John W. Eaton <jwe@bevo.che.wisc.edu> |
3797
|
1561 |
|
1562 * data.cc (DATA_REDUCTION): Undo previous change. |
|
1563 |
|
1564 2001-02-13 Matthew W. Roberts <matt@nephi.tamu.edu> |
|
1565 |
|
1566 * load-save.cc (Fload): Accept -4 as an alias for -v4 and -mat4-binary. |
|
1567 (Fsave): Likewise. |
|
1568 |
3796
|
1569 2001-02-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1570 |
|
1571 * lex.l (lexical_feedbac::init): |
|
1572 Initialize looking_at_matrix_or_assign_lhs too. |
|
1573 |
3795
|
1574 2001-02-09 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1575 |
|
1576 * data.cc (DATA_REDUCTION): Allow FCN(x,0) to be equivalent to FCN(x). |
|
1577 |
3779
|
1578 2001-02-06 Mumit Khan <khan@nanotech.wisc.edu> |
|
1579 |
|
1580 * oct-stream.cc (octave_scan): Partially implement and specialize |
|
1581 for char*. Delete the old template instantiations. |
|
1582 (BEGIN_S_CONVERSION): Use strings instead of ostrstreambuf. |
|
1583 (octave_base_stream::do_scanf): Pass correct parameter to |
|
1584 do_scan_conv. |
|
1585 |
3775
|
1586 2001-02-05 Mumit Khan <khan@nanotech.wisc.edu> |
|
1587 |
3776
|
1588 * pr-output.cc (set_format): Add std:: namespace qualifier as |
|
1589 needed. |
|
1590 |
3775
|
1591 * oct-stream.cc (octave_scan): Implement, and specialize for |
|
1592 char*. Delete the old template instantiations. |
|
1593 (BEGIN_S_CONVERSION): Use strings instead of ostrstreambuf. |
|
1594 (octave_base_stream::do_scanf): Pass correct parameter to |
|
1595 do_scan_conv. |
|
1596 |
|
1597 * Makefile.in (TEMPLATE_AR, TEMPLATE_ARFLAGS): Use to create |
|
1598 archive libraries containing templates. |
|
1599 |
|
1600 * c-file-ptr-stream.h: Include <fstream>. Use <cstdio> instead of |
|
1601 <stdio.h> |
|
1602 (c_file_ptr_buf::int_type): Compat typedef for non-ISO libstdc++. |
|
1603 (c_file_ptr_buf::{overflow, underflow, uflow, pbackfail): Use. |
|
1604 (c_file_ptr_buf::c_file_ptr_buf): Handle various compilers. |
|
1605 (c_file_ptr_buf::file_number): New member function. |
|
1606 (c_file_ptr_buf::fd): New private data. |
|
1607 (i_c_file_ptr_stream::i_c_file_ptr_stream): Initialize stream |
|
1608 correctly. |
|
1609 (o_c_file_ptr_stream::o_c_file_ptr_stream): Likewise. |
|
1610 * c-file-ptr-stream.cc |
|
1611 (c_file_ptr_buf::{overflow, underflow, uflow, pbackfail): Add |
|
1612 ISO-compliant EOF handling. |
|
1613 * oct-stream.cc (octave_base_stream::file_number): Use |
|
1614 c_file_ptr_buf::file_number to get underlying file descriptor. |
|
1615 |
|
1616 * comment-list.cc: Add missing class qualifier. |
|
1617 |
|
1618 * file-io.cc, load-save.cc, mappers.cc, oct-fstrm.cc, oct-fstrm.h, |
|
1619 oct-iostrm.cc, oct-iostrm.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
1620 oct-stream.cc, oct-stream.h, oct-strstrm.cc, oct-strstrm.h, |
|
1621 ov-base-nd-array.cc, ov-base-scalar.h, ov-complex.cc, ov-cx-mat.cc, |
|
1622 pager.cc, pr-output.cc, procstream.h, pt-bp.h, utils.cc: |
|
1623 Add std:: namespace qualifier as needed, and replace |
|
1624 deprecated or invalid libstdc++-v2 names with standard ones |
|
1625 where appropriate. |
|
1626 |
|
1627 * DLD-FUNCTIONS/minmax.cc: Fix docstring. |
|
1628 |
|
1629 * oct-fstrm.cc (octave_fstream::octave_fstream): Maintain fix for |
|
1630 libstdc++-v2. |
|
1631 |
|
1632 * oct-stdstrm.cc (octave_ostdiostream::create): Remove default |
|
1633 parameter value in definition. |
|
1634 |
|
1635 * oct-stream.cc (octave_stream::mode_as_string): Don't assume |
|
1636 std::iso::openmode is an integral quantity. |
|
1637 |
|
1638 * pager.cc, procstream.h: Initialize streams correctly. |
|
1639 |
|
1640 * utils.cc: Use CXX_ISO_COMPLIANT_LIBRARY guard. |
|
1641 |
|
1642 * ov-base-nd-array.cc (idx_list_to_idx_array): Inline. |
|
1643 |
|
1644 * ov-base-scalar.h (octave_base_scalar::octave_base_scalar): Use |
|
1645 ``const ST& s'' instead of ST to workaround gcc3 complex bug. |
|
1646 |
3774
|
1647 2001-02-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1648 |
|
1649 * lex.l (next_token_is_bin_op): Remove Checks for spacing except |
|
1650 for ops that begin with +, - but are not ++, --, +=, or -=. |
|
1651 |
3772
|
1652 2001-02-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1653 |
|
1654 * input.cc (get_user_input): Handle dbg_cont and dbg_step here. |
|
1655 * debug.cc (Fdbg_cont): Delete. |
|
1656 * pt-bp.h (MAYBE_DO_BREAKPOINT): Check tree::break_next here. |
|
1657 * pt.h (tree::break_next): New static member. |
|
1658 * pt.cc: Initialize it. |
|
1659 |
|
1660 * parse.h (feval (const octave_value_list&, int)): |
|
1661 Set default value for nargout. |
|
1662 (feval (const std::string&, const octave_value_list&, int)): |
|
1663 Set default values for args and nargout. |
|
1664 |
3770
|
1665 2001-02-01 Ben Sapp <bsapp@lanl.gov> |
|
1666 |
|
1667 * DLD-FUNCTIONS/debug.cc: New file. |
|
1668 * pt-bp.h, pt-bp.cc: New files, for breakpoints. |
|
1669 * Makefile.in: Add them to the appropriate lists. |
|
1670 |
|
1671 * pt-stmt.cc (tree_statement_list::set_breakpoint, |
|
1672 tree_statement_list::delete_breakpoint, |
|
1673 tree_statement_list::list_breakpoints): New functions. |
|
1674 |
|
1675 * pt.h (tree::break_point): New data member. |
|
1676 (tree::set_breakpoint, tree::delete_breakpoint, tree::is_breakpoint): |
|
1677 New virtual functions. |
|
1678 |
|
1679 * pt-mat.cc (tree_matrix::rvalue): Check for breakpoint here. |
|
1680 * pt-unop.cc (tree_prefix_expression::rvalue): Likewise. |
|
1681 (tree_postfix_expression::rvalue): Likewise. |
|
1682 * pt-loop.cc (tree_do_until_command::eval): Likewise. |
|
1683 (DO_LOOP): Likewise. |
|
1684 (tree_simple_for_command::eval): Likewise. |
|
1685 (tree_complex_for_command::eval): Likewise. |
|
1686 * pt-assign.cc (tree_simple_assignment::rvalue): Likewise. |
|
1687 * pt-binop.cc (tree_binary_expression::rvalue): Likewise. |
|
1688 (tree_boolean_expression::rvalue): Likewise. |
|
1689 * pt-cell.cc (tree_cell::rvalue): Likewise. |
|
1690 * pt-colon.cc (tree_colon_expression::rvalue): Likewise. |
|
1691 * pt-except.cc (tree_try_catch_command::eval): Likewise. |
|
1692 (tree_unwind_protect_command::eval): Likewise. |
|
1693 * pt-id.cc (tree_identifier::rvalue): Likewise. |
|
1694 (tree_identifier::lvalue): Likewise. |
|
1695 * pt-indir.cc (tree_indirect_ref::rvalue): Likewise. |
|
1696 * pt-jump.cc (tree_break_command::eval): Likewise. |
|
1697 (tree_continue_command::eval): Likewise. |
|
1698 (tree_return_command::eval): Likewise. |
|
1699 |
3767
|
1700 2001-01-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1701 |
|
1702 * Map.h, Map.cc (CHMap<C>::operator = (const CHMap&)): New function. |
|
1703 (Map<C>::operator = (const Map&)): Likewise. |
|
1704 (Map<C> (const Map&)): Likewise. |
|
1705 |
|
1706 * OPERATORS/op-cm-cs.cc, OPERATORS/op-cm-s.cc, |
|
1707 OPERATORS/op-m-cs.cc, OPERATORS/op-m-s.cc: |
|
1708 Make ldiv operator work for row vector by scalar ops. |
|
1709 |
|
1710 * OPERATORS/op-cs-cm.cc, OPERATORS/op-cs-m.cc, |
|
1711 OPERATORS/op-s-cm.cc, OPERATORS/op-s-m.cc: |
|
1712 Make div operator work for scalar by column vector ops. |
|
1713 |
3765
|
1714 2001-01-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1715 |
|
1716 * parse.y (safe_fclose): Discard comments at the end of a file. |
|
1717 |
3764
|
1718 2001-01-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1719 |
|
1720 * error.cc (pr_where): Call pr_where_1 with two args, not one, to |
|
1721 avoid processing format escapes that might appear in formatted code. |
|
1722 |
3762
|
1723 2001-01-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1724 |
|
1725 * error.cc (vwarning): Write to output_buf, then send formatted |
|
1726 message to diary and error streams. |
|
1727 |
3760
|
1728 2001-01-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1729 |
|
1730 * ov-cx-mat.cc (octave_complex_matrix::try_narrowing_conversion): |
|
1731 Handle empty matrix dimensions correctly. |
|
1732 |
3756
|
1733 2000-12-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1734 |
|
1735 * pager.h (octave_pager_buf::diary_skip): New data member. |
|
1736 (octave_pager_buf::octave_pager_buf): Initialize it. |
|
1737 * pager.cc (octave_pager_buf::set_diary_skip): New function. |
|
1738 (octave_pager_stream::set_diary_skip): New function. |
|
1739 (octave_pager_buf::sync): Call flush_current_contents_to_diary |
|
1740 instead of octave_diary.write. |
|
1741 (octave_pager_buf::flush_current_contents_to_diary): Use |
|
1742 diary_skip, reset when done. |
|
1743 (open_diary_file): Call octave_stdout.set_diary_skip here. |
|
1744 |
3747
|
1745 2000-12-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1746 |
|
1747 * DLD-FUNCTIONS/minmax.cc (EMPTY_RETURN_CHECK): New macro. |
|
1748 (min, max): Use it. |
|
1749 |
|
1750 * DLD-FUNCTIONS/minmax.cc (MINMAX_BODY): New macro. If single arg |
|
1751 is empty, return empty matrix result and empty matrix for index. |
|
1752 (Fmin, Fmax): Use MINMAX_BODY, so we have consistent definition |
|
1753 for min and max functions. |
|
1754 |
|
1755 2000-11-30 Joerg Specht <joerg.specht@ins.uni-stuttgart.de> |
|
1756 |
|
1757 * help.cc (display_help_text): Append new line at end of doc string. |
|
1758 |
|
1759 2000-11-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1760 |
|
1761 * DLD-FUNCTIONS/lsode.cc (LSODE_ABORT1, LSODE_ABORT2): Omit `##' |
|
1762 in macro definition since they are not needed to paste strings |
|
1763 together and picky compilers choke on them. |
|
1764 * DLD-FUNCTIONS/quad.cc (QUAD_ABORT1, QUAD_ABORT2): Likewise. |
|
1765 * DLD-FUNCTIONS/fsolve.cc (FSOLVE_ABORT1, FSOLVE_ABORT2): Likewise. |
|
1766 * DLD-FUNCTIONS/dassl.cc (DASSL_ABORT1, DASSL_ABORT2): Likewise. |
|
1767 |
3741
|
1768 2000-11-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1769 |
3744
|
1770 * mkbuiltins (XDEFUNX_INTERNAL): New macro. |
3746
|
1771 * mkgendoc (XDEFUNX_INTERNAL): Likewise. |
3744
|
1772 * defun-int.h (DEFUNX_INTERNAL): Use it. |
|
1773 |
3743
|
1774 * defun.h (DEFUNX): New macro. |
|
1775 * defun-int.h (DEFUNX_INTERNAL, DECLARE_FUNX): New macro. |
|
1776 (DECLARE_FUN): Define in terms of DECLARE_FUNX. |
|
1777 |
3742
|
1778 * mkdefs: Read and print one line at a time, so we can force |
|
1779 patterns to match only at the beginning of a line. |
|
1780 |
3741
|
1781 * defun-int.h (UNDERSCORIFY): Omit `##' in macro definition since |
|
1782 they are not needed to paste strings together and picky compilers |
|
1783 choke on them. |
|
1784 |
3738
|
1785 2000-11-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1786 |
|
1787 * load-save.cc (save_ascii_data_for_plotting): New function. |
|
1788 * pt-plot.cc (save_in_tmp_file): Use it instead of save_ascii_data. |
|
1789 |
|
1790 * load-save.cc (save_ascii_data): Warn if saving Inf or NaN values. |
|
1791 New arg, infnan_warned. Use it to warn just once per set. |
|
1792 Now static. |
|
1793 (do_save): New arg, infnan_warned. Pass to save_ascii_data. |
|
1794 (save_vars): Initialize infnan_warned here, pass to do_save. |
|
1795 |
3737
|
1796 2000-11-16 Paul Kienzle <pkienzle@kienzle.powernet.co.uk> |
|
1797 |
|
1798 * file-io.cc (Ffprintf): If no file id parameter, don't return |
|
1799 count of characters if nargout is 0 (for compatibility with |
|
1800 Matlab). |
|
1801 |
|
1802 2000-11-16 Ben Sapp <bsapp@lanl.gov> |
|
1803 |
|
1804 * DLD-FUNCTIONS/rand.cc (do_rand): Declare loop counter as |
|
1805 volatile int, not just volatile. |
|
1806 |
3731
|
1807 2000-10-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1808 |
|
1809 * load-save.cc (skip_comments): Allow % as comment character too. |
|
1810 (extract_keyword): Likewise. |
|
1811 |
|
1812 * Makefile.in (oct-gperf.h): Remove -a, -g, and -p flags for gperf. |
|
1813 |
3727
|
1814 2000-10-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1815 |
|
1816 * load-save.cc (do_load): Allow result to be returned instead of |
|
1817 inserting variables in the symbol table. Change patterned after |
|
1818 patch by Kian Ming Adam Chai <caijianming@yahoo.co.uk>. |
|
1819 |
3726
|
1820 2000-10-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1821 |
|
1822 * Makefile.in (ops.cc): Don't substitute BLAS_LIBS and LIBS here. |
|
1823 |
|
1824 * oct-conf.h.in (OCTAVE_CONF_SPECIAL_MATH_LIB): Delete. |
|
1825 (OCTAVE_CONF_BLAS_LIBS): Add. |
|
1826 * toplev.cc (octave_config_info): Likewise, add BLAS_LIBS and |
|
1827 remove SPECIAL_MATH_LIB from the struct. |
|
1828 |
|
1829 * parse.y (feval (const octave_value_list&, int)): Don't panic |
|
1830 while processing arg names if arg.length() and arg_names.length() |
|
1831 differ. |
|
1832 |
3724
|
1833 2000-10-12 Paul Kienzle <pkienzle@kienzle.powernet.co.uk> |
|
1834 |
|
1835 * ov-cell.h (octave_cell::is_cell): New function. |
|
1836 |
|
1837 * pt-select.cc (equal): New static function. |
|
1838 (tree_switch_case::label_matches): Use it to compare case label |
|
1839 against arg. Handle cell arrays as case labels. |
|
1840 |
3723
|
1841 2000-10-12 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1842 |
|
1843 Change patterned after patch by Cai Jianming |
|
1844 <caijianming@yahoo.co.uk> to support for DIM arg in 2.0.x sources. |
|
1845 |
|
1846 * data.cc (DATA_REDUCTION): New macro. Handle second DIM arg here. |
|
1847 (Fcumprod): Replace function body with DATA_REDUCTION. |
|
1848 (Fcumsum): Likewise. |
|
1849 (Fprod): Likewise. |
|
1850 (Fsum): Likewise. |
|
1851 (Fsumsq): Likewise. |
|
1852 |
3719
|
1853 2000-10-10 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1854 |
|
1855 * error.cc (pr_where_2): New function. |
|
1856 (pr_where_1): Use it instead of error_1 to avoid setting error_state. |
|
1857 |
|
1858 2000-10-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1859 |
|
1860 * xdiv.cc (xdiv): Warn if execution falls through to lssolve. |
|
1861 |
3716
|
1862 2000-09-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1863 |
|
1864 * utils.cc (FERRNO): New function (currently commented out). |
|
1865 |
|
1866 * c-file-ptr-stream.cc (c_file_ptr_buf::close): Call flush here. |
|
1867 (c_file_ptr_buf::~c_file_ptr_buf): Not here. |
|
1868 * c-file-ptr-stream.h (c_fie_ptr_buf::close_fcn): New typedef. |
|
1869 (c_file_ptr_buf::cf): New data member. Add default constructor arg. |
|
1870 (class c_file_ptr_buf): Derive from filebuf, not streambuf. |
|
1871 (i_c_file_ptr_stream, o_c_file_ptr_stream): Handle close function here. |
|
1872 * oct-procstrm.cc (octave_iprocstream, octave_oprocstream): Likewise. |
|
1873 (octave_iprocstream::do_close, octave_oprocstream::do_close): Delete. |
|
1874 * oct-stdstrm.cc (octave_base_stdiostream::~octave_base_stdiostream): |
|
1875 Don't do anything. |
|
1876 (octave_istdiostream::create): Handle close function here. |
|
1877 (octave_istdiostream::octave_istdiostream): Likewise. |
|
1878 (octave_ostdiostream::create): Likewise. |
|
1879 (octave_ostdiostream::octave_ostdiostream): Likewise. |
|
1880 (class octave_base_stdiostream): Don't cache FILE pointer here. |
|
1881 |
3715
|
1882 2000-09-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1883 |
|
1884 * syscalls.cc (Ffcntl): Don't assume that the file id passed in is |
|
1885 the same as the underlying system file id. |
|
1886 |
3712
|
1887 2000-08-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1888 |
|
1889 * parse.y: Use octave_time, not time. |
|
1890 |
3711
|
1891 2000-08-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1892 |
|
1893 * oct-stream.cc (printf_value_cache::double_value): Also set |
|
1894 curr_stat to conversion_error if there are no values at all. |
|
1895 |
3710
|
1896 2000-08-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1897 |
|
1898 * dirfns.cc (Flink, Fsymlink, Freadlink): New functions. |
|
1899 |
3709
|
1900 2000-08-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1901 |
|
1902 * load-save.cc (Vsave_header_format_string): New variable. |
|
1903 (symbols_of_load_save): DEFVAR it. |
|
1904 (save_header_format, default_save_header_format): New functions. |
|
1905 (write_header): Use Vsave_header_format_string here. |
|
1906 |
3707
|
1907 2000-07-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1908 |
3708
|
1909 * pt-pr-code.h (tree_print_code::curr_print_indent_level, |
|
1910 (tree_print_code::beginning_of_line): No longer static. |
|
1911 (tree_print_code::tree_print_code): Initialize them here. |
|
1912 * pt-pr-code.cc: Not here. |
|
1913 |
|
1914 * pt-stmt.cc (tree_statement::eval): Set curr_statement here. |
|
1915 (tree_statement_list::eval): Not here. |
|
1916 |
3707
|
1917 Debug-on-error stuff based on a patch submitted by Paul Kienzle |
|
1918 <pkienzle@kienzle.powernet.co.uk> for 2.0.x. |
|
1919 |
|
1920 * error.cc (Vdebug_on_warning): New static flag variable. |
|
1921 (debug_on_warning): New function. |
|
1922 (symbols_of_warning): DEFVAR debug_on_warning. |
|
1923 (warning): Handle debug_on_warning here. |
|
1924 |
|
1925 * input.cc (do_keyboard): New function. |
|
1926 (Fkeyboard): Use it to do the real work. |
|
1927 * pt-stmt.cc (curr_statement): New static variable. |
|
1928 (tree_statement::eval): Save and restore it here. |
|
1929 * error.cc (Vdebug_on_error): New static flag variable. |
|
1930 (debug_on_error): New function. |
|
1931 (symbols_of_error): DEFVAR debug_on_error. |
|
1932 (pr_where, pr_where_1): New functions. |
|
1933 (error): Handle debug_on_error here. |
|
1934 |
3705
|
1935 2000-07-20 Joao Cardoso <jcardoso@inescporto.pt> |
|
1936 |
|
1937 * Makefile.in (octave): Link with $(LD_CXX) instead of $(CXX) |
|
1938 |
3704
|
1939 2000-07-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1940 |
|
1941 * oct-stream.cc (octave_base_stream::oscanf): Advance to next |
|
1942 format element before attempting to pick up any trailing stuff. |
|
1943 |
3697
|
1944 2000-07-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1945 |
3698
|
1946 * lex.l (next_token_is_bin_op): Don't recognize `..' as a binary op. |
|
1947 |
3697
|
1948 * load-save.cc (get_file_format): Call read_mat5_binary_file_header |
|
1949 with third arg true instead of false, so we don't barf if the file |
|
1950 is not a matlab v5 binary file. |
|
1951 |
3695
|
1952 2000-07-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1953 |
|
1954 * Makefile.in (octave): Link to ../libcruft/blas-xtra/xerbla.o here. |
|
1955 |
|
1956 * octave.cc (main): Remove kluge to attempt linking our version of |
|
1957 xerbla. |
|
1958 |
|
1959 2000-07-07 Steven G. Johnson <stevenj@alum.mit.edu> |
|
1960 |
|
1961 * load-save.cc (have_h5giterate_bug): New file-scope variable. |
|
1962 (hdf5_read_next_data): Only increment current_item if |
|
1963 have_h5giterate_bug is true. |
|
1964 (read_hdf5_data): Set have_h5giterate_bug here. |
|
1965 Only increment hs.current_item if have_h5giterate_bug is true. |
|
1966 |
3693
|
1967 2000-07-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1968 |
|
1969 * c-file-ptr-stream.cc (c_file_ptr_buf::close): |
|
1970 Return -1 if file pointer is NULL. |
|
1971 Set file pointer to 0 after closing. |
|
1972 (c_file_ptr_buf::~c_file_ptr_buf): Call close after flushing. |
|
1973 |
3694
|
1974 2000-07-05 Steven G. Johnson <stevenj@alum.mit.edu> |
3692
|
1975 |
|
1976 * Makefile.in (BLAS_LIBS): Substitute here. |
|
1977 (octave): Use $(BLAS_LIBS) in the final link command. |
|
1978 |
3694
|
1979 2000-06-30 Steven G. Johnson <stevenj@alum.mit.edu> |
3690
|
1980 |
|
1981 * Makefile.in (octave): Link $(FLIBS) last. |
|
1982 * octave.cc (main): Force our own xerbla to be linked instead of |
|
1983 some system version. |
|
1984 |
3688
|
1985 2000-06-29 James R. Van Zandt <jrv@vanzandt.mv.com> |
|
1986 |
3689
|
1987 * load-save.cc (load_save_format): New value, LS_MAT5_BINARY. |
3688
|
1988 (arrayclasstype, mat5_data_type): New enums. |
|
1989 (read_mat5_binary_data): New function. |
|
1990 (read_mat5_tag): New function. |
|
1991 (read_mat5_binary_element): New function. |
|
1992 (read_mat5_binary_file_header): New function. |
|
1993 (get_file_format): Check for mat5 binary format too. |
|
1994 (do_load): Handle mat5 binary format. |
|
1995 (write_mat5_tag): New function. |
|
1996 (write_mat5_array): New function. |
|
1997 (class mat5_callback): New class. |
|
1998 (save_mat5_binary_element): New functnon. |
|
1999 (do_save): Handle mat5 binary format. |
|
2000 (write_header): Handle LS_MAT5_BINARY case too. |
|
2001 (save_user_variables): Handle LS_MAT5_BINARY case too. |
|
2002 (Fsave): Handle LS_MAT5_BINARY case too. |
|
2003 (Fload): Handle LS_MAT5_BINARY case too. |
|
2004 |
3694
|
2005 2000-06-29 Steven G. Johnson <stevenj@alum.mit.edu> |
3687
|
2006 |
|
2007 All of the following changes are protected by #ifdef HAVE_HDF5. |
|
2008 |
|
2009 * load-save.cc (load_save_format): New value, LS_HDF5. |
|
2010 (make_valid_identifier): New function. |
|
2011 (class hdf5_fstreambase, class hdf5_ifstream, class hdf5_ofstream): |
|
2012 New classes for reading and writing hdf5 data. |
|
2013 (hdf5_types_compatible): New function. |
|
2014 (hdf5_import_multidim): New function. |
|
2015 (hdf5_check_attr): New function. |
|
2016 (hdf5_read_next_data): New function. |
|
2017 (hdf5_make_complex_type): New function. |
|
2018 (hdf5_make_range_type): New function. |
|
2019 (read_hdf5_data): New function. |
|
2020 (get_file_format): Handle HDF5 format. |
|
2021 (do_load): Handle LS_HDF5 case. |
|
2022 (Fload): Handle HDF5 format. |
|
2023 (hdf5_add_attr): New function. |
|
2024 (save_type_to_hdf5): New function. |
|
2025 (add_hdf5_data): New function. |
|
2026 (do_save): Handle HDF5 format. |
|
2027 (get_default_save_format): Handle LS_HDF5 case. |
|
2028 (write_header): Handle LS_HDF5 case. |
|
2029 (save_user_variables): Handle HDF5 format. |
|
2030 (Fsave): Handle HDF5 format. |
|
2031 |
3686
|
2032 2000-06-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2033 |
|
2034 * help.cc (display_help_text): If writing to filter fails, send |
|
2035 unformatted text to output stream. |
|
2036 |
3683
|
2037 2000-06-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2038 |
3685
|
2039 * OPERATORS/op-bm-bm.cc (eq): Define using mx_el_eq, not operator ==. |
|
2040 (ne): Likewise, use mx_el_ne, not operator !=. |
|
2041 |
3683
|
2042 * pr-output.cc (Fdisp): Delete. |
|
2043 |
3681
|
2044 2000-06-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2045 |
3682
|
2046 * pr-output.cc (float_format::float_format): Set default values |
|
2047 for width and precision to -1. |
|
2048 (operator << (ostream&, pr_formatted_float&): Set width and |
|
2049 precision if values are >= 0. |
|
2050 (set_real_format, set_real_matrix_format, set_range_format, |
|
2051 set_complex_format, set_complex_matrix_format): If we have all |
|
2052 integers, infinities, or nans, set precision equal to field width. |
|
2053 |
|
2054 * load-save.cc (read_ascii_data): Allow empty strings and string |
|
2055 vectors to be restored. |
|
2056 |
3681
|
2057 * variables.cc (var_matches_any_pattern): New function. |
|
2058 (Fclear): Use it to make exclusive clear work correctly. |
|
2059 |
3676
|
2060 2000-06-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2061 |
3678
|
2062 * ov-range.h (octave_range::is_numeric_type): New function. |
|
2063 |
3676
|
2064 * sysdep.cc (Fkbhit): Also ask for input if forced_interactive. |
|
2065 |
3675
|
2066 2000-06-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2067 |
|
2068 * Makefile.in (oct-gperf.h): Use $(GPERF) instead of gperf. |
|
2069 |
3671
|
2070 2000-05-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2071 |
|
2072 * DLD-FUNCTIONS/qz.cc (Fqz): When computing finite generalized |
|
2073 eigenvalues, don't write past the end of the array. |
|
2074 |
3665
|
2075 2000-05-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2076 |
|
2077 * ov-base-nd-array.h, ov-base-nd-array.cc, ov-re-nd-array.h, |
|
2078 ov-re-nd-array.h: New files. |
|
2079 * Makefile.in: Add them to the appropriate lists. |
|
2080 |
|
2081 * pt-stmt.h, pt-stmt.cc (class tree_statement): |
|
2082 Store comments associated with this parse tree element. |
|
2083 * pt-select.h, pt-select.cc (class tree_if_clause, |
|
2084 class tree_if_command, class tree_switch_case |
|
2085 class tree_switch_command): Likewise. |
|
2086 * pt-loop.h, pt-loop.cc (class tree_while_command, |
|
2087 class tree_do_until_command, class tree_simple_for_command, |
|
2088 class tree_complex_for_command): Likewise. |
|
2089 * pt-except.h, pt-except.cc (class tree_try_catch_command, |
|
2090 class tree_unwind_protect_command): Likewise. |
|
2091 * ov-usr-fcn.h, ov-usr-fcn.cc (class octave_user_function): Likewise. |
|
2092 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::print_comment_elt, |
|
2093 tree_print_code::print_comment_list, |
|
2094 tree_print_code::print_indented_comment): New functions. |
|
2095 (tree_print_code::visit_simple_for_command, |
|
2096 tree_print_code::visit_complex_for_command, |
|
2097 tree_print_code::visit_octave_user_function_header, |
|
2098 tree_print_code::visit_octave_user_function_trailer, |
|
2099 tree_print_code::visit_if_command, tree_print_code::visit_statement, |
|
2100 tree_print_code::visit_switch_case, |
|
2101 tree_print_code::visit_switch_command, |
|
2102 tree_print_code::visit_try_catch_command, |
|
2103 tree_print_code::visit_unwind_protect_command |
|
2104 tree_print_code::visit_while_command, |
|
2105 tree_print_code::visit_do_until_command): Handle comments. |
|
2106 * lex.l, parse.y: Handle comments in parse trees. |
|
2107 * comment-list.h, comment-list.cc: New files. |
|
2108 * Makefile.in: Add them to the appropriate lists. |
|
2109 |
3661
|
2110 2000-04-23 etienne grossmann <etienne@anonimo.isr.ist.utl.pt> |
|
2111 |
|
2112 * pt-mat.cc (tm_row_const::tm_row_const_rep::eval_error): |
|
2113 New args x and y, for dimension mismatch info. |
|
2114 Change callers where appropriate. |
|
2115 (tm_const::init): Report mismatched column dimensions. |
|
2116 |
3658
|
2117 2000-04-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2118 |
|
2119 * sysdep.cc (kbhit): Also clear cin if at EOF. |
|
2120 |
3657
|
2121 2000-04-11 Joao Cardoso <jcardoso@inescn.pt> |
|
2122 |
|
2123 * sysdep.cc (kbhit): New arg, wait. |
|
2124 (raw_mode): Ditto. |
|
2125 (Fkbhit): If given an arg, call kbhit with wait = false. |
|
2126 |
|
2127 * DLD-FUNCTIONS/minmax.cc (Fmax, Fmin): Fix doc string. |
|
2128 |
3656
|
2129 2000-04-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2130 |
|
2131 * dynamic-ld.cc (octave_dynamic_loader::do_load): Undo previous change. |
|
2132 |
3655
|
2133 2000-04-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2134 |
|
2135 * dynamic-ld.cc (octave_dynamic_loader::do_load): Also fail with |
|
2136 error message if we don't find the mangled function name in the |
|
2137 file. |
|
2138 |
3652
|
2139 2000-03-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2140 |
3653
|
2141 * oct-stream.cc (printf_value_cache::string_value): Return string |
|
2142 matrices in a Matlab-compatible way. |
|
2143 (printf_value_cache): Redesign the way list_exhausted works. |
|
2144 |
3652
|
2145 * oct-fstrm.cc (octave_fstream::do_close): New function. |
|
2146 * oct-stdstrm.cc (octave_istdiostream::do_close): Ditto. |
|
2147 (octave_ostdiostream::do_close): Ditto. |
|
2148 * c-file-ptr-stream.cc (c_file_ptr_buf::close): Ditto. |
|
2149 (i_c_file_ptr_stream::close): Ditto. |
|
2150 (o_c_file_ptr_stream::close): Ditto. |
|
2151 * oct-prcstrm.cc (octave_iprocstream::do_close): Ditto. |
|
2152 (octave_oprocstream::do_close): Ditto. |
|
2153 (octave_iprocstram::~octave_iprocstram): Call do_close here. |
|
2154 (octave_iprocstram::~octave_oprocstram): Likewise. |
|
2155 |
|
2156 * oct-stream.h (octave_base_stream::do_close): New virtual function. |
|
2157 (octave_base_stream::close): If stream is open, call do_close. |
|
2158 |
|
2159 * c-file-ptr-stream.cc (c_file_ptr_buf::flush): New function. |
|
2160 (c_file_ptr_buf::~c_file_ptr_buf): Use it. |
|
2161 (c_file_ptr_buf::overflow): Ditto. |
|
2162 (c_file_ptr_buf::sync): Ditto. |
|
2163 |
3649
|
2164 2000-03-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2165 |
|
2166 * oct-procbuf.cc (octave_procbuf::open): Make output streams line |
|
2167 buffered. |
|
2168 |
3640
|
2169 2000-03-24 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2170 |
3644
|
2171 * sighandlers.cc (my_friendly_exit): Prefix failure messages with |
|
2172 panic instead of error. |
|
2173 |
3642
|
2174 * c-file-ptr-stream.cc (c_file_ptr_buf::~c_file_ptr_buf): |
|
2175 Avoid dereferencing NULL pointer. |
|
2176 |
3640
|
2177 * oct-stream.cc (printf_format_list::add_elt_to_list, |
|
2178 printf_format_list::process_conversion, |
|
2179 printf_format_list::finish_conversion): New args, flags, fw, and prec. |
|
2180 (printf_format_list::printf_format_list): Save more complete info. |
|
2181 (printf_format_list::printme): Print flags, fw, and prec. |
|
2182 (octave_base_stream::printf): Simplify. |
|
2183 (do_printf_conv): Delete have_arg arg, since it is always true now. |
|
2184 (octave_base_stream::do_printf): Handle case of no args and % |
|
2185 directly instead of using do_printf_conv. |
|
2186 (printf_value_cache::exhausted): Rename from no_more_values. |
|
2187 (DO_PCT_CONVERSION): New macro |
|
2188 (octave_base_streain::do_scanf, octave_base_streain::do_oscanf): |
|
2189 Use it. |
|
2190 (scanf_format_list::finish_conversion): `%' counts as a conversion too. |
|
2191 Also don't forget to set type for it. |
|
2192 (OCTAVE_SCAN_0): Delete. |
|
2193 (OCTAVE_SCAN): Rename from OCTAVE_SCAN_1. |
|
2194 (octave_base_stream::scanf, octave_base_stream::oscanf): Don't |
|
2195 special-case number of conversions here. |
|
2196 (octave_base_stream::oscanf, octave_base_stream::do_oscanf): Only |
|
2197 cycle through fmt elements if the number of conversions is greater |
|
2198 than 0. |
|
2199 |
|
2200 * oct-stream.h (scanf_format_list::next): New arg, `cycle'. |
|
2201 (printf_format_list::next): New arg, `cycle'. |
|
2202 (printf_format_list::last_elt_p): New function. |
|
2203 (printf_format_elt): New fields fw, prec, and flags. |
|
2204 Define copy constructor and assignment operator. |
|
2205 (scanf_format_elt): Define copy constructor and assignment operator. |
|
2206 |
3627
|
2207 2000-03-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2208 |
3639
|
2209 * oct-stream.cc (OCTAVE_SCAN_0, OCTAVE_SCAN_1): New macros. |
|
2210 (do_scanf_conv, BEGIN_S_CONVERSION, BEGIN_CHAR_CLASS_CONVERSION, |
|
2211 do_scanf, scanf, do_oscanf, do_oscanf, oscanf): Use them instead |
|
2212 of calling istream::scan directly. |
|
2213 (octave_scan): New function. |
|
2214 (do_scanf_conv): Second arg is now scanf_format_elt instead of char*. |
|
2215 Change all callers. |
|
2216 |
3631
|
2217 * oct-procbuf.h, oct-procbuf.cc (octave_procbuf): |
|
2218 Derive from c_file_ptr_buf instead of filebuf. |
|
2219 |
3627
|
2220 * oct-stream.cc (octave_base_stream::printf): Use octave_format |
|
2221 instead of ostream::form. Return number of characters written. |
|
2222 |
3618
|
2223 2000-03-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2224 |
3620
|
2225 * oct-stream.cc (do_printf_conv): Use octave_format instead of |
|
2226 ostream::form. Return number of characters written. |
|
2227 (octave_base_stream::do_printf): Return number of characters written. |
|
2228 |
|
2229 * error.cc (verror, vwarning): Use octave_format instead of |
|
2230 ostream::vform. |
|
2231 |
|
2232 * utils.cc (octave_format, octave_vformat): New functions. |
|
2233 * cutils.c (octave_snprintf, octave_vsnprintf): New functions. |
|
2234 |
3618
|
2235 * oct-lvalue.h (dummy_val): New static variable. |
|
2236 (octave_lvalue::octave_lvalue): Use it to initialize val. |
|
2237 |
|
2238 * variables.cc (is_valid_function): Look in the global symbol |
|
2239 table for functions. |
|
2240 |
3615
|
2241 2000-03-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2242 |
3770
|
2243 * Makefile.in (LIBRARIES): Conditionally define. |
3615
|
2244 (libraries): Depend on $(LIBRARIES). |
|
2245 (octave): Depend on $(LIBRARIES), not libraries. Also depend on |
|
2246 stamp-prereq and stamp-oct-links. |
|
2247 (all): Don't depend on stamp-prereq or stamp-oct-links. |
|
2248 (liboctinterp.$(LIBEXT), liboctinterp.$(SHELXT)): Delete target |
|
2249 before rebuilding. |
|
2250 |
|
2251 2000-03-21 Ben Sapp <bsapp@nua.lampf.lanl.gov>: |
|
2252 |
3770
|
2253 * Makefile.in (libraries): Depend only on library targets, not |
3615
|
2254 archive members. |
|
2255 |
3611
|
2256 2000-03-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2257 |
3613
|
2258 * Makefile.in (objects): New target |
|
2259 |
3611
|
2260 * c_file_ptr_stream.h, c_file_ptr_stream.cc: New files. |
|
2261 * oct-stdstrm.h, oct-stdstrm.cc, oct-prcstrm.cc: |
|
2262 Use c_file_ptr_buf, i_c_file_ptr_stream, and o_c_fie_ptr_stream |
|
2263 instead of stdiobuf, istdiostream, and ostdiostream. |
|
2264 |
|
2265 * pr-output.cc (set_real_format, set_real_matrix_format, |
|
2266 set_complex_format, set_complex_matrix_format, set_range_format): |
|
2267 Do the right thing again for int, NaN, and Inf values. |
|
2268 |
3608
|
2269 2000-03-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2270 |
|
2271 * pr-output.cc (pr_plus_format): Rename from do_plus_format. |
|
2272 Change all callers. |
|
2273 (pr_float, pr_complex): New arg, scale. Handle scaling here. |
|
2274 (float_format): New class for managing details of formatting |
|
2275 floats. Use it instead of character string formats and the |
|
2276 nonstandard form() function from the GNU iostream library. |
|
2277 |
3601
|
2278 2000-02-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2279 |
|
2280 * Makefile.in (clean): Also delete gendoc. |
|
2281 |
3598
|
2282 2000-02-18 James R. Van Zandt <jrv@vanzandt.mv.com> |
|
2283 |
|
2284 * load-save.cc (Vcrash_dumps_octave_core): Fix comment for this var. |
|
2285 |
|
2286 2000-02-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2287 |
|
2288 * lex.l (handle_number): Don't transorm `[Dd]' to `e' if reading |
|
2289 hex. |
|
2290 |
3597
|
2291 2000-02-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2292 |
|
2293 * Makefile.in (install-inc): Install files in |
|
2294 $(octincludedir)/octave. |
|
2295 (uninstall): Remove them from the correct directory too. |
|
2296 |
|
2297 * defaults.h, defaults.cc (Vlocal_ver_arch_lib_dir): New variable. |
|
2298 * defaults.cc (set_default_local_ver_arch_lib_dir): New function. |
|
2299 (install_defaults): Call it. |
|
2300 (exec_path): Prepend the versioned form of the local arch lib |
|
2301 directory to the standard path. |
|
2302 * defaults.h.in (OCTAVE_LOCALVERARCHLIBDIR, |
|
2303 OCTAVE_LOCALVERFCNFILEDIR, OCTAVE_LOCALVEROCTFILEDIR): |
|
2304 Substitute these too. |
|
2305 * toplev.cc (Foctave_config_info): Add them to the struct. |
|
2306 |
3591
|
2307 2000-02-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2308 |
3597
|
2309 * toplev.cc (Foctave_config_info): Add MKOCTFILE_INCFLAGS to the |
|
2310 struct. |
3591
|
2311 * oct-conf.h.in (OCTAVE_CONF_MKOCTFILE_INCFLAGS): Define. |
|
2312 |
3584
|
2313 2000-02-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2314 |
3587
|
2315 * DLD-FUNCTIONS/balance.cc (Fbalance): Explicitly request |
|
2316 conversion from Matrix to ComplexMatrix. |
|
2317 * DLD-FUNCTIONS/qz.cc (Fqz): Likewise. |
|
2318 |
|
2319 * ov-re-mat.h (octave_matrix::complex_matrix_value): Explicitly |
|
2320 request conversion from Matrix type. |
|
2321 |
|
2322 * ov-ch-mat.h (octave_char_matrix::matrix_value): Explicitly |
|
2323 request conversion from charMatrix type. |
|
2324 (octave_char_matrix::complex_matrix_value): Likewise. |
|
2325 * ov-bool-mat.h (octave_bool_matrix::matrix_value): Likewise. |
|
2326 (octave_bool_matrix::complex_matrix_value): Likewise. |
|
2327 |
|
2328 * ov-range.h (octave_range::complex_matrix_value): Explicitly |
|
2329 request conversion from Matrix type. |
|
2330 |
|
2331 * ov-cx-mat.h, ov-re-mat.h: Explicitly request conversions from |
|
2332 diagonal matrix types in constructors. |
|
2333 |
3586
|
2334 * mappers.cc (ximag, xreal): Return double, not Complex. |
|
2335 |
3585
|
2336 * error.cc (panic): Turn off buffering of error messages. |
|
2337 Don't call flush_octave_stdout here, verror will do it for us. |
|
2338 (verror): Don't call flush_octave_stdout if buffering error messages. |
|
2339 |
3584
|
2340 * pt-except.cc (tree_try_catch_command::eval): Only restore |
|
2341 buffer_error_message value (by running the unwind_protect element |
|
2342 for it) if it has been saved. |
|
2343 |
|
2344 * help.cc (Ftype): Return value if nargout is NOT equal to zero. |
|
2345 Delete unnecessary unwind_protect::begin_frame(). |
|
2346 |
|
2347 * toplev.cc (octave_config_info): Stuff lots of new config info in |
|
2348 the struct. |
|
2349 |
|
2350 * oct-conf.h.in: Delete TARGET_HOST_TYPE. |
|
2351 |
3574
|
2352 2000-02-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2353 |
3579
|
2354 * siglist.c: Include <signal.h>. |
|
2355 |
3575
|
2356 * lex.l (is_plot_keyword): Add minimum match length in call to |
|
2357 almost_match. |
|
2358 |
3574
|
2359 * Makefile.in (%.df : %.cc): Don't pass -c to compiler. |
|
2360 |
3564
|
2361 2000-02-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2362 |
3572
|
2363 * ov-base-mat.cc: Include pr-output.h here. |
|
2364 |
3571
|
2365 * DLD-FUNCTIONS/rand.cc (curr_rand_dist): Return const char * |
|
2366 instead of char *. |
|
2367 |
3570
|
2368 * oct-fstrm.cc (octave_fstream::seek, octave_fstream::tell): |
|
2369 Call pubseekoff instead of seekoff. |
|
2370 |
3568
|
2371 * DLD-FUNCTIONS/dassl.cc (print_dassl_option_list): Use stream |
|
2372 manipulators instead of GNU iostream-specific form function. |
|
2373 * DLD-FUNCTIONS/fsolve.cc (print_fsolve_option_list): Ditto. |
|
2374 * DLD-FUNCTIONS/lsode.cc (print_lsode_option_list): Ditto. |
|
2375 * DLD-FUNCTIONS/quad.cc (print_quad_option_list): Ditto. |
|
2376 * pr-output.cc (pr_scale_header): Ditto. |
|
2377 |
3566
|
2378 * sighandlers.h: Include signal.h here. |
|
2379 * sighandlers.cc: Not here. |
|
2380 |
|
2381 * utils.cc: Include setjmp.h, not csetjmp. |
|
2382 * toplev.cc: Ditto. |
|
2383 |
|
2384 * sighandlers.cc: Include signal.h, not csignal. |
|
2385 |
|
2386 * pt-plot.h: Don't include csignal. |
|
2387 * toplev.cc: Ditto. |
|
2388 * oct-hist.cc: Ditto. |
|
2389 * octave.cc: Ditto. |
|
2390 * pager.cc: Ditto. |
|
2391 * input.cc: Ditto. |
|
2392 * help.cc: Ditto. |
|
2393 |
3565
|
2394 * pt-plot.cc (send_to_plot_stream): Use operator== and substr |
|
2395 method to do limited-length string comparison. |
|
2396 * input.cc (generate_completion): Likewise. |
|
2397 * ov-dld-fcn.cc (octave_dld_function::octave_dld_function): Likewise. |
|
2398 * ov-usr-fcn.cc (octave_user_function::mark_as_system_fcn_file): |
|
2399 Likewise. |
|
2400 |
|
2401 * utils.cc (check_preference): Expect exact string matches. |
|
2402 * variables.cc (ignore_function_time_stamp): Likewise. |
|
2403 * lex.l (whitespace_in_literal_matrix): Likewise. |
|
2404 |
3564
|
2405 * mappers.cc (xconj, ximag, xreal): New functions. Use them in |
|
2406 DEFUN_MAPPER calls. |
|
2407 |
|
2408 * defun-int.h (DEFUN_MAPPER_INTERNAL): Cast function pointer args |
|
2409 to octave_mapper constructor. |
|
2410 |
3523
|
2411 2000-02-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2412 |
3564
|
2413 * procstream.cc (procstreambase::procstreambase, |
|
2414 procstreambase::open, procstreambase::close): |
|
2415 Call std::ios::setstate, not set. |
|
2416 |
3561
|
2417 * lex.l (plot_axes_token): Declare plot_axes as const char *. |
|
2418 Declare tmp const char **. |
|
2419 |
3560
|
2420 * oct-procbuf.h: Include fstream, not streambuf.h. |
|
2421 |
3570
|
2422 * load-save.cc (Fsave): Call pubseekoff instead of seekoff. |
3558
|
2423 * oct-strstrm.cc (octave_base_strstream::tell): Likewise. |
|
2424 (octave_base_strstream::seek): Likewise. |
|
2425 |
3553
|
2426 * oct-stream.cc (octave_base_stream::read): Rename count to char_count. |
|
2427 (octave_base_stream::do_gets): Likewise. |
|
2428 |
|
2429 * octave-stream.cc (octave_base_stream::write): Rename flt_fmt to ffmt. |
|
2430 (octave_base_stream::read): Likewise. |
|
2431 |
3552
|
2432 * TEMPLATE-INST/SLStack-sym.cc: Delete meaningless `extern |
|
2433 template' declarations. |
|
2434 * TEMPLATE-INST/Array-tc.cc: Ditto. |
|
2435 |
|
2436 * TEMPLATE-INST/Map-fnc.cc: Don't try to instantiate goodCHptr or |
|
2437 CHptr_to_index here. |
|
2438 * TEMPLATE-INST/Map-tc.cc: Likewise. |
3554
|
2439 * Map.h (CHNode::goodCHptr, CHNode::CHptr_to_index): Now member |
|
2440 functions. Change all callers. |
3552
|
2441 |
|
2442 * load-save.cc (read_binary_file_header): Declare magic_len `const'. |
|
2443 |
|
2444 * token.h (token::token (const token&), token::operator=): |
|
2445 Delete unnecessary definitions. |
|
2446 |
|
2447 * oct-stream.cc (octave_stream::mode_as_string): Use |
|
2448 std::ios::binary, not std::ios::bin. |
|
2449 * load-save.cc (Fsave, Fload, save_user_variables): Likewise. |
|
2450 |
3550
|
2451 * DLD-FUNCTIONS/qz.cc (Fqz): Use Array<int> class instead of |
|
2452 trying to create automatic int array with variable size. |
|
2453 |
3548
|
2454 * variables.cc (F__dump_symbol_info__): Fix continuation char. |
3552
|
2455 * mappers.cc (Ftoupper): Likewise. |
3548
|
2456 * DLD-FUNCTIONS/besselj.cc (Fairy, Fbesselj): Likewise. |
|
2457 * DLD-FUNCTIONS/chol.cc (Fchol): Likewise. |
|
2458 * DLD-FUNCTIONS/det.cc (Fdet): Likewise. |
|
2459 * DLD-FUNCTIONS/eig.cc (Feig): Likewise. |
|
2460 * DLD-FUNCTIONS/gammainc.cc (gammainc): Likewise. |
|
2461 * DLD-FUNCTIONS/givens.cc (givens): Likewise. |
|
2462 * DLD-FUNCTIONS/hess.cc (hess): Likewise. |
|
2463 * DLD-FUNCTIONS/inv.cc (inv): Likewise. |
|
2464 * DLD-FUNCTIONS/log.cc (logm): Likewise. |
|
2465 * DLD-FUNCTIONS/lu.cc (lu): Likewise. |
|
2466 * DLD-FUNCTIONS/qr.cc (qr): Likewise. |
|
2467 * DLD-FUNCTIONS/schur.cc (schur): Likewise. |
|
2468 * DLD-FUNCTIONS/balance.cc (balance): Likewise. |
|
2469 * DLD-FUNCTIONS/svd.cc (svd): Likewise. |
|
2470 * DLD-FUNCTIONS/syl.cc (syl): Likewise. |
|
2471 * DLD-FUNCTIONS/expm.cc (Fexpm): Likewise. |
|
2472 |
|
2473 * token.h (token::token_type, token::end_tok_type, |
|
2474 token::plot_tok_type): Delete extraneous comma from enum decls. |
3552
|
2475 * load-save.cc (load_save_format): Likewise. |
3548
|
2476 |
3546
|
2477 * pt-idx.cc (tree_index_expression::tree_index_expression): |
|
2478 Delete default arg values. |
3552
|
2479 * oct-fstrm.cc (octave_fstream::octave_fstream): Likewise. |
|
2480 * oct-stream.cc (octave_stream::octave_stream): Likewise. |
3546
|
2481 |
|
2482 * siglist.h, siglist.c: New files. |
|
2483 * Makefile.in: Add them to the appropriate lists. |
|
2484 * siglist.c (sys_siglist): Move definition here from sighandlers.cc. |
|
2485 * siglist.h (sys_siglist): Move declaration here from sighandlers.h. |
|
2486 |
3545
|
2487 * ov.h, ov-bool.h, ov-bool-mat.h (bool_matrix_value): |
|
2488 Delete unnecessary arg. |
|
2489 |
3544
|
2490 * ov.h (octave_value::do_multi_index_op): Rename from do_index_op. |
|
2491 |
|
2492 * ov-fcn.h (octave_function::is_system_fcn_file): Now const. |
|
2493 |
3529
|
2494 * Map.cc (index_to_CHptr): Now a macro. |
3530
|
2495 (CHMap<C>::hash): Now a member function. |
3529
|
2496 |
3528
|
2497 * defun-int.h (UNDERSCORIFY): New macro. |
|
2498 (DEFCONST_INTERNAL, DEFCONSTX_INTERNAL): Use it. |
|
2499 |
3526
|
2500 * data.cc (Fis_list): Fix continuation char. |
3532
|
2501 * defaults.cc (IMAGEPATH): Likewise. |
3526
|
2502 |
|
2503 * Map.cc (CHptr_to_index, goodCHptr): Delete static decl. |
|
2504 |
3525
|
2505 * ov.h (unary_op, binary_op, assign_op): Prepend `op_' to elts. |
|
2506 Change all usses |
|
2507 |
3523
|
2508 * All source files: Sprinkle with std:: qualifier as needed. |
|
2509 |
3503
|
2510 2000-01-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2511 |
|
2512 * sighandlers.cc (install_signal_handlers): Add std:: qualifier |
|
2513 for set_net_handler. |
|
2514 |
|
2515 * All source files: Include iostream, fstream, strstream, |
|
2516 etc. as needed instead of using forward declarations for these |
|
2517 classes. |
|
2518 |
3498
|
2519 2000-01-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2520 |
|
2521 * input.cc (input_event_hook, Finput_event_hook): New functions. |
|
2522 (hook_fcn, user_data): New static variables. |
|
2523 |
3489
|
2524 2000-01-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2525 |
3491
|
2526 * pt-except.cc (do_catch_code): Don't do anything special for |
|
2527 tree_return_command::returning, or tree_break_command::breaking. |
|
2528 |
|
2529 * error.cc (vwarning): New function. |
|
2530 (warning): Use it instead of calling verror. |
|
2531 |
|
2532 * oct-stream.cc (octave_base_stream::oscanf): |
|
2533 Result is now always nconv+1 elements. Return count of successful |
|
2534 conversions in last element. |
|
2535 * file-io.cc (Ffscanf, Fsscanf, Fscanf): Fix doc string. |
|
2536 |
3490
|
2537 * pt-except.cc (do_catch_code): Unwind-protect buffer_error_messages. |
|
2538 Be sure to run all unwind-protects before returning. |
|
2539 (tree_try_catch_command::eval): Add do_catch_code cleanup function |
|
2540 to unwind-protect stack before resetting buffer_error_messages. |
|
2541 Use unwind-protect to save and restore buffer_error_messages. |
|
2542 If there is no catch code, discard the cleanup function and run |
|
2543 the unwind-protect for buffer_error_messages. |
|
2544 |
|
2545 * error.cc (bind_global_error_variable): Avoid dereferencing |
|
2546 error_message_buffer if it is NULL. |
|
2547 |
3489
|
2548 * parse.y (evaluating_function_body): New global flag. |
|
2549 * ov-usr-fcn.cc (octave_user_function::do_index_op): |
|
2550 Protect and set it here. |
|
2551 * parse.y (make_break_command, make_return_command): Check it here. |
|
2552 |
|
2553 * error.cc (warning_state): New global flag. |
|
2554 (warning): Set it here. |
|
2555 * lex.l (reset_parser): Clear it here. |
|
2556 * parse.y (fold): Check it here. |
|
2557 |
3484
|
2558 2000-01-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2559 |
3485
|
2560 * pt-walk.h (tree_walker::visit_do_until_command): New pure virtual. |
|
2561 * pt-pr-code.cc (tree_print_code::visit_do_until_command): |
3484
|
2562 New function. |
3485
|
2563 * pt-loop.h (tree_do_until_command): New class. |
3484
|
2564 (tree_while_command::expr, tree_while_command::list): |
|
2565 Now protected instead of private. |
3485
|
2566 * parse.y (make_do_until_command): New function. |
|
2567 (loop_command): Recognize do-until statement. |
3484
|
2568 (DO, UNTIL): New tokens. |
|
2569 |
|
2570 * input.cc (match_sans_spaces): Require non-blank part of test |
|
2571 string to match standard string exactly. |
|
2572 |
3483
|
2573 2000-01-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2574 |
|
2575 * oct-stream.h (scanf_format_elt::char_class): New struct elt. |
|
2576 Add arg to constructor. |
|
2577 (scanf_format_elt::special_conversion): New enum. |
|
2578 * oct-stream.cc (scanf_format_list::add_elt_to_list): New arg, |
|
2579 char_class. Pass it to scanf_format_elt constructor. |
|
2580 (scanf_format_list::scanf_format_list): Create separate list |
|
2581 elements for whitespace and literal conversions. |
|
2582 (expand_char_class): New function. |
|
2583 (scanf_format_list::finish_conversion): Extract character class |
|
2584 (not including the delimiting brackets) and expand the list of |
|
2585 characters. Pass the result to add_elt_to_list. |
|
2586 (scanf_format_list::all_character_conversions): Also accept '^', |
|
2587 scanf_format_elt::literal_conversion, and |
|
2588 scanf_format_elt::whitespace_conversion types too. |
|
2589 (DO_WHITESPACE_CONVERSION, BEGIN_CHAR_CLASS_CONVERSION, |
|
2590 BEGIN_C_CONVERSION, BEGIN_S_CONVERSION, DO_LITERAL_CONVERSION): |
|
2591 New macros. |
|
2592 (octave_base_stream::do_scanf, octave_base_stream::do_oscanf): |
|
2593 Use them to avoid code duplication. |
|
2594 Handle whitespace, literal text, and character class conversions. |
|
2595 (octave_base_stream::oscanf): Loop over all format list elements, |
|
2596 not just the first nconv elements. Clear status flags on is for |
|
2597 all streams. |
|
2598 |
3476
|
2599 2000-01-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2600 |
3480
|
2601 * xdiv.cc (result_ok): Just check value of info. |
|
2602 (solve_singularity_warning): New function. |
|
2603 (xleftdiv, xdiv): Pass pointer to solve_singularity_warning to |
|
2604 solve function. |
|
2605 |
|
2606 * lex.l (handle_identifier): Set next_tok_is_eq if we are looking |
|
2607 at `=', but not if we are looking at `=='. |
|
2608 |
3478
|
2609 * pt-pr-code.cc (tree_print_code::visit_unwind_protect_command): |
|
2610 Print `unwind_protect_cleanup', not `cleanup_code'. |
|
2611 |
3477
|
2612 * pager.cc (octave_pager_buf::flush_current_contents_to_diary): |
|
2613 New function. |
|
2614 (octave_pager_stream::flush_current_contents_to_diary): |
|
2615 Ditto. |
|
2616 (close_diary_file): Use the new octave_pager_stream function to |
|
2617 try to flush the current buffer to the diary when it is closed. |
|
2618 |
3476
|
2619 * variables.cc (Fexist): Return 6 for built-in constants. |
|
2620 |
|
2621 * pt-plot.cc (Fgshow): Don't append " " after last arg. |
|
2622 (Fgset): Likewise. |
|
2623 |
3472
|
2624 2000-01-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2625 |
|
2626 * ov-base-mat.h (octave_base_matrix::length): Return 0 for empty |
|
2627 arrays. |
|
2628 |
3465
|
2629 2000-01-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2630 |
|
2631 * DLD-FUNCTIONS/time.cc (Fstrptime): New function. |
|
2632 |
|
2633 * load-save.cc (Fsave): Add missing else. |
|
2634 |
3442
|
2635 2000-01-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2636 |
3444
|
2637 * DLD-FUNCTIONS/gammainc.cc (Fgammainc): Texinfoize doc string. |
3445
|
2638 * ov-typeinfo.cc (Ftypeinfo): Ditto. |
3446
|
2639 * parse.y (Vwarn_future_time_stamp): Ditto. |
|
2640 * DLD-FUNCTIONS/minmax.cc (Fmax, Fmin): Ditto. |
3445
|
2641 * ov-usr-fcn.cc (Fva_arg, Fva_start, Fvr_val): Ditto. |
3446
|
2642 * defaults.cc (VOCTAVE_HOME, Frehash): Ditto. |
|
2643 * toplev.cc (Fwarranty, Fcasesen): Ditto. |
|
2644 * utils.cc (Fdo_string_escapes, Ffile_in_loadpath): Ditto. |
|
2645 * variables.cc (F__dump_symtab_info__, F__dump_symbol_info__): Ditto. |
3447
|
2646 * ov-list.cc (Flist, Fappend, Fnth, Freverse, Fsplice): Ditto. |
3448
|
2647 * input.cc (Fread_readline_init_file): Ditto. |
|
2648 * file-io.cc (Fis_stream): Ditto. |
|
2649 * ov-cell.cc (Fiscell, Fcell): Ditto. |
|
2650 * pt-assign.cc (Vprint_rhs_assign_val): Ditto. |
|
2651 * pt-decl.cc (Vinitialize_global_variables): Ditto. |
|
2652 * symtab.cc (Vvariables_can_hide_functions): Ditto. |
3443
|
2653 |
3442
|
2654 * pt-plot.cc (Fgraw, Fgset, Fgshow, Vgnuplot_command_plot, |
|
2655 Vgnuplot_command_replot, Vgnuplot_command_splot, |
|
2656 Vgnuplot_command_using, Vgnuplot_command_with, |
|
2657 Vgnuplot_command_axes, Vgnuplot_command_title, |
|
2658 Vgnuplot_command_end): Texinfoize doc strings. |
|
2659 |
3447
|
2660 * oct-procbuf.cc (__kluge_procbuf_delay__): Rename from |
|
2661 kluge_procbuf_delay. Texinfoize doc string. |
|
2662 |
3427
|
2663 2000-01-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2664 |
|
2665 * parse.y (gobble_leading_whitespace): Discard first space character |
|
2666 after consecutive comment characters. |
|
2667 * lex.l (grab_help_text): Ditto. |
|
2668 |
3428
|
2669 * lex.l (Vwhitespace_in_literal_matrix, Vwarn_separator_insert, |
|
2670 Vwarn_single_quote_string): Texinfoize doc string. |
|
2671 |
3418
|
2672 2000-01-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2673 |
3419
|
2674 * ov.h, ov.cc (octave_value::column_vector_value, |
|
2675 octave_value::row_vector_value, |
|
2676 octave_value::complex_column_vector_value, |
|
2677 octave_value::complex_row_vector_value): New functions. |
|
2678 (octave_value::vector_value): Now returns Array<double>. |
|
2679 (octave_value::complex_vector_value): Now returns Array<Complex>. |
|
2680 Sprinkle conversions where necessary. |
|
2681 |
3418
|
2682 * ov.cc (Vprefer_column_vectors): Now static. |
|
2683 * ov.h (octave_value (const ComplexRowVector&), |
|
2684 octave_value (const ComplexColumnVector&), |
|
2685 octave_value (const RowVector&), octave_value (const ColumnVector&)): |
|
2686 Delete second arg. Change all callers. |
3419
|
2687 |
3418
|
2688 * oct-obj.h (octave_value_list (const RowVector&), |
|
2689 octave_value_list (const ColumnVector&), |
|
2690 octave_value_list (const ComplexRowVector&), |
|
2691 octave_value_list (const ComplexColumnVector&)): Likewise. |
|
2692 * ov-cx-mat.h, ov-cx-mat.cc |
|
2693 (octave_complex_matrix (const ComplexRowVector&), |
|
2694 (octave_complex_matrix (const ComplexColumnVector&)): |
|
2695 Delete second arg, simply create object with orientation |
|
2696 corresponding to vector arg. Move constructors to class decl. |
|
2697 * ov-re-mat.h, ov-re-mat.cc (octave_matrix (const RowVector&), |
|
2698 (octave_matrix (const ColumnVector&)): |
|
2699 Delete second arg, simply create object with orientation |
|
2700 corresponding to vector arg. Move constructors to class decl. |
|
2701 |
3411
|
2702 2000-01-07 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
2703 |
|
2704 * mappers.cc (Fconj, Ferf, Ferfc, Fgamma, Fimag, Flgamma, Flog10, |
|
2705 Freal, Fround): Add @seealso{...} to doc strings. |
|
2706 |
3408
|
2707 2000-01-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2708 |
3410
|
2709 * oct-stream.cc (do_scanf): Do the right thing again for character |
|
2710 conversions. |
|
2711 |
3408
|
2712 * help.cc (display_help_text): Also strip out leading spaces |
|
2713 before Texinfo @-commands before sending doc string to makeinfo. |
|
2714 (display_help_text): Improve format of `See also' string. |
|
2715 |
3405
|
2716 2000-01-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2717 |
|
2718 * help.cc (display_help_text): Pass a definition for @seealso |
|
2719 through the filter. |
|
2720 |
3400
|
2721 1999-12-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2722 |
|
2723 * lex.l (Vwarn_single_quote_string): New variable. |
|
2724 (syms_of_lex): DEFVAR it. |
|
2725 (warn_single_quote_string): New function. |
|
2726 (gripe_single_quote_string): New function. |
|
2727 Use new stuff to allow warnings for code that uses single quote |
|
2728 characters to introduce string constants. |
|
2729 |
3399
|
2730 1999-12-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2731 |
|
2732 * mkbuiltins: Add #undef quad to generated file. |
|
2733 |
3388
|
2734 1999-12-15 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2735 |
|
2736 * lex.l (Vwarn_separator_insert): New variable. |
|
2737 (syms_of_lex): DEFVAR it. |
|
2738 (warn_separator_insert): New function. |
|
2739 (maybe_warn_separator_insert): New function. |
|
2740 Use new stuff to allow warnings for code that might result in |
|
2741 auto-insertion of commas or semicolons, depending on the value of |
|
2742 whitespace_in_literal_matrix. |
|
2743 |
|
2744 * parse.y (Fsource): Record function file name here too. |
|
2745 |
3377
|
2746 1999-12-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2747 |
|
2748 * variables.cc (link_to_global_variable): If the local symbol is |
|
2749 not a variable, don't bother to clear it. Instead, just redefine |
|
2750 it by aliasing to the global symbol. |
|
2751 |
3372
|
2752 1999-11-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2753 |
3373
|
2754 * DLD-FUNCTIONS/balance.cc (Fbalance): Texinfoize doc string. |
|
2755 * DLD-FUNCTIONS/det.cc (Fdet): Ditto. |
|
2756 * DLD-FUNCTIONS/eig.cc (Feig): Ditto. |
|
2757 * DLD-FUNCTIONS/givens.cc (Fgivens): Ditto. |
|
2758 * DLD-FUNCTIONS/inv.cc (Finv): Ditto. |
|
2759 * DLD-FUNCTIONS/chol.cc (Fchol): Ditto. |
|
2760 * DLD-FUNCTIONS/hess.cc (Fhess): Ditto. |
|
2761 * DLD-FUNCTIONS/lu.cc (Flu): Ditto. |
|
2762 * DLD-FUNCTIONS/qr.cc (Fqr): Ditto. |
|
2763 * DLD-FUNCTIONS/schur.cc (Fschur): Ditto. |
|
2764 * DLD-FUNCTIONS/svd.cc (Fsvd): Ditto. |
|
2765 * DLD-FUNCTIONS/expm.cc (Fexpm): Ditto. |
|
2766 * DLD-FUNCTIONS/log.cc (Flogm, Fsqrtm): Ditto. |
|
2767 * DLD-FUNCTIONS/syl.cc (Fsyl): Ditto. |
|
2768 * DLD-FUNCTIONS/pinv.cc (Fpinv): Ditto. |
|
2769 * DLD-FUNCTIONS/qz.cc (Fqz): Ditto. |
|
2770 * DLD-FUNCTIONS/dassl.cc (Fdassl, Fdassl_options): Ditto. |
|
2771 * DLD-FUNCTIONS/lsode.cc (Flsode, Flsode_options): Ditto. |
|
2772 * data.cc (Flength, Fsize, Fisempty): Ditto. |
3372
|
2773 * sysdep.cc (Fkbhit): Ditto. |
|
2774 * input.cc (Fkeyboard, Finput): Ditto. |
|
2775 * variables.cc (ans): Ditto. |
|
2776 * pr-output.cc (Fdisp, Fformat): Ditto. |
|
2777 * ov.cc (Vprint_answer_id_name): Ditto. |
3373
|
2778 * defaults.cc (IMAGEPATH): Ditto. |
|
2779 * error.cc (Ferror, Fwarning, Fusage, error_text, beep_on_error): |
|
2780 Ditto. |
3372
|
2781 * load-save.cc (Fload, Fsave, Vdefault_save_format, |
|
2782 Vsave_precision): Ditto. |
|
2783 * file-io.cc (Ffflush, Ffopen, Ffclose, Ffputs, Ffgetl, Ffgets, |
|
2784 Ffprintf, Fsprintf, Fscanf, Ffscanf, Fsscanf, Ffread, Ffwrite, |
|
2785 Ffseek, Fftell, Ffeof, Fferror, Ffreport, Ftmpnam, Vstdin_file, |
|
2786 Vstdout_file, Vstderr_file, SEEK_SET, SEEK_CUR, SEEK_END): Ditto. |
|
2787 * pager.cc (Vpager_binary, Vpage_output_immediately, |
|
2788 Vpage_screen_output, Fmore): Ditto. |
|
2789 |
3369
|
2790 1999-11-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2791 |
|
2792 * utils.cc (Vtreat_neg_dim_as_zero): Texinfoize doc string. |
|
2793 * DLD-FUNCTIONS/find.cc (Ffind): Ditto. |
|
2794 * DLD-FUNCTIONS/rand.cc (Frand, Frandn): Ditto. |
|
2795 * DLD-FUNCTIONS/sort.cc (Fsort): Ditto. |
|
2796 * mappers.cc (Fisinf, Fisnan, Ffinite): Ditto. |
|
2797 * data.cc (Fall, Fany, Fdiag, Fones, Fzeros, Feye, Flinspace): Ditto. |
3371
|
2798 * defaults.cc (Vloadpath, Vdefault_loadpath): Ditto. |
|
2799 * parse.y (Feval, Ffeval, Vdefault_eval_print_flag, |
|
2800 Vwarn_missing_semicolon, Vwarn_function_name_clash, Fsource): Ditto. |
|
2801 * ov-usr-fcn.cc (Vmax_recursion_depth, Vdefault_return_value, |
|
2802 Vdefine_all_return_values, Vreturn_last_computed_value): Ditto. |
|
2803 * ov.cc (Vok_to_lose_imaginary_part, Vdo_fortran_indexing, |
|
2804 Vprefer_column_vectors, Vresize_on_range_error, |
|
2805 Vwarn_divide_by_zero): Ditto. |
|
2806 * pt-stmt.cc (Vsilent_functions): Ditto. |
|
2807 * variables.cc (Vignore_function_time_stamp): Ditto. |
|
2808 * dynamic-ld.cc (Vwarn_reload_forces_clear): Ditto. |
3369
|
2809 |
3367
|
2810 1999-11-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2811 |
3368
|
2812 * DLD-FUNCTIONS/fft.cc (Ffft): Texinfoize doc string. |
|
2813 * DLD-FUNCTIONS/ifft.cc (Fifft): Ditto. |
|
2814 * DLD-FUNCTIONS/fft2.cc (Ffft2): Ditto. |
|
2815 * DLD-FUNCTIONS/ifft2.cc (Fifft2): Ditto. |
|
2816 * DLD-FUNCTIONS/filter.cc (Ffilter): Ditto. |
|
2817 * DLD-FUNCTIONS/quad.cc (Fquad, Fquad_options): Ditto. |
|
2818 * DLD-FUNCTIONS/colloc.cc (Fcolloc): Ditto. |
|
2819 * DLD-FUNCTIONS/fsolve.cc (Ffsolve, Ffsolve_options): Ditto. |
|
2820 * defaults.cc (Veditor): Ditto. |
|
2821 * pt-plot.cc (Vautomatic_replot, Vgnuplot_binary, |
|
2822 Vgnuplot_has_frames, Vgnuplot_has_multiplot, Fclearplot, |
|
2823 Fcloseplot, Fpurge_tmp_files, Fishold, Fhold): |
3367
|
2824 |
|
2825 * Makefile.in (parse.cc): Expect 11 shift/reduce conflicts now. |
|
2826 |
3361
|
2827 1999-11-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2828 |
3366
|
2829 * parse.y (Vwarn_assign_as_truth_value, Vwarn_variable_switch_label): |
|
2830 Texinfoize doc strings. |
|
2831 |
3365
|
2832 * DLD-FUNCTIONS/pinv.cc (Fpinv): Texinfoize doc string. |
|
2833 |
3364
|
2834 * defun-int.h (DEFUN_DLD_INTERNAL): New macro. |
|
2835 * defun-dld.h [MAKE_BUILTINS] (DEFUN_DLD): Simply expand to |
|
2836 DEFUN_DLD_INTERNAL. |
|
2837 * mkbuiltins: Generate code to define DEFUN_DLD_INTERNAL. |
|
2838 * mkgendoc: Likewise. |
|
2839 |
3363
|
2840 * Makefile.in (gendoc.o): Don't optimize when creating gendoc. |
3364
|
2841 (%.dc : %.cc): Delete rule. |
3363
|
2842 |
3361
|
2843 * pt-decl.cc (Vdefault_global_variable_value): Texinofize doc string. |
|
2844 * variables.cc (Fclear, Fdocument, Fexist, Fis_global, Fwho): Ditto. |
|
2845 * help.cc (Ftype, Fwhich): Ditto. |
|
2846 * ov.cc (Vstruct_levels_to_print, Vimplicit_str_to_num_ok): Ditto. |
|
2847 * data.cc (Fis_struct, Fstruct_elements, Fstruct_constains): Ditto. |
|
2848 * strfns.cc (Fisstr, Fsetstr): Ditto. |
|
2849 * pt-mat.cc: (Fimplicit_num_to_str_ok, Fstring_fill_char): Ditto. |
|
2850 * utils.cc (Fundo_string_escapes): Ditto. |
|
2851 * mappers.cc: (Fisalnum, Fisalpha, Fisascii, Fiscntrl, Fisdigit, |
|
2852 Fisgraph, Fislower, Fisprint, Fispunct, Fisspace, Fisupper, |
|
2853 Fisxdigit, Ftoascii, Ftolower, Ftoupper): Ditto. |
|
2854 |
3357
|
2855 1999-11-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2856 |
3360
|
2857 * syscalls.cc (symbols_of_syscalls): Use DEFCONSTX to define |
|
2858 Octave constants for C macros like O_WRONLY. |
|
2859 |
3357
|
2860 * oct-lvalue.cc (octave_lvalue::set_index): Disallow expressions |
|
2861 like x(i)(j) = rhs. |
|
2862 |
3355
|
2863 1999-11-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2864 |
3356
|
2865 * symtab.cc (symbol_record::type_as_string): New function. |
3355
|
2866 |
|
2867 * symtab.cc (symbol_record::which): New functions. |
|
2868 * help.cc (do_which): New functions. |
|
2869 (Fwhich): Use them. |
|
2870 |
|
2871 * help.cc (help_from_symbol_table, help_from_file): New functions. |
|
2872 (builtin_help): Use them. |
|
2873 |
|
2874 * help.cc (do_type): New function. |
3356
|
2875 (symbol_record::type): New function. |
3355
|
2876 (Ftype): Use them. |
|
2877 |
|
2878 * help.cc (print_symbol_type): Delete. |
|
2879 |
|
2880 * symtab.cc (symbol_table::name_list): Delete count arg. |
|
2881 (symbol_table::symbol_list): Likewise. |
|
2882 (symbol_table::glob): Likewise. Also return Array<symbol_record *> |
|
2883 instead of symbol_record **. |
|
2884 Change all callers. |
|
2885 * help.cc (names, display_symtab_names): Delete count arg. |
|
2886 |
|
2887 * help.cc (print_symbol_type, Ftype): No longer need to look up |
|
2888 fcn_file_name in the loadpath. |
|
2889 |
|
2890 * help.cc (print_symbol_type): Handle dld functions. |
|
2891 (help_from_symbol_table, help_from_file): New functions. |
|
2892 (builtin_help): Use them. |
|
2893 |
3354
|
2894 1999-11-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2895 |
|
2896 * ov-cell.cc (Fiscell, Fcell): New Functions. |
|
2897 (octave_cell::do_index_op): New function. |
|
2898 |
|
2899 * utils.cc (get_dimensions): Move here from data.cc and make extern. |
|
2900 (Vtreat_neg_dim_as_zero, treat_neg_dim_as_zero): Likewise. |
|
2901 (symbols_of_utils): New function. |
|
2902 |
|
2903 * data.cc (fill_matrix (const octave_value_list&, double, |
|
2904 const char*)): New function. |
|
2905 (Fones, Fzeros): Use it to avoid some code duplication. |
|
2906 |
3352
|
2907 1999-11-15 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2908 |
|
2909 * pt-cell.h, pt-cell.cc, ov-cell.h, ov-cell.cc, Cell.h, Cell.cc: |
|
2910 New files. |
|
2911 * Makefile.in: Add them to the appropriate lists. |
|
2912 * pt-walk.h (visit_cell (tree_cell&): New pure virtual. |
|
2913 * pt-pr-code.cc (tree_print_code::visit_cell (tree_cell&)): New |
|
2914 function. |
|
2915 * TEMPLATE-INST/Array-tc.cc: Instantiate 2D arrays of octave_value |
|
2916 objects. |
|
2917 * pt-all.h: Include pt-cell.h. |
|
2918 * ov.h, ov.cc (octave_value::is_cell, octave_value::cell_value): |
|
2919 New functions. |
|
2920 * ov-base.h, ov-base.cc (octave_value::is_cell, |
|
2921 octave_value::cell_value): Provide defaults. |
|
2922 * lex.h, lex.l: Handle `{' and `}' tokens (for cell arrays). |
|
2923 (bracketflag): Rename from braceflag. |
|
2924 (handle_close_bracket): Rename from handle_close_brace. |
|
2925 (class bracket_brace_paren_nesting_level): Rename from |
|
2926 brace_paren_nesting_level. |
|
2927 (bracket_brace_paren_nesting_level::bracket, |
|
2928 bracket_brace_paren_nesting_level::is_bracket): New functions to |
|
2929 keep count of nesting level for `[' and `]'. |
|
2930 (bracket_brace_paren_nesting_level::brace, |
|
2931 bracket_brace_paren_nesting_level::is_brace): Now keeps count of |
|
2932 nesting level for `{' and `}'. |
|
2933 * parse.y (tree_cell_type): New type. |
|
2934 Give '{' the same precedence and associativity as '(' and '.' |
|
2935 (matrix_rows, matrix_rows1): Rename from rows, rows1. |
|
2936 (cell, cell_rows, cell_rows1): New non-terminals. |
|
2937 (cell_or_matrix_row): Rename from matrix_row. |
|
2938 (primary_expr): Accept cell here. |
|
2939 (postfix_expr): Allow indexing using '{' arg_list '}'. |
|
2940 (finish_cell): New function. |
|
2941 |
3350
|
2942 1999-11-12 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2943 |
|
2944 * utils.cc (jump_to_top_level): No longer declared extern "C". |
|
2945 |
|
2946 * cutils.c (octave_strcasecmp, octave_strncasecmp): New functions. |
|
2947 * utils.cc (almost_match): Call octave_strncasecmp instead of |
|
2948 calling strncasecmp directly. |
|
2949 |
3347
|
2950 1999-11-10 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2951 |
|
2952 * parse.y: Don't define warn_reload_forces_clear here. |
|
2953 |
|
2954 * Makefile.in (DISTFILES): Include DOCSTRINGS. |
|
2955 |
3340
|
2956 1999-11-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2957 |
3343
|
2958 * sighandlers.cc (install_signal_handlers): Don't install |
|
2959 sigwinch_handler. |
|
2960 |
3342
|
2961 * oct-iostrm.h (octave_istream::eof, octave_ostream::eof): Provide |
|
2962 implementation for these. |
|
2963 |
|
2964 * oct-stream.cc (octave_base_stream::do_scanf): |
|
2965 The stdin stream is only special if we are interactive. |
|
2966 (octave_base_stream::scanf): Ditto. |
|
2967 (octave_base_stream::do_oscanf): Ditto. |
|
2968 (octave_base_stream::oscanf): Ditto. |
|
2969 |
3340
|
2970 * ov.h (octave_value::is_stream): New predicate. |
|
2971 * ov-file.h (octave_file::is_stream): Return true. |
|
2972 * file-io.cc (Fis_stream): New function. |
|
2973 |
|
2974 * ov-file.h (class octave_file): stream is now an object instead |
|
2975 of pointer. |
|
2976 * ov-file.cc (octave_file::print_raw): Handle stream as object |
|
2977 instead of pointer. Also print stream status. |
|
2978 |
|
2979 * ov-base.cc (octave_base_value::stream_value): Return object |
|
2980 instead of pointer. |
|
2981 |
|
2982 * ov.cc (octave_value::stream_value): Return object instead of pointer. |
|
2983 (octave_value::octave_value (const octave_stream&)): Take const |
|
2984 reference instead of pointer arg. |
|
2985 |
|
2986 * TEMPLATE-INST/Array-os.cc: Instantiate Arrays of octave_stream |
|
2987 objects, not pointers to them. |
|
2988 |
|
2989 * OPERATORS/op-fil-b.cc: Cope with octave_stream class changes. |
|
2990 * OPERATORS/op-fil-bm.cc: Likewise. |
|
2991 * OPERATORS/op-fil-cm.cc: Likewise. |
|
2992 * OPERATORS/op-fil-cs.cc: Likewise. |
|
2993 * OPERATORS/op-fil-lis.cc: Likewise. |
|
2994 * OPERATORS/op-fil-m.cc: Likewise. |
|
2995 * OPERATORS/op-fil-rec.cc: Likewise. |
|
2996 * OPERATORS/op-fil-s.cc: Likewise. |
|
2997 * OPERATORS/op-fil-str.cc: Likewise. |
|
2998 * file-io.cc: Likewise. |
|
2999 * syscalls.cc (Fdup): Likewise. |
|
3000 |
|
3001 * oct-fstrm.cc, oct-fstrm.h, oct-iostrm.cc, oct-iostrm.h, |
|
3002 oct-prcstrm.cc, oct-prcstrm.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
3003 oct-stream.cc, oct-stream.h, oct-strstrm.cc, oct-strstrm.h: |
|
3004 Rewrite to allow octave_stream objects to be used like values |
|
3005 instead of having to use pointers. |
|
3006 |
3337
|
3007 1999-11-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3008 |
|
3009 * oct-stream.cc (octave_base_stream::do_scanf): If it looks like |
|
3010 we have a matching failure, then reset the failbit in the stream |
|
3011 state. |
|
3012 (octave_base_stream::do_oscanf): Likewise. |
|
3013 |
3332
|
3014 1999-11-02 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
3015 |
3361
|
3016 * help.cc (Fhelp): Texinfoize doc string. |
|
3017 * input.cc (Fecho, Fcompletion_matches): Ditto. |
|
3018 * oct-hist.cc (Fedit_history, Fhistory, Frun_history): Ditto. |
|
3019 * pager.cc (Fdiary): Ditto. |
|
3020 * sysdep.cc (Fclc): Ditto. |
|
3021 * toplev.cc (Fquit, Fatexit): Ditto. |
3332
|
3022 |
|
3023 1999-11-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3024 |
|
3025 * lex.l (yywrap): No longer static. |
|
3026 (have_continuation): Declare input character as int, not char, so |
|
3027 comparison to EOF will work. |
|
3028 |
3330
|
3029 1999-11-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3030 |
|
3031 * defun.cc (print_usage): Use display_help_text instead of sending |
|
3032 help message directly to octave_stdout. |
|
3033 |
3325
|
3034 1999-10-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3035 |
|
3036 * defun-dld.h (INSTALL_DLD_FCNS, INSTALL_DLD_FCN): Delete definitions. |
|
3037 * DLD-FUNCTIONS/dassl.cc: Don't use INSTALL_DLD_FCN or |
|
3038 INSTALL_DLD_FCNS macros. They are not necessary with the new code |
|
3039 in dynamic-ld.cc. |
|
3040 * DLD-FUNCTIONS/lsode.cc: Ditto. |
|
3041 * DLD-FUNCTIONS/fsolve.cc: Ditto. |
|
3042 * DLD-FUNCTIONS/quad.cc: Ditto. |
|
3043 * DLD-FUNCTIONS/time.cc: Ditto. |
|
3044 * DLD-FUNCTIONS/besselj.cc: Ditto. |
|
3045 * DLD-FUNCTIONS/getgrent.cc: Ditto. |
|
3046 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
3047 * DLD-FUNCTIONS/inv.cc: Ditto. |
|
3048 * DLD-FUNCTIONS/log.cc: Ditto. |
|
3049 * DLD-FUNCTIONS/minmax.cc: Ditto. |
|
3050 * DLD-FUNCTIONS/rand.cc: Ditto. |
|
3051 |
|
3052 * dynamic-ld.cc, dynamic-ld.h: Major rewrite to allow reloading of |
|
3053 dynamically linked functions. |
|
3054 |
|
3055 * symtab.cc (symbol_record::replace_all_defs): Don't allow top |
|
3056 definition to be NULL. |
|
3057 (symbol_table::clear): Allow dynamically linked functions to be |
|
3058 cleared. |
|
3059 |
|
3060 * symtab.h (TYPE): New enum value, DLD_FUCTION. |
|
3061 (symbol_type): Now 8 bits wide. |
|
3062 (SYMTAB_ALL_TYPES): Include DLD_FUNCTION. |
|
3063 (symbol_record::symbol_def::is_function): Also recognize dld functions. |
|
3064 (symbol_record::symbol_def::is_dld_function): New function. |
|
3065 (symbol_record::is_dld_function): Ditto. |
|
3066 |
|
3067 * defun.cc (install_dld_function): New function. |
|
3068 * defun-int.h: Provide declaration here. |
|
3069 (octave_dld_fcn_installer): New typedef. |
|
3070 (DEFINE_FUN_INSTALLER_FUN): Installer function now takes an |
|
3071 oct_shlib object as an arg. Allow installation of a function to |
|
3072 happen more than once. |
|
3073 |
|
3074 * octave.cc (initialize_error_handlers): Call |
|
3075 set_liboctave_warning_handler here too. |
|
3076 |
|
3077 * ov-builtin.h (is_builtin_function): Return true. |
|
3078 Data member is now protected, not private. |
|
3079 |
|
3080 * ov-fcn.h (is_dynamically_loaded_function): New predicate. |
|
3081 (unload): New function. |
|
3082 Data members are now protected, not private. |
|
3083 |
|
3084 * ov.h (is_builtin_function, is_dld_function): New predicates. |
|
3085 * ov-base.h (is_builtin_function, is_dld_function): Ditto. |
|
3086 |
|
3087 * parse.y (Vwarn_reload_forces_clear): New static flag. |
|
3088 (warn_reload_forces_clear): New function. |
|
3089 (symbols_of_parse): DEFVAR warn_reload_forces_clear. |
|
3090 |
|
3091 * variables.cc (Fclear): Look for dld functions too. |
|
3092 |
3770
|
3093 * ov-dld-fcn.cc, ov-dld-fcn.h: New files. |
3325
|
3094 * Makefile.in (OV_INCLUDES, OV_SRC): Add them to the lists. |
|
3095 |
|
3096 * Makefile.in (DEFVAR_PATTERN): Also match DEFCONSTX. |
|
3097 |
3321
|
3098 1999-10-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3099 |
3325
|
3100 * DLList.h, DLList.cc: New files. |
|
3101 * Makefile.in (INCLUDES, DIST_SRC): Add them to the lists. |
|
3102 |
3323
|
3103 * DLD-FUNCTIONS/lsode.cc (Flsode): Be sure to call |
|
3104 unwind_protect::run_frame before returning. |
|
3105 * DLD-FUNCTIONS/quad.cc (Fquad): Likewise. |
|
3106 * DLD-FUNCTIONS/fsolve.cc (Ffsolve): Likewise. |
|
3107 * DLD-FUNCTIONS/dassl.cc (Fdassl): Likewise. |
|
3108 |
|
3109 * load-save.cc (read_mat_ascii_data): When reading from |
|
3110 tmp_stream, check its state, not the state of is. |
|
3111 |
|
3112 * defun-dld.h (INSTALL_DLD_FCN, INSTALL_DLD_FCNS): New macros. |
|
3113 * DLD-FUNCTIONS/dassl.cc: Use them. |
|
3114 * DLD-FUNCTIONS/lsode.cc: Ditto. |
|
3115 * DLD-FUNCTIONS/fsolve.cc: Ditto. |
|
3116 * DLD-FUNCTIONS/quad.cc: Ditto. |
|
3117 * DLD-FUNCTIONS/time.cc: Ditto. |
|
3118 * DLD-FUNCTIONS/besselj.cc: Ditto. |
|
3119 * DLD-FUNCTIONS/getgrent.cc: Ditto. |
|
3120 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
3121 * DLD-FUNCTIONS/inv.cc: Ditto. |
|
3122 * DLD-FUNCTIONS/log.cc: Ditto. |
|
3123 * DLD-FUNCTIONS/minmax.cc: Ditto. |
|
3124 * DLD-FUNCTIONS/rand.cc: Ditto. |
|
3125 |
3322
|
3126 * data.cc (Flinspace): Let linspace functions handle errors. |
|
3127 |
3321
|
3128 * mkgendoc (print_doc_string): Handle quoted names. |
|
3129 |
|
3130 * file-io.cc (symbols_of_file_io): Use DEFCONSTX for SEEK_SET, |
|
3131 SEEK_CUR, and SEEK_END. |
|
3132 |
|
3133 * defun.h (DEFCONST): Just pass name, defn, and doc to |
|
3134 DEFCONST_INTERNAL. |
|
3135 (DEFCONSTX): Likewise, pass name, defn, and doc to DEFCONSTX_INTERNAL. |
|
3136 * defun-int.h [MKBUILTINS] (DEFCONST_INTERNAL): Likewise, pass |
|
3137 name, defn, and doc to XDEFCONST_INTERNAL. |
|
3138 [MKBUILTINS] (DEFCONSTX_INTERNAL): New macro. |
|
3139 (INSTALL_CONST): New macro. |
|
3140 [! MKBUILTINS] (DEFCONST_INTERNAL): Use it to handle details here. |
|
3141 [! MKBUILTINS] (DEFCONSTX_INTERNAL): Ditto. |
|
3142 * mkgendoc: Fix definition of XDEFCONST_INTERNAL to match. |
|
3143 * mkbuiltins: Ditto. |
|
3144 |
|
3145 * mkdefs: Match spaces before BEGIN_INSTALL_BUILTIN. |
|
3146 |
|
3147 * Makefile.in (DEFUN_PATTERN): Also match DEFUN_MAPPER. |
|
3148 |
|
3149 1999-10-26 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
3150 |
|
3151 * data.cc (VI, VInf, VJ, VNaN, Ve, Veps, Vfalse, Vi, Vinf, Vj, |
|
3152 Vnan, Vpi, Vrealmax, Vrealmin): Texinfoize doc strings. |
|
3153 * mappers.cc (Fabs, Facos, Facosh, Fangle, Farg, Fasin, Fasinh, |
|
3154 Fatan, Fatanh, Fceil, Fconj, Fcos, Fcosh, Ferf, Ferfc, Fexp, |
|
3155 Ffinite, Ffix, Ffloor, Fgamma, Fimag, Flgamma, Flog, Flog10, |
|
3156 Freal, Fround, Fsign, Fsin, Fsinh, Fsqrt, Ftan, Ftanh): Ditto. |
|
3157 |
|
3158 1999-10-23 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
3159 |
3361
|
3160 * data.cc (Fis_matrix): Texinfoize doc string. |
|
3161 * ov.cc (Vpropagate_empty_matrices): Ditto. |
|
3162 * pt-mat.cc: (Vempty_list_elements_ok): Ditto. |
|
3163 * pr-output.cc (Vfixed_point_format, Voutput_max_field_width, |
|
3164 Voutput_precision, Vprint_empty_dimensions, Vsplit_long_rows): |
|
3165 Ditto. |
3321
|
3166 |
|
3167 1999-10-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3168 |
3323
|
3169 * ov-usr-fcn.cc (octave_user_function::do_index_op): If |
|
3170 Vmax_recursion_depth is exceeded, call unwind_protect::run_frame |
|
3171 before returning. |
3321
|
3172 |
3308
|
3173 1999-10-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3174 |
3317
|
3175 * cutils.c (do_octave_usleep): Handle useconds > 1e6. |
|
3176 |
3308
|
3177 * variables.h (is_valid_function): Provide default values for the |
|
3178 string argument. |
|
3179 |
|
3180 * symtab.cc (variable_reference): Maybe print warning (or error) |
|
3181 about variables that hide functions of the same name. |
|
3182 (symbol_record::define (const octave_value&, unsigned int)): Ditto. |
|
3183 (Vvariables_can_hide_functions): New static variable. |
|
3184 (variables_can_hide_functions, symbols_of_symtab): New functions. |
|
3185 |
|
3186 * cutils.c: New file. |
|
3187 * Makefile.in (SOURCES): Add it to the list. |
|
3188 * utils.h: Declare octave_usleep here. |
|
3189 * dirfns.cc (Fls): Simply all octave_usleep. |
|
3190 * oct-procbuf.cc (octave_procbuf::open): Ditto. |
|
3191 * sysdep.cc (Fusleep): Ditto. |
|
3192 * toplev.cc (run_command_and_return_output): Ditto. |
|
3193 |
3305
|
3194 1999-10-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3195 |
3307
|
3196 * data.cc (make_diag (const octave_value&, const octave_value&)): |
|
3197 Delete special cases for scalars and simply attempt conversion of |
|
3198 first arg to a matrix value. If that fails, we will still see an |
|
3199 error message. |
|
3200 |
3305
|
3201 * Makefile.in (DISTFILES): Add mkgendoc to the list. |
|
3202 |
3296
|
3203 1999-10-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3204 |
3301
|
3205 * Makefile.in (stmp-pic): New target. |
|
3206 ($(PICOBJS)): Depend on stmp-pic, not pic. |
|
3207 |
|
3208 * ov.h (get_rep): New function. |
|
3209 |
|
3210 * help.cc (display_help_text): Pass definitions for VERSION, |
|
3211 OCTAVE_HOME, and TARGETHOSTTYPE to makeinfo. |
|
3212 |
|
3213 * DLD-FUNCTIONS/getgrent.cc: Texinfoize all doc strings. |
|
3214 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
3215 * DLD-FUNCTIONS/getrusage.cc: Ditto. |
|
3216 * DLD-FUNCTIONS/time.cc: Ditto. |
|
3217 |
|
3218 * defaults.cc (EXEC_PATH, OCTAVE_VERSION): Texinfoize doc strings. |
|
3219 * dirfns.cc (Fcd, Fls, Fpwd, Freaddir, Fmkdir, Frmdir, Frename, |
|
3220 Fglob, Ffnmatch): Ditto. |
|
3221 * file-io.cc (Fpopen, Fpclose, Fumask): Ditto. |
|
3222 * sysdep.cc (Fgetenv, Fputenv, Fpause, Fsleep, Fusleep, Fisieee, |
|
3223 Ftilde_expand): Ditto. |
|
3224 * toplev.cc (Fcomputer, Fsystem, Foctave_config_info): Ditto. |
|
3225 * utils.cc (Ffile_in_path): Ditto. |
|
3226 * syscalls.cc (Fdup2, Fexec, Ffcntl, Ffork, Fgetpgrp, Fgetpid, |
|
3227 Fgetppid, Fgetegid, Fgetgid, Fgeteuid, Fgetuid, Fmkfifo, Fpipe, |
|
3228 Fstat, Funlink, Fwaitpid, F): Ditto. |
|
3229 (Flstat): Refer to stat for doc. |
|
3230 |
|
3231 |
3296
|
3232 * help.cc (looks_like_texinfo): New function. |
|
3233 (display_help_text): Use it to see if the doc string looks like |
|
3234 Texinfo source. If so, use makeinfo to format the text before |
|
3235 displaying it. |
|
3236 |
|
3237 * mkgendoc: New script. |
|
3238 * Makefile.in: Use it to create gendoc.cc, which is compiled and |
|
3239 run to create DOCSTRINGS file from sources. |
|
3240 |
3295
|
3241 1999-10-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3242 |
|
3243 * help.cc (help_from_info): Print `unable to find info' message if |
|
3244 try_info returns 127; otherwise, print `not indexed' message. |
|
3245 Don't sleep after printing `not indexed' message. |
|
3246 |
3292
|
3247 1999-10-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3248 |
|
3249 * parse.y (fold (tree_unary_expression *)): New function. |
|
3250 (make_prefix_op, make_postfix_op): Use it. |
|
3251 |
3281
|
3252 1999-10-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3253 |
3288
|
3254 * Makefile.in (oct-gperf.h): Ask for ANSI-C output from gperf |
|
3255 (requires gperf-2.7 or later). |
|
3256 |
3281
|
3257 * sighandlers.cc (sigwinch_handler): New function. |
|
3258 (install_signal_handlers): Install it. |
|
3259 |
3273
|
3260 Thu Sep 23 19:49:36 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3261 |
|
3262 * toplev.cc (Fsystem): For async case, use execl instead of |
|
3263 system, avoiding the need to exit after executing the subprocess. |
|
3264 |
3268
|
3265 Thu Sep 9 17:09:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3266 |
|
3267 * oct-stream.cc (get_size): Allow zero values. |
|
3268 (get_size): New arg, one_elt_size_spec. |
|
3269 (do_scanf_conv): New arg, `conv_count'. Change instantiation |
|
3270 requests and all callers. |
|
3271 (octave_base_stream::do_scanf): Improve scanning of strings. |
|
3272 (octave_base_stream::do_oscanf): Remove size limit on %s conversions. |
|
3273 |
|
3274 * oct-stream.cc (scanf_format_list::all_character_conversions): |
|
3275 Don't count %p as a character conversion. |
|
3276 |
|
3277 Tue Sep 7 08:31:04 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3278 |
|
3279 * pr-output.cc (set_real_matrix_format, set_complex_matrix_format): |
|
3280 Move check for fixed_point_format ahead of check for |
|
3281 int_or_inf_or_nan. |
|
3282 |
3264
|
3283 Thu Sep 2 11:54:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3284 |
|
3285 * oct-obj.cc (make_argv): Correctly handle empty strings as args. |
|
3286 |
3263
|
3287 Fri Aug 20 08:17:52 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3288 |
|
3289 * DLD-FUNCTIONS/quad.cc (quad): Delete unused label. |
|
3290 |
|
3291 * unwind-prot.cc (saved_variable::~saved_variable): Don't try to |
|
3292 delete gen_ptr_value here. |
|
3293 |
|
3294 Mon Aug 16 21:34:33 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3295 |
|
3296 * lex.l (next_token_is_sep_op): New function. |
|
3297 (handle_close_brace, maybe_unput_comma): Use it. |
|
3298 (have_continuation): Also handle CRLF here. |
|
3299 |
|
3300 Wed Aug 11 16:06:57 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3301 |
|
3302 * file-io.cc (Ffopen): Make fopen ("filename") work and imply that |
|
3303 MODE = "r". |
|
3304 |
3258
|
3305 Wed Jul 21 15:38:52 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3306 |
3259
|
3307 * help.cc (display_names_from_help_list): Sort names before |
|
3308 listing them. |
|
3309 (print_symbol_type, Ftype): Also handle built-in constants. |
|
3310 (LIST_SYMBOLS): Correct call to symbol_table::name_list. |
|
3311 (simple_help): List constants here too. List constants and |
|
3312 variables before functions, not after. Sort names before listing |
|
3313 them. |
|
3314 |
|
3315 * variables.cc (do_who): Display built-in constants in a separate |
|
3316 section. |
|
3317 |
|
3318 * error.cc (bind_global_error_variable, clear_global_error_variable): |
|
3319 Call bind_builtin_constant, not bind_builtin_variable to set |
|
3320 __error_text__. |
|
3321 * octave.cc (intern_argv): Likewise, for argv and __argv__. |
|
3322 |
|
3323 * defun.cc (install_builtin_constant): Move function guts to |
|
3324 bind_builtin_constant in variables.cc. |
|
3325 * variables.cc (bind_builtin_constant): New function. |
|
3326 |
3258
|
3327 * symtab.cc (symbol_record::define, symbol_record::variable_reference): |
|
3328 Handle constants the same as functions. |
|
3329 (symbol_record::link_to_builtin_variable): New function. |
|
3330 (symbol_record::define_builtin_const): New function. |
|
3331 (symbol_record::define_as_fcn): Delete unused function. |
|
3332 (symbol_record::read_only_error): |
|
3333 Handle constants the same as variables. |
|
3334 * symtab.h (symbol_record::BUILTIN_CONSTANT): New enum value. |
|
3335 (symbol_record::symbol_type): Increase width to 7 bits. |
|
3336 (symbol_record::symbol_def::is_constant): New function. |
|
3337 (symbol_record::symbol_def::is_builtin_constant): New function. |
|
3338 (symbol_record::is_constant): New function. |
|
3339 (symbol_record::is_builtin_constant): New function. |
|
3340 (SYMTAB_ALL_TYPES): Add symbol_record::BUILTIN_CONSTANT. |
|
3341 * variables.cc (link_to_builtin_variable): Delete unused function. |
|
3342 (link_to_builtin_or_function): Handle built-in constants here too. |
|
3343 |
|
3344 * defun.cc (install_builtin_variable): Delete inst_as_fcn arg. |
|
3345 (install_builtin_constant): New function. |
|
3346 (install_builtin_variable_as_function): Delete unused function. |
|
3347 * defun.h (DEFVAR_INTERNAL): Delete inst_as_fcn arg. |
|
3348 (DEFCONST_INTERNAL): New macro. |
|
3349 * defun.h (DEFVAR): Delete inst_as_fcn arg. |
|
3350 (DEFCONST, DEFCONSTX): Define using DEFCONST_INTERNAL instead of |
|
3351 DEFVAR_INTERNAL. |
|
3352 * data.cc, defaults.cc, error.cc, help.cc, input.cc, lex.l, |
|
3353 load-save.cc, oct-hist.cc, oct-procbuf.cc, ov-fcn.h, |
|
3354 ov-usr-fcn.cc, ov.cc, pager.cc, parse.y, pr-output.cc, |
|
3355 pt-assign.cc, pt-decl.cc, pt-mat.cc, pt-plot.cc, pt-stmt.cc, |
|
3356 toplev.cc, variables.cc: |
|
3357 Change all invocations of DEFVAR to match new definition. |
|
3358 |
|
3359 * data.cc (symbols_of_data): Add DEFCONSTs for true and false. |
|
3360 |
3255
|
3361 Thu Jul 15 10:59:42 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3362 |
3258
|
3363 * data.cc (Fis_bool, Fis_complex, Fisempty, Fisnumeric, Fis_list, |
|
3364 Fis_map, Fis_struct): Return bool object. |
|
3365 (Fisreal): New function. |
|
3366 |
|
3367 * ov-str-mat.h (octave_char_matrix_str): Only return true if |
|
3368 Vimplicit_str_to_num_ok is also true. |
|
3369 |
3255
|
3370 * DLD-FUNCTIONS/time.cc (Ftime): Print usage message if any |
|
3371 arguments are supplied. |
|
3372 |
|
3373 * variables.cc (symbol_out_of_date): Call octave_time for time stamps. |
|
3374 |
|
3375 * fn-cache.h (octave_fcn_file_name_cache::timestamp): |
|
3376 Now octave_time object. |
|
3377 |
|
3378 * strftime.c: Move to liboctave directory. |
|
3379 * Makefile.in (DIST_SRC): Delete from list. |
|
3380 |
|
3381 * ov-usr-fcn.h (octave_user_function::t_parsed, |
|
3382 octave_user_function::t_checked): Now octave_time objects. |
|
3383 (octave_user_function::time_parsed, |
|
3384 (octave_user_function::time_checked): |
|
3385 Return value is now octave_time object. |
|
3386 (octave_user_function::mark_fcn_file_up_to_date)): |
|
3387 Arg is now octave_time object. |
|
3388 |
|
3389 * ov-fcn.h (octave_function::mark_fcn_file_up_to_date)): |
|
3390 Arg is now octave_time object. |
|
3391 (octave_function::time_parsed, octave_function::time_checked): |
|
3392 Return value is now octave_time object. |
|
3393 |
|
3394 * input.cc (Vlast_prompt_time): Now an octave_time object. |
|
3395 (octave_gets): Call octave_time::stamp() to set Vlast_prompt_time. |
|
3396 |
|
3397 * DLD-FUNCTIONS/time.cc (mk_tm_map, extract_tm, Ftime, Fgmtime, |
|
3398 Flocaltime, Fmktime, Fstrftime): Use new classes defined in |
|
3399 liboctave/oct-time.cc instead of accessing C functions directly. |
|
3400 |
3252
|
3401 Wed Jul 14 17:38:46 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3402 |
|
3403 * systime.h: Move to liboctave directory. |
|
3404 * Makefile.in (INCLUDES): Delete it from the list |
|
3405 |
|
3406 Tue Jul 13 14:34:57 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3407 |
|
3408 * sighandlers.cc (sigchld_handler): Only wait for processes in |
|
3409 octave_child_list. |
|
3410 * toplev.cc (cmd_status): Delete unused static variable. |
|
3411 (cmd_death_handler): Delete unused function. |
|
3412 (run_command_and_return_output): Don't add cmd_death_handler to |
|
3413 octave_child_list. Simply extract command exit status from |
|
3414 calling close() on the procstream object. |
|
3415 |
3249
|
3416 Mon Jul 12 22:38:50 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3417 |
|
3418 * defun.h (DEFUN_MAPPER): Handle new args, d_b_map and c_b_map. |
|
3419 * defun-int.h (DEFUN_MAPPER_INTERNAL): Likewise. |
|
3420 * mappers.cc (install_mapper_functions): Supply new args to |
|
3421 all uses of DEFUN_MAPPER. |
|
3422 * ov-mapper.cc (octave_mapper::apply): Handle mapper functions |
|
3423 that return bool objects. |
|
3424 * ov-mapper.h (octave_mapper::d_b_mapper, octave_mapper::c_b_mapper): |
|
3425 New typedefs. |
|
3426 (octave_mapper::octave_mapper): Handle new mapper function types. |
|
3427 |
|
3428 * DLD-FUNCTIONS/minmax.cc: Do a better job of handling NaNs. |
|
3429 |
|
3430 Sun Jul 11 13:15:17 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3431 |
|
3432 * pr-output.cc (do_plus_format (ostream&, double)): New function. |
|
3433 (octave_print_internal (ostream&, double, bool)): Use it. |
|
3434 (octave_print_internal (ostream&, const Matrix&, bool, int)): Ditto. |
|
3435 |
|
3436 * pr-output.cc (do_plus_format (ostream&, const Complex&)): |
|
3437 New function. |
|
3438 (octave_print_internal (ostream&, const Complex&, bool)): Use it. |
|
3439 (octave_print_internal (ostream&, const ComplexMatrix&, bool, int)): |
|
3440 Ditto. |
|
3441 |
|
3442 Sun Jun 20 23:04:00 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3443 |
|
3444 * sysdep.cc: Include sys/ioctl.h if available. |
|
3445 |
|
3446 Sat Jun 19 12:07:16 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3447 |
|
3448 * variables.cc (do_who): Make pattern and multiple non-option |
|
3449 arguments work. |
|
3450 |
3246
|
3451 Mon Jun 7 09:54:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3452 |
|
3453 * lex.l (next_token_is_bin_op, next_token_is_postfix_unary_op, |
|
3454 handle_number): Delete yytext arg. Change all callers. |
|
3455 (next_token_is_postfix_unary_op): Check the first character |
|
3456 obtained from yyinput before calling it again. |
|
3457 (next_token_is_bin_op): Do a more thorough check. |
|
3458 (handle_identifier): Also enter token in local symbol table if the |
|
3459 following token is a dot and it looks like a binary operator. |
|
3460 (whitespace_in_literal_matrix): Now static. |
|
3461 |
|
3462 * lex.l: Always use unput, not yyunput. |
|
3463 |
3244
|
3464 Fri May 28 11:02:37 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3465 |
|
3466 * DLD-FUNCTIONS/chol.cc (Fchol): If two output arguments, never |
|
3467 produce error message. |
|
3468 |
3243
|
3469 Thu May 27 18:28:35 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3470 |
|
3471 * DLD-FUNCTIONS/chol.cc (Fchol): Also return info as second output. |
|
3472 |
|
3473 * DLD-FUNCTIONS/minmax.cc (max (const ComplexMatrix&, const |
|
3474 ComplexMatrix&)): Correct test for real columns only. |
|
3475 (min (const ComplexMatrix&, const ComplexMatrix&)): Likewise. |
|
3476 |
|
3477 Wed Apr 14 12:54:25 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3478 |
|
3479 * DLD-FUNCTIONS/dassl.cc (Fdassl): Prevent recursive calls. |
|
3480 * DLD-FUNCTIONS/fsolve.cc (Ffsolve): Likewise. |
|
3481 * DLD-FUNCTIONS/lsode.cc (Flsode): Likewise. |
|
3482 * DLD-FUNCTIONS/quad.cc (Fquad): Likewise. |
|
3483 |
|
3484 * file-io.cc (Fsscanf, Ffscanf): Doc fix. |
|
3485 |
3239
|
3486 Sat Mar 27 11:07:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3487 |
|
3488 * ov.h (octave_value::count): New function. |
|
3489 * symtab.cc (symbol_record::dump_symbol_info): New function. |
|
3490 * symtab.cc (symbol_record::symbol_def::dump_symbol_info): Ditto. |
|
3491 * variables.cc (F__dump_symbol_info__): Ditto. |
|
3492 |
|
3493 * pt-misc.cc (tree_parameter_list::clear): New function. |
|
3494 * ov-usr-fcn.h (octave_user_function::clear_args_passed): Ditto. |
|
3495 * ov-usr-fcn.cc (clear_param_list): New function. |
|
3496 (clear_args_passed): New function. |
|
3497 (octave_user_function::do_index_op): Use them to decrement |
|
3498 reference counts on local variables. |
|
3499 |
3238
|
3500 Fri Mar 26 00:51:53 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3501 |
|
3502 * Makefile.in (libraries): Use the libfoo.a(objects) method of |
|
3503 creating static libs. |
|
3504 |
|
3505 * defaults.cc (symbols_of_defaults): Initialize LOADPATH to |
|
3506 Vload_path, not ":". |
|
3507 |
|
3508 Thu Mar 18 12:09:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3509 |
|
3510 * data.cc (Fisnumeric): Fix typo. |
|
3511 |
|
3512 Thu Mar 4 02:17:04 1999 James Macnicol <jamesm@evans.ee.adfa.oz.au> |
|
3513 |
|
3514 * file-io.cc (Ffread, Ffwrite): Add uint16 and uint32 data types |
|
3515 to doc string. |
|
3516 |
|
3517 Wed Mar 3 11:55:17 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3518 |
|
3519 * lex.l (handle_string): Allow "" to pass through unchanged if |
|
3520 working on a gset command. |
|
3521 |
|
3522 Tue Mar 2 01:36:29 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3523 |
|
3524 * variables.cc (Fexist): If a variable isn't defined, only go on |
|
3525 to look for a global by the same name if we are at the top level. |
|
3526 |
|
3527 Fri Jan 29 02:18:36 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3528 |
|
3529 * version.h (OCTAVE_NAME_AND_VERSION): Say `GNU Octave', not just |
|
3530 Octave. |
|
3531 |
3234
|
3532 Thu Jan 28 21:29:16 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3533 |
|
3534 * toplev.cc (Fcomputer): Use CANONICAL_HOST_TYPE, not TARGET_HOST_TYPE. |
|
3535 (octave_config_info): Likewise. |
|
3536 * version.h: Ditto. |
|
3537 |
|
3538 * sysdep.cc (Fpause): Flush output before getting user input. |
|
3539 |
3233
|
3540 Wed Jan 27 14:18:29 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3541 |
|
3542 * Makefile.in (DEFFUN_PATTERN, DEFVAR_PATTERN): Use egrep again. |
|
3543 Make the patterns work with stupid egreps that don't like empty |
|
3544 elements in alternation patterns. |
|
3545 |
|
3546 Fri Jan 22 04:41:48 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3547 |
|
3548 * load-save.cc (save_ascii_data): Check for string type first, |
|
3549 then range, then the rest. |
|
3550 (save_binary_data): Ditto. |
|
3551 |
|
3552 * pager.cc (more_than_a_screenful): Accept length as second arg. |
|
3553 Handle long lines properly, assuming the terminal wraps long lines. |
|
3554 (octave_pager_buf::do_sync): Accept length of data as second arg. |
|
3555 Use write instead of << to put characters on output stream. |
|
3556 (octave_pager_buf::sync): Don't assume data ends at first NUL. |
|
3557 (octave_diary_buf::sync): Ditto. |
|
3558 |
|
3559 Thu Jan 21 22:15:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3560 |
|
3561 * load-save.cc (save_mat_binary_data): Check for string type |
|
3562 first, then range, then the rest. |
|
3563 |
|
3564 Wed Jan 20 12:01:14 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3565 |
|
3566 * oct-stream.cc (octave_base_stream::do_scanf): Handle short and |
|
3567 long ints correctly. |
|
3568 |
|
3569 Fri Jan 15 13:04:58 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3570 |
|
3571 * parse.y (end_error): Handle case of endswitch too. |
|
3572 |
|
3573 * Makefile.in: Use basic regular expressions and grep instead of |
|
3574 egrep to find files that contain DEFVAR, DEFCONST, or DEFUN. |
|
3575 |
|
3576 Wed Dec 9 14:14:11 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3577 |
|
3578 * Makefile.in (octave): Add $(RDYNAMIC_FLAG) to link command. |
|
3579 |
|
3580 Fri Dec 4 20:26:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3581 |
|
3582 * DLD-FUNCTIONS/time.cc (Fstrftime): Make it work even when not |
|
3583 using the GNU version of strftime, which allows passing NULL for |
|
3584 the buffer to determine the required size of the buffer. |
|
3585 |
3225
|
3586 Wed Dec 2 22:38:40 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3587 |
|
3588 * utils.cc (file_in_loadpath): Expect argc == 2, not 3. |
|
3589 |
|
3590 Tue Nov 24 23:38:19 1998 Eric Norum <eric@skatter.USask.Ca> |
|
3591 |
|
3592 * mkbuiltins: Also strip off leading `./' from file names. |
|
3593 * mkops: Ditto. |
|
3594 |
|
3595 Tue Nov 24 23:24:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3596 |
|
3597 * strftime.c: Surround everything with #ifdef HAVE_STRFTIME / #endif. |
|
3598 |
|
3599 * lex.h (YY_FATAL_ERROR): Call yy_falta_error after |
|
3600 jump_to_top_level to avoid gcc warning. |
|
3601 |
|
3602 Fri Nov 20 13:34:47 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3603 |
|
3604 * ov-bool.h, ov-bool.cc (class octave_bool): Derive from |
|
3605 octave_base_scalar and get common functions via derivation. |
|
3606 * ov-scalar.h, ov-scalar.cc (class octave_scalar): Ditto. |
|
3607 * ov-complex.h, ov-complex.cc (class octave_complex): Ditto. |
|
3608 |
|
3609 * ov-base-scalar.h, ov-base-scalar.cc (class octave_base_scalar): |
|
3610 New files for new class definition. Put common scalar data type |
|
3611 stuff here. |
|
3612 * Makefile.in (OV_INCLUDES, OV_SRC): Add them to the lists. |
|
3613 |
3221
|
3614 Thu Nov 19 14:30:25 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
3225
|
3615 |
3222
|
3616 * dynamic-ld.cc (octave_dynamic_loader::mangle_name): |
|
3617 Prepend underscore here. |
|
3618 (octave_dynamic_loader::load_fcn_from_dot_oct_file): Not here. |
|
3619 |
3221
|
3620 * ov-re-mat.h (octave_matrix_value): Delete experimental code for |
|
3621 handling structure references for things like .rows, .cols, etc. |
|
3622 |
3220
|
3623 Wed Nov 18 01:18:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3624 |
3221
|
3625 * Makefile.in (VAR_FILES): Be more careful about matching. |
|
3626 (DEF_FILES): Likewise. |
|
3627 |
|
3628 * ov-base-mat.h, ov-base-mat.cc, ov-bool-mat.h, ov-bool-mat.cc, |
|
3629 ov-ch-mat.h, ov-ch-mat.cc, ov-cx-mat.h, ov-cx-mat.cc, |
|
3630 ov-re-mat.h, ov-re-mat.cc: Move default definition of all, any, |
|
3631 is_matrix_type, is_numeric_type, valid_as_zero_index, and |
|
3632 do_index_op to base class. |
|
3633 Provide definitions that override the defaults where necessary. |
3220
|
3634 |
|
3635 * mappers.cc: Don't include lo-specfun.h. |
|
3636 |
|
3637 Tue Nov 17 14:35:56 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3638 |
|
3639 * besselj.cc (Fbesselh, Fairy); New functions. |
|
3640 (Fbesselj, Fbessely, Fbesselk, Fbesseli): Update doc strings. |
|
3641 (do_bessel): Handle additional args. |
|
3642 |
|
3643 Fri Nov 13 14:47:11 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3644 |
|
3645 * lex.l (NUMBER): Allow hexadecimal constants. |
|
3646 (looks_like_hex): New function. |
|
3647 (handle_number): Check for hexadecimal constants and convert them |
|
3648 to unsigned integer values. |
|
3649 |
3219
|
3650 Thu Nov 12 11:13:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3651 |
|
3652 * input.cc (gnu_readline): Check for EOF from command_editor::readline. |
|
3653 |
|
3654 * ov-str-mat.h, ov-str-mat.cc (class octave_char_matrix_str): |
|
3655 Get common functions via new derivation scheme. |
|
3656 |
|
3657 * ov-bool-mat.h, ov-bool-mat.cc (class octave_bool_matrix): |
|
3658 Derive from octave_base_matrix and get common functions via derivation. |
|
3659 * ov-ch-mat.h, ov-ch-mat.cc (class octave_char_matrix): Ditto. |
|
3660 * ov-cx-mat.h, ov-cx-mat.cc (class octave_complex_matrix): Ditto. |
|
3661 * ov-re-mat.h, ov-re-mat.cc (class octave_real_matrix): Ditto. |
|
3662 |
|
3663 * ov-base-mat.h, ov-base-mat.cc (class octave_base_matrix): New |
|
3664 files for new class definition. Put common matrix data type |
|
3665 stuff here. |
|
3666 |
|
3667 * ov-list.cc (Fnth): New function. |
|
3668 |
|
3669 * ov-list.cc (octave_list::do_index_op): Allow more complex indexing. |
|
3670 |
|
3671 * oct-obj.cc (octave_value_list::index): New function. |
|
3672 (octave_value_list::octve_value_list (Array<octave_value>)): |
|
3673 New private constructor. |
|
3674 |
|
3675 * ov-list.cc (Fsplice): Fix docstring to match. |
|
3676 * oct-obj.cc (octave_value_list::splice): Allow special case |
|
3677 splice (x, length(x)+1, 0, y) to be equivalent to append (x, y). |
|
3678 |
|
3679 * ov-list.cc (Fappend): If an arg is a list, concatenate the lists |
|
3680 instead of appending arg as a single element. |
|
3681 |
|
3682 Wed Nov 11 14:07:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3683 |
|
3684 * load-save.cc (get_mat_data_input_line): New function. |
|
3685 (get_lines_and_columns): Use it here. |
|
3686 (read_mat_ascii_data): And here and do our own reading instead of |
|
3687 using Matrix::operator<<. |
|
3688 |
|
3689 Tue Nov 10 16:12:25 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3690 |
|
3691 * parse.y (make_constant): Initialize retval to 0. |
|
3692 |
|
3693 * toplev.h (clean_up_and_exit (void)): Delete declaration. |
|
3694 * toplev.cc (do_octave_atexit): Move guts of clean_up_for_exit |
|
3695 here, but ensure that the actions are only executed once. |
|
3696 * octave.cc (main): Don't register cleanup_tmp_files with atexit. |
|
3697 |
|
3698 * ov.h, ov.cc (class octave_value): Use DECLARE_OCTAVE_ALLOCATOR |
|
3699 and DEFINE_OCTAVE_ALLOCATOR for uniform declaration and definition |
|
3700 of allocator functions. Use DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA |
|
3701 and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA for uniform declaration |
|
3702 and definition of type id functions and data. |
|
3703 * ov-usr-fcn.h, ov-usr-fcn.cc (class octave_user_function): Ditto. |
|
3704 * ov-scalar.h, ov-scalar.cc (class octave_scalar): Ditto. |
|
3705 * ov-re-mat.h ov-re-mat.cc (class octave_matrix): Ditto. |
|
3706 * ov-range.h, ov-range.cc (class octave_range): Ditto. |
|
3707 * ov-mapper.h, ov-mapper.cc (class octave_mapper): Ditto. |
|
3708 * ov-list.h, ov-list.cc (class octave_list): Ditto. |
|
3709 * ov-file.h, ov-file.cc (class octave_file): Ditto. |
|
3710 * ov-fcn.h, ov-fcn.cc (class octave_function): Ditto. |
|
3711 * ov-cx-mat.h, ov-cx-mat.cc (class octave_complex_matrix): Ditto. |
|
3712 * ov-complex.h, ov-complex.cc (class octave_complex): Ditto. |
|
3713 * ov-ch-mat.h, ov-ch-mat.cc (octave_char_matrix): Ditto. |
|
3714 * ov-builtin.h, ov-builtin.cc (class octave_builtin): Ditto. |
|
3715 * ov-bool.h, ov-bool.cc (class octave_bool): Ditto. |
|
3716 * ov-bool-mat.h, ov-bool-mat.cc (octave_bool_matrix): Ditto. |
|
3717 |
|
3718 * ov.h (DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA): New macro. |
|
3719 (DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA): Ditto. |
|
3720 |
3215
|
3721 Mon Nov 9 16:12:37 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3722 |
|
3723 * pr-output.cc (octave_print_internal): Reorder default args for |
|
3724 charMatrix version. |
|
3725 (octave_print_internal): New function for boolMatrix. |
|
3726 |
|
3727 * version.h (OCTAVE_STARTUP_MESSAGE): Note that this is a |
|
3728 development release. |
|
3729 |
|
3730 * toplev.cc (do_octave_atexit): Call flush_octave_stdout here. |
|
3731 (clean_up_for_exit): And here. |
|
3732 |
|
3733 Mon Nov 9 15:20:53 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3734 |
|
3735 * input.cc (get_user_input): Check retval.length(), not retval.length. |
|
3736 |
|
3737 Sun Nov 8 19:30:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3738 |
|
3739 * pt-assign.cc (tree_simple_assignment::rvalue): If etype is |
|
3740 asn_eq, don't evaluate ult again because retval is just rhs value. |
|
3741 (tree_multi_assignment::rvalue): Likewise. |
|
3742 |
|
3743 Fri Nov 6 12:14:29 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3744 |
|
3745 * pt-loop.cc (tree_for_command::eval): Move code for string RHS |
|
3746 outside if clause for matrix types. |
|
3747 |
|
3748 * pt-idx.cc: Don't forget to define arg_nm. |
|
3749 Move contstructor here. |
|
3750 * pt-idx.h: From here. |
|
3751 |
|
3752 * data.cc (Fisempty): Also return true for empty strings. |
|
3753 |
3212
|
3754 Wed Nov 4 17:21:41 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3755 |
|
3756 * ov-base.cc (octave_base_value::rows, octave_base_value::columns, |
|
3757 octave_base_value::length): Delete. |
|
3758 * ov-base.h (octave_base_value::rows, octave_base_value::columns, |
|
3759 octave_base_value::length): Define here. All return -1 if not |
|
3760 defined in a derived class. |
|
3761 |
|
3762 * data.cc (Fis_matrix): Also return true if the arg is a range. |
|
3763 |
3209
|
3764 Tue Nov 3 09:40:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3765 |
|
3766 * data.cc (Fis_bool): New function. |
|
3767 Also add alias for islogical. |
|
3768 |
|
3769 * ov.h (octave_value::is_bool_type): New function. |
|
3770 * ov-base.h (octave_base_value::is_bool_type): Likewise. |
|
3771 * ov-bool.h (octave_bool::is_bool_type): Likewise. |
|
3772 * ov-bool-mat.h (octave_bool_matrix::is_bool_type): Likewise. |
|
3773 |
3206
|
3774 Mon Nov 2 13:36:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3775 |
3208
|
3776 * lex.l (handle_close_brace): Also handle case of ']' followed by |
|
3777 other assignment ops (+=, -=, ...). |
|
3778 |
|
3779 * pt-assign.cc (tree_simple_assignment::rvalue): Correctly handle |
|
3780 return value and printing for operators other than `='. |
|
3781 (tree_multi_assignment::rvalue): Likewise. |
|
3782 |
|
3783 * pt-assign.h (tree_multi_assignment::etype): New data member. |
|
3784 * pt-assign.cc (tree_multi_assignment::rvalue): Use it instead of |
|
3785 assuming `='. |
|
3786 (tree_multi_assignment::oper): New function. |
|
3787 * pt-pr-code.cc (tree_print_code::visit_multi_assignment): Use |
|
3788 it instead of always printing `='. |
|
3789 * parse.y (make_assign_op): Pass expression type to |
|
3790 tree_multi_assignment constructor. |
|
3791 |
3206
|
3792 * Makefile.in (stmp-pic): New target. |
|
3793 ($(PICOBJ)): Depend on stmp-pic, not pic. |
|
3794 (clean): Delete stmp-pic. |
|
3795 |
|
3796 Sun Nov 1 23:24:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3797 |
|
3798 * mappers.cc (install_mapper_functions): Add alias for isfinite. |
|
3799 |
|
3800 Sat Oct 31 08:46:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3801 |
|
3802 * data.cc (Fisnumeric): New function. |
|
3803 |
3203
|
3804 Fri Oct 30 08:39:30 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3805 |
3205
|
3806 * oct-lvalue.cc (octave_lvalue::do_unary_op): Make it work for |
|
3807 indexed ops too. |
|
3808 * ov.cc (octave_value::unary_op_to_assign_op): New function. |
|
3809 (octave_value::do_non_const_unary_op): New function for indexed ops. |
|
3810 |
3204
|
3811 * parse.y (LEFTDIV_EQ, ELEFTDIV_EQ): New tokens. |
|
3812 (assign_expr): Add rules for them. |
|
3813 (make_assign_op): Handle them here too. |
|
3814 * lex.l: Recognize them. |
|
3815 * ov.h (octave_value::assign_op): Add ldiv_eq and el_ldiv_eq. |
|
3816 * ov.cc (octave_value::assign_op_as_string): Ditto. |
|
3817 (octave_value::op_eq_to_binary_op): Ditto. |
|
3818 (octave_value::assign): Handle OP= style operators with brute force. |
|
3819 (octave_value::simple_assign): New function. |
|
3820 |
3203
|
3821 * parse.y (matrix): Dont' forget to reset |
|
3822 lexer_flags.looking_at_matrix_or_assign_lhs. |
|
3823 |
|
3824 * oct-lvalue.cc (octave_lvalue::assign): Don't call change |
|
3825 function if error occurs. |
|
3826 (octave_lvalue::do_unary_op): If we have an index, fail with message. |
|
3827 |
3202
|
3828 Thu Oct 29 09:27:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3829 |
3203
|
3830 * ov.cc (do_binary_op): Protect against invalid type conversions. |
|
3831 (try_assignment_with_conversion): Likewise. |
|
3832 (do_unary_op): Likewise. |
|
3833 |
|
3834 * ov.h (OV_UNOP_FN, OV_UNOP_OP, OV_UNOP_FN_OP): New macros. |
|
3835 Use them to define not, uminus, transpose, hermitian functions |
|
3836 and operators ! and -. |
|
3837 (OV_BINOP_FN, OV_BINOP_OP, OV_BINOP_FN_OP): New macros. |
|
3838 Use them to define add, sub, mul, div, pow, ldiv, lshift, rshift, |
|
3839 lt, le, eq, ge, gt, ne, el_mul, el_div, el_pow, el_ldiv, el_and, |
|
3840 el_or, struct_ref, functions and operators <, <=, ==, >=, >, !=, |
|
3841 +, -, *, and /. |
|
3842 |
|
3843 * ops.h (CONVDECLX): New macro. |
|
3844 * ov-base.cc (matrix_conv, complex_matrix_conv, string_conv): |
|
3845 Use it to declare these functions. |
|
3846 |
|
3847 * ops.h (CONVDECL, INSTALL_WIDENOP): |
|
3848 Prefix function name with `oct_conv_'. |
|
3849 (INSTALL_BINOP, BINOPDECL): Prefix function name with `oct_binop_'. |
|
3850 (INSTALL_ASSIGNOP, INSTALL_ASSIGNANYOP, ASSIGNOPDECL): |
|
3851 Prefix function name with `oct_assignop_'. |
|
3852 (UNOPDECL, DEFNCUNOP_METHOD, INSTALL_UNOP, INSTALL_NCUNOP): |
|
3853 Prefix function name with `oct_unop_'. |
|
3854 |
|
3855 * ov-str-mat.cc (default_numeric_conversion_function): |
|
3856 Return 0 if conversion fails. |
|
3857 |
|
3858 * parse.y (make_prefix_op, make_postfix_op): Use |
|
3859 octave_value::unary_op enum. |
|
3860 |
|
3861 * pt-unop.cc (tree_prefix_expression::rvalue): Use new unary_op |
|
3862 functions from octave_value and octave_lvalue classes. |
|
3863 (tree_prefix_expression::rvalue): Likewise. |
|
3864 |
|
3865 * pt-unop.cc (tree_unary_expression::oper): Move here. |
|
3866 (tree_prefix_expression::oper, tree_postfix_expression): From here. |
|
3867 |
|
3868 * pt-unop.h (tree_prefix_expression, tree_postfix_expression): |
|
3869 Delete enums. |
|
3870 (tree_unary_expression): Use octave_value::unary_op enum. |
|
3871 * parse.y (make_prefix_op, make_postfix_op): Likewise. |
|
3872 |
|
3873 * oct-lvalue.h (octave_lvalue::do_unary_op): New function. |
|
3874 (octave_lvalue::increment, octave_lvalue::decrement): Delete. |
|
3875 |
|
3876 * ov-typeinfo.h (octave_value_typeinfo::non_const_unary_ops): |
|
3877 New data member. |
|
3878 * ov-typeinfo.h (octave_value_typeinfo::lookup_non_const_unary_op): |
|
3879 New function. |
|
3880 * ov-typeinfo.cc (octave_value_typeinfo::register_non_const_unary_op): |
|
3881 New function. |
|
3882 (octave_value_typeinfo::do_register_non_const_unary_op): Ditto. |
|
3883 (octave_value_typeinfo::do_lookup_non_const_unary_op): Ditto. |
|
3884 |
|
3885 * ov.cc (octave_value::do_non_const_unary_op): New function. |
|
3886 |
|
3887 * Makefile.in (OP_XSRC): Add op-chm.cc and op-range.cc to the list. |
|
3888 |
|
3889 * OPERATORS/op-str-str.cc: Define string matrix unary operators here. |
|
3890 (install_str_str_ops): Install them here. |
|
3891 * ov-bool-mat.h (octave_bool_matrix::transpose, |
|
3892 octave_bool_matrix_value::hermitian): Delete. |
|
3893 |
|
3894 * OPERATORS/op-chm.cc: New file. Define char matrix unary operators. |
|
3895 (install_chm_ops): Install them here. |
|
3896 * ov-ch-mat.h (octave_char_matrix::transpose, |
|
3897 octave_char_matrix_value::hermitian): Delete. |
|
3898 * ops.cc (install_ops): Call install_chm_ops. |
|
3899 |
|
3900 * OPERATORS/op-bm-bm.cc: Define bool matrix unary operators here. |
|
3901 (install_bm_bm_ops): Install them here. |
|
3902 * ov-bool-mat.h (octave_bool_matrix::transpose, |
|
3903 octave_bool_matrix_value::hermitian): Delete. |
|
3904 |
|
3905 * ov-bool.h (octave_bool::not, octave_bool::uminus, |
|
3906 octave_bool::transpose, octave_bool::hermitian): Delete. |
|
3907 |
|
3908 * OPERATORS/op-cs-cs.cc: Define complex scalar unary operators here. |
|
3909 (install_cs_cs_ops): Install them here. |
|
3910 * ov-complex.h (octave_complex::not, octave_complex::uminus, |
|
3911 octave_complex::transpose, octave_complex::hermitian): Delete. |
|
3912 |
|
3913 * OPERATORS/op-cm-cm.cc: Define complex matrix unary operators here. |
|
3914 (install_cm_cm_ops): Install them here. |
|
3915 * ov-cx-mat.h (octave_complex_matrix::not, |
|
3916 octave_complex_matrix::uminus, octave_complex_matrix::transpose, |
|
3917 octave_complex_matrix::hermitian): Delete. |
|
3918 |
|
3919 * OPERATORS/op-m-m.cc: Define matrix unary operators here. |
|
3920 (install_m_m_ops): Install them here. |
|
3921 * ov-re-mat.h (octave_matrix::not, octave_matrix::uminus, |
|
3922 octave_matrix::transpose, octave_matrix::hermitian): Delete. |
|
3923 |
|
3924 * OPERATORS/op-range.cc: New file. Define range unary operators. |
|
3925 (install_range_ops): Install them here. |
|
3926 * ov-range.h (octave_range::not, octave_range::uminus, |
|
3927 octave_range::transpose, octave_range::hermitian): Delete. |
|
3928 * ops.cc (install_ops): Call install_range_ops. |
|
3929 |
|
3930 * OPERATORS/op-s-s.cc: Define scalar unary operators here. |
|
3931 (install_s_s_ops): Install them here. |
|
3932 * ov-scalar.h (octave_scalar::not, octave_scalar::uminus, |
|
3933 octave_scalar::transpose, octave_scalar::hermitian): Delete. |
|
3934 |
|
3935 * ops.h (INSTALL_UNOP, CAST_UNOP_ARG, UNOPDECL, DEFUNOPX, DEFUNOP, |
|
3936 DEFUNOP_OP, DEFUNOP_FN): New macros. |
|
3937 |
|
3938 * ov.h (unary_op_fcn): New typedef. |
|
3939 (octave_value::unary_op): New enum. |
|
3940 * ov.cc (octave_value::octave_value): New function. |
|
3941 |
|
3942 * ov.h (octave_value::not, octave_value::uminus, |
|
3943 octave_value::transpose, octave_value::hermitian, |
|
3944 octave_value::increment, octave_value::decrement): Delete. |
|
3945 |
|
3946 * ov-base.cc (octave_base_value::not, octave_base_value::uminus, |
|
3947 octave_base_value::transpose, octave_base_value::hermitian, |
|
3948 octave_base_value::increment, octave_base_value::decrement): Delete. |
|
3949 |
|
3950 * ov.cc (gripe_unary_op): New function. |
|
3951 (do_unary_op): New function. |
|
3952 * ov-typeinfo.h (octave_value_typeinfo::unary_ops): |
|
3953 New data member. |
|
3954 * ov-typeinfo.cc (octave_value_info::register_unary_op, |
|
3955 octave_value_info::do_register_unary_op, |
|
3956 octave_value_info::lookup_unary_op, |
|
3957 octave_value_info::do_lookup_unary_op): |
|
3958 New functions. |
|
3959 |
3202
|
3960 * ov-list.cc (Fsplice): Use new octave_value::int_value function here. |
|
3961 (octave_list::do_index_op): Likewise. |
|
3962 (octave_list::assign): Likewise. |
|
3963 * toplev.cc (Fquit): Likewise. |
|
3964 * syscalls.cc (Fwaitpid): Likewise. |
|
3965 (Ffcntl): Likewise. |
|
3966 * file-io.cc (do_fread): Likewise. |
|
3967 (do_fwrite): Likewise. |
|
3968 * data.cc (make_diag): Likewise. |
|
3969 (Fsize): Likewise. |
|
3970 (get_dimensions): Likewise. |
|
3971 (Flinspace): |
|
3972 |
|
3973 * ov-base.cc (octave_base_value::int_value): New function. |
|
3974 (octave_base_value::nint_value): Ditto. |
|
3975 * ov.h (octave_value::int_value): Ditto. |
|
3976 (octave_value::nint_value): Ditto. |
|
3977 |
|
3978 * ov-list.cc (octave_list::assign): Fix off-by-one error. |
|
3979 |
3196
|
3980 Wed Oct 28 11:01:37 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3981 |
3202
|
3982 * load-save.cc (read_mat_ascii_data): Try harder to convert file |
|
3983 name to valid variable name. |
|
3984 |
|
3985 * data.cc (Fisempty, Fis_matrix): New functions. |
|
3986 |
|
3987 * ov-str-mat.h (octave_char_matrix_str::is_matrix_type): New function. |
|
3988 |
3196
|
3989 * OPERATORS/op-list.cc: New file. |
|
3990 * Makefile.in (OP_XSRC): Add it to the list. |
|
3991 |
|
3992 * ov-list.cc (octave_list::assign): New function. |
|
3993 |
|
3994 * ov-typeinfo.h (octave_value_typeinfo::assignany_ops): |
|
3995 New data member. |
|
3996 * ov-typeinfo.cc (octave_value_info::register_assignany_op, |
|
3997 octave_value_info::do_register_assignany_op, |
|
3998 octave_value_info::lookup_assignany_op, |
|
3999 octave_value_info::do_lookup_assignany_op): |
|
4000 New functions. |
|
4001 * ov.cc (octave_value::try_assignment (octave_value::assign_op, |
|
4002 const octave_value_list&, const octave_value&)): If no assignment |
|
4003 operator for particular RHS type exists, try finding one for |
|
4004 generic octave_value as RHS type. |
|
4005 * ops.h (DEFASSIGNANYOP_FN): New macro. |
|
4006 |
|
4007 * ov-list.cc (Fsplice): New function. |
|
4008 * oct-obj.cc (octave_value_list::splice): New function. |
|
4009 |
|
4010 * ov.cc (Vresize_on_range_error): No longer static. |
|
4011 * ov.h (Vresize_on_range_error): Provide extern declaration. |
|
4012 |
|
4013 * oct-procbuf.cc (symbols_of_oct_procbuf): Don't declare static. |
|
4014 |
|
4015 * data.cc (Flength): New function. |
|
4016 * ov.h (octave_value::length): New virtual function. |
|
4017 * ov-base.cc (octave_base_value::length): New function. |
|
4018 (octave_base_value::rows, octave_base_value::columns): Move |
|
4019 definitions here, from ov-base.h. Don't return -1. Instead, |
|
4020 gripe about wrong argument type. |
|
4021 * ov-bool-mat.h (octave_bool_matrix::length): New function. |
|
4022 * ov-bool.h (octave_bool::length): Ditto. |
|
4023 * ov-ch-mat.h (octave_char_matrix::length): Ditto. |
|
4024 * ov-complex.h (octave_complex::length): Ditto. |
|
4025 * ov-cx-mat.h (octave_complex_matrix::length): Ditto. |
|
4026 * ov-list.h (octave_list::length): Ditto. |
|
4027 * ov-range.h (octave_range::length): Ditto. |
|
4028 * ov-re-mat.h (octave_matrix::length): Ditto. |
|
4029 * ov-scalar.h (octave_scalar::length): Ditto. |
|
4030 |
|
4031 Tue Oct 27 22:19:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4032 |
|
4033 * ov-list.cc (octave_list::print_raw): Handle case of empty list. |
|
4034 (octave_list::print_name_tag): Likewise. |
|
4035 |
|
4036 * octave.cc (intern_argv): Built-in variable argv is now a list of |
|
4037 strings instead of a string vector. |
|
4038 Always bind argv, making it an empty list if there are no args. |
|
4039 |
|
4040 Mon Oct 26 08:41:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4041 |
|
4042 * xdiv.cc (mx_leftdiv_conform): Explicitly declare args to be |
|
4043 passed as references to const objects. Fix explicit instantiation |
|
4044 requests to match. |
|
4045 (mx_div_conform): Likewise. |
|
4046 |
|
4047 * pt-unop.h (tree_prefix_expression): Reorder constructor args to |
|
4048 put those with default values last. |
|
4049 (tree_postfix_expression): Likewise. |
|
4050 * parse.y: Change all callers. |
|
4051 |
3192
|
4052 Fri Oct 23 12:07:32 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4053 |
3196
|
4054 * utils.cc (Ffile_in_loadpath): New function. |
|
4055 |
|
4056 * defaults.cc (Vload_path, Vdefault_load_path): Now static. |
|
4057 |
|
4058 * help.cc (simple_help): Use Vload_path_dir_path here instead of |
|
4059 trying to reconstruct it from Vload_path. |
|
4060 * fn-cache.cc (octave_fcn_file_name_cache::do_list): Likewise. |
|
4061 (octave_fcn_file_name_cache::update): Likewise. |
|
4062 |
|
4063 * defaults.cc (octave_loadpath): Construct Vload_path_dir_path |
|
4064 using Vdefault_load_path. |
|
4065 (set_default_path): Likewise. |
|
4066 |
|
4067 * defaults.h, defaults.cc (maybe_add_default_load_path): Delete. |
|
4068 |
3192
|
4069 * defaults.cc (Vdefault_load_path): New static variable. |
|
4070 (set_default_path): Set it. |
|
4071 (maybe_add_default_load_path): Use it. |
|
4072 (symbols_of_defaults): Add DEFCONST for DEFAULT_LOADPATH. |
|
4073 Thanks to Rafael Laboissiere <rafael@icp.inpg.fr>. |
|
4074 |
|
4075 * defaults.cc (set_default_path): If OCTAVE_PATH is set in the |
|
4076 environment, call maybe_add_default_load_path on it. |
|
4077 |
|
4078 Tue Oct 20 20:58:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4079 |
|
4080 * defaults.cc (maybe_add_default_load_path): If LOADPATH contains |
|
4081 an embedded "::", insert the default path there too. |
|
4082 |
3189
|
4083 Fri Oct 16 00:52:15 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4084 |
|
4085 * parse.y (in_matrix_or_assign_lhs): New subroutine for lexical |
|
4086 feedback. |
|
4087 (matrix): Use it. |
|
4088 (assign_lhs): Ditto. |
|
4089 * lex.h (lexical_feedback::looking_at_matrix_or_assign_lhs): New |
|
4090 data member. |
|
4091 * lex.l (handle_identifier): Use it to handle keywords like `cd' |
|
4092 as variables in contexts like [ab, cd] = foo (). |
|
4093 |
|
4094 * ov-str-mat.h |
|
4095 (octave_char_matrix_str::octave_char_matrix_str (char c)): |
|
4096 New constructor. |
|
4097 * ov-ch-mat.h (octave_char_matrix::octave_char_matrix (char c)): |
|
4098 New constructor. |
|
4099 * ov.cc (octave_value::octave_value (char c): New constructor. |
|
4100 |
|
4101 * pt-loop.cc (tree_simple_for_command::eval): Handle case of RHS |
|
4102 as string. |
|
4103 |
|
4104 Thu Oct 15 00:56:47 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4105 |
|
4106 * DLD-FUNCTIONS/rand.cc: Declare Fortran subroutines as returning |
|
4107 int, not int*. |
|
4108 |
|
4109 Wed Oct 14 23:51:31 1998 Georg Thimm <thimm@idiap.ch> |
|
4110 |
|
4111 * load-save.cc (Vcrash_dumps_octave_core): New static variable. |
|
4112 (save_user_variables): Only save variables if |
|
4113 Vcrash_dumps_octave_core is true. |
|
4114 (symbols_of_load_save): Add DEFVAR for it here. |
|
4115 (crash_dumps_octave_core): New function. |
|
4116 * octave.cc (maximum_braindamage): Bind crash_dumps_octave_core to |
|
4117 0.0 here. |
|
4118 |
|
4119 Tue Oct 13 22:05:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4120 |
|
4121 * input.cc (read_readline_init_file): New function. |
|
4122 |
|
4123 Thu Oct 8 13:47:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4124 |
|
4125 * oct-procbuf.h (octave_procbuf::wstatus): New data member. |
|
4126 Initialize in constructors. |
|
4127 (octave_procbuf::wait_status): New member function. |
|
4128 * oct-procbuf.cc (octave_procbuf::sys_close): Use class data |
|
4129 member wstatus, not local variable. |
|
4130 * procstream.cc (procstreambase::close): Don't call sys_close directly. |
|
4131 Get subprocess exit status by calling wait_status for our procbuf. |
|
4132 * pt-plot.cc (close_plot_stream): Send "quit" command to gnuplot |
|
4133 before deleting plot_stream. |
|
4134 |
|
4135 |
|
4136 Thu Oct 1 22:39:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4137 |
|
4138 * data.cc (Fis_complex): New function. |
|
4139 |
3185
|
4140 Fri Sep 25 11:50:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4141 |
|
4142 * load-save.cc (write_header): Rename from write_binary_header. |
|
4143 Also write header for Octave ASCII files. |
|
4144 |
|
4145 * load-save.cc (Fsave): Implement -append option. |
|
4146 |
|
4147 * defaults.cc (Frehash): New function. |
|
4148 |
|
4149 Fri Sep 25 11:50:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4150 |
|
4151 * help.cc (help_from_info): Improve error message in case that |
|
4152 info doesn't work. |
|
4153 |
3180
|
4154 Thu Sep 24 10:48:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4155 |
3185
|
4156 * Makefile.in (DLD_XSRC): Replace qzval.cc with qz.cc |
|
4157 |
|
4158 * DLD-FUNCTIONS/balance.cc: Update from A. S. Hodel |
|
4159 <scotte@eng.auburn.edu>. |
|
4160 |
|
4161 * DLD-FUNCTIONS/qz.cc: New file. |
|
4162 |
|
4163 * DLD-FUNCTIONS/qzval.cc: Delete. |
|
4164 |
3180
|
4165 * parse.y (plot_command1): Don't allow it to be empty. |
|
4166 (plot_command): Handle simple `PLOT' and `PLOT ranges' as special |
|
4167 cases here. |
|
4168 |
|
4169 Wed Sep 23 21:10:08 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4170 |
|
4171 * lex.l: Change <MATRIX>{SNLCMT}*\n{SNLCMT}* pattern |
|
4172 to <MATRIX>{S}*{COMMENT}{SNLCMT}* | <MATRIX>{S}*{NL}{SNLCMT}*. |
|
4173 |
|
4174 Fri Sep 4 10:50:00 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4175 |
|
4176 * file-io.cc (Ffwrite): Fix doc string. |
|
4177 |
|
4178 Wed Sep 2 16:22:23 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4179 |
|
4180 * input.cc (match_sans_spaces): Make it work. |
|
4181 |
|
4182 * toplev.cc (quit): Require nargout == 0. |
|
4183 |
|
4184 * input.cc (get_user_input): Only try matching "exit", "quit", and |
|
4185 "return" if debugging. |
|
4186 |
|
4187 Tue Sep 1 12:50:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4188 |
|
4189 * octave.cc: Use -H as single character equivalent of --no-history. |
|
4190 |
|
4191 Sat Aug 29 12:23:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4192 |
|
4193 * oct-obj.cc (octave_value_list::make_argv): If some values are |
|
4194 string vectors, insert all the elements, not just the first. |
|
4195 |
|
4196 Tue Aug 18 16:39:50 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4197 |
|
4198 * oct-stream.cc (octave_base_stream::do_gets): Accept last line of |
|
4199 file even if it doesn't end in a newline character. |
|
4200 |
|
4201 Tue Aug 18 16:25:49 1998 Mumit Khan <khan@xraylith.wisc.edu> |
|
4202 |
|
4203 * xdiv.cc (mx_leftdiv_conform, mx_div_conform): Instantiate correct |
|
4204 templates. |
|
4205 |
|
4206 Thu Jul 30 00:37:43 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4207 |
|
4208 * pt-loop.cc (tree_for_command::eval): Check for range first. |
|
4209 If error occurs when extracting matrix value, return early. |
|
4210 Don't bother to check for string type. |
|
4211 |
|
4212 * ov-ch-mat.h (octave_char_matrix::is_real_matrix): New function. |
|
4213 |
|
4214 Tue Jun 23 15:09:54 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4215 |
|
4216 * parse.y (clear_current_script_file_name): New function. |
|
4217 (parse_fcn_file): Bind current_script_file_name while script is |
|
4218 executing. Use unwind_protect to clear it once the script is |
|
4219 finished. |
|
4220 |
|
4221 * pt-plot.cc (Fgraw): New function. |
|
4222 |
3178
|
4223 Mon Jun 22 22:13:38 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4224 |
|
4225 * variables.cc (is_valid_function): Provide version that takes |
|
4226 function name as string. |
|
4227 |
|
4228 * parse.y (binary_expr): Fix thinko that resulted in incorrect |
|
4229 evaluation of -x^y. Thanks to Richard Allan Holcombe |
|
4230 <raholcom@unity.ncsu.edu>. |
|
4231 (feval): Don't attempt to copy nonexistent arg names. |
|
4232 |
|
4233 Mon Jun 22 21:35:50 1998 Richard Allan Holcombe <raholcom@unity.ncsu.edu> |
|
4234 |
|
4235 * xpow.cc (xpow): Improve efficiency for matrix^(scalar int) case. |
|
4236 |
|
4237 Thu Jun 4 12:42:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4238 |
|
4239 * ov-usr-fcn.cc (octave_user_function::octave_all_va_args): |
|
4240 If num_args_passed < num_named_args, create zero length list. |
|
4241 |
3176
|
4242 Thu May 14 16:23:15 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4243 |
|
4244 * DLD-FUNCTIONS/getrusage.cc: Include sys/types.h too. |
|
4245 |
|
4246 Mon May 11 00:38:45 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4247 |
|
4248 * pager.cc (Fdiary): Don't forget to set write_to_diary file if |
|
4249 just given a file name. |
|
4250 |
|
4251 * input.cc (octave_gets): Only send new line character to |
|
4252 octave_diary if current_input_line is empty or doesn't already end |
|
4253 with a new line character.. |
|
4254 Don't send input from function files or scripts to octave_diary. |
|
4255 |
3174
|
4256 Sun May 3 19:54:38 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4257 |
|
4258 * lex.l (reset_parser): Also call yyrestart if forced_interactive |
|
4259 is true, but not if input_from_startup_file is true. |
|
4260 |
|
4261 Tue Apr 28 14:06:20 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4262 |
|
4263 * oct-procbuf.cc (Vkluge_procbuf_delay): New static variable. |
|
4264 (kluge_procbuf_delay): New function. |
|
4265 (symbols_of_oct_procbuf): New function. |
|
4266 (octave_procbuf::open): Delay Vkluge_procbuf_delay microseconds |
|
4267 after forking. |
|
4268 |
|
4269 Thu Apr 23 15:41:08 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4270 |
|
4271 * defaults.cc (Vload_path_dir_path): New variable. |
|
4272 * utils.cc (file_in_path): Use it. |
|
4273 |
|
4274 * utils.cc (search_path_for_file): Undo previous change. |
|
4275 (file_in_path): Undo previous change. |
|
4276 * defaults.cc (loadpath): Undo previous change. Tilde expansion |
|
4277 is once again handled correctly by the code in |
|
4278 liboctave/pathsearch.cc. |
|
4279 |
|
4280 Mon Apr 20 21:50:34 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4281 |
|
4282 * data.cc (get_dimensions): Allow zeros ([], 3) to work, for |
|
4283 compatibility with Matlab. |
|
4284 |
|
4285 * dynamic-ld.cc [WITH_DL && ! HAVE_DLFCN_H]: Add declarations for |
|
4286 dlopen, dlerror, dlsym, and dlclose. |
|
4287 |
|
4288 * octave.gperf: Handle __FILE__ and __LINE__. |
|
4289 * lex.l (is_keyword): Likewise. |
|
4290 * Makefile.in (oct-gperf.h): Pass -D option to gperf. |
|
4291 Postprocess output of gperf to convert name of static variable |
|
4292 from lookup to gperf_lookup, to avoid conflict with our function |
|
4293 of the same name defined in variables.cc. |
|
4294 |
3168
|
4295 Sat Apr 18 20:17:10 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4296 |
|
4297 * help.cc (USE_GNU_INFO): Delete uses of this macro. |
|
4298 |
3167
|
4299 Thu Apr 16 01:00:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4300 |
|
4301 * dynamic-ld.cc: Only include dlfcn.h if HAVE_DLFCN_H. |
|
4302 |
3165
|
4303 Wed Apr 15 01:03:05 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4304 |
|
4305 * input.cc (Vlast_prompt_time): New global variable. |
|
4306 (octave_gets): Set it. |
3166
|
4307 * ov-fcn.h (octave_function::time_checked): New virtual function |
|
4308 (octave_function::mark_fcn_file_up_to_date): Ditto. |
3165
|
4309 * ov-usr-fcn.h (octave_user_function::time_checked): New function. |
|
4310 (octave_user_function::mark_fcn_file_up_to_date): Ditto. |
|
4311 (octave_user_function::t_checked): New data member. |
|
4312 * variables.cc (symbol_out_of_date): Only check file time stamp if |
|
4313 a prompt has been printed since the last time check. |
|
4314 |
|
4315 * pt-plot.h, pt-plot.cc (subplot_axes): New class. |
|
4316 (subplot): Handle axes. |
|
4317 (Vgnuplot_command_axes): New static variable. |
|
4318 (gnuplot_command_axes): New function. |
|
4319 (symbols_of_pt_plot): DEFVAR gnuplot_command_axes. |
|
4320 * pt-walk.h (tree_walker::visit_subplot_axes): New virtual function. |
|
4321 * parse.y (plot_options): Handle axes. |
|
4322 * lex.l (plot_axes_token): New function. |
|
4323 (is_keyword): Use it. |
|
4324 (is_plot_keyword): Recognize "axes" and "axis". |
|
4325 * lex.h (class lexical_feedback): New field, in_plot_axes. |
|
4326 (lexical_feedback::init): Reset it. |
|
4327 |
|
4328 Tue Apr 14 23:32:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4329 |
|
4330 * parse.y (parse_fcn_file): New arg, force_script. Change callers. |
|
4331 |
3164
|
4332 Fri Apr 10 11:01:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4333 |
|
4334 * help.cc (type): Also print values of variables. |
|
4335 |
3162
|
4336 Wed Apr 8 01:00:58 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4337 |
3164
|
4338 * pr-output.cc (set_format): Set scale to 1.0 if all elements are |
|
4339 int or inf or nan. |
|
4340 |
3162
|
4341 * parse.y (Vwarn_future_time_stamp): New variable. |
|
4342 (symbols_of_parse): Add DEFVAR for it. |
|
4343 (warn_future_time_stamp): New function. |
|
4344 (frob_function_def): Maybe warn about files with future time stamps. |
|
4345 |
|
4346 Thu Apr 2 20:43:45 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4347 |
|
4348 * pt-arg-list.cc (tree_argument_list::convert_to_const_vector): In |
|
4349 error messages, print element numbers starting with 1, not 0. |
|
4350 |
|
4351 Sat Mar 28 15:25:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4352 |
|
4353 * toplev.cc (clean_up_for_exit): New function. |
|
4354 (clean_up_and_exit): Use it. |
|
4355 * sighandlers.cc (my_friendly_exit): Call it instead of |
|
4356 clean_up_and_exit, then do default action for signal. |
|
4357 |
|
4358 * sighandlers.cc (octave_new_handler): Call my_friendly_exit with |
|
4359 signal set to SIGABRT if it is defined, or -1 otherwise. |
|
4360 |
|
4361 * error.cc (verror): Fix thinko in attempt to skip `error: ' tag |
|
4362 when buffering error messages. |
|
4363 * pt-except.cc (tree_try_catch::eval): Reset buffer_error_messages |
|
4364 here if just discarding unwind_protect frame. |
|
4365 |
|
4366 Wed Mar 18 12:35:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4367 |
|
4368 * xpow.cc (elem_xpow): For real-scalar .^ matrix case, result is |
|
4369 complex only if real-scalar is negative and matrix has some |
|
4370 non-integer values. |
|
4371 |
|
4372 Tue Mar 17 17:47:50 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4373 |
|
4374 * pt-plot.cc (Vgnuplot_command_plot, Vgnuplot_command_replot, |
|
4375 Vgnuplot_command_splot, Vgnuplot_command_using, |
|
4376 Vgnuplot_command_with, Vgnuplot_command_title, |
|
4377 Vgnuplot_command_end): New static variables. |
|
4378 (symbols_of_pt_plot): DEFVAR them. |
|
4379 (gnuplot_command_plot, gnuplot_command_replot, |
|
4380 gnuplot_command_splot, gnuplot_command_using, |
|
4381 gnuplot_command_with, gnuplot_command_title, |
|
4382 gnuplot_command_end): New functions. |
|
4383 (open_plot_stream, send_to_plot_stream, tree_plot_command::eval, |
|
4384 subplot_using::print, subplot_style::print, subplot::print, |
|
4385 do_external_plotter_cd, Fgset, Fgshow): Use them instead of the |
|
4386 GPLOT_CMD_PLOT, GPLOT_CMD_REPLOT, GPLOT_CMD_SPLOT, |
|
4387 GPLOT_CMD_USING, GPLOT_CMD_WITH, GPLOT_CMD_TITLE, and |
|
4388 GPLOT_CMD_END macros. |
|
4389 |
3160
|
4390 Fri Feb 27 12:25:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4391 |
|
4392 * help.cc (additional_help_message): Fix www address. |
|
4393 |
|
4394 Tue Feb 24 00:42:59 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4395 |
|
4396 * help.cc (simple_help): Put additional help message first. |
|
4397 (additional_help_message): Add information about web site and |
|
4398 mailing list. |
|
4399 |
3156
|
4400 Fri Feb 20 00:41:06 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4401 |
|
4402 * pt-plot.cc (GPLOT_CMD_REPLOT): Clear before replot. |
|
4403 |
|
4404 * Makefile.in: Better handling of lib flags for linking. |
|
4405 |
|
4406 Thu Feb 19 21:14:30 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4407 |
|
4408 * pt-decl.cc (Vinitialize_global_values): New static variable. |
|
4409 (initialize_global_variables): New function. |
|
4410 (symbols_of_pt_decl): New function. |
|
4411 DEFVAR Vinitialize_global_values and initialize_global_variables. |
|
4412 (tree_global_command::do_init): If initialize_global_variables is |
|
4413 not true and the variable doesn't have an explicit initializer, don't |
|
4414 initialize it. If we are giving it a default value, use the value |
|
4415 of the variable defualt_global_variable_value. |
|
4416 * octave.cc (maximum_braindamage): Set default_global_variable_value |
|
4417 and initialize_global_variables to Matlab-compatible values. |
|
4418 |
|
4419 Wed Feb 18 04:35:31 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4420 |
|
4421 * DLD-FUNCTIONS/besselj.cc: Rename from bessel.cc. |
|
4422 * Makefile.in (DLD_XSRC): Likewise. |
|
4423 |
|
4424 * syscalls.cc (Fvfork): Delete. |
|
4425 |
|
4426 * oct-procbuf.cc: Just use fork. |
|
4427 |
|
4428 * parse.y (feval): Provide version that takes function name |
|
4429 separate from other args. |
|
4430 * parse.h: Declare it. |
|
4431 |
|
4432 * oct-procbuf.cc (octave_procbuf::open): Move declaration of |
|
4433 child_std_end outside of child scope and declare volatile. |
|
4434 |
|
4435 Mon Feb 16 15:04:28 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4436 |
|
4437 * parse.y: Include cstdio, for SEEK_SET. |
|
4438 |
3153
|
4439 Thu Feb 12 22:07:00 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4440 |
|
4441 * system.c: New file. |
|
4442 * Makefile.in (SOURCES): Add it to the list. |
|
4443 |
3148
|
4444 Fri Feb 6 01:23:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4445 |
|
4446 * oct-stream.cc (octave_base_stream::file_number): Rename from fileno. |
|
4447 Change all uses. |
|
4448 |
|
4449 * fsolve.cc (fsolve_option_table): Add missing & to function names. |
|
4450 |
3145
|
4451 Thu Feb 5 02:27:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4452 |
3147
|
4453 * dirfns.cc (Fls): If first attempt at reading process output |
|
4454 fails, sleep once and try again. |
|
4455 * toplev.cc (run_command_and_return_output): Likewise. |
|
4456 |
|
4457 * oct-procbuf.cc (octave_procbuf::open): Use vfork if it is available. |
|
4458 |
|
4459 * syscalls.cc (Fvfork): New function. |
|
4460 |
3145
|
4461 * ov-bool-mat.cc: Only declare assign function if |
|
4462 CXX_NEW_FRIEND_TEMPLATE_DECL is not defined. |
|
4463 |
|
4464 * ov-base.h, ov-bool-mat.h, ov-bool.h, ov-ch-mat.h, ov-complex.h, |
|
4465 ov-cx-mat.h, ov-range.h, ov-re-mat.h, ov-scalar.h: Handle default |
|
4466 args for *_value functions consistently. |
|
4467 |
|
4468 * symtab.cc (maybe_list_cmp_fcn): Declare args as void*, not |
|
4469 void**, then use X_CAST. |
|
4470 |
|
4471 * OPERATORS/op-s-cm.cc: Include mx-cm-s.h. |
|
4472 |
|
4473 * defun-int.h: Include ov-builtin.h, ov-mapper.h, and symtab.h. |
|
4474 (install_builtin_mapper, install_builtin_function, |
|
4475 install_builtin_variable) Use specific types rather than void * in |
|
4476 declaration. |
|
4477 * defun.cc (install_builtin_mapper, install_builtin_function, |
|
4478 install_builtin_variable): Likewise. Eliminate casts. |
|
4479 |
|
4480 * load-save.cc (read_binary_data, read_mat_file_header, |
|
4481 save_binary_data): Use X_CAST, not static_cast. |
|
4482 * unwind-prot.h (unwind_protect::save_ptr): Likewise. |
|
4483 * Map.cc (goodCHptr, index_to_CHptr, CHptr_to_index): Likewise. |
|
4484 * dynamic-ld.cc (octave_dlopen_dynamic_loder::resolve_reference): |
|
4485 Likewise. |
|
4486 |
|
4487 * pt-mat.cc (tm_const::operator bool ()): |
|
4488 (tm_row_const::operator bool ()): Likewise. |
|
4489 * oct-stream.cc (printf_value_cache::operator bool ()): Likewise. |
|
4490 (scanf_format_list::operator bool ()): Likewise. |
|
4491 (printf_format_list::operator bool ()): Likewise. |
|
4492 (octave_stream::operator bool ()): Likewise. |
|
4493 |
|
4494 Wed Feb 4 13:08:29 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4495 |
|
4496 * DLD-FUNCTIONS/minmax.cc: Include cmath, not oct-math.h. |
|
4497 |
|
4498 * syscalls.cc (Fdup2): Convert stream to actual system file id. |
|
4499 |
|
4500 * oct-stream.cc (octave_base_stream::fileno, octave_stream::fileno): |
|
4501 New functions. |
|
4502 |
3141
|
4503 Tue Feb 3 00:24:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4504 |
|
4505 * defaults.cc (exec_path): Append Vbin_dir to std_path. |
|
4506 |
|
4507 * octave.cc (initialize_pathsearch): Set TEXMFDBS, not TEXMF. |
|
4508 Look for OCTAVE_DB_PATH in environment. |
|
4509 Simplify using Vdata_dir and Vlibexec_dir. |
|
4510 |
|
4511 * defaults.h.in (Vdata_dir, Vlibexecdir): Declare new vars. |
|
4512 defaults.cc: Define them. |
|
4513 (set_default_data_dir, set_default_libexecdir): New functions. |
|
4514 (install_defaults): Call them. |
|
4515 |
|
4516 * defaults.h.in (OCTAVE_LIBEXECDIR): Define. |
|
4517 |
|
4518 Mon Feb 2 02:43:16 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4519 |
|
4520 * Makefile.in (install, uninstall): Use $(octlibdir), not $(libdir). |
|
4521 Use mk-libdir-link. |
|
4522 |
|
4523 * defaults.h.in (OCTAVE_OCTLIBDIR): Substitute value. |
|
4524 (Vlib_dir): Delete declaration. |
|
4525 * defaults.cc (Vlib_dir): Delete. |
|
4526 (set_default_lib_dir): Delete. |
|
4527 (install_defaults): Don't call set_default_lib_dir. |
|
4528 (set_default_info_prog): If oct_info_prog is empty, set default to |
|
4529 "info" -- we expect it to be somewhere in the user's path. |
|
4530 |
|
4531 * defun.h (DEFCONST, DEFCONSTX): Eliminate inst_as_fcn and chg_fcn |
|
4532 args. Always pass true for inst_as_fcn and 0 for chg_fcn to |
|
4533 DEFVAR when creating built-in values like `e' or `stderr' that can |
|
4534 be redefined. Change all uses. |
|
4535 |
|
4536 * help.cc (Ftype): Handle script files too. |
|
4537 (Fwhich): Likewise. |
|
4538 |
3136
|
4539 Sat Jan 31 00:00:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4540 |
|
4541 * ov-ch-mat.cc (octave_char_matrix::is_true): Make it work. |
|
4542 * ov-str-mat.h, ov-str-mat.cc (octave_char_matrix_str::is_true): |
|
4543 Delete. |
|
4544 |
|
4545 * load-save.cc (read_ascii_data): Allow strings of length 0. |
|
4546 If we don't find data on the first call, fail with error message. |
|
4547 (do_load): Pass count of items read to read_ascii_data. |
|
4548 Allow `load foo xyz' to work when foo contains only numbers. |
|
4549 |
|
4550 Fri Jan 30 23:46:42 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4551 |
|
4552 * ov-str-mat.h (octave_char_matrix_str::all): Delete. |
|
4553 (octave_char_matrix_str::any): Delete. |
|
4554 * ov-ch-mat.h (octave_char_matrix::all, octave_char_matrix::any): |
|
4555 Call charMatrix::all, charMatrix::any. |
|
4556 |
|
4557 Thu Jan 29 16:25:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4558 |
|
4559 * load-save.cc (read_mat_binary_data): Handle third digit of MOPT |
|
4560 as flag indicating row or column major ordering. |
|
4561 |
3131
|
4562 Wed Jan 28 00:18:17 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4563 |
|
4564 * DLD-FUNCTIONS/dassl.cc (lsode_option_table): |
|
4565 Add missing & to function names. |
|
4566 * DLD-FUNCTIONS/lsode.cc (lsode_option_table): Likewise. |
|
4567 * DLD-FUNCTIONS/quad.cc (quad_option_table): Likewise. |
|
4568 |
|
4569 * Makefile.in (oct-gperf.h): Add -G option to gperf. |
|
4570 |
|
4571 * load-save.cc (get_save_type): Add `UL' and `L' suffixes to large |
|
4572 constant values. For LS_INT, use <= and >= for comparison. |
|
4573 |
|
4574 Mon Jan 26 13:17:59 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4575 |
|
4576 * ov-usr-fcn.cc (Vmax_recursion_depth): New static variable. |
|
4577 (max_recursion_depth): New fucnction |
|
4578 (symbols_of_ov_usr_fcn): DEFVAR max_recursion_depth. |
|
4579 (octave_user_function::do_index_op): Check Vmax_recursion_depth. |
|
4580 |
3130
|
4581 Thu Jan 22 13:45:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4582 |
|
4583 * dynamic-ld.cc (make_dynamic_loader): Fix typo. |
|
4584 |
|
4585 Tue Jan 20 17:02:19 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4586 |
|
4587 * variables.cc (Fexist): If local symbol is undefined, check |
|
4588 global table. |
|
4589 |
|
4590 * pr-output.cc (pr_max_internal): Initial value for result is |
|
4591 -DBL_MAX, not DBL_MIN. |
|
4592 |
3125
|
4593 Thu Jan 8 11:54:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4594 |
|
4595 * xpow.cc (elem_xpow): If second arg of pow is complex, make sure |
|
4596 first arg is also complex. |
|
4597 |
|
4598 * symtab.cc (symbol_table::rename): Properly insert new item at |
|
4599 the front of the list to avoid losing the rest of the items. |
|
4600 |
|
4601 Thu Dec 11 23:30:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4602 |
|
4603 * variables.cc (Fclear): Increment index to skip -x arg. |
|
4604 |
3124
|
4605 Tue Dec 9 02:45:35 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4606 |
|
4607 * Makefile.in (INCLUDES): Don't forget Pix.h. |
|
4608 |
|
4609 * BaseSLList.cc: Don't include nonstandard libg++ header files. |
|
4610 |
3119
|
4611 Sun Nov 30 14:58:56 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4612 |
3124
|
4613 * pr-output.cc: Include cmath, not oct-math. |
|
4614 * sysdep.cc: Likewise. |
|
4615 |
3119
|
4616 * DLD-FUNCTIONS/bessel.cc: New file. |
|
4617 * Makefile.in (DLD_XSRC): Add it to the list. |
|
4618 |
3113
|
4619 Thu Nov 27 23:28:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4620 |
|
4621 * lex.l (handle_string): Constructor for string class takes |
|
4622 (size_t, char) args, not (char, size_t). |
|
4623 |
3111
|
4624 Wed Nov 26 00:39:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4625 |
|
4626 * Makefile.in (OCTAVE_LIBS): Include $(SPECIAL_MATH_LIB) just |
|
4627 ahead of -lcruft. |
|
4628 |
3110
|
4629 Thu Nov 20 15:16:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4630 |
|
4631 * octave.cc (maximum_braindamage): Bind implicit_num_to_str_ok to 1. |
|
4632 * pt-mat.cc (Vimplicit_num_to_str_ok): New static variable. |
|
4633 (implicit_num_to_str_ok): New function. |
|
4634 (symbols_of_pt_mat): DEFVAR implicit_num_to_str_ok. |
|
4635 (tm_row_const::some_str): New data member. |
|
4636 (tm_row_const::some_strings_p): New function. |
|
4637 (tm_row_const::init): Set some_str. |
|
4638 (tm_const::some_str): New data member. |
|
4639 (tm_const::some_strings_p): New function. |
|
4640 (tm_const::init): Set some_str. |
|
4641 (tree_matrix::eval): If Vimplicit_num_to_str_ok is true and some |
|
4642 of the elements are strings, force a string conversion before |
|
4643 returning. |
|
4644 |
|
4645 * parse.y (fold, finish_colon_expression, finish_matrix): |
|
4646 If an error occurs, return the original expression. |
|
4647 Use unwind_protect to restore error_state. |
|
4648 |
|
4649 * ov-ch-mat.h (octave_char_matrix::convert_to_str): Result is |
|
4650 char_matrix_str, not just char_matrix. |
|
4651 |
3107
|
4652 Wed Nov 19 02:05:40 1997 Mumit Khan <khan@dhaka.xraylith.wisc.edu> |
|
4653 |
|
4654 * DLD-FUNCTIONS/filter.cc: Don't include extern template decls if |
3109
|
4655 CXX_NEW_FRIEND_TEMPLATE_DECL is defined. |
3107
|
4656 * ov-cx-mat.cc: Likewise. |
|
4657 * ov-re-mat.cc: Likewise. |
|
4658 * ov-str-mat.cc: Likewise. |
|
4659 |
|
4660 * ov-cx-mat.h (octave_complex_matrix::decrement, |
|
4661 octave_complex_matrix): Use explicit Complex constructor. |
|
4662 |
|
4663 Wed Nov 19 00:08:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4664 |
|
4665 * pt-decl.cc (tree_global_command::do_init): Initialize global |
|
4666 values to `[]'. Only perform explicit initialization once. |
|
4667 |
3103
|
4668 Tue Nov 18 04:27:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4669 |
3105
|
4670 * pr-output.cc (Vfixed_point_format): New variable. |
|
4671 (fixed_point_format): New fucntion. |
|
4672 (symbols_of_pr_output): Add DEFVAR for fixed_point_format. |
|
4673 (set_real_matrix_format): Handle fixed point format |
|
4674 (set_complex_matrix_format): Handle fixed point format |
|
4675 (set_format): New arg, scale in Matrix, ComplexMatrix, Range versions. |
|
4676 (pr_scale_header): New function. |
|
4677 (octave_print_internal): Handle fixed point format in Matrix, |
|
4678 ComplexMatrix, and Range versions. |
|
4679 * octave.cc (maximum_braindamage): Set fixed_point_format to 1.0. |
|
4680 |
3103
|
4681 * utils.cc (do_string_escapes): Move here, from lex.l. |
|
4682 Arg is now const string& instead of char*. |
|
4683 Return new string object instead of modifying arg in place. |
|
4684 (Fdo_string_escapes): New function. |
|
4685 * lex.l (handle_string): Use new version of do_string_escapes. |
3105
|
4686 |
|
4687 * lex.l (Vbackslash_escapes): Delete. |
|
4688 (backslash_escapes): Delete. |
|
4689 (do_string_escapes): Undo previous change. |
|
4690 (eat_whitespace, eat_continuation): Undo previous change. |
|
4691 (handle_string): Undo previous change. |
|
4692 (symbols_of_lex): Undo previous change. |
|
4693 * octave.cc (maximum_braindamage): Undo previous change. |
3103
|
4694 |
3096
|
4695 Fri Nov 14 01:53:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4696 |
3100
|
4697 * parse.y (eval_string (const string&, bool, int&, int)): No |
|
4698 longer static. |
|
4699 * parse.h: Provide declaration. |
|
4700 * input.cc (get_user_input (const octave_value_list&, bool, int)): |
|
4701 New arg, nargout. Pass it to eval_string. |
|
4702 (keyboard): Pass nargout = 0 to get_user_input. |
|
4703 (input): Pass nargout to get_user_input. |
|
4704 |
3098
|
4705 * input.cc (get_user_input (const octave_value_list&, bool)): |
3100
|
4706 Return octave_value_list() if user enters `quit', `exit', or `return'. |
3098
|
4707 If debugging, let eval_string handle the printing chores and |
|
4708 reset error_state before asking for more input. |
|
4709 |
|
4710 * input.cc (Fkeyboard): Unconditionally turn on history here. |
|
4711 |
3096
|
4712 * lex.l (have_continuation, have_ellipsis_continuation): Declare |
|
4713 arg as bool, not int. Change callers. |
|
4714 |
|
4715 * lex.l (Vbackslash_escapes): New static variable. |
|
4716 (backslash_escapes): New function. |
|
4717 (do_string_escapes): Return immediately if ! Vbackslash_escapes. |
|
4718 (eat_whitespace, eat_continuation): Only call have_continuation if |
|
4719 Vbackslash_escapes. |
|
4720 (handle_string): Backslash is only special if Vbackslash_escapes. |
|
4721 (symbols_of_lex): Add DEFVAR for backslash_escapes. |
|
4722 * octave.cc (maximum_braindamage): Set backslash_escapes to 0. |
|
4723 |
3095
|
4724 Thu Nov 13 16:20:40 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4725 |
3096
|
4726 * variables.cc (Fexist): Also return 2 if NAME is a regular file |
|
4727 somewhere in the LOADPATH. |
|
4728 |
3095
|
4729 * data.cc (sumsq): Fix doc string. |
|
4730 |
|
4731 * parse.y (Fsource): Call parse_fcn_file, not parse_and_execute. |
|
4732 |
3092
|
4733 Tue Oct 7 16:51:01 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4734 |
|
4735 * defun-int.h (DEFINE_FUN_INSTALLER_FUN): Set installed to true |
|
4736 after installing the function. |
|
4737 |
3088
|
4738 Thu Sep 25 10:17:26 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4739 |
|
4740 * DLD-FUNCTIONS/filter.cc (Ffilter): Return second output value |
|
4741 even when called with only 3 arguments. |
|
4742 |
3086
|
4743 Mon Sep 22 16:44:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4744 |
|
4745 * DLD-FUNCTIONS/rand.cc (do_rand): Print error if first of two |
|
4746 args is a string but doesn't match "seed". |
3088
|
4747 (Frand, Frandn): Fix doc string. |
3086
|
4748 |
3081
|
4749 Mon Aug 25 10:42:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4750 |
|
4751 * input.cc (get_user_input): Return an empty string if the user |
|
4752 just types RET. |
|
4753 |
3079
|
4754 Thu Jul 31 22:59:04 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4755 |
|
4756 * lex.l <TEXT_FCN>: Ensure that we handle words that begin with |
|
4757 single or double quotes as strings. |
|
4758 |
3074
|
4759 Thu Jul 17 13:06:48 1997 Klaus Gebhardt <gebhardt@crunch.ikp.physik.th-darmstadt.de> |
|
4760 |
|
4761 * DLD-FUNCTIONS/rand.cc (Frand): Use F77_XFCN to call getsd, |
|
4762 setsd, setall, setcgn, dgenunf, and dgennor since they can call |
|
4763 XSTOPX. |
|
4764 |
3072
|
4765 Mon Jul 14 12:54:23 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4766 |
|
4767 * dynamic-ld.cc (octave_dynamic_loader::load_fcn_from_dot_oct_file): |
|
4768 If first attempt to load function fails, prepend and underscore |
|
4769 and try again. |
|
4770 |
|
4771 * Makefile.in (install-inc): If defaults.h, oct-conf.h, or |
|
4772 oct-gperf.h don't exist in the current directory, look in $(srcdir). |
|
4773 |
3068
|
4774 Mon Jul 7 21:14:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4775 |
|
4776 * DLD-FUNCTIONS/qr.cc (Fqr): Correctly handle nargout == 0. |
|
4777 |
3067
|
4778 Wed Jul 2 16:47:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4779 |
|
4780 * matherr.c: New file. Move matherr function here. |
|
4781 * sysdep.cc: From here. |
|
4782 * Makefile.in (DIST_SRC): Add matherr.c to the list. |
|
4783 |
|
4784 * error.cc (handle_message): Avoid bug in g++ snapshot. |
|
4785 |
3065
|
4786 Thu Jun 26 22:04:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4787 |
|
4788 * utils.cc (file_in_path): Add default load path to PATH arg if |
|
4789 it begins or ends with a colon. |
|
4790 |
3060
|
4791 Wed Jun 25 13:31:06 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4792 |
|
4793 * oct-lvalue.h (octave_lvalue::struct_elt_ref): Ensure val is unique. |
|
4794 |
|
4795 Fri Jun 20 12:33:35 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4796 |
|
4797 * toplev.cc (cmd_death_handler): New function. |
|
4798 (run_command_and_return_output): Insert pid of command in |
|
4799 octave_child_list along with pointer to cmd_death_handler so we |
|
4800 can get the exit status without having to block SIGCHLD. |
|
4801 (cleanup_iprocstream): Remove pid of command from octave_child_list. |
|
4802 |
3053
|
4803 Sun Jun 15 16:11:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4804 |
3054
|
4805 * OPERATORS/op-cs-s.cc (ldiv): Doh, v1 is complex, v2 is real. |
|
4806 |
3053
|
4807 * Makefile.in (DISTFILES): Add mkops to the list. |
|
4808 (dist): Correctly link files in DLD-FUNCTIONS, OPERATORS, and |
|
4809 TEMPLATE-INST subdirectories. |
|
4810 |
3040
|
4811 Fri Jun 6 04:30:57 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4812 |
3042
|
4813 * DLD-FUNCTIONS/npsol.cc, DLD-FUNCTIONS/qpsol.cc, |
|
4814 DLD-FUNCTIONS/fsqp.cc: Delete. |
|
4815 * Makefile.in (DLD_XSRC): Remove them from the list. |
|
4816 |
3040
|
4817 * utils.cc (search_path_for_file): New arg, do_tilde_expansion. |
|
4818 If TRUE, perform tilde expansion on path before searching. |
|
4819 (file_in_path): Call search_path_for_file with do_tilde_expansion |
|
4820 set to false, since we've already performed tilde expansion on the |
|
4821 load path. |
|
4822 |
|
4823 * defaults.cc (loadpath): Perform tilde expansion here. |
|
4824 |
3029
|
4825 Thu Jun 5 01:42:39 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4826 |
3034
|
4827 * Makefile.in: Make building of static library optional. |
3036
|
4828 (liboctave.$(SHLEXT_VER)): Add $(SONAME_FLAGS) to command. |
3034
|
4829 |
3033
|
4830 * dynamic-ld.cc (octave_shl_load_dynamic_loader::resolve_reference): |
|
4831 Call shl_findsym with type set to TYPE_UNDEFINED. |
|
4832 |
3029
|
4833 * Makefile.in (stamp-picdir): Delete. |
|
4834 (pic): New target. Don't worry so much about creating pic |
|
4835 directory only when it is really needed. |
|
4836 (stamp-interp): Delete. |
|
4837 (libraries): New target. Depend on shared library directly. |
|
4838 |
3024
|
4839 Wed Jun 4 00:09:42 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4840 |
|
4841 * octave.cc (main): Call dir_path::set_program_name here. |
|
4842 |
3021
|
4843 Tue Jun 3 16:47:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4844 |
3022
|
4845 * variables.cc (symbol_out_of_date): Make it work again. |
|
4846 |
3021
|
4847 * parse.y (parse_and_execute): Move here from toplev.cc |
|
4848 (default_eval_print_flag): Likewise. |
|
4849 (safe_fclose): Likewise. |
|
4850 (eval_string): Likewise. |
|
4851 (Fsource): Likewise. |
|
4852 (Ffeval): Likewise. |
|
4853 (feval): Likewise. |
|
4854 (Feval): Likewise. |
|
4855 (symbols_of_parse): Define default_eval_print_flag here instead of |
|
4856 in varaibles.cc. |
|
4857 (looks_like_octave_copyright): Move here from variables.cc |
|
4858 (gobble_leading_whitespace): Likeiwse. |
|
4859 (is_function_file): Likewise. |
|
4860 (restore_input_stream): Likewise. |
|
4861 (parse_fcn_file): Likewise. |
|
4862 (load_fcn_from_file): Likewise. |
|
4863 (get_help_from_file): Likewise. |
|
4864 |
|
4865 * toplev.cc (syms_of_toplev): Define argv, program_name, and |
|
4866 program_invocation_name here instead of in variables.cc. |
|
4867 |
|
4868 * parse.h (line_editing): Move here from toplev.h. Now bool, not int. |
|
4869 (reading_startup_message_printed) Likewise. |
|
4870 (input_from_startup_file): Likewise. |
|
4871 (input_from_command_line_file): Likewise. |
|
4872 |
|
4873 * load-save.cc: Use bool instead of int where appropriate. |
|
4874 |
|
4875 * input.h (enum echo_state): Move here from variables.h. |
|
4876 (Vecho_executing_commands): Likewise. Now bool, not int. |
|
4877 * input.cc (echo_executing_commands): Move here from variables.cc. |
|
4878 (symbols_of_input): Define echo_executing_commands here instead of |
|
4879 in variables.cc. |
|
4880 |
|
4881 * octave.cc (program_invocation_name): Don't define. |
|
4882 (intern_argv): Don't set program_invocation_name here. |
|
4883 (main): Call octave_env::set_program_name here, not in intern_argv. |
|
4884 |
|
4885 * toplev.cc (quitting_gracefully): Move here from octave.h and |
|
4886 make static bool instead of extern int. |
|
4887 |
|
4888 * error.cc (bind_global_error_variable, clear_global_error_variable): |
|
4889 Move here from variables.cc. |
|
4890 (symbols_of_error): Define error_text here instead of in variables.cc. |
|
4891 |
|
4892 * pager.cc (write_to_diary_file): Now bool, not int. |
|
4893 (really_flush_to_pager): Likewise. |
|
4894 (flushing_to_pager): Likewise. |
|
4895 * sighandlers.h (can_interrupt): Likewise. |
|
4896 * error.h (buffer_error_messages): Likewise. |
|
4897 * oct-hist.h (input_from_tmp_history_file, Vsaving_history): Likewise. |
|
4898 * input.h (forced_interactive): Likewise. |
|
4899 (get_input_from_eval_string): Likeiwse. |
|
4900 (reading_script_file): Likeiwse. |
|
4901 (reading_fcn_file): Likeiwse. |
|
4902 (interactive): Likewise. |
|
4903 |
|
4904 * unwind-prot.cc (saved_variable::saved_variable (bool *, bool)): |
|
4905 Set type_tag to boolean, not int. |
|
4906 |
3016
|
4907 Mon Jun 2 00:40:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4908 |
|
4909 * variables.h (Octave_builtin_fcn): Delete typedef. |
|
4910 |
|
4911 * help.cc (make_name_list): Move here from variables.cc. |
|
4912 (keyword_help, names): Now static. |
|
4913 (struct help_list): Move declaration here from help.h. |
|
4914 |
|
4915 * oct-hist.cc (Vhistory_file, Vhistory_size, Vsaving_history): |
|
4916 Move here from variables.cc. |
|
4917 (symbols_of_oct_hist): New function. |
|
4918 |
|
4919 * version.h: Protect against multiple inclusion. |
|
4920 |
|
4921 * defun.cc (check_version): New function. |
|
4922 * defun-int.h (DEFINE_FUN_INSTALLER_FUN): Use it. |
|
4923 |
|
4924 * help.h, help.cc (additional_help_message): Now extern. |
|
4925 (operator_help): Now static. |
|
4926 |
|
4927 * defun.cc (print_usage): Move here from help.cc |
|
4928 * DLD-FUNCTIONS/*.cc, data.cc, dirfns.cc, file-io.cc, input.cc, |
|
4929 load-save.cc, octave.cc, ov-list.cc, ov-typeinfo.cc, |
|
4930 ov-usr-fcn.cc, pager.cc, pr-output.cc, pt-plot.cc, strfns.cc, |
|
4931 syscalls.cc, sysdep.cc, utils.cc, toplev.cc: |
|
4932 Don't include help.h. |
|
4933 |
|
4934 * TEMPLATE-INST/Array-sym.cc: New file. |
|
4935 |
|
4936 * load-save.cc (do_load): Don't use ostream::form. |
|
4937 * pr-output.cc: Likewise, at least where it is easy to do so. |
|
4938 * oct-stream.cc: Ditto. |
|
4939 |
|
4940 * symtab.h (symbol_record::symbol_def::rows): New function. |
|
4941 (symbol_record::symbol_def::columns): Ditto. |
|
4942 (symbol_record::symbol_def::type_name): Ditto. |
|
4943 (symbol_record::rows): Ditto |
|
4944 (symbol_record::columns): Ditto |
|
4945 (symbol_record::type_name): Ditto |
|
4946 |
|
4947 * symtab.h, symtab.cc (symbol_record::hides_fcn): New function. |
|
4948 (symbol_record::hides_builtin): Ditto. |
|
4949 (symbol_record::print_symbol_info_line): Ditto. |
|
4950 (symbol_table::long_list): Delete. |
|
4951 (symbol_table::symbol_list): New function. |
|
4952 (symbol_table::maybe_list): Delete argc arg. |
|
4953 (symbol_table::name_list): Rename from symbol_table::list. |
|
4954 Change all callers. |
|
4955 |
|
4956 * symtab.h, symtab.cc (class symbol_record_info): Delete. |
|
4957 |
|
4958 * symtab.cc (matches_patterns): Use vector form of glob_match. |
|
4959 |
|
4960 Sun Jun 1 14:04:26 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4961 |
|
4962 * pt-check.h, pt-check.cc: New files, for semantic checking of |
|
4963 parse trees. |
|
4964 |
|
4965 * symtab.h (class symbol_def): Now nested in symbol_record class. |
|
4966 (enum TYPE): Move from symbol_def to symbol record class. Change |
|
4967 all uses. |
|
4968 |
|
4969 * symtab.h, symtab.cc (symbol_table::maybe_list): New function, |
|
4970 from variables.cc. Change all uses. |
|
4971 |
|
4972 * pt-idx.h (tree_identifier::lvalue_ok): New function. |
|
4973 * pt-id.h (tree_index_expression::lvalue_ok): Likewise. |
|
4974 * pt-indir.h (tree_indirect_ref::lvalue_ok): Likewise. |
|
4975 |
|
4976 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_oct_obj): Delete. |
|
4977 * pt-walk.h (tree_walker::visit_oct_obj): Delete declaration. |
|
4978 |
|
4979 * lex.h (class lexical_feedback): Delete maybe_screwed_again. |
|
4980 * lex.l (lexical_feedback::init): Don't set it. |
|
4981 |
|
4982 Fri May 30 16:07:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4983 |
|
4984 * mappers.cc: Include <cfloat> here. |
|
4985 |
|
4986 Tue May 27 10:08:43 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4987 |
|
4988 * toplev.cc (eval_string): Don't index tmp if it is empty. |
|
4989 |
|
4990 Sat May 24 00:18:41 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4991 |
|
4992 * load-save.cc (valid_identifier): Move here and make static. |
|
4993 * symtab.h, symtab.cc (valid_identifier): Delete declaration and |
|
4994 definition. |
|
4995 |
|
4996 Fri May 23 22:54:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4997 |
|
4998 * symtab.h (symbol_def::symbol_def): Use initializer list instead |
|
4999 of calling init_state. |
|
5000 (symbol_def::init_state): Delete. |
|
5001 |
|
5002 * symtab.cc (symbol_table::print_stats): New function. |
|
5003 * variables.cc (F__dump_symtab_info__): New function. |
|
5004 |
|
5005 * symtab.h, symtab.cc (symbol_table::hash): Return masked value. |
|
5006 (symbol_table::table_size): New data member. |
|
5007 (symbol_table::symbol_table): Set size of table in constructor. |
|
5008 (HASH_TABLE_SIZE): Replace uses with table_size. |
|
5009 (HASH_MASK): Delete. |
|
5010 * variables.cc (initialize_symbol_tables): Set top-level and |
|
5011 global symbol table sizes here. |
|
5012 |
2994
|
5013 Thu May 22 13:32:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5014 |
|
5015 * dynamic-ld.cc (octave_shl_load_dynamic_loader::resolve_reference): |
|
5016 Call shl_findsym with type set to TYPE_PROCEDURE. Pass the |
|
5017 address of the pointer we want to define. |
|
5018 |
2993
|
5019 Wed May 21 16:30:25 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5020 |
|
5021 * DLD-FUNCTIONS/time.cc (extract_tm): Avoid memory leak in dealing |
|
5022 with time zone. |
|
5023 |
|
5024 * Makefile.in (install-in): Use new mk-includedir-link macro. |
|
5025 (install-lib): Install in $octlibdir. Use new mk-libdir-link macro. |
|
5026 |
|
5027 Tue May 20 01:24:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5028 |
|
5029 * ov-list.cc (Flist): Rename from Fmake_list. |
|
5030 |
|
5031 Mon May 19 14:45:58 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5032 |
|
5033 * octave.cc (maximum_braindamage): Set default_eval_print_flag to 0. |
|
5034 |
|
5035 Sat May 17 16:32:23 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5036 |
|
5037 * defaults.cc (set_default_editor): Default is now Emacs, not vi. |
|
5038 |
2984
|
5039 Fri May 16 00:07:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5040 |
2991
|
5041 * pt-idx.cc (tree_index_expression::name): New function. |
|
5042 |
|
5043 * pt.cc (tree::str_print_code): New file, new convenience function. |
|
5044 * pt-arg-list.cc (tree_argument_list::get_arg_names): Use it. |
|
5045 * pt-assign.cc (tree_simple_assignment::rvalue): Likewise. |
|
5046 (tree_multi_assignment::rvalue): Likewise. |
|
5047 |
2990
|
5048 * pt-colon.h (tree_colon_expression::save_base): New data memmber. |
|
5049 (tree_colon_expression::preserve_base): New function. |
|
5050 * parse.y (finish_colon_expression): When converting to a simple |
|
5051 expression, be sure to delete the original colon expression but |
|
5052 not the base value. |
|
5053 |
|
5054 * pt-mat.cc (tree_matrix::~tree_matrix): Actually do something. |
|
5055 |
2987
|
5056 * pt-all.h: New file. |
|
5057 * parse.y, lex.l, pt-pr-code.cc: Use it. |
|
5058 |
|
5059 * pt.h: Rename from pt-base.h. |
|
5060 |
|
5061 * All parse tree classes: Add private copy constructors and |
|
5062 assignment operators to prevent copying. |
|
5063 |
|
5064 * pt-base.cc: Delete. |
|
5065 |
2985
|
5066 * unwind-prot.h, unwind-prot.cc: Make a bit more object-oriented. |
|
5067 Change all uses of unwind_protect stuff to match. |
|
5068 |
|
5069 * pt-jump.h, pt-jump.cc (breaking, continuing, returning): |
|
5070 Make these flags static members of the corresponding class. |
|
5071 Change all uses. |
|
5072 |
2984
|
5073 * pt-assign.cc (tree_simple_assignment_expression::eval, |
|
5074 tree_multi_assignment_expression::eval): Clear lvalue index here. |
|
5075 |
|
5076 * oct-lvalue.cc (octave_lvalue::assign): Don't clear index here. |
|
5077 * oct-lvalue.h (octave_lvalue::clear_index): New function. |
|
5078 (octave_lvalue::set_index): Rename from octave_lvalue::index. |
|
5079 Change all callers. |
|
5080 |
2976
|
5081 Thu May 15 11:48:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5082 |
2983
|
5083 * pt-select.h, pt-select.cc (class tree_if_command_list, |
|
5084 class tree_if_clause, class tree_switch_case_list, |
|
5085 class tree_switch_case): Move here from pt-misc.h, pt-misc.cc. |
|
5086 * pt-decl.h, pt-decl.cc (class tree_decl_init_list, |
|
5087 class tree_decl_elt): Move here from pt-mist.h, pt-misc.cc |
|
5088 |
|
5089 * pt-arg-list.h, pt-stmt.h: New files, extracted from pt-misc.h. |
|
5090 * pt-arg-list.cc, pt-stmt.cc: New files, extracted from pt-misc.cc. |
|
5091 |
|
5092 * pt-decl.h, pt-except.h, pt-jump.h, pt-loop.h, pt-select.h: |
|
5093 New files, extraced from pt-cmd.h. |
|
5094 * pt-decl.cc, pt-except.cc, pt-jump.cc, pt-loop.cc, pt-select.cc: |
|
5095 New files, extraced from pt-cmd.cc. |
|
5096 |
2980
|
5097 * pt-unop.h, pt-binop.h, pt-colon.h, pt-idx.h, pt-assign.h: |
|
5098 New files, extracted from pt-exp.h |
|
5099 * pt-unop.cc, pt-binop.cc, pt-colon.cc, pt-idx.cc, pt-assign.cc: |
|
5100 New files, extracted from pt-exp.cc |
|
5101 * pt-exp.h, pt-exp.cc: Rename from pt-exp-base.h, pt-exp-base.cc. |
|
5102 |
2979
|
5103 * oct-lvalue.h: Rename from oct-var-ref.h. Rename class from |
|
5104 octave_variable_reference to octave_lvalue. Change all uses. |
|
5105 * oct-lvalue.cc: Rename from oct-var-ref.cc. |
|
5106 |
2978
|
5107 * variables.cc (bind_ans): Only bind ans and print result if value |
|
5108 is defined. |
|
5109 |
2976
|
5110 * defun.cc: New file. Move functions for installing objects in |
|
5111 the symbol table here from variables.cc. |
|
5112 |
|
5113 * oct-obj.h, oct-obj.cc: Add custom allocator, fwiw. |
|
5114 |
|
5115 * toplev.cc (main_loop): Correctly increment command number. |
|
5116 |
|
5117 * TEMPLATE-INST/SLList-tm.cc: Don't instantiate lists of pointers |
|
5118 to tree_matrix_row objects. |
|
5119 * TEMPLATE-INST/SLList-misc.cc: Do instantiate lists of pointers |
|
5120 to tree_argument_list objects. |
|
5121 |
|
5122 * DLD-FUNCTIONS/dassl.cc: Update to use new octave_function |
|
5123 interface to user-supplied functions. |
|
5124 * DLD-FUNCTIONS/fsolve.cc: Likewise. |
|
5125 * DLD-FUNCTIONS/lsode.cc: Likewise. |
|
5126 * DLD-FUNCTIONS/npsol.cc: Likewise. |
|
5127 * DLD-FUNCTIONS/quad.cc: Likewise. |
|
5128 |
|
5129 * dynamic-ld.h, dynamic-ld.cc (builtin_fcn_installer typedef): |
|
5130 Rename from builtin_fcn. |
|
5131 (octave_dynamic_loader::load_fcn_from_dot_oct_file): |
|
5132 Simplify by using new installer function defined by DEFUN_DLD. |
|
5133 |
|
5134 * defun-dld.h (DEFUN_DLD): Use DEFINE_FUN_INSTALLER_FUN instead of |
|
5135 DEFINE_FUN_STRUCT_FUN. |
|
5136 * defun.h (DEFUN_MAPPER): Use DEFUN_MAPPER_INTERNAL. |
|
5137 * defun-int.h (DEFVAR_INTERNAL): Rename from DEFVAR_INT and move |
|
5138 here from defun.h. Change all uses. |
|
5139 (DEFUN_MAPPER_INTERNAL): New macro. |
|
5140 (DEFINE_FUN_INSTALLER_FUN): New macro to define function that the |
|
5141 dynamic loader calls to do all the work of installing a new function. |
|
5142 (DEFINE_FUN_STRUCT_FUN): Delete. |
|
5143 |
|
5144 * parse.y: Rewrite to handle more general expressions. |
|
5145 * lex.l: Corresponding changes. |
|
5146 |
|
5147 * pt-walk.h, pt-pr-code.h, pt-pr-code.cc: Cope with new parse tree |
|
5148 object structure. |
|
5149 |
|
5150 * pt-misc.cc (class tree_for_command): Split into |
|
5151 tree_simple_for_command and tree_complex_for_command classes. |
|
5152 |
|
5153 * pt-misc.h, pt-misc.cc (tree_statement::eval): Handle identifier |
|
5154 lookup and printing and binding ans here. |
|
5155 (tree_statement_list::eval): Simplify. |
|
5156 (tree_argument_list::all_elements_are_constant): New function. |
|
5157 (class tree_decl_elt): Now contains id and expr, not an assignment |
|
5158 expression. |
|
5159 |
|
5160 * pt-exp-base.h pt-exp.h pt-id.h pt-indir.h pt-mat.h pt-const.h, |
|
5161 pt-exp-base.cc pt-exp.cc pt-id.cc pt-indir.cc pt-mat.cc pt-const.cc: |
|
5162 Replace eval functions with rvalue and lvalue functions. |
|
5163 Change all uses. |
|
5164 (lvalue_ok, rvalue_ok): New functions, for future compile-time |
|
5165 semantic checks. |
|
5166 |
|
5167 * oct-var-ref.h (is_defined, is_map): New functions. |
|
5168 |
|
5169 * pt-exp.h (class tree_oct_obj): Delete. |
|
5170 |
|
5171 * variables.cc (extract_function, is_valid_function): Return |
|
5172 pointer to octave_function, not octave_symbol. |
|
5173 (link_to_global_variable): Rewrite. Handle errors in |
|
5174 symbol_record::mark_as_linked_to_global. |
|
5175 |
|
5176 * symtab.h, symtab.cc (class symbol_def, class symbol_record): |
|
5177 Symbols are now stored as octave_value objects only. |
|
5178 |
|
5179 * ov.cc (install_types): Register function types here. |
|
5180 * ov-fcn.h, ov-fcn.cc, ov-builtin.h, ov-builtin.cc, ov-mapper.h, |
|
5181 ov-mapper.cc, ov-usr-fcn.h, ov-usr-fcn.cc: New classes for |
|
5182 functions as values. |
|
5183 * ov.h (class octave_value): Don't derive from octave_symbol. |
|
5184 * oct-fcn.h, oct-fcn.cc, oct-builtin.h, oct-builtin.cc, |
|
5185 oct-mapper.h, oct-mapper.cc, oct-usr-fcn.h, oct-usr-fcn.cc, |
|
5186 oct-sym.h, oct-sym.cc: Delete. |
|
5187 |
2963
|
5188 Sun May 11 17:51:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5189 |
|
5190 * help.cc (Ftype): Make it work again for functions. |
|
5191 |
|
5192 * pt-pr-code.cc (tree_print_code::print_parens): New function. |
|
5193 Use it in other tree_print_code functions to handle printing all |
|
5194 the parens that we found when parsing the expression, not just one |
|
5195 pair. |
|
5196 * pt-exp-base.h (tree_expression::paren_count): Rename from |
|
5197 is_in_parens. |
|
5198 * parse.y (maybe_warn_assign_as_truth_value): Use new name. |
|
5199 |
|
5200 * parse.y (constant): New non-terminal. |
|
5201 (simple_expr1): Use it. |
|
5202 |
|
5203 * parse.y (make_unary_op): Delete. |
|
5204 (simple_expr1): Where appropriate, use make_prefix_op and |
|
5205 make_postfix_op instead of make_unary_op. Allow increment and |
|
5206 decrement ops to work on expressions, not just identifiers. |
|
5207 (make_prefix_op, make_postfix_op): Arg is expression, not identifier. |
|
5208 Handle old unary_op cases too. |
|
5209 (fold (tree_unary_expression *)): Delete. |
|
5210 * pt-exp.h, pt-exp.cc (tree_prefix_expression::eval): Handle unary |
|
5211 minus and not here. |
|
5212 (tree_postfix_expression::eval): Likewise, for transpose and hermitian. |
|
5213 (class tree_prefix_expression, class tree_postfix_expression): |
|
5214 Derive from tree_unary_expression. Delete identifier member. |
|
5215 Delete ident member function. |
|
5216 (tree_unary_expression): Don't handle evaluation here. |
|
5217 * pt-exp-base.h (mark_in_parens): No longer virtual. Return this. |
|
5218 (reference): New virtual function. |
|
5219 (class tree_expression): Don't handle expression type here. |
|
5220 * pt-mvr-base.h (tree_multi_val_ret::tree_multi_val_ret): Likewise. |
|
5221 * pt-mvr.h, pt-mvr.cc (tree_multi_assignment_expression): Likewise. |
|
5222 * pt-walk.h (visit_unary_expression): Delete declaration. |
|
5223 * pt-pr-code.h, pt-pr-code.cc (visit_unary_expression): Delete. |
|
5224 (visit_prefix_expression): Use operand(), not ident(). |
|
5225 new, visit_postfix_expression): |
|
5226 * pt-id.h, pt-id.cc (increment, decrement): Delete. |
|
5227 |
|
5228 * pt-misc.cc (tree_parameter_list::define_from_arg_vector): Get a |
|
5229 reference to each element and use the assignment operator instead |
|
5230 of tree_identifier::define. |
|
5231 * pt-id.h, pt-id.cc (tree_identifier::define): Delete versions |
|
5232 that take octave_value and octave_symbol args. |
|
5233 |
|
5234 Sat May 10 23:32:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5235 |
|
5236 * pt-indir.h, pt-indir.cc (tree_indirect_reference::value): Delete. |
|
5237 |
|
5238 * oct-var-ref.cc (octave_variable_ref::assign): Clear idx after |
|
5239 assignment. |
|
5240 |
2976
|
5241 * octave_value classes: Add is_constant, is_function, and |
|
5242 function_value functions. |
|
5243 |
2963
|
5244 * ov.h, ov.cc (assign): Return void, not reference to octave_value. |
|
5245 (do_index_op): Rename, from index. |
|
5246 (do_struct_elt_index_op): Rename, from struct_elt_val. |
|
5247 Add version that accepts index arg. |
|
5248 Change all uses and derived classes to match. |
|
5249 * pt-const.h (index): Delete. |
|
5250 * oct-var-ref.h, oct-var-ref.cc (value): Handle indexed structure |
|
5251 ops here too. |
|
5252 |
2949
|
5253 Fri May 9 07:40:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5254 |
2958
|
5255 * pt-exp.cc (print_rhs_assign_val, symbols_of_pt_exp): New functions. |
|
5256 (Vprint_rhs_assign_val): New static variable. |
|
5257 (tree_simple_assignment_expression::eval): Use it to optionally |
|
5258 allow the rhs (which is the result) of an assignment to be printed |
|
5259 instead of the left. |
|
5260 |
2955
|
5261 * pt-exp.cc (tree_simple_assignment_expression::eval): Use new |
|
5262 octave_variabl_reference::index function to handle indexing. |
|
5263 |
|
5264 * oct-var-ref.h, oct-var-ref.cc (idx): New data member. |
|
5265 (octave_variable_reference::index): Set it. |
|
5266 (octave_variable_reference::assign): Handle indexing here. |
|
5267 Delete version of this function htat takes index arg. |
|
5268 |
|
5269 * variables.h (struct builtin_varaible): Delete. |
|
5270 * variables.cc (install_builtin_variable): Take all elts of |
|
5271 builtin_variable struct directly. |
|
5272 * defun.h (DEFVAR_INT): Call install_builtin_variable directly. |
|
5273 |
|
5274 * symtab.h, defun-int.h: Don't include variables.h. |
|
5275 |
|
5276 * symtab.h (symbol_record::sv_function): Move typedef here. |
|
5277 * variables.h: From here. |
|
5278 |
|
5279 * oct-var-ref.h, oct-var-ref.cc: New files for |
|
5280 octave_variable_reference class, extracted from variables.h and |
|
5281 variables.cc |
2956
|
5282 * Makefile.in: Add them to the appropriate lists. |
2955
|
5283 |
|
5284 * oct-obj.h (octave_value_list::empty): New function. |
|
5285 |
2949
|
5286 * variables.h (class octave_variable_reference): Rewrite to work |
|
5287 as a proxy class to store a pointer to octave_value and, |
|
5288 optionally, the change function to call and the name of the |
|
5289 structure element we are referencing. Handle assignment, |
|
5290 increment, decrement, and value operations. |
|
5291 |
2956
|
5292 Thu May 8 23:40:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5293 |
2949
|
5294 * ov-re-mat.h, ov-re-mat.cc (struct_elt_ref, struct_elt_val, |
|
5295 assign_struct_elt): Provide functions for looking up and setting |
|
5296 matrix dimensions. |
|
5297 |
|
5298 * symtab.cc (symbol_record::define): Don't call sv_fcn here. |
|
5299 Don't save and restore value here. |
|
5300 (symbol_record::define_builtin_var): Do call sv_fcn here. |
|
5301 (symbol_record::variable_reference): Don't make value unique here. |
|
5302 Return pointer to sv_fcn in octave_variable_reference. |
|
5303 |
|
5304 * pt-misc.cc (tree_parameter_list::initialize_undefined_elements): |
|
5305 Simplify. |
|
5306 |
|
5307 * pt-id.h, pt-id.cc (tree_identifier::reference): Return |
|
5308 octave_variable_reference, not octave_value&. |
|
5309 * symtab.h, symtab.cc (symbol_record::variable_reference): Ditto. |
|
5310 * pt-indir.h, pt-indir.cc (tree_indirect_ref::reference): Ditto. |
|
5311 Simplify too. |
|
5312 |
|
5313 * pt-const.h (tree_constant::reference, tree_constant::value, |
|
5314 tree_constant::assign): Delete unnecessary functions. |
|
5315 * pt-id.h, pt-id.cc (tree_identifier::assign): Ditto. |
|
5316 |
|
5317 * pt-cmd.cc (tree_for_command::do_for_loop_once): Simplify. |
|
5318 |
|
5319 * ov.h, ov.cc, ov-base.h, ov-base.cc, ov-struct.h, ov-struct.cc |
|
5320 (struct_elt_ref): New arg, octave_value* parent. |
|
5321 Allow deferred lookup. Return octave_variable_reference, not |
|
5322 octave_value&. |
|
5323 |
|
5324 * ov.h, ov.cc, ov-re-mat.h, ov-re-mat.cc (assign_struct_elt): |
|
5325 New virtual functions. |
|
5326 |
|
5327 * ov.h, ov.cc (Vresize_on_range_error): Now static. |
|
5328 |
|
5329 * pt-mvr.cc (tree_index_expression::eval): Delete redundant check |
|
5330 of error_state. |
|
5331 |
2944
|
5332 Wed May 7 21:17:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5333 |
|
5334 * input.cc (generate_completion): Rename from command_generator. |
|
5335 Use string objects instead of char*. |
|
5336 (generate_possible_completions): Let qsort also make matches unique. |
|
5337 (initialize_command_input): Register generate_completion with the |
|
5338 command_editor class. |
|
5339 (completion_matches): Simplify using generate_completion. |
|
5340 |
|
5341 * pt-pr-code.cc (tree_print_code::visit_constant): For val, call |
|
5342 print_raw, not print. |
|
5343 |
|
5344 * oct-usr-fcn.h (octave_user_function::argn_sr): New data member. |
|
5345 (octave_user_function::install_automatic_vars): Rename from |
|
5346 install_nargin_and_nargout. |
|
5347 (octave_user_function::bind_automatic_vars): Rename from |
|
5348 bind_nargin_and_nargout. |
|
5349 * oct-usr-fcn.cc (octave_user_function::eval): Extract arg names |
|
5350 from args vector and bind them to argn. |
|
5351 * oct-obj.h (octave_value_list::names): New data member. |
|
5352 * oct-obj.cc (octave_value_list::stash_name_tags): New function. |
|
5353 (octave_value_list::name_tags): Ditto. |
|
5354 * pt-const.h, pt-const.cc (tree_constant::print_raw): New function. |
|
5355 * pt-misc.h, pt-misc.cc (tree_argument_list::get_arg_names): |
|
5356 New function. |
|
5357 * pt-mvr.h, pt-mvr.cc (class index_expression): Cache arg names. |
|
5358 * toplev.cc (feval): Now static. Handle arg names. |
|
5359 |
|
5360 * mkops: Cope with moving files defining operators to OPERATORS |
|
5361 subdirectory. |
|
5362 |
2937
|
5363 Tue May 6 00:48:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5364 |
|
5365 * DLD-FUNCTIONS/getgrent.cc: Use new octave_group class. |
|
5366 * DLD-FUNCTIONS/getpwent.cc: Use new octave_passwd class. |
|
5367 |
|
5368 * syscalls.cc: Simplify by using new functions defined in |
|
5369 liboctave/oct-syscalls.cc. |
|
5370 |
|
5371 * file-io.cc (Ftmpnam): Accept DIR and PREFIX args. |
|
5372 |
2929
|
5373 Mon May 5 00:54:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5374 |
2932
|
5375 * ov-str-mat.cc (octave_char_matrix_str::print_name_tag): Print |
|
5376 empty strings on one line. |
|
5377 |
2929
|
5378 * DLD-FUNCTIONS, OPERATORS, and TEMPLATE-INST: New subdirectories. |
|
5379 Move appropriate files to new directories. |
|
5380 * Makefile.in: Add DLD-FUNCTIONS, OPERATORS, and TEMPLATE-INST |
|
5381 directories to VPATH. Fix rules to work with new directory |
|
5382 structure. |
|
5383 |
2927
|
5384 Sun May 4 22:40:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5385 |
|
5386 * input.cc (initialize_command_input): Rename from |
|
5387 initialize_readline. |
|
5388 (gnu_readline, octave_gets, get_user_input): Simplify, return |
|
5389 string, not char *. |
|
5390 |
|
5391 * Many of other files: Miscellaneous changes to go along with the |
|
5392 changes described in the liboctave/ChangeLog for May 4. More code |
|
5393 moved from here to liboctave. |
|
5394 |
|
5395 Fri May 2 19:50:33 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5396 |
|
5397 * pathlen.h: Move to ../liboctave. |
|
5398 |
2921
|
5399 Thu May 1 21:50:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5400 |
|
5401 * variables.cc (get_struct_elts): New fucntion. |
|
5402 (looks_like_struct, generate_struct_completions): Move here from |
|
5403 input.cc, rewrite, and make work again. |
|
5404 |
2916
|
5405 Wed Apr 30 00:24:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5406 |
|
5407 * ov-base.h, ov-bool-mat.cc, ov-bool-mat.h, ov-bool.cc, ov-bool.h, |
|
5408 ov-ch-mat.cc, ov-ch-mat.h, ov-complex.cc, ov-complex.h, |
|
5409 ov-cx-mat.cc, ov-cx-mat.h, ov-file.cc, ov-file.h, ov-list.cc, |
|
5410 ov-range.cc, ov-range.h, ov-re-mat.cc, ov-re-mat.h, ov-scalar.cc, |
|
5411 ov-scalar.h, ov-str-mat.cc, ov-struct.cc, ov.h (scalar_value): |
|
5412 New function. Same as double_value, but name is consistent with |
|
5413 octave_scalar class. |
|
5414 |
|
5415 * op-fil-b.cc, op-fil-cm.cc, op-fil-lis.cc, op-fil-rec.cc, |
|
5416 op-fil-str.cc, op-fil-bm.cc, op-fil-cs.cc, op-fil-m.cc, |
|
5417 op-fil-s.cc: New files. |
|
5418 |
|
5419 * ops.h (ASSIGNOPDECL, DEFASSIGNOP, DEFASSIGNOP_FN, CONVDECL, |
|
5420 DEFCONV, BINOPDECL, DEFBINOPX, DEFBINOP, DEFBINOP_OP, DEFBINOP_FN, |
|
5421 BINOP_NONCONFORMANT): New macros. |
|
5422 * op-b-b.cc, op-bm-bm.cc, op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, |
|
5423 op-cm-s.cc, op-cs-cm.cc, op-cs-cs.cc, op-cs-m.cc, op-cs-s.cc, |
|
5424 op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, op-s-cm.cc, |
|
5425 op-s-cs.cc, op-s-m.cc, op-s-s.cc, op-str-str.cc: Use them. |
|
5426 |
|
5427 * Makefile.in (octave): Also depend on ops.o. |
|
5428 |
|
5429 * builtins.h: Delete. |
|
5430 * octave.cc: Add extern declaration here. |
|
5431 |
|
5432 * mappers.h: Delete. |
|
5433 * Makefile.in (INCLUDES): Delete from list. |
|
5434 * mkbuiltins: Add extern declaration in builtins.cc. |
|
5435 |
|
5436 * mkops: New file. |
|
5437 * ops.cc: Delete. |
|
5438 * Makefile.in (SOURCES): Delete from the list. |
|
5439 (ops.cc): New target. |
|
5440 (OP_SOURCES): New list. Move all op-*.cc files here from SOURCES. |
|
5441 Add $(OP_SOURCES) to SOURCES list. |
|
5442 |
|
5443 * variables.cc (symbols_of_variables): No longer static. |
|
5444 * ov.cc (symbols_of_ov): Rename from symbols_of_value. |
|
5445 |
|
5446 * ov-base.h: Delete declaration for install_base_type_conversions. |
|
5447 * op-b-b.h, op-bm-bm.h, op-cm-cm.h, op-cm-cs.h, op-cm-m.h, |
|
5448 op-cm-s.h, op-cs-cm.h, op-cs-cs.h, op-cs-m.h, op-cs-s.h, |
|
5449 op-m-cm.h, op-m-cs.h, op-m-m.h, op-m-s.h, op-s-cm.h, op-s-cs.h, |
|
5450 op-s-m.h, op-s-s.h, op-str-str.h: Delete. |
|
5451 * Makefile.in (INCLUDES): Delete them from the list. |
|
5452 |
|
5453 Tue Apr 29 22:27:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5454 |
|
5455 * variables.h, variables.cc (install_builtin_variables): Delete. |
|
5456 * mkbuiltins: Also generate install_builtin_variables function. |
|
5457 * Makefile.in: Fix rule to call mkbuiltins with correct args. |
|
5458 (clean): Also delete def-files and var-files. |
|
5459 * defaults.h.in, dirfns.h, error.h, file-io.h, help.h, input.h, |
|
5460 lex.h, load-save.h, oct-usr-fcn.h, pager.h, parse.h, pr-output.cc, |
|
5461 pr-output.h, pt-mat.h, pt-misc.h, pt-plot.h, toplev.h: |
|
5462 Delete declarations of symbols_of_* functions. |
|
5463 * data.h, syscalls.h: Delete. |
|
5464 |
|
5465 * pr-output.cc (octave_print_internal): Leave printing of final |
|
5466 new line up to the caller. |
|
5467 |
|
5468 * ov.h, ov.cc (reset_indent_level, increment_indent_level, |
|
5469 decrement_indent_level, newline, indent, reset, |
|
5470 curr_print_indent_level, beginning_of_line): |
|
5471 New functions and static data to manage indent level for printing. |
|
5472 (print_as_scalar): Delete. |
|
5473 (print, print_with_name): Always require stream arg. |
|
5474 Change all callers. |
|
5475 |
|
5476 * oct-stream.h (octave_stream::input_stream): Make publicly available. |
|
5477 (octave_stream::output_stream): Likewise. |
|
5478 |
|
5479 * ov-base.h, ov-base.cc, ov.h, ov.cc, ov-file.h ov-base.h |
|
5480 (is_file, stream_value, stream_number): New functions. |
|
5481 * ov-file.h, ov-file.cc: New files for value class to manage files. |
|
5482 * file-io.cc (symbols_of_file_io): Define stdin, stdout, and |
|
5483 stderr as octve_file objects, not just integers. |
|
5484 (Ffopen, Fpopen): Return octave_file objects, not integer file ids. |
|
5485 * syscalls.cc (Fpipe): Likewise. |
|
5486 * oct-stream.h, oct-stream.cc (octave_stream_list::insert): |
|
5487 Return octave_file object, not integer file id. |
|
5488 |
|
5489 * ov-base.cc, ov-bool-mat.cc, ov-bool.cc, ov-ch-mat.cc, |
|
5490 ov-complex.cc, ov-cx-mat.cc, ov-file.cc, ov-list.cc, ov-range.cc, |
|
5491 ov-re-mat.cc, ov-scalar.cc, ov-str-mat.cc, ov-struct.cc, ov.cc |
|
5492 (print_name_tag, print_raw): New functions. |
|
5493 |
|
5494 * help.cc (Ftype): Don't cast symbol definition to tree_constant *. |
|
5495 |
|
5496 * variables.cc (link_to_global_variable): Don't try to define |
|
5497 symbol with tree_constant objects. |
|
5498 (bind_ans): Call symbol_record::define directly and then |
|
5499 octave_value::print_with_name instead of creating a temporary |
|
5500 assignment expression. |
|
5501 |
|
5502 * pt-pr-code.cc (tree_print_code::indent): Don't use ostream::form. |
|
5503 |
|
5504 * pt-exp-base.h, pt-exp.h, pt-exp.cc (oper): Return string, not |
|
5505 char *. Change all where necessary. |
|
5506 |
|
5507 Mon Apr 28 16:33:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5508 |
|
5509 * ov.h (octave_value binary_op enum): Add lshift and rshift. |
|
5510 (octave_value assign_op enum): Add lshift_eq and rshift_eq. |
|
5511 * ov.cc (assign_op_as_string, binary_op_as_string): Include them. |
|
5512 * parse.y (LSHIFT_EQ RSHIFT_EQ LSHIFT RSHIFT): New tokens. |
|
5513 Add them to the precedence list. |
|
5514 (simple_expr): Add new operators. |
|
5515 (make_assign_op, make_binary_op): Handle new operators. |
|
5516 * lex.l: Recognize new operators. |
|
5517 |
|
5518 * lex.l: Recognize them. |
|
5519 |
|
5520 Sun Apr 27 20:17:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2898
|
5521 |
|
5522 * pt-misc.cc (Vsilent_functions, silent_functions): |
|
5523 Move here from oct-usr-fcn.cc. |
|
5524 (symbols_of_pt_misc): New function. DEFVAR silent_functions. |
|
5525 (tree_statement_list::eval): Handle Vsilent_functions here instead |
|
5526 of in octave_user_function::eval. |
|
5527 (tree_statement::eval): New functions. |
|
5528 (tree_statement_list::eval): Use them. |
|
5529 Change print flag arg to silent flag. Change all callers. |
|
5530 * variables.cc (install_builtin_variables): Call symbols_of_pt_misc. |
|
5531 * toplev.cc (parse_and_execute): Delete print arg. Change all callers. |
|
5532 (eval_string): Change print flag arg to silent flag. Change callers. |
|
5533 |
|
5534 * dynamic-ld.h, dynamic-ld.cc: Rewrite to use singleton class. |
|
5535 * variables.cc (load_fcn_from_file): Use new dynamic linking class. |
|
5536 |
2893
|
5537 * dynamic-ld.h (Octave_builtin_fcn): Delete typedef. |
|
5538 * dynamic-ld.cc: Simplify via the magic of function pointers. |
|
5539 |
|
5540 * pt-fcn.h pt-fcn.cc pt-fvc.h pt-fvc.cc pt-fvc-base.h pt-fvc-base.cc: |
|
5541 Delete obsolete files. |
|
5542 * Makefile.in: Remove them from various lists. |
|
5543 |
|
5544 * pt-walk.h (visit_octave_user_function): Rename from visit_function. |
|
5545 (visit_builtin): Delete. |
|
5546 * pt-pr-code.h, pt-pr-code.cc (visit_octave_user_function): |
|
5547 Rename from visit_function. |
|
5548 (visit_octave_user_function_header): Rename from visit_function_header. |
|
5549 (visit_octave_user_function_trailer): Rename from |
|
5550 visit_function_trailer. |
|
5551 |
|
5552 * ov.h, ov.cc (eval): New functions. |
|
5553 |
|
5554 * dassl.cc, fsolve.cc, lsode.cc, npsol.cc, qpsol.cc, quad.cc: |
|
5555 Declare user-defined functions as a pointer to an octave_symbol |
|
5556 object, not as a pointer to a tree_fvc object. |
|
5557 |
|
5558 * symtab.h, symtab.cc: Use new octave_symbol class. |
|
5559 * variables.cc (install_builtin_function, install_builtin_mapper, |
|
5560 install_builtin_variable, install_builtin_variable_as_function): |
|
5561 Make work with new octave_symbol class and symbol table structure. |
|
5562 |
|
5563 * variables.h: Delete declaration of builtin_function struct. |
|
5564 * defun-dld.h (DEFUN_DLD): Simplify. |
|
5565 * defun-int.h (DEFINE_FUN_STRUCT): Delete. |
|
5566 (DEFINE_FUN_STRUCT_FUN): Rewrite to not use static builtin_function |
|
5567 object. |
|
5568 |
|
5569 * mappers.h: Delete declaration of builtin_mapper_function struct. |
|
5570 * mappers.cc: Declare wrapper functions static. |
|
5571 * defun.h (DEFUN_MAPPER): Simplify. |
|
5572 |
|
5573 * oct-sym.h: New file. Declare base class for Octave symbols. |
|
5574 * ov.h: Derive octave_value class from octave_symbol. |
|
5575 * oct-fcn.h, oct-fcn.cc: New files to declare and define |
|
5576 base class for functions. |
|
5577 * oct-builtin.h, oct-builtin.cc: New files to declare and define |
|
5578 class for built-in functions. |
|
5579 * oct-mapper.h, oct-mapper.cc: New files to declare and define |
|
5580 class for mapper functions. |
|
5581 * oct-usr-fcn.h, oct-usr-fcn.cc: New files to declare and define |
|
5582 base class for user-defined functions. |
|
5583 * Makefile.in: Add new files to appropriate lists. |
|
5584 |
|
5585 * pt-id.h, pt-id.cc: Move tree_identifier class here. |
|
5586 * pt-fvc.h, pt-fvc.cc: From here. |
|
5587 |
|
5588 * pt-indir.h, pt-indir.cc: Move tree_indirect_ref class here. |
|
5589 * pt-fvc.h, pt-fvc.cc: From here. |
|
5590 |
2881
|
5591 Thu Apr 24 03:58:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5592 |
2884
|
5593 * parse.y (magic_colon): New nonterminal. |
|
5594 (arg_list): Simplify using magic_colon. |
|
5595 |
2883
|
5596 * lex.h (class lexical_feedback): Delete maybe_screwed field. |
|
5597 New field, parsed_function name. |
|
5598 * lex.l (lexical_feedback::init): Initialize it. |
|
5599 (handle_identifier): Don't return SCREW. Handle switching |
|
5600 symbol table context properly for `function f ()' vs `function x ='. |
|
5601 (is_keyword): If looking at function keyword, don't set current |
|
5602 symbol table to point to the local table. |
|
5603 * parse.y (recover_from_parsing_function): New function. |
|
5604 (finish_function_def): Use identifier, not token. |
|
5605 Simplify parsing of functions. |
|
5606 |
|
5607 * ov-list.h, ov-list.cc: New files to implement generic list type. |
|
5608 * ov.cc (list_indent): New global variable. |
|
5609 (increment_list_indent, decrement_list_indent): New functions. |
|
5610 (install_types): Register octave_list type. |
|
5611 * ov-base.cc (octave_base_value::is_list): New function. |
|
5612 |
2881
|
5613 * oct-sym.h: New file. |
|
5614 * ov.h (class octave_value): Derive from octave_symbol class. |
|
5615 |
|
5616 * pt-const.h, pt-const.cc: Delete lots of old useless cruft. |
|
5617 |
|
5618 * pt-exp.h, pt-exp.cc (tree_binary_expression): Use type codes for |
|
5619 operators from octave_value instead of repeating them here. |
|
5620 |
|
5621 * pt-fvc-base.cc (tree_fvc::increment, tree_fvc::decrement): Delete. |
|
5622 * pt-fvc.cc (tree_identifier::increment): Get reference to value |
|
5623 and increment that instead of using virutal tree_fvc::increment |
|
5624 function. |
|
5625 |
|
5626 * lex.l: Handle +=, -=, *=, /=, .+=, .-=, .*=, ./=, &=, and |= ops. |
2883
|
5627 * parse.y (make_assign_op): Rename from make_simple_assignment and |
|
5628 handle different op types. |
|
5629 (simple_expr1): Do new ops. |
2881
|
5630 * pt-misc.cc (initialize_undefined_elements): Pass op to assign. |
|
5631 * pt-cmd.cc (tree_for_command::do_for_command_once): Likewise. |
|
5632 * pt-fvc.cc (tree_identifier::assign): Pass op. |
|
5633 * pt-exp.cc (tree_simple_assignment_expression): Handle new ops. |
|
5634 * variables.cc (octave_variable_reference::assign): Likewise. |
|
5635 * ov.h (class octave_value): Likewise. |
|
5636 * ov.cc (octave_value::assign_op_as_string): New function. |
|
5637 (octave_value::assign, octave_value::convert_and_assign, |
|
5638 octave_value::try_assignment_with_conversion, |
|
5639 octave_value::try_assignment): Pass op. |
|
5640 * pt-pr-code.cc (tree_print_code::visit_simple_assignment_expression): |
|
5641 Use expr.oper() instead of printing "=". |
|
5642 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-m-m.cc, |
|
5643 op-m-s.cc, op-str-str.cc: Pass op to INSTALL_ASSIGNOP. |
|
5644 * ops.h (INSTALL_ASSIGNOP): Pass op. |
2883
|
5645 * ov-typeinfo.cc (do_register_assign_op): Include op type in table. |
|
5646 (do_lookup_assign_op): Use op in lookup. |
2881
|
5647 |
|
5648 * ops.h (INSTALL_UNOP): Delete. |
|
5649 |
|
5650 * input.cc (generate_struct_completions, looks_like_struct): |
|
5651 Disable, since they don't work now anyway. |
|
5652 |
|
5653 * help.cc (Ftype): Work with octave_value instead of a pointer to |
|
5654 tree_constant. |
|
5655 * symtab.cc (symbol_record_info::symbol_record_info): Likewise. |
|
5656 |
|
5657 |
|
5658 Tue Apr 22 22:59:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5659 |
|
5660 * file-io.cc (Ffprintf): If first arg is a string, assume FID = 1. |
|
5661 |
|
5662 Fri Apr 18 20:16:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5663 |
|
5664 * oct-obj.h, oct-obj.cc: Implement octave_value_list with |
|
5665 Array<octave_value> as a data member, not as a class derived from |
|
5666 Array<octave_value>. |
|
5667 (octave_value_list::length, octave_value_list::resize, |
|
5668 octave_value_list::prepend, octave_value_list::append, |
|
5669 octave_value_list::reverse): New functions. |
|
5670 |
|
5671 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
5672 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
5673 op-s-cm.cc, op-s-m.cc: Use new bool ops from liboctave instead of |
|
5674 the macros defined in ops.h. |
|
5675 |
2865
|
5676 Thu Apr 17 13:12:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5677 |
|
5678 * parse.y (ABORT_PARSE): Handle forced_interactive the same as |
|
5679 interactive. |
|
5680 |
|
5681 Mon Apr 14 01:46:50 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5682 |
|
5683 * input.cc (octave_read): Don't forget to free input buffer if it |
|
5684 exists and has zero length. |
|
5685 (gnu_readline): Free buf if fgets returns 0. |
|
5686 |
|
5687 Wed Apr 9 00:03:57 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5688 |
|
5689 * time.cc (mk_tm_map): Only set zone field if HAVE_TM_ZONE or |
|
5690 HAVE_TZNAME are defined. |
|
5691 |
|
5692 Tue Apr 8 12:39:21 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5693 |
|
5694 * time.cc (extract_tm): Set tm.tm_zone if HAVE_TM_ZONE is defined, |
|
5695 not if HAVE_TMZONE is defined. |
|
5696 |
|
5697 * Makefile.in (%.oct : %.o): Use $(SH_LD), not $(CXX). |
|
5698 |
|
5699 Wed Apr 2 21:32:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5700 |
|
5701 * dynamic-ld.cc, dynamic-ld.h (init_dynamic_linker): Delete |
|
5702 function and declaration. |
|
5703 * octave.cc (main): Don't call it. |
|
5704 |
2856
|
5705 Mon Mar 31 00:37:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5706 |
2859
|
5707 * pt-base-exp.h (tree_expression::eval): Give arg a default value. |
|
5708 * pt-const.h (tree_constant::eval): Likewise. |
|
5709 * pt-exp.h (tree_prefix_expression::eval, tree_colon_expression::eval, |
|
5710 tree_postfix_expression::eval, tree_unary_expression::eval, |
|
5711 tree_binary_expression::eval, tree_boolean_expression::eval, |
|
5712 tree_simple_assignment_expression::eval): Likewise. |
|
5713 * pt-fcn.h (tree_function::eval): Likewise. |
|
5714 * pt-fvc.h (tree_identifier::eval, tree_indirect_ref::eval, |
|
5715 tree_builtin::eval): Likewise. |
|
5716 * pt-mat.h (tree_matrix::eval): Likewise. |
|
5717 * pt-misc.h (tree_statement_list::eval): Likewise. |
|
5718 * pt-mvr-base.h (tree_multi_val_ret::eval): Likewise. |
|
5719 * pt-mvr.h (tree_oct_obj::eval, tree_index_expression::eval, |
|
5720 tree_multi_assignment_expression::eval): Likewise. |
|
5721 * dassl.cc, fsolve.cc, load-save.cc, lsode.cc, npsol.cc, parse.y, |
|
5722 pt-cmd.cc, pt-exp-base.cc, pt-exp.cc, pt-fvc.cc, pt-mat.cc, |
|
5723 pt-misc.cc, pt-mvr.cc, pt-plot.cc, quad.cc, toplev.cc, variables.cc: |
|
5724 Change callers of eval() to use bool instead of int and to make |
|
5725 use of default argument value. |
|
5726 |
|
5727 * toplev.h, toplev.cc (parse_and_execute, eval_string): Flag args |
|
5728 are now bool instead of int. |
|
5729 |
2856
|
5730 * symtab.h, symtab.cc: Use bool instead of int in more places. |
|
5731 * variables.h, variables.cc: Likewise. |
2857
|
5732 * lex.h, lex.l: Likewise. |
|
5733 * parse.y: Likewise. |
2856
|
5734 * help.cc, input.cc, lex.l, load-save.cc, parse.y, pt-fcn.cc: |
|
5735 Change callers of symbol_table::lookup to use bool instead of int, |
|
5736 and to make use of default arguments. |
|
5737 |
2850
|
5738 Fri Mar 28 15:33:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5739 |
2852
|
5740 * parse.y (Vwarn_comma_in_declaration): Delete. |
|
5741 (symbols_of_parse): Delete DEFVAR for warn_comma_in_declaration. |
|
5742 (decl1): Don't allow commas in declarations. |
|
5743 |
2850
|
5744 * lsode.cc (struct LSODE_OPTIONS): Handle integer options. |
|
5745 (print_lsode_option_list, set_lsode_option, show_lsode_option): Ditto. |
|
5746 (lsode_option_table): Add element for step limit. |
|
5747 (lsode_user_jacobian): New function. |
|
5748 (Flsode): Allow function name arg to be a 2-element string array |
|
5749 specifying the function and jacobian function. |
|
5750 |
|
5751 * variables.cc (get_global_value, set_global_value): New functions. |
|
5752 |
2846
|
5753 Wed Mar 26 17:08:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5754 |
|
5755 Implement static variable declaration: |
|
5756 |
|
5757 * lex.l (is_keyword): Handle static. |
|
5758 * octave.gperf: Likewise. |
|
5759 * parse.y (Vwarn_comma_in_declaration): Rename from |
|
5760 Vwarn_comma_in_global_decl. |
|
5761 Handle new static command. |
|
5762 * pt-cmd.h, pt-cmd.cc (class tree_decl_command): New base class |
|
5763 for static and global declaration commands. |
|
5764 (class tree_global_command): Derive from tree_decl_command. |
|
5765 (class tree_static_command): New class, derived from tree_decl_command. |
|
5766 * pt-fvc.cc, pt-fvc.h (tree_identifier::mark_as_static): New function. |
|
5767 * pt-misc.h, pt-misc.h (class tree_decl_elt): Rename from tree_global. |
|
5768 (class tree_decl_init_list): Rename from tree_global_init_list. |
|
5769 * pt-pr-code.cc, pt-pr-code.h (tree_print_code::visit_decl_command): |
|
5770 Rename from visit_global_command. |
|
5771 (tree_print_code::visit_decl_elt): Rename from visit_global. |
|
5772 (tree_print_code::visit_decl_init_list): Rename from |
|
5773 visit_global_init_list. |
|
5774 * pt-walk.h (tree_walker::visit_decl_command): Rename from |
|
5775 visit_global_command. |
|
5776 (tree_walker::visit_decl_elt): Rename from visit_tree_global. |
|
5777 (tree_walker::visit_decl_init_list): Rename from |
|
5778 visit_global_init_list. |
|
5779 * variables.cc (link_to_global_variable): Trying to make a static |
|
5780 variable global is an error. |
|
5781 * SLList-misc.cc: Instantiate lists of pointers to tree_decl_elt |
|
5782 objects, not tree_global objects. |
|
5783 * symtab.h, symtab.cc (symbol_record::tagged_static): New field. |
|
5784 (symbol_record::mark_as_static, symbol_record::is_static): |
|
5785 New functions. |
|
5786 * symtab.cc (symbol_record::init_state): Initialize tagged_static. |
|
5787 (symbol_record::clear): Don't clear static variables. |
|
5788 * symtab.cc (push_context): Don't do anything for static variables. |
|
5789 |
2825
|
5790 Tue Mar 25 17:17:17 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5791 |
2881
|
5792 * ov-bool-mat.cc, ov-bool-mat.h, ov-bool.cc, ov-bool.h: New files. |
2832
|
5793 |
2831
|
5794 * defaults.cc (symbols_of_defaults): DEFCONST OCTAVE_HOME. |
|
5795 |
|
5796 * toplev.cc (octave_config_info): Delete use of CXXLIBS. |
|
5797 * oct-conf.h.in: Ditto. |
|
5798 |
2830
|
5799 * octave.cc (maximum_braindamage): Don't bind prefer_zero_one_indexing. |
|
5800 * ov.h: Don't declare Vprefer_zero_one_indexing. |
|
5801 * ov.cc: Don't define Vprefer_zero_one_indexing. |
|
5802 (prefer_zero_one_indexing): Delete. |
|
5803 (symbols_of_value): Delete DEFVAR for prefer_zero_one_indexing. |
|
5804 |
2825
|
5805 * ov.h, ov.cc, ov-base.h, ov-base.cc: Add constructors and |
|
5806 extractors for bool and boolMatrix types. |
|
5807 |
|
5808 * ov.cc (install_types): Register octave_bool and |
|
5809 octave_bool_matrix types. |
|
5810 |
|
5811 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
5812 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
5813 op-s-cm.cc, op-s-m.cc, op-s-s.cc, ov-re-mat.cc: |
|
5814 Return boolMatrix instead of Matrix object. |
|
5815 * ops.h (BOOL_OP3, MX_MX_BOOL_OP): Likewise. |
|
5816 |
|
5817 * op-b-b.h, op-b-b.cc, op-bm-bm.h, op-bm-bm.cc: New files. |
|
5818 * Makefile.in: Add them to the lists. |
|
5819 * ops.cc: Include header files here. |
|
5820 (install_ops): Call install_b_b_ops() and install_bm_bm_ops() here. |
|
5821 |
|
5822 * variables.cc (symbols_of_variables): Don't rely on default |
|
5823 conversion from int to double for value returned from |
|
5824 default_history_size(). |
|
5825 |
|
5826 * pr-output.cc: Include cstdio. |
|
5827 |
|
5828 * parse.y (param_list_end): Fix typo in last change. |
|
5829 |
|
5830 * quad.cc (quad): Cast integer return values to double. |
|
5831 * npsol.cc (show_npsol_option): Likewise. |
|
5832 * qpsol.cc (show_qpsol_option): Likewise. |
|
5833 * file-io.cc (Fsprintf, Ffwrite): Likewise. |
|
5834 |
|
5835 Mon Mar 24 13:11:47 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5836 |
|
5837 * ov-typeinfo.cc (typeinfo): If invoked with an argument, return |
|
5838 the type of the argument as a string. Fix doc string. |
|
5839 |
2821
|
5840 Thu Mar 20 14:47:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5841 |
|
5842 * mk-oct-links (links_dir): Don't use -h option for grep. It's |
|
5843 not needed since we are working on one file at a time anyway. |
|
5844 |
2819
|
5845 Mon Mar 17 10:53:29 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5846 |
|
5847 * lex.l (handle_identifier): When handling indirect_ref, set |
|
5848 lexer_flags.quote_is_transpose to 1 so that a.b' to work as |
|
5849 expected. |
|
5850 |
|
5851 * parse.y (param_list_beg, param_list_end): New nonterminals. |
|
5852 (param_list, param_list1): Use them. |
|
5853 |
2811
|
5854 Wed Mar 12 16:57:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5855 |
|
5856 * Makefile.in (install-strip): New target. |
|
5857 |
2806
|
5858 Mon Mar 10 22:38:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5859 |
|
5860 * Makefile.in (clean): Delete .oct files too. |
|
5861 |
|
5862 * toplev.cc (Vdefault_eval_print_flag): New static variable. |
|
5863 (eval_string): New arg, print. |
|
5864 (Feval): Pass Vdefault_eval_print_flag to eval_string. |
|
5865 (default_eval_print_flag): New function. |
|
5866 (symbols_of_toplev): New function. |
|
5867 |
|
5868 * variables.cc (install_builtin_variables): Call it. |
|
5869 |
|
5870 * pt-exp.h, pt-exp.cc (class tree_boolean_expression): Rename enum |
|
5871 fields `and' and `or' to `bool_and' and `bool_or'. |
|
5872 (tree_unary_expression): Rename enum field `not' to `unot'. |
|
5873 (class tree_binary_expression): Rename enum fields `and' and `or' |
|
5874 to `el_and' and `el_or'. |
|
5875 * parse.y: Change all uses. |
|
5876 |
|
5877 * time.cc (extract_tm): Truncate field values instead of rounding. |
|
5878 (gmtime, localtime): Likewise, for timeval. |
|
5879 |
|
5880 * ov.h (class octave_value): Delete unused variable freeptr. |
|
5881 |
|
5882 * mappers.cc: Delete functions that are already in |
|
5883 liboctave/lo-mappers.cc. |
|
5884 |
|
5885 * oct-strstrm.cc (octave_base_strstream::tell): Use const_cast, |
|
5886 not static_cast. |
|
5887 |
|
5888 * help.cc (help_from_list): Add missing const qualifiers. |
|
5889 * help.h (struct help_list): Likewise. |
|
5890 * lex.l (match_any, plot_style_token): Likewise. |
|
5891 * load-save.cc (extract_keyword, ascii_save_type): Likewise. |
|
5892 * oct-hist.cc (mk_tmp_hist_file): Likewise. |
|
5893 * octave.cc (execute_startup_files): Likewise. |
|
5894 * octave.gperf (struct octave_kw): Likewise. |
|
5895 * pr-output.cc (pr_any_float): Likewise. |
|
5896 * pt-mvr.cc (tree_index_expression::eval_error): Likewise. |
|
5897 * pt-exp-base.h, pt-exp.h, pt-exp.cc: Likewise. |
|
5898 * parse.y: Likewise. |
|
5899 |
2800
|
5900 Sun Mar 9 03:46:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5901 |
2806
|
5902 * pt-exp-base.h (tree_expression): Delete extra comma at end of list. |
|
5903 |
|
5904 * dirfns.cc error.cc file-io.cc fsolve.cc input.cc load-save.cc |
|
5905 npsol.cc pt-fcn.cc qpsol.cc quad.cc syscalls.cc toplev.cc |
|
5906 variables.cc: Eliminate embedded newlines in string constants. |
|
5907 |
|
5908 * Map.cc, data.cc, dirfns.cc, dynamic-ld.cc, file-io.cc, |
|
5909 fsolve.cc, getgrent.cc, getpwent.cc, getrusage.cc, help.cc, |
|
5910 input.cc, load-save.cc, mappers.cc, minmax.cc, npsol.cc, |
|
5911 oct-fstrm.cc, oct-procbuf.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
5912 oct-stream.cc, oct-stream.h, oct-strstrm.cc, octave.cc, |
|
5913 ov-base.h, ov-range.cc, ov-typeinfo.cc, ov.cc, pr-output.cc, |
|
5914 pt-cmd.cc, pt-exp.cc, pt-fcn.cc, pt-fvc.cc, pt-mat.cc, |
|
5915 pt-misc.cc, pt-plot.cc, qpsol.cc, quad.cc, sort.cc, strfns.cc, |
|
5916 symtab.cc, syscalls.cc, sysdep.cc, time.cc, toplev.cc, |
|
5917 unwind-prot.cc, unwind-prot.h, variables.cc, xpow.cc: |
|
5918 Use `static_cast<T> (val)' instead of old C-style `(T) val' casts. |
2800
|
5919 |
2799
|
5920 Sat Mar 8 02:35:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5921 |
|
5922 * load-save.cc (save_ascii_data, save_three_d): Where appropriate, |
|
5923 use bool instead of int. |
|
5924 (save_binary_data, save_mat_binary_data, save_ascii_data): |
|
5925 Print warning instead of error for wrong type arg. |
|
5926 |
|
5927 * gripes.cc (gripe_wrong_type_arg): New arg, is_error. |
|
5928 |
|
5929 * pt-plot.cc (save_in_tmp_file): Call save_ascii_data with bool |
|
5930 arg, not int. |
|
5931 |
2797
|
5932 Fri Mar 7 00:56:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5933 |
|
5934 * dassl.cc (show_dassl_option): For values that are determined |
|
5935 automatically, return a string instead of a magic value (-1.0). |
|
5936 * fsolve.cc (show_fsolve_option): Likewise. |
|
5937 * lsode.cc (show_lsode_option): Likewise. |
|
5938 * npsol.cc (show_npsol_option): Likewise. |
|
5939 * qpsol.cc (show_qpsol_option): Likewise. |
|
5940 |
|
5941 * variables.cc (extract_function): New function. |
|
5942 * dassl.cc (Fdassl): Use it instead of is_valid_function. |
|
5943 * fsolve.cc (Ffsolve): Likewise. |
|
5944 * npsol.cc (Fnpsol): Likewise. |
|
5945 * qpsol.cc (Fqpsol): Likewise. |
|
5946 * quad.cc (Fquad): Likewise. |
|
5947 |
2795
|
5948 Thu Mar 6 20:07:24 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5949 |
|
5950 * sighandlers.cc (my_friendly_exit, octave_new_handler, |
|
5951 sigfpe_handler, sigpipe_handler): Don't all error() or warning(). |
|
5952 |
|
5953 * pager.cc (pager_death_handler): Don't try to clear pager, just |
|
5954 print message to cerr. |
|
5955 (do_sync): If the status of the pager is bad or it looks like it |
|
5956 is dead, restore the interrupt handler. |
|
5957 |
|
5958 * load-save.cc (extract_keyword (istream&, char*, int&)): |
|
5959 Move declaration of buf inside loop, to avoid deleting its guts |
|
5960 and then trying to reuse it. |
|
5961 (extract_keyword (istream&, char*)): Likewise. |
|
5962 |
2790
|
5963 Tue Mar 4 20:36:53 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5964 |
2791
|
5965 * pt-fcn.cc (tree_function::eval): Protect function from being |
|
5966 redefined while it is being evaluated. |
|
5967 (unprotect_function): New function, for use with unwind_protect stuff. |
|
5968 * pt-fcn.h (tree_function::symtab_entry): New data member. |
|
5969 (tree_function::init): Initialize it to 0. |
|
5970 (tree_function::stash_symtab_ptr): New function. |
|
5971 * parse.y (frob_function_def): Stash pointer to function's |
|
5972 symbol_record in the function definition. |
|
5973 |
|
5974 * symtab.cc (symbol_record::read_only_error): New argument, |
|
5975 action. Change all callers. |
|
5976 (symbol_record::rename): Don't allow read-only symbols to be renamed. |
|
5977 |
2790
|
5978 * variables.cc (Fexist): Don't let files with `.' in their names |
|
5979 confuse us. |
|
5980 |
|
5981 * symtab.cc (valid_identifier (const string&)): New function. |
|
5982 |
2779
|
5983 Sat Mar 1 15:23:14 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2775
|
5984 |
|
5985 * Version 2.0.5 released. |
|
5986 |
2779
|
5987 Sat Mar 1 01:34:08 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5988 |
|
5989 * Makefile.in (stamp-oct-links): New target. Make links in build |
|
5990 directory too, so that the tests will work. |
|
5991 |
2777
|
5992 * quad.cc: If quad is defined, undefine it. |
|
5993 |
2775
|
5994 * octave.cc: If WITH_KPATHSEARCH is defined, don't define |
|
5995 program_invocation_name or program_invocation_short_name. |
2774
|
5996 |
|
5997 * strftime.c: Update to current version from FSF. |
|
5998 * time.cc (Fstrftime): Call strftime with buf = 0 to get buffer |
|
5999 size, then call again to actually format the time struct. |
|
6000 |
2762
|
6001 Fri Feb 28 01:49:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6002 |
2764
|
6003 Implement switch statement: |
|
6004 |
|
6005 * parse.y (Vwarn_variable_switch_label): New static variable. |
|
6006 (warn_variable_switch_label): New function. |
|
6007 (symbols_of_parse): Provide warn_variable_switch_label as Octave |
|
6008 variable here. |
|
6009 (make_switch_case, finish_switch_command): New functions. |
|
6010 (maybe_warn_variable_switch_label): New function. |
|
6011 (end_error): Handle endswitch. |
|
6012 (switch_command, case_list, case_list1, switch_case, default_case): |
|
6013 New nonterminals. |
|
6014 (command): Add switch_command here. |
|
6015 * lex.l (is_keyword): Handle switch, case, otherwise, and endswitch. |
|
6016 * octave_gperf: Recognize switch, case, otherwise, and endswitch. |
|
6017 * token.h (end_tok_type): New item, switch_end. |
|
6018 * pt-cmd.cc (tree_switch_command): New class. |
|
6019 * pt-misc.cc (tree_switch_case, tree_switch_case_list): New classes. |
|
6020 * pt-pr-code.cc (tree_print_code::visit_switch_case, |
|
6021 tree_print_code::visit_switch_case_list, |
|
6022 tree_print_code::visit_switch_command): New functions. |
|
6023 * pt-walk.h (tree_walker::visit_switch_case, |
|
6024 tree_walker::visit_switch_case_list, |
|
6025 tree_walker::visit_switch_command): New pure virtual declarations. |
|
6026 Implement new switch statement. |
|
6027 * SLList-misc.cc: Instantiate lists of pointers to |
|
6028 tree_switch_case objects too. |
|
6029 |
|
6030 * lex.h, lex.l, parse.y: Delete all references to lexer_flags::iffing. |
|
6031 |
2762
|
6032 * syswait.h: Include sys/wait.h on NeXT systems, but don't use the |
|
6033 WIFEXTED, WEXITSTATUS, and WIFSIGNALLED macros defined there. |
|
6034 Also define waitpid in terms of wait4. From Rex A. Dieter |
|
6035 <rdieter@math.unl.edu>. |
|
6036 |
2759
|
6037 Wed Feb 26 16:43:31 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6038 |
|
6039 * oct-stream.cc (octave_base_stream::do_scanf): Don't report an |
|
6040 error if a conversion fails or we reach EOF. |
|
6041 |
2745
|
6042 Tue Feb 25 22:21:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6043 |
|
6044 * time.cc (strftime): increase initial buffer size. |
|
6045 |
|
6046 Mon Feb 24 17:49:21 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6047 |
|
6048 * pt-fvc.cc (tree_builtin::eval): Enable checking for max number |
|
6049 of arguments. |
|
6050 |
|
6051 * error.cc (handle_message): Don't fail if args is empty. |
|
6052 |
|
6053 Sun Feb 23 22:42:52 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6054 |
|
6055 * lex.h (lexical_feedback::looking_at_return_list): New field. |
|
6056 (lexical_feedback::looking_at_parameter_list): Ditto. |
|
6057 * lex.l (lexical_feedback::init): Initialize them. |
|
6058 (handle_identifier): Use them. |
|
6059 * parse.y: Likewise. |
|
6060 |
2712
|
6061 Fri Feb 21 15:35:18 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6062 |
2716
|
6063 * lex.l: Require flex 2.5 or later (we really want 2.5.4 or later, |
|
6064 but there seems to be no good way to check the patchlevel). |
|
6065 |
2712
|
6066 * oct-stream.cc (octave_base_stream::oscanf): Instead of returning |
|
6067 an error, just quit processing after a conversion fails. |
|
6068 |
2709
|
6069 Thu Feb 20 02:58:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2702
|
6070 |
|
6071 * Version 2.0.4 released. |
|
6072 |
2706
|
6073 Wed Feb 19 10:30:14 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6074 |
2705
|
6075 * sighandlers.cc (octave_ignore_interrupts, |
|
6076 octave_catch_interrupts, octave_set_interrupt_handler): |
|
6077 Return old value, not pointer to static data. Fix all uses. |
|
6078 |
|
6079 * sighandlers.h (octave_interrupt_handler): Move declaration here. |
|
6080 * sighandlers.cc: From here. |
|
6081 |
|
6082 * toplev.cc: Undo previous change. |
|
6083 |
2702
|
6084 * lex.l (handle_identifier): Allow commands like ls, save, etc. to |
|
6085 also be used as simple variable names. Also make it possible to |
|
6086 use the normal function call syntax to invoke them. |
|
6087 |
2693
|
6088 Tue Feb 18 09:22:04 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2689
|
6089 |
2702
|
6090 * Makefile.in (%.oct:%.o, %.oct:pic/%.o): Use $(SH_LDFLAGS) here. |
|
6091 |
2690
|
6092 * Version 2.0.3 released. |
|
6093 |
2693
|
6094 Tue Feb 18 00:27:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6095 |
|
6096 * toplev.cc (run_command_and_return_output): |
|
6097 Block SIGCHLD while running subprocess. |
|
6098 (cleanup_iprocstream): Unblock it here. |
|
6099 |
|
6100 * sighandlers.h (BLOCK_SIGNAL, BLOCK_CHILD, UNBLOCK_CHILD): Move here. |
|
6101 * sighandlers.cc: From here. |
|
6102 |
2692
|
6103 * toplev.cc (system): Shift then mask exit status. |
|
6104 |
|
6105 * help.cc (try_info): Shift first, then mask exit status. |
|
6106 |
2689
|
6107 * toplev.cc (octave_config_info): Handle option argument. |
|
6108 |
2686
|
6109 Fri Feb 14 16:23:30 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6110 |
2687
|
6111 * oct-stream.cc (octave_base_stream::do_scanf): Don't forget to |
|
6112 check to see if the result matrix needs resizing! |
|
6113 |
2686
|
6114 * Makefile.in (bin-dist): Don't write empty strings to LIBRARIES. |
|
6115 |
2669
|
6116 Thu Feb 13 03:02:08 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6117 |
2676
|
6118 * Makefile.in (stamp-prereq): Depend on stamp-picdir. |
|
6119 (all): Don't depend on stamp-prereq or stamp-picdir. |
|
6120 (stamp-tinst, stamp-interp, libtinst.a, liboctinterp.a): |
|
6121 Do depend on stamp-prereq. |
|
6122 (stamp-picdir): Silence noise about making pic. |
|
6123 (stamp-tinst, stamp-interp): Use $(SH_LD) $(SH_LDFLAGS) instead of |
|
6124 $(CXX) -shared. |
|
6125 |
2675
|
6126 * oct-conf.h.in: Reinstate RLD_FLAG. |
|
6127 * toplev.cc (octave_config_info): Likewise. |
|
6128 |
2672
|
6129 * data.cc (map_d_m, map_m_d, map_m_m): Rename from map. |
|
6130 (Fatan2): Use new function names. |
|
6131 |
|
6132 * pt-fvc.cc (apply_mapper_fcn): Use member function map() instead |
|
6133 of friend function. |
|
6134 |
2669
|
6135 * gripes.cc (gripe_wrong_type_arg (const char*, const string&)): |
|
6136 New function. |
|
6137 |
|
6138 Wed Feb 12 17:27:53 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6139 |
|
6140 * syscalls.cc (symbols_of_syscalls): Add O_ASYNC and O_SYNC. |
|
6141 |
|
6142 Mon Feb 10 01:22:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6143 |
|
6144 * dirfns.cc (Freaddir, Fmkdir, Frmdir, Frename): |
|
6145 Also return status and error message. |
|
6146 |
|
6147 * syscalls.cc (Fdup2, Fexec, Ffork, Ffcntl, Funlink, Fmkfifo, |
|
6148 Fpipe, Fwaitpid): Also return error message. |
|
6149 |
2664
|
6150 Sat Feb 8 17:16:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6151 |
2665
|
6152 * pt-exp.cc (tree_simple_assignment_expression::eval): Return |
|
6153 value of RHS, but (if printing) print complete value of LHS. |
|
6154 |
2664
|
6155 * pr-output.cc (octave_print_internal): Print a new line for empty |
|
6156 string matrices. |
|
6157 |
2663
|
6158 Wed Feb 5 14:30:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6159 |
|
6160 * oct-stream.cc (scanf_format_list::process_conversion): Accept |
|
6161 but don't actually use h, l, and L modifiers. Always insert l |
|
6162 modifier for floating point conversions. |
|
6163 |
2652
|
6164 Fri Jan 31 13:55:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6165 |
|
6166 * pager.cc (do_sync): Always flush the cout stream after writing. |
|
6167 |
2643
|
6168 Wed Jan 29 08:25:29 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6169 |
2648
|
6170 * defaults.cc (exec_path): Don't include bin_dir in std_path. |
|
6171 |
2646
|
6172 * pager.cc (do_sync): Flush the cout stream after writing if |
|
6173 running in interactive or forced_interactive mode. |
|
6174 |
|
6175 * mk-oct-links: Rename from mk-oct-links.in. |
|
6176 Don't use symbolic links. |
|
6177 * Makefile.in: Distribute mk-oct-links, not mk-oct-links.in |
|
6178 (mk-oct-links): Delete target. |
|
6179 (install-oct, bin-dist): Don't depend on mk-oct-links. |
|
6180 Run $(srcdir)/mk-oct-links, not ./mk-oct-links. |
|
6181 |
2643
|
6182 * qr.cc (qr): Doc fix. |
|
6183 |
2638
|
6184 Tue Jan 28 10:48:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6185 |
|
6186 * Makefile.in (install-inc): Create a relative symbolic link. |
|
6187 (install-bin): Create a relative symbolic link. |
|
6188 |
2630
|
6189 Mon Jan 27 12:12:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6190 |
2634
|
6191 * Version 2.0.2 released. |
|
6192 |
|
6193 * Makefile.in (CXXFLAGS_NO_PT_FLAGS): Rename from XALL_CXXFLAGS. |
|
6194 Substitute bsd_gcc_kluge_targets_frag. |
|
6195 |
2630
|
6196 * sysdep.cc (Fsleep): New function. |
|
6197 (Fusleep): New function. |
|
6198 |
|
6199 * toplev.cc (octave_config_info): Don't include RLD_FLAG. |
|
6200 * oct-conf.h.in: Don't define RLD_FLAG |
|
6201 |
2626
|
6202 Sun Jan 26 19:41:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6203 |
|
6204 * sighandlers.cc (sigchld_handler): Block SIGCHLD while |
|
6205 sigchld_hander is running. |
|
6206 |
2624
|
6207 Sat Jan 25 22:36:39 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6208 |
|
6209 * Makefile.in (bin-dist): Update for 2.x. |
|
6210 |
2621
|
6211 Fri Jan 24 10:05:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6212 |
|
6213 * mk-oct-links.in: New arg, -p, to just print list of files to link. |
|
6214 |
|
6215 * lex.l (handle_number): Convert `D' or `d' exponents to `e' |
|
6216 before scanning. |
|
6217 |
2620
|
6218 Thu Jan 23 10:00:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6219 |
|
6220 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_no_op_command): |
|
6221 New function. |
|
6222 * pt-cmd.h, pt-cmd.cc (tree_no_op_command): New class. |
|
6223 * parse.y (make_break_command, make_continue_command, |
|
6224 make_return_command): Where they don't really make sense, turn |
|
6225 these commands into no-ops. Accept return and break if reading a |
|
6226 script file. |
|
6227 * toplev.cc (parse_and_execute): Handle return and break in script |
|
6228 files. Quit executing commands if an error occurs when reading a |
|
6229 script file. Set global_command to 0 after deleting it. |
|
6230 (main_loop): If not interactive or forced_interactive, handle |
|
6231 break and return, and quit executing commands if an error occurs. |
|
6232 Set global_command to 0 after deleting it. |
|
6233 * error.cc (Ferror): Doc fix. |
|
6234 * pt-walk.h (tree_walker): Add declaration for visit_no_op_command. |
|
6235 |
2618
|
6236 Wed Jan 22 20:54:12 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6237 |
|
6238 * input.cc (gnu_readline): If not using readline, flush |
|
6239 rl_outstream after printing prompt. |
|
6240 (octave_gets): Also call flush_octave_stdout() if |
|
6241 forced_interactive, not just if interactive. |
|
6242 (do_input_echo): If forced_interactive, only echo prompt and |
|
6243 command line if also reading a script file. |
|
6244 |
2616
|
6245 Tue Jan 21 23:02:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6246 |
|
6247 * SLList.h: Include "BaseSLList.h", not <BaseSLList.h>. |
|
6248 |
2610
|
6249 Mon Jan 20 11:11:12 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6250 |
2614
|
6251 * lex.l (token_stack): Don't declare static. |
|
6252 * pt-plot.cc (tmp_files): Likewise. |
|
6253 * toplev.cc (octave_atexit_functions): Likewise. |
|
6254 * unwind-prot.cc (unwind_protect_list): Likewise. |
|
6255 |
2613
|
6256 * ops.h (MX_MX_BOOL_OP): Correctly handle case of one or both |
|
6257 arguments being empty. Change all callers. |
|
6258 |
|
6259 * oct-stream.cc (printf_value_cache::looking_at_string): |
|
6260 Handle empty strings correctly now that they are 0x0. |
|
6261 |
2610
|
6262 * file-io.cc: Don't include "syswait.h" here. |
|
6263 |
|
6264 Sun Jan 19 22:38:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6265 |
|
6266 * oct-stream.h (octave_base_stream::seek): Declare offset arg as |
|
6267 streamoff, not streampos. |
|
6268 (octave_stream::seek): Likewise. |
|
6269 * oct-strstrm.h (octave_base_strstream::seek): Likewise. |
|
6270 * oct-stdstrm.h (octave_base_stdiostream::seek): Likewise. |
|
6271 * oct-iostrm.h (octave_base_iostream::seek): Likewise. |
|
6272 * oct-fstrm.h (octave_fstream::seek): Likewise. |
|
6273 |
2609
|
6274 Fri Jan 17 18:13:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6275 |
|
6276 * file-io.cc (Ffflush): Handle stdout as a special case. |
|
6277 |
|
6278 * oct-stream.cc (octave_stream_list::do_get_file_number): |
|
6279 Do the work for octave_stream::get_file_number. |
|
6280 (octave_stream_list::get_file_number): Convert to static function. |
|
6281 |
2608
|
6282 Wed Jan 8 11:42:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6283 |
|
6284 * log.cc (sqrtm): For complex arg case, compute sqrt, not log. |
|
6285 |
2602
|
6286 Tue Jan 7 00:16:41 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6287 |
|
6288 * Version 2.0.1 released. |
|
6289 |
|
6290 Mon Jan 6 00:00:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6291 |
|
6292 * pt-mat.cc (tm_row_const_rep::all_mt): New variable. |
|
6293 (tm_row_const::all_empty): New function. |
|
6294 (tm_row_const::tm_row_const_rep::init): Set all_mt here. |
|
6295 (tm_const::all_mt): New variable. |
|
6296 (tm_const::all_emtpy): New function. |
|
6297 (tm_const::init): Set all_mt here. |
|
6298 (tree_matrix::eval): Return an empty matrix if the list contains |
|
6299 only empty elements. If it contains only empty strings, return an |
|
6300 empty string. |
|
6301 |
2601
|
6302 Sun Jan 5 12:50:25 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6303 |
|
6304 * ops.h (SC_MX_BOOL_OP, MX_SC_BOOL_OP): New arg, empty_result. |
|
6305 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
6306 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
6307 op-s-cm.cc, op-s-m.cc, op-str-str.cc: Change all uses of |
|
6308 SC_MX_BOOL_OP and MX_SC_BOOL_OP macros. Return correct results |
|
6309 for empty matrix cases. |
|
6310 |
|
6311 * pt-fcn.cc (tree_function::eval): If Vdefine_all_return_values is |
|
6312 true, initialize return values before evaluating function, for |
|
6313 compatibility with Matlab. |
|
6314 |
|
6315 * oct-stream.cc (get_size): Correctly set size when arg is scalar. |
|
6316 |
|
6317 Thu Jan 2 12:40:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6318 |
|
6319 * Makefile.in (install-oct): Quote $(OCT_FILES) in for loop to |
|
6320 avoid syntax error from ksh. |
|
6321 |
|
6322 * pr-output.cc (octave_print_internal): Avoid unused parameter |
|
6323 warning from gcc. |
|
6324 |
2600
|
6325 Thu Dec 19 12:13:42 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6326 |
|
6327 * oct-stream.cc (octave_base_stream::do_scanf): |
|
6328 Don't treat %l{e,f,g} differently from %{e,f,g}. |
|
6329 (octave_base_stream::do_oscanf): Likewise. |
|
6330 |
|
6331 * sighandlers.cc (sigchld_handler): Fix typos. |
|
6332 |
2598
|
6333 Wed Dec 18 20:17:23 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6334 |
2599
|
6335 * file-io.cc (Ffgetl, Ffgets): Also return number of characters read. |
|
6336 |
|
6337 * ov-range.cc (octave_range::not): New function. |
|
6338 * ov-range.h (octave_range::uminus): New function. |
|
6339 |
2598
|
6340 * BaseSLList.cc: Include error.h. |
|
6341 (BaseSLList::error): Call ::error() to process error message. |
|
6342 |
2589
|
6343 Fri Dec 13 02:38:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6344 |
|
6345 * ov.cc (octave_value::convert_and_assign): Preserve lhs value if |
|
6346 assignment fails. |
|
6347 |
2586
|
6348 Wed Dec 11 12:33:16 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6349 |
|
6350 * pt-plot.cc (GPLOT_CMD_END): Don't put semicolons at the end of |
|
6351 each plot command; it causes trouble with gnuplot 3.5. |
|
6352 |
2580
|
6353 Tue Dec 10 00:31:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6354 |
2583
|
6355 * Version 2.0 released. |
|
6356 |
2584
|
6357 * pr-output.cc (set_format_style): Don't try to access argv unless |
|
6358 argc > 1. |
|
6359 |
2580
|
6360 * SLList-expr.cc SLList-misc.cc SLList-plot.cc SLList-str.cc |
|
6361 SLList-tc.cc SLList-tm.cc SLList.h SLStack-i.cc SLStack-pc.cc |
|
6362 SLStack-str.cc SLStack-sym.cc SLStack-tok.cc SLStack-ue.cc |
|
6363 SLStack-ui.cc, pt-mat.cc: Include Stack.h, Stack.cc, SLStack.cc, |
|
6364 and SLList.cc as necessary. |
|
6365 |
|
6366 * Stack.cc, SLStack.cc, SLList.cc: New files. |
|
6367 * Makefile.in (SOURCES): Add them to the list. |
|
6368 |
2575
|
6369 Mon Dec 9 12:03:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6370 |
2577
|
6371 * Makefile.in (install-bin): Use $(EXE) suffix so install will |
|
6372 find the right file on cygwin32 systems. |
|
6373 |
2575
|
6374 * ov.h: Declare proper form of do_binary_op as friend to |
|
6375 octave_value class. |
|
6376 |
2572
|
6377 Sat Dec 7 22:00:10 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6378 |
|
6379 * oct-stream.cc (do_printf_conv, do_scanf_conv, |
|
6380 do_oscanf_num_conv, do_oscanf_str_conv): Convert to real |
|
6381 functions instead of CPP macros, using templates where necessary. |
|
6382 (do_oscanf_num_conv, do_oscanf_str_conv): Correctly handle |
|
6383 discarded values. |
|
6384 |
2569
|
6385 Fri Dec 6 00:20:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6386 |
2572
|
6387 * Version 1.94. |
|
6388 |
2571
|
6389 * Map-*.cc, SLList-*.cc, SLStack-*.cc: Include config.h. |
|
6390 |
|
6391 * ov.h: Don't include SLList.h. |
|
6392 |
|
6393 * SLStack.cc: Delete. Move everything to SLStack.h. |
|
6394 |
|
6395 * BaseSLList.h, BaseSLList.cc: New files. Split out the |
|
6396 non-template base class parts of SLList. |
|
6397 |
2569
|
6398 * Makefile.in (TEMPLATE_SRC): Delete. Move files to SOURCES. |
|
6399 * Map.h, Map.cc: Add #pragma interface/implementation. |
|
6400 * SLStack.h, SLStack.cc: Add #pragma interface/implementation. |
|
6401 |
|
6402 * SLList.h, SLList.cc: New files, from libg++, but with #pragma |
|
6403 interface/implementation. |
|
6404 * Makefile.in (SOURCES): Add SLList.cc. |
|
6405 (INCLUDES): Add SLList.h. |
|
6406 |
2566
|
6407 Thu Dec 5 18:36:44 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6408 |
|
6409 * octave.cc: Don't include sun-utils.h. |
|
6410 |
2563
|
6411 Tue Dec 3 23:47:09 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6412 |
|
6413 * op-str-str.cc (eq, ne): Handle operations with scalars. |
|
6414 |
2555
|
6415 Thu Nov 21 12:30:36 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6416 |
|
6417 * ov-str-mat.h (octave_char_matrix_str): Provide transpose and |
|
6418 hermitian operators. |
|
6419 * ov-ch-mat.h (octave_char_matrix): Likewise. |
|
6420 |
2548
|
6421 Wed Nov 20 00:35:57 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6422 |
2554
|
6423 * sighandlers.h (struct octave_interrupt_handler): Provide |
|
6424 forward declaration here. |
|
6425 * sighandlers.cc (octave_interrupt_handler): New struct. |
|
6426 (octave_catch_interrupts): Rename from catch_interrupts. |
|
6427 (octave_ignore_interrupts, octave_set_interrupt_handler): |
|
6428 New functions. |
|
6429 * help.cc, oct-hist.cc, pager.cc, toplev.cc: Use new functions for |
|
6430 handling interrupts so that we can hide the details of whether or |
|
6431 not we have to deal with SIGBREAK. |
|
6432 |
|
6433 * pt-plot.cc [! HAVE_POSIX_SIGNALS] (open_plot_stream): |
|
6434 Simply ignore and restore the interrupt handler here. |
|
6435 |
|
6436 * sighandlers.cc (MAYBE_REINSTALL_SIGHANDLER): New macro. Use it |
|
6437 instead of always checking MUST_REINSTALL_SIGHANDLERS everywhere. |
|
6438 (sigchld_handler): If octave_child_list is empty, wait for any |
|
6439 child, but don't hang, and don't collect status info. |
|
6440 [__EMX__] (sigchld_handler): Save and restore handlers for SIGINT, |
|
6441 SIGBREAK, and SIGCHLD. Ignore them while waiting on children. |
|
6442 (install_signal_handlers): If SIGBREAK exists, handle it like SIGINT. |
|
6443 |
2552
|
6444 * toplev.cc [USE_READLINE] (clean_up_and_exit): |
|
6445 Call rl_deprep_terminal() to restore terminal settings. |
|
6446 |
|
6447 * sysdep.cc [__EMX__ && OS2] (Fextproc): New command. |
|
6448 [__EMX__ && OS2] (FEXTPROC): Alias for Fextproc. |
|
6449 |
|
6450 * Version 1.93. |
|
6451 |
2549
|
6452 * sysdep.cc (octave_chdir): [__EMX__]: Make copy of string before |
|
6453 converting to upper case. |
|
6454 |
2548
|
6455 * getgrent.cc (mk_gr_map): Only set the passwd field if |
|
6456 HAVE_GR_PASSWD is defined. |
|
6457 |
2533
|
6458 Tue Nov 19 12:01:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6459 |
2546
|
6460 * sysdep.cc (OS2_init): New function. |
|
6461 [__EMX__] (sysdep_init): Call it. |
|
6462 |
2542
|
6463 * lex.l (plot_style_token): Add new plot styles for gnuplot 3.6. |
2543
|
6464 * pt-plot.cc (subplot_style::columns_ok): Rename from |
|
6465 subplot_style::errorbars. Recognize more styles and do a better |
|
6466 job of diagnosing column number/style mismatches. |
2542
|
6467 |
2536
|
6468 * sighandlers.cc (my_friendly_exit): If we are called twice, try |
|
6469 to remove the signal handler for SIGABRT and the call abort (). |
|
6470 |
2534
|
6471 * help.cc (Ftype): If a function is defined from a file and |
|
6472 transformed text has not been requested, just print the contents |
|
6473 of the file. |
|
6474 |
2533
|
6475 * parse.y (fold): New functions for constant folding for binary |
|
6476 and unary expressions. Keep track of original text even when |
|
6477 transformations occur. |
|
6478 (make_binary_op, make_boolean_op, make_unary_op): Use them. |
|
6479 (finish_colon_expression, finish_matrix): Keep track of original |
|
6480 text even when transformations occur. |
|
6481 |
|
6482 * help.cc (Ftype): Don't mess with Vps4. |
|
6483 Handle new option `-transformed'. |
|
6484 |
|
6485 * pt-const.h, pt-const.cc (tree_constant::print): |
|
6486 New arg, pr_orig_text. |
|
6487 |
|
6488 * pt-exp.h, pt-exp.cc (tree_colon_expression::is_range_constant): |
|
6489 Delete. |
|
6490 |
|
6491 * pt-exp-base.h (tree_expression::original_text): New virtual function. |
|
6492 pt-exp-base.cc (tree_expression::original_text): Default version. |
|
6493 |
|
6494 * pt-pr-code.h (tree_print_code::print_original_text, |
|
6495 tree_print_code::prefix): New fields. |
|
6496 * pt-pr-code.cc (tree_print_code::visit_constant): Pass |
|
6497 print_original_text to tree_constant::print(). |
|
6498 (tree_print_code::indent): Use prefix instead of Vps4. |
|
6499 * pt-fcn.cc (tree_function::print_function_header, |
|
6500 tree_function::print_function_trailer): Pass Vps4 to |
|
6501 tree_print_code_constructor for prefix. |
|
6502 * pt-misc.cc (tree_statement::maybe_echo_code): Pass Vps4 to |
|
6503 tree_print_code_constructor for prefix. |
|
6504 |
|
6505 * pt-mat.h, pt-mat.cc (tree_matrix::all_elements_are_constant): |
|
6506 Rename from is_matrix_constant. |
|
6507 (tree_matrix_row::all_elements_are_constant): Likewise. |
|
6508 Change all callers. |
|
6509 |
|
6510 Mon Nov 18 14:13:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6511 |
|
6512 * Makefile.in (install-inc): Try harder to create the link from |
|
6513 include/octave to include/octave-VERSION. |
|
6514 |
2524
|
6515 Sun Nov 17 14:14:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6516 |
2527
|
6517 * Makefile.in (parse.cc): Expect 13 shift/reduce conflicts. |
2526
|
6518 |
2525
|
6519 * parse.y (set_stmt_print_flag): New function. |
|
6520 (sep_type): New member for bison %union declaration. |
|
6521 Simplify rules for statement lists keeping track of the type of |
|
6522 the first separator in the values associated with the |
|
6523 nonterminals for the separators. |
|
6524 |
2524
|
6525 * lex.l (handle_identifier): Set lexer_flags.doing_set if the |
|
6526 token is "gset", not "set". |
|
6527 |
|
6528 Sat Nov 16 21:41:26 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6529 |
|
6530 * Makefile.in (parse.cc, lex.cc): Add special rules for these files. |
|
6531 Delete pattern rules for .y and .l files. |
|
6532 |
2522
|
6533 Fri Nov 15 13:48:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6534 |
2523
|
6535 * pt-plot.cc: Put semicolons at the ends of all plot commands. |
|
6536 |
2522
|
6537 * defaults.cc (subst_octave_home): Start subsequent searchs from |
|
6538 the end of the replaced text. |
|
6539 |
|
6540 * pr-output.cc (pr_any_float): Kluge for SCO systems. |
|
6541 |
|
6542 * pr-output.cc (pr_any_float, pr_complex): Don't declare inline. |
|
6543 |
|
6544 * mappers.cc: Include lo-ieee.h, for isinf and isnan on SCO |
|
6545 systems. |
|
6546 |
2512
|
6547 Thu Nov 14 00:06:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6548 |
2520
|
6549 * pt-plot.cc (Fgset, Fgshow): New commands. |
|
6550 (Fshow): Print warning and call gshow. |
|
6551 (Fset): Print warning and call gset. |
|
6552 |
2517
|
6553 * variables.cc (parse_fcn_file): Add unwind-protect for file |
|
6554 pointer, so the file is always closed. |
|
6555 (get_help_from_file): Likewise. |
|
6556 * toplev.cc (parse_and_execute): Likewise. |
|
6557 |
2516
|
6558 * Makefile.in (install-oct): Depend on mk-oct-links. |
|
6559 (mk-oct-links): New target. |
|
6560 |
2512
|
6561 * Version 1.92. |
|
6562 |
2508
|
6563 Wed Nov 13 11:13:22 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6564 |
2512
|
6565 * sighandlers.cc (sys_siglist): [__EMX__]: Add definitions. |
|
6566 |
|
6567 * octave.cc (execute_startup_files): Allow init file name ot be |
|
6568 specified by an environment variable. |
|
6569 |
|
6570 * dirfns.cc (make_absolute): [__EMX__]: Path is already absolute |
|
6571 if it begins with any character followed by a colon. |
|
6572 |
2511
|
6573 * load-save.cc (read_mat_ascii_matrix, get_lines_and_columns, |
|
6574 get_complete_line): New functions, for reading headless text files. |
|
6575 (load_save_format): Add LS_MAT_ASCII, for headless text files. |
|
6576 (do_load): Handle LS_MAT_ASCII files. |
|
6577 Thanks to Mel Melchner <mjm@research.att.com> for initial version |
|
6578 of this code. |
|
6579 |
2508
|
6580 * sysdep.cc: Conditionally include ieeefp.h. |
|
6581 (BSD_init, SCO_init): New functions. |
|
6582 (sysdep_init): Conditionally call them here. |
|
6583 |
2499
|
6584 Tue Nov 12 00:14:56 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6585 |
2508
|
6586 * pt-plot.cc (open_plot_stream): Don't block SIGCHLD. |
|
6587 |
2499
|
6588 * load-save.cc (read_binary_data): When reading string arrays, be |
|
6589 sure to create an octave_char_matrix_str object, not just an |
|
6590 octave_char_matrix object. |
|
6591 (read_ascii_data): Likewise. |
|
6592 |
2497
|
6593 Mon Nov 11 22:52:58 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6594 |
|
6595 * load-save.cc (read_binary_data): Don't forget teminating NUL for |
|
6596 string that we plan to insert. |
|
6597 (read_ascii_data): Likewise. |
|
6598 |
2495
|
6599 Sun Nov 10 16:58:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6600 |
2496
|
6601 * dirfns.cc (Ffnmatch): New function. |
|
6602 |
2495
|
6603 * octave.cc (intern_argv): Use new string_vector constructor. |
|
6604 |
|
6605 * ov-str-mat.cc (octave_char_matrix_str::all_strings): Have |
|
6606 charMatrix::row_as_string() strip trailing whitespace. |
|
6607 |
|
6608 * dirfns.cc (Fglob): new function. |
|
6609 |
|
6610 * sysdep.cc (oct_tilde_expand): Provide version that works on |
|
6611 string vectors too. |
|
6612 (Ftilde_expand): Work on string vector args. |
|
6613 |
|
6614 * load-save.cc (save_binary_data): Call char_matrix_value() to |
|
6615 extract charMatrix from octave_value object, not all_strings(). |
|
6616 (save_ascii_data): Likewise. |
|
6617 * pt-mat.cc (tree_matrix::eval): Likewise. |
|
6618 |
|
6619 * ov.h (octave_value::all_strings): Return string_vector, not |
|
6620 charMatrix. |
|
6621 * ov-base.cc (octave_base_value::all_strings): Likewise. |
|
6622 * ov-str-mat.h, ov-str-mat.cc (octave_char_matrix_str::all_strings): |
|
6623 Likewise. |
|
6624 |
2487
|
6625 Fri Nov 8 09:54:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6626 |
2492
|
6627 * defaults.cc, dynamic-ld.cc, fn-cache.cc, help.cc, oct-hist.cc, |
|
6628 octave.cc, pager.cc, pt-fcn.cc, toplev.cc, utils.cc, variables.cc, |
|
6629 lex.l: Change #include "" to #include <> for defaults.h, |
|
6630 oct-conf.h, oct-gperf.h, y.tab.h, and version.h, to avoid getting |
|
6631 them from $srcdir when we really want the version from the build |
|
6632 directory. (Maybe this should be done for all the include files, |
|
6633 not just those that are auto-generated? Hmm.) |
|
6634 |
2488
|
6635 * defaults.h.in (CXXLIB_LIST, CXXLIB_PATH, FLIB_LIST, FLIB_PATH): |
|
6636 Delete. |
|
6637 |
2487
|
6638 * Makefile.in (install-oct): Use $(INSTALL_PROGRAM) for .oct files. |
|
6639 |
2477
|
6640 Thu Nov 7 07:59:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6641 |
2487
|
6642 * variables.cc (gobble_leading_white_space): New arg, update_pos. |
|
6643 * (is_function_file): Don't update file position information here. |
|
6644 |
2482
|
6645 * Version 1.91. |
|
6646 |
2479
|
6647 * pt-fvc.cc (tree_indirect_ref::reference): If the lhs object is |
|
6648 not a map, convert it to one. |
|
6649 |
|
6650 * ov-typeinfo.h (init_tab_sz): New static member. |
|
6651 |
2477
|
6652 * ov-struct.cc, ov-struct.h: Add hooks for custom memory management. |
|
6653 * ov-scalar.cc, ov-scalar.h: Likewise. |
|
6654 * ov-re-mat.cc, ov-re-mat.h: Likewise. |
|
6655 * ov-range.cc, ov-range.h: Likewise. |
|
6656 * ov-cx-mat.cc, ov-cx-mat.h: Likewise. |
|
6657 * ov-complex.cc, ov-complex.h: Likewise. |
|
6658 * ov-ch-mat.cc, ov-ch-mat.h: Likewise. |
|
6659 |
2474
|
6660 Wed Nov 6 12:32:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6661 |
2482
|
6662 * pager.cc (do_sync): Don't call clear_external_pager() here. |
2476
|
6663 |
2475
|
6664 * pt-const.h (tree_constant::allocator) New static member. |
|
6665 (tree_constant::operator new, tree_constant::operator delete): |
|
6666 Implement with custom allocator. |
|
6667 |
|
6668 * syscalls.cc (Fgetgid, Fgetegid): New functions. |
|
6669 |
|
6670 * sighandlers.cc (sigchld_handler): If necessary, reinstall |
|
6671 handler after call to waitpid(). |
|
6672 |
|
6673 * pager.cc (pager_death_handler): Don't use warning() to print |
|
6674 message. |
|
6675 |
|
6676 * getgrent.cc: New file. |
|
6677 * Makefile.in (DLD_SRC): Add it. |
|
6678 |
|
6679 * ov.cc (octave_value::print_with_name): Call is_map() instead of |
|
6680 print_as_structure(). |
|
6681 * ov-struct.cc (octave_struct::print): Likewise. |
|
6682 |
|
6683 * ov.h, ov.cc, pt-const.h: Delete force_numeric(), make_numeric(), |
|
6684 convert_to_matrix_type(), print_as_structure() member functions. |
|
6685 |
2474
|
6686 * variables.cc (is_function_file): Call gobble_leading_whitespace |
|
6687 here to strip all leading whitespace and comments. |
|
6688 (parse_fcn_file): If reading a function file, call |
|
6689 gobble_leading_whitespace again after resetting parser state to |
|
6690 grab help text. |
|
6691 |
2469
|
6692 Tue Nov 5 13:00:35 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6693 |
2472
|
6694 * syscalls.cc (Fgeteuid, Fgetuid): New functions. |
|
6695 |
|
6696 * getpwent.cc: Use gripe_not_supported from gripes.cc, instead of |
|
6697 local gripe_not_implemented function. |
|
6698 |
2470
|
6699 * input.cc, sysdep.cc, variables.cc: Only include readline.h and |
|
6700 history.h if USE_READLINE is defined. |
|
6701 |
|
6702 * help.cc: Make it compile without warnings even if USE_GNU_INFO |
|
6703 is not defined. |
|
6704 |
2469
|
6705 * sighandlers.h (octave_child_list): Don't define |
|
6706 HAVE_POSIX_SIGNALS HERE. |
|
6707 |
|
6708 * sighandlers.cc (SIGHANDLER_RETURN): New macro. |
|
6709 (generic_sig_handler, sigchld_handler, sigfpe_handler, |
|
6710 sigint_handler, sigpipe_handler): Use it. |
|
6711 (sigchld_handler, sigfpe_handler, sigint_handler, sigpipe_handler): |
|
6712 Only reinstall signal handler if MUST_REINSTALL_SIGHANDLER is defined. |
|
6713 |
2463
|
6714 Sun Nov 3 00:45:30 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6715 |
2466
|
6716 * pt-const.cc (tree_constant::print): Just call val.print(). |
|
6717 * ov-base.cc, ov-ch-mat.cc, ov-colon.cc, ov-complex.cc, |
|
6718 ov-cx-mat.cc, ov-range.cc, ov-re-mat.cc, ov-scalar.cc, |
|
6719 ov-str-mat.cc, ov-struct.cc ov-va-args.cc, ov.cc (print): |
|
6720 Handle pr_as_read_syntax arg. |
|
6721 |
|
6722 * defaults.cc (subst_octave_home): Search for prefix repeatedly in |
|
6723 retval, not s. |
|
6724 |
|
6725 * gripes.h: Make declaration of gripes_not_supported match |
|
6726 definition. |
|
6727 |
2465
|
6728 * mk-oct-links.in: In sed command, match "DEFUN_DLD *( *", not |
|
6729 "DEFUN_DLD_BUILTIN *( *". |
|
6730 |
|
6731 * chol.cc, colloc.cc, dassl.cc, det.cc, eig.cc, expm.cc, fft.cc, |
|
6732 fft2.cc, filter.cc, find.cc, fsolve.cc, fsqp.cc, getpwent.cc, |
|
6733 getrusage.cc, givens.cc, hess.cc, ifft.cc, ifft2.cc, inv.cc, |
|
6734 log.cc, lpsolve.cc, lsode.cc, lu.cc, minmax.cc, npsol.cc, pinv.cc, |
|
6735 qpsol.cc, qr.cc, quad.cc, qzval.cc, rand.cc, schur.cc, sort.cc, |
|
6736 svd.cc, syl.cc, time.cc: Change all uses of DEFUN_DLD_BUILTIN to |
|
6737 be just DEFUN_DLD. |
|
6738 |
|
6739 * defun-dld.h: Eliminate DEFUN_DLD_BUILTIN. |
|
6740 |
2464
|
6741 * syswait.h: Use #ifdef HAVE_SYS_WAIT_H, not #if HAVE_SYS_WAIT_H |
|
6742 to decide whether to include sys/wait.h. |
|
6743 |
|
6744 * pt-exp-base.h (tree_expression): Declare oper() here as a |
|
6745 virtual member function. |
|
6746 |
2463
|
6747 * pt-pr-code.cc (tree_print_code::visit_constant): Check for |
|
6748 string before checking for char_matrix. |
|
6749 |
|
6750 * ov-ch-mat.cc (octave_char_matrix::print): Supply correct number |
|
6751 of args to octave_print_internal(). |
|
6752 |
2457
|
6753 Sat Nov 2 20:44:55 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6754 |
2458
|
6755 * file-io.cc (Ftmpnam): Rename from Foctave_temp_file_name. |
|
6756 |
2457
|
6757 * Makefile.in (DLD_SRC): Move time.cc and getrusage.cc here from |
|
6758 SOURCES. Add getpwent.cc. |
|
6759 |
|
6760 * getrusage.cc: Rename from resource.cc. Make getrusage a |
|
6761 loadable function. |
|
6762 |
|
6763 * time.cc: Rename from timefns.cc. Make time functions loadable. |
|
6764 |
|
6765 * getpwent.cc: New file. |
|
6766 |
2439
|
6767 Wed Oct 30 01:06:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6768 |
2452
|
6769 * Version 1.90. |
|
6770 |
|
6771 * Makefile.in (DISTFILES): Add ChangeLog. |
|
6772 |
2449
|
6773 * ov-range.cc (octave_range::convert_to_str): New function. |
|
6774 |
|
6775 * ov-str-mat.h (octave_char_matrix_str::char_matrix_value): |
|
6776 Delete function. Already handled by octave_char_matrix class. |
|
6777 |
|
6778 * ov-ch-mat.h (octave_char_matrix::convert_to_str): New function. |
|
6779 |
2448
|
6780 * pager.cc (Fmore): Set page_screen_output to 1.0 or 0.0, not |
|
6781 "true" or "false". |
|
6782 |
2447
|
6783 * ov-ch-mat.cc, ov-struct.cc, ov-struct.h, pr-output.cc, |
|
6784 pt-cmd.cc, pt-const.cc, pt-const.h, pt-fcn.cc, pt-fvc-base.cc, |
|
6785 pt-fvc-base.h, pt-fvc.cc, pt-fvc.h, rand.cc, sighandlers.cc, |
|
6786 variables.cc, variables.h: Delete unused code. |
|
6787 |
2445
|
6788 * octave.cc: Only include pwd.h if HAVE_PWD_H. |
|
6789 |
|
6790 * oct-strstrm.h: Include <string>, not <string.h>. |
|
6791 |
2442
|
6792 * defaults.cc, dirfns.cc, file-io.cc, help.cc, input.cc, |
|
6793 oct-hist.cc, oct-procbuf.cc, oct-procbuf.h, octave.cc, pager.h, |
|
6794 procstream.h, pt-misc.cc, pt-plot.cc, sighandlers.cc, strftime.c, |
|
6795 syscalls.cc, sysdep.cc, syswait.h, toplev.cc, utils.cc, |
|
6796 variables.cc: Only include sys/types.h if HAVE_SYS_TYPES_H. |
|
6797 |
2440
|
6798 * error.h (panic): Use GCC_ATTR_NORETURN macro, not NORETURN. |
|
6799 * toplev.h (clean_up_and_exit): Likewise. |
|
6800 * utils.h (jump_to_top_level): Likewise. |
|
6801 |
2439
|
6802 * derfaults.h.in, defaults.cc (local_arch_lib_dir): New variable. |
|
6803 * defaults.cc (set_default_local_arch_lib_dir): New function. |
|
6804 (install_defaults): Call it. |
|
6805 (exec_path): Use Vlocal_arch_lib_dir here. |
|
6806 * toplev.cc (octave_config_info): Add localarchlibdir to structure. |
|
6807 |
2436
|
6808 Tue Oct 29 15:54:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6809 |
2437
|
6810 * Makefile.in (install-oct): Don't do anything if $(OCT_FILES) is |
|
6811 empty. |
|
6812 |
2436
|
6813 * ov-range.cc (octave_range::index): New Function. |
|
6814 (octave_range::all, octave_range::any, octave_range::is_true): |
|
6815 Make these functions work. |
|
6816 |
|
6817 * ov.cc (octave_value::try_assignment_with_conversion): Remove |
|
6818 left over debugging print statements. |
|
6819 |
|
6820 Mon Oct 28 10:49:03 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6821 |
|
6822 * strftime.c: Add missing #endif for previous change. |
|
6823 |
2435
|
6824 Sun Oct 27 14:06:44 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6825 |
|
6826 * oct-hist.cc (do_history): Rewite option parsing to avoid |
|
6827 (probably bogus) errors from g++ on cygwin32 system. |
|
6828 |
|
6829 * strftime.c: Use autoconf macros TIME_WITH_SYS_TIME and |
|
6830 HAVE_SYS_TIME_H to decide which time.h files to include. |
|
6831 |
|
6832 * oct-stream.h, oct-stream.cc (octave_stream::error, |
|
6833 octave_base_stream::error): Rename errno => err_num. |
|
6834 |
2432
|
6835 Sat Oct 26 10:40:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6836 |
2434
|
6837 * oct-hist.cc (do_history): Move declaration of file inside |
|
6838 conditional. |
|
6839 |
2432
|
6840 * defun.h (DEFVAR_INT): Set eternal flag with (svc_fcn != 0) |
|
6841 instead of (sv_fcn ? 1 : 0) |
|
6842 |
2427
|
6843 Fri Oct 25 01:10:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6844 |
2431
|
6845 * ov-ch-mat.h (octave_char_matrix::any): Return 0.0 instead of false. |
|
6846 (octave_char_matrix::all): Likewise. |
|
6847 |
|
6848 * input.cc (Fecho): When binding value of echo_executing_commands, |
|
6849 cast ECHO_* to double. |
|
6850 |
|
6851 * sighandlers.cc (octave_child_list::do_remove): Delete unused |
|
6852 variable `enlarge'. |
|
6853 |
|
6854 * pt-const.h (tree_constant::tree_constant (const tree_constant&)): |
|
6855 Don't pass arg to tree_fvc constructor. |
|
6856 |
2427
|
6857 * resource.cc (getrusage): [HAVE_GETRUSAGE && RUSAGE_TIMES_ONLY]: |
|
6858 Only fill in time values. |
|
6859 |
|
6860 Thu Oct 24 20:37:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6861 |
|
6862 * parse.y: Comment out the %expect declaration so byacc can |
|
6863 compile this file. |
|
6864 (if_cmd_list): Add missing semicolon. |
|
6865 Include <cstdlib> for getenv if using byacc. |
|
6866 |
|
6867 * ov.h: Move typedefs outside of octave_value class scope to avoid |
|
6868 problem with cygwin32 beta16 compiler. |
|
6869 |
2421
|
6870 Fri Oct 18 13:44:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6871 |
2423
|
6872 * ov.h (octave_value::index): Undo previous change. |
|
6873 * ov.cc (octave_value constructors): Call maybe_mutate() in most |
|
6874 cases. |
|
6875 |
|
6876 * ov-complex.cc (octave_complex::index): Avoid implicit type |
|
6877 conversion back to scalar type. |
|
6878 * ov-scalar.cc (octave_scalar::index): Likewise. |
|
6879 |
2421
|
6880 * ov.h (octave_value::index): Call maybe_mutate() on retval before |
|
6881 returning it. |
|
6882 |
2418
|
6883 Wed Oct 16 12:00:11 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6884 |
2420
|
6885 * ov.h (octave_value::struct_elt_val): New optional arg, silent. |
|
6886 * ov-base.h, ov-base.cc, ov-struct.h, ov-struct.cc: Likewise, but |
|
6887 for the derived classes the arg is required. |
|
6888 |
|
6889 * data.cc (Fstruct_contains): Require arguments to be struct and |
|
6890 string, respectively. Call octave_value::struct_elt_val with |
|
6891 silent flag set. |
|
6892 |
2419
|
6893 * pt-mat.cc (tm_row_const::tm_row_const_rep::eval_error, |
|
6894 tm_row_const::tm_row_const_rep::eval_warning): New functions. |
|
6895 (tm_row_const::tm_row_const (const tree_matrix_row&): Use them to |
|
6896 give better error messages. |
|
6897 |
2418
|
6898 * pt-fvc.cc (tree_identifier::eval): Avoid dereferencing null |
|
6899 object_to_eval. |
|
6900 |
2412
|
6901 Tue Oct 15 11:35:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6902 |
|
6903 * op-cs-cm.cc, op-cs-cs.cc, op-cs-m.cc, op-cs-s.cc |
|
6904 (complex_matrix_conv): New functions. |
|
6905 Install preferred assignment conversion and widening ops. |
|
6906 |
|
6907 * op-s-cm.cc, op-s-cs.cc (complex_matrix_conv): New functions. |
|
6908 Install preferred assignment conversion and widening ops. |
|
6909 |
|
6910 * op-s-m.cc, op-s-s.cc (matrix_conv): New functions. |
|
6911 Install preferred assignment conversion and widening ops. |
|
6912 |
|
6913 * ov.cc (octave_value::try_assignment_with_conversion, |
|
6914 octave_value::convert_and_assign, octave_value::try_assignment): |
|
6915 New functions. |
|
6916 (octave_value::assign): Use them to implement twisted logic for |
|
6917 type conversions in assigments. |
|
6918 |
|
6919 * pt-const.h (tree_constant::maybe_mutate): New function. |
|
6920 * ov.h (octave_value::maybe_mutate): New function. |
|
6921 (octave_value::try_narrowing_conversion): New function. |
|
6922 Use just one typedef for widening_op_fcn and numeric_conv_fcn. |
|
6923 Change all uses. |
|
6924 * ov-base.h, ov-complex.h, ov-complex.cc, ov-cx-mat.h, |
|
6925 ov-cx-mat.cc, ov-range.h, ov-range.cc, ov-re-mat.h, ov-re-mat.cc, |
|
6926 Provide derived class versions of try try_narrowing_conversion(). |
|
6927 |
|
6928 * pr-output.cc (octave_print_internal): Don't bother handing off |
|
6929 to scalar/real versions, even when it would seem appropriate. |
|
6930 |
|
6931 * symtab.cc (symbol_def::define (tree_constant *)): Call |
|
6932 maybe_mutate on constants here. |
|
6933 |
2405
|
6934 Mon Oct 14 11:05:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6935 |
2407
|
6936 * pt-fvc.cc (tree_identifier::eval): If retval is undefined and |
|
6937 the object to eval is a constant, print error message. |
2406
|
6938 |
2405
|
6939 * Makefile (distclean): Remove *.oct too. |
|
6940 |
|
6941 * defun-int.h: Include variables.h here. |
|
6942 |
2403
|
6943 Sun Oct 13 10:52:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6944 |
2404
|
6945 * variables.cc (print_symbol_info_line): Never print negative |
|
6946 diminsions. |
|
6947 |
|
6948 * symtab.h (octave_symbol_record_info): Store const_type as string. |
|
6949 (octave_symbol_record_info::init): Delete. Fix constructors. |
|
6950 (octave_symbol_record_info::type_name): Handle const_type as string. |
|
6951 |
2403
|
6952 * octave.cc (maximum_braindamage): Replace "true" with 1.0 and |
|
6953 "false" with 0.0 in calls to bind_builtin_variable(). |
|
6954 Include sun-utils.h here. |
2404
|
6955 (intern_argv): Also bind __argv__. |
2403
|
6956 |
2391
|
6957 Sat Oct 12 13:40:21 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6958 |
2399
|
6959 * Makefile.in (distclean): Also delete mk-oct-links. |
|
6960 |
|
6961 Fri Oct 11 13:13:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6962 |
2391
|
6963 Changes for Octave's new type system: |
|
6964 |
|
6965 * arith-ops.cc: Delete. |
|
6966 * pt-const.h, pt-const.cc: Massive changes. Most functionality |
|
6967 moved to ov.h, ov.cc, and derived classes. |
|
6968 |
|
6969 * variables.h, variables.cc (octave_variable_reference): New class |
|
6970 for getting references to variables and structure elements used in |
|
6971 assignments or value contexts. |
|
6972 |
|
6973 * symtab.h, symtab.cc (symbol_record::define (const octave_value&), |
|
6974 symbol_record::variable_value, symbol_record::variable_reference): |
|
6975 New functions. |
|
6976 (symbol_record_info::type_name): Rename from type_as_string. |
|
6977 |
|
6978 * pt-fvc-base.h, pt-fvc-base.cc (tree_fvc::increment, |
|
6979 tree_fvc::decrement): New functions to replace |
|
6980 tree_fvc::bump_value. |
|
6981 #if 0 assign and lookup_map_element functions. |
|
6982 |
|
6983 * pt-mvr.cc (tree_multi_assignment_expression::eval): |
|
6984 Generated RHS value is now a tree_constant. |
|
6985 |
|
6986 * pt-exp.h, pt-exp.cc (tree_boolean_expression): New class. |
|
6987 (tree_unary_expression, tree_binary_expression, |
|
6988 tree_boolean_expression): Move codes here from tree_expression. |
|
6989 (tree_simple_assignment_expression): Cope with changes to way of |
|
6990 doing assignments. |
|
6991 |
|
6992 * pt-exp-base.h, pt-exp-base.cc (enum type): Delete codes for |
|
6993 unary and binary ops. |
|
6994 (tree_expression::expression_type): Delete. |
|
6995 (tree_expression::is_logically_true): Hand off to |
|
6996 octave_value::is_true to do real work. |
|
6997 |
|
6998 * pr-output.h, pr-output.cc (any_element_is_inf_or_nan, |
|
6999 all_elements_are_ints): Delete. Call member new functions for |
|
7000 these operations. |
|
7001 (free_format, plus_format, bank_format, hex_format, |
|
7002 compact_format, print_e, print_big_e): Use bool, not int. |
|
7003 (octave_print_internal): Hand off to scalar/real versions when |
|
7004 appropriate. |
|
7005 |
|
7006 * octave.cc (main): Call initialize_types() and install_ops(). |
|
7007 (verbose_usage): Add WWW address to output. |
|
7008 |
|
7009 * parse.y (indirect_ref): Handle by making a tree instead of a |
|
7010 list using new version of tree_indirect_ref class. |
|
7011 |
|
7012 * parse.y (make_boolean_op): New function. Use it instead of |
|
7013 make_binary_op to create trees for && and || ops. |
|
7014 (make_binary_op): Codes come from tree_binary_expression now, |
|
7015 instead of tree_expression. |
|
7016 (make_unary_op): Codes come from tree_unary_expression now, |
|
7017 instead of tree_expression. |
|
7018 (make_boolean_op): Codes come from tree_boolean_expression. |
|
7019 |
|
7020 *parse.y (tree_constant_type): Change type to tree_constant* from |
|
7021 octave_value*, and rename from octave_value_type. Change uses. |
|
7022 |
|
7023 * defun.h (DEFVAR_INT): Pass octave_value not pointer to |
|
7024 octave_value for defn when creating builtin_variable. |
|
7025 |
|
7026 * gripes.h, gripes.cc (gripe_invalid_conversion): Args are |
|
7027 strings, not char*. |
|
7028 (gripe_implicit_conversion, gripe_divide_by_zero): New extern |
|
7029 gripe functions. |
|
7030 |
|
7031 * mkbuiltins: For each file, create a separate static function to |
|
7032 install builtins, then create another single extern function to |
|
7033 call all of them. |
|
7034 |
|
7035 * pt-fcn.cc (tree_function::bind_nargin_and_nargout): |
|
7036 Just pass doubles and let symbol_record::define handle creating |
|
7037 new value. |
|
7038 |
|
7039 * pt-pr-code.cc, pt-pr-code.h (visit_constant): Renamed from |
|
7040 visit_octave_value. |
|
7041 (visit_unary_expression): Use tree_expression::is_prefix_op() |
|
7042 instead of switch on op types. |
|
7043 |
|
7044 * pt-walk.h (visit_constant): Renamed from visit_octave_value. |
|
7045 |
|
7046 * pt-misc.cc (initialize_undefined_elements): Get reference to |
|
7047 tmp, then assign. |
|
7048 * pt-cmd.cc (do_for_loop_once): Likewise, for loop identifier. |
|
7049 |
|
7050 * input.cc (generate_struct_completions, looks_like_struct): Cast |
|
7051 tmp_fvc to tree_constant*, not octave_value*. |
|
7052 (get_user_input): Call print() on retval, not eval(1). |
|
7053 |
|
7054 * help.cc (Ftype): Cast defn to tree_constant*, not octave_value*. |
|
7055 |
|
7056 * balance.cc: Fix docstring. |
|
7057 |
|
7058 * dassl.cc, fsolve.cc, load-save.cc, lsode.cc, npsol.cc, qpsol.cc, |
|
7059 quad.cc: |
|
7060 Include pt-fvc.h. |
|
7061 |
|
7062 * data.cc (Fstruct_contains): call octave_value::struct_elt_val, |
|
7063 not octave_value::lookup_map_element. |
|
7064 |
|
7065 * dirfns.cc (Fcd): Pass directory name as string directly to |
|
7066 bind_builtin_variable instead of creating new octave_value. |
|
7067 |
|
7068 * toplev.cc: Include pt-fvc.h and lo-mappers.h |
|
7069 |
|
7070 * data.cc, error.cc, file-io.cc, load-save.cc, pager.cc, |
|
7071 pt-mat.cc, pt-plot.cc, syscalls.cc, toplev.cc: |
|
7072 Include variables.h. |
|
7073 |
|
7074 * Array-tc.cc, Map-tc.cc, SLList-misc.cc SLList-tc.cc, data.cc, |
|
7075 defaults.cc, dynamic-ld.cc, error.cc, gripes.cc, lex.l, octave.cc, |
|
7076 oct-map.h, oct-map.cc, oct-obj.h, pt-cmd.cc, pt-exp.cc, pt-fcn.cc, |
|
7077 pt-fvc-base.cc, pt-mat.cc, pt-misc.cc, pt-mvr-base.cc, pt-mvr.h, |
|
7078 resource.cc, strfns.cc, sysdep.cc, timefns.cc, toplev.cc: |
|
7079 Include ov.h instead of pt-const.h. |
|
7080 |
|
7081 * xpow.cc (any_element_is_negative): Delete. |
|
7082 (xpow and elem_xpow functions): Check conformance here. |
|
7083 |
|
7084 * xdiv.cc (mx_leftdiv_conform, mx_div_conform): |
|
7085 Now template-based, taking Matrices instead of dimensions as args. |
|
7086 Change all callers. |
|
7087 |
|
7088 * op-cm-cm.cc, op-cm-cm.h, op-cm-cs.cc, op-cm-cs.h, op-cm-m.cc, |
|
7089 op-cm-m.h, op-cm-s.cc, op-cm-s.h, op-cs-cm.cc, op-cs-cm.h, |
|
7090 op-cs-cs.cc, op-cs-cs.h, op-cs-m.cc, op-cs-m.h, op-cs-s.cc, |
|
7091 op-cs-s.h, op-m-cm.cc, op-m-cm.h, op-m-cs.cc, op-m-cs.h, op-m-m.cc, |
|
7092 op-m-m.h, op-m-s.cc, op-m-s.h, op-s-cm.cc, op-s-cm.h, op-s-cs.cc, |
|
7093 op-s-cs.h, op-s-m.cc, op-s-m.h, op-s-s.cc, op-s-s.h, |
|
7094 op-str-str.cc, op-str-str.h, ops.cc, ops.h, ov-base.cc, ov-base.h, |
|
7095 ov-ch-mat.cc, ov-ch-mat.h, ov-colon.cc, ov-colon.h, ov-complex.cc, |
|
7096 ov-complex.h, ov-cx-mat.cc, ov-cx-mat.h, ov-range.cc, ov-range.h, |
|
7097 ov-re-mat.cc, ov-re-mat.h, ov-scalar.cc, ov-scalar.h, ov-str-mat.cc, |
|
7098 ov-str-mat.h, ov-struct.cc, ov-struct.h, ov-typeinfo.cc, |
|
7099 ov-typeinfo.h, ov-va-args.cc, ov-va-args.h, ov.cc, ov.h: |
|
7100 New files for Octave's new type system. |
|
7101 * Makefile.in: Add them to the appropriate lists. |
|
7102 |
|
7103 Sat Sep 14 21:58:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7104 |
|
7105 * mkbuiltins: Use .df instead of .def. |
|
7106 Write one function for each .df file, then call them |
|
7107 all in install_builtin_functions(). |
|
7108 * Makefile.in: Handle .df instead of .def. |
|
7109 |
|
7110 * balance.cc (balance): Fix typo in doc string. |
|
7111 |
|
7112 Wed Aug 28 21:01:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7113 |
|
7114 * octave.cc (verbose_usage): Include WWW address and bug-octave |
|
7115 mailing list address. |
|
7116 |
2354
|
7117 Tue Aug 20 17:41:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7118 |
2358
|
7119 * Makefile.in: Only define pattern rules for making .oct files if |
|
7120 OCTAVE_LITE is true. |
|
7121 Only add pic/ to $(TI_OBJ) if $(SHARED_LIBS) is true. |
|
7122 (stamp-picdir): Only create a pic subdirectory if SHARED_LIBS or |
|
7123 OCTAVE_LITE is true AND CPICFLAG or CXXPICFLAG is not empty. |
|
7124 |
2354
|
7125 * minmax.cc (Fmin, Fmax): Deal with changes to Matrix class |
|
7126 min/max methods. |
|
7127 |
2345
|
7128 Thu Jul 25 01:42:38 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7129 |
2348
|
7130 * input.cc (generate_possible_completions): Force the names to be |
|
7131 unique. |
|
7132 |
2345
|
7133 * load-save.cc (read_mat_binary_data): Expect to read terminating |
|
7134 NUL character in the variable name. |
|
7135 (save_mat_binary_data): Likewise, save it here. |
|
7136 |
2341
|
7137 Wed Jul 24 05:08:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7138 |
2343
|
7139 * lsode.cc (Flsode): Don't set the return value if an error |
|
7140 occurred during integration. |
2344
|
7141 * dassl.cc (Fdassl): Likewise. |
2343
|
7142 |
2341
|
7143 * file-io.cc (symbols_of_file_io): Redefine values of SEEK_SET, |
|
7144 SEEK_CUR, and SEEK_END for Matlab compatibility. |
|
7145 * oct-stream.cc (seek): Check for compatible values of ORIGIN arg. |
|
7146 Also handle "bof", "cof", and "eof". |
|
7147 |
2338
|
7148 Fri Jul 19 15:24:36 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7149 |
|
7150 * pt-const.cc: When creating octave_value_reps from ComplexMatrix |
|
7151 values, check to see if all the elements are actually real. |
|
7152 |
2330
|
7153 Tue Jul 16 10:53:42 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7154 |
2341
|
7155 * input.cc (decode_prompt_string): Swap meanings of \h and \H. |
2330
|
7156 |
|
7157 Mon Jul 15 16:01:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7158 |
|
7159 * toplev.cc (run_command_and_return_output): Renamed from do_system. |
|
7160 (Fsystem): Make `system ("emacs")' work as one would expect. |
|
7161 |
|
7162 Sun Jul 14 17:34:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7163 |
|
7164 * file-io.cc (Ffopen, Ffread, Ffwrite): Update doc strings, |
|
7165 correctly handle default architecture and precision args. |
|
7166 |
|
7167 * load-save.cc (mopt_digit_to_float_format): Rename from |
|
7168 get_floating_point_format. |
|
7169 (float_format_to_mopt_digit): New function. |
|
7170 |
|
7171 * oct-stream.cc (octave_base_stream::read, octave_base_stream::write): |
|
7172 Simplify by calling Matrix::read and Matrix::write to do real work |
|
7173 of reading, writing, and format conversion. |
|
7174 |
|
7175 * oct-stream.h (octave_base_stream): Move data_type enum to |
|
7176 liboctave/data-conv.h. Use float_format from |
|
7177 liboctave/mach-info.h instead of arch_type enum. |
|
7178 |
|
7179 * sysdep.h, sysdep.cc (octave_words_big_endian, ten_little_endians): |
|
7180 Delete. Now part of oct_mach_info class in liboctave. |
|
7181 |
|
7182 Tue Jul 9 11:18:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7183 |
|
7184 * arith-ops.cc, balance.cc, dassl.cc, data.cc, filter.cc, find.cc, |
|
7185 fsolve.cc, load-save.cc, log.cc, lsode.cc, minmax.cc, npsol.cc, |
|
7186 oct-obj.cc, oct-stream.cc, pr-output.cc, pt-cmd.cc, pt-const.cc, |
|
7187 pt-fvc.cc, pt-plot.cc, quad.cc, rand.cc, sighandlers.cc, sort.cc, |
|
7188 syscalls.cc, unwind-prot.cc, xdiv.cc, xpow.cc: |
|
7189 When indexing arrays, use operator() instead of elem() so that |
|
7190 bounds checking can be done consistently. |
|
7191 |
|
7192 Mon Jun 24 02:13:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7193 |
|
7194 * Makefile.in (install-oct): Use INSTALL_PROGRAM, instead of |
|
7195 INSTALL_DATA for installing shared libraries. |
|
7196 |
|
7197 * lex.l (grab_help_text): Ignore all initial comment characters, |
|
7198 not just the first. |
|
7199 * variables.cc (gobble_leading_white_space): Likewise. |
|
7200 |
|
7201 Sat Jun 22 22:43:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7202 |
|
7203 * input.h, input.cc (octave_completion_matches_called): New varaible. |
|
7204 (Fcompletion_matches): Set it to true on a successful call. |
|
7205 * toplev.cc (main_loop): If octave_completion_matches_called is |
|
7206 true, don't increment current_command_number. |
|
7207 |
|
7208 Thu Jun 13 03:52:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7209 |
|
7210 * variables.cc (is_mapper_function_name, |
|
7211 is_builtin_function_name): New functions. |
|
7212 (Fdocument): Use them. |
|
7213 Define as regular function, not a text style function. |
|
7214 |
|
7215 Thu Jun 6 00:09:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7216 |
|
7217 * pt-plot.cc: Handle new built-in variable `gnuplot_has_frames'. |
|
7218 |
|
7219 Wed Jun 5 14:45:04 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7220 |
|
7221 * input.cc (decode_prompt_string): \h now means the whole host |
|
7222 name and \H is the host name up to the first `.'. |
|
7223 |
|
7224 Thu May 30 23:41:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7225 |
|
7226 * fn-cache.cc (octave_fcn_file_name_cache::do_list): Always |
|
7227 recompute the lists of function files instead of trying to cache |
|
7228 them. |
|
7229 |
|
7230 Tue May 28 12:05:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7231 |
|
7232 * utils.cc (warn_old_style_preference): New function. |
|
7233 (check_preference): Use it. |
|
7234 |
|
7235 * fn-cache.h: Include <ctime> here. |
|
7236 |
|
7237 Fri May 24 00:57:14 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7238 |
|
7239 * input.cc (completion_matches): Don't return empty string_vectors. |
|
7240 |
|
7241 * octave.cc (long_opts): Add braindead. |
|
7242 |
|
7243 Thu May 23 01:49:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7244 |
|
7245 * input.cc (gnu_readline): New optional arg, force_readline. |
|
7246 (get_user_input): Use it. |
|
7247 |
|
7248 * pt-const.cc (OCT_VAL_REP::assign): If converting the rhs to a |
|
7249 numeric value, convert a copy, not the actual object. |
|
7250 (OCT_VAL_REP::do_index): Prevent s([]) from resulting in a string |
|
7251 with zero rows. |
|
7252 |
|
7253 * mappers.cc: Handle toascii here. |
|
7254 * strfns.cc: Not here. |
|
7255 |
|
7256 * mappers.cc: Handle tolower and toupper here. |
|
7257 * mappers.h: Rename can_return_complex_for_real to flag and |
|
7258 overload meaning for ch_mapper. |
|
7259 * pt-fvc.cc (apply_mapper_fcn): Handle overloaded meaning. |
|
7260 |
|
7261 * syscalls.cc (stat): Return 3 values instead of just 1. |
|
7262 (lstat): Likewise. |
|
7263 |
|
7264 Wed May 22 02:34:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7265 |
|
7266 * pt-const.cc (OCT_VAL_REP::make_numeric): For string to number |
|
7267 conversions, correctly set type tag before calling force_numeric. |
|
7268 (do_binary_op): Force string to number conversion if both args are |
|
7269 strings and we are doing some sort of comparison operation. |
|
7270 |
|
7271 * Makefile.in (stamp-tinst, stamp-interp): Use SH_TERMLIBS and |
|
7272 SH_LIBS instead of TERMLIBS and LIBS. |
|
7273 |
|
7274 * pt-const.cc (do_unary_op): Add special case to handle |
|
7275 transposing strings. |
|
7276 |
|
7277 * pt-mat.cc (Vstring_fill_char): New variable. |
|
7278 (symbols_of_pt_mat): DEFVAR it. |
|
7279 |
|
7280 * input.cc (generate_struct_completions, |
|
7281 generate_possible_completions): Return string_vector, not char **. |
|
7282 Change all callers. |
|
7283 |
|
7284 * pt-const.cc (lookup_map_element): Use substr() correctly. |
|
7285 |
|
7286 Tue May 21 21:37:17 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7287 |
|
7288 * oct.h: New file. |
|
7289 * Makefile.in (INCLUDES): Add it to the list. |
|
7290 |
|
7291 * octave.cc: New args --no-site-file and --no-init-file. Delete |
|
7292 --ignore-init-file. The flag --norc (-f) implies both |
|
7293 --no-site-file and --no-init-file. |
|
7294 |
|
7295 Fri May 17 01:54:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7296 |
|
7297 * input.cc (Fcompletion_matches): New function. |
|
7298 |
|
7299 * utils.cc (get_fcn_file_names): Delete. |
|
7300 * help.cc (simple_help): Use new file name cache instead of |
|
7301 calling get_fcn_file_names. |
|
7302 * variables.cc (make_name_list): Likewise. |
|
7303 |
|
7304 * fn-cache.h, fn-cache.cc, Map-fnc.cc: New files. |
|
7305 * Makefile.in: Add them to the lists. |
|
7306 |
|
7307 * Makefile.in (uninstall): Install in octincludedir, not includedir. |
|
7308 |
|
7309 * pt-plot.h: Include <csignal> here. |
|
7310 |
|
7311 Thu May 16 10:52:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7312 |
|
7313 * oct-stream.cc (octave_stream::oscanf, octave_base_stream::oscanf, |
|
7314 octave_base_stream::do_oscanf): New functions for backward |
|
7315 compatibility with older versions of Octave. |
|
7316 (scanf_format_elt, scanf_format_list): Keep track of width specifier. |
|
7317 * file-io.cc (Fscanf): New function. |
|
7318 (Fscanf, Ffscanf, Fsscanf): Handle compatibility arg. |
|
7319 |
|
7320 Wed May 15 01:00:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7321 |
|
7322 * oct-stream.cc (do_scanf): If doing '%c' conversion, unset |
|
7323 ios::skipws on input stream. |
|
7324 |
|
7325 * sighandlers.h, sighandlers.cc (octave_child, octave_child_list): |
|
7326 New classes for keeping track of the child processes we create. |
|
7327 (sigchld_handler): Check in octave_child_list to see if there is |
|
7328 anything we can do for the child that died. |
|
7329 * pager.cc: Register child pager process. |
|
7330 * pt-plot.cc: Likewise, for the plotter. |
|
7331 * Array-oc.cc: New file |
|
7332 * Makefile.in (TI_SRC): Add it to the list. |
|
7333 |
|
7334 * pager.cc (do_sync): Don't check error_state. |
|
7335 (flushing_output_to_pager): New static variable. |
|
7336 (flush_octave_stdout): Use it to avoid doing anything if already |
|
7337 flushing output. |
|
7338 |
|
7339 * sighandlers.cc (sigchld_handler): Call warning instead of |
|
7340 writing directly to cerr. |
|
7341 (sigpipe_handler): Call warning instead of message. |
|
7342 |
|
7343 * octave.cc (main): Call install_signal_handlers, |
|
7344 initialize_file_io, initialize_symbol_tables, and install_builtins |
|
7345 before parsing command line options. |
|
7346 |
|
7347 * user-prefs.h, user-prefs.cc: Delete. |
|
7348 |
|
7349 * utils.cc (check_preference): Move here. |
|
7350 * user-prefs.cc: From here. |
|
7351 |
|
7352 * defaults.cc: New file. Move initialization stuff from |
|
7353 variables.cc. Move DEFVARS for EDITOR, EXEC_PATH, LOADPATH, |
|
7354 IMAGEPATH, and OCTAVE_VERSION here. |
|
7355 |
|
7356 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
7357 INFO_FILE and INFO_PROGRAM. |
|
7358 * help.cc: Move all of that here. |
|
7359 (symbols_of_help): Add DEFVARS for INFO_FILE and INFO_PROGRAM. |
|
7360 |
|
7361 Tue May 14 00:23:06 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7362 |
|
7363 * pager.cc (do_sync): Be more defensive about sending stuff to the |
|
7364 external pager. |
|
7365 * sighandlers.cc (sigchld_handler): For now, only wait for |
|
7366 octave_pager_pid. Don't call error(). Do set octave_pager_pid to |
|
7367 -1 if the pager process no longer exists. |
|
7368 |
|
7369 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
7370 PWD. |
|
7371 * dirfns.cc: Move all of that here. |
|
7372 (symbols_of_dirfns): New function. |
|
7373 * variables.cc (install_builtin_variables): Call it. |
|
7374 |
|
7375 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
7376 default_save_format and save_precision. |
|
7377 * load-save.cc: Move all of that here. |
|
7378 (symbols_of_load_save): New function. |
|
7379 * variables.cc (install_builtin_variables): Call it. |
|
7380 |
|
7381 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
7382 warn_divide_by_zero. |
|
7383 * arith-ops.cc: Move all of that here. |
|
7384 (symbols_of_arith_ops): New function. |
|
7385 * variables.cc (install_builtin_variables): Call it. |
|
7386 |
|
7387 * mappers.cc: Add wrappers for ctype is* functions so that they |
|
7388 will work on systems that only define them as macros. |
|
7389 |
|
7390 Mon May 13 00:27:08 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7391 |
|
7392 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
7393 suppress_verbose_help_message. |
|
7394 * help.cc: Move all of that here. |
|
7395 (symbols_of_help): New function. |
|
7396 * variables.cc (install_builtin_variables): Call it. |
|
7397 |
|
7398 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
7399 treat_neg_dim_as_zero. |
|
7400 * pt-const.cc: Move all of that here. |
|
7401 |
|
7402 * pager.cc (octave_pager_stream::do_sync): Don't return early if |
|
7403 not interactive. |
|
7404 |
|
7405 * data.h: New file. |
|
7406 * Makefile.in (INCLUDES): Add it to the list. |
|
7407 * data.cc (symbols_of_data): New function. Move definition of I, |
|
7408 Inf, J, NaN, e, eps, i, inf, j, nan, pi, realmin, and realmax here. |
|
7409 * variables.cc: From here. |
|
7410 (install_builtin_variables): Call symbols_of_data. |
|
7411 |
|
7412 * file-io.cc (symbols_of_file_io): New function. Move definition |
|
7413 of SEEK_CUR, SEEK_END, SEEK_SET, stdin, stdout, stderr here. |
|
7414 * variables.cc: From here. |
|
7415 (install_builtin_variables): Call symbols_of_file_io. |
|
7416 |
|
7417 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
7418 do_fortran_indexing, implicit_str_to_num_ok, |
|
7419 ok_to_lose_imaginary_part, prefer_column_vectors, |
|
7420 prefer_zero_one_indexing, print_answer_id_name, |
|
7421 propagate_empty_matrices, resize_on_range_error, and |
|
7422 struct_levels_to_print. |
|
7423 * pt-const.cc: Move all of that here. |
|
7424 (symbols_of_pt_const): New function. |
|
7425 * variables.cc (install_builtin_variables): Call it. |
|
7426 * pt-fvc.cc (tree_identifier::assign): Use Vresize_on_range_error |
|
7427 instead of user_pref.resize_on_range_error here. |
|
7428 * load-save.cc (save_mat_binary_data): Use Vimplicit_str_to_num_ok |
|
7429 instead of user_pref.implicit_str_to_num_ok here. |
|
7430 * utils.cc (empty_arg): Use Vpropagate_empty_matrices instead of |
|
7431 user_pref.propagate_empty_matrices here. |
|
7432 * pt-exp-base.cc (tree_expression::is_logically_true): Likewise.. |
|
7433 |
|
7434 * pt-fcn.cc (symbols_of_pt_fcn): Also move DEFVAR for |
|
7435 default_return_value here. |
|
7436 |
|
7437 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
7438 ps1, ps2, ps4, and completion_append_char. |
|
7439 * input.cc: Move all of that here. |
|
7440 (symbols_of_input): New function. |
|
7441 * variables.cc (install_builtin_variables): Call it. |
|
7442 * pt-pr-code.cc (indent): Use Vps4 instead of user_pref.ps4 here. |
|
7443 * help.cc (Ftype): Also here. |
|
7444 |
|
7445 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
7446 automatic_replot, gnuplot_binary, and gnuplot_has_multiplot. |
|
7447 * pt-plot.cc: Move all of that here. |
|
7448 (symbols_of_pt_plot): New function. |
|
7449 * variables.cc (install_builtin_variables): Call it. |
|
7450 |
|
7451 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
7452 beep_on_error. |
|
7453 * error.cc: Move all of that here. |
|
7454 (symbols_of_error): New function. |
|
7455 * variables.cc (install_builtin_variables): Call it. |
|
7456 |
|
7457 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
7458 empty_list_elements_ok. |
|
7459 * pt-mat.cc: Move all of that here. |
|
7460 (symbols_of_pt_mat): New function. |
|
7461 * variables.cc (install_builtin_variables): Call it. |
|
7462 |
|
7463 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
7464 define_all_return_values, return_last_computed_value, and |
|
7465 silent_functions. |
|
7466 * pt-fcn.cc: Move all of that here. |
|
7467 (symbols_of_pt_fcn): New function. |
|
7468 * variables.cc (install_builtin_variables): Call it. |
|
7469 |
|
7470 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
7471 whitespace_in_literal_matrix. |
|
7472 * lex.l: Move all of that here. |
|
7473 (symbols_of_lex): New function. |
|
7474 * variables.cc (install_builtin_variables): Call it. |
|
7475 |
|
7476 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
7477 warn_assign_as_truth_value, warn_comma_in_global_decl, |
|
7478 warn_function_name_clash, and warn_missing_semicolon. |
|
7479 * parse.y: Move all of that here. |
|
7480 (symbols_of_parse): New function. |
|
7481 * variables.cc (install_builtin_variables): Call it. |
|
7482 |
|
7483 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
7484 output_precision, output_max_field_width, print_empty_dimensions, |
|
7485 and split_long_rows. |
|
7486 * pr-output.cc: Move all of that here. |
|
7487 (symbols_of_pr_output): New function. |
|
7488 * variables.cc (install_builtin_variables): Call it. |
|
7489 |
|
7490 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
7491 page_screen_output, page_output_immediately, and pager_binary. |
|
7492 * pager.cc: Move all of that here. |
|
7493 |
|
7494 * user-prefs.h (check_preference): Provide declaration. |
|
7495 * user-prefs.cc (check_preference): Make external. |
|
7496 |
|
7497 * toplev.cc (Foctave_config_info): New function. |
|
7498 |
|
7499 * oct-conf.h.in: New file |
|
7500 * Makefile.in (oct-conf.h): New target. |
|
7501 Add it to the appropriate lists. |
|
7502 |
|
7503 * sighandlers.cc (sigchld_handler): Don't complain about wait |
|
7504 returning a negative value. |
|
7505 |
|
7506 * file-io.cc (Fsscanf, Fsprintf): Pass true for second arg of |
|
7507 octave_stream constructor. |
|
7508 |
|
7509 * oct-stream.h (octave_stream): New field, preserve. |
|
7510 (octave_stream::~octave_stream): If preserve, don't delete rep. |
|
7511 |
|
7512 * pager.cc (symbols_of_pager): Set default for |
|
7513 page_output_immediately to 0. |
|
7514 |
|
7515 * toplev.cc (do_system): Correctly handle return_output. |
|
7516 Append ends to output_buf before calling str(). |
|
7517 |
|
7518 * variables.cc: If M_PI and M_E are available, use them. |
|
7519 |
|
7520 * mk-oct-links.in (links_dir): If old link exists, delete it first. |
|
7521 |
|
7522 Sun May 12 01:46:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7523 |
|
7524 * Makefile.in (DISTFILES): List defaults.h.in and oct-gperf.h here. |
|
7525 (INCLUDES): Not here. |
|
7526 (install-inc): New target. |
|
7527 (uninstall): Also delete libraries and include files. |
|
7528 (install-inc): If linkdir is a directory, leave it alone. |
|
7529 (TERMLIBS, LIBPLPLOT, LIBDLFCN): Don't substitute here (now in |
|
7530 Makeconf). |
|
7531 |
|
7532 * oct-stream.cc (octave_base_stream::do_read): Provide initial |
|
7533 value for tmp var. |
|
7534 |
|
7535 * pt-walk.h, pt-pr-code.h, pt-pr-code.cc: New tree-walking classes. |
|
7536 * Makefile.in: Add them to the appropriate lists. |
|
7537 * pt-fvc-base.h, pt-exp-base.cc, pt-fvc-base.cc, pt-mvr-base.cc, |
|
7538 pt-base.cc, pt-mvr.cc, pt-mat.h, pt-mat.cc, pt-fvc.cc, |
|
7539 pt-const.cc, pt-cmd.cc, pt-const.h, pt-misc.cc, pt-plot.cc, |
|
7540 pt-fcn.cc, pt-plot.h, pt-mvr.h, pt-mvr-base.h, pt-misc.h, |
|
7541 pt-fcn.h, pt-exp.h, pt-exp.cc, pt-exp-base.h, pt-fvc.h, pt-cmd.h, |
|
7542 pt-base.h: |
|
7543 Replace print_code stuff with accept() functions. |
|
7544 Add member access functions where necessary. |
|
7545 * help.cc (Ftype): Update to use new method of walking trees to |
|
7546 print text representation of user-defined functions. |
|
7547 |
|
7548 * file-io.cc (Ffscanf): Update doc string. |
|
7549 (Fsscanf): Likewise. |
|
7550 |
|
7551 * oct-stream.cc (octave_base_stream::do_read): Correctly set max_size. |
|
7552 Pad mval with zeros on final resize. |
|
7553 (octave_base_stream::do_scanf): Likewise. |
|
7554 (do_scanf_conv): Correctly resize mval. |
|
7555 |
|
7556 Sat May 11 05:14:09 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7557 |
|
7558 * pager.cc (octave_pager_buf::sync): Correctly set bypass_pager. |
|
7559 |
|
7560 * lex.l (<MATRIX>{SNLCMT}*\]{S}*): Match SNLCMT, not just SNL. |
|
7561 |
|
7562 Fri May 3 11:05:30 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7563 |
|
7564 * pt-const.cc (OCT_VAL_REP::set_index): Complain if type can't be |
|
7565 indexed. |
|
7566 |
|
7567 * input.cc (get_user_input): Don't increment input line number if |
|
7568 input is coming from eval string. |
|
7569 |
|
7570 * user-prefs.cc: Allow empty strings for prompts. |
|
7571 |
|
7572 Thu May 2 10:50:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7573 |
|
7574 * pt-mvr.h (class tree_oct_obj): Declare values data member const. |
|
7575 |
|
7576 Sun Apr 28 03:16:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7577 |
|
7578 * user-prefs.h (user_preferences): New field, |
|
7579 `page_output_immediately'. |
|
7580 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7581 (page_output_immediately): New function. |
|
7582 * pager.cc (syms_of_pager): Add DEFVAR. |
|
7583 (really_flush_to_pager): New file-scope variable. |
|
7584 (flush_octave_stdout): Set and restore it. |
|
7585 (octave_pager_buf::sync): Check it, user_pref.page_screen_output, |
|
7586 and user_pref.page_output_immediately to decide when to really |
|
7587 flush output. |
|
7588 (more_than_a_screenful): New function. If paging but not |
|
7589 immediately, then check this too. |
|
7590 |
|
7591 * pager.cc (default_pager): Move here from variables.cc. If pager |
|
7592 is less and LESS is not in the environment, append useful flags. |
|
7593 (symbols_of_pager): New function. |
|
7594 * variables.cc (install_builtin_variables): Call it. |
|
7595 Delete pager-related DEFVARs. |
|
7596 |
|
7597 * syswait.h (WIFSIGNALLED): Define if sys/wait.h doesn't. |
|
7598 |
|
7599 * sighandlers.cc: Handle SIGCHLD. |
|
7600 |
|
7601 * pager.cc, pager.h: Rewrite. |
|
7602 * pt-mvr.cc, pt-misc.cc, pt-fcn.cc, pt-const.cc, oct-hist.cc, |
|
7603 file-io.cc, help.cc, variables.cc, qpsol.cc, dassl.cc, quad.cc, |
|
7604 npsol.cc, lsode.cc, fsolve.cc, load-save.cc, dirfns.cc, octave.cc, |
|
7605 toplev.cc, error.cc, input.cc: |
|
7606 Write to octave_stdout and octave_diary instead of calling |
|
7607 maybe_page_output() or maybe_write_to_diary_file(). |
|
7608 |
|
7609 * oct-procbuf.h, oct-procbuf.cc: New files. |
|
7610 * procstream.h (class procstreambase): Use octave_procbuf instead |
|
7611 of procbuf from libg++, so we can get pids of subprocesses. |
|
7612 |
|
7613 Fri Apr 26 01:21:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7614 |
|
7615 * pt-const.cc (OCT_VAL_REP::do_index): Call maybe_mutate() before |
|
7616 returning. |
|
7617 |
|
7618 * mappers.h (struct Mapper_fcn): Delete. |
|
7619 (struct builtin_mapper_function): New field ch_mapper. |
|
7620 * pt-fvc.h (tree_builtin): Convert type of mapper_fcn from |
|
7621 Mapper_fcn to builtin_mapper_function. |
|
7622 * variables.cc (install_builtin_mapper): Likewise, for arg. |
|
7623 Simplify, since we don't have to do the copying ourselves now. |
|
7624 * pt-fvc.cc (apply_mapper_function): Handle ch_mapper case. |
|
7625 * defun.h (DEFUN_MAPPER): Likewise. |
|
7626 * mappers.cc (install_builtin_mappers): Likewise. |
|
7627 Add ctype is* functions here. |
|
7628 |
|
7629 Thu Apr 25 00:57:06 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7630 |
|
7631 * arith-ops.h, defun-int.h, defun.h, dynamic-ld.h, gripes.h, |
|
7632 load-save.h, oct-map.h, oct-obj.h, oct-stream.h, pt-cmd.h, |
|
7633 pt-const.h, pt-exp-base.h, pt-exp.h, pt-fcn.h, pt-fvc-base.h, |
|
7634 pt-fvc.h, pt-mat.h, pt-misc.h, pt-mvr-base.h, pt-mvr.h, pt-plot.h, |
|
7635 symtab.h, toplev.h, utils.h, variables.h, xpow.h, Array-tc.cc, |
|
7636 Map-i.cc, Map-tc.cc, SLList-tc.cc, arith-ops.cc, balance.cc, |
|
7637 bogus.cc, chol.cc, colloc.cc, dassl.cc, data.cc, det.cc, |
|
7638 dirfns.cc, eig.cc, error.cc, expm.cc, fft.cc, fft2.cc, file-io.cc, |
|
7639 filter.cc, find.cc, fsolve.cc, fsqp.cc, givens.cc, gripes.cc, |
|
7640 help.cc, hess.cc, ifft.cc, ifft2.cc, input.cc, inv.cc, |
|
7641 load-save.cc, log.cc, lpsolve.cc, lsode.cc, lu.cc, minmax.cc, |
|
7642 npsol.cc, oct-hist.cc, oct-obj.cc, oct-stream.cc, pager.cc, |
|
7643 pinv.cc, pr-output.cc, pt-cmd.cc, pt-const.cc, pt-exp-base.cc, |
|
7644 pt-exp.cc, pt-fcn.cc, pt-fvc-base.cc, pt-fvc.cc, pt-mat.cc, |
|
7645 pt-misc.cc, pt-mvr-base.cc, pt-mvr.cc, pt-plot.cc, qpsol.cc, |
|
7646 qr.cc, quad.cc, qzval.cc, rand.cc, resource.cc, schur.cc, sort.cc, |
|
7647 strfns.cc, svd.cc, syl.cc, symtab.cc, syscalls.cc, sysdep.cc, |
|
7648 timefns.cc, toplev.cc, utils.cc, variables.cc, xpow.cc, parse.y: |
|
7649 Rename tree_constant -> octave_value. |
|
7650 Rename Octave_object -> octave_value_list. |
|
7651 |
|
7652 Wed Apr 24 22:15:34 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7653 |
|
7654 * toplev.cc (Fsystem): Merge functionality of async_system and |
|
7655 sync_system. |
|
7656 |
|
7657 * oct-fstrm.h, oct-iostrm.h, oct-prcstrm.h, oct-stdstrm.h, |
|
7658 oct-stream.h, oct-strstrm.h, oct-fstrm.cc, oct-iostrm.cc, |
|
7659 oct-prcstrm.cc, oct-stdstrm.cc, oct-stream.cc, oct-strstrm.cc, |
|
7660 Array-os.cc: New files. |
|
7661 * Makefile.in: Add them to the appropriate lists. |
|
7662 * file-io.cc: Rewrite to use new stream classes. |
|
7663 |
|
7664 Tue Apr 23 18:59:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7665 |
|
7666 * gripes.cc (gripe_not_supported): New function. |
|
7667 |
|
7668 * toplev.cc (do_octave_atexit, Fatexit): New functions. |
|
7669 (octave_atexit_functions): New file-scope variable. |
|
7670 * octave.cc (main): Register do_octave_atexit with atexit. |
|
7671 |
|
7672 * variables.cc (install_builtin_variables): Call |
|
7673 symbols_of_syscalls here. |
|
7674 |
|
7675 * syscalls.h, syscalls.cc: New files. |
|
7676 |
|
7677 Mon Apr 22 21:14:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7678 |
|
7679 * syscalls.cc: New file. |
|
7680 (Flstat, Fmkfifo, Fstat, Funlink, Fwait, Fwaitpid): Move here. |
|
7681 * file-io.cc: From here. |
|
7682 * Makefile.in (SOURCES): Add syscalls.cc to the list. |
|
7683 |
|
7684 Wed Apr 17 18:34:10 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7685 |
|
7686 * file-info.h, file-info.cc: Delete files. |
|
7687 * Makefile.in: Remove from lists. |
|
7688 |
|
7689 * toplev.cc (Fquit): Accept exit status argument. |
|
7690 (Fflops): Delete (now a function file). |
|
7691 |
|
7692 Thu Apr 11 16:20:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7693 |
|
7694 * lex.l: Recognize `.'. |
|
7695 Update current_input_column even for unrecognized characters. |
|
7696 Return LEXICAL_ERROR for unrecognized characters. |
|
7697 |
|
7698 Mon Apr 8 19:59:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7699 |
|
7700 * variables.cc (install_builtin_variables): Split into several |
|
7701 functions to make compiling with g++ go faster and consume less |
|
7702 memory. |
|
7703 |
|
7704 Sun Apr 7 16:25:35 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7705 |
|
7706 * load-save.cc (Fsave): Print usage if i == argc. |
|
7707 (Fload): Likewise. |
|
7708 |
|
7709 Sat Apr 6 21:26:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7710 |
|
7711 * Makefile.in (clean): Also delete pic/*.o |
|
7712 (maintainer-clean, distclean): Also remove stamp-picdir, |
|
7713 stamp-tinst, stamp-interp, and pic directory. |
|
7714 (stamp-prereq): New target. |
|
7715 |
|
7716 Wed Apr 3 11:19:30 1996 Rick Niles <niles@axp745.gsfc.nasa.gov> |
|
7717 |
|
7718 * resource.cc: Don't make including sys/resource.h and sys/times.h |
|
7719 mutually exclusive. |
|
7720 |
|
7721 Fri Mar 29 13:43:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7722 |
|
7723 * Makefile.in (distclean): Delete so_locations, which is created |
|
7724 on DEC Alpha systems. |
|
7725 |
|
7726 Thu Mar 28 02:53:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7727 |
|
7728 * utils.h (undo_string_escape): Provide extern declaration here. |
|
7729 |
|
7730 * lex.l (NL): Allow \r\n as new line character. |
|
7731 (.): Complain if invalid character is found on input |
|
7732 |
|
7733 Fri Mar 22 03:47:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7734 |
|
7735 * resource.cc (getrusage): If getrusage is missing, try using |
|
7736 times to at least fill in the cpu time values. If neither one is |
|
7737 available, return 0 for cpu times instead of NaN. |
|
7738 |
|
7739 * sighandlers.cc (octave_signal_mask): New file-scope variable. |
|
7740 (octave_save_signal_mask, octave_restore_signal_mask): New functions. |
|
7741 * toplev.cc (main_loop): Use them. |
|
7742 |
|
7743 Wed Mar 20 01:21:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7744 |
|
7745 * utils.cc (get_fcn_file_names (const string&, int)): Resize |
|
7746 retval to value of k, not i. |
|
7747 (get_fcn_file_names (int)): In loop for copying names to retval, |
|
7748 don't increment j twice. |
|
7749 |
|
7750 Mon Mar 18 22:27:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7751 |
|
7752 * Makefile.in ($(MAKEDEPS)): Depend on oct-gperf.h. |
|
7753 |
|
7754 Fri Mar 1 18:15:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7755 |
|
7756 * fsolve.cc (fsolve_options): Delete unused argument nargout. |
|
7757 |
|
7758 * filter.cc: Use MArray instead of Array so that automatic |
|
7759 conversions will work again. |
|
7760 |
|
7761 Tue Feb 27 04:49:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7762 |
|
7763 * variables.cc (looks_like_octave_copyright): Make the strings |
|
7764 that we are trying to match both have length 29. |
|
7765 |
|
7766 * Makefile.in (install-bin): Use $(INSTALL_PROGRAM), not $(INSTALL). |
|
7767 |
|
7768 * load-save.cc (read_mat_binary_data): Make sure name is |
|
7769 NUL terminated. |
|
7770 |
|
7771 Mon Feb 26 18:18:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7772 |
|
7773 * variables.cc (whos): Make argv from tmp_args, not args. |
|
7774 |
|
7775 * defun.h (DEFCONSTX): Don't stringify name. |
|
7776 |
|
7777 Sat Feb 24 01:12:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7778 |
|
7779 * Makefile.in (install-oct): Make mk-oct-links executable. |
|
7780 * mk-oct-links.in (links_dir): Update to match new format of |
|
7781 DEFUN_DLD_BUILTIN macro. Use LN_S, not just LN. |
|
7782 (links_dir): |
|
7783 |
|
7784 * pr-output.cc (octave_print_internal): New arg, extra_indent, for |
|
7785 versions of this function that take matrices and ranges. |
|
7786 * pt-const.cc (TC_REP::print (ostream&)): Fix printing of structures. |
|
7787 Pass struct_indent to octave_print_internal as appropriate. |
|
7788 (print_with_name (ostream&, const string&, bool)): Handle spacing |
|
7789 around `=' differently for structures. |
|
7790 |
|
7791 Fri Feb 23 04:51:04 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7792 |
|
7793 * token.cc (token (double, const string&, int, int)): Store orig_text. |
|
7794 |
|
7795 Tue Feb 20 20:36:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7796 |
|
7797 * variables.cc (Fclear): Fix off-by-one error. |
|
7798 |
|
7799 Sat Feb 17 16:54:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7800 |
|
7801 * oct-hist.cc (default_history_file): Append "/.octave_hist" to |
|
7802 return value, not to home_directory. |
|
7803 |
|
7804 Fri Feb 16 18:10:46 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7805 |
|
7806 * utils.cc: (NINT, D_NINT): Move to liboctave. |
|
7807 |
|
7808 * sysdep.cc (octave_ieee_init): Move to liboctave. |
|
7809 |
|
7810 * procstream.h, procstream.cc: Rewrite. |
|
7811 |
|
7812 * pager.cc (cleanup_oprocstream): New static function. |
|
7813 * toplev.cc (cleanup_iprocstream): Likewise. |
|
7814 * dirfns.cc (cleanup_iprocstream): Likewise. |
|
7815 |
|
7816 * unwind-prot.cc (matrix_cleanup, complex_matrix_cleanup): Delete. |
|
7817 |
|
7818 Thu Feb 15 22:03:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7819 |
|
7820 * oct-obj.cc, oct-obj.h: Move most code to the header. |
|
7821 |
|
7822 * oct-obj.cc (make_argv, all_strings): New member functions. |
|
7823 * utils.cc: Moved from here. |
|
7824 |
|
7825 * load-save.cc: Move byte swapping stuff to liboctave. |
|
7826 Move float format conversion stuff to liboctave. |
|
7827 (all_parts_int, too_large_for_float): Move to liboctave. |
|
7828 |
|
7829 * symtab.cc (valid_identifier): Move here. |
|
7830 * load-save.cc: From here. |
|
7831 |
|
7832 * sysdep.cc: Move floating-point format stuff to liboctave. |
|
7833 * pr-output.cc: Include float-fmt.h here. |
|
7834 |
|
7835 Wed Feb 14 01:49:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7836 |
|
7837 * defun.h, defun-dld.h, defun-int.h: Simplify interface for DEFUN, |
|
7838 DEFUN_DLD, DEFVAR, and DEFCONST macros. Change all uses. |
|
7839 |
|
7840 * qzval.cc: Move guts to liboctave. |
|
7841 |
|
7842 Tue Feb 13 10:28:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7843 |
|
7844 * variables.cc (parse_fcn_file): Also avoid saving history if |
|
7845 input is from a script file. |
|
7846 |
|
7847 * help.cc (Ftype): Call unwind_protect_str for user_pref.ps4. |
|
7848 |
|
7849 * npsol.cc (nonlinear_constraints_ok): Now static. |
|
7850 |
|
7851 * npsol.cc (linear_constraints_ok): Now static. |
|
7852 * qpsol.cc (linear_constraints_ok): Duplicate here. |
|
7853 |
|
7854 * data.cc (Flinspace): Don't print usage message if nargin == 2. |
|
7855 |
|
7856 Sun Feb 11 14:20:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7857 |
|
7858 * mk-oct-links.in: Rename from mk-oct-links. |
|
7859 (LN_S): Use this variable instead of ln. |
|
7860 Set -e option for shell. |
|
7861 Exit with status of last command. |
|
7862 Print message when making link. |
|
7863 * Makefile.in (DISTFILES): Add mk-oct-links.in to the list. |
|
7864 (install-oct): Run ./mk-oct-links, not $(srcdir)/mk-oct-links. |
|
7865 |
|
7866 * variables.cc (install_builtin_variables): Restore accidentally |
|
7867 deleted DEFVAR for save_precision. |
|
7868 |
|
7869 Fri Feb 9 11:24:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7870 |
|
7871 * Makefile.in (INCLUDES): Delete statdefs.h from the list (it's |
|
7872 now in the liboctave directory). |
|
7873 |
|
7874 * toplev.cc (toplevel): Define here. |
|
7875 * octave.cc (toplevel): Not here. |
|
7876 |
|
7877 * toplev.cc (main_loop): New function. |
|
7878 * octave.cc (main): Call it here instead of doing main loop |
|
7879 actions here. |
|
7880 |
|
7881 * user-prefs.cc (do_fortran_indexing): Also set liboctave_dfi_flag. |
|
7882 (prefer_column_vectors): Also set liboctave_pcv_flag. |
|
7883 (prefer_zero_one_indexing): Also set liboctave_pzo_flag. |
|
7884 (resize_on_range_error): Also set liboctave_rre_flag. |
|
7885 |
|
7886 * variables.cc (restore_command_history): New function. |
|
7887 (parse_fcn_file): Use it here in unwind_protect. |
|
7888 |
|
7889 * dynamic-ld.cc (load_octave_oct_file): Reverse sense of test. |
|
7890 (load_octave_builtin): Delete. |
|
7891 (mangle_octave_oct_file_name): Delete. |
|
7892 |
|
7893 * pt-fvc.cc (tree_builtin::eval): Don't try to dynamically load |
|
7894 functions here. |
|
7895 |
|
7896 * pr-output.cc (set_format_style): Decrement argc for first arg too. |
|
7897 |
|
7898 * input.cc (gnu_readline): If readline returns an empty string, |
|
7899 convert it to a string containing a single newline character. |
|
7900 |
|
7901 * octave.cc (octave_argv): Now a static string_vector. |
|
7902 (intern_argv): Use string_vector ops, not charMatrix ops. |
|
7903 * toplev.cc (octave_argv): Delete definition. |
|
7904 * toplev.h (octave_argv): Delete declaration. |
|
7905 |
|
7906 Thu Feb 8 10:58:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7907 |
|
7908 * Makefile.in (conf-dist): New target. |
|
7909 |
|
7910 Tue Feb 6 10:59:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7911 |
|
7912 * help.cc (Ftype): Correctly handle structure names. |
|
7913 |
|
7914 Sun Feb 4 02:02:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7915 |
|
7916 * qpsol.cc (Fqpsol): Call set_options(), not copy() to set |
|
7917 options for QPSOL objects. |
|
7918 |
|
7919 * npsol.cc (Fnpsol): Call set_options(), not copy() to set |
|
7920 options for NPSOL objects. |
|
7921 |
|
7922 * quad.cc (Fquad): Call set_options(), not copy() to set |
|
7923 options for Quad objects. |
|
7924 |
|
7925 * dynamic-ld.cc (load_octave_builtin): Don't call destructor on string. |
|
7926 (load_octave_oct_file): Likewise. |
|
7927 Check oct_file.empty(), not just oct_file. |
|
7928 |
|
7929 * fsolve.cc (Ffsolve): Call set_options(), not copy() to set |
|
7930 options for NLEqn object. |
|
7931 |
|
7932 * variables.cc (do_who): Properly set match patterns from argument |
|
7933 vector for call to maybe_list. |
|
7934 |
|
7935 Sat Feb 3 03:29:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7936 |
|
7937 * octave.cc (long_opts): Properly set second field using new enum. |
|
7938 |
|
7939 * lsode.cc: Change ODE to LSODE where appropriate. |
|
7940 Use LSODE_options, not ODE_options. |
|
7941 |
|
7942 * dassl.cc: Change DAE to DASSL where appropriate. |
|
7943 Use DASSL_options, not ODE_options. |
|
7944 |
|
7945 Fri Feb 2 01:41:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7946 |
|
7947 * dirfns.cc: Include unistd.h. |
|
7948 |
|
7949 * parse.y, lex.l: Handle matrix lists without ml or mlnm stacks. |
|
7950 * pt-mat.h, pt-mat.cc (tree_matrix): |
|
7951 Rewrite to use SLList instead of home brew list. |
|
7952 * SLList-tm.cc: New file |
|
7953 * Makefile.in: Add it to the lists. |
|
7954 * SLStack-tm.cc: Delete. |
|
7955 * Makefile.in: Delete it from the lists. |
|
7956 |
|
7957 * All pt-* files: Use bool instead of int where appropriate. |
|
7958 |
|
7959 * Makefile.in (DEP_SOURCES_3): Add octave.cc. |
|
7960 |
|
7961 * pt-const.h (class tree_constant::tree_constant_rep): Make |
|
7962 everything in this class public, then it doesn't need to declare |
|
7963 the tree_constant class as a friend. |
|
7964 |
|
7965 Thu Feb 1 01:42:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7966 |
|
7967 * lex.h, lex.l, parse.h, parse.y (class lexical_feedback): New |
|
7968 class for lexer flags. Replace lots of global vars with members |
|
7969 of this class. |
|
7970 |
|
7971 * lex.l (class brace_paren_nesting_level): New class to replace |
|
7972 nesting_level stack. nesting_level is now an instance of this |
|
7973 class. |
|
7974 |
|
7975 * lex.l (yum_yum): New typedef. |
|
7976 (ATE_NOTHING): New global var. |
|
7977 (ATE_SPACE_OR_TAB, ATE_NEWLINE): Don't #define these, declare them |
|
7978 as const yum_yum. |
|
7979 (eat_whitespace, eat_continuation): Return yum_yum, not int. |
|
7980 |
|
7981 * lex.l (SHORT_CIRCUIT_LOGICALS): Delete. Always do this for || |
|
7982 and && tokens. |
|
7983 (yy_flex_alloc, yy_flex_realloc, yy_flex_free, next_char_is_space): |
|
7984 Delete. |
|
7985 |
|
7986 * toplev.cc (verbose_flag): Delete definition. |
|
7987 * toplev.h (verbose_flag): And declaration. |
|
7988 * octave.cc (verbose_flag): Now static. |
|
7989 |
|
7990 * lex.l (lookup_identifier): Arg is now string, not char*. |
|
7991 (handle_identifier, is_plot_keyword, is_keyword): Likewise. |
|
7992 (strip_trailing_whitespace): Return value is now string, not char*. |
|
7993 (plot_style_token): Likewise, for both arg and return value. |
|
7994 |
|
7995 * input.cc (octave_gets_line): Delete. |
|
7996 (gnu_readline, octave_gets, octave_read): |
|
7997 Properly handle input when using_readline is either true or false. |
|
7998 Don't limit length of input lines to flex buffer size. |
|
7999 (get_user_input): New function. |
|
8000 |
|
8001 * octave.cc (main): Handle --no-line-editing. |
|
8002 * toplev.h (using_readline): Provide external declaration here. |
|
8003 * input.h: Not here. |
|
8004 * toplev.cc (using_readline): Define here. |
|
8005 * input.cc: Not here. |
|
8006 |
|
8007 * toplev.h (no_line_editing): Delete declaration. |
|
8008 * input.cc (no_line_editing): Delete definition. |
|
8009 |
|
8010 Wed Jan 31 05:28:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8011 |
|
8012 * input.cc (DEFAULT_ARRAY_SIZE, PROMPT_GROWTH): Delete definitions |
|
8013 of unused macros. |
|
8014 (read_octal): Now static. |
|
8015 |
|
8016 * givens.cc (Fgivens): Use new functions from matrix classes |
|
8017 instead of calling Fortran functions directly. |
|
8018 * syl.cc (Fsyl): Likewise. |
|
8019 * expm.cc (Fexpm): Likewise. |
|
8020 |
|
8021 Mon Jan 29 00:00:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8022 |
|
8023 * octave.cc: Use new prog_args class instead of calling getopt |
|
8024 directly. |
|
8025 |
|
8026 * getopt.h, getopt.c, getopt1.c: Move to liboctave directory. |
|
8027 * Makefile: Remove from lists. |
|
8028 |
|
8029 * utils.cc (strconcat, read_until, discard_until): Delete. |
|
8030 |
|
8031 * pager.cc (terminal_columns, terminal_rows): Move to |
|
8032 liboctave/oct-term.cc. |
|
8033 * pager.cc, pr-output.cc: Include oct-term.h. |
|
8034 |
|
8035 * utils.cc (list_in_columns): Moved to liboctave/str-vec.cc. |
|
8036 Change all callers to use new member function syntax. |
|
8037 |
|
8038 * dirfns.cc (absolute_program): Now static. |
|
8039 (absolute_pathname): Delete. |
|
8040 |
|
8041 * pt-plot.cc (save_in_tmp_file): Call oct_tempnam, not |
|
8042 octave_tmp_file_name. Include file-ops.h. |
|
8043 * file-io.cc (do_scanf, Foctave_tmp_file_name): Likewise. |
|
8044 * oct-hist.cc (mk_tmp_hist_file): Likewise. |
|
8045 |
|
8046 * file-io.cc (Foctave_tmp_file_name): Move here. |
|
8047 * utils.cc: From here. |
|
8048 |
|
8049 * utils.cc (octave_tmp_file_name): Move to liboctave/file-ops.cc. |
|
8050 |
|
8051 * tempname.c, tempnam.c: Move to liboctave directory. |
|
8052 * Makefile.in: Remove from lists. |
|
8053 |
|
8054 Sun Jan 28 19:00:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8055 |
|
8056 * xdiv.cc (all xdiv functions): Return Matrix or ComplexMatrix, |
|
8057 not tree_constant. |
|
8058 |
|
8059 * oct-hist.h, oct-hist.cc, toplev.cc, octave.cc, input.cc, |
|
8060 file-io.cc, user-prefs.cc: Rewrite to use new command_history |
|
8061 class instead of calling readline history functions directly. |
|
8062 |
|
8063 * utils.cc (get_fcn_file_names): Delete num arg. |
|
8064 |
|
8065 Thu Jan 25 20:33:54 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8066 |
|
8067 * load-save.cc (matches_patterns): Use new glob_match class |
|
8068 instead of calling fnmatch directly. |
|
8069 * symtab.cc (matches_patterns, symbol_table::glob): Likewise. |
|
8070 * variables.cc (Fclear): Likewise. |
|
8071 |
|
8072 Wed Jan 24 02:05:22 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8073 |
|
8074 * fnmatch.h fnmatch.c: Delete. |
|
8075 * Makefile.in: Add glob stuff in the appropriate places, remove |
|
8076 fnmatch.h and fnmatch.c from lists. |
|
8077 |
|
8078 * octave.cc (program_invocation_name, program_invocation_short_name): |
|
8079 Maybe declare. |
|
8080 (initialize_globals): Maybe initialize them. |
|
8081 |
|
8082 * octave.cc (initialize_pathsearch): Define here, not in pathsearch.cc. |
|
8083 * pathsearch.h, pathsearch.cc: Remove files. |
|
8084 * Makefile.in: Remove them from the lists. |
|
8085 |
|
8086 * help.cc (simple_help): Ignore directories that don't have any .m |
|
8087 or .oct files. |
|
8088 |
|
8089 * utils.cc (search_path_for_file): Use new dir_path class instead |
|
8090 of calling kpathsea routines directly. |
|
8091 (get_fcn_file_names): Likewise. |
|
8092 * help.cc (simple_help): Likewise. |
|
8093 |
|
8094 * dirfns.cc (make_absolute): Don't convert empty arg to "./". |
|
8095 |
|
8096 * sysdir.h: Move to liboctave directory. |
|
8097 * Makefile.in: Remove from lists. |
|
8098 |
|
8099 * dirfns.cc (Freaddir): Use new dir_entry class instead of calling |
|
8100 readdir directly. Include dir-ops.h, not sysdir.h. |
|
8101 * utils.cc (get_fcn_file_names): Likewise. Delete unnecessary |
|
8102 first arg, change all callers. |
|
8103 |
|
8104 Tue Jan 23 00:43:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8105 |
|
8106 * safe-xstat.hin, safe-xstat.cin, statdefs.h, file-ops.h, |
|
8107 file-ops.cc, filemode.c, mkdir.c, rmdir.c, rename.c: |
|
8108 Files moved to liboctave directory. |
|
8109 * Makefile.in: Remove them from lists. Move appropriate rules. |
|
8110 |
|
8111 * acosh.c, asinh.c, atanh.c, erf.c, erfc.c, gamma.c, lgamma.c: |
|
8112 Files moved to liboctave directory. |
|
8113 * Makefile.in: Remove them from lists. |
|
8114 * missing-math.h: Deleted. |
|
8115 * pr-output.cc, sysdep.cc, minmax.cc, mappers.cc, expm.cc, |
|
8116 arith-ops.cc: Include oct-math.h, not cmath or missing-math.h. |
|
8117 |
|
8118 Mon Jan 22 19:33:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8119 |
|
8120 * variables.cc (Fexist): Use file_stat instead of calling stat |
|
8121 directly. Include file-ops.h, not statdefs.h. |
|
8122 * octave.cc (execute_startup_files): Likewise. |
|
8123 * file-io.cc (file_io_get_file, fopen_internal, popen_internal, Fstat): |
|
8124 Likewise. |
|
8125 (mk_stat_map): Likewise, use file_stat object, not struct stat. |
|
8126 * oct-hist.cc (do_history): Likewise. |
|
8127 |
|
8128 * file-ops.h, file-stat.cc: New files. |
|
8129 * Makefile.in: Include them. |
|
8130 * dirfns.cc: Delete is_newer. Don't include statdefs.h. |
|
8131 * toplev.cc: Don't include statdefs.h. |
|
8132 |
|
8133 Sun Jan 21 22:48:03 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8134 |
|
8135 * pt-mvr.h, pt-fvc.h, Map.cc, Map.h, dynamic-ld.h, |
|
8136 pt-fvc-base.cc, SLList-str.cc, pt-fcn.h, pt-fvc-base.h, |
|
8137 SLStack-str.cc, pt-mvr.cc, pt-exp.cc, token.h, token.cc, |
|
8138 user-prefs.h, pt-base.cc, user-prefs.cc, dirfns.h, sysdep.h, |
|
8139 sysdep.cc, input.h, parse.h, lex.l, parse.y, defun.h, mappers.h, |
|
8140 pt-fvc.cc, pt-plot.h, load-save.h, octave.cc, defun-int.h, help.h, |
|
8141 variables.h, oct-map.h, oct-obj.h, oct-obj.cc, pt-const.cc, |
|
8142 oct-map.cc, input.cc, symtab.h, pt-const.h, pathsearch.cc, |
|
8143 pr-output.h, pr-output.cc, toplev.h, timefns.cc, schur.cc, |
|
8144 pt-plot.cc, pager.cc, load-save.cc, dynamic-ld.cc, dirfns.cc, |
|
8145 data.cc, file-info.h, file-info.cc, colloc.cc, utils.h, qpsol.cc, |
|
8146 quad.cc, npsol.cc, lsode.cc, fsolve.cc, dassl.cc, file-io.cc, |
|
8147 help.cc, utils.cc, oct-hist.h, oct-hist.cc, symtab.cc, toplev.cc, |
|
8148 pt-fcn.cc, unwind-prot.h, unwind-prot.cc, variables.cc: |
|
8149 Most functions in these files that deal with character strings |
|
8150 have been converted to use the string class insatead of char*. If |
|
8151 you want more detailed information, you'll have to figure it out |
|
8152 for yourself. |
|
8153 |
|
8154 Sat Jan 20 18:19:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8155 |
|
8156 * dynamic-ld.cc [WITH_DL]: Define RTLD_LAZY to be 1 if it is not |
|
8157 already defined. |
|
8158 |
|
8159 Sun Jan 14 07:48:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8160 |
|
8161 * pt-const.cc (print_as_scalar, print_as_structure): |
|
8162 Make these member functions. |
|
8163 (tree_constant::print_with_name): New function, moved here from |
|
8164 old tree-expr.cc file (where it was called print_constant) and |
|
8165 converted to member function. Change all callers. |
|
8166 |
|
8167 Fri Jan 12 01:54:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8168 |
|
8169 * octave.cc (initialize_globals): Don't do kpathsearch stuff here. |
|
8170 (main): Call initialize_pathsearch() here. |
|
8171 |
|
8172 * pathsearch.cc: New file. |
|
8173 * Makefile.in (SOURCES): Add it to the list |
|
8174 |
|
8175 * oct-hist.h: Rename from octave-hist.h. |
|
8176 * oct-hist.cc: Rename from octave-hist.cc. |
|
8177 * Makefile.in, parse.y, other .cc files: Cope with it. |
|
8178 |
|
8179 * dynamic-ld.cc: Avoid warnings if !WITH_DYNAMIC_LINKING. |
|
8180 |
|
8181 * load-save.cc (save_ascii_data): string::data() returns const char*. |
|
8182 |
|
8183 * utils.h: Don't provide forward declaration for tree_constant. |
|
8184 |
|
8185 * oct-obj.h: Don't include mx-base.h or provide forward |
|
8186 declarations for Matrix and Range types. |
|
8187 |
|
8188 * file-info.h: Don't include oct-obj.h. Do include cstdio. |
|
8189 |
|
8190 * symtab.h: Don't provide forward declaration for ostream. |
|
8191 |
|
8192 * variables.h: Don't provide forward declarations for istream, |
|
8193 ostrstream, tree, builtin_function, or builtin_variable objects. |
|
8194 |
|
8195 * balance.cc, chol.cc, colloc.cc, dassl.cc, det.cc, eig.cc, |
|
8196 expm.cc, fft.cc, fft2.cc, filter.cc, find.cc, fsolve.cc, fsqp.cc, |
|
8197 givens.cc, hess.cc, ifft.cc, ifft2.cc, inv.cc, log.cc, lpsolve.cc, |
|
8198 lsode.cc, lu.cc, minmax.cc, npsol.cc, pinv.cc, qpsol.cc, qr.cc, |
|
8199 quad.cc, qzval.cc, rand.cc, schur.cc, sort.cc, svd.cc, syl.cc: |
|
8200 Clean up #include statements. |
|
8201 |
|
8202 * pt-const.h: Don't include oct-obj.h or tree-base.h. |
|
8203 Provide forward declaration of Octave_object here. |
|
8204 * pt-const.cc: Include oct-obj.h here. |
|
8205 |
|
8206 * pt-mat.h, pt-fcn.h, pt-const.h, pt-misc.h, pt-plot.h, |
|
8207 pt-exp-base.h, pt-cmd.h, pt-fvc-base.h, pt-mvr-base.h, pt-exp.h, |
|
8208 pt-mvr.h, pt-fvc.h: New files, split from tree-expr.h and/or |
|
8209 renamed from other tree-*.h files (pt == parse tree). |
|
8210 * pt-base.cc, pt-const.cc, pt-exp.cc, pt-fvc-base.cc, pt-mat.cc, |
|
8211 pt-mvr-base.cc, pt-plot.cc, pt-cmd.cc, pt-exp-base.cc, pt-fcn.cc, |
|
8212 pt-fvc.cc, pt-misc.cc, pt-mvr.cc: Likewse, split from tree-expr.cc |
|
8213 and/or other tree-*.cc files. |
|
8214 * Makefile.in: Include them in the appropriate lists. |
|
8215 * All: Fix #include statements to match. |
|
8216 |
|
8217 * Array-tc.cc: Don't instantiate ArrayRep objects. |
|
8218 |
|
8219 Thu Jan 11 02:35:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8220 |
|
8221 * tree-const.cc (tree_constant::eval (int, int, const Octave_object&)): |
|
8222 Define here instead of in tree-const.h. |
|
8223 |
|
8224 Wed Jan 10 04:34:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8225 |
|
8226 * tree-const.h (tree_constant::tree_constant (const string&): |
|
8227 * tree-const.cc (TC_REP::tree_constant_rep (const string&)): |
|
8228 New constructor. |
|
8229 |
|
8230 Tue Jan 9 04:10:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8231 |
|
8232 * rand.cc (do_rand): Use string_value() result directly instead of |
|
8233 c_str() conversion. |
|
8234 * balance.cc (Fbalance): Likewise. |
|
8235 |
|
8236 * tree-const.cc (TC_REP::string_value()): |
|
8237 Handle new definition of charMatrix::row_as_string() |
|
8238 * load-save.cc (save_ascii_data): Ditto. |
|
8239 (save_binary_data): Ditto. |
|
8240 * pr-output.cc (octave_print_internal): Ditto. |
|
8241 |
|
8242 * balance.cc (Fbalance): |
|
8243 Handle new definition of TC_REP::string_value() |
|
8244 * colloc.cc (Fcolloc): Ditto. |
|
8245 * dassl.cc (Fdassl_options): Ditto. |
|
8246 * data.cc (Fstruct_contains): Ditto. |
|
8247 * dirfns.cc (Fmkdir): Ditto. |
|
8248 (Freaddir): Ditto. |
|
8249 (Frmdir): Ditto. |
|
8250 (Frename): Ditto. |
|
8251 * error.cc (handle_message): Ditto. |
|
8252 * file-io.cc (process_printf_format): Ditto. |
|
8253 (fopen_internal): Ditto. |
|
8254 (file_io_get_file): Ditto. |
|
8255 (return_valid_file): Ditto. |
|
8256 (Flstat): Ditto. |
|
8257 (Fstat): Ditto. |
|
8258 (unlink_internal): Ditto. |
|
8259 (mkfifo_internal): Ditto. |
|
8260 (async_system_internal): Ditto. |
|
8261 (sync_system_internal): Ditto. |
|
8262 (execute_internal): Ditto. |
|
8263 (popen_internal): Ditto. |
|
8264 (fwrite_internal): Ditto. |
|
8265 (fread_internal): Ditto. |
|
8266 (do_printf): Ditto. |
|
8267 (do_scanf): Ditto. |
|
8268 * input.cc (get_user_input): Ditto. |
|
8269 * lsode.cc (Flsode_options): Ditto. |
|
8270 * npsol.cc (Fnpsol_options):Ditto. |
|
8271 * qpsol.cc (Fqpsol_options):Ditto. |
|
8272 * quad.cc (Fquad_options): Ditto. |
|
8273 * rand.cc (do_rand): Ditto. |
|
8274 * schur.cc (Fschur): Ditto. |
|
8275 * sysdep.cc (Fputenv): Ditto. |
|
8276 (Fgetenv): Ditto. |
|
8277 * timefns.cc (extract_tm): Ditto. |
|
8278 (Fstrftime): Ditto. |
|
8279 * toplev.cc (Fsource): Ditto. |
|
8280 (eval_string): Ditto. |
|
8281 (Fsystem): Ditto. |
|
8282 * tree-plot.cc (subplot::handle_plot_data): Ditto. |
|
8283 * variables.cc (is_valid_function): Ditto. |
|
8284 (Fis_global): Ditto. |
|
8285 (Fexist): Ditto. |
|
8286 (builtin_string_variable): Ditto. |
|
8287 * utils.cc (make_argv): Ditto. |
|
8288 (Fundo_string_escapes): Ditto. |
|
8289 |
|
8290 Mon Jan 8 01:54:50 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8291 |
|
8292 * Makefile.in (install-bin): Use $(LN_S), not just ln. |
|
8293 |
|
8294 * variables.cc (octave_fcn_file_dir): New function. |
|
8295 * tree-expr.cc (mark_as_system_fcn_file): Use it instead of |
|
8296 octave_lib_dir. |
|
8297 |
|
8298 * Makefile.in (clean): If $(SHARED_LIBS), also remove shared libs. |
|
8299 |
|
8300 * pr-output.cc (set_format (const ComplexMatrix&, int&, int&)): |
|
8301 Unconditionally call all_elements_are_int_or_inf_or_nan(). |
|
8302 (set_format (const Matrix&, int&, int&)): Likewise. |
|
8303 |
|
8304 Sun Jan 7 19:12:39 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8305 |
|
8306 * utils.cc (oct_putenv): New function. |
|
8307 * sysdep.cc (Fputenv): Use oct_putenv. |
|
8308 * octave.cc (initialize_globals): Likewise. |
|
8309 |
|
8310 Sat Jan 6 23:22:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8311 |
|
8312 * sysdep.cc (Fputenv): New function. |
|
8313 |
|
8314 * input.cc (initialize_readline): Call rl_initialize() here. |
|
8315 |
|
8316 * octave.cc: Conditionally define atexit to be on_exit here. |
|
8317 * toplev.cc: Not here. |
|
8318 |
|
8319 Fri Jan 5 14:01:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8320 |
|
8321 * toplev.cc: Don't include <pwd.h> here. |
|
8322 |
|
8323 * octave-hist.cc, tree-plot.cc, utils.cc: Do include "sysdep.h". |
|
8324 |
|
8325 * dirfns.cc, file-io.cc, help.cc, load-save.cc, octave.cc, |
|
8326 octave-hist.cc, tree-plot.cc, utils.cc: |
|
8327 Don't include <readline/tilde.h>. |
|
8328 * sysdep.h: Do include it here. |
|
8329 |
|
8330 * tree-const.cc (TC_REP::assign (tree_constant&, Octave_object&)): |
|
8331 If we have a matrix or range, call maybe_mutate before returning. |
|
8332 |
|
8333 Sun Dec 31 15:56:18 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8334 |
|
8335 * npsol.cc (Fnpsol): Improve doc string. |
|
8336 * qpsol.cc (Fqpsol): Likewise. |
|
8337 |
|
8338 Fri Dec 29 21:46:58 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8339 |
|
8340 * defun-dld.h: Make work again for OCTAVE_LITE and |
|
8341 WITH_DYNAMIC_LINKING. |
|
8342 |
|
8343 * Makefile.in: Handle shared libraries. |
|
8344 |
|
8345 Wed Dec 27 17:47:51 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8346 |
|
8347 * mk-oct-links: New file. |
|
8348 * Makefile.in (install-oct): Use it. |
|
8349 * f-*.cc: Rename to *.cc. |
|
8350 |
|
8351 * Makefile.in (install-bin, install-lib, install-oct): New targets. |
|
8352 (install): Use them. |
|
8353 |
|
8354 Tue Dec 26 21:38:22 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8355 |
|
8356 * toplev.cc (reading_startup_message_printed): Move initialization |
|
8357 here and make extern. |
|
8358 |
|
8359 * dirfns.cc, dynamic-ld.cc, help.cc, input.cc, octave-hist.cc, |
|
8360 octave.cc, sighandlers.cc, sysdep.cc, tree-expr.cc, tree-misc.cc, |
|
8361 utils.cc, variables.cc, parse.y, lex.l: Include toplev.h instead |
|
8362 of octave.h. |
|
8363 * toplev.h: rename from octave.h. |
|
8364 |
|
8365 * octave.cc (main): Delete unused variable saved_sigint_handler. |
|
8366 |
|
8367 Sun Dec 24 00:26:54 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8368 |
|
8369 * dynamic-ld.cc: Massive re-write to handle dlopen/dlsym and |
|
8370 shl_load/shl_findsym methods of dynamic linking. |
|
8371 |
|
8372 * utils.cc (get_fcn_file_names): Check for .oct files if |
|
8373 WITH_DYNAMIC_LINKING, not WITH_DLD. |
|
8374 |
|
8375 * Makefile.in (LIB, TERMLIBS): Substitute values. |
|
8376 (octave): Add $(LIBS) to link command and use $(TERMLIBS) instead |
|
8377 of -ltermcap. |
|
8378 |
|
8379 Sat Dec 23 21:56:12 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8380 |
|
8381 * dynamic-ld.h, dynamic-ld.cc: Remove old unused code. |
|
8382 |
|
8383 * variables.cc (load_fcn_from_file): |
|
8384 Always call load_octave_oct_file. |
|
8385 |
|
8386 Wed Dec 20 00:56:57 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8387 |
|
8388 * pr-output.cc (set_real_format, set_real_matrix_format, |
|
8389 set_complex_format, set_complex_matrix_format, set_range_format): |
|
8390 New functions. Ensure the count of the digits to the right of the |
|
8391 decimal point is positive. |
|
8392 |
|
8393 * xpow.cc (xpow (const Matrix&, double)): Print warning if |
|
8394 inverting singular matrix (but return value anyway, in the name of |
|
8395 compatibility). |
|
8396 xpow (const ComplexMatrix&, double)): Likewise. |
|
8397 |
|
8398 * f-inv.cc (Finv): If matrix is singular, return result anyway, in |
|
8399 the name of compatibility. |
|
8400 |
|
8401 * symtab.cc (symbol_record::pop_context): |
|
8402 Don't assert (! context.empty ()). |
|
8403 |
|
8404 * tree-const.cc (TC_REP::char_matrix_value): Don't complain about |
|
8405 type conversion if object is an empty matrix.f |
|
8406 (TC_REP::assign): If rhs is a string, don't convert to numeric |
|
8407 type if rhs is empty or "". |
|
8408 Only widen if rhs is not empty. |
|
8409 Don't return 0x0 char_matrix if it is supposed to be a string. |
|
8410 |
|
8411 * arith-ops.h, mappers.h, pr-output.h, xdiv.h, xpow.h: Include |
|
8412 oct-cmplx.h in place of forward declaration for class Complex. |
|
8413 |
|
8414 * pr-output.cc, mappers.cc, arith-ops.cc, xdiv.cc, xpow.cc, |
|
8415 utils.cc: Include "oct-cmplx.h" instead of <Complex.h>. |
|
8416 |
|
8417 * octave.cc (initialize_error_handlers): Don't call |
|
8418 set_Complex_error_handler(). |
|
8419 (octave_Complex_error_handler): Delete unused function. |
|
8420 Delete declaration for set_Complex_error_handler(). |
|
8421 |
|
8422 * sighandlers.cc (catch_interrupts): New function. |
|
8423 * octave.cc (main): Call catch_interrupts() instead of calling |
|
8424 octave_set_signal_handler() directly. |
|
8425 |
|
8426 Tue Dec 19 03:22:37 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8427 |
|
8428 * variables.cc (looks_like_octave_copyright): Also recognize the |
|
8429 string " This program is free software". |
|
8430 |
|
8431 Thu Dec 14 01:54:06 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8432 |
|
8433 * octave-hist.cc (clean_up_history): Only write history file if |
|
8434 user_pref.saving_history. |
|
8435 |
|
8436 * octave-hist.cc (initialize_history, clean_up_history, |
|
8437 do_history): Perform tilde expansion on history file name. |
|
8438 |
|
8439 * octave.cc (main): Check `defined (HAVE_ON_EXIT)' not just |
|
8440 `(HAVE_ON_EXIT)'. |
|
8441 |
|
8442 * user-prefs.h (user_preferences): New fields, `history_file' and |
|
8443 `history_size'. |
|
8444 * user-prefs.cc (init_user_prefs): Initialize them. |
|
8445 (sv_history_file, history_size): New functions. |
|
8446 * variables.cc (install_builtin_variables): Initialize user-level |
|
8447 variables history_file and history_size. |
|
8448 * octave-hist.cc (default_history_size): Now extern. |
|
8449 (default_history_file): Likewise. |
|
8450 (octave_hist_size, octave_hist_file): Use user preference |
|
8451 variables instead. |
|
8452 * octave.cc (main): Call initialize_history after |
|
8453 execute_startup_files. |
|
8454 |
|
8455 Fri Dec 8 15:53:59 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8456 |
|
8457 * user-prefs.h (user_preferences): New field, `saving_history'. |
|
8458 * user-prefs.cc (init_user_prefs): Initialize it. |
|
8459 (saving_history): New function. |
|
8460 * variables.cc (install_builtin_variables): Initialize user-level |
|
8461 variable saving_history. |
|
8462 * octave.cc (parse_and_execute): Don't reset value of |
|
8463 saving_history here. |
|
8464 (main) Use user_pref.saving_history instead of saving_history. |
|
8465 * variables.cc (parse_fcn_file): Likewise. |
|
8466 * octave-hist.cc (maybe_save_history): Likewise. |
|
8467 Don't save history if input_from_startup_file. |
|
8468 |
|
8469 Mon Nov 27 23:05:52 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8470 |
|
8471 * resource.cc: Include systime.h before <sys/resource.h>. |
|
8472 |
|
8473 Tue Nov 14 14:09:40 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8474 |
|
8475 * error.cc: Include cstring. |
|
8476 |
|
8477 * tree-expr.cc (print_code): Decrement indent level after printing |
|
8478 function body. |
|
8479 |
|
8480 * Makefile.in: Remove references to oct-str.cc, oct-str.h, and |
|
8481 Array-string.cc. |
|
8482 |
|
8483 * tree-const.h: Don't include oct-str.h. |
|
8484 |
|
8485 Mon Nov 6 11:16:49 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8486 |
|
8487 * parse.y (make_plot_command, finish_colon_expression, |
|
8488 make_unwind_protect, make_try_command, make_for_command, |
|
8489 make_break_command, make_continue_command, make_return_command, |
|
8490 start_if_command, finish_if_command, make_elseif_clause, |
|
8491 make_simple_assignment, make_multi_val_ret, start_function_def, |
|
8492 frob_function_def, finish_function_def, start_matrix, |
|
8493 finish_matrix): New functions. Use them in the grammar to clean |
|
8494 things up a bit. Possibly convert matrix lists, colon |
|
8495 expressions, binary expressions, and unary expressions to constant |
|
8496 values. |
|
8497 (tree_matrix_type): Delete. |
|
8498 (simple_expr1): Handle all expression stuff here, including |
|
8499 assignments. |
|
8500 (simple_expr): Just check to see that simple_expr1 produced |
|
8501 something useful. |
|
8502 |
|
8503 * tree-plot.cc, tree-plot.h: Move most simple constructors to the |
|
8504 header file. |
|
8505 |
|
8506 * tree-expr.h (tree_expression::is_constant): Move virtual |
|
8507 function definition here. |
|
8508 (tree_fvc::is_constant): From here. |
|
8509 (tree_expression::is_matrix_constant): New virtual function. |
|
8510 (tree_expression::is_range_constant): New virtual function. |
|
8511 * tree-expr.cc (tree_matrix::is_matrix_constant): New function. |
|
8512 * tree-expr.cc (tree_colon_expression::is_range_constant): New |
|
8513 function. |
|
8514 |
|
8515 Fri Nov 3 03:42:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8516 |
|
8517 * utils.cc, utils.h (jump_to_top_level): Declare as extern "C". |
|
8518 |
|
8519 * tree-const.h (tree_constant::eval ()): Only mutate if printing. |
|
8520 |
|
8521 * tree-const.cc (TC_REP::tree_constant_rep (const Complex&), |
|
8522 TC_REP::tree_constant_rep (const ComplexMatrix&), |
|
8523 TC_REP::tree_constant_rep (const ComplexDiagMatrix&), |
|
8524 TC_REP::tree_constant_rep (const ComplexRowVector&), |
|
8525 TC_REP::tree_constant_rep (const ComplexColumnVector&)): |
|
8526 Also check to see if we can convert to scalar_constant, not just |
|
8527 complex_scalar_constant. |
|
8528 |
|
8529 * user-prefs.h (user_preferences): New field, `exec_path'. |
|
8530 * user-prefs.cc (init_user_prefs): Initialize it. |
|
8531 (sv_exec_path): New function. |
|
8532 * variables.cc (install_builtin_variables): Add DEFUN for EXEC_PATH. |
|
8533 (default_exec_path): New function. |
|
8534 * octave.cc (exec_path): New global variable. |
|
8535 Don't set and putenv() exec path here. |
|
8536 (long_opts): Add --exec-path option. |
|
8537 (main): Handle it. |
|
8538 (initialize_globals): Set default value here. |
|
8539 |
|
8540 * user-prefs.h (user_preferences): New field, `info_prog'. |
|
8541 * user-prefs.cc (init_user_prefs): Initialize it. |
|
8542 (sv_info_prog): New function. |
|
8543 * variables.cc (install_builtin_variables): Add DEFUN for INFO_PROGRAM. |
|
8544 (default_info_prog): New function. |
|
8545 * octave.cc (info_prog): New global variable. |
|
8546 (initialize_globals): Set default value here. |
|
8547 (long_opts): Add --info-prog option. |
|
8548 (main): Handle it. |
|
8549 * help.cc (try_info): Use user_pref.info_prog here. |
|
8550 |
|
8551 * octave.cc (initialize_globals): Put arch_dir and bin_dir ahead |
|
8552 of shell_path when resetting PATH. |
|
8553 |
|
8554 Thu Nov 2 04:30:13 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8555 |
|
8556 * f-rand.cc (Frandn): New function. |
|
8557 (do_initialization): New function. |
|
8558 (do_rand): New function for doing the real work. |
|
8559 (Frand): Use it. |
|
8560 |
|
8561 * octave.cc (parse_and_execute): New arg, warn_for. If given, |
|
8562 print message if file cannot be opened. |
|
8563 Set curr_fcn_file_full_name here. |
|
8564 (Fsource): Pass extra arg to parse_and_execute to get warning message. |
|
8565 |
|
8566 * tree-const.h: Handle line and column info for double, Complex, |
|
8567 and char* constants. |
|
8568 |
|
8569 * parse.y (maybe_convert_to_ans_assign): Pass along line and |
|
8570 column info from expression. |
|
8571 |
|
8572 * parse.y (make_constant): New function. |
|
8573 (simple_expr1, word_list): Use it. |
|
8574 |
|
8575 * input.cc, input.h (curr_fcn_file_full_name): New global. |
|
8576 * variables.cc (load_fcn_from_file): Set it here. |
|
8577 * parse.y (func_def2, yyerror, maybe_warn_missing_semi): Use it. |
|
8578 (func_def2): If !reading_fcn_file, don't call strcmp if |
|
8579 curr_fcn_file_name is 0. |
|
8580 |
|
8581 * octave.cc (Fsource): New function. |
|
8582 (parse_and_execute): Declare file name const char *. |
|
8583 * input.cc (get_input_from_file): Likewise. |
|
8584 |
|
8585 Wed Nov 1 13:54:34 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8586 |
|
8587 * f-filter.cc: New file. |
|
8588 * Makefile.in (DLD_SRC): Add it to the list. |
|
8589 |
|
8590 * sysdep.h (gethostname): Change declaration to match definition |
|
8591 in sysdep.cc. |
|
8592 |
|
8593 * resource.cc: Include sysdep.h here, for octave_NaN. |
|
8594 |
|
8595 Tue Oct 31 02:12:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8596 |
|
8597 * tree-const.cc (TC_REP::assign): After converting rhs to a |
|
8598 numeric type, use the converted value, not the original. |
|
8599 |
|
8600 * dirfns.cc (Fpwd): If nargout == 0, print the directory name |
|
8601 instead of returning it. |
|
8602 |
|
8603 * pager.cc (maybe_page_output): Call maybe_write_to_diary_file here. |
|
8604 (flush_output_to_pager): Not here. |
|
8605 |
|
8606 Mon Oct 30 23:39:43 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8607 |
|
8608 * variables.cc (install_builtin_commands): Add DEFVAR for |
|
8609 echo_executing_commands. |
|
8610 |
|
8611 * octave-hist.cc (do_edit_history): Handle new echo stuff. |
|
8612 * variables.cc (parse_fcn_file): Likewise. |
|
8613 * octave.cc (parse_and_execute): Likewise. |
|
8614 (main): Likewise. |
|
8615 * input.cc (do_input_echo): |
|
8616 (Fecho): New function. |
|
8617 |
|
8618 * tree-expr.cc (tree_function::print_code_function_header, |
|
8619 tree_function::print_code_function_trailer): New functions. |
|
8620 (tree_function::print_code): Use them. |
|
8621 (tree_function::eval): Likewise, if echoing commands. |
|
8622 * tree-misc.cc (tree_statement::maybe_echo_code): New function. |
|
8623 |
|
8624 * user-prefs.h (user_preferences): New field, echo_executing_commands. |
|
8625 (echo_state): New enum, for various types of echoing we do. |
|
8626 * user-prefs.cc (echo_executing_commands): New function. |
|
8627 |
|
8628 * tree-base.cc (print_code_indent): Print PS4 as line prefix. |
|
8629 * help.cc (Ftype): Add unwind_protect for ps4 and set it to "" |
|
8630 before printing code. |
|
8631 |
|
8632 * tree-misc.h (tree_statement_list): New field, function_body. |
|
8633 (tree_statement_list::mark_as_function_body): New function. |
|
8634 * parse.y (func_def3): Mark function bodies. |
|
8635 |
|
8636 * pr-output.cc (octave_print_internal): Undo string escapes when |
|
8637 printing charMatrix as strings. |
|
8638 |
|
8639 Sat Oct 28 17:38:29 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8640 |
|
8641 * utils.h (undo_string_escapes): Add missing const in declaration. |
|
8642 |
|
8643 Fri Oct 27 03:49:44 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8644 |
|
8645 * file-io.cc (next_available_file_number): New stack for keeping |
|
8646 track of next available file number. |
|
8647 (get_next_avail_file_num): New function. |
|
8648 (fopen_file_for_user, fopen_internal, popen_internal, |
|
8649 execute_internal): Use it. |
|
8650 |
|
8651 Mon Oct 23 07:00:09 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8652 |
|
8653 * tree-const.cc (TC_REP::convert_to_matrix_type, |
|
8654 tree_constant::convert_to_matrix_type): New arg, make_complex. |
|
8655 (TC_REP::set_index): New arg, rhs_is_complex. Pass it to |
|
8656 convert_to_matrix_type. |
|
8657 (TC_REP::assign): Pass rhs.is_complex_type() to set_index. |
|
8658 |
|
8659 Thu Oct 19 00:38:38 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8660 |
|
8661 * xpow.cc: Include <climits>. |
|
8662 |
|
8663 * sysdep.cc (Fpause): Do pause even if not interactive. |
|
8664 |
|
8665 * tree-const.cc (TC_REP::assign): Don't make RHS numeric if both |
|
8666 RHS and LHS are strings. |
|
8667 |
|
8668 Wed Oct 18 22:19:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8669 |
|
8670 * f-expm.cc (Fexpm): Avoid taking log of negative number. Also, |
|
8671 don't unnecessarily divide the input matrix by 1.0. |
|
8672 |
|
8673 * input.cc (decode_prompt_string): Recognize \[ and \] too. |
|
8674 (initialize_readline): Bind M-p to history-search-backward and M-n |
|
8675 to history-search-forward. |
|
8676 |
|
8677 Tue Oct 17 04:31:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8678 |
|
8679 * xpow.cc (xpow): Handle integer powers better for complex^double. |
|
8680 (elem_xpow): Likewise. |
|
8681 |
|
8682 * lex.l ({CCHAR}): If nesting_level.top() is BRACE, return ';', |
|
8683 not '\n'. |
|
8684 |
|
8685 Mon Oct 16 19:03:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8686 |
|
8687 * help.cc (Fwhich): Fix doc string. |
|
8688 |
|
8689 * variables.cc (Fexist): Update doc string. |
|
8690 |
|
8691 Sun Oct 15 22:19:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8692 |
|
8693 * Another massive set of changes to support character matrices |
|
8694 with indexing. The Octave_str_object class is no longer used. |
|
8695 Anything having to do with Octave_str_object in the following |
|
8696 files has been changed to use charMatrix instead: octave.h, |
|
8697 load-save.cc, octave.cc, strfns.cc, data.cc, pr-output.h, |
|
8698 pr-output.cc, tree-const.h, dirfns.cc, tree-const.cc, |
|
8699 tree-expr.cc. |
|
8700 |
|
8701 Sat Oct 14 22:28:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8702 |
|
8703 * f-sort.cc (mx_sort): Don't attempt to sort vectors that have |
|
8704 only one element, or matrices that have only one row. |
|
8705 |
|
8706 Thu Oct 12 02:16:58 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8707 |
|
8708 * mappers.cc (install_mapper_functions): Add gammaln as an alias |
|
8709 for lgamma. |
|
8710 |
|
8711 * tree-const.h, tree-const.cc: Massive overhaul of indexing and |
|
8712 indexed assignment functions. |
|
8713 * tc-inlines.h, tc-rep.h: Remove files. |
|
8714 * Makefile.in: Remove mention of them here too. |
|
8715 |
|
8716 * Makefile.in: Include $(TI_SRC) in DEP_SOURCES_3, not |
|
8717 $(TI_SOURCES). |
|
8718 Include $(DLD_SRC) in DEP_SOURCES_3. |
|
8719 Include $(TI_SRC) in DEF_FILES_5. |
|
8720 |
|
8721 Wed Oct 11 01:26:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8722 |
|
8723 * Makefile.in (INCLUDES): Remove tc-inlines.h and tc-rep.h from |
|
8724 the list. |
|
8725 |
|
8726 Mon Oct 9 08:31:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8727 |
|
8728 * lex.l (next_token_is_bin_op): Do match `.+', `.*', etc. |
|
8729 |
|
8730 Sun Oct 8 18:19:56 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8731 |
|
8732 * idx-vector.h, idx-vector.cc: Delete files. |
|
8733 * Makefile.in (SOURCES, INCLUDES): Remove them from lists. |
|
8734 |
|
8735 Fri Oct 6 00:52:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8736 |
|
8737 * f-svd.cc (Fsvd): If nargout == 0 or nargout == 1, don't ask for |
|
8738 U and V. |
|
8739 |
|
8740 Wed Oct 4 00:04:57 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8741 |
|
8742 * f-npsol.cc (Fnpsol, Fnpsol_options): Avoid unused variable |
|
8743 warnings if NPSOL_MISSING. |
|
8744 * f-qpsol.cc (Fqpsol, Fqpsol_options): Likewise for QPSOL_MISSING. |
|
8745 |
|
8746 * Makefile.in (DISTFILES): Add octave.gperf. |
|
8747 |
|
8748 * lex.l (next_token_is_bin_op): Don't ever return true for `.' |
|
8749 since that causes problems with things like [ .1 .1 ]. |
|
8750 |
|
8751 Tue Oct 3 05:30:24 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8752 |
|
8753 * variables.cc (is_valid_function): Avoid setting error_state if |
|
8754 argument is not a string. |
|
8755 |
|
8756 * parse.y (maybe_warn_missing_semi): New function. |
|
8757 (list1, list): Call it if statement not terminated by semicolon. |
|
8758 * tree-misc.h (tree_statement::line, tree_statement::column): |
|
8759 New functions. |
|
8760 * octave.cc (input_from_command_line_file): New global variable. |
|
8761 (main): Set it. |
|
8762 (parse_and_execute): Unwind-protect it and set it to zero. |
|
8763 (eval_string): Likewise. |
|
8764 * variables.cc (parse_fcn_file): Likewise. |
|
8765 |
|
8766 * user-prefs.cc (warn_missing_semicolon): New function. |
|
8767 * user-prefs.h (user_preferences): New field, warn_missing_semicolon. |
|
8768 * variables.cc (install_builtin_variables): DEFVAR it. |
|
8769 |
|
8770 * tree-expr.cc (tree_expression::is_logically_true): Actually use |
|
8771 argument. |
|
8772 |
|
8773 Mon Oct 2 19:55:48 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8774 |
|
8775 * variables.cc (install_builtin_variables): Reduce the default |
|
8776 value of save_precision to 15. |
|
8777 |
|
8778 * variables.cc (builtin_real_scalar_variable): Return 1 for |
|
8779 success, 0 for failure. |
|
8780 |
|
8781 * user-prefs.cc (struct_levels_to_print, set_save_precision, |
|
8782 set_output_max_field_width, set_output_precision): |
|
8783 Change sense of test for builtin_real_scalar_variable return value. |
|
8784 (check_preference): Rename from check_str_pref. Change all callers. |
|
8785 Accept value of 0 to be the same as "false" and nonzero to be the |
|
8786 same as "true". |
|
8787 Delete val to avoid memory leak. |
|
8788 * variables.cc (install_builtin_variables): Change initial values |
|
8789 from "true" to 1, "false" to 0. |
|
8790 |
|
8791 * variables.cc (install_builtin_variables): Add DEFVAR for |
|
8792 gnuplot_has_multiplot. |
|
8793 |
|
8794 * user-prefs.h (user_preferences): New field, |
|
8795 `gnuplot_has_multiplot'. |
|
8796 * user-prefs.cc (init_user_prefs): Initialize it. |
|
8797 (gnuplot_has_multiplot): New function. |
|
8798 |
|
8799 Sat Sep 30 16:52:57 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8800 |
|
8801 * oct-gperf.h, octave.gperf: Newfiles. |
|
8802 * Makefile.in (DISTFILES): Add octave.gperf. |
|
8803 (INCLUDES): Add oct-gperf.h. |
|
8804 (oct-gperf.h): New rule. |
|
8805 (local-dist, dist): Depend on oct-gperf.h. |
|
8806 * lex.l (is_keyword): Use perfect hash function to lookup |
|
8807 keywords. |
|
8808 |
|
8809 Fri Sep 29 04:36:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8810 |
|
8811 * version.h (OCTAVE_NAME_AND_VERSION): Add TARGET_HOST_TYPE to this. |
|
8812 |
|
8813 Thu Sep 28 00:03:51 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8814 |
|
8815 * tree-expr.cc (tree_expression::is_logically_true): New function. |
|
8816 * tree-cmd.cc (tree_while_command::eval): Use it instead of |
|
8817 handling the test directly here. |
|
8818 * tree-misc.cc (tree_if_clause::eval): Likewise |
|
8819 |
|
8820 * tree-const.cc (TC_REP::force_numeric): Don't try to print value |
|
8821 of str_obj with %s. |
|
8822 |
|
8823 * error.cc (buffer_error_messages): Rename from |
|
8824 suppress_octave_error_messages. |
|
8825 (error_message_buffer): New global variable. |
|
8826 (verror): Handle buffering of messages. |
|
8827 (handle_message): New function. |
|
8828 (Ferror, Fwarning, Fusage): Use it instead of duplicating code. |
|
8829 |
|
8830 * octave.cc (Feval): Buffer error messages instead of supressing them. |
|
8831 |
|
8832 * lex.l (is_keyword): Recognize `try', `catch', and `end_try_catch'. |
|
8833 * parse.y (TRY, CATCH): New tokens. |
|
8834 (command): Recognize try-catch block. |
|
8835 (end_error): Add cases for unwind_protect_end and try_catch_end. |
|
8836 * token.h (end_tok_type): New field, try_catch_end. |
|
8837 * tree-cmd.h, tree-cmd.cc (tree_try_catch): New class. |
|
8838 * variables.cc (bind_global_error_variable): New Function. |
|
8839 (clear_global_error_variable): Likewise. |
|
8840 (install_builtin_variables): Add DEFCONST for __error_text__. |
|
8841 * help.cc (keywords): Add `try', `catch', and `end_try_catch'. |
|
8842 |
|
8843 * tree-cmd.cc (tree_unwind_protect::eval): Undo previous change. |
|
8844 |
|
8845 * dirfns.cc (Freaddir, Fmkdir, Frmdir): |
|
8846 Do tilde expansion on the argument. |
|
8847 |
|
8848 Tue Sep 26 00:10:29 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8849 |
|
8850 * f-dassl.cc, f-fsolve.cc, f-lsode.cc, f-npsol.cc, f-quad.cc: |
|
8851 Don't try to figure out if the user-supplied functions take the |
|
8852 correct number of arguments. Simply let the call fail. |
|
8853 * variables.cc (takes_correct_nargs): Delete unused function. |
|
8854 * tree-expr.cc (tree_builtin::eval): Don't complain for too many |
|
8855 arguments to mapper functions. |
|
8856 * tree-expr.h, tree-expr.cc (tree_builtin, tree_function, tree_fvc): |
|
8857 Delete unused function max_expected_args. |
|
8858 |
|
8859 * defun.h (DEFUN): Delete unnecessary args nargin_min and nargout_max. |
|
8860 New arg unused_arg_flags. |
|
8861 (DEFUN_TEXT): Likewise. |
|
8862 * defun-dld.h (DEFUN_DLD_BUILTIN): Likewise. |
|
8863 * defun-int.h (DEFUN_INTERNAL, DECLARE_FUN, DEFINE_FUN_STRUCT): |
|
8864 Do the real work. |
|
8865 |
|
8866 * data.cc, dirfns.cc, dynamic-ld.cc, error.cc, f-balance.cc, |
|
8867 f-chol.cc, f-colloc.cc, f-dassl.cc, f-det.cc, f-eig.cc, f-expm.cc, |
|
8868 f-fft.cc, f-fft2.cc, f-find.cc, f-fsolve.cc, f-fsqp.cc, |
|
8869 f-givens.cc, f-hess.cc, f-ifft.cc, f-ifft2.cc, f-inv.cc, f-log.cc, |
|
8870 f-lpsolve.cc, f-lsode.cc, f-lu.cc, f-minmax.cc, f-npsol.cc, |
|
8871 f-pinv.cc, f-qpsol.cc, f-qr.cc, f-quad.cc, f-qzval.cc, f-rand.cc, |
|
8872 f-schur.cc, f-sort.cc, f-svd.cc, f-syl.cc, file-io.cc, help.cc, |
|
8873 input.cc, lex.l, load-save.cc, mappers.cc, octave-hist.cc, |
|
8874 octave.cc, octave.h, pager.cc, pr-output.cc, resource.cc, |
|
8875 sighandlers.cc, strfns.cc, sysdep.cc, timefns.cc, token.cc, |
|
8876 tree-const.cc, tree-expr.cc, tree-expr.h, tree-plot.cc, |
|
8877 unwind-prot.cc, unwind-prot.h, utils.cc, variables.cc, |
|
8878 variables.h, version.h, xdiv.cc: |
|
8879 Avoid unused variable warnings. |
|
8880 |
|
8881 * tree-expr.h (tree_oct_obj::print_value (ostream&)): |
|
8882 Delete name of unused arg. |
|
8883 (tree_fvc::save (ostream&, int, int): Likewise. |
|
8884 |
|
8885 * tree-const.h (tree_constant::tree_constant (magic_colon)): |
|
8886 Delete name of unused arg. |
|
8887 (tree_constant::tree_constant (all_va_args)): Likewise |
|
8888 (ColumnVector vector_value (int, int)): Likewise. |
|
8889 (ComplexColumnVector vector_value (int, int)): Likewise. |
|
8890 (Octave_object::eval (int, int, const Octave_object&): Likewise. |
|
8891 |
|
8892 * octave.cc (execute_startup_files): Look for octaverc first in |
|
8893 site/m, then in $(version)/m. |
|
8894 * variables.cc (get_local_site_defaults): New function. |
|
8895 * defaults.h.in (OCTAVE_LOCALFCNFILEDIR, OCTAVE_LOCALSTARTUPFILEDIR): |
|
8896 New macros. |
|
8897 * Makefile.in (defaults.h): Also substitute ${localfcndir}. |
|
8898 |
|
8899 Mon Sep 25 17:01:03 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8900 |
|
8901 * variables.cc (install_builtin_variables): Add DEFCONST for "e". |
|
8902 |
|
8903 Fri Sep 22 02:18:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8904 |
|
8905 * dirfns.cc (Fls): Delete ls_command after using it, not before. |
|
8906 |
|
8907 * input.h, input.cc (gnu_readline): Don't declare gnu_readline |
|
8908 `extern "C"'. |
|
8909 |
|
8910 * sysdep.h: Only declare gethostname if it is missing, then don't |
|
8911 declare it `extern "C"'. |
|
8912 |
|
8913 * dirfns.cc: Don't declare strerror(). |
|
8914 |
|
8915 * input.cc (command_generator): Use malloc, not xmalloc. Don't |
|
8916 declare xmalloc. |
|
8917 (gnu_readline): Don't declare this `extern "C"'. |
|
8918 |
|
8919 * octave-hist.cc: Don't declare history_get(). It is now in |
|
8920 readline/history.h. |
|
8921 |
|
8922 * input.cc: Don't declare history_get(). It is now in |
|
8923 readline/readline.h. |
|
8924 |
|
8925 * resource.cc: Don't surround include of sys/resource.h in |
|
8926 `extern "C" { }'. |
|
8927 |
|
8928 * fnmatch.h [__cplusplus]: Surround contents in `extern "C" { }'. |
|
8929 * load-save.cc, symtab.cc, variables.cc: Don't surround |
|
8930 fnmatch.h include in `extern "C" { }'. |
|
8931 |
|
8932 * help.cc: Don't #undef __FUNCTION_DEF before including |
|
8933 readline/tilde.h. |
|
8934 |
|
8935 * dirfuns.cc, file-io.cc, help.cc, load-save.cc, octave-hist.cc, |
|
8936 sysdep.cc, tree-plot.cc, utils.cc, variables.cc: |
|
8937 Don't surround readline includes in `extern "C" { }'. |
|
8938 |
|
8939 * sysdep.cc: Move all include statements to top of file. |
|
8940 |
|
8941 Tue Sep 19 01:58:21 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8942 |
|
8943 * octave.cc (Fsystem): Use iprocstream *, and unwind_protect it. |
|
8944 * pager.cc (flush_output_to_pager): Likewise. |
|
8945 * dirfns.cc (Fls): Likewise. |
|
8946 * tree-plot.cc (plot_stream): Now a pointer. |
|
8947 (open_plot_stream): Deal with it. |
|
8948 (send_to_plot_stream, cleanup_tmp_files, do_external_plotter_cd): |
|
8949 Likewise. |
|
8950 |
|
8951 * procstream.cc (cleanup_iprocstream, cleanup_oprocstream): |
|
8952 New functions. |
|
8953 |
|
8954 * procstream.h, procstream.cc (class iprocstream, class oprocstream): |
|
8955 Keep track of pbuf. Initialize it to 0 in default constructors, |
|
8956 delete it in destructor. Don't call close in destructor. |
|
8957 |
|
8958 * sighandlers.cc (octave_set_signal_handler): New function. |
|
8959 Use this name instead of signal everywhere. |
|
8960 * help.cc (try_info): Likewise. |
|
8961 * pager.cc (flush_output_to_pager): Likewise. |
|
8962 * octave.cc (main): Likewise. |
|
8963 * octave-hist.cc (do_edit_history): Likewise. |
|
8964 |
|
8965 * input.cc (initialize_readline): Set rl_paren_string_delimiters |
|
8966 to avoid treating single quotes as string delimiters when doing |
|
8967 paren matching. |
|
8968 |
|
8969 * Makefile.in (SOURCES): Don't list Map.cc or SLStack.cc here. |
|
8970 |
|
8971 * tree-const.cc: Do include utils.h. |
|
8972 |
|
8973 * sysdep.cc: Don't surround terminal includes in extern "C". |
|
8974 Include them before readline.h. |
|
8975 |
|
8976 * Map.h: Don't include utils.h. |
|
8977 (CHNode::CHNode (const char*, const C&, CHNode *t): |
|
8978 Do strsave() inline. |
|
8979 |
|
8980 * input.cc (generate_possible_completions): Generate name list |
|
8981 even when text == 0. |
|
8982 (operate_and_get_next): Don't declare history_stifled, call |
|
8983 history_is_stifled () instead. |
|
8984 Don't declare history_length, or max_input_history either. |
|
8985 Check (where >= history_length - 1) too, as in recent versions of |
|
8986 bash. |
|
8987 |
|
8988 * user-prefs.h (user_prefs): New field, `completion_append_char'. |
|
8989 * user-prefs.cc (init_user_prefs): Initialize it. |
|
8990 (sv_completion_append_char): New function. |
|
8991 * variables.cc (install_builtin_variables): Install |
|
8992 completion_append_char. |
|
8993 * input.cc (command_generator): Use it. |
|
8994 |
|
8995 * SLList-expr.cc, SLList-misc.cc, SLList-plot.cc, SLList-tc.cc, |
|
8996 DLList-fi.cc: Include config.h. |
|
8997 * DLList-fi.cc: Include file-info.h, not file-io.h. |
|
8998 |
|
8999 Mon Sep 18 11:01:24 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9000 |
|
9001 * octave.h (clean_up_and_exit): Tag with NORETURN instead of using |
|
9002 typedef trick. |
|
9003 * error.h (panic): Likewise. |
|
9004 * utils.h (jump_to_top_level): Likewise. |
|
9005 |
|
9006 * file-io.h: Protect from multiple includes with octave_file_io, |
|
9007 not octave_files. |
|
9008 |
|
9009 * file-info.h (class file_info): Convert to using std C++ string |
|
9010 class from char *. |
|
9011 * file-info.cc: Likewise. Don't include utils.h. |
|
9012 * file-io.cc (return_valid_file, fopen_file_for_user, |
|
9013 fflush_internal, do_scanf): Use operator ==, not strcmp. |
|
9014 (close_files): Call error with file.name ().data (), |
|
9015 not file.name (). |
|
9016 (freport_internal): Call form with file.mode ().data () and |
|
9017 file.name ().data (). |
|
9018 |
|
9019 * file-io.cc, file-io.h: Extract file_info class. |
|
9020 * file-info.cc, file-info.h: New files for file_info class. |
|
9021 |
|
9022 * user-prefs.h (user_prefs): New field, `beep_on_error'. |
|
9023 * user-prefs.cc (init_user_prefs): Initialize it. |
|
9024 (beep_on_error): New function. |
|
9025 * variables.cc (install_builtin_variables): Install beep_on_error. |
|
9026 * octave.cc (maximum_braindamage): Set beep_on_error to "true". |
|
9027 * error.cc (verror): Conditionally beep. |
|
9028 (error): Don't reset error_state until after verror is called. |
|
9029 |
|
9030 Sun Sep 17 16:41:25 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9031 |
|
9032 * load-save.cc (read_mat_binary_data, read_ascii_data, |
|
9033 save_ascii_data, read_binary_data, save_binary_data): |
|
9034 Handle string arrays. |
|
9035 |
|
9036 Fri Sep 15 00:24:19 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9037 |
|
9038 * user-prefs.cc (struct_levels_to_print, |
|
9039 set_output_max_field_width, set_output_precision, |
|
9040 set_save_precision): Eliminate unecessary kludge variable. |
|
9041 |
|
9042 * variables.cc (gobble_leading_white_space): New arg, |
|
9043 in_parts. Change all callers. |
|
9044 |
|
9045 * lex.l (HELP_FCN): Delete start state. The `help' command is now |
|
9046 handled the same as any other text-style function. |
|
9047 |
|
9048 * gripes.cc (gripe_invalid_value_specified): New function |
|
9049 * user-prefs.cc: Use it. |
|
9050 |
|
9051 * sysdep.cc (octave_words_big_endian): New global variable. |
|
9052 (ten_little_endians): New function. |
|
9053 (sysdep_init): Call it. |
|
9054 * load-save.cc (words_big_endian): Use this at run-time instead of |
|
9055 depending on WORDS_BIGENDIAN at compile-time. |
|
9056 |
|
9057 * symtab.h (SYMTAB_VARIABLES): New macro. |
|
9058 * variables.cc (Fclear): Use it instead of just |
|
9059 symbol_def::USER_VARIABLE when looking for variables. |
|
9060 |
|
9061 * octave.cc (main): If there is a file to execute, set |
|
9062 program_invocation_name and program_name to the name of the file |
|
9063 and argv to the remaining args. |
|
9064 (intern_argv): Only define argv if there are some remaining |
|
9065 arguments. |
|
9066 |
|
9067 * defun.h (DEFVAR_INT): New macro. |
|
9068 (DEFVAR): Define in terms of DEFVAR_INT. Delete args protect and |
|
9069 eternal. |
|
9070 (DEFCONST): New macro. |
|
9071 * variables.cc (install_builtin_variables): Use DEFCONST where |
|
9072 appropriate, change uses of DEFVAR to match new definition. |
|
9073 |
|
9074 * variables.cc (bind_builtin_variable): New variant that accepts |
|
9075 const tree_constant& value. |
|
9076 (install_builtin_variables): Properly alphabetize DEFVAR for this. |
|
9077 |
|
9078 * octave.cc (short_opts): Prefix with `+' to prevent argv |
|
9079 permutation. |
|
9080 (main): Don't use readline if forced_interactive. |
|
9081 (traditional): New file-scope variable. |
|
9082 (long_opts, usage_string, verbose_usage): Add `--traditional'. |
|
9083 (maximum_braindamage): New function. |
|
9084 (main): Call it if --traditional. |
|
9085 |
|
9086 * input.cc (do_input_echo): Print prompt correctly when |
|
9087 forced_interactive is either true or false. |
|
9088 |
|
9089 Thu Sep 14 00:54:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9090 |
|
9091 * data.cc (Fstruct_elements): New function. |
|
9092 |
|
9093 * file-io.cc (Fumask): New function. |
|
9094 |
|
9095 * dirfns.cc (Fmkdir, Frmdir, Frename): New functions. |
|
9096 |
|
9097 * Makefile.in: Add rules and dependencies for building safe-stat.o |
|
9098 and safe-lstat.o. |
|
9099 |
|
9100 * mkdir.c, rename.c, rmdir.c: New files. |
|
9101 * Makefile.in (SOURCES): Include them in the list. |
|
9102 |
|
9103 * safe-xstat.hin, safe-xstat.cin: New files |
|
9104 * Makefile.in (DISTFILES): Include them in the list. |
|
9105 |
|
9106 * sighandlers.cc (octave_new_handler): Try to continue on memory |
|
9107 exhausted errors. |
|
9108 (sigfpe_handler): Improve error message. |
|
9109 |
|
9110 * Makefile.in: Use `ifndef omit_deps', not `ifndef $(omit_deps)'. |
|
9111 |
|
9112 * dirfns.cc (Freaddir): New function. |
|
9113 |
|
9114 * f-sort.cc: Complete rewrite. Now uses stable sort algorithm and |
|
9115 correctly handles complex matrices containing columns of all real |
|
9116 numbers. |
|
9117 |
|
9118 Wed Sep 13 03:16:40 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9119 |
|
9120 * arith-ops.cc: Unconditionally #define DIVIDE_BY_ZERO_ERROR. |
|
9121 |
|
9122 * variables.cc (install_builtin_variables): Unconditionally |
|
9123 install NaN and nan. |
|
9124 |
|
9125 * mappers.cc (xisinf): Don't do bogus things if isinf, isnan, or |
|
9126 finite are missing. |
|
9127 (xfinite): Likewise. |
|
9128 |
|
9129 * sysdep.cc (octave_ieee_init): Don't set octave_NaN and |
|
9130 octave_Inf if values are not available. |
|
9131 |
|
9132 * resource.cc (mk_ru_map): Don't use ru_ or tv_ as prefixes to |
|
9133 Octave names for the structure members. |
|
9134 |
|
9135 Tue Sep 12 02:04:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9136 |
|
9137 * procstream.h, procstream.cc: Rewrite. |
|
9138 |
|
9139 Mon Sep 11 18:42:05 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9140 |
|
9141 * filemode.c: New file, from Emacs. |
|
9142 * Makefile.in (SOURCES): Add it to the list. |
|
9143 |
|
9144 * file-io.cc (Fstat, Flstat, mk_stat_map): New functions. |
|
9145 |
|
9146 * timefns.cc (mk_tm_map): Don't use tm_ as prefix to Octave names |
|
9147 for these structure members. |
|
9148 (extract_tm): Likewise. |
|
9149 (Flocaltime): Fix doc string to match. |
|
9150 |
|
9151 Thu Sep 7 02:04:27 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9152 |
|
9153 * load-save.cc (save_user_variables): New function. |
|
9154 * sighandlers.cc (my_friendly_exit): Call it before exiting. |
|
9155 (sigfpe_handler): New function. |
|
9156 (install_signal_handlers) [__alpha__]: Install it. |
|
9157 |
|
9158 Wed Sep 6 14:35:10 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9159 |
|
9160 * tree-cmd.cc (tree_unwind_protect::eval): Ignore errors and |
|
9161 suppress error messages while executing first block of |
|
9162 unwind_protect commands. |
|
9163 |
|
9164 * parse.y (end_error): Add missing case for unwind_protect_end. |
|
9165 |
|
9166 * tree-expr.cc (tree_builtin::eval): Complain if no arguments |
|
9167 given for mapper functions. |
|
9168 (tree_fvc::lookup_map_element): Print error message for invalid |
|
9169 structure reference. |
|
9170 |
|
9171 Tue Sep 5 02:04:12 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9172 |
|
9173 * file-io.cc, input.cc, load-save.cc, octave.cc, sysdep.cc, |
|
9174 variables.cc, octave-hist.cc, utils.cc, f-schur.cc, f-rand.cc, |
|
9175 f-quad.cc, f-qpsol.cc, f-npsol.cc, f-lsode.cc, f-fsolve.cc, |
|
9176 f-dassl.cc, f-colloc.cc, f-balance.cc, error.cc, data.cc: |
|
9177 Add const qualifiers where appropriate. |
|
9178 |
|
9179 * dirfns.h: Include <ctime>, for time_t. |
|
9180 |
|
9181 * tempname.c, file-io.cc, help.cc, input.cc, octave-hist.cc, |
|
9182 octave.cc, sighandlers.cc, sysdep.cc, tree-expr.cc, tree-misc.cc, |
|
9183 tree-plot.cc, utils.cc, variables.cc, sysdir.h: |
|
9184 Move #include <sys/type.h> inside #ifdef HAVE_UNISTD_H. |
|
9185 |
|
9186 * syswait.h: New file. |
|
9187 * Makefile.in (INCLUDES): Add it to the list. |
|
9188 * file-io.cc, sighandlers.cc: Use it instead of including |
|
9189 sys/wait.h directly. |
|
9190 |
|
9191 * octave.cc: Include statdefs.h, not sys/stat.h. |
|
9192 |
|
9193 * sysdir.h: New file. |
|
9194 * Makefile.in (INCLUDES): Add it to the list. |
|
9195 * dirfns.cc, utils.cc: Use it instead of including the headers |
|
9196 directly. |
|
9197 |
|
9198 * pathlen.h: New file. |
|
9199 * Makefile.in (INCLUDES): Add it to the list. |
|
9200 * dirfns.cc, input.cc: Use it instead of including sys/param.h |
|
9201 directly. |
|
9202 * utils.cc: Don't include sys/param.h |
|
9203 |
|
9204 Sun Sep 3 18:52:59 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9205 |
|
9206 * tree-const.cc (TC_REP::string_value): Return const char*, not |
|
9207 char *. |
|
9208 |
|
9209 * All .cc, .y, .l, .y files: Include <cctype>, not <ctype.h>, and |
|
9210 so on for all new C++ versions of these standard C headers. |
|
9211 |
|
9212 Thu Aug 31 17:09:38 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9213 |
|
9214 * pathsearch.h: Also hide `string'. |
|
9215 |
|
9216 * oct-str.cc, oct-str.h: New files. |
|
9217 * Makefile.in: Add to the appropriate lists. |
|
9218 * tc-rep.h: Change char* to Octave_string* in anonymous union. |
|
9219 * tree-expr.cc (tree_matrix::eval): Handle multiple element strings. |
|
9220 * strfns.cc (toascii): Likewise. |
|
9221 * tree-const.cc (print_as_string): Likewise. |
|
9222 (TC_REP::force_numeric, TC_REP::rows, TC_REP::columns, |
|
9223 TC_REP::double_value, TC_REP::complex_value, TC_REP::matrix_value, |
|
9224 TC_REP::complex_matrix_value, TC_REP::convert_to_str): Likewise. |
|
9225 (TC_REP::print): Call octave_print_internal for string case. |
|
9226 (all_strings): New function. |
|
9227 Fix constructors to use new data structure. |
|
9228 * pr-output.cc (octave_print_internal): Add version for strings. |
|
9229 * Array-string.cc: New file. |
|
9230 |
|
9231 * octave.cc (octave_argv): New global variable. |
|
9232 (intern_argv): New function. |
|
9233 (main): Fix argument parsing to do the right thing for arguments |
|
9234 to executable scripts. |
|
9235 * variables.cc: Add DEFUNs for argv, program_invocation_name, and |
|
9236 program_name. |
|
9237 |
|
9238 * defun.h (DEFVAR): Fix comment. |
|
9239 |
|
9240 Thu Aug 24 00:02:00 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9241 |
|
9242 * file-io.cc (fgets_internal): Make second arg optional. Add |
|
9243 optional arg `strip_final_newline'. |
|
9244 (Ffgets): Change to match new definition of fgets_internal. |
|
9245 (Ffgetl): Implement using the new fgets_internal. |
|
9246 |
|
9247 * f-rand.cc (Frand): Update code for sizing return value to match |
|
9248 that used by ones, zeros, and eye. |
|
9249 |
|
9250 Wed Aug 23 19:52:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9251 |
|
9252 * tree-const.cc (do_vector_assign): Don't crash for |
|
9253 A(range) = scalar, or A(matrix) = scalar. |
|
9254 |
|
9255 * f-dassl.cc (set_dassl_option): Rename from do_dassl_option. |
|
9256 (show_dassl_option): New function. |
|
9257 (Fdassl_options): Handle single arg. |
|
9258 * f-fsolve.cc (set_fsolve_option): Rename from do_fsolve_option. |
|
9259 (show_fsolve_option): New function. |
|
9260 (Ffsolve_options): Handle single arg. |
|
9261 * f-fsqp.cc (set_fsqp_option): Rename from do_fsqp_option. |
|
9262 (show_fsqp_option): New function. |
|
9263 (Ffsqp_options): Handle single arg. |
|
9264 * f-lpsolve.cc (set_lpsolve_option): Rename from do_lpsolve_option. |
|
9265 (show_lpsolve_option): New function. |
|
9266 (Flpsolve_options): Handle single arg. |
|
9267 * f-lsode.cc (set_lsode_option): Rename from do_lsode_option. |
|
9268 (show_lsode_option): New function. |
|
9269 (Flsode_options): Handle single arg. |
|
9270 * f-npsol.cc (set_npsol_option): Rename from do_npsol_option. |
|
9271 (show_npsol_option): New function. |
|
9272 (Fnpsol_options): Handle single arg. |
|
9273 * f-qpsol.cc (set_qpsol_option): Rename from do_qpsol_option. |
|
9274 (show_qpsol_option): New function. |
|
9275 (Fqpsol_options): Handle single arg. |
|
9276 * f-quad.cc: (set_quad_option): Rename from do_quad_option. |
|
9277 (show_quad_option): New function. |
|
9278 (Fquad_options): Handle single arg. |
|
9279 (Fquad): Doc fix. |
|
9280 |
|
9281 Tue Aug 22 00:38:05 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9282 |
|
9283 * tree-plot.cc (do_external_plotter_cd): New function. |
|
9284 * dirfns.cc (octave_change_to_directory): New function. If cd is |
|
9285 successful, also call do_external_plotter_cd(). |
|
9286 (Fcd): Call octave_change_to_directory(), not change_to_directory(). |
|
9287 |
|
9288 * pr-output.cc (pr_any_float): Change declaration of counter to |
|
9289 size_t to avoid gcc warnings. |
|
9290 |
|
9291 * idx-vector.cc, octave-hist.cc, tree-const.cc, tree-expr.cc, |
|
9292 tree-misc.cc, utils.cc, xpow.cc, Map.cc: |
|
9293 Update for change in for loop variable scope for gcc 2.7.0. |
|
9294 |
|
9295 Mon Aug 21 19:34:53 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9296 |
|
9297 * tree-const.cc (fortran_style_matrix_assignment): Properly handle |
|
9298 case of complex LHS, real RHS. |
|
9299 |
|
9300 * Makefile.in: Only include dependency files if $(omit_deps) is |
|
9301 not set. |
|
9302 |
|
9303 Wed Jul 5 00:03:58 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9304 |
|
9305 * sysdep.cc: Explicitly include string.h. |
|
9306 |
|
9307 Sun Jun 25 00:18:10 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9308 |
|
9309 * load-save.cc (too_large_for_float (const Matrix&)): |
|
9310 Extract elements as doubles, not Complex. |
|
9311 |
|
9312 Sat Jun 24 22:59:15 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9313 |
|
9314 * pr-output.cc (any_element_is_inf_or_nan): Declare extern, not static. |
|
9315 * f-svd.cc (Fsvd): Call here to avoid trying to take SVD of matrix |
|
9316 containing Inf or NaN values. |
|
9317 |
|
9318 * pr-output.cc (bit_format): New file-scope variable. |
|
9319 (set_format, pr_any_float): Handle bit_format. |
|
9320 (octave_print_internal): Handle bit_format like bank_format. |
|
9321 (init_format_state): Initialize bit_format. |
|
9322 (set_format_style): Allow `format bit' and `format native-bit'. |
|
9323 |
|
9324 Thu Jun 8 15:20:26 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9325 |
|
9326 * mappers.cc (arg, imag, signum): If arg is NaN, return NaN. |
|
9327 |
|
9328 Mon May 15 14:47:04 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9329 |
|
9330 * pager.cc (Fdiary): Initialize diary_file here, not in the |
|
9331 file-scope declaration. |
|
9332 |
|
9333 * tree-expr.cc (tree_index_expression::eval): |
|
9334 Handle nargin == 0 the same as other cases. |
|
9335 |
|
9336 Tue May 2 10:02:23 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9337 |
|
9338 * load-save.cc (do_double_format_conversion): Add missing breaks. |
|
9339 (do_float_format_conversion): Likewise. |
|
9340 |
|
9341 Mon May 1 13:50:24 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9342 |
|
9343 * Makefile.in (OCTAVE_LIBS): Add @LIBPLPLOT@ to the list. |
|
9344 |
|
9345 * timefns.cc (Ftime): Handle GETTIMEOFDAY_NO_TZ. |
|
9346 |
|
9347 * Makefile.in (SOURCES): Delete tc-rep.cc, tc-rep-ass.cc, and |
|
9348 tc-rep-idx.cc from the list. |
|
9349 |
|
9350 * tree-const.h: Add #pragma interface. |
|
9351 * tree-const.cc: Add contents of tc-rep.cc, tc-rep-ass.cc, and |
|
9352 tc-idx.cc to this file. Add #pragma implementation. This makes |
|
9353 tree-const.cc large, but makes the final binary smaller. |
|
9354 |
|
9355 * unwind-prot.h unwind-prot.cc token.cc token.h procstream.cc |
|
9356 procstream.h idx-vector.cc idx-vector.h symtab.cc symtab.h |
|
9357 oct-map.cc oct-map.h oct-obj.cc oct-obj.h tree-plot.h tree-plot.cc |
|
9358 tree-misc.cc tree-misc.h tree-expr.cc tree-expr.h tree-cmd.cc |
|
9359 tree-cmd.h tree-base.cc tree-base.h: |
|
9360 Add #pragma interface/implementation. |
|
9361 |
|
9362 * Makefile.in (OCTAVE_LIBS): Delete @LIBINFO@ from list. |
|
9363 * help.cc: Don't include info headers or extern declarations for |
|
9364 functions from info. |
|
9365 (try_info): Call info as a subprocess. Delete second arg. |
|
9366 Handle SIGINT here, not in help_from_info(). |
|
9367 (help_from_info): Complain if info doesn't work. |
|
9368 |
|
9369 * defun-dld.h (DEFUN_DLD_BUILTIN) [OCTAVE_LITE && MAKE_BUILTINS]: |
|
9370 If ! WITH_DLD, simply emit a character string constant. |
|
9371 |
|
9372 Fri Apr 28 15:23:06 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9373 |
|
9374 * lex.l ({IDENT}{S}*): Don't delete tok. That's handled by |
|
9375 strip_trailing_whitespace() now. |
|
9376 (<HELP_FCN>[^ \t\n]*{S}*|<TEXT_FCN>[^ \t\n\;\,]*{S}*): Ditto. |
|
9377 |
|
9378 * pathsearch.h: Include kpathsea/progname.h. |
|
9379 * octave.cc (initialize_globals): Call kpse_set_progname(). |
|
9380 |
|
9381 * token.h: Declare copy constructor and operator = private. |
|
9382 * token.cc: Abort if copy constructor or operator = is used. |
|
9383 |
|
9384 Thu Apr 27 13:54:39 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9385 |
|
9386 * tree-expr.cc (lookup_map_element): Don't list default argument |
|
9387 values here too. |
|
9388 |
|
9389 * pr-output.cc (hex_format): New file-scope variable. |
|
9390 (set_format, pr_any_float): Handle hex_format. |
|
9391 (octave_print_internal): Handle hex_format like bank_format. |
|
9392 (init_format_state): Initialize hex_format. |
|
9393 (set_format_style): Allow `format hex' and `format native-hex'. |
|
9394 |
|
9395 * variables.cc (bind_ans): Create ans_id each time with new and |
|
9396 ask tree_simple_assignment_expression to handle cleaning it up. |
|
9397 This apparently plugs a memory leak. |
|
9398 |
|
9399 * help.cc (Ftype): Don't try to print map constants. Handle |
|
9400 references to structure members. |
|
9401 |
|
9402 Wed Apr 26 12:40:59 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9403 |
|
9404 * input.cc (generate_struct_completions): New function. |
|
9405 (generate_possible_completions): Likewise. |
|
9406 (looks_like_struct): Likewise. |
|
9407 (command_generator): Handle completion of struct variables. |
|
9408 |
|
9409 * tree-expr.h, tree-expr.cc (tree_fvc::lookup_map_element): |
|
9410 Add insert and silent args. |
|
9411 |
|
9412 * oct-map.cc: New file. |
|
9413 * Makefile.in (SOURCES): Add it to the list. |
|
9414 |
|
9415 Mon Apr 24 09:41:02 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9416 |
|
9417 * variables.cc (Fexist): Handle structure references too. |
|
9418 |
|
9419 * tree-const.cc (lookup_map_element (const char*, int, int): |
|
9420 New function. |
|
9421 (lookup_map_element (SLList<char*>&, int, int): New arg, silent. |
|
9422 * tc-rep.cc (lookup_map_element): New arg, silent. If nonzero, |
|
9423 don't call error(). |
|
9424 |
|
9425 * tc-rep.h (is_empty): Define here. |
|
9426 * tree-const.h (is_empty): Hand off to TC_REP::is_empty(). |
|
9427 |
|
9428 * data.cc (Fstruct_contains): Call lookup_map_element on args(0) |
|
9429 instead of extracting the map and calling contains() on it. |
|
9430 |
|
9431 * parse.y (EPLUS, EMINUS): New tokens. |
|
9432 (simple_expr): Handle EPLUS, EMINUS the same as `+' and `-'. |
|
9433 * lex.l (".+", ".-"): New patterns. Match these separately to |
|
9434 disallow using them as unary operators. |
|
9435 |
|
9436 * lex.l (next_token_is_bin_op): Simplify by noting that spacing |
|
9437 only matters for those tokens that can also be unary ops. |
|
9438 |
|
9439 Fri Apr 21 14:34:45 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9440 |
|
9441 * load-save.cc (read_ascii_data): Allow reading of empty |
|
9442 matrices. |
|
9443 |
|
9444 * tc-rep-ass.cc (vector_assignment): Only assert that we are not |
|
9445 doing fortran-style indexing and that nr <= 1 || nc <= 1. |
|
9446 (do_vector_assign): Handle assignment of [] when one dimension is |
|
9447 zero and the other is anything. |
|
9448 |
|
9449 Thu Apr 20 13:56:21 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9450 |
|
9451 * tc-rep-ass.cc (delete_rows, delete_columns): Simply return if |
|
9452 num_to_delete is 0. |
|
9453 |
|
9454 * lex.l (handle_identifier): Don't match plot option keywords |
|
9455 inside parentheses or braces. |
|
9456 |
|
9457 * variables.cc (parse_fcn_file): Also delete tmp_help_txt if |
|
9458 running a script. |
|
9459 |
|
9460 * tree-cmd.h (tree_command): Add destructor. |
|
9461 |
|
9462 * tree-expr.h tree_simple_assignment_expression (lhs_idx_expr): |
|
9463 Hang on to idx_expr, not just its parts so it can be deleted. |
|
9464 (init): Initialize it. |
|
9465 * tree-expr.cc (~tree_simple_assignment_expression): Delete it. |
|
9466 |
|
9467 * tree-expr.h (tree_multi_val_ret, tree_oct_obj, tree_fvc, |
|
9468 tree_identifier, tree_builtin, tree_function): Add destructors. |
|
9469 * tree-expr.cc (tree_function::~tree_function): Delete some stuff. |
|
9470 |
|
9471 * tree-misc.h (tree_va_return_list): Add destructor. |
|
9472 |
|
9473 * octave.cc (__builtin_new, __builtin_delete): Provide our own, |
|
9474 for debugging. |
|
9475 |
|
9476 * utils.cc (strconcat): Don't depend on the return value from |
|
9477 strcat. |
|
9478 (file_in_path): Simplify logic. |
|
9479 |
|
9480 * parse.y (maybe_convert_to_ans_assign): Create ans_id each time |
|
9481 with new and ask tree_simple_assignment_expression to handle |
|
9482 cleaning it up. This apparently plugs a memory leak. |
|
9483 |
|
9484 * lex.l (strip_trailing_whitespace): Declare retval static. |
|
9485 Delete it before saving next string. |
|
9486 |
|
9487 * error.cc (Ferror): Do call error() for empty string args. |
|
9488 (error_1): Don't print anything if fmt is "" or "\n", but do set |
|
9489 the error state appropriately. |
|
9490 |
|
9491 * tree-cmd.cc (tree_unwind_protect::eval): Handle return and break |
|
9492 in the `try' part of the statement. |
|
9493 |
|
9494 Mon Apr 10 19:29:44 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9495 |
|
9496 * f-expm.cc, f-givens.cc, f-qzval.cc, f-syl.cc, f-rand.cc: |
|
9497 Where appropriate, declare Fortran functions to take reference |
|
9498 instead of pointer args. Change callers. |
|
9499 |
|
9500 * mappers.cc: Declare Fortran functions to take reference instead |
|
9501 of pointer args. Change callers. |
|
9502 |
|
9503 * gamma.c, lgamma.c, erfc.c, erf.c, atanh.c, asinh.c, acosh.c: |
|
9504 Declare Fortran functions to take reference instead of pointer |
|
9505 args. |
|
9506 |
|
9507 Sun Apr 9 19:38:53 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9508 |
|
9509 * file-io.cc (Fpopen, Fpclose, Fexecute, Fsync_system, |
|
9510 Fasync_system, Fwaitpid, Fmkfifo, Funlink): New functions. |
|
9511 |
|
9512 * sighandlers.cc (sigchld_handler): New function. |
|
9513 (install_signal_handlers): Add call to install |
|
9514 sigchld_handler. (This is #if 0'd out, waiting for code to help |
|
9515 determine which child exited and what to do about it). |
|
9516 |
|
9517 * tree-expr.h (tree_oct_obj): New class. |
|
9518 |
|
9519 * tree-expr.h (tree_multi_assignment_expression::preserve): New |
|
9520 data member. Add arg with default value to constructors. Change |
|
9521 callers as necessary. |
|
9522 * tree-expr.cc (~tree_multi_assignment_expression): Conditionally |
|
9523 delete lhs. |
|
9524 |
|
9525 * parse.y (make_multi_val_ret): Pass matrix instead of getting it |
|
9526 from the global matrix list. |
|
9527 (expression): Extract matrix from matrix list before calling |
|
9528 make_multi_val_ret(). |
|
9529 |
|
9530 * parse.y (command): Handle new for loop syntax for structures. |
|
9531 |
|
9532 * tree-plot.h (subplot_list): Include tree_print_code() in |
|
9533 initializer lists for constructors. |
|
9534 * tree-expr.h (tree_statement_list, tree_argument_list, |
|
9535 tree_parameter_list, tree_return_list, tree_global_init_list, |
|
9536 tree_if_command_list, ): Likewise. |
|
9537 |
|
9538 * tree-cmd.h (tree_for_command::id_list): New data member. |
|
9539 (tree_for_command (tree_return_list*, tree_expression*, |
|
9540 tree_statement_list*, int, int)): Likewise. |
|
9541 * tree-cmd.cc (tree_for_command::eval): Handle for loops with |
|
9542 structures. |
|
9543 (do_for_loop_once (tree_return_list*, Octave_object&, int&)): |
|
9544 New form for handling for loops with structures. |
|
9545 |
|
9546 * sysdep.cc (octave_ieee_init): Determine floating point format |
|
9547 here. |
|
9548 (native_float_format): New global variable. |
|
9549 (Fisieee): Compute return value from native_float_format, not by |
|
9550 using preprocessor macros. |
|
9551 * sysdep.h (enum floating_point_format): Move declaration here. |
|
9552 * load-save.cc: From here. |
|
9553 Always define all floating point format conversion routines. |
|
9554 (do_double_format_conversion, do_float_format_conversion): |
|
9555 Use native_float_format instead of preprocessor macros. |
|
9556 |
|
9557 Sat Apr 8 15:41:35 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9558 |
|
9559 * Makefile (TEMPLATE_SRC): New variable. |
|
9560 (DISTFILES): Add $(TEMPLATE_SRC). |
|
9561 (SOURCES): Delete Map.cc and SLStack.cc from here. |
|
9562 |
|
9563 * variables.cc (install_builtin_variables): Use OCTAVE_VERSION |
|
9564 instead of version_string to initialize OCTAVE_VERSION. |
|
9565 * version.h (version_string): Delete. |
|
9566 |
|
9567 * getopt.c (_getopt_internal): Initialize indfound to avoid warning. |
|
9568 |
|
9569 Fri Apr 7 15:29:41 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9570 |
|
9571 * tc-inlines.h (REP_RHS_MATRIX): Just check to see if tc is real |
|
9572 or complex. If conversion fails, return. |
|
9573 |
|
9574 Thu Apr 6 00:10:47 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9575 |
|
9576 * data.cc (Fstruct_contains): New function. |
|
9577 |
|
9578 * tc-rep.cc (print_code): Add extra parens around while condition |
|
9579 to avoid warning. |
|
9580 * utils.cc (undo_string_escapes): Likewise. |
|
9581 * input.cc (decode_prompt_string): Likewise. Also rewrite if |
|
9582 statement to avoid warning. |
|
9583 |
|
9584 Tue Apr 4 22:54:17 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9585 |
|
9586 * tree-expr.cc (tree_multi_assignment_expression::eval, |
|
9587 tree_simple_assignment_expression::eval): Call print_constant |
|
9588 even if user_pref.print_answer_id_name is false. |
|
9589 |
|
9590 Mon Apr 3 17:57:14 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9591 |
|
9592 * tc-inlines.h (TC_REP): Avoid redefinition. |
|
9593 |
|
9594 * tree-const.h (do_binary_op, do_unary_op): Declare as friends of |
|
9595 tree_constant class too. |
|
9596 |
|
9597 * tree-plot.h (subplot_using::have_values): Delete data member. |
|
9598 * tree-plot.cc (subplot_using::eval): Always recompute values. |
|
9599 |
|
9600 Fri Mar 31 10:18:32 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9601 |
|
9602 * tc-rep.cc (print): Print open brace for structures here. |
|
9603 * tree-expr.cc (print_constant): Not here. |
|
9604 |
|
9605 * symtab.cc (define): Don't delete arg if sv_fcn fails. |
|
9606 |
|
9607 * tree-const.cc (print): New function. Create ostrstream buffer |
|
9608 and pass it to rep->print(). |
|
9609 * tree-const.h (eval (int)): Call print(), not rep->print(). |
|
9610 * tc-rep.cc (structure_indent_level): New file-scope variable. |
|
9611 (print): New arg, output_buf, is stream to print to. |
|
9612 Print values of structure elements too. |
|
9613 |
|
9614 * user-prefs.h (user_preferences): New field, struct_levels_to_print. |
|
9615 * user-prefs.cc (struct_levels_to_print): New function. |
|
9616 * variables.cc (install_builtin_variables): Add DEFVAR for new |
|
9617 variable struct_levels_to_print. |
|
9618 |
|
9619 * tree-const.cc (print_as_scalar, print_as_structure): Move here |
|
9620 from tree-expr.cc and make extern. |
|
9621 |
|
9622 * tree-expr.cc (print_as_structure): New function. |
|
9623 (print_constant): Use it. |
|
9624 |
|
9625 * tree-expr.cc (print_constant): New arg, print_padding. |
|
9626 (tree_simple_assignment_expression::eval): Use print_constant |
|
9627 instead of duplicating code here. |
|
9628 (tree_multi_assignment_expression::eval): Likewise. |
|
9629 |
|
9630 Thu Mar 30 13:24:11 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9631 |
|
9632 * Makefile.in (SOURCES): Add resource.cc. |
|
9633 * resource.cc: New file, extracted from timefns.cc. |
|
9634 (Fgetrusage): New function. |
|
9635 * timefns.cc (cputime): Delete (now implemented in a function file |
|
9636 using new getrusage function). |
|
9637 |
|
9638 Wed Mar 29 22:52:42 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9639 |
|
9640 * Makefile.in (SOURCES): Add strftime.c. |
|
9641 * strftime.c: New file, from sh-utils distribution. |
|
9642 |
|
9643 * timefns.cc (mk_tm_map, extract_tm, Ftime, Fgmtime, Flocaltime, |
|
9644 Fmktime, Fstrftime): New basic time functions. |
|
9645 (Fclock, Fdate): Delete (now implemented in function files using new |
|
9646 time functions). |
|
9647 |
|
9648 Tue Mar 28 17:51:51 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9649 |
|
9650 * file-io.cc (return_valid_file, do_printf, do_scanf, |
|
9651 fclose_internal, feof_internal, ferror_internal, fflush_internal, |
|
9652 fgets_internal, fopen_internal, fread_internal, freport_internal, |
|
9653 frewind_internal, fseek_internal, ftell_internal, |
|
9654 fwrite_internal): Declare static. |
|
9655 * file-io.h: Delete extern declarations for them. |
|
9656 |
|
9657 Fri Mar 24 09:52:50 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9658 |
|
9659 * pr-output.cc (pr_col_num_header): New function. |
|
9660 (compact_format): New file-scope variable. |
|
9661 (set_format_style): Handle loose and compact formats. |
|
9662 (octave_print_internal (ostream&, const ComplexMatrix&, int)): |
|
9663 Replace duplicate code with call to pr_col_num_header(). |
|
9664 (octave_print_internal (ostream&, const Matrix&, int): Likewise. |
|
9665 (octave_print_internal (ostream&, const Range&, int): Likewise. |
|
9666 |
|
9667 Tue Mar 21 08:44:48 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9668 |
|
9669 * mappers.cc (xgamma): Always use Slatec library function. |
|
9670 * (xlgamma): Likewise. |
|
9671 * Makefile.in (SOURCES): Don't include lgamma.c. |
|
9672 |
|
9673 Fri Mar 17 22:38:39 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9674 |
|
9675 * tc-rep.cc (TC_REP::new): Don't try to keep track of newlist_tail. |
|
9676 Explicitly initialize newlist to zero. |
|
9677 * tree-const.cc (tree_constant::operator new): Likewise. |
|
9678 |
|
9679 Fri Mar 10 12:40:24 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9680 |
|
9681 * tree-cmd.cc (quit_loop_now): Declare inline. |
|
9682 (tree_for_command::do_for_loop_once): Split into two versions, one |
|
9683 for the general case and one for when the loop variable is a |
|
9684 simple identifier. |
|
9685 (DO_LOOP): New macro. Move tests outside of loop. |
|
9686 (tree_for_command::eval): Speed up by checking to see if loop |
|
9687 variable is a simple identifier and by using DO_LOOP. |
|
9688 |
|
9689 * tree-const.h: New union of rep and freeptr. The freeptr element |
|
9690 is used for our custom memory management functions. |
|
9691 |
|
9692 * tc-rep.h: Add freeptr element to anonymous union (for our custom |
|
9693 memory management functions). |
|
9694 |
|
9695 * tree-const.cc (newlist, newlist_grow_size, newlist_tail): New |
|
9696 static variables. |
|
9697 (tree_constant::operator new): Always define to allow more |
|
9698 efficient allocation of single tree_constants. |
|
9699 (tree_constant::operator delete): Likewise, handle deletion of the |
|
9700 memory we allocate. |
|
9701 |
|
9702 * tc-rep.cc (newlist, newlist_grow_size, newlist_tail): New static |
|
9703 variables. |
|
9704 (tree_constant::operator new): Always define to allow more |
|
9705 efficient allocation of single tree_constants. |
|
9706 (tree_constant::operator delete): Likewise, handle deletion of the |
|
9707 memory we allocate. |
|
9708 |
|
9709 Fri Mar 3 14:00:08 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9710 |
|
9711 * error.cc (verror): Terminate output_buf with ends. |
|
9712 |
|
9713 * statdefs.h: Use C-style comment in first line instead of |
|
9714 C++-style comment. |
|
9715 |
|
9716 Mon Feb 27 10:11:18 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9717 |
|
9718 * parse.y (maybe_convert_to_ans_assign): Only lookup ans once. |
|
9719 * variables.cc (bind_ans): New function. |
|
9720 * tree-expr.cc (tree_identifier::eval (int)): Use it here. |
|
9721 (tree_identifier::eval (int, int, const Octave_object&): And here. |
|
9722 |
|
9723 * tree-expr.cc (install_nargin_and_nargout): New function. |
|
9724 * tree-expr.h (tree_function::tree_function (tree_statement_list *, |
|
9725 symbol_table *, int, int)): Call it. |
|
9726 |
|
9727 * tree-expr.cc (tree_function::bind_nargin_and_nargout): New function. |
|
9728 (tree_function::eval): Call it insead of the one from variables.cc. |
|
9729 |
|
9730 * variables.cc (bind_nargin_and_nargout): #if 0 out. |
|
9731 |
|
9732 Sun Feb 26 00:17:06 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9733 |
|
9734 * load-save.cc (Fload, Fsave): Free fname returned by tilde_expand(). |
|
9735 * dirfns.cc (Fls): Likewise. |
|
9736 |
|
9737 * tree-expr.cc (tree_multi_assignment_expression::eval (int, int, |
|
9738 const Octave_object&)): Call tree_return_list::operator () (Pix) |
|
9739 explicitly. |
|
9740 |
|
9741 * octave.cc (initialize_globals): Put TEXMF in the environment for |
|
9742 kpthsea. |
|
9743 |
|
9744 * Makefile.in (OCTAVE_LIBS): Use @LIBINFO@ and @LIBREADLINE@, |
|
9745 substituted by configure. Use kpathsea.a, not libkpathsea, so we |
|
9746 don't have to modify the kpathsea Makefile. |
|
9747 |
|
9748 Sat Feb 25 18:59:26 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9749 |
|
9750 * pathsearch.cc: New file. |
|
9751 * pathsearch.h: New file. |
|
9752 * Makefile.in (INCLUDES): Include it in the list. |
|
9753 * dynamic-ld.cc, help.cc, utils.cc: Use it instead of repeating |
|
9754 identical code multiple times. |
|
9755 |
|
9756 * variables.cc (install_builtin_variables): Only DEFVAR |
|
9757 suppress_verbose_help_message if USE_GNU_INFO. |
|
9758 |
|
9759 * help.cc (Fhelp): Only handle -i if USE_GNU_INFO. |
|
9760 (additional_help_message): Only print message if USE_GNU_INFO. |
|
9761 (builtin_help): New function. |
|
9762 (help_from_info): New function. Print warning if not USE_GNU_INFO. |
|
9763 |
|
9764 See ChangeLog.1 in the top level directory for earlier changes. |