Lines Matching refs:NULL
57 assert(hash_fn != NULL); in hash_map_new_internal()
60 if (hash_map == NULL) { in hash_map_new_internal()
61 return NULL; in hash_map_new_internal()
71 if (hash_map->bucket == NULL) { in hash_map_new_internal()
73 return NULL; in hash_map_new_internal()
90 if (hash_map == NULL) { in hash_map_free()
117 assert(hash_map != NULL); in hash_map_has_key()
123 return (hash_map_entry != NULL); in hash_map_has_key()
128 assert(hash_map != NULL); in hash_map_set()
129 assert(data != NULL); in hash_map_set()
133 if (hash_map->bucket[hash_key].list == NULL) { in hash_map_set()
135 if (hash_map->bucket[hash_key].list == NULL) { in hash_map_set()
152 if (hash_map_entry == NULL) { in hash_map_set()
165 assert(hash_map != NULL); in hash_map_erase()
171 if (hash_map_entry == NULL) { in hash_map_erase()
179 hash_map->bucket[hash_key].list = NULL; in hash_map_erase()
187 assert(hash_map != NULL); in hash_map_get()
193 if (hash_map_entry != NULL) { in hash_map_get()
197 return NULL; in hash_map_get()
202 assert(hash_map != NULL); in hash_map_clear()
205 if (hash_map->bucket[i].list == NULL) { in hash_map_clear()
209 hash_map->bucket[i].list = NULL; in hash_map_clear()
215 assert(hash_map != NULL); in hash_map_foreach()
216 assert(callback != NULL); in hash_map_foreach()
219 if (hash_map->bucket[i].list == NULL) { in hash_map_foreach()
235 assert(data != NULL); in bucket_free_()
252 if (hash_bucket_list == NULL) { in find_bucket_entry_()
253 return NULL; in find_bucket_entry_()
264 return NULL; in find_bucket_entry_()