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