]> git.ipfire.org Git - thirdparty/postgresql.git/commitdiff
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 f1658ed3901790e1d6456c56e6dd15610cf72883..766dede0c98baa49732402649a6d0d46a4391792 100644 (file)
@@ -4,7 +4,7 @@
  *
  * Copyright (c) 2000-2005, PostgreSQL Global Development Group
  *
- * $PostgreSQL: pgsql/src/backend/utils/misc/guc-file.l,v 1.32.2.1 2006/01/01 19:53:48 tgl Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/misc/guc-file.l,v 1.32.2.2 2006/01/02 19:55:31 tgl Exp $
  */
 
 %{
@@ -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;