Lines Matching refs:hnode

210 static GlhHashNode *_glh_discard_copy(GlHistory *glh, GlhHashNode *hnode);
406 GlhHashNode *hnode; /* The hash-table node of the line */ in _glh_add_history() local
469 hnode = _glh_acquire_copy(glh, line, slen); in _glh_add_history()
470 if(!hnode) { in _glh_add_history()
484 hnode = _glh_discard_copy(glh, hnode); in _glh_add_history()
496 lnode->line = hnode; in _glh_add_history()
1709 GlhHashNode *hnode; in _glh_resize_history() local
1710 for(hnode=b->lines; hnode; hnode=hnode->next) { in _glh_resize_history()
1711 GlhLineSeg *seg = hnode->head; in _glh_resize_history()
1712 hnode->head = buffer + nbusy; in _glh_resize_history()
2171 GlhHashNode *hnode; /* The hash-table node of the line */ in _glh_acquire_copy() local
2180 hnode = glh_find_hash_node(bucket, line, n); in _glh_acquire_copy()
2184 if(!hnode) { in _glh_acquire_copy()
2216 hnode = (GlhHashNode *) _new_FreeListNode(glh->hash.node_mem); in _glh_acquire_copy()
2217 if(!hnode) in _glh_acquire_copy()
2223 hnode->head = glh->unused; in _glh_acquire_copy()
2231 hnode->next = bucket->lines; in _glh_acquire_copy()
2232 bucket->lines = hnode; in _glh_acquire_copy()
2236 hnode->len = n; in _glh_acquire_copy()
2237 hnode->reported = 0; in _glh_acquire_copy()
2238 hnode->used = 0; in _glh_acquire_copy()
2239 hnode->bucket = bucket; in _glh_acquire_copy()
2244 hnode->used++; in _glh_acquire_copy()
2245 return hnode; in _glh_acquire_copy()
2259 static GlhHashNode *_glh_discard_copy(GlHistory *glh, GlhHashNode *hnode) in _glh_discard_copy() argument
2261 if(hnode) { in _glh_discard_copy()
2262 GlhHashBucket *bucket = hnode->bucket; in _glh_discard_copy()
2269 if(--hnode->used >= 1) in _glh_discard_copy()
2274 if(bucket->lines == hnode) { in _glh_discard_copy()
2275 bucket->lines = hnode->next; in _glh_discard_copy()
2278 for(prev=bucket->lines; prev && prev->next != hnode; prev=prev->next) in _glh_discard_copy()
2281 prev->next = hnode->next; in _glh_discard_copy()
2283 hnode->next = NULL; in _glh_discard_copy()
2287 if(hnode->head) { in _glh_discard_copy()
2294 for(nseg=1,tail=hnode->head; tail->next; nseg++,tail=tail->next) in _glh_discard_copy()
2301 glh->unused = hnode->head; in _glh_discard_copy()
2308 hnode = (GlhHashNode *) _del_FreeListNode(glh->hash.node_mem, hnode); in _glh_discard_copy()