Lines Matching refs:newbuffer

501 	Char *newbuffer, *oldbuf, *oldkbuf;  in ch_enlargebufs()  local
517 newbuffer = el_realloc(el->el_line.buffer, newsz * sizeof(*newbuffer)); in ch_enlargebufs()
518 if (!newbuffer) in ch_enlargebufs()
522 (void) memset(&newbuffer[sz], 0, (newsz - sz) * sizeof(*newbuffer)); in ch_enlargebufs()
526 el->el_line.buffer = newbuffer; in ch_enlargebufs()
527 el->el_line.cursor = newbuffer + (el->el_line.cursor - oldbuf); in ch_enlargebufs()
528 el->el_line.lastchar = newbuffer + (el->el_line.lastchar - oldbuf); in ch_enlargebufs()
530 el->el_line.limit = &newbuffer[sz - EL_LEAVE]; in ch_enlargebufs()
535 newbuffer = el_realloc(el->el_chared.c_kill.buf, newsz * in ch_enlargebufs()
536 sizeof(*newbuffer)); in ch_enlargebufs()
537 if (!newbuffer) in ch_enlargebufs()
541 (void) memset(&newbuffer[sz], 0, (newsz - sz) * sizeof(*newbuffer)); in ch_enlargebufs()
545 el->el_chared.c_kill.buf = newbuffer; in ch_enlargebufs()
546 el->el_chared.c_kill.last = newbuffer + in ch_enlargebufs()
554 newbuffer = el_realloc(el->el_chared.c_undo.buf, in ch_enlargebufs()
555 newsz * sizeof(*newbuffer)); in ch_enlargebufs()
556 if (!newbuffer) in ch_enlargebufs()
560 (void) memset(&newbuffer[sz], 0, (newsz - sz) * sizeof(*newbuffer)); in ch_enlargebufs()
561 el->el_chared.c_undo.buf = newbuffer; in ch_enlargebufs()
563 newbuffer = el_realloc(el->el_chared.c_redo.buf, in ch_enlargebufs()
564 newsz * sizeof(*newbuffer)); in ch_enlargebufs()
565 if (!newbuffer) in ch_enlargebufs()
567 el->el_chared.c_redo.pos = newbuffer + in ch_enlargebufs()
569 el->el_chared.c_redo.lim = newbuffer + in ch_enlargebufs()
571 el->el_chared.c_redo.buf = newbuffer; in ch_enlargebufs()