mirror of
https://github.com/samba-team/samba.git
synced 2025-10-03 13:44:20 +03:00
tevent:mksigs: correctly ignode multiline function typedefs
by first concatenating multilint parentheses and removing typefes afterwards. Michael
This commit is contained in:
@@ -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
|
# concetenate function prototypes that stretch over multiple lines
|
||||||
$REST = $LINE;
|
$REST = $LINE;
|
||||||
my $parenthesis = 0;
|
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
|
# remove trailing spaces
|
||||||
$LINE =~ s/(.*?)\s*$/$1/;
|
$LINE =~ s/(.*?)\s*$/$1/;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user