mirror of Dave's cJSON
git clone git://git.thc420.xyz/cJSON
Log | Files | Refs | README | LICENSE

commit 51d3df6c9f7b56b860c8fb24abe7bab255cd4fa9
parent cea3fe4165306c6758225ac3fca3d3dd89a21c98
Author: Max Bruckner <max@maxbruckner.de>
Date:   Tue, 18 Apr 2017 17:37:43 +0200

cJSON_GetObjectItemCaseSensitive: Fix inconsistent prototype

Thanks @PawelWMS

McJSON.h | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cJSON.h b/cJSON.h @@ -149,7 +149,7 @@ CJSON_PUBLIC(int) cJSON_GetArraySize(const cJSON *array); /* Retrieve item number "item" from array "array". Returns NULL if unsuccessful. */ CJSON_PUBLIC(cJSON *) cJSON_GetArrayItem(const cJSON *array, int item); /* Get item "string" from object. Case insensitive. */ -CJSON_PUBLIC(cJSON *) cJSON_GetObjectItem(const cJSON *object, const char *string); +CJSON_PUBLIC(cJSON *) cJSON_GetObjectItem(const cJSON * const object, const char * const string); CJSON_PUBLIC(cJSON *) cJSON_GetObjectItemCaseSensitive(const cJSON *object, const char *string); CJSON_PUBLIC(cJSON_bool) cJSON_HasObjectItem(const cJSON *object, const char *string); /* For analysing failed parses. This returns a pointer to the parse error. You'll probably need to look a few chars back to make sense of it. Defined when cJSON_Parse() returns 0. 0 when cJSON_Parse() succeeds. */