Lines Matching refs:cursor

183           struct hash_entry const *cursor = bucket;  in hash_get_max_bucket_length()  local
186 while (cursor = cursor->next, cursor) in hash_get_max_bucket_length()
211 struct hash_entry const *cursor = bucket; in hash_table_ok() local
218 while (cursor = cursor->next, cursor) in hash_table_ok()
264 struct hash_entry const *cursor; in hash_lookup() local
269 for (cursor = bucket; cursor; cursor = cursor->next) in hash_lookup()
270 if (entry == cursor->data || table->comparator (entry, cursor->data)) in hash_lookup()
271 return cursor->data; in hash_lookup()
310 struct hash_entry const *cursor; in hash_get_next() local
313 cursor = bucket; in hash_get_next()
316 if (cursor->data == entry && cursor->next) in hash_get_next()
317 return cursor->next->data; in hash_get_next()
318 cursor = cursor->next; in hash_get_next()
320 while (cursor != NULL); in hash_get_next()
341 struct hash_entry const *cursor; in hash_get_entries() local
347 for (cursor = bucket; cursor; cursor = cursor->next) in hash_get_entries()
351 buffer[counter++] = cursor->data; in hash_get_entries()
373 struct hash_entry const *cursor; in hash_do_for_each() local
379 for (cursor = bucket; cursor; cursor = cursor->next) in hash_do_for_each()
381 if (! processor (cursor->data, processor_data)) in hash_do_for_each()
661 struct hash_entry *cursor; in hash_clear() local
665 for (cursor = bucket->next; cursor; cursor = next) in hash_clear()
668 table->data_freer (cursor->data); in hash_clear()
669 cursor->data = NULL; in hash_clear()
671 next = cursor->next; in hash_clear()
674 cursor->next = table->free_entry_list; in hash_clear()
675 table->free_entry_list = cursor; in hash_clear()
699 struct hash_entry *cursor; in hash_free() local
709 for (cursor = bucket; cursor; cursor = cursor->next) in hash_free()
710 table->data_freer (cursor->data); in hash_free()
724 for (cursor = bucket->next; cursor; cursor = next) in hash_free()
726 next = cursor->next; in hash_free()
727 free (cursor); in hash_free()
732 for (cursor = table->free_entry_list; cursor; cursor = next) in hash_free()
734 next = cursor->next; in hash_free()
735 free (cursor); in hash_free()
794 struct hash_entry *cursor; in hash_find_entry() local
828 for (cursor = bucket; cursor->next; cursor = cursor->next) in hash_find_entry()
830 if (entry == cursor->next->data in hash_find_entry()
831 || table->comparator (entry, cursor->next->data)) in hash_find_entry()
833 void *data = cursor->next->data; in hash_find_entry()
837 struct hash_entry *next = cursor->next; in hash_find_entry()
841 cursor->next = next->next; in hash_find_entry()
863 struct hash_entry *cursor; in transfer_entries() local
877 for (cursor = bucket->next; cursor; cursor = next) in transfer_entries()
879 data = cursor->data; in transfer_entries()
882 next = cursor->next; in transfer_entries()
888 cursor->next = new_bucket->next; in transfer_entries()
889 new_bucket->next = cursor; in transfer_entries()
897 free_entry (dst, cursor); in transfer_entries()
1189 struct hash_entry *cursor = table->free_entry_list; in hash_delete() local
1191 while (cursor) in hash_delete()
1193 next = cursor->next; in hash_delete()
1194 free (cursor); in hash_delete()
1195 cursor = next; in hash_delete()
1218 struct hash_entry *cursor; in hash_print() local
1223 for (cursor = bucket; cursor; cursor = cursor->next) in hash_print()
1225 char const *s = cursor->data; in hash_print()