Implement list folding functions.
* include/mailutils/list.h (mu_list_folder_t): New typedef. (mu_list_fold, mu_list_rfold): New functions. * libmailutils/list/fold.c: New file. * libmailutils/list/rfold.c: New file. * libmailutils/list/Makefile.am (liblist_la_SOURCES): Add fold.c and rfold.c * libmailutils/list/gmap.c (mu_list_gmap): Access list elements directly, instead of using iterators. * libmailutils/tests/list.at: Add test cases for list folding. * libmailutils/tests/listop.c: Add fold and rfold commands.
Showing
7 changed files
with
265 additions
and
15 deletions
libmailutils/list/fold.c
0 → 100644
libmailutils/list/rfold.c
0 → 100644
-
Please register or sign in to post a comment