changes to runtime/etc to build in repair checking code
[IRC.git] / Robust / src / Runtime / runtime.h
1 #ifndef RUNTIME
2 #define RUNTIME
3 #include <setjmp.h>
4 extern jmp_buf error_handler;
5
6 void * allocate_new(int type);
7 struct ArrayObject * allocate_newarray(int type, int length);
8 struct ___String___ * NewString(char *str,int length);
9
10 void failedboundschk();
11 void failednullptr();
12
13 #ifdef TASK
14 #include "SimpleHash.h"
15 #include "task.h"
16 void flagorand(void * ptr, int ormask, int andmask);
17 void executetasks();
18 void processtasks();
19
20 struct parameterwrapper {
21   struct parameterwrapper *next;
22   struct RuntimeHash * objectset;
23   int numberofterms;
24   int * intarray;
25   struct taskdescriptor * task;
26 };
27
28 struct taskparamdescriptor {
29   struct taskdescriptor * task;
30   int numParameters;
31   void ** parameterArray;
32 };
33
34 int hashCodetpd(struct taskparamdescriptor *);
35 int comparetpd(struct taskparamdescriptor *, struct taskparamdescriptor *);
36 #endif
37
38 #endif