Home | History | Annotate | Download | only in src

Lines Matching defs:cp

1009 	yylval.cp = Xclose(ws, wp);
1024 sp = yylval.cp;
1044 afree(yylval.cp, ATEMP);
1053 const char *cp = source->str;
1056 while (*cp == ' ' || *cp == '\t')
1066 ++cp;
1068 if (cp[0] != '(' || cp[1] != ')') {
1088 afree(yylval.cp, ATEMP);
1094 if (assign_command((dp = wdstrip(yylval.cp, 0)), true))
1349 char *xp = Xstring(s->xs, xp), *cp;
1424 cp = Xstring(s->xs, xp);
1425 rndpush(cp);
1426 s->start = s->str = cp;
1444 cp
1445 while (*cp && ctype(*cp, C_IFSWS))
1446 ++cp;
1447 if (!*cp) {
1502 char *cp = substitute(ps1, 0);
1503 strdupx(prompt, cp, saved_atemp);
1517 pprompt(const char *cp, int ntruncate)
1531 if (*cp && cp[1] == '\r') {
1532 delimiter = *cp;
1533 cp += 2;
1535 for (; *cp; cp++) {
1536 if (indelimit && *cp != delimiter)
1538 else if (*cp == '\n' || *cp == '\r') {
1539 lines += columns / x_cols + ((*cp == '\n') ? 1 : 0);
1541 } else if (*cp == '\t') {
1543 } else if (*cp == '\b') {
1546 } else if (*cp == delimiter)
1548 else if (UTFMODE && ((unsigned char)*cp > 0x7F)) {
1550 columns += utf_widthadj(cp, &cp2);
1553 shf_write(cp, cp2 - cp, shl_out);
1554 cp = cp2 - /* loop increment */ 1;
1558 if (doprint && (*cp != delimiter) &&
1560 shf_putc(*cp, shl_out);