Commit b1196d37 authored by Stefan Behnel's avatar Stefan Behnel

fix declaration of PyBuffer_FillInfo()

--HG--
extra : transplant_source : %83%FAO%836%1Dw%5B%E3%94%E1%E6%7F%0C%EF%D9E%DE%D2%A2
parent 69bc437d
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment