Messages in this thread | | | Date | Fri, 24 Nov 2000 17:15:11 +1300 | From | Chris Wedgwood <> | Subject | Re: beware of dead string constants |
| |
On Thu, Nov 23, 2000 at 06:39:25PM -0500, Jeff Garzik wrote:
Advantage of what?
If you mean preferring 'if ()' over 'ifdef'... Linus. :) And I agree with him: code looks -much- more clean without ifdefs. And the compiler should be smart enough to completely eliminate code inside an 'if (0)' code block.
Not only that; we should move to code where the compiler engine can sanitize the code; the preprocessor alternative is obviously more limited here.
The same can also be said for some of the many macro's that are #defined; some would surely be better as inline functions is we could ensure they would always be in-lined.
--cw - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org Please read the FAQ at http://www.tux.org/lkml/
| |