Move gramparse.h to src/backend/parser
authorJohn Naylor <john.naylor@postgresql.org>
Wed, 14 Sep 2022 03:41:44 +0000 (10:41 +0700)
committerJohn Naylor <john.naylor@postgresql.org>
Wed, 14 Sep 2022 03:57:13 +0000 (10:57 +0700)
commitecaf7c5df54f7fa9df2fdc7225d2bb4e283f0081
tree2e80f00c444d5d7406f4132390a60f66ea793932
parentf352e2d08ac048d7407dd6098fc6b344ff85c2dd
Move gramparse.h to src/backend/parser

This header is semi-private, being used only in files related to
raw parsing, so move to the backend directory where those files
live. This allows removal of Makefile rules that symlink gram.h to
src/include/parser, since gramparse.h can now include gram.h from
within the same directory. This has the side-effect of no longer
installing gram.h and gramparse.h, but there doesn't seem to be a
good reason to continue doing so.

Per suggestion from Andres Freund and Peter Eisentraut
Discussion: https://www.postgresql.org/message-id/20220904181759.px6uosll6zbxcum5%40awork3.anarazel.de
src/backend/Makefile
src/backend/parser/gram.y
src/backend/parser/gramparse.h [moved from src/include/parser/gramparse.h with 97% similarity]
src/backend/parser/parser.c
src/backend/parser/scan.l
src/include/Makefile
src/include/parser/.gitignore [deleted file]
src/tools/msvc/Install.pm
src/tools/pginclude/cpluspluscheck
src/tools/pginclude/headerscheck