summaryrefslogtreecommitdiff
path: root/sv.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-06-07 15:10:38 +0000
committerNicholas Clark <nick@ccl4.org>2005-06-07 15:10:38 +0000
commitdafda6d147bb18b3050b636ac1d31818028dd936 (patch)
tree446ae1b7cc153235afe8ec3708543f8d2601efe1 /sv.h
parentb8f9541a0e3495cf3f2a868f440b6b197d5c68ee (diff)
downloadperl-dafda6d147bb18b3050b636ac1d31818028dd936.tar.gz
Simplify the implementation of SvPV*nolen functions
p4raw-id: //depot/perl@24733
Diffstat (limited to 'sv.h')
-rw-r--r--sv.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/sv.h b/sv.h
index 19acb1a100..377f9a3fde 100644
--- a/sv.h
+++ b/sv.h
@@ -1222,7 +1222,7 @@ Like C<sv_catsv> but doesn't process magic.
#define SvPV_nolen(sv) \
((SvFLAGS(sv) & (SVf_POK)) == SVf_POK \
- ? SvPVX(sv) : sv_2pv_nolen(sv))
+ ? SvPVX(sv) : sv_2pv_flags(sv, 0, SV_GMAGIC))
#define SvPV_nomg(sv, lp) SvPV_flags(sv, lp, 0)
@@ -1239,7 +1239,7 @@ Like C<sv_catsv> but doesn't process magic.
#define SvPVutf8_nolen(sv) \
((SvFLAGS(sv) & (SVf_POK|SVf_UTF8)) == (SVf_POK|SVf_UTF8)\
- ? SvPVX(sv) : sv_2pvutf8_nolen(sv))
+ ? SvPVX(sv) : sv_2pvutf8(sv, 0))
/* ----*/
@@ -1253,7 +1253,7 @@ Like C<sv_catsv> but doesn't process magic.
#define SvPVbyte_nolen(sv) \
((SvFLAGS(sv) & (SVf_POK|SVf_UTF8)) == (SVf_POK)\
- ? SvPVX(sv) : sv_2pvbyte_nolen(sv))
+ ? SvPVX(sv) : sv_2pvbyte(sv, 0))