Configuration parsing code landed

Russ Allbery rra at
Thu Jun 21 11:52:58 UTC 2001

Forrest J Cavalier <mibsoft at> writes:

>> Oh, and for those of you who like random statistics....

> The statistics are not random I hope!  I hope they were actual metrics.
> Random is OK sometimes, but it would also be helpful to know what
> file(s) you are reporting.

*laugh*  The idea behind some of the stuff that c_count reports I find a
bit random, but yeah, the statistics themselves aren't random.  And
they're for lib/confparse.c; sorry, thought that would be more obvious
from context than it was.

>>   1142   428    total lines/statements
>>    286  lines had comments        25.0 %
>>     11  comments are inline       -1.0 %

> Certainly, negative percentages are less expected (and therefore more
> random than non-negative) but... I'm curious to know what calculation
> was used to result in a negative percentage.

I believe the idea is that one wants that whole section to add up to 100%,
and it's counting comment lines and code lines.  The comment line counting
metric includes lines with inline comments, which are also counted as code
lines, so it subtracts out the inline comments to avoid double-counting

Russ Allbery (rra at             <>

More information about the inn-workers mailing list