mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-28 13:43:37 +08:00
26 lines
453 B
Rust
26 lines
453 B
Rust
#[allow(non_snake_case)]
|
|
pub fn MB_CUR_MAX() -> usize {
|
|
unsafe { C_MB_CUR_MAX() }
|
|
}
|
|
|
|
pub fn cur_term() -> bool {
|
|
unsafe { has_cur_term() }
|
|
}
|
|
|
|
#[allow(non_snake_case)]
|
|
pub fn ST_LOCAL() -> u64 {
|
|
unsafe { C_ST_LOCAL() }
|
|
}
|
|
|
|
#[allow(non_snake_case)]
|
|
pub fn MNT_LOCAL() -> u64 {
|
|
unsafe { C_MNT_LOCAL() }
|
|
}
|
|
|
|
extern "C" {
|
|
fn C_MB_CUR_MAX() -> usize;
|
|
fn has_cur_term() -> bool;
|
|
fn C_ST_LOCAL() -> u64;
|
|
fn C_MNT_LOCAL() -> u64;
|
|
}
|