Mercurial > hg > octave-lyh
diff src/pt-eval.h @ 8669:33783e94fb16
line number fixes and other evaluator tweaks
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 04 Feb 2009 13:28:06 -0500 |
parents | 73c4516fae10 |
children | 3c1762c7e787 |
line wrap: on
line diff
--- a/src/pt-eval.h +++ b/src/pt-eval.h @@ -41,16 +41,10 @@ typedef void (*decl_elt_init_fcn) (tree_decl_elt&); - tree_evaluator (bool in_function_or_script_body_arg = false) - : in_function_or_script_body (in_function_or_script_body_arg) { } + tree_evaluator (void) { } ~tree_evaluator (void) { } - void reset (void) - { - in_function_or_script_body = false; - } - void visit_anon_fcn_handle (tree_anon_fcn_handle&); void visit_argument_list (tree_argument_list&); @@ -152,9 +146,13 @@ static bool debug_mode; -private: + // TRUE means we are evaluating a function or script body. + static bool in_fcn_or_script_body; - bool in_function_or_script_body; + // TRUE means we are evaluating some kind of looping construct. + static bool in_loop_command; + +private: void do_decl_init_list (decl_elt_init_fcn fcn, tree_decl_init_list *init_list);