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:533–538 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
531
}
532
533
jsmntok_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
540
bool json_parse_input(jsmn_parser *parser,
541
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