int config_foo = 1;
which means whatever generates it will have to be modified.
Also, each config option would waste four bytes of memory, whilst
preprocessor #define CONFIG_FOO uses no memory at all.
But, apart from that, imho - good idea :)
Regards,
Tigran A. Aivazian, http://www.aivazian.demon.co.uk/
On Tue, 5 Jan 1999, Peter T. Breuer wrote:
> One thing that might be useful to do is replace all the
>
> #ifdef FOO
> #endif
>
> in the kernel with
>
> if (C_FOO) {
> }
>
> (where C_FOO is 1 or 0). That way at least everything would be compiled
> always and it would discover some incompatibilities. But since we compile
> with -O2 or better, the code block should vanish if the test evaluates
> to a zero at compile time.
>
>
> Peter
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/