]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] Lindent fixed to match reality
authorAndrew Morton <akpm@osdl.org>
Wed, 4 Feb 2004 02:49:50 +0000 (18:49 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 4 Feb 2004 02:49:50 +0000 (18:49 -0800)
From: Matt Mackall <mpm@selenic.com>

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"

scripts/Lindent

index 0bababd002ae71b21b6d76d8c7d83bc10062534d..34ed785116b661e0c50b575cc609823e51c9b708 100755 (executable)
@@ -1,2 +1,2 @@
 #!/bin/sh
-indent -kr -i8 -ts8 -sob -l80 -ss -bs -psl "$@"
+indent -kr -i8 -ts8 -sob -l80 -ss -ncs "$@"