Lines Matching defs:cbuf

3443 	char *cbuf;
3621 ebuf.cbuf = buf;
3622 if (undobuf.cbuf == NULL) {
3625 undobuf.cbuf = alloc(LINE, AEDIT);
3673 xbuf = ebuf.cbuf;
3702 if (vs->cbuf != buf)
3703 memcpy(buf, vs->cbuf, vs->linelen);
3794 vs->cbuf[vs->cursor++] = ch;
3896 new_es.cbuf = locpat;
3919 vs->cbuf[vs->linelen++] = '^';
3920 vs->cbuf[vs->linelen++] = ksh_unctrl(ch);
3924 vs->cbuf[vs->linelen++] = ch;
3948 memcpy(srchpat + 1, vs->cbuf, vs->cursor);
4059 vs->cbuf[vs->cursor] = undo->cbuf[vs->cursor];
4067 memmove(&vs->cbuf[vs->cursor], &vs->cbuf[vs->cursor + 1],
4076 memmove(vs->cbuf, &vs->cbuf[vs->cursor],
4087 memmove(&vs->cbuf[tcursor], &vs->cbuf[vs->cursor],
4156 memmove(&vs->cbuf[vs->cursor + 1], &vs->cbuf[vs->cursor],
4160 vs->cbuf[vs->cursor++] = ch;
4191 memmove(undo->cbuf, vs->cbuf, vs->linelen);
4286 !ctype(vs->cbuf[vs->cursor], C_SPACE)) {
4289 } while (ctype(vs->cbuf[ncursor], C_SPACE));
4421 vs->cbuf[vs->cursor + n] = cmd[1];
4446 vs->cbuf[vs->linelen] = '\0';
4447 histsave(&source->line, vs->cbuf,
4454 shf_snprintf(vs->cbuf, vs->cbufsize, Tf_sd,
4457 strlcpy(vs->cbuf, ctrl_x_e, vs->cbufsize);
4458 vs->linelen = strlen(vs->cbuf);
4597 p = &vs->cbuf[vs->cursor];
4615 int ret = x_do_comment(vs->cbuf, vs->cbufsize,
4788 (i = bracktype(vs->cbuf[ncursor])) == 0)
4801 t = bracktype(vs->cbuf[ncursor]);
4823 ctype(vs->cbuf[ncursor], C_SPACE))
4845 memmove(ybuf, &vs->cbuf[a], yanklen);
4883 memmove(holdbufp, vs->cbuf, vs->linelen);
4893 memmove(vs->cbuf, holdbufp, holdlen);
4903 news->cbuf = alloc(old->cbufsize, AEDIT);
4904 memcpy(news->cbuf, old->cbuf, old->linelen);
4915 memcpy(news->cbuf, old->cbuf, old->linelen);
4925 afree(old->cbuf, AEDIT);
4951 memmove(&vs->cbuf[vs->cursor + len], &vs->cbuf[vs->cursor],
4955 memmove(&vs->cbuf[vs->cursor], buf, len);
4964 memmove(&vs->cbuf[a], &vs->cbuf[b], vs->linelen - b);
4985 } while (vs->cbuf[ncursor] != ch);
5003 if (ctype(vs->cbuf[ncursor], C_ALNUX))
5005 ctype(vs->cbuf[ncursor], C_ALNUX))
5007 else if (!ctype(vs->cbuf[ncursor], C_SPACE))
5009 !ctype(vs->cbuf[ncursor], C_ALNUX | C_SPACE))
5012 ctype(vs->cbuf[ncursor], C_SPACE))
5025 while (--ncursor > 0 && ctype(vs->cbuf[ncursor], C_SPACE))
5028 if (ctype(vs->cbuf[ncursor], C_ALNUX))
5030 ctype(vs->cbuf[ncursor], C_ALNUX))
5034 !ctype(vs->cbuf[ncursor], C_ALNUX | C_SPACE))
5050 ctype(vs->cbuf[ncursor], C_SPACE))
5053 if (ctype(vs->cbuf[ncursor], C_ALNUX))
5055 ctype(vs->cbuf[ncursor], C_ALNUX))
5059 !ctype(vs->cbuf[ncursor], C_ALNUX | C_SPACE))
5075 !ctype(vs->cbuf[ncursor], C_SPACE))
5078 ctype(vs->cbuf[ncursor], C_SPACE))
5091 while (--ncursor >= 0 && ctype(vs->cbuf[ncursor], C_SPACE))
5093 while (ncursor >= 0 && !ctype(vs->cbuf[ncursor], C_SPACE))
5108 ctype(vs->cbuf[ncursor], C_SPACE))
5112 !ctype(vs->cbuf[ncursor], C_SPACE))
5141 memmove(vs->cbuf, hptr, vs->linelen);
5175 memmove(vs->cbuf, hptr, vs->linelen);
5212 col = newcol((unsigned char)vs->cbuf[cur++], col);
5234 tcol = newcol((unsigned char)vs->cbuf[tcur++], tcol);
5237 holdcol1 = newcol((unsigned char)vs->cbuf[holdcur1++],
5266 if ((ch = vs->cbuf[cur]) == '\t')
5377 nwords = x_cf_glob(&i, vs->cbuf, vs->linelen, vs->cursor,
5444 nwords = x_cf_glob(&flags, vs->cbuf, vs->linelen, vs->cursor,
5533 nwords = x_cf_glob(&i, est->cbuf, est->linelen, est->cursor,