diff options
author | Travis E. Oliphant <oliphant@enthought.com> | 2007-09-23 02:00:13 (GMT) |
---|---|---|
committer | Travis E. Oliphant <oliphant@enthought.com> | 2007-09-23 02:00:13 (GMT) |
commit | 8ae62b60940ae0f33b1792703f3255e9c6a6a88a (patch) | |
tree | a7046041eb8d6943b159827500114aa855f69678 /Modules/arraymodule.c | |
parent | 3f993c3b52f9799a010b889d20f1bc129eb89704 (diff) | |
download | cpython-8ae62b60940ae0f33b1792703f3255e9c6a6a88a.zip cpython-8ae62b60940ae0f33b1792703f3255e9c6a6a88a.tar.gz cpython-8ae62b60940ae0f33b1792703f3255e9c6a6a88a.tar.bz2 |
Change PyBuffer to Py_buffer to be consistent with other non-object structures like Py_complex. Add some more functionality to the memoryview object.
Diffstat (limited to 'Modules/arraymodule.c')
-rw-r--r-- | Modules/arraymodule.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/arraymodule.c b/Modules/arraymodule.c index afe4587..27f0365 100644 --- a/Modules/arraymodule.c +++ b/Modules/arraymodule.c @@ -1784,7 +1784,7 @@ static const void *emptybuf = ""; static int -array_buffer_getbuf(arrayobject *self, PyBuffer *view, int flags) +array_buffer_getbuf(arrayobject *self, Py_buffer *view, int flags) { if ((flags & PyBUF_CHARACTER)) { PyErr_SetString(PyExc_TypeError, @@ -1825,7 +1825,7 @@ array_buffer_getbuf(arrayobject *self, PyBuffer *view, int flags) } static void -array_buffer_relbuf(arrayobject *self, PyBuffer *view) +array_buffer_relbuf(arrayobject *self, Py_buffer *view) { self->ob_exports--; } |