diff options
author | Maciej W. Rozycki <macro@redhat.com> | 2025-08-23 01:02:10 +0100 |
---|---|---|
committer | Maciej W. Rozycki <macro@redhat.com> | 2025-08-23 01:02:46 +0100 |
commit | a1e5ee13ab9b786f291c8f55f93db11be1ae286c (patch) | |
tree | a9b66efd1652ab4df872ca1f0993000d81ffb031 /sysdeps | |
parent | 2419637eb034d2be63707de035b8ac1c877a903d (diff) | |
download | glibc-a1e5ee13ab9b786f291c8f55f93db11be1ae286c.zip glibc-a1e5ee13ab9b786f291c8f55f93db11be1ae286c.tar.gz glibc-a1e5ee13ab9b786f291c8f55f93db11be1ae286c.tar.bz2 |
stdio-common: Adjust header inclusion in scanf input specifier tests
Move the inclusion of the data class header from the individual tests to
the data-type-specific skeleton, providing for the use of the data type
under test in the data class header and reducing duplication.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/ieee754/ldbl-96/tst-scanf-format-skeleton-ldouble.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sysdeps/ieee754/ldbl-96/tst-scanf-format-skeleton-ldouble.c b/sysdeps/ieee754/ldbl-96/tst-scanf-format-skeleton-ldouble.c index 7e8c1d6..79903cc 100644 --- a/sysdeps/ieee754/ldbl-96/tst-scanf-format-skeleton-ldouble.c +++ b/sysdeps/ieee754/ldbl-96/tst-scanf-format-skeleton-ldouble.c @@ -20,6 +20,10 @@ #include <stdint.h> #include <string.h> +typedef long double type_t; + +#include "tst-scanf-format-real.h" + #undef compare_real #define compare_real(x, y) \ ({ \ @@ -28,6 +32,4 @@ && ux.parts.sign_exponent == uy.parts.sign_exponent); \ }) -typedef long double type_t; - #include "tst-scanf-format-skeleton.c" |