RetroArch
Classes | Macros | Functions
jsonsax.c File Reference
#include <setjmp.h>
#include <string.h>
#include <ctype.h>
#include <retro_inline.h>
#include <formats/jsonsax.h>
Include dependency graph for jsonsax.c:

Classes

struct  state_t
 

Macros

#define HANDLE_0(event)
 
#define HANDLE_1(event, arg1)
 
#define HANDLE_2(event, arg1, arg2)
 

Functions

static INLINE void skip_spaces (state_t *state)
 
static INLINE void skip_digits (state_t *state)
 
static void jsonx_parse_value (state_t *state)
 
static void jsonx_parse_object (state_t *state)
 
static void jsonx_parse_array (state_t *state)
 
static void jsonx_parse_string (state_t *state)
 
static void jsonx_parse_boolean (state_t *state)
 
static void jsonx_parse_null (state_t *state)
 
static void jsonx_parse_number (state_t *state)
 
int jsonsax_parse (const char *json, const jsonsax_handlers_t *handlers, void *userdata)
 

Macro Definition Documentation

◆ HANDLE_0

#define HANDLE_0 (   event)
Value:
do { \
if ( state->handlers->event && state->handlers->event( state->ud ) ) \
longjmp( state->env, JSONSAX_INTERRUPTED ); \
} while ( 0 )
static uint64_t state[MAX_PADS]
Definition: xenon360_input.c:33
Definition: jsonsax.h:36

◆ HANDLE_1

#define HANDLE_1 (   event,
  arg1 
)
Value:
do { \
if ( state->handlers->event && state->handlers->event( state->ud, arg1 ) ) \
longjmp( state->env, JSONSAX_INTERRUPTED ); \
} while ( 0 )
GLuint GLuint GLuint GLuint arg1
Definition: glext.h:10420
static uint64_t state[MAX_PADS]
Definition: xenon360_input.c:33
Definition: jsonsax.h:36

◆ HANDLE_2

#define HANDLE_2 (   event,
  arg1,
  arg2 
)
Value:
do { \
if ( state->handlers->event && state->handlers->event( state->ud, arg1, arg2 ) ) \
longjmp( state->env, JSONSAX_INTERRUPTED ); \
} while ( 0 )
GLuint GLuint GLuint GLuint GLuint GLuint GLuint arg2
Definition: glext.h:10421
GLuint GLuint GLuint GLuint arg1
Definition: glext.h:10420
static uint64_t state[MAX_PADS]
Definition: xenon360_input.c:33
Definition: jsonsax.h:36

Function Documentation

◆ jsonsax_parse()

int jsonsax_parse ( const char *  json,
const jsonsax_handlers_t handlers,
void userdata 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ jsonx_parse_array()

static void jsonx_parse_array ( state_t state)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ jsonx_parse_boolean()

static void jsonx_parse_boolean ( state_t state)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ jsonx_parse_null()

static void jsonx_parse_null ( state_t state)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ jsonx_parse_number()

static void jsonx_parse_number ( state_t state)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ jsonx_parse_object()

static void jsonx_parse_object ( state_t state)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ jsonx_parse_string()

static void jsonx_parse_string ( state_t state)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ jsonx_parse_value()

static void jsonx_parse_value ( state_t state)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ skip_digits()

static INLINE void skip_digits ( state_t state)
static
Here is the caller graph for this function:

◆ skip_spaces()

static INLINE void skip_spaces ( state_t state)
static
Here is the caller graph for this function: