From aa7748484fa23da36c843115c5624a090d08dbad Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Fri, 11 Sep 2009 15:01:46 +0200 Subject: tevent:mksigs: correctly ignode multiline function typedefs by first concatenating multilint parentheses and removing typefes afterwards. Michael --- lib/tevent/script/mksigs.pl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/tevent/script') 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/; -- cgit