Commit 505b9252 authored by Bruce Momjian's avatar Bruce Momjian

Fix #elif spacing too.

parent faea3db9
...@@ -1648,7 +1648,7 @@ do ...@@ -1648,7 +1648,7 @@ do
print line1; print line1;
} }
}' | }' |
# remove blank line before #else and #endif # remove blank line before #else, #elif, and #endif
awk ' BEGIN {line1 = ""; line2 = ""; skips = 0} awk ' BEGIN {line1 = ""; line2 = ""; skips = 0}
{ {
line2 = $0; line2 = $0;
...@@ -1656,6 +1656,7 @@ do ...@@ -1656,6 +1656,7 @@ do
skips--; skips--;
if (line1 ~ /^$/ && if (line1 ~ /^$/ &&
(line2 ~ /^#else/ || (line2 ~ /^#else/ ||
line2 ~ /^#elif/ ||
line2 ~ /^#endif/)) line2 ~ /^#endif/))
{ {
print line2; print line2;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment