Add an element to the target hash table */
| 604 | |
| 605 | /* Add an element to the target hash table */ |
| 606 | int dictAdd(dict *d, void *key, void *val, dictEntry **existing) |
| 607 | { |
| 608 | dictEntry *entry = dictAddRaw(d,key,existing); |
| 609 | |
| 610 | if (!entry) return DICT_ERR; |
| 611 | dictSetVal(d, entry, val); |
| 612 | return DICT_OK; |
| 613 | } |
| 614 | |
| 615 | /* Low level add or find: |
| 616 | * This function adds the entry but instead of setting a value returns the |
no test coverage detected