Fix the code for ignoring infinite recursion

darcs-hash:20061102134537-ac50b-2dddd06dd77c362caf44c9160acc29b76278b230.gz
This commit is contained in:
axel
2006-11-02 23:45:37 +10:00
parent 7fb44d4d5f
commit 6e24b26e2c
2 changed files with 33 additions and 8 deletions

View File

@@ -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