File cJSON.h

FileList > engine > include > cJSON.h

Go to the source code of this file

  • #include <stddef.h>

Classes

Type Name
struct cJSON
struct cJSON_Hooks

Public Types

Type Name
typedef struct cJSON cJSON
typedef struct cJSON_Hooks cJSON_Hooks
typedef int cJSON_bool

Public Attributes

Type Name
const cJSON *const b
const char *const const cJSON_bool boolean
char * buffer
size_t buffer_length
const cJSON *const const cJSON_bool case_sensitive
int count
int cJSON_bool fmt
char const int const cJSON_bool format
int index
cJSON * item
char const int length
const char *const name
int cJSON * newitem
const char *const const double number
int prebuffer
const char *const const char *const raw
cJSON_bool recurse
cJSON *const cJSON * replacement
const char cJSON_bool require_null_terminated
const char ** return_parse_end
const char *const string
const char * valuestring
int which

Public Functions

Type Name
CJSON_PUBLIC (const char *)
CJSON_PUBLIC (void)
CJSON_PUBLIC (cJSON *) const
CJSON_PUBLIC (char *) const
CJSON_PUBLIC (cJSON_bool)
CJSON_PUBLIC (double) const
CJSON_PUBLIC (void *)

Macros

Type Name
define CJSON_CDECL
define CJSON_CIRCULAR_LIMIT 10000
define CJSON_NESTING_LIMIT 1000
define CJSON_PUBLIC (type) type
define CJSON_STDCALL
define CJSON_VERSION_MAJOR 1
define CJSON_VERSION_MINOR 7
define CJSON_VERSION_PATCH 18
define cJSON_Array (1 &lt;&lt; 5)
define cJSON_ArrayForEach (element, array) for(element = (array != NULL) ? (array)-&gt;child : NULL; element != NULL; element = element-&gt;next)
define cJSON_False (1 &lt;&lt; 0)
define cJSON_Invalid (0)
define cJSON_IsReference 256
define cJSON_NULL (1 &lt;&lt; 2)
define cJSON_Number (1 &lt;&lt; 3)
define cJSON_Object (1 &lt;&lt; 6)
define cJSON_Raw (1 &lt;&lt; 7) /\* raw json \*/
define cJSON_SetBoolValue (object, boolValue) /* multi line expression */
define cJSON_SetIntValue (object, number) ((object) ? (object)-&gt;valueint = (object)-&gt;valuedouble = (number) : (number))
define cJSON_SetNumberValue (object, number) ((object != NULL) ? cJSON\_SetNumberHelper(object, (double)number) : (number))
define cJSON_String (1 &lt;&lt; 4)
define cJSON_StringIsConst 512
define cJSON_True (1 &lt;&lt; 1)

Public Types Documentation

typedef cJSON

typedef struct cJSON cJSON;

typedef cJSON_Hooks

typedef struct cJSON_Hooks cJSON_Hooks;

typedef cJSON_bool

typedef int cJSON_bool;

Public Attributes Documentation

variable b

const cJSON* const b;

variable boolean

const char* const const cJSON_bool boolean;

variable buffer

char* buffer;

variable buffer_length

size_t buffer_length;

variable case_sensitive

const cJSON* const const cJSON_bool case_sensitive;

variable count

int count;

variable fmt

int cJSON_bool fmt;

variable format

char const int const cJSON_bool format;

variable index

int index;

variable item

cJSON *const item;

variable length

char const int length;

variable name

const char *const name;

variable newitem

const char cJSON * newitem;

variable number

double number;

variable prebuffer

int prebuffer;

variable raw

const char* const const char* const raw;

variable recurse

cJSON_bool recurse;

variable replacement

cJSON* const cJSON* replacement;

variable require_null_terminated

size_t const char cJSON_bool require_null_terminated;

variable return_parse_end

size_t const char ** return_parse_end;

variable string

const char *const const char *const string;

variable valuestring

const char* valuestring;

variable which

int which;

Public Functions Documentation

function CJSON_PUBLIC

CJSON_PUBLIC (
    const char *
) 

function CJSON_PUBLIC

CJSON_PUBLIC (
    void
) 

function CJSON_PUBLIC

CJSON_PUBLIC (
    cJSON *
) const

function CJSON_PUBLIC

CJSON_PUBLIC (
    char *
) const

function CJSON_PUBLIC

CJSON_PUBLIC (
    cJSON_bool
) 

function CJSON_PUBLIC

CJSON_PUBLIC (
    double
) const

function CJSON_PUBLIC

CJSON_PUBLIC (
    void *
) 

Macro Definition Documentation

define CJSON_CDECL

#define CJSON_CDECL 

define CJSON_CIRCULAR_LIMIT

#define CJSON_CIRCULAR_LIMIT `10000`

define CJSON_NESTING_LIMIT

#define CJSON_NESTING_LIMIT `1000`

define CJSON_PUBLIC

#define CJSON_PUBLIC (
    type
) `type`

define CJSON_STDCALL

#define CJSON_STDCALL 

define CJSON_VERSION_MAJOR

#define CJSON_VERSION_MAJOR `1`

define CJSON_VERSION_MINOR

#define CJSON_VERSION_MINOR `7`

define CJSON_VERSION_PATCH

#define CJSON_VERSION_PATCH `18`

define cJSON_Array

#define cJSON_Array `(1 << 5)`

define cJSON_ArrayForEach

#define cJSON_ArrayForEach (
    element,
    array
) `for(element = (array != NULL) ? (array)->child : NULL; element != NULL; element = element->next)`

define cJSON_False

#define cJSON_False `(1 << 0)`

define cJSON_Invalid

#define cJSON_Invalid `(0)`

define cJSON_IsReference

#define cJSON_IsReference `256`

define cJSON_NULL

#define cJSON_NULL `(1 << 2)`

define cJSON_Number

#define cJSON_Number `(1 << 3)`

define cJSON_Object

#define cJSON_Object `(1 << 6)`

define cJSON_Raw

#define cJSON_Raw `(1 << 7) /* raw json */`

define cJSON_SetBoolValue

#define cJSON_SetBoolValue (
    object,
    boolValue
) `/* multi line expression */`

define cJSON_SetIntValue

#define cJSON_SetIntValue (
    object,
    number
) `((object) ? (object)->valueint = (object)->valuedouble = (number) : (number))`

define cJSON_SetNumberValue

#define cJSON_SetNumberValue (
    object,
    number
) `((object != NULL) ? cJSON_SetNumberHelper(object, (double)number) : (number))`

define cJSON_String

#define cJSON_String `(1 << 4)`

define cJSON_StringIsConst

#define cJSON_StringIsConst `512`

define cJSON_True

#define cJSON_True `(1 << 1)`


The documentation for this class was generated from the following file /home/runner/work/2DFarmingRPG/2DFarmingRPG/Stardew/engine/include/cJSON.h