Move some declarations in the raw-parser header files to create a clearer
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 12 Jul 2009 17:12:34 +0000 (17:12 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 12 Jul 2009 17:12:34 +0000 (17:12 +0000)
commit6566e37e027e14a69e263cb82db4a4e31d9cb8b4
treecbae5de9887767de90c80711e20906f255d247b6
parent23d830bd9aa6fd78d6b5a51433c94d4e30a1fb84
Move some declarations in the raw-parser header files to create a clearer
distinction between the external API (parser.h) and declarations that only
need to be visible within the raw parser code (gramparse.h, which now is only
included by parser.c, gram.y, scan.l, and keywords.c).  This is in preparation
for the upcoming change to a reentrant lexer, which will require referencing
YYSTYPE in the declarations of base_yylex and filtered_base_yylex, hence
gram.h will have to be included by gramparse.h.  We don't want any more files
than absolutely necessary to depend on gram.h, so some cleanup is called for.
12 files changed:
src/backend/commands/proclang.c
src/backend/commands/tablecmds.c
src/backend/parser/gram.y
src/backend/parser/keywords.c
src/backend/parser/parse_utilcmd.c
src/backend/parser/parser.c
src/backend/parser/scan.l
src/backend/utils/adt/ruleutils.c
src/backend/utils/misc/guc.c
src/include/parser/gramparse.h
src/include/parser/parser.h
src/pl/plpgsql/src/pl_comp.c