|
Zen-C
|
#include <string.h>#include <stdio.h>#include <math.h>#include <stdlib.h>#include <limits.h>#include <ctype.h>#include <float.h>#include "cJSON.h"
Data Structures | |
| struct | error |
| struct | internal_hooks |
| struct | parse_buffer |
| struct | printbuffer |
Macros | |
| #define | true ((cJSON_bool)1) |
| #define | false ((cJSON_bool)0) |
| #define | isinf(d) (isnan((d - d)) && !isnan(d)) |
| #define | isnan(d) (d != d) |
| #define | NAN 0.0 / 0.0 |
| #define | internal_malloc malloc |
| #define | internal_free free |
| #define | internal_realloc realloc |
| #define | static_strlen(string_literal) (sizeof(string_literal) - sizeof("")) |
| #define | can_read(buffer, size) ((buffer != NULL) && (((buffer)->offset + size) <= (buffer)->length)) |
| #define | can_access_at_index(buffer, index) ((buffer != NULL) && (((buffer)->offset + index) < (buffer)->length)) |
| #define | cannot_access_at_index(buffer, index) (!can_access_at_index(buffer, index)) |
| #define | buffer_at_offset(buffer) ((buffer)->content + (buffer)->offset) |
| #define | cjson_min(a, b) (((a) < (b)) ? (a) : (b)) |
Typedefs | |
| typedef struct internal_hooks | internal_hooks |
Functions | |
| CJSON_PUBLIC (const char *) | |
| CJSON_PUBLIC (char *) | |
| CJSON_PUBLIC (double) | |
| CJSON_PUBLIC (void) | |
| cJSON_ParseWithOpts (const char *value, const char **return_parse_end, cJSON_bool require_null_terminated) | |
| cJSON_ParseWithLengthOpts (const char *value, size_t buffer_length, const char **return_parse_end, cJSON_bool require_null_terminated) | |
| CJSON_PUBLIC (cJSON *) | |
| cJSON_PrintPreallocated (cJSON *item, char *buffer, const int length, const cJSON_bool format) | |
| CJSON_PUBLIC (int) | |
| cJSON_GetObjectItemCaseSensitive (const cJSON *const object, const char *const string) | |
| cJSON_AddItemReferenceToObject (cJSON *object, const char *string, cJSON *item) | |
| cJSON_AddBoolToObject (cJSON *const object, const char *const name, const cJSON_bool boolean) | |
| cJSON_AddNumberToObject (cJSON *const object, const char *const name, const double number) | |
| cJSON_AddStringToObject (cJSON *const object, const char *const name, const char *const string) | |
| cJSON_AddRawToObject (cJSON *const object, const char *const name, const char *const raw) | |
| cJSON_ReplaceItemViaPointer (cJSON *const parent, cJSON *const item, cJSON *replacement) | |
| cJSON_ReplaceItemInObject (cJSON *object, const char *string, cJSON *newitem) | |
| cJSON_ReplaceItemInObjectCaseSensitive (cJSON *object, const char *string, cJSON *newitem) | |
| cJSON * | cJSON_Duplicate_rec (const cJSON *item, size_t depth, cJSON_bool recurse) |
| cJSON_Compare (const cJSON *const a, const cJSON *const b, const cJSON_bool case_sensitive) | |
| CJSON_PUBLIC (void *) | |
| #define buffer_at_offset | ( | buffer | ) | ((buffer)->content + (buffer)->offset) |
| #define can_access_at_index | ( | buffer, | |
| index | |||
| ) | ((buffer != NULL) && (((buffer)->offset + index) < (buffer)->length)) |
| #define can_read | ( | buffer, | |
| size | |||
| ) | ((buffer != NULL) && (((buffer)->offset + size) <= (buffer)->length)) |
| #define cannot_access_at_index | ( | buffer, | |
| index | |||
| ) | (!can_access_at_index(buffer, index)) |
| #define cjson_min | ( | a, | |
| b | |||
| ) | (((a) < (b)) ? (a) : (b)) |
| #define false ((cJSON_bool)0) |
| #define internal_free free |
| #define internal_malloc malloc |
| #define internal_realloc realloc |
| #define isnan | ( | d | ) | (d != d) |
| #define NAN 0.0 / 0.0 |
| #define static_strlen | ( | string_literal | ) | (sizeof(string_literal) - sizeof("")) |
| #define true ((cJSON_bool)1) |
| typedef struct internal_hooks internal_hooks |
| cJSON_AddBoolToObject | ( | cJSON *const | object, |
| const char *const | name, | ||
| const cJSON_bool | boolean | ||
| ) |
| cJSON_AddNumberToObject | ( | cJSON *const | object, |
| const char *const | name, | ||
| const double | number | ||
| ) |

| cJSON_AddRawToObject | ( | cJSON *const | object, |
| const char *const | name, | ||
| const char *const | raw | ||
| ) |
| cJSON_AddStringToObject | ( | cJSON *const | object, |
| const char *const | name, | ||
| const char *const | string | ||
| ) |

| cJSON_Compare | ( | const cJSON *const | a, |
| const cJSON *const | b, | ||
| const cJSON_bool | case_sensitive | ||
| ) |


| cJSON * cJSON_Duplicate_rec | ( | const cJSON * | item, |
| size_t | depth, | ||
| cJSON_bool | recurse | ||
| ) |


| cJSON_GetObjectItemCaseSensitive | ( | const cJSON *const | object, |
| const char *const | string | ||
| ) |
| cJSON_ParseWithLengthOpts | ( | const char * | value, |
| size_t | buffer_length, | ||
| const char ** | return_parse_end, | ||
| cJSON_bool | require_null_terminated | ||
| ) |

| cJSON_ParseWithOpts | ( | const char * | value, |
| const char ** | return_parse_end, | ||
| cJSON_bool | require_null_terminated | ||
| ) |


| cJSON_PrintPreallocated | ( | cJSON * | item, |
| char * | buffer, | ||
| const int | length, | ||
| const cJSON_bool | format | ||
| ) |
| CJSON_PUBLIC | ( | char * | ) |
| CJSON_PUBLIC | ( | cJSON * | ) |

| CJSON_PUBLIC | ( | const char * | ) |
| CJSON_PUBLIC | ( | double | ) |
| CJSON_PUBLIC | ( | int | ) |
| CJSON_PUBLIC | ( | void * | ) |

| CJSON_PUBLIC | ( | void | ) |
