pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Update various forward declarations to use typedef
Date: Mon, 15 Sep 2025 09:05:19 +0000
Message-ID: <E1uy59D-000oCU-0t@gemulon.postgresql.org> (raw)

Update various forward declarations to use typedef

There are a number of forward declarations that use struct but not the
customary typedef, because that could have led to repeat typedefs,
which was not allowed.  This is now allowed in C11, so we can update
these to provide the typedefs as well, so that the later uses of the
types look more consistent.

Reviewed-by: Chao Li <li.evan.chao@gmail.com>
Discussion: https://www.postgresql.org/message-id/flat/10d32190-f31b-40a5-b177-11db55597355@eisentraut.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/d4d1fc527bdb333d818038081c17ed7d9b1697c1

Modified Files
--------------
src/include/commands/tablecmds.h      |  5 +++--
src/include/common/string.h           |  7 +++---
src/include/executor/executor.h       |  4 ++--
src/include/executor/tablefunc.h      | 18 ++++++++--------
src/include/nodes/execnodes.h         | 40 +++++++++++++++++------------------
src/include/nodes/nodeFuncs.h         |  6 +++---
src/include/nodes/params.h            | 15 ++++++-------
src/include/nodes/subscripting.h      | 14 ++++++------
src/include/nodes/supportnodes.h      | 26 +++++++++++------------
src/include/optimizer/optimizer.h     | 14 ++++++------
src/include/parser/parse_utilcmd.h    |  4 ++--
src/include/partitioning/partbounds.h |  6 +++---
src/include/partitioning/partprune.h  | 10 ++++-----
src/include/rewrite/rewriteManip.h    |  4 ++--
src/include/storage/bufmgr.h          | 24 ++++++++++-----------
src/include/storage/bulk_write.h      |  4 ++--
src/include/storage/dsm.h             |  4 ++--
src/include/storage/shmem.h           |  5 +++--
src/include/tcop/pquery.h             |  4 ++--
src/include/utils/array.h             |  6 +++---
src/include/utils/lsyscache.h         |  6 +++---
src/include/utils/plancache.h         | 14 ++++++------
src/include/utils/ruleutils.h         |  8 +++----
23 files changed, 124 insertions(+), 124 deletions(-)



Message-ID: <E1uy59D-000oCU-0t@gemulon.postgresql.org>
Permalink:  ../E1uy59D-000oCU-0t@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1uy59D-000oCU-0t@gemulon.postgresql.org

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: Update various forward declarations to use typedef
  In-Reply-To: <E1uy59D-000oCU-0t@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