aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/lex.h
diff options
context:
space:
mode:
authorBryce McKinlay <mckinlay@redhat.com>2004-05-26 18:45:26 +0000
committerBryce McKinlay <bryce@gcc.gnu.org>2004-05-26 19:45:26 +0100
commitb9d861bc86c97e68ea474750bb33dfd10f72119d (patch)
tree83551097f3288d4fd1d2fd84346837d37b4dd7ba /gcc/java/lex.h
parente0885edbf5c198f300fec204b3688ecf5e6839ef (diff)
downloadgcc-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.h3
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