From: Artur Bergman Date: Tue, 26 Jun 2001 16:18:40 +0000 (+0200) Subject: [PATH] shared -> unique; X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c8a3bf85b4f54d1a649a56a937fd48a38f8982fe;p=p5sagit%2Fp5-mst-13.2.git [PATH] shared -> unique; Message-ID: <002001c0fe4a$e623ba30$21000a0a@vogw2kdev> Because "shared" isn't: it's read-only. p4raw-id: //depot/perl@10959 --- diff --git a/toke.c b/toke.c index 76be79b..e177cef 100644 --- a/toke.c +++ b/toke.c @@ -3091,7 +3091,7 @@ Perl_yylex(pTHX) else if (!PL_in_my && len == 6 && strnEQ(s, "method", len)) CvMETHOD_on(PL_compcv); #ifdef USE_ITHREADS - else if (PL_in_my == KEY_our && len == 6 && strnEQ(s, "shared", len)) + else if (PL_in_my == KEY_our && len == 6 && strnEQ(s, "unique", len)) GvSHARED_on(cGVOPx_gv(yylval.opval)); #endif /* After we've set the flags, it could be argued that diff --git a/xsutils.c b/xsutils.c index 9df4ce4..fd43e23 100644 --- a/xsutils.c +++ b/xsutils.c @@ -85,7 +85,7 @@ modify_SV_attributes(pTHXo_ SV *sv, SV **retlist, SV **attrlist, int numattrs) } break; case 's': - if (strEQ(name, "shared")) { + if (strEQ(name, "unique")) { if (negated) GvSHARED_off(CvGV((CV*)sv)); else @@ -102,7 +102,7 @@ modify_SV_attributes(pTHXo_ SV *sv, SV **retlist, SV **attrlist, int numattrs) case 6: switch (*name) { case 's': - if (strEQ(name, "shared")) { + if (strEQ(name, "unique")) { /* toke.c has already marked as GvSHARED */ continue; } @@ -190,7 +190,7 @@ usage: if (cvflags & CVf_METHOD) XPUSHs(sv_2mortal(newSVpvn("method", 6))); if (GvSHARED(CvGV((CV*)sv))) - XPUSHs(sv_2mortal(newSVpvn("shared", 6))); + XPUSHs(sv_2mortal(newSVpvn("unique", 6))); break; default: break;