Mercurial > 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 wrap: on
line diff
--- a/baum.c Fri Feb 22 14:47:47 2008 +0100 +++ b/baum.c Fri Feb 22 14:57:04 2008 +0100 @@ -17,7 +17,6 @@ #define VERSION "0.2" -int option_check = 0; int option_verbose = 0; struct Node* root = 0; @@ -178,7 +177,7 @@ /* if it goes more than one level down -> error */ if (indent - last_indent > 1) { fprintf(stderr, "error: Indention over more than one level. Only indent by one!\n"); - exit(50); + exit(5); } last_node->down = node; push(last_node); @@ -246,12 +245,9 @@ printf("\ baum --version print version information and exit\n\ baum --help print this output\n\ -baum [-v] -c <file> (verbosly) check file and return 1 if invalid\n\ baum [-v] <file> (verbosly) run file\n\ "); exit(0); - } else if (strcmp(argv[0], "-c") == 0) { - option_check = 1; } else if (strcmp(argv[0], "-v") == 0) { option_verbose = 1; /*