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));
}
Exemple #2
0
unsigned int dictCaseHash(const void *key) {
    return dictGenCaseHashFunction((const unsigned char*)key, strlen(key));
}
Exemple #3
0
unsigned int dictSdsCaseHash(const void *key) {
    return dictGenCaseHashFunction((const unsigned char*)key, (int)(sdslen((const sds)key)));
}
Exemple #4
0
static unsigned int dictSdsCaseHash(const void *key) {
    return dictGenCaseHashFunction((unsigned char*)key, sdslen((char*)key));
}