X-Git-Url: http://plrg.eecs.uci.edu/git/?p=repair.git;a=blobdiff_plain;f=Repair%2FRepairCompiler%2FMCC%2FRuntime%2Ftmap.h;h=85f8619f044d5acc251178c42e3133470578f97d;hp=87da756c80c2ef059a651a96f13c5891d265f287;hb=1a9b5106dbaf948defb63a97a3ffffde025a4e2c;hpb=38a2bde899fd10aa21ba2961beac1726fc5f5ec3;ds=sidebyside diff --git a/Repair/RepairCompiler/MCC/Runtime/tmap.h b/Repair/RepairCompiler/MCC/Runtime/tmap.h index 87da756..85f8619 100755 --- a/Repair/RepairCompiler/MCC/Runtime/tmap.h +++ b/Repair/RepairCompiler/MCC/Runtime/tmap.h @@ -1,6 +1,6 @@ #ifndef TMAP_H #define TMAP_H -class typeobject; +#include "classlist.h" class typemap { public: @@ -10,14 +10,19 @@ class typemap { void deallocate(void *); bool assertvalidmemory(void* low, void* high); bool asserttype(void *ptr, void *high, int structure); + bool assertvalidmemory(void* low, int structure); + bool asserttype(void *ptr, int structure); bool istype(void *ptr, void *high, int structure); void reset(); + typeobject *size; + void initializestack(void *high); private: + void *low; + void *high; bool checkmemory(void* low, void* high); bool checktype(bool doaction,void *ptr, int structure); bool checktype(bool doaction, void *low, void *high,int structure, struct rbtree *ttree); int findoffsetstructure(int s, int offset); - typeobject *size; struct rbtree *alloctree; struct rbtree *typetree; };