4 #define COOKIE_LL_NEW(x) { \
6 x = xmalloc(sizeof(struct COOKIE_LIST_LIST)); \
8 while (x->next != NULL) x = x->next; \
9 x->next = xmalloc(sizeof(struct COOKIE_LIST_LIST)); \
14 x->direction = COOKIE_BOTH; \
18 #define COOKIE_LL_INSERT(x, a, b) { \
20 if (!strcasecmp(a, "in")) \
21 x->direction = COOKIE_IN; \
22 else if (!strcasecmp(a, "out")) \
23 x->direction = COOKIE_OUT; \
24 else if (!strcasecmp(a, "both")) \
25 x->direction = COOKIE_BOTH; \
27 if (b != NULL && x->he == NULL) { \
28 x->he = reg_compile(b, REGFLAGS | REG_NOSUB); \
29 x->host = xstrdup(b); \
33 #endif /* COOKIES_H */