diff options
author | Tim Schumacher <timschumi@gmx.de> | 2021-09-17 18:09:15 +0200 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2021-09-17 22:59:51 +0000 |
commit | ac406c8d0ea0d701fdafe84d33e293e250045e0a (patch) | |
tree | dba82c9a19ce551983c39ead3f5ba20809f2d6e9 | |
parent | 2f891fd4b86928e3f50cdac3a77f67cc2dcef9ad (diff) | |
download | serenity-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.h | 2 |
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); |