Lines Matching defs:tab
111 * insert prefix range min..max into tab
116 ptinsert(Pt_t* tab, Ptaddr_t min, Ptaddr_t max)
122 tab->entries++;
124 if (!(xp = (Ptprefix_t*)dtsearch(tab->dict, &key)))
125 xp = (Ptprefix_t*)dtnext(tab->dict, &key);
141 xp = (Ptprefix_t*)dtnext(tab->dict, xp);
142 dtdelete(tab->dict, pp);
148 return (Ptprefix_t*)dtinsert(tab->dict, &key);
152 * delete prefix range min..max from tab
157 ptdelete(Pt_t* tab, Ptaddr_t min, Ptaddr_t max)
163 tab->entries++;
166 if (xp = (Ptprefix_t*)dtsearch(tab->dict, &key))
172 dtdelete(tab->dict, xp);
177 if (!dtinsert(tab->dict, &cur))
183 if (!dtinsert(tab->dict, &cur))
191 if (!dtinsert(tab->dict, xp))
194 } while (xp = (Ptprefix_t*)dtnext(tab->dict, xp));
198 if (tab->disc->errorf)
199 (*tab->disc->errorf)(NiL, tab->disc, ERROR_SYSTEM|2, "out of space");