# HG changeset patch # User Mike Becker # Date 1668342555 -3600 # Node ID 6ae8146d9f6289b7e0d46da6a13c37863a543f64 # Parent 2e93521145ac8dbd65c2b951eafeb384467611ae more custom data for array re-allocator diff -r 2e93521145ac -r 6ae8146d9f62 src/cx/array_list.h --- a/src/cx/array_list.h Sun Nov 13 13:22:03 2022 +0100 +++ b/src/cx/array_list.h Sun Nov 13 13:29:15 2022 +0100 @@ -60,20 +60,32 @@ * @param array the array to reallocate * @param capacity the new capacity (number of elements) * @param elem_size the size of each element - * @param data additional data + * @param alloc a reference to this allocator * @return a pointer to the reallocated memory or \c NULL on failure */ void *(*realloc)( void *array, size_t capacity, size_t elem_size, - void *data + struct cx_array_reallocator_s *alloc ); /** - * Additional data. + * Custom data pointer. */ - void *data; + void *ptr1; + /** + * Custom data pointer. + */ + void *ptr2; + /** + * Custom data integer. + */ + size_t int1; + /** + * Custom data integer. + */ + size_t int2; }; /**