winapi_check cleanups

Francois Gouget fgouget at free.fr
Wed Apr 20 04:24:45 CDT 2005


Changelog:

  * tools/winapi/winapi_fixup_documentation.pm
    tools/winapi_check/modules.pm
    tools/winapi_check/winapi_local.pm

    Francois Gouget <fgouget at free.fr>
    Try to clarify the 'no translation defined' error.
    Remove an unused variable.


-- 
Francois Gouget         fgouget at free.fr        http://fgouget.free.fr/
               Linux: Because rebooting is for adding new hardware
-------------- next part --------------
Index: tools/winapi/winapi_fixup_documentation.pm
===================================================================
RCS file: /var/cvs/wine/tools/winapi/winapi_fixup_documentation.pm,v
retrieving revision 1.4
diff -u -p -r1.4 winapi_fixup_documentation.pm
--- tools/winapi/winapi_fixup_documentation.pm	26 Oct 2004 00:12:21 -0000	1.4
+++ tools/winapi/winapi_fixup_documentation.pm	19 Apr 2005 15:26:39 -0000
@@ -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
Index: tools/winapi_check/modules.pm
===================================================================
RCS file: /var/cvs/wine/tools/winapi_check/modules.pm,v
retrieving revision 1.24
diff -u -p -r1.24 modules.pm
--- tools/winapi_check/modules.pm	30 Oct 2004 02:11:19 -0000	1.24
+++ tools/winapi_check/modules.pm	19 Apr 2005 15:14:43 -0000
@@ -329,7 +330,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}};
 
Index: tools/winapi_check/winapi_local.pm
===================================================================
RCS file: /var/cvs/wine/tools/winapi_check/winapi_local.pm,v
retrieving revision 1.44
diff -u -p -r1.44 winapi_local.pm
--- tools/winapi_check/winapi_local.pm	21 Mar 2005 10:52:53 -0000	1.44
+++ tools/winapi_check/winapi_local.pm	19 Apr 2005 15:26:08 -0000
@@ -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))
 	    {


More information about the wine-patches mailing list