jsonapi: Use const char *
authorPeter Eisentraut <peter@eisentraut.org>
Fri, 21 Jun 2024 05:50:02 +0000 (07:50 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Fri, 21 Jun 2024 05:53:30 +0000 (07:53 +0200)
commit15cd9a3881b030a1a4bddc809f038f86ec27e66d
treee10c45f64fcdc6ce49c92150bf854f9089cec98e
parent0b06bf9fa972e2964401622f1bb4c611dbe92bd5
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
src/backend/utils/adt/jsonfuncs.c
src/common/jsonapi.c
src/include/common/jsonapi.h