* lex.c (java_read_char): Check for EOF from getc first.

From-SVN: r39261
This commit is contained in:
Richard Earnshaw 2001-01-25 10:35:09 +00:00 committed by Richard Earnshaw
parent 86e212125f
commit 97876d6690
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2001-01-25 Richard Earnshaw <rearnsha@arm.com>
* lex.c (java_read_char): Check for EOF from getc first.
2001-01-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
* class.c (layout_class): Don't lay the superclass out if it's

View File

@ -447,10 +447,10 @@ java_read_char (lex)
int c, c1, c2;
c = getc (lex->finput);
if (c < 128)
return (unicode_t)c;
if (c == EOF)
return UEOF;
if (c < 128)
return (unicode_t)c;
else
{
if ((c & 0xe0) == 0xc0)