summaryrefslogtreecommitdiff
path: root/lib/tevent
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:27 +0200
commitaa7748484fa23da36c843115c5624a090d08dbad (patch)
treec15f908e4f56639f879ef9ec2f9430804b6a9293 /lib/tevent
parent1e2393c17829a14ce409091c35fa78b9373c57fb (diff)
downloadsamba-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
Diffstat (limited to 'lib/tevent')
-rwxr-xr-xlib/tevent/script/mksigs.pl10
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/;