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

Function toks_alloc

common/json_parse_simple.c:486–491  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

484}
485
486jsmntok_t *toks_alloc(const tal_t *ctx)
487{
488 jsmntok_t *toks = tal_arr(ctx, jsmntok_t, 10);
489 toks_reset(toks);
490 return toks;
491}
492
493bool json_parse_input(jsmn_parser *parser,
494 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