Make sure to count __all__ lines, also those who start a new "scope" (anything that finishes with "end")

git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5439 4a71c877-e1ca-e34f-864e-861f7616d084
master
Giel van Schijndel 2008-07-09 14:58:04 +00:00
parent 3b57831282
commit f8f4ce0854
1 changed files with 4 additions and 0 deletions

View File

@ -18,6 +18,7 @@ sub parseEnum
@{$curEnum{"comment"}} = @$comment;
@$comment = ();
$$count++;
while (<>)
{
@ -55,6 +56,8 @@ sub readTillEnd
{
my ($output, $count) = @_;
$$count++;
while (<>)
{
chomp;
@ -78,6 +81,7 @@ sub parseStruct
@{$curStruct{"comment"}} = @$comment;
@$comment = ();
$$count++;
while (<>)
{