* lex.c (yylex): Accept 'f' in mantissa of hex float constant.

From-SVN: r30285
This commit is contained in:
Stephen L Moshier 1999-10-31 04:44:09 +00:00 committed by Jeff Law
parent 2949a9b6d7
commit 5630b4635d
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Sat Oct 30 22:42:50 1999 Stephen L Moshier <moshier@mediaone.net>
* lex.c (yylex): Accept 'f' in mantissa of hex float constant.
1999-10-30 Mark Mitchell <mark@codesourcery.com>
* decl.c (pop_cp_function_context): Don't call free on a NULL

View File

@ -3850,7 +3850,9 @@ real_yylex ()
|| (ISALNUM (c) && c != 'l' && c != 'L'
&& c != 'u' && c != 'U'
&& c != 'i' && c != 'I' && c != 'j' && c != 'J'
&& (floatflag == NOT_FLOAT || ((c != 'f') && (c != 'F')))))
&& (floatflag == NOT_FLOAT
|| ((base != 16) && (c != 'f') && (c != 'F'))
|| base == 16)))
{
if (c == '.')
{