aboutsummaryrefslogtreecommitdiff
path: root/map.h
blob: df3139e34cba127b8716529db7e37f5f0072faf9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
struct mapkey {
	uint64_t hash;
	const char *str;
	size_t len;
};

void mapkey(struct mapkey *, const char *, size_t);

struct map *mkmap(size_t);
void delmap(struct map *, void(void *));
void **mapput(struct map *, struct mapkey *);
void *mapget(struct map *, struct mapkey *);