Re: [PATCH] 2.5.27 sysctl

Alexander Viro (viro@math.psu.edu)
Mon, 22 Jul 2002 08:51:37 -0400 (EDT)


On Mon, 22 Jul 2002, Marcin Dalecki wrote:

> > The kernel is full of GNUisms, and this one is actually usefull.
>
> Its is not half as full as you may think.

Trailing comma in enums has _exactly_ the same status as .foo = bar in
structure initializers. Both appear in C99 and were compiler-specific
extensions before that.

If -pedantic is unhappy about one but not another - take it with gcc
folks, it's a bug in gcc.

Speaking of GNUisms, inline assembler is one and it's by far the worst
obstacle to portability. Speaking of *REALLY* ugly stuff - may I point
you to abuses of ##? Yes, it's legal C. No, using it is a Bad Idea(tm).
And the actual uses of _that_ one in the tree can give you the second
look at your breakfast - grep around and you'll see.

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