From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753463AbYISN3S (ORCPT ); Fri, 19 Sep 2008 09:29:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751263AbYISN3E (ORCPT ); Fri, 19 Sep 2008 09:29:04 -0400 Received: from einhorn.in-berlin.de ([192.109.42.8]:54066 "EHLO einhorn.in-berlin.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751180AbYISN3D (ORCPT ); Fri, 19 Sep 2008 09:29:03 -0400 X-Envelope-From: stefanr@s5r6.in-berlin.de Message-ID: <48D3A90E.4020506@s5r6.in-berlin.de> Date: Fri, 19 Sep 2008 15:28:46 +0200 From: Stefan Richter User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.16) Gecko/20080722 SeaMonkey/1.1.11 MIME-Version: 1.0 To: Eric Miao CC: Cyrill Gorcunov , Alexey Dobriyan , Ben Dooks , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.arm.linux.org.uk Subject: Re: kernel.h: add ARRAY_AND_SIZE() macro to complement ARRAY_SIZE(). References: <20080918132447.516309749@fluff.org.uk> <20080918150624.GA3421@x200.localdomain> <20080919065426.GA7222@lenovo> In-Reply-To: X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Eric Miao wrote: > On Fri, Sep 19, 2008 at 2:54 PM, Cyrill Gorcunov wrote: >> well, it seems it's not that good to use ARRAY_AND_SIZE at all. >> Yes it's short but quite frankly - hiding number of args is not >> that good. ... > I have to admit > that a macro expanding to something like an argument list instead > of a single variable or something is not a good idea. But, we are > using C, ... Exactly, we generally program in C --- not in cpp. -- Stefan Richter -=====-==--- =--= =--== http://arcgraph.de/sr/