* Initialize the default handle. */
| 660 | * Initialize the default handle. |
| 661 | */ |
| 662 | static void |
| 663 | xo_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 |
no test coverage detected