Lines Matching refs:sym
357 register struct ppsymbol* sym = (struct ppsymbol*)v;
362 if ((mac = sym->macro) && !(sym->flags & (SYM_BUILTIN|SYM_PREDEFINED)))
364 ppprintf("%s", sym->name);
367 if (sym->flags & SYM_FUNCTION) flags |= LOAD_FUNCTION;
368 if (sym->flags & SYM_MULTILINE) flags |= LOAD_MULTILINE;
369 if (sym->flags & SYM_NOEXPAND) flags |= LOAD_NOEXPAND;
370 if (sym->flags & SYM_PREDICATE) flags |= LOAD_PREDICATE;
371 if (sym->flags & SYM_READONLY) flags |= LOAD_READONLY;
372 if (sym->flags & SYM_VARIADIC) flags |= LOAD_VARIADIC;
374 if (sym->flags & SYM_FUNCTION)
478 struct ppsymbol* sym;
656 sym = ppsymset(pp.symtab, b);
657 if (sym->macro)
665 if (pp.test & 0x1000) error(2, "checkpoint SKIP %s=%s [%s]", sym->name, s, sym->macro->value);
671 sym->flags = 0;
672 if (m & LOAD_FUNCTION) sym->flags |= SYM_FUNCTION;
673 if (m & LOAD_MULTILINE) sym->flags |= SYM_MULTILINE;
674 if (m & LOAD_NOEXPAND) sym->flags |= SYM_NOEXPAND;
675 if (m & LOAD_PREDICATE) sym->flags |= SYM_PREDICATE;
676 if (m & LOAD_READONLY) sym->flags |= SYM_READONLY;
677 if (m & LOAD_VARIADIC) sym->flags |= SYM_VARIADIC;
678 mac = sym->macro = newof(0, struct ppmacro, 1, 0);
679 if (sym->flags & SYM_FUNCTION)
682 if (*s++) error(3, "%-.48: checkpoint macro arity botched", sym->name);
694 if (pp.test & 0x1000) error(2, "checkpoint LOAD %s=%s", sym->name, mac->value);