mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-27 12:46:06 +00:00
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.
This commit is contained in:
parent
2f891fd4b8
commit
ac406c8d0e
Notes:
sideshowbarker
2024-07-18 03:45:01 +09:00
Author: https://github.com/timschumi
Commit: ac406c8d0e
Pull-request: https://github.com/SerenityOS/serenity/pull/10097
Reviewed-by: https://github.com/bgianfo ✅
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue