summaryrefslogtreecommitdiff
path: root/lib/compiler.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2023-11-05 18:16:54 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2023-11-05 18:19:09 +0100
commit19cbc3157983ec0a1a15ec1be90a4a1a3de9969b (patch)
tree31268972dbfe40422b8991c4998aaa848597b495 /lib/compiler.h
parent4bdba57861d1325b42b5b81c118bf76b51f172e5 (diff)
lib: rename `prefixtype` to `uniontype`
About to use this for sockunion, which is not a prefix. `uniontype` makes more sense, the macros are for defining transparent unions after all. (clang-format off thrown in as it otherwise wrecks formatting.) Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/compiler.h')
-rw-r--r--lib/compiler.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/compiler.h b/lib/compiler.h
index 0a54c02d20..617b0c265b 100644
--- a/lib/compiler.h
+++ b/lib/compiler.h
@@ -424,10 +424,10 @@ _Static_assert(sizeof(_uint64_t) == 8 && sizeof(_int64_t) == 8,
* type.)
*/
#ifndef __cplusplus
-#define prefixtype(uname, typename, fieldname) typename *fieldname;
+#define uniontype(uname, typename, fieldname) typename *fieldname;
#define TRANSPARENT_UNION __attribute__((transparent_union))
#else
-#define prefixtype(uname, typename, fieldname) \
+#define uniontype(uname, typename, fieldname) \
typename *fieldname; \
uname(typename *x) \
{ \