diff options
author | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2009-03-08 16:53:30 +0000 |
---|---|---|
committer | Alvaro Herrera <alvherre@alvh.no-ip.org> | 2009-03-08 16:53:30 +0000 |
commit | fb2ebae498d81ccb0ff28227bc20f908d4450e3c (patch) | |
tree | 0b9030f56a9e304230fc7ba427b51befcc80dd8b /src/backend/parser | |
parent | c3b5d2f1383bb96a52dcc75dedca02ad42fc7850 (diff) |
Add comments about kwlookup.c expectations
Diffstat (limited to 'src/backend/parser')
-rw-r--r-- | src/backend/parser/keywords.c | 4 | ||||
-rw-r--r-- | src/backend/parser/kwlookup.c | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/src/backend/parser/keywords.c b/src/backend/parser/keywords.c index 440c63e4539..0abd802fea8 100644 --- a/src/backend/parser/keywords.c +++ b/src/backend/parser/keywords.c @@ -9,7 +9,7 @@ * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/parser/keywords.c,v 1.211 2009/03/07 00:13:57 alvherre Exp $ + * $PostgreSQL: pgsql/src/backend/parser/keywords.c,v 1.212 2009/03/08 16:53:30 alvherre Exp $ * *------------------------------------------------------------------------- */ @@ -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 86c89e68b29..7321a57c156 100644 --- a/src/backend/parser/kwlookup.c +++ b/src/backend/parser/kwlookup.c @@ -6,12 +6,15 @@ * 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 * * * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/parser/kwlookup.c,v 2.1 2009/03/07 00:13:58 alvherre Exp $ + * $PostgreSQL: pgsql/src/backend/parser/kwlookup.c,v 2.2 2009/03/08 16:53:30 alvherre Exp $ * *------------------------------------------------------------------------- */ |