1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Fix the Lemon-generated parser so that it compiles with -DYYSTACKDEPTH=0.

It does compile now, but there are subtle issues still.

FossilOrigin-Name: 28d439f816d2fa5263e1c4ddecf3bf1ac2dd6549
This commit is contained in:
drh
2016-05-27 01:07:18 +00:00
parent eeb9565a3e
commit baf254aef9
3 changed files with 8 additions and 8 deletions

View File

@ -582,7 +582,7 @@ static void yy_shift(
#else
if( yypParser->yytos>=&yypParser->yystack[yypParser->yystksz] ){
yyGrowStack(yypParser);
if( yypParser->yytos>=&yypParser->yystach[yypParser->yystksz] ){
if( yypParser->yytos>=&yypParser->yystack[yypParser->yystksz] ){
yyStackOverflow(yypParser);
return;
}