aboutsummaryrefslogtreecommitdiff
path: root/ctemplates.h
diff options
context:
space:
mode:
Diffstat (limited to 'ctemplates.h')
-rw-r--r--ctemplates.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ctemplates.h b/ctemplates.h
index 3dba429..48237b4 100644
--- a/ctemplates.h
+++ b/ctemplates.h
@@ -81,6 +81,7 @@ struct TMPL_light_string{
};
enum TMPL_vartype{
+ vartype_null = 0,
vartype_loop,
vartype_var
};
@@ -109,6 +110,8 @@ struct TMPL_varitem{
struct TMPL_tagnode{
enum TMPL_tagtype type;
struct TMPL_tagnode* next;
+ unsigned int line;
+ unsigned int character;
union{
/*Text*/
struct{
@@ -172,6 +175,8 @@ struct TMPL_token{
enum TMPL_tagtype type;//The type of token
size_t length;//Length of token, should always be end-start
struct TMPL_token* next;//The next token
+ unsigned int line;
+ unsigned int character;
}TMPL_token;
void TMPL_add_var_to_varlist(struct TMPL_varlist* vl, char* name, char* value);