diff options
| author | Travis E. Oliphant <oliphant@enthought.com> | 2007-09-23 02:00:13 +0000 |
|---|---|---|
| committer | Travis E. Oliphant <oliphant@enthought.com> | 2007-09-23 02:00:13 +0000 |
| commit | 8ae62b60940ae0f33b1792703f3255e9c6a6a88a (patch) | |
| tree | a7046041eb8d6943b159827500114aa855f69678 /Include/memoryobject.h | |
| parent | 3f993c3b52f9799a010b889d20f1bc129eb89704 (diff) | |
| download | cpython-git-8ae62b60940ae0f33b1792703f3255e9c6a6a88a.tar.gz | |
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 'Include/memoryobject.h')
| -rw-r--r-- | Include/memoryobject.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Include/memoryobject.h b/Include/memoryobject.h index 1713e8f81c..4426cd89af 100644 --- a/Include/memoryobject.h +++ b/Include/memoryobject.h @@ -10,7 +10,7 @@ extern "C" { typedef struct { PyObject_HEAD PyObject *base; - PyBuffer view; + Py_buffer view; } PyMemoryViewObject; @@ -57,7 +57,7 @@ PyAPI_FUNC(PyObject *) PyMemoryView_GetContiguous(PyObject *base, int buffertype 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 */ |
