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

View file

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