aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/lex.h
diff options
context:
space:
mode:
authorPer Bothner <bothner@gcc.gnu.org>1999-03-13 11:21:38 -0800
committerPer Bothner <bothner@gcc.gnu.org>1999-03-13 11:21:38 -0800
commit45ec036eed0e74556fa7c8362469405d6f752898 (patch)
treeae957d164b86f4fe6639f911c2afd8096aa25bf0 /gcc/java/lex.h
parentb452ec852d0c8200297e6fce7205f3090aa8a01c (diff)
downloadgcc-45ec036eed0e74556fa7c8362469405d6f752898.zip
gcc-45ec036eed0e74556fa7c8362469405d6f752898.tar.gz
gcc-45ec036eed0e74556fa7c8362469405d6f752898.tar.bz2
lex.c (java_read_char): UNGET invalid non-initial utf8 character.
h * lex.c (java_read_char): UNGET invalid non-initial utf8 character. * lex.h (UNGETC): Change misleading macro. From-SVN: r25753
Diffstat (limited to 'gcc/java/lex.h')
-rw-r--r--gcc/java/lex.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/java/lex.h b/gcc/java/lex.h
index 42cb1c4..d40196e 100644
--- a/gcc/java/lex.h
+++ b/gcc/java/lex.h
@@ -99,8 +99,8 @@ typedef struct _java_lc {
#define JAVA_LINE_MAX 80
-/* Macro to read and unread chars */
-#define UNGETC(c) ctxp->unget_utf8_value = (c);
+/* Macro to read and unread bytes */
+#define UNGETC(c) ungetc(c, finput)
#define GETC() getc(finput)
/* Build a location compound integer */