This is the mail archive of the java-patches@sources.redhat.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch: PR 378 fix


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]+)/;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]