|
|
1.1 root 1: /***
2: *malloc.h - declarations and definitions for memory allocation functions
3: *
4: * Copyright (c) 1985-1991, Microsoft Corporation. All rights reserved.
5: *
6: *Purpose:
7: * Contains the function declarations for memory allocation functions;
8: * also defines manifest constants and types used by the heap routines.
9: * [System V]
10: *
11: ****/
12:
13: #ifndef _INC_MALLOC
14:
15: #ifdef __cplusplus
16: extern "C" {
17: #endif
18:
19:
1.1.1.2 ! root 20: #ifndef MIPS
1.1 root 21: #if (_MSC_VER <= 600)
22: #define __cdecl _cdecl
23: #endif
1.1.1.2 ! root 24: #endif
1.1 root 25:
26: #ifndef _SIZE_T_DEFINED
27: typedef unsigned int size_t;
28: #define _SIZE_T_DEFINED
29: #endif
30:
31:
32: /* function prototypes */
1.1.1.2 ! root 33: void * calloc(size_t, size_t);
! 34: void free(void *);
! 35: void * malloc(size_t);
! 36: void * realloc(void *, size_t);
1.1 root 37:
1.1.1.2 ! root 38: #ifndef _POSIX_
1.1 root 39: void * _alloca(size_t);
40: void * _expand(void *, size_t);
41: size_t _msize(void *);
1.1.1.2 ! root 42: #endif /* !_POSIX_ */
1.1 root 43:
44: #if !__STDC__
45: /* Non-ANSI names for compatibility */
46: #define alloca _alloca
47: #endif /* __STDC__*/
48:
49: #ifdef __cplusplus
50: }
51: #endif
52:
53: #define _INC_MALLOC
54: #endif /* _INC_MALLOC */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.