hist.h File Reference

#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 Documentation

#define HIST_EVENT ( el,
num   )     HIST_FUN(el, H_EVENT, num)

Definition at line 74 of file hist.h.

#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   ) 

Value:

((((*(el)->fHistory.fFun)((el)->fHistory.fRef, &(el)->fHistory.fEv, \
                              fn, arg)) == -1) ? NULL : (el)->fHistory.fEv.fStr)

Definition at line 66 of file hist.h.

#define HIST_LAST ( el   )     HIST_FUN(el, H_LAST, NULL)

Definition at line 72 of file hist.h.

Referenced by hist_list().

#define HIST_LOAD ( el,
fname   )     HIST_FUN(el, H_LOAD fname)

Definition at line 75 of file hist.h.

#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)

Definition at line 73 of file hist.h.

Referenced by hist_list().

#define HIST_SAVE ( el,
fname   )     HIST_FUN(el, H_SAVE fname)

Definition at line 76 of file hist.h.


Typedef Documentation

typedef int(*) HistFun_t(ptr_t, HistEvent_t *, int,...)

Definition at line 54 of file hist.h.


Function Documentation

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.

Referenced by el_get(), and el_set().


Generated on Tue Jul 5 15:57:23 2011 for ROOT_528-00b_version by  doxygen 1.5.1