Commit fb2ebae4 authored by Alvaro Herrera's avatar Alvaro Herrera

Add comments about kwlookup.c expectations

parent c3b5d2f1
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* *
* *
* IDENTIFICATION * 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[] = { ...@@ -27,5 +27,5 @@ const ScanKeyword ScanKeywords[] = {
#include "parser/kwlist.h" #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); const ScanKeyword *LastScanKeyword = endof(ScanKeywords);
...@@ -6,12 +6,15 @@ ...@@ -6,12 +6,15 @@
* NB - this file is also used by ECPG and several frontend programs in * NB - this file is also used by ECPG and several frontend programs in
* src/bin/ including pg_dump and psql * 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) 1996-2009, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* *
* IDENTIFICATION * 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 $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/bin/pg_dump/keywords.c,v 1.1 2009/03/07 00:13:58 alvherre Exp $ * $PostgreSQL: pgsql/src/bin/pg_dump/keywords.c,v 1.2 2009/03/08 16:53:30 alvherre Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -27,5 +27,5 @@ const ScanKeyword ScanKeywords[] = { ...@@ -27,5 +27,5 @@ const ScanKeyword ScanKeywords[] = {
#include "parser/kwlist.h" #include "parser/kwlist.h"
}; };
/* End of ScanKeywords, for use elsewhere */ /* End of ScanKeywords, for use in kwlookup.c */
const ScanKeyword *LastScanKeyword = endof(ScanKeywords); const ScanKeyword *LastScanKeyword = endof(ScanKeywords);
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/keywords.c,v 1.87 2009/03/07 00:13:58 alvherre Exp $ * $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/keywords.c,v 1.88 2009/03/08 16:53:30 alvherre Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -26,5 +26,5 @@ const ScanKeyword ScanKeywords[] = { ...@@ -26,5 +26,5 @@ const ScanKeyword ScanKeywords[] = {
#include "parser/kwlist.h" #include "parser/kwlist.h"
}; };
/* End of ScanKeywords, for use elsewhere */ /* End of ScanKeywords, for use in kwlookup.c */
const ScanKeyword *LastScanKeyword = endof(ScanKeywords); const ScanKeyword *LastScanKeyword = endof(ScanKeywords);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment