diff options
author | Bryce McKinlay <mckinlay@redhat.com> | 2004-05-26 18:45:26 +0000 |
---|---|---|
committer | Bryce McKinlay <bryce@gcc.gnu.org> | 2004-05-26 19:45:26 +0100 |
commit | b9d861bc86c97e68ea474750bb33dfd10f72119d (patch) | |
tree | 83551097f3288d4fd1d2fd84346837d37b4dd7ba /gcc/java/lex.h | |
parent | e0885edbf5c198f300fec204b3688ecf5e6839ef (diff) | |
download | gcc-b9d861bc86c97e68ea474750bb33dfd10f72119d.zip gcc-b9d861bc86c97e68ea474750bb33dfd10f72119d.tar.gz gcc-b9d861bc86c97e68ea474750bb33dfd10f72119d.tar.bz2 |
lex.c (java_new_lexer): Set 'encoding'.
* lex.c (java_new_lexer): Set 'encoding'.
(java_read_char): Improve error message for unrecognized characters.
* lex.h (struct java_lexer): New field 'encoding'.
From-SVN: r82292
Diffstat (limited to 'gcc/java/lex.h')
-rw-r--r-- | gcc/java/lex.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/java/lex.h b/gcc/java/lex.h index c339cc1..213a80f 100644 --- a/gcc/java/lex.h +++ b/gcc/java/lex.h @@ -116,6 +116,9 @@ struct java_lexer /* If nonzero, we've hit EOF. Used only by java_get_unicode(). */ int hit_eof : 1; + + /* Name of the character encoding we're using. */ + const char *encoding; #ifdef HAVE_ICONV /* Nonzero if we've read any bytes. We only recognize the |