diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-05-17 04:41:31 -0300 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2015-05-17 04:41:31 -0300 |
commit | 365a0c8f2b46b2afa0c43d6a286fa07b86bd1520 (patch) | |
tree | 9e5b469463b92e7769754a34594ee3700ad0fec8 /src/template-parser.h | |
parent | dbfd651c575c17f8b891bd789a60d11ca954751e (diff) | |
download | blogc-365a0c8f2b46b2afa0c43d6a286fa07b86bd1520.tar.gz blogc-365a0c8f2b46b2afa0c43d6a286fa07b86bd1520.tar.bz2 blogc-365a0c8f2b46b2afa0c43d6a286fa07b86bd1520.zip |
template-parser: added real if statements. ignored by renderer for now
Diffstat (limited to 'src/template-parser.h')
-rw-r--r-- | src/template-parser.h | 3 |
1 files changed, 3 insertions, 0 deletions
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, |