From 19cbc3157983ec0a1a15ec1be90a4a1a3de9969b Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Sun, 5 Nov 2023 18:16:54 +0100 Subject: 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 --- lib/compiler.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/compiler.h') 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) \ { \ -- cgit v1.2.3