summaryrefslogtreecommitdiff
path: root/reference/C/CONTRIB/SNIP/big_mall.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2008-01-27 11:37:44 +0100
committerTobias Klauser <tklauser@xenon.tklauser.home>2008-01-27 11:37:44 +0100
commit7e0f021a9aec35fd8e6725e87e3313b101d26f5e (patch)
treeb1cacc4b24393f517aeb4610e9e1021f954307a8 /reference/C/CONTRIB/SNIP/big_mall.h
Initial import (2.0.2-6)2.0.2-6
Diffstat (limited to 'reference/C/CONTRIB/SNIP/big_mall.h')
-rwxr-xr-xreference/C/CONTRIB/SNIP/big_mall.h15
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