Mercurial > hg > octave-lyh
comparison 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 |
comparison
equal
deleted
inserted
replaced
11303:5d1877a86180 | 11304:c9fefa096ce2 |
---|---|
145 // The number of the stack frame we are currently debugging. | 145 // The number of the stack frame we are currently debugging. |
146 static size_t current_frame; | 146 static size_t current_frame; |
147 | 147 |
148 static bool debug_mode; | 148 static bool debug_mode; |
149 | 149 |
150 // TRUE means we are evaluating a function or script body. | 150 // Possible types of evaluation contexts. |
151 static bool in_fcn_or_script_body; | 151 enum stmt_list_type |
152 { | |
153 function, // function body | |
154 script, // script file | |
155 other // command-line input or eval string | |
156 }; | |
157 | |
158 // The context for the current evaluation. | |
159 static stmt_list_type statement_context; | |
152 | 160 |
153 // TRUE means we are evaluating some kind of looping construct. | 161 // TRUE means we are evaluating some kind of looping construct. |
154 static bool in_loop_command; | 162 static bool in_loop_command; |
155 | 163 |
156 private: | 164 private: |