chiark / gitweb /
@@@ tty mess
[mLib] / utils / macros.h
index b48e6f68fb13335e31ca8cbebbe0adfc112a4125..4bf566348c8d3cc8ebeaf86d110ae71961af0538 100644 (file)
  * Returns:    The address of the containing @ty@ object.
  */
 
-#define CONTAINER(type, member, p)                                     \
-  (!sizeof((p) = &((type *)0)->mem) +                                  \
-   (type *)((unsigned char *)(p) - offsetof(type, mem)))
+#define CONTAINER(type, mem, p)                                                \
+       (!sizeof((p) = &((type *)0)->mem) +                             \
+        (type *)((unsigned char *)(p) - offsetof(type, mem)))
 
 /* --- @UNCONST@, @UNVOLATILE@, @UNQUALIFY@ --- *
  *