Re: question on how to correctly communicate with external library functions which return malloc()'ed strings

From: Vladimir Volovich <vvv(at)vsu(dot)ru>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Martijn van Oosterhout <kleptog(at)svana(dot)org>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: question on how to correctly communicate with external library functions which return malloc()'ed strings
Date: 2008-04-11 19:59:42
Message-ID: 871w5c17td.fsf@external.prs-office.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

"TL" == Tom Lane writes:

TL> It's not wrong and it won't be removed. Please note the header
TL> comment in that file:

TL> * NOTE: this file should not be included into any non-snowball
TL> sources!

ok, i'll just include snowball/libstemmer/api.h or snowball/libstemmer/header.h instead.

in postgresql 8.2 there was no such "#define free" in snowball/header.h,
and a change in 8.3 introduced breakage; i should have looked in the new
snowball/header.h comment prior to complaining.

thanks.

Best,
v.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2008-04-11 20:07:35 Re: Snapshot memory management
Previous Message Tom Lane 2008-04-11 19:39:45 Re: question on how to correctly communicate with external library functions which return malloc()'ed strings