|
|
@ -38,8 +38,8 @@ do |
|
|
|
# mark some comments for special treatment later |
|
|
|
# mark some comments for special treatment later |
|
|
|
sed 's;/\* *---;/*---X_X;g' | |
|
|
|
sed 's;/\* *---;/*---X_X;g' | |
|
|
|
# workaround for indent bug with 'else' handling |
|
|
|
# workaround for indent bug with 'else' handling |
|
|
|
sed 's;\([} ]\)else[ ]*\(/\*.*\)$;\1else\ |
|
|
|
sed 's;\([} ]\)else\([ ]*\)\(/\*.*\)$;\1else\ |
|
|
|
\2;g' | |
|
|
|
\2\3;g' | |
|
|
|
detab -t4 -qc | |
|
|
|
detab -t4 -qc | |
|
|
|
# work around bug where function that defines no local variables misindents |
|
|
|
# work around bug where function that defines no local variables misindents |
|
|
|
# switch() case lines and line after #else. Do not do for struct/enum. |
|
|
|
# switch() case lines and line after #else. Do not do for struct/enum. |
|
|
|