2002-07-10 11:20:45

by Sandy Harris

[permalink] [raw]
Subject: Re: BKL removal

Alexander Viro wrote:

> Again, the real mess is due to the way we use cpp. ...
>
> As it is, we have way too many ifdefs to hope that any automated tool
> would be able to cope with the damn thing. It used to be worse -
> these days several really nasty piles of ifdefs are gone. However,
> we still have quite a few remaining.
>
> Quick-and-dirty search shows ~1.2e4 ifdefs on CONFIG_... in the tree.
> Most of them - patently ridiculous ...

There's a classic Usenix paper "#ifdef Considered Harmful":
http://www.google.ca/search?q=cache:kOjOJGuyArgC:www.literateprogramming.com/ifdefs.pdf+ifdef+considered+harmful&hl=en&ie=UTF-8