diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-01-22 11:42:58 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-01-22 11:42:58 +0100 |
commit | ebe5c7e428b57dca758b1b3a1d8b7d4b423b19a9 (patch) | |
tree | bf97a4ba3a05c24ae1ec176f42656ce1608ee8d1 /parse.c | |
parent | Add very simple err header. (diff) | |
download | calp-ebe5c7e428b57dca758b1b3a1d8b7d4b423b19a9.tar.gz calp-ebe5c7e428b57dca758b1b3a1d8b7d4b423b19a9.tar.xz |
Start using trie's instead of hash-maps.
Diffstat (limited to 'parse.c')
-rw-r--r-- | parse.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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); |