2856
|
1 Mon Mar 31 00:37:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2 |
2859
|
3 * pt-base-exp.h (tree_expression::eval): Give arg a default value. |
|
4 * pt-const.h (tree_constant::eval): Likewise. |
|
5 * pt-exp.h (tree_prefix_expression::eval, tree_colon_expression::eval, |
|
6 tree_postfix_expression::eval, tree_unary_expression::eval, |
|
7 tree_binary_expression::eval, tree_boolean_expression::eval, |
|
8 tree_simple_assignment_expression::eval): Likewise. |
|
9 * pt-fcn.h (tree_function::eval): Likewise. |
|
10 * pt-fvc.h (tree_identifier::eval, tree_indirect_ref::eval, |
|
11 tree_builtin::eval): Likewise. |
|
12 * pt-mat.h (tree_matrix::eval): Likewise. |
|
13 * pt-misc.h (tree_statement_list::eval): Likewise. |
|
14 * pt-mvr-base.h (tree_multi_val_ret::eval): Likewise. |
|
15 * pt-mvr.h (tree_oct_obj::eval, tree_index_expression::eval, |
|
16 tree_multi_assignment_expression::eval): Likewise. |
|
17 * dassl.cc, fsolve.cc, load-save.cc, lsode.cc, npsol.cc, parse.y, |
|
18 pt-cmd.cc, pt-exp-base.cc, pt-exp.cc, pt-fvc.cc, pt-mat.cc, |
|
19 pt-misc.cc, pt-mvr.cc, pt-plot.cc, quad.cc, toplev.cc, variables.cc: |
|
20 Change callers of eval() to use bool instead of int and to make |
|
21 use of default argument value. |
|
22 |
|
23 * toplev.h, toplev.cc (parse_and_execute, eval_string): Flag args |
|
24 are now bool instead of int. |
|
25 |
2856
|
26 * symtab.h, symtab.cc: Use bool instead of int in more places. |
|
27 * variables.h, variables.cc: Likewise. |
2857
|
28 * lex.h, lex.l: Likewise. |
|
29 * parse.y: Likewise. |
2856
|
30 * help.cc, input.cc, lex.l, load-save.cc, parse.y, pt-fcn.cc: |
|
31 Change callers of symbol_table::lookup to use bool instead of int, |
|
32 and to make use of default arguments. |
|
33 |
2850
|
34 Fri Mar 28 15:33:11 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
35 |
2852
|
36 * parse.y (Vwarn_comma_in_declaration): Delete. |
|
37 (symbols_of_parse): Delete DEFVAR for warn_comma_in_declaration. |
|
38 (decl1): Don't allow commas in declarations. |
|
39 |
2850
|
40 * lsode.cc (struct LSODE_OPTIONS): Handle integer options. |
|
41 (print_lsode_option_list, set_lsode_option, show_lsode_option): Ditto. |
|
42 (lsode_option_table): Add element for step limit. |
|
43 (lsode_user_jacobian): New function. |
|
44 (Flsode): Allow function name arg to be a 2-element string array |
|
45 specifying the function and jacobian function. |
|
46 |
|
47 * variables.cc (get_global_value, set_global_value): New functions. |
|
48 |
2846
|
49 Wed Mar 26 17:08:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
50 |
|
51 Implement static variable declaration: |
|
52 |
|
53 * lex.l (is_keyword): Handle static. |
|
54 * octave.gperf: Likewise. |
|
55 * parse.y (Vwarn_comma_in_declaration): Rename from |
|
56 Vwarn_comma_in_global_decl. |
|
57 Handle new static command. |
|
58 * pt-cmd.h, pt-cmd.cc (class tree_decl_command): New base class |
|
59 for static and global declaration commands. |
|
60 (class tree_global_command): Derive from tree_decl_command. |
|
61 (class tree_static_command): New class, derived from tree_decl_command. |
|
62 * pt-fvc.cc, pt-fvc.h (tree_identifier::mark_as_static): New function. |
|
63 * pt-misc.h, pt-misc.h (class tree_decl_elt): Rename from tree_global. |
|
64 (class tree_decl_init_list): Rename from tree_global_init_list. |
|
65 * pt-pr-code.cc, pt-pr-code.h (tree_print_code::visit_decl_command): |
|
66 Rename from visit_global_command. |
|
67 (tree_print_code::visit_decl_elt): Rename from visit_global. |
|
68 (tree_print_code::visit_decl_init_list): Rename from |
|
69 visit_global_init_list. |
|
70 * pt-walk.h (tree_walker::visit_decl_command): Rename from |
|
71 visit_global_command. |
|
72 (tree_walker::visit_decl_elt): Rename from visit_tree_global. |
|
73 (tree_walker::visit_decl_init_list): Rename from |
|
74 visit_global_init_list. |
|
75 * variables.cc (link_to_global_variable): Trying to make a static |
|
76 variable global is an error. |
|
77 * SLList-misc.cc: Instantiate lists of pointers to tree_decl_elt |
|
78 objects, not tree_global objects. |
|
79 * symtab.h, symtab.cc (symbol_record::tagged_static): New field. |
|
80 (symbol_record::mark_as_static, symbol_record::is_static): |
|
81 New functions. |
|
82 * symtab.cc (symbol_record::init_state): Initialize tagged_static. |
|
83 (symbol_record::clear): Don't clear static variables. |
|
84 * symtab.cc (push_context): Don't do anything for static variables. |
|
85 |
2825
|
86 Tue Mar 25 17:17:17 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
87 |
2832
|
88 * ov-bool-mat.cc (octave_bool_matrix::is_true): Write guts. |
|
89 |
|
90 * ov-bool-mat.h (octave_bool_matrix): Implement all() and any(). |
|
91 |
2831
|
92 * defaults.cc (symbols_of_defaults): DEFCONST OCTAVE_HOME. |
|
93 |
|
94 * toplev.cc (octave_config_info): Delete use of CXXLIBS. |
|
95 * oct-conf.h.in: Ditto. |
|
96 |
2830
|
97 * octave.cc (maximum_braindamage): Don't bind prefer_zero_one_indexing. |
|
98 * ov.h: Don't declare Vprefer_zero_one_indexing. |
|
99 * ov.cc: Don't define Vprefer_zero_one_indexing. |
|
100 (prefer_zero_one_indexing): Delete. |
|
101 (symbols_of_value): Delete DEFVAR for prefer_zero_one_indexing. |
|
102 |
2825
|
103 * ov.h, ov.cc, ov-base.h, ov-base.cc: Add constructors and |
|
104 extractors for bool and boolMatrix types. |
|
105 |
|
106 * ov.cc (install_types): Register octave_bool and |
|
107 octave_bool_matrix types. |
|
108 |
|
109 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
110 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
111 op-s-cm.cc, op-s-m.cc, op-s-s.cc, ov-re-mat.cc: |
|
112 Return boolMatrix instead of Matrix object. |
|
113 * ops.h (BOOL_OP3, MX_MX_BOOL_OP): Likewise. |
|
114 |
|
115 * op-b-b.h, op-b-b.cc, op-bm-bm.h, op-bm-bm.cc: New files. |
|
116 * Makefile.in: Add them to the lists. |
|
117 * ops.cc: Include header files here. |
|
118 (install_ops): Call install_b_b_ops() and install_bm_bm_ops() here. |
|
119 |
|
120 * variables.cc (symbols_of_variables): Don't rely on default |
|
121 conversion from int to double for value returned from |
|
122 default_history_size(). |
|
123 |
|
124 * pr-output.cc: Include cstdio. |
|
125 |
|
126 * parse.y (param_list_end): Fix typo in last change. |
|
127 |
|
128 * quad.cc (quad): Cast integer return values to double. |
|
129 * npsol.cc (show_npsol_option): Likewise. |
|
130 * qpsol.cc (show_qpsol_option): Likewise. |
|
131 * file-io.cc (Fsprintf, Ffwrite): Likewise. |
|
132 |
|
133 Mon Mar 24 13:11:47 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
134 |
|
135 * ov-typeinfo.cc (typeinfo): If invoked with an argument, return |
|
136 the type of the argument as a string. Fix doc string. |
|
137 |
2821
|
138 Thu Mar 20 14:47:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
139 |
|
140 * mk-oct-links (links_dir): Don't use -h option for grep. It's |
|
141 not needed since we are working on one file at a time anyway. |
|
142 |
2819
|
143 Mon Mar 17 10:53:29 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
144 |
|
145 * lex.l (handle_identifier): When handling indirect_ref, set |
|
146 lexer_flags.quote_is_transpose to 1 so that a.b' to work as |
|
147 expected. |
|
148 |
|
149 * parse.y (param_list_beg, param_list_end): New nonterminals. |
|
150 (param_list, param_list1): Use them. |
|
151 |
2811
|
152 Wed Mar 12 16:57:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
153 |
|
154 * Makefile.in (install-strip): New target. |
|
155 |
2806
|
156 Mon Mar 10 22:38:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
157 |
|
158 * Makefile.in (clean): Delete .oct files too. |
|
159 |
|
160 * toplev.cc (Vdefault_eval_print_flag): New static variable. |
|
161 (eval_string): New arg, print. |
|
162 (Feval): Pass Vdefault_eval_print_flag to eval_string. |
|
163 (default_eval_print_flag): New function. |
|
164 (symbols_of_toplev): New function. |
|
165 |
|
166 * variables.cc (install_builtin_variables): Call it. |
|
167 |
|
168 * pt-exp.h, pt-exp.cc (class tree_boolean_expression): Rename enum |
|
169 fields `and' and `or' to `bool_and' and `bool_or'. |
|
170 (tree_unary_expression): Rename enum field `not' to `unot'. |
|
171 (class tree_binary_expression): Rename enum fields `and' and `or' |
|
172 to `el_and' and `el_or'. |
|
173 * parse.y: Change all uses. |
|
174 |
|
175 * time.cc (extract_tm): Truncate field values instead of rounding. |
|
176 (gmtime, localtime): Likewise, for timeval. |
|
177 |
|
178 * ov.h (class octave_value): Delete unused variable freeptr. |
|
179 |
|
180 * mappers.cc: Delete functions that are already in |
|
181 liboctave/lo-mappers.cc. |
|
182 |
|
183 * oct-strstrm.cc (octave_base_strstream::tell): Use const_cast, |
|
184 not static_cast. |
|
185 |
|
186 * help.cc (help_from_list): Add missing const qualifiers. |
|
187 * help.h (struct help_list): Likewise. |
|
188 * lex.l (match_any, plot_style_token): Likewise. |
|
189 * load-save.cc (extract_keyword, ascii_save_type): Likewise. |
|
190 * oct-hist.cc (mk_tmp_hist_file): Likewise. |
|
191 * octave.cc (execute_startup_files): Likewise. |
|
192 * octave.gperf (struct octave_kw): Likewise. |
|
193 * pr-output.cc (pr_any_float): Likewise. |
|
194 * pt-mvr.cc (tree_index_expression::eval_error): Likewise. |
|
195 * pt-exp-base.h, pt-exp.h, pt-exp.cc: Likewise. |
|
196 * parse.y: Likewise. |
|
197 |
2800
|
198 Sun Mar 9 03:46:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
199 |
2806
|
200 * pt-exp-base.h (tree_expression): Delete extra comma at end of list. |
|
201 |
|
202 * dirfns.cc error.cc file-io.cc fsolve.cc input.cc load-save.cc |
|
203 npsol.cc pt-fcn.cc qpsol.cc quad.cc syscalls.cc toplev.cc |
|
204 variables.cc: Eliminate embedded newlines in string constants. |
|
205 |
|
206 * Map.cc, data.cc, dirfns.cc, dynamic-ld.cc, file-io.cc, |
|
207 fsolve.cc, getgrent.cc, getpwent.cc, getrusage.cc, help.cc, |
|
208 input.cc, load-save.cc, mappers.cc, minmax.cc, npsol.cc, |
|
209 oct-fstrm.cc, oct-procbuf.h, oct-stdstrm.cc, oct-stdstrm.h, |
|
210 oct-stream.cc, oct-stream.h, oct-strstrm.cc, octave.cc, |
|
211 ov-base.h, ov-range.cc, ov-typeinfo.cc, ov.cc, pr-output.cc, |
|
212 pt-cmd.cc, pt-exp.cc, pt-fcn.cc, pt-fvc.cc, pt-mat.cc, |
|
213 pt-misc.cc, pt-plot.cc, qpsol.cc, quad.cc, sort.cc, strfns.cc, |
|
214 symtab.cc, syscalls.cc, sysdep.cc, time.cc, toplev.cc, |
|
215 unwind-prot.cc, unwind-prot.h, variables.cc, xpow.cc: |
|
216 Use `static_cast<T> (val)' instead of old C-style `(T) val' casts. |
2800
|
217 |
2799
|
218 Sat Mar 8 02:35:13 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
219 |
|
220 * load-save.cc (save_ascii_data, save_three_d): Where appropriate, |
|
221 use bool instead of int. |
|
222 (save_binary_data, save_mat_binary_data, save_ascii_data): |
|
223 Print warning instead of error for wrong type arg. |
|
224 |
|
225 * gripes.cc (gripe_wrong_type_arg): New arg, is_error. |
|
226 |
|
227 * pt-plot.cc (save_in_tmp_file): Call save_ascii_data with bool |
|
228 arg, not int. |
|
229 |
2797
|
230 Fri Mar 7 00:56:16 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
231 |
|
232 * dassl.cc (show_dassl_option): For values that are determined |
|
233 automatically, return a string instead of a magic value (-1.0). |
|
234 * fsolve.cc (show_fsolve_option): Likewise. |
|
235 * lsode.cc (show_lsode_option): Likewise. |
|
236 * npsol.cc (show_npsol_option): Likewise. |
|
237 * qpsol.cc (show_qpsol_option): Likewise. |
|
238 |
|
239 * variables.cc (extract_function): New function. |
|
240 * dassl.cc (Fdassl): Use it instead of is_valid_function. |
|
241 * fsolve.cc (Ffsolve): Likewise. |
|
242 * npsol.cc (Fnpsol): Likewise. |
|
243 * qpsol.cc (Fqpsol): Likewise. |
|
244 * quad.cc (Fquad): Likewise. |
|
245 |
2795
|
246 Thu Mar 6 20:07:24 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
247 |
|
248 * sighandlers.cc (my_friendly_exit, octave_new_handler, |
|
249 sigfpe_handler, sigpipe_handler): Don't all error() or warning(). |
|
250 |
|
251 * pager.cc (pager_death_handler): Don't try to clear pager, just |
|
252 print message to cerr. |
|
253 (do_sync): If the status of the pager is bad or it looks like it |
|
254 is dead, restore the interrupt handler. |
|
255 |
|
256 * load-save.cc (extract_keyword (istream&, char*, int&)): |
|
257 Move declaration of buf inside loop, to avoid deleting its guts |
|
258 and then trying to reuse it. |
|
259 (extract_keyword (istream&, char*)): Likewise. |
|
260 |
2790
|
261 Tue Mar 4 20:36:53 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
262 |
2791
|
263 * pt-fcn.cc (tree_function::eval): Protect function from being |
|
264 redefined while it is being evaluated. |
|
265 (unprotect_function): New function, for use with unwind_protect stuff. |
|
266 * pt-fcn.h (tree_function::symtab_entry): New data member. |
|
267 (tree_function::init): Initialize it to 0. |
|
268 (tree_function::stash_symtab_ptr): New function. |
|
269 * parse.y (frob_function_def): Stash pointer to function's |
|
270 symbol_record in the function definition. |
|
271 |
|
272 * symtab.cc (symbol_record::read_only_error): New argument, |
|
273 action. Change all callers. |
|
274 (symbol_record::rename): Don't allow read-only symbols to be renamed. |
|
275 |
2790
|
276 * variables.cc (Fexist): Don't let files with `.' in their names |
|
277 confuse us. |
|
278 |
|
279 * symtab.cc (valid_identifier (const string&)): New function. |
|
280 |
2779
|
281 Sat Mar 1 15:23:14 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2775
|
282 |
|
283 * Version 2.0.5 released. |
|
284 |
2779
|
285 Sat Mar 1 01:34:08 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
286 |
|
287 * Makefile.in (stamp-oct-links): New target. Make links in build |
|
288 directory too, so that the tests will work. |
|
289 |
2777
|
290 * quad.cc: If quad is defined, undefine it. |
|
291 |
2775
|
292 * octave.cc: If WITH_KPATHSEARCH is defined, don't define |
|
293 program_invocation_name or program_invocation_short_name. |
2774
|
294 |
|
295 * strftime.c: Update to current version from FSF. |
|
296 * time.cc (Fstrftime): Call strftime with buf = 0 to get buffer |
|
297 size, then call again to actually format the time struct. |
|
298 |
2762
|
299 Fri Feb 28 01:49:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
300 |
2764
|
301 Implement switch statement: |
|
302 |
|
303 * parse.y (Vwarn_variable_switch_label): New static variable. |
|
304 (warn_variable_switch_label): New function. |
|
305 (symbols_of_parse): Provide warn_variable_switch_label as Octave |
|
306 variable here. |
|
307 (make_switch_case, finish_switch_command): New functions. |
|
308 (maybe_warn_variable_switch_label): New function. |
|
309 (end_error): Handle endswitch. |
|
310 (switch_command, case_list, case_list1, switch_case, default_case): |
|
311 New nonterminals. |
|
312 (command): Add switch_command here. |
|
313 * lex.l (is_keyword): Handle switch, case, otherwise, and endswitch. |
|
314 * octave_gperf: Recognize switch, case, otherwise, and endswitch. |
|
315 * token.h (end_tok_type): New item, switch_end. |
|
316 * pt-cmd.cc (tree_switch_command): New class. |
|
317 * pt-misc.cc (tree_switch_case, tree_switch_case_list): New classes. |
|
318 * pt-pr-code.cc (tree_print_code::visit_switch_case, |
|
319 tree_print_code::visit_switch_case_list, |
|
320 tree_print_code::visit_switch_command): New functions. |
|
321 * pt-walk.h (tree_walker::visit_switch_case, |
|
322 tree_walker::visit_switch_case_list, |
|
323 tree_walker::visit_switch_command): New pure virtual declarations. |
|
324 Implement new switch statement. |
|
325 * SLList-misc.cc: Instantiate lists of pointers to |
|
326 tree_switch_case objects too. |
|
327 |
|
328 * lex.h, lex.l, parse.y: Delete all references to lexer_flags::iffing. |
|
329 |
2762
|
330 * syswait.h: Include sys/wait.h on NeXT systems, but don't use the |
|
331 WIFEXTED, WEXITSTATUS, and WIFSIGNALLED macros defined there. |
|
332 Also define waitpid in terms of wait4. From Rex A. Dieter |
|
333 <rdieter@math.unl.edu>. |
|
334 |
2759
|
335 Wed Feb 26 16:43:31 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
336 |
|
337 * oct-stream.cc (octave_base_stream::do_scanf): Don't report an |
|
338 error if a conversion fails or we reach EOF. |
|
339 |
2745
|
340 Tue Feb 25 22:21:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
341 |
|
342 * time.cc (strftime): increase initial buffer size. |
|
343 |
|
344 Mon Feb 24 17:49:21 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
345 |
|
346 * pt-fvc.cc (tree_builtin::eval): Enable checking for max number |
|
347 of arguments. |
|
348 |
|
349 * error.cc (handle_message): Don't fail if args is empty. |
|
350 |
|
351 Sun Feb 23 22:42:52 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
352 |
|
353 * lex.h (lexical_feedback::looking_at_return_list): New field. |
|
354 (lexical_feedback::looking_at_parameter_list): Ditto. |
|
355 * lex.l (lexical_feedback::init): Initialize them. |
|
356 (handle_identifier): Use them. |
|
357 * parse.y: Likewise. |
|
358 |
2712
|
359 Fri Feb 21 15:35:18 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
360 |
2716
|
361 * lex.l: Require flex 2.5 or later (we really want 2.5.4 or later, |
|
362 but there seems to be no good way to check the patchlevel). |
|
363 |
2712
|
364 * oct-stream.cc (octave_base_stream::oscanf): Instead of returning |
|
365 an error, just quit processing after a conversion fails. |
|
366 |
2709
|
367 Thu Feb 20 02:58:05 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2702
|
368 |
|
369 * Version 2.0.4 released. |
|
370 |
2706
|
371 Wed Feb 19 10:30:14 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
372 |
2705
|
373 * sighandlers.cc (octave_ignore_interrupts, |
|
374 octave_catch_interrupts, octave_set_interrupt_handler): |
|
375 Return old value, not pointer to static data. Fix all uses. |
|
376 |
|
377 * sighandlers.h (octave_interrupt_handler): Move declaration here. |
|
378 * sighandlers.cc: From here. |
|
379 |
|
380 * toplev.cc: Undo previous change. |
|
381 |
2702
|
382 * lex.l (handle_identifier): Allow commands like ls, save, etc. to |
|
383 also be used as simple variable names. Also make it possible to |
|
384 use the normal function call syntax to invoke them. |
|
385 |
2693
|
386 Tue Feb 18 09:22:04 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
2689
|
387 |
2702
|
388 * Makefile.in (%.oct:%.o, %.oct:pic/%.o): Use $(SH_LDFLAGS) here. |
|
389 |
2690
|
390 * Version 2.0.3 released. |
|
391 |
2693
|
392 Tue Feb 18 00:27:49 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
393 |
|
394 * toplev.cc (run_command_and_return_output): |
|
395 Block SIGCHLD while running subprocess. |
|
396 (cleanup_iprocstream): Unblock it here. |
|
397 |
|
398 * sighandlers.h (BLOCK_SIGNAL, BLOCK_CHILD, UNBLOCK_CHILD): Move here. |
|
399 * sighandlers.cc: From here. |
|
400 |
2692
|
401 * toplev.cc (system): Shift then mask exit status. |
|
402 |
|
403 * help.cc (try_info): Shift first, then mask exit status. |
|
404 |
2689
|
405 * toplev.cc (octave_config_info): Handle option argument. |
|
406 |
2686
|
407 Fri Feb 14 16:23:30 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
408 |
2687
|
409 * oct-stream.cc (octave_base_stream::do_scanf): Don't forget to |
|
410 check to see if the result matrix needs resizing! |
|
411 |
2686
|
412 * Makefile.in (bin-dist): Don't write empty strings to LIBRARIES. |
|
413 |
2669
|
414 Thu Feb 13 03:02:08 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
415 |
2676
|
416 * Makefile.in (stamp-prereq): Depend on stamp-picdir. |
|
417 (all): Don't depend on stamp-prereq or stamp-picdir. |
|
418 (stamp-tinst, stamp-interp, libtinst.a, liboctinterp.a): |
|
419 Do depend on stamp-prereq. |
|
420 (stamp-picdir): Silence noise about making pic. |
|
421 (stamp-tinst, stamp-interp): Use $(SH_LD) $(SH_LDFLAGS) instead of |
|
422 $(CXX) -shared. |
|
423 |
2675
|
424 * oct-conf.h.in: Reinstate RLD_FLAG. |
|
425 * toplev.cc (octave_config_info): Likewise. |
|
426 |
2672
|
427 * data.cc (map_d_m, map_m_d, map_m_m): Rename from map. |
|
428 (Fatan2): Use new function names. |
|
429 |
|
430 * pt-fvc.cc (apply_mapper_fcn): Use member function map() instead |
|
431 of friend function. |
|
432 |
2669
|
433 * gripes.cc (gripe_wrong_type_arg (const char*, const string&)): |
|
434 New function. |
|
435 |
|
436 Wed Feb 12 17:27:53 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
437 |
|
438 * syscalls.cc (symbols_of_syscalls): Add O_ASYNC and O_SYNC. |
|
439 |
|
440 Mon Feb 10 01:22:27 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
441 |
|
442 * dirfns.cc (Freaddir, Fmkdir, Frmdir, Frename): |
|
443 Also return status and error message. |
|
444 |
|
445 * syscalls.cc (Fdup2, Fexec, Ffork, Ffcntl, Funlink, Fmkfifo, |
|
446 Fpipe, Fwaitpid): Also return error message. |
|
447 |
2664
|
448 Sat Feb 8 17:16:09 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
449 |
2665
|
450 * pt-exp.cc (tree_simple_assignment_expression::eval): Return |
|
451 value of RHS, but (if printing) print complete value of LHS. |
|
452 |
2664
|
453 * pr-output.cc (octave_print_internal): Print a new line for empty |
|
454 string matrices. |
|
455 |
2663
|
456 Wed Feb 5 14:30:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
457 |
|
458 * oct-stream.cc (scanf_format_list::process_conversion): Accept |
|
459 but don't actually use h, l, and L modifiers. Always insert l |
|
460 modifier for floating point conversions. |
|
461 |
2652
|
462 Fri Jan 31 13:55:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
463 |
|
464 * pager.cc (do_sync): Always flush the cout stream after writing. |
|
465 |
2643
|
466 Wed Jan 29 08:25:29 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
467 |
2648
|
468 * defaults.cc (exec_path): Don't include bin_dir in std_path. |
|
469 |
2646
|
470 * pager.cc (do_sync): Flush the cout stream after writing if |
|
471 running in interactive or forced_interactive mode. |
|
472 |
|
473 * mk-oct-links: Rename from mk-oct-links.in. |
|
474 Don't use symbolic links. |
|
475 * Makefile.in: Distribute mk-oct-links, not mk-oct-links.in |
|
476 (mk-oct-links): Delete target. |
|
477 (install-oct, bin-dist): Don't depend on mk-oct-links. |
|
478 Run $(srcdir)/mk-oct-links, not ./mk-oct-links. |
|
479 |
2643
|
480 * qr.cc (qr): Doc fix. |
|
481 |
2638
|
482 Tue Jan 28 10:48:28 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
483 |
|
484 * Makefile.in (install-inc): Create a relative symbolic link. |
|
485 (install-bin): Create a relative symbolic link. |
|
486 |
2630
|
487 Mon Jan 27 12:12:03 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
488 |
2634
|
489 * Version 2.0.2 released. |
|
490 |
|
491 * Makefile.in (CXXFLAGS_NO_PT_FLAGS): Rename from XALL_CXXFLAGS. |
|
492 Substitute bsd_gcc_kluge_targets_frag. |
|
493 |
2630
|
494 * sysdep.cc (Fsleep): New function. |
|
495 (Fusleep): New function. |
|
496 |
|
497 * toplev.cc (octave_config_info): Don't include RLD_FLAG. |
|
498 * oct-conf.h.in: Don't define RLD_FLAG |
|
499 |
2626
|
500 Sun Jan 26 19:41:48 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
501 |
|
502 * sighandlers.cc (sigchld_handler): Block SIGCHLD while |
|
503 sigchld_hander is running. |
|
504 |
2624
|
505 Sat Jan 25 22:36:39 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
506 |
|
507 * Makefile.in (bin-dist): Update for 2.x. |
|
508 |
2621
|
509 Fri Jan 24 10:05:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
510 |
|
511 * mk-oct-links.in: New arg, -p, to just print list of files to link. |
|
512 |
|
513 * lex.l (handle_number): Convert `D' or `d' exponents to `e' |
|
514 before scanning. |
|
515 |
2620
|
516 Thu Jan 23 10:00:00 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
517 |
|
518 * pt-pr-code.h, pt-pr-code.cc (tree_print_code::visit_no_op_command): |
|
519 New function. |
|
520 * pt-cmd.h, pt-cmd.cc (tree_no_op_command): New class. |
|
521 * parse.y (make_break_command, make_continue_command, |
|
522 make_return_command): Where they don't really make sense, turn |
|
523 these commands into no-ops. Accept return and break if reading a |
|
524 script file. |
|
525 * toplev.cc (parse_and_execute): Handle return and break in script |
|
526 files. Quit executing commands if an error occurs when reading a |
|
527 script file. Set global_command to 0 after deleting it. |
|
528 (main_loop): If not interactive or forced_interactive, handle |
|
529 break and return, and quit executing commands if an error occurs. |
|
530 Set global_command to 0 after deleting it. |
|
531 * error.cc (Ferror): Doc fix. |
|
532 * pt-walk.h (tree_walker): Add declaration for visit_no_op_command. |
|
533 |
2618
|
534 Wed Jan 22 20:54:12 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
535 |
|
536 * input.cc (gnu_readline): If not using readline, flush |
|
537 rl_outstream after printing prompt. |
|
538 (octave_gets): Also call flush_octave_stdout() if |
|
539 forced_interactive, not just if interactive. |
|
540 (do_input_echo): If forced_interactive, only echo prompt and |
|
541 command line if also reading a script file. |
|
542 |
2616
|
543 Tue Jan 21 23:02:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
544 |
|
545 * SLList.h: Include "BaseSLList.h", not <BaseSLList.h>. |
|
546 |
2610
|
547 Mon Jan 20 11:11:12 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
548 |
2614
|
549 * lex.l (token_stack): Don't declare static. |
|
550 * pt-plot.cc (tmp_files): Likewise. |
|
551 * toplev.cc (octave_atexit_functions): Likewise. |
|
552 * unwind-prot.cc (unwind_protect_list): Likewise. |
|
553 |
2613
|
554 * ops.h (MX_MX_BOOL_OP): Correctly handle case of one or both |
|
555 arguments being empty. Change all callers. |
|
556 |
|
557 * oct-stream.cc (printf_value_cache::looking_at_string): |
|
558 Handle empty strings correctly now that they are 0x0. |
|
559 |
2610
|
560 * file-io.cc: Don't include "syswait.h" here. |
|
561 |
|
562 Sun Jan 19 22:38:45 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
563 |
|
564 * oct-stream.h (octave_base_stream::seek): Declare offset arg as |
|
565 streamoff, not streampos. |
|
566 (octave_stream::seek): Likewise. |
|
567 * oct-strstrm.h (octave_base_strstream::seek): Likewise. |
|
568 * oct-stdstrm.h (octave_base_stdiostream::seek): Likewise. |
|
569 * oct-iostrm.h (octave_base_iostream::seek): Likewise. |
|
570 * oct-fstrm.h (octave_fstream::seek): Likewise. |
|
571 |
2609
|
572 Fri Jan 17 18:13:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
573 |
|
574 * file-io.cc (Ffflush): Handle stdout as a special case. |
|
575 |
|
576 * oct-stream.cc (octave_stream_list::do_get_file_number): |
|
577 Do the work for octave_stream::get_file_number. |
|
578 (octave_stream_list::get_file_number): Convert to static function. |
|
579 |
2608
|
580 Wed Jan 8 11:42:44 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
581 |
|
582 * log.cc (sqrtm): For complex arg case, compute sqrt, not log. |
|
583 |
2602
|
584 Tue Jan 7 00:16:41 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
585 |
|
586 * Version 2.0.1 released. |
|
587 |
|
588 Mon Jan 6 00:00:07 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
589 |
|
590 * pt-mat.cc (tm_row_const_rep::all_mt): New variable. |
|
591 (tm_row_const::all_empty): New function. |
|
592 (tm_row_const::tm_row_const_rep::init): Set all_mt here. |
|
593 (tm_const::all_mt): New variable. |
|
594 (tm_const::all_emtpy): New function. |
|
595 (tm_const::init): Set all_mt here. |
|
596 (tree_matrix::eval): Return an empty matrix if the list contains |
|
597 only empty elements. If it contains only empty strings, return an |
|
598 empty string. |
|
599 |
2601
|
600 Sun Jan 5 12:50:25 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
601 |
|
602 * ops.h (SC_MX_BOOL_OP, MX_SC_BOOL_OP): New arg, empty_result. |
|
603 * op-cm-cm.cc, op-cm-cs.cc, op-cm-m.cc, op-cm-s.cc, op-cs-cm.cc, |
|
604 op-cs-m.cc, op-m-cm.cc, op-m-cs.cc, op-m-m.cc, op-m-s.cc, |
|
605 op-s-cm.cc, op-s-m.cc, op-str-str.cc: Change all uses of |
|
606 SC_MX_BOOL_OP and MX_SC_BOOL_OP macros. Return correct results |
|
607 for empty matrix cases. |
|
608 |
|
609 * pt-fcn.cc (tree_function::eval): If Vdefine_all_return_values is |
|
610 true, initialize return values before evaluating function, for |
|
611 compatibility with Matlab. |
|
612 |
|
613 * oct-stream.cc (get_size): Correctly set size when arg is scalar. |
|
614 |
|
615 Thu Jan 2 12:40:10 1997 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
616 |
|
617 * Makefile.in (install-oct): Quote $(OCT_FILES) in for loop to |
|
618 avoid syntax error from ksh. |
|
619 |
|
620 * pr-output.cc (octave_print_internal): Avoid unused parameter |
|
621 warning from gcc. |
|
622 |
2600
|
623 Thu Dec 19 12:13:42 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
624 |
|
625 * oct-stream.cc (octave_base_stream::do_scanf): |
|
626 Don't treat %l{e,f,g} differently from %{e,f,g}. |
|
627 (octave_base_stream::do_oscanf): Likewise. |
|
628 |
|
629 * sighandlers.cc (sigchld_handler): Fix typos. |
|
630 |
2598
|
631 Wed Dec 18 20:17:23 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
632 |
2599
|
633 * file-io.cc (Ffgetl, Ffgets): Also return number of characters read. |
|
634 |
|
635 * ov-range.cc (octave_range::not): New function. |
|
636 * ov-range.h (octave_range::uminus): New function. |
|
637 |
2598
|
638 * BaseSLList.cc: Include error.h. |
|
639 (BaseSLList::error): Call ::error() to process error message. |
|
640 |
2589
|
641 Fri Dec 13 02:38:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
642 |
|
643 * ov.cc (octave_value::convert_and_assign): Preserve lhs value if |
|
644 assignment fails. |
|
645 |
2586
|
646 Wed Dec 11 12:33:16 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
647 |
|
648 * pt-plot.cc (GPLOT_CMD_END): Don't put semicolons at the end of |
|
649 each plot command; it causes trouble with gnuplot 3.5. |
|
650 |
2580
|
651 Tue Dec 10 00:31:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
652 |
2583
|
653 * Version 2.0 released. |
|
654 |
2584
|
655 * pr-output.cc (set_format_style): Don't try to access argv unless |
|
656 argc > 1. |
|
657 |
2580
|
658 * SLList-expr.cc SLList-misc.cc SLList-plot.cc SLList-str.cc |
|
659 SLList-tc.cc SLList-tm.cc SLList.h SLStack-i.cc SLStack-pc.cc |
|
660 SLStack-str.cc SLStack-sym.cc SLStack-tok.cc SLStack-ue.cc |
|
661 SLStack-ui.cc, pt-mat.cc: Include Stack.h, Stack.cc, SLStack.cc, |
|
662 and SLList.cc as necessary. |
|
663 |
|
664 * Stack.cc, SLStack.cc, SLList.cc: New files. |
|
665 * Makefile.in (SOURCES): Add them to the list. |
|
666 |
2575
|
667 Mon Dec 9 12:03:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
668 |
2577
|
669 * Makefile.in (install-bin): Use $(EXE) suffix so install will |
|
670 find the right file on cygwin32 systems. |
|
671 |
2575
|
672 * ov.h: Declare proper form of do_binary_op as friend to |
|
673 octave_value class. |
|
674 |
2572
|
675 Sat Dec 7 22:00:10 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
676 |
|
677 * oct-stream.cc (do_printf_conv, do_scanf_conv, |
|
678 do_oscanf_num_conv, do_oscanf_str_conv): Convert to real |
|
679 functions instead of CPP macros, using templates where necessary. |
|
680 (do_oscanf_num_conv, do_oscanf_str_conv): Correctly handle |
|
681 discarded values. |
|
682 |
2569
|
683 Fri Dec 6 00:20:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
684 |
2572
|
685 * Version 1.94. |
|
686 |
2571
|
687 * Map-*.cc, SLList-*.cc, SLStack-*.cc: Include config.h. |
|
688 |
|
689 * ov.h: Don't include SLList.h. |
|
690 |
|
691 * SLStack.cc: Delete. Move everything to SLStack.h. |
|
692 |
|
693 * BaseSLList.h, BaseSLList.cc: New files. Split out the |
|
694 non-template base class parts of SLList. |
|
695 |
2569
|
696 * Makefile.in (TEMPLATE_SRC): Delete. Move files to SOURCES. |
|
697 * Map.h, Map.cc: Add #pragma interface/implementation. |
|
698 * SLStack.h, SLStack.cc: Add #pragma interface/implementation. |
|
699 |
|
700 * SLList.h, SLList.cc: New files, from libg++, but with #pragma |
|
701 interface/implementation. |
|
702 * Makefile.in (SOURCES): Add SLList.cc. |
|
703 (INCLUDES): Add SLList.h. |
|
704 |
2566
|
705 Thu Dec 5 18:36:44 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
706 |
|
707 * octave.cc: Don't include sun-utils.h. |
|
708 |
2563
|
709 Tue Dec 3 23:47:09 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
710 |
|
711 * op-str-str.cc (eq, ne): Handle operations with scalars. |
|
712 |
2555
|
713 Thu Nov 21 12:30:36 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
714 |
|
715 * ov-str-mat.h (octave_char_matrix_str): Provide transpose and |
|
716 hermitian operators. |
|
717 * ov-ch-mat.h (octave_char_matrix): Likewise. |
|
718 |
2548
|
719 Wed Nov 20 00:35:57 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
720 |
2554
|
721 * sighandlers.h (struct octave_interrupt_handler): Provide |
|
722 forward declaration here. |
|
723 * sighandlers.cc (octave_interrupt_handler): New struct. |
|
724 (octave_catch_interrupts): Rename from catch_interrupts. |
|
725 (octave_ignore_interrupts, octave_set_interrupt_handler): |
|
726 New functions. |
|
727 * help.cc, oct-hist.cc, pager.cc, toplev.cc: Use new functions for |
|
728 handling interrupts so that we can hide the details of whether or |
|
729 not we have to deal with SIGBREAK. |
|
730 |
|
731 * pt-plot.cc [! HAVE_POSIX_SIGNALS] (open_plot_stream): |
|
732 Simply ignore and restore the interrupt handler here. |
|
733 |
|
734 * sighandlers.cc (MAYBE_REINSTALL_SIGHANDLER): New macro. Use it |
|
735 instead of always checking MUST_REINSTALL_SIGHANDLERS everywhere. |
|
736 (sigchld_handler): If octave_child_list is empty, wait for any |
|
737 child, but don't hang, and don't collect status info. |
|
738 [__EMX__] (sigchld_handler): Save and restore handlers for SIGINT, |
|
739 SIGBREAK, and SIGCHLD. Ignore them while waiting on children. |
|
740 (install_signal_handlers): If SIGBREAK exists, handle it like SIGINT. |
|
741 |
2552
|
742 * toplev.cc [USE_READLINE] (clean_up_and_exit): |
|
743 Call rl_deprep_terminal() to restore terminal settings. |
|
744 |
|
745 * sysdep.cc [__EMX__ && OS2] (Fextproc): New command. |
|
746 [__EMX__ && OS2] (FEXTPROC): Alias for Fextproc. |
|
747 |
|
748 * Version 1.93. |
|
749 |
2549
|
750 * sysdep.cc (octave_chdir): [__EMX__]: Make copy of string before |
|
751 converting to upper case. |
|
752 |
2548
|
753 * getgrent.cc (mk_gr_map): Only set the passwd field if |
|
754 HAVE_GR_PASSWD is defined. |
|
755 |
2533
|
756 Tue Nov 19 12:01:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
757 |
2546
|
758 * sysdep.cc (OS2_init): New function. |
|
759 [__EMX__] (sysdep_init): Call it. |
|
760 |
2542
|
761 * lex.l (plot_style_token): Add new plot styles for gnuplot 3.6. |
2543
|
762 * pt-plot.cc (subplot_style::columns_ok): Rename from |
|
763 subplot_style::errorbars. Recognize more styles and do a better |
|
764 job of diagnosing column number/style mismatches. |
2542
|
765 |
2536
|
766 * sighandlers.cc (my_friendly_exit): If we are called twice, try |
|
767 to remove the signal handler for SIGABRT and the call abort (). |
|
768 |
2534
|
769 * help.cc (Ftype): If a function is defined from a file and |
|
770 transformed text has not been requested, just print the contents |
|
771 of the file. |
|
772 |
2533
|
773 * parse.y (fold): New functions for constant folding for binary |
|
774 and unary expressions. Keep track of original text even when |
|
775 transformations occur. |
|
776 (make_binary_op, make_boolean_op, make_unary_op): Use them. |
|
777 (finish_colon_expression, finish_matrix): Keep track of original |
|
778 text even when transformations occur. |
|
779 |
|
780 * help.cc (Ftype): Don't mess with Vps4. |
|
781 Handle new option `-transformed'. |
|
782 |
|
783 * pt-const.h, pt-const.cc (tree_constant::print): |
|
784 New arg, pr_orig_text. |
|
785 |
|
786 * pt-exp.h, pt-exp.cc (tree_colon_expression::is_range_constant): |
|
787 Delete. |
|
788 |
|
789 * pt-exp-base.h (tree_expression::original_text): New virtual function. |
|
790 pt-exp-base.cc (tree_expression::original_text): Default version. |
|
791 |
|
792 * pt-pr-code.h (tree_print_code::print_original_text, |
|
793 tree_print_code::prefix): New fields. |
|
794 * pt-pr-code.cc (tree_print_code::visit_constant): Pass |
|
795 print_original_text to tree_constant::print(). |
|
796 (tree_print_code::indent): Use prefix instead of Vps4. |
|
797 * pt-fcn.cc (tree_function::print_function_header, |
|
798 tree_function::print_function_trailer): Pass Vps4 to |
|
799 tree_print_code_constructor for prefix. |
|
800 * pt-misc.cc (tree_statement::maybe_echo_code): Pass Vps4 to |
|
801 tree_print_code_constructor for prefix. |
|
802 |
|
803 * pt-mat.h, pt-mat.cc (tree_matrix::all_elements_are_constant): |
|
804 Rename from is_matrix_constant. |
|
805 (tree_matrix_row::all_elements_are_constant): Likewise. |
|
806 Change all callers. |
|
807 |
|
808 Mon Nov 18 14:13:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
809 |
|
810 * Makefile.in (install-inc): Try harder to create the link from |
|
811 include/octave to include/octave-VERSION. |
|
812 |
2524
|
813 Sun Nov 17 14:14:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
814 |
2527
|
815 * Makefile.in (parse.cc): Expect 13 shift/reduce conflicts. |
2526
|
816 |
2525
|
817 * parse.y (set_stmt_print_flag): New function. |
|
818 (sep_type): New member for bison %union declaration. |
|
819 Simplify rules for statement lists keeping track of the type of |
|
820 the first separator in the values associated with the |
|
821 nonterminals for the separators. |
|
822 |
2524
|
823 * lex.l (handle_identifier): Set lexer_flags.doing_set if the |
|
824 token is "gset", not "set". |
|
825 |
|
826 Sat Nov 16 21:41:26 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
827 |
|
828 * Makefile.in (parse.cc, lex.cc): Add special rules for these files. |
|
829 Delete pattern rules for .y and .l files. |
|
830 |
2522
|
831 Fri Nov 15 13:48:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
832 |
2523
|
833 * pt-plot.cc: Put semicolons at the ends of all plot commands. |
|
834 |
2522
|
835 * defaults.cc (subst_octave_home): Start subsequent searchs from |
|
836 the end of the replaced text. |
|
837 |
|
838 * pr-output.cc (pr_any_float): Kluge for SCO systems. |
|
839 |
|
840 * pr-output.cc (pr_any_float, pr_complex): Don't declare inline. |
|
841 |
|
842 * mappers.cc: Include lo-ieee.h, for isinf and isnan on SCO |
|
843 systems. |
|
844 |
2512
|
845 Thu Nov 14 00:06:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
846 |
2520
|
847 * pt-plot.cc (Fgset, Fgshow): New commands. |
|
848 (Fshow): Print warning and call gshow. |
|
849 (Fset): Print warning and call gset. |
|
850 |
2517
|
851 * variables.cc (parse_fcn_file): Add unwind-protect for file |
|
852 pointer, so the file is always closed. |
|
853 (get_help_from_file): Likewise. |
|
854 * toplev.cc (parse_and_execute): Likewise. |
|
855 |
2516
|
856 * Makefile.in (install-oct): Depend on mk-oct-links. |
|
857 (mk-oct-links): New target. |
|
858 |
2512
|
859 * Version 1.92. |
|
860 |
2508
|
861 Wed Nov 13 11:13:22 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
862 |
2512
|
863 * sighandlers.cc (sys_siglist): [__EMX__]: Add definitions. |
|
864 |
|
865 * octave.cc (execute_startup_files): Allow init file name ot be |
|
866 specified by an environment variable. |
|
867 |
|
868 * dirfns.cc (make_absolute): [__EMX__]: Path is already absolute |
|
869 if it begins with any character followed by a colon. |
|
870 |
2511
|
871 * load-save.cc (read_mat_ascii_matrix, get_lines_and_columns, |
|
872 get_complete_line): New functions, for reading headless text files. |
|
873 (load_save_format): Add LS_MAT_ASCII, for headless text files. |
|
874 (do_load): Handle LS_MAT_ASCII files. |
|
875 Thanks to Mel Melchner <mjm@research.att.com> for initial version |
|
876 of this code. |
|
877 |
2508
|
878 * sysdep.cc: Conditionally include ieeefp.h. |
|
879 (BSD_init, SCO_init): New functions. |
|
880 (sysdep_init): Conditionally call them here. |
|
881 |
2499
|
882 Tue Nov 12 00:14:56 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
883 |
2508
|
884 * pt-plot.cc (open_plot_stream): Don't block SIGCHLD. |
|
885 |
2499
|
886 * load-save.cc (read_binary_data): When reading string arrays, be |
|
887 sure to create an octave_char_matrix_str object, not just an |
|
888 octave_char_matrix object. |
|
889 (read_ascii_data): Likewise. |
|
890 |
2497
|
891 Mon Nov 11 22:52:58 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
892 |
|
893 * load-save.cc (read_binary_data): Don't forget teminating NUL for |
|
894 string that we plan to insert. |
|
895 (read_ascii_data): Likewise. |
|
896 |
2495
|
897 Sun Nov 10 16:58:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
898 |
2496
|
899 * dirfns.cc (Ffnmatch): New function. |
|
900 |
2495
|
901 * octave.cc (intern_argv): Use new string_vector constructor. |
|
902 |
|
903 * ov-str-mat.cc (octave_char_matrix_str::all_strings): Have |
|
904 charMatrix::row_as_string() strip trailing whitespace. |
|
905 |
|
906 * dirfns.cc (Fglob): new function. |
|
907 |
|
908 * sysdep.cc (oct_tilde_expand): Provide version that works on |
|
909 string vectors too. |
|
910 (Ftilde_expand): Work on string vector args. |
|
911 |
|
912 * load-save.cc (save_binary_data): Call char_matrix_value() to |
|
913 extract charMatrix from octave_value object, not all_strings(). |
|
914 (save_ascii_data): Likewise. |
|
915 * pt-mat.cc (tree_matrix::eval): Likewise. |
|
916 |
|
917 * ov.h (octave_value::all_strings): Return string_vector, not |
|
918 charMatrix. |
|
919 * ov-base.cc (octave_base_value::all_strings): Likewise. |
|
920 * ov-str-mat.h, ov-str-mat.cc (octave_char_matrix_str::all_strings): |
|
921 Likewise. |
|
922 |
2487
|
923 Fri Nov 8 09:54:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
924 |
2492
|
925 * defaults.cc, dynamic-ld.cc, fn-cache.cc, help.cc, oct-hist.cc, |
|
926 octave.cc, pager.cc, pt-fcn.cc, toplev.cc, utils.cc, variables.cc, |
|
927 lex.l: Change #include "" to #include <> for defaults.h, |
|
928 oct-conf.h, oct-gperf.h, y.tab.h, and version.h, to avoid getting |
|
929 them from $srcdir when we really want the version from the build |
|
930 directory. (Maybe this should be done for all the include files, |
|
931 not just those that are auto-generated? Hmm.) |
|
932 |
2488
|
933 * defaults.h.in (CXXLIB_LIST, CXXLIB_PATH, FLIB_LIST, FLIB_PATH): |
|
934 Delete. |
|
935 |
2487
|
936 * Makefile.in (install-oct): Use $(INSTALL_PROGRAM) for .oct files. |
|
937 |
2477
|
938 Thu Nov 7 07:59:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
939 |
2487
|
940 * variables.cc (gobble_leading_white_space): New arg, update_pos. |
|
941 * (is_function_file): Don't update file position information here. |
|
942 |
2482
|
943 * Version 1.91. |
|
944 |
2479
|
945 * pt-fvc.cc (tree_indirect_ref::reference): If the lhs object is |
|
946 not a map, convert it to one. |
|
947 |
|
948 * ov-typeinfo.h (init_tab_sz): New static member. |
|
949 |
2477
|
950 * ov-struct.cc, ov-struct.h: Add hooks for custom memory management. |
|
951 * ov-scalar.cc, ov-scalar.h: Likewise. |
|
952 * ov-re-mat.cc, ov-re-mat.h: Likewise. |
|
953 * ov-range.cc, ov-range.h: Likewise. |
|
954 * ov-cx-mat.cc, ov-cx-mat.h: Likewise. |
|
955 * ov-complex.cc, ov-complex.h: Likewise. |
|
956 * ov-ch-mat.cc, ov-ch-mat.h: Likewise. |
|
957 |
2474
|
958 Wed Nov 6 12:32:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
959 |
2482
|
960 * pager.cc (do_sync): Don't call clear_external_pager() here. |
2476
|
961 |
2475
|
962 * pt-const.h (tree_constant::allocator) New static member. |
|
963 (tree_constant::operator new, tree_constant::operator delete): |
|
964 Implement with custom allocator. |
|
965 |
|
966 * syscalls.cc (Fgetgid, Fgetegid): New functions. |
|
967 |
|
968 * sighandlers.cc (sigchld_handler): If necessary, reinstall |
|
969 handler after call to waitpid(). |
|
970 |
|
971 * pager.cc (pager_death_handler): Don't use warning() to print |
|
972 message. |
|
973 |
|
974 * getgrent.cc: New file. |
|
975 * Makefile.in (DLD_SRC): Add it. |
|
976 |
|
977 * ov.cc (octave_value::print_with_name): Call is_map() instead of |
|
978 print_as_structure(). |
|
979 * ov-struct.cc (octave_struct::print): Likewise. |
|
980 |
|
981 * ov.h, ov.cc, pt-const.h: Delete force_numeric(), make_numeric(), |
|
982 convert_to_matrix_type(), print_as_structure() member functions. |
|
983 |
2474
|
984 * variables.cc (is_function_file): Call gobble_leading_whitespace |
|
985 here to strip all leading whitespace and comments. |
|
986 (parse_fcn_file): If reading a function file, call |
|
987 gobble_leading_whitespace again after resetting parser state to |
|
988 grab help text. |
|
989 |
2469
|
990 Tue Nov 5 13:00:35 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
991 |
2472
|
992 * syscalls.cc (Fgeteuid, Fgetuid): New functions. |
|
993 |
|
994 * getpwent.cc: Use gripe_not_supported from gripes.cc, instead of |
|
995 local gripe_not_implemented function. |
|
996 |
2470
|
997 * input.cc, sysdep.cc, variables.cc: Only include readline.h and |
|
998 history.h if USE_READLINE is defined. |
|
999 |
|
1000 * help.cc: Make it compile without warnings even if USE_GNU_INFO |
|
1001 is not defined. |
|
1002 |
2469
|
1003 * sighandlers.h (octave_child_list): Don't define |
|
1004 HAVE_POSIX_SIGNALS HERE. |
|
1005 |
|
1006 * sighandlers.cc (SIGHANDLER_RETURN): New macro. |
|
1007 (generic_sig_handler, sigchld_handler, sigfpe_handler, |
|
1008 sigint_handler, sigpipe_handler): Use it. |
|
1009 (sigchld_handler, sigfpe_handler, sigint_handler, sigpipe_handler): |
|
1010 Only reinstall signal handler if MUST_REINSTALL_SIGHANDLER is defined. |
|
1011 |
2463
|
1012 Sun Nov 3 00:45:30 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1013 |
2466
|
1014 * pt-const.cc (tree_constant::print): Just call val.print(). |
|
1015 * ov-base.cc, ov-ch-mat.cc, ov-colon.cc, ov-complex.cc, |
|
1016 ov-cx-mat.cc, ov-range.cc, ov-re-mat.cc, ov-scalar.cc, |
|
1017 ov-str-mat.cc, ov-struct.cc ov-va-args.cc, ov.cc (print): |
|
1018 Handle pr_as_read_syntax arg. |
|
1019 |
|
1020 * defaults.cc (subst_octave_home): Search for prefix repeatedly in |
|
1021 retval, not s. |
|
1022 |
|
1023 * gripes.h: Make declaration of gripes_not_supported match |
|
1024 definition. |
|
1025 |
2465
|
1026 * mk-oct-links.in: In sed command, match "DEFUN_DLD *( *", not |
|
1027 "DEFUN_DLD_BUILTIN *( *". |
|
1028 |
|
1029 * chol.cc, colloc.cc, dassl.cc, det.cc, eig.cc, expm.cc, fft.cc, |
|
1030 fft2.cc, filter.cc, find.cc, fsolve.cc, fsqp.cc, getpwent.cc, |
|
1031 getrusage.cc, givens.cc, hess.cc, ifft.cc, ifft2.cc, inv.cc, |
|
1032 log.cc, lpsolve.cc, lsode.cc, lu.cc, minmax.cc, npsol.cc, pinv.cc, |
|
1033 qpsol.cc, qr.cc, quad.cc, qzval.cc, rand.cc, schur.cc, sort.cc, |
|
1034 svd.cc, syl.cc, time.cc: Change all uses of DEFUN_DLD_BUILTIN to |
|
1035 be just DEFUN_DLD. |
|
1036 |
|
1037 * defun-dld.h: Eliminate DEFUN_DLD_BUILTIN. |
|
1038 |
2464
|
1039 * syswait.h: Use #ifdef HAVE_SYS_WAIT_H, not #if HAVE_SYS_WAIT_H |
|
1040 to decide whether to include sys/wait.h. |
|
1041 |
|
1042 * pt-exp-base.h (tree_expression): Declare oper() here as a |
|
1043 virtual member function. |
|
1044 |
2463
|
1045 * pt-pr-code.cc (tree_print_code::visit_constant): Check for |
|
1046 string before checking for char_matrix. |
|
1047 |
|
1048 * ov-ch-mat.cc (octave_char_matrix::print): Supply correct number |
|
1049 of args to octave_print_internal(). |
|
1050 |
2457
|
1051 Sat Nov 2 20:44:55 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1052 |
2458
|
1053 * file-io.cc (Ftmpnam): Rename from Foctave_temp_file_name. |
|
1054 |
2457
|
1055 * Makefile.in (DLD_SRC): Move time.cc and getrusage.cc here from |
|
1056 SOURCES. Add getpwent.cc. |
|
1057 |
|
1058 * getrusage.cc: Rename from resource.cc. Make getrusage a |
|
1059 loadable function. |
|
1060 |
|
1061 * time.cc: Rename from timefns.cc. Make time functions loadable. |
|
1062 |
|
1063 * getpwent.cc: New file. |
|
1064 |
2439
|
1065 Wed Oct 30 01:06:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1066 |
2452
|
1067 * Version 1.90. |
|
1068 |
|
1069 * Makefile.in (DISTFILES): Add ChangeLog. |
|
1070 |
2449
|
1071 * ov-range.cc (octave_range::convert_to_str): New function. |
|
1072 |
|
1073 * ov-str-mat.h (octave_char_matrix_str::char_matrix_value): |
|
1074 Delete function. Already handled by octave_char_matrix class. |
|
1075 |
|
1076 * ov-ch-mat.h (octave_char_matrix::convert_to_str): New function. |
|
1077 |
2448
|
1078 * pager.cc (Fmore): Set page_screen_output to 1.0 or 0.0, not |
|
1079 "true" or "false". |
|
1080 |
2447
|
1081 * ov-ch-mat.cc, ov-struct.cc, ov-struct.h, pr-output.cc, |
|
1082 pt-cmd.cc, pt-const.cc, pt-const.h, pt-fcn.cc, pt-fvc-base.cc, |
|
1083 pt-fvc-base.h, pt-fvc.cc, pt-fvc.h, rand.cc, sighandlers.cc, |
|
1084 variables.cc, variables.h: Delete unused code. |
|
1085 |
2445
|
1086 * octave.cc: Only include pwd.h if HAVE_PWD_H. |
|
1087 |
|
1088 * oct-strstrm.h: Include <string>, not <string.h>. |
|
1089 |
2442
|
1090 * defaults.cc, dirfns.cc, file-io.cc, help.cc, input.cc, |
|
1091 oct-hist.cc, oct-procbuf.cc, oct-procbuf.h, octave.cc, pager.h, |
|
1092 procstream.h, pt-misc.cc, pt-plot.cc, sighandlers.cc, strftime.c, |
|
1093 syscalls.cc, sysdep.cc, syswait.h, toplev.cc, utils.cc, |
|
1094 variables.cc: Only include sys/types.h if HAVE_SYS_TYPES_H. |
|
1095 |
2440
|
1096 * error.h (panic): Use GCC_ATTR_NORETURN macro, not NORETURN. |
|
1097 * toplev.h (clean_up_and_exit): Likewise. |
|
1098 * utils.h (jump_to_top_level): Likewise. |
|
1099 |
2439
|
1100 * derfaults.h.in, defaults.cc (local_arch_lib_dir): New variable. |
|
1101 * defaults.cc (set_default_local_arch_lib_dir): New function. |
|
1102 (install_defaults): Call it. |
|
1103 (exec_path): Use Vlocal_arch_lib_dir here. |
|
1104 * toplev.cc (octave_config_info): Add localarchlibdir to structure. |
|
1105 |
2436
|
1106 Tue Oct 29 15:54:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1107 |
2437
|
1108 * Makefile.in (install-oct): Don't do anything if $(OCT_FILES) is |
|
1109 empty. |
|
1110 |
2436
|
1111 * ov-range.cc (octave_range::index): New Function. |
|
1112 (octave_range::all, octave_range::any, octave_range::is_true): |
|
1113 Make these functions work. |
|
1114 |
|
1115 * ov.cc (octave_value::try_assignment_with_conversion): Remove |
|
1116 left over debugging print statements. |
|
1117 |
|
1118 Mon Oct 28 10:49:03 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1119 |
|
1120 * strftime.c: Add missing #endif for previous change. |
|
1121 |
2435
|
1122 Sun Oct 27 14:06:44 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1123 |
|
1124 * oct-hist.cc (do_history): Rewite option parsing to avoid |
|
1125 (probably bogus) errors from g++ on cygwin32 system. |
|
1126 |
|
1127 * strftime.c: Use autoconf macros TIME_WITH_SYS_TIME and |
|
1128 HAVE_SYS_TIME_H to decide which time.h files to include. |
|
1129 |
|
1130 * oct-stream.h, oct-stream.cc (octave_stream::error, |
|
1131 octave_base_stream::error): Rename errno => err_num. |
|
1132 |
2432
|
1133 Sat Oct 26 10:40:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1134 |
2434
|
1135 * oct-hist.cc (do_history): Move declaration of file inside |
|
1136 conditional. |
|
1137 |
2432
|
1138 * defun.h (DEFVAR_INT): Set eternal flag with (svc_fcn != 0) |
|
1139 instead of (sv_fcn ? 1 : 0) |
|
1140 |
2427
|
1141 Fri Oct 25 01:10:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1142 |
2431
|
1143 * ov-ch-mat.h (octave_char_matrix::any): Return 0.0 instead of false. |
|
1144 (octave_char_matrix::all): Likewise. |
|
1145 |
|
1146 * input.cc (Fecho): When binding value of echo_executing_commands, |
|
1147 cast ECHO_* to double. |
|
1148 |
|
1149 * sighandlers.cc (octave_child_list::do_remove): Delete unused |
|
1150 variable `enlarge'. |
|
1151 |
|
1152 * pt-const.h (tree_constant::tree_constant (const tree_constant&)): |
|
1153 Don't pass arg to tree_fvc constructor. |
|
1154 |
2427
|
1155 * resource.cc (getrusage): [HAVE_GETRUSAGE && RUSAGE_TIMES_ONLY]: |
|
1156 Only fill in time values. |
|
1157 |
|
1158 Thu Oct 24 20:37:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1159 |
|
1160 * parse.y: Comment out the %expect declaration so byacc can |
|
1161 compile this file. |
|
1162 (if_cmd_list): Add missing semicolon. |
|
1163 Include <cstdlib> for getenv if using byacc. |
|
1164 |
|
1165 * ov.h: Move typedefs outside of octave_value class scope to avoid |
|
1166 problem with cygwin32 beta16 compiler. |
|
1167 |
2421
|
1168 Fri Oct 18 13:44:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1169 |
2423
|
1170 * ov.h (octave_value::index): Undo previous change. |
|
1171 * ov.cc (octave_value constructors): Call maybe_mutate() in most |
|
1172 cases. |
|
1173 |
|
1174 * ov-complex.cc (octave_complex::index): Avoid implicit type |
|
1175 conversion back to scalar type. |
|
1176 * ov-scalar.cc (octave_scalar::index): Likewise. |
|
1177 |
2421
|
1178 * ov.h (octave_value::index): Call maybe_mutate() on retval before |
|
1179 returning it. |
|
1180 |
2418
|
1181 Wed Oct 16 12:00:11 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1182 |
2420
|
1183 * ov.h (octave_value::struct_elt_val): New optional arg, silent. |
|
1184 * ov-base.h, ov-base.cc, ov-struct.h, ov-struct.cc: Likewise, but |
|
1185 for the derived classes the arg is required. |
|
1186 |
|
1187 * data.cc (Fstruct_contains): Require arguments to be struct and |
|
1188 string, respectively. Call octave_value::struct_elt_val with |
|
1189 silent flag set. |
|
1190 |
2419
|
1191 * pt-mat.cc (tm_row_const::tm_row_const_rep::eval_error, |
|
1192 tm_row_const::tm_row_const_rep::eval_warning): New functions. |
|
1193 (tm_row_const::tm_row_const (const tree_matrix_row&): Use them to |
|
1194 give better error messages. |
|
1195 |
2418
|
1196 * pt-fvc.cc (tree_identifier::eval): Avoid dereferencing null |
|
1197 object_to_eval. |
|
1198 |
2412
|
1199 Tue Oct 15 11:35:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1200 |
|
1201 * op-cs-cm.cc, op-cs-cs.cc, op-cs-m.cc, op-cs-s.cc |
|
1202 (complex_matrix_conv): New functions. |
|
1203 Install preferred assignment conversion and widening ops. |
|
1204 |
|
1205 * op-s-cm.cc, op-s-cs.cc (complex_matrix_conv): New functions. |
|
1206 Install preferred assignment conversion and widening ops. |
|
1207 |
|
1208 * op-s-m.cc, op-s-s.cc (matrix_conv): New functions. |
|
1209 Install preferred assignment conversion and widening ops. |
|
1210 |
|
1211 * ov.cc (octave_value::try_assignment_with_conversion, |
|
1212 octave_value::convert_and_assign, octave_value::try_assignment): |
|
1213 New functions. |
|
1214 (octave_value::assign): Use them to implement twisted logic for |
|
1215 type conversions in assigments. |
|
1216 |
|
1217 * pt-const.h (tree_constant::maybe_mutate): New function. |
|
1218 * ov.h (octave_value::maybe_mutate): New function. |
|
1219 (octave_value::try_narrowing_conversion): New function. |
|
1220 Use just one typedef for widening_op_fcn and numeric_conv_fcn. |
|
1221 Change all uses. |
|
1222 * ov-base.h, ov-complex.h, ov-complex.cc, ov-cx-mat.h, |
|
1223 ov-cx-mat.cc, ov-range.h, ov-range.cc, ov-re-mat.h, ov-re-mat.cc, |
|
1224 Provide derived class versions of try try_narrowing_conversion(). |
|
1225 |
|
1226 * pr-output.cc (octave_print_internal): Don't bother handing off |
|
1227 to scalar/real versions, even when it would seem appropriate. |
|
1228 |
|
1229 * symtab.cc (symbol_def::define (tree_constant *)): Call |
|
1230 maybe_mutate on constants here. |
|
1231 |
2405
|
1232 Mon Oct 14 11:05:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1233 |
2407
|
1234 * pt-fvc.cc (tree_identifier::eval): If retval is undefined and |
|
1235 the object to eval is a constant, print error message. |
2406
|
1236 |
2405
|
1237 * Makefile (distclean): Remove *.oct too. |
|
1238 |
|
1239 * defun-int.h: Include variables.h here. |
|
1240 |
2403
|
1241 Sun Oct 13 10:52:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1242 |
2404
|
1243 * variables.cc (print_symbol_info_line): Never print negative |
|
1244 diminsions. |
|
1245 |
|
1246 * symtab.h (octave_symbol_record_info): Store const_type as string. |
|
1247 (octave_symbol_record_info::init): Delete. Fix constructors. |
|
1248 (octave_symbol_record_info::type_name): Handle const_type as string. |
|
1249 |
2403
|
1250 * octave.cc (maximum_braindamage): Replace "true" with 1.0 and |
|
1251 "false" with 0.0 in calls to bind_builtin_variable(). |
|
1252 Include sun-utils.h here. |
2404
|
1253 (intern_argv): Also bind __argv__. |
2403
|
1254 |
2391
|
1255 Sat Oct 12 13:40:21 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1256 |
2399
|
1257 * Makefile.in (distclean): Also delete mk-oct-links. |
|
1258 |
|
1259 Fri Oct 11 13:13:13 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1260 |
2391
|
1261 Changes for Octave's new type system: |
|
1262 |
|
1263 * arith-ops.cc: Delete. |
|
1264 * pt-const.h, pt-const.cc: Massive changes. Most functionality |
|
1265 moved to ov.h, ov.cc, and derived classes. |
|
1266 |
|
1267 * variables.h, variables.cc (octave_variable_reference): New class |
|
1268 for getting references to variables and structure elements used in |
|
1269 assignments or value contexts. |
|
1270 |
|
1271 * symtab.h, symtab.cc (symbol_record::define (const octave_value&), |
|
1272 symbol_record::variable_value, symbol_record::variable_reference): |
|
1273 New functions. |
|
1274 (symbol_record_info::type_name): Rename from type_as_string. |
|
1275 |
|
1276 * pt-fvc-base.h, pt-fvc-base.cc (tree_fvc::increment, |
|
1277 tree_fvc::decrement): New functions to replace |
|
1278 tree_fvc::bump_value. |
|
1279 #if 0 assign and lookup_map_element functions. |
|
1280 |
|
1281 * pt-mvr.cc (tree_multi_assignment_expression::eval): |
|
1282 Generated RHS value is now a tree_constant. |
|
1283 |
|
1284 * pt-exp.h, pt-exp.cc (tree_boolean_expression): New class. |
|
1285 (tree_unary_expression, tree_binary_expression, |
|
1286 tree_boolean_expression): Move codes here from tree_expression. |
|
1287 (tree_simple_assignment_expression): Cope with changes to way of |
|
1288 doing assignments. |
|
1289 |
|
1290 * pt-exp-base.h, pt-exp-base.cc (enum type): Delete codes for |
|
1291 unary and binary ops. |
|
1292 (tree_expression::expression_type): Delete. |
|
1293 (tree_expression::is_logically_true): Hand off to |
|
1294 octave_value::is_true to do real work. |
|
1295 |
|
1296 * pr-output.h, pr-output.cc (any_element_is_inf_or_nan, |
|
1297 all_elements_are_ints): Delete. Call member new functions for |
|
1298 these operations. |
|
1299 (free_format, plus_format, bank_format, hex_format, |
|
1300 compact_format, print_e, print_big_e): Use bool, not int. |
|
1301 (octave_print_internal): Hand off to scalar/real versions when |
|
1302 appropriate. |
|
1303 |
|
1304 * octave.cc (main): Call initialize_types() and install_ops(). |
|
1305 (verbose_usage): Add WWW address to output. |
|
1306 |
|
1307 * parse.y (indirect_ref): Handle by making a tree instead of a |
|
1308 list using new version of tree_indirect_ref class. |
|
1309 |
|
1310 * parse.y (make_boolean_op): New function. Use it instead of |
|
1311 make_binary_op to create trees for && and || ops. |
|
1312 (make_binary_op): Codes come from tree_binary_expression now, |
|
1313 instead of tree_expression. |
|
1314 (make_unary_op): Codes come from tree_unary_expression now, |
|
1315 instead of tree_expression. |
|
1316 (make_boolean_op): Codes come from tree_boolean_expression. |
|
1317 |
|
1318 *parse.y (tree_constant_type): Change type to tree_constant* from |
|
1319 octave_value*, and rename from octave_value_type. Change uses. |
|
1320 |
|
1321 * defun.h (DEFVAR_INT): Pass octave_value not pointer to |
|
1322 octave_value for defn when creating builtin_variable. |
|
1323 |
|
1324 * gripes.h, gripes.cc (gripe_invalid_conversion): Args are |
|
1325 strings, not char*. |
|
1326 (gripe_implicit_conversion, gripe_divide_by_zero): New extern |
|
1327 gripe functions. |
|
1328 |
|
1329 * mkbuiltins: For each file, create a separate static function to |
|
1330 install builtins, then create another single extern function to |
|
1331 call all of them. |
|
1332 |
|
1333 * pt-fcn.cc (tree_function::bind_nargin_and_nargout): |
|
1334 Just pass doubles and let symbol_record::define handle creating |
|
1335 new value. |
|
1336 |
|
1337 * pt-pr-code.cc, pt-pr-code.h (visit_constant): Renamed from |
|
1338 visit_octave_value. |
|
1339 (visit_unary_expression): Use tree_expression::is_prefix_op() |
|
1340 instead of switch on op types. |
|
1341 |
|
1342 * pt-walk.h (visit_constant): Renamed from visit_octave_value. |
|
1343 |
|
1344 * pt-misc.cc (initialize_undefined_elements): Get reference to |
|
1345 tmp, then assign. |
|
1346 * pt-cmd.cc (do_for_loop_once): Likewise, for loop identifier. |
|
1347 |
|
1348 * input.cc (generate_struct_completions, looks_like_struct): Cast |
|
1349 tmp_fvc to tree_constant*, not octave_value*. |
|
1350 (get_user_input): Call print() on retval, not eval(1). |
|
1351 |
|
1352 * help.cc (Ftype): Cast defn to tree_constant*, not octave_value*. |
|
1353 |
|
1354 * balance.cc: Fix docstring. |
|
1355 |
|
1356 * dassl.cc, fsolve.cc, load-save.cc, lsode.cc, npsol.cc, qpsol.cc, |
|
1357 quad.cc: |
|
1358 Include pt-fvc.h. |
|
1359 |
|
1360 * data.cc (Fstruct_contains): call octave_value::struct_elt_val, |
|
1361 not octave_value::lookup_map_element. |
|
1362 |
|
1363 * dirfns.cc (Fcd): Pass directory name as string directly to |
|
1364 bind_builtin_variable instead of creating new octave_value. |
|
1365 |
|
1366 * toplev.cc: Include pt-fvc.h and lo-mappers.h |
|
1367 |
|
1368 * data.cc, error.cc, file-io.cc, load-save.cc, pager.cc, |
|
1369 pt-mat.cc, pt-plot.cc, syscalls.cc, toplev.cc: |
|
1370 Include variables.h. |
|
1371 |
|
1372 * Array-tc.cc, Map-tc.cc, SLList-misc.cc SLList-tc.cc, data.cc, |
|
1373 defaults.cc, dynamic-ld.cc, error.cc, gripes.cc, lex.l, octave.cc, |
|
1374 oct-map.h, oct-map.cc, oct-obj.h, pt-cmd.cc, pt-exp.cc, pt-fcn.cc, |
|
1375 pt-fvc-base.cc, pt-mat.cc, pt-misc.cc, pt-mvr-base.cc, pt-mvr.h, |
|
1376 resource.cc, strfns.cc, sysdep.cc, timefns.cc, toplev.cc: |
|
1377 Include ov.h instead of pt-const.h. |
|
1378 |
|
1379 * xpow.cc (any_element_is_negative): Delete. |
|
1380 (xpow and elem_xpow functions): Check conformance here. |
|
1381 |
|
1382 * xdiv.cc (mx_leftdiv_conform, mx_div_conform): |
|
1383 Now template-based, taking Matrices instead of dimensions as args. |
|
1384 Change all callers. |
|
1385 |
|
1386 * op-cm-cm.cc, op-cm-cm.h, op-cm-cs.cc, op-cm-cs.h, op-cm-m.cc, |
|
1387 op-cm-m.h, op-cm-s.cc, op-cm-s.h, op-cs-cm.cc, op-cs-cm.h, |
|
1388 op-cs-cs.cc, op-cs-cs.h, op-cs-m.cc, op-cs-m.h, op-cs-s.cc, |
|
1389 op-cs-s.h, op-m-cm.cc, op-m-cm.h, op-m-cs.cc, op-m-cs.h, op-m-m.cc, |
|
1390 op-m-m.h, op-m-s.cc, op-m-s.h, op-s-cm.cc, op-s-cm.h, op-s-cs.cc, |
|
1391 op-s-cs.h, op-s-m.cc, op-s-m.h, op-s-s.cc, op-s-s.h, |
|
1392 op-str-str.cc, op-str-str.h, ops.cc, ops.h, ov-base.cc, ov-base.h, |
|
1393 ov-ch-mat.cc, ov-ch-mat.h, ov-colon.cc, ov-colon.h, ov-complex.cc, |
|
1394 ov-complex.h, ov-cx-mat.cc, ov-cx-mat.h, ov-range.cc, ov-range.h, |
|
1395 ov-re-mat.cc, ov-re-mat.h, ov-scalar.cc, ov-scalar.h, ov-str-mat.cc, |
|
1396 ov-str-mat.h, ov-struct.cc, ov-struct.h, ov-typeinfo.cc, |
|
1397 ov-typeinfo.h, ov-va-args.cc, ov-va-args.h, ov.cc, ov.h: |
|
1398 New files for Octave's new type system. |
|
1399 * Makefile.in: Add them to the appropriate lists. |
|
1400 |
|
1401 Sat Sep 14 21:58:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1402 |
|
1403 * mkbuiltins: Use .df instead of .def. |
|
1404 Write one function for each .df file, then call them |
|
1405 all in install_builtin_functions(). |
|
1406 * Makefile.in: Handle .df instead of .def. |
|
1407 |
|
1408 * balance.cc (balance): Fix typo in doc string. |
|
1409 |
|
1410 Wed Aug 28 21:01:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1411 |
|
1412 * octave.cc (verbose_usage): Include WWW address and bug-octave |
|
1413 mailing list address. |
|
1414 |
2354
|
1415 Tue Aug 20 17:41:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1416 |
2358
|
1417 * Makefile.in: Only define pattern rules for making .oct files if |
|
1418 OCTAVE_LITE is true. |
|
1419 Only add pic/ to $(TI_OBJ) if $(SHARED_LIBS) is true. |
|
1420 (stamp-picdir): Only create a pic subdirectory if SHARED_LIBS or |
|
1421 OCTAVE_LITE is true AND CPICFLAG or CXXPICFLAG is not empty. |
|
1422 |
2354
|
1423 * minmax.cc (Fmin, Fmax): Deal with changes to Matrix class |
|
1424 min/max methods. |
|
1425 |
2345
|
1426 Thu Jul 25 01:42:38 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1427 |
2348
|
1428 * input.cc (generate_possible_completions): Force the names to be |
|
1429 unique. |
|
1430 |
2345
|
1431 * load-save.cc (read_mat_binary_data): Expect to read terminating |
|
1432 NUL character in the variable name. |
|
1433 (save_mat_binary_data): Likewise, save it here. |
|
1434 |
2341
|
1435 Wed Jul 24 05:08:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1436 |
2343
|
1437 * lsode.cc (Flsode): Don't set the return value if an error |
|
1438 occurred during integration. |
2344
|
1439 * dassl.cc (Fdassl): Likewise. |
2343
|
1440 |
2341
|
1441 * file-io.cc (symbols_of_file_io): Redefine values of SEEK_SET, |
|
1442 SEEK_CUR, and SEEK_END for Matlab compatibility. |
|
1443 * oct-stream.cc (seek): Check for compatible values of ORIGIN arg. |
|
1444 Also handle "bof", "cof", and "eof". |
|
1445 |
2338
|
1446 Fri Jul 19 15:24:36 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1447 |
|
1448 * pt-const.cc: When creating octave_value_reps from ComplexMatrix |
|
1449 values, check to see if all the elements are actually real. |
|
1450 |
2330
|
1451 Tue Jul 16 10:53:42 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1452 |
2341
|
1453 * input.cc (decode_prompt_string): Swap meanings of \h and \H. |
2330
|
1454 |
|
1455 Mon Jul 15 16:01:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1456 |
|
1457 * toplev.cc (run_command_and_return_output): Renamed from do_system. |
|
1458 (Fsystem): Make `system ("emacs")' work as one would expect. |
|
1459 |
|
1460 Sun Jul 14 17:34:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1461 |
|
1462 * file-io.cc (Ffopen, Ffread, Ffwrite): Update doc strings, |
|
1463 correctly handle default architecture and precision args. |
|
1464 |
|
1465 * load-save.cc (mopt_digit_to_float_format): Rename from |
|
1466 get_floating_point_format. |
|
1467 (float_format_to_mopt_digit): New function. |
|
1468 |
|
1469 * oct-stream.cc (octave_base_stream::read, octave_base_stream::write): |
|
1470 Simplify by calling Matrix::read and Matrix::write to do real work |
|
1471 of reading, writing, and format conversion. |
|
1472 |
|
1473 * oct-stream.h (octave_base_stream): Move data_type enum to |
|
1474 liboctave/data-conv.h. Use float_format from |
|
1475 liboctave/mach-info.h instead of arch_type enum. |
|
1476 |
|
1477 * sysdep.h, sysdep.cc (octave_words_big_endian, ten_little_endians): |
|
1478 Delete. Now part of oct_mach_info class in liboctave. |
|
1479 |
|
1480 Tue Jul 9 11:18:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1481 |
|
1482 * arith-ops.cc, balance.cc, dassl.cc, data.cc, filter.cc, find.cc, |
|
1483 fsolve.cc, load-save.cc, log.cc, lsode.cc, minmax.cc, npsol.cc, |
|
1484 oct-obj.cc, oct-stream.cc, pr-output.cc, pt-cmd.cc, pt-const.cc, |
|
1485 pt-fvc.cc, pt-plot.cc, quad.cc, rand.cc, sighandlers.cc, sort.cc, |
|
1486 syscalls.cc, unwind-prot.cc, xdiv.cc, xpow.cc: |
|
1487 When indexing arrays, use operator() instead of elem() so that |
|
1488 bounds checking can be done consistently. |
|
1489 |
|
1490 Mon Jun 24 02:13:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1491 |
|
1492 * Makefile.in (install-oct): Use INSTALL_PROGRAM, instead of |
|
1493 INSTALL_DATA for installing shared libraries. |
|
1494 |
|
1495 * lex.l (grab_help_text): Ignore all initial comment characters, |
|
1496 not just the first. |
|
1497 * variables.cc (gobble_leading_white_space): Likewise. |
|
1498 |
|
1499 Sat Jun 22 22:43:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1500 |
|
1501 * input.h, input.cc (octave_completion_matches_called): New varaible. |
|
1502 (Fcompletion_matches): Set it to true on a successful call. |
|
1503 * toplev.cc (main_loop): If octave_completion_matches_called is |
|
1504 true, don't increment current_command_number. |
|
1505 |
|
1506 Thu Jun 13 03:52:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1507 |
|
1508 * variables.cc (is_mapper_function_name, |
|
1509 is_builtin_function_name): New functions. |
|
1510 (Fdocument): Use them. |
|
1511 Define as regular function, not a text style function. |
|
1512 |
|
1513 Thu Jun 6 00:09:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1514 |
|
1515 * pt-plot.cc: Handle new built-in variable `gnuplot_has_frames'. |
|
1516 |
|
1517 Wed Jun 5 14:45:04 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1518 |
|
1519 * input.cc (decode_prompt_string): \h now means the whole host |
|
1520 name and \H is the host name up to the first `.'. |
|
1521 |
|
1522 Thu May 30 23:41:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1523 |
|
1524 * fn-cache.cc (octave_fcn_file_name_cache::do_list): Always |
|
1525 recompute the lists of function files instead of trying to cache |
|
1526 them. |
|
1527 |
|
1528 Tue May 28 12:05:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1529 |
|
1530 * utils.cc (warn_old_style_preference): New function. |
|
1531 (check_preference): Use it. |
|
1532 |
|
1533 * fn-cache.h: Include <ctime> here. |
|
1534 |
|
1535 Fri May 24 00:57:14 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1536 |
|
1537 * input.cc (completion_matches): Don't return empty string_vectors. |
|
1538 |
|
1539 * octave.cc (long_opts): Add braindead. |
|
1540 |
|
1541 Thu May 23 01:49:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1542 |
|
1543 * input.cc (gnu_readline): New optional arg, force_readline. |
|
1544 (get_user_input): Use it. |
|
1545 |
|
1546 * pt-const.cc (OCT_VAL_REP::assign): If converting the rhs to a |
|
1547 numeric value, convert a copy, not the actual object. |
|
1548 (OCT_VAL_REP::do_index): Prevent s([]) from resulting in a string |
|
1549 with zero rows. |
|
1550 |
|
1551 * mappers.cc: Handle toascii here. |
|
1552 * strfns.cc: Not here. |
|
1553 |
|
1554 * mappers.cc: Handle tolower and toupper here. |
|
1555 * mappers.h: Rename can_return_complex_for_real to flag and |
|
1556 overload meaning for ch_mapper. |
|
1557 * pt-fvc.cc (apply_mapper_fcn): Handle overloaded meaning. |
|
1558 |
|
1559 * syscalls.cc (stat): Return 3 values instead of just 1. |
|
1560 (lstat): Likewise. |
|
1561 |
|
1562 Wed May 22 02:34:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1563 |
|
1564 * pt-const.cc (OCT_VAL_REP::make_numeric): For string to number |
|
1565 conversions, correctly set type tag before calling force_numeric. |
|
1566 (do_binary_op): Force string to number conversion if both args are |
|
1567 strings and we are doing some sort of comparison operation. |
|
1568 |
|
1569 * Makefile.in (stamp-tinst, stamp-interp): Use SH_TERMLIBS and |
|
1570 SH_LIBS instead of TERMLIBS and LIBS. |
|
1571 |
|
1572 * pt-const.cc (do_unary_op): Add special case to handle |
|
1573 transposing strings. |
|
1574 |
|
1575 * pt-mat.cc (Vstring_fill_char): New variable. |
|
1576 (symbols_of_pt_mat): DEFVAR it. |
|
1577 |
|
1578 * input.cc (generate_struct_completions, |
|
1579 generate_possible_completions): Return string_vector, not char **. |
|
1580 Change all callers. |
|
1581 |
|
1582 * pt-const.cc (lookup_map_element): Use substr() correctly. |
|
1583 |
|
1584 Tue May 21 21:37:17 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1585 |
|
1586 * oct.h: New file. |
|
1587 * Makefile.in (INCLUDES): Add it to the list. |
|
1588 |
|
1589 * octave.cc: New args --no-site-file and --no-init-file. Delete |
|
1590 --ignore-init-file. The flag --norc (-f) implies both |
|
1591 --no-site-file and --no-init-file. |
|
1592 |
|
1593 Fri May 17 01:54:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1594 |
|
1595 * input.cc (Fcompletion_matches): New function. |
|
1596 |
|
1597 * utils.cc (get_fcn_file_names): Delete. |
|
1598 * help.cc (simple_help): Use new file name cache instead of |
|
1599 calling get_fcn_file_names. |
|
1600 * variables.cc (make_name_list): Likewise. |
|
1601 |
|
1602 * fn-cache.h, fn-cache.cc, Map-fnc.cc: New files. |
|
1603 * Makefile.in: Add them to the lists. |
|
1604 |
|
1605 * Makefile.in (uninstall): Install in octincludedir, not includedir. |
|
1606 |
|
1607 * pt-plot.h: Include <csignal> here. |
|
1608 |
|
1609 Thu May 16 10:52:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1610 |
|
1611 * oct-stream.cc (octave_stream::oscanf, octave_base_stream::oscanf, |
|
1612 octave_base_stream::do_oscanf): New functions for backward |
|
1613 compatibility with older versions of Octave. |
|
1614 (scanf_format_elt, scanf_format_list): Keep track of width specifier. |
|
1615 * file-io.cc (Fscanf): New function. |
|
1616 (Fscanf, Ffscanf, Fsscanf): Handle compatibility arg. |
|
1617 |
|
1618 Wed May 15 01:00:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1619 |
|
1620 * oct-stream.cc (do_scanf): If doing '%c' conversion, unset |
|
1621 ios::skipws on input stream. |
|
1622 |
|
1623 * sighandlers.h, sighandlers.cc (octave_child, octave_child_list): |
|
1624 New classes for keeping track of the child processes we create. |
|
1625 (sigchld_handler): Check in octave_child_list to see if there is |
|
1626 anything we can do for the child that died. |
|
1627 * pager.cc: Register child pager process. |
|
1628 * pt-plot.cc: Likewise, for the plotter. |
|
1629 * Array-oc.cc: New file |
|
1630 * Makefile.in (TI_SRC): Add it to the list. |
|
1631 |
|
1632 * pager.cc (do_sync): Don't check error_state. |
|
1633 (flushing_output_to_pager): New static variable. |
|
1634 (flush_octave_stdout): Use it to avoid doing anything if already |
|
1635 flushing output. |
|
1636 |
|
1637 * sighandlers.cc (sigchld_handler): Call warning instead of |
|
1638 writing directly to cerr. |
|
1639 (sigpipe_handler): Call warning instead of message. |
|
1640 |
|
1641 * octave.cc (main): Call install_signal_handlers, |
|
1642 initialize_file_io, initialize_symbol_tables, and install_builtins |
|
1643 before parsing command line options. |
|
1644 |
|
1645 * user-prefs.h, user-prefs.cc: Delete. |
|
1646 |
|
1647 * utils.cc (check_preference): Move here. |
|
1648 * user-prefs.cc: From here. |
|
1649 |
|
1650 * defaults.cc: New file. Move initialization stuff from |
|
1651 variables.cc. Move DEFVARS for EDITOR, EXEC_PATH, LOADPATH, |
|
1652 IMAGEPATH, and OCTAVE_VERSION here. |
|
1653 |
|
1654 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
1655 INFO_FILE and INFO_PROGRAM. |
|
1656 * help.cc: Move all of that here. |
|
1657 (symbols_of_help): Add DEFVARS for INFO_FILE and INFO_PROGRAM. |
|
1658 |
|
1659 Tue May 14 00:23:06 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1660 |
|
1661 * pager.cc (do_sync): Be more defensive about sending stuff to the |
|
1662 external pager. |
|
1663 * sighandlers.cc (sigchld_handler): For now, only wait for |
|
1664 octave_pager_pid. Don't call error(). Do set octave_pager_pid to |
|
1665 -1 if the pager process no longer exists. |
|
1666 |
|
1667 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
1668 PWD. |
|
1669 * dirfns.cc: Move all of that here. |
|
1670 (symbols_of_dirfns): New function. |
|
1671 * variables.cc (install_builtin_variables): Call it. |
|
1672 |
|
1673 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
1674 default_save_format and save_precision. |
|
1675 * load-save.cc: Move all of that here. |
|
1676 (symbols_of_load_save): New function. |
|
1677 * variables.cc (install_builtin_variables): Call it. |
|
1678 |
|
1679 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
1680 warn_divide_by_zero. |
|
1681 * arith-ops.cc: Move all of that here. |
|
1682 (symbols_of_arith_ops): New function. |
|
1683 * variables.cc (install_builtin_variables): Call it. |
|
1684 |
|
1685 * mappers.cc: Add wrappers for ctype is* functions so that they |
|
1686 will work on systems that only define them as macros. |
|
1687 |
|
1688 Mon May 13 00:27:08 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1689 |
|
1690 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
1691 suppress_verbose_help_message. |
|
1692 * help.cc: Move all of that here. |
|
1693 (symbols_of_help): New function. |
|
1694 * variables.cc (install_builtin_variables): Call it. |
|
1695 |
|
1696 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
1697 treat_neg_dim_as_zero. |
|
1698 * pt-const.cc: Move all of that here. |
|
1699 |
|
1700 * pager.cc (octave_pager_stream::do_sync): Don't return early if |
|
1701 not interactive. |
|
1702 |
|
1703 * data.h: New file. |
|
1704 * Makefile.in (INCLUDES): Add it to the list. |
|
1705 * data.cc (symbols_of_data): New function. Move definition of I, |
|
1706 Inf, J, NaN, e, eps, i, inf, j, nan, pi, realmin, and realmax here. |
|
1707 * variables.cc: From here. |
|
1708 (install_builtin_variables): Call symbols_of_data. |
|
1709 |
|
1710 * file-io.cc (symbols_of_file_io): New function. Move definition |
|
1711 of SEEK_CUR, SEEK_END, SEEK_SET, stdin, stdout, stderr here. |
|
1712 * variables.cc: From here. |
|
1713 (install_builtin_variables): Call symbols_of_file_io. |
|
1714 |
|
1715 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
1716 do_fortran_indexing, implicit_str_to_num_ok, |
|
1717 ok_to_lose_imaginary_part, prefer_column_vectors, |
|
1718 prefer_zero_one_indexing, print_answer_id_name, |
|
1719 propagate_empty_matrices, resize_on_range_error, and |
|
1720 struct_levels_to_print. |
|
1721 * pt-const.cc: Move all of that here. |
|
1722 (symbols_of_pt_const): New function. |
|
1723 * variables.cc (install_builtin_variables): Call it. |
|
1724 * pt-fvc.cc (tree_identifier::assign): Use Vresize_on_range_error |
|
1725 instead of user_pref.resize_on_range_error here. |
|
1726 * load-save.cc (save_mat_binary_data): Use Vimplicit_str_to_num_ok |
|
1727 instead of user_pref.implicit_str_to_num_ok here. |
|
1728 * utils.cc (empty_arg): Use Vpropagate_empty_matrices instead of |
|
1729 user_pref.propagate_empty_matrices here. |
|
1730 * pt-exp-base.cc (tree_expression::is_logically_true): Likewise.. |
|
1731 |
|
1732 * pt-fcn.cc (symbols_of_pt_fcn): Also move DEFVAR for |
|
1733 default_return_value here. |
|
1734 |
|
1735 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
1736 ps1, ps2, ps4, and completion_append_char. |
|
1737 * input.cc: Move all of that here. |
|
1738 (symbols_of_input): New function. |
|
1739 * variables.cc (install_builtin_variables): Call it. |
|
1740 * pt-pr-code.cc (indent): Use Vps4 instead of user_pref.ps4 here. |
|
1741 * help.cc (Ftype): Also here. |
|
1742 |
|
1743 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
1744 automatic_replot, gnuplot_binary, and gnuplot_has_multiplot. |
|
1745 * pt-plot.cc: Move all of that here. |
|
1746 (symbols_of_pt_plot): New function. |
|
1747 * variables.cc (install_builtin_variables): Call it. |
|
1748 |
|
1749 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
1750 beep_on_error. |
|
1751 * error.cc: Move all of that here. |
|
1752 (symbols_of_error): New function. |
|
1753 * variables.cc (install_builtin_variables): Call it. |
|
1754 |
|
1755 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
1756 empty_list_elements_ok. |
|
1757 * pt-mat.cc: Move all of that here. |
|
1758 (symbols_of_pt_mat): New function. |
|
1759 * variables.cc (install_builtin_variables): Call it. |
|
1760 |
|
1761 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
1762 define_all_return_values, return_last_computed_value, and |
|
1763 silent_functions. |
|
1764 * pt-fcn.cc: Move all of that here. |
|
1765 (symbols_of_pt_fcn): New function. |
|
1766 * variables.cc (install_builtin_variables): Call it. |
|
1767 |
|
1768 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
1769 whitespace_in_literal_matrix. |
|
1770 * lex.l: Move all of that here. |
|
1771 (symbols_of_lex): New function. |
|
1772 * variables.cc (install_builtin_variables): Call it. |
|
1773 |
|
1774 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
1775 warn_assign_as_truth_value, warn_comma_in_global_decl, |
|
1776 warn_function_name_clash, and warn_missing_semicolon. |
|
1777 * parse.y: Move all of that here. |
|
1778 (symbols_of_parse): New function. |
|
1779 * variables.cc (install_builtin_variables): Call it. |
|
1780 |
|
1781 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
1782 output_precision, output_max_field_width, print_empty_dimensions, |
|
1783 and split_long_rows. |
|
1784 * pr-output.cc: Move all of that here. |
|
1785 (symbols_of_pr_output): New function. |
|
1786 * variables.cc (install_builtin_variables): Call it. |
|
1787 |
|
1788 * user-prefs.h, user-prefs.cc: Delete all stuff related to |
|
1789 page_screen_output, page_output_immediately, and pager_binary. |
|
1790 * pager.cc: Move all of that here. |
|
1791 |
|
1792 * user-prefs.h (check_preference): Provide declaration. |
|
1793 * user-prefs.cc (check_preference): Make external. |
|
1794 |
|
1795 * toplev.cc (Foctave_config_info): New function. |
|
1796 |
|
1797 * oct-conf.h.in: New file |
|
1798 * Makefile.in (oct-conf.h): New target. |
|
1799 Add it to the appropriate lists. |
|
1800 |
|
1801 * sighandlers.cc (sigchld_handler): Don't complain about wait |
|
1802 returning a negative value. |
|
1803 |
|
1804 * file-io.cc (Fsscanf, Fsprintf): Pass true for second arg of |
|
1805 octave_stream constructor. |
|
1806 |
|
1807 * oct-stream.h (octave_stream): New field, preserve. |
|
1808 (octave_stream::~octave_stream): If preserve, don't delete rep. |
|
1809 |
|
1810 * pager.cc (symbols_of_pager): Set default for |
|
1811 page_output_immediately to 0. |
|
1812 |
|
1813 * toplev.cc (do_system): Correctly handle return_output. |
|
1814 Append ends to output_buf before calling str(). |
|
1815 |
|
1816 * variables.cc: If M_PI and M_E are available, use them. |
|
1817 |
|
1818 * mk-oct-links.in (links_dir): If old link exists, delete it first. |
|
1819 |
|
1820 Sun May 12 01:46:07 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1821 |
|
1822 * Makefile.in (DISTFILES): List defaults.h.in and oct-gperf.h here. |
|
1823 (INCLUDES): Not here. |
|
1824 (install-inc): New target. |
|
1825 (uninstall): Also delete libraries and include files. |
|
1826 (install-inc): If linkdir is a directory, leave it alone. |
|
1827 (TERMLIBS, LIBPLPLOT, LIBDLFCN): Don't substitute here (now in |
|
1828 Makeconf). |
|
1829 |
|
1830 * oct-stream.cc (octave_base_stream::do_read): Provide initial |
|
1831 value for tmp var. |
|
1832 |
|
1833 * pt-walk.h, pt-pr-code.h, pt-pr-code.cc: New tree-walking classes. |
|
1834 * Makefile.in: Add them to the appropriate lists. |
|
1835 * pt-fvc-base.h, pt-exp-base.cc, pt-fvc-base.cc, pt-mvr-base.cc, |
|
1836 pt-base.cc, pt-mvr.cc, pt-mat.h, pt-mat.cc, pt-fvc.cc, |
|
1837 pt-const.cc, pt-cmd.cc, pt-const.h, pt-misc.cc, pt-plot.cc, |
|
1838 pt-fcn.cc, pt-plot.h, pt-mvr.h, pt-mvr-base.h, pt-misc.h, |
|
1839 pt-fcn.h, pt-exp.h, pt-exp.cc, pt-exp-base.h, pt-fvc.h, pt-cmd.h, |
|
1840 pt-base.h: |
|
1841 Replace print_code stuff with accept() functions. |
|
1842 Add member access functions where necessary. |
|
1843 * help.cc (Ftype): Update to use new method of walking trees to |
|
1844 print text representation of user-defined functions. |
|
1845 |
|
1846 * file-io.cc (Ffscanf): Update doc string. |
|
1847 (Fsscanf): Likewise. |
|
1848 |
|
1849 * oct-stream.cc (octave_base_stream::do_read): Correctly set max_size. |
|
1850 Pad mval with zeros on final resize. |
|
1851 (octave_base_stream::do_scanf): Likewise. |
|
1852 (do_scanf_conv): Correctly resize mval. |
|
1853 |
|
1854 Sat May 11 05:14:09 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1855 |
|
1856 * pager.cc (octave_pager_buf::sync): Correctly set bypass_pager. |
|
1857 |
|
1858 * lex.l (<MATRIX>{SNLCMT}*\]{S}*): Match SNLCMT, not just SNL. |
|
1859 |
|
1860 Fri May 3 11:05:30 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1861 |
|
1862 * pt-const.cc (OCT_VAL_REP::set_index): Complain if type can't be |
|
1863 indexed. |
|
1864 |
|
1865 * input.cc (get_user_input): Don't increment input line number if |
|
1866 input is coming from eval string. |
|
1867 |
|
1868 * user-prefs.cc: Allow empty strings for prompts. |
|
1869 |
|
1870 Thu May 2 10:50:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1871 |
|
1872 * pt-mvr.h (class tree_oct_obj): Declare values data member const. |
|
1873 |
|
1874 Sun Apr 28 03:16:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1875 |
|
1876 * user-prefs.h (user_preferences): New field, |
|
1877 `page_output_immediately'. |
|
1878 * user-prefs.cc (init_user_prefs): Initialize it. |
|
1879 (page_output_immediately): New function. |
|
1880 * pager.cc (syms_of_pager): Add DEFVAR. |
|
1881 (really_flush_to_pager): New file-scope variable. |
|
1882 (flush_octave_stdout): Set and restore it. |
|
1883 (octave_pager_buf::sync): Check it, user_pref.page_screen_output, |
|
1884 and user_pref.page_output_immediately to decide when to really |
|
1885 flush output. |
|
1886 (more_than_a_screenful): New function. If paging but not |
|
1887 immediately, then check this too. |
|
1888 |
|
1889 * pager.cc (default_pager): Move here from variables.cc. If pager |
|
1890 is less and LESS is not in the environment, append useful flags. |
|
1891 (symbols_of_pager): New function. |
|
1892 * variables.cc (install_builtin_variables): Call it. |
|
1893 Delete pager-related DEFVARs. |
|
1894 |
|
1895 * syswait.h (WIFSIGNALLED): Define if sys/wait.h doesn't. |
|
1896 |
|
1897 * sighandlers.cc: Handle SIGCHLD. |
|
1898 |
|
1899 * pager.cc, pager.h: Rewrite. |
|
1900 * pt-mvr.cc, pt-misc.cc, pt-fcn.cc, pt-const.cc, oct-hist.cc, |
|
1901 file-io.cc, help.cc, variables.cc, qpsol.cc, dassl.cc, quad.cc, |
|
1902 npsol.cc, lsode.cc, fsolve.cc, load-save.cc, dirfns.cc, octave.cc, |
|
1903 toplev.cc, error.cc, input.cc: |
|
1904 Write to octave_stdout and octave_diary instead of calling |
|
1905 maybe_page_output() or maybe_write_to_diary_file(). |
|
1906 |
|
1907 * oct-procbuf.h, oct-procbuf.cc: New files. |
|
1908 * procstream.h (class procstreambase): Use octave_procbuf instead |
|
1909 of procbuf from libg++, so we can get pids of subprocesses. |
|
1910 |
|
1911 Fri Apr 26 01:21:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1912 |
|
1913 * pt-const.cc (OCT_VAL_REP::do_index): Call maybe_mutate() before |
|
1914 returning. |
|
1915 |
|
1916 * mappers.h (struct Mapper_fcn): Delete. |
|
1917 (struct builtin_mapper_function): New field ch_mapper. |
|
1918 * pt-fvc.h (tree_builtin): Convert type of mapper_fcn from |
|
1919 Mapper_fcn to builtin_mapper_function. |
|
1920 * variables.cc (install_builtin_mapper): Likewise, for arg. |
|
1921 Simplify, since we don't have to do the copying ourselves now. |
|
1922 * pt-fvc.cc (apply_mapper_function): Handle ch_mapper case. |
|
1923 * defun.h (DEFUN_MAPPER): Likewise. |
|
1924 * mappers.cc (install_builtin_mappers): Likewise. |
|
1925 Add ctype is* functions here. |
|
1926 |
|
1927 Thu Apr 25 00:57:06 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1928 |
|
1929 * arith-ops.h, defun-int.h, defun.h, dynamic-ld.h, gripes.h, |
|
1930 load-save.h, oct-map.h, oct-obj.h, oct-stream.h, pt-cmd.h, |
|
1931 pt-const.h, pt-exp-base.h, pt-exp.h, pt-fcn.h, pt-fvc-base.h, |
|
1932 pt-fvc.h, pt-mat.h, pt-misc.h, pt-mvr-base.h, pt-mvr.h, pt-plot.h, |
|
1933 symtab.h, toplev.h, utils.h, variables.h, xpow.h, Array-tc.cc, |
|
1934 Map-i.cc, Map-tc.cc, SLList-tc.cc, arith-ops.cc, balance.cc, |
|
1935 bogus.cc, chol.cc, colloc.cc, dassl.cc, data.cc, det.cc, |
|
1936 dirfns.cc, eig.cc, error.cc, expm.cc, fft.cc, fft2.cc, file-io.cc, |
|
1937 filter.cc, find.cc, fsolve.cc, fsqp.cc, givens.cc, gripes.cc, |
|
1938 help.cc, hess.cc, ifft.cc, ifft2.cc, input.cc, inv.cc, |
|
1939 load-save.cc, log.cc, lpsolve.cc, lsode.cc, lu.cc, minmax.cc, |
|
1940 npsol.cc, oct-hist.cc, oct-obj.cc, oct-stream.cc, pager.cc, |
|
1941 pinv.cc, pr-output.cc, pt-cmd.cc, pt-const.cc, pt-exp-base.cc, |
|
1942 pt-exp.cc, pt-fcn.cc, pt-fvc-base.cc, pt-fvc.cc, pt-mat.cc, |
|
1943 pt-misc.cc, pt-mvr-base.cc, pt-mvr.cc, pt-plot.cc, qpsol.cc, |
|
1944 qr.cc, quad.cc, qzval.cc, rand.cc, resource.cc, schur.cc, sort.cc, |
|
1945 strfns.cc, svd.cc, syl.cc, symtab.cc, syscalls.cc, sysdep.cc, |
|
1946 timefns.cc, toplev.cc, utils.cc, variables.cc, xpow.cc, parse.y: |
|
1947 Rename tree_constant -> octave_value. |
|
1948 Rename Octave_object -> octave_value_list. |
|
1949 |
|
1950 Wed Apr 24 22:15:34 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1951 |
|
1952 * toplev.cc (Fsystem): Merge functionality of async_system and |
|
1953 sync_system. |
|
1954 |
|
1955 * oct-fstrm.h, oct-iostrm.h, oct-prcstrm.h, oct-stdstrm.h, |
|
1956 oct-stream.h, oct-strstrm.h, oct-fstrm.cc, oct-iostrm.cc, |
|
1957 oct-prcstrm.cc, oct-stdstrm.cc, oct-stream.cc, oct-strstrm.cc, |
|
1958 Array-os.cc: New files. |
|
1959 * Makefile.in: Add them to the appropriate lists. |
|
1960 * file-io.cc: Rewrite to use new stream classes. |
|
1961 |
|
1962 Tue Apr 23 18:59:25 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1963 |
|
1964 * gripes.cc (gripe_not_supported): New function. |
|
1965 |
|
1966 * toplev.cc (do_octave_atexit, Fatexit): New functions. |
|
1967 (octave_atexit_functions): New file-scope variable. |
|
1968 * octave.cc (main): Register do_octave_atexit with atexit. |
|
1969 |
|
1970 * variables.cc (install_builtin_variables): Call |
|
1971 symbols_of_syscalls here. |
|
1972 |
|
1973 * syscalls.h, syscalls.cc: New files. |
|
1974 |
|
1975 Mon Apr 22 21:14:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1976 |
|
1977 * syscalls.cc: New file. |
|
1978 (Flstat, Fmkfifo, Fstat, Funlink, Fwait, Fwaitpid): Move here. |
|
1979 * file-io.cc: From here. |
|
1980 * Makefile.in (SOURCES): Add syscalls.cc to the list. |
|
1981 |
|
1982 Wed Apr 17 18:34:10 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1983 |
|
1984 * file-info.h, file-info.cc: Delete files. |
|
1985 * Makefile.in: Remove from lists. |
|
1986 |
|
1987 * toplev.cc (Fquit): Accept exit status argument. |
|
1988 (Fflops): Delete (now a function file). |
|
1989 |
|
1990 Thu Apr 11 16:20:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1991 |
|
1992 * lex.l: Recognize `.'. |
|
1993 Update current_input_column even for unrecognized characters. |
|
1994 Return LEXICAL_ERROR for unrecognized characters. |
|
1995 |
|
1996 Mon Apr 8 19:59:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
1997 |
|
1998 * variables.cc (install_builtin_variables): Split into several |
|
1999 functions to make compiling with g++ go faster and consume less |
|
2000 memory. |
|
2001 |
|
2002 Sun Apr 7 16:25:35 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2003 |
|
2004 * load-save.cc (Fsave): Print usage if i == argc. |
|
2005 (Fload): Likewise. |
|
2006 |
|
2007 Sat Apr 6 21:26:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2008 |
|
2009 * Makefile.in (clean): Also delete pic/*.o |
|
2010 (maintainer-clean, distclean): Also remove stamp-picdir, |
|
2011 stamp-tinst, stamp-interp, and pic directory. |
|
2012 (stamp-prereq): New target. |
|
2013 |
|
2014 Wed Apr 3 11:19:30 1996 Rick Niles <niles@axp745.gsfc.nasa.gov> |
|
2015 |
|
2016 * resource.cc: Don't make including sys/resource.h and sys/times.h |
|
2017 mutually exclusive. |
|
2018 |
|
2019 Fri Mar 29 13:43:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2020 |
|
2021 * Makefile.in (distclean): Delete so_locations, which is created |
|
2022 on DEC Alpha systems. |
|
2023 |
|
2024 Thu Mar 28 02:53:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2025 |
|
2026 * utils.h (undo_string_escape): Provide extern declaration here. |
|
2027 |
|
2028 * lex.l (NL): Allow \r\n as new line character. |
|
2029 (.): Complain if invalid character is found on input |
|
2030 |
|
2031 Fri Mar 22 03:47:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2032 |
|
2033 * resource.cc (getrusage): If getrusage is missing, try using |
|
2034 times to at least fill in the cpu time values. If neither one is |
|
2035 available, return 0 for cpu times instead of NaN. |
|
2036 |
|
2037 * sighandlers.cc (octave_signal_mask): New file-scope variable. |
|
2038 (octave_save_signal_mask, octave_restore_signal_mask): New functions. |
|
2039 * toplev.cc (main_loop): Use them. |
|
2040 |
|
2041 Wed Mar 20 01:21:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2042 |
|
2043 * utils.cc (get_fcn_file_names (const string&, int)): Resize |
|
2044 retval to value of k, not i. |
|
2045 (get_fcn_file_names (int)): In loop for copying names to retval, |
|
2046 don't increment j twice. |
|
2047 |
|
2048 Mon Mar 18 22:27:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2049 |
|
2050 * Makefile.in ($(MAKEDEPS)): Depend on oct-gperf.h. |
|
2051 |
|
2052 Fri Mar 1 18:15:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2053 |
|
2054 * fsolve.cc (fsolve_options): Delete unused argument nargout. |
|
2055 |
|
2056 * filter.cc: Use MArray instead of Array so that automatic |
|
2057 conversions will work again. |
|
2058 |
|
2059 Tue Feb 27 04:49:51 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2060 |
|
2061 * variables.cc (looks_like_octave_copyright): Make the strings |
|
2062 that we are trying to match both have length 29. |
|
2063 |
|
2064 * Makefile.in (install-bin): Use $(INSTALL_PROGRAM), not $(INSTALL). |
|
2065 |
|
2066 * load-save.cc (read_mat_binary_data): Make sure name is |
|
2067 NUL terminated. |
|
2068 |
|
2069 Mon Feb 26 18:18:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2070 |
|
2071 * variables.cc (whos): Make argv from tmp_args, not args. |
|
2072 |
|
2073 * defun.h (DEFCONSTX): Don't stringify name. |
|
2074 |
|
2075 Sat Feb 24 01:12:59 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2076 |
|
2077 * Makefile.in (install-oct): Make mk-oct-links executable. |
|
2078 * mk-oct-links.in (links_dir): Update to match new format of |
|
2079 DEFUN_DLD_BUILTIN macro. Use LN_S, not just LN. |
|
2080 (links_dir): |
|
2081 |
|
2082 * pr-output.cc (octave_print_internal): New arg, extra_indent, for |
|
2083 versions of this function that take matrices and ranges. |
|
2084 * pt-const.cc (TC_REP::print (ostream&)): Fix printing of structures. |
|
2085 Pass struct_indent to octave_print_internal as appropriate. |
|
2086 (print_with_name (ostream&, const string&, bool)): Handle spacing |
|
2087 around `=' differently for structures. |
|
2088 |
|
2089 Fri Feb 23 04:51:04 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2090 |
|
2091 * token.cc (token (double, const string&, int, int)): Store orig_text. |
|
2092 |
|
2093 Tue Feb 20 20:36:01 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2094 |
|
2095 * variables.cc (Fclear): Fix off-by-one error. |
|
2096 |
|
2097 Sat Feb 17 16:54:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2098 |
|
2099 * oct-hist.cc (default_history_file): Append "/.octave_hist" to |
|
2100 return value, not to home_directory. |
|
2101 |
|
2102 Fri Feb 16 18:10:46 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2103 |
|
2104 * utils.cc: (NINT, D_NINT): Move to liboctave. |
|
2105 |
|
2106 * sysdep.cc (octave_ieee_init): Move to liboctave. |
|
2107 |
|
2108 * procstream.h, procstream.cc: Rewrite. |
|
2109 |
|
2110 * pager.cc (cleanup_oprocstream): New static function. |
|
2111 * toplev.cc (cleanup_iprocstream): Likewise. |
|
2112 * dirfns.cc (cleanup_iprocstream): Likewise. |
|
2113 |
|
2114 * unwind-prot.cc (matrix_cleanup, complex_matrix_cleanup): Delete. |
|
2115 |
|
2116 Thu Feb 15 22:03:28 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2117 |
|
2118 * oct-obj.cc, oct-obj.h: Move most code to the header. |
|
2119 |
|
2120 * oct-obj.cc (make_argv, all_strings): New member functions. |
|
2121 * utils.cc: Moved from here. |
|
2122 |
|
2123 * load-save.cc: Move byte swapping stuff to liboctave. |
|
2124 Move float format conversion stuff to liboctave. |
|
2125 (all_parts_int, too_large_for_float): Move to liboctave. |
|
2126 |
|
2127 * symtab.cc (valid_identifier): Move here. |
|
2128 * load-save.cc: From here. |
|
2129 |
|
2130 * sysdep.cc: Move floating-point format stuff to liboctave. |
|
2131 * pr-output.cc: Include float-fmt.h here. |
|
2132 |
|
2133 Wed Feb 14 01:49:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2134 |
|
2135 * defun.h, defun-dld.h, defun-int.h: Simplify interface for DEFUN, |
|
2136 DEFUN_DLD, DEFVAR, and DEFCONST macros. Change all uses. |
|
2137 |
|
2138 * qzval.cc: Move guts to liboctave. |
|
2139 |
|
2140 Tue Feb 13 10:28:27 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2141 |
|
2142 * variables.cc (parse_fcn_file): Also avoid saving history if |
|
2143 input is from a script file. |
|
2144 |
|
2145 * help.cc (Ftype): Call unwind_protect_str for user_pref.ps4. |
|
2146 |
|
2147 * npsol.cc (nonlinear_constraints_ok): Now static. |
|
2148 |
|
2149 * npsol.cc (linear_constraints_ok): Now static. |
|
2150 * qpsol.cc (linear_constraints_ok): Duplicate here. |
|
2151 |
|
2152 * data.cc (Flinspace): Don't print usage message if nargin == 2. |
|
2153 |
|
2154 Sun Feb 11 14:20:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2155 |
|
2156 * mk-oct-links.in: Rename from mk-oct-links. |
|
2157 (LN_S): Use this variable instead of ln. |
|
2158 Set -e option for shell. |
|
2159 Exit with status of last command. |
|
2160 Print message when making link. |
|
2161 * Makefile.in (DISTFILES): Add mk-oct-links.in to the list. |
|
2162 (install-oct): Run ./mk-oct-links, not $(srcdir)/mk-oct-links. |
|
2163 |
|
2164 * variables.cc (install_builtin_variables): Restore accidentally |
|
2165 deleted DEFVAR for save_precision. |
|
2166 |
|
2167 Fri Feb 9 11:24:32 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2168 |
|
2169 * Makefile.in (INCLUDES): Delete statdefs.h from the list (it's |
|
2170 now in the liboctave directory). |
|
2171 |
|
2172 * toplev.cc (toplevel): Define here. |
|
2173 * octave.cc (toplevel): Not here. |
|
2174 |
|
2175 * toplev.cc (main_loop): New function. |
|
2176 * octave.cc (main): Call it here instead of doing main loop |
|
2177 actions here. |
|
2178 |
|
2179 * user-prefs.cc (do_fortran_indexing): Also set liboctave_dfi_flag. |
|
2180 (prefer_column_vectors): Also set liboctave_pcv_flag. |
|
2181 (prefer_zero_one_indexing): Also set liboctave_pzo_flag. |
|
2182 (resize_on_range_error): Also set liboctave_rre_flag. |
|
2183 |
|
2184 * variables.cc (restore_command_history): New function. |
|
2185 (parse_fcn_file): Use it here in unwind_protect. |
|
2186 |
|
2187 * dynamic-ld.cc (load_octave_oct_file): Reverse sense of test. |
|
2188 (load_octave_builtin): Delete. |
|
2189 (mangle_octave_oct_file_name): Delete. |
|
2190 |
|
2191 * pt-fvc.cc (tree_builtin::eval): Don't try to dynamically load |
|
2192 functions here. |
|
2193 |
|
2194 * pr-output.cc (set_format_style): Decrement argc for first arg too. |
|
2195 |
|
2196 * input.cc (gnu_readline): If readline returns an empty string, |
|
2197 convert it to a string containing a single newline character. |
|
2198 |
|
2199 * octave.cc (octave_argv): Now a static string_vector. |
|
2200 (intern_argv): Use string_vector ops, not charMatrix ops. |
|
2201 * toplev.cc (octave_argv): Delete definition. |
|
2202 * toplev.h (octave_argv): Delete declaration. |
|
2203 |
|
2204 Thu Feb 8 10:58:24 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2205 |
|
2206 * Makefile.in (conf-dist): New target. |
|
2207 |
|
2208 Tue Feb 6 10:59:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2209 |
|
2210 * help.cc (Ftype): Correctly handle structure names. |
|
2211 |
|
2212 Sun Feb 4 02:02:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2213 |
|
2214 * qpsol.cc (Fqpsol): Call set_options(), not copy() to set |
|
2215 options for QPSOL objects. |
|
2216 |
|
2217 * npsol.cc (Fnpsol): Call set_options(), not copy() to set |
|
2218 options for NPSOL objects. |
|
2219 |
|
2220 * quad.cc (Fquad): Call set_options(), not copy() to set |
|
2221 options for Quad objects. |
|
2222 |
|
2223 * dynamic-ld.cc (load_octave_builtin): Don't call destructor on string. |
|
2224 (load_octave_oct_file): Likewise. |
|
2225 Check oct_file.empty(), not just oct_file. |
|
2226 |
|
2227 * fsolve.cc (Ffsolve): Call set_options(), not copy() to set |
|
2228 options for NLEqn object. |
|
2229 |
|
2230 * variables.cc (do_who): Properly set match patterns from argument |
|
2231 vector for call to maybe_list. |
|
2232 |
|
2233 Sat Feb 3 03:29:33 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2234 |
|
2235 * octave.cc (long_opts): Properly set second field using new enum. |
|
2236 |
|
2237 * lsode.cc: Change ODE to LSODE where appropriate. |
|
2238 Use LSODE_options, not ODE_options. |
|
2239 |
|
2240 * dassl.cc: Change DAE to DASSL where appropriate. |
|
2241 Use DASSL_options, not ODE_options. |
|
2242 |
|
2243 Fri Feb 2 01:41:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2244 |
|
2245 * dirfns.cc: Include unistd.h. |
|
2246 |
|
2247 * parse.y, lex.l: Handle matrix lists without ml or mlnm stacks. |
|
2248 * pt-mat.h, pt-mat.cc (tree_matrix): |
|
2249 Rewrite to use SLList instead of home brew list. |
|
2250 * SLList-tm.cc: New file |
|
2251 * Makefile.in: Add it to the lists. |
|
2252 * SLStack-tm.cc: Delete. |
|
2253 * Makefile.in: Delete it from the lists. |
|
2254 |
|
2255 * All pt-* files: Use bool instead of int where appropriate. |
|
2256 |
|
2257 * Makefile.in (DEP_SOURCES_3): Add octave.cc. |
|
2258 |
|
2259 * pt-const.h (class tree_constant::tree_constant_rep): Make |
|
2260 everything in this class public, then it doesn't need to declare |
|
2261 the tree_constant class as a friend. |
|
2262 |
|
2263 Thu Feb 1 01:42:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2264 |
|
2265 * lex.h, lex.l, parse.h, parse.y (class lexical_feedback): New |
|
2266 class for lexer flags. Replace lots of global vars with members |
|
2267 of this class. |
|
2268 |
|
2269 * lex.l (class brace_paren_nesting_level): New class to replace |
|
2270 nesting_level stack. nesting_level is now an instance of this |
|
2271 class. |
|
2272 |
|
2273 * lex.l (yum_yum): New typedef. |
|
2274 (ATE_NOTHING): New global var. |
|
2275 (ATE_SPACE_OR_TAB, ATE_NEWLINE): Don't #define these, declare them |
|
2276 as const yum_yum. |
|
2277 (eat_whitespace, eat_continuation): Return yum_yum, not int. |
|
2278 |
|
2279 * lex.l (SHORT_CIRCUIT_LOGICALS): Delete. Always do this for || |
|
2280 and && tokens. |
|
2281 (yy_flex_alloc, yy_flex_realloc, yy_flex_free, next_char_is_space): |
|
2282 Delete. |
|
2283 |
|
2284 * toplev.cc (verbose_flag): Delete definition. |
|
2285 * toplev.h (verbose_flag): And declaration. |
|
2286 * octave.cc (verbose_flag): Now static. |
|
2287 |
|
2288 * lex.l (lookup_identifier): Arg is now string, not char*. |
|
2289 (handle_identifier, is_plot_keyword, is_keyword): Likewise. |
|
2290 (strip_trailing_whitespace): Return value is now string, not char*. |
|
2291 (plot_style_token): Likewise, for both arg and return value. |
|
2292 |
|
2293 * input.cc (octave_gets_line): Delete. |
|
2294 (gnu_readline, octave_gets, octave_read): |
|
2295 Properly handle input when using_readline is either true or false. |
|
2296 Don't limit length of input lines to flex buffer size. |
|
2297 (get_user_input): New function. |
|
2298 |
|
2299 * octave.cc (main): Handle --no-line-editing. |
|
2300 * toplev.h (using_readline): Provide external declaration here. |
|
2301 * input.h: Not here. |
|
2302 * toplev.cc (using_readline): Define here. |
|
2303 * input.cc: Not here. |
|
2304 |
|
2305 * toplev.h (no_line_editing): Delete declaration. |
|
2306 * input.cc (no_line_editing): Delete definition. |
|
2307 |
|
2308 Wed Jan 31 05:28:45 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2309 |
|
2310 * input.cc (DEFAULT_ARRAY_SIZE, PROMPT_GROWTH): Delete definitions |
|
2311 of unused macros. |
|
2312 (read_octal): Now static. |
|
2313 |
|
2314 * givens.cc (Fgivens): Use new functions from matrix classes |
|
2315 instead of calling Fortran functions directly. |
|
2316 * syl.cc (Fsyl): Likewise. |
|
2317 * expm.cc (Fexpm): Likewise. |
|
2318 |
|
2319 Mon Jan 29 00:00:48 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2320 |
|
2321 * octave.cc: Use new prog_args class instead of calling getopt |
|
2322 directly. |
|
2323 |
|
2324 * getopt.h, getopt.c, getopt1.c: Move to liboctave directory. |
|
2325 * Makefile: Remove from lists. |
|
2326 |
|
2327 * utils.cc (strconcat, read_until, discard_until): Delete. |
|
2328 |
|
2329 * pager.cc (terminal_columns, terminal_rows): Move to |
|
2330 liboctave/oct-term.cc. |
|
2331 * pager.cc, pr-output.cc: Include oct-term.h. |
|
2332 |
|
2333 * utils.cc (list_in_columns): Moved to liboctave/str-vec.cc. |
|
2334 Change all callers to use new member function syntax. |
|
2335 |
|
2336 * dirfns.cc (absolute_program): Now static. |
|
2337 (absolute_pathname): Delete. |
|
2338 |
|
2339 * pt-plot.cc (save_in_tmp_file): Call oct_tempnam, not |
|
2340 octave_tmp_file_name. Include file-ops.h. |
|
2341 * file-io.cc (do_scanf, Foctave_tmp_file_name): Likewise. |
|
2342 * oct-hist.cc (mk_tmp_hist_file): Likewise. |
|
2343 |
|
2344 * file-io.cc (Foctave_tmp_file_name): Move here. |
|
2345 * utils.cc: From here. |
|
2346 |
|
2347 * utils.cc (octave_tmp_file_name): Move to liboctave/file-ops.cc. |
|
2348 |
|
2349 * tempname.c, tempnam.c: Move to liboctave directory. |
|
2350 * Makefile.in: Remove from lists. |
|
2351 |
|
2352 Sun Jan 28 19:00:52 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2353 |
|
2354 * xdiv.cc (all xdiv functions): Return Matrix or ComplexMatrix, |
|
2355 not tree_constant. |
|
2356 |
|
2357 * oct-hist.h, oct-hist.cc, toplev.cc, octave.cc, input.cc, |
|
2358 file-io.cc, user-prefs.cc: Rewrite to use new command_history |
|
2359 class instead of calling readline history functions directly. |
|
2360 |
|
2361 * utils.cc (get_fcn_file_names): Delete num arg. |
|
2362 |
|
2363 Thu Jan 25 20:33:54 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2364 |
|
2365 * load-save.cc (matches_patterns): Use new glob_match class |
|
2366 instead of calling fnmatch directly. |
|
2367 * symtab.cc (matches_patterns, symbol_table::glob): Likewise. |
|
2368 * variables.cc (Fclear): Likewise. |
|
2369 |
|
2370 Wed Jan 24 02:05:22 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2371 |
|
2372 * fnmatch.h fnmatch.c: Delete. |
|
2373 * Makefile.in: Add glob stuff in the appropriate places, remove |
|
2374 fnmatch.h and fnmatch.c from lists. |
|
2375 |
|
2376 * octave.cc (program_invocation_name, program_invocation_short_name): |
|
2377 Maybe declare. |
|
2378 (initialize_globals): Maybe initialize them. |
|
2379 |
|
2380 * octave.cc (initialize_pathsearch): Define here, not in pathsearch.cc. |
|
2381 * pathsearch.h, pathsearch.cc: Remove files. |
|
2382 * Makefile.in: Remove them from the lists. |
|
2383 |
|
2384 * help.cc (simple_help): Ignore directories that don't have any .m |
|
2385 or .oct files. |
|
2386 |
|
2387 * utils.cc (search_path_for_file): Use new dir_path class instead |
|
2388 of calling kpathsea routines directly. |
|
2389 (get_fcn_file_names): Likewise. |
|
2390 * help.cc (simple_help): Likewise. |
|
2391 |
|
2392 * dirfns.cc (make_absolute): Don't convert empty arg to "./". |
|
2393 |
|
2394 * sysdir.h: Move to liboctave directory. |
|
2395 * Makefile.in: Remove from lists. |
|
2396 |
|
2397 * dirfns.cc (Freaddir): Use new dir_entry class instead of calling |
|
2398 readdir directly. Include dir-ops.h, not sysdir.h. |
|
2399 * utils.cc (get_fcn_file_names): Likewise. Delete unnecessary |
|
2400 first arg, change all callers. |
|
2401 |
|
2402 Tue Jan 23 00:43:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2403 |
|
2404 * safe-xstat.hin, safe-xstat.cin, statdefs.h, file-ops.h, |
|
2405 file-ops.cc, filemode.c, mkdir.c, rmdir.c, rename.c: |
|
2406 Files moved to liboctave directory. |
|
2407 * Makefile.in: Remove them from lists. Move appropriate rules. |
|
2408 |
|
2409 * acosh.c, asinh.c, atanh.c, erf.c, erfc.c, gamma.c, lgamma.c: |
|
2410 Files moved to liboctave directory. |
|
2411 * Makefile.in: Remove them from lists. |
|
2412 * missing-math.h: Deleted. |
|
2413 * pr-output.cc, sysdep.cc, minmax.cc, mappers.cc, expm.cc, |
|
2414 arith-ops.cc: Include oct-math.h, not cmath or missing-math.h. |
|
2415 |
|
2416 Mon Jan 22 19:33:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2417 |
|
2418 * variables.cc (Fexist): Use file_stat instead of calling stat |
|
2419 directly. Include file-ops.h, not statdefs.h. |
|
2420 * octave.cc (execute_startup_files): Likewise. |
|
2421 * file-io.cc (file_io_get_file, fopen_internal, popen_internal, Fstat): |
|
2422 Likewise. |
|
2423 (mk_stat_map): Likewise, use file_stat object, not struct stat. |
|
2424 * oct-hist.cc (do_history): Likewise. |
|
2425 |
|
2426 * file-ops.h, file-stat.cc: New files. |
|
2427 * Makefile.in: Include them. |
|
2428 * dirfns.cc: Delete is_newer. Don't include statdefs.h. |
|
2429 * toplev.cc: Don't include statdefs.h. |
|
2430 |
|
2431 Sun Jan 21 22:48:03 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2432 |
|
2433 * pt-mvr.h, pt-fvc.h, Map.cc, Map.h, dynamic-ld.h, |
|
2434 pt-fvc-base.cc, SLList-str.cc, pt-fcn.h, pt-fvc-base.h, |
|
2435 SLStack-str.cc, pt-mvr.cc, pt-exp.cc, token.h, token.cc, |
|
2436 user-prefs.h, pt-base.cc, user-prefs.cc, dirfns.h, sysdep.h, |
|
2437 sysdep.cc, input.h, parse.h, lex.l, parse.y, defun.h, mappers.h, |
|
2438 pt-fvc.cc, pt-plot.h, load-save.h, octave.cc, defun-int.h, help.h, |
|
2439 variables.h, oct-map.h, oct-obj.h, oct-obj.cc, pt-const.cc, |
|
2440 oct-map.cc, input.cc, symtab.h, pt-const.h, pathsearch.cc, |
|
2441 pr-output.h, pr-output.cc, toplev.h, timefns.cc, schur.cc, |
|
2442 pt-plot.cc, pager.cc, load-save.cc, dynamic-ld.cc, dirfns.cc, |
|
2443 data.cc, file-info.h, file-info.cc, colloc.cc, utils.h, qpsol.cc, |
|
2444 quad.cc, npsol.cc, lsode.cc, fsolve.cc, dassl.cc, file-io.cc, |
|
2445 help.cc, utils.cc, oct-hist.h, oct-hist.cc, symtab.cc, toplev.cc, |
|
2446 pt-fcn.cc, unwind-prot.h, unwind-prot.cc, variables.cc: |
|
2447 Most functions in these files that deal with character strings |
|
2448 have been converted to use the string class insatead of char*. If |
|
2449 you want more detailed information, you'll have to figure it out |
|
2450 for yourself. |
|
2451 |
|
2452 Sat Jan 20 18:19:12 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2453 |
|
2454 * dynamic-ld.cc [WITH_DL]: Define RTLD_LAZY to be 1 if it is not |
|
2455 already defined. |
|
2456 |
|
2457 Sun Jan 14 07:48:05 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2458 |
|
2459 * pt-const.cc (print_as_scalar, print_as_structure): |
|
2460 Make these member functions. |
|
2461 (tree_constant::print_with_name): New function, moved here from |
|
2462 old tree-expr.cc file (where it was called print_constant) and |
|
2463 converted to member function. Change all callers. |
|
2464 |
|
2465 Fri Jan 12 01:54:49 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2466 |
|
2467 * octave.cc (initialize_globals): Don't do kpathsearch stuff here. |
|
2468 (main): Call initialize_pathsearch() here. |
|
2469 |
|
2470 * pathsearch.cc: New file. |
|
2471 * Makefile.in (SOURCES): Add it to the list |
|
2472 |
|
2473 * oct-hist.h: Rename from octave-hist.h. |
|
2474 * oct-hist.cc: Rename from octave-hist.cc. |
|
2475 * Makefile.in, parse.y, other .cc files: Cope with it. |
|
2476 |
|
2477 * dynamic-ld.cc: Avoid warnings if !WITH_DYNAMIC_LINKING. |
|
2478 |
|
2479 * load-save.cc (save_ascii_data): string::data() returns const char*. |
|
2480 |
|
2481 * utils.h: Don't provide forward declaration for tree_constant. |
|
2482 |
|
2483 * oct-obj.h: Don't include mx-base.h or provide forward |
|
2484 declarations for Matrix and Range types. |
|
2485 |
|
2486 * file-info.h: Don't include oct-obj.h. Do include cstdio. |
|
2487 |
|
2488 * symtab.h: Don't provide forward declaration for ostream. |
|
2489 |
|
2490 * variables.h: Don't provide forward declarations for istream, |
|
2491 ostrstream, tree, builtin_function, or builtin_variable objects. |
|
2492 |
|
2493 * balance.cc, chol.cc, colloc.cc, dassl.cc, det.cc, eig.cc, |
|
2494 expm.cc, fft.cc, fft2.cc, filter.cc, find.cc, fsolve.cc, fsqp.cc, |
|
2495 givens.cc, hess.cc, ifft.cc, ifft2.cc, inv.cc, log.cc, lpsolve.cc, |
|
2496 lsode.cc, lu.cc, minmax.cc, npsol.cc, pinv.cc, qpsol.cc, qr.cc, |
|
2497 quad.cc, qzval.cc, rand.cc, schur.cc, sort.cc, svd.cc, syl.cc: |
|
2498 Clean up #include statements. |
|
2499 |
|
2500 * pt-const.h: Don't include oct-obj.h or tree-base.h. |
|
2501 Provide forward declaration of Octave_object here. |
|
2502 * pt-const.cc: Include oct-obj.h here. |
|
2503 |
|
2504 * pt-mat.h, pt-fcn.h, pt-const.h, pt-misc.h, pt-plot.h, |
|
2505 pt-exp-base.h, pt-cmd.h, pt-fvc-base.h, pt-mvr-base.h, pt-exp.h, |
|
2506 pt-mvr.h, pt-fvc.h: New files, split from tree-expr.h and/or |
|
2507 renamed from other tree-*.h files (pt == parse tree). |
|
2508 * pt-base.cc, pt-const.cc, pt-exp.cc, pt-fvc-base.cc, pt-mat.cc, |
|
2509 pt-mvr-base.cc, pt-plot.cc, pt-cmd.cc, pt-exp-base.cc, pt-fcn.cc, |
|
2510 pt-fvc.cc, pt-misc.cc, pt-mvr.cc: Likewse, split from tree-expr.cc |
|
2511 and/or other tree-*.cc files. |
|
2512 * Makefile.in: Include them in the appropriate lists. |
|
2513 * All: Fix #include statements to match. |
|
2514 |
|
2515 * Array-tc.cc: Don't instantiate ArrayRep objects. |
|
2516 |
|
2517 Thu Jan 11 02:35:19 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2518 |
|
2519 * tree-const.cc (tree_constant::eval (int, int, const Octave_object&)): |
|
2520 Define here instead of in tree-const.h. |
|
2521 |
|
2522 Wed Jan 10 04:34:20 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2523 |
|
2524 * tree-const.h (tree_constant::tree_constant (const string&): |
|
2525 * tree-const.cc (TC_REP::tree_constant_rep (const string&)): |
|
2526 New constructor. |
|
2527 |
|
2528 Tue Jan 9 04:10:29 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2529 |
|
2530 * rand.cc (do_rand): Use string_value() result directly instead of |
|
2531 c_str() conversion. |
|
2532 * balance.cc (Fbalance): Likewise. |
|
2533 |
|
2534 * tree-const.cc (TC_REP::string_value()): |
|
2535 Handle new definition of charMatrix::row_as_string() |
|
2536 * load-save.cc (save_ascii_data): Ditto. |
|
2537 (save_binary_data): Ditto. |
|
2538 * pr-output.cc (octave_print_internal): Ditto. |
|
2539 |
|
2540 * balance.cc (Fbalance): |
|
2541 Handle new definition of TC_REP::string_value() |
|
2542 * colloc.cc (Fcolloc): Ditto. |
|
2543 * dassl.cc (Fdassl_options): Ditto. |
|
2544 * data.cc (Fstruct_contains): Ditto. |
|
2545 * dirfns.cc (Fmkdir): Ditto. |
|
2546 (Freaddir): Ditto. |
|
2547 (Frmdir): Ditto. |
|
2548 (Frename): Ditto. |
|
2549 * error.cc (handle_message): Ditto. |
|
2550 * file-io.cc (process_printf_format): Ditto. |
|
2551 (fopen_internal): Ditto. |
|
2552 (file_io_get_file): Ditto. |
|
2553 (return_valid_file): Ditto. |
|
2554 (Flstat): Ditto. |
|
2555 (Fstat): Ditto. |
|
2556 (unlink_internal): Ditto. |
|
2557 (mkfifo_internal): Ditto. |
|
2558 (async_system_internal): Ditto. |
|
2559 (sync_system_internal): Ditto. |
|
2560 (execute_internal): Ditto. |
|
2561 (popen_internal): Ditto. |
|
2562 (fwrite_internal): Ditto. |
|
2563 (fread_internal): Ditto. |
|
2564 (do_printf): Ditto. |
|
2565 (do_scanf): Ditto. |
|
2566 * input.cc (get_user_input): Ditto. |
|
2567 * lsode.cc (Flsode_options): Ditto. |
|
2568 * npsol.cc (Fnpsol_options):Ditto. |
|
2569 * qpsol.cc (Fqpsol_options):Ditto. |
|
2570 * quad.cc (Fquad_options): Ditto. |
|
2571 * rand.cc (do_rand): Ditto. |
|
2572 * schur.cc (Fschur): Ditto. |
|
2573 * sysdep.cc (Fputenv): Ditto. |
|
2574 (Fgetenv): Ditto. |
|
2575 * timefns.cc (extract_tm): Ditto. |
|
2576 (Fstrftime): Ditto. |
|
2577 * toplev.cc (Fsource): Ditto. |
|
2578 (eval_string): Ditto. |
|
2579 (Fsystem): Ditto. |
|
2580 * tree-plot.cc (subplot::handle_plot_data): Ditto. |
|
2581 * variables.cc (is_valid_function): Ditto. |
|
2582 (Fis_global): Ditto. |
|
2583 (Fexist): Ditto. |
|
2584 (builtin_string_variable): Ditto. |
|
2585 * utils.cc (make_argv): Ditto. |
|
2586 (Fundo_string_escapes): Ditto. |
|
2587 |
|
2588 Mon Jan 8 01:54:50 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2589 |
|
2590 * Makefile.in (install-bin): Use $(LN_S), not just ln. |
|
2591 |
|
2592 * variables.cc (octave_fcn_file_dir): New function. |
|
2593 * tree-expr.cc (mark_as_system_fcn_file): Use it instead of |
|
2594 octave_lib_dir. |
|
2595 |
|
2596 * Makefile.in (clean): If $(SHARED_LIBS), also remove shared libs. |
|
2597 |
|
2598 * pr-output.cc (set_format (const ComplexMatrix&, int&, int&)): |
|
2599 Unconditionally call all_elements_are_int_or_inf_or_nan(). |
|
2600 (set_format (const Matrix&, int&, int&)): Likewise. |
|
2601 |
|
2602 Sun Jan 7 19:12:39 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2603 |
|
2604 * utils.cc (oct_putenv): New function. |
|
2605 * sysdep.cc (Fputenv): Use oct_putenv. |
|
2606 * octave.cc (initialize_globals): Likewise. |
|
2607 |
|
2608 Sat Jan 6 23:22:37 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2609 |
|
2610 * sysdep.cc (Fputenv): New function. |
|
2611 |
|
2612 * input.cc (initialize_readline): Call rl_initialize() here. |
|
2613 |
|
2614 * octave.cc: Conditionally define atexit to be on_exit here. |
|
2615 * toplev.cc: Not here. |
|
2616 |
|
2617 Fri Jan 5 14:01:02 1996 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2618 |
|
2619 * toplev.cc: Don't include <pwd.h> here. |
|
2620 |
|
2621 * octave-hist.cc, tree-plot.cc, utils.cc: Do include "sysdep.h". |
|
2622 |
|
2623 * dirfns.cc, file-io.cc, help.cc, load-save.cc, octave.cc, |
|
2624 octave-hist.cc, tree-plot.cc, utils.cc: |
|
2625 Don't include <readline/tilde.h>. |
|
2626 * sysdep.h: Do include it here. |
|
2627 |
|
2628 * tree-const.cc (TC_REP::assign (tree_constant&, Octave_object&)): |
|
2629 If we have a matrix or range, call maybe_mutate before returning. |
|
2630 |
|
2631 Sun Dec 31 15:56:18 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2632 |
|
2633 * npsol.cc (Fnpsol): Improve doc string. |
|
2634 * qpsol.cc (Fqpsol): Likewise. |
|
2635 |
|
2636 Fri Dec 29 21:46:58 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2637 |
|
2638 * defun-dld.h: Make work again for OCTAVE_LITE and |
|
2639 WITH_DYNAMIC_LINKING. |
|
2640 |
|
2641 * Makefile.in: Handle shared libraries. |
|
2642 |
|
2643 Wed Dec 27 17:47:51 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2644 |
|
2645 * mk-oct-links: New file. |
|
2646 * Makefile.in (install-oct): Use it. |
|
2647 * f-*.cc: Rename to *.cc. |
|
2648 |
|
2649 * Makefile.in (install-bin, install-lib, install-oct): New targets. |
|
2650 (install): Use them. |
|
2651 |
|
2652 Tue Dec 26 21:38:22 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2653 |
|
2654 * toplev.cc (reading_startup_message_printed): Move initialization |
|
2655 here and make extern. |
|
2656 |
|
2657 * dirfns.cc, dynamic-ld.cc, help.cc, input.cc, octave-hist.cc, |
|
2658 octave.cc, sighandlers.cc, sysdep.cc, tree-expr.cc, tree-misc.cc, |
|
2659 utils.cc, variables.cc, parse.y, lex.l: Include toplev.h instead |
|
2660 of octave.h. |
|
2661 * toplev.h: rename from octave.h. |
|
2662 |
|
2663 * octave.cc (main): Delete unused variable saved_sigint_handler. |
|
2664 |
|
2665 Sun Dec 24 00:26:54 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2666 |
|
2667 * dynamic-ld.cc: Massive re-write to handle dlopen/dlsym and |
|
2668 shl_load/shl_findsym methods of dynamic linking. |
|
2669 |
|
2670 * utils.cc (get_fcn_file_names): Check for .oct files if |
|
2671 WITH_DYNAMIC_LINKING, not WITH_DLD. |
|
2672 |
|
2673 * Makefile.in (LIB, TERMLIBS): Substitute values. |
|
2674 (octave): Add $(LIBS) to link command and use $(TERMLIBS) instead |
|
2675 of -ltermcap. |
|
2676 |
|
2677 Sat Dec 23 21:56:12 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2678 |
|
2679 * dynamic-ld.h, dynamic-ld.cc: Remove old unused code. |
|
2680 |
|
2681 * variables.cc (load_fcn_from_file): |
|
2682 Always call load_octave_oct_file. |
|
2683 |
|
2684 Wed Dec 20 00:56:57 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2685 |
|
2686 * pr-output.cc (set_real_format, set_real_matrix_format, |
|
2687 set_complex_format, set_complex_matrix_format, set_range_format): |
|
2688 New functions. Ensure the count of the digits to the right of the |
|
2689 decimal point is positive. |
|
2690 |
|
2691 * xpow.cc (xpow (const Matrix&, double)): Print warning if |
|
2692 inverting singular matrix (but return value anyway, in the name of |
|
2693 compatibility). |
|
2694 xpow (const ComplexMatrix&, double)): Likewise. |
|
2695 |
|
2696 * f-inv.cc (Finv): If matrix is singular, return result anyway, in |
|
2697 the name of compatibility. |
|
2698 |
|
2699 * symtab.cc (symbol_record::pop_context): |
|
2700 Don't assert (! context.empty ()). |
|
2701 |
|
2702 * tree-const.cc (TC_REP::char_matrix_value): Don't complain about |
|
2703 type conversion if object is an empty matrix.f |
|
2704 (TC_REP::assign): If rhs is a string, don't convert to numeric |
|
2705 type if rhs is empty or "". |
|
2706 Only widen if rhs is not empty. |
|
2707 Don't return 0x0 char_matrix if it is supposed to be a string. |
|
2708 |
|
2709 * arith-ops.h, mappers.h, pr-output.h, xdiv.h, xpow.h: Include |
|
2710 oct-cmplx.h in place of forward declaration for class Complex. |
|
2711 |
|
2712 * pr-output.cc, mappers.cc, arith-ops.cc, xdiv.cc, xpow.cc, |
|
2713 utils.cc: Include "oct-cmplx.h" instead of <Complex.h>. |
|
2714 |
|
2715 * octave.cc (initialize_error_handlers): Don't call |
|
2716 set_Complex_error_handler(). |
|
2717 (octave_Complex_error_handler): Delete unused function. |
|
2718 Delete declaration for set_Complex_error_handler(). |
|
2719 |
|
2720 * sighandlers.cc (catch_interrupts): New function. |
|
2721 * octave.cc (main): Call catch_interrupts() instead of calling |
|
2722 octave_set_signal_handler() directly. |
|
2723 |
|
2724 Tue Dec 19 03:22:37 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2725 |
|
2726 * variables.cc (looks_like_octave_copyright): Also recognize the |
|
2727 string " This program is free software". |
|
2728 |
|
2729 Thu Dec 14 01:54:06 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2730 |
|
2731 * octave-hist.cc (clean_up_history): Only write history file if |
|
2732 user_pref.saving_history. |
|
2733 |
|
2734 * octave-hist.cc (initialize_history, clean_up_history, |
|
2735 do_history): Perform tilde expansion on history file name. |
|
2736 |
|
2737 * octave.cc (main): Check `defined (HAVE_ON_EXIT)' not just |
|
2738 `(HAVE_ON_EXIT)'. |
|
2739 |
|
2740 * user-prefs.h (user_preferences): New fields, `history_file' and |
|
2741 `history_size'. |
|
2742 * user-prefs.cc (init_user_prefs): Initialize them. |
|
2743 (sv_history_file, history_size): New functions. |
|
2744 * variables.cc (install_builtin_variables): Initialize user-level |
|
2745 variables history_file and history_size. |
|
2746 * octave-hist.cc (default_history_size): Now extern. |
|
2747 (default_history_file): Likewise. |
|
2748 (octave_hist_size, octave_hist_file): Use user preference |
|
2749 variables instead. |
|
2750 * octave.cc (main): Call initialize_history after |
|
2751 execute_startup_files. |
|
2752 |
|
2753 Fri Dec 8 15:53:59 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2754 |
|
2755 * user-prefs.h (user_preferences): New field, `saving_history'. |
|
2756 * user-prefs.cc (init_user_prefs): Initialize it. |
|
2757 (saving_history): New function. |
|
2758 * variables.cc (install_builtin_variables): Initialize user-level |
|
2759 variable saving_history. |
|
2760 * octave.cc (parse_and_execute): Don't reset value of |
|
2761 saving_history here. |
|
2762 (main) Use user_pref.saving_history instead of saving_history. |
|
2763 * variables.cc (parse_fcn_file): Likewise. |
|
2764 * octave-hist.cc (maybe_save_history): Likewise. |
|
2765 Don't save history if input_from_startup_file. |
|
2766 |
|
2767 Mon Nov 27 23:05:52 1995 John W. Eaton <jwe@bevo.che.wisc.edu> |
|
2768 |
|
2769 * resource.cc: Include systime.h before <sys/resource.h>. |
|
2770 |
|
2771 Tue Nov 14 14:09:40 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2772 |
|
2773 * error.cc: Include cstring. |
|
2774 |
|
2775 * tree-expr.cc (print_code): Decrement indent level after printing |
|
2776 function body. |
|
2777 |
|
2778 * Makefile.in: Remove references to oct-str.cc, oct-str.h, and |
|
2779 Array-string.cc. |
|
2780 |
|
2781 * tree-const.h: Don't include oct-str.h. |
|
2782 |
|
2783 Mon Nov 6 11:16:49 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2784 |
|
2785 * parse.y (make_plot_command, finish_colon_expression, |
|
2786 make_unwind_protect, make_try_command, make_for_command, |
|
2787 make_break_command, make_continue_command, make_return_command, |
|
2788 start_if_command, finish_if_command, make_elseif_clause, |
|
2789 make_simple_assignment, make_multi_val_ret, start_function_def, |
|
2790 frob_function_def, finish_function_def, start_matrix, |
|
2791 finish_matrix): New functions. Use them in the grammar to clean |
|
2792 things up a bit. Possibly convert matrix lists, colon |
|
2793 expressions, binary expressions, and unary expressions to constant |
|
2794 values. |
|
2795 (tree_matrix_type): Delete. |
|
2796 (simple_expr1): Handle all expression stuff here, including |
|
2797 assignments. |
|
2798 (simple_expr): Just check to see that simple_expr1 produced |
|
2799 something useful. |
|
2800 |
|
2801 * tree-plot.cc, tree-plot.h: Move most simple constructors to the |
|
2802 header file. |
|
2803 |
|
2804 * tree-expr.h (tree_expression::is_constant): Move virtual |
|
2805 function definition here. |
|
2806 (tree_fvc::is_constant): From here. |
|
2807 (tree_expression::is_matrix_constant): New virtual function. |
|
2808 (tree_expression::is_range_constant): New virtual function. |
|
2809 * tree-expr.cc (tree_matrix::is_matrix_constant): New function. |
|
2810 * tree-expr.cc (tree_colon_expression::is_range_constant): New |
|
2811 function. |
|
2812 |
|
2813 Fri Nov 3 03:42:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2814 |
|
2815 * utils.cc, utils.h (jump_to_top_level): Declare as extern "C". |
|
2816 |
|
2817 * tree-const.h (tree_constant::eval ()): Only mutate if printing. |
|
2818 |
|
2819 * tree-const.cc (TC_REP::tree_constant_rep (const Complex&), |
|
2820 TC_REP::tree_constant_rep (const ComplexMatrix&), |
|
2821 TC_REP::tree_constant_rep (const ComplexDiagMatrix&), |
|
2822 TC_REP::tree_constant_rep (const ComplexRowVector&), |
|
2823 TC_REP::tree_constant_rep (const ComplexColumnVector&)): |
|
2824 Also check to see if we can convert to scalar_constant, not just |
|
2825 complex_scalar_constant. |
|
2826 |
|
2827 * user-prefs.h (user_preferences): New field, `exec_path'. |
|
2828 * user-prefs.cc (init_user_prefs): Initialize it. |
|
2829 (sv_exec_path): New function. |
|
2830 * variables.cc (install_builtin_variables): Add DEFUN for EXEC_PATH. |
|
2831 (default_exec_path): New function. |
|
2832 * octave.cc (exec_path): New global variable. |
|
2833 Don't set and putenv() exec path here. |
|
2834 (long_opts): Add --exec-path option. |
|
2835 (main): Handle it. |
|
2836 (initialize_globals): Set default value here. |
|
2837 |
|
2838 * user-prefs.h (user_preferences): New field, `info_prog'. |
|
2839 * user-prefs.cc (init_user_prefs): Initialize it. |
|
2840 (sv_info_prog): New function. |
|
2841 * variables.cc (install_builtin_variables): Add DEFUN for INFO_PROGRAM. |
|
2842 (default_info_prog): New function. |
|
2843 * octave.cc (info_prog): New global variable. |
|
2844 (initialize_globals): Set default value here. |
|
2845 (long_opts): Add --info-prog option. |
|
2846 (main): Handle it. |
|
2847 * help.cc (try_info): Use user_pref.info_prog here. |
|
2848 |
|
2849 * octave.cc (initialize_globals): Put arch_dir and bin_dir ahead |
|
2850 of shell_path when resetting PATH. |
|
2851 |
|
2852 Thu Nov 2 04:30:13 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2853 |
|
2854 * f-rand.cc (Frandn): New function. |
|
2855 (do_initialization): New function. |
|
2856 (do_rand): New function for doing the real work. |
|
2857 (Frand): Use it. |
|
2858 |
|
2859 * octave.cc (parse_and_execute): New arg, warn_for. If given, |
|
2860 print message if file cannot be opened. |
|
2861 Set curr_fcn_file_full_name here. |
|
2862 (Fsource): Pass extra arg to parse_and_execute to get warning message. |
|
2863 |
|
2864 * tree-const.h: Handle line and column info for double, Complex, |
|
2865 and char* constants. |
|
2866 |
|
2867 * parse.y (maybe_convert_to_ans_assign): Pass along line and |
|
2868 column info from expression. |
|
2869 |
|
2870 * parse.y (make_constant): New function. |
|
2871 (simple_expr1, word_list): Use it. |
|
2872 |
|
2873 * input.cc, input.h (curr_fcn_file_full_name): New global. |
|
2874 * variables.cc (load_fcn_from_file): Set it here. |
|
2875 * parse.y (func_def2, yyerror, maybe_warn_missing_semi): Use it. |
|
2876 (func_def2): If !reading_fcn_file, don't call strcmp if |
|
2877 curr_fcn_file_name is 0. |
|
2878 |
|
2879 * octave.cc (Fsource): New function. |
|
2880 (parse_and_execute): Declare file name const char *. |
|
2881 * input.cc (get_input_from_file): Likewise. |
|
2882 |
|
2883 Wed Nov 1 13:54:34 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2884 |
|
2885 * f-filter.cc: New file. |
|
2886 * Makefile.in (DLD_SRC): Add it to the list. |
|
2887 |
|
2888 * sysdep.h (gethostname): Change declaration to match definition |
|
2889 in sysdep.cc. |
|
2890 |
|
2891 * resource.cc: Include sysdep.h here, for octave_NaN. |
|
2892 |
|
2893 Tue Oct 31 02:12:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2894 |
|
2895 * tree-const.cc (TC_REP::assign): After converting rhs to a |
|
2896 numeric type, use the converted value, not the original. |
|
2897 |
|
2898 * dirfns.cc (Fpwd): If nargout == 0, print the directory name |
|
2899 instead of returning it. |
|
2900 |
|
2901 * pager.cc (maybe_page_output): Call maybe_write_to_diary_file here. |
|
2902 (flush_output_to_pager): Not here. |
|
2903 |
|
2904 Mon Oct 30 23:39:43 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2905 |
|
2906 * variables.cc (install_builtin_commands): Add DEFVAR for |
|
2907 echo_executing_commands. |
|
2908 |
|
2909 * octave-hist.cc (do_edit_history): Handle new echo stuff. |
|
2910 * variables.cc (parse_fcn_file): Likewise. |
|
2911 * octave.cc (parse_and_execute): Likewise. |
|
2912 (main): Likewise. |
|
2913 * input.cc (do_input_echo): |
|
2914 (Fecho): New function. |
|
2915 |
|
2916 * tree-expr.cc (tree_function::print_code_function_header, |
|
2917 tree_function::print_code_function_trailer): New functions. |
|
2918 (tree_function::print_code): Use them. |
|
2919 (tree_function::eval): Likewise, if echoing commands. |
|
2920 * tree-misc.cc (tree_statement::maybe_echo_code): New function. |
|
2921 |
|
2922 * user-prefs.h (user_preferences): New field, echo_executing_commands. |
|
2923 (echo_state): New enum, for various types of echoing we do. |
|
2924 * user-prefs.cc (echo_executing_commands): New function. |
|
2925 |
|
2926 * tree-base.cc (print_code_indent): Print PS4 as line prefix. |
|
2927 * help.cc (Ftype): Add unwind_protect for ps4 and set it to "" |
|
2928 before printing code. |
|
2929 |
|
2930 * tree-misc.h (tree_statement_list): New field, function_body. |
|
2931 (tree_statement_list::mark_as_function_body): New function. |
|
2932 * parse.y (func_def3): Mark function bodies. |
|
2933 |
|
2934 * pr-output.cc (octave_print_internal): Undo string escapes when |
|
2935 printing charMatrix as strings. |
|
2936 |
|
2937 Sat Oct 28 17:38:29 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2938 |
|
2939 * utils.h (undo_string_escapes): Add missing const in declaration. |
|
2940 |
|
2941 Fri Oct 27 03:49:44 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2942 |
|
2943 * file-io.cc (next_available_file_number): New stack for keeping |
|
2944 track of next available file number. |
|
2945 (get_next_avail_file_num): New function. |
|
2946 (fopen_file_for_user, fopen_internal, popen_internal, |
|
2947 execute_internal): Use it. |
|
2948 |
|
2949 Mon Oct 23 07:00:09 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2950 |
|
2951 * tree-const.cc (TC_REP::convert_to_matrix_type, |
|
2952 tree_constant::convert_to_matrix_type): New arg, make_complex. |
|
2953 (TC_REP::set_index): New arg, rhs_is_complex. Pass it to |
|
2954 convert_to_matrix_type. |
|
2955 (TC_REP::assign): Pass rhs.is_complex_type() to set_index. |
|
2956 |
|
2957 Thu Oct 19 00:38:38 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2958 |
|
2959 * xpow.cc: Include <climits>. |
|
2960 |
|
2961 * sysdep.cc (Fpause): Do pause even if not interactive. |
|
2962 |
|
2963 * tree-const.cc (TC_REP::assign): Don't make RHS numeric if both |
|
2964 RHS and LHS are strings. |
|
2965 |
|
2966 Wed Oct 18 22:19:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2967 |
|
2968 * f-expm.cc (Fexpm): Avoid taking log of negative number. Also, |
|
2969 don't unnecessarily divide the input matrix by 1.0. |
|
2970 |
|
2971 * input.cc (decode_prompt_string): Recognize \[ and \] too. |
|
2972 (initialize_readline): Bind M-p to history-search-backward and M-n |
|
2973 to history-search-forward. |
|
2974 |
|
2975 Tue Oct 17 04:31:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2976 |
|
2977 * xpow.cc (xpow): Handle integer powers better for complex^double. |
|
2978 (elem_xpow): Likewise. |
|
2979 |
|
2980 * lex.l ({CCHAR}): If nesting_level.top() is BRACE, return ';', |
|
2981 not '\n'. |
|
2982 |
|
2983 Mon Oct 16 19:03:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2984 |
|
2985 * help.cc (Fwhich): Fix doc string. |
|
2986 |
|
2987 * variables.cc (Fexist): Update doc string. |
|
2988 |
|
2989 Sun Oct 15 22:19:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
2990 |
|
2991 * Another massive set of changes to support character matrices |
|
2992 with indexing. The Octave_str_object class is no longer used. |
|
2993 Anything having to do with Octave_str_object in the following |
|
2994 files has been changed to use charMatrix instead: octave.h, |
|
2995 load-save.cc, octave.cc, strfns.cc, data.cc, pr-output.h, |
|
2996 pr-output.cc, tree-const.h, dirfns.cc, tree-const.cc, |
|
2997 tree-expr.cc. |
|
2998 |
|
2999 Sat Oct 14 22:28:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
3000 |
|
3001 * f-sort.cc (mx_sort): Don't attempt to sort vectors that have |
|
3002 only one element, or matrices that have only one row. |
|
3003 |
|
3004 Thu Oct 12 02:16:58 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
3005 |
|
3006 * mappers.cc (install_mapper_functions): Add gammaln as an alias |
|
3007 for lgamma. |
|
3008 |
|
3009 * tree-const.h, tree-const.cc: Massive overhaul of indexing and |
|
3010 indexed assignment functions. |
|
3011 * tc-inlines.h, tc-rep.h: Remove files. |
|
3012 * Makefile.in: Remove mention of them here too. |
|
3013 |
|
3014 * Makefile.in: Include $(TI_SRC) in DEP_SOURCES_3, not |
|
3015 $(TI_SOURCES). |
|
3016 Include $(DLD_SRC) in DEP_SOURCES_3. |
|
3017 Include $(TI_SRC) in DEF_FILES_5. |
|
3018 |
|
3019 Wed Oct 11 01:26:18 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
3020 |
|
3021 * Makefile.in (INCLUDES): Remove tc-inlines.h and tc-rep.h from |
|
3022 the list. |
|
3023 |
|
3024 Mon Oct 9 08:31:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
3025 |
|
3026 * lex.l (next_token_is_bin_op): Do match `.+', `.*', etc. |
|
3027 |
|
3028 Sun Oct 8 18:19:56 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
3029 |
|
3030 * idx-vector.h, idx-vector.cc: Delete files. |
|
3031 * Makefile.in (SOURCES, INCLUDES): Remove them from lists. |
|
3032 |
|
3033 Fri Oct 6 00:52:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
3034 |
|
3035 * f-svd.cc (Fsvd): If nargout == 0 or nargout == 1, don't ask for |
|
3036 U and V. |
|
3037 |
|
3038 Wed Oct 4 00:04:57 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
3039 |
|
3040 * f-npsol.cc (Fnpsol, Fnpsol_options): Avoid unused variable |
|
3041 warnings if NPSOL_MISSING. |
|
3042 * f-qpsol.cc (Fqpsol, Fqpsol_options): Likewise for QPSOL_MISSING. |
|
3043 |
|
3044 * Makefile.in (DISTFILES): Add octave.gperf. |
|
3045 |
|
3046 * lex.l (next_token_is_bin_op): Don't ever return true for `.' |
|
3047 since that causes problems with things like [ .1 .1 ]. |
|
3048 |
|
3049 Tue Oct 3 05:30:24 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
3050 |
|
3051 * variables.cc (is_valid_function): Avoid setting error_state if |
|
3052 argument is not a string. |
|
3053 |
|
3054 * parse.y (maybe_warn_missing_semi): New function. |
|
3055 (list1, list): Call it if statement not terminated by semicolon. |
|
3056 * tree-misc.h (tree_statement::line, tree_statement::column): |
|
3057 New functions. |
|
3058 * octave.cc (input_from_command_line_file): New global variable. |
|
3059 (main): Set it. |
|
3060 (parse_and_execute): Unwind-protect it and set it to zero. |
|
3061 (eval_string): Likewise. |
|
3062 * variables.cc (parse_fcn_file): Likewise. |
|
3063 |
|
3064 * user-prefs.cc (warn_missing_semicolon): New function. |
|
3065 * user-prefs.h (user_preferences): New field, warn_missing_semicolon. |
|
3066 * variables.cc (install_builtin_variables): DEFVAR it. |
|
3067 |
|
3068 * tree-expr.cc (tree_expression::is_logically_true): Actually use |
|
3069 argument. |
|
3070 |
|
3071 Mon Oct 2 19:55:48 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
3072 |
|
3073 * variables.cc (install_builtin_variables): Reduce the default |
|
3074 value of save_precision to 15. |
|
3075 |
|
3076 * variables.cc (builtin_real_scalar_variable): Return 1 for |
|
3077 success, 0 for failure. |
|
3078 |
|
3079 * user-prefs.cc (struct_levels_to_print, set_save_precision, |
|
3080 set_output_max_field_width, set_output_precision): |
|
3081 Change sense of test for builtin_real_scalar_variable return value. |
|
3082 (check_preference): Rename from check_str_pref. Change all callers. |
|
3083 Accept value of 0 to be the same as "false" and nonzero to be the |
|
3084 same as "true". |
|
3085 Delete val to avoid memory leak. |
|
3086 * variables.cc (install_builtin_variables): Change initial values |
|
3087 from "true" to 1, "false" to 0. |
|
3088 |
|
3089 * variables.cc (install_builtin_variables): Add DEFVAR for |
|
3090 gnuplot_has_multiplot. |
|
3091 |
|
3092 * user-prefs.h (user_preferences): New field, |
|
3093 `gnuplot_has_multiplot'. |
|
3094 * user-prefs.cc (init_user_prefs): Initialize it. |
|
3095 (gnuplot_has_multiplot): New function. |
|
3096 |
|
3097 Sat Sep 30 16:52:57 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
3098 |
|
3099 * oct-gperf.h, octave.gperf: Newfiles. |
|
3100 * Makefile.in (DISTFILES): Add octave.gperf. |
|
3101 (INCLUDES): Add oct-gperf.h. |
|
3102 (oct-gperf.h): New rule. |
|
3103 (local-dist, dist): Depend on oct-gperf.h. |
|
3104 * lex.l (is_keyword): Use perfect hash function to lookup |
|
3105 keywords. |
|
3106 |
|
3107 Fri Sep 29 04:36:04 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
3108 |
|
3109 * version.h (OCTAVE_NAME_AND_VERSION): Add TARGET_HOST_TYPE to this. |
|
3110 |
|
3111 Thu Sep 28 00:03:51 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
3112 |
|
3113 * tree-expr.cc (tree_expression::is_logically_true): New function. |
|
3114 * tree-cmd.cc (tree_while_command::eval): Use it instead of |
|
3115 handling the test directly here. |
|
3116 * tree-misc.cc (tree_if_clause::eval): Likewise |
|
3117 |
|
3118 * tree-const.cc (TC_REP::force_numeric): Don't try to print value |
|
3119 of str_obj with %s. |
|
3120 |
|
3121 * error.cc (buffer_error_messages): Rename from |
|
3122 suppress_octave_error_messages. |
|
3123 (error_message_buffer): New global variable. |
|
3124 (verror): Handle buffering of messages. |
|
3125 (handle_message): New function. |
|
3126 (Ferror, Fwarning, Fusage): Use it instead of duplicating code. |
|
3127 |
|
3128 * octave.cc (Feval): Buffer error messages instead of supressing them. |
|
3129 |
|
3130 * lex.l (is_keyword): Recognize `try', `catch', and `end_try_catch'. |
|
3131 * parse.y (TRY, CATCH): New tokens. |
|
3132 (command): Recognize try-catch block. |
|
3133 (end_error): Add cases for unwind_protect_end and try_catch_end. |
|
3134 * token.h (end_tok_type): New field, try_catch_end. |
|
3135 * tree-cmd.h, tree-cmd.cc (tree_try_catch): New class. |
|
3136 * variables.cc (bind_global_error_variable): New Function. |
|
3137 (clear_global_error_variable): Likewise. |
|
3138 (install_builtin_variables): Add DEFCONST for __error_text__. |
|
3139 * help.cc (keywords): Add `try', `catch', and `end_try_catch'. |
|
3140 |
|
3141 * tree-cmd.cc (tree_unwind_protect::eval): Undo previous change. |
|
3142 |
|
3143 * dirfns.cc (Freaddir, Fmkdir, Frmdir): |
|
3144 Do tilde expansion on the argument. |
|
3145 |
|
3146 Tue Sep 26 00:10:29 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
3147 |
|
3148 * f-dassl.cc, f-fsolve.cc, f-lsode.cc, f-npsol.cc, f-quad.cc: |
|
3149 Don't try to figure out if the user-supplied functions take the |
|
3150 correct number of arguments. Simply let the call fail. |
|
3151 * variables.cc (takes_correct_nargs): Delete unused function. |
|
3152 * tree-expr.cc (tree_builtin::eval): Don't complain for too many |
|
3153 arguments to mapper functions. |
|
3154 * tree-expr.h, tree-expr.cc (tree_builtin, tree_function, tree_fvc): |
|
3155 Delete unused function max_expected_args. |
|
3156 |
|
3157 * defun.h (DEFUN): Delete unnecessary args nargin_min and nargout_max. |
|
3158 New arg unused_arg_flags. |
|
3159 (DEFUN_TEXT): Likewise. |
|
3160 * defun-dld.h (DEFUN_DLD_BUILTIN): Likewise. |
|
3161 * defun-int.h (DEFUN_INTERNAL, DECLARE_FUN, DEFINE_FUN_STRUCT): |
|
3162 Do the real work. |
|
3163 |
|
3164 * data.cc, dirfns.cc, dynamic-ld.cc, error.cc, f-balance.cc, |
|
3165 f-chol.cc, f-colloc.cc, f-dassl.cc, f-det.cc, f-eig.cc, f-expm.cc, |
|
3166 f-fft.cc, f-fft2.cc, f-find.cc, f-fsolve.cc, f-fsqp.cc, |
|
3167 f-givens.cc, f-hess.cc, f-ifft.cc, f-ifft2.cc, f-inv.cc, f-log.cc, |
|
3168 f-lpsolve.cc, f-lsode.cc, f-lu.cc, f-minmax.cc, f-npsol.cc, |
|
3169 f-pinv.cc, f-qpsol.cc, f-qr.cc, f-quad.cc, f-qzval.cc, f-rand.cc, |
|
3170 f-schur.cc, f-sort.cc, f-svd.cc, f-syl.cc, file-io.cc, help.cc, |
|
3171 input.cc, lex.l, load-save.cc, mappers.cc, octave-hist.cc, |
|
3172 octave.cc, octave.h, pager.cc, pr-output.cc, resource.cc, |
|
3173 sighandlers.cc, strfns.cc, sysdep.cc, timefns.cc, token.cc, |
|
3174 tree-const.cc, tree-expr.cc, tree-expr.h, tree-plot.cc, |
|
3175 unwind-prot.cc, unwind-prot.h, utils.cc, variables.cc, |
|
3176 variables.h, version.h, xdiv.cc: |
|
3177 Avoid unused variable warnings. |
|
3178 |
|
3179 * tree-expr.h (tree_oct_obj::print_value (ostream&)): |
|
3180 Delete name of unused arg. |
|
3181 (tree_fvc::save (ostream&, int, int): Likewise. |
|
3182 |
|
3183 * tree-const.h (tree_constant::tree_constant (magic_colon)): |
|
3184 Delete name of unused arg. |
|
3185 (tree_constant::tree_constant (all_va_args)): Likewise |
|
3186 (ColumnVector vector_value (int, int)): Likewise. |
|
3187 (ComplexColumnVector vector_value (int, int)): Likewise. |
|
3188 (Octave_object::eval (int, int, const Octave_object&): Likewise. |
|
3189 |
|
3190 * octave.cc (execute_startup_files): Look for octaverc first in |
|
3191 site/m, then in $(version)/m. |
|
3192 * variables.cc (get_local_site_defaults): New function. |
|
3193 * defaults.h.in (OCTAVE_LOCALFCNFILEDIR, OCTAVE_LOCALSTARTUPFILEDIR): |
|
3194 New macros. |
|
3195 * Makefile.in (defaults.h): Also substitute ${localfcndir}. |
|
3196 |
|
3197 Mon Sep 25 17:01:03 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
3198 |
|
3199 * variables.cc (install_builtin_variables): Add DEFCONST for "e". |
|
3200 |
|
3201 Fri Sep 22 02:18:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
3202 |
|
3203 * dirfns.cc (Fls): Delete ls_command after using it, not before. |
|
3204 |
|
3205 * input.h, input.cc (gnu_readline): Don't declare gnu_readline |
|
3206 `extern "C"'. |
|
3207 |
|
3208 * sysdep.h: Only declare gethostname if it is missing, then don't |
|
3209 declare it `extern "C"'. |
|
3210 |
|
3211 * dirfns.cc: Don't declare strerror(). |
|
3212 |
|
3213 * input.cc (command_generator): Use malloc, not xmalloc. Don't |
|
3214 declare xmalloc. |
|
3215 (gnu_readline): Don't declare this `extern "C"'. |
|
3216 |
|
3217 * octave-hist.cc: Don't declare history_get(). It is now in |
|
3218 readline/history.h. |
|
3219 |
|
3220 * input.cc: Don't declare history_get(). It is now in |
|
3221 readline/readline.h. |
|
3222 |
|
3223 * resource.cc: Don't surround include of sys/resource.h in |
|
3224 `extern "C" { }'. |
|
3225 |
|
3226 * fnmatch.h [__cplusplus]: Surround contents in `extern "C" { }'. |
|
3227 * load-save.cc, symtab.cc, variables.cc: Don't surround |
|
3228 fnmatch.h include in `extern "C" { }'. |
|
3229 |
|
3230 * help.cc: Don't #undef __FUNCTION_DEF before including |
|
3231 readline/tilde.h. |
|
3232 |
|
3233 * dirfuns.cc, file-io.cc, help.cc, load-save.cc, octave-hist.cc, |
|
3234 sysdep.cc, tree-plot.cc, utils.cc, variables.cc: |
|
3235 Don't surround readline includes in `extern "C" { }'. |
|
3236 |
|
3237 * sysdep.cc: Move all include statements to top of file. |
|
3238 |
|
3239 Tue Sep 19 01:58:21 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
3240 |
|
3241 * octave.cc (Fsystem): Use iprocstream *, and unwind_protect it. |
|
3242 * pager.cc (flush_output_to_pager): Likewise. |
|
3243 * dirfns.cc (Fls): Likewise. |
|
3244 * tree-plot.cc (plot_stream): Now a pointer. |
|
3245 (open_plot_stream): Deal with it. |
|
3246 (send_to_plot_stream, cleanup_tmp_files, do_external_plotter_cd): |
|
3247 Likewise. |
|
3248 |
|
3249 * procstream.cc (cleanup_iprocstream, cleanup_oprocstream): |
|
3250 New functions. |
|
3251 |
|
3252 * procstream.h, procstream.cc (class iprocstream, class oprocstream): |
|
3253 Keep track of pbuf. Initialize it to 0 in default constructors, |
|
3254 delete it in destructor. Don't call close in destructor. |
|
3255 |
|
3256 * sighandlers.cc (octave_set_signal_handler): New function. |
|
3257 Use this name instead of signal everywhere. |
|
3258 * help.cc (try_info): Likewise. |
|
3259 * pager.cc (flush_output_to_pager): Likewise. |
|
3260 * octave.cc (main): Likewise. |
|
3261 * octave-hist.cc (do_edit_history): Likewise. |
|
3262 |
|
3263 * input.cc (initialize_readline): Set rl_paren_string_delimiters |
|
3264 to avoid treating single quotes as string delimiters when doing |
|
3265 paren matching. |
|
3266 |
|
3267 * Makefile.in (SOURCES): Don't list Map.cc or SLStack.cc here. |
|
3268 |
|
3269 * tree-const.cc: Do include utils.h. |
|
3270 |
|
3271 * sysdep.cc: Don't surround terminal includes in extern "C". |
|
3272 Include them before readline.h. |
|
3273 |
|
3274 * Map.h: Don't include utils.h. |
|
3275 (CHNode::CHNode (const char*, const C&, CHNode *t): |
|
3276 Do strsave() inline. |
|
3277 |
|
3278 * input.cc (generate_possible_completions): Generate name list |
|
3279 even when text == 0. |
|
3280 (operate_and_get_next): Don't declare history_stifled, call |
|
3281 history_is_stifled () instead. |
|
3282 Don't declare history_length, or max_input_history either. |
|
3283 Check (where >= history_length - 1) too, as in recent versions of |
|
3284 bash. |
|
3285 |
|
3286 * user-prefs.h (user_prefs): New field, `completion_append_char'. |
|
3287 * user-prefs.cc (init_user_prefs): Initialize it. |
|
3288 (sv_completion_append_char): New function. |
|
3289 * variables.cc (install_builtin_variables): Install |
|
3290 completion_append_char. |
|
3291 * input.cc (command_generator): Use it. |
|
3292 |
|
3293 * SLList-expr.cc, SLList-misc.cc, SLList-plot.cc, SLList-tc.cc, |
|
3294 DLList-fi.cc: Include config.h. |
|
3295 * DLList-fi.cc: Include file-info.h, not file-io.h. |
|
3296 |
|
3297 Mon Sep 18 11:01:24 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
3298 |
|
3299 * octave.h (clean_up_and_exit): Tag with NORETURN instead of using |
|
3300 typedef trick. |
|
3301 * error.h (panic): Likewise. |
|
3302 * utils.h (jump_to_top_level): Likewise. |
|
3303 |
|
3304 * file-io.h: Protect from multiple includes with octave_file_io, |
|
3305 not octave_files. |
|
3306 |
|
3307 * file-info.h (class file_info): Convert to using std C++ string |
|
3308 class from char *. |
|
3309 * file-info.cc: Likewise. Don't include utils.h. |
|
3310 * file-io.cc (return_valid_file, fopen_file_for_user, |
|
3311 fflush_internal, do_scanf): Use operator ==, not strcmp. |
|
3312 (close_files): Call error with file.name ().data (), |
|
3313 not file.name (). |
|
3314 (freport_internal): Call form with file.mode ().data () and |
|
3315 file.name ().data (). |
|
3316 |
|
3317 * file-io.cc, file-io.h: Extract file_info class. |
|
3318 * file-info.cc, file-info.h: New files for file_info class. |
|
3319 |
|
3320 * user-prefs.h (user_prefs): New field, `beep_on_error'. |
|
3321 * user-prefs.cc (init_user_prefs): Initialize it. |
|
3322 (beep_on_error): New function. |
|
3323 * variables.cc (install_builtin_variables): Install beep_on_error. |
|
3324 * octave.cc (maximum_braindamage): Set beep_on_error to "true". |
|
3325 * error.cc (verror): Conditionally beep. |
|
3326 (error): Don't reset error_state until after verror is called. |
|
3327 |
|
3328 Sun Sep 17 16:41:25 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
3329 |
|
3330 * load-save.cc (read_mat_binary_data, read_ascii_data, |
|
3331 save_ascii_data, read_binary_data, save_binary_data): |
|
3332 Handle string arrays. |
|
3333 |
|
3334 Fri Sep 15 00:24:19 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
3335 |
|
3336 * user-prefs.cc (struct_levels_to_print, |
|
3337 set_output_max_field_width, set_output_precision, |
|
3338 set_save_precision): Eliminate unecessary kludge variable. |
|
3339 |
|
3340 * variables.cc (gobble_leading_white_space): New arg, |
|
3341 in_parts. Change all callers. |
|
3342 |
|
3343 * lex.l (HELP_FCN): Delete start state. The `help' command is now |
|
3344 handled the same as any other text-style function. |
|
3345 |
|
3346 * gripes.cc (gripe_invalid_value_specified): New function |
|
3347 * user-prefs.cc: Use it. |
|
3348 |
|
3349 * sysdep.cc (octave_words_big_endian): New global variable. |
|
3350 (ten_little_endians): New function. |
|
3351 (sysdep_init): Call it. |
|
3352 * load-save.cc (words_big_endian): Use this at run-time instead of |
|
3353 depending on WORDS_BIGENDIAN at compile-time. |
|
3354 |
|
3355 * symtab.h (SYMTAB_VARIABLES): New macro. |
|
3356 * variables.cc (Fclear): Use it instead of just |
|
3357 symbol_def::USER_VARIABLE when looking for variables. |
|
3358 |
|
3359 * octave.cc (main): If there is a file to execute, set |
|
3360 program_invocation_name and program_name to the name of the file |
|
3361 and argv to the remaining args. |
|
3362 (intern_argv): Only define argv if there are some remaining |
|
3363 arguments. |
|
3364 |
|
3365 * defun.h (DEFVAR_INT): New macro. |
|
3366 (DEFVAR): Define in terms of DEFVAR_INT. Delete args protect and |
|
3367 eternal. |
|
3368 (DEFCONST): New macro. |
|
3369 * variables.cc (install_builtin_variables): Use DEFCONST where |
|
3370 appropriate, change uses of DEFVAR to match new definition. |
|
3371 |
|
3372 * variables.cc (bind_builtin_variable): New variant that accepts |
|
3373 const tree_constant& value. |
|
3374 (install_builtin_variables): Properly alphabetize DEFVAR for this. |
|
3375 |
|
3376 * octave.cc (short_opts): Prefix with `+' to prevent argv |
|
3377 permutation. |
|
3378 (main): Don't use readline if forced_interactive. |
|
3379 (traditional): New file-scope variable. |
|
3380 (long_opts, usage_string, verbose_usage): Add `--traditional'. |
|
3381 (maximum_braindamage): New function. |
|
3382 (main): Call it if --traditional. |
|
3383 |
|
3384 * input.cc (do_input_echo): Print prompt correctly when |
|
3385 forced_interactive is either true or false. |
|
3386 |
|
3387 Thu Sep 14 00:54:06 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
3388 |
|
3389 * data.cc (Fstruct_elements): New function. |
|
3390 |
|
3391 * file-io.cc (Fumask): New function. |
|
3392 |
|
3393 * dirfns.cc (Fmkdir, Frmdir, Frename): New functions. |
|
3394 |
|
3395 * Makefile.in: Add rules and dependencies for building safe-stat.o |
|
3396 and safe-lstat.o. |
|
3397 |
|
3398 * mkdir.c, rename.c, rmdir.c: New files. |
|
3399 * Makefile.in (SOURCES): Include them in the list. |
|
3400 |
|
3401 * safe-xstat.hin, safe-xstat.cin: New files |
|
3402 * Makefile.in (DISTFILES): Include them in the list. |
|
3403 |
|
3404 * sighandlers.cc (octave_new_handler): Try to continue on memory |
|
3405 exhausted errors. |
|
3406 (sigfpe_handler): Improve error message. |
|
3407 |
|
3408 * Makefile.in: Use `ifndef omit_deps', not `ifndef $(omit_deps)'. |
|
3409 |
|
3410 * dirfns.cc (Freaddir): New function. |
|
3411 |
|
3412 * f-sort.cc: Complete rewrite. Now uses stable sort algorithm and |
|
3413 correctly handles complex matrices containing columns of all real |
|
3414 numbers. |
|
3415 |
|
3416 Wed Sep 13 03:16:40 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
3417 |
|
3418 * arith-ops.cc: Unconditionally #define DIVIDE_BY_ZERO_ERROR. |
|
3419 |
|
3420 * variables.cc (install_builtin_variables): Unconditionally |
|
3421 install NaN and nan. |
|
3422 |
|
3423 * mappers.cc (xisinf): Don't do bogus things if isinf, isnan, or |
|
3424 finite are missing. |
|
3425 (xfinite): Likewise. |
|
3426 |
|
3427 * sysdep.cc (octave_ieee_init): Don't set octave_NaN and |
|
3428 octave_Inf if values are not available. |
|
3429 |
|
3430 * resource.cc (mk_ru_map): Don't use ru_ or tv_ as prefixes to |
|
3431 Octave names for the structure members. |
|
3432 |
|
3433 Tue Sep 12 02:04:16 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
3434 |
|
3435 * procstream.h, procstream.cc: Rewrite. |
|
3436 |
|
3437 Mon Sep 11 18:42:05 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
3438 |
|
3439 * filemode.c: New file, from Emacs. |
|
3440 * Makefile.in (SOURCES): Add it to the list. |
|
3441 |
|
3442 * file-io.cc (Fstat, Flstat, mk_stat_map): New functions. |
|
3443 |
|
3444 * timefns.cc (mk_tm_map): Don't use tm_ as prefix to Octave names |
|
3445 for these structure members. |
|
3446 (extract_tm): Likewise. |
|
3447 (Flocaltime): Fix doc string to match. |
|
3448 |
|
3449 Thu Sep 7 02:04:27 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
3450 |
|
3451 * load-save.cc (save_user_variables): New function. |
|
3452 * sighandlers.cc (my_friendly_exit): Call it before exiting. |
|
3453 (sigfpe_handler): New function. |
|
3454 (install_signal_handlers) [__alpha__]: Install it. |
|
3455 |
|
3456 Wed Sep 6 14:35:10 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
3457 |
|
3458 * tree-cmd.cc (tree_unwind_protect::eval): Ignore errors and |
|
3459 suppress error messages while executing first block of |
|
3460 unwind_protect commands. |
|
3461 |
|
3462 * parse.y (end_error): Add missing case for unwind_protect_end. |
|
3463 |
|
3464 * tree-expr.cc (tree_builtin::eval): Complain if no arguments |
|
3465 given for mapper functions. |
|
3466 (tree_fvc::lookup_map_element): Print error message for invalid |
|
3467 structure reference. |
|
3468 |
|
3469 Tue Sep 5 02:04:12 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
3470 |
|
3471 * file-io.cc, input.cc, load-save.cc, octave.cc, sysdep.cc, |
|
3472 variables.cc, octave-hist.cc, utils.cc, f-schur.cc, f-rand.cc, |
|
3473 f-quad.cc, f-qpsol.cc, f-npsol.cc, f-lsode.cc, f-fsolve.cc, |
|
3474 f-dassl.cc, f-colloc.cc, f-balance.cc, error.cc, data.cc: |
|
3475 Add const qualifiers where appropriate. |
|
3476 |
|
3477 * dirfns.h: Include <ctime>, for time_t. |
|
3478 |
|
3479 * tempname.c, file-io.cc, help.cc, input.cc, octave-hist.cc, |
|
3480 octave.cc, sighandlers.cc, sysdep.cc, tree-expr.cc, tree-misc.cc, |
|
3481 tree-plot.cc, utils.cc, variables.cc, sysdir.h: |
|
3482 Move #include <sys/type.h> inside #ifdef HAVE_UNISTD_H. |
|
3483 |
|
3484 * syswait.h: New file. |
|
3485 * Makefile.in (INCLUDES): Add it to the list. |
|
3486 * file-io.cc, sighandlers.cc: Use it instead of including |
|
3487 sys/wait.h directly. |
|
3488 |
|
3489 * octave.cc: Include statdefs.h, not sys/stat.h. |
|
3490 |
|
3491 * sysdir.h: New file. |
|
3492 * Makefile.in (INCLUDES): Add it to the list. |
|
3493 * dirfns.cc, utils.cc: Use it instead of including the headers |
|
3494 directly. |
|
3495 |
|
3496 * pathlen.h: New file. |
|
3497 * Makefile.in (INCLUDES): Add it to the list. |
|
3498 * dirfns.cc, input.cc: Use it instead of including sys/param.h |
|
3499 directly. |
|
3500 * utils.cc: Don't include sys/param.h |
|
3501 |
|
3502 Sun Sep 3 18:52:59 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
3503 |
|
3504 * tree-const.cc (TC_REP::string_value): Return const char*, not |
|
3505 char *. |
|
3506 |
|
3507 * All .cc, .y, .l, .y files: Include <cctype>, not <ctype.h>, and |
|
3508 so on for all new C++ versions of these standard C headers. |
|
3509 |
|
3510 Thu Aug 31 17:09:38 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
3511 |
|
3512 * pathsearch.h: Also hide `string'. |
|
3513 |
|
3514 * oct-str.cc, oct-str.h: New files. |
|
3515 * Makefile.in: Add to the appropriate lists. |
|
3516 * tc-rep.h: Change char* to Octave_string* in anonymous union. |
|
3517 * tree-expr.cc (tree_matrix::eval): Handle multiple element strings. |
|
3518 * strfns.cc (toascii): Likewise. |
|
3519 * tree-const.cc (print_as_string): Likewise. |
|
3520 (TC_REP::force_numeric, TC_REP::rows, TC_REP::columns, |
|
3521 TC_REP::double_value, TC_REP::complex_value, TC_REP::matrix_value, |
|
3522 TC_REP::complex_matrix_value, TC_REP::convert_to_str): Likewise. |
|
3523 (TC_REP::print): Call octave_print_internal for string case. |
|
3524 (all_strings): New function. |
|
3525 Fix constructors to use new data structure. |
|
3526 * pr-output.cc (octave_print_internal): Add version for strings. |
|
3527 * Array-string.cc: New file. |
|
3528 |
|
3529 * octave.cc (octave_argv): New global variable. |
|
3530 (intern_argv): New function. |
|
3531 (main): Fix argument parsing to do the right thing for arguments |
|
3532 to executable scripts. |
|
3533 * variables.cc: Add DEFUNs for argv, program_invocation_name, and |
|
3534 program_name. |
|
3535 |
|
3536 * defun.h (DEFVAR): Fix comment. |
|
3537 |
|
3538 Thu Aug 24 00:02:00 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
3539 |
|
3540 * file-io.cc (fgets_internal): Make second arg optional. Add |
|
3541 optional arg `strip_final_newline'. |
|
3542 (Ffgets): Change to match new definition of fgets_internal. |
|
3543 (Ffgetl): Implement using the new fgets_internal. |
|
3544 |
|
3545 * f-rand.cc (Frand): Update code for sizing return value to match |
|
3546 that used by ones, zeros, and eye. |
|
3547 |
|
3548 Wed Aug 23 19:52:45 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
3549 |
|
3550 * tree-const.cc (do_vector_assign): Don't crash for |
|
3551 A(range) = scalar, or A(matrix) = scalar. |
|
3552 |
|
3553 * f-dassl.cc (set_dassl_option): Rename from do_dassl_option. |
|
3554 (show_dassl_option): New function. |
|
3555 (Fdassl_options): Handle single arg. |
|
3556 * f-fsolve.cc (set_fsolve_option): Rename from do_fsolve_option. |
|
3557 (show_fsolve_option): New function. |
|
3558 (Ffsolve_options): Handle single arg. |
|
3559 * f-fsqp.cc (set_fsqp_option): Rename from do_fsqp_option. |
|
3560 (show_fsqp_option): New function. |
|
3561 (Ffsqp_options): Handle single arg. |
|
3562 * f-lpsolve.cc (set_lpsolve_option): Rename from do_lpsolve_option. |
|
3563 (show_lpsolve_option): New function. |
|
3564 (Flpsolve_options): Handle single arg. |
|
3565 * f-lsode.cc (set_lsode_option): Rename from do_lsode_option. |
|
3566 (show_lsode_option): New function. |
|
3567 (Flsode_options): Handle single arg. |
|
3568 * f-npsol.cc (set_npsol_option): Rename from do_npsol_option. |
|
3569 (show_npsol_option): New function. |
|
3570 (Fnpsol_options): Handle single arg. |
|
3571 * f-qpsol.cc (set_qpsol_option): Rename from do_qpsol_option. |
|
3572 (show_qpsol_option): New function. |
|
3573 (Fqpsol_options): Handle single arg. |
|
3574 * f-quad.cc: (set_quad_option): Rename from do_quad_option. |
|
3575 (show_quad_option): New function. |
|
3576 (Fquad_options): Handle single arg. |
|
3577 (Fquad): Doc fix. |
|
3578 |
|
3579 Tue Aug 22 00:38:05 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
3580 |
|
3581 * tree-plot.cc (do_external_plotter_cd): New function. |
|
3582 * dirfns.cc (octave_change_to_directory): New function. If cd is |
|
3583 successful, also call do_external_plotter_cd(). |
|
3584 (Fcd): Call octave_change_to_directory(), not change_to_directory(). |
|
3585 |
|
3586 * pr-output.cc (pr_any_float): Change declaration of counter to |
|
3587 size_t to avoid gcc warnings. |
|
3588 |
|
3589 * idx-vector.cc, octave-hist.cc, tree-const.cc, tree-expr.cc, |
|
3590 tree-misc.cc, utils.cc, xpow.cc, Map.cc: |
|
3591 Update for change in for loop variable scope for gcc 2.7.0. |
|
3592 |
|
3593 Mon Aug 21 19:34:53 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
3594 |
|
3595 * tree-const.cc (fortran_style_matrix_assignment): Properly handle |
|
3596 case of complex LHS, real RHS. |
|
3597 |
|
3598 * Makefile.in: Only include dependency files if $(omit_deps) is |
|
3599 not set. |
|
3600 |
|
3601 Wed Jul 5 00:03:58 1995 John Eaton <jwe@bevo.che.wisc.edu> |
|
3602 |
|
3603 * sysdep.cc: Explicitly include string.h. |
|
3604 |
|
3605 Sun Jun 25 00:18:10 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3606 |
|
3607 * load-save.cc (too_large_for_float (const Matrix&)): |
|
3608 Extract elements as doubles, not Complex. |
|
3609 |
|
3610 Sat Jun 24 22:59:15 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3611 |
|
3612 * pr-output.cc (any_element_is_inf_or_nan): Declare extern, not static. |
|
3613 * f-svd.cc (Fsvd): Call here to avoid trying to take SVD of matrix |
|
3614 containing Inf or NaN values. |
|
3615 |
|
3616 * pr-output.cc (bit_format): New file-scope variable. |
|
3617 (set_format, pr_any_float): Handle bit_format. |
|
3618 (octave_print_internal): Handle bit_format like bank_format. |
|
3619 (init_format_state): Initialize bit_format. |
|
3620 (set_format_style): Allow `format bit' and `format native-bit'. |
|
3621 |
|
3622 Thu Jun 8 15:20:26 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3623 |
|
3624 * mappers.cc (arg, imag, signum): If arg is NaN, return NaN. |
|
3625 |
|
3626 Mon May 15 14:47:04 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3627 |
|
3628 * pager.cc (Fdiary): Initialize diary_file here, not in the |
|
3629 file-scope declaration. |
|
3630 |
|
3631 * tree-expr.cc (tree_index_expression::eval): |
|
3632 Handle nargin == 0 the same as other cases. |
|
3633 |
|
3634 Tue May 2 10:02:23 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3635 |
|
3636 * load-save.cc (do_double_format_conversion): Add missing breaks. |
|
3637 (do_float_format_conversion): Likewise. |
|
3638 |
|
3639 Mon May 1 13:50:24 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3640 |
|
3641 * Makefile.in (OCTAVE_LIBS): Add @LIBPLPLOT@ to the list. |
|
3642 |
|
3643 * timefns.cc (Ftime): Handle GETTIMEOFDAY_NO_TZ. |
|
3644 |
|
3645 * Makefile.in (SOURCES): Delete tc-rep.cc, tc-rep-ass.cc, and |
|
3646 tc-rep-idx.cc from the list. |
|
3647 |
|
3648 * tree-const.h: Add #pragma interface. |
|
3649 * tree-const.cc: Add contents of tc-rep.cc, tc-rep-ass.cc, and |
|
3650 tc-idx.cc to this file. Add #pragma implementation. This makes |
|
3651 tree-const.cc large, but makes the final binary smaller. |
|
3652 |
|
3653 * unwind-prot.h unwind-prot.cc token.cc token.h procstream.cc |
|
3654 procstream.h idx-vector.cc idx-vector.h symtab.cc symtab.h |
|
3655 oct-map.cc oct-map.h oct-obj.cc oct-obj.h tree-plot.h tree-plot.cc |
|
3656 tree-misc.cc tree-misc.h tree-expr.cc tree-expr.h tree-cmd.cc |
|
3657 tree-cmd.h tree-base.cc tree-base.h: |
|
3658 Add #pragma interface/implementation. |
|
3659 |
|
3660 * Makefile.in (OCTAVE_LIBS): Delete @LIBINFO@ from list. |
|
3661 * help.cc: Don't include info headers or extern declarations for |
|
3662 functions from info. |
|
3663 (try_info): Call info as a subprocess. Delete second arg. |
|
3664 Handle SIGINT here, not in help_from_info(). |
|
3665 (help_from_info): Complain if info doesn't work. |
|
3666 |
|
3667 * defun-dld.h (DEFUN_DLD_BUILTIN) [OCTAVE_LITE && MAKE_BUILTINS]: |
|
3668 If ! WITH_DLD, simply emit a character string constant. |
|
3669 |
|
3670 Fri Apr 28 15:23:06 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3671 |
|
3672 * lex.l ({IDENT}{S}*): Don't delete tok. That's handled by |
|
3673 strip_trailing_whitespace() now. |
|
3674 (<HELP_FCN>[^ \t\n]*{S}*|<TEXT_FCN>[^ \t\n\;\,]*{S}*): Ditto. |
|
3675 |
|
3676 * pathsearch.h: Include kpathsea/progname.h. |
|
3677 * octave.cc (initialize_globals): Call kpse_set_progname(). |
|
3678 |
|
3679 * token.h: Declare copy constructor and operator = private. |
|
3680 * token.cc: Abort if copy constructor or operator = is used. |
|
3681 |
|
3682 Thu Apr 27 13:54:39 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3683 |
|
3684 * tree-expr.cc (lookup_map_element): Don't list default argument |
|
3685 values here too. |
|
3686 |
|
3687 * pr-output.cc (hex_format): New file-scope variable. |
|
3688 (set_format, pr_any_float): Handle hex_format. |
|
3689 (octave_print_internal): Handle hex_format like bank_format. |
|
3690 (init_format_state): Initialize hex_format. |
|
3691 (set_format_style): Allow `format hex' and `format native-hex'. |
|
3692 |
|
3693 * variables.cc (bind_ans): Create ans_id each time with new and |
|
3694 ask tree_simple_assignment_expression to handle cleaning it up. |
|
3695 This apparently plugs a memory leak. |
|
3696 |
|
3697 * help.cc (Ftype): Don't try to print map constants. Handle |
|
3698 references to structure members. |
|
3699 |
|
3700 Wed Apr 26 12:40:59 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3701 |
|
3702 * input.cc (generate_struct_completions): New function. |
|
3703 (generate_possible_completions): Likewise. |
|
3704 (looks_like_struct): Likewise. |
|
3705 (command_generator): Handle completion of struct variables. |
|
3706 |
|
3707 * tree-expr.h, tree-expr.cc (tree_fvc::lookup_map_element): |
|
3708 Add insert and silent args. |
|
3709 |
|
3710 * oct-map.cc: New file. |
|
3711 * Makefile.in (SOURCES): Add it to the list. |
|
3712 |
|
3713 Mon Apr 24 09:41:02 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3714 |
|
3715 * variables.cc (Fexist): Handle structure references too. |
|
3716 |
|
3717 * tree-const.cc (lookup_map_element (const char*, int, int): |
|
3718 New function. |
|
3719 (lookup_map_element (SLList<char*>&, int, int): New arg, silent. |
|
3720 * tc-rep.cc (lookup_map_element): New arg, silent. If nonzero, |
|
3721 don't call error(). |
|
3722 |
|
3723 * tc-rep.h (is_empty): Define here. |
|
3724 * tree-const.h (is_empty): Hand off to TC_REP::is_empty(). |
|
3725 |
|
3726 * data.cc (Fstruct_contains): Call lookup_map_element on args(0) |
|
3727 instead of extracting the map and calling contains() on it. |
|
3728 |
|
3729 * parse.y (EPLUS, EMINUS): New tokens. |
|
3730 (simple_expr): Handle EPLUS, EMINUS the same as `+' and `-'. |
|
3731 * lex.l (".+", ".-"): New patterns. Match these separately to |
|
3732 disallow using them as unary operators. |
|
3733 |
|
3734 * lex.l (next_token_is_bin_op): Simplify by noting that spacing |
|
3735 only matters for those tokens that can also be unary ops. |
|
3736 |
|
3737 Fri Apr 21 14:34:45 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3738 |
|
3739 * load-save.cc (read_ascii_data): Allow reading of empty |
|
3740 matrices. |
|
3741 |
|
3742 * tc-rep-ass.cc (vector_assignment): Only assert that we are not |
|
3743 doing fortran-style indexing and that nr <= 1 || nc <= 1. |
|
3744 (do_vector_assign): Handle assignment of [] when one dimension is |
|
3745 zero and the other is anything. |
|
3746 |
|
3747 Thu Apr 20 13:56:21 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3748 |
|
3749 * tc-rep-ass.cc (delete_rows, delete_columns): Simply return if |
|
3750 num_to_delete is 0. |
|
3751 |
|
3752 * lex.l (handle_identifier): Don't match plot option keywords |
|
3753 inside parentheses or braces. |
|
3754 |
|
3755 * variables.cc (parse_fcn_file): Also delete tmp_help_txt if |
|
3756 running a script. |
|
3757 |
|
3758 * tree-cmd.h (tree_command): Add destructor. |
|
3759 |
|
3760 * tree-expr.h tree_simple_assignment_expression (lhs_idx_expr): |
|
3761 Hang on to idx_expr, not just its parts so it can be deleted. |
|
3762 (init): Initialize it. |
|
3763 * tree-expr.cc (~tree_simple_assignment_expression): Delete it. |
|
3764 |
|
3765 * tree-expr.h (tree_multi_val_ret, tree_oct_obj, tree_fvc, |
|
3766 tree_identifier, tree_builtin, tree_function): Add destructors. |
|
3767 * tree-expr.cc (tree_function::~tree_function): Delete some stuff. |
|
3768 |
|
3769 * tree-misc.h (tree_va_return_list): Add destructor. |
|
3770 |
|
3771 * octave.cc (__builtin_new, __builtin_delete): Provide our own, |
|
3772 for debugging. |
|
3773 |
|
3774 * utils.cc (strconcat): Don't depend on the return value from |
|
3775 strcat. |
|
3776 (file_in_path): Simplify logic. |
|
3777 |
|
3778 * parse.y (maybe_convert_to_ans_assign): Create ans_id each time |
|
3779 with new and ask tree_simple_assignment_expression to handle |
|
3780 cleaning it up. This apparently plugs a memory leak. |
|
3781 |
|
3782 * lex.l (strip_trailing_whitespace): Declare retval static. |
|
3783 Delete it before saving next string. |
|
3784 |
|
3785 * error.cc (Ferror): Do call error() for empty string args. |
|
3786 (error_1): Don't print anything if fmt is "" or "\n", but do set |
|
3787 the error state appropriately. |
|
3788 |
|
3789 * tree-cmd.cc (tree_unwind_protect::eval): Handle return and break |
|
3790 in the `try' part of the statement. |
|
3791 |
|
3792 Mon Apr 10 19:29:44 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3793 |
|
3794 * f-expm.cc, f-givens.cc, f-qzval.cc, f-syl.cc, f-rand.cc: |
|
3795 Where appropriate, declare Fortran functions to take reference |
|
3796 instead of pointer args. Change callers. |
|
3797 |
|
3798 * mappers.cc: Declare Fortran functions to take reference instead |
|
3799 of pointer args. Change callers. |
|
3800 |
|
3801 * gamma.c, lgamma.c, erfc.c, erf.c, atanh.c, asinh.c, acosh.c: |
|
3802 Declare Fortran functions to take reference instead of pointer |
|
3803 args. |
|
3804 |
|
3805 Sun Apr 9 19:38:53 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3806 |
|
3807 * file-io.cc (Fpopen, Fpclose, Fexecute, Fsync_system, |
|
3808 Fasync_system, Fwaitpid, Fmkfifo, Funlink): New functions. |
|
3809 |
|
3810 * sighandlers.cc (sigchld_handler): New function. |
|
3811 (install_signal_handlers): Add call to install |
|
3812 sigchld_handler. (This is #if 0'd out, waiting for code to help |
|
3813 determine which child exited and what to do about it). |
|
3814 |
|
3815 * tree-expr.h (tree_oct_obj): New class. |
|
3816 |
|
3817 * tree-expr.h (tree_multi_assignment_expression::preserve): New |
|
3818 data member. Add arg with default value to constructors. Change |
|
3819 callers as necessary. |
|
3820 * tree-expr.cc (~tree_multi_assignment_expression): Conditionally |
|
3821 delete lhs. |
|
3822 |
|
3823 * parse.y (make_multi_val_ret): Pass matrix instead of getting it |
|
3824 from the global matrix list. |
|
3825 (expression): Extract matrix from matrix list before calling |
|
3826 make_multi_val_ret(). |
|
3827 |
|
3828 * parse.y (command): Handle new for loop syntax for structures. |
|
3829 |
|
3830 * tree-plot.h (subplot_list): Include tree_print_code() in |
|
3831 initializer lists for constructors. |
|
3832 * tree-expr.h (tree_statement_list, tree_argument_list, |
|
3833 tree_parameter_list, tree_return_list, tree_global_init_list, |
|
3834 tree_if_command_list, ): Likewise. |
|
3835 |
|
3836 * tree-cmd.h (tree_for_command::id_list): New data member. |
|
3837 (tree_for_command (tree_return_list*, tree_expression*, |
|
3838 tree_statement_list*, int, int)): Likewise. |
|
3839 * tree-cmd.cc (tree_for_command::eval): Handle for loops with |
|
3840 structures. |
|
3841 (do_for_loop_once (tree_return_list*, Octave_object&, int&)): |
|
3842 New form for handling for loops with structures. |
|
3843 |
|
3844 * sysdep.cc (octave_ieee_init): Determine floating point format |
|
3845 here. |
|
3846 (native_float_format): New global variable. |
|
3847 (Fisieee): Compute return value from native_float_format, not by |
|
3848 using preprocessor macros. |
|
3849 * sysdep.h (enum floating_point_format): Move declaration here. |
|
3850 * load-save.cc: From here. |
|
3851 Always define all floating point format conversion routines. |
|
3852 (do_double_format_conversion, do_float_format_conversion): |
|
3853 Use native_float_format instead of preprocessor macros. |
|
3854 |
|
3855 Sat Apr 8 15:41:35 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3856 |
|
3857 * Makefile (TEMPLATE_SRC): New variable. |
|
3858 (DISTFILES): Add $(TEMPLATE_SRC). |
|
3859 (SOURCES): Delete Map.cc and SLStack.cc from here. |
|
3860 |
|
3861 * variables.cc (install_builtin_variables): Use OCTAVE_VERSION |
|
3862 instead of version_string to initialize OCTAVE_VERSION. |
|
3863 * version.h (version_string): Delete. |
|
3864 |
|
3865 * getopt.c (_getopt_internal): Initialize indfound to avoid warning. |
|
3866 |
|
3867 Fri Apr 7 15:29:41 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3868 |
|
3869 * tc-inlines.h (REP_RHS_MATRIX): Just check to see if tc is real |
|
3870 or complex. If conversion fails, return. |
|
3871 |
|
3872 Thu Apr 6 00:10:47 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3873 |
|
3874 * data.cc (Fstruct_contains): New function. |
|
3875 |
|
3876 * tc-rep.cc (print_code): Add extra parens around while condition |
|
3877 to avoid warning. |
|
3878 * utils.cc (undo_string_escapes): Likewise. |
|
3879 * input.cc (decode_prompt_string): Likewise. Also rewrite if |
|
3880 statement to avoid warning. |
|
3881 |
|
3882 Tue Apr 4 22:54:17 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3883 |
|
3884 * tree-expr.cc (tree_multi_assignment_expression::eval, |
|
3885 tree_simple_assignment_expression::eval): Call print_constant |
|
3886 even if user_pref.print_answer_id_name is false. |
|
3887 |
|
3888 Mon Apr 3 17:57:14 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3889 |
|
3890 * tc-inlines.h (TC_REP): Avoid redefinition. |
|
3891 |
|
3892 * tree-const.h (do_binary_op, do_unary_op): Declare as friends of |
|
3893 tree_constant class too. |
|
3894 |
|
3895 * tree-plot.h (subplot_using::have_values): Delete data member. |
|
3896 * tree-plot.cc (subplot_using::eval): Always recompute values. |
|
3897 |
|
3898 Fri Mar 31 10:18:32 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3899 |
|
3900 * tc-rep.cc (print): Print open brace for structures here. |
|
3901 * tree-expr.cc (print_constant): Not here. |
|
3902 |
|
3903 * symtab.cc (define): Don't delete arg if sv_fcn fails. |
|
3904 |
|
3905 * tree-const.cc (print): New function. Create ostrstream buffer |
|
3906 and pass it to rep->print(). |
|
3907 * tree-const.h (eval (int)): Call print(), not rep->print(). |
|
3908 * tc-rep.cc (structure_indent_level): New file-scope variable. |
|
3909 (print): New arg, output_buf, is stream to print to. |
|
3910 Print values of structure elements too. |
|
3911 |
|
3912 * user-prefs.h (user_preferences): New field, struct_levels_to_print. |
|
3913 * user-prefs.cc (struct_levels_to_print): New function. |
|
3914 * variables.cc (install_builtin_variables): Add DEFVAR for new |
|
3915 variable struct_levels_to_print. |
|
3916 |
|
3917 * tree-const.cc (print_as_scalar, print_as_structure): Move here |
|
3918 from tree-expr.cc and make extern. |
|
3919 |
|
3920 * tree-expr.cc (print_as_structure): New function. |
|
3921 (print_constant): Use it. |
|
3922 |
|
3923 * tree-expr.cc (print_constant): New arg, print_padding. |
|
3924 (tree_simple_assignment_expression::eval): Use print_constant |
|
3925 instead of duplicating code here. |
|
3926 (tree_multi_assignment_expression::eval): Likewise. |
|
3927 |
|
3928 Thu Mar 30 13:24:11 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3929 |
|
3930 * Makefile.in (SOURCES): Add resource.cc. |
|
3931 * resource.cc: New file, extracted from timefns.cc. |
|
3932 (Fgetrusage): New function. |
|
3933 * timefns.cc (cputime): Delete (now implemented in a function file |
|
3934 using new getrusage function). |
|
3935 |
|
3936 Wed Mar 29 22:52:42 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3937 |
|
3938 * Makefile.in (SOURCES): Add strftime.c. |
|
3939 * strftime.c: New file, from sh-utils distribution. |
|
3940 |
|
3941 * timefns.cc (mk_tm_map, extract_tm, Ftime, Fgmtime, Flocaltime, |
|
3942 Fmktime, Fstrftime): New basic time functions. |
|
3943 (Fclock, Fdate): Delete (now implemented in function files using new |
|
3944 time functions). |
|
3945 |
|
3946 Tue Mar 28 17:51:51 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3947 |
|
3948 * file-io.cc (return_valid_file, do_printf, do_scanf, |
|
3949 fclose_internal, feof_internal, ferror_internal, fflush_internal, |
|
3950 fgets_internal, fopen_internal, fread_internal, freport_internal, |
|
3951 frewind_internal, fseek_internal, ftell_internal, |
|
3952 fwrite_internal): Declare static. |
|
3953 * file-io.h: Delete extern declarations for them. |
|
3954 |
|
3955 Fri Mar 24 09:52:50 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3956 |
|
3957 * pr-output.cc (pr_col_num_header): New function. |
|
3958 (compact_format): New file-scope variable. |
|
3959 (set_format_style): Handle loose and compact formats. |
|
3960 (octave_print_internal (ostream&, const ComplexMatrix&, int)): |
|
3961 Replace duplicate code with call to pr_col_num_header(). |
|
3962 (octave_print_internal (ostream&, const Matrix&, int): Likewise. |
|
3963 (octave_print_internal (ostream&, const Range&, int): Likewise. |
|
3964 |
|
3965 Tue Mar 21 08:44:48 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3966 |
|
3967 * mappers.cc (xgamma): Always use Slatec library function. |
|
3968 * (xlgamma): Likewise. |
|
3969 * Makefile.in (SOURCES): Don't include lgamma.c. |
|
3970 |
|
3971 Fri Mar 17 22:38:39 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3972 |
|
3973 * tc-rep.cc (TC_REP::new): Don't try to keep track of newlist_tail. |
|
3974 Explicitly initialize newlist to zero. |
|
3975 * tree-const.cc (tree_constant::operator new): Likewise. |
|
3976 |
|
3977 Fri Mar 10 12:40:24 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
3978 |
|
3979 * tree-cmd.cc (quit_loop_now): Declare inline. |
|
3980 (tree_for_command::do_for_loop_once): Split into two versions, one |
|
3981 for the general case and one for when the loop variable is a |
|
3982 simple identifier. |
|
3983 (DO_LOOP): New macro. Move tests outside of loop. |
|
3984 (tree_for_command::eval): Speed up by checking to see if loop |
|
3985 variable is a simple identifier and by using DO_LOOP. |
|
3986 |
|
3987 * tree-const.h: New union of rep and freeptr. The freeptr element |
|
3988 is used for our custom memory management functions. |
|
3989 |
|
3990 * tc-rep.h: Add freeptr element to anonymous union (for our custom |
|
3991 memory management functions). |
|
3992 |
|
3993 * tree-const.cc (newlist, newlist_grow_size, newlist_tail): New |
|
3994 static variables. |
|
3995 (tree_constant::operator new): Always define to allow more |
|
3996 efficient allocation of single tree_constants. |
|
3997 (tree_constant::operator delete): Likewise, handle deletion of the |
|
3998 memory we allocate. |
|
3999 |
|
4000 * tc-rep.cc (newlist, newlist_grow_size, newlist_tail): New static |
|
4001 variables. |
|
4002 (tree_constant::operator new): Always define to allow more |
|
4003 efficient allocation of single tree_constants. |
|
4004 (tree_constant::operator delete): Likewise, handle deletion of the |
|
4005 memory we allocate. |
|
4006 |
|
4007 Fri Mar 3 14:00:08 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
4008 |
|
4009 * error.cc (verror): Terminate output_buf with ends. |
|
4010 |
|
4011 * statdefs.h: Use C-style comment in first line instead of |
|
4012 C++-style comment. |
|
4013 |
|
4014 Mon Feb 27 10:11:18 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
4015 |
|
4016 * parse.y (maybe_convert_to_ans_assign): Only lookup ans once. |
|
4017 * variables.cc (bind_ans): New function. |
|
4018 * tree-expr.cc (tree_identifier::eval (int)): Use it here. |
|
4019 (tree_identifier::eval (int, int, const Octave_object&): And here. |
|
4020 |
|
4021 * tree-expr.cc (install_nargin_and_nargout): New function. |
|
4022 * tree-expr.h (tree_function::tree_function (tree_statement_list *, |
|
4023 symbol_table *, int, int)): Call it. |
|
4024 |
|
4025 * tree-expr.cc (tree_function::bind_nargin_and_nargout): New function. |
|
4026 (tree_function::eval): Call it insead of the one from variables.cc. |
|
4027 |
|
4028 * variables.cc (bind_nargin_and_nargout): #if 0 out. |
|
4029 |
|
4030 Sun Feb 26 00:17:06 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
4031 |
|
4032 * load-save.cc (Fload, Fsave): Free fname returned by tilde_expand(). |
|
4033 * dirfns.cc (Fls): Likewise. |
|
4034 |
|
4035 * tree-expr.cc (tree_multi_assignment_expression::eval (int, int, |
|
4036 const Octave_object&)): Call tree_return_list::operator () (Pix) |
|
4037 explicitly. |
|
4038 |
|
4039 * octave.cc (initialize_globals): Put TEXMF in the environment for |
|
4040 kpthsea. |
|
4041 |
|
4042 * Makefile.in (OCTAVE_LIBS): Use @LIBINFO@ and @LIBREADLINE@, |
|
4043 substituted by configure. Use kpathsea.a, not libkpathsea, so we |
|
4044 don't have to modify the kpathsea Makefile. |
|
4045 |
|
4046 Sat Feb 25 18:59:26 1995 John Eaton <jwe@schoch.che.utexas.edu> |
|
4047 |
|
4048 * pathsearch.cc: New file. |
|
4049 * pathsearch.h: New file. |
|
4050 * Makefile.in (INCLUDES): Include it in the list. |
|
4051 * dynamic-ld.cc, help.cc, utils.cc: Use it instead of repeating |
|
4052 identical code multiple times. |
|
4053 |
|
4054 * variables.cc (install_builtin_variables): Only DEFVAR |
|
4055 suppress_verbose_help_message if USE_GNU_INFO. |
|
4056 |
|
4057 * help.cc (Fhelp): Only handle -i if USE_GNU_INFO. |
|
4058 (additional_help_message): Only print message if USE_GNU_INFO. |
|
4059 (builtin_help): New function. |
|
4060 (help_from_info): New function. Print warning if not USE_GNU_INFO. |
|
4061 |
|
4062 See ChangeLog.1 in the top level directory for earlier changes. |