11use crate :: { PyObject , Py_ssize_t } ;
2- #[ cfg( any( all( Py_3_8 , not( any ( PyPy , GraalPy ) ) ) , not( Py_3_11 ) ) ) ]
2+ #[ cfg( any( all( Py_3_8 , not( PyPy ) ) , not( Py_3_11 ) ) ) ]
33use std:: os:: raw:: c_char;
44use std:: os:: raw:: c_int;
55
66#[ cfg( not( Py_3_11 ) ) ]
77use crate :: Py_buffer ;
88
9- #[ cfg( all( Py_3_8 , not( any ( PyPy , GraalPy ) ) ) ) ]
9+ #[ cfg( all( Py_3_8 , not( PyPy ) ) ) ]
1010use crate :: {
1111 vectorcallfunc, PyCallable_Check , PyThreadState , PyThreadState_GET , PyTuple_Check ,
1212 PyType_HasFeature , Py_TPFLAGS_HAVE_VECTORCALL ,
@@ -23,15 +23,15 @@ extern "C" {
2323const _PY_FASTCALL_SMALL_STACK: size_t = 5 ;
2424
2525extern "C" {
26- #[ cfg( all( Py_3_8 , not( any ( PyPy , GraalPy ) ) ) ) ]
26+ #[ cfg( all( Py_3_8 , not( PyPy ) ) ) ]
2727 pub fn _Py_CheckFunctionResult (
2828 tstate : * mut PyThreadState ,
2929 callable : * mut PyObject ,
3030 result : * mut PyObject ,
3131 where_ : * const c_char ,
3232 ) -> * mut PyObject ;
3333
34- #[ cfg( all( Py_3_8 , not( any ( PyPy , GraalPy ) ) ) ) ]
34+ #[ cfg( all( Py_3_8 , not( PyPy ) ) ) ]
3535 pub fn _PyObject_MakeTpCall (
3636 tstate : * mut PyThreadState ,
3737 callable : * mut PyObject ,
@@ -52,7 +52,7 @@ pub unsafe fn PyVectorcall_NARGS(n: size_t) -> Py_ssize_t {
5252 n. try_into ( ) . expect ( "cannot fail due to mask" )
5353}
5454
55- #[ cfg( all( Py_3_8 , not( any ( PyPy , GraalPy ) ) ) ) ]
55+ #[ cfg( all( Py_3_8 , not( PyPy ) ) ) ]
5656#[ inline( always) ]
5757pub unsafe fn PyVectorcall_Function ( callable : * mut PyObject ) -> Option < vectorcallfunc > {
5858 assert ! ( !callable. is_null( ) ) ;
@@ -67,7 +67,7 @@ pub unsafe fn PyVectorcall_Function(callable: *mut PyObject) -> Option<vectorcal
6767 * ptr
6868}
6969
70- #[ cfg( all( Py_3_8 , not( any ( PyPy , GraalPy ) ) ) ) ]
70+ #[ cfg( all( Py_3_8 , not( PyPy ) ) ) ]
7171#[ inline( always) ]
7272pub unsafe fn _PyObject_VectorcallTstate (
7373 tstate : * mut PyThreadState ,
@@ -148,7 +148,7 @@ pub unsafe fn _PyObject_FastCall(
148148 _PyObject_FastCallTstate ( PyThreadState_GET ( ) , func, args, nargs)
149149}
150150
151- #[ cfg( all( Py_3_8 , not( any ( PyPy , GraalPy ) ) ) ) ]
151+ #[ cfg( all( Py_3_8 , not( PyPy ) ) ) ]
152152#[ inline( always) ]
153153pub unsafe fn _PyObject_CallNoArg ( func : * mut PyObject ) -> * mut PyObject {
154154 _PyObject_VectorcallTstate (
@@ -166,7 +166,7 @@ extern "C" {
166166 pub fn _PyObject_CallNoArg ( func : * mut PyObject ) -> * mut PyObject ;
167167}
168168
169- #[ cfg( all( Py_3_8 , not( any ( PyPy , GraalPy ) ) ) ) ]
169+ #[ cfg( all( Py_3_8 , not( PyPy ) ) ) ]
170170#[ inline( always) ]
171171pub unsafe fn PyObject_CallOneArg ( func : * mut PyObject , arg : * mut PyObject ) -> * mut PyObject {
172172 assert ! ( !arg. is_null( ) ) ;
@@ -177,7 +177,7 @@ pub unsafe fn PyObject_CallOneArg(func: *mut PyObject, arg: *mut PyObject) -> *m
177177 _PyObject_VectorcallTstate ( tstate, func, args, nargsf, std:: ptr:: null_mut ( ) )
178178}
179179
180- #[ cfg( all( Py_3_9 , not( any ( PyPy , GraalPy ) ) ) ) ]
180+ #[ cfg( all( Py_3_9 , not( PyPy ) ) ) ]
181181#[ inline( always) ]
182182pub unsafe fn PyObject_CallMethodNoArgs (
183183 self_ : * mut PyObject ,
@@ -191,7 +191,7 @@ pub unsafe fn PyObject_CallMethodNoArgs(
191191 )
192192}
193193
194- #[ cfg( all( Py_3_9 , not( any ( PyPy , GraalPy ) ) ) ) ]
194+ #[ cfg( all( Py_3_9 , not( PyPy ) ) ) ]
195195#[ inline( always) ]
196196pub unsafe fn PyObject_CallMethodOneArg (
197197 self_ : * mut PyObject ,
@@ -219,7 +219,7 @@ extern "C" {
219219 pub fn PyObject_LengthHint ( o : * mut PyObject , arg1 : Py_ssize_t ) -> Py_ssize_t ;
220220
221221 #[ cfg( not( Py_3_11 ) ) ] // moved to src/buffer.rs from 3.11
222- #[ cfg( all( Py_3_9 , not( any ( PyPy , GraalPy ) ) ) ) ]
222+ #[ cfg( all( Py_3_9 , not( PyPy ) ) ) ]
223223 pub fn PyObject_CheckBuffer ( obj : * mut PyObject ) -> c_int ;
224224}
225225
0 commit comments