Re: [RFC] x86: merge nmi_32-64 to nmi.c

From: Jeremy Fitzhardinge
Date: Sun May 18 2008 - 14:36:08 EST


Andi Kleen wrote:
The whole idea was pretty bad. Ifdefs are not ugly because the syntax
looks ugly, but because it's a semantically ugly construct with bad
maintainability impact.

Trying to put syntactical sugar around that is a doomed exercise. It
will be still ugly, no matter what you do.

Not true. Using C rather than CPP to control the compilation of config options has the big win that all code paths are still visible to the compiler. In some cases that's not what you want, but it often is, and it would avoid some degree if inadvertent breakage of options. It can also be syntactically a lot more pleasant.

J
--
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/