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

From Vladimir Volovich
Subject Re: question on how to correctly communicate with external library functions which return malloc()'ed strings
Date
Msg-id 871w5c17td.fsf@external.prs-office.com
Whole thread Raw
In response to Re: question on how to correctly communicate with external library functions which return malloc()'ed strings  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
"TL" == Tom Lane writes:
TL> It's not wrong and it won't be removed.  Please note the headerTL> comment in that file:
TL>  * NOTE: this file should not be included into any non-snowballTL> 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.



pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: question on how to correctly communicate with external library functions which return malloc()'ed strings
Next
From: Alvaro Herrera
Date:
Subject: Re: Snapshot memory management