summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2021-09-17 18:09:15 +0200
committerBrian Gianforcaro <b.gianfo@gmail.com>2021-09-17 22:59:51 +0000
commitac406c8d0ea0d701fdafe84d33e293e250045e0a (patch)
treedba82c9a19ce551983c39ead3f5ba20809f2d6e9
parent2f891fd4b86928e3f50cdac3a77f67cc2dcef9ad (diff)
downloadserenity-ac406c8d0ea0d701fdafe84d33e293e250045e0a.zip
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.
-rw-r--r--Userland/Libraries/LibC/wctype.h2
1 files changed, 1 insertions, 1 deletions
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);