README: mentioning other make targets seem unnecessary
[rangi.git] / tab.h
bloba91c4160897718a76ce6fa53259f47520dfab559
1 #define TABITEMS (1 << 18)
2 #define container(ptr, type, field) ((type *) ((void *) (ptr) - \
3 offsetof(type, field)))
5 struct tab {
6 int head[TABITEMS];
7 char *data[TABITEMS];
8 int next[TABITEMS];
9 int n;
12 void tab_add(struct tab *t, char *s);
13 void tab_del(struct tab *t, char *s);
14 char *tab_get(struct tab *t, char *s);