summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-12-04 21:55:27 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-12-04 21:55:27 +0000
commitd0456cad3918fc93900d9454be6ff427d745b536 (patch)
tree94e6bf842cd599dbcfadf2ec7429abb6342d2909 /toke.c
parentdb7ec62399075c965a182629c9ca8ed4044fc594 (diff)
downloadperl-d0456cad3918fc93900d9454be6ff427d745b536.tar.gz
make weak keyword check look for defined(&lock), not
merely defined(*lock) p4raw-id: //depot/perl@4643
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/toke.c b/toke.c
index b4377d1f4a..8eac820baa 100644
--- a/toke.c
+++ b/toke.c
@@ -3502,6 +3502,7 @@ Perl_yylex(pTHX)
}
else if (gv && !gvp
&& -tmp==KEY_lock /* XXX generalizable kludge */
+ && GvCVu(gv)
&& !hv_fetch(GvHVn(PL_incgv), "Thread.pm", 9, FALSE))
{
tmp = 0; /* any sub overrides "weak" keyword */