Create a new hash table */
| 108 | |
| 109 | /* Create a new hash table */ |
| 110 | dict *dictCreate(dictType *type, |
| 111 | void *privDataPtr) |
| 112 | { |
| 113 | dict *d = (dict*)zmalloc(sizeof(*d), MALLOC_SHARED); |
| 114 | |
| 115 | _dictInit(d,type,privDataPtr); |
| 116 | return d; |
| 117 | } |
| 118 | |
| 119 | /* Initialize the hash table */ |
| 120 | int _dictInit(dict *d, dictType *type, |
no test coverage detected