Home | History | Annotate | Download | only in src

Lines Matching refs:cp

1001 	yylval.cp = Xclose(ws, wp);
1016 sp = yylval.cp;
1041 afree(yylval.cp, ATEMP);
1050 const char *cp = source->str;
1053 while (*cp == ' ' || *cp == '\t')
1064 ++cp;
1066 if (cp[0] != '(' || cp[1] != ')') {
1086 afree(yylval.cp, ATEMP);
1354 char *xp = Xstring(s->xs, xp), *cp;
1429 cp = Xstring(s->xs, xp);
1430 s->start = s->str = cp;
1443 cp = Xstring(s->xs, xp);
1444 while (*cp && ctype(*cp, C_IFSWS))
1445 ++cp;
1446 if (!*cp)
1495 char *cp = substitute(ps1, 0);
1496 strdupx(prompt, cp, saved_atemp);
1509 dopprompt(const char *cp, int ntruncate, bool doprint)
1522 if (*cp && cp[1] == '\r') {
1523 delimiter = *cp;
1524 cp += 2;
1526 for (; *cp; cp++) {
1527 if (indelimit && *cp != delimiter)
1529 else if (*cp == '\n' || *cp == '\r') {
1530 lines += columns / x_cols + ((*cp == '\n') ? 1 : 0);
1532 } else if (*cp == '\t') {
1534 } else if (*cp == '\b') {
1537 } else if (*cp == delimiter)
1539 else if (UTFMODE && ((unsigned char)*cp > 0x7F)) {
1541 columns += utf_widthadj(cp, &cp2);
1544 shf_write(cp, cp2 - cp, shl_out);
1545 cp = cp2 - /* loop increment */ 1;
1549 if (doprint && (*cp != delimiter) &&
1551 shf_putc(*cp, shl_out);
1560 pprompt(const char *cp, int ntruncate)
1562 dopprompt(cp, ntruncate, true);
1566 promptlen(const char *cp)
1568 return (dopprompt(cp, 0, false));