diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2012-06-23 22:00:30 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2012-06-23 22:00:30 (GMT) |
commit | 75aeaa9b18667219bbacbc58ba6efecccef9dfbd (patch) | |
tree | e34c35b8cdc8dd35b5b186d2dce28d0c96eb4df2 /Include | |
parent | 788306a9ab780555732511d87298dbac3e8e5945 (diff) | |
download | cpython-75aeaa9b18667219bbacbc58ba6efecccef9dfbd.zip cpython-75aeaa9b18667219bbacbc58ba6efecccef9dfbd.tar.gz cpython-75aeaa9b18667219bbacbc58ba6efecccef9dfbd.tar.bz2 |
Issue #11626: Add _SizeT functions to stable ABI.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/modsupport.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Include/modsupport.h b/Include/modsupport.h index bf6478f..ecf1dcc 100644 --- a/Include/modsupport.h +++ b/Include/modsupport.h @@ -23,6 +23,8 @@ extern "C" { PyAPI_FUNC(PyObject *) _Py_VaBuildValue_SizeT(const char *, va_list); #endif +/* Due to a glitch in 3.2, the _SizeT versions weren't exported from the DLL. */ +#if !defined(PY_SSIZE_T_CLEAN) || !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x03030000 PyAPI_FUNC(int) PyArg_Parse(PyObject *, const char *, ...); PyAPI_FUNC(int) PyArg_ParseTuple(PyObject *, const char *, ...) Py_FORMAT_PARSETUPLE(PyArg_ParseTuple, 2, 3); PyAPI_FUNC(int) PyArg_ParseTupleAndKeywords(PyObject *, PyObject *, @@ -31,13 +33,14 @@ PyAPI_FUNC(int) PyArg_ValidateKeywordArguments(PyObject *); PyAPI_FUNC(int) PyArg_UnpackTuple(PyObject *, const char *, Py_ssize_t, Py_ssize_t, ...); PyAPI_FUNC(PyObject *) Py_BuildValue(const char *, ...); PyAPI_FUNC(PyObject *) _Py_BuildValue_SizeT(const char *, ...); +#endif #ifndef Py_LIMITED_API PyAPI_FUNC(int) _PyArg_NoKeywords(const char *funcname, PyObject *kw); -#endif PyAPI_FUNC(int) PyArg_VaParse(PyObject *, const char *, va_list); PyAPI_FUNC(int) PyArg_VaParseTupleAndKeywords(PyObject *, PyObject *, const char *, char **, va_list); +#endif PyAPI_FUNC(PyObject *) Py_VaBuildValue(const char *, va_list); PyAPI_FUNC(int) PyModule_AddObject(PyObject *, const char *, PyObject *); |