Lines Matching full:el_history
57 el->el_history.fun = NULL;
58 el->el_history.ref = NULL;
59 el->el_history.buf = el_malloc(EL_BUFSIZ * sizeof(*el->el_history.buf));
60 el->el_history.sz = EL_BUFSIZ;
61 if (el->el_history.buf == NULL)
63 el->el_history.last = el->el_history.buf;
75 el_free(el->el_history.buf);
76 el->el_history.buf = NULL;
87 el->el_history.ref = ptr;
88 el->el_history.fun = fun;
103 if (el->el_history.eventno == 0) { /* if really the current line */
104 (void) Strncpy(el->el_line.buffer, el->el_history.buf,
105 el->el_history.sz);
107 (el->el_history.last - el->el_history.buf);
118 if (el->el_history.ref == NULL)
126 for (h = 1; h < el->el_history.eventno; h++)
128 el->el_history.eventno = h;
163 if (el->el_history.ref == NULL)
171 el->el_history.ev.num, ct_encode_string(str, &el->el_scratch));
181 return FUNW(history)(el->el_history.ref, &ev, H_SETSIZE, num);
184 return FUNW(history)(el->el_history.ref, &ev, H_SETUNIQUE, num);
199 newbuf = el_realloc(el->el_history.buf, newsz * sizeof(*newbuf));
205 el->el_history.last = newbuf +
206 (el->el_history.last - el->el_history.buf);
207 el->el_history.buf = newbuf;
208 el->el_history.sz = newsz;
218 if ((*(el)->el_history.fun)((el)->el_history.ref, &ev, fn, arg) == -1)