lex.c (yylex): Recognize floating point constants with leading 0.

* lex.c (yylex): Recognize floating point constants with leading
	0.

From-SVN: r37593
This commit is contained in:
Tom Tromey 2000-11-20 22:32:40 +00:00 committed by Tom Tromey
parent 21bc13c936
commit 4e7842a01e
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2000-11-20 Tom Tromey <tromey@cygnus.com>
* lex.c (yylex): Recognize floating point constants with leading
0.
2000-11-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* java-tree.h (cyclic_inheritance_report): Constify.

View File

@ -1024,8 +1024,12 @@ java_lex (java_lval)
int seen_exponent = 0;
int fflag = 0; /* 1 for {f,F}, 0 for {d,D}. FP literal are
double unless specified. */
if (radix != 10)
/* It is ok if the radix is 8 because this just means we've
seen a leading `0'. However, radix==16 is invalid. */
if (radix == 16)
java_lex_error ("Can't express non-decimal FP literal", 0);
radix = 10;
for (;;)
{