mirror of
https://github.com/python/cpython.git
synced 2025-10-21 14:12:27 +00:00
Eliminate use of PyBUF_CHARACTER flag which is no longer part of the buffer interface. Fix up array module to export the correct format for wide-builds.
This commit is contained in:
parent
d417a154e4
commit
ddacf96868
5 changed files with 20 additions and 23 deletions
|
@ -160,18 +160,17 @@ typedef void (*releasebufferproc)(PyObject *, Py_buffer *);
|
|||
|
||||
/* Flags for getting buffers */
|
||||
#define PyBUF_SIMPLE 0
|
||||
#define PyBUF_CHARACTER 1
|
||||
#define PyBUF_WRITABLE 0x0002
|
||||
#define PyBUF_WRITABLE 0x0001
|
||||
/* we used to include an E, backwards compatible alias */
|
||||
#define PyBUF_WRITEABLE PyBUF_WRITABLE
|
||||
#define PyBUF_LOCK 0x0004
|
||||
#define PyBUF_FORMAT 0x0008
|
||||
#define PyBUF_ND 0x0010
|
||||
#define PyBUF_STRIDES (0x0020 | PyBUF_ND)
|
||||
#define PyBUF_C_CONTIGUOUS (0x0040 | PyBUF_STRIDES)
|
||||
#define PyBUF_F_CONTIGUOUS (0x0080 | PyBUF_STRIDES)
|
||||
#define PyBUF_ANY_CONTIGUOUS (0x0100 | PyBUF_STRIDES)
|
||||
#define PyBUF_INDIRECT (0x0200 | PyBUF_STRIDES)
|
||||
#define PyBUF_LOCK 0x0002
|
||||
#define PyBUF_FORMAT 0x0004
|
||||
#define PyBUF_ND 0x0008
|
||||
#define PyBUF_STRIDES (0x0010 | PyBUF_ND)
|
||||
#define PyBUF_C_CONTIGUOUS (0x0020 | PyBUF_STRIDES)
|
||||
#define PyBUF_F_CONTIGUOUS (0x0040 | PyBUF_STRIDES)
|
||||
#define PyBUF_ANY_CONTIGUOUS (0x0080 | PyBUF_STRIDES)
|
||||
#define PyBUF_INDIRECT (0x0100 | PyBUF_STRIDES)
|
||||
|
||||
#define PyBUF_CONTIG (PyBUF_ND | PyBUF_WRITABLE)
|
||||
#define PyBUF_CONTIG_RO (PyBUF_ND)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue