[pypy-svn] r18386 - in pypy/dist/pypy/translator/c: . test

arigo at codespeak.net arigo at codespeak.net
Tue Oct 11 13:08:30 CEST 2005


Author: arigo
Date: Tue Oct 11 13:08:27 2005
New Revision: 18386

Modified:
   pypy/dist/pypy/translator/c/stackless.py
   pypy/dist/pypy/translator/c/test/test_standalone.py
Log:
(tismer, valentino, ale, adim, arigo, afa)

Stackless GenC: first test passes :-))



Modified: pypy/dist/pypy/translator/c/stackless.py
==============================================================================
--- pypy/dist/pypy/translator/c/stackless.py	(original)
+++ pypy/dist/pypy/translator/c/stackless.py	Tue Oct 11 13:08:27 2005
@@ -230,13 +230,13 @@
             vartype = self.lltypename(v).replace('@', '')
             lines.append('%s = (%s)(((struct %s*) f)->%s);' % (
                 varname, vartype, structname, fieldname))
-            retvarname = self.expr(op.result)
-            retvartype = self.lltypename(op.result).replace('@', '')
-            retvarst = simplified_type(op.result.concretetype)
-            if retvarst is not None:
-                globalretvalvarname = RETVALVARS[retvarst]
-                lines.append('%s = (%s) %s;' % (
-                    retvarname, retvartype, globalretvalvarname))
+        retvarname = self.expr(op.result)
+        retvartype = self.lltypename(op.result).replace('@', '')
+        retvarst = simplified_type(op.result.concretetype)
+        if retvarst is not None:
+            globalretvalvarname = RETVALVARS[retvarst]
+            lines.append('%s = (%s) %s;' % (
+                retvarname, retvartype, globalretvalvarname))
         lines.append('goto %s;' % (resumelabel,))
         self.resumeblocks.append(lines)
 

Modified: pypy/dist/pypy/translator/c/test/test_standalone.py
==============================================================================
--- pypy/dist/pypy/translator/c/test/test_standalone.py	(original)
+++ pypy/dist/pypy/translator/c/test/test_standalone.py	Tue Oct 11 13:08:27 2005
@@ -26,7 +26,7 @@
     assert data.startswith('''hello world\nargument count: 2\n   'hi'\n   'there'\n''')
 
 
-def INPROGRESS_test_stack_unwind():
+def test_stack_unwind():
     def f(n):
         if n > 0:
             return f(n-1)



More information about the Pypy-commit mailing list