Lines Matching refs:xp
296 char *xp;
459 Xinit(xs, xp, 128, ATEMP);
471 Xcheck(xs, xp);
476 Xput(xs, xp, po.ts[c]);
479 Xput(xs, xp, po.wc & 0xFF);
484 Xcheck(xs, xp);
501 Xput(xs, xp, '\\');
508 Xput(xs, xp, po.ts[c]);
513 Xput(xs, xp, c);
517 Xput(xs, xp, '\0');
518 XPput(po.words, Xclose(xs, xp));
519 Xinit(xs, xp, 128, ATEMP);
523 Xput(xs, xp, po.ws);
539 XcheckN(xs, xp, w);
540 memcpy(xp, co.shf->buf, w);
541 xp += w;
546 Xput(xs, xp, po.ls);
550 Xput(xs, xp, '\0');
551 histsave(&source->line, Xstring(xs, xp), HIST_STORE, false);
553 size_t len = Xlength(xs, xp);
567 s = Xstring(xs, xp);
591 Xfree(xs, xp);
726 char *xp = alloc(xlen + 1 + clen, ATEMP);
728 memcpy(xp, xcwd, xlen);
729 if (mksh_cdirsep(xp[xlen - 1]))
731 xp[xlen++] = '/';
732 memcpy(xp + xlen, tp->val.s, clen);
733 simplify_path(xp);
734 shf_puts(xp, shl_stdout);
735 afree(xp, ATEMP);
1617 char *cp, *allocd = NULL, *xp;
1717 Xinit(xs, xp, bytesleft, ATEMP);
1767 if ((bytesread = blocking_read(fd, xp, bytesleft)) == (size_t)-1) {
1798 xp += bytesread;
1799 XcheckN(xs, xp, bytesleft);
1806 xp += bytesread;
1816 xp += bytesread;
1826 if ((c = *xp) == '\0' && !aschars && delim != '\0') {
1842 --xp;
1851 Xcheck(xs, xp);
1852 ++xp;
1858 bytesread = Xlength(xs, xp);
1859 Xput(xs, xp, '\0');
1863 * Xstring(xs, xp) -> xp-1 = input string without trailing delim
1876 histsave(&source->line, Xstring(xs, xp), HIST_STORE, false);
1878 ccp = cp = Xclose(xs, xp);
1909 xp = Xstring(xs, xp);
1919 Xput(xs, xp, '1');
1920 Xput(xs, xp, '#');
1923 *xp++ = *ccp++;
1927 if (xp[-1] == '\0') {
1928 xp[-1] = '0';
1929 xp[-3] = '2';
1952 Xcheck(xs, xp);
1953 Xput(xs, xp, ch);
1958 xsave = Xsavepos(xs, xp);
1970 Xcheck(xs, xp);
1971 Xput(xs, xp, ch);
1981 Xcheck(xs, xp);
1982 Xput(xs, xp, *ccp);
1993 xp = Xrestpos(xs, xp, xsave);
1995 Xput(xs, xp, '\0');
2017 if (!setstr(vq, Xstring(xs, xp), KSH_RETURN_ERROR))
2033 Xfree(xs, xp);