remove public visibility of default allocator class

Sun, 26 Sep 2021 13:06:48 +0200

author
Mike Becker <universe@uap-core.de>
date
Sun, 26 Sep 2021 13:06:48 +0200
changeset 419
b5d6cb88d05d
parent 418
ab30d32ae798
child 420
8eb6faa2edba
child 424
2d6f6cb24132

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) {

mercurial