Add locale_t

This commit is contained in:
Jeremy Soller
2025-12-19 12:55:55 -07:00
parent 3765148270
commit c45d06e747
2 changed files with 7 additions and 1 deletions
+3
View File
@@ -7,3 +7,6 @@ cpp_compat = true
[enum]
prefix_with_name = true
[export]
include = ["locale_t"]
+4 -1
View File
@@ -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 {