| 999 * @param clone_allocator the allocator that is passed to the clone function |
999 * @param clone_allocator the allocator that is passed to the clone function |
| 1000 * @param data optional additional data that is passed to the clone function |
1000 * @param data optional additional data that is passed to the clone function |
| 1001 * @retval zero when the elements were successfully cloned |
1001 * @retval zero when the elements were successfully cloned |
| 1002 * @retval non-zero when an allocation error occurred |
1002 * @retval non-zero when an allocation error occurred |
| 1003 */ |
1003 */ |
| 1004 cx_attr_nonnull_arg(1, 2, 3) |
1004 cx_attr_nonnull_arg(1, 2, 3, 4) |
| 1005 CX_EXPORT int cxListDifference(CxList *dst, |
1005 CX_EXPORT int cxListDifference(CxList *dst, |
| 1006 const CxList *minuend, const CxList *subtrahend, |
1006 const CxList *minuend, const CxList *subtrahend, |
| 1007 cx_clone_func clone_func, const CxAllocator *clone_allocator, void *data); |
1007 cx_clone_func clone_func, const CxAllocator *clone_allocator, void *data); |
| 1008 |
1008 |
| 1009 /** |
1009 /** |
| 1022 * @param clone_allocator the allocator that is passed to the clone function |
1022 * @param clone_allocator the allocator that is passed to the clone function |
| 1023 * @param data optional additional data that is passed to the clone function |
1023 * @param data optional additional data that is passed to the clone function |
| 1024 * @retval zero when the elements were successfully cloned |
1024 * @retval zero when the elements were successfully cloned |
| 1025 * @retval non-zero when an allocation error occurred |
1025 * @retval non-zero when an allocation error occurred |
| 1026 */ |
1026 */ |
| 1027 cx_attr_nonnull_arg(1, 2, 3) |
1027 cx_attr_nonnull_arg(1, 2, 3, 4) |
| 1028 CX_EXPORT int cxListIntersection(CxList *dst, const CxList *src, const CxList *other, |
1028 CX_EXPORT int cxListIntersection(CxList *dst, const CxList *src, const CxList *other, |
| 1029 cx_clone_func clone_func, const CxAllocator *clone_allocator, void *data); |
1029 cx_clone_func clone_func, const CxAllocator *clone_allocator, void *data); |
| 1030 |
1030 |
| 1031 #ifdef __cplusplus |
1031 #ifdef __cplusplus |
| 1032 } // extern "C" |
1032 } // extern "C" |