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