cJSON

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

commit 3c1bfe125cb5def3caf2fd0820b76fc2f39776d9
parent 5916f7064093938ca6b8e989c207ce8d976163f1
Author: Max Bruckner <max@maxbruckner.de>
Date:   Sun,  2 Apr 2017 23:24:53 +0200

Clarify deprecation of valueint

Diffstat:
MREADME.md | 2+-
McJSON.h | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md @@ -207,7 +207,7 @@ typedef struct cJSON { int type; char *valuestring; - int valueint; /* DEPRECATED, please use valudouble instead */ + int valueint; /* writing to valueint is DEPRECATED, please use cJSON_SetNumberValue instead */ double valuedouble; char *string; diff --git a/cJSON.h b/cJSON.h @@ -63,7 +63,7 @@ typedef struct cJSON /* The item's string, if type==cJSON_String and type == cJSON_Raw */ char *valuestring; - /* DEPRECATED, use valuedouble instead */ + /* writing to valueint is DEPRECATED, use cJSON_SetNumberValue instead */ int valueint; /* The item's number, if type==cJSON_Number */ double valuedouble;