1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-05 20:58:40 +03:00

r23599: Add new version of indent script copied from the the Linux

kernel tree.
This commit is contained in:
Gerald Carter 2007-06-25 15:23:19 +00:00 committed by Gerald (Jerry) Carter
parent 58a68daef0
commit bc422ab5f1

View File

@ -1,21 +1,12 @@
#!/bin/sh #!/bin/sh
# -npro Do no read the '.indent.pro' files. # -npro Do no read the '.indent.pro' files.
# -l80 Set maximum line length for non-comment lines to 80. # -kr Use K&R formatting rules
# -bad Force blank lines after the declarations.
# -bap Force blank lines after procedure bodies.
# -bbb Force blank lines before block comments.
# -br Put braces on line with if, etc.
# -ce Cuddle else and preceeding }.
# -ut Use tabs.
# -ts8 Set tab size to 8 spaces
# -i8 Set indentation level to 8 spaces. # -i8 Set indentation level to 8 spaces.
# -di1 Put variables in column 1. # -ts8 Set tab size to 8 spaces
# -brs Put braces on struct declaration line. # -sob Swallow optional blank lines.
# -npsl Put the type of a procedure on the same line as its name. # -l80 Set the maximum line length at 80 characters.
# -npcs Do not put space after the function in function calls. # -ss On one-line for and while statments, force a blank before the semicolon
# -nprs Do not put a space after every ( and before every ). # -ncs Do not put a space after cast operators.
# -bbo Prefer to break long lines before boolean operators.
# -hnl Prefer to break long lines at the position of newlines in the input.
indent -npro -l80 -bad -bap -bbb -br -ce -ut -ts8 -i8 -di1 -brs -npsl -npcs -nprs -bbo -hnl "$@" indent -npro -kr -i8 -ts8 -sob -l80 -ss -ncs "$@"