From 3a868e06905008326b577c5f076b260603208b2d Mon Sep 17 00:00:00 2001 From: Francois Gouget <fgouget@free.fr> Date: Wed, 20 Apr 2005 14:24:52 +0000 Subject: [PATCH] Try to clarify the 'no translation defined' error. Remove an unused variable. --- tools/winapi/winapi_fixup_documentation.pm | 2 +- tools/winapi_check/modules.pm | 1 - tools/winapi_check/winapi_local.pm | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/winapi/winapi_fixup_documentation.pm b/tools/winapi/winapi_fixup_documentation.pm index 77462ce8fab..e6010f5f423 100644 --- a/tools/winapi/winapi_fixup_documentation.pm +++ b/tools/winapi/winapi_fixup_documentation.pm @@ -131,7 +131,7 @@ sub fixup_documentation($$) { 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 7d0077c05a0..c1e3b66294c 100644 --- a/tools/winapi_check/modules.pm +++ b/tools/winapi_check/modules.pm @@ -329,7 +329,6 @@ sub complete_modules($$) { 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 d3432e21500..966655d3d60 100644 --- a/tools/winapi_check/winapi_local.pm +++ b/tools/winapi_check/winapi_local.pm @@ -61,7 +61,7 @@ sub _check_function($$$$$$) { 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 @@ sub _check_function($$$$$$) { $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)) { -- GitLab