From: Gurusamy Sarathy Date: Tue, 11 Nov 1997 02:11:23 +0000 (+0000) Subject: Slightly more refined lock() keyword recognition (using %INC). X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1d64a758d60d7ded97c59c753fea85d3365ca0df;p=p5sagit%2Fp5-mst-13.2.git Slightly more refined lock() keyword recognition (using %INC). p4raw-id: //depot/win32/perl@226 --- diff --git a/toke.c b/toke.c index 07a1656..7a37b7d 100644 --- a/toke.c +++ b/toke.c @@ -2607,7 +2607,7 @@ yylex() } else if (gv && !gvp && -tmp==KEY_lock /* XXX generalizable kludge */ - && !gv_fetchpv("Thread::join",FALSE,SVt_PVCV)) + && !hv_fetch(GvHVn(incgv), "Thread.pm", 9, FALSE)) { tmp = 0; /* any sub overrides "weak" keyword */ }