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
cb2571b1
Commit
cb2571b1
authored
5 years ago
by
Nev3r
Browse files
Options
Downloads
Patches
Plain Diff
Rename the macros, reshape them slightly to avoid mixed declarations, and add a finalizer.
parent
f7f9b68b
No related branches found
No related tags found
1 merge request
!1097
UDMF: Multitag support
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/taglist.h
+8
-6
8 additions, 6 deletions
src/taglist.h
with
8 additions
and
6 deletions
src/taglist.h
+
8
−
6
View file @
cb2571b1
...
@@ -29,23 +29,25 @@ void Taglist_AddToLines (const size_t tag, const size_t itemid);
...
@@ -29,23 +29,25 @@ void Taglist_AddToLines (const size_t tag, const size_t itemid);
void
Taglist_AddToMapthings
(
const
size_t
tag
,
const
size_t
itemid
);
void
Taglist_AddToMapthings
(
const
size_t
tag
,
const
size_t
itemid
);
#endif //__R_TAGLIST__
#endif //__R_TAGLIST__
#define Tag_IterateSectors(tag, sc)\
#define TAG_ITER_SECTORS(tag, sc)\
size_t kk;\
if(tags_sectors[tag])\
if(tags_sectors[tag])\
{ size_t kk;\
for(kk = 0, sc = tags_sectors[tag]->elements[0];\
for(kk = 0, sc = tags_sectors[tag]->elements[0];\
kk < tags_sectors[tag]->count;\
kk < tags_sectors[tag]->count;\
sc = tags_sectors[tag]->elements[++kk])
sc = tags_sectors[tag]->elements[++kk])
#define Tag_IterateLines(tag, li)\
#define TAG_ITER_LINES(tag, li)\
size_t kk;\
if(tags_lines[tag])\
if(tags_lines[tag])\
{ size_t kk;\
for(kk = 0, li = tags_lines[tag]->elements[0];\
for(kk = 0, li = tags_lines[tag]->elements[0];\
kk < tags_lines[tag]->count;\
kk < tags_lines[tag]->count;\
li = tags_lines[tag]->elements[++kk])
li = tags_lines[tag]->elements[++kk])
#define Tag_IterateMapthings(tag, mt)\
#define TAG_ITER_THINGS(tag, mt)\
size_t kk;\
if(tags_mapthings[tag])\
if(tags_mapthings[tag])\
{ size_t kk;\
for(kk = 0, mt = tags_mapthings[tag]->elements[0];\
for(kk = 0, mt = tags_mapthings[tag]->elements[0];\
kk < tags_mapthings[tag]->count;\
kk < tags_mapthings[tag]->count;\
mt = tags_mapthings[tag]->elements[++kk])
mt = tags_mapthings[tag]->elements[++kk])
#define TAG_ITER_END }
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