diff options
author | Nicholas Clark <nick@ccl4.org> | 2008-01-05 00:59:18 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2008-01-05 00:59:18 +0000 |
commit | bdd9a1b1ec56a0b6b7d8b1b363138a8fbd3040e3 (patch) | |
tree | efcc7cd1542d30e907017756994149ef9e70a601 /pp_hot.c | |
parent | 7a4bba223aa750dd886fe6a2fddef224e59c717f (diff) | |
download | perl-bdd9a1b1ec56a0b6b7d8b1b363138a8fbd3040e3.tar.gz |
Fix the compile for -DPERL_OLD_COPY_ON_WRITE (apart from the tenacious
broken window: ../ext/Compress/Raw/Zlib/t/07bufsize.t)
p4raw-id: //depot/perl@32837
Diffstat (limited to 'pp_hot.c')
-rw-r--r-- | pp_hot.c | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -1479,16 +1479,17 @@ yup: /* Confirmed by INTUIT */ (int) SvTYPE(TARG), (void*)truebase, (void*)t, (int)(t-truebase)); } - rx->saved_copy = sv_setsv_cow(rx->saved_copy, TARG); - RX_SUBBEG(rx) = (char *) SvPVX_const(rx->saved_copy) + (t - truebase); - assert (SvPOKp(rx->saved_copy)); + RX_SAVED_COPY(rx) = sv_setsv_cow(RX_SAVED_COPY(rx), TARG); + RX_SUBBEG(rx) + = (char *) SvPVX_const(RX_SAVED_COPY(rx)) + (t - truebase); + assert (SvPOKp(RX_SAVED_COPY(rx))); } else #endif { RX_SUBBEG(rx) = savepvn(t, strend - t); #ifdef PERL_OLD_COPY_ON_WRITE - rx->saved_copy = NULL; + RX_SAVED_COPY(rx) = NULL; #endif } RX_SUBLEN(rx) = strend - t; |