[pypy-svn] r32804 - pypy/branch/even-more-config/pypy/translator/c

cfbolz at codespeak.net cfbolz at codespeak.net
Sun Oct 1 22:03:55 CEST 2006


Author: cfbolz
Date: Sun Oct  1 22:03:52 2006
New Revision: 32804

Modified:
   pypy/branch/even-more-config/pypy/translator/c/genc.py
Log:
oops, there are some rests left of the very old way to do stackless on the
source gen level.


Modified: pypy/branch/even-more-config/pypy/translator/c/genc.py
==============================================================================
--- pypy/branch/even-more-config/pypy/translator/c/genc.py	(original)
+++ pypy/branch/even-more-config/pypy/translator/c/genc.py	Sun Oct  1 22:03:52 2006
@@ -39,7 +39,7 @@
         db = LowLevelDatabase(translator, standalone=self.standalone, 
                               gcpolicy=self.gcpolicy, thread_enabled=self.thread_enabled)
 
-        assert self.stackless in (False, 'old', True)
+        assert self.stackless in (False, True)
         if db.gcpolicy.requires_stackless:
             assert self.stackless != 'old'    # incompatible
             self.stackless = True
@@ -125,9 +125,6 @@
         else:
             if CBuilder.have___thread:
                 defines['HAVE___THREAD'] = 1
-            if self.stackless == 'old':
-                defines['USE_STACKLESS'] = '1'
-                defines['USE_OPTIMIZED_STACKLESS_UNWIND'] = '1'
             cfile, extra = gen_source_standalone(db, modulename, targetdir,
                                                  entrypointname = pfname,
                                                  defines = defines)
@@ -135,7 +132,7 @@
         self.extrafiles = extra
         if self.standalone:
             self.gen_makefile(targetdir)
-        return cfile 
+        return cfile
 
     def generate_graphs_for_llinterp(self, db=None):
         # prepare the graphs as when the source is generated, but without
@@ -626,10 +623,6 @@
     sg.set_strategy(targetdir)
     sg.gen_readable_parts_of_source(f)
 
-    # 2bis) old-style stackless data
-    if hasattr(database, 'stacklessdata'):
-        database.stacklessdata.writefiles(sg)
-
     # 3) start-up code
     print >> f
     gen_startupcode(f, database)



More information about the Pypy-commit mailing list