Lines Matching refs:mentry
911 struct magic_entry **mentry, uint32_t *mentrycount) in addentry() argument
919 erealloc(mentry[i], sizeof(*mp) * maxmagic[i]))) == in addentry()
926 mentry[i] = mp; in addentry()
928 mentry[i][mentrycount[i]++] = *me; in addentry()
938 struct magic_entry **mentry, uint32_t *mentrycount) in load_1() argument
1015 (void)addentry(ms, &me, mentry, mentrycount); in load_1()
1024 (void)addentry(ms, &me, mentry, mentrycount); in load_1()
1134 struct magic_entry *mentry[MAGIC_SETS] = { NULL }; in apprentice_load() local
1207 load_1(ms, action, filearr[i], &errs, mentry, in apprentice_load()
1213 load_1(ms, action, fn, &errs, mentry, mentrycount); in apprentice_load()
1220 if (mentry[j][i].mp->cont_level != 0) { in apprentice_load()
1224 i = set_text_binary(ms, mentry[j], mentrycount[j], i); in apprentice_load()
1226 qsort(mentry[j], mentrycount[j], sizeof(*mentry[j]), in apprentice_load()
1233 set_last_default(ms, mentry[j], mentrycount[j]); in apprentice_load()
1236 if (coalesce_entries(ms, mentry[j], mentrycount[j], in apprentice_load()
1245 magic_entry_free(mentry[j], mentrycount[j]); in apprentice_load()