summaryrefslogtreecommitdiff
path: root/Include/modsupport.h
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-12-27 17:59:04 +0200
committerSerhiy Storchaka <storchaka@gmail.com>2016-12-27 17:59:04 +0200
commit937b725d64ac8399521757438b50e893947c8b0f (patch)
tree4b1ca1a8ead175576bbfa92aa2433df9acc8d078 /Include/modsupport.h
parent683cb8347a0b92172545ce7fac53937a1958e74c (diff)
downloadcpython-git-937b725d64ac8399521757438b50e893947c8b0f.tar.gz
Issue #28915: Exclude _Py_VaBuildStack from the limited API.
Diffstat (limited to 'Include/modsupport.h')
-rw-r--r--Include/modsupport.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/modsupport.h b/Include/modsupport.h
index 46f548228e..8306ae7def 100644
--- a/Include/modsupport.h
+++ b/Include/modsupport.h
@@ -21,7 +21,9 @@ extern "C" {
#endif /* !Py_LIMITED_API */
#define Py_BuildValue _Py_BuildValue_SizeT
#define Py_VaBuildValue _Py_VaBuildValue_SizeT
+#ifndef Py_LIMITED_API
#define _Py_VaBuildStack _Py_VaBuildStack_SizeT
+#endif
#else
#ifndef Py_LIMITED_API
PyAPI_FUNC(PyObject *) _Py_VaBuildValue_SizeT(const char *, va_list);
@@ -54,12 +56,14 @@ PyAPI_FUNC(int) PyArg_VaParseTupleAndKeywords(PyObject *, PyObject *,
const char *, char **, va_list);
#endif
PyAPI_FUNC(PyObject *) Py_VaBuildValue(const char *, va_list);
+#ifndef Py_LIMITED_API
PyAPI_FUNC(PyObject **) _Py_VaBuildStack(
PyObject **small_stack,
Py_ssize_t small_stack_len,
const char *format,
va_list va,
Py_ssize_t *p_nargs);
+#endif
#ifndef Py_LIMITED_API
typedef struct _PyArg_Parser {