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

Function parse_fieldlist

common/json_parse.c:361–377  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359}
360
361static const char *parse_fieldlist(const char *buffer,
362 const jsmntok_t *tok,
363 const char **guide,
364 va_list *ap)
365{
366 for (;;) {
367 const char *errmsg;
368
369 errmsg = parse_field(buffer, tok, guide, ap);
370 if (errmsg)
371 return errmsg;
372 if (**guide != ',')
373 break;
374 guide_consume_one(guide);
375 }
376 return NULL;
377}
378
379static const char *parse_obj(const char *buffer,
380 const jsmntok_t *tok,

Callers 1

parse_objFunction · 0.85

Calls 2

guide_consume_oneFunction · 0.85
parse_fieldFunction · 0.70

Tested by

no test coverage detected