* lex.c (java_read_char): Check for EOF from getc first.
From-SVN: r39261
This commit is contained in:
parent
86e212125f
commit
97876d6690
2 changed files with 6 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue