This is the mail archive of the
java-patches@sources.redhat.com
mailing list for the Java project.
Patch: PR 378 fix
- To: Java Patch List <java-patches at sourceware dot cygnus dot com>
- Subject: Patch: PR 378 fix
- From: Tom Tromey <tromey at redhat dot com>
- Date: 11 Dec 2000 15:03:10 -0700
- Reply-To: tromey at redhat dot com
I'm checking this in. It fixes PR libgcj/378.
2000-12-11 Tom Tromey <tromey@redhat.com>
* scripts/classes.pl (scan): Skip lines with leading `*'.
Fix for PR libgcj/378.
Tom
Index: scripts/classes.pl
===================================================================
RCS file: /cvs/gcc/egcs/libjava/scripts/classes.pl,v
retrieving revision 1.3
diff -u -r1.3 classes.pl
--- classes.pl 2000/07/20 19:34:29 1.3
+++ classes.pl 2000/12/11 21:49:18
@@ -68,8 +68,12 @@
local ($outer, $classname);
while (<FILE>)
{
- # NOTE: we don't skip `/*' comments.
s,//.*$,,;
+ # NOTE: we don't skip `/*' comments. However, we do
+ # skip lines with a `*' with leading whitespace. This
+ # catches the most important cases.
+ s,^\s*\*.*$,,;
+
# For now assume that class names start with upper
# case letter.
next unless /\b(class|interface) ([A-Z][A-Za-z0-9]+)/;