scansup.h 846 B

123456789101112131415161718192021222324252627282930
  1. /*-------------------------------------------------------------------------
  2. *
  3. * scansup.h
  4. * scanner support routines. used by both the bootstrap lexer
  5. * as well as the normal lexer
  6. *
  7. * Portions Copyright (c) 1996-2016, PostgreSQL Global Development Group
  8. * Portions Copyright (c) 1994, Regents of the University of California
  9. *
  10. * src/include/parser/scansup.h
  11. *
  12. *-------------------------------------------------------------------------
  13. */
  14. #ifndef SCANSUP_H
  15. #define SCANSUP_H
  16. extern char *scanstr(const char *s);
  17. extern char *downcase_truncate_identifier(const char *ident, int len,
  18. bool warn);
  19. extern char *downcase_identifier(const char *ident, int len,
  20. bool warn, bool truncate);
  21. extern void truncate_identifier(char *ident, int len, bool warn);
  22. extern bool scanner_isspace(char ch);
  23. #endif /* SCANSUP_H */