std: move cmath into sys
This commit is contained in:
parent
6fff796eac
commit
f88e64343e
@ -1,5 +1,3 @@
|
||||
#![cfg(not(test))]
|
||||
|
||||
// These symbols are all defined by `libm`,
|
||||
// or by `compiler-builtins` on unsupported platforms.
|
||||
|
11
library/std/src/sys/cmath/mod.rs
Normal file
11
library/std/src/sys/cmath/mod.rs
Normal file
@ -0,0 +1,11 @@
|
||||
#![cfg(not(test))]
|
||||
|
||||
cfg_if::cfg_if! {
|
||||
if #[cfg(target_os = "windows")] {
|
||||
mod windows;
|
||||
pub use windows::*;
|
||||
} else {
|
||||
mod builtins;
|
||||
pub use builtins::*;
|
||||
}
|
||||
}
|
@ -1,5 +1,3 @@
|
||||
#![cfg(not(test))]
|
||||
|
||||
use core::ffi::{c_double, c_float, c_int};
|
||||
|
||||
extern "C" {
|
@ -3,9 +3,11 @@
|
||||
/// descriptors.
|
||||
mod pal;
|
||||
|
||||
pub mod os_str;
|
||||
mod personality;
|
||||
|
||||
pub mod cmath;
|
||||
pub mod os_str;
|
||||
|
||||
// FIXME(117276): remove this, move feature implementations into individual
|
||||
// submodules.
|
||||
pub use pal::*;
|
||||
|
@ -19,8 +19,6 @@ use crate::os::raw::c_char;
|
||||
|
||||
pub mod alloc;
|
||||
pub mod args;
|
||||
#[path = "../unix/cmath.rs"]
|
||||
pub mod cmath;
|
||||
pub mod env;
|
||||
pub mod fd;
|
||||
pub mod fs;
|
||||
|
@ -13,8 +13,6 @@ mod waitqueue;
|
||||
|
||||
pub mod alloc;
|
||||
pub mod args;
|
||||
#[path = "../unix/cmath.rs"]
|
||||
pub mod cmath;
|
||||
pub mod env;
|
||||
pub mod fd;
|
||||
#[path = "../unsupported/fs.rs"]
|
||||
|
@ -21,8 +21,6 @@ mod itron {
|
||||
pub mod alloc;
|
||||
#[path = "../unsupported/args.rs"]
|
||||
pub mod args;
|
||||
#[path = "../unix/cmath.rs"]
|
||||
pub mod cmath;
|
||||
pub mod env;
|
||||
// `error` is `pub(crate)` so that it can be accessed by `itron/error.rs` as
|
||||
// `crate::sys::error`
|
||||
|
@ -11,8 +11,6 @@ pub use self::rand::hashmap_random_keys;
|
||||
pub mod alloc;
|
||||
#[path = "../unsupported/args.rs"]
|
||||
pub mod args;
|
||||
#[path = "../unix/cmath.rs"]
|
||||
pub mod cmath;
|
||||
#[path = "../unsupported/env.rs"]
|
||||
pub mod env;
|
||||
pub mod locks;
|
||||
|
@ -14,8 +14,6 @@
|
||||
|
||||
pub mod alloc;
|
||||
pub mod args;
|
||||
#[path = "../unix/cmath.rs"]
|
||||
pub mod cmath;
|
||||
pub mod env;
|
||||
#[path = "../unsupported/fs.rs"]
|
||||
pub mod fs;
|
||||
|
@ -11,8 +11,6 @@ pub mod weak;
|
||||
pub mod alloc;
|
||||
pub mod android;
|
||||
pub mod args;
|
||||
#[path = "../unix/cmath.rs"]
|
||||
pub mod cmath;
|
||||
pub mod env;
|
||||
pub mod fd;
|
||||
pub mod fs;
|
||||
|
@ -2,8 +2,6 @@
|
||||
|
||||
pub mod alloc;
|
||||
pub mod args;
|
||||
#[path = "../unix/cmath.rs"]
|
||||
pub mod cmath;
|
||||
pub mod env;
|
||||
pub mod fs;
|
||||
pub mod io;
|
||||
|
@ -20,8 +20,6 @@ use crate::mem;
|
||||
#[path = "../unix/alloc.rs"]
|
||||
pub mod alloc;
|
||||
pub mod args;
|
||||
#[path = "../unix/cmath.rs"]
|
||||
pub mod cmath;
|
||||
pub mod env;
|
||||
pub mod fd;
|
||||
pub mod fs;
|
||||
|
@ -19,8 +19,6 @@
|
||||
pub mod alloc;
|
||||
#[path = "../unsupported/args.rs"]
|
||||
pub mod args;
|
||||
#[path = "../unix/cmath.rs"]
|
||||
pub mod cmath;
|
||||
pub mod env;
|
||||
#[path = "../unsupported/fs.rs"]
|
||||
pub mod fs;
|
||||
|
@ -15,7 +15,6 @@ pub mod compat;
|
||||
pub mod alloc;
|
||||
pub mod args;
|
||||
pub mod c;
|
||||
pub mod cmath;
|
||||
pub mod env;
|
||||
pub mod fs;
|
||||
pub mod handle;
|
||||
|
@ -3,8 +3,6 @@
|
||||
pub mod alloc;
|
||||
#[path = "../unsupported/args.rs"]
|
||||
pub mod args;
|
||||
#[path = "../unix/cmath.rs"]
|
||||
pub mod cmath;
|
||||
#[path = "../unsupported/env.rs"]
|
||||
pub mod env;
|
||||
#[path = "../unsupported/fs.rs"]
|
||||
|
Loading…
x
Reference in New Issue
Block a user