Re: [PATCH 0/5] RFC: strip 15,000 lines from a typical autoconf.h |
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
On Wed, Apr 11, 2012 at 6:45 PM, Andrew Morton
<akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> So we shouldn't call it IS_DEFINED() - that would cause confusion with
> the old version.
Yeah. Maybe we should call it "config_enabled()" - the lower-case
hopefully makes it clear that it acts as a C function, not a
preprocessor one.
Code like "if (config_enabled(IPV6))" looks reasonably readable to me.
I asked G+ if they can come up with a better trick. They did well on
the whole bitmask calculations, maybe somebody can figure out how to
make the same macro work for both preprocessor and C code...
Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[Linux USB Devel]
[Linux Media]
[Video for Linux]
[Linux Audio Users]
[Photo]
[Yosemite News]
[Yosemite Photos]
[Free Online Dating]
[Linux Kernel]
[Linux SCSI]
[XFree86]