2011-12-07

This is the sample for programmer to reference.

We can find the Linux Indent Rule in usr/src/linux-headers-2.6.32-35/scripts/Lindent

And the indent rule is:

indent -npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1

-npro, --ignore-profile
Do not read `.indent.pro' files.
-kr, --k-and-r-style
Use Kernighan & Ritchie coding style.
-in, --indent-leveln
Set indentation level to n spaces.
-tsn, -

Show more