* Initializes a hashmap_entry structure. * * `entry` points to the entry to initialize. * `hash` is the hash code of the entry. * * The hashmap_entry structure does not hold references to external resources, * and it is safe to just discard it once you are done with it (i.e. if * your structure was allocated with xmalloc(), you can just free(3) it, * and if it is on stack, you can just let
| 291 | * and if it is on stack, you can just let it go out of scope). |
| 292 | */ |
| 293 | static inline void hashmap_entry_init(struct hashmap_entry *e, |
| 294 | unsigned int hash) |
| 295 | { |
| 296 | e->hash = hash; |
| 297 | e->next = NULL; |
| 298 | } |
| 299 | |
| 300 | /* |
| 301 | * Return the number of items in the map. |
no outgoing calls