]> mj.ucw.cz Git - umpf.git/blobdiff - brum.h
save headers
[umpf.git] / brum.h
diff --git a/brum.h b/brum.h
index 16e4b9e5acb8acb50c30eb74b9f9191b4d5f408e..4346527d2df0e5e7624ee4cdaf483c34a1a9db9f 100644 (file)
--- a/brum.h
+++ b/brum.h
@@ -70,7 +70,9 @@ struct tree* input_tree;
 void* xmalloc(size_t size);
 char* xstrdup(char* s);
 void __attribute__ ((noreturn)) die(char* msg, ...);
+void read_conf(char* filename);
 int line;
+FILE* conf;
 
 /* int.c */
 struct variable {
@@ -79,9 +81,21 @@ struct variable {
        struct variable* next;
 };
 
+struct hlist {
+       char* name;
+       char* value;
+       struct hlist* next;
+};
+
 struct variable** var_hash;
 
 void print_tree(struct tree* t, int ind);
 void interp(struct tree* t, struct variable** hash);
 struct variable** new_var_hash(void);
 void print_vars(struct variable** hash);
+void save_current_headers(struct variable** hash);
+
+/* ham.c */
+struct hlist* current_headers;
+struct hlist* make_hlist();
+void print_headers();