[pypy-svn] r22748 - in pypy/dist/pypy/translator/c: . test

mwh at codespeak.net mwh at codespeak.net
Fri Jan 27 18:06:07 CET 2006


Author: mwh
Date: Fri Jan 27 18:06:04 2006
New Revision: 22748

Added:
   pypy/dist/pypy/translator/c/newgc.py
      - copied unchanged from r22720, pypy/dist/pypy/translator/c/gc.py
Modified:
   pypy/dist/pypy/translator/c/test/test_newgc.py
Log:
(cfbolz, mwh)
same kind of trick as last time, but with the gc policy


Modified: pypy/dist/pypy/translator/c/test/test_newgc.py
==============================================================================
--- pypy/dist/pypy/translator/c/test/test_newgc.py	(original)
+++ pypy/dist/pypy/translator/c/test/test_newgc.py	Fri Jan 27 18:06:04 2006
@@ -5,7 +5,7 @@
 
 from pypy.translator.tool.cbuild import skip_missing_compiler
 from pypy.translator.translator import TranslationContext
-from pypy.translator.c import genc
+from pypy.translator.c import genc, newgc
 
 from pypy.rpython.memory.gctransform import GCTransformer
 
@@ -15,7 +15,8 @@
     t.buildrtyper().specialize()
 #    GCTransformer(t.graphs).transform()
     
-    builder = genc.CExtModuleBuilder(t, fn, use_new_funcgen=True)
+    builder = genc.CExtModuleBuilder(t, fn, use_new_funcgen=True,
+                                     gcpolicy=newgc.RefcountingGcPolicy)
     builder.generate_source()
     skip_missing_compiler(builder.compile)
     builder.import_module()



More information about the Pypy-commit mailing list