summaryrefslogtreecommitdiff
path: root/toke.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-12-19 22:38:54 +0000
committerNicholas Clark <nick@ccl4.org>2005-12-19 22:38:54 +0000
commitd7183528816da5b6125a0d9a04b7f2e692de6e86 (patch)
treef4a8b92897f66727ddc7c666898c28836e6d51ea /toke.c
parente26a497577f3ce7b9a4d9e1e62062839554dfd8f (diff)
downloadperl-d7183528816da5b6125a0d9a04b7f2e692de6e86.tar.gz
Assert that orig_keyword, gv and gvp aren't used before the main
keyword parser of Perl_yylex. p4raw-id: //depot/perl@26411
Diffstat (limited to 'toke.c')
-rw-r--r--toke.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/toke.c b/toke.c
index 1b07e56d06..b0c61355d9 100644
--- a/toke.c
+++ b/toke.c
@@ -4086,6 +4086,9 @@ Perl_yylex(pTHX)
case 'z': case 'Z':
keylookup: {
+ assert (orig_keyword == 0);
+ assert (gv == 0);
+ assert (gvp == 0);
orig_keyword = 0;
gv = Nullgv;
gvp = 0;