From patchwork Tue Dec 16 07:00:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yousong Zhou X-Patchwork-Id: 422469 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 801DB1400EA for ; Thu, 18 Dec 2014 13:59:02 +1100 (AEDT) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id D7D9728C184; Thu, 18 Dec 2014 03:53:24 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00, DATE_IN_PAST_24_48, FREEMAIL_FROM,T_DKIM_INVALID autolearn=no version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 3A0F728C016 for ; Thu, 18 Dec 2014 03:52:28 +0100 (CET) X-policyd-weight: using cached result; rate:hard: -8.5 Received: from mail-pd0-f174.google.com (mail-pd0-f174.google.com [209.85.192.174]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Thu, 18 Dec 2014 03:52:26 +0100 (CET) Received: by mail-pd0-f174.google.com with SMTP id fp1so424345pdb.19 for ; Wed, 17 Dec 2014 18:54:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=H1T+BLB9ZLTnAnKYZV5d6zfkHZ2XFiJbSr1MgNY0u58=; b=w6Ap8iaPQZ78nEfcdINRPFcX+SgLfa60k9/phImcp7jfWpnUYMTThPcEQqgeSZpIHB zfT3vcUDV05y5MX212t/FZN5gl3Q9zx1P1UCebz8z4AZCbg3H7yPaFTPLCTIcj0gFE16 M8F9eSBg+yPogMsC0fwOkxpWG9aNggxsGrXWjTfPWxCF2MTBUK05KkWaOkaVP4773CgL p6Gc3QjeEvTmOHtMdRAAYf4AzlUWtE7qPS94Elujz2b0IKMkbzM8NMV3KqUPdZcoqbXA ISLMXHVwg8v04F1Y0AHb/9wUH1n5e+ScZ5SOWJnHblKvzyPzauwvTZ1fV4SS+eKbuGzt kS0w== X-Received: by 10.67.14.71 with SMTP id fe7mr75194846pad.27.1418871255694; Wed, 17 Dec 2014 18:54:15 -0800 (PST) Received: from debian.lan ([103.29.140.56]) by mx.google.com with ESMTPSA id oy7sm5104495pbc.88.2014.12.17.18.54.12 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Dec 2014 18:54:14 -0800 (PST) From: Yousong Zhou To: nbd@openwrt.org Date: Tue, 16 Dec 2014 15:00:18 +0800 Message-Id: <1418713218-16300-17-git-send-email-yszhou4tech@gmail.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1418713218-16300-1-git-send-email-yszhou4tech@gmail.com> References: <1418713218-16300-1-git-send-email-yszhou4tech@gmail.com> Cc: openwrt-devel@lists.openwrt.org Subject: [OpenWrt-Devel] [PATCH v2 16/16] uci_internal: use comma expression for UCI_INTERNAL() call. X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" Signed-off-by: Yousong Zhou --- uci_internal.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/uci_internal.h b/uci_internal.h index 89863f1..cb8f86c 100644 --- a/uci_internal.h +++ b/uci_internal.h @@ -227,10 +227,10 @@ struct uci_backend _var = { \ * Sets Exception handling to passthrough mode. * Allows API functions to change behavior compared to public use */ -#define UCI_INTERNAL(func, ctx, ...) do { \ - ctx->internal = true; \ - func(ctx, __VA_ARGS__); \ -} while (0) +#define UCI_INTERNAL(func, ctx, ...) ( \ + ctx->internal = true, \ + func(ctx, __VA_ARGS__) \ +) /** * UCI_NESTED: Do an normal nested call of a public API function