diff options
author | Hugo Hörnquist <hugo@hornquist.se> | 2019-03-08 10:05:35 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@hornquist.se> | 2019-03-08 10:05:35 +0100 |
commit | 0dff6c5d179aeb9e1ba3fc5f4dd679987e342036 (patch) | |
tree | c43ef6a0ef0fe6f684928a226a0f439975b20e01 /vcal.h | |
parent | Work on recuring event stream. (diff) | |
download | calp-0dff6c5d179aeb9e1ba3fc5f4dd679987e342036.tar.gz calp-0dff6c5d179aeb9e1ba3fc5f4dd679987e342036.tar.xz |
Remove C vector library.
Diffstat (limited to 'vcal.h')
-rw-r--r-- | vcal.h | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -19,7 +19,7 @@ * A top level value, along with a list of kv pairs for all its * possible parameters. * param_set: - * A parameter key, along with a list of all its values. + * A parameter key, along with a list of all its values. */ #define param_set LLIST(strbuf) @@ -63,19 +63,20 @@ typedef struct s_vcomponent vcomponent; #define TYPE vcomponent -#include "vector.h" +// #include "vector.h" +#include "linked_list.h" #undef TYPE struct s_vcomponent { char* type; vcomponent* parent; TRIE(content_line) clines; - VECT(vcomponent) components; + LLIST(vcomponent) components; SCM scm; }; -#define FCHILD(v) GET(VECT(vcomponent))(&(v)->components, 0) +#define FCHILD(v) FIRST_V(&(v)->components) INIT_F(vcomponent); INIT_F(vcomponent, const char* type); |