Mercurial > hg > octave-lyh
diff src/pt-eval.h @ 11304:c9fefa096ce2
echo commands in scripts
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 01 Dec 2010 15:26:01 -0500 |
parents | cb0883127251 |
children | fd0a3ac60b0e |
line wrap: on
line diff
--- a/src/pt-eval.h +++ b/src/pt-eval.h @@ -147,8 +147,16 @@ static bool debug_mode; - // TRUE means we are evaluating a function or script body. - static bool in_fcn_or_script_body; + // Possible types of evaluation contexts. + enum stmt_list_type + { + function, // function body + script, // script file + other // command-line input or eval string + }; + + // The context for the current evaluation. + static stmt_list_type statement_context; // TRUE means we are evaluating some kind of looping construct. static bool in_loop_command;