Mercurial > hg > octave-kai
changeset 8697:b227213a70c3
parse.y (eval_string): use the one true evaluator
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sat, 07 Feb 2009 12:39:19 -0500 |
parents | 87cb8b2e4f14 |
children | 39666c970996 |
files | src/ChangeLog src/parse.y |
diffstat | 2 files changed, 5 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2009-02-07 John W. Eaton <jwe@octave.org> + + * parse.y (eval_string): Use the one true evaluator. + 2009-02-06 John W. Eaton <jwe@octave.org> * Makefile.in (INCLUDES): Include oct-hdf5.h in the list.
--- a/src/parse.y +++ b/src/parse.y @@ -3888,15 +3888,7 @@ retval = octave_value_list (); } else if (nargout == 0) - { - tree_evaluator evaluator; - - unwind_protect_ptr (current_evaluator); - - current_evaluator = &evaluator; - - command_list->accept (evaluator); - } + command_list->accept (*current_evaluator); else error ("eval: invalid use of statement list");