Last change
on this file since 346 was 126, checked in by bird, 22 years ago |
\r\r\n -> \r\n
|
-
Property cvs2svn:cvs-rev
set to
1.3
-
Property svn:eol-style
set to
native
-
Property svn:executable
set to
*
|
File size:
1.1 KB
|
Line | |
---|
1 | /* malloc.h (emx+gcc) */
|
---|
2 |
|
---|
3 | #ifndef _MALLOC_H
|
---|
4 | #define _MALLOC_H
|
---|
5 |
|
---|
6 | #if defined (__cplusplus)
|
---|
7 | extern "C" {
|
---|
8 | #endif
|
---|
9 |
|
---|
10 | #if !defined (_SIZE_T)
|
---|
11 | #define _SIZE_T
|
---|
12 | typedef unsigned long size_t;
|
---|
13 | #endif
|
---|
14 |
|
---|
15 | #if !defined (NULL)
|
---|
16 | #if defined (__cplusplus)
|
---|
17 | #define NULL 0
|
---|
18 | #else
|
---|
19 | #define NULL ((void *)0)
|
---|
20 | #endif
|
---|
21 | #endif
|
---|
22 |
|
---|
23 |
|
---|
24 | void *calloc (size_t, size_t);
|
---|
25 | void free (void *);
|
---|
26 | void *malloc (size_t);
|
---|
27 | void *realloc (void *, size_t);
|
---|
28 |
|
---|
29 |
|
---|
30 | #if (!defined (__STRICT_ANSI__) && !defined (_POSIX_SOURCE)) \
|
---|
31 | || defined (_WITH_UNDERSCORE)
|
---|
32 |
|
---|
33 | #if !defined (_HEAPOK)
|
---|
34 | #define _HEAPOK 0
|
---|
35 | #define _HEAPEMPTY 1
|
---|
36 | #define _HEAPBADBEGIN 2
|
---|
37 | #define _HEAPBADNODE 3
|
---|
38 | #define _HEAPBADEND 4
|
---|
39 | #define _HEAPBADROVER 5
|
---|
40 | #endif
|
---|
41 |
|
---|
42 | void *_tcalloc (size_t, size_t);
|
---|
43 | void _tfree (void *);
|
---|
44 | int _theapmin (void);
|
---|
45 | void *_tmalloc (size_t);
|
---|
46 | void *_trealloc (void *, size_t);
|
---|
47 |
|
---|
48 | void *_expand (void *, size_t);
|
---|
49 | int _heapchk (void);
|
---|
50 | int _heapmin (void);
|
---|
51 | int _heapset (unsigned);
|
---|
52 | int _heap_walk (int (*)(__const__ void *, size_t, int, int,
|
---|
53 | __const__ char *, size_t));
|
---|
54 | size_t _msize (__const__ void *);
|
---|
55 |
|
---|
56 | #endif
|
---|
57 |
|
---|
58 |
|
---|
59 | #if defined (__cplusplus)
|
---|
60 | }
|
---|
61 | #endif
|
---|
62 |
|
---|
63 | #endif /* not _MALLOC_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.