From: Matthew Wilcox Date: Fri, 20 Jul 2007 15:29:50 +0000 (-0600) Subject: Fix Lindent to not indent preprocessor comments so far X-Git-Tag: v2.6.23-rc1~220 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e609ccc3161ead8a685b15533d9b6958ed368358;p=linux-2.6 Fix Lindent to not indent preprocessor comments so far 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 Signed-off-by: Linus Torvalds --- diff --git a/scripts/Lindent b/scripts/Lindent index 7d8d8896e3..9468ec7971 100755 --- a/scripts/Lindent +++ b/scripts/Lindent @@ -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 "$@"