diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2017-01-24 19:27:12 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2017-01-24 19:27:12 (GMT) |
commit | 07a1f65a9362810e186059ef96e5b9cb19cb9e44 (patch) | |
tree | ad2addd5aafb9432dbf0987ffe9ece5b03b6179d /Include | |
parent | 713640c4c95df999957b5366fb8cd7f443906858 (diff) | |
download | cpython-07a1f65a9362810e186059ef96e5b9cb19cb9e44.zip cpython-07a1f65a9362810e186059ef96e5b9cb19cb9e44.tar.gz cpython-07a1f65a9362810e186059ef96e5b9cb19cb9e44.tar.bz2 |
Issue #29083: Fixed the declaration of some public API functions.
PyArg_VaParse() and PyArg_VaParseTupleAndKeywords() were not available in
limited API. PyArg_ValidateKeywordArguments(), PyArg_UnpackTuple() and
Py_BuildValue() were not available in limited API of version < 3.3 when
PY_SSIZE_T_CLEAN is defined.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/modsupport.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Include/modsupport.h b/Include/modsupport.h index 829aaf8..6d4b6dc 100644 --- a/Include/modsupport.h +++ b/Include/modsupport.h @@ -29,18 +29,18 @@ PyAPI_FUNC(int) PyArg_Parse(PyObject *, const char *, ...); PyAPI_FUNC(int) PyArg_ParseTuple(PyObject *, const char *, ...); PyAPI_FUNC(int) PyArg_ParseTupleAndKeywords(PyObject *, PyObject *, const char *, char **, ...); +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(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); PyAPI_FUNC(int) _PyArg_NoPositional(const char *funcname, PyObject *args); - -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); |