lkml.org 
[lkml]   [2009]   [Mar]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Nasal demons in preprocessor use (Re: [PATCH] test-suite: new preprocessor test case)
On Fri, Mar 20, 2009 at 07:04:09PM +0000, Al Viro wrote:
> On Fri, Mar 20, 2009 at 07:08:53PM +0100, Ingo Molnar wrote:
> >
> > * Vegard Nossum <vegard.nossum@gmail.com> wrote:
> >
> > > I guess this means that kmemcheck branch should be withdrawn from
> > > linux-next, at least temporarily, as I have no immediate
> > > workarounds/alternatives. Stephen, can you drop it?
> >
> > Al Viro, well done :-(
> >
> > Ingo
>
> What the fuck?

While we are at it, there *is* an obvious workaround:
#ifdef ...
#define L1 <list>
#else
#define L1
#endif
#ifdef ...
#define L2 <list>
#else
#define L2
#endif
your_macro(...
L1
L2
...)
#undef L1
#undef L2

Ingo, care to explain what the hell had your reply above been about?
Especially since we both apparently agree that code in question did
need fixing, what with your immediate ACK upthread...


\
 
 \ /
  Last update: 2009-03-20 20:17    [W:0.168 / U:0.468 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site