File tree Expand file tree Collapse file tree 6 files changed +13
-22
lines changed Expand file tree Collapse file tree 6 files changed +13
-22
lines changed Original file line number Diff line number Diff line change @@ -69,10 +69,7 @@ pub struct PyWrapperDescrObject {
6969 pub d_wrapped : * mut c_void ,
7070}
7171
72- #[ cfg_attr( windows, link( name = "pythonXY" ) ) ]
73- extern "C" {
74- pub static mut _PyMethodWrapper_Type: PyTypeObject ;
75- }
72+ // skipped _PyMethodWrapper_Type
7673
7774// skipped non-limited PyDescr_NewWrapper
7875// skipped non-limited PyDescr_IsData
Original file line number Diff line number Diff line change @@ -68,9 +68,10 @@ extern "C" {
6868#[ cfg_attr( windows, link( name = "pythonXY" ) ) ]
6969extern "C" {
7070 pub static mut PyCoro_Type : PyTypeObject ;
71- pub static mut _PyCoroWrapper_Type: PyTypeObject ;
7271}
7372
73+ // skipped _PyCoroWrapper_Type
74+
7475#[ inline]
7576pub unsafe fn PyCoro_CheckExact ( op : * mut PyObject ) -> c_int {
7677 PyObject_TypeCheck ( op, addr_of_mut ! ( PyCoro_Type ) )
Original file line number Diff line number Diff line change @@ -65,10 +65,8 @@ pub struct _frozen {
6565extern "C" {
6666 #[ cfg( not( PyPy ) ) ]
6767 pub static mut PyImport_FrozenModules : * const _frozen ;
68- #[ cfg( all( not( PyPy ) , Py_3_11 ) ) ]
69- pub static mut _PyImport_FrozenBootstrap: * const _frozen ;
70- #[ cfg( all( not( PyPy ) , Py_3_11 ) ) ]
71- pub static mut _PyImport_FrozenStdlib: * const _frozen ;
72- #[ cfg( all( not( PyPy ) , Py_3_11 ) ) ]
73- pub static mut _PyImport_FrozenTest: * const _frozen ;
7468}
69+
70+ // skipped _PyImport_FrozenBootstrap
71+ // skipped _PyImport_FrozenStdlib
72+ // skipped _PyImport_FrozenTest
Original file line number Diff line number Diff line change @@ -3,11 +3,10 @@ use crate::pyport::Py_ssize_t;
33use std:: os:: raw:: { c_char, c_int} ;
44use std:: ptr:: addr_of_mut;
55
6+ // skipped _PyManagedBuffer_Type
7+
68#[ cfg_attr( windows, link( name = "pythonXY" ) ) ]
79extern "C" {
8- #[ cfg( not( Py_LIMITED_API ) ) ]
9- pub static mut _PyManagedBuffer_Type: PyTypeObject ;
10-
1110 #[ cfg_attr( PyPy , link_name = "PyPyMemoryView_Type" ) ]
1211 pub static mut PyMemoryView_Type : PyTypeObject ;
1312}
Original file line number Diff line number Diff line change @@ -39,11 +39,7 @@ pub unsafe fn PySet_GET_SIZE(so: *mut PyObject) -> Py_ssize_t {
3939 ( * so) . used
4040}
4141
42- #[ cfg( not( Py_LIMITED_API ) ) ]
43- #[ cfg_attr( windows, link( name = "pythonXY" ) ) ]
44- extern "C" {
45- pub static mut _PySet_Dummy: * mut PyObject ;
46- }
42+ // skipped _PySet_Dummy
4743
4844extern "C" {
4945 #[ cfg( not( Py_LIMITED_API ) ) ]
Original file line number Diff line number Diff line change @@ -11,9 +11,9 @@ pub use crate::_PyWeakReference as PyWeakReference;
1111
1212#[ cfg_attr( windows, link( name = "pythonXY" ) ) ]
1313extern "C" {
14- pub static mut _PyWeakref_RefType: PyTypeObject ;
15- pub static mut _PyWeakref_ProxyType: PyTypeObject ;
16- pub static mut _PyWeakref_CallableProxyType: PyTypeObject ;
14+ static mut _PyWeakref_RefType: PyTypeObject ;
15+ static mut _PyWeakref_ProxyType: PyTypeObject ;
16+ static mut _PyWeakref_CallableProxyType: PyTypeObject ;
1717
1818 #[ cfg( PyPy ) ]
1919 #[ link_name = "PyPyWeakref_CheckRef" ]
You can’t perform that action at this time.
0 commit comments