* 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. */
| 431 | * code with ifdefs. |
| 432 | */ |
| 433 | static inline xo_style_t |
| 434 | xo_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 |
no outgoing calls
no test coverage detected