-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #1379 - gnzlbg:deprecate_fixed_width_ints, r=gnzlbg
Deprecate fixed width integer type aliases cc @emilio - I think it makes sense to ensure that the latest released version of bindgen works properly with this change. That is, that even when asked to use C types from, e.g., `libc::`, it does not use aliases for the fixed-width integer C types (e.g. `libc::int64_t`) but uses Rust primitive types instead (e.g. `u64`). Closes #1304 .
- Loading branch information
Showing
37 changed files
with
759 additions
and
762 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
//! This module contains type aliases for C's fixed-width integer types . | ||
//! | ||
//! These aliases are deprecated: use the Rust types instead. | ||
#[deprecated( | ||
since = "0.2.55", | ||
note = "Use i8 instead." | ||
)] | ||
pub type int8_t = i8; | ||
#[deprecated( | ||
since = "0.2.55", | ||
note = "Use i16 instead." | ||
)] | ||
pub type int16_t = i16; | ||
#[deprecated( | ||
since = "0.2.55", | ||
note = "Use i32 instead." | ||
)] | ||
pub type int32_t = i32; | ||
#[deprecated( | ||
since = "0.2.55", | ||
note = "Use i64 instead." | ||
)] | ||
pub type int64_t = i64; | ||
#[deprecated( | ||
since = "0.2.55", | ||
note = "Use u8 instead." | ||
)] | ||
pub type uint8_t = u8; | ||
#[deprecated( | ||
since = "0.2.55", | ||
note = "Use u16 instead." | ||
)] | ||
pub type uint16_t = u16; | ||
#[deprecated( | ||
since = "0.2.55", | ||
note = "Use u32 instead." | ||
)] | ||
pub type uint32_t = u32; | ||
#[deprecated( | ||
since = "0.2.55", | ||
note = "Use u64 instead." | ||
)] | ||
pub type uint64_t = u64; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,15 +13,6 @@ | |
// Ported by Colin Fink <[email protected]> | ||
// and Stefan Lankes <[email protected]> | ||
|
||
pub type int8_t = i8; | ||
pub type int16_t = i16; | ||
pub type int32_t = i32; | ||
pub type int64_t = i64; | ||
pub type uint8_t = u8; | ||
pub type uint16_t = u16; | ||
pub type uint32_t = u32; | ||
pub type uint64_t = u64; | ||
|
||
pub type c_schar = i8; | ||
pub type c_uchar = u8; | ||
pub type c_short = i16; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.