/* * malloc.h Memory allocation functions * * Copyright by WATCOM International Corp. 1988-1996. All rights reserved. */ #ifndef _MALLOC_H_INCLUDED #define _MALLOC_H_INCLUDED #if !defined(_ENABLE_AUTODEPEND) #pragma read_only_file; #endif #ifdef __cplusplus extern "C" { #endif #ifndef _COMDEF_H_INCLUDED #include <_comdef.h> #endif #if defined(_M_IX86) #pragma pack(__push,1); #else #pragma pack(__push,8); #endif #ifndef _SIZE_T_DEFINED #define _SIZE_T_DEFINED #define _SIZE_T_DEFINED_ typedef unsigned size_t; #endif #ifndef NULL #if defined(__SMALL__) || defined(__MEDIUM__) || defined(__386__) || defined(__AXP__) || defined(__PPC__) #define NULL 0 #else #define NULL 0L #endif #endif #ifndef alloca _WCRTLINK extern void *alloca(size_t __size); _WCRTLINK extern void *_alloca(size_t __size); _WCRTLINK extern unsigned stackavail( void ); #if defined(__AXP__) || defined(__PPC__) extern void *__builtin_alloca(size_t __size); #pragma intrinsic(__builtin_alloca); #define __alloca( s ) (__builtin_alloca(s)) #define alloca( s ) ((s