[pypy-svn] r48855 - pypy/branch/new-genc-tests-wrapper/pypy/translator/c
cfbolz at codespeak.net
cfbolz at codespeak.net
Tue Nov 20 18:34:47 CET 2007
Author: cfbolz
Date: Tue Nov 20 18:34:46 2007
New Revision: 48855
Modified:
pypy/branch/new-genc-tests-wrapper/pypy/translator/c/genc.py
Log:
(cfbolz, rxe): make tests only fail and not segfault. progress
Modified: pypy/branch/new-genc-tests-wrapper/pypy/translator/c/genc.py
==============================================================================
--- pypy/branch/new-genc-tests-wrapper/pypy/translator/c/genc.py (original)
+++ pypy/branch/new-genc-tests-wrapper/pypy/translator/c/genc.py Tue Nov 20 18:34:46 2007
@@ -108,6 +108,7 @@
if db is None:
db = self.build_database()
+ self.db = db
pf = self.getentrypointptr()
pfname = db.get(pf)
@@ -182,9 +183,11 @@
from pypy.translator.llsupport.modwrapper import CtypesModule
dll_filename = self.c_source_filename.new(ext='so')
+ gcfields = self.db.gcpolicy.common_gcheader_definition()
modname = CtypesModule(self.entrypoint_name,
self.graph_entrypoint,
- dll_filename).create()
+ dll_filename,
+ gcfields).create()
self.modname = modname
self._compiled = True
More information about the Pypy-commit
mailing list