MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / cson__render

Function cson__render

cson/cson.c:387–396  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

385 }
386}
387static void cson__render(cson_value *val)
388{
389 if (!val->modified) return;
390 cson__output(val);
391 JsonString tmp = val->output;
392 if (tmp.bStatic) tmp.zBuf = tmp.zSpace;
393 jsonInit(&val->output, NULL);
394 cson__parse(val, tmp.zBuf, tmp.nUsed);
395 jsonReset(&tmp);
396}
397static int cson__set(cson_value *val, char *path, cson_value *v)
398{
399 JsonParse *parse = &val->parse;

Callers 7

cson__setFunction · 0.85
cson_object_getFunction · 0.85
cson_array_setFunction · 0.85
cson_array_getFunction · 0.85
cson_array_length_getFunction · 0.85
cson_array_appendFunction · 0.85
cson_object_iter_initFunction · 0.85

Calls 4

cson__outputFunction · 0.85
jsonInitFunction · 0.85
cson__parseFunction · 0.85
jsonResetFunction · 0.85

Tested by

no test coverage detected