Lines Matching refs:xbuf
934 static char *xbuf; /* beg input buffer */
1269 xbp = xbuf = buf;
1332 i = xep - xbuf;
1456 if (xcp == xbuf) {
1462 } while ((++i < x_arg) && (xcp != xbuf));
1544 x_e_putc2((xep > xlp) ? '>' : (xbp > xbuf) ? '<' : ' ');
1592 if (cp == xbuf) {
1597 while (cp != xbuf && ctype(cp[-1], C_MFS)) {
1601 while (cp != xbuf && !ctype(cp[-1], C_MFS)) {
1635 cp = cp >= xep ? xep : x_bs0(cp, xbuf);
1720 if (xcp == xbuf) {
1726 if (xcp == xbuf)
1764 (cp = strstr(xbuf, tmp)) == NULL) {
1785 if (p-- == xbuf)
1891 strlcpy(holdbufp, xbuf, LINE);
1892 strlcpy(xbuf, sp, xend - xbuf);
1893 xbp = xbuf;
1894 xep = xcp = strnul(xbuf);
1914 if (xep == xbuf && x_arg_defaulted)
1924 int offset = -1; /* offset of match in xbuf, else -1 */
1983 offset = x_match(xbuf, pat);
1985 x_goto(xbuf + offset + (p - pat) -
2022 x_goto(xbuf + i + patlen);
2051 size_t curs = xcp - xbuf;
2054 if (strncmp(xbuf, *hp, curs) == 0) {
2056 x_goto(xbuf + curs);
2081 x_push(xep - (xcp = xbuf));
2082 xlp = xbp = xep = xbuf;
2101 x_goto(xbuf);
2171 if (xbp == xbuf)
2178 lch = xep > xlp ? (xbp > xbuf ? '*' : '>') : (xbp > xbuf) ? '<' : ' ';
2205 if (xcp == xbuf) {
2209 if (xcp - xbuf == 1) {
2285 size_t col = xcp - xbuf;
2286 size_t lastcol = xep - xbuf;
2292 x_goto(xbuf + narg);
2357 strip_nuls(xbuf, xep - xbuf);
2358 if (*xbuf)
2359 histsave(&source->line, xbuf, HIST_STORE, true);
2360 xlp = xep = xcp = xbp = xbuf;
2783 nwords = x_cf_glob(&i, xbuf, xep - xbuf, xcp - xbuf,
2790 x_goto(xbuf + start);
2817 nwords = x_cf_glob(&flags, xbuf, xep - xbuf, xcp - xbuf,
2844 strndupx(unescaped, xbuf + start, olen, ATEMP);
2869 xcp = xbuf + start;
2911 * from xcp to set xbp to (but never < xbuf) to 2/3 of
2920 if ((xbp = xcp - (x_displen / 2)) < xbuf)
2921 xbp = xbuf;
2927 xbp = xcp >= xep ? xep : x_bs0(xcp, xbuf);
2929 while (xbp > xbuf && col_left > 0) {
2930 xbp = x_bs0(xbp - 1, xbuf);
2934 if (xbp == xbuf && xcp != xbuf && col_left >= 0 && col_left < pwidth) {
3114 ssize_t len = xep - xbuf;
3115 int ret = x_do_comment(xbuf, xend - xbuf, &len);
3121 xep = xbuf + len;
3123 xcp = xbp = xbuf;
3134 char *o_xbuf = xbuf, *o_xend = xend;
3140 xbuf = xbp = xcp = v;
3146 xbuf = o_xbuf;
3170 histsave(&source->line, xbuf, HIST_STORE, true);
3176 shf_snprintf(xbuf, xend - xbuf, Tf_sd, ctrl_x_e, x_arg);
3178 strlcpy(xbuf, ctrl_x_e, xend - xbuf);
3179 xep = strnul(xbuf);
3673 xbuf = ebuf.cbuf;
3674 xep = xbuf;
5679 rgbeg = xbuf;