Skip to content

Commit

Permalink
Reorder import list.
Browse files Browse the repository at this point in the history
Now it's easier to keep in alphabetical order.
  • Loading branch information
jonathanpallant committed Nov 22, 2024
1 parent 4f6da13 commit 3ae2f1d
Showing 1 changed file with 54 additions and 68 deletions.
122 changes: 54 additions & 68 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,50 +11,40 @@
#![allow(clippy::missing_safety_doc)]
#![allow(unused_imports)]

#[cfg(feature = "alloc")]
mod malloc;
#[cfg(feature = "alloc")]
pub use self::malloc::{calloc, free, malloc, realloc};

mod itoa;
#[cfg(feature = "itoa")]
pub use self::itoa::itoa;
#[cfg(feature = "utoa")]
pub use self::itoa::utoa;

// Keep these in alphabetical order
mod abs;
#[cfg(feature = "abs")]
pub use self::abs::abs;

mod ctype;
mod itoa;
mod memchr;
mod qsort;
mod snprintf;
mod strcat;
mod strchr;
mod strcmp;
#[cfg(feature = "strcmp")]
pub use self::strcmp::strcmp;

mod strncmp;
#[cfg(feature = "strncmp")]
pub use self::strncmp::strncmp;

mod strncasecmp;
#[cfg(feature = "strncasecmp")]
pub use self::strncasecmp::strncasecmp;

mod strcpy;
#[cfg(feature = "strcpy")]
pub use self::strcpy::strcpy;

mod strncpy;
#[cfg(feature = "strncpy")]
pub use self::strncpy::strncpy;

mod strlen;
#[cfg(feature = "strlen")]
pub use self::strlen::strlen;
mod strncasecmp;
mod strncmp;
mod strncpy;
mod strrchr;
mod strstr;
mod strtol;

mod strcat;
#[cfg(feature = "strcat")]
pub use self::strcat::strcat;
pub use self::ctype::*;

mod strtol;
// Keep these in alphabetical order
#[cfg(feature = "abs")]
pub use self::abs::abs;
#[cfg(feature = "alloc")]
mod malloc;
#[cfg(feature = "itoa")]
pub use self::itoa::itoa;
#[cfg(feature = "alloc")]
pub use self::malloc::{calloc, free, malloc, realloc};
#[cfg(feature = "memchr")]
pub use self::memchr::memchr;
#[cfg(feature = "qsort")]
pub use self::qsort::qsort;
#[cfg(feature = "atoi")]
pub use self::strtol::atoi;
#[cfg(feature = "isalpha")]
Expand All @@ -65,6 +55,32 @@ pub use self::strtol::isdigit;
pub use self::strtol::isspace;
#[cfg(feature = "isupper")]
pub use self::strtol::isupper;
#[cfg(feature = "signal")]
mod signal;
#[cfg(feature = "utoa")]
pub use self::itoa::utoa;
#[cfg(feature = "signal")]
pub use self::signal::{abort, raise, signal};
#[cfg(feature = "strcat")]
pub use self::strcat::strcat;
#[cfg(feature = "strchr")]
pub use self::strchr::strchr;
#[cfg(feature = "strcmp")]
pub use self::strcmp::strcmp;
#[cfg(feature = "strcpy")]
pub use self::strcpy::strcpy;
#[cfg(feature = "strlen")]
pub use self::strlen::strlen;
#[cfg(feature = "strncasecmp")]
pub use self::strncasecmp::strncasecmp;
#[cfg(feature = "strncmp")]
pub use self::strncmp::strncmp;
#[cfg(feature = "strncpy")]
pub use self::strncpy::strncpy;
#[cfg(feature = "strrchr")]
pub use self::strrchr::strrchr;
#[cfg(feature = "strstr")]
pub use self::strstr::strstr;
#[cfg(feature = "strtoimax")]
pub use self::strtol::strtoimax;
#[cfg(feature = "strtol")]
Expand All @@ -77,33 +93,3 @@ pub use self::strtol::strtoul;
pub use self::strtol::strtoull;
#[cfg(feature = "strtoumax")]
pub use self::strtol::strtoumax;

mod strstr;
#[cfg(feature = "strstr")]
pub use self::strstr::strstr;

mod strchr;
#[cfg(feature = "strchr")]
pub use self::strchr::strchr;

mod strrchr;
#[cfg(feature = "strrchr")]
pub use self::strrchr::strrchr;

mod qsort;
#[cfg(feature = "qsort")]
pub use self::qsort::qsort;

#[cfg(feature = "signal")]
mod signal;
#[cfg(feature = "signal")]
pub use self::signal::{abort, raise, signal};

mod memchr;
#[cfg(feature = "memchr")]
pub use self::memchr::memchr;

mod snprintf;

mod ctype;
pub use self::ctype::*;

0 comments on commit 3ae2f1d

Please sign in to comment.