diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-10-29 14:51:32 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-10-29 14:51:32 +0000 |
commit | 5abc721d638ff51bc38a83a3846d0b034cac3761 (patch) | |
tree | 8fa94f8cb8a8ed14abd7a964f78db7444859991f /mathoms.c | |
parent | 174c73e345a053498d612e92802b2f52a87c26bc (diff) | |
download | perl-5abc721d638ff51bc38a83a3846d0b034cac3761.tar.gz |
Replace sv_force_normal with a macro that calls sv_force_normal_flags.
p4raw-id: //depot/perl@25879
Diffstat (limited to 'mathoms.c')
-rw-r--r-- | mathoms.c | 15 |
1 files changed, 15 insertions, 0 deletions
@@ -96,6 +96,21 @@ Perl_sv_2pv(pTHX_ register SV *sv, STRLEN *lp) return sv_2pv_flags(sv, lp, SV_GMAGIC); } +/* +=for apidoc sv_force_normal + +Undo various types of fakery on an SV: if the PV is a shared string, make +a private copy; if we're a ref, stop refing; if we're a glob, downgrade to +an xpvmg. See also C<sv_force_normal_flags>. + +=cut +*/ + +void +Perl_sv_force_normal(pTHX_ register SV *sv) +{ + sv_force_normal_flags(sv, 0); +} /* sv_setsv() is now a macro using Perl_sv_setsv_flags(); * this function provided for binary compatibility only |