]> err.no Git - linux-2.6/commitdiff
Fix Lindent to not indent preprocessor comments so far
authorMatthew Wilcox <matthew@wil.cx>
Fri, 20 Jul 2007 15:29:50 +0000 (09:29 -0600)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 20 Jul 2007 15:45:38 +0000 (08:45 -0700)
I recently ran Lindent over the AdvanSys driver and it moved the
comments on #else and #endif lines way over to the right:

#else                          /* ADVANSYS_DEBUG */

This doesn't match what I expect from kernel style, but it is
documented.  We just need another flag to indent to make this look like:

#else /* ADVANSYS_DEBUG */

Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
scripts/Lindent

index 7d8d8896e309fb62a3585e39f546cb8df6be4d5b..9468ec7971db933e2594171ff66c8dd17c9368c8 100755 (executable)
@@ -1,2 +1,2 @@
 #!/bin/sh
-indent -npro -kr -i8 -ts8 -sob -l80 -ss -ncs "$@"
+indent -npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1 "$@"