summaryrefslogtreecommitdiff
path: root/gcc/java
diff options
context:
space:
mode:
authorAlexandre Petit-Bianco <apbianco@cygnus.com>2000-02-22 00:13:54 +0000
committerAlexandre Petit-Bianco <apbianco@gcc.gnu.org>2000-02-21 16:13:54 -0800
commit2323b28bb68dd20e76ef263b72a485660a69102b (patch)
tree303f54471eddf59e1d1bc065dd4017241e65b304 /gcc/java
parent7d612b1e4af6e48292c986b4167afe057d7e798b (diff)
downloadgcc-2323b28bb68dd20e76ef263b72a485660a69102b.tar.gz
re GNATS gcj/147 (Problem parsing comments)
2000-02-15 Alexandre Petit-Bianco <apbianco@cygnus.com> * lex.c (java_parse_doc_section): Alway unget the last unicode when returning 0. (java_lex): Call java_parse_end_comment with fetched unicode. This is a fix to the Java PR #47 (http://sourceware.cygnus.com/ml/java-prs/2000-q1/msg00042.html) From-SVN: r32097
Diffstat (limited to 'gcc/java')
-rw-r--r--gcc/java/ChangeLog6
-rw-r--r--gcc/java/lex.c5
2 files changed, 8 insertions, 3 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 8b631e0625a..8a6fdef8ba8 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -52,6 +52,12 @@ Thu Feb 17 13:20:58 2000 Alexandre Petit-Bianco <apbianco@cygnus.com>
* Make-lang.in (jvspec.o): Depend on $(GCC_H), not gcc.h.
+2000-02-15 Alexandre Petit-Bianco <apbianco@cygnus.com>
+
+ * lex.c (java_parse_doc_section): Alway unget the last unicode
+ when returning 0.
+ (java_lex): Call java_parse_end_comment with fetched unicode.
+
2000-02-15 Tom Tromey <tromey@cygnus.com>
* gjavah.c (jni_print_char): New function.
diff --git a/gcc/java/lex.c b/gcc/java/lex.c
index 58df299f1a5..311f697457f 100644
--- a/gcc/java/lex.c
+++ b/gcc/java/lex.c
@@ -438,13 +438,12 @@ java_parse_doc_section (c)
if (c == UEOF)
java_lex_error ("Comment not terminated at end of input", 0);
-
- java_unget_unicode ();
tag [tag_index] = '\0';
if (!strcmp (tag, "deprecated"))
ctxp->deprecated = 1;
}
+ java_unget_unicode ();
return 0;
}
@@ -619,7 +618,7 @@ java_lex (java_lval)
goto step1;
}
- java_parse_end_comment (c);
+ java_parse_end_comment ((c = java_get_unicode ()));
goto step1;
break;
default: