lkml.org 
[lkml]   [2000]   [Oct]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: What is up with Redhat 7.0?
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/

\
 
 \ /
  Last update: 2005-03-22 12:39    [W:0.136 / U:0.944 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site