Lines Matching refs:ap
33 Ptprefix_t* ap;
40 ap = (Ptprefix_t*)dtfirst(a->dict);
42 while (ap)
44 if (!bp || ap->max < bp->min)
46 if (!ptinsert(t, ap->min, ap->max))
48 ap = (Ptprefix_t*)dtnext(a->dict, ap);
50 else if (ap->min > bp->max)
54 if (ap->min < bp->min && !ptinsert(t, ap->min, bp->min - 1))
56 if (ap->max < bp->max)
57 ap = (Ptprefix_t*)dtnext(a->dict, ap);
58 else if (ap->max == bp->max)
60 ap = (Ptprefix_t*)dtnext(a->dict, ap);
65 while (ap->max > bp->max)
68 if (!(bp = (Ptprefix_t*)dtnext(b->dict, bp)) || bp->min > ap->max)
70 if (!ptinsert(t, m, ap->max))
77 ap = (Ptprefix_t*)dtnext(a->dict, ap);