Reset flex state in a way that works for both flex 2.5.4 and 2.5.31.
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 2 Jan 2006 19:55:31 +0000 (19:55 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 2 Jan 2006 19:55:31 +0000 (19:55 +0000)
src/backend/utils/misc/guc-file.l

index 78fd35a6ca69f10137fee3c6dde01280c25210b5..5952325d694b7d432d6059a9f558bdd7ead68725 100644 (file)
@@ -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;