Lines Matching refs:pp
55 number = pp.state; in ppbuiltin()
56 pp.state |= DISABLE|FILEPOP|NOSPACE; in ppbuiltin()
57 token = pp.token; in ppbuiltin()
58 p = pp.token = pp.tmpbuf; in ppbuiltin()
59 *(a = pp.args) = 0; in ppbuiltin()
65 switch (op = (int)hashget(pp.strtab, p)) in ppbuiltin()
69 p = pp.token = pp.valbuf; in ppbuiltin()
75 pp.state &= ~NOSPACE; in ppbuiltin()
86 if (op) pp.token = pp.toknxt; in ppbuiltin()
89 *pp.token = 0; in ppbuiltin()
90 pp.token = token; in ppbuiltin()
91 pp.state = number; in ppbuiltin()
94 p = pp.valbuf; in ppbuiltin()
113 pp.token = token; in ppbuiltin()
114 pp.state = number; in ppbuiltin()
118 pp.token = pp.valbuf; in ppbuiltin()
119 …if ((c = pplex()) != T_ID || !(sym = ppsymref(pp.symtab, pp.token)) || !sym->macro || sym->macro->… in ppbuiltin()
133 *pp.valbuf = 0; in ppbuiltin()
137 p = pp.token; in ppbuiltin()
138 if (pp.token > pp.valbuf) *pp.token++ = ' '; in ppbuiltin()
139 STRCOPY(pp.token, sym->name, a); in ppbuiltin()
140 *pp.token++ = '('; in ppbuiltin()
143 pp.token = p; in ppbuiltin()
147 pp.state &= ~NOSPACE; in ppbuiltin()
153 pp.token = pp.toknxt; in ppbuiltin()
156 *pp.token++ = ')'; in ppbuiltin()
157 pp.state |= NOSPACE; in ppbuiltin()
159 p = pp.valbuf; in ppbuiltin()
160 pp.token = token; in ppbuiltin()
161 pp.state = number; in ppbuiltin()
164 pp.token = token; in ppbuiltin()
173 strcpy(a, pp.token); in ppbuiltin()
175 pp.state = number; in ppbuiltin()
180 for (in = pp.in; in; in = in->prev) in ppbuiltin()
183 c = *((unsigned char*)(pp.macp->arg[0] - 2)); in ppbuiltin()
186 sfsprintf(p = pp.valbuf, MAXTOKEN, "%d", c); in ppbuiltin()
192 if (!(p = pp.date)) in ppbuiltin()
200 pp.date = p = strdup(a); in ppbuiltin()
207 sfsprintf(p = pp.valbuf, MAXTOKEN, "%d", error_info.line); in ppbuiltin()
210 p = pp.path; in ppbuiltin()
214 for (in = pp.in; in->prev; in = in->prev) in ppbuiltin()
219 p = pp.valbuf; in ppbuiltin()
220 …p[0] = ((pp.state & (COMPATIBILITY|TRANSITION)) || (pp.mode & (HOSTED|HOSTEDTRANSITION)) == (HOSTE… in ppbuiltin()
224 if (!(p = pp.time)) in ppbuiltin()
231 pp.time = p = strdup(p); in ppbuiltin()
235 p = (char*)pp.version; in ppbuiltin()
238 pp.state |= NEWLINE; in ppbuiltin()
239 pp.mode |= RELAX; in ppbuiltin()
240 strcpy(p = pp.valbuf, "#"); in ppbuiltin()
249 sfsprintf(p = pp.valbuf, MAXTOKEN, "%ld", ppoption(a)); in ppbuiltin()
252 p = (list = (struct pplist*)hashget(pp.prdtab, a)) ? list->value : ""; in ppbuiltin()
257 number = pp.state; in ppbuiltin()
258 pp.state |= NOSPACE|STRIP; in ppbuiltin()
260 pp.state = number; in ppbuiltin()
265 sfprintf(sp, "#%s %s\n", dirname(PRAGMA), pp.token); in ppbuiltin()
269 pp.state |= NEWLINE; in ppbuiltin()
280 #define BACK(a,p) ((a>p)?*--a:(number++?0:((p=pp.outbuf+PPBUFSIZ),(a=pp.outbuf+2*PPBUFSIZ),*--a))) in ppbuiltin()
281 #define PEEK(a,p) ((a>p)?*(a-1):(number?0:*(pp.outbuf+2*PPBUFSIZ-1))) in ppbuiltin()
283 number = pp.outbuf != pp.outb; in ppbuiltin()
284 a = pp.outp; in ppbuiltin()
285 p = pp.outb; in ppbuiltin()
332 p = pp.valbuf + 1; in ppbuiltin()
335 for (; a < pp.outbuf+2*PPBUFSIZ; *p++ = *a++); in ppbuiltin()
336 a = pp.outbuf; in ppbuiltin()
340 p = pp.valbuf + 1; in ppbuiltin()
355 p = strncpy(pp.funbuf, p, sizeof(pp.funbuf) - 1); in ppbuiltin()
356 else if (*pp.funbuf) in ppbuiltin()
357 p = pp.funbuf; in ppbuiltin()
362 if (pp.builtin && (a = (*pp.builtin)(pp.valbuf, p, a))) in ppbuiltin()
370 a = pp.tmpbuf; in ppbuiltin()
372 c = p != pp.valbuf; in ppbuiltin()
373 p = pp.valbuf + c; in ppbuiltin()
376 if (p < pp.valbuf + MAXTOKEN - 2) in ppbuiltin()
389 p = pp.valbuf + c; in ppbuiltin()
391 if (p == pp.valbuf) in ppbuiltin()
395 if (p == pp.valbuf + 1) in ppbuiltin()
396 *pp.valbuf = '"'; in ppbuiltin()
401 sfsprintf(pp.valbuf, MAXTOKEN, "\"%-.*s", MAXTOKEN - 2, p); in ppbuiltin()
403 PUSH_QUOTE(pp.valbuf, 1); in ppbuiltin()