summaryrefslogtreecommitdiff
path: root/src/include/parser/parse_utilcmd.h
diff options
context:
space:
mode:
authorPeter Eisentraut <peter@eisentraut.org>2025-09-15 10:48:30 +0200
committerPeter Eisentraut <peter@eisentraut.org>2025-09-15 11:04:10 +0200
commitd4d1fc527bdb333d818038081c17ed7d9b1697c1 (patch)
tree3f5c4823780c7581fbcd083477d07f96fefd63a1 /src/include/parser/parse_utilcmd.h
parent70407d39b7ea8fd41496489b5f6a30c285e7d7d0 (diff)
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
Diffstat (limited to 'src/include/parser/parse_utilcmd.h')
-rw-r--r--src/include/parser/parse_utilcmd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/include/parser/parse_utilcmd.h b/src/include/parser/parse_utilcmd.h
index 9f2b58de797..4965fac4495 100644
--- a/src/include/parser/parse_utilcmd.h
+++ b/src/include/parser/parse_utilcmd.h
@@ -16,7 +16,7 @@
#include "parser/parse_node.h"
-struct AttrMap; /* avoid including attmap.h here */
+typedef struct AttrMap AttrMap; /* avoid including attmap.h here */
extern List *transformCreateStmt(CreateStmt *stmt, const char *queryString);
@@ -38,7 +38,7 @@ extern List *expandTableLikeClause(RangeVar *heapRel,
TableLikeClause *table_like_clause);
extern IndexStmt *generateClonedIndexStmt(RangeVar *heapRel,
Relation source_idx,
- const struct AttrMap *attmap,
+ const AttrMap *attmap,
Oid *constraintOid);
#endif /* PARSE_UTILCMD_H */