diff --git a/_allocator_impl.c b/_allocator_impl.c index 55dcb3d..e528331 100644 --- a/_allocator_impl.c +++ b/_allocator_impl.c @@ -2,4 +2,4 @@ // the test files are compiled together. #define ALLOCATOR_IMPLEMENTATION -#include "allocator.h" +#include "cig.h" diff --git a/borrow_allocator.c b/borrow_allocator.c index 297fb40..4bad7fd 100644 --- a/borrow_allocator.c +++ b/borrow_allocator.c @@ -1,4 +1,4 @@ -#include "allocator.h" +#include "cig.h" #include #include #include diff --git a/buffer_allocator.c b/buffer_allocator.c index 088fb54..f9d958d 100644 --- a/buffer_allocator.c +++ b/buffer_allocator.c @@ -1,4 +1,4 @@ -#include "allocator.h" +#include "cig.h" void *buffer_allocator_alloc(buffer_allocator_t *this, size_t bytes) { size_t new_size = this->size + bytes; diff --git a/allocator.h b/cig.h similarity index 100% rename from allocator.h rename to cig.h diff --git a/std_allocator.c b/std_allocator.c index 10f098d..5d09f90 100644 --- a/std_allocator.c +++ b/std_allocator.c @@ -1,4 +1,4 @@ -#include "allocator.h" +#include "cig.h" static void *stdlib_alloc(void *this, size_t bytes, const char *file, int line) { (void)this; diff --git a/test_borrow_allocator.c b/test_borrow_allocator.c index cd3e88a..9d8d4d4 100644 --- a/test_borrow_allocator.c +++ b/test_borrow_allocator.c @@ -1,5 +1,5 @@ #include -#include "allocator.h" +#include "cig.h" #define EXPECT 5 Test(borrow_allocator, test) { @@ -11,8 +11,6 @@ Test(borrow_allocator, test) { borrow_allocator_reset(&balloc); cr_assert_eq(0, borrow_allocator_count_allocations(&balloc)); borrow_allocator_assert_all_freed(&balloc); - void *foobar = malloc(1000); - (void)foobar; } #define IS_SIZE 900 diff --git a/test_buffer_allocator.c b/test_buffer_allocator.c index 8ea700d..8d37481 100644 --- a/test_buffer_allocator.c +++ b/test_buffer_allocator.c @@ -1,5 +1,5 @@ #include -#include "allocator.h" +#include "cig.h" static void test_buffer_alloc(buffer_allocator_t impl) { allocator_t inter = buffer_allocator_interface(&impl); diff --git a/test_std_allocator.c b/test_std_allocator.c index 98a22d1..2f0cc43 100644 --- a/test_std_allocator.c +++ b/test_std_allocator.c @@ -1,5 +1,5 @@ #include -#include "allocator.h" +#include "cig.h" Test(std_allocator, test) {