Patch: PR 378 fix
Tom Tromey
tromey@redhat.com
Mon Dec 11 13:50:00 GMT 2000
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]+)/;
More information about the Java-patches
mailing list