Tue, 14 Oct 2025 21:02:26 +0200
add TODOs for using modern ucx features
| dav/sync.c | file | annotate | diff | comparison | revisions |
--- a/dav/sync.c Tue Sep 09 20:56:47 2025 +0200 +++ b/dav/sync.c Tue Oct 14 21:02:26 2025 +0200 @@ -203,17 +203,18 @@ } - +// TODO: remove, ucx supports creating iterators for NULL maps static CxMapIterator mapIteratorValues(CxMap *map) { return cxMapIteratorValues(map ? map : cxEmptyMap); } - +// TODO: remove static CxIterator listIterator(CxList *list) { return cxListIterator(list ? list : cxEmptyList); } typedef void*(*clonefunc)(void *elm, void *userdata); +// TODO: remove when ucx has a clone func static CxMap* mapClone(const CxAllocator *a, CxMap *map, clonefunc clone, void *userdata) { CxMap *newmap = cxHashMapCreate( a,