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

fijal at codespeak.net fijal at codespeak.net
Fri Apr 2 02:56:58 CEST 2010


Author: fijal
Date: Fri Apr  2 02:56:55 2010
New Revision: 73273

Modified:
   pypy/branch/cpython-extension/pypy/module/cpyext/api.py
Log:
* a new type
* don't set it up twice


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	Fri Apr  2 02:56:55 2010
@@ -261,7 +261,8 @@
 cpython_struct("PyStringObject", PyStringObjectFields, PyStringObjectStruct)
 
 VA_TP_LIST = {'int': rffi.INT,
-              'PyObject*': PyObject}
+              'PyObject*': PyObject,
+              'int*': rffi.INTP}
 
 def configure_types():
     for name, TYPE in rffi_platform.configure(CConfig).iteritems():
@@ -453,8 +454,6 @@
             ll2ctypes.lltype2ctypes(func.get_llhelper(space)),
             ctypes.c_void_p)
 
-    setup_va_functions(eci)
-
     return modulename.new(ext='')
 
 def generate_macros(export_symbols, rename=True, do_deref=True):



More information about the Pypy-commit mailing list