11 int _relistsize = LISTINCREMENT;
14 * save a new match in mp
17 _renewmatch(Resub *mp, int ms, Resublist *sp)
23 if(mp[0].s.sp==0 || sp->m[0].s.sp<mp[0].s.sp ||
24 (sp->m[0].s.sp==mp[0].s.sp && sp->m[0].e.ep>mp[0].e.ep)){
25 for(i=0; i<ms && i<NSUBEXP; i++)
28 mp[i].s.sp = mp[i].e.ep = 0;
33 * Note optimization in _renewthread:
34 * *lp must be pending when _renewthread called; if *l has been looked
35 * at already, the optimization is a bug.
38 _renewthread(Relist *lp, /* _relist to add to */
39 Reinst *ip, /* instruction to add */
40 Resublist *sep) /* pointers to subexpressions */
44 for(p=lp; p->inst; p++){
46 if((sep)->m[0].s.sp < p->se.m[0].s.sp)