/ Check-in [4887e8fc]
Login

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

Overview
Comment:Fix token destructors in lemon generated parsers. Does not effect SQLite. Ticket #3299. (CVS 5563)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:4887e8fc4af9e2963b3eff3187dee5b0d6297eb5
User & Date: drh 2008-08-13 20:04:30
Context
2008-08-13
20:09
Explicit casts of the return from strlen() to int in lemon. This has no effect on SQLite. It has no effect on any lemon-generated parser with a grammar that is less than 2GB in size. Ticket #3293. (CVS 5564) check-in: a519cdb2 user: drh tags: trunk
20:04
Fix token destructors in lemon generated parsers. Does not effect SQLite. Ticket #3299. (CVS 5563) check-in: 4887e8fc user: drh tags: trunk
19:11
Additional changes toward fixing ticket #3292. (CVS 5562) check-in: 0b92cbf5 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to tool/lemon.c.

  3311   3311       if( rp->rhsalias[i] && !used[i] ){
  3312   3312         ErrorMsg(lemp->filename,rp->ruleline,
  3313   3313           "Label %s for \"%s(%s)\" is never used.",
  3314   3314           rp->rhsalias[i],rp->rhs[i]->name,rp->rhsalias[i]);
  3315   3315         lemp->errorcnt++;
  3316   3316       }else if( rp->rhsalias[i]==0 ){
  3317   3317         if( has_destructor(rp->rhs[i],lemp) ){
  3318         -        append_str("  yy_destructor(%d,&yymsp[%d].minor);\n", 0,
         3318  +        append_str("  yy_destructor(yypParser,%d,&yymsp[%d].minor);\n", 0,
  3319   3319              rp->rhs[i]->index,i-rp->nrhs+1);
  3320   3320         }else{
  3321   3321           /* No destructor defined for this term */
  3322   3322         }
  3323   3323       }
  3324   3324     }
  3325   3325     if( rp->code ){