Add locale_t
This commit is contained in:
@@ -7,3 +7,6 @@ cpp_compat = true
|
||||
|
||||
[enum]
|
||||
prefix_with_name = true
|
||||
|
||||
[export]
|
||||
include = ["locale_t"]
|
||||
|
||||
@@ -4,12 +4,15 @@
|
||||
|
||||
use core::ptr;
|
||||
|
||||
use crate::platform::types::{c_char, c_int};
|
||||
use crate::platform::types::{c_char, c_int, c_void};
|
||||
|
||||
const EMPTY_PTR: *const c_char = "\0" as *const _ as *const c_char;
|
||||
// Can't use &str because of the mutability
|
||||
static mut C_LOCALE: [c_char; 2] = [b'C' as c_char, 0];
|
||||
|
||||
//TODO: locale_t internals
|
||||
pub type locale_t = *mut c_void;
|
||||
|
||||
/// See <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/locale.h.html>.
|
||||
#[repr(C)]
|
||||
pub struct lconv {
|
||||
|
||||
Reference in New Issue
Block a user