[pypy-svn] r47312 - pypy/dist/pypy/rpython/lltypesystem

fijal at codespeak.net fijal at codespeak.net
Mon Oct 8 20:54:20 CEST 2007


Author: fijal
Date: Mon Oct  8 20:54:19 2007
New Revision: 47312

Modified:
   pypy/dist/pypy/rpython/lltypesystem/rffi.py
Log:
A helper


Modified: pypy/dist/pypy/rpython/lltypesystem/rffi.py
==============================================================================
--- pypy/dist/pypy/rpython/lltypesystem/rffi.py	(original)
+++ pypy/dist/pypy/rpython/lltypesystem/rffi.py	Mon Oct  8 20:54:19 2007
@@ -212,11 +212,15 @@
 
 def CFixedArray(tp, size):
     return lltype.FixedSizeArray(tp, size)
+CFixedArray._annspecialcase_ = 'specialize:memo'
 
 def CArray(tp):
     return lltype.Array(tp, hints={'nolength': True})
 CArray._annspecialcase_ = 'specialize:memo'
 
+def CArrayPtr(tp):
+    return lltype.Ptr(CArray(tp))
+
 def COpaque(name, hints=None, **kwds):
     if hints is None:
         hints = {}



More information about the Pypy-commit mailing list