diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-02-04 11:25:37 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-02-05 18:06:13 +0100 |
commit | dc8474d9034d9281463bb69f7f7a922e3ea713ee (patch) | |
tree | c3b870ada88f7aaa48918c4eb8b5d865f2f82019 /vcal.h | |
parent | Work on propper memmory management for linked lists. (diff) | |
download | calp-dc8474d9034d9281463bb69f7f7a922e3ea713ee.tar.gz calp-dc8474d9034d9281463bb69f7f7a922e3ea713ee.tar.xz |
Normalize and improve INIT & FREE macros.
Diffstat (limited to 'vcal.h')
-rw-r--r-- | vcal.h | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -25,8 +25,8 @@ typedef struct { int param_count; } content_line; -int CONSTRUCTOR_DECL(content_line); -int CONSTRUCTOR_DECL(content_line, int keylen, int vallen); +INIT_F(content_line); +INIT_F(content_line, int keylen, int vallen); int RESOLVE(content_line) (content_line** orig, content_line* new); @@ -42,9 +42,9 @@ typedef struct s_vevent { TRIE(content_line) clines; } vevent; -int CONSTRUCTOR_DECL(vevent, char* filename); +INIT_F(vevent, char* filename); -int FREE_DECL(content_line); +FREE_F(content_line); int content_line_copy (content_line* dest, content_line* src); content_line* get_property (vevent* ev, char* key); @@ -59,7 +59,7 @@ typedef struct s_vcalendar { vevent** events; } vcalendar; -int CONSTRUCTOR_DECL(vcalendar); +INIT_F(vcalendar); int free_vcalendar (vcalendar* cal); /* |