@@ -549,24 +549,6 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
549549 */
550550
551551
552- PyAPI_FUNC (void ) PyObject_ReleaseBuffer (PyObject * obj , Py_buffer * view );
553-
554-
555- /* C-API version of the releasebuffer function call. It
556- checks to make sure the object has the required function
557- pointer and issues the call. The obj must have the buffer
558- interface or this function will cause a segfault (i.e. it
559- is assumed to be called only after a corresponding
560- getbuffer which already verified the existence of the
561- tp_as_buffer pointer).
562-
563- Returns 0 on success and -1 (with an error raised) on
564- failure. This function always succeeds (as a NO-OP) if
565- there is no releasebuffer function for the object so that
566- it can always be called when the consumer is done with the
567- buffer
568- */
569-
570552 PyAPI_FUNC (void * ) PyBuffer_GetPointer (Py_buffer * view , Py_ssize_t * indices );
571553
572554 /* Get the memory area pointed to by the indices for the buffer given.
@@ -623,7 +605,7 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
623605 per element.
624606 */
625607
626- PyAPI_FUNC (int ) PyBuffer_FillInfo (Py_buffer * view , void * buf ,
608+ PyAPI_FUNC (int ) PyBuffer_FillInfo (Py_buffer * view , PyObject * o , void * buf ,
627609 Py_ssize_t len , int readonly ,
628610 int flags );
629611
@@ -633,6 +615,11 @@ xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx*/
633615 and -1 (with raising an error) on error.
634616 */
635617
618+ PyAPI_FUNC (void ) PyBuffer_Release (Py_buffer * view );
619+
620+ /* Releases a Py_buffer obtained from getbuffer ParseTuple's s*.
621+ */
622+
636623 PyAPI_FUNC (PyObject * ) PyObject_Format (PyObject * obj ,
637624 PyObject * format_spec );
638625 /*
0 commit comments