=======================================================================
*/
-#include "depend.h"
-#include "genint.h"
-#include "int.h"
-#include "process.h"
-#include "intproto.h"
+#include "depend.h"
+#include "genint.h"
+#include "int.h"
+#include "process.h"
+#include "intproto.h"
/* Transfer of control routines */
-
#ifndef NO_PROTOTYPES
static void att2(virtaddr *, word, word);
static void back1(word, word, virtaddr *, word *);
static void back1();
#endif
-/* Transfer control to the newly created object.
+/**
+ *Transfer control to the newly created object.
*/
-
-void go(ah, am)
-word ah, am;
+void go(word ah, word am)
{
protdescr *ptr;
word pnum, plen, node, apt;
}
-/* Transfer control to a local unprefixed procedure, function, block,
+/**
+ * Transfer control to a local unprefixed procedure, function, block,
* class or coroutine.
*/
-
-void goloc(ah, am)
-word ah, am;
+void goloc(word ah, word am)
{
word t1;
protdescr *ptr;
M[ am+M[ am ]+STATSL ]++;
}
-
-void backbl(virt, am) /* Return from block. */
-virtaddr *virt;
-word *am;
+/* Return from block. */
+void backbl(virtaddr *virt, word *am)
{
word t1;
}
-static void back1(at1, at2, virt, am) /* Common code for some backs below. */
-word at1, at2;
-virtaddr *virt;
-word *am;
+/* Common code for some backs below. */
+static void back1(word at1, word at2, virtaddr *virt, word *am)
{
word t1;
}
-/* Return from classes, coroutines and by end from procedures.
+/**
+ * Return from classes, coroutines and by end from procedures.
*/
-
-void back(virt, am, length)
-virtaddr *virt;
-word *am;
-word length;
+void back(virtaddr *virt, word *am, word length)
{
word t1, t2, plist;
int i;
}
-/* Return, end in procedures and functions without prefix.
+/**
+ * Return, end in procedures and functions without prefix.
*/
-
-void backpr(virt, am)
-virtaddr *virt;
-word *am;
+void backpr(virtaddr *virt, word *am)
{
word t1, t2, t3;
else back1(t1, t2, virt, am);
}
-
-void fin(backic, virt, am) /* End in classes and coroutines. */
-word backic;
-virtaddr *virt;
-word *am;
+/* End in classes and coroutines. */
+void fin(word backic, virtaddr *virt, word *am)
{
word t1, t2, knd;
}
}
-
-static void att2(virt, ax, at1) /* Helper for attach/detach */
-virtaddr *virt;
-word ax, at1;
+/* Helper for attach/detach */
+static void att2(virtaddr *virt, word ax, word at1)
{
word t1, t2, phead;
}
-void attach(virt)
-virtaddr *virt;
+void attach(virtaddr *virt)
{
word t1, ax, phead, chead;
int knd;
att2(&virt, M[ virt.addr ]+M[ M[ virt.addr ] ], t1);
}
-
-void inner(level) /* Simulate execution of inner */
-word level;
+/* Simulate execution of inner */
+void inner(word level)
{
word t1;
protdescr *ptr;
else ic = prototype[ M[ ptr->preflist+level ] ]->codeaddr;
}
-