Lines Matching defs:xbuf
84 static char *xbuf; /* beg input buffer */
329 xbp = xbuf = buf; xend = buf + len;
387 i = xep - xbuf;
499 int col = xcp - xbuf;
624 if (cp == xbuf) {
630 while (cp != xbuf && is_mfs(cp[-1]))
635 while (cp != xbuf && !is_mfs(cp[-1]))
759 int col = xcp - xbuf;
798 && (cp = strchr(xbuf, c)) == NULL))
817 if (p-- == xbuf)
882 oldsize = x_size_str(xbuf);
883 strlcpy(xbuf, *hp, xend - xbuf);
884 xbp = xbuf;
885 xep = xcp = xbuf + strlen(xbuf);
905 if (xep == xbuf && x_arg_defaulted)
916 int offset = -1; /* offset of match in xbuf, else -1 */
957 offset = x_match(xbuf, pat);
959 x_goto(xbuf + offset + (p - pat) - (*pat == '^'));
990 x_goto(xbuf + i + strlen(pat) - (*pat == '^'));
1019 i = xep - xbuf;
1020 j = x_size_str(xbuf);
1021 xcp = xbuf;
1023 xlp = xbp = xep = xbuf;
1043 x_goto(xbuf);
1073 if (xbp == xbuf)
1082 if (xbp != xbuf || xep > xlp)
1096 if (xbp > xbuf)
1102 if (xbp > xbuf)
1135 if (xcp == xbuf) {
1139 if (xcp - xbuf == 1) {
1197 int col = xcp - xbuf;
1198 int lastcol = xep - xbuf;
1207 x_goto(xbuf + x_arg);
1274 xlp = xep = xcp = xbp = xbuf;
1297 xlp = xcp = xep = xbp = xbuf;
1591 char *o_xbuf = xbuf, *o_xend = xend;
1595 xbuf = xbp = xcp = ksh_version + 4;
1601 xbuf = o_xbuf;
1633 i = xep - xbuf;
1635 len = x_size_str(xbuf);
1636 xcp = xbp = xbuf;
1637 memmove(newbuf+1, xbuf, i);
1640 for (ip = newbuf+1, op = xbuf; --i >= 0; ip++, op++) {
1742 xbuf, xep - xbuf, xcp - xbuf,
1750 x_goto(xbuf + start);
1777 nwords = x_cf_glob(flags, xbuf, xep - xbuf, xcp - xbuf,
1796 x_goto(xbuf + start);
1840 if ((xbp = xcp - (x_displen / 2)) < xbuf)
1841 xbp = xbuf;
1916 shellf("\txbp == 0x%lx,\txbuf == 0x%lx\n", (long) xbp, (long) xbuf);
1973 int oldsize = x_size_str(xbuf);
1974 int len = xep - xbuf;
1975 int ret = x_do_comment(xbuf, xend - xbuf, &len);
1980 xep = xbuf + len;
1982 xcp = xbp = xbuf;