%{
+#include <stdlib.h>
+#include <limits.h>
+
#include <tlog.h>
#include <tmalloc.h>
#include <template.h>
}
<xEXPR,xVAR>{DIGIT}+ {
- yylval.intval = atoi(yytext);
+ yylval.intval = strtoll(yytext, NULL, 0);
return INTEGER;
}
lexContext = tmpl->templateContext;
+ yylineno=1;
yyrestart(in);
BEGIN INITIAL;
}