cpython/Include/cpython/memoryobject.h

#ifndef Py_CPYTHON_MEMORYOBJECT_H
#  error "this header file must not be included directly"
#endif

/* 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! */
#define _Py_MANAGED_BUFFER_RELEASED
#define _Py_MANAGED_BUFFER_FREE_FORMAT

_PyManagedBufferObject;


/* memoryview state flags */
#define _Py_MEMORYVIEW_RELEASED
#define _Py_MEMORYVIEW_C
#define _Py_MEMORYVIEW_FORTRAN
#define _Py_MEMORYVIEW_SCALAR
#define _Py_MEMORYVIEW_PIL
#define _Py_MEMORYVIEW_RESTRICTED

PyMemoryViewObject;

#define _PyMemoryView_CAST(op)

/* Get a pointer to the memoryview's private copy of the exporter's buffer. */
static inline Py_buffer* PyMemoryView_GET_BUFFER(PyObject *op) {}
#define PyMemoryView_GET_BUFFER(op)

/* Get a pointer to the exporting object (this may be NULL!). */
static inline PyObject* PyMemoryView_GET_BASE(PyObject *op) {}
#define PyMemoryView_GET_BASE(op)