Changeset 97b199b1 in mainline for uspace/lib/c/generic/adt/hash_table.c
- Timestamp:
- 2012-10-09T21:09:39Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9f4067b6
- Parents:
- 38fc00b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/c/generic/adt/hash_table.c
r38fc00b r97b199b1 62 62 63 63 64 static size_t round_up_size(size_t size);65 static bool alloc_table(size_t bucket_cnt, list_t **pbuckets);66 static void clear_items(hash_table_t * h);67 static void resize(hash_table_t * h, size_t new_bucket_cnt);68 static void grow_if_needed(hash_table_t * h);69 static void shrink_if_needed(hash_table_t * h);64 static size_t round_up_size(size_t); 65 static bool alloc_table(size_t, list_t **); 66 static void clear_items(hash_table_t *); 67 static void resize(hash_table_t *, size_t); 68 static void grow_if_needed(hash_table_t *); 69 static void shrink_if_needed(hash_table_t *); 70 70 71 71 /* Dummy do nothing callback to invoke in place of remove_callback == NULL. */ … … 112 112 h->apply_ongoing = false; 113 113 114 if (h->op->remove_callback == 0) {114 if (h->op->remove_callback == NULL) { 115 115 h->op->remove_callback = nop_remove_callback; 116 116 }
Note:
See TracChangeset
for help on using the changeset viewer.