repo.or.cz
/
nasm.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
compiler.h: add offsetof() and container_of()
[nasm.git]
/
rbtree.h
blob
3b45428fdf0a8aa6dcf34a4ca33e837046f132c8
1
#ifndef NASM_RBTREE_H
2
#define NASM_RBTREE_H
3
4
#include
"compiler.h"
5
#include <inttypes.h>
6
7
struct
rbtree
{
8
uint64_t
key
;
9
void
*
data
;
10
struct
rbtree
*
left
, *
right
;
11
bool
red
;
12
};
13
14
struct
rbtree
*
rb_insert
(
struct
rbtree
*,
uint64_t
,
void
*);
15
const struct
rbtree
*
rb_search
(
const struct
rbtree
*,
uint64_t
);
16
void
rb_free
(
struct
rbtree
*);
17
18
#endif
/* NASM_RBTREE_H */