aboutsummaryrefslogtreecommitdiff
path: root/vcal.c
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-02-05 17:53:13 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-02-05 18:16:19 +0100
commita19be8473c3060c10c76c85d633dc546eabd447a (patch)
treefea97d5207a7c0b5783efc979ebbf9317ccbaba7 /vcal.c
parentFix append. (diff)
downloadcalp-a19be8473c3060c10c76c85d633dc546eabd447a.tar.gz
calp-a19be8473c3060c10c76c85d633dc546eabd447a.tar.xz
Fix most memmory problems.
Diffstat (limited to 'vcal.c')
-rw-r--r--vcal.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/vcal.c b/vcal.c
index ba17338a..5ad35feb 100644
--- a/vcal.c
+++ b/vcal.c
@@ -23,6 +23,12 @@ INIT_F(vevent, char* filename) {
return 0;
}
+/*
+ * Resolves a collision in some form of structure (probably a hash-map
+ * or a trie). If dest is NULL just return new. Otherwise mutates dest
+ * to have the correct form, and returns it. Destroying new in the
+ * process.
+ */
content_line* RESOLVE(content_line)
(content_line* dest, content_line* new) {
@@ -99,6 +105,9 @@ FREE_F(vevent) {
return 0;
}
+/*
+ * TODO change this into PUSH(VCALENDAR) (vevent*) ?
+ */
int push_event(vcalendar* cal, vevent* ev) {
ev->calendar = cal;