/ Check-in [e1d8ef31]
Login

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

Overview
Comment:Another attempt to fix error handling in Lemon. This change is a no-op for SQLite's usage.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: e1d8ef311cabcb96495a88404991b1416655e4a8
User & Date: drh 2016-07-08 19:54:38
Context
2016-07-09
00:06
Add support for the win32-none VFS. check-in: b5f32a89 user: drh tags: trunk
2016-07-08
21:14
Initial work on a Win32 VFS with NOP locking. Closed-Leaf check-in: 549abe3f user: mistachkin tags: win32nolock
19:54
Another attempt to fix error handling in Lemon. This change is a no-op for SQLite's usage. check-in: e1d8ef31 user: drh tags: trunk
02:14
In the sqldiff program, make sure the first argument to the db_prepare() utility function is always a valid format string. check-in: 8bb8d886 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to tool/lempar.c.

   917    917         if( yypParser->yyerrcnt<=0 ){
   918    918           yy_syntax_error(yypParser,yymajor, yyminor);
   919    919         }
   920    920         yypParser->yyerrcnt = 3;
   921    921         yy_destructor(yypParser,(YYCODETYPE)yymajor,&yyminorunion);
   922    922         if( yyendofinput ){
   923    923           yy_parse_failed(yypParser);
          924  +#ifndef YYNOERRORRECOVERY
          925  +        yypParser->yyerrcnt = -1;
          926  +#endif
   924    927         }
   925    928         yymajor = YYNOCODE;
   926    929   #endif
   927    930       }
   928    931     }while( yymajor!=YYNOCODE && yypParser->yytos>yypParser->yystack );
   929    932   #ifndef NDEBUG
   930    933     if( yyTraceFILE ){