pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: jsonapi: Use const char *
Date: Fri, 21 Jun 2024 05:58:12 +0000
Message-ID: <E1sKXHo-002Nsi-2K@gemulon.postgresql.org> (raw)

jsonapi: Use const char *

Apply const qualifiers to char * arguments and fields throughout the
jsonapi.  This allows the top-level APIs such as
pg_parse_json_incremental() to declare their input argument as const.
It also reduces the number of unconstify() calls.

Reviewed-by: Andrew Dunstan <andrew@dunslane.net>
Discussion: https://www.postgresql.org/message-id/flat/f732b014-f614-4600-a437-dba5a2c3738b%40eisentraut.org

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/15cd9a3881b030a1a4bddc809f038f86ec27e66d

Modified Files
--------------
src/backend/utils/adt/jsonfuncs.c | 39 +++++++++++++++++++++------------------
src/common/jsonapi.c              | 26 +++++++++++++-------------
src/include/common/jsonapi.h      | 14 +++++++-------
3 files changed, 41 insertions(+), 38 deletions(-)



Message-ID: <E1sKXHo-002Nsi-2K@gemulon.postgresql.org>
Permalink:  ../E1sKXHo-002Nsi-2K@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1sKXHo-002Nsi-2K@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: peter@eisentraut.org, pgsql-committers@lists.postgresql.org
  Subject: Re: pgsql: jsonapi: Use const char *
  In-Reply-To: <E1sKXHo-002Nsi-2K@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox