src/kv_list.c

changeset 1405
0f6515875a09
parent 1397
a5c7d63b064d
equal deleted inserted replaced
1404:ae80e36c05c7 1405:0f6515875a09
444 const CxMapIterator *iter = it; 444 const CxMapIterator *iter = it;
445 return iter->elem != NULL; 445 return iter->elem != NULL;
446 } 446 }
447 447
448 CxMapIterator cx_kvl_map_iterator(const CxMap *map, enum cx_map_iterator_type type) { 448 CxMapIterator cx_kvl_map_iterator(const CxMap *map, enum cx_map_iterator_type type) {
449 CxMapIterator iter = {}; 449 CxMapIterator iter = {0};
450 450
451 iter.type = type; 451 iter.type = type;
452 iter.map.c = map; 452 iter.map.c = map;
453 // although we iterate over the list, we only report that many elements that have a key in the map 453 // although we iterate over the list, we only report that many elements that have a key in the map
454 iter.elem_count = map->collection.size; 454 iter.elem_count = map->collection.size;

mercurial