diff options
author | Karl Williamson <public@khwilliamson.com> | 2010-09-20 18:26:33 -0600 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2010-09-22 22:48:08 -0700 |
commit | 855088127b85a7b03f3833b2274d4f26946f203d (patch) | |
tree | 7f3a20881cc964dd6a60063323aede3d22fcf22c /regcomp.c | |
parent | d0dcc4028a160eba03640da1ff1d34087f930ec1 (diff) | |
download | perl-855088127b85a7b03f3833b2274d4f26946f203d.tar.gz |
Change to use mnemonic instead of char constant
The new '^' in (?^...) should really be a macro.
Diffstat (limited to 'regcomp.c')
-rw-r--r-- | regcomp.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -4442,7 +4442,7 @@ Perl_re_compile(pTHX_ SV * const pattern, U32 pm_flags) SvFLAGS(rx) |= SvUTF8(pattern); *p++='('; *p++='?'; if (has_minus) { /* If a default, cover it using the caret */ - *p++='^'; + *p++= DEFAULT_PAT_MOD; } if (has_p) *p++ = KEEPCOPY_PAT_MOD; /*'p'*/ @@ -6120,7 +6120,8 @@ S_reg(pTHX_ RExC_state_t *pRExC_state, I32 paren, I32 *flagp,U32 depth) RExC_parse--; /* for vFAIL to print correctly */ vFAIL("Sequence (? incomplete"); break; - case '^': /* Use default flags with the exceptions that follow */ + case DEFAULT_PAT_MOD: /* Use default flags with the exceptions + that follow */ has_use_defaults = TRUE; STD_PMMOD_FLAGS_CLEAR(&RExC_flags); goto parse_flags; |