Skip to contentSkip to conversation

2.5.27 sysctl

PATCH Marco C. Mason 1 participant 1 message Jul 24, 2002

lore
Share & tools
lore
#0 lore raw
Quoted 3 lines
Quoted 3 lines

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

Quoted 1 line
Quoted 1 line

deduce.

<snip>

Quoted 1 line

The comma changes are gratuitous, as pure ANSI C explicitly allows

such

Quoted 5 lines

constructs. (It was intended to simplify automatic code generation, as

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

Quoted 7 lines
Quoted 1 line

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