Francois Gouget : winapi_check: Print a warning when 'long' is used in an API file as this type is not Win64 compatible.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Feb 5 07:44:48 CST 2007


Module: wine
Branch: master
Commit: dffe626a9c58b79930076adf83f9d3570f274fb2
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=dffe626a9c58b79930076adf83f9d3570f274fb2

Author: Francois Gouget <fgouget at free.fr>
Date:   Fri Jan 26 18:21:54 2007 +0100

winapi_check: Print a warning when 'long' is used in an API file as this type is not Win64 compatible.

---

 tools/winapi/winapi.pm |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/tools/winapi/winapi.pm b/tools/winapi/winapi.pm
index 8fcaa41..e5ed445 100644
--- a/tools/winapi/winapi.pm
+++ b/tools/winapi/winapi.pm
@@ -192,6 +192,10 @@ sub parse_api_file($$) {
 	    }
 	} elsif(defined($kind)) {
 	    my $type = $_;
+            if ($type =~ /^long\b/)
+            {
+                $output->write("$file:$linenum: type ($type) is not Win64 compatible\n");
+            }
 	    if(!$forbidden) {
 		if(defined($module)) {
 		    if($$allowed_modules_unlimited{$type}) {




More information about the wine-cvs mailing list