drone-ctypes 0.14.3

Platform-specific C types for Drone apps.
Documentation
//! Platform-specific types, as defined by C, for [Drone] applications.
//!
//! This crate is an analogue of [`std::os::raw`] module. See its documentation
//! for more details.
//!
//! [Drone]: https://github.com/drone-os/drone
//! [`std::os::raw`]: https://doc.rust-lang.org/std/os/raw/

#![warn(missing_docs, unsafe_op_in_unsafe_fn)]
#![warn(clippy::pedantic)]
#![allow(non_camel_case_types)]
#![no_std]

#[doc(no_inline)]
pub use core::ffi::c_void;

/// Equivalent to C's `char` type.
pub type c_char = u8;

/// Equivalent to C's `signed char` type.
pub type c_schar = i8;

/// Equivalent to C's `unsigned char` type.
pub type c_uchar = u8;

/// Equivalent to C's `signed short` (`short`) type.
pub type c_short = i16;

/// Equivalent to C's `unsigned short` type.
pub type c_ushort = u16;

/// Equivalent to C's `signed int` (`int`) type.
pub type c_int = i32;

/// Equivalent to C's `unsigned int` type.
pub type c_uint = u32;

/// Equivalent to C's `signed long` (`long`) type.
#[cfg(target_pointer_width = "32")]
pub type c_long = i32;

/// Equivalent to C's `unsigned long` type.
#[cfg(target_pointer_width = "32")]
pub type c_ulong = u32;

/// Equivalent to C's `signed long` (`long`) type.
#[cfg(target_pointer_width = "64")]
pub type c_long = i64;

/// Equivalent to C's `unsigned long` type.
#[cfg(target_pointer_width = "64")]
pub type c_ulong = u64;

/// Equivalent to C's `signed long long` (`long long`) type.
pub type c_longlong = i64;

/// Equivalent to C's `unsigned long long` type.
pub type c_ulonglong = u64;

/// Equivalent to C's `float` type.
pub type c_float = f32;

/// Equivalent to C's `double` type.
pub type c_double = f64;