[pypy-svn] r45965 - pypy/branch/pypy-more-rtti-inprogress/rpython/lltypesystem
fijal at codespeak.net
fijal at codespeak.net
Fri Aug 24 19:01:25 CEST 2007
Author: fijal
Date: Fri Aug 24 19:01:25 2007
New Revision: 45965
Modified:
pypy/branch/pypy-more-rtti-inprogress/rpython/lltypesystem/rffi.py
Log:
Simple helpers
Modified: pypy/branch/pypy-more-rtti-inprogress/rpython/lltypesystem/rffi.py
==============================================================================
--- pypy/branch/pypy-more-rtti-inprogress/rpython/lltypesystem/rffi.py (original)
+++ pypy/branch/pypy-more-rtti-inprogress/rpython/lltypesystem/rffi.py Fri Aug 24 19:01:25 2007
@@ -101,6 +101,12 @@
def CStructPtr(*args, **kwds):
return lltype.Ptr(CStruct(*args, **kwds))
+def CArray(name, tp):
+ return lltype.Array(tp, hints={'nolength':True})
+
+def CArrayPtr(name, 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