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
{
do
{
- SortTuple t = *a;
+ SortTuple t = *a;
+
*a++ = *b;
*b++ = t;
} while (--n > 0);
{
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
# Skip lines without PL/pgSQL condition names
next unless defined($condition_name);
- print "{\n\t\"$condition_name\", $errcode_macro\n},\n\n";
+ print "\n{\n\t\"$condition_name\", $errcode_macro\n},\n";
}
close $errcodes;
# Change some_error_condition to SomeErrorCondition
$condition_name =~ s/([a-z])([^_]*)(?:_|$)/\u$1$2/g;
- print "{ \"spiexceptions.$condition_name\", "
- . "\"$condition_name\", $errcode_macro },\n";
+ print "\n{\n\t\"spiexceptions.$condition_name\", "
+ . "\"$condition_name\", $errcode_macro\n},\n";
}
close $errcodes;
# Skip lines without PL/pgSQL condition names
next unless defined($condition_name);
- print "{\n\t\"$condition_name\", $errcode_macro\n},\n\n";
+ print "\n{\n\t\"$condition_name\", $errcode_macro\n},\n";
}
close $errcodes;