diff options
author | Nicholas Clark <nick@ccl4.org> | 2010-02-23 14:48:17 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2010-05-24 13:48:46 +0100 |
commit | a09252eb79f700c93c37322c1ad831cf3193571b (patch) | |
tree | 72d71fd1a06a6f17d38ff5a13129dda2ee6e57c3 /hv.c | |
parent | 842c41230043ce99d4bf7b2c79aed85ce2908e89 (diff) | |
download | perl-a09252eb79f700c93c37322c1ad831cf3193571b.tar.gz |
Convert Perl_sv_dup_inc() from a macro to a real function.
Diffstat (limited to 'hv.c')
-rw-r--r-- | hv.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -179,7 +179,7 @@ Perl_he_dup(pTHX_ const HE *e, bool shared, CLONE_PARAMS* param) char *k; Newx(k, HEK_BASESIZE + sizeof(const SV *), char); HeKEY_hek(ret) = (HEK*)k; - HeKEY_sv(ret) = SvREFCNT_inc(sv_dup(HeKEY_sv(e), param)); + HeKEY_sv(ret) = sv_dup_inc(HeKEY_sv(e), param); } else if (shared) { /* This is hek_dup inlined, which seems to be important for speed @@ -202,7 +202,7 @@ Perl_he_dup(pTHX_ const HE *e, bool shared, CLONE_PARAMS* param) else HeKEY_hek(ret) = save_hek_flags(HeKEY(e), HeKLEN(e), HeHASH(e), HeKFLAGS(e)); - HeVAL(ret) = SvREFCNT_inc(sv_dup(HeVAL(e), param)); + HeVAL(ret) = sv_dup_inc(HeVAL(e), param); return ret; } #endif /* USE_ITHREADS */ |