r24421: Ignore long #defines (like for registry keys).
authorGünther Deschner <gd@samba.org>
Tue, 14 Aug 2007 15:40:49 +0000 (15:40 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:29:44 +0000 (12:29 -0500)
Guenther
(This used to be commit b310b1dfd69ba0470b66eb84007f28e5e69e92e7)

source3/script/count_80_col.pl

index e1c8ff46a2d5140239b3bf7eab7a84ffd20af9a6..8b226228c979127d164ca35e029f8f29403ad6a5 100755 (executable)
@@ -3,7 +3,8 @@
 open( INFILE, "$ARGV[0]" ) || die $@;
 
 $count = 0;
-while ( <INFILE> ) { 
+while ( <INFILE> ) {
+       next if ($_ =~ /^#define/);
        $count++ if (length($_) > 80);
 }