diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-02-04 18:23:51 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-02-05 18:16:17 +0100 |
commit | 14b33ae9c00f74a24a00aaece88b22af0955379e (patch) | |
tree | cee997634ecb0977e8f63fadfd6d00fdfdf89439 /vcal.h | |
parent | Normalize and improve INIT & FREE macros. (diff) | |
download | calp-14b33ae9c00f74a24a00aaece88b22af0955379e.tar.gz calp-14b33ae9c00f74a24a00aaece88b22af0955379e.tar.xz |
Fix most memmory errors.
Diffstat (limited to '')
-rw-r--r-- | vcal.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -28,8 +28,13 @@ typedef struct { INIT_F(content_line); INIT_F(content_line, int keylen, int vallen); -int RESOLVE(content_line) - (content_line** orig, content_line* new); +/* + * This takes two content lines, and return a content line that is the + * merge of the two. + * The function also cleans up the unused memmory between the two. + */ +content_line* RESOLVE(content_line) + (content_line* dest, content_line* new); #define TYPE content_line // #include "hash.h" |