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 diff
     1.1 --- a/actions.c	Sun Mar 02 16:17:18 2008 +0100
     1.2 +++ b/actions.c	Sun Mar 02 16:26:06 2008 +0100
     1.3 @@ -115,7 +115,7 @@
     1.4  
     1.5  	if (node->down == NULL || node->down->right == NULL) {
     1.6  		fprintf(stderr, "error: while requires two sons");
     1.7 -		exit(1); /* FIXME other error code */
     1.8 +		exit(7);
     1.9  	}
    1.10  
    1.11  	return1 = action(node->down);
    1.12 @@ -145,7 +145,7 @@
    1.13  unsigned char action_while(struct Node* node) {
    1.14  	if (node->down == NULL || node->down->right == NULL) {
    1.15  		fprintf(stderr, "error: while requires two sons");
    1.16 -		exit(1); /* FIXME other error code */
    1.17 +		exit(7);
    1.18  	}
    1.19  	while (action(node->down)) {
    1.20  		action(node->down->right);