[pypy-svn] r45291 - pypy/dist/pypy/translator/c

arigo at codespeak.net arigo at codespeak.net
Tue Jul 24 10:54:27 CEST 2007


Author: arigo
Date: Tue Jul 24 10:54:27 2007
New Revision: 45291

Modified:
   pypy/dist/pypy/translator/c/node.py
Log:
Temporary workaround to allow calls to a few safe functions.


Modified: pypy/dist/pypy/translator/c/node.py
==============================================================================
--- pypy/dist/pypy/translator/c/node.py	(original)
+++ pypy/dist/pypy/translator/c/node.py	Tue Jul 24 10:54:27 2007
@@ -705,7 +705,11 @@
         # 'fnobj' is one of the ll_xyz() functions with the suggested_primitive
         # flag in pypy.rpython.module.*.  The corresponding C wrappers are
         # written by hand in src/ll_*.h, and declared in extfunc.EXTERNALS.
-        assert not sandbox
+        assert (not sandbox
+                or fnobj._name.startswith('ll_strtod_')   # XXX!! TEMPORARY!
+                or fnobj._name.startswith('ll_time_')   # XXX!! TEMPORARY!
+                or fnobj._name.startswith('ll_stack_')   # XXX!! TEMPORARY!
+                )
         db.externalfuncs[fnobj._callable] = fnobj
         return []
     elif getattr(fnobj._callable, 'suggested_primitive', False):



More information about the Pypy-commit mailing list