[pypy-svn] r74631 - pypy/trunk/pypy/module/cpyext
afa at codespeak.net
afa at codespeak.net
Fri May 21 16:16:22 CEST 2010
Author: afa
Date: Fri May 21 16:16:21 2010
New Revision: 74631
Modified:
pypy/trunk/pypy/module/cpyext/stubsactive.py
Log:
Fix signature of PyFile_AsFile, allows compilation with C++
Modified: pypy/trunk/pypy/module/cpyext/stubsactive.py
==============================================================================
--- pypy/trunk/pypy/module/cpyext/stubsactive.py (original)
+++ pypy/trunk/pypy/module/cpyext/stubsactive.py Fri May 21 16:16:21 2010
@@ -1,11 +1,10 @@
from pypy.module.cpyext.pyobject import PyObject
from pypy.module.cpyext.api import cpython_api, Py_ssize_t, CANNOT_FAIL, CConfig
+from pypy.module.cpyext.object import FILEP
from pypy.rpython.lltypesystem import rffi, lltype
from pypy.module.cpyext.pystate import PyThreadState, PyInterpreterState
-FILE = rffi.VOIDP_real.TO
-FILEP = lltype.Ptr(FILE)
@cpython_api([PyObject], FILEP, error=CANNOT_FAIL)
def PyFile_AsFile(space, p):
"""Return the file object associated with p as a FILE*.
More information about the Pypy-commit
mailing list