mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-01 09:02:01 +00:00
minor format tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@38854 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
054927cf21
commit
0d4036309d
1 changed files with 6 additions and 6 deletions
|
@ -125,7 +125,7 @@ default_malloc (NSZone *zone, size_t size)
|
||||||
return mem;
|
return mem;
|
||||||
}
|
}
|
||||||
[NSException raise: NSMallocException
|
[NSException raise: NSMallocException
|
||||||
format: @"Default zone has run out of memory"];
|
format: @"Default zone has run out of memory"];
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -140,7 +140,7 @@ default_realloc (NSZone *zone, void *ptr, size_t size)
|
||||||
return mem;
|
return mem;
|
||||||
}
|
}
|
||||||
[NSException raise: NSMallocException
|
[NSException raise: NSMallocException
|
||||||
format: @"Default zone has run out of memory"];
|
format: @"Default zone has run out of memory"];
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1971,7 +1971,7 @@ NSCreateZone (NSUInteger start, NSUInteger gran, BOOL canFree)
|
||||||
zone = malloc(sizeof(ffree_zone));
|
zone = malloc(sizeof(ffree_zone));
|
||||||
if (zone == NULL)
|
if (zone == NULL)
|
||||||
[NSException raise: NSMallocException
|
[NSException raise: NSMallocException
|
||||||
format: @"No memory to create zone"];
|
format: @"No memory to create zone"];
|
||||||
zone->common.malloc = fmalloc;
|
zone->common.malloc = fmalloc;
|
||||||
zone->common.realloc = frealloc;
|
zone->common.realloc = frealloc;
|
||||||
zone->common.free = ffree;
|
zone->common.free = ffree;
|
||||||
|
@ -1994,7 +1994,7 @@ NSCreateZone (NSUInteger start, NSUInteger gran, BOOL canFree)
|
||||||
pthread_mutex_destroy(&(zone->lock));
|
pthread_mutex_destroy(&(zone->lock));
|
||||||
free(zone);
|
free(zone);
|
||||||
[NSException raise: NSMallocException
|
[NSException raise: NSMallocException
|
||||||
format: @"No memory to create zone"];
|
format: @"No memory to create zone"];
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
* Set up block header.
|
* Set up block header.
|
||||||
|
@ -2026,7 +2026,7 @@ NSCreateZone (NSUInteger start, NSUInteger gran, BOOL canFree)
|
||||||
zone = malloc(sizeof(nfree_zone));
|
zone = malloc(sizeof(nfree_zone));
|
||||||
if (zone == NULL)
|
if (zone == NULL)
|
||||||
[NSException raise: NSMallocException
|
[NSException raise: NSMallocException
|
||||||
format: @"No memory to create zone"];
|
format: @"No memory to create zone"];
|
||||||
zone->common.malloc = nmalloc;
|
zone->common.malloc = nmalloc;
|
||||||
zone->common.realloc = nrealloc;
|
zone->common.realloc = nrealloc;
|
||||||
zone->common.free = nfree;
|
zone->common.free = nfree;
|
||||||
|
@ -2044,7 +2044,7 @@ NSCreateZone (NSUInteger start, NSUInteger gran, BOOL canFree)
|
||||||
pthread_mutex_destroy(&(zone->lock));
|
pthread_mutex_destroy(&(zone->lock));
|
||||||
free(zone);
|
free(zone);
|
||||||
[NSException raise: NSMallocException
|
[NSException raise: NSMallocException
|
||||||
format: @"No memory to create zone"];
|
format: @"No memory to create zone"];
|
||||||
}
|
}
|
||||||
|
|
||||||
block = zone->blocks;
|
block = zone->blocks;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue