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

Function cson_array_append

cson/cson.c:529–539  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

527 return n;
528}
529int cson_array_append(cson_array *ar, cson_value *v)
530{
531 ar->value->modified = 1;
532 if (v->sub_type) {
533 cson__render(v);
534 }
535 jsonAppendSeparator(&ar->str);
536 jsonAppendValue(&ar->str, v);
537 cson_value_free(v);
538 return 0;
539}
540cson_value *cson_value_new_integer(cson_int_t v)
541{
542 cson_value *val = calloc(1, sizeof(cson_value));

Callers 15

test_aFunction · 0.85
test_cFunction · 0.85
test_dFunction · 0.85
test_fFunction · 0.85
test_gFunction · 0.85
test_hFunction · 0.85
test_nFunction · 0.85
test_oFunction · 0.85
test_pFunction · 0.85
eventlog_append_valueFunction · 0.85
eventlog_tablesFunction · 0.85
eventlog_contextFunction · 0.85

Calls 4

cson__renderFunction · 0.85
jsonAppendSeparatorFunction · 0.85
jsonAppendValueFunction · 0.85
cson_value_freeFunction · 0.85

Tested by 9

test_aFunction · 0.68
test_cFunction · 0.68
test_dFunction · 0.68
test_fFunction · 0.68
test_gFunction · 0.68
test_hFunction · 0.68
test_nFunction · 0.68
test_oFunction · 0.68
test_pFunction · 0.68