4143
|
1 2002-11-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2 |
4145
|
3 * version.h (OCTAVE_VERSION): Now 2.1.39. |
|
4 |
4143
|
5 * variables.cc (generate_struct_completions): Temporarily reset |
|
6 discard_error_messages and error_state |
|
7 (looks_like_struct): Temporarily reset Vwarning option, |
|
8 error_state, and discard_error_messages. |
|
9 |
|
10 * pt-idx.cc (tree_index_expression::eval_error): Now const. |
|
11 (tree_index_expression::get_struct_index): Require valid identifier. |
|
12 (tree_index_expression::make_arg_struct, |
|
13 tree_index_expression::rvalue, tree_index_expression::lvalue): |
|
14 Handle possible error from get_struct_index. |
|
15 |
|
16 * utils.cc (valid_identifier): Move here from load-save.cc. |
|
17 * utils.h: Provide decl. |
|
18 |
|
19 * input.cc (generate_possible_completions): Call |
|
20 command_editor::filename_completion_desired here. |
|
21 (generate_possible_completions): Don't generate struct completions |
|
22 if text contains directory separator or "..". |
|
23 |
4139
|
24 2002-10-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
25 |
4141
|
26 * DLD-FUNCTIONS/odessa.cc (odessa_user_f, odessa_user_j, |
|
27 odessa_user_b): Reorder args for consistency with other solvers. |
|
28 (Fodessa): Use extract_function to set args. |
|
29 (odessa_user_j): Rename from odessa_user_mf. |
|
30 |
4140
|
31 * DLD-FUNCTIONS/fsolve.cc (fsolve_user_function, fsolve_user_jacobian): |
|
32 Print warning if user returns complex value. |
|
33 * DLD-FUNCTIONS/quad.cc (quad_user_function): Likewise. |
|
34 * DLD-FUNCTIONS/lsode.cc (lsode_user_function, lsode_user_jacobian): |
|
35 Likewise. |
|
36 * DLD-FUNCTIONS/dassl.cc (dassl_user_function, dassl_user_jacobian): |
|
37 Likewise. |
|
38 * DLD-FUNCTIONS/dasrt.cc (dasrt_user_f, dasrt_user_cf, dasrt_user_j): |
|
39 Likewise. |
|
40 * DLD-FUNCTIONS/daspk.cc (daspk_user_function, daspk_user_jacobian): |
|
41 Likewise. |
|
42 |
|
43 * DLD-FUNCTIONS/daspk.cc (daspk_user_jacobian): New function. |
|
44 (Fdaspk): Handle extracting Jacobian from function argument. |
|
45 |
|
46 * DLD-FUNCTIONS/fsolve.cc (fsolve_user_function): New function. |
|
47 (Ffsolve): Handle extracting Jacobian from function argument. |
4139
|
48 |
|
49 * Makefile.in (%.oct): Depend on octave$(EXEEXT) so that octave |
|
50 will be built before any .oct files. |
|
51 (all): Depend on stamp-oct-links. |
|
52 (octave$(EXEEXT)): Don't depend on stamp-oct-links. |
|
53 |
|
54 * ov-base.cc (octave_base_value::subsasgn): Handle default numeric |
|
55 case here. |
|
56 * ov-base-mat.cc (octave_base_matrix<MT>::subsasgn): Delete. |
|
57 |
4136
|
58 2002-10-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
59 |
|
60 * Makefile.in (OCT_LINK_DEPS): Add $(BLAS_LIBS), $(FFTW_LIBS), and |
|
61 $(FLIBS). |
|
62 |
4131
|
63 2002-10-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
64 |
4134
|
65 * version.h (OCTAVE_VERSION): Now 2.1.38. |
|
66 |
4135
|
67 * utils.cc (octave_vformat): Get return value from |
|
68 streambuf::vform. |
|
69 |
4132
|
70 * DLD-FUNCTIONS/fsolve.cc (Ffsolve): Always return solution. |
|
71 Don't barf on nargout == 3. |
|
72 |
4131
|
73 * pt-idx.h (tree_index_expression::dyn_field): New data member. |
|
74 * pt-idx.cc (tree_index_expression::tree_index_expression |
|
75 (tree_expression*, tree_expression*, int, int)): New constructor. |
|
76 (tree_index_expression::append (tree_expression*)): New function. |
|
77 (tree_index_expression::get_struct_index): New function. |
|
78 (tree_index_expression::make_arg_struct): Handle dynamic fields. |
|
79 (tree_index_expression::rvalue): Likewise. |
|
80 (tree_index_expression::lvalue): Likewise. |
|
81 |
|
82 * parse.y (make_indirect_ref (tree_expression*, tree_expression*)): |
|
83 New function. |
|
84 (indirect_ref_op): New non-terminal. |
|
85 (postfix_expr): Use it. |
|
86 Recognize dynamic struct field references. |
|
87 (parsing_indir): Delete unused non-terminal. |
|
88 |
|
89 * lex.l ("("): Set lexer_flags.looking_at_indirect_ref to false here. |
|
90 |
|
91 * pt-idx.cc (tree_index_expression::name): Simplify. |
|
92 |
4130
|
93 2002-10-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
94 |
|
95 * oct-conf.h.in (OCTAVE_CONF_HAVE_DLOPEN_API, |
|
96 OCTAVE_CONF_HAVE_LOADLIBRARY_API, OCTAVE_CONF_HAVE_SHL_LOAD_API): |
|
97 Delete. |
|
98 * toplev.cc (octave_config_info): Delete them from the struct |
|
99 |
|
100 * load-save.cc (read_ascii_data): Use octave_read_double and |
|
101 octave_read_complex so that we handle Inf, NaN, and NA. |
|
102 (read_mat_ascii_data): Likewise. |
|
103 (save_ascii_data): Use octave_write_double andoctave_write_complex. |
|
104 |
4128
|
105 2002-10-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
106 |
|
107 * toplev.cc (octave_config_info): Rename WITH_DYNAMIC_LINKING to |
|
108 ENABLE_DYNAMIC_LINKING. |
|
109 * oct-conf.h.in: Likewise. |
|
110 * mkbuiltins: Likewise. |
|
111 * fn-cache.cc (file_name_cache_elt::update): Likewise. |
|
112 * Makefile.in: Likewise. |
|
113 |
4123
|
114 2002-10-24 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
115 |
4124
|
116 * cutils.c (octave_vsnprintf): Buffer and buffer size now static. |
|
117 * utils.cc (octave_vformat): Don't free buffer returned from |
|
118 octave_vsnprintf here. |
|
119 |
|
120 * ov-usr-fcn.cc (va_arg, va_start, vr_val): Only print warning |
|
121 once per session. |
|
122 |
4123
|
123 * ov-mapper.cc (octave_mapper::apply): Don't try real_type case if |
|
124 arg is a string and we have a ch_map_fcn. |
|
125 |
|
126 * Makefile.in: Add $(LIBKPATHSEA) to $(OCTAVE_LIBS) if |
|
127 $(INCLUDE_LINK_DEPS) is false, not if $(SHARED_LIBS) is false. |
|
128 |
4122
|
129 2002-10-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
130 |
|
131 * DLD-FUNCTIONS/daspk.cc (daspk): Use set_options, not copy. |
|
132 * DLD-FUNCTIONS/dasrt.cc (dasrt): Likewise. |
|
133 * DLD-FUNCTIONS/dassl.cc (dassl): Likewise. |
|
134 * DLD-FUNCTIONS/fsolve.cc (fsolve): Likewise. |
|
135 * DLD-FUNCTIONS/lsode.cc (lsode): Likewise. |
|
136 * DLD-FUNCTIONS/odessa.cc (Fodessa): Likewise. |
|
137 * DLD-FUNCTIONS/quad.cc (Fquad): Likewise. |
|
138 |
4115
|
139 2002-10-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
140 |
4121
|
141 * oct-map.cc (Octave_map::assign): Fix typo in resizing. |
|
142 |
|
143 * pt-loop.cc (tree_complex_for_command::eval): Only return list |
|
144 for val if struct array has more than one element. |
|
145 (tree_simple_for_command::eval): Likewise. |
|
146 |
|
147 * ov-struct.cc (octave_struct::print_raw): Don't create |
|
148 octave_list directly, use octave_value (const octave_value_list&) |
|
149 constructor instead. |
|
150 Call print_with_name for tmp, not val(0). |
|
151 |
4115
|
152 * version.h (OCTAVE_VERSION): Now 2.1.37. |
|
153 (OCTAVE_CONTRIB_STATEMENT): New macro. |
|
154 (OCTAVE_STARTUP_MESSAGE): Use it. |
|
155 |
4110
|
156 2002-10-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
157 |
4114
|
158 * data.cc (fill_matrix): If nargin is zero, use val, not 0.0. |
|
159 |
4113
|
160 * main.c: New file. |
|
161 * octave.h: New file. |
|
162 * octave.cc (octave_main): Rename from main. |
|
163 Include octave.h. |
|
164 * Makefile.in (OBJECTS): Add octave.o, builtins.o, and ops.o to |
|
165 the list. |
|
166 (octave): Depend on and link main.o, not octave.o, builtins.o, and |
|
167 ops.o (they are now in liboctinterp). |
|
168 (DEP_5): Add main.c here. |
|
169 |
4110
|
170 * oct-conf.h.in: No need to substitute OCTAVE_CONF_OCTAVE_LITE. |
|
171 * toplev.cc (octave_config_info): Likewise, don't include it in |
|
172 struct. |
|
173 |
|
174 * mkbuiltins: Remove check for OCTAVE_LITE, since it is now |
|
175 implied by WITH_DYNAMIC_LINKING. |
|
176 * Makefile.in: Likewise, replace tests for OCTAVE_LITE with tests |
|
177 for WITH_DYNAMIC_LINKING instead. |
|
178 |
|
179 * oct-conf.h.in: Use OCTAVE_CONF_HAVE_DLOPEN_API, |
|
180 OCTAVE_CONF_HAVE_LOADLIBRARY_API, and |
|
181 OCTAVE_CONF_HAVE_SHL_LOAD_API instead of OCTAVE_CONF_WITH_DL and |
|
182 OCTAVE_CONF_WITH_SHL. |
|
183 * toplev.cc (octave_config_info): Likewise. |
|
184 |
4107
|
185 2002-10-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
186 |
4108
|
187 * help.cc (display_help_text): Quote output file name for Cygwin. |
|
188 |
|
189 * Makefile.in (install-lib): Don't bother with versions for |
|
190 $(SHLBIN) files. |
|
191 |
|
192 * help.cc (display_help_text): Match zero or more comment |
|
193 characters instead of one or more. |
|
194 |
4107
|
195 * Makefile.in (install-oct): Process files from $(DLD_DEF_FILES), |
|
196 not $(DLD_SRC). Look for them in current directory, not $(srcdir). |
|
197 |
4104
|
198 2002-10-15 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
199 |
|
200 * ov-mapper.cc (octave_mapper::apply): Handle real and complex |
|
201 types first. If the arg is something else, try ch_map_fcn if it |
|
202 is defined. |
|
203 |
|
204 2002-10-15 Paul Kienzle <pkienzle@users.sf.net> |
|
205 |
|
206 * Makefile.in: If building shared but not static libs, only set |
|
207 XERBLA to the location of the pic object file if FPICFLAG is |
|
208 defined. |
|
209 |
4102
|
210 2002-10-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
211 |
|
212 * DLD-FUNCTIONS/minmax.cc, DLD-FUNCTIONS/getrusage.cc, data.cc, |
|
213 file-io.cc, ov-base.cc, ov-bool-mat.cc, ov-ch-mat.cc, |
|
214 ov-complex.cc, ov-cx-mat.cc, ov-range.cc, ov-re-mat.cc, |
|
215 ov-re-nd-array.cc: Change all uses of octave_Inf, octave_NA, and |
|
216 octave_NaN to be calls to lo_ieee_Inf_value, lo_ieee_NA_value, and |
|
217 lo_ieee_NaN_value instead of using the constants directly to avoid |
|
218 linking problem with Cygwin. |
|
219 |
|
220 * Makefile.in (install): No need to use cd to create links. |
|
221 |
|
222 2002-10-14 Paul Kienzle <pkienzle@users.sf.net> |
|
223 |
|
224 * Makefile.in: Merge liboctave with liboct-readline and |
|
225 liboct-pathsearch. |
|
226 Use link dependencies for shared libs if INCLUDE_LINK_DEPS. |
|
227 (LIBRARIES): If doing shared libs, include versioned library in list. |
|
228 (liboctinterp.$(SHLEXT), liboctinterp.$(SHLEXT_VER)): Reverse |
|
229 actions -- build unversioned library, symbolic link adds version |
|
230 info. |
|
231 (install, uninstall): Handle link and load forms of the library |
|
232 separately. |
|
233 |
|
234 * toplev.cc (octave_config_info): Remove LIBOCT_READLINE and |
|
235 LIBOCT_PATHSEARCH, add LIBREADLINE. |
|
236 * oct-conf.h.in: Likewise. |
|
237 |
4100
|
238 2002-10-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
239 |
4101
|
240 * lex.l (handle_identifier): Don't enter token in local symbol |
|
241 table if the following token is a dot and it looks like a binary |
|
242 operator. |
|
243 (force_local_variable): If name is not a variable, clear it before |
|
244 defining. |
|
245 |
|
246 * oct-procbuf.cc (Vkluge_procbuf_delay): Make default 0 for all |
|
247 systems. |
|
248 |
|
249 * octave.cc (execute_startup_files, initialize_pathsearch): |
|
250 Use file_ops::dir_sep_str instead of OCTAVE_DIR_SEP_STR. |
|
251 (main): Use file_ops::dir_sep_chars instead of OCTAVE_DIR_SEP_CHARS. |
|
252 |
4100
|
253 * ov-re-mat.cc (octave_matrix::convert_to_str): Warn for out of |
|
254 range conversions. For negative values, set to 0. |
|
255 * ov-scalar.cc (octave_scalar:convert_to_str): Likewise. |
|
256 |
|
257 * mappers.cc (xabs): New static function. |
|
258 (install_mapper_functions): Use it for abs for character matrices. |
|
259 Handle ch_map_flag separately from can_ret_cmplx_for_real in |
|
260 all uses of DEFUN_MAPPER. |
|
261 * defun.h (DEFUN_MAPPER): Handle ch_map_flag separately from |
|
262 can_ret_cmplx_for_real. |
|
263 * defun-int.h (DEFUN_MAPPER_INTERNAL): Likewise. |
|
264 * mkbuiltins: Likewise. |
|
265 * mkgendoc: Likewise. |
|
266 * ov-mapper.cc (octave_mapper::apply): Use ch_map_flag and |
|
267 can_ret_cmplx_for_real instead of flag. |
|
268 * ov-mapper.h (octave_mapper::ch_map_flag): Rename from flag. |
|
269 (octave_mapper::can_ret_cmplx_for_real): New data member. |
|
270 (octave_mapper::octave_mapper): Handle it here. |
|
271 |
4098
|
272 2002-10-10 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
273 |
4100
|
274 * octave.cc (execute_startup_files): Don't forget directory |
|
275 separator for local initfile. |
|
276 |
4098
|
277 * move-if-change: Delete. |
|
278 * Makefile.in (DISTFILES): Delete it from the list. |
|
279 |
4097
|
280 2002-10-09 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
281 |
4098
|
282 * Makefile.in: Use $(EXEEXT) and $(BUILD_EXEEXT) as appropriate. |
|
283 |
|
284 * pt-plot.cc (Vgnuplot_binary): Use GNUPLOT_BINARY as default. |
|
285 |
4097
|
286 * octave.cc (execute_startup_files): |
|
287 Use octave_env::getcwd instead of "./". |
|
288 Use OCTAVE_DIR_SEP_STR instead of "/". |
|
289 (initialize_pathsearch): Use OCTAVE_DIR_SEP_STR instead of /. |
|
290 (main): Look for OCTAVE_DIR_SEP_CHARS, not '/'. |
|
291 |
4093
|
292 2002-10-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
293 |
|
294 * Makefile.in (gendoc): Use $(BUILD_CXX), not $(CXX). |
|
295 |
|
296 2002-10-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
297 |
|
298 * utils.cc (octave_sleep): Cast result of modf to unsigned int. |
|
299 |
4092
|
300 2002-10-07 Paul Kienzle <pkienzle@users.sf.net> |
|
301 |
|
302 * sighandlers.cc (my_friendly_exit): If kill is unavailable, use |
|
303 raise. |
|
304 |
4090
|
305 2002-10-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
306 |
4091
|
307 * sysdep.cc (CYGWIN_init): New function. |
|
308 (sysdep_init) [__CYGWIN__]: Call it. |
|
309 |
4090
|
310 * pt-plot.cc (subplot::handle_plot_data): Surround file names in |
|
311 single quotes, not double (for Windows). |
|
312 (do_external_plotter_cd): Likewise. |
|
313 |
4086
|
314 2002-10-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
315 |
|
316 * cutils.c (octave_usleep): Call octave_sleep, not sleep. |
|
317 |
|
318 * utils.cc (octave_sleep (double)): New function. |
|
319 * utils.h: Provide decl. |
|
320 * sysdep.cc (Fpause, Fsleep): Use it. |
|
321 |
|
322 * cutils.c (do_octave_usleep): Merge with octave_usleep. |
|
323 (octave_usleep): Make it work for Windows systems. From Paul |
|
324 Kienzle <pkienzle@users.sf.net>. |
|
325 |
|
326 2002-10-03 Paul Kienzle <pkienzle@users.sf.net> |
|
327 |
|
328 * cutils.c (octave_usleep): Make it work for Windows systems. |
|
329 |
|
330 * toplev.cc (Fsystem): Error message if fork is not available. |
|
331 |
4084
|
332 2002-10-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
333 |
|
334 * cutils.c (octave_sleep): Handle Windows, which may not have |
|
335 sleep, but should have Sleep. |
|
336 |
|
337 * oct-conf.h.in (OCTAVE_CONF_SED): Add an entry for SED. |
|
338 * toplev.cc (octave_config_info): Likewise. |
|
339 * Makefile.in (oct-gperf.h): Use $(SED), not sed. |
|
340 |
4070
|
341 2002-09-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
342 |
|
343 * file-io.cc (fopen_mode_to_ios_mode): Set ios::ate instead of |
|
344 ios::app for "a+" mode. |
|
345 * oct-stream.cc (octave_stream::mode_as_string): Recognize |
|
346 ios::ate, not ios::app as "a+" mode. |
4078
|
347 (octave_stream::mode_as_string): Use parens since | has lower |
|
348 precedence than ==. |
4070
|
349 |
4067
|
350 2002-09-26 Paul Kienzle <pkienzle@users.sf.net> |
|
351 |
|
352 * sysdep.cc: Include conio.h if it exists. |
|
353 (octave_kbhit): Rename from kbhit. Implement with _kbhit if it |
|
354 exists. Change all callers. |
|
355 * cutils.c (octave_sleep): New function. |
|
356 Change all callers of sleep to use octave_sleep instead. |
|
357 |
4066
|
358 2002-09-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
359 |
|
360 * BaseSLList.cc, BaseSLList.h, Cell.cc, Cell.h, DLList.cc, |
|
361 DLList.h, Map.cc, Map.h, OPERATORS/op-b-b.cc, |
|
362 OPERATORS/op-bm-b.cc, OPERATORS/op-bm-bm.cc, OPERATORS/op-cell.cc, |
|
363 OPERATORS/op-chm.cc, OPERATORS/op-cm-cm.cc, OPERATORS/op-cm-cs.cc, |
|
364 OPERATORS/op-cm-m.cc, OPERATORS/op-cm-s.cc, OPERATORS/op-cs-cm.cc, |
|
365 OPERATORS/op-cs-cs.cc, OPERATORS/op-cs-m.cc, OPERATORS/op-cs-s.cc, |
|
366 OPERATORS/op-fil-b.cc, OPERATORS/op-fil-bm.cc, |
|
367 OPERATORS/op-fil-cm.cc, OPERATORS/op-fil-cs.cc, |
|
368 OPERATORS/op-fil-lis.cc, OPERATORS/op-fil-m.cc, |
|
369 OPERATORS/op-fil-rec.cc, OPERATORS/op-fil-s.cc, |
|
370 OPERATORS/op-fil-str.cc, OPERATORS/op-list.cc, |
|
371 OPERATORS/op-m-cm.cc, OPERATORS/op-m-cs.cc, OPERATORS/op-m-m.cc, |
|
372 OPERATORS/op-m-s.cc, OPERATORS/op-range.cc, OPERATORS/op-s-cm.cc, |
|
373 OPERATORS/op-s-cs.cc, OPERATORS/op-s-m.cc, OPERATORS/op-s-s.cc, |
|
374 OPERATORS/op-str-str.cc, SLList.cc, SLList.h, SLStack.cc, |
|
375 SLStack.h, Stack.cc, Stack.h, c-file-ptr-stream.cc, |
|
376 c-file-ptr-stream.h, comment-list.cc, comment-list.h, oct-map.cc, |
|
377 oct-map.h, oct-obj.cc, oct-obj.h, ov-base-mat.cc, ov-base-mat.h, |
|
378 ov-base-nd-array.cc, ov-base-nd-array.h, ov-base-scalar.cc, |
|
379 ov-base-scalar.h, ov-base.cc, ov-base.h, ov-bool-mat.cc, |
|
380 ov-bool-mat.h, ov-bool.cc, ov-bool.h, ov-builtin.cc, ov-builtin.h, |
|
381 ov-cell.cc, ov-cell.h, ov-ch-mat.cc, ov-ch-mat.h, ov-colon.cc, |
|
382 ov-complex.cc, ov-complex.h, ov-cs-list.cc ov-cs-list.h, |
|
383 ov-cx-mat.cc, ov-cx-mat.h, ov-dld-fcn.cc, ov-dld-fcn.h, ov-fcn.cc, |
|
384 ov-fcn.h, ov-file.cc, ov-file.h, ov-list.cc, ov-list.h, |
|
385 ov-mapper.cc, ov-mapper.h, ov-range.cc, ov-range.h, ov-re-mat.cc, |
|
386 ov-re-mat.h, ov-re-nd-array.cc, ov-re-nd-array.h, ov-scalar.cc, |
|
387 ov-scalar.h, ov-str-mat.cc, ov-str-mat.h, ov-struct.cc, |
|
388 ov-struct.h, ov-typeinfo.cc, ov-typeinfo.h, ov-usr-fcn.cc, |
|
389 ov-usr-fcn.h, ov-va-args.cc, ov.cc, ov.h, procstream.cc, |
|
390 procstream.h, pt-arg-list.cc, pt-arg-list.h, pt-assign.cc, |
|
391 pt-assign.h, pt-binop.cc, pt-binop.h, pt-bp.cc, pt-bp.h, |
|
392 pt-cell.cc, pt-cell.h, pt-check.cc, pt-check.h, pt-cmd.cc, |
|
393 pt-cmd.h, pt-colon.cc, pt-colon.h, pt-const.cc, pt-const.h, |
|
394 pt-decl.cc, pt-decl.h, pt-except.cc, pt-except.h, pt-exp.cc, |
|
395 pt-exp.h, pt-id.cc, pt-id.h, pt-idx.cc, pt-idx.h, pt-jump.cc, |
|
396 pt-jump.h, pt-loop.cc, pt-loop.h, pt-mat.cc, pt-mat.h, pt-misc.cc, |
|
397 pt-misc.h, pt-plot.cc, pt-plot.h, pt-pr-code.cc, pt-pr-code.h, |
|
398 pt-select.cc, pt-select.h, pt-stmt.cc, pt-stmt.h, pt-unop.cc, |
|
399 pt-unop.h, pt.cc, pt.h, symtab.cc, symtab.h, token.cc, token.h, |
|
400 unwind-prot.cc, unwind-prot.h: |
|
401 If __GNUG__, use pragma interface/implementation. Allow this to |
|
402 be turned off by defining NO_PRAGMA_INTERFACE_IMPLEMENTATION. |
|
403 |
4064
|
404 2002-09-26 Paul Kienzle <pkienzle@users.sf.net> |
|
405 |
4065
|
406 * mappers.cc (install_mapper_functions): Install erf, not xerf. |
|
407 Install erfc, not xerfc. |
|
408 |
4064
|
409 * pt-bp.cc (tree_breakpoint::visit_unwind_protect_command): |
|
410 Rename lst1 and lst2 to avoid dlgs.h conflict. |
|
411 |
|
412 * parse.y: Replace TEXT with STRING to avoid winnt.h conflict. |
|
413 * lex.l: Ditto. |
|
414 |
|
415 * sysdep.cc (raw_mode): Non-fatal warning if raw_mode is not |
|
416 supported. |
|
417 |
|
418 * sighandlers.cc: Don't define handlers for non-existent signals. |
|
419 |
|
420 * utils.cc: Don't include unneeded termio headers. |
|
421 |
4061
|
422 2002-09-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
423 |
|
424 * BaseSLList.cc, BaseSLList.h, Cell.cc, Cell.h, DLList.cc, |
|
425 DLList.h, Map.cc, Map.h, OPERATORS/op-b-b.cc, |
|
426 OPERATORS/op-bm-b.cc, OPERATORS/op-bm-bm.cc, OPERATORS/op-cell.cc, |
|
427 OPERATORS/op-chm.cc, OPERATORS/op-cm-cm.cc, OPERATORS/op-cm-cs.cc, |
|
428 OPERATORS/op-cm-m.cc, OPERATORS/op-cm-s.cc, OPERATORS/op-cs-cm.cc, |
|
429 OPERATORS/op-cs-cs.cc, OPERATORS/op-cs-m.cc, OPERATORS/op-cs-s.cc, |
|
430 OPERATORS/op-fil-b.cc, OPERATORS/op-fil-bm.cc, |
|
431 OPERATORS/op-fil-cm.cc, OPERATORS/op-fil-cs.cc, |
|
432 OPERATORS/op-fil-lis.cc, OPERATORS/op-fil-m.cc, |
|
433 OPERATORS/op-fil-rec.cc, OPERATORS/op-fil-s.cc, |
|
434 OPERATORS/op-fil-str.cc, OPERATORS/op-list.cc, |
|
435 OPERATORS/op-m-cm.cc, OPERATORS/op-m-cs.cc, OPERATORS/op-m-m.cc, |
|
436 OPERATORS/op-m-s.cc, OPERATORS/op-range.cc, OPERATORS/op-s-cm.cc, |
|
437 OPERATORS/op-s-cs.cc, OPERATORS/op-s-m.cc, OPERATORS/op-s-s.cc, |
|
438 OPERATORS/op-str-str.cc, SLList.cc, SLList.h, SLStack.cc, |
|
439 SLStack.h, Stack.cc, Stack.h, c-file-ptr-stream.cc, |
|
440 c-file-ptr-stream.h, comment-list.cc, comment-list.h, oct-map.cc, |
|
441 oct-map.h, oct-obj.cc, oct-obj.h, ov-base-mat.cc, ov-base-mat.h, |
|
442 ov-base-nd-array.cc, ov-base-nd-array.h, ov-base-scalar.cc, |
|
443 ov-base-scalar.h, ov-base.cc, ov-base.h, ov-bool-mat.cc, |
|
444 ov-bool-mat.h, ov-bool.cc, ov-bool.h, ov-builtin.cc, ov-builtin.h, |
|
445 ov-cell.cc, ov-cell.h, ov-ch-mat.cc, ov-ch-mat.h, ov-colon.cc, |
|
446 ov-complex.cc, ov-complex.h, ov-cs-list.cc ov-cs-list.h, |
|
447 ov-cx-mat.cc, ov-cx-mat.h, ov-dld-fcn.cc, ov-dld-fcn.h, ov-fcn.cc, |
|
448 ov-fcn.h, ov-file.cc, ov-file.h, ov-list.cc, ov-list.h, |
|
449 ov-mapper.cc, ov-mapper.h, ov-range.cc, ov-range.h, ov-re-mat.cc, |
|
450 ov-re-mat.h, ov-re-nd-array.cc, ov-re-nd-array.h, ov-scalar.cc, |
|
451 ov-scalar.h, ov-str-mat.cc, ov-str-mat.h, ov-struct.cc, |
|
452 ov-struct.h, ov-typeinfo.cc, ov-typeinfo.h, ov-usr-fcn.cc, |
|
453 ov-usr-fcn.h, ov-va-args.cc, ov.cc, ov.h, procstream.cc, |
|
454 procstream.h, pt-arg-list.cc, pt-arg-list.h, pt-assign.cc, |
|
455 pt-assign.h, pt-binop.cc, pt-binop.h, pt-bp.cc, pt-bp.h, |
|
456 pt-cell.cc, pt-cell.h, pt-check.cc, pt-check.h, pt-cmd.cc, |
|
457 pt-cmd.h, pt-colon.cc, pt-colon.h, pt-const.cc, pt-const.h, |
|
458 pt-decl.cc, pt-decl.h, pt-except.cc, pt-except.h, pt-exp.cc, |
|
459 pt-exp.h, pt-id.cc, pt-id.h, pt-idx.cc, pt-idx.h, pt-jump.cc, |
|
460 pt-jump.h, pt-loop.cc, pt-loop.h, pt-mat.cc, pt-mat.h, pt-misc.cc, |
|
461 pt-misc.h, pt-plot.cc, pt-plot.h, pt-pr-code.cc, pt-pr-code.h, |
|
462 pt-select.cc, pt-select.h, pt-stmt.cc, pt-stmt.h, pt-unop.cc, |
|
463 pt-unop.h, pt.cc, pt.h, symtab.cc, symtab.h, token.cc, token.h, |
|
464 unwind-prot.cc, unwind-prot.h: |
|
465 Use USE_PRAGMA_INTERFACE_IMPLEMENTATION instead of __GNUG__ to |
|
466 decide whether to use the interface/implementation pragmas. |
|
467 |
4059
|
468 2002-09-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
469 |
4060
|
470 * load-save.cc: Undo previous change. |
|
471 |
4059
|
472 * ov-struct.cc (octave_struct::subsasgn): Ensure that indexed |
|
473 object is not shared before calling subsasgn. |
|
474 |
4057
|
475 2002-09-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
476 |
|
477 * load-save.cc: Use % instead of # as comment character in ascii |
|
478 data files. |
|
479 |
4055
|
480 2002-08-17 Mumit Khan <khan@nanotech.wisc.edu> |
|
481 |
|
482 * c-file-ptr-stream.h (c_file_ptr_buf::c_file_ptr_buf): Add Intel |
|
483 C++ runtime support. |
|
484 |
|
485 * Cell.h, gripes.cc, ov-base-scalar.cc, ov-colon.cc, ov-fcn.cc, |
|
486 ov-file.cc, ov-mapper.h, ov-va-args.cc, token.cc, xpow.cc, |
|
487 OPERATORS/op-b-b.cc, OPERATORS/op-bm-b.cc, OPERATORS/op-bm-bm.cc, |
|
488 OPERATORS/op-cell.cc, OPERATORS/op-chm.cc, OPERATORS/op-cm-cm.cc, |
|
489 OPERATORS/op-cm-cs.cc, OPERATORS/op-cm-m.cc, OPERATORS/op-cm-s.cc, |
|
490 OPERATORS/op-cs-cm.cc, OPERATORS/op-cs-cs.cc, OPERATORS/op-cs-m.cc, |
|
491 OPERATORS/op-cs-s.cc, OPERATORS/op-fil-b.cc, OPERATORS/op-fil-bm.cc, |
|
492 OPERATORS/op-fil-cm.cc, OPERATORS/op-fil-cs.cc, |
|
493 OPERATORS/op-fil-lis.cc, OPERATORS/op-fil-m.cc, |
|
494 OPERATORS/op-fil-rec.cc, OPERATORS/op-fil-s.cc, |
|
495 OPERATORS/op-fil-str.cc, OPERATORS/op-list.cc, OPERATORS/op-m-cm.cc, |
|
496 OPERATORS/op-m-cs.cc, OPERATORS/op-m-m.cc, OPERATORS/op-m-s.cc, |
|
497 OPERATORS/op-range.cc, OPERATORS/op-s-cm.cc, OPERATORS/op-s-cs.cc, |
|
498 OPERATORS/op-s-m.cc, OPERATORS/op-s-s.cc, OPERATORS/op-str-str.cc, |
|
499 TEMPLATE-INST/Array-sym.cc, TEMPLATE-INST/Array-tc.cc, |
|
500 TEMPLATE-INST/Map-tc.cc, TEMPLATE-INST/SLList-expr.cc, |
|
501 TEMPLATE-INST/SLList-tc.cc, TEMPLATE-INST/SLList-tm.cc, |
|
502 TEMPLATE-INST/SLStack-sym.cc: Make the implementation of |
|
503 octave_value_list visibile for template instantiation. |
|
504 |
4051
|
505 2002-08-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
506 |
4052
|
507 * DLD-FUNCTIONS/dasrt.cc: Include <iostream> not <iostream.h>. |
|
508 |
4051
|
509 * pager.h: Include lo-sstream.h and use macros instead of using |
|
510 strstreambuf class directly. |
|
511 |
|
512 * load-save.cc (read_mat_ascii_data): Handle istrstream here too. |
|
513 |
|
514 * procstream.h (procstream::procstream): Also accept std::string arg. |
|
515 (iprocstream::iprocstream, iprocstream::open): Likewise. |
|
516 (oprocstream::oprocstream, oprocstream::open): Likewise. |
|
517 (procstreambase::procstreambase, procstreambase::open): Likewise. |
|
518 |
|
519 * pt-plot.cc (gnuplot_terminal_type): Now std::string&, not char*. |
|
520 (send_to_plot_stream): Likewise, for cmd arg. |
|
521 |
|
522 * pt-plot.h, pt-plot.cc: Include lo-sstream.h and use macros |
|
523 instead of using strstream classes directly. |
|
524 * oct-strstrm.h: Likewise. |
|
525 * error.h, error.cc: Likewise. |
|
526 * oct-stream.h, oct-stream.cc: Likewise. |
|
527 * lex.l: Likewise. |
|
528 * toplev.cc: Likewise. |
|
529 * utils.cc: Likewise. |
|
530 * pt.cc: Likewise. |
|
531 * pr-output.cc: Likewise. |
|
532 * ov-list.cc: Likewise. |
|
533 * ov-cs-list.cc: Likewise. |
|
534 * ov-cell.cc: Likewise. |
|
535 * load-save.cc: Likewise. |
|
536 * help.cc: Likewise. |
|
537 * dirfns.cc: Likewise. |
|
538 |
4048
|
539 2002-08-15 Paul Kienzle <pkienzle@jazz.ncnr.nist.gov> |
|
540 |
|
541 * input.cc (octave_read): Do a better job of buffering. |
|
542 |
4044
|
543 2002-08-15 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
544 |
4045
|
545 * Makefile.in (DLD_DEF_FILES): New macro. |
|
546 (DEF_5): Delete. |
|
547 (DEF_4): Now only includes $(SOURCES). |
|
548 (DEF_FILES): Append $(DLD_DEF_FILES) here. |
|
549 (stamp-oct-links): Pass $(DLD_DEF_FILES) to mk-oct-links instead |
|
550 of a list of source files. |
|
551 * mk-oct-links: Work on .df files instead of .cc files. |
|
552 |
4044
|
553 * parse.y (case_list): Allow it to be empty. |
|
554 |
|
555 * ov.cc, ov.h (octave_value::int_vector_value): New function. |
|
556 |
4038
|
557 2002-08-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
558 |
|
559 * Makefile.in (OCTAVE_LIBS): Only include $(LIBKPATHSEA) if not |
|
560 using shared libraries. |
|
561 |
|
562 * ov.cc (octave_value::octave_value (const octave_value_list&, bool)): |
|
563 Don't forget to assign rep. |
|
564 |
4036
|
565 2002-08-12 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
566 |
4037
|
567 * lex.l: Warn for various Matlab-incompatibilities. |
|
568 No longer accept <> for NOTEQ. |
|
569 (gripe_matlab_incompatible): New function. |
|
570 (maybe_gripe_matlab_incompatible_comment): Likewise. |
|
571 (gripe_matlab_incompatible_continuation): Likewise. |
|
572 (gripe_matlab_incompatible_operator): Likewise. |
|
573 (warn_matlab_incompatible): New function. |
|
574 (Vwarn_matlab_incompatible): New static variable. |
|
575 (symbols_of_lex): Add a DEFVAR for it. |
|
576 |
|
577 |
4036
|
578 * file-io.cc (fopen_mode_to_ios_mode): Default value is std::ios::in. |
|
579 Return std::ios::openmode instead of int. |
|
580 |
4035
|
581 2002-08-10 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
582 |
|
583 * DLD-FUNCTIONS/dasrt.cc (DASRT_ABORT1, DASRT_ABORT2): |
|
584 "##" pastes tokens, not strings. |
|
585 |
|
586 * DLD-FUNCTIONS/odessa.cc: Add std:: qualifiers as needed. |
|
587 |
4025
|
588 2002-08-09 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
589 |
4028
|
590 * variables.cc (Fisglobal): Rename from Fis_global. |
|
591 * file-io.cc (Fisstream): Rename from Fis_stream. |
|
592 * data.cc (Fisbool): Rename from Fis_bool. |
|
593 (Fiscomplex): Rename from Fis_complex. |
|
594 (Fislist): Rename from Fis_list. |
|
595 (Fismatrix): Rename from Fis_matrix. |
|
596 (Fisstruct): Rename from Fis_struct. |
|
597 |
4025
|
598 * parse.y (switch_case): Make list of command optional. |
|
599 |
|
600 2002-08-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
601 |
|
602 * pr-output.cc (pr_max_internal): Use octave_is_NaN_or_NA instead |
|
603 of xisnan. |
|
604 (pr_min_internal): Likewise. |
|
605 (output_max_field_width): Likewise. |
|
606 (output_precision): Likewise. |
|
607 (pr_any_float): Handle NA. |
|
608 * mappers.cc (Fisna, F_is_nan_or_na): New functions. |
|
609 * data.cc (symbols_of_data): New constant, NA. |
|
610 |
4023
|
611 2002-08-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
612 |
|
613 * pt-binop.h (tree_binary_expression::is_binary_expression): |
|
614 New function, return true. |
|
615 (tree_boolean_expression::is_boolean_expression): New function, |
|
616 return true. |
|
617 * pt-exp.h (tree_expression::is_binary_expression): New function. |
|
618 (tree_expression::is_boolean_expression): Likewise. |
|
619 * parse.y (EXPR_OR_OR): Now lower precedence than EXPR_AND_AND. |
|
620 (EXPR_OR): Now lower precedence than EXPR_AND. |
|
621 (make_boolean_op): Maybe warn about change in precedence. |
|
622 (make_binary_op): Likewise. |
|
623 (Vwarn_precedence_change): New static variable. |
|
624 (warn_precedence_change): New function. |
|
625 (Vwarn_precedence_change): New DEFVAR. |
|
626 |
4021
|
627 2002-08-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
628 |
|
629 * data.cc (ANY_ALL): Improve arg checks. |
|
630 |
4018
|
631 2002-08-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
632 |
|
633 * ov.h (octave_value::assign_op): New enum values, op_pow_eq and |
|
634 op_el_pow_eq. |
|
635 * ov.cc (octave_value::assign_op_as_string): Handle them here. |
|
636 (ocatave_value::op_eq_to_binary_op): And here. |
|
637 * parse.y (POW_EQ, EPOW_EQ): New tokens. |
|
638 (assign_expr): Handle them here too. |
|
639 (make_assign_op): And here. |
|
640 |
|
641 * lex.l: Recognize {POW}= and {EPOW}=. |
|
642 |
4015
|
643 2002-08-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
644 |
4017
|
645 * ov-base-scalar.h (octave_base_scalar::all): New int arg. |
|
646 (octave_base_scalar::any): Likewise. |
|
647 * ov-range.h (octave_range::all): Likewise. |
|
648 (octave_range::any): Likewise. |
|
649 |
4016
|
650 * Makefile.in (doc-files): Use mv, not move-if-change here. |
|
651 |
|
652 * variables.cc (symbol_exist): New function. |
|
653 (Fexist): Use it. Handle optional type arg. Make return codes |
|
654 more compatible with Matlab. |
|
655 |
4015
|
656 * data.cc (ANY_ALL): New macro. |
|
657 (Fany, Fall): Replace guts with ANY_ALL. |
|
658 |
4011
|
659 2002-08-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
660 |
4015
|
661 * data.cc (Fall, Fany): Handle optional DIM argument. |
|
662 |
|
663 * ov.h (octave_value::any): New arg, dim. |
|
664 (octave_value::all): Likewise. |
|
665 * ov-base.h (octave_base_value::any): Likewise. |
|
666 (octave_base_value::all): Likewise. |
|
667 * ov-base-mat.h (octave_base_matrix::any): Likewise. |
|
668 (octave_base_matrix::all): Likewise. |
|
669 |
4014
|
670 * Makefile.in: Use $@-t instead of $@.t. |
|
671 (doc-files): Use move-if-change when creating doc-files. |
|
672 |
|
673 * error.cc (warning): Don't print warning backtrace at top level. |
|
674 |
4011
|
675 * ov-cell.cc (octave_cell::print_raw): Print empty dimensions too. |
|
676 (octave_cell::print_name_tag): Don't print new line if cell is empty. |
|
677 |
|
678 * octave.cc (intern_argv): Don't install __argv__. |
|
679 |
|
680 * defun-int.h (UNDERSCORIFY): Delete. |
|
681 (DEFCONST_INTERNAL): Don't install double underscore versions of |
|
682 constants since they aren't really needed. |
|
683 (DEFCONSTX_INTERNAL): Likewise. |
|
684 |
4009
|
685 2002-07-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
686 |
|
687 * symtab.cc (symbol_table::clear (void)): Clear all records. |
|
688 (symbol_table::clear (const std::string&)): Delete second arg. |
|
689 Clear any symbol that matches, regardless of type. |
|
690 |
|
691 * symtab.h (symbol_table::variable_name_list): New function. |
|
692 (symbol_table::global_variable_name_list): Likewise. |
|
693 (symbol_table::user_function_name_list): Likewise. |
|
694 |
|
695 * symtab.h, symtab.cc (symbol_table::clear_variables): New function. |
|
696 (symbol_table::clear_functions): Likewise. |
|
697 (symbol_table::clear_globals): Likewise. |
|
698 (symbol_table::clear_variable): New function. |
|
699 (symbol_table::clear_function): Likewise. |
|
700 (symbol_table::clear_global): Likewise. |
|
701 (symbol_table::clear_variable_pattern): New function. |
|
702 (symbol_table::clear_function_pattern): Likewise. |
|
703 (symbol_table::clear_global_pattern): Likewise. |
|
704 |
|
705 * variables.cc (name_matches_any_pattern): Rename from |
|
706 var_matches_any_pattern. |
|
707 (is_local_variable): New static inline function. |
|
708 (maybe_warn_exclusive): Likewise. |
|
709 (do_clear_all): Likewise. |
|
710 (do_clear_functions): Likewise. |
|
711 (do_clear_globals): Likewise. |
|
712 (do_clear_variables): Likewise. |
|
713 (do_clear_function): Likewise. |
|
714 (do_clear_global): Likewise. |
|
715 (do_clear_variable): Likewise. |
|
716 (do_clear_symbol): Likewise. |
|
717 (do_clear_function_pattern): Likewise. |
|
718 (do_clear_global_pattern): Likewise. |
|
719 (do_clear_variable_pattern): Likewise. |
|
720 (do_clear_symbol_pattern): Likewise. |
|
721 (do_clear_functions): Likewise. |
|
722 (do_clear_functions): Likewise. |
|
723 (do_clear_globals): Likewise. |
|
724 (do_clear_variables): Likewise. |
|
725 (do_clear_symbols): Likewise. |
|
726 (do_matlab_compatible_clear): Likewise. |
|
727 (CLEAR_OPTION_ERROR): New macro. |
|
728 (Fclear): Rewrite for Matlab compatibility and to cope with new |
|
729 symbol table semantics. |
|
730 |
|
731 2002-07-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
732 |
|
733 * symtab.cc (symbol_table::clear): Simply clear everything. |
|
734 (symbol_table::clear_functions, symbol_table::clear_globals, |
|
735 symbol_table::clear_all): New functions. |
|
736 |
|
737 * symtab.h (symbol_record::symbol_def::next_elem): Delete. |
|
738 (symbol_record::symbol_def::symbol_def): Delete intializer. |
|
739 |
|
740 * symtab.h, symtab.cc (symbol_record::push_def): Delete. |
|
741 (symbol_record::remove_top_def): Delete. |
|
742 (symbol_record::replace_all_defs): Delete. |
|
743 (symbol_record::hides_fcn): Delete. |
|
744 (symbol_record::hides_builtin): Delete. |
|
745 |
|
746 * symtab.h (symbol_table::~symbol_table): Call clear before |
|
747 deleting the table. |
|
748 |
|
749 * variables.cc (initialize_symbol_tables): Create fbi_sym_tab too. |
|
750 (Fexist): Look in fbi_sym_tab, not global_sym_tab. |
|
751 |
|
752 * parse.y (function_symtab): Rename from global_symtab. |
|
753 Set curr_sym_tab to fbi_sym_tab, not global_sym_tab. |
|
754 Change all uses of global_symtab to be function_symtab instead. |
|
755 (frob_function): Rename and look for function name in fbi_sym_tab, |
|
756 not global_sym_tab. |
|
757 (parse_fcn_file): Clear function name from fbi_sym_tab, not |
|
758 global_sym_tab. |
|
759 |
|
760 * load-save.cc (save_vars): Look for built-in vars in fbi_sym_tab. |
|
761 * symtab.cc (symbol_record::link_to_builtin_variable): Likewise. |
|
762 * variables.cc (is_builtin_variable): Likewise. |
|
763 (bind_ans): Likewise. |
|
764 (bind_builtin_constant): Likewise. |
|
765 (bind_builtin_variable): Likewise. |
|
766 (builtin_string_variable): Likewise. |
|
767 (builtin_real_scalar_variable): Likewise. |
|
768 (builtin_any_variable): Likewise. |
|
769 (is_text_function_name): Likewise, for functions. |
|
770 (force_link_to_function): Likewise. |
|
771 (is_builtin_function_name): Likewise. |
|
772 (is_mapper_function_name): Likewise. |
|
773 (is_valid_function): Likewise. |
|
774 (Fclear): Likewise. |
|
775 (F__print_symtab_info__): Likewise. |
|
776 * defun.cc (print_usage): Likewise. |
|
777 (install_builtin_mapper): Likewise. |
|
778 (install_builtin_function): Likewise. |
|
779 (install_dld_function): Likewise. |
|
780 (Falias): Likewise. |
|
781 * dynamic-ld.cc (clear_function): Likewise. |
|
782 * variables.cc (do_who): Likewise, for built-ins and functions. |
|
783 (link_to_builtin_or_function): Likewise. |
|
784 * help.cc (LIST_SYMBOLS): Likewise. |
|
785 (make_name_list): Handle fbi_sym_tab too. |
|
786 |
|
787 * variables.cc (fbi_sym_tab): New symbol table. |
|
788 * variables.h (fbi_sym_tab): Provide decl. |
|
789 |
|
790 2002-07-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
791 |
|
792 * symtab.h (symbol_record::alias): Delete unused arg force. |
|
793 Change all callers. |
|
794 |
|
795 * variables.cc (link_to_global_variable): Give local variable |
|
796 global value. |
|
797 |
|
798 * pt-id.cc (tree_identifier::link_to_global): Warn about global |
|
799 variables that have been defined before being declared global. |
|
800 for a global variable to be used before it is declared global. |
|
801 * pt-decl.cc (tree_global_command::do_init): Handle possible error |
|
802 from tree_identifier::link_to_global. |
|
803 |
4005
|
804 2002-07-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
805 |
|
806 * ov.cc (silent_functions, Vsilent_functions): Move here. |
|
807 (octave_value::print_with_name): Don't print anything if we are |
|
808 evaluating a function and Vsilent_functions is true. |
|
809 |
|
810 * pt-stmt.cc: From here. |
|
811 (symbols_of_pt_stmt): Delete. |
|
812 (tree_statement_list::eval): Don't bother with Vsilent_functions here. |
|
813 |
3998
|
814 2002-07-24 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
815 |
|
816 * Makefile.in (OPT_HANDLERS): New targets. |
4002
|
817 (doc-files): New target. |
|
818 (gendoc.cc): Depend on doc-files, not $(DOC_FILES). |
3998
|
819 |
|
820 * DLD-FUNCTIONS/daspk.cc, DLD-FUNCTIONS/dasrt.cc, |
|
821 DLD-FUNCTIONS/dassl.cc, DLD-FUNCTIONS/fsolve.cc, |
|
822 DLD-FUNCTIONS/lsode.cc, DLD-FUNCTIONS/odessa.cc |
|
823 DLD-FUNCTIONS/quad.cc: Replace option handling code with include |
|
824 directive. |
|
825 |
|
826 2002-07-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
827 |
|
828 * pt-loop.cc (tree_simple_for_command::eval): Once we know the RHS |
|
829 is a matrix type check for real_type, not real_matrix. |
|
830 |
|
831 2002-07-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
832 |
|
833 * DLD-FUNCTIONS/quad.cc (quad): Cope with changes to Quad constructors. |
|
834 |
3997
|
835 2002-07-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
836 |
|
837 * DLD-FUNCTIONS/daspk.cc (Fdaspk): Also return istate and error |
|
838 message. Only generate error if user is not at least requesting |
|
839 the istate output. |
|
840 * DLD-FUNCTIONS/dasrt.cc (Fdasrt): Likewise. |
|
841 * DLD-FUNCTIONS/dassl.cc (Fdassl): Likewise. |
|
842 * DLD-FUNCTIONS/lsode.cc (Fodessa): Likewise. |
|
843 |
3990
|
844 2002-07-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
845 |
3992
|
846 * DLD-FUNCTIONS/dasrt.cc (Fdasrt): No need to find ng here. |
3993
|
847 (dasrt_user_j): New function. |
|
848 (Fdasrt): Handle Jacobian function. |
3992
|
849 |
3991
|
850 * DLD-FUNCTIONS/dassl.cc (dassl_user_jacobian): New function. |
|
851 (Fdassl): Handle Jacobian function. |
|
852 |
3990
|
853 * DLD-FUNCTIONS/dasrt.cc: New file. |
|
854 * Makefile.in (DLD_XSRC): Add it to the list. |
|
855 |
3988
|
856 2002-07-12 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
857 |
|
858 * lex.l (@): Handle new token. |
|
859 * parse.y (constant): Accept function handle syntax. |
|
860 (make_constant): Create function handles here. |
|
861 |
3986
|
862 2002-07-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
863 |
|
864 * defun.cc (check_version): Improve error message. |
|
865 * error.cc (warning): Only print backtrace once per warning series. |
|
866 Print backtrace before warning messages. |
|
867 |
3984
|
868 2002-07-10 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
869 |
3985
|
870 * lex.l (maybe_unput_comma): Also handle '{' as an indexing op. |
|
871 |
3984
|
872 * DLD-FUNCTIONS/odessa.cc: New file. |
|
873 * Makefile.in (DLD_XSRC): Add it to the list. |
|
874 |
3977
|
875 2002-07-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
876 |
|
877 * pt-assign.cc (tree_multi_assignment::rvalue): Call |
|
878 lhs->nargout_count, not lhs->length. |
|
879 |
|
880 * pt-arg-list.cc (tree_argument_list::convert_to_const_vector): |
|
881 Handle cs-list objects here. |
|
882 (tree_argument_list::nargout_count): New function. |
|
883 * pt-arg-list.h: Provide decl. |
|
884 |
|
885 * ov-cs-list.h, ov-cs-list.cc: New files. |
|
886 * Makefile.in: Add them to the appropriate lists. |
|
887 |
|
888 * ov.cc: Include ov-cs-list.h. |
|
889 New arg, is_cs_list for constructor taking octave_value_list arg. |
|
890 (install_types): Register ov_cs_list. |
|
891 * ov.h (octave_value::is_cs_list): New function. |
|
892 * ov-base.h (octave_base_value::is_cs_list): Likewise. |
|
893 * ov-cell.cc (octave_cell::subsref): Return cs-list for "{" indexing. |
|
894 |
3974
|
895 2002-07-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
896 |
3976
|
897 * pt-mat.cc (Vempty_list_elements_ok): Default value is now 1. |
|
898 * octave.cc (maximum_braindamage): No longer need to set value here. |
|
899 |
3975
|
900 * ov-usr-fcn.cc (Fva_arg, Fva_start, Fvr_val): Warn that these |
|
901 functions are deprecated. |
3974
|
902 * lex.l (EL): Warn that `...' is deprecated. |
|
903 * ov-usr-fcn.cc (octave_user_function::varargout_to_vr_val, |
|
904 octave_user_function::has_varargout): New functions. |
|
905 (Fvr_val): Ensure varargout is not defined. |
|
906 (octave_user_function::do_multi_index_op): Copy values from |
|
907 varargout here. |
|
908 |
3972
|
909 2002-07-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
910 |
3974
|
911 * ov-usr-fcn.h (octave_user_function::varargin_sr): New data member. |
|
912 * ov-usr-fcn.cc (octave_user_function::octave_user_function): |
|
913 Initialize it. |
|
914 (bind_automatic_vars): Handle varargin. Change all callers. |
|
915 |
|
916 * octave.gperf: Handle varargin and varargout as keywords. |
|
917 * lex.l (is_keyword): Likewise. |
|
918 (IDENT): Move all actions into handle_identifier. |
|
919 (handle_identifier): Now takes no args. |
|
920 |
3973
|
921 * lex.l (EL): Return VARARGIN or VARARGOUT, not ELLIPSIS. |
|
922 * parse.y (param_list): Use VARARGIN instead of ELLIPSIS. |
|
923 (return_list): Use VARARGOUT instead of ELLIPSIS. |
|
924 |
3972
|
925 * data.cc (make_diag const octave_value&, const octave_value&): |
|
926 Allow first arg to be 1x0 or 0x1. |
|
927 |
3971
|
928 2002-07-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
929 |
|
930 * defaults.cc (loadpath): Comment out previous change. |
|
931 |
|
932 * DLD-FUNCTIONS/fsolve.cc (Ffsolve): Return message too. Only |
|
933 generate error if user is not at least requesting the info output. |
|
934 |
|
935 * DLD-FUNCTIONS/lsode.cc (Flsode): Fix typos in setting return value. |
|
936 |
3968
|
937 2002-07-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
938 |
3969
|
939 * oct-stream.cc (printf_value_cache::double_value): If the current |
|
940 element is empty and there are no more elements in the value list, |
|
941 set curr_state to conversion_error. |
|
942 |
3968
|
943 * input.cc (initialize_command_input): Include (, ), {, and } as |
|
944 word break characters. |
|
945 |
|
946 * variables.cc (looks_like_struct): Don't evaluate text if it is a |
3969
|
947 function. From Ben Sapp <bsapp@lanl.gov>. |
3968
|
948 |
|
949 * symtab.h (symbol_record::is_function): Also return true if |
|
950 symbol is a text function or a mapper function. |
|
951 |
3965
|
952 2002-06-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
953 |
3967
|
954 * defaults.cc (loadpath): Warn if loadpath doesn't contain |
|
955 leading, trailing, or doubled colon. |
|
956 |
3965
|
957 * pt-decl.cc (tree_static_command::eval, tree_global_command::eval): |
|
958 Call error for any non-zero value of error_state. |
|
959 * pt-select.cc (tree_if_command::eval): Likewise. |
|
960 * pt-loop.cc (tree_while_command::eval_error): Don't check error_state. |
|
961 (tree_do_until_command::eval_error): Likewise. |
|
962 (tree_simple_for_command::eval_error): Likewise. |
|
963 (tree_complex_for_command::eval_error): Likewise. |
|
964 * pt-assign.cc (tree_multi_assignment::eval_error): Likewise. |
|
965 (tree_simple_assignment::eval_error): Likewise. |
|
966 * pt-idx.cc (tree_index_expression::eval_error): Likewise. |
|
967 * pt-colon.cc (tree_colon_expression::eval_error): Likewise. |
|
968 (tree_colon_expression::rvalue): Delete rendundant error_state check. |
|
969 |
3962
|
970 2002-06-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
971 |
|
972 * ov-mapper.cc (MAPPER_LOOP, MAPPER_LOOP_1, MAPPER_LOOP_2): New macros. |
|
973 (octave_mapper::apply): Use them to inline the mapper loops. |
|
974 |
|
975 * pt-unop.cc (tree_prefix_expression::rvalue): Ensure that the |
|
976 operand is defined for op_incr and op_decr. |
|
977 (tree_postfix_expression::rvalue): Likewise. |
|
978 From Ben Sapp <bsapp@lanl.gov>. |
|
979 |
|
980 2002-06-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
981 |
|
982 * ov-mapper.cc (octave_mapper::apply): Exit loops on error. |
|
983 |
|
984 2002-06-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
985 |
|
986 * ov-struct.cc (octave_struct::print_raw): Print field names with |
|
987 data types if Vstruct_levels_to_print is 0. |
|
988 (octave_struct::print_name_tag): Don't emit newline if |
|
989 Vstruct_levels_to_print is negative. |
|
990 * ov.cc (struct_levels_to_print): Allow negative values too. |
|
991 |
3956
|
992 2002-05-24 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
993 |
3959
|
994 * DLD-FUNCTIONS/lsode.cc (Flsode): Also return istate and error |
|
995 message. Only generate error if user is not at least requesting |
|
996 the istate output. |
|
997 |
3956
|
998 * load-save.cc (hdf5_import_multidim, hdf5_check_attr, |
|
999 hdf5_callback_data, hdf5_read_next_data, read_hdf5_data, |
|
1000 add_hdf5_data): Use 0, not NULL in calls to HDF routines. |
|
1001 |
|
1002 * oct-procbuf.cc (octave_procbuf::open): Use NULL, not 0 as last |
|
1003 arg in call to execl.xo |
|
1004 |
|
1005 * debug.cc (get_user_function): Initialise dbg_fcn to 0, not NULL. |
|
1006 |
3952
|
1007 2002-05-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1008 |
|
1009 * DLD-FUNCTIONS/lsode.cc (LSODE_options::da_set_opt_mf, |
|
1010 LSODE_options::da_get_opt_mf): New typedefs. |
|
1011 (LSODE_OPTIONS::da_set_fcn, LSODE_OPTIONS::da_get_fcn): New fields. |
|
1012 (lsode_option_table): Fill them in. |
|
1013 (set_lsode_option (const Array<double>&)): New function. |
|
1014 (print_lsode_option_list): Handle vector options. |
|
1015 (show_lsode_option_list): Likewise. |
|
1016 (Flsode_options): Likewise. |
|
1017 |
3955
|
1018 * DLD-FUNCTIONS/lsode.cc (LSODE_options::s_set_opt_mf, |
|
1019 LSODE_options::s_get_opt_mf): New typedefs. |
|
1020 (LSODE_OPTIONS::s_set_fcn, LSODE_OPTIONS::s_get_fcn): New fields. |
|
1021 (lsode_option_table): Fill them in. |
|
1022 (set_lsode_option (const std::string&)): New function. |
|
1023 (print_lsode_option_list): Handle string options. |
|
1024 (show_lsode_option_list): Likewise. |
|
1025 (Flsode_options): Likewise. |
|
1026 |
3948
|
1027 2002-05-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1028 |
3951
|
1029 * c-file-ptr-stream.h (c_file_ptr_buf::fclose): New function. |
|
1030 (c_file_ptr_buf::c_file_ptr_buf): Use it as default argument |
|
1031 instead of extern "C" fclose function. |
|
1032 (i_c_file_ptr_stream::i_c_file_ptr_stream): Likewise. |
|
1033 (o_c_file_ptr_stream::o_c_file_ptr_stream): Likewise. |
|
1034 * oct-stdstrm.h (octave_istdiostream::octave_istdiostream): Likewise. |
|
1035 (octave_istdiostream::create): Likewise. |
|
1036 * oct-stdstrm.h (octave_ostdiostream::octave_ostdiostream): Likewise. |
|
1037 (octave_ostdiostream::create): Likewise. |
|
1038 |
|
1039 * oct-prcstrm.cc (cxx_pclose): New static function. |
|
1040 (octave_iprocstream::octave_iprocstream): Pass it to |
|
1041 octave_istdiostream constructor instead of extern "C" pclose function. |
|
1042 (octave_oprocstream::octave_oprocstream): Pass it to |
|
1043 octave_ostdiostream constructor instead of extern "C" pclose function. |
|
1044 |
3948
|
1045 * debug.cc (Fdbtype): Use C++ strings, not C strings. |
|
1046 |
3946
|
1047 2002-05-22 Mumit Khan <khan@nanotech.wisc.edu> |
|
1048 |
|
1049 * debug.cc: Include cstdlib instead of stdlib.h. Include cstring. |
|
1050 (dbtype): Use strchr instead of index. |
|
1051 * TEMPLATE-INST/Array-tc.cc (Array<octave_value>::resize_fill_value): |
|
1052 Fix template specialization syntax. |
|
1053 |
3944
|
1054 2002-05-17 Mumit Khan <khan@nanotech.wisc.edu> |
|
1055 |
|
1056 * c-file-ptr-stream.h (OCTAVE_STD_FILEBUF): New macro to handle |
|
1057 various forms of extensions to std::filebuf. |
|
1058 (c_file_ptr_buf::c_file_ptr_buf): Use. |
|
1059 * pt-idx.cc (tree_index_expression::tree_index_expression): Remove |
|
1060 default arguments are from definition. |
|
1061 * symtab.cc (SYMBOL_DEF::print_info): Add std::. |
|
1062 (symbol_record::print_info): Likewise. |
|
1063 (symbol_table::print_info): Likewise. |
|
1064 |
3936
|
1065 2002-05-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1066 |
3943
|
1067 * oct-map.cc (Octave_map::assign): Resize RHS if it is shorter |
|
1068 than existing struct array. |
|
1069 |
3940
|
1070 * ov-cell.cc (octave_cell::subsasgn): If an error has occurred, |
|
1071 skip final assignment step. |
|
1072 * ov-list.cc (octave_list::subsasgn): Likewise. |
|
1073 * oct-lvalue.cc (octave_lvalue::assign): Add parens to clarify intent. |
|
1074 (octave_lvalue::do_unary_op): Likewise. |
|
1075 |
3939
|
1076 * parse.y (function_end): Also accept end of input as end of |
|
1077 function if input is coming from an eval string. |
|
1078 |
3936
|
1079 * pr-output.cc (pr_any_float): Don't convert -0 to 0. |
|
1080 |
3934
|
1081 2002-05-15 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1082 |
3935
|
1083 * input.cc (generate_completion): If it looks like we are |
|
1084 completing a struct, set completion append char to '\0'. |
|
1085 |
|
1086 * variables.cc (generate_struct_completions): Temporarily set |
|
1087 warnings off here. |
|
1088 |
3934
|
1089 * error.cc (warning): Don't do anything if Vdebug_option == "off". |
|
1090 Only print backtrace if Vdebug_option == "backtrace". |
|
1091 (handle_message): Now returns a string containing the text of the |
|
1092 formatted message. Change all callers. |
|
1093 (Fwarning): Now a text-style function. Handle Matlab-compatible |
|
1094 warning options. |
3935
|
1095 (Flasterr, Flastwarn, set_warning_option): New functions. |
|
1096 (Vlast_error_message, Vlast_warning_message, Vwarning_frequency, |
|
1097 Vwarning_option): New static variables. |
3934
|
1098 (vwarning): Set Vlast_warning_message here too. |
3935
|
1099 (verror): Set Vlast_error_message here too. |
3934
|
1100 |
3933
|
1101 2002-05-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1102 |
|
1103 * ov.h (octave_value::get_count): Now const. |
|
1104 |
|
1105 * ov.h, ov.cc (octave_value::do_non_const_unary_op, |
|
1106 octave_value::assign): Idx is now a list of octave_value_list |
|
1107 objects. |
|
1108 |
|
1109 * ov-base.cc, ov-base.h (octave_base_value::do_struct_elt_index_op, |
|
1110 octave_base_value::struct_elt_ref): Delete. |
|
1111 * ov-struct.cc, ov-struct.h (octave_sruct::do_struct_elt_index_op, |
|
1112 octave_struct::struct_elt_ref): Delete. |
|
1113 * ov.cc, ov.h (octave_value::do_struct_elt_index_op, |
|
1114 octave_value::struct_elt_ref, octave_value::assign_struct_elt, |
|
1115 octave_value::convert_and_assign, octave_value::try_assignment, |
|
1116 octave_value::try_assignment_with_conversion, |
|
1117 octave_value::simple_assign): Delete. |
|
1118 |
|
1119 * parse.y (make_index_expression): Type is now a single |
|
1120 character. Change all callers. If expr is already an index |
|
1121 expression, append index to it. |
|
1122 (make_indirect_ref): Likewise. |
|
1123 |
|
1124 * pt-pr-code.cc (octave_print_internal (std::ostream&, const |
|
1125 Cell&, bool, int)): Now just a dummy function, panic if called. |
|
1126 |
|
1127 * pt-idx.cc (tree_index_expression::make_arg_struct): New function. |
|
1128 (tree_index_expression::type): Delete enum, rename from itype, now |
|
1129 a string. |
|
1130 (tree_index_expression::arg_nm): Now a list of string_vector objects. |
|
1131 (tree_index_expression::idx): Now a list of tree_argument_list* |
|
1132 objects. |
|
1133 (tree_index_expression::is_index_expression): Always return true. |
|
1134 (tree_index_expression::apend, make_value_list, make_subs_cell): |
|
1135 New functions. |
|
1136 |
|
1137 * pt-pr-code.cc (visit_index_expression): Handle new definition of |
|
1138 tree_index_expression object. |
|
1139 * pt-check.cc (visit_index_expression): Likewise. |
|
1140 * pt-bp.cc (visit_index_expression): Likewise. |
|
1141 |
|
1142 * ov-usr-fcn.h (octave_user_function::restore_args_passed): |
|
1143 Clear args_passed even if nothing was saved. |
|
1144 |
|
1145 * ov-base.cc (octave_base_value::subsasgn, |
|
1146 octave_base_value::map_keys, octave_base_value::print_info): |
|
1147 New functions. |
|
1148 |
|
1149 * ov.h, ov.cc (octave_value::map_keys, octave_value::print_info, |
|
1150 octave_value::subsref, octave_value::subsasgn, |
|
1151 octave_value::numeric_assign, octave_value::next_subsref): |
|
1152 New functions. |
|
1153 (octave_value::empty_conv): New static function. |
|
1154 (octave_value (octave_value *, int)): New arg, count. |
|
1155 |
|
1156 * ov-base-mat.cc (octave_base_matrix<MT>::subsref, |
|
1157 octave_base_matrix<MT>::subsasgn): New functions. |
|
1158 * ov-base-mat.h: Provide decls. |
|
1159 |
|
1160 * ov-builtin.cc (octave_builtin::subsref): New function. |
|
1161 * ov-builtin.h: Provide decl. |
|
1162 |
|
1163 * ov-range.cc (octave_range::subsref): New function. |
|
1164 * ov-range.h: Provide decl. |
|
1165 |
|
1166 * ov-cell.cc (octave_cell::subsref, octave_cell::subsasgn, |
|
1167 octave_cell::list_value, octave_cell::print, |
|
1168 octave_cell::print_raw, octave_cell::print_name_tag): New functions. |
|
1169 * ov-cell.h: Provide decls. |
|
1170 |
|
1171 * ov-struct.cc (octave_struct::dotref, octave_struct::subsref, |
|
1172 octave_struct::subsasgn, gripe_invalid_index, |
|
1173 gripe_invalid_index_for_assignment, grip_invalid_index_type, |
|
1174 gripe_failed_assignment): New functions. |
|
1175 (octave_struct::numeric_conv): New static function. |
|
1176 * ov-struct.h: Provide decls. |
|
1177 (octave_struct::is_constant): Return true. |
|
1178 (octave_struct::map_keys): New function. |
|
1179 |
|
1180 * ov-list.cc (octave_list::subsref, octave_list::subsasgn): |
|
1181 New functions. |
|
1182 * ov-list.h: Provide decls. |
|
1183 |
|
1184 * ov-usr-fcn.cc (octave_user_function::subsref, |
|
1185 octave_user_function::print_symtab_info): New functions. |
|
1186 * ov-usr-fcn.h: Provide decl. |
|
1187 |
|
1188 * ov-mapper.cc (octave_mapper::subsref): New function. |
|
1189 * ov-mapper.h: Provide decl. |
|
1190 |
|
1191 * ov-base.cc (octave_base_value::subsref, |
|
1192 octave_base_value::subsasgn): New functions. |
|
1193 * ov-base.h: Provide decls. |
|
1194 |
|
1195 * ov-base.cc (octave_base_value::do_index_op): New arg, resize_ok. |
|
1196 * ov-base-mat.cc (octave_base_matrix<MT>::do_index_op): Likewise. |
|
1197 * ov-base-nd-array.cc (octave_base_nd_array<AT>::do_index_op): Ditto. |
|
1198 * ov-bool-mat.cc (octave_bool::do_index_op): Ditto. |
|
1199 * ov-str-mat.cc (octave_char_matrix_str::do_index_op): Ditto. |
|
1200 * ov-range.cc (octave_range::do_index_op): Ditto. |
|
1201 * ov-list.cc (octave_list::do_index_op): Ditto. |
|
1202 * ov.cc (octave_value::do_index_op): Ditto. |
|
1203 |
|
1204 * ov-base-mat.cc (octave_base_matrix<MT>::print_info): New function. |
|
1205 |
|
1206 * ov-base-mat.h (octave_base_matrix<MT>::empty_clone): New function. |
|
1207 * ov-base-nd-array.h (octave_base_nd_array<AT>::empty_clone): Ditto. |
|
1208 * ov-base.h (octave_base_value::empty_clone): Ditto. |
|
1209 * ov-bool-mat.h (octave_bool::empty_clone): Ditto. |
|
1210 * ov-ch-mat.h (octave_char_matrix::empty_clone): Likewise. |
|
1211 * ov-colon.h (octave_magic_colon::empty_clone): Likewise. |
|
1212 * ov-complex.h (octave_complex::empty_clone): Likewise. |
|
1213 * ov-cx-mat.h (octave_complex_matrix::empty_clone): Likewise. |
|
1214 * ov-fcn.cc (octave_function::empty_clone): Likewise. |
|
1215 * ov-file.h (octave_file::empty_clone): Likewise. |
|
1216 * ov-range.h (octave_range::empty_clone): Likewise. |
|
1217 * ov-list.h (octave_list::empty_clone): Likewise. |
|
1218 * ov-re-mat.h (octave_matrix::empty_clone): Likewise. |
|
1219 * ov-re-nd-array.h (octave_double_nd_array::empty_clone): Likewise. |
|
1220 * ov-str-mat.h (octave_char_matrix_str::empty_clone): Likewise. |
|
1221 * ov-struct.h (octave_struct::empty_clone): Likewise. |
|
1222 * ov-va_args.h (octave_all_va_args::empty_clone): Likewise. |
|
1223 * ov.h (octave_value::empty_clone): Likewise. |
|
1224 |
|
1225 * ov-base-mat.h (octave_base_matrix<MT>::clone): Now const. |
|
1226 * ov-base-nd-array.h (octave_base_nd_array<AT>::clone): Likewise. |
|
1227 * ov-base.h (octave_base_value::clone): Likewise. |
|
1228 * ov-bool-mat.h (octave_bool::clone): Likewise. |
|
1229 * ov-ch-mat.h (octave_char_matrix::clone): Likewise. |
|
1230 * ov-colon.h (octave_magic_colon::clone): Likewise. |
|
1231 * ov-complex.h (octave_complex::clone): Likewise. |
|
1232 * ov-cx-mat.h (octave_complex_matrix::clone): Likewise. |
|
1233 * ov-fcn.h (octave_function::clone): Likewise. |
|
1234 * ov-file.h (octave_file::clone): Likewise. |
|
1235 * ov-range.h (octave_range::clone): Likewise. |
|
1236 * ov-list.h (octave_list::clone): Likewise. |
|
1237 * ov-re-mat.h (octave_matrix::clone): Likewise. |
|
1238 * ov-re-nd-array.h (octave_double_nd_array::clone): Likewise. |
|
1239 * ov-str-mat.h (octave_char_matrix_str::clone): Likewise. |
|
1240 * ov-struct.h (octave_struct::clone): Likewise. |
|
1241 * ov-va_args.h (octave_all_va_args::clone): Likewise. |
|
1242 * ov.h (octave_value::clone): Likewise. |
|
1243 |
|
1244 * oct-lvalue.cc (octave_lvalue::assign, octave_lvalue::set_index, |
|
1245 octave_lvalue::do_unary_op): Idx is now a list of indices. Simplify. |
|
1246 * oct-lvalue.h (octave_lvalue::value): Simplify. |
|
1247 (octave_lvalue::struct_elt_names): Delete data member. |
|
1248 (octave_lvalue::type): Now string |
|
1249 Update decls. |
|
1250 |
|
1251 * pt-exp.h (tree_expression::is_indirect_ref): |
|
1252 Delete virtual function. |
|
1253 |
|
1254 * pt-plot.cc (subplot::extract_plot_data): Use subsref, instead of |
|
1255 do_index_op. |
|
1256 |
|
1257 * pt-stmt.cc (tree_statement::eval): Don't try to avoid binding |
|
1258 ans for structure references. |
|
1259 |
|
1260 * symtab.cc (symbol_record::symbol_def::print_info): Rename from |
|
1261 symbol_record::symbol_def::dump_symbol_info. |
|
1262 (symbol_record::print_info): Rename from |
|
1263 symbol_record::dump_symbol_info. Now const.. |
|
1264 (symbol_record::print_symbol_info_line): Now const. |
|
1265 (symbol_table::print_info): Rename from print_stats. Accept |
|
1266 ostream arg. Now const. Print more info. |
|
1267 * symtab.h: Update decls. |
|
1268 |
|
1269 * toplev.cc (octave_config_info): Indexing a map now returns a |
|
1270 list, but we only want to return the first element. |
|
1271 |
|
1272 * variables.cc (generate_struct_completions, looks_like_struct): |
|
1273 Simplify using eval_string. |
|
1274 (F__print_symtab_info__): Rename from F__dump_symtab_info__. |
|
1275 Handle "top-level" and individual function names in addition to |
|
1276 "global". |
|
1277 (F__print_symbol_info__): Rename from F___dump_symbol_info__. |
|
1278 |
|
1279 * octave.cc (intern_argv): Built-in variable argv is now a cell array. |
|
1280 |
|
1281 * ov-complex.cc (valid_scalar_indices): Delete. |
|
1282 * ov-scalar.cc (valid_scalar_indices): Delete. |
|
1283 |
|
1284 * oct-obj.cc (octave_value_list::valid_scalar_indices): New function. |
|
1285 (octave_value_list::index): New arg, resize_ok. |
|
1286 * oct-obj.h: Provide decls. |
|
1287 |
|
1288 * oct-map.cc (Octave_map::keys): Rename from make_name_list. |
|
1289 Change all uses. |
|
1290 (Octave_map::assign, Octave_map::index): New functions. |
|
1291 * oct-map.h: Provide decls. |
|
1292 |
|
1293 * data.cc (Fstruct_contains): Use map_value instead of |
|
1294 do_struct_elt_index_op. |
|
1295 |
|
1296 * Cell.h (Cell (const Array2<octave_value>&, int, int)): |
|
1297 New constructor. |
|
1298 (Cell::resize_fill_value): New static function. |
|
1299 |
|
1300 * input.cc (initialize_command_input): Set basic and completer |
|
1301 word break characters. |
|
1302 |
3932
|
1303 2002-05-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1304 |
3933
|
1305 * ov.h (octave_value::subsref): New function. |
|
1306 * ov-base.cc (octave_base_value::subsref): Likewise. |
|
1307 |
3932
|
1308 * ov-struct.cc (octave_struct::print_raw): Print scalar struct |
|
1309 arrays more compactly. |
|
1310 |
|
1311 * DLD-FUNCTIONS/time.cc (extract_tm): Handle new struct array def. |
|
1312 |
|
1313 * oct-map.cc (Octave_map::array_len): New data member. |
|
1314 (Octave_map::operator[], Octave_map::contsnts): Return |
|
1315 octave_value_list, not Octave_value. Change callers as necessary. |
|
1316 (Octave_map::assign): New function. |
|
1317 (Octave_map::array_length): New fucntion. |
|
1318 * oct-obj.cc (octave_value_list::assign): New function. |
|
1319 |
3930
|
1320 2002-05-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1321 |
3931
|
1322 * TEMPLATE-INST/Map-oct-obj.cc: New file. |
|
1323 * Makefile.in (TI_XSRC): Add it to the list. |
|
1324 |
|
1325 * oct-map.h (Octave_map): Make CHMap<octave_value_list> a data |
|
1326 member instead of deriving from CHMap<octave_value>, in |
|
1327 preparation for structure arrays. |
|
1328 |
3930
|
1329 * pt-indir.h, pt-indir.cc: Delete. |
|
1330 |
|
1331 * pt-all.h: Don't include pt-indir.h. |
|
1332 |
|
1333 * Makefile.in (PT_SRC): Delete pt-indir.cc from the list. |
|
1334 (PT_INCLUDES): Delete pt-indir.h from the list. |
|
1335 |
|
1336 * pt-walk.h (tree_walker::visit_indirect_ref): Delete. |
|
1337 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_indirect_ref): |
|
1338 Likewise. |
|
1339 * pt-check.h, pt-check.cc (tree_checker::visit_indirect_ref): Likewise. |
|
1340 * pt-bp.h, pt-bp.cc (tree_breakpoint::visit_indirect_ref): Likewise. |
|
1341 |
|
1342 * pt-walk.h: Delete forward decl for tree_indirect_ref. |
|
1343 * variables.h: Likewise. |
|
1344 |
|
1345 * parse.y (make_indirect_ref): Return tree_index_expression, not |
|
1346 tree_indirect_ref. |
|
1347 |
|
1348 * pt-idx.h (tree_index_expression::struct_elt_name): New function. |
|
1349 |
|
1350 * pt-idx.cc (tree_index_expression::lvalue): Handle dot case too. |
|
1351 (tree_index_expression::name): Likewise. |
|
1352 (tree_index_expression rvalue (int)): Likewise. |
|
1353 (tree_index_expression::eval_error): Likewise. |
|
1354 * pt-pr-code.cc (visit_index_expression): Likewise. |
|
1355 * pt-bp.cc (tree_breakpoint::visit_index_expression): Likewise. |
|
1356 |
|
1357 * pt-idx.h (tree_index_expression::dot): New type enum element. |
|
1358 (tree_index_expression::expr_type): New function. |
|
1359 (tree_index_expression::tree_index_expression (tree_expression*, |
|
1360 const std::string&, int, int)): New constructor. |
|
1361 (tree_index_expression::is_index_expression): Return value is now |
|
1362 conditional on itype. |
|
1363 (tree_index_expression::is_indirect_ref): New function. |
|
1364 (tree_index_expression::lvalue_ok): Also return true if itype is dot. |
|
1365 |
3928
|
1366 2002-05-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1367 |
3929
|
1368 * parse.y (ABORT_PARSE): Maybe restore symbol table context too. |
|
1369 |
|
1370 * pt-idx.h (tree_index_expression::type): New enum. |
|
1371 (tree_index_expression::etype): New data member. |
|
1372 * pt-idx.h (tree_index_expression::tree_index_expression): |
|
1373 New arg, t, to set type of index. |
|
1374 * parse.y (make_index_expression): Likewise. |
|
1375 Change all callers. |
|
1376 |
3928
|
1377 * ov-base.cc (cell_conv): New conversion function. |
|
1378 (install_base_type_conversions): Install it. |
|
1379 Install conversion for indexed assignment of octave_cells to |
|
1380 undefined values. |
|
1381 |
|
1382 * TEMPLATE-INST/Array-tc.cc: Instantiate assign functions too. |
|
1383 (Array<octave_value>::resize_fill_value (void)): |
|
1384 Provide specialization for octave_value. |
|
1385 |
|
1386 * ov-cell.cc (octave_cell::assign (const octave_value_list&, |
|
1387 const octave_value&)): New function. |
|
1388 * Cell.h (Cell::Cell (const octave_value&)): New function. |
|
1389 |
|
1390 * OPERATORS/op-cell.cc (install_list_ops): Use DEFASSIGNANYOP_FN |
|
1391 and INSTALL_ASSIGNANYOP, not DEFASSIGNOP_FN and INSTALL_ASSIGNOP. |
|
1392 |
|
1393 2002-05-03 Cai Jianming <caijianming@yahoo.co.uk> |
|
1394 |
|
1395 * OPERATORS/op-cell.cc: New file. |
|
1396 * src/Makefile.in (OP_XSRC): Include it in the list. |
|
1397 |
|
1398 * parse.y (cell): Return a cell type instead of Matrix type. |
|
1399 |
|
1400 * ov.cc (install_types): Install octave_cell type. |
|
1401 |
|
1402 * pr-output.cc (octave_print_internal): Handle Cells. |
|
1403 * pr-output.h (octave_print_internal): Provide decl. |
|
1404 |
|
1405 * ov-cell.h (octave_cell): Derive from octave_base_matrix<Cell>. |
|
1406 * ov-cell.cc (do_index_op, assign, print, print_raw, |
|
1407 print_name_tag): Delete. |
|
1408 |
|
1409 * Cell.cc (allocator, index): Delete. |
|
1410 * Cell.h (Cell): Derive from Array2<octave_value>. |
|
1411 Most functions removed since we can use those from Array2 instead. |
|
1412 |
|
1413 2002-05-02 Cai Jianming <caijianming@yahoo.co.uk> |
|
1414 |
|
1415 * ov-base-mat.cc (octave_base_matrix<MT>::assign): |
|
1416 New function. |
|
1417 * ov-base-mat.h (octave_base_matrix<MT>::assign): Provide decl. |
|
1418 * ov-bool-mat.cc (octave_bool_matrix::assign): Delete. |
|
1419 * ov-bool-mat.h (octave_bool_matrix:assign): Delete decl |
|
1420 * ov-cx-mat.cc (octave_complex_matrix::assign (const |
|
1421 octave_value_list& idx, const ComplexMatrix&)): Delete. |
|
1422 * ov-cx-mat.h (octave_complex_matrix:assign (const |
|
1423 octave_value_list& idx, const ComplexMatrix&)): Replace decl with |
|
1424 function. |
|
1425 * ov-re-mat.cc (octave_bool_matrix::assign): Delete. |
|
1426 * ov-re-mat.h (octave_bool_matrix:assign): Delete decl. |
|
1427 |
3927
|
1428 2002-05-02 Cai Jianming <caijianming@yahoo.co.uk> |
|
1429 |
|
1430 * OPERATORS/op-bm-b.cc: New file.x |
|
1431 * Makefile.in (OP_XSRC): Add it to the list. |
|
1432 |
3920
|
1433 2002-04-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1434 |
3922
|
1435 * octave.cc (print_version_and_exit): Use |
|
1436 OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_AND_WARRANTY, not |
|
1437 OCTAVE_NAME_AND_VERSION. |
|
1438 |
|
1439 * octave.cc (verbose_usage): |
|
1440 Use OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_AND_WARRANTY, not |
|
1441 OCTAVE_NAME_VERSION_AND_COPYRIGHT. |
|
1442 |
|
1443 * version.h (OCTAVE_COPYING_STATEMENT, OCTAVE_WARRANTY_STATEMENT, |
|
1444 OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_AND_WARRANTY, |
|
1445 X_OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_WARRANTY_AND_BUGS, |
|
1446 OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_WARRANTY_AND_BUGS, |
|
1447 OCTAVE_BUGS_STATEMENT): New macros. |
|
1448 (OCTAVE_STARTUP_MESSAGE): Define in terms of |
|
1449 X_OCTAVE_NAME_VERSION_COPYRIGHT_COPYING_WARRANTY_AND_BUGS |
|
1450 to include bugs address and amplified warranty information. |
|
1451 |
3920
|
1452 * DLD-FUNCTIONS/lsode.cc (Flsode): Delete unused variable nsteps. |
|
1453 |
3917
|
1454 2002-04-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1455 |
|
1456 * help.cc (additional_help_message): Use www.octave.org, not |
|
1457 www.che.wisc.edu/octave/octave.html. |
|
1458 * octave.cc (verbose_usage): Likewise. |
|
1459 |
3912
|
1460 2002-04-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1461 |
|
1462 * DLD-FUNCTIONS/daspk.cc: New file. |
|
1463 * Makefile.in (DLD_XSRC): Add it to the list. |
|
1464 |
3910
|
1465 2002-04-25 Paul Kienzle <pkienzle@users.sf.net> |
|
1466 |
|
1467 * DLD-FUNCTIONS/kron.cc: New file. |
|
1468 * Makefile.in (DLD_SRC): Add it to the list. |
|
1469 |
3903
|
1470 2002-04-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1471 |
|
1472 * parse.y (save_symtab): New non-terminal. Save current symbol |
|
1473 table context here. |
|
1474 (function_beg): Use it. |
|
1475 (symtab_context): New file-scope variable. |
|
1476 (recover_from_parsing_function): Restore symbol table context here. |
|
1477 |
3901
|
1478 2002-04-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1479 |
|
1480 * load-save.cc (get_lines_and_columns): Handle CRLF as line |
|
1481 separator in addition to LF. |
|
1482 |
3897
|
1483 2002-04-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1484 |
|
1485 * load-save.cc (hdf5_ofstream::hdf5_ofstream): |
|
1486 Explicitly List std::ostream(0) in constructor. |
|
1487 (hdf5_ifstream::hdf5_ifstream): |
|
1488 Explicitly List std::istream(0) in constructor. |
|
1489 (hdf5_fstreambase::hdf5_fstreambase): Use std::ios::setstate, not set. |
|
1490 (hdf5_fstreambase::close): Likewise. |
|
1491 (hdf5_fstreambase::open): Likewise. |
|
1492 |
3895
|
1493 2002-04-10 Ben Sapp <bsapp@lanl.gov> |
|
1494 |
|
1495 * pt-stmt.cc (delete_breakpoint): List breakpoints if line < 0. |
|
1496 * debug.cc (get_user_function): Check symbol by name first. |
|
1497 (Fdbstop): Rename from Fdbg_set. |
|
1498 (Fdbclear): Rename from Fdbg_delete. |
|
1499 (Fdbstatus): Rename from Fdbg_list. |
|
1500 (Fdbg_where): Rename from Fdbwhere. |
|
1501 (do_dbtype, Fdbtype): New functions. |
|
1502 |
|
1503 2002-04-10 Peter Van Wieren <peter.vanwiere@avlna.com> |
|
1504 |
|
1505 * load-save.cc (save_mat5_binary_element): Save elements of 2d |
|
1506 character matrices in proper order. |
|
1507 |
3893
|
1508 2002-04-09 Paul Kienzle <pkienzle@users.sf.net> |
|
1509 |
|
1510 * utils.cc (do_string_escapes): Handle \0 too. |
|
1511 (undo_string_escape): Likewise. |
|
1512 |
3892
|
1513 2002-04-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1514 |
|
1515 * toplev.cc (octave_config_info): Define struct member EXEEXT, not EXE. |
|
1516 * Makefile.in (install-bin): Use $(EXEEXT), not $(EXE). |
|
1517 * oct-conf.h.in (OCTAVE_CONF_EXEEXT): Define and substitute |
|
1518 OCTAVE_CONF_EXEEXT, not OCTAVE_CONF_EXE. |
|
1519 |
3887
|
1520 2002-04-03 Steven G. Johnson <stevenj@alum.mit.edu> |
|
1521 |
|
1522 * DLD-FUNCTIONS/balance.cc: Use F77_FUNC instead of F77_FCN. |
|
1523 * DLD-FUNCTIONS/qz.cc: Likewise. |
|
1524 * DLD-FUNCTIONS/rand.cc: Likewise. |
|
1525 * octave.cc: Likewise. |
3910
|
1526 * toplev.cc (Foctave_config_info): Delete use of FORTRAN_MAIN_FLAG. |
3887
|
1527 * oct-conf.h.in: Delete use of OCTAVE_CONF_FORTRAN_MAIN_FLAG. |
|
1528 * syscalls.cc (mk_stat_map): |
|
1529 Use HAVE_STRUCT_STAT_ST_RDEV instead of HAVE_ST_RDEV. |
|
1530 Use HAVE_STRUCT_STAT_ST_BLKSIZE instead of HAVE_ST_BLKSIZE. |
|
1531 Use HAVE_STRUCT_STAT_ST_BLOCKS instead of HAVE_ST_BLOCKS. |
|
1532 |
3881
|
1533 2002-04-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1534 |
3883
|
1535 * lex.l, lex.h (parser_end_of_input): New global variable. |
|
1536 (reset_parser): Reset it here. |
|
1537 * parse.y (input): Set it to TRUE on EOF. |
|
1538 (parse_and_executed): Save and restore it, check it to correctly |
|
1539 break out of parse-execute loop. |
|
1540 (parse_fcn_file): Likewise. |
|
1541 (eval_string): Likewise. |
3884
|
1542 * toplev.cc (main_loop): Likewise. |
3883
|
1543 |
3881
|
1544 * parse.y (input): Call YYACCEPT for END_OF_INPUT. |
3883
|
1545 Return no-op command for bare newline. |
3881
|
1546 (parse_and_execute): Handle change in yyparse return value semantics. |
3883
|
1547 |
3881
|
1548 * toplev.cc (main_loop): Likewise. |
|
1549 |
3880
|
1550 2002-03-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1551 |
|
1552 * parse.y (parse_fcn_file): Call error if there is no input file. |
|
1553 (parse_and_execute (FILE *): Protect get_input_from_eval_string. |
|
1554 Set get_input_from_eval_string to false before calling yyparse. |
|
1555 * lex.l (reset_parser): Also skip yyrestart (stdin) if |
|
1556 reading_script_file is true. |
|
1557 |
3877
|
1558 2002-03-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1559 |
|
1560 * pt-loop.cc (evaluating_looping_command): New global. |
|
1561 (tree_while_command::eval): Protect evaluating_looping_command. |
|
1562 Set it to true while evaluating loop. |
|
1563 (tree_do_until_command::eval): Ditto. |
|
1564 (tree_simple_for_command::eval): Ditto. |
|
1565 (tree_complex_for_command::eval): Ditto. |
|
1566 * pt-loop.h (evaluating_looping_command): Provide decl. |
|
1567 * parse.y (parse_fcn_file): Protect get_input_from_eval_string. |
|
1568 Set get_input_from_eval_string to false before calling yyparse. |
|
1569 (make_break_command): Also check evaluating_looping_command. |
|
1570 (make_continue_command): Also check evaluating_looping_command. |
|
1571 (eval_string (const std::string&, bool, int&, int)): Loop over |
|
1572 yyparse to handle multi-line strings. |
|
1573 Move call to unwind_protect::run_frame to end of function. |
|
1574 Don't reset parser before calling yyparse. |
|
1575 Correctly handle return, break, and continue. |
|
1576 |
|
1577 * input.cc (input_from_eval_string_pending): New global variable. |
|
1578 (get_usr_input): Use it. |
|
1579 * input.h (input_from_eval_string_pending): Provide decl. |
|
1580 |
3876
|
1581 2002-03-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1582 |
|
1583 * ov-usr-fcn.cc (octave_user_function::do_multi_index_op): |
|
1584 Don't unwind_protect num_named_args (it doesn't change on |
|
1585 recursive calls). |
|
1586 Do re-initialize curr_va_arg_number to num_named_args after |
|
1587 unwind_protecting. |
|
1588 |
|
1589 * ov-usr-fcn.h (octave_user_function::clear_args_passed): Delete. |
|
1590 (octave_user_function::saved_args): New data member. |
|
1591 (octave_user_function::save_args_passed): New function. |
|
1592 (octave_user_function::restore_args_passed): Ditto. |
|
1593 * ov-usr-fcn.cc (clear_args_passed): Delete. |
|
1594 (restore_args_passed): New function. |
|
1595 (octave_user_function::do_multi_index_op): Correctly save and |
|
1596 restore args passed for recursive calls. |
|
1597 |
|
1598 * TEMPLATE-INST/SLStack-ovl.cc: New file. |
|
1599 * Makefile.in: Add it to the list. |
|
1600 |
3870
|
1601 2002-02-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1602 |
3871
|
1603 * ov-usr-fcn.cc (octave_user_function::do_multi_index_op): |
|
1604 Handle define_all_return_values after function is evaluated. |
|
1605 From Paul Kienzle <pkienzle@jazz.ncnr.nist.gov>. |
|
1606 |
|
1607 * ov-scalar.cc (convert_to_str): Use octave_value (std::string) |
|
1608 constructor instead of octave_value (char *) constructor so that |
|
1609 setstr (0) will work. |
|
1610 |
3870
|
1611 * pager.cc (octave_pager_buf::sync): Set pointer to beginning |
|
1612 of buffer after calling flush_currnt_contents_to_diary. |
|
1613 (octave_diary_buf::sync): Call eback only once. |
|
1614 |
3867
|
1615 2002-01-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1616 |
|
1617 * lex.l (.): Remove test for EOF since it is already handled |
|
1618 separately. |
|
1619 |
3866
|
1620 2001-12-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1621 |
|
1622 * load-save.cc (save_mat5_binary_element): |
|
1623 Extract dimensions directly from tc. |
|
1624 Handle ranges the same as real matrices. |
|
1625 |
3864
|
1626 2001-11-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1627 |
|
1628 * data.cc (DATA_REDUCTION): If no DIM arg, pass -1 to FCN. |
|
1629 |
3859
|
1630 2001-11-09 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1631 |
|
1632 * oct-conf.h.in (FFTW_LIBS, LD_CXX, LIBOCT_PATHSEARCH, |
|
1633 LIBOCT_READLINE, MKOCTFILE_LFLAGS): Substitute. |
|
1634 * toplev.cc (octave_config_info): Add them to the map. |
|
1635 |
|
1636 2001-11-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1637 |
|
1638 * DLD-FUNCTIONS/lsode.cc (Flsode): Don't bother to give OUTPUT |
|
1639 matrix a size before calling integration function. |
|
1640 |
3857
|
1641 2001-11-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1642 |
|
1643 Makefile.in (OCTAVE_LIBS): Add $(LIBOCT_READLINE) and |
|
1644 $(LIBOCT_PATHSEARCH) to the list. |
|
1645 |
3849
|
1646 2001-10-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1647 |
|
1648 * DLD-FUNCTIONS/dassl.cc (dassl_user_function): Allow user |
|
1649 supplied RES function to return IDID as second value. |
|
1650 |
3844
|
1651 2001-07-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1652 |
|
1653 * parse.y: Clear help_buf after documenting function. |
|
1654 |
3842
|
1655 2001-06-29 Mumit Khan <khan@nanotech.wisc.edu> |
|
1656 |
|
1657 * defun-int.h (DEFINE_FUN_INSTALLER_FUN{2,3}): New macros. |
|
1658 (DEFINE_FUN_INSTALLER_FUN): Use. |
|
1659 * dynamic-ld.cc ({STRINGIFY, STRINGIFY1}): New macros. |
|
1660 (octave_dynamic_loader::mangle_name): Support dynamic linking |
|
1661 for GNU v3 and Sun C++ ABI. |
|
1662 |
3841
|
1663 2001-06-26 Mumit Khan <khan@nanotech.wisc.edu> |
|
1664 |
|
1665 * c-file-ptr-stream.h (c_file_ptr_buf::c_file_ptr_buf): Add GCC3 |
|
1666 libstdc++-v3 support. |
|
1667 * load-save.cc (save_mat5_binary_element): Cast arguments to the |
|
1668 correct type. |
|
1669 (save_ascii_data): Eliminate compiler warning. |
|
1670 * toplev.cc (system): Prefix std::. |
|
1671 |
3836
|
1672 2001-05-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1673 |
|
1674 * ov-cx-mat.cc: Deleve unnecessary instantiation of assign function. |
|
1675 * ov-re-mat.cc: Likewise. |
|
1676 * ov-re-nd-array.cc: Likewise. |
|
1677 * ov-str-mat.cc: Likewise. |
|
1678 * ov-bool-mat.cc: Likewise. |
|
1679 |
|
1680 * load-save.cc (save_ascii_data): When saving string data, get raw |
|
1681 string value for matrix row since there may be embedded nuls. |
|
1682 |
|
1683 * pt-mat.cc (Vstring_fill_char): No longer static. |
|
1684 * pt-mat.h: Provide declaration. |
|
1685 |
3834
|
1686 2001-05-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1687 |
|
1688 * octave.cc (initialize_pathsearch): Save initial value of the |
|
1689 TEXMFDBS environment variable here. |
|
1690 * toplev.cc (restore_texmfdbs_envvar): New function. |
|
1691 (Fsystem): Set TEXMFDBS back to original value before running |
|
1692 subprocesses. |
|
1693 |
3827
|
1694 2001-05-02 Mumit Khan <khan@nanotech.wisc.edu> |
|
1695 |
|
1696 * Makefile.in (octave): Add $(FFTW_LIBS). |
|
1697 |
3826
|
1698 2001-04-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1699 |
|
1700 * DLD-FUNCTIONS/sort.cc (mx_sort): Check for NaNs in comparisons. |
|
1701 |
3822
|
1702 2001-04-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1703 |
|
1704 * Makefile.in (OCTAVE_LIBS): Delete $(LIBREADLINE) from the list. |
|
1705 (octave): Delete TERMLIBS from link command. |
|
1706 * oct-conf.h.in: Delete references to LIBREADLINE, TERMLIBS. |
|
1707 * toplev.cc (octave_config_info): Delete entries for LIBREADLINE, |
|
1708 TERMLIBS. |
|
1709 |
3821
|
1710 2001-04-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1711 |
|
1712 * Makefile.in (install-lib): Don't use mk-libdir-link. |
|
1713 (install-inc): Don't use mk-includedir-link. |
|
1714 |
3815
|
1715 2001-04-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1716 |
|
1717 * parse.y (fold (tree_binary_expression *)): |
|
1718 Set discard_error_messages here instead of buffer_error_messages. |
|
1719 Don't add clear_global_error_variable to the unwind_protect stack. |
|
1720 (fold (tree_unary_expression *)): Likewise. |
|
1721 (finish_colon_expression): Likewise. |
|
1722 (finish_matrix): Likewise. |
|
1723 |
|
1724 * error.cc (panic): Set discard_error_messages to false here. |
|
1725 (verror): Return immediately if discard_error_messages is true. |
|
1726 |
|
1727 * error.cc (discard_error_messages): New global variable. |
|
1728 * error.h: Provide declaration. |
|
1729 |
3813
|
1730 2001-04-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1731 |
|
1732 * lex.l: If unexpected character is EOF, report EOF error instead |
|
1733 of invalid character error. |
|
1734 |
3812
|
1735 2001-04-18 Mumit Khan <khan@nanotech.wisc.edu> |
|
1736 |
|
1737 * load-save.cc (read_mat5_binary_element): Cast arguments to the |
|
1738 correct type when adding stream positions. |
|
1739 * DLD-FUNCTIONS/det.cc (det): Explicity create a Complex value to |
|
1740 work around a Sun C++ type conversion bug. |
|
1741 |
3811
|
1742 2001-04-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1743 |
|
1744 * symtab.cc (define_builtin_const): Don't call replace_all_defs |
|
1745 here. |
|
1746 |
|
1747 * error.cc (error_message_buffer): Now static. |
|
1748 * error.h (error_message_buffer): Delete extern declaration. |
|
1749 |
3810
|
1750 2001-03-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1751 |
|
1752 * DLD-FUNCTIONS/besselj.cc (besselh): Use K arg. |
|
1753 From: Thomas Stuart <tstuart@ing.sun.ac.za>. |
|
1754 |
|
1755 * oct-stream.cc (get_size): Don't allow [Inf, N] as a size |
|
1756 specification for the read and scanf functions. |
|
1757 (get_size): SIZE is now an Array<double> instead of a Matrix object. |
|
1758 (read): Likewise. Change all callers. |
|
1759 (scanf): Likewise. Change all callers. |
|
1760 |
3808
|
1761 2001-03-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1762 |
|
1763 * DLD-FUNCTIONS/det.cc (Fdet): Only return rcond if nargout > 1. |
|
1764 * DLD-FUNCTIONS/inv.cc (Finv): Only return rcond if nargout > 1. |
|
1765 |
|
1766 2001-03-26 Paul Kienzle <pkienzle@kienzle.powernet.co.uk> |
|
1767 |
|
1768 * DLD-FUNCTIONS/det.cc (Fdet): Suppress warning, but return rcond. |
|
1769 * DLD_FUNCTIONS/inv.cc (Finv): Return rcond if requested. |
|
1770 |
3804
|
1771 2001-02-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1772 |
3805
|
1773 * pt.h (tree::break_statement): New static member. |
|
1774 (tree::break_function): Make const. |
|
1775 * pt.cc (tree::break_statement): Initialize here. |
|
1776 (tree::break_function): Make const. |
|
1777 * pb-bp.h (break_statement): Delete global varaible declaration. |
|
1778 * pt-bp.cc (break_statement): Delete global variable definition. |
|
1779 |
|
1780 * pt-bp.h (tree_breakpoint::bp_list): Rename from lst. |
|
1781 |
|
1782 * pt.h: Don't inlcude ov-usr-fcn.h. |
|
1783 Provide forward declaration of octave_user_function class. |
|
1784 |
|
1785 2001-02-28 Ben Sapp <bsapp@lanl.gov> |
|
1786 |
|
1787 * debug.cc (get_user_function): Simplify by using curr_function. |
|
1788 (Fdbg_where): New function. |
|
1789 (Fdbg_list): Now DLD_TEXT instead of DLD_FCN. |
|
1790 (Fdbg_set): Likewise. |
|
1791 (Fdbg_delete): Likewise. |
|
1792 |
|
1793 * pt-bp.h (break_statement): New global variable. |
|
1794 (MAYBE_DO_BREAKPOINT): Check for dbg_next and dbg_step. |
|
1795 Print line, column, and current statement. |
|
1796 * pt-bp.cc (break_statement): New global variable |
|
1797 (tree_breakpoint::visit_do_until_command): Return immediately if |
|
1798 we've already found the line. |
|
1799 (tree_breakpoint::visit_colon_expression): Set breakpoint info here. |
|
1800 (tree_breakpoint::visit_binary_expression): Recurse here when |
|
1801 checking for breakpoints. |
|
1802 |
|
1803 * debug.cc: Move here from DLD-FUNCTIONS/debug.cc. |
|
1804 * Makefile.in (DIST_SRC): Add it to the list. |
|
1805 (DLD_XSRC): Delete it from the list. |
|
1806 |
|
1807 * pt.h (tree::last_line, tree::break_function): New static members. |
|
1808 * pt.cc(tree::last_line, tree::break_function): Initialize them. |
|
1809 |
|
1810 * pt-cell.h (tree_cell::tree_cell): Accept line and column info. |
|
1811 * pt-mat.h (tree_matrix::tree_matrix): Likewise. |
|
1812 |
|
1813 * ov-usr-fcn.h (octave_user_function::sym_tab): Delete. |
|
1814 |
|
1815 * input.cc (get_user_input): Handle dbg_next. |
|
1816 Set tree:break_function and tree::last_line when doing dbg_step. |
|
1817 |
|
1818 2001-02-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1819 |
|
1820 * lex.l (handle_string): Save line and column information in token. |
|
1821 (is_keyword): Save line and column information for plot style and |
|
1822 axes tokens. |
|
1823 |
3804
|
1824 * toplev.cc (main_loop): Set retval to non-zero value if error |
|
1825 occurs when not interactive. |
|
1826 |
3802
|
1827 2001-02-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1828 |
|
1829 * parse.y (gobble_leading_white_space): Handle CRLF here too. |
|
1830 * lex.l (check_for_garbage_after_fcn_def): Likewise. |
|
1831 |
|
1832 * lex.l: Add numeric value of character to error message for |
|
1833 unrecognized characters. |
|
1834 |
3800
|
1835 2001-02-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1836 |
|
1837 * DLD-FUNCTIONS/minmax.cc (EMPTY_RETURN_CHECK): For empty matrix |
|
1838 args, make Octave's min and max behave like Matlab. |
|
1839 |
3799
|
1840 2001-02-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1841 |
|
1842 * OPERATORS/op-s-s.cc (el_or, el_and): Return bool value. |
|
1843 |
3798
|
1844 2001-02-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1845 |
|
1846 * pt-binop.cc (tree_boolean_expression::rvalue): |
|
1847 Don't cast result to double. |
|
1848 |
|
1849 * OPERATORS/op-b-b.cc: Allow & and | operators to return bool values. |
|
1850 |
|
1851 2001-02-09 John W. Eaton <jwe@bevo.che.wisc.edu> |
3797
|
1852 |
|
1853 * data.cc (DATA_REDUCTION): Undo previous change. |
|
1854 |
|
1855 2001-02-13 Matthew W. Roberts <matt@nephi.tamu.edu> |
|
1856 |
|
1857 * load-save.cc (Fload): Accept -4 as an alias for -v4 and -mat4-binary. |
|
1858 (Fsave): Likewise. |
|
1859 |
3796
|
1860 2001-02-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1861 |
|
1862 * lex.l (lexical_feedbac::init): |
|
1863 Initialize looking_at_matrix_or_assign_lhs too. |
|
1864 |
3795
|
1865 2001-02-09 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1866 |
|
1867 * data.cc (DATA_REDUCTION): Allow FCN(x,0) to be equivalent to FCN(x). |
|
1868 |
3779
|
1869 2001-02-06 Mumit Khan <khan@nanotech.wisc.edu> |
|
1870 |
|
1871 * oct-stream.cc (octave_scan): Partially implement and specialize |
|
1872 for char*. Delete the old template instantiations. |
|
1873 (BEGIN_S_CONVERSION): Use strings instead of ostrstreambuf. |
|
1874 (octave_base_stream::do_scanf): Pass correct parameter to |
|
1875 do_scan_conv. |
|
1876 |
3775
|
1877 2001-02-05 Mumit Khan <khan@nanotech.wisc.edu> |
|
1878 |
3776
|
1879 * pr-output.cc (set_format): Add std:: namespace qualifier as |
|
1880 needed. |
|
1881 |
3775
|
1882 * oct-stream.cc (octave_scan): Implement, and specialize for |
|
1883 char*. Delete the old template instantiations. |
|
1884 (BEGIN_S_CONVERSION): Use strings instead of ostrstreambuf. |
|
1885 (octave_base_stream::do_scanf): Pass correct parameter to |
|
1886 do_scan_conv. |
|
1887 |
|
1888 * Makefile.in (TEMPLATE_AR, TEMPLATE_ARFLAGS): Use to create |
|
1889 archive libraries containing templates. |
|
1890 |
|
1891 * c-file-ptr-stream.h: Include <fstream>. Use <cstdio> instead of |
|
1892 <stdio.h> |
|
1893 (c_file_ptr_buf::int_type): Compat typedef for non-ISO libstdc++. |
|
1894 (c_file_ptr_buf::{overflow, underflow, uflow, pbackfail): Use. |
|
1895 (c_file_ptr_buf::c_file_ptr_buf): Handle various compilers. |
|
1896 (c_file_ptr_buf::file_number): New member function. |
|
1897 (c_file_ptr_buf::fd): New private data. |
|
1898 (i_c_file_ptr_stream::i_c_file_ptr_stream): Initialize stream |
|
1899 correctly. |
|
1900 (o_c_file_ptr_stream::o_c_file_ptr_stream): Likewise. |
|
1901 * c-file-ptr-stream.cc |
|
1902 (c_file_ptr_buf::{overflow, underflow, uflow, pbackfail): Add |
|
1903 ISO-compliant EOF handling. |
|
1904 * oct-stream.cc (octave_base_stream::file_number): Use |
|
1905 c_file_ptr_buf::file_number to get underlying file descriptor. |
|
1906 |
|
1907 * comment-list.cc: Add missing class qualifier. |
|
1908 |
|
1909 * file-io.cc, load-save.cc, mappers.cc, oct-fstrm.cc, oct-fstrm.h, |
|
1910 oct-iostrm.cc, oct-iostrm.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
1911 oct-stream.cc, oct-stream.h, oct-strstrm.cc, oct-strstrm.h, |
|
1912 ov-base-nd-array.cc, ov-base-scalar.h, ov-complex.cc, ov-cx-mat.cc, |
|
1913 pager.cc, pr-output.cc, procstream.h, pt-bp.h, utils.cc: |
|
1914 Add std:: namespace qualifier as needed, and replace |
|
1915 deprecated or invalid libstdc++-v2 names with standard ones |
|
1916 where appropriate. |
|
1917 |
|
1918 * DLD-FUNCTIONS/minmax.cc: Fix docstring. |
|
1919 |
|
1920 * oct-fstrm.cc (octave_fstream::octave_fstream): Maintain fix for |
|
1921 libstdc++-v2. |
|
1922 |
|
1923 * oct-stdstrm.cc (octave_ostdiostream::create): Remove default |
|
1924 parameter value in definition. |
|
1925 |
|
1926 * oct-stream.cc (octave_stream::mode_as_string): Don't assume |
|
1927 std::iso::openmode is an integral quantity. |
|
1928 |
|
1929 * pager.cc, procstream.h: Initialize streams correctly. |
|
1930 |
|
1931 * utils.cc: Use CXX_ISO_COMPLIANT_LIBRARY guard. |
|
1932 |
|
1933 * ov-base-nd-array.cc (idx_list_to_idx_array): Inline. |
|
1934 |
|
1935 * ov-base-scalar.h (octave_base_scalar::octave_base_scalar): Use |
|
1936 ``const ST& s'' instead of ST to workaround gcc3 complex bug. |
|
1937 |
3774
|
1938 2001-02-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1939 |
|
1940 * lex.l (next_token_is_bin_op): Remove Checks for spacing except |
|
1941 for ops that begin with +, - but are not ++, --, +=, or -=. |
|
1942 |
3772
|
1943 2001-02-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1944 |
|
1945 * input.cc (get_user_input): Handle dbg_cont and dbg_step here. |
|
1946 * debug.cc (Fdbg_cont): Delete. |
|
1947 * pt-bp.h (MAYBE_DO_BREAKPOINT): Check tree::break_next here. |
|
1948 * pt.h (tree::break_next): New static member. |
|
1949 * pt.cc: Initialize it. |
|
1950 |
|
1951 * parse.h (feval (const octave_value_list&, int)): |
|
1952 Set default value for nargout. |
|
1953 (feval (const std::string&, const octave_value_list&, int)): |
|
1954 Set default values for args and nargout. |
|
1955 |
3770
|
1956 2001-02-01 Ben Sapp <bsapp@lanl.gov> |
|
1957 |
|
1958 * DLD-FUNCTIONS/debug.cc: New file. |
|
1959 * pt-bp.h, pt-bp.cc: New files, for breakpoints. |
|
1960 * Makefile.in: Add them to the appropriate lists. |
|
1961 |
|
1962 * pt-stmt.cc (tree_statement_list::set_breakpoint, |
|
1963 tree_statement_list::delete_breakpoint, |
|
1964 tree_statement_list::list_breakpoints): New functions. |
|
1965 |
|
1966 * pt.h (tree::break_point): New data member. |
|
1967 (tree::set_breakpoint, tree::delete_breakpoint, tree::is_breakpoint): |
|
1968 New virtual functions. |
|
1969 |
|
1970 * pt-mat.cc (tree_matrix::rvalue): Check for breakpoint here. |
|
1971 * pt-unop.cc (tree_prefix_expression::rvalue): Likewise. |
|
1972 (tree_postfix_expression::rvalue): Likewise. |
|
1973 * pt-loop.cc (tree_do_until_command::eval): Likewise. |
|
1974 (DO_LOOP): Likewise. |
|
1975 (tree_simple_for_command::eval): Likewise. |
|
1976 (tree_complex_for_command::eval): Likewise. |
|
1977 * pt-assign.cc (tree_simple_assignment::rvalue): Likewise. |
|
1978 * pt-binop.cc (tree_binary_expression::rvalue): Likewise. |
|
1979 (tree_boolean_expression::rvalue): Likewise. |
|
1980 * pt-cell.cc (tree_cell::rvalue): Likewise. |
|
1981 * pt-colon.cc (tree_colon_expression::rvalue): Likewise. |
|
1982 * pt-except.cc (tree_try_catch_command::eval): Likewise. |
|
1983 (tree_unwind_protect_command::eval): Likewise. |
|
1984 * pt-id.cc (tree_identifier::rvalue): Likewise. |
|
1985 (tree_identifier::lvalue): Likewise. |
|
1986 * pt-indir.cc (tree_indirect_ref::rvalue): Likewise. |
|
1987 * pt-jump.cc (tree_break_command::eval): Likewise. |
|
1988 (tree_continue_command::eval): Likewise. |
|
1989 (tree_return_command::eval): Likewise. |
|
1990 |
3767
|
1991 2001-01-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1992 |
|
1993 * Map.h, Map.cc (CHMap<C>::operator = (const CHMap&)): New function. |
|
1994 (Map<C>::operator = (const Map&)): Likewise. |
|
1995 (Map<C> (const Map&)): Likewise. |
|
1996 |
|
1997 * OPERATORS/op-cm-cs.cc, OPERATORS/op-cm-s.cc, |
|
1998 OPERATORS/op-m-cs.cc, OPERATORS/op-m-s.cc: |
|
1999 Make ldiv operator work for row vector by scalar ops. |
|
2000 |
|
2001 * OPERATORS/op-cs-cm.cc, OPERATORS/op-cs-m.cc, |
|
2002 OPERATORS/op-s-cm.cc, OPERATORS/op-s-m.cc: |
|
2003 Make div operator work for scalar by column vector ops. |
|
2004 |
3765
|
2005 2001-01-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2006 |
|
2007 * parse.y (safe_fclose): Discard comments at the end of a file. |
|
2008 |
3764
|
2009 2001-01-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2010 |
|
2011 * error.cc (pr_where): Call pr_where_1 with two args, not one, to |
|
2012 avoid processing format escapes that might appear in formatted code. |
|
2013 |
3762
|
2014 2001-01-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2015 |
|
2016 * error.cc (vwarning): Write to output_buf, then send formatted |
|
2017 message to diary and error streams. |
|
2018 |
3760
|
2019 2001-01-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2020 |
|
2021 * ov-cx-mat.cc (octave_complex_matrix::try_narrowing_conversion): |
|
2022 Handle empty matrix dimensions correctly. |
|
2023 |
3756
|
2024 2000-12-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2025 |
|
2026 * pager.h (octave_pager_buf::diary_skip): New data member. |
|
2027 (octave_pager_buf::octave_pager_buf): Initialize it. |
|
2028 * pager.cc (octave_pager_buf::set_diary_skip): New function. |
|
2029 (octave_pager_stream::set_diary_skip): New function. |
|
2030 (octave_pager_buf::sync): Call flush_current_contents_to_diary |
|
2031 instead of octave_diary.write. |
|
2032 (octave_pager_buf::flush_current_contents_to_diary): Use |
|
2033 diary_skip, reset when done. |
|
2034 (open_diary_file): Call octave_stdout.set_diary_skip here. |
|
2035 |
3747
|
2036 2000-12-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2037 |
|
2038 * DLD-FUNCTIONS/minmax.cc (EMPTY_RETURN_CHECK): New macro. |
|
2039 (min, max): Use it. |
|
2040 |
|
2041 * DLD-FUNCTIONS/minmax.cc (MINMAX_BODY): New macro. If single arg |
|
2042 is empty, return empty matrix result and empty matrix for index. |
|
2043 (Fmin, Fmax): Use MINMAX_BODY, so we have consistent definition |
|
2044 for min and max functions. |
|
2045 |
|
2046 2000-11-30 Joerg Specht <joerg.specht@ins.uni-stuttgart.de> |
|
2047 |
|
2048 * help.cc (display_help_text): Append new line at end of doc string. |
|
2049 |
|
2050 2000-11-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2051 |
|
2052 * DLD-FUNCTIONS/lsode.cc (LSODE_ABORT1, LSODE_ABORT2): Omit `##' |
|
2053 in macro definition since they are not needed to paste strings |
|
2054 together and picky compilers choke on them. |
|
2055 * DLD-FUNCTIONS/quad.cc (QUAD_ABORT1, QUAD_ABORT2): Likewise. |
|
2056 * DLD-FUNCTIONS/fsolve.cc (FSOLVE_ABORT1, FSOLVE_ABORT2): Likewise. |
|
2057 * DLD-FUNCTIONS/dassl.cc (DASSL_ABORT1, DASSL_ABORT2): Likewise. |
|
2058 |
3741
|
2059 2000-11-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2060 |
3744
|
2061 * mkbuiltins (XDEFUNX_INTERNAL): New macro. |
3746
|
2062 * mkgendoc (XDEFUNX_INTERNAL): Likewise. |
3744
|
2063 * defun-int.h (DEFUNX_INTERNAL): Use it. |
|
2064 |
3743
|
2065 * defun.h (DEFUNX): New macro. |
|
2066 * defun-int.h (DEFUNX_INTERNAL, DECLARE_FUNX): New macro. |
|
2067 (DECLARE_FUN): Define in terms of DECLARE_FUNX. |
|
2068 |
3742
|
2069 * mkdefs: Read and print one line at a time, so we can force |
|
2070 patterns to match only at the beginning of a line. |
|
2071 |
3741
|
2072 * defun-int.h (UNDERSCORIFY): Omit `##' in macro definition since |
|
2073 they are not needed to paste strings together and picky compilers |
|
2074 choke on them. |
|
2075 |
3738
|
2076 2000-11-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2077 |
|
2078 * load-save.cc (save_ascii_data_for_plotting): New function. |
|
2079 * pt-plot.cc (save_in_tmp_file): Use it instead of save_ascii_data. |
|
2080 |
|
2081 * load-save.cc (save_ascii_data): Warn if saving Inf or NaN values. |
|
2082 New arg, infnan_warned. Use it to warn just once per set. |
|
2083 Now static. |
|
2084 (do_save): New arg, infnan_warned. Pass to save_ascii_data. |
|
2085 (save_vars): Initialize infnan_warned here, pass to do_save. |
|
2086 |
3737
|
2087 2000-11-16 Paul Kienzle <pkienzle@kienzle.powernet.co.uk> |
|
2088 |
|
2089 * file-io.cc (Ffprintf): If no file id parameter, don't return |
|
2090 count of characters if nargout is 0 (for compatibility with |
|
2091 Matlab). |
|
2092 |
|
2093 2000-11-16 Ben Sapp <bsapp@lanl.gov> |
|
2094 |
|
2095 * DLD-FUNCTIONS/rand.cc (do_rand): Declare loop counter as |
|
2096 volatile int, not just volatile. |
|
2097 |
3731
|
2098 2000-10-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2099 |
|
2100 * load-save.cc (skip_comments): Allow % as comment character too. |
|
2101 (extract_keyword): Likewise. |
|
2102 |
|
2103 * Makefile.in (oct-gperf.h): Remove -a, -g, and -p flags for gperf. |
|
2104 |
3727
|
2105 2000-10-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2106 |
|
2107 * load-save.cc (do_load): Allow result to be returned instead of |
|
2108 inserting variables in the symbol table. Change patterned after |
|
2109 patch by Kian Ming Adam Chai <caijianming@yahoo.co.uk>. |
|
2110 |
3726
|
2111 2000-10-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2112 |
|
2113 * Makefile.in (ops.cc): Don't substitute BLAS_LIBS and LIBS here. |
|
2114 |
|
2115 * oct-conf.h.in (OCTAVE_CONF_SPECIAL_MATH_LIB): Delete. |
|
2116 (OCTAVE_CONF_BLAS_LIBS): Add. |
|
2117 * toplev.cc (octave_config_info): Likewise, add BLAS_LIBS and |
|
2118 remove SPECIAL_MATH_LIB from the struct. |
|
2119 |
|
2120 * parse.y (feval (const octave_value_list&, int)): Don't panic |
|
2121 while processing arg names if arg.length() and arg_names.length() |
|
2122 differ. |
|
2123 |
3724
|
2124 2000-10-12 Paul Kienzle <pkienzle@kienzle.powernet.co.uk> |
|
2125 |
|
2126 * ov-cell.h (octave_cell::is_cell): New function. |
|
2127 |
|
2128 * pt-select.cc (equal): New static function. |
|
2129 (tree_switch_case::label_matches): Use it to compare case label |
|
2130 against arg. Handle cell arrays as case labels. |
|
2131 |
3723
|
2132 2000-10-12 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2133 |
|
2134 Change patterned after patch by Cai Jianming |
|
2135 <caijianming@yahoo.co.uk> to support for DIM arg in 2.0.x sources. |
|
2136 |
|
2137 * data.cc (DATA_REDUCTION): New macro. Handle second DIM arg here. |
|
2138 (Fcumprod): Replace function body with DATA_REDUCTION. |
|
2139 (Fcumsum): Likewise. |
|
2140 (Fprod): Likewise. |
|
2141 (Fsum): Likewise. |
|
2142 (Fsumsq): Likewise. |
|
2143 |
3719
|
2144 2000-10-10 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2145 |
|
2146 * error.cc (pr_where_2): New function. |
|
2147 (pr_where_1): Use it instead of error_1 to avoid setting error_state. |
|
2148 |
|
2149 2000-10-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2150 |
|
2151 * xdiv.cc (xdiv): Warn if execution falls through to lssolve. |
|
2152 |
3716
|
2153 2000-09-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2154 |
|
2155 * utils.cc (FERRNO): New function (currently commented out). |
|
2156 |
|
2157 * c-file-ptr-stream.cc (c_file_ptr_buf::close): Call flush here. |
|
2158 (c_file_ptr_buf::~c_file_ptr_buf): Not here. |
|
2159 * c-file-ptr-stream.h (c_fie_ptr_buf::close_fcn): New typedef. |
|
2160 (c_file_ptr_buf::cf): New data member. Add default constructor arg. |
|
2161 (class c_file_ptr_buf): Derive from filebuf, not streambuf. |
|
2162 (i_c_file_ptr_stream, o_c_file_ptr_stream): Handle close function here. |
|
2163 * oct-procstrm.cc (octave_iprocstream, octave_oprocstream): Likewise. |
|
2164 (octave_iprocstream::do_close, octave_oprocstream::do_close): Delete. |
|
2165 * oct-stdstrm.cc (octave_base_stdiostream::~octave_base_stdiostream): |
|
2166 Don't do anything. |
|
2167 (octave_istdiostream::create): Handle close function here. |
|
2168 (octave_istdiostream::octave_istdiostream): Likewise. |
|
2169 (octave_ostdiostream::create): Likewise. |
|
2170 (octave_ostdiostream::octave_ostdiostream): Likewise. |
|
2171 (class octave_base_stdiostream): Don't cache FILE pointer here. |
|
2172 |
3715
|
2173 2000-09-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2174 |
|
2175 * syscalls.cc (Ffcntl): Don't assume that the file id passed in is |
|
2176 the same as the underlying system file id. |
|
2177 |
3712
|
2178 2000-08-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2179 |
|
2180 * parse.y: Use octave_time, not time. |
|
2181 |
3711
|
2182 2000-08-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2183 |
|
2184 * oct-stream.cc (printf_value_cache::double_value): Also set |
|
2185 curr_stat to conversion_error if there are no values at all. |
|
2186 |
3710
|
2187 2000-08-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2188 |
|
2189 * dirfns.cc (Flink, Fsymlink, Freadlink): New functions. |
|
2190 |
3709
|
2191 2000-08-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2192 |
|
2193 * load-save.cc (Vsave_header_format_string): New variable. |
|
2194 (symbols_of_load_save): DEFVAR it. |
|
2195 (save_header_format, default_save_header_format): New functions. |
|
2196 (write_header): Use Vsave_header_format_string here. |
|
2197 |
3707
|
2198 2000-07-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2199 |
3708
|
2200 * pt-pr-code.h (tree_print_code::curr_print_indent_level, |
|
2201 (tree_print_code::beginning_of_line): No longer static. |
|
2202 (tree_print_code::tree_print_code): Initialize them here. |
|
2203 * pt-pr-code.cc: Not here. |
|
2204 |
|
2205 * pt-stmt.cc (tree_statement::eval): Set curr_statement here. |
|
2206 (tree_statement_list::eval): Not here. |
|
2207 |
3707
|
2208 Debug-on-error stuff based on a patch submitted by Paul Kienzle |
|
2209 <pkienzle@kienzle.powernet.co.uk> for 2.0.x. |
|
2210 |
|
2211 * error.cc (Vdebug_on_warning): New static flag variable. |
|
2212 (debug_on_warning): New function. |
|
2213 (symbols_of_warning): DEFVAR debug_on_warning. |
|
2214 (warning): Handle debug_on_warning here. |
|
2215 |
|
2216 * input.cc (do_keyboard): New function. |
|
2217 (Fkeyboard): Use it to do the real work. |
|
2218 * pt-stmt.cc (curr_statement): New static variable. |
|
2219 (tree_statement::eval): Save and restore it here. |
|
2220 * error.cc (Vdebug_on_error): New static flag variable. |
|
2221 (debug_on_error): New function. |
|
2222 (symbols_of_error): DEFVAR debug_on_error. |
|
2223 (pr_where, pr_where_1): New functions. |
|
2224 (error): Handle debug_on_error here. |
|
2225 |
3705
|
2226 2000-07-20 Joao Cardoso <jcardoso@inescporto.pt> |
|
2227 |
|
2228 * Makefile.in (octave): Link with $(LD_CXX) instead of $(CXX) |
|
2229 |
3704
|
2230 2000-07-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2231 |
|
2232 * oct-stream.cc (octave_base_stream::oscanf): Advance to next |
|
2233 format element before attempting to pick up any trailing stuff. |
|
2234 |
3697
|
2235 2000-07-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2236 |
3698
|
2237 * lex.l (next_token_is_bin_op): Don't recognize `..' as a binary op. |
|
2238 |
3697
|
2239 * load-save.cc (get_file_format): Call read_mat5_binary_file_header |
|
2240 with third arg true instead of false, so we don't barf if the file |
|
2241 is not a matlab v5 binary file. |
|
2242 |
3695
|
2243 2000-07-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2244 |
|
2245 * Makefile.in (octave): Link to ../libcruft/blas-xtra/xerbla.o here. |
|
2246 |
|
2247 * octave.cc (main): Remove kluge to attempt linking our version of |
|
2248 xerbla. |
|
2249 |
|
2250 2000-07-07 Steven G. Johnson <stevenj@alum.mit.edu> |
|
2251 |
|
2252 * load-save.cc (have_h5giterate_bug): New file-scope variable. |
|
2253 (hdf5_read_next_data): Only increment current_item if |
|
2254 have_h5giterate_bug is true. |
|
2255 (read_hdf5_data): Set have_h5giterate_bug here. |
|
2256 Only increment hs.current_item if have_h5giterate_bug is true. |
|
2257 |
3693
|
2258 2000-07-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2259 |
|
2260 * c-file-ptr-stream.cc (c_file_ptr_buf::close): |
|
2261 Return -1 if file pointer is NULL. |
|
2262 Set file pointer to 0 after closing. |
|
2263 (c_file_ptr_buf::~c_file_ptr_buf): Call close after flushing. |
|
2264 |
3694
|
2265 2000-07-05 Steven G. Johnson <stevenj@alum.mit.edu> |
3692
|
2266 |
|
2267 * Makefile.in (BLAS_LIBS): Substitute here. |
|
2268 (octave): Use $(BLAS_LIBS) in the final link command. |
|
2269 |
3694
|
2270 2000-06-30 Steven G. Johnson <stevenj@alum.mit.edu> |
3690
|
2271 |
|
2272 * Makefile.in (octave): Link $(FLIBS) last. |
|
2273 * octave.cc (main): Force our own xerbla to be linked instead of |
|
2274 some system version. |
|
2275 |
3688
|
2276 2000-06-29 James R. Van Zandt <jrv@vanzandt.mv.com> |
|
2277 |
3689
|
2278 * load-save.cc (load_save_format): New value, LS_MAT5_BINARY. |
3688
|
2279 (arrayclasstype, mat5_data_type): New enums. |
|
2280 (read_mat5_binary_data): New function. |
|
2281 (read_mat5_tag): New function. |
|
2282 (read_mat5_binary_element): New function. |
|
2283 (read_mat5_binary_file_header): New function. |
|
2284 (get_file_format): Check for mat5 binary format too. |
|
2285 (do_load): Handle mat5 binary format. |
|
2286 (write_mat5_tag): New function. |
|
2287 (write_mat5_array): New function. |
|
2288 (class mat5_callback): New class. |
|
2289 (save_mat5_binary_element): New functnon. |
|
2290 (do_save): Handle mat5 binary format. |
|
2291 (write_header): Handle LS_MAT5_BINARY case too. |
|
2292 (save_user_variables): Handle LS_MAT5_BINARY case too. |
|
2293 (Fsave): Handle LS_MAT5_BINARY case too. |
|
2294 (Fload): Handle LS_MAT5_BINARY case too. |
|
2295 |
3694
|
2296 2000-06-29 Steven G. Johnson <stevenj@alum.mit.edu> |
3687
|
2297 |
|
2298 All of the following changes are protected by #ifdef HAVE_HDF5. |
|
2299 |
|
2300 * load-save.cc (load_save_format): New value, LS_HDF5. |
|
2301 (make_valid_identifier): New function. |
|
2302 (class hdf5_fstreambase, class hdf5_ifstream, class hdf5_ofstream): |
|
2303 New classes for reading and writing hdf5 data. |
|
2304 (hdf5_types_compatible): New function. |
|
2305 (hdf5_import_multidim): New function. |
|
2306 (hdf5_check_attr): New function. |
|
2307 (hdf5_read_next_data): New function. |
|
2308 (hdf5_make_complex_type): New function. |
|
2309 (hdf5_make_range_type): New function. |
|
2310 (read_hdf5_data): New function. |
|
2311 (get_file_format): Handle HDF5 format. |
|
2312 (do_load): Handle LS_HDF5 case. |
|
2313 (Fload): Handle HDF5 format. |
|
2314 (hdf5_add_attr): New function. |
|
2315 (save_type_to_hdf5): New function. |
|
2316 (add_hdf5_data): New function. |
|
2317 (do_save): Handle HDF5 format. |
|
2318 (get_default_save_format): Handle LS_HDF5 case. |
|
2319 (write_header): Handle LS_HDF5 case. |
|
2320 (save_user_variables): Handle HDF5 format. |
|
2321 (Fsave): Handle HDF5 format. |
|
2322 |
3686
|
2323 2000-06-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2324 |
|
2325 * help.cc (display_help_text): If writing to filter fails, send |
|
2326 unformatted text to output stream. |
|
2327 |
3683
|
2328 2000-06-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2329 |
3685
|
2330 * OPERATORS/op-bm-bm.cc (eq): Define using mx_el_eq, not operator ==. |
|
2331 (ne): Likewise, use mx_el_ne, not operator !=. |
|
2332 |
3683
|
2333 * pr-output.cc (Fdisp): Delete. |
|
2334 |
3681
|
2335 2000-06-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2336 |
3682
|
2337 * pr-output.cc (float_format::float_format): Set default values |
|
2338 for width and precision to -1. |
|
2339 (operator << (ostream&, pr_formatted_float&): Set width and |
|
2340 precision if values are >= 0. |
|
2341 (set_real_format, set_real_matrix_format, set_range_format, |
|
2342 set_complex_format, set_complex_matrix_format): If we have all |
|
2343 integers, infinities, or nans, set precision equal to field width. |
|
2344 |
|
2345 * load-save.cc (read_ascii_data): Allow empty strings and string |
|
2346 vectors to be restored. |
|
2347 |
3681
|
2348 * variables.cc (var_matches_any_pattern): New function. |
|
2349 (Fclear): Use it to make exclusive clear work correctly. |
|
2350 |
3676
|
2351 2000-06-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2352 |
3678
|
2353 * ov-range.h (octave_range::is_numeric_type): New function. |
|
2354 |
3676
|
2355 * sysdep.cc (Fkbhit): Also ask for input if forced_interactive. |
|
2356 |
3675
|
2357 2000-06-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2358 |
|
2359 * Makefile.in (oct-gperf.h): Use $(GPERF) instead of gperf. |
|
2360 |
3671
|
2361 2000-05-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2362 |
|
2363 * DLD-FUNCTIONS/qz.cc (Fqz): When computing finite generalized |
|
2364 eigenvalues, don't write past the end of the array. |
|
2365 |
3665
|
2366 2000-05-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2367 |
|
2368 * ov-base-nd-array.h, ov-base-nd-array.cc, ov-re-nd-array.h, |
|
2369 ov-re-nd-array.h: New files. |
|
2370 * Makefile.in: Add them to the appropriate lists. |
|
2371 |
|
2372 * pt-stmt.h, pt-stmt.cc (class tree_statement): |
|
2373 Store comments associated with this parse tree element. |
|
2374 * pt-select.h, pt-select.cc (class tree_if_clause, |
|
2375 class tree_if_command, class tree_switch_case |
|
2376 class tree_switch_command): Likewise. |
|
2377 * pt-loop.h, pt-loop.cc (class tree_while_command, |
|
2378 class tree_do_until_command, class tree_simple_for_command, |
|
2379 class tree_complex_for_command): Likewise. |
|
2380 * pt-except.h, pt-except.cc (class tree_try_catch_command, |
|
2381 class tree_unwind_protect_command): Likewise. |
|
2382 * ov-usr-fcn.h, ov-usr-fcn.cc (class octave_user_function): Likewise. |
|
2383 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::print_comment_elt, |
|
2384 tree_print_code::print_comment_list, |
|
2385 tree_print_code::print_indented_comment): New functions. |
|
2386 (tree_print_code::visit_simple_for_command, |
|
2387 tree_print_code::visit_complex_for_command, |
|
2388 tree_print_code::visit_octave_user_function_header, |
|
2389 tree_print_code::visit_octave_user_function_trailer, |
|
2390 tree_print_code::visit_if_command, tree_print_code::visit_statement, |
|
2391 tree_print_code::visit_switch_case, |
|
2392 tree_print_code::visit_switch_command, |
|
2393 tree_print_code::visit_try_catch_command, |
|
2394 tree_print_code::visit_unwind_protect_command |
|
2395 tree_print_code::visit_while_command, |
|
2396 tree_print_code::visit_do_until_command): Handle comments. |
|
2397 * lex.l, parse.y: Handle comments in parse trees. |
|
2398 * comment-list.h, comment-list.cc: New files. |
|
2399 * Makefile.in: Add them to the appropriate lists. |
|
2400 |
3661
|
2401 2000-04-23 etienne grossmann <etienne@anonimo.isr.ist.utl.pt> |
|
2402 |
|
2403 * pt-mat.cc (tm_row_const::tm_row_const_rep::eval_error): |
|
2404 New args x and y, for dimension mismatch info. |
|
2405 Change callers where appropriate. |
|
2406 (tm_const::init): Report mismatched column dimensions. |
|
2407 |
3658
|
2408 2000-04-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2409 |
|
2410 * sysdep.cc (kbhit): Also clear cin if at EOF. |
|
2411 |
3657
|
2412 2000-04-11 Joao Cardoso <jcardoso@inescn.pt> |
|
2413 |
|
2414 * sysdep.cc (kbhit): New arg, wait. |
|
2415 (raw_mode): Ditto. |
|
2416 (Fkbhit): If given an arg, call kbhit with wait = false. |
|
2417 |
|
2418 * DLD-FUNCTIONS/minmax.cc (Fmax, Fmin): Fix doc string. |
|
2419 |
3656
|
2420 2000-04-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2421 |
|
2422 * dynamic-ld.cc (octave_dynamic_loader::do_load): Undo previous change. |
|
2423 |
3655
|
2424 2000-04-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2425 |
|
2426 * dynamic-ld.cc (octave_dynamic_loader::do_load): Also fail with |
|
2427 error message if we don't find the mangled function name in the |
|
2428 file. |
|
2429 |
3652
|
2430 2000-03-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2431 |
3653
|
2432 * oct-stream.cc (printf_value_cache::string_value): Return string |
|
2433 matrices in a Matlab-compatible way. |
|
2434 (printf_value_cache): Redesign the way list_exhausted works. |
|
2435 |
3652
|
2436 * oct-fstrm.cc (octave_fstream::do_close): New function. |
|
2437 * oct-stdstrm.cc (octave_istdiostream::do_close): Ditto. |
|
2438 (octave_ostdiostream::do_close): Ditto. |
|
2439 * c-file-ptr-stream.cc (c_file_ptr_buf::close): Ditto. |
|
2440 (i_c_file_ptr_stream::close): Ditto. |
|
2441 (o_c_file_ptr_stream::close): Ditto. |
|
2442 * oct-prcstrm.cc (octave_iprocstream::do_close): Ditto. |
|
2443 (octave_oprocstream::do_close): Ditto. |
|
2444 (octave_iprocstram::~octave_iprocstram): Call do_close here. |
|
2445 (octave_iprocstram::~octave_oprocstram): Likewise. |
|
2446 |
|
2447 * oct-stream.h (octave_base_stream::do_close): New virtual function. |
|
2448 (octave_base_stream::close): If stream is open, call do_close. |
|
2449 |
|
2450 * c-file-ptr-stream.cc (c_file_ptr_buf::flush): New function. |
|
2451 (c_file_ptr_buf::~c_file_ptr_buf): Use it. |
|
2452 (c_file_ptr_buf::overflow): Ditto. |
|
2453 (c_file_ptr_buf::sync): Ditto. |
|
2454 |
3649
|
2455 2000-03-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2456 |
|
2457 * oct-procbuf.cc (octave_procbuf::open): Make output streams line |
|
2458 buffered. |
|
2459 |
3640
|
2460 2000-03-24 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2461 |
3644
|
2462 * sighandlers.cc (my_friendly_exit): Prefix failure messages with |
|
2463 panic instead of error. |
|
2464 |
3642
|
2465 * c-file-ptr-stream.cc (c_file_ptr_buf::~c_file_ptr_buf): |
|
2466 Avoid dereferencing NULL pointer. |
|
2467 |
3640
|
2468 * oct-stream.cc (printf_format_list::add_elt_to_list, |
|
2469 printf_format_list::process_conversion, |
|
2470 printf_format_list::finish_conversion): New args, flags, fw, and prec. |
|
2471 (printf_format_list::printf_format_list): Save more complete info. |
|
2472 (printf_format_list::printme): Print flags, fw, and prec. |
|
2473 (octave_base_stream::printf): Simplify. |
|
2474 (do_printf_conv): Delete have_arg arg, since it is always true now. |
|
2475 (octave_base_stream::do_printf): Handle case of no args and % |
|
2476 directly instead of using do_printf_conv. |
|
2477 (printf_value_cache::exhausted): Rename from no_more_values. |
|
2478 (DO_PCT_CONVERSION): New macro |
|
2479 (octave_base_streain::do_scanf, octave_base_streain::do_oscanf): |
|
2480 Use it. |
|
2481 (scanf_format_list::finish_conversion): `%' counts as a conversion too. |
|
2482 Also don't forget to set type for it. |
|
2483 (OCTAVE_SCAN_0): Delete. |
|
2484 (OCTAVE_SCAN): Rename from OCTAVE_SCAN_1. |
|
2485 (octave_base_stream::scanf, octave_base_stream::oscanf): Don't |
|
2486 special-case number of conversions here. |
|
2487 (octave_base_stream::oscanf, octave_base_stream::do_oscanf): Only |
|
2488 cycle through fmt elements if the number of conversions is greater |
|
2489 than 0. |
|
2490 |
|
2491 * oct-stream.h (scanf_format_list::next): New arg, `cycle'. |
|
2492 (printf_format_list::next): New arg, `cycle'. |
|
2493 (printf_format_list::last_elt_p): New function. |
|
2494 (printf_format_elt): New fields fw, prec, and flags. |
|
2495 Define copy constructor and assignment operator. |
|
2496 (scanf_format_elt): Define copy constructor and assignment operator. |
|
2497 |
3627
|
2498 2000-03-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2499 |
3639
|
2500 * oct-stream.cc (OCTAVE_SCAN_0, OCTAVE_SCAN_1): New macros. |
|
2501 (do_scanf_conv, BEGIN_S_CONVERSION, BEGIN_CHAR_CLASS_CONVERSION, |
|
2502 do_scanf, scanf, do_oscanf, do_oscanf, oscanf): Use them instead |
|
2503 of calling istream::scan directly. |
|
2504 (octave_scan): New function. |
|
2505 (do_scanf_conv): Second arg is now scanf_format_elt instead of char*. |
|
2506 Change all callers. |
|
2507 |
3631
|
2508 * oct-procbuf.h, oct-procbuf.cc (octave_procbuf): |
|
2509 Derive from c_file_ptr_buf instead of filebuf. |
|
2510 |
3627
|
2511 * oct-stream.cc (octave_base_stream::printf): Use octave_format |
|
2512 instead of ostream::form. Return number of characters written. |
|
2513 |
3618
|
2514 2000-03-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2515 |
3620
|
2516 * oct-stream.cc (do_printf_conv): Use octave_format instead of |
|
2517 ostream::form. Return number of characters written. |
|
2518 (octave_base_stream::do_printf): Return number of characters written. |
|
2519 |
|
2520 * error.cc (verror, vwarning): Use octave_format instead of |
|
2521 ostream::vform. |
|
2522 |
|
2523 * utils.cc (octave_format, octave_vformat): New functions. |
|
2524 * cutils.c (octave_snprintf, octave_vsnprintf): New functions. |
|
2525 |
3618
|
2526 * oct-lvalue.h (dummy_val): New static variable. |
|
2527 (octave_lvalue::octave_lvalue): Use it to initialize val. |
|
2528 |
|
2529 * variables.cc (is_valid_function): Look in the global symbol |
|
2530 table for functions. |
|
2531 |
3615
|
2532 2000-03-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2533 |
3770
|
2534 * Makefile.in (LIBRARIES): Conditionally define. |
3615
|
2535 (libraries): Depend on $(LIBRARIES). |
|
2536 (octave): Depend on $(LIBRARIES), not libraries. Also depend on |
|
2537 stamp-prereq and stamp-oct-links. |
|
2538 (all): Don't depend on stamp-prereq or stamp-oct-links. |
|
2539 (liboctinterp.$(LIBEXT), liboctinterp.$(SHELXT)): Delete target |
|
2540 before rebuilding. |
|
2541 |
|
2542 2000-03-21 Ben Sapp <bsapp@nua.lampf.lanl.gov>: |
|
2543 |
3770
|
2544 * Makefile.in (libraries): Depend only on library targets, not |
3615
|
2545 archive members. |
|
2546 |
3611
|
2547 2000-03-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2548 |
3613
|
2549 * Makefile.in (objects): New target |
|
2550 |
3611
|
2551 * c_file_ptr_stream.h, c_file_ptr_stream.cc: New files. |
|
2552 * oct-stdstrm.h, oct-stdstrm.cc, oct-prcstrm.cc: |
|
2553 Use c_file_ptr_buf, i_c_file_ptr_stream, and o_c_fie_ptr_stream |
|
2554 instead of stdiobuf, istdiostream, and ostdiostream. |
|
2555 |
|
2556 * pr-output.cc (set_real_format, set_real_matrix_format, |
|
2557 set_complex_format, set_complex_matrix_format, set_range_format): |
|
2558 Do the right thing again for int, NaN, and Inf values. |
|
2559 |
3608
|
2560 2000-03-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2561 |
|
2562 * pr-output.cc (pr_plus_format): Rename from do_plus_format. |
|
2563 Change all callers. |
|
2564 (pr_float, pr_complex): New arg, scale. Handle scaling here. |
|
2565 (float_format): New class for managing details of formatting |
|
2566 floats. Use it instead of character string formats and the |
|
2567 nonstandard form() function from the GNU iostream library. |
|
2568 |
3601
|
2569 2000-02-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2570 |
|
2571 * Makefile.in (clean): Also delete gendoc. |
|
2572 |
3598
|
2573 2000-02-18 James R. Van Zandt <jrv@vanzandt.mv.com> |
|
2574 |
|
2575 * load-save.cc (Vcrash_dumps_octave_core): Fix comment for this var. |
|
2576 |
|
2577 2000-02-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2578 |
|
2579 * lex.l (handle_number): Don't transorm `[Dd]' to `e' if reading |
|
2580 hex. |
|
2581 |
3597
|
2582 2000-02-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2583 |
|
2584 * Makefile.in (install-inc): Install files in |
|
2585 $(octincludedir)/octave. |
|
2586 (uninstall): Remove them from the correct directory too. |
|
2587 |
|
2588 * defaults.h, defaults.cc (Vlocal_ver_arch_lib_dir): New variable. |
|
2589 * defaults.cc (set_default_local_ver_arch_lib_dir): New function. |
|
2590 (install_defaults): Call it. |
|
2591 (exec_path): Prepend the versioned form of the local arch lib |
|
2592 directory to the standard path. |
|
2593 * defaults.h.in (OCTAVE_LOCALVERARCHLIBDIR, |
|
2594 OCTAVE_LOCALVERFCNFILEDIR, OCTAVE_LOCALVEROCTFILEDIR): |
|
2595 Substitute these too. |
|
2596 * toplev.cc (Foctave_config_info): Add them to the struct. |
|
2597 |
3591
|
2598 2000-02-08 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2599 |
3597
|
2600 * toplev.cc (Foctave_config_info): Add MKOCTFILE_INCFLAGS to the |
|
2601 struct. |
3591
|
2602 * oct-conf.h.in (OCTAVE_CONF_MKOCTFILE_INCFLAGS): Define. |
|
2603 |
3584
|
2604 2000-02-07 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2605 |
3587
|
2606 * DLD-FUNCTIONS/balance.cc (Fbalance): Explicitly request |
|
2607 conversion from Matrix to ComplexMatrix. |
|
2608 * DLD-FUNCTIONS/qz.cc (Fqz): Likewise. |
|
2609 |
|
2610 * ov-re-mat.h (octave_matrix::complex_matrix_value): Explicitly |
|
2611 request conversion from Matrix type. |
|
2612 |
|
2613 * ov-ch-mat.h (octave_char_matrix::matrix_value): Explicitly |
|
2614 request conversion from charMatrix type. |
|
2615 (octave_char_matrix::complex_matrix_value): Likewise. |
|
2616 * ov-bool-mat.h (octave_bool_matrix::matrix_value): Likewise. |
|
2617 (octave_bool_matrix::complex_matrix_value): Likewise. |
|
2618 |
|
2619 * ov-range.h (octave_range::complex_matrix_value): Explicitly |
|
2620 request conversion from Matrix type. |
|
2621 |
|
2622 * ov-cx-mat.h, ov-re-mat.h: Explicitly request conversions from |
|
2623 diagonal matrix types in constructors. |
|
2624 |
3586
|
2625 * mappers.cc (ximag, xreal): Return double, not Complex. |
|
2626 |
3585
|
2627 * error.cc (panic): Turn off buffering of error messages. |
|
2628 Don't call flush_octave_stdout here, verror will do it for us. |
|
2629 (verror): Don't call flush_octave_stdout if buffering error messages. |
|
2630 |
3584
|
2631 * pt-except.cc (tree_try_catch_command::eval): Only restore |
|
2632 buffer_error_message value (by running the unwind_protect element |
|
2633 for it) if it has been saved. |
|
2634 |
|
2635 * help.cc (Ftype): Return value if nargout is NOT equal to zero. |
|
2636 Delete unnecessary unwind_protect::begin_frame(). |
|
2637 |
|
2638 * toplev.cc (octave_config_info): Stuff lots of new config info in |
|
2639 the struct. |
|
2640 |
|
2641 * oct-conf.h.in: Delete TARGET_HOST_TYPE. |
|
2642 |
3574
|
2643 2000-02-04 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2644 |
3579
|
2645 * siglist.c: Include <signal.h>. |
|
2646 |
3575
|
2647 * lex.l (is_plot_keyword): Add minimum match length in call to |
|
2648 almost_match. |
|
2649 |
3574
|
2650 * Makefile.in (%.df : %.cc): Don't pass -c to compiler. |
|
2651 |
3564
|
2652 2000-02-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2653 |
3572
|
2654 * ov-base-mat.cc: Include pr-output.h here. |
|
2655 |
3571
|
2656 * DLD-FUNCTIONS/rand.cc (curr_rand_dist): Return const char * |
|
2657 instead of char *. |
|
2658 |
3570
|
2659 * oct-fstrm.cc (octave_fstream::seek, octave_fstream::tell): |
|
2660 Call pubseekoff instead of seekoff. |
|
2661 |
3568
|
2662 * DLD-FUNCTIONS/dassl.cc (print_dassl_option_list): Use stream |
|
2663 manipulators instead of GNU iostream-specific form function. |
|
2664 * DLD-FUNCTIONS/fsolve.cc (print_fsolve_option_list): Ditto. |
|
2665 * DLD-FUNCTIONS/lsode.cc (print_lsode_option_list): Ditto. |
|
2666 * DLD-FUNCTIONS/quad.cc (print_quad_option_list): Ditto. |
|
2667 * pr-output.cc (pr_scale_header): Ditto. |
|
2668 |
3566
|
2669 * sighandlers.h: Include signal.h here. |
|
2670 * sighandlers.cc: Not here. |
|
2671 |
|
2672 * utils.cc: Include setjmp.h, not csetjmp. |
|
2673 * toplev.cc: Ditto. |
|
2674 |
|
2675 * sighandlers.cc: Include signal.h, not csignal. |
|
2676 |
|
2677 * pt-plot.h: Don't include csignal. |
|
2678 * toplev.cc: Ditto. |
|
2679 * oct-hist.cc: Ditto. |
|
2680 * octave.cc: Ditto. |
|
2681 * pager.cc: Ditto. |
|
2682 * input.cc: Ditto. |
|
2683 * help.cc: Ditto. |
|
2684 |
3565
|
2685 * pt-plot.cc (send_to_plot_stream): Use operator== and substr |
|
2686 method to do limited-length string comparison. |
|
2687 * input.cc (generate_completion): Likewise. |
|
2688 * ov-dld-fcn.cc (octave_dld_function::octave_dld_function): Likewise. |
|
2689 * ov-usr-fcn.cc (octave_user_function::mark_as_system_fcn_file): |
|
2690 Likewise. |
|
2691 |
|
2692 * utils.cc (check_preference): Expect exact string matches. |
|
2693 * variables.cc (ignore_function_time_stamp): Likewise. |
|
2694 * lex.l (whitespace_in_literal_matrix): Likewise. |
|
2695 |
3564
|
2696 * mappers.cc (xconj, ximag, xreal): New functions. Use them in |
|
2697 DEFUN_MAPPER calls. |
|
2698 |
|
2699 * defun-int.h (DEFUN_MAPPER_INTERNAL): Cast function pointer args |
|
2700 to octave_mapper constructor. |
|
2701 |
3523
|
2702 2000-02-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2703 |
3564
|
2704 * procstream.cc (procstreambase::procstreambase, |
|
2705 procstreambase::open, procstreambase::close): |
|
2706 Call std::ios::setstate, not set. |
|
2707 |
3561
|
2708 * lex.l (plot_axes_token): Declare plot_axes as const char *. |
|
2709 Declare tmp const char **. |
|
2710 |
3560
|
2711 * oct-procbuf.h: Include fstream, not streambuf.h. |
|
2712 |
3570
|
2713 * load-save.cc (Fsave): Call pubseekoff instead of seekoff. |
3558
|
2714 * oct-strstrm.cc (octave_base_strstream::tell): Likewise. |
|
2715 (octave_base_strstream::seek): Likewise. |
|
2716 |
3553
|
2717 * oct-stream.cc (octave_base_stream::read): Rename count to char_count. |
|
2718 (octave_base_stream::do_gets): Likewise. |
|
2719 |
|
2720 * octave-stream.cc (octave_base_stream::write): Rename flt_fmt to ffmt. |
|
2721 (octave_base_stream::read): Likewise. |
|
2722 |
3552
|
2723 * TEMPLATE-INST/SLStack-sym.cc: Delete meaningless `extern |
|
2724 template' declarations. |
|
2725 * TEMPLATE-INST/Array-tc.cc: Ditto. |
|
2726 |
|
2727 * TEMPLATE-INST/Map-fnc.cc: Don't try to instantiate goodCHptr or |
|
2728 CHptr_to_index here. |
|
2729 * TEMPLATE-INST/Map-tc.cc: Likewise. |
3554
|
2730 * Map.h (CHNode::goodCHptr, CHNode::CHptr_to_index): Now member |
|
2731 functions. Change all callers. |
3552
|
2732 |
|
2733 * load-save.cc (read_binary_file_header): Declare magic_len `const'. |
|
2734 |
|
2735 * token.h (token::token (const token&), token::operator=): |
|
2736 Delete unnecessary definitions. |
|
2737 |
|
2738 * oct-stream.cc (octave_stream::mode_as_string): Use |
|
2739 std::ios::binary, not std::ios::bin. |
|
2740 * load-save.cc (Fsave, Fload, save_user_variables): Likewise. |
|
2741 |
3550
|
2742 * DLD-FUNCTIONS/qz.cc (Fqz): Use Array<int> class instead of |
|
2743 trying to create automatic int array with variable size. |
|
2744 |
3548
|
2745 * variables.cc (F__dump_symbol_info__): Fix continuation char. |
3552
|
2746 * mappers.cc (Ftoupper): Likewise. |
3548
|
2747 * DLD-FUNCTIONS/besselj.cc (Fairy, Fbesselj): Likewise. |
|
2748 * DLD-FUNCTIONS/chol.cc (Fchol): Likewise. |
|
2749 * DLD-FUNCTIONS/det.cc (Fdet): Likewise. |
|
2750 * DLD-FUNCTIONS/eig.cc (Feig): Likewise. |
|
2751 * DLD-FUNCTIONS/gammainc.cc (gammainc): Likewise. |
|
2752 * DLD-FUNCTIONS/givens.cc (givens): Likewise. |
|
2753 * DLD-FUNCTIONS/hess.cc (hess): Likewise. |
|
2754 * DLD-FUNCTIONS/inv.cc (inv): Likewise. |
|
2755 * DLD-FUNCTIONS/log.cc (logm): Likewise. |
|
2756 * DLD-FUNCTIONS/lu.cc (lu): Likewise. |
|
2757 * DLD-FUNCTIONS/qr.cc (qr): Likewise. |
|
2758 * DLD-FUNCTIONS/schur.cc (schur): Likewise. |
|
2759 * DLD-FUNCTIONS/balance.cc (balance): Likewise. |
|
2760 * DLD-FUNCTIONS/svd.cc (svd): Likewise. |
|
2761 * DLD-FUNCTIONS/syl.cc (syl): Likewise. |
|
2762 * DLD-FUNCTIONS/expm.cc (Fexpm): Likewise. |
|
2763 |
|
2764 * token.h (token::token_type, token::end_tok_type, |
|
2765 token::plot_tok_type): Delete extraneous comma from enum decls. |
3552
|
2766 * load-save.cc (load_save_format): Likewise. |
3548
|
2767 |
3546
|
2768 * pt-idx.cc (tree_index_expression::tree_index_expression): |
|
2769 Delete default arg values. |
3552
|
2770 * oct-fstrm.cc (octave_fstream::octave_fstream): Likewise. |
|
2771 * oct-stream.cc (octave_stream::octave_stream): Likewise. |
3546
|
2772 |
|
2773 * siglist.h, siglist.c: New files. |
|
2774 * Makefile.in: Add them to the appropriate lists. |
|
2775 * siglist.c (sys_siglist): Move definition here from sighandlers.cc. |
|
2776 * siglist.h (sys_siglist): Move declaration here from sighandlers.h. |
|
2777 |
3545
|
2778 * ov.h, ov-bool.h, ov-bool-mat.h (bool_matrix_value): |
|
2779 Delete unnecessary arg. |
|
2780 |
3544
|
2781 * ov.h (octave_value::do_multi_index_op): Rename from do_index_op. |
|
2782 |
|
2783 * ov-fcn.h (octave_function::is_system_fcn_file): Now const. |
|
2784 |
3529
|
2785 * Map.cc (index_to_CHptr): Now a macro. |
3530
|
2786 (CHMap<C>::hash): Now a member function. |
3529
|
2787 |
3528
|
2788 * defun-int.h (UNDERSCORIFY): New macro. |
|
2789 (DEFCONST_INTERNAL, DEFCONSTX_INTERNAL): Use it. |
|
2790 |
3526
|
2791 * data.cc (Fis_list): Fix continuation char. |
3532
|
2792 * defaults.cc (IMAGEPATH): Likewise. |
3526
|
2793 |
|
2794 * Map.cc (CHptr_to_index, goodCHptr): Delete static decl. |
|
2795 |
3525
|
2796 * ov.h (unary_op, binary_op, assign_op): Prepend `op_' to elts. |
|
2797 Change all usses |
|
2798 |
3523
|
2799 * All source files: Sprinkle with std:: qualifier as needed. |
|
2800 |
3503
|
2801 2000-01-31 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2802 |
|
2803 * sighandlers.cc (install_signal_handlers): Add std:: qualifier |
|
2804 for set_net_handler. |
|
2805 |
|
2806 * All source files: Include iostream, fstream, strstream, |
|
2807 etc. as needed instead of using forward declarations for these |
|
2808 classes. |
|
2809 |
3498
|
2810 2000-01-30 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2811 |
|
2812 * input.cc (input_event_hook, Finput_event_hook): New functions. |
|
2813 (hook_fcn, user_data): New static variables. |
|
2814 |
3489
|
2815 2000-01-28 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2816 |
3491
|
2817 * pt-except.cc (do_catch_code): Don't do anything special for |
|
2818 tree_return_command::returning, or tree_break_command::breaking. |
|
2819 |
|
2820 * error.cc (vwarning): New function. |
|
2821 (warning): Use it instead of calling verror. |
|
2822 |
|
2823 * oct-stream.cc (octave_base_stream::oscanf): |
|
2824 Result is now always nconv+1 elements. Return count of successful |
|
2825 conversions in last element. |
|
2826 * file-io.cc (Ffscanf, Fsscanf, Fscanf): Fix doc string. |
|
2827 |
3490
|
2828 * pt-except.cc (do_catch_code): Unwind-protect buffer_error_messages. |
|
2829 Be sure to run all unwind-protects before returning. |
|
2830 (tree_try_catch_command::eval): Add do_catch_code cleanup function |
|
2831 to unwind-protect stack before resetting buffer_error_messages. |
|
2832 Use unwind-protect to save and restore buffer_error_messages. |
|
2833 If there is no catch code, discard the cleanup function and run |
|
2834 the unwind-protect for buffer_error_messages. |
|
2835 |
|
2836 * error.cc (bind_global_error_variable): Avoid dereferencing |
|
2837 error_message_buffer if it is NULL. |
|
2838 |
3489
|
2839 * parse.y (evaluating_function_body): New global flag. |
|
2840 * ov-usr-fcn.cc (octave_user_function::do_index_op): |
|
2841 Protect and set it here. |
|
2842 * parse.y (make_break_command, make_return_command): Check it here. |
|
2843 |
|
2844 * error.cc (warning_state): New global flag. |
|
2845 (warning): Set it here. |
|
2846 * lex.l (reset_parser): Clear it here. |
|
2847 * parse.y (fold): Check it here. |
|
2848 |
3484
|
2849 2000-01-27 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2850 |
3485
|
2851 * pt-walk.h (tree_walker::visit_do_until_command): New pure virtual. |
|
2852 * pt-pr-code.cc (tree_print_code::visit_do_until_command): |
3484
|
2853 New function. |
3485
|
2854 * pt-loop.h (tree_do_until_command): New class. |
3484
|
2855 (tree_while_command::expr, tree_while_command::list): |
|
2856 Now protected instead of private. |
3485
|
2857 * parse.y (make_do_until_command): New function. |
|
2858 (loop_command): Recognize do-until statement. |
3484
|
2859 (DO, UNTIL): New tokens. |
|
2860 |
|
2861 * input.cc (match_sans_spaces): Require non-blank part of test |
|
2862 string to match standard string exactly. |
|
2863 |
3483
|
2864 2000-01-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2865 |
|
2866 * oct-stream.h (scanf_format_elt::char_class): New struct elt. |
|
2867 Add arg to constructor. |
|
2868 (scanf_format_elt::special_conversion): New enum. |
|
2869 * oct-stream.cc (scanf_format_list::add_elt_to_list): New arg, |
|
2870 char_class. Pass it to scanf_format_elt constructor. |
|
2871 (scanf_format_list::scanf_format_list): Create separate list |
|
2872 elements for whitespace and literal conversions. |
|
2873 (expand_char_class): New function. |
|
2874 (scanf_format_list::finish_conversion): Extract character class |
|
2875 (not including the delimiting brackets) and expand the list of |
|
2876 characters. Pass the result to add_elt_to_list. |
|
2877 (scanf_format_list::all_character_conversions): Also accept '^', |
|
2878 scanf_format_elt::literal_conversion, and |
|
2879 scanf_format_elt::whitespace_conversion types too. |
|
2880 (DO_WHITESPACE_CONVERSION, BEGIN_CHAR_CLASS_CONVERSION, |
|
2881 BEGIN_C_CONVERSION, BEGIN_S_CONVERSION, DO_LITERAL_CONVERSION): |
|
2882 New macros. |
|
2883 (octave_base_stream::do_scanf, octave_base_stream::do_oscanf): |
|
2884 Use them to avoid code duplication. |
|
2885 Handle whitespace, literal text, and character class conversions. |
|
2886 (octave_base_stream::oscanf): Loop over all format list elements, |
|
2887 not just the first nconv elements. Clear status flags on is for |
|
2888 all streams. |
|
2889 |
3476
|
2890 2000-01-25 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2891 |
3480
|
2892 * xdiv.cc (result_ok): Just check value of info. |
|
2893 (solve_singularity_warning): New function. |
|
2894 (xleftdiv, xdiv): Pass pointer to solve_singularity_warning to |
|
2895 solve function. |
|
2896 |
|
2897 * lex.l (handle_identifier): Set next_tok_is_eq if we are looking |
|
2898 at `=', but not if we are looking at `=='. |
|
2899 |
3478
|
2900 * pt-pr-code.cc (tree_print_code::visit_unwind_protect_command): |
|
2901 Print `unwind_protect_cleanup', not `cleanup_code'. |
|
2902 |
3477
|
2903 * pager.cc (octave_pager_buf::flush_current_contents_to_diary): |
|
2904 New function. |
|
2905 (octave_pager_stream::flush_current_contents_to_diary): |
|
2906 Ditto. |
|
2907 (close_diary_file): Use the new octave_pager_stream function to |
|
2908 try to flush the current buffer to the diary when it is closed. |
|
2909 |
3476
|
2910 * variables.cc (Fexist): Return 6 for built-in constants. |
|
2911 |
|
2912 * pt-plot.cc (Fgshow): Don't append " " after last arg. |
|
2913 (Fgset): Likewise. |
|
2914 |
3472
|
2915 2000-01-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2916 |
|
2917 * ov-base-mat.h (octave_base_matrix::length): Return 0 for empty |
|
2918 arrays. |
|
2919 |
3465
|
2920 2000-01-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2921 |
|
2922 * DLD-FUNCTIONS/time.cc (Fstrptime): New function. |
|
2923 |
|
2924 * load-save.cc (Fsave): Add missing else. |
|
2925 |
3442
|
2926 2000-01-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2927 |
3444
|
2928 * DLD-FUNCTIONS/gammainc.cc (Fgammainc): Texinfoize doc string. |
3445
|
2929 * ov-typeinfo.cc (Ftypeinfo): Ditto. |
3446
|
2930 * parse.y (Vwarn_future_time_stamp): Ditto. |
|
2931 * DLD-FUNCTIONS/minmax.cc (Fmax, Fmin): Ditto. |
3445
|
2932 * ov-usr-fcn.cc (Fva_arg, Fva_start, Fvr_val): Ditto. |
3446
|
2933 * defaults.cc (VOCTAVE_HOME, Frehash): Ditto. |
|
2934 * toplev.cc (Fwarranty, Fcasesen): Ditto. |
|
2935 * utils.cc (Fdo_string_escapes, Ffile_in_loadpath): Ditto. |
|
2936 * variables.cc (F__dump_symtab_info__, F__dump_symbol_info__): Ditto. |
3447
|
2937 * ov-list.cc (Flist, Fappend, Fnth, Freverse, Fsplice): Ditto. |
3448
|
2938 * input.cc (Fread_readline_init_file): Ditto. |
|
2939 * file-io.cc (Fis_stream): Ditto. |
|
2940 * ov-cell.cc (Fiscell, Fcell): Ditto. |
|
2941 * pt-assign.cc (Vprint_rhs_assign_val): Ditto. |
|
2942 * pt-decl.cc (Vinitialize_global_variables): Ditto. |
|
2943 * symtab.cc (Vvariables_can_hide_functions): Ditto. |
3443
|
2944 |
3442
|
2945 * pt-plot.cc (Fgraw, Fgset, Fgshow, Vgnuplot_command_plot, |
|
2946 Vgnuplot_command_replot, Vgnuplot_command_splot, |
|
2947 Vgnuplot_command_using, Vgnuplot_command_with, |
|
2948 Vgnuplot_command_axes, Vgnuplot_command_title, |
|
2949 Vgnuplot_command_end): Texinfoize doc strings. |
|
2950 |
3447
|
2951 * oct-procbuf.cc (__kluge_procbuf_delay__): Rename from |
|
2952 kluge_procbuf_delay. Texinfoize doc string. |
|
2953 |
3427
|
2954 2000-01-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2955 |
|
2956 * parse.y (gobble_leading_whitespace): Discard first space character |
|
2957 after consecutive comment characters. |
|
2958 * lex.l (grab_help_text): Ditto. |
|
2959 |
3428
|
2960 * lex.l (Vwhitespace_in_literal_matrix, Vwarn_separator_insert, |
|
2961 Vwarn_single_quote_string): Texinfoize doc string. |
|
2962 |
3418
|
2963 2000-01-11 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2964 |
3419
|
2965 * ov.h, ov.cc (octave_value::column_vector_value, |
|
2966 octave_value::row_vector_value, |
|
2967 octave_value::complex_column_vector_value, |
|
2968 octave_value::complex_row_vector_value): New functions. |
|
2969 (octave_value::vector_value): Now returns Array<double>. |
|
2970 (octave_value::complex_vector_value): Now returns Array<Complex>. |
|
2971 Sprinkle conversions where necessary. |
|
2972 |
3418
|
2973 * ov.cc (Vprefer_column_vectors): Now static. |
|
2974 * ov.h (octave_value (const ComplexRowVector&), |
|
2975 octave_value (const ComplexColumnVector&), |
|
2976 octave_value (const RowVector&), octave_value (const ColumnVector&)): |
|
2977 Delete second arg. Change all callers. |
3419
|
2978 |
3418
|
2979 * oct-obj.h (octave_value_list (const RowVector&), |
|
2980 octave_value_list (const ColumnVector&), |
|
2981 octave_value_list (const ComplexRowVector&), |
|
2982 octave_value_list (const ComplexColumnVector&)): Likewise. |
|
2983 * ov-cx-mat.h, ov-cx-mat.cc |
|
2984 (octave_complex_matrix (const ComplexRowVector&), |
|
2985 (octave_complex_matrix (const ComplexColumnVector&)): |
|
2986 Delete second arg, simply create object with orientation |
|
2987 corresponding to vector arg. Move constructors to class decl. |
|
2988 * ov-re-mat.h, ov-re-mat.cc (octave_matrix (const RowVector&), |
|
2989 (octave_matrix (const ColumnVector&)): |
|
2990 Delete second arg, simply create object with orientation |
|
2991 corresponding to vector arg. Move constructors to class decl. |
|
2992 |
3411
|
2993 2000-01-07 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
2994 |
|
2995 * mappers.cc (Fconj, Ferf, Ferfc, Fgamma, Fimag, Flgamma, Flog10, |
|
2996 Freal, Fround): Add @seealso{...} to doc strings. |
|
2997 |
3408
|
2998 2000-01-06 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2999 |
3410
|
3000 * oct-stream.cc (do_scanf): Do the right thing again for character |
|
3001 conversions. |
|
3002 |
3408
|
3003 * help.cc (display_help_text): Also strip out leading spaces |
|
3004 before Texinfo @-commands before sending doc string to makeinfo. |
|
3005 (display_help_text): Improve format of `See also' string. |
|
3006 |
3405
|
3007 2000-01-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3008 |
|
3009 * help.cc (display_help_text): Pass a definition for @seealso |
|
3010 through the filter. |
|
3011 |
3400
|
3012 1999-12-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3013 |
|
3014 * lex.l (Vwarn_single_quote_string): New variable. |
|
3015 (syms_of_lex): DEFVAR it. |
|
3016 (warn_single_quote_string): New function. |
|
3017 (gripe_single_quote_string): New function. |
|
3018 Use new stuff to allow warnings for code that uses single quote |
|
3019 characters to introduce string constants. |
|
3020 |
3399
|
3021 1999-12-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3022 |
|
3023 * mkbuiltins: Add #undef quad to generated file. |
|
3024 |
3388
|
3025 1999-12-15 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3026 |
|
3027 * lex.l (Vwarn_separator_insert): New variable. |
|
3028 (syms_of_lex): DEFVAR it. |
|
3029 (warn_separator_insert): New function. |
|
3030 (maybe_warn_separator_insert): New function. |
|
3031 Use new stuff to allow warnings for code that might result in |
|
3032 auto-insertion of commas or semicolons, depending on the value of |
|
3033 whitespace_in_literal_matrix. |
|
3034 |
|
3035 * parse.y (Fsource): Record function file name here too. |
|
3036 |
3377
|
3037 1999-12-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3038 |
|
3039 * variables.cc (link_to_global_variable): If the local symbol is |
|
3040 not a variable, don't bother to clear it. Instead, just redefine |
|
3041 it by aliasing to the global symbol. |
|
3042 |
3372
|
3043 1999-11-23 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3044 |
3373
|
3045 * DLD-FUNCTIONS/balance.cc (Fbalance): Texinfoize doc string. |
|
3046 * DLD-FUNCTIONS/det.cc (Fdet): Ditto. |
|
3047 * DLD-FUNCTIONS/eig.cc (Feig): Ditto. |
|
3048 * DLD-FUNCTIONS/givens.cc (Fgivens): Ditto. |
|
3049 * DLD-FUNCTIONS/inv.cc (Finv): Ditto. |
|
3050 * DLD-FUNCTIONS/chol.cc (Fchol): Ditto. |
|
3051 * DLD-FUNCTIONS/hess.cc (Fhess): Ditto. |
|
3052 * DLD-FUNCTIONS/lu.cc (Flu): Ditto. |
|
3053 * DLD-FUNCTIONS/qr.cc (Fqr): Ditto. |
|
3054 * DLD-FUNCTIONS/schur.cc (Fschur): Ditto. |
|
3055 * DLD-FUNCTIONS/svd.cc (Fsvd): Ditto. |
|
3056 * DLD-FUNCTIONS/expm.cc (Fexpm): Ditto. |
|
3057 * DLD-FUNCTIONS/log.cc (Flogm, Fsqrtm): Ditto. |
|
3058 * DLD-FUNCTIONS/syl.cc (Fsyl): Ditto. |
|
3059 * DLD-FUNCTIONS/pinv.cc (Fpinv): Ditto. |
|
3060 * DLD-FUNCTIONS/qz.cc (Fqz): Ditto. |
|
3061 * DLD-FUNCTIONS/dassl.cc (Fdassl, Fdassl_options): Ditto. |
|
3062 * DLD-FUNCTIONS/lsode.cc (Flsode, Flsode_options): Ditto. |
|
3063 * data.cc (Flength, Fsize, Fisempty): Ditto. |
3372
|
3064 * sysdep.cc (Fkbhit): Ditto. |
|
3065 * input.cc (Fkeyboard, Finput): Ditto. |
|
3066 * variables.cc (ans): Ditto. |
|
3067 * pr-output.cc (Fdisp, Fformat): Ditto. |
|
3068 * ov.cc (Vprint_answer_id_name): Ditto. |
3373
|
3069 * defaults.cc (IMAGEPATH): Ditto. |
|
3070 * error.cc (Ferror, Fwarning, Fusage, error_text, beep_on_error): |
|
3071 Ditto. |
3372
|
3072 * load-save.cc (Fload, Fsave, Vdefault_save_format, |
|
3073 Vsave_precision): Ditto. |
|
3074 * file-io.cc (Ffflush, Ffopen, Ffclose, Ffputs, Ffgetl, Ffgets, |
|
3075 Ffprintf, Fsprintf, Fscanf, Ffscanf, Fsscanf, Ffread, Ffwrite, |
|
3076 Ffseek, Fftell, Ffeof, Fferror, Ffreport, Ftmpnam, Vstdin_file, |
|
3077 Vstdout_file, Vstderr_file, SEEK_SET, SEEK_CUR, SEEK_END): Ditto. |
|
3078 * pager.cc (Vpager_binary, Vpage_output_immediately, |
|
3079 Vpage_screen_output, Fmore): Ditto. |
|
3080 |
3369
|
3081 1999-11-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3082 |
|
3083 * utils.cc (Vtreat_neg_dim_as_zero): Texinfoize doc string. |
|
3084 * DLD-FUNCTIONS/find.cc (Ffind): Ditto. |
|
3085 * DLD-FUNCTIONS/rand.cc (Frand, Frandn): Ditto. |
|
3086 * DLD-FUNCTIONS/sort.cc (Fsort): Ditto. |
|
3087 * mappers.cc (Fisinf, Fisnan, Ffinite): Ditto. |
|
3088 * data.cc (Fall, Fany, Fdiag, Fones, Fzeros, Feye, Flinspace): Ditto. |
3371
|
3089 * defaults.cc (Vloadpath, Vdefault_loadpath): Ditto. |
|
3090 * parse.y (Feval, Ffeval, Vdefault_eval_print_flag, |
|
3091 Vwarn_missing_semicolon, Vwarn_function_name_clash, Fsource): Ditto. |
|
3092 * ov-usr-fcn.cc (Vmax_recursion_depth, Vdefault_return_value, |
|
3093 Vdefine_all_return_values, Vreturn_last_computed_value): Ditto. |
|
3094 * ov.cc (Vok_to_lose_imaginary_part, Vdo_fortran_indexing, |
|
3095 Vprefer_column_vectors, Vresize_on_range_error, |
|
3096 Vwarn_divide_by_zero): Ditto. |
|
3097 * pt-stmt.cc (Vsilent_functions): Ditto. |
|
3098 * variables.cc (Vignore_function_time_stamp): Ditto. |
|
3099 * dynamic-ld.cc (Vwarn_reload_forces_clear): Ditto. |
3369
|
3100 |
3367
|
3101 1999-11-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3102 |
3368
|
3103 * DLD-FUNCTIONS/fft.cc (Ffft): Texinfoize doc string. |
|
3104 * DLD-FUNCTIONS/ifft.cc (Fifft): Ditto. |
|
3105 * DLD-FUNCTIONS/fft2.cc (Ffft2): Ditto. |
|
3106 * DLD-FUNCTIONS/ifft2.cc (Fifft2): Ditto. |
|
3107 * DLD-FUNCTIONS/filter.cc (Ffilter): Ditto. |
|
3108 * DLD-FUNCTIONS/quad.cc (Fquad, Fquad_options): Ditto. |
|
3109 * DLD-FUNCTIONS/colloc.cc (Fcolloc): Ditto. |
|
3110 * DLD-FUNCTIONS/fsolve.cc (Ffsolve, Ffsolve_options): Ditto. |
|
3111 * defaults.cc (Veditor): Ditto. |
|
3112 * pt-plot.cc (Vautomatic_replot, Vgnuplot_binary, |
|
3113 Vgnuplot_has_frames, Vgnuplot_has_multiplot, Fclearplot, |
|
3114 Fcloseplot, Fpurge_tmp_files, Fishold, Fhold): |
3367
|
3115 |
|
3116 * Makefile.in (parse.cc): Expect 11 shift/reduce conflicts now. |
|
3117 |
3361
|
3118 1999-11-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3119 |
3366
|
3120 * parse.y (Vwarn_assign_as_truth_value, Vwarn_variable_switch_label): |
|
3121 Texinfoize doc strings. |
|
3122 |
3365
|
3123 * DLD-FUNCTIONS/pinv.cc (Fpinv): Texinfoize doc string. |
|
3124 |
3364
|
3125 * defun-int.h (DEFUN_DLD_INTERNAL): New macro. |
|
3126 * defun-dld.h [MAKE_BUILTINS] (DEFUN_DLD): Simply expand to |
|
3127 DEFUN_DLD_INTERNAL. |
|
3128 * mkbuiltins: Generate code to define DEFUN_DLD_INTERNAL. |
|
3129 * mkgendoc: Likewise. |
|
3130 |
3363
|
3131 * Makefile.in (gendoc.o): Don't optimize when creating gendoc. |
3364
|
3132 (%.dc : %.cc): Delete rule. |
3363
|
3133 |
3361
|
3134 * pt-decl.cc (Vdefault_global_variable_value): Texinofize doc string. |
|
3135 * variables.cc (Fclear, Fdocument, Fexist, Fis_global, Fwho): Ditto. |
|
3136 * help.cc (Ftype, Fwhich): Ditto. |
|
3137 * ov.cc (Vstruct_levels_to_print, Vimplicit_str_to_num_ok): Ditto. |
|
3138 * data.cc (Fis_struct, Fstruct_elements, Fstruct_constains): Ditto. |
|
3139 * strfns.cc (Fisstr, Fsetstr): Ditto. |
|
3140 * pt-mat.cc: (Fimplicit_num_to_str_ok, Fstring_fill_char): Ditto. |
|
3141 * utils.cc (Fundo_string_escapes): Ditto. |
|
3142 * mappers.cc: (Fisalnum, Fisalpha, Fisascii, Fiscntrl, Fisdigit, |
|
3143 Fisgraph, Fislower, Fisprint, Fispunct, Fisspace, Fisupper, |
|
3144 Fisxdigit, Ftoascii, Ftolower, Ftoupper): Ditto. |
|
3145 |
3357
|
3146 1999-11-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3147 |
3360
|
3148 * syscalls.cc (symbols_of_syscalls): Use DEFCONSTX to define |
|
3149 Octave constants for C macros like O_WRONLY. |
|
3150 |
3357
|
3151 * oct-lvalue.cc (octave_lvalue::set_index): Disallow expressions |
|
3152 like x(i)(j) = rhs. |
|
3153 |
3355
|
3154 1999-11-17 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3155 |
3356
|
3156 * symtab.cc (symbol_record::type_as_string): New function. |
3355
|
3157 |
|
3158 * symtab.cc (symbol_record::which): New functions. |
|
3159 * help.cc (do_which): New functions. |
|
3160 (Fwhich): Use them. |
|
3161 |
|
3162 * help.cc (help_from_symbol_table, help_from_file): New functions. |
|
3163 (builtin_help): Use them. |
|
3164 |
|
3165 * help.cc (do_type): New function. |
3356
|
3166 (symbol_record::type): New function. |
3355
|
3167 (Ftype): Use them. |
|
3168 |
|
3169 * help.cc (print_symbol_type): Delete. |
|
3170 |
|
3171 * symtab.cc (symbol_table::name_list): Delete count arg. |
|
3172 (symbol_table::symbol_list): Likewise. |
|
3173 (symbol_table::glob): Likewise. Also return Array<symbol_record *> |
|
3174 instead of symbol_record **. |
|
3175 Change all callers. |
|
3176 * help.cc (names, display_symtab_names): Delete count arg. |
|
3177 |
|
3178 * help.cc (print_symbol_type, Ftype): No longer need to look up |
|
3179 fcn_file_name in the loadpath. |
|
3180 |
|
3181 * help.cc (print_symbol_type): Handle dld functions. |
|
3182 (help_from_symbol_table, help_from_file): New functions. |
|
3183 (builtin_help): Use them. |
|
3184 |
3354
|
3185 1999-11-16 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3186 |
|
3187 * ov-cell.cc (Fiscell, Fcell): New Functions. |
|
3188 (octave_cell::do_index_op): New function. |
|
3189 |
|
3190 * utils.cc (get_dimensions): Move here from data.cc and make extern. |
|
3191 (Vtreat_neg_dim_as_zero, treat_neg_dim_as_zero): Likewise. |
|
3192 (symbols_of_utils): New function. |
|
3193 |
|
3194 * data.cc (fill_matrix (const octave_value_list&, double, |
|
3195 const char*)): New function. |
|
3196 (Fones, Fzeros): Use it to avoid some code duplication. |
|
3197 |
3352
|
3198 1999-11-15 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3199 |
|
3200 * pt-cell.h, pt-cell.cc, ov-cell.h, ov-cell.cc, Cell.h, Cell.cc: |
|
3201 New files. |
|
3202 * Makefile.in: Add them to the appropriate lists. |
|
3203 * pt-walk.h (visit_cell (tree_cell&): New pure virtual. |
|
3204 * pt-pr-code.cc (tree_print_code::visit_cell (tree_cell&)): New |
|
3205 function. |
|
3206 * TEMPLATE-INST/Array-tc.cc: Instantiate 2D arrays of octave_value |
|
3207 objects. |
|
3208 * pt-all.h: Include pt-cell.h. |
|
3209 * ov.h, ov.cc (octave_value::is_cell, octave_value::cell_value): |
|
3210 New functions. |
|
3211 * ov-base.h, ov-base.cc (octave_value::is_cell, |
|
3212 octave_value::cell_value): Provide defaults. |
|
3213 * lex.h, lex.l: Handle `{' and `}' tokens (for cell arrays). |
|
3214 (bracketflag): Rename from braceflag. |
|
3215 (handle_close_bracket): Rename from handle_close_brace. |
|
3216 (class bracket_brace_paren_nesting_level): Rename from |
|
3217 brace_paren_nesting_level. |
|
3218 (bracket_brace_paren_nesting_level::bracket, |
|
3219 bracket_brace_paren_nesting_level::is_bracket): New functions to |
|
3220 keep count of nesting level for `[' and `]'. |
|
3221 (bracket_brace_paren_nesting_level::brace, |
|
3222 bracket_brace_paren_nesting_level::is_brace): Now keeps count of |
|
3223 nesting level for `{' and `}'. |
|
3224 * parse.y (tree_cell_type): New type. |
|
3225 Give '{' the same precedence and associativity as '(' and '.' |
|
3226 (matrix_rows, matrix_rows1): Rename from rows, rows1. |
|
3227 (cell, cell_rows, cell_rows1): New non-terminals. |
|
3228 (cell_or_matrix_row): Rename from matrix_row. |
|
3229 (primary_expr): Accept cell here. |
|
3230 (postfix_expr): Allow indexing using '{' arg_list '}'. |
|
3231 (finish_cell): New function. |
|
3232 |
3350
|
3233 1999-11-12 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3234 |
|
3235 * utils.cc (jump_to_top_level): No longer declared extern "C". |
|
3236 |
|
3237 * cutils.c (octave_strcasecmp, octave_strncasecmp): New functions. |
|
3238 * utils.cc (almost_match): Call octave_strncasecmp instead of |
|
3239 calling strncasecmp directly. |
|
3240 |
3347
|
3241 1999-11-10 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3242 |
|
3243 * parse.y: Don't define warn_reload_forces_clear here. |
|
3244 |
|
3245 * Makefile.in (DISTFILES): Include DOCSTRINGS. |
|
3246 |
3340
|
3247 1999-11-05 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3248 |
3343
|
3249 * sighandlers.cc (install_signal_handlers): Don't install |
|
3250 sigwinch_handler. |
|
3251 |
3342
|
3252 * oct-iostrm.h (octave_istream::eof, octave_ostream::eof): Provide |
|
3253 implementation for these. |
|
3254 |
|
3255 * oct-stream.cc (octave_base_stream::do_scanf): |
|
3256 The stdin stream is only special if we are interactive. |
|
3257 (octave_base_stream::scanf): Ditto. |
|
3258 (octave_base_stream::do_oscanf): Ditto. |
|
3259 (octave_base_stream::oscanf): Ditto. |
|
3260 |
3340
|
3261 * ov.h (octave_value::is_stream): New predicate. |
|
3262 * ov-file.h (octave_file::is_stream): Return true. |
|
3263 * file-io.cc (Fis_stream): New function. |
|
3264 |
|
3265 * ov-file.h (class octave_file): stream is now an object instead |
|
3266 of pointer. |
|
3267 * ov-file.cc (octave_file::print_raw): Handle stream as object |
|
3268 instead of pointer. Also print stream status. |
|
3269 |
|
3270 * ov-base.cc (octave_base_value::stream_value): Return object |
|
3271 instead of pointer. |
|
3272 |
|
3273 * ov.cc (octave_value::stream_value): Return object instead of pointer. |
|
3274 (octave_value::octave_value (const octave_stream&)): Take const |
|
3275 reference instead of pointer arg. |
|
3276 |
|
3277 * TEMPLATE-INST/Array-os.cc: Instantiate Arrays of octave_stream |
|
3278 objects, not pointers to them. |
|
3279 |
|
3280 * OPERATORS/op-fil-b.cc: Cope with octave_stream class changes. |
|
3281 * OPERATORS/op-fil-bm.cc: Likewise. |
|
3282 * OPERATORS/op-fil-cm.cc: Likewise. |
|
3283 * OPERATORS/op-fil-cs.cc: Likewise. |
|
3284 * OPERATORS/op-fil-lis.cc: Likewise. |
|
3285 * OPERATORS/op-fil-m.cc: Likewise. |
|
3286 * OPERATORS/op-fil-rec.cc: Likewise. |
|
3287 * OPERATORS/op-fil-s.cc: Likewise. |
|
3288 * OPERATORS/op-fil-str.cc: Likewise. |
|
3289 * file-io.cc: Likewise. |
|
3290 * syscalls.cc (Fdup): Likewise. |
|
3291 |
|
3292 * oct-fstrm.cc, oct-fstrm.h, oct-iostrm.cc, oct-iostrm.h, |
|
3293 oct-prcstrm.cc, oct-prcstrm.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
3294 oct-stream.cc, oct-stream.h, oct-strstrm.cc, oct-strstrm.h: |
|
3295 Rewrite to allow octave_stream objects to be used like values |
|
3296 instead of having to use pointers. |
|
3297 |
3337
|
3298 1999-11-03 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3299 |
|
3300 * oct-stream.cc (octave_base_stream::do_scanf): If it looks like |
|
3301 we have a matching failure, then reset the failbit in the stream |
|
3302 state. |
|
3303 (octave_base_stream::do_oscanf): Likewise. |
|
3304 |
3332
|
3305 1999-11-02 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
3306 |
3361
|
3307 * help.cc (Fhelp): Texinfoize doc string. |
|
3308 * input.cc (Fecho, Fcompletion_matches): Ditto. |
|
3309 * oct-hist.cc (Fedit_history, Fhistory, Frun_history): Ditto. |
|
3310 * pager.cc (Fdiary): Ditto. |
|
3311 * sysdep.cc (Fclc): Ditto. |
|
3312 * toplev.cc (Fquit, Fatexit): Ditto. |
3332
|
3313 |
|
3314 1999-11-02 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3315 |
|
3316 * lex.l (yywrap): No longer static. |
|
3317 (have_continuation): Declare input character as int, not char, so |
|
3318 comparison to EOF will work. |
|
3319 |
3330
|
3320 1999-11-01 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3321 |
|
3322 * defun.cc (print_usage): Use display_help_text instead of sending |
|
3323 help message directly to octave_stdout. |
|
3324 |
3325
|
3325 1999-10-29 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3326 |
|
3327 * defun-dld.h (INSTALL_DLD_FCNS, INSTALL_DLD_FCN): Delete definitions. |
|
3328 * DLD-FUNCTIONS/dassl.cc: Don't use INSTALL_DLD_FCN or |
|
3329 INSTALL_DLD_FCNS macros. They are not necessary with the new code |
|
3330 in dynamic-ld.cc. |
|
3331 * DLD-FUNCTIONS/lsode.cc: Ditto. |
|
3332 * DLD-FUNCTIONS/fsolve.cc: Ditto. |
|
3333 * DLD-FUNCTIONS/quad.cc: Ditto. |
|
3334 * DLD-FUNCTIONS/time.cc: Ditto. |
|
3335 * DLD-FUNCTIONS/besselj.cc: Ditto. |
|
3336 * DLD-FUNCTIONS/getgrent.cc: Ditto. |
|
3337 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
3338 * DLD-FUNCTIONS/inv.cc: Ditto. |
|
3339 * DLD-FUNCTIONS/log.cc: Ditto. |
|
3340 * DLD-FUNCTIONS/minmax.cc: Ditto. |
|
3341 * DLD-FUNCTIONS/rand.cc: Ditto. |
|
3342 |
|
3343 * dynamic-ld.cc, dynamic-ld.h: Major rewrite to allow reloading of |
|
3344 dynamically linked functions. |
|
3345 |
|
3346 * symtab.cc (symbol_record::replace_all_defs): Don't allow top |
|
3347 definition to be NULL. |
|
3348 (symbol_table::clear): Allow dynamically linked functions to be |
|
3349 cleared. |
|
3350 |
|
3351 * symtab.h (TYPE): New enum value, DLD_FUCTION. |
|
3352 (symbol_type): Now 8 bits wide. |
|
3353 (SYMTAB_ALL_TYPES): Include DLD_FUNCTION. |
|
3354 (symbol_record::symbol_def::is_function): Also recognize dld functions. |
|
3355 (symbol_record::symbol_def::is_dld_function): New function. |
|
3356 (symbol_record::is_dld_function): Ditto. |
|
3357 |
|
3358 * defun.cc (install_dld_function): New function. |
|
3359 * defun-int.h: Provide declaration here. |
|
3360 (octave_dld_fcn_installer): New typedef. |
|
3361 (DEFINE_FUN_INSTALLER_FUN): Installer function now takes an |
|
3362 oct_shlib object as an arg. Allow installation of a function to |
|
3363 happen more than once. |
|
3364 |
|
3365 * octave.cc (initialize_error_handlers): Call |
|
3366 set_liboctave_warning_handler here too. |
|
3367 |
|
3368 * ov-builtin.h (is_builtin_function): Return true. |
|
3369 Data member is now protected, not private. |
|
3370 |
|
3371 * ov-fcn.h (is_dynamically_loaded_function): New predicate. |
|
3372 (unload): New function. |
|
3373 Data members are now protected, not private. |
|
3374 |
|
3375 * ov.h (is_builtin_function, is_dld_function): New predicates. |
|
3376 * ov-base.h (is_builtin_function, is_dld_function): Ditto. |
|
3377 |
|
3378 * parse.y (Vwarn_reload_forces_clear): New static flag. |
|
3379 (warn_reload_forces_clear): New function. |
|
3380 (symbols_of_parse): DEFVAR warn_reload_forces_clear. |
|
3381 |
|
3382 * variables.cc (Fclear): Look for dld functions too. |
|
3383 |
3770
|
3384 * ov-dld-fcn.cc, ov-dld-fcn.h: New files. |
3325
|
3385 * Makefile.in (OV_INCLUDES, OV_SRC): Add them to the lists. |
|
3386 |
|
3387 * Makefile.in (DEFVAR_PATTERN): Also match DEFCONSTX. |
|
3388 |
3321
|
3389 1999-10-26 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3390 |
3325
|
3391 * DLList.h, DLList.cc: New files. |
|
3392 * Makefile.in (INCLUDES, DIST_SRC): Add them to the lists. |
|
3393 |
3323
|
3394 * DLD-FUNCTIONS/lsode.cc (Flsode): Be sure to call |
|
3395 unwind_protect::run_frame before returning. |
|
3396 * DLD-FUNCTIONS/quad.cc (Fquad): Likewise. |
|
3397 * DLD-FUNCTIONS/fsolve.cc (Ffsolve): Likewise. |
|
3398 * DLD-FUNCTIONS/dassl.cc (Fdassl): Likewise. |
|
3399 |
|
3400 * load-save.cc (read_mat_ascii_data): When reading from |
|
3401 tmp_stream, check its state, not the state of is. |
|
3402 |
|
3403 * defun-dld.h (INSTALL_DLD_FCN, INSTALL_DLD_FCNS): New macros. |
|
3404 * DLD-FUNCTIONS/dassl.cc: Use them. |
|
3405 * DLD-FUNCTIONS/lsode.cc: Ditto. |
|
3406 * DLD-FUNCTIONS/fsolve.cc: Ditto. |
|
3407 * DLD-FUNCTIONS/quad.cc: Ditto. |
|
3408 * DLD-FUNCTIONS/time.cc: Ditto. |
|
3409 * DLD-FUNCTIONS/besselj.cc: Ditto. |
|
3410 * DLD-FUNCTIONS/getgrent.cc: Ditto. |
|
3411 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
3412 * DLD-FUNCTIONS/inv.cc: Ditto. |
|
3413 * DLD-FUNCTIONS/log.cc: Ditto. |
|
3414 * DLD-FUNCTIONS/minmax.cc: Ditto. |
|
3415 * DLD-FUNCTIONS/rand.cc: Ditto. |
|
3416 |
3322
|
3417 * data.cc (Flinspace): Let linspace functions handle errors. |
|
3418 |
3321
|
3419 * mkgendoc (print_doc_string): Handle quoted names. |
|
3420 |
|
3421 * file-io.cc (symbols_of_file_io): Use DEFCONSTX for SEEK_SET, |
|
3422 SEEK_CUR, and SEEK_END. |
|
3423 |
|
3424 * defun.h (DEFCONST): Just pass name, defn, and doc to |
|
3425 DEFCONST_INTERNAL. |
|
3426 (DEFCONSTX): Likewise, pass name, defn, and doc to DEFCONSTX_INTERNAL. |
|
3427 * defun-int.h [MKBUILTINS] (DEFCONST_INTERNAL): Likewise, pass |
|
3428 name, defn, and doc to XDEFCONST_INTERNAL. |
|
3429 [MKBUILTINS] (DEFCONSTX_INTERNAL): New macro. |
|
3430 (INSTALL_CONST): New macro. |
|
3431 [! MKBUILTINS] (DEFCONST_INTERNAL): Use it to handle details here. |
|
3432 [! MKBUILTINS] (DEFCONSTX_INTERNAL): Ditto. |
|
3433 * mkgendoc: Fix definition of XDEFCONST_INTERNAL to match. |
|
3434 * mkbuiltins: Ditto. |
|
3435 |
|
3436 * mkdefs: Match spaces before BEGIN_INSTALL_BUILTIN. |
|
3437 |
|
3438 * Makefile.in (DEFUN_PATTERN): Also match DEFUN_MAPPER. |
|
3439 |
|
3440 1999-10-26 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
3441 |
|
3442 * data.cc (VI, VInf, VJ, VNaN, Ve, Veps, Vfalse, Vi, Vinf, Vj, |
|
3443 Vnan, Vpi, Vrealmax, Vrealmin): Texinfoize doc strings. |
|
3444 * mappers.cc (Fabs, Facos, Facosh, Fangle, Farg, Fasin, Fasinh, |
|
3445 Fatan, Fatanh, Fceil, Fconj, Fcos, Fcosh, Ferf, Ferfc, Fexp, |
|
3446 Ffinite, Ffix, Ffloor, Fgamma, Fimag, Flgamma, Flog, Flog10, |
|
3447 Freal, Fround, Fsign, Fsin, Fsinh, Fsqrt, Ftan, Ftanh): Ditto. |
|
3448 |
|
3449 1999-10-23 Ben Sapp <bsapp@nua.lampf.lanl.gov> |
|
3450 |
3361
|
3451 * data.cc (Fis_matrix): Texinfoize doc string. |
|
3452 * ov.cc (Vpropagate_empty_matrices): Ditto. |
|
3453 * pt-mat.cc: (Vempty_list_elements_ok): Ditto. |
|
3454 * pr-output.cc (Vfixed_point_format, Voutput_max_field_width, |
|
3455 Voutput_precision, Vprint_empty_dimensions, Vsplit_long_rows): |
|
3456 Ditto. |
3321
|
3457 |
|
3458 1999-10-22 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3459 |
3323
|
3460 * ov-usr-fcn.cc (octave_user_function::do_index_op): If |
|
3461 Vmax_recursion_depth is exceeded, call unwind_protect::run_frame |
|
3462 before returning. |
3321
|
3463 |
3308
|
3464 1999-10-21 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3465 |
3317
|
3466 * cutils.c (do_octave_usleep): Handle useconds > 1e6. |
|
3467 |
3308
|
3468 * variables.h (is_valid_function): Provide default values for the |
|
3469 string argument. |
|
3470 |
|
3471 * symtab.cc (variable_reference): Maybe print warning (or error) |
|
3472 about variables that hide functions of the same name. |
|
3473 (symbol_record::define (const octave_value&, unsigned int)): Ditto. |
|
3474 (Vvariables_can_hide_functions): New static variable. |
|
3475 (variables_can_hide_functions, symbols_of_symtab): New functions. |
|
3476 |
|
3477 * cutils.c: New file. |
|
3478 * Makefile.in (SOURCES): Add it to the list. |
|
3479 * utils.h: Declare octave_usleep here. |
|
3480 * dirfns.cc (Fls): Simply all octave_usleep. |
|
3481 * oct-procbuf.cc (octave_procbuf::open): Ditto. |
|
3482 * sysdep.cc (Fusleep): Ditto. |
|
3483 * toplev.cc (run_command_and_return_output): Ditto. |
|
3484 |
3305
|
3485 1999-10-20 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3486 |
3307
|
3487 * data.cc (make_diag (const octave_value&, const octave_value&)): |
|
3488 Delete special cases for scalars and simply attempt conversion of |
|
3489 first arg to a matrix value. If that fails, we will still see an |
|
3490 error message. |
|
3491 |
3305
|
3492 * Makefile.in (DISTFILES): Add mkgendoc to the list. |
|
3493 |
3296
|
3494 1999-10-19 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3495 |
3301
|
3496 * Makefile.in (stmp-pic): New target. |
|
3497 ($(PICOBJS)): Depend on stmp-pic, not pic. |
|
3498 |
|
3499 * ov.h (get_rep): New function. |
|
3500 |
|
3501 * help.cc (display_help_text): Pass definitions for VERSION, |
|
3502 OCTAVE_HOME, and TARGETHOSTTYPE to makeinfo. |
|
3503 |
|
3504 * DLD-FUNCTIONS/getgrent.cc: Texinfoize all doc strings. |
|
3505 * DLD-FUNCTIONS/getpwent.cc: Ditto. |
|
3506 * DLD-FUNCTIONS/getrusage.cc: Ditto. |
|
3507 * DLD-FUNCTIONS/time.cc: Ditto. |
|
3508 |
|
3509 * defaults.cc (EXEC_PATH, OCTAVE_VERSION): Texinfoize doc strings. |
|
3510 * dirfns.cc (Fcd, Fls, Fpwd, Freaddir, Fmkdir, Frmdir, Frename, |
|
3511 Fglob, Ffnmatch): Ditto. |
|
3512 * file-io.cc (Fpopen, Fpclose, Fumask): Ditto. |
|
3513 * sysdep.cc (Fgetenv, Fputenv, Fpause, Fsleep, Fusleep, Fisieee, |
|
3514 Ftilde_expand): Ditto. |
|
3515 * toplev.cc (Fcomputer, Fsystem, Foctave_config_info): Ditto. |
|
3516 * utils.cc (Ffile_in_path): Ditto. |
|
3517 * syscalls.cc (Fdup2, Fexec, Ffcntl, Ffork, Fgetpgrp, Fgetpid, |
|
3518 Fgetppid, Fgetegid, Fgetgid, Fgeteuid, Fgetuid, Fmkfifo, Fpipe, |
|
3519 Fstat, Funlink, Fwaitpid, F): Ditto. |
|
3520 (Flstat): Refer to stat for doc. |
|
3521 |
|
3522 |
3296
|
3523 * help.cc (looks_like_texinfo): New function. |
|
3524 (display_help_text): Use it to see if the doc string looks like |
|
3525 Texinfo source. If so, use makeinfo to format the text before |
|
3526 displaying it. |
|
3527 |
|
3528 * mkgendoc: New script. |
|
3529 * Makefile.in: Use it to create gendoc.cc, which is compiled and |
|
3530 run to create DOCSTRINGS file from sources. |
|
3531 |
3295
|
3532 1999-10-18 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3533 |
|
3534 * help.cc (help_from_info): Print `unable to find info' message if |
|
3535 try_info returns 127; otherwise, print `not indexed' message. |
|
3536 Don't sleep after printing `not indexed' message. |
|
3537 |
3292
|
3538 1999-10-14 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3539 |
|
3540 * parse.y (fold (tree_unary_expression *)): New function. |
|
3541 (make_prefix_op, make_postfix_op): Use it. |
|
3542 |
3281
|
3543 1999-10-13 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3544 |
3288
|
3545 * Makefile.in (oct-gperf.h): Ask for ANSI-C output from gperf |
|
3546 (requires gperf-2.7 or later). |
|
3547 |
3281
|
3548 * sighandlers.cc (sigwinch_handler): New function. |
|
3549 (install_signal_handlers): Install it. |
|
3550 |
3273
|
3551 Thu Sep 23 19:49:36 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3552 |
|
3553 * toplev.cc (Fsystem): For async case, use execl instead of |
|
3554 system, avoiding the need to exit after executing the subprocess. |
|
3555 |
3268
|
3556 Thu Sep 9 17:09:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3557 |
|
3558 * oct-stream.cc (get_size): Allow zero values. |
|
3559 (get_size): New arg, one_elt_size_spec. |
|
3560 (do_scanf_conv): New arg, `conv_count'. Change instantiation |
|
3561 requests and all callers. |
|
3562 (octave_base_stream::do_scanf): Improve scanning of strings. |
|
3563 (octave_base_stream::do_oscanf): Remove size limit on %s conversions. |
|
3564 |
|
3565 * oct-stream.cc (scanf_format_list::all_character_conversions): |
|
3566 Don't count %p as a character conversion. |
|
3567 |
|
3568 Tue Sep 7 08:31:04 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3569 |
|
3570 * pr-output.cc (set_real_matrix_format, set_complex_matrix_format): |
|
3571 Move check for fixed_point_format ahead of check for |
|
3572 int_or_inf_or_nan. |
|
3573 |
3264
|
3574 Thu Sep 2 11:54:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3575 |
|
3576 * oct-obj.cc (make_argv): Correctly handle empty strings as args. |
|
3577 |
3263
|
3578 Fri Aug 20 08:17:52 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3579 |
|
3580 * DLD-FUNCTIONS/quad.cc (quad): Delete unused label. |
|
3581 |
|
3582 * unwind-prot.cc (saved_variable::~saved_variable): Don't try to |
|
3583 delete gen_ptr_value here. |
|
3584 |
|
3585 Mon Aug 16 21:34:33 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3586 |
|
3587 * lex.l (next_token_is_sep_op): New function. |
|
3588 (handle_close_brace, maybe_unput_comma): Use it. |
|
3589 (have_continuation): Also handle CRLF here. |
|
3590 |
|
3591 Wed Aug 11 16:06:57 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3592 |
|
3593 * file-io.cc (Ffopen): Make fopen ("filename") work and imply that |
|
3594 MODE = "r". |
|
3595 |
3258
|
3596 Wed Jul 21 15:38:52 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3597 |
3259
|
3598 * help.cc (display_names_from_help_list): Sort names before |
|
3599 listing them. |
|
3600 (print_symbol_type, Ftype): Also handle built-in constants. |
|
3601 (LIST_SYMBOLS): Correct call to symbol_table::name_list. |
|
3602 (simple_help): List constants here too. List constants and |
|
3603 variables before functions, not after. Sort names before listing |
|
3604 them. |
|
3605 |
|
3606 * variables.cc (do_who): Display built-in constants in a separate |
|
3607 section. |
|
3608 |
|
3609 * error.cc (bind_global_error_variable, clear_global_error_variable): |
|
3610 Call bind_builtin_constant, not bind_builtin_variable to set |
|
3611 __error_text__. |
|
3612 * octave.cc (intern_argv): Likewise, for argv and __argv__. |
|
3613 |
|
3614 * defun.cc (install_builtin_constant): Move function guts to |
|
3615 bind_builtin_constant in variables.cc. |
|
3616 * variables.cc (bind_builtin_constant): New function. |
|
3617 |
3258
|
3618 * symtab.cc (symbol_record::define, symbol_record::variable_reference): |
|
3619 Handle constants the same as functions. |
|
3620 (symbol_record::link_to_builtin_variable): New function. |
|
3621 (symbol_record::define_builtin_const): New function. |
|
3622 (symbol_record::define_as_fcn): Delete unused function. |
|
3623 (symbol_record::read_only_error): |
|
3624 Handle constants the same as variables. |
|
3625 * symtab.h (symbol_record::BUILTIN_CONSTANT): New enum value. |
|
3626 (symbol_record::symbol_type): Increase width to 7 bits. |
|
3627 (symbol_record::symbol_def::is_constant): New function. |
|
3628 (symbol_record::symbol_def::is_builtin_constant): New function. |
|
3629 (symbol_record::is_constant): New function. |
|
3630 (symbol_record::is_builtin_constant): New function. |
|
3631 (SYMTAB_ALL_TYPES): Add symbol_record::BUILTIN_CONSTANT. |
|
3632 * variables.cc (link_to_builtin_variable): Delete unused function. |
|
3633 (link_to_builtin_or_function): Handle built-in constants here too. |
|
3634 |
|
3635 * defun.cc (install_builtin_variable): Delete inst_as_fcn arg. |
|
3636 (install_builtin_constant): New function. |
|
3637 (install_builtin_variable_as_function): Delete unused function. |
|
3638 * defun.h (DEFVAR_INTERNAL): Delete inst_as_fcn arg. |
|
3639 (DEFCONST_INTERNAL): New macro. |
|
3640 * defun.h (DEFVAR): Delete inst_as_fcn arg. |
|
3641 (DEFCONST, DEFCONSTX): Define using DEFCONST_INTERNAL instead of |
|
3642 DEFVAR_INTERNAL. |
|
3643 * data.cc, defaults.cc, error.cc, help.cc, input.cc, lex.l, |
|
3644 load-save.cc, oct-hist.cc, oct-procbuf.cc, ov-fcn.h, |
|
3645 ov-usr-fcn.cc, ov.cc, pager.cc, parse.y, pr-output.cc, |
|
3646 pt-assign.cc, pt-decl.cc, pt-mat.cc, pt-plot.cc, pt-stmt.cc, |
|
3647 toplev.cc, variables.cc: |
|
3648 Change all invocations of DEFVAR to match new definition. |
|
3649 |
|
3650 * data.cc (symbols_of_data): Add DEFCONSTs for true and false. |
|
3651 |
3255
|
3652 Thu Jul 15 10:59:42 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3653 |
3258
|
3654 * data.cc (Fis_bool, Fis_complex, Fisempty, Fisnumeric, Fis_list, |
|
3655 Fis_map, Fis_struct): Return bool object. |
|
3656 (Fisreal): New function. |
|
3657 |
|
3658 * ov-str-mat.h (octave_char_matrix_str): Only return true if |
|
3659 Vimplicit_str_to_num_ok is also true. |
|
3660 |
3255
|
3661 * DLD-FUNCTIONS/time.cc (Ftime): Print usage message if any |
|
3662 arguments are supplied. |
|
3663 |
|
3664 * variables.cc (symbol_out_of_date): Call octave_time for time stamps. |
|
3665 |
|
3666 * fn-cache.h (octave_fcn_file_name_cache::timestamp): |
|
3667 Now octave_time object. |
|
3668 |
|
3669 * strftime.c: Move to liboctave directory. |
|
3670 * Makefile.in (DIST_SRC): Delete from list. |
|
3671 |
|
3672 * ov-usr-fcn.h (octave_user_function::t_parsed, |
|
3673 octave_user_function::t_checked): Now octave_time objects. |
|
3674 (octave_user_function::time_parsed, |
|
3675 (octave_user_function::time_checked): |
|
3676 Return value is now octave_time object. |
|
3677 (octave_user_function::mark_fcn_file_up_to_date)): |
|
3678 Arg is now octave_time object. |
|
3679 |
|
3680 * ov-fcn.h (octave_function::mark_fcn_file_up_to_date)): |
|
3681 Arg is now octave_time object. |
|
3682 (octave_function::time_parsed, octave_function::time_checked): |
|
3683 Return value is now octave_time object. |
|
3684 |
|
3685 * input.cc (Vlast_prompt_time): Now an octave_time object. |
|
3686 (octave_gets): Call octave_time::stamp() to set Vlast_prompt_time. |
|
3687 |
|
3688 * DLD-FUNCTIONS/time.cc (mk_tm_map, extract_tm, Ftime, Fgmtime, |
|
3689 Flocaltime, Fmktime, Fstrftime): Use new classes defined in |
|
3690 liboctave/oct-time.cc instead of accessing C functions directly. |
|
3691 |
3252
|
3692 Wed Jul 14 17:38:46 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3693 |
|
3694 * systime.h: Move to liboctave directory. |
|
3695 * Makefile.in (INCLUDES): Delete it from the list |
|
3696 |
|
3697 Tue Jul 13 14:34:57 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3698 |
|
3699 * sighandlers.cc (sigchld_handler): Only wait for processes in |
|
3700 octave_child_list. |
|
3701 * toplev.cc (cmd_status): Delete unused static variable. |
|
3702 (cmd_death_handler): Delete unused function. |
|
3703 (run_command_and_return_output): Don't add cmd_death_handler to |
|
3704 octave_child_list. Simply extract command exit status from |
|
3705 calling close() on the procstream object. |
|
3706 |
3249
|
3707 Mon Jul 12 22:38:50 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3708 |
|
3709 * defun.h (DEFUN_MAPPER): Handle new args, d_b_map and c_b_map. |
|
3710 * defun-int.h (DEFUN_MAPPER_INTERNAL): Likewise. |
|
3711 * mappers.cc (install_mapper_functions): Supply new args to |
|
3712 all uses of DEFUN_MAPPER. |
|
3713 * ov-mapper.cc (octave_mapper::apply): Handle mapper functions |
|
3714 that return bool objects. |
|
3715 * ov-mapper.h (octave_mapper::d_b_mapper, octave_mapper::c_b_mapper): |
|
3716 New typedefs. |
|
3717 (octave_mapper::octave_mapper): Handle new mapper function types. |
|
3718 |
|
3719 * DLD-FUNCTIONS/minmax.cc: Do a better job of handling NaNs. |
|
3720 |
|
3721 Sun Jul 11 13:15:17 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3722 |
|
3723 * pr-output.cc (do_plus_format (ostream&, double)): New function. |
|
3724 (octave_print_internal (ostream&, double, bool)): Use it. |
|
3725 (octave_print_internal (ostream&, const Matrix&, bool, int)): Ditto. |
|
3726 |
|
3727 * pr-output.cc (do_plus_format (ostream&, const Complex&)): |
|
3728 New function. |
|
3729 (octave_print_internal (ostream&, const Complex&, bool)): Use it. |
|
3730 (octave_print_internal (ostream&, const ComplexMatrix&, bool, int)): |
|
3731 Ditto. |
|
3732 |
|
3733 Sun Jun 20 23:04:00 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3734 |
|
3735 * sysdep.cc: Include sys/ioctl.h if available. |
|
3736 |
|
3737 Sat Jun 19 12:07:16 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3738 |
|
3739 * variables.cc (do_who): Make pattern and multiple non-option |
|
3740 arguments work. |
|
3741 |
3246
|
3742 Mon Jun 7 09:54:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3743 |
|
3744 * lex.l (next_token_is_bin_op, next_token_is_postfix_unary_op, |
|
3745 handle_number): Delete yytext arg. Change all callers. |
|
3746 (next_token_is_postfix_unary_op): Check the first character |
|
3747 obtained from yyinput before calling it again. |
|
3748 (next_token_is_bin_op): Do a more thorough check. |
|
3749 (handle_identifier): Also enter token in local symbol table if the |
|
3750 following token is a dot and it looks like a binary operator. |
|
3751 (whitespace_in_literal_matrix): Now static. |
|
3752 |
|
3753 * lex.l: Always use unput, not yyunput. |
|
3754 |
3244
|
3755 Fri May 28 11:02:37 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3756 |
|
3757 * DLD-FUNCTIONS/chol.cc (Fchol): If two output arguments, never |
|
3758 produce error message. |
|
3759 |
3243
|
3760 Thu May 27 18:28:35 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3761 |
|
3762 * DLD-FUNCTIONS/chol.cc (Fchol): Also return info as second output. |
|
3763 |
|
3764 * DLD-FUNCTIONS/minmax.cc (max (const ComplexMatrix&, const |
|
3765 ComplexMatrix&)): Correct test for real columns only. |
|
3766 (min (const ComplexMatrix&, const ComplexMatrix&)): Likewise. |
|
3767 |
|
3768 Wed Apr 14 12:54:25 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3769 |
|
3770 * DLD-FUNCTIONS/dassl.cc (Fdassl): Prevent recursive calls. |
|
3771 * DLD-FUNCTIONS/fsolve.cc (Ffsolve): Likewise. |
|
3772 * DLD-FUNCTIONS/lsode.cc (Flsode): Likewise. |
|
3773 * DLD-FUNCTIONS/quad.cc (Fquad): Likewise. |
|
3774 |
|
3775 * file-io.cc (Fsscanf, Ffscanf): Doc fix. |
|
3776 |
3239
|
3777 Sat Mar 27 11:07:51 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3778 |
|
3779 * ov.h (octave_value::count): New function. |
|
3780 * symtab.cc (symbol_record::dump_symbol_info): New function. |
|
3781 * symtab.cc (symbol_record::symbol_def::dump_symbol_info): Ditto. |
|
3782 * variables.cc (F__dump_symbol_info__): Ditto. |
|
3783 |
|
3784 * pt-misc.cc (tree_parameter_list::clear): New function. |
|
3785 * ov-usr-fcn.h (octave_user_function::clear_args_passed): Ditto. |
|
3786 * ov-usr-fcn.cc (clear_param_list): New function. |
|
3787 (clear_args_passed): New function. |
|
3788 (octave_user_function::do_index_op): Use them to decrement |
|
3789 reference counts on local variables. |
|
3790 |
3238
|
3791 Fri Mar 26 00:51:53 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3792 |
|
3793 * Makefile.in (libraries): Use the libfoo.a(objects) method of |
|
3794 creating static libs. |
|
3795 |
|
3796 * defaults.cc (symbols_of_defaults): Initialize LOADPATH to |
|
3797 Vload_path, not ":". |
|
3798 |
|
3799 Thu Mar 18 12:09:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3800 |
|
3801 * data.cc (Fisnumeric): Fix typo. |
|
3802 |
|
3803 Thu Mar 4 02:17:04 1999 James Macnicol <jamesm@evans.ee.adfa.oz.au> |
|
3804 |
|
3805 * file-io.cc (Ffread, Ffwrite): Add uint16 and uint32 data types |
|
3806 to doc string. |
|
3807 |
|
3808 Wed Mar 3 11:55:17 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3809 |
|
3810 * lex.l (handle_string): Allow "" to pass through unchanged if |
|
3811 working on a gset command. |
|
3812 |
|
3813 Tue Mar 2 01:36:29 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3814 |
|
3815 * variables.cc (Fexist): If a variable isn't defined, only go on |
|
3816 to look for a global by the same name if we are at the top level. |
|
3817 |
|
3818 Fri Jan 29 02:18:36 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3819 |
|
3820 * version.h (OCTAVE_NAME_AND_VERSION): Say `GNU Octave', not just |
|
3821 Octave. |
|
3822 |
3234
|
3823 Thu Jan 28 21:29:16 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3824 |
|
3825 * toplev.cc (Fcomputer): Use CANONICAL_HOST_TYPE, not TARGET_HOST_TYPE. |
|
3826 (octave_config_info): Likewise. |
|
3827 * version.h: Ditto. |
|
3828 |
|
3829 * sysdep.cc (Fpause): Flush output before getting user input. |
|
3830 |
3233
|
3831 Wed Jan 27 14:18:29 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3832 |
|
3833 * Makefile.in (DEFFUN_PATTERN, DEFVAR_PATTERN): Use egrep again. |
|
3834 Make the patterns work with stupid egreps that don't like empty |
|
3835 elements in alternation patterns. |
|
3836 |
|
3837 Fri Jan 22 04:41:48 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3838 |
|
3839 * load-save.cc (save_ascii_data): Check for string type first, |
|
3840 then range, then the rest. |
|
3841 (save_binary_data): Ditto. |
|
3842 |
|
3843 * pager.cc (more_than_a_screenful): Accept length as second arg. |
|
3844 Handle long lines properly, assuming the terminal wraps long lines. |
|
3845 (octave_pager_buf::do_sync): Accept length of data as second arg. |
|
3846 Use write instead of << to put characters on output stream. |
|
3847 (octave_pager_buf::sync): Don't assume data ends at first NUL. |
|
3848 (octave_diary_buf::sync): Ditto. |
|
3849 |
|
3850 Thu Jan 21 22:15:23 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3851 |
|
3852 * load-save.cc (save_mat_binary_data): Check for string type |
|
3853 first, then range, then the rest. |
|
3854 |
|
3855 Wed Jan 20 12:01:14 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3856 |
|
3857 * oct-stream.cc (octave_base_stream::do_scanf): Handle short and |
|
3858 long ints correctly. |
|
3859 |
|
3860 Fri Jan 15 13:04:58 1999 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3861 |
|
3862 * parse.y (end_error): Handle case of endswitch too. |
|
3863 |
|
3864 * Makefile.in: Use basic regular expressions and grep instead of |
|
3865 egrep to find files that contain DEFVAR, DEFCONST, or DEFUN. |
|
3866 |
|
3867 Wed Dec 9 14:14:11 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3868 |
|
3869 * Makefile.in (octave): Add $(RDYNAMIC_FLAG) to link command. |
|
3870 |
|
3871 Fri Dec 4 20:26:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3872 |
|
3873 * DLD-FUNCTIONS/time.cc (Fstrftime): Make it work even when not |
|
3874 using the GNU version of strftime, which allows passing NULL for |
|
3875 the buffer to determine the required size of the buffer. |
|
3876 |
3225
|
3877 Wed Dec 2 22:38:40 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3878 |
|
3879 * utils.cc (file_in_loadpath): Expect argc == 2, not 3. |
|
3880 |
|
3881 Tue Nov 24 23:38:19 1998 Eric Norum <eric@skatter.USask.Ca> |
|
3882 |
|
3883 * mkbuiltins: Also strip off leading `./' from file names. |
|
3884 * mkops: Ditto. |
|
3885 |
|
3886 Tue Nov 24 23:24:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3887 |
|
3888 * strftime.c: Surround everything with #ifdef HAVE_STRFTIME / #endif. |
|
3889 |
|
3890 * lex.h (YY_FATAL_ERROR): Call yy_falta_error after |
|
3891 jump_to_top_level to avoid gcc warning. |
|
3892 |
|
3893 Fri Nov 20 13:34:47 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3894 |
|
3895 * ov-bool.h, ov-bool.cc (class octave_bool): Derive from |
|
3896 octave_base_scalar and get common functions via derivation. |
|
3897 * ov-scalar.h, ov-scalar.cc (class octave_scalar): Ditto. |
|
3898 * ov-complex.h, ov-complex.cc (class octave_complex): Ditto. |
|
3899 |
|
3900 * ov-base-scalar.h, ov-base-scalar.cc (class octave_base_scalar): |
|
3901 New files for new class definition. Put common scalar data type |
|
3902 stuff here. |
|
3903 * Makefile.in (OV_INCLUDES, OV_SRC): Add them to the lists. |
|
3904 |
3221
|
3905 Thu Nov 19 14:30:25 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
3225
|
3906 |
3222
|
3907 * dynamic-ld.cc (octave_dynamic_loader::mangle_name): |
|
3908 Prepend underscore here. |
|
3909 (octave_dynamic_loader::load_fcn_from_dot_oct_file): Not here. |
|
3910 |
3221
|
3911 * ov-re-mat.h (octave_matrix_value): Delete experimental code for |
|
3912 handling structure references for things like .rows, .cols, etc. |
|
3913 |
3220
|
3914 Wed Nov 18 01:18:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3915 |
3221
|
3916 * Makefile.in (VAR_FILES): Be more careful about matching. |
|
3917 (DEF_FILES): Likewise. |
|
3918 |
|
3919 * ov-base-mat.h, ov-base-mat.cc, ov-bool-mat.h, ov-bool-mat.cc, |
|
3920 ov-ch-mat.h, ov-ch-mat.cc, ov-cx-mat.h, ov-cx-mat.cc, |
|
3921 ov-re-mat.h, ov-re-mat.cc: Move default definition of all, any, |
|
3922 is_matrix_type, is_numeric_type, valid_as_zero_index, and |
|
3923 do_index_op to base class. |
|
3924 Provide definitions that override the defaults where necessary. |
3220
|
3925 |
|
3926 * mappers.cc: Don't include lo-specfun.h. |
|
3927 |
|
3928 Tue Nov 17 14:35:56 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3929 |
|
3930 * besselj.cc (Fbesselh, Fairy); New functions. |
|
3931 (Fbesselj, Fbessely, Fbesselk, Fbesseli): Update doc strings. |
|
3932 (do_bessel): Handle additional args. |
|
3933 |
|
3934 Fri Nov 13 14:47:11 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3935 |
|
3936 * lex.l (NUMBER): Allow hexadecimal constants. |
|
3937 (looks_like_hex): New function. |
|
3938 (handle_number): Check for hexadecimal constants and convert them |
|
3939 to unsigned integer values. |
|
3940 |
3219
|
3941 Thu Nov 12 11:13:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3942 |
|
3943 * input.cc (gnu_readline): Check for EOF from command_editor::readline. |
|
3944 |
|
3945 * ov-str-mat.h, ov-str-mat.cc (class octave_char_matrix_str): |
|
3946 Get common functions via new derivation scheme. |
|
3947 |
|
3948 * ov-bool-mat.h, ov-bool-mat.cc (class octave_bool_matrix): |
|
3949 Derive from octave_base_matrix and get common functions via derivation. |
|
3950 * ov-ch-mat.h, ov-ch-mat.cc (class octave_char_matrix): Ditto. |
|
3951 * ov-cx-mat.h, ov-cx-mat.cc (class octave_complex_matrix): Ditto. |
|
3952 * ov-re-mat.h, ov-re-mat.cc (class octave_real_matrix): Ditto. |
|
3953 |
|
3954 * ov-base-mat.h, ov-base-mat.cc (class octave_base_matrix): New |
|
3955 files for new class definition. Put common matrix data type |
|
3956 stuff here. |
|
3957 |
|
3958 * ov-list.cc (Fnth): New function. |
|
3959 |
|
3960 * ov-list.cc (octave_list::do_index_op): Allow more complex indexing. |
|
3961 |
|
3962 * oct-obj.cc (octave_value_list::index): New function. |
|
3963 (octave_value_list::octve_value_list (Array<octave_value>)): |
|
3964 New private constructor. |
|
3965 |
|
3966 * ov-list.cc (Fsplice): Fix docstring to match. |
|
3967 * oct-obj.cc (octave_value_list::splice): Allow special case |
|
3968 splice (x, length(x)+1, 0, y) to be equivalent to append (x, y). |
|
3969 |
|
3970 * ov-list.cc (Fappend): If an arg is a list, concatenate the lists |
|
3971 instead of appending arg as a single element. |
|
3972 |
|
3973 Wed Nov 11 14:07:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3974 |
|
3975 * load-save.cc (get_mat_data_input_line): New function. |
|
3976 (get_lines_and_columns): Use it here. |
|
3977 (read_mat_ascii_data): And here and do our own reading instead of |
|
3978 using Matrix::operator<<. |
|
3979 |
|
3980 Tue Nov 10 16:12:25 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3981 |
|
3982 * parse.y (make_constant): Initialize retval to 0. |
|
3983 |
|
3984 * toplev.h (clean_up_and_exit (void)): Delete declaration. |
|
3985 * toplev.cc (do_octave_atexit): Move guts of clean_up_for_exit |
|
3986 here, but ensure that the actions are only executed once. |
|
3987 * octave.cc (main): Don't register cleanup_tmp_files with atexit. |
|
3988 |
|
3989 * ov.h, ov.cc (class octave_value): Use DECLARE_OCTAVE_ALLOCATOR |
|
3990 and DEFINE_OCTAVE_ALLOCATOR for uniform declaration and definition |
|
3991 of allocator functions. Use DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA |
|
3992 and DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA for uniform declaration |
|
3993 and definition of type id functions and data. |
|
3994 * ov-usr-fcn.h, ov-usr-fcn.cc (class octave_user_function): Ditto. |
|
3995 * ov-scalar.h, ov-scalar.cc (class octave_scalar): Ditto. |
|
3996 * ov-re-mat.h ov-re-mat.cc (class octave_matrix): Ditto. |
|
3997 * ov-range.h, ov-range.cc (class octave_range): Ditto. |
|
3998 * ov-mapper.h, ov-mapper.cc (class octave_mapper): Ditto. |
|
3999 * ov-list.h, ov-list.cc (class octave_list): Ditto. |
|
4000 * ov-file.h, ov-file.cc (class octave_file): Ditto. |
|
4001 * ov-fcn.h, ov-fcn.cc (class octave_function): Ditto. |
|
4002 * ov-cx-mat.h, ov-cx-mat.cc (class octave_complex_matrix): Ditto. |
|
4003 * ov-complex.h, ov-complex.cc (class octave_complex): Ditto. |
|
4004 * ov-ch-mat.h, ov-ch-mat.cc (octave_char_matrix): Ditto. |
|
4005 * ov-builtin.h, ov-builtin.cc (class octave_builtin): Ditto. |
|
4006 * ov-bool.h, ov-bool.cc (class octave_bool): Ditto. |
|
4007 * ov-bool-mat.h, ov-bool-mat.cc (octave_bool_matrix): Ditto. |
|
4008 |
|
4009 * ov.h (DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA): New macro. |
|
4010 (DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA): Ditto. |
|
4011 |
3215
|
4012 Mon Nov 9 16:12:37 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4013 |
|
4014 * pr-output.cc (octave_print_internal): Reorder default args for |
|
4015 charMatrix version. |
|
4016 (octave_print_internal): New function for boolMatrix. |
|
4017 |
|
4018 * version.h (OCTAVE_STARTUP_MESSAGE): Note that this is a |
|
4019 development release. |
|
4020 |
|
4021 * toplev.cc (do_octave_atexit): Call flush_octave_stdout here. |
|
4022 (clean_up_for_exit): And here. |
|
4023 |
|
4024 Mon Nov 9 15:20:53 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4025 |
|
4026 * input.cc (get_user_input): Check retval.length(), not retval.length. |
|
4027 |
|
4028 Sun Nov 8 19:30:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4029 |
|
4030 * pt-assign.cc (tree_simple_assignment::rvalue): If etype is |
|
4031 asn_eq, don't evaluate ult again because retval is just rhs value. |
|
4032 (tree_multi_assignment::rvalue): Likewise. |
|
4033 |
|
4034 Fri Nov 6 12:14:29 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4035 |
|
4036 * pt-loop.cc (tree_for_command::eval): Move code for string RHS |
|
4037 outside if clause for matrix types. |
|
4038 |
|
4039 * pt-idx.cc: Don't forget to define arg_nm. |
|
4040 Move contstructor here. |
|
4041 * pt-idx.h: From here. |
|
4042 |
|
4043 * data.cc (Fisempty): Also return true for empty strings. |
|
4044 |
3212
|
4045 Wed Nov 4 17:21:41 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4046 |
|
4047 * ov-base.cc (octave_base_value::rows, octave_base_value::columns, |
|
4048 octave_base_value::length): Delete. |
|
4049 * ov-base.h (octave_base_value::rows, octave_base_value::columns, |
|
4050 octave_base_value::length): Define here. All return -1 if not |
|
4051 defined in a derived class. |
|
4052 |
|
4053 * data.cc (Fis_matrix): Also return true if the arg is a range. |
|
4054 |
3209
|
4055 Tue Nov 3 09:40:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4056 |
|
4057 * data.cc (Fis_bool): New function. |
|
4058 Also add alias for islogical. |
|
4059 |
|
4060 * ov.h (octave_value::is_bool_type): New function. |
|
4061 * ov-base.h (octave_base_value::is_bool_type): Likewise. |
|
4062 * ov-bool.h (octave_bool::is_bool_type): Likewise. |
|
4063 * ov-bool-mat.h (octave_bool_matrix::is_bool_type): Likewise. |
|
4064 |
3206
|
4065 Mon Nov 2 13:36:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4066 |
3208
|
4067 * lex.l (handle_close_brace): Also handle case of ']' followed by |
|
4068 other assignment ops (+=, -=, ...). |
|
4069 |
|
4070 * pt-assign.cc (tree_simple_assignment::rvalue): Correctly handle |
|
4071 return value and printing for operators other than `='. |
|
4072 (tree_multi_assignment::rvalue): Likewise. |
|
4073 |
|
4074 * pt-assign.h (tree_multi_assignment::etype): New data member. |
|
4075 * pt-assign.cc (tree_multi_assignment::rvalue): Use it instead of |
|
4076 assuming `='. |
|
4077 (tree_multi_assignment::oper): New function. |
|
4078 * pt-pr-code.cc (tree_print_code::visit_multi_assignment): Use |
|
4079 it instead of always printing `='. |
|
4080 * parse.y (make_assign_op): Pass expression type to |
|
4081 tree_multi_assignment constructor. |
|
4082 |
3206
|
4083 * Makefile.in (stmp-pic): New target. |
|
4084 ($(PICOBJ)): Depend on stmp-pic, not pic. |
|
4085 (clean): Delete stmp-pic. |
|
4086 |
|
4087 Sun Nov 1 23:24:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4088 |
|
4089 * mappers.cc (install_mapper_functions): Add alias for isfinite. |
|
4090 |
|
4091 Sat Oct 31 08:46:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4092 |
|
4093 * data.cc (Fisnumeric): New function. |
|
4094 |
3203
|
4095 Fri Oct 30 08:39:30 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4096 |
3205
|
4097 * oct-lvalue.cc (octave_lvalue::do_unary_op): Make it work for |
|
4098 indexed ops too. |
|
4099 * ov.cc (octave_value::unary_op_to_assign_op): New function. |
|
4100 (octave_value::do_non_const_unary_op): New function for indexed ops. |
|
4101 |
3204
|
4102 * parse.y (LEFTDIV_EQ, ELEFTDIV_EQ): New tokens. |
|
4103 (assign_expr): Add rules for them. |
|
4104 (make_assign_op): Handle them here too. |
|
4105 * lex.l: Recognize them. |
|
4106 * ov.h (octave_value::assign_op): Add ldiv_eq and el_ldiv_eq. |
|
4107 * ov.cc (octave_value::assign_op_as_string): Ditto. |
|
4108 (octave_value::op_eq_to_binary_op): Ditto. |
|
4109 (octave_value::assign): Handle OP= style operators with brute force. |
|
4110 (octave_value::simple_assign): New function. |
|
4111 |
3203
|
4112 * parse.y (matrix): Dont' forget to reset |
|
4113 lexer_flags.looking_at_matrix_or_assign_lhs. |
|
4114 |
|
4115 * oct-lvalue.cc (octave_lvalue::assign): Don't call change |
|
4116 function if error occurs. |
|
4117 (octave_lvalue::do_unary_op): If we have an index, fail with message. |
|
4118 |
3202
|
4119 Thu Oct 29 09:27:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4120 |
3203
|
4121 * ov.cc (do_binary_op): Protect against invalid type conversions. |
|
4122 (try_assignment_with_conversion): Likewise. |
|
4123 (do_unary_op): Likewise. |
|
4124 |
|
4125 * ov.h (OV_UNOP_FN, OV_UNOP_OP, OV_UNOP_FN_OP): New macros. |
|
4126 Use them to define not, uminus, transpose, hermitian functions |
|
4127 and operators ! and -. |
|
4128 (OV_BINOP_FN, OV_BINOP_OP, OV_BINOP_FN_OP): New macros. |
|
4129 Use them to define add, sub, mul, div, pow, ldiv, lshift, rshift, |
|
4130 lt, le, eq, ge, gt, ne, el_mul, el_div, el_pow, el_ldiv, el_and, |
|
4131 el_or, struct_ref, functions and operators <, <=, ==, >=, >, !=, |
|
4132 +, -, *, and /. |
|
4133 |
|
4134 * ops.h (CONVDECLX): New macro. |
|
4135 * ov-base.cc (matrix_conv, complex_matrix_conv, string_conv): |
|
4136 Use it to declare these functions. |
|
4137 |
|
4138 * ops.h (CONVDECL, INSTALL_WIDENOP): |
|
4139 Prefix function name with `oct_conv_'. |
|
4140 (INSTALL_BINOP, BINOPDECL): Prefix function name with `oct_binop_'. |
|
4141 (INSTALL_ASSIGNOP, INSTALL_ASSIGNANYOP, ASSIGNOPDECL): |
|
4142 Prefix function name with `oct_assignop_'. |
|
4143 (UNOPDECL, DEFNCUNOP_METHOD, INSTALL_UNOP, INSTALL_NCUNOP): |
|
4144 Prefix function name with `oct_unop_'. |
|
4145 |
|
4146 * ov-str-mat.cc (default_numeric_conversion_function): |
|
4147 Return 0 if conversion fails. |
|
4148 |
|
4149 * parse.y (make_prefix_op, make_postfix_op): Use |
|
4150 octave_value::unary_op enum. |
|
4151 |
|
4152 * pt-unop.cc (tree_prefix_expression::rvalue): Use new unary_op |
|
4153 functions from octave_value and octave_lvalue classes. |
|
4154 (tree_prefix_expression::rvalue): Likewise. |
|
4155 |
|
4156 * pt-unop.cc (tree_unary_expression::oper): Move here. |
|
4157 (tree_prefix_expression::oper, tree_postfix_expression): From here. |
|
4158 |
|
4159 * pt-unop.h (tree_prefix_expression, tree_postfix_expression): |
|
4160 Delete enums. |
|
4161 (tree_unary_expression): Use octave_value::unary_op enum. |
|
4162 * parse.y (make_prefix_op, make_postfix_op): Likewise. |
|
4163 |
|
4164 * oct-lvalue.h (octave_lvalue::do_unary_op): New function. |
|
4165 (octave_lvalue::increment, octave_lvalue::decrement): Delete. |
|
4166 |
|
4167 * ov-typeinfo.h (octave_value_typeinfo::non_const_unary_ops): |
|
4168 New data member. |
|
4169 * ov-typeinfo.h (octave_value_typeinfo::lookup_non_const_unary_op): |
|
4170 New function. |
|
4171 * ov-typeinfo.cc (octave_value_typeinfo::register_non_const_unary_op): |
|
4172 New function. |
|
4173 (octave_value_typeinfo::do_register_non_const_unary_op): Ditto. |
|
4174 (octave_value_typeinfo::do_lookup_non_const_unary_op): Ditto. |
|
4175 |
|
4176 * ov.cc (octave_value::do_non_const_unary_op): New function. |
|
4177 |
|
4178 * Makefile.in (OP_XSRC): Add op-chm.cc and op-range.cc to the list. |
|
4179 |
|
4180 * OPERATORS/op-str-str.cc: Define string matrix unary operators here. |
|
4181 (install_str_str_ops): Install them here. |
|
4182 * ov-bool-mat.h (octave_bool_matrix::transpose, |
|
4183 octave_bool_matrix_value::hermitian): Delete. |
|
4184 |
|
4185 * OPERATORS/op-chm.cc: New file. Define char matrix unary operators. |
|
4186 (install_chm_ops): Install them here. |
|
4187 * ov-ch-mat.h (octave_char_matrix::transpose, |
|
4188 octave_char_matrix_value::hermitian): Delete. |
|
4189 * ops.cc (install_ops): Call install_chm_ops. |
|
4190 |
|
4191 * OPERATORS/op-bm-bm.cc: Define bool matrix unary operators here. |
|
4192 (install_bm_bm_ops): Install them here. |
|
4193 * ov-bool-mat.h (octave_bool_matrix::transpose, |
|
4194 octave_bool_matrix_value::hermitian): Delete. |
|
4195 |
|
4196 * ov-bool.h (octave_bool::not, octave_bool::uminus, |
|
4197 octave_bool::transpose, octave_bool::hermitian): Delete. |
|
4198 |
|
4199 * OPERATORS/op-cs-cs.cc: Define complex scalar unary operators here. |
|
4200 (install_cs_cs_ops): Install them here. |
|
4201 * ov-complex.h (octave_complex::not, octave_complex::uminus, |
|
4202 octave_complex::transpose, octave_complex::hermitian): Delete. |
|
4203 |
|
4204 * OPERATORS/op-cm-cm.cc: Define complex matrix unary operators here. |
|
4205 (install_cm_cm_ops): Install them here. |
|
4206 * ov-cx-mat.h (octave_complex_matrix::not, |
|
4207 octave_complex_matrix::uminus, octave_complex_matrix::transpose, |
|
4208 octave_complex_matrix::hermitian): Delete. |
|
4209 |
|
4210 * OPERATORS/op-m-m.cc: Define matrix unary operators here. |
|
4211 (install_m_m_ops): Install them here. |
|
4212 * ov-re-mat.h (octave_matrix::not, octave_matrix::uminus, |
|
4213 octave_matrix::transpose, octave_matrix::hermitian): Delete. |
|
4214 |
|
4215 * OPERATORS/op-range.cc: New file. Define range unary operators. |
|
4216 (install_range_ops): Install them here. |
|
4217 * ov-range.h (octave_range::not, octave_range::uminus, |
|
4218 octave_range::transpose, octave_range::hermitian): Delete. |
|
4219 * ops.cc (install_ops): Call install_range_ops. |
|
4220 |
|
4221 * OPERATORS/op-s-s.cc: Define scalar unary operators here. |
|
4222 (install_s_s_ops): Install them here. |
|
4223 * ov-scalar.h (octave_scalar::not, octave_scalar::uminus, |
|
4224 octave_scalar::transpose, octave_scalar::hermitian): Delete. |
|
4225 |
|
4226 * ops.h (INSTALL_UNOP, CAST_UNOP_ARG, UNOPDECL, DEFUNOPX, DEFUNOP, |
|
4227 DEFUNOP_OP, DEFUNOP_FN): New macros. |
|
4228 |
|
4229 * ov.h (unary_op_fcn): New typedef. |
|
4230 (octave_value::unary_op): New enum. |
|
4231 * ov.cc (octave_value::octave_value): New function. |
|
4232 |
|
4233 * ov.h (octave_value::not, octave_value::uminus, |
|
4234 octave_value::transpose, octave_value::hermitian, |
|
4235 octave_value::increment, octave_value::decrement): Delete. |
|
4236 |
|
4237 * ov-base.cc (octave_base_value::not, octave_base_value::uminus, |
|
4238 octave_base_value::transpose, octave_base_value::hermitian, |
|
4239 octave_base_value::increment, octave_base_value::decrement): Delete. |
|
4240 |
|
4241 * ov.cc (gripe_unary_op): New function. |
|
4242 (do_unary_op): New function. |
|
4243 * ov-typeinfo.h (octave_value_typeinfo::unary_ops): |
|
4244 New data member. |
|
4245 * ov-typeinfo.cc (octave_value_info::register_unary_op, |
|
4246 octave_value_info::do_register_unary_op, |
|
4247 octave_value_info::lookup_unary_op, |
|
4248 octave_value_info::do_lookup_unary_op): |
|
4249 New functions. |
|
4250 |
3202
|
4251 * ov-list.cc (Fsplice): Use new octave_value::int_value function here. |
|
4252 (octave_list::do_index_op): Likewise. |
|
4253 (octave_list::assign): Likewise. |
|
4254 * toplev.cc (Fquit): Likewise. |
|
4255 * syscalls.cc (Fwaitpid): Likewise. |
|
4256 (Ffcntl): Likewise. |
|
4257 * file-io.cc (do_fread): Likewise. |
|
4258 (do_fwrite): Likewise. |
|
4259 * data.cc (make_diag): Likewise. |
|
4260 (Fsize): Likewise. |
|
4261 (get_dimensions): Likewise. |
|
4262 (Flinspace): |
|
4263 |
|
4264 * ov-base.cc (octave_base_value::int_value): New function. |
|
4265 (octave_base_value::nint_value): Ditto. |
|
4266 * ov.h (octave_value::int_value): Ditto. |
|
4267 (octave_value::nint_value): Ditto. |
|
4268 |
|
4269 * ov-list.cc (octave_list::assign): Fix off-by-one error. |
|
4270 |
3196
|
4271 Wed Oct 28 11:01:37 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4272 |
3202
|
4273 * load-save.cc (read_mat_ascii_data): Try harder to convert file |
|
4274 name to valid variable name. |
|
4275 |
|
4276 * data.cc (Fisempty, Fis_matrix): New functions. |
|
4277 |
|
4278 * ov-str-mat.h (octave_char_matrix_str::is_matrix_type): New function. |
|
4279 |
3196
|
4280 * OPERATORS/op-list.cc: New file. |
|
4281 * Makefile.in (OP_XSRC): Add it to the list. |
|
4282 |
|
4283 * ov-list.cc (octave_list::assign): New function. |
|
4284 |
|
4285 * ov-typeinfo.h (octave_value_typeinfo::assignany_ops): |
|
4286 New data member. |
|
4287 * ov-typeinfo.cc (octave_value_info::register_assignany_op, |
|
4288 octave_value_info::do_register_assignany_op, |
|
4289 octave_value_info::lookup_assignany_op, |
|
4290 octave_value_info::do_lookup_assignany_op): |
|
4291 New functions. |
|
4292 * ov.cc (octave_value::try_assignment (octave_value::assign_op, |
|
4293 const octave_value_list&, const octave_value&)): If no assignment |
|
4294 operator for particular RHS type exists, try finding one for |
|
4295 generic octave_value as RHS type. |
|
4296 * ops.h (DEFASSIGNANYOP_FN): New macro. |
|
4297 |
|
4298 * ov-list.cc (Fsplice): New function. |
|
4299 * oct-obj.cc (octave_value_list::splice): New function. |
|
4300 |
|
4301 * ov.cc (Vresize_on_range_error): No longer static. |
|
4302 * ov.h (Vresize_on_range_error): Provide extern declaration. |
|
4303 |
|
4304 * oct-procbuf.cc (symbols_of_oct_procbuf): Don't declare static. |
|
4305 |
|
4306 * data.cc (Flength): New function. |
|
4307 * ov.h (octave_value::length): New virtual function. |
|
4308 * ov-base.cc (octave_base_value::length): New function. |
|
4309 (octave_base_value::rows, octave_base_value::columns): Move |
|
4310 definitions here, from ov-base.h. Don't return -1. Instead, |
|
4311 gripe about wrong argument type. |
|
4312 * ov-bool-mat.h (octave_bool_matrix::length): New function. |
|
4313 * ov-bool.h (octave_bool::length): Ditto. |
|
4314 * ov-ch-mat.h (octave_char_matrix::length): Ditto. |
|
4315 * ov-complex.h (octave_complex::length): Ditto. |
|
4316 * ov-cx-mat.h (octave_complex_matrix::length): Ditto. |
|
4317 * ov-list.h (octave_list::length): Ditto. |
|
4318 * ov-range.h (octave_range::length): Ditto. |
|
4319 * ov-re-mat.h (octave_matrix::length): Ditto. |
|
4320 * ov-scalar.h (octave_scalar::length): Ditto. |
|
4321 |
|
4322 Tue Oct 27 22:19:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4323 |
|
4324 * ov-list.cc (octave_list::print_raw): Handle case of empty list. |
|
4325 (octave_list::print_name_tag): Likewise. |
|
4326 |
|
4327 * octave.cc (intern_argv): Built-in variable argv is now a list of |
|
4328 strings instead of a string vector. |
|
4329 Always bind argv, making it an empty list if there are no args. |
|
4330 |
|
4331 Mon Oct 26 08:41:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4332 |
|
4333 * xdiv.cc (mx_leftdiv_conform): Explicitly declare args to be |
|
4334 passed as references to const objects. Fix explicit instantiation |
|
4335 requests to match. |
|
4336 (mx_div_conform): Likewise. |
|
4337 |
|
4338 * pt-unop.h (tree_prefix_expression): Reorder constructor args to |
|
4339 put those with default values last. |
|
4340 (tree_postfix_expression): Likewise. |
|
4341 * parse.y: Change all callers. |
|
4342 |
3192
|
4343 Fri Oct 23 12:07:32 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4344 |
3196
|
4345 * utils.cc (Ffile_in_loadpath): New function. |
|
4346 |
|
4347 * defaults.cc (Vload_path, Vdefault_load_path): Now static. |
|
4348 |
|
4349 * help.cc (simple_help): Use Vload_path_dir_path here instead of |
|
4350 trying to reconstruct it from Vload_path. |
|
4351 * fn-cache.cc (octave_fcn_file_name_cache::do_list): Likewise. |
|
4352 (octave_fcn_file_name_cache::update): Likewise. |
|
4353 |
|
4354 * defaults.cc (octave_loadpath): Construct Vload_path_dir_path |
|
4355 using Vdefault_load_path. |
|
4356 (set_default_path): Likewise. |
|
4357 |
|
4358 * defaults.h, defaults.cc (maybe_add_default_load_path): Delete. |
|
4359 |
3192
|
4360 * defaults.cc (Vdefault_load_path): New static variable. |
|
4361 (set_default_path): Set it. |
|
4362 (maybe_add_default_load_path): Use it. |
|
4363 (symbols_of_defaults): Add DEFCONST for DEFAULT_LOADPATH. |
|
4364 Thanks to Rafael Laboissiere <rafael@icp.inpg.fr>. |
|
4365 |
|
4366 * defaults.cc (set_default_path): If OCTAVE_PATH is set in the |
|
4367 environment, call maybe_add_default_load_path on it. |
|
4368 |
|
4369 Tue Oct 20 20:58:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4370 |
|
4371 * defaults.cc (maybe_add_default_load_path): If LOADPATH contains |
|
4372 an embedded "::", insert the default path there too. |
|
4373 |
3189
|
4374 Fri Oct 16 00:52:15 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4375 |
|
4376 * parse.y (in_matrix_or_assign_lhs): New subroutine for lexical |
|
4377 feedback. |
|
4378 (matrix): Use it. |
|
4379 (assign_lhs): Ditto. |
|
4380 * lex.h (lexical_feedback::looking_at_matrix_or_assign_lhs): New |
|
4381 data member. |
|
4382 * lex.l (handle_identifier): Use it to handle keywords like `cd' |
|
4383 as variables in contexts like [ab, cd] = foo (). |
|
4384 |
|
4385 * ov-str-mat.h |
|
4386 (octave_char_matrix_str::octave_char_matrix_str (char c)): |
|
4387 New constructor. |
|
4388 * ov-ch-mat.h (octave_char_matrix::octave_char_matrix (char c)): |
|
4389 New constructor. |
|
4390 * ov.cc (octave_value::octave_value (char c): New constructor. |
|
4391 |
|
4392 * pt-loop.cc (tree_simple_for_command::eval): Handle case of RHS |
|
4393 as string. |
|
4394 |
|
4395 Thu Oct 15 00:56:47 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4396 |
|
4397 * DLD-FUNCTIONS/rand.cc: Declare Fortran subroutines as returning |
|
4398 int, not int*. |
|
4399 |
|
4400 Wed Oct 14 23:51:31 1998 Georg Thimm <thimm@idiap.ch> |
|
4401 |
|
4402 * load-save.cc (Vcrash_dumps_octave_core): New static variable. |
|
4403 (save_user_variables): Only save variables if |
|
4404 Vcrash_dumps_octave_core is true. |
|
4405 (symbols_of_load_save): Add DEFVAR for it here. |
|
4406 (crash_dumps_octave_core): New function. |
|
4407 * octave.cc (maximum_braindamage): Bind crash_dumps_octave_core to |
|
4408 0.0 here. |
|
4409 |
|
4410 Tue Oct 13 22:05:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4411 |
|
4412 * input.cc (read_readline_init_file): New function. |
|
4413 |
|
4414 Thu Oct 8 13:47:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4415 |
|
4416 * oct-procbuf.h (octave_procbuf::wstatus): New data member. |
|
4417 Initialize in constructors. |
|
4418 (octave_procbuf::wait_status): New member function. |
|
4419 * oct-procbuf.cc (octave_procbuf::sys_close): Use class data |
|
4420 member wstatus, not local variable. |
|
4421 * procstream.cc (procstreambase::close): Don't call sys_close directly. |
|
4422 Get subprocess exit status by calling wait_status for our procbuf. |
|
4423 * pt-plot.cc (close_plot_stream): Send "quit" command to gnuplot |
|
4424 before deleting plot_stream. |
|
4425 |
|
4426 |
|
4427 Thu Oct 1 22:39:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4428 |
|
4429 * data.cc (Fis_complex): New function. |
|
4430 |
3185
|
4431 Fri Sep 25 11:50:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4432 |
|
4433 * load-save.cc (write_header): Rename from write_binary_header. |
|
4434 Also write header for Octave ASCII files. |
|
4435 |
|
4436 * load-save.cc (Fsave): Implement -append option. |
|
4437 |
|
4438 * defaults.cc (Frehash): New function. |
|
4439 |
|
4440 Fri Sep 25 11:50:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4441 |
|
4442 * help.cc (help_from_info): Improve error message in case that |
|
4443 info doesn't work. |
|
4444 |
3180
|
4445 Thu Sep 24 10:48:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4446 |
3185
|
4447 * Makefile.in (DLD_XSRC): Replace qzval.cc with qz.cc |
|
4448 |
|
4449 * DLD-FUNCTIONS/balance.cc: Update from A. S. Hodel |
|
4450 <scotte@eng.auburn.edu>. |
|
4451 |
|
4452 * DLD-FUNCTIONS/qz.cc: New file. |
|
4453 |
|
4454 * DLD-FUNCTIONS/qzval.cc: Delete. |
|
4455 |
3180
|
4456 * parse.y (plot_command1): Don't allow it to be empty. |
|
4457 (plot_command): Handle simple `PLOT' and `PLOT ranges' as special |
|
4458 cases here. |
|
4459 |
|
4460 Wed Sep 23 21:10:08 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4461 |
|
4462 * lex.l: Change <MATRIX>{SNLCMT}*\n{SNLCMT}* pattern |
|
4463 to <MATRIX>{S}*{COMMENT}{SNLCMT}* | <MATRIX>{S}*{NL}{SNLCMT}*. |
|
4464 |
|
4465 Fri Sep 4 10:50:00 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4466 |
|
4467 * file-io.cc (Ffwrite): Fix doc string. |
|
4468 |
|
4469 Wed Sep 2 16:22:23 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4470 |
|
4471 * input.cc (match_sans_spaces): Make it work. |
|
4472 |
|
4473 * toplev.cc (quit): Require nargout == 0. |
|
4474 |
|
4475 * input.cc (get_user_input): Only try matching "exit", "quit", and |
|
4476 "return" if debugging. |
|
4477 |
|
4478 Tue Sep 1 12:50:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4479 |
|
4480 * octave.cc: Use -H as single character equivalent of --no-history. |
|
4481 |
|
4482 Sat Aug 29 12:23:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4483 |
|
4484 * oct-obj.cc (octave_value_list::make_argv): If some values are |
|
4485 string vectors, insert all the elements, not just the first. |
|
4486 |
|
4487 Tue Aug 18 16:39:50 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4488 |
|
4489 * oct-stream.cc (octave_base_stream::do_gets): Accept last line of |
|
4490 file even if it doesn't end in a newline character. |
|
4491 |
|
4492 Tue Aug 18 16:25:49 1998 Mumit Khan <khan@xraylith.wisc.edu> |
|
4493 |
|
4494 * xdiv.cc (mx_leftdiv_conform, mx_div_conform): Instantiate correct |
|
4495 templates. |
|
4496 |
|
4497 Thu Jul 30 00:37:43 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4498 |
|
4499 * pt-loop.cc (tree_for_command::eval): Check for range first. |
|
4500 If error occurs when extracting matrix value, return early. |
|
4501 Don't bother to check for string type. |
|
4502 |
|
4503 * ov-ch-mat.h (octave_char_matrix::is_real_matrix): New function. |
|
4504 |
|
4505 Tue Jun 23 15:09:54 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4506 |
|
4507 * parse.y (clear_current_script_file_name): New function. |
|
4508 (parse_fcn_file): Bind current_script_file_name while script is |
|
4509 executing. Use unwind_protect to clear it once the script is |
|
4510 finished. |
|
4511 |
|
4512 * pt-plot.cc (Fgraw): New function. |
|
4513 |
3178
|
4514 Mon Jun 22 22:13:38 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4515 |
|
4516 * variables.cc (is_valid_function): Provide version that takes |
|
4517 function name as string. |
|
4518 |
|
4519 * parse.y (binary_expr): Fix thinko that resulted in incorrect |
|
4520 evaluation of -x^y. Thanks to Richard Allan Holcombe |
|
4521 <raholcom@unity.ncsu.edu>. |
|
4522 (feval): Don't attempt to copy nonexistent arg names. |
|
4523 |
|
4524 Mon Jun 22 21:35:50 1998 Richard Allan Holcombe <raholcom@unity.ncsu.edu> |
|
4525 |
|
4526 * xpow.cc (xpow): Improve efficiency for matrix^(scalar int) case. |
|
4527 |
|
4528 Thu Jun 4 12:42:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4529 |
|
4530 * ov-usr-fcn.cc (octave_user_function::octave_all_va_args): |
|
4531 If num_args_passed < num_named_args, create zero length list. |
|
4532 |
3176
|
4533 Thu May 14 16:23:15 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4534 |
|
4535 * DLD-FUNCTIONS/getrusage.cc: Include sys/types.h too. |
|
4536 |
|
4537 Mon May 11 00:38:45 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4538 |
|
4539 * pager.cc (Fdiary): Don't forget to set write_to_diary file if |
|
4540 just given a file name. |
|
4541 |
|
4542 * input.cc (octave_gets): Only send new line character to |
|
4543 octave_diary if current_input_line is empty or doesn't already end |
|
4544 with a new line character.. |
|
4545 Don't send input from function files or scripts to octave_diary. |
|
4546 |
3174
|
4547 Sun May 3 19:54:38 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4548 |
|
4549 * lex.l (reset_parser): Also call yyrestart if forced_interactive |
|
4550 is true, but not if input_from_startup_file is true. |
|
4551 |
|
4552 Tue Apr 28 14:06:20 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4553 |
|
4554 * oct-procbuf.cc (Vkluge_procbuf_delay): New static variable. |
|
4555 (kluge_procbuf_delay): New function. |
|
4556 (symbols_of_oct_procbuf): New function. |
|
4557 (octave_procbuf::open): Delay Vkluge_procbuf_delay microseconds |
|
4558 after forking. |
|
4559 |
|
4560 Thu Apr 23 15:41:08 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4561 |
|
4562 * defaults.cc (Vload_path_dir_path): New variable. |
|
4563 * utils.cc (file_in_path): Use it. |
|
4564 |
|
4565 * utils.cc (search_path_for_file): Undo previous change. |
|
4566 (file_in_path): Undo previous change. |
|
4567 * defaults.cc (loadpath): Undo previous change. Tilde expansion |
|
4568 is once again handled correctly by the code in |
|
4569 liboctave/pathsearch.cc. |
|
4570 |
|
4571 Mon Apr 20 21:50:34 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4572 |
|
4573 * data.cc (get_dimensions): Allow zeros ([], 3) to work, for |
|
4574 compatibility with Matlab. |
|
4575 |
|
4576 * dynamic-ld.cc [WITH_DL && ! HAVE_DLFCN_H]: Add declarations for |
|
4577 dlopen, dlerror, dlsym, and dlclose. |
|
4578 |
|
4579 * octave.gperf: Handle __FILE__ and __LINE__. |
|
4580 * lex.l (is_keyword): Likewise. |
|
4581 * Makefile.in (oct-gperf.h): Pass -D option to gperf. |
|
4582 Postprocess output of gperf to convert name of static variable |
|
4583 from lookup to gperf_lookup, to avoid conflict with our function |
|
4584 of the same name defined in variables.cc. |
|
4585 |
3168
|
4586 Sat Apr 18 20:17:10 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4587 |
|
4588 * help.cc (USE_GNU_INFO): Delete uses of this macro. |
|
4589 |
3167
|
4590 Thu Apr 16 01:00:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4591 |
|
4592 * dynamic-ld.cc: Only include dlfcn.h if HAVE_DLFCN_H. |
|
4593 |
3165
|
4594 Wed Apr 15 01:03:05 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4595 |
|
4596 * input.cc (Vlast_prompt_time): New global variable. |
|
4597 (octave_gets): Set it. |
3166
|
4598 * ov-fcn.h (octave_function::time_checked): New virtual function |
|
4599 (octave_function::mark_fcn_file_up_to_date): Ditto. |
3165
|
4600 * ov-usr-fcn.h (octave_user_function::time_checked): New function. |
|
4601 (octave_user_function::mark_fcn_file_up_to_date): Ditto. |
|
4602 (octave_user_function::t_checked): New data member. |
|
4603 * variables.cc (symbol_out_of_date): Only check file time stamp if |
|
4604 a prompt has been printed since the last time check. |
|
4605 |
|
4606 * pt-plot.h, pt-plot.cc (subplot_axes): New class. |
|
4607 (subplot): Handle axes. |
|
4608 (Vgnuplot_command_axes): New static variable. |
|
4609 (gnuplot_command_axes): New function. |
|
4610 (symbols_of_pt_plot): DEFVAR gnuplot_command_axes. |
|
4611 * pt-walk.h (tree_walker::visit_subplot_axes): New virtual function. |
|
4612 * parse.y (plot_options): Handle axes. |
|
4613 * lex.l (plot_axes_token): New function. |
|
4614 (is_keyword): Use it. |
|
4615 (is_plot_keyword): Recognize "axes" and "axis". |
|
4616 * lex.h (class lexical_feedback): New field, in_plot_axes. |
|
4617 (lexical_feedback::init): Reset it. |
|
4618 |
|
4619 Tue Apr 14 23:32:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4620 |
|
4621 * parse.y (parse_fcn_file): New arg, force_script. Change callers. |
|
4622 |
3164
|
4623 Fri Apr 10 11:01:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4624 |
|
4625 * help.cc (type): Also print values of variables. |
|
4626 |
3162
|
4627 Wed Apr 8 01:00:58 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4628 |
3164
|
4629 * pr-output.cc (set_format): Set scale to 1.0 if all elements are |
|
4630 int or inf or nan. |
|
4631 |
3162
|
4632 * parse.y (Vwarn_future_time_stamp): New variable. |
|
4633 (symbols_of_parse): Add DEFVAR for it. |
|
4634 (warn_future_time_stamp): New function. |
|
4635 (frob_function_def): Maybe warn about files with future time stamps. |
|
4636 |
|
4637 Thu Apr 2 20:43:45 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4638 |
|
4639 * pt-arg-list.cc (tree_argument_list::convert_to_const_vector): In |
|
4640 error messages, print element numbers starting with 1, not 0. |
|
4641 |
|
4642 Sat Mar 28 15:25:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4643 |
|
4644 * toplev.cc (clean_up_for_exit): New function. |
|
4645 (clean_up_and_exit): Use it. |
|
4646 * sighandlers.cc (my_friendly_exit): Call it instead of |
|
4647 clean_up_and_exit, then do default action for signal. |
|
4648 |
|
4649 * sighandlers.cc (octave_new_handler): Call my_friendly_exit with |
|
4650 signal set to SIGABRT if it is defined, or -1 otherwise. |
|
4651 |
|
4652 * error.cc (verror): Fix thinko in attempt to skip `error: ' tag |
|
4653 when buffering error messages. |
|
4654 * pt-except.cc (tree_try_catch::eval): Reset buffer_error_messages |
|
4655 here if just discarding unwind_protect frame. |
|
4656 |
|
4657 Wed Mar 18 12:35:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4658 |
|
4659 * xpow.cc (elem_xpow): For real-scalar .^ matrix case, result is |
|
4660 complex only if real-scalar is negative and matrix has some |
|
4661 non-integer values. |
|
4662 |
|
4663 Tue Mar 17 17:47:50 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4664 |
|
4665 * pt-plot.cc (Vgnuplot_command_plot, Vgnuplot_command_replot, |
|
4666 Vgnuplot_command_splot, Vgnuplot_command_using, |
|
4667 Vgnuplot_command_with, Vgnuplot_command_title, |
|
4668 Vgnuplot_command_end): New static variables. |
|
4669 (symbols_of_pt_plot): DEFVAR them. |
|
4670 (gnuplot_command_plot, gnuplot_command_replot, |
|
4671 gnuplot_command_splot, gnuplot_command_using, |
|
4672 gnuplot_command_with, gnuplot_command_title, |
|
4673 gnuplot_command_end): New functions. |
|
4674 (open_plot_stream, send_to_plot_stream, tree_plot_command::eval, |
|
4675 subplot_using::print, subplot_style::print, subplot::print, |
|
4676 do_external_plotter_cd, Fgset, Fgshow): Use them instead of the |
|
4677 GPLOT_CMD_PLOT, GPLOT_CMD_REPLOT, GPLOT_CMD_SPLOT, |
|
4678 GPLOT_CMD_USING, GPLOT_CMD_WITH, GPLOT_CMD_TITLE, and |
|
4679 GPLOT_CMD_END macros. |
|
4680 |
3160
|
4681 Fri Feb 27 12:25:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4682 |
|
4683 * help.cc (additional_help_message): Fix www address. |
|
4684 |
|
4685 Tue Feb 24 00:42:59 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4686 |
|
4687 * help.cc (simple_help): Put additional help message first. |
|
4688 (additional_help_message): Add information about web site and |
|
4689 mailing list. |
|
4690 |
3156
|
4691 Fri Feb 20 00:41:06 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4692 |
|
4693 * pt-plot.cc (GPLOT_CMD_REPLOT): Clear before replot. |
|
4694 |
|
4695 * Makefile.in: Better handling of lib flags for linking. |
|
4696 |
|
4697 Thu Feb 19 21:14:30 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4698 |
|
4699 * pt-decl.cc (Vinitialize_global_values): New static variable. |
|
4700 (initialize_global_variables): New function. |
|
4701 (symbols_of_pt_decl): New function. |
|
4702 DEFVAR Vinitialize_global_values and initialize_global_variables. |
|
4703 (tree_global_command::do_init): If initialize_global_variables is |
|
4704 not true and the variable doesn't have an explicit initializer, don't |
|
4705 initialize it. If we are giving it a default value, use the value |
|
4706 of the variable defualt_global_variable_value. |
|
4707 * octave.cc (maximum_braindamage): Set default_global_variable_value |
|
4708 and initialize_global_variables to Matlab-compatible values. |
|
4709 |
|
4710 Wed Feb 18 04:35:31 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4711 |
|
4712 * DLD-FUNCTIONS/besselj.cc: Rename from bessel.cc. |
|
4713 * Makefile.in (DLD_XSRC): Likewise. |
|
4714 |
|
4715 * syscalls.cc (Fvfork): Delete. |
|
4716 |
|
4717 * oct-procbuf.cc: Just use fork. |
|
4718 |
|
4719 * parse.y (feval): Provide version that takes function name |
|
4720 separate from other args. |
|
4721 * parse.h: Declare it. |
|
4722 |
|
4723 * oct-procbuf.cc (octave_procbuf::open): Move declaration of |
|
4724 child_std_end outside of child scope and declare volatile. |
|
4725 |
|
4726 Mon Feb 16 15:04:28 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4727 |
|
4728 * parse.y: Include cstdio, for SEEK_SET. |
|
4729 |
3153
|
4730 Thu Feb 12 22:07:00 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4731 |
|
4732 * system.c: New file. |
|
4733 * Makefile.in (SOURCES): Add it to the list. |
|
4734 |
3148
|
4735 Fri Feb 6 01:23:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4736 |
|
4737 * oct-stream.cc (octave_base_stream::file_number): Rename from fileno. |
|
4738 Change all uses. |
|
4739 |
|
4740 * fsolve.cc (fsolve_option_table): Add missing & to function names. |
|
4741 |
3145
|
4742 Thu Feb 5 02:27:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4743 |
3147
|
4744 * dirfns.cc (Fls): If first attempt at reading process output |
|
4745 fails, sleep once and try again. |
|
4746 * toplev.cc (run_command_and_return_output): Likewise. |
|
4747 |
|
4748 * oct-procbuf.cc (octave_procbuf::open): Use vfork if it is available. |
|
4749 |
|
4750 * syscalls.cc (Fvfork): New function. |
|
4751 |
3145
|
4752 * ov-bool-mat.cc: Only declare assign function if |
|
4753 CXX_NEW_FRIEND_TEMPLATE_DECL is not defined. |
|
4754 |
|
4755 * ov-base.h, ov-bool-mat.h, ov-bool.h, ov-ch-mat.h, ov-complex.h, |
|
4756 ov-cx-mat.h, ov-range.h, ov-re-mat.h, ov-scalar.h: Handle default |
|
4757 args for *_value functions consistently. |
|
4758 |
|
4759 * symtab.cc (maybe_list_cmp_fcn): Declare args as void*, not |
|
4760 void**, then use X_CAST. |
|
4761 |
|
4762 * OPERATORS/op-s-cm.cc: Include mx-cm-s.h. |
|
4763 |
|
4764 * defun-int.h: Include ov-builtin.h, ov-mapper.h, and symtab.h. |
|
4765 (install_builtin_mapper, install_builtin_function, |
|
4766 install_builtin_variable) Use specific types rather than void * in |
|
4767 declaration. |
|
4768 * defun.cc (install_builtin_mapper, install_builtin_function, |
|
4769 install_builtin_variable): Likewise. Eliminate casts. |
|
4770 |
|
4771 * load-save.cc (read_binary_data, read_mat_file_header, |
|
4772 save_binary_data): Use X_CAST, not static_cast. |
|
4773 * unwind-prot.h (unwind_protect::save_ptr): Likewise. |
|
4774 * Map.cc (goodCHptr, index_to_CHptr, CHptr_to_index): Likewise. |
|
4775 * dynamic-ld.cc (octave_dlopen_dynamic_loder::resolve_reference): |
|
4776 Likewise. |
|
4777 |
|
4778 * pt-mat.cc (tm_const::operator bool ()): |
|
4779 (tm_row_const::operator bool ()): Likewise. |
|
4780 * oct-stream.cc (printf_value_cache::operator bool ()): Likewise. |
|
4781 (scanf_format_list::operator bool ()): Likewise. |
|
4782 (printf_format_list::operator bool ()): Likewise. |
|
4783 (octave_stream::operator bool ()): Likewise. |
|
4784 |
|
4785 Wed Feb 4 13:08:29 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4786 |
|
4787 * DLD-FUNCTIONS/minmax.cc: Include cmath, not oct-math.h. |
|
4788 |
|
4789 * syscalls.cc (Fdup2): Convert stream to actual system file id. |
|
4790 |
|
4791 * oct-stream.cc (octave_base_stream::fileno, octave_stream::fileno): |
|
4792 New functions. |
|
4793 |
3141
|
4794 Tue Feb 3 00:24:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4795 |
|
4796 * defaults.cc (exec_path): Append Vbin_dir to std_path. |
|
4797 |
|
4798 * octave.cc (initialize_pathsearch): Set TEXMFDBS, not TEXMF. |
|
4799 Look for OCTAVE_DB_PATH in environment. |
|
4800 Simplify using Vdata_dir and Vlibexec_dir. |
|
4801 |
|
4802 * defaults.h.in (Vdata_dir, Vlibexecdir): Declare new vars. |
|
4803 defaults.cc: Define them. |
|
4804 (set_default_data_dir, set_default_libexecdir): New functions. |
|
4805 (install_defaults): Call them. |
|
4806 |
|
4807 * defaults.h.in (OCTAVE_LIBEXECDIR): Define. |
|
4808 |
|
4809 Mon Feb 2 02:43:16 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4810 |
|
4811 * Makefile.in (install, uninstall): Use $(octlibdir), not $(libdir). |
|
4812 Use mk-libdir-link. |
|
4813 |
|
4814 * defaults.h.in (OCTAVE_OCTLIBDIR): Substitute value. |
|
4815 (Vlib_dir): Delete declaration. |
|
4816 * defaults.cc (Vlib_dir): Delete. |
|
4817 (set_default_lib_dir): Delete. |
|
4818 (install_defaults): Don't call set_default_lib_dir. |
|
4819 (set_default_info_prog): If oct_info_prog is empty, set default to |
|
4820 "info" -- we expect it to be somewhere in the user's path. |
|
4821 |
|
4822 * defun.h (DEFCONST, DEFCONSTX): Eliminate inst_as_fcn and chg_fcn |
|
4823 args. Always pass true for inst_as_fcn and 0 for chg_fcn to |
|
4824 DEFVAR when creating built-in values like `e' or `stderr' that can |
|
4825 be redefined. Change all uses. |
|
4826 |
|
4827 * help.cc (Ftype): Handle script files too. |
|
4828 (Fwhich): Likewise. |
|
4829 |
3136
|
4830 Sat Jan 31 00:00:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4831 |
|
4832 * ov-ch-mat.cc (octave_char_matrix::is_true): Make it work. |
|
4833 * ov-str-mat.h, ov-str-mat.cc (octave_char_matrix_str::is_true): |
|
4834 Delete. |
|
4835 |
|
4836 * load-save.cc (read_ascii_data): Allow strings of length 0. |
|
4837 If we don't find data on the first call, fail with error message. |
|
4838 (do_load): Pass count of items read to read_ascii_data. |
|
4839 Allow `load foo xyz' to work when foo contains only numbers. |
|
4840 |
|
4841 Fri Jan 30 23:46:42 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4842 |
|
4843 * ov-str-mat.h (octave_char_matrix_str::all): Delete. |
|
4844 (octave_char_matrix_str::any): Delete. |
|
4845 * ov-ch-mat.h (octave_char_matrix::all, octave_char_matrix::any): |
|
4846 Call charMatrix::all, charMatrix::any. |
|
4847 |
|
4848 Thu Jan 29 16:25:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4849 |
|
4850 * load-save.cc (read_mat_binary_data): Handle third digit of MOPT |
|
4851 as flag indicating row or column major ordering. |
|
4852 |
3131
|
4853 Wed Jan 28 00:18:17 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4854 |
|
4855 * DLD-FUNCTIONS/dassl.cc (lsode_option_table): |
|
4856 Add missing & to function names. |
|
4857 * DLD-FUNCTIONS/lsode.cc (lsode_option_table): Likewise. |
|
4858 * DLD-FUNCTIONS/quad.cc (quad_option_table): Likewise. |
|
4859 |
|
4860 * Makefile.in (oct-gperf.h): Add -G option to gperf. |
|
4861 |
|
4862 * load-save.cc (get_save_type): Add `UL' and `L' suffixes to large |
|
4863 constant values. For LS_INT, use <= and >= for comparison. |
|
4864 |
|
4865 Mon Jan 26 13:17:59 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4866 |
|
4867 * ov-usr-fcn.cc (Vmax_recursion_depth): New static variable. |
|
4868 (max_recursion_depth): New fucnction |
|
4869 (symbols_of_ov_usr_fcn): DEFVAR max_recursion_depth. |
|
4870 (octave_user_function::do_index_op): Check Vmax_recursion_depth. |
|
4871 |
3130
|
4872 Thu Jan 22 13:45:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4873 |
|
4874 * dynamic-ld.cc (make_dynamic_loader): Fix typo. |
|
4875 |
|
4876 Tue Jan 20 17:02:19 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4877 |
|
4878 * variables.cc (Fexist): If local symbol is undefined, check |
|
4879 global table. |
|
4880 |
|
4881 * pr-output.cc (pr_max_internal): Initial value for result is |
|
4882 -DBL_MAX, not DBL_MIN. |
|
4883 |
3125
|
4884 Thu Jan 8 11:54:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4885 |
|
4886 * xpow.cc (elem_xpow): If second arg of pow is complex, make sure |
|
4887 first arg is also complex. |
|
4888 |
|
4889 * symtab.cc (symbol_table::rename): Properly insert new item at |
|
4890 the front of the list to avoid losing the rest of the items. |
|
4891 |
|
4892 Thu Dec 11 23:30:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4893 |
|
4894 * variables.cc (Fclear): Increment index to skip -x arg. |
|
4895 |
3124
|
4896 Tue Dec 9 02:45:35 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4897 |
|
4898 * Makefile.in (INCLUDES): Don't forget Pix.h. |
|
4899 |
|
4900 * BaseSLList.cc: Don't include nonstandard libg++ header files. |
|
4901 |
3119
|
4902 Sun Nov 30 14:58:56 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4903 |
3124
|
4904 * pr-output.cc: Include cmath, not oct-math. |
|
4905 * sysdep.cc: Likewise. |
|
4906 |
3119
|
4907 * DLD-FUNCTIONS/bessel.cc: New file. |
|
4908 * Makefile.in (DLD_XSRC): Add it to the list. |
|
4909 |
3113
|
4910 Thu Nov 27 23:28:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4911 |
|
4912 * lex.l (handle_string): Constructor for string class takes |
|
4913 (size_t, char) args, not (char, size_t). |
|
4914 |
3111
|
4915 Wed Nov 26 00:39:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4916 |
|
4917 * Makefile.in (OCTAVE_LIBS): Include $(SPECIAL_MATH_LIB) just |
|
4918 ahead of -lcruft. |
|
4919 |
3110
|
4920 Thu Nov 20 15:16:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4921 |
|
4922 * octave.cc (maximum_braindamage): Bind implicit_num_to_str_ok to 1. |
|
4923 * pt-mat.cc (Vimplicit_num_to_str_ok): New static variable. |
|
4924 (implicit_num_to_str_ok): New function. |
|
4925 (symbols_of_pt_mat): DEFVAR implicit_num_to_str_ok. |
|
4926 (tm_row_const::some_str): New data member. |
|
4927 (tm_row_const::some_strings_p): New function. |
|
4928 (tm_row_const::init): Set some_str. |
|
4929 (tm_const::some_str): New data member. |
|
4930 (tm_const::some_strings_p): New function. |
|
4931 (tm_const::init): Set some_str. |
|
4932 (tree_matrix::eval): If Vimplicit_num_to_str_ok is true and some |
|
4933 of the elements are strings, force a string conversion before |
|
4934 returning. |
|
4935 |
|
4936 * parse.y (fold, finish_colon_expression, finish_matrix): |
|
4937 If an error occurs, return the original expression. |
|
4938 Use unwind_protect to restore error_state. |
|
4939 |
|
4940 * ov-ch-mat.h (octave_char_matrix::convert_to_str): Result is |
|
4941 char_matrix_str, not just char_matrix. |
|
4942 |
3107
|
4943 Wed Nov 19 02:05:40 1997 Mumit Khan <khan@dhaka.xraylith.wisc.edu> |
|
4944 |
|
4945 * DLD-FUNCTIONS/filter.cc: Don't include extern template decls if |
3109
|
4946 CXX_NEW_FRIEND_TEMPLATE_DECL is defined. |
3107
|
4947 * ov-cx-mat.cc: Likewise. |
|
4948 * ov-re-mat.cc: Likewise. |
|
4949 * ov-str-mat.cc: Likewise. |
|
4950 |
|
4951 * ov-cx-mat.h (octave_complex_matrix::decrement, |
|
4952 octave_complex_matrix): Use explicit Complex constructor. |
|
4953 |
|
4954 Wed Nov 19 00:08:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4955 |
|
4956 * pt-decl.cc (tree_global_command::do_init): Initialize global |
|
4957 values to `[]'. Only perform explicit initialization once. |
|
4958 |
3103
|
4959 Tue Nov 18 04:27:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4960 |
3105
|
4961 * pr-output.cc (Vfixed_point_format): New variable. |
|
4962 (fixed_point_format): New fucntion. |
|
4963 (symbols_of_pr_output): Add DEFVAR for fixed_point_format. |
|
4964 (set_real_matrix_format): Handle fixed point format |
|
4965 (set_complex_matrix_format): Handle fixed point format |
|
4966 (set_format): New arg, scale in Matrix, ComplexMatrix, Range versions. |
|
4967 (pr_scale_header): New function. |
|
4968 (octave_print_internal): Handle fixed point format in Matrix, |
|
4969 ComplexMatrix, and Range versions. |
|
4970 * octave.cc (maximum_braindamage): Set fixed_point_format to 1.0. |
|
4971 |
3103
|
4972 * utils.cc (do_string_escapes): Move here, from lex.l. |
|
4973 Arg is now const string& instead of char*. |
|
4974 Return new string object instead of modifying arg in place. |
|
4975 (Fdo_string_escapes): New function. |
|
4976 * lex.l (handle_string): Use new version of do_string_escapes. |
3105
|
4977 |
|
4978 * lex.l (Vbackslash_escapes): Delete. |
|
4979 (backslash_escapes): Delete. |
|
4980 (do_string_escapes): Undo previous change. |
|
4981 (eat_whitespace, eat_continuation): Undo previous change. |
|
4982 (handle_string): Undo previous change. |
|
4983 (symbols_of_lex): Undo previous change. |
|
4984 * octave.cc (maximum_braindamage): Undo previous change. |
3103
|
4985 |
3096
|
4986 Fri Nov 14 01:53:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4987 |
3100
|
4988 * parse.y (eval_string (const string&, bool, int&, int)): No |
|
4989 longer static. |
|
4990 * parse.h: Provide declaration. |
|
4991 * input.cc (get_user_input (const octave_value_list&, bool, int)): |
|
4992 New arg, nargout. Pass it to eval_string. |
|
4993 (keyboard): Pass nargout = 0 to get_user_input. |
|
4994 (input): Pass nargout to get_user_input. |
|
4995 |
3098
|
4996 * input.cc (get_user_input (const octave_value_list&, bool)): |
3100
|
4997 Return octave_value_list() if user enters `quit', `exit', or `return'. |
3098
|
4998 If debugging, let eval_string handle the printing chores and |
|
4999 reset error_state before asking for more input. |
|
5000 |
|
5001 * input.cc (Fkeyboard): Unconditionally turn on history here. |
|
5002 |
3096
|
5003 * lex.l (have_continuation, have_ellipsis_continuation): Declare |
|
5004 arg as bool, not int. Change callers. |
|
5005 |
|
5006 * lex.l (Vbackslash_escapes): New static variable. |
|
5007 (backslash_escapes): New function. |
|
5008 (do_string_escapes): Return immediately if ! Vbackslash_escapes. |
|
5009 (eat_whitespace, eat_continuation): Only call have_continuation if |
|
5010 Vbackslash_escapes. |
|
5011 (handle_string): Backslash is only special if Vbackslash_escapes. |
|
5012 (symbols_of_lex): Add DEFVAR for backslash_escapes. |
|
5013 * octave.cc (maximum_braindamage): Set backslash_escapes to 0. |
|
5014 |
3095
|
5015 Thu Nov 13 16:20:40 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5016 |
3096
|
5017 * variables.cc (Fexist): Also return 2 if NAME is a regular file |
|
5018 somewhere in the LOADPATH. |
|
5019 |
3095
|
5020 * data.cc (sumsq): Fix doc string. |
|
5021 |
|
5022 * parse.y (Fsource): Call parse_fcn_file, not parse_and_execute. |
|
5023 |
3092
|
5024 Tue Oct 7 16:51:01 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5025 |
|
5026 * defun-int.h (DEFINE_FUN_INSTALLER_FUN): Set installed to true |
|
5027 after installing the function. |
|
5028 |
3088
|
5029 Thu Sep 25 10:17:26 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5030 |
|
5031 * DLD-FUNCTIONS/filter.cc (Ffilter): Return second output value |
|
5032 even when called with only 3 arguments. |
|
5033 |
3086
|
5034 Mon Sep 22 16:44:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5035 |
|
5036 * DLD-FUNCTIONS/rand.cc (do_rand): Print error if first of two |
|
5037 args is a string but doesn't match "seed". |
3088
|
5038 (Frand, Frandn): Fix doc string. |
3086
|
5039 |
3081
|
5040 Mon Aug 25 10:42:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5041 |
|
5042 * input.cc (get_user_input): Return an empty string if the user |
|
5043 just types RET. |
|
5044 |
3079
|
5045 Thu Jul 31 22:59:04 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5046 |
|
5047 * lex.l <TEXT_FCN>: Ensure that we handle words that begin with |
|
5048 single or double quotes as strings. |
|
5049 |
3074
|
5050 Thu Jul 17 13:06:48 1997 Klaus Gebhardt <gebhardt@crunch.ikp.physik.th-darmstadt.de> |
|
5051 |
|
5052 * DLD-FUNCTIONS/rand.cc (Frand): Use F77_XFCN to call getsd, |
|
5053 setsd, setall, setcgn, dgenunf, and dgennor since they can call |
|
5054 XSTOPX. |
|
5055 |
3072
|
5056 Mon Jul 14 12:54:23 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5057 |
|
5058 * dynamic-ld.cc (octave_dynamic_loader::load_fcn_from_dot_oct_file): |
|
5059 If first attempt to load function fails, prepend and underscore |
|
5060 and try again. |
|
5061 |
|
5062 * Makefile.in (install-inc): If defaults.h, oct-conf.h, or |
|
5063 oct-gperf.h don't exist in the current directory, look in $(srcdir). |
|
5064 |
3068
|
5065 Mon Jul 7 21:14:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5066 |
|
5067 * DLD-FUNCTIONS/qr.cc (Fqr): Correctly handle nargout == 0. |
|
5068 |
3067
|
5069 Wed Jul 2 16:47:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5070 |
|
5071 * matherr.c: New file. Move matherr function here. |
|
5072 * sysdep.cc: From here. |
|
5073 * Makefile.in (DIST_SRC): Add matherr.c to the list. |
|
5074 |
|
5075 * error.cc (handle_message): Avoid bug in g++ snapshot. |
|
5076 |
3065
|
5077 Thu Jun 26 22:04:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5078 |
|
5079 * utils.cc (file_in_path): Add default load path to PATH arg if |
|
5080 it begins or ends with a colon. |
|
5081 |
3060
|
5082 Wed Jun 25 13:31:06 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5083 |
|
5084 * oct-lvalue.h (octave_lvalue::struct_elt_ref): Ensure val is unique. |
|
5085 |
|
5086 Fri Jun 20 12:33:35 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5087 |
|
5088 * toplev.cc (cmd_death_handler): New function. |
|
5089 (run_command_and_return_output): Insert pid of command in |
|
5090 octave_child_list along with pointer to cmd_death_handler so we |
|
5091 can get the exit status without having to block SIGCHLD. |
|
5092 (cleanup_iprocstream): Remove pid of command from octave_child_list. |
|
5093 |
3053
|
5094 Sun Jun 15 16:11:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5095 |
3054
|
5096 * OPERATORS/op-cs-s.cc (ldiv): Doh, v1 is complex, v2 is real. |
|
5097 |
3053
|
5098 * Makefile.in (DISTFILES): Add mkops to the list. |
|
5099 (dist): Correctly link files in DLD-FUNCTIONS, OPERATORS, and |
|
5100 TEMPLATE-INST subdirectories. |
|
5101 |
3040
|
5102 Fri Jun 6 04:30:57 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5103 |
3042
|
5104 * DLD-FUNCTIONS/npsol.cc, DLD-FUNCTIONS/qpsol.cc, |
|
5105 DLD-FUNCTIONS/fsqp.cc: Delete. |
|
5106 * Makefile.in (DLD_XSRC): Remove them from the list. |
|
5107 |
3040
|
5108 * utils.cc (search_path_for_file): New arg, do_tilde_expansion. |
|
5109 If TRUE, perform tilde expansion on path before searching. |
|
5110 (file_in_path): Call search_path_for_file with do_tilde_expansion |
|
5111 set to false, since we've already performed tilde expansion on the |
|
5112 load path. |
|
5113 |
|
5114 * defaults.cc (loadpath): Perform tilde expansion here. |
|
5115 |
3029
|
5116 Thu Jun 5 01:42:39 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5117 |
3034
|
5118 * Makefile.in: Make building of static library optional. |
3036
|
5119 (liboctave.$(SHLEXT_VER)): Add $(SONAME_FLAGS) to command. |
3034
|
5120 |
3033
|
5121 * dynamic-ld.cc (octave_shl_load_dynamic_loader::resolve_reference): |
|
5122 Call shl_findsym with type set to TYPE_UNDEFINED. |
|
5123 |
3029
|
5124 * Makefile.in (stamp-picdir): Delete. |
|
5125 (pic): New target. Don't worry so much about creating pic |
|
5126 directory only when it is really needed. |
|
5127 (stamp-interp): Delete. |
|
5128 (libraries): New target. Depend on shared library directly. |
|
5129 |
3024
|
5130 Wed Jun 4 00:09:42 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5131 |
|
5132 * octave.cc (main): Call dir_path::set_program_name here. |
|
5133 |
3021
|
5134 Tue Jun 3 16:47:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5135 |
3022
|
5136 * variables.cc (symbol_out_of_date): Make it work again. |
|
5137 |
3021
|
5138 * parse.y (parse_and_execute): Move here from toplev.cc |
|
5139 (default_eval_print_flag): Likewise. |
|
5140 (safe_fclose): Likewise. |
|
5141 (eval_string): Likewise. |
|
5142 (Fsource): Likewise. |
|
5143 (Ffeval): Likewise. |
|
5144 (feval): Likewise. |
|
5145 (Feval): Likewise. |
|
5146 (symbols_of_parse): Define default_eval_print_flag here instead of |
|
5147 in varaibles.cc. |
|
5148 (looks_like_octave_copyright): Move here from variables.cc |
|
5149 (gobble_leading_whitespace): Likeiwse. |
|
5150 (is_function_file): Likewise. |
|
5151 (restore_input_stream): Likewise. |
|
5152 (parse_fcn_file): Likewise. |
|
5153 (load_fcn_from_file): Likewise. |
|
5154 (get_help_from_file): Likewise. |
|
5155 |
|
5156 * toplev.cc (syms_of_toplev): Define argv, program_name, and |
|
5157 program_invocation_name here instead of in variables.cc. |
|
5158 |
|
5159 * parse.h (line_editing): Move here from toplev.h. Now bool, not int. |
|
5160 (reading_startup_message_printed) Likewise. |
|
5161 (input_from_startup_file): Likewise. |
|
5162 (input_from_command_line_file): Likewise. |
|
5163 |
|
5164 * load-save.cc: Use bool instead of int where appropriate. |
|
5165 |
|
5166 * input.h (enum echo_state): Move here from variables.h. |
|
5167 (Vecho_executing_commands): Likewise. Now bool, not int. |
|
5168 * input.cc (echo_executing_commands): Move here from variables.cc. |
|
5169 (symbols_of_input): Define echo_executing_commands here instead of |
|
5170 in variables.cc. |
|
5171 |
|
5172 * octave.cc (program_invocation_name): Don't define. |
|
5173 (intern_argv): Don't set program_invocation_name here. |
|
5174 (main): Call octave_env::set_program_name here, not in intern_argv. |
|
5175 |
|
5176 * toplev.cc (quitting_gracefully): Move here from octave.h and |
|
5177 make static bool instead of extern int. |
|
5178 |
|
5179 * error.cc (bind_global_error_variable, clear_global_error_variable): |
|
5180 Move here from variables.cc. |
|
5181 (symbols_of_error): Define error_text here instead of in variables.cc. |
|
5182 |
|
5183 * pager.cc (write_to_diary_file): Now bool, not int. |
|
5184 (really_flush_to_pager): Likewise. |
|
5185 (flushing_to_pager): Likewise. |
|
5186 * sighandlers.h (can_interrupt): Likewise. |
|
5187 * error.h (buffer_error_messages): Likewise. |
|
5188 * oct-hist.h (input_from_tmp_history_file, Vsaving_history): Likewise. |
|
5189 * input.h (forced_interactive): Likewise. |
|
5190 (get_input_from_eval_string): Likeiwse. |
|
5191 (reading_script_file): Likeiwse. |
|
5192 (reading_fcn_file): Likeiwse. |
|
5193 (interactive): Likewise. |
|
5194 |
|
5195 * unwind-prot.cc (saved_variable::saved_variable (bool *, bool)): |
|
5196 Set type_tag to boolean, not int. |
|
5197 |
3016
|
5198 Mon Jun 2 00:40:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5199 |
|
5200 * variables.h (Octave_builtin_fcn): Delete typedef. |
|
5201 |
|
5202 * help.cc (make_name_list): Move here from variables.cc. |
|
5203 (keyword_help, names): Now static. |
|
5204 (struct help_list): Move declaration here from help.h. |
|
5205 |
|
5206 * oct-hist.cc (Vhistory_file, Vhistory_size, Vsaving_history): |
|
5207 Move here from variables.cc. |
|
5208 (symbols_of_oct_hist): New function. |
|
5209 |
|
5210 * version.h: Protect against multiple inclusion. |
|
5211 |
|
5212 * defun.cc (check_version): New function. |
|
5213 * defun-int.h (DEFINE_FUN_INSTALLER_FUN): Use it. |
|
5214 |
|
5215 * help.h, help.cc (additional_help_message): Now extern. |
|
5216 (operator_help): Now static. |
|
5217 |
|
5218 * defun.cc (print_usage): Move here from help.cc |
|
5219 * DLD-FUNCTIONS/*.cc, data.cc, dirfns.cc, file-io.cc, input.cc, |
|
5220 load-save.cc, octave.cc, ov-list.cc, ov-typeinfo.cc, |
|
5221 ov-usr-fcn.cc, pager.cc, pr-output.cc, pt-plot.cc, strfns.cc, |
|
5222 syscalls.cc, sysdep.cc, utils.cc, toplev.cc: |
|
5223 Don't include help.h. |
|
5224 |
|
5225 * TEMPLATE-INST/Array-sym.cc: New file. |
|
5226 |
|
5227 * load-save.cc (do_load): Don't use ostream::form. |
|
5228 * pr-output.cc: Likewise, at least where it is easy to do so. |
|
5229 * oct-stream.cc: Ditto. |
|
5230 |
|
5231 * symtab.h (symbol_record::symbol_def::rows): New function. |
|
5232 (symbol_record::symbol_def::columns): Ditto. |
|
5233 (symbol_record::symbol_def::type_name): Ditto. |
|
5234 (symbol_record::rows): Ditto |
|
5235 (symbol_record::columns): Ditto |
|
5236 (symbol_record::type_name): Ditto |
|
5237 |
|
5238 * symtab.h, symtab.cc (symbol_record::hides_fcn): New function. |
|
5239 (symbol_record::hides_builtin): Ditto. |
|
5240 (symbol_record::print_symbol_info_line): Ditto. |
|
5241 (symbol_table::long_list): Delete. |
|
5242 (symbol_table::symbol_list): New function. |
|
5243 (symbol_table::maybe_list): Delete argc arg. |
|
5244 (symbol_table::name_list): Rename from symbol_table::list. |
|
5245 Change all callers. |
|
5246 |
|
5247 * symtab.h, symtab.cc (class symbol_record_info): Delete. |
|
5248 |
|
5249 * symtab.cc (matches_patterns): Use vector form of glob_match. |
|
5250 |
|
5251 Sun Jun 1 14:04:26 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5252 |
|
5253 * pt-check.h, pt-check.cc: New files, for semantic checking of |
|
5254 parse trees. |
|
5255 |
|
5256 * symtab.h (class symbol_def): Now nested in symbol_record class. |
|
5257 (enum TYPE): Move from symbol_def to symbol record class. Change |
|
5258 all uses. |
|
5259 |
|
5260 * symtab.h, symtab.cc (symbol_table::maybe_list): New function, |
|
5261 from variables.cc. Change all uses. |
|
5262 |
|
5263 * pt-idx.h (tree_identifier::lvalue_ok): New function. |
|
5264 * pt-id.h (tree_index_expression::lvalue_ok): Likewise. |
|
5265 * pt-indir.h (tree_indirect_ref::lvalue_ok): Likewise. |
|
5266 |
|
5267 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_oct_obj): Delete. |
|
5268 * pt-walk.h (tree_walker::visit_oct_obj): Delete declaration. |
|
5269 |
|
5270 * lex.h (class lexical_feedback): Delete maybe_screwed_again. |
|
5271 * lex.l (lexical_feedback::init): Don't set it. |
|
5272 |
|
5273 Fri May 30 16:07:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5274 |
|
5275 * mappers.cc: Include <cfloat> here. |
|
5276 |
|
5277 Tue May 27 10:08:43 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5278 |
|
5279 * toplev.cc (eval_string): Don't index tmp if it is empty. |
|
5280 |
|
5281 Sat May 24 00:18:41 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5282 |
|
5283 * load-save.cc (valid_identifier): Move here and make static. |
|
5284 * symtab.h, symtab.cc (valid_identifier): Delete declaration and |
|
5285 definition. |
|
5286 |
|
5287 Fri May 23 22:54:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5288 |
|
5289 * symtab.h (symbol_def::symbol_def): Use initializer list instead |
|
5290 of calling init_state. |
|
5291 (symbol_def::init_state): Delete. |
|
5292 |
|
5293 * symtab.cc (symbol_table::print_stats): New function. |
|
5294 * variables.cc (F__dump_symtab_info__): New function. |
|
5295 |
|
5296 * symtab.h, symtab.cc (symbol_table::hash): Return masked value. |
|
5297 (symbol_table::table_size): New data member. |
|
5298 (symbol_table::symbol_table): Set size of table in constructor. |
|
5299 (HASH_TABLE_SIZE): Replace uses with table_size. |
|
5300 (HASH_MASK): Delete. |
|
5301 * variables.cc (initialize_symbol_tables): Set top-level and |
|
5302 global symbol table sizes here. |
|
5303 |
2994
|
5304 Thu May 22 13:32:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5305 |
|
5306 * dynamic-ld.cc (octave_shl_load_dynamic_loader::resolve_reference): |
|
5307 Call shl_findsym with type set to TYPE_PROCEDURE. Pass the |
|
5308 address of the pointer we want to define. |
|
5309 |
2993
|
5310 Wed May 21 16:30:25 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5311 |
|
5312 * DLD-FUNCTIONS/time.cc (extract_tm): Avoid memory leak in dealing |
|
5313 with time zone. |
|
5314 |
|
5315 * Makefile.in (install-in): Use new mk-includedir-link macro. |
|
5316 (install-lib): Install in $octlibdir. Use new mk-libdir-link macro. |
|
5317 |
|
5318 Tue May 20 01:24:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5319 |
|
5320 * ov-list.cc (Flist): Rename from Fmake_list. |
|
5321 |
|
5322 Mon May 19 14:45:58 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5323 |
|
5324 * octave.cc (maximum_braindamage): Set default_eval_print_flag to 0. |
|
5325 |
|
5326 Sat May 17 16:32:23 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5327 |
|
5328 * defaults.cc (set_default_editor): Default is now Emacs, not vi. |
|
5329 |
2984
|
5330 Fri May 16 00:07:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5331 |
2991
|
5332 * pt-idx.cc (tree_index_expression::name): New function. |
|
5333 |
|
5334 * pt.cc (tree::str_print_code): New file, new convenience function. |
|
5335 * pt-arg-list.cc (tree_argument_list::get_arg_names): Use it. |
|
5336 * pt-assign.cc (tree_simple_assignment::rvalue): Likewise. |
|
5337 (tree_multi_assignment::rvalue): Likewise. |
|
5338 |
2990
|
5339 * pt-colon.h (tree_colon_expression::save_base): New data memmber. |
|
5340 (tree_colon_expression::preserve_base): New function. |
|
5341 * parse.y (finish_colon_expression): When converting to a simple |
|
5342 expression, be sure to delete the original colon expression but |
|
5343 not the base value. |
|
5344 |
|
5345 * pt-mat.cc (tree_matrix::~tree_matrix): Actually do something. |
|
5346 |
2987
|
5347 * pt-all.h: New file. |
|
5348 * parse.y, lex.l, pt-pr-code.cc: Use it. |
|
5349 |
|
5350 * pt.h: Rename from pt-base.h. |
|
5351 |
|
5352 * All parse tree classes: Add private copy constructors and |
|
5353 assignment operators to prevent copying. |
|
5354 |
|
5355 * pt-base.cc: Delete. |
|
5356 |
2985
|
5357 * unwind-prot.h, unwind-prot.cc: Make a bit more object-oriented. |
|
5358 Change all uses of unwind_protect stuff to match. |
|
5359 |
|
5360 * pt-jump.h, pt-jump.cc (breaking, continuing, returning): |
|
5361 Make these flags static members of the corresponding class. |
|
5362 Change all uses. |
|
5363 |
2984
|
5364 * pt-assign.cc (tree_simple_assignment_expression::eval, |
|
5365 tree_multi_assignment_expression::eval): Clear lvalue index here. |
|
5366 |
|
5367 * oct-lvalue.cc (octave_lvalue::assign): Don't clear index here. |
|
5368 * oct-lvalue.h (octave_lvalue::clear_index): New function. |
|
5369 (octave_lvalue::set_index): Rename from octave_lvalue::index. |
|
5370 Change all callers. |
|
5371 |
2976
|
5372 Thu May 15 11:48:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5373 |
2983
|
5374 * pt-select.h, pt-select.cc (class tree_if_command_list, |
|
5375 class tree_if_clause, class tree_switch_case_list, |
|
5376 class tree_switch_case): Move here from pt-misc.h, pt-misc.cc. |
|
5377 * pt-decl.h, pt-decl.cc (class tree_decl_init_list, |
|
5378 class tree_decl_elt): Move here from pt-mist.h, pt-misc.cc |
|
5379 |
|
5380 * pt-arg-list.h, pt-stmt.h: New files, extracted from pt-misc.h. |
|
5381 * pt-arg-list.cc, pt-stmt.cc: New files, extracted from pt-misc.cc. |
|
5382 |
|
5383 * pt-decl.h, pt-except.h, pt-jump.h, pt-loop.h, pt-select.h: |
|
5384 New files, extraced from pt-cmd.h. |
|
5385 * pt-decl.cc, pt-except.cc, pt-jump.cc, pt-loop.cc, pt-select.cc: |
|
5386 New files, extraced from pt-cmd.cc. |
|
5387 |
2980
|
5388 * pt-unop.h, pt-binop.h, pt-colon.h, pt-idx.h, pt-assign.h: |
|
5389 New files, extracted from pt-exp.h |
|
5390 * pt-unop.cc, pt-binop.cc, pt-colon.cc, pt-idx.cc, pt-assign.cc: |
|
5391 New files, extracted from pt-exp.cc |
|
5392 * pt-exp.h, pt-exp.cc: Rename from pt-exp-base.h, pt-exp-base.cc. |
|
5393 |
2979
|
5394 * oct-lvalue.h: Rename from oct-var-ref.h. Rename class from |
|
5395 octave_variable_reference to octave_lvalue. Change all uses. |
|
5396 * oct-lvalue.cc: Rename from oct-var-ref.cc. |
|
5397 |
2978
|
5398 * variables.cc (bind_ans): Only bind ans and print result if value |
|
5399 is defined. |
|
5400 |
2976
|
5401 * defun.cc: New file. Move functions for installing objects in |
|
5402 the symbol table here from variables.cc. |
|
5403 |
|
5404 * oct-obj.h, oct-obj.cc: Add custom allocator, fwiw. |
|
5405 |
|
5406 * toplev.cc (main_loop): Correctly increment command number. |
|
5407 |
|
5408 * TEMPLATE-INST/SLList-tm.cc: Don't instantiate lists of pointers |
|
5409 to tree_matrix_row objects. |
|
5410 * TEMPLATE-INST/SLList-misc.cc: Do instantiate lists of pointers |
|
5411 to tree_argument_list objects. |
|
5412 |
|
5413 * DLD-FUNCTIONS/dassl.cc: Update to use new octave_function |
|
5414 interface to user-supplied functions. |
|
5415 * DLD-FUNCTIONS/fsolve.cc: Likewise. |
|
5416 * DLD-FUNCTIONS/lsode.cc: Likewise. |
|
5417 * DLD-FUNCTIONS/npsol.cc: Likewise. |
|
5418 * DLD-FUNCTIONS/quad.cc: Likewise. |
|
5419 |
|
5420 * dynamic-ld.h, dynamic-ld.cc (builtin_fcn_installer typedef): |
|
5421 Rename from builtin_fcn. |
|
5422 (octave_dynamic_loader::load_fcn_from_dot_oct_file): |
|
5423 Simplify by using new installer function defined by DEFUN_DLD. |
|
5424 |
|
5425 * defun-dld.h (DEFUN_DLD): Use DEFINE_FUN_INSTALLER_FUN instead of |
|
5426 DEFINE_FUN_STRUCT_FUN. |
|
5427 * defun.h (DEFUN_MAPPER): Use DEFUN_MAPPER_INTERNAL. |
|
5428 * defun-int.h (DEFVAR_INTERNAL): Rename from DEFVAR_INT and move |
|
5429 here from defun.h. Change all uses. |
|
5430 (DEFUN_MAPPER_INTERNAL): New macro. |
|
5431 (DEFINE_FUN_INSTALLER_FUN): New macro to define function that the |
|
5432 dynamic loader calls to do all the work of installing a new function. |
|
5433 (DEFINE_FUN_STRUCT_FUN): Delete. |
|
5434 |
|
5435 * parse.y: Rewrite to handle more general expressions. |
|
5436 * lex.l: Corresponding changes. |
|
5437 |
|
5438 * pt-walk.h, pt-pr-code.h, pt-pr-code.cc: Cope with new parse tree |
|
5439 object structure. |
|
5440 |
|
5441 * pt-misc.cc (class tree_for_command): Split into |
|
5442 tree_simple_for_command and tree_complex_for_command classes. |
|
5443 |
|
5444 * pt-misc.h, pt-misc.cc (tree_statement::eval): Handle identifier |
|
5445 lookup and printing and binding ans here. |
|
5446 (tree_statement_list::eval): Simplify. |
|
5447 (tree_argument_list::all_elements_are_constant): New function. |
|
5448 (class tree_decl_elt): Now contains id and expr, not an assignment |
|
5449 expression. |
|
5450 |
|
5451 * pt-exp-base.h pt-exp.h pt-id.h pt-indir.h pt-mat.h pt-const.h, |
|
5452 pt-exp-base.cc pt-exp.cc pt-id.cc pt-indir.cc pt-mat.cc pt-const.cc: |
|
5453 Replace eval functions with rvalue and lvalue functions. |
|
5454 Change all uses. |
|
5455 (lvalue_ok, rvalue_ok): New functions, for future compile-time |
|
5456 semantic checks. |
|
5457 |
|
5458 * oct-var-ref.h (is_defined, is_map): New functions. |
|
5459 |
|
5460 * pt-exp.h (class tree_oct_obj): Delete. |
|
5461 |
|
5462 * variables.cc (extract_function, is_valid_function): Return |
|
5463 pointer to octave_function, not octave_symbol. |
|
5464 (link_to_global_variable): Rewrite. Handle errors in |
|
5465 symbol_record::mark_as_linked_to_global. |
|
5466 |
|
5467 * symtab.h, symtab.cc (class symbol_def, class symbol_record): |
|
5468 Symbols are now stored as octave_value objects only. |
|
5469 |
|
5470 * ov.cc (install_types): Register function types here. |
|
5471 * ov-fcn.h, ov-fcn.cc, ov-builtin.h, ov-builtin.cc, ov-mapper.h, |
|
5472 ov-mapper.cc, ov-usr-fcn.h, ov-usr-fcn.cc: New classes for |
|
5473 functions as values. |
|
5474 * ov.h (class octave_value): Don't derive from octave_symbol. |
|
5475 * oct-fcn.h, oct-fcn.cc, oct-builtin.h, oct-builtin.cc, |
|
5476 oct-mapper.h, oct-mapper.cc, oct-usr-fcn.h, oct-usr-fcn.cc, |
|
5477 oct-sym.h, oct-sym.cc: Delete. |
|
5478 |
2963
|
5479 Sun May 11 17:51:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5480 |
|
5481 * help.cc (Ftype): Make it work again for functions. |
|
5482 |
|
5483 * pt-pr-code.cc (tree_print_code::print_parens): New function. |
|
5484 Use it in other tree_print_code functions to handle printing all |
|
5485 the parens that we found when parsing the expression, not just one |
|
5486 pair. |
|
5487 * pt-exp-base.h (tree_expression::paren_count): Rename from |
|
5488 is_in_parens. |
|
5489 * parse.y (maybe_warn_assign_as_truth_value): Use new name. |
|
5490 |
|
5491 * parse.y (constant): New non-terminal. |
|
5492 (simple_expr1): Use it. |
|
5493 |
|
5494 * parse.y (make_unary_op): Delete. |
|
5495 (simple_expr1): Where appropriate, use make_prefix_op and |
|
5496 make_postfix_op instead of make_unary_op. Allow increment and |
|
5497 decrement ops to work on expressions, not just identifiers. |
|
5498 (make_prefix_op, make_postfix_op): Arg is expression, not identifier. |
|
5499 Handle old unary_op cases too. |
|
5500 (fold (tree_unary_expression *)): Delete. |
|
5501 * pt-exp.h, pt-exp.cc (tree_prefix_expression::eval): Handle unary |
|
5502 minus and not here. |
|
5503 (tree_postfix_expression::eval): Likewise, for transpose and hermitian. |
|
5504 (class tree_prefix_expression, class tree_postfix_expression): |
|
5505 Derive from tree_unary_expression. Delete identifier member. |
|
5506 Delete ident member function. |
|
5507 (tree_unary_expression): Don't handle evaluation here. |
|
5508 * pt-exp-base.h (mark_in_parens): No longer virtual. Return this. |
|
5509 (reference): New virtual function. |
|
5510 (class tree_expression): Don't handle expression type here. |
|
5511 * pt-mvr-base.h (tree_multi_val_ret::tree_multi_val_ret): Likewise. |
|
5512 * pt-mvr.h, pt-mvr.cc (tree_multi_assignment_expression): Likewise. |
|
5513 * pt-walk.h (visit_unary_expression): Delete declaration. |
|
5514 * pt-pr-code.h, pt-pr-code.cc (visit_unary_expression): Delete. |
|
5515 (visit_prefix_expression): Use operand(), not ident(). |
|
5516 new, visit_postfix_expression): |
|
5517 * pt-id.h, pt-id.cc (increment, decrement): Delete. |
|
5518 |
|
5519 * pt-misc.cc (tree_parameter_list::define_from_arg_vector): Get a |
|
5520 reference to each element and use the assignment operator instead |
|
5521 of tree_identifier::define. |
|
5522 * pt-id.h, pt-id.cc (tree_identifier::define): Delete versions |
|
5523 that take octave_value and octave_symbol args. |
|
5524 |
|
5525 Sat May 10 23:32:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5526 |
|
5527 * pt-indir.h, pt-indir.cc (tree_indirect_reference::value): Delete. |
|
5528 |
|
5529 * oct-var-ref.cc (octave_variable_ref::assign): Clear idx after |
|
5530 assignment. |
|
5531 |
2976
|
5532 * octave_value classes: Add is_constant, is_function, and |
|
5533 function_value functions. |
|
5534 |
2963
|
5535 * ov.h, ov.cc (assign): Return void, not reference to octave_value. |
|
5536 (do_index_op): Rename, from index. |
|
5537 (do_struct_elt_index_op): Rename, from struct_elt_val. |
|
5538 Add version that accepts index arg. |
|
5539 Change all uses and derived classes to match. |
|
5540 * pt-const.h (index): Delete. |
|
5541 * oct-var-ref.h, oct-var-ref.cc (value): Handle indexed structure |
|
5542 ops here too. |
|
5543 |
2949
|
5544 Fri May 9 07:40:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5545 |
2958
|
5546 * pt-exp.cc (print_rhs_assign_val, symbols_of_pt_exp): New functions. |
|
5547 (Vprint_rhs_assign_val): New static variable. |
|
5548 (tree_simple_assignment_expression::eval): Use it to optionally |
|
5549 allow the rhs (which is the result) of an assignment to be printed |
|
5550 instead of the left. |
|
5551 |
2955
|
5552 * pt-exp.cc (tree_simple_assignment_expression::eval): Use new |
|
5553 octave_variabl_reference::index function to handle indexing. |
|
5554 |
|
5555 * oct-var-ref.h, oct-var-ref.cc (idx): New data member. |
|
5556 (octave_variable_reference::index): Set it. |
|
5557 (octave_variable_reference::assign): Handle indexing here. |
|
5558 Delete version of this function htat takes index arg. |
|
5559 |
|
5560 * variables.h (struct builtin_varaible): Delete. |
|
5561 * variables.cc (install_builtin_variable): Take all elts of |
|
5562 builtin_variable struct directly. |
|
5563 * defun.h (DEFVAR_INT): Call install_builtin_variable directly. |
|
5564 |
|
5565 * symtab.h, defun-int.h: Don't include variables.h. |
|
5566 |
|
5567 * symtab.h (symbol_record::sv_function): Move typedef here. |
|
5568 * variables.h: From here. |
|
5569 |
|
5570 * oct-var-ref.h, oct-var-ref.cc: New files for |
|
5571 octave_variable_reference class, extracted from variables.h and |
|
5572 variables.cc |
2956
|
5573 * Makefile.in: Add them to the appropriate lists. |
2955
|
5574 |
|
5575 * oct-obj.h (octave_value_list::empty): New function. |
|
5576 |
2949
|
5577 * variables.h (class octave_variable_reference): Rewrite to work |
|
5578 as a proxy class to store a pointer to octave_value and, |
|
5579 optionally, the change function to call and the name of the |
|
5580 structure element we are referencing. Handle assignment, |
|
5581 increment, decrement, and value operations. |
|
5582 |
2956
|
5583 Thu May 8 23:40:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5584 |
2949
|
5585 * ov-re-mat.h, ov-re-mat.cc (struct_elt_ref, struct_elt_val, |
|
5586 assign_struct_elt): Provide functions for looking up and setting |
|
5587 matrix dimensions. |
|
5588 |
|
5589 * symtab.cc (symbol_record::define): Don't call sv_fcn here. |
|
5590 Don't save and restore value here. |
|
5591 (symbol_record::define_builtin_var): Do call sv_fcn here. |
|
5592 (symbol_record::variable_reference): Don't make value unique here. |
|
5593 Return pointer to sv_fcn in octave_variable_reference. |
|
5594 |
|
5595 * pt-misc.cc (tree_parameter_list::initialize_undefined_elements): |
|
5596 Simplify. |
|
5597 |
|
5598 * pt-id.h, pt-id.cc (tree_identifier::reference): Return |
|
5599 octave_variable_reference, not octave_value&. |
|
5600 * symtab.h, symtab.cc (symbol_record::variable_reference): Ditto. |
|
5601 * pt-indir.h, pt-indir.cc (tree_indirect_ref::reference): Ditto. |
|
5602 Simplify too. |
|
5603 |
|
5604 * pt-const.h (tree_constant::reference, tree_constant::value, |
|
5605 tree_constant::assign): Delete unnecessary functions. |
|
5606 * pt-id.h, pt-id.cc (tree_identifier::assign): Ditto. |
|
5607 |
|
5608 * pt-cmd.cc (tree_for_command::do_for_loop_once): Simplify. |
|
5609 |
|
5610 * ov.h, ov.cc, ov-base.h, ov-base.cc, ov-struct.h, ov-struct.cc |
|
5611 (struct_elt_ref): New arg, octave_value* parent. |
|
5612 Allow deferred lookup. Return octave_variable_reference, not |
|
5613 octave_value&. |
|
5614 |
|
5615 * ov.h, ov.cc, ov-re-mat.h, ov-re-mat.cc (assign_struct_elt): |
|
5616 New virtual functions. |
|
5617 |
|
5618 * ov.h, ov.cc (Vresize_on_range_error): Now static. |
|
5619 |
|
5620 * pt-mvr.cc (tree_index_expression::eval): Delete redundant check |
|
5621 of error_state. |
|
5622 |
2944
|
5623 Wed May 7 21:17:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5624 |
|
5625 * input.cc (generate_completion): Rename from command_generator. |
|
5626 Use string objects instead of char*. |
|
5627 (generate_possible_completions): Let qsort also make matches unique. |
|
5628 (initialize_command_input): Register generate_completion with the |
|
5629 command_editor class. |
|
5630 (completion_matches): Simplify using generate_completion. |
|
5631 |
|
5632 * pt-pr-code.cc (tree_print_code::visit_constant): For val, call |
|
5633 print_raw, not print. |
|
5634 |
|
5635 * oct-usr-fcn.h (octave_user_function::argn_sr): New data member. |
|
5636 (octave_user_function::install_automatic_vars): Rename from |
|
5637 install_nargin_and_nargout. |
|
5638 (octave_user_function::bind_automatic_vars): Rename from |
|
5639 bind_nargin_and_nargout. |
|
5640 * oct-usr-fcn.cc (octave_user_function::eval): Extract arg names |
|
5641 from args vector and bind them to argn. |
|
5642 * oct-obj.h (octave_value_list::names): New data member. |
|
5643 * oct-obj.cc (octave_value_list::stash_name_tags): New function. |
|
5644 (octave_value_list::name_tags): Ditto. |
|
5645 * pt-const.h, pt-const.cc (tree_constant::print_raw): New function. |
|
5646 * pt-misc.h, pt-misc.cc (tree_argument_list::get_arg_names): |
|
5647 New function. |
|
5648 * pt-mvr.h, pt-mvr.cc (class index_expression): Cache arg names. |
|
5649 * toplev.cc (feval): Now static. Handle arg names. |
|
5650 |
|
5651 * mkops: Cope with moving files defining operators to OPERATORS |
|
5652 subdirectory. |
|
5653 |
2937
|
5654 Tue May 6 00:48:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5655 |
|
5656 * DLD-FUNCTIONS/getgrent.cc: Use new octave_group class. |
|
5657 * DLD-FUNCTIONS/getpwent.cc: Use new octave_passwd class. |
|
5658 |
|
5659 * syscalls.cc: Simplify by using new functions defined in |
|
5660 liboctave/oct-syscalls.cc. |
|
5661 |
|
5662 * file-io.cc (Ftmpnam): Accept DIR and PREFIX args. |
|
5663 |
2929
|
5664 Mon May 5 00:54:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5665 |
2932
|
5666 * ov-str-mat.cc (octave_char_matrix_str::print_name_tag): Print |
|
5667 empty strings on one line. |
|
5668 |
2929
|
5669 * DLD-FUNCTIONS, OPERATORS, and TEMPLATE-INST: New subdirectories. |
|
5670 Move appropriate files to new directories. |
|
5671 * Makefile.in: Add DLD-FUNCTIONS, OPERATORS, and TEMPLATE-INST |
|
5672 directories to VPATH. Fix rules to work with new directory |
|
5673 structure. |
|
5674 |
2927
|
5675 Sun May 4 22:40:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5676 |
|
5677 * input.cc (initialize_command_input): Rename from |
|
5678 initialize_readline. |
|
5679 (gnu_readline, octave_gets, get_user_input): Simplify, return |
|
5680 string, not char *. |
|
5681 |
|
5682 * Many of other files: Miscellaneous changes to go along with the |
|
5683 changes described in the liboctave/ChangeLog for May 4. More code |
|
5684 moved from here to liboctave. |
|
5685 |
|
5686 Fri May 2 19:50:33 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5687 |
|
5688 * pathlen.h: Move to ../liboctave. |
|
5689 |
2921
|
5690 Thu May 1 21:50:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5691 |
|
5692 * variables.cc (get_struct_elts): New fucntion. |
|
5693 (looks_like_struct, generate_struct_completions): Move here from |
|
5694 input.cc, rewrite, and make work again. |
|
5695 |
2916
|
5696 Wed Apr 30 00:24:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5697 |
|
5698 * ov-base.h, ov-bool-mat.cc, ov-bool-mat.h, ov-bool.cc, ov-bool.h, |
|
5699 ov-ch-mat.cc, ov-ch-mat.h, ov-complex.cc, ov-complex.h, |
|
5700 ov-cx-mat.cc, ov-cx-mat.h, ov-file.cc, ov-file.h, ov-list.cc, |
|
5701 ov-range.cc, ov-range.h, ov-re-mat.cc, ov-re-mat.h, ov-scalar.cc, |
|
5702 ov-scalar.h, ov-str-mat.cc, ov-struct.cc, ov.h (scalar_value): |
|
5703 New function. Same as double_value, but name is consistent with |
|
5704 octave_scalar class. |
|
5705 |
|
5706 * op-fil-b.cc, op-fil-cm.cc, op-fil-lis.cc, op-fil-rec.cc, |
|
5707 op-fil-str.cc, op-fil-bm.cc, op-fil-cs.cc, op-fil-m.cc, |
|
5708 op-fil-s.cc: New files. |
|
5709 |
|
5710 * ops.h (ASSIGNOPDECL, DEFASSIGNOP, DEFASSIGNOP_FN, CONVDECL, |
|
5711 DEFCONV, BINOPDECL, DEFBINOPX, DEFBINOP, DEFBINOP_OP, DEFBINOP_FN, |
|
5712 BINOP_NONCONFORMANT): New macros. |
|
5713 * op-b-b.cc, op-bm-bm.cc, op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, |
|
5714 op-cm-s.cc, op-cs-cm.cc, op-cs-cs.cc, op-cs-m.cc, op-cs-s.cc, |
|
5715 op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, op-s-cm.cc, |
|
5716 op-s-cs.cc, op-s-m.cc, op-s-s.cc, op-str-str.cc: Use them. |
|
5717 |
|
5718 * Makefile.in (octave): Also depend on ops.o. |
|
5719 |
|
5720 * builtins.h: Delete. |
|
5721 * octave.cc: Add extern declaration here. |
|
5722 |
|
5723 * mappers.h: Delete. |
|
5724 * Makefile.in (INCLUDES): Delete from list. |
|
5725 * mkbuiltins: Add extern declaration in builtins.cc. |
|
5726 |
|
5727 * mkops: New file. |
|
5728 * ops.cc: Delete. |
|
5729 * Makefile.in (SOURCES): Delete from the list. |
|
5730 (ops.cc): New target. |
|
5731 (OP_SOURCES): New list. Move all op-*.cc files here from SOURCES. |
|
5732 Add $(OP_SOURCES) to SOURCES list. |
|
5733 |
|
5734 * variables.cc (symbols_of_variables): No longer static. |
|
5735 * ov.cc (symbols_of_ov): Rename from symbols_of_value. |
|
5736 |
|
5737 * ov-base.h: Delete declaration for install_base_type_conversions. |
|
5738 * op-b-b.h, op-bm-bm.h, op-cm-cm.h, op-cm-cs.h, op-cm-m.h, |
|
5739 op-cm-s.h, op-cs-cm.h, op-cs-cs.h, op-cs-m.h, op-cs-s.h, |
|
5740 op-m-cm.h, op-m-cs.h, op-m-m.h, op-m-s.h, op-s-cm.h, op-s-cs.h, |
|
5741 op-s-m.h, op-s-s.h, op-str-str.h: Delete. |
|
5742 * Makefile.in (INCLUDES): Delete them from the list. |
|
5743 |
|
5744 Tue Apr 29 22:27:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5745 |
|
5746 * variables.h, variables.cc (install_builtin_variables): Delete. |
|
5747 * mkbuiltins: Also generate install_builtin_variables function. |
|
5748 * Makefile.in: Fix rule to call mkbuiltins with correct args. |
|
5749 (clean): Also delete def-files and var-files. |
|
5750 * defaults.h.in, dirfns.h, error.h, file-io.h, help.h, input.h, |
|
5751 lex.h, load-save.h, oct-usr-fcn.h, pager.h, parse.h, pr-output.cc, |
|
5752 pr-output.h, pt-mat.h, pt-misc.h, pt-plot.h, toplev.h: |
|
5753 Delete declarations of symbols_of_* functions. |
|
5754 * data.h, syscalls.h: Delete. |
|
5755 |
|
5756 * pr-output.cc (octave_print_internal): Leave printing of final |
|
5757 new line up to the caller. |
|
5758 |
|
5759 * ov.h, ov.cc (reset_indent_level, increment_indent_level, |
|
5760 decrement_indent_level, newline, indent, reset, |
|
5761 curr_print_indent_level, beginning_of_line): |
|
5762 New functions and static data to manage indent level for printing. |
|
5763 (print_as_scalar): Delete. |
|
5764 (print, print_with_name): Always require stream arg. |
|
5765 Change all callers. |
|
5766 |
|
5767 * oct-stream.h (octave_stream::input_stream): Make publicly available. |
|
5768 (octave_stream::output_stream): Likewise. |
|
5769 |
|
5770 * ov-base.h, ov-base.cc, ov.h, ov.cc, ov-file.h ov-base.h |
|
5771 (is_file, stream_value, stream_number): New functions. |
|
5772 * ov-file.h, ov-file.cc: New files for value class to manage files. |
|
5773 * file-io.cc (symbols_of_file_io): Define stdin, stdout, and |
|
5774 stderr as octve_file objects, not just integers. |
|
5775 (Ffopen, Fpopen): Return octave_file objects, not integer file ids. |
|
5776 * syscalls.cc (Fpipe): Likewise. |
|
5777 * oct-stream.h, oct-stream.cc (octave_stream_list::insert): |
|
5778 Return octave_file object, not integer file id. |
|
5779 |
|
5780 * ov-base.cc, ov-bool-mat.cc, ov-bool.cc, ov-ch-mat.cc, |
|
5781 ov-complex.cc, ov-cx-mat.cc, ov-file.cc, ov-list.cc, ov-range.cc, |
|
5782 ov-re-mat.cc, ov-scalar.cc, ov-str-mat.cc, ov-struct.cc, ov.cc |
|
5783 (print_name_tag, print_raw): New functions. |
|
5784 |
|
5785 * help.cc (Ftype): Don't cast symbol definition to tree_constant *. |
|
5786 |
|
5787 * variables.cc (link_to_global_variable): Don't try to define |
|
5788 symbol with tree_constant objects. |
|
5789 (bind_ans): Call symbol_record::define directly and then |
|
5790 octave_value::print_with_name instead of creating a temporary |
|
5791 assignment expression. |
|
5792 |
|
5793 * pt-pr-code.cc (tree_print_code::indent): Don't use ostream::form. |
|
5794 |
|
5795 * pt-exp-base.h, pt-exp.h, pt-exp.cc (oper): Return string, not |
|
5796 char *. Change all where necessary. |
|
5797 |
|
5798 Mon Apr 28 16:33:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5799 |
|
5800 * ov.h (octave_value binary_op enum): Add lshift and rshift. |
|
5801 (octave_value assign_op enum): Add lshift_eq and rshift_eq. |
|
5802 * ov.cc (assign_op_as_string, binary_op_as_string): Include them. |
|
5803 * parse.y (LSHIFT_EQ RSHIFT_EQ LSHIFT RSHIFT): New tokens. |
|
5804 Add them to the precedence list. |
|
5805 (simple_expr): Add new operators. |
|
5806 (make_assign_op, make_binary_op): Handle new operators. |
|
5807 * lex.l: Recognize new operators. |
|
5808 |
|
5809 * lex.l: Recognize them. |
|
5810 |
|
5811 Sun Apr 27 20:17:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2898
|
5812 |
|
5813 * pt-misc.cc (Vsilent_functions, silent_functions): |
|
5814 Move here from oct-usr-fcn.cc. |
|
5815 (symbols_of_pt_misc): New function. DEFVAR silent_functions. |
|
5816 (tree_statement_list::eval): Handle Vsilent_functions here instead |
|
5817 of in octave_user_function::eval. |
|
5818 (tree_statement::eval): New functions. |
|
5819 (tree_statement_list::eval): Use them. |
|
5820 Change print flag arg to silent flag. Change all callers. |
|
5821 * variables.cc (install_builtin_variables): Call symbols_of_pt_misc. |
|
5822 * toplev.cc (parse_and_execute): Delete print arg. Change all callers. |
|
5823 (eval_string): Change print flag arg to silent flag. Change callers. |
|
5824 |
|
5825 * dynamic-ld.h, dynamic-ld.cc: Rewrite to use singleton class. |
|
5826 * variables.cc (load_fcn_from_file): Use new dynamic linking class. |
|
5827 |
2893
|
5828 * dynamic-ld.h (Octave_builtin_fcn): Delete typedef. |
|
5829 * dynamic-ld.cc: Simplify via the magic of function pointers. |
|
5830 |
|
5831 * pt-fcn.h pt-fcn.cc pt-fvc.h pt-fvc.cc pt-fvc-base.h pt-fvc-base.cc: |
|
5832 Delete obsolete files. |
|
5833 * Makefile.in: Remove them from various lists. |
|
5834 |
|
5835 * pt-walk.h (visit_octave_user_function): Rename from visit_function. |
|
5836 (visit_builtin): Delete. |
|
5837 * pt-pr-code.h, pt-pr-code.cc (visit_octave_user_function): |
|
5838 Rename from visit_function. |
|
5839 (visit_octave_user_function_header): Rename from visit_function_header. |
|
5840 (visit_octave_user_function_trailer): Rename from |
|
5841 visit_function_trailer. |
|
5842 |
|
5843 * ov.h, ov.cc (eval): New functions. |
|
5844 |
|
5845 * dassl.cc, fsolve.cc, lsode.cc, npsol.cc, qpsol.cc, quad.cc: |
|
5846 Declare user-defined functions as a pointer to an octave_symbol |
|
5847 object, not as a pointer to a tree_fvc object. |
|
5848 |
|
5849 * symtab.h, symtab.cc: Use new octave_symbol class. |
|
5850 * variables.cc (install_builtin_function, install_builtin_mapper, |
|
5851 install_builtin_variable, install_builtin_variable_as_function): |
|
5852 Make work with new octave_symbol class and symbol table structure. |
|
5853 |
|
5854 * variables.h: Delete declaration of builtin_function struct. |
|
5855 * defun-dld.h (DEFUN_DLD): Simplify. |
|
5856 * defun-int.h (DEFINE_FUN_STRUCT): Delete. |
|
5857 (DEFINE_FUN_STRUCT_FUN): Rewrite to not use static builtin_function |
|
5858 object. |
|
5859 |
|
5860 * mappers.h: Delete declaration of builtin_mapper_function struct. |
|
5861 * mappers.cc: Declare wrapper functions static. |
|
5862 * defun.h (DEFUN_MAPPER): Simplify. |
|
5863 |
|
5864 * oct-sym.h: New file. Declare base class for Octave symbols. |
|
5865 * ov.h: Derive octave_value class from octave_symbol. |
|
5866 * oct-fcn.h, oct-fcn.cc: New files to declare and define |
|
5867 base class for functions. |
|
5868 * oct-builtin.h, oct-builtin.cc: New files to declare and define |
|
5869 class for built-in functions. |
|
5870 * oct-mapper.h, oct-mapper.cc: New files to declare and define |
|
5871 class for mapper functions. |
|
5872 * oct-usr-fcn.h, oct-usr-fcn.cc: New files to declare and define |
|
5873 base class for user-defined functions. |
|
5874 * Makefile.in: Add new files to appropriate lists. |
|
5875 |
|
5876 * pt-id.h, pt-id.cc: Move tree_identifier class here. |
|
5877 * pt-fvc.h, pt-fvc.cc: From here. |
|
5878 |
|
5879 * pt-indir.h, pt-indir.cc: Move tree_indirect_ref class here. |
|
5880 * pt-fvc.h, pt-fvc.cc: From here. |
|
5881 |
2881
|
5882 Thu Apr 24 03:58:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5883 |
2884
|
5884 * parse.y (magic_colon): New nonterminal. |
|
5885 (arg_list): Simplify using magic_colon. |
|
5886 |
2883
|
5887 * lex.h (class lexical_feedback): Delete maybe_screwed field. |
|
5888 New field, parsed_function name. |
|
5889 * lex.l (lexical_feedback::init): Initialize it. |
|
5890 (handle_identifier): Don't return SCREW. Handle switching |
|
5891 symbol table context properly for `function f ()' vs `function x ='. |
|
5892 (is_keyword): If looking at function keyword, don't set current |
|
5893 symbol table to point to the local table. |
|
5894 * parse.y (recover_from_parsing_function): New function. |
|
5895 (finish_function_def): Use identifier, not token. |
|
5896 Simplify parsing of functions. |
|
5897 |
|
5898 * ov-list.h, ov-list.cc: New files to implement generic list type. |
|
5899 * ov.cc (list_indent): New global variable. |
|
5900 (increment_list_indent, decrement_list_indent): New functions. |
|
5901 (install_types): Register octave_list type. |
|
5902 * ov-base.cc (octave_base_value::is_list): New function. |
|
5903 |
2881
|
5904 * oct-sym.h: New file. |
|
5905 * ov.h (class octave_value): Derive from octave_symbol class. |
|
5906 |
|
5907 * pt-const.h, pt-const.cc: Delete lots of old useless cruft. |
|
5908 |
|
5909 * pt-exp.h, pt-exp.cc (tree_binary_expression): Use type codes for |
|
5910 operators from octave_value instead of repeating them here. |
|
5911 |
|
5912 * pt-fvc-base.cc (tree_fvc::increment, tree_fvc::decrement): Delete. |
|
5913 * pt-fvc.cc (tree_identifier::increment): Get reference to value |
|
5914 and increment that instead of using virutal tree_fvc::increment |
|
5915 function. |
|
5916 |
|
5917 * lex.l: Handle +=, -=, *=, /=, .+=, .-=, .*=, ./=, &=, and |= ops. |
2883
|
5918 * parse.y (make_assign_op): Rename from make_simple_assignment and |
|
5919 handle different op types. |
|
5920 (simple_expr1): Do new ops. |
2881
|
5921 * pt-misc.cc (initialize_undefined_elements): Pass op to assign. |
|
5922 * pt-cmd.cc (tree_for_command::do_for_command_once): Likewise. |
|
5923 * pt-fvc.cc (tree_identifier::assign): Pass op. |
|
5924 * pt-exp.cc (tree_simple_assignment_expression): Handle new ops. |
|
5925 * variables.cc (octave_variable_reference::assign): Likewise. |
|
5926 * ov.h (class octave_value): Likewise. |
|
5927 * ov.cc (octave_value::assign_op_as_string): New function. |
|
5928 (octave_value::assign, octave_value::convert_and_assign, |
|
5929 octave_value::try_assignment_with_conversion, |
|
5930 octave_value::try_assignment): Pass op. |
|
5931 * pt-pr-code.cc (tree_print_code::visit_simple_assignment_expression): |
|
5932 Use expr.oper() instead of printing "=". |
|
5933 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-m-m.cc, |
|
5934 op-m-s.cc, op-str-str.cc: Pass op to INSTALL_ASSIGNOP. |
|
5935 * ops.h (INSTALL_ASSIGNOP): Pass op. |
2883
|
5936 * ov-typeinfo.cc (do_register_assign_op): Include op type in table. |
|
5937 (do_lookup_assign_op): Use op in lookup. |
2881
|
5938 |
|
5939 * ops.h (INSTALL_UNOP): Delete. |
|
5940 |
|
5941 * input.cc (generate_struct_completions, looks_like_struct): |
|
5942 Disable, since they don't work now anyway. |
|
5943 |
|
5944 * help.cc (Ftype): Work with octave_value instead of a pointer to |
|
5945 tree_constant. |
|
5946 * symtab.cc (symbol_record_info::symbol_record_info): Likewise. |
|
5947 |
|
5948 |
|
5949 Tue Apr 22 22:59:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5950 |
|
5951 * file-io.cc (Ffprintf): If first arg is a string, assume FID = 1. |
|
5952 |
|
5953 Fri Apr 18 20:16:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5954 |
|
5955 * oct-obj.h, oct-obj.cc: Implement octave_value_list with |
|
5956 Array<octave_value> as a data member, not as a class derived from |
|
5957 Array<octave_value>. |
|
5958 (octave_value_list::length, octave_value_list::resize, |
|
5959 octave_value_list::prepend, octave_value_list::append, |
|
5960 octave_value_list::reverse): New functions. |
|
5961 |
|
5962 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
5963 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
5964 op-s-cm.cc, op-s-m.cc: Use new bool ops from liboctave instead of |
|
5965 the macros defined in ops.h. |
|
5966 |
2865
|
5967 Thu Apr 17 13:12:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5968 |
|
5969 * parse.y (ABORT_PARSE): Handle forced_interactive the same as |
|
5970 interactive. |
|
5971 |
|
5972 Mon Apr 14 01:46:50 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5973 |
|
5974 * input.cc (octave_read): Don't forget to free input buffer if it |
|
5975 exists and has zero length. |
|
5976 (gnu_readline): Free buf if fgets returns 0. |
|
5977 |
|
5978 Wed Apr 9 00:03:57 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5979 |
|
5980 * time.cc (mk_tm_map): Only set zone field if HAVE_TM_ZONE or |
|
5981 HAVE_TZNAME are defined. |
|
5982 |
|
5983 Tue Apr 8 12:39:21 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5984 |
|
5985 * time.cc (extract_tm): Set tm.tm_zone if HAVE_TM_ZONE is defined, |
|
5986 not if HAVE_TMZONE is defined. |
|
5987 |
|
5988 * Makefile.in (%.oct : %.o): Use $(SH_LD), not $(CXX). |
|
5989 |
|
5990 Wed Apr 2 21:32:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5991 |
|
5992 * dynamic-ld.cc, dynamic-ld.h (init_dynamic_linker): Delete |
|
5993 function and declaration. |
|
5994 * octave.cc (main): Don't call it. |
|
5995 |
2856
|
5996 Mon Mar 31 00:37:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
5997 |
2859
|
5998 * pt-base-exp.h (tree_expression::eval): Give arg a default value. |
|
5999 * pt-const.h (tree_constant::eval): Likewise. |
|
6000 * pt-exp.h (tree_prefix_expression::eval, tree_colon_expression::eval, |
|
6001 tree_postfix_expression::eval, tree_unary_expression::eval, |
|
6002 tree_binary_expression::eval, tree_boolean_expression::eval, |
|
6003 tree_simple_assignment_expression::eval): Likewise. |
|
6004 * pt-fcn.h (tree_function::eval): Likewise. |
|
6005 * pt-fvc.h (tree_identifier::eval, tree_indirect_ref::eval, |
|
6006 tree_builtin::eval): Likewise. |
|
6007 * pt-mat.h (tree_matrix::eval): Likewise. |
|
6008 * pt-misc.h (tree_statement_list::eval): Likewise. |
|
6009 * pt-mvr-base.h (tree_multi_val_ret::eval): Likewise. |
|
6010 * pt-mvr.h (tree_oct_obj::eval, tree_index_expression::eval, |
|
6011 tree_multi_assignment_expression::eval): Likewise. |
|
6012 * dassl.cc, fsolve.cc, load-save.cc, lsode.cc, npsol.cc, parse.y, |
|
6013 pt-cmd.cc, pt-exp-base.cc, pt-exp.cc, pt-fvc.cc, pt-mat.cc, |
|
6014 pt-misc.cc, pt-mvr.cc, pt-plot.cc, quad.cc, toplev.cc, variables.cc: |
|
6015 Change callers of eval() to use bool instead of int and to make |
|
6016 use of default argument value. |
|
6017 |
|
6018 * toplev.h, toplev.cc (parse_and_execute, eval_string): Flag args |
|
6019 are now bool instead of int. |
|
6020 |
2856
|
6021 * symtab.h, symtab.cc: Use bool instead of int in more places. |
|
6022 * variables.h, variables.cc: Likewise. |
2857
|
6023 * lex.h, lex.l: Likewise. |
|
6024 * parse.y: Likewise. |
2856
|
6025 * help.cc, input.cc, lex.l, load-save.cc, parse.y, pt-fcn.cc: |
|
6026 Change callers of symbol_table::lookup to use bool instead of int, |
|
6027 and to make use of default arguments. |
|
6028 |
2850
|
6029 Fri Mar 28 15:33:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6030 |
2852
|
6031 * parse.y (Vwarn_comma_in_declaration): Delete. |
|
6032 (symbols_of_parse): Delete DEFVAR for warn_comma_in_declaration. |
|
6033 (decl1): Don't allow commas in declarations. |
|
6034 |
2850
|
6035 * lsode.cc (struct LSODE_OPTIONS): Handle integer options. |
|
6036 (print_lsode_option_list, set_lsode_option, show_lsode_option): Ditto. |
|
6037 (lsode_option_table): Add element for step limit. |
|
6038 (lsode_user_jacobian): New function. |
|
6039 (Flsode): Allow function name arg to be a 2-element string array |
|
6040 specifying the function and jacobian function. |
|
6041 |
|
6042 * variables.cc (get_global_value, set_global_value): New functions. |
|
6043 |
2846
|
6044 Wed Mar 26 17:08:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6045 |
|
6046 Implement static variable declaration: |
|
6047 |
|
6048 * lex.l (is_keyword): Handle static. |
|
6049 * octave.gperf: Likewise. |
|
6050 * parse.y (Vwarn_comma_in_declaration): Rename from |
|
6051 Vwarn_comma_in_global_decl. |
|
6052 Handle new static command. |
|
6053 * pt-cmd.h, pt-cmd.cc (class tree_decl_command): New base class |
|
6054 for static and global declaration commands. |
|
6055 (class tree_global_command): Derive from tree_decl_command. |
|
6056 (class tree_static_command): New class, derived from tree_decl_command. |
|
6057 * pt-fvc.cc, pt-fvc.h (tree_identifier::mark_as_static): New function. |
|
6058 * pt-misc.h, pt-misc.h (class tree_decl_elt): Rename from tree_global. |
|
6059 (class tree_decl_init_list): Rename from tree_global_init_list. |
|
6060 * pt-pr-code.cc, pt-pr-code.h (tree_print_code::visit_decl_command): |
|
6061 Rename from visit_global_command. |
|
6062 (tree_print_code::visit_decl_elt): Rename from visit_global. |
|
6063 (tree_print_code::visit_decl_init_list): Rename from |
|
6064 visit_global_init_list. |
|
6065 * pt-walk.h (tree_walker::visit_decl_command): Rename from |
|
6066 visit_global_command. |
|
6067 (tree_walker::visit_decl_elt): Rename from visit_tree_global. |
|
6068 (tree_walker::visit_decl_init_list): Rename from |
|
6069 visit_global_init_list. |
|
6070 * variables.cc (link_to_global_variable): Trying to make a static |
|
6071 variable global is an error. |
|
6072 * SLList-misc.cc: Instantiate lists of pointers to tree_decl_elt |
|
6073 objects, not tree_global objects. |
|
6074 * symtab.h, symtab.cc (symbol_record::tagged_static): New field. |
|
6075 (symbol_record::mark_as_static, symbol_record::is_static): |
|
6076 New functions. |
|
6077 * symtab.cc (symbol_record::init_state): Initialize tagged_static. |
|
6078 (symbol_record::clear): Don't clear static variables. |
|
6079 * symtab.cc (push_context): Don't do anything for static variables. |
|
6080 |
2825
|
6081 Tue Mar 25 17:17:17 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6082 |
2881
|
6083 * ov-bool-mat.cc, ov-bool-mat.h, ov-bool.cc, ov-bool.h: New files. |
2832
|
6084 |
2831
|
6085 * defaults.cc (symbols_of_defaults): DEFCONST OCTAVE_HOME. |
|
6086 |
|
6087 * toplev.cc (octave_config_info): Delete use of CXXLIBS. |
|
6088 * oct-conf.h.in: Ditto. |
|
6089 |
2830
|
6090 * octave.cc (maximum_braindamage): Don't bind prefer_zero_one_indexing. |
|
6091 * ov.h: Don't declare Vprefer_zero_one_indexing. |
|
6092 * ov.cc: Don't define Vprefer_zero_one_indexing. |
|
6093 (prefer_zero_one_indexing): Delete. |
|
6094 (symbols_of_value): Delete DEFVAR for prefer_zero_one_indexing. |
|
6095 |
2825
|
6096 * ov.h, ov.cc, ov-base.h, ov-base.cc: Add constructors and |
|
6097 extractors for bool and boolMatrix types. |
|
6098 |
|
6099 * ov.cc (install_types): Register octave_bool and |
|
6100 octave_bool_matrix types. |
|
6101 |
|
6102 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
6103 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
6104 op-s-cm.cc, op-s-m.cc, op-s-s.cc, ov-re-mat.cc: |
|
6105 Return boolMatrix instead of Matrix object. |
|
6106 * ops.h (BOOL_OP3, MX_MX_BOOL_OP): Likewise. |
|
6107 |
|
6108 * op-b-b.h, op-b-b.cc, op-bm-bm.h, op-bm-bm.cc: New files. |
|
6109 * Makefile.in: Add them to the lists. |
|
6110 * ops.cc: Include header files here. |
|
6111 (install_ops): Call install_b_b_ops() and install_bm_bm_ops() here. |
|
6112 |
|
6113 * variables.cc (symbols_of_variables): Don't rely on default |
|
6114 conversion from int to double for value returned from |
|
6115 default_history_size(). |
|
6116 |
|
6117 * pr-output.cc: Include cstdio. |
|
6118 |
|
6119 * parse.y (param_list_end): Fix typo in last change. |
|
6120 |
|
6121 * quad.cc (quad): Cast integer return values to double. |
|
6122 * npsol.cc (show_npsol_option): Likewise. |
|
6123 * qpsol.cc (show_qpsol_option): Likewise. |
|
6124 * file-io.cc (Fsprintf, Ffwrite): Likewise. |
|
6125 |
|
6126 Mon Mar 24 13:11:47 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6127 |
|
6128 * ov-typeinfo.cc (typeinfo): If invoked with an argument, return |
|
6129 the type of the argument as a string. Fix doc string. |
|
6130 |
2821
|
6131 Thu Mar 20 14:47:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6132 |
|
6133 * mk-oct-links (links_dir): Don't use -h option for grep. It's |
|
6134 not needed since we are working on one file at a time anyway. |
|
6135 |
2819
|
6136 Mon Mar 17 10:53:29 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6137 |
|
6138 * lex.l (handle_identifier): When handling indirect_ref, set |
|
6139 lexer_flags.quote_is_transpose to 1 so that a.b' to work as |
|
6140 expected. |
|
6141 |
|
6142 * parse.y (param_list_beg, param_list_end): New nonterminals. |
|
6143 (param_list, param_list1): Use them. |
|
6144 |
2811
|
6145 Wed Mar 12 16:57:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6146 |
|
6147 * Makefile.in (install-strip): New target. |
|
6148 |
2806
|
6149 Mon Mar 10 22:38:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6150 |
|
6151 * Makefile.in (clean): Delete .oct files too. |
|
6152 |
|
6153 * toplev.cc (Vdefault_eval_print_flag): New static variable. |
|
6154 (eval_string): New arg, print. |
|
6155 (Feval): Pass Vdefault_eval_print_flag to eval_string. |
|
6156 (default_eval_print_flag): New function. |
|
6157 (symbols_of_toplev): New function. |
|
6158 |
|
6159 * variables.cc (install_builtin_variables): Call it. |
|
6160 |
|
6161 * pt-exp.h, pt-exp.cc (class tree_boolean_expression): Rename enum |
|
6162 fields `and' and `or' to `bool_and' and `bool_or'. |
|
6163 (tree_unary_expression): Rename enum field `not' to `unot'. |
|
6164 (class tree_binary_expression): Rename enum fields `and' and `or' |
|
6165 to `el_and' and `el_or'. |
|
6166 * parse.y: Change all uses. |
|
6167 |
|
6168 * time.cc (extract_tm): Truncate field values instead of rounding. |
|
6169 (gmtime, localtime): Likewise, for timeval. |
|
6170 |
|
6171 * ov.h (class octave_value): Delete unused variable freeptr. |
|
6172 |
|
6173 * mappers.cc: Delete functions that are already in |
|
6174 liboctave/lo-mappers.cc. |
|
6175 |
|
6176 * oct-strstrm.cc (octave_base_strstream::tell): Use const_cast, |
|
6177 not static_cast. |
|
6178 |
|
6179 * help.cc (help_from_list): Add missing const qualifiers. |
|
6180 * help.h (struct help_list): Likewise. |
|
6181 * lex.l (match_any, plot_style_token): Likewise. |
|
6182 * load-save.cc (extract_keyword, ascii_save_type): Likewise. |
|
6183 * oct-hist.cc (mk_tmp_hist_file): Likewise. |
|
6184 * octave.cc (execute_startup_files): Likewise. |
|
6185 * octave.gperf (struct octave_kw): Likewise. |
|
6186 * pr-output.cc (pr_any_float): Likewise. |
|
6187 * pt-mvr.cc (tree_index_expression::eval_error): Likewise. |
|
6188 * pt-exp-base.h, pt-exp.h, pt-exp.cc: Likewise. |
|
6189 * parse.y: Likewise. |
|
6190 |
2800
|
6191 Sun Mar 9 03:46:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6192 |
2806
|
6193 * pt-exp-base.h (tree_expression): Delete extra comma at end of list. |
|
6194 |
|
6195 * dirfns.cc error.cc file-io.cc fsolve.cc input.cc load-save.cc |
|
6196 npsol.cc pt-fcn.cc qpsol.cc quad.cc syscalls.cc toplev.cc |
|
6197 variables.cc: Eliminate embedded newlines in string constants. |
|
6198 |
|
6199 * Map.cc, data.cc, dirfns.cc, dynamic-ld.cc, file-io.cc, |
|
6200 fsolve.cc, getgrent.cc, getpwent.cc, getrusage.cc, help.cc, |
|
6201 input.cc, load-save.cc, mappers.cc, minmax.cc, npsol.cc, |
|
6202 oct-fstrm.cc, oct-procbuf.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
6203 oct-stream.cc, oct-stream.h, oct-strstrm.cc, octave.cc, |
|
6204 ov-base.h, ov-range.cc, ov-typeinfo.cc, ov.cc, pr-output.cc, |
|
6205 pt-cmd.cc, pt-exp.cc, pt-fcn.cc, pt-fvc.cc, pt-mat.cc, |
|
6206 pt-misc.cc, pt-plot.cc, qpsol.cc, quad.cc, sort.cc, strfns.cc, |
|
6207 symtab.cc, syscalls.cc, sysdep.cc, time.cc, toplev.cc, |
|
6208 unwind-prot.cc, unwind-prot.h, variables.cc, xpow.cc: |
|
6209 Use `static_cast<T> (val)' instead of old C-style `(T) val' casts. |
2800
|
6210 |
2799
|
6211 Sat Mar 8 02:35:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6212 |
|
6213 * load-save.cc (save_ascii_data, save_three_d): Where appropriate, |
|
6214 use bool instead of int. |
|
6215 (save_binary_data, save_mat_binary_data, save_ascii_data): |
|
6216 Print warning instead of error for wrong type arg. |
|
6217 |
|
6218 * gripes.cc (gripe_wrong_type_arg): New arg, is_error. |
|
6219 |
|
6220 * pt-plot.cc (save_in_tmp_file): Call save_ascii_data with bool |
|
6221 arg, not int. |
|
6222 |
2797
|
6223 Fri Mar 7 00:56:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6224 |
|
6225 * dassl.cc (show_dassl_option): For values that are determined |
|
6226 automatically, return a string instead of a magic value (-1.0). |
|
6227 * fsolve.cc (show_fsolve_option): Likewise. |
|
6228 * lsode.cc (show_lsode_option): Likewise. |
|
6229 * npsol.cc (show_npsol_option): Likewise. |
|
6230 * qpsol.cc (show_qpsol_option): Likewise. |
|
6231 |
|
6232 * variables.cc (extract_function): New function. |
|
6233 * dassl.cc (Fdassl): Use it instead of is_valid_function. |
|
6234 * fsolve.cc (Ffsolve): Likewise. |
|
6235 * npsol.cc (Fnpsol): Likewise. |
|
6236 * qpsol.cc (Fqpsol): Likewise. |
|
6237 * quad.cc (Fquad): Likewise. |
|
6238 |
2795
|
6239 Thu Mar 6 20:07:24 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6240 |
|
6241 * sighandlers.cc (my_friendly_exit, octave_new_handler, |
|
6242 sigfpe_handler, sigpipe_handler): Don't all error() or warning(). |
|
6243 |
|
6244 * pager.cc (pager_death_handler): Don't try to clear pager, just |
|
6245 print message to cerr. |
|
6246 (do_sync): If the status of the pager is bad or it looks like it |
|
6247 is dead, restore the interrupt handler. |
|
6248 |
|
6249 * load-save.cc (extract_keyword (istream&, char*, int&)): |
|
6250 Move declaration of buf inside loop, to avoid deleting its guts |
|
6251 and then trying to reuse it. |
|
6252 (extract_keyword (istream&, char*)): Likewise. |
|
6253 |
2790
|
6254 Tue Mar 4 20:36:53 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6255 |
2791
|
6256 * pt-fcn.cc (tree_function::eval): Protect function from being |
|
6257 redefined while it is being evaluated. |
|
6258 (unprotect_function): New function, for use with unwind_protect stuff. |
|
6259 * pt-fcn.h (tree_function::symtab_entry): New data member. |
|
6260 (tree_function::init): Initialize it to 0. |
|
6261 (tree_function::stash_symtab_ptr): New function. |
|
6262 * parse.y (frob_function_def): Stash pointer to function's |
|
6263 symbol_record in the function definition. |
|
6264 |
|
6265 * symtab.cc (symbol_record::read_only_error): New argument, |
|
6266 action. Change all callers. |
|
6267 (symbol_record::rename): Don't allow read-only symbols to be renamed. |
|
6268 |
2790
|
6269 * variables.cc (Fexist): Don't let files with `.' in their names |
|
6270 confuse us. |
|
6271 |
|
6272 * symtab.cc (valid_identifier (const string&)): New function. |
|
6273 |
2779
|
6274 Sat Mar 1 15:23:14 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2775
|
6275 |
|
6276 * Version 2.0.5 released. |
|
6277 |
2779
|
6278 Sat Mar 1 01:34:08 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6279 |
|
6280 * Makefile.in (stamp-oct-links): New target. Make links in build |
|
6281 directory too, so that the tests will work. |
|
6282 |
2777
|
6283 * quad.cc: If quad is defined, undefine it. |
|
6284 |
2775
|
6285 * octave.cc: If WITH_KPATHSEARCH is defined, don't define |
|
6286 program_invocation_name or program_invocation_short_name. |
2774
|
6287 |
|
6288 * strftime.c: Update to current version from FSF. |
|
6289 * time.cc (Fstrftime): Call strftime with buf = 0 to get buffer |
|
6290 size, then call again to actually format the time struct. |
|
6291 |
2762
|
6292 Fri Feb 28 01:49:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6293 |
2764
|
6294 Implement switch statement: |
|
6295 |
|
6296 * parse.y (Vwarn_variable_switch_label): New static variable. |
|
6297 (warn_variable_switch_label): New function. |
|
6298 (symbols_of_parse): Provide warn_variable_switch_label as Octave |
|
6299 variable here. |
|
6300 (make_switch_case, finish_switch_command): New functions. |
|
6301 (maybe_warn_variable_switch_label): New function. |
|
6302 (end_error): Handle endswitch. |
|
6303 (switch_command, case_list, case_list1, switch_case, default_case): |
|
6304 New nonterminals. |
|
6305 (command): Add switch_command here. |
|
6306 * lex.l (is_keyword): Handle switch, case, otherwise, and endswitch. |
|
6307 * octave_gperf: Recognize switch, case, otherwise, and endswitch. |
|
6308 * token.h (end_tok_type): New item, switch_end. |
|
6309 * pt-cmd.cc (tree_switch_command): New class. |
|
6310 * pt-misc.cc (tree_switch_case, tree_switch_case_list): New classes. |
|
6311 * pt-pr-code.cc (tree_print_code::visit_switch_case, |
|
6312 tree_print_code::visit_switch_case_list, |
|
6313 tree_print_code::visit_switch_command): New functions. |
|
6314 * pt-walk.h (tree_walker::visit_switch_case, |
|
6315 tree_walker::visit_switch_case_list, |
|
6316 tree_walker::visit_switch_command): New pure virtual declarations. |
|
6317 Implement new switch statement. |
|
6318 * SLList-misc.cc: Instantiate lists of pointers to |
|
6319 tree_switch_case objects too. |
|
6320 |
|
6321 * lex.h, lex.l, parse.y: Delete all references to lexer_flags::iffing. |
|
6322 |
2762
|
6323 * syswait.h: Include sys/wait.h on NeXT systems, but don't use the |
|
6324 WIFEXTED, WEXITSTATUS, and WIFSIGNALLED macros defined there. |
|
6325 Also define waitpid in terms of wait4. From Rex A. Dieter |
|
6326 <rdieter@math.unl.edu>. |
|
6327 |
2759
|
6328 Wed Feb 26 16:43:31 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6329 |
|
6330 * oct-stream.cc (octave_base_stream::do_scanf): Don't report an |
|
6331 error if a conversion fails or we reach EOF. |
|
6332 |
2745
|
6333 Tue Feb 25 22:21:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6334 |
|
6335 * time.cc (strftime): increase initial buffer size. |
|
6336 |
|
6337 Mon Feb 24 17:49:21 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6338 |
|
6339 * pt-fvc.cc (tree_builtin::eval): Enable checking for max number |
|
6340 of arguments. |
|
6341 |
|
6342 * error.cc (handle_message): Don't fail if args is empty. |
|
6343 |
|
6344 Sun Feb 23 22:42:52 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6345 |
|
6346 * lex.h (lexical_feedback::looking_at_return_list): New field. |
|
6347 (lexical_feedback::looking_at_parameter_list): Ditto. |
|
6348 * lex.l (lexical_feedback::init): Initialize them. |
|
6349 (handle_identifier): Use them. |
|
6350 * parse.y: Likewise. |
|
6351 |
2712
|
6352 Fri Feb 21 15:35:18 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6353 |
2716
|
6354 * lex.l: Require flex 2.5 or later (we really want 2.5.4 or later, |
|
6355 but there seems to be no good way to check the patchlevel). |
|
6356 |
2712
|
6357 * oct-stream.cc (octave_base_stream::oscanf): Instead of returning |
|
6358 an error, just quit processing after a conversion fails. |
|
6359 |
2709
|
6360 Thu Feb 20 02:58:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2702
|
6361 |
|
6362 * Version 2.0.4 released. |
|
6363 |
2706
|
6364 Wed Feb 19 10:30:14 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6365 |
2705
|
6366 * sighandlers.cc (octave_ignore_interrupts, |
|
6367 octave_catch_interrupts, octave_set_interrupt_handler): |
|
6368 Return old value, not pointer to static data. Fix all uses. |
|
6369 |
|
6370 * sighandlers.h (octave_interrupt_handler): Move declaration here. |
|
6371 * sighandlers.cc: From here. |
|
6372 |
|
6373 * toplev.cc: Undo previous change. |
|
6374 |
2702
|
6375 * lex.l (handle_identifier): Allow commands like ls, save, etc. to |
|
6376 also be used as simple variable names. Also make it possible to |
|
6377 use the normal function call syntax to invoke them. |
|
6378 |
2693
|
6379 Tue Feb 18 09:22:04 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2689
|
6380 |
2702
|
6381 * Makefile.in (%.oct:%.o, %.oct:pic/%.o): Use $(SH_LDFLAGS) here. |
|
6382 |
2690
|
6383 * Version 2.0.3 released. |
|
6384 |
2693
|
6385 Tue Feb 18 00:27:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6386 |
|
6387 * toplev.cc (run_command_and_return_output): |
|
6388 Block SIGCHLD while running subprocess. |
|
6389 (cleanup_iprocstream): Unblock it here. |
|
6390 |
|
6391 * sighandlers.h (BLOCK_SIGNAL, BLOCK_CHILD, UNBLOCK_CHILD): Move here. |
|
6392 * sighandlers.cc: From here. |
|
6393 |
2692
|
6394 * toplev.cc (system): Shift then mask exit status. |
|
6395 |
|
6396 * help.cc (try_info): Shift first, then mask exit status. |
|
6397 |
2689
|
6398 * toplev.cc (octave_config_info): Handle option argument. |
|
6399 |
2686
|
6400 Fri Feb 14 16:23:30 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6401 |
2687
|
6402 * oct-stream.cc (octave_base_stream::do_scanf): Don't forget to |
|
6403 check to see if the result matrix needs resizing! |
|
6404 |
2686
|
6405 * Makefile.in (bin-dist): Don't write empty strings to LIBRARIES. |
|
6406 |
2669
|
6407 Thu Feb 13 03:02:08 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6408 |
2676
|
6409 * Makefile.in (stamp-prereq): Depend on stamp-picdir. |
|
6410 (all): Don't depend on stamp-prereq or stamp-picdir. |
|
6411 (stamp-tinst, stamp-interp, libtinst.a, liboctinterp.a): |
|
6412 Do depend on stamp-prereq. |
|
6413 (stamp-picdir): Silence noise about making pic. |
|
6414 (stamp-tinst, stamp-interp): Use $(SH_LD) $(SH_LDFLAGS) instead of |
|
6415 $(CXX) -shared. |
|
6416 |
2675
|
6417 * oct-conf.h.in: Reinstate RLD_FLAG. |
|
6418 * toplev.cc (octave_config_info): Likewise. |
|
6419 |
2672
|
6420 * data.cc (map_d_m, map_m_d, map_m_m): Rename from map. |
|
6421 (Fatan2): Use new function names. |
|
6422 |
|
6423 * pt-fvc.cc (apply_mapper_fcn): Use member function map() instead |
|
6424 of friend function. |
|
6425 |
2669
|
6426 * gripes.cc (gripe_wrong_type_arg (const char*, const string&)): |
|
6427 New function. |
|
6428 |
|
6429 Wed Feb 12 17:27:53 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6430 |
|
6431 * syscalls.cc (symbols_of_syscalls): Add O_ASYNC and O_SYNC. |
|
6432 |
|
6433 Mon Feb 10 01:22:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6434 |
|
6435 * dirfns.cc (Freaddir, Fmkdir, Frmdir, Frename): |
|
6436 Also return status and error message. |
|
6437 |
|
6438 * syscalls.cc (Fdup2, Fexec, Ffork, Ffcntl, Funlink, Fmkfifo, |
|
6439 Fpipe, Fwaitpid): Also return error message. |
|
6440 |
2664
|
6441 Sat Feb 8 17:16:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6442 |
2665
|
6443 * pt-exp.cc (tree_simple_assignment_expression::eval): Return |
|
6444 value of RHS, but (if printing) print complete value of LHS. |
|
6445 |
2664
|
6446 * pr-output.cc (octave_print_internal): Print a new line for empty |
|
6447 string matrices. |
|
6448 |
2663
|
6449 Wed Feb 5 14:30:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6450 |
|
6451 * oct-stream.cc (scanf_format_list::process_conversion): Accept |
|
6452 but don't actually use h, l, and L modifiers. Always insert l |
|
6453 modifier for floating point conversions. |
|
6454 |
2652
|
6455 Fri Jan 31 13:55:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6456 |
|
6457 * pager.cc (do_sync): Always flush the cout stream after writing. |
|
6458 |
2643
|
6459 Wed Jan 29 08:25:29 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6460 |
2648
|
6461 * defaults.cc (exec_path): Don't include bin_dir in std_path. |
|
6462 |
2646
|
6463 * pager.cc (do_sync): Flush the cout stream after writing if |
|
6464 running in interactive or forced_interactive mode. |
|
6465 |
|
6466 * mk-oct-links: Rename from mk-oct-links.in. |
|
6467 Don't use symbolic links. |
|
6468 * Makefile.in: Distribute mk-oct-links, not mk-oct-links.in |
|
6469 (mk-oct-links): Delete target. |
|
6470 (install-oct, bin-dist): Don't depend on mk-oct-links. |
|
6471 Run $(srcdir)/mk-oct-links, not ./mk-oct-links. |
|
6472 |
2643
|
6473 * qr.cc (qr): Doc fix. |
|
6474 |
2638
|
6475 Tue Jan 28 10:48:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6476 |
|
6477 * Makefile.in (install-inc): Create a relative symbolic link. |
|
6478 (install-bin): Create a relative symbolic link. |
|
6479 |
2630
|
6480 Mon Jan 27 12:12:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6481 |
2634
|
6482 * Version 2.0.2 released. |
|
6483 |
|
6484 * Makefile.in (CXXFLAGS_NO_PT_FLAGS): Rename from XALL_CXXFLAGS. |
|
6485 Substitute bsd_gcc_kluge_targets_frag. |
|
6486 |
2630
|
6487 * sysdep.cc (Fsleep): New function. |
|
6488 (Fusleep): New function. |
|
6489 |
|
6490 * toplev.cc (octave_config_info): Don't include RLD_FLAG. |
|
6491 * oct-conf.h.in: Don't define RLD_FLAG |
|
6492 |
2626
|
6493 Sun Jan 26 19:41:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6494 |
|
6495 * sighandlers.cc (sigchld_handler): Block SIGCHLD while |
|
6496 sigchld_hander is running. |
|
6497 |
2624
|
6498 Sat Jan 25 22:36:39 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6499 |
|
6500 * Makefile.in (bin-dist): Update for 2.x. |
|
6501 |
2621
|
6502 Fri Jan 24 10:05:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6503 |
|
6504 * mk-oct-links.in: New arg, -p, to just print list of files to link. |
|
6505 |
|
6506 * lex.l (handle_number): Convert `D' or `d' exponents to `e' |
|
6507 before scanning. |
|
6508 |
2620
|
6509 Thu Jan 23 10:00:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6510 |
|
6511 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_no_op_command): |
|
6512 New function. |
|
6513 * pt-cmd.h, pt-cmd.cc (tree_no_op_command): New class. |
|
6514 * parse.y (make_break_command, make_continue_command, |
|
6515 make_return_command): Where they don't really make sense, turn |
|
6516 these commands into no-ops. Accept return and break if reading a |
|
6517 script file. |
|
6518 * toplev.cc (parse_and_execute): Handle return and break in script |
|
6519 files. Quit executing commands if an error occurs when reading a |
|
6520 script file. Set global_command to 0 after deleting it. |
|
6521 (main_loop): If not interactive or forced_interactive, handle |
|
6522 break and return, and quit executing commands if an error occurs. |
|
6523 Set global_command to 0 after deleting it. |
|
6524 * error.cc (Ferror): Doc fix. |
|
6525 * pt-walk.h (tree_walker): Add declaration for visit_no_op_command. |
|
6526 |
2618
|
6527 Wed Jan 22 20:54:12 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6528 |
|
6529 * input.cc (gnu_readline): If not using readline, flush |
|
6530 rl_outstream after printing prompt. |
|
6531 (octave_gets): Also call flush_octave_stdout() if |
|
6532 forced_interactive, not just if interactive. |
|
6533 (do_input_echo): If forced_interactive, only echo prompt and |
|
6534 command line if also reading a script file. |
|
6535 |
2616
|
6536 Tue Jan 21 23:02:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6537 |
|
6538 * SLList.h: Include "BaseSLList.h", not <BaseSLList.h>. |
|
6539 |
2610
|
6540 Mon Jan 20 11:11:12 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6541 |
2614
|
6542 * lex.l (token_stack): Don't declare static. |
|
6543 * pt-plot.cc (tmp_files): Likewise. |
|
6544 * toplev.cc (octave_atexit_functions): Likewise. |
|
6545 * unwind-prot.cc (unwind_protect_list): Likewise. |
|
6546 |
2613
|
6547 * ops.h (MX_MX_BOOL_OP): Correctly handle case of one or both |
|
6548 arguments being empty. Change all callers. |
|
6549 |
|
6550 * oct-stream.cc (printf_value_cache::looking_at_string): |
|
6551 Handle empty strings correctly now that they are 0x0. |
|
6552 |
2610
|
6553 * file-io.cc: Don't include "syswait.h" here. |
|
6554 |
|
6555 Sun Jan 19 22:38:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6556 |
|
6557 * oct-stream.h (octave_base_stream::seek): Declare offset arg as |
|
6558 streamoff, not streampos. |
|
6559 (octave_stream::seek): Likewise. |
|
6560 * oct-strstrm.h (octave_base_strstream::seek): Likewise. |
|
6561 * oct-stdstrm.h (octave_base_stdiostream::seek): Likewise. |
|
6562 * oct-iostrm.h (octave_base_iostream::seek): Likewise. |
|
6563 * oct-fstrm.h (octave_fstream::seek): Likewise. |
|
6564 |
2609
|
6565 Fri Jan 17 18:13:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6566 |
|
6567 * file-io.cc (Ffflush): Handle stdout as a special case. |
|
6568 |
|
6569 * oct-stream.cc (octave_stream_list::do_get_file_number): |
|
6570 Do the work for octave_stream::get_file_number. |
|
6571 (octave_stream_list::get_file_number): Convert to static function. |
|
6572 |
2608
|
6573 Wed Jan 8 11:42:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6574 |
|
6575 * log.cc (sqrtm): For complex arg case, compute sqrt, not log. |
|
6576 |
2602
|
6577 Tue Jan 7 00:16:41 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6578 |
|
6579 * Version 2.0.1 released. |
|
6580 |
|
6581 Mon Jan 6 00:00:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6582 |
|
6583 * pt-mat.cc (tm_row_const_rep::all_mt): New variable. |
|
6584 (tm_row_const::all_empty): New function. |
|
6585 (tm_row_const::tm_row_const_rep::init): Set all_mt here. |
|
6586 (tm_const::all_mt): New variable. |
|
6587 (tm_const::all_emtpy): New function. |
|
6588 (tm_const::init): Set all_mt here. |
|
6589 (tree_matrix::eval): Return an empty matrix if the list contains |
|
6590 only empty elements. If it contains only empty strings, return an |
|
6591 empty string. |
|
6592 |
2601
|
6593 Sun Jan 5 12:50:25 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6594 |
|
6595 * ops.h (SC_MX_BOOL_OP, MX_SC_BOOL_OP): New arg, empty_result. |
|
6596 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
6597 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
6598 op-s-cm.cc, op-s-m.cc, op-str-str.cc: Change all uses of |
|
6599 SC_MX_BOOL_OP and MX_SC_BOOL_OP macros. Return correct results |
|
6600 for empty matrix cases. |
|
6601 |
|
6602 * pt-fcn.cc (tree_function::eval): If Vdefine_all_return_values is |
|
6603 true, initialize return values before evaluating function, for |
|
6604 compatibility with Matlab. |
|
6605 |
|
6606 * oct-stream.cc (get_size): Correctly set size when arg is scalar. |
|
6607 |
|
6608 Thu Jan 2 12:40:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6609 |
|
6610 * Makefile.in (install-oct): Quote $(OCT_FILES) in for loop to |
|
6611 avoid syntax error from ksh. |
|
6612 |
|
6613 * pr-output.cc (octave_print_internal): Avoid unused parameter |
|
6614 warning from gcc. |
|
6615 |
2600
|
6616 Thu Dec 19 12:13:42 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6617 |
|
6618 * oct-stream.cc (octave_base_stream::do_scanf): |
|
6619 Don't treat %l{e,f,g} differently from %{e,f,g}. |
|
6620 (octave_base_stream::do_oscanf): Likewise. |
|
6621 |
|
6622 * sighandlers.cc (sigchld_handler): Fix typos. |
|
6623 |
2598
|
6624 Wed Dec 18 20:17:23 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6625 |
2599
|
6626 * file-io.cc (Ffgetl, Ffgets): Also return number of characters read. |
|
6627 |
|
6628 * ov-range.cc (octave_range::not): New function. |
|
6629 * ov-range.h (octave_range::uminus): New function. |
|
6630 |
2598
|
6631 * BaseSLList.cc: Include error.h. |
|
6632 (BaseSLList::error): Call ::error() to process error message. |
|
6633 |
2589
|
6634 Fri Dec 13 02:38:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6635 |
|
6636 * ov.cc (octave_value::convert_and_assign): Preserve lhs value if |
|
6637 assignment fails. |
|
6638 |
2586
|
6639 Wed Dec 11 12:33:16 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6640 |
|
6641 * pt-plot.cc (GPLOT_CMD_END): Don't put semicolons at the end of |
|
6642 each plot command; it causes trouble with gnuplot 3.5. |
|
6643 |
2580
|
6644 Tue Dec 10 00:31:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6645 |
2583
|
6646 * Version 2.0 released. |
|
6647 |
2584
|
6648 * pr-output.cc (set_format_style): Don't try to access argv unless |
|
6649 argc > 1. |
|
6650 |
2580
|
6651 * SLList-expr.cc SLList-misc.cc SLList-plot.cc SLList-str.cc |
|
6652 SLList-tc.cc SLList-tm.cc SLList.h SLStack-i.cc SLStack-pc.cc |
|
6653 SLStack-str.cc SLStack-sym.cc SLStack-tok.cc SLStack-ue.cc |
|
6654 SLStack-ui.cc, pt-mat.cc: Include Stack.h, Stack.cc, SLStack.cc, |
|
6655 and SLList.cc as necessary. |
|
6656 |
|
6657 * Stack.cc, SLStack.cc, SLList.cc: New files. |
|
6658 * Makefile.in (SOURCES): Add them to the list. |
|
6659 |
2575
|
6660 Mon Dec 9 12:03:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6661 |
2577
|
6662 * Makefile.in (install-bin): Use $(EXE) suffix so install will |
|
6663 find the right file on cygwin32 systems. |
|
6664 |
2575
|
6665 * ov.h: Declare proper form of do_binary_op as friend to |
|
6666 octave_value class. |
|
6667 |
2572
|
6668 Sat Dec 7 22:00:10 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6669 |
|
6670 * oct-stream.cc (do_printf_conv, do_scanf_conv, |
|
6671 do_oscanf_num_conv, do_oscanf_str_conv): Convert to real |
|
6672 functions instead of CPP macros, using templates where necessary. |
|
6673 (do_oscanf_num_conv, do_oscanf_str_conv): Correctly handle |
|
6674 discarded values. |
|
6675 |
2569
|
6676 Fri Dec 6 00:20:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6677 |
2572
|
6678 * Version 1.94. |
|
6679 |
2571
|
6680 * Map-*.cc, SLList-*.cc, SLStack-*.cc: Include config.h. |
|
6681 |
|
6682 * ov.h: Don't include SLList.h. |
|
6683 |
|
6684 * SLStack.cc: Delete. Move everything to SLStack.h. |
|
6685 |
|
6686 * BaseSLList.h, BaseSLList.cc: New files. Split out the |
|
6687 non-template base class parts of SLList. |
|
6688 |
2569
|
6689 * Makefile.in (TEMPLATE_SRC): Delete. Move files to SOURCES. |
|
6690 * Map.h, Map.cc: Add #pragma interface/implementation. |
|
6691 * SLStack.h, SLStack.cc: Add #pragma interface/implementation. |
|
6692 |
|
6693 * SLList.h, SLList.cc: New files, from libg++, but with #pragma |
|
6694 interface/implementation. |
|
6695 * Makefile.in (SOURCES): Add SLList.cc. |
|
6696 (INCLUDES): Add SLList.h. |
|
6697 |
2566
|
6698 Thu Dec 5 18:36:44 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6699 |
|
6700 * octave.cc: Don't include sun-utils.h. |
|
6701 |
2563
|
6702 Tue Dec 3 23:47:09 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6703 |
|
6704 * op-str-str.cc (eq, ne): Handle operations with scalars. |
|
6705 |
2555
|
6706 Thu Nov 21 12:30:36 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6707 |
|
6708 * ov-str-mat.h (octave_char_matrix_str): Provide transpose and |
|
6709 hermitian operators. |
|
6710 * ov-ch-mat.h (octave_char_matrix): Likewise. |
|
6711 |
2548
|
6712 Wed Nov 20 00:35:57 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6713 |
2554
|
6714 * sighandlers.h (struct octave_interrupt_handler): Provide |
|
6715 forward declaration here. |
|
6716 * sighandlers.cc (octave_interrupt_handler): New struct. |
|
6717 (octave_catch_interrupts): Rename from catch_interrupts. |
|
6718 (octave_ignore_interrupts, octave_set_interrupt_handler): |
|
6719 New functions. |
|
6720 * help.cc, oct-hist.cc, pager.cc, toplev.cc: Use new functions for |
|
6721 handling interrupts so that we can hide the details of whether or |
|
6722 not we have to deal with SIGBREAK. |
|
6723 |
|
6724 * pt-plot.cc [! HAVE_POSIX_SIGNALS] (open_plot_stream): |
|
6725 Simply ignore and restore the interrupt handler here. |
|
6726 |
|
6727 * sighandlers.cc (MAYBE_REINSTALL_SIGHANDLER): New macro. Use it |
|
6728 instead of always checking MUST_REINSTALL_SIGHANDLERS everywhere. |
|
6729 (sigchld_handler): If octave_child_list is empty, wait for any |
|
6730 child, but don't hang, and don't collect status info. |
|
6731 [__EMX__] (sigchld_handler): Save and restore handlers for SIGINT, |
|
6732 SIGBREAK, and SIGCHLD. Ignore them while waiting on children. |
|
6733 (install_signal_handlers): If SIGBREAK exists, handle it like SIGINT. |
|
6734 |
2552
|
6735 * toplev.cc [USE_READLINE] (clean_up_and_exit): |
|
6736 Call rl_deprep_terminal() to restore terminal settings. |
|
6737 |
|
6738 * sysdep.cc [__EMX__ && OS2] (Fextproc): New command. |
|
6739 [__EMX__ && OS2] (FEXTPROC): Alias for Fextproc. |
|
6740 |
|
6741 * Version 1.93. |
|
6742 |
2549
|
6743 * sysdep.cc (octave_chdir): [__EMX__]: Make copy of string before |
|
6744 converting to upper case. |
|
6745 |
2548
|
6746 * getgrent.cc (mk_gr_map): Only set the passwd field if |
|
6747 HAVE_GR_PASSWD is defined. |
|
6748 |
2533
|
6749 Tue Nov 19 12:01:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6750 |
2546
|
6751 * sysdep.cc (OS2_init): New function. |
|
6752 [__EMX__] (sysdep_init): Call it. |
|
6753 |
2542
|
6754 * lex.l (plot_style_token): Add new plot styles for gnuplot 3.6. |
2543
|
6755 * pt-plot.cc (subplot_style::columns_ok): Rename from |
|
6756 subplot_style::errorbars. Recognize more styles and do a better |
|
6757 job of diagnosing column number/style mismatches. |
2542
|
6758 |
2536
|
6759 * sighandlers.cc (my_friendly_exit): If we are called twice, try |
|
6760 to remove the signal handler for SIGABRT and the call abort (). |
|
6761 |
2534
|
6762 * help.cc (Ftype): If a function is defined from a file and |
|
6763 transformed text has not been requested, just print the contents |
|
6764 of the file. |
|
6765 |
2533
|
6766 * parse.y (fold): New functions for constant folding for binary |
|
6767 and unary expressions. Keep track of original text even when |
|
6768 transformations occur. |
|
6769 (make_binary_op, make_boolean_op, make_unary_op): Use them. |
|
6770 (finish_colon_expression, finish_matrix): Keep track of original |
|
6771 text even when transformations occur. |
|
6772 |
|
6773 * help.cc (Ftype): Don't mess with Vps4. |
|
6774 Handle new option `-transformed'. |
|
6775 |
|
6776 * pt-const.h, pt-const.cc (tree_constant::print): |
|
6777 New arg, pr_orig_text. |
|
6778 |
|
6779 * pt-exp.h, pt-exp.cc (tree_colon_expression::is_range_constant): |
|
6780 Delete. |
|
6781 |
|
6782 * pt-exp-base.h (tree_expression::original_text): New virtual function. |
|
6783 pt-exp-base.cc (tree_expression::original_text): Default version. |
|
6784 |
|
6785 * pt-pr-code.h (tree_print_code::print_original_text, |
|
6786 tree_print_code::prefix): New fields. |
|
6787 * pt-pr-code.cc (tree_print_code::visit_constant): Pass |
|
6788 print_original_text to tree_constant::print(). |
|
6789 (tree_print_code::indent): Use prefix instead of Vps4. |
|
6790 * pt-fcn.cc (tree_function::print_function_header, |
|
6791 tree_function::print_function_trailer): Pass Vps4 to |
|
6792 tree_print_code_constructor for prefix. |
|
6793 * pt-misc.cc (tree_statement::maybe_echo_code): Pass Vps4 to |
|
6794 tree_print_code_constructor for prefix. |
|
6795 |
|
6796 * pt-mat.h, pt-mat.cc (tree_matrix::all_elements_are_constant): |
|
6797 Rename from is_matrix_constant. |
|
6798 (tree_matrix_row::all_elements_are_constant): Likewise. |
|
6799 Change all callers. |
|
6800 |
|
6801 Mon Nov 18 14:13:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6802 |
|
6803 * Makefile.in (install-inc): Try harder to create the link from |
|
6804 include/octave to include/octave-VERSION. |
|
6805 |
2524
|
6806 Sun Nov 17 14:14:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6807 |
2527
|
6808 * Makefile.in (parse.cc): Expect 13 shift/reduce conflicts. |
2526
|
6809 |
2525
|
6810 * parse.y (set_stmt_print_flag): New function. |
|
6811 (sep_type): New member for bison %union declaration. |
|
6812 Simplify rules for statement lists keeping track of the type of |
|
6813 the first separator in the values associated with the |
|
6814 nonterminals for the separators. |
|
6815 |
2524
|
6816 * lex.l (handle_identifier): Set lexer_flags.doing_set if the |
|
6817 token is "gset", not "set". |
|
6818 |
|
6819 Sat Nov 16 21:41:26 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6820 |
|
6821 * Makefile.in (parse.cc, lex.cc): Add special rules for these files. |
|
6822 Delete pattern rules for .y and .l files. |
|
6823 |
2522
|
6824 Fri Nov 15 13:48:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6825 |
2523
|
6826 * pt-plot.cc: Put semicolons at the ends of all plot commands. |
|
6827 |
2522
|
6828 * defaults.cc (subst_octave_home): Start subsequent searchs from |
|
6829 the end of the replaced text. |
|
6830 |
|
6831 * pr-output.cc (pr_any_float): Kluge for SCO systems. |
|
6832 |
|
6833 * pr-output.cc (pr_any_float, pr_complex): Don't declare inline. |
|
6834 |
|
6835 * mappers.cc: Include lo-ieee.h, for isinf and isnan on SCO |
|
6836 systems. |
|
6837 |
2512
|
6838 Thu Nov 14 00:06:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6839 |
2520
|
6840 * pt-plot.cc (Fgset, Fgshow): New commands. |
|
6841 (Fshow): Print warning and call gshow. |
|
6842 (Fset): Print warning and call gset. |
|
6843 |
2517
|
6844 * variables.cc (parse_fcn_file): Add unwind-protect for file |
|
6845 pointer, so the file is always closed. |
|
6846 (get_help_from_file): Likewise. |
|
6847 * toplev.cc (parse_and_execute): Likewise. |
|
6848 |
2516
|
6849 * Makefile.in (install-oct): Depend on mk-oct-links. |
|
6850 (mk-oct-links): New target. |
|
6851 |
2512
|
6852 * Version 1.92. |
|
6853 |
2508
|
6854 Wed Nov 13 11:13:22 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6855 |
2512
|
6856 * sighandlers.cc (sys_siglist): [__EMX__]: Add definitions. |
|
6857 |
|
6858 * octave.cc (execute_startup_files): Allow init file name ot be |
|
6859 specified by an environment variable. |
|
6860 |
|
6861 * dirfns.cc (make_absolute): [__EMX__]: Path is already absolute |
|
6862 if it begins with any character followed by a colon. |
|
6863 |
2511
|
6864 * load-save.cc (read_mat_ascii_matrix, get_lines_and_columns, |
|
6865 get_complete_line): New functions, for reading headless text files. |
|
6866 (load_save_format): Add LS_MAT_ASCII, for headless text files. |
|
6867 (do_load): Handle LS_MAT_ASCII files. |
|
6868 Thanks to Mel Melchner <mjm@research.att.com> for initial version |
|
6869 of this code. |
|
6870 |
2508
|
6871 * sysdep.cc: Conditionally include ieeefp.h. |
|
6872 (BSD_init, SCO_init): New functions. |
|
6873 (sysdep_init): Conditionally call them here. |
|
6874 |
2499
|
6875 Tue Nov 12 00:14:56 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6876 |
2508
|
6877 * pt-plot.cc (open_plot_stream): Don't block SIGCHLD. |
|
6878 |
2499
|
6879 * load-save.cc (read_binary_data): When reading string arrays, be |
|
6880 sure to create an octave_char_matrix_str object, not just an |
|
6881 octave_char_matrix object. |
|
6882 (read_ascii_data): Likewise. |
|
6883 |
2497
|
6884 Mon Nov 11 22:52:58 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6885 |
|
6886 * load-save.cc (read_binary_data): Don't forget teminating NUL for |
|
6887 string that we plan to insert. |
|
6888 (read_ascii_data): Likewise. |
|
6889 |
2495
|
6890 Sun Nov 10 16:58:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6891 |
2496
|
6892 * dirfns.cc (Ffnmatch): New function. |
|
6893 |
2495
|
6894 * octave.cc (intern_argv): Use new string_vector constructor. |
|
6895 |
|
6896 * ov-str-mat.cc (octave_char_matrix_str::all_strings): Have |
|
6897 charMatrix::row_as_string() strip trailing whitespace. |
|
6898 |
|
6899 * dirfns.cc (Fglob): new function. |
|
6900 |
|
6901 * sysdep.cc (oct_tilde_expand): Provide version that works on |
|
6902 string vectors too. |
|
6903 (Ftilde_expand): Work on string vector args. |
|
6904 |
|
6905 * load-save.cc (save_binary_data): Call char_matrix_value() to |
|
6906 extract charMatrix from octave_value object, not all_strings(). |
|
6907 (save_ascii_data): Likewise. |
|
6908 * pt-mat.cc (tree_matrix::eval): Likewise. |
|
6909 |
|
6910 * ov.h (octave_value::all_strings): Return string_vector, not |
|
6911 charMatrix. |
|
6912 * ov-base.cc (octave_base_value::all_strings): Likewise. |
|
6913 * ov-str-mat.h, ov-str-mat.cc (octave_char_matrix_str::all_strings): |
|
6914 Likewise. |
|
6915 |
2487
|
6916 Fri Nov 8 09:54:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6917 |
2492
|
6918 * defaults.cc, dynamic-ld.cc, fn-cache.cc, help.cc, oct-hist.cc, |
|
6919 octave.cc, pager.cc, pt-fcn.cc, toplev.cc, utils.cc, variables.cc, |
|
6920 lex.l: Change #include "" to #include <> for defaults.h, |
|
6921 oct-conf.h, oct-gperf.h, y.tab.h, and version.h, to avoid getting |
|
6922 them from $srcdir when we really want the version from the build |
|
6923 directory. (Maybe this should be done for all the include files, |
|
6924 not just those that are auto-generated? Hmm.) |
|
6925 |
2488
|
6926 * defaults.h.in (CXXLIB_LIST, CXXLIB_PATH, FLIB_LIST, FLIB_PATH): |
|
6927 Delete. |
|
6928 |
2487
|
6929 * Makefile.in (install-oct): Use $(INSTALL_PROGRAM) for .oct files. |
|
6930 |
2477
|
6931 Thu Nov 7 07:59:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6932 |
2487
|
6933 * variables.cc (gobble_leading_white_space): New arg, update_pos. |
|
6934 * (is_function_file): Don't update file position information here. |
|
6935 |
2482
|
6936 * Version 1.91. |
|
6937 |
2479
|
6938 * pt-fvc.cc (tree_indirect_ref::reference): If the lhs object is |
|
6939 not a map, convert it to one. |
|
6940 |
|
6941 * ov-typeinfo.h (init_tab_sz): New static member. |
|
6942 |
2477
|
6943 * ov-struct.cc, ov-struct.h: Add hooks for custom memory management. |
|
6944 * ov-scalar.cc, ov-scalar.h: Likewise. |
|
6945 * ov-re-mat.cc, ov-re-mat.h: Likewise. |
|
6946 * ov-range.cc, ov-range.h: Likewise. |
|
6947 * ov-cx-mat.cc, ov-cx-mat.h: Likewise. |
|
6948 * ov-complex.cc, ov-complex.h: Likewise. |
|
6949 * ov-ch-mat.cc, ov-ch-mat.h: Likewise. |
|
6950 |
2474
|
6951 Wed Nov 6 12:32:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6952 |
2482
|
6953 * pager.cc (do_sync): Don't call clear_external_pager() here. |
2476
|
6954 |
2475
|
6955 * pt-const.h (tree_constant::allocator) New static member. |
|
6956 (tree_constant::operator new, tree_constant::operator delete): |
|
6957 Implement with custom allocator. |
|
6958 |
|
6959 * syscalls.cc (Fgetgid, Fgetegid): New functions. |
|
6960 |
|
6961 * sighandlers.cc (sigchld_handler): If necessary, reinstall |
|
6962 handler after call to waitpid(). |
|
6963 |
|
6964 * pager.cc (pager_death_handler): Don't use warning() to print |
|
6965 message. |
|
6966 |
|
6967 * getgrent.cc: New file. |
|
6968 * Makefile.in (DLD_SRC): Add it. |
|
6969 |
|
6970 * ov.cc (octave_value::print_with_name): Call is_map() instead of |
|
6971 print_as_structure(). |
|
6972 * ov-struct.cc (octave_struct::print): Likewise. |
|
6973 |
|
6974 * ov.h, ov.cc, pt-const.h: Delete force_numeric(), make_numeric(), |
|
6975 convert_to_matrix_type(), print_as_structure() member functions. |
|
6976 |
2474
|
6977 * variables.cc (is_function_file): Call gobble_leading_whitespace |
|
6978 here to strip all leading whitespace and comments. |
|
6979 (parse_fcn_file): If reading a function file, call |
|
6980 gobble_leading_whitespace again after resetting parser state to |
|
6981 grab help text. |
|
6982 |
2469
|
6983 Tue Nov 5 13:00:35 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
6984 |
2472
|
6985 * syscalls.cc (Fgeteuid, Fgetuid): New functions. |
|
6986 |
|
6987 * getpwent.cc: Use gripe_not_supported from gripes.cc, instead of |
|
6988 local gripe_not_implemented function. |
|
6989 |
2470
|
6990 * input.cc, sysdep.cc, variables.cc: Only include readline.h and |
|
6991 history.h if USE_READLINE is defined. |
|
6992 |
|
6993 * help.cc: Make it compile without warnings even if USE_GNU_INFO |
|
6994 is not defined. |
|
6995 |
2469
|
6996 * sighandlers.h (octave_child_list): Don't define |
|
6997 HAVE_POSIX_SIGNALS HERE. |
|
6998 |
|
6999 * sighandlers.cc (SIGHANDLER_RETURN): New macro. |
|
7000 (generic_sig_handler, sigchld_handler, sigfpe_handler, |
|
7001 sigint_handler, sigpipe_handler): Use it. |
|
7002 (sigchld_handler, sigfpe_handler, sigint_handler, sigpipe_handler): |
|
7003 Only reinstall signal handler if MUST_REINSTALL_SIGHANDLER is defined. |
|
7004 |
2463
|
7005 Sun Nov 3 00:45:30 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7006 |
2466
|
7007 * pt-const.cc (tree_constant::print): Just call val.print(). |
|
7008 * ov-base.cc, ov-ch-mat.cc, ov-colon.cc, ov-complex.cc, |
|
7009 ov-cx-mat.cc, ov-range.cc, ov-re-mat.cc, ov-scalar.cc, |
|
7010 ov-str-mat.cc, ov-struct.cc ov-va-args.cc, ov.cc (print): |
|
7011 Handle pr_as_read_syntax arg. |
|
7012 |
|
7013 * defaults.cc (subst_octave_home): Search for prefix repeatedly in |
|
7014 retval, not s. |
|
7015 |
|
7016 * gripes.h: Make declaration of gripes_not_supported match |
|
7017 definition. |
|
7018 |
2465
|
7019 * mk-oct-links.in: In sed command, match "DEFUN_DLD *( *", not |
|
7020 "DEFUN_DLD_BUILTIN *( *". |
|
7021 |
|
7022 * chol.cc, colloc.cc, dassl.cc, det.cc, eig.cc, expm.cc, fft.cc, |
|
7023 fft2.cc, filter.cc, find.cc, fsolve.cc, fsqp.cc, getpwent.cc, |
|
7024 getrusage.cc, givens.cc, hess.cc, ifft.cc, ifft2.cc, inv.cc, |
|
7025 log.cc, lpsolve.cc, lsode.cc, lu.cc, minmax.cc, npsol.cc, pinv.cc, |
|
7026 qpsol.cc, qr.cc, quad.cc, qzval.cc, rand.cc, schur.cc, sort.cc, |
|
7027 svd.cc, syl.cc, time.cc: Change all uses of DEFUN_DLD_BUILTIN to |
|
7028 be just DEFUN_DLD. |
|
7029 |
|
7030 * defun-dld.h: Eliminate DEFUN_DLD_BUILTIN. |
|
7031 |
2464
|
7032 * syswait.h: Use #ifdef HAVE_SYS_WAIT_H, not #if HAVE_SYS_WAIT_H |
|
7033 to decide whether to include sys/wait.h. |
|
7034 |
|
7035 * pt-exp-base.h (tree_expression): Declare oper() here as a |
|
7036 virtual member function. |
|
7037 |
2463
|
7038 * pt-pr-code.cc (tree_print_code::visit_constant): Check for |
|
7039 string before checking for char_matrix. |
|
7040 |
|
7041 * ov-ch-mat.cc (octave_char_matrix::print): Supply correct number |
|
7042 of args to octave_print_internal(). |
|
7043 |
2457
|
7044 Sat Nov 2 20:44:55 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7045 |
2458
|
7046 * file-io.cc (Ftmpnam): Rename from Foctave_temp_file_name. |
|
7047 |
2457
|
7048 * Makefile.in (DLD_SRC): Move time.cc and getrusage.cc here from |
|
7049 SOURCES. Add getpwent.cc. |
|
7050 |
|
7051 * getrusage.cc: Rename from resource.cc. Make getrusage a |
|
7052 loadable function. |
|
7053 |
|
7054 * time.cc: Rename from timefns.cc. Make time functions loadable. |
|
7055 |
|
7056 * getpwent.cc: New file. |
|
7057 |
2439
|
7058 Wed Oct 30 01:06:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7059 |
2452
|
7060 * Version 1.90. |
|
7061 |
|
7062 * Makefile.in (DISTFILES): Add ChangeLog. |
|
7063 |
2449
|
7064 * ov-range.cc (octave_range::convert_to_str): New function. |
|
7065 |
|
7066 * ov-str-mat.h (octave_char_matrix_str::char_matrix_value): |
|
7067 Delete function. Already handled by octave_char_matrix class. |
|
7068 |
|
7069 * ov-ch-mat.h (octave_char_matrix::convert_to_str): New function. |
|
7070 |
2448
|
7071 * pager.cc (Fmore): Set page_screen_output to 1.0 or 0.0, not |
|
7072 "true" or "false". |
|
7073 |
2447
|
7074 * ov-ch-mat.cc, ov-struct.cc, ov-struct.h, pr-output.cc, |
|
7075 pt-cmd.cc, pt-const.cc, pt-const.h, pt-fcn.cc, pt-fvc-base.cc, |
|
7076 pt-fvc-base.h, pt-fvc.cc, pt-fvc.h, rand.cc, sighandlers.cc, |
|
7077 variables.cc, variables.h: Delete unused code. |
|
7078 |
2445
|
7079 * octave.cc: Only include pwd.h if HAVE_PWD_H. |
|
7080 |
|
7081 * oct-strstrm.h: Include <string>, not <string.h>. |
|
7082 |
2442
|
7083 * defaults.cc, dirfns.cc, file-io.cc, help.cc, input.cc, |
|
7084 oct-hist.cc, oct-procbuf.cc, oct-procbuf.h, octave.cc, pager.h, |
|
7085 procstream.h, pt-misc.cc, pt-plot.cc, sighandlers.cc, strftime.c, |
|
7086 syscalls.cc, sysdep.cc, syswait.h, toplev.cc, utils.cc, |
|
7087 variables.cc: Only include sys/types.h if HAVE_SYS_TYPES_H. |
|
7088 |
2440
|
7089 * error.h (panic): Use GCC_ATTR_NORETURN macro, not NORETURN. |
|
7090 * toplev.h (clean_up_and_exit): Likewise. |
|
7091 * utils.h (jump_to_top_level): Likewise. |
|
7092 |
2439
|
7093 * derfaults.h.in, defaults.cc (local_arch_lib_dir): New variable. |
|
7094 * defaults.cc (set_default_local_arch_lib_dir): New function. |
|
7095 (install_defaults): Call it. |
|
7096 (exec_path): Use Vlocal_arch_lib_dir here. |
|
7097 * toplev.cc (octave_config_info): Add localarchlibdir to structure. |
|
7098 |
2436
|
7099 Tue Oct 29 15:54:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7100 |
2437
|
7101 * Makefile.in (install-oct): Don't do anything if $(OCT_FILES) is |
|
7102 empty. |
|
7103 |
2436
|
7104 * ov-range.cc (octave_range::index): New Function. |
|
7105 (octave_range::all, octave_range::any, octave_range::is_true): |
|
7106 Make these functions work. |
|
7107 |
|
7108 * ov.cc (octave_value::try_assignment_with_conversion): Remove |
|
7109 left over debugging print statements. |
|
7110 |
|
7111 Mon Oct 28 10:49:03 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7112 |
|
7113 * strftime.c: Add missing #endif for previous change. |
|
7114 |
2435
|
7115 Sun Oct 27 14:06:44 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7116 |
|
7117 * oct-hist.cc (do_history): Rewite option parsing to avoid |
|
7118 (probably bogus) errors from g++ on cygwin32 system. |
|
7119 |
|
7120 * strftime.c: Use autoconf macros TIME_WITH_SYS_TIME and |
|
7121 HAVE_SYS_TIME_H to decide which time.h files to include. |
|
7122 |
|
7123 * oct-stream.h, oct-stream.cc (octave_stream::error, |
|
7124 octave_base_stream::error): Rename errno => err_num. |
|
7125 |
2432
|
7126 Sat Oct 26 10:40:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7127 |
2434
|
7128 * oct-hist.cc (do_history): Move declaration of file inside |
|
7129 conditional. |
|
7130 |
2432
|
7131 * defun.h (DEFVAR_INT): Set eternal flag with (svc_fcn != 0) |
|
7132 instead of (sv_fcn ? 1 : 0) |
|
7133 |
2427
|
7134 Fri Oct 25 01:10:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7135 |
2431
|
7136 * ov-ch-mat.h (octave_char_matrix::any): Return 0.0 instead of false. |
|
7137 (octave_char_matrix::all): Likewise. |
|
7138 |
|
7139 * input.cc (Fecho): When binding value of echo_executing_commands, |
|
7140 cast ECHO_* to double. |
|
7141 |
|
7142 * sighandlers.cc (octave_child_list::do_remove): Delete unused |
|
7143 variable `enlarge'. |
|
7144 |
|
7145 * pt-const.h (tree_constant::tree_constant (const tree_constant&)): |
|
7146 Don't pass arg to tree_fvc constructor. |
|
7147 |
2427
|
7148 * resource.cc (getrusage): [HAVE_GETRUSAGE && RUSAGE_TIMES_ONLY]: |
|
7149 Only fill in time values. |
|
7150 |
|
7151 Thu Oct 24 20:37:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7152 |
|
7153 * parse.y: Comment out the %expect declaration so byacc can |
|
7154 compile this file. |
|
7155 (if_cmd_list): Add missing semicolon. |
|
7156 Include <cstdlib> for getenv if using byacc. |
|
7157 |
|
7158 * ov.h: Move typedefs outside of octave_value class scope to avoid |
|
7159 problem with cygwin32 beta16 compiler. |
|
7160 |
2421
|
7161 Fri Oct 18 13:44:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7162 |
2423
|
7163 * ov.h (octave_value::index): Undo previous change. |
|
7164 * ov.cc (octave_value constructors): Call maybe_mutate() in most |
|
7165 cases. |
|
7166 |
|
7167 * ov-complex.cc (octave_complex::index): Avoid implicit type |
|
7168 conversion back to scalar type. |
|
7169 * ov-scalar.cc (octave_scalar::index): Likewise. |
|
7170 |
2421
|
7171 * ov.h (octave_value::index): Call maybe_mutate() on retval before |
|
7172 returning it. |
|
7173 |
2418
|
7174 Wed Oct 16 12:00:11 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7175 |
2420
|
7176 * ov.h (octave_value::struct_elt_val): New optional arg, silent. |
|
7177 * ov-base.h, ov-base.cc, ov-struct.h, ov-struct.cc: Likewise, but |
|
7178 for the derived classes the arg is required. |
|
7179 |
|
7180 * data.cc (Fstruct_contains): Require arguments to be struct and |
|
7181 string, respectively. Call octave_value::struct_elt_val with |
|
7182 silent flag set. |
|
7183 |
2419
|
7184 * pt-mat.cc (tm_row_const::tm_row_const_rep::eval_error, |
|
7185 tm_row_const::tm_row_const_rep::eval_warning): New functions. |
|
7186 (tm_row_const::tm_row_const (const tree_matrix_row&): Use them to |
|
7187 give better error messages. |
|
7188 |
2418
|
7189 * pt-fvc.cc (tree_identifier::eval): Avoid dereferencing null |
|
7190 object_to_eval. |
|
7191 |
2412
|
7192 Tue Oct 15 11:35:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7193 |
|
7194 * op-cs-cm.cc, op-cs-cs.cc, op-cs-m.cc, op-cs-s.cc |
|
7195 (complex_matrix_conv): New functions. |
|
7196 Install preferred assignment conversion and widening ops. |
|
7197 |
|
7198 * op-s-cm.cc, op-s-cs.cc (complex_matrix_conv): New functions. |
|
7199 Install preferred assignment conversion and widening ops. |
|
7200 |
|
7201 * op-s-m.cc, op-s-s.cc (matrix_conv): New functions. |
|
7202 Install preferred assignment conversion and widening ops. |
|
7203 |
|
7204 * ov.cc (octave_value::try_assignment_with_conversion, |
|
7205 octave_value::convert_and_assign, octave_value::try_assignment): |
|
7206 New functions. |
|
7207 (octave_value::assign): Use them to implement twisted logic for |
|
7208 type conversions in assigments. |
|
7209 |
|
7210 * pt-const.h (tree_constant::maybe_mutate): New function. |
|
7211 * ov.h (octave_value::maybe_mutate): New function. |
|
7212 (octave_value::try_narrowing_conversion): New function. |
|
7213 Use just one typedef for widening_op_fcn and numeric_conv_fcn. |
|
7214 Change all uses. |
|
7215 * ov-base.h, ov-complex.h, ov-complex.cc, ov-cx-mat.h, |
|
7216 ov-cx-mat.cc, ov-range.h, ov-range.cc, ov-re-mat.h, ov-re-mat.cc, |
|
7217 Provide derived class versions of try try_narrowing_conversion(). |
|
7218 |
|
7219 * pr-output.cc (octave_print_internal): Don't bother handing off |
|
7220 to scalar/real versions, even when it would seem appropriate. |
|
7221 |
|
7222 * symtab.cc (symbol_def::define (tree_constant *)): Call |
|
7223 maybe_mutate on constants here. |
|
7224 |
2405
|
7225 Mon Oct 14 11:05:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7226 |
2407
|
7227 * pt-fvc.cc (tree_identifier::eval): If retval is undefined and |
|
7228 the object to eval is a constant, print error message. |
2406
|
7229 |
2405
|
7230 * Makefile (distclean): Remove *.oct too. |
|
7231 |
|
7232 * defun-int.h: Include variables.h here. |
|
7233 |
2403
|
7234 Sun Oct 13 10:52:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7235 |
2404
|
7236 * variables.cc (print_symbol_info_line): Never print negative |
|
7237 diminsions. |
|
7238 |
|
7239 * symtab.h (octave_symbol_record_info): Store const_type as string. |
|
7240 (octave_symbol_record_info::init): Delete. Fix constructors. |
|
7241 (octave_symbol_record_info::type_name): Handle const_type as string. |
|
7242 |
2403
|
7243 * octave.cc (maximum_braindamage): Replace "true" with 1.0 and |
|
7244 "false" with 0.0 in calls to bind_builtin_variable(). |
|
7245 Include sun-utils.h here. |
2404
|
7246 (intern_argv): Also bind __argv__. |
2403
|
7247 |
2391
|
7248 Sat Oct 12 13:40:21 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7249 |
2399
|
7250 * Makefile.in (distclean): Also delete mk-oct-links. |
|
7251 |
|
7252 Fri Oct 11 13:13:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7253 |
2391
|
7254 Changes for Octave's new type system: |
|
7255 |
|
7256 * arith-ops.cc: Delete. |
|
7257 * pt-const.h, pt-const.cc: Massive changes. Most functionality |
|
7258 moved to ov.h, ov.cc, and derived classes. |
|
7259 |
|
7260 * variables.h, variables.cc (octave_variable_reference): New class |
|
7261 for getting references to variables and structure elements used in |
|
7262 assignments or value contexts. |
|
7263 |
|
7264 * symtab.h, symtab.cc (symbol_record::define (const octave_value&), |
|
7265 symbol_record::variable_value, symbol_record::variable_reference): |
|
7266 New functions. |
|
7267 (symbol_record_info::type_name): Rename from type_as_string. |
|
7268 |
|
7269 * pt-fvc-base.h, pt-fvc-base.cc (tree_fvc::increment, |
|
7270 tree_fvc::decrement): New functions to replace |
|
7271 tree_fvc::bump_value. |
|
7272 #if 0 assign and lookup_map_element functions. |
|
7273 |
|
7274 * pt-mvr.cc (tree_multi_assignment_expression::eval): |
|
7275 Generated RHS value is now a tree_constant. |
|
7276 |
|
7277 * pt-exp.h, pt-exp.cc (tree_boolean_expression): New class. |
|
7278 (tree_unary_expression, tree_binary_expression, |
|
7279 tree_boolean_expression): Move codes here from tree_expression. |
|
7280 (tree_simple_assignment_expression): Cope with changes to way of |
|
7281 doing assignments. |
|
7282 |
|
7283 * pt-exp-base.h, pt-exp-base.cc (enum type): Delete codes for |
|
7284 unary and binary ops. |
|
7285 (tree_expression::expression_type): Delete. |
|
7286 (tree_expression::is_logically_true): Hand off to |
|
7287 octave_value::is_true to do real work. |
|
7288 |
|
7289 * pr-output.h, pr-output.cc (any_element_is_inf_or_nan, |
|
7290 all_elements_are_ints): Delete. Call member new functions for |
|
7291 these operations. |
|
7292 (free_format, plus_format, bank_format, hex_format, |
|
7293 compact_format, print_e, print_big_e): Use bool, not int. |
|
7294 (octave_print_internal): Hand off to scalar/real versions when |
|
7295 appropriate. |
|
7296 |
|
7297 * octave.cc (main): Call initialize_types() and install_ops(). |
|
7298 (verbose_usage): Add WWW address to output. |
|
7299 |
|
7300 * parse.y (indirect_ref): Handle by making a tree instead of a |
|
7301 list using new version of tree_indirect_ref class. |
|
7302 |
|
7303 * parse.y (make_boolean_op): New function. Use it instead of |
|
7304 make_binary_op to create trees for && and || ops. |
|
7305 (make_binary_op): Codes come from tree_binary_expression now, |
|
7306 instead of tree_expression. |
|
7307 (make_unary_op): Codes come from tree_unary_expression now, |
|
7308 instead of tree_expression. |
|
7309 (make_boolean_op): Codes come from tree_boolean_expression. |
|
7310 |
|
7311 *parse.y (tree_constant_type): Change type to tree_constant* from |
|
7312 octave_value*, and rename from octave_value_type. Change uses. |
|
7313 |
|
7314 * defun.h (DEFVAR_INT): Pass octave_value not pointer to |
|
7315 octave_value for defn when creating builtin_variable. |
|
7316 |
|
7317 * gripes.h, gripes.cc (gripe_invalid_conversion): Args are |
|
7318 strings, not char*. |
|
7319 (gripe_implicit_conversion, gripe_divide_by_zero): New extern |
|
7320 gripe functions. |
|
7321 |
|
7322 * mkbuiltins: For each file, create a separate static function to |
|
7323 install builtins, then create another single extern function to |
|
7324 call all of them. |
|
7325 |
|
7326 * pt-fcn.cc (tree_function::bind_nargin_and_nargout): |
|
7327 Just pass doubles and let symbol_record::define handle creating |
|
7328 new value. |
|
7329 |
|
7330 * pt-pr-code.cc, pt-pr-code.h (visit_constant): Renamed from |
|
7331 visit_octave_value. |
|
7332 (visit_unary_expression): Use tree_expression::is_prefix_op() |
|
7333 instead of switch on op types. |
|
7334 |
|
7335 * pt-walk.h (visit_constant): Renamed from visit_octave_value. |
|
7336 |
|
7337 * pt-misc.cc (initialize_undefined_elements): Get reference to |
|
7338 tmp, then assign. |
|
7339 * pt-cmd.cc (do_for_loop_once): Likewise, for loop identifier. |
|
7340 |
|
7341 * input.cc (generate_struct_completions, looks_like_struct): Cast |
|
7342 tmp_fvc to tree_constant*, not octave_value*. |
|
7343 (get_user_input): Call print() on retval, not eval(1). |
|
7344 |
|
7345 * help.cc (Ftype): Cast defn to tree_constant*, not octave_value*. |
|
7346 |
|
7347 * balance.cc: Fix docstring. |
|
7348 |
|
7349 * dassl.cc, fsolve.cc, load-save.cc, lsode.cc, npsol.cc, qpsol.cc, |
|
7350 quad.cc: |
|
7351 Include pt-fvc.h. |
|
7352 |
|
7353 * data.cc (Fstruct_contains): call octave_value::struct_elt_val, |
|
7354 not octave_value::lookup_map_element. |
|
7355 |
|
7356 * dirfns.cc (Fcd): Pass directory name as string directly to |
|
7357 bind_builtin_variable instead of creating new octave_value. |
|
7358 |
|
7359 * toplev.cc: Include pt-fvc.h and lo-mappers.h |
|
7360 |
|
7361 * data.cc, error.cc, file-io.cc, load-save.cc, pager.cc, |
|
7362 pt-mat.cc, pt-plot.cc, syscalls.cc, toplev.cc: |
|
7363 Include variables.h. |
|
7364 |
|
7365 * Array-tc.cc, Map-tc.cc, SLList-misc.cc SLList-tc.cc, data.cc, |
|
7366 defaults.cc, dynamic-ld.cc, error.cc, gripes.cc, lex.l, octave.cc, |
|
7367 oct-map.h, oct-map.cc, oct-obj.h, pt-cmd.cc, pt-exp.cc, pt-fcn.cc, |
|
7368 pt-fvc-base.cc, pt-mat.cc, pt-misc.cc, pt-mvr-base.cc, pt-mvr.h, |
|
7369 resource.cc, strfns.cc, sysdep.cc, timefns.cc, toplev.cc: |
|
7370 Include ov.h instead of pt-const.h. |
|
7371 |
|
7372 * xpow.cc (any_element_is_negative): Delete. |
|
7373 (xpow and elem_xpow functions): Check conformance here. |
|
7374 |
|
7375 * xdiv.cc (mx_leftdiv_conform, mx_div_conform): |
|
7376 Now template-based, taking Matrices instead of dimensions as args. |
|
7377 Change all callers. |
|
7378 |
|
7379 * op-cm-cm.cc, op-cm-cm.h, op-cm-cs.cc, op-cm-cs.h, op-cm-m.cc, |
|
7380 op-cm-m.h, op-cm-s.cc, op-cm-s.h, op-cs-cm.cc, op-cs-cm.h, |
|
7381 op-cs-cs.cc, op-cs-cs.h, op-cs-m.cc, op-cs-m.h, op-cs-s.cc, |
|
7382 op-cs-s.h, op-m-cm.cc, op-m-cm.h, op-m-cs.cc, op-m-cs.h, op-m-m.cc, |
|
7383 op-m-m.h, op-m-s.cc, op-m-s.h, op-s-cm.cc, op-s-cm.h, op-s-cs.cc, |
|
7384 op-s-cs.h, op-s-m.cc, op-s-m.h, op-s-s.cc, op-s-s.h, |
|
7385 op-str-str.cc, op-str-str.h, ops.cc, ops.h, ov-base.cc, ov-base.h, |
|
7386 ov-ch-mat.cc, ov-ch-mat.h, ov-colon.cc, ov-colon.h, ov-complex.cc, |
|
7387 ov-complex.h, ov-cx-mat.cc, ov-cx-mat.h, ov-range.cc, ov-range.h, |
|
7388 ov-re-mat.cc, ov-re-mat.h, ov-scalar.cc, ov-scalar.h, ov-str-mat.cc, |
|
7389 ov-str-mat.h, ov-struct.cc, ov-struct.h, ov-typeinfo.cc, |
|
7390 ov-typeinfo.h, ov-va-args.cc, ov-va-args.h, ov.cc, ov.h: |
|
7391 New files for Octave's new type system. |
|
7392 * Makefile.in: Add them to the appropriate lists. |
|
7393 |
|
7394 Sat Sep 14 21:58:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7395 |
|
7396 * mkbuiltins: Use .df instead of .def. |
|
7397 Write one function for each .df file, then call them |
|
7398 all in install_builtin_functions(). |
|
7399 * Makefile.in: Handle .df instead of .def. |
|
7400 |
|
7401 * balance.cc (balance): Fix typo in doc string. |
|
7402 |
|
7403 Wed Aug 28 21:01:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7404 |
|
7405 * octave.cc (verbose_usage): Include WWW address and bug-octave |
|
7406 mailing list address. |
|
7407 |
2354
|
7408 Tue Aug 20 17:41:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7409 |
2358
|
7410 * Makefile.in: Only define pattern rules for making .oct files if |
|
7411 OCTAVE_LITE is true. |
|
7412 Only add pic/ to $(TI_OBJ) if $(SHARED_LIBS) is true. |
|
7413 (stamp-picdir): Only create a pic subdirectory if SHARED_LIBS or |
|
7414 OCTAVE_LITE is true AND CPICFLAG or CXXPICFLAG is not empty. |
|
7415 |
2354
|
7416 * minmax.cc (Fmin, Fmax): Deal with changes to Matrix class |
|
7417 min/max methods. |
|
7418 |
2345
|
7419 Thu Jul 25 01:42:38 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7420 |
2348
|
7421 * input.cc (generate_possible_completions): Force the names to be |
|
7422 unique. |
|
7423 |
2345
|
7424 * load-save.cc (read_mat_binary_data): Expect to read terminating |
|
7425 NUL character in the variable name. |
|
7426 (save_mat_binary_data): Likewise, save it here. |
|
7427 |
2341
|
7428 Wed Jul 24 05:08:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7429 |
2343
|
7430 * lsode.cc (Flsode): Don't set the return value if an error |
|
7431 occurred during integration. |
2344
|
7432 * dassl.cc (Fdassl): Likewise. |
2343
|
7433 |
2341
|
7434 * file-io.cc (symbols_of_file_io): Redefine values of SEEK_SET, |
|
7435 SEEK_CUR, and SEEK_END for Matlab compatibility. |
|
7436 * oct-stream.cc (seek): Check for compatible values of ORIGIN arg. |
|
7437 Also handle "bof", "cof", and "eof". |
|
7438 |
2338
|
7439 Fri Jul 19 15:24:36 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7440 |
|
7441 * pt-const.cc: When creating octave_value_reps from ComplexMatrix |
|
7442 values, check to see if all the elements are actually real. |
|
7443 |
2330
|
7444 Tue Jul 16 10:53:42 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7445 |
2341
|
7446 * input.cc (decode_prompt_string): Swap meanings of \h and \H. |
2330
|
7447 |
|
7448 Mon Jul 15 16:01:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7449 |
|
7450 * toplev.cc (run_command_and_return_output): Renamed from do_system. |
|
7451 (Fsystem): Make `system ("emacs")' work as one would expect. |
|
7452 |
|
7453 Sun Jul 14 17:34:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7454 |
|
7455 * file-io.cc (Ffopen, Ffread, Ffwrite): Update doc strings, |
|
7456 correctly handle default architecture and precision args. |
|
7457 |
|
7458 * load-save.cc (mopt_digit_to_float_format): Rename from |
|
7459 get_floating_point_format. |
|
7460 (float_format_to_mopt_digit): New function. |
|
7461 |
|
7462 * oct-stream.cc (octave_base_stream::read, octave_base_stream::write): |
|
7463 Simplify by calling Matrix::read and Matrix::write to do real work |
|
7464 of reading, writing, and format conversion. |
|
7465 |
|
7466 * oct-stream.h (octave_base_stream): Move data_type enum to |
|
7467 liboctave/data-conv.h. Use float_format from |
|
7468 liboctave/mach-info.h instead of arch_type enum. |
|
7469 |
|
7470 * sysdep.h, sysdep.cc (octave_words_big_endian, ten_little_endians): |
|
7471 Delete. Now part of oct_mach_info class in liboctave. |
|
7472 |
|
7473 Tue Jul 9 11:18:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7474 |
|
7475 * arith-ops.cc, balance.cc, dassl.cc, data.cc, filter.cc, find.cc, |
|
7476 fsolve.cc, load-save.cc, log.cc, lsode.cc, minmax.cc, npsol.cc, |
|
7477 oct-obj.cc, oct-stream.cc, pr-output.cc, pt-cmd.cc, pt-const.cc, |
|
7478 pt-fvc.cc, pt-plot.cc, quad.cc, rand.cc, sighandlers.cc, sort.cc, |
|
7479 syscalls.cc, unwind-prot.cc, xdiv.cc, xpow.cc: |
|
7480 When indexing arrays, use operator() instead of elem() so that |
|
7481 bounds checking can be done consistently. |
|
7482 |
|
7483 Mon Jun 24 02:13:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7484 |
|
7485 * Makefile.in (install-oct): Use INSTALL_PROGRAM, instead of |
|
7486 INSTALL_DATA for installing shared libraries. |
|
7487 |
|
7488 * lex.l (grab_help_text): Ignore all initial comment characters, |
|
7489 not just the first. |
|
7490 * variables.cc (gobble_leading_white_space): Likewise. |
|
7491 |
|
7492 Sat Jun 22 22:43:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7493 |
|
7494 * input.h, input.cc (octave_completion_matches_called): New varaible. |
|
7495 (Fcompletion_matches): Set it to true on a successful call. |
|
7496 * toplev.cc (main_loop): If octave_completion_matches_called is |
|
7497 true, don't increment current_command_number. |
|
7498 |
|
7499 Thu Jun 13 03:52:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7500 |
|
7501 * variables.cc (is_mapper_function_name, |
|
7502 is_builtin_function_name): New functions. |
|
7503 (Fdocument): Use them. |
|
7504 Define as regular function, not a text style function. |
|
7505 |
|
7506 Thu Jun 6 00:09:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7507 |
|
7508 * pt-plot.cc: Handle new built-in variable `gnuplot_has_frames'. |
|
7509 |
|
7510 Wed Jun 5 14:45:04 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7511 |
|
7512 * input.cc (decode_prompt_string): \h now means the whole host |
|
7513 name and \H is the host name up to the first `.'. |
|
7514 |
|
7515 Thu May 30 23:41:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7516 |
|
7517 * fn-cache.cc (octave_fcn_file_name_cache::do_list): Always |
|
7518 recompute the lists of function files instead of trying to cache |
|
7519 them. |
|
7520 |
|
7521 Tue May 28 12:05:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7522 |
|
7523 * utils.cc (warn_old_style_preference): New function. |
|
7524 (check_preference): Use it. |
|
7525 |
|
7526 * fn-cache.h: Include <ctime> here. |
|
7527 |
|
7528 Fri May 24 00:57:14 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7529 |
|
7530 * input.cc (completion_matches): Don't return empty string_vectors. |
|
7531 |
|
7532 * octave.cc (long_opts): Add braindead. |
|
7533 |
|
7534 Thu May 23 01:49:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7535 |
|
7536 * input.cc (gnu_readline): New optional arg, force_readline. |
|
7537 (get_user_input): Use it. |
|
7538 |
|
7539 * pt-const.cc (OCT_VAL_REP::assign): If converting the rhs to a |
|
7540 numeric value, convert a copy, not the actual object. |
|
7541 (OCT_VAL_REP::do_index): Prevent s([]) from resulting in a string |
|
7542 with zero rows. |
|
7543 |
|
7544 * mappers.cc: Handle toascii here. |
|
7545 * strfns.cc: Not here. |
|
7546 |
|
7547 * mappers.cc: Handle tolower and toupper here. |
|
7548 * mappers.h: Rename can_return_complex_for_real to flag and |
|
7549 overload meaning for ch_mapper. |
|
7550 * pt-fvc.cc (apply_mapper_fcn): Handle overloaded meaning. |
|
7551 |
|
7552 * syscalls.cc (stat): Return 3 values instead of just 1. |
|
7553 (lstat): Likewise. |
|
7554 |
|
7555 Wed May 22 02:34:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7556 |
|
7557 * pt-const.cc (OCT_VAL_REP::make_numeric): For string to number |
|
7558 conversions, correctly set type tag before calling force_numeric. |
|
7559 (do_binary_op): Force string to number conversion if both args are |
|
7560 strings and we are doing some sort of comparison operation. |
|
7561 |
|
7562 * Makefile.in (stamp-tinst, stamp-interp): Use SH_TERMLIBS and |
|
7563 SH_LIBS instead of TERMLIBS and LIBS. |
|
7564 |
|
7565 * pt-const.cc (do_unary_op): Add special case to handle |
|
7566 transposing strings. |
|
7567 |
|
7568 * pt-mat.cc (Vstring_fill_char): New variable. |
|
7569 (symbols_of_pt_mat): DEFVAR it. |
|
7570 |
|
7571 * input.cc (generate_struct_completions, |
|
7572 generate_possible_completions): Return string_vector, not char **. |
|
7573 Change all callers. |
|
7574 |
|
7575 * pt-const.cc (lookup_map_element): Use substr() correctly. |
|
7576 |
|
7577 Tue May 21 21:37:17 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7578 |
|
7579 * oct.h: New file. |
|
7580 * Makefile.in (INCLUDES): Add it to the list. |
|
7581 |
|
7582 * octave.cc: New args --no-site-file and --no-init-file. Delete |
|
7583 --ignore-init-file. The flag --norc (-f) implies both |
|
7584 --no-site-file and --no-init-file. |
|
7585 |
|
7586 Fri May 17 01:54:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7587 |
|
7588 * input.cc (Fcompletion_matches): New function. |
|
7589 |
|
7590 * utils.cc (get_fcn_file_names): Delete. |
|
7591 * help.cc (simple_help): Use new file name cache instead of |
|
7592 calling get_fcn_file_names. |
|
7593 * variables.cc (make_name_list): Likewise. |
|
7594 |
|
7595 * fn-cache.h, fn-cache.cc, Map-fnc.cc: New files. |
|
7596 * Makefile.in: Add them to the lists. |
|
7597 |
|
7598 * Makefile.in (uninstall): Install in octincludedir, not includedir. |
|
7599 |
|
7600 * pt-plot.h: Include <csignal> here. |
|
7601 |
|
7602 Thu May 16 10:52:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7603 |
|
7604 * oct-stream.cc (octave_stream::oscanf, octave_base_stream::oscanf, |
|
7605 octave_base_stream::do_oscanf): New functions for backward |
|
7606 compatibility with older versions of Octave. |
|
7607 (scanf_format_elt, scanf_format_list): Keep track of width specifier. |
|
7608 * file-io.cc (Fscanf): New function. |
|
7609 (Fscanf, Ffscanf, Fsscanf): Handle compatibility arg. |
|
7610 |
|
7611 Wed May 15 01:00:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7612 |
|
7613 * oct-stream.cc (do_scanf): If doing '%c' conversion, unset |
|
7614 ios::skipws on input stream. |
|
7615 |
|
7616 * sighandlers.h, sighandlers.cc (octave_child, octave_child_list): |
|
7617 New classes for keeping track of the child processes we create. |
|
7618 (sigchld_handler): Check in octave_child_list to see if there is |
|
7619 anything we can do for the child that died. |
|
7620 * pager.cc: Register child pager process. |
|
7621 * pt-plot.cc: Likewise, for the plotter. |
|
7622 * Array-oc.cc: New file |
|
7623 * Makefile.in (TI_SRC): Add it to the list. |
|
7624 |
|
7625 * pager.cc (do_sync): Don't check error_state. |
|
7626 (flushing_output_to_pager): New static variable. |
|
7627 (flush_octave_stdout): Use it to avoid doing anything if already |
|
7628 flushing output. |
|
7629 |
|
7630 * sighandlers.cc (sigchld_handler): Call warning instead of |
|
7631 writing directly to cerr. |
|
7632 (sigpipe_handler): Call warning instead of message. |
|
7633 |
|
7634 * octave.cc (main): Call install_signal_handlers, |
|
7635 initialize_file_io, initialize_symbol_tables, and install_builtins |
|
7636 before parsing command line options. |
|
7637 |
|
7638 * user-prefs.h, user-prefs.cc: Delete. |
|
7639 |
|
7640 * utils.cc (check_preference): Move here. |
|
7641 * user-prefs.cc: From here. |
|
7642 |
|
7643 * defaults.cc: New file. Move initialization stuff from |
|
7644 variables.cc. Move DEFVARS for EDITOR, EXEC_PATH, LOADPATH, |
|
7645 IMAGEPATH, and OCTAVE_VERSION here. |
|
7646 |
|
7647 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
7648 INFO_FILE and INFO_PROGRAM. |
|
7649 * help.cc: Move all of that here. |
|
7650 (symbols_of_help): Add DEFVARS for INFO_FILE and INFO_PROGRAM. |
|
7651 |
|
7652 Tue May 14 00:23:06 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7653 |
|
7654 * pager.cc (do_sync): Be more defensive about sending stuff to the |
|
7655 external pager. |
|
7656 * sighandlers.cc (sigchld_handler): For now, only wait for |
|
7657 octave_pager_pid. Don't call error(). Do set octave_pager_pid to |
|
7658 -1 if the pager process no longer exists. |
|
7659 |
|
7660 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
7661 PWD. |
|
7662 * dirfns.cc: Move all of that here. |
|
7663 (symbols_of_dirfns): New function. |
|
7664 * variables.cc (install_builtin_variables): Call it. |
|
7665 |
|
7666 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
7667 default_save_format and save_precision. |
|
7668 * load-save.cc: Move all of that here. |
|
7669 (symbols_of_load_save): New function. |
|
7670 * variables.cc (install_builtin_variables): Call it. |
|
7671 |
|
7672 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
7673 warn_divide_by_zero. |
|
7674 * arith-ops.cc: Move all of that here. |
|
7675 (symbols_of_arith_ops): New function. |
|
7676 * variables.cc (install_builtin_variables): Call it. |
|
7677 |
|
7678 * mappers.cc: Add wrappers for ctype is* functions so that they |
|
7679 will work on systems that only define them as macros. |
|
7680 |
|
7681 Mon May 13 00:27:08 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7682 |
|
7683 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
7684 suppress_verbose_help_message. |
|
7685 * help.cc: Move all of that here. |
|
7686 (symbols_of_help): New function. |
|
7687 * variables.cc (install_builtin_variables): Call it. |
|
7688 |
|
7689 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
7690 treat_neg_dim_as_zero. |
|
7691 * pt-const.cc: Move all of that here. |
|
7692 |
|
7693 * pager.cc (octave_pager_stream::do_sync): Don't return early if |
|
7694 not interactive. |
|
7695 |
|
7696 * data.h: New file. |
|
7697 * Makefile.in (INCLUDES): Add it to the list. |
|
7698 * data.cc (symbols_of_data): New function. Move definition of I, |
|
7699 Inf, J, NaN, e, eps, i, inf, j, nan, pi, realmin, and realmax here. |
|
7700 * variables.cc: From here. |
|
7701 (install_builtin_variables): Call symbols_of_data. |
|
7702 |
|
7703 * file-io.cc (symbols_of_file_io): New function. Move definition |
|
7704 of SEEK_CUR, SEEK_END, SEEK_SET, stdin, stdout, stderr here. |
|
7705 * variables.cc: From here. |
|
7706 (install_builtin_variables): Call symbols_of_file_io. |
|
7707 |
|
7708 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
7709 do_fortran_indexing, implicit_str_to_num_ok, |
|
7710 ok_to_lose_imaginary_part, prefer_column_vectors, |
|
7711 prefer_zero_one_indexing, print_answer_id_name, |
|
7712 propagate_empty_matrices, resize_on_range_error, and |
|
7713 struct_levels_to_print. |
|
7714 * pt-const.cc: Move all of that here. |
|
7715 (symbols_of_pt_const): New function. |
|
7716 * variables.cc (install_builtin_variables): Call it. |
|
7717 * pt-fvc.cc (tree_identifier::assign): Use Vresize_on_range_error |
|
7718 instead of user_pref.resize_on_range_error here. |
|
7719 * load-save.cc (save_mat_binary_data): Use Vimplicit_str_to_num_ok |
|
7720 instead of user_pref.implicit_str_to_num_ok here. |
|
7721 * utils.cc (empty_arg): Use Vpropagate_empty_matrices instead of |
|
7722 user_pref.propagate_empty_matrices here. |
|
7723 * pt-exp-base.cc (tree_expression::is_logically_true): Likewise.. |
|
7724 |
|
7725 * pt-fcn.cc (symbols_of_pt_fcn): Also move DEFVAR for |
|
7726 default_return_value here. |
|
7727 |
|
7728 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
7729 ps1, ps2, ps4, and completion_append_char. |
|
7730 * input.cc: Move all of that here. |
|
7731 (symbols_of_input): New function. |
|
7732 * variables.cc (install_builtin_variables): Call it. |
|
7733 * pt-pr-code.cc (indent): Use Vps4 instead of user_pref.ps4 here. |
|
7734 * help.cc (Ftype): Also here. |
|
7735 |
|
7736 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
7737 automatic_replot, gnuplot_binary, and gnuplot_has_multiplot. |
|
7738 * pt-plot.cc: Move all of that here. |
|
7739 (symbols_of_pt_plot): New function. |
|
7740 * variables.cc (install_builtin_variables): Call it. |
|
7741 |
|
7742 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
7743 beep_on_error. |
|
7744 * error.cc: Move all of that here. |
|
7745 (symbols_of_error): New function. |
|
7746 * variables.cc (install_builtin_variables): Call it. |
|
7747 |
|
7748 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
7749 empty_list_elements_ok. |
|
7750 * pt-mat.cc: Move all of that here. |
|
7751 (symbols_of_pt_mat): New function. |
|
7752 * variables.cc (install_builtin_variables): Call it. |
|
7753 |
|
7754 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
7755 define_all_return_values, return_last_computed_value, and |
|
7756 silent_functions. |
|
7757 * pt-fcn.cc: Move all of that here. |
|
7758 (symbols_of_pt_fcn): New function. |
|
7759 * variables.cc (install_builtin_variables): Call it. |
|
7760 |
|
7761 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
7762 whitespace_in_literal_matrix. |
|
7763 * lex.l: Move all of that here. |
|
7764 (symbols_of_lex): New function. |
|
7765 * variables.cc (install_builtin_variables): Call it. |
|
7766 |
|
7767 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
7768 warn_assign_as_truth_value, warn_comma_in_global_decl, |
|
7769 warn_function_name_clash, and warn_missing_semicolon. |
|
7770 * parse.y: Move all of that here. |
|
7771 (symbols_of_parse): New function. |
|
7772 * variables.cc (install_builtin_variables): Call it. |
|
7773 |
|
7774 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
7775 output_precision, output_max_field_width, print_empty_dimensions, |
|
7776 and split_long_rows. |
|
7777 * pr-output.cc: Move all of that here. |
|
7778 (symbols_of_pr_output): New function. |
|
7779 * variables.cc (install_builtin_variables): Call it. |
|
7780 |
|
7781 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
7782 page_screen_output, page_output_immediately, and pager_binary. |
|
7783 * pager.cc: Move all of that here. |
|
7784 |
|
7785 * user-prefs.h (check_preference): Provide declaration. |
|
7786 * user-prefs.cc (check_preference): Make external. |
|
7787 |
|
7788 * toplev.cc (Foctave_config_info): New function. |
|
7789 |
|
7790 * oct-conf.h.in: New file |
|
7791 * Makefile.in (oct-conf.h): New target. |
|
7792 Add it to the appropriate lists. |
|
7793 |
|
7794 * sighandlers.cc (sigchld_handler): Don't complain about wait |
|
7795 returning a negative value. |
|
7796 |
|
7797 * file-io.cc (Fsscanf, Fsprintf): Pass true for second arg of |
|
7798 octave_stream constructor. |
|
7799 |
|
7800 * oct-stream.h (octave_stream): New field, preserve. |
|
7801 (octave_stream::~octave_stream): If preserve, don't delete rep. |
|
7802 |
|
7803 * pager.cc (symbols_of_pager): Set default for |
|
7804 page_output_immediately to 0. |
|
7805 |
|
7806 * toplev.cc (do_system): Correctly handle return_output. |
|
7807 Append ends to output_buf before calling str(). |
|
7808 |
|
7809 * variables.cc: If M_PI and M_E are available, use them. |
|
7810 |
|
7811 * mk-oct-links.in (links_dir): If old link exists, delete it first. |
|
7812 |
|
7813 Sun May 12 01:46:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7814 |
|
7815 * Makefile.in (DISTFILES): List defaults.h.in and oct-gperf.h here. |
|
7816 (INCLUDES): Not here. |
|
7817 (install-inc): New target. |
|
7818 (uninstall): Also delete libraries and include files. |
|
7819 (install-inc): If linkdir is a directory, leave it alone. |
|
7820 (TERMLIBS, LIBPLPLOT, LIBDLFCN): Don't substitute here (now in |
|
7821 Makeconf). |
|
7822 |
|
7823 * oct-stream.cc (octave_base_stream::do_read): Provide initial |
|
7824 value for tmp var. |
|
7825 |
|
7826 * pt-walk.h, pt-pr-code.h, pt-pr-code.cc: New tree-walking classes. |
|
7827 * Makefile.in: Add them to the appropriate lists. |
|
7828 * pt-fvc-base.h, pt-exp-base.cc, pt-fvc-base.cc, pt-mvr-base.cc, |
|
7829 pt-base.cc, pt-mvr.cc, pt-mat.h, pt-mat.cc, pt-fvc.cc, |
|
7830 pt-const.cc, pt-cmd.cc, pt-const.h, pt-misc.cc, pt-plot.cc, |
|
7831 pt-fcn.cc, pt-plot.h, pt-mvr.h, pt-mvr-base.h, pt-misc.h, |
|
7832 pt-fcn.h, pt-exp.h, pt-exp.cc, pt-exp-base.h, pt-fvc.h, pt-cmd.h, |
|
7833 pt-base.h: |
|
7834 Replace print_code stuff with accept() functions. |
|
7835 Add member access functions where necessary. |
|
7836 * help.cc (Ftype): Update to use new method of walking trees to |
|
7837 print text representation of user-defined functions. |
|
7838 |
|
7839 * file-io.cc (Ffscanf): Update doc string. |
|
7840 (Fsscanf): Likewise. |
|
7841 |
|
7842 * oct-stream.cc (octave_base_stream::do_read): Correctly set max_size. |
|
7843 Pad mval with zeros on final resize. |
|
7844 (octave_base_stream::do_scanf): Likewise. |
|
7845 (do_scanf_conv): Correctly resize mval. |
|
7846 |
|
7847 Sat May 11 05:14:09 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7848 |
|
7849 * pager.cc (octave_pager_buf::sync): Correctly set bypass_pager. |
|
7850 |
|
7851 * lex.l (<MATRIX>{SNLCMT}*\]{S}*): Match SNLCMT, not just SNL. |
|
7852 |
|
7853 Fri May 3 11:05:30 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7854 |
|
7855 * pt-const.cc (OCT_VAL_REP::set_index): Complain if type can't be |
|
7856 indexed. |
|
7857 |
|
7858 * input.cc (get_user_input): Don't increment input line number if |
|
7859 input is coming from eval string. |
|
7860 |
|
7861 * user-prefs.cc: Allow empty strings for prompts. |
|
7862 |
|
7863 Thu May 2 10:50:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7864 |
|
7865 * pt-mvr.h (class tree_oct_obj): Declare values data member const. |
|
7866 |
|
7867 Sun Apr 28 03:16:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7868 |
|
7869 * user-prefs.h (user_preferences): New field, |
|
7870 `page_output_immediately'. |
|
7871 * user-prefs.cc (init_user_prefs): Initialize it. |
|
7872 (page_output_immediately): New function. |
|
7873 * pager.cc (syms_of_pager): Add DEFVAR. |
|
7874 (really_flush_to_pager): New file-scope variable. |
|
7875 (flush_octave_stdout): Set and restore it. |
|
7876 (octave_pager_buf::sync): Check it, user_pref.page_screen_output, |
|
7877 and user_pref.page_output_immediately to decide when to really |
|
7878 flush output. |
|
7879 (more_than_a_screenful): New function. If paging but not |
|
7880 immediately, then check this too. |
|
7881 |
|
7882 * pager.cc (default_pager): Move here from variables.cc. If pager |
|
7883 is less and LESS is not in the environment, append useful flags. |
|
7884 (symbols_of_pager): New function. |
|
7885 * variables.cc (install_builtin_variables): Call it. |
|
7886 Delete pager-related DEFVARs. |
|
7887 |
|
7888 * syswait.h (WIFSIGNALLED): Define if sys/wait.h doesn't. |
|
7889 |
|
7890 * sighandlers.cc: Handle SIGCHLD. |
|
7891 |
|
7892 * pager.cc, pager.h: Rewrite. |
|
7893 * pt-mvr.cc, pt-misc.cc, pt-fcn.cc, pt-const.cc, oct-hist.cc, |
|
7894 file-io.cc, help.cc, variables.cc, qpsol.cc, dassl.cc, quad.cc, |
|
7895 npsol.cc, lsode.cc, fsolve.cc, load-save.cc, dirfns.cc, octave.cc, |
|
7896 toplev.cc, error.cc, input.cc: |
|
7897 Write to octave_stdout and octave_diary instead of calling |
|
7898 maybe_page_output() or maybe_write_to_diary_file(). |
|
7899 |
|
7900 * oct-procbuf.h, oct-procbuf.cc: New files. |
|
7901 * procstream.h (class procstreambase): Use octave_procbuf instead |
|
7902 of procbuf from libg++, so we can get pids of subprocesses. |
|
7903 |
|
7904 Fri Apr 26 01:21:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7905 |
|
7906 * pt-const.cc (OCT_VAL_REP::do_index): Call maybe_mutate() before |
|
7907 returning. |
|
7908 |
|
7909 * mappers.h (struct Mapper_fcn): Delete. |
|
7910 (struct builtin_mapper_function): New field ch_mapper. |
|
7911 * pt-fvc.h (tree_builtin): Convert type of mapper_fcn from |
|
7912 Mapper_fcn to builtin_mapper_function. |
|
7913 * variables.cc (install_builtin_mapper): Likewise, for arg. |
|
7914 Simplify, since we don't have to do the copying ourselves now. |
|
7915 * pt-fvc.cc (apply_mapper_function): Handle ch_mapper case. |
|
7916 * defun.h (DEFUN_MAPPER): Likewise. |
|
7917 * mappers.cc (install_builtin_mappers): Likewise. |
|
7918 Add ctype is* functions here. |
|
7919 |
|
7920 Thu Apr 25 00:57:06 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7921 |
|
7922 * arith-ops.h, defun-int.h, defun.h, dynamic-ld.h, gripes.h, |
|
7923 load-save.h, oct-map.h, oct-obj.h, oct-stream.h, pt-cmd.h, |
|
7924 pt-const.h, pt-exp-base.h, pt-exp.h, pt-fcn.h, pt-fvc-base.h, |
|
7925 pt-fvc.h, pt-mat.h, pt-misc.h, pt-mvr-base.h, pt-mvr.h, pt-plot.h, |
|
7926 symtab.h, toplev.h, utils.h, variables.h, xpow.h, Array-tc.cc, |
|
7927 Map-i.cc, Map-tc.cc, SLList-tc.cc, arith-ops.cc, balance.cc, |
|
7928 bogus.cc, chol.cc, colloc.cc, dassl.cc, data.cc, det.cc, |
|
7929 dirfns.cc, eig.cc, error.cc, expm.cc, fft.cc, fft2.cc, file-io.cc, |
|
7930 filter.cc, find.cc, fsolve.cc, fsqp.cc, givens.cc, gripes.cc, |
|
7931 help.cc, hess.cc, ifft.cc, ifft2.cc, input.cc, inv.cc, |
|
7932 load-save.cc, log.cc, lpsolve.cc, lsode.cc, lu.cc, minmax.cc, |
|
7933 npsol.cc, oct-hist.cc, oct-obj.cc, oct-stream.cc, pager.cc, |
|
7934 pinv.cc, pr-output.cc, pt-cmd.cc, pt-const.cc, pt-exp-base.cc, |
|
7935 pt-exp.cc, pt-fcn.cc, pt-fvc-base.cc, pt-fvc.cc, pt-mat.cc, |
|
7936 pt-misc.cc, pt-mvr-base.cc, pt-mvr.cc, pt-plot.cc, qpsol.cc, |
|
7937 qr.cc, quad.cc, qzval.cc, rand.cc, resource.cc, schur.cc, sort.cc, |
|
7938 strfns.cc, svd.cc, syl.cc, symtab.cc, syscalls.cc, sysdep.cc, |
|
7939 timefns.cc, toplev.cc, utils.cc, variables.cc, xpow.cc, parse.y: |
|
7940 Rename tree_constant -> octave_value. |
|
7941 Rename Octave_object -> octave_value_list. |
|
7942 |
|
7943 Wed Apr 24 22:15:34 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7944 |
|
7945 * toplev.cc (Fsystem): Merge functionality of async_system and |
|
7946 sync_system. |
|
7947 |
|
7948 * oct-fstrm.h, oct-iostrm.h, oct-prcstrm.h, oct-stdstrm.h, |
|
7949 oct-stream.h, oct-strstrm.h, oct-fstrm.cc, oct-iostrm.cc, |
|
7950 oct-prcstrm.cc, oct-stdstrm.cc, oct-stream.cc, oct-strstrm.cc, |
|
7951 Array-os.cc: New files. |
|
7952 * Makefile.in: Add them to the appropriate lists. |
|
7953 * file-io.cc: Rewrite to use new stream classes. |
|
7954 |
|
7955 Tue Apr 23 18:59:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7956 |
|
7957 * gripes.cc (gripe_not_supported): New function. |
|
7958 |
|
7959 * toplev.cc (do_octave_atexit, Fatexit): New functions. |
|
7960 (octave_atexit_functions): New file-scope variable. |
|
7961 * octave.cc (main): Register do_octave_atexit with atexit. |
|
7962 |
|
7963 * variables.cc (install_builtin_variables): Call |
|
7964 symbols_of_syscalls here. |
|
7965 |
|
7966 * syscalls.h, syscalls.cc: New files. |
|
7967 |
|
7968 Mon Apr 22 21:14:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7969 |
|
7970 * syscalls.cc: New file. |
|
7971 (Flstat, Fmkfifo, Fstat, Funlink, Fwait, Fwaitpid): Move here. |
|
7972 * file-io.cc: From here. |
|
7973 * Makefile.in (SOURCES): Add syscalls.cc to the list. |
|
7974 |
|
7975 Wed Apr 17 18:34:10 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7976 |
|
7977 * file-info.h, file-info.cc: Delete files. |
|
7978 * Makefile.in: Remove from lists. |
|
7979 |
|
7980 * toplev.cc (Fquit): Accept exit status argument. |
|
7981 (Fflops): Delete (now a function file). |
|
7982 |
|
7983 Thu Apr 11 16:20:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7984 |
|
7985 * lex.l: Recognize `.'. |
|
7986 Update current_input_column even for unrecognized characters. |
|
7987 Return LEXICAL_ERROR for unrecognized characters. |
|
7988 |
|
7989 Mon Apr 8 19:59:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7990 |
|
7991 * variables.cc (install_builtin_variables): Split into several |
|
7992 functions to make compiling with g++ go faster and consume less |
|
7993 memory. |
|
7994 |
|
7995 Sun Apr 7 16:25:35 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
7996 |
|
7997 * load-save.cc (Fsave): Print usage if i == argc. |
|
7998 (Fload): Likewise. |
|
7999 |
|
8000 Sat Apr 6 21:26:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8001 |
|
8002 * Makefile.in (clean): Also delete pic/*.o |
|
8003 (maintainer-clean, distclean): Also remove stamp-picdir, |
|
8004 stamp-tinst, stamp-interp, and pic directory. |
|
8005 (stamp-prereq): New target. |
|
8006 |
|
8007 Wed Apr 3 11:19:30 1996 Rick Niles <niles@axp745.gsfc.nasa.gov> |
|
8008 |
|
8009 * resource.cc: Don't make including sys/resource.h and sys/times.h |
|
8010 mutually exclusive. |
|
8011 |
|
8012 Fri Mar 29 13:43:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8013 |
|
8014 * Makefile.in (distclean): Delete so_locations, which is created |
|
8015 on DEC Alpha systems. |
|
8016 |
|
8017 Thu Mar 28 02:53:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8018 |
|
8019 * utils.h (undo_string_escape): Provide extern declaration here. |
|
8020 |
|
8021 * lex.l (NL): Allow \r\n as new line character. |
|
8022 (.): Complain if invalid character is found on input |
|
8023 |
|
8024 Fri Mar 22 03:47:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8025 |
|
8026 * resource.cc (getrusage): If getrusage is missing, try using |
|
8027 times to at least fill in the cpu time values. If neither one is |
|
8028 available, return 0 for cpu times instead of NaN. |
|
8029 |
|
8030 * sighandlers.cc (octave_signal_mask): New file-scope variable. |
|
8031 (octave_save_signal_mask, octave_restore_signal_mask): New functions. |
|
8032 * toplev.cc (main_loop): Use them. |
|
8033 |
|
8034 Wed Mar 20 01:21:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8035 |
|
8036 * utils.cc (get_fcn_file_names (const string&, int)): Resize |
|
8037 retval to value of k, not i. |
|
8038 (get_fcn_file_names (int)): In loop for copying names to retval, |
|
8039 don't increment j twice. |
|
8040 |
|
8041 Mon Mar 18 22:27:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8042 |
|
8043 * Makefile.in ($(MAKEDEPS)): Depend on oct-gperf.h. |
|
8044 |
|
8045 Fri Mar 1 18:15:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8046 |
|
8047 * fsolve.cc (fsolve_options): Delete unused argument nargout. |
|
8048 |
|
8049 * filter.cc: Use MArray instead of Array so that automatic |
|
8050 conversions will work again. |
|
8051 |
|
8052 Tue Feb 27 04:49:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8053 |
|
8054 * variables.cc (looks_like_octave_copyright): Make the strings |
|
8055 that we are trying to match both have length 29. |
|
8056 |
|
8057 * Makefile.in (install-bin): Use $(INSTALL_PROGRAM), not $(INSTALL). |
|
8058 |
|
8059 * load-save.cc (read_mat_binary_data): Make sure name is |
|
8060 NUL terminated. |
|
8061 |
|
8062 Mon Feb 26 18:18:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8063 |
|
8064 * variables.cc (whos): Make argv from tmp_args, not args. |
|
8065 |
|
8066 * defun.h (DEFCONSTX): Don't stringify name. |
|
8067 |
|
8068 Sat Feb 24 01:12:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8069 |
|
8070 * Makefile.in (install-oct): Make mk-oct-links executable. |
|
8071 * mk-oct-links.in (links_dir): Update to match new format of |
|
8072 DEFUN_DLD_BUILTIN macro. Use LN_S, not just LN. |
|
8073 (links_dir): |
|
8074 |
|
8075 * pr-output.cc (octave_print_internal): New arg, extra_indent, for |
|
8076 versions of this function that take matrices and ranges. |
|
8077 * pt-const.cc (TC_REP::print (ostream&)): Fix printing of structures. |
|
8078 Pass struct_indent to octave_print_internal as appropriate. |
|
8079 (print_with_name (ostream&, const string&, bool)): Handle spacing |
|
8080 around `=' differently for structures. |
|
8081 |
|
8082 Fri Feb 23 04:51:04 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8083 |
|
8084 * token.cc (token (double, const string&, int, int)): Store orig_text. |
|
8085 |
|
8086 Tue Feb 20 20:36:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8087 |
|
8088 * variables.cc (Fclear): Fix off-by-one error. |
|
8089 |
|
8090 Sat Feb 17 16:54:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8091 |
|
8092 * oct-hist.cc (default_history_file): Append "/.octave_hist" to |
|
8093 return value, not to home_directory. |
|
8094 |
|
8095 Fri Feb 16 18:10:46 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8096 |
|
8097 * utils.cc: (NINT, D_NINT): Move to liboctave. |
|
8098 |
|
8099 * sysdep.cc (octave_ieee_init): Move to liboctave. |
|
8100 |
|
8101 * procstream.h, procstream.cc: Rewrite. |
|
8102 |
|
8103 * pager.cc (cleanup_oprocstream): New static function. |
|
8104 * toplev.cc (cleanup_iprocstream): Likewise. |
|
8105 * dirfns.cc (cleanup_iprocstream): Likewise. |
|
8106 |
|
8107 * unwind-prot.cc (matrix_cleanup, complex_matrix_cleanup): Delete. |
|
8108 |
|
8109 Thu Feb 15 22:03:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8110 |
|
8111 * oct-obj.cc, oct-obj.h: Move most code to the header. |
|
8112 |
|
8113 * oct-obj.cc (make_argv, all_strings): New member functions. |
|
8114 * utils.cc: Moved from here. |
|
8115 |
|
8116 * load-save.cc: Move byte swapping stuff to liboctave. |
|
8117 Move float format conversion stuff to liboctave. |
|
8118 (all_parts_int, too_large_for_float): Move to liboctave. |
|
8119 |
|
8120 * symtab.cc (valid_identifier): Move here. |
|
8121 * load-save.cc: From here. |
|
8122 |
|
8123 * sysdep.cc: Move floating-point format stuff to liboctave. |
|
8124 * pr-output.cc: Include float-fmt.h here. |
|
8125 |
|
8126 Wed Feb 14 01:49:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8127 |
|
8128 * defun.h, defun-dld.h, defun-int.h: Simplify interface for DEFUN, |
|
8129 DEFUN_DLD, DEFVAR, and DEFCONST macros. Change all uses. |
|
8130 |
|
8131 * qzval.cc: Move guts to liboctave. |
|
8132 |
|
8133 Tue Feb 13 10:28:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8134 |
|
8135 * variables.cc (parse_fcn_file): Also avoid saving history if |
|
8136 input is from a script file. |
|
8137 |
|
8138 * help.cc (Ftype): Call unwind_protect_str for user_pref.ps4. |
|
8139 |
|
8140 * npsol.cc (nonlinear_constraints_ok): Now static. |
|
8141 |
|
8142 * npsol.cc (linear_constraints_ok): Now static. |
|
8143 * qpsol.cc (linear_constraints_ok): Duplicate here. |
|
8144 |
|
8145 * data.cc (Flinspace): Don't print usage message if nargin == 2. |
|
8146 |
|
8147 Sun Feb 11 14:20:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8148 |
|
8149 * mk-oct-links.in: Rename from mk-oct-links. |
|
8150 (LN_S): Use this variable instead of ln. |
|
8151 Set -e option for shell. |
|
8152 Exit with status of last command. |
|
8153 Print message when making link. |
|
8154 * Makefile.in (DISTFILES): Add mk-oct-links.in to the list. |
|
8155 (install-oct): Run ./mk-oct-links, not $(srcdir)/mk-oct-links. |
|
8156 |
|
8157 * variables.cc (install_builtin_variables): Restore accidentally |
|
8158 deleted DEFVAR for save_precision. |
|
8159 |
|
8160 Fri Feb 9 11:24:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8161 |
|
8162 * Makefile.in (INCLUDES): Delete statdefs.h from the list (it's |
|
8163 now in the liboctave directory). |
|
8164 |
|
8165 * toplev.cc (toplevel): Define here. |
|
8166 * octave.cc (toplevel): Not here. |
|
8167 |
|
8168 * toplev.cc (main_loop): New function. |
|
8169 * octave.cc (main): Call it here instead of doing main loop |
|
8170 actions here. |
|
8171 |
|
8172 * user-prefs.cc (do_fortran_indexing): Also set liboctave_dfi_flag. |
|
8173 (prefer_column_vectors): Also set liboctave_pcv_flag. |
|
8174 (prefer_zero_one_indexing): Also set liboctave_pzo_flag. |
|
8175 (resize_on_range_error): Also set liboctave_rre_flag. |
|
8176 |
|
8177 * variables.cc (restore_command_history): New function. |
|
8178 (parse_fcn_file): Use it here in unwind_protect. |
|
8179 |
|
8180 * dynamic-ld.cc (load_octave_oct_file): Reverse sense of test. |
|
8181 (load_octave_builtin): Delete. |
|
8182 (mangle_octave_oct_file_name): Delete. |
|
8183 |
|
8184 * pt-fvc.cc (tree_builtin::eval): Don't try to dynamically load |
|
8185 functions here. |
|
8186 |
|
8187 * pr-output.cc (set_format_style): Decrement argc for first arg too. |
|
8188 |
|
8189 * input.cc (gnu_readline): If readline returns an empty string, |
|
8190 convert it to a string containing a single newline character. |
|
8191 |
|
8192 * octave.cc (octave_argv): Now a static string_vector. |
|
8193 (intern_argv): Use string_vector ops, not charMatrix ops. |
|
8194 * toplev.cc (octave_argv): Delete definition. |
|
8195 * toplev.h (octave_argv): Delete declaration. |
|
8196 |
|
8197 Thu Feb 8 10:58:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8198 |
|
8199 * Makefile.in (conf-dist): New target. |
|
8200 |
|
8201 Tue Feb 6 10:59:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8202 |
|
8203 * help.cc (Ftype): Correctly handle structure names. |
|
8204 |
|
8205 Sun Feb 4 02:02:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8206 |
|
8207 * qpsol.cc (Fqpsol): Call set_options(), not copy() to set |
|
8208 options for QPSOL objects. |
|
8209 |
|
8210 * npsol.cc (Fnpsol): Call set_options(), not copy() to set |
|
8211 options for NPSOL objects. |
|
8212 |
|
8213 * quad.cc (Fquad): Call set_options(), not copy() to set |
|
8214 options for Quad objects. |
|
8215 |
|
8216 * dynamic-ld.cc (load_octave_builtin): Don't call destructor on string. |
|
8217 (load_octave_oct_file): Likewise. |
|
8218 Check oct_file.empty(), not just oct_file. |
|
8219 |
|
8220 * fsolve.cc (Ffsolve): Call set_options(), not copy() to set |
|
8221 options for NLEqn object. |
|
8222 |
|
8223 * variables.cc (do_who): Properly set match patterns from argument |
|
8224 vector for call to maybe_list. |
|
8225 |
|
8226 Sat Feb 3 03:29:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8227 |
|
8228 * octave.cc (long_opts): Properly set second field using new enum. |
|
8229 |
|
8230 * lsode.cc: Change ODE to LSODE where appropriate. |
|
8231 Use LSODE_options, not ODE_options. |
|
8232 |
|
8233 * dassl.cc: Change DAE to DASSL where appropriate. |
|
8234 Use DASSL_options, not ODE_options. |
|
8235 |
|
8236 Fri Feb 2 01:41:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8237 |
|
8238 * dirfns.cc: Include unistd.h. |
|
8239 |
|
8240 * parse.y, lex.l: Handle matrix lists without ml or mlnm stacks. |
|
8241 * pt-mat.h, pt-mat.cc (tree_matrix): |
|
8242 Rewrite to use SLList instead of home brew list. |
|
8243 * SLList-tm.cc: New file |
|
8244 * Makefile.in: Add it to the lists. |
|
8245 * SLStack-tm.cc: Delete. |
|
8246 * Makefile.in: Delete it from the lists. |
|
8247 |
|
8248 * All pt-* files: Use bool instead of int where appropriate. |
|
8249 |
|
8250 * Makefile.in (DEP_SOURCES_3): Add octave.cc. |
|
8251 |
|
8252 * pt-const.h (class tree_constant::tree_constant_rep): Make |
|
8253 everything in this class public, then it doesn't need to declare |
|
8254 the tree_constant class as a friend. |
|
8255 |
|
8256 Thu Feb 1 01:42:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8257 |
|
8258 * lex.h, lex.l, parse.h, parse.y (class lexical_feedback): New |
|
8259 class for lexer flags. Replace lots of global vars with members |
|
8260 of this class. |
|
8261 |
|
8262 * lex.l (class brace_paren_nesting_level): New class to replace |
|
8263 nesting_level stack. nesting_level is now an instance of this |
|
8264 class. |
|
8265 |
|
8266 * lex.l (yum_yum): New typedef. |
|
8267 (ATE_NOTHING): New global var. |
|
8268 (ATE_SPACE_OR_TAB, ATE_NEWLINE): Don't #define these, declare them |
|
8269 as const yum_yum. |
|
8270 (eat_whitespace, eat_continuation): Return yum_yum, not int. |
|
8271 |
|
8272 * lex.l (SHORT_CIRCUIT_LOGICALS): Delete. Always do this for || |
|
8273 and && tokens. |
|
8274 (yy_flex_alloc, yy_flex_realloc, yy_flex_free, next_char_is_space): |
|
8275 Delete. |
|
8276 |
|
8277 * toplev.cc (verbose_flag): Delete definition. |
|
8278 * toplev.h (verbose_flag): And declaration. |
|
8279 * octave.cc (verbose_flag): Now static. |
|
8280 |
|
8281 * lex.l (lookup_identifier): Arg is now string, not char*. |
|
8282 (handle_identifier, is_plot_keyword, is_keyword): Likewise. |
|
8283 (strip_trailing_whitespace): Return value is now string, not char*. |
|
8284 (plot_style_token): Likewise, for both arg and return value. |
|
8285 |
|
8286 * input.cc (octave_gets_line): Delete. |
|
8287 (gnu_readline, octave_gets, octave_read): |
|
8288 Properly handle input when using_readline is either true or false. |
|
8289 Don't limit length of input lines to flex buffer size. |
|
8290 (get_user_input): New function. |
|
8291 |
|
8292 * octave.cc (main): Handle --no-line-editing. |
|
8293 * toplev.h (using_readline): Provide external declaration here. |
|
8294 * input.h: Not here. |
|
8295 * toplev.cc (using_readline): Define here. |
|
8296 * input.cc: Not here. |
|
8297 |
|
8298 * toplev.h (no_line_editing): Delete declaration. |
|
8299 * input.cc (no_line_editing): Delete definition. |
|
8300 |
|
8301 Wed Jan 31 05:28:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8302 |
|
8303 * input.cc (DEFAULT_ARRAY_SIZE, PROMPT_GROWTH): Delete definitions |
|
8304 of unused macros. |
|
8305 (read_octal): Now static. |
|
8306 |
|
8307 * givens.cc (Fgivens): Use new functions from matrix classes |
|
8308 instead of calling Fortran functions directly. |
|
8309 * syl.cc (Fsyl): Likewise. |
|
8310 * expm.cc (Fexpm): Likewise. |
|
8311 |
|
8312 Mon Jan 29 00:00:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8313 |
|
8314 * octave.cc: Use new prog_args class instead of calling getopt |
|
8315 directly. |
|
8316 |
|
8317 * getopt.h, getopt.c, getopt1.c: Move to liboctave directory. |
|
8318 * Makefile: Remove from lists. |
|
8319 |
|
8320 * utils.cc (strconcat, read_until, discard_until): Delete. |
|
8321 |
|
8322 * pager.cc (terminal_columns, terminal_rows): Move to |
|
8323 liboctave/oct-term.cc. |
|
8324 * pager.cc, pr-output.cc: Include oct-term.h. |
|
8325 |
|
8326 * utils.cc (list_in_columns): Moved to liboctave/str-vec.cc. |
|
8327 Change all callers to use new member function syntax. |
|
8328 |
|
8329 * dirfns.cc (absolute_program): Now static. |
|
8330 (absolute_pathname): Delete. |
|
8331 |
|
8332 * pt-plot.cc (save_in_tmp_file): Call oct_tempnam, not |
|
8333 octave_tmp_file_name. Include file-ops.h. |
|
8334 * file-io.cc (do_scanf, Foctave_tmp_file_name): Likewise. |
|
8335 * oct-hist.cc (mk_tmp_hist_file): Likewise. |
|
8336 |
|
8337 * file-io.cc (Foctave_tmp_file_name): Move here. |
|
8338 * utils.cc: From here. |
|
8339 |
|
8340 * utils.cc (octave_tmp_file_name): Move to liboctave/file-ops.cc. |
|
8341 |
|
8342 * tempname.c, tempnam.c: Move to liboctave directory. |
|
8343 * Makefile.in: Remove from lists. |
|
8344 |
|
8345 Sun Jan 28 19:00:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8346 |
|
8347 * xdiv.cc (all xdiv functions): Return Matrix or ComplexMatrix, |
|
8348 not tree_constant. |
|
8349 |
|
8350 * oct-hist.h, oct-hist.cc, toplev.cc, octave.cc, input.cc, |
|
8351 file-io.cc, user-prefs.cc: Rewrite to use new command_history |
|
8352 class instead of calling readline history functions directly. |
|
8353 |
|
8354 * utils.cc (get_fcn_file_names): Delete num arg. |
|
8355 |
|
8356 Thu Jan 25 20:33:54 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8357 |
|
8358 * load-save.cc (matches_patterns): Use new glob_match class |
|
8359 instead of calling fnmatch directly. |
|
8360 * symtab.cc (matches_patterns, symbol_table::glob): Likewise. |
|
8361 * variables.cc (Fclear): Likewise. |
|
8362 |
|
8363 Wed Jan 24 02:05:22 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8364 |
|
8365 * fnmatch.h fnmatch.c: Delete. |
|
8366 * Makefile.in: Add glob stuff in the appropriate places, remove |
|
8367 fnmatch.h and fnmatch.c from lists. |
|
8368 |
|
8369 * octave.cc (program_invocation_name, program_invocation_short_name): |
|
8370 Maybe declare. |
|
8371 (initialize_globals): Maybe initialize them. |
|
8372 |
|
8373 * octave.cc (initialize_pathsearch): Define here, not in pathsearch.cc. |
|
8374 * pathsearch.h, pathsearch.cc: Remove files. |
|
8375 * Makefile.in: Remove them from the lists. |
|
8376 |
|
8377 * help.cc (simple_help): Ignore directories that don't have any .m |
|
8378 or .oct files. |
|
8379 |
|
8380 * utils.cc (search_path_for_file): Use new dir_path class instead |
|
8381 of calling kpathsea routines directly. |
|
8382 (get_fcn_file_names): Likewise. |
|
8383 * help.cc (simple_help): Likewise. |
|
8384 |
|
8385 * dirfns.cc (make_absolute): Don't convert empty arg to "./". |
|
8386 |
|
8387 * sysdir.h: Move to liboctave directory. |
|
8388 * Makefile.in: Remove from lists. |
|
8389 |
|
8390 * dirfns.cc (Freaddir): Use new dir_entry class instead of calling |
|
8391 readdir directly. Include dir-ops.h, not sysdir.h. |
|
8392 * utils.cc (get_fcn_file_names): Likewise. Delete unnecessary |
|
8393 first arg, change all callers. |
|
8394 |
|
8395 Tue Jan 23 00:43:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8396 |
|
8397 * safe-xstat.hin, safe-xstat.cin, statdefs.h, file-ops.h, |
|
8398 file-ops.cc, filemode.c, mkdir.c, rmdir.c, rename.c: |
|
8399 Files moved to liboctave directory. |
|
8400 * Makefile.in: Remove them from lists. Move appropriate rules. |
|
8401 |
|
8402 * acosh.c, asinh.c, atanh.c, erf.c, erfc.c, gamma.c, lgamma.c: |
|
8403 Files moved to liboctave directory. |
|
8404 * Makefile.in: Remove them from lists. |
|
8405 * missing-math.h: Deleted. |
|
8406 * pr-output.cc, sysdep.cc, minmax.cc, mappers.cc, expm.cc, |
|
8407 arith-ops.cc: Include oct-math.h, not cmath or missing-math.h. |
|
8408 |
|
8409 Mon Jan 22 19:33:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8410 |
|
8411 * variables.cc (Fexist): Use file_stat instead of calling stat |
|
8412 directly. Include file-ops.h, not statdefs.h. |
|
8413 * octave.cc (execute_startup_files): Likewise. |
|
8414 * file-io.cc (file_io_get_file, fopen_internal, popen_internal, Fstat): |
|
8415 Likewise. |
|
8416 (mk_stat_map): Likewise, use file_stat object, not struct stat. |
|
8417 * oct-hist.cc (do_history): Likewise. |
|
8418 |
|
8419 * file-ops.h, file-stat.cc: New files. |
|
8420 * Makefile.in: Include them. |
|
8421 * dirfns.cc: Delete is_newer. Don't include statdefs.h. |
|
8422 * toplev.cc: Don't include statdefs.h. |
|
8423 |
|
8424 Sun Jan 21 22:48:03 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8425 |
|
8426 * pt-mvr.h, pt-fvc.h, Map.cc, Map.h, dynamic-ld.h, |
|
8427 pt-fvc-base.cc, SLList-str.cc, pt-fcn.h, pt-fvc-base.h, |
|
8428 SLStack-str.cc, pt-mvr.cc, pt-exp.cc, token.h, token.cc, |
|
8429 user-prefs.h, pt-base.cc, user-prefs.cc, dirfns.h, sysdep.h, |
|
8430 sysdep.cc, input.h, parse.h, lex.l, parse.y, defun.h, mappers.h, |
|
8431 pt-fvc.cc, pt-plot.h, load-save.h, octave.cc, defun-int.h, help.h, |
|
8432 variables.h, oct-map.h, oct-obj.h, oct-obj.cc, pt-const.cc, |
|
8433 oct-map.cc, input.cc, symtab.h, pt-const.h, pathsearch.cc, |
|
8434 pr-output.h, pr-output.cc, toplev.h, timefns.cc, schur.cc, |
|
8435 pt-plot.cc, pager.cc, load-save.cc, dynamic-ld.cc, dirfns.cc, |
|
8436 data.cc, file-info.h, file-info.cc, colloc.cc, utils.h, qpsol.cc, |
|
8437 quad.cc, npsol.cc, lsode.cc, fsolve.cc, dassl.cc, file-io.cc, |
|
8438 help.cc, utils.cc, oct-hist.h, oct-hist.cc, symtab.cc, toplev.cc, |
|
8439 pt-fcn.cc, unwind-prot.h, unwind-prot.cc, variables.cc: |
|
8440 Most functions in these files that deal with character strings |
|
8441 have been converted to use the string class insatead of char*. If |
|
8442 you want more detailed information, you'll have to figure it out |
|
8443 for yourself. |
|
8444 |
|
8445 Sat Jan 20 18:19:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8446 |
|
8447 * dynamic-ld.cc [WITH_DL]: Define RTLD_LAZY to be 1 if it is not |
|
8448 already defined. |
|
8449 |
|
8450 Sun Jan 14 07:48:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8451 |
|
8452 * pt-const.cc (print_as_scalar, print_as_structure): |
|
8453 Make these member functions. |
|
8454 (tree_constant::print_with_name): New function, moved here from |
|
8455 old tree-expr.cc file (where it was called print_constant) and |
|
8456 converted to member function. Change all callers. |
|
8457 |
|
8458 Fri Jan 12 01:54:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8459 |
|
8460 * octave.cc (initialize_globals): Don't do kpathsearch stuff here. |
|
8461 (main): Call initialize_pathsearch() here. |
|
8462 |
|
8463 * pathsearch.cc: New file. |
|
8464 * Makefile.in (SOURCES): Add it to the list |
|
8465 |
|
8466 * oct-hist.h: Rename from octave-hist.h. |
|
8467 * oct-hist.cc: Rename from octave-hist.cc. |
|
8468 * Makefile.in, parse.y, other .cc files: Cope with it. |
|
8469 |
|
8470 * dynamic-ld.cc: Avoid warnings if !WITH_DYNAMIC_LINKING. |
|
8471 |
|
8472 * load-save.cc (save_ascii_data): string::data() returns const char*. |
|
8473 |
|
8474 * utils.h: Don't provide forward declaration for tree_constant. |
|
8475 |
|
8476 * oct-obj.h: Don't include mx-base.h or provide forward |
|
8477 declarations for Matrix and Range types. |
|
8478 |
|
8479 * file-info.h: Don't include oct-obj.h. Do include cstdio. |
|
8480 |
|
8481 * symtab.h: Don't provide forward declaration for ostream. |
|
8482 |
|
8483 * variables.h: Don't provide forward declarations for istream, |
|
8484 ostrstream, tree, builtin_function, or builtin_variable objects. |
|
8485 |
|
8486 * balance.cc, chol.cc, colloc.cc, dassl.cc, det.cc, eig.cc, |
|
8487 expm.cc, fft.cc, fft2.cc, filter.cc, find.cc, fsolve.cc, fsqp.cc, |
|
8488 givens.cc, hess.cc, ifft.cc, ifft2.cc, inv.cc, log.cc, lpsolve.cc, |
|
8489 lsode.cc, lu.cc, minmax.cc, npsol.cc, pinv.cc, qpsol.cc, qr.cc, |
|
8490 quad.cc, qzval.cc, rand.cc, schur.cc, sort.cc, svd.cc, syl.cc: |
|
8491 Clean up #include statements. |
|
8492 |
|
8493 * pt-const.h: Don't include oct-obj.h or tree-base.h. |
|
8494 Provide forward declaration of Octave_object here. |
|
8495 * pt-const.cc: Include oct-obj.h here. |
|
8496 |
|
8497 * pt-mat.h, pt-fcn.h, pt-const.h, pt-misc.h, pt-plot.h, |
|
8498 pt-exp-base.h, pt-cmd.h, pt-fvc-base.h, pt-mvr-base.h, pt-exp.h, |
|
8499 pt-mvr.h, pt-fvc.h: New files, split from tree-expr.h and/or |
|
8500 renamed from other tree-*.h files (pt == parse tree). |
|
8501 * pt-base.cc, pt-const.cc, pt-exp.cc, pt-fvc-base.cc, pt-mat.cc, |
|
8502 pt-mvr-base.cc, pt-plot.cc, pt-cmd.cc, pt-exp-base.cc, pt-fcn.cc, |
|
8503 pt-fvc.cc, pt-misc.cc, pt-mvr.cc: Likewse, split from tree-expr.cc |
|
8504 and/or other tree-*.cc files. |
|
8505 * Makefile.in: Include them in the appropriate lists. |
|
8506 * All: Fix #include statements to match. |
|
8507 |
|
8508 * Array-tc.cc: Don't instantiate ArrayRep objects. |
|
8509 |
|
8510 Thu Jan 11 02:35:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8511 |
|
8512 * tree-const.cc (tree_constant::eval (int, int, const Octave_object&)): |
|
8513 Define here instead of in tree-const.h. |
|
8514 |
|
8515 Wed Jan 10 04:34:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8516 |
|
8517 * tree-const.h (tree_constant::tree_constant (const string&): |
|
8518 * tree-const.cc (TC_REP::tree_constant_rep (const string&)): |
|
8519 New constructor. |
|
8520 |
|
8521 Tue Jan 9 04:10:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8522 |
|
8523 * rand.cc (do_rand): Use string_value() result directly instead of |
|
8524 c_str() conversion. |
|
8525 * balance.cc (Fbalance): Likewise. |
|
8526 |
|
8527 * tree-const.cc (TC_REP::string_value()): |
|
8528 Handle new definition of charMatrix::row_as_string() |
|
8529 * load-save.cc (save_ascii_data): Ditto. |
|
8530 (save_binary_data): Ditto. |
|
8531 * pr-output.cc (octave_print_internal): Ditto. |
|
8532 |
|
8533 * balance.cc (Fbalance): |
|
8534 Handle new definition of TC_REP::string_value() |
|
8535 * colloc.cc (Fcolloc): Ditto. |
|
8536 * dassl.cc (Fdassl_options): Ditto. |
|
8537 * data.cc (Fstruct_contains): Ditto. |
|
8538 * dirfns.cc (Fmkdir): Ditto. |
|
8539 (Freaddir): Ditto. |
|
8540 (Frmdir): Ditto. |
|
8541 (Frename): Ditto. |
|
8542 * error.cc (handle_message): Ditto. |
|
8543 * file-io.cc (process_printf_format): Ditto. |
|
8544 (fopen_internal): Ditto. |
|
8545 (file_io_get_file): Ditto. |
|
8546 (return_valid_file): Ditto. |
|
8547 (Flstat): Ditto. |
|
8548 (Fstat): Ditto. |
|
8549 (unlink_internal): Ditto. |
|
8550 (mkfifo_internal): Ditto. |
|
8551 (async_system_internal): Ditto. |
|
8552 (sync_system_internal): Ditto. |
|
8553 (execute_internal): Ditto. |
|
8554 (popen_internal): Ditto. |
|
8555 (fwrite_internal): Ditto. |
|
8556 (fread_internal): Ditto. |
|
8557 (do_printf): Ditto. |
|
8558 (do_scanf): Ditto. |
|
8559 * input.cc (get_user_input): Ditto. |
|
8560 * lsode.cc (Flsode_options): Ditto. |
|
8561 * npsol.cc (Fnpsol_options):Ditto. |
|
8562 * qpsol.cc (Fqpsol_options):Ditto. |
|
8563 * quad.cc (Fquad_options): Ditto. |
|
8564 * rand.cc (do_rand): Ditto. |
|
8565 * schur.cc (Fschur): Ditto. |
|
8566 * sysdep.cc (Fputenv): Ditto. |
|
8567 (Fgetenv): Ditto. |
|
8568 * timefns.cc (extract_tm): Ditto. |
|
8569 (Fstrftime): Ditto. |
|
8570 * toplev.cc (Fsource): Ditto. |
|
8571 (eval_string): Ditto. |
|
8572 (Fsystem): Ditto. |
|
8573 * tree-plot.cc (subplot::handle_plot_data): Ditto. |
|
8574 * variables.cc (is_valid_function): Ditto. |
|
8575 (Fis_global): Ditto. |
|
8576 (Fexist): Ditto. |
|
8577 (builtin_string_variable): Ditto. |
|
8578 * utils.cc (make_argv): Ditto. |
|
8579 (Fundo_string_escapes): Ditto. |
|
8580 |
|
8581 Mon Jan 8 01:54:50 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8582 |
|
8583 * Makefile.in (install-bin): Use $(LN_S), not just ln. |
|
8584 |
|
8585 * variables.cc (octave_fcn_file_dir): New function. |
|
8586 * tree-expr.cc (mark_as_system_fcn_file): Use it instead of |
|
8587 octave_lib_dir. |
|
8588 |
|
8589 * Makefile.in (clean): If $(SHARED_LIBS), also remove shared libs. |
|
8590 |
|
8591 * pr-output.cc (set_format (const ComplexMatrix&, int&, int&)): |
|
8592 Unconditionally call all_elements_are_int_or_inf_or_nan(). |
|
8593 (set_format (const Matrix&, int&, int&)): Likewise. |
|
8594 |
|
8595 Sun Jan 7 19:12:39 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8596 |
|
8597 * utils.cc (oct_putenv): New function. |
|
8598 * sysdep.cc (Fputenv): Use oct_putenv. |
|
8599 * octave.cc (initialize_globals): Likewise. |
|
8600 |
|
8601 Sat Jan 6 23:22:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8602 |
|
8603 * sysdep.cc (Fputenv): New function. |
|
8604 |
|
8605 * input.cc (initialize_readline): Call rl_initialize() here. |
|
8606 |
|
8607 * octave.cc: Conditionally define atexit to be on_exit here. |
|
8608 * toplev.cc: Not here. |
|
8609 |
|
8610 Fri Jan 5 14:01:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8611 |
|
8612 * toplev.cc: Don't include <pwd.h> here. |
|
8613 |
|
8614 * octave-hist.cc, tree-plot.cc, utils.cc: Do include "sysdep.h". |
|
8615 |
|
8616 * dirfns.cc, file-io.cc, help.cc, load-save.cc, octave.cc, |
|
8617 octave-hist.cc, tree-plot.cc, utils.cc: |
|
8618 Don't include <readline/tilde.h>. |
|
8619 * sysdep.h: Do include it here. |
|
8620 |
|
8621 * tree-const.cc (TC_REP::assign (tree_constant&, Octave_object&)): |
|
8622 If we have a matrix or range, call maybe_mutate before returning. |
|
8623 |
|
8624 Sun Dec 31 15:56:18 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8625 |
|
8626 * npsol.cc (Fnpsol): Improve doc string. |
|
8627 * qpsol.cc (Fqpsol): Likewise. |
|
8628 |
|
8629 Fri Dec 29 21:46:58 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8630 |
|
8631 * defun-dld.h: Make work again for OCTAVE_LITE and |
|
8632 WITH_DYNAMIC_LINKING. |
|
8633 |
|
8634 * Makefile.in: Handle shared libraries. |
|
8635 |
|
8636 Wed Dec 27 17:47:51 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8637 |
|
8638 * mk-oct-links: New file. |
|
8639 * Makefile.in (install-oct): Use it. |
|
8640 * f-*.cc: Rename to *.cc. |
|
8641 |
|
8642 * Makefile.in (install-bin, install-lib, install-oct): New targets. |
|
8643 (install): Use them. |
|
8644 |
|
8645 Tue Dec 26 21:38:22 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8646 |
|
8647 * toplev.cc (reading_startup_message_printed): Move initialization |
|
8648 here and make extern. |
|
8649 |
|
8650 * dirfns.cc, dynamic-ld.cc, help.cc, input.cc, octave-hist.cc, |
|
8651 octave.cc, sighandlers.cc, sysdep.cc, tree-expr.cc, tree-misc.cc, |
|
8652 utils.cc, variables.cc, parse.y, lex.l: Include toplev.h instead |
|
8653 of octave.h. |
|
8654 * toplev.h: rename from octave.h. |
|
8655 |
|
8656 * octave.cc (main): Delete unused variable saved_sigint_handler. |
|
8657 |
|
8658 Sun Dec 24 00:26:54 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8659 |
|
8660 * dynamic-ld.cc: Massive re-write to handle dlopen/dlsym and |
|
8661 shl_load/shl_findsym methods of dynamic linking. |
|
8662 |
|
8663 * utils.cc (get_fcn_file_names): Check for .oct files if |
|
8664 WITH_DYNAMIC_LINKING, not WITH_DLD. |
|
8665 |
|
8666 * Makefile.in (LIB, TERMLIBS): Substitute values. |
|
8667 (octave): Add $(LIBS) to link command and use $(TERMLIBS) instead |
|
8668 of -ltermcap. |
|
8669 |
|
8670 Sat Dec 23 21:56:12 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8671 |
|
8672 * dynamic-ld.h, dynamic-ld.cc: Remove old unused code. |
|
8673 |
|
8674 * variables.cc (load_fcn_from_file): |
|
8675 Always call load_octave_oct_file. |
|
8676 |
|
8677 Wed Dec 20 00:56:57 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8678 |
|
8679 * pr-output.cc (set_real_format, set_real_matrix_format, |
|
8680 set_complex_format, set_complex_matrix_format, set_range_format): |
|
8681 New functions. Ensure the count of the digits to the right of the |
|
8682 decimal point is positive. |
|
8683 |
|
8684 * xpow.cc (xpow (const Matrix&, double)): Print warning if |
|
8685 inverting singular matrix (but return value anyway, in the name of |
|
8686 compatibility). |
|
8687 xpow (const ComplexMatrix&, double)): Likewise. |
|
8688 |
|
8689 * f-inv.cc (Finv): If matrix is singular, return result anyway, in |
|
8690 the name of compatibility. |
|
8691 |
|
8692 * symtab.cc (symbol_record::pop_context): |
|
8693 Don't assert (! context.empty ()). |
|
8694 |
|
8695 * tree-const.cc (TC_REP::char_matrix_value): Don't complain about |
|
8696 type conversion if object is an empty matrix.f |
|
8697 (TC_REP::assign): If rhs is a string, don't convert to numeric |
|
8698 type if rhs is empty or "". |
|
8699 Only widen if rhs is not empty. |
|
8700 Don't return 0x0 char_matrix if it is supposed to be a string. |
|
8701 |
|
8702 * arith-ops.h, mappers.h, pr-output.h, xdiv.h, xpow.h: Include |
|
8703 oct-cmplx.h in place of forward declaration for class Complex. |
|
8704 |
|
8705 * pr-output.cc, mappers.cc, arith-ops.cc, xdiv.cc, xpow.cc, |
|
8706 utils.cc: Include "oct-cmplx.h" instead of <Complex.h>. |
|
8707 |
|
8708 * octave.cc (initialize_error_handlers): Don't call |
|
8709 set_Complex_error_handler(). |
|
8710 (octave_Complex_error_handler): Delete unused function. |
|
8711 Delete declaration for set_Complex_error_handler(). |
|
8712 |
|
8713 * sighandlers.cc (catch_interrupts): New function. |
|
8714 * octave.cc (main): Call catch_interrupts() instead of calling |
|
8715 octave_set_signal_handler() directly. |
|
8716 |
|
8717 Tue Dec 19 03:22:37 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8718 |
|
8719 * variables.cc (looks_like_octave_copyright): Also recognize the |
|
8720 string " This program is free software". |
|
8721 |
|
8722 Thu Dec 14 01:54:06 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8723 |
|
8724 * octave-hist.cc (clean_up_history): Only write history file if |
|
8725 user_pref.saving_history. |
|
8726 |
|
8727 * octave-hist.cc (initialize_history, clean_up_history, |
|
8728 do_history): Perform tilde expansion on history file name. |
|
8729 |
|
8730 * octave.cc (main): Check `defined (HAVE_ON_EXIT)' not just |
|
8731 `(HAVE_ON_EXIT)'. |
|
8732 |
|
8733 * user-prefs.h (user_preferences): New fields, `history_file' and |
|
8734 `history_size'. |
|
8735 * user-prefs.cc (init_user_prefs): Initialize them. |
|
8736 (sv_history_file, history_size): New functions. |
|
8737 * variables.cc (install_builtin_variables): Initialize user-level |
|
8738 variables history_file and history_size. |
|
8739 * octave-hist.cc (default_history_size): Now extern. |
|
8740 (default_history_file): Likewise. |
|
8741 (octave_hist_size, octave_hist_file): Use user preference |
|
8742 variables instead. |
|
8743 * octave.cc (main): Call initialize_history after |
|
8744 execute_startup_files. |
|
8745 |
|
8746 Fri Dec 8 15:53:59 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8747 |
|
8748 * user-prefs.h (user_preferences): New field, `saving_history'. |
|
8749 * user-prefs.cc (init_user_prefs): Initialize it. |
|
8750 (saving_history): New function. |
|
8751 * variables.cc (install_builtin_variables): Initialize user-level |
|
8752 variable saving_history. |
|
8753 * octave.cc (parse_and_execute): Don't reset value of |
|
8754 saving_history here. |
|
8755 (main) Use user_pref.saving_history instead of saving_history. |
|
8756 * variables.cc (parse_fcn_file): Likewise. |
|
8757 * octave-hist.cc (maybe_save_history): Likewise. |
|
8758 Don't save history if input_from_startup_file. |
|
8759 |
|
8760 Mon Nov 27 23:05:52 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
8761 |
|
8762 * resource.cc: Include systime.h before <sys/resource.h>. |
|
8763 |
|
8764 Tue Nov 14 14:09:40 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8765 |
|
8766 * error.cc: Include cstring. |
|
8767 |
|
8768 * tree-expr.cc (print_code): Decrement indent level after printing |
|
8769 function body. |
|
8770 |
|
8771 * Makefile.in: Remove references to oct-str.cc, oct-str.h, and |
|
8772 Array-string.cc. |
|
8773 |
|
8774 * tree-const.h: Don't include oct-str.h. |
|
8775 |
|
8776 Mon Nov 6 11:16:49 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8777 |
|
8778 * parse.y (make_plot_command, finish_colon_expression, |
|
8779 make_unwind_protect, make_try_command, make_for_command, |
|
8780 make_break_command, make_continue_command, make_return_command, |
|
8781 start_if_command, finish_if_command, make_elseif_clause, |
|
8782 make_simple_assignment, make_multi_val_ret, start_function_def, |
|
8783 frob_function_def, finish_function_def, start_matrix, |
|
8784 finish_matrix): New functions. Use them in the grammar to clean |
|
8785 things up a bit. Possibly convert matrix lists, colon |
|
8786 expressions, binary expressions, and unary expressions to constant |
|
8787 values. |
|
8788 (tree_matrix_type): Delete. |
|
8789 (simple_expr1): Handle all expression stuff here, including |
|
8790 assignments. |
|
8791 (simple_expr): Just check to see that simple_expr1 produced |
|
8792 something useful. |
|
8793 |
|
8794 * tree-plot.cc, tree-plot.h: Move most simple constructors to the |
|
8795 header file. |
|
8796 |
|
8797 * tree-expr.h (tree_expression::is_constant): Move virtual |
|
8798 function definition here. |
|
8799 (tree_fvc::is_constant): From here. |
|
8800 (tree_expression::is_matrix_constant): New virtual function. |
|
8801 (tree_expression::is_range_constant): New virtual function. |
|
8802 * tree-expr.cc (tree_matrix::is_matrix_constant): New function. |
|
8803 * tree-expr.cc (tree_colon_expression::is_range_constant): New |
|
8804 function. |
|
8805 |
|
8806 Fri Nov 3 03:42:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8807 |
|
8808 * utils.cc, utils.h (jump_to_top_level): Declare as extern "C". |
|
8809 |
|
8810 * tree-const.h (tree_constant::eval ()): Only mutate if printing. |
|
8811 |
|
8812 * tree-const.cc (TC_REP::tree_constant_rep (const Complex&), |
|
8813 TC_REP::tree_constant_rep (const ComplexMatrix&), |
|
8814 TC_REP::tree_constant_rep (const ComplexDiagMatrix&), |
|
8815 TC_REP::tree_constant_rep (const ComplexRowVector&), |
|
8816 TC_REP::tree_constant_rep (const ComplexColumnVector&)): |
|
8817 Also check to see if we can convert to scalar_constant, not just |
|
8818 complex_scalar_constant. |
|
8819 |
|
8820 * user-prefs.h (user_preferences): New field, `exec_path'. |
|
8821 * user-prefs.cc (init_user_prefs): Initialize it. |
|
8822 (sv_exec_path): New function. |
|
8823 * variables.cc (install_builtin_variables): Add DEFUN for EXEC_PATH. |
|
8824 (default_exec_path): New function. |
|
8825 * octave.cc (exec_path): New global variable. |
|
8826 Don't set and putenv() exec path here. |
|
8827 (long_opts): Add --exec-path option. |
|
8828 (main): Handle it. |
|
8829 (initialize_globals): Set default value here. |
|
8830 |
|
8831 * user-prefs.h (user_preferences): New field, `info_prog'. |
|
8832 * user-prefs.cc (init_user_prefs): Initialize it. |
|
8833 (sv_info_prog): New function. |
|
8834 * variables.cc (install_builtin_variables): Add DEFUN for INFO_PROGRAM. |
|
8835 (default_info_prog): New function. |
|
8836 * octave.cc (info_prog): New global variable. |
|
8837 (initialize_globals): Set default value here. |
|
8838 (long_opts): Add --info-prog option. |
|
8839 (main): Handle it. |
|
8840 * help.cc (try_info): Use user_pref.info_prog here. |
|
8841 |
|
8842 * octave.cc (initialize_globals): Put arch_dir and bin_dir ahead |
|
8843 of shell_path when resetting PATH. |
|
8844 |
|
8845 Thu Nov 2 04:30:13 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8846 |
|
8847 * f-rand.cc (Frandn): New function. |
|
8848 (do_initialization): New function. |
|
8849 (do_rand): New function for doing the real work. |
|
8850 (Frand): Use it. |
|
8851 |
|
8852 * octave.cc (parse_and_execute): New arg, warn_for. If given, |
|
8853 print message if file cannot be opened. |
|
8854 Set curr_fcn_file_full_name here. |
|
8855 (Fsource): Pass extra arg to parse_and_execute to get warning message. |
|
8856 |
|
8857 * tree-const.h: Handle line and column info for double, Complex, |
|
8858 and char* constants. |
|
8859 |
|
8860 * parse.y (maybe_convert_to_ans_assign): Pass along line and |
|
8861 column info from expression. |
|
8862 |
|
8863 * parse.y (make_constant): New function. |
|
8864 (simple_expr1, word_list): Use it. |
|
8865 |
|
8866 * input.cc, input.h (curr_fcn_file_full_name): New global. |
|
8867 * variables.cc (load_fcn_from_file): Set it here. |
|
8868 * parse.y (func_def2, yyerror, maybe_warn_missing_semi): Use it. |
|
8869 (func_def2): If !reading_fcn_file, don't call strcmp if |
|
8870 curr_fcn_file_name is 0. |
|
8871 |
|
8872 * octave.cc (Fsource): New function. |
|
8873 (parse_and_execute): Declare file name const char *. |
|
8874 * input.cc (get_input_from_file): Likewise. |
|
8875 |
|
8876 Wed Nov 1 13:54:34 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8877 |
|
8878 * f-filter.cc: New file. |
|
8879 * Makefile.in (DLD_SRC): Add it to the list. |
|
8880 |
|
8881 * sysdep.h (gethostname): Change declaration to match definition |
|
8882 in sysdep.cc. |
|
8883 |
|
8884 * resource.cc: Include sysdep.h here, for octave_NaN. |
|
8885 |
|
8886 Tue Oct 31 02:12:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8887 |
|
8888 * tree-const.cc (TC_REP::assign): After converting rhs to a |
|
8889 numeric type, use the converted value, not the original. |
|
8890 |
|
8891 * dirfns.cc (Fpwd): If nargout == 0, print the directory name |
|
8892 instead of returning it. |
|
8893 |
|
8894 * pager.cc (maybe_page_output): Call maybe_write_to_diary_file here. |
|
8895 (flush_output_to_pager): Not here. |
|
8896 |
|
8897 Mon Oct 30 23:39:43 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8898 |
|
8899 * variables.cc (install_builtin_commands): Add DEFVAR for |
|
8900 echo_executing_commands. |
|
8901 |
|
8902 * octave-hist.cc (do_edit_history): Handle new echo stuff. |
|
8903 * variables.cc (parse_fcn_file): Likewise. |
|
8904 * octave.cc (parse_and_execute): Likewise. |
|
8905 (main): Likewise. |
|
8906 * input.cc (do_input_echo): |
|
8907 (Fecho): New function. |
|
8908 |
|
8909 * tree-expr.cc (tree_function::print_code_function_header, |
|
8910 tree_function::print_code_function_trailer): New functions. |
|
8911 (tree_function::print_code): Use them. |
|
8912 (tree_function::eval): Likewise, if echoing commands. |
|
8913 * tree-misc.cc (tree_statement::maybe_echo_code): New function. |
|
8914 |
|
8915 * user-prefs.h (user_preferences): New field, echo_executing_commands. |
|
8916 (echo_state): New enum, for various types of echoing we do. |
|
8917 * user-prefs.cc (echo_executing_commands): New function. |
|
8918 |
|
8919 * tree-base.cc (print_code_indent): Print PS4 as line prefix. |
|
8920 * help.cc (Ftype): Add unwind_protect for ps4 and set it to "" |
|
8921 before printing code. |
|
8922 |
|
8923 * tree-misc.h (tree_statement_list): New field, function_body. |
|
8924 (tree_statement_list::mark_as_function_body): New function. |
|
8925 * parse.y (func_def3): Mark function bodies. |
|
8926 |
|
8927 * pr-output.cc (octave_print_internal): Undo string escapes when |
|
8928 printing charMatrix as strings. |
|
8929 |
|
8930 Sat Oct 28 17:38:29 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8931 |
|
8932 * utils.h (undo_string_escapes): Add missing const in declaration. |
|
8933 |
|
8934 Fri Oct 27 03:49:44 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8935 |
|
8936 * file-io.cc (next_available_file_number): New stack for keeping |
|
8937 track of next available file number. |
|
8938 (get_next_avail_file_num): New function. |
|
8939 (fopen_file_for_user, fopen_internal, popen_internal, |
|
8940 execute_internal): Use it. |
|
8941 |
|
8942 Mon Oct 23 07:00:09 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8943 |
|
8944 * tree-const.cc (TC_REP::convert_to_matrix_type, |
|
8945 tree_constant::convert_to_matrix_type): New arg, make_complex. |
|
8946 (TC_REP::set_index): New arg, rhs_is_complex. Pass it to |
|
8947 convert_to_matrix_type. |
|
8948 (TC_REP::assign): Pass rhs.is_complex_type() to set_index. |
|
8949 |
|
8950 Thu Oct 19 00:38:38 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8951 |
|
8952 * xpow.cc: Include <climits>. |
|
8953 |
|
8954 * sysdep.cc (Fpause): Do pause even if not interactive. |
|
8955 |
|
8956 * tree-const.cc (TC_REP::assign): Don't make RHS numeric if both |
|
8957 RHS and LHS are strings. |
|
8958 |
|
8959 Wed Oct 18 22:19:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8960 |
|
8961 * f-expm.cc (Fexpm): Avoid taking log of negative number. Also, |
|
8962 don't unnecessarily divide the input matrix by 1.0. |
|
8963 |
|
8964 * input.cc (decode_prompt_string): Recognize \[ and \] too. |
|
8965 (initialize_readline): Bind M-p to history-search-backward and M-n |
|
8966 to history-search-forward. |
|
8967 |
|
8968 Tue Oct 17 04:31:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8969 |
|
8970 * xpow.cc (xpow): Handle integer powers better for complex^double. |
|
8971 (elem_xpow): Likewise. |
|
8972 |
|
8973 * lex.l ({CCHAR}): If nesting_level.top() is BRACE, return ';', |
|
8974 not '\n'. |
|
8975 |
|
8976 Mon Oct 16 19:03:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8977 |
|
8978 * help.cc (Fwhich): Fix doc string. |
|
8979 |
|
8980 * variables.cc (Fexist): Update doc string. |
|
8981 |
|
8982 Sun Oct 15 22:19:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8983 |
|
8984 * Another massive set of changes to support character matrices |
|
8985 with indexing. The Octave_str_object class is no longer used. |
|
8986 Anything having to do with Octave_str_object in the following |
|
8987 files has been changed to use charMatrix instead: octave.h, |
|
8988 load-save.cc, octave.cc, strfns.cc, data.cc, pr-output.h, |
|
8989 pr-output.cc, tree-const.h, dirfns.cc, tree-const.cc, |
|
8990 tree-expr.cc. |
|
8991 |
|
8992 Sat Oct 14 22:28:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8993 |
|
8994 * f-sort.cc (mx_sort): Don't attempt to sort vectors that have |
|
8995 only one element, or matrices that have only one row. |
|
8996 |
|
8997 Thu Oct 12 02:16:58 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
8998 |
|
8999 * mappers.cc (install_mapper_functions): Add gammaln as an alias |
|
9000 for lgamma. |
|
9001 |
|
9002 * tree-const.h, tree-const.cc: Massive overhaul of indexing and |
|
9003 indexed assignment functions. |
|
9004 * tc-inlines.h, tc-rep.h: Remove files. |
|
9005 * Makefile.in: Remove mention of them here too. |
|
9006 |
|
9007 * Makefile.in: Include $(TI_SRC) in DEP_SOURCES_3, not |
|
9008 $(TI_SOURCES). |
|
9009 Include $(DLD_SRC) in DEP_SOURCES_3. |
|
9010 Include $(TI_SRC) in DEF_FILES_5. |
|
9011 |
|
9012 Wed Oct 11 01:26:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9013 |
|
9014 * Makefile.in (INCLUDES): Remove tc-inlines.h and tc-rep.h from |
|
9015 the list. |
|
9016 |
|
9017 Mon Oct 9 08:31:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9018 |
|
9019 * lex.l (next_token_is_bin_op): Do match `.+', `.*', etc. |
|
9020 |
|
9021 Sun Oct 8 18:19:56 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9022 |
|
9023 * idx-vector.h, idx-vector.cc: Delete files. |
|
9024 * Makefile.in (SOURCES, INCLUDES): Remove them from lists. |
|
9025 |
|
9026 Fri Oct 6 00:52:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9027 |
|
9028 * f-svd.cc (Fsvd): If nargout == 0 or nargout == 1, don't ask for |
|
9029 U and V. |
|
9030 |
|
9031 Wed Oct 4 00:04:57 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9032 |
|
9033 * f-npsol.cc (Fnpsol, Fnpsol_options): Avoid unused variable |
|
9034 warnings if NPSOL_MISSING. |
|
9035 * f-qpsol.cc (Fqpsol, Fqpsol_options): Likewise for QPSOL_MISSING. |
|
9036 |
|
9037 * Makefile.in (DISTFILES): Add octave.gperf. |
|
9038 |
|
9039 * lex.l (next_token_is_bin_op): Don't ever return true for `.' |
|
9040 since that causes problems with things like [ .1 .1 ]. |
|
9041 |
|
9042 Tue Oct 3 05:30:24 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9043 |
|
9044 * variables.cc (is_valid_function): Avoid setting error_state if |
|
9045 argument is not a string. |
|
9046 |
|
9047 * parse.y (maybe_warn_missing_semi): New function. |
|
9048 (list1, list): Call it if statement not terminated by semicolon. |
|
9049 * tree-misc.h (tree_statement::line, tree_statement::column): |
|
9050 New functions. |
|
9051 * octave.cc (input_from_command_line_file): New global variable. |
|
9052 (main): Set it. |
|
9053 (parse_and_execute): Unwind-protect it and set it to zero. |
|
9054 (eval_string): Likewise. |
|
9055 * variables.cc (parse_fcn_file): Likewise. |
|
9056 |
|
9057 * user-prefs.cc (warn_missing_semicolon): New function. |
|
9058 * user-prefs.h (user_preferences): New field, warn_missing_semicolon. |
|
9059 * variables.cc (install_builtin_variables): DEFVAR it. |
|
9060 |
|
9061 * tree-expr.cc (tree_expression::is_logically_true): Actually use |
|
9062 argument. |
|
9063 |
|
9064 Mon Oct 2 19:55:48 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9065 |
|
9066 * variables.cc (install_builtin_variables): Reduce the default |
|
9067 value of save_precision to 15. |
|
9068 |
|
9069 * variables.cc (builtin_real_scalar_variable): Return 1 for |
|
9070 success, 0 for failure. |
|
9071 |
|
9072 * user-prefs.cc (struct_levels_to_print, set_save_precision, |
|
9073 set_output_max_field_width, set_output_precision): |
|
9074 Change sense of test for builtin_real_scalar_variable return value. |
|
9075 (check_preference): Rename from check_str_pref. Change all callers. |
|
9076 Accept value of 0 to be the same as "false" and nonzero to be the |
|
9077 same as "true". |
|
9078 Delete val to avoid memory leak. |
|
9079 * variables.cc (install_builtin_variables): Change initial values |
|
9080 from "true" to 1, "false" to 0. |
|
9081 |
|
9082 * variables.cc (install_builtin_variables): Add DEFVAR for |
|
9083 gnuplot_has_multiplot. |
|
9084 |
|
9085 * user-prefs.h (user_preferences): New field, |
|
9086 `gnuplot_has_multiplot'. |
|
9087 * user-prefs.cc (init_user_prefs): Initialize it. |
|
9088 (gnuplot_has_multiplot): New function. |
|
9089 |
|
9090 Sat Sep 30 16:52:57 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9091 |
|
9092 * oct-gperf.h, octave.gperf: Newfiles. |
|
9093 * Makefile.in (DISTFILES): Add octave.gperf. |
|
9094 (INCLUDES): Add oct-gperf.h. |
|
9095 (oct-gperf.h): New rule. |
|
9096 (local-dist, dist): Depend on oct-gperf.h. |
|
9097 * lex.l (is_keyword): Use perfect hash function to lookup |
|
9098 keywords. |
|
9099 |
|
9100 Fri Sep 29 04:36:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9101 |
|
9102 * version.h (OCTAVE_NAME_AND_VERSION): Add TARGET_HOST_TYPE to this. |
|
9103 |
|
9104 Thu Sep 28 00:03:51 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9105 |
|
9106 * tree-expr.cc (tree_expression::is_logically_true): New function. |
|
9107 * tree-cmd.cc (tree_while_command::eval): Use it instead of |
|
9108 handling the test directly here. |
|
9109 * tree-misc.cc (tree_if_clause::eval): Likewise |
|
9110 |
|
9111 * tree-const.cc (TC_REP::force_numeric): Don't try to print value |
|
9112 of str_obj with %s. |
|
9113 |
|
9114 * error.cc (buffer_error_messages): Rename from |
|
9115 suppress_octave_error_messages. |
|
9116 (error_message_buffer): New global variable. |
|
9117 (verror): Handle buffering of messages. |
|
9118 (handle_message): New function. |
|
9119 (Ferror, Fwarning, Fusage): Use it instead of duplicating code. |
|
9120 |
|
9121 * octave.cc (Feval): Buffer error messages instead of supressing them. |
|
9122 |
|
9123 * lex.l (is_keyword): Recognize `try', `catch', and `end_try_catch'. |
|
9124 * parse.y (TRY, CATCH): New tokens. |
|
9125 (command): Recognize try-catch block. |
|
9126 (end_error): Add cases for unwind_protect_end and try_catch_end. |
|
9127 * token.h (end_tok_type): New field, try_catch_end. |
|
9128 * tree-cmd.h, tree-cmd.cc (tree_try_catch): New class. |
|
9129 * variables.cc (bind_global_error_variable): New Function. |
|
9130 (clear_global_error_variable): Likewise. |
|
9131 (install_builtin_variables): Add DEFCONST for __error_text__. |
|
9132 * help.cc (keywords): Add `try', `catch', and `end_try_catch'. |
|
9133 |
|
9134 * tree-cmd.cc (tree_unwind_protect::eval): Undo previous change. |
|
9135 |
|
9136 * dirfns.cc (Freaddir, Fmkdir, Frmdir): |
|
9137 Do tilde expansion on the argument. |
|
9138 |
|
9139 Tue Sep 26 00:10:29 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9140 |
|
9141 * f-dassl.cc, f-fsolve.cc, f-lsode.cc, f-npsol.cc, f-quad.cc: |
|
9142 Don't try to figure out if the user-supplied functions take the |
|
9143 correct number of arguments. Simply let the call fail. |
|
9144 * variables.cc (takes_correct_nargs): Delete unused function. |
|
9145 * tree-expr.cc (tree_builtin::eval): Don't complain for too many |
|
9146 arguments to mapper functions. |
|
9147 * tree-expr.h, tree-expr.cc (tree_builtin, tree_function, tree_fvc): |
|
9148 Delete unused function max_expected_args. |
|
9149 |
|
9150 * defun.h (DEFUN): Delete unnecessary args nargin_min and nargout_max. |
|
9151 New arg unused_arg_flags. |
|
9152 (DEFUN_TEXT): Likewise. |
|
9153 * defun-dld.h (DEFUN_DLD_BUILTIN): Likewise. |
|
9154 * defun-int.h (DEFUN_INTERNAL, DECLARE_FUN, DEFINE_FUN_STRUCT): |
|
9155 Do the real work. |
|
9156 |
|
9157 * data.cc, dirfns.cc, dynamic-ld.cc, error.cc, f-balance.cc, |
|
9158 f-chol.cc, f-colloc.cc, f-dassl.cc, f-det.cc, f-eig.cc, f-expm.cc, |
|
9159 f-fft.cc, f-fft2.cc, f-find.cc, f-fsolve.cc, f-fsqp.cc, |
|
9160 f-givens.cc, f-hess.cc, f-ifft.cc, f-ifft2.cc, f-inv.cc, f-log.cc, |
|
9161 f-lpsolve.cc, f-lsode.cc, f-lu.cc, f-minmax.cc, f-npsol.cc, |
|
9162 f-pinv.cc, f-qpsol.cc, f-qr.cc, f-quad.cc, f-qzval.cc, f-rand.cc, |
|
9163 f-schur.cc, f-sort.cc, f-svd.cc, f-syl.cc, file-io.cc, help.cc, |
|
9164 input.cc, lex.l, load-save.cc, mappers.cc, octave-hist.cc, |
|
9165 octave.cc, octave.h, pager.cc, pr-output.cc, resource.cc, |
|
9166 sighandlers.cc, strfns.cc, sysdep.cc, timefns.cc, token.cc, |
|
9167 tree-const.cc, tree-expr.cc, tree-expr.h, tree-plot.cc, |
|
9168 unwind-prot.cc, unwind-prot.h, utils.cc, variables.cc, |
|
9169 variables.h, version.h, xdiv.cc: |
|
9170 Avoid unused variable warnings. |
|
9171 |
|
9172 * tree-expr.h (tree_oct_obj::print_value (ostream&)): |
|
9173 Delete name of unused arg. |
|
9174 (tree_fvc::save (ostream&, int, int): Likewise. |
|
9175 |
|
9176 * tree-const.h (tree_constant::tree_constant (magic_colon)): |
|
9177 Delete name of unused arg. |
|
9178 (tree_constant::tree_constant (all_va_args)): Likewise |
|
9179 (ColumnVector vector_value (int, int)): Likewise. |
|
9180 (ComplexColumnVector vector_value (int, int)): Likewise. |
|
9181 (Octave_object::eval (int, int, const Octave_object&): Likewise. |
|
9182 |
|
9183 * octave.cc (execute_startup_files): Look for octaverc first in |
|
9184 site/m, then in $(version)/m. |
|
9185 * variables.cc (get_local_site_defaults): New function. |
|
9186 * defaults.h.in (OCTAVE_LOCALFCNFILEDIR, OCTAVE_LOCALSTARTUPFILEDIR): |
|
9187 New macros. |
|
9188 * Makefile.in (defaults.h): Also substitute ${localfcndir}. |
|
9189 |
|
9190 Mon Sep 25 17:01:03 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9191 |
|
9192 * variables.cc (install_builtin_variables): Add DEFCONST for "e". |
|
9193 |
|
9194 Fri Sep 22 02:18:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9195 |
|
9196 * dirfns.cc (Fls): Delete ls_command after using it, not before. |
|
9197 |
|
9198 * input.h, input.cc (gnu_readline): Don't declare gnu_readline |
|
9199 `extern "C"'. |
|
9200 |
|
9201 * sysdep.h: Only declare gethostname if it is missing, then don't |
|
9202 declare it `extern "C"'. |
|
9203 |
|
9204 * dirfns.cc: Don't declare strerror(). |
|
9205 |
|
9206 * input.cc (command_generator): Use malloc, not xmalloc. Don't |
|
9207 declare xmalloc. |
|
9208 (gnu_readline): Don't declare this `extern "C"'. |
|
9209 |
|
9210 * octave-hist.cc: Don't declare history_get(). It is now in |
|
9211 readline/history.h. |
|
9212 |
|
9213 * input.cc: Don't declare history_get(). It is now in |
|
9214 readline/readline.h. |
|
9215 |
|
9216 * resource.cc: Don't surround include of sys/resource.h in |
|
9217 `extern "C" { }'. |
|
9218 |
|
9219 * fnmatch.h [__cplusplus]: Surround contents in `extern "C" { }'. |
|
9220 * load-save.cc, symtab.cc, variables.cc: Don't surround |
|
9221 fnmatch.h include in `extern "C" { }'. |
|
9222 |
|
9223 * help.cc: Don't #undef __FUNCTION_DEF before including |
|
9224 readline/tilde.h. |
|
9225 |
|
9226 * dirfuns.cc, file-io.cc, help.cc, load-save.cc, octave-hist.cc, |
|
9227 sysdep.cc, tree-plot.cc, utils.cc, variables.cc: |
|
9228 Don't surround readline includes in `extern "C" { }'. |
|
9229 |
|
9230 * sysdep.cc: Move all include statements to top of file. |
|
9231 |
|
9232 Tue Sep 19 01:58:21 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9233 |
|
9234 * octave.cc (Fsystem): Use iprocstream *, and unwind_protect it. |
|
9235 * pager.cc (flush_output_to_pager): Likewise. |
|
9236 * dirfns.cc (Fls): Likewise. |
|
9237 * tree-plot.cc (plot_stream): Now a pointer. |
|
9238 (open_plot_stream): Deal with it. |
|
9239 (send_to_plot_stream, cleanup_tmp_files, do_external_plotter_cd): |
|
9240 Likewise. |
|
9241 |
|
9242 * procstream.cc (cleanup_iprocstream, cleanup_oprocstream): |
|
9243 New functions. |
|
9244 |
|
9245 * procstream.h, procstream.cc (class iprocstream, class oprocstream): |
|
9246 Keep track of pbuf. Initialize it to 0 in default constructors, |
|
9247 delete it in destructor. Don't call close in destructor. |
|
9248 |
|
9249 * sighandlers.cc (octave_set_signal_handler): New function. |
|
9250 Use this name instead of signal everywhere. |
|
9251 * help.cc (try_info): Likewise. |
|
9252 * pager.cc (flush_output_to_pager): Likewise. |
|
9253 * octave.cc (main): Likewise. |
|
9254 * octave-hist.cc (do_edit_history): Likewise. |
|
9255 |
|
9256 * input.cc (initialize_readline): Set rl_paren_string_delimiters |
|
9257 to avoid treating single quotes as string delimiters when doing |
|
9258 paren matching. |
|
9259 |
|
9260 * Makefile.in (SOURCES): Don't list Map.cc or SLStack.cc here. |
|
9261 |
|
9262 * tree-const.cc: Do include utils.h. |
|
9263 |
|
9264 * sysdep.cc: Don't surround terminal includes in extern "C". |
|
9265 Include them before readline.h. |
|
9266 |
|
9267 * Map.h: Don't include utils.h. |
|
9268 (CHNode::CHNode (const char*, const C&, CHNode *t): |
|
9269 Do strsave() inline. |
|
9270 |
|
9271 * input.cc (generate_possible_completions): Generate name list |
|
9272 even when text == 0. |
|
9273 (operate_and_get_next): Don't declare history_stifled, call |
|
9274 history_is_stifled () instead. |
|
9275 Don't declare history_length, or max_input_history either. |
|
9276 Check (where >= history_length - 1) too, as in recent versions of |
|
9277 bash. |
|
9278 |
|
9279 * user-prefs.h (user_prefs): New field, `completion_append_char'. |
|
9280 * user-prefs.cc (init_user_prefs): Initialize it. |
|
9281 (sv_completion_append_char): New function. |
|
9282 * variables.cc (install_builtin_variables): Install |
|
9283 completion_append_char. |
|
9284 * input.cc (command_generator): Use it. |
|
9285 |
|
9286 * SLList-expr.cc, SLList-misc.cc, SLList-plot.cc, SLList-tc.cc, |
|
9287 DLList-fi.cc: Include config.h. |
|
9288 * DLList-fi.cc: Include file-info.h, not file-io.h. |
|
9289 |
|
9290 Mon Sep 18 11:01:24 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9291 |
|
9292 * octave.h (clean_up_and_exit): Tag with NORETURN instead of using |
|
9293 typedef trick. |
|
9294 * error.h (panic): Likewise. |
|
9295 * utils.h (jump_to_top_level): Likewise. |
|
9296 |
|
9297 * file-io.h: Protect from multiple includes with octave_file_io, |
|
9298 not octave_files. |
|
9299 |
|
9300 * file-info.h (class file_info): Convert to using std C++ string |
|
9301 class from char *. |
|
9302 * file-info.cc: Likewise. Don't include utils.h. |
|
9303 * file-io.cc (return_valid_file, fopen_file_for_user, |
|
9304 fflush_internal, do_scanf): Use operator ==, not strcmp. |
|
9305 (close_files): Call error with file.name ().data (), |
|
9306 not file.name (). |
|
9307 (freport_internal): Call form with file.mode ().data () and |
|
9308 file.name ().data (). |
|
9309 |
|
9310 * file-io.cc, file-io.h: Extract file_info class. |
|
9311 * file-info.cc, file-info.h: New files for file_info class. |
|
9312 |
|
9313 * user-prefs.h (user_prefs): New field, `beep_on_error'. |
|
9314 * user-prefs.cc (init_user_prefs): Initialize it. |
|
9315 (beep_on_error): New function. |
|
9316 * variables.cc (install_builtin_variables): Install beep_on_error. |
|
9317 * octave.cc (maximum_braindamage): Set beep_on_error to "true". |
|
9318 * error.cc (verror): Conditionally beep. |
|
9319 (error): Don't reset error_state until after verror is called. |
|
9320 |
|
9321 Sun Sep 17 16:41:25 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9322 |
|
9323 * load-save.cc (read_mat_binary_data, read_ascii_data, |
|
9324 save_ascii_data, read_binary_data, save_binary_data): |
|
9325 Handle string arrays. |
|
9326 |
|
9327 Fri Sep 15 00:24:19 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9328 |
|
9329 * user-prefs.cc (struct_levels_to_print, |
|
9330 set_output_max_field_width, set_output_precision, |
|
9331 set_save_precision): Eliminate unecessary kludge variable. |
|
9332 |
|
9333 * variables.cc (gobble_leading_white_space): New arg, |
|
9334 in_parts. Change all callers. |
|
9335 |
|
9336 * lex.l (HELP_FCN): Delete start state. The `help' command is now |
|
9337 handled the same as any other text-style function. |
|
9338 |
|
9339 * gripes.cc (gripe_invalid_value_specified): New function |
|
9340 * user-prefs.cc: Use it. |
|
9341 |
|
9342 * sysdep.cc (octave_words_big_endian): New global variable. |
|
9343 (ten_little_endians): New function. |
|
9344 (sysdep_init): Call it. |
|
9345 * load-save.cc (words_big_endian): Use this at run-time instead of |
|
9346 depending on WORDS_BIGENDIAN at compile-time. |
|
9347 |
|
9348 * symtab.h (SYMTAB_VARIABLES): New macro. |
|
9349 * variables.cc (Fclear): Use it instead of just |
|
9350 symbol_def::USER_VARIABLE when looking for variables. |
|
9351 |
|
9352 * octave.cc (main): If there is a file to execute, set |
|
9353 program_invocation_name and program_name to the name of the file |
|
9354 and argv to the remaining args. |
|
9355 (intern_argv): Only define argv if there are some remaining |
|
9356 arguments. |
|
9357 |
|
9358 * defun.h (DEFVAR_INT): New macro. |
|
9359 (DEFVAR): Define in terms of DEFVAR_INT. Delete args protect and |
|
9360 eternal. |
|
9361 (DEFCONST): New macro. |
|
9362 * variables.cc (install_builtin_variables): Use DEFCONST where |
|
9363 appropriate, change uses of DEFVAR to match new definition. |
|
9364 |
|
9365 * variables.cc (bind_builtin_variable): New variant that accepts |
|
9366 const tree_constant& value. |
|
9367 (install_builtin_variables): Properly alphabetize DEFVAR for this. |
|
9368 |
|
9369 * octave.cc (short_opts): Prefix with `+' to prevent argv |
|
9370 permutation. |
|
9371 (main): Don't use readline if forced_interactive. |
|
9372 (traditional): New file-scope variable. |
|
9373 (long_opts, usage_string, verbose_usage): Add `--traditional'. |
|
9374 (maximum_braindamage): New function. |
|
9375 (main): Call it if --traditional. |
|
9376 |
|
9377 * input.cc (do_input_echo): Print prompt correctly when |
|
9378 forced_interactive is either true or false. |
|
9379 |
|
9380 Thu Sep 14 00:54:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9381 |
|
9382 * data.cc (Fstruct_elements): New function. |
|
9383 |
|
9384 * file-io.cc (Fumask): New function. |
|
9385 |
|
9386 * dirfns.cc (Fmkdir, Frmdir, Frename): New functions. |
|
9387 |
|
9388 * Makefile.in: Add rules and dependencies for building safe-stat.o |
|
9389 and safe-lstat.o. |
|
9390 |
|
9391 * mkdir.c, rename.c, rmdir.c: New files. |
|
9392 * Makefile.in (SOURCES): Include them in the list. |
|
9393 |
|
9394 * safe-xstat.hin, safe-xstat.cin: New files |
|
9395 * Makefile.in (DISTFILES): Include them in the list. |
|
9396 |
|
9397 * sighandlers.cc (octave_new_handler): Try to continue on memory |
|
9398 exhausted errors. |
|
9399 (sigfpe_handler): Improve error message. |
|
9400 |
|
9401 * Makefile.in: Use `ifndef omit_deps', not `ifndef $(omit_deps)'. |
|
9402 |
|
9403 * dirfns.cc (Freaddir): New function. |
|
9404 |
|
9405 * f-sort.cc: Complete rewrite. Now uses stable sort algorithm and |
|
9406 correctly handles complex matrices containing columns of all real |
|
9407 numbers. |
|
9408 |
|
9409 Wed Sep 13 03:16:40 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9410 |
|
9411 * arith-ops.cc: Unconditionally #define DIVIDE_BY_ZERO_ERROR. |
|
9412 |
|
9413 * variables.cc (install_builtin_variables): Unconditionally |
|
9414 install NaN and nan. |
|
9415 |
|
9416 * mappers.cc (xisinf): Don't do bogus things if isinf, isnan, or |
|
9417 finite are missing. |
|
9418 (xfinite): Likewise. |
|
9419 |
|
9420 * sysdep.cc (octave_ieee_init): Don't set octave_NaN and |
|
9421 octave_Inf if values are not available. |
|
9422 |
|
9423 * resource.cc (mk_ru_map): Don't use ru_ or tv_ as prefixes to |
|
9424 Octave names for the structure members. |
|
9425 |
|
9426 Tue Sep 12 02:04:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9427 |
|
9428 * procstream.h, procstream.cc: Rewrite. |
|
9429 |
|
9430 Mon Sep 11 18:42:05 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9431 |
|
9432 * filemode.c: New file, from Emacs. |
|
9433 * Makefile.in (SOURCES): Add it to the list. |
|
9434 |
|
9435 * file-io.cc (Fstat, Flstat, mk_stat_map): New functions. |
|
9436 |
|
9437 * timefns.cc (mk_tm_map): Don't use tm_ as prefix to Octave names |
|
9438 for these structure members. |
|
9439 (extract_tm): Likewise. |
|
9440 (Flocaltime): Fix doc string to match. |
|
9441 |
|
9442 Thu Sep 7 02:04:27 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9443 |
|
9444 * load-save.cc (save_user_variables): New function. |
|
9445 * sighandlers.cc (my_friendly_exit): Call it before exiting. |
|
9446 (sigfpe_handler): New function. |
|
9447 (install_signal_handlers) [__alpha__]: Install it. |
|
9448 |
|
9449 Wed Sep 6 14:35:10 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9450 |
|
9451 * tree-cmd.cc (tree_unwind_protect::eval): Ignore errors and |
|
9452 suppress error messages while executing first block of |
|
9453 unwind_protect commands. |
|
9454 |
|
9455 * parse.y (end_error): Add missing case for unwind_protect_end. |
|
9456 |
|
9457 * tree-expr.cc (tree_builtin::eval): Complain if no arguments |
|
9458 given for mapper functions. |
|
9459 (tree_fvc::lookup_map_element): Print error message for invalid |
|
9460 structure reference. |
|
9461 |
|
9462 Tue Sep 5 02:04:12 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9463 |
|
9464 * file-io.cc, input.cc, load-save.cc, octave.cc, sysdep.cc, |
|
9465 variables.cc, octave-hist.cc, utils.cc, f-schur.cc, f-rand.cc, |
|
9466 f-quad.cc, f-qpsol.cc, f-npsol.cc, f-lsode.cc, f-fsolve.cc, |
|
9467 f-dassl.cc, f-colloc.cc, f-balance.cc, error.cc, data.cc: |
|
9468 Add const qualifiers where appropriate. |
|
9469 |
|
9470 * dirfns.h: Include <ctime>, for time_t. |
|
9471 |
|
9472 * tempname.c, file-io.cc, help.cc, input.cc, octave-hist.cc, |
|
9473 octave.cc, sighandlers.cc, sysdep.cc, tree-expr.cc, tree-misc.cc, |
|
9474 tree-plot.cc, utils.cc, variables.cc, sysdir.h: |
|
9475 Move #include <sys/type.h> inside #ifdef HAVE_UNISTD_H. |
|
9476 |
|
9477 * syswait.h: New file. |
|
9478 * Makefile.in (INCLUDES): Add it to the list. |
|
9479 * file-io.cc, sighandlers.cc: Use it instead of including |
|
9480 sys/wait.h directly. |
|
9481 |
|
9482 * octave.cc: Include statdefs.h, not sys/stat.h. |
|
9483 |
|
9484 * sysdir.h: New file. |
|
9485 * Makefile.in (INCLUDES): Add it to the list. |
|
9486 * dirfns.cc, utils.cc: Use it instead of including the headers |
|
9487 directly. |
|
9488 |
|
9489 * pathlen.h: New file. |
|
9490 * Makefile.in (INCLUDES): Add it to the list. |
|
9491 * dirfns.cc, input.cc: Use it instead of including sys/param.h |
|
9492 directly. |
|
9493 * utils.cc: Don't include sys/param.h |
|
9494 |
|
9495 Sun Sep 3 18:52:59 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9496 |
|
9497 * tree-const.cc (TC_REP::string_value): Return const char*, not |
|
9498 char *. |
|
9499 |
|
9500 * All .cc, .y, .l, .y files: Include <cctype>, not <ctype.h>, and |
|
9501 so on for all new C++ versions of these standard C headers. |
|
9502 |
|
9503 Thu Aug 31 17:09:38 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9504 |
|
9505 * pathsearch.h: Also hide `string'. |
|
9506 |
|
9507 * oct-str.cc, oct-str.h: New files. |
|
9508 * Makefile.in: Add to the appropriate lists. |
|
9509 * tc-rep.h: Change char* to Octave_string* in anonymous union. |
|
9510 * tree-expr.cc (tree_matrix::eval): Handle multiple element strings. |
|
9511 * strfns.cc (toascii): Likewise. |
|
9512 * tree-const.cc (print_as_string): Likewise. |
|
9513 (TC_REP::force_numeric, TC_REP::rows, TC_REP::columns, |
|
9514 TC_REP::double_value, TC_REP::complex_value, TC_REP::matrix_value, |
|
9515 TC_REP::complex_matrix_value, TC_REP::convert_to_str): Likewise. |
|
9516 (TC_REP::print): Call octave_print_internal for string case. |
|
9517 (all_strings): New function. |
|
9518 Fix constructors to use new data structure. |
|
9519 * pr-output.cc (octave_print_internal): Add version for strings. |
|
9520 * Array-string.cc: New file. |
|
9521 |
|
9522 * octave.cc (octave_argv): New global variable. |
|
9523 (intern_argv): New function. |
|
9524 (main): Fix argument parsing to do the right thing for arguments |
|
9525 to executable scripts. |
|
9526 * variables.cc: Add DEFUNs for argv, program_invocation_name, and |
|
9527 program_name. |
|
9528 |
|
9529 * defun.h (DEFVAR): Fix comment. |
|
9530 |
|
9531 Thu Aug 24 00:02:00 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9532 |
|
9533 * file-io.cc (fgets_internal): Make second arg optional. Add |
|
9534 optional arg `strip_final_newline'. |
|
9535 (Ffgets): Change to match new definition of fgets_internal. |
|
9536 (Ffgetl): Implement using the new fgets_internal. |
|
9537 |
|
9538 * f-rand.cc (Frand): Update code for sizing return value to match |
|
9539 that used by ones, zeros, and eye. |
|
9540 |
|
9541 Wed Aug 23 19:52:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9542 |
|
9543 * tree-const.cc (do_vector_assign): Don't crash for |
|
9544 A(range) = scalar, or A(matrix) = scalar. |
|
9545 |
|
9546 * f-dassl.cc (set_dassl_option): Rename from do_dassl_option. |
|
9547 (show_dassl_option): New function. |
|
9548 (Fdassl_options): Handle single arg. |
|
9549 * f-fsolve.cc (set_fsolve_option): Rename from do_fsolve_option. |
|
9550 (show_fsolve_option): New function. |
|
9551 (Ffsolve_options): Handle single arg. |
|
9552 * f-fsqp.cc (set_fsqp_option): Rename from do_fsqp_option. |
|
9553 (show_fsqp_option): New function. |
|
9554 (Ffsqp_options): Handle single arg. |
|
9555 * f-lpsolve.cc (set_lpsolve_option): Rename from do_lpsolve_option. |
|
9556 (show_lpsolve_option): New function. |
|
9557 (Flpsolve_options): Handle single arg. |
|
9558 * f-lsode.cc (set_lsode_option): Rename from do_lsode_option. |
|
9559 (show_lsode_option): New function. |
|
9560 (Flsode_options): Handle single arg. |
|
9561 * f-npsol.cc (set_npsol_option): Rename from do_npsol_option. |
|
9562 (show_npsol_option): New function. |
|
9563 (Fnpsol_options): Handle single arg. |
|
9564 * f-qpsol.cc (set_qpsol_option): Rename from do_qpsol_option. |
|
9565 (show_qpsol_option): New function. |
|
9566 (Fqpsol_options): Handle single arg. |
|
9567 * f-quad.cc: (set_quad_option): Rename from do_quad_option. |
|
9568 (show_quad_option): New function. |
|
9569 (Fquad_options): Handle single arg. |
|
9570 (Fquad): Doc fix. |
|
9571 |
|
9572 Tue Aug 22 00:38:05 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9573 |
|
9574 * tree-plot.cc (do_external_plotter_cd): New function. |
|
9575 * dirfns.cc (octave_change_to_directory): New function. If cd is |
|
9576 successful, also call do_external_plotter_cd(). |
|
9577 (Fcd): Call octave_change_to_directory(), not change_to_directory(). |
|
9578 |
|
9579 * pr-output.cc (pr_any_float): Change declaration of counter to |
|
9580 size_t to avoid gcc warnings. |
|
9581 |
|
9582 * idx-vector.cc, octave-hist.cc, tree-const.cc, tree-expr.cc, |
|
9583 tree-misc.cc, utils.cc, xpow.cc, Map.cc: |
|
9584 Update for change in for loop variable scope for gcc 2.7.0. |
|
9585 |
|
9586 Mon Aug 21 19:34:53 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9587 |
|
9588 * tree-const.cc (fortran_style_matrix_assignment): Properly handle |
|
9589 case of complex LHS, real RHS. |
|
9590 |
|
9591 * Makefile.in: Only include dependency files if $(omit_deps) is |
|
9592 not set. |
|
9593 |
|
9594 Wed Jul 5 00:03:58 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
9595 |
|
9596 * sysdep.cc: Explicitly include string.h. |
|
9597 |
|
9598 Sun Jun 25 00:18:10 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9599 |
|
9600 * load-save.cc (too_large_for_float (const Matrix&)): |
|
9601 Extract elements as doubles, not Complex. |
|
9602 |
|
9603 Sat Jun 24 22:59:15 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9604 |
|
9605 * pr-output.cc (any_element_is_inf_or_nan): Declare extern, not static. |
|
9606 * f-svd.cc (Fsvd): Call here to avoid trying to take SVD of matrix |
|
9607 containing Inf or NaN values. |
|
9608 |
|
9609 * pr-output.cc (bit_format): New file-scope variable. |
|
9610 (set_format, pr_any_float): Handle bit_format. |
|
9611 (octave_print_internal): Handle bit_format like bank_format. |
|
9612 (init_format_state): Initialize bit_format. |
|
9613 (set_format_style): Allow `format bit' and `format native-bit'. |
|
9614 |
|
9615 Thu Jun 8 15:20:26 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9616 |
|
9617 * mappers.cc (arg, imag, signum): If arg is NaN, return NaN. |
|
9618 |
|
9619 Mon May 15 14:47:04 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9620 |
|
9621 * pager.cc (Fdiary): Initialize diary_file here, not in the |
|
9622 file-scope declaration. |
|
9623 |
|
9624 * tree-expr.cc (tree_index_expression::eval): |
|
9625 Handle nargin == 0 the same as other cases. |
|
9626 |
|
9627 Tue May 2 10:02:23 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9628 |
|
9629 * load-save.cc (do_double_format_conversion): Add missing breaks. |
|
9630 (do_float_format_conversion): Likewise. |
|
9631 |
|
9632 Mon May 1 13:50:24 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9633 |
|
9634 * Makefile.in (OCTAVE_LIBS): Add @LIBPLPLOT@ to the list. |
|
9635 |
|
9636 * timefns.cc (Ftime): Handle GETTIMEOFDAY_NO_TZ. |
|
9637 |
|
9638 * Makefile.in (SOURCES): Delete tc-rep.cc, tc-rep-ass.cc, and |
|
9639 tc-rep-idx.cc from the list. |
|
9640 |
|
9641 * tree-const.h: Add #pragma interface. |
|
9642 * tree-const.cc: Add contents of tc-rep.cc, tc-rep-ass.cc, and |
|
9643 tc-idx.cc to this file. Add #pragma implementation. This makes |
|
9644 tree-const.cc large, but makes the final binary smaller. |
|
9645 |
|
9646 * unwind-prot.h unwind-prot.cc token.cc token.h procstream.cc |
|
9647 procstream.h idx-vector.cc idx-vector.h symtab.cc symtab.h |
|
9648 oct-map.cc oct-map.h oct-obj.cc oct-obj.h tree-plot.h tree-plot.cc |
|
9649 tree-misc.cc tree-misc.h tree-expr.cc tree-expr.h tree-cmd.cc |
|
9650 tree-cmd.h tree-base.cc tree-base.h: |
|
9651 Add #pragma interface/implementation. |
|
9652 |
|
9653 * Makefile.in (OCTAVE_LIBS): Delete @LIBINFO@ from list. |
|
9654 * help.cc: Don't include info headers or extern declarations for |
|
9655 functions from info. |
|
9656 (try_info): Call info as a subprocess. Delete second arg. |
|
9657 Handle SIGINT here, not in help_from_info(). |
|
9658 (help_from_info): Complain if info doesn't work. |
|
9659 |
|
9660 * defun-dld.h (DEFUN_DLD_BUILTIN) [OCTAVE_LITE && MAKE_BUILTINS]: |
|
9661 If ! WITH_DLD, simply emit a character string constant. |
|
9662 |
|
9663 Fri Apr 28 15:23:06 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9664 |
|
9665 * lex.l ({IDENT}{S}*): Don't delete tok. That's handled by |
|
9666 strip_trailing_whitespace() now. |
|
9667 (<HELP_FCN>[^ \t\n]*{S}*|<TEXT_FCN>[^ \t\n\;\,]*{S}*): Ditto. |
|
9668 |
|
9669 * pathsearch.h: Include kpathsea/progname.h. |
|
9670 * octave.cc (initialize_globals): Call kpse_set_progname(). |
|
9671 |
|
9672 * token.h: Declare copy constructor and operator = private. |
|
9673 * token.cc: Abort if copy constructor or operator = is used. |
|
9674 |
|
9675 Thu Apr 27 13:54:39 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9676 |
|
9677 * tree-expr.cc (lookup_map_element): Don't list default argument |
|
9678 values here too. |
|
9679 |
|
9680 * pr-output.cc (hex_format): New file-scope variable. |
|
9681 (set_format, pr_any_float): Handle hex_format. |
|
9682 (octave_print_internal): Handle hex_format like bank_format. |
|
9683 (init_format_state): Initialize hex_format. |
|
9684 (set_format_style): Allow `format hex' and `format native-hex'. |
|
9685 |
|
9686 * variables.cc (bind_ans): Create ans_id each time with new and |
|
9687 ask tree_simple_assignment_expression to handle cleaning it up. |
|
9688 This apparently plugs a memory leak. |
|
9689 |
|
9690 * help.cc (Ftype): Don't try to print map constants. Handle |
|
9691 references to structure members. |
|
9692 |
|
9693 Wed Apr 26 12:40:59 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9694 |
|
9695 * input.cc (generate_struct_completions): New function. |
|
9696 (generate_possible_completions): Likewise. |
|
9697 (looks_like_struct): Likewise. |
|
9698 (command_generator): Handle completion of struct variables. |
|
9699 |
|
9700 * tree-expr.h, tree-expr.cc (tree_fvc::lookup_map_element): |
|
9701 Add insert and silent args. |
|
9702 |
|
9703 * oct-map.cc: New file. |
|
9704 * Makefile.in (SOURCES): Add it to the list. |
|
9705 |
|
9706 Mon Apr 24 09:41:02 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9707 |
|
9708 * variables.cc (Fexist): Handle structure references too. |
|
9709 |
|
9710 * tree-const.cc (lookup_map_element (const char*, int, int): |
|
9711 New function. |
|
9712 (lookup_map_element (SLList<char*>&, int, int): New arg, silent. |
|
9713 * tc-rep.cc (lookup_map_element): New arg, silent. If nonzero, |
|
9714 don't call error(). |
|
9715 |
|
9716 * tc-rep.h (is_empty): Define here. |
|
9717 * tree-const.h (is_empty): Hand off to TC_REP::is_empty(). |
|
9718 |
|
9719 * data.cc (Fstruct_contains): Call lookup_map_element on args(0) |
|
9720 instead of extracting the map and calling contains() on it. |
|
9721 |
|
9722 * parse.y (EPLUS, EMINUS): New tokens. |
|
9723 (simple_expr): Handle EPLUS, EMINUS the same as `+' and `-'. |
|
9724 * lex.l (".+", ".-"): New patterns. Match these separately to |
|
9725 disallow using them as unary operators. |
|
9726 |
|
9727 * lex.l (next_token_is_bin_op): Simplify by noting that spacing |
|
9728 only matters for those tokens that can also be unary ops. |
|
9729 |
|
9730 Fri Apr 21 14:34:45 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9731 |
|
9732 * load-save.cc (read_ascii_data): Allow reading of empty |
|
9733 matrices. |
|
9734 |
|
9735 * tc-rep-ass.cc (vector_assignment): Only assert that we are not |
|
9736 doing fortran-style indexing and that nr <= 1 || nc <= 1. |
|
9737 (do_vector_assign): Handle assignment of [] when one dimension is |
|
9738 zero and the other is anything. |
|
9739 |
|
9740 Thu Apr 20 13:56:21 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9741 |
|
9742 * tc-rep-ass.cc (delete_rows, delete_columns): Simply return if |
|
9743 num_to_delete is 0. |
|
9744 |
|
9745 * lex.l (handle_identifier): Don't match plot option keywords |
|
9746 inside parentheses or braces. |
|
9747 |
|
9748 * variables.cc (parse_fcn_file): Also delete tmp_help_txt if |
|
9749 running a script. |
|
9750 |
|
9751 * tree-cmd.h (tree_command): Add destructor. |
|
9752 |
|
9753 * tree-expr.h tree_simple_assignment_expression (lhs_idx_expr): |
|
9754 Hang on to idx_expr, not just its parts so it can be deleted. |
|
9755 (init): Initialize it. |
|
9756 * tree-expr.cc (~tree_simple_assignment_expression): Delete it. |
|
9757 |
|
9758 * tree-expr.h (tree_multi_val_ret, tree_oct_obj, tree_fvc, |
|
9759 tree_identifier, tree_builtin, tree_function): Add destructors. |
|
9760 * tree-expr.cc (tree_function::~tree_function): Delete some stuff. |
|
9761 |
|
9762 * tree-misc.h (tree_va_return_list): Add destructor. |
|
9763 |
|
9764 * octave.cc (__builtin_new, __builtin_delete): Provide our own, |
|
9765 for debugging. |
|
9766 |
|
9767 * utils.cc (strconcat): Don't depend on the return value from |
|
9768 strcat. |
|
9769 (file_in_path): Simplify logic. |
|
9770 |
|
9771 * parse.y (maybe_convert_to_ans_assign): Create ans_id each time |
|
9772 with new and ask tree_simple_assignment_expression to handle |
|
9773 cleaning it up. This apparently plugs a memory leak. |
|
9774 |
|
9775 * lex.l (strip_trailing_whitespace): Declare retval static. |
|
9776 Delete it before saving next string. |
|
9777 |
|
9778 * error.cc (Ferror): Do call error() for empty string args. |
|
9779 (error_1): Don't print anything if fmt is "" or "\n", but do set |
|
9780 the error state appropriately. |
|
9781 |
|
9782 * tree-cmd.cc (tree_unwind_protect::eval): Handle return and break |
|
9783 in the `try' part of the statement. |
|
9784 |
|
9785 Mon Apr 10 19:29:44 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9786 |
|
9787 * f-expm.cc, f-givens.cc, f-qzval.cc, f-syl.cc, f-rand.cc: |
|
9788 Where appropriate, declare Fortran functions to take reference |
|
9789 instead of pointer args. Change callers. |
|
9790 |
|
9791 * mappers.cc: Declare Fortran functions to take reference instead |
|
9792 of pointer args. Change callers. |
|
9793 |
|
9794 * gamma.c, lgamma.c, erfc.c, erf.c, atanh.c, asinh.c, acosh.c: |
|
9795 Declare Fortran functions to take reference instead of pointer |
|
9796 args. |
|
9797 |
|
9798 Sun Apr 9 19:38:53 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9799 |
|
9800 * file-io.cc (Fpopen, Fpclose, Fexecute, Fsync_system, |
|
9801 Fasync_system, Fwaitpid, Fmkfifo, Funlink): New functions. |
|
9802 |
|
9803 * sighandlers.cc (sigchld_handler): New function. |
|
9804 (install_signal_handlers): Add call to install |
|
9805 sigchld_handler. (This is #if 0'd out, waiting for code to help |
|
9806 determine which child exited and what to do about it). |
|
9807 |
|
9808 * tree-expr.h (tree_oct_obj): New class. |
|
9809 |
|
9810 * tree-expr.h (tree_multi_assignment_expression::preserve): New |
|
9811 data member. Add arg with default value to constructors. Change |
|
9812 callers as necessary. |
|
9813 * tree-expr.cc (~tree_multi_assignment_expression): Conditionally |
|
9814 delete lhs. |
|
9815 |
|
9816 * parse.y (make_multi_val_ret): Pass matrix instead of getting it |
|
9817 from the global matrix list. |
|
9818 (expression): Extract matrix from matrix list before calling |
|
9819 make_multi_val_ret(). |
|
9820 |
|
9821 * parse.y (command): Handle new for loop syntax for structures. |
|
9822 |
|
9823 * tree-plot.h (subplot_list): Include tree_print_code() in |
|
9824 initializer lists for constructors. |
|
9825 * tree-expr.h (tree_statement_list, tree_argument_list, |
|
9826 tree_parameter_list, tree_return_list, tree_global_init_list, |
|
9827 tree_if_command_list, ): Likewise. |
|
9828 |
|
9829 * tree-cmd.h (tree_for_command::id_list): New data member. |
|
9830 (tree_for_command (tree_return_list*, tree_expression*, |
|
9831 tree_statement_list*, int, int)): Likewise. |
|
9832 * tree-cmd.cc (tree_for_command::eval): Handle for loops with |
|
9833 structures. |
|
9834 (do_for_loop_once (tree_return_list*, Octave_object&, int&)): |
|
9835 New form for handling for loops with structures. |
|
9836 |
|
9837 * sysdep.cc (octave_ieee_init): Determine floating point format |
|
9838 here. |
|
9839 (native_float_format): New global variable. |
|
9840 (Fisieee): Compute return value from native_float_format, not by |
|
9841 using preprocessor macros. |
|
9842 * sysdep.h (enum floating_point_format): Move declaration here. |
|
9843 * load-save.cc: From here. |
|
9844 Always define all floating point format conversion routines. |
|
9845 (do_double_format_conversion, do_float_format_conversion): |
|
9846 Use native_float_format instead of preprocessor macros. |
|
9847 |
|
9848 Sat Apr 8 15:41:35 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9849 |
|
9850 * Makefile (TEMPLATE_SRC): New variable. |
|
9851 (DISTFILES): Add $(TEMPLATE_SRC). |
|
9852 (SOURCES): Delete Map.cc and SLStack.cc from here. |
|
9853 |
|
9854 * variables.cc (install_builtin_variables): Use OCTAVE_VERSION |
|
9855 instead of version_string to initialize OCTAVE_VERSION. |
|
9856 * version.h (version_string): Delete. |
|
9857 |
|
9858 * getopt.c (_getopt_internal): Initialize indfound to avoid warning. |
|
9859 |
|
9860 Fri Apr 7 15:29:41 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9861 |
|
9862 * tc-inlines.h (REP_RHS_MATRIX): Just check to see if tc is real |
|
9863 or complex. If conversion fails, return. |
|
9864 |
|
9865 Thu Apr 6 00:10:47 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9866 |
|
9867 * data.cc (Fstruct_contains): New function. |
|
9868 |
|
9869 * tc-rep.cc (print_code): Add extra parens around while condition |
|
9870 to avoid warning. |
|
9871 * utils.cc (undo_string_escapes): Likewise. |
|
9872 * input.cc (decode_prompt_string): Likewise. Also rewrite if |
|
9873 statement to avoid warning. |
|
9874 |
|
9875 Tue Apr 4 22:54:17 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9876 |
|
9877 * tree-expr.cc (tree_multi_assignment_expression::eval, |
|
9878 tree_simple_assignment_expression::eval): Call print_constant |
|
9879 even if user_pref.print_answer_id_name is false. |
|
9880 |
|
9881 Mon Apr 3 17:57:14 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9882 |
|
9883 * tc-inlines.h (TC_REP): Avoid redefinition. |
|
9884 |
|
9885 * tree-const.h (do_binary_op, do_unary_op): Declare as friends of |
|
9886 tree_constant class too. |
|
9887 |
|
9888 * tree-plot.h (subplot_using::have_values): Delete data member. |
|
9889 * tree-plot.cc (subplot_using::eval): Always recompute values. |
|
9890 |
|
9891 Fri Mar 31 10:18:32 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9892 |
|
9893 * tc-rep.cc (print): Print open brace for structures here. |
|
9894 * tree-expr.cc (print_constant): Not here. |
|
9895 |
|
9896 * symtab.cc (define): Don't delete arg if sv_fcn fails. |
|
9897 |
|
9898 * tree-const.cc (print): New function. Create ostrstream buffer |
|
9899 and pass it to rep->print(). |
|
9900 * tree-const.h (eval (int)): Call print(), not rep->print(). |
|
9901 * tc-rep.cc (structure_indent_level): New file-scope variable. |
|
9902 (print): New arg, output_buf, is stream to print to. |
|
9903 Print values of structure elements too. |
|
9904 |
|
9905 * user-prefs.h (user_preferences): New field, struct_levels_to_print. |
|
9906 * user-prefs.cc (struct_levels_to_print): New function. |
|
9907 * variables.cc (install_builtin_variables): Add DEFVAR for new |
|
9908 variable struct_levels_to_print. |
|
9909 |
|
9910 * tree-const.cc (print_as_scalar, print_as_structure): Move here |
|
9911 from tree-expr.cc and make extern. |
|
9912 |
|
9913 * tree-expr.cc (print_as_structure): New function. |
|
9914 (print_constant): Use it. |
|
9915 |
|
9916 * tree-expr.cc (print_constant): New arg, print_padding. |
|
9917 (tree_simple_assignment_expression::eval): Use print_constant |
|
9918 instead of duplicating code here. |
|
9919 (tree_multi_assignment_expression::eval): Likewise. |
|
9920 |
|
9921 Thu Mar 30 13:24:11 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9922 |
|
9923 * Makefile.in (SOURCES): Add resource.cc. |
|
9924 * resource.cc: New file, extracted from timefns.cc. |
|
9925 (Fgetrusage): New function. |
|
9926 * timefns.cc (cputime): Delete (now implemented in a function file |
|
9927 using new getrusage function). |
|
9928 |
|
9929 Wed Mar 29 22:52:42 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9930 |
|
9931 * Makefile.in (SOURCES): Add strftime.c. |
|
9932 * strftime.c: New file, from sh-utils distribution. |
|
9933 |
|
9934 * timefns.cc (mk_tm_map, extract_tm, Ftime, Fgmtime, Flocaltime, |
|
9935 Fmktime, Fstrftime): New basic time functions. |
|
9936 (Fclock, Fdate): Delete (now implemented in function files using new |
|
9937 time functions). |
|
9938 |
|
9939 Tue Mar 28 17:51:51 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9940 |
|
9941 * file-io.cc (return_valid_file, do_printf, do_scanf, |
|
9942 fclose_internal, feof_internal, ferror_internal, fflush_internal, |
|
9943 fgets_internal, fopen_internal, fread_internal, freport_internal, |
|
9944 frewind_internal, fseek_internal, ftell_internal, |
|
9945 fwrite_internal): Declare static. |
|
9946 * file-io.h: Delete extern declarations for them. |
|
9947 |
|
9948 Fri Mar 24 09:52:50 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9949 |
|
9950 * pr-output.cc (pr_col_num_header): New function. |
|
9951 (compact_format): New file-scope variable. |
|
9952 (set_format_style): Handle loose and compact formats. |
|
9953 (octave_print_internal (ostream&, const ComplexMatrix&, int)): |
|
9954 Replace duplicate code with call to pr_col_num_header(). |
|
9955 (octave_print_internal (ostream&, const Matrix&, int): Likewise. |
|
9956 (octave_print_internal (ostream&, const Range&, int): Likewise. |
|
9957 |
|
9958 Tue Mar 21 08:44:48 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9959 |
|
9960 * mappers.cc (xgamma): Always use Slatec library function. |
|
9961 * (xlgamma): Likewise. |
|
9962 * Makefile.in (SOURCES): Don't include lgamma.c. |
|
9963 |
|
9964 Fri Mar 17 22:38:39 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9965 |
|
9966 * tc-rep.cc (TC_REP::new): Don't try to keep track of newlist_tail. |
|
9967 Explicitly initialize newlist to zero. |
|
9968 * tree-const.cc (tree_constant::operator new): Likewise. |
|
9969 |
|
9970 Fri Mar 10 12:40:24 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
9971 |
|
9972 * tree-cmd.cc (quit_loop_now): Declare inline. |
|
9973 (tree_for_command::do_for_loop_once): Split into two versions, one |
|
9974 for the general case and one for when the loop variable is a |
|
9975 simple identifier. |
|
9976 (DO_LOOP): New macro. Move tests outside of loop. |
|
9977 (tree_for_command::eval): Speed up by checking to see if loop |
|
9978 variable is a simple identifier and by using DO_LOOP. |
|
9979 |
|
9980 * tree-const.h: New union of rep and freeptr. The freeptr element |
|
9981 is used for our custom memory management functions. |
|
9982 |
|
9983 * tc-rep.h: Add freeptr element to anonymous union (for our custom |
|
9984 memory management functions). |
|
9985 |
|
9986 * tree-const.cc (newlist, newlist_grow_size, newlist_tail): New |
|
9987 static variables. |
|
9988 (tree_constant::operator new): Always define to allow more |
|
9989 efficient allocation of single tree_constants. |
|
9990 (tree_constant::operator delete): Likewise, handle deletion of the |
|
9991 memory we allocate. |
|
9992 |
|
9993 * tc-rep.cc (newlist, newlist_grow_size, newlist_tail): New static |
|
9994 variables. |
|
9995 (tree_constant::operator new): Always define to allow more |
|
9996 efficient allocation of single tree_constants. |
|
9997 (tree_constant::operator delete): Likewise, handle deletion of the |
|
9998 memory we allocate. |
|
9999 |
|
10000 Fri Mar 3 14:00:08 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
10001 |
|
10002 * error.cc (verror): Terminate output_buf with ends. |
|
10003 |
|
10004 * statdefs.h: Use C-style comment in first line instead of |
|
10005 C++-style comment. |
|
10006 |
|
10007 Mon Feb 27 10:11:18 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
10008 |
|
10009 * parse.y (maybe_convert_to_ans_assign): Only lookup ans once. |
|
10010 * variables.cc (bind_ans): New function. |
|
10011 * tree-expr.cc (tree_identifier::eval (int)): Use it here. |
|
10012 (tree_identifier::eval (int, int, const Octave_object&): And here. |
|
10013 |
|
10014 * tree-expr.cc (install_nargin_and_nargout): New function. |
|
10015 * tree-expr.h (tree_function::tree_function (tree_statement_list *, |
|
10016 symbol_table *, int, int)): Call it. |
|
10017 |
|
10018 * tree-expr.cc (tree_function::bind_nargin_and_nargout): New function. |
|
10019 (tree_function::eval): Call it insead of the one from variables.cc. |
|
10020 |
|
10021 * variables.cc (bind_nargin_and_nargout): #if 0 out. |
|
10022 |
|
10023 Sun Feb 26 00:17:06 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
10024 |
|
10025 * load-save.cc (Fload, Fsave): Free fname returned by tilde_expand(). |
|
10026 * dirfns.cc (Fls): Likewise. |
|
10027 |
|
10028 * tree-expr.cc (tree_multi_assignment_expression::eval (int, int, |
|
10029 const Octave_object&)): Call tree_return_list::operator () (Pix) |
|
10030 explicitly. |
|
10031 |
|
10032 * octave.cc (initialize_globals): Put TEXMF in the environment for |
|
10033 kpthsea. |
|
10034 |
|
10035 * Makefile.in (OCTAVE_LIBS): Use @LIBINFO@ and @LIBREADLINE@, |
|
10036 substituted by configure. Use kpathsea.a, not libkpathsea, so we |
|
10037 don't have to modify the kpathsea Makefile. |
|
10038 |
|
10039 Sat Feb 25 18:59:26 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
10040 |
|
10041 * pathsearch.cc: New file. |
|
10042 * pathsearch.h: New file. |
|
10043 * Makefile.in (INCLUDES): Include it in the list. |
|
10044 * dynamic-ld.cc, help.cc, utils.cc: Use it instead of repeating |
|
10045 identical code multiple times. |
|
10046 |
|
10047 * variables.cc (install_builtin_variables): Only DEFVAR |
|
10048 suppress_verbose_help_message if USE_GNU_INFO. |
|
10049 |
|
10050 * help.cc (Fhelp): Only handle -i if USE_GNU_INFO. |
|
10051 (additional_help_message): Only print message if USE_GNU_INFO. |
|
10052 (builtin_help): New function. |
|
10053 (help_from_info): New function. Print warning if not USE_GNU_INFO. |
|
10054 |
|
10055 See ChangeLog.1 in the top level directory for earlier changes. |