summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorJerry D. Hedden <jdhedden@cpan.org>2007-11-06 09:36:40 -0500
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-11-08 10:31:55 +0000
commit334f5eb213bd673ba861683d56b767af601b54fa (patch)
tree51ae63f47a96f526e721b4597eeca2c847f77f11 /util.c
parentc74eb1a50ea5e4fbea87cc3bc96859af6637d914 (diff)
downloadperl-334f5eb213bd673ba861683d56b767af601b54fa.tar.gz
Bug fix for storing shared objects in shared structures
From: "Jerry D. Hedden" <jdhedden@cpan.org> Message-ID: <1ff86f510711061136t52a1fe62waf384c4551612181@mail.gmail.com> (core patch only) p4raw-id: //depot/perl@32241
Diffstat (limited to 'util.c')
-rw-r--r--util.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/util.c b/util.c
index 670c823867..62fd7baaa5 100644
--- a/util.c
+++ b/util.c
@@ -5112,6 +5112,26 @@ Perl_sv_nosharing(pTHX_ SV *sv)
PERL_UNUSED_ARG(sv);
}
+/*
+
+=for apidoc sv_destroyable
+
+Dummy routine which reports that object can be destroyed when there is no
+sharing module present. It ignores its single SV argument, and returns
+'true'. Exists to avoid test for a NULL function pointer and because it
+could potentially warn under some level of strict-ness.
+
+=cut
+*/
+
+bool
+Perl_sv_destroyable(pTHX_ SV *sv)
+{
+ PERL_UNUSED_CONTEXT;
+ PERL_UNUSED_ARG(sv);
+ return TRUE;
+}
+
U32
Perl_parse_unicode_opts(pTHX_ const char **popt)
{