lex.c (java_read_unicode): Reset bs_count when finished with `\u' sequence.

* lex.c (java_read_unicode): Reset bs_count when finished with
	`\u' sequence.

From-SVN: r36703
This commit is contained in:
Tom Tromey 2000-10-03 19:10:44 +00:00 committed by Tom Tromey
parent 11908bbe42
commit 5beededc7e
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2000-09-27 Tom Tromey <tromey@cygnus.com>
* lex.c (java_read_unicode): Reset bs_count when finished with
`\u' sequence.
2000-10-01 Mark Mitchell <mark@codesourcery.com> 2000-10-01 Mark Mitchell <mark@codesourcery.com>
Convert to GC. Convert to GC.

View File

@ -432,6 +432,7 @@ java_read_unicode (lex, term_context, unicode_escape_p)
else else
java_lex_error ("Non hex digit in Unicode escape sequence", 0); java_lex_error ("Non hex digit in Unicode escape sequence", 0);
} }
lex->bs_count = 0;
*unicode_escape_p = 1; *unicode_escape_p = 1;
return (term_context return (term_context
? unicode : (java_lineterminator (c) ? '\n' : unicode)); ? unicode : (java_lineterminator (c) ? '\n' : unicode));