mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-04 10:50:07 +00:00
f1a0eb5b67
In the format string for *scanf functions, the '%as', '%aS', and '%a[]' modifiers behave differently depending on ISO C99 compatibility. When _GNU_SOURCE is defined and -std=c89 is passed to the compiler, these functions behave like ascanf, and the modifiers allocate memory for the output. Otherwise, the ISO C99 compliant version of these functions is used, and the modifiers consume a floating-point argument. This patch adds the IEEE binary128 variant of ISO C99 compliant functions for the third long double format on powerpc64le. Tested for powerpc64le. Reviewed-by: Paul E. Murphy <murphyp@linux.ibm.com>
16 lines
391 B
C
16 lines
391 B
C
/* Include stdio.h from libio/, because include/stdio.h and -std=c89 do
|
|
not work together. */
|
|
#include <libio/stdio.h>
|
|
|
|
#define CHAR wchar_t
|
|
#define Lx(x) L##x
|
|
#define L(x) Lx (x)
|
|
#define FSCANF fwscanf
|
|
#define SSCANF swscanf
|
|
#define SCANF wscanf
|
|
#define VFSCANF vfwscanf
|
|
#define VSSCANF vswscanf
|
|
#define VSCANF vwscanf
|
|
#define STRCPY wcscpy
|
|
#include <test-scanf-ldbl-compat-template.c>
|