[pypy-svn] r62717 - pypy/trunk/pypy/rpython/lltypesystem

fijal at codespeak.net fijal at codespeak.net
Sat Mar 7 17:57:32 CET 2009


Author: fijal
Date: Sat Mar  7 17:57:29 2009
New Revision: 62717

Modified:
   pypy/trunk/pypy/rpython/lltypesystem/ll2ctypes.py
Log:
it's probably very wrong, but ll2ctypes is used when translating as well
for getting sizes. It requires some refactoring to avoid that, for now
let's say a weakref is a pointer


Modified: pypy/trunk/pypy/rpython/lltypesystem/ll2ctypes.py
==============================================================================
--- pypy/trunk/pypy/rpython/lltypesystem/ll2ctypes.py	(original)
+++ pypy/trunk/pypy/rpython/lltypesystem/ll2ctypes.py	Sat Mar  7 17:57:29 2009
@@ -48,6 +48,7 @@
         lltype.Bool:     ctypes.c_long, # XXX
         llmemory.Address:  ctypes.c_void_p,
         llmemory.GCREF:    ctypes.c_void_p,
+        llmemory.WeakRef:  ctypes.c_void_p, # XXX
         })
 
     # for unicode strings, do not use ctypes.c_wchar because ctypes



More information about the Pypy-commit mailing list