From: Tom Lane Date: Mon, 2 Jan 2006 19:55:31 +0000 (+0000) Subject: Reset flex state in a way that works for both flex 2.5.4 and 2.5.31. X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=030ce0645e4d44a437bc4741b59667f340eb8457;p=users%2Fbernd%2Fpostgres.git Reset flex state in a way that works for both flex 2.5.4 and 2.5.31. --- diff --git a/src/backend/utils/misc/guc-file.l b/src/backend/utils/misc/guc-file.l index 78fd35a6ca..5952325d69 100644 --- a/src/backend/utils/misc/guc-file.l +++ b/src/backend/utils/misc/guc-file.l @@ -157,8 +157,7 @@ ProcessConfigFile(GucContext context) /* * Parse */ - yyin = fp; - YY_FLUSH_BUFFER; /* in case we abandoned a prior scan */ + yyrestart(fp); head = tail = NULL; opt_name = opt_value = NULL; ConfigFileLineno = 1;