Lines Matching refs:errorf

370 	else if ((mp->flags & MAGIC_VERBOSE) && mp->disc->errorf)
371 (*mp->disc->errorf)(mp, mp->disc, 2, "%s in indirect expression", *e);
384 if ((mp->flags & MAGIC_VERBOSE) && mp->disc->errorf)
387 (*mp->disc->errorf)(mp, mp->disc, 3, "regex: %s", buf);
1153 else if (mp->disc->errorf)
1154 (*mp->disc->errorf)(mp, mp->disc, 3, "out of space");
1673 else if ((mp->flags & MAGIC_VERBOSE) && mp->disc->errorf)
1674 (*mp->disc->errorf)(mp, mp->disc, 1, "{ ... } operator nesting too deep -- %d max", MAXNEST);
1679 if (mp->disc->errorf)
1680 (*mp->disc->errorf)(mp, mp->disc, 2, "`%c': invalid nesting", *p);
1706 if (mp->disc->errorf)
1707 (*mp->disc->errorf)(mp, mp->disc, 2, "%c: invalid function name", n);
1710 if (ret && mp->disc->errorf)
1711 (*mp->disc->errorf)(mp, mp->disc, 2, "%c: function has no return", ret->offset + 'a');
1720 if (*(p + 1) != ')' && mp->disc->errorf)
1721 (*mp->disc->errorf)(mp, mp->disc, 2, "%c: invalid function call argument list", n + 'a');
1733 else if (!(last->value.lab = fun[n]) && mp->disc->errorf)
1734 (*mp->disc->errorf)(mp, mp->disc, 2, "%c: function not defined", n + 'a');
1775 if ((mp->flags & MAGIC_VERBOSE) && !isalpha(*p) && mp->disc->errorf)
1776 (*mp->disc->errorf)(mp, mp->disc, 1, "`%c': invalid line continuation operator", *p);
1820 if ((mp->flags & MAGIC_VERBOSE) && mp->disc->errorf)
1821 (*mp->disc->errorf)(mp, mp->disc, 1, "not enough fields: `%s'", p);
1866 if ((mp->flags & MAGIC_VERBOSE) && mp->disc->errorf)
1867 (*mp->disc->errorf)(mp, mp->disc, 1, "not enough fields: `%s'", p);
2039 else if (*p && mp->disc->errorf)
2040 (*mp->disc->errorf)(mp, mp->disc, 1, "invalid characters after substitution: %s", p);
2076 if (mp->disc->errorf)
2077 (*mp->disc->errorf)(mp, mp->disc, 2, "%c: invalid function name", n);
2081 if (mp->disc->errorf)
2082 (*mp->disc->errorf)(mp, mp->disc, 2, "%c: function not defined", n + 'a');
2102 if ((mp->flags & MAGIC_VERBOSE) && mp->disc->errorf)
2103 (*mp->disc->errorf)(mp, mp->disc, 1, "%-.*s: unknown function", p - t, t);
2173 if ((mp->flags & MAGIC_VERBOSE) && mp->disc->errorf)
2176 (*mp->disc->errorf)(mp, mp->disc, 1, "too many } operators");
2178 (*mp->disc->errorf)(mp, mp->disc, 1, "not enough } operators");
2180 (*mp->disc->errorf)(mp, mp->disc, 2, "%c: function has no return", ret->offset + 'a');
2249 if (mp->disc->errorf)
2250 (*mp->disc->errorf)(mp, mp->disc, 3, "%s: cannot open magic file", s);
2268 if (mp->disc->errorf)
2269 (*mp->disc->errorf)(mp, mp->disc, 2, "cannot find magic file");
2275 if (mp->disc->errorf)
2276 (*mp->disc->errorf)(mp, mp->disc, 3, "out of space");
2308 mp->redisc.re_errorf = (regerror_t)disc->errorf;