aboutsummaryrefslogtreecommitdiffstats
path: root/src/template-parser.h
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2015-04-18 17:17:37 -0300
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2015-04-18 17:17:37 -0300
commitde39a41da62c4b3820b4805ddb7c4970c36bc257 (patch)
tree33da0f360932be9c76dd79a05a9bceaaed5a0441 /src/template-parser.h
parentd3e1e90f0979621f741357484e5a8f9656ee4a22 (diff)
downloadblogc-de39a41da62c4b3820b4805ddb7c4970c36bc257.tar.gz
blogc-de39a41da62c4b3820b4805ddb7c4970c36bc257.tar.bz2
blogc-de39a41da62c4b3820b4805ddb7c4970c36bc257.zip
added loader, error handling and cli. tests needed
Diffstat (limited to 'src/template-parser.h')
-rw-r--r--src/template-parser.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/template-parser.h b/src/template-parser.h
index 1f43fe8..d95c87a 100644
--- a/src/template-parser.h
+++ b/src/template-parser.h
@@ -10,6 +10,7 @@
#define _TEMPLATE_PARSER_H
#include "utils/utils.h"
+#include "error.h"
typedef enum {
BLOGC_TEMPLATE_IF_STMT = 1,
@@ -25,7 +26,8 @@ typedef struct {
char *value;
} blogc_template_stmt_t;
-b_slist_t* blogc_template_parse(const char *src, size_t src_len);
+b_slist_t* blogc_template_parse(const char *src, size_t src_len,
+ blogc_error_t **err);
void blogc_template_free_stmts(b_slist_t *stmts);
#endif /* _TEMPLATE_GRAMMAR_H */