summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-04-12 12:47:27 +0100
committerNicholas Clark <nick@ccl4.org>2009-04-12 12:47:27 +0100
commit8e5dadda1c1c201168c358a10e1073814c1cae6b (patch)
tree49b880dc3085e66f68715bcd827d4c4483c38255 /toke.c
parentcee202b7bebc105308f54a045a45bd424f971fde (diff)
downloadperl-8e5dadda1c1c201168c358a10e1073814c1cae6b.tar.gz
Deprecate use of the attribute :locked on subroutines.
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toke.c b/toke.c
index 8f5795a1b2..ca18af1f21 100644
--- a/toke.c
+++ b/toke.c
@@ -4395,7 +4395,7 @@ Perl_yylex(pTHX)
}
else if (!PL_in_my && len == 6 && strnEQ(SvPVX(sv), "locked", len)) {
sv_free(sv);
- CvLOCKED_on(PL_compcv);
+ deprecate(":locked");
}
else if (!PL_in_my && len == 6 && strnEQ(SvPVX(sv), "method", len)) {
sv_free(sv);