[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-dev: C question
On Mon, Feb 19, 2007 at 12:12:58PM -0700, David Baird wrote:
> On 2/19/07, Evan Lavelle <sa212+geda@xxxxxxxxxxx> wrote:
> >gcc extension, obsolete since gcc 2.5. The corect C99 form is
> >
> >> SPICEdev CCCSinfo = {
> >> .DEVparam = CCCSparam,
> >> .DEVmodParam = NULL,
> >> .DEVload = CCCSload,
> >> .DEVsetup = CCCSsetup
> >> };
> >
> >This is only useful for out-of-order intialisation, so it's not relevant
> >here anyway.
>
> I kinda like it, even if everything is initialized in order :-)
The linux kernel sources use it extensively, fwiw. I think it improves
readability significantly.
Hamish
--
Hamish Moffatt VK3SB <hamish@xxxxxxxxxx> <hamish@xxxxxxxxxxxx>
_______________________________________________
geda-dev mailing list
geda-dev@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev