Revert "Auto merge of #65134 - davidtwco:issue-19834-improper-ctypes-in-extern-C-fn, r=rkruppe"
This reverts commit3f0e16473d, reversing changes made to61a551b493.
This commit is contained in:
@@ -53,7 +53,6 @@ unsafe extern "C" fn tcs_init(secondary: bool) {
|
||||
// (main function exists). If this is a library, the crate author should be
|
||||
// able to specify this
|
||||
#[cfg(not(test))]
|
||||
#[allow(improper_ctypes)]
|
||||
#[no_mangle]
|
||||
extern "C" fn entry(p1: u64, p2: u64, p3: u64, secondary: bool, p4: u64, p5: u64) -> (u64, u64) {
|
||||
// FIXME: how to support TLS in library mode?
|
||||
|
||||
@@ -172,7 +172,6 @@ const EINVAL: i32 = 22;
|
||||
|
||||
#[cfg(not(test))]
|
||||
#[no_mangle]
|
||||
#[allow(improper_ctypes)]
|
||||
pub unsafe extern "C" fn __rust_rwlock_rdlock(p: *mut RWLock) -> i32 {
|
||||
if p.is_null() {
|
||||
return EINVAL;
|
||||
@@ -182,7 +181,6 @@ pub unsafe extern "C" fn __rust_rwlock_rdlock(p: *mut RWLock) -> i32 {
|
||||
}
|
||||
|
||||
#[cfg(not(test))]
|
||||
#[allow(improper_ctypes)]
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn __rust_rwlock_wrlock(p: *mut RWLock) -> i32 {
|
||||
if p.is_null() {
|
||||
@@ -192,7 +190,6 @@ pub unsafe extern "C" fn __rust_rwlock_wrlock(p: *mut RWLock) -> i32 {
|
||||
return 0;
|
||||
}
|
||||
#[cfg(not(test))]
|
||||
#[allow(improper_ctypes)]
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn __rust_rwlock_unlock(p: *mut RWLock) -> i32 {
|
||||
if p.is_null() {
|
||||
|
||||
Reference in New Issue
Block a user