Skip to contentSkip to conversation

Fix Lindent to not indent preprocessor comments so far

PATCH New Matthew Wilcox 1 participant 1 message Jul 20, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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 */

scripts/Lindent +1 -1
index 7d8d889..9468ec7 100755
@@ -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 "$@"
Signature · 3 lines
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours.  We can't possibly take such
a retrograde step."