This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix to the PR #147.
- To: egcs-patches at egcs dot cygnus dot com
- Subject: [PATCH] Fix to the PR #147.
- From: Alexandre Petit-Bianco <apbianco at cygnus dot com>
- Date: Mon, 21 Feb 2000 16:13:32 -0800
- Reply-to: apbianco at redhat dot com
I'm committing this patch in order to fix the PR #47:
http://sourceware.cygnus.com/ml/java-prs/2000-q1/msg00042.html
./A
Index: ChangeLog
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/ChangeLog,v
retrieving revision 1.361
diff -u -p -r1.361 ChangeLog
--- ChangeLog 2000/02/21 23:53:36 1.361
+++ ChangeLog 2000/02/22 00:10:42
@@ -52,6 +52,12 @@ Thu Feb 17 13:20:58 2000 Alexandre Peti
* 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.
Index: lex.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/lex.c,v
retrieving revision 1.36
diff -u -p -r1.36 lex.c
--- lex.c 2000/02/17 04:19:34 1.36
+++ lex.c 2000/02/22 00:10:45
@@ -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: