diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-05-10 15:43:31 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-05-10 15:43:31 -0400 |
commit | 3929ddedca049ac6f9dcbe88f85233b6ec1a415a (patch) | |
tree | 94d792e509ea480b26ef57e8f35b56015931a0a9 /src/config.h | |
parent | 8368e139c176dcde3b125f4a180ff868729b1862 (diff) | |
download | bfs-3929ddedca049ac6f9dcbe88f85233b6ec1a415a.tar.xz |
config: s/BFS_FLEX_SIZEOF/flex_sizeof/
Diffstat (limited to 'src/config.h')
-rw-r--r-- | src/config.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.h b/src/config.h index 60bc930..aa54491 100644 --- a/src/config.h +++ b/src/config.h @@ -136,7 +136,7 @@ */ #define countof(array) (sizeof(array) / sizeof(0[array])) -// Lower bound on BFS_FLEX_SIZEOF() +// Lower bound on flex_sizeof() #define BFS_FLEX_LB(type, member, length) (offsetof(type, member) + sizeof(((type *)NULL)->member[0]) * (length)) // Maximum macro for BFS_FLEX_SIZE() @@ -153,7 +153,7 @@ * @param length * The length of the flexible array. */ -#define BFS_FLEX_SIZEOF(type, member, length) \ +#define flex_sizeof(type, member, length) \ (sizeof(type) <= BFS_FLEX_LB(type, member, 0) \ ? BFS_FLEX_LB(type, member, length) \ : BFS_FLEX_MAX(sizeof(type), BFS_FLEX_LB(type, member, length))) |