diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-05-17 01:30:35 -0300 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-05-17 01:30:35 -0300 |
commit | dbfd651c575c17f8b891bd789a60d11ca954751e (patch) | |
tree | 36bfd8fb47c0726cbd538effefc2cc2da3fc8e43 /src/renderer.c | |
parent | f7a4ecf2add403c8b078658406fcfed5486fdd2c (diff) | |
download | blogc-dbfd651c575c17f8b891bd789a60d11ca954751e.tar.gz blogc-dbfd651c575c17f8b891bd789a60d11ca954751e.tar.bz2 blogc-dbfd651c575c17f8b891bd789a60d11ca954751e.zip |
template-parser: if -> ifdef, if not -> ifndef
Diffstat (limited to 'src/renderer.c')
-rw-r--r-- | src/renderer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/renderer.c b/src/renderer.c index c73244b..7a2fb77 100644 --- a/src/renderer.c +++ b/src/renderer.c @@ -184,10 +184,10 @@ blogc_render(b_slist_t *tmpl, b_slist_t *sources, b_trie_t *config, bool listing } break; - case BLOGC_TEMPLATE_IF_NOT_STMT: + case BLOGC_TEMPLATE_IFNDEF_STMT: if_not = true; - case BLOGC_TEMPLATE_IF_STMT: + case BLOGC_TEMPLATE_IFDEF_STMT: defined = false; if (stmt->value != NULL) { config_var = NULL; @@ -221,8 +221,8 @@ blogc_render(b_slist_t *tmpl, b_slist_t *sources, b_trie_t *config, bool listing while (1) { tmp = tmp->next; stmt = tmp->data; - if ((stmt->type == BLOGC_TEMPLATE_IF_STMT) || - (stmt->type == BLOGC_TEMPLATE_IF_NOT_STMT)) + if ((stmt->type == BLOGC_TEMPLATE_IFDEF_STMT) || + (stmt->type == BLOGC_TEMPLATE_IFNDEF_STMT)) { if_count++; continue; |