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);
1188 else if (mp->disc->errorf)
1189 (*mp->disc->errorf)(mp, mp->disc, 3, "out of space");
1708 else if ((mp->flags & MAGIC_VERBOSE) && mp->disc->errorf)
1709 (*mp->disc->errorf)(mp, mp->disc, 1, "{ ... } operator nesting too deep -- %d max", MAXNEST);
1714 if (mp->disc->errorf)
1715 (*mp->disc->errorf)(mp, mp->disc, 2, "`%c': invalid nesting", *p);
1741 if (mp->disc->errorf)
1742 (*mp->disc->errorf)(mp, mp->disc, 2, "%c: invalid function name", n);
1745 if (ret && mp->disc->errorf)
1746 (*mp->disc->errorf)(mp, mp->disc, 2, "%c: function has no return", ret->offset + 'a');
1755 if (*(p + 1) != ')' && mp->disc->errorf)
1756 (*mp->disc->errorf)(mp, mp->disc, 2, "%c: invalid function call argument list", n + 'a');
1768 else if (!(last->value.lab = fun[n]) && mp->disc->errorf)
1769 (*mp->disc->errorf)(mp, mp->disc, 2, "%c: function not defined", n + 'a');
1810 if ((mp->flags & MAGIC_VERBOSE) && !isalpha(*p) && mp->disc->errorf)
1811 (*mp->disc->errorf)(mp, mp->disc, 1, "`%c': invalid line continuation operator", *p);
1855 if ((mp->flags & MAGIC_VERBOSE) && mp->disc->errorf)
1856 (*mp->disc->errorf)(mp, mp->disc, 1, "not enough fields: `%s'", p);
1901 if ((mp->flags & MAGIC_VERBOSE) && mp->disc->errorf)
1902 (*mp->disc->errorf)(mp, mp->disc, 1, "not enough fields: `%s'", p);
2074 else if (*p && mp->disc->errorf)
2075 (*mp->disc->errorf)(mp, mp->disc, 1, "invalid characters after substitution: %s", p);
2111 if (mp->disc->errorf)
2112 (*mp->disc->errorf)(mp, mp->disc, 2, "%c: invalid function name", n);
2116 if (mp->disc->errorf)
2117 (*mp->disc->errorf)(mp, mp->disc, 2, "%c: function not defined", n + 'a');
2137 if ((mp->flags & MAGIC_VERBOSE) && mp->disc->errorf)
2138 (*mp->disc->errorf)(mp, mp->disc, 1, "%-.*s: unknown function", p - t, t);
2208 if ((mp->flags & MAGIC_VERBOSE) && mp->disc->errorf)
2211 (*mp->disc->errorf)(mp, mp->disc, 1, "too many } operators");
2213 (*mp->disc->errorf)(mp, mp->disc, 1, "not enough } operators");
2215 (*mp->disc->errorf)(mp, mp->disc, 2, "%c: function has no return", ret->offset + 'a');
2284 if (mp->disc->errorf)
2285 (*mp->disc->errorf)(mp, mp->disc, 3, "%s: cannot open magic file", s);
2303 if (mp->disc->errorf)
2304 (*mp->disc->errorf)(mp, mp->disc, 2, "cannot find magic file");
2310 if (mp->disc->errorf)
2311 (*mp->disc->errorf)(mp, mp->disc, 3, "out of space");
2343 mp->redisc.re_errorf = (regerror_t)disc->errorf;