CELIX-380: Fix for PROPERTIES_FOR_EACH macro
Project: http://git-wip-us.apache.org/repos/asf/celix/repo Commit: http://git-wip-us.apache.org/repos/asf/celix/commit/7ab8b6b4 Tree: http://git-wip-us.apache.org/repos/asf/celix/tree/7ab8b6b4 Diff: http://git-wip-us.apache.org/repos/asf/celix/diff/7ab8b6b4 Branch: refs/heads/release/celix-2.0.0 Commit: 7ab8b6b43ed16c40ca8aaf529d5c8382d644b3ad Parents: fc96bc5 Author: Erjan Altena <erjanalt...@gmail.com> Authored: Mon Oct 10 19:25:24 2016 +0200 Committer: Erjan Altena <erjanalt...@gmail.com> Committed: Mon Oct 10 19:25:24 2016 +0200 ---------------------------------------------------------------------- framework/public/include/properties.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/celix/blob/7ab8b6b4/framework/public/include/properties.h ---------------------------------------------------------------------- diff --git a/framework/public/include/properties.h b/framework/public/include/properties.h index 597aff1..9a12a2a 100644 --- a/framework/public/include/properties.h +++ b/framework/public/include/properties.h @@ -47,10 +47,8 @@ FRAMEWORK_EXPORT void properties_set(properties_pt properties, const char* key, FRAMEWORK_EXPORT celix_status_t properties_copy(properties_pt properties, properties_pt *copy); - #define PROPERTIES_FOR_EACH(props, key) \ - for(hash_map_iterator_t iter = hashMapIterator_construct((props)); \ - hashMapIterator_hasNext(&iter); \ - (key) = (const char*)hashMapIterator_nextKey(&iter)) + for(hash_map_iterator_t iter = hashMapIterator_construct(props); \ + hashMapIterator_hasNext(&iter), (key) = (const char*)hashMapIterator_nextKey(&iter);) #endif /* PROPERTIES_H_ */