enum { L, R, NDIR };
/* Response types, and the data needed to represent any associated data. A
- * U(MEMB, TYPE) constructs a union member; an N means no associated data.
+ * U_(MEMB, TYPE) constructs a union member; an N_ means no associated data.
*/
#define RESPONSE(_) \
- _(ERROR, U(error, unsigned)) \
- _(UID, U(uid, uid_t)) \
- _(NAT, U(nat, struct socket))
+ _(ERROR, U_(error, unsigned)) \
+ _(UID, U_(uid, uid_t)) \
+ _(NAT, U_(nat, struct socket))
enum {
#define DEFENUM(what, branch) R_##what,
unsigned resp; /* Our response type */
union { /* A union of response data */
#define DEFBRANCH(WHAT, branch) branch
-#define U(memb, ty) ty memb;
-#define N
+#define U_(memb, ty) ty memb;
+#define N_
RESPONSE(DEFBRANCH)
-#undef U
-#undef N
+#undef U_
+#undef N_
#undef DEFBRANCH
} u;
} query;