Lines Matching refs:hnode
212 static GlhHashNode *_glh_discard_copy(GlHistory *glh, GlhHashNode *hnode);
408 GlhHashNode *hnode; /* The hash-table node of the line */ in _glh_add_history() local
471 hnode = _glh_acquire_copy(glh, line, slen); in _glh_add_history()
472 if(!hnode) { in _glh_add_history()
486 hnode = _glh_discard_copy(glh, hnode); in _glh_add_history()
498 lnode->line = hnode; in _glh_add_history()
1711 GlhHashNode *hnode; in _glh_resize_history() local
1712 for(hnode=b->lines; hnode; hnode=hnode->next) { in _glh_resize_history()
1713 GlhLineSeg *seg = hnode->head; in _glh_resize_history()
1714 hnode->head = buffer + nbusy; in _glh_resize_history()
2173 GlhHashNode *hnode; /* The hash-table node of the line */ in _glh_acquire_copy() local
2182 hnode = glh_find_hash_node(bucket, line, n); in _glh_acquire_copy()
2186 if(!hnode) { in _glh_acquire_copy()
2218 hnode = (GlhHashNode *) _new_FreeListNode(glh->hash.node_mem); in _glh_acquire_copy()
2219 if(!hnode) in _glh_acquire_copy()
2225 hnode->head = glh->unused; in _glh_acquire_copy()
2233 hnode->next = bucket->lines; in _glh_acquire_copy()
2234 bucket->lines = hnode; in _glh_acquire_copy()
2238 hnode->len = n; in _glh_acquire_copy()
2239 hnode->reported = 0; in _glh_acquire_copy()
2240 hnode->used = 0; in _glh_acquire_copy()
2241 hnode->bucket = bucket; in _glh_acquire_copy()
2246 hnode->used++; in _glh_acquire_copy()
2247 return hnode; in _glh_acquire_copy()
2261 static GlhHashNode *_glh_discard_copy(GlHistory *glh, GlhHashNode *hnode) in _glh_discard_copy() argument
2263 if(hnode) { in _glh_discard_copy()
2264 GlhHashBucket *bucket = hnode->bucket; in _glh_discard_copy()
2271 if(--hnode->used >= 1) in _glh_discard_copy()
2276 if(bucket->lines == hnode) { in _glh_discard_copy()
2277 bucket->lines = hnode->next; in _glh_discard_copy()
2280 for(prev=bucket->lines; prev && prev->next != hnode; prev=prev->next) in _glh_discard_copy()
2283 prev->next = hnode->next; in _glh_discard_copy()
2285 hnode->next = NULL; in _glh_discard_copy()
2289 if(hnode->head) { in _glh_discard_copy()
2296 for(nseg=1,tail=hnode->head; tail->next; nseg++,tail=tail->next) in _glh_discard_copy()
2303 glh->unused = hnode->head; in _glh_discard_copy()
2310 hnode = (GlhHashNode *) _del_FreeListNode(glh->hash.node_mem, hnode); in _glh_discard_copy()