src/hash_map.c

changeset 573
3f3a0d19db58
parent 563
69a83fad8a35
child 574
d566bd3e6af8
equal deleted inserted replaced
572:f0f99dd06d9f 573:3f3a0d19db58
199 return cx_hash_map_get_remove(map, key, true); 199 return cx_hash_map_get_remove(map, key, true);
200 } 200 }
201 201
202 static void *cx_hash_map_iter_current_entry(CxIterator const *iter) { 202 static void *cx_hash_map_iter_current_entry(CxIterator const *iter) {
203 // struct has to have a compatible signature 203 // struct has to have a compatible signature
204 struct cx_map_entry_s *entry = (struct cx_map_entry_s *) &(iter->kv_data); 204 return (struct cx_map_entry_s *) &(iter->kv_data);
205 return entry;
206 } 205 }
207 206
208 static void *cx_hash_map_iter_current_key(CxIterator const *iter) { 207 static void *cx_hash_map_iter_current_key(CxIterator const *iter) {
209 struct cx_hash_map_element_s *elm = iter->elem_handle; 208 struct cx_hash_map_element_s *elm = iter->elem_handle;
210 return &elm->key; 209 return &elm->key;

mercurial