inttypes malloc and errno header cleanup
This commit is contained in:
@@ -5,7 +5,10 @@
|
||||
// TODO: set this for entire crate when possible
|
||||
#![deny(unsafe_op_in_unsafe_fn)]
|
||||
|
||||
use crate::platform::{self, types::*};
|
||||
use crate::platform::{
|
||||
self,
|
||||
types::{c_char, c_int},
|
||||
};
|
||||
|
||||
//TODO: Consider removing, provided for compatibility with newlib
|
||||
#[unsafe(no_mangle)]
|
||||
|
||||
@@ -6,7 +6,10 @@
|
||||
|
||||
use crate::{
|
||||
header::{ctype, errno::*, stdlib::*},
|
||||
platform::{self, types::*},
|
||||
platform::{
|
||||
self,
|
||||
types::{c_char, c_int, c_long, intmax_t, uintmax_t},
|
||||
},
|
||||
};
|
||||
|
||||
/// See <https://pubs.opengroup.org/onlinepubs/9799919799/functions/imaxabs.html>.
|
||||
|
||||
@@ -3,8 +3,11 @@
|
||||
//! Non-POSIX, see <https://man7.org/linux/man-pages/man3/posix_memalign.3.html>.
|
||||
|
||||
use crate::{
|
||||
header::errno::*,
|
||||
platform::{self, ERRNO, Pal, Sys, types::*},
|
||||
header::errno::ENOMEM,
|
||||
platform::{
|
||||
self, ERRNO, Pal, Sys,
|
||||
types::{c_void, size_t},
|
||||
},
|
||||
};
|
||||
use core::ptr;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user