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

Function xo_style

tools/libxo/libxo/libxo.c:433–441  ·  view source on GitHub ↗

* xo_style is used to retrieve the current style. When we're built * for "text only" mode, we use this function to drive the removal * of most of the code in libxo. We return a constant and the compiler * happily removes the non-text code that is not longer executed. This * trims our code nicely without needing to trampel perfectly readable * code with ifdefs. */

Source from the content-addressed store, hash-verified

431 * code with ifdefs.
432 */
433static inline xo_style_t
434xo_style (xo_handle_t *xop UNUSED)
435{
436#ifdef LIBXO_TEXT_ONLY
437 return XO_STYLE_TEXT;
438#else /* LIBXO_TEXT_ONLY */
439 return xop->xo_style;
440#endif /* LIBXO_TEXT_ONLY */
441}
442
443/*
444 * Allow the compiler to optimize out non-text-only code while

Callers 15

xo_buf_escapeFunction · 0.85
xo_message_hcvFunction · 0.85
xo_get_styleFunction · 0.85
xo_style_is_encodingFunction · 0.85
xo_line_ensure_openFunction · 0.85
xo_line_closeFunction · 0.85
xo_format_string_directFunction · 0.85
xo_needed_encodingFunction · 0.85
xo_do_format_fieldFunction · 0.85
xo_format_textFunction · 0.85
xo_format_titleFunction · 0.85
xo_format_valueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected