Lines Matching defs:xs
1473 #define XinitN(xs, length, area) do { \
1474 (xs).len = (length); \
1475 (xs).areap = (area); \
1476 (xs).beg = alloc((xs).len + X_EXTRA, (xs).areap); \
1477 (xs).end = (xs).beg + (xs).len; \
1479 #define Xinit(xs, xp, length, area) do { \
1480 XinitN((xs), (length), (area)); \
1481 (xp) = (xs).beg; \
1485 #define Xput(xs, xp, c) (*xp++ = (c))
1488 #define XcheckN(xs, xp, n) do { \
1489 ssize_t more = ((xp) + (n)) - (xs).end; \
1491 (xp) = Xcheck_grow(&(xs), (xp), (size_t)more); \
1495 #define Xcheck(xs, xp) XcheckN((xs), (xp), 1)
1498 #define Xfree(xs, xp) afree((xs).beg, (xs).areap)
1501 #define Xclose(xs, xp) aresize((xs).beg, (xp) - (xs).beg, (xs).areap)
1504 #define Xstring(xs, xp) ((xs).beg)
1506 #define Xnleft(xs, xp) ((xs).end - (xp)) /* may be less than 0 */
1507 #define Xlength(xs, xp) ((xp) - (xs).beg)
1508 #define Xsize(xs, xp) ((xs).end - (xs).beg)
1509 #define Xsavepos(xs, xp) ((xp) - (xs).beg)
1510 #define Xrestpos(xs, xp, n) ((xs).beg + (n))
1568 XString xs; /* input buffer */