Home | History | Annotate | Download | only in src

Lines Matching refs:xcp

911 static char *xcp;		/* current position */
1118 for (cp = xcp; cp < (xcp + nb); ++nc)
1191 xlp = xcp = xep = buf;
1192 *xcp = 0;
1255 x_goto(xcp);
1336 memmove(xcp + len, xcp, xep - xcp + 1);
1337 memmove(xcp, cp, len);
1338 xcp += len;
1347 char *cp = xcp;
1354 * we want xcp to reflect the new position.
1358 x_adj_ok = tobool(xcp >= xlp);
1364 while (cp > xcp)
1378 if (xcp == xbuf) {
1383 x_goto(xcp - 1);
1384 xcp != xbuf));
1395 cp = xcp;
1423 cp = xcp;
1434 nb = cp - xcp;
1437 if (xmp != NULL && xmp > xcp) {
1438 if (xcp + nb > xmp)
1439 xmp = xcp;
1451 memmove(xcp, xcp + nb, xep - xcp + 1);
1455 x_zots(xcp);
1472 /*x_goto(xcp);*/
1476 while (cp > xcp)
1515 char *cp = xcp;
1539 char *cp = xcp;
1551 nc = x_nb2nc(cp - xcp);
1563 xcp = cp;
1565 } else if (cp < xcp) {
1567 while (cp < xcp)
1568 x_bs3(&xcp);
1569 } else if (cp > xcp) {
1571 while (cp > xcp)
1572 x_zotc3(&xcp);
1667 if (xcp == xbuf) {
1672 x_goto(xcp - 1);
1673 if (xcp == xbuf)
1682 char *cp = xcp, *cp2;
1684 if (xcp == xep) {
1701 char *cp = xcp;
1723 char *cp = xcp, *p, tmp[4];
1839 xep = xcp = xbuf + strlen(xbuf);
1993 size_t curs = xcp - xbuf;
2027 xcp = xbuf;
2031 *xcp = 0;
2134 while (cp > xcp)
2159 if (xcp == xbuf) {
2162 } else if (xcp == xep || Flag(FGMACS)) {
2163 if (xcp - xbuf == 1) {
2171 x_bs3(&xcp);
2172 if (utf_mbtowc(&tmpa, xcp) == (size_t)-1) {
2176 x_bs3(&xcp);
2177 if (utf_mbtowc(&tmpb, xcp) == (size_t)-1) {
2181 utf_wctomb(xcp, tmpa);
2182 x_zotc3(&xcp);
2183 utf_wctomb(xcp, tmpb);
2184 x_zotc3(&xcp);
2190 if (utf_mbtowc(&tmpa, xcp) == (size_t)-1) {
2194 x_bs3(&xcp);
2195 if (utf_mbtowc(&tmpb, xcp) == (size_t)-1) {
2199 utf_wctomb(xcp, tmpa);
2200 x_zotc3(&xcp);
2201 utf_wctomb(xcp, tmpb);
2202 x_zotc3(&xcp);
2232 size_t col = xcp - xbuf;
2252 mkssert(xcp != NULL);
2253 strndupx(cp, xcp, nchars, AEDIT);
2273 xmp = xcp;
2291 x_goto(xcp - len);
2307 xlp = xep = xcp = xbp = xbuf;
2309 *xcp = 0;
2581 xmp = xcp;
2595 if (xmp > xcp) {
2596 rsize = xmp - xcp;
2597 xr = xcp;
2599 rsize = xcp - xmp;
2618 xmp = xcp;
2688 nwords = x_cf_glob(&i, xbuf, xep - xbuf, xcp - xbuf,
2722 nwords = x_cf_glob(&flags, xbuf, xep - xbuf, xcp - xbuf,
2774 xcp = xbuf + start;
2776 memmove(xcp, xcp + olen, xep - xcp + 1);
2816 * from xcp to set xbp to (but never < xbuf) to 2/3 of
2825 if ((xbp = xcp - (x_displen / 2)) < xbuf)
2832 xbp = xcp >= xep ? xep : x_bs0(xcp, xbuf);
2839 if (xbp == xbuf && xcp != xbuf && col_left >= 0 && col_left < pwidth) {
3017 xcp = xbp = xbuf;
3029 char *o_xbp = xbp, *o_xep = xep, *o_xcp = xcp;
3036 xbuf = xbp = xcp = v;
3046 xcp = o_xcp;
3203 char *cp = xcp;
3260 * while (cp > xcp)