aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-02-05 17:51:33 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-02-05 18:16:19 +0100
commit7cbfe2fa7507296e01b442df382c926f88e4d9a0 (patch)
treedb50e0cf54c4526c663f1d77fe56d6ba3f69fdd2 /main.c
parentImprove templating macros. (diff)
downloadcalp-7cbfe2fa7507296e01b442df382c926f88e4d9a0.tar.gz
calp-7cbfe2fa7507296e01b442df382c926f88e4d9a0.tar.xz
Fix up GC a tiny bit.
Diffstat (limited to '')
-rw-r--r--main.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/main.c b/main.c
index a669f290..87be26ff 100644
--- a/main.c
+++ b/main.c
@@ -62,12 +62,15 @@ int main (int argc, char* argv[argc]) {
}
free_vcalendar(&cal);
- for (int i = 0; i < cline_ptr; i++) {
- if (clines[i] != NULL) {
+ for (int i = 0; i < gc_ptr; i++) {
+ if (gc_vect[i] != NULL) {
// printf("clines[%i] : [%s] := [%s]\n", i, clines[i]->key.mem, clines[i]->val.mem);
- printf("clines[%i] : [%s] := [%s]\n", i, clines[i]->key.mem, clines[i]->vals.head->after->value->mem);
+ // printf("gc_vect[%i] : [%s] := [%s]\n", i, gc_vect[i]->key.mem, gc_vect[i]->vals.head->after->value->mem);
+ printf("gc_vect[%i] : [%s] := [%s]\n", i,
+ ((content_line*) gc_vect[i])->key.mem,
+ ((content_line*) gc_vect[i])->vals.head->after->value->mem);
}
}
- free(clines);
+ free(gc_vect);
}