aboutsummaryrefslogtreecommitdiff
path: root/vcal.h
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2019-02-04 11:25:37 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2019-02-05 18:06:13 +0100
commitdc8474d9034d9281463bb69f7f7a922e3ea713ee (patch)
treec3b870ada88f7aaa48918c4eb8b5d865f2f82019 /vcal.h
parentWork on propper memmory management for linked lists. (diff)
downloadcalp-dc8474d9034d9281463bb69f7f7a922e3ea713ee.tar.gz
calp-dc8474d9034d9281463bb69f7f7a922e3ea713ee.tar.xz
Normalize and improve INIT & FREE macros.
Diffstat (limited to 'vcal.h')
-rw-r--r--vcal.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/vcal.h b/vcal.h
index a5144992..03d04805 100644
--- a/vcal.h
+++ b/vcal.h
@@ -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);
/*