diff options
author | Alvaro Herrera | 2009-03-08 16:53:30 +0000 |
---|---|---|
committer | Alvaro Herrera | 2009-03-08 16:53:30 +0000 |
commit | d005961fa54ec7a4579048bd24528653a8ad3455 (patch) | |
tree | 00c44f7f1b7a81fab8aebe7cad485a64c3cb2930 | |
parent | 9b69c68adfbd3ac0a59a5bfb99ee9b69affdecde (diff) |
Add comments about kwlookup.c expectations
-rw-r--r-- | src/backend/parser/keywords.c | 2 | ||||
-rw-r--r-- | src/backend/parser/kwlookup.c | 3 | ||||
-rw-r--r-- | src/bin/pg_dump/keywords.c | 2 | ||||
-rw-r--r-- | src/interfaces/ecpg/preproc/keywords.c | 2 |
4 files changed, 6 insertions, 3 deletions
diff --git a/src/backend/parser/keywords.c b/src/backend/parser/keywords.c index 6d2115e4c8..83db2d2b9c 100644 --- a/src/backend/parser/keywords.c +++ b/src/backend/parser/keywords.c @@ -27,5 +27,5 @@ const ScanKeyword ScanKeywords[] = { #include "parser/kwlist.h" }; -/* End of ScanKeywords, for use elsewhere */ +/* End of ScanKeywords, for use in kwlookup.c and elsewhere */ const ScanKeyword *LastScanKeyword = endof(ScanKeywords); diff --git a/src/backend/parser/kwlookup.c b/src/backend/parser/kwlookup.c index ea61b0daa2..f941837fb1 100644 --- a/src/backend/parser/kwlookup.c +++ b/src/backend/parser/kwlookup.c @@ -6,6 +6,9 @@ * NB - this file is also used by ECPG and several frontend programs in * src/bin/ including pg_dump and psql * + * Note that this file expects that the ScanKeywords array is defined + * and that LastScanKeyword points to its element one past the last. + * * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group * Portions Copyright (c) 1994, Regents of the University of California * diff --git a/src/bin/pg_dump/keywords.c b/src/bin/pg_dump/keywords.c index 384ea13174..166942678a 100644 --- a/src/bin/pg_dump/keywords.c +++ b/src/bin/pg_dump/keywords.c @@ -27,5 +27,5 @@ const ScanKeyword ScanKeywords[] = { #include "parser/kwlist.h" }; -/* End of ScanKeywords, for use elsewhere */ +/* End of ScanKeywords, for use in kwlookup.c */ const ScanKeyword *LastScanKeyword = endof(ScanKeywords); diff --git a/src/interfaces/ecpg/preproc/keywords.c b/src/interfaces/ecpg/preproc/keywords.c index 352ed6d519..fa6db2ed04 100644 --- a/src/interfaces/ecpg/preproc/keywords.c +++ b/src/interfaces/ecpg/preproc/keywords.c @@ -26,5 +26,5 @@ const ScanKeyword ScanKeywords[] = { #include "parser/kwlist.h" }; -/* End of ScanKeywords, for use elsewhere */ +/* End of ScanKeywords, for use in kwlookup.c */ const ScanKeyword *LastScanKeyword = endof(ScanKeywords); |