postgresql/src/interfaces/libpq
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
..
po Translation updates 2023-08-07 12:39:30 +02:00
t Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
test meson: add install-{quiet, world} targets 2023-03-23 21:20:18 -07:00
.gitignore Run tap tests in src/interfaces/libpq. 2022-02-26 16:51:47 -08:00
exports.txt libpq: Add support for Close on portals and statements 2023-07-04 14:48:10 +09:00
fe-auth-sasl.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
fe-auth-scram.c Add trailing commas to enum definitions 2023-10-26 09:20:54 +02:00
fe-auth.c Introduce macros for protocol characters. 2023-08-22 19:16:12 -07:00
fe-auth.h Make SCRAM iteration count configurable 2023-03-27 09:46:29 +02:00
fe-connect.c Introduce macros for protocol characters. 2023-08-22 19:16:12 -07:00
fe-exec.c Fix comment of PQputCopyEnd() 2023-08-30 08:29:08 +09:00
fe-gssapi-common.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
fe-gssapi-common.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
fe-lobj.c Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
fe-misc.c Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
fe-print.c Remove --disable-thread-safety and related code. 2023-07-12 08:20:43 +12:00
fe-protocol3.c Introduce macros for protocol characters. 2023-08-22 19:16:12 -07:00
fe-secure-common.c Pre-beta mechanical code beautification. 2023-05-19 17:24:48 -04:00
fe-secure-common.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
fe-secure-gssapi.c Spell the values of libpq's gssdelegation parameter as "0" and "1". 2023-05-22 11:50:27 -04:00
fe-secure-openssl.c Remove --disable-thread-safety and related code. 2023-07-12 08:20:43 +12:00
fe-secure.c Remove --disable-thread-safety and related code. 2023-07-12 08:20:43 +12:00
fe-trace.c Introduce macros for protocol characters. 2023-08-22 19:16:12 -07:00
legacy-pqsignal.c Remove --disable-thread-safety and related code. 2023-07-12 08:20:43 +12:00
libpq-events.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
libpq-events.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
libpq-fe.h libpq: Add support for Close on portals and statements 2023-07-04 14:48:10 +09:00
libpq-int.h Remove --disable-thread-safety and related code. 2023-07-12 08:20:43 +12:00
Makefile Remove --disable-thread-safety and related code. 2023-07-12 08:20:43 +12:00
meson.build Support connection load balancing in libpq 2023-03-29 21:53:38 +02:00
nls.mk Rename port/thread.c to port/user.c. 2023-07-09 18:17:09 +12:00
pg_service.conf.sample Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
pqexpbuffer.c Add some const qualifiers 2023-09-26 11:28:57 +01:00
pqexpbuffer.h Update copyright for 2023 2023-01-02 15:00:37 -05:00
pthread-win32.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
README Remove cvs keywords from all files. 2010-09-20 22:08:53 +02:00
win32.c Update copyright for 2023 2023-01-02 15:00:37 -05:00
win32.h Recognize network-failure errnos as indicating hard connection loss. 2020-10-10 13:28:12 -04:00

src/interfaces/libpq/README

This directory contains the C version of Libpq, the POSTGRES frontend library.