2002-07-24 02:12:41

by Marco C. Mason

[permalink] [raw]
Subject: Re: [Patch] 2.5.27 sysctl

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