Lines Matching refs:CAST

394 	if ((ml = CAST(struct mlist *, emalloc(sizeof(*ml)))) == NULL)  in add_mlist()
490 if ((ms = CAST(struct magic_set *, ecalloc((size_t)1, in file_ms_alloc()
502 if ((ms->c.li = CAST(struct level_info *, emalloc(len))) == NULL) in file_ms_alloc()
548 if ((mlist = CAST(struct mlist *, ecalloc(1, sizeof(*mlist)))) == NULL) { in mlist_alloc()
566 apprentice_unmap(CAST(struct magic_map *, ml->map)); in mlist_free()
879 const struct magic_entry *ma = CAST(const struct magic_entry *, a); in apprentice_sort()
880 const struct magic_entry *mb = CAST(const struct magic_entry *, b); in apprentice_sort()
1018 if ((mp = CAST(struct magic_entry *, in addentry()
1200 if ((*ma = CAST(struct magic *, emalloc(slen))) == NULL) { in coalesce_entries()
1244 if ((map = CAST(struct magic_map *, ecalloc(1, sizeof(*map)))) == NULL) in apprentice_load()
1282 if ((filearr = CAST(char **, in apprentice_load()
1629 m->str_range = CAST(uint32_t, strtoul(l, &t, 0)); in parse_string_modifier()
1765 if ((nm = CAST(struct magic *, erealloc(me->mp, in parse()
1771 me->max_count = CAST(uint32_t, cnt); in parse()
1780 if ((m = CAST(struct magic *, emalloc(len))) == NULL) { in parse()
1791 m->lineno = CAST(uint32_t, lineno); in parse()
2174 char *buf = CAST(char *, CAST(void *, m)) + off; in parse_extra()
2224 CAST(off_t, offsetof(struct magic, apple)), in parse_apple()
2237 CAST(off_t, offsetof(struct magic, ext)), in parse_ext()
2251 CAST(zend_off_t, offsetof(struct magic, mimetype)), in parse_mime()
2740 m->vallen = CAST(unsigned char, (p - origp)); in getstr()
2857 if ((map = CAST(struct magic_map *, ecalloc(1, sizeof(*map)))) == NULL) { in apprentice_buf()
2889 if ((map = CAST(struct magic_map *, ecalloc(1, sizeof(*map)))) == NULL) { in apprentice_map()
2930 if ((map->p = CAST(void *, emalloc(map->len))) == NULL) { in apprentice_map()
2983 map->magic[0] = CAST(struct magic *, map->p) + 1; in apprentice_map()
3027 ptr = CAST(uint32_t *, map->p); in check_buffer()
3053 map->magic[0] = CAST(struct magic *, map->p) + 1; in check_buffer()