diff options
author | Dave Mitchell <davem@fdisolutions.com> | 2006-12-13 17:24:49 +0000 |
---|---|---|
committer | Dave Mitchell <davem@fdisolutions.com> | 2006-12-13 17:24:49 +0000 |
commit | 4d28fe79573bb61e3777837866812631f24ed631 (patch) | |
tree | 16c2bdc92ddb251e4d18f61f11ab2f0959e51dd4 /perly.c | |
parent | 295222340ad6893caa0a1c3479155f88ea290dc3 (diff) | |
download | perl-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.c | 12 |
1 files changed, 1 insertions, 11 deletions
@@ -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; |