[PATCH 4/7] winapi_test: Escape parentheses in regexp.

Francois Gouget fgouget at free.fr
Fri Aug 7 04:47:04 CDT 2020


On Sat, 25 Jul 2020, Serge Gautherie wrote:
[...]
> -	} elsif ($preprocessor =~ /^\#\s*elif\s+defined(_WIN64)/) {
> +        } elsif ($preprocessor =~ /^\#\s*elif\s+defined\(_WIN64\)/) {

This also replaces a tab with spaces. Spaces are allowed around 
defined so you may add defensive \s*-s while you're at it:

} elsif ($preprocessor =~ /^\#\s*elif\s+defined\s*\(\s*_WIN64\s*\)/) {

I don't know if there are other places that would benefit from a similar 
treatment.

-- 
Francois Gouget <fgouget at free.fr>              http://fgouget.free.fr/
 Advice is what we ask for when we already know the answer but wish we didn't
                                 -- Eric Jong



More information about the wine-devel mailing list