From patchwork Thu Apr 4 21:49:13 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: York Sun X-Patchwork-Id: 233954 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 7F6F42C00A4 for ; Fri, 5 Apr 2013 08:49:26 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3BCA74A0A9; Thu, 4 Apr 2013 23:49:25 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id vkuG7W0stUcn; Thu, 4 Apr 2013 23:49:25 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E13A84A0BB; Thu, 4 Apr 2013 23:49:23 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D64334A0BB for ; Thu, 4 Apr 2013 23:49:21 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 43rfw99Kt5A5 for ; Thu, 4 Apr 2013 23:49:21 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from co1outboundpool.messaging.microsoft.com (co1ehsobe002.messaging.microsoft.com [216.32.180.185]) by theia.denx.de (Postfix) with ESMTPS id C52D54A0A9 for ; Thu, 4 Apr 2013 23:49:19 +0200 (CEST) Received: from mail32-co1-R.bigfish.com (10.243.78.244) by CO1EHSOBE026.bigfish.com (10.243.66.89) with Microsoft SMTP Server id 14.1.225.23; Thu, 4 Apr 2013 21:49:17 +0000 Received: from mail32-co1 (localhost [127.0.0.1]) by mail32-co1-R.bigfish.com (Postfix) with ESMTP id 1598C9C0097; Thu, 4 Apr 2013 21:49:17 +0000 (UTC) X-Forefront-Antispam-Report: CIP:70.37.183.190; KIP:(null); UIP:(null); IPV:NLI; H:mail.freescale.net; RD:none; EFVD:NLI X-SpamScore: 0 X-BigFish: VS0(zzzz1f42h1fc6h1ee6h1de0h1fdah1202h1e76h1d1ah1d2ahzz8275bhz2dh2a8h668h839hd24he5bhf0ah1288h12a5h12a9h12bdh12e5h137ah139eh13b6h1441h1504h1537h162dh1631h1758h1898h18e1h1946h19b5h1ad9h1b0ah1155h) Received: from mail32-co1 (localhost.localdomain [127.0.0.1]) by mail32-co1 (MessageSwitch) id 1365112155199178_3279; Thu, 4 Apr 2013 21:49:15 +0000 (UTC) Received: from CO1EHSMHS017.bigfish.com (unknown [10.243.78.250]) by mail32-co1.bigfish.com (Postfix) with ESMTP id 237EA7800F4; Thu, 4 Apr 2013 21:49:15 +0000 (UTC) Received: from mail.freescale.net (70.37.183.190) by CO1EHSMHS017.bigfish.com (10.243.66.27) with Microsoft SMTP Server (TLS) id 14.1.225.23; Thu, 4 Apr 2013 21:49:15 +0000 Received: from tx30smr01.am.freescale.net (10.81.153.31) by 039-SN1MMR1-002.039d.mgd.msft.net (10.84.1.15) with Microsoft SMTP Server (TLS) id 14.2.328.11; Thu, 4 Apr 2013 21:49:14 +0000 Received: from oslab-l1.am.freescale.net ([10.214.84.173]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id r34LnCYH006470; Thu, 4 Apr 2013 14:49:13 -0700 From: York Sun To: Date: Thu, 4 Apr 2013 14:49:13 -0700 Message-ID: <1365112153-23648-1-git-send-email-yorksun@freescale.com> X-Mailer: git-send-email 1.7.9.5 MIME-Version: 1.0 X-OriginatorOrg: freescale.com Cc: trini@ti.com, u-boot@lists.denx.de, pali.rohar@gmail.com Subject: [U-Boot] [PATCH] common/cmd_test: Avoid macro expansion X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de cmd_test.c adds "true" and "false" as new commands. We need to avoid macro expansion for U_BOOT_CMD. Signed-off-by: York Sun --- common/cmd_test.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/common/cmd_test.c b/common/cmd_test.c index d4ec186..cb22f8b 100644 --- a/common/cmd_test.c +++ b/common/cmd_test.c @@ -21,6 +21,15 @@ * MA 02111-1307 USA */ +/* + * Define _STDBOOL_H here to avoid macro expansion of true and false. + * If the future code requres macro true or false, remove this define + * and undef true and false before U_BOOT_CMD. This define and comment + * shall be removed if changes to U_BOOT_CMD is made to take string + * instead of stringifying it. + */ +#define _STDBOOL_H + #include #include