]> git.sur5r.net Git - cc65/blobdiff - src/cc65/loop.c
Merge remote-tracking branch 'upstream/master' into a5200
[cc65] / src / cc65 / loop.c
index d41b3f4a67a79b3146b9840fca72c60b5e519511..c15c37a7965bbbba81fcea0faf116fadc797eff1 100644 (file)
@@ -1,12 +1,12 @@
 /*****************************************************************************/
 /*                                                                           */
-/*                                 loop.c                                   */
+/*                                  loop.c                                   */
 /*                                                                           */
-/*                             Loop management                              */
+/*                              Loop management                              */
 /*                                                                           */
 /*                                                                           */
 /*                                                                           */
-/* (C) 1998-2003 Ullrich von Bassewitz                                       */
+/* (C) 1998-2004 Ullrich von Bassewitz                                       */
 /*               Römerstraße 52                                              */
 /*               D-70794 Filderstadt                                         */
 /* EMail:        uz@cc65.org                                                 */
 
 /* cc65 */
 #include "error.h"
-#include "loop.h"
+#include "loop.h" 
+#include "stackptr.h"
 
 
 
 /*****************************************************************************/
-/*                                  Data                                    */
+/*                                   Data                                    */
 /*****************************************************************************/
 
 
@@ -55,21 +56,21 @@ static LoopDesc* LoopStack = 0;
 
 
 /*****************************************************************************/
-/*                                  Code                                    */
+/*                                   Code                                    */
 /*****************************************************************************/
 
 
 
-LoopDesc* AddLoop (unsigned SP, unsigned BreakLabel, unsigned ContinueLabel)
+LoopDesc* AddLoop (unsigned BreakLabel, unsigned ContinueLabel)
 /* Create and add a new loop descriptor. */
 {
     /* Allocate a new struct */
     LoopDesc* L = xmalloc (sizeof (LoopDesc));
 
     /* Fill in the data */
-    L->StackPtr                = SP;
+    L->StackPtr         = StackPtr;
     L->BreakLabel       = BreakLabel;
-    L->ContinueLabel           = ContinueLabel;
+    L->ContinueLabel    = ContinueLabel;
 
     /* Insert it into the list */
     L->Next = LoopStack;
@@ -97,6 +98,3 @@ void DelLoop (void)
     LoopStack = LoopStack->Next;
     xfree (L);
 }
-
-
-