[pypy-svn] r47622 - pypy/dist/pypy/rpython/tool

fijal at codespeak.net fijal at codespeak.net
Sat Oct 20 12:05:26 CEST 2007


Author: fijal
Date: Sat Oct 20 12:05:26 2007
New Revision: 47622

Modified:
   pypy/dist/pypy/rpython/tool/rffi_platform.py
Log:
Support for proper argument passing


Modified: pypy/dist/pypy/rpython/tool/rffi_platform.py
==============================================================================
--- pypy/dist/pypy/rpython/tool/rffi_platform.py	(original)
+++ pypy/dist/pypy/rpython/tool/rffi_platform.py	Sat Oct 20 12:05:26 2007
@@ -289,7 +289,12 @@
         yield 'dump("size",  sizeof(%s));' % self.name
 
     def build_result(self, info, config_result):
-        return rffi.COpaquePtr(self.name, info['size'])
+        # XXX this is strange mapping, but well, I've got no
+        #     better idea
+        kwds = {}
+        for item in ['includes', 'include_dirs', 'libraries']:
+            kwds[item] = getattr(config_result, '_%s_' % item, [])
+        return rffi.COpaquePtr(self.name, info['size'], **kwds)
 
 class SimpleType(CConfigEntry):
     """An entry in a CConfig class that stands for an externally



More information about the Pypy-commit mailing list