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

Поиск
Список
Период
Сортировка
От Vladimir Volovich
Тема Re: question on how to correctly communicate with external library functions which return malloc()'ed strings
Дата
Msg-id 871w5c17td.fsf@external.prs-office.com
обсуждение исходный текст
Ответ на Re: question on how to correctly communicate with external library functions which return malloc()'ed strings  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: question on how to correctly communicate with external library functions which return malloc()'ed strings
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: Snapshot memory management