diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-06-07 15:10:38 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-06-07 15:10:38 +0000 |
commit | dafda6d147bb18b3050b636ac1d31818028dd936 (patch) | |
tree | 446ae1b7cc153235afe8ec3708543f8d2601efe1 /sv.h | |
parent | b8f9541a0e3495cf3f2a868f440b6b197d5c68ee (diff) | |
download | perl-dafda6d147bb18b3050b636ac1d31818028dd936.tar.gz |
Simplify the implementation of SvPV*nolen functions
p4raw-id: //depot/perl@24733
Diffstat (limited to 'sv.h')
-rw-r--r-- | sv.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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)) |