diff options
Diffstat (limited to 'reference/C/CONTRIB/SNIP/big_mall.h')
-rwxr-xr-x | reference/C/CONTRIB/SNIP/big_mall.h | 15 |
1 files changed, 15 insertions, 0 deletions
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
|