gen: merge decrement and check in i_memcpy() and i_memset()
[neatcc/cc.git] / tab.h
blob889f02048d75dec5ede9acce7dff3d40bfeb6f52
1 #define TABITEMS (1 << 12)
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);