Reset a hash table already initialized with ht_init(). * NOTE: This function should only be called by ht_destroy(). */
| 99 | /* Reset a hash table already initialized with ht_init(). |
| 100 | * NOTE: This function should only be called by ht_destroy(). */ |
| 101 | static void _dictReset(dictht *ht) |
| 102 | { |
| 103 | ht->table = NULL; |
| 104 | ht->size = 0; |
| 105 | ht->sizemask = 0; |
| 106 | ht->used = 0; |
| 107 | } |
| 108 | |
| 109 | /* Create a new hash table */ |
| 110 | dict *dictCreate(dictType *type, |
no outgoing calls
no test coverage detected