Lines Matching refs:cur
307 HT_ITEM *cur, *prev;
321 cur = handle->ht_table[h_index].he_head;
324 while (cur) {
325 if (!(cur->hi_flags & HTIF_MARKED_DELETED) &&
326 (handle->ht_cmp(cur->hi_key, key, key_len) == 0)) {
330 cur->hi_next;
332 prev->hi_next = cur->hi_next;
335 handle->ht_callback(cur);
337 data = cur->hi_data;
343 free(cur);
351 prev = cur;
352 cur = cur->hi_next;
371 HT_ITEM *cur;
383 cur = handle->ht_table[h_index].he_head;
385 while (cur) {
386 if (!(cur->hi_flags & HTIF_MARKED_DELETED) &&
387 (handle->ht_cmp(cur->hi_key, key, key_len) == 0))
388 return (cur);
390 cur = cur->hi_next;
439 HT_ITEM *cur, *prev;
445 cur = handle->ht_table[i].he_head;
448 while (cur) {
449 if (cur->hi_flags & HTIF_MARKED_DELETED) {
455 cur->hi_next;
457 prev->hi_next = cur->hi_next;
460 handle->ht_callback(cur);
466 free(cur);
472 cur = handle->ht_table[i].he_head;
474 cur = prev->hi_next;
478 prev = cur;
479 cur = cur->hi_next;