From 9714802b25100d57766c575c5b506b5da79e47f4 Mon Sep 17 00:00:00 2001 From: Francois Gouget Date: Mon, 26 Sep 2005 09:52:09 +0000 Subject: [PATCH] Update winapi_check so it considers 'longlong' (win*.api files) as compatible with 'double' (spec files). --- tools/winapi/winapi_function.pm | 2 +- tools/winapi/winapi_local.pm | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/tools/winapi/winapi_function.pm b/tools/winapi/winapi_function.pm index b9e6f68f26f..4fc6263bec1 100644 --- a/tools/winapi/winapi_function.pm +++ b/tools/winapi/winapi_function.pm @@ -387,7 +387,7 @@ sub _argument_kinds($$) { my $argument_kind = $winapi->translate_argument($argument_type); if(defined($argument_kind) && $argument_kind eq "longlong") { - push @argument_kinds, ("long", "long"); + push @argument_kinds, "double"; } else { push @argument_kinds, $argument_kind; } diff --git a/tools/winapi/winapi_local.pm b/tools/winapi/winapi_local.pm index b5f43ffdd01..b854a40c42c 100644 --- a/tools/winapi/winapi_local.pm +++ b/tools/winapi/winapi_local.pm @@ -195,11 +195,11 @@ sub _check_function($$$$$$) { # FIXME: Kludge if(defined($kind) && $kind eq "struct16") { - $n+=4; - ("long", "long", "long", "long"); - } elsif(defined($kind) && $kind eq "longlong") { $n+=2; - ("long", "long"); + ("double", "double"); + } elsif(defined($kind) && $kind eq "longlong") { + $n+=1; + "double"; } else { $n++; $kind;