4 * Copyright 2001 Francois Gouget.
6 #ifndef __WINE_MALLOC_H
7 #define __WINE_MALLOC_H
8 #define __WINE_USE_MSVCRT
10 #ifdef USE_MSVCRT_PREFIX
11 #define MSVCRT(x) MSVCRT_##x
17 /* heap function constants */
20 #define _HEAPBADBEGIN -3
21 #define _HEAPBADNODE -4
23 #define _HEAPBADPTR -6
29 #ifndef MSVCRT_SIZE_T_DEFINED
30 typedef unsigned int MSVCRT(size_t);
31 #define MSVCRT_SIZE_T_DEFINED
34 typedef struct _heapinfo
46 void* _alloca(MSVCRT(size_t));
47 void* _expand(void*,MSVCRT(size_t));
48 int _heapadd(void*,MSVCRT(size_t));
51 int _heapset(unsigned int);
52 MSVCRT(size_t) _heapused(MSVCRT(size_t)*,MSVCRT(size_t)*);
53 int _heapwalk(_HEAPINFO
*);
54 MSVCRT(size_t) _msize(void*);
56 void* MSVCRT(calloc
)(MSVCRT(size_t),MSVCRT(size_t));
57 void MSVCRT(free
)(void*);
58 void* MSVCRT(malloc
)(MSVCRT(size_t));
59 void* MSVCRT(realloc
)(void*,MSVCRT(size_t));
66 #ifndef USE_MSVCRT_PREFIX
67 #define alloca _alloca
68 #endif /* USE_MSVCRT_PREFIX */
70 #endif /* __WINE_MALLOC_H */