diff options
author | Michael Adam <obnox@samba.org> | 2009-09-11 15:01:46 +0200 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2009-09-11 15:31:33 +0200 |
commit | 629ff2b6e2ec7fbd1d1ccac8a7466462aa171d4f (patch) | |
tree | 51df6c74bccd16c3b9d083b88917843ba736d75c /lib/talloc | |
parent | 7b0e0726310c9b5f89af653ed82266a2f02eb357 (diff) | |
download | samba-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')
-rwxr-xr-x | lib/talloc/script/mksigs.pl | 10 |
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/; |