Move psql's psqlscan.l into src/fe_utils.
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 25 Mar 2016 00:28:47 +0000 (20:28 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 25 Mar 2016 00:28:47 +0000 (20:28 -0400)
commitc1156411ad0879a71956b64aa487babe7572685b
tree2213c8da830ec180c397bb84fced8b472f69f341
parentd65bea26a867e3bbd053bf87b985b0e113256414
Move psql's psqlscan.l into src/fe_utils.

This completes (at least for now) the project of getting rid of ad-hoc
linkages among the src/bin/ subdirectories.  Everything they share is now
in src/fe_utils/ and is included from a static library at link time.

A side benefit is that we can restore the FLEX_NO_BACKUP check for
psqlscanslash.l.  We might need to think of another way to do that check
if we ever need to build two lexers with that property in the same source
directory, but there's no foreseeable reason to need that.
20 files changed:
src/backend/parser/scan.l
src/bin/pgbench/Makefile
src/bin/pgbench/exprscan.l
src/bin/pgbench/pgbench.h
src/bin/psql/.gitignore
src/bin/psql/Makefile
src/bin/psql/command.h
src/bin/psql/mainloop.c
src/bin/psql/mainloop.h
src/bin/psql/nls.mk
src/bin/psql/prompt.h
src/bin/psql/psqlscanslash.h
src/bin/psql/psqlscanslash.l
src/fe_utils/.gitignore [new file with mode: 0644]
src/fe_utils/Makefile
src/fe_utils/psqlscan.l [moved from src/bin/psql/psqlscan.l with 97% similarity]
src/include/fe_utils/psqlscan.h [moved from src/bin/psql/psqlscan.h with 64% similarity]
src/include/fe_utils/psqlscan_int.h [moved from src/bin/psql/psqlscan_int.h with 85% similarity]
src/tools/msvc/Mkvcbuild.pm
src/tools/msvc/clean.bat