diff options
Diffstat (limited to 'vcal.h')
-rw-r--r-- | vcal.h | 18 |
1 files changed, 7 insertions, 11 deletions
@@ -10,17 +10,13 @@ // #include "trie.h" #undef TYPE -typedef struct { - strbuf key; - strbuf val; -} key_val; - -INIT_F(key_val); -FREE_F(key_val); -FMT_F(key_val); -int DEEP_COPY(key_val) (key_val* dest, key_val* src); +#define T strbuf +#define V strbuf +#include "pair.h" +#undef T +#undef V -#define TYPE key_val +#define TYPE PAIR(strbuf, strbuf) #include "linked_list.h" #undef TYPE @@ -29,7 +25,7 @@ typedef struct { LLIST(strbuf) vals; - LLIST(key_val) params; + LLIST(PAIR(strbuf, strbuf)) params; } content_line; INIT_F(content_line); |