We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98a4ee5 commit 6119c2bCopy full SHA for 6119c2b
Include/cpython/object.h
@@ -2,6 +2,8 @@
2
# error "this header file must not be included directly"
3
#endif
4
5
+#include "buffer.h" // for Py_buffer, included after PyObject has been defined
6
+
7
PyAPI_FUNC(void) _Py_NewReference(PyObject *op);
8
9
#ifdef Py_TRACE_REFS
@@ -45,8 +47,6 @@ typedef struct _Py_Identifier {
45
47
#define _Py_static_string(varname, value) static _Py_Identifier varname = _Py_static_string_init(value)
46
48
#define _Py_IDENTIFIER(varname) _Py_static_string(PyId_##varname, #varname)
49
-/* Py_buffer is defined in buffer.h */
-typedef struct bufferinfo Py_buffer;
50
typedef int (*getbufferproc)(PyObject *, Py_buffer *, int);
51
typedef void (*releasebufferproc)(PyObject *, Py_buffer *);
52
0 commit comments