[pypy-svn] r54730 - pypy/branch/oo-jit/pypy/jit/codegen/i386

antocuni at codespeak.net antocuni at codespeak.net
Wed May 14 14:42:15 CEST 2008


Author: antocuni
Date: Wed May 14 14:42:12 2008
New Revision: 54730

Modified:
   pypy/branch/oo-jit/pypy/jit/codegen/i386/codebuf_nt.py
Log:
(fijal) port from ctypes_platform to rffi_platform



Modified: pypy/branch/oo-jit/pypy/jit/codegen/i386/codebuf_nt.py
==============================================================================
--- pypy/branch/oo-jit/pypy/jit/codegen/i386/codebuf_nt.py	(original)
+++ pypy/branch/oo-jit/pypy/jit/codegen/i386/codebuf_nt.py	Wed May 14 14:42:12 2008
@@ -1,11 +1,7 @@
 import ctypes
-import pypy.rpython.rctypes.implementation
-from pypy.rpython.rctypes.tool import ctypes_platform
-from pypy.rpython.rctypes.tool.ctypes_platform import ConstantInteger
-from pypy.rpython.rctypes.tool.ctypes_platform import SimpleType
-
-
-raise NotImplementedError("this needs to be ported from rctypes to rffi")
+from pypy.rpython.tool import rffi_platform
+from pypy.rpython.tool.rffi_platform import ConstantInteger
+from pypy.rpython.tool.rffi_platform import SimpleType
 
 
 class CConfig:
@@ -19,7 +15,7 @@
     MEM_RELEASE            = ConstantInteger('MEM_RELEASE')
     PAGE_EXECUTE_READWRITE = ConstantInteger('PAGE_EXECUTE_READWRITE')
 
-globals().update(ctypes_platform.configure(CConfig))
+globals().update(rffi_platform.configure(CConfig))
 
 # cannot use c_void_p as return value of functions :-(
 PTR = ctypes.POINTER(ctypes.c_char)



More information about the Pypy-commit mailing list