4 * Ullrich von Bassewitz, 20.06.1998
9 #include "../common/xmalloc.h"
16 /*****************************************************************************/
18 /*****************************************************************************/
23 static struct loopdesc* loopstack = 0;
27 /*****************************************************************************/
29 /*****************************************************************************/
33 struct loopdesc* addloop (unsigned sp, unsigned loop, unsigned label,
34 unsigned linc, unsigned lstat)
35 /* Create and add a new loop descriptor */
39 /* Allocate a new struct */
40 l = xmalloc (sizeof (struct loopdesc));
42 /* Fill in the data */
49 /* Insert it into the list */
53 /* Return a pointer to the struct */
59 struct loopdesc* currentloop (void)
60 /* Return a pointer to the descriptor of the current loop */
64 Error (ERR_NO_ACTIVE_LOOP);
72 /* Remove the current loop */
77 loopstack = loopstack->next;