mirror of
https://github.com/postgres/postgres.git
synced 2025-11-04 20:11:56 +03:00
Add const qualifiers to node inspection functions
Thomas Munro
This commit is contained in:
@@ -431,7 +431,7 @@ typedef struct Node
|
||||
NodeTag type;
|
||||
} Node;
|
||||
|
||||
#define nodeTag(nodeptr) (((Node*)(nodeptr))->type)
|
||||
#define nodeTag(nodeptr) (((const Node*)(nodeptr))->type)
|
||||
|
||||
/*
|
||||
* newNode -
|
||||
@@ -487,7 +487,7 @@ extern PGDLLIMPORT Node *newNodeMacroHolder;
|
||||
/*
|
||||
* nodes/{outfuncs.c,print.c}
|
||||
*/
|
||||
extern char *nodeToString(void *obj);
|
||||
extern char *nodeToString(const void *obj);
|
||||
|
||||
/*
|
||||
* nodes/{readfuncs.c,read.c}
|
||||
@@ -497,12 +497,12 @@ extern void *stringToNode(char *str);
|
||||
/*
|
||||
* nodes/copyfuncs.c
|
||||
*/
|
||||
extern void *copyObject(void *obj);
|
||||
extern void *copyObject(const void *obj);
|
||||
|
||||
/*
|
||||
* nodes/equalfuncs.c
|
||||
*/
|
||||
extern bool equal(void *a, void *b);
|
||||
extern bool equal(const void *a, const void *b);
|
||||
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user