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

fijal at codespeak.net fijal at codespeak.net
Tue Nov 11 19:13:45 CET 2008


Author: fijal
Date: Tue Nov 11 19:13:44 2008
New Revision: 59864

Modified:
   pypy/branch/oo-jit/pypy/rpython/lltypesystem/ll2ctypes.py
Log:
support for bool. I don't know how to represent it, let's assume int by now
(as C doesn't have bool type at all)


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	Tue Nov 11 19:13:44 2008
@@ -42,6 +42,7 @@
         rffi.ULONGLONG:  ctypes.c_ulonglong,
         rffi.SIZE_T:     ctypes.c_size_t,
         lltype.UniChar:  ctypes.c_uint,
+        lltype.Bool:     ctypes.c_long, # XXX
         })
 
 def build_ctypes_struct(S, delayed_builders, max_n=None):



More information about the Pypy-commit mailing list