Lines Matching refs:GlhHashNode

88 typedef struct GlhHashNode GlhHashNode;  typedef
89 struct GlhHashNode { struct
91 GlhHashNode *next; /* The next in the list of nodes within the */ argument
106 static int _glh_is_line(GlhHashNode *hash, const char *line, size_t n);
107 static int _glh_line_matches_prefix(GlhHashNode *line, GlhHashNode *prefix);
108 static void _glh_return_line(GlhHashNode *hash, char *line, size_t dim);
115 GlhHashNode *lines; /* The list of history lines which fall in this bucket */
120 static GlhHashNode *glh_find_hash_node(GlhHashBucket *bucket, const char *line,
139 GlhHashNode *line; /* The hash-table entry of the history line */
181 GlhHashNode *prefix; /* A pointer to a line containing the prefix that */
210 static GlhHashNode *_glh_acquire_copy(GlHistory *glh, const char *line,
212 static GlhHashNode *_glh_discard_copy(GlHistory *glh, GlhHashNode *hnode);
226 static void glh_init_stream(GlhLineStream *str, GlhHashNode *line);
232 static int glh_contains_glob(GlhHashNode *prefix);
408 GlhHashNode *hnode; /* The hash-table node of the line */ in _glh_add_history()
533 GlhHashNode *old_line; /* The previous recalled line */ in _glh_find_backwards()
621 GlhHashNode *old_line; /* The previous recalled line */ in _glh_find_forwards()
1711 GlhHashNode *hnode; in _glh_resize_history()
2169 static GlhHashNode *_glh_acquire_copy(GlHistory *glh, const char *line, in _glh_acquire_copy()
2173 GlhHashNode *hnode; /* The hash-table node of the line */ in _glh_acquire_copy()
2218 hnode = (GlhHashNode *) _new_FreeListNode(glh->hash.node_mem); in _glh_acquire_copy()
2261 static GlhHashNode *_glh_discard_copy(GlHistory *glh, GlhHashNode *hnode) in _glh_discard_copy()
2279 GlhHashNode *prev; /* The node which precedes hnode in the bucket */ in _glh_discard_copy()
2310 hnode = (GlhHashNode *) _del_FreeListNode(glh->hash.node_mem, hnode); in _glh_discard_copy()
2355 static GlhHashNode *glh_find_hash_node(GlhHashBucket *bucket, const char *line, in glh_find_hash_node()
2358 GlhHashNode *node; /* A node in the list of lines in the bucket */ in glh_find_hash_node()
2383 static int _glh_is_line(GlhHashNode *hash, const char *line, size_t n) in _glh_is_line()
2417 static int _glh_line_matches_prefix(GlhHashNode *line, GlhHashNode *prefix) in _glh_line_matches_prefix()
2467 static void _glh_return_line(GlhHashNode *hash, char *line, size_t dim) in _glh_return_line()
2555 static void glh_init_stream(GlhLineStream *str, GlhHashNode *line) in glh_init_stream()
2598 static int glh_contains_glob(GlhHashNode *prefix) in glh_contains_glob()