aboutsummaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2020-09-21 13:58:26 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2020-09-21 13:58:26 -0400
commitf859c2ffa01d83a079652ce7d953cd61eb3d7171 (patch)
tree9f2e0cd2d8c6ebaf12cdcddebe1745a617cf1e51 /src/backend
parent9436041ed848debb3d64fb5fbff6cdb35bc46d04 (diff)
downloadpostgresql-f859c2ffa01d83a079652ce7d953cd61eb3d7171.tar.gz
postgresql-f859c2ffa01d83a079652ce7d953cd61eb3d7171.zip
Fix a few more generator scripts to produce pgindent-clean output.
This completes the project of making all our derived files be pgindent-clean (or else explicitly excluded from indentation), so that no surprises result when running pgindent in a built-out development tree. Discussion: https://postgr.es/m/79ed5348-be7a-b647-dd40-742207186a22@2ndquadrant.com
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/utils/sort/gen_qsort_tuple.pl7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/backend/utils/sort/gen_qsort_tuple.pl b/src/backend/utils/sort/gen_qsort_tuple.pl
index eb0f7c5814f..4c305806c7c 100644
--- a/src/backend/utils/sort/gen_qsort_tuple.pl
+++ b/src/backend/utils/sort/gen_qsort_tuple.pl
@@ -115,7 +115,8 @@ swapfunc(SortTuple *a, SortTuple *b, size_t n)
{
do
{
- SortTuple t = *a;
+ SortTuple t = *a;
+
*a++ = *b;
*b++ = t;
} while (--n > 0);
@@ -143,9 +144,9 @@ med3_$SUFFIX(SortTuple *a, SortTuple *b, SortTuple *c$EXTRAARGS)
{
return cmp_$SUFFIX(a, b$CMPPARAMS) < 0 ?
(cmp_$SUFFIX(b, c$CMPPARAMS) < 0 ? b :
- (cmp_$SUFFIX(a, c$CMPPARAMS) < 0 ? c : a))
+ (cmp_$SUFFIX(a, c$CMPPARAMS) < 0 ? c : a))
: (cmp_$SUFFIX(b, c$CMPPARAMS) > 0 ? b :
- (cmp_$SUFFIX(a, c$CMPPARAMS) < 0 ? a : c));
+ (cmp_$SUFFIX(a, c$CMPPARAMS) < 0 ? a : c));
}
static void