| 1 | /*------------------------------------------------------------------------- |
| 2 | * |
| 3 | * keywords.h |
| 4 | * PostgreSQL's list of SQL keywords |
| 5 | * |
| 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/common/keywords.h |
| 11 | * |
| 12 | *------------------------------------------------------------------------- |
| 13 | */ |
| 14 | #ifndef KEYWORDS_H |
| 15 | #define KEYWORDS_H |
| 16 | |
| 17 | #include "common/kwlookup.h" |
| 18 | |
| 19 | /* Keyword categories --- should match lists in gram.y */ |
| 20 | #define UNRESERVED_KEYWORD 0 |
| 21 | #define COL_NAME_KEYWORD 1 |
| 22 | #define TYPE_FUNC_NAME_KEYWORD 2 |
| 23 | #define RESERVED_KEYWORD 3 |
| 24 | |
| 25 | #ifndef FRONTEND |
| 26 | extern PGDLLIMPORT const ScanKeywordList ScanKeywords; |
| 27 | extern PGDLLIMPORT const uint8 ScanKeywordCategories[]; |
| 28 | #else |
| 29 | extern const ScanKeywordList ScanKeywords; |
| 30 | extern const uint8 ScanKeywordCategories[]; |
| 31 | #endif |
| 32 | |
| 33 | #endif /* KEYWORDS_H */ |
| 34 | |