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

fijal at codespeak.net fijal at codespeak.net
Wed Dec 5 19:26:55 CET 2007


Author: fijal
Date: Wed Dec  5 19:26:54 2007
New Revision: 49398

Modified:
   pypy/dist/pypy/rpython/lltypesystem/rffi.py
Log:
Remove dead code


Modified: pypy/dist/pypy/rpython/lltypesystem/rffi.py
==============================================================================
--- pypy/dist/pypy/rpython/lltypesystem/rffi.py	(original)
+++ pypy/dist/pypy/rpython/lltypesystem/rffi.py	Wed Dec  5 19:26:54 2007
@@ -281,20 +281,6 @@
     setter = llexternal(setter_name, [TYPE], lltype.Void,
                         compilation_info=new_eci, sandboxsafe=sandboxsafe)
     return getter, setter
-    
-##    # XXX THIS IS ONLY A QUICK HACK TO MAKE IT WORK
-##    # In general, we need to re-think a few things to be more consistent,
-##    # e.g. what if a CStruct, COpaque or CExternVariable requires
-##    # some #include...
-##    assert not isinstance(TYPE, lltype.ContainerType)
-##    CTYPE = lltype.FixedSizeArray(TYPE, 1)
-##    c_variable_ref = _CConstantClass('(&%s)' % (name,), lltype.Ptr(CTYPE))
-##    def getter():
-##        return c_variable_ref[0]
-##    def setter(newvalue):
-##        c_variable_ref[0] = newvalue
-##    return (func_with_new_name(getter, '%s_getter' % (name,)),
-##            func_with_new_name(setter, '%s_setter' % (name,)))
 
 # char, represented as a Python character
 # (use SIGNEDCHAR or UCHAR for the small integer types)


More information about the pypy-svn mailing list