From a1e5ee13ab9b786f291c8f55f93db11be1ae286c Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Sat, 23 Aug 2025 01:02:10 +0100 Subject: 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 --- sysdeps/ieee754/ldbl-96/tst-scanf-format-skeleton-ldouble.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sysdeps') 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 #include +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" -- cgit v1.1