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