diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ctemplates.c | 1 | ||||
| -rw-r--r-- | src/ctemplates.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/ctemplates.c b/src/ctemplates.c index b8d9931..8138f7c 100644 --- a/src/ctemplates.c +++ b/src/ctemplates.c @@ -456,6 +456,7 @@ TMPL_tokenize(const char* tmplstr, size_t m_strlen){ newnode = scan_tag(textcursor,m_strlen,&newlength); newnode->type = ttype; } + newnode->last = tokencursor; tokencursor->next = newnode; textcursor += newlength; m_strlen -= newlength; diff --git a/src/ctemplates.h b/src/ctemplates.h index 1df0f43..eafabac 100644 --- a/src/ctemplates.h +++ b/src/ctemplates.h @@ -175,6 +175,7 @@ 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 + struct TMPL_token* last;//The last token unsigned int line;// Not used currently unsigned int character;// Not used currently }TMPL_token; |
