Francois Gouget : winapi_check: '-register' is compatible with
stdcall. So remove this obsolete warning.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Feb 9 08:22:12 CST 2007
Module: wine
Branch: master
Commit: 30131979cc1d49b423e10294626ace7122b67b2d
URL: http://source.winehq.org/git/wine.git/?a=commit;h=30131979cc1d49b423e10294626ace7122b67b2d
Author: Francois Gouget <fgouget at free.fr>
Date: Fri Feb 9 12:22:45 2007 +0100
winapi_check: '-register' is compatible with stdcall. So remove this obsolete warning.
---
tools/winapi/winapi_local.pm | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/tools/winapi/winapi_local.pm b/tools/winapi/winapi_local.pm
index 2281484..01c8ab9 100644
--- a/tools/winapi/winapi_local.pm
+++ b/tools/winapi/winapi_local.pm
@@ -123,14 +123,8 @@ sub _check_function($$$$$$) {
$declared_calling_convention = $1;
}
- if ($declared_register)
- {
- if ($implemented_calling_convention eq "stdcall")
- {
- $output->write("-register functions should not be implemented as stdcall\n");
- }
- }
- elsif($implemented_calling_convention ne $declared_calling_convention &&
+ if(!$declared_register &&
+ $implemented_calling_convention ne $declared_calling_convention &&
$implemented_calling_convention ne "asm" &&
!($declared_calling_convention =~ /^pascal/ && $forbidden_return_type) &&
!($implemented_calling_convention =~ /^(?:cdecl|varargs)$/ && $declared_calling_convention =~ /^(?:cdecl|varargs)$/))
More information about the wine-cvs
mailing list