lkml.org 
[lkml]   [2002]   [Jun]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] 2.5.21 - list.h cleanup
Date
In message <E17HpqG-000454-00@w-gerrit2> you write:
> In message <Pine.LNX.4.44.0206110128130.1987-100000@home.transmeta.com>, > :
Li
> nus Torvalds writes:
> >
> >
> > On Tue, 11 Jun 2002, Rusty Russell wrote:
> > >
> > > Worst sin is that you can't predeclare typedefs. For many uses (not the
> > > list macros of course):
> > > struct xx;
> > > is sufficient and avoids the #include hell,
> >
> > True.
>
> Untrue. Or partially true (yes, you *can* use struct xx;).
>
> But you can also use:
>
> typedef foo_t;

Huh? In what language? Try it with -Wall to see what you're really
doing here, and think about what happens when you put that in one
header, and the real typedef in another.

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/

\
 
 \ /
  Last update: 2005-03-22 13:26    [W:0.138 / U:0.212 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site