version.pl: snapshot releases *only* have digits in the tail
[nasm/perl-rewrite.git] / rbtree.h
blobd24daf3503ea188754ac7fa366cd8db67445e228
1 #ifndef NASM_RBTREE_H
2 #define NASM_RBTREE_H
4 #include "compiler.h"
5 #include <inttypes.h>
7 /* This structure should be embedded in a larger data structure;
8 the final output from rb_search() can then be converted back
9 to the larger data structure via container_of(). */
10 struct rbtree {
11 uint64_t key;
12 struct rbtree *left, *right;
13 bool red;
16 struct rbtree *rb_insert(struct rbtree *, struct rbtree *);
17 const struct rbtree *rb_search(const struct rbtree *, uint64_t);
19 #endif /* NASM_RBTREE_H */