summaryrefslogtreecommitdiff
path: root/iperlsys.h
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-03-18 13:57:06 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-03-18 13:57:06 +0000
commit083fcd59cab1a76269852c22b8b181ad12d6cfe9 (patch)
tree81fba0a2b169b448a00069bf51f56cb72d40b3b2 /iperlsys.h
parent53133ed1c5068175ce48d34c24e23b1aa3a97766 (diff)
downloadperl-083fcd59cab1a76269852c22b8b181ad12d6cfe9.tar.gz
NetWare tweaks from C Aditya <caditya@novell.com>
p4raw-id: //depot/perl@15292
Diffstat (limited to 'iperlsys.h')
-rw-r--r--iperlsys.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/iperlsys.h b/iperlsys.h
index 7eda973426..b2b21727e4 100644
--- a/iperlsys.h
+++ b/iperlsys.h
@@ -795,6 +795,25 @@ struct IPerlMemInfo
(*PL_Mem->pIsLocked)(PL_Mem)
/* Shared memory macros */
+#ifdef NETWARE
+
+ #define PerlMemShared_malloc(size) \
+ (*PL_Mem->pMalloc)(PL_Mem, (size))
+#define PerlMemShared_realloc(buf, size) \
+ (*PL_Mem->pRealloc)(PL_Mem, (buf), (size))
+#define PerlMemShared_free(buf) \
+ (*PL_Mem->pFree)(PL_Mem, (buf))
+#define PerlMemShared_calloc(num, size) \
+ (*PL_Mem->pCalloc)(PL_Mem, (num), (size))
+#define PerlMemShared_get_lock() \
+ (*PL_Mem->pGetLock)(PL_Mem)
+#define PerlMemShared_free_lock() \
+ (*PL_Mem->pFreeLock)(PL_Mem)
+#define PerlMemShared_is_locked() \
+ (*PL_Mem->pIsLocked)(PL_Mem)
+
+#else
+
#define PerlMemShared_malloc(size) \
(*PL_MemShared->pMalloc)(PL_MemShared, (size))
#define PerlMemShared_realloc(buf, size) \
@@ -810,6 +829,7 @@ struct IPerlMemInfo
#define PerlMemShared_is_locked() \
(*PL_MemShared->pIsLocked)(PL_MemShared)
+#endif
/* Parse tree memory macros */
#define PerlMemParse_malloc(size) \