1.1 --- a/src/linked_list.c Tue Dec 28 17:38:02 2021 +0100 1.2 +++ b/src/linked_list.c Tue Dec 28 17:41:51 2021 +0100 1.3 @@ -613,6 +613,11 @@ 1.4 true, list->cmpfunc); 1.5 } 1.6 1.7 +static void cx_ll_reverse(cx_list_s *list) { 1.8 + cx_linked_list *ll = (cx_linked_list *) list; 1.9 + cx_linked_list_reverse((void **) &ll->begin, (void **) ll->end, CX_LL_LOC_PREV, CX_LL_LOC_NEXT); 1.10 +} 1.11 + 1.12 static int cx_ll_compare( 1.13 cx_list_s const *list, 1.14 cx_list_s const *other 1.15 @@ -642,7 +647,8 @@ 1.16 cx_ll_at, 1.17 cx_ll_find, 1.18 cx_ll_sort, 1.19 - cx_ll_compare 1.20 + cx_ll_compare, 1.21 + cx_ll_reverse 1.22 }; 1.23 1.24 static cx_list_class cx_pointer_linked_list_class = { 1.25 @@ -652,7 +658,8 @@ 1.26 cx_pll_at, 1.27 cx_pll_find, 1.28 cx_pll_sort, 1.29 - cx_pll_compare 1.30 + cx_pll_compare, 1.31 + cx_ll_reverse 1.32 }; 1.33 1.34 CxList cxLinkedListCreate(