Lines Matching refs:m
53 file_mdump(struct magic *m) in file_mdump() argument
58 (void) fprintf(stderr, "%u: %.*s %u", m->lineno, in file_mdump()
59 (m->cont_level & 7) + 1, ">>>>>>>>", m->offset); in file_mdump()
61 if (m->flag & INDIR) { in file_mdump()
64 (m->in_type < file_nnames) ? file_names[m->in_type] : in file_mdump()
66 if (m->in_op & FILE_OPINVERSE) in file_mdump()
69 (CAST(size_t, m->in_op & FILE_OPS_MASK) < in file_mdump()
71 optyp[m->in_op & FILE_OPS_MASK] : '?', m->in_offset); in file_mdump()
73 (void) fprintf(stderr, " %s%s", (m->flag & UNSIGNED) ? "u" : "", in file_mdump()
75 (m->type < file_nnames) ? file_names[m->type] : "*bad type"); in file_mdump()
76 if (m->mask_op & FILE_OPINVERSE) in file_mdump()
79 if (IS_LIBMAGIC_STRING(m->type)) { in file_mdump()
80 if (m->str_flags) { in file_mdump()
82 if (m->str_flags & STRING_COMPACT_WHITESPACE) in file_mdump()
84 if (m->str_flags & STRING_COMPACT_OPTIONAL_WHITESPACE) in file_mdump()
87 if (m->str_flags & STRING_IGNORE_LOWERCASE) in file_mdump()
89 if (m->str_flags & STRING_IGNORE_UPPERCASE) in file_mdump()
91 if (m->str_flags & REGEX_OFFSET_START) in file_mdump()
93 if (m->str_flags & STRING_TEXTTEST) in file_mdump()
95 if (m->str_flags & STRING_BINTEST) in file_mdump()
97 if (m->str_flags & PSTRING_1_BE) in file_mdump()
99 if (m->str_flags & PSTRING_2_BE) in file_mdump()
101 if (m->str_flags & PSTRING_2_LE) in file_mdump()
103 if (m->str_flags & PSTRING_4_BE) in file_mdump()
105 if (m->str_flags & PSTRING_4_LE) in file_mdump()
107 if (m->str_flags & PSTRING_LENGTH_INCLUDES_ITSELF) in file_mdump()
112 if (m->str_range) in file_mdump()
113 (void) fprintf(stderr, "/%u", m->str_range); in file_mdump()
116 if (CAST(size_t, m->mask_op & FILE_OPS_MASK) < in file_mdump()
118 (void) fputc(optyp[m->mask_op & FILE_OPS_MASK], stderr); in file_mdump()
122 if (m->num_mask) { in file_mdump()
124 CAST(unsigned long long, m->num_mask)); in file_mdump()
127 (void) fprintf(stderr, ",%c", m->reln); in file_mdump()
129 if (m->reln != 'x') { in file_mdump()
130 switch (m->type) { in file_mdump()
140 (void) fprintf(stderr, "%d", m->value.l); in file_mdump()
146 CAST(long long, m->value.q)); in file_mdump()
154 file_showstr(stderr, m->value.s, in file_mdump()
155 CAST(size_t, m->vallen)); in file_mdump()
162 file_fmttime(m->value.l, 0, tbuf)); in file_mdump()
169 file_fmttime(m->value.l, FILE_T_LOCAL, tbuf)); in file_mdump()
175 file_fmttime(m->value.q, 0, tbuf)); in file_mdump()
181 file_fmttime(m->value.q, FILE_T_LOCAL, tbuf)); in file_mdump()
187 file_fmttime(m->value.q, FILE_T_WINDOWS, tbuf)); in file_mdump()
192 (void) fprintf(stderr, "%G", m->value.f); in file_mdump()
197 (void) fprintf(stderr, "%G", m->value.d); in file_mdump()
205 (void) fprintf(stderr, "'%s'", m->value.s); in file_mdump()
208 (void) fprintf(stderr, "*bad type %d*", m->type); in file_mdump()
212 (void) fprintf(stderr, ",\"%s\"]\n", m->desc); in file_mdump()