aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/blogc/template-parser.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/blogc/template-parser.h b/src/blogc/template-parser.h
index 948ec9b..d08ccd9 100644
--- a/src/blogc/template-parser.h
+++ b/src/blogc/template-parser.h
@@ -18,7 +18,7 @@
* template parsing. renderer does not need to care about it, for the sake of
* simplicity.
*
- * another note: technically this is not an AST, because there are no childs.
+ * another note: technically this is not an AST, because it is not a tree. duh!
*/
typedef enum {
BLOGC_TEMPLATE_NODE_IFDEF = 1,
@@ -47,6 +47,8 @@ typedef struct {
// 2 slots to store node data.
char *data[2];
+
+ bc_slist_t *childs;
} blogc_template_node_t;
bc_slist_t* blogc_template_parse(const char *src, size_t src_len,