Here's a patch bringing the ByBuffer_Release declaration up to speed
with current Python headers.

-- 
This email may be signed or encrypted with GPG (http://www.gnupg.org).
The GPG signature (if present) will be attached as 'signature.asc'.
For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy

My public key is at http://www.physics.drexel.edu/~wking/pubkey.txt
# HG changeset patch
# User W. Trevor King <[email protected]>
# Date 1292760469 18000
# Node ID 703ccf60e7e2da6608bd33adbcf9d5d869015af8
# Parent  3acb88570aa589bc92c45ac1ada9fd4ff55a07e2
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 -r 3acb88570aa5 -r 703ccf60e7e2 Cython/Includes/cpython/buffer.pxd
--- a/Cython/Includes/cpython/buffer.pxd        Thu Dec 16 22:40:25 2010 -0300
+++ b/Cython/Includes/cpython/buffer.pxd        Sun Dec 19 07:07:49 2010 -0500
@@ -49,9 +49,9 @@
 
     # 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)
     # ??

Attachment: pgpWtfWvdMoqf.pgp
Description: PGP signature

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to