summaryrefslogtreecommitdiff
path: root/perly.c
diff options
context:
space:
mode:
authorDave Mitchell <davem@fdisolutions.com>2006-12-13 17:24:49 +0000
committerDave Mitchell <davem@fdisolutions.com>2006-12-13 17:24:49 +0000
commit4d28fe79573bb61e3777837866812631f24ed631 (patch)
tree16c2bdc92ddb251e4d18f61f11ab2f0959e51dd4 /perly.c
parent295222340ad6893caa0a1c3479155f88ea290dc3 (diff)
downloadperl-4d28fe79573bb61e3777837866812631f24ed631.tar.gz
make -Dpv display the parser stack before reduction
(rather than afterwards) p4raw-id: //depot/perl@29549
Diffstat (limited to 'perly.c')
-rw-r--r--perly.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/perly.c b/perly.c
index 8ac349aad0..193bae37bc 100644
--- a/perly.c
+++ b/perly.c
@@ -672,7 +672,7 @@ Perl_yyparse (pTHX)
GCC warning that YYVAL may be used uninitialized. */
yyval = yyvsp[1-yylen];
-
+ YY_STACK_PRINT (yyss, yyssp, yyvs, yyns);
YY_REDUCE_PRINT (yyn);
/* running external code may trigger a die (eg 'use nosuchmodule'):
@@ -752,16 +752,6 @@ Perl_yyparse (pTHX)
yystate = yytable[yystate];
else
yystate = yydefgoto[yyn - YYNTOKENS];
-
-#ifdef DEBUGGING
- /* tmp push yystate for stack print; this is normally pushed later in
- * yynewstate */
- yyssp++;
- *yyssp = yystate;
- YY_STACK_PRINT (yyss, yyssp, yyvs, yyns);
- yyssp--;
-#endif
-
goto yynewstate;