From 7e0f021a9aec35fd8e6725e87e3313b101d26f5e Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Sun, 27 Jan 2008 11:37:44 +0100 Subject: Initial import (2.0.2-6) --- reference/C/CONTRIB/SNIP/big_mall.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 reference/C/CONTRIB/SNIP/big_mall.h (limited to 'reference/C/CONTRIB/SNIP/big_mall.h') diff --git a/reference/C/CONTRIB/SNIP/big_mall.h b/reference/C/CONTRIB/SNIP/big_mall.h new file mode 100755 index 0000000..bec4b3a --- /dev/null +++ b/reference/C/CONTRIB/SNIP/big_mall.h @@ -0,0 +1,15 @@ +/* +** void _far *BigMalloc(unsigned long num_elem, size_t size_elem) +*/ + +#ifdef MSDOS + #if defined(__TURBOC__) || defined(__ZTC__) + #ifdef __TURBOC__ + #define _far far + #endif + #define BigMalloc(i,n) (void _far *)farmalloc(i*n) + #else /* MSC, Watcom */ + #define BigMalloc(i,n) (void _far *)halloc(i,n) +#else + #define BigMalloc(i,n) malloc(i*n) +#endif -- cgit v1.2.3-54-g00ecf