History log of /rust-libc-0.2.174/src/switch.rs (Results 1 – 12 of 12)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: 0.2.174, 0.2.173, 0.2.172, ctest-v0.4.11, ctest-v0.4.10, 0.2.171, 0.2.170
# e2f92909 04-Feb-2025 Aphek <[email protected]>

Copy definitions from core::ffi and centralize them

(backport <https://github.com/rust-lang/libc/pull/4256>)
(cherry picked from commit 95446f458e472511d65e560224c1b85570e50944)

[ include the neces

Copy definitions from core::ffi and centralize them

(backport <https://github.com/rust-lang/libc/pull/4256>)
(cherry picked from commit 95446f458e472511d65e560224c1b85570e50944)

[ include the necessary changes for psp, which isn't part of the
original commit since the target is not present on main - Trevor ]

show more ...


Revision tags: 0.2.169
# 8448147a 18-Dec-2024 Taiki Endo <[email protected]>

Define c_char at top-level and remove per-target c_char definitions

(backport <https://github.com/rust-lang/libc/pull/4202>)
(cherry picked from commit 0a02b941cf105dc4d4c5b5bd1ddc7bb546ad89c9)


Revision tags: 0.2.168, ctest-v0.4.9, 0.2.167, 0.2.166, 0.2.165, 0.2.164, 0.2.163, 0.2.162, 0.2.161, 0.2.160, 0.2.159, 0.2.158, 0.2.157, 0.2.156, 0.2.155, 0.2.154, ctest-v0.4.8, 0.2.153, 0.2.152, 0.2.151, 0.2.150, 0.2.149, 0.2.148, 0.2.147, ctest-v0.4.7, 0.2.146, 0.2.145, 0.2.144, 0.2.143, ctest-v0.4.6, 0.2.142, 0.2.141, 0.2.140, 0.2.139, 0.2.138, ctest-v0.4.5, 0.2.137, 0.2.136, 0.2.135, 0.2.134, 0.2.133, 0.2.132, 0.2.131, 0.2.130, 0.2.129, 0.1.128, 0.2.128, 0.2.127
# e2218872 12-Jul-2022 Josh Triplett <[email protected]>

Require rust >= 1.30 and drop libc_core_cvoid conditional

Move the `c_void` re-export to the top-level `lib.rs`.


Revision tags: 0.2.126, ctest-v0.4.4, 0.2.125, 0.2.124, 0.2.123, 0.2.122, 0.2.121, 0.2.120, 0.2.119, 0.2.118, 0.2.117, 0.2.116, 0.2.115, 0.2.114, 0.2.113, 0.2.112, 0.2.111, 0.2.110, 0.2.109, ctest-v0.4.3, 0.2.108, 0.2.107, 0.2.106, 0.2.105, ctest-v0.4.2, 0.2.104, 0.2.103, 0.2.102, 0.2.101, 0.2.100, 0.2.99, 0.2.98, 0.2.97, 0.2.96, 0.2.95, ctest-v0.4.1, 0.2.94, 0.2.93, 0.2.92, 0.2.91, 0.2.90, 0.2.89, 0.2.88, 0.2.87, 0.2.86, 0.2.85, 0.2.84, ctest-v0.4.0, 0.2.83, 0.2.82, 0.2.81, 0.2.80, 0.2.79, 0.2.78, 0.2.77, 0.2.76, 0.2.75, 0.2.74, 0.2.73, 0.2.72, ctest-v0.3.0, 0.2.71, 0.2.70, 0.2.69, 0.2.68, 0.2.67, 0.2.66, 0.2.65, 0.2.64
# 939a2e5a 12-Sep-2019 gnzlbg <[email protected]>

Formatting


Revision tags: 0.2.63, 0.2.62, 0.2.61, 0.2.60, 0.2.59, 0.2.58, 0.2.57, 0.2.56
# 08a45197 29-May-2019 gnzlbg <[email protected]>

Refactor fixed-width integer types into its own module


Revision tags: 0.2.55, 0.2.54, 0.2.53, 0.2.51, 0.2.50, 0.2.49
# a17a91cd 07-Feb-2019 gnzlbg <[email protected]>

Fix build on all platforms

This PR fixes the build on all platforms and all Rust version down to the
minimum Rust version supported by libc: Rust 1.13.0.

The `build.rs` is extended with logic to de

Fix build on all platforms

This PR fixes the build on all platforms and all Rust version down to the
minimum Rust version supported by libc: Rust 1.13.0.

The `build.rs` is extended with logic to detect the newer Rust features used by
`libc` since Rust 1.13.0:

* Rust 1.19.0: `untagged_unions`. APIs using untagged unions are gated on
`cfg(libc_unions)` and not available on older Rust versions.

* Rust 1.25.0: `repr(align)`. Because `repr(align)` cannot be parsed by older
Rust versions, all uses of `repr(align)` are split into `align.rs` and
`no_align.rs` modules, which are gated on the `cfg(libc_align)` at the top
level. These modules sometimes contain macros that are expanded at the top
level to avoid privacy issues (`pub(crate)` is not available in older Rust
versions). Closes #1242 .

* Rust : `const` `mem::size_of`. These uses are worked around with hardcoded
constants on older Rust versions.

Also, `repr(packed)` structs cannot automatically `derive()` some traits like
`Debug`. These have been moved into `s_no_extra_traits!` and the lint of missing
`Debug` implementations on public items is silenced for these. We can manually
implement the `extra_traits` for these in a follow up PR. This is tracked
in #1243. Also, `extra_traits` does not enable `align` manually anymore.

Since `f64::to_bits` is not available in older Rust versions, its usage
has been replaced with a `transmute` to an `u64` which is what that method
does under the hood.

Closes #1232 .

show more ...


# f3684584 23-Jan-2019 Bryant Mairs <[email protected]>

Check for Copy impls for all types


Revision tags: 0.2.48, 0.2.47, 0.2.46, 0.2.45, ctest-v0.2.7, 0.2.44
# 5c1a6b8a 21-Nov-2018 gnzlbg <[email protected]>

splice the common libc functions and ctypes throughout the library


# d1457314 19-Nov-2018 gnzlbg <[email protected]>

Factor out platforms for which libc is empty


Revision tags: ctest-v0.2.4, ctest-v0.2.3
# 90d86148 01-Oct-2018 Isaac Woods <[email protected]>

De-duplicate c_cvoid definitions


# 79c80c4e 17-Sep-2018 Isaac Woods <[email protected]>

Re-export core::ffi::c_void if supported


Revision tags: ctest-v0.2.2, ctest-v0.2.1, ctest-v0.2.0, 0.2.43
# 8ff70b6a 02-Aug-2018 roblabla <[email protected]>

Add some switch-related libc typedefs