mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-13 17:19:43 +02:00
c252a17d82
ecpg and pg_dump each contain keyword arrays with structure similar to the backend's keyword array. Up to now, we actually named those arrays the same as the backend's and relied on parser/keywords.h to declare them. This seems a tad too cute, though, and it breaks now that we need to PGDLLIMPORT-decorate the backend symbols. Rename to avoid the problem. Per buildfarm. (It strikes me that maybe we should get rid of the separate keywords.c files altogether, and just define these arrays in the modules that use them, but that's a rather more invasive change.)
31 lines
758 B
C
31 lines
758 B
C
/*-------------------------------------------------------------------------
|
|
*
|
|
* keywords.c
|
|
* lexical token lookup for key words in PostgreSQL
|
|
*
|
|
*
|
|
* Portions Copyright (c) 1996-2012, PostgreSQL Global Development Group
|
|
* Portions Copyright (c) 1994, Regents of the University of California
|
|
*
|
|
*
|
|
* IDENTIFICATION
|
|
* src/bin/pg_dump/keywords.c
|
|
*
|
|
*-------------------------------------------------------------------------
|
|
*/
|
|
#include "postgres_fe.h"
|
|
|
|
#include "parser/keywords.h"
|
|
|
|
/*
|
|
* We don't need the token number, so leave it out to avoid requiring other
|
|
* backend headers.
|
|
*/
|
|
#define PG_KEYWORD(a,b,c) {a,0,c},
|
|
|
|
const ScanKeyword FEScanKeywords[] = {
|
|
#include "parser/kwlist.h"
|
|
};
|
|
|
|
const int NumFEScanKeywords = lengthof(FEScanKeywords);
|