Browse Source

Move wctype_t definition to wctype rust header

Jeremy Soller 3 years ago
parent
commit
ae7cee26a6
4 changed files with 2 additions and 3 deletions
  1. 0 1
      include/bits/wctype.h
  2. 0 1
      include/stddef.h
  3. 2 0
      src/header/wctype/mod.rs
  4. 0 1
      src/platform/types.rs

+ 0 - 1
include/bits/wctype.h

@@ -2,7 +2,6 @@
 #define _BITS_WCTYPE_H
 #include <stdint.h>
 
-#define __need_wctype_t
 #define __need_wint_t
 
 #endif /* _BITS_WCTYPE_H */

+ 0 - 1
include/stddef.h

@@ -12,7 +12,6 @@ typedef __PTRDIFF_TYPE__ ptrdiff_t;
 #ifndef __cplusplus
 typedef int32_t wchar_t;
 #endif /* #ifndef __cplusplus */
-typedef uint32_t wctype_t;
 typedef uint32_t wint_t;
 
 

+ 2 - 0
src/header/wctype/mod.rs

@@ -11,6 +11,8 @@ mod alpha;
 mod casecmp;
 mod punct;
 
+pub type wctype_t = u32;
+
 pub const WEOF: wint_t = 0xFFFF_FFFFu32;
 
 pub const WCTYPE_ALNUM: wctype_t = 1;

+ 0 - 1
src/platform/types.rs

@@ -45,7 +45,6 @@ pub type c_long = i64;
 pub type c_ulong = u64;
 
 pub type wchar_t = i32;
-pub type wctype_t = u32;
 pub type wint_t = u32;
 
 pub type regoff_t = size_t;