]> granicus.if.org Git - json-c/commit
Really use prefix JSON_C_OBJECT_ADD_*
authorJosé Bollo <jose.bollo@iot.bzh>
Tue, 12 Oct 2021 12:42:12 +0000 (14:42 +0200)
committerJosé Bollo <jose.bollo@iot.bzh>
Tue, 19 Oct 2021 09:18:17 +0000 (11:18 +0200)
commit8bf3b45a290ae78dd1db667cbae92e11961bfda3
tree4d8cc46094cef3a9ee1457f8e3beb2eecc3ebd44
parent382f9462c21a5ab7cf414b756fa28804dacd57ad
Really use prefix JSON_C_OBJECT_ADD_*

This change introduces JSON_C_OBJECT_ADD_CONSTANT_KEY
as a replacement of JSON_C_OBJECT_KEY_IS_CONSTANT.

The description of json_object_object_add_ex tells to
look at the flags JSON_C_OBJECT_ADD_* but it is not
for JSON_C_OBJECT_KEY_IS_CONSTANT.

From the point of vue of a developper using json-c,
the function json_object_object_add_ex is mainly used,
not the hash facility, it seems more natural to provide
a regular naming of prefix JSON_C_OBJECT_ADD_CONSTANT_KEY.
ChangeLog
json_object.c
json_object.h
linkhash.c
linkhash.h