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; |