]> mj.ucw.cz Git - umpf.git/blobdiff - brum.h
use clist for headers
[umpf.git] / brum.h
diff --git a/brum.h b/brum.h
index 2a5f939cc730d612c1da1c03c707d6c4391a36e8..95e8f16a5a0fa36609d21d708de2fbde3a2dcbfe 100644 (file)
--- a/brum.h
+++ b/brum.h
@@ -1,3 +1,5 @@
+#include "lists.h"
+
 /* cond.h */
 int yylex (void);
 void yyerror (char const *);
@@ -83,13 +85,13 @@ struct variable {
 };
 
 struct hlist {
+       struct node car;
        char* name;
        char* value;
-       struct hlist* next;
 };
 
 struct email {
-       struct hlist* headers;
+       struct list* headers;
 };
 
 struct action {
@@ -108,7 +110,7 @@ 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();
+struct list* current_headers;
+struct list* make_hlist(void);
+void print_headers(struct list* l);
 void do_action(struct action* a);