mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +00:00
Closes #22668: Merge from 3.4.
This commit is contained in:
commit
f5324d7074
5 changed files with 78 additions and 9 deletions
|
@ -45,9 +45,6 @@ typedef struct {
|
|||
} _PyManagedBufferObject;
|
||||
|
||||
|
||||
/* static storage used for casting between formats */
|
||||
#define _Py_MEMORYVIEW_MAX_FORMAT 3 /* must be >= 3 */
|
||||
|
||||
/* memoryview state flags */
|
||||
#define _Py_MEMORYVIEW_RELEASED 0x001 /* access to master buffer blocked */
|
||||
#define _Py_MEMORYVIEW_C 0x002 /* C-contiguous layout */
|
||||
|
@ -62,7 +59,6 @@ typedef struct {
|
|||
int flags; /* state flags */
|
||||
Py_ssize_t exports; /* number of buffer re-exports */
|
||||
Py_buffer view; /* private copy of the exporter's view */
|
||||
char format[_Py_MEMORYVIEW_MAX_FORMAT]; /* used for casting */
|
||||
PyObject *weakreflist;
|
||||
Py_ssize_t ob_array[1]; /* shape, strides, suboffsets */
|
||||
} PyMemoryViewObject;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue