/ Check-in [45531654]
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:Initialize the yyerrcnt variable in the lemon parser template. This has no effect on SQLite itself.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 45531654f7f5be3a08e9ee8598f14efe028245d8
User & Date: drh 2016-06-06 13:24:57
Context
2016-06-06
18:17
Fix lempar.c so that the shift-reduce optimization works for error processing. This is a Lemon issue only and has no impact on SQLite. check-in: 3665a2f5 user: drh tags: trunk
13:24
Initialize the yyerrcnt variable in the lemon parser template. This has no effect on SQLite itself. check-in: 45531654 user: drh tags: trunk
01:54
Small performance boost and size decrease in sqlite3BtreeMovetoUnpacked(). check-in: e106a77d user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to tool/lempar.c.

336
337
338
339
340
341
342



343
344
345
346
347
348
349
    pParser->yystack = NULL;
    pParser->yystksz = 0;
    if( yyGrowStack(pParser) ){
      pParser->yystack = &pParser->yystk0;
      pParser->yystksz = 1;
    }
#endif



    pParser->yytos = pParser->yystack;
    pParser->yystack[0].stateno = 0;
    pParser->yystack[0].major = 0;
  }
  return pParser;
}








>
>
>







336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
    pParser->yystack = NULL;
    pParser->yystksz = 0;
    if( yyGrowStack(pParser) ){
      pParser->yystack = &pParser->yystk0;
      pParser->yystksz = 1;
    }
#endif
#ifndef YYNOERRORRECOVERY
    pParser->yyerrcnt = -1;
#endif
    pParser->yytos = pParser->yystack;
    pParser->yystack[0].stateno = 0;
    pParser->yystack[0].major = 0;
  }
  return pParser;
}