[pypy-svn] r49033 - pypy/branch/remove-extcompiler-rctypes/pypy/translator/c

cfbolz at codespeak.net cfbolz at codespeak.net
Sat Nov 24 14:14:58 CET 2007


Author: cfbolz
Date: Sat Nov 24 14:14:57 2007
New Revision: 49033

Modified:
   pypy/branch/remove-extcompiler-rctypes/pypy/translator/c/genc.py
Log:
call the rpython startup code, which makes more tests pass


Modified: pypy/branch/remove-extcompiler-rctypes/pypy/translator/c/genc.py
==============================================================================
--- pypy/branch/remove-extcompiler-rctypes/pypy/translator/c/genc.py	(original)
+++ pypy/branch/remove-extcompiler-rctypes/pypy/translator/c/genc.py	Sat Nov 24 14:14:57 2007
@@ -221,6 +221,9 @@
 
     def malloc_counters():
         return _malloc_counters(None, None)
+
+_rpython_startup = _lib.RPython_StartupCode
+_rpython_startup()
 """ % {'so_name': self.c_source_filename.new(ext=so_ext),
        'entrypoint_name': self.entrypoint_name,
        'c_entrypoint_name': wrapped_entrypoint_c_name,
@@ -822,7 +825,6 @@
 ##     print >> f, '/***********************************************************/'
 ##     print >> f, '/***  Module initialization function                     ***/'
 ##     print >> f
-##     gen_startupcode(f, database)
 ##     print >> f
 ##     print >> f, 'MODULE_INITFUNC(%s)' % modulename
 ##     print >> f, '{'
@@ -834,6 +836,7 @@
 ##                                                             pyobjnode.name)
 ##     print >> f, '\tcall_postsetup(m);'
 ##    print >> f, '}'
+    gen_startupcode(f, database)
     f.close()
 
     #



More information about the Pypy-commit mailing list