Lines Matching refs:newsz
500 size_t sz, newsz; in ch_enlargebufs() local
504 newsz = sz * 2; in ch_enlargebufs()
510 while(newsz - sz < addlen) in ch_enlargebufs()
511 newsz *= 2; in ch_enlargebufs()
517 newbuffer = el_realloc(el->el_line.buffer, newsz * sizeof(*newbuffer)); in ch_enlargebufs()
522 (void) memset(&newbuffer[sz], 0, (newsz - sz) * sizeof(*newbuffer)); in ch_enlargebufs()
535 newbuffer = el_realloc(el->el_chared.c_kill.buf, newsz * in ch_enlargebufs()
541 (void) memset(&newbuffer[sz], 0, (newsz - sz) * sizeof(*newbuffer)); in ch_enlargebufs()
555 newsz * sizeof(*newbuffer)); in ch_enlargebufs()
560 (void) memset(&newbuffer[sz], 0, (newsz - sz) * sizeof(*newbuffer)); in ch_enlargebufs()
564 newsz * sizeof(*newbuffer)); in ch_enlargebufs()
573 if (!hist_enlargebuf(el, sz, newsz)) in ch_enlargebufs()
577 el->el_line.limit = &el->el_line.buffer[newsz - EL_LEAVE]; in ch_enlargebufs()