From dbfd651c575c17f8b891bd789a60d11ca954751e Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Sun, 17 May 2015 01:30:35 -0300 Subject: template-parser: if -> ifdef, if not -> ifndef --- src/renderer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/renderer.c') 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; -- cgit v1.2.3-18-g5258