Try to clarify the 'no translation defined' error.
Remove an unused variable.
diff --git a/tools/winapi/winapi_fixup_documentation.pm b/tools/winapi/winapi_fixup_documentation.pm
index 77462ce..e6010f5 100644
--- a/tools/winapi/winapi_fixup_documentation.pm
+++ b/tools/winapi/winapi_fixup_documentation.pm
@@ -131,7 +131,7 @@
my $type = $_;
my $kind;
if($type ne "..." && !defined($kind = $winapi->translate_argument($type))) {
- $output->write("no translation defined: " . $type . "\n");
+ $output->write("no win*.api translation defined: " . $type . "\n");
}
# FIXME: Kludge
diff --git a/tools/winapi_check/modules.pm b/tools/winapi_check/modules.pm
index 7d0077c..c1e3b66 100644
--- a/tools/winapi_check/modules.pm
+++ b/tools/winapi_check/modules.pm
@@ -329,7 +329,6 @@
sub global_report($) {
my $self = shift;
- my $dir2spec_file = \%{$self->{DIR2SPEC_FILE}};
my $module2spec_file = \%{$self->{MODULE2SPEC_FILE}};
my $used_module_dirs = \%{$self->{USED_MODULE_DIRS}};
diff --git a/tools/winapi_check/winapi_local.pm b/tools/winapi_check/winapi_local.pm
index d3432e2..966655d 100644
--- a/tools/winapi_check/winapi_local.pm
+++ b/tools/winapi_check/winapi_local.pm
@@ -61,7 +61,7 @@
if(!defined($implemented_return_kind = $winapi->translate_argument($return_type))) {
$winapi->declare_argument($return_type, "unknown");
if($return_type ne "") {
- $output->write("no translation defined: " . $return_type . "\n");
+ $output->write("no win*.api translation defined: " . $return_type . "\n");
}
} elsif(!$winapi->is_allowed_kind($implemented_return_kind) ||
!$winapi->is_allowed_type_in_module($return_type, $module))
@@ -182,7 +182,7 @@
$kind = "context86";
} elsif(!defined($kind = $winapi->translate_argument($type))) {
$winapi->declare_argument($type, "unknown");
- $output->write("no translation defined: " . $type . "\n");
+ $output->write("no win*.api translation defined: " . $type . "\n");
} elsif(!$winapi->is_allowed_kind($kind) ||
!$winapi->is_allowed_type_in_module($type, $module))
{