summaryrefslogtreecommitdiff
path: root/xsutils.c
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2002-05-13 12:30:35 +0000
committerArtur Bergman <sky@nanisky.com>2002-05-13 12:30:35 +0000
commit13c1b20720b7eeca2a0c896ac27f004bc376edb3 (patch)
tree1bf13394b35bd8031a260b9eeb3ebfe4122a167e /xsutils.c
parent5dc83c4054cb6624685a80f58caabe5e173a543f (diff)
downloadperl-13c1b20720b7eeca2a0c896ac27f004bc376edb3.tar.gz
Re: 'use threads::shared' noisy with -w
Message-Id: <20020510235227.J12298@fdgroup.com> p4raw-id: //depot/perl@16572
Diffstat (limited to 'xsutils.c')
-rw-r--r--xsutils.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/xsutils.c b/xsutils.c
index f044b6e068..b924c481c3 100644
--- a/xsutils.c
+++ b/xsutils.c
@@ -116,6 +116,14 @@ modify_SV_attributes(pTHX_ SV *sv, SV **retlist, SV **attrlist, int numattrs)
switch ((int)len) {
case 6:
switch (*name) {
+ case 's':
+ if (strEQ(name, "shared")) {
+ if (negated)
+ Perl_croak(aTHX_ "A variable may not be unshared");
+ SvSHARE(sv);
+ continue;
+ }
+ break;
case 'u':
if (strEQ(name, "unique")) {
if (SvTYPE(sv) == SVt_PVGV) {