summaryrefslogtreecommitdiff
path: root/sv.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-06-08 08:05:47 +0000
committerNicholas Clark <nick@ccl4.org>2005-06-08 08:05:47 +0000
commit002e4c743b8ad1aef49c84ea61819956800a7f1e (patch)
treea1094d70815c0e2411d124878f2d9dfd3e69956c /sv.h
parentfd367867636c3c5c363c15be0f203f36e4df99b0 (diff)
downloadperl-002e4c743b8ad1aef49c84ea61819956800a7f1e.tar.gz
Add SvPVx_nolen and SvPVbytex_nolen
p4raw-id: //depot/perl@24747
Diffstat (limited to 'sv.h')
-rw-r--r--sv.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/sv.h b/sv.h
index cf116b8d3e..72c3cef2fe 100644
--- a/sv.h
+++ b/sv.h
@@ -1278,9 +1278,11 @@ Like C<sv_catsv> but doesn't process magic.
# define SvNVx(sv) ({SV *_sv = (SV*)(sv); SvNV(_sv); })
# define SvPVx(sv, lp) ({SV *_sv = (sv); SvPV(_sv, lp); })
# define SvPVx_const(sv, lp) ({SV *_sv = (sv); SvPV_const(_sv, lp); })
+# define SvPVx_nolen(sv) ({SV *_sv = (sv); SvPV_nolen(_sv); })
# define SvPVx_nolen_const(sv) ({SV *_sv = (sv); SvPV_nolen_const(_sv); })
# define SvPVutf8x(sv, lp) ({SV *_sv = (sv); SvPVutf8(_sv, lp); })
# define SvPVbytex(sv, lp) ({SV *_sv = (sv); SvPVbyte(_sv, lp); })
+# define SvPVbytex_nolen(sv) ({SV *_sv = (sv); SvPVbyte_nolen(_sv); })
# define SvTRUE(sv) ( \
!sv \
? 0 \
@@ -1309,9 +1311,11 @@ Like C<sv_catsv> but doesn't process magic.
# define SvNVx(sv) ((PL_Sv = (sv)), SvNV(PL_Sv))
# define SvPVx(sv, lp) ((PL_Sv = (sv)), SvPV(PL_Sv, lp))
# define SvPVx_const(sv, lp) ((PL_Sv = (sv)), SvPV_const(PL_Sv, lp))
+# define SvPVx_nolen(sv) ((PL_Sv = (sv)), SvPV_nolen(PL_Sv))
# define SvPVx_nolen_const(sv) ((PL_Sv = (sv)), SvPV_nolen_const(PL_Sv))
# define SvPVutf8x(sv, lp) ((PL_Sv = (sv)), SvPVutf8(PL_Sv, lp))
# define SvPVbytex(sv, lp) ((PL_Sv = (sv)), SvPVbyte(PL_Sv, lp))
+# define SvPVbytex_nolen(sv) ((PL_Sv = (sv)), SvPVbyte_nolen(PL_Sv))
# define SvTRUE(sv) ( \
!sv \
? 0 \