1
0
mirror of https://github.com/postgres/postgres.git synced 2025-10-19 15:49:24 +03:00

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
This commit is contained in:
Peter Eisentraut
2025-09-15 10:48:30 +02:00
parent 70407d39b7
commit d4d1fc527b
23 changed files with 124 additions and 124 deletions

View File

@@ -15,7 +15,7 @@
#include "nodes/parsenodes.h"
struct PlanState; /* avoid including execnodes.h too */
typedef struct PlanState PlanState; /* avoid including execnodes.h too */
/* flags bits for query_tree_walker and query_tree_mutator */
@@ -38,7 +38,7 @@ typedef bool (*check_function_callback) (Oid func_id, void *context);
/* callback functions for tree walkers */
typedef bool (*tree_walker_callback) (Node *node, void *context);
typedef bool (*planstate_tree_walker_callback) (struct PlanState *planstate,
typedef bool (*planstate_tree_walker_callback) (PlanState *planstate,
void *context);
/* callback functions for tree mutators */
@@ -217,7 +217,7 @@ extern bool raw_expression_tree_walker_impl(Node *node,
tree_walker_callback walker,
void *context);
extern bool planstate_tree_walker_impl(struct PlanState *planstate,
extern bool planstate_tree_walker_impl(PlanState *planstate,
planstate_tree_walker_callback walker,
void *context);