[pypy-svn] r47603 - pypy/dist/pypy/rpython/module

fijal at codespeak.net fijal at codespeak.net
Fri Oct 19 18:46:54 CEST 2007


Author: fijal
Date: Fri Oct 19 18:46:54 2007
New Revision: 47603

Modified:
   pypy/dist/pypy/rpython/module/ll_termios.py
Log:
Kill (hopefully last) occurence of old rffi.platform


Modified: pypy/dist/pypy/rpython/module/ll_termios.py
==============================================================================
--- pypy/dist/pypy/rpython/module/ll_termios.py	(original)
+++ pypy/dist/pypy/rpython/module/ll_termios.py	Fri Oct 19 18:46:54 2007
@@ -14,13 +14,18 @@
 from pypy.annotation import model as annmodel
 from pypy.rpython import rclass
 from pypy.rlib import rtermios
-from pypy.rpython.lltypesystem.rffi import platform
+from pypy.rpython.tool import rffi_platform
 
 includes = ['termios.h', 'unistd.h']
 
+class CConfig:
+    _includes_ = includes
+    NCCS = rffi_platform.DefinedConstantInteger('NCCS')
+
+NCCS = rffi_platform.configure(CConfig)['NCCS']
+
 TCFLAG_T = rffi.UINT
 CC_T = rffi.UCHAR
-NCCS = platform.intdefined('NCCS', includes=includes)
 SPEED_T = rffi.UINT
 INT = rffi.INT
 



More information about the Pypy-commit mailing list