mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-17 23:21:22 +00:00
Z_FreeTag and Z_TagUsage are now both macros of their respective two arg variants
This commit is contained in:
parent
8f834d6784
commit
013d185d9e
2 changed files with 3 additions and 13 deletions
12
src/z_zone.c
12
src/z_zone.c
|
@ -407,11 +407,6 @@ void Z_FreeTags(INT32 lowtag, INT32 hightag)
|
|||
}
|
||||
}
|
||||
|
||||
void Z_FreeTag(INT32 tagnum)
|
||||
{
|
||||
Z_FreeTags(tagnum, tagnum);
|
||||
}
|
||||
|
||||
//
|
||||
// Z_CheckMemCleanup
|
||||
//
|
||||
|
@ -610,12 +605,7 @@ size_t Z_TagsUsage(INT32 lowtag, INT32 hightag)
|
|||
return cnt;
|
||||
}
|
||||
|
||||
size_t Z_TagUsage(INT32 tagnum)
|
||||
{
|
||||
return Z_TagsUsage(tagnum, tagnum);
|
||||
}
|
||||
|
||||
void Command_Memfree_f(void)
|
||||
static void Command_Memfree_f(void)
|
||||
{
|
||||
UINT32 freebytes, totalbytes;
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@
|
|||
#define PU_HWRPATCHINFO_UNLOCKED 103
|
||||
|
||||
void Z_Init(void);
|
||||
void Z_FreeTag(INT32 tagnum);
|
||||
#define Z_FreeTag(tagnum) Z_FreeTags(tagnum, tagnum)
|
||||
void Z_FreeTags(INT32 lowtag, INT32 hightag);
|
||||
void Z_CheckMemCleanup(void);
|
||||
void Z_CheckHeap(INT32 i);
|
||||
|
@ -97,7 +97,7 @@ void *Z_ReallocAlign(void *ptr, size_t size, INT32 tag, void *user, INT32 alignb
|
|||
#define Z_Calloc(s,t,u) Z_CallocAlign(s, t, u, 0)
|
||||
#define Z_Realloc(p,s,t,u) Z_ReallocAlign(p, s, t, u, 0)
|
||||
|
||||
size_t Z_TagUsage(INT32 tagnum);
|
||||
#define Z_TagUsage(tagnum) Z_TagsUsage(tagnum, tagnum)
|
||||
size_t Z_TagsUsage(INT32 lowtag, INT32 hightag);
|
||||
|
||||
char *Z_StrDup(const char *in);
|
||||
|
|
Loading…
Reference in a new issue