Commit 18c5a0a2 authored by Vincent Béron's avatar Vincent Béron Committed by Alexandre Julliard

winapi_check: fully descend in included files to check for prototype.

parent a61e4e80
......@@ -498,6 +498,18 @@ foreach my $file (@c_files) {
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 $found_preprocessor = sub {
my $directive = shift;
......@@ -545,10 +557,7 @@ foreach my $file (@c_files) {
}
if(defined($include)) {
$includes{$include}++;
foreach my $include (keys(%{$include2info{$include}{includes}})) {
$includes{$include}++;
}
recursive_include($include, \%includes);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment