From: Doug MacEachern Date: Sat, 10 Feb 2001 13:11:14 +0000 (-0800) Subject: Re: [patch] GvSHARED X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=87ecf8923f8f323d036e6b45f74d192a6108868c;p=p5sagit%2Fp5-mst-13.2.git Re: [patch] GvSHARED Message-ID: our @EXPORT : shared = (...); p4raw-id: //depot/perl@8761 --- diff --git a/toke.c b/toke.c index 28c71ff..dfa26f0 100644 --- a/toke.c +++ b/toke.c @@ -3073,6 +3073,10 @@ Perl_yylex(pTHX) CvLOCKED_on(PL_compcv); 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)) + GvSHARED_on(cGVOPx_gv(yylval.opval)); +#endif /* After we've set the flags, it could be argued that we don't need to do the attributes.pm-based setting process, and shouldn't bother appending recognized