Fix token destructors in lemon generated parsers. Does not effect SQLite.
Ticket #3299. (CVS 5563) FossilOrigin-Name: 4887e8fc4af9e2963b3eff3187dee5b0d6297eb5
This commit is contained in:
+1
-1
@@ -3315,7 +3315,7 @@ PRIVATE void translate_code(struct lemon *lemp, struct rule *rp){
|
||||
lemp->errorcnt++;
|
||||
}else if( rp->rhsalias[i]==0 ){
|
||||
if( has_destructor(rp->rhs[i],lemp) ){
|
||||
append_str(" yy_destructor(%d,&yymsp[%d].minor);\n", 0,
|
||||
append_str(" yy_destructor(yypParser,%d,&yymsp[%d].minor);\n", 0,
|
||||
rp->rhs[i]->index,i-rp->nrhs+1);
|
||||
}else{
|
||||
/* No destructor defined for this term */
|
||||
|
||||
Reference in New Issue
Block a user