summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2023-05-18 11:25:14 -0400
committerTavian Barnes <tavianator@tavianator.com>2023-05-18 11:25:35 -0400
commit4505819c576fc93f21d73e1bf85550250cdb72a2 (patch)
tree517cac40940f0fcace0c0d213eb797364822a355
parenta1231458e25a6b1d6e6a600d59ca1b252d65db1d (diff)
downloadbfs-4505819c576fc93f21d73e1bf85550250cdb72a2.tar.xz
bit: Rename int.h to bit.h
-rw-r--r--Makefile2
-rw-r--r--src/bit.h (renamed from src/int.h)6
-rw-r--r--src/trie.c2
-rw-r--r--tests/bit.c (renamed from tests/int.c)2
4 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 361f230..1d3bd20 100644
--- a/Makefile
+++ b/Makefile
@@ -240,7 +240,7 @@ LIBBFS := \
$(BIN)/bfs: $(OBJ)/src/main.o $(LIBBFS)
# Standalone unit tests
-UNITS := bfstd int trie xtimegm
+UNITS := bfstd bit trie xtimegm
UNIT_TESTS := $(UNITS:%=$(BIN)/tests/%)
UNIT_CHECKS := $(UNITS:%=check-%)
diff --git a/src/int.h b/src/bit.h
index 885933d..efd7d27 100644
--- a/src/int.h
+++ b/src/bit.h
@@ -5,8 +5,8 @@
* Bits & bytes.
*/
-#ifndef BFS_INT_H
-#define BFS_INT_H
+#ifndef BFS_BIT_H
+#define BFS_BIT_H
#include "config.h"
#include <limits.h>
@@ -352,4 +352,4 @@ UINT_OVERLOADS(BIT_CEIL)
#endif // __STDC_VERSION__ < 202311L
-#endif // BFS_INT_H
+#endif // BFS_BIT_H
diff --git a/src/trie.c b/src/trie.c
index 2226890..7c2f65d 100644
--- a/src/trie.c
+++ b/src/trie.c
@@ -82,9 +82,9 @@
*/
#include "trie.h"
+#include "bit.h"
#include "config.h"
#include "diag.h"
-#include "int.h"
#include "list.h"
#include <assert.h>
#include <limits.h>
diff --git a/tests/int.c b/tests/bit.c
index e59efde..7a7b0f3 100644
--- a/tests/int.c
+++ b/tests/bit.c
@@ -3,7 +3,7 @@
#undef NDEBUG
-#include "../src/int.h"
+#include "../src/bit.h"
#include "../src/diag.h"
#include <assert.h>
#include <limits.h>