/ Check-in [28d439f8]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix the Lemon-generated parser so that it compiles with -DYYSTACKDEPTH=0. It does compile now, but there are subtle issues still.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 28d439f816d2fa5263e1c4ddecf3bf1ac2dd6549
User & Date: drh 2016-05-27 01:07:18
Context
2016-05-27
04:10
Fix Lemon so that it actually works with -DYYSTACKDEPTH=0. check-in: a9be4c2d user: drh tags: trunk
01:07
Fix the Lemon-generated parser so that it compiles with -DYYSTACKDEPTH=0. It does compile now, but there are subtle issues still. check-in: 28d439f8 user: drh tags: trunk
2016-05-26
20:56
Add a new OP_SeekRowid opcode, that combines the functions of OP_MustBeInt and OP_NotExists. This makes the code slightly smaller and faster. check-in: ffe80a1b user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to tool/lempar.c.

578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
  if( yypParser->yytos>=&yypParser->yystack[YYSTACKDEPTH] ){
    yyStackOverflow(yypParser);
    return;
  }
#else
  if( yypParser->yytos>=&yypParser->yystack[yypParser->yystksz] ){
    yyGrowStack(yypParser);
    if( yypParser->yytos>=&yypParser->yystach[yypParser->yystksz] ){
      yyStackOverflow(yypParser);
      return;
    }
  }
#endif
  yytos = yypParser->yytos;
  yytos->stateno = (YYACTIONTYPE)yyNewState;







|







578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
  if( yypParser->yytos>=&yypParser->yystack[YYSTACKDEPTH] ){
    yyStackOverflow(yypParser);
    return;
  }
#else
  if( yypParser->yytos>=&yypParser->yystack[yypParser->yystksz] ){
    yyGrowStack(yypParser);
    if( yypParser->yytos>=&yypParser->yystack[yypParser->yystksz] ){
      yyStackOverflow(yypParser);
      return;
    }
  }
#endif
  yytos = yypParser->yytos;
  yytos->stateno = (YYACTIONTYPE)yyNewState;