diff options
author | Sean Reifscheider <jafo@tummy.com> | 2007-09-17 17:55:36 (GMT) |
---|---|---|
committer | Sean Reifscheider <jafo@tummy.com> | 2007-09-17 17:55:36 (GMT) |
commit | 54cf12b625397ff52e30efd9b14f0b61edfdfd9d (patch) | |
tree | 98eb3de7701e05ae46d4fa16e4c357a162e8a9fc /Include/object.h | |
parent | a5b8e04bd572099095fbf6b32dadde637b6e6f7b (diff) | |
download | cpython-54cf12b625397ff52e30efd9b14f0b61edfdfd9d.zip cpython-54cf12b625397ff52e30efd9b14f0b61edfdfd9d.tar.gz cpython-54cf12b625397ff52e30efd9b14f0b61edfdfd9d.tar.bz2 |
Fixing the spelling of "writeable" to "writable", particularly PyBUF_WRITEABLE.
Diffstat (limited to 'Include/object.h')
-rw-r--r-- | Include/object.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Include/object.h b/Include/object.h index 03f4796..c4a5cba 100644 --- a/Include/object.h +++ b/Include/object.h @@ -162,7 +162,9 @@ typedef void (*releasebufferproc)(PyObject *, PyBuffer *); /* Flags for getting buffers */ #define PyBUF_SIMPLE 0 #define PyBUF_CHARACTER 1 -#define PyBUF_WRITEABLE 0x0002 +#define PyBUF_WRITABLE 0x0002 +/* we used to include an E, backwards compatible alias */ +#define PyBUF_WRITEABLE PyBUF_WRITABLE #define PyBUF_LOCKDATA 0x0004 #define PyBUF_FORMAT 0x0008 #define PyBUF_ND 0x0010 @@ -172,19 +174,19 @@ typedef void (*releasebufferproc)(PyObject *, PyBuffer *); #define PyBUF_ANY_CONTIGUOUS (0x0100 | PyBUF_STRIDES) #define PyBUF_INDIRECT (0x0200 | PyBUF_STRIDES) -#define PyBUF_CONTIG (PyBUF_ND | PyBUF_WRITEABLE) +#define PyBUF_CONTIG (PyBUF_ND | PyBUF_WRITABLE) #define PyBUF_CONTIG_RO (PyBUF_ND) #define PyBUF_CONTIG_LCK (PyBUF_ND | PyBUF_LOCKDATA) -#define PyBUF_STRIDED (PyBUF_STRIDES | PyBUF_WRITEABLE) +#define PyBUF_STRIDED (PyBUF_STRIDES | PyBUF_WRITABLE) #define PyBUF_STRIDED_RO (PyBUF_STRIDES) #define PyBUF_STRIDED_LCK (PyBUF_STRIDES | PyBUF_LOCKDATA) -#define PyBUF_RECORDS (PyBUF_STRIDES | PyBUF_WRITEABLE | PyBUF_FORMAT) +#define PyBUF_RECORDS (PyBUF_STRIDES | PyBUF_WRITABLE | PyBUF_FORMAT) #define PyBUF_RECORDS_RO (PyBUF_STRIDES | PyBUF_FORMAT) #define PyBUF_RECORDS_LCK (PyBUF_STRIDES | PyBUF_LOCKDATA | PyBUF_FORMAT) -#define PyBUF_FULL (PyBUF_INDIRECT | PyBUF_WRITEABLE | PyBUF_FORMAT) +#define PyBUF_FULL (PyBUF_INDIRECT | PyBUF_WRITABLE | PyBUF_FORMAT) #define PyBUF_FULL_RO (PyBUF_INDIRECT | PyBUF_FORMAT) #define PyBUF_FULL_LCK (PyBUF_INDIRECT | PyBUF_LOCKDATA | PyBUF_FORMAT) |