rust/library/core/src/ffi
Matthias Krüger 0b151c6c4f
Rollup merge of #136667 - vita-rust:revert-vita-c-char, r=cuviper
Revert vita's c_char back to i8

# Description

Hi!

https://github.com/rust-lang/rust/pull/132975 changed the definition of `c_char` from i8 to u8 for most ARM targets. While that would usually be correct, [VITASDK uses signed chars by default](https://github.com/vitasdk/buildscripts/blob/master/patches/gcc/0001-gcc-10.patch#L33-L34). The Clang definitions are incorrect because Clang is not (yet?) supported by the vita commmunity / `VITADSK`, On the Rust side, the pre-compiled libraries the user can link to are all compiled using vita's `gcc` and [we set `TARGET_CC` and `TARGET_CXX`](d564a132cb/src/commands/build.rs (L230)) in `cargo vita` for build scripts using `cc`.

I'm creating it as a draft PR so that we can discuss it and possibly get it approved here, but wait to merge the [libc side](https://github.com/rust-lang/libc/pull/4258) and get a libc version first, as having the definitions out of sync breaks std. As a nightly-only target it can be confusing/frustrating for new users when the latest nightly, which is the default, is broken.
2025-03-07 10:02:19 +01:00
..
c_char.md Temporarily make CStr not a link in the c_char docs 2022-03-01 17:36:40 -08:00
c_double.md Fix naming format of IEEE 754 standard 2022-09-11 04:13:33 +02:00
c_float.md Fix naming format of IEEE 754 standard 2022-09-11 04:13:33 +02:00
c_int.md Provide C FFI types via core::ffi, not just in std 2022-03-01 17:16:05 -08:00
c_long.md Provide C FFI types via core::ffi, not just in std 2022-03-01 17:16:05 -08:00
c_longlong.md Provide C FFI types via core::ffi, not just in std 2022-03-01 17:16:05 -08:00
c_schar.md Provide C FFI types via core::ffi, not just in std 2022-03-01 17:16:05 -08:00
c_short.md Provide C FFI types via core::ffi, not just in std 2022-03-01 17:16:05 -08:00
c_str.rs Rollup merge of #136187 - hkBst:patch-27, r=workingjubilee 2025-02-26 19:03:54 +01:00
c_uchar.md Provide C FFI types via core::ffi, not just in std 2022-03-01 17:16:05 -08:00
c_uint.md Provide C FFI types via core::ffi, not just in std 2022-03-01 17:16:05 -08:00
c_ulong.md Provide C FFI types via core::ffi, not just in std 2022-03-01 17:16:05 -08:00
c_ulonglong.md Provide C FFI types via core::ffi, not just in std 2022-03-01 17:16:05 -08:00
c_ushort.md Provide C FFI types via core::ffi, not just in std 2022-03-01 17:16:05 -08:00
c_void.md Provide C FFI types via core::ffi, not just in std 2022-03-01 17:16:05 -08:00
mod.rs Mark extern blocks as unsafe 2025-02-09 17:11:13 +00:00
primitives.rs Revert vita's c_char back to i8 2025-02-06 23:42:49 -03:00
va_list.rs remove uses of rustc_intrinsic_must_be_overridden from standard library 2025-02-24 07:53:57 +01:00