#include "compat.h"
#include "sys.h"
#include <stdlib.h>
#include "el.h"
Go to the source code of this file.
Functions | |
el_protected int | hist_init (EditLine_t *el) |
el_protected void | hist_end (EditLine_t *el) |
el_protected int | hist_set (EditLine_t *el, HistFun_t fun, ptr_t ptr) |
el_protected ElAction_t | hist_get (EditLine_t *el) |
el_protected int | hist_list (EditLine_t *el, int, const char **) |
el_protected int | hist_enlargebuf (EditLine_t *el, size_t oldsz, size_t newsz) |
el_protected void hist_end | ( | EditLine_t * | el | ) |
Definition at line 77 of file hist.cxx.
References el_free, ElHistory_t::fBuf, EditLine_t::fHistory, and NULL.
Referenced by el_end().
el_protected int hist_enlargebuf | ( | EditLine_t * | el, | |
size_t | oldsz, | |||
size_t | newsz | |||
) |
Definition at line 211 of file hist.cxx.
References ElHistory_t::fBuf, EditLine_t::fHistory, ElHistory_t::fLast, ElHistory_t::fSz, realloc(), and void.
Referenced by ch_enlargebufs().
el_protected ElAction_t hist_get | ( | EditLine_t * | el | ) |
Definition at line 99 of file hist.cxx.
References CC_ERROR, CC_REFRESH, ElHistory_t::fBuf, ElLine_t::fBufColor, ElLine_t::fBuffer, ElLine_t::fCursor, ElHistory_t::fEventNo, EditLine_t::fHistory, ElHistory_t::fLast, ElLine_t::fLastChar, ElLine_t::fLimit, EditLine_t::fLine, EditLine_t::fMap, for(), ElHistory_t::fRef, ElHistory_t::fSz, ElMap_t::fType, h, HIST_FIRST, HIST_NEXT, hp, i, MAP_VI, NULL, size_t, and void.
Referenced by ce_inc_search(), ed_next_history(), ed_prev_history(), ed_search_next_history(), and ed_search_prev_history().
el_protected int hist_init | ( | EditLine_t * | el | ) |
Definition at line 59 of file hist.cxx.
References EL_BUFSIZ, el_malloc, ElHistory_t::fBuf, ElHistory_t::fFun, EditLine_t::fHistory, ElHistory_t::fLast, ElHistory_t::fRef, ElHistory_t::fSz, and NULL.
el_protected int hist_list | ( | EditLine_t * | el, | |
int | , | |||
const char ** | ||||
) |
Definition at line 180 of file hist.cxx.
References ElHistory_t::fEv, EditLine_t::fHistory, HistEvent_t::fNum, EditLine_t::fOutFile, fprintf(), ElHistory_t::fRef, HIST_LAST, HIST_PREV, NULL, and str.
Referenced by el_builtins_init().
el_protected int hist_set | ( | EditLine_t * | el, | |
HistFun_t | fun, | |||
ptr_t | ptr | |||
) |
Definition at line 87 of file hist.cxx.
References ElHistory_t::fFun, EditLine_t::fHistory, and ElHistory_t::fRef.