浏览代码

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.
Tim Schumacher 3 年之前
父节点
当前提交
ac406c8d0e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Userland/Libraries/LibC/wctype.h

+ 1 - 1
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);