Lines Matching defs:boff
70 #define GETBIT(tib,boff) \
71 ((tib)->tib_quotes[(boff) / BMSIZE] & (1 << ((boff) % BMSIZE)))
72 #define SETBIT(tib,boff) \
73 ((tib)->tib_quotes[(boff) / BMSIZE] |= (1 << ((boff) % BMSIZE)))
74 #define CLRBIT(tib,boff) \
75 ((tib)->tib_quotes[(boff) / BMSIZE] &= ~(1 << ((boff) % BMSIZE)))
277 unsigned int boff;
281 boff = ti->ti_end % TTYINQ_DATASIZE;
292 } else if (boff == 0) {
305 l = MIN(nbytes, TTYINQ_DATASIZE - boff);
307 memcpy(tib->tib_data + boff, cbuf, l);
310 ttyinq_set_quotes(tib, boff, l, quote);
348 unsigned int boff = ti->ti_begin;
357 while (boff < bend) {
358 if (strchr(breakc, tib->tib_data[boff]) && !GETBIT(tib, boff)) {
359 *lastc = tib->tib_data[boff];
360 return (boff - ti->ti_begin + 1);
362 boff++;
389 unsigned int boff;
396 boff = (ti->ti_end - 1) % TTYINQ_DATASIZE;
398 *c = tib->tib_data[boff];
399 *quote = GETBIT(tib, boff);
442 unsigned int boff;
450 boff = offset % TTYINQ_DATASIZE;
454 iterator(data, tib->tib_data[boff], GETBIT(tib, boff));
457 if (boff == TTYINQ_DATASIZE - 1)