1 /*# name=Include file to pick between MALLOC.H and ALLOC.H 2 */ 3 4 #ifndef __ALC_H_DEFINED 5 #define __ALC_H_DEFINED 6 7 #include "compiler.h" 8 9 #if defined(_lint) || defined(__MSC__) || defined(__WATCOMC__) || defined(__IBMC__) || defined(__TOPAZ__) 10 #include <malloc.h> 11 12 #ifdef __FARDATA__ 13 14 /* for some insane reason the turbo-c coreleft() function changes 15 * it's return value based on the memory model. 16 */ 17 18 unsigned long cdecl coreleft (void); 19 #else 20 unsigned cdecl coreleft (void); 21 #endif 22 23 #elif defined(__TURBOC__) 24 #include <alloc.h> 25 #else 26 #include <string.h> 27 #endif 28 29 #ifdef __TURBOC__ 30 #define halloc(x,y) ((char far *)farmalloc(x*y)) 31 #define hfree(p) farfree(p) 32 #endif 33 34 #endif /* __ALC_H_DEFINED */ 35 36