home *** CD-ROM | disk | FTP | other *** search
- /*
- * malloc.h -- extra-ANSI
- *
- * Memory-allocation functions.
- *
- * Copyright (c) 1990, MetaWare Incorporated
- */
-
- #ifndef _MALLOC_H
- #define _MALLOC_H
-
- #ifdef __CPLUSPLUS__
- extern "C" {
- #endif
-
- #ifndef _SIZE_T_DEFINED
- # include "sizet.h"
- #endif
-
-
- #if _MSDOS
- extern void _ffree(void _Far *);
- extern void _nfree(_Near void *);
- extern void _Far *_fmalloc(size_t);
- extern void _Near *_nmalloc(size_t);
- #endif
-
- #if __HIGHC__
-
- #if _MSDOS
- /*
- * This MUST be included for "alloca(n)" to work.
- */
- #define alloca(n) _Alloca(n)
- #define _alloca(n) _Alloca(n)
-
- extern _coreleft();
- extern _coretotal();
- #endif
-
- extern void * calloc(size_t, size_t);
- extern void free(void *);
- extern void * malloc(size_t);
- extern void * realloc(void *, size_t);
-
- #endif
- #ifdef __CPLUSPLUS__
- }
- #endif
- #endif /* _MALLOC_H */
-