Lines Matching refs:pp

51 	state = (pp.state & ~DISABLE);
53 pptoken = pp.token;
54 pp.token = file;
55 pp.state |= HEADER|PASSEOF;
57 pp.state &= ~HEADER;
58 pp.token = pptoken;
75 if (pathaccess(pp.token, file, NiL, 0, pp.path, MAXTOKEN + 1))
77 pathcanon(pp.path, 0, 0);
78 message((-2, "%s: %s found", pred, pp.path));
85 strcpy(pp.path, file);
100 pp.state = state;
117 state = (pp.state & ~DISABLE);
119 pp.state |= PASSEOF;
120 pptoken = pp.token;
121 pp.token = tmp;
124 pp.token = pptoken;
128 c = strcmp(tmp, pp.token);
129 else if ((c = regcomp(&re, pp.token, REG_AUGMENTED|REG_LENIENT|REG_NULL)) || (c = regexec(&re, tmp, NiL, 0, 0)) && c != REG_NOMATCH)
136 if ((pp.state & PASSEOF) && pplex())
138 pp.state = state;
141 pp.token = pptoken;
144 pp.state = state;
167 index = (int)hashref(pp.strtab, pp.token);
180 if (pp.macref) pprefmac(pp.token, REF_IF);
183 strcpy(pred, pp.token);
184 pp.state |= DISABLE;
186 pp.state &= ~DISABLE;
196 if (index && !(pp.state & STRICT))
198 if (pp.macref) pprefmac(pred, REF_IF);
201 args = pp.args;
208 if ((pp.state & STRICT) && !(pp.mode & HOSTED)) switch (index)
224 if (pp.hosted == 1 && pp.in->prev->type == IN_FILE)
226 pp.mode |= HOSTED;
227 pp.flags |= PP_hosted;
229 return *(args + 9) ? (int)hashref(pp.strtab, args + 9) : 1;
240 else if (((sym = pprefmac(args, REF_IF)) || (sym = ppsymref(pp.symtab, args))) && (sym->flags & SYM_NOTICED)) return 1;
248 if (warn && !(pp.mode & HOSTED) && (sym = ppsymref(pp.symtab, pred)) && (sym->flags & SYM_PREDICATE))
250 if (p = (struct pplist*)hashget(pp.prdtab, pred))
288 if (!errmsg && !(pp.mode & INACTIVE)) errmsg = "more tokens expected";
319 if (!errmsg && !(pp.mode & INACTIVE)) errmsg = "too many )'s";
328 if (!errmsg && !(pp.mode & INACTIVE)) errmsg = "closing ) expected";
334 if (!errmsg && !(pp.mode & INACTIVE)) errmsg = "operator expected";
348 x = pp.mode;
349 pp.mode |= INACTIVE;
351 pp.mode = x;
361 if (!errmsg && !(pp.mode & INACTIVE)) errmsg = ": expected for ? operator";
382 x = pp.mode;
383 pp.mode |= INACTIVE;
385 pp.mode = x;
509 if (!errmsg && !(pp.mode & INACTIVE)) errmsg = "divide by zero";
516 pp.state |= DISABLE;
518 pp.state &= ~DISABLE;
521 if (!errmsg && !(pp.mode & INACTIVE)) errmsg = "# must precede a predicate identifier";
530 c = *(pp.toknxt - 1);
531 *(pp.toknxt - 1) = 0;
532 n = chrtoi(pp.token + 1);
533 *(pp.toknxt - 1) = c;
536 if (!(pp.mode & HOSTED))
537 error(1, "'%s': multi-character character constants are not portable", pp.token);
557 n = strtoul(pp.token, NiL, 0);
561 n = chrtoi(pp.token);
564 if (!errmsg && !(pp.mode & INACTIVE)) errmsg = "invalid token";
575 if (!errmsg && !(pp.mode & INACTIVE)) errmsg = "operand expected";
594 ppstate = (pp.state & (CONDITIONAL|DISABLE|NOSPACE|STRIP));
595 pp.state &= ~(DISABLE|STRIP);
596 pp.state |= CONDITIONAL|NOSPACE;
601 if (peektoken == ':' && !errmsg && !(pp.mode & INACTIVE)) errmsg = "invalid use of :";
609 pp.state &= ~(CONDITIONAL|NOSPACE);
610 pp.state |= ppstate;
623 switch ((int)hashget(pp.strtab, s))
626 return pp.mode & ALLMULTIPLE;
628 return pp.mode & BUILTIN;
630 return pp.mode & CATLITERAL;
632 return pp.state & COMPATIBILITY;
636 return pp.option & ELSEIF;
638 return pp.option & FINAL;
640 return pp.mode & HOSTED;
642 return pp.flags & PP_hosted;
644 return pp.option & INITIAL;
646 return pp.option & KEYARGS;
648 return pp.flags & PP_linebase;
650 return pp.flags & PP_linefile;
652 return pp.flags & PP_linetype;
654 return pp.option & PLUSCOMMENT;
656 return pp.option & PLUSPLUS;
658 return pp.option & PLUSSPLICE;
660 return pp.option & PRAGMAEXPAND;
662 return pp.option & PREDEFINED;
664 return pp.option & PREFIX;
666 return pp.option & PROTOTYPED;
668 return pp.mode & READONLY;
670 return pp.option & REGUARD;
672 return pp.state & SPACEOUT;
674 return pp.option & SPLICECAT;
676 return pp.option & SPLICESPACE;
678 return pp.state & STRICT;
680 return pp.option & STRINGSPAN;
682 return pp.option & STRINGSPLIT;
684 return pp.test;
686 return !(pp.state & NOTEXT);
688 return pp.state & TRANSITION;
690 return pp.truncate;
692 return pp.state & WARN;
694 if (pp.state & WARN) error(1, "%s: unknown option name", s);