Improve readability of script.
This commit is contained in:
parent
5251e7b3d0
commit
158129be72
@ -51,7 +51,7 @@ do
|
|||||||
line1 !~ "^struct" &&
|
line1 !~ "^struct" &&
|
||||||
line1 !~ "^enum" &&
|
line1 !~ "^enum" &&
|
||||||
line1 !~ "^typedef" &&
|
line1 !~ "^typedef" &&
|
||||||
line1 !~ "extern[ ][ ]*\"C\"" &&
|
line1 !~ "^extern[ ][ ]*\"C\"" &&
|
||||||
line1 !~ "=" &&
|
line1 !~ "=" &&
|
||||||
line1 ~ ")")
|
line1 ~ ")")
|
||||||
print "int pgindent_func_no_var_fix;";
|
print "int pgindent_func_no_var_fix;";
|
||||||
@ -1477,7 +1477,7 @@ do
|
|||||||
detab -t8 -qc |
|
detab -t8 -qc |
|
||||||
entab -t4 -qc |
|
entab -t4 -qc |
|
||||||
# add space after comments that start on tab stops
|
# add space after comments that start on tab stops
|
||||||
sed 's:\([^ ]\)\(/\*.*\*/\)$:\1 \2:' |
|
sed 's;\([^ ]\)\(/\*.*\*/\)$;\1 \2;' |
|
||||||
# move trailing * in function return type
|
# move trailing * in function return type
|
||||||
sed 's;^\([A-Za-z_][^ ]*\)[ ][ ]*\*$;\1 *;' |
|
sed 's;^\([A-Za-z_][^ ]*\)[ ][ ]*\*$;\1 *;' |
|
||||||
# remove un-needed braces around single statements
|
# remove un-needed braces around single statements
|
||||||
|
Loading…
x
Reference in New Issue
Block a user