MCPcopy Create free account
hub / github.com/ElementsProject/lightning / toks_alloc

Function toks_alloc

common/json_parse_simple.c:533–538  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

531}
532
533jsmntok_t *toks_alloc(const tal_t *ctx)
534{
535 jsmntok_t *toks = tal_arr(ctx, jsmntok_t, 10);
536 toks_reset(toks);
537 return toks;
538}
539
540bool json_parse_input(jsmn_parser *parser,
541 jsmntok_t **toks,

Callers 8

test_json_filterFunction · 0.85
test_json_streamFunction · 0.85
json_parse_simpleFunction · 0.85
jsonrpc_io_newFunction · 0.85
mainFunction · 0.85
test_json_tok_sizeFunction · 0.85
jsonrpc_request_syncFunction · 0.85

Calls 1

toks_resetFunction · 0.85

Tested by 5

test_json_filterFunction · 0.68
test_json_streamFunction · 0.68
mainFunction · 0.68
test_json_tok_sizeFunction · 0.68
jsonrpc_request_syncFunction · 0.68