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

Function cson_parse_string

cson/cson.c:724–733  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

722 cson_value_free(v);
723}
724int cson_parse_string(cson_value **out, char const *src, unsigned int len)
725{
726 cson_value *val = calloc(1, sizeof(cson_value));
727 if (cson__parse(val, src, len)) {
728 *out = val;
729 return 0;
730 }
731 free(val);
732 return -1;
733}
734int cson_object_iter_init(cson_object *obj, cson_object_iterator *iter)
735{
736 iter->kv = calloc(1, sizeof(cson_kvp));

Callers 15

getMethod · 0.85
bdb_set_table_parameterFunction · 0.85
test_gFunction · 0.85
test_hFunction · 0.85
test_iFunction · 0.85
test_jFunction · 0.85
test_lFunction · 0.85
test_mFunction · 0.85
cson__result_textFunction · 0.85
timepart_deserializeFunction · 0.85

Calls 3

callocFunction · 0.85
cson__parseFunction · 0.85
freeFunction · 0.85

Tested by 6

test_gFunction · 0.68
test_hFunction · 0.68
test_iFunction · 0.68
test_jFunction · 0.68
test_lFunction · 0.68
test_mFunction · 0.68