[pypy-svn] r47605 - pypy/dist/pypy/rpython/lltypesystem
fijal at codespeak.net
fijal at codespeak.net
Fri Oct 19 18:54:46 CEST 2007
Author: fijal
Date: Fri Oct 19 18:54:46 2007
New Revision: 47605
Modified:
pypy/dist/pypy/rpython/lltypesystem/rffi.py
Log:
Use new rffi_platform.sizeof
Modified: pypy/dist/pypy/rpython/lltypesystem/rffi.py
==============================================================================
--- pypy/dist/pypy/rpython/lltypesystem/rffi.py (original)
+++ pypy/dist/pypy/rpython/lltypesystem/rffi.py Fri Oct 19 18:54:46 2007
@@ -11,6 +11,7 @@
from pypy.rpython.extregistry import ExtRegistryEntry
from pypy.rlib.unroll import unrolling_iterable
from pypy.tool.sourcetools import func_with_new_name
+from pypy.rpython.tool.rfficache import platform
import os
class CConstant(Symbolic):
@@ -136,8 +137,6 @@
# ____________________________________________________________
-from pypy.rpython.tool.rfficache import platform
-
TYPES = []
for _name in 'short int long'.split():
for name in (_name, 'unsigned ' + _name):
@@ -232,7 +231,8 @@
hints['c_name'] = name
def lazy_getsize(result=[]):
if not result:
- size = platform.sizeof(name, **kwds)
+ from pypy.rpython.tool import rffi_platform
+ size = rffi_platform.sizeof(name, "", **kwds)
result.append(size)
return result[0]
hints['getsize'] = lazy_getsize
More information about the Pypy-commit
mailing list