projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
faea3db
)
Fix #elif spacing too.
author
Bruce Momjian
Wed, 13 Jul 2005 15:59:32 +0000
(15:59 +0000)
committer
Bruce Momjian
Wed, 13 Jul 2005 15:59:32 +0000
(15:59 +0000)
src/tools/pgindent/pgindent
patch
|
blob
|
blame
|
history
diff --git
a/src/tools/pgindent/pgindent
b/src/tools/pgindent/pgindent
index e84b23cb711f929743133f44426ec737e400dcb3..37e839ea128ebe24c7f8ec6b657c504f17352b6d 100755
(executable)
--- a/
src/tools/pgindent/pgindent
+++ b/
src/tools/pgindent/pgindent
@@
-1648,7
+1648,7
@@
do
print line1;
}
}' |
-# remove blank line before #else and #endif
+# remove blank line before #else
, #elif,
and #endif
awk ' BEGIN {line1 = ""; line2 = ""; skips = 0}
{
line2 = $0;
@@
-1656,6
+1656,7
@@
do
skips--;
if (line1 ~ /^$/ &&
(line2 ~ /^#else/ ||
+ line2 ~ /^#elif/ ||
line2 ~ /^#endif/))
{
print line2;