Avoid splitting C string literals with \-newline
Alvaro Herrera <alvherre@alvh.no-ip.org>
Avoid splitting C string literals with \-newline Using \ is unnecessary and ugly, so remove that. While at it, stitch the literals back into a single line: we've long discouraged splitting error message literals even when they go past the 80 chars line limit, to improve greppability. Leave contrib/tablefunc alone. Discussion: https://postgr.es/m/20191223195156.GA12271@alvherre.pgsql
Files
| Path | Change | +/− |
|---|---|---|
| contrib/dblink/dblink.c | modified | +5 −10 |
| contrib/pg_stat_statements/pg_stat_statements.c | modified | +1 −2 |
| contrib/tablefunc/tablefunc.c | modified | +4 −8 |
| src/backend/access/transam/xlog.c | modified | +1 −3 |
| src/backend/access/transam/xlogfuncs.c | modified | +1 −2 |
| src/backend/commands/extension.c | modified | +3 −6 |
| src/backend/commands/prepare.c | modified | +1 −2 |
| src/backend/executor/execExprInterp.c | modified | +2 −2 |
| src/backend/libpq/hba.c | modified | +1 −2 |
| src/backend/replication/logical/launcher.c | modified | +1 −2 |
| src/backend/replication/slotfuncs.c | modified | +1 −2 |
| src/backend/replication/walsender.c | modified | +1 −2 |
| src/backend/utils/adt/pgstatfuncs.c | modified | +2 −4 |
| src/backend/utils/misc/guc.c | modified | +1 −2 |
| src/backend/utils/mmgr/portalmem.c | modified | +1 −2 |
Discussion
- string literal continuations in C 2 messages · 2019-12-23 → 2019-12-24