[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <48D3A90E.4020506@s5r6.in-berlin.de>
Date: Fri, 19 Sep 2008 15:28:46 +0200
From: Stefan Richter <stefanr@...6.in-berlin.de>
To: Eric Miao <eric.y.miao@...il.com>
CC: Cyrill Gorcunov <gorcunov@...il.com>,
Alexey Dobriyan <adobriyan@...il.com>,
Ben Dooks <ben-linux@...ff.org>, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.arm.linux.org.uk
Subject: Re: kernel.h: add ARRAY_AND_SIZE() macro to complement ARRAY_SIZE().
Eric Miao wrote:
> On Fri, Sep 19, 2008 at 2:54 PM, Cyrill Gorcunov <gorcunov@...il.com> 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/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists