pgsql: Update various forward declarations to use typedef

Started by Peter Eisentraut9 months ago1 messagescomitters
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

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: /messages/by-id/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(-)