diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-02-03 21:35:13 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2019-02-03 21:35:13 +0100 |
commit | 7b22939c20afa4f4a08c13a25d71f2720f0b6a29 (patch) | |
tree | cca1ec10d242fcaca03104c0fc86656223d1bdb9 /vcal.h | |
parent | Update gitignore to contain parse and *.x. (diff) | |
download | calp-7b22939c20afa4f4a08c13a25d71f2720f0b6a29.tar.gz calp-7b22939c20afa4f4a08c13a25d71f2720f0b6a29.tar.xz |
Loads of memmory fixes, among other.
Diffstat (limited to 'vcal.h')
-rw-r--r-- | vcal.h | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -14,8 +14,8 @@ typedef struct { typedef struct { strbuf key; - strbuf val; + strbuf val; strbuf* aux_values; int value_count; @@ -33,10 +33,11 @@ int CONSTRUCTOR_DECL(content_line, int keylen, int vallen); typedef struct s_vevent { char* filename; + struct s_vcalendar* calendar; TRIE(content_line) clines; } vevent; -int CONSTRUCTOR_DECL(vevent); +int CONSTRUCTOR_DECL(vevent, char* filename); int FREE_DECL(content_line); int content_line_copy (content_line* dest, content_line* src); @@ -47,7 +48,7 @@ int add_content_line (vevent* ev, content_line* c); int free_vevent(vevent* ev); -typedef struct { +typedef struct s_vcalendar { size_t n_events; size_t alloc; vevent** events; @@ -62,4 +63,7 @@ int free_vcalendar (vcalendar* cal); */ int push_event(vcalendar* cal, vevent* ev); +extern content_line** clines; +extern int cline_ptr; + #endif /* VCAL_H */ |