tevent:mksigs: ignore struct forward declarations.
[ira/wip.git] / lib / tevent / 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;