X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=Repair%2FRepairCompiler%2FMCC%2FRuntime%2Finstrument.h;h=7709e054da092fe22117ad83170a6215104fc753;hb=54718e7722ffbc0515d0a77917f59eeaa93a0daf;hp=60376821f86d731947db26702b15f8f87d0685a0;hpb=58b2f949f1caa909924f56bcecb7f13270de4e27;p=repair.git diff --git a/Repair/RepairCompiler/MCC/Runtime/instrument.h b/Repair/RepairCompiler/MCC/Runtime/instrument.h index 6037682..7709e05 100755 --- a/Repair/RepairCompiler/MCC/Runtime/instrument.h +++ b/Repair/RepairCompiler/MCC/Runtime/instrument.h @@ -1,4 +1,4 @@ -/* Defines interfaces for the applications and exports function calls that +/* Defines interfaces for the applications and exports function calls that the applications should use instead of the standard ones. */ #ifndef INSTRUMENT_H @@ -6,6 +6,10 @@ #include "classlist.h" #include +#ifndef bool +#define bool int +#endif + void alloc(void *ptr,int size); void dealloc(void *ptr); void *ourcalloc(size_t nmemb, size_t size); @@ -13,10 +17,9 @@ void *ourmalloc(size_t size); void ourfree(void *ptr); void *ourrealloc(void *ptr, size_t size); void initializemmap(); -typeobject * gettypeobject(); void resettypemap(); bool assertvalidtype(int ptr, int structure); bool assertvalidmemory(int ptr, int structure); void initializestack(void *); -extern typemap * memmap; +extern struct typemap * memmap; #endif