Commit f859c2ff authored by Tom Lane's avatar Tom Lane

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
parent 9436041e
......@@ -116,6 +116,7 @@ swapfunc(SortTuple *a, SortTuple *b, size_t n)
do
{
SortTuple t = *a;
*a++ = *b;
*b++ = t;
} while (--n > 0);
......
......@@ -34,7 +34,7 @@ while (<$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;
......@@ -37,8 +37,8 @@ while (<$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;
......@@ -34,7 +34,7 @@ while (<$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;
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