postgresql/src/include
Peter Eisentraut 611806cd72 Add trailing commas to enum definitions
Since C99, there can be a trailing comma after the last value in an
enum definition.  A lot of new code has been introducing this style on
the fly.  Some new patches are now taking an inconsistent approach to
this.  Some add the last comma on the fly if they add a new last
value, some are trying to preserve the existing style in each place,
some are even dropping the last comma if there was one.  We could
nudge this all in a consistent direction if we just add the trailing
commas everywhere once.

I omitted a few places where there was a fixed "last" value that will
always stay last.  I also skipped the header files of libpq and ecpg,
in case people want to use those with older compilers.  There were
also a small number of cases where the enum type wasn't used anywhere
(but the enum values were), which ended up confusing pgindent a bit,
so I left those alone.

Discussion: https://www.postgresql.org/message-id/flat/386f8c45-c8ac-4681-8add-e3b0852c1620%40eisentraut.org
2023-10-26 09:20:54 +02:00
..
access Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
archive Redesign archive modules 2023-02-17 14:26:42 +09:00
backup Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
bootstrap Add const decorations 2023-08-23 06:39:39 +02:00
catalog Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
commands Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
common Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
datatype Code review for commit 05a7be935. 2023-01-26 12:51:00 -05:00
executor Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
fe_utils Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
foreign Update copyright for 2023 2023-01-02 15:00:37 -05:00
jit jit: Supply LLVMGlobalGetValueType() for LLVM < 8. 2023-10-19 03:01:55 +13:00
lib Introduce the concept of read-only StringInfos 2023-10-26 16:31:48 +13:00
libpq Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
mb Restore proper linkage of pg_char_to_encoding() and friends. 2023-10-07 12:08:10 -04:00
nodes Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
optimizer Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
parser Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
partitioning Add const to values and nulls arguments 2023-10-10 07:50:43 +02:00
pch Update copyright for 2023 2023-01-02 15:00:37 -05:00
port Improve the naming in wal_sync_method code. 2023-10-13 15:16:45 -05:00
portability instr_time: Represent time as an int64 on all platforms 2023-01-20 21:16:47 -08:00
postmaster Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
regex Fix various typos 2023-04-18 13:23:23 +12:00
replication Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
rewrite Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
snowball Update copyright for 2023 2023-01-02 15:00:37 -05:00
statistics Add macro for maximum statistics target 2023-07-03 07:18:57 +02:00
storage Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
tcop Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
tsearch Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
utils Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
.gitignore Refactor dlopen() support 2018-09-06 11:33:04 +02:00
c.h Improve const use in zlib-using code 2023-08-07 09:34:38 +02:00
fmgr.h Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
funcapi.h Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
getopt_long.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
Makefile Install wait_event_types.h in VPATH builds 2023-10-19 09:42:46 +09:00
meson.build Introduce macros for protocol characters. 2023-08-22 19:16:12 -07:00
miscadmin.h Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
pg_config.h.in Use native CRC instructions on 64-bit LoongArch 2023-08-10 11:36:15 +07:00
pg_config_ext.h.in Autoconfiscate selection of 64-bit int type for 64-bit large object API. 2012-10-07 21:52:43 -04:00
pg_config_ext.h.meson meson: Add initial version of meson based build system 2022-09-21 22:37:17 -07:00
pg_config_manual.h Update PG_CACHE_LINE_SIZE description. 2023-07-03 11:56:30 +03:00
pg_getopt.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
pg_trace.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
pgstat.h Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
pgtar.h Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
pgtime.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
port.h Rename port/thread.c to port/user.c. 2023-07-09 18:17:09 +12:00
postgres.h New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
postgres_ext.h Move RelFileNumber declarations to common/relpath.h. 2022-09-27 12:01:57 -04:00
postgres_fe.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
varatt.h New header varatt.h split off from postgres.h 2023-01-10 05:54:36 +01:00
windowapi.h Update copyright for 2023 2023-01-02 15:00:37 -05:00