[COMMITTERS] pgsql: Convert psql's flex lexer to be re-entrant, and make it compile

2016-03-19 Thread Tom Lane
Convert psql's flex lexer to be re-entrant, and make it compile standalone. Change psqlscan.l to specify '%option reentrant', adjust internal APIs to match, and get rid of its internal static variables. While this is good cleanup in an abstract sense, the reason to do it right now is that it seem

Re: [COMMITTERS] pgsql: Convert psql's flex lexer to be re-entrant, and make it compile

2016-03-18 Thread Michael Paquier
On Sat, Mar 19, 2016 at 10:22 AM, Tom Lane wrote: > Also, stop compiling psqlscan as part of mainloop.c, and make it a > standalone build target instead. This is a lot cleaner than before, though > it doesn't really change much in practice as of this commit. (I'm not sure > whether the MSVC buil