@@ -7,7 +7,9 @@ extern "C" {
77#ifdef PY_SSIZE_T_CLEAN
88#define PyObject_CallFunction _PyObject_CallFunction_SizeT
99#define PyObject_CallMethod _PyObject_CallMethod_SizeT
10+ #ifndef Py_LIMITED_API
1011#define _PyObject_CallMethodId _PyObject_CallMethodId_SizeT
12+ #endif /* !Py_LIMITED_API */
1113#endif
1214
1315/* Abstract Object Interface (many thanks to Jim Fulton) */
@@ -385,6 +387,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
385387 Python expression: o.method(args).
386388 */
387389
390+ #ifndef Py_LIMITED_API
388391 PyAPI_FUNC (PyObject * ) _PyObject_CallMethodId (PyObject * o ,
389392 _Py_Identifier * method ,
390393 const char * format , ...);
@@ -393,6 +396,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
393396 Like PyObject_CallMethod, but expect a _Py_Identifier* as the
394397 method name.
395398 */
399+ #endif /* !Py_LIMITED_API */
396400
397401 PyAPI_FUNC (PyObject * ) _PyObject_CallFunction_SizeT (PyObject * callable ,
398402 const char * format ,
@@ -401,10 +405,12 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
401405 const char * name ,
402406 const char * format ,
403407 ...);
408+ #ifndef Py_LIMITED_API
404409 PyAPI_FUNC (PyObject * ) _PyObject_CallMethodId_SizeT (PyObject * o ,
405410 _Py_Identifier * name ,
406411 const char * format ,
407412 ...);
413+ #endif /* !Py_LIMITED_API */
408414
409415 PyAPI_FUNC (PyObject * ) PyObject_CallFunctionObjArgs (PyObject * callable ,
410416 ...);
@@ -420,9 +426,11 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
420426
421427 PyAPI_FUNC (PyObject * ) PyObject_CallMethodObjArgs (PyObject * o ,
422428 PyObject * method , ...);
429+ #ifndef Py_LIMITED_API
423430 PyAPI_FUNC (PyObject * ) _PyObject_CallMethodIdObjArgs (PyObject * o ,
424431 struct _Py_Identifier * method ,
425432 ...);
433+ #endif /* !Py_LIMITED_API */
426434
427435 /*
428436 Call the method named m of object o with a variable number of
@@ -1340,13 +1348,13 @@ PyAPI_FUNC(int) _PyObject_RealIsSubclass(PyObject *derived, PyObject *cls);
13401348PyAPI_FUNC (char * const * ) _PySequence_BytesToCharpArray (PyObject * self );
13411349
13421350PyAPI_FUNC (void ) _Py_FreeCharPArray (char * const array []);
1343- #endif
13441351
13451352/* For internal use by buffer API functions */
13461353PyAPI_FUNC (void ) _Py_add_one_to_index_F (int nd , Py_ssize_t * index ,
13471354 const Py_ssize_t * shape );
13481355PyAPI_FUNC (void ) _Py_add_one_to_index_C (int nd , Py_ssize_t * index ,
13491356 const Py_ssize_t * shape );
1357+ #endif /* !Py_LIMITED_API */
13501358
13511359
13521360#ifdef __cplusplus
0 commit comments