Lines Matching refs:GlhHashNode

88 typedef struct GlhHashNode GlhHashNode;
89 struct GlhHashNode {
91 GlhHashNode *next; /* The next in the list of nodes within the */
102 * How many new GlhHashNode elements should be allocated at a time?
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,
124 FreeList *node_mem; /* A free-list of GlhHashNode structures */
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);
322 * Allocate the GlhHashNode freelist.
373 * Delete the freelist of GlhHashNode's.
408 GlhHashNode *hnode; /* The hash-table node of the line */
533 GlhHashNode *old_line; /* The previous recalled line */
621 GlhHashNode *old_line; /* The previous recalled line */
1711 GlhHashNode *hnode;
2166 * return GlhHashNode * The hash-node containing the stored line, or
2169 static GlhHashNode *_glh_acquire_copy(GlHistory *glh, const char *line,
2173 GlhHashNode *hnode; /* The hash-table node of the line */
2218 hnode = (GlhHashNode *) _new_FreeListNode(glh->hash.node_mem);
2257 * hnode GlhHashNode * The node to be removed.
2259 * return GlhHashNode * The deleted hash-node (ie. NULL).
2261 static GlhHashNode *_glh_discard_copy(GlHistory *glh, GlhHashNode *hnode)
2279 GlhHashNode *prev; /* The node which precedes hnode in the bucket */
2310 hnode = (GlhHashNode *) _del_FreeListNode(glh->hash.node_mem, hnode);
2352 * return GlhHashNode * The hash-table entry of the line, or NULL
2355 static GlhHashNode *glh_find_hash_node(GlhHashBucket *bucket, const char *line,
2358 GlhHashNode *node; /* A node in the list of lines in the bucket */
2374 * hash GlhHashNode * The hash-table entry of the line.
2383 static int _glh_is_line(GlhHashNode *hash, const char *line, size_t n)
2411 * line GlhHashNode * The line to be compared against the prefix.
2412 * prefix GlhHashNode * The search prefix, or NULL to match any string.
2417 static int _glh_line_matches_prefix(GlhHashNode *line, GlhHashNode *prefix)
2462 * hash GlhHashNode The hash-table entry of the history line to
2467 static void _glh_return_line(GlhHashNode *hash, char *line, size_t dim)
2551 * line GlhHashNode * The history line to be iterated over (a
2555 static void glh_init_stream(GlhLineStream *str, GlhHashNode *line)
2591 * prefix GlhHashNode * The search prefix.
2598 static int glh_contains_glob(GlhHashNode *prefix)