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

This commit is contained in:
Vincent Béron 2005-12-03 18:03:50 +01:00 committed by Alexandre Julliard
parent a61e4e802c
commit 18c5a0a2a0
1 changed files with 13 additions and 4 deletions

View File

@ -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);
}
}