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:27 +0200 |
commit | aa7748484fa23da36c843115c5624a090d08dbad (patch) | |
tree | c15f908e4f56639f879ef9ec2f9430804b6a9293 | |
parent | 1e2393c17829a14ce409091c35fa78b9373c57fb (diff) | |
download | samba-aa7748484fa23da36c843115c5624a090d08dbad.tar.gz samba-aa7748484fa23da36c843115c5624a090d08dbad.tar.bz2 samba-aa7748484fa23da36c843115c5624a090d08dbad.zip |
tevent:mksigs: correctly ignode multiline function typedefs
by first concatenating multilint parentheses and removing typefes afterwards.
Michael
-rwxr-xr-x | lib/tevent/script/mksigs.pl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/tevent/script/mksigs.pl b/lib/tevent/script/mksigs.pl index 3eb90d99dc..ab2e18ec52 100755 --- a/lib/tevent/script/mksigs.pl +++ b/lib/tevent/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/; |