Go to the documentation of this file.
30 #if !defined(__WINDOWS__) && \
31 (defined(WIN32) || defined(WIN64) || defined(_MSC_VER) || defined(_WIN32))
55 #define CJSON_CDECL __cdecl
56 #define CJSON_STDCALL __stdcall
59 #if !defined(CJSON_HIDE_SYMBOLS) && !defined(CJSON_IMPORT_SYMBOLS) && \
60 !defined(CJSON_EXPORT_SYMBOLS)
61 #define CJSON_EXPORT_SYMBOLS
64 #if defined(CJSON_HIDE_SYMBOLS)
65 #define CJSON_PUBLIC(type) type CJSON_STDCALL
66 #elif defined(CJSON_EXPORT_SYMBOLS)
67 #define CJSON_PUBLIC(type) __declspec(dllexport) type CJSON_STDCALL
68 #elif defined(CJSON_IMPORT_SYMBOLS)
69 #define CJSON_PUBLIC(type) __declspec(dllimport) type CJSON_STDCALL
75 #if (defined(__GNUC__) || defined(__SUNPRO_CC) || defined(__SUNPRO_C)) && \
76 defined(CJSON_API_VISIBILITY)
77 #define CJSON_PUBLIC(type) __attribute__((visibility("default"))) type
79 #define CJSON_PUBLIC(type) type
84 #define CJSON_VERSION_MAJOR 1
85 #define CJSON_VERSION_MINOR 7
86 #define CJSON_VERSION_PATCH 17
91 #define cJSON_Invalid (0)
92 #define cJSON_False (1 << 0)
93 #define cJSON_True (1 << 1)
94 #define cJSON_NULL (1 << 2)
95 #define cJSON_Number (1 << 3)
96 #define cJSON_String (1 << 4)
97 #define cJSON_Array (1 << 5)
98 #define cJSON_Object (1 << 6)
99 #define cJSON_Raw (1 << 7)
101 #define cJSON_IsReference 256
102 #define cJSON_StringIsConst 512
136 #ifndef CJSON_NESTING_LIMIT
137 #define CJSON_NESTING_LIMIT 1000
158 const char **return_parse_end,
185 const char *
const string);
312 const char *
const string);
315 const char *
const raw);
322 #define cJSON_SetIntValue(object, number) \
323 ((object) ? (object)->valueint = (object)->valuedouble = (number) \
327 #define cJSON_SetNumberValue(object, number) \
328 ((object != NULL) ? cJSON_SetNumberHelper(object, (double)number) \
335 #define cJSON_SetBoolValue(object, boolValue) \
336 ((object != NULL && ((object)->type & (cJSON_False | cJSON_True))) \
337 ? (object)->type = ((object)->type & (~(cJSON_False | cJSON_True))) | \
338 ((boolValue) ? cJSON_True : cJSON_False) \
342 #define cJSON_ArrayForEach(element, array) \
343 for (element = (array != NULL) ? (array)->child : NULL; element != NULL; \
344 element = element->next)
GLuint const GLchar * name
cJSON_AddNumberToObject(cJSON *const object, const char *const name, const double number)
cJSON_ParseWithOpts(const char *value, const char **return_parse_end, cJSON_bool require_null_terminated)
cJSON_ReplaceItemInArray(cJSON *array, int which, cJSON *newitem)
GLenum GLuint GLenum GLsizei length
cJSON_ParseWithLengthOpts(const char *value, size_t buffer_length, const char **return_parse_end, cJSON_bool require_null_terminated)
GLsizei const GLchar *const * strings
cJSON_AddItemReferenceToArray(cJSON *array, cJSON *item)
cJSON_PrintPreallocated(cJSON *item, char *buffer, const int length, const cJSON_bool format)
cJSON_ReplaceItemInObjectCaseSensitive(cJSON *object, const char *string, cJSON *newitem)
cJSON_AddRawToObject(cJSON *const object, const char *const name, const char *const raw)
void(CJSON_CDECL *free_fn)(void *ptr)
GLboolean GLboolean GLboolean b
cJSON_AddItemToObject(cJSON *object, const char *string, cJSON *item)
cJSON_AddNullToObject(cJSON *const object, const char *const name)
void *CJSON_CDECL * malloc_fn(size_t sz)
cJSON_GetObjectItemCaseSensitive(const cJSON *const object, const char *const string)
cJSON_GetObjectItem(const cJSON *const object, const char *const string)
GLint GLint GLsizei GLint GLenum format
cJSON_Compare(const cJSON *const a, const cJSON *const b, const cJSON_bool case_sensitive)
GTEST_API_ const char * fmt
cJSON_ParseWithLength(const char *value, size_t buffer_length)
cJSON_DeleteItemFromObjectCaseSensitive(cJSON *object, const char *string)
cJSON_AddItemReferenceToObject(cJSON *object, const char *string, cJSON *item)
cJSON_SetValuestring(cJSON *object, const char *valuestring)
cJSON_DetachItemFromObject(cJSON *object, const char *string)
cJSON_HasObjectItem(const cJSON *object, const char *string)
cJSON_DetachItemFromObjectCaseSensitive(cJSON *object, const char *string)
struct cJSON_Hooks cJSON_Hooks
cJSON_AddStringToObject(cJSON *const object, const char *const name, const char *const string)
cJSON_AddObjectToObject(cJSON *const object, const char *const name)
cJSON_DetachItemViaPointer(cJSON *parent, cJSON *const item)
cJSON_AddItemToObjectCS(cJSON *object, const char *string, cJSON *item)
cJSON_AddArrayToObject(cJSON *const object, const char *const name)
cJSON_AddBoolToObject(cJSON *const object, const char *const name, const cJSON_bool boolean)
cJSON_AddFalseToObject(cJSON *const object, const char *const name)
cJSON_ReplaceItemInObject(cJSON *object, const char *string, cJSON *newitem)
cJSON_PrintBuffered(const cJSON *item, int prebuffer, cJSON_bool fmt)
GLsizei const GLfloat * value
#define CJSON_PUBLIC(type)
cJSON_InsertItemInArray(cJSON *array, int which, cJSON *newitem)
cJSON_AddTrueToObject(cJSON *const object, const char *const name)
cJSON_DeleteItemFromObject(cJSON *object, const char *string)
GLboolean GLboolean GLboolean GLboolean a
cJSON_ReplaceItemViaPointer(cJSON *const parent, cJSON *const item, cJSON *replacement)
cJSON_CreateDoubleArray(const double *numbers, int count)
PHP_PROTO_OBJECT_FREE_END PHP_PROTO_OBJECT_DTOR_END intern array
cJSON_CreateStringArray(const char *const *strings, int count)
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:48