mirror of
https://github.com/cc65/cc65.git
synced 2025-01-10 03:30:05 +00:00
Merge pull request #400 from greg-king5/yaccdbg-fix
Fix a yaccdbg pointer test again.
This commit is contained in:
commit
d7689b43cd
@ -562,13 +562,13 @@ yylook()
|
|||||||
}
|
}
|
||||||
|
|
||||||
# ifdef LEXDEBUG
|
# ifdef LEXDEBUG
|
||||||
if (*(lsp-1) < yysvec + 1)
|
if (lsp == yylstate)
|
||||||
{
|
{
|
||||||
fprintf(yyout,"yylook: stopped (end)\n");
|
fprintf(yyout,"yylook: stopped (end)\n");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
fprintf(yyout,"yylook: stopped at %d with\n",*(lsp-1)-yysvec-1);
|
fprintf(yyout,"yylook: stopped at %d with:\n",*(lsp-1)-(yysvec+1));
|
||||||
}
|
}
|
||||||
# endif
|
# endif
|
||||||
while (lsp-- > yylstate)
|
while (lsp-- > yylstate)
|
||||||
@ -594,7 +594,7 @@ yylook()
|
|||||||
yyleng = yylastch-yytext+1;
|
yyleng = yylastch-yytext+1;
|
||||||
yytext[yyleng] = 0;
|
yytext[yyleng] = 0;
|
||||||
# ifdef LEXDEBUG
|
# ifdef LEXDEBUG
|
||||||
fprintf(yyout,"\nyylook: match action %d\n",*yyfnd);
|
fprintf(yyout,"yylook: match action %d\n",*yyfnd);
|
||||||
fprintf(yyout,"yylook: done loops: %d\n",testbreak);
|
fprintf(yyout,"yylook: done loops: %d\n",testbreak);
|
||||||
# endif
|
# endif
|
||||||
return(*yyfnd++);
|
return(*yyfnd++);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user