Mercurial > baum
comparison baum.c @ 38:ff01f0f076e4
option_verbose is now global; stuff about warning when (expected) nodes are not there
author | meillo@marmaro.de |
---|---|
date | Sat, 01 Mar 2008 20:04:08 +0100 |
parents | 29172b6e802a |
children | 5c13e29bc6fd |
comparison
equal
deleted
inserted
replaced
37:29172b6e802a | 38:ff01f0f076e4 |
---|---|
14 #include "baum.h" | 14 #include "baum.h" |
15 #include "actions.h" | 15 #include "actions.h" |
16 | 16 |
17 #define VERSION "0.3" | 17 #define VERSION "0.3" |
18 | 18 |
19 | |
20 int option_verbose = 0; | |
21 | 19 |
22 struct Node* root = 0; | 20 struct Node* root = 0; |
23 struct Stackitem* stack = NULL; | 21 struct Stackitem* stack = NULL; |
24 | 22 |
25 | 23 |
222 | 220 |
223 | 221 |
224 /* main */ | 222 /* main */ |
225 int main(int argc, char* argv[]) { | 223 int main(int argc, char* argv[]) { |
226 unsigned char shell_return = 0; | 224 unsigned char shell_return = 0; |
225 | |
226 option_verbose = 0; | |
227 | 227 |
228 while (--argc > 0 && (*++argv)[0] == '-') { | 228 while (--argc > 0 && (*++argv)[0] == '-') { |
229 if (strcmp(argv[0], "--version") == 0) { | 229 if (strcmp(argv[0], "--version") == 0) { |
230 printf("\ | 230 printf("\ |
231 baum %s\n\ | 231 baum %s\n\ |