4 * Copyright 2001 Francois Gouget.
6 #ifndef __WINE_MALLOC_H
7 #define __WINE_MALLOC_H
9 #ifdef USE_MSVCRT_PREFIX
10 #define MSVCRT(x) MSVCRT_##x
16 /* heap function constants */
19 #define _HEAPBADBEGIN -3
20 #define _HEAPBADNODE -4
22 #define _HEAPBADPTR -6
28 #ifndef MSVCRT_SIZE_T_DEFINED
29 typedef unsigned int MSVCRT(size_t);
30 #define MSVCRT_SIZE_T_DEFINED
33 typedef struct _heapinfo
45 void* _alloca(MSVCRT(size_t));
46 void* _expand(void*,MSVCRT(size_t));
47 int _heapadd(void*,MSVCRT(size_t));
50 int _heapset(unsigned int);
51 MSVCRT(size_t) _heapused(MSVCRT(size_t)*,MSVCRT(size_t)*);
52 int _heapwalk(_HEAPINFO
*);
53 MSVCRT(size_t) _msize(void*);
55 void* MSVCRT(calloc
)(MSVCRT(size_t),MSVCRT(size_t));
56 void MSVCRT(free
)(void*);
57 void* MSVCRT(malloc
)(MSVCRT(size_t));
58 void* MSVCRT(realloc
)(void*,MSVCRT(size_t));
65 #ifndef USE_MSVCRT_PREFIX
66 #define alloca _alloca
67 #endif /* USE_MSVCRT_PREFIX */
69 #endif /* __WINE_MALLOC_H */