|
153 | 153 | #undef Py_RETURN_NONE
|
154 | 154 | #define Py_RETURN_NONE return Py_None;
|
155 | 155 |
|
| 156 | +extern int _PyArg_ParseTupleAndKeywords_SizeT(PyObject *argv, PyObject *kwds, const char *format, char** kwdnames, ...); |
| 157 | + |
156 | 158 | // we use defines for these so we don't need to call with va_list
|
157 | 159 | #define _PyArg_Parse_SizeT(ARGV, FORMAT, ...) PyArg_ParseTupleAndKeywords(ARGV, PyDict_New(), FORMAT, NULL, __VA_ARGS__)
|
158 | 160 | #define _PyArg_ParseTuple_SizeT(ARGV, FORMAT, ...) PyArg_ParseTupleAndKeywords(ARGV, PyDict_New(), FORMAT, NULL, __VA_ARGS__)
|
|
167 | 169 | #define PyArg_ParseTuple _PyArg_ParseTuple_SizeT
|
168 | 170 | #endif
|
169 | 171 |
|
| 172 | +#ifndef PyArg_ParseTupleAndKeywords |
| 173 | +#define PyArg_ParseTupleAndKeywords _PyArg_ParseTupleAndKeywords_SizeT |
| 174 | +#endif |
| 175 | + |
| 176 | +#ifndef _PyArg_ParseStack |
| 177 | +#define _PyArg_ParseStack _PyArg_ParseStack_SizeT |
| 178 | +#endif |
| 179 | + |
170 | 180 | extern PyObject * PyTruffle_Unicode_FromFormat(const char *fmt, int s, void* v0, void* v1, void* v2, void* v3, void* v4, void* v5, void* v6, void* v7, void* v8, void* v9, void* v10, void* v11, void* v12, void* v13, void* v14, void* v15, void* v16, void* v17, void* v18, void* v19);
|
171 | 181 | #define PyTruffle_Unicode_FromFormat_0(F1) PyTruffle_Unicode_FromFormat(F1, 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
|
172 | 182 | #define PyTruffle_Unicode_FromFormat_1(F1, V1) PyTruffle_Unicode_FromFormat(F1, 1, (void*)(V1), NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL)
|
|
0 commit comments