X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Fcount_lines;h=43ca79e68a51ca00dc104606d6428a75a31ea05d;hb=845db8182942e006a9164e41e9839adb39f24268;hp=3ede63d21d4bc63965a19b35c3434fdc3c671325;hpb=1b45cd093cde162346bfdb25fbbb60da0be97401;p=ghc-hetmet.git diff --git a/ghc/compiler/count_lines b/ghc/compiler/count_lines index 3ede63d..43ca79e 100644 --- a/ghc/compiler/count_lines +++ b/ghc/compiler/count_lines @@ -38,7 +38,7 @@ foreach $f ( @ARGV ) { } else { print STDERR "not counted in a directory: $f\n"; $ModCount{$f} += $cnt; - $ModComments{$mod} += $comments; + $ModComments{$f} += $comments; } } @@ -54,6 +54,7 @@ printf "\n%-20s %6d %6d\n\n\n", 'TOTAL:', $tot, $totcmts; $tot = 0; $totcmts = 0; +printf "\n Code Comments\n"; foreach $m (sort (keys %ModCount)) { printf "%-20s %6d %6d\n", $m, $ModCount{$m}, $ModComments{$m}; $tot += $ModCount{$m};