pgsql: Rewrite ProcessConfigFile() to avoid misbehavior at EOF, as per

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Rewrite ProcessConfigFile() to avoid misbehavior at EOF, as per
Date: 2006-01-01 19:52:40
Message-ID: 20060101195240.7864B9DC8AC@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
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.

Modified Files:
--------------
pgsql/src/backend/utils/misc:
guc-file.l (r1.32 -> r1.33)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/utils/misc/guc-file.l.diff?r1=1.32&r2=1.33)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2006-01-01 19:53:48 pgsql: Rewrite ProcessConfigFile() to avoid misbehavior at EOF, as per
Previous Message Neil Conway 2006-01-01 10:14:59 pgsql: Remove DOS line endings ("\r\n") from several .po files.