Lines Matching refs:sym
352 register struct ppsymbol* sym = (struct ppsymbol*)v;
357 if ((mac = sym->macro) && !(sym->flags & (SYM_BUILTIN|SYM_PREDEFINED)))
359 ppprintf("%s", sym->name);
362 if (sym->flags & SYM_FUNCTION) flags |= LOAD_FUNCTION;
363 if (sym->flags & SYM_MULTILINE) flags |= LOAD_MULTILINE;
364 if (sym->flags & SYM_NOEXPAND) flags |= LOAD_NOEXPAND;
365 if (sym->flags & SYM_PREDICATE) flags |= LOAD_PREDICATE;
366 if (sym->flags & SYM_READONLY) flags |= LOAD_READONLY;
367 if (sym->flags & SYM_VARIADIC) flags |= LOAD_VARIADIC;
369 if (sym->flags & SYM_FUNCTION)
473 struct ppsymbol* sym;
651 sym = ppsymset(pp.symtab, b);
652 if (sym->macro)
660 if (pp.test & 0x1000) error(2, "checkpoint SKIP %s=%s [%s]", sym->name, s, sym->macro->value);
666 sym->flags = 0;
667 if (m & LOAD_FUNCTION) sym->flags |= SYM_FUNCTION;
668 if (m & LOAD_MULTILINE) sym->flags |= SYM_MULTILINE;
669 if (m & LOAD_NOEXPAND) sym->flags |= SYM_NOEXPAND;
670 if (m & LOAD_PREDICATE) sym->flags |= SYM_PREDICATE;
671 if (m & LOAD_READONLY) sym->flags |= SYM_READONLY;
672 if (m & LOAD_VARIADIC) sym->flags |= SYM_VARIADIC;
673 mac = sym->macro = newof(0, struct ppmacro, 1, 0);
674 if (sym->flags & SYM_FUNCTION)
677 if (*s++) error(3, "%-.48: checkpoint macro arity botched", sym->name);
689 if (pp.test & 0x1000) error(2, "checkpoint LOAD %s=%s", sym->name, mac->value);