Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
STJr
SRB2
Commits
013d185d
Commit
013d185d
authored
7 years ago
by
Monster Iestyn
Browse files
Options
Downloads
Patches
Plain Diff
Z_FreeTag and Z_TagUsage are now both macros of their respective two arg variants
parent
8f834d67
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/z_zone.c
+1
-11
1 addition, 11 deletions
src/z_zone.c
src/z_zone.h
+2
-2
2 additions, 2 deletions
src/z_zone.h
with
3 additions
and
13 deletions
src/z_zone.c
+
1
−
11
View file @
013d185d
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
src/z_zone.h
+
2
−
2
View file @
013d185d
...
...
@@ -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_Tag
s
Usage(
tagnum,
tagnum)
size_t
Z_TagsUsage
(
INT32
lowtag
,
INT32
hightag
);
char
*
Z_StrDup
(
const
char
*
in
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment