typedef FileName not const?

Поиск
Список
Период
Сортировка
От Mark Dilger
Тема typedef FileName not const?
Дата
Msg-id 89ED0398-D022-4DED-82EF-E0A9D4DA9B7E@gmail.com
обсуждение исходный текст
Ответы Re: typedef FileName not const?  (Andres Freund <andres@anarazel.de>)
Список pgsql-hackers
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
Дата:
Сообщение: casting away const in comparators
Следующее
От: Andres Freund
Дата:
Сообщение: Re: typedef FileName not const?