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
     1.1 --- a/src/cx/allocator.h	Sun Sep 26 12:03:38 2021 +0200
     1.2 +++ b/src/cx/allocator.h	Sun Sep 26 13:06:48 2021 +0200
     1.3 @@ -42,8 +42,6 @@
     1.4      void(*free)(void *data, void *mem);
     1.5  } cx_allocator_class;
     1.6  
     1.7 -extern cx_allocator_class cx_default_allocator_class;
     1.8 -
     1.9  struct cx_allocator_s {
    1.10      cx_allocator_class *cl;
    1.11      void *data;
     2.1 --- a/test/test_allocator.c	Sun Sep 26 12:03:38 2021 +0200
     2.2 +++ b/test/test_allocator.c	Sun Sep 26 13:06:48 2021 +0200
     2.3 @@ -31,7 +31,7 @@
     2.4  
     2.5  void test_default_allocator_available(void) {
     2.6      cx_allocator_class *clazz = cxDefaultAllocator->cl;
     2.7 -    CU_ASSERT_PTR_EQUAL(clazz, &cx_default_allocator_class)
     2.8 +    CU_ASSERT_PTR_NOT_NULL(clazz)
     2.9  }
    2.10  
    2.11  void test_default_malloc(void) {

mercurial