Searched refs:GlHistory (Results 1 – 3 of 3) sorted by relevance
/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | history.h | 41 typedef struct GlHistory GlHistory; typedef 46 GlHistory *_new_GlHistory(size_t buflen); 51 GlHistory *_del_GlHistory(GlHistory *glh); 53 int _glh_add_history(GlHistory *glh, const char *line, int force); 55 int _glh_search_prefix(GlHistory *glh, const char *line, int prefix_len); 57 char *_glh_find_backwards(GlHistory *glh, char *line, size_t dim); 58 char *_glh_find_forwards(GlHistory *glh, char *line, size_t dim); 60 int _glh_cancel_search(GlHistory *glh); 62 char *_glh_oldest_line(GlHistory *glh, char *line, size_t dim); 63 char *_glh_current_line(GlHistory *glh, char *line, size_t dim); [all …]
|
H A D | history.c | 116 static GlhHashBucket *glh_find_bucket(GlHistory *glh, const char *line, 168 struct GlHistory { struct 199 static int _glh_cant_load_history(GlHistory *glh, const char *filename, argument 201 static int _glh_cant_save_history(GlHistory *glh, const char *message, 206 static void _glh_discard_line(GlHistory *glh, GlhLineNode *node); 207 static GlhLineNode *_glh_find_id(GlHistory *glh, GlhLineID id); 208 static GlhHashNode *_glh_acquire_copy(GlHistory *glh, const char *line, 210 static GlhHashNode *_glh_discard_copy(GlHistory *glh, GlhHashNode *hnode); 211 static int _glh_prepare_for_recall(GlHistory *glh, char *line); 248 GlHistory *_new_GlHistory(size_t buflen) in _new_GlHistory() [all …]
|
H A D | getline.c | 366 GlHistory *glh; /* The line-history buffer */
|