Lines Matching refs:GSIZE

58 #define GSIZE(hdr) ((short)(SEGSIZ - GGAPSZ(hdr)))  macro
278 b->eof->ofst = GSIZE(b->eof->hdr); in bmkchn()
561 return p->ofst == GSIZE(p->hdr); in piseof()
603 if (++p->ofst == GSIZE(p->hdr)) in pisbol()
704 p->ofst = GSIZE(p->hdr); in pnext()
721 p->ofst = GSIZE(p->hdr); in pprev()
732 if (p->ofst == GSIZE(p->hdr)) in pgetb()
735 if (++p->ofst == GSIZE(p->hdr)) in pgetb()
896 if (p->ofst == GSIZE(p->hdr)) in pgetc()
899 if (++p->ofst == GSIZE(p->hdr)) in pgetc()
948 if (p->ofst == GSIZE(p->hdr)) in pfwrd()
951 p->byte += GSIZE(p->hdr); in pfwrd()
952 n -= GSIZE(p->hdr); in pfwrd()
957 } while (n > GSIZE(p->hdr)); in pfwrd()
963 if (p->ofst == GSIZE(p->hdr)) in pfwrd()
1058 } while (n > GSIZE(p->hdr)); in pbkwd()
1117 while (p->ofst != GSIZE(p->hdr)) { in p_goto_eol()
1130 if (p->ofst == GSIZE(p->hdr)) in p_goto_eol()
1143 if (p->ofst == GSIZE(p->hdr)) in pnextl()
1145 p->byte += GSIZE(p->hdr) - p->ofst; in pnextl()
1158 if (p->ofst == GSIZE(p->hdr)) in pnextl()
1254 if (p->ofst == GSIZE(p->hdr)) in pcol()
1267 if (++p->ofst == GSIZE(p->hdr)) in pcol()
1315 if (p->ofst == GSIZE(p->hdr)) in pcoli()
1328 if (++p->ofst == GSIZE(p->hdr)) in pcoli()
1380 while (n > GSIZE(p->hdr) - p->ofst) { in ffwrd()
1381 n -= GSIZE(p->hdr) - p->ofst; in ffwrd()
1386 if (p->ofst == GSIZE(p->hdr)) in ffwrd()
1483 if (p->ofst == GSIZE(p->hdr)) in getto()
1486 p->byte += GSIZE(p->hdr); in getto()
1541 if (p->ofst == GSIZE(p->hdr)) in fpgetc()
1544 if (++p->ofst == GSIZE(p->hdr)) in fpgetc()
1731 l->hole = GSIZE(q->hdr); in bcpy()
1760 if (p->hdr != p->b->eof->hdr && GSIZE(p->hdr) + GSIZE(p->hdr->link.next) <= SEGSIZ - SEGSIZ / 4) { in pcoalesce()
1763 short osize = GSIZE(p->hdr); in pcoalesce()
1764 short size = GSIZE(hdr); in pcoalesce()
1768 ginsm(p->hdr, p->ptr, GSIZE(p->hdr), ptr, size); in pcoalesce()
1782 if (p->hdr != p->b->bof->hdr && GSIZE(p->hdr) + GSIZE(p->hdr->link.prev) <= SEGSIZ - SEGSIZ / 4) { in pcoalesce()
1785 short size = GSIZE(hdr); in pcoalesce()
1938 if (!GSIZE(to->hdr) && from->byte) { in bcut()
1945 from->ofst = GSIZE(ph); in bcut()
2101 p->b->eof->ofst = GSIZE(p->b->eof->hdr); in inschn()
2107 p->b->eof->ofst = GSIZE(p->b->eof->hdr); in inschn()
3079 while (size > (amnt = GSIZE(np->hdr) - np->ofst)) { in bsavefd()
3298 if (p->ofst == GSIZE(p->hdr)) in brc()
3324 while (size > (amnt = GSIZE(np->hdr) - np->ofst)) { in brmem()