svn commit: samba r24421 - in branches/SAMBA_3_2/source/script: .

gd at samba.org gd at samba.org
Tue Aug 14 15:40:50 GMT 2007


Author: gd
Date: 2007-08-14 15:40:49 +0000 (Tue, 14 Aug 2007)
New Revision: 24421

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24421

Log:
Ignore long #defines (like for registry keys).

Guenther

Modified:
   branches/SAMBA_3_2/source/script/count_80_col.pl


Changeset:
Modified: branches/SAMBA_3_2/source/script/count_80_col.pl
===================================================================
--- branches/SAMBA_3_2/source/script/count_80_col.pl	2007-08-14 15:34:34 UTC (rev 24420)
+++ branches/SAMBA_3_2/source/script/count_80_col.pl	2007-08-14 15:40:49 UTC (rev 24421)
@@ -3,7 +3,8 @@
 open( INFILE, "$ARGV[0]" ) || die $@;
 
 $count = 0;
-while ( <INFILE> ) { 
+while ( <INFILE> ) {
+	next if ($_ =~ /^#define/);
 	$count++ if (length($_) > 80);
 }
 



More information about the samba-cvs mailing list