[pypy-svn] pypy real-voidp: The basic idea

amauryfa commits-noreply at bitbucket.org
Mon Feb 28 11:32:32 CET 2011


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: real-voidp
Changeset: r42340:2ec574e20deb
Date: 2011-02-28 10:54 +0100
http://bitbucket.org/pypy/pypy/changeset/2ec574e20deb/

Log:	The basic idea

diff --git a/pypy/rpython/lltypesystem/rffi.py b/pypy/rpython/lltypesystem/rffi.py
--- a/pypy/rpython/lltypesystem/rffi.py
+++ b/pypy/rpython/lltypesystem/rffi.py
@@ -550,8 +550,8 @@
 r_singlefloat = rarithmetic.r_singlefloat
 
 # void *   - for now, represented as char *
-VOIDP = lltype.Ptr(lltype.Array(lltype.Char, hints={'nolength': True}))
 VOIDP_real = lltype.Ptr(lltype.Array(lltype.Char, hints={'nolength': True, 'render_as_void': True}))
+VOIDP = VOIDP_real
 NULL = lltype.nullptr(VOIDP.TO)
 
 # void **


More information about the Pypy-commit mailing list