Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: src/sys/sys (protosw.h:1.39)
On Aug 28, 8:29pm, thorpej%shagadelic.org@localhost (Jason Thorpe) wrote:
-- Subject: Re: CVS commit: src/sys/sys (protosw.h:1.39)
| Perhaps we should be using explicit structure initializers instead, e.g.
|
| struct foo aFoo = {
| .foo_field = 1,
| .foo_member = "woot",
| };
|
| Personally, I find:
|
| { .p_name = NULL }
|
| a lot nicer than
|
| { 0, NULL { 0, 0 }, NULL, { NULL, NULL } }
I will do this from now on (specially for the big structs).
christos
Home |
Main Index |
Thread Index |
Old Index