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)
commit3011b522e1593aa273386d7e6a3e08739826a07f
treee001e14c7a7744567362059e2bb5f4664171150b
parent3e9a36e72bb73038067acee4a7b719ea47df0503
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