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

Поиск
Список
Период
Сортировка
От Chao Li
Тема Re: Mark function arguments of type "Datum *" as "const Datum *" where possible
Дата
Msg-id CAEoWx2m=N+P+ckkLFDBFpcrkZ_smGCS+hqbjpsLamu8ORQxdkw@mail.gmail.com
обсуждение исходный текст
Ответ на Mark function arguments of type "Datum *" as "const Datum *" where possible  (Chao Li <li.evan.chao@gmail.com>)
Ответы Re: Mark function arguments of type "Datum *" as "const Datum *" where possible
Re: Mark function arguments of type "Datum *" as "const Datum *" where possible
Список pgsql-hackers
Revision to v2.

Chao Li (Evan)
---------------------
HighGo Software Co., Ltd.
https://www.highgo.com/


On Fri, Sep 26, 2025 at 1:56 PM Chao Li <li.evan.chao@gmail.com> wrote:
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 по дате отправления: