Updates for 10.5 API changes

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27962 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
rfm 2009-02-23 20:42:32 +00:00
parent 0b528e776c
commit 30cf8bf35b
138 changed files with 2094 additions and 1536 deletions

View file

@ -102,7 +102,7 @@
* Try to do some logging if possible.
*/
void *
GSOutOfMemory(size_t size, BOOL retry)
GSOutOfMemory(NSUInteger size, BOOL retry)
{
fprintf(stderr, "GSOutOfMemory ... wanting %lu bytes.\n",
(unsigned long)size);
@ -1598,7 +1598,7 @@ static void rnfree (NSZone *zone, void *ptr);
* pointers is kept and must reach zero before freeing the zone.
*/
NSZone*
NSCreateZone (size_t start, size_t gran, BOOL canFree)
NSCreateZone (NSUInteger start, NSUInteger gran, BOOL canFree)
{
size_t i, startsize, granularity;
NSZone *newZone;
@ -1719,7 +1719,7 @@ NSCreateZone (size_t start, size_t gran, BOOL canFree)
* allocate and no more can be obtained from system.
*/
void*
NSZoneCalloc (NSZone *zone, size_t elems, size_t bytes)
NSZoneCalloc (NSZone *zone, NSUInteger elems, NSUInteger bytes)
{
return memset(NSZoneMalloc(zone, elems*bytes), 0, elems*bytes);
}
@ -1840,7 +1840,7 @@ NSReallocateCollectable(void *ptr, NSUInteger size, NSUInteger options)
#if GS_WITH_GC
NSZone*
NSCreateZone (size_t start, size_t gran, BOOL canFree)
NSCreateZone (NSUInteger start, NSUInteger gran, BOOL canFree)
{
return &default_zone;
}
@ -1926,13 +1926,13 @@ GSAssignZeroingWeakPointer(void **destination, void *source)
}
void*
NSZoneMalloc (NSZone *zone, size_t size)
NSZoneMalloc (NSZone *zone, NSUInteger size)
{
return NSZoneCalloc(zone, 1, size);
}
void*
NSZoneCalloc (NSZone *zone, size_t elems, size_t bytes)
NSZoneCalloc (NSZone *zone, NSUInteger elems, NSUInteger bytes)
{
size_t size = elems * bytes;
void *ptr;
@ -1957,7 +1957,7 @@ NSZoneCalloc (NSZone *zone, size_t elems, size_t bytes)
}
void*
NSZoneRealloc (NSZone *zone, void *ptr, size_t size)
NSZoneRealloc (NSZone *zone, void *ptr, NSUInteger size)
{
if (GC_base(ptr) != 0)
{
@ -2015,7 +2015,7 @@ GSAssignZeroingWeakPointer(void **destination, void *source)
}
void*
NSZoneMalloc (NSZone *zone, size_t size)
NSZoneMalloc (NSZone *zone, NSUInteger size)
{
if (!zone)
zone = NSDefaultMallocZone();
@ -2023,7 +2023,7 @@ NSZoneMalloc (NSZone *zone, size_t size)
}
void*
NSZoneRealloc (NSZone *zone, void *ptr, size_t size)
NSZoneRealloc (NSZone *zone, void *ptr, NSUInteger size)
{
if (!zone)
zone = NSDefaultMallocZone();