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

Function toks_reset

common/json_parse_simple.c:437–441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

435-----------------------------------------------------------------------------*/
436
437void toks_reset(jsmntok_t *toks)
438{
439 assert(tal_count(toks) >= 1);
440 toks[0].type = JSMN_UNDEFINED;
441}
442
443jsmntok_t *toks_alloc(const tal_t *ctx)
444{

Callers 5

toks_allocFunction · 0.70
plugin_read_json_oneFunction · 0.50
read_jsonFunction · 0.50
test_json_streamFunction · 0.50
test_json_tok_sizeFunction · 0.50

Calls

no outgoing calls

Tested by 2

test_json_streamFunction · 0.40
test_json_tok_sizeFunction · 0.40