* 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)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32097
138bc75d-0d04-0410-961f-
82ee72b054a4
* 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.
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;
}
goto step1;
}
- java_parse_end_comment (c);
+ java_parse_end_comment ((c = java_get_unicode ()));
goto step1;
break;
default: