test/util_allocator.c

changeset 500
eb9e7bd40a8e
parent 494
6ce8cfa10a96
equal deleted inserted replaced
499:3dc9075df822 500:eb9e7bd40a8e
111 111
112 struct cx_allocator_s cx_testing_allocator = { 112 struct cx_allocator_s cx_testing_allocator = {
113 &cx_testing_allocator_class, 113 &cx_testing_allocator_class,
114 &cx_testing_allocator_data 114 &cx_testing_allocator_data
115 }; 115 };
116 CxAllocator cxTestingAllocator = &cx_testing_allocator; 116 CxAllocator *cxTestingAllocator = &cx_testing_allocator;
117 117
118 void cxTestingAllocatorReset(void) { 118 void cxTestingAllocatorReset(void) {
119 memset(&cx_testing_allocator_data, 0, sizeof(cx_testing_allocator_s)); 119 memset(&cx_testing_allocator_data, 0, sizeof(cx_testing_allocator_s));
120 } 120 }
121 121

mercurial