Create a new hash table */
| 72 | |
| 73 | /* Create a new hash table */ |
| 74 | static dict *dictCreate(dictType *type, void *privDataPtr) { |
| 75 | dict *ht = hi_malloc(sizeof(*ht)); |
| 76 | if (ht == NULL) |
| 77 | return NULL; |
| 78 | |
| 79 | _dictInit(ht,type,privDataPtr); |
| 80 | return ht; |
| 81 | } |
| 82 | |
| 83 | /* Initialize the hash table */ |
| 84 | static int _dictInit(dict *ht, dictType *type, void *privDataPtr) { |
no test coverage detected