Use C99-designated initializer syntax for more arrays
Michael Paquier <michael@paquier.xyz>
Use C99-designated initializer syntax for more arrays This is in the same spirit as ef5e2e90859a, updating this time some arrays in parser.c, relpath.c, guc_tables.c and pg_dump_sort.c so as the order of their elements has no need to match the enum structures they are based on anymore. Author: Jelte Fennema-Nio Reviewed-by: Jian He, Japin Li Discussion: https://postgr.es/m/CAGECzQT3caUbcCcszNewCCmMbCuyP7XNAm60J3ybd6PN5kH2Dw@mail.gmail.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/parser/parser.c | modified | +6 −6 |
| src/backend/utils/misc/guc_tables.c | modified | +71 −116 |
| src/bin/pg_dump/pg_dump_sort.c | modified | +47 −47 |
| src/common/relpath.c | modified | +4 −4 |
Discussion
- Improve readability by using designated initializers when possible 47 messages · 2024-02-21 → 2024-03-26