From 365a0c8f2b46b2afa0c43d6a286fa07b86bd1520 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Sun, 17 May 2015 04:41:31 -0300 Subject: template-parser: added real if statements. ignored by renderer for now --- src/template-parser.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/template-parser.h') diff --git a/src/template-parser.h b/src/template-parser.h index 88c9ccf..b9213e2 100644 --- a/src/template-parser.h +++ b/src/template-parser.h @@ -15,6 +15,7 @@ typedef enum { BLOGC_TEMPLATE_IFDEF_STMT = 1, BLOGC_TEMPLATE_IFNDEF_STMT, + BLOGC_TEMPLATE_IF_STMT, BLOGC_TEMPLATE_ENDIF_STMT, BLOGC_TEMPLATE_BLOCK_STMT, BLOGC_TEMPLATE_ENDBLOCK_STMT, @@ -25,6 +26,8 @@ typedef enum { typedef struct { blogc_template_stmt_type_t type; char *value; + char *value2; + char *op; } blogc_template_stmt_t; b_slist_t* blogc_template_parse(const char *src, size_t src_len, -- cgit v1.2.3-18-g5258