Lines Matching refs:type

165 	const int type;  member
257 return p->type; in get_type()
263 int type; in get_standard_integer_type() local
269 type = FILE_BYTE; in get_standard_integer_type()
273 type = FILE_SHORT; in get_standard_integer_type()
289 type = FILE_LONG; in get_standard_integer_type()
293 type = FILE_QUAD; in get_standard_integer_type()
317 type = FILE_BYTE; in get_standard_integer_type()
320 type = FILE_SHORT; in get_standard_integer_type()
323 type = FILE_LONG; in get_standard_integer_type()
326 type = FILE_QUAD; in get_standard_integer_type()
337 type = FILE_LONG; in get_standard_integer_type()
342 return type; in get_standard_integer_type()
356 assert(p->type < FILE_NAMES_SIZE); in init_file_tables()
357 file_names[p->type] = p->name; in init_file_tables()
358 file_formats[p->type] = p->format; in init_file_tables()
638 switch (m->type) { in apprentice_magic_strength()
715 (void)fprintf(stderr, "Bad type %d\n", m->type); in apprentice_magic_strength()
833 switch (m->type) { in set_test_type()
913 size_t i = me->mp->type == FILE_NAME ? 1 : 0; in addentry()
1078 me[i].mp->type == FILE_DEFAULT) { in set_last_default()
1265 switch(m->type) { in file_signextend()
1327 m->type); in file_signextend()
1340 if (m->type != FILE_PSTRING && (m->str_flags & PSTRING_LEN) != 0) { in string_modifier_check()
1345 switch (m->type) { in string_modifier_check()
1386 m->type); in string_modifier_check()
1698 m->type = get_type(type_tbl, l + 1, &l); in parse()
1699 if (m->type == FILE_INVALID) { in parse()
1704 m->type = get_standard_integer_type(l, &l); in parse()
1707 if (m->type != FILE_INVALID) in parse()
1716 m->type = get_type(type_tbl, l, &l); in parse()
1717 if (m->type == FILE_INVALID) { in parse()
1724 m->type = get_standard_integer_type(l, &l); in parse()
1726 m->type = FILE_STRING; in parse()
1732 if (m->type == FILE_INVALID) { in parse()
1734 m->type = get_type(special_tbl, l, &l); in parse()
1737 if (m->type == FILE_INVALID) { in parse()
1752 if (!IS_LIBMAGIC_STRING(m->type)) in parse()
1759 m->str_flags = m->type == FILE_PSTRING ? PSTRING_1_LE : 0; in parse()
1761 if (!IS_LIBMAGIC_STRING(m->type)) { in parse()
1817 if (m->type != FILE_PSTRING) in parse()
1822 if (m->type != FILE_PSTRING) in parse()
1827 if (m->type != FILE_PSTRING) in parse()
1832 if (m->type != FILE_PSTRING) in parse()
1837 if (m->type != FILE_PSTRING) in parse()
1842 if (m->type != FILE_PSTRING) in parse()
2082 check_format_type(const char *ptr, int type) in check_format_type() argument
2090 switch (type) { in check_format_type()
2227 if (m->type >= file_nformats) { in check_format()
2232 if (file_formats[m->type] == FILE_FMT_NONE) { in check_format()
2234 "`%s'", m->desc, file_names[m->type]); in check_format()
2239 if (check_format_type(ptr, file_formats[m->type]) == -1) { in check_format()
2246 file_names[m->type], m->desc); in check_format()
2255 file_names[m->type], m->desc); in check_format()
2270 switch (m->type) { in getvalue()
2366 && (m->type != FILE_REGEX || in getstr()
2477 if (m->type == FILE_PSTRING) in getstr()
2944 if (IS_LIBMAGIC_STRING(m->type)) {
3014 if (ma[i].type != FILE_NAME)