From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by dpdk.org (Postfix) with ESMTP id F0D576C97 for ; Thu, 12 May 2016 16:58:32 +0200 (CEST) Received: by mail-wm0-f48.google.com with SMTP id a17so140932457wme.0 for ; Thu, 12 May 2016 07:58:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:user-agent:in-reply-to :references:mime-version:content-transfer-encoding; bh=nSgKF74zygAeawgWrkB1rEUdGWpopdV0aayIf+B0voE=; b=kiUdqi8MkfRklSHYTJw0SwLXuXNffG3+jfqqmpU6hmSA6aaGMOkVd5uuFLlssmhtRf d9B5AEhoxxTAcze48CheTkI2hwYEgwa3KLvTL7fx2E4DNrdz2Vz4Ce0VGUfiKGit+VKx LTfla/3X6E4c7kLjKXfLmJqQB6WSQNIiE44nHD1aHrA4Ha/VYYcCGtjbSmyZl5FbCKx2 mQr+uhCtCXNgerdo5dJsUQwrJ0HqQmnfddNFiaPxl6GQzDspVQclc4qYLueLjzpuhhko ccF/qFOsnsFbx9+m63fI8rYaR84dXjvNUi9f5ONup76CQ9cMH3LbaA5QTc4hxAxVHa2c UGyw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:user-agent :in-reply-to:references:mime-version:content-transfer-encoding; bh=nSgKF74zygAeawgWrkB1rEUdGWpopdV0aayIf+B0voE=; b=T8aqlDg6OWtIuyZJSsOjr8LaLAuz2NkJE8jZnLIdAbbo7pW9hLAiQ/F90dkc1o7M7b k3GYCcjbsbm8Of2f1vmTNHvkrzTqA/RPjmPYpj9nomt+Pw+hPfo3huuwrW47TjwNYKpz J5G8blBwLOBSW/0zcqsdgDsjsZajPGTVkUry4rzlAQUw74ohFrTFp/5VHr2XEJPX3L2l tgZZhQIiJa9B0IhZqb1UVNX8X9ZJXgXc0KitxN8+sCMmuHmngvvgEAjECwxJls8om5OC fKbxNVr2WFVAy5sPEVI0BnqW8v070EHhbjPIhScNM38WwA63rYvPnGzfnTZtcVJINVfQ 4bYw== X-Gm-Message-State: AOPr4FVMCya+qZwhbUC6GjWTTlGWVvbHzZFVMuWbmhjF9KUk3fBuwkVhEOc0QxkKf79wLPYF X-Received: by 10.28.230.137 with SMTP id e9mr6823893wmi.90.1463065112856; Thu, 12 May 2016 07:58:32 -0700 (PDT) Received: from xps13.localnet (184.203.134.77.rev.sfr.net. [77.134.203.184]) by smtp.gmail.com with ESMTPSA id d23sm14335039wmd.1.2016.05.12.07.58.31 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 12 May 2016 07:58:32 -0700 (PDT) From: Thomas Monjalon To: Jan Viktorin Cc: dev@dpdk.org, Bruce Richardson , David Marchand Date: Thu, 12 May 2016 16:58:31 +0200 Message-ID: <1678450.4x7Skatt1Y@xps13> User-Agent: KMail/4.14.10 (Linux/4.1.6-1-ARCH; KDE/4.14.11; x86_64; ; ) In-Reply-To: <20160506182042.411cf755@pcviktorin.fit.vutbr.cz> References: <1462531720-26217-1-git-send-email-viktorin@rehivetech.com> <7154696.NNSjZHJaDi@xps13> <20160506182042.411cf755@pcviktorin.fit.vutbr.cz> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Subject: Re: [dpdk-dev] [PATCH v1 01/10] app/test: introduce resources for tests X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 May 2016 14:58:33 -0000 2016-05-06 18:20, Jan Viktorin: > On Fri, 06 May 2016 16:01:08 +0200 > Thomas Monjalon wrote: > > 2016-05-06 12:48, Jan Viktorin: > > > +static struct resource linkres_ ##_n = { \ > > > + .name = RTE_STR(_n), \ > > > + .beg = _b, \ > > > + .end = _e, \ > > > +}; \ > > > +__REGISTER_RESOURCE(linkres_ ##_n) > > > > Please avoid nested macros. > > I don't understand this. I am avoiding code duplication. Is it wrong? Which code duplication? Is __REGISTER_RESOURCE used elsewhere?