From 2ab0ebbe0a9d6c54e5fdce6a08497a194d6baa94 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sat, 23 Jun 2001 22:29:18 +0000 Subject: [PATCH] add kludge for handling { and } on the same line git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10174 ec53bebd-3082-4978-b11e-865c3cabbd6b --- cf/make-proto.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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--;