From: W. Trevor King Date: Sun, 19 Dec 2010 12:07:49 +0000 (-0500) Subject: Update PyBuffer_Release() declaration to match new buffer API. X-Git-Tag: 0.14.1rc0~13^2~13 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=75b4f5d49c1197455226bef5e634794d61dba1ff;p=cython.git Update PyBuffer_Release() declaration to match new buffer API. See http://docs.python.org/c-api/buffer.html#PyBuffer_Release for the authoritative definition. --- diff --git a/Cython/Includes/cpython/buffer.pxd b/Cython/Includes/cpython/buffer.pxd index f25c56e9..1b6b82f6 100644 --- a/Cython/Includes/cpython/buffer.pxd +++ b/Cython/Includes/cpython/buffer.pxd @@ -49,9 +49,9 @@ cdef extern from "Python.h": # 0 is returned on success and -1 on error. - void PyBuffer_Release(object obj, object view) - # Release the buffer view over obj. This should be called when the - # buffer is no longer being used as it may free memory from it. + void PyBuffer_Release(Py_buffer *view) + # Release the buffer view. This should be called when the buffer + # is no longer being used as it may free memory from it. void* PyBuffer_GetPointer(Py_buffer *view, Py_ssize_t *indices) # ??