summaryrefslogtreecommitdiff
path: root/lib/talloc/script
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:33 +0200
commit629ff2b6e2ec7fbd1d1ccac8a7466462aa171d4f (patch)
tree51df6c74bccd16c3b9d083b88917843ba736d75c /lib/talloc/script
parent7b0e0726310c9b5f89af653ed82266a2f02eb357 (diff)
downloadsamba-629ff2b6e2ec7fbd1d1ccac8a7466462aa171d4f.tar.gz
samba-629ff2b6e2ec7fbd1d1ccac8a7466462aa171d4f.tar.bz2
samba-629ff2b6e2ec7fbd1d1ccac8a7466462aa171d4f.zip
talloc:mksigs: correctly ignode multiline function typedefs
by first concatenating multilint parentheses and removing typefes afterwards. Michael
Diffstat (limited to 'lib/talloc/script')
-rwxr-xr-xlib/talloc/script/mksigs.pl10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/talloc/script/mksigs.pl b/lib/talloc/script/mksigs.pl
index 3eb90d99dc..ab2e18ec52 100755
--- a/lib/talloc/script/mksigs.pl
+++ b/lib/talloc/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/;