Re: What is up with Redhat 7.0?

Jamie Lokier (lk@tantalophile.demon.co.uk)
Sun, 1 Oct 2000 13:39:39 +0200


Bernhard Rosenkraenzer wrote:
> > Hah! Even the preprocessor is broken in 2.96. I have to use an older one.
>
> Broken in what way? Testcase?

This is the worst:

#define half(x) ((x) / 2)
#define apply(...) apply2 (__VA_ARGS__)
#define apply2(f,x) f (x)

apply (half, X)

Expands to `half (X)' when it should expand to `((X) / 2)'.

-- Jamie
-
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/