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