diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-01-13 22:54:10 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-01-13 22:54:10 +0000 |
commit | f2b990bf33ddc9a2c27b053bb94a963bce0c09ce (patch) | |
tree | 639f2969570516ca882598101886056503f93def /pp_hot.c | |
parent | c75bde89ee55ab4c3ff1da2c3438b11554305529 (diff) | |
download | perl-f2b990bf33ddc9a2c27b053bb94a963bce0c09ce.tar.gz |
replace NEWSV(), SvSetSV() with newSVsv()
p4raw-id: //depot/perl@23795
Diffstat (limited to 'pp_hot.c')
-rw-r--r-- | pp_hot.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -1008,9 +1008,8 @@ PP(pp_aassign) i = 0; while (relem <= lastrelem) { /* gobble up all the rest */ SV **didstore; - sv = NEWSV(28,0); assert(*relem); - sv_setsv(sv,*relem); + sv = newSVsv(*relem); *(relem++) = sv; didstore = av_store(ary,i++,sv); if (magic) { @@ -2214,8 +2213,7 @@ PP(pp_subst) have_a_cow: #endif rxtainted |= RX_MATCH_TAINTED(rx); - dstr = NEWSV(25, len); - sv_setpvn(dstr, m, s-m); + dstr = newSVpvn(m, s-m); if (DO_UTF8(TARG)) SvUTF8_on(dstr); PL_curpm = pm; |