Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BF9DB200BD4 for ; Wed, 26 Oct 2016 14:15:29 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BE771160B05; Wed, 26 Oct 2016 12:15:29 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0BA1A160ACA for ; Wed, 26 Oct 2016 14:15:28 +0200 (CEST) Received: (qmail 33910 invoked by uid 500); 26 Oct 2016 12:15:28 -0000 Mailing-List: contact commits-help@celix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@celix.apache.org Delivered-To: mailing list commits@celix.apache.org Received: (qmail 32686 invoked by uid 99); 26 Oct 2016 12:15:25 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Oct 2016 12:15:25 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 64A4AF16D2; Wed, 26 Oct 2016 12:15:25 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: pnoltes@apache.org To: commits@celix.apache.org Date: Wed, 26 Oct 2016 12:15:52 -0000 Message-Id: In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [29/50] [abbrv] celix git commit: CELIX-380: Fix for PROPERTIES_FOR_EACH macro archived-at: Wed, 26 Oct 2016 12:15:29 -0000 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 Authored: Mon Oct 10 19:25:24 2016 +0200 Committer: Erjan Altena 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_ */