Serge Gautherie : winapi_test: Escape parentheses in regexp, Allow spaces around them.

Alexandre Julliard julliard at winehq.org
Thu Aug 13 15:11:51 CDT 2020


Module: wine
Branch: master
Commit: 4cd1aa12b947bb85a1e25d736c520594fa357046
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=4cd1aa12b947bb85a1e25d736c520594fa357046

Author: Serge Gautherie <winehq-git_serge_180711 at gautherie.fr>
Date:   Wed Aug 12 05:41:02 2020 +0200

winapi_test: Escape parentheses in regexp, Allow spaces around them.

Signed-off-by: Serge Gautherie <winehq-git_serge_180711 at gautherie.fr>
Signed-off-by: Francois Gouget <fgouget at free.fr>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 tools/winapi/winapi_test | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/winapi/winapi_test b/tools/winapi/winapi_test
index 1ad94a6103..e9e5fe43ec 100755
--- a/tools/winapi/winapi_test
+++ b/tools/winapi/winapi_test
@@ -419,7 +419,7 @@ foreach my $file (@files) {
             push @ifdefs, ($pointer_size == 8);
 	} elsif ($preprocessor =~ /^\#\s*ifndef\s+_WIN64/) {
             push @ifdefs, ($pointer_size == 4);
-	} elsif ($preprocessor =~ /^\#\s*elif\s+defined(_WIN64)/) {
+	} elsif ($preprocessor =~ /^\#\s*elif\s+defined\s*\(\s*_WIN64\s*\)/) {
             $ifdefs[$#ifdefs] = ($pointer_size == 8);
 	} elsif ($preprocessor =~ /^\#\s*ifdef\s/) {
             push @ifdefs, 2;




More information about the wine-cvs mailing list