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

Function xo_default_init

tools/libxo/libxo/libxo.c:662–680  ·  view source on GitHub ↗

* Initialize the default handle. */

Source from the content-addressed store, hash-verified

660 * Initialize the default handle.
661 */
662static void
663xo_default_init (void)
664{
665 xo_handle_t *xop = &xo_default_handle;
666
667 xo_init_handle(xop);
668
669#if !defined(NO_LIBXO_OPTIONS)
670 if (!XOF_ISSET(xop, XOF_NO_ENV)) {
671 char *env = getenv("LIBXO_OPTIONS");
672
673 if (env)
674 xo_set_options_simple(xop, env);
675
676 }
677#endif /* NO_LIBXO_OPTIONS */
678
679 xo_default_inited = 1;
680}
681
682/*
683 * Cheap convenience function to return either the argument, or

Callers 1

xo_defaultFunction · 0.85

Calls 2

xo_init_handleFunction · 0.85
xo_set_options_simpleFunction · 0.85

Tested by

no test coverage detected