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