PostgreSQL Source Code  git master
readfuncs.h
Go to the documentation of this file.
1 /*-------------------------------------------------------------------------
2  *
3  * readfuncs.h
4  * header file for read.c and readfuncs.c. These functions are internal
5  * to the stringToNode interface and should not be used by anyone else.
6  *
7  * Portions Copyright (c) 1996-2024, PostgreSQL Global Development Group
8  * Portions Copyright (c) 1994, Regents of the University of California
9  *
10  * src/include/nodes/readfuncs.h
11  *
12  *-------------------------------------------------------------------------
13  */
14 #ifndef READFUNCS_H
15 #define READFUNCS_H
16 
17 #include "nodes/nodes.h"
18 
19 /*
20  * variable in read.c that needs to be accessible to readfuncs.c
21  */
22 #ifdef WRITE_READ_PARSE_PLAN_TREES
23 extern PGDLLIMPORT bool restore_location_fields;
24 #endif
25 
26 /*
27  * prototypes for functions in read.c (the lisp token parser)
28  */
29 extern const char *pg_strtok(int *length);
30 extern char *debackslash(const char *token, int length);
31 extern void *nodeRead(const char *token, int tok_len);
32 
33 /*
34  * prototypes for functions in readfuncs.c
35  */
36 extern Node *parseNodeString(void);
37 
38 #endif /* READFUNCS_H */
#define PGDLLIMPORT
Definition: c.h:1316
#define token
Definition: indent_globs.h:126
const char * pg_strtok(int *length)
Definition: read.c:153
Node * parseNodeString(void)
Definition: readfuncs.c:562
char * debackslash(const char *token, int length)
Definition: read.c:214
void * nodeRead(const char *token, int tok_len)
Definition: read.c:320
Definition: nodes.h:129