#include "jsmn.h"
#include <stdbool.h>
Go to the source code of this file.
|
#define | pr_fmt(fmt) fmt |
|
#define | pr_err(fmt, ...) eprintf(0, verbose, pr_fmt(fmt), ##__VA_ARGS__) |
|
#define | pr_info(fmt, ...) eprintf(1, verbose, pr_fmt(fmt), ##__VA_ARGS__) |
|
#define | pr_debug(fmt, ...) eprintf(2, verbose, pr_fmt(fmt), ##__VA_ARGS__) |
|
#define | roundup(x, y) |
|
|
jsmntok_t * | parse_json (const char *fn, char **map, size_t *size, int *len) |
|
void | free_json (char *map, size_t size, jsmntok_t *tokens) |
|
int | json_line (char *map, jsmntok_t *t) |
|
const char * | json_name (jsmntok_t *t) |
|
int | json_streq (char *map, jsmntok_t *t, const char *s) |
|
int | json_len (jsmntok_t *t) |
|
int | eprintf (int level, int var, const char *fmt,...) |
|
◆ pr_debug
◆ pr_err
◆ pr_fmt
◆ pr_info
◆ roundup
Value:( \
{ \
const typeof(y) __y = y; \
(((x) + (__y - 1)) / __y) * __y; \
} \
)
Definition at line 31 of file json.h.
◆ eprintf()
int eprintf |
( |
int |
level, |
|
|
int |
var, |
|
|
const char * |
fmt, |
|
|
|
... |
|
) |
| |
◆ free_json()
void free_json |
( |
char * |
map, |
|
|
size_t |
size, |
|
|
jsmntok_t * |
tokens |
|
) |
| |
◆ json_len()
◆ json_line()
◆ json_name()
◆ json_streq()
int json_streq |
( |
char * |
map, |
|
|
jsmntok_t * |
t, |
|
|
const char * |
s |
|
) |
| |
◆ parse_json()
jsmntok_t* parse_json |
( |
const char * |
fn, |
|
|
char ** |
map, |
|
|
size_t * |
size, |
|
|
int * |
len |
|
) |
| |
◆ verbose