projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2003-10-10 12:42:30 by simonpj]
[ghc-hetmet.git]
/
ghc
/
compiler
/
count_lines
diff --git
a/ghc/compiler/count_lines
b/ghc/compiler/count_lines
index
3ede63d
..
43ca79e
100644
(file)
--- 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;
} 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;
$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};
foreach $m (sort (keys %ModCount)) {
printf "%-20s %6d %6d\n", $m, $ModCount{$m}, $ModComments{$m};
$tot += $ModCount{$m};