Re: kernel.h: add ARRAY_AND_SIZE() macro to complement ARRAY_SIZE().

From: Stefan Richter
Date: Fri Sep 19 2008 - 09:29:18 EST


Eric Miao wrote:
On Fri, Sep 19, 2008 at 2:54 PM, Cyrill Gorcunov <gorcunov@xxxxxxxxx> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/