diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-02-26 16:15:59 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-02-26 16:15:59 +0100 |
commit | 951697aab4fa682cc2c55d399562278ad40da407 (patch) | |
tree | f6045449cbad0b78f23d6d37b6386cfd27a676ba | |
parent | Fix DEEP_COPY(TRIE(T)). (diff) | |
download | calp-951697aab4fa682cc2c55d399562278ad40da407.tar.gz calp-951697aab4fa682cc2c55d399562278ad40da407.tar.xz |
Minor cleanup.
Diffstat (limited to '')
-rw-r--r-- | main.c | 14 | ||||
-rw-r--r-- | parse.c | 2 |
2 files changed, 1 insertions, 15 deletions
@@ -9,11 +9,6 @@ #include "graphs.h" #include "err.h" -#define TYPE content_line -// #include "hash.inc" -#include "trie.inc.h" -#undef TYPE - typedef struct { int argc; char** argv; @@ -58,15 +53,6 @@ int main (int argc, char** argv) { for (size_t j = 0; j < cal->components.length; j++) { vcomponent* ev = GET(VECT(vcomponent))(&cal->components, j); - LLIST(strbuf)* keys = KEYS(TRIE(content_line))(&ev->clines); - FOR(LLIST, strbuf, k, keys) { - char* mem = k->mem; - char buf[10000]; - buf[0] = '\0'; - FMT(content_line)(GET(TRIE(content_line))(&ev->clines, mem), buf); - printf("%s := %s\n", mem, buf); - } - if (strcmp(ev->type, "VEVENT") != 0) continue; printf("%3lu : %3lu | %s | %s\n", @@ -82,7 +82,7 @@ int parse_file(char* filename, FILE* f, vcomponent* root) { TRANSFER(s, &ctx.str); NEW(param_set, ps); - PUSH(LLIST(strbuf))(ps, s); + PUSH(param_set)(ps, s); PUSH(TRIE(param_set))(CLINE_CUR_PARAMS(&cline), param_key.mem, ps); strbuf_soft_reset (¶m_key); |