Skip to content
Snippets Groups Projects
Commit 158129be authored by Bruce Momjian's avatar Bruce Momjian
Browse files

Improve readability of script.

parent 5251e7b3
No related branches found
No related tags found
No related merge requests found
...@@ -51,7 +51,7 @@ do ...@@ -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 ...@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment