Re: [Patch] 2.5.27 sysctl

Marco C. Mason (mason@ntr.net)
Tue, 23 Jul 2002 22:21:59 -0400


> > This is making the sysctl code acutally be written in C.
> > It wasn't mostly due to georgeous ommitted size array "forward
> > declarations". As a side effect it makes the table structure easier
to
> > deduce.

<snip>

> The comma changes are gratuitous, as pure ANSI C explicitly allows
such
> constructs. (It was intended to simplify automatic code generation, as

> well as for programmer ease to automatically deal with initializer
> lists.)

> >From the grammar section of the 2nd edition (ca. 1988) of K&R:
> initializer:
> assignment-expression
> { initializer-list }
> { initializer-list , }
>
> ...where initializer list is what one would expect.

Yeah, it's hard to see it as an "extension" when my copy of K&R (1978)
shows the same thing...

--marco

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