From 4fab8907555510129a2190bb0268cd1525491e0f Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 4 Apr 2023 12:31:28 +0200 Subject: uchar: Rename _GL_LARGE_CHAR32_T to _GL_SMALL_WCHAR_T. * lib/uchar.in.h (_GL_SMALL_WCHAR_T): Renamed from _GL_LARGE_CHAR32_T. * lib/mbrtoc32.c: Update. * lib/mbsrtoc32s.c: Update. * lib/mbsnrtoc32s.c: Update. * lib/c32tob.c: Update. * lib/c32rtomb.c: Update. * lib/c32srtombs.c: Update. * lib/c32snrtombs.c: Update. * lib/c32is-impl.h: Update. * tests/test-uchar.c: Update. --- tests/test-uchar.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/test-uchar.c b/tests/test-uchar.c index 38c5f2538e..df6a3ea0d0 100644 --- a/tests/test-uchar.c +++ b/tests/test-uchar.c @@ -43,11 +43,11 @@ static_assert ((char16_t)0xFFFF != (char16_t)0x7FFF); /* Check that char32_t is at least 31 bits wide. */ static_assert ((char32_t)0x7FFFFFFF != (char32_t)0x3FFFFFFF); -/* Check that _GL_LARGE_CHAR32_T is correctly defined. */ -#if _GL_LARGE_CHAR32_T -static_assert (sizeof (char32_t) > sizeof (wchar_t)); +/* Check that _GL_SMALL_WCHAR_T is correctly defined. */ +#if _GL_SMALL_WCHAR_T +static_assert (sizeof (wchar_t) < sizeof (char32_t)); #else -static_assert (sizeof (char32_t) == sizeof (wchar_t)); +static_assert (sizeof (wchar_t) == sizeof (char32_t)); #endif int -- cgit v1.2.1