[pypy-svn] r72782 - pypy/branch/cpython-extension/pypy/module/cpyext

afa at codespeak.net afa at codespeak.net
Thu Mar 25 10:03:14 CET 2010


Author: afa
Date: Thu Mar 25 10:03:12 2010
New Revision: 72782

Modified:
   pypy/branch/cpython-extension/pypy/module/cpyext/api.py
Log:
use helper function


Modified: pypy/branch/cpython-extension/pypy/module/cpyext/api.py
==============================================================================
--- pypy/branch/cpython-extension/pypy/module/cpyext/api.py	(original)
+++ pypy/branch/cpython-extension/pypy/module/cpyext/api.py	Thu Mar 25 10:03:12 2010
@@ -434,8 +434,7 @@
     # implement structure initialization code
     for name, func in FUNCTIONS.iteritems():
         pypyAPI[structindex[name]] = ctypes.cast(
-            ll2ctypes.lltype2ctypes(llhelper(func.functype,
-                make_wrapper(space, func.callable))),
+            ll2ctypes.lltype2ctypes(func.get_llhelper(space)),
             ctypes.c_void_p)
 
     return modulename.new(ext='')



More information about the Pypy-commit mailing list