MCPcopy Create free account
hub / github.com/F-Stack/f-stack / xo_format_prep

Function xo_format_prep

tools/libxo/libxo/libxo.c:4258–4267  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4256}
4257
4258static void
4259xo_format_prep (xo_handle_t *xop, xo_xff_flags_t flags)
4260{
4261 if (xop->xo_stack[xop->xo_depth].xs_flags & XSF_NOT_FIRST) {
4262 xo_data_append(xop, ",", 1);
4263 if (!(flags & XFF_LEAF_LIST) && XOF_ISSET(xop, XOF_PRETTY))
4264 xo_data_append(xop, "\n", 1);
4265 } else
4266 xop->xo_stack[xop->xo_depth].xs_flags |= XSF_NOT_FIRST;
4267}
4268
4269#if 0
4270/* Useful debugging function */

Callers 1

xo_format_valueFunction · 0.85

Calls 1

xo_data_appendFunction · 0.85

Tested by

no test coverage detected