diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2023-05-10 15:42:54 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2023-05-10 15:42:54 -0400 |
commit | 8368e139c176dcde3b125f4a180ff868729b1862 (patch) | |
tree | c4dd77aef93eef5d67b56aa4dc35ce6c4c371cf2 /src/config.h | |
parent | f3ecfc1ee49e1c3ddd3d19ca6166424d72a08a5c (diff) | |
download | bfs-8368e139c176dcde3b125f4a180ff868729b1862.tar.xz |
config: s/BFS_COUNTOF/countof/
Diffstat (limited to 'src/config.h')
-rw-r--r-- | src/config.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config.h b/src/config.h index e17f90b..60bc930 100644 --- a/src/config.h +++ b/src/config.h @@ -134,7 +134,7 @@ /** * Get the length of an array. */ -#define BFS_COUNTOF(array) (sizeof(array) / sizeof(0[array])) +#define countof(array) (sizeof(array) / sizeof(0[array])) // Lower bound on BFS_FLEX_SIZEOF() #define BFS_FLEX_LB(type, member, length) (offsetof(type, member) + sizeof(((type *)NULL)->member[0]) * (length)) |