提交 3c1bfe12 编写于 作者: M Max Bruckner

Clarify deprecation of valueint

上级 5916f706
...@@ -207,7 +207,7 @@ typedef struct cJSON { ...@@ -207,7 +207,7 @@ typedef struct cJSON {
int type; int type;
char *valuestring; char *valuestring;
int valueint; /* DEPRECATED, please use valudouble instead */ int valueint; /* writing to valueint is DEPRECATED, please use cJSON_SetNumberValue instead */
double valuedouble; double valuedouble;
char *string; char *string;
......
...@@ -63,7 +63,7 @@ typedef struct cJSON ...@@ -63,7 +63,7 @@ typedef struct cJSON
/* The item's string, if type==cJSON_String and type == cJSON_Raw */ /* The item's string, if type==cJSON_String and type == cJSON_Raw */
char *valuestring; char *valuestring;
/* DEPRECATED, use valuedouble instead */ /* writing to valueint is DEPRECATED, use cJSON_SetNumberValue instead */
int valueint; int valueint;
/* The item's number, if type==cJSON_Number */ /* The item's number, if type==cJSON_Number */
double valuedouble; double valuedouble;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册