diff options
author | Nicholas Clark <nick@ccl4.org> | 2007-12-29 00:17:41 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2007-12-29 00:17:41 +0000 |
commit | 866c78d1cf6feeffe34601c244c137d8b30ec2e4 (patch) | |
tree | 8975bc653553252df225cd2aa2b28eb0c197f213 /ext/re | |
parent | 51aa200460138e2cc5ab024c9216177298546e81 (diff) | |
download | perl-866c78d1cf6feeffe34601c244c137d8b30ec2e4.tar.gz |
Wrap wrapped and wraplen from struct regexp in macros RW_WRAPPED() and
RX_WRAPLEN() to preserve source compatibility when they get moved
around.
p4raw-id: //depot/perl@32758
Diffstat (limited to 'ext/re')
-rw-r--r-- | ext/re/re.xs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/re/re.xs b/ext/re/re.xs index fa82127c85..94cb2f5be2 100644 --- a/ext/re/re.xs +++ b/ext/re/re.xs @@ -126,7 +126,7 @@ PPCODE: } else { /* Scalar, so use the string that Perl would return */ /* return the pattern in (?msix:..) format */ - pattern = sv_2mortal(newSVpvn(re->wrapped,re->wraplen)); + pattern = sv_2mortal(newSVpvn(RX_WRAPPED(re),RX_WRAPLEN(re))); if (re->extflags & RXf_UTF8) SvUTF8_on(pattern); XPUSHs(pattern); |