X-Git-Url: https://perl5.git.perl.org/perl5.git/blobdiff_plain/736b9b481f80d4b0194e502be5099ef43769c403..a0ced391f0a77a8d66c8cba046a923721e0dd52b:/op_reg_common.h diff --git a/op_reg_common.h b/op_reg_common.h index 6b5841e..e8770e6 100644 --- a/op_reg_common.h +++ b/op_reg_common.h @@ -104,8 +104,10 @@ get_regex_charset(const U32 flags) #define RXf_PMf_COMPILETIME (RXf_PMf_MULTILINE|RXf_PMf_SINGLELINE|RXf_PMf_FOLD|RXf_PMf_EXTENDED|RXf_PMf_EXTENDED_MORE|RXf_PMf_KEEPCOPY|RXf_PMf_NOCAPTURE|RXf_PMf_CHARSET|RXf_PMf_STRICT) #define RXf_PMf_FLAGCOPYMASK (RXf_PMf_COMPILETIME|RXf_PMf_SPLIT) -#if 0 /* Temporary to get Jenkins happy again */ -See thread starting at http://nntp.perl.org/group/perl.perl5.porters/220710 +/* Temporary to get Jenkins happy again + * See thread starting at http://nntp.perl.org/group/perl.perl5.porters/220710 + */ +#if 0 /* Exclude win32 because it can't cope with I32_MAX definition */ #ifndef WIN32 # if RXf_PMf_COMPILETIME > I32_MAX @@ -135,8 +137,8 @@ See thread starting at http://nntp.perl.org/group/perl.perl5.porters/220710 * directly in the #define because doing so confuses regcomp.pl. * (2**n - 1) is n 1 bits, so the below gets the contiguous bits between the * beginning and ending shifts */ -#if RXf_PMf_COMPILETIME != (((1 << (_RXf_PMf_SHIFT_COMPILETIME))-1) \ - & (~((1 << RXf_PMf_STD_PMMOD_SHIFT)-1))) +#if RXf_PMf_COMPILETIME != ((nBIT_MASK(_RXf_PMf_SHIFT_COMPILETIME)) \ + & (~(nBIT_MASK( RXf_PMf_STD_PMMOD_SHIFT)))) # error RXf_PMf_COMPILETIME is invalid #endif