winapi: Add support for DECLSPEC_HOTPATCH function declarations.

Francois Gouget fgouget at free.fr
Sat Jan 7 07:37:23 CST 2017


Signed-off-by: Francois Gouget <fgouget at free.fr>
---

This only fixes a small fraction of the false positives but in an area 
which is still not too polluted: calling convention checks.

 tools/winapi/winapi_parser.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/winapi/winapi_parser.pm b/tools/winapi/winapi_parser.pm
index 7e2946b3a87..b24ce5f5f33 100644
--- a/tools/winapi/winapi_parser.pm
+++ b/tools/winapi/winapi_parser.pm
@@ -381,6 +381,7 @@ sub parse_c_file($$) {
 	    next;
 	} elsif(/(extern\s+|static\s+)?((interface\s+|struct\s+|union\s+|enum\s+|signed\s+|unsigned\s+)?\w+((\s*\*)+\s*|\s+))
             (($CALL_CONVENTION)\s+)?
+            (?:DECLSPEC_HOTPATCH\s+)?
 	    (\w+(\(\w+\))?)\s*\((.*?)\)\s*(\{|\;)/sx)
         {
 	    my @lines = split(/\n/, $&);
-- 
2.11.0



More information about the wine-patches mailing list