Re: [HACKERS] Add some const decorations to prototypes

Поиск
Список
Период
Сортировка
Искать
От
Peter Eisentraut
Тема
Re: [HACKERS] Add some const decorations to prototypes
Дата
Msg-id
636e0869-7362-587e-0882-95085a7b1c52@2ndquadrant.com
Ответ на
Список
Дерево обсуждения
[HACKERS] Add some const decorations to prototypes Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] Add some const decorations to prototypes Mark Dilger <hornschnorter@gmail.com>
Re: [HACKERS] Add some const decorations to prototypes Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Add some const decorations to prototypes Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] Add some const decorations to prototypes Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Add some const decorations to prototypes Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] Add some const decorations to prototypes Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] Add some const decorations to prototypes Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] Add some const decorations to prototypes Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] Add some const decorations to prototypes Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Add some const decorations to prototypes Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] Add some const decorations to prototypes Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] Add some const decorations to prototypes Tom Lane <tgl@sss.pgh.pa.us>
Re: [HACKERS] Add some const decorations to prototypes Fabien COELHO <coelho@cri.ensmp.fr>
Re: [HACKERS] Add some const decorations to prototypes Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Re: [HACKERS] Add some const decorations to prototypes Robert Haas <robertmhaas@gmail.com>
On 11/3/17 13:54, Tom Lane wrote:
>> Would you prefer leaving the input argument as char *, or change the
>> endptr argument to const as well?
> 
> Just leave it as char*.  If you change the endptr argument you're going to
> force every call site to change their return variable, and some of them
> would end up having to cast away the const on their end.

OK, here is an updated patch with the controversial bits removed.

-- 
Peter Eisentraut              http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

-- 
Sent via pgsql-hackers mailing list (pgsql-hackers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-hackers
В списке pgsql-hackers по дате отправления
От: Fabien COELHO
Дата:
От: Tels
Дата:
FAQ