Slightly more refined lock() keyword recognition (using %INC).
Gurusamy Sarathy [Tue, 11 Nov 1997 02:11:23 +0000 (02:11 +0000)]
p4raw-id: //depot/win32/perl@226

toke.c

diff --git a/toke.c b/toke.c
index 07a1656..7a37b7d 100644 (file)
--- 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 */
            }