Lines Matching refs:wp
21 static void tputS ARGS((char *wp, struct shf *shf));
294 tputS(wp, shf) in tputS() argument
295 char *wp; in tputS()
308 switch ((c = *wp++)) {
312 tputC(*wp++, shf);
315 c = *wp++;
323 while (*wp != 0)
324 tputC(*wp++, shf);
326 wp++;
332 while (*wp != 0)
333 tputC(*wp++, shf);
336 wp++;
348 if (*wp++ == '{')
350 while ((c = *wp++) != 0)
354 if (*wp++ == '}')
359 tputc(*wp++, shf);
529 wdcopy(wp, ap) in wdcopy() argument
530 const char *wp; in wdcopy()
533 size_t len = wdscan(wp, EOS) - wp;
534 return memcpy(alloc(len, ap), wp, len);
539 wdscan(wp, c) in wdscan() argument
540 const char *wp; in wdscan()
546 switch (*wp++) {
548 return (char *) __UNCONST(wp);
551 wp++;
555 while (*wp++ != 0)
563 while (*wp++ != '\0')
567 wp++;
569 return (char *) __UNCONST(wp);
575 wp++;
579 if (c == wp[-1] && nest == 0)
580 return (char *) __UNCONST(wp);
581 if (wp[-1] == CPAT)
588 wp[-1]);
597 wdstrip(wp) in wdstrip() argument
598 const char *wp; in wdstrip()
611 switch ((c = *wp++)) {
616 shf_putchar(*wp++, &shf);
621 while (*wp != 0)
622 shf_putchar(*wp++, &shf);
629 while (*wp != 0)
630 shf_putchar(*wp++, &shf);
640 if (*wp++ == '{')
642 while ((c = *wp++) != 0)
646 if (*wp++ == '}')
651 shf_putchar(*wp++, &shf);