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