summaryrefslogtreecommitdiff
path: root/mathoms.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-10-29 14:51:32 +0000
committerNicholas Clark <nick@ccl4.org>2005-10-29 14:51:32 +0000
commit5abc721d638ff51bc38a83a3846d0b034cac3761 (patch)
tree8fa94f8cb8a8ed14abd7a964f78db7444859991f /mathoms.c
parent174c73e345a053498d612e92802b2f52a87c26bc (diff)
downloadperl-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.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/mathoms.c b/mathoms.c
index 04cff18a8f..c70d63d943 100644
--- a/mathoms.c
+++ b/mathoms.c
@@ -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