jsonapi: Use const char *

Peter Eisentraut <peter@eisentraut.org>

Commit: 15cd9a3881b030a1a4bddc809f038f86ec27e66d
Author: Peter Eisentraut <peter@eisentraut.org>
Date: 2024-06-21T05:53:30Z
Releases: 17.0
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

Files

PathChange+/−
src/backend/utils/adt/jsonfuncs.c modified +21 −18
src/common/jsonapi.c modified +13 −13
src/include/common/jsonapi.h modified +7 −7

Discussion