aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/lex.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@cygnus.com>2000-10-10 22:02:12 +0000
committerTom Tromey <tromey@gcc.gnu.org>2000-10-10 22:02:12 +0000
commit2e165c53deb61806019c4a72f006abaa1c2379b3 (patch)
tree47943869eedfa993a7aba6e2b6e0474e725d44bd /gcc/java/lex.h
parent67e570ea48ad148b9f2d6a4c27f372c4c7532768 (diff)
downloadgcc-2e165c53deb61806019c4a72f006abaa1c2379b3.zip
gcc-2e165c53deb61806019c4a72f006abaa1c2379b3.tar.gz
gcc-2e165c53deb61806019c4a72f006abaa1c2379b3.tar.bz2
lex.c (java_new_lexer): Initialize out_first and out_last fields.
* lex.c (java_new_lexer): Initialize out_first and out_last fields. * lex.h (java_lexer): Added out_buffer, out_first, out_last. From-SVN: r36830
Diffstat (limited to 'gcc/java/lex.h')
-rw-r--r--gcc/java/lex.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/java/lex.h b/gcc/java/lex.h
index 68cb1c0..71a030d 100644
--- a/gcc/java/lex.h
+++ b/gcc/java/lex.h
@@ -128,6 +128,20 @@ typedef struct java_lexer
/* Index of last valid character in buffer, plus one. -1 if no
valid characters in buffer. */
int last;
+
+ /* This is a buffer of characters already converted by iconv. We
+ use `char' here because we're assuming that iconv() converts to
+ big-endian UCS-2, and then we convert it ourselves. */
+ char out_buffer[1024];
+
+ /* Index of first valid output character. -1 if no valid
+ characters. */
+ int out_first;
+
+ /* Index of last valid output character, plus one. -1 if no valid
+ characters. */
+ int out_last;
+
#endif /* HAVE_ICONV */
} java_lexer;