Add some const decorations to prototypes

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Add some const decorations to prototypes
Date: 2017-10-31 14:46:49
Message-ID: c960b55d-f844-3688-0929-c2a79509e14a@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Here is a patch that adds const decorations to many char * arguments in
functions. It should have no impact otherwise; there are very few code
changes caused by it. Some functions have a strtol()-like behavior
where they take in a const char * and return a pointer into that as
another argument. In those cases, I added a cast or two.

Generally, I find these const decorations useful as easy function
documentation.

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachment Content-Type Size
0001-Add-some-const-decorations-to-prototypes.patch text/plain 100.2 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Tom Lane 2017-10-31 14:56:07 Re: Add some const decorations to prototypes
Previous Message Tom Lane 2017-10-31 14:15:55 Re: Query regarding permission on table_column%type access