]> mj.ucw.cz Git - umpf.git/blobdiff - brum.c
save headers
[umpf.git] / brum.c
diff --git a/brum.c b/brum.c
index 5172d69b3229f84345bc79dec2b6eba4726787a7..171cb076ba8331587d8792090fc1967a19d88a01 100644 (file)
--- a/brum.c
+++ b/brum.c
@@ -2,10 +2,15 @@
 #include "brum.h"
 
 int
-main(void)
+main(int argc, char** argv)
 {
        int res;
 
+       if (argc < 2)
+               die("Usage: ./brum conf_file");
+
+       read_conf(argv[1]);
+
 //     yydebug=1;
        res = yyparse ();
 
@@ -15,6 +20,11 @@ main(void)
        print_tree(input_tree,0);
 
        var_hash = new_var_hash();
+
+       current_headers = make_hlist();
+//     print_headers(current_headers);
+
+       save_current_headers(var_hash);
        interp(input_tree, var_hash);
        
        print_vars(var_hash);