From 75b4f5d49c1197455226bef5e634794d61dba1ff Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 19 Dec 2010 07:07:49 -0500 Subject: [PATCH] Update PyBuffer_Release() declaration to match new buffer API. See http://docs.python.org/c-api/buffer.html#PyBuffer_Release for the authoritative definition. --- Cython/Includes/cpython/buffer.pxd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) # ?? -- 2.26.2