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-2019, 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 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 */ |
39 | |