[pypy-svn] r12171 - pypy/dist/pypy/translator

arigo at codespeak.net arigo at codespeak.net
Wed May 11 12:43:51 CEST 2005


Author: arigo
Date: Wed May 11 12:43:51 2005
New Revision: 12171

Modified:
   pypy/dist/pypy/translator/translator.py
Log:
Freeze the translator when generating C code from annotated graphs.  If we
don't, confusion ensures.


Modified: pypy/dist/pypy/translator/translator.py
==============================================================================
--- pypy/dist/pypy/translator/translator.py	(original)
+++ pypy/dist/pypy/translator/translator.py	Wed May 11 12:43:51 2005
@@ -243,6 +243,8 @@
         """Returns compiled function, compiled using the C generator.
         """
         from pypy.tool.udir import udir
+        if self.annotator is not None:
+            self.frozen = True
         name = uniquemodulename(self.entrypoint.func_name)
         cfile = udir.join('%s.c' % name)
         f = cfile.open('w')



More information about the Pypy-commit mailing list