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

Function xo_set_formatter

tools/libxo/libxo/libxo.c:2543–2551  ·  view source on GitHub ↗

* Set the formatter callback for a handle. The callback should * return a newly formatting contents of a formatting instruction, * meaning the bits inside the braces. */

Source from the content-addressed store, hash-verified

2541 * meaning the bits inside the braces.
2542 */
2543void
2544xo_set_formatter (xo_handle_t *xop, xo_formatter_t func,
2545 xo_checkpointer_t cfunc)
2546{
2547 xop = xo_default(xop);
2548
2549 xop->xo_formatter = func;
2550 xop->xo_checkpointer = cfunc;
2551}
2552
2553/**
2554 * Clear one or more flags for a given handle (or default if handle is NULL).

Callers 1

mainFunction · 0.85

Calls 1

xo_defaultFunction · 0.85

Tested by

no test coverage detected