Rewrite ProcessConfigFile() to avoid misbehavior at EOF, as per report from Andrus Moor.  The former state-machine-style coding wasn't actually doing much except obscuring the control flow, and it didn't extend readily to fix this case, so I just took it out.  Also, add a YY_FLUSH_BUFFER call to ensure the lexer is reset correctly if the previous scan failed partway through the file.
Rewrite ProcessConfigFile() to avoid misbehavior at EOF, as per report
from Andrus Moor.  The former state-machine-style coding wasn't actually
doing much except obscuring the control flow, and it didn't extend
readily to fix this case, so I just took it out.  Also, add a
YY_FLUSH_BUFFER call to ensure the lexer is reset correctly if the
previous scan failed partway through the file.

greenplum-db/gpdb,tpostgres-projects/tPostgres,lpetrov-pivotal/gpdb,postmind-net/postgres-xl,royc1/gpdb,kaknikhil/gpdb,ashwinstar/gpdb,50wu/gpdb,foyzur/gpdb,0x0FFF/gpdb,0x0FFF/gpdb,edespino/gpdb,yuanzhao/gpdb,jmcatamney/gpdb,lintzc/gpdb,lintzc/gpdb,kaknikhil/gpdb,lintzc/gpdb,kaknikhil/gpdb,greenplum-db/gpdb,edespino/gpdb,xinzweb/gpdb,janebeckman/gpdb,rvs/gpdb,tangp3/gpdb,tpostgres-projects/tPostgres,xuegang/gpdb,lisakowen/gpdb,foyzur/gpdb,rvs/gpdb,randomtask1155/gpdb,CraigHarris/gpdb,randomtask1155/gpdb,Postgres-XL/Postgres-XL,tangp3/gpdb,50wu/gpdb,rubikloud/gpdb,zaksoup/gpdb,ashwinstar/gpdb,xinzweb/gpdb,yuanzhao/gpdb,Quikling/gpdb,adam8157/gpdb,Postgres-XL/Postgres-XL,chrishajas/gpdb,rubikloud/gpdb,techdragon/Postgres-XL,edespino/gpdb,royc1/gpdb,zaksoup/gpdb,yuanzhao/gpdb,royc1/gpdb,Chibin/gpdb,Quikling/gpdb,janebeckman/gpdb,tpostgres-projects/tPostgres,adam8157/gpdb,royc1/gpdb,randomtask1155/gpdb,ahachete/gpdb,arcivanov/postgres-xl,cjcjameson/gpdb,lisakowen/gpdb,snaga/postgres-xl,lpetrov-pivotal/gpdb,cjcjameson/gpdb,ahachete/gpdb,rvs/gpdb,atris/gpdb,rvs/gpdb,ashwinstar/gpdb,xuegang/gpdb,rvs/gpdb,royc1/gpdb,tpostgres-projects/tPostgres,Quikling/gpdb,yuanzhao/gpdb,royc1/gpdb,rvs/gpdb,randomtask1155/gpdb,ashwinstar/gpdb,CraigHarris/gpdb,lintzc/gpdb,Chibin/gpdb,zeroae/postgres-xl,ashwinstar/gpdb,0x0FFF/gpdb,0x0FFF/gpdb,ashwinstar/gpdb,janebeckman/gpdb,kmjungersen/PostgresXL,lintzc/gpdb,0x0FFF/gpdb,chrishajas/gpdb,janebeckman/gpdb,lpetrov-pivotal/gpdb,yuanzhao/gpdb,edespino/gpdb,xinzweb/gpdb,CraigHarris/gpdb,CraigHarris/gpdb,jmcatamney/gpdb,rubikloud/gpdb,lisakowen/gpdb,adam8157/gpdb,yazun/postgres-xl,cjcjameson/gpdb,tangp3/gpdb,xinzweb/gpdb,50wu/gpdb,cjcjameson/gpdb,xinzweb/gpdb,techdragon/Postgres-XL,foyzur/gpdb,0x0FFF/gpdb,oberstet/postgres-xl,kaknikhil/gpdb,pavanvd/postgres-xl,royc1/gpdb,atris/gpdb,chrishajas/gpdb,CraigHarris/gpdb,lisakowen/gpdb,cjcjameson/gpdb,postmind-net/postgres-xl,rubikloud/gpdb,jmcatamney/gpdb,xuegang/gpdb,zaksoup/gpdb,edespino/gpdb,greenplum-db/gpdb,lpetrov-pivotal/gpdb,Quikling/gpdb,Quikling/gpdb,0x0FFF/gpdb,ahachete/gpdb,oberstet/postgres-xl,arcivanov/postgres-xl,techdragon/Postgres-XL,arcivanov/postgres-xl,ahachete/gpdb,Postgres-XL/Postgres-XL,zeroae/postgres-xl,cjcjameson/gpdb,chrishajas/gpdb,50wu/gpdb,rubikloud/gpdb,ashwinstar/gpdb,postmind-net/postgres-xl,foyzur/gpdb,royc1/gpdb,janebeckman/gpdb,50wu/gpdb,foyzur/gpdb,Quikling/gpdb,CraigHarris/gpdb,zaksoup/gpdb,kmjungersen/PostgresXL,xuegang/gpdb,postmind-net/postgres-xl,50wu/gpdb,adam8157/gpdb,Postgres-XL/Postgres-XL,Chibin/gpdb,lpetrov-pivotal/gpdb,chrishajas/gpdb,foyzur/gpdb,randomtask1155/gpdb,adam8157/gpdb,randomtask1155/gpdb,zaksoup/gpdb,snaga/postgres-xl,janebeckman/gpdb,kaknikhil/gpdb,xuegang/gpdb,Quikling/gpdb,kaknikhil/gpdb,lisakowen/gpdb,rvs/gpdb,chrishajas/gpdb,lpetrov-pivotal/gpdb,ashwinstar/gpdb,greenplum-db/gpdb,yuanzhao/gpdb,adam8157/gpdb,edespino/gpdb,rvs/gpdb,zeroae/postgres-xl,lintzc/gpdb,Quikling/gpdb,jmcatamney/gpdb,adam8157/gpdb,kaknikhil/gpdb,CraigHarris/gpdb,yuanzhao/gpdb,foyzur/gpdb,xuegang/gpdb,ahachete/gpdb,cjcjameson/gpdb,rubikloud/gpdb,yuanzhao/gpdb,ovr/postgres-xl,yazun/postgres-xl,arcivanov/postgres-xl,lisakowen/gpdb,pavanvd/postgres-xl,kmjungersen/PostgresXL,oberstet/postgres-xl,kaknikhil/gpdb,ovr/postgres-xl,greenplum-db/gpdb,Chibin/gpdb,Chibin/gpdb,tangp3/gpdb,edespino/gpdb,edespino/gpdb,lisakowen/gpdb,Chibin/gpdb,xuegang/gpdb,kaknikhil/gpdb,arcivanov/postgres-xl,yazun/postgres-xl,cjcjameson/gpdb,edespino/gpdb,tangp3/gpdb,Quikling/gpdb,zeroae/postgres-xl,50wu/gpdb,Chibin/gpdb,greenplum-db/gpdb,janebeckman/gpdb,Chibin/gpdb,greenplum-db/gpdb,snaga/postgres-xl,ahachete/gpdb,xinzweb/gpdb,jmcatamney/gpdb,xuegang/gpdb,lintzc/gpdb,50wu/gpdb,CraigHarris/gpdb,zaksoup/gpdb,cjcjameson/gpdb,postmind-net/postgres-xl,rvs/gpdb,janebeckman/gpdb,arcivanov/postgres-xl,lisakowen/gpdb,kaknikhil/gpdb,pavanvd/postgres-xl,tpostgres-projects/tPostgres,janebeckman/gpdb,yuanzhao/gpdb,edespino/gpdb,jmcatamney/gpdb,0x0FFF/gpdb,Quikling/gpdb,randomtask1155/gpdb,ovr/postgres-xl,xinzweb/gpdb,ahachete/gpdb,pavanvd/postgres-xl,ovr/postgres-xl,yazun/postgres-xl,lpetrov-pivotal/gpdb,Chibin/gpdb,lintzc/gpdb,oberstet/postgres-xl,rvs/gpdb,techdragon/Postgres-XL,rubikloud/gpdb,rubikloud/gpdb,yuanzhao/gpdb,lintzc/gpdb,adam8157/gpdb,ahachete/gpdb,kmjungersen/PostgresXL,Postgres-XL/Postgres-XL,Chibin/gpdb,snaga/postgres-xl,chrishajas/gpdb,tangp3/gpdb,randomtask1155/gpdb,tangp3/gpdb,atris/gpdb,atris/gpdb,lpetrov-pivotal/gpdb,jmcatamney/gpdb,xinzweb/gpdb,greenplum-db/gpdb,techdragon/Postgres-XL,CraigHarris/gpdb,yazun/postgres-xl,chrishajas/gpdb,xuegang/gpdb,oberstet/postgres-xl,zaksoup/gpdb,atris/gpdb,foyzur/gpdb,kmjungersen/PostgresXL,atris/gpdb,jmcatamney/gpdb,tangp3/gpdb,zeroae/postgres-xl,ovr/postgres-xl,atris/gpdb,pavanvd/postgres-xl,atris/gpdb,zaksoup/gpdb,cjcjameson/gpdb,janebeckman/gpdb,snaga/postgres-xl