diff Include/memoryobject.h @ 43423:0476a2cc5658

Change PyBuffer to Py_buffer to be consistent with other non-object structures like Py_complex. Add some more functionality to the memoryview object.
author Travis E. Oliphant <oliphant@enthought.com>
date Sun, 23 Sep 2007 02:00:13 +0000
parents 4e57c36f6d2e
children 4ea945cbbb6d
line wrap: on
line diff
--- a/Include/memoryobject.h	Fri Sep 21 20:50:26 2007 +0000
+++ b/Include/memoryobject.h	Sun Sep 23 02:00:13 2007 +0000
@@ -10,7 +10,7 @@
 typedef struct {
         PyObject_HEAD
         PyObject *base;
-        PyBuffer view;
+        Py_buffer view;
 } PyMemoryViewObject;
 
 
@@ -57,7 +57,7 @@
 
 PyAPI_FUNC(PyObject *) PyMemoryView_FromObject(PyObject *base);
 
-PyAPI_FUNC(PyObject *) PyMemoryView_FromMemory(PyBuffer *info);
+PyAPI_FUNC(PyObject *) PyMemoryView_FromMemory(Py_buffer *info);
 	/* create new if bufptr is NULL 
 	    will be a new bytesobject in base */