diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-10-29 17:21:24 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-10-29 17:21:24 +0000 |
commit | b347df820803cfaa55e1ef645ee3797402b58e10 (patch) | |
tree | 9cca51376ba2cefb330211111675c48d1be14b82 /mathoms.c | |
parent | bddd5118bb8dac8628019bdb9373c01f5937db98 (diff) | |
download | perl-b347df820803cfaa55e1ef645ee3797402b58e10.tar.gz |
Replace sv_catsv_mg and sv_catpvn_mg, and move the obsolete bodies to
mathoms.c
p4raw-id: //depot/perl@25885
Diffstat (limited to 'mathoms.c')
-rw-r--r-- | mathoms.c | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -180,6 +180,20 @@ Perl_sv_catpvn(pTHX_ SV *dsv, const char* sstr, STRLEN slen) sv_catpvn_flags(dsv, sstr, slen, SV_GMAGIC); } +/* +=for apidoc sv_catpvn_mg + +Like C<sv_catpvn>, but also handles 'set' magic. + +=cut +*/ + +void +Perl_sv_catpvn_mg(pTHX_ register SV *sv, register const char *ptr, register STRLEN len) +{ + sv_catpvn_flags(sv,ptr,len,SV_GMAGIC|SV_SMAGIC); +} + /* sv_catsv() is now a macro using Perl_sv_catsv_flags(); * this function provided for binary compatibility only */ @@ -191,6 +205,20 @@ Perl_sv_catsv(pTHX_ SV *dstr, register SV *sstr) } /* +=for apidoc sv_catsv_mg + +Like C<sv_catsv>, but also handles 'set' magic. + +=cut +*/ + +void +Perl_sv_catsv_mg(pTHX_ SV *dsv, register SV *ssv) +{ + sv_catsv_flags(dsv,ssv,SV_GMAGIC|SV_SMAGIC); +} + +/* =for apidoc sv_iv A private implementation of the C<SvIVx> macro for compilers which can't |