aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser.h
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-11-02 23:45:37 +1000
committerGravatar axel <axel@liljencrantz.se>2006-11-02 23:45:37 +1000
commit6e24b26e2c9b6b2f1f886eb4d98470fc6c6319b8 (patch)
tree8d43e2562bcbac0f4dd689dc433dc5ca3422b90a /parser.h
parent7fb44d4d5fcdc78bd8b3b7cae1c2364e7ae51c35 (diff)
Fix the code for ignoring infinite recursion
darcs-hash:20061102134537-ac50b-2dddd06dd77c362caf44c9160acc29b76278b230.gz
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/parser.h b/parser.h
index d873a1fb..7bf6b886 100644
--- a/parser.h
+++ b/parser.h
@@ -47,7 +47,8 @@ typedef struct block
int type; /**< Type of block. Can be one of WHILE, FOR, IF and FUNCTION */
int skip; /**< Whether execution of the commands in this block should be skipped */
int tok_pos; /**< The start index of the block */
-
+ int had_command; /**< Set to non-zero once a command has been executed in this block */
+
/**
Status for the current loop block. Can be any of the values from the loop_status enum.
*/
@@ -210,7 +211,7 @@ int eval_args( const wchar_t *line,
array_list_t *output );
/**
- Sets the current error
+ Sets the current evaluation error. This function should only be used by libraries that are called by
\param ec The new error code
\param p The character offset at which the error occured