summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2022-06-26 16:03:09 -0600
committerKarl Williamson <khw@cpan.org>2022-07-03 19:39:25 -0600
commit3960d57abe09d6be46f4e2528fe3db11a82e0c7d (patch)
tree5c5f81d1fb084c0513d3f75859542e01ae812f85 /regexec.c
parent3549ea25db147906da963c2ec5aa1a6985e9f849 (diff)
downloadperl-3960d57abe09d6be46f4e2528fe3db11a82e0c7d.tar.gz
regex: Change some internal macro names for clarity
These long names are designed to remind the coder that they have multiple meanings. But move the reminder text to the end, as it obscures the purposes. And some have two halves for the separate meanings; change the names so the halves are split by two underscores to visually emphasize this.
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/regexec.c b/regexec.c
index 6e9bc3ce58..f5b713833d 100644
--- a/regexec.c
+++ b/regexec.c
@@ -10662,7 +10662,7 @@ S_reginclass(pTHX_ regexp * const prog, const regnode * const n, const U8* const
if (c < NUM_ANYOF_CODE_POINTS && ! inRANGE(OP(n), ANYOFH, ANYOFHb)) {
if (ANYOF_BITMAP_TEST(n, c))
match = TRUE;
- else if ( (flags & ANYOFD_shared_NON_UTF8_MATCHES_ALL_NON_ASCII)
+ else if ( (flags & ANYOFD_NON_UTF8_MATCHES_ALL_NON_ASCII__shared)
&& OP(n) == ANYOFD
&& ! utf8_target
&& ! isASCII(c))
@@ -10735,7 +10735,7 @@ S_reginclass(pTHX_ regexp * const prog, const regnode * const n, const U8* const
* be some matches only possible if the locale is a UTF-8 one. */
else if ( ARG(n) != ANYOF_ONLY_HAS_BITMAP
&& ( c >= NUM_ANYOF_CODE_POINTS
- || ( (flags & ANYOF_SHARED_d_UPPER_LATIN1_UTF8_STRING_MATCHES_non_d_RUNTIME_USER_PROP)
+ || ( (flags & ANYOF_d_UPPER_LATIN1_UTF8_STRING_MATCHES__non_d_RUNTIME_USER_PROP__shared)
&& ( UNLIKELY(OP(n) != ANYOFD)
|| (utf8_target && ! isASCII_uvchr(c)
# if NUM_ANYOF_CODE_POINTS > 256
@@ -10822,7 +10822,7 @@ S_reginclass(pTHX_ regexp * const prog, const regnode * const n, const U8* const
}
if (UNICODE_IS_SUPER(c)
- && (flags & ANYOF_shared_WARN_SUPER)
+ && (flags & ANYOF_WARN_SUPER__shared)
&& OP(n) != ANYOFD
&& ckWARN_d(WARN_NON_UNICODE))
{