Sun, 26 Sep 2021 13:06:48 +0200
remove public visibility of default allocator class
src/cx/allocator.h | file | annotate | diff | comparison | revisions | |
test/test_allocator.c | file | annotate | diff | comparison | revisions |
--- a/src/cx/allocator.h Sun Sep 26 12:03:38 2021 +0200 +++ b/src/cx/allocator.h Sun Sep 26 13:06:48 2021 +0200 @@ -42,8 +42,6 @@ void(*free)(void *data, void *mem); } cx_allocator_class; -extern cx_allocator_class cx_default_allocator_class; - struct cx_allocator_s { cx_allocator_class *cl; void *data;
--- a/test/test_allocator.c Sun Sep 26 12:03:38 2021 +0200 +++ b/test/test_allocator.c Sun Sep 26 13:06:48 2021 +0200 @@ -31,7 +31,7 @@ void test_default_allocator_available(void) { cx_allocator_class *clazz = cxDefaultAllocator->cl; - CU_ASSERT_PTR_EQUAL(clazz, &cx_default_allocator_class) + CU_ASSERT_PTR_NOT_NULL(clazz) } void test_default_malloc(void) {