Lines Matching refs:nbuff
174 int nbuff; /* The allocated dimension of buffer[] */ member
269 glh->nbuff = (buflen+GLH_SEG_SIZE-1) / GLH_SEG_SIZE; in _new_GlHistory()
282 glh->nfree = glh->nbuff; in _new_GlHistory()
297 if(glh->nbuff > 0) { in _new_GlHistory()
298 glh->nbuff = glh->nfree; in _new_GlHistory()
299 glh->buffer = (GlhLineSeg *) malloc(sizeof(GlhLineSeg) * glh->nbuff); in _new_GlHistory()
309 for(i=0; i<glh->nbuff-1; i++) { in _new_GlHistory()
1631 int nbuff; /* The number of segments in the new buffer */ in _glh_resize_history() local
1644 nbuff = (bufsize+GLH_SEG_SIZE-1) / GLH_SEG_SIZE; in _glh_resize_history()
1648 if(glh->nbuff != nbuff) { in _glh_resize_history()
1656 if(glh->nbuff == 0 && nbuff>0) { in _glh_resize_history()
1657 glh->buffer = (GlhLineSeg *) malloc(sizeof(GlhLineSeg) * nbuff); in _glh_resize_history()
1660 glh->nbuff = nbuff; in _glh_resize_history()
1661 glh->nfree = glh->nbuff; in _glh_resize_history()
1668 for(i=0; i<glh->nbuff-1; i++) { in _glh_resize_history()
1676 } else if(nbuff == 0) { in _glh_resize_history()
1681 glh->nbuff = 0; in _glh_resize_history()
1695 while(glh->list.head && glh->nbusy > nbuff) in _glh_resize_history()
1700 buffer = (GlhLineSeg *) malloc(nbuff * sizeof(GlhLineSeg)); in _glh_resize_history()
1725 for(i=nbusy; i<nbuff-1; i++) in _glh_resize_history()
1727 if(i < nbuff) in _glh_resize_history()
1737 glh->nbuff = nbuff; in _glh_resize_history()
1739 glh->nfree = nbuff - nbusy; in _glh_resize_history()
1837 for(i=0; i<glh->nbuff-1; i++) { in _glh_clear_history()
1842 glh->nfree = glh->nbuff; in _glh_clear_history()