[pypy-svn] r18420 - pypy/dist/pypy/translator/c/src

ale at codespeak.net ale at codespeak.net
Tue Oct 11 18:01:55 CEST 2005


Author: ale
Date: Tue Oct 11 18:01:53 2005
New Revision: 18420

Modified:
   pypy/dist/pypy/translator/c/src/ll_stackless.h
Log:
changed the order of functions 

Modified: pypy/dist/pypy/translator/c/src/ll_stackless.h
==============================================================================
--- pypy/dist/pypy/translator/c/src/ll_stackless.h	(original)
+++ pypy/dist/pypy/translator/c/src/ll_stackless.h	Tue Oct 11 18:01:53 2005
@@ -60,6 +60,19 @@
   return f;
 }
 
+void LL_stackless_stack_unwind(void)
+{
+    if (slp_frame_stack_top)
+        goto resume;
+
+    slp_frame_stack_top = slp_frame_stack_bottom =
+        slp_new_frame(sizeof(slp_frame_t), 0);
+    return ;
+
+ resume:
+    slp_frame_stack_top = NULL;
+}
+
 
 /* example function for testing */
 
@@ -69,7 +82,7 @@
 	    goto resume;
 
 	slp_frame_stack_top = slp_frame_stack_bottom =
-		slp_new_frame(sizeof(slp_frame_t), 0);
+		slp_new_frame(sizeof(slp_frame_t), 1);
 	return -1;
 
  resume:
@@ -87,18 +100,6 @@
     }
 }
 
-void LL_stackless_stack_unwind(void)
-{
-    if (slp_frame_stack_top)
-        goto resume;
-
-    slp_frame_stack_top = slp_frame_stack_bottom =
-        slp_new_frame(sizeof(slp_frame_t), 0);
-    return ;
-
- resume:
-    slp_frame_stack_top = NULL;
-}
 
 char LL_stackless_stack_too_big(void)
 {



More information about the Pypy-commit mailing list