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

Function toks_reset

common/json_parse_simple.c:480–484  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

478-----------------------------------------------------------------------------*/
479
480void toks_reset(jsmntok_t *toks)
481{
482 assert(tal_count(toks) >= 1);
483 toks[0].type = JSMN_UNDEFINED;
484}
485
486jsmntok_t *toks_alloc(const tal_t *ctx)
487{

Callers 4

test_json_streamFunction · 0.85
toks_allocFunction · 0.85
jsonrpc_io_parse_doneFunction · 0.85
test_json_tok_sizeFunction · 0.85

Calls

no outgoing calls

Tested by 2

test_json_streamFunction · 0.68
test_json_tok_sizeFunction · 0.68