stdio-common: Add __printf_function_invoke
authorFlorian Weimer <fweimer@redhat.com>
Mon, 19 Dec 2022 17:56:54 +0000 (18:56 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 19 Dec 2022 17:56:54 +0000 (18:56 +0100)
commitc7bf2e99cafbd8970f81c38d6f32842cc7846421
tree6df9a7855896e846ccd8fe8db570c13ad2895018
parent659fe9fdd14b0772f4e9722b751b9b010665e053
stdio-common: Add __printf_function_invoke

And __wprintf_function_invoke.  These functions will be used to
to call registered printf specifier callbacks on printf buffers
after vfprintf and vfwprintf have been converted to buffers.  The new
implementation avoids alloca/variable length arrays.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
include/printf.h
stdio-common/Makefile
stdio-common/Xprintf_function_invoke.c [new file with mode: 0644]
stdio-common/printf_function_invoke.c [new file with mode: 0644]
stdio-common/wprintf_function_invoke.c [new file with mode: 0644]