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