FrameWorks/OmniBase.framework/Headers/mallocmap.h

00001 // Copyright 1997-2005 Omni Development, Inc.  All rights reserved.
00002 //
00003 // This software may only be used and reproduced according to the
00004 // terms in the file OmniSourceLicense.html, which should be
00005 // distributed with this project and can also be found at
00006 // <http://www.omnigroup.com/developer/sourcecode/sourcelicense/>.
00007 //
00008 // $Header: svn+ssh://source.omnigroup.com/Source/svn/Omni/tags/SourceRelease_2005-11-18/OmniGroup/Frameworks/OmniBase/mallocmap.h 68913 2005-10-03 19:36:19Z kc $
00009 
00010 #import <Foundation/NSZone.h>
00011 
00012 // We should NEVER use the BSD malloc functions since they don't
00013 // report zone allocation statistics.  Typically, this is verified
00014 // by OmniMake, but for third-party libraries that we don't want to
00015 // make extensive source changes to, we can import this file.
00016 
00017 #define malloc(size)                 NSZoneMalloc(NULL, size)
00018 #define calloc(numElems, elemSize)   NSZoneCalloc(NULL, numElems, elemSize)
00019 #define realloc(oldPointer, newSize) NSZoneRealloc(NULL, oldPointer, newSize)
00020 #define free(pointer)                NSZoneFree(NULL, pointer)

Generated on Sat Aug 26 21:14:11 2006 for MacTrek by  doxygen 1.4.7