diff --git a/cf/make-proto.pl b/cf/make-proto.pl index 32a31a2ad..0cff8f673 100644 --- a/cf/make-proto.pl +++ b/cf/make-proto.pl @@ -31,6 +31,9 @@ while(<>) { next; } if(/\{/){ + if (!/\}/) { + $brace++; + } $_ = $line; while(s/\*\//\ca/){ s/\/\*(.|\n)*\ca//; @@ -77,7 +80,6 @@ while(<>) { } } $line = ""; - $brace++; } if(/\}/){ $brace--;