[pypy-svn] r76505 - pypy/branch/fast-ctypes/pypy/rlib
getxsick at codespeak.net
getxsick at codespeak.net
Fri Aug 6 13:34:53 CEST 2010
Author: getxsick
Date: Fri Aug 6 13:34:52 2010
New Revision: 76505
Modified:
pypy/branch/fast-ctypes/pypy/rlib/rjitffi.py
Log:
keep CallDescrs in one place
Modified: pypy/branch/fast-ctypes/pypy/rlib/rjitffi.py
==============================================================================
--- pypy/branch/fast-ctypes/pypy/rlib/rjitffi.py (original)
+++ pypy/branch/fast-ctypes/pypy/rlib/rjitffi.py Fri Aug 6 13:34:52 2010
@@ -83,9 +83,9 @@
if self.res_type == 'i':
cls = SignedCallDescr
elif self.res_type == 'f':
- cls = descr.FloatCallDescr
+ cls = FloatCallDescr
elif self.res_type == 'v':
- cls = descr.VoidCallDescr
+ cls = VoidCallDescr
else:
raise NotImplementedError('Unknown type of descr: %s'
% self.res_type)
@@ -129,3 +129,6 @@
_clsname = 'SignedCallDescr'
def get_result_size(self, translate_support_code):
return symbolic.get_size(lltype.Signed, translate_support_code)
+
+FloatCallDescr = descr.FloatCallDescr
+VoidCallDescr = descr.VoidCallDescr
More information about the Pypy-commit
mailing list