Lines Matching refs:sym
41 ppcall(register struct ppsymbol* sym, int tok) in ppcall() argument
62 sym->flags |= SYM_NOTICED; in ppcall()
63 if (mac = sym->macro) in ppcall()
66 if ((sym->flags & SYM_PREDICATE) && (pp.state & (CONDITIONAL|WARN)) == (CONDITIONAL|WARN)) in ppcall()
67 error(1, "%s: macro definition overrides assertion: use #%s ...", sym->name, sym->name); in ppcall()
68 if (sym->flags & SYM_DISABLED) in ppcall()
76 error(1, "%s: macro recursion inhibited", sym->name); in ppcall()
80 if ((sym->flags & SYM_PREDEFINED) && !(pp.mode & (HOSTED|INACTIVE))) in ppcall()
83 if (*sym->name != '_' && !(pp.state & COMPATIBILITY)) in ppcall()
85 if (*sym->name != '_') in ppcall()
90 error(1, "%s: obsolete predefined symbol expansion disabled", sym->name); in ppcall()
93 …error(1, "%s: obsolete predefined symbol expanded%s", sym->name, (pp.state & DIRECTIVE) ? "" : " o… in ppcall()
96 error(1, "%s: predefined symbol expanded outside of directive", sym->name); in ppcall()
98 debug((-5, "macro %s = %s", sym->name, mac->value)); in ppcall()
100 …(*pp.macref)(sym, error_info.file, error_info.line, (pp.state & CONDITIONAL) ? REF_IF : REF_NORMAL… in ppcall()
138 PUSH_TUPLE(sym, tp->token); in ppcall()
177 if (sym->flags & SYM_FUNCTION) in ppcall()
191 error(3, "%s: too many nested function-like macros", sym->name); in ppcall()
216 error(1, "%s: macro arguments omitted", sym->name); in ppcall()
248 sym->flags |= SYM_ACTIVE; in ppcall()
301 error(3, "%s: too many nested function-like macros", sym->name); in ppcall()
328 if (!n && (m++, (c < mac->arity - 1 || !(sym->flags & SYM_VARIADIC)))) in ppcall()
346 error(1, "%s: macro call argument %d is null", sym->name, c + 1); in ppcall()
365 2, "%s: %s in macro argument list", sym->name, pptokchr(0)); in ppcall()
398 error(2, "%s: macro call starts and ends in different files", sym->name); in ppcall()
401 sym->flags &= ~SYM_ACTIVE; in ppcall()
406 if (p > mp->arg[0] && ++m || (sym->flags & SYM_VARIADIC)) in ppcall()
408 if (c != mac->arity && !(sym->flags & SYM_EMPTY)) in ppcall()
411 if (!(sym->flags & SYM_VARIADIC)) in ppcall()
412 error(1, "%s: %d actual argument%s expected", sym->name, n, n == 1 ? "" : "s"); in ppcall()
414 error(1, "%s: at least %d actual argument%s expected", sym->name, n, n == 1 ? "" : "s"); in ppcall()
430 if (!tok && (sym->flags & SYM_NOEXPAND)) in ppcall()
432 if (sym->flags & SYM_FUNCTION) in ppcall()
438 if (sym->flags & SYM_MULTILINE) in ppcall()
439 PUSH_MULTILINE(sym); in ppcall()
441 PUSH_MACRO(sym); in ppcall()
446 …if (ret < 0 && sym->hidden && !(pp.mode & EXPOSE) && !(pp.state & HEADER) && (pp.in->type == IN_FI… in ppcall()
451 sfsprintf(pp.hidebuf, MAXTOKEN, "_%d_%s_hIDe", inp->index, sym->name); in ppcall()