Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit fb2ebae

Browse files
committed
Add comments about kwlookup.c expectations
1 parent c3b5d2f commit fb2ebae

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

src/backend/parser/keywords.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $PostgreSQL: pgsql/src/backend/parser/keywords.c,v 1.211 2009/03/07 00:13:57 alvherre Exp $
12+
* $PostgreSQL: pgsql/src/backend/parser/keywords.c,v 1.212 2009/03/08 16:53:30 alvherre Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -27,5 +27,5 @@ const ScanKeyword ScanKeywords[] = {
2727
#include "parser/kwlist.h"
2828
};
2929

30-
/* End of ScanKeywords, for use elsewhere */
30+
/* End of ScanKeywords, for use in kwlookup.c and elsewhere */
3131
const ScanKeyword *LastScanKeyword = endof(ScanKeywords);

src/backend/parser/kwlookup.c

+4-1
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,15 @@
66
* NB - this file is also used by ECPG and several frontend programs in
77
* src/bin/ including pg_dump and psql
88
*
9+
* Note that this file expects that the ScanKeywords array is defined
10+
* and that LastScanKeyword points to its element one past the last.
11+
*
912
* Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
1013
* Portions Copyright (c) 1994, Regents of the University of California
1114
*
1215
*
1316
* IDENTIFICATION
14-
* $PostgreSQL: pgsql/src/backend/parser/kwlookup.c,v 2.1 2009/03/07 00:13:58 alvherre Exp $
17+
* $PostgreSQL: pgsql/src/backend/parser/kwlookup.c,v 2.2 2009/03/08 16:53:30 alvherre Exp $
1518
*
1619
*-------------------------------------------------------------------------
1720
*/

src/bin/pg_dump/keywords.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $PostgreSQL: pgsql/src/bin/pg_dump/keywords.c,v 1.1 2009/03/07 00:13:58 alvherre Exp $
12+
* $PostgreSQL: pgsql/src/bin/pg_dump/keywords.c,v 1.2 2009/03/08 16:53:30 alvherre Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -27,5 +27,5 @@ const ScanKeyword ScanKeywords[] = {
2727
#include "parser/kwlist.h"
2828
};
2929

30-
/* End of ScanKeywords, for use elsewhere */
30+
/* End of ScanKeywords, for use in kwlookup.c */
3131
const ScanKeyword *LastScanKeyword = endof(ScanKeywords);

src/interfaces/ecpg/preproc/keywords.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/keywords.c,v 1.87 2009/03/07 00:13:58 alvherre Exp $
12+
* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/keywords.c,v 1.88 2009/03/08 16:53:30 alvherre Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -26,5 +26,5 @@ const ScanKeyword ScanKeywords[] = {
2626
#include "parser/kwlist.h"
2727
};
2828

29-
/* End of ScanKeywords, for use elsewhere */
29+
/* End of ScanKeywords, for use in kwlookup.c */
3030
const ScanKeyword *LastScanKeyword = endof(ScanKeywords);

0 commit comments

Comments
 (0)