mirror of
https://github.com/gryf/wmaker.git
synced 2026-02-02 22:25:48 +01:00
applied patch to use more gnustepish paths for some internal data files
This commit is contained in:
@@ -234,9 +234,12 @@ char* wexpandpath(char *path);
|
||||
char* wgethomedir();
|
||||
|
||||
void* wmalloc(size_t size);
|
||||
void* wmalloc0(size_t size);
|
||||
void* wrealloc(void *ptr, size_t newsize);
|
||||
void wfree(void *ptr);
|
||||
|
||||
#define wnew(type, count) wmalloc(sizeof(type)*count)
|
||||
#define wnew0(type, count) wmalloc0(sizeof(type)*count)
|
||||
|
||||
void wrelease(void *ptr);
|
||||
void* wretain(void *ptr);
|
||||
|
||||
@@ -110,6 +110,19 @@ wmalloc(size_t size)
|
||||
}
|
||||
|
||||
|
||||
void*
|
||||
wmalloc0(size_t size)
|
||||
{
|
||||
void *ptr= wmalloc(size);
|
||||
if (!ptr)
|
||||
return NULL;
|
||||
|
||||
memset(ptr, 0, size);
|
||||
|
||||
return ptr;
|
||||
}
|
||||
|
||||
|
||||
void*
|
||||
wrealloc(void *ptr, size_t newsize)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user