mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-26 06:50:07 +00:00
590ef889bc
Similarly to the functions from the *printf family, this patch adds implementations for __obstack_*printf* functions that set the 'mode_flags' parameter to PRINTF_LDBL_USES_FLOAT128, before making calls to __vfprintf_internal (indirectly through __obstack_vprintf_internal). Tested for powerpc64le. Reviewed-by: Paul E. Murphy <murphyp@linux.ibm.com>
7 lines
260 B
C
7 lines
260 B
C
#define _FORTIFY_SOURCE 0
|
|
#define OBSTACK_FUNCTION obstack_printf
|
|
#define OBSTACK_FUNCTION_PARAMS (&ob, "%.30Lf", ld)
|
|
#define VOBSTACK_FUNCTION obstack_vprintf
|
|
#define VOBSTACK_FUNCTION_PARAMS (&ob, "%.30Lf", ap)
|
|
#include <test-obstack-ldbl-compat-template.c>
|