Re: C99 Initialisers

From: Ian Hastie
Date: Tue Aug 12 2003 - 17:15:33 EST


On Tuesday 12 Aug 2003 18:48, Matthew Wilcox wrote:
> On Tue, Aug 12, 2003 at 06:37:07PM +0100, Dave Jones wrote:
> > Depends. If it's a huuuge struct (see the device ID struct in 2.4's
> > agpgart for eg) it becomes much more readable. Whitespace good, clutter
> > bad.
>
> Yup, absolutely. My point is that struct pci_device_id is really really
> common. If you've ever looked at a Linux PCI driver, you've seen it.

That could be used as an argument for just as much as against. The very fact
of it's ubiquity makes it all the more important to minimise the possibility
of confusion. C99 initialisers will help a lot with this.

> The agp_bridge_info example is specific to this one driver, so it's new
> every time you look at it.

That really doesn't make sense to me.

--
Ian.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/