[Python-checkins] cpython: Issue #28915: Exclude _Py_VaBuildStack from the limited API.

serhiy.storchaka python-checkins at python.org
Tue Dec 27 10:59:27 EST 2016


https://hg.python.org/cpython/rev/fa9933bf4ea0
changeset:   105858:fa9933bf4ea0
user:        Serhiy Storchaka <storchaka at gmail.com>
date:        Tue Dec 27 17:59:04 2016 +0200
summary:
  Issue #28915: Exclude _Py_VaBuildStack from the limited API.

files:
  Include/modsupport.h |  4 ++++
  1 files changed, 4 insertions(+), 0 deletions(-)


diff --git a/Include/modsupport.h b/Include/modsupport.h
--- a/Include/modsupport.h
+++ b/Include/modsupport.h
@@ -21,7 +21,9 @@
 #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 @@
                                                   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 {

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list