Commit 97876d66 by Richard Earnshaw Committed by Richard Earnshaw

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

From-SVN: r39261
parent 86e21212
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> 2001-01-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
* class.c (layout_class): Don't lay the superclass out if it's * class.c (layout_class): Don't lay the superclass out if it's
......
...@@ -447,10 +447,10 @@ java_read_char (lex) ...@@ -447,10 +447,10 @@ java_read_char (lex)
int c, c1, c2; int c, c1, c2;
c = getc (lex->finput); c = getc (lex->finput);
if (c < 128)
return (unicode_t)c;
if (c == EOF) if (c == EOF)
return UEOF; return UEOF;
if (c < 128)
return (unicode_t)c;
else else
{ {
if ((c & 0xe0) == 0xc0) if ((c & 0xe0) == 0xc0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment