From 82c63a1f2422c3f4b1599bcb889e3ed1fc4f6ed0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Sun, 3 Feb 2019 23:35:27 +0100 Subject: Add linked list generic type. --- vcal.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'vcal.h') diff --git a/vcal.h b/vcal.h index 350871b7..91eed471 100644 --- a/vcal.h +++ b/vcal.h @@ -5,6 +5,10 @@ #include "strbuf.h" +#define TYPE strbuf +#include "linked_list.h" +#undef TYPE + typedef struct { strbuf key; strbuf value; @@ -15,9 +19,7 @@ typedef struct { typedef struct { strbuf key; - strbuf val; - strbuf* aux_values; - int value_count; + LLIST(strbuf) vals; parameter* params; int param_count; -- cgit v1.2.3