[pypy-svn] rev 2081 - in pypy/trunk/src/pypy: . translator/tool

sanxiyn at codespeak.net sanxiyn at codespeak.net
Sun Oct 26 16:02:22 CET 2003


Author: sanxiyn
Date: Sun Oct 26 16:02:21 2003
New Revision: 2081

Modified:
   pypy/trunk/src/pypy/TODO
   pypy/trunk/src/pypy/translator/tool/benchmark.py
Log:
TODO: mentions translator.py
benchmark: quick fix. s/make_cfunc/build_cfunc/


Modified: pypy/trunk/src/pypy/TODO
==============================================================================
--- pypy/trunk/src/pypy/TODO	(original)
+++ pypy/trunk/src/pypy/TODO	Sun Oct 26 16:02:21 2003
@@ -23,8 +23,9 @@
 
 Task: generate a nice dot-graph from the structure of PyPy
 
-Task: integrate the code in translator, with a script that can be 
+Task: integrate the code in translator, with a script that can be
       invoked from the command-line to play with sample source code
+(Note: partially done with translator.py.)
 
 Task: trash the standard unittest framework/enhance it
 

Modified: pypy/trunk/src/pypy/translator/tool/benchmark.py
==============================================================================
--- pypy/trunk/src/pypy/translator/tool/benchmark.py	(original)
+++ pypy/trunk/src/pypy/translator/tool/benchmark.py	Sun Oct 26 16:02:21 2003
@@ -1,7 +1,7 @@
 import autopath
 from pypy.tool import test
 from pypy.tool.udir import udir
-from pypy.translator.test.test_pyrextrans import make_cfunc
+from pypy.translator.tool.buildpyxmodule import build_cfunc
 from pypy.translator.test.test_cltrans import global_cl, make_cl_func
 
 def benchmark(func):
@@ -9,7 +9,7 @@
         func = func.im_func
     except AttributeError:
         pass
-    c_func = make_cfunc(func)
+    c_func = build_cfunc(func, dot=False)
     if global_cl:
         cl_func = make_cl_func(func)
     print "generated c-func for", func.func_name


More information about the Pypy-commit mailing list