Lines Matching defs:rpos
40 unsigned char *rpos, *rend;
54 #define shcnt(f) ((f)->shcnt + ((f)->rpos - (f)->buf))
58 f->rpos = f->rend = f->buf + f->buf_size;
71 f->rpos = (void *)(src+len);
88 f->shcnt = f->buf - f->rpos;
90 if (lim && f->rend - f->rpos > lim)
91 f->shend = f->rpos + lim;
101 f->shcnt = f->buf - f->rpos + cnt;
106 if (f->shlim && f->rend - f->rpos > f->shlim - cnt)
107 f->shend = f->rpos + (f->shlim - cnt);
110 f->shcnt = f->buf - f->rpos + cnt;
111 if (f->rpos[-1] != c) f->rpos[-1] = c;
116 #define shgetc(f) (((f)->rpos < (f)->shend) ? *(f)->rpos++ : ffshgetc(f))
117 #define shunget(f) ((f)->shend ? (void)(f)->rpos-- : (void)0)