[pypy-svn] r60081 - pypy/branch/oo-jit/pypy/rpython/lltypesystem

fijal at codespeak.net fijal at codespeak.net
Sat Nov 22 17:10:46 CET 2008


Author: fijal
Date: Sat Nov 22 17:10:45 2008
New Revision: 60081

Modified:
   pypy/branch/oo-jit/pypy/rpython/lltypesystem/ll2ctypes.py
Log:
support for addresses, NULL only so far


Modified: pypy/branch/oo-jit/pypy/rpython/lltypesystem/ll2ctypes.py
==============================================================================
--- pypy/branch/oo-jit/pypy/rpython/lltypesystem/ll2ctypes.py	(original)
+++ pypy/branch/oo-jit/pypy/rpython/lltypesystem/ll2ctypes.py	Sat Nov 22 17:10:45 2008
@@ -46,6 +46,7 @@
         rffi.SIZE_T:     ctypes.c_size_t,
         lltype.UniChar:  ctypes.c_uint,
         lltype.Bool:     ctypes.c_long, # XXX
+        llmemory.Address:  ctypes.c_void_p,
         })
 
 
@@ -597,6 +598,11 @@
         else:
             raise NotImplementedError(T)
         llobj = lltype._ptr(T, container, solid=True)
+    elif T is llmemory.Address:
+        if cobj is None:
+            llobj = llmemory.NULL
+        else:
+            xxx
     elif T is lltype.Char:
         llobj = chr(cobj)
     elif T is lltype.UniChar:



More information about the Pypy-commit mailing list