/* libfmt/libmisc.c - Integrate pico-fmt with libmisc * * Copyright (C) 2024-2025 Luke T. Shumaker * SPDX-License-Identifier: AGPL-3.0-or-later */ #include /* for fmt_vfctprintf() */ static void libfmt_conv_formatter(struct fmt_state *state) { lo_interface fmt_formatter obj = va_arg(*state->args, lo_interface fmt_formatter); LO_CALL(obj, format, state); } [[gnu::constructor]] static void libfmt_install_formatter(void) { fmt_install('v', libfmt_conv_formatter); }