static unsigned int fi_entry_hash (const void *key) { fi_entry_t *e; char buf[1024]; e = (fi_entry_t *) key; sprintf (buf, "%s%d", e->file, e->line); return dictGenCaseHashFunction ((unsigned char *) buf, strlen (buf)); }
unsigned int dictCaseHash(const void *key) { return dictGenCaseHashFunction((const unsigned char*)key, strlen(key)); }
unsigned int dictSdsCaseHash(const void *key) { return dictGenCaseHashFunction((const unsigned char*)key, (int)(sdslen((const sds)key))); }
static unsigned int dictSdsCaseHash(const void *key) { return dictGenCaseHashFunction((unsigned char*)key, sdslen((char*)key)); }