15static inline void *realloc_it(
void *ptrmem,
size_t size) {
21 p = realloc(ptrmem, size);
29int dump(
const char *js,
jsmntok_t *t,
size_t count,
int indent);
41#define alloc_tree_node(args...) ovrld3(args, _alloc_tree_node_len, \
42 _alloc_tree_node_data, \
43 _alloc_tree_node_type)(args)
int get_node_string(_tree_node *node, char *buf, int bufsize)
Definition jstree.c:435
struct _t_treenode _tree_node
_tree_node * _alloc_tree_node_len(int type, const char *data, int datalen)
Definition jstree.c:209
int tree2json(_tree_node *tree, char *buf, int bufsize)
Definition jstree.c:620
_tree_node * _alloc_tree_node_data(int type, const char *data)
Definition jstree.c:190
_tree_node ** end_node(_tree_node **node)
Definition jstree.c:447
int jstree_string_decode(char *out, int outlen, char *data)
Definition jstree.c:64
_tree_node * find_node(_tree_node *tree, char *key)
Definition jstree.c:386
struct _t_treenode_data _treenode_data
int dump(const char *js, jsmntok_t *t, size_t count, int indent)
Definition jstree.c:292
_tree_node * next_node(_tree_node *node, int step)
Definition jstree.c:421
jstreeret js2tree(const char *js, jsmntok_t *t, size_t count)
Definition jstree.c:327
int dumptree(_tree_node *tree, int indent)
Definition jstree.c:227
int jstree_string_encode(char *out, int outlen, char *data)
Definition jstree.c:11
void freejstree(_tree_node *tree)
Definition jstree.c:658
_tree_node * _alloc_tree_node_type(int type)
Definition jstree.c:178
char * data
Definition jstree.h:5
int type
Definition jstree.h:4
struct _t_treenode * l
Definition jstree.h:10
struct _t_treenode * r
Definition jstree.h:11
_treenode_data data
Definition jstree.h:9
_tree_node * node
Definition jstree.h:33
int ret
Definition jstree.h:32
struct vc_attach_data data
Definition vcom_proto.h:3