Mark function arguments of type "Datum *" as "const Datum *" where possible

Поиск
Список
Период
Сортировка
От Chao Li
Тема Mark function arguments of type "Datum *" as "const Datum *" where possible
Дата
Msg-id CAEoWx2msfT0knvzUa72ZBwu9LR_RLY4on85w2a9YpE-o2By5HQ@mail.gmail.com
обсуждение исходный текст
Ответы Re: Mark function arguments of type "Datum *" as "const Datum *" where possible
Список pgsql-hackers
Hi Hackers,

I noticed that many functions take "Datum *" parameters while they don't update the data. So I created this patch to change "Datum *" to "const Datum *" wherever possible, which should improve type safety and make the interfaces clearer about their intent, also helps the compiler catch accidental modifications. 

Best regards,
Chao Li
---------------------
HighGo Software Co., Ltd.
https://www.highgo.com/
Вложения

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