Lines Matching defs:boff
72 #define GETBIT(tib,boff) \
73 ((tib)->tib_quotes[(boff) / BMSIZE] & (1 << ((boff) % BMSIZE)))
74 #define SETBIT(tib,boff) \
75 ((tib)->tib_quotes[(boff) / BMSIZE] |= (1 << ((boff) % BMSIZE)))
76 #define CLRBIT(tib,boff) \
77 ((tib)->tib_quotes[(boff) / BMSIZE] &= ~(1 << ((boff) % BMSIZE)))
285 unsigned int boff;
289 boff = ti->ti_end % TTYINQ_DATASIZE;
300 } else if (boff == 0) {
313 l = MIN(nbytes, TTYINQ_DATASIZE - boff);
315 memcpy(tib->tib_data + boff, cbuf, l);
318 ttyinq_set_quotes(tib, boff, l, quote);
356 unsigned int boff = ti->ti_begin;
365 while (boff < bend) {
366 if (strchr(breakc, tib->tib_data[boff]) && !GETBIT(tib, boff)) {
367 *lastc = tib->tib_data[boff];
368 return (boff - ti->ti_begin + 1);
370 boff++;
397 unsigned int boff;
404 boff = (ti->ti_end - 1) % TTYINQ_DATASIZE;
406 *c = tib->tib_data[boff];
407 *quote = GETBIT(tib, boff);
450 unsigned int boff;
458 boff = offset % TTYINQ_DATASIZE;
462 iterator(data, tib->tib_data[boff], GETBIT(tib, boff));
465 if (boff == TTYINQ_DATASIZE - 1)