int tokexp,tpl;
int expsize,toksize,exact;
int xsekt=0;
+ int fromstackneeded=0;
bp = &coderules[cindex];
#ifndef NDEBUG
if (stackheight < tpl) {
if (xsekt)
return(MAXINT);
+ fromstackneeded = tpl - stackheight;
tpl = stackheight;
} else
if (stackheight != tpl && xsekt==2)
} else
exact++;
}
- if (exact==tpl) {
+ if (exact==tpl && ! fromstackneeded) {
if (xsekt)
return(0);
return(10-exact);
}
- return(20-exact);
+ return(20-exact+fromstackneeded);
}
unsigned costcalc(cost) cost_t cost; {