diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-03-18 13:57:06 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-03-18 13:57:06 +0000 |
commit | 083fcd59cab1a76269852c22b8b181ad12d6cfe9 (patch) | |
tree | 81fba0a2b169b448a00069bf51f56cb72d40b3b2 /op.c | |
parent | 53133ed1c5068175ce48d34c24e23b1aa3a97766 (diff) | |
download | perl-083fcd59cab1a76269852c22b8b181ad12d6cfe9.tar.gz |
NetWare tweaks from C Aditya <caditya@novell.com>
p4raw-id: //depot/perl@15292
Diffstat (limited to 'op.c')
-rw-r--r-- | op.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -45,8 +45,8 @@ S_Slab_Alloc(pTHX_ int m, size_t sz) */ sz = (sz + 2*sizeof(I32 *) -1)/sizeof(I32 *); if ((PL_OpSpace -= sz) < 0) { - PL_OpPtr = (I32 **) PerlMemShared_malloc(PERL_SLAB_SIZE*sizeof(I32*)); - if (!PL_OpPtr) { + PL_OpPtr = (I32 **) PerlMemShared_malloc(PERL_SLAB_SIZE*sizeof(I32*)); + if (!PL_OpPtr) { return NULL; } Zero(PL_OpPtr,PERL_SLAB_SIZE,I32 **); @@ -82,7 +82,11 @@ S_Slab_Free(pTHX_ void *op) assert( ptr < ( (I32 **) slab + PERL_SLAB_SIZE) ); assert( *slab > 0 ); if (--(*slab) == 0) { - PerlMemShared_free(slab); + #ifdef NETWARE + #define PerlMemShared PerlMem + #endif + + PerlMemShared_free(slab); if (slab == PL_OpSlab) { PL_OpSpace = 0; } |