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