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:443–448 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
441
}
442
443
jsmntok_t *toks_alloc(const tal_t *ctx)
444
{
445
jsmntok_t *toks = tal_arr(ctx, jsmntok_t, 10);
446
toks_reset(toks);
447
return toks;
448
}
449
450
bool json_parse_input(jsmn_parser *parser,
451
jsmntok_t **toks,
Callers
6
json_parse_simple
Function · 0.70
plugin_send_getmanifest
Function · 0.50
jcon_connected
Function · 0.50
test_json_filter
Function · 0.50
test_json_stream
Function · 0.50
test_json_tok_size
Function · 0.50
Calls
1
toks_reset
Function · 0.70
Tested by
3
test_json_filter
Function · 0.40
test_json_stream
Function · 0.40
test_json_tok_size
Function · 0.40