pgsql: Update various forward declarations to use typedef

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Update various forward declarations to use typedef
Date: 2025-09-15 09:05:19
Message-ID: E1uy59D-000oCU-0t@gemulon.postgresql.org
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(dot)evan(dot)chao(at)gmail(dot)com>
Discussion: https://www.postgresql.org/message-id/flat/10d32190-f31b-40a5-b177-11db55597355(at)eisentraut(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2025-09-15 10:15:14 pgsql: CREATE STATISTICS: improve misleading error message
Previous Message Amit Kapila 2025-09-15 08:55:31 pgsql: Resume conflict-relevant data retention automatically.