mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-27 21:27:12 +00:00
33 lines
502 B
C
Executable File
33 lines
502 B
C
Executable File
/* 7zAlloc.c -- Allocation functions
|
|
2010-10-29 : Igor Pavlov : Public domain */
|
|
|
|
#include "7zAlloc.h"
|
|
|
|
void *SzAlloc(void *p, size_t size)
|
|
{
|
|
p = p;
|
|
if (size == 0)
|
|
return 0;
|
|
return malloc(size);
|
|
}
|
|
|
|
void SzFree(void *p, void *address)
|
|
{
|
|
p = p;
|
|
free(address);
|
|
}
|
|
|
|
void *SzAllocTemp(void *p, size_t size)
|
|
{
|
|
p = p;
|
|
if (size == 0)
|
|
return 0;
|
|
return malloc(size);
|
|
}
|
|
|
|
void SzFreeTemp(void *p, void *address)
|
|
{
|
|
p = p;
|
|
free(address);
|
|
}
|