Linux Perf
jsmn.c File Reference
#include <stdlib.h>
#include "jsmn.h"
Include dependency graph for jsmn.c:

Go to the source code of this file.

Functions

static jsmntok_tjsmn_alloc_token (jsmn_parser *parser, jsmntok_t *tokens, size_t num_tokens)
 
static void jsmn_fill_token (jsmntok_t *token, jsmntype_t type, int start, int end)
 
static jsmnerr_t jsmn_parse_primitive (jsmn_parser *parser, const char *js, size_t len, jsmntok_t *tokens, size_t num_tokens)
 
static jsmnerr_t jsmn_parse_string (jsmn_parser *parser, const char *js, size_t len, jsmntok_t *tokens, size_t num_tokens)
 
jsmnerr_t jsmn_parse (jsmn_parser *parser, const char *js, size_t len, jsmntok_t *tokens, unsigned int num_tokens)
 
void jsmn_init (jsmn_parser *parser)
 
const char * jsmn_strerror (jsmnerr_t err)
 

Function Documentation

◆ jsmn_alloc_token()

static jsmntok_t* jsmn_alloc_token ( jsmn_parser parser,
jsmntok_t tokens,
size_t  num_tokens 
)
static

Definition at line 31 of file jsmn.c.

◆ jsmn_fill_token()

static void jsmn_fill_token ( jsmntok_t token,
jsmntype_t  type,
int  start,
int  end 
)
static

Definition at line 47 of file jsmn.c.

◆ jsmn_init()

void jsmn_init ( jsmn_parser parser)

Definition at line 292 of file jsmn.c.

◆ jsmn_parse()

jsmnerr_t jsmn_parse ( jsmn_parser parser,
const char *  js,
size_t  len,
jsmntok_t tokens,
unsigned int  num_tokens 
)

Definition at line 173 of file jsmn.c.

Here is the call graph for this function:

◆ jsmn_parse_primitive()

static jsmnerr_t jsmn_parse_primitive ( jsmn_parser parser,
const char *  js,
size_t  len,
jsmntok_t tokens,
size_t  num_tokens 
)
static

Definition at line 59 of file jsmn.c.

Here is the call graph for this function:

◆ jsmn_parse_string()

static jsmnerr_t jsmn_parse_string ( jsmn_parser parser,
const char *  js,
size_t  len,
jsmntok_t tokens,
size_t  num_tokens 
)
static

Definition at line 116 of file jsmn.c.

Here is the call graph for this function:

◆ jsmn_strerror()

const char* jsmn_strerror ( jsmnerr_t  err)

Definition at line 299 of file jsmn.c.