Messages in this thread | | | From | Rusty Russell <> | Subject | Re: [TRIVIAL] include/asm-i386/module.h defined() fix | Date | Tue, 02 Sep 2003 15:14:50 +1000 |
| |
In message <Pine.LNX.4.56.0308301717480.18600@dsl-hkigw4a35.dial.inet.fi> you w rite: > Hi! > > Take a look at The C Programming Language (2nd ed.) page 91. "The > expression defined(name) in a #if is 1 if the name has been defined, and 0 > otherwise." So defined should be used with parenthesis, I think. At least > most of Linux kernel source code is doing so. Ok?
And page 232 indicates that the brackets are not required (hey, I had to check, too).
Rusty. -- Anyone who quotes me in their sig is an idiot. -- Rusty Russell. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |