mirror of
https://github.com/nzp-team/glquake.git
synced 2025-03-12 12:22:00 +00:00
Pull in zone.c from dquakeplus
This commit is contained in:
parent
e86beee7a9
commit
19bd2f273d
2 changed files with 681 additions and 230 deletions
755
source/zone.c
755
source/zone.c
File diff suppressed because it is too large
Load diff
|
@ -1,5 +1,7 @@
|
||||||
/*
|
/*
|
||||||
Copyright (C) 1996-1997 Id Software, Inc.
|
Copyright (C) 1996-2001 Id Software, Inc.
|
||||||
|
Copyright (C) 2002-2009 John Fitzgibbons and others
|
||||||
|
Copyright (C) 2010-2014 QuakeSpasm developers
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or
|
This program is free software; you can redistribute it and/or
|
||||||
modify it under the terms of the GNU General Public License
|
modify it under the terms of the GNU General Public License
|
||||||
|
@ -17,6 +19,10 @@ along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifndef __ZZONE_H
|
||||||
|
#define __ZZONE_H
|
||||||
|
|
||||||
/*
|
/*
|
||||||
memory allocation
|
memory allocation
|
||||||
|
|
||||||
|
@ -85,19 +91,20 @@ Zone block
|
||||||
|
|
||||||
void Memory_Init (void *buf, int size);
|
void Memory_Init (void *buf, int size);
|
||||||
|
|
||||||
|
void *Q_malloc (size_t size); // joe
|
||||||
|
void *Q_calloc (size_t n, size_t size); //
|
||||||
|
void *Q_realloc (void *ptr, size_t size); //
|
||||||
|
void *Q_strdup (const char *str); //
|
||||||
|
|
||||||
void Z_Free (void *ptr);
|
void Z_Free (void *ptr);
|
||||||
void *Z_Malloc (int size); // returns 0 filled memory
|
void *Z_Malloc (int size); // returns 0 filled memory
|
||||||
void *Z_TagMalloc (int size, int tag);
|
void *Z_Realloc (void *ptr, int size);
|
||||||
|
char *Z_Strdup (char *s);
|
||||||
void Z_DumpHeap (void);
|
|
||||||
void Z_CheckHeap (void);
|
|
||||||
int Z_FreeMemory (void);
|
|
||||||
char *Z_Strdup (const char *s);
|
|
||||||
|
|
||||||
void *Hunk_Alloc (int size); // returns 0 filled memory
|
void *Hunk_Alloc (int size); // returns 0 filled memory
|
||||||
void *Hunk_AllocName (int size, char *name);
|
void *Hunk_AllocName (int size, char *name);
|
||||||
|
|
||||||
void *Hunk_HighAllocName (int size, char *name);
|
void *Hunk_HighAllocName (int size, char *name);
|
||||||
|
char *Hunk_Strdup (char *s, char *name);
|
||||||
|
|
||||||
int Hunk_LowMark (void);
|
int Hunk_LowMark (void);
|
||||||
void Hunk_FreeToLowMark (int mark);
|
void Hunk_FreeToLowMark (int mark);
|
||||||
|
@ -128,5 +135,8 @@ void *Cache_Alloc (cache_user_t *c, int size, char *name);
|
||||||
|
|
||||||
void Cache_Report (void);
|
void Cache_Report (void);
|
||||||
|
|
||||||
|
#ifdef PSP_VFPU
|
||||||
|
void* memcpy_vfpu(void* dst, void* src, unsigned int size);
|
||||||
|
#endif // PSP_VFPU
|
||||||
|
|
||||||
|
#endif /* __ZZONE_H */
|
Loading…
Reference in a new issue