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
This commit is contained in:
Assar Westerlund
2001-06-23 22:29:18 +00:00
parent 086685a4c5
commit 2ab0ebbe0a

View File

@@ -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--;