diff options
author | Karl Williamson <public@khwilliamson.com> | 2014-02-15 21:59:51 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2014-02-15 22:14:14 -0700 |
commit | 7bc66b18e342b61d1c2794e7e003ca67c960dd98 (patch) | |
tree | e30b1341e98f3e4c3fe58395bd7d287989e5a93f /regcomp.c | |
parent | 34fdef848b1687b91892ba55e9e0c3430e0770f6 (diff) | |
download | perl-7bc66b18e342b61d1c2794e7e003ca67c960dd98.tar.gz |
Revert "Free up bit for regex ANYOF nodes"
This reverts commit 34fdef848b1687b91892ba55e9e0c3430e0770f6, and
adds comments referring to it, in case it is ever needed.
Diffstat (limited to 'regcomp.c')
-rw-r--r-- | regcomp.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -1068,7 +1068,7 @@ S_get_ANYOF_cp_list_for_ssc(pTHX_ const RExC_state_t *pRExC_state, /* If this can match all upper Latin1 code points, have to add them * as well */ - if (OP(node) == ANYOF_NON_UTF8_NON_ASCII_ALL) { + if (ANYOF_FLAGS(node) & ANYOF_NON_UTF8_NON_ASCII_ALL) { _invlist_union(invlist, PL_UpperLatin1, &invlist); } @@ -4840,7 +4840,6 @@ PerlIO_printf(Perl_debug_log, "LHS=%"UVdf" RHS=%"UVdf"\n", } break; - case ANYOF_NON_UTF8_NON_ASCII_ALL: case ANYOF: if (flags & SCF_DO_STCLASS_AND) ssc_and(pRExC_state, data->start_class, @@ -14472,7 +14471,7 @@ parseit: if (DEPENDS_SEMANTICS) { /* Under /d, everything in the upper half of the Latin1 range * matches these complements */ - OP(ret) = ANYOF_NON_UTF8_NON_ASCII_ALL; + ANYOF_FLAGS(ret) |= ANYOF_NON_UTF8_NON_ASCII_ALL; } else if (AT_LEAST_ASCII_RESTRICTED) { /* Under /a and /aa, everything above ASCII matches these @@ -15658,7 +15657,7 @@ Perl_regprop(pTHX_ const regexp *prog, SV *sv, const regnode *o) sv_catpvs(sv, "^"); } - if (OP(o) == ANYOF_NON_UTF8_NON_ASCII_ALL) { + if (flags & ANYOF_NON_UTF8_NON_ASCII_ALL) { sv_catpvs(sv, "{non-utf8-latin1-all}"); } |