/ Check-in [f4ee5d83]
Login

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

Overview
Comment:Fix a bug in lemon. The code in which the error appears might well be unreachable. The changes does not effect the code that is generated for the SQLite parser. Ticket #2164. (CVS 3591)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:f4ee5d83e177e7ed9f180454c01d46a395a5715d
User & Date: drh 2007-01-12 23:09:23
Context
2007-01-12
23:43
Fix a bug in sqlite3_prepare_v2() introduced by checkin (3578) and reported on the mailing list. (CVS 3592) check-in: 87248470 user: drh tags: trunk
23:09
Fix a bug in lemon. The code in which the error appears might well be unreachable. The changes does not effect the code that is generated for the SQLite parser. Ticket #2164. (CVS 3591) check-in: f4ee5d83 user: drh tags: trunk
2007-01-10
18:56
Make the AreFileApisANSI() call a macro with a value of 1 on wince. Ticket #2163. (CVS 3590) check-in: a72c950c user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to tool/lemon.c.

  3621   3621     free(ax);
  3622   3622   
  3623   3623     /* Output the yy_action table */
  3624   3624     fprintf(out,"static const YYACTIONTYPE yy_action[] = {\n"); lineno++;
  3625   3625     n = acttab_size(pActtab);
  3626   3626     for(i=j=0; i<n; i++){
  3627   3627       int action = acttab_yyaction(pActtab, i);
  3628         -    if( action<0 ) action = lemp->nsymbol + lemp->nrule + 2;
         3628  +    if( action<0 ) action = lemp->nstate + lemp->nrule + 2;
  3629   3629       if( j==0 ) fprintf(out," /* %5d */ ", i);
  3630   3630       fprintf(out, " %4d,", action);
  3631   3631       if( j==9 || i==n-1 ){
  3632   3632         fprintf(out, "\n"); lineno++;
  3633   3633         j = 0;
  3634   3634       }else{
  3635   3635         j++;