| use nativeapi qw($nativeapi); |
| use options qw($options); |
| use winapi qw($win16api $win32api @winapis); |
| _check($win16api, $type_found); |
| _check($win32api, $type_found); |
| my $winver = $winapi->name; |
| foreach my $type ($winapi->all_declared_types) { |
| if(!$$type_found{$type} && !$winapi->is_limited_type($type) && $type ne "CONTEXT86 *") { |
| $output->write("*.c: $winver: "); |
| $output->write("type ($type) not used\n"); |
| if($options->argument && $options->argument_forbidden) { |
| my $types_used = $winapi->types_unlimited_used_in_modules; |
| foreach my $type (sort(keys(%$types_used))) { |
| $output->write("*.c: type ($type) only used in module[s] ("); |
| foreach my $module (sort(keys(%{$$types_used{$type}}))) { |
| if($count++) { $output->write(", "); } |
| $output->write("$module"); |