typedef FileName not const?

Поиск
Список
Период
Сортировка
Искать
От
Mark Dilger
Тема
typedef FileName not const?
Дата
Msg-id
89ED0398-D022-4DED-82EF-E0A9D4DA9B7E@gmail.com
Список
Дерево обсуждения
typedef FileName not const? Mark Dilger <hornschnorter@gmail.com>
Re: typedef FileName not const? Andres Freund <andres@anarazel.de>
Re: typedef FileName not const? Mark Dilger <hornschnorter@gmail.com>
Friends,

along the lines of other similar emails from me of late,
I tried to avoid casting away const when using the FileName
typedef.  There are several calls where a (const char *) has to
be cast to (char *) due to FileName being typedef'd as
non-const.  But changing the typedef to const doesn't seem to
conflict with any code in the source tree.

Since this may be seen as an external API change, I kept
these changes in their own patch submission, so that it can
be rejected separately if need be.

Mark Dilger

В списке pgsql-hackers по дате отправления
От: Mark Dilger
Дата:
От: Andres Freund
Дата:
FAQ