Mark function arguments of type "Datum *" as "const Datum *" where possible - Mailing list pgsql-hackers

From Chao Li
Subject Mark function arguments of type "Datum *" as "const Datum *" where possible
Date
Msg-id CAEoWx2msfT0knvzUa72ZBwu9LR_RLY4on85w2a9YpE-o2By5HQ@mail.gmail.com
Whole thread Raw
Responses Re: Mark function arguments of type "Datum *" as "const Datum *" where possible
List 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/
Attachment

pgsql-hackers by date:

Previous
From: Michael Banck
Date:
Subject: Re: GNU/Hurd portability patches
Next
From: Richard Guo
Date:
Subject: Re: plan shape work