Update various forward declarations to use typedef
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 15 Sep 2025 08:48:30 +0000 (10:48 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 15 Sep 2025 09:04:10 +0000 (11:04 +0200)
commitd4d1fc527bdb333d818038081c17ed7d9b1697c1
tree3f5c4823780c7581fbcd083477d07f96fefd63a1
parent70407d39b7ea8fd41496489b5f6a30c285e7d7d0
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
23 files changed:
src/include/commands/tablecmds.h
src/include/common/string.h
src/include/executor/executor.h
src/include/executor/tablefunc.h
src/include/nodes/execnodes.h
src/include/nodes/nodeFuncs.h
src/include/nodes/params.h
src/include/nodes/subscripting.h
src/include/nodes/supportnodes.h
src/include/optimizer/optimizer.h
src/include/parser/parse_utilcmd.h
src/include/partitioning/partbounds.h
src/include/partitioning/partprune.h
src/include/rewrite/rewriteManip.h
src/include/storage/bufmgr.h
src/include/storage/bulk_write.h
src/include/storage/dsm.h
src/include/storage/shmem.h
src/include/tcop/pquery.h
src/include/utils/array.h
src/include/utils/lsyscache.h
src/include/utils/plancache.h
src/include/utils/ruleutils.h