Accidentally checked this file in...removing it now.
[repair.git] / Repair / RepairCompiler / MCC / CRuntime / instrument.h
1 /* Defines interfaces for the applications and exports function calls that
2    the applications should use instead of the standard ones. */
3
4 #ifndef INSTRUMENT_H
5 #define INSTUMENT_H
6 #include "classlist.h"
7 #include <stdlib.h>
8
9 #ifndef bool
10 #define bool int
11 #endif
12
13 void alloc(void *ptr,int size);
14 void dealloc(void *ptr);
15 void *ourcalloc(size_t nmemb, size_t size);
16 void *ourmalloc(size_t size);
17 void ourfree(void *ptr);
18 void *ourrealloc(void *ptr, size_t size);
19 void initializemmap();
20 void resettypemap();
21 bool assertvalidtype(int ptr, int structure);
22 bool assertvalidmemory(int ptr, int structure);
23 void initializestack(void *);
24 extern struct typemap * memmap;
25 #endif