projects
/
tedtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use c99 instead of ansi due to support int64 in template. Add __LEVEL built-in variab...
[tedtools.git]
/
tmpl_scan.l
diff --git
a/tmpl_scan.l
b/tmpl_scan.l
index
81be52f
..
fdfec53
100644
(file)
--- a/
tmpl_scan.l
+++ b/
tmpl_scan.l
@@
-1,4
+1,7
@@
%{
+#include <stdlib.h>
+#include <limits.h>
+
#include <tlog.h>
#include <tmalloc.h>
#include <template.h>
@@
-97,7
+100,7
@@
DIGIT [0-9]
}
<xEXPR,xVAR>{DIGIT}+ {
- yylval.intval =
atoi(yytext
);
+ yylval.intval =
strtoll(yytext, NULL, 0
);
return INTEGER;
}