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