#include "histedit.h"
Go to the source code of this file.
Classes | |
struct | ElHistory_t |
Defines | |
#define | HIST_FUN(el, fn, arg) |
#define | HIST_NEXT(el) HIST_FUN(el, H_NEXT, NULL) |
#define | HIST_FIRST(el) HIST_FUN(el, H_FIRST, NULL) |
#define | HIST_LAST(el) HIST_FUN(el, H_LAST, NULL) |
#define | HIST_PREV(el) HIST_FUN(el, H_PREV, NULL) |
#define | HIST_EVENT(el, num) HIST_FUN(el, H_EVENT, num) |
#define | HIST_LOAD(el, fname) HIST_FUN(el, H_LOAD fname) |
#define | HIST_SAVE(el, fname) HIST_FUN(el, H_SAVE fname) |
Typedefs | |
typedef int(*) | HistFun_t (ptr_t, HistEvent_t *, int,...) |
Functions | |
el_protected int | hist_init (EditLine_t *) |
el_protected void | hist_end (EditLine_t *) |
el_protected ElAction_t | hist_get (EditLine_t *) |
el_protected int | hist_set (EditLine_t *, HistFun_t, ptr_t) |
el_protected int | hist_list (EditLine_t *, int, const char **) |
el_protected int | hist_enlargebuf (EditLine_t *, size_t, size_t) |
#define HIST_FIRST | ( | el | ) | HIST_FUN(el, H_FIRST, NULL) |
Definition at line 71 of file hist.h.
Referenced by ed_search_next_history(), ed_search_prev_history(), and hist_get().
#define HIST_FUN | ( | el, | |||
fn, | |||||
arg | ) |
#define HIST_LAST | ( | el | ) | HIST_FUN(el, H_LAST, NULL) |
#define HIST_NEXT | ( | el | ) | HIST_FUN(el, H_NEXT, NULL) |
Definition at line 70 of file hist.h.
Referenced by ed_search_next_history(), ed_search_prev_history(), and hist_get().
#define HIST_PREV | ( | el | ) | HIST_FUN(el, H_PREV, NULL) |
typedef int(*) HistFun_t(ptr_t, HistEvent_t *, int,...) |
el_protected void hist_end | ( | EditLine_t * | ) |
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 * | , | |
size_t | , | |||
size_t | ||||
) |
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 * | ) |
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 * | ) |
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 * | , | |
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 * | , | |
HistFun_t | , | |||
ptr_t | ||||
) |
Definition at line 87 of file hist.cxx.
References ElHistory_t::fFun, EditLine_t::fHistory, and ElHistory_t::fRef.