summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-09-11 15:01:46 +0200
committerMichael Adam <obnox@samba.org>2009-09-11 15:31:30 +0200
commit13bfcd5a93c47c9db8b644560a1bcc398facb136 (patch)
treebda1539422b79fd373edd7ebfd934b3784be689f
parentecd12bfb382da072595391d5bf11a893d39a0479 (diff)
downloadsamba-13bfcd5a93c47c9db8b644560a1bcc398facb136.tar.gz
samba-13bfcd5a93c47c9db8b644560a1bcc398facb136.tar.bz2
samba-13bfcd5a93c47c9db8b644560a1bcc398facb136.zip
tdb:mksigs: correctly ignode multiline function typedefs
by first concatenating multilint parentheses and removing typefes afterwards. Michael
-rwxr-xr-xlib/tdb/script/mksigs.pl10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/tdb/script/mksigs.pl b/lib/tdb/script/mksigs.pl
index 3eb90d99dc..ab2e18ec52 100755
--- a/lib/tdb/script/mksigs.pl
+++ b/lib/tdb/script/mksigs.pl
@@ -118,11 +118,6 @@ while (my $LINE = <>) {
}
}
- next if ($LINE =~ /^typedef\s/);
- next if ($LINE =~ /^enum\s+[^\{\(]+\s+\{/);
- next if ($LINE =~ /^struct\s+[^\{\(]+\s+\{.*\}\s*;/);
- next if ($LINE =~ /^struct\s+[a-zA-Z0-9_]+\s*;/);
-
# concetenate function prototypes that stretch over multiple lines
$REST = $LINE;
my $parenthesis = 0;
@@ -156,6 +151,11 @@ while (my $LINE = <>) {
}
}
+ next if ($LINE =~ /^typedef\s/);
+ next if ($LINE =~ /^enum\s+[^\{\(]+\s+\{/);
+ next if ($LINE =~ /^struct\s+[^\{\(]+\s+\{.*\}\s*;/);
+ next if ($LINE =~ /^struct\s+[a-zA-Z0-9_]+\s*;/);
+
# remove trailing spaces
$LINE =~ s/(.*?)\s*$/$1/;