summaryrefslogtreecommitdiff
path: root/sv.h
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-10-29 16:25:38 +0000
committerNicholas Clark <nick@ccl4.org>2005-10-29 16:25:38 +0000
commitcb2f1b7b22aef64f26e7bd5484244a0df0c94631 (patch)
tree03d68d985746fd34cd8beaffce05f47c0d0ecdc7 /sv.h
parent0feed65a3b89b009c18025da638bc5d9cd03851d (diff)
downloadperl-cb2f1b7b22aef64f26e7bd5484244a0df0c94631.tar.gz
sv_2pv_nolen, sv_2pvbyte_nolen and sv_2pvutf8_nolen can all be replaced
with terse macros, and the function bodies retired. p4raw-id: //depot/perl@25883
Diffstat (limited to 'sv.h')
-rw-r--r--sv.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sv.h b/sv.h
index 2dc1d8c778..2fad32ab84 100644
--- a/sv.h
+++ b/sv.h
@@ -1393,6 +1393,9 @@ Like C<sv_catsv> but doesn't process magic.
#define sv_catsv_nomg(dsv, ssv) sv_catsv_flags(dsv, ssv, 0)
#define sv_catpvn(dsv, sstr, slen) sv_catpvn_flags(dsv, sstr, slen, SV_GMAGIC)
#define sv_2pv(sv, lp) sv_2pv_flags(sv, lp, SV_GMAGIC)
+#define sv_2pv_nolen(sv) sv_2pv(sv, 0)
+#define sv_2pvbyte_nolen(sv) sv_2pvbyte(sv, 0)
+#define sv_2pvutf8_nolen(sv) sv_2pvutf8(sv, 0)
#define sv_2pv_nomg(sv, lp) sv_2pv_flags(sv, lp, 0)
#define sv_pvn_force(sv, lp) sv_pvn_force_flags(sv, lp, SV_GMAGIC)
#define sv_utf8_upgrade(sv) sv_utf8_upgrade_flags(sv, SV_GMAGIC)