This update adds precise garbage collection to the compiler and the runtime.
[IRC.git] / Robust / src / Runtime / garbage.h
1 #ifndef GARBAGE_H
2 #define GARBAGE_H
3 struct garbagelist {
4   int size;
5   struct garbagelist *next;
6   void * array[];
7 };
8
9 void collect(struct garbagelist *stackptr);
10 int gc_createcopy(void * orig, void **);
11 void * mygcmalloc(struct garbagelist * ptr, int size);
12 #endif