projects
/
users
/
bernd
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7690b41
)
Fix pgindent to not have blank line before #else in variable definition
author
Bruce Momjian
<bruce@momjian.us>
Wed, 13 Jul 2005 04:44:42 +0000
(
04:44
+0000)
committer
Bruce Momjian
<bruce@momjian.us>
Wed, 13 Jul 2005 04:44:42 +0000
(
04:44
+0000)
section of a function.
src/tools/pgindent/pgindent
patch
|
blob
|
blame
|
history
diff --git
a/src/tools/pgindent/pgindent
b/src/tools/pgindent/pgindent
index e0d3969f1a82145ef48dd369354a8e92ddf28d00..e84b23cb711f929743133f44426ec737e400dcb3 100755
(executable)
--- a/
src/tools/pgindent/pgindent
+++ b/
src/tools/pgindent/pgindent
@@
-1648,14
+1648,15
@@
do
print line1;
}
}' |
-# remove blank line before #endif
+# remove blank line before #e
lse and #e
ndif
awk ' BEGIN {line1 = ""; line2 = ""; skips = 0}
{
line2 = $0;
if (skips > 0)
skips--;
if (line1 ~ /^$/ &&
- line2 ~ /^#endif/)
+ (line2 ~ /^#else/ ||
+ line2 ~ /^#endif/))
{
print line2;
line2 = "";