readfuncs.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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-2022, 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. #include "nodes/nodes.h"
  17. /*
  18. * variable in read.c that needs to be accessible to readfuncs.c
  19. */
  20. #ifdef WRITE_READ_PARSE_PLAN_TREES
  21. extern PGDLLIMPORT bool restore_location_fields;
  22. #endif
  23. /*
  24. * prototypes for functions in read.c (the lisp token parser)
  25. */
  26. extern const char *pg_strtok(int *length);
  27. extern char *debackslash(const char *token, int length);
  28. extern void *nodeRead(const char *token, int tok_len);
  29. /*
  30. * prototypes for functions in readfuncs.c
  31. */
  32. extern Node *parseNodeString(void);
  33. #endif /* READFUNCS_H */