mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
winapi_check: fully descend in included files to check for prototype.
This commit is contained in:
parent
a61e4e802c
commit
18c5a0a2a0
1 changed files with 13 additions and 4 deletions
|
@ -498,6 +498,18 @@ foreach my $file (@c_files) {
|
||||||
my $type = shift;
|
my $type = shift;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
sub recursive_include {
|
||||||
|
my $include = shift;
|
||||||
|
my $includes = shift;
|
||||||
|
|
||||||
|
if(!defined($includes->{$include})) {
|
||||||
|
$includes->{$include}++;
|
||||||
|
foreach my $include (keys(%{$include2info{$include}{includes}})) {
|
||||||
|
recursive_include($include, \%$includes);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
my $preprocessor = 'preprocessor'->new($found_include, $found_conditional);
|
my $preprocessor = 'preprocessor'->new($found_include, $found_conditional);
|
||||||
my $found_preprocessor = sub {
|
my $found_preprocessor = sub {
|
||||||
my $directive = shift;
|
my $directive = shift;
|
||||||
|
@ -545,10 +557,7 @@ foreach my $file (@c_files) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(defined($include)) {
|
if(defined($include)) {
|
||||||
$includes{$include}++;
|
recursive_include($include, \%includes);
|
||||||
foreach my $include (keys(%{$include2info{$include}{includes}})) {
|
|
||||||
$includes{$include}++;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue