|
@@ -29,11 +29,11 @@
|
|
|
/* Wrap PHYSFS_Allocator in a CFAllocator... */
|
|
/* Wrap PHYSFS_Allocator in a CFAllocator... */
|
|
|
static CFAllocatorRef cfallocator = NULL;
|
|
static CFAllocatorRef cfallocator = NULL;
|
|
|
|
|
|
|
|
-CFStringRef cfallocDesc(const void *info)
|
|
|
|
|
|
|
+CFStringRef cfallocCopyDesc(const void *info)
|
|
|
{
|
|
{
|
|
|
return(CFStringCreateWithCString(cfallocator, "PhysicsFS",
|
|
return(CFStringCreateWithCString(cfallocator, "PhysicsFS",
|
|
|
kCFStringEncodingASCII));
|
|
kCFStringEncodingASCII));
|
|
|
-} /* cfallocDesc */
|
|
|
|
|
|
|
+} /* cfallocCopyDesc */
|
|
|
|
|
|
|
|
|
|
|
|
|
static void *cfallocMalloc(CFIndex allocSize, CFOptionFlags hint, void *info)
|
|
static void *cfallocMalloc(CFIndex allocSize, CFOptionFlags hint, void *info)
|
|
@@ -62,7 +62,7 @@ int __PHYSFS_platformInit(void)
|
|
|
/* set up a CFAllocator, so Carbon can use the physfs allocator, too. */
|
|
/* set up a CFAllocator, so Carbon can use the physfs allocator, too. */
|
|
|
CFAllocatorContext ctx;
|
|
CFAllocatorContext ctx;
|
|
|
memset(&ctx, '\0', sizeof (ctx));
|
|
memset(&ctx, '\0', sizeof (ctx));
|
|
|
- ctx.copyDescription = cfallocDesc;
|
|
|
|
|
|
|
+ ctx.copyDescription = cfallocCopyDesc;
|
|
|
ctx.allocate = cfallocMalloc;
|
|
ctx.allocate = cfallocMalloc;
|
|
|
ctx.reallocate = cfallocRealloc;
|
|
ctx.reallocate = cfallocRealloc;
|
|
|
ctx.deallocate = cfallocFree;
|
|
ctx.deallocate = cfallocFree;
|