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