OSDN Git Service

Persuade tsearch/tsearch2 to work (or at least pass their regression
authorTom Lane <tgl@sss.pgh.pa.us>
Sun, 14 Sep 2003 18:44:23 +0000 (18:44 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Sun, 14 Sep 2003 18:44:23 +0000 (18:44 +0000)
commit3f43446e36bdc6a20784351185c27aabdad456eb
treea721f8085ad6a4af92dc74f18a539fa333c75c89
parent0441e269eab927507b95c7f30a77435471553562
Persuade tsearch/tsearch2 to work (or at least pass their regression
tests) when using flex 2.5.31.  The fix is to *not* try to use palloc
and pfree for allocations within the lexer; when you do that, the
yy_buffer_stack gets freed at inopportune times.  The code is already
set up to do manual deallocation, so I see no particular advantage to
using palloc anyway.
contrib/tsearch/parser.l
contrib/tsearch2/wordparser/parser.l