diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2018-02-22 00:55:21 +0100 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2018-02-22 00:55:21 +0100 |
commit | d2babc8715ffe76bc9cc3e6c8081d89087892a6e (patch) | |
tree | 793cdeb5e3c3d8cf951db32a4ce155fb35a8830d | |
parent | 4cf5dabd31c1c0bba54b36790d4068c39e2ce7d9 (diff) | |
download | blogc-d2babc8715ffe76bc9cc3e6c8081d89087892a6e.tar.gz blogc-d2babc8715ffe76bc9cc3e6c8081d89087892a6e.tar.bz2 blogc-d2babc8715ffe76bc9cc3e6c8081d89087892a6e.zip |
blogc: template: fixed comment
-rw-r--r-- | src/blogc/template-parser.h | 4 |
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, |