Mercurial > baum
diff actions.c @ 52:201b4603671a
documented "if" and "while" in the man page; new error code 7
author | meillo@marmaro.de |
---|---|
date | Sun, 02 Mar 2008 16:26:06 +0100 |
parents | 7d7abe88e71b |
children | 036779d5da75 |
line wrap: on
line diff
--- a/actions.c Sun Mar 02 16:17:18 2008 +0100 +++ b/actions.c Sun Mar 02 16:26:06 2008 +0100 @@ -115,7 +115,7 @@ if (node->down == NULL || node->down->right == NULL) { fprintf(stderr, "error: while requires two sons"); - exit(1); /* FIXME other error code */ + exit(7); } return1 = action(node->down); @@ -145,7 +145,7 @@ unsigned char action_while(struct Node* node) { if (node->down == NULL || node->down->right == NULL) { fprintf(stderr, "error: while requires two sons"); - exit(1); /* FIXME other error code */ + exit(7); } while (action(node->down)) { action(node->down->right);