diff -r 2be8fe3d5a2d -r 5da2ead43077 src/cx/array_list.h --- a/src/cx/array_list.h Thu Jan 25 22:01:12 2024 +0100 +++ b/src/cx/array_list.h Thu Jan 25 22:05:48 2024 +0100 @@ -99,12 +99,12 @@ extern struct cx_array_reallocator_s *cx_array_default_reallocator; /** - * Return codes for cx_array_copy(). + * Return codes for array functions. */ -enum cx_array_copy_result { - CX_ARRAY_COPY_SUCCESS, - CX_ARRAY_COPY_REALLOC_NOT_SUPPORTED, - CX_ARRAY_COPY_REALLOC_FAILED, +enum cx_array_result { + CX_ARRAY_SUCCESS, + CX_ARRAY_REALLOC_NOT_SUPPORTED, + CX_ARRAY_REALLOC_FAILED, }; /** @@ -132,7 +132,7 @@ * if re-allocation shall not happen * @return zero on success, non-zero error code on failure */ -enum cx_array_copy_result cx_array_copy( +enum cx_array_result cx_array_copy( void **target, size_t *size, size_t *capacity,