3203
|
1 Fri Oct 30 08:39:30 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2 |
3205
|
3 * oct-lvalue.cc (octave_lvalue::do_unary_op): Make it work for |
|
4 indexed ops too. |
|
5 * ov.cc (octave_value::unary_op_to_assign_op): New function. |
|
6 (octave_value::do_non_const_unary_op): New function for indexed ops. |
|
7 |
3204
|
8 * parse.y (LEFTDIV_EQ, ELEFTDIV_EQ): New tokens. |
|
9 (assign_expr): Add rules for them. |
|
10 (make_assign_op): Handle them here too. |
|
11 * lex.l: Recognize them. |
|
12 * ov.h (octave_value::assign_op): Add ldiv_eq and el_ldiv_eq. |
|
13 * ov.cc (octave_value::assign_op_as_string): Ditto. |
|
14 (octave_value::op_eq_to_binary_op): Ditto. |
|
15 (octave_value::assign): Handle OP= style operators with brute force. |
|
16 (octave_value::simple_assign): New function. |
|
17 |
3203
|
18 * parse.y (matrix): Dont' forget to reset |
|
19 lexer_flags.looking_at_matrix_or_assign_lhs. |
|
20 |
|
21 * oct-lvalue.cc (octave_lvalue::assign): Don't call change |
|
22 function if error occurs. |
|
23 (octave_lvalue::do_unary_op): If we have an index, fail with message. |
|
24 |
3202
|
25 Thu Oct 29 09:27:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
26 |
3203
|
27 * ov.cc (do_binary_op): Protect against invalid type conversions. |
|
28 (try_assignment_with_conversion): Likewise. |
|
29 (do_unary_op): Likewise. |
|
30 |
|
31 * ov.h (OV_UNOP_FN, OV_UNOP_OP, OV_UNOP_FN_OP): New macros. |
|
32 Use them to define not, uminus, transpose, hermitian functions |
|
33 and operators ! and -. |
|
34 (OV_BINOP_FN, OV_BINOP_OP, OV_BINOP_FN_OP): New macros. |
|
35 Use them to define add, sub, mul, div, pow, ldiv, lshift, rshift, |
|
36 lt, le, eq, ge, gt, ne, el_mul, el_div, el_pow, el_ldiv, el_and, |
|
37 el_or, struct_ref, functions and operators <, <=, ==, >=, >, !=, |
|
38 +, -, *, and /. |
|
39 |
|
40 * ops.h (CONVDECLX): New macro. |
|
41 * ov-base.cc (matrix_conv, complex_matrix_conv, string_conv): |
|
42 Use it to declare these functions. |
|
43 |
|
44 * ops.h (CONVDECL, INSTALL_WIDENOP): |
|
45 Prefix function name with `oct_conv_'. |
|
46 (INSTALL_BINOP, BINOPDECL): Prefix function name with `oct_binop_'. |
|
47 (INSTALL_ASSIGNOP, INSTALL_ASSIGNANYOP, ASSIGNOPDECL): |
|
48 Prefix function name with `oct_assignop_'. |
|
49 (UNOPDECL, DEFNCUNOP_METHOD, INSTALL_UNOP, INSTALL_NCUNOP): |
|
50 Prefix function name with `oct_unop_'. |
|
51 |
|
52 * ov-str-mat.cc (default_numeric_conversion_function): |
|
53 Return 0 if conversion fails. |
|
54 |
|
55 * parse.y (make_prefix_op, make_postfix_op): Use |
|
56 octave_value::unary_op enum. |
|
57 |
|
58 * pt-unop.cc (tree_prefix_expression::rvalue): Use new unary_op |
|
59 functions from octave_value and octave_lvalue classes. |
|
60 (tree_prefix_expression::rvalue): Likewise. |
|
61 |
|
62 * pt-unop.cc (tree_unary_expression::oper): Move here. |
|
63 (tree_prefix_expression::oper, tree_postfix_expression): From here. |
|
64 |
|
65 * pt-unop.h (tree_prefix_expression, tree_postfix_expression): |
|
66 Delete enums. |
|
67 (tree_unary_expression): Use octave_value::unary_op enum. |
|
68 * parse.y (make_prefix_op, make_postfix_op): Likewise. |
|
69 |
|
70 * oct-lvalue.h (octave_lvalue::do_unary_op): New function. |
|
71 (octave_lvalue::increment, octave_lvalue::decrement): Delete. |
|
72 |
|
73 * ov-typeinfo.h (octave_value_typeinfo::non_const_unary_ops): |
|
74 New data member. |
|
75 * ov-typeinfo.h (octave_value_typeinfo::lookup_non_const_unary_op): |
|
76 New function. |
|
77 * ov-typeinfo.cc (octave_value_typeinfo::register_non_const_unary_op): |
|
78 New function. |
|
79 (octave_value_typeinfo::do_register_non_const_unary_op): Ditto. |
|
80 (octave_value_typeinfo::do_lookup_non_const_unary_op): Ditto. |
|
81 |
|
82 * ov.cc (octave_value::do_non_const_unary_op): New function. |
|
83 |
|
84 * Makefile.in (OP_XSRC): Add op-chm.cc and op-range.cc to the list. |
|
85 |
|
86 * OPERATORS/op-str-str.cc: Define string matrix unary operators here. |
|
87 (install_str_str_ops): Install them here. |
|
88 * ov-bool-mat.h (octave_bool_matrix::transpose, |
|
89 octave_bool_matrix_value::hermitian): Delete. |
|
90 |
|
91 * OPERATORS/op-chm.cc: New file. Define char matrix unary operators. |
|
92 (install_chm_ops): Install them here. |
|
93 * ov-ch-mat.h (octave_char_matrix::transpose, |
|
94 octave_char_matrix_value::hermitian): Delete. |
|
95 * ops.cc (install_ops): Call install_chm_ops. |
|
96 |
|
97 * OPERATORS/op-bm-bm.cc: Define bool matrix unary operators here. |
|
98 (install_bm_bm_ops): Install them here. |
|
99 * ov-bool-mat.h (octave_bool_matrix::transpose, |
|
100 octave_bool_matrix_value::hermitian): Delete. |
|
101 |
|
102 * ov-bool.h (octave_bool::not, octave_bool::uminus, |
|
103 octave_bool::transpose, octave_bool::hermitian): Delete. |
|
104 |
|
105 * OPERATORS/op-cs-cs.cc: Define complex scalar unary operators here. |
|
106 (install_cs_cs_ops): Install them here. |
|
107 * ov-complex.h (octave_complex::not, octave_complex::uminus, |
|
108 octave_complex::transpose, octave_complex::hermitian): Delete. |
|
109 |
|
110 * OPERATORS/op-cm-cm.cc: Define complex matrix unary operators here. |
|
111 (install_cm_cm_ops): Install them here. |
|
112 * ov-cx-mat.h (octave_complex_matrix::not, |
|
113 octave_complex_matrix::uminus, octave_complex_matrix::transpose, |
|
114 octave_complex_matrix::hermitian): Delete. |
|
115 |
|
116 * OPERATORS/op-m-m.cc: Define matrix unary operators here. |
|
117 (install_m_m_ops): Install them here. |
|
118 * ov-re-mat.h (octave_matrix::not, octave_matrix::uminus, |
|
119 octave_matrix::transpose, octave_matrix::hermitian): Delete. |
|
120 |
|
121 * OPERATORS/op-range.cc: New file. Define range unary operators. |
|
122 (install_range_ops): Install them here. |
|
123 * ov-range.h (octave_range::not, octave_range::uminus, |
|
124 octave_range::transpose, octave_range::hermitian): Delete. |
|
125 * ops.cc (install_ops): Call install_range_ops. |
|
126 |
|
127 * OPERATORS/op-s-s.cc: Define scalar unary operators here. |
|
128 (install_s_s_ops): Install them here. |
|
129 * ov-scalar.h (octave_scalar::not, octave_scalar::uminus, |
|
130 octave_scalar::transpose, octave_scalar::hermitian): Delete. |
|
131 |
|
132 * ops.h (INSTALL_UNOP, CAST_UNOP_ARG, UNOPDECL, DEFUNOPX, DEFUNOP, |
|
133 DEFUNOP_OP, DEFUNOP_FN): New macros. |
|
134 |
|
135 * ov.h (unary_op_fcn): New typedef. |
|
136 (octave_value::unary_op): New enum. |
|
137 * ov.cc (octave_value::octave_value): New function. |
|
138 |
|
139 * ov.h (octave_value::not, octave_value::uminus, |
|
140 octave_value::transpose, octave_value::hermitian, |
|
141 octave_value::increment, octave_value::decrement): Delete. |
|
142 |
|
143 * ov-base.cc (octave_base_value::not, octave_base_value::uminus, |
|
144 octave_base_value::transpose, octave_base_value::hermitian, |
|
145 octave_base_value::increment, octave_base_value::decrement): Delete. |
|
146 |
|
147 * ov.cc (gripe_unary_op): New function. |
|
148 (do_unary_op): New function. |
|
149 * ov-typeinfo.h (octave_value_typeinfo::unary_ops): |
|
150 New data member. |
|
151 * ov-typeinfo.cc (octave_value_info::register_unary_op, |
|
152 octave_value_info::do_register_unary_op, |
|
153 octave_value_info::lookup_unary_op, |
|
154 octave_value_info::do_lookup_unary_op): |
|
155 New functions. |
|
156 |
3202
|
157 * ov-list.cc (Fsplice): Use new octave_value::int_value function here. |
|
158 (octave_list::do_index_op): Likewise. |
|
159 (octave_list::assign): Likewise. |
|
160 * toplev.cc (Fquit): Likewise. |
|
161 * syscalls.cc (Fwaitpid): Likewise. |
|
162 (Ffcntl): Likewise. |
|
163 * file-io.cc (do_fread): Likewise. |
|
164 (do_fwrite): Likewise. |
|
165 * data.cc (make_diag): Likewise. |
|
166 (Fsize): Likewise. |
|
167 (get_dimensions): Likewise. |
|
168 (Flinspace): |
|
169 |
|
170 * ov-base.cc (octave_base_value::int_value): New function. |
|
171 (octave_base_value::nint_value): Ditto. |
|
172 * ov.h (octave_value::int_value): Ditto. |
|
173 (octave_value::nint_value): Ditto. |
|
174 |
|
175 * ov-list.cc (octave_list::assign): Fix off-by-one error. |
|
176 |
3196
|
177 Wed Oct 28 11:01:37 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
178 |
3202
|
179 * load-save.cc (read_mat_ascii_data): Try harder to convert file |
|
180 name to valid variable name. |
|
181 |
|
182 * data.cc (Fisempty, Fis_matrix): New functions. |
|
183 |
|
184 * ov-str-mat.h (octave_char_matrix_str::is_matrix_type): New function. |
|
185 |
3196
|
186 * OPERATORS/op-list.cc: New file. |
|
187 * Makefile.in (OP_XSRC): Add it to the list. |
|
188 |
|
189 * ov-list.cc (octave_list::assign): New function. |
|
190 |
|
191 * ov-typeinfo.h (octave_value_typeinfo::assignany_ops): |
|
192 New data member. |
|
193 * ov-typeinfo.cc (octave_value_info::register_assignany_op, |
|
194 octave_value_info::do_register_assignany_op, |
|
195 octave_value_info::lookup_assignany_op, |
|
196 octave_value_info::do_lookup_assignany_op): |
|
197 New functions. |
|
198 * ov.cc (octave_value::try_assignment (octave_value::assign_op, |
|
199 const octave_value_list&, const octave_value&)): If no assignment |
|
200 operator for particular RHS type exists, try finding one for |
|
201 generic octave_value as RHS type. |
|
202 * ops.h (DEFASSIGNANYOP_FN): New macro. |
|
203 |
|
204 * ov-list.cc (Fsplice): New function. |
|
205 * oct-obj.cc (octave_value_list::splice): New function. |
|
206 |
|
207 * ov.cc (Vresize_on_range_error): No longer static. |
|
208 * ov.h (Vresize_on_range_error): Provide extern declaration. |
|
209 |
|
210 * oct-procbuf.cc (symbols_of_oct_procbuf): Don't declare static. |
|
211 |
|
212 * data.cc (Flength): New function. |
|
213 * ov.h (octave_value::length): New virtual function. |
|
214 * ov-base.cc (octave_base_value::length): New function. |
|
215 (octave_base_value::rows, octave_base_value::columns): Move |
|
216 definitions here, from ov-base.h. Don't return -1. Instead, |
|
217 gripe about wrong argument type. |
|
218 * ov-bool-mat.h (octave_bool_matrix::length): New function. |
|
219 * ov-bool.h (octave_bool::length): Ditto. |
|
220 * ov-ch-mat.h (octave_char_matrix::length): Ditto. |
|
221 * ov-complex.h (octave_complex::length): Ditto. |
|
222 * ov-cx-mat.h (octave_complex_matrix::length): Ditto. |
|
223 * ov-list.h (octave_list::length): Ditto. |
|
224 * ov-range.h (octave_range::length): Ditto. |
|
225 * ov-re-mat.h (octave_matrix::length): Ditto. |
|
226 * ov-scalar.h (octave_scalar::length): Ditto. |
|
227 |
|
228 Tue Oct 27 22:19:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
229 |
|
230 * ov-list.cc (octave_list::print_raw): Handle case of empty list. |
|
231 (octave_list::print_name_tag): Likewise. |
|
232 |
|
233 * octave.cc (intern_argv): Built-in variable argv is now a list of |
|
234 strings instead of a string vector. |
|
235 Always bind argv, making it an empty list if there are no args. |
|
236 |
|
237 Mon Oct 26 08:41:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
238 |
|
239 * xdiv.cc (mx_leftdiv_conform): Explicitly declare args to be |
|
240 passed as references to const objects. Fix explicit instantiation |
|
241 requests to match. |
|
242 (mx_div_conform): Likewise. |
|
243 |
|
244 * pt-unop.h (tree_prefix_expression): Reorder constructor args to |
|
245 put those with default values last. |
|
246 (tree_postfix_expression): Likewise. |
|
247 * parse.y: Change all callers. |
|
248 |
3192
|
249 Fri Oct 23 12:07:32 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
250 |
3196
|
251 * utils.cc (Ffile_in_loadpath): New function. |
|
252 |
|
253 * defaults.cc (Vload_path, Vdefault_load_path): Now static. |
|
254 |
|
255 * help.cc (simple_help): Use Vload_path_dir_path here instead of |
|
256 trying to reconstruct it from Vload_path. |
|
257 * fn-cache.cc (octave_fcn_file_name_cache::do_list): Likewise. |
|
258 (octave_fcn_file_name_cache::update): Likewise. |
|
259 |
|
260 * defaults.cc (octave_loadpath): Construct Vload_path_dir_path |
|
261 using Vdefault_load_path. |
|
262 (set_default_path): Likewise. |
|
263 |
|
264 * defaults.h, defaults.cc (maybe_add_default_load_path): Delete. |
|
265 |
3192
|
266 * defaults.cc (Vdefault_load_path): New static variable. |
|
267 (set_default_path): Set it. |
|
268 (maybe_add_default_load_path): Use it. |
|
269 (symbols_of_defaults): Add DEFCONST for DEFAULT_LOADPATH. |
|
270 Thanks to Rafael Laboissiere <rafael@icp.inpg.fr>. |
|
271 |
|
272 * defaults.cc (set_default_path): If OCTAVE_PATH is set in the |
|
273 environment, call maybe_add_default_load_path on it. |
|
274 |
|
275 Tue Oct 20 20:58:04 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
276 |
|
277 * defaults.cc (maybe_add_default_load_path): If LOADPATH contains |
|
278 an embedded "::", insert the default path there too. |
|
279 |
3189
|
280 Fri Oct 16 00:52:15 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
281 |
|
282 * parse.y (in_matrix_or_assign_lhs): New subroutine for lexical |
|
283 feedback. |
|
284 (matrix): Use it. |
|
285 (assign_lhs): Ditto. |
|
286 * lex.h (lexical_feedback::looking_at_matrix_or_assign_lhs): New |
|
287 data member. |
|
288 * lex.l (handle_identifier): Use it to handle keywords like `cd' |
|
289 as variables in contexts like [ab, cd] = foo (). |
|
290 |
|
291 * ov-str-mat.h |
|
292 (octave_char_matrix_str::octave_char_matrix_str (char c)): |
|
293 New constructor. |
|
294 * ov-ch-mat.h (octave_char_matrix::octave_char_matrix (char c)): |
|
295 New constructor. |
|
296 * ov.cc (octave_value::octave_value (char c): New constructor. |
|
297 |
|
298 * pt-loop.cc (tree_simple_for_command::eval): Handle case of RHS |
|
299 as string. |
|
300 |
|
301 Thu Oct 15 00:56:47 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
302 |
|
303 * DLD-FUNCTIONS/rand.cc: Declare Fortran subroutines as returning |
|
304 int, not int*. |
|
305 |
|
306 Wed Oct 14 23:51:31 1998 Georg Thimm <thimm@idiap.ch> |
|
307 |
|
308 * load-save.cc (Vcrash_dumps_octave_core): New static variable. |
|
309 (save_user_variables): Only save variables if |
|
310 Vcrash_dumps_octave_core is true. |
|
311 (symbols_of_load_save): Add DEFVAR for it here. |
|
312 (crash_dumps_octave_core): New function. |
|
313 * octave.cc (maximum_braindamage): Bind crash_dumps_octave_core to |
|
314 0.0 here. |
|
315 |
|
316 Tue Oct 13 22:05:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
317 |
|
318 * input.cc (read_readline_init_file): New function. |
|
319 |
|
320 Thu Oct 8 13:47:55 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
321 |
|
322 * oct-procbuf.h (octave_procbuf::wstatus): New data member. |
|
323 Initialize in constructors. |
|
324 (octave_procbuf::wait_status): New member function. |
|
325 * oct-procbuf.cc (octave_procbuf::sys_close): Use class data |
|
326 member wstatus, not local variable. |
|
327 * procstream.cc (procstreambase::close): Don't call sys_close directly. |
|
328 Get subprocess exit status by calling wait_status for our procbuf. |
|
329 * pt-plot.cc (close_plot_stream): Send "quit" command to gnuplot |
|
330 before deleting plot_stream. |
|
331 |
|
332 |
|
333 Thu Oct 1 22:39:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
334 |
|
335 * data.cc (Fis_complex): New function. |
|
336 |
3185
|
337 Fri Sep 25 11:50:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
338 |
|
339 * load-save.cc (write_header): Rename from write_binary_header. |
|
340 Also write header for Octave ASCII files. |
|
341 |
|
342 * load-save.cc (Fsave): Implement -append option. |
|
343 |
|
344 * defaults.cc (Frehash): New function. |
|
345 |
|
346 Fri Sep 25 11:50:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
347 |
|
348 * help.cc (help_from_info): Improve error message in case that |
|
349 info doesn't work. |
|
350 |
3180
|
351 Thu Sep 24 10:48:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
352 |
3185
|
353 * Makefile.in (DLD_XSRC): Replace qzval.cc with qz.cc |
|
354 |
|
355 * DLD-FUNCTIONS/balance.cc: Update from A. S. Hodel |
|
356 <scotte@eng.auburn.edu>. |
|
357 |
|
358 * DLD-FUNCTIONS/qz.cc: New file. |
|
359 |
|
360 * DLD-FUNCTIONS/qzval.cc: Delete. |
|
361 |
3180
|
362 * parse.y (plot_command1): Don't allow it to be empty. |
|
363 (plot_command): Handle simple `PLOT' and `PLOT ranges' as special |
|
364 cases here. |
|
365 |
|
366 Wed Sep 23 21:10:08 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
367 |
|
368 * lex.l: Change <MATRIX>{SNLCMT}*\n{SNLCMT}* pattern |
|
369 to <MATRIX>{S}*{COMMENT}{SNLCMT}* | <MATRIX>{S}*{NL}{SNLCMT}*. |
|
370 |
|
371 Fri Sep 4 10:50:00 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
372 |
|
373 * file-io.cc (Ffwrite): Fix doc string. |
|
374 |
|
375 Wed Sep 2 16:22:23 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
376 |
|
377 * input.cc (match_sans_spaces): Make it work. |
|
378 |
|
379 * toplev.cc (quit): Require nargout == 0. |
|
380 |
|
381 * input.cc (get_user_input): Only try matching "exit", "quit", and |
|
382 "return" if debugging. |
|
383 |
|
384 Tue Sep 1 12:50:24 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
385 |
|
386 * octave.cc: Use -H as single character equivalent of --no-history. |
|
387 |
|
388 Sat Aug 29 12:23:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
389 |
|
390 * oct-obj.cc (octave_value_list::make_argv): If some values are |
|
391 string vectors, insert all the elements, not just the first. |
|
392 |
|
393 Tue Aug 18 16:39:50 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
394 |
|
395 * oct-stream.cc (octave_base_stream::do_gets): Accept last line of |
|
396 file even if it doesn't end in a newline character. |
|
397 |
|
398 Tue Aug 18 16:25:49 1998 Mumit Khan <khan@xraylith.wisc.edu> |
|
399 |
|
400 * xdiv.cc (mx_leftdiv_conform, mx_div_conform): Instantiate correct |
|
401 templates. |
|
402 |
|
403 Thu Jul 30 00:37:43 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
404 |
|
405 * pt-loop.cc (tree_for_command::eval): Check for range first. |
|
406 If error occurs when extracting matrix value, return early. |
|
407 Don't bother to check for string type. |
|
408 |
|
409 * ov-ch-mat.h (octave_char_matrix::is_real_matrix): New function. |
|
410 |
|
411 Tue Jun 23 15:09:54 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
412 |
|
413 * parse.y (clear_current_script_file_name): New function. |
|
414 (parse_fcn_file): Bind current_script_file_name while script is |
|
415 executing. Use unwind_protect to clear it once the script is |
|
416 finished. |
|
417 |
|
418 * pt-plot.cc (Fgraw): New function. |
|
419 |
3178
|
420 Mon Jun 22 22:13:38 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
421 |
|
422 * variables.cc (is_valid_function): Provide version that takes |
|
423 function name as string. |
|
424 |
|
425 * parse.y (binary_expr): Fix thinko that resulted in incorrect |
|
426 evaluation of -x^y. Thanks to Richard Allan Holcombe |
|
427 <raholcom@unity.ncsu.edu>. |
|
428 (feval): Don't attempt to copy nonexistent arg names. |
|
429 |
|
430 Mon Jun 22 21:35:50 1998 Richard Allan Holcombe <raholcom@unity.ncsu.edu> |
|
431 |
|
432 * xpow.cc (xpow): Improve efficiency for matrix^(scalar int) case. |
|
433 |
|
434 Thu Jun 4 12:42:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
435 |
|
436 * ov-usr-fcn.cc (octave_user_function::octave_all_va_args): |
|
437 If num_args_passed < num_named_args, create zero length list. |
|
438 |
3176
|
439 Thu May 14 16:23:15 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
440 |
|
441 * DLD-FUNCTIONS/getrusage.cc: Include sys/types.h too. |
|
442 |
|
443 Mon May 11 00:38:45 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
444 |
|
445 * pager.cc (Fdiary): Don't forget to set write_to_diary file if |
|
446 just given a file name. |
|
447 |
|
448 * input.cc (octave_gets): Only send new line character to |
|
449 octave_diary if current_input_line is empty or doesn't already end |
|
450 with a new line character.. |
|
451 Don't send input from function files or scripts to octave_diary. |
|
452 |
3174
|
453 Sun May 3 19:54:38 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
454 |
|
455 * lex.l (reset_parser): Also call yyrestart if forced_interactive |
|
456 is true, but not if input_from_startup_file is true. |
|
457 |
|
458 Tue Apr 28 14:06:20 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
459 |
|
460 * oct-procbuf.cc (Vkluge_procbuf_delay): New static variable. |
|
461 (kluge_procbuf_delay): New function. |
|
462 (symbols_of_oct_procbuf): New function. |
|
463 (octave_procbuf::open): Delay Vkluge_procbuf_delay microseconds |
|
464 after forking. |
|
465 |
|
466 Thu Apr 23 15:41:08 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
467 |
|
468 * defaults.cc (Vload_path_dir_path): New variable. |
|
469 * utils.cc (file_in_path): Use it. |
|
470 |
|
471 * utils.cc (search_path_for_file): Undo previous change. |
|
472 (file_in_path): Undo previous change. |
|
473 * defaults.cc (loadpath): Undo previous change. Tilde expansion |
|
474 is once again handled correctly by the code in |
|
475 liboctave/pathsearch.cc. |
|
476 |
|
477 Mon Apr 20 21:50:34 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
478 |
|
479 * data.cc (get_dimensions): Allow zeros ([], 3) to work, for |
|
480 compatibility with Matlab. |
|
481 |
|
482 * dynamic-ld.cc [WITH_DL && ! HAVE_DLFCN_H]: Add declarations for |
|
483 dlopen, dlerror, dlsym, and dlclose. |
|
484 |
|
485 * octave.gperf: Handle __FILE__ and __LINE__. |
|
486 * lex.l (is_keyword): Likewise. |
|
487 * Makefile.in (oct-gperf.h): Pass -D option to gperf. |
|
488 Postprocess output of gperf to convert name of static variable |
|
489 from lookup to gperf_lookup, to avoid conflict with our function |
|
490 of the same name defined in variables.cc. |
|
491 |
3168
|
492 Sat Apr 18 20:17:10 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
493 |
|
494 * help.cc (USE_GNU_INFO): Delete uses of this macro. |
|
495 |
3167
|
496 Thu Apr 16 01:00:12 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
497 |
|
498 * dynamic-ld.cc: Only include dlfcn.h if HAVE_DLFCN_H. |
|
499 |
3165
|
500 Wed Apr 15 01:03:05 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
501 |
|
502 * input.cc (Vlast_prompt_time): New global variable. |
|
503 (octave_gets): Set it. |
3166
|
504 * ov-fcn.h (octave_function::time_checked): New virtual function |
|
505 (octave_function::mark_fcn_file_up_to_date): Ditto. |
3165
|
506 * ov-usr-fcn.h (octave_user_function::time_checked): New function. |
|
507 (octave_user_function::mark_fcn_file_up_to_date): Ditto. |
|
508 (octave_user_function::t_checked): New data member. |
|
509 * variables.cc (symbol_out_of_date): Only check file time stamp if |
|
510 a prompt has been printed since the last time check. |
|
511 |
|
512 * pt-plot.h, pt-plot.cc (subplot_axes): New class. |
|
513 (subplot): Handle axes. |
|
514 (Vgnuplot_command_axes): New static variable. |
|
515 (gnuplot_command_axes): New function. |
|
516 (symbols_of_pt_plot): DEFVAR gnuplot_command_axes. |
|
517 * pt-walk.h (tree_walker::visit_subplot_axes): New virtual function. |
|
518 * parse.y (plot_options): Handle axes. |
|
519 * lex.l (plot_axes_token): New function. |
|
520 (is_keyword): Use it. |
|
521 (is_plot_keyword): Recognize "axes" and "axis". |
|
522 * lex.h (class lexical_feedback): New field, in_plot_axes. |
|
523 (lexical_feedback::init): Reset it. |
|
524 |
|
525 Tue Apr 14 23:32:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
526 |
|
527 * parse.y (parse_fcn_file): New arg, force_script. Change callers. |
|
528 |
3164
|
529 Fri Apr 10 11:01:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
530 |
|
531 * help.cc (type): Also print values of variables. |
|
532 |
3162
|
533 Wed Apr 8 01:00:58 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
534 |
3164
|
535 * pr-output.cc (set_format): Set scale to 1.0 if all elements are |
|
536 int or inf or nan. |
|
537 |
3162
|
538 * parse.y (Vwarn_future_time_stamp): New variable. |
|
539 (symbols_of_parse): Add DEFVAR for it. |
|
540 (warn_future_time_stamp): New function. |
|
541 (frob_function_def): Maybe warn about files with future time stamps. |
|
542 |
|
543 Thu Apr 2 20:43:45 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
544 |
|
545 * pt-arg-list.cc (tree_argument_list::convert_to_const_vector): In |
|
546 error messages, print element numbers starting with 1, not 0. |
|
547 |
|
548 Sat Mar 28 15:25:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
549 |
|
550 * toplev.cc (clean_up_for_exit): New function. |
|
551 (clean_up_and_exit): Use it. |
|
552 * sighandlers.cc (my_friendly_exit): Call it instead of |
|
553 clean_up_and_exit, then do default action for signal. |
|
554 |
|
555 * sighandlers.cc (octave_new_handler): Call my_friendly_exit with |
|
556 signal set to SIGABRT if it is defined, or -1 otherwise. |
|
557 |
|
558 * error.cc (verror): Fix thinko in attempt to skip `error: ' tag |
|
559 when buffering error messages. |
|
560 * pt-except.cc (tree_try_catch::eval): Reset buffer_error_messages |
|
561 here if just discarding unwind_protect frame. |
|
562 |
|
563 Wed Mar 18 12:35:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
564 |
|
565 * xpow.cc (elem_xpow): For real-scalar .^ matrix case, result is |
|
566 complex only if real-scalar is negative and matrix has some |
|
567 non-integer values. |
|
568 |
|
569 Tue Mar 17 17:47:50 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
570 |
|
571 * pt-plot.cc (Vgnuplot_command_plot, Vgnuplot_command_replot, |
|
572 Vgnuplot_command_splot, Vgnuplot_command_using, |
|
573 Vgnuplot_command_with, Vgnuplot_command_title, |
|
574 Vgnuplot_command_end): New static variables. |
|
575 (symbols_of_pt_plot): DEFVAR them. |
|
576 (gnuplot_command_plot, gnuplot_command_replot, |
|
577 gnuplot_command_splot, gnuplot_command_using, |
|
578 gnuplot_command_with, gnuplot_command_title, |
|
579 gnuplot_command_end): New functions. |
|
580 (open_plot_stream, send_to_plot_stream, tree_plot_command::eval, |
|
581 subplot_using::print, subplot_style::print, subplot::print, |
|
582 do_external_plotter_cd, Fgset, Fgshow): Use them instead of the |
|
583 GPLOT_CMD_PLOT, GPLOT_CMD_REPLOT, GPLOT_CMD_SPLOT, |
|
584 GPLOT_CMD_USING, GPLOT_CMD_WITH, GPLOT_CMD_TITLE, and |
|
585 GPLOT_CMD_END macros. |
|
586 |
3160
|
587 Fri Feb 27 12:25:27 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
588 |
|
589 * help.cc (additional_help_message): Fix www address. |
|
590 |
|
591 Tue Feb 24 00:42:59 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
592 |
|
593 * help.cc (simple_help): Put additional help message first. |
|
594 (additional_help_message): Add information about web site and |
|
595 mailing list. |
|
596 |
3156
|
597 Fri Feb 20 00:41:06 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
598 |
|
599 * pt-plot.cc (GPLOT_CMD_REPLOT): Clear before replot. |
|
600 |
|
601 * Makefile.in: Better handling of lib flags for linking. |
|
602 |
|
603 Thu Feb 19 21:14:30 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
604 |
|
605 * pt-decl.cc (Vinitialize_global_values): New static variable. |
|
606 (initialize_global_variables): New function. |
|
607 (symbols_of_pt_decl): New function. |
|
608 DEFVAR Vinitialize_global_values and initialize_global_variables. |
|
609 (tree_global_command::do_init): If initialize_global_variables is |
|
610 not true and the variable doesn't have an explicit initializer, don't |
|
611 initialize it. If we are giving it a default value, use the value |
|
612 of the variable defualt_global_variable_value. |
|
613 * octave.cc (maximum_braindamage): Set default_global_variable_value |
|
614 and initialize_global_variables to Matlab-compatible values. |
|
615 |
|
616 Wed Feb 18 04:35:31 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
617 |
|
618 * DLD-FUNCTIONS/besselj.cc: Rename from bessel.cc. |
|
619 * Makefile.in (DLD_XSRC): Likewise. |
|
620 |
|
621 * syscalls.cc (Fvfork): Delete. |
|
622 |
|
623 * oct-procbuf.cc: Just use fork. |
|
624 |
|
625 * parse.y (feval): Provide version that takes function name |
|
626 separate from other args. |
|
627 * parse.h: Declare it. |
|
628 |
|
629 * oct-procbuf.cc (octave_procbuf::open): Move declaration of |
|
630 child_std_end outside of child scope and declare volatile. |
|
631 |
|
632 Mon Feb 16 15:04:28 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
633 |
|
634 * parse.y: Include cstdio, for SEEK_SET. |
|
635 |
3153
|
636 Thu Feb 12 22:07:00 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
637 |
|
638 * system.c: New file. |
|
639 * Makefile.in (SOURCES): Add it to the list. |
|
640 |
3148
|
641 Fri Feb 6 01:23:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
642 |
|
643 * oct-stream.cc (octave_base_stream::file_number): Rename from fileno. |
|
644 Change all uses. |
|
645 |
|
646 * fsolve.cc (fsolve_option_table): Add missing & to function names. |
|
647 |
3145
|
648 Thu Feb 5 02:27:18 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
649 |
3147
|
650 * dirfns.cc (Fls): If first attempt at reading process output |
|
651 fails, sleep once and try again. |
|
652 * toplev.cc (run_command_and_return_output): Likewise. |
|
653 |
|
654 * oct-procbuf.cc (octave_procbuf::open): Use vfork if it is available. |
|
655 |
|
656 * syscalls.cc (Fvfork): New function. |
|
657 |
3145
|
658 * ov-bool-mat.cc: Only declare assign function if |
|
659 CXX_NEW_FRIEND_TEMPLATE_DECL is not defined. |
|
660 |
|
661 * ov-base.h, ov-bool-mat.h, ov-bool.h, ov-ch-mat.h, ov-complex.h, |
|
662 ov-cx-mat.h, ov-range.h, ov-re-mat.h, ov-scalar.h: Handle default |
|
663 args for *_value functions consistently. |
|
664 |
|
665 * symtab.cc (maybe_list_cmp_fcn): Declare args as void*, not |
|
666 void**, then use X_CAST. |
|
667 |
|
668 * OPERATORS/op-s-cm.cc: Include mx-cm-s.h. |
|
669 |
|
670 * defun-int.h: Include ov-builtin.h, ov-mapper.h, and symtab.h. |
|
671 (install_builtin_mapper, install_builtin_function, |
|
672 install_builtin_variable) Use specific types rather than void * in |
|
673 declaration. |
|
674 * defun.cc (install_builtin_mapper, install_builtin_function, |
|
675 install_builtin_variable): Likewise. Eliminate casts. |
|
676 |
|
677 * load-save.cc (read_binary_data, read_mat_file_header, |
|
678 save_binary_data): Use X_CAST, not static_cast. |
|
679 * unwind-prot.h (unwind_protect::save_ptr): Likewise. |
|
680 * Map.cc (goodCHptr, index_to_CHptr, CHptr_to_index): Likewise. |
|
681 * dynamic-ld.cc (octave_dlopen_dynamic_loder::resolve_reference): |
|
682 Likewise. |
|
683 |
|
684 * pt-mat.cc (tm_const::operator bool ()): |
|
685 (tm_row_const::operator bool ()): Likewise. |
|
686 * oct-stream.cc (printf_value_cache::operator bool ()): Likewise. |
|
687 (scanf_format_list::operator bool ()): Likewise. |
|
688 (printf_format_list::operator bool ()): Likewise. |
|
689 (octave_stream::operator bool ()): Likewise. |
|
690 |
|
691 Wed Feb 4 13:08:29 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
692 |
|
693 * DLD-FUNCTIONS/minmax.cc: Include cmath, not oct-math.h. |
|
694 |
|
695 * syscalls.cc (Fdup2): Convert stream to actual system file id. |
|
696 |
|
697 * oct-stream.cc (octave_base_stream::fileno, octave_stream::fileno): |
|
698 New functions. |
|
699 |
3141
|
700 Tue Feb 3 00:24:44 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
701 |
|
702 * defaults.cc (exec_path): Append Vbin_dir to std_path. |
|
703 |
|
704 * octave.cc (initialize_pathsearch): Set TEXMFDBS, not TEXMF. |
|
705 Look for OCTAVE_DB_PATH in environment. |
|
706 Simplify using Vdata_dir and Vlibexec_dir. |
|
707 |
|
708 * defaults.h.in (Vdata_dir, Vlibexecdir): Declare new vars. |
|
709 defaults.cc: Define them. |
|
710 (set_default_data_dir, set_default_libexecdir): New functions. |
|
711 (install_defaults): Call them. |
|
712 |
|
713 * defaults.h.in (OCTAVE_LIBEXECDIR): Define. |
|
714 |
|
715 Mon Feb 2 02:43:16 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
716 |
|
717 * Makefile.in (install, uninstall): Use $(octlibdir), not $(libdir). |
|
718 Use mk-libdir-link. |
|
719 |
|
720 * defaults.h.in (OCTAVE_OCTLIBDIR): Substitute value. |
|
721 (Vlib_dir): Delete declaration. |
|
722 * defaults.cc (Vlib_dir): Delete. |
|
723 (set_default_lib_dir): Delete. |
|
724 (install_defaults): Don't call set_default_lib_dir. |
|
725 (set_default_info_prog): If oct_info_prog is empty, set default to |
|
726 "info" -- we expect it to be somewhere in the user's path. |
|
727 |
|
728 * defun.h (DEFCONST, DEFCONSTX): Eliminate inst_as_fcn and chg_fcn |
|
729 args. Always pass true for inst_as_fcn and 0 for chg_fcn to |
|
730 DEFVAR when creating built-in values like `e' or `stderr' that can |
|
731 be redefined. Change all uses. |
|
732 |
|
733 * help.cc (Ftype): Handle script files too. |
|
734 (Fwhich): Likewise. |
|
735 |
3136
|
736 Sat Jan 31 00:00:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
737 |
|
738 * ov-ch-mat.cc (octave_char_matrix::is_true): Make it work. |
|
739 * ov-str-mat.h, ov-str-mat.cc (octave_char_matrix_str::is_true): |
|
740 Delete. |
|
741 |
|
742 * load-save.cc (read_ascii_data): Allow strings of length 0. |
|
743 If we don't find data on the first call, fail with error message. |
|
744 (do_load): Pass count of items read to read_ascii_data. |
|
745 Allow `load foo xyz' to work when foo contains only numbers. |
|
746 |
|
747 Fri Jan 30 23:46:42 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
748 |
|
749 * ov-str-mat.h (octave_char_matrix_str::all): Delete. |
|
750 (octave_char_matrix_str::any): Delete. |
|
751 * ov-ch-mat.h (octave_char_matrix::all, octave_char_matrix::any): |
|
752 Call charMatrix::all, charMatrix::any. |
|
753 |
|
754 Thu Jan 29 16:25:46 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
755 |
|
756 * load-save.cc (read_mat_binary_data): Handle third digit of MOPT |
|
757 as flag indicating row or column major ordering. |
|
758 |
3131
|
759 Wed Jan 28 00:18:17 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
760 |
|
761 * DLD-FUNCTIONS/dassl.cc (lsode_option_table): |
|
762 Add missing & to function names. |
|
763 * DLD-FUNCTIONS/lsode.cc (lsode_option_table): Likewise. |
|
764 * DLD-FUNCTIONS/quad.cc (quad_option_table): Likewise. |
|
765 |
|
766 * Makefile.in (oct-gperf.h): Add -G option to gperf. |
|
767 |
|
768 * load-save.cc (get_save_type): Add `UL' and `L' suffixes to large |
|
769 constant values. For LS_INT, use <= and >= for comparison. |
|
770 |
|
771 Mon Jan 26 13:17:59 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
772 |
|
773 * ov-usr-fcn.cc (Vmax_recursion_depth): New static variable. |
|
774 (max_recursion_depth): New fucnction |
|
775 (symbols_of_ov_usr_fcn): DEFVAR max_recursion_depth. |
|
776 (octave_user_function::do_index_op): Check Vmax_recursion_depth. |
|
777 |
3130
|
778 Thu Jan 22 13:45:26 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
779 |
|
780 * dynamic-ld.cc (make_dynamic_loader): Fix typo. |
|
781 |
|
782 Tue Jan 20 17:02:19 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
783 |
|
784 * variables.cc (Fexist): If local symbol is undefined, check |
|
785 global table. |
|
786 |
|
787 * pr-output.cc (pr_max_internal): Initial value for result is |
|
788 -DBL_MAX, not DBL_MIN. |
|
789 |
3125
|
790 Thu Jan 8 11:54:33 1998 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
791 |
|
792 * xpow.cc (elem_xpow): If second arg of pow is complex, make sure |
|
793 first arg is also complex. |
|
794 |
|
795 * symtab.cc (symbol_table::rename): Properly insert new item at |
|
796 the front of the list to avoid losing the rest of the items. |
|
797 |
|
798 Thu Dec 11 23:30:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
799 |
|
800 * variables.cc (Fclear): Increment index to skip -x arg. |
|
801 |
3124
|
802 Tue Dec 9 02:45:35 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
803 |
|
804 * Makefile.in (INCLUDES): Don't forget Pix.h. |
|
805 |
|
806 * BaseSLList.cc: Don't include nonstandard libg++ header files. |
|
807 |
3119
|
808 Sun Nov 30 14:58:56 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
809 |
3124
|
810 * pr-output.cc: Include cmath, not oct-math. |
|
811 * sysdep.cc: Likewise. |
|
812 |
3119
|
813 * DLD-FUNCTIONS/bessel.cc: New file. |
|
814 * Makefile.in (DLD_XSRC): Add it to the list. |
|
815 |
3113
|
816 Thu Nov 27 23:28:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
817 |
|
818 * lex.l (handle_string): Constructor for string class takes |
|
819 (size_t, char) args, not (char, size_t). |
|
820 |
3111
|
821 Wed Nov 26 00:39:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
822 |
|
823 * Makefile.in (OCTAVE_LIBS): Include $(SPECIAL_MATH_LIB) just |
|
824 ahead of -lcruft. |
|
825 |
3110
|
826 Thu Nov 20 15:16:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
827 |
|
828 * octave.cc (maximum_braindamage): Bind implicit_num_to_str_ok to 1. |
|
829 * pt-mat.cc (Vimplicit_num_to_str_ok): New static variable. |
|
830 (implicit_num_to_str_ok): New function. |
|
831 (symbols_of_pt_mat): DEFVAR implicit_num_to_str_ok. |
|
832 (tm_row_const::some_str): New data member. |
|
833 (tm_row_const::some_strings_p): New function. |
|
834 (tm_row_const::init): Set some_str. |
|
835 (tm_const::some_str): New data member. |
|
836 (tm_const::some_strings_p): New function. |
|
837 (tm_const::init): Set some_str. |
|
838 (tree_matrix::eval): If Vimplicit_num_to_str_ok is true and some |
|
839 of the elements are strings, force a string conversion before |
|
840 returning. |
|
841 |
|
842 * parse.y (fold, finish_colon_expression, finish_matrix): |
|
843 If an error occurs, return the original expression. |
|
844 Use unwind_protect to restore error_state. |
|
845 |
|
846 * ov-ch-mat.h (octave_char_matrix::convert_to_str): Result is |
|
847 char_matrix_str, not just char_matrix. |
|
848 |
3107
|
849 Wed Nov 19 02:05:40 1997 Mumit Khan <khan@dhaka.xraylith.wisc.edu> |
|
850 |
|
851 * DLD-FUNCTIONS/filter.cc: Don't include extern template decls if |
3109
|
852 CXX_NEW_FRIEND_TEMPLATE_DECL is defined. |
3107
|
853 * ov-cx-mat.cc: Likewise. |
|
854 * ov-re-mat.cc: Likewise. |
|
855 * ov-str-mat.cc: Likewise. |
|
856 |
|
857 * ov-cx-mat.h (octave_complex_matrix::decrement, |
|
858 octave_complex_matrix): Use explicit Complex constructor. |
|
859 |
|
860 Wed Nov 19 00:08:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
861 |
|
862 * pt-decl.cc (tree_global_command::do_init): Initialize global |
|
863 values to `[]'. Only perform explicit initialization once. |
|
864 |
3103
|
865 Tue Nov 18 04:27:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
866 |
3105
|
867 * pr-output.cc (Vfixed_point_format): New variable. |
|
868 (fixed_point_format): New fucntion. |
|
869 (symbols_of_pr_output): Add DEFVAR for fixed_point_format. |
|
870 (set_real_matrix_format): Handle fixed point format |
|
871 (set_complex_matrix_format): Handle fixed point format |
|
872 (set_format): New arg, scale in Matrix, ComplexMatrix, Range versions. |
|
873 (pr_scale_header): New function. |
|
874 (octave_print_internal): Handle fixed point format in Matrix, |
|
875 ComplexMatrix, and Range versions. |
|
876 * octave.cc (maximum_braindamage): Set fixed_point_format to 1.0. |
|
877 |
3103
|
878 * utils.cc (do_string_escapes): Move here, from lex.l. |
|
879 Arg is now const string& instead of char*. |
|
880 Return new string object instead of modifying arg in place. |
|
881 (Fdo_string_escapes): New function. |
|
882 * lex.l (handle_string): Use new version of do_string_escapes. |
3105
|
883 |
|
884 * lex.l (Vbackslash_escapes): Delete. |
|
885 (backslash_escapes): Delete. |
|
886 (do_string_escapes): Undo previous change. |
|
887 (eat_whitespace, eat_continuation): Undo previous change. |
|
888 (handle_string): Undo previous change. |
|
889 (symbols_of_lex): Undo previous change. |
|
890 * octave.cc (maximum_braindamage): Undo previous change. |
3103
|
891 |
3096
|
892 Fri Nov 14 01:53:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
893 |
3100
|
894 * parse.y (eval_string (const string&, bool, int&, int)): No |
|
895 longer static. |
|
896 * parse.h: Provide declaration. |
|
897 * input.cc (get_user_input (const octave_value_list&, bool, int)): |
|
898 New arg, nargout. Pass it to eval_string. |
|
899 (keyboard): Pass nargout = 0 to get_user_input. |
|
900 (input): Pass nargout to get_user_input. |
|
901 |
3098
|
902 * input.cc (get_user_input (const octave_value_list&, bool)): |
3100
|
903 Return octave_value_list() if user enters `quit', `exit', or `return'. |
3098
|
904 If debugging, let eval_string handle the printing chores and |
|
905 reset error_state before asking for more input. |
|
906 |
|
907 * input.cc (Fkeyboard): Unconditionally turn on history here. |
|
908 |
3096
|
909 * lex.l (have_continuation, have_ellipsis_continuation): Declare |
|
910 arg as bool, not int. Change callers. |
|
911 |
|
912 * lex.l (Vbackslash_escapes): New static variable. |
|
913 (backslash_escapes): New function. |
|
914 (do_string_escapes): Return immediately if ! Vbackslash_escapes. |
|
915 (eat_whitespace, eat_continuation): Only call have_continuation if |
|
916 Vbackslash_escapes. |
|
917 (handle_string): Backslash is only special if Vbackslash_escapes. |
|
918 (symbols_of_lex): Add DEFVAR for backslash_escapes. |
|
919 * octave.cc (maximum_braindamage): Set backslash_escapes to 0. |
|
920 |
3095
|
921 Thu Nov 13 16:20:40 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
922 |
3096
|
923 * variables.cc (Fexist): Also return 2 if NAME is a regular file |
|
924 somewhere in the LOADPATH. |
|
925 |
3095
|
926 * data.cc (sumsq): Fix doc string. |
|
927 |
|
928 * parse.y (Fsource): Call parse_fcn_file, not parse_and_execute. |
|
929 |
3092
|
930 Tue Oct 7 16:51:01 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
931 |
|
932 * defun-int.h (DEFINE_FUN_INSTALLER_FUN): Set installed to true |
|
933 after installing the function. |
|
934 |
3088
|
935 Thu Sep 25 10:17:26 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
936 |
|
937 * DLD-FUNCTIONS/filter.cc (Ffilter): Return second output value |
|
938 even when called with only 3 arguments. |
|
939 |
3086
|
940 Mon Sep 22 16:44:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
941 |
|
942 * DLD-FUNCTIONS/rand.cc (do_rand): Print error if first of two |
|
943 args is a string but doesn't match "seed". |
3088
|
944 (Frand, Frandn): Fix doc string. |
3086
|
945 |
3081
|
946 Mon Aug 25 10:42:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
947 |
|
948 * input.cc (get_user_input): Return an empty string if the user |
|
949 just types RET. |
|
950 |
3079
|
951 Thu Jul 31 22:59:04 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
952 |
|
953 * lex.l <TEXT_FCN>: Ensure that we handle words that begin with |
|
954 single or double quotes as strings. |
|
955 |
3074
|
956 Thu Jul 17 13:06:48 1997 Klaus Gebhardt <gebhardt@crunch.ikp.physik.th-darmstadt.de> |
|
957 |
|
958 * DLD-FUNCTIONS/rand.cc (Frand): Use F77_XFCN to call getsd, |
|
959 setsd, setall, setcgn, dgenunf, and dgennor since they can call |
|
960 XSTOPX. |
|
961 |
3072
|
962 Mon Jul 14 12:54:23 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
963 |
|
964 * dynamic-ld.cc (octave_dynamic_loader::load_fcn_from_dot_oct_file): |
|
965 If first attempt to load function fails, prepend and underscore |
|
966 and try again. |
|
967 |
|
968 * Makefile.in (install-inc): If defaults.h, oct-conf.h, or |
|
969 oct-gperf.h don't exist in the current directory, look in $(srcdir). |
|
970 |
3068
|
971 Mon Jul 7 21:14:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
972 |
|
973 * DLD-FUNCTIONS/qr.cc (Fqr): Correctly handle nargout == 0. |
|
974 |
3067
|
975 Wed Jul 2 16:47:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
976 |
|
977 * matherr.c: New file. Move matherr function here. |
|
978 * sysdep.cc: From here. |
|
979 * Makefile.in (DIST_SRC): Add matherr.c to the list. |
|
980 |
|
981 * error.cc (handle_message): Avoid bug in g++ snapshot. |
|
982 |
3065
|
983 Thu Jun 26 22:04:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
984 |
|
985 * utils.cc (file_in_path): Add default load path to PATH arg if |
|
986 it begins or ends with a colon. |
|
987 |
3060
|
988 Wed Jun 25 13:31:06 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
989 |
|
990 * oct-lvalue.h (octave_lvalue::struct_elt_ref): Ensure val is unique. |
|
991 |
|
992 Fri Jun 20 12:33:35 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
993 |
|
994 * toplev.cc (cmd_death_handler): New function. |
|
995 (run_command_and_return_output): Insert pid of command in |
|
996 octave_child_list along with pointer to cmd_death_handler so we |
|
997 can get the exit status without having to block SIGCHLD. |
|
998 (cleanup_iprocstream): Remove pid of command from octave_child_list. |
|
999 |
3053
|
1000 Sun Jun 15 16:11:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1001 |
3054
|
1002 * OPERATORS/op-cs-s.cc (ldiv): Doh, v1 is complex, v2 is real. |
|
1003 |
3053
|
1004 * Makefile.in (DISTFILES): Add mkops to the list. |
|
1005 (dist): Correctly link files in DLD-FUNCTIONS, OPERATORS, and |
|
1006 TEMPLATE-INST subdirectories. |
|
1007 |
3040
|
1008 Fri Jun 6 04:30:57 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1009 |
3042
|
1010 * DLD-FUNCTIONS/npsol.cc, DLD-FUNCTIONS/qpsol.cc, |
|
1011 DLD-FUNCTIONS/fsqp.cc: Delete. |
|
1012 * Makefile.in (DLD_XSRC): Remove them from the list. |
|
1013 |
3040
|
1014 * utils.cc (search_path_for_file): New arg, do_tilde_expansion. |
|
1015 If TRUE, perform tilde expansion on path before searching. |
|
1016 (file_in_path): Call search_path_for_file with do_tilde_expansion |
|
1017 set to false, since we've already performed tilde expansion on the |
|
1018 load path. |
|
1019 |
|
1020 * defaults.cc (loadpath): Perform tilde expansion here. |
|
1021 |
3029
|
1022 Thu Jun 5 01:42:39 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1023 |
3034
|
1024 * Makefile.in: Make building of static library optional. |
3036
|
1025 (liboctave.$(SHLEXT_VER)): Add $(SONAME_FLAGS) to command. |
3034
|
1026 |
3033
|
1027 * dynamic-ld.cc (octave_shl_load_dynamic_loader::resolve_reference): |
|
1028 Call shl_findsym with type set to TYPE_UNDEFINED. |
|
1029 |
3029
|
1030 * Makefile.in (stamp-picdir): Delete. |
|
1031 (pic): New target. Don't worry so much about creating pic |
|
1032 directory only when it is really needed. |
|
1033 (stamp-interp): Delete. |
|
1034 (libraries): New target. Depend on shared library directly. |
|
1035 |
3024
|
1036 Wed Jun 4 00:09:42 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1037 |
|
1038 * octave.cc (main): Call dir_path::set_program_name here. |
|
1039 |
3021
|
1040 Tue Jun 3 16:47:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1041 |
3022
|
1042 * variables.cc (symbol_out_of_date): Make it work again. |
|
1043 |
3021
|
1044 * parse.y (parse_and_execute): Move here from toplev.cc |
|
1045 (default_eval_print_flag): Likewise. |
|
1046 (safe_fclose): Likewise. |
|
1047 (eval_string): Likewise. |
|
1048 (Fsource): Likewise. |
|
1049 (Ffeval): Likewise. |
|
1050 (feval): Likewise. |
|
1051 (Feval): Likewise. |
|
1052 (symbols_of_parse): Define default_eval_print_flag here instead of |
|
1053 in varaibles.cc. |
|
1054 (looks_like_octave_copyright): Move here from variables.cc |
|
1055 (gobble_leading_whitespace): Likeiwse. |
|
1056 (is_function_file): Likewise. |
|
1057 (restore_input_stream): Likewise. |
|
1058 (parse_fcn_file): Likewise. |
|
1059 (load_fcn_from_file): Likewise. |
|
1060 (get_help_from_file): Likewise. |
|
1061 |
|
1062 * toplev.cc (syms_of_toplev): Define argv, program_name, and |
|
1063 program_invocation_name here instead of in variables.cc. |
|
1064 |
|
1065 * parse.h (line_editing): Move here from toplev.h. Now bool, not int. |
|
1066 (reading_startup_message_printed) Likewise. |
|
1067 (input_from_startup_file): Likewise. |
|
1068 (input_from_command_line_file): Likewise. |
|
1069 |
|
1070 * load-save.cc: Use bool instead of int where appropriate. |
|
1071 |
|
1072 * input.h (enum echo_state): Move here from variables.h. |
|
1073 (Vecho_executing_commands): Likewise. Now bool, not int. |
|
1074 * input.cc (echo_executing_commands): Move here from variables.cc. |
|
1075 (symbols_of_input): Define echo_executing_commands here instead of |
|
1076 in variables.cc. |
|
1077 |
|
1078 * octave.cc (program_invocation_name): Don't define. |
|
1079 (intern_argv): Don't set program_invocation_name here. |
|
1080 (main): Call octave_env::set_program_name here, not in intern_argv. |
|
1081 |
|
1082 * toplev.cc (quitting_gracefully): Move here from octave.h and |
|
1083 make static bool instead of extern int. |
|
1084 |
|
1085 * error.cc (bind_global_error_variable, clear_global_error_variable): |
|
1086 Move here from variables.cc. |
|
1087 (symbols_of_error): Define error_text here instead of in variables.cc. |
|
1088 |
|
1089 * pager.cc (write_to_diary_file): Now bool, not int. |
|
1090 (really_flush_to_pager): Likewise. |
|
1091 (flushing_to_pager): Likewise. |
|
1092 * sighandlers.h (can_interrupt): Likewise. |
|
1093 * error.h (buffer_error_messages): Likewise. |
|
1094 * oct-hist.h (input_from_tmp_history_file, Vsaving_history): Likewise. |
|
1095 * input.h (forced_interactive): Likewise. |
|
1096 (get_input_from_eval_string): Likeiwse. |
|
1097 (reading_script_file): Likeiwse. |
|
1098 (reading_fcn_file): Likeiwse. |
|
1099 (interactive): Likewise. |
|
1100 |
|
1101 * unwind-prot.cc (saved_variable::saved_variable (bool *, bool)): |
|
1102 Set type_tag to boolean, not int. |
|
1103 |
3016
|
1104 Mon Jun 2 00:40:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1105 |
|
1106 * variables.h (Octave_builtin_fcn): Delete typedef. |
|
1107 |
|
1108 * help.cc (make_name_list): Move here from variables.cc. |
|
1109 (keyword_help, names): Now static. |
|
1110 (struct help_list): Move declaration here from help.h. |
|
1111 |
|
1112 * oct-hist.cc (Vhistory_file, Vhistory_size, Vsaving_history): |
|
1113 Move here from variables.cc. |
|
1114 (symbols_of_oct_hist): New function. |
|
1115 |
|
1116 * version.h: Protect against multiple inclusion. |
|
1117 |
|
1118 * defun.cc (check_version): New function. |
|
1119 * defun-int.h (DEFINE_FUN_INSTALLER_FUN): Use it. |
|
1120 |
|
1121 * help.h, help.cc (additional_help_message): Now extern. |
|
1122 (operator_help): Now static. |
|
1123 |
|
1124 * defun.cc (print_usage): Move here from help.cc |
|
1125 * DLD-FUNCTIONS/*.cc, data.cc, dirfns.cc, file-io.cc, input.cc, |
|
1126 load-save.cc, octave.cc, ov-list.cc, ov-typeinfo.cc, |
|
1127 ov-usr-fcn.cc, pager.cc, pr-output.cc, pt-plot.cc, strfns.cc, |
|
1128 syscalls.cc, sysdep.cc, utils.cc, toplev.cc: |
|
1129 Don't include help.h. |
|
1130 |
|
1131 * TEMPLATE-INST/Array-sym.cc: New file. |
|
1132 |
|
1133 * load-save.cc (do_load): Don't use ostream::form. |
|
1134 * pr-output.cc: Likewise, at least where it is easy to do so. |
|
1135 * oct-stream.cc: Ditto. |
|
1136 |
|
1137 * symtab.h (symbol_record::symbol_def::rows): New function. |
|
1138 (symbol_record::symbol_def::columns): Ditto. |
|
1139 (symbol_record::symbol_def::type_name): Ditto. |
|
1140 (symbol_record::rows): Ditto |
|
1141 (symbol_record::columns): Ditto |
|
1142 (symbol_record::type_name): Ditto |
|
1143 |
|
1144 * symtab.h, symtab.cc (symbol_record::hides_fcn): New function. |
|
1145 (symbol_record::hides_builtin): Ditto. |
|
1146 (symbol_record::print_symbol_info_line): Ditto. |
|
1147 (symbol_table::long_list): Delete. |
|
1148 (symbol_table::symbol_list): New function. |
|
1149 (symbol_table::maybe_list): Delete argc arg. |
|
1150 (symbol_table::name_list): Rename from symbol_table::list. |
|
1151 Change all callers. |
|
1152 |
|
1153 * symtab.h, symtab.cc (class symbol_record_info): Delete. |
|
1154 |
|
1155 * symtab.cc (matches_patterns): Use vector form of glob_match. |
|
1156 |
|
1157 Sun Jun 1 14:04:26 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1158 |
|
1159 * pt-check.h, pt-check.cc: New files, for semantic checking of |
|
1160 parse trees. |
|
1161 |
|
1162 * symtab.h (class symbol_def): Now nested in symbol_record class. |
|
1163 (enum TYPE): Move from symbol_def to symbol record class. Change |
|
1164 all uses. |
|
1165 |
|
1166 * symtab.h, symtab.cc (symbol_table::maybe_list): New function, |
|
1167 from variables.cc. Change all uses. |
|
1168 |
|
1169 * pt-idx.h (tree_identifier::lvalue_ok): New function. |
|
1170 * pt-id.h (tree_index_expression::lvalue_ok): Likewise. |
|
1171 * pt-indir.h (tree_indirect_ref::lvalue_ok): Likewise. |
|
1172 |
|
1173 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_oct_obj): Delete. |
|
1174 * pt-walk.h (tree_walker::visit_oct_obj): Delete declaration. |
|
1175 |
|
1176 * lex.h (class lexical_feedback): Delete maybe_screwed_again. |
|
1177 * lex.l (lexical_feedback::init): Don't set it. |
|
1178 |
|
1179 Fri May 30 16:07:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1180 |
|
1181 * mappers.cc: Include <cfloat> here. |
|
1182 |
|
1183 Tue May 27 10:08:43 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1184 |
|
1185 * toplev.cc (eval_string): Don't index tmp if it is empty. |
|
1186 |
|
1187 Sat May 24 00:18:41 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1188 |
|
1189 * load-save.cc (valid_identifier): Move here and make static. |
|
1190 * symtab.h, symtab.cc (valid_identifier): Delete declaration and |
|
1191 definition. |
|
1192 |
|
1193 Fri May 23 22:54:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1194 |
|
1195 * symtab.h (symbol_def::symbol_def): Use initializer list instead |
|
1196 of calling init_state. |
|
1197 (symbol_def::init_state): Delete. |
|
1198 |
|
1199 * symtab.cc (symbol_table::print_stats): New function. |
|
1200 * variables.cc (F__dump_symtab_info__): New function. |
|
1201 |
|
1202 * symtab.h, symtab.cc (symbol_table::hash): Return masked value. |
|
1203 (symbol_table::table_size): New data member. |
|
1204 (symbol_table::symbol_table): Set size of table in constructor. |
|
1205 (HASH_TABLE_SIZE): Replace uses with table_size. |
|
1206 (HASH_MASK): Delete. |
|
1207 * variables.cc (initialize_symbol_tables): Set top-level and |
|
1208 global symbol table sizes here. |
|
1209 |
2994
|
1210 Thu May 22 13:32:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1211 |
|
1212 * dynamic-ld.cc (octave_shl_load_dynamic_loader::resolve_reference): |
|
1213 Call shl_findsym with type set to TYPE_PROCEDURE. Pass the |
|
1214 address of the pointer we want to define. |
|
1215 |
2993
|
1216 Wed May 21 16:30:25 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1217 |
|
1218 * DLD-FUNCTIONS/time.cc (extract_tm): Avoid memory leak in dealing |
|
1219 with time zone. |
|
1220 |
|
1221 * Makefile.in (install-in): Use new mk-includedir-link macro. |
|
1222 (install-lib): Install in $octlibdir. Use new mk-libdir-link macro. |
|
1223 |
|
1224 Tue May 20 01:24:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1225 |
|
1226 * ov-list.cc (Flist): Rename from Fmake_list. |
|
1227 |
|
1228 Mon May 19 14:45:58 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1229 |
|
1230 * octave.cc (maximum_braindamage): Set default_eval_print_flag to 0. |
|
1231 |
|
1232 Sat May 17 16:32:23 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1233 |
|
1234 * defaults.cc (set_default_editor): Default is now Emacs, not vi. |
|
1235 |
2984
|
1236 Fri May 16 00:07:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1237 |
2991
|
1238 * pt-idx.cc (tree_index_expression::name): New function. |
|
1239 |
|
1240 * pt.cc (tree::str_print_code): New file, new convenience function. |
|
1241 * pt-arg-list.cc (tree_argument_list::get_arg_names): Use it. |
|
1242 * pt-assign.cc (tree_simple_assignment::rvalue): Likewise. |
|
1243 (tree_multi_assignment::rvalue): Likewise. |
|
1244 |
2990
|
1245 * pt-colon.h (tree_colon_expression::save_base): New data memmber. |
|
1246 (tree_colon_expression::preserve_base): New function. |
|
1247 * parse.y (finish_colon_expression): When converting to a simple |
|
1248 expression, be sure to delete the original colon expression but |
|
1249 not the base value. |
|
1250 |
|
1251 * pt-mat.cc (tree_matrix::~tree_matrix): Actually do something. |
|
1252 |
2987
|
1253 * pt-all.h: New file. |
|
1254 * parse.y, lex.l, pt-pr-code.cc: Use it. |
|
1255 |
|
1256 * pt.h: Rename from pt-base.h. |
|
1257 |
|
1258 * All parse tree classes: Add private copy constructors and |
|
1259 assignment operators to prevent copying. |
|
1260 |
|
1261 * pt-base.cc: Delete. |
|
1262 |
2985
|
1263 * unwind-prot.h, unwind-prot.cc: Make a bit more object-oriented. |
|
1264 Change all uses of unwind_protect stuff to match. |
|
1265 |
|
1266 * pt-jump.h, pt-jump.cc (breaking, continuing, returning): |
|
1267 Make these flags static members of the corresponding class. |
|
1268 Change all uses. |
|
1269 |
2984
|
1270 * pt-assign.cc (tree_simple_assignment_expression::eval, |
|
1271 tree_multi_assignment_expression::eval): Clear lvalue index here. |
|
1272 |
|
1273 * oct-lvalue.cc (octave_lvalue::assign): Don't clear index here. |
|
1274 * oct-lvalue.h (octave_lvalue::clear_index): New function. |
|
1275 (octave_lvalue::set_index): Rename from octave_lvalue::index. |
|
1276 Change all callers. |
|
1277 |
2976
|
1278 Thu May 15 11:48:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1279 |
2983
|
1280 * pt-select.h, pt-select.cc (class tree_if_command_list, |
|
1281 class tree_if_clause, class tree_switch_case_list, |
|
1282 class tree_switch_case): Move here from pt-misc.h, pt-misc.cc. |
|
1283 * pt-decl.h, pt-decl.cc (class tree_decl_init_list, |
|
1284 class tree_decl_elt): Move here from pt-mist.h, pt-misc.cc |
|
1285 |
|
1286 * pt-arg-list.h, pt-stmt.h: New files, extracted from pt-misc.h. |
|
1287 * pt-arg-list.cc, pt-stmt.cc: New files, extracted from pt-misc.cc. |
|
1288 |
|
1289 * pt-decl.h, pt-except.h, pt-jump.h, pt-loop.h, pt-select.h: |
|
1290 New files, extraced from pt-cmd.h. |
|
1291 * pt-decl.cc, pt-except.cc, pt-jump.cc, pt-loop.cc, pt-select.cc: |
|
1292 New files, extraced from pt-cmd.cc. |
|
1293 |
2980
|
1294 * pt-unop.h, pt-binop.h, pt-colon.h, pt-idx.h, pt-assign.h: |
|
1295 New files, extracted from pt-exp.h |
|
1296 * pt-unop.cc, pt-binop.cc, pt-colon.cc, pt-idx.cc, pt-assign.cc: |
|
1297 New files, extracted from pt-exp.cc |
|
1298 * pt-exp.h, pt-exp.cc: Rename from pt-exp-base.h, pt-exp-base.cc. |
|
1299 |
2979
|
1300 * oct-lvalue.h: Rename from oct-var-ref.h. Rename class from |
|
1301 octave_variable_reference to octave_lvalue. Change all uses. |
|
1302 * oct-lvalue.cc: Rename from oct-var-ref.cc. |
|
1303 |
2978
|
1304 * variables.cc (bind_ans): Only bind ans and print result if value |
|
1305 is defined. |
|
1306 |
2976
|
1307 * defun.cc: New file. Move functions for installing objects in |
|
1308 the symbol table here from variables.cc. |
|
1309 |
|
1310 * oct-obj.h, oct-obj.cc: Add custom allocator, fwiw. |
|
1311 |
|
1312 * toplev.cc (main_loop): Correctly increment command number. |
|
1313 |
|
1314 * TEMPLATE-INST/SLList-tm.cc: Don't instantiate lists of pointers |
|
1315 to tree_matrix_row objects. |
|
1316 * TEMPLATE-INST/SLList-misc.cc: Do instantiate lists of pointers |
|
1317 to tree_argument_list objects. |
|
1318 |
|
1319 * DLD-FUNCTIONS/dassl.cc: Update to use new octave_function |
|
1320 interface to user-supplied functions. |
|
1321 * DLD-FUNCTIONS/fsolve.cc: Likewise. |
|
1322 * DLD-FUNCTIONS/lsode.cc: Likewise. |
|
1323 * DLD-FUNCTIONS/npsol.cc: Likewise. |
|
1324 * DLD-FUNCTIONS/quad.cc: Likewise. |
|
1325 |
|
1326 * dynamic-ld.h, dynamic-ld.cc (builtin_fcn_installer typedef): |
|
1327 Rename from builtin_fcn. |
|
1328 (octave_dynamic_loader::load_fcn_from_dot_oct_file): |
|
1329 Simplify by using new installer function defined by DEFUN_DLD. |
|
1330 |
|
1331 * defun-dld.h (DEFUN_DLD): Use DEFINE_FUN_INSTALLER_FUN instead of |
|
1332 DEFINE_FUN_STRUCT_FUN. |
|
1333 * defun.h (DEFUN_MAPPER): Use DEFUN_MAPPER_INTERNAL. |
|
1334 * defun-int.h (DEFVAR_INTERNAL): Rename from DEFVAR_INT and move |
|
1335 here from defun.h. Change all uses. |
|
1336 (DEFUN_MAPPER_INTERNAL): New macro. |
|
1337 (DEFINE_FUN_INSTALLER_FUN): New macro to define function that the |
|
1338 dynamic loader calls to do all the work of installing a new function. |
|
1339 (DEFINE_FUN_STRUCT_FUN): Delete. |
|
1340 |
|
1341 * parse.y: Rewrite to handle more general expressions. |
|
1342 * lex.l: Corresponding changes. |
|
1343 |
|
1344 * pt-walk.h, pt-pr-code.h, pt-pr-code.cc: Cope with new parse tree |
|
1345 object structure. |
|
1346 |
|
1347 * pt-misc.cc (class tree_for_command): Split into |
|
1348 tree_simple_for_command and tree_complex_for_command classes. |
|
1349 |
|
1350 * pt-misc.h, pt-misc.cc (tree_statement::eval): Handle identifier |
|
1351 lookup and printing and binding ans here. |
|
1352 (tree_statement_list::eval): Simplify. |
|
1353 (tree_argument_list::all_elements_are_constant): New function. |
|
1354 (class tree_decl_elt): Now contains id and expr, not an assignment |
|
1355 expression. |
|
1356 |
|
1357 * pt-exp-base.h pt-exp.h pt-id.h pt-indir.h pt-mat.h pt-const.h, |
|
1358 pt-exp-base.cc pt-exp.cc pt-id.cc pt-indir.cc pt-mat.cc pt-const.cc: |
|
1359 Replace eval functions with rvalue and lvalue functions. |
|
1360 Change all uses. |
|
1361 (lvalue_ok, rvalue_ok): New functions, for future compile-time |
|
1362 semantic checks. |
|
1363 |
|
1364 * oct-var-ref.h (is_defined, is_map): New functions. |
|
1365 |
|
1366 * pt-exp.h (class tree_oct_obj): Delete. |
|
1367 |
|
1368 * variables.cc (extract_function, is_valid_function): Return |
|
1369 pointer to octave_function, not octave_symbol. |
|
1370 (link_to_global_variable): Rewrite. Handle errors in |
|
1371 symbol_record::mark_as_linked_to_global. |
|
1372 |
|
1373 * symtab.h, symtab.cc (class symbol_def, class symbol_record): |
|
1374 Symbols are now stored as octave_value objects only. |
|
1375 |
|
1376 * ov.cc (install_types): Register function types here. |
|
1377 * ov-fcn.h, ov-fcn.cc, ov-builtin.h, ov-builtin.cc, ov-mapper.h, |
|
1378 ov-mapper.cc, ov-usr-fcn.h, ov-usr-fcn.cc: New classes for |
|
1379 functions as values. |
|
1380 * ov.h (class octave_value): Don't derive from octave_symbol. |
|
1381 * oct-fcn.h, oct-fcn.cc, oct-builtin.h, oct-builtin.cc, |
|
1382 oct-mapper.h, oct-mapper.cc, oct-usr-fcn.h, oct-usr-fcn.cc, |
|
1383 oct-sym.h, oct-sym.cc: Delete. |
|
1384 |
2963
|
1385 Sun May 11 17:51:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1386 |
|
1387 * help.cc (Ftype): Make it work again for functions. |
|
1388 |
|
1389 * pt-pr-code.cc (tree_print_code::print_parens): New function. |
|
1390 Use it in other tree_print_code functions to handle printing all |
|
1391 the parens that we found when parsing the expression, not just one |
|
1392 pair. |
|
1393 * pt-exp-base.h (tree_expression::paren_count): Rename from |
|
1394 is_in_parens. |
|
1395 * parse.y (maybe_warn_assign_as_truth_value): Use new name. |
|
1396 |
|
1397 * parse.y (constant): New non-terminal. |
|
1398 (simple_expr1): Use it. |
|
1399 |
|
1400 * parse.y (make_unary_op): Delete. |
|
1401 (simple_expr1): Where appropriate, use make_prefix_op and |
|
1402 make_postfix_op instead of make_unary_op. Allow increment and |
|
1403 decrement ops to work on expressions, not just identifiers. |
|
1404 (make_prefix_op, make_postfix_op): Arg is expression, not identifier. |
|
1405 Handle old unary_op cases too. |
|
1406 (fold (tree_unary_expression *)): Delete. |
|
1407 * pt-exp.h, pt-exp.cc (tree_prefix_expression::eval): Handle unary |
|
1408 minus and not here. |
|
1409 (tree_postfix_expression::eval): Likewise, for transpose and hermitian. |
|
1410 (class tree_prefix_expression, class tree_postfix_expression): |
|
1411 Derive from tree_unary_expression. Delete identifier member. |
|
1412 Delete ident member function. |
|
1413 (tree_unary_expression): Don't handle evaluation here. |
|
1414 * pt-exp-base.h (mark_in_parens): No longer virtual. Return this. |
|
1415 (reference): New virtual function. |
|
1416 (class tree_expression): Don't handle expression type here. |
|
1417 * pt-mvr-base.h (tree_multi_val_ret::tree_multi_val_ret): Likewise. |
|
1418 * pt-mvr.h, pt-mvr.cc (tree_multi_assignment_expression): Likewise. |
|
1419 * pt-walk.h (visit_unary_expression): Delete declaration. |
|
1420 * pt-pr-code.h, pt-pr-code.cc (visit_unary_expression): Delete. |
|
1421 (visit_prefix_expression): Use operand(), not ident(). |
|
1422 new, visit_postfix_expression): |
|
1423 * pt-id.h, pt-id.cc (increment, decrement): Delete. |
|
1424 |
|
1425 * pt-misc.cc (tree_parameter_list::define_from_arg_vector): Get a |
|
1426 reference to each element and use the assignment operator instead |
|
1427 of tree_identifier::define. |
|
1428 * pt-id.h, pt-id.cc (tree_identifier::define): Delete versions |
|
1429 that take octave_value and octave_symbol args. |
|
1430 |
|
1431 Sat May 10 23:32:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1432 |
|
1433 * pt-indir.h, pt-indir.cc (tree_indirect_reference::value): Delete. |
|
1434 |
|
1435 * oct-var-ref.cc (octave_variable_ref::assign): Clear idx after |
|
1436 assignment. |
|
1437 |
2976
|
1438 * octave_value classes: Add is_constant, is_function, and |
|
1439 function_value functions. |
|
1440 |
2963
|
1441 * ov.h, ov.cc (assign): Return void, not reference to octave_value. |
|
1442 (do_index_op): Rename, from index. |
|
1443 (do_struct_elt_index_op): Rename, from struct_elt_val. |
|
1444 Add version that accepts index arg. |
|
1445 Change all uses and derived classes to match. |
|
1446 * pt-const.h (index): Delete. |
|
1447 * oct-var-ref.h, oct-var-ref.cc (value): Handle indexed structure |
|
1448 ops here too. |
|
1449 |
2949
|
1450 Fri May 9 07:40:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1451 |
2958
|
1452 * pt-exp.cc (print_rhs_assign_val, symbols_of_pt_exp): New functions. |
|
1453 (Vprint_rhs_assign_val): New static variable. |
|
1454 (tree_simple_assignment_expression::eval): Use it to optionally |
|
1455 allow the rhs (which is the result) of an assignment to be printed |
|
1456 instead of the left. |
|
1457 |
2955
|
1458 * pt-exp.cc (tree_simple_assignment_expression::eval): Use new |
|
1459 octave_variabl_reference::index function to handle indexing. |
|
1460 |
|
1461 * oct-var-ref.h, oct-var-ref.cc (idx): New data member. |
|
1462 (octave_variable_reference::index): Set it. |
|
1463 (octave_variable_reference::assign): Handle indexing here. |
|
1464 Delete version of this function htat takes index arg. |
|
1465 |
|
1466 * variables.h (struct builtin_varaible): Delete. |
|
1467 * variables.cc (install_builtin_variable): Take all elts of |
|
1468 builtin_variable struct directly. |
|
1469 * defun.h (DEFVAR_INT): Call install_builtin_variable directly. |
|
1470 |
|
1471 * symtab.h, defun-int.h: Don't include variables.h. |
|
1472 |
|
1473 * symtab.h (symbol_record::sv_function): Move typedef here. |
|
1474 * variables.h: From here. |
|
1475 |
|
1476 * oct-var-ref.h, oct-var-ref.cc: New files for |
|
1477 octave_variable_reference class, extracted from variables.h and |
|
1478 variables.cc |
2956
|
1479 * Makefile.in: Add them to the appropriate lists. |
2955
|
1480 |
|
1481 * oct-obj.h (octave_value_list::empty): New function. |
|
1482 |
2949
|
1483 * variables.h (class octave_variable_reference): Rewrite to work |
|
1484 as a proxy class to store a pointer to octave_value and, |
|
1485 optionally, the change function to call and the name of the |
|
1486 structure element we are referencing. Handle assignment, |
|
1487 increment, decrement, and value operations. |
|
1488 |
2956
|
1489 Thu May 8 23:40:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1490 |
2949
|
1491 * ov-re-mat.h, ov-re-mat.cc (struct_elt_ref, struct_elt_val, |
|
1492 assign_struct_elt): Provide functions for looking up and setting |
|
1493 matrix dimensions. |
|
1494 |
|
1495 * symtab.cc (symbol_record::define): Don't call sv_fcn here. |
|
1496 Don't save and restore value here. |
|
1497 (symbol_record::define_builtin_var): Do call sv_fcn here. |
|
1498 (symbol_record::variable_reference): Don't make value unique here. |
|
1499 Return pointer to sv_fcn in octave_variable_reference. |
|
1500 |
|
1501 * pt-misc.cc (tree_parameter_list::initialize_undefined_elements): |
|
1502 Simplify. |
|
1503 |
|
1504 * pt-id.h, pt-id.cc (tree_identifier::reference): Return |
|
1505 octave_variable_reference, not octave_value&. |
|
1506 * symtab.h, symtab.cc (symbol_record::variable_reference): Ditto. |
|
1507 * pt-indir.h, pt-indir.cc (tree_indirect_ref::reference): Ditto. |
|
1508 Simplify too. |
|
1509 |
|
1510 * pt-const.h (tree_constant::reference, tree_constant::value, |
|
1511 tree_constant::assign): Delete unnecessary functions. |
|
1512 * pt-id.h, pt-id.cc (tree_identifier::assign): Ditto. |
|
1513 |
|
1514 * pt-cmd.cc (tree_for_command::do_for_loop_once): Simplify. |
|
1515 |
|
1516 * ov.h, ov.cc, ov-base.h, ov-base.cc, ov-struct.h, ov-struct.cc |
|
1517 (struct_elt_ref): New arg, octave_value* parent. |
|
1518 Allow deferred lookup. Return octave_variable_reference, not |
|
1519 octave_value&. |
|
1520 |
|
1521 * ov.h, ov.cc, ov-re-mat.h, ov-re-mat.cc (assign_struct_elt): |
|
1522 New virtual functions. |
|
1523 |
|
1524 * ov.h, ov.cc (Vresize_on_range_error): Now static. |
|
1525 |
|
1526 * pt-mvr.cc (tree_index_expression::eval): Delete redundant check |
|
1527 of error_state. |
|
1528 |
2944
|
1529 Wed May 7 21:17:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1530 |
|
1531 * input.cc (generate_completion): Rename from command_generator. |
|
1532 Use string objects instead of char*. |
|
1533 (generate_possible_completions): Let qsort also make matches unique. |
|
1534 (initialize_command_input): Register generate_completion with the |
|
1535 command_editor class. |
|
1536 (completion_matches): Simplify using generate_completion. |
|
1537 |
|
1538 * pt-pr-code.cc (tree_print_code::visit_constant): For val, call |
|
1539 print_raw, not print. |
|
1540 |
|
1541 * oct-usr-fcn.h (octave_user_function::argn_sr): New data member. |
|
1542 (octave_user_function::install_automatic_vars): Rename from |
|
1543 install_nargin_and_nargout. |
|
1544 (octave_user_function::bind_automatic_vars): Rename from |
|
1545 bind_nargin_and_nargout. |
|
1546 * oct-usr-fcn.cc (octave_user_function::eval): Extract arg names |
|
1547 from args vector and bind them to argn. |
|
1548 * oct-obj.h (octave_value_list::names): New data member. |
|
1549 * oct-obj.cc (octave_value_list::stash_name_tags): New function. |
|
1550 (octave_value_list::name_tags): Ditto. |
|
1551 * pt-const.h, pt-const.cc (tree_constant::print_raw): New function. |
|
1552 * pt-misc.h, pt-misc.cc (tree_argument_list::get_arg_names): |
|
1553 New function. |
|
1554 * pt-mvr.h, pt-mvr.cc (class index_expression): Cache arg names. |
|
1555 * toplev.cc (feval): Now static. Handle arg names. |
|
1556 |
|
1557 * mkops: Cope with moving files defining operators to OPERATORS |
|
1558 subdirectory. |
|
1559 |
2937
|
1560 Tue May 6 00:48:59 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1561 |
|
1562 * DLD-FUNCTIONS/getgrent.cc: Use new octave_group class. |
|
1563 * DLD-FUNCTIONS/getpwent.cc: Use new octave_passwd class. |
|
1564 |
|
1565 * syscalls.cc: Simplify by using new functions defined in |
|
1566 liboctave/oct-syscalls.cc. |
|
1567 |
|
1568 * file-io.cc (Ftmpnam): Accept DIR and PREFIX args. |
|
1569 |
2929
|
1570 Mon May 5 00:54:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1571 |
2932
|
1572 * ov-str-mat.cc (octave_char_matrix_str::print_name_tag): Print |
|
1573 empty strings on one line. |
|
1574 |
2929
|
1575 * DLD-FUNCTIONS, OPERATORS, and TEMPLATE-INST: New subdirectories. |
|
1576 Move appropriate files to new directories. |
|
1577 * Makefile.in: Add DLD-FUNCTIONS, OPERATORS, and TEMPLATE-INST |
|
1578 directories to VPATH. Fix rules to work with new directory |
|
1579 structure. |
|
1580 |
2927
|
1581 Sun May 4 22:40:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1582 |
|
1583 * input.cc (initialize_command_input): Rename from |
|
1584 initialize_readline. |
|
1585 (gnu_readline, octave_gets, get_user_input): Simplify, return |
|
1586 string, not char *. |
|
1587 |
|
1588 * Many of other files: Miscellaneous changes to go along with the |
|
1589 changes described in the liboctave/ChangeLog for May 4. More code |
|
1590 moved from here to liboctave. |
|
1591 |
|
1592 Fri May 2 19:50:33 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1593 |
|
1594 * pathlen.h: Move to ../liboctave. |
|
1595 |
2921
|
1596 Thu May 1 21:50:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1597 |
|
1598 * variables.cc (get_struct_elts): New fucntion. |
|
1599 (looks_like_struct, generate_struct_completions): Move here from |
|
1600 input.cc, rewrite, and make work again. |
|
1601 |
2916
|
1602 Wed Apr 30 00:24:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1603 |
|
1604 * ov-base.h, ov-bool-mat.cc, ov-bool-mat.h, ov-bool.cc, ov-bool.h, |
|
1605 ov-ch-mat.cc, ov-ch-mat.h, ov-complex.cc, ov-complex.h, |
|
1606 ov-cx-mat.cc, ov-cx-mat.h, ov-file.cc, ov-file.h, ov-list.cc, |
|
1607 ov-range.cc, ov-range.h, ov-re-mat.cc, ov-re-mat.h, ov-scalar.cc, |
|
1608 ov-scalar.h, ov-str-mat.cc, ov-struct.cc, ov.h (scalar_value): |
|
1609 New function. Same as double_value, but name is consistent with |
|
1610 octave_scalar class. |
|
1611 |
|
1612 * op-fil-b.cc, op-fil-cm.cc, op-fil-lis.cc, op-fil-rec.cc, |
|
1613 op-fil-str.cc, op-fil-bm.cc, op-fil-cs.cc, op-fil-m.cc, |
|
1614 op-fil-s.cc: New files. |
|
1615 |
|
1616 * ops.h (ASSIGNOPDECL, DEFASSIGNOP, DEFASSIGNOP_FN, CONVDECL, |
|
1617 DEFCONV, BINOPDECL, DEFBINOPX, DEFBINOP, DEFBINOP_OP, DEFBINOP_FN, |
|
1618 BINOP_NONCONFORMANT): New macros. |
|
1619 * op-b-b.cc, op-bm-bm.cc, op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, |
|
1620 op-cm-s.cc, op-cs-cm.cc, op-cs-cs.cc, op-cs-m.cc, op-cs-s.cc, |
|
1621 op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, op-s-cm.cc, |
|
1622 op-s-cs.cc, op-s-m.cc, op-s-s.cc, op-str-str.cc: Use them. |
|
1623 |
|
1624 * Makefile.in (octave): Also depend on ops.o. |
|
1625 |
|
1626 * builtins.h: Delete. |
|
1627 * octave.cc: Add extern declaration here. |
|
1628 |
|
1629 * mappers.h: Delete. |
|
1630 * Makefile.in (INCLUDES): Delete from list. |
|
1631 * mkbuiltins: Add extern declaration in builtins.cc. |
|
1632 |
|
1633 * mkops: New file. |
|
1634 * ops.cc: Delete. |
|
1635 * Makefile.in (SOURCES): Delete from the list. |
|
1636 (ops.cc): New target. |
|
1637 (OP_SOURCES): New list. Move all op-*.cc files here from SOURCES. |
|
1638 Add $(OP_SOURCES) to SOURCES list. |
|
1639 |
|
1640 * variables.cc (symbols_of_variables): No longer static. |
|
1641 * ov.cc (symbols_of_ov): Rename from symbols_of_value. |
|
1642 |
|
1643 * ov-base.h: Delete declaration for install_base_type_conversions. |
|
1644 * op-b-b.h, op-bm-bm.h, op-cm-cm.h, op-cm-cs.h, op-cm-m.h, |
|
1645 op-cm-s.h, op-cs-cm.h, op-cs-cs.h, op-cs-m.h, op-cs-s.h, |
|
1646 op-m-cm.h, op-m-cs.h, op-m-m.h, op-m-s.h, op-s-cm.h, op-s-cs.h, |
|
1647 op-s-m.h, op-s-s.h, op-str-str.h: Delete. |
|
1648 * Makefile.in (INCLUDES): Delete them from the list. |
|
1649 |
|
1650 Tue Apr 29 22:27:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1651 |
|
1652 * variables.h, variables.cc (install_builtin_variables): Delete. |
|
1653 * mkbuiltins: Also generate install_builtin_variables function. |
|
1654 * Makefile.in: Fix rule to call mkbuiltins with correct args. |
|
1655 (clean): Also delete def-files and var-files. |
|
1656 * defaults.h.in, dirfns.h, error.h, file-io.h, help.h, input.h, |
|
1657 lex.h, load-save.h, oct-usr-fcn.h, pager.h, parse.h, pr-output.cc, |
|
1658 pr-output.h, pt-mat.h, pt-misc.h, pt-plot.h, toplev.h: |
|
1659 Delete declarations of symbols_of_* functions. |
|
1660 * data.h, syscalls.h: Delete. |
|
1661 |
|
1662 * pr-output.cc (octave_print_internal): Leave printing of final |
|
1663 new line up to the caller. |
|
1664 |
|
1665 * ov.h, ov.cc (reset_indent_level, increment_indent_level, |
|
1666 decrement_indent_level, newline, indent, reset, |
|
1667 curr_print_indent_level, beginning_of_line): |
|
1668 New functions and static data to manage indent level for printing. |
|
1669 (print_as_scalar): Delete. |
|
1670 (print, print_with_name): Always require stream arg. |
|
1671 Change all callers. |
|
1672 |
|
1673 * oct-stream.h (octave_stream::input_stream): Make publicly available. |
|
1674 (octave_stream::output_stream): Likewise. |
|
1675 |
|
1676 * ov-base.h, ov-base.cc, ov.h, ov.cc, ov-file.h ov-base.h |
|
1677 (is_file, stream_value, stream_number): New functions. |
|
1678 * ov-file.h, ov-file.cc: New files for value class to manage files. |
|
1679 * file-io.cc (symbols_of_file_io): Define stdin, stdout, and |
|
1680 stderr as octve_file objects, not just integers. |
|
1681 (Ffopen, Fpopen): Return octave_file objects, not integer file ids. |
|
1682 * syscalls.cc (Fpipe): Likewise. |
|
1683 * oct-stream.h, oct-stream.cc (octave_stream_list::insert): |
|
1684 Return octave_file object, not integer file id. |
|
1685 |
|
1686 * ov-base.cc, ov-bool-mat.cc, ov-bool.cc, ov-ch-mat.cc, |
|
1687 ov-complex.cc, ov-cx-mat.cc, ov-file.cc, ov-list.cc, ov-range.cc, |
|
1688 ov-re-mat.cc, ov-scalar.cc, ov-str-mat.cc, ov-struct.cc, ov.cc |
|
1689 (print_name_tag, print_raw): New functions. |
|
1690 |
|
1691 * help.cc (Ftype): Don't cast symbol definition to tree_constant *. |
|
1692 |
|
1693 * variables.cc (link_to_global_variable): Don't try to define |
|
1694 symbol with tree_constant objects. |
|
1695 (bind_ans): Call symbol_record::define directly and then |
|
1696 octave_value::print_with_name instead of creating a temporary |
|
1697 assignment expression. |
|
1698 |
|
1699 * pt-pr-code.cc (tree_print_code::indent): Don't use ostream::form. |
|
1700 |
|
1701 * pt-exp-base.h, pt-exp.h, pt-exp.cc (oper): Return string, not |
|
1702 char *. Change all where necessary. |
|
1703 |
|
1704 Mon Apr 28 16:33:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1705 |
|
1706 * ov.h (octave_value binary_op enum): Add lshift and rshift. |
|
1707 (octave_value assign_op enum): Add lshift_eq and rshift_eq. |
|
1708 * ov.cc (assign_op_as_string, binary_op_as_string): Include them. |
|
1709 * parse.y (LSHIFT_EQ RSHIFT_EQ LSHIFT RSHIFT): New tokens. |
|
1710 Add them to the precedence list. |
|
1711 (simple_expr): Add new operators. |
|
1712 (make_assign_op, make_binary_op): Handle new operators. |
|
1713 * lex.l: Recognize new operators. |
|
1714 |
|
1715 * lex.l: Recognize them. |
|
1716 |
|
1717 Sun Apr 27 20:17:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2898
|
1718 |
|
1719 * pt-misc.cc (Vsilent_functions, silent_functions): |
|
1720 Move here from oct-usr-fcn.cc. |
|
1721 (symbols_of_pt_misc): New function. DEFVAR silent_functions. |
|
1722 (tree_statement_list::eval): Handle Vsilent_functions here instead |
|
1723 of in octave_user_function::eval. |
|
1724 (tree_statement::eval): New functions. |
|
1725 (tree_statement_list::eval): Use them. |
|
1726 Change print flag arg to silent flag. Change all callers. |
|
1727 * variables.cc (install_builtin_variables): Call symbols_of_pt_misc. |
|
1728 * toplev.cc (parse_and_execute): Delete print arg. Change all callers. |
|
1729 (eval_string): Change print flag arg to silent flag. Change callers. |
|
1730 |
|
1731 * dynamic-ld.h, dynamic-ld.cc: Rewrite to use singleton class. |
|
1732 * variables.cc (load_fcn_from_file): Use new dynamic linking class. |
|
1733 |
2893
|
1734 * dynamic-ld.h (Octave_builtin_fcn): Delete typedef. |
|
1735 * dynamic-ld.cc: Simplify via the magic of function pointers. |
|
1736 |
|
1737 * pt-fcn.h pt-fcn.cc pt-fvc.h pt-fvc.cc pt-fvc-base.h pt-fvc-base.cc: |
|
1738 Delete obsolete files. |
|
1739 * Makefile.in: Remove them from various lists. |
|
1740 |
|
1741 * pt-walk.h (visit_octave_user_function): Rename from visit_function. |
|
1742 (visit_builtin): Delete. |
|
1743 * pt-pr-code.h, pt-pr-code.cc (visit_octave_user_function): |
|
1744 Rename from visit_function. |
|
1745 (visit_octave_user_function_header): Rename from visit_function_header. |
|
1746 (visit_octave_user_function_trailer): Rename from |
|
1747 visit_function_trailer. |
|
1748 |
|
1749 * ov.h, ov.cc (eval): New functions. |
|
1750 |
|
1751 * dassl.cc, fsolve.cc, lsode.cc, npsol.cc, qpsol.cc, quad.cc: |
|
1752 Declare user-defined functions as a pointer to an octave_symbol |
|
1753 object, not as a pointer to a tree_fvc object. |
|
1754 |
|
1755 * symtab.h, symtab.cc: Use new octave_symbol class. |
|
1756 * variables.cc (install_builtin_function, install_builtin_mapper, |
|
1757 install_builtin_variable, install_builtin_variable_as_function): |
|
1758 Make work with new octave_symbol class and symbol table structure. |
|
1759 |
|
1760 * variables.h: Delete declaration of builtin_function struct. |
|
1761 * defun-dld.h (DEFUN_DLD): Simplify. |
|
1762 * defun-int.h (DEFINE_FUN_STRUCT): Delete. |
|
1763 (DEFINE_FUN_STRUCT_FUN): Rewrite to not use static builtin_function |
|
1764 object. |
|
1765 |
|
1766 * mappers.h: Delete declaration of builtin_mapper_function struct. |
|
1767 * mappers.cc: Declare wrapper functions static. |
|
1768 * defun.h (DEFUN_MAPPER): Simplify. |
|
1769 |
|
1770 * oct-sym.h: New file. Declare base class for Octave symbols. |
|
1771 * ov.h: Derive octave_value class from octave_symbol. |
|
1772 * oct-fcn.h, oct-fcn.cc: New files to declare and define |
|
1773 base class for functions. |
|
1774 * oct-builtin.h, oct-builtin.cc: New files to declare and define |
|
1775 class for built-in functions. |
|
1776 * oct-mapper.h, oct-mapper.cc: New files to declare and define |
|
1777 class for mapper functions. |
|
1778 * oct-usr-fcn.h, oct-usr-fcn.cc: New files to declare and define |
|
1779 base class for user-defined functions. |
|
1780 * Makefile.in: Add new files to appropriate lists. |
|
1781 |
|
1782 * pt-id.h, pt-id.cc: Move tree_identifier class here. |
|
1783 * pt-fvc.h, pt-fvc.cc: From here. |
|
1784 |
|
1785 * pt-indir.h, pt-indir.cc: Move tree_indirect_ref class here. |
|
1786 * pt-fvc.h, pt-fvc.cc: From here. |
|
1787 |
2881
|
1788 Thu Apr 24 03:58:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1789 |
2884
|
1790 * parse.y (magic_colon): New nonterminal. |
|
1791 (arg_list): Simplify using magic_colon. |
|
1792 |
2883
|
1793 * lex.h (class lexical_feedback): Delete maybe_screwed field. |
|
1794 New field, parsed_function name. |
|
1795 * lex.l (lexical_feedback::init): Initialize it. |
|
1796 (handle_identifier): Don't return SCREW. Handle switching |
|
1797 symbol table context properly for `function f ()' vs `function x ='. |
|
1798 (is_keyword): If looking at function keyword, don't set current |
|
1799 symbol table to point to the local table. |
|
1800 * parse.y (recover_from_parsing_function): New function. |
|
1801 (finish_function_def): Use identifier, not token. |
|
1802 Simplify parsing of functions. |
|
1803 |
|
1804 * ov-list.h, ov-list.cc: New files to implement generic list type. |
|
1805 * ov.cc (list_indent): New global variable. |
|
1806 (increment_list_indent, decrement_list_indent): New functions. |
|
1807 (install_types): Register octave_list type. |
|
1808 * ov-base.cc (octave_base_value::is_list): New function. |
|
1809 |
2881
|
1810 * oct-sym.h: New file. |
|
1811 * ov.h (class octave_value): Derive from octave_symbol class. |
|
1812 |
|
1813 * pt-const.h, pt-const.cc: Delete lots of old useless cruft. |
|
1814 |
|
1815 * pt-exp.h, pt-exp.cc (tree_binary_expression): Use type codes for |
|
1816 operators from octave_value instead of repeating them here. |
|
1817 |
|
1818 * pt-fvc-base.cc (tree_fvc::increment, tree_fvc::decrement): Delete. |
|
1819 * pt-fvc.cc (tree_identifier::increment): Get reference to value |
|
1820 and increment that instead of using virutal tree_fvc::increment |
|
1821 function. |
|
1822 |
|
1823 * lex.l: Handle +=, -=, *=, /=, .+=, .-=, .*=, ./=, &=, and |= ops. |
2883
|
1824 * parse.y (make_assign_op): Rename from make_simple_assignment and |
|
1825 handle different op types. |
|
1826 (simple_expr1): Do new ops. |
2881
|
1827 * pt-misc.cc (initialize_undefined_elements): Pass op to assign. |
|
1828 * pt-cmd.cc (tree_for_command::do_for_command_once): Likewise. |
|
1829 * pt-fvc.cc (tree_identifier::assign): Pass op. |
|
1830 * pt-exp.cc (tree_simple_assignment_expression): Handle new ops. |
|
1831 * variables.cc (octave_variable_reference::assign): Likewise. |
|
1832 * ov.h (class octave_value): Likewise. |
|
1833 * ov.cc (octave_value::assign_op_as_string): New function. |
|
1834 (octave_value::assign, octave_value::convert_and_assign, |
|
1835 octave_value::try_assignment_with_conversion, |
|
1836 octave_value::try_assignment): Pass op. |
|
1837 * pt-pr-code.cc (tree_print_code::visit_simple_assignment_expression): |
|
1838 Use expr.oper() instead of printing "=". |
|
1839 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-m-m.cc, |
|
1840 op-m-s.cc, op-str-str.cc: Pass op to INSTALL_ASSIGNOP. |
|
1841 * ops.h (INSTALL_ASSIGNOP): Pass op. |
2883
|
1842 * ov-typeinfo.cc (do_register_assign_op): Include op type in table. |
|
1843 (do_lookup_assign_op): Use op in lookup. |
2881
|
1844 |
|
1845 * ops.h (INSTALL_UNOP): Delete. |
|
1846 |
|
1847 * input.cc (generate_struct_completions, looks_like_struct): |
|
1848 Disable, since they don't work now anyway. |
|
1849 |
|
1850 * help.cc (Ftype): Work with octave_value instead of a pointer to |
|
1851 tree_constant. |
|
1852 * symtab.cc (symbol_record_info::symbol_record_info): Likewise. |
|
1853 |
|
1854 |
|
1855 Tue Apr 22 22:59:55 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1856 |
|
1857 * file-io.cc (Ffprintf): If first arg is a string, assume FID = 1. |
|
1858 |
|
1859 Fri Apr 18 20:16:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1860 |
|
1861 * oct-obj.h, oct-obj.cc: Implement octave_value_list with |
|
1862 Array<octave_value> as a data member, not as a class derived from |
|
1863 Array<octave_value>. |
|
1864 (octave_value_list::length, octave_value_list::resize, |
|
1865 octave_value_list::prepend, octave_value_list::append, |
|
1866 octave_value_list::reverse): New functions. |
|
1867 |
|
1868 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
1869 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
1870 op-s-cm.cc, op-s-m.cc: Use new bool ops from liboctave instead of |
|
1871 the macros defined in ops.h. |
|
1872 |
2865
|
1873 Thu Apr 17 13:12:22 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1874 |
|
1875 * parse.y (ABORT_PARSE): Handle forced_interactive the same as |
|
1876 interactive. |
|
1877 |
|
1878 Mon Apr 14 01:46:50 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1879 |
|
1880 * input.cc (octave_read): Don't forget to free input buffer if it |
|
1881 exists and has zero length. |
|
1882 (gnu_readline): Free buf if fgets returns 0. |
|
1883 |
|
1884 Wed Apr 9 00:03:57 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1885 |
|
1886 * time.cc (mk_tm_map): Only set zone field if HAVE_TM_ZONE or |
|
1887 HAVE_TZNAME are defined. |
|
1888 |
|
1889 Tue Apr 8 12:39:21 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1890 |
|
1891 * time.cc (extract_tm): Set tm.tm_zone if HAVE_TM_ZONE is defined, |
|
1892 not if HAVE_TMZONE is defined. |
|
1893 |
|
1894 * Makefile.in (%.oct : %.o): Use $(SH_LD), not $(CXX). |
|
1895 |
|
1896 Wed Apr 2 21:32:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1897 |
|
1898 * dynamic-ld.cc, dynamic-ld.h (init_dynamic_linker): Delete |
|
1899 function and declaration. |
|
1900 * octave.cc (main): Don't call it. |
|
1901 |
2856
|
1902 Mon Mar 31 00:37:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1903 |
2859
|
1904 * pt-base-exp.h (tree_expression::eval): Give arg a default value. |
|
1905 * pt-const.h (tree_constant::eval): Likewise. |
|
1906 * pt-exp.h (tree_prefix_expression::eval, tree_colon_expression::eval, |
|
1907 tree_postfix_expression::eval, tree_unary_expression::eval, |
|
1908 tree_binary_expression::eval, tree_boolean_expression::eval, |
|
1909 tree_simple_assignment_expression::eval): Likewise. |
|
1910 * pt-fcn.h (tree_function::eval): Likewise. |
|
1911 * pt-fvc.h (tree_identifier::eval, tree_indirect_ref::eval, |
|
1912 tree_builtin::eval): Likewise. |
|
1913 * pt-mat.h (tree_matrix::eval): Likewise. |
|
1914 * pt-misc.h (tree_statement_list::eval): Likewise. |
|
1915 * pt-mvr-base.h (tree_multi_val_ret::eval): Likewise. |
|
1916 * pt-mvr.h (tree_oct_obj::eval, tree_index_expression::eval, |
|
1917 tree_multi_assignment_expression::eval): Likewise. |
|
1918 * dassl.cc, fsolve.cc, load-save.cc, lsode.cc, npsol.cc, parse.y, |
|
1919 pt-cmd.cc, pt-exp-base.cc, pt-exp.cc, pt-fvc.cc, pt-mat.cc, |
|
1920 pt-misc.cc, pt-mvr.cc, pt-plot.cc, quad.cc, toplev.cc, variables.cc: |
|
1921 Change callers of eval() to use bool instead of int and to make |
|
1922 use of default argument value. |
|
1923 |
|
1924 * toplev.h, toplev.cc (parse_and_execute, eval_string): Flag args |
|
1925 are now bool instead of int. |
|
1926 |
2856
|
1927 * symtab.h, symtab.cc: Use bool instead of int in more places. |
|
1928 * variables.h, variables.cc: Likewise. |
2857
|
1929 * lex.h, lex.l: Likewise. |
|
1930 * parse.y: Likewise. |
2856
|
1931 * help.cc, input.cc, lex.l, load-save.cc, parse.y, pt-fcn.cc: |
|
1932 Change callers of symbol_table::lookup to use bool instead of int, |
|
1933 and to make use of default arguments. |
|
1934 |
2850
|
1935 Fri Mar 28 15:33:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1936 |
2852
|
1937 * parse.y (Vwarn_comma_in_declaration): Delete. |
|
1938 (symbols_of_parse): Delete DEFVAR for warn_comma_in_declaration. |
|
1939 (decl1): Don't allow commas in declarations. |
|
1940 |
2850
|
1941 * lsode.cc (struct LSODE_OPTIONS): Handle integer options. |
|
1942 (print_lsode_option_list, set_lsode_option, show_lsode_option): Ditto. |
|
1943 (lsode_option_table): Add element for step limit. |
|
1944 (lsode_user_jacobian): New function. |
|
1945 (Flsode): Allow function name arg to be a 2-element string array |
|
1946 specifying the function and jacobian function. |
|
1947 |
|
1948 * variables.cc (get_global_value, set_global_value): New functions. |
|
1949 |
2846
|
1950 Wed Mar 26 17:08:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1951 |
|
1952 Implement static variable declaration: |
|
1953 |
|
1954 * lex.l (is_keyword): Handle static. |
|
1955 * octave.gperf: Likewise. |
|
1956 * parse.y (Vwarn_comma_in_declaration): Rename from |
|
1957 Vwarn_comma_in_global_decl. |
|
1958 Handle new static command. |
|
1959 * pt-cmd.h, pt-cmd.cc (class tree_decl_command): New base class |
|
1960 for static and global declaration commands. |
|
1961 (class tree_global_command): Derive from tree_decl_command. |
|
1962 (class tree_static_command): New class, derived from tree_decl_command. |
|
1963 * pt-fvc.cc, pt-fvc.h (tree_identifier::mark_as_static): New function. |
|
1964 * pt-misc.h, pt-misc.h (class tree_decl_elt): Rename from tree_global. |
|
1965 (class tree_decl_init_list): Rename from tree_global_init_list. |
|
1966 * pt-pr-code.cc, pt-pr-code.h (tree_print_code::visit_decl_command): |
|
1967 Rename from visit_global_command. |
|
1968 (tree_print_code::visit_decl_elt): Rename from visit_global. |
|
1969 (tree_print_code::visit_decl_init_list): Rename from |
|
1970 visit_global_init_list. |
|
1971 * pt-walk.h (tree_walker::visit_decl_command): Rename from |
|
1972 visit_global_command. |
|
1973 (tree_walker::visit_decl_elt): Rename from visit_tree_global. |
|
1974 (tree_walker::visit_decl_init_list): Rename from |
|
1975 visit_global_init_list. |
|
1976 * variables.cc (link_to_global_variable): Trying to make a static |
|
1977 variable global is an error. |
|
1978 * SLList-misc.cc: Instantiate lists of pointers to tree_decl_elt |
|
1979 objects, not tree_global objects. |
|
1980 * symtab.h, symtab.cc (symbol_record::tagged_static): New field. |
|
1981 (symbol_record::mark_as_static, symbol_record::is_static): |
|
1982 New functions. |
|
1983 * symtab.cc (symbol_record::init_state): Initialize tagged_static. |
|
1984 (symbol_record::clear): Don't clear static variables. |
|
1985 * symtab.cc (push_context): Don't do anything for static variables. |
|
1986 |
2825
|
1987 Tue Mar 25 17:17:17 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1988 |
2881
|
1989 * ov-bool-mat.cc, ov-bool-mat.h, ov-bool.cc, ov-bool.h: New files. |
2832
|
1990 |
2831
|
1991 * defaults.cc (symbols_of_defaults): DEFCONST OCTAVE_HOME. |
|
1992 |
|
1993 * toplev.cc (octave_config_info): Delete use of CXXLIBS. |
|
1994 * oct-conf.h.in: Ditto. |
|
1995 |
2830
|
1996 * octave.cc (maximum_braindamage): Don't bind prefer_zero_one_indexing. |
|
1997 * ov.h: Don't declare Vprefer_zero_one_indexing. |
|
1998 * ov.cc: Don't define Vprefer_zero_one_indexing. |
|
1999 (prefer_zero_one_indexing): Delete. |
|
2000 (symbols_of_value): Delete DEFVAR for prefer_zero_one_indexing. |
|
2001 |
2825
|
2002 * ov.h, ov.cc, ov-base.h, ov-base.cc: Add constructors and |
|
2003 extractors for bool and boolMatrix types. |
|
2004 |
|
2005 * ov.cc (install_types): Register octave_bool and |
|
2006 octave_bool_matrix types. |
|
2007 |
|
2008 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
2009 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
2010 op-s-cm.cc, op-s-m.cc, op-s-s.cc, ov-re-mat.cc: |
|
2011 Return boolMatrix instead of Matrix object. |
|
2012 * ops.h (BOOL_OP3, MX_MX_BOOL_OP): Likewise. |
|
2013 |
|
2014 * op-b-b.h, op-b-b.cc, op-bm-bm.h, op-bm-bm.cc: New files. |
|
2015 * Makefile.in: Add them to the lists. |
|
2016 * ops.cc: Include header files here. |
|
2017 (install_ops): Call install_b_b_ops() and install_bm_bm_ops() here. |
|
2018 |
|
2019 * variables.cc (symbols_of_variables): Don't rely on default |
|
2020 conversion from int to double for value returned from |
|
2021 default_history_size(). |
|
2022 |
|
2023 * pr-output.cc: Include cstdio. |
|
2024 |
|
2025 * parse.y (param_list_end): Fix typo in last change. |
|
2026 |
|
2027 * quad.cc (quad): Cast integer return values to double. |
|
2028 * npsol.cc (show_npsol_option): Likewise. |
|
2029 * qpsol.cc (show_qpsol_option): Likewise. |
|
2030 * file-io.cc (Fsprintf, Ffwrite): Likewise. |
|
2031 |
|
2032 Mon Mar 24 13:11:47 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2033 |
|
2034 * ov-typeinfo.cc (typeinfo): If invoked with an argument, return |
|
2035 the type of the argument as a string. Fix doc string. |
|
2036 |
2821
|
2037 Thu Mar 20 14:47:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2038 |
|
2039 * mk-oct-links (links_dir): Don't use -h option for grep. It's |
|
2040 not needed since we are working on one file at a time anyway. |
|
2041 |
2819
|
2042 Mon Mar 17 10:53:29 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2043 |
|
2044 * lex.l (handle_identifier): When handling indirect_ref, set |
|
2045 lexer_flags.quote_is_transpose to 1 so that a.b' to work as |
|
2046 expected. |
|
2047 |
|
2048 * parse.y (param_list_beg, param_list_end): New nonterminals. |
|
2049 (param_list, param_list1): Use them. |
|
2050 |
2811
|
2051 Wed Mar 12 16:57:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2052 |
|
2053 * Makefile.in (install-strip): New target. |
|
2054 |
2806
|
2055 Mon Mar 10 22:38:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2056 |
|
2057 * Makefile.in (clean): Delete .oct files too. |
|
2058 |
|
2059 * toplev.cc (Vdefault_eval_print_flag): New static variable. |
|
2060 (eval_string): New arg, print. |
|
2061 (Feval): Pass Vdefault_eval_print_flag to eval_string. |
|
2062 (default_eval_print_flag): New function. |
|
2063 (symbols_of_toplev): New function. |
|
2064 |
|
2065 * variables.cc (install_builtin_variables): Call it. |
|
2066 |
|
2067 * pt-exp.h, pt-exp.cc (class tree_boolean_expression): Rename enum |
|
2068 fields `and' and `or' to `bool_and' and `bool_or'. |
|
2069 (tree_unary_expression): Rename enum field `not' to `unot'. |
|
2070 (class tree_binary_expression): Rename enum fields `and' and `or' |
|
2071 to `el_and' and `el_or'. |
|
2072 * parse.y: Change all uses. |
|
2073 |
|
2074 * time.cc (extract_tm): Truncate field values instead of rounding. |
|
2075 (gmtime, localtime): Likewise, for timeval. |
|
2076 |
|
2077 * ov.h (class octave_value): Delete unused variable freeptr. |
|
2078 |
|
2079 * mappers.cc: Delete functions that are already in |
|
2080 liboctave/lo-mappers.cc. |
|
2081 |
|
2082 * oct-strstrm.cc (octave_base_strstream::tell): Use const_cast, |
|
2083 not static_cast. |
|
2084 |
|
2085 * help.cc (help_from_list): Add missing const qualifiers. |
|
2086 * help.h (struct help_list): Likewise. |
|
2087 * lex.l (match_any, plot_style_token): Likewise. |
|
2088 * load-save.cc (extract_keyword, ascii_save_type): Likewise. |
|
2089 * oct-hist.cc (mk_tmp_hist_file): Likewise. |
|
2090 * octave.cc (execute_startup_files): Likewise. |
|
2091 * octave.gperf (struct octave_kw): Likewise. |
|
2092 * pr-output.cc (pr_any_float): Likewise. |
|
2093 * pt-mvr.cc (tree_index_expression::eval_error): Likewise. |
|
2094 * pt-exp-base.h, pt-exp.h, pt-exp.cc: Likewise. |
|
2095 * parse.y: Likewise. |
|
2096 |
2800
|
2097 Sun Mar 9 03:46:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2098 |
2806
|
2099 * pt-exp-base.h (tree_expression): Delete extra comma at end of list. |
|
2100 |
|
2101 * dirfns.cc error.cc file-io.cc fsolve.cc input.cc load-save.cc |
|
2102 npsol.cc pt-fcn.cc qpsol.cc quad.cc syscalls.cc toplev.cc |
|
2103 variables.cc: Eliminate embedded newlines in string constants. |
|
2104 |
|
2105 * Map.cc, data.cc, dirfns.cc, dynamic-ld.cc, file-io.cc, |
|
2106 fsolve.cc, getgrent.cc, getpwent.cc, getrusage.cc, help.cc, |
|
2107 input.cc, load-save.cc, mappers.cc, minmax.cc, npsol.cc, |
|
2108 oct-fstrm.cc, oct-procbuf.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
2109 oct-stream.cc, oct-stream.h, oct-strstrm.cc, octave.cc, |
|
2110 ov-base.h, ov-range.cc, ov-typeinfo.cc, ov.cc, pr-output.cc, |
|
2111 pt-cmd.cc, pt-exp.cc, pt-fcn.cc, pt-fvc.cc, pt-mat.cc, |
|
2112 pt-misc.cc, pt-plot.cc, qpsol.cc, quad.cc, sort.cc, strfns.cc, |
|
2113 symtab.cc, syscalls.cc, sysdep.cc, time.cc, toplev.cc, |
|
2114 unwind-prot.cc, unwind-prot.h, variables.cc, xpow.cc: |
|
2115 Use `static_cast<T> (val)' instead of old C-style `(T) val' casts. |
2800
|
2116 |
2799
|
2117 Sat Mar 8 02:35:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2118 |
|
2119 * load-save.cc (save_ascii_data, save_three_d): Where appropriate, |
|
2120 use bool instead of int. |
|
2121 (save_binary_data, save_mat_binary_data, save_ascii_data): |
|
2122 Print warning instead of error for wrong type arg. |
|
2123 |
|
2124 * gripes.cc (gripe_wrong_type_arg): New arg, is_error. |
|
2125 |
|
2126 * pt-plot.cc (save_in_tmp_file): Call save_ascii_data with bool |
|
2127 arg, not int. |
|
2128 |
2797
|
2129 Fri Mar 7 00:56:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2130 |
|
2131 * dassl.cc (show_dassl_option): For values that are determined |
|
2132 automatically, return a string instead of a magic value (-1.0). |
|
2133 * fsolve.cc (show_fsolve_option): Likewise. |
|
2134 * lsode.cc (show_lsode_option): Likewise. |
|
2135 * npsol.cc (show_npsol_option): Likewise. |
|
2136 * qpsol.cc (show_qpsol_option): Likewise. |
|
2137 |
|
2138 * variables.cc (extract_function): New function. |
|
2139 * dassl.cc (Fdassl): Use it instead of is_valid_function. |
|
2140 * fsolve.cc (Ffsolve): Likewise. |
|
2141 * npsol.cc (Fnpsol): Likewise. |
|
2142 * qpsol.cc (Fqpsol): Likewise. |
|
2143 * quad.cc (Fquad): Likewise. |
|
2144 |
2795
|
2145 Thu Mar 6 20:07:24 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2146 |
|
2147 * sighandlers.cc (my_friendly_exit, octave_new_handler, |
|
2148 sigfpe_handler, sigpipe_handler): Don't all error() or warning(). |
|
2149 |
|
2150 * pager.cc (pager_death_handler): Don't try to clear pager, just |
|
2151 print message to cerr. |
|
2152 (do_sync): If the status of the pager is bad or it looks like it |
|
2153 is dead, restore the interrupt handler. |
|
2154 |
|
2155 * load-save.cc (extract_keyword (istream&, char*, int&)): |
|
2156 Move declaration of buf inside loop, to avoid deleting its guts |
|
2157 and then trying to reuse it. |
|
2158 (extract_keyword (istream&, char*)): Likewise. |
|
2159 |
2790
|
2160 Tue Mar 4 20:36:53 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2161 |
2791
|
2162 * pt-fcn.cc (tree_function::eval): Protect function from being |
|
2163 redefined while it is being evaluated. |
|
2164 (unprotect_function): New function, for use with unwind_protect stuff. |
|
2165 * pt-fcn.h (tree_function::symtab_entry): New data member. |
|
2166 (tree_function::init): Initialize it to 0. |
|
2167 (tree_function::stash_symtab_ptr): New function. |
|
2168 * parse.y (frob_function_def): Stash pointer to function's |
|
2169 symbol_record in the function definition. |
|
2170 |
|
2171 * symtab.cc (symbol_record::read_only_error): New argument, |
|
2172 action. Change all callers. |
|
2173 (symbol_record::rename): Don't allow read-only symbols to be renamed. |
|
2174 |
2790
|
2175 * variables.cc (Fexist): Don't let files with `.' in their names |
|
2176 confuse us. |
|
2177 |
|
2178 * symtab.cc (valid_identifier (const string&)): New function. |
|
2179 |
2779
|
2180 Sat Mar 1 15:23:14 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2775
|
2181 |
|
2182 * Version 2.0.5 released. |
|
2183 |
2779
|
2184 Sat Mar 1 01:34:08 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2185 |
|
2186 * Makefile.in (stamp-oct-links): New target. Make links in build |
|
2187 directory too, so that the tests will work. |
|
2188 |
2777
|
2189 * quad.cc: If quad is defined, undefine it. |
|
2190 |
2775
|
2191 * octave.cc: If WITH_KPATHSEARCH is defined, don't define |
|
2192 program_invocation_name or program_invocation_short_name. |
2774
|
2193 |
|
2194 * strftime.c: Update to current version from FSF. |
|
2195 * time.cc (Fstrftime): Call strftime with buf = 0 to get buffer |
|
2196 size, then call again to actually format the time struct. |
|
2197 |
2762
|
2198 Fri Feb 28 01:49:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2199 |
2764
|
2200 Implement switch statement: |
|
2201 |
|
2202 * parse.y (Vwarn_variable_switch_label): New static variable. |
|
2203 (warn_variable_switch_label): New function. |
|
2204 (symbols_of_parse): Provide warn_variable_switch_label as Octave |
|
2205 variable here. |
|
2206 (make_switch_case, finish_switch_command): New functions. |
|
2207 (maybe_warn_variable_switch_label): New function. |
|
2208 (end_error): Handle endswitch. |
|
2209 (switch_command, case_list, case_list1, switch_case, default_case): |
|
2210 New nonterminals. |
|
2211 (command): Add switch_command here. |
|
2212 * lex.l (is_keyword): Handle switch, case, otherwise, and endswitch. |
|
2213 * octave_gperf: Recognize switch, case, otherwise, and endswitch. |
|
2214 * token.h (end_tok_type): New item, switch_end. |
|
2215 * pt-cmd.cc (tree_switch_command): New class. |
|
2216 * pt-misc.cc (tree_switch_case, tree_switch_case_list): New classes. |
|
2217 * pt-pr-code.cc (tree_print_code::visit_switch_case, |
|
2218 tree_print_code::visit_switch_case_list, |
|
2219 tree_print_code::visit_switch_command): New functions. |
|
2220 * pt-walk.h (tree_walker::visit_switch_case, |
|
2221 tree_walker::visit_switch_case_list, |
|
2222 tree_walker::visit_switch_command): New pure virtual declarations. |
|
2223 Implement new switch statement. |
|
2224 * SLList-misc.cc: Instantiate lists of pointers to |
|
2225 tree_switch_case objects too. |
|
2226 |
|
2227 * lex.h, lex.l, parse.y: Delete all references to lexer_flags::iffing. |
|
2228 |
2762
|
2229 * syswait.h: Include sys/wait.h on NeXT systems, but don't use the |
|
2230 WIFEXTED, WEXITSTATUS, and WIFSIGNALLED macros defined there. |
|
2231 Also define waitpid in terms of wait4. From Rex A. Dieter |
|
2232 <rdieter@math.unl.edu>. |
|
2233 |
2759
|
2234 Wed Feb 26 16:43:31 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2235 |
|
2236 * oct-stream.cc (octave_base_stream::do_scanf): Don't report an |
|
2237 error if a conversion fails or we reach EOF. |
|
2238 |
2745
|
2239 Tue Feb 25 22:21:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2240 |
|
2241 * time.cc (strftime): increase initial buffer size. |
|
2242 |
|
2243 Mon Feb 24 17:49:21 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2244 |
|
2245 * pt-fvc.cc (tree_builtin::eval): Enable checking for max number |
|
2246 of arguments. |
|
2247 |
|
2248 * error.cc (handle_message): Don't fail if args is empty. |
|
2249 |
|
2250 Sun Feb 23 22:42:52 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2251 |
|
2252 * lex.h (lexical_feedback::looking_at_return_list): New field. |
|
2253 (lexical_feedback::looking_at_parameter_list): Ditto. |
|
2254 * lex.l (lexical_feedback::init): Initialize them. |
|
2255 (handle_identifier): Use them. |
|
2256 * parse.y: Likewise. |
|
2257 |
2712
|
2258 Fri Feb 21 15:35:18 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2259 |
2716
|
2260 * lex.l: Require flex 2.5 or later (we really want 2.5.4 or later, |
|
2261 but there seems to be no good way to check the patchlevel). |
|
2262 |
2712
|
2263 * oct-stream.cc (octave_base_stream::oscanf): Instead of returning |
|
2264 an error, just quit processing after a conversion fails. |
|
2265 |
2709
|
2266 Thu Feb 20 02:58:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2702
|
2267 |
|
2268 * Version 2.0.4 released. |
|
2269 |
2706
|
2270 Wed Feb 19 10:30:14 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2271 |
2705
|
2272 * sighandlers.cc (octave_ignore_interrupts, |
|
2273 octave_catch_interrupts, octave_set_interrupt_handler): |
|
2274 Return old value, not pointer to static data. Fix all uses. |
|
2275 |
|
2276 * sighandlers.h (octave_interrupt_handler): Move declaration here. |
|
2277 * sighandlers.cc: From here. |
|
2278 |
|
2279 * toplev.cc: Undo previous change. |
|
2280 |
2702
|
2281 * lex.l (handle_identifier): Allow commands like ls, save, etc. to |
|
2282 also be used as simple variable names. Also make it possible to |
|
2283 use the normal function call syntax to invoke them. |
|
2284 |
2693
|
2285 Tue Feb 18 09:22:04 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2689
|
2286 |
2702
|
2287 * Makefile.in (%.oct:%.o, %.oct:pic/%.o): Use $(SH_LDFLAGS) here. |
|
2288 |
2690
|
2289 * Version 2.0.3 released. |
|
2290 |
2693
|
2291 Tue Feb 18 00:27:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2292 |
|
2293 * toplev.cc (run_command_and_return_output): |
|
2294 Block SIGCHLD while running subprocess. |
|
2295 (cleanup_iprocstream): Unblock it here. |
|
2296 |
|
2297 * sighandlers.h (BLOCK_SIGNAL, BLOCK_CHILD, UNBLOCK_CHILD): Move here. |
|
2298 * sighandlers.cc: From here. |
|
2299 |
2692
|
2300 * toplev.cc (system): Shift then mask exit status. |
|
2301 |
|
2302 * help.cc (try_info): Shift first, then mask exit status. |
|
2303 |
2689
|
2304 * toplev.cc (octave_config_info): Handle option argument. |
|
2305 |
2686
|
2306 Fri Feb 14 16:23:30 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2307 |
2687
|
2308 * oct-stream.cc (octave_base_stream::do_scanf): Don't forget to |
|
2309 check to see if the result matrix needs resizing! |
|
2310 |
2686
|
2311 * Makefile.in (bin-dist): Don't write empty strings to LIBRARIES. |
|
2312 |
2669
|
2313 Thu Feb 13 03:02:08 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2314 |
2676
|
2315 * Makefile.in (stamp-prereq): Depend on stamp-picdir. |
|
2316 (all): Don't depend on stamp-prereq or stamp-picdir. |
|
2317 (stamp-tinst, stamp-interp, libtinst.a, liboctinterp.a): |
|
2318 Do depend on stamp-prereq. |
|
2319 (stamp-picdir): Silence noise about making pic. |
|
2320 (stamp-tinst, stamp-interp): Use $(SH_LD) $(SH_LDFLAGS) instead of |
|
2321 $(CXX) -shared. |
|
2322 |
2675
|
2323 * oct-conf.h.in: Reinstate RLD_FLAG. |
|
2324 * toplev.cc (octave_config_info): Likewise. |
|
2325 |
2672
|
2326 * data.cc (map_d_m, map_m_d, map_m_m): Rename from map. |
|
2327 (Fatan2): Use new function names. |
|
2328 |
|
2329 * pt-fvc.cc (apply_mapper_fcn): Use member function map() instead |
|
2330 of friend function. |
|
2331 |
2669
|
2332 * gripes.cc (gripe_wrong_type_arg (const char*, const string&)): |
|
2333 New function. |
|
2334 |
|
2335 Wed Feb 12 17:27:53 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2336 |
|
2337 * syscalls.cc (symbols_of_syscalls): Add O_ASYNC and O_SYNC. |
|
2338 |
|
2339 Mon Feb 10 01:22:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2340 |
|
2341 * dirfns.cc (Freaddir, Fmkdir, Frmdir, Frename): |
|
2342 Also return status and error message. |
|
2343 |
|
2344 * syscalls.cc (Fdup2, Fexec, Ffork, Ffcntl, Funlink, Fmkfifo, |
|
2345 Fpipe, Fwaitpid): Also return error message. |
|
2346 |
2664
|
2347 Sat Feb 8 17:16:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2348 |
2665
|
2349 * pt-exp.cc (tree_simple_assignment_expression::eval): Return |
|
2350 value of RHS, but (if printing) print complete value of LHS. |
|
2351 |
2664
|
2352 * pr-output.cc (octave_print_internal): Print a new line for empty |
|
2353 string matrices. |
|
2354 |
2663
|
2355 Wed Feb 5 14:30:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2356 |
|
2357 * oct-stream.cc (scanf_format_list::process_conversion): Accept |
|
2358 but don't actually use h, l, and L modifiers. Always insert l |
|
2359 modifier for floating point conversions. |
|
2360 |
2652
|
2361 Fri Jan 31 13:55:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2362 |
|
2363 * pager.cc (do_sync): Always flush the cout stream after writing. |
|
2364 |
2643
|
2365 Wed Jan 29 08:25:29 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2366 |
2648
|
2367 * defaults.cc (exec_path): Don't include bin_dir in std_path. |
|
2368 |
2646
|
2369 * pager.cc (do_sync): Flush the cout stream after writing if |
|
2370 running in interactive or forced_interactive mode. |
|
2371 |
|
2372 * mk-oct-links: Rename from mk-oct-links.in. |
|
2373 Don't use symbolic links. |
|
2374 * Makefile.in: Distribute mk-oct-links, not mk-oct-links.in |
|
2375 (mk-oct-links): Delete target. |
|
2376 (install-oct, bin-dist): Don't depend on mk-oct-links. |
|
2377 Run $(srcdir)/mk-oct-links, not ./mk-oct-links. |
|
2378 |
2643
|
2379 * qr.cc (qr): Doc fix. |
|
2380 |
2638
|
2381 Tue Jan 28 10:48:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2382 |
|
2383 * Makefile.in (install-inc): Create a relative symbolic link. |
|
2384 (install-bin): Create a relative symbolic link. |
|
2385 |
2630
|
2386 Mon Jan 27 12:12:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2387 |
2634
|
2388 * Version 2.0.2 released. |
|
2389 |
|
2390 * Makefile.in (CXXFLAGS_NO_PT_FLAGS): Rename from XALL_CXXFLAGS. |
|
2391 Substitute bsd_gcc_kluge_targets_frag. |
|
2392 |
2630
|
2393 * sysdep.cc (Fsleep): New function. |
|
2394 (Fusleep): New function. |
|
2395 |
|
2396 * toplev.cc (octave_config_info): Don't include RLD_FLAG. |
|
2397 * oct-conf.h.in: Don't define RLD_FLAG |
|
2398 |
2626
|
2399 Sun Jan 26 19:41:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2400 |
|
2401 * sighandlers.cc (sigchld_handler): Block SIGCHLD while |
|
2402 sigchld_hander is running. |
|
2403 |
2624
|
2404 Sat Jan 25 22:36:39 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2405 |
|
2406 * Makefile.in (bin-dist): Update for 2.x. |
|
2407 |
2621
|
2408 Fri Jan 24 10:05:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2409 |
|
2410 * mk-oct-links.in: New arg, -p, to just print list of files to link. |
|
2411 |
|
2412 * lex.l (handle_number): Convert `D' or `d' exponents to `e' |
|
2413 before scanning. |
|
2414 |
2620
|
2415 Thu Jan 23 10:00:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2416 |
|
2417 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_no_op_command): |
|
2418 New function. |
|
2419 * pt-cmd.h, pt-cmd.cc (tree_no_op_command): New class. |
|
2420 * parse.y (make_break_command, make_continue_command, |
|
2421 make_return_command): Where they don't really make sense, turn |
|
2422 these commands into no-ops. Accept return and break if reading a |
|
2423 script file. |
|
2424 * toplev.cc (parse_and_execute): Handle return and break in script |
|
2425 files. Quit executing commands if an error occurs when reading a |
|
2426 script file. Set global_command to 0 after deleting it. |
|
2427 (main_loop): If not interactive or forced_interactive, handle |
|
2428 break and return, and quit executing commands if an error occurs. |
|
2429 Set global_command to 0 after deleting it. |
|
2430 * error.cc (Ferror): Doc fix. |
|
2431 * pt-walk.h (tree_walker): Add declaration for visit_no_op_command. |
|
2432 |
2618
|
2433 Wed Jan 22 20:54:12 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2434 |
|
2435 * input.cc (gnu_readline): If not using readline, flush |
|
2436 rl_outstream after printing prompt. |
|
2437 (octave_gets): Also call flush_octave_stdout() if |
|
2438 forced_interactive, not just if interactive. |
|
2439 (do_input_echo): If forced_interactive, only echo prompt and |
|
2440 command line if also reading a script file. |
|
2441 |
2616
|
2442 Tue Jan 21 23:02:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2443 |
|
2444 * SLList.h: Include "BaseSLList.h", not <BaseSLList.h>. |
|
2445 |
2610
|
2446 Mon Jan 20 11:11:12 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2447 |
2614
|
2448 * lex.l (token_stack): Don't declare static. |
|
2449 * pt-plot.cc (tmp_files): Likewise. |
|
2450 * toplev.cc (octave_atexit_functions): Likewise. |
|
2451 * unwind-prot.cc (unwind_protect_list): Likewise. |
|
2452 |
2613
|
2453 * ops.h (MX_MX_BOOL_OP): Correctly handle case of one or both |
|
2454 arguments being empty. Change all callers. |
|
2455 |
|
2456 * oct-stream.cc (printf_value_cache::looking_at_string): |
|
2457 Handle empty strings correctly now that they are 0x0. |
|
2458 |
2610
|
2459 * file-io.cc: Don't include "syswait.h" here. |
|
2460 |
|
2461 Sun Jan 19 22:38:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2462 |
|
2463 * oct-stream.h (octave_base_stream::seek): Declare offset arg as |
|
2464 streamoff, not streampos. |
|
2465 (octave_stream::seek): Likewise. |
|
2466 * oct-strstrm.h (octave_base_strstream::seek): Likewise. |
|
2467 * oct-stdstrm.h (octave_base_stdiostream::seek): Likewise. |
|
2468 * oct-iostrm.h (octave_base_iostream::seek): Likewise. |
|
2469 * oct-fstrm.h (octave_fstream::seek): Likewise. |
|
2470 |
2609
|
2471 Fri Jan 17 18:13:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2472 |
|
2473 * file-io.cc (Ffflush): Handle stdout as a special case. |
|
2474 |
|
2475 * oct-stream.cc (octave_stream_list::do_get_file_number): |
|
2476 Do the work for octave_stream::get_file_number. |
|
2477 (octave_stream_list::get_file_number): Convert to static function. |
|
2478 |
2608
|
2479 Wed Jan 8 11:42:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2480 |
|
2481 * log.cc (sqrtm): For complex arg case, compute sqrt, not log. |
|
2482 |
2602
|
2483 Tue Jan 7 00:16:41 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2484 |
|
2485 * Version 2.0.1 released. |
|
2486 |
|
2487 Mon Jan 6 00:00:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2488 |
|
2489 * pt-mat.cc (tm_row_const_rep::all_mt): New variable. |
|
2490 (tm_row_const::all_empty): New function. |
|
2491 (tm_row_const::tm_row_const_rep::init): Set all_mt here. |
|
2492 (tm_const::all_mt): New variable. |
|
2493 (tm_const::all_emtpy): New function. |
|
2494 (tm_const::init): Set all_mt here. |
|
2495 (tree_matrix::eval): Return an empty matrix if the list contains |
|
2496 only empty elements. If it contains only empty strings, return an |
|
2497 empty string. |
|
2498 |
2601
|
2499 Sun Jan 5 12:50:25 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2500 |
|
2501 * ops.h (SC_MX_BOOL_OP, MX_SC_BOOL_OP): New arg, empty_result. |
|
2502 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
2503 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
2504 op-s-cm.cc, op-s-m.cc, op-str-str.cc: Change all uses of |
|
2505 SC_MX_BOOL_OP and MX_SC_BOOL_OP macros. Return correct results |
|
2506 for empty matrix cases. |
|
2507 |
|
2508 * pt-fcn.cc (tree_function::eval): If Vdefine_all_return_values is |
|
2509 true, initialize return values before evaluating function, for |
|
2510 compatibility with Matlab. |
|
2511 |
|
2512 * oct-stream.cc (get_size): Correctly set size when arg is scalar. |
|
2513 |
|
2514 Thu Jan 2 12:40:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2515 |
|
2516 * Makefile.in (install-oct): Quote $(OCT_FILES) in for loop to |
|
2517 avoid syntax error from ksh. |
|
2518 |
|
2519 * pr-output.cc (octave_print_internal): Avoid unused parameter |
|
2520 warning from gcc. |
|
2521 |
2600
|
2522 Thu Dec 19 12:13:42 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2523 |
|
2524 * oct-stream.cc (octave_base_stream::do_scanf): |
|
2525 Don't treat %l{e,f,g} differently from %{e,f,g}. |
|
2526 (octave_base_stream::do_oscanf): Likewise. |
|
2527 |
|
2528 * sighandlers.cc (sigchld_handler): Fix typos. |
|
2529 |
2598
|
2530 Wed Dec 18 20:17:23 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2531 |
2599
|
2532 * file-io.cc (Ffgetl, Ffgets): Also return number of characters read. |
|
2533 |
|
2534 * ov-range.cc (octave_range::not): New function. |
|
2535 * ov-range.h (octave_range::uminus): New function. |
|
2536 |
2598
|
2537 * BaseSLList.cc: Include error.h. |
|
2538 (BaseSLList::error): Call ::error() to process error message. |
|
2539 |
2589
|
2540 Fri Dec 13 02:38:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2541 |
|
2542 * ov.cc (octave_value::convert_and_assign): Preserve lhs value if |
|
2543 assignment fails. |
|
2544 |
2586
|
2545 Wed Dec 11 12:33:16 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2546 |
|
2547 * pt-plot.cc (GPLOT_CMD_END): Don't put semicolons at the end of |
|
2548 each plot command; it causes trouble with gnuplot 3.5. |
|
2549 |
2580
|
2550 Tue Dec 10 00:31:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2551 |
2583
|
2552 * Version 2.0 released. |
|
2553 |
2584
|
2554 * pr-output.cc (set_format_style): Don't try to access argv unless |
|
2555 argc > 1. |
|
2556 |
2580
|
2557 * SLList-expr.cc SLList-misc.cc SLList-plot.cc SLList-str.cc |
|
2558 SLList-tc.cc SLList-tm.cc SLList.h SLStack-i.cc SLStack-pc.cc |
|
2559 SLStack-str.cc SLStack-sym.cc SLStack-tok.cc SLStack-ue.cc |
|
2560 SLStack-ui.cc, pt-mat.cc: Include Stack.h, Stack.cc, SLStack.cc, |
|
2561 and SLList.cc as necessary. |
|
2562 |
|
2563 * Stack.cc, SLStack.cc, SLList.cc: New files. |
|
2564 * Makefile.in (SOURCES): Add them to the list. |
|
2565 |
2575
|
2566 Mon Dec 9 12:03:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2567 |
2577
|
2568 * Makefile.in (install-bin): Use $(EXE) suffix so install will |
|
2569 find the right file on cygwin32 systems. |
|
2570 |
2575
|
2571 * ov.h: Declare proper form of do_binary_op as friend to |
|
2572 octave_value class. |
|
2573 |
2572
|
2574 Sat Dec 7 22:00:10 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2575 |
|
2576 * oct-stream.cc (do_printf_conv, do_scanf_conv, |
|
2577 do_oscanf_num_conv, do_oscanf_str_conv): Convert to real |
|
2578 functions instead of CPP macros, using templates where necessary. |
|
2579 (do_oscanf_num_conv, do_oscanf_str_conv): Correctly handle |
|
2580 discarded values. |
|
2581 |
2569
|
2582 Fri Dec 6 00:20:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2583 |
2572
|
2584 * Version 1.94. |
|
2585 |
2571
|
2586 * Map-*.cc, SLList-*.cc, SLStack-*.cc: Include config.h. |
|
2587 |
|
2588 * ov.h: Don't include SLList.h. |
|
2589 |
|
2590 * SLStack.cc: Delete. Move everything to SLStack.h. |
|
2591 |
|
2592 * BaseSLList.h, BaseSLList.cc: New files. Split out the |
|
2593 non-template base class parts of SLList. |
|
2594 |
2569
|
2595 * Makefile.in (TEMPLATE_SRC): Delete. Move files to SOURCES. |
|
2596 * Map.h, Map.cc: Add #pragma interface/implementation. |
|
2597 * SLStack.h, SLStack.cc: Add #pragma interface/implementation. |
|
2598 |
|
2599 * SLList.h, SLList.cc: New files, from libg++, but with #pragma |
|
2600 interface/implementation. |
|
2601 * Makefile.in (SOURCES): Add SLList.cc. |
|
2602 (INCLUDES): Add SLList.h. |
|
2603 |
2566
|
2604 Thu Dec 5 18:36:44 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2605 |
|
2606 * octave.cc: Don't include sun-utils.h. |
|
2607 |
2563
|
2608 Tue Dec 3 23:47:09 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2609 |
|
2610 * op-str-str.cc (eq, ne): Handle operations with scalars. |
|
2611 |
2555
|
2612 Thu Nov 21 12:30:36 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2613 |
|
2614 * ov-str-mat.h (octave_char_matrix_str): Provide transpose and |
|
2615 hermitian operators. |
|
2616 * ov-ch-mat.h (octave_char_matrix): Likewise. |
|
2617 |
2548
|
2618 Wed Nov 20 00:35:57 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2619 |
2554
|
2620 * sighandlers.h (struct octave_interrupt_handler): Provide |
|
2621 forward declaration here. |
|
2622 * sighandlers.cc (octave_interrupt_handler): New struct. |
|
2623 (octave_catch_interrupts): Rename from catch_interrupts. |
|
2624 (octave_ignore_interrupts, octave_set_interrupt_handler): |
|
2625 New functions. |
|
2626 * help.cc, oct-hist.cc, pager.cc, toplev.cc: Use new functions for |
|
2627 handling interrupts so that we can hide the details of whether or |
|
2628 not we have to deal with SIGBREAK. |
|
2629 |
|
2630 * pt-plot.cc [! HAVE_POSIX_SIGNALS] (open_plot_stream): |
|
2631 Simply ignore and restore the interrupt handler here. |
|
2632 |
|
2633 * sighandlers.cc (MAYBE_REINSTALL_SIGHANDLER): New macro. Use it |
|
2634 instead of always checking MUST_REINSTALL_SIGHANDLERS everywhere. |
|
2635 (sigchld_handler): If octave_child_list is empty, wait for any |
|
2636 child, but don't hang, and don't collect status info. |
|
2637 [__EMX__] (sigchld_handler): Save and restore handlers for SIGINT, |
|
2638 SIGBREAK, and SIGCHLD. Ignore them while waiting on children. |
|
2639 (install_signal_handlers): If SIGBREAK exists, handle it like SIGINT. |
|
2640 |
2552
|
2641 * toplev.cc [USE_READLINE] (clean_up_and_exit): |
|
2642 Call rl_deprep_terminal() to restore terminal settings. |
|
2643 |
|
2644 * sysdep.cc [__EMX__ && OS2] (Fextproc): New command. |
|
2645 [__EMX__ && OS2] (FEXTPROC): Alias for Fextproc. |
|
2646 |
|
2647 * Version 1.93. |
|
2648 |
2549
|
2649 * sysdep.cc (octave_chdir): [__EMX__]: Make copy of string before |
|
2650 converting to upper case. |
|
2651 |
2548
|
2652 * getgrent.cc (mk_gr_map): Only set the passwd field if |
|
2653 HAVE_GR_PASSWD is defined. |
|
2654 |
2533
|
2655 Tue Nov 19 12:01:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2656 |
2546
|
2657 * sysdep.cc (OS2_init): New function. |
|
2658 [__EMX__] (sysdep_init): Call it. |
|
2659 |
2542
|
2660 * lex.l (plot_style_token): Add new plot styles for gnuplot 3.6. |
2543
|
2661 * pt-plot.cc (subplot_style::columns_ok): Rename from |
|
2662 subplot_style::errorbars. Recognize more styles and do a better |
|
2663 job of diagnosing column number/style mismatches. |
2542
|
2664 |
2536
|
2665 * sighandlers.cc (my_friendly_exit): If we are called twice, try |
|
2666 to remove the signal handler for SIGABRT and the call abort (). |
|
2667 |
2534
|
2668 * help.cc (Ftype): If a function is defined from a file and |
|
2669 transformed text has not been requested, just print the contents |
|
2670 of the file. |
|
2671 |
2533
|
2672 * parse.y (fold): New functions for constant folding for binary |
|
2673 and unary expressions. Keep track of original text even when |
|
2674 transformations occur. |
|
2675 (make_binary_op, make_boolean_op, make_unary_op): Use them. |
|
2676 (finish_colon_expression, finish_matrix): Keep track of original |
|
2677 text even when transformations occur. |
|
2678 |
|
2679 * help.cc (Ftype): Don't mess with Vps4. |
|
2680 Handle new option `-transformed'. |
|
2681 |
|
2682 * pt-const.h, pt-const.cc (tree_constant::print): |
|
2683 New arg, pr_orig_text. |
|
2684 |
|
2685 * pt-exp.h, pt-exp.cc (tree_colon_expression::is_range_constant): |
|
2686 Delete. |
|
2687 |
|
2688 * pt-exp-base.h (tree_expression::original_text): New virtual function. |
|
2689 pt-exp-base.cc (tree_expression::original_text): Default version. |
|
2690 |
|
2691 * pt-pr-code.h (tree_print_code::print_original_text, |
|
2692 tree_print_code::prefix): New fields. |
|
2693 * pt-pr-code.cc (tree_print_code::visit_constant): Pass |
|
2694 print_original_text to tree_constant::print(). |
|
2695 (tree_print_code::indent): Use prefix instead of Vps4. |
|
2696 * pt-fcn.cc (tree_function::print_function_header, |
|
2697 tree_function::print_function_trailer): Pass Vps4 to |
|
2698 tree_print_code_constructor for prefix. |
|
2699 * pt-misc.cc (tree_statement::maybe_echo_code): Pass Vps4 to |
|
2700 tree_print_code_constructor for prefix. |
|
2701 |
|
2702 * pt-mat.h, pt-mat.cc (tree_matrix::all_elements_are_constant): |
|
2703 Rename from is_matrix_constant. |
|
2704 (tree_matrix_row::all_elements_are_constant): Likewise. |
|
2705 Change all callers. |
|
2706 |
|
2707 Mon Nov 18 14:13:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2708 |
|
2709 * Makefile.in (install-inc): Try harder to create the link from |
|
2710 include/octave to include/octave-VERSION. |
|
2711 |
2524
|
2712 Sun Nov 17 14:14:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2713 |
2527
|
2714 * Makefile.in (parse.cc): Expect 13 shift/reduce conflicts. |
2526
|
2715 |
2525
|
2716 * parse.y (set_stmt_print_flag): New function. |
|
2717 (sep_type): New member for bison %union declaration. |
|
2718 Simplify rules for statement lists keeping track of the type of |
|
2719 the first separator in the values associated with the |
|
2720 nonterminals for the separators. |
|
2721 |
2524
|
2722 * lex.l (handle_identifier): Set lexer_flags.doing_set if the |
|
2723 token is "gset", not "set". |
|
2724 |
|
2725 Sat Nov 16 21:41:26 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2726 |
|
2727 * Makefile.in (parse.cc, lex.cc): Add special rules for these files. |
|
2728 Delete pattern rules for .y and .l files. |
|
2729 |
2522
|
2730 Fri Nov 15 13:48:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2731 |
2523
|
2732 * pt-plot.cc: Put semicolons at the ends of all plot commands. |
|
2733 |
2522
|
2734 * defaults.cc (subst_octave_home): Start subsequent searchs from |
|
2735 the end of the replaced text. |
|
2736 |
|
2737 * pr-output.cc (pr_any_float): Kluge for SCO systems. |
|
2738 |
|
2739 * pr-output.cc (pr_any_float, pr_complex): Don't declare inline. |
|
2740 |
|
2741 * mappers.cc: Include lo-ieee.h, for isinf and isnan on SCO |
|
2742 systems. |
|
2743 |
2512
|
2744 Thu Nov 14 00:06:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2745 |
2520
|
2746 * pt-plot.cc (Fgset, Fgshow): New commands. |
|
2747 (Fshow): Print warning and call gshow. |
|
2748 (Fset): Print warning and call gset. |
|
2749 |
2517
|
2750 * variables.cc (parse_fcn_file): Add unwind-protect for file |
|
2751 pointer, so the file is always closed. |
|
2752 (get_help_from_file): Likewise. |
|
2753 * toplev.cc (parse_and_execute): Likewise. |
|
2754 |
2516
|
2755 * Makefile.in (install-oct): Depend on mk-oct-links. |
|
2756 (mk-oct-links): New target. |
|
2757 |
2512
|
2758 * Version 1.92. |
|
2759 |
2508
|
2760 Wed Nov 13 11:13:22 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2761 |
2512
|
2762 * sighandlers.cc (sys_siglist): [__EMX__]: Add definitions. |
|
2763 |
|
2764 * octave.cc (execute_startup_files): Allow init file name ot be |
|
2765 specified by an environment variable. |
|
2766 |
|
2767 * dirfns.cc (make_absolute): [__EMX__]: Path is already absolute |
|
2768 if it begins with any character followed by a colon. |
|
2769 |
2511
|
2770 * load-save.cc (read_mat_ascii_matrix, get_lines_and_columns, |
|
2771 get_complete_line): New functions, for reading headless text files. |
|
2772 (load_save_format): Add LS_MAT_ASCII, for headless text files. |
|
2773 (do_load): Handle LS_MAT_ASCII files. |
|
2774 Thanks to Mel Melchner <mjm@research.att.com> for initial version |
|
2775 of this code. |
|
2776 |
2508
|
2777 * sysdep.cc: Conditionally include ieeefp.h. |
|
2778 (BSD_init, SCO_init): New functions. |
|
2779 (sysdep_init): Conditionally call them here. |
|
2780 |
2499
|
2781 Tue Nov 12 00:14:56 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2782 |
2508
|
2783 * pt-plot.cc (open_plot_stream): Don't block SIGCHLD. |
|
2784 |
2499
|
2785 * load-save.cc (read_binary_data): When reading string arrays, be |
|
2786 sure to create an octave_char_matrix_str object, not just an |
|
2787 octave_char_matrix object. |
|
2788 (read_ascii_data): Likewise. |
|
2789 |
2497
|
2790 Mon Nov 11 22:52:58 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2791 |
|
2792 * load-save.cc (read_binary_data): Don't forget teminating NUL for |
|
2793 string that we plan to insert. |
|
2794 (read_ascii_data): Likewise. |
|
2795 |
2495
|
2796 Sun Nov 10 16:58:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2797 |
2496
|
2798 * dirfns.cc (Ffnmatch): New function. |
|
2799 |
2495
|
2800 * octave.cc (intern_argv): Use new string_vector constructor. |
|
2801 |
|
2802 * ov-str-mat.cc (octave_char_matrix_str::all_strings): Have |
|
2803 charMatrix::row_as_string() strip trailing whitespace. |
|
2804 |
|
2805 * dirfns.cc (Fglob): new function. |
|
2806 |
|
2807 * sysdep.cc (oct_tilde_expand): Provide version that works on |
|
2808 string vectors too. |
|
2809 (Ftilde_expand): Work on string vector args. |
|
2810 |
|
2811 * load-save.cc (save_binary_data): Call char_matrix_value() to |
|
2812 extract charMatrix from octave_value object, not all_strings(). |
|
2813 (save_ascii_data): Likewise. |
|
2814 * pt-mat.cc (tree_matrix::eval): Likewise. |
|
2815 |
|
2816 * ov.h (octave_value::all_strings): Return string_vector, not |
|
2817 charMatrix. |
|
2818 * ov-base.cc (octave_base_value::all_strings): Likewise. |
|
2819 * ov-str-mat.h, ov-str-mat.cc (octave_char_matrix_str::all_strings): |
|
2820 Likewise. |
|
2821 |
2487
|
2822 Fri Nov 8 09:54:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2823 |
2492
|
2824 * defaults.cc, dynamic-ld.cc, fn-cache.cc, help.cc, oct-hist.cc, |
|
2825 octave.cc, pager.cc, pt-fcn.cc, toplev.cc, utils.cc, variables.cc, |
|
2826 lex.l: Change #include "" to #include <> for defaults.h, |
|
2827 oct-conf.h, oct-gperf.h, y.tab.h, and version.h, to avoid getting |
|
2828 them from $srcdir when we really want the version from the build |
|
2829 directory. (Maybe this should be done for all the include files, |
|
2830 not just those that are auto-generated? Hmm.) |
|
2831 |
2488
|
2832 * defaults.h.in (CXXLIB_LIST, CXXLIB_PATH, FLIB_LIST, FLIB_PATH): |
|
2833 Delete. |
|
2834 |
2487
|
2835 * Makefile.in (install-oct): Use $(INSTALL_PROGRAM) for .oct files. |
|
2836 |
2477
|
2837 Thu Nov 7 07:59:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2838 |
2487
|
2839 * variables.cc (gobble_leading_white_space): New arg, update_pos. |
|
2840 * (is_function_file): Don't update file position information here. |
|
2841 |
2482
|
2842 * Version 1.91. |
|
2843 |
2479
|
2844 * pt-fvc.cc (tree_indirect_ref::reference): If the lhs object is |
|
2845 not a map, convert it to one. |
|
2846 |
|
2847 * ov-typeinfo.h (init_tab_sz): New static member. |
|
2848 |
2477
|
2849 * ov-struct.cc, ov-struct.h: Add hooks for custom memory management. |
|
2850 * ov-scalar.cc, ov-scalar.h: Likewise. |
|
2851 * ov-re-mat.cc, ov-re-mat.h: Likewise. |
|
2852 * ov-range.cc, ov-range.h: Likewise. |
|
2853 * ov-cx-mat.cc, ov-cx-mat.h: Likewise. |
|
2854 * ov-complex.cc, ov-complex.h: Likewise. |
|
2855 * ov-ch-mat.cc, ov-ch-mat.h: Likewise. |
|
2856 |
2474
|
2857 Wed Nov 6 12:32:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2858 |
2482
|
2859 * pager.cc (do_sync): Don't call clear_external_pager() here. |
2476
|
2860 |
2475
|
2861 * pt-const.h (tree_constant::allocator) New static member. |
|
2862 (tree_constant::operator new, tree_constant::operator delete): |
|
2863 Implement with custom allocator. |
|
2864 |
|
2865 * syscalls.cc (Fgetgid, Fgetegid): New functions. |
|
2866 |
|
2867 * sighandlers.cc (sigchld_handler): If necessary, reinstall |
|
2868 handler after call to waitpid(). |
|
2869 |
|
2870 * pager.cc (pager_death_handler): Don't use warning() to print |
|
2871 message. |
|
2872 |
|
2873 * getgrent.cc: New file. |
|
2874 * Makefile.in (DLD_SRC): Add it. |
|
2875 |
|
2876 * ov.cc (octave_value::print_with_name): Call is_map() instead of |
|
2877 print_as_structure(). |
|
2878 * ov-struct.cc (octave_struct::print): Likewise. |
|
2879 |
|
2880 * ov.h, ov.cc, pt-const.h: Delete force_numeric(), make_numeric(), |
|
2881 convert_to_matrix_type(), print_as_structure() member functions. |
|
2882 |
2474
|
2883 * variables.cc (is_function_file): Call gobble_leading_whitespace |
|
2884 here to strip all leading whitespace and comments. |
|
2885 (parse_fcn_file): If reading a function file, call |
|
2886 gobble_leading_whitespace again after resetting parser state to |
|
2887 grab help text. |
|
2888 |
2469
|
2889 Tue Nov 5 13:00:35 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2890 |
2472
|
2891 * syscalls.cc (Fgeteuid, Fgetuid): New functions. |
|
2892 |
|
2893 * getpwent.cc: Use gripe_not_supported from gripes.cc, instead of |
|
2894 local gripe_not_implemented function. |
|
2895 |
2470
|
2896 * input.cc, sysdep.cc, variables.cc: Only include readline.h and |
|
2897 history.h if USE_READLINE is defined. |
|
2898 |
|
2899 * help.cc: Make it compile without warnings even if USE_GNU_INFO |
|
2900 is not defined. |
|
2901 |
2469
|
2902 * sighandlers.h (octave_child_list): Don't define |
|
2903 HAVE_POSIX_SIGNALS HERE. |
|
2904 |
|
2905 * sighandlers.cc (SIGHANDLER_RETURN): New macro. |
|
2906 (generic_sig_handler, sigchld_handler, sigfpe_handler, |
|
2907 sigint_handler, sigpipe_handler): Use it. |
|
2908 (sigchld_handler, sigfpe_handler, sigint_handler, sigpipe_handler): |
|
2909 Only reinstall signal handler if MUST_REINSTALL_SIGHANDLER is defined. |
|
2910 |
2463
|
2911 Sun Nov 3 00:45:30 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2912 |
2466
|
2913 * pt-const.cc (tree_constant::print): Just call val.print(). |
|
2914 * ov-base.cc, ov-ch-mat.cc, ov-colon.cc, ov-complex.cc, |
|
2915 ov-cx-mat.cc, ov-range.cc, ov-re-mat.cc, ov-scalar.cc, |
|
2916 ov-str-mat.cc, ov-struct.cc ov-va-args.cc, ov.cc (print): |
|
2917 Handle pr_as_read_syntax arg. |
|
2918 |
|
2919 * defaults.cc (subst_octave_home): Search for prefix repeatedly in |
|
2920 retval, not s. |
|
2921 |
|
2922 * gripes.h: Make declaration of gripes_not_supported match |
|
2923 definition. |
|
2924 |
2465
|
2925 * mk-oct-links.in: In sed command, match "DEFUN_DLD *( *", not |
|
2926 "DEFUN_DLD_BUILTIN *( *". |
|
2927 |
|
2928 * chol.cc, colloc.cc, dassl.cc, det.cc, eig.cc, expm.cc, fft.cc, |
|
2929 fft2.cc, filter.cc, find.cc, fsolve.cc, fsqp.cc, getpwent.cc, |
|
2930 getrusage.cc, givens.cc, hess.cc, ifft.cc, ifft2.cc, inv.cc, |
|
2931 log.cc, lpsolve.cc, lsode.cc, lu.cc, minmax.cc, npsol.cc, pinv.cc, |
|
2932 qpsol.cc, qr.cc, quad.cc, qzval.cc, rand.cc, schur.cc, sort.cc, |
|
2933 svd.cc, syl.cc, time.cc: Change all uses of DEFUN_DLD_BUILTIN to |
|
2934 be just DEFUN_DLD. |
|
2935 |
|
2936 * defun-dld.h: Eliminate DEFUN_DLD_BUILTIN. |
|
2937 |
2464
|
2938 * syswait.h: Use #ifdef HAVE_SYS_WAIT_H, not #if HAVE_SYS_WAIT_H |
|
2939 to decide whether to include sys/wait.h. |
|
2940 |
|
2941 * pt-exp-base.h (tree_expression): Declare oper() here as a |
|
2942 virtual member function. |
|
2943 |
2463
|
2944 * pt-pr-code.cc (tree_print_code::visit_constant): Check for |
|
2945 string before checking for char_matrix. |
|
2946 |
|
2947 * ov-ch-mat.cc (octave_char_matrix::print): Supply correct number |
|
2948 of args to octave_print_internal(). |
|
2949 |
2457
|
2950 Sat Nov 2 20:44:55 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2951 |
2458
|
2952 * file-io.cc (Ftmpnam): Rename from Foctave_temp_file_name. |
|
2953 |
2457
|
2954 * Makefile.in (DLD_SRC): Move time.cc and getrusage.cc here from |
|
2955 SOURCES. Add getpwent.cc. |
|
2956 |
|
2957 * getrusage.cc: Rename from resource.cc. Make getrusage a |
|
2958 loadable function. |
|
2959 |
|
2960 * time.cc: Rename from timefns.cc. Make time functions loadable. |
|
2961 |
|
2962 * getpwent.cc: New file. |
|
2963 |
2439
|
2964 Wed Oct 30 01:06:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2965 |
2452
|
2966 * Version 1.90. |
|
2967 |
|
2968 * Makefile.in (DISTFILES): Add ChangeLog. |
|
2969 |
2449
|
2970 * ov-range.cc (octave_range::convert_to_str): New function. |
|
2971 |
|
2972 * ov-str-mat.h (octave_char_matrix_str::char_matrix_value): |
|
2973 Delete function. Already handled by octave_char_matrix class. |
|
2974 |
|
2975 * ov-ch-mat.h (octave_char_matrix::convert_to_str): New function. |
|
2976 |
2448
|
2977 * pager.cc (Fmore): Set page_screen_output to 1.0 or 0.0, not |
|
2978 "true" or "false". |
|
2979 |
2447
|
2980 * ov-ch-mat.cc, ov-struct.cc, ov-struct.h, pr-output.cc, |
|
2981 pt-cmd.cc, pt-const.cc, pt-const.h, pt-fcn.cc, pt-fvc-base.cc, |
|
2982 pt-fvc-base.h, pt-fvc.cc, pt-fvc.h, rand.cc, sighandlers.cc, |
|
2983 variables.cc, variables.h: Delete unused code. |
|
2984 |
2445
|
2985 * octave.cc: Only include pwd.h if HAVE_PWD_H. |
|
2986 |
|
2987 * oct-strstrm.h: Include <string>, not <string.h>. |
|
2988 |
2442
|
2989 * defaults.cc, dirfns.cc, file-io.cc, help.cc, input.cc, |
|
2990 oct-hist.cc, oct-procbuf.cc, oct-procbuf.h, octave.cc, pager.h, |
|
2991 procstream.h, pt-misc.cc, pt-plot.cc, sighandlers.cc, strftime.c, |
|
2992 syscalls.cc, sysdep.cc, syswait.h, toplev.cc, utils.cc, |
|
2993 variables.cc: Only include sys/types.h if HAVE_SYS_TYPES_H. |
|
2994 |
2440
|
2995 * error.h (panic): Use GCC_ATTR_NORETURN macro, not NORETURN. |
|
2996 * toplev.h (clean_up_and_exit): Likewise. |
|
2997 * utils.h (jump_to_top_level): Likewise. |
|
2998 |
2439
|
2999 * derfaults.h.in, defaults.cc (local_arch_lib_dir): New variable. |
|
3000 * defaults.cc (set_default_local_arch_lib_dir): New function. |
|
3001 (install_defaults): Call it. |
|
3002 (exec_path): Use Vlocal_arch_lib_dir here. |
|
3003 * toplev.cc (octave_config_info): Add localarchlibdir to structure. |
|
3004 |
2436
|
3005 Tue Oct 29 15:54:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3006 |
2437
|
3007 * Makefile.in (install-oct): Don't do anything if $(OCT_FILES) is |
|
3008 empty. |
|
3009 |
2436
|
3010 * ov-range.cc (octave_range::index): New Function. |
|
3011 (octave_range::all, octave_range::any, octave_range::is_true): |
|
3012 Make these functions work. |
|
3013 |
|
3014 * ov.cc (octave_value::try_assignment_with_conversion): Remove |
|
3015 left over debugging print statements. |
|
3016 |
|
3017 Mon Oct 28 10:49:03 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3018 |
|
3019 * strftime.c: Add missing #endif for previous change. |
|
3020 |
2435
|
3021 Sun Oct 27 14:06:44 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3022 |
|
3023 * oct-hist.cc (do_history): Rewite option parsing to avoid |
|
3024 (probably bogus) errors from g++ on cygwin32 system. |
|
3025 |
|
3026 * strftime.c: Use autoconf macros TIME_WITH_SYS_TIME and |
|
3027 HAVE_SYS_TIME_H to decide which time.h files to include. |
|
3028 |
|
3029 * oct-stream.h, oct-stream.cc (octave_stream::error, |
|
3030 octave_base_stream::error): Rename errno => err_num. |
|
3031 |
2432
|
3032 Sat Oct 26 10:40:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3033 |
2434
|
3034 * oct-hist.cc (do_history): Move declaration of file inside |
|
3035 conditional. |
|
3036 |
2432
|
3037 * defun.h (DEFVAR_INT): Set eternal flag with (svc_fcn != 0) |
|
3038 instead of (sv_fcn ? 1 : 0) |
|
3039 |
2427
|
3040 Fri Oct 25 01:10:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3041 |
2431
|
3042 * ov-ch-mat.h (octave_char_matrix::any): Return 0.0 instead of false. |
|
3043 (octave_char_matrix::all): Likewise. |
|
3044 |
|
3045 * input.cc (Fecho): When binding value of echo_executing_commands, |
|
3046 cast ECHO_* to double. |
|
3047 |
|
3048 * sighandlers.cc (octave_child_list::do_remove): Delete unused |
|
3049 variable `enlarge'. |
|
3050 |
|
3051 * pt-const.h (tree_constant::tree_constant (const tree_constant&)): |
|
3052 Don't pass arg to tree_fvc constructor. |
|
3053 |
2427
|
3054 * resource.cc (getrusage): [HAVE_GETRUSAGE && RUSAGE_TIMES_ONLY]: |
|
3055 Only fill in time values. |
|
3056 |
|
3057 Thu Oct 24 20:37:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3058 |
|
3059 * parse.y: Comment out the %expect declaration so byacc can |
|
3060 compile this file. |
|
3061 (if_cmd_list): Add missing semicolon. |
|
3062 Include <cstdlib> for getenv if using byacc. |
|
3063 |
|
3064 * ov.h: Move typedefs outside of octave_value class scope to avoid |
|
3065 problem with cygwin32 beta16 compiler. |
|
3066 |
2421
|
3067 Fri Oct 18 13:44:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3068 |
2423
|
3069 * ov.h (octave_value::index): Undo previous change. |
|
3070 * ov.cc (octave_value constructors): Call maybe_mutate() in most |
|
3071 cases. |
|
3072 |
|
3073 * ov-complex.cc (octave_complex::index): Avoid implicit type |
|
3074 conversion back to scalar type. |
|
3075 * ov-scalar.cc (octave_scalar::index): Likewise. |
|
3076 |
2421
|
3077 * ov.h (octave_value::index): Call maybe_mutate() on retval before |
|
3078 returning it. |
|
3079 |
2418
|
3080 Wed Oct 16 12:00:11 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3081 |
2420
|
3082 * ov.h (octave_value::struct_elt_val): New optional arg, silent. |
|
3083 * ov-base.h, ov-base.cc, ov-struct.h, ov-struct.cc: Likewise, but |
|
3084 for the derived classes the arg is required. |
|
3085 |
|
3086 * data.cc (Fstruct_contains): Require arguments to be struct and |
|
3087 string, respectively. Call octave_value::struct_elt_val with |
|
3088 silent flag set. |
|
3089 |
2419
|
3090 * pt-mat.cc (tm_row_const::tm_row_const_rep::eval_error, |
|
3091 tm_row_const::tm_row_const_rep::eval_warning): New functions. |
|
3092 (tm_row_const::tm_row_const (const tree_matrix_row&): Use them to |
|
3093 give better error messages. |
|
3094 |
2418
|
3095 * pt-fvc.cc (tree_identifier::eval): Avoid dereferencing null |
|
3096 object_to_eval. |
|
3097 |
2412
|
3098 Tue Oct 15 11:35:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3099 |
|
3100 * op-cs-cm.cc, op-cs-cs.cc, op-cs-m.cc, op-cs-s.cc |
|
3101 (complex_matrix_conv): New functions. |
|
3102 Install preferred assignment conversion and widening ops. |
|
3103 |
|
3104 * op-s-cm.cc, op-s-cs.cc (complex_matrix_conv): New functions. |
|
3105 Install preferred assignment conversion and widening ops. |
|
3106 |
|
3107 * op-s-m.cc, op-s-s.cc (matrix_conv): New functions. |
|
3108 Install preferred assignment conversion and widening ops. |
|
3109 |
|
3110 * ov.cc (octave_value::try_assignment_with_conversion, |
|
3111 octave_value::convert_and_assign, octave_value::try_assignment): |
|
3112 New functions. |
|
3113 (octave_value::assign): Use them to implement twisted logic for |
|
3114 type conversions in assigments. |
|
3115 |
|
3116 * pt-const.h (tree_constant::maybe_mutate): New function. |
|
3117 * ov.h (octave_value::maybe_mutate): New function. |
|
3118 (octave_value::try_narrowing_conversion): New function. |
|
3119 Use just one typedef for widening_op_fcn and numeric_conv_fcn. |
|
3120 Change all uses. |
|
3121 * ov-base.h, ov-complex.h, ov-complex.cc, ov-cx-mat.h, |
|
3122 ov-cx-mat.cc, ov-range.h, ov-range.cc, ov-re-mat.h, ov-re-mat.cc, |
|
3123 Provide derived class versions of try try_narrowing_conversion(). |
|
3124 |
|
3125 * pr-output.cc (octave_print_internal): Don't bother handing off |
|
3126 to scalar/real versions, even when it would seem appropriate. |
|
3127 |
|
3128 * symtab.cc (symbol_def::define (tree_constant *)): Call |
|
3129 maybe_mutate on constants here. |
|
3130 |
2405
|
3131 Mon Oct 14 11:05:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3132 |
2407
|
3133 * pt-fvc.cc (tree_identifier::eval): If retval is undefined and |
|
3134 the object to eval is a constant, print error message. |
2406
|
3135 |
2405
|
3136 * Makefile (distclean): Remove *.oct too. |
|
3137 |
|
3138 * defun-int.h: Include variables.h here. |
|
3139 |
2403
|
3140 Sun Oct 13 10:52:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3141 |
2404
|
3142 * variables.cc (print_symbol_info_line): Never print negative |
|
3143 diminsions. |
|
3144 |
|
3145 * symtab.h (octave_symbol_record_info): Store const_type as string. |
|
3146 (octave_symbol_record_info::init): Delete. Fix constructors. |
|
3147 (octave_symbol_record_info::type_name): Handle const_type as string. |
|
3148 |
2403
|
3149 * octave.cc (maximum_braindamage): Replace "true" with 1.0 and |
|
3150 "false" with 0.0 in calls to bind_builtin_variable(). |
|
3151 Include sun-utils.h here. |
2404
|
3152 (intern_argv): Also bind __argv__. |
2403
|
3153 |
2391
|
3154 Sat Oct 12 13:40:21 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3155 |
2399
|
3156 * Makefile.in (distclean): Also delete mk-oct-links. |
|
3157 |
|
3158 Fri Oct 11 13:13:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3159 |
2391
|
3160 Changes for Octave's new type system: |
|
3161 |
|
3162 * arith-ops.cc: Delete. |
|
3163 * pt-const.h, pt-const.cc: Massive changes. Most functionality |
|
3164 moved to ov.h, ov.cc, and derived classes. |
|
3165 |
|
3166 * variables.h, variables.cc (octave_variable_reference): New class |
|
3167 for getting references to variables and structure elements used in |
|
3168 assignments or value contexts. |
|
3169 |
|
3170 * symtab.h, symtab.cc (symbol_record::define (const octave_value&), |
|
3171 symbol_record::variable_value, symbol_record::variable_reference): |
|
3172 New functions. |
|
3173 (symbol_record_info::type_name): Rename from type_as_string. |
|
3174 |
|
3175 * pt-fvc-base.h, pt-fvc-base.cc (tree_fvc::increment, |
|
3176 tree_fvc::decrement): New functions to replace |
|
3177 tree_fvc::bump_value. |
|
3178 #if 0 assign and lookup_map_element functions. |
|
3179 |
|
3180 * pt-mvr.cc (tree_multi_assignment_expression::eval): |
|
3181 Generated RHS value is now a tree_constant. |
|
3182 |
|
3183 * pt-exp.h, pt-exp.cc (tree_boolean_expression): New class. |
|
3184 (tree_unary_expression, tree_binary_expression, |
|
3185 tree_boolean_expression): Move codes here from tree_expression. |
|
3186 (tree_simple_assignment_expression): Cope with changes to way of |
|
3187 doing assignments. |
|
3188 |
|
3189 * pt-exp-base.h, pt-exp-base.cc (enum type): Delete codes for |
|
3190 unary and binary ops. |
|
3191 (tree_expression::expression_type): Delete. |
|
3192 (tree_expression::is_logically_true): Hand off to |
|
3193 octave_value::is_true to do real work. |
|
3194 |
|
3195 * pr-output.h, pr-output.cc (any_element_is_inf_or_nan, |
|
3196 all_elements_are_ints): Delete. Call member new functions for |
|
3197 these operations. |
|
3198 (free_format, plus_format, bank_format, hex_format, |
|
3199 compact_format, print_e, print_big_e): Use bool, not int. |
|
3200 (octave_print_internal): Hand off to scalar/real versions when |
|
3201 appropriate. |
|
3202 |
|
3203 * octave.cc (main): Call initialize_types() and install_ops(). |
|
3204 (verbose_usage): Add WWW address to output. |
|
3205 |
|
3206 * parse.y (indirect_ref): Handle by making a tree instead of a |
|
3207 list using new version of tree_indirect_ref class. |
|
3208 |
|
3209 * parse.y (make_boolean_op): New function. Use it instead of |
|
3210 make_binary_op to create trees for && and || ops. |
|
3211 (make_binary_op): Codes come from tree_binary_expression now, |
|
3212 instead of tree_expression. |
|
3213 (make_unary_op): Codes come from tree_unary_expression now, |
|
3214 instead of tree_expression. |
|
3215 (make_boolean_op): Codes come from tree_boolean_expression. |
|
3216 |
|
3217 *parse.y (tree_constant_type): Change type to tree_constant* from |
|
3218 octave_value*, and rename from octave_value_type. Change uses. |
|
3219 |
|
3220 * defun.h (DEFVAR_INT): Pass octave_value not pointer to |
|
3221 octave_value for defn when creating builtin_variable. |
|
3222 |
|
3223 * gripes.h, gripes.cc (gripe_invalid_conversion): Args are |
|
3224 strings, not char*. |
|
3225 (gripe_implicit_conversion, gripe_divide_by_zero): New extern |
|
3226 gripe functions. |
|
3227 |
|
3228 * mkbuiltins: For each file, create a separate static function to |
|
3229 install builtins, then create another single extern function to |
|
3230 call all of them. |
|
3231 |
|
3232 * pt-fcn.cc (tree_function::bind_nargin_and_nargout): |
|
3233 Just pass doubles and let symbol_record::define handle creating |
|
3234 new value. |
|
3235 |
|
3236 * pt-pr-code.cc, pt-pr-code.h (visit_constant): Renamed from |
|
3237 visit_octave_value. |
|
3238 (visit_unary_expression): Use tree_expression::is_prefix_op() |
|
3239 instead of switch on op types. |
|
3240 |
|
3241 * pt-walk.h (visit_constant): Renamed from visit_octave_value. |
|
3242 |
|
3243 * pt-misc.cc (initialize_undefined_elements): Get reference to |
|
3244 tmp, then assign. |
|
3245 * pt-cmd.cc (do_for_loop_once): Likewise, for loop identifier. |
|
3246 |
|
3247 * input.cc (generate_struct_completions, looks_like_struct): Cast |
|
3248 tmp_fvc to tree_constant*, not octave_value*. |
|
3249 (get_user_input): Call print() on retval, not eval(1). |
|
3250 |
|
3251 * help.cc (Ftype): Cast defn to tree_constant*, not octave_value*. |
|
3252 |
|
3253 * balance.cc: Fix docstring. |
|
3254 |
|
3255 * dassl.cc, fsolve.cc, load-save.cc, lsode.cc, npsol.cc, qpsol.cc, |
|
3256 quad.cc: |
|
3257 Include pt-fvc.h. |
|
3258 |
|
3259 * data.cc (Fstruct_contains): call octave_value::struct_elt_val, |
|
3260 not octave_value::lookup_map_element. |
|
3261 |
|
3262 * dirfns.cc (Fcd): Pass directory name as string directly to |
|
3263 bind_builtin_variable instead of creating new octave_value. |
|
3264 |
|
3265 * toplev.cc: Include pt-fvc.h and lo-mappers.h |
|
3266 |
|
3267 * data.cc, error.cc, file-io.cc, load-save.cc, pager.cc, |
|
3268 pt-mat.cc, pt-plot.cc, syscalls.cc, toplev.cc: |
|
3269 Include variables.h. |
|
3270 |
|
3271 * Array-tc.cc, Map-tc.cc, SLList-misc.cc SLList-tc.cc, data.cc, |
|
3272 defaults.cc, dynamic-ld.cc, error.cc, gripes.cc, lex.l, octave.cc, |
|
3273 oct-map.h, oct-map.cc, oct-obj.h, pt-cmd.cc, pt-exp.cc, pt-fcn.cc, |
|
3274 pt-fvc-base.cc, pt-mat.cc, pt-misc.cc, pt-mvr-base.cc, pt-mvr.h, |
|
3275 resource.cc, strfns.cc, sysdep.cc, timefns.cc, toplev.cc: |
|
3276 Include ov.h instead of pt-const.h. |
|
3277 |
|
3278 * xpow.cc (any_element_is_negative): Delete. |
|
3279 (xpow and elem_xpow functions): Check conformance here. |
|
3280 |
|
3281 * xdiv.cc (mx_leftdiv_conform, mx_div_conform): |
|
3282 Now template-based, taking Matrices instead of dimensions as args. |
|
3283 Change all callers. |
|
3284 |
|
3285 * op-cm-cm.cc, op-cm-cm.h, op-cm-cs.cc, op-cm-cs.h, op-cm-m.cc, |
|
3286 op-cm-m.h, op-cm-s.cc, op-cm-s.h, op-cs-cm.cc, op-cs-cm.h, |
|
3287 op-cs-cs.cc, op-cs-cs.h, op-cs-m.cc, op-cs-m.h, op-cs-s.cc, |
|
3288 op-cs-s.h, op-m-cm.cc, op-m-cm.h, op-m-cs.cc, op-m-cs.h, op-m-m.cc, |
|
3289 op-m-m.h, op-m-s.cc, op-m-s.h, op-s-cm.cc, op-s-cm.h, op-s-cs.cc, |
|
3290 op-s-cs.h, op-s-m.cc, op-s-m.h, op-s-s.cc, op-s-s.h, |
|
3291 op-str-str.cc, op-str-str.h, ops.cc, ops.h, ov-base.cc, ov-base.h, |
|
3292 ov-ch-mat.cc, ov-ch-mat.h, ov-colon.cc, ov-colon.h, ov-complex.cc, |
|
3293 ov-complex.h, ov-cx-mat.cc, ov-cx-mat.h, ov-range.cc, ov-range.h, |
|
3294 ov-re-mat.cc, ov-re-mat.h, ov-scalar.cc, ov-scalar.h, ov-str-mat.cc, |
|
3295 ov-str-mat.h, ov-struct.cc, ov-struct.h, ov-typeinfo.cc, |
|
3296 ov-typeinfo.h, ov-va-args.cc, ov-va-args.h, ov.cc, ov.h: |
|
3297 New files for Octave's new type system. |
|
3298 * Makefile.in: Add them to the appropriate lists. |
|
3299 |
|
3300 Sat Sep 14 21:58:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3301 |
|
3302 * mkbuiltins: Use .df instead of .def. |
|
3303 Write one function for each .df file, then call them |
|
3304 all in install_builtin_functions(). |
|
3305 * Makefile.in: Handle .df instead of .def. |
|
3306 |
|
3307 * balance.cc (balance): Fix typo in doc string. |
|
3308 |
|
3309 Wed Aug 28 21:01:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3310 |
|
3311 * octave.cc (verbose_usage): Include WWW address and bug-octave |
|
3312 mailing list address. |
|
3313 |
2354
|
3314 Tue Aug 20 17:41:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3315 |
2358
|
3316 * Makefile.in: Only define pattern rules for making .oct files if |
|
3317 OCTAVE_LITE is true. |
|
3318 Only add pic/ to $(TI_OBJ) if $(SHARED_LIBS) is true. |
|
3319 (stamp-picdir): Only create a pic subdirectory if SHARED_LIBS or |
|
3320 OCTAVE_LITE is true AND CPICFLAG or CXXPICFLAG is not empty. |
|
3321 |
2354
|
3322 * minmax.cc (Fmin, Fmax): Deal with changes to Matrix class |
|
3323 min/max methods. |
|
3324 |
2345
|
3325 Thu Jul 25 01:42:38 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3326 |
2348
|
3327 * input.cc (generate_possible_completions): Force the names to be |
|
3328 unique. |
|
3329 |
2345
|
3330 * load-save.cc (read_mat_binary_data): Expect to read terminating |
|
3331 NUL character in the variable name. |
|
3332 (save_mat_binary_data): Likewise, save it here. |
|
3333 |
2341
|
3334 Wed Jul 24 05:08:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3335 |
2343
|
3336 * lsode.cc (Flsode): Don't set the return value if an error |
|
3337 occurred during integration. |
2344
|
3338 * dassl.cc (Fdassl): Likewise. |
2343
|
3339 |
2341
|
3340 * file-io.cc (symbols_of_file_io): Redefine values of SEEK_SET, |
|
3341 SEEK_CUR, and SEEK_END for Matlab compatibility. |
|
3342 * oct-stream.cc (seek): Check for compatible values of ORIGIN arg. |
|
3343 Also handle "bof", "cof", and "eof". |
|
3344 |
2338
|
3345 Fri Jul 19 15:24:36 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3346 |
|
3347 * pt-const.cc: When creating octave_value_reps from ComplexMatrix |
|
3348 values, check to see if all the elements are actually real. |
|
3349 |
2330
|
3350 Tue Jul 16 10:53:42 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3351 |
2341
|
3352 * input.cc (decode_prompt_string): Swap meanings of \h and \H. |
2330
|
3353 |
|
3354 Mon Jul 15 16:01:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3355 |
|
3356 * toplev.cc (run_command_and_return_output): Renamed from do_system. |
|
3357 (Fsystem): Make `system ("emacs")' work as one would expect. |
|
3358 |
|
3359 Sun Jul 14 17:34:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3360 |
|
3361 * file-io.cc (Ffopen, Ffread, Ffwrite): Update doc strings, |
|
3362 correctly handle default architecture and precision args. |
|
3363 |
|
3364 * load-save.cc (mopt_digit_to_float_format): Rename from |
|
3365 get_floating_point_format. |
|
3366 (float_format_to_mopt_digit): New function. |
|
3367 |
|
3368 * oct-stream.cc (octave_base_stream::read, octave_base_stream::write): |
|
3369 Simplify by calling Matrix::read and Matrix::write to do real work |
|
3370 of reading, writing, and format conversion. |
|
3371 |
|
3372 * oct-stream.h (octave_base_stream): Move data_type enum to |
|
3373 liboctave/data-conv.h. Use float_format from |
|
3374 liboctave/mach-info.h instead of arch_type enum. |
|
3375 |
|
3376 * sysdep.h, sysdep.cc (octave_words_big_endian, ten_little_endians): |
|
3377 Delete. Now part of oct_mach_info class in liboctave. |
|
3378 |
|
3379 Tue Jul 9 11:18:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3380 |
|
3381 * arith-ops.cc, balance.cc, dassl.cc, data.cc, filter.cc, find.cc, |
|
3382 fsolve.cc, load-save.cc, log.cc, lsode.cc, minmax.cc, npsol.cc, |
|
3383 oct-obj.cc, oct-stream.cc, pr-output.cc, pt-cmd.cc, pt-const.cc, |
|
3384 pt-fvc.cc, pt-plot.cc, quad.cc, rand.cc, sighandlers.cc, sort.cc, |
|
3385 syscalls.cc, unwind-prot.cc, xdiv.cc, xpow.cc: |
|
3386 When indexing arrays, use operator() instead of elem() so that |
|
3387 bounds checking can be done consistently. |
|
3388 |
|
3389 Mon Jun 24 02:13:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3390 |
|
3391 * Makefile.in (install-oct): Use INSTALL_PROGRAM, instead of |
|
3392 INSTALL_DATA for installing shared libraries. |
|
3393 |
|
3394 * lex.l (grab_help_text): Ignore all initial comment characters, |
|
3395 not just the first. |
|
3396 * variables.cc (gobble_leading_white_space): Likewise. |
|
3397 |
|
3398 Sat Jun 22 22:43:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3399 |
|
3400 * input.h, input.cc (octave_completion_matches_called): New varaible. |
|
3401 (Fcompletion_matches): Set it to true on a successful call. |
|
3402 * toplev.cc (main_loop): If octave_completion_matches_called is |
|
3403 true, don't increment current_command_number. |
|
3404 |
|
3405 Thu Jun 13 03:52:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3406 |
|
3407 * variables.cc (is_mapper_function_name, |
|
3408 is_builtin_function_name): New functions. |
|
3409 (Fdocument): Use them. |
|
3410 Define as regular function, not a text style function. |
|
3411 |
|
3412 Thu Jun 6 00:09:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3413 |
|
3414 * pt-plot.cc: Handle new built-in variable `gnuplot_has_frames'. |
|
3415 |
|
3416 Wed Jun 5 14:45:04 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3417 |
|
3418 * input.cc (decode_prompt_string): \h now means the whole host |
|
3419 name and \H is the host name up to the first `.'. |
|
3420 |
|
3421 Thu May 30 23:41:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3422 |
|
3423 * fn-cache.cc (octave_fcn_file_name_cache::do_list): Always |
|
3424 recompute the lists of function files instead of trying to cache |
|
3425 them. |
|
3426 |
|
3427 Tue May 28 12:05:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3428 |
|
3429 * utils.cc (warn_old_style_preference): New function. |
|
3430 (check_preference): Use it. |
|
3431 |
|
3432 * fn-cache.h: Include <ctime> here. |
|
3433 |
|
3434 Fri May 24 00:57:14 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3435 |
|
3436 * input.cc (completion_matches): Don't return empty string_vectors. |
|
3437 |
|
3438 * octave.cc (long_opts): Add braindead. |
|
3439 |
|
3440 Thu May 23 01:49:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3441 |
|
3442 * input.cc (gnu_readline): New optional arg, force_readline. |
|
3443 (get_user_input): Use it. |
|
3444 |
|
3445 * pt-const.cc (OCT_VAL_REP::assign): If converting the rhs to a |
|
3446 numeric value, convert a copy, not the actual object. |
|
3447 (OCT_VAL_REP::do_index): Prevent s([]) from resulting in a string |
|
3448 with zero rows. |
|
3449 |
|
3450 * mappers.cc: Handle toascii here. |
|
3451 * strfns.cc: Not here. |
|
3452 |
|
3453 * mappers.cc: Handle tolower and toupper here. |
|
3454 * mappers.h: Rename can_return_complex_for_real to flag and |
|
3455 overload meaning for ch_mapper. |
|
3456 * pt-fvc.cc (apply_mapper_fcn): Handle overloaded meaning. |
|
3457 |
|
3458 * syscalls.cc (stat): Return 3 values instead of just 1. |
|
3459 (lstat): Likewise. |
|
3460 |
|
3461 Wed May 22 02:34:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3462 |
|
3463 * pt-const.cc (OCT_VAL_REP::make_numeric): For string to number |
|
3464 conversions, correctly set type tag before calling force_numeric. |
|
3465 (do_binary_op): Force string to number conversion if both args are |
|
3466 strings and we are doing some sort of comparison operation. |
|
3467 |
|
3468 * Makefile.in (stamp-tinst, stamp-interp): Use SH_TERMLIBS and |
|
3469 SH_LIBS instead of TERMLIBS and LIBS. |
|
3470 |
|
3471 * pt-const.cc (do_unary_op): Add special case to handle |
|
3472 transposing strings. |
|
3473 |
|
3474 * pt-mat.cc (Vstring_fill_char): New variable. |
|
3475 (symbols_of_pt_mat): DEFVAR it. |
|
3476 |
|
3477 * input.cc (generate_struct_completions, |
|
3478 generate_possible_completions): Return string_vector, not char **. |
|
3479 Change all callers. |
|
3480 |
|
3481 * pt-const.cc (lookup_map_element): Use substr() correctly. |
|
3482 |
|
3483 Tue May 21 21:37:17 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3484 |
|
3485 * oct.h: New file. |
|
3486 * Makefile.in (INCLUDES): Add it to the list. |
|
3487 |
|
3488 * octave.cc: New args --no-site-file and --no-init-file. Delete |
|
3489 --ignore-init-file. The flag --norc (-f) implies both |
|
3490 --no-site-file and --no-init-file. |
|
3491 |
|
3492 Fri May 17 01:54:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3493 |
|
3494 * input.cc (Fcompletion_matches): New function. |
|
3495 |
|
3496 * utils.cc (get_fcn_file_names): Delete. |
|
3497 * help.cc (simple_help): Use new file name cache instead of |
|
3498 calling get_fcn_file_names. |
|
3499 * variables.cc (make_name_list): Likewise. |
|
3500 |
|
3501 * fn-cache.h, fn-cache.cc, Map-fnc.cc: New files. |
|
3502 * Makefile.in: Add them to the lists. |
|
3503 |
|
3504 * Makefile.in (uninstall): Install in octincludedir, not includedir. |
|
3505 |
|
3506 * pt-plot.h: Include <csignal> here. |
|
3507 |
|
3508 Thu May 16 10:52:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3509 |
|
3510 * oct-stream.cc (octave_stream::oscanf, octave_base_stream::oscanf, |
|
3511 octave_base_stream::do_oscanf): New functions for backward |
|
3512 compatibility with older versions of Octave. |
|
3513 (scanf_format_elt, scanf_format_list): Keep track of width specifier. |
|
3514 * file-io.cc (Fscanf): New function. |
|
3515 (Fscanf, Ffscanf, Fsscanf): Handle compatibility arg. |
|
3516 |
|
3517 Wed May 15 01:00:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3518 |
|
3519 * oct-stream.cc (do_scanf): If doing '%c' conversion, unset |
|
3520 ios::skipws on input stream. |
|
3521 |
|
3522 * sighandlers.h, sighandlers.cc (octave_child, octave_child_list): |
|
3523 New classes for keeping track of the child processes we create. |
|
3524 (sigchld_handler): Check in octave_child_list to see if there is |
|
3525 anything we can do for the child that died. |
|
3526 * pager.cc: Register child pager process. |
|
3527 * pt-plot.cc: Likewise, for the plotter. |
|
3528 * Array-oc.cc: New file |
|
3529 * Makefile.in (TI_SRC): Add it to the list. |
|
3530 |
|
3531 * pager.cc (do_sync): Don't check error_state. |
|
3532 (flushing_output_to_pager): New static variable. |
|
3533 (flush_octave_stdout): Use it to avoid doing anything if already |
|
3534 flushing output. |
|
3535 |
|
3536 * sighandlers.cc (sigchld_handler): Call warning instead of |
|
3537 writing directly to cerr. |
|
3538 (sigpipe_handler): Call warning instead of message. |
|
3539 |
|
3540 * octave.cc (main): Call install_signal_handlers, |
|
3541 initialize_file_io, initialize_symbol_tables, and install_builtins |
|
3542 before parsing command line options. |
|
3543 |
|
3544 * user-prefs.h, user-prefs.cc: Delete. |
|
3545 |
|
3546 * utils.cc (check_preference): Move here. |
|
3547 * user-prefs.cc: From here. |
|
3548 |
|
3549 * defaults.cc: New file. Move initialization stuff from |
|
3550 variables.cc. Move DEFVARS for EDITOR, EXEC_PATH, LOADPATH, |
|
3551 IMAGEPATH, and OCTAVE_VERSION here. |
|
3552 |
|
3553 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
3554 INFO_FILE and INFO_PROGRAM. |
|
3555 * help.cc: Move all of that here. |
|
3556 (symbols_of_help): Add DEFVARS for INFO_FILE and INFO_PROGRAM. |
|
3557 |
|
3558 Tue May 14 00:23:06 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3559 |
|
3560 * pager.cc (do_sync): Be more defensive about sending stuff to the |
|
3561 external pager. |
|
3562 * sighandlers.cc (sigchld_handler): For now, only wait for |
|
3563 octave_pager_pid. Don't call error(). Do set octave_pager_pid to |
|
3564 -1 if the pager process no longer exists. |
|
3565 |
|
3566 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
3567 PWD. |
|
3568 * dirfns.cc: Move all of that here. |
|
3569 (symbols_of_dirfns): New function. |
|
3570 * variables.cc (install_builtin_variables): Call it. |
|
3571 |
|
3572 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
3573 default_save_format and save_precision. |
|
3574 * load-save.cc: Move all of that here. |
|
3575 (symbols_of_load_save): New function. |
|
3576 * variables.cc (install_builtin_variables): Call it. |
|
3577 |
|
3578 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
3579 warn_divide_by_zero. |
|
3580 * arith-ops.cc: Move all of that here. |
|
3581 (symbols_of_arith_ops): New function. |
|
3582 * variables.cc (install_builtin_variables): Call it. |
|
3583 |
|
3584 * mappers.cc: Add wrappers for ctype is* functions so that they |
|
3585 will work on systems that only define them as macros. |
|
3586 |
|
3587 Mon May 13 00:27:08 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3588 |
|
3589 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
3590 suppress_verbose_help_message. |
|
3591 * help.cc: Move all of that here. |
|
3592 (symbols_of_help): New function. |
|
3593 * variables.cc (install_builtin_variables): Call it. |
|
3594 |
|
3595 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
3596 treat_neg_dim_as_zero. |
|
3597 * pt-const.cc: Move all of that here. |
|
3598 |
|
3599 * pager.cc (octave_pager_stream::do_sync): Don't return early if |
|
3600 not interactive. |
|
3601 |
|
3602 * data.h: New file. |
|
3603 * Makefile.in (INCLUDES): Add it to the list. |
|
3604 * data.cc (symbols_of_data): New function. Move definition of I, |
|
3605 Inf, J, NaN, e, eps, i, inf, j, nan, pi, realmin, and realmax here. |
|
3606 * variables.cc: From here. |
|
3607 (install_builtin_variables): Call symbols_of_data. |
|
3608 |
|
3609 * file-io.cc (symbols_of_file_io): New function. Move definition |
|
3610 of SEEK_CUR, SEEK_END, SEEK_SET, stdin, stdout, stderr here. |
|
3611 * variables.cc: From here. |
|
3612 (install_builtin_variables): Call symbols_of_file_io. |
|
3613 |
|
3614 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
3615 do_fortran_indexing, implicit_str_to_num_ok, |
|
3616 ok_to_lose_imaginary_part, prefer_column_vectors, |
|
3617 prefer_zero_one_indexing, print_answer_id_name, |
|
3618 propagate_empty_matrices, resize_on_range_error, and |
|
3619 struct_levels_to_print. |
|
3620 * pt-const.cc: Move all of that here. |
|
3621 (symbols_of_pt_const): New function. |
|
3622 * variables.cc (install_builtin_variables): Call it. |
|
3623 * pt-fvc.cc (tree_identifier::assign): Use Vresize_on_range_error |
|
3624 instead of user_pref.resize_on_range_error here. |
|
3625 * load-save.cc (save_mat_binary_data): Use Vimplicit_str_to_num_ok |
|
3626 instead of user_pref.implicit_str_to_num_ok here. |
|
3627 * utils.cc (empty_arg): Use Vpropagate_empty_matrices instead of |
|
3628 user_pref.propagate_empty_matrices here. |
|
3629 * pt-exp-base.cc (tree_expression::is_logically_true): Likewise.. |
|
3630 |
|
3631 * pt-fcn.cc (symbols_of_pt_fcn): Also move DEFVAR for |
|
3632 default_return_value here. |
|
3633 |
|
3634 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
3635 ps1, ps2, ps4, and completion_append_char. |
|
3636 * input.cc: Move all of that here. |
|
3637 (symbols_of_input): New function. |
|
3638 * variables.cc (install_builtin_variables): Call it. |
|
3639 * pt-pr-code.cc (indent): Use Vps4 instead of user_pref.ps4 here. |
|
3640 * help.cc (Ftype): Also here. |
|
3641 |
|
3642 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
3643 automatic_replot, gnuplot_binary, and gnuplot_has_multiplot. |
|
3644 * pt-plot.cc: Move all of that here. |
|
3645 (symbols_of_pt_plot): New function. |
|
3646 * variables.cc (install_builtin_variables): Call it. |
|
3647 |
|
3648 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
3649 beep_on_error. |
|
3650 * error.cc: Move all of that here. |
|
3651 (symbols_of_error): New function. |
|
3652 * variables.cc (install_builtin_variables): Call it. |
|
3653 |
|
3654 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
3655 empty_list_elements_ok. |
|
3656 * pt-mat.cc: Move all of that here. |
|
3657 (symbols_of_pt_mat): New function. |
|
3658 * variables.cc (install_builtin_variables): Call it. |
|
3659 |
|
3660 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
3661 define_all_return_values, return_last_computed_value, and |
|
3662 silent_functions. |
|
3663 * pt-fcn.cc: Move all of that here. |
|
3664 (symbols_of_pt_fcn): New function. |
|
3665 * variables.cc (install_builtin_variables): Call it. |
|
3666 |
|
3667 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
3668 whitespace_in_literal_matrix. |
|
3669 * lex.l: Move all of that here. |
|
3670 (symbols_of_lex): New function. |
|
3671 * variables.cc (install_builtin_variables): Call it. |
|
3672 |
|
3673 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
3674 warn_assign_as_truth_value, warn_comma_in_global_decl, |
|
3675 warn_function_name_clash, and warn_missing_semicolon. |
|
3676 * parse.y: Move all of that here. |
|
3677 (symbols_of_parse): New function. |
|
3678 * variables.cc (install_builtin_variables): Call it. |
|
3679 |
|
3680 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
3681 output_precision, output_max_field_width, print_empty_dimensions, |
|
3682 and split_long_rows. |
|
3683 * pr-output.cc: Move all of that here. |
|
3684 (symbols_of_pr_output): New function. |
|
3685 * variables.cc (install_builtin_variables): Call it. |
|
3686 |
|
3687 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
3688 page_screen_output, page_output_immediately, and pager_binary. |
|
3689 * pager.cc: Move all of that here. |
|
3690 |
|
3691 * user-prefs.h (check_preference): Provide declaration. |
|
3692 * user-prefs.cc (check_preference): Make external. |
|
3693 |
|
3694 * toplev.cc (Foctave_config_info): New function. |
|
3695 |
|
3696 * oct-conf.h.in: New file |
|
3697 * Makefile.in (oct-conf.h): New target. |
|
3698 Add it to the appropriate lists. |
|
3699 |
|
3700 * sighandlers.cc (sigchld_handler): Don't complain about wait |
|
3701 returning a negative value. |
|
3702 |
|
3703 * file-io.cc (Fsscanf, Fsprintf): Pass true for second arg of |
|
3704 octave_stream constructor. |
|
3705 |
|
3706 * oct-stream.h (octave_stream): New field, preserve. |
|
3707 (octave_stream::~octave_stream): If preserve, don't delete rep. |
|
3708 |
|
3709 * pager.cc (symbols_of_pager): Set default for |
|
3710 page_output_immediately to 0. |
|
3711 |
|
3712 * toplev.cc (do_system): Correctly handle return_output. |
|
3713 Append ends to output_buf before calling str(). |
|
3714 |
|
3715 * variables.cc: If M_PI and M_E are available, use them. |
|
3716 |
|
3717 * mk-oct-links.in (links_dir): If old link exists, delete it first. |
|
3718 |
|
3719 Sun May 12 01:46:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3720 |
|
3721 * Makefile.in (DISTFILES): List defaults.h.in and oct-gperf.h here. |
|
3722 (INCLUDES): Not here. |
|
3723 (install-inc): New target. |
|
3724 (uninstall): Also delete libraries and include files. |
|
3725 (install-inc): If linkdir is a directory, leave it alone. |
|
3726 (TERMLIBS, LIBPLPLOT, LIBDLFCN): Don't substitute here (now in |
|
3727 Makeconf). |
|
3728 |
|
3729 * oct-stream.cc (octave_base_stream::do_read): Provide initial |
|
3730 value for tmp var. |
|
3731 |
|
3732 * pt-walk.h, pt-pr-code.h, pt-pr-code.cc: New tree-walking classes. |
|
3733 * Makefile.in: Add them to the appropriate lists. |
|
3734 * pt-fvc-base.h, pt-exp-base.cc, pt-fvc-base.cc, pt-mvr-base.cc, |
|
3735 pt-base.cc, pt-mvr.cc, pt-mat.h, pt-mat.cc, pt-fvc.cc, |
|
3736 pt-const.cc, pt-cmd.cc, pt-const.h, pt-misc.cc, pt-plot.cc, |
|
3737 pt-fcn.cc, pt-plot.h, pt-mvr.h, pt-mvr-base.h, pt-misc.h, |
|
3738 pt-fcn.h, pt-exp.h, pt-exp.cc, pt-exp-base.h, pt-fvc.h, pt-cmd.h, |
|
3739 pt-base.h: |
|
3740 Replace print_code stuff with accept() functions. |
|
3741 Add member access functions where necessary. |
|
3742 * help.cc (Ftype): Update to use new method of walking trees to |
|
3743 print text representation of user-defined functions. |
|
3744 |
|
3745 * file-io.cc (Ffscanf): Update doc string. |
|
3746 (Fsscanf): Likewise. |
|
3747 |
|
3748 * oct-stream.cc (octave_base_stream::do_read): Correctly set max_size. |
|
3749 Pad mval with zeros on final resize. |
|
3750 (octave_base_stream::do_scanf): Likewise. |
|
3751 (do_scanf_conv): Correctly resize mval. |
|
3752 |
|
3753 Sat May 11 05:14:09 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3754 |
|
3755 * pager.cc (octave_pager_buf::sync): Correctly set bypass_pager. |
|
3756 |
|
3757 * lex.l (<MATRIX>{SNLCMT}*\]{S}*): Match SNLCMT, not just SNL. |
|
3758 |
|
3759 Fri May 3 11:05:30 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3760 |
|
3761 * pt-const.cc (OCT_VAL_REP::set_index): Complain if type can't be |
|
3762 indexed. |
|
3763 |
|
3764 * input.cc (get_user_input): Don't increment input line number if |
|
3765 input is coming from eval string. |
|
3766 |
|
3767 * user-prefs.cc: Allow empty strings for prompts. |
|
3768 |
|
3769 Thu May 2 10:50:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3770 |
|
3771 * pt-mvr.h (class tree_oct_obj): Declare values data member const. |
|
3772 |
|
3773 Sun Apr 28 03:16:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3774 |
|
3775 * user-prefs.h (user_preferences): New field, |
|
3776 `page_output_immediately'. |
|
3777 * user-prefs.cc (init_user_prefs): Initialize it. |
|
3778 (page_output_immediately): New function. |
|
3779 * pager.cc (syms_of_pager): Add DEFVAR. |
|
3780 (really_flush_to_pager): New file-scope variable. |
|
3781 (flush_octave_stdout): Set and restore it. |
|
3782 (octave_pager_buf::sync): Check it, user_pref.page_screen_output, |
|
3783 and user_pref.page_output_immediately to decide when to really |
|
3784 flush output. |
|
3785 (more_than_a_screenful): New function. If paging but not |
|
3786 immediately, then check this too. |
|
3787 |
|
3788 * pager.cc (default_pager): Move here from variables.cc. If pager |
|
3789 is less and LESS is not in the environment, append useful flags. |
|
3790 (symbols_of_pager): New function. |
|
3791 * variables.cc (install_builtin_variables): Call it. |
|
3792 Delete pager-related DEFVARs. |
|
3793 |
|
3794 * syswait.h (WIFSIGNALLED): Define if sys/wait.h doesn't. |
|
3795 |
|
3796 * sighandlers.cc: Handle SIGCHLD. |
|
3797 |
|
3798 * pager.cc, pager.h: Rewrite. |
|
3799 * pt-mvr.cc, pt-misc.cc, pt-fcn.cc, pt-const.cc, oct-hist.cc, |
|
3800 file-io.cc, help.cc, variables.cc, qpsol.cc, dassl.cc, quad.cc, |
|
3801 npsol.cc, lsode.cc, fsolve.cc, load-save.cc, dirfns.cc, octave.cc, |
|
3802 toplev.cc, error.cc, input.cc: |
|
3803 Write to octave_stdout and octave_diary instead of calling |
|
3804 maybe_page_output() or maybe_write_to_diary_file(). |
|
3805 |
|
3806 * oct-procbuf.h, oct-procbuf.cc: New files. |
|
3807 * procstream.h (class procstreambase): Use octave_procbuf instead |
|
3808 of procbuf from libg++, so we can get pids of subprocesses. |
|
3809 |
|
3810 Fri Apr 26 01:21:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3811 |
|
3812 * pt-const.cc (OCT_VAL_REP::do_index): Call maybe_mutate() before |
|
3813 returning. |
|
3814 |
|
3815 * mappers.h (struct Mapper_fcn): Delete. |
|
3816 (struct builtin_mapper_function): New field ch_mapper. |
|
3817 * pt-fvc.h (tree_builtin): Convert type of mapper_fcn from |
|
3818 Mapper_fcn to builtin_mapper_function. |
|
3819 * variables.cc (install_builtin_mapper): Likewise, for arg. |
|
3820 Simplify, since we don't have to do the copying ourselves now. |
|
3821 * pt-fvc.cc (apply_mapper_function): Handle ch_mapper case. |
|
3822 * defun.h (DEFUN_MAPPER): Likewise. |
|
3823 * mappers.cc (install_builtin_mappers): Likewise. |
|
3824 Add ctype is* functions here. |
|
3825 |
|
3826 Thu Apr 25 00:57:06 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3827 |
|
3828 * arith-ops.h, defun-int.h, defun.h, dynamic-ld.h, gripes.h, |
|
3829 load-save.h, oct-map.h, oct-obj.h, oct-stream.h, pt-cmd.h, |
|
3830 pt-const.h, pt-exp-base.h, pt-exp.h, pt-fcn.h, pt-fvc-base.h, |
|
3831 pt-fvc.h, pt-mat.h, pt-misc.h, pt-mvr-base.h, pt-mvr.h, pt-plot.h, |
|
3832 symtab.h, toplev.h, utils.h, variables.h, xpow.h, Array-tc.cc, |
|
3833 Map-i.cc, Map-tc.cc, SLList-tc.cc, arith-ops.cc, balance.cc, |
|
3834 bogus.cc, chol.cc, colloc.cc, dassl.cc, data.cc, det.cc, |
|
3835 dirfns.cc, eig.cc, error.cc, expm.cc, fft.cc, fft2.cc, file-io.cc, |
|
3836 filter.cc, find.cc, fsolve.cc, fsqp.cc, givens.cc, gripes.cc, |
|
3837 help.cc, hess.cc, ifft.cc, ifft2.cc, input.cc, inv.cc, |
|
3838 load-save.cc, log.cc, lpsolve.cc, lsode.cc, lu.cc, minmax.cc, |
|
3839 npsol.cc, oct-hist.cc, oct-obj.cc, oct-stream.cc, pager.cc, |
|
3840 pinv.cc, pr-output.cc, pt-cmd.cc, pt-const.cc, pt-exp-base.cc, |
|
3841 pt-exp.cc, pt-fcn.cc, pt-fvc-base.cc, pt-fvc.cc, pt-mat.cc, |
|
3842 pt-misc.cc, pt-mvr-base.cc, pt-mvr.cc, pt-plot.cc, qpsol.cc, |
|
3843 qr.cc, quad.cc, qzval.cc, rand.cc, resource.cc, schur.cc, sort.cc, |
|
3844 strfns.cc, svd.cc, syl.cc, symtab.cc, syscalls.cc, sysdep.cc, |
|
3845 timefns.cc, toplev.cc, utils.cc, variables.cc, xpow.cc, parse.y: |
|
3846 Rename tree_constant -> octave_value. |
|
3847 Rename Octave_object -> octave_value_list. |
|
3848 |
|
3849 Wed Apr 24 22:15:34 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3850 |
|
3851 * toplev.cc (Fsystem): Merge functionality of async_system and |
|
3852 sync_system. |
|
3853 |
|
3854 * oct-fstrm.h, oct-iostrm.h, oct-prcstrm.h, oct-stdstrm.h, |
|
3855 oct-stream.h, oct-strstrm.h, oct-fstrm.cc, oct-iostrm.cc, |
|
3856 oct-prcstrm.cc, oct-stdstrm.cc, oct-stream.cc, oct-strstrm.cc, |
|
3857 Array-os.cc: New files. |
|
3858 * Makefile.in: Add them to the appropriate lists. |
|
3859 * file-io.cc: Rewrite to use new stream classes. |
|
3860 |
|
3861 Tue Apr 23 18:59:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3862 |
|
3863 * gripes.cc (gripe_not_supported): New function. |
|
3864 |
|
3865 * toplev.cc (do_octave_atexit, Fatexit): New functions. |
|
3866 (octave_atexit_functions): New file-scope variable. |
|
3867 * octave.cc (main): Register do_octave_atexit with atexit. |
|
3868 |
|
3869 * variables.cc (install_builtin_variables): Call |
|
3870 symbols_of_syscalls here. |
|
3871 |
|
3872 * syscalls.h, syscalls.cc: New files. |
|
3873 |
|
3874 Mon Apr 22 21:14:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3875 |
|
3876 * syscalls.cc: New file. |
|
3877 (Flstat, Fmkfifo, Fstat, Funlink, Fwait, Fwaitpid): Move here. |
|
3878 * file-io.cc: From here. |
|
3879 * Makefile.in (SOURCES): Add syscalls.cc to the list. |
|
3880 |
|
3881 Wed Apr 17 18:34:10 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3882 |
|
3883 * file-info.h, file-info.cc: Delete files. |
|
3884 * Makefile.in: Remove from lists. |
|
3885 |
|
3886 * toplev.cc (Fquit): Accept exit status argument. |
|
3887 (Fflops): Delete (now a function file). |
|
3888 |
|
3889 Thu Apr 11 16:20:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3890 |
|
3891 * lex.l: Recognize `.'. |
|
3892 Update current_input_column even for unrecognized characters. |
|
3893 Return LEXICAL_ERROR for unrecognized characters. |
|
3894 |
|
3895 Mon Apr 8 19:59:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3896 |
|
3897 * variables.cc (install_builtin_variables): Split into several |
|
3898 functions to make compiling with g++ go faster and consume less |
|
3899 memory. |
|
3900 |
|
3901 Sun Apr 7 16:25:35 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3902 |
|
3903 * load-save.cc (Fsave): Print usage if i == argc. |
|
3904 (Fload): Likewise. |
|
3905 |
|
3906 Sat Apr 6 21:26:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3907 |
|
3908 * Makefile.in (clean): Also delete pic/*.o |
|
3909 (maintainer-clean, distclean): Also remove stamp-picdir, |
|
3910 stamp-tinst, stamp-interp, and pic directory. |
|
3911 (stamp-prereq): New target. |
|
3912 |
|
3913 Wed Apr 3 11:19:30 1996 Rick Niles <niles@axp745.gsfc.nasa.gov> |
|
3914 |
|
3915 * resource.cc: Don't make including sys/resource.h and sys/times.h |
|
3916 mutually exclusive. |
|
3917 |
|
3918 Fri Mar 29 13:43:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3919 |
|
3920 * Makefile.in (distclean): Delete so_locations, which is created |
|
3921 on DEC Alpha systems. |
|
3922 |
|
3923 Thu Mar 28 02:53:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3924 |
|
3925 * utils.h (undo_string_escape): Provide extern declaration here. |
|
3926 |
|
3927 * lex.l (NL): Allow \r\n as new line character. |
|
3928 (.): Complain if invalid character is found on input |
|
3929 |
|
3930 Fri Mar 22 03:47:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3931 |
|
3932 * resource.cc (getrusage): If getrusage is missing, try using |
|
3933 times to at least fill in the cpu time values. If neither one is |
|
3934 available, return 0 for cpu times instead of NaN. |
|
3935 |
|
3936 * sighandlers.cc (octave_signal_mask): New file-scope variable. |
|
3937 (octave_save_signal_mask, octave_restore_signal_mask): New functions. |
|
3938 * toplev.cc (main_loop): Use them. |
|
3939 |
|
3940 Wed Mar 20 01:21:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3941 |
|
3942 * utils.cc (get_fcn_file_names (const string&, int)): Resize |
|
3943 retval to value of k, not i. |
|
3944 (get_fcn_file_names (int)): In loop for copying names to retval, |
|
3945 don't increment j twice. |
|
3946 |
|
3947 Mon Mar 18 22:27:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3948 |
|
3949 * Makefile.in ($(MAKEDEPS)): Depend on oct-gperf.h. |
|
3950 |
|
3951 Fri Mar 1 18:15:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3952 |
|
3953 * fsolve.cc (fsolve_options): Delete unused argument nargout. |
|
3954 |
|
3955 * filter.cc: Use MArray instead of Array so that automatic |
|
3956 conversions will work again. |
|
3957 |
|
3958 Tue Feb 27 04:49:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3959 |
|
3960 * variables.cc (looks_like_octave_copyright): Make the strings |
|
3961 that we are trying to match both have length 29. |
|
3962 |
|
3963 * Makefile.in (install-bin): Use $(INSTALL_PROGRAM), not $(INSTALL). |
|
3964 |
|
3965 * load-save.cc (read_mat_binary_data): Make sure name is |
|
3966 NUL terminated. |
|
3967 |
|
3968 Mon Feb 26 18:18:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3969 |
|
3970 * variables.cc (whos): Make argv from tmp_args, not args. |
|
3971 |
|
3972 * defun.h (DEFCONSTX): Don't stringify name. |
|
3973 |
|
3974 Sat Feb 24 01:12:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3975 |
|
3976 * Makefile.in (install-oct): Make mk-oct-links executable. |
|
3977 * mk-oct-links.in (links_dir): Update to match new format of |
|
3978 DEFUN_DLD_BUILTIN macro. Use LN_S, not just LN. |
|
3979 (links_dir): |
|
3980 |
|
3981 * pr-output.cc (octave_print_internal): New arg, extra_indent, for |
|
3982 versions of this function that take matrices and ranges. |
|
3983 * pt-const.cc (TC_REP::print (ostream&)): Fix printing of structures. |
|
3984 Pass struct_indent to octave_print_internal as appropriate. |
|
3985 (print_with_name (ostream&, const string&, bool)): Handle spacing |
|
3986 around `=' differently for structures. |
|
3987 |
|
3988 Fri Feb 23 04:51:04 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3989 |
|
3990 * token.cc (token (double, const string&, int, int)): Store orig_text. |
|
3991 |
|
3992 Tue Feb 20 20:36:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3993 |
|
3994 * variables.cc (Fclear): Fix off-by-one error. |
|
3995 |
|
3996 Sat Feb 17 16:54:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
3997 |
|
3998 * oct-hist.cc (default_history_file): Append "/.octave_hist" to |
|
3999 return value, not to home_directory. |
|
4000 |
|
4001 Fri Feb 16 18:10:46 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4002 |
|
4003 * utils.cc: (NINT, D_NINT): Move to liboctave. |
|
4004 |
|
4005 * sysdep.cc (octave_ieee_init): Move to liboctave. |
|
4006 |
|
4007 * procstream.h, procstream.cc: Rewrite. |
|
4008 |
|
4009 * pager.cc (cleanup_oprocstream): New static function. |
|
4010 * toplev.cc (cleanup_iprocstream): Likewise. |
|
4011 * dirfns.cc (cleanup_iprocstream): Likewise. |
|
4012 |
|
4013 * unwind-prot.cc (matrix_cleanup, complex_matrix_cleanup): Delete. |
|
4014 |
|
4015 Thu Feb 15 22:03:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4016 |
|
4017 * oct-obj.cc, oct-obj.h: Move most code to the header. |
|
4018 |
|
4019 * oct-obj.cc (make_argv, all_strings): New member functions. |
|
4020 * utils.cc: Moved from here. |
|
4021 |
|
4022 * load-save.cc: Move byte swapping stuff to liboctave. |
|
4023 Move float format conversion stuff to liboctave. |
|
4024 (all_parts_int, too_large_for_float): Move to liboctave. |
|
4025 |
|
4026 * symtab.cc (valid_identifier): Move here. |
|
4027 * load-save.cc: From here. |
|
4028 |
|
4029 * sysdep.cc: Move floating-point format stuff to liboctave. |
|
4030 * pr-output.cc: Include float-fmt.h here. |
|
4031 |
|
4032 Wed Feb 14 01:49:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4033 |
|
4034 * defun.h, defun-dld.h, defun-int.h: Simplify interface for DEFUN, |
|
4035 DEFUN_DLD, DEFVAR, and DEFCONST macros. Change all uses. |
|
4036 |
|
4037 * qzval.cc: Move guts to liboctave. |
|
4038 |
|
4039 Tue Feb 13 10:28:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4040 |
|
4041 * variables.cc (parse_fcn_file): Also avoid saving history if |
|
4042 input is from a script file. |
|
4043 |
|
4044 * help.cc (Ftype): Call unwind_protect_str for user_pref.ps4. |
|
4045 |
|
4046 * npsol.cc (nonlinear_constraints_ok): Now static. |
|
4047 |
|
4048 * npsol.cc (linear_constraints_ok): Now static. |
|
4049 * qpsol.cc (linear_constraints_ok): Duplicate here. |
|
4050 |
|
4051 * data.cc (Flinspace): Don't print usage message if nargin == 2. |
|
4052 |
|
4053 Sun Feb 11 14:20:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4054 |
|
4055 * mk-oct-links.in: Rename from mk-oct-links. |
|
4056 (LN_S): Use this variable instead of ln. |
|
4057 Set -e option for shell. |
|
4058 Exit with status of last command. |
|
4059 Print message when making link. |
|
4060 * Makefile.in (DISTFILES): Add mk-oct-links.in to the list. |
|
4061 (install-oct): Run ./mk-oct-links, not $(srcdir)/mk-oct-links. |
|
4062 |
|
4063 * variables.cc (install_builtin_variables): Restore accidentally |
|
4064 deleted DEFVAR for save_precision. |
|
4065 |
|
4066 Fri Feb 9 11:24:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4067 |
|
4068 * Makefile.in (INCLUDES): Delete statdefs.h from the list (it's |
|
4069 now in the liboctave directory). |
|
4070 |
|
4071 * toplev.cc (toplevel): Define here. |
|
4072 * octave.cc (toplevel): Not here. |
|
4073 |
|
4074 * toplev.cc (main_loop): New function. |
|
4075 * octave.cc (main): Call it here instead of doing main loop |
|
4076 actions here. |
|
4077 |
|
4078 * user-prefs.cc (do_fortran_indexing): Also set liboctave_dfi_flag. |
|
4079 (prefer_column_vectors): Also set liboctave_pcv_flag. |
|
4080 (prefer_zero_one_indexing): Also set liboctave_pzo_flag. |
|
4081 (resize_on_range_error): Also set liboctave_rre_flag. |
|
4082 |
|
4083 * variables.cc (restore_command_history): New function. |
|
4084 (parse_fcn_file): Use it here in unwind_protect. |
|
4085 |
|
4086 * dynamic-ld.cc (load_octave_oct_file): Reverse sense of test. |
|
4087 (load_octave_builtin): Delete. |
|
4088 (mangle_octave_oct_file_name): Delete. |
|
4089 |
|
4090 * pt-fvc.cc (tree_builtin::eval): Don't try to dynamically load |
|
4091 functions here. |
|
4092 |
|
4093 * pr-output.cc (set_format_style): Decrement argc for first arg too. |
|
4094 |
|
4095 * input.cc (gnu_readline): If readline returns an empty string, |
|
4096 convert it to a string containing a single newline character. |
|
4097 |
|
4098 * octave.cc (octave_argv): Now a static string_vector. |
|
4099 (intern_argv): Use string_vector ops, not charMatrix ops. |
|
4100 * toplev.cc (octave_argv): Delete definition. |
|
4101 * toplev.h (octave_argv): Delete declaration. |
|
4102 |
|
4103 Thu Feb 8 10:58:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4104 |
|
4105 * Makefile.in (conf-dist): New target. |
|
4106 |
|
4107 Tue Feb 6 10:59:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4108 |
|
4109 * help.cc (Ftype): Correctly handle structure names. |
|
4110 |
|
4111 Sun Feb 4 02:02:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4112 |
|
4113 * qpsol.cc (Fqpsol): Call set_options(), not copy() to set |
|
4114 options for QPSOL objects. |
|
4115 |
|
4116 * npsol.cc (Fnpsol): Call set_options(), not copy() to set |
|
4117 options for NPSOL objects. |
|
4118 |
|
4119 * quad.cc (Fquad): Call set_options(), not copy() to set |
|
4120 options for Quad objects. |
|
4121 |
|
4122 * dynamic-ld.cc (load_octave_builtin): Don't call destructor on string. |
|
4123 (load_octave_oct_file): Likewise. |
|
4124 Check oct_file.empty(), not just oct_file. |
|
4125 |
|
4126 * fsolve.cc (Ffsolve): Call set_options(), not copy() to set |
|
4127 options for NLEqn object. |
|
4128 |
|
4129 * variables.cc (do_who): Properly set match patterns from argument |
|
4130 vector for call to maybe_list. |
|
4131 |
|
4132 Sat Feb 3 03:29:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4133 |
|
4134 * octave.cc (long_opts): Properly set second field using new enum. |
|
4135 |
|
4136 * lsode.cc: Change ODE to LSODE where appropriate. |
|
4137 Use LSODE_options, not ODE_options. |
|
4138 |
|
4139 * dassl.cc: Change DAE to DASSL where appropriate. |
|
4140 Use DASSL_options, not ODE_options. |
|
4141 |
|
4142 Fri Feb 2 01:41:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4143 |
|
4144 * dirfns.cc: Include unistd.h. |
|
4145 |
|
4146 * parse.y, lex.l: Handle matrix lists without ml or mlnm stacks. |
|
4147 * pt-mat.h, pt-mat.cc (tree_matrix): |
|
4148 Rewrite to use SLList instead of home brew list. |
|
4149 * SLList-tm.cc: New file |
|
4150 * Makefile.in: Add it to the lists. |
|
4151 * SLStack-tm.cc: Delete. |
|
4152 * Makefile.in: Delete it from the lists. |
|
4153 |
|
4154 * All pt-* files: Use bool instead of int where appropriate. |
|
4155 |
|
4156 * Makefile.in (DEP_SOURCES_3): Add octave.cc. |
|
4157 |
|
4158 * pt-const.h (class tree_constant::tree_constant_rep): Make |
|
4159 everything in this class public, then it doesn't need to declare |
|
4160 the tree_constant class as a friend. |
|
4161 |
|
4162 Thu Feb 1 01:42:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4163 |
|
4164 * lex.h, lex.l, parse.h, parse.y (class lexical_feedback): New |
|
4165 class for lexer flags. Replace lots of global vars with members |
|
4166 of this class. |
|
4167 |
|
4168 * lex.l (class brace_paren_nesting_level): New class to replace |
|
4169 nesting_level stack. nesting_level is now an instance of this |
|
4170 class. |
|
4171 |
|
4172 * lex.l (yum_yum): New typedef. |
|
4173 (ATE_NOTHING): New global var. |
|
4174 (ATE_SPACE_OR_TAB, ATE_NEWLINE): Don't #define these, declare them |
|
4175 as const yum_yum. |
|
4176 (eat_whitespace, eat_continuation): Return yum_yum, not int. |
|
4177 |
|
4178 * lex.l (SHORT_CIRCUIT_LOGICALS): Delete. Always do this for || |
|
4179 and && tokens. |
|
4180 (yy_flex_alloc, yy_flex_realloc, yy_flex_free, next_char_is_space): |
|
4181 Delete. |
|
4182 |
|
4183 * toplev.cc (verbose_flag): Delete definition. |
|
4184 * toplev.h (verbose_flag): And declaration. |
|
4185 * octave.cc (verbose_flag): Now static. |
|
4186 |
|
4187 * lex.l (lookup_identifier): Arg is now string, not char*. |
|
4188 (handle_identifier, is_plot_keyword, is_keyword): Likewise. |
|
4189 (strip_trailing_whitespace): Return value is now string, not char*. |
|
4190 (plot_style_token): Likewise, for both arg and return value. |
|
4191 |
|
4192 * input.cc (octave_gets_line): Delete. |
|
4193 (gnu_readline, octave_gets, octave_read): |
|
4194 Properly handle input when using_readline is either true or false. |
|
4195 Don't limit length of input lines to flex buffer size. |
|
4196 (get_user_input): New function. |
|
4197 |
|
4198 * octave.cc (main): Handle --no-line-editing. |
|
4199 * toplev.h (using_readline): Provide external declaration here. |
|
4200 * input.h: Not here. |
|
4201 * toplev.cc (using_readline): Define here. |
|
4202 * input.cc: Not here. |
|
4203 |
|
4204 * toplev.h (no_line_editing): Delete declaration. |
|
4205 * input.cc (no_line_editing): Delete definition. |
|
4206 |
|
4207 Wed Jan 31 05:28:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4208 |
|
4209 * input.cc (DEFAULT_ARRAY_SIZE, PROMPT_GROWTH): Delete definitions |
|
4210 of unused macros. |
|
4211 (read_octal): Now static. |
|
4212 |
|
4213 * givens.cc (Fgivens): Use new functions from matrix classes |
|
4214 instead of calling Fortran functions directly. |
|
4215 * syl.cc (Fsyl): Likewise. |
|
4216 * expm.cc (Fexpm): Likewise. |
|
4217 |
|
4218 Mon Jan 29 00:00:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4219 |
|
4220 * octave.cc: Use new prog_args class instead of calling getopt |
|
4221 directly. |
|
4222 |
|
4223 * getopt.h, getopt.c, getopt1.c: Move to liboctave directory. |
|
4224 * Makefile: Remove from lists. |
|
4225 |
|
4226 * utils.cc (strconcat, read_until, discard_until): Delete. |
|
4227 |
|
4228 * pager.cc (terminal_columns, terminal_rows): Move to |
|
4229 liboctave/oct-term.cc. |
|
4230 * pager.cc, pr-output.cc: Include oct-term.h. |
|
4231 |
|
4232 * utils.cc (list_in_columns): Moved to liboctave/str-vec.cc. |
|
4233 Change all callers to use new member function syntax. |
|
4234 |
|
4235 * dirfns.cc (absolute_program): Now static. |
|
4236 (absolute_pathname): Delete. |
|
4237 |
|
4238 * pt-plot.cc (save_in_tmp_file): Call oct_tempnam, not |
|
4239 octave_tmp_file_name. Include file-ops.h. |
|
4240 * file-io.cc (do_scanf, Foctave_tmp_file_name): Likewise. |
|
4241 * oct-hist.cc (mk_tmp_hist_file): Likewise. |
|
4242 |
|
4243 * file-io.cc (Foctave_tmp_file_name): Move here. |
|
4244 * utils.cc: From here. |
|
4245 |
|
4246 * utils.cc (octave_tmp_file_name): Move to liboctave/file-ops.cc. |
|
4247 |
|
4248 * tempname.c, tempnam.c: Move to liboctave directory. |
|
4249 * Makefile.in: Remove from lists. |
|
4250 |
|
4251 Sun Jan 28 19:00:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4252 |
|
4253 * xdiv.cc (all xdiv functions): Return Matrix or ComplexMatrix, |
|
4254 not tree_constant. |
|
4255 |
|
4256 * oct-hist.h, oct-hist.cc, toplev.cc, octave.cc, input.cc, |
|
4257 file-io.cc, user-prefs.cc: Rewrite to use new command_history |
|
4258 class instead of calling readline history functions directly. |
|
4259 |
|
4260 * utils.cc (get_fcn_file_names): Delete num arg. |
|
4261 |
|
4262 Thu Jan 25 20:33:54 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4263 |
|
4264 * load-save.cc (matches_patterns): Use new glob_match class |
|
4265 instead of calling fnmatch directly. |
|
4266 * symtab.cc (matches_patterns, symbol_table::glob): Likewise. |
|
4267 * variables.cc (Fclear): Likewise. |
|
4268 |
|
4269 Wed Jan 24 02:05:22 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4270 |
|
4271 * fnmatch.h fnmatch.c: Delete. |
|
4272 * Makefile.in: Add glob stuff in the appropriate places, remove |
|
4273 fnmatch.h and fnmatch.c from lists. |
|
4274 |
|
4275 * octave.cc (program_invocation_name, program_invocation_short_name): |
|
4276 Maybe declare. |
|
4277 (initialize_globals): Maybe initialize them. |
|
4278 |
|
4279 * octave.cc (initialize_pathsearch): Define here, not in pathsearch.cc. |
|
4280 * pathsearch.h, pathsearch.cc: Remove files. |
|
4281 * Makefile.in: Remove them from the lists. |
|
4282 |
|
4283 * help.cc (simple_help): Ignore directories that don't have any .m |
|
4284 or .oct files. |
|
4285 |
|
4286 * utils.cc (search_path_for_file): Use new dir_path class instead |
|
4287 of calling kpathsea routines directly. |
|
4288 (get_fcn_file_names): Likewise. |
|
4289 * help.cc (simple_help): Likewise. |
|
4290 |
|
4291 * dirfns.cc (make_absolute): Don't convert empty arg to "./". |
|
4292 |
|
4293 * sysdir.h: Move to liboctave directory. |
|
4294 * Makefile.in: Remove from lists. |
|
4295 |
|
4296 * dirfns.cc (Freaddir): Use new dir_entry class instead of calling |
|
4297 readdir directly. Include dir-ops.h, not sysdir.h. |
|
4298 * utils.cc (get_fcn_file_names): Likewise. Delete unnecessary |
|
4299 first arg, change all callers. |
|
4300 |
|
4301 Tue Jan 23 00:43:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4302 |
|
4303 * safe-xstat.hin, safe-xstat.cin, statdefs.h, file-ops.h, |
|
4304 file-ops.cc, filemode.c, mkdir.c, rmdir.c, rename.c: |
|
4305 Files moved to liboctave directory. |
|
4306 * Makefile.in: Remove them from lists. Move appropriate rules. |
|
4307 |
|
4308 * acosh.c, asinh.c, atanh.c, erf.c, erfc.c, gamma.c, lgamma.c: |
|
4309 Files moved to liboctave directory. |
|
4310 * Makefile.in: Remove them from lists. |
|
4311 * missing-math.h: Deleted. |
|
4312 * pr-output.cc, sysdep.cc, minmax.cc, mappers.cc, expm.cc, |
|
4313 arith-ops.cc: Include oct-math.h, not cmath or missing-math.h. |
|
4314 |
|
4315 Mon Jan 22 19:33:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4316 |
|
4317 * variables.cc (Fexist): Use file_stat instead of calling stat |
|
4318 directly. Include file-ops.h, not statdefs.h. |
|
4319 * octave.cc (execute_startup_files): Likewise. |
|
4320 * file-io.cc (file_io_get_file, fopen_internal, popen_internal, Fstat): |
|
4321 Likewise. |
|
4322 (mk_stat_map): Likewise, use file_stat object, not struct stat. |
|
4323 * oct-hist.cc (do_history): Likewise. |
|
4324 |
|
4325 * file-ops.h, file-stat.cc: New files. |
|
4326 * Makefile.in: Include them. |
|
4327 * dirfns.cc: Delete is_newer. Don't include statdefs.h. |
|
4328 * toplev.cc: Don't include statdefs.h. |
|
4329 |
|
4330 Sun Jan 21 22:48:03 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4331 |
|
4332 * pt-mvr.h, pt-fvc.h, Map.cc, Map.h, dynamic-ld.h, |
|
4333 pt-fvc-base.cc, SLList-str.cc, pt-fcn.h, pt-fvc-base.h, |
|
4334 SLStack-str.cc, pt-mvr.cc, pt-exp.cc, token.h, token.cc, |
|
4335 user-prefs.h, pt-base.cc, user-prefs.cc, dirfns.h, sysdep.h, |
|
4336 sysdep.cc, input.h, parse.h, lex.l, parse.y, defun.h, mappers.h, |
|
4337 pt-fvc.cc, pt-plot.h, load-save.h, octave.cc, defun-int.h, help.h, |
|
4338 variables.h, oct-map.h, oct-obj.h, oct-obj.cc, pt-const.cc, |
|
4339 oct-map.cc, input.cc, symtab.h, pt-const.h, pathsearch.cc, |
|
4340 pr-output.h, pr-output.cc, toplev.h, timefns.cc, schur.cc, |
|
4341 pt-plot.cc, pager.cc, load-save.cc, dynamic-ld.cc, dirfns.cc, |
|
4342 data.cc, file-info.h, file-info.cc, colloc.cc, utils.h, qpsol.cc, |
|
4343 quad.cc, npsol.cc, lsode.cc, fsolve.cc, dassl.cc, file-io.cc, |
|
4344 help.cc, utils.cc, oct-hist.h, oct-hist.cc, symtab.cc, toplev.cc, |
|
4345 pt-fcn.cc, unwind-prot.h, unwind-prot.cc, variables.cc: |
|
4346 Most functions in these files that deal with character strings |
|
4347 have been converted to use the string class insatead of char*. If |
|
4348 you want more detailed information, you'll have to figure it out |
|
4349 for yourself. |
|
4350 |
|
4351 Sat Jan 20 18:19:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4352 |
|
4353 * dynamic-ld.cc [WITH_DL]: Define RTLD_LAZY to be 1 if it is not |
|
4354 already defined. |
|
4355 |
|
4356 Sun Jan 14 07:48:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4357 |
|
4358 * pt-const.cc (print_as_scalar, print_as_structure): |
|
4359 Make these member functions. |
|
4360 (tree_constant::print_with_name): New function, moved here from |
|
4361 old tree-expr.cc file (where it was called print_constant) and |
|
4362 converted to member function. Change all callers. |
|
4363 |
|
4364 Fri Jan 12 01:54:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4365 |
|
4366 * octave.cc (initialize_globals): Don't do kpathsearch stuff here. |
|
4367 (main): Call initialize_pathsearch() here. |
|
4368 |
|
4369 * pathsearch.cc: New file. |
|
4370 * Makefile.in (SOURCES): Add it to the list |
|
4371 |
|
4372 * oct-hist.h: Rename from octave-hist.h. |
|
4373 * oct-hist.cc: Rename from octave-hist.cc. |
|
4374 * Makefile.in, parse.y, other .cc files: Cope with it. |
|
4375 |
|
4376 * dynamic-ld.cc: Avoid warnings if !WITH_DYNAMIC_LINKING. |
|
4377 |
|
4378 * load-save.cc (save_ascii_data): string::data() returns const char*. |
|
4379 |
|
4380 * utils.h: Don't provide forward declaration for tree_constant. |
|
4381 |
|
4382 * oct-obj.h: Don't include mx-base.h or provide forward |
|
4383 declarations for Matrix and Range types. |
|
4384 |
|
4385 * file-info.h: Don't include oct-obj.h. Do include cstdio. |
|
4386 |
|
4387 * symtab.h: Don't provide forward declaration for ostream. |
|
4388 |
|
4389 * variables.h: Don't provide forward declarations for istream, |
|
4390 ostrstream, tree, builtin_function, or builtin_variable objects. |
|
4391 |
|
4392 * balance.cc, chol.cc, colloc.cc, dassl.cc, det.cc, eig.cc, |
|
4393 expm.cc, fft.cc, fft2.cc, filter.cc, find.cc, fsolve.cc, fsqp.cc, |
|
4394 givens.cc, hess.cc, ifft.cc, ifft2.cc, inv.cc, log.cc, lpsolve.cc, |
|
4395 lsode.cc, lu.cc, minmax.cc, npsol.cc, pinv.cc, qpsol.cc, qr.cc, |
|
4396 quad.cc, qzval.cc, rand.cc, schur.cc, sort.cc, svd.cc, syl.cc: |
|
4397 Clean up #include statements. |
|
4398 |
|
4399 * pt-const.h: Don't include oct-obj.h or tree-base.h. |
|
4400 Provide forward declaration of Octave_object here. |
|
4401 * pt-const.cc: Include oct-obj.h here. |
|
4402 |
|
4403 * pt-mat.h, pt-fcn.h, pt-const.h, pt-misc.h, pt-plot.h, |
|
4404 pt-exp-base.h, pt-cmd.h, pt-fvc-base.h, pt-mvr-base.h, pt-exp.h, |
|
4405 pt-mvr.h, pt-fvc.h: New files, split from tree-expr.h and/or |
|
4406 renamed from other tree-*.h files (pt == parse tree). |
|
4407 * pt-base.cc, pt-const.cc, pt-exp.cc, pt-fvc-base.cc, pt-mat.cc, |
|
4408 pt-mvr-base.cc, pt-plot.cc, pt-cmd.cc, pt-exp-base.cc, pt-fcn.cc, |
|
4409 pt-fvc.cc, pt-misc.cc, pt-mvr.cc: Likewse, split from tree-expr.cc |
|
4410 and/or other tree-*.cc files. |
|
4411 * Makefile.in: Include them in the appropriate lists. |
|
4412 * All: Fix #include statements to match. |
|
4413 |
|
4414 * Array-tc.cc: Don't instantiate ArrayRep objects. |
|
4415 |
|
4416 Thu Jan 11 02:35:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4417 |
|
4418 * tree-const.cc (tree_constant::eval (int, int, const Octave_object&)): |
|
4419 Define here instead of in tree-const.h. |
|
4420 |
|
4421 Wed Jan 10 04:34:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4422 |
|
4423 * tree-const.h (tree_constant::tree_constant (const string&): |
|
4424 * tree-const.cc (TC_REP::tree_constant_rep (const string&)): |
|
4425 New constructor. |
|
4426 |
|
4427 Tue Jan 9 04:10:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4428 |
|
4429 * rand.cc (do_rand): Use string_value() result directly instead of |
|
4430 c_str() conversion. |
|
4431 * balance.cc (Fbalance): Likewise. |
|
4432 |
|
4433 * tree-const.cc (TC_REP::string_value()): |
|
4434 Handle new definition of charMatrix::row_as_string() |
|
4435 * load-save.cc (save_ascii_data): Ditto. |
|
4436 (save_binary_data): Ditto. |
|
4437 * pr-output.cc (octave_print_internal): Ditto. |
|
4438 |
|
4439 * balance.cc (Fbalance): |
|
4440 Handle new definition of TC_REP::string_value() |
|
4441 * colloc.cc (Fcolloc): Ditto. |
|
4442 * dassl.cc (Fdassl_options): Ditto. |
|
4443 * data.cc (Fstruct_contains): Ditto. |
|
4444 * dirfns.cc (Fmkdir): Ditto. |
|
4445 (Freaddir): Ditto. |
|
4446 (Frmdir): Ditto. |
|
4447 (Frename): Ditto. |
|
4448 * error.cc (handle_message): Ditto. |
|
4449 * file-io.cc (process_printf_format): Ditto. |
|
4450 (fopen_internal): Ditto. |
|
4451 (file_io_get_file): Ditto. |
|
4452 (return_valid_file): Ditto. |
|
4453 (Flstat): Ditto. |
|
4454 (Fstat): Ditto. |
|
4455 (unlink_internal): Ditto. |
|
4456 (mkfifo_internal): Ditto. |
|
4457 (async_system_internal): Ditto. |
|
4458 (sync_system_internal): Ditto. |
|
4459 (execute_internal): Ditto. |
|
4460 (popen_internal): Ditto. |
|
4461 (fwrite_internal): Ditto. |
|
4462 (fread_internal): Ditto. |
|
4463 (do_printf): Ditto. |
|
4464 (do_scanf): Ditto. |
|
4465 * input.cc (get_user_input): Ditto. |
|
4466 * lsode.cc (Flsode_options): Ditto. |
|
4467 * npsol.cc (Fnpsol_options):Ditto. |
|
4468 * qpsol.cc (Fqpsol_options):Ditto. |
|
4469 * quad.cc (Fquad_options): Ditto. |
|
4470 * rand.cc (do_rand): Ditto. |
|
4471 * schur.cc (Fschur): Ditto. |
|
4472 * sysdep.cc (Fputenv): Ditto. |
|
4473 (Fgetenv): Ditto. |
|
4474 * timefns.cc (extract_tm): Ditto. |
|
4475 (Fstrftime): Ditto. |
|
4476 * toplev.cc (Fsource): Ditto. |
|
4477 (eval_string): Ditto. |
|
4478 (Fsystem): Ditto. |
|
4479 * tree-plot.cc (subplot::handle_plot_data): Ditto. |
|
4480 * variables.cc (is_valid_function): Ditto. |
|
4481 (Fis_global): Ditto. |
|
4482 (Fexist): Ditto. |
|
4483 (builtin_string_variable): Ditto. |
|
4484 * utils.cc (make_argv): Ditto. |
|
4485 (Fundo_string_escapes): Ditto. |
|
4486 |
|
4487 Mon Jan 8 01:54:50 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4488 |
|
4489 * Makefile.in (install-bin): Use $(LN_S), not just ln. |
|
4490 |
|
4491 * variables.cc (octave_fcn_file_dir): New function. |
|
4492 * tree-expr.cc (mark_as_system_fcn_file): Use it instead of |
|
4493 octave_lib_dir. |
|
4494 |
|
4495 * Makefile.in (clean): If $(SHARED_LIBS), also remove shared libs. |
|
4496 |
|
4497 * pr-output.cc (set_format (const ComplexMatrix&, int&, int&)): |
|
4498 Unconditionally call all_elements_are_int_or_inf_or_nan(). |
|
4499 (set_format (const Matrix&, int&, int&)): Likewise. |
|
4500 |
|
4501 Sun Jan 7 19:12:39 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4502 |
|
4503 * utils.cc (oct_putenv): New function. |
|
4504 * sysdep.cc (Fputenv): Use oct_putenv. |
|
4505 * octave.cc (initialize_globals): Likewise. |
|
4506 |
|
4507 Sat Jan 6 23:22:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4508 |
|
4509 * sysdep.cc (Fputenv): New function. |
|
4510 |
|
4511 * input.cc (initialize_readline): Call rl_initialize() here. |
|
4512 |
|
4513 * octave.cc: Conditionally define atexit to be on_exit here. |
|
4514 * toplev.cc: Not here. |
|
4515 |
|
4516 Fri Jan 5 14:01:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4517 |
|
4518 * toplev.cc: Don't include <pwd.h> here. |
|
4519 |
|
4520 * octave-hist.cc, tree-plot.cc, utils.cc: Do include "sysdep.h". |
|
4521 |
|
4522 * dirfns.cc, file-io.cc, help.cc, load-save.cc, octave.cc, |
|
4523 octave-hist.cc, tree-plot.cc, utils.cc: |
|
4524 Don't include <readline/tilde.h>. |
|
4525 * sysdep.h: Do include it here. |
|
4526 |
|
4527 * tree-const.cc (TC_REP::assign (tree_constant&, Octave_object&)): |
|
4528 If we have a matrix or range, call maybe_mutate before returning. |
|
4529 |
|
4530 Sun Dec 31 15:56:18 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4531 |
|
4532 * npsol.cc (Fnpsol): Improve doc string. |
|
4533 * qpsol.cc (Fqpsol): Likewise. |
|
4534 |
|
4535 Fri Dec 29 21:46:58 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4536 |
|
4537 * defun-dld.h: Make work again for OCTAVE_LITE and |
|
4538 WITH_DYNAMIC_LINKING. |
|
4539 |
|
4540 * Makefile.in: Handle shared libraries. |
|
4541 |
|
4542 Wed Dec 27 17:47:51 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4543 |
|
4544 * mk-oct-links: New file. |
|
4545 * Makefile.in (install-oct): Use it. |
|
4546 * f-*.cc: Rename to *.cc. |
|
4547 |
|
4548 * Makefile.in (install-bin, install-lib, install-oct): New targets. |
|
4549 (install): Use them. |
|
4550 |
|
4551 Tue Dec 26 21:38:22 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4552 |
|
4553 * toplev.cc (reading_startup_message_printed): Move initialization |
|
4554 here and make extern. |
|
4555 |
|
4556 * dirfns.cc, dynamic-ld.cc, help.cc, input.cc, octave-hist.cc, |
|
4557 octave.cc, sighandlers.cc, sysdep.cc, tree-expr.cc, tree-misc.cc, |
|
4558 utils.cc, variables.cc, parse.y, lex.l: Include toplev.h instead |
|
4559 of octave.h. |
|
4560 * toplev.h: rename from octave.h. |
|
4561 |
|
4562 * octave.cc (main): Delete unused variable saved_sigint_handler. |
|
4563 |
|
4564 Sun Dec 24 00:26:54 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4565 |
|
4566 * dynamic-ld.cc: Massive re-write to handle dlopen/dlsym and |
|
4567 shl_load/shl_findsym methods of dynamic linking. |
|
4568 |
|
4569 * utils.cc (get_fcn_file_names): Check for .oct files if |
|
4570 WITH_DYNAMIC_LINKING, not WITH_DLD. |
|
4571 |
|
4572 * Makefile.in (LIB, TERMLIBS): Substitute values. |
|
4573 (octave): Add $(LIBS) to link command and use $(TERMLIBS) instead |
|
4574 of -ltermcap. |
|
4575 |
|
4576 Sat Dec 23 21:56:12 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4577 |
|
4578 * dynamic-ld.h, dynamic-ld.cc: Remove old unused code. |
|
4579 |
|
4580 * variables.cc (load_fcn_from_file): |
|
4581 Always call load_octave_oct_file. |
|
4582 |
|
4583 Wed Dec 20 00:56:57 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4584 |
|
4585 * pr-output.cc (set_real_format, set_real_matrix_format, |
|
4586 set_complex_format, set_complex_matrix_format, set_range_format): |
|
4587 New functions. Ensure the count of the digits to the right of the |
|
4588 decimal point is positive. |
|
4589 |
|
4590 * xpow.cc (xpow (const Matrix&, double)): Print warning if |
|
4591 inverting singular matrix (but return value anyway, in the name of |
|
4592 compatibility). |
|
4593 xpow (const ComplexMatrix&, double)): Likewise. |
|
4594 |
|
4595 * f-inv.cc (Finv): If matrix is singular, return result anyway, in |
|
4596 the name of compatibility. |
|
4597 |
|
4598 * symtab.cc (symbol_record::pop_context): |
|
4599 Don't assert (! context.empty ()). |
|
4600 |
|
4601 * tree-const.cc (TC_REP::char_matrix_value): Don't complain about |
|
4602 type conversion if object is an empty matrix.f |
|
4603 (TC_REP::assign): If rhs is a string, don't convert to numeric |
|
4604 type if rhs is empty or "". |
|
4605 Only widen if rhs is not empty. |
|
4606 Don't return 0x0 char_matrix if it is supposed to be a string. |
|
4607 |
|
4608 * arith-ops.h, mappers.h, pr-output.h, xdiv.h, xpow.h: Include |
|
4609 oct-cmplx.h in place of forward declaration for class Complex. |
|
4610 |
|
4611 * pr-output.cc, mappers.cc, arith-ops.cc, xdiv.cc, xpow.cc, |
|
4612 utils.cc: Include "oct-cmplx.h" instead of <Complex.h>. |
|
4613 |
|
4614 * octave.cc (initialize_error_handlers): Don't call |
|
4615 set_Complex_error_handler(). |
|
4616 (octave_Complex_error_handler): Delete unused function. |
|
4617 Delete declaration for set_Complex_error_handler(). |
|
4618 |
|
4619 * sighandlers.cc (catch_interrupts): New function. |
|
4620 * octave.cc (main): Call catch_interrupts() instead of calling |
|
4621 octave_set_signal_handler() directly. |
|
4622 |
|
4623 Tue Dec 19 03:22:37 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4624 |
|
4625 * variables.cc (looks_like_octave_copyright): Also recognize the |
|
4626 string " This program is free software". |
|
4627 |
|
4628 Thu Dec 14 01:54:06 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4629 |
|
4630 * octave-hist.cc (clean_up_history): Only write history file if |
|
4631 user_pref.saving_history. |
|
4632 |
|
4633 * octave-hist.cc (initialize_history, clean_up_history, |
|
4634 do_history): Perform tilde expansion on history file name. |
|
4635 |
|
4636 * octave.cc (main): Check `defined (HAVE_ON_EXIT)' not just |
|
4637 `(HAVE_ON_EXIT)'. |
|
4638 |
|
4639 * user-prefs.h (user_preferences): New fields, `history_file' and |
|
4640 `history_size'. |
|
4641 * user-prefs.cc (init_user_prefs): Initialize them. |
|
4642 (sv_history_file, history_size): New functions. |
|
4643 * variables.cc (install_builtin_variables): Initialize user-level |
|
4644 variables history_file and history_size. |
|
4645 * octave-hist.cc (default_history_size): Now extern. |
|
4646 (default_history_file): Likewise. |
|
4647 (octave_hist_size, octave_hist_file): Use user preference |
|
4648 variables instead. |
|
4649 * octave.cc (main): Call initialize_history after |
|
4650 execute_startup_files. |
|
4651 |
|
4652 Fri Dec 8 15:53:59 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4653 |
|
4654 * user-prefs.h (user_preferences): New field, `saving_history'. |
|
4655 * user-prefs.cc (init_user_prefs): Initialize it. |
|
4656 (saving_history): New function. |
|
4657 * variables.cc (install_builtin_variables): Initialize user-level |
|
4658 variable saving_history. |
|
4659 * octave.cc (parse_and_execute): Don't reset value of |
|
4660 saving_history here. |
|
4661 (main) Use user_pref.saving_history instead of saving_history. |
|
4662 * variables.cc (parse_fcn_file): Likewise. |
|
4663 * octave-hist.cc (maybe_save_history): Likewise. |
|
4664 Don't save history if input_from_startup_file. |
|
4665 |
|
4666 Mon Nov 27 23:05:52 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
4667 |
|
4668 * resource.cc: Include systime.h before <sys/resource.h>. |
|
4669 |
|
4670 Tue Nov 14 14:09:40 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4671 |
|
4672 * error.cc: Include cstring. |
|
4673 |
|
4674 * tree-expr.cc (print_code): Decrement indent level after printing |
|
4675 function body. |
|
4676 |
|
4677 * Makefile.in: Remove references to oct-str.cc, oct-str.h, and |
|
4678 Array-string.cc. |
|
4679 |
|
4680 * tree-const.h: Don't include oct-str.h. |
|
4681 |
|
4682 Mon Nov 6 11:16:49 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4683 |
|
4684 * parse.y (make_plot_command, finish_colon_expression, |
|
4685 make_unwind_protect, make_try_command, make_for_command, |
|
4686 make_break_command, make_continue_command, make_return_command, |
|
4687 start_if_command, finish_if_command, make_elseif_clause, |
|
4688 make_simple_assignment, make_multi_val_ret, start_function_def, |
|
4689 frob_function_def, finish_function_def, start_matrix, |
|
4690 finish_matrix): New functions. Use them in the grammar to clean |
|
4691 things up a bit. Possibly convert matrix lists, colon |
|
4692 expressions, binary expressions, and unary expressions to constant |
|
4693 values. |
|
4694 (tree_matrix_type): Delete. |
|
4695 (simple_expr1): Handle all expression stuff here, including |
|
4696 assignments. |
|
4697 (simple_expr): Just check to see that simple_expr1 produced |
|
4698 something useful. |
|
4699 |
|
4700 * tree-plot.cc, tree-plot.h: Move most simple constructors to the |
|
4701 header file. |
|
4702 |
|
4703 * tree-expr.h (tree_expression::is_constant): Move virtual |
|
4704 function definition here. |
|
4705 (tree_fvc::is_constant): From here. |
|
4706 (tree_expression::is_matrix_constant): New virtual function. |
|
4707 (tree_expression::is_range_constant): New virtual function. |
|
4708 * tree-expr.cc (tree_matrix::is_matrix_constant): New function. |
|
4709 * tree-expr.cc (tree_colon_expression::is_range_constant): New |
|
4710 function. |
|
4711 |
|
4712 Fri Nov 3 03:42:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4713 |
|
4714 * utils.cc, utils.h (jump_to_top_level): Declare as extern "C". |
|
4715 |
|
4716 * tree-const.h (tree_constant::eval ()): Only mutate if printing. |
|
4717 |
|
4718 * tree-const.cc (TC_REP::tree_constant_rep (const Complex&), |
|
4719 TC_REP::tree_constant_rep (const ComplexMatrix&), |
|
4720 TC_REP::tree_constant_rep (const ComplexDiagMatrix&), |
|
4721 TC_REP::tree_constant_rep (const ComplexRowVector&), |
|
4722 TC_REP::tree_constant_rep (const ComplexColumnVector&)): |
|
4723 Also check to see if we can convert to scalar_constant, not just |
|
4724 complex_scalar_constant. |
|
4725 |
|
4726 * user-prefs.h (user_preferences): New field, `exec_path'. |
|
4727 * user-prefs.cc (init_user_prefs): Initialize it. |
|
4728 (sv_exec_path): New function. |
|
4729 * variables.cc (install_builtin_variables): Add DEFUN for EXEC_PATH. |
|
4730 (default_exec_path): New function. |
|
4731 * octave.cc (exec_path): New global variable. |
|
4732 Don't set and putenv() exec path here. |
|
4733 (long_opts): Add --exec-path option. |
|
4734 (main): Handle it. |
|
4735 (initialize_globals): Set default value here. |
|
4736 |
|
4737 * user-prefs.h (user_preferences): New field, `info_prog'. |
|
4738 * user-prefs.cc (init_user_prefs): Initialize it. |
|
4739 (sv_info_prog): New function. |
|
4740 * variables.cc (install_builtin_variables): Add DEFUN for INFO_PROGRAM. |
|
4741 (default_info_prog): New function. |
|
4742 * octave.cc (info_prog): New global variable. |
|
4743 (initialize_globals): Set default value here. |
|
4744 (long_opts): Add --info-prog option. |
|
4745 (main): Handle it. |
|
4746 * help.cc (try_info): Use user_pref.info_prog here. |
|
4747 |
|
4748 * octave.cc (initialize_globals): Put arch_dir and bin_dir ahead |
|
4749 of shell_path when resetting PATH. |
|
4750 |
|
4751 Thu Nov 2 04:30:13 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4752 |
|
4753 * f-rand.cc (Frandn): New function. |
|
4754 (do_initialization): New function. |
|
4755 (do_rand): New function for doing the real work. |
|
4756 (Frand): Use it. |
|
4757 |
|
4758 * octave.cc (parse_and_execute): New arg, warn_for. If given, |
|
4759 print message if file cannot be opened. |
|
4760 Set curr_fcn_file_full_name here. |
|
4761 (Fsource): Pass extra arg to parse_and_execute to get warning message. |
|
4762 |
|
4763 * tree-const.h: Handle line and column info for double, Complex, |
|
4764 and char* constants. |
|
4765 |
|
4766 * parse.y (maybe_convert_to_ans_assign): Pass along line and |
|
4767 column info from expression. |
|
4768 |
|
4769 * parse.y (make_constant): New function. |
|
4770 (simple_expr1, word_list): Use it. |
|
4771 |
|
4772 * input.cc, input.h (curr_fcn_file_full_name): New global. |
|
4773 * variables.cc (load_fcn_from_file): Set it here. |
|
4774 * parse.y (func_def2, yyerror, maybe_warn_missing_semi): Use it. |
|
4775 (func_def2): If !reading_fcn_file, don't call strcmp if |
|
4776 curr_fcn_file_name is 0. |
|
4777 |
|
4778 * octave.cc (Fsource): New function. |
|
4779 (parse_and_execute): Declare file name const char *. |
|
4780 * input.cc (get_input_from_file): Likewise. |
|
4781 |
|
4782 Wed Nov 1 13:54:34 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4783 |
|
4784 * f-filter.cc: New file. |
|
4785 * Makefile.in (DLD_SRC): Add it to the list. |
|
4786 |
|
4787 * sysdep.h (gethostname): Change declaration to match definition |
|
4788 in sysdep.cc. |
|
4789 |
|
4790 * resource.cc: Include sysdep.h here, for octave_NaN. |
|
4791 |
|
4792 Tue Oct 31 02:12:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4793 |
|
4794 * tree-const.cc (TC_REP::assign): After converting rhs to a |
|
4795 numeric type, use the converted value, not the original. |
|
4796 |
|
4797 * dirfns.cc (Fpwd): If nargout == 0, print the directory name |
|
4798 instead of returning it. |
|
4799 |
|
4800 * pager.cc (maybe_page_output): Call maybe_write_to_diary_file here. |
|
4801 (flush_output_to_pager): Not here. |
|
4802 |
|
4803 Mon Oct 30 23:39:43 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4804 |
|
4805 * variables.cc (install_builtin_commands): Add DEFVAR for |
|
4806 echo_executing_commands. |
|
4807 |
|
4808 * octave-hist.cc (do_edit_history): Handle new echo stuff. |
|
4809 * variables.cc (parse_fcn_file): Likewise. |
|
4810 * octave.cc (parse_and_execute): Likewise. |
|
4811 (main): Likewise. |
|
4812 * input.cc (do_input_echo): |
|
4813 (Fecho): New function. |
|
4814 |
|
4815 * tree-expr.cc (tree_function::print_code_function_header, |
|
4816 tree_function::print_code_function_trailer): New functions. |
|
4817 (tree_function::print_code): Use them. |
|
4818 (tree_function::eval): Likewise, if echoing commands. |
|
4819 * tree-misc.cc (tree_statement::maybe_echo_code): New function. |
|
4820 |
|
4821 * user-prefs.h (user_preferences): New field, echo_executing_commands. |
|
4822 (echo_state): New enum, for various types of echoing we do. |
|
4823 * user-prefs.cc (echo_executing_commands): New function. |
|
4824 |
|
4825 * tree-base.cc (print_code_indent): Print PS4 as line prefix. |
|
4826 * help.cc (Ftype): Add unwind_protect for ps4 and set it to "" |
|
4827 before printing code. |
|
4828 |
|
4829 * tree-misc.h (tree_statement_list): New field, function_body. |
|
4830 (tree_statement_list::mark_as_function_body): New function. |
|
4831 * parse.y (func_def3): Mark function bodies. |
|
4832 |
|
4833 * pr-output.cc (octave_print_internal): Undo string escapes when |
|
4834 printing charMatrix as strings. |
|
4835 |
|
4836 Sat Oct 28 17:38:29 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4837 |
|
4838 * utils.h (undo_string_escapes): Add missing const in declaration. |
|
4839 |
|
4840 Fri Oct 27 03:49:44 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4841 |
|
4842 * file-io.cc (next_available_file_number): New stack for keeping |
|
4843 track of next available file number. |
|
4844 (get_next_avail_file_num): New function. |
|
4845 (fopen_file_for_user, fopen_internal, popen_internal, |
|
4846 execute_internal): Use it. |
|
4847 |
|
4848 Mon Oct 23 07:00:09 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4849 |
|
4850 * tree-const.cc (TC_REP::convert_to_matrix_type, |
|
4851 tree_constant::convert_to_matrix_type): New arg, make_complex. |
|
4852 (TC_REP::set_index): New arg, rhs_is_complex. Pass it to |
|
4853 convert_to_matrix_type. |
|
4854 (TC_REP::assign): Pass rhs.is_complex_type() to set_index. |
|
4855 |
|
4856 Thu Oct 19 00:38:38 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4857 |
|
4858 * xpow.cc: Include <climits>. |
|
4859 |
|
4860 * sysdep.cc (Fpause): Do pause even if not interactive. |
|
4861 |
|
4862 * tree-const.cc (TC_REP::assign): Don't make RHS numeric if both |
|
4863 RHS and LHS are strings. |
|
4864 |
|
4865 Wed Oct 18 22:19:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4866 |
|
4867 * f-expm.cc (Fexpm): Avoid taking log of negative number. Also, |
|
4868 don't unnecessarily divide the input matrix by 1.0. |
|
4869 |
|
4870 * input.cc (decode_prompt_string): Recognize \[ and \] too. |
|
4871 (initialize_readline): Bind M-p to history-search-backward and M-n |
|
4872 to history-search-forward. |
|
4873 |
|
4874 Tue Oct 17 04:31:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4875 |
|
4876 * xpow.cc (xpow): Handle integer powers better for complex^double. |
|
4877 (elem_xpow): Likewise. |
|
4878 |
|
4879 * lex.l ({CCHAR}): If nesting_level.top() is BRACE, return ';', |
|
4880 not '\n'. |
|
4881 |
|
4882 Mon Oct 16 19:03:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4883 |
|
4884 * help.cc (Fwhich): Fix doc string. |
|
4885 |
|
4886 * variables.cc (Fexist): Update doc string. |
|
4887 |
|
4888 Sun Oct 15 22:19:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4889 |
|
4890 * Another massive set of changes to support character matrices |
|
4891 with indexing. The Octave_str_object class is no longer used. |
|
4892 Anything having to do with Octave_str_object in the following |
|
4893 files has been changed to use charMatrix instead: octave.h, |
|
4894 load-save.cc, octave.cc, strfns.cc, data.cc, pr-output.h, |
|
4895 pr-output.cc, tree-const.h, dirfns.cc, tree-const.cc, |
|
4896 tree-expr.cc. |
|
4897 |
|
4898 Sat Oct 14 22:28:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4899 |
|
4900 * f-sort.cc (mx_sort): Don't attempt to sort vectors that have |
|
4901 only one element, or matrices that have only one row. |
|
4902 |
|
4903 Thu Oct 12 02:16:58 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4904 |
|
4905 * mappers.cc (install_mapper_functions): Add gammaln as an alias |
|
4906 for lgamma. |
|
4907 |
|
4908 * tree-const.h, tree-const.cc: Massive overhaul of indexing and |
|
4909 indexed assignment functions. |
|
4910 * tc-inlines.h, tc-rep.h: Remove files. |
|
4911 * Makefile.in: Remove mention of them here too. |
|
4912 |
|
4913 * Makefile.in: Include $(TI_SRC) in DEP_SOURCES_3, not |
|
4914 $(TI_SOURCES). |
|
4915 Include $(DLD_SRC) in DEP_SOURCES_3. |
|
4916 Include $(TI_SRC) in DEF_FILES_5. |
|
4917 |
|
4918 Wed Oct 11 01:26:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4919 |
|
4920 * Makefile.in (INCLUDES): Remove tc-inlines.h and tc-rep.h from |
|
4921 the list. |
|
4922 |
|
4923 Mon Oct 9 08:31:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4924 |
|
4925 * lex.l (next_token_is_bin_op): Do match `.+', `.*', etc. |
|
4926 |
|
4927 Sun Oct 8 18:19:56 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4928 |
|
4929 * idx-vector.h, idx-vector.cc: Delete files. |
|
4930 * Makefile.in (SOURCES, INCLUDES): Remove them from lists. |
|
4931 |
|
4932 Fri Oct 6 00:52:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4933 |
|
4934 * f-svd.cc (Fsvd): If nargout == 0 or nargout == 1, don't ask for |
|
4935 U and V. |
|
4936 |
|
4937 Wed Oct 4 00:04:57 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4938 |
|
4939 * f-npsol.cc (Fnpsol, Fnpsol_options): Avoid unused variable |
|
4940 warnings if NPSOL_MISSING. |
|
4941 * f-qpsol.cc (Fqpsol, Fqpsol_options): Likewise for QPSOL_MISSING. |
|
4942 |
|
4943 * Makefile.in (DISTFILES): Add octave.gperf. |
|
4944 |
|
4945 * lex.l (next_token_is_bin_op): Don't ever return true for `.' |
|
4946 since that causes problems with things like [ .1 .1 ]. |
|
4947 |
|
4948 Tue Oct 3 05:30:24 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4949 |
|
4950 * variables.cc (is_valid_function): Avoid setting error_state if |
|
4951 argument is not a string. |
|
4952 |
|
4953 * parse.y (maybe_warn_missing_semi): New function. |
|
4954 (list1, list): Call it if statement not terminated by semicolon. |
|
4955 * tree-misc.h (tree_statement::line, tree_statement::column): |
|
4956 New functions. |
|
4957 * octave.cc (input_from_command_line_file): New global variable. |
|
4958 (main): Set it. |
|
4959 (parse_and_execute): Unwind-protect it and set it to zero. |
|
4960 (eval_string): Likewise. |
|
4961 * variables.cc (parse_fcn_file): Likewise. |
|
4962 |
|
4963 * user-prefs.cc (warn_missing_semicolon): New function. |
|
4964 * user-prefs.h (user_preferences): New field, warn_missing_semicolon. |
|
4965 * variables.cc (install_builtin_variables): DEFVAR it. |
|
4966 |
|
4967 * tree-expr.cc (tree_expression::is_logically_true): Actually use |
|
4968 argument. |
|
4969 |
|
4970 Mon Oct 2 19:55:48 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4971 |
|
4972 * variables.cc (install_builtin_variables): Reduce the default |
|
4973 value of save_precision to 15. |
|
4974 |
|
4975 * variables.cc (builtin_real_scalar_variable): Return 1 for |
|
4976 success, 0 for failure. |
|
4977 |
|
4978 * user-prefs.cc (struct_levels_to_print, set_save_precision, |
|
4979 set_output_max_field_width, set_output_precision): |
|
4980 Change sense of test for builtin_real_scalar_variable return value. |
|
4981 (check_preference): Rename from check_str_pref. Change all callers. |
|
4982 Accept value of 0 to be the same as "false" and nonzero to be the |
|
4983 same as "true". |
|
4984 Delete val to avoid memory leak. |
|
4985 * variables.cc (install_builtin_variables): Change initial values |
|
4986 from "true" to 1, "false" to 0. |
|
4987 |
|
4988 * variables.cc (install_builtin_variables): Add DEFVAR for |
|
4989 gnuplot_has_multiplot. |
|
4990 |
|
4991 * user-prefs.h (user_preferences): New field, |
|
4992 `gnuplot_has_multiplot'. |
|
4993 * user-prefs.cc (init_user_prefs): Initialize it. |
|
4994 (gnuplot_has_multiplot): New function. |
|
4995 |
|
4996 Sat Sep 30 16:52:57 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
4997 |
|
4998 * oct-gperf.h, octave.gperf: Newfiles. |
|
4999 * Makefile.in (DISTFILES): Add octave.gperf. |
|
5000 (INCLUDES): Add oct-gperf.h. |
|
5001 (oct-gperf.h): New rule. |
|
5002 (local-dist, dist): Depend on oct-gperf.h. |
|
5003 * lex.l (is_keyword): Use perfect hash function to lookup |
|
5004 keywords. |
|
5005 |
|
5006 Fri Sep 29 04:36:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
5007 |
|
5008 * version.h (OCTAVE_NAME_AND_VERSION): Add TARGET_HOST_TYPE to this. |
|
5009 |
|
5010 Thu Sep 28 00:03:51 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
5011 |
|
5012 * tree-expr.cc (tree_expression::is_logically_true): New function. |
|
5013 * tree-cmd.cc (tree_while_command::eval): Use it instead of |
|
5014 handling the test directly here. |
|
5015 * tree-misc.cc (tree_if_clause::eval): Likewise |
|
5016 |
|
5017 * tree-const.cc (TC_REP::force_numeric): Don't try to print value |
|
5018 of str_obj with %s. |
|
5019 |
|
5020 * error.cc (buffer_error_messages): Rename from |
|
5021 suppress_octave_error_messages. |
|
5022 (error_message_buffer): New global variable. |
|
5023 (verror): Handle buffering of messages. |
|
5024 (handle_message): New function. |
|
5025 (Ferror, Fwarning, Fusage): Use it instead of duplicating code. |
|
5026 |
|
5027 * octave.cc (Feval): Buffer error messages instead of supressing them. |
|
5028 |
|
5029 * lex.l (is_keyword): Recognize `try', `catch', and `end_try_catch'. |
|
5030 * parse.y (TRY, CATCH): New tokens. |
|
5031 (command): Recognize try-catch block. |
|
5032 (end_error): Add cases for unwind_protect_end and try_catch_end. |
|
5033 * token.h (end_tok_type): New field, try_catch_end. |
|
5034 * tree-cmd.h, tree-cmd.cc (tree_try_catch): New class. |
|
5035 * variables.cc (bind_global_error_variable): New Function. |
|
5036 (clear_global_error_variable): Likewise. |
|
5037 (install_builtin_variables): Add DEFCONST for __error_text__. |
|
5038 * help.cc (keywords): Add `try', `catch', and `end_try_catch'. |
|
5039 |
|
5040 * tree-cmd.cc (tree_unwind_protect::eval): Undo previous change. |
|
5041 |
|
5042 * dirfns.cc (Freaddir, Fmkdir, Frmdir): |
|
5043 Do tilde expansion on the argument. |
|
5044 |
|
5045 Tue Sep 26 00:10:29 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
5046 |
|
5047 * f-dassl.cc, f-fsolve.cc, f-lsode.cc, f-npsol.cc, f-quad.cc: |
|
5048 Don't try to figure out if the user-supplied functions take the |
|
5049 correct number of arguments. Simply let the call fail. |
|
5050 * variables.cc (takes_correct_nargs): Delete unused function. |
|
5051 * tree-expr.cc (tree_builtin::eval): Don't complain for too many |
|
5052 arguments to mapper functions. |
|
5053 * tree-expr.h, tree-expr.cc (tree_builtin, tree_function, tree_fvc): |
|
5054 Delete unused function max_expected_args. |
|
5055 |
|
5056 * defun.h (DEFUN): Delete unnecessary args nargin_min and nargout_max. |
|
5057 New arg unused_arg_flags. |
|
5058 (DEFUN_TEXT): Likewise. |
|
5059 * defun-dld.h (DEFUN_DLD_BUILTIN): Likewise. |
|
5060 * defun-int.h (DEFUN_INTERNAL, DECLARE_FUN, DEFINE_FUN_STRUCT): |
|
5061 Do the real work. |
|
5062 |
|
5063 * data.cc, dirfns.cc, dynamic-ld.cc, error.cc, f-balance.cc, |
|
5064 f-chol.cc, f-colloc.cc, f-dassl.cc, f-det.cc, f-eig.cc, f-expm.cc, |
|
5065 f-fft.cc, f-fft2.cc, f-find.cc, f-fsolve.cc, f-fsqp.cc, |
|
5066 f-givens.cc, f-hess.cc, f-ifft.cc, f-ifft2.cc, f-inv.cc, f-log.cc, |
|
5067 f-lpsolve.cc, f-lsode.cc, f-lu.cc, f-minmax.cc, f-npsol.cc, |
|
5068 f-pinv.cc, f-qpsol.cc, f-qr.cc, f-quad.cc, f-qzval.cc, f-rand.cc, |
|
5069 f-schur.cc, f-sort.cc, f-svd.cc, f-syl.cc, file-io.cc, help.cc, |
|
5070 input.cc, lex.l, load-save.cc, mappers.cc, octave-hist.cc, |
|
5071 octave.cc, octave.h, pager.cc, pr-output.cc, resource.cc, |
|
5072 sighandlers.cc, strfns.cc, sysdep.cc, timefns.cc, token.cc, |
|
5073 tree-const.cc, tree-expr.cc, tree-expr.h, tree-plot.cc, |
|
5074 unwind-prot.cc, unwind-prot.h, utils.cc, variables.cc, |
|
5075 variables.h, version.h, xdiv.cc: |
|
5076 Avoid unused variable warnings. |
|
5077 |
|
5078 * tree-expr.h (tree_oct_obj::print_value (ostream&)): |
|
5079 Delete name of unused arg. |
|
5080 (tree_fvc::save (ostream&, int, int): Likewise. |
|
5081 |
|
5082 * tree-const.h (tree_constant::tree_constant (magic_colon)): |
|
5083 Delete name of unused arg. |
|
5084 (tree_constant::tree_constant (all_va_args)): Likewise |
|
5085 (ColumnVector vector_value (int, int)): Likewise. |
|
5086 (ComplexColumnVector vector_value (int, int)): Likewise. |
|
5087 (Octave_object::eval (int, int, const Octave_object&): Likewise. |
|
5088 |
|
5089 * octave.cc (execute_startup_files): Look for octaverc first in |
|
5090 site/m, then in $(version)/m. |
|
5091 * variables.cc (get_local_site_defaults): New function. |
|
5092 * defaults.h.in (OCTAVE_LOCALFCNFILEDIR, OCTAVE_LOCALSTARTUPFILEDIR): |
|
5093 New macros. |
|
5094 * Makefile.in (defaults.h): Also substitute ${localfcndir}. |
|
5095 |
|
5096 Mon Sep 25 17:01:03 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
5097 |
|
5098 * variables.cc (install_builtin_variables): Add DEFCONST for "e". |
|
5099 |
|
5100 Fri Sep 22 02:18:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
5101 |
|
5102 * dirfns.cc (Fls): Delete ls_command after using it, not before. |
|
5103 |
|
5104 * input.h, input.cc (gnu_readline): Don't declare gnu_readline |
|
5105 `extern "C"'. |
|
5106 |
|
5107 * sysdep.h: Only declare gethostname if it is missing, then don't |
|
5108 declare it `extern "C"'. |
|
5109 |
|
5110 * dirfns.cc: Don't declare strerror(). |
|
5111 |
|
5112 * input.cc (command_generator): Use malloc, not xmalloc. Don't |
|
5113 declare xmalloc. |
|
5114 (gnu_readline): Don't declare this `extern "C"'. |
|
5115 |
|
5116 * octave-hist.cc: Don't declare history_get(). It is now in |
|
5117 readline/history.h. |
|
5118 |
|
5119 * input.cc: Don't declare history_get(). It is now in |
|
5120 readline/readline.h. |
|
5121 |
|
5122 * resource.cc: Don't surround include of sys/resource.h in |
|
5123 `extern "C" { }'. |
|
5124 |
|
5125 * fnmatch.h [__cplusplus]: Surround contents in `extern "C" { }'. |
|
5126 * load-save.cc, symtab.cc, variables.cc: Don't surround |
|
5127 fnmatch.h include in `extern "C" { }'. |
|
5128 |
|
5129 * help.cc: Don't #undef __FUNCTION_DEF before including |
|
5130 readline/tilde.h. |
|
5131 |
|
5132 * dirfuns.cc, file-io.cc, help.cc, load-save.cc, octave-hist.cc, |
|
5133 sysdep.cc, tree-plot.cc, utils.cc, variables.cc: |
|
5134 Don't surround readline includes in `extern "C" { }'. |
|
5135 |
|
5136 * sysdep.cc: Move all include statements to top of file. |
|
5137 |
|
5138 Tue Sep 19 01:58:21 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
5139 |
|
5140 * octave.cc (Fsystem): Use iprocstream *, and unwind_protect it. |
|
5141 * pager.cc (flush_output_to_pager): Likewise. |
|
5142 * dirfns.cc (Fls): Likewise. |
|
5143 * tree-plot.cc (plot_stream): Now a pointer. |
|
5144 (open_plot_stream): Deal with it. |
|
5145 (send_to_plot_stream, cleanup_tmp_files, do_external_plotter_cd): |
|
5146 Likewise. |
|
5147 |
|
5148 * procstream.cc (cleanup_iprocstream, cleanup_oprocstream): |
|
5149 New functions. |
|
5150 |
|
5151 * procstream.h, procstream.cc (class iprocstream, class oprocstream): |
|
5152 Keep track of pbuf. Initialize it to 0 in default constructors, |
|
5153 delete it in destructor. Don't call close in destructor. |
|
5154 |
|
5155 * sighandlers.cc (octave_set_signal_handler): New function. |
|
5156 Use this name instead of signal everywhere. |
|
5157 * help.cc (try_info): Likewise. |
|
5158 * pager.cc (flush_output_to_pager): Likewise. |
|
5159 * octave.cc (main): Likewise. |
|
5160 * octave-hist.cc (do_edit_history): Likewise. |
|
5161 |
|
5162 * input.cc (initialize_readline): Set rl_paren_string_delimiters |
|
5163 to avoid treating single quotes as string delimiters when doing |
|
5164 paren matching. |
|
5165 |
|
5166 * Makefile.in (SOURCES): Don't list Map.cc or SLStack.cc here. |
|
5167 |
|
5168 * tree-const.cc: Do include utils.h. |
|
5169 |
|
5170 * sysdep.cc: Don't surround terminal includes in extern "C". |
|
5171 Include them before readline.h. |
|
5172 |
|
5173 * Map.h: Don't include utils.h. |
|
5174 (CHNode::CHNode (const char*, const C&, CHNode *t): |
|
5175 Do strsave() inline. |
|
5176 |
|
5177 * input.cc (generate_possible_completions): Generate name list |
|
5178 even when text == 0. |
|
5179 (operate_and_get_next): Don't declare history_stifled, call |
|
5180 history_is_stifled () instead. |
|
5181 Don't declare history_length, or max_input_history either. |
|
5182 Check (where >= history_length - 1) too, as in recent versions of |
|
5183 bash. |
|
5184 |
|
5185 * user-prefs.h (user_prefs): New field, `completion_append_char'. |
|
5186 * user-prefs.cc (init_user_prefs): Initialize it. |
|
5187 (sv_completion_append_char): New function. |
|
5188 * variables.cc (install_builtin_variables): Install |
|
5189 completion_append_char. |
|
5190 * input.cc (command_generator): Use it. |
|
5191 |
|
5192 * SLList-expr.cc, SLList-misc.cc, SLList-plot.cc, SLList-tc.cc, |
|
5193 DLList-fi.cc: Include config.h. |
|
5194 * DLList-fi.cc: Include file-info.h, not file-io.h. |
|
5195 |
|
5196 Mon Sep 18 11:01:24 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
5197 |
|
5198 * octave.h (clean_up_and_exit): Tag with NORETURN instead of using |
|
5199 typedef trick. |
|
5200 * error.h (panic): Likewise. |
|
5201 * utils.h (jump_to_top_level): Likewise. |
|
5202 |
|
5203 * file-io.h: Protect from multiple includes with octave_file_io, |
|
5204 not octave_files. |
|
5205 |
|
5206 * file-info.h (class file_info): Convert to using std C++ string |
|
5207 class from char *. |
|
5208 * file-info.cc: Likewise. Don't include utils.h. |
|
5209 * file-io.cc (return_valid_file, fopen_file_for_user, |
|
5210 fflush_internal, do_scanf): Use operator ==, not strcmp. |
|
5211 (close_files): Call error with file.name ().data (), |
|
5212 not file.name (). |
|
5213 (freport_internal): Call form with file.mode ().data () and |
|
5214 file.name ().data (). |
|
5215 |
|
5216 * file-io.cc, file-io.h: Extract file_info class. |
|
5217 * file-info.cc, file-info.h: New files for file_info class. |
|
5218 |
|
5219 * user-prefs.h (user_prefs): New field, `beep_on_error'. |
|
5220 * user-prefs.cc (init_user_prefs): Initialize it. |
|
5221 (beep_on_error): New function. |
|
5222 * variables.cc (install_builtin_variables): Install beep_on_error. |
|
5223 * octave.cc (maximum_braindamage): Set beep_on_error to "true". |
|
5224 * error.cc (verror): Conditionally beep. |
|
5225 (error): Don't reset error_state until after verror is called. |
|
5226 |
|
5227 Sun Sep 17 16:41:25 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
5228 |
|
5229 * load-save.cc (read_mat_binary_data, read_ascii_data, |
|
5230 save_ascii_data, read_binary_data, save_binary_data): |
|
5231 Handle string arrays. |
|
5232 |
|
5233 Fri Sep 15 00:24:19 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
5234 |
|
5235 * user-prefs.cc (struct_levels_to_print, |
|
5236 set_output_max_field_width, set_output_precision, |
|
5237 set_save_precision): Eliminate unecessary kludge variable. |
|
5238 |
|
5239 * variables.cc (gobble_leading_white_space): New arg, |
|
5240 in_parts. Change all callers. |
|
5241 |
|
5242 * lex.l (HELP_FCN): Delete start state. The `help' command is now |
|
5243 handled the same as any other text-style function. |
|
5244 |
|
5245 * gripes.cc (gripe_invalid_value_specified): New function |
|
5246 * user-prefs.cc: Use it. |
|
5247 |
|
5248 * sysdep.cc (octave_words_big_endian): New global variable. |
|
5249 (ten_little_endians): New function. |
|
5250 (sysdep_init): Call it. |
|
5251 * load-save.cc (words_big_endian): Use this at run-time instead of |
|
5252 depending on WORDS_BIGENDIAN at compile-time. |
|
5253 |
|
5254 * symtab.h (SYMTAB_VARIABLES): New macro. |
|
5255 * variables.cc (Fclear): Use it instead of just |
|
5256 symbol_def::USER_VARIABLE when looking for variables. |
|
5257 |
|
5258 * octave.cc (main): If there is a file to execute, set |
|
5259 program_invocation_name and program_name to the name of the file |
|
5260 and argv to the remaining args. |
|
5261 (intern_argv): Only define argv if there are some remaining |
|
5262 arguments. |
|
5263 |
|
5264 * defun.h (DEFVAR_INT): New macro. |
|
5265 (DEFVAR): Define in terms of DEFVAR_INT. Delete args protect and |
|
5266 eternal. |
|
5267 (DEFCONST): New macro. |
|
5268 * variables.cc (install_builtin_variables): Use DEFCONST where |
|
5269 appropriate, change uses of DEFVAR to match new definition. |
|
5270 |
|
5271 * variables.cc (bind_builtin_variable): New variant that accepts |
|
5272 const tree_constant& value. |
|
5273 (install_builtin_variables): Properly alphabetize DEFVAR for this. |
|
5274 |
|
5275 * octave.cc (short_opts): Prefix with `+' to prevent argv |
|
5276 permutation. |
|
5277 (main): Don't use readline if forced_interactive. |
|
5278 (traditional): New file-scope variable. |
|
5279 (long_opts, usage_string, verbose_usage): Add `--traditional'. |
|
5280 (maximum_braindamage): New function. |
|
5281 (main): Call it if --traditional. |
|
5282 |
|
5283 * input.cc (do_input_echo): Print prompt correctly when |
|
5284 forced_interactive is either true or false. |
|
5285 |
|
5286 Thu Sep 14 00:54:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
5287 |
|
5288 * data.cc (Fstruct_elements): New function. |
|
5289 |
|
5290 * file-io.cc (Fumask): New function. |
|
5291 |
|
5292 * dirfns.cc (Fmkdir, Frmdir, Frename): New functions. |
|
5293 |
|
5294 * Makefile.in: Add rules and dependencies for building safe-stat.o |
|
5295 and safe-lstat.o. |
|
5296 |
|
5297 * mkdir.c, rename.c, rmdir.c: New files. |
|
5298 * Makefile.in (SOURCES): Include them in the list. |
|
5299 |
|
5300 * safe-xstat.hin, safe-xstat.cin: New files |
|
5301 * Makefile.in (DISTFILES): Include them in the list. |
|
5302 |
|
5303 * sighandlers.cc (octave_new_handler): Try to continue on memory |
|
5304 exhausted errors. |
|
5305 (sigfpe_handler): Improve error message. |
|
5306 |
|
5307 * Makefile.in: Use `ifndef omit_deps', not `ifndef $(omit_deps)'. |
|
5308 |
|
5309 * dirfns.cc (Freaddir): New function. |
|
5310 |
|
5311 * f-sort.cc: Complete rewrite. Now uses stable sort algorithm and |
|
5312 correctly handles complex matrices containing columns of all real |
|
5313 numbers. |
|
5314 |
|
5315 Wed Sep 13 03:16:40 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
5316 |
|
5317 * arith-ops.cc: Unconditionally #define DIVIDE_BY_ZERO_ERROR. |
|
5318 |
|
5319 * variables.cc (install_builtin_variables): Unconditionally |
|
5320 install NaN and nan. |
|
5321 |
|
5322 * mappers.cc (xisinf): Don't do bogus things if isinf, isnan, or |
|
5323 finite are missing. |
|
5324 (xfinite): Likewise. |
|
5325 |
|
5326 * sysdep.cc (octave_ieee_init): Don't set octave_NaN and |
|
5327 octave_Inf if values are not available. |
|
5328 |
|
5329 * resource.cc (mk_ru_map): Don't use ru_ or tv_ as prefixes to |
|
5330 Octave names for the structure members. |
|
5331 |
|
5332 Tue Sep 12 02:04:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
5333 |
|
5334 * procstream.h, procstream.cc: Rewrite. |
|
5335 |
|
5336 Mon Sep 11 18:42:05 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
5337 |
|
5338 * filemode.c: New file, from Emacs. |
|
5339 * Makefile.in (SOURCES): Add it to the list. |
|
5340 |
|
5341 * file-io.cc (Fstat, Flstat, mk_stat_map): New functions. |
|
5342 |
|
5343 * timefns.cc (mk_tm_map): Don't use tm_ as prefix to Octave names |
|
5344 for these structure members. |
|
5345 (extract_tm): Likewise. |
|
5346 (Flocaltime): Fix doc string to match. |
|
5347 |
|
5348 Thu Sep 7 02:04:27 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
5349 |
|
5350 * load-save.cc (save_user_variables): New function. |
|
5351 * sighandlers.cc (my_friendly_exit): Call it before exiting. |
|
5352 (sigfpe_handler): New function. |
|
5353 (install_signal_handlers) [__alpha__]: Install it. |
|
5354 |
|
5355 Wed Sep 6 14:35:10 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
5356 |
|
5357 * tree-cmd.cc (tree_unwind_protect::eval): Ignore errors and |
|
5358 suppress error messages while executing first block of |
|
5359 unwind_protect commands. |
|
5360 |
|
5361 * parse.y (end_error): Add missing case for unwind_protect_end. |
|
5362 |
|
5363 * tree-expr.cc (tree_builtin::eval): Complain if no arguments |
|
5364 given for mapper functions. |
|
5365 (tree_fvc::lookup_map_element): Print error message for invalid |
|
5366 structure reference. |
|
5367 |
|
5368 Tue Sep 5 02:04:12 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
5369 |
|
5370 * file-io.cc, input.cc, load-save.cc, octave.cc, sysdep.cc, |
|
5371 variables.cc, octave-hist.cc, utils.cc, f-schur.cc, f-rand.cc, |
|
5372 f-quad.cc, f-qpsol.cc, f-npsol.cc, f-lsode.cc, f-fsolve.cc, |
|
5373 f-dassl.cc, f-colloc.cc, f-balance.cc, error.cc, data.cc: |
|
5374 Add const qualifiers where appropriate. |
|
5375 |
|
5376 * dirfns.h: Include <ctime>, for time_t. |
|
5377 |
|
5378 * tempname.c, file-io.cc, help.cc, input.cc, octave-hist.cc, |
|
5379 octave.cc, sighandlers.cc, sysdep.cc, tree-expr.cc, tree-misc.cc, |
|
5380 tree-plot.cc, utils.cc, variables.cc, sysdir.h: |
|
5381 Move #include <sys/type.h> inside #ifdef HAVE_UNISTD_H. |
|
5382 |
|
5383 * syswait.h: New file. |
|
5384 * Makefile.in (INCLUDES): Add it to the list. |
|
5385 * file-io.cc, sighandlers.cc: Use it instead of including |
|
5386 sys/wait.h directly. |
|
5387 |
|
5388 * octave.cc: Include statdefs.h, not sys/stat.h. |
|
5389 |
|
5390 * sysdir.h: New file. |
|
5391 * Makefile.in (INCLUDES): Add it to the list. |
|
5392 * dirfns.cc, utils.cc: Use it instead of including the headers |
|
5393 directly. |
|
5394 |
|
5395 * pathlen.h: New file. |
|
5396 * Makefile.in (INCLUDES): Add it to the list. |
|
5397 * dirfns.cc, input.cc: Use it instead of including sys/param.h |
|
5398 directly. |
|
5399 * utils.cc: Don't include sys/param.h |
|
5400 |
|
5401 Sun Sep 3 18:52:59 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
5402 |
|
5403 * tree-const.cc (TC_REP::string_value): Return const char*, not |
|
5404 char *. |
|
5405 |
|
5406 * All .cc, .y, .l, .y files: Include <cctype>, not <ctype.h>, and |
|
5407 so on for all new C++ versions of these standard C headers. |
|
5408 |
|
5409 Thu Aug 31 17:09:38 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
5410 |
|
5411 * pathsearch.h: Also hide `string'. |
|
5412 |
|
5413 * oct-str.cc, oct-str.h: New files. |
|
5414 * Makefile.in: Add to the appropriate lists. |
|
5415 * tc-rep.h: Change char* to Octave_string* in anonymous union. |
|
5416 * tree-expr.cc (tree_matrix::eval): Handle multiple element strings. |
|
5417 * strfns.cc (toascii): Likewise. |
|
5418 * tree-const.cc (print_as_string): Likewise. |
|
5419 (TC_REP::force_numeric, TC_REP::rows, TC_REP::columns, |
|
5420 TC_REP::double_value, TC_REP::complex_value, TC_REP::matrix_value, |
|
5421 TC_REP::complex_matrix_value, TC_REP::convert_to_str): Likewise. |
|
5422 (TC_REP::print): Call octave_print_internal for string case. |
|
5423 (all_strings): New function. |
|
5424 Fix constructors to use new data structure. |
|
5425 * pr-output.cc (octave_print_internal): Add version for strings. |
|
5426 * Array-string.cc: New file. |
|
5427 |
|
5428 * octave.cc (octave_argv): New global variable. |
|
5429 (intern_argv): New function. |
|
5430 (main): Fix argument parsing to do the right thing for arguments |
|
5431 to executable scripts. |
|
5432 * variables.cc: Add DEFUNs for argv, program_invocation_name, and |
|
5433 program_name. |
|
5434 |
|
5435 * defun.h (DEFVAR): Fix comment. |
|
5436 |
|
5437 Thu Aug 24 00:02:00 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
5438 |
|
5439 * file-io.cc (fgets_internal): Make second arg optional. Add |
|
5440 optional arg `strip_final_newline'. |
|
5441 (Ffgets): Change to match new definition of fgets_internal. |
|
5442 (Ffgetl): Implement using the new fgets_internal. |
|
5443 |
|
5444 * f-rand.cc (Frand): Update code for sizing return value to match |
|
5445 that used by ones, zeros, and eye. |
|
5446 |
|
5447 Wed Aug 23 19:52:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
5448 |
|
5449 * tree-const.cc (do_vector_assign): Don't crash for |
|
5450 A(range) = scalar, or A(matrix) = scalar. |
|
5451 |
|
5452 * f-dassl.cc (set_dassl_option): Rename from do_dassl_option. |
|
5453 (show_dassl_option): New function. |
|
5454 (Fdassl_options): Handle single arg. |
|
5455 * f-fsolve.cc (set_fsolve_option): Rename from do_fsolve_option. |
|
5456 (show_fsolve_option): New function. |
|
5457 (Ffsolve_options): Handle single arg. |
|
5458 * f-fsqp.cc (set_fsqp_option): Rename from do_fsqp_option. |
|
5459 (show_fsqp_option): New function. |
|
5460 (Ffsqp_options): Handle single arg. |
|
5461 * f-lpsolve.cc (set_lpsolve_option): Rename from do_lpsolve_option. |
|
5462 (show_lpsolve_option): New function. |
|
5463 (Flpsolve_options): Handle single arg. |
|
5464 * f-lsode.cc (set_lsode_option): Rename from do_lsode_option. |
|
5465 (show_lsode_option): New function. |
|
5466 (Flsode_options): Handle single arg. |
|
5467 * f-npsol.cc (set_npsol_option): Rename from do_npsol_option. |
|
5468 (show_npsol_option): New function. |
|
5469 (Fnpsol_options): Handle single arg. |
|
5470 * f-qpsol.cc (set_qpsol_option): Rename from do_qpsol_option. |
|
5471 (show_qpsol_option): New function. |
|
5472 (Fqpsol_options): Handle single arg. |
|
5473 * f-quad.cc: (set_quad_option): Rename from do_quad_option. |
|
5474 (show_quad_option): New function. |
|
5475 (Fquad_options): Handle single arg. |
|
5476 (Fquad): Doc fix. |
|
5477 |
|
5478 Tue Aug 22 00:38:05 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
5479 |
|
5480 * tree-plot.cc (do_external_plotter_cd): New function. |
|
5481 * dirfns.cc (octave_change_to_directory): New function. If cd is |
|
5482 successful, also call do_external_plotter_cd(). |
|
5483 (Fcd): Call octave_change_to_directory(), not change_to_directory(). |
|
5484 |
|
5485 * pr-output.cc (pr_any_float): Change declaration of counter to |
|
5486 size_t to avoid gcc warnings. |
|
5487 |
|
5488 * idx-vector.cc, octave-hist.cc, tree-const.cc, tree-expr.cc, |
|
5489 tree-misc.cc, utils.cc, xpow.cc, Map.cc: |
|
5490 Update for change in for loop variable scope for gcc 2.7.0. |
|
5491 |
|
5492 Mon Aug 21 19:34:53 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
5493 |
|
5494 * tree-const.cc (fortran_style_matrix_assignment): Properly handle |
|
5495 case of complex LHS, real RHS. |
|
5496 |
|
5497 * Makefile.in: Only include dependency files if $(omit_deps) is |
|
5498 not set. |
|
5499 |
|
5500 Wed Jul 5 00:03:58 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
5501 |
|
5502 * sysdep.cc: Explicitly include string.h. |
|
5503 |
|
5504 Sun Jun 25 00:18:10 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5505 |
|
5506 * load-save.cc (too_large_for_float (const Matrix&)): |
|
5507 Extract elements as doubles, not Complex. |
|
5508 |
|
5509 Sat Jun 24 22:59:15 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5510 |
|
5511 * pr-output.cc (any_element_is_inf_or_nan): Declare extern, not static. |
|
5512 * f-svd.cc (Fsvd): Call here to avoid trying to take SVD of matrix |
|
5513 containing Inf or NaN values. |
|
5514 |
|
5515 * pr-output.cc (bit_format): New file-scope variable. |
|
5516 (set_format, pr_any_float): Handle bit_format. |
|
5517 (octave_print_internal): Handle bit_format like bank_format. |
|
5518 (init_format_state): Initialize bit_format. |
|
5519 (set_format_style): Allow `format bit' and `format native-bit'. |
|
5520 |
|
5521 Thu Jun 8 15:20:26 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5522 |
|
5523 * mappers.cc (arg, imag, signum): If arg is NaN, return NaN. |
|
5524 |
|
5525 Mon May 15 14:47:04 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5526 |
|
5527 * pager.cc (Fdiary): Initialize diary_file here, not in the |
|
5528 file-scope declaration. |
|
5529 |
|
5530 * tree-expr.cc (tree_index_expression::eval): |
|
5531 Handle nargin == 0 the same as other cases. |
|
5532 |
|
5533 Tue May 2 10:02:23 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5534 |
|
5535 * load-save.cc (do_double_format_conversion): Add missing breaks. |
|
5536 (do_float_format_conversion): Likewise. |
|
5537 |
|
5538 Mon May 1 13:50:24 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5539 |
|
5540 * Makefile.in (OCTAVE_LIBS): Add @LIBPLPLOT@ to the list. |
|
5541 |
|
5542 * timefns.cc (Ftime): Handle GETTIMEOFDAY_NO_TZ. |
|
5543 |
|
5544 * Makefile.in (SOURCES): Delete tc-rep.cc, tc-rep-ass.cc, and |
|
5545 tc-rep-idx.cc from the list. |
|
5546 |
|
5547 * tree-const.h: Add #pragma interface. |
|
5548 * tree-const.cc: Add contents of tc-rep.cc, tc-rep-ass.cc, and |
|
5549 tc-idx.cc to this file. Add #pragma implementation. This makes |
|
5550 tree-const.cc large, but makes the final binary smaller. |
|
5551 |
|
5552 * unwind-prot.h unwind-prot.cc token.cc token.h procstream.cc |
|
5553 procstream.h idx-vector.cc idx-vector.h symtab.cc symtab.h |
|
5554 oct-map.cc oct-map.h oct-obj.cc oct-obj.h tree-plot.h tree-plot.cc |
|
5555 tree-misc.cc tree-misc.h tree-expr.cc tree-expr.h tree-cmd.cc |
|
5556 tree-cmd.h tree-base.cc tree-base.h: |
|
5557 Add #pragma interface/implementation. |
|
5558 |
|
5559 * Makefile.in (OCTAVE_LIBS): Delete @LIBINFO@ from list. |
|
5560 * help.cc: Don't include info headers or extern declarations for |
|
5561 functions from info. |
|
5562 (try_info): Call info as a subprocess. Delete second arg. |
|
5563 Handle SIGINT here, not in help_from_info(). |
|
5564 (help_from_info): Complain if info doesn't work. |
|
5565 |
|
5566 * defun-dld.h (DEFUN_DLD_BUILTIN) [OCTAVE_LITE && MAKE_BUILTINS]: |
|
5567 If ! WITH_DLD, simply emit a character string constant. |
|
5568 |
|
5569 Fri Apr 28 15:23:06 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5570 |
|
5571 * lex.l ({IDENT}{S}*): Don't delete tok. That's handled by |
|
5572 strip_trailing_whitespace() now. |
|
5573 (<HELP_FCN>[^ \t\n]*{S}*|<TEXT_FCN>[^ \t\n\;\,]*{S}*): Ditto. |
|
5574 |
|
5575 * pathsearch.h: Include kpathsea/progname.h. |
|
5576 * octave.cc (initialize_globals): Call kpse_set_progname(). |
|
5577 |
|
5578 * token.h: Declare copy constructor and operator = private. |
|
5579 * token.cc: Abort if copy constructor or operator = is used. |
|
5580 |
|
5581 Thu Apr 27 13:54:39 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5582 |
|
5583 * tree-expr.cc (lookup_map_element): Don't list default argument |
|
5584 values here too. |
|
5585 |
|
5586 * pr-output.cc (hex_format): New file-scope variable. |
|
5587 (set_format, pr_any_float): Handle hex_format. |
|
5588 (octave_print_internal): Handle hex_format like bank_format. |
|
5589 (init_format_state): Initialize hex_format. |
|
5590 (set_format_style): Allow `format hex' and `format native-hex'. |
|
5591 |
|
5592 * variables.cc (bind_ans): Create ans_id each time with new and |
|
5593 ask tree_simple_assignment_expression to handle cleaning it up. |
|
5594 This apparently plugs a memory leak. |
|
5595 |
|
5596 * help.cc (Ftype): Don't try to print map constants. Handle |
|
5597 references to structure members. |
|
5598 |
|
5599 Wed Apr 26 12:40:59 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5600 |
|
5601 * input.cc (generate_struct_completions): New function. |
|
5602 (generate_possible_completions): Likewise. |
|
5603 (looks_like_struct): Likewise. |
|
5604 (command_generator): Handle completion of struct variables. |
|
5605 |
|
5606 * tree-expr.h, tree-expr.cc (tree_fvc::lookup_map_element): |
|
5607 Add insert and silent args. |
|
5608 |
|
5609 * oct-map.cc: New file. |
|
5610 * Makefile.in (SOURCES): Add it to the list. |
|
5611 |
|
5612 Mon Apr 24 09:41:02 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5613 |
|
5614 * variables.cc (Fexist): Handle structure references too. |
|
5615 |
|
5616 * tree-const.cc (lookup_map_element (const char*, int, int): |
|
5617 New function. |
|
5618 (lookup_map_element (SLList<char*>&, int, int): New arg, silent. |
|
5619 * tc-rep.cc (lookup_map_element): New arg, silent. If nonzero, |
|
5620 don't call error(). |
|
5621 |
|
5622 * tc-rep.h (is_empty): Define here. |
|
5623 * tree-const.h (is_empty): Hand off to TC_REP::is_empty(). |
|
5624 |
|
5625 * data.cc (Fstruct_contains): Call lookup_map_element on args(0) |
|
5626 instead of extracting the map and calling contains() on it. |
|
5627 |
|
5628 * parse.y (EPLUS, EMINUS): New tokens. |
|
5629 (simple_expr): Handle EPLUS, EMINUS the same as `+' and `-'. |
|
5630 * lex.l (".+", ".-"): New patterns. Match these separately to |
|
5631 disallow using them as unary operators. |
|
5632 |
|
5633 * lex.l (next_token_is_bin_op): Simplify by noting that spacing |
|
5634 only matters for those tokens that can also be unary ops. |
|
5635 |
|
5636 Fri Apr 21 14:34:45 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5637 |
|
5638 * load-save.cc (read_ascii_data): Allow reading of empty |
|
5639 matrices. |
|
5640 |
|
5641 * tc-rep-ass.cc (vector_assignment): Only assert that we are not |
|
5642 doing fortran-style indexing and that nr <= 1 || nc <= 1. |
|
5643 (do_vector_assign): Handle assignment of [] when one dimension is |
|
5644 zero and the other is anything. |
|
5645 |
|
5646 Thu Apr 20 13:56:21 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5647 |
|
5648 * tc-rep-ass.cc (delete_rows, delete_columns): Simply return if |
|
5649 num_to_delete is 0. |
|
5650 |
|
5651 * lex.l (handle_identifier): Don't match plot option keywords |
|
5652 inside parentheses or braces. |
|
5653 |
|
5654 * variables.cc (parse_fcn_file): Also delete tmp_help_txt if |
|
5655 running a script. |
|
5656 |
|
5657 * tree-cmd.h (tree_command): Add destructor. |
|
5658 |
|
5659 * tree-expr.h tree_simple_assignment_expression (lhs_idx_expr): |
|
5660 Hang on to idx_expr, not just its parts so it can be deleted. |
|
5661 (init): Initialize it. |
|
5662 * tree-expr.cc (~tree_simple_assignment_expression): Delete it. |
|
5663 |
|
5664 * tree-expr.h (tree_multi_val_ret, tree_oct_obj, tree_fvc, |
|
5665 tree_identifier, tree_builtin, tree_function): Add destructors. |
|
5666 * tree-expr.cc (tree_function::~tree_function): Delete some stuff. |
|
5667 |
|
5668 * tree-misc.h (tree_va_return_list): Add destructor. |
|
5669 |
|
5670 * octave.cc (__builtin_new, __builtin_delete): Provide our own, |
|
5671 for debugging. |
|
5672 |
|
5673 * utils.cc (strconcat): Don't depend on the return value from |
|
5674 strcat. |
|
5675 (file_in_path): Simplify logic. |
|
5676 |
|
5677 * parse.y (maybe_convert_to_ans_assign): Create ans_id each time |
|
5678 with new and ask tree_simple_assignment_expression to handle |
|
5679 cleaning it up. This apparently plugs a memory leak. |
|
5680 |
|
5681 * lex.l (strip_trailing_whitespace): Declare retval static. |
|
5682 Delete it before saving next string. |
|
5683 |
|
5684 * error.cc (Ferror): Do call error() for empty string args. |
|
5685 (error_1): Don't print anything if fmt is "" or "\n", but do set |
|
5686 the error state appropriately. |
|
5687 |
|
5688 * tree-cmd.cc (tree_unwind_protect::eval): Handle return and break |
|
5689 in the `try' part of the statement. |
|
5690 |
|
5691 Mon Apr 10 19:29:44 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5692 |
|
5693 * f-expm.cc, f-givens.cc, f-qzval.cc, f-syl.cc, f-rand.cc: |
|
5694 Where appropriate, declare Fortran functions to take reference |
|
5695 instead of pointer args. Change callers. |
|
5696 |
|
5697 * mappers.cc: Declare Fortran functions to take reference instead |
|
5698 of pointer args. Change callers. |
|
5699 |
|
5700 * gamma.c, lgamma.c, erfc.c, erf.c, atanh.c, asinh.c, acosh.c: |
|
5701 Declare Fortran functions to take reference instead of pointer |
|
5702 args. |
|
5703 |
|
5704 Sun Apr 9 19:38:53 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5705 |
|
5706 * file-io.cc (Fpopen, Fpclose, Fexecute, Fsync_system, |
|
5707 Fasync_system, Fwaitpid, Fmkfifo, Funlink): New functions. |
|
5708 |
|
5709 * sighandlers.cc (sigchld_handler): New function. |
|
5710 (install_signal_handlers): Add call to install |
|
5711 sigchld_handler. (This is #if 0'd out, waiting for code to help |
|
5712 determine which child exited and what to do about it). |
|
5713 |
|
5714 * tree-expr.h (tree_oct_obj): New class. |
|
5715 |
|
5716 * tree-expr.h (tree_multi_assignment_expression::preserve): New |
|
5717 data member. Add arg with default value to constructors. Change |
|
5718 callers as necessary. |
|
5719 * tree-expr.cc (~tree_multi_assignment_expression): Conditionally |
|
5720 delete lhs. |
|
5721 |
|
5722 * parse.y (make_multi_val_ret): Pass matrix instead of getting it |
|
5723 from the global matrix list. |
|
5724 (expression): Extract matrix from matrix list before calling |
|
5725 make_multi_val_ret(). |
|
5726 |
|
5727 * parse.y (command): Handle new for loop syntax for structures. |
|
5728 |
|
5729 * tree-plot.h (subplot_list): Include tree_print_code() in |
|
5730 initializer lists for constructors. |
|
5731 * tree-expr.h (tree_statement_list, tree_argument_list, |
|
5732 tree_parameter_list, tree_return_list, tree_global_init_list, |
|
5733 tree_if_command_list, ): Likewise. |
|
5734 |
|
5735 * tree-cmd.h (tree_for_command::id_list): New data member. |
|
5736 (tree_for_command (tree_return_list*, tree_expression*, |
|
5737 tree_statement_list*, int, int)): Likewise. |
|
5738 * tree-cmd.cc (tree_for_command::eval): Handle for loops with |
|
5739 structures. |
|
5740 (do_for_loop_once (tree_return_list*, Octave_object&, int&)): |
|
5741 New form for handling for loops with structures. |
|
5742 |
|
5743 * sysdep.cc (octave_ieee_init): Determine floating point format |
|
5744 here. |
|
5745 (native_float_format): New global variable. |
|
5746 (Fisieee): Compute return value from native_float_format, not by |
|
5747 using preprocessor macros. |
|
5748 * sysdep.h (enum floating_point_format): Move declaration here. |
|
5749 * load-save.cc: From here. |
|
5750 Always define all floating point format conversion routines. |
|
5751 (do_double_format_conversion, do_float_format_conversion): |
|
5752 Use native_float_format instead of preprocessor macros. |
|
5753 |
|
5754 Sat Apr 8 15:41:35 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5755 |
|
5756 * Makefile (TEMPLATE_SRC): New variable. |
|
5757 (DISTFILES): Add $(TEMPLATE_SRC). |
|
5758 (SOURCES): Delete Map.cc and SLStack.cc from here. |
|
5759 |
|
5760 * variables.cc (install_builtin_variables): Use OCTAVE_VERSION |
|
5761 instead of version_string to initialize OCTAVE_VERSION. |
|
5762 * version.h (version_string): Delete. |
|
5763 |
|
5764 * getopt.c (_getopt_internal): Initialize indfound to avoid warning. |
|
5765 |
|
5766 Fri Apr 7 15:29:41 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5767 |
|
5768 * tc-inlines.h (REP_RHS_MATRIX): Just check to see if tc is real |
|
5769 or complex. If conversion fails, return. |
|
5770 |
|
5771 Thu Apr 6 00:10:47 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5772 |
|
5773 * data.cc (Fstruct_contains): New function. |
|
5774 |
|
5775 * tc-rep.cc (print_code): Add extra parens around while condition |
|
5776 to avoid warning. |
|
5777 * utils.cc (undo_string_escapes): Likewise. |
|
5778 * input.cc (decode_prompt_string): Likewise. Also rewrite if |
|
5779 statement to avoid warning. |
|
5780 |
|
5781 Tue Apr 4 22:54:17 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5782 |
|
5783 * tree-expr.cc (tree_multi_assignment_expression::eval, |
|
5784 tree_simple_assignment_expression::eval): Call print_constant |
|
5785 even if user_pref.print_answer_id_name is false. |
|
5786 |
|
5787 Mon Apr 3 17:57:14 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5788 |
|
5789 * tc-inlines.h (TC_REP): Avoid redefinition. |
|
5790 |
|
5791 * tree-const.h (do_binary_op, do_unary_op): Declare as friends of |
|
5792 tree_constant class too. |
|
5793 |
|
5794 * tree-plot.h (subplot_using::have_values): Delete data member. |
|
5795 * tree-plot.cc (subplot_using::eval): Always recompute values. |
|
5796 |
|
5797 Fri Mar 31 10:18:32 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5798 |
|
5799 * tc-rep.cc (print): Print open brace for structures here. |
|
5800 * tree-expr.cc (print_constant): Not here. |
|
5801 |
|
5802 * symtab.cc (define): Don't delete arg if sv_fcn fails. |
|
5803 |
|
5804 * tree-const.cc (print): New function. Create ostrstream buffer |
|
5805 and pass it to rep->print(). |
|
5806 * tree-const.h (eval (int)): Call print(), not rep->print(). |
|
5807 * tc-rep.cc (structure_indent_level): New file-scope variable. |
|
5808 (print): New arg, output_buf, is stream to print to. |
|
5809 Print values of structure elements too. |
|
5810 |
|
5811 * user-prefs.h (user_preferences): New field, struct_levels_to_print. |
|
5812 * user-prefs.cc (struct_levels_to_print): New function. |
|
5813 * variables.cc (install_builtin_variables): Add DEFVAR for new |
|
5814 variable struct_levels_to_print. |
|
5815 |
|
5816 * tree-const.cc (print_as_scalar, print_as_structure): Move here |
|
5817 from tree-expr.cc and make extern. |
|
5818 |
|
5819 * tree-expr.cc (print_as_structure): New function. |
|
5820 (print_constant): Use it. |
|
5821 |
|
5822 * tree-expr.cc (print_constant): New arg, print_padding. |
|
5823 (tree_simple_assignment_expression::eval): Use print_constant |
|
5824 instead of duplicating code here. |
|
5825 (tree_multi_assignment_expression::eval): Likewise. |
|
5826 |
|
5827 Thu Mar 30 13:24:11 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5828 |
|
5829 * Makefile.in (SOURCES): Add resource.cc. |
|
5830 * resource.cc: New file, extracted from timefns.cc. |
|
5831 (Fgetrusage): New function. |
|
5832 * timefns.cc (cputime): Delete (now implemented in a function file |
|
5833 using new getrusage function). |
|
5834 |
|
5835 Wed Mar 29 22:52:42 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5836 |
|
5837 * Makefile.in (SOURCES): Add strftime.c. |
|
5838 * strftime.c: New file, from sh-utils distribution. |
|
5839 |
|
5840 * timefns.cc (mk_tm_map, extract_tm, Ftime, Fgmtime, Flocaltime, |
|
5841 Fmktime, Fstrftime): New basic time functions. |
|
5842 (Fclock, Fdate): Delete (now implemented in function files using new |
|
5843 time functions). |
|
5844 |
|
5845 Tue Mar 28 17:51:51 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5846 |
|
5847 * file-io.cc (return_valid_file, do_printf, do_scanf, |
|
5848 fclose_internal, feof_internal, ferror_internal, fflush_internal, |
|
5849 fgets_internal, fopen_internal, fread_internal, freport_internal, |
|
5850 frewind_internal, fseek_internal, ftell_internal, |
|
5851 fwrite_internal): Declare static. |
|
5852 * file-io.h: Delete extern declarations for them. |
|
5853 |
|
5854 Fri Mar 24 09:52:50 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5855 |
|
5856 * pr-output.cc (pr_col_num_header): New function. |
|
5857 (compact_format): New file-scope variable. |
|
5858 (set_format_style): Handle loose and compact formats. |
|
5859 (octave_print_internal (ostream&, const ComplexMatrix&, int)): |
|
5860 Replace duplicate code with call to pr_col_num_header(). |
|
5861 (octave_print_internal (ostream&, const Matrix&, int): Likewise. |
|
5862 (octave_print_internal (ostream&, const Range&, int): Likewise. |
|
5863 |
|
5864 Tue Mar 21 08:44:48 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5865 |
|
5866 * mappers.cc (xgamma): Always use Slatec library function. |
|
5867 * (xlgamma): Likewise. |
|
5868 * Makefile.in (SOURCES): Don't include lgamma.c. |
|
5869 |
|
5870 Fri Mar 17 22:38:39 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5871 |
|
5872 * tc-rep.cc (TC_REP::new): Don't try to keep track of newlist_tail. |
|
5873 Explicitly initialize newlist to zero. |
|
5874 * tree-const.cc (tree_constant::operator new): Likewise. |
|
5875 |
|
5876 Fri Mar 10 12:40:24 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5877 |
|
5878 * tree-cmd.cc (quit_loop_now): Declare inline. |
|
5879 (tree_for_command::do_for_loop_once): Split into two versions, one |
|
5880 for the general case and one for when the loop variable is a |
|
5881 simple identifier. |
|
5882 (DO_LOOP): New macro. Move tests outside of loop. |
|
5883 (tree_for_command::eval): Speed up by checking to see if loop |
|
5884 variable is a simple identifier and by using DO_LOOP. |
|
5885 |
|
5886 * tree-const.h: New union of rep and freeptr. The freeptr element |
|
5887 is used for our custom memory management functions. |
|
5888 |
|
5889 * tc-rep.h: Add freeptr element to anonymous union (for our custom |
|
5890 memory management functions). |
|
5891 |
|
5892 * tree-const.cc (newlist, newlist_grow_size, newlist_tail): New |
|
5893 static variables. |
|
5894 (tree_constant::operator new): Always define to allow more |
|
5895 efficient allocation of single tree_constants. |
|
5896 (tree_constant::operator delete): Likewise, handle deletion of the |
|
5897 memory we allocate. |
|
5898 |
|
5899 * tc-rep.cc (newlist, newlist_grow_size, newlist_tail): New static |
|
5900 variables. |
|
5901 (tree_constant::operator new): Always define to allow more |
|
5902 efficient allocation of single tree_constants. |
|
5903 (tree_constant::operator delete): Likewise, handle deletion of the |
|
5904 memory we allocate. |
|
5905 |
|
5906 Fri Mar 3 14:00:08 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5907 |
|
5908 * error.cc (verror): Terminate output_buf with ends. |
|
5909 |
|
5910 * statdefs.h: Use C-style comment in first line instead of |
|
5911 C++-style comment. |
|
5912 |
|
5913 Mon Feb 27 10:11:18 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5914 |
|
5915 * parse.y (maybe_convert_to_ans_assign): Only lookup ans once. |
|
5916 * variables.cc (bind_ans): New function. |
|
5917 * tree-expr.cc (tree_identifier::eval (int)): Use it here. |
|
5918 (tree_identifier::eval (int, int, const Octave_object&): And here. |
|
5919 |
|
5920 * tree-expr.cc (install_nargin_and_nargout): New function. |
|
5921 * tree-expr.h (tree_function::tree_function (tree_statement_list *, |
|
5922 symbol_table *, int, int)): Call it. |
|
5923 |
|
5924 * tree-expr.cc (tree_function::bind_nargin_and_nargout): New function. |
|
5925 (tree_function::eval): Call it insead of the one from variables.cc. |
|
5926 |
|
5927 * variables.cc (bind_nargin_and_nargout): #if 0 out. |
|
5928 |
|
5929 Sun Feb 26 00:17:06 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5930 |
|
5931 * load-save.cc (Fload, Fsave): Free fname returned by tilde_expand(). |
|
5932 * dirfns.cc (Fls): Likewise. |
|
5933 |
|
5934 * tree-expr.cc (tree_multi_assignment_expression::eval (int, int, |
|
5935 const Octave_object&)): Call tree_return_list::operator () (Pix) |
|
5936 explicitly. |
|
5937 |
|
5938 * octave.cc (initialize_globals): Put TEXMF in the environment for |
|
5939 kpthsea. |
|
5940 |
|
5941 * Makefile.in (OCTAVE_LIBS): Use @LIBINFO@ and @LIBREADLINE@, |
|
5942 substituted by configure. Use kpathsea.a, not libkpathsea, so we |
|
5943 don't have to modify the kpathsea Makefile. |
|
5944 |
|
5945 Sat Feb 25 18:59:26 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
5946 |
|
5947 * pathsearch.cc: New file. |
|
5948 * pathsearch.h: New file. |
|
5949 * Makefile.in (INCLUDES): Include it in the list. |
|
5950 * dynamic-ld.cc, help.cc, utils.cc: Use it instead of repeating |
|
5951 identical code multiple times. |
|
5952 |
|
5953 * variables.cc (install_builtin_variables): Only DEFVAR |
|
5954 suppress_verbose_help_message if USE_GNU_INFO. |
|
5955 |
|
5956 * help.cc (Fhelp): Only handle -i if USE_GNU_INFO. |
|
5957 (additional_help_message): Only print message if USE_GNU_INFO. |
|
5958 (builtin_help): New function. |
|
5959 (help_from_info): New function. Print warning if not USE_GNU_INFO. |
|
5960 |
|
5961 See ChangeLog.1 in the top level directory for earlier changes. |