@@ -14,9 +14,14 @@ extern "C" {
1414 arg1 : * mut PyObject ,
1515 arg2 : * mut PyObject ,
1616 arg3 : * const c_char ,
17- arg4 : * mut * mut c_char ,
17+ #[ cfg( not( Py_3_13 ) ) ] arg4 : * mut * mut c_char ,
18+ #[ cfg( Py_3_13 ) ] arg4 : * const * const c_char ,
1819 ...
1920 ) -> c_int ;
21+
22+ // skipped PyArg_VaParse
23+ // skipped PyArg_VaParseTupleAndKeywords
24+
2025 pub fn PyArg_ValidateKeywordArguments ( arg1 : * mut PyObject ) -> c_int ;
2126 #[ cfg_attr( PyPy , link_name = "PyPyArg_UnpackTuple" ) ]
2227 pub fn PyArg_UnpackTuple (
@@ -26,32 +31,10 @@ extern "C" {
2631 arg4 : Py_ssize_t ,
2732 ...
2833 ) -> c_int ;
34+
2935 #[ cfg_attr( PyPy , link_name = "PyPy_BuildValue" ) ]
3036 pub fn Py_BuildValue ( arg1 : * const c_char , ...) -> * mut PyObject ;
31- // #[cfg_attr(PyPy, link_name = "_PyPy_BuildValue_SizeT")]
32- //pub fn _Py_BuildValue_SizeT(arg1: *const c_char, ...)
33- // -> *mut PyObject;
34- // #[cfg_attr(PyPy, link_name = "PyPy_VaBuildValue")]
35-
36- // skipped non-limited _PyArg_UnpackStack
37- // skipped non-limited _PyArg_NoKeywords
38- // skipped non-limited _PyArg_NoKwnames
39- // skipped non-limited _PyArg_NoPositional
40- // skipped non-limited _PyArg_BadArgument
41- // skipped non-limited _PyArg_CheckPositional
42-
43- //pub fn Py_VaBuildValue(arg1: *const c_char, arg2: va_list)
44- // -> *mut PyObject;
45-
46- // skipped non-limited _Py_VaBuildStack
47- // skipped non-limited _PyArg_Parser
48-
49- // skipped non-limited _PyArg_ParseTupleAndKeywordsFast
50- // skipped non-limited _PyArg_ParseStack
51- // skipped non-limited _PyArg_ParseStackAndKeywords
52- // skipped non-limited _PyArg_VaParseTupleAndKeywordsFast
53- // skipped non-limited _PyArg_UnpackKeywords
54- // skipped non-limited _PyArg_Fini
37+ // skipped Py_VaBuildValue
5538
5639 #[ cfg( Py_3_10 ) ]
5740 #[ cfg_attr( PyPy , link_name = "PyPyModule_AddObjectRef" ) ]
@@ -159,9 +142,3 @@ pub unsafe fn PyModule_FromDefAndSpec(def: *mut PyModuleDef, spec: *mut PyObject
159142 } ,
160143 )
161144}
162-
163- #[ cfg( not( Py_LIMITED_API ) ) ]
164- #[ cfg_attr( windows, link( name = "pythonXY" ) ) ]
165- extern "C" {
166- pub static mut _Py_PackageContext: * const c_char ;
167- }
0 commit comments