diff options
author | Yves Orton <demerphq@gmail.com> | 2010-08-30 19:05:27 +0200 |
---|---|---|
committer | Florian Ragwitz <rafl@debian.org> | 2010-09-16 16:20:50 +0200 |
commit | a3ac23375ca1c511438645cf80b5d181bb1e074d (patch) | |
tree | 59fea4875a1e77169957db9c4fd41396e1676e80 | |
parent | 8cd5f6e143f01a6e36a1654038f11401e5afb1a1 (diff) | |
download | perl-mauve.tar.gz |
use more efficient sv_reftype_len() interfacemauve
-rw-r--r-- | pp.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -559,6 +559,7 @@ PP(pp_ref) dVAR; dSP; dTARGET; const char *pv; SV * const sv = POPs; + STRLEN len; if (sv) SvGETMAGIC(sv); @@ -566,8 +567,8 @@ PP(pp_ref) if (!sv || !SvROK(sv)) RETPUSHNO; - pv = sv_reftype(SvRV(sv),TRUE); - PUSHp(pv, strlen(pv)); + pv = sv_reftype_len(SvRV(sv),TRUE,&len); + PUSHp(pv, len); RETURN; } |