From ac406c8d0ea0d701fdafe84d33e293e250045e0a Mon Sep 17 00:00:00 2001 From: Tim Schumacher Date: Fri, 17 Sep 2021 18:09:15 +0200 Subject: [PATCH] LibC: Change wctrans_t to be a long instead of int* The POSIX manpage just says that wctrans_t should be "a scalar type that can hold values which represent locale-specific character mappings", and doing switch statements with ints is much more pleasant than with pointers. --- Userland/Libraries/LibC/wctype.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibC/wctype.h b/Userland/Libraries/LibC/wctype.h index 8c5ffb14a8..7e29564eb4 100644 --- a/Userland/Libraries/LibC/wctype.h +++ b/Userland/Libraries/LibC/wctype.h @@ -12,7 +12,7 @@ __BEGIN_DECLS -typedef const int* wctrans_t; +typedef long wctrans_t; int iswalnum(wint_t wc); int iswalpha(wint_t wc);