Searched refs:GlHistory (Results 1 – 3 of 3) sorted by relevance
/titanic_41/usr/src/lib/libtecla/common/ |
H A D | history.h | 43 typedef struct GlHistory GlHistory; typedef 48 GlHistory *_new_GlHistory(size_t buflen); 53 GlHistory *_del_GlHistory(GlHistory *glh); 55 int _glh_add_history(GlHistory *glh, const char *line, int force); 57 int _glh_search_prefix(GlHistory *glh, const char *line, int prefix_len); 59 char *_glh_find_backwards(GlHistory *glh, char *line, size_t dim); 60 char *_glh_find_forwards(GlHistory *glh, char *line, size_t dim); 62 int _glh_cancel_search(GlHistory *glh); 64 char *_glh_oldest_line(GlHistory *glh, char *line, size_t dim); 65 char *_glh_current_line(GlHistory *glh, char *line, size_t dim); [all …]
|
H A D | history.c | 118 static GlhHashBucket *glh_find_bucket(GlHistory *glh, const char *line, 170 struct GlHistory { struct 201 static int _glh_cant_load_history(GlHistory *glh, const char *filename, argument 203 static int _glh_cant_save_history(GlHistory *glh, const char *message, 208 static void _glh_discard_line(GlHistory *glh, GlhLineNode *node); 209 static GlhLineNode *_glh_find_id(GlHistory *glh, GlhLineID id); 210 static GlhHashNode *_glh_acquire_copy(GlHistory *glh, const char *line, 212 static GlhHashNode *_glh_discard_copy(GlHistory *glh, GlhHashNode *hnode); 213 static int _glh_prepare_for_recall(GlHistory *glh, char *line); 250 GlHistory *_new_GlHistory(size_t buflen) in _new_GlHistory() [all …]
|
H A D | getline.c | 367 GlHistory *glh; /* The line-history buffer */
|