Initialize the hash table */
| 158 | |
| 159 | /* Initialize the hash table */ |
| 160 | int _dictInit |
| 161 | ( |
| 162 | dict *d, |
| 163 | const dictType *type |
| 164 | ) { |
| 165 | _dictReset(d, 0); |
| 166 | _dictReset(d, 1); |
| 167 | d->type = type; |
| 168 | d->rehashidx = -1; |
| 169 | d->pauserehash = 0; |
| 170 | return DICT_OK; |
| 171 | } |
| 172 | |
| 173 | /* Resize the table to the minimal size that contains all the elements, |
| 174 | * but with the invariant of a USED/BUCKETS ratio near to <= 1 */ |
no test coverage detected