#include "common.h"
#include <string.h>
#include <ctype.h>
#include "char_xhash.h"
#include "xhash_tmpl_c.inc"
Include dependency graph for char_xhash.c:
Go to the source code of this file.
Defines | |
#define | XH_CALC_HASH_VAL(key, size) ( (size_t)tolower(key[0]) - (size_t)'a' ) |
define a rule to calculate a hash value. | |
#define | XH_KEYS_EQUAL(a, b) (strcmp(a, b) == 0) |
define a rule to compare two keys. | |
#define | XH_INVALID NULL |
tell the hash table how an error indicator looks like. | |
#define | XH_COPY_KEY(dest, source) |
define a way to copy keys. More... | |
#define | XH_FREE_KEY(a) pd_free(a) |
define a way to free keys. | |
#define | XH_COPY_CARGO(dest, source) |
define a way to copy keys. More... | |
#define | XH_FREE_CARGO(a) pd_free(a) |
define a way to free keys. |
Definition in file char_xhash.c.
|
Value: { \ dest = (XH_CARGO) pd_malloc(strlen(source)+1);\ strcpy(dest, source); \ }
Definition at line 59 of file char_xhash.c. |
|
Value: { \ dest = (XH_KEY) pd_malloc(strlen(source)+1);\ strcpy(dest, source); \ }
Definition at line 46 of file char_xhash.c. |