Annotation of mstools/h/malloc.h, revision 1.1.1.3

1.1       root        1: /***
                      2: *malloc.h - declarations and definitions for memory allocation functions
                      3: *
1.1.1.3 ! root        4: *      Copyright (c) 1985-1992, Microsoft Corporation. All rights reserved.
1.1       root        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.3 ! root       20: /*
        !            21:  * Conditional macro definition for function calling type and variable type
        !            22:  * qualifiers.
        !            23:  */
        !            24: #if   ( (_MSC_VER >= 800) && (_M_IX86 >= 300) )
        !            25: 
        !            26: /*
        !            27:  * Definitions for MS C8-32 (386/486) compiler
        !            28:  */
        !            29: #define _CRTAPI1 __cdecl
        !            30: #define _CRTAPI2 __cdecl
        !            31: 
        !            32: #elif ( _MSC_VER == 600 )
        !            33: 
        !            34: /*
        !            35:  * Definitions for old MS C6-386 compiler
        !            36:  */
        !            37: #define _CRTAPI1 _cdecl
        !            38: #define _CRTAPI2 _cdecl
        !            39: #define _M_IX86  300
        !            40: 
        !            41: #else
        !            42: 
        !            43: /*
        !            44:  * Other compilers (e.g., MIPS)
        !            45:  */
        !            46: #define _CRTAPI1
        !            47: #define _CRTAPI2
        !            48: 
1.1.1.2   root       49: #endif
1.1       root       50: 
1.1.1.3 ! root       51: 
1.1       root       52: #ifndef _SIZE_T_DEFINED
                     53: typedef unsigned int size_t;
                     54: #define _SIZE_T_DEFINED
                     55: #endif
                     56: 
                     57: 
                     58: /* function prototypes */
1.1.1.3 ! root       59: void * _CRTAPI1 calloc(size_t, size_t);
        !            60: void   _CRTAPI1 free(void *);
        !            61: void * _CRTAPI1 malloc(size_t);
        !            62: void * _CRTAPI1 realloc(void *, size_t);
1.1       root       63: 
1.1.1.2   root       64: #ifndef _POSIX_
1.1.1.3 ! root       65: void * _CRTAPI1 _alloca(size_t);
        !            66: void * _CRTAPI1 _expand(void *, size_t);
        !            67: size_t _CRTAPI1 _msize(void *);
1.1.1.2   root       68: #endif  /* !_POSIX_ */
1.1       root       69: 
                     70: #if !__STDC__
                     71: /* Non-ANSI names for compatibility */
                     72: #define alloca    _alloca
                     73: #endif /* __STDC__*/
                     74: 
1.1.1.3 ! root       75: #ifdef MIPS
        !            76: #pragma intrinsic(_alloca);
        !            77: #endif
        !            78: 
1.1       root       79: #ifdef __cplusplus
                     80: }
                     81: #endif
                     82: 
                     83: #define _INC_MALLOC
                     84: #endif /* _INC_MALLOC */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.