summaryrefslogtreecommitdiffstats
path: root/Include/objimpl.h
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-09-11 08:03:14 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-09-11 08:03:14 (GMT)
commit9fab79bcb5b83dc0247ce4cd60486341c73e7fd5 (patch)
treeb24f07e6f0ccb42ae02628248d1b521d6700386f /Include/objimpl.h
parentc16595e567d51a1773be30c34622620b52be7acf (diff)
downloadcpython-9fab79bcb5b83dc0247ce4cd60486341c73e7fd5.zip
cpython-9fab79bcb5b83dc0247ce4cd60486341c73e7fd5.tar.gz
cpython-9fab79bcb5b83dc0247ce4cd60486341c73e7fd5.tar.bz2
Issue #26900: Excluded underscored names and other private API from limited API.
Diffstat (limited to 'Include/objimpl.h')
-rw-r--r--Include/objimpl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Include/objimpl.h b/Include/objimpl.h
index 519ae51..c0ed9b7 100644
--- a/Include/objimpl.h
+++ b/Include/objimpl.h
@@ -99,8 +99,10 @@ PyAPI_FUNC(void *) PyObject_Calloc(size_t nelem, size_t elsize);
PyAPI_FUNC(void *) PyObject_Realloc(void *ptr, size_t new_size);
PyAPI_FUNC(void) PyObject_Free(void *ptr);
+#ifndef Py_LIMITED_API
/* This function returns the number of allocated memory blocks, regardless of size */
PyAPI_FUNC(Py_ssize_t) _Py_GetAllocatedBlocks(void);
+#endif /* !Py_LIMITED_API */
/* Macros */
#ifdef WITH_PYMALLOC
@@ -323,8 +325,10 @@ extern PyGC_Head *_PyGC_generation0;
(!PyTuple_CheckExact(obj) || _PyObject_GC_IS_TRACKED(obj)))
#endif /* Py_LIMITED_API */
+#ifndef Py_LIMITED_API
PyAPI_FUNC(PyObject *) _PyObject_GC_Malloc(size_t size);
PyAPI_FUNC(PyObject *) _PyObject_GC_Calloc(size_t size);
+#endif /* !Py_LIMITED_API */
PyAPI_FUNC(PyObject *) _PyObject_GC_New(PyTypeObject *);
PyAPI_FUNC(PyVarObject *) _PyObject_GC_NewVar(PyTypeObject *, Py_ssize_t);
PyAPI_FUNC(void) PyObject_GC_Track(void *);