1.1 --- a/src/cx/list.h Sun Nov 20 12:17:34 2022 +0100 1.2 +++ b/src/cx/list.h Sun Nov 20 15:51:02 2022 +0100 1.3 @@ -391,19 +391,19 @@ 1.4 /** 1.5 * Compares a list to another list of the same type. 1.6 * 1.7 - * First, the list sizes are compared. If they match, the lists are compared element-wise. 1.8 + * First, the list sizes are compared. 1.9 + * If they match, the lists are compared element-wise. 1.10 * 1.11 * @param list the list 1.12 * @param other the list to compare to 1.13 - * @return zero, if both lists are equal element wise, negative if the first list is smaller, zero if the first list is larger 1.14 + * @return zero, if both lists are equal element wise, 1.15 + * negative if the first list is smaller, positive if the first list is larger 1.16 */ 1.17 __attribute__((__nonnull__)) 1.18 -static inline int cxListCompare( 1.19 - CxList *list, 1.20 - CxList *other 1.21 -) { 1.22 - return list->cl->compare(list, other); 1.23 -} 1.24 +int cxListCompare( 1.25 + CxList const *list, 1.26 + CxList const *other 1.27 +); 1.28 1.29 /** 1.30 * Deallocates the memory of the specified list structure.