[pypy-svn] r74562 - pypy/trunk/pypy/module/cpyext
afa at codespeak.net
afa at codespeak.net
Wed May 19 09:50:16 CEST 2010
Author: afa
Date: Wed May 19 09:50:14 2010
New Revision: 74562
Modified:
pypy/trunk/pypy/module/cpyext/stubsactive.py
Log:
Fix signature of stub function for PyFile_AsFile()
Modified: pypy/trunk/pypy/module/cpyext/stubsactive.py
==============================================================================
--- pypy/trunk/pypy/module/cpyext/stubsactive.py (original)
+++ pypy/trunk/pypy/module/cpyext/stubsactive.py Wed May 19 09:50:14 2010
@@ -4,7 +4,9 @@
from pypy.module.cpyext.pystate import PyThreadState, PyInterpreterState
- at cpython_api([PyObject], rffi.VOIDP, error=CANNOT_FAIL) #XXX
+FILE = rffi.VOIDP_real.TO
+FILEP = lltype.Ptr(FILE)
+ at cpython_api([PyObject], FILEP, error=CANNOT_FAIL)
def PyFile_AsFile(space, p):
"""Return the file object associated with p as a FILE*.
@@ -13,8 +15,6 @@
PyFile_DecUseCount() functions described below as appropriate."""
raise NotImplementedError
-FILE = rffi.VOIDP_real.TO
-FILEP = lltype.Ptr(FILE)
@cpython_api([PyObject, FILEP, rffi.INT_real], rffi.INT_real, error=-1)
def PyObject_Print(space, o, fp, flags):
"""Print an object o, on file fp. Returns -1 on error. The flags argument
More information about the Pypy-commit
mailing list