lkml.org 
[lkml]   [1999]   [Jan]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: useful exercise
Then <linux/autoconf.h> will have to contain all the lines like:

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/

\
 
 \ /
  Last update: 2005-03-22 13:49    [W:0.047 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site