[pypy-svn] r73460 - pypy/branch/cpython-extension/pypy/module/cpyext/src
fijal at codespeak.net
fijal at codespeak.net
Tue Apr 6 17:32:25 CEST 2010
Author: fijal
Date: Tue Apr 6 17:32:24 2010
New Revision: 73460
Modified:
pypy/branch/cpython-extension/pypy/module/cpyext/src/getargs.c
Log:
#if 0 the cleanup_buffer function
Modified: pypy/branch/cpython-extension/pypy/module/cpyext/src/getargs.c
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/src/getargs.c (original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/src/getargs.c Tue Apr 6 17:32:24 2010
@@ -135,12 +135,13 @@
PyMem_FREE(ptr);
}
+#if 0
static void
cleanup_buffer(void *ptr)
{
- Py_FatalError("cleanup_buffer(void *ptr) unimplemented\n");
- //PyBuffer_Release((Py_buffer *) ptr);
+ PyBuffer_Release((Py_buffer *) ptr);
}
+#endif
static int
addcleanup(void *ptr, PyObject **freelist, void (*destr)(void *))
@@ -1219,7 +1220,7 @@
inquiry pred = va_arg(*p_va, inquiry);
p = va_arg(*p_va, PyObject **);
format++;
- if ((*pred)(arg))
+ if ((*pred)(arg))
*p = arg;
else
return converterr("(unspecified)",
More information about the Pypy-commit
mailing list