baum
diff baum.c @ 31:4e60d96265f0
removed -c option completely; updated man page; new error code 5
author | meillo@marmaro.de |
---|---|
date | Fri, 22 Feb 2008 14:57:04 +0100 |
parents | cd979b979610 |
children | 2e564bf8599c |
line diff
1.1 --- a/baum.c Fri Feb 22 14:47:47 2008 +0100 1.2 +++ b/baum.c Fri Feb 22 14:57:04 2008 +0100 1.3 @@ -17,7 +17,6 @@ 1.4 #define VERSION "0.2" 1.5 1.6 1.7 -int option_check = 0; 1.8 int option_verbose = 0; 1.9 1.10 struct Node* root = 0; 1.11 @@ -178,7 +177,7 @@ 1.12 /* if it goes more than one level down -> error */ 1.13 if (indent - last_indent > 1) { 1.14 fprintf(stderr, "error: Indention over more than one level. Only indent by one!\n"); 1.15 - exit(50); 1.16 + exit(5); 1.17 } 1.18 last_node->down = node; 1.19 push(last_node); 1.20 @@ -246,12 +245,9 @@ 1.21 printf("\ 1.22 baum --version print version information and exit\n\ 1.23 baum --help print this output\n\ 1.24 -baum [-v] -c <file> (verbosly) check file and return 1 if invalid\n\ 1.25 baum [-v] <file> (verbosly) run file\n\ 1.26 "); 1.27 exit(0); 1.28 - } else if (strcmp(argv[0], "-c") == 0) { 1.29 - option_check = 1; 1.30 } else if (strcmp(argv[0], "-v") == 0) { 1.31 option_verbose = 1; 1.32 /*