summaryrefslogtreecommitdiff
path: root/regcomp.c
diff options
context:
space:
mode:
authorYves Orton <demerphq@gmail.com>2007-01-13 18:18:01 +0100
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-01-15 16:37:21 +0000
commita20207d7c00bd54d6d2718961a96cd5c7ed1e37b (patch)
tree0b43606006e1c20c7552202ed54244b4d5525013 /regcomp.c
parentcde0cee5716418bb58782f073048ee9685ed2368 (diff)
downloadperl-a20207d7c00bd54d6d2718961a96cd5c7ed1e37b.tar.gz
Re: [PATCH] Add support for /k modfier for matching along with ${^PREMATCH}, ${^MATCH}, ${^POSTMATCH}
Message-ID: <9b18b3110701130818h6badbd3o1b38f2660d258173@mail.gmail.com> macroize regexp modifiers p4raw-id: //depot/perl@29834
Diffstat (limited to 'regcomp.c')
-rw-r--r--regcomp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regcomp.c b/regcomp.c
index d07f177402..b5faf284ef 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -8869,7 +8869,7 @@ Perl_reg_stringify(pTHX_ MAGIC *mg, STRLEN *lp, U32 *flags, I32 *haseval ) {
const regexp * const re = (regexp *)mg->mg_obj;
if (!mg->mg_ptr) {
- const char *fptr = "msix";
+ const char *fptr = STD_PAT_MODS; /*"msix"*/
char reflags[7];
char ch;
bool hask = ((re->extflags & RXf_PMf_KEEPCOPY) == RXf_PMf_KEEPCOPY);
@@ -8879,7 +8879,7 @@ Perl_reg_stringify(pTHX_ MAGIC *mg, STRLEN *lp, U32 *flags, I32 *haseval ) {
int left = 0;
int right = 4 + hask;
if (hask)
- reflags[left++]='k';
+ reflags[left++] = KEEPCOPY_PAT_MOD; /*'k'*/
while((ch = *fptr++)) {
if(reganch & 1) {
reflags[left++] = ch;