Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S266354AbUA2UAe (ORCPT ); Thu, 29 Jan 2004 15:00:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S266363AbUA2UAe (ORCPT ); Thu, 29 Jan 2004 15:00:34 -0500 Received: from waste.org ([209.173.204.2]:6564 "EHLO waste.org") by vger.kernel.org with ESMTP id S266354AbUA2UAc (ORCPT ); Thu, 29 Jan 2004 15:00:32 -0500 Date: Thu, 29 Jan 2004 14:00:26 -0600 From: Matt Mackall To: Linus Torvalds Cc: Andrew Morton , linux-kernel Subject: Re: Lindent fixed to match reality Message-ID: <20040129200020.GK21888@waste.org> References: <20040129193727.GJ21888@waste.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.3.28i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1197 Lines: 41 On Thu, Jan 29, 2004 at 11:44:27AM -0800, Linus Torvalds wrote: > > > On Thu, 29 Jan 2004, Matt Mackall wrote: > > > > a) (no -psl) > > > > void *foo(void) { > > > > instead of > > > > void * > > foo(void) { > > And why not > > void *foo(void) > { > > which is the _right_ thing to use? Doh, of course the above is what it actually does. > > b) (no -bs) "sizeof(foo)" rather than "sizeof (foo)" > > c) (-ncs) "(void *)foo" rather than "(void *) foo" > > Hmm.. I don't know about (c), that one tends to vary by usage. I did a bit of visual grep for counterinstances of c) in core code but nothing jumped out at me. I'm pretty sure the former is more common practice and I at least find it helpful visually given the precedence of cast operators. Thing is, indent feels obliged to force it one way or the other, so I think it should err on the no space side. -- Matt Mackall : http://www.selenic.com : Linux development and consulting - 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/