diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-02-05 17:53:13 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-02-05 18:16:19 +0100 |
commit | a19be8473c3060c10c76c85d633dc546eabd447a (patch) | |
tree | fea97d5207a7c0b5783efc979ebbf9317ccbaba7 /vcal.c | |
parent | Fix append. (diff) | |
download | calp-a19be8473c3060c10c76c85d633dc546eabd447a.tar.gz calp-a19be8473c3060c10c76c85d633dc546eabd447a.tar.xz |
Fix most memmory problems.
Diffstat (limited to 'vcal.c')
-rw-r--r-- | vcal.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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; |