Lines Matching refs:cmdptr
489 static char cmdbuf[LINSIZ], *cmdptr; variable
492 #define CHECKEND() BLANKS(cmdptr); if (*cmdptr) { BEEP(); break; }
534 cmdptr = cmdbuf; in command()
536 BLANKS(cmdptr); in command()
538 if ((len = mbtowc(&wc, cmdptr, MB_CUR_MAX)) <= 0) { in command()
539 wc = *cmdptr; in command()
542 cmdptr += len; in command()
592 BLANKS(cmdptr); in command()
593 if (!*cmdptr) { in command()
601 if ((sf = fopen(cmdptr, "w")) == NULL) { in command()
607 "saving file %s"), cmdptr); in command()
741 cmdptr--; in command()
742 cmdend = cmdptr + (strlen(cmdptr) - 1); in command()
745 for (p = cmdptr; p <= cmdend; p += len) { in command()
753 if (cmdend > cmdptr + 1) { in command()
754 if ((wc_e1 == *cmdptr) && in command()
762 if ((cmdptr < cmdend) && (wc_e == *cmdptr)) in command()
764 if (*cmdptr != '/') /* signify back search by - */ in command()
766 if (!search(++cmdptr, (off_t)nlines)) in command()
795 (void) execl(shell, shell, "-c", cmdptr, 0); in command()
831 p = cmdptr; in number()
844 cmdptr = p; in number()