Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
486
jsmntok_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
493
bool json_parse_input(jsmn_parser *parser,
494
jsmntok_t **toks,
Callers
8
plugin_terminated_fail_req
Function · 0.85
test_json_filter
Function · 0.85
test_json_stream
Function · 0.85
json_parse_simple
Function · 0.85
jsonrpc_io_new
Function · 0.85
main
Function · 0.85
test_json_tok_size
Function · 0.85
jsonrpc_request_sync
Function · 0.85
Calls
1
toks_reset
Function · 0.85
Tested by
5
test_json_filter
Function · 0.68
test_json_stream
Function · 0.68
main
Function · 0.68
test_json_tok_size
Function · 0.68
jsonrpc_request_sync
Function · 0.68