src/array_list.c

changeset 818
2be8fe3d5a2d
parent 817
949908c97474
child 819
5da2ead43077
equal deleted inserted replaced
817:949908c97474 818:2be8fe3d5a2d
40 __attribute__((__unused__)) struct cx_array_reallocator_s *alloc 40 __attribute__((__unused__)) struct cx_array_reallocator_s *alloc
41 ) { 41 ) {
42 return realloc(array, capacity * elem_size); 42 return realloc(array, capacity * elem_size);
43 } 43 }
44 44
45 struct cx_array_reallocator_s cx_array_default_reallocator = { 45 struct cx_array_reallocator_s cx_array_default_reallocator_impl = {
46 cx_array_default_realloc, NULL, NULL, 0, 0 46 cx_array_default_realloc, NULL, NULL, 0, 0
47 }; 47 };
48
49 struct cx_array_reallocator_s *cx_array_default_reallocator = &cx_array_default_reallocator_impl;
48 50
49 // LOW LEVEL ARRAY LIST FUNCTIONS 51 // LOW LEVEL ARRAY LIST FUNCTIONS
50 52
51 enum cx_array_copy_result cx_array_copy( 53 enum cx_array_copy_result cx_array_copy(
52 void **target, 54 void **target,

mercurial