[pypy-svn] r79966 - in pypy/branch/fast-forward/pypy: rlib rpython/module

afa at codespeak.net afa at codespeak.net
Sat Dec 11 09:47:13 CET 2010


Author: afa
Date: Sat Dec 11 09:47:10 2010
New Revision: 79966

Modified:
   pypy/branch/fast-forward/pypy/rlib/rarithmetic.py
   pypy/branch/fast-forward/pypy/rpython/module/ll_strtod.py
Log:
Try to fix translation


Modified: pypy/branch/fast-forward/pypy/rlib/rarithmetic.py
==============================================================================
--- pypy/branch/fast-forward/pypy/rlib/rarithmetic.py	(original)
+++ pypy/branch/fast-forward/pypy/rlib/rarithmetic.py	Sat Dec 11 09:47:10 2010
@@ -567,7 +567,7 @@
 
 formatd_ADD_DOT_0 = 0x1
 
-def formatd(x, code, precision, flags=0):
+def _formatd(x, code, precision, flags):
     "NOT_RPYTHON"
     if flags & DTSF_ALT:
         alt = '#'
@@ -594,6 +594,8 @@
         s = s[:-2]
 
     return s
+def formatd(x, code, precision, flags=0):
+    return _formatd(x, code, precision, flags)
 
 formatd_max_length = 120
 

Modified: pypy/branch/fast-forward/pypy/rpython/module/ll_strtod.py
==============================================================================
--- pypy/branch/fast-forward/pypy/rpython/module/ll_strtod.py	(original)
+++ pypy/branch/fast-forward/pypy/rpython/module/ll_strtod.py	Sat Dec 11 09:47:10 2010
@@ -21,7 +21,7 @@
     def __init__(self):
         self.configure(CConfig)
     
-    @registering(rarithmetic.formatd)
+    @registering(rarithmetic._formatd)
     def register_formatd(self):
         ll_strtod = self.llexternal('LL_strtod_formatd',
                                     [rffi.DOUBLE, rffi.CHAR, rffi.INT], rffi.CCHARP,



More information about the Pypy-commit mailing list