summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2023-08-24 17:07:54 (GMT)
committerGitHub <noreply@github.com>2023-08-24 17:07:54 (GMT)
commit773b803c02b25b58af0a64321fbe1c6bf45cba2b (patch)
tree5608e4782653c4815614dbe16db64b69d676285b /Include
parentc55e73112c7b0574d05a522015d0c927de266525 (diff)
downloadcpython-773b803c02b25b58af0a64321fbe1c6bf45cba2b.zip
cpython-773b803c02b25b58af0a64321fbe1c6bf45cba2b.tar.gz
cpython-773b803c02b25b58af0a64321fbe1c6bf45cba2b.tar.bz2
gh-106320: Remove private _PyManagedBuffer_Type (#108431)
Remove private _PyManagedBuffer_Type variable. Move it to the internal C API and no longer export it.
Diffstat (limited to 'Include')
-rw-r--r--Include/cpython/memoryobject.h2
-rw-r--r--Include/internal/pycore_memoryobject.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Include/cpython/memoryobject.h b/Include/cpython/memoryobject.h
index 3837fa8..961161b 100644
--- a/Include/cpython/memoryobject.h
+++ b/Include/cpython/memoryobject.h
@@ -2,8 +2,6 @@
# error "this header file must not be included directly"
#endif
-PyAPI_DATA(PyTypeObject) _PyManagedBuffer_Type;
-
/* The structs are declared here so that macros can work, but they shouldn't
be considered public. Don't access their fields directly, use the macros
and functions instead! */
diff --git a/Include/internal/pycore_memoryobject.h b/Include/internal/pycore_memoryobject.h
index fe19e3f..62e204f 100644
--- a/Include/internal/pycore_memoryobject.h
+++ b/Include/internal/pycore_memoryobject.h
@@ -8,6 +8,8 @@ extern "C" {
# error "this header requires Py_BUILD_CORE define"
#endif
+extern PyTypeObject _PyManagedBuffer_Type;
+
PyObject *
_PyMemoryView_FromBufferProc(PyObject *v, int flags,
getbufferproc bufferproc);