Skip to content
Snippets Groups Projects
Commit 8908cc9b authored by rsc's avatar rsc
Browse files

correct line numbers

parent 8139713c
No related branches found
No related tags found
No related merge requests found
......@@ -13,12 +13,15 @@ if($ARGV[0] eq "-n") {
}
$n = int(($n+49)/50)*50 - 1;
$file = $ARGV[0];
@lines = <>;
$linenum = 0;
foreach (@lines) {
$linenum++;
chomp;
s/\s+$//;
if(length() >= 75){
print "$ARGV[0]:$.: line too long";
print STDERR "$file:$linenum: line too long\n";
}
}
@outlines = ();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment