Separate the key word list that lived in keywords.c into a new header file
Alvaro Herrera <alvherre@alvh.no-ip.org>
Separate the key word list that lived in keywords.c into a new header file kwlist.h, to avoid having to link the backend object file into other programs like pg_dump. We can now simply symlink a single source file from the backend (kwlookup.c, containing the shared routine ScanKeywordLookup) and compile it locally, which is a lot cleaner.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/parser/gram.y | modified | +3 −3 |
| src/backend/parser/keywords.c | modified | +8 −480 |
| src/backend/parser/kwlookup.c | added | +87 −0 |
| src/backend/parser/Makefile | modified | +2 −2 |
| src/bin/pg_dump/keywords.c | added | +31 −0 |
| src/bin/pg_dump/Makefile | modified | +12 −14 |
| src/bin/psql/Makefile | modified | +10 −12 |
| src/bin/scripts/Makefile | modified | +15 −15 |
| src/include/parser/kwlist.h | added | +419 −0 |
| src/interfaces/ecpg/preproc/keywords.c | added | +30 −0 |
| src/interfaces/ecpg/preproc/Makefile | modified | +4 −5 |