You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by pn...@apache.org on 2016/10/26 12:15:52 UTC
[29/50] [abbrv] celix git commit: CELIX-380: Fix for
PROPERTIES_FOR_EACH macro
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/master
Commit: 7ab8b6b43ed16c40ca8aaf529d5c8382d644b3ad
Parents: fc96bc5
Author: Erjan Altena <er...@gmail.com>
Authored: Mon Oct 10 19:25:24 2016 +0200
Committer: Erjan Altena <er...@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_ */