2 #ifndef Py_MODSUPPORT_H
3 #define Py_MODSUPPORT_H
14 #ifdef PY_SSIZE_T_CLEAN
15 #define PyArg_Parse _PyArg_Parse_SizeT
16 #define PyArg_ParseTuple _PyArg_ParseTuple_SizeT
17 #define PyArg_ParseTupleAndKeywords _PyArg_ParseTupleAndKeywords_SizeT
18 #define PyArg_VaParse _PyArg_VaParse_SizeT
19 #define PyArg_VaParseTupleAndKeywords _PyArg_VaParseTupleAndKeywords_SizeT
20 #define Py_BuildValue _Py_BuildValue_SizeT
21 #define Py_VaBuildValue _Py_VaBuildValue_SizeT
28 PyAPI_FUNC(
int) PyArg_ParseTupleAndKeywords(PyObject *, PyObject *,
29 const
char *,
char **, ...);
31 PyAPI_FUNC(PyObject *) Py_BuildValue(const
char *, ...);
32 PyAPI_FUNC(PyObject *) _Py_BuildValue_SizeT(const
char *, ...);
35 PyAPI_FUNC(
int) PyArg_VaParse(PyObject *, const
char *, va_list);
36 PyAPI_FUNC(
int) PyArg_VaParseTupleAndKeywords(PyObject *, PyObject *,
37 const
char *,
char **, va_list);
38 PyAPI_FUNC(PyObject *) Py_VaBuildValue(const
char *, va_list);
40 PyAPI_FUNC(
int) PyModule_AddObject(PyObject *, const
char *, PyObject *);
41 PyAPI_FUNC(
int) PyModule_AddIntConstant(PyObject *, const
char *,
long);
42 PyAPI_FUNC(
int) PyModule_AddStringConstant(PyObject *, const
char *, const
char *);
43 #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
44 #define PyModule_AddStringMacro(m, c) PyModule_AddStringConstant(m, #c, c)
46 #define PYTHON_API_VERSION 1013
47 #define PYTHON_API_STRING "1013"
99 #if SIZEOF_SIZE_T != SIZEOF_INT
102 #define Py_InitModule4 Py_InitModule4_64
109 #if SIZEOF_SIZE_T != SIZEOF_INT
110 #undef Py_InitModule4
111 #define Py_InitModule4 Py_InitModule4TraceRefs_64
113 #define Py_InitModule4 Py_InitModule4TraceRefs
118 const
char *
doc, PyObject *
self,
121 #define Py_InitModule(name, methods) \
122 Py_InitModule4(name, methods, (char *)NULL, (PyObject *)NULL, \
125 #define Py_InitModule3(name, methods, doc) \
126 Py_InitModule4(name, methods, doc, (PyObject *)NULL, \