tdb:mksigs: ignore struct forward declarations.
authorMichael Adam <obnox@samba.org>
Fri, 11 Sep 2009 12:55:52 +0000 (14:55 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 16 Dec 2009 07:03:45 +0000 (08:03 +0100)
Michael
(cherry picked from samba commit ecd12bfb382da072595391d5bf11a893d39a0479)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
lib/tdb/script/mksigs.pl

index 28a2e747a07d70629e812ec2f75c74f3e23e5c4b..3eb90d99dc6dd34466eca2ff106b95f52f249f7b 100755 (executable)
@@ -121,6 +121,7 @@ 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;