diff options
author | Gabriel F. T. Gomes <gabrielftg@linux.ibm.com> | 2019-07-11 11:47:21 -0300 |
---|---|---|
committer | Gabriel F. T. Gomes <gabrielftg@linux.ibm.com> | 2019-11-22 18:13:20 -0300 |
commit | b370c5f014031b2d06bc54a6436e31b46ed0bf43 (patch) | |
tree | 183d25f33a0a246158408afccd14f76be1f63695 /sysdeps/ieee754/ldbl-128ibm-compat/test-wscanf-ldbl-compat.c | |
parent | a5b15bdec8015bac998f727d97667acfb17e90c0 (diff) | |
download | glibc-b370c5f014031b2d06bc54a6436e31b46ed0bf43.zip glibc-b370c5f014031b2d06bc54a6436e31b46ed0bf43.tar.gz glibc-b370c5f014031b2d06bc54a6436e31b46ed0bf43.tar.bz2 |
ldbl-128ibm-compat: Add wide character scanning functions
Similarly to what was done for regular character scanning functions,
this patch uses the new mode mask, SCANF_LDBL_USES_FLOAT128, in the
'mode' argument of the wide characters scanning function,
__vfwscanf_internal (which is also extended to support scanning
floating-point values with IEEE binary128, by redirecting calls to
__wcstold_internal to __wcstof128_internal).
Tested for powerpc64le.
Reviewed-By: Paul E. Murphy <murphyp@linux.ibm.com>
Diffstat (limited to 'sysdeps/ieee754/ldbl-128ibm-compat/test-wscanf-ldbl-compat.c')
-rw-r--r-- | sysdeps/ieee754/ldbl-128ibm-compat/test-wscanf-ldbl-compat.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sysdeps/ieee754/ldbl-128ibm-compat/test-wscanf-ldbl-compat.c b/sysdeps/ieee754/ldbl-128ibm-compat/test-wscanf-ldbl-compat.c new file mode 100644 index 0000000..e93cf3b --- /dev/null +++ b/sysdeps/ieee754/ldbl-128ibm-compat/test-wscanf-ldbl-compat.c @@ -0,0 +1,10 @@ +#define CHAR wchar_t +#define L(x) L##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> |