summaryrefslogtreecommitdiffstats
path: root/src/constexp.l
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2001-11-25 18:56:18 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2001-11-25 18:56:18 (GMT)
commit79959c79850830e90aa7e00e72d3718785e29214 (patch)
tree6643370adedf0cbaac88d674978bd44175ab1475 /src/constexp.l
parentb89fdced7a88c9222faa0d646923bd09fb1765f8 (diff)
downloadDoxygen-79959c79850830e90aa7e00e72d3718785e29214.zip
Doxygen-79959c79850830e90aa7e00e72d3718785e29214.tar.gz
Doxygen-79959c79850830e90aa7e00e72d3718785e29214.tar.bz2
Release-1.2.12-20011125
Diffstat (limited to 'src/constexp.l')
-rw-r--r--src/constexp.l6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/constexp.l b/src/constexp.l
index 92b3da4..a1bf69e 100644
--- a/src/constexp.l
+++ b/src/constexp.l
@@ -85,7 +85,9 @@ static int yyread(char *buf,int max_size)
[1-9][0-9]*[uUlL]* { g_strToken=yytext;
return TOK_DECIMALINT;
}
-(0x|0X)[0-9a-fA-F]+[uUlL]* { g_strToken=yytext; return TOK_HEXADECIMALINT; }
+(0x|0X)[0-9a-fA-F]+[uUlL]* { g_strToken=yytext+2;
+ return TOK_HEXADECIMALINT;
+ }
(([0-9]+\.[0-9]*)|([0-9]*\.[0-9]+))([eE]([\-\+])?[0-9]+)?([fFlL])? {
g_strToken=yytext; return TOK_FLOAT;
}
@@ -106,7 +108,7 @@ bool parseCppExpression(const char *fileName,int lineNr,const QCString &s)
g_inputPosition = 0;
cppExpYYrestart( cppExpYYin );
cppExpYYparse();
- //printf("Result: %ld\n",(long)resultValue);
+ //printf("Result: %ld\n",(long)g_resultValue);
return (long)g_resultValue!=0;
}