[Date Prev][Date Next][Thread Prev][Thread Next][Date 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@cyconix.com> 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@debian.org> <hamish@cloud.net.au>
_______________________________________________
geda-dev mailing list
geda-dev@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev