Lines Matching refs:mp

105 	struct magic *mp;  member
972 size_t sa = apprentice_magic_strength(ma->mp); in apprentice_sort()
973 size_t sb = apprentice_magic_strength(mb->mp); in apprentice_sort()
1106 size_t i = me->mp->type == FILE_NAME ? 1 : 0; in addentry()
1108 struct magic_entry *mp; in addentry() local
1111 if ((mp = CAST(struct magic_entry *, in addentry()
1112 erealloc(mset[i].me, sizeof(*mp) * mset[i].max))) == in addentry()
1114 file_oomem(ms, sizeof(*mp) * mset[i].max); in addentry()
1117 (void)memset(&mp[mset[i].count], 0, sizeof(*mp) * in addentry()
1119 mset[i].me = mp; in addentry()
1182 if (me.mp == NULL) { in load_1()
1212 if (me.mp) in load_1()
1240 set_test_type(me[starttest].mp, me[i].mp); in set_text_binary()
1244 me[i].mp->mimetype, in set_text_binary()
1245 me[i].mp->mimetype[0] == '\0' ? "" : "; ", in set_text_binary()
1246 me[i].mp->desc[0] ? me[i].mp->desc : "(no description)", in set_text_binary()
1247 me[i].mp->flag & BINTEST ? binary : text); in set_text_binary()
1248 if (me[i].mp->flag & BINTEST) { in set_text_binary()
1249 char *p = strstr(me[i].mp->desc, text); in set_text_binary()
1250 if (p && (p == me[i].mp->desc || in set_text_binary()
1252 (p + len - me[i].mp->desc == MAXstring in set_text_binary()
1258 } while (++i < nme && me[i].mp->cont_level != 0); in set_text_binary()
1267 if (me[i].mp->cont_level == 0 && in set_last_default()
1268 me[i].mp->type == FILE_DEFAULT) { in set_last_default()
1270 if (me[i].mp->cont_level == 0) in set_last_default()
1274 ms->line = me[i].mp->lineno; in set_last_default()
1301 (void)memcpy(*ma + mentrycount, me[i].mp, in coalesce_entries()
1316 efree(me[i].mp); in magic_entry_free()
1403 if (mset[j].me[i].mp->cont_level != 0) { in apprentice_load()
1849 if (me->mp == NULL) { in parse()
1857 m = &me->mp[me->cont_count - 1]; in parse()
1866 if ((nm = CAST(struct magic *, erealloc(me->mp, in parse()
1871 me->mp = nm; in parse()
1874 m = &me->mp[me->cont_count++]; in parse()
1879 if (me->mp != NULL) in parse()
1885 me->mp = m; in parse()
2238 struct magic *m = &me->mp[0]; in parse_strength()
2299 struct magic *m = &me->mp[me->cont_count == 0 ? 0 : me->cont_count - 1]; in parse_extra()
2349 struct magic *m = &me->mp[0]; in parse_apple()
2363 struct magic *m = &me->mp[0]; in parse_ext()
2378 struct magic *m = &me->mp[0]; in parse_mime()