[HACKERS] Add some const decorations to prototypes

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема [HACKERS] Add some const decorations to prototypes
Дата
Msg-id c960b55d-f844-3688-0929-c2a79509e14a@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  (Mark Dilger <hornschnorter@gmail.com>)
Список pgsql-hackers
Here is a patch that adds const decorations to many char * arguments in
functions.  It should have no impact otherwise; there are very few code
changes caused by it.  Some functions have a strtol()-like behavior
where they take in a const char * and return a pointer into that as
another argument.  In those cases, I added a cast or two.

Generally, I find these const decorations useful as easy function
documentation.

-- 
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 по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Query regarding permission on table_column%type access
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [HACKERS] Add some const decorations to prototypes