mirror of
https://github.com/postgres/postgres.git
synced 2026-03-09 17:50:43 -04:00
Make lwlocknames.h generated file less ugly
We can make the output look a bit better by aligning each lock's definition, so add some padding space to achieve that. This change makes no practical difference, but casual onlookers will be less distracted by (lack of) whitespace. Author: Gurjeet Singh <gurjeet@singh.im> Discussion: https://postgr.es/m/CABwTF4VxfwDtRV-H22_XK4XeDogaV-Vaobu+af5U=8ZAZn9ZZQ@mail.gmail.com
This commit is contained in:
parent
0697b23906
commit
da0f0582e8
1 changed files with 2 additions and 1 deletions
|
|
@ -108,7 +108,8 @@ while (<$lwlocklist>)
|
|||
$continue = ",\n";
|
||||
|
||||
# Add a "Lock" suffix to each lock name, as the C code depends on that
|
||||
print $h "#define ${lockname}Lock (&MainLWLockArray[$lockidx].lock)\n";
|
||||
printf $h "#define %-32s (&MainLWLockArray[$lockidx].lock)\n",
|
||||
$lockname . "Lock";
|
||||
}
|
||||
|
||||
die
|
||||
|
|
|
|||
Loading…
Reference in a new issue