add generichashtable
[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 "Queue.h"
15 void flagorand(void * ptr, int ormask, int andmask);
16 void executetasks();
17 void processtasks();
18
19 struct parameterwrapper {
20   struct parameterwrapper *next;
21   struct Queue * queue;
22   int numberofterms;
23   int * intarray;
24   struct taskdescriptor * task;
25 };
26
27 struct failedtaskdescriptor {
28   struct taskdescriptor * task;
29   int numParameters;
30   void ** parameterArray;
31 };
32
33 int hashCodeftd(struct failedtaskdescriptor *);
34 int compareftd(struct failedtaskdescriptor *, failedtaskdescriptor *);
35 #endif
36
37 #endif