Lines Matching refs:ent

126 	register Ent_t*	ent = (Ent_t*)object;  in drop()  local
129 while (cap = ent->cap) in drop()
131 ent->cap = cap->next; in drop()
134 free(ent); in drop()
144 register Ent_t* ent; in mimeset() local
240 ent = (Ent_t*)dtmatch(mp->cap, s); in mimeset()
243 if (ent) in mimeset()
248 for (pud = 0, dup = ent->cap; dup; pud = dup, dup = dup->next) in mimeset()
256 ent->cap = cap; in mimeset()
258 ent->pac = cap; in mimeset()
264 ent->pac = ent->pac->next = cap; in mimeset()
266 else if (!(ent = newof(0, Ent_t, 1, strlen(s) + 1))) in mimeset()
270 strcpy(ent->name, s); in mimeset()
271 ent->cap = ent->pac = cap; in mimeset()
272 dtinsert(mp->cap, ent); in mimeset()
275 else if (ent && (flags & MIME_REPLACE)) in mimeset()
276 dtdelete(mp->cap, ent); in mimeset()
344 register Ent_t* ent = (Ent_t*)object; in list() local
348 …if (!wp->pattern || !strncasecmp(ent->name, wp->pattern, wp->prefix) && (!ent->name[wp->prefix] ||… in list()
351 for (cap = ent->cap; cap; cap = cap->next) in list()
353 sfprintf(wp->fp, "%s", ent->name); in list()
387 Ent_t* ent; in find() local
392 if ((ent = (Ent_t*)dtmatch(mp->cap, type)) || in find()
395 return ent; in find()
417 if (ent = (Ent_t*)dtmatch(mp->cap, s)) in find()
418 return ent; in find()
425 if (ent = (Ent_t*)dtmatch(mp->cap, s)) in find()
426 return ent; in find()
444 Ent_t* ent; in mimelist() local
455 else if (ent = find(mp, ws.pattern)) in mimelist()
458 list(mp->cap, ent, &ws); in mimelist()
604 register Ent_t* ent; in mimeview() local
610 if (ent = find(mp, type)) in mimeview()
612 cap = ent->cap; in mimeview()