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

arigo at codespeak.net arigo at codespeak.net
Thu Apr 14 21:06:42 CEST 2005


Author: arigo
Date: Thu Apr 14 21:06:42 2005
New Revision: 10642

Modified:
   pypy/dist/pypy/translator/gensupp.py
Log:
Adds an "l_" prefix to local variables, to avoid clashes with type names (which trigger a tcc bug).
This is meant as a temporary fix , and just trying.  It does solve the problem.
Christian, please feel free to do it as you like.



Modified: pypy/dist/pypy/translator/gensupp.py
==============================================================================
--- pypy/dist/pypy/translator/gensupp.py	(original)
+++ pypy/dist/pypy/translator/gensupp.py	Thu Apr 14 21:06:42 2005
@@ -151,6 +151,8 @@
             basename = name[:scorepos]
             if wrapped:
                 basename = "w_" + basename
+            else:
+                basename = "l_" + basename
         else:
             basename = name
         ret = self.uniquename(basename)



More information about the Pypy-commit mailing list