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

Function xo_default

tools/libxo/libxo/libxo.c:688–698  ·  view source on GitHub ↗

* Cheap convenience function to return either the argument, or * the internal handle, after it has been initialized. The usage * is: * xop = xo_default(xop); */

Source from the content-addressed store, hash-verified

686 * xop = xo_default(xop);
687 */
688static xo_handle_t *
689xo_default (xo_handle_t *xop)
690{
691 if (xop == NULL) {
692 if (xo_default_inited == 0)
693 xo_default_init();
694 xop = &xo_default_handle;
695 }
696
697 return xop;
698}
699
700/*
701 * Return the number of spaces we should be indenting. If

Callers 15

xo_indentFunction · 0.85
xo_warn_hcvFunction · 0.85
xo_message_hcvFunction · 0.85
xo_set_file_hFunction · 0.85
xo_destroyFunction · 0.85
xo_set_styleFunction · 0.85
xo_get_styleFunction · 0.85
xo_set_optionsFunction · 0.85
xo_set_flagsFunction · 0.85
xo_get_flagsFunction · 0.85
xo_set_leading_xpathFunction · 0.85
xo_set_infoFunction · 0.85

Calls 1

xo_default_initFunction · 0.85

Tested by

no test coverage detected