Re: [PATCH] 2.5.21 - list.h cleanup

From: Gerrit Huizenga (gh@us.ibm.com)
Date: Tue Jun 11 2002 - 12:54:04 EST


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;

to predefine, just like you can use struct xx;

Also avoids some aspects of #include <hell>.

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



This archive was generated by hypermail 2b29 : Sat Jun 15 2002 - 22:00:23 EST