From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Remove unnecessary parentheses in return statements |
Date: | 2017-09-05 19:08:06 |
Message-ID: | E1dpJCg-00018L-7E@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
Remove unnecessary parentheses in return statements
The parenthesized style has only been used in a few modules. Change
that to use the style that is predominant across the whole tree.
Reviewed-by: Michael Paquier <michael(dot)paquier(at)gmail(dot)com>
Reviewed-by: Ryan Murphy <ryanfmurphy(at)gmail(dot)com>
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/17273d059cd3a5cba818505b0d47a444c36a3513
Modified Files
--------------
contrib/btree_gist/btree_utils_num.c | 2 +-
contrib/btree_gist/btree_utils_var.c | 4 +-
contrib/cube/cube.c | 34 +++----
contrib/dblink/dblink.c | 10 +-
contrib/intarray/_int_bool.c | 4 +-
contrib/ltree/ltxtquery_op.c | 2 +-
contrib/pgcrypto/crypt-des.c | 30 +++---
contrib/pgstattuple/pgstatindex.c | 2 +-
contrib/seg/seg.c | 8 +-
contrib/spi/refint.c | 2 +-
contrib/spi/timetravel.c | 4 +-
doc/src/sgml/spi.sgml | 2 +-
src/backend/bootstrap/bootscanner.l | 56 +++++------
src/backend/tsearch/spell.c | 10 +-
src/backend/utils/adt/inet_cidr_ntop.c | 18 ++--
src/backend/utils/adt/inet_net_pton.c | 44 ++++-----
src/backend/utils/adt/tsgistidx.c | 4 +-
src/backend/utils/mb/Unicode/convutils.pm | 2 +-
.../mb/conversion_procs/euc_tw_and_big5/big5.c | 4 +-
src/interfaces/ecpg/compatlib/informix.c | 16 ++--
src/interfaces/ecpg/ecpglib/connect.c | 12 +--
src/interfaces/ecpg/ecpglib/data.c | 48 +++++-----
src/interfaces/ecpg/ecpglib/descriptor.c | 44 ++++-----
src/interfaces/ecpg/ecpglib/error.c | 16 ++--
src/interfaces/ecpg/ecpglib/execute.c | 102 ++++++++++-----------
src/interfaces/ecpg/ecpglib/memory.c | 6 +-
src/interfaces/ecpg/ecpglib/misc.c | 24 ++---
src/interfaces/ecpg/ecpglib/prepare.c | 22 ++---
src/interfaces/ecpg/pgtypeslib/common.c | 4 +-
src/interfaces/ecpg/pgtypeslib/numeric.c | 14 +--
src/interfaces/ecpg/pgtypeslib/timestamp.c | 10 +-
src/interfaces/ecpg/preproc/ecpg.c | 4 +-
src/interfaces/ecpg/preproc/ecpg.header | 10 +-
src/interfaces/ecpg/preproc/pgc.l | 86 ++++++++---------
src/interfaces/ecpg/preproc/type.c | 84 ++++++++---------
src/interfaces/ecpg/preproc/variable.c | 36 ++++----
.../ecpg/test/compat_informix/dec_test.pgc | 2 +-
.../ecpg/test/compat_informix/describe.pgc | 2 +-
.../ecpg/test/compat_informix/rfmtdate.pgc | 2 +-
.../ecpg/test/compat_informix/rfmtlong.pgc | 2 +-
src/interfaces/ecpg/test/compat_informix/sqlda.pgc | 2 +-
src/interfaces/ecpg/test/connect/test1.pgc | 2 +-
src/interfaces/ecpg/test/connect/test2.pgc | 2 +-
src/interfaces/ecpg/test/connect/test3.pgc | 2 +-
src/interfaces/ecpg/test/connect/test4.pgc | 2 +-
src/interfaces/ecpg/test/connect/test5.pgc | 2 +-
.../ecpg/test/expected/compat_informix-dec_test.c | 2 +-
.../ecpg/test/expected/compat_informix-describe.c | 2 +-
.../ecpg/test/expected/compat_informix-rfmtdate.c | 2 +-
.../ecpg/test/expected/compat_informix-rfmtlong.c | 2 +-
.../ecpg/test/expected/compat_informix-sqlda.c | 2 +-
src/interfaces/ecpg/test/expected/connect-test1.c | 2 +-
src/interfaces/ecpg/test/expected/connect-test2.c | 2 +-
src/interfaces/ecpg/test/expected/connect-test3.c | 2 +-
src/interfaces/ecpg/test/expected/connect-test4.c | 2 +-
src/interfaces/ecpg/test/expected/connect-test5.c | 2 +-
.../ecpg/test/expected/pgtypeslib-dt_test.c | 2 +-
.../ecpg/test/expected/pgtypeslib-dt_test2.c | 2 +-
.../ecpg/test/expected/pgtypeslib-nan_test.c | 2 +-
.../ecpg/test/expected/pgtypeslib-num_test.c | 2 +-
.../ecpg/test/expected/pgtypeslib-num_test2.c | 2 +-
.../ecpg/test/expected/preproc-array_of_struct.c | 2 +-
src/interfaces/ecpg/test/expected/preproc-cursor.c | 2 +-
src/interfaces/ecpg/test/expected/preproc-define.c | 2 +-
.../ecpg/test/expected/preproc-describe.c | 2 +-
.../ecpg/test/expected/preproc-outofscope.c | 2 +-
.../ecpg/test/expected/preproc-pointer_to_struct.c | 2 +-
.../ecpg/test/expected/preproc-strings.c | 2 +-
.../ecpg/test/expected/preproc-variable.c | 2 +-
src/interfaces/ecpg/test/expected/sql-array.c | 2 +-
src/interfaces/ecpg/test/expected/sql-describe.c | 2 +-
src/interfaces/ecpg/test/expected/sql-execute.c | 2 +-
src/interfaces/ecpg/test/expected/sql-oldexec.c | 2 +-
src/interfaces/ecpg/test/expected/sql-sqlda.c | 2 +-
src/interfaces/ecpg/test/expected/sql-twophase.c | 2 +-
src/interfaces/ecpg/test/expected/thread-thread.c | 8 +-
.../ecpg/test/expected/thread-thread_implicit.c | 8 +-
src/interfaces/ecpg/test/performance/perftest.pgc | 2 +-
src/interfaces/ecpg/test/pgtypeslib/dt_test.pgc | 2 +-
src/interfaces/ecpg/test/pgtypeslib/dt_test2.pgc | 2 +-
src/interfaces/ecpg/test/pgtypeslib/nan_test.pgc | 2 +-
src/interfaces/ecpg/test/pgtypeslib/num_test.pgc | 2 +-
src/interfaces/ecpg/test/pgtypeslib/num_test2.pgc | 2 +-
.../ecpg/test/preproc/array_of_struct.pgc | 2 +-
src/interfaces/ecpg/test/preproc/cursor.pgc | 2 +-
src/interfaces/ecpg/test/preproc/define.pgc | 2 +-
src/interfaces/ecpg/test/preproc/outofscope.pgc | 2 +-
.../ecpg/test/preproc/pointer_to_struct.pgc | 2 +-
src/interfaces/ecpg/test/preproc/strings.pgc | 2 +-
src/interfaces/ecpg/test/preproc/variable.pgc | 2 +-
src/interfaces/ecpg/test/sql/array.pgc | 2 +-
src/interfaces/ecpg/test/sql/describe.pgc | 2 +-
src/interfaces/ecpg/test/sql/execute.pgc | 2 +-
src/interfaces/ecpg/test/sql/oldexec.pgc | 2 +-
src/interfaces/ecpg/test/sql/sqlda.pgc | 2 +-
src/interfaces/ecpg/test/sql/twophase.pgc | 2 +-
src/interfaces/ecpg/test/thread/thread.pgc | 8 +-
.../ecpg/test/thread/thread_implicit.pgc | 8 +-
src/test/isolation/specscanner.l | 10 +-
99 files changed, 469 insertions(+), 469 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Andres Freund | 2017-09-05 19:10:13 | Re: pgsql: Remove endof macro |
Previous Message | Fabien COELHO | 2017-09-05 19:01:25 | Re: [COMMITTERS] pgsql: Add psql variables showing server version and psql version. |