From ebe5c7e428b57dca758b1b3a1d8b7d4b423b19a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Tue, 22 Jan 2019 11:42:58 +0100 Subject: Start using trie's instead of hash-maps. --- parse.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'parse.c') diff --git a/parse.c b/parse.c index a2ceae6a..83693e8c 100644 --- a/parse.c +++ b/parse.c @@ -26,6 +26,7 @@ int parse_file(FILE* f, vcalendar* cal) { int line = 0; + // TODO these are never freed. NEW(vevent, ev, /**/ 100); SNEW(content_line, cline, keylen, vallen); @@ -69,13 +70,11 @@ int parse_file(FILE* f, vcalendar* cal) { } /* At TRUE end of line */ - /* if (str.ptr + 1 > vallen) { vallen = str.ptr + 1; - // TODO this fails strbuf_realloc(&cline.val, vallen); } - */ + strbuf_copy(&cline.val, &str); strbuf_cap(&cline.val); -- cgit v1.2.3