aboutsummaryrefslogtreecommitdiffhomepage
path: root/parser.h
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2005-12-04 02:43:56 +1000
committerGravatar axel <axel@liljencrantz.se>2005-12-04 02:43:56 +1000
commit9b4c34aa4c95a8d2c6703b7c04443f82f086d359 (patch)
tree5ce8bb90b506499cf511c1d84d356d91b6131b7b /parser.h
parente2ebc0e443d773fc0bc2cb0958bc3cf721717969 (diff)
Use csh-style error rules with wildcards, i.e. if no matches are found, the command is not executed
darcs-hash:20051203164356-ac50b-1b1818db2698eab9ae765a5af1e259bce3ab37e7.gz
Diffstat (limited to 'parser.h')
-rw-r--r--parser.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/parser.h b/parser.h
index cb617047..fc4fbfe7 100644
--- a/parser.h
+++ b/parser.h
@@ -125,12 +125,34 @@ enum while_status
*/
enum parser_error
{
+ /**
+ No error
+ */
NO_ERR=0,
+ /**
+ An error in the syntax
+ */
SYNTAX_ERROR,
+ /**
+ Error occured while evaluating commands
+ */
EVAL_ERROR,
+ /**
+ Out of memory error
+ */
OOM,
+ /**
+ Stack inconsistency error
+ */
STACK_ERROR,
- SUBSHELL_ERROR
+ /**
+ Error while evaluating subshell
+ */
+ SUBSHELL_ERROR,
+ /**
+ No files matching wildcards where found
+ */
+ WILDCARD_ERROR
}
;