Lines Matching refs:pch

128 po_ungetc(struct ch *pch)  in po_ungetc()  argument
134 if (!pch->eof) { in po_ungetc()
135 backlen = pch->len; in po_ungetc()
136 (void) memcpy(backbuf, pch->buf, backlen); in po_ungetc()
217 struct ch *pch; in expand_es() local
219 pch = po_getc(); in expand_es()
220 if (pch->eof) { in expand_es()
225 if (pch->len > 1) { in expand_es()
227 return (pch); in expand_es()
232 switch (pch->buf[0]) { in expand_es()
235 och.buf[0] = pch->buf[0]; in expand_es()
267 c = pch->buf[0]; in expand_es()
273 pch = po_getc(); in expand_es()
274 if (pch->eof) { in expand_es()
279 if ((pch->len > 1) || (pch->buf[0] < '0') || in expand_es()
280 (pch->buf[0] > '7')) in expand_es()
282 c = pch->buf[0]; in expand_es()
284 po_ungetc(pch); in expand_es()
289 pch = po_getc(); in expand_es()
290 if (pch->eof) { in expand_es()
295 if (pch->len > 1) { in expand_es()
296 po_ungetc(pch); in expand_es()
300 c = pch->buf[0]; in expand_es()
302 po_ungetc(pch); in expand_es()
314 pch = po_getc(); in expand_es()
315 if (pch->eof) { in expand_es()
320 if (pch->len > 1) { in expand_es()
321 po_ungetc(pch); in expand_es()
325 c = pch->buf[0]; in expand_es()
327 po_ungetc(pch); in expand_es()
343 och.buf[0] = pch->buf[0]; in expand_es()
353 struct ch *pch; in yylex() local
358 pch = po_getc(); in yylex()
360 if (pch->eof) { in yylex()
365 if (pch->len > 1) { in yylex()
367 yylval.c.len = pch->len; in yylex()
368 (void) memcpy(yylval.c.buf, pch->buf, pch->len); in yylex()
372 switch (pch->buf[0]) { in yylex()
383 pch = po_getc(); in yylex()
384 while (!pch->eof && in yylex()
385 ((pch->len != 1) || (pch->buf[0] != '\n'))) { in yylex()
386 if (buf_pos + pch->len + 1 > buf_size) in yylex()
389 pch->buf, pch->len); in yylex()
390 buf_pos += pch->len; in yylex()
391 pch = po_getc(); in yylex()
400 return (pch->buf[0]); in yylex()
408 pch = po_getc(); in yylex()
410 if (pch->eof) { in yylex()
417 if (pch->len == 1) { in yylex()
418 uc = pch->buf[0]; in yylex()
428 pch = expand_es(); in yylex()
430 if (buf_pos + pch->len + 1 > buf_size) in yylex()
434 pch->buf, pch->len); in yylex()
435 buf_pos += pch->len; in yylex()
444 uc = pch->buf[0]; in yylex()
451 pch = po_getc(); in yylex()
452 while (!pch->eof && in yylex()
453 (pch->len == 1) && in yylex()
454 (isalpha(uc = pch->buf[0]) || in yylex()
460 pch = po_getc(); in yylex()
463 po_ungetc(pch); in yylex()
494 pch = po_getc(); in yylex()
495 while (!pch->eof && in yylex()
496 (pch->len == 1) && in yylex()
497 isdigit(uc = pch->buf[0])) { in yylex()
502 pch = po_getc(); in yylex()
505 po_ungetc(pch); in yylex()