From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Use C99 designated initializers for some structs
Date: Fri, 07 Sep 2018 09:43:10 +0000
Message-ID: <E1fyDIE-00078X-Dv@gemulon.postgresql.org> (raw)
Use C99 designated initializers for some structs
These are just a few particularly egregious cases that were hard to read
and write, and error prone because of many similar adjacent types.
Discussion: https://www.postgresql.org/message-id/flat/4c9f01be-9245-2148-b569-61a8562ef190%402ndquadrant.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/98afa68d935215e8ab2c7de7fb45972a03e3da26
Modified Files
--------------
src/backend/access/transam/xact.c | 23 +-
src/backend/catalog/heap.c | 98 ++++++--
src/bin/psql/tab-complete.c | 434 ++++++++++-------------------------
src/pl/plpython/plpy_cursorobject.c | 39 +---
src/pl/plpython/plpy_planobject.c | 37 +--
src/pl/plpython/plpy_plpymodule.c | 22 +-
src/pl/plpython/plpy_resultobject.c | 55 ++---
src/pl/plpython/plpy_subxactobject.c | 37 +--
8 files changed, 240 insertions(+), 505 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: peter_e@gmx.net
Subject: Re: pgsql: Use C99 designated initializers for some structs
In-Reply-To: <E1fyDIE-00078X-Dv@gemulon.postgresql.org>
References: <E1fyDIE-00078X-Dv@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox