mirror of
https://github.com/RustPython/RustPython.git
synced 2026-10-28 10:44:36 +08:00
Drop the legacy abi3-only PyCFunction_Call export (#9059)
Follow up on #9055: RustPython targets abi3t, which does not require this legacy binary-compatibility entry point. Assisted-by: OpenAI Codex:model identifier unavailable
This commit is contained in:
1 parent
bc495a8b30
commit
d674ea11e3
1 file changed
-10
@@ -11,16 +11,6 @@ use rustpython_vm::{AsObject, PyObjectRef, PyRef, PyResult, VirtualMachine};
|
||||
define_py_check!(fn PyCFunction_Check, types.builtin_function_or_method_type);
|
||||
define_py_check!(exact fn PyCFunction_CheckExact, types.builtin_function_or_method_type);
|
||||
|
||||
// Removed from the public API in 3.13, but retained in the stable ABI.
|
||||
#[unsafe(no_mangle)]
|
||||
pub unsafe extern "C" fn PyCFunction_Call(
|
||||
callable: *mut PyObject,
|
||||
args: *mut PyObject,
|
||||
kwargs: *mut PyObject,
|
||||
) -> *mut PyObject {
|
||||
unsafe { crate::abstract_::PyObject_Call(callable, args, kwargs) }
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
#[derive(Debug)]
|
||||
pub struct PyMethodDef {
|
||||
|
||||
Reference in new issue
Block a user