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

fijal at codespeak.net fijal at codespeak.net
Thu Jul 12 16:50:29 CEST 2007


Author: fijal
Date: Thu Jul 12 16:50:28 2007
New Revision: 44971

Modified:
   pypy/dist/pypy/rpython/lltypesystem/rffi.py
Log:
(simonb, fijal) Some shortcut definitions


Modified: pypy/dist/pypy/rpython/lltypesystem/rffi.py
==============================================================================
--- pypy/dist/pypy/rpython/lltypesystem/rffi.py	(original)
+++ pypy/dist/pypy/rpython/lltypesystem/rffi.py	Thu Jul 12 16:50:28 2007
@@ -60,9 +60,15 @@
 
 c_errno = CConstant('errno', lltype.Signed)
 
+# void *
+VOIDP = lltype.Ptr(lltype.FixedSizeArray(lltype.Void, 1))
+
 # char *
 CCHARP = lltype.Ptr(lltype.Array(lltype.Char, hints={'nolength': True}))
 
+# int *
+INTP = lltype.Ptr(lltype.Array(lltype.Signed, hints={'nolength': True}))
+
 # various type mapping
 # str -> char*
 def str2charp(s):



More information about the Pypy-commit mailing list