fix declaration of PyBuffer_FillInfo()
authorStefan Behnel <stefan_ml@behnel.de>
Thu, 10 Oct 2013 16:55:28 +0000 (18:55 +0200)
committerStefan Behnel <stefan_ml@behnel.de>
Thu, 10 Oct 2013 16:55:28 +0000 (18:55 +0200)
Cython/Includes/cpython/buffer.pxd

index ea2a8c3..01023e6 100644 (file)
@@ -96,9 +96,8 @@ cdef extern from "Python.h":
     # (Fortran-style if fort is 'F' or C-style otherwise) array of the
     # given shape with the given number of bytes per element.
 
-    int PyBuffer_FillInfo(Py_buffer *view, void *buf,
-                          Py_ssize_t len, int readonly,
-                          int flags) except -1
+    int PyBuffer_FillInfo(Py_buffer *view, object exporter, void *buf,
+                          Py_ssize_t len, int readonly, int flags) except -1
     # Fill in a buffer-info structure, view, correctly for an exporter
     # that can only share a contiguous chunk of memory of “unsigned
     # bytes” of the given length. Return 0 on success and -1 (with