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