Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S271036AbTHLRhr (ORCPT ); Tue, 12 Aug 2003 13:37:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S271037AbTHLRhr (ORCPT ); Tue, 12 Aug 2003 13:37:47 -0400 Received: from pix-525-pool.redhat.com ([66.187.233.200]:28744 "EHLO lacrosse.corp.redhat.com") by vger.kernel.org with ESMTP id S271036AbTHLRhp (ORCPT ); Tue, 12 Aug 2003 13:37:45 -0400 Date: Tue, 12 Aug 2003 18:37:07 +0100 From: Dave Jones To: Matthew Wilcox Cc: Robert Love , CaT , linux-kernel@vger.kernel.org, kernel-janitor-discuss@lists.sourceforge.net Subject: Re: C99 Initialisers Message-ID: <20030812173707.GB6919@redhat.com> Mail-Followup-To: Dave Jones , Matthew Wilcox , Robert Love , CaT , linux-kernel@vger.kernel.org, kernel-janitor-discuss@lists.sourceforge.net References: <20030812020226.GA4688@zip.com.au> <1060654733.684.267.camel@localhost> <20030812023936.GE3169@parcelfarce.linux.theplanet.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030812023936.GE3169@parcelfarce.linux.theplanet.co.uk> User-Agent: Mutt/1.5.4i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 943 Lines: 26 On Tue, Aug 12, 2003 at 03:39:36AM +0100, Matthew Wilcox wrote: > By and large ... here's a counterexample: > > static struct pci_device_id tg3_pci_tbl[] __devinitdata = { > { PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_TIGON3_5700, > PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0UL }, > { PCI_VENDOR_ID_BROADCOM, PCI_DEVICE_ID_TIGON3_5701, > PCI_ANY_ID, PCI_ANY_ID, 0, 0, 0UL }, > ... > > I don't think anyone would appreciate you converting that to: > 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. Dave -- Dave Jones http://www.codemonkey.org.uk - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/