Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S266324AbUA2Thk (ORCPT ); Thu, 29 Jan 2004 14:37:40 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S266326AbUA2Thj (ORCPT ); Thu, 29 Jan 2004 14:37:39 -0500 Received: from waste.org ([209.173.204.2]:22943 "EHLO waste.org") by vger.kernel.org with ESMTP id S266324AbUA2Thc (ORCPT ); Thu, 29 Jan 2004 14:37:32 -0500 Date: Thu, 29 Jan 2004 13:37:28 -0600 From: Matt Mackall To: Andrew Morton , Linus Torvalds , linux-kernel Subject: Lindent fixed to match reality Message-ID: <20040129193727.GJ21888@waste.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.3.28i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1048 Lines: 36 I've been fiddling with cleaning up some old code here and suggest the following to make Lindent match actual practice more closely. This does: a) (no -psl) void *foo(void) { instead of void * foo(void) { b) (no -bs) "sizeof(foo)" rather than "sizeof (foo)" c) (-ncs) "(void *)foo" rather than "(void *) foo" tiny-mpm/scripts/Lindent | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN scripts/Lindent~lindent-reality scripts/Lindent --- tiny/scripts/Lindent~lindent-reality 2004-01-29 13:19:04.000000000 -0600 +++ tiny-mpm/scripts/Lindent 2004-01-29 13:28:23.000000000 -0600 @@ -1,2 +1,2 @@ #!/bin/sh -indent -kr -i8 -ts8 -sob -l80 -ss -bs -psl "$@" +indent -kr -i8 -ts8 -sob -l80 -ss -ncs "$@" _ -- 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/