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