diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-10-29 16:25:38 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-10-29 16:25:38 +0000 |
commit | cb2f1b7b22aef64f26e7bd5484244a0df0c94631 (patch) | |
tree | 03d68d985746fd34cd8beaffce05f47c0d0ecdc7 /sv.h | |
parent | 0feed65a3b89b009c18025da638bc5d9cd03851d (diff) | |
download | perl-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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) |