diff -r f549fd9fbd8f -r 54565fd74e74 src/cx/iterator.h --- a/src/cx/iterator.h Wed Sep 18 00:02:18 2024 +0200 +++ b/src/cx/iterator.h Sat Sep 28 15:47:28 2024 +0200 @@ -43,7 +43,7 @@ * True iff the iterator points to valid data. */ __attribute__ ((__nonnull__)) - bool (*valid)(void const *); + bool (*valid)(const void *); /** * Returns a pointer to the current element. @@ -51,13 +51,13 @@ * When valid returns false, the behavior of this function is undefined. */ __attribute__ ((__nonnull__)) - void *(*current)(void const *); + void *(*current)(const void *); /** * Original implementation in case the function needs to be wrapped. */ __attribute__ ((__nonnull__)) - void *(*current_impl)(void const *); + void *(*current_impl)(const void *); /** * Advances the iterator. @@ -104,7 +104,7 @@ /** * Access for normal iterators. */ - void const *c; + const void *c; } src_handle; /** @@ -115,7 +115,7 @@ /** * A pointer to the key. */ - void const *key; + const void *key; /** * A pointer to the value. */ @@ -226,7 +226,7 @@ */ __attribute__((__warn_unused_result__)) CxIterator cxIterator( - void const *array, + const void *array, size_t elem_size, size_t elem_count );