31 #if !defined(__WINDOWS__) && (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) && !defined(CJSON_EXPORT_SYMBOLS) 60 #define CJSON_EXPORT_SYMBOLS 63 #if defined(CJSON_HIDE_SYMBOLS) 64 #define CJSON_PUBLIC(type) type CJSON_STDCALL 65 #elif defined(CJSON_EXPORT_SYMBOLS) 66 #define CJSON_PUBLIC(type) __declspec(dllexport) type CJSON_STDCALL 67 #elif defined(CJSON_IMPORT_SYMBOLS) 68 #define CJSON_PUBLIC(type) __declspec(dllimport) type CJSON_STDCALL 74 #if (defined(__GNUC__) || defined(__SUNPRO_CC) || defined (__SUNPRO_C)) && defined(CJSON_API_VISIBILITY) 75 #define CJSON_PUBLIC(type) __attribute__((visibility("default"))) type 77 #define CJSON_PUBLIC(type) type 82 #define CJSON_VERSION_MAJOR 1 83 #define CJSON_VERSION_MINOR 7 84 #define CJSON_VERSION_PATCH 14 89 #define cJSON_Invalid (0) 90 #define cJSON_False (1 << 0) 91 #define cJSON_True (1 << 1) 92 #define cJSON_NULL (1 << 2) 93 #define cJSON_Number (1 << 3) 94 #define cJSON_String (1 << 4) 95 #define cJSON_Array (1 << 5) 96 #define cJSON_Object (1 << 6) 97 #define cJSON_Raw (1 << 7) 99 #define cJSON_IsReference 256 100 #define cJSON_StringIsConst 512 136 #ifndef CJSON_NESTING_LIMIT 137 #define CJSON_NESTING_LIMIT 1000 173 CJSON_PUBLIC(
cJSON *) cJSON_GetObjectItemCaseSensitive(
const cJSON *
const object,
const char *
const string);
174 CJSON_PUBLIC(cJSON_bool) cJSON_HasObjectItem(
const cJSON *
object,
const char *
string);
238 CJSON_PUBLIC(
void) cJSON_DeleteItemFromObject(
cJSON *
object,
const char *
string);
239 CJSON_PUBLIC(
void) cJSON_DeleteItemFromObjectCaseSensitive(
cJSON *
object,
const char *
string);
275 #define cJSON_SetIntValue(object, number) ((object) ? (object)->valueint = (object)->valuedouble = (number) : (number)) 278 #define cJSON_SetNumberValue(object, number) ((object != NULL) ? cJSON_SetNumberHelper(object, (double)number) : (number)) 283 #define cJSON_ArrayForEach(element, array) for(element = (array != NULL) ? (array)->child : NULL; element != NULL; element = element->next)
cJSON *const cJSON * replacement
const char *const const double number
struct cJSON_Hooks cJSON_Hooks
const char ** return_parse_end
const char cJSON_bool require_null_terminated
#define CJSON_PUBLIC(type)
const cJSON *const const cJSON_bool case_sensitive
char const int const cJSON_bool format
const char *const const char *const raw