PyObject_ReleaseBuffer is now PyBuffer_Release

This commit is contained in:
Benjamin Peterson 2008-09-15 23:30:15 +00:00
parent 843ce52a84
commit 21fcdfb2c2
1 changed files with 2 additions and 2 deletions

View File

@ -465,7 +465,7 @@ success.
::
void PyObject_ReleaseBuffer(PyObject *obj, Py_buffer *view)
void PyBuffer_Release(PyObject *obj, Py_buffer *view)
This is a C-API version of the releasebuffer function call. It checks
to make sure the object has the required function pointer and issues
@ -935,7 +935,7 @@ from a Python object, obj would do the following:
/* After using the information and you don't need it anymore */
if (PyObject_ReleaseBuffer(obj, &view) < 0) {
if (PyBuffer_Release(obj, &view) < 0) {
/* error return */
}