4 * Memory management functions. Because most of these functions are
5 * actually declared in stdlib.h I have decided to simply include that
6 * header file. This file is included by malloc.h. My head hurts...
8 * NOTE: In the version of the Standard C++ Library from Cygnus there
9 * is also an alloc.h which needs to be on your include path. Most of
10 * the time I think the most sensible option would be to get rid of
13 * This file is part of the Mingw32 package.
16 * Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
18 * THIS SOFTWARE IS NOT COPYRIGHTED
20 * This source code is offered for use in the public domain. You may
21 * use, modify or distribute it freely.
23 * This code is distributed in the hope that it will be useful but
24 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
25 * DISCLAMED. This includes but is not limited to warranties of
26 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
30 * $Date: 2002/09/08 10:22:30 $
34 #ifndef __STRICT_ANSI__
39 #include <msvcrt/stdlib.h>
48 * The structure used to walk through the heap with _heapwalk.
49 * TODO: This is a guess at the internals of this structure.
51 typedef struct _heapinfo
58 int _heapwalk (_HEAPINFO
* pHeapinfo
);
62 void * C_alloca(size_t size
);
63 #define _alloca(x) C_alloca(x)
64 #else /* USE_C_ALLOCA */
65 #define _alloca(x) __builtin_alloca(x)
66 #endif /* USE_C_ALLOCA */
68 void * _alloca(size_t size
);
72 #define heapwalk(x) _heapwalk(x)
73 #define alloca(s) _alloca(s)
74 #endif /* Not _NO_OLDNAMES */
80 #endif /* Not RC_INVOKED */
82 #endif /* Not _ALLOC_H_ */
84 #endif /* Not __STRICT_ANSI__ */