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
bfd48c4c
Commit
bfd48c4c
authored
5 years ago
by
Nev3r
Browse files
Options
Downloads
Patches
Plain Diff
add Tag_Compare()
parent
ab2619d5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1097
UDMF: Multitag support
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/taglist.c
+14
-0
14 additions, 0 deletions
src/taglist.c
src/taglist.h
+1
-0
1 addition, 0 deletions
src/taglist.h
with
15 additions
and
0 deletions
src/taglist.c
+
14
−
0
View file @
bfd48c4c
...
...
@@ -6,3 +6,17 @@ void Tag_Add (taglist_t* list, const UINT16 tag)
list
->
tags
=
Z_Realloc
(
list
->
tags
,
(
list
->
count
+
1
)
*
sizeof
(
list
->
tags
),
PU_LEVEL
,
NULL
);
list
->
tags
[
list
->
count
++
]
=
tag
;
}
boolean
Tag_Compare
(
const
taglist_t
*
list1
,
const
taglist_t
*
list2
)
{
size_t
i
;
if
(
list1
->
count
!=
list2
->
count
)
return
false
;
for
(
i
=
0
;
i
<
list1
->
count
;
i
++
)
if
(
list1
->
tags
[
i
]
!=
list2
->
tags
[
i
])
return
false
;
return
true
;
}
This diff is collapsed.
Click to expand it.
src/taglist.h
+
1
−
0
View file @
bfd48c4c
...
...
@@ -11,4 +11,5 @@ typedef struct
}
taglist_t
;
void
Tag_Add
(
taglist_t
*
list
,
const
UINT16
tag
);
boolean
Tag_Compare
(
const
taglist_t
*
list1
,
const
taglist_t
*
list2
);
#endif //__R_TAGLIST__
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