Lines Matching refs:ml

372 	struct mlist *ml;  in add_mlist()  local
374 if ((ml = CAST(struct mlist *, emalloc(sizeof(*ml)))) == NULL) in add_mlist()
377 ml->map = idx == 0 ? map : NULL; in add_mlist()
378 ml->magic = map->magic[idx]; in add_mlist()
379 ml->nmagic = map->nmagic[idx]; in add_mlist()
381 mlp->prev->next = ml; in add_mlist()
382 ml->prev = mlp->prev; in add_mlist()
383 ml->next = mlp; in add_mlist()
384 mlp->prev = ml; in add_mlist()
394 struct mlist *ml; in apprentice_1() local
425 file_oomem(ms, sizeof(*ml)); in apprentice_1()
530 struct mlist *ml; in mlist_free() local
535 for (ml = mlist->next; ml != mlist;) { in mlist_free()
536 struct mlist *next = ml->next; in mlist_free()
537 if (ml->map) in mlist_free()
538 apprentice_unmap(ml->map); in mlist_free()
539 efree(ml); in mlist_free()
540 ml = next; in mlist_free()
542 efree(ml); in mlist_free()
815 struct mlist *ml; in apprentice_list() local
816 for (ml = mlist->next; ml != mlist; ml = ml->next) { in apprentice_list()
817 for (magindex = 0; magindex < ml->nmagic; magindex++) { in apprentice_list()
818 struct magic *m = &ml->magic[magindex]; in apprentice_list()
821 while (magindex + 1 < ml->nmagic && in apprentice_list()
822 ml->magic[magindex + 1].cont_level != 0) in apprentice_list()
831 while (magindex + 1 < ml->nmagic && in apprentice_list()
832 ml->magic[magindex + 1].cont_level != 0 && in apprentice_list()
833 *ml->magic[magindex].desc == '\0' && in apprentice_list()
834 *ml->magic[magindex].mimetype == '\0') in apprentice_list()
839 ml->magic[magindex].desc, in apprentice_list()
840 ml->magic[magindex].mimetype); in apprentice_list()
3006 struct mlist *mlist, *ml; local
3010 for (ml = mlist->next; ml != mlist; ml = ml->next) {
3011 struct magic *ma = ml->magic;
3012 uint32_t nma = ml->nmagic;