gen: ignore the sign of the second operand in / and %
[neatcc.git] / tab.h
blob633888afb44c0cb26ac9df409a8453b88a05c20a
1 #define TABITEMS (1 << 12)
2 #define offsetof(type, field) ((int) (&((type *) 0)->field))
3 #define container(ptr, type, field) ((type *) ((ptr) - 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);