Mercurial > hg > octave-max
changeset 3022:0e458bbb1859
[project @ 1997-06-03 23:08:04 by jwe]
author | jwe |
---|---|
date | Tue, 03 Jun 1997 23:08:34 +0000 |
parents | 18d64612e67a |
children | 0d37334d13ab |
files | src/ChangeLog src/variables.cc |
diffstat | 2 files changed, 16 insertions(+), 15 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ Tue Jun 3 16:47:34 1997 John W. Eaton <jwe@bevo.che.wisc.edu> + * variables.cc (symbol_out_of_date): Make it work again. + * parse.y (parse_and_execute): Move here from toplev.cc (default_eval_print_flag): Likewise. (safe_fclose): Likewise.
--- a/src/variables.cc +++ b/src/variables.cc @@ -489,25 +489,24 @@ { octave_value ans = sr->def (); - if (! Vignore_function_time_stamp && ans.is_defined ()) - { - octave_function *tmp = ans.function_value (true); + octave_function *tmp = ans.function_value (true); - if (tmp && tmp->is_system_fcn_file ()) - { - string ff = tmp->fcn_file_name (); + if (tmp) + { + string ff = tmp->fcn_file_name (); - if (! ff.empty ()) - { - time_t tp = tmp->time_parsed (); - - string fname = fcn_file_in_path (ff); + if (! (ff.empty () + || (Vignore_function_time_stamp + && tmp->is_system_fcn_file ()))) + { + time_t tp = tmp->time_parsed (); - int status = file_stat::is_newer (fname, tp); + string fname = fcn_file_in_path (ff); - if (status > 0) - retval = true; - } + int status = file_stat::is_newer (fname, tp); + + if (status > 0) + retval = true; } } }