Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
57c9bc90
Commit
57c9bc90
authored
Aug 30, 2022
by
Henri Verbeet
Committed by
Alexandre Julliard
Aug 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
include: Avoid _t-suffixes.
The _t-suffix is reserved by POSIX. Cherry-picked from vkd3d commit 78c203b395b1fa4b5918cf881ebba8e9d47ae997.
parent
96742389
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
rbtree.h
include/wine/rbtree.h
+7
-7
No files found.
include/wine/rbtree.h
View file @
57c9bc90
...
...
@@ -34,15 +34,15 @@ struct rb_entry
unsigned
int
flags
;
};
typedef
int
(
*
rb_compare_func
_t
)(
const
void
*
key
,
const
struct
rb_entry
*
entry
);
typedef
int
(
*
rb_compare_func
)(
const
void
*
key
,
const
struct
rb_entry
*
entry
);
struct
rb_tree
{
rb_compare_func
_t
compare
;
rb_compare_func
compare
;
struct
rb_entry
*
root
;
};
typedef
void
(
rb_traverse_func
_t
)(
struct
rb_entry
*
entry
,
void
*
context
);
typedef
void
(
rb_traverse_func
)(
struct
rb_entry
*
entry
,
void
*
context
);
#define RB_FLAG_RED 0x1
...
...
@@ -164,25 +164,25 @@ static inline struct rb_entry *rb_postorder_next(struct rb_entry *iter)
(elem) = (elem2))
static
inline
void
rb_postorder
(
struct
rb_tree
*
tree
,
rb_traverse_func
_t
*
callback
,
void
*
context
)
static
inline
void
rb_postorder
(
struct
rb_tree
*
tree
,
rb_traverse_func
*
callback
,
void
*
context
)
{
struct
rb_entry
*
iter
,
*
next
;
RB_FOR_EACH_DESTRUCTOR
(
iter
,
next
,
tree
)
callback
(
iter
,
context
);
}
static
inline
void
rb_init
(
struct
rb_tree
*
tree
,
rb_compare_func
_t
compare
)
static
inline
void
rb_init
(
struct
rb_tree
*
tree
,
rb_compare_func
compare
)
{
tree
->
compare
=
compare
;
tree
->
root
=
NULL
;
}
static
inline
void
rb_for_each_entry
(
struct
rb_tree
*
tree
,
rb_traverse_func
_t
*
callback
,
void
*
context
)
static
inline
void
rb_for_each_entry
(
struct
rb_tree
*
tree
,
rb_traverse_func
*
callback
,
void
*
context
)
{
struct
rb_entry
*
iter
;
RB_FOR_EACH
(
iter
,
tree
)
callback
(
iter
,
context
);
}
static
inline
void
rb_destroy
(
struct
rb_tree
*
tree
,
rb_traverse_func
_t
*
callback
,
void
*
context
)
static
inline
void
rb_destroy
(
struct
rb_tree
*
tree
,
rb_traverse_func
*
callback
,
void
*
context
)
{
/* Note that we use postorder here because the callback will likely free the entry. */
if
(
callback
)
rb_postorder
(
tree
,
callback
,
context
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment