aboutsummaryrefslogtreecommitdiff
path: root/vcal.h
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@hornquist.se>2019-03-08 10:05:35 +0100
committerHugo Hörnquist <hugo@hornquist.se>2019-03-08 10:05:35 +0100
commit0dff6c5d179aeb9e1ba3fc5f4dd679987e342036 (patch)
treec43ef6a0ef0fe6f684928a226a0f439975b20e01 /vcal.h
parentWork on recuring event stream. (diff)
downloadcalp-0dff6c5d179aeb9e1ba3fc5f4dd679987e342036.tar.gz
calp-0dff6c5d179aeb9e1ba3fc5f4dd679987e342036.tar.xz
Remove C vector library.
Diffstat (limited to 'vcal.h')
-rw-r--r--vcal.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/vcal.h b/vcal.h
index 451d4463..798a00a1 100644
--- a/vcal.h
+++ b/vcal.h
@@ -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);