Re: [COMMITTERS] pgsql: Add pg_strnlen() a portable implementation of strlen.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [COMMITTERS] pgsql: Add pg_strnlen() a portable implementation of strlen.
Дата
Msg-id 31930.1507673415@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [COMMITTERS] pgsql: Add pg_strnlen() a portable implementationof strlen.  (Andres Freund <andres@anarazel.de>)
Ответы Re: [COMMITTERS] pgsql: Add pg_strnlen() a portable implementationof strlen.
Список pgsql-committers
Andres Freund <andres@anarazel.de> writes:
> Here's a fix. Not quite sure whether we really need the
> HAVE_DECL_STRNLEN test, added it for symmetry.

LGTM.  I think the DECL test is a good idea; the system definition
might be a macro or otherwise weird, in which case we'd cause problems
if we write an extern definition anyway.
        regards, tom lane


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers

В списке pgsql-committers по дате отправления:

Предыдущее
От: Andres Freund
Дата:
Сообщение: Re: [COMMITTERS] pgsql: Add pg_strnlen() a portable implementationof strlen.
Следующее
От: Andres Freund
Дата:
Сообщение: [COMMITTERS] pgsql: Rewrite strnlen replacement implementation from 8a241792f96.