summaryrefslogtreecommitdiffstats
path: root/Modules/mmapmodule.c
diff options
context:
space:
mode:
authorTravis E. Oliphant <oliphant@enthought.com>2007-09-23 02:00:13 (GMT)
committerTravis E. Oliphant <oliphant@enthought.com>2007-09-23 02:00:13 (GMT)
commit8ae62b60940ae0f33b1792703f3255e9c6a6a88a (patch)
treea7046041eb8d6943b159827500114aa855f69678 /Modules/mmapmodule.c
parent3f993c3b52f9799a010b889d20f1bc129eb89704 (diff)
downloadcpython-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/mmapmodule.c')
-rw-r--r--Modules/mmapmodule.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/mmapmodule.c b/Modules/mmapmodule.c
index cbea1c4..c2ed5d1 100644
--- a/Modules/mmapmodule.c
+++ b/Modules/mmapmodule.c
@@ -601,7 +601,7 @@ static struct PyMethodDef mmap_object_methods[] = {
/* Functions for treating an mmap'ed file as a buffer */
static int
-mmap_buffer_getbuf(mmap_object *self, PyBuffer *view, int flags)
+mmap_buffer_getbuf(mmap_object *self, Py_buffer *view, int flags)
{
CHECK_VALID(-1);
if (PyBuffer_FillInfo(view, self->data, self->size,
@@ -612,7 +612,7 @@ mmap_buffer_getbuf(mmap_object *self, PyBuffer *view, int flags)
}
static void
-mmap_buffer_releasebuf(mmap_object *self, PyBuffer *view)
+mmap_buffer_releasebuf(mmap_object *self, Py_buffer *view)
{
self->exports--;
}